From c8f3ea8a47247675df3bc5157b6a464a616a24f4 Mon Sep 17 00:00:00 2001
From: Saifeddine ALOUI <aloui.seifeddine@gmail.com>
Date: Thu, 24 Oct 2024 02:04:35 +0200
Subject: [PATCH] enhanced pinning

---
 .../{index-TthUmaOU.js => index-GJ0H796G.js}  | 404 +++++++++---------
 ...{index-DgI2-Yh4.css => index-uovuhICQ.css} |   2 +-
 web/dist/index.html                           |   4 +-
 web/src/components/TopBar.vue                 |  30 +-
 4 files changed, 213 insertions(+), 227 deletions(-)
 rename web/dist/assets/{index-TthUmaOU.js => index-GJ0H796G.js} (87%)
 rename web/dist/assets/{index-DgI2-Yh4.css => index-uovuhICQ.css} (98%)

diff --git a/web/dist/assets/index-TthUmaOU.js b/web/dist/assets/index-GJ0H796G.js
similarity index 87%
rename from web/dist/assets/index-TthUmaOU.js
rename to web/dist/assets/index-GJ0H796G.js
index 27114ef9..77a9891e 100644
--- a/web/dist/assets/index-TthUmaOU.js
+++ b/web/dist/assets/index-GJ0H796G.js
@@ -28,20 +28,20 @@ var JO=Object.defineProperty;var eI=(n,e,t)=>e in n?JO(n,e,{enumerable:!0,config
   * vue-router v4.4.5
   * (c) 2024 Eduardo San Martin Morote
   * @license MIT
-  */const Yo=typeof document<"u";function EA(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function $P(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&EA(n.default)}const Ft=Object.assign;function Yp(n,e){const t={};for(const i in e){const s=e[i];t[i]=Hi(s)?s.map(n):n(s)}return t}const Tl=()=>{},Hi=Array.isArray,vA=/#/g,WP=/&/g,KP=/\//g,jP=/=/g,QP=/\?/g,SA=/\+/g,XP=/%5B/g,ZP=/%5D/g,TA=/%5E/g,JP=/%60/g,xA=/%7B/g,e3=/%7C/g,CA=/%7D/g,t3=/%20/g;function l0(n){return encodeURI(""+n).replace(e3,"|").replace(XP,"[").replace(ZP,"]")}function n3(n){return l0(n).replace(xA,"{").replace(CA,"}").replace(TA,"^")}function Kg(n){return l0(n).replace(SA,"%2B").replace(t3,"+").replace(vA,"%23").replace(WP,"%26").replace(JP,"`").replace(xA,"{").replace(CA,"}").replace(TA,"^")}function i3(n){return Kg(n).replace(jP,"%3D")}function s3(n){return l0(n).replace(vA,"%23").replace(QP,"%3F")}function r3(n){return n==null?"":s3(n).replace(KP,"%2F")}function Hl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const o3=/\/$/,a3=n=>n.replace(o3,"");function $p(n,e,t="/"){let i,s={},r="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(i=e.slice(0,c),r=e.slice(c+1,a>-1?a:e.length),s=n(r)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=u3(i??e,t),{fullPath:i+(r&&"?")+r+o,path:i,query:s,hash:Hl(o)}}function l3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function QE(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function c3(n,e,t){const i=e.matched.length-1,s=t.matched.length-1;return i>-1&&i===s&&ua(e.matched[i],t.matched[s])&&wA(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function wA(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!d3(n[t],e[t]))return!1;return!0}function d3(n,e){return Hi(n)?XE(n,e):Hi(e)?XE(e,n):n===e}function XE(n,e){return Hi(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function u3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")r>1&&r--;else break;return t.slice(0,r).join("/")+"/"+i.slice(o).join("/")}const Ws={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ql;(function(n){n.pop="pop",n.push="push"})(ql||(ql={}));var xl;(function(n){n.back="back",n.forward="forward",n.unknown=""})(xl||(xl={}));function p3(n){if(!n)if(Yo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),a3(n)}const f3=/^[^#]+#/;function _3(n,e){return n.replace(f3,"#")+e}function m3(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Wu=()=>({left:window.scrollX,top:window.scrollY});function h3(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),s=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!s)return;e=m3(s,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function ZE(n,e){return(history.state?history.state.position-e:-1)+n}const jg=new Map;function g3(n,e){jg.set(n,e)}function b3(n){const e=jg.get(n);return jg.delete(n),e}let y3=()=>location.protocol+"//"+location.host;function RA(n,e){const{pathname:t,search:i,hash:s}=e,r=n.indexOf("#");if(r>-1){let a=s.includes(n.slice(r))?n.slice(r).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),QE(c,"")}return QE(t,n)+i+s}function E3(n,e,t,i){let s=[],r=[],o=null;const a=({state:m})=>{const h=RA(n,location),f=t.value,y=e.value;let b=0;if(m){if(t.value=h,e.value=m,o&&o===f){o=null;return}b=y?m.position-y.position:0}else i(h);s.forEach(g=>{g(t.value,f,{delta:b,type:ql.pop,direction:b?b>0?xl.forward:xl.back:xl.unknown})})};function c(){o=t.value}function d(m){s.push(m);const h=()=>{const f=s.indexOf(m);f>-1&&s.splice(f,1)};return r.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(Ft({},m.state,{scroll:Wu()}),"")}function _(){for(const m of r)m();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:d,destroy:_}}function JE(n,e,t,i=!1,s=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:s?Wu():null}}function v3(n){const{history:e,location:t}=window,i={value:RA(n,t)},s={value:e.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(c,d,u){const _=n.indexOf("#"),m=_>-1?(t.host&&document.querySelector("base")?n:n.slice(_))+c:y3()+n+c;try{e[u?"replaceState":"pushState"](d,"",m),s.value=d}catch(h){console.error(h),t[u?"replace":"assign"](m)}}function o(c,d){const u=Ft({},e.state,JE(s.value.back,c,s.value.forward,!0),d,{position:s.value.position});r(c,u,!0),i.value=c}function a(c,d){const u=Ft({},s.value,e.state,{forward:c,scroll:Wu()});r(u.current,u,!0);const _=Ft({},JE(i.value,c,null),{position:u.position+1},d);r(c,_,!1),i.value=c}return{location:i,state:s,push:a,replace:o}}function S3(n){n=p3(n);const e=v3(n),t=E3(n,e.state,e.location,e.replace);function i(r,o=!0){o||t.pauseListeners(),history.go(r)}const s=Ft({location:"",base:n,go:i,createHref:_3.bind(null,n)},e,t);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function T3(n){return typeof n=="string"||n&&typeof n=="object"}function AA(n){return typeof n=="string"||typeof n=="symbol"}const MA=Symbol("");var ev;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ev||(ev={}));function pa(n,e){return Ft(new Error,{type:n,[MA]:!0},e)}function hs(n,e){return n instanceof Error&&MA in n&&(e==null||!!(n.type&e))}const tv="[^/]+?",x3={sensitive:!1,strict:!1,start:!0,end:!0},C3=/[.+*?^${}()[\]/\\]/g;function w3(n,e){const t=Ft({},x3,e),i=[];let s=t.start?"^":"";const r=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(s+="/");for(let _=0;_<d.length;_++){const m=d[_];let h=40+(t.sensitive?.25:0);if(m.type===0)_||(s+="/"),s+=m.value.replace(C3,"\\$&"),h+=40;else if(m.type===1){const{value:f,repeatable:y,optional:b,regexp:g}=m;r.push({name:f,repeatable:y,optional:b});const E=g||tv;if(E!==tv){h+=10;try{new RegExp(`(${E})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${f}" (${E}): `+S.message)}}let v=y?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;_||(v=b&&d.length<2?`(?:/${v})`:"/"+v),b&&(v+="?"),s+=v,h+=20,b&&(h+=-8),y&&(h+=-20),E===".*"&&(h+=-50)}u.push(h)}i.push(u)}if(t.strict&&t.end){const d=i.length-1;i[d][i[d].length-1]+=.7000000000000001}t.strict||(s+="/?"),t.end?s+="$":t.strict&&(s+="(?:/|$)");const o=new RegExp(s,t.sensitive?"":"i");function a(d){const u=d.match(o),_={};if(!u)return null;for(let m=1;m<u.length;m++){const h=u[m]||"",f=r[m-1];_[f.name]=h&&f.repeatable?h.split("/"):h}return _}function c(d){let u="",_=!1;for(const m of n){(!_||!u.endsWith("/"))&&(u+="/"),_=!1;for(const h of m)if(h.type===0)u+=h.value;else if(h.type===1){const{value:f,repeatable:y,optional:b}=h,g=f in d?d[f]:"";if(Hi(g)&&!y)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const E=Hi(g)?g.join("/"):g;if(!E)if(b)m.length<2&&(u.endsWith("/")?u=u.slice(0,-1):_=!0);else throw new Error(`Missing required param "${f}"`);u+=E}}return u||"/"}return{re:o,score:i,keys:r,parse:a,stringify:c}}function R3(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function NA(n,e){let t=0;const i=n.score,s=e.score;for(;t<i.length&&t<s.length;){const r=R3(i[t],s[t]);if(r)return r;t++}if(Math.abs(s.length-i.length)===1){if(nv(i))return 1;if(nv(s))return-1}return s.length-i.length}function nv(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const A3={type:0,value:""},M3=/[a-zA-Z0-9_]/;function N3(n){if(!n)return[[]];if(n==="/")return[[A3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${d}": ${h}`)}let t=0,i=t;const s=[];let r;function o(){r&&s.push(r),r=[]}let a=0,c,d="",u="";function _(){d&&(t===0?r.push({type:0,value:d}):t===1||t===2||t===3?(r.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:d,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;a<n.length;){if(c=n[a++],c==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:c==="/"?(d&&_(),o()):c===":"?(_(),t=1):m();break;case 4:m(),t=i;break;case 1:c==="("?t=2:M3.test(c)?m():(_(),t=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:t=3:u+=c;break;case 3:_(),t=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${d}"`),_(),o(),s}function O3(n,e,t){const i=w3(N3(n.path),t),s=Ft(i,{record:n,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function I3(n,e){const t=[],i=new Map;e=ov({strict:!1,end:!0,sensitive:!1},e);function s(_){return i.get(_)}function r(_,m,h){const f=!h,y=sv(_);y.aliasOf=h&&h.record;const b=ov(e,_),g=[y];if("alias"in _){const S=typeof _.alias=="string"?[_.alias]:_.alias;for(const R of S)g.push(sv(Ft({},y,{components:h?h.record.components:y.components,path:R,aliasOf:h?h.record:y})))}let E,v;for(const S of g){const{path:R}=S;if(m&&R[0]!=="/"){const C=m.record.path,A=C[C.length-1]==="/"?"":"/";S.path=m.record.path+(R&&A+R)}if(E=O3(S,m,b),h?h.alias.push(E):(v=v||E,v!==E&&v.alias.push(E),f&&_.name&&!rv(E)&&o(_.name)),OA(E)&&c(E),y.children){const C=y.children;for(let A=0;A<C.length;A++)r(C[A],E,h&&h.children[A])}h=h||E}return v?()=>{o(v)}:Tl}function o(_){if(AA(_)){const m=i.get(_);m&&(i.delete(_),t.splice(t.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=t.indexOf(_);m>-1&&(t.splice(m,1),_.record.name&&i.delete(_.record.name),_.children.forEach(o),_.alias.forEach(o))}}function a(){return t}function c(_){const m=L3(_,t);t.splice(m,0,_),_.record.name&&!rv(_)&&i.set(_.record.name,_)}function d(_,m){let h,f={},y,b;if("name"in _&&_.name){if(h=i.get(_.name),!h)throw pa(1,{location:_});b=h.record.name,f=Ft(iv(m.params,h.keys.filter(v=>!v.optional).concat(h.parent?h.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),_.params&&iv(_.params,h.keys.map(v=>v.name))),y=h.stringify(f)}else if(_.path!=null)y=_.path,h=t.find(v=>v.re.test(y)),h&&(f=h.parse(y),b=h.record.name);else{if(h=m.name?i.get(m.name):t.find(v=>v.re.test(m.path)),!h)throw pa(1,{location:_,currentLocation:m});b=h.record.name,f=Ft({},m.params,_.params),y=h.stringify(f)}const g=[];let E=h;for(;E;)g.unshift(E.record),E=E.parent;return{name:b,path:y,params:f,matched:g,meta:D3(g)}}n.forEach(_=>r(_));function u(){t.length=0,i.clear()}return{addRoute:r,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function iv(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function sv(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:k3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function k3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function rv(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function D3(n){return n.reduce((e,t)=>Ft(e,t.meta),{})}function ov(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function L3(n,e){let t=0,i=e.length;for(;t!==i;){const r=t+i>>1;NA(n,e[r])<0?i=r:t=r+1}const s=P3(n);return s&&(i=e.lastIndexOf(s,i-1)),i}function P3(n){let e=n;for(;e=e.parent;)if(OA(e)&&NA(n,e)===0)return e}function OA({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function F3(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let s=0;s<i.length;++s){const r=i[s].replace(SA," "),o=r.indexOf("="),a=Hl(o<0?r:r.slice(0,o)),c=o<0?null:Hl(r.slice(o+1));if(a in e){let d=e[a];Hi(d)||(d=e[a]=[d]),d.push(c)}else e[a]=c}return e}function av(n){let e="";for(let t in n){const i=n[t];if(t=i3(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Hi(i)?i.map(r=>r&&Kg(r)):[i&&Kg(i)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+t,r!=null&&(e+="="+r))})}return e}function U3(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Hi(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return e}const B3=Symbol(""),lv=Symbol(""),c0=Symbol(""),d0=Symbol(""),Qg=Symbol("");function tl(){let n=[];function e(i){return n.push(i),()=>{const s=n.indexOf(i);s>-1&&n.splice(s,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function sr(n,e,t,i,s,r=o=>o()){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const d=m=>{m===!1?c(pa(4,{from:t,to:e})):m instanceof Error?c(m):T3(m)?c(pa(2,{from:e,to:m})):(o&&i.enterCallbacks[s]===o&&typeof m=="function"&&o.push(m),a())},u=r(()=>n.call(i&&i.instances[s],e,t,d));let _=Promise.resolve(u);n.length<3&&(_=_.then(d)),_.catch(m=>c(m))})}function Wp(n,e,t,i,s=r=>r()){const r=[];for(const o of n)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(EA(c)){const u=(c.__vccOpts||c)[e];u&&r.push(sr(u,t,i,o,a,s))}else{let d=c();r.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const _=$P(u)?u.default:u;o.mods[a]=u,o.components[a]=_;const h=(_.__vccOpts||_)[e];return h&&sr(h,t,i,o,a,s)()}))}}return r}function cv(n){const e=ri(c0),t=ri(d0),i=Je(()=>{const c=yt(n.to);return e.resolve(c)}),s=Je(()=>{const{matched:c}=i.value,{length:d}=c,u=c[d-1],_=t.matched;if(!u||!_.length)return-1;const m=_.findIndex(ua.bind(null,u));if(m>-1)return m;const h=dv(c[d-2]);return d>1&&dv(u)===h&&_[_.length-1].path!==h?_.findIndex(ua.bind(null,c[d-2])):m}),r=Je(()=>s.value>-1&&z3(t.params,i.value.params)),o=Je(()=>s.value>-1&&s.value===t.matched.length-1&&wA(t.params,i.value.params));function a(c={}){return V3(c)?e[yt(n.replace)?"replace":"push"](yt(n.to)).catch(Tl):Promise.resolve()}return{route:i,href:Je(()=>i.value.href),isActive:r,isExactActive:o,navigate:a}}const G3=cn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:cv,setup(n,{slots:e}){const t=Hn(cv(n)),{options:i}=ri(c0),s=Je(()=>({[uv(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[uv(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const r=e.default&&e.default(t);return n.custom?r:Jb("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:s.value},r)}}}),u0=G3;function V3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function z3(n,e){for(const t in e){const i=e[t],s=n[t];if(typeof i=="string"){if(i!==s)return!1}else if(!Hi(s)||s.length!==i.length||i.some((r,o)=>r!==s[o]))return!1}return!0}function dv(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const uv=(n,e,t)=>n??e??t,H3=cn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=ri(Qg),s=Je(()=>n.route||i.value),r=ri(lv,0),o=Je(()=>{let d=yt(r);const{matched:u}=s.value;let _;for(;(_=u[d])&&!_.components;)d++;return d}),a=Je(()=>s.value.matched[o.value]);na(lv,Je(()=>o.value+1)),na(B3,a),na(Qg,s);const c=ot();return Tn(()=>[c.value,a.value,n.name],([d,u,_],[m,h,f])=>{u&&(u.instances[_]=d,h&&h!==u&&d&&d===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!ua(u,h)||!m)&&(u.enterCallbacks[_]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=s.value,u=n.name,_=a.value,m=_&&_.components[u];if(!m)return pv(t.default,{Component:m,route:d});const h=_.props[u],f=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Jb(m,Ft({},f,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(_.instances[u]=null)},ref:c}));return pv(t.default,{Component:b,route:d})||b}}});function pv(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const IA=H3;function q3(n){const e=I3(n.routes,n),t=n.parseQuery||F3,i=n.stringifyQuery||av,s=n.history,r=tl(),o=tl(),a=tl(),c=GI(Ws);let d=Ws;Yo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Yp.bind(null,Q=>""+Q),_=Yp.bind(null,r3),m=Yp.bind(null,Hl);function h(Q,fe){let _e,Ae;return AA(Q)?(_e=e.getRecordMatcher(Q),Ae=fe):Ae=Q,e.addRoute(Ae,_e)}function f(Q){const fe=e.getRecordMatcher(Q);fe&&e.removeRoute(fe)}function y(){return e.getRoutes().map(Q=>Q.record)}function b(Q){return!!e.getRecordMatcher(Q)}function g(Q,fe){if(fe=Ft({},fe||c.value),typeof Q=="string"){const P=$p(t,Q,fe.path),Z=e.resolve({path:P.path},fe),ce=s.createHref(P.fullPath);return Ft(P,Z,{params:m(Z.params),hash:Hl(P.hash),redirectedFrom:void 0,href:ce})}let _e;if(Q.path!=null)_e=Ft({},Q,{path:$p(t,Q.path,fe.path).path});else{const P=Ft({},Q.params);for(const Z in P)P[Z]==null&&delete P[Z];_e=Ft({},Q,{params:_(P)}),fe.params=_(fe.params)}const Ae=e.resolve(_e,fe),Fe=Q.hash||"";Ae.params=u(m(Ae.params));const te=l3(i,Ft({},Q,{hash:n3(Fe),path:Ae.path})),U=s.createHref(te);return Ft({fullPath:te,hash:Fe,query:i===av?U3(Q.query):Q.query||{}},Ae,{redirectedFrom:void 0,href:U})}function E(Q){return typeof Q=="string"?$p(t,Q,c.value.path):Ft({},Q)}function v(Q,fe){if(d!==Q)return pa(8,{from:fe,to:Q})}function S(Q){return A(Q)}function R(Q){return S(Ft(E(Q),{replace:!0}))}function C(Q){const fe=Q.matched[Q.matched.length-1];if(fe&&fe.redirect){const{redirect:_e}=fe;let Ae=typeof _e=="function"?_e(Q):_e;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=E(Ae):{path:Ae},Ae.params={}),Ft({query:Q.query,hash:Q.hash,params:Ae.path!=null?{}:Q.params},Ae)}}function A(Q,fe){const _e=d=g(Q),Ae=c.value,Fe=Q.state,te=Q.force,U=Q.replace===!0,P=C(_e);if(P)return A(Ft(E(P),{state:typeof P=="object"?Ft({},Fe,P.state):Fe,force:te,replace:U}),fe||_e);const Z=_e;Z.redirectedFrom=fe;let ce;return!te&&c3(i,Ae,_e)&&(ce=pa(16,{to:Z,from:Ae}),ye(Ae,Ae,!0,!1)),(ce?Promise.resolve(ce):M(Z,Ae)).catch(pe=>hs(pe)?hs(pe,2)?pe:oe(pe):Y(pe,Z,Ae)).then(pe=>{if(pe){if(hs(pe,2))return A(Ft({replace:U},E(pe.to),{state:typeof pe.to=="object"?Ft({},Fe,pe.to.state):Fe,force:te}),fe||Z)}else pe=V(Z,Ae,!0,U,Fe);return G(Z,Ae,pe),pe})}function I(Q,fe){const _e=v(Q,fe);return _e?Promise.reject(_e):Promise.resolve()}function x(Q){const fe=ve.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(Q):Q()}function M(Q,fe){let _e;const[Ae,Fe,te]=Y3(Q,fe);_e=Wp(Ae.reverse(),"beforeRouteLeave",Q,fe);for(const P of Ae)P.leaveGuards.forEach(Z=>{_e.push(sr(Z,Q,fe))});const U=I.bind(null,Q,fe);return _e.push(U),De(_e).then(()=>{_e=[];for(const P of r.list())_e.push(sr(P,Q,fe));return _e.push(U),De(_e)}).then(()=>{_e=Wp(Fe,"beforeRouteUpdate",Q,fe);for(const P of Fe)P.updateGuards.forEach(Z=>{_e.push(sr(Z,Q,fe))});return _e.push(U),De(_e)}).then(()=>{_e=[];for(const P of te)if(P.beforeEnter)if(Hi(P.beforeEnter))for(const Z of P.beforeEnter)_e.push(sr(Z,Q,fe));else _e.push(sr(P.beforeEnter,Q,fe));return _e.push(U),De(_e)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),_e=Wp(te,"beforeRouteEnter",Q,fe,x),_e.push(U),De(_e))).then(()=>{_e=[];for(const P of o.list())_e.push(sr(P,Q,fe));return _e.push(U),De(_e)}).catch(P=>hs(P,8)?P:Promise.reject(P))}function G(Q,fe,_e){a.list().forEach(Ae=>x(()=>Ae(Q,fe,_e)))}function V(Q,fe,_e,Ae,Fe){const te=v(Q,fe);if(te)return te;const U=fe===Ws,P=Yo?history.state:{};_e&&(Ae||U?s.replace(Q.fullPath,Ft({scroll:U&&P&&P.scroll},Fe)):s.push(Q.fullPath,Fe)),c.value=Q,ye(Q,fe,_e,U),oe()}let ee;function O(){ee||(ee=s.listen((Q,fe,_e)=>{if(!Oe.listening)return;const Ae=g(Q),Fe=C(Ae);if(Fe){A(Ft(Fe,{replace:!0}),Ae).catch(Tl);return}d=Ae;const te=c.value;Yo&&g3(ZE(te.fullPath,_e.delta),Wu()),M(Ae,te).catch(U=>hs(U,12)?U:hs(U,2)?(A(U.to,Ae).then(P=>{hs(P,20)&&!_e.delta&&_e.type===ql.pop&&s.go(-1,!1)}).catch(Tl),Promise.reject()):(_e.delta&&s.go(-_e.delta,!1),Y(U,Ae,te))).then(U=>{U=U||V(Ae,te,!1),U&&(_e.delta&&!hs(U,8)?s.go(-_e.delta,!1):_e.type===ql.pop&&hs(U,20)&&s.go(-1,!1)),G(Ae,te,U)}).catch(Tl)}))}let H=tl(),q=tl(),L;function Y(Q,fe,_e){oe(Q);const Ae=q.list();return Ae.length?Ae.forEach(Fe=>Fe(Q,fe,_e)):console.error(Q),Promise.reject(Q)}function ne(){return L&&c.value!==Ws?Promise.resolve():new Promise((Q,fe)=>{H.add([Q,fe])})}function oe(Q){return L||(L=!Q,O(),H.list().forEach(([fe,_e])=>Q?_e(Q):fe()),H.reset()),Q}function ye(Q,fe,_e,Ae){const{scrollBehavior:Fe}=n;if(!Yo||!Fe)return Promise.resolve();const te=!_e&&b3(ZE(Q.fullPath,0))||(Ae||!_e)&&history.state&&history.state.scroll||null;return Le().then(()=>Fe(Q,fe,te)).then(U=>U&&h3(U)).catch(U=>Y(U,Q,fe))}const xe=Q=>s.go(Q);let le;const ve=new Set,Oe={currentRoute:c,listening:!0,addRoute:h,removeRoute:f,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:y,resolve:g,options:n,push:S,replace:R,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:q.add,isReady:ne,install(Q){const fe=this;Q.component("RouterLink",u0),Q.component("RouterView",IA),Q.config.globalProperties.$router=fe,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>yt(c)}),Yo&&!le&&c.value===Ws&&(le=!0,S(s.location).catch(Fe=>{}));const _e={};for(const Fe in Ws)Object.defineProperty(_e,Fe,{get:()=>c.value[Fe],enumerable:!0});Q.provide(c0,fe),Q.provide(d0,F2(_e)),Q.provide(Qg,c);const Ae=Q.unmount;ve.add(Q),Q.unmount=function(){ve.delete(Q),ve.size<1&&(d=Ws,ee&&ee(),ee=null,c.value=Ws,le=!1,L=!1),Ae()}}};function De(Q){return Q.reduce((fe,_e)=>fe.then(()=>x(_e)),Promise.resolve())}return Oe}function Y3(n,e){const t=[],i=[],s=[],r=Math.max(e.matched.length,n.matched.length);for(let o=0;o<r;o++){const a=e.matched[o];a&&(n.matched.find(d=>ua(d,a))?i.push(a):t.push(a));const c=n.matched[o];c&&(e.matched.find(d=>ua(d,c))||s.push(c))}return[t,i,s]}function $3(n){return ri(d0)}const W3="modulepreload",K3=function(n){return"/"+n},fv={},Kp=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(t.map(c=>{if(c=K3(c),c in fv)return;fv[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":W3,d||(_.as="script"),_.crossOrigin="",_.href=c,a&&_.setAttribute("nonce",a),document.head.appendChild(_),d)return new Promise((m,h)=>{_.addEventListener("load",m),_.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},j3={class:"navbar-container z-60"},Q3={class:"game-menu"},X3={key:0,class:"feather-emoji"},Z3={name:"Navigation",computed:{filteredNavLinks(){return filteredNavLinks.value}}},J3=Object.assign(Z3,{setup(n){const e=$3(),t=ot(0),i=ot([]),s=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Pi.state.config.enable_sd_service||Pi.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Pi.state.config.enable_comfyui_service||Pi.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Pi.state.config.active_tts_service!=="None"&&Pi.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],r=Je(()=>Pi.state.ready?s.filter(d=>d.condition?d.condition():d.active):s.filter(d=>d.active));cs(()=>{o()}),Tn(()=>e.name,o);function o(){const d=r.value.findIndex(u=>u.route===e.name);d!==-1&&(t.value=d)}function a(d){return e.name===d}function c(d){t.value=d}return(d,u)=>(T(),w("div",j3,[l("nav",Q3,[(T(!0),w(Be,null,Xe(r.value,(_,m)=>(T(),at(yt(u0),{key:m,to:{name:_.route},class:Ue(["menu-item",{"active-link":a(_.route)}]),onClick:h=>c(m),ref_for:!0,ref_key:"menuItems",ref:i},{default:Ie(()=>[Ze($(_.text)+" ",1),a(_.route)?(T(),w("span",X3,"🌟")):B("",!0)]),_:2},1032,["to","class","onClick"]))),128))])]))}}),st=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},e4={name:"TopBar",components:{Navigation:J3},data(){return{isinfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},methods:{themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Kp(()=>Promise.resolve().then(()=>tYe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){console.log("showing menu"),this.isInfosMenuVisible=!0},hideInfosMenu(){this.isInfosMenuVisible=!1},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show()},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),nextTick(()=>{Kp(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}nextTick(()=>{Kp(()=>Promise.resolve({}),__vite__mapDeps([1]))}),this.sunIcon.classList.add("display-none")},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},t4={class:"topbar-container"},n4={class:"topbar-content"},i4=["title"],s4=["fill"],r4={class:"relative inline-block"},o4={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},a4={class:"flex gap-3 flex-1 items-center justify-end"},l4={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},c4={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},d4={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},u4={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},p4={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},f4={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},_4={class:"flex items-center space-x-4"},m4={class:"relative group",title:"Lollms News"},h4={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},g4={class:"language-selector relative"},b4={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},y4={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},E4=["onClick"],v4=["onClick"],S4={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"};function T4(n,e,t,i,s,r){const o=nt("Navigation"),a=nt("ActionButton"),c=nt("SocialIcon");return T(),w("div",t4,[l("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...d)=>r.show&&r.show(...d)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),l("div",{class:Ue(["topbar",{"topbar-hidden":!s.isVisible}]),onMouseleave:e[13]||(e[13]=(...d)=>r.hide&&r.hide(...d))},[l("div",n4,[on(n.$slots,"navigation",{},void 0,!0),l("button",{class:"pin-button",onClick:e[1]||(e[1]=(...d)=>r.togglePin&&r.togglePin(...d)),title:s.isPinned?"Unpin":"Pin"},[(T(),w("svg",{fill:s.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[14]||(e[14]=[l("g",null,[l("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r
+  */const Yo=typeof document<"u";function EA(n){return typeof n=="object"||"displayName"in n||"props"in n||"__vccOpts"in n}function $P(n){return n.__esModule||n[Symbol.toStringTag]==="Module"||n.default&&EA(n.default)}const Ft=Object.assign;function Yp(n,e){const t={};for(const i in e){const s=e[i];t[i]=Hi(s)?s.map(n):n(s)}return t}const Tl=()=>{},Hi=Array.isArray,vA=/#/g,WP=/&/g,KP=/\//g,jP=/=/g,QP=/\?/g,SA=/\+/g,XP=/%5B/g,ZP=/%5D/g,TA=/%5E/g,JP=/%60/g,xA=/%7B/g,e3=/%7C/g,CA=/%7D/g,t3=/%20/g;function l0(n){return encodeURI(""+n).replace(e3,"|").replace(XP,"[").replace(ZP,"]")}function n3(n){return l0(n).replace(xA,"{").replace(CA,"}").replace(TA,"^")}function Kg(n){return l0(n).replace(SA,"%2B").replace(t3,"+").replace(vA,"%23").replace(WP,"%26").replace(JP,"`").replace(xA,"{").replace(CA,"}").replace(TA,"^")}function i3(n){return Kg(n).replace(jP,"%3D")}function s3(n){return l0(n).replace(vA,"%23").replace(QP,"%3F")}function r3(n){return n==null?"":s3(n).replace(KP,"%2F")}function Hl(n){try{return decodeURIComponent(""+n)}catch{}return""+n}const o3=/\/$/,a3=n=>n.replace(o3,"");function $p(n,e,t="/"){let i,s={},r="",o="";const a=e.indexOf("#");let c=e.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(i=e.slice(0,c),r=e.slice(c+1,a>-1?a:e.length),s=n(r)),a>-1&&(i=i||e.slice(0,a),o=e.slice(a,e.length)),i=u3(i??e,t),{fullPath:i+(r&&"?")+r+o,path:i,query:s,hash:Hl(o)}}function l3(n,e){const t=e.query?n(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function QE(n,e){return!e||!n.toLowerCase().startsWith(e.toLowerCase())?n:n.slice(e.length)||"/"}function c3(n,e,t){const i=e.matched.length-1,s=t.matched.length-1;return i>-1&&i===s&&ua(e.matched[i],t.matched[s])&&wA(e.params,t.params)&&n(e.query)===n(t.query)&&e.hash===t.hash}function ua(n,e){return(n.aliasOf||n)===(e.aliasOf||e)}function wA(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(!d3(n[t],e[t]))return!1;return!0}function d3(n,e){return Hi(n)?XE(n,e):Hi(e)?XE(e,n):n===e}function XE(n,e){return Hi(e)?n.length===e.length&&n.every((t,i)=>t===e[i]):n.length===1&&n[0]===e}function u3(n,e){if(n.startsWith("/"))return n;if(!n)return e;const t=e.split("/"),i=n.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=t.length-1,o,a;for(o=0;o<i.length;o++)if(a=i[o],a!==".")if(a==="..")r>1&&r--;else break;return t.slice(0,r).join("/")+"/"+i.slice(o).join("/")}const Ws={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ql;(function(n){n.pop="pop",n.push="push"})(ql||(ql={}));var xl;(function(n){n.back="back",n.forward="forward",n.unknown=""})(xl||(xl={}));function p3(n){if(!n)if(Yo){const e=document.querySelector("base");n=e&&e.getAttribute("href")||"/",n=n.replace(/^\w+:\/\/[^\/]+/,"")}else n="/";return n[0]!=="/"&&n[0]!=="#"&&(n="/"+n),a3(n)}const f3=/^[^#]+#/;function _3(n,e){return n.replace(f3,"#")+e}function m3(n,e){const t=document.documentElement.getBoundingClientRect(),i=n.getBoundingClientRect();return{behavior:e.behavior,left:i.left-t.left-(e.left||0),top:i.top-t.top-(e.top||0)}}const Wu=()=>({left:window.scrollX,top:window.scrollY});function h3(n){let e;if("el"in n){const t=n.el,i=typeof t=="string"&&t.startsWith("#"),s=typeof t=="string"?i?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!s)return;e=m3(s,n)}else e=n;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function ZE(n,e){return(history.state?history.state.position-e:-1)+n}const jg=new Map;function g3(n,e){jg.set(n,e)}function b3(n){const e=jg.get(n);return jg.delete(n),e}let y3=()=>location.protocol+"//"+location.host;function RA(n,e){const{pathname:t,search:i,hash:s}=e,r=n.indexOf("#");if(r>-1){let a=s.includes(n.slice(r))?n.slice(r).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),QE(c,"")}return QE(t,n)+i+s}function E3(n,e,t,i){let s=[],r=[],o=null;const a=({state:m})=>{const h=RA(n,location),f=t.value,y=e.value;let b=0;if(m){if(t.value=h,e.value=m,o&&o===f){o=null;return}b=y?m.position-y.position:0}else i(h);s.forEach(g=>{g(t.value,f,{delta:b,type:ql.pop,direction:b?b>0?xl.forward:xl.back:xl.unknown})})};function c(){o=t.value}function d(m){s.push(m);const h=()=>{const f=s.indexOf(m);f>-1&&s.splice(f,1)};return r.push(h),h}function u(){const{history:m}=window;m.state&&m.replaceState(Ft({},m.state,{scroll:Wu()}),"")}function _(){for(const m of r)m();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:d,destroy:_}}function JE(n,e,t,i=!1,s=!1){return{back:n,current:e,forward:t,replaced:i,position:window.history.length,scroll:s?Wu():null}}function v3(n){const{history:e,location:t}=window,i={value:RA(n,t)},s={value:e.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(c,d,u){const _=n.indexOf("#"),m=_>-1?(t.host&&document.querySelector("base")?n:n.slice(_))+c:y3()+n+c;try{e[u?"replaceState":"pushState"](d,"",m),s.value=d}catch(h){console.error(h),t[u?"replace":"assign"](m)}}function o(c,d){const u=Ft({},e.state,JE(s.value.back,c,s.value.forward,!0),d,{position:s.value.position});r(c,u,!0),i.value=c}function a(c,d){const u=Ft({},s.value,e.state,{forward:c,scroll:Wu()});r(u.current,u,!0);const _=Ft({},JE(i.value,c,null),{position:u.position+1},d);r(c,_,!1),i.value=c}return{location:i,state:s,push:a,replace:o}}function S3(n){n=p3(n);const e=v3(n),t=E3(n,e.state,e.location,e.replace);function i(r,o=!0){o||t.pauseListeners(),history.go(r)}const s=Ft({location:"",base:n,go:i,createHref:_3.bind(null,n)},e,t);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>e.state.value}),s}function T3(n){return typeof n=="string"||n&&typeof n=="object"}function AA(n){return typeof n=="string"||typeof n=="symbol"}const MA=Symbol("");var ev;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(ev||(ev={}));function pa(n,e){return Ft(new Error,{type:n,[MA]:!0},e)}function hs(n,e){return n instanceof Error&&MA in n&&(e==null||!!(n.type&e))}const tv="[^/]+?",x3={sensitive:!1,strict:!1,start:!0,end:!0},C3=/[.+*?^${}()[\]/\\]/g;function w3(n,e){const t=Ft({},x3,e),i=[];let s=t.start?"^":"";const r=[];for(const d of n){const u=d.length?[]:[90];t.strict&&!d.length&&(s+="/");for(let _=0;_<d.length;_++){const m=d[_];let h=40+(t.sensitive?.25:0);if(m.type===0)_||(s+="/"),s+=m.value.replace(C3,"\\$&"),h+=40;else if(m.type===1){const{value:f,repeatable:y,optional:b,regexp:g}=m;r.push({name:f,repeatable:y,optional:b});const E=g||tv;if(E!==tv){h+=10;try{new RegExp(`(${E})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${f}" (${E}): `+S.message)}}let v=y?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;_||(v=b&&d.length<2?`(?:/${v})`:"/"+v),b&&(v+="?"),s+=v,h+=20,b&&(h+=-8),y&&(h+=-20),E===".*"&&(h+=-50)}u.push(h)}i.push(u)}if(t.strict&&t.end){const d=i.length-1;i[d][i[d].length-1]+=.7000000000000001}t.strict||(s+="/?"),t.end?s+="$":t.strict&&(s+="(?:/|$)");const o=new RegExp(s,t.sensitive?"":"i");function a(d){const u=d.match(o),_={};if(!u)return null;for(let m=1;m<u.length;m++){const h=u[m]||"",f=r[m-1];_[f.name]=h&&f.repeatable?h.split("/"):h}return _}function c(d){let u="",_=!1;for(const m of n){(!_||!u.endsWith("/"))&&(u+="/"),_=!1;for(const h of m)if(h.type===0)u+=h.value;else if(h.type===1){const{value:f,repeatable:y,optional:b}=h,g=f in d?d[f]:"";if(Hi(g)&&!y)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const E=Hi(g)?g.join("/"):g;if(!E)if(b)m.length<2&&(u.endsWith("/")?u=u.slice(0,-1):_=!0);else throw new Error(`Missing required param "${f}"`);u+=E}}return u||"/"}return{re:o,score:i,keys:r,parse:a,stringify:c}}function R3(n,e){let t=0;for(;t<n.length&&t<e.length;){const i=e[t]-n[t];if(i)return i;t++}return n.length<e.length?n.length===1&&n[0]===80?-1:1:n.length>e.length?e.length===1&&e[0]===80?1:-1:0}function NA(n,e){let t=0;const i=n.score,s=e.score;for(;t<i.length&&t<s.length;){const r=R3(i[t],s[t]);if(r)return r;t++}if(Math.abs(s.length-i.length)===1){if(nv(i))return 1;if(nv(s))return-1}return s.length-i.length}function nv(n){const e=n[n.length-1];return n.length>0&&e[e.length-1]<0}const A3={type:0,value:""},M3=/[a-zA-Z0-9_]/;function N3(n){if(!n)return[[]];if(n==="/")return[[A3]];if(!n.startsWith("/"))throw new Error(`Invalid path "${n}"`);function e(h){throw new Error(`ERR (${t})/"${d}": ${h}`)}let t=0,i=t;const s=[];let r;function o(){r&&s.push(r),r=[]}let a=0,c,d="",u="";function _(){d&&(t===0?r.push({type:0,value:d}):t===1||t===2||t===3?(r.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:d,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;a<n.length;){if(c=n[a++],c==="\\"&&t!==2){i=t,t=4;continue}switch(t){case 0:c==="/"?(d&&_(),o()):c===":"?(_(),t=1):m();break;case 4:m(),t=i;break;case 1:c==="("?t=2:M3.test(c)?m():(_(),t=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+c:t=3:u+=c;break;case 3:_(),t=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,u="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${d}"`),_(),o(),s}function O3(n,e,t){const i=w3(N3(n.path),t),s=Ft(i,{record:n,parent:e,children:[],alias:[]});return e&&!s.record.aliasOf==!e.record.aliasOf&&e.children.push(s),s}function I3(n,e){const t=[],i=new Map;e=ov({strict:!1,end:!0,sensitive:!1},e);function s(_){return i.get(_)}function r(_,m,h){const f=!h,y=sv(_);y.aliasOf=h&&h.record;const b=ov(e,_),g=[y];if("alias"in _){const S=typeof _.alias=="string"?[_.alias]:_.alias;for(const R of S)g.push(sv(Ft({},y,{components:h?h.record.components:y.components,path:R,aliasOf:h?h.record:y})))}let E,v;for(const S of g){const{path:R}=S;if(m&&R[0]!=="/"){const C=m.record.path,A=C[C.length-1]==="/"?"":"/";S.path=m.record.path+(R&&A+R)}if(E=O3(S,m,b),h?h.alias.push(E):(v=v||E,v!==E&&v.alias.push(E),f&&_.name&&!rv(E)&&o(_.name)),OA(E)&&c(E),y.children){const C=y.children;for(let A=0;A<C.length;A++)r(C[A],E,h&&h.children[A])}h=h||E}return v?()=>{o(v)}:Tl}function o(_){if(AA(_)){const m=i.get(_);m&&(i.delete(_),t.splice(t.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=t.indexOf(_);m>-1&&(t.splice(m,1),_.record.name&&i.delete(_.record.name),_.children.forEach(o),_.alias.forEach(o))}}function a(){return t}function c(_){const m=L3(_,t);t.splice(m,0,_),_.record.name&&!rv(_)&&i.set(_.record.name,_)}function d(_,m){let h,f={},y,b;if("name"in _&&_.name){if(h=i.get(_.name),!h)throw pa(1,{location:_});b=h.record.name,f=Ft(iv(m.params,h.keys.filter(v=>!v.optional).concat(h.parent?h.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),_.params&&iv(_.params,h.keys.map(v=>v.name))),y=h.stringify(f)}else if(_.path!=null)y=_.path,h=t.find(v=>v.re.test(y)),h&&(f=h.parse(y),b=h.record.name);else{if(h=m.name?i.get(m.name):t.find(v=>v.re.test(m.path)),!h)throw pa(1,{location:_,currentLocation:m});b=h.record.name,f=Ft({},m.params,_.params),y=h.stringify(f)}const g=[];let E=h;for(;E;)g.unshift(E.record),E=E.parent;return{name:b,path:y,params:f,matched:g,meta:D3(g)}}n.forEach(_=>r(_));function u(){t.length=0,i.clear()}return{addRoute:r,resolve:d,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function iv(n,e){const t={};for(const i of e)i in n&&(t[i]=n[i]);return t}function sv(n){const e={path:n.path,redirect:n.redirect,name:n.name,meta:n.meta||{},aliasOf:n.aliasOf,beforeEnter:n.beforeEnter,props:k3(n),children:n.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in n?n.components||null:n.component&&{default:n.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function k3(n){const e={},t=n.props||!1;if("component"in n)e.default=t;else for(const i in n.components)e[i]=typeof t=="object"?t[i]:t;return e}function rv(n){for(;n;){if(n.record.aliasOf)return!0;n=n.parent}return!1}function D3(n){return n.reduce((e,t)=>Ft(e,t.meta),{})}function ov(n,e){const t={};for(const i in n)t[i]=i in e?e[i]:n[i];return t}function L3(n,e){let t=0,i=e.length;for(;t!==i;){const r=t+i>>1;NA(n,e[r])<0?i=r:t=r+1}const s=P3(n);return s&&(i=e.lastIndexOf(s,i-1)),i}function P3(n){let e=n;for(;e=e.parent;)if(OA(e)&&NA(n,e)===0)return e}function OA({record:n}){return!!(n.name||n.components&&Object.keys(n.components).length||n.redirect)}function F3(n){const e={};if(n===""||n==="?")return e;const i=(n[0]==="?"?n.slice(1):n).split("&");for(let s=0;s<i.length;++s){const r=i[s].replace(SA," "),o=r.indexOf("="),a=Hl(o<0?r:r.slice(0,o)),c=o<0?null:Hl(r.slice(o+1));if(a in e){let d=e[a];Hi(d)||(d=e[a]=[d]),d.push(c)}else e[a]=c}return e}function av(n){let e="";for(let t in n){const i=n[t];if(t=i3(t),i==null){i!==void 0&&(e+=(e.length?"&":"")+t);continue}(Hi(i)?i.map(r=>r&&Kg(r)):[i&&Kg(i)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+t,r!=null&&(e+="="+r))})}return e}function U3(n){const e={};for(const t in n){const i=n[t];i!==void 0&&(e[t]=Hi(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return e}const B3=Symbol(""),lv=Symbol(""),c0=Symbol(""),d0=Symbol(""),Qg=Symbol("");function tl(){let n=[];function e(i){return n.push(i),()=>{const s=n.indexOf(i);s>-1&&n.splice(s,1)}}function t(){n=[]}return{add:e,list:()=>n.slice(),reset:t}}function sr(n,e,t,i,s,r=o=>o()){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const d=m=>{m===!1?c(pa(4,{from:t,to:e})):m instanceof Error?c(m):T3(m)?c(pa(2,{from:e,to:m})):(o&&i.enterCallbacks[s]===o&&typeof m=="function"&&o.push(m),a())},u=r(()=>n.call(i&&i.instances[s],e,t,d));let _=Promise.resolve(u);n.length<3&&(_=_.then(d)),_.catch(m=>c(m))})}function Wp(n,e,t,i,s=r=>r()){const r=[];for(const o of n)for(const a in o.components){let c=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(EA(c)){const u=(c.__vccOpts||c)[e];u&&r.push(sr(u,t,i,o,a,s))}else{let d=c();r.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const _=$P(u)?u.default:u;o.mods[a]=u,o.components[a]=_;const h=(_.__vccOpts||_)[e];return h&&sr(h,t,i,o,a,s)()}))}}return r}function cv(n){const e=ri(c0),t=ri(d0),i=Je(()=>{const c=yt(n.to);return e.resolve(c)}),s=Je(()=>{const{matched:c}=i.value,{length:d}=c,u=c[d-1],_=t.matched;if(!u||!_.length)return-1;const m=_.findIndex(ua.bind(null,u));if(m>-1)return m;const h=dv(c[d-2]);return d>1&&dv(u)===h&&_[_.length-1].path!==h?_.findIndex(ua.bind(null,c[d-2])):m}),r=Je(()=>s.value>-1&&z3(t.params,i.value.params)),o=Je(()=>s.value>-1&&s.value===t.matched.length-1&&wA(t.params,i.value.params));function a(c={}){return V3(c)?e[yt(n.replace)?"replace":"push"](yt(n.to)).catch(Tl):Promise.resolve()}return{route:i,href:Je(()=>i.value.href),isActive:r,isExactActive:o,navigate:a}}const G3=cn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:cv,setup(n,{slots:e}){const t=Hn(cv(n)),{options:i}=ri(c0),s=Je(()=>({[uv(n.activeClass,i.linkActiveClass,"router-link-active")]:t.isActive,[uv(n.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const r=e.default&&e.default(t);return n.custom?r:Jb("a",{"aria-current":t.isExactActive?n.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:s.value},r)}}}),u0=G3;function V3(n){if(!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&!(n.button!==void 0&&n.button!==0)){if(n.currentTarget&&n.currentTarget.getAttribute){const e=n.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return n.preventDefault&&n.preventDefault(),!0}}function z3(n,e){for(const t in e){const i=e[t],s=n[t];if(typeof i=="string"){if(i!==s)return!1}else if(!Hi(s)||s.length!==i.length||i.some((r,o)=>r!==s[o]))return!1}return!0}function dv(n){return n?n.aliasOf?n.aliasOf.path:n.path:""}const uv=(n,e,t)=>n??e??t,H3=cn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(n,{attrs:e,slots:t}){const i=ri(Qg),s=Je(()=>n.route||i.value),r=ri(lv,0),o=Je(()=>{let d=yt(r);const{matched:u}=s.value;let _;for(;(_=u[d])&&!_.components;)d++;return d}),a=Je(()=>s.value.matched[o.value]);na(lv,Je(()=>o.value+1)),na(B3,a),na(Qg,s);const c=ot();return Tn(()=>[c.value,a.value,n.name],([d,u,_],[m,h,f])=>{u&&(u.instances[_]=d,h&&h!==u&&d&&d===m&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),d&&u&&(!h||!ua(u,h)||!m)&&(u.enterCallbacks[_]||[]).forEach(y=>y(d))},{flush:"post"}),()=>{const d=s.value,u=n.name,_=a.value,m=_&&_.components[u];if(!m)return pv(t.default,{Component:m,route:d});const h=_.props[u],f=h?h===!0?d.params:typeof h=="function"?h(d):h:null,b=Jb(m,Ft({},f,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(_.instances[u]=null)},ref:c}));return pv(t.default,{Component:b,route:d})||b}}});function pv(n,e){if(!n)return null;const t=n(e);return t.length===1?t[0]:t}const IA=H3;function q3(n){const e=I3(n.routes,n),t=n.parseQuery||F3,i=n.stringifyQuery||av,s=n.history,r=tl(),o=tl(),a=tl(),c=GI(Ws);let d=Ws;Yo&&n.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Yp.bind(null,Q=>""+Q),_=Yp.bind(null,r3),m=Yp.bind(null,Hl);function h(Q,fe){let _e,Ae;return AA(Q)?(_e=e.getRecordMatcher(Q),Ae=fe):Ae=Q,e.addRoute(Ae,_e)}function f(Q){const fe=e.getRecordMatcher(Q);fe&&e.removeRoute(fe)}function y(){return e.getRoutes().map(Q=>Q.record)}function b(Q){return!!e.getRecordMatcher(Q)}function g(Q,fe){if(fe=Ft({},fe||c.value),typeof Q=="string"){const P=$p(t,Q,fe.path),Z=e.resolve({path:P.path},fe),ce=s.createHref(P.fullPath);return Ft(P,Z,{params:m(Z.params),hash:Hl(P.hash),redirectedFrom:void 0,href:ce})}let _e;if(Q.path!=null)_e=Ft({},Q,{path:$p(t,Q.path,fe.path).path});else{const P=Ft({},Q.params);for(const Z in P)P[Z]==null&&delete P[Z];_e=Ft({},Q,{params:_(P)}),fe.params=_(fe.params)}const Ae=e.resolve(_e,fe),Fe=Q.hash||"";Ae.params=u(m(Ae.params));const te=l3(i,Ft({},Q,{hash:n3(Fe),path:Ae.path})),U=s.createHref(te);return Ft({fullPath:te,hash:Fe,query:i===av?U3(Q.query):Q.query||{}},Ae,{redirectedFrom:void 0,href:U})}function E(Q){return typeof Q=="string"?$p(t,Q,c.value.path):Ft({},Q)}function v(Q,fe){if(d!==Q)return pa(8,{from:fe,to:Q})}function S(Q){return A(Q)}function R(Q){return S(Ft(E(Q),{replace:!0}))}function C(Q){const fe=Q.matched[Q.matched.length-1];if(fe&&fe.redirect){const{redirect:_e}=fe;let Ae=typeof _e=="function"?_e(Q):_e;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=E(Ae):{path:Ae},Ae.params={}),Ft({query:Q.query,hash:Q.hash,params:Ae.path!=null?{}:Q.params},Ae)}}function A(Q,fe){const _e=d=g(Q),Ae=c.value,Fe=Q.state,te=Q.force,U=Q.replace===!0,P=C(_e);if(P)return A(Ft(E(P),{state:typeof P=="object"?Ft({},Fe,P.state):Fe,force:te,replace:U}),fe||_e);const Z=_e;Z.redirectedFrom=fe;let ce;return!te&&c3(i,Ae,_e)&&(ce=pa(16,{to:Z,from:Ae}),ye(Ae,Ae,!0,!1)),(ce?Promise.resolve(ce):M(Z,Ae)).catch(pe=>hs(pe)?hs(pe,2)?pe:oe(pe):Y(pe,Z,Ae)).then(pe=>{if(pe){if(hs(pe,2))return A(Ft({replace:U},E(pe.to),{state:typeof pe.to=="object"?Ft({},Fe,pe.to.state):Fe,force:te}),fe||Z)}else pe=V(Z,Ae,!0,U,Fe);return G(Z,Ae,pe),pe})}function I(Q,fe){const _e=v(Q,fe);return _e?Promise.reject(_e):Promise.resolve()}function x(Q){const fe=ve.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(Q):Q()}function M(Q,fe){let _e;const[Ae,Fe,te]=Y3(Q,fe);_e=Wp(Ae.reverse(),"beforeRouteLeave",Q,fe);for(const P of Ae)P.leaveGuards.forEach(Z=>{_e.push(sr(Z,Q,fe))});const U=I.bind(null,Q,fe);return _e.push(U),De(_e).then(()=>{_e=[];for(const P of r.list())_e.push(sr(P,Q,fe));return _e.push(U),De(_e)}).then(()=>{_e=Wp(Fe,"beforeRouteUpdate",Q,fe);for(const P of Fe)P.updateGuards.forEach(Z=>{_e.push(sr(Z,Q,fe))});return _e.push(U),De(_e)}).then(()=>{_e=[];for(const P of te)if(P.beforeEnter)if(Hi(P.beforeEnter))for(const Z of P.beforeEnter)_e.push(sr(Z,Q,fe));else _e.push(sr(P.beforeEnter,Q,fe));return _e.push(U),De(_e)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),_e=Wp(te,"beforeRouteEnter",Q,fe,x),_e.push(U),De(_e))).then(()=>{_e=[];for(const P of o.list())_e.push(sr(P,Q,fe));return _e.push(U),De(_e)}).catch(P=>hs(P,8)?P:Promise.reject(P))}function G(Q,fe,_e){a.list().forEach(Ae=>x(()=>Ae(Q,fe,_e)))}function V(Q,fe,_e,Ae,Fe){const te=v(Q,fe);if(te)return te;const U=fe===Ws,P=Yo?history.state:{};_e&&(Ae||U?s.replace(Q.fullPath,Ft({scroll:U&&P&&P.scroll},Fe)):s.push(Q.fullPath,Fe)),c.value=Q,ye(Q,fe,_e,U),oe()}let ee;function O(){ee||(ee=s.listen((Q,fe,_e)=>{if(!Oe.listening)return;const Ae=g(Q),Fe=C(Ae);if(Fe){A(Ft(Fe,{replace:!0}),Ae).catch(Tl);return}d=Ae;const te=c.value;Yo&&g3(ZE(te.fullPath,_e.delta),Wu()),M(Ae,te).catch(U=>hs(U,12)?U:hs(U,2)?(A(U.to,Ae).then(P=>{hs(P,20)&&!_e.delta&&_e.type===ql.pop&&s.go(-1,!1)}).catch(Tl),Promise.reject()):(_e.delta&&s.go(-_e.delta,!1),Y(U,Ae,te))).then(U=>{U=U||V(Ae,te,!1),U&&(_e.delta&&!hs(U,8)?s.go(-_e.delta,!1):_e.type===ql.pop&&hs(U,20)&&s.go(-1,!1)),G(Ae,te,U)}).catch(Tl)}))}let H=tl(),q=tl(),L;function Y(Q,fe,_e){oe(Q);const Ae=q.list();return Ae.length?Ae.forEach(Fe=>Fe(Q,fe,_e)):console.error(Q),Promise.reject(Q)}function ne(){return L&&c.value!==Ws?Promise.resolve():new Promise((Q,fe)=>{H.add([Q,fe])})}function oe(Q){return L||(L=!Q,O(),H.list().forEach(([fe,_e])=>Q?_e(Q):fe()),H.reset()),Q}function ye(Q,fe,_e,Ae){const{scrollBehavior:Fe}=n;if(!Yo||!Fe)return Promise.resolve();const te=!_e&&b3(ZE(Q.fullPath,0))||(Ae||!_e)&&history.state&&history.state.scroll||null;return Le().then(()=>Fe(Q,fe,te)).then(U=>U&&h3(U)).catch(U=>Y(U,Q,fe))}const xe=Q=>s.go(Q);let le;const ve=new Set,Oe={currentRoute:c,listening:!0,addRoute:h,removeRoute:f,clearRoutes:e.clearRoutes,hasRoute:b,getRoutes:y,resolve:g,options:n,push:S,replace:R,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:q.add,isReady:ne,install(Q){const fe=this;Q.component("RouterLink",u0),Q.component("RouterView",IA),Q.config.globalProperties.$router=fe,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>yt(c)}),Yo&&!le&&c.value===Ws&&(le=!0,S(s.location).catch(Fe=>{}));const _e={};for(const Fe in Ws)Object.defineProperty(_e,Fe,{get:()=>c.value[Fe],enumerable:!0});Q.provide(c0,fe),Q.provide(d0,F2(_e)),Q.provide(Qg,c);const Ae=Q.unmount;ve.add(Q),Q.unmount=function(){ve.delete(Q),ve.size<1&&(d=Ws,ee&&ee(),ee=null,c.value=Ws,le=!1,L=!1),Ae()}}};function De(Q){return Q.reduce((fe,_e)=>fe.then(()=>x(_e)),Promise.resolve())}return Oe}function Y3(n,e){const t=[],i=[],s=[],r=Math.max(e.matched.length,n.matched.length);for(let o=0;o<r;o++){const a=e.matched[o];a&&(n.matched.find(d=>ua(d,a))?i.push(a):t.push(a));const c=n.matched[o];c&&(e.matched.find(d=>ua(d,c))||s.push(c))}return[t,i,s]}function $3(n){return ri(d0)}const W3="modulepreload",K3=function(n){return"/"+n},fv={},Kp=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(t.map(c=>{if(c=K3(c),c in fv)return;fv[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const _=document.createElement("link");if(_.rel=d?"stylesheet":W3,d||(_.as="script"),_.crossOrigin="",_.href=c,a&&_.setAttribute("nonce",a),document.head.appendChild(_),d)return new Promise((m,h)=>{_.addEventListener("load",m),_.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},j3={class:"navbar-container z-60"},Q3={class:"game-menu"},X3={key:0,class:"feather-emoji"},Z3={name:"Navigation",computed:{filteredNavLinks(){return filteredNavLinks.value}}},J3=Object.assign(Z3,{setup(n){const e=$3(),t=ot(0),i=ot([]),s=[{active:!0,route:"discussions",text:"Discussions"},{active:!0,route:"playground",text:"Playground"},{active:!0,route:"PersonalitiesZoo",text:"Personalities Zoo"},{active:!0,route:"AppsZoo",text:"Apps Zoo"},{active:!1,route:"AutoSD",text:"Auto111-SD",condition:()=>Pi.state.config.enable_sd_service||Pi.state.config.active_tti_service==="autosd"},{active:!1,route:"ComfyUI",text:"ComfyUI",condition:()=>Pi.state.config.enable_comfyui_service||Pi.state.config.active_tti_service==="comfyui"},{active:!1,route:"interactive",text:"Interactive",condition:()=>Pi.state.config.active_tts_service!=="None"&&Pi.state.config.active_stt_service!=="None"},{active:!0,route:"settings",text:"Settings"},{active:!0,route:"help_view",text:"Help"}],r=Je(()=>Pi.state.ready?s.filter(d=>d.condition?d.condition():d.active):s.filter(d=>d.active));cs(()=>{o()}),Tn(()=>e.name,o);function o(){const d=r.value.findIndex(u=>u.route===e.name);d!==-1&&(t.value=d)}function a(d){return e.name===d}function c(d){t.value=d}return(d,u)=>(T(),w("div",j3,[l("nav",Q3,[(T(!0),w(Be,null,Xe(r.value,(_,m)=>(T(),at(yt(u0),{key:m,to:{name:_.route},class:Ue(["menu-item",{"active-link":a(_.route)}]),onClick:h=>c(m),ref_for:!0,ref_key:"menuItems",ref:i},{default:Ie(()=>[Ze($(_.text)+" ",1),a(_.route)?(T(),w("span",X3,"🌟")):B("",!0)]),_:2},1032,["to","class","onClick"]))),128))])]))}}),st=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t},e4={name:"TopBar",components:{Navigation:J3},data(){return{isinfosMenuVisible:!1,isVisible:!1,isPinned:!1,selectedLanguage:"",isLanguageMenuVisible:!1}},computed:{isModelOK(){return this.$store.state.isModelOk},isDarkMode(){return document.documentElement.classList.contains("dark")},languages:{get(){return console.log("searching languages",this.$store.state.languages),this.$store.state.languages}},language:{get(){return console.log("searching language",this.$store.state.language),this.$store.state.language}},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected}},methods:{themeSwitch(){if(document.documentElement.classList.contains("dark")){document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"),this.userTheme=="light",this.iconToggle();return}Kp(()=>Promise.resolve().then(()=>eYe),void 0),document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark"),this.userTheme=="dark",this.iconToggle(),window.dispatchEvent(new Event("themeChanged"))},async selectLanguage(n){await this.$store.dispatch("changeLanguage",n),this.toggleLanguageMenu(),this.language=n},async deleteLanguage(n){await this.$store.dispatch("deleteLanguage",n),this.toggleLanguageMenu(),this.language=n},toggleLanguageMenu(){console.log("Toggling language ",this.isLanguageMenuVisible),this.isLanguageMenuVisible=!this.isLanguageMenuVisible},showInfosMenu(){this.isInfosMenuVisible=!0,console.log("showing menu"),console.log(this.isInfosMenuVisible)},hideInfosMenu(){this.isInfosMenuVisible=!1},show(){this.isVisible=!0},hide(){this.isPinned||(this.isVisible=!1)},togglePin(){this.isPinned=!this.isPinned,this.isVisible=this.isPinned},fun_mode_on(){console.log("Turning on fun mode"),this.$store.state.config.fun_mode=!0,this.applyConfiguration()},fun_mode_off(){console.log("Turning off fun mode"),this.$store.state.config.fun_mode=!1,this.applyConfiguration()},showNews(){this.$store.state.news.show()},themeCheck(){if(this.userTheme=="dark"||!this.userTheme&&this.systemTheme){document.documentElement.classList.add("dark"),this.moonIcon.classList.add("display-none"),nextTick(()=>{Kp(()=>Promise.resolve({}),__vite__mapDeps([0]))});return}nextTick(()=>{Kp(()=>Promise.resolve({}),__vite__mapDeps([1]))}),this.sunIcon.classList.add("display-none")},iconToggle(){this.sunIcon.classList.toggle("display-none"),this.moonIcon.classList.toggle("display-none")},refreshPage(){window.location.href.split("/").length>4?window.location.href="/":window.location.reload(!0)},handleOk(n){console.log("Input text:",n)}}},t4={class:"topbar-content"},n4=["title"],i4=["fill"],s4={class:"relative inline-block"},r4={class:"p-4 container flex flex-col lg:flex-row items-center gap-2"},o4={class:"flex gap-3 flex-1 items-center justify-end"},a4={key:0,title:"Model is ok",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},l4={key:1,title:"Model is not ok",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},c4={key:2,title:"Text is not being generated. Ready to generate",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},d4={key:3,title:"Generation in progress...",class:"text-yellow-500 dark:text-yellow-400 cursor-pointer transition-transform hover:scale-110"},u4={key:4,title:"Connection status: Connected",class:"text-green-500 dark:text-green-400 cursor-pointer transition-transform hover:scale-110"},p4={key:5,title:"Connection status: Not connected",class:"text-red-500 dark:text-red-400 cursor-pointer transition-transform hover:scale-110"},f4={class:"flex items-center space-x-4"},_4={class:"relative group",title:"Lollms News"},m4={class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mb-2 whitespace-nowrap"},h4={class:"language-selector relative"},g4={key:0,ref:"languageMenu",class:"container language-menu absolute left-0 mt-1 bg-white dark:bg-bg-dark-tone rounded shadow-lg z-10 overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",style:{position:"absolute",top:"100%",width:"200px","max-height":"300px","overflow-y":"auto"}},b4={style:{"list-style-type":"none","padding-left":"0","margin-left":"0"}},y4=["onClick"],E4=["onClick"],v4={class:"cursor-pointer hover:text-white py-0 px-0 block whitespace-no-wrap"};function S4(n,e,t,i,s,r){const o=nt("Navigation"),a=nt("ActionButton"),c=nt("SocialIcon");return T(),w("div",{ref:"topbar-container",class:Ue(["topbar-container",{"h-0":!s.isPinned}])},[l("div",{class:"hover-zone",onMouseenter:e[0]||(e[0]=(...d)=>r.show&&r.show(...d)),style:{position:"fixed",top:"0",left:"0",width:"100%",height:"10px","z-index":"50"}},null,32),l("div",{class:Ue(["topbar",{"topbar-hidden":!s.isVisible}]),onMouseleave:e[13]||(e[13]=(...d)=>r.hide&&r.hide(...d))},[l("div",t4,[on(n.$slots,"navigation",{},void 0,!0),l("button",{class:"pin-button",onClick:e[1]||(e[1]=(...d)=>r.togglePin&&r.togglePin(...d)),title:s.isPinned?"Unpin":"Pin"},[(T(),w("svg",{fill:s.isPinned?"#FF0000":"#000000",height:"24px",width:"24px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 490.125 490.125","xml:space":"preserve"},e[14]||(e[14]=[l("g",null,[l("path",{d:`M300.625,5.025c-6.7-6.7-17.6-6.7-24.3,0l-72.6,72.6c-6.7,6.7-6.7,17.6,0,24.3l16.3,16.3l-40.3,40.3l-63.5-7\r
                   c-3-0.3-6-0.5-8.9-0.5c-21.7,0-42.2,8.5-57.5,23.8l-20.8,20.8c-6.7,6.7-6.7,17.6,0,24.3l108.5,108.5l-132.4,132.4\r
                   c-6.7,6.7-6.7,17.6,0,24.3c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5l132.5-132.5l108.5,108.5c3.3,3.3,7.7,5,12.1,5s8.8-1.7,12.1-5\r
                   l20.8-20.8c17.6-17.6,26.1-41.8,23.3-66.4l-7-63.5l40.3-40.3l16.2,16.2c6.7,6.7,17.6,6.7,24.3,0l72.6-72.6c3.2-3.2,5-7.6,5-12.1\r
                   s-1.8-8.9-5-12.1L300.625,5.025z M400.425,250.025l-16.2-16.3c-6.4-6.4-17.8-6.4-24.3,0l-58.2,58.3c-3.7,3.7-5.5,8.8-4.9,14\r
                   l7.9,71.6c1.6,14.3-3.3,28.3-13.5,38.4l-8.7,8.7l-217.1-217.1l8.7-8.6c10.1-10.1,24.2-15,38.4-13.5l71.7,7.9\r
-                  c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,s4))],8,i4),z(o),l("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...d)=>r.hideInfosMenu&&r.hideInfosMenu(...d))},[l("div",r4,[k(l("div",{onMouseenter:e[3]||(e[3]=(...d)=>r.showInfosMenu&&r.showInfosMenu(...d)),class:"absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",o4,[l("div",a4,[r.isModelOK?(T(),w("div",l4,e[15]||(e[15]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),w("div",c4,e[16]||(e[16]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),r.isGenerating?(T(),w("div",u4,e[18]||(e[18]=[l("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),w("div",d4,e[17]||(e[17]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),r.isConnected?(T(),w("div",p4,e[19]||(e[19]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),w("div",f4,e[20]||(e[20]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),l("div",_4,[z(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),z(a,{onClick:r.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),z(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),z(c,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),z(c,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),z(c,{href:"https://x.com/ParisNeo_AI",icon:"x"}),z(c,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),l("div",m4,[l("div",{onClick:e[2]||(e[2]=d=>r.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[l("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[22]||(e[22]=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],544),[[_t,n.isInfosMenuVisible]]),l("div",{onMouseenter:e[4]||(e[4]=(...d)=>r.showInfosMenu&&r.showInfosMenu(...d)),class:"infos-hover-area"},e[23]||(e[23]=[mr('<button class="w-8 h-8" data-v-b52210ee><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="w-full h-full" data-v-b52210ee><circle cx="12.5" cy="12.5" r="11.25" fill="#3498db" data-v-b52210ee></circle><rect x="11.25" y="10" width="2.5" height="8.75" fill="white" data-v-b52210ee></rect><circle cx="12.5" cy="6.25" r="1.25" fill="white" data-v-b52210ee></circle></svg></button>',1)]),32)])],32),r.is_fun_mode?(T(),w("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=d=>r.fun_mode_off())},e[24]||(e[24]=[mr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-full h-full animate-bounce" data-v-b52210ee><circle cx="12" cy="12" r="10" data-v-b52210ee></circle><path d="M8 14s1.5 2 4 2 4-2 4-2" data-v-b52210ee></path><line x1="9" y1="9" x2="9.01" y2="9" data-v-b52210ee></line><line x1="15" y1="9" x2="15.01" y2="9" data-v-b52210ee></line></svg>',1)]))):(T(),w("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=d=>r.fun_mode_on())},e[25]||(e[25]=[mr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-full h-full" data-v-b52210ee><circle cx="12" cy="12" r="10" data-v-b52210ee></circle><line x1="8" y1="15" x2="16" y2="15" data-v-b52210ee></line><line x1="9" y1="9" x2="9.01" y2="9" data-v-b52210ee></line><line x1="15" y1="9" x2="15.01" y2="9" data-v-b52210ee></line></svg>',1)]))),l("span",h4,$(r.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),l("div",g4,[l("button",{onClick:e[8]||(e[8]=(...d)=>r.toggleLanguageMenu&&r.toggleLanguageMenu(...d)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},$(n.$store.state.language.slice(0,2)),1),s.isLanguageMenuVisible?(T(),w("div",b4,[l("ul",y4,[(T(!0),w(Be,null,Xe(r.languages,d=>(T(),w("li",{key:d,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:u=>r.deleteLanguage(d),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,E4),l("div",{onClick:u=>r.selectLanguage(d),class:Ue({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":d===n.$store.state.language,"flex-grow":!0})},$(d),11,v4)]))),128)),l("li",S4,[k(l("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=d=>n.customLanguage=d),onKeyup:e[10]||(e[10]=wi(W((...d)=>n.addCustomLanguage&&n.addCustomLanguage(...d),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[ue,n.customLanguage]])])])],512)):B("",!0)]),r.isDarkMode?(T(),w("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=d=>r.themeSwitch())},e[26]||(e[26]=[l("i",{"data-feather":"sun"},null,-1)]))):(T(),w("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=d=>r.themeSwitch())},e[27]||(e[27]=[l("i",{"data-feather":"moon"},null,-1)])))])],34)])}const x4=st(e4,[["render",T4],["__scopeId","data-v-b52210ee"]]),C4={class:"flex overflow-hidden flex-grow w-full"},w4={__name:"App",setup(n){return(e,t)=>(T(),w("div",{class:Ue([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[z(x4),l("div",C4,[z(yt(IA),null,{default:Ie(({Component:i})=>[(T(),at(lk,null,[(T(),at(Pu(i)))],1024))]),_:1})])],2))}};var kA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function R4(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var s=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return n[i]}})}),t}var DA={exports:{}};(function(n,e){(function(i,s){n.exports=s()})(typeof self<"u"?self:kA,function(){return function(t){var i={};function s(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=t,s.c=i,s.d=function(r,o,a){s.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:a})},s.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},s.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(o,"a",o),o},s.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},s.p="",s(s.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<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"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><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 .33-1.82 1.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 1.82.33H9a1.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-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<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"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":function(t,i,s){var r,o;/*!
+                  c5.2,0.6,10.3-1.2,14-4.9l58.2-58.2c6.7-6.7,6.7-17.6,0-24.3l-16.3-16.3l48.3-48.3l160.3,160.3L400.425,250.025z`})],-1)]),8,i4))],8,n4),z(o),l("div",{class:"toolbar-button",onMouseleave:e[5]||(e[5]=(...d)=>r.hideInfosMenu&&r.hideInfosMenu(...d))},[l("div",s4,[k(l("div",{onMouseenter:e[3]||(e[3]=(...d)=>r.showInfosMenu&&r.showInfosMenu(...d))},[l("div",r4,[l("div",o4,[r.isModelOK?(T(),w("div",a4,e[15]||(e[15]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 12L11 14L15 10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(T(),w("div",l4,e[16]||(e[16]=[l("svg",{class:"w-8 h-8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M15 9L9 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M9 9L15 15",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))),r.isGenerating?(T(),w("div",d4,e[18]||(e[18]=[l("svg",{class:"w-6 h-6 animate-spin",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]))):(T(),w("div",c4,e[17]||(e[17]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})],-1)]))),r.isConnected?(T(),w("div",u4,e[19]||(e[19]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 10V3L4 14h7v7l9-11h-7z"})],-1)]))):(T(),w("div",p4,e[20]||(e[20]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1)])))]),l("div",f4,[z(a,{onClick:n.restartProgram,icon:"power",title:"restart program"},null,8,["onClick"]),z(a,{onClick:r.refreshPage,icon:"refresh-ccw",title:"refresh page"},null,8,["onClick"]),z(a,{href:"/docs",icon:"file-text",title:"Fast API doc"})]),z(c,{href:"https://github.com/ParisNeo/lollms-webui",icon:"github"}),z(c,{href:"https://www.youtube.com/channel/UCJzrg0cyQV2Z30SQ1v2FdSQ",icon:"youtube"}),z(c,{href:"https://x.com/ParisNeo_AI",icon:"x"}),z(c,{href:"https://discord.com/channels/1092918764925882418",icon:"discord"}),l("div",_4,[l("div",{onClick:e[2]||(e[2]=d=>r.showNews()),class:"text-2xl w-8 h-8 cursor-pointer transition-colors duration-300 text-gray-600 hover:text-primary dark:text-gray-300 dark:hover:text-primary"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-full h-full"},[l("path",{d:"M19 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v1m2 13a2 2 0 0 1-2-2V7m2 13a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"})],-1)])),e[22]||(e[22]=l("span",{class:"absolute hidden group-hover:block bg-gray-800 text-white text-xs rounded py-1 px-2 top-full left-1/2 transform -translate-x-1/2 mt-2 whitespace-nowrap"}," Lollms News ",-1))])])],544),[[_t,n.isInfosMenuVisible]]),l("div",{onMouseenter:e[4]||(e[4]=(...d)=>r.showInfosMenu&&r.showInfosMenu(...d)),class:"infos-hover-area"},e[23]||(e[23]=[mr('<button class="w-6 h-6" data-v-95f4bcd6><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="w-full h-full" data-v-95f4bcd6><circle cx="12.5" cy="12.5" r="11.25" fill="#3498db" data-v-95f4bcd6></circle><rect x="11.25" y="10" width="2.5" height="8.75" fill="white" data-v-95f4bcd6></rect><circle cx="12.5" cy="6.25" r="1.25" fill="white" data-v-95f4bcd6></circle></svg></button>',1)]),32)])],32),r.is_fun_mode?(T(),w("div",{key:0,title:"Fun mode is on, press to turn off",class:"w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300",onClick:e[6]||(e[6]=d=>r.fun_mode_off())},e[24]||(e[24]=[mr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-full h-full animate-bounce" data-v-95f4bcd6><circle cx="12" cy="12" r="10" data-v-95f4bcd6></circle><path d="M8 14s1.5 2 4 2 4-2 4-2" data-v-95f4bcd6></path><line x1="9" y1="9" x2="9.01" y2="9" data-v-95f4bcd6></line><line x1="15" y1="9" x2="15.01" y2="9" data-v-95f4bcd6></line></svg>',1)]))):(T(),w("div",{key:1,title:"Fun mode is off, press to turn on",class:"w-8 h-8 cursor-pointer text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors duration-300",onClick:e[7]||(e[7]=d=>r.fun_mode_on())},e[25]||(e[25]=[mr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-full h-full" data-v-95f4bcd6><circle cx="12" cy="12" r="10" data-v-95f4bcd6></circle><line x1="8" y1="15" x2="16" y2="15" data-v-95f4bcd6></line><line x1="9" y1="9" x2="9.01" y2="9" data-v-95f4bcd6></line><line x1="15" y1="9" x2="15.01" y2="9" data-v-95f4bcd6></line></svg>',1)]))),l("span",m4,$(r.is_fun_mode?"Turn off fun mode":"Turn on fun mode"),1),l("div",h4,[l("button",{onClick:e[8]||(e[8]=(...d)=>r.toggleLanguageMenu&&r.toggleLanguageMenu(...d)),class:"bg-transparent text-black dark:text-white py-1 px-1 rounded font-bold uppercase transition-colors duration-300 hover:bg-blue-500"},$(n.$store.state.language.slice(0,2)),1),s.isLanguageMenuVisible?(T(),w("div",g4,[l("ul",b4,[(T(!0),w(Be,null,Xe(r.languages,d=>(T(),w("li",{key:d,class:"relative flex items-center",style:{"padding-left":"0","margin-left":"0"}},[l("button",{onClick:u=>r.deleteLanguage(d),class:"mr-2 text-red-500 hover:text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 rounded-full"},"✕",8,y4),l("div",{onClick:u=>r.selectLanguage(d),class:Ue({"cursor-pointer hover:bg-blue-500 hover:text-white py-2 px-4 block whitespace-no-wrap":!0,"bg-blue-500 text-white":d===n.$store.state.language,"flex-grow":!0})},$(d),11,E4)]))),128)),l("li",v4,[k(l("input",{type:"text","onUpdate:modelValue":e[9]||(e[9]=d=>n.customLanguage=d),onKeyup:e[10]||(e[10]=wi(W((...d)=>n.addCustomLanguage&&n.addCustomLanguage(...d),["prevent"]),["enter"])),placeholder:"Enter language...",class:"bg-transparent border border-gray-300 rounded py-0 px-0 mx-0 my-1 w-full"},null,544),[[ue,n.customLanguage]])])])],512)):B("",!0)]),r.isDarkMode?(T(),w("div",{key:2,class:"sun text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Light theme",onClick:e[11]||(e[11]=d=>r.themeSwitch())},e[26]||(e[26]=[l("i",{"data-feather":"sun"},null,-1)]))):(T(),w("div",{key:3,class:"moon text-2xl w-6 hover:text-primary duration-150 cursor-pointer",title:"Switch to Dark theme",onClick:e[12]||(e[12]=d=>r.themeSwitch())},e[27]||(e[27]=[l("i",{"data-feather":"moon"},null,-1)])))])],34)],2)}const T4=st(e4,[["render",S4],["__scopeId","data-v-95f4bcd6"]]),x4={class:"flex overflow-hidden flex-grow w-full"},C4={__name:"App",setup(n){return(e,t)=>(T(),w("div",{class:Ue([e.currentTheme,"flex flex-col h-screen font-sans background-color text-slate-950 dark:bg-bg-dark dark:text-slate-50 w-full overflow-hidden"])},[z(T4),l("div",x4,[z(yt(IA),null,{default:Ie(({Component:i})=>[(T(),at(lk,null,[(T(),at(Pu(i)))],1024))]),_:1})])],2))}};var kA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function w4(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var s=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return n[i]}})}),t}var DA={exports:{}};(function(n,e){(function(i,s){n.exports=s()})(typeof self<"u"?self:kA,function(){return function(t){var i={};function s(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=t,s.c=i,s.d=function(r,o,a){s.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:a})},s.r=function(r){Object.defineProperty(r,"__esModule",{value:!0})},s.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(o,"a",o),o},s.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},s.p="",s(s.s=0)}({"./dist/icons.json":function(t){t.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<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"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><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 .33-1.82 1.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 1.82.33H9a1.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-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<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"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":function(t,i,s){var r,o;/*!
   Copyright (c) 2016 Jed Watson.
   Licensed under the MIT License (MIT), see
   http://jedwatson.github.io/classnames
-*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function d(g,E){for(var v=E.length,S=0;S<v;++S)y(g,E[S])}var u={}.hasOwnProperty;function _(g,E){g[E]=!0}function m(g,E){for(var v in E)u.call(E,v)&&(g[v]=!!E[v])}var h=/\s+/;function f(g,E){for(var v=E.split(h),S=v.length,R=0;R<S;++R)g[v[R]]=!0}function y(g,E){if(E){var v=typeof E;v==="string"?f(g,E):Array.isArray(E)?d(g,E):v==="object"?m(g,E):v==="number"&&_(g,E)}}function b(){for(var g=arguments.length,E=Array(g),v=0;v<g;v++)E[v]=arguments[v];var S=new c;d(S,E);var R=[];for(var C in S)S[C]&&R.push(C);return R.join(" ")}return b}();typeof t<"u"&&t.exports?t.exports=a:(r=[],o=(function(){return a}).apply(i,r),o!==void 0&&(t.exports=o))})()},"./node_modules/core-js/es/array/from.js":function(t,i,s){s("./node_modules/core-js/modules/es.string.iterator.js"),s("./node_modules/core-js/modules/es.array.from.js");var r=s("./node_modules/core-js/internals/path.js");t.exports=r.Array.from},"./node_modules/core-js/internals/a-function.js":function(t,i){t.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"./node_modules/core-js/internals/an-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js");t.exports=function(o){if(!r(o))throw TypeError(String(o)+" is not an object");return o}},"./node_modules/core-js/internals/array-from.js":function(t,i,s){var r=s("./node_modules/core-js/internals/bind-context.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),c=s("./node_modules/core-js/internals/is-array-iterator-method.js"),d=s("./node_modules/core-js/internals/to-length.js"),u=s("./node_modules/core-js/internals/create-property.js"),_=s("./node_modules/core-js/internals/get-iterator-method.js");t.exports=function(h){var f=o(h),y=typeof this=="function"?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,E=g!==void 0,v=0,S=_(f),R,C,A,I;if(E&&(g=r(g,b>2?arguments[2]:void 0,2)),S!=null&&!(y==Array&&c(S)))for(I=S.call(f),C=new y;!(A=I.next()).done;v++)u(C,v,E?a(I,g,[A.value,v],!0):A.value);else for(R=d(f.length),C=new y(R);R>v;v++)u(C,v,E?g(f[v],v):f[v]);return C.length=v,C}},"./node_modules/core-js/internals/array-includes.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(c){return function(d,u,_){var m=r(d),h=o(m.length),f=a(_,h),y;if(c&&u!=u){for(;h>f;)if(y=m[f++],y!=y)return!0}else for(;h>f;f++)if((c||f in m)&&m[f]===u)return c||f||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,i,s){var r=s("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,c){if(r(o),a===void 0)return o;switch(c){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,_){return o.call(a,d,u,_)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,i,s){var r=s("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,c,d){try{return d?a(r(c)[0],c[1]):a(c)}catch(_){var u=o.return;throw u!==void 0&&r(u.call(o)),_}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}t.exports=function(u,_){if(!_&&!a)return!1;var m=!1;try{var h={};h[o]=function(){return{next:function(){return{done:m=!0}}}},u(h)}catch{}return m}},"./node_modules/core-js/internals/classof-raw.js":function(t,i){var s={}.toString;t.exports=function(r){return s.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,i,s){var r=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),c=r(function(){return arguments}())=="Arguments",d=function(u,_){try{return u[_]}catch{}};t.exports=function(u){var _,m,h;return u===void 0?"Undefined":u===null?"Null":typeof(m=d(_=Object(u),a))=="string"?m:c?r(_):(h=r(_))=="Object"&&typeof _.callee=="function"?"Arguments":h}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=s("./node_modules/core-js/internals/object-define-property.js");t.exports=function(d,u){for(var _=o(u),m=c.f,h=a.f,f=0;f<_.length;f++){var y=_[f];r(d,y)||m(d,y,h(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(t,i,s){var r=s("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=s("./node_modules/core-js/internals/object-create.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),c=s("./node_modules/core-js/internals/set-to-string-tag.js"),d=s("./node_modules/core-js/internals/iterators.js"),u=function(){return this};t.exports=function(_,m,h){var f=m+" Iterator";return _.prototype=o(r,{next:a(1,h)}),c(_,f,!1,!0),d[f]=u,_}},"./node_modules/core-js/internals/create-property-descriptor.js":function(t,i){t.exports=function(s,r){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:r}}},"./node_modules/core-js/internals/create-property.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-primitive.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(c,d,u){var _=r(d);_ in c?o.f(c,_,a(0,u)):c[_]=u}},"./node_modules/core-js/internals/define-iterator.js":function(t,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/create-iterator-constructor.js"),a=s("./node_modules/core-js/internals/object-get-prototype-of.js"),c=s("./node_modules/core-js/internals/object-set-prototype-of.js"),d=s("./node_modules/core-js/internals/set-to-string-tag.js"),u=s("./node_modules/core-js/internals/hide.js"),_=s("./node_modules/core-js/internals/redefine.js"),m=s("./node_modules/core-js/internals/well-known-symbol.js"),h=s("./node_modules/core-js/internals/is-pure.js"),f=s("./node_modules/core-js/internals/iterators.js"),y=s("./node_modules/core-js/internals/iterators-core.js"),b=y.IteratorPrototype,g=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),v="keys",S="values",R="entries",C=function(){return this};t.exports=function(A,I,x,M,G,V,ee){o(x,I,M);var O=function(ve){if(ve===G&&ne)return ne;if(!g&&ve in L)return L[ve];switch(ve){case v:return function(){return new x(this,ve)};case S:return function(){return new x(this,ve)};case R:return function(){return new x(this,ve)}}return function(){return new x(this)}},H=I+" Iterator",q=!1,L=A.prototype,Y=L[E]||L["@@iterator"]||G&&L[G],ne=!g&&Y||O(G),oe=I=="Array"&&L.entries||Y,ye,xe,le;if(oe&&(ye=a(oe.call(new A)),b!==Object.prototype&&ye.next&&(!h&&a(ye)!==b&&(c?c(ye,b):typeof ye[E]!="function"&&u(ye,E,C)),d(ye,H,!0,!0),h&&(f[H]=C))),G==S&&Y&&Y.name!==S&&(q=!0,ne=function(){return Y.call(this)}),(!h||ee)&&L[E]!==ne&&u(L,E,ne),f[I]=ne,G)if(xe={values:O(S),keys:V?ne:O(v),entries:O(R)},ee)for(le in xe)(g||q||!(le in L))&&_(L,le,xe[le]);else r({target:I,proto:!0,forced:g||q},xe);return xe}},"./node_modules/core-js/internals/descriptors.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/document-create-element.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/is-object.js"),a=r.document,c=o(a)&&o(a.createElement);t.exports=function(d){return c?a.createElement(d):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(t,i){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=s("./node_modules/core-js/internals/hide.js"),c=s("./node_modules/core-js/internals/redefine.js"),d=s("./node_modules/core-js/internals/set-global.js"),u=s("./node_modules/core-js/internals/copy-constructor-properties.js"),_=s("./node_modules/core-js/internals/is-forced.js");t.exports=function(m,h){var f=m.target,y=m.global,b=m.stat,g,E,v,S,R,C;if(y?E=r:b?E=r[f]||d(f,{}):E=(r[f]||{}).prototype,E)for(v in h){if(R=h[v],m.noTargetGet?(C=o(E,v),S=C&&C.value):S=E[v],g=_(y?v:f+(b?".":"#")+v,m.forced),!g&&S!==void 0){if(typeof R==typeof S)continue;u(R,S)}(m.sham||S&&S.sham)&&a(R,"sham",!0),c(E,v,R,m)}}},"./node_modules/core-js/internals/fails.js":function(t,i){t.exports=function(s){try{return!!s()}catch{return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(t,i,s){var r=s("./node_modules/core-js/internals/shared.js");t.exports=r("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(t,i,s){var r=s("./node_modules/core-js/internals/classof.js"),o=s("./node_modules/core-js/internals/iterators.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),c=a("iterator");t.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||o[r(d)]}},"./node_modules/core-js/internals/global.js":function(t,i,s){(function(r){var o="object",a=function(c){return c&&c.Math==Math&&c};t.exports=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof r==o&&r)||Function("return this")()}).call(this,s("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(t,i){var s={}.hasOwnProperty;t.exports=function(r,o){return s.call(r,o)}},"./node_modules/core-js/internals/hidden-keys.js":function(t,i){t.exports={}},"./node_modules/core-js/internals/hide.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=r?function(c,d,u){return o.f(c,d,a(1,u))}:function(c,d,u){return c[d]=u,c}},"./node_modules/core-js/internals/html.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=r.document;t.exports=o&&o.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/fails.js"),a=s("./node_modules/core-js/internals/document-create-element.js");t.exports=!r&&!o(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js"),o=s("./node_modules/core-js/internals/classof-raw.js"),a="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return o(c)=="String"?a.call(c,""):Object(c)}:Object},"./node_modules/core-js/internals/internal-state.js":function(t,i,s){var r=s("./node_modules/core-js/internals/native-weak-map.js"),o=s("./node_modules/core-js/internals/global.js"),a=s("./node_modules/core-js/internals/is-object.js"),c=s("./node_modules/core-js/internals/hide.js"),d=s("./node_modules/core-js/internals/has.js"),u=s("./node_modules/core-js/internals/shared-key.js"),_=s("./node_modules/core-js/internals/hidden-keys.js"),m=o.WeakMap,h,f,y,b=function(A){return y(A)?f(A):h(A,{})},g=function(A){return function(I){var x;if(!a(I)||(x=f(I)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return x}};if(r){var E=new m,v=E.get,S=E.has,R=E.set;h=function(A,I){return R.call(E,A,I),I},f=function(A){return v.call(E,A)||{}},y=function(A){return S.call(E,A)}}else{var C=u("state");_[C]=!0,h=function(A,I){return c(A,C,I),I},f=function(A){return d(A,C)?A[C]:{}},y=function(A){return d(A,C)}}t.exports={set:h,get:f,has:y,enforce:b,getterFor:g}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(t,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=s("./node_modules/core-js/internals/iterators.js"),a=r("iterator"),c=Array.prototype;t.exports=function(d){return d!==void 0&&(o.Array===d||c[a]===d)}},"./node_modules/core-js/internals/is-forced.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,a=function(m,h){var f=d[c(m)];return f==_?!0:f==u?!1:typeof h=="function"?r(h):!!h},c=a.normalize=function(m){return String(m).replace(o,".").toLowerCase()},d=a.data={},u=a.NATIVE="N",_=a.POLYFILL="P";t.exports=a},"./node_modules/core-js/internals/is-object.js":function(t,i){t.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"./node_modules/core-js/internals/is-pure.js":function(t,i){t.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-get-prototype-of.js"),o=s("./node_modules/core-js/internals/hide.js"),a=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/well-known-symbol.js"),d=s("./node_modules/core-js/internals/is-pure.js"),u=c("iterator"),_=!1,m=function(){return this},h,f,y;[].keys&&(y=[].keys(),"next"in y?(f=r(r(y)),f!==Object.prototype&&(h=f)):_=!0),h==null&&(h={}),!d&&!a(h,u)&&o(h,u,m),t.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:_}},"./node_modules/core-js/internals/iterators.js":function(t,i){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/function-to-string.js"),a=r.WeakMap;t.exports=typeof a=="function"&&/native code/.test(o.call(a))},"./node_modules/core-js/internals/object-create.js":function(t,i,s){var r=s("./node_modules/core-js/internals/an-object.js"),o=s("./node_modules/core-js/internals/object-define-properties.js"),a=s("./node_modules/core-js/internals/enum-bug-keys.js"),c=s("./node_modules/core-js/internals/hidden-keys.js"),d=s("./node_modules/core-js/internals/html.js"),u=s("./node_modules/core-js/internals/document-create-element.js"),_=s("./node_modules/core-js/internals/shared-key.js"),m=_("IE_PROTO"),h="prototype",f=function(){},y=function(){var b=u("iframe"),g=a.length,E="<",v="script",S=">",R="java"+v+":",C;for(b.style.display="none",d.appendChild(b),b.src=String(R),C=b.contentWindow.document,C.open(),C.write(E+v+S+"document.F=Object"+E+"/"+v+S),C.close(),y=C.F;g--;)delete y[h][a[g]];return y()};t.exports=Object.create||function(g,E){var v;return g!==null?(f[h]=r(g),v=new f,f[h]=null,v[m]=g):v=y(),E===void 0?v:o(v,E)},c[m]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),c=s("./node_modules/core-js/internals/object-keys.js");t.exports=r?Object.defineProperties:function(u,_){a(u);for(var m=c(_),h=m.length,f=0,y;h>f;)o.f(u,y=m[f++],_[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),c=s("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;i.f=r?d:function(_,m,h){if(a(_),m=c(m,!0),a(h),o)try{return d(_,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(_[m]=h.value),_}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),c=s("./node_modules/core-js/internals/to-indexed-object.js"),d=s("./node_modules/core-js/internals/to-primitive.js"),u=s("./node_modules/core-js/internals/has.js"),_=s("./node_modules/core-js/internals/ie8-dom-define.js"),m=Object.getOwnPropertyDescriptor;i.f=r?m:function(f,y){if(f=c(f),y=d(y,!0),_)try{return m(f,y)}catch{}if(u(f,y))return a(!o.f.call(f,y),f[y])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(d){return r(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),c=s("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(_){return _=o(_),r(_,d)?_[d]:typeof _.constructor=="function"&&_ instanceof _.constructor?_.constructor.prototype:_ instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),c=s("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);t.exports=function(u,_){var m=o(u),h=0,f=[],y;for(y in m)!r(c,y)&&r(m,y)&&f.push(y);for(;_.length>h;)r(m,y=_[h++])&&(~d(f,y)||f.push(y));return f}},"./node_modules/core-js/internals/object-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(c){return r(c,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,i,s){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);i.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),o=a instanceof Array}catch{}return function(u,_){return r(u,_),o?c.call(u,_):u.__proto__=_,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=s("./node_modules/core-js/internals/an-object.js"),d=r.Reflect;t.exports=d&&d.ownKeys||function(_){var m=o.f(c(_)),h=a.f;return h?m.concat(h(_)):m}},"./node_modules/core-js/internals/path.js":function(t,i,s){t.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),c=s("./node_modules/core-js/internals/has.js"),d=s("./node_modules/core-js/internals/set-global.js"),u=s("./node_modules/core-js/internals/function-to-string.js"),_=s("./node_modules/core-js/internals/internal-state.js"),m=_.get,h=_.enforce,f=String(u).split("toString");o("inspectSource",function(y){return u.call(y)}),(t.exports=function(y,b,g,E){var v=E?!!E.unsafe:!1,S=E?!!E.enumerable:!1,R=E?!!E.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!c(g,"name")&&a(g,"name",b),h(g).source=f.join(typeof b=="string"?b:"")),y===r){S?y[b]=g:d(b,g);return}else v?!R&&y[b]&&(S=!0):delete y[b];S?y[b]=g:a(y,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,i){t.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");t.exports=function(a,c){try{o(r,a,c)}catch{r[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");t.exports=function(d,u,_){d&&!o(d=_?d:d.prototype,c)&&r(d,c,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(t,i,s){var r=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=r("keys");t.exports=function(c){return a[c]||(a[c]=o(c))}},"./node_modules/core-js/internals/shared.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",d=r[c]||o(c,{});(t.exports=function(u,_){return d[u]||(d[u]=_!==void 0?_:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,c,d){var u=String(o(a)),_=r(c),m=u.length,h,f;return _<0||_>=m?d?"":void 0:(h=u.charCodeAt(_),h<55296||h>56319||_+1===m||(f=u.charCodeAt(_+1))<56320||f>57343?d?u.charAt(_):h:d?u.slice(_,_+2):(h-55296<<10)+(f-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(c,d){var u=r(c);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,i){var s=Math.ceil,r=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?r:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!r(o))return o;var c,d;if(a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o))||typeof(c=o.valueOf)=="function"&&!r(d=c.call(o))||!a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,i){var s=0,r=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");t.exports=function(a,c){if(o(a),!r(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),c=s("./node_modules/core-js/internals/native-symbol.js"),d=r.Symbol,u=o("wks");t.exports=function(_){return u[_]||(u[_]=c&&d[_]||(c?d:a)("Symbol."+_))}},"./node_modules/core-js/modules/es.array.from.js":function(t,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(d){Array.from(d)});r({target:"Array",stat:!0,forced:c},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,i,s){var r=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=o.set,u=o.getterFor(c);a(String,"String",function(_){d(this,{type:c,string:String(_),index:0})},function(){var m=u(this),h=m.string,f=m.index,y;return f>=h.length?{value:void 0,done:!0}:(y=r(h,f,!0),m.index+=y.length,{value:y,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,i){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}t.exports=s},"./src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(y){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var E in g)Object.prototype.hasOwnProperty.call(g,E)&&(y[E]=g[E])}return y},o=function(){function y(b,g){for(var E=0;E<g.length;E++){var v=g[E];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(b,v.key,v)}}return function(b,g,E){return g&&y(b.prototype,g),E&&y(b,E),b}}(),a=s("./node_modules/classnames/dedupe.js"),c=_(a),d=s("./src/default-attrs.json"),u=_(d);function _(y){return y&&y.__esModule?y:{default:y}}function m(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}var h=function(){function y(b,g){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];m(this,y),this.name=b,this.contents=g,this.tags=E,this.attrs=r({},u.default,{class:"feather feather-"+b})}return o(y,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=r({},this.attrs,g,{class:(0,c.default)(this.attrs.class,g.class)});return"<svg "+f(E)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),y}();function f(y){return Object.keys(y).map(function(b){return b+'="'+y[b]+'"'}).join(" ")}i.default=h},"./src/icons.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icon.js"),o=_(r),a=s("./dist/icons.json"),c=_(a),d=s("./src/tags.json"),u=_(d);function _(m){return m&&m.__esModule?m:{default:m}}i.default=Object.keys(c.default).map(function(m){return new o.default(m,c.default[m],u.default[m])}).reduce(function(m,h){return m[h.name]=h,m},{})},"./src/index.js":function(t,i,s){var r=s("./src/icons.js"),o=_(r),a=s("./src/to-svg.js"),c=_(a),d=s("./src/replace.js"),u=_(d);function _(m){return m&&m.__esModule?m:{default:m}}t.exports={icons:o.default,toSvg:c.default,replace:u.default}},"./src/replace.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(f){for(var y=1;y<arguments.length;y++){var b=arguments[y];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(f[g]=b[g])}return f},o=s("./node_modules/classnames/dedupe.js"),a=u(o),c=s("./src/icons.js"),d=u(c);function u(f){return f&&f.__esModule?f:{default:f}}function _(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var y=document.querySelectorAll("[data-feather]");Array.from(y).forEach(function(b){return m(b,f)})}function m(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=h(f),g=b["data-feather"];if(delete b["data-feather"],d.default[g]===void 0){console.warn("feather: '"+g+"' is not a valid icon");return}var E=d.default[g].toSvg(r({},y,b,{class:(0,a.default)(y.class,b.class)})),v=new DOMParser().parseFromString(E,"image/svg+xml"),S=v.querySelector("svg");f.parentNode.replaceChild(S,f)}function h(f){return Array.from(f.attributes).reduce(function(y,b){return y[b.name]=b.value,y},{})}i.default=_},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icons.js"),o=a(r);function a(d){return d&&d.__esModule?d:{default:d}}function c(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}i.default=c},0:function(t,i,s){s("./node_modules/core-js/es/array/from.js"),t.exports=s("./src/index.js")}})})})(DA);var A4=DA.exports;const Ve=Rr(A4),as=Object.create(null);as.open="0";as.close="1";as.ping="2";as.pong="3";as.message="4";as.upgrade="5";as.noop="6";const wd=Object.create(null);Object.keys(as).forEach(n=>{wd[as[n]]=n});const Xg={type:"error",data:"parser error"},LA=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",PA=typeof ArrayBuffer=="function",FA=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,p0=({type:n,data:e},t,i)=>LA&&e instanceof Blob?t?i(e):_v(e,i):PA&&(e instanceof ArrayBuffer||FA(e))?t?i(e):_v(new Blob([e]),i):i(as[n]+(e||"")),_v=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+(i||""))},t.readAsDataURL(n)};function mv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let jp;function M4(n,e){if(LA&&n.data instanceof Blob)return n.data.arrayBuffer().then(mv).then(e);if(PA&&(n.data instanceof ArrayBuffer||FA(n.data)))return e(mv(n.data));p0(n,!1,t=>{jp||(jp=new TextEncoder),e(jp.encode(t))})}const hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<hv.length;n++)hl[hv.charCodeAt(n)]=n;const N4=n=>{let e=n.length*.75,t=n.length,i,s=0,r,o,a,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(i=0;i<t;i+=4)r=hl[n.charCodeAt(i)],o=hl[n.charCodeAt(i+1)],a=hl[n.charCodeAt(i+2)],c=hl[n.charCodeAt(i+3)],u[s++]=r<<2|o>>4,u[s++]=(o&15)<<4|a>>2,u[s++]=(a&3)<<6|c&63;return d},O4=typeof ArrayBuffer=="function",f0=(n,e)=>{if(typeof n!="string")return{type:"message",data:UA(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:I4(n.substring(1),e)}:wd[t]?n.length>1?{type:wd[t],data:n.substring(1)}:{type:wd[t]}:Xg},I4=(n,e)=>{if(O4){const t=N4(n);return UA(t,e)}else return{base64:!0,data:n}},UA=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},BA="",k4=(n,e)=>{const t=n.length,i=new Array(t);let s=0;n.forEach((r,o)=>{p0(r,!1,a=>{i[o]=a,++s===t&&e(i.join(BA))})})},D4=(n,e)=>{const t=n.split(BA),i=[];for(let s=0;s<t.length;s++){const r=f0(t[s],e);if(i.push(r),r.type==="error")break}return i};function L4(){return new TransformStream({transform(n,e){M4(n,t=>{const i=t.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const r=new DataView(s.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{s=new Uint8Array(9);const r=new DataView(s.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}n.data&&typeof n.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(t)})}})}let Qp;function Nc(n){return n.reduce((e,t)=>e+t.length,0)}function Oc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let i=0;for(let s=0;s<e;s++)t[s]=n[0][i++],i===n[0].length&&(n.shift(),i=0);return n.length&&i<n[0].length&&(n[0]=n[0].slice(i)),t}function P4(n,e){Qp||(Qp=new TextDecoder);const t=[];let i=0,s=-1,r=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(i===0){if(Nc(t)<1)break;const c=Oc(t,1);r=(c[0]&128)===128,s=c[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(Nc(t)<2)break;const c=Oc(t,2);s=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),i=3}else if(i===2){if(Nc(t)<8)break;const c=Oc(t,8),d=new DataView(c.buffer,c.byteOffset,c.length),u=d.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Xg);break}s=u*Math.pow(2,32)+d.getUint32(4),i=3}else{if(Nc(t)<s)break;const c=Oc(t,s);a.enqueue(f0(r?c:Qp.decode(c),e)),i=0}if(s===0||s>n){a.enqueue(Xg);break}}}})}const GA=4;function an(n){if(n)return F4(n)}function F4(n){for(var e in an.prototype)n[e]=an.prototype[e];return n}an.prototype.on=an.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};an.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,s=0;s<t.length;s++)if(i=t[s],i===e||i.fn===e){t.splice(s,1);break}return t.length===0&&delete this._callbacks["$"+n],this};an.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,s=t.length;i<s;++i)t[i].apply(this,e)}return this};an.prototype.emitReserved=an.prototype.emit;an.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};an.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Ku=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),mi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),U4="arraybuffer";function VA(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const B4=mi.setTimeout,G4=mi.clearTimeout;function ju(n,e){e.useNativeTimers?(n.setTimeoutFn=B4.bind(mi),n.clearTimeoutFn=G4.bind(mi)):(n.setTimeoutFn=mi.setTimeout.bind(mi),n.clearTimeoutFn=mi.clearTimeout.bind(mi))}const V4=1.33;function z4(n){return typeof n=="string"?H4(n):Math.ceil((n.byteLength||n.size)*V4)}function H4(n){let e=0,t=0;for(let i=0,s=n.length;i<s;i++)e=n.charCodeAt(i),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(i++,t+=4);return t}function zA(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function q4(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Y4(n){let e={},t=n.split("&");for(let i=0,s=t.length;i<s;i++){let r=t[i].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}class $4 extends Error{constructor(e,t,i){super(e),this.description=t,this.context=i,this.type="TransportError"}}class _0 extends an{constructor(e){super(),this.writable=!1,ju(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,i){return super.emitReserved("error",new $4(e,t,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=f0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=q4(e);return t.length?"?"+t:""}}class W4 extends _0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};D4(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,k4(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=zA()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let HA=!1;try{HA=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const K4=HA;function j4(){}class Q4 extends W4{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let i=location.port;i||(i=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",(s,r)=>{this.onError("xhr post error",s,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,i)=>{this.onError("xhr poll error",t,i)}),this.pollXhr=e}}let ia=class Rd extends an{constructor(e,t,i){super(),this.createRequest=e,ju(this,i),this._opts=i,this._method=i.method||"GET",this._uri=t,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const t=VA(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(t);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=Rd.requestsCount++,Rd.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=j4,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Rd.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};ia.requestsCount=0;ia.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gv);else if(typeof addEventListener=="function"){const n="onpagehide"in mi?"pagehide":"unload";addEventListener(n,gv,!1)}}function gv(){for(let n in ia.requests)ia.requests.hasOwnProperty(n)&&ia.requests[n].abort()}const X4=function(){const n=qA({xdomain:!1});return n&&n.responseType!==null}();class Z4 extends Q4{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=X4&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ia(qA,this.uri(),e)}}function qA(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||K4))return new XMLHttpRequest}catch{}if(!e)try{return new mi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const YA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class J4 extends _0{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,i=YA?{}:VA(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,i)}catch(s){return this.emitReserved("error",s)}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<e.length;t++){const i=e[t],s=t===e.length-1;p0(i,this.supportsBinary,r=>{try{this.doWrite(i,r)}catch{}s&&Ku(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=zA()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Xp=mi.WebSocket||mi.MozWebSocket;class e5 extends J4{createSocket(e,t,i){return YA?new Xp(e,t,i):t?new Xp(e,t):new Xp(e)}doWrite(e,t){this.ws.send(t)}}class t5 extends _0{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=>{const t=P4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(t).getReader(),s=L4();s.readable.pipeTo(e.writable),this._writer=s.writable.getWriter();const r=()=>{i.read().then(({done:a,value:c})=>{a||(this.onPacket(c),r())}).catch(a=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=e[t],s=t===e.length-1;this._writer.write(i).then(()=>{s&&Ku(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const n5={websocket:e5,webtransport:t5,polling:Z4},i5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,s5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Zg(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),i=n.indexOf("]");t!=-1&&i!=-1&&(n=n.substring(0,t)+n.substring(t,i).replace(/:/g,";")+n.substring(i,n.length));let s=i5.exec(n||""),r={},o=14;for(;o--;)r[s5[o]]=s[o]||"";return t!=-1&&i!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=r5(r,r.path),r.queryKey=o5(r,r.query),r}function r5(n,e){const t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function o5(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,r){s&&(t[s]=r)}),t}const Jg=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ad=[];Jg&&addEventListener("offline",()=>{Ad.forEach(n=>n())},!1);class hr extends an{constructor(e,t){if(super(),this.binaryType=U4,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){const i=Zg(e);t.hostname=i.host,t.secure=i.protocol==="https"||i.protocol==="wss",t.port=i.port,i.query&&(t.query=i.query)}else t.host&&(t.hostname=Zg(t.host).host);ju(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",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(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),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=Y4(this.opts.query)),Jg&&(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"})},Ad.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=GA,t.transport=e,this.id&&(t.sid=this.id);const i=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](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&hr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}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",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",hr.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":const t=new 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);const 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){const 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 t=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(t+=z4(s)),i>0&&t>this._maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Ku(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,i){return this._sendPacket("message",e,t,i),this}send(e,t,i){return this._sendPacket("message",e,t,i),this}_sendPacket(e,t,i,s){if(typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:e,data:t,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{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?i():e()}):this.upgrading?i():e()),this}_onError(e){if(hr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_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(),Jg&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ad.indexOf(this._offlineEventListener);i!==-1&&Ad.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}hr.protocol=GA;class a5 extends hr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),i=!1;hr.priorWebsocketSuccess=!1;const s=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!i)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;hr.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=t.name,this.emitReserved("upgradeError",m)}}))};function r(){i||(i=!0,u(),t.close(),t=null)}const o=_=>{const m=new Error("probe error: "+_);m.transport=t.name,r(),this.emitReserved("upgradeError",m)};function a(){o("transport closed")}function c(){o("socket closed")}function d(_){t&&_.name!==t.name&&r()}const u=()=>{t.removeListener("open",s),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};t.once("open",s),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}let l5=class extends a5{constructor(e,t={}){const i=typeof e=="object"?e:t;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>n5[s]).filter(s=>!!s)),super(e,i)}};function c5(n,e="",t){let i=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),i=Zg(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const r=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+e,i.href=i.protocol+"://"+r+(t&&t.port===i.port?"":":"+i.port),i}const d5=typeof ArrayBuffer=="function",u5=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,$A=Object.prototype.toString,p5=typeof Blob=="function"||typeof Blob<"u"&&$A.call(Blob)==="[object BlobConstructor]",f5=typeof File=="function"||typeof File<"u"&&$A.call(File)==="[object FileConstructor]";function m0(n){return d5&&(n instanceof ArrayBuffer||u5(n))||p5&&n instanceof Blob||f5&&n instanceof File}function Md(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(Md(n[t]))return!0;return!1}if(m0(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Md(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&Md(n[t]))return!0;return!1}function _5(n){const e=[],t=n.data,i=n;return i.data=eb(t,e),i.attachments=e.length,{packet:i,buffers:e}}function eb(n,e){if(!n)return n;if(m0(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=eb(n[i],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=eb(n[i],e));return t}return n}function m5(n,e){return n.data=tb(n.data,e),delete n.attachments,n}function tb(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=tb(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=tb(n[t],e));return n}const h5=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],g5=5;var At;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(At||(At={}));class b5{constructor(e){this.replacer=e}encode(e){return(e.type===At.EVENT||e.type===At.ACK)&&Md(e)?this.encodeAsBinary({type:e.type===At.EVENT?At.BINARY_EVENT:At.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===At.BINARY_EVENT||e.type===At.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){const t=_5(e),i=this.encodeAsString(t.packet),s=t.buffers;return s.unshift(i),s}}function bv(n){return Object.prototype.toString.call(n)==="[object Object]"}class h0 extends an{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const i=t.type===At.BINARY_EVENT;i||t.type===At.BINARY_ACK?(t.type=i?At.EVENT:At.ACK,this.reconstructor=new y5(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(m0(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const i={type:Number(e.charAt(0))};if(At[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===At.BINARY_EVENT||i.type===At.BINARY_ACK){const r=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(o)}if(e.charAt(t+1)==="/"){const r=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(r,t)}else i.nsp="/";const s=e.charAt(t+1);if(s!==""&&Number(s)==s){const r=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}i.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(h0.isPayloadValid(i.type,r))i.data=r;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case At.CONNECT:return bv(t);case At.DISCONNECT:return t===void 0;case At.CONNECT_ERROR:return typeof t=="string"||bv(t);case At.EVENT:case At.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&h5.indexOf(t[0])===-1);case At.ACK:case At.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class y5{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=m5(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const E5=Object.freeze(Object.defineProperty({__proto__:null,Decoder:h0,Encoder:b5,get PacketType(){return At},protocol:g5},Symbol.toStringTag,{value:"Module"}));function Li(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const v5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class WA extends an{constructor(e,t,i){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,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Li(e,"open",this.onopen.bind(this)),Li(e,"packet",this.onpacket.bind(this)),Li(e,"error",this.onerror.bind(this)),Li(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){var i,s,r;if(v5.hasOwnProperty(e))throw new 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;const o={type:At.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const u=this.ids++,_=t.pop();this._registerAckCallback(u,_),o.id=u}const a=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,c=this.connected&&!(!((r=this.io.engine)===null||r===void 0)&&r._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},s),o=(...a)=>{this.io.clearTimeoutFn(r),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((i,s)=>{const r=(o,a)=>o?s(o):i(a);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...r)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(s)):(this._queue.shift(),t&&t(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const 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:At.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(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case At.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new 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 At.EVENT:case At.BINARY_EVENT:this.onevent(e);break;case At.ACK:case At.BINARY_ACK:this.onack(e);break;case At.DISCONNECT:this.ondisconnect();break;case At.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const 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){const t=this._anyListeners.slice();for(const i of t)i.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){const t=this;let i=!1;return function(...s){i||(i=!0,t.packet({type:At.ACK,id:e,data:s}))}}onack(e){const 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.emitReserved("connect"),this._drainQueue(!0)}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()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:At.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){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const i of t)i.apply(this,e.data)}}}function Ba(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ba.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};Ba.prototype.reset=function(){this.attempts=0};Ba.prototype.setMin=function(n){this.ms=n};Ba.prototype.setMax=function(n){this.max=n};Ba.prototype.setJitter=function(n){this.jitter=n};class nb extends an{constructor(e,t){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ju(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((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ba({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const s=t.parser||E5;this.encoder=new s.Encoder,this.decoder=new s.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===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||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 l5(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Li(t,"open",function(){i.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Li(t,"error",r);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{s(),r(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(s),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Li(e,"ping",this.onping.bind(this)),Li(e,"data",this.ondata.bind(this)),Li(e,"error",this.onerror.bind(this)),Li(e,"close",this.onclose.bind(this)),Li(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Ku(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new WA(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),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 i;this.cleanup(),(i=this.engine)===null||i===void 0||i.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;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(s=>{s?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",s)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const nl={};function Nd(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=c5(n,e.path||"/socket.io"),i=t.source,s=t.id,r=t.path,o=nl[s]&&r in nl[s].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new nb(i,e):(nl[s]||(nl[s]=new nb(i,e)),c=nl[s]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(Nd,{Manager:nb,Socket:WA,io:Nd,connect:Nd});const KA="/";console.log(KA);const Ye=new Nd(KA,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),S5={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),Le(()=>{Ve.replace()})},showToast(n,e=3,t=!0){const i=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:i,log_type:t,message:n,show:!0};this.toastArr.push(s),Le(()=>{Ve.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=i)},e*1e3)}},watch:{}},T5={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},x5={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},C5={class:"flex flex-row flex-grow items-center h-auto"},w5={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},R5={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},A5={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},M5={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},N5=["title"],O5={class:"flex"},I5=["onClick"],k5=["onClick"];function D5(n,e,t,i,s,r){return T(),w("div",T5,[z(Is,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.toastArr,o=>(T(),w("div",{key:o.id,class:"relative"},[l("div",x5,[l("div",C5,[o.log_type==0?(T(),w("div",w5,e[0]||(e[0]=[l("i",{"data-feather":"x"},null,-1),l("span",{class:"sr-only"},"Cross icon",-1)]))):B("",!0),o.log_type==1?(T(),w("div",R5,e[1]||(e[1]=[l("i",{"data-feather":"check"},null,-1),l("span",{class:"sr-only"},"Check icon",-1)]))):B("",!0),o.log_type==2?(T(),w("div",A5,e[2]||(e[2]=[l("i",{"data-feather":"info"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),o.log_type==3?(T(),w("div",M5,e[3]||(e[3]=[l("i",{"data-feather":"alert-triangle"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),l("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},$(o.message),9,N5)]),l("div",O5,[l("button",{type:"button",onClick:W(a=>r.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[l("span",{class:"sr-only"},"Copy message",-1),l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,I5),l("button",{type:"button",onClick:a=>r.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[l("span",{class:"sr-only"},"Close",-1),l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,k5)])])]))),128))]),_:1})])}const Qu=st(S5,[["render",D5],["__scopeId","data-v-46f379e5"]]);var kt={};const L5="Á",P5="á",F5="Ă",U5="ă",B5="∾",G5="∿",V5="∾̳",z5="Â",H5="â",q5="´",Y5="А",$5="а",W5="Æ",K5="æ",j5="⁡",Q5="𝔄",X5="𝔞",Z5="À",J5="à",eF="ℵ",tF="ℵ",nF="Α",iF="α",sF="Ā",rF="ā",oF="⨿",aF="&",lF="&",cF="⩕",dF="⩓",uF="∧",pF="⩜",fF="⩘",_F="⩚",mF="∠",hF="⦤",gF="∠",bF="⦨",yF="⦩",EF="⦪",vF="⦫",SF="⦬",TF="⦭",xF="⦮",CF="⦯",wF="∡",RF="∟",AF="⊾",MF="⦝",NF="∢",OF="Å",IF="⍼",kF="Ą",DF="ą",LF="𝔸",PF="𝕒",FF="⩯",UF="≈",BF="⩰",GF="≊",VF="≋",zF="'",HF="⁡",qF="≈",YF="≊",$F="Å",WF="å",KF="𝒜",jF="𝒶",QF="≔",XF="*",ZF="≈",JF="≍",eU="Ã",tU="ã",nU="Ä",iU="ä",sU="∳",rU="⨑",oU="≌",aU="϶",lU="‵",cU="∽",dU="⋍",uU="∖",pU="⫧",fU="⊽",_U="⌅",mU="⌆",hU="⌅",gU="⎵",bU="⎶",yU="≌",EU="Б",vU="б",SU="„",TU="∵",xU="∵",CU="∵",wU="⦰",RU="϶",AU="ℬ",MU="ℬ",NU="Β",OU="β",IU="ℶ",kU="≬",DU="𝔅",LU="𝔟",PU="⋂",FU="◯",UU="⋃",BU="⨀",GU="⨁",VU="⨂",zU="⨆",HU="★",qU="▽",YU="△",$U="⨄",WU="⋁",KU="⋀",jU="⤍",QU="⧫",XU="▪",ZU="▴",JU="▾",eB="◂",tB="▸",nB="␣",iB="▒",sB="░",rB="▓",oB="█",aB="=⃥",lB="≡⃥",cB="⫭",dB="⌐",uB="𝔹",pB="𝕓",fB="⊥",_B="⊥",mB="⋈",hB="⧉",gB="┐",bB="╕",yB="╖",EB="╗",vB="┌",SB="╒",TB="╓",xB="╔",CB="─",wB="═",RB="┬",AB="╤",MB="╥",NB="╦",OB="┴",IB="╧",kB="╨",DB="╩",LB="⊟",PB="⊞",FB="⊠",UB="┘",BB="╛",GB="╜",VB="╝",zB="└",HB="╘",qB="╙",YB="╚",$B="│",WB="║",KB="┼",jB="╪",QB="╫",XB="╬",ZB="┤",JB="╡",e6="╢",t6="╣",n6="├",i6="╞",s6="╟",r6="╠",o6="‵",a6="˘",l6="˘",c6="¦",d6="𝒷",u6="ℬ",p6="⁏",f6="∽",_6="⋍",m6="⧅",h6="\\",g6="⟈",b6="•",y6="•",E6="≎",v6="⪮",S6="≏",T6="≎",x6="≏",C6="Ć",w6="ć",R6="⩄",A6="⩉",M6="⩋",N6="∩",O6="⋒",I6="⩇",k6="⩀",D6="ⅅ",L6="∩︀",P6="⁁",F6="ˇ",U6="ℭ",B6="⩍",G6="Č",V6="č",z6="Ç",H6="ç",q6="Ĉ",Y6="ĉ",$6="∰",W6="⩌",K6="⩐",j6="Ċ",Q6="ċ",X6="¸",Z6="¸",J6="⦲",e9="¢",t9="·",n9="·",i9="𝔠",s9="ℭ",r9="Ч",o9="ч",a9="✓",l9="✓",c9="Χ",d9="χ",u9="ˆ",p9="≗",f9="↺",_9="↻",m9="⊛",h9="⊚",g9="⊝",b9="⊙",y9="®",E9="Ⓢ",v9="⊖",S9="⊕",T9="⊗",x9="○",C9="⧃",w9="≗",R9="⨐",A9="⫯",M9="⧂",N9="∲",O9="”",I9="’",k9="♣",D9="♣",L9=":",P9="∷",F9="⩴",U9="≔",B9="≔",G9=",",V9="@",z9="∁",H9="∘",q9="∁",Y9="ℂ",$9="≅",W9="⩭",K9="≡",j9="∮",Q9="∯",X9="∮",Z9="𝕔",J9="ℂ",e8="∐",t8="∐",n8="©",i8="©",s8="℗",r8="∳",o8="↵",a8="✗",l8="⨯",c8="𝒞",d8="𝒸",u8="⫏",p8="⫑",f8="⫐",_8="⫒",m8="⋯",h8="⤸",g8="⤵",b8="⋞",y8="⋟",E8="↶",v8="⤽",S8="⩈",T8="⩆",x8="≍",C8="∪",w8="⋓",R8="⩊",A8="⊍",M8="⩅",N8="∪︀",O8="↷",I8="⤼",k8="⋞",D8="⋟",L8="⋎",P8="⋏",F8="¤",U8="↶",B8="↷",G8="⋎",V8="⋏",z8="∲",H8="∱",q8="⌭",Y8="†",$8="‡",W8="ℸ",K8="↓",j8="↡",Q8="⇓",X8="‐",Z8="⫤",J8="⊣",eG="⤏",tG="˝",nG="Ď",iG="ď",sG="Д",rG="д",oG="‡",aG="⇊",lG="ⅅ",cG="ⅆ",dG="⤑",uG="⩷",pG="°",fG="∇",_G="Δ",mG="δ",hG="⦱",gG="⥿",bG="𝔇",yG="𝔡",EG="⥥",vG="⇃",SG="⇂",TG="´",xG="˙",CG="˝",wG="`",RG="˜",AG="⋄",MG="⋄",NG="⋄",OG="♦",IG="♦",kG="¨",DG="ⅆ",LG="ϝ",PG="⋲",FG="÷",UG="÷",BG="⋇",GG="⋇",VG="Ђ",zG="ђ",HG="⌞",qG="⌍",YG="$",$G="𝔻",WG="𝕕",KG="¨",jG="˙",QG="⃜",XG="≐",ZG="≑",JG="≐",e7="∸",t7="∔",n7="⊡",i7="⌆",s7="∯",r7="¨",o7="⇓",a7="⇐",l7="⇔",c7="⫤",d7="⟸",u7="⟺",p7="⟹",f7="⇒",_7="⊨",m7="⇑",h7="⇕",g7="∥",b7="⤓",y7="↓",E7="↓",v7="⇓",S7="⇵",T7="̑",x7="⇊",C7="⇃",w7="⇂",R7="⥐",A7="⥞",M7="⥖",N7="↽",O7="⥟",I7="⥗",k7="⇁",D7="↧",L7="⊤",P7="⤐",F7="⌟",U7="⌌",B7="𝒟",G7="𝒹",V7="Ѕ",z7="ѕ",H7="⧶",q7="Đ",Y7="đ",$7="⋱",W7="▿",K7="▾",j7="⇵",Q7="⥯",X7="⦦",Z7="Џ",J7="џ",eV="⟿",tV="É",nV="é",iV="⩮",sV="Ě",rV="ě",oV="Ê",aV="ê",lV="≖",cV="≕",dV="Э",uV="э",pV="⩷",fV="Ė",_V="ė",mV="≑",hV="ⅇ",gV="≒",bV="𝔈",yV="𝔢",EV="⪚",vV="È",SV="è",TV="⪖",xV="⪘",CV="⪙",wV="∈",RV="⏧",AV="ℓ",MV="⪕",NV="⪗",OV="Ē",IV="ē",kV="∅",DV="∅",LV="◻",PV="∅",FV="▫",UV=" ",BV=" ",GV=" ",VV="Ŋ",zV="ŋ",HV=" ",qV="Ę",YV="ę",$V="𝔼",WV="𝕖",KV="⋕",jV="⧣",QV="⩱",XV="ε",ZV="Ε",JV="ε",ez="ϵ",tz="≖",nz="≕",iz="≂",sz="⪖",rz="⪕",oz="⩵",az="=",lz="≂",cz="≟",dz="⇌",uz="≡",pz="⩸",fz="⧥",_z="⥱",mz="≓",hz="ℯ",gz="ℰ",bz="≐",yz="⩳",Ez="≂",vz="Η",Sz="η",Tz="Ð",xz="ð",Cz="Ë",wz="ë",Rz="€",Az="!",Mz="∃",Nz="∃",Oz="ℰ",Iz="ⅇ",kz="ⅇ",Dz="≒",Lz="Ф",Pz="ф",Fz="♀",Uz="ffi",Bz="ff",Gz="ffl",Vz="𝔉",zz="𝔣",Hz="fi",qz="◼",Yz="▪",$z="fj",Wz="♭",Kz="fl",jz="▱",Qz="ƒ",Xz="𝔽",Zz="𝕗",Jz="∀",eH="∀",tH="⋔",nH="⫙",iH="ℱ",sH="⨍",rH="½",oH="⅓",aH="¼",lH="⅕",cH="⅙",dH="⅛",uH="⅔",pH="⅖",fH="¾",_H="⅗",mH="⅜",hH="⅘",gH="⅚",bH="⅝",yH="⅞",EH="⁄",vH="⌢",SH="𝒻",TH="ℱ",xH="ǵ",CH="Γ",wH="γ",RH="Ϝ",AH="ϝ",MH="⪆",NH="Ğ",OH="ğ",IH="Ģ",kH="Ĝ",DH="ĝ",LH="Г",PH="г",FH="Ġ",UH="ġ",BH="≥",GH="≧",VH="⪌",zH="⋛",HH="≥",qH="≧",YH="⩾",$H="⪩",WH="⩾",KH="⪀",jH="⪂",QH="⪄",XH="⋛︀",ZH="⪔",JH="𝔊",eq="𝔤",tq="≫",nq="⋙",iq="⋙",sq="ℷ",rq="Ѓ",oq="ѓ",aq="⪥",lq="≷",cq="⪒",dq="⪤",uq="⪊",pq="⪊",fq="⪈",_q="≩",mq="⪈",hq="≩",gq="⋧",bq="𝔾",yq="𝕘",Eq="`",vq="≥",Sq="⋛",Tq="≧",xq="⪢",Cq="≷",wq="⩾",Rq="≳",Aq="𝒢",Mq="ℊ",Nq="≳",Oq="⪎",Iq="⪐",kq="⪧",Dq="⩺",Lq=">",Pq=">",Fq="≫",Uq="⋗",Bq="⦕",Gq="⩼",Vq="⪆",zq="⥸",Hq="⋗",qq="⋛",Yq="⪌",$q="≷",Wq="≳",Kq="≩︀",jq="≩︀",Qq="ˇ",Xq=" ",Zq="½",Jq="ℋ",eY="Ъ",tY="ъ",nY="⥈",iY="↔",sY="⇔",rY="↭",oY="^",aY="ℏ",lY="Ĥ",cY="ĥ",dY="♥",uY="♥",pY="…",fY="⊹",_Y="𝔥",mY="ℌ",hY="ℋ",gY="⤥",bY="⤦",yY="⇿",EY="∻",vY="↩",SY="↪",TY="𝕙",xY="ℍ",CY="―",wY="─",RY="𝒽",AY="ℋ",MY="ℏ",NY="Ħ",OY="ħ",IY="≎",kY="≏",DY="⁃",LY="‐",PY="Í",FY="í",UY="⁣",BY="Î",GY="î",VY="И",zY="и",HY="İ",qY="Е",YY="е",$Y="¡",WY="⇔",KY="𝔦",jY="ℑ",QY="Ì",XY="ì",ZY="ⅈ",JY="⨌",e$="∭",t$="⧜",n$="℩",i$="IJ",s$="ij",r$="Ī",o$="ī",a$="ℑ",l$="ⅈ",c$="ℐ",d$="ℑ",u$="ı",p$="ℑ",f$="⊷",_$="Ƶ",m$="⇒",h$="℅",g$="∞",b$="⧝",y$="ı",E$="⊺",v$="∫",S$="∬",T$="ℤ",x$="∫",C$="⊺",w$="⋂",R$="⨗",A$="⨼",M$="⁣",N$="⁢",O$="Ё",I$="ё",k$="Į",D$="į",L$="𝕀",P$="𝕚",F$="Ι",U$="ι",B$="⨼",G$="¿",V$="𝒾",z$="ℐ",H$="∈",q$="⋵",Y$="⋹",$$="⋴",W$="⋳",K$="∈",j$="⁢",Q$="Ĩ",X$="ĩ",Z$="І",J$="і",eW="Ï",tW="ï",nW="Ĵ",iW="ĵ",sW="Й",rW="й",oW="𝔍",aW="𝔧",lW="ȷ",cW="𝕁",dW="𝕛",uW="𝒥",pW="𝒿",fW="Ј",_W="ј",mW="Є",hW="є",gW="Κ",bW="κ",yW="ϰ",EW="Ķ",vW="ķ",SW="К",TW="к",xW="𝔎",CW="𝔨",wW="ĸ",RW="Х",AW="х",MW="Ќ",NW="ќ",OW="𝕂",IW="𝕜",kW="𝒦",DW="𝓀",LW="⇚",PW="Ĺ",FW="ĺ",UW="⦴",BW="ℒ",GW="Λ",VW="λ",zW="⟨",HW="⟪",qW="⦑",YW="⟨",$W="⪅",WW="ℒ",KW="«",jW="⇤",QW="⤟",XW="←",ZW="↞",JW="⇐",eK="⤝",tK="↩",nK="↫",iK="⤹",sK="⥳",rK="↢",oK="⤙",aK="⤛",lK="⪫",cK="⪭",dK="⪭︀",uK="⤌",pK="⤎",fK="❲",_K="{",mK="[",hK="⦋",gK="⦏",bK="⦍",yK="Ľ",EK="ľ",vK="Ļ",SK="ļ",TK="⌈",xK="{",CK="Л",wK="л",RK="⤶",AK="“",MK="„",NK="⥧",OK="⥋",IK="↲",kK="≤",DK="≦",LK="⟨",PK="⇤",FK="←",UK="←",BK="⇐",GK="⇆",VK="↢",zK="⌈",HK="⟦",qK="⥡",YK="⥙",$K="⇃",WK="⌊",KK="↽",jK="↼",QK="⇇",XK="↔",ZK="↔",JK="⇔",ej="⇆",tj="⇋",nj="↭",ij="⥎",sj="↤",rj="⊣",oj="⥚",aj="⋋",lj="⧏",cj="⊲",dj="⊴",uj="⥑",pj="⥠",fj="⥘",_j="↿",mj="⥒",hj="↼",gj="⪋",bj="⋚",yj="≤",Ej="≦",vj="⩽",Sj="⪨",Tj="⩽",xj="⩿",Cj="⪁",wj="⪃",Rj="⋚︀",Aj="⪓",Mj="⪅",Nj="⋖",Oj="⋚",Ij="⪋",kj="⋚",Dj="≦",Lj="≶",Pj="≶",Fj="⪡",Uj="≲",Bj="⩽",Gj="≲",Vj="⥼",zj="⌊",Hj="𝔏",qj="𝔩",Yj="≶",$j="⪑",Wj="⥢",Kj="↽",jj="↼",Qj="⥪",Xj="▄",Zj="Љ",Jj="љ",eQ="⇇",tQ="≪",nQ="⋘",iQ="⌞",sQ="⇚",rQ="⥫",oQ="◺",aQ="Ŀ",lQ="ŀ",cQ="⎰",dQ="⎰",uQ="⪉",pQ="⪉",fQ="⪇",_Q="≨",mQ="⪇",hQ="≨",gQ="⋦",bQ="⟬",yQ="⇽",EQ="⟦",vQ="⟵",SQ="⟵",TQ="⟸",xQ="⟷",CQ="⟷",wQ="⟺",RQ="⟼",AQ="⟶",MQ="⟶",NQ="⟹",OQ="↫",IQ="↬",kQ="⦅",DQ="𝕃",LQ="𝕝",PQ="⨭",FQ="⨴",UQ="∗",BQ="_",GQ="↙",VQ="↘",zQ="◊",HQ="◊",qQ="⧫",YQ="(",$Q="⦓",WQ="⇆",KQ="⌟",jQ="⇋",QQ="⥭",XQ="‎",ZQ="⊿",JQ="‹",eX="𝓁",tX="ℒ",nX="↰",iX="↰",sX="≲",rX="⪍",oX="⪏",aX="[",lX="‘",cX="‚",dX="Ł",uX="ł",pX="⪦",fX="⩹",_X="<",mX="<",hX="≪",gX="⋖",bX="⋋",yX="⋉",EX="⥶",vX="⩻",SX="◃",TX="⊴",xX="◂",CX="⦖",wX="⥊",RX="⥦",AX="≨︀",MX="≨︀",NX="¯",OX="♂",IX="✠",kX="✠",DX="↦",LX="↦",PX="↧",FX="↤",UX="↥",BX="▮",GX="⨩",VX="М",zX="м",HX="—",qX="∺",YX="∡",$X=" ",WX="ℳ",KX="𝔐",jX="𝔪",QX="℧",XX="µ",ZX="*",JX="⫰",eZ="∣",tZ="·",nZ="⊟",iZ="−",sZ="∸",rZ="⨪",oZ="∓",aZ="⫛",lZ="…",cZ="∓",dZ="⊧",uZ="𝕄",pZ="𝕞",fZ="∓",_Z="𝓂",mZ="ℳ",hZ="∾",gZ="Μ",bZ="μ",yZ="⊸",EZ="⊸",vZ="∇",SZ="Ń",TZ="ń",xZ="∠⃒",CZ="≉",wZ="⩰̸",RZ="≋̸",AZ="ʼn",MZ="≉",NZ="♮",OZ="ℕ",IZ="♮",kZ=" ",DZ="≎̸",LZ="≏̸",PZ="⩃",FZ="Ň",UZ="ň",BZ="Ņ",GZ="ņ",VZ="≇",zZ="⩭̸",HZ="⩂",qZ="Н",YZ="н",$Z="–",WZ="⤤",KZ="↗",jZ="⇗",QZ="↗",XZ="≠",ZZ="≐̸",JZ="​",eJ="​",tJ="​",nJ="​",iJ="≢",sJ="⤨",rJ="≂̸",oJ="≫",aJ="≪",lJ=`
-`,cJ="∄",dJ="∄",uJ="𝔑",pJ="𝔫",fJ="≧̸",_J="≱",mJ="≱",hJ="≧̸",gJ="⩾̸",bJ="⩾̸",yJ="⋙̸",EJ="≵",vJ="≫⃒",SJ="≯",TJ="≯",xJ="≫̸",CJ="↮",wJ="⇎",RJ="⫲",AJ="∋",MJ="⋼",NJ="⋺",OJ="∋",IJ="Њ",kJ="њ",DJ="↚",LJ="⇍",PJ="‥",FJ="≦̸",UJ="≰",BJ="↚",GJ="⇍",VJ="↮",zJ="⇎",HJ="≰",qJ="≦̸",YJ="⩽̸",$J="⩽̸",WJ="≮",KJ="⋘̸",jJ="≴",QJ="≪⃒",XJ="≮",ZJ="⋪",JJ="⋬",eee="≪̸",tee="∤",nee="⁠",iee=" ",see="𝕟",ree="ℕ",oee="⫬",aee="¬",lee="≢",cee="≭",dee="∦",uee="∉",pee="≠",fee="≂̸",_ee="∄",mee="≯",hee="≱",gee="≧̸",bee="≫̸",yee="≹",Eee="⩾̸",vee="≵",See="≎̸",Tee="≏̸",xee="∉",Cee="⋵̸",wee="⋹̸",Ree="∉",Aee="⋷",Mee="⋶",Nee="⧏̸",Oee="⋪",Iee="⋬",kee="≮",Dee="≰",Lee="≸",Pee="≪̸",Fee="⩽̸",Uee="≴",Bee="⪢̸",Gee="⪡̸",Vee="∌",zee="∌",Hee="⋾",qee="⋽",Yee="⊀",$ee="⪯̸",Wee="⋠",Kee="∌",jee="⧐̸",Qee="⋫",Xee="⋭",Zee="⊏̸",Jee="⋢",ete="⊐̸",tte="⋣",nte="⊂⃒",ite="⊈",ste="⊁",rte="⪰̸",ote="⋡",ate="≿̸",lte="⊃⃒",cte="⊉",dte="≁",ute="≄",pte="≇",fte="≉",_te="∤",mte="∦",hte="∦",gte="⫽⃥",bte="∂̸",yte="⨔",Ete="⊀",vte="⋠",Ste="⊀",Tte="⪯̸",xte="⪯̸",Cte="⤳̸",wte="↛",Rte="⇏",Ate="↝̸",Mte="↛",Nte="⇏",Ote="⋫",Ite="⋭",kte="⊁",Dte="⋡",Lte="⪰̸",Pte="𝒩",Fte="𝓃",Ute="∤",Bte="∦",Gte="≁",Vte="≄",zte="≄",Hte="∤",qte="∦",Yte="⋢",$te="⋣",Wte="⊄",Kte="⫅̸",jte="⊈",Qte="⊂⃒",Xte="⊈",Zte="⫅̸",Jte="⊁",ene="⪰̸",tne="⊅",nne="⫆̸",ine="⊉",sne="⊃⃒",rne="⊉",one="⫆̸",ane="≹",lne="Ñ",cne="ñ",dne="≸",une="⋪",pne="⋬",fne="⋫",_ne="⋭",mne="Ν",hne="ν",gne="#",bne="№",yne=" ",Ene="≍⃒",vne="⊬",Sne="⊭",Tne="⊮",xne="⊯",Cne="≥⃒",wne=">⃒",Rne="⤄",Ane="⧞",Mne="⤂",Nne="≤⃒",One="<⃒",Ine="⊴⃒",kne="⤃",Dne="⊵⃒",Lne="∼⃒",Pne="⤣",Fne="↖",Une="⇖",Bne="↖",Gne="⤧",Vne="Ó",zne="ó",Hne="⊛",qne="Ô",Yne="ô",$ne="⊚",Wne="О",Kne="о",jne="⊝",Qne="Ő",Xne="ő",Zne="⨸",Jne="⊙",eie="⦼",tie="Œ",nie="œ",iie="⦿",sie="𝔒",rie="𝔬",oie="˛",aie="Ò",lie="ò",cie="⧁",die="⦵",uie="Ω",pie="∮",fie="↺",_ie="⦾",mie="⦻",hie="‾",gie="⧀",bie="Ō",yie="ō",Eie="Ω",vie="ω",Sie="Ο",Tie="ο",xie="⦶",Cie="⊖",wie="𝕆",Rie="𝕠",Aie="⦷",Mie="“",Nie="‘",Oie="⦹",Iie="⊕",kie="↻",Die="⩔",Lie="∨",Pie="⩝",Fie="ℴ",Uie="ℴ",Bie="ª",Gie="º",Vie="⊶",zie="⩖",Hie="⩗",qie="⩛",Yie="Ⓢ",$ie="𝒪",Wie="ℴ",Kie="Ø",jie="ø",Qie="⊘",Xie="Õ",Zie="õ",Jie="⨶",ese="⨷",tse="⊗",nse="Ö",ise="ö",sse="⌽",rse="‾",ose="⏞",ase="⎴",lse="⏜",cse="¶",dse="∥",use="∥",pse="⫳",fse="⫽",_se="∂",mse="∂",hse="П",gse="п",bse="%",yse=".",Ese="‰",vse="⊥",Sse="‱",Tse="𝔓",xse="𝔭",Cse="Φ",wse="φ",Rse="ϕ",Ase="ℳ",Mse="☎",Nse="Π",Ose="π",Ise="⋔",kse="ϖ",Dse="ℏ",Lse="ℎ",Pse="ℏ",Fse="⨣",Use="⊞",Bse="⨢",Gse="+",Vse="∔",zse="⨥",Hse="⩲",qse="±",Yse="±",$se="⨦",Wse="⨧",Kse="±",jse="ℌ",Qse="⨕",Xse="𝕡",Zse="ℙ",Jse="£",ere="⪷",tre="⪻",nre="≺",ire="≼",sre="⪷",rre="≺",ore="≼",are="≺",lre="⪯",cre="≼",dre="≾",ure="⪯",pre="⪹",fre="⪵",_re="⋨",mre="⪯",hre="⪳",gre="≾",bre="′",yre="″",Ere="ℙ",vre="⪹",Sre="⪵",Tre="⋨",xre="∏",Cre="∏",wre="⌮",Rre="⌒",Are="⌓",Mre="∝",Nre="∝",Ore="∷",Ire="∝",kre="≾",Dre="⊰",Lre="𝒫",Pre="𝓅",Fre="Ψ",Ure="ψ",Bre=" ",Gre="𝔔",Vre="𝔮",zre="⨌",Hre="𝕢",qre="ℚ",Yre="⁗",$re="𝒬",Wre="𝓆",Kre="ℍ",jre="⨖",Qre="?",Xre="≟",Zre='"',Jre='"',eoe="⇛",toe="∽̱",noe="Ŕ",ioe="ŕ",soe="√",roe="⦳",ooe="⟩",aoe="⟫",loe="⦒",coe="⦥",doe="⟩",uoe="»",poe="⥵",foe="⇥",_oe="⤠",moe="⤳",hoe="→",goe="↠",boe="⇒",yoe="⤞",Eoe="↪",voe="↬",Soe="⥅",Toe="⥴",xoe="⤖",Coe="↣",woe="↝",Roe="⤚",Aoe="⤜",Moe="∶",Noe="ℚ",Ooe="⤍",Ioe="⤏",koe="⤐",Doe="❳",Loe="}",Poe="]",Foe="⦌",Uoe="⦎",Boe="⦐",Goe="Ř",Voe="ř",zoe="Ŗ",Hoe="ŗ",qoe="⌉",Yoe="}",$oe="Р",Woe="р",Koe="⤷",joe="⥩",Qoe="”",Xoe="”",Zoe="↳",Joe="ℜ",eae="ℛ",tae="ℜ",nae="ℝ",iae="ℜ",sae="▭",rae="®",oae="®",aae="∋",lae="⇋",cae="⥯",dae="⥽",uae="⌋",pae="𝔯",fae="ℜ",_ae="⥤",mae="⇁",hae="⇀",gae="⥬",bae="Ρ",yae="ρ",Eae="ϱ",vae="⟩",Sae="⇥",Tae="→",xae="→",Cae="⇒",wae="⇄",Rae="↣",Aae="⌉",Mae="⟧",Nae="⥝",Oae="⥕",Iae="⇂",kae="⌋",Dae="⇁",Lae="⇀",Pae="⇄",Fae="⇌",Uae="⇉",Bae="↝",Gae="↦",Vae="⊢",zae="⥛",Hae="⋌",qae="⧐",Yae="⊳",$ae="⊵",Wae="⥏",Kae="⥜",jae="⥔",Qae="↾",Xae="⥓",Zae="⇀",Jae="˚",ele="≓",tle="⇄",nle="⇌",ile="‏",sle="⎱",rle="⎱",ole="⫮",ale="⟭",lle="⇾",cle="⟧",dle="⦆",ule="𝕣",ple="ℝ",fle="⨮",_le="⨵",mle="⥰",hle=")",gle="⦔",ble="⨒",yle="⇉",Ele="⇛",vle="›",Sle="𝓇",Tle="ℛ",xle="↱",Cle="↱",wle="]",Rle="’",Ale="’",Mle="⋌",Nle="⋊",Ole="▹",Ile="⊵",kle="▸",Dle="⧎",Lle="⧴",Ple="⥨",Fle="℞",Ule="Ś",Ble="ś",Gle="‚",Vle="⪸",zle="Š",Hle="š",qle="⪼",Yle="≻",$le="≽",Wle="⪰",Kle="⪴",jle="Ş",Qle="ş",Xle="Ŝ",Zle="ŝ",Jle="⪺",ece="⪶",tce="⋩",nce="⨓",ice="≿",sce="С",rce="с",oce="⊡",ace="⋅",lce="⩦",cce="⤥",dce="↘",uce="⇘",pce="↘",fce="§",_ce=";",mce="⤩",hce="∖",gce="∖",bce="✶",yce="𝔖",Ece="𝔰",vce="⌢",Sce="♯",Tce="Щ",xce="щ",Cce="Ш",wce="ш",Rce="↓",Ace="←",Mce="∣",Nce="∥",Oce="→",Ice="↑",kce="­",Dce="Σ",Lce="σ",Pce="ς",Fce="ς",Uce="∼",Bce="⩪",Gce="≃",Vce="≃",zce="⪞",Hce="⪠",qce="⪝",Yce="⪟",$ce="≆",Wce="⨤",Kce="⥲",jce="←",Qce="∘",Xce="∖",Zce="⨳",Jce="⧤",ede="∣",tde="⌣",nde="⪪",ide="⪬",sde="⪬︀",rde="Ь",ode="ь",ade="⌿",lde="⧄",cde="/",dde="𝕊",ude="𝕤",pde="♠",fde="♠",_de="∥",mde="⊓",hde="⊓︀",gde="⊔",bde="⊔︀",yde="√",Ede="⊏",vde="⊑",Sde="⊏",Tde="⊑",xde="⊐",Cde="⊒",wde="⊐",Rde="⊒",Ade="□",Mde="□",Nde="⊓",Ode="⊏",Ide="⊑",kde="⊐",Dde="⊒",Lde="⊔",Pde="▪",Fde="□",Ude="▪",Bde="→",Gde="𝒮",Vde="𝓈",zde="∖",Hde="⌣",qde="⋆",Yde="⋆",$de="☆",Wde="★",Kde="ϵ",jde="ϕ",Qde="¯",Xde="⊂",Zde="⋐",Jde="⪽",eue="⫅",tue="⊆",nue="⫃",iue="⫁",sue="⫋",rue="⊊",oue="⪿",aue="⥹",lue="⊂",cue="⋐",due="⊆",uue="⫅",pue="⊆",fue="⊊",_ue="⫋",mue="⫇",hue="⫕",gue="⫓",bue="⪸",yue="≻",Eue="≽",vue="≻",Sue="⪰",Tue="≽",xue="≿",Cue="⪰",wue="⪺",Rue="⪶",Aue="⋩",Mue="≿",Nue="∋",Oue="∑",Iue="∑",kue="♪",Due="¹",Lue="²",Pue="³",Fue="⊃",Uue="⋑",Bue="⪾",Gue="⫘",Vue="⫆",zue="⊇",Hue="⫄",que="⊃",Yue="⊇",$ue="⟉",Wue="⫗",Kue="⥻",jue="⫂",Que="⫌",Xue="⊋",Zue="⫀",Jue="⊃",epe="⋑",tpe="⊇",npe="⫆",ipe="⊋",spe="⫌",rpe="⫈",ope="⫔",ape="⫖",lpe="⤦",cpe="↙",dpe="⇙",upe="↙",ppe="⤪",fpe="ß",_pe="	",mpe="⌖",hpe="Τ",gpe="τ",bpe="⎴",ype="Ť",Epe="ť",vpe="Ţ",Spe="ţ",Tpe="Т",xpe="т",Cpe="⃛",wpe="⌕",Rpe="𝔗",Ape="𝔱",Mpe="∴",Npe="∴",Ope="∴",Ipe="Θ",kpe="θ",Dpe="ϑ",Lpe="ϑ",Ppe="≈",Fpe="∼",Upe="  ",Bpe=" ",Gpe=" ",Vpe="≈",zpe="∼",Hpe="Þ",qpe="þ",Ype="˜",$pe="∼",Wpe="≃",Kpe="≅",jpe="≈",Qpe="⨱",Xpe="⊠",Zpe="×",Jpe="⨰",efe="∭",tfe="⤨",nfe="⌶",ife="⫱",sfe="⊤",rfe="𝕋",ofe="𝕥",afe="⫚",lfe="⤩",cfe="‴",dfe="™",ufe="™",pfe="▵",ffe="▿",_fe="◃",mfe="⊴",hfe="≜",gfe="▹",bfe="⊵",yfe="◬",Efe="≜",vfe="⨺",Sfe="⃛",Tfe="⨹",xfe="⧍",Cfe="⨻",wfe="⏢",Rfe="𝒯",Afe="𝓉",Mfe="Ц",Nfe="ц",Ofe="Ћ",Ife="ћ",kfe="Ŧ",Dfe="ŧ",Lfe="≬",Pfe="↞",Ffe="↠",Ufe="Ú",Bfe="ú",Gfe="↑",Vfe="↟",zfe="⇑",Hfe="⥉",qfe="Ў",Yfe="ў",$fe="Ŭ",Wfe="ŭ",Kfe="Û",jfe="û",Qfe="У",Xfe="у",Zfe="⇅",Jfe="Ű",e_e="ű",t_e="⥮",n_e="⥾",i_e="𝔘",s_e="𝔲",r_e="Ù",o_e="ù",a_e="⥣",l_e="↿",c_e="↾",d_e="▀",u_e="⌜",p_e="⌜",f_e="⌏",__e="◸",m_e="Ū",h_e="ū",g_e="¨",b_e="_",y_e="⏟",E_e="⎵",v_e="⏝",S_e="⋃",T_e="⊎",x_e="Ų",C_e="ų",w_e="𝕌",R_e="𝕦",A_e="⤒",M_e="↑",N_e="↑",O_e="⇑",I_e="⇅",k_e="↕",D_e="↕",L_e="⇕",P_e="⥮",F_e="↿",U_e="↾",B_e="⊎",G_e="↖",V_e="↗",z_e="υ",H_e="ϒ",q_e="ϒ",Y_e="Υ",$_e="υ",W_e="↥",K_e="⊥",j_e="⇈",Q_e="⌝",X_e="⌝",Z_e="⌎",J_e="Ů",eme="ů",tme="◹",nme="𝒰",ime="𝓊",sme="⋰",rme="Ũ",ome="ũ",ame="▵",lme="▴",cme="⇈",dme="Ü",ume="ü",pme="⦧",fme="⦜",_me="ϵ",mme="ϰ",hme="∅",gme="ϕ",bme="ϖ",yme="∝",Eme="↕",vme="⇕",Sme="ϱ",Tme="ς",xme="⊊︀",Cme="⫋︀",wme="⊋︀",Rme="⫌︀",Ame="ϑ",Mme="⊲",Nme="⊳",Ome="⫨",Ime="⫫",kme="⫩",Dme="В",Lme="в",Pme="⊢",Fme="⊨",Ume="⊩",Bme="⊫",Gme="⫦",Vme="⊻",zme="∨",Hme="⋁",qme="≚",Yme="⋮",$me="|",Wme="‖",Kme="|",jme="‖",Qme="∣",Xme="|",Zme="❘",Jme="≀",ehe=" ",the="𝔙",nhe="𝔳",ihe="⊲",she="⊂⃒",rhe="⊃⃒",ohe="𝕍",ahe="𝕧",lhe="∝",che="⊳",dhe="𝒱",uhe="𝓋",phe="⫋︀",fhe="⊊︀",_he="⫌︀",mhe="⊋︀",hhe="⊪",ghe="⦚",bhe="Ŵ",yhe="ŵ",Ehe="⩟",vhe="∧",She="⋀",The="≙",xhe="℘",Che="𝔚",whe="𝔴",Rhe="𝕎",Ahe="𝕨",Mhe="℘",Nhe="≀",Ohe="≀",Ihe="𝒲",khe="𝓌",Dhe="⋂",Lhe="◯",Phe="⋃",Fhe="▽",Uhe="𝔛",Bhe="𝔵",Ghe="⟷",Vhe="⟺",zhe="Ξ",Hhe="ξ",qhe="⟵",Yhe="⟸",$he="⟼",Whe="⋻",Khe="⨀",jhe="𝕏",Qhe="𝕩",Xhe="⨁",Zhe="⨂",Jhe="⟶",ege="⟹",tge="𝒳",nge="𝓍",ige="⨆",sge="⨄",rge="△",oge="⋁",age="⋀",lge="Ý",cge="ý",dge="Я",uge="я",pge="Ŷ",fge="ŷ",_ge="Ы",mge="ы",hge="¥",gge="𝔜",bge="𝔶",yge="Ї",Ege="ї",vge="𝕐",Sge="𝕪",Tge="𝒴",xge="𝓎",Cge="Ю",wge="ю",Rge="ÿ",Age="Ÿ",Mge="Ź",Nge="ź",Oge="Ž",Ige="ž",kge="З",Dge="з",Lge="Ż",Pge="ż",Fge="ℨ",Uge="​",Bge="Ζ",Gge="ζ",Vge="𝔷",zge="ℨ",Hge="Ж",qge="ж",Yge="⇝",$ge="𝕫",Wge="ℤ",Kge="𝒵",jge="𝓏",Qge="‍",Xge="‌",Zge={Aacute:L5,aacute:P5,Abreve:F5,abreve:U5,ac:B5,acd:G5,acE:V5,Acirc:z5,acirc:H5,acute:q5,Acy:Y5,acy:$5,AElig:W5,aelig:K5,af:j5,Afr:Q5,afr:X5,Agrave:Z5,agrave:J5,alefsym:eF,aleph:tF,Alpha:nF,alpha:iF,Amacr:sF,amacr:rF,amalg:oF,amp:aF,AMP:lF,andand:cF,And:dF,and:uF,andd:pF,andslope:fF,andv:_F,ang:mF,ange:hF,angle:gF,angmsdaa:bF,angmsdab:yF,angmsdac:EF,angmsdad:vF,angmsdae:SF,angmsdaf:TF,angmsdag:xF,angmsdah:CF,angmsd:wF,angrt:RF,angrtvb:AF,angrtvbd:MF,angsph:NF,angst:OF,angzarr:IF,Aogon:kF,aogon:DF,Aopf:LF,aopf:PF,apacir:FF,ap:UF,apE:BF,ape:GF,apid:VF,apos:zF,ApplyFunction:HF,approx:qF,approxeq:YF,Aring:$F,aring:WF,Ascr:KF,ascr:jF,Assign:QF,ast:XF,asymp:ZF,asympeq:JF,Atilde:eU,atilde:tU,Auml:nU,auml:iU,awconint:sU,awint:rU,backcong:oU,backepsilon:aU,backprime:lU,backsim:cU,backsimeq:dU,Backslash:uU,Barv:pU,barvee:fU,barwed:_U,Barwed:mU,barwedge:hU,bbrk:gU,bbrktbrk:bU,bcong:yU,Bcy:EU,bcy:vU,bdquo:SU,becaus:TU,because:xU,Because:CU,bemptyv:wU,bepsi:RU,bernou:AU,Bernoullis:MU,Beta:NU,beta:OU,beth:IU,between:kU,Bfr:DU,bfr:LU,bigcap:PU,bigcirc:FU,bigcup:UU,bigodot:BU,bigoplus:GU,bigotimes:VU,bigsqcup:zU,bigstar:HU,bigtriangledown:qU,bigtriangleup:YU,biguplus:$U,bigvee:WU,bigwedge:KU,bkarow:jU,blacklozenge:QU,blacksquare:XU,blacktriangle:ZU,blacktriangledown:JU,blacktriangleleft:eB,blacktriangleright:tB,blank:nB,blk12:iB,blk14:sB,blk34:rB,block:oB,bne:aB,bnequiv:lB,bNot:cB,bnot:dB,Bopf:uB,bopf:pB,bot:fB,bottom:_B,bowtie:mB,boxbox:hB,boxdl:gB,boxdL:bB,boxDl:yB,boxDL:EB,boxdr:vB,boxdR:SB,boxDr:TB,boxDR:xB,boxh:CB,boxH:wB,boxhd:RB,boxHd:AB,boxhD:MB,boxHD:NB,boxhu:OB,boxHu:IB,boxhU:kB,boxHU:DB,boxminus:LB,boxplus:PB,boxtimes:FB,boxul:UB,boxuL:BB,boxUl:GB,boxUL:VB,boxur:zB,boxuR:HB,boxUr:qB,boxUR:YB,boxv:$B,boxV:WB,boxvh:KB,boxvH:jB,boxVh:QB,boxVH:XB,boxvl:ZB,boxvL:JB,boxVl:e6,boxVL:t6,boxvr:n6,boxvR:i6,boxVr:s6,boxVR:r6,bprime:o6,breve:a6,Breve:l6,brvbar:c6,bscr:d6,Bscr:u6,bsemi:p6,bsim:f6,bsime:_6,bsolb:m6,bsol:h6,bsolhsub:g6,bull:b6,bullet:y6,bump:E6,bumpE:v6,bumpe:S6,Bumpeq:T6,bumpeq:x6,Cacute:C6,cacute:w6,capand:R6,capbrcup:A6,capcap:M6,cap:N6,Cap:O6,capcup:I6,capdot:k6,CapitalDifferentialD:D6,caps:L6,caret:P6,caron:F6,Cayleys:U6,ccaps:B6,Ccaron:G6,ccaron:V6,Ccedil:z6,ccedil:H6,Ccirc:q6,ccirc:Y6,Cconint:$6,ccups:W6,ccupssm:K6,Cdot:j6,cdot:Q6,cedil:X6,Cedilla:Z6,cemptyv:J6,cent:e9,centerdot:t9,CenterDot:n9,cfr:i9,Cfr:s9,CHcy:r9,chcy:o9,check:a9,checkmark:l9,Chi:c9,chi:d9,circ:u9,circeq:p9,circlearrowleft:f9,circlearrowright:_9,circledast:m9,circledcirc:h9,circleddash:g9,CircleDot:b9,circledR:y9,circledS:E9,CircleMinus:v9,CirclePlus:S9,CircleTimes:T9,cir:x9,cirE:C9,cire:w9,cirfnint:R9,cirmid:A9,cirscir:M9,ClockwiseContourIntegral:N9,CloseCurlyDoubleQuote:O9,CloseCurlyQuote:I9,clubs:k9,clubsuit:D9,colon:L9,Colon:P9,Colone:F9,colone:U9,coloneq:B9,comma:G9,commat:V9,comp:z9,compfn:H9,complement:q9,complexes:Y9,cong:$9,congdot:W9,Congruent:K9,conint:j9,Conint:Q9,ContourIntegral:X9,copf:Z9,Copf:J9,coprod:e8,Coproduct:t8,copy:n8,COPY:i8,copysr:s8,CounterClockwiseContourIntegral:r8,crarr:o8,cross:a8,Cross:l8,Cscr:c8,cscr:d8,csub:u8,csube:p8,csup:f8,csupe:_8,ctdot:m8,cudarrl:h8,cudarrr:g8,cuepr:b8,cuesc:y8,cularr:E8,cularrp:v8,cupbrcap:S8,cupcap:T8,CupCap:x8,cup:C8,Cup:w8,cupcup:R8,cupdot:A8,cupor:M8,cups:N8,curarr:O8,curarrm:I8,curlyeqprec:k8,curlyeqsucc:D8,curlyvee:L8,curlywedge:P8,curren:F8,curvearrowleft:U8,curvearrowright:B8,cuvee:G8,cuwed:V8,cwconint:z8,cwint:H8,cylcty:q8,dagger:Y8,Dagger:$8,daleth:W8,darr:K8,Darr:j8,dArr:Q8,dash:X8,Dashv:Z8,dashv:J8,dbkarow:eG,dblac:tG,Dcaron:nG,dcaron:iG,Dcy:sG,dcy:rG,ddagger:oG,ddarr:aG,DD:lG,dd:cG,DDotrahd:dG,ddotseq:uG,deg:pG,Del:fG,Delta:_G,delta:mG,demptyv:hG,dfisht:gG,Dfr:bG,dfr:yG,dHar:EG,dharl:vG,dharr:SG,DiacriticalAcute:TG,DiacriticalDot:xG,DiacriticalDoubleAcute:CG,DiacriticalGrave:wG,DiacriticalTilde:RG,diam:AG,diamond:MG,Diamond:NG,diamondsuit:OG,diams:IG,die:kG,DifferentialD:DG,digamma:LG,disin:PG,div:FG,divide:UG,divideontimes:BG,divonx:GG,DJcy:VG,djcy:zG,dlcorn:HG,dlcrop:qG,dollar:YG,Dopf:$G,dopf:WG,Dot:KG,dot:jG,DotDot:QG,doteq:XG,doteqdot:ZG,DotEqual:JG,dotminus:e7,dotplus:t7,dotsquare:n7,doublebarwedge:i7,DoubleContourIntegral:s7,DoubleDot:r7,DoubleDownArrow:o7,DoubleLeftArrow:a7,DoubleLeftRightArrow:l7,DoubleLeftTee:c7,DoubleLongLeftArrow:d7,DoubleLongLeftRightArrow:u7,DoubleLongRightArrow:p7,DoubleRightArrow:f7,DoubleRightTee:_7,DoubleUpArrow:m7,DoubleUpDownArrow:h7,DoubleVerticalBar:g7,DownArrowBar:b7,downarrow:y7,DownArrow:E7,Downarrow:v7,DownArrowUpArrow:S7,DownBreve:T7,downdownarrows:x7,downharpoonleft:C7,downharpoonright:w7,DownLeftRightVector:R7,DownLeftTeeVector:A7,DownLeftVectorBar:M7,DownLeftVector:N7,DownRightTeeVector:O7,DownRightVectorBar:I7,DownRightVector:k7,DownTeeArrow:D7,DownTee:L7,drbkarow:P7,drcorn:F7,drcrop:U7,Dscr:B7,dscr:G7,DScy:V7,dscy:z7,dsol:H7,Dstrok:q7,dstrok:Y7,dtdot:$7,dtri:W7,dtrif:K7,duarr:j7,duhar:Q7,dwangle:X7,DZcy:Z7,dzcy:J7,dzigrarr:eV,Eacute:tV,eacute:nV,easter:iV,Ecaron:sV,ecaron:rV,Ecirc:oV,ecirc:aV,ecir:lV,ecolon:cV,Ecy:dV,ecy:uV,eDDot:pV,Edot:fV,edot:_V,eDot:mV,ee:hV,efDot:gV,Efr:bV,efr:yV,eg:EV,Egrave:vV,egrave:SV,egs:TV,egsdot:xV,el:CV,Element:wV,elinters:RV,ell:AV,els:MV,elsdot:NV,Emacr:OV,emacr:IV,empty:kV,emptyset:DV,EmptySmallSquare:LV,emptyv:PV,EmptyVerySmallSquare:FV,emsp13:UV,emsp14:BV,emsp:GV,ENG:VV,eng:zV,ensp:HV,Eogon:qV,eogon:YV,Eopf:$V,eopf:WV,epar:KV,eparsl:jV,eplus:QV,epsi:XV,Epsilon:ZV,epsilon:JV,epsiv:ez,eqcirc:tz,eqcolon:nz,eqsim:iz,eqslantgtr:sz,eqslantless:rz,Equal:oz,equals:az,EqualTilde:lz,equest:cz,Equilibrium:dz,equiv:uz,equivDD:pz,eqvparsl:fz,erarr:_z,erDot:mz,escr:hz,Escr:gz,esdot:bz,Esim:yz,esim:Ez,Eta:vz,eta:Sz,ETH:Tz,eth:xz,Euml:Cz,euml:wz,euro:Rz,excl:Az,exist:Mz,Exists:Nz,expectation:Oz,exponentiale:Iz,ExponentialE:kz,fallingdotseq:Dz,Fcy:Lz,fcy:Pz,female:Fz,ffilig:Uz,fflig:Bz,ffllig:Gz,Ffr:Vz,ffr:zz,filig:Hz,FilledSmallSquare:qz,FilledVerySmallSquare:Yz,fjlig:$z,flat:Wz,fllig:Kz,fltns:jz,fnof:Qz,Fopf:Xz,fopf:Zz,forall:Jz,ForAll:eH,fork:tH,forkv:nH,Fouriertrf:iH,fpartint:sH,frac12:rH,frac13:oH,frac14:aH,frac15:lH,frac16:cH,frac18:dH,frac23:uH,frac25:pH,frac34:fH,frac35:_H,frac38:mH,frac45:hH,frac56:gH,frac58:bH,frac78:yH,frasl:EH,frown:vH,fscr:SH,Fscr:TH,gacute:xH,Gamma:CH,gamma:wH,Gammad:RH,gammad:AH,gap:MH,Gbreve:NH,gbreve:OH,Gcedil:IH,Gcirc:kH,gcirc:DH,Gcy:LH,gcy:PH,Gdot:FH,gdot:UH,ge:BH,gE:GH,gEl:VH,gel:zH,geq:HH,geqq:qH,geqslant:YH,gescc:$H,ges:WH,gesdot:KH,gesdoto:jH,gesdotol:QH,gesl:XH,gesles:ZH,Gfr:JH,gfr:eq,gg:tq,Gg:nq,ggg:iq,gimel:sq,GJcy:rq,gjcy:oq,gla:aq,gl:lq,glE:cq,glj:dq,gnap:uq,gnapprox:pq,gne:fq,gnE:_q,gneq:mq,gneqq:hq,gnsim:gq,Gopf:bq,gopf:yq,grave:Eq,GreaterEqual:vq,GreaterEqualLess:Sq,GreaterFullEqual:Tq,GreaterGreater:xq,GreaterLess:Cq,GreaterSlantEqual:wq,GreaterTilde:Rq,Gscr:Aq,gscr:Mq,gsim:Nq,gsime:Oq,gsiml:Iq,gtcc:kq,gtcir:Dq,gt:Lq,GT:Pq,Gt:Fq,gtdot:Uq,gtlPar:Bq,gtquest:Gq,gtrapprox:Vq,gtrarr:zq,gtrdot:Hq,gtreqless:qq,gtreqqless:Yq,gtrless:$q,gtrsim:Wq,gvertneqq:Kq,gvnE:jq,Hacek:Qq,hairsp:Xq,half:Zq,hamilt:Jq,HARDcy:eY,hardcy:tY,harrcir:nY,harr:iY,hArr:sY,harrw:rY,Hat:oY,hbar:aY,Hcirc:lY,hcirc:cY,hearts:dY,heartsuit:uY,hellip:pY,hercon:fY,hfr:_Y,Hfr:mY,HilbertSpace:hY,hksearow:gY,hkswarow:bY,hoarr:yY,homtht:EY,hookleftarrow:vY,hookrightarrow:SY,hopf:TY,Hopf:xY,horbar:CY,HorizontalLine:wY,hscr:RY,Hscr:AY,hslash:MY,Hstrok:NY,hstrok:OY,HumpDownHump:IY,HumpEqual:kY,hybull:DY,hyphen:LY,Iacute:PY,iacute:FY,ic:UY,Icirc:BY,icirc:GY,Icy:VY,icy:zY,Idot:HY,IEcy:qY,iecy:YY,iexcl:$Y,iff:WY,ifr:KY,Ifr:jY,Igrave:QY,igrave:XY,ii:ZY,iiiint:JY,iiint:e$,iinfin:t$,iiota:n$,IJlig:i$,ijlig:s$,Imacr:r$,imacr:o$,image:a$,ImaginaryI:l$,imagline:c$,imagpart:d$,imath:u$,Im:p$,imof:f$,imped:_$,Implies:m$,incare:h$,in:"∈",infin:g$,infintie:b$,inodot:y$,intcal:E$,int:v$,Int:S$,integers:T$,Integral:x$,intercal:C$,Intersection:w$,intlarhk:R$,intprod:A$,InvisibleComma:M$,InvisibleTimes:N$,IOcy:O$,iocy:I$,Iogon:k$,iogon:D$,Iopf:L$,iopf:P$,Iota:F$,iota:U$,iprod:B$,iquest:G$,iscr:V$,Iscr:z$,isin:H$,isindot:q$,isinE:Y$,isins:$$,isinsv:W$,isinv:K$,it:j$,Itilde:Q$,itilde:X$,Iukcy:Z$,iukcy:J$,Iuml:eW,iuml:tW,Jcirc:nW,jcirc:iW,Jcy:sW,jcy:rW,Jfr:oW,jfr:aW,jmath:lW,Jopf:cW,jopf:dW,Jscr:uW,jscr:pW,Jsercy:fW,jsercy:_W,Jukcy:mW,jukcy:hW,Kappa:gW,kappa:bW,kappav:yW,Kcedil:EW,kcedil:vW,Kcy:SW,kcy:TW,Kfr:xW,kfr:CW,kgreen:wW,KHcy:RW,khcy:AW,KJcy:MW,kjcy:NW,Kopf:OW,kopf:IW,Kscr:kW,kscr:DW,lAarr:LW,Lacute:PW,lacute:FW,laemptyv:UW,lagran:BW,Lambda:GW,lambda:VW,lang:zW,Lang:HW,langd:qW,langle:YW,lap:$W,Laplacetrf:WW,laquo:KW,larrb:jW,larrbfs:QW,larr:XW,Larr:ZW,lArr:JW,larrfs:eK,larrhk:tK,larrlp:nK,larrpl:iK,larrsim:sK,larrtl:rK,latail:oK,lAtail:aK,lat:lK,late:cK,lates:dK,lbarr:uK,lBarr:pK,lbbrk:fK,lbrace:_K,lbrack:mK,lbrke:hK,lbrksld:gK,lbrkslu:bK,Lcaron:yK,lcaron:EK,Lcedil:vK,lcedil:SK,lceil:TK,lcub:xK,Lcy:CK,lcy:wK,ldca:RK,ldquo:AK,ldquor:MK,ldrdhar:NK,ldrushar:OK,ldsh:IK,le:kK,lE:DK,LeftAngleBracket:LK,LeftArrowBar:PK,leftarrow:FK,LeftArrow:UK,Leftarrow:BK,LeftArrowRightArrow:GK,leftarrowtail:VK,LeftCeiling:zK,LeftDoubleBracket:HK,LeftDownTeeVector:qK,LeftDownVectorBar:YK,LeftDownVector:$K,LeftFloor:WK,leftharpoondown:KK,leftharpoonup:jK,leftleftarrows:QK,leftrightarrow:XK,LeftRightArrow:ZK,Leftrightarrow:JK,leftrightarrows:ej,leftrightharpoons:tj,leftrightsquigarrow:nj,LeftRightVector:ij,LeftTeeArrow:sj,LeftTee:rj,LeftTeeVector:oj,leftthreetimes:aj,LeftTriangleBar:lj,LeftTriangle:cj,LeftTriangleEqual:dj,LeftUpDownVector:uj,LeftUpTeeVector:pj,LeftUpVectorBar:fj,LeftUpVector:_j,LeftVectorBar:mj,LeftVector:hj,lEg:gj,leg:bj,leq:yj,leqq:Ej,leqslant:vj,lescc:Sj,les:Tj,lesdot:xj,lesdoto:Cj,lesdotor:wj,lesg:Rj,lesges:Aj,lessapprox:Mj,lessdot:Nj,lesseqgtr:Oj,lesseqqgtr:Ij,LessEqualGreater:kj,LessFullEqual:Dj,LessGreater:Lj,lessgtr:Pj,LessLess:Fj,lesssim:Uj,LessSlantEqual:Bj,LessTilde:Gj,lfisht:Vj,lfloor:zj,Lfr:Hj,lfr:qj,lg:Yj,lgE:$j,lHar:Wj,lhard:Kj,lharu:jj,lharul:Qj,lhblk:Xj,LJcy:Zj,ljcy:Jj,llarr:eQ,ll:tQ,Ll:nQ,llcorner:iQ,Lleftarrow:sQ,llhard:rQ,lltri:oQ,Lmidot:aQ,lmidot:lQ,lmoustache:cQ,lmoust:dQ,lnap:uQ,lnapprox:pQ,lne:fQ,lnE:_Q,lneq:mQ,lneqq:hQ,lnsim:gQ,loang:bQ,loarr:yQ,lobrk:EQ,longleftarrow:vQ,LongLeftArrow:SQ,Longleftarrow:TQ,longleftrightarrow:xQ,LongLeftRightArrow:CQ,Longleftrightarrow:wQ,longmapsto:RQ,longrightarrow:AQ,LongRightArrow:MQ,Longrightarrow:NQ,looparrowleft:OQ,looparrowright:IQ,lopar:kQ,Lopf:DQ,lopf:LQ,loplus:PQ,lotimes:FQ,lowast:UQ,lowbar:BQ,LowerLeftArrow:GQ,LowerRightArrow:VQ,loz:zQ,lozenge:HQ,lozf:qQ,lpar:YQ,lparlt:$Q,lrarr:WQ,lrcorner:KQ,lrhar:jQ,lrhard:QQ,lrm:XQ,lrtri:ZQ,lsaquo:JQ,lscr:eX,Lscr:tX,lsh:nX,Lsh:iX,lsim:sX,lsime:rX,lsimg:oX,lsqb:aX,lsquo:lX,lsquor:cX,Lstrok:dX,lstrok:uX,ltcc:pX,ltcir:fX,lt:_X,LT:mX,Lt:hX,ltdot:gX,lthree:bX,ltimes:yX,ltlarr:EX,ltquest:vX,ltri:SX,ltrie:TX,ltrif:xX,ltrPar:CX,lurdshar:wX,luruhar:RX,lvertneqq:AX,lvnE:MX,macr:NX,male:OX,malt:IX,maltese:kX,Map:"⤅",map:DX,mapsto:LX,mapstodown:PX,mapstoleft:FX,mapstoup:UX,marker:BX,mcomma:GX,Mcy:VX,mcy:zX,mdash:HX,mDDot:qX,measuredangle:YX,MediumSpace:$X,Mellintrf:WX,Mfr:KX,mfr:jX,mho:QX,micro:XX,midast:ZX,midcir:JX,mid:eZ,middot:tZ,minusb:nZ,minus:iZ,minusd:sZ,minusdu:rZ,MinusPlus:oZ,mlcp:aZ,mldr:lZ,mnplus:cZ,models:dZ,Mopf:uZ,mopf:pZ,mp:fZ,mscr:_Z,Mscr:mZ,mstpos:hZ,Mu:gZ,mu:bZ,multimap:yZ,mumap:EZ,nabla:vZ,Nacute:SZ,nacute:TZ,nang:xZ,nap:CZ,napE:wZ,napid:RZ,napos:AZ,napprox:MZ,natural:NZ,naturals:OZ,natur:IZ,nbsp:kZ,nbump:DZ,nbumpe:LZ,ncap:PZ,Ncaron:FZ,ncaron:UZ,Ncedil:BZ,ncedil:GZ,ncong:VZ,ncongdot:zZ,ncup:HZ,Ncy:qZ,ncy:YZ,ndash:$Z,nearhk:WZ,nearr:KZ,neArr:jZ,nearrow:QZ,ne:XZ,nedot:ZZ,NegativeMediumSpace:JZ,NegativeThickSpace:eJ,NegativeThinSpace:tJ,NegativeVeryThinSpace:nJ,nequiv:iJ,nesear:sJ,nesim:rJ,NestedGreaterGreater:oJ,NestedLessLess:aJ,NewLine:lJ,nexist:cJ,nexists:dJ,Nfr:uJ,nfr:pJ,ngE:fJ,nge:_J,ngeq:mJ,ngeqq:hJ,ngeqslant:gJ,nges:bJ,nGg:yJ,ngsim:EJ,nGt:vJ,ngt:SJ,ngtr:TJ,nGtv:xJ,nharr:CJ,nhArr:wJ,nhpar:RJ,ni:AJ,nis:MJ,nisd:NJ,niv:OJ,NJcy:IJ,njcy:kJ,nlarr:DJ,nlArr:LJ,nldr:PJ,nlE:FJ,nle:UJ,nleftarrow:BJ,nLeftarrow:GJ,nleftrightarrow:VJ,nLeftrightarrow:zJ,nleq:HJ,nleqq:qJ,nleqslant:YJ,nles:$J,nless:WJ,nLl:KJ,nlsim:jJ,nLt:QJ,nlt:XJ,nltri:ZJ,nltrie:JJ,nLtv:eee,nmid:tee,NoBreak:nee,NonBreakingSpace:iee,nopf:see,Nopf:ree,Not:oee,not:aee,NotCongruent:lee,NotCupCap:cee,NotDoubleVerticalBar:dee,NotElement:uee,NotEqual:pee,NotEqualTilde:fee,NotExists:_ee,NotGreater:mee,NotGreaterEqual:hee,NotGreaterFullEqual:gee,NotGreaterGreater:bee,NotGreaterLess:yee,NotGreaterSlantEqual:Eee,NotGreaterTilde:vee,NotHumpDownHump:See,NotHumpEqual:Tee,notin:xee,notindot:Cee,notinE:wee,notinva:Ree,notinvb:Aee,notinvc:Mee,NotLeftTriangleBar:Nee,NotLeftTriangle:Oee,NotLeftTriangleEqual:Iee,NotLess:kee,NotLessEqual:Dee,NotLessGreater:Lee,NotLessLess:Pee,NotLessSlantEqual:Fee,NotLessTilde:Uee,NotNestedGreaterGreater:Bee,NotNestedLessLess:Gee,notni:Vee,notniva:zee,notnivb:Hee,notnivc:qee,NotPrecedes:Yee,NotPrecedesEqual:$ee,NotPrecedesSlantEqual:Wee,NotReverseElement:Kee,NotRightTriangleBar:jee,NotRightTriangle:Qee,NotRightTriangleEqual:Xee,NotSquareSubset:Zee,NotSquareSubsetEqual:Jee,NotSquareSuperset:ete,NotSquareSupersetEqual:tte,NotSubset:nte,NotSubsetEqual:ite,NotSucceeds:ste,NotSucceedsEqual:rte,NotSucceedsSlantEqual:ote,NotSucceedsTilde:ate,NotSuperset:lte,NotSupersetEqual:cte,NotTilde:dte,NotTildeEqual:ute,NotTildeFullEqual:pte,NotTildeTilde:fte,NotVerticalBar:_te,nparallel:mte,npar:hte,nparsl:gte,npart:bte,npolint:yte,npr:Ete,nprcue:vte,nprec:Ste,npreceq:Tte,npre:xte,nrarrc:Cte,nrarr:wte,nrArr:Rte,nrarrw:Ate,nrightarrow:Mte,nRightarrow:Nte,nrtri:Ote,nrtrie:Ite,nsc:kte,nsccue:Dte,nsce:Lte,Nscr:Pte,nscr:Fte,nshortmid:Ute,nshortparallel:Bte,nsim:Gte,nsime:Vte,nsimeq:zte,nsmid:Hte,nspar:qte,nsqsube:Yte,nsqsupe:$te,nsub:Wte,nsubE:Kte,nsube:jte,nsubset:Qte,nsubseteq:Xte,nsubseteqq:Zte,nsucc:Jte,nsucceq:ene,nsup:tne,nsupE:nne,nsupe:ine,nsupset:sne,nsupseteq:rne,nsupseteqq:one,ntgl:ane,Ntilde:lne,ntilde:cne,ntlg:dne,ntriangleleft:une,ntrianglelefteq:pne,ntriangleright:fne,ntrianglerighteq:_ne,Nu:mne,nu:hne,num:gne,numero:bne,numsp:yne,nvap:Ene,nvdash:vne,nvDash:Sne,nVdash:Tne,nVDash:xne,nvge:Cne,nvgt:wne,nvHarr:Rne,nvinfin:Ane,nvlArr:Mne,nvle:Nne,nvlt:One,nvltrie:Ine,nvrArr:kne,nvrtrie:Dne,nvsim:Lne,nwarhk:Pne,nwarr:Fne,nwArr:Une,nwarrow:Bne,nwnear:Gne,Oacute:Vne,oacute:zne,oast:Hne,Ocirc:qne,ocirc:Yne,ocir:$ne,Ocy:Wne,ocy:Kne,odash:jne,Odblac:Qne,odblac:Xne,odiv:Zne,odot:Jne,odsold:eie,OElig:tie,oelig:nie,ofcir:iie,Ofr:sie,ofr:rie,ogon:oie,Ograve:aie,ograve:lie,ogt:cie,ohbar:die,ohm:uie,oint:pie,olarr:fie,olcir:_ie,olcross:mie,oline:hie,olt:gie,Omacr:bie,omacr:yie,Omega:Eie,omega:vie,Omicron:Sie,omicron:Tie,omid:xie,ominus:Cie,Oopf:wie,oopf:Rie,opar:Aie,OpenCurlyDoubleQuote:Mie,OpenCurlyQuote:Nie,operp:Oie,oplus:Iie,orarr:kie,Or:Die,or:Lie,ord:Pie,order:Fie,orderof:Uie,ordf:Bie,ordm:Gie,origof:Vie,oror:zie,orslope:Hie,orv:qie,oS:Yie,Oscr:$ie,oscr:Wie,Oslash:Kie,oslash:jie,osol:Qie,Otilde:Xie,otilde:Zie,otimesas:Jie,Otimes:ese,otimes:tse,Ouml:nse,ouml:ise,ovbar:sse,OverBar:rse,OverBrace:ose,OverBracket:ase,OverParenthesis:lse,para:cse,parallel:dse,par:use,parsim:pse,parsl:fse,part:_se,PartialD:mse,Pcy:hse,pcy:gse,percnt:bse,period:yse,permil:Ese,perp:vse,pertenk:Sse,Pfr:Tse,pfr:xse,Phi:Cse,phi:wse,phiv:Rse,phmmat:Ase,phone:Mse,Pi:Nse,pi:Ose,pitchfork:Ise,piv:kse,planck:Dse,planckh:Lse,plankv:Pse,plusacir:Fse,plusb:Use,pluscir:Bse,plus:Gse,plusdo:Vse,plusdu:zse,pluse:Hse,PlusMinus:qse,plusmn:Yse,plussim:$se,plustwo:Wse,pm:Kse,Poincareplane:jse,pointint:Qse,popf:Xse,Popf:Zse,pound:Jse,prap:ere,Pr:tre,pr:nre,prcue:ire,precapprox:sre,prec:rre,preccurlyeq:ore,Precedes:are,PrecedesEqual:lre,PrecedesSlantEqual:cre,PrecedesTilde:dre,preceq:ure,precnapprox:pre,precneqq:fre,precnsim:_re,pre:mre,prE:hre,precsim:gre,prime:bre,Prime:yre,primes:Ere,prnap:vre,prnE:Sre,prnsim:Tre,prod:xre,Product:Cre,profalar:wre,profline:Rre,profsurf:Are,prop:Mre,Proportional:Nre,Proportion:Ore,propto:Ire,prsim:kre,prurel:Dre,Pscr:Lre,pscr:Pre,Psi:Fre,psi:Ure,puncsp:Bre,Qfr:Gre,qfr:Vre,qint:zre,qopf:Hre,Qopf:qre,qprime:Yre,Qscr:$re,qscr:Wre,quaternions:Kre,quatint:jre,quest:Qre,questeq:Xre,quot:Zre,QUOT:Jre,rAarr:eoe,race:toe,Racute:noe,racute:ioe,radic:soe,raemptyv:roe,rang:ooe,Rang:aoe,rangd:loe,range:coe,rangle:doe,raquo:uoe,rarrap:poe,rarrb:foe,rarrbfs:_oe,rarrc:moe,rarr:hoe,Rarr:goe,rArr:boe,rarrfs:yoe,rarrhk:Eoe,rarrlp:voe,rarrpl:Soe,rarrsim:Toe,Rarrtl:xoe,rarrtl:Coe,rarrw:woe,ratail:Roe,rAtail:Aoe,ratio:Moe,rationals:Noe,rbarr:Ooe,rBarr:Ioe,RBarr:koe,rbbrk:Doe,rbrace:Loe,rbrack:Poe,rbrke:Foe,rbrksld:Uoe,rbrkslu:Boe,Rcaron:Goe,rcaron:Voe,Rcedil:zoe,rcedil:Hoe,rceil:qoe,rcub:Yoe,Rcy:$oe,rcy:Woe,rdca:Koe,rdldhar:joe,rdquo:Qoe,rdquor:Xoe,rdsh:Zoe,real:Joe,realine:eae,realpart:tae,reals:nae,Re:iae,rect:sae,reg:rae,REG:oae,ReverseElement:aae,ReverseEquilibrium:lae,ReverseUpEquilibrium:cae,rfisht:dae,rfloor:uae,rfr:pae,Rfr:fae,rHar:_ae,rhard:mae,rharu:hae,rharul:gae,Rho:bae,rho:yae,rhov:Eae,RightAngleBracket:vae,RightArrowBar:Sae,rightarrow:Tae,RightArrow:xae,Rightarrow:Cae,RightArrowLeftArrow:wae,rightarrowtail:Rae,RightCeiling:Aae,RightDoubleBracket:Mae,RightDownTeeVector:Nae,RightDownVectorBar:Oae,RightDownVector:Iae,RightFloor:kae,rightharpoondown:Dae,rightharpoonup:Lae,rightleftarrows:Pae,rightleftharpoons:Fae,rightrightarrows:Uae,rightsquigarrow:Bae,RightTeeArrow:Gae,RightTee:Vae,RightTeeVector:zae,rightthreetimes:Hae,RightTriangleBar:qae,RightTriangle:Yae,RightTriangleEqual:$ae,RightUpDownVector:Wae,RightUpTeeVector:Kae,RightUpVectorBar:jae,RightUpVector:Qae,RightVectorBar:Xae,RightVector:Zae,ring:Jae,risingdotseq:ele,rlarr:tle,rlhar:nle,rlm:ile,rmoustache:sle,rmoust:rle,rnmid:ole,roang:ale,roarr:lle,robrk:cle,ropar:dle,ropf:ule,Ropf:ple,roplus:fle,rotimes:_le,RoundImplies:mle,rpar:hle,rpargt:gle,rppolint:ble,rrarr:yle,Rrightarrow:Ele,rsaquo:vle,rscr:Sle,Rscr:Tle,rsh:xle,Rsh:Cle,rsqb:wle,rsquo:Rle,rsquor:Ale,rthree:Mle,rtimes:Nle,rtri:Ole,rtrie:Ile,rtrif:kle,rtriltri:Dle,RuleDelayed:Lle,ruluhar:Ple,rx:Fle,Sacute:Ule,sacute:Ble,sbquo:Gle,scap:Vle,Scaron:zle,scaron:Hle,Sc:qle,sc:Yle,sccue:$le,sce:Wle,scE:Kle,Scedil:jle,scedil:Qle,Scirc:Xle,scirc:Zle,scnap:Jle,scnE:ece,scnsim:tce,scpolint:nce,scsim:ice,Scy:sce,scy:rce,sdotb:oce,sdot:ace,sdote:lce,searhk:cce,searr:dce,seArr:uce,searrow:pce,sect:fce,semi:_ce,seswar:mce,setminus:hce,setmn:gce,sext:bce,Sfr:yce,sfr:Ece,sfrown:vce,sharp:Sce,SHCHcy:Tce,shchcy:xce,SHcy:Cce,shcy:wce,ShortDownArrow:Rce,ShortLeftArrow:Ace,shortmid:Mce,shortparallel:Nce,ShortRightArrow:Oce,ShortUpArrow:Ice,shy:kce,Sigma:Dce,sigma:Lce,sigmaf:Pce,sigmav:Fce,sim:Uce,simdot:Bce,sime:Gce,simeq:Vce,simg:zce,simgE:Hce,siml:qce,simlE:Yce,simne:$ce,simplus:Wce,simrarr:Kce,slarr:jce,SmallCircle:Qce,smallsetminus:Xce,smashp:Zce,smeparsl:Jce,smid:ede,smile:tde,smt:nde,smte:ide,smtes:sde,SOFTcy:rde,softcy:ode,solbar:ade,solb:lde,sol:cde,Sopf:dde,sopf:ude,spades:pde,spadesuit:fde,spar:_de,sqcap:mde,sqcaps:hde,sqcup:gde,sqcups:bde,Sqrt:yde,sqsub:Ede,sqsube:vde,sqsubset:Sde,sqsubseteq:Tde,sqsup:xde,sqsupe:Cde,sqsupset:wde,sqsupseteq:Rde,square:Ade,Square:Mde,SquareIntersection:Nde,SquareSubset:Ode,SquareSubsetEqual:Ide,SquareSuperset:kde,SquareSupersetEqual:Dde,SquareUnion:Lde,squarf:Pde,squ:Fde,squf:Ude,srarr:Bde,Sscr:Gde,sscr:Vde,ssetmn:zde,ssmile:Hde,sstarf:qde,Star:Yde,star:$de,starf:Wde,straightepsilon:Kde,straightphi:jde,strns:Qde,sub:Xde,Sub:Zde,subdot:Jde,subE:eue,sube:tue,subedot:nue,submult:iue,subnE:sue,subne:rue,subplus:oue,subrarr:aue,subset:lue,Subset:cue,subseteq:due,subseteqq:uue,SubsetEqual:pue,subsetneq:fue,subsetneqq:_ue,subsim:mue,subsub:hue,subsup:gue,succapprox:bue,succ:yue,succcurlyeq:Eue,Succeeds:vue,SucceedsEqual:Sue,SucceedsSlantEqual:Tue,SucceedsTilde:xue,succeq:Cue,succnapprox:wue,succneqq:Rue,succnsim:Aue,succsim:Mue,SuchThat:Nue,sum:Oue,Sum:Iue,sung:kue,sup1:Due,sup2:Lue,sup3:Pue,sup:Fue,Sup:Uue,supdot:Bue,supdsub:Gue,supE:Vue,supe:zue,supedot:Hue,Superset:que,SupersetEqual:Yue,suphsol:$ue,suphsub:Wue,suplarr:Kue,supmult:jue,supnE:Que,supne:Xue,supplus:Zue,supset:Jue,Supset:epe,supseteq:tpe,supseteqq:npe,supsetneq:ipe,supsetneqq:spe,supsim:rpe,supsub:ope,supsup:ape,swarhk:lpe,swarr:cpe,swArr:dpe,swarrow:upe,swnwar:ppe,szlig:fpe,Tab:_pe,target:mpe,Tau:hpe,tau:gpe,tbrk:bpe,Tcaron:ype,tcaron:Epe,Tcedil:vpe,tcedil:Spe,Tcy:Tpe,tcy:xpe,tdot:Cpe,telrec:wpe,Tfr:Rpe,tfr:Ape,there4:Mpe,therefore:Npe,Therefore:Ope,Theta:Ipe,theta:kpe,thetasym:Dpe,thetav:Lpe,thickapprox:Ppe,thicksim:Fpe,ThickSpace:Upe,ThinSpace:Bpe,thinsp:Gpe,thkap:Vpe,thksim:zpe,THORN:Hpe,thorn:qpe,tilde:Ype,Tilde:$pe,TildeEqual:Wpe,TildeFullEqual:Kpe,TildeTilde:jpe,timesbar:Qpe,timesb:Xpe,times:Zpe,timesd:Jpe,tint:efe,toea:tfe,topbot:nfe,topcir:ife,top:sfe,Topf:rfe,topf:ofe,topfork:afe,tosa:lfe,tprime:cfe,trade:dfe,TRADE:ufe,triangle:pfe,triangledown:ffe,triangleleft:_fe,trianglelefteq:mfe,triangleq:hfe,triangleright:gfe,trianglerighteq:bfe,tridot:yfe,trie:Efe,triminus:vfe,TripleDot:Sfe,triplus:Tfe,trisb:xfe,tritime:Cfe,trpezium:wfe,Tscr:Rfe,tscr:Afe,TScy:Mfe,tscy:Nfe,TSHcy:Ofe,tshcy:Ife,Tstrok:kfe,tstrok:Dfe,twixt:Lfe,twoheadleftarrow:Pfe,twoheadrightarrow:Ffe,Uacute:Ufe,uacute:Bfe,uarr:Gfe,Uarr:Vfe,uArr:zfe,Uarrocir:Hfe,Ubrcy:qfe,ubrcy:Yfe,Ubreve:$fe,ubreve:Wfe,Ucirc:Kfe,ucirc:jfe,Ucy:Qfe,ucy:Xfe,udarr:Zfe,Udblac:Jfe,udblac:e_e,udhar:t_e,ufisht:n_e,Ufr:i_e,ufr:s_e,Ugrave:r_e,ugrave:o_e,uHar:a_e,uharl:l_e,uharr:c_e,uhblk:d_e,ulcorn:u_e,ulcorner:p_e,ulcrop:f_e,ultri:__e,Umacr:m_e,umacr:h_e,uml:g_e,UnderBar:b_e,UnderBrace:y_e,UnderBracket:E_e,UnderParenthesis:v_e,Union:S_e,UnionPlus:T_e,Uogon:x_e,uogon:C_e,Uopf:w_e,uopf:R_e,UpArrowBar:A_e,uparrow:M_e,UpArrow:N_e,Uparrow:O_e,UpArrowDownArrow:I_e,updownarrow:k_e,UpDownArrow:D_e,Updownarrow:L_e,UpEquilibrium:P_e,upharpoonleft:F_e,upharpoonright:U_e,uplus:B_e,UpperLeftArrow:G_e,UpperRightArrow:V_e,upsi:z_e,Upsi:H_e,upsih:q_e,Upsilon:Y_e,upsilon:$_e,UpTeeArrow:W_e,UpTee:K_e,upuparrows:j_e,urcorn:Q_e,urcorner:X_e,urcrop:Z_e,Uring:J_e,uring:eme,urtri:tme,Uscr:nme,uscr:ime,utdot:sme,Utilde:rme,utilde:ome,utri:ame,utrif:lme,uuarr:cme,Uuml:dme,uuml:ume,uwangle:pme,vangrt:fme,varepsilon:_me,varkappa:mme,varnothing:hme,varphi:gme,varpi:bme,varpropto:yme,varr:Eme,vArr:vme,varrho:Sme,varsigma:Tme,varsubsetneq:xme,varsubsetneqq:Cme,varsupsetneq:wme,varsupsetneqq:Rme,vartheta:Ame,vartriangleleft:Mme,vartriangleright:Nme,vBar:Ome,Vbar:Ime,vBarv:kme,Vcy:Dme,vcy:Lme,vdash:Pme,vDash:Fme,Vdash:Ume,VDash:Bme,Vdashl:Gme,veebar:Vme,vee:zme,Vee:Hme,veeeq:qme,vellip:Yme,verbar:$me,Verbar:Wme,vert:Kme,Vert:jme,VerticalBar:Qme,VerticalLine:Xme,VerticalSeparator:Zme,VerticalTilde:Jme,VeryThinSpace:ehe,Vfr:the,vfr:nhe,vltri:ihe,vnsub:she,vnsup:rhe,Vopf:ohe,vopf:ahe,vprop:lhe,vrtri:che,Vscr:dhe,vscr:uhe,vsubnE:phe,vsubne:fhe,vsupnE:_he,vsupne:mhe,Vvdash:hhe,vzigzag:ghe,Wcirc:bhe,wcirc:yhe,wedbar:Ehe,wedge:vhe,Wedge:She,wedgeq:The,weierp:xhe,Wfr:Che,wfr:whe,Wopf:Rhe,wopf:Ahe,wp:Mhe,wr:Nhe,wreath:Ohe,Wscr:Ihe,wscr:khe,xcap:Dhe,xcirc:Lhe,xcup:Phe,xdtri:Fhe,Xfr:Uhe,xfr:Bhe,xharr:Ghe,xhArr:Vhe,Xi:zhe,xi:Hhe,xlarr:qhe,xlArr:Yhe,xmap:$he,xnis:Whe,xodot:Khe,Xopf:jhe,xopf:Qhe,xoplus:Xhe,xotime:Zhe,xrarr:Jhe,xrArr:ege,Xscr:tge,xscr:nge,xsqcup:ige,xuplus:sge,xutri:rge,xvee:oge,xwedge:age,Yacute:lge,yacute:cge,YAcy:dge,yacy:uge,Ycirc:pge,ycirc:fge,Ycy:_ge,ycy:mge,yen:hge,Yfr:gge,yfr:bge,YIcy:yge,yicy:Ege,Yopf:vge,yopf:Sge,Yscr:Tge,yscr:xge,YUcy:Cge,yucy:wge,yuml:Rge,Yuml:Age,Zacute:Mge,zacute:Nge,Zcaron:Oge,zcaron:Ige,Zcy:kge,zcy:Dge,Zdot:Lge,zdot:Pge,zeetrf:Fge,ZeroWidthSpace:Uge,Zeta:Bge,zeta:Gge,zfr:Vge,Zfr:zge,ZHcy:Hge,zhcy:qge,zigrarr:Yge,zopf:$ge,Zopf:Wge,Zscr:Kge,zscr:jge,zwj:Qge,zwnj:Xge};var jA=Zge,g0=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ga={},yv={};function Jge(n){var e,t,i=yv[n];if(i)return i;for(i=yv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?i.push(t):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<n.length;e++)i[n.charCodeAt(e)]=n[e];return i}function Xu(n,e,t){var i,s,r,o,a,c="";for(typeof e!="string"&&(t=e,e=Xu.defaultChars),typeof t>"u"&&(t=!0),a=Jge(e),i=0,s=n.length;i<s;i++){if(r=n.charCodeAt(i),t&&r===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(n.slice(i+1,i+3))){c+=n.slice(i,i+3),i+=2;continue}if(r<128){c+=a[r];continue}if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&i+1<s&&(o=n.charCodeAt(i+1),o>=56320&&o<=57343)){c+=encodeURIComponent(n[i]+n[i+1]),i++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(n[i])}return c}Xu.defaultChars=";/?:@&=+$,-_.!~*'()#";Xu.componentChars="-_.!~*'()";var ebe=Xu,Ev={};function tbe(n){var e,t,i=Ev[n];if(i)return i;for(i=Ev[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),i.push(t);for(e=0;e<n.length;e++)t=n.charCodeAt(e),i[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return i}function Zu(n,e){var t;return typeof e!="string"&&(e=Zu.defaultChars),t=tbe(e),n.replace(/(%[a-f0-9]{2})+/gi,function(i){var s,r,o,a,c,d,u,_="";for(s=0,r=i.length;s<r;s+=3){if(o=parseInt(i.slice(s+1,s+3),16),o<128){_+=t[o];continue}if((o&224)===192&&s+3<r&&(a=parseInt(i.slice(s+4,s+6),16),(a&192)===128)){u=o<<6&1984|a&63,u<128?_+="��":_+=String.fromCharCode(u),s+=3;continue}if((o&240)===224&&s+6<r&&(a=parseInt(i.slice(s+4,s+6),16),c=parseInt(i.slice(s+7,s+9),16),(a&192)===128&&(c&192)===128)){u=o<<12&61440|a<<6&4032|c&63,u<2048||u>=55296&&u<=57343?_+="���":_+=String.fromCharCode(u),s+=6;continue}if((o&248)===240&&s+9<r&&(a=parseInt(i.slice(s+4,s+6),16),c=parseInt(i.slice(s+7,s+9),16),d=parseInt(i.slice(s+10,s+12),16),(a&192)===128&&(c&192)===128&&(d&192)===128)){u=o<<18&1835008|a<<12&258048|c<<6&4032|d&63,u<65536||u>1114111?_+="����":(u-=65536,_+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),s+=9;continue}_+="�"}return _})}Zu.defaultChars=";/?:@&=+$,#";Zu.componentChars="";var nbe=Zu,ibe=function(e){var 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 Xd(){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 sbe=/^([a-z0-9.+-]+:)/i,rbe=/:[0-9]*$/,obe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,abe=["<",">",'"',"`"," ","\r",`
-`,"	"],lbe=["{","}","|","\\","^","`"].concat(abe),cbe=["'"].concat(lbe),vv=["%","/","?",";","#"].concat(cbe),Sv=["/","?","#"],dbe=255,Tv=/^[+a-z0-9A-Z_-]{0,63}$/,ube=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xv={javascript:!0,"javascript:":!0},Cv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function pbe(n,e){if(n&&n instanceof Xd)return n;var t=new Xd;return t.parse(n,e),t}Xd.prototype.parse=function(n,e){var t,i,s,r,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var c=obe.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var d=sbe.exec(a);if(d&&(d=d[0],s=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(d&&xv[d])&&(a=a.substr(2),this.slashes=!0)),!xv[d]&&(o||d&&!Cv[d])){var u=-1;for(t=0;t<Sv.length;t++)r=a.indexOf(Sv[t]),r!==-1&&(u===-1||r<u)&&(u=r);var _,m;for(u===-1?m=a.lastIndexOf("@"):m=a.lastIndexOf("@",u),m!==-1&&(_=a.slice(0,m),a=a.slice(m+1),this.auth=_),u=-1,t=0;t<vv.length;t++)r=a.indexOf(vv[t]),r!==-1&&(u===-1||r<u)&&(u=r);u===-1&&(u=a.length),a[u-1]===":"&&u--;var h=a.slice(0,u);a=a.slice(u),this.parseHost(h),this.hostname=this.hostname||"";var f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){var y=this.hostname.split(/\./);for(t=0,i=y.length;t<i;t++){var b=y[t];if(b&&!b.match(Tv)){for(var g="",E=0,v=b.length;E<v;E++)b.charCodeAt(E)>127?g+="x":g+=b[E];if(!g.match(Tv)){var S=y.slice(0,t),R=y.slice(t+1),C=b.match(ube);C&&(S.push(C[1]),R.unshift(C[2])),R.length&&(a=R.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>dbe&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=a.indexOf("#");A!==-1&&(this.hash=a.substr(A),a=a.slice(0,A));var I=a.indexOf("?");return I!==-1&&(this.search=a.substr(I),a=a.slice(0,I)),a&&(this.pathname=a),Cv[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Xd.prototype.parseHost=function(n){var e=rbe.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var fbe=pbe;Ga.encode=ebe;Ga.decode=nbe;Ga.format=ibe;Ga.parse=fbe;var Dr={},Zp,wv;function QA(){return wv||(wv=1,Zp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Zp}var Jp,Rv;function XA(){return Rv||(Rv=1,Jp=/[\0-\x1F\x7F-\x9F]/),Jp}var ef,Av;function _be(){return Av||(Av=1,ef=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ef}var tf,Mv;function ZA(){return Mv||(Mv=1,tf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),tf}var Nv;function mbe(){return Nv||(Nv=1,Dr.Any=QA(),Dr.Cc=XA(),Dr.Cf=_be(),Dr.P=g0,Dr.Z=ZA()),Dr}(function(n){function e(O){return Object.prototype.toString.call(O)}function t(O){return e(O)==="[object String]"}var i=Object.prototype.hasOwnProperty;function s(O,H){return i.call(O,H)}function r(O){var H=Array.prototype.slice.call(arguments,1);return H.forEach(function(q){if(q){if(typeof q!="object")throw new TypeError(q+"must be object");Object.keys(q).forEach(function(L){O[L]=q[L]})}}),O}function o(O,H,q){return[].concat(O.slice(0,H),q,O.slice(H+1))}function a(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function c(O){if(O>65535){O-=65536;var H=55296+(O>>10),q=56320+(O&1023);return String.fromCharCode(H,q)}return String.fromCharCode(O)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,_=new RegExp(d.source+"|"+u.source,"gi"),m=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=jA;function f(O,H){var q;return s(h,H)?h[H]:H.charCodeAt(0)===35&&m.test(H)&&(q=H[1].toLowerCase()==="x"?parseInt(H.slice(2),16):parseInt(H.slice(1),10),a(q))?c(q):O}function y(O){return O.indexOf("\\")<0?O:O.replace(d,"$1")}function b(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(_,function(H,q,L){return q||f(H,L)})}var g=/[&<>"]/,E=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function S(O){return v[O]}function R(O){return g.test(O)?O.replace(E,S):O}var C=/[.?*+^$[\]\\(){}|-]/g;function A(O){return O.replace(C,"\\$&")}function I(O){switch(O){case 9:case 32:return!0}return!1}function x(O){if(O>=8192&&O<=8202)return!0;switch(O){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}var M=g0;function G(O){return M.test(O)}function V(O){switch(O){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 ee(O){return O=O.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(O=O.replace(/ẞ/g,"ß")),O.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Ga,n.lib.ucmicro=mbe(),n.assign=r,n.isString=t,n.has=s,n.unescapeMd=y,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=c,n.escapeHtml=R,n.arrayReplaceAt=o,n.isSpace=I,n.isWhiteSpace=x,n.isMdAsciiPunct=V,n.isPunctChar=G,n.escapeRE=A,n.normalizeReference=ee})(kt);var Ju={},hbe=function(e,t,i){var s,r,o,a,c=-1,d=e.posMax,u=e.pos;for(e.pos=t+1,s=1;e.pos<d;){if(o=e.src.charCodeAt(e.pos),o===93&&(s--,s===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)s++;else if(i)return e.pos=u,-1}}return r&&(c=e.pos),e.pos=u,c},Ov=kt.unescapeAll,gbe=function(e,t,i){var s,r,o=t,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<i;){if(s=e.charCodeAt(o),s===10||s===60)return a;if(s===62)return a.pos=o+1,a.str=Ov(e.slice(t+1,o)),a.ok=!0,a;if(s===92&&o+1<i){o+=2;continue}o++}return a}for(r=0;o<i&&(s=e.charCodeAt(o),!(s===32||s<32||s===127));){if(s===92&&o+1<i){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(s===40&&(r++,r>32))return a;if(s===41){if(r===0)break;r--}o++}return t===o||r!==0||(a.str=Ov(e.slice(t,o)),a.pos=o,a.ok=!0),a},bbe=kt.unescapeAll,ybe=function(e,t,i){var s,r,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(a>=i||(r=e.charCodeAt(a),r!==34&&r!==39&&r!==40))return c;for(a++,r===40&&(r=41);a<i;){if(s=e.charCodeAt(a),s===r)return c.pos=a+1,c.lines=o,c.str=bbe(e.slice(t+1,a)),c.ok=!0,c;if(s===40&&r===41)return c;s===10?o++:s===92&&a+1<i&&(a++,e.charCodeAt(a)===10&&o++),a++}return c};Ju.parseLinkLabel=hbe;Ju.parseLinkDestination=gbe;Ju.parseLinkTitle=ybe;var Ebe=kt.assign,vbe=kt.unescapeAll,co=kt.escapeHtml,ds={};ds.code_inline=function(n,e,t,i,s){var r=n[e];return"<code"+s.renderAttrs(r)+">"+co(r.content)+"</code>"};ds.code_block=function(n,e,t,i,s){var r=n[e];return"<pre"+s.renderAttrs(r)+"><code>"+co(n[e].content)+`</code></pre>
-`};ds.fence=function(n,e,t,i,s){var r=n[e],o=r.info?vbe(r.info).trim():"",a="",c="",d,u,_,m,h;return o&&(_=o.split(/(\s+)/g),a=_[0],c=_.slice(2).join("")),t.highlight?d=t.highlight(r.content,a,c)||co(r.content):d=co(r.content),d.indexOf("<pre")===0?d+`
+*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function d(g,E){for(var v=E.length,S=0;S<v;++S)y(g,E[S])}var u={}.hasOwnProperty;function _(g,E){g[E]=!0}function m(g,E){for(var v in E)u.call(E,v)&&(g[v]=!!E[v])}var h=/\s+/;function f(g,E){for(var v=E.split(h),S=v.length,R=0;R<S;++R)g[v[R]]=!0}function y(g,E){if(E){var v=typeof E;v==="string"?f(g,E):Array.isArray(E)?d(g,E):v==="object"?m(g,E):v==="number"&&_(g,E)}}function b(){for(var g=arguments.length,E=Array(g),v=0;v<g;v++)E[v]=arguments[v];var S=new c;d(S,E);var R=[];for(var C in S)S[C]&&R.push(C);return R.join(" ")}return b}();typeof t<"u"&&t.exports?t.exports=a:(r=[],o=(function(){return a}).apply(i,r),o!==void 0&&(t.exports=o))})()},"./node_modules/core-js/es/array/from.js":function(t,i,s){s("./node_modules/core-js/modules/es.string.iterator.js"),s("./node_modules/core-js/modules/es.array.from.js");var r=s("./node_modules/core-js/internals/path.js");t.exports=r.Array.from},"./node_modules/core-js/internals/a-function.js":function(t,i){t.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"./node_modules/core-js/internals/an-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js");t.exports=function(o){if(!r(o))throw TypeError(String(o)+" is not an object");return o}},"./node_modules/core-js/internals/array-from.js":function(t,i,s){var r=s("./node_modules/core-js/internals/bind-context.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),c=s("./node_modules/core-js/internals/is-array-iterator-method.js"),d=s("./node_modules/core-js/internals/to-length.js"),u=s("./node_modules/core-js/internals/create-property.js"),_=s("./node_modules/core-js/internals/get-iterator-method.js");t.exports=function(h){var f=o(h),y=typeof this=="function"?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,E=g!==void 0,v=0,S=_(f),R,C,A,I;if(E&&(g=r(g,b>2?arguments[2]:void 0,2)),S!=null&&!(y==Array&&c(S)))for(I=S.call(f),C=new y;!(A=I.next()).done;v++)u(C,v,E?a(I,g,[A.value,v],!0):A.value);else for(R=d(f.length),C=new y(R);R>v;v++)u(C,v,E?g(f[v],v):f[v]);return C.length=v,C}},"./node_modules/core-js/internals/array-includes.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),a=s("./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(c){return function(d,u,_){var m=r(d),h=o(m.length),f=a(_,h),y;if(c&&u!=u){for(;h>f;)if(y=m[f++],y!=y)return!0}else for(;h>f;f++)if((c||f in m)&&m[f]===u)return c||f||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(t,i,s){var r=s("./node_modules/core-js/internals/a-function.js");t.exports=function(o,a,c){if(r(o),a===void 0)return o;switch(c){case 0:return function(){return o.call(a)};case 1:return function(d){return o.call(a,d)};case 2:return function(d,u){return o.call(a,d,u)};case 3:return function(d,u,_){return o.call(a,d,u,_)}}return function(){return o.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(t,i,s){var r=s("./node_modules/core-js/internals/an-object.js");t.exports=function(o,a,c,d){try{return d?a(r(c)[0],c[1]):a(c)}catch(_){var u=o.return;throw u!==void 0&&r(u.call(o)),_}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(t,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=r("iterator"),a=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){a=!0}};d[o]=function(){return this},Array.from(d,function(){throw 2})}catch{}t.exports=function(u,_){if(!_&&!a)return!1;var m=!1;try{var h={};h[o]=function(){return{next:function(){return{done:m=!0}}}},u(h)}catch{}return m}},"./node_modules/core-js/internals/classof-raw.js":function(t,i){var s={}.toString;t.exports=function(r){return s.call(r).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(t,i,s){var r=s("./node_modules/core-js/internals/classof-raw.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),c=r(function(){return arguments}())=="Arguments",d=function(u,_){try{return u[_]}catch{}};t.exports=function(u){var _,m,h;return u===void 0?"Undefined":u===null?"Null":typeof(m=d(_=Object(u),a))=="string"?m:c?r(_):(h=r(_))=="Object"&&typeof _.callee=="function"?"Arguments":h}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/own-keys.js"),a=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),c=s("./node_modules/core-js/internals/object-define-property.js");t.exports=function(d,u){for(var _=o(u),m=c.f,h=a.f,f=0;f<_.length;f++){var y=_[f];r(d,y)||m(d,y,h(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(t,i,s){var r=s("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=s("./node_modules/core-js/internals/object-create.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),c=s("./node_modules/core-js/internals/set-to-string-tag.js"),d=s("./node_modules/core-js/internals/iterators.js"),u=function(){return this};t.exports=function(_,m,h){var f=m+" Iterator";return _.prototype=o(r,{next:a(1,h)}),c(_,f,!1,!0),d[f]=u,_}},"./node_modules/core-js/internals/create-property-descriptor.js":function(t,i){t.exports=function(s,r){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:r}}},"./node_modules/core-js/internals/create-property.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-primitive.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(c,d,u){var _=r(d);_ in c?o.f(c,_,a(0,u)):c[_]=u}},"./node_modules/core-js/internals/define-iterator.js":function(t,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/create-iterator-constructor.js"),a=s("./node_modules/core-js/internals/object-get-prototype-of.js"),c=s("./node_modules/core-js/internals/object-set-prototype-of.js"),d=s("./node_modules/core-js/internals/set-to-string-tag.js"),u=s("./node_modules/core-js/internals/hide.js"),_=s("./node_modules/core-js/internals/redefine.js"),m=s("./node_modules/core-js/internals/well-known-symbol.js"),h=s("./node_modules/core-js/internals/is-pure.js"),f=s("./node_modules/core-js/internals/iterators.js"),y=s("./node_modules/core-js/internals/iterators-core.js"),b=y.IteratorPrototype,g=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),v="keys",S="values",R="entries",C=function(){return this};t.exports=function(A,I,x,M,G,V,ee){o(x,I,M);var O=function(ve){if(ve===G&&ne)return ne;if(!g&&ve in L)return L[ve];switch(ve){case v:return function(){return new x(this,ve)};case S:return function(){return new x(this,ve)};case R:return function(){return new x(this,ve)}}return function(){return new x(this)}},H=I+" Iterator",q=!1,L=A.prototype,Y=L[E]||L["@@iterator"]||G&&L[G],ne=!g&&Y||O(G),oe=I=="Array"&&L.entries||Y,ye,xe,le;if(oe&&(ye=a(oe.call(new A)),b!==Object.prototype&&ye.next&&(!h&&a(ye)!==b&&(c?c(ye,b):typeof ye[E]!="function"&&u(ye,E,C)),d(ye,H,!0,!0),h&&(f[H]=C))),G==S&&Y&&Y.name!==S&&(q=!0,ne=function(){return Y.call(this)}),(!h||ee)&&L[E]!==ne&&u(L,E,ne),f[I]=ne,G)if(xe={values:O(S),keys:V?ne:O(v),entries:O(R)},ee)for(le in xe)(g||q||!(le in L))&&_(L,le,xe[le]);else r({target:I,proto:!0,forced:g||q},xe);return xe}},"./node_modules/core-js/internals/descriptors.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js");t.exports=!r(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/document-create-element.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/is-object.js"),a=r.document,c=o(a)&&o(a.createElement);t.exports=function(d){return c?a.createElement(d):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(t,i){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=s("./node_modules/core-js/internals/hide.js"),c=s("./node_modules/core-js/internals/redefine.js"),d=s("./node_modules/core-js/internals/set-global.js"),u=s("./node_modules/core-js/internals/copy-constructor-properties.js"),_=s("./node_modules/core-js/internals/is-forced.js");t.exports=function(m,h){var f=m.target,y=m.global,b=m.stat,g,E,v,S,R,C;if(y?E=r:b?E=r[f]||d(f,{}):E=(r[f]||{}).prototype,E)for(v in h){if(R=h[v],m.noTargetGet?(C=o(E,v),S=C&&C.value):S=E[v],g=_(y?v:f+(b?".":"#")+v,m.forced),!g&&S!==void 0){if(typeof R==typeof S)continue;u(R,S)}(m.sham||S&&S.sham)&&a(R,"sham",!0),c(E,v,R,m)}}},"./node_modules/core-js/internals/fails.js":function(t,i){t.exports=function(s){try{return!!s()}catch{return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(t,i,s){var r=s("./node_modules/core-js/internals/shared.js");t.exports=r("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(t,i,s){var r=s("./node_modules/core-js/internals/classof.js"),o=s("./node_modules/core-js/internals/iterators.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),c=a("iterator");t.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||o[r(d)]}},"./node_modules/core-js/internals/global.js":function(t,i,s){(function(r){var o="object",a=function(c){return c&&c.Math==Math&&c};t.exports=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof r==o&&r)||Function("return this")()}).call(this,s("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(t,i){var s={}.hasOwnProperty;t.exports=function(r,o){return s.call(r,o)}},"./node_modules/core-js/internals/hidden-keys.js":function(t,i){t.exports={}},"./node_modules/core-js/internals/hide.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js");t.exports=r?function(c,d,u){return o.f(c,d,a(1,u))}:function(c,d,u){return c[d]=u,c}},"./node_modules/core-js/internals/html.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=r.document;t.exports=o&&o.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/fails.js"),a=s("./node_modules/core-js/internals/document-create-element.js");t.exports=!r&&!o(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js"),o=s("./node_modules/core-js/internals/classof-raw.js"),a="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return o(c)=="String"?a.call(c,""):Object(c)}:Object},"./node_modules/core-js/internals/internal-state.js":function(t,i,s){var r=s("./node_modules/core-js/internals/native-weak-map.js"),o=s("./node_modules/core-js/internals/global.js"),a=s("./node_modules/core-js/internals/is-object.js"),c=s("./node_modules/core-js/internals/hide.js"),d=s("./node_modules/core-js/internals/has.js"),u=s("./node_modules/core-js/internals/shared-key.js"),_=s("./node_modules/core-js/internals/hidden-keys.js"),m=o.WeakMap,h,f,y,b=function(A){return y(A)?f(A):h(A,{})},g=function(A){return function(I){var x;if(!a(I)||(x=f(I)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return x}};if(r){var E=new m,v=E.get,S=E.has,R=E.set;h=function(A,I){return R.call(E,A,I),I},f=function(A){return v.call(E,A)||{}},y=function(A){return S.call(E,A)}}else{var C=u("state");_[C]=!0,h=function(A,I){return c(A,C,I),I},f=function(A){return d(A,C)?A[C]:{}},y=function(A){return d(A,C)}}t.exports={set:h,get:f,has:y,enforce:b,getterFor:g}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(t,i,s){var r=s("./node_modules/core-js/internals/well-known-symbol.js"),o=s("./node_modules/core-js/internals/iterators.js"),a=r("iterator"),c=Array.prototype;t.exports=function(d){return d!==void 0&&(o.Array===d||c[a]===d)}},"./node_modules/core-js/internals/is-forced.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,a=function(m,h){var f=d[c(m)];return f==_?!0:f==u?!1:typeof h=="function"?r(h):!!h},c=a.normalize=function(m){return String(m).replace(o,".").toLowerCase()},d=a.data={},u=a.NATIVE="N",_=a.POLYFILL="P";t.exports=a},"./node_modules/core-js/internals/is-object.js":function(t,i){t.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"./node_modules/core-js/internals/is-pure.js":function(t,i){t.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-get-prototype-of.js"),o=s("./node_modules/core-js/internals/hide.js"),a=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/well-known-symbol.js"),d=s("./node_modules/core-js/internals/is-pure.js"),u=c("iterator"),_=!1,m=function(){return this},h,f,y;[].keys&&(y=[].keys(),"next"in y?(f=r(r(y)),f!==Object.prototype&&(h=f)):_=!0),h==null&&(h={}),!d&&!a(h,u)&&o(h,u,m),t.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:_}},"./node_modules/core-js/internals/iterators.js":function(t,i){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(t,i,s){var r=s("./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/function-to-string.js"),a=r.WeakMap;t.exports=typeof a=="function"&&/native code/.test(o.call(a))},"./node_modules/core-js/internals/object-create.js":function(t,i,s){var r=s("./node_modules/core-js/internals/an-object.js"),o=s("./node_modules/core-js/internals/object-define-properties.js"),a=s("./node_modules/core-js/internals/enum-bug-keys.js"),c=s("./node_modules/core-js/internals/hidden-keys.js"),d=s("./node_modules/core-js/internals/html.js"),u=s("./node_modules/core-js/internals/document-create-element.js"),_=s("./node_modules/core-js/internals/shared-key.js"),m=_("IE_PROTO"),h="prototype",f=function(){},y=function(){var b=u("iframe"),g=a.length,E="<",v="script",S=">",R="java"+v+":",C;for(b.style.display="none",d.appendChild(b),b.src=String(R),C=b.contentWindow.document,C.open(),C.write(E+v+S+"document.F=Object"+E+"/"+v+S),C.close(),y=C.F;g--;)delete y[h][a[g]];return y()};t.exports=Object.create||function(g,E){var v;return g!==null?(f[h]=r(g),v=new f,f[h]=null,v[m]=g):v=y(),E===void 0?v:o(v,E)},c[m]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-define-property.js"),a=s("./node_modules/core-js/internals/an-object.js"),c=s("./node_modules/core-js/internals/object-keys.js");t.exports=r?Object.defineProperties:function(u,_){a(u);for(var m=c(_),h=m.length,f=0,y;h>f;)o.f(u,y=m[f++],_[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/ie8-dom-define.js"),a=s("./node_modules/core-js/internals/an-object.js"),c=s("./node_modules/core-js/internals/to-primitive.js"),d=Object.defineProperty;i.f=r?d:function(_,m,h){if(a(_),m=c(m,!0),a(h),o)try{return d(_,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(_[m]=h.value),_}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(t,i,s){var r=s("./node_modules/core-js/internals/descriptors.js"),o=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=s("./node_modules/core-js/internals/create-property-descriptor.js"),c=s("./node_modules/core-js/internals/to-indexed-object.js"),d=s("./node_modules/core-js/internals/to-primitive.js"),u=s("./node_modules/core-js/internals/has.js"),_=s("./node_modules/core-js/internals/ie8-dom-define.js"),m=Object.getOwnPropertyDescriptor;i.f=r?m:function(f,y){if(f=c(f),y=d(y,!0),_)try{return m(f,y)}catch{}if(u(f,y))return a(!o.f.call(f,y),f[y])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js"),a=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(d){return r(d,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(t,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-object.js"),a=s("./node_modules/core-js/internals/shared-key.js"),c=s("./node_modules/core-js/internals/correct-prototype-getter.js"),d=a("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(_){return _=o(_),r(_,d)?_[d]:typeof _.constructor=="function"&&_ instanceof _.constructor?_.constructor.prototype:_ instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(t,i,s){var r=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),a=s("./node_modules/core-js/internals/array-includes.js"),c=s("./node_modules/core-js/internals/hidden-keys.js"),d=a(!1);t.exports=function(u,_){var m=o(u),h=0,f=[],y;for(y in m)!r(c,y)&&r(m,y)&&f.push(y);for(;_.length>h;)r(m,y=_[h++])&&(~d(f,y)||f.push(y));return f}},"./node_modules/core-js/internals/object-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-keys-internal.js"),o=s("./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(c){return r(c,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(t,i,s){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,a=o&&!r.call({1:2},1);i.f=a?function(d){var u=o(this,d);return!!u&&u.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(t,i,s){var r=s("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,a={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(a,[]),o=a instanceof Array}catch{}return function(u,_){return r(u,_),o?c.call(u,_):u.__proto__=_,u}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/object-get-own-property-names.js"),a=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=s("./node_modules/core-js/internals/an-object.js"),d=r.Reflect;t.exports=d&&d.ownKeys||function(_){var m=o.f(c(_)),h=a.f;return h?m.concat(h(_)):m}},"./node_modules/core-js/internals/path.js":function(t,i,s){t.exports=s("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/hide.js"),c=s("./node_modules/core-js/internals/has.js"),d=s("./node_modules/core-js/internals/set-global.js"),u=s("./node_modules/core-js/internals/function-to-string.js"),_=s("./node_modules/core-js/internals/internal-state.js"),m=_.get,h=_.enforce,f=String(u).split("toString");o("inspectSource",function(y){return u.call(y)}),(t.exports=function(y,b,g,E){var v=E?!!E.unsafe:!1,S=E?!!E.enumerable:!1,R=E?!!E.noTargetGet:!1;if(typeof g=="function"&&(typeof b=="string"&&!c(g,"name")&&a(g,"name",b),h(g).source=f.join(typeof b=="string"?b:"")),y===r){S?y[b]=g:d(b,g);return}else v?!R&&y[b]&&(S=!0):delete y[b];S?y[b]=g:a(y,b,g)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||u.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(t,i){t.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"./node_modules/core-js/internals/set-global.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/hide.js");t.exports=function(a,c){try{o(r,a,c)}catch{r[a]=c}return c}},"./node_modules/core-js/internals/set-to-string-tag.js":function(t,i,s){var r=s("./node_modules/core-js/internals/object-define-property.js").f,o=s("./node_modules/core-js/internals/has.js"),a=s("./node_modules/core-js/internals/well-known-symbol.js"),c=a("toStringTag");t.exports=function(d,u,_){d&&!o(d=_?d:d.prototype,c)&&r(d,c,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(t,i,s){var r=s("./node_modules/core-js/internals/shared.js"),o=s("./node_modules/core-js/internals/uid.js"),a=r("keys");t.exports=function(c){return a[c]||(a[c]=o(c))}},"./node_modules/core-js/internals/shared.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/set-global.js"),a=s("./node_modules/core-js/internals/is-pure.js"),c="__core-js_shared__",d=r[c]||o(c,{});(t.exports=function(u,_){return d[u]||(d[u]=_!==void 0?_:{})})("versions",[]).push({version:"3.1.3",mode:a?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a,c,d){var u=String(o(a)),_=r(c),m=u.length,h,f;return _<0||_>=m?d?"":void 0:(h=u.charCodeAt(_),h<55296||h>56319||_+1===m||(f=u.charCodeAt(_+1))<56320||f>57343?d?u.charAt(_):h:d?u.slice(_,_+2):(h-55296<<10)+(f-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.max,a=Math.min;t.exports=function(c,d){var u=r(c);return u<0?o(u+d,0):a(u,d)}},"./node_modules/core-js/internals/to-indexed-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/indexed-object.js"),o=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(a){return r(o(a))}},"./node_modules/core-js/internals/to-integer.js":function(t,i){var s=Math.ceil,r=Math.floor;t.exports=function(o){return isNaN(o=+o)?0:(o>0?r:s)(o)}},"./node_modules/core-js/internals/to-length.js":function(t,i,s){var r=s("./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(a){return a>0?o(r(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(t,i,s){var r=s("./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(o){return Object(r(o))}},"./node_modules/core-js/internals/to-primitive.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js");t.exports=function(o,a){if(!r(o))return o;var c,d;if(a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o))||typeof(c=o.valueOf)=="function"&&!r(d=c.call(o))||!a&&typeof(c=o.toString)=="function"&&!r(d=c.call(o)))return d;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(t,i){var s=0,r=Math.random();t.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++s+r).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(t,i,s){var r=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/an-object.js");t.exports=function(a,c){if(o(a),!r(c)&&c!==null)throw TypeError("Can't set "+String(c)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(t,i,s){var r=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/shared.js"),a=s("./node_modules/core-js/internals/uid.js"),c=s("./node_modules/core-js/internals/native-symbol.js"),d=r.Symbol,u=o("wks");t.exports=function(_){return u[_]||(u[_]=c&&d[_]||(c?d:a)("Symbol."+_))}},"./node_modules/core-js/modules/es.array.from.js":function(t,i,s){var r=s("./node_modules/core-js/internals/export.js"),o=s("./node_modules/core-js/internals/array-from.js"),a=s("./node_modules/core-js/internals/check-correctness-of-iteration.js"),c=!a(function(d){Array.from(d)});r({target:"Array",stat:!0,forced:c},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":function(t,i,s){var r=s("./node_modules/core-js/internals/string-at.js"),o=s("./node_modules/core-js/internals/internal-state.js"),a=s("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",d=o.set,u=o.getterFor(c);a(String,"String",function(_){d(this,{type:c,string:String(_),index:0})},function(){var m=u(this),h=m.string,f=m.index,y;return f>=h.length?{value:void 0,done:!0}:(y=r(h,f,!0),m.index+=y.length,{value:y,done:!1})})},"./node_modules/webpack/buildin/global.js":function(t,i){var s;s=function(){return this}();try{s=s||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(s=window)}t.exports=s},"./src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(y){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var E in g)Object.prototype.hasOwnProperty.call(g,E)&&(y[E]=g[E])}return y},o=function(){function y(b,g){for(var E=0;E<g.length;E++){var v=g[E];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(b,v.key,v)}}return function(b,g,E){return g&&y(b.prototype,g),E&&y(b,E),b}}(),a=s("./node_modules/classnames/dedupe.js"),c=_(a),d=s("./src/default-attrs.json"),u=_(d);function _(y){return y&&y.__esModule?y:{default:y}}function m(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}var h=function(){function y(b,g){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];m(this,y),this.name=b,this.contents=g,this.tags=E,this.attrs=r({},u.default,{class:"feather feather-"+b})}return o(y,[{key:"toSvg",value:function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=r({},this.attrs,g,{class:(0,c.default)(this.attrs.class,g.class)});return"<svg "+f(E)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),y}();function f(y){return Object.keys(y).map(function(b){return b+'="'+y[b]+'"'}).join(" ")}i.default=h},"./src/icons.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icon.js"),o=_(r),a=s("./dist/icons.json"),c=_(a),d=s("./src/tags.json"),u=_(d);function _(m){return m&&m.__esModule?m:{default:m}}i.default=Object.keys(c.default).map(function(m){return new o.default(m,c.default[m],u.default[m])}).reduce(function(m,h){return m[h.name]=h,m},{})},"./src/index.js":function(t,i,s){var r=s("./src/icons.js"),o=_(r),a=s("./src/to-svg.js"),c=_(a),d=s("./src/replace.js"),u=_(d);function _(m){return m&&m.__esModule?m:{default:m}}t.exports={icons:o.default,toSvg:c.default,replace:u.default}},"./src/replace.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=Object.assign||function(f){for(var y=1;y<arguments.length;y++){var b=arguments[y];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(f[g]=b[g])}return f},o=s("./node_modules/classnames/dedupe.js"),a=u(o),c=s("./src/icons.js"),d=u(c);function u(f){return f&&f.__esModule?f:{default:f}}function _(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document>"u")throw new Error("`feather.replace()` only works in a browser environment.");var y=document.querySelectorAll("[data-feather]");Array.from(y).forEach(function(b){return m(b,f)})}function m(f){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=h(f),g=b["data-feather"];if(delete b["data-feather"],d.default[g]===void 0){console.warn("feather: '"+g+"' is not a valid icon");return}var E=d.default[g].toSvg(r({},y,b,{class:(0,a.default)(y.class,b.class)})),v=new DOMParser().parseFromString(E,"image/svg+xml"),S=v.querySelector("svg");f.parentNode.replaceChild(S,f)}function h(f){return Array.from(f.attributes).reduce(function(y,b){return y[b.name]=b.value,y},{})}i.default=_},"./src/tags.json":function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(t,i,s){Object.defineProperty(i,"__esModule",{value:!0});var r=s("./src/icons.js"),o=a(r);function a(d){return d&&d.__esModule?d:{default:d}}function c(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!d)throw new Error("The required `key` (icon name) parameter is missing.");if(!o.default[d])throw new Error("No icon matching '"+d+"'. See the complete list of icons at https://feathericons.com");return o.default[d].toSvg(u)}i.default=c},0:function(t,i,s){s("./node_modules/core-js/es/array/from.js"),t.exports=s("./src/index.js")}})})})(DA);var R4=DA.exports;const Ve=Rr(R4),as=Object.create(null);as.open="0";as.close="1";as.ping="2";as.pong="3";as.message="4";as.upgrade="5";as.noop="6";const wd=Object.create(null);Object.keys(as).forEach(n=>{wd[as[n]]=n});const Xg={type:"error",data:"parser error"},LA=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",PA=typeof ArrayBuffer=="function",FA=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,p0=({type:n,data:e},t,i)=>LA&&e instanceof Blob?t?i(e):_v(e,i):PA&&(e instanceof ArrayBuffer||FA(e))?t?i(e):_v(new Blob([e]),i):i(as[n]+(e||"")),_v=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+(i||""))},t.readAsDataURL(n)};function mv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let jp;function A4(n,e){if(LA&&n.data instanceof Blob)return n.data.arrayBuffer().then(mv).then(e);if(PA&&(n.data instanceof ArrayBuffer||FA(n.data)))return e(mv(n.data));p0(n,!1,t=>{jp||(jp=new TextEncoder),e(jp.encode(t))})}const hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<hv.length;n++)hl[hv.charCodeAt(n)]=n;const M4=n=>{let e=n.length*.75,t=n.length,i,s=0,r,o,a,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const d=new ArrayBuffer(e),u=new Uint8Array(d);for(i=0;i<t;i+=4)r=hl[n.charCodeAt(i)],o=hl[n.charCodeAt(i+1)],a=hl[n.charCodeAt(i+2)],c=hl[n.charCodeAt(i+3)],u[s++]=r<<2|o>>4,u[s++]=(o&15)<<4|a>>2,u[s++]=(a&3)<<6|c&63;return d},N4=typeof ArrayBuffer=="function",f0=(n,e)=>{if(typeof n!="string")return{type:"message",data:UA(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:O4(n.substring(1),e)}:wd[t]?n.length>1?{type:wd[t],data:n.substring(1)}:{type:wd[t]}:Xg},O4=(n,e)=>{if(N4){const t=M4(n);return UA(t,e)}else return{base64:!0,data:n}},UA=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},BA="",I4=(n,e)=>{const t=n.length,i=new Array(t);let s=0;n.forEach((r,o)=>{p0(r,!1,a=>{i[o]=a,++s===t&&e(i.join(BA))})})},k4=(n,e)=>{const t=n.split(BA),i=[];for(let s=0;s<t.length;s++){const r=f0(t[s],e);if(i.push(r),r.type==="error")break}return i};function D4(){return new TransformStream({transform(n,e){A4(n,t=>{const i=t.length;let s;if(i<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,i);else if(i<65536){s=new Uint8Array(3);const r=new DataView(s.buffer);r.setUint8(0,126),r.setUint16(1,i)}else{s=new Uint8Array(9);const r=new DataView(s.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(i))}n.data&&typeof n.data!="string"&&(s[0]|=128),e.enqueue(s),e.enqueue(t)})}})}let Qp;function Nc(n){return n.reduce((e,t)=>e+t.length,0)}function Oc(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let i=0;for(let s=0;s<e;s++)t[s]=n[0][i++],i===n[0].length&&(n.shift(),i=0);return n.length&&i<n[0].length&&(n[0]=n[0].slice(i)),t}function L4(n,e){Qp||(Qp=new TextDecoder);const t=[];let i=0,s=-1,r=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(i===0){if(Nc(t)<1)break;const c=Oc(t,1);r=(c[0]&128)===128,s=c[0]&127,s<126?i=3:s===126?i=1:i=2}else if(i===1){if(Nc(t)<2)break;const c=Oc(t,2);s=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),i=3}else if(i===2){if(Nc(t)<8)break;const c=Oc(t,8),d=new DataView(c.buffer,c.byteOffset,c.length),u=d.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Xg);break}s=u*Math.pow(2,32)+d.getUint32(4),i=3}else{if(Nc(t)<s)break;const c=Oc(t,s);a.enqueue(f0(r?c:Qp.decode(c),e)),i=0}if(s===0||s>n){a.enqueue(Xg);break}}}})}const GA=4;function an(n){if(n)return P4(n)}function P4(n){for(var e in an.prototype)n[e]=an.prototype[e];return n}an.prototype.on=an.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};an.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};an.prototype.off=an.prototype.removeListener=an.prototype.removeAllListeners=an.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,s=0;s<t.length;s++)if(i=t[s],i===e||i.fn===e){t.splice(s,1);break}return t.length===0&&delete this._callbacks["$"+n],this};an.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,s=t.length;i<s;++i)t[i].apply(this,e)}return this};an.prototype.emitReserved=an.prototype.emit;an.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};an.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Ku=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),mi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),F4="arraybuffer";function VA(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const U4=mi.setTimeout,B4=mi.clearTimeout;function ju(n,e){e.useNativeTimers?(n.setTimeoutFn=U4.bind(mi),n.clearTimeoutFn=B4.bind(mi)):(n.setTimeoutFn=mi.setTimeout.bind(mi),n.clearTimeoutFn=mi.clearTimeout.bind(mi))}const G4=1.33;function V4(n){return typeof n=="string"?z4(n):Math.ceil((n.byteLength||n.size)*G4)}function z4(n){let e=0,t=0;for(let i=0,s=n.length;i<s;i++)e=n.charCodeAt(i),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(i++,t+=4);return t}function zA(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function H4(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function q4(n){let e={},t=n.split("&");for(let i=0,s=t.length;i<s;i++){let r=t[i].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}class Y4 extends Error{constructor(e,t,i){super(e),this.description=t,this.context=i,this.type="TransportError"}}class _0 extends an{constructor(e){super(),this.writable=!1,ju(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,i){return super.emitReserved("error",new Y4(e,t,i)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=f0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=H4(e);return t.length?"?"+t:""}}class $4 extends _0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let i=0;this._polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};k4(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,I4(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=zA()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let HA=!1;try{HA=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const W4=HA;function K4(){}class j4 extends $4{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let i=location.port;i||(i=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",(s,r)=>{this.onError("xhr post error",s,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,i)=>{this.onError("xhr poll error",t,i)}),this.pollXhr=e}}let ia=class Rd extends an{constructor(e,t,i){super(),this.createRequest=e,ju(this,i),this._opts=i,this._method=i.method||"GET",this._uri=t,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;const t=VA(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const i=this._xhr=this.createRequest(t);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&i.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var s;i.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=Rd.requestsCount++,Rd.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=K4,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Rd.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};ia.requestsCount=0;ia.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",gv);else if(typeof addEventListener=="function"){const n="onpagehide"in mi?"pagehide":"unload";addEventListener(n,gv,!1)}}function gv(){for(let n in ia.requests)ia.requests.hasOwnProperty(n)&&ia.requests[n].abort()}const Q4=function(){const n=qA({xdomain:!1});return n&&n.responseType!==null}();class X4 extends j4{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Q4&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ia(qA,this.uri(),e)}}function qA(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||W4))return new XMLHttpRequest}catch{}if(!e)try{return new mi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const YA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Z4 extends _0{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,i=YA?{}:VA(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,i)}catch(s){return this.emitReserved("error",s)}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<e.length;t++){const i=e[t],s=t===e.length-1;p0(i,this.supportsBinary,r=>{try{this.doWrite(i,r)}catch{}s&&Ku(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=zA()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Xp=mi.WebSocket||mi.MozWebSocket;class J4 extends Z4{createSocket(e,t,i){return YA?new Xp(e,t,i):t?new Xp(e,t):new Xp(e)}doWrite(e,t){this.ws.send(t)}}class e5 extends _0{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=>{const t=L4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=e.readable.pipeThrough(t).getReader(),s=D4();s.readable.pipeTo(e.writable),this._writer=s.writable.getWriter();const r=()=>{i.read().then(({done:a,value:c})=>{a||(this.onPacket(c),r())}).catch(a=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=e[t],s=t===e.length-1;this._writer.write(i).then(()=>{s&&Ku(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const t5={websocket:J4,webtransport:e5,polling:X4},n5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Zg(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),i=n.indexOf("]");t!=-1&&i!=-1&&(n=n.substring(0,t)+n.substring(t,i).replace(/:/g,";")+n.substring(i,n.length));let s=n5.exec(n||""),r={},o=14;for(;o--;)r[i5[o]]=s[o]||"";return t!=-1&&i!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=s5(r,r.path),r.queryKey=r5(r,r.query),r}function s5(n,e){const t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&i.splice(0,1),e.slice(-1)=="/"&&i.splice(i.length-1,1),i}function r5(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,s,r){s&&(t[s]=r)}),t}const Jg=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ad=[];Jg&&addEventListener("offline",()=>{Ad.forEach(n=>n())},!1);class hr extends an{constructor(e,t){if(super(),this.binaryType=F4,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){const i=Zg(e);t.hostname=i.host,t.secure=i.protocol==="https"||i.protocol==="wss",t.port=i.port,i.query&&(t.query=i.query)}else t.host&&(t.hostname=Zg(t.host).host);ju(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",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(i=>{const s=i.prototype.name;this.transports.push(s),this._transportsByName[s]=i}),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=q4(this.opts.query)),Jg&&(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"})},Ad.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=GA,t.transport=e,this.id&&(t.sid=this.id);const i=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](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&hr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}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",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",hr.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":const t=new 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);const 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){const 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 t=1;for(let i=0;i<this.writeBuffer.length;i++){const s=this.writeBuffer[i].data;if(s&&(t+=V4(s)),i>0&&t>this._maxPayload)return this.writeBuffer.slice(0,i);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Ku(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,i){return this._sendPacket("message",e,t,i),this}send(e,t,i){return this._sendPacket("message",e,t,i),this}_sendPacket(e,t,i,s){if(typeof t=="function"&&(s=t,t=void 0),typeof i=="function"&&(s=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const r={type:e,data:t,options:i};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),s&&this.once("flush",s),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{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?i():e()}):this.upgrading?i():e()),this}_onError(e){if(hr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_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(),Jg&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const i=Ad.indexOf(this._offlineEventListener);i!==-1&&Ad.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}hr.protocol=GA;class o5 extends hr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),i=!1;hr.priorWebsocketSuccess=!1;const s=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!i)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;hr.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=t.name,this.emitReserved("upgradeError",m)}}))};function r(){i||(i=!0,u(),t.close(),t=null)}const o=_=>{const m=new Error("probe error: "+_);m.transport=t.name,r(),this.emitReserved("upgradeError",m)};function a(){o("transport closed")}function c(){o("socket closed")}function d(_){t&&_.name!==t.name&&r()}const u=()=>{t.removeListener("open",s),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",d)};t.once("open",s),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{i||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let i=0;i<e.length;i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}let a5=class extends o5{constructor(e,t={}){const i=typeof e=="object"?e:t;(!i.transports||i.transports&&typeof i.transports[0]=="string")&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(s=>t5[s]).filter(s=>!!s)),super(e,i)}};function l5(n,e="",t){let i=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),i=Zg(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const r=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+e,i.href=i.protocol+"://"+r+(t&&t.port===i.port?"":":"+i.port),i}const c5=typeof ArrayBuffer=="function",d5=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,$A=Object.prototype.toString,u5=typeof Blob=="function"||typeof Blob<"u"&&$A.call(Blob)==="[object BlobConstructor]",p5=typeof File=="function"||typeof File<"u"&&$A.call(File)==="[object FileConstructor]";function m0(n){return c5&&(n instanceof ArrayBuffer||d5(n))||u5&&n instanceof Blob||p5&&n instanceof File}function Md(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(Md(n[t]))return!0;return!1}if(m0(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Md(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&Md(n[t]))return!0;return!1}function f5(n){const e=[],t=n.data,i=n;return i.data=eb(t,e),i.attachments=e.length,{packet:i,buffers:e}}function eb(n,e){if(!n)return n;if(m0(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=eb(n[i],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=eb(n[i],e));return t}return n}function _5(n,e){return n.data=tb(n.data,e),delete n.attachments,n}function tb(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=tb(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=tb(n[t],e));return n}const m5=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],h5=5;var At;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(At||(At={}));class g5{constructor(e){this.replacer=e}encode(e){return(e.type===At.EVENT||e.type===At.ACK)&&Md(e)?this.encodeAsBinary({type:e.type===At.EVENT?At.BINARY_EVENT:At.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===At.BINARY_EVENT||e.type===At.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){const t=f5(e),i=this.encodeAsString(t.packet),s=t.buffers;return s.unshift(i),s}}function bv(n){return Object.prototype.toString.call(n)==="[object Object]"}class h0 extends an{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const i=t.type===At.BINARY_EVENT;i||t.type===At.BINARY_ACK?(t.type=i?At.EVENT:At.ACK,this.reconstructor=new b5(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(m0(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const i={type:Number(e.charAt(0))};if(At[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===At.BINARY_EVENT||i.type===At.BINARY_ACK){const r=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(o)}if(e.charAt(t+1)==="/"){const r=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(r,t)}else i.nsp="/";const s=e.charAt(t+1);if(s!==""&&Number(s)==s){const r=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}i.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(h0.isPayloadValid(i.type,r))i.data=r;else throw new Error("invalid payload")}return i}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case At.CONNECT:return bv(t);case At.DISCONNECT:return t===void 0;case At.CONNECT_ERROR:return typeof t=="string"||bv(t);case At.EVENT:case At.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&m5.indexOf(t[0])===-1);case At.ACK:case At.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class b5{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=_5(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const y5=Object.freeze(Object.defineProperty({__proto__:null,Decoder:h0,Encoder:g5,get PacketType(){return At},protocol:h5},Symbol.toStringTag,{value:"Module"}));function Li(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const E5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class WA extends an{constructor(e,t,i){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,i&&i.auth&&(this.auth=i.auth),this._opts=Object.assign({},i),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Li(e,"open",this.onopen.bind(this)),Li(e,"packet",this.onpacket.bind(this)),Li(e,"error",this.onerror.bind(this)),Li(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){var i,s,r;if(E5.hasOwnProperty(e))throw new 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;const o={type:At.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const u=this.ids++,_=t.pop();this._registerAckCallback(u,_),o.id=u}const a=(s=(i=this.io.engine)===null||i===void 0?void 0:i.transport)===null||s===void 0?void 0:s.writable,c=this.connected&&!(!((r=this.io.engine)===null||r===void 0)&&r._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var i;const s=(i=this.flags.timeout)!==null&&i!==void 0?i:this._opts.ackTimeout;if(s===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},s),o=(...a)=>{this.io.clearTimeoutFn(r),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((i,s)=>{const r=(o,a)=>o?s(o):i(a);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const i={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((s,...r)=>i!==this._queue[0]?void 0:(s!==null?i.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(s)):(this._queue.shift(),t&&t(null,...r)),i.pending=!1,this._drainQueue())),this._queue.push(i),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const 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:At.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(i=>String(i.id)===e)){const i=this.acks[e];delete this.acks[e],i.withError&&i.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case At.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new 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 At.EVENT:case At.BINARY_EVENT:this.onevent(e);break;case At.ACK:case At.BINARY_ACK:this.onack(e);break;case At.DISCONNECT:this.ondisconnect();break;case At.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const 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){const t=this._anyListeners.slice();for(const i of t)i.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){const t=this;let i=!1;return function(...s){i||(i=!0,t.packet({type:At.ACK,id:e,data:s}))}}onack(e){const 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.emitReserved("connect"),this._drainQueue(!0)}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()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:At.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){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const i of t)i.apply(this,e.data)}}}function Ba(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Ba.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};Ba.prototype.reset=function(){this.attempts=0};Ba.prototype.setMin=function(n){this.ms=n};Ba.prototype.setMax=function(n){this.max=n};Ba.prototype.setJitter=function(n){this.jitter=n};class nb extends an{constructor(e,t){var i;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ju(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((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new Ba({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const s=t.parser||y5;this.encoder=new s.Encoder,this.decoder=new s.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===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||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 a5(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const s=Li(t,"open",function(){i.onopen(),e&&e()}),r=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=Li(t,"error",r);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{s(),r(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(s),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Li(e,"ping",this.onping.bind(this)),Li(e,"data",this.ondata.bind(this)),Li(e,"error",this.onerror.bind(this)),Li(e,"close",this.onclose.bind(this)),Li(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Ku(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i?this._autoConnect&&!i.active&&i.connect():(i=new WA(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),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 i;this.cleanup(),(i=this.engine)===null||i===void 0||i.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;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(s=>{s?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",s)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(()=>{this.clearTimeoutFn(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const nl={};function Nd(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=l5(n,e.path||"/socket.io"),i=t.source,s=t.id,r=t.path,o=nl[s]&&r in nl[s].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new nb(i,e):(nl[s]||(nl[s]=new nb(i,e)),c=nl[s]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(Nd,{Manager:nb,Socket:WA,io:Nd,connect:Nd});const KA="/";console.log(KA);const Ye=new Nd(KA,{reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3}),v5={name:"Toast",props:{},data(){return{show:!1,log_type:1,message:"",toastArr:[]}},methods:{close(n){this.toastArr=this.toastArr.filter(e=>e.id!=n)},copyToClipBoard(n){navigator.clipboard.writeText(n),Le(()=>{Ve.replace()})},showToast(n,e=3,t=!0){const i=parseInt((new Date().getTime()*Math.random()).toString()).toString(),s={id:i,log_type:t,message:n,show:!0};this.toastArr.push(s),Le(()=>{Ve.replace()}),setTimeout(()=>{this.toastArr=this.toastArr.filter(r=>r.id!=i)},e*1e3)}},watch:{}},S5={class:"absolute bottom-16 right-2 z-20 flex flex-col gap-3 min-w-[300px]"},T5={class:"flex flex-row items-center w-full p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800",role:"alert"},x5={class:"flex flex-row flex-grow items-center h-auto"},C5={key:0,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-500 bg-red-100 rounded-lg dark:bg-red-800 dark:text-red-200"},w5={key:1,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-green-500 bg-green-100 rounded-lg dark:bg-green-800 dark:text-green-200"},R5={key:2,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg dark:bg-blue-800 dark:text-blue-200"},A5={key:3,class:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-orange-500 bg-orange-100 rounded-lg dark:bg-orange-800 dark:text-orange-200"},M5=["title"],N5={class:"flex"},O5=["onClick"],I5=["onClick"];function k5(n,e,t,i,s,r){return T(),w("div",S5,[z(Is,{name:"toastItem",tag:"div"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.toastArr,o=>(T(),w("div",{key:o.id,class:"relative"},[l("div",T5,[l("div",x5,[o.log_type==0?(T(),w("div",C5,e[0]||(e[0]=[l("i",{"data-feather":"x"},null,-1),l("span",{class:"sr-only"},"Cross icon",-1)]))):B("",!0),o.log_type==1?(T(),w("div",w5,e[1]||(e[1]=[l("i",{"data-feather":"check"},null,-1),l("span",{class:"sr-only"},"Check icon",-1)]))):B("",!0),o.log_type==2?(T(),w("div",R5,e[2]||(e[2]=[l("i",{"data-feather":"info"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),o.log_type==3?(T(),w("div",A5,e[3]||(e[3]=[l("i",{"data-feather":"alert-triangle"},null,-1),l("span",{class:"sr-only"},null,-1)]))):B("",!0),l("div",{class:"ml-3 text-sm font-normal whitespace-pre-wrap line-clamp-3 max-w-xs max-h-[400px] overflow-auto break-words",title:o.message},$(o.message),9,M5)]),l("div",N5,[l("button",{type:"button",onClick:W(a=>r.copyToClipBoard(o.message),["stop"]),title:"Copy message",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[4]||(e[4]=[l("span",{class:"sr-only"},"Copy message",-1),l("i",{"data-feather":"clipboard",class:"w-5 h-5"},null,-1)]),8,O5),l("button",{type:"button",onClick:a=>r.close(o.id),title:"Close",class:"bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700"},e[5]||(e[5]=[l("span",{class:"sr-only"},"Close",-1),l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,I5)])])]))),128))]),_:1})])}const Qu=st(v5,[["render",k5],["__scopeId","data-v-46f379e5"]]);var kt={};const D5="Á",L5="á",P5="Ă",F5="ă",U5="∾",B5="∿",G5="∾̳",V5="Â",z5="â",H5="´",q5="А",Y5="а",$5="Æ",W5="æ",K5="⁡",j5="𝔄",Q5="𝔞",X5="À",Z5="à",J5="ℵ",eF="ℵ",tF="Α",nF="α",iF="Ā",sF="ā",rF="⨿",oF="&",aF="&",lF="⩕",cF="⩓",dF="∧",uF="⩜",pF="⩘",fF="⩚",_F="∠",mF="⦤",hF="∠",gF="⦨",bF="⦩",yF="⦪",EF="⦫",vF="⦬",SF="⦭",TF="⦮",xF="⦯",CF="∡",wF="∟",RF="⊾",AF="⦝",MF="∢",NF="Å",OF="⍼",IF="Ą",kF="ą",DF="𝔸",LF="𝕒",PF="⩯",FF="≈",UF="⩰",BF="≊",GF="≋",VF="'",zF="⁡",HF="≈",qF="≊",YF="Å",$F="å",WF="𝒜",KF="𝒶",jF="≔",QF="*",XF="≈",ZF="≍",JF="Ã",eU="ã",tU="Ä",nU="ä",iU="∳",sU="⨑",rU="≌",oU="϶",aU="‵",lU="∽",cU="⋍",dU="∖",uU="⫧",pU="⊽",fU="⌅",_U="⌆",mU="⌅",hU="⎵",gU="⎶",bU="≌",yU="Б",EU="б",vU="„",SU="∵",TU="∵",xU="∵",CU="⦰",wU="϶",RU="ℬ",AU="ℬ",MU="Β",NU="β",OU="ℶ",IU="≬",kU="𝔅",DU="𝔟",LU="⋂",PU="◯",FU="⋃",UU="⨀",BU="⨁",GU="⨂",VU="⨆",zU="★",HU="▽",qU="△",YU="⨄",$U="⋁",WU="⋀",KU="⤍",jU="⧫",QU="▪",XU="▴",ZU="▾",JU="◂",eB="▸",tB="␣",nB="▒",iB="░",sB="▓",rB="█",oB="=⃥",aB="≡⃥",lB="⫭",cB="⌐",dB="𝔹",uB="𝕓",pB="⊥",fB="⊥",_B="⋈",mB="⧉",hB="┐",gB="╕",bB="╖",yB="╗",EB="┌",vB="╒",SB="╓",TB="╔",xB="─",CB="═",wB="┬",RB="╤",AB="╥",MB="╦",NB="┴",OB="╧",IB="╨",kB="╩",DB="⊟",LB="⊞",PB="⊠",FB="┘",UB="╛",BB="╜",GB="╝",VB="└",zB="╘",HB="╙",qB="╚",YB="│",$B="║",WB="┼",KB="╪",jB="╫",QB="╬",XB="┤",ZB="╡",JB="╢",e6="╣",t6="├",n6="╞",i6="╟",s6="╠",r6="‵",o6="˘",a6="˘",l6="¦",c6="𝒷",d6="ℬ",u6="⁏",p6="∽",f6="⋍",_6="⧅",m6="\\",h6="⟈",g6="•",b6="•",y6="≎",E6="⪮",v6="≏",S6="≎",T6="≏",x6="Ć",C6="ć",w6="⩄",R6="⩉",A6="⩋",M6="∩",N6="⋒",O6="⩇",I6="⩀",k6="ⅅ",D6="∩︀",L6="⁁",P6="ˇ",F6="ℭ",U6="⩍",B6="Č",G6="č",V6="Ç",z6="ç",H6="Ĉ",q6="ĉ",Y6="∰",$6="⩌",W6="⩐",K6="Ċ",j6="ċ",Q6="¸",X6="¸",Z6="⦲",J6="¢",e9="·",t9="·",n9="𝔠",i9="ℭ",s9="Ч",r9="ч",o9="✓",a9="✓",l9="Χ",c9="χ",d9="ˆ",u9="≗",p9="↺",f9="↻",_9="⊛",m9="⊚",h9="⊝",g9="⊙",b9="®",y9="Ⓢ",E9="⊖",v9="⊕",S9="⊗",T9="○",x9="⧃",C9="≗",w9="⨐",R9="⫯",A9="⧂",M9="∲",N9="”",O9="’",I9="♣",k9="♣",D9=":",L9="∷",P9="⩴",F9="≔",U9="≔",B9=",",G9="@",V9="∁",z9="∘",H9="∁",q9="ℂ",Y9="≅",$9="⩭",W9="≡",K9="∮",j9="∯",Q9="∮",X9="𝕔",Z9="ℂ",J9="∐",e8="∐",t8="©",n8="©",i8="℗",s8="∳",r8="↵",o8="✗",a8="⨯",l8="𝒞",c8="𝒸",d8="⫏",u8="⫑",p8="⫐",f8="⫒",_8="⋯",m8="⤸",h8="⤵",g8="⋞",b8="⋟",y8="↶",E8="⤽",v8="⩈",S8="⩆",T8="≍",x8="∪",C8="⋓",w8="⩊",R8="⊍",A8="⩅",M8="∪︀",N8="↷",O8="⤼",I8="⋞",k8="⋟",D8="⋎",L8="⋏",P8="¤",F8="↶",U8="↷",B8="⋎",G8="⋏",V8="∲",z8="∱",H8="⌭",q8="†",Y8="‡",$8="ℸ",W8="↓",K8="↡",j8="⇓",Q8="‐",X8="⫤",Z8="⊣",J8="⤏",eG="˝",tG="Ď",nG="ď",iG="Д",sG="д",rG="‡",oG="⇊",aG="ⅅ",lG="ⅆ",cG="⤑",dG="⩷",uG="°",pG="∇",fG="Δ",_G="δ",mG="⦱",hG="⥿",gG="𝔇",bG="𝔡",yG="⥥",EG="⇃",vG="⇂",SG="´",TG="˙",xG="˝",CG="`",wG="˜",RG="⋄",AG="⋄",MG="⋄",NG="♦",OG="♦",IG="¨",kG="ⅆ",DG="ϝ",LG="⋲",PG="÷",FG="÷",UG="⋇",BG="⋇",GG="Ђ",VG="ђ",zG="⌞",HG="⌍",qG="$",YG="𝔻",$G="𝕕",WG="¨",KG="˙",jG="⃜",QG="≐",XG="≑",ZG="≐",JG="∸",e7="∔",t7="⊡",n7="⌆",i7="∯",s7="¨",r7="⇓",o7="⇐",a7="⇔",l7="⫤",c7="⟸",d7="⟺",u7="⟹",p7="⇒",f7="⊨",_7="⇑",m7="⇕",h7="∥",g7="⤓",b7="↓",y7="↓",E7="⇓",v7="⇵",S7="̑",T7="⇊",x7="⇃",C7="⇂",w7="⥐",R7="⥞",A7="⥖",M7="↽",N7="⥟",O7="⥗",I7="⇁",k7="↧",D7="⊤",L7="⤐",P7="⌟",F7="⌌",U7="𝒟",B7="𝒹",G7="Ѕ",V7="ѕ",z7="⧶",H7="Đ",q7="đ",Y7="⋱",$7="▿",W7="▾",K7="⇵",j7="⥯",Q7="⦦",X7="Џ",Z7="џ",J7="⟿",eV="É",tV="é",nV="⩮",iV="Ě",sV="ě",rV="Ê",oV="ê",aV="≖",lV="≕",cV="Э",dV="э",uV="⩷",pV="Ė",fV="ė",_V="≑",mV="ⅇ",hV="≒",gV="𝔈",bV="𝔢",yV="⪚",EV="È",vV="è",SV="⪖",TV="⪘",xV="⪙",CV="∈",wV="⏧",RV="ℓ",AV="⪕",MV="⪗",NV="Ē",OV="ē",IV="∅",kV="∅",DV="◻",LV="∅",PV="▫",FV=" ",UV=" ",BV=" ",GV="Ŋ",VV="ŋ",zV=" ",HV="Ę",qV="ę",YV="𝔼",$V="𝕖",WV="⋕",KV="⧣",jV="⩱",QV="ε",XV="Ε",ZV="ε",JV="ϵ",ez="≖",tz="≕",nz="≂",iz="⪖",sz="⪕",rz="⩵",oz="=",az="≂",lz="≟",cz="⇌",dz="≡",uz="⩸",pz="⧥",fz="⥱",_z="≓",mz="ℯ",hz="ℰ",gz="≐",bz="⩳",yz="≂",Ez="Η",vz="η",Sz="Ð",Tz="ð",xz="Ë",Cz="ë",wz="€",Rz="!",Az="∃",Mz="∃",Nz="ℰ",Oz="ⅇ",Iz="ⅇ",kz="≒",Dz="Ф",Lz="ф",Pz="♀",Fz="ffi",Uz="ff",Bz="ffl",Gz="𝔉",Vz="𝔣",zz="fi",Hz="◼",qz="▪",Yz="fj",$z="♭",Wz="fl",Kz="▱",jz="ƒ",Qz="𝔽",Xz="𝕗",Zz="∀",Jz="∀",eH="⋔",tH="⫙",nH="ℱ",iH="⨍",sH="½",rH="⅓",oH="¼",aH="⅕",lH="⅙",cH="⅛",dH="⅔",uH="⅖",pH="¾",fH="⅗",_H="⅜",mH="⅘",hH="⅚",gH="⅝",bH="⅞",yH="⁄",EH="⌢",vH="𝒻",SH="ℱ",TH="ǵ",xH="Γ",CH="γ",wH="Ϝ",RH="ϝ",AH="⪆",MH="Ğ",NH="ğ",OH="Ģ",IH="Ĝ",kH="ĝ",DH="Г",LH="г",PH="Ġ",FH="ġ",UH="≥",BH="≧",GH="⪌",VH="⋛",zH="≥",HH="≧",qH="⩾",YH="⪩",$H="⩾",WH="⪀",KH="⪂",jH="⪄",QH="⋛︀",XH="⪔",ZH="𝔊",JH="𝔤",eq="≫",tq="⋙",nq="⋙",iq="ℷ",sq="Ѓ",rq="ѓ",oq="⪥",aq="≷",lq="⪒",cq="⪤",dq="⪊",uq="⪊",pq="⪈",fq="≩",_q="⪈",mq="≩",hq="⋧",gq="𝔾",bq="𝕘",yq="`",Eq="≥",vq="⋛",Sq="≧",Tq="⪢",xq="≷",Cq="⩾",wq="≳",Rq="𝒢",Aq="ℊ",Mq="≳",Nq="⪎",Oq="⪐",Iq="⪧",kq="⩺",Dq=">",Lq=">",Pq="≫",Fq="⋗",Uq="⦕",Bq="⩼",Gq="⪆",Vq="⥸",zq="⋗",Hq="⋛",qq="⪌",Yq="≷",$q="≳",Wq="≩︀",Kq="≩︀",jq="ˇ",Qq=" ",Xq="½",Zq="ℋ",Jq="Ъ",eY="ъ",tY="⥈",nY="↔",iY="⇔",sY="↭",rY="^",oY="ℏ",aY="Ĥ",lY="ĥ",cY="♥",dY="♥",uY="…",pY="⊹",fY="𝔥",_Y="ℌ",mY="ℋ",hY="⤥",gY="⤦",bY="⇿",yY="∻",EY="↩",vY="↪",SY="𝕙",TY="ℍ",xY="―",CY="─",wY="𝒽",RY="ℋ",AY="ℏ",MY="Ħ",NY="ħ",OY="≎",IY="≏",kY="⁃",DY="‐",LY="Í",PY="í",FY="⁣",UY="Î",BY="î",GY="И",VY="и",zY="İ",HY="Е",qY="е",YY="¡",$Y="⇔",WY="𝔦",KY="ℑ",jY="Ì",QY="ì",XY="ⅈ",ZY="⨌",JY="∭",e$="⧜",t$="℩",n$="IJ",i$="ij",s$="Ī",r$="ī",o$="ℑ",a$="ⅈ",l$="ℐ",c$="ℑ",d$="ı",u$="ℑ",p$="⊷",f$="Ƶ",_$="⇒",m$="℅",h$="∞",g$="⧝",b$="ı",y$="⊺",E$="∫",v$="∬",S$="ℤ",T$="∫",x$="⊺",C$="⋂",w$="⨗",R$="⨼",A$="⁣",M$="⁢",N$="Ё",O$="ё",I$="Į",k$="į",D$="𝕀",L$="𝕚",P$="Ι",F$="ι",U$="⨼",B$="¿",G$="𝒾",V$="ℐ",z$="∈",H$="⋵",q$="⋹",Y$="⋴",$$="⋳",W$="∈",K$="⁢",j$="Ĩ",Q$="ĩ",X$="І",Z$="і",J$="Ï",eW="ï",tW="Ĵ",nW="ĵ",iW="Й",sW="й",rW="𝔍",oW="𝔧",aW="ȷ",lW="𝕁",cW="𝕛",dW="𝒥",uW="𝒿",pW="Ј",fW="ј",_W="Є",mW="є",hW="Κ",gW="κ",bW="ϰ",yW="Ķ",EW="ķ",vW="К",SW="к",TW="𝔎",xW="𝔨",CW="ĸ",wW="Х",RW="х",AW="Ќ",MW="ќ",NW="𝕂",OW="𝕜",IW="𝒦",kW="𝓀",DW="⇚",LW="Ĺ",PW="ĺ",FW="⦴",UW="ℒ",BW="Λ",GW="λ",VW="⟨",zW="⟪",HW="⦑",qW="⟨",YW="⪅",$W="ℒ",WW="«",KW="⇤",jW="⤟",QW="←",XW="↞",ZW="⇐",JW="⤝",eK="↩",tK="↫",nK="⤹",iK="⥳",sK="↢",rK="⤙",oK="⤛",aK="⪫",lK="⪭",cK="⪭︀",dK="⤌",uK="⤎",pK="❲",fK="{",_K="[",mK="⦋",hK="⦏",gK="⦍",bK="Ľ",yK="ľ",EK="Ļ",vK="ļ",SK="⌈",TK="{",xK="Л",CK="л",wK="⤶",RK="“",AK="„",MK="⥧",NK="⥋",OK="↲",IK="≤",kK="≦",DK="⟨",LK="⇤",PK="←",FK="←",UK="⇐",BK="⇆",GK="↢",VK="⌈",zK="⟦",HK="⥡",qK="⥙",YK="⇃",$K="⌊",WK="↽",KK="↼",jK="⇇",QK="↔",XK="↔",ZK="⇔",JK="⇆",ej="⇋",tj="↭",nj="⥎",ij="↤",sj="⊣",rj="⥚",oj="⋋",aj="⧏",lj="⊲",cj="⊴",dj="⥑",uj="⥠",pj="⥘",fj="↿",_j="⥒",mj="↼",hj="⪋",gj="⋚",bj="≤",yj="≦",Ej="⩽",vj="⪨",Sj="⩽",Tj="⩿",xj="⪁",Cj="⪃",wj="⋚︀",Rj="⪓",Aj="⪅",Mj="⋖",Nj="⋚",Oj="⪋",Ij="⋚",kj="≦",Dj="≶",Lj="≶",Pj="⪡",Fj="≲",Uj="⩽",Bj="≲",Gj="⥼",Vj="⌊",zj="𝔏",Hj="𝔩",qj="≶",Yj="⪑",$j="⥢",Wj="↽",Kj="↼",jj="⥪",Qj="▄",Xj="Љ",Zj="љ",Jj="⇇",eQ="≪",tQ="⋘",nQ="⌞",iQ="⇚",sQ="⥫",rQ="◺",oQ="Ŀ",aQ="ŀ",lQ="⎰",cQ="⎰",dQ="⪉",uQ="⪉",pQ="⪇",fQ="≨",_Q="⪇",mQ="≨",hQ="⋦",gQ="⟬",bQ="⇽",yQ="⟦",EQ="⟵",vQ="⟵",SQ="⟸",TQ="⟷",xQ="⟷",CQ="⟺",wQ="⟼",RQ="⟶",AQ="⟶",MQ="⟹",NQ="↫",OQ="↬",IQ="⦅",kQ="𝕃",DQ="𝕝",LQ="⨭",PQ="⨴",FQ="∗",UQ="_",BQ="↙",GQ="↘",VQ="◊",zQ="◊",HQ="⧫",qQ="(",YQ="⦓",$Q="⇆",WQ="⌟",KQ="⇋",jQ="⥭",QQ="‎",XQ="⊿",ZQ="‹",JQ="𝓁",eX="ℒ",tX="↰",nX="↰",iX="≲",sX="⪍",rX="⪏",oX="[",aX="‘",lX="‚",cX="Ł",dX="ł",uX="⪦",pX="⩹",fX="<",_X="<",mX="≪",hX="⋖",gX="⋋",bX="⋉",yX="⥶",EX="⩻",vX="◃",SX="⊴",TX="◂",xX="⦖",CX="⥊",wX="⥦",RX="≨︀",AX="≨︀",MX="¯",NX="♂",OX="✠",IX="✠",kX="↦",DX="↦",LX="↧",PX="↤",FX="↥",UX="▮",BX="⨩",GX="М",VX="м",zX="—",HX="∺",qX="∡",YX=" ",$X="ℳ",WX="𝔐",KX="𝔪",jX="℧",QX="µ",XX="*",ZX="⫰",JX="∣",eZ="·",tZ="⊟",nZ="−",iZ="∸",sZ="⨪",rZ="∓",oZ="⫛",aZ="…",lZ="∓",cZ="⊧",dZ="𝕄",uZ="𝕞",pZ="∓",fZ="𝓂",_Z="ℳ",mZ="∾",hZ="Μ",gZ="μ",bZ="⊸",yZ="⊸",EZ="∇",vZ="Ń",SZ="ń",TZ="∠⃒",xZ="≉",CZ="⩰̸",wZ="≋̸",RZ="ʼn",AZ="≉",MZ="♮",NZ="ℕ",OZ="♮",IZ=" ",kZ="≎̸",DZ="≏̸",LZ="⩃",PZ="Ň",FZ="ň",UZ="Ņ",BZ="ņ",GZ="≇",VZ="⩭̸",zZ="⩂",HZ="Н",qZ="н",YZ="–",$Z="⤤",WZ="↗",KZ="⇗",jZ="↗",QZ="≠",XZ="≐̸",ZZ="​",JZ="​",eJ="​",tJ="​",nJ="≢",iJ="⤨",sJ="≂̸",rJ="≫",oJ="≪",aJ=`
+`,lJ="∄",cJ="∄",dJ="𝔑",uJ="𝔫",pJ="≧̸",fJ="≱",_J="≱",mJ="≧̸",hJ="⩾̸",gJ="⩾̸",bJ="⋙̸",yJ="≵",EJ="≫⃒",vJ="≯",SJ="≯",TJ="≫̸",xJ="↮",CJ="⇎",wJ="⫲",RJ="∋",AJ="⋼",MJ="⋺",NJ="∋",OJ="Њ",IJ="њ",kJ="↚",DJ="⇍",LJ="‥",PJ="≦̸",FJ="≰",UJ="↚",BJ="⇍",GJ="↮",VJ="⇎",zJ="≰",HJ="≦̸",qJ="⩽̸",YJ="⩽̸",$J="≮",WJ="⋘̸",KJ="≴",jJ="≪⃒",QJ="≮",XJ="⋪",ZJ="⋬",JJ="≪̸",eee="∤",tee="⁠",nee=" ",iee="𝕟",see="ℕ",ree="⫬",oee="¬",aee="≢",lee="≭",cee="∦",dee="∉",uee="≠",pee="≂̸",fee="∄",_ee="≯",mee="≱",hee="≧̸",gee="≫̸",bee="≹",yee="⩾̸",Eee="≵",vee="≎̸",See="≏̸",Tee="∉",xee="⋵̸",Cee="⋹̸",wee="∉",Ree="⋷",Aee="⋶",Mee="⧏̸",Nee="⋪",Oee="⋬",Iee="≮",kee="≰",Dee="≸",Lee="≪̸",Pee="⩽̸",Fee="≴",Uee="⪢̸",Bee="⪡̸",Gee="∌",Vee="∌",zee="⋾",Hee="⋽",qee="⊀",Yee="⪯̸",$ee="⋠",Wee="∌",Kee="⧐̸",jee="⋫",Qee="⋭",Xee="⊏̸",Zee="⋢",Jee="⊐̸",ete="⋣",tte="⊂⃒",nte="⊈",ite="⊁",ste="⪰̸",rte="⋡",ote="≿̸",ate="⊃⃒",lte="⊉",cte="≁",dte="≄",ute="≇",pte="≉",fte="∤",_te="∦",mte="∦",hte="⫽⃥",gte="∂̸",bte="⨔",yte="⊀",Ete="⋠",vte="⊀",Ste="⪯̸",Tte="⪯̸",xte="⤳̸",Cte="↛",wte="⇏",Rte="↝̸",Ate="↛",Mte="⇏",Nte="⋫",Ote="⋭",Ite="⊁",kte="⋡",Dte="⪰̸",Lte="𝒩",Pte="𝓃",Fte="∤",Ute="∦",Bte="≁",Gte="≄",Vte="≄",zte="∤",Hte="∦",qte="⋢",Yte="⋣",$te="⊄",Wte="⫅̸",Kte="⊈",jte="⊂⃒",Qte="⊈",Xte="⫅̸",Zte="⊁",Jte="⪰̸",ene="⊅",tne="⫆̸",nne="⊉",ine="⊃⃒",sne="⊉",rne="⫆̸",one="≹",ane="Ñ",lne="ñ",cne="≸",dne="⋪",une="⋬",pne="⋫",fne="⋭",_ne="Ν",mne="ν",hne="#",gne="№",bne=" ",yne="≍⃒",Ene="⊬",vne="⊭",Sne="⊮",Tne="⊯",xne="≥⃒",Cne=">⃒",wne="⤄",Rne="⧞",Ane="⤂",Mne="≤⃒",Nne="<⃒",One="⊴⃒",Ine="⤃",kne="⊵⃒",Dne="∼⃒",Lne="⤣",Pne="↖",Fne="⇖",Une="↖",Bne="⤧",Gne="Ó",Vne="ó",zne="⊛",Hne="Ô",qne="ô",Yne="⊚",$ne="О",Wne="о",Kne="⊝",jne="Ő",Qne="ő",Xne="⨸",Zne="⊙",Jne="⦼",eie="Œ",tie="œ",nie="⦿",iie="𝔒",sie="𝔬",rie="˛",oie="Ò",aie="ò",lie="⧁",cie="⦵",die="Ω",uie="∮",pie="↺",fie="⦾",_ie="⦻",mie="‾",hie="⧀",gie="Ō",bie="ō",yie="Ω",Eie="ω",vie="Ο",Sie="ο",Tie="⦶",xie="⊖",Cie="𝕆",wie="𝕠",Rie="⦷",Aie="“",Mie="‘",Nie="⦹",Oie="⊕",Iie="↻",kie="⩔",Die="∨",Lie="⩝",Pie="ℴ",Fie="ℴ",Uie="ª",Bie="º",Gie="⊶",Vie="⩖",zie="⩗",Hie="⩛",qie="Ⓢ",Yie="𝒪",$ie="ℴ",Wie="Ø",Kie="ø",jie="⊘",Qie="Õ",Xie="õ",Zie="⨶",Jie="⨷",ese="⊗",tse="Ö",nse="ö",ise="⌽",sse="‾",rse="⏞",ose="⎴",ase="⏜",lse="¶",cse="∥",dse="∥",use="⫳",pse="⫽",fse="∂",_se="∂",mse="П",hse="п",gse="%",bse=".",yse="‰",Ese="⊥",vse="‱",Sse="𝔓",Tse="𝔭",xse="Φ",Cse="φ",wse="ϕ",Rse="ℳ",Ase="☎",Mse="Π",Nse="π",Ose="⋔",Ise="ϖ",kse="ℏ",Dse="ℎ",Lse="ℏ",Pse="⨣",Fse="⊞",Use="⨢",Bse="+",Gse="∔",Vse="⨥",zse="⩲",Hse="±",qse="±",Yse="⨦",$se="⨧",Wse="±",Kse="ℌ",jse="⨕",Qse="𝕡",Xse="ℙ",Zse="£",Jse="⪷",ere="⪻",tre="≺",nre="≼",ire="⪷",sre="≺",rre="≼",ore="≺",are="⪯",lre="≼",cre="≾",dre="⪯",ure="⪹",pre="⪵",fre="⋨",_re="⪯",mre="⪳",hre="≾",gre="′",bre="″",yre="ℙ",Ere="⪹",vre="⪵",Sre="⋨",Tre="∏",xre="∏",Cre="⌮",wre="⌒",Rre="⌓",Are="∝",Mre="∝",Nre="∷",Ore="∝",Ire="≾",kre="⊰",Dre="𝒫",Lre="𝓅",Pre="Ψ",Fre="ψ",Ure=" ",Bre="𝔔",Gre="𝔮",Vre="⨌",zre="𝕢",Hre="ℚ",qre="⁗",Yre="𝒬",$re="𝓆",Wre="ℍ",Kre="⨖",jre="?",Qre="≟",Xre='"',Zre='"',Jre="⇛",eoe="∽̱",toe="Ŕ",noe="ŕ",ioe="√",soe="⦳",roe="⟩",ooe="⟫",aoe="⦒",loe="⦥",coe="⟩",doe="»",uoe="⥵",poe="⇥",foe="⤠",_oe="⤳",moe="→",hoe="↠",goe="⇒",boe="⤞",yoe="↪",Eoe="↬",voe="⥅",Soe="⥴",Toe="⤖",xoe="↣",Coe="↝",woe="⤚",Roe="⤜",Aoe="∶",Moe="ℚ",Noe="⤍",Ooe="⤏",Ioe="⤐",koe="❳",Doe="}",Loe="]",Poe="⦌",Foe="⦎",Uoe="⦐",Boe="Ř",Goe="ř",Voe="Ŗ",zoe="ŗ",Hoe="⌉",qoe="}",Yoe="Р",$oe="р",Woe="⤷",Koe="⥩",joe="”",Qoe="”",Xoe="↳",Zoe="ℜ",Joe="ℛ",eae="ℜ",tae="ℝ",nae="ℜ",iae="▭",sae="®",rae="®",oae="∋",aae="⇋",lae="⥯",cae="⥽",dae="⌋",uae="𝔯",pae="ℜ",fae="⥤",_ae="⇁",mae="⇀",hae="⥬",gae="Ρ",bae="ρ",yae="ϱ",Eae="⟩",vae="⇥",Sae="→",Tae="→",xae="⇒",Cae="⇄",wae="↣",Rae="⌉",Aae="⟧",Mae="⥝",Nae="⥕",Oae="⇂",Iae="⌋",kae="⇁",Dae="⇀",Lae="⇄",Pae="⇌",Fae="⇉",Uae="↝",Bae="↦",Gae="⊢",Vae="⥛",zae="⋌",Hae="⧐",qae="⊳",Yae="⊵",$ae="⥏",Wae="⥜",Kae="⥔",jae="↾",Qae="⥓",Xae="⇀",Zae="˚",Jae="≓",ele="⇄",tle="⇌",nle="‏",ile="⎱",sle="⎱",rle="⫮",ole="⟭",ale="⇾",lle="⟧",cle="⦆",dle="𝕣",ule="ℝ",ple="⨮",fle="⨵",_le="⥰",mle=")",hle="⦔",gle="⨒",ble="⇉",yle="⇛",Ele="›",vle="𝓇",Sle="ℛ",Tle="↱",xle="↱",Cle="]",wle="’",Rle="’",Ale="⋌",Mle="⋊",Nle="▹",Ole="⊵",Ile="▸",kle="⧎",Dle="⧴",Lle="⥨",Ple="℞",Fle="Ś",Ule="ś",Ble="‚",Gle="⪸",Vle="Š",zle="š",Hle="⪼",qle="≻",Yle="≽",$le="⪰",Wle="⪴",Kle="Ş",jle="ş",Qle="Ŝ",Xle="ŝ",Zle="⪺",Jle="⪶",ece="⋩",tce="⨓",nce="≿",ice="С",sce="с",rce="⊡",oce="⋅",ace="⩦",lce="⤥",cce="↘",dce="⇘",uce="↘",pce="§",fce=";",_ce="⤩",mce="∖",hce="∖",gce="✶",bce="𝔖",yce="𝔰",Ece="⌢",vce="♯",Sce="Щ",Tce="щ",xce="Ш",Cce="ш",wce="↓",Rce="←",Ace="∣",Mce="∥",Nce="→",Oce="↑",Ice="­",kce="Σ",Dce="σ",Lce="ς",Pce="ς",Fce="∼",Uce="⩪",Bce="≃",Gce="≃",Vce="⪞",zce="⪠",Hce="⪝",qce="⪟",Yce="≆",$ce="⨤",Wce="⥲",Kce="←",jce="∘",Qce="∖",Xce="⨳",Zce="⧤",Jce="∣",ede="⌣",tde="⪪",nde="⪬",ide="⪬︀",sde="Ь",rde="ь",ode="⌿",ade="⧄",lde="/",cde="𝕊",dde="𝕤",ude="♠",pde="♠",fde="∥",_de="⊓",mde="⊓︀",hde="⊔",gde="⊔︀",bde="√",yde="⊏",Ede="⊑",vde="⊏",Sde="⊑",Tde="⊐",xde="⊒",Cde="⊐",wde="⊒",Rde="□",Ade="□",Mde="⊓",Nde="⊏",Ode="⊑",Ide="⊐",kde="⊒",Dde="⊔",Lde="▪",Pde="□",Fde="▪",Ude="→",Bde="𝒮",Gde="𝓈",Vde="∖",zde="⌣",Hde="⋆",qde="⋆",Yde="☆",$de="★",Wde="ϵ",Kde="ϕ",jde="¯",Qde="⊂",Xde="⋐",Zde="⪽",Jde="⫅",eue="⊆",tue="⫃",nue="⫁",iue="⫋",sue="⊊",rue="⪿",oue="⥹",aue="⊂",lue="⋐",cue="⊆",due="⫅",uue="⊆",pue="⊊",fue="⫋",_ue="⫇",mue="⫕",hue="⫓",gue="⪸",bue="≻",yue="≽",Eue="≻",vue="⪰",Sue="≽",Tue="≿",xue="⪰",Cue="⪺",wue="⪶",Rue="⋩",Aue="≿",Mue="∋",Nue="∑",Oue="∑",Iue="♪",kue="¹",Due="²",Lue="³",Pue="⊃",Fue="⋑",Uue="⪾",Bue="⫘",Gue="⫆",Vue="⊇",zue="⫄",Hue="⊃",que="⊇",Yue="⟉",$ue="⫗",Wue="⥻",Kue="⫂",jue="⫌",Que="⊋",Xue="⫀",Zue="⊃",Jue="⋑",epe="⊇",tpe="⫆",npe="⊋",ipe="⫌",spe="⫈",rpe="⫔",ope="⫖",ape="⤦",lpe="↙",cpe="⇙",dpe="↙",upe="⤪",ppe="ß",fpe="	",_pe="⌖",mpe="Τ",hpe="τ",gpe="⎴",bpe="Ť",ype="ť",Epe="Ţ",vpe="ţ",Spe="Т",Tpe="т",xpe="⃛",Cpe="⌕",wpe="𝔗",Rpe="𝔱",Ape="∴",Mpe="∴",Npe="∴",Ope="Θ",Ipe="θ",kpe="ϑ",Dpe="ϑ",Lpe="≈",Ppe="∼",Fpe="  ",Upe=" ",Bpe=" ",Gpe="≈",Vpe="∼",zpe="Þ",Hpe="þ",qpe="˜",Ype="∼",$pe="≃",Wpe="≅",Kpe="≈",jpe="⨱",Qpe="⊠",Xpe="×",Zpe="⨰",Jpe="∭",efe="⤨",tfe="⌶",nfe="⫱",ife="⊤",sfe="𝕋",rfe="𝕥",ofe="⫚",afe="⤩",lfe="‴",cfe="™",dfe="™",ufe="▵",pfe="▿",ffe="◃",_fe="⊴",mfe="≜",hfe="▹",gfe="⊵",bfe="◬",yfe="≜",Efe="⨺",vfe="⃛",Sfe="⨹",Tfe="⧍",xfe="⨻",Cfe="⏢",wfe="𝒯",Rfe="𝓉",Afe="Ц",Mfe="ц",Nfe="Ћ",Ofe="ћ",Ife="Ŧ",kfe="ŧ",Dfe="≬",Lfe="↞",Pfe="↠",Ffe="Ú",Ufe="ú",Bfe="↑",Gfe="↟",Vfe="⇑",zfe="⥉",Hfe="Ў",qfe="ў",Yfe="Ŭ",$fe="ŭ",Wfe="Û",Kfe="û",jfe="У",Qfe="у",Xfe="⇅",Zfe="Ű",Jfe="ű",e_e="⥮",t_e="⥾",n_e="𝔘",i_e="𝔲",s_e="Ù",r_e="ù",o_e="⥣",a_e="↿",l_e="↾",c_e="▀",d_e="⌜",u_e="⌜",p_e="⌏",f_e="◸",__e="Ū",m_e="ū",h_e="¨",g_e="_",b_e="⏟",y_e="⎵",E_e="⏝",v_e="⋃",S_e="⊎",T_e="Ų",x_e="ų",C_e="𝕌",w_e="𝕦",R_e="⤒",A_e="↑",M_e="↑",N_e="⇑",O_e="⇅",I_e="↕",k_e="↕",D_e="⇕",L_e="⥮",P_e="↿",F_e="↾",U_e="⊎",B_e="↖",G_e="↗",V_e="υ",z_e="ϒ",H_e="ϒ",q_e="Υ",Y_e="υ",$_e="↥",W_e="⊥",K_e="⇈",j_e="⌝",Q_e="⌝",X_e="⌎",Z_e="Ů",J_e="ů",eme="◹",tme="𝒰",nme="𝓊",ime="⋰",sme="Ũ",rme="ũ",ome="▵",ame="▴",lme="⇈",cme="Ü",dme="ü",ume="⦧",pme="⦜",fme="ϵ",_me="ϰ",mme="∅",hme="ϕ",gme="ϖ",bme="∝",yme="↕",Eme="⇕",vme="ϱ",Sme="ς",Tme="⊊︀",xme="⫋︀",Cme="⊋︀",wme="⫌︀",Rme="ϑ",Ame="⊲",Mme="⊳",Nme="⫨",Ome="⫫",Ime="⫩",kme="В",Dme="в",Lme="⊢",Pme="⊨",Fme="⊩",Ume="⊫",Bme="⫦",Gme="⊻",Vme="∨",zme="⋁",Hme="≚",qme="⋮",Yme="|",$me="‖",Wme="|",Kme="‖",jme="∣",Qme="|",Xme="❘",Zme="≀",Jme=" ",ehe="𝔙",the="𝔳",nhe="⊲",ihe="⊂⃒",she="⊃⃒",rhe="𝕍",ohe="𝕧",ahe="∝",lhe="⊳",che="𝒱",dhe="𝓋",uhe="⫋︀",phe="⊊︀",fhe="⫌︀",_he="⊋︀",mhe="⊪",hhe="⦚",ghe="Ŵ",bhe="ŵ",yhe="⩟",Ehe="∧",vhe="⋀",She="≙",The="℘",xhe="𝔚",Che="𝔴",whe="𝕎",Rhe="𝕨",Ahe="℘",Mhe="≀",Nhe="≀",Ohe="𝒲",Ihe="𝓌",khe="⋂",Dhe="◯",Lhe="⋃",Phe="▽",Fhe="𝔛",Uhe="𝔵",Bhe="⟷",Ghe="⟺",Vhe="Ξ",zhe="ξ",Hhe="⟵",qhe="⟸",Yhe="⟼",$he="⋻",Whe="⨀",Khe="𝕏",jhe="𝕩",Qhe="⨁",Xhe="⨂",Zhe="⟶",Jhe="⟹",ege="𝒳",tge="𝓍",nge="⨆",ige="⨄",sge="△",rge="⋁",oge="⋀",age="Ý",lge="ý",cge="Я",dge="я",uge="Ŷ",pge="ŷ",fge="Ы",_ge="ы",mge="¥",hge="𝔜",gge="𝔶",bge="Ї",yge="ї",Ege="𝕐",vge="𝕪",Sge="𝒴",Tge="𝓎",xge="Ю",Cge="ю",wge="ÿ",Rge="Ÿ",Age="Ź",Mge="ź",Nge="Ž",Oge="ž",Ige="З",kge="з",Dge="Ż",Lge="ż",Pge="ℨ",Fge="​",Uge="Ζ",Bge="ζ",Gge="𝔷",Vge="ℨ",zge="Ж",Hge="ж",qge="⇝",Yge="𝕫",$ge="ℤ",Wge="𝒵",Kge="𝓏",jge="‍",Qge="‌",Xge={Aacute:D5,aacute:L5,Abreve:P5,abreve:F5,ac:U5,acd:B5,acE:G5,Acirc:V5,acirc:z5,acute:H5,Acy:q5,acy:Y5,AElig:$5,aelig:W5,af:K5,Afr:j5,afr:Q5,Agrave:X5,agrave:Z5,alefsym:J5,aleph:eF,Alpha:tF,alpha:nF,Amacr:iF,amacr:sF,amalg:rF,amp:oF,AMP:aF,andand:lF,And:cF,and:dF,andd:uF,andslope:pF,andv:fF,ang:_F,ange:mF,angle:hF,angmsdaa:gF,angmsdab:bF,angmsdac:yF,angmsdad:EF,angmsdae:vF,angmsdaf:SF,angmsdag:TF,angmsdah:xF,angmsd:CF,angrt:wF,angrtvb:RF,angrtvbd:AF,angsph:MF,angst:NF,angzarr:OF,Aogon:IF,aogon:kF,Aopf:DF,aopf:LF,apacir:PF,ap:FF,apE:UF,ape:BF,apid:GF,apos:VF,ApplyFunction:zF,approx:HF,approxeq:qF,Aring:YF,aring:$F,Ascr:WF,ascr:KF,Assign:jF,ast:QF,asymp:XF,asympeq:ZF,Atilde:JF,atilde:eU,Auml:tU,auml:nU,awconint:iU,awint:sU,backcong:rU,backepsilon:oU,backprime:aU,backsim:lU,backsimeq:cU,Backslash:dU,Barv:uU,barvee:pU,barwed:fU,Barwed:_U,barwedge:mU,bbrk:hU,bbrktbrk:gU,bcong:bU,Bcy:yU,bcy:EU,bdquo:vU,becaus:SU,because:TU,Because:xU,bemptyv:CU,bepsi:wU,bernou:RU,Bernoullis:AU,Beta:MU,beta:NU,beth:OU,between:IU,Bfr:kU,bfr:DU,bigcap:LU,bigcirc:PU,bigcup:FU,bigodot:UU,bigoplus:BU,bigotimes:GU,bigsqcup:VU,bigstar:zU,bigtriangledown:HU,bigtriangleup:qU,biguplus:YU,bigvee:$U,bigwedge:WU,bkarow:KU,blacklozenge:jU,blacksquare:QU,blacktriangle:XU,blacktriangledown:ZU,blacktriangleleft:JU,blacktriangleright:eB,blank:tB,blk12:nB,blk14:iB,blk34:sB,block:rB,bne:oB,bnequiv:aB,bNot:lB,bnot:cB,Bopf:dB,bopf:uB,bot:pB,bottom:fB,bowtie:_B,boxbox:mB,boxdl:hB,boxdL:gB,boxDl:bB,boxDL:yB,boxdr:EB,boxdR:vB,boxDr:SB,boxDR:TB,boxh:xB,boxH:CB,boxhd:wB,boxHd:RB,boxhD:AB,boxHD:MB,boxhu:NB,boxHu:OB,boxhU:IB,boxHU:kB,boxminus:DB,boxplus:LB,boxtimes:PB,boxul:FB,boxuL:UB,boxUl:BB,boxUL:GB,boxur:VB,boxuR:zB,boxUr:HB,boxUR:qB,boxv:YB,boxV:$B,boxvh:WB,boxvH:KB,boxVh:jB,boxVH:QB,boxvl:XB,boxvL:ZB,boxVl:JB,boxVL:e6,boxvr:t6,boxvR:n6,boxVr:i6,boxVR:s6,bprime:r6,breve:o6,Breve:a6,brvbar:l6,bscr:c6,Bscr:d6,bsemi:u6,bsim:p6,bsime:f6,bsolb:_6,bsol:m6,bsolhsub:h6,bull:g6,bullet:b6,bump:y6,bumpE:E6,bumpe:v6,Bumpeq:S6,bumpeq:T6,Cacute:x6,cacute:C6,capand:w6,capbrcup:R6,capcap:A6,cap:M6,Cap:N6,capcup:O6,capdot:I6,CapitalDifferentialD:k6,caps:D6,caret:L6,caron:P6,Cayleys:F6,ccaps:U6,Ccaron:B6,ccaron:G6,Ccedil:V6,ccedil:z6,Ccirc:H6,ccirc:q6,Cconint:Y6,ccups:$6,ccupssm:W6,Cdot:K6,cdot:j6,cedil:Q6,Cedilla:X6,cemptyv:Z6,cent:J6,centerdot:e9,CenterDot:t9,cfr:n9,Cfr:i9,CHcy:s9,chcy:r9,check:o9,checkmark:a9,Chi:l9,chi:c9,circ:d9,circeq:u9,circlearrowleft:p9,circlearrowright:f9,circledast:_9,circledcirc:m9,circleddash:h9,CircleDot:g9,circledR:b9,circledS:y9,CircleMinus:E9,CirclePlus:v9,CircleTimes:S9,cir:T9,cirE:x9,cire:C9,cirfnint:w9,cirmid:R9,cirscir:A9,ClockwiseContourIntegral:M9,CloseCurlyDoubleQuote:N9,CloseCurlyQuote:O9,clubs:I9,clubsuit:k9,colon:D9,Colon:L9,Colone:P9,colone:F9,coloneq:U9,comma:B9,commat:G9,comp:V9,compfn:z9,complement:H9,complexes:q9,cong:Y9,congdot:$9,Congruent:W9,conint:K9,Conint:j9,ContourIntegral:Q9,copf:X9,Copf:Z9,coprod:J9,Coproduct:e8,copy:t8,COPY:n8,copysr:i8,CounterClockwiseContourIntegral:s8,crarr:r8,cross:o8,Cross:a8,Cscr:l8,cscr:c8,csub:d8,csube:u8,csup:p8,csupe:f8,ctdot:_8,cudarrl:m8,cudarrr:h8,cuepr:g8,cuesc:b8,cularr:y8,cularrp:E8,cupbrcap:v8,cupcap:S8,CupCap:T8,cup:x8,Cup:C8,cupcup:w8,cupdot:R8,cupor:A8,cups:M8,curarr:N8,curarrm:O8,curlyeqprec:I8,curlyeqsucc:k8,curlyvee:D8,curlywedge:L8,curren:P8,curvearrowleft:F8,curvearrowright:U8,cuvee:B8,cuwed:G8,cwconint:V8,cwint:z8,cylcty:H8,dagger:q8,Dagger:Y8,daleth:$8,darr:W8,Darr:K8,dArr:j8,dash:Q8,Dashv:X8,dashv:Z8,dbkarow:J8,dblac:eG,Dcaron:tG,dcaron:nG,Dcy:iG,dcy:sG,ddagger:rG,ddarr:oG,DD:aG,dd:lG,DDotrahd:cG,ddotseq:dG,deg:uG,Del:pG,Delta:fG,delta:_G,demptyv:mG,dfisht:hG,Dfr:gG,dfr:bG,dHar:yG,dharl:EG,dharr:vG,DiacriticalAcute:SG,DiacriticalDot:TG,DiacriticalDoubleAcute:xG,DiacriticalGrave:CG,DiacriticalTilde:wG,diam:RG,diamond:AG,Diamond:MG,diamondsuit:NG,diams:OG,die:IG,DifferentialD:kG,digamma:DG,disin:LG,div:PG,divide:FG,divideontimes:UG,divonx:BG,DJcy:GG,djcy:VG,dlcorn:zG,dlcrop:HG,dollar:qG,Dopf:YG,dopf:$G,Dot:WG,dot:KG,DotDot:jG,doteq:QG,doteqdot:XG,DotEqual:ZG,dotminus:JG,dotplus:e7,dotsquare:t7,doublebarwedge:n7,DoubleContourIntegral:i7,DoubleDot:s7,DoubleDownArrow:r7,DoubleLeftArrow:o7,DoubleLeftRightArrow:a7,DoubleLeftTee:l7,DoubleLongLeftArrow:c7,DoubleLongLeftRightArrow:d7,DoubleLongRightArrow:u7,DoubleRightArrow:p7,DoubleRightTee:f7,DoubleUpArrow:_7,DoubleUpDownArrow:m7,DoubleVerticalBar:h7,DownArrowBar:g7,downarrow:b7,DownArrow:y7,Downarrow:E7,DownArrowUpArrow:v7,DownBreve:S7,downdownarrows:T7,downharpoonleft:x7,downharpoonright:C7,DownLeftRightVector:w7,DownLeftTeeVector:R7,DownLeftVectorBar:A7,DownLeftVector:M7,DownRightTeeVector:N7,DownRightVectorBar:O7,DownRightVector:I7,DownTeeArrow:k7,DownTee:D7,drbkarow:L7,drcorn:P7,drcrop:F7,Dscr:U7,dscr:B7,DScy:G7,dscy:V7,dsol:z7,Dstrok:H7,dstrok:q7,dtdot:Y7,dtri:$7,dtrif:W7,duarr:K7,duhar:j7,dwangle:Q7,DZcy:X7,dzcy:Z7,dzigrarr:J7,Eacute:eV,eacute:tV,easter:nV,Ecaron:iV,ecaron:sV,Ecirc:rV,ecirc:oV,ecir:aV,ecolon:lV,Ecy:cV,ecy:dV,eDDot:uV,Edot:pV,edot:fV,eDot:_V,ee:mV,efDot:hV,Efr:gV,efr:bV,eg:yV,Egrave:EV,egrave:vV,egs:SV,egsdot:TV,el:xV,Element:CV,elinters:wV,ell:RV,els:AV,elsdot:MV,Emacr:NV,emacr:OV,empty:IV,emptyset:kV,EmptySmallSquare:DV,emptyv:LV,EmptyVerySmallSquare:PV,emsp13:FV,emsp14:UV,emsp:BV,ENG:GV,eng:VV,ensp:zV,Eogon:HV,eogon:qV,Eopf:YV,eopf:$V,epar:WV,eparsl:KV,eplus:jV,epsi:QV,Epsilon:XV,epsilon:ZV,epsiv:JV,eqcirc:ez,eqcolon:tz,eqsim:nz,eqslantgtr:iz,eqslantless:sz,Equal:rz,equals:oz,EqualTilde:az,equest:lz,Equilibrium:cz,equiv:dz,equivDD:uz,eqvparsl:pz,erarr:fz,erDot:_z,escr:mz,Escr:hz,esdot:gz,Esim:bz,esim:yz,Eta:Ez,eta:vz,ETH:Sz,eth:Tz,Euml:xz,euml:Cz,euro:wz,excl:Rz,exist:Az,Exists:Mz,expectation:Nz,exponentiale:Oz,ExponentialE:Iz,fallingdotseq:kz,Fcy:Dz,fcy:Lz,female:Pz,ffilig:Fz,fflig:Uz,ffllig:Bz,Ffr:Gz,ffr:Vz,filig:zz,FilledSmallSquare:Hz,FilledVerySmallSquare:qz,fjlig:Yz,flat:$z,fllig:Wz,fltns:Kz,fnof:jz,Fopf:Qz,fopf:Xz,forall:Zz,ForAll:Jz,fork:eH,forkv:tH,Fouriertrf:nH,fpartint:iH,frac12:sH,frac13:rH,frac14:oH,frac15:aH,frac16:lH,frac18:cH,frac23:dH,frac25:uH,frac34:pH,frac35:fH,frac38:_H,frac45:mH,frac56:hH,frac58:gH,frac78:bH,frasl:yH,frown:EH,fscr:vH,Fscr:SH,gacute:TH,Gamma:xH,gamma:CH,Gammad:wH,gammad:RH,gap:AH,Gbreve:MH,gbreve:NH,Gcedil:OH,Gcirc:IH,gcirc:kH,Gcy:DH,gcy:LH,Gdot:PH,gdot:FH,ge:UH,gE:BH,gEl:GH,gel:VH,geq:zH,geqq:HH,geqslant:qH,gescc:YH,ges:$H,gesdot:WH,gesdoto:KH,gesdotol:jH,gesl:QH,gesles:XH,Gfr:ZH,gfr:JH,gg:eq,Gg:tq,ggg:nq,gimel:iq,GJcy:sq,gjcy:rq,gla:oq,gl:aq,glE:lq,glj:cq,gnap:dq,gnapprox:uq,gne:pq,gnE:fq,gneq:_q,gneqq:mq,gnsim:hq,Gopf:gq,gopf:bq,grave:yq,GreaterEqual:Eq,GreaterEqualLess:vq,GreaterFullEqual:Sq,GreaterGreater:Tq,GreaterLess:xq,GreaterSlantEqual:Cq,GreaterTilde:wq,Gscr:Rq,gscr:Aq,gsim:Mq,gsime:Nq,gsiml:Oq,gtcc:Iq,gtcir:kq,gt:Dq,GT:Lq,Gt:Pq,gtdot:Fq,gtlPar:Uq,gtquest:Bq,gtrapprox:Gq,gtrarr:Vq,gtrdot:zq,gtreqless:Hq,gtreqqless:qq,gtrless:Yq,gtrsim:$q,gvertneqq:Wq,gvnE:Kq,Hacek:jq,hairsp:Qq,half:Xq,hamilt:Zq,HARDcy:Jq,hardcy:eY,harrcir:tY,harr:nY,hArr:iY,harrw:sY,Hat:rY,hbar:oY,Hcirc:aY,hcirc:lY,hearts:cY,heartsuit:dY,hellip:uY,hercon:pY,hfr:fY,Hfr:_Y,HilbertSpace:mY,hksearow:hY,hkswarow:gY,hoarr:bY,homtht:yY,hookleftarrow:EY,hookrightarrow:vY,hopf:SY,Hopf:TY,horbar:xY,HorizontalLine:CY,hscr:wY,Hscr:RY,hslash:AY,Hstrok:MY,hstrok:NY,HumpDownHump:OY,HumpEqual:IY,hybull:kY,hyphen:DY,Iacute:LY,iacute:PY,ic:FY,Icirc:UY,icirc:BY,Icy:GY,icy:VY,Idot:zY,IEcy:HY,iecy:qY,iexcl:YY,iff:$Y,ifr:WY,Ifr:KY,Igrave:jY,igrave:QY,ii:XY,iiiint:ZY,iiint:JY,iinfin:e$,iiota:t$,IJlig:n$,ijlig:i$,Imacr:s$,imacr:r$,image:o$,ImaginaryI:a$,imagline:l$,imagpart:c$,imath:d$,Im:u$,imof:p$,imped:f$,Implies:_$,incare:m$,in:"∈",infin:h$,infintie:g$,inodot:b$,intcal:y$,int:E$,Int:v$,integers:S$,Integral:T$,intercal:x$,Intersection:C$,intlarhk:w$,intprod:R$,InvisibleComma:A$,InvisibleTimes:M$,IOcy:N$,iocy:O$,Iogon:I$,iogon:k$,Iopf:D$,iopf:L$,Iota:P$,iota:F$,iprod:U$,iquest:B$,iscr:G$,Iscr:V$,isin:z$,isindot:H$,isinE:q$,isins:Y$,isinsv:$$,isinv:W$,it:K$,Itilde:j$,itilde:Q$,Iukcy:X$,iukcy:Z$,Iuml:J$,iuml:eW,Jcirc:tW,jcirc:nW,Jcy:iW,jcy:sW,Jfr:rW,jfr:oW,jmath:aW,Jopf:lW,jopf:cW,Jscr:dW,jscr:uW,Jsercy:pW,jsercy:fW,Jukcy:_W,jukcy:mW,Kappa:hW,kappa:gW,kappav:bW,Kcedil:yW,kcedil:EW,Kcy:vW,kcy:SW,Kfr:TW,kfr:xW,kgreen:CW,KHcy:wW,khcy:RW,KJcy:AW,kjcy:MW,Kopf:NW,kopf:OW,Kscr:IW,kscr:kW,lAarr:DW,Lacute:LW,lacute:PW,laemptyv:FW,lagran:UW,Lambda:BW,lambda:GW,lang:VW,Lang:zW,langd:HW,langle:qW,lap:YW,Laplacetrf:$W,laquo:WW,larrb:KW,larrbfs:jW,larr:QW,Larr:XW,lArr:ZW,larrfs:JW,larrhk:eK,larrlp:tK,larrpl:nK,larrsim:iK,larrtl:sK,latail:rK,lAtail:oK,lat:aK,late:lK,lates:cK,lbarr:dK,lBarr:uK,lbbrk:pK,lbrace:fK,lbrack:_K,lbrke:mK,lbrksld:hK,lbrkslu:gK,Lcaron:bK,lcaron:yK,Lcedil:EK,lcedil:vK,lceil:SK,lcub:TK,Lcy:xK,lcy:CK,ldca:wK,ldquo:RK,ldquor:AK,ldrdhar:MK,ldrushar:NK,ldsh:OK,le:IK,lE:kK,LeftAngleBracket:DK,LeftArrowBar:LK,leftarrow:PK,LeftArrow:FK,Leftarrow:UK,LeftArrowRightArrow:BK,leftarrowtail:GK,LeftCeiling:VK,LeftDoubleBracket:zK,LeftDownTeeVector:HK,LeftDownVectorBar:qK,LeftDownVector:YK,LeftFloor:$K,leftharpoondown:WK,leftharpoonup:KK,leftleftarrows:jK,leftrightarrow:QK,LeftRightArrow:XK,Leftrightarrow:ZK,leftrightarrows:JK,leftrightharpoons:ej,leftrightsquigarrow:tj,LeftRightVector:nj,LeftTeeArrow:ij,LeftTee:sj,LeftTeeVector:rj,leftthreetimes:oj,LeftTriangleBar:aj,LeftTriangle:lj,LeftTriangleEqual:cj,LeftUpDownVector:dj,LeftUpTeeVector:uj,LeftUpVectorBar:pj,LeftUpVector:fj,LeftVectorBar:_j,LeftVector:mj,lEg:hj,leg:gj,leq:bj,leqq:yj,leqslant:Ej,lescc:vj,les:Sj,lesdot:Tj,lesdoto:xj,lesdotor:Cj,lesg:wj,lesges:Rj,lessapprox:Aj,lessdot:Mj,lesseqgtr:Nj,lesseqqgtr:Oj,LessEqualGreater:Ij,LessFullEqual:kj,LessGreater:Dj,lessgtr:Lj,LessLess:Pj,lesssim:Fj,LessSlantEqual:Uj,LessTilde:Bj,lfisht:Gj,lfloor:Vj,Lfr:zj,lfr:Hj,lg:qj,lgE:Yj,lHar:$j,lhard:Wj,lharu:Kj,lharul:jj,lhblk:Qj,LJcy:Xj,ljcy:Zj,llarr:Jj,ll:eQ,Ll:tQ,llcorner:nQ,Lleftarrow:iQ,llhard:sQ,lltri:rQ,Lmidot:oQ,lmidot:aQ,lmoustache:lQ,lmoust:cQ,lnap:dQ,lnapprox:uQ,lne:pQ,lnE:fQ,lneq:_Q,lneqq:mQ,lnsim:hQ,loang:gQ,loarr:bQ,lobrk:yQ,longleftarrow:EQ,LongLeftArrow:vQ,Longleftarrow:SQ,longleftrightarrow:TQ,LongLeftRightArrow:xQ,Longleftrightarrow:CQ,longmapsto:wQ,longrightarrow:RQ,LongRightArrow:AQ,Longrightarrow:MQ,looparrowleft:NQ,looparrowright:OQ,lopar:IQ,Lopf:kQ,lopf:DQ,loplus:LQ,lotimes:PQ,lowast:FQ,lowbar:UQ,LowerLeftArrow:BQ,LowerRightArrow:GQ,loz:VQ,lozenge:zQ,lozf:HQ,lpar:qQ,lparlt:YQ,lrarr:$Q,lrcorner:WQ,lrhar:KQ,lrhard:jQ,lrm:QQ,lrtri:XQ,lsaquo:ZQ,lscr:JQ,Lscr:eX,lsh:tX,Lsh:nX,lsim:iX,lsime:sX,lsimg:rX,lsqb:oX,lsquo:aX,lsquor:lX,Lstrok:cX,lstrok:dX,ltcc:uX,ltcir:pX,lt:fX,LT:_X,Lt:mX,ltdot:hX,lthree:gX,ltimes:bX,ltlarr:yX,ltquest:EX,ltri:vX,ltrie:SX,ltrif:TX,ltrPar:xX,lurdshar:CX,luruhar:wX,lvertneqq:RX,lvnE:AX,macr:MX,male:NX,malt:OX,maltese:IX,Map:"⤅",map:kX,mapsto:DX,mapstodown:LX,mapstoleft:PX,mapstoup:FX,marker:UX,mcomma:BX,Mcy:GX,mcy:VX,mdash:zX,mDDot:HX,measuredangle:qX,MediumSpace:YX,Mellintrf:$X,Mfr:WX,mfr:KX,mho:jX,micro:QX,midast:XX,midcir:ZX,mid:JX,middot:eZ,minusb:tZ,minus:nZ,minusd:iZ,minusdu:sZ,MinusPlus:rZ,mlcp:oZ,mldr:aZ,mnplus:lZ,models:cZ,Mopf:dZ,mopf:uZ,mp:pZ,mscr:fZ,Mscr:_Z,mstpos:mZ,Mu:hZ,mu:gZ,multimap:bZ,mumap:yZ,nabla:EZ,Nacute:vZ,nacute:SZ,nang:TZ,nap:xZ,napE:CZ,napid:wZ,napos:RZ,napprox:AZ,natural:MZ,naturals:NZ,natur:OZ,nbsp:IZ,nbump:kZ,nbumpe:DZ,ncap:LZ,Ncaron:PZ,ncaron:FZ,Ncedil:UZ,ncedil:BZ,ncong:GZ,ncongdot:VZ,ncup:zZ,Ncy:HZ,ncy:qZ,ndash:YZ,nearhk:$Z,nearr:WZ,neArr:KZ,nearrow:jZ,ne:QZ,nedot:XZ,NegativeMediumSpace:ZZ,NegativeThickSpace:JZ,NegativeThinSpace:eJ,NegativeVeryThinSpace:tJ,nequiv:nJ,nesear:iJ,nesim:sJ,NestedGreaterGreater:rJ,NestedLessLess:oJ,NewLine:aJ,nexist:lJ,nexists:cJ,Nfr:dJ,nfr:uJ,ngE:pJ,nge:fJ,ngeq:_J,ngeqq:mJ,ngeqslant:hJ,nges:gJ,nGg:bJ,ngsim:yJ,nGt:EJ,ngt:vJ,ngtr:SJ,nGtv:TJ,nharr:xJ,nhArr:CJ,nhpar:wJ,ni:RJ,nis:AJ,nisd:MJ,niv:NJ,NJcy:OJ,njcy:IJ,nlarr:kJ,nlArr:DJ,nldr:LJ,nlE:PJ,nle:FJ,nleftarrow:UJ,nLeftarrow:BJ,nleftrightarrow:GJ,nLeftrightarrow:VJ,nleq:zJ,nleqq:HJ,nleqslant:qJ,nles:YJ,nless:$J,nLl:WJ,nlsim:KJ,nLt:jJ,nlt:QJ,nltri:XJ,nltrie:ZJ,nLtv:JJ,nmid:eee,NoBreak:tee,NonBreakingSpace:nee,nopf:iee,Nopf:see,Not:ree,not:oee,NotCongruent:aee,NotCupCap:lee,NotDoubleVerticalBar:cee,NotElement:dee,NotEqual:uee,NotEqualTilde:pee,NotExists:fee,NotGreater:_ee,NotGreaterEqual:mee,NotGreaterFullEqual:hee,NotGreaterGreater:gee,NotGreaterLess:bee,NotGreaterSlantEqual:yee,NotGreaterTilde:Eee,NotHumpDownHump:vee,NotHumpEqual:See,notin:Tee,notindot:xee,notinE:Cee,notinva:wee,notinvb:Ree,notinvc:Aee,NotLeftTriangleBar:Mee,NotLeftTriangle:Nee,NotLeftTriangleEqual:Oee,NotLess:Iee,NotLessEqual:kee,NotLessGreater:Dee,NotLessLess:Lee,NotLessSlantEqual:Pee,NotLessTilde:Fee,NotNestedGreaterGreater:Uee,NotNestedLessLess:Bee,notni:Gee,notniva:Vee,notnivb:zee,notnivc:Hee,NotPrecedes:qee,NotPrecedesEqual:Yee,NotPrecedesSlantEqual:$ee,NotReverseElement:Wee,NotRightTriangleBar:Kee,NotRightTriangle:jee,NotRightTriangleEqual:Qee,NotSquareSubset:Xee,NotSquareSubsetEqual:Zee,NotSquareSuperset:Jee,NotSquareSupersetEqual:ete,NotSubset:tte,NotSubsetEqual:nte,NotSucceeds:ite,NotSucceedsEqual:ste,NotSucceedsSlantEqual:rte,NotSucceedsTilde:ote,NotSuperset:ate,NotSupersetEqual:lte,NotTilde:cte,NotTildeEqual:dte,NotTildeFullEqual:ute,NotTildeTilde:pte,NotVerticalBar:fte,nparallel:_te,npar:mte,nparsl:hte,npart:gte,npolint:bte,npr:yte,nprcue:Ete,nprec:vte,npreceq:Ste,npre:Tte,nrarrc:xte,nrarr:Cte,nrArr:wte,nrarrw:Rte,nrightarrow:Ate,nRightarrow:Mte,nrtri:Nte,nrtrie:Ote,nsc:Ite,nsccue:kte,nsce:Dte,Nscr:Lte,nscr:Pte,nshortmid:Fte,nshortparallel:Ute,nsim:Bte,nsime:Gte,nsimeq:Vte,nsmid:zte,nspar:Hte,nsqsube:qte,nsqsupe:Yte,nsub:$te,nsubE:Wte,nsube:Kte,nsubset:jte,nsubseteq:Qte,nsubseteqq:Xte,nsucc:Zte,nsucceq:Jte,nsup:ene,nsupE:tne,nsupe:nne,nsupset:ine,nsupseteq:sne,nsupseteqq:rne,ntgl:one,Ntilde:ane,ntilde:lne,ntlg:cne,ntriangleleft:dne,ntrianglelefteq:une,ntriangleright:pne,ntrianglerighteq:fne,Nu:_ne,nu:mne,num:hne,numero:gne,numsp:bne,nvap:yne,nvdash:Ene,nvDash:vne,nVdash:Sne,nVDash:Tne,nvge:xne,nvgt:Cne,nvHarr:wne,nvinfin:Rne,nvlArr:Ane,nvle:Mne,nvlt:Nne,nvltrie:One,nvrArr:Ine,nvrtrie:kne,nvsim:Dne,nwarhk:Lne,nwarr:Pne,nwArr:Fne,nwarrow:Une,nwnear:Bne,Oacute:Gne,oacute:Vne,oast:zne,Ocirc:Hne,ocirc:qne,ocir:Yne,Ocy:$ne,ocy:Wne,odash:Kne,Odblac:jne,odblac:Qne,odiv:Xne,odot:Zne,odsold:Jne,OElig:eie,oelig:tie,ofcir:nie,Ofr:iie,ofr:sie,ogon:rie,Ograve:oie,ograve:aie,ogt:lie,ohbar:cie,ohm:die,oint:uie,olarr:pie,olcir:fie,olcross:_ie,oline:mie,olt:hie,Omacr:gie,omacr:bie,Omega:yie,omega:Eie,Omicron:vie,omicron:Sie,omid:Tie,ominus:xie,Oopf:Cie,oopf:wie,opar:Rie,OpenCurlyDoubleQuote:Aie,OpenCurlyQuote:Mie,operp:Nie,oplus:Oie,orarr:Iie,Or:kie,or:Die,ord:Lie,order:Pie,orderof:Fie,ordf:Uie,ordm:Bie,origof:Gie,oror:Vie,orslope:zie,orv:Hie,oS:qie,Oscr:Yie,oscr:$ie,Oslash:Wie,oslash:Kie,osol:jie,Otilde:Qie,otilde:Xie,otimesas:Zie,Otimes:Jie,otimes:ese,Ouml:tse,ouml:nse,ovbar:ise,OverBar:sse,OverBrace:rse,OverBracket:ose,OverParenthesis:ase,para:lse,parallel:cse,par:dse,parsim:use,parsl:pse,part:fse,PartialD:_se,Pcy:mse,pcy:hse,percnt:gse,period:bse,permil:yse,perp:Ese,pertenk:vse,Pfr:Sse,pfr:Tse,Phi:xse,phi:Cse,phiv:wse,phmmat:Rse,phone:Ase,Pi:Mse,pi:Nse,pitchfork:Ose,piv:Ise,planck:kse,planckh:Dse,plankv:Lse,plusacir:Pse,plusb:Fse,pluscir:Use,plus:Bse,plusdo:Gse,plusdu:Vse,pluse:zse,PlusMinus:Hse,plusmn:qse,plussim:Yse,plustwo:$se,pm:Wse,Poincareplane:Kse,pointint:jse,popf:Qse,Popf:Xse,pound:Zse,prap:Jse,Pr:ere,pr:tre,prcue:nre,precapprox:ire,prec:sre,preccurlyeq:rre,Precedes:ore,PrecedesEqual:are,PrecedesSlantEqual:lre,PrecedesTilde:cre,preceq:dre,precnapprox:ure,precneqq:pre,precnsim:fre,pre:_re,prE:mre,precsim:hre,prime:gre,Prime:bre,primes:yre,prnap:Ere,prnE:vre,prnsim:Sre,prod:Tre,Product:xre,profalar:Cre,profline:wre,profsurf:Rre,prop:Are,Proportional:Mre,Proportion:Nre,propto:Ore,prsim:Ire,prurel:kre,Pscr:Dre,pscr:Lre,Psi:Pre,psi:Fre,puncsp:Ure,Qfr:Bre,qfr:Gre,qint:Vre,qopf:zre,Qopf:Hre,qprime:qre,Qscr:Yre,qscr:$re,quaternions:Wre,quatint:Kre,quest:jre,questeq:Qre,quot:Xre,QUOT:Zre,rAarr:Jre,race:eoe,Racute:toe,racute:noe,radic:ioe,raemptyv:soe,rang:roe,Rang:ooe,rangd:aoe,range:loe,rangle:coe,raquo:doe,rarrap:uoe,rarrb:poe,rarrbfs:foe,rarrc:_oe,rarr:moe,Rarr:hoe,rArr:goe,rarrfs:boe,rarrhk:yoe,rarrlp:Eoe,rarrpl:voe,rarrsim:Soe,Rarrtl:Toe,rarrtl:xoe,rarrw:Coe,ratail:woe,rAtail:Roe,ratio:Aoe,rationals:Moe,rbarr:Noe,rBarr:Ooe,RBarr:Ioe,rbbrk:koe,rbrace:Doe,rbrack:Loe,rbrke:Poe,rbrksld:Foe,rbrkslu:Uoe,Rcaron:Boe,rcaron:Goe,Rcedil:Voe,rcedil:zoe,rceil:Hoe,rcub:qoe,Rcy:Yoe,rcy:$oe,rdca:Woe,rdldhar:Koe,rdquo:joe,rdquor:Qoe,rdsh:Xoe,real:Zoe,realine:Joe,realpart:eae,reals:tae,Re:nae,rect:iae,reg:sae,REG:rae,ReverseElement:oae,ReverseEquilibrium:aae,ReverseUpEquilibrium:lae,rfisht:cae,rfloor:dae,rfr:uae,Rfr:pae,rHar:fae,rhard:_ae,rharu:mae,rharul:hae,Rho:gae,rho:bae,rhov:yae,RightAngleBracket:Eae,RightArrowBar:vae,rightarrow:Sae,RightArrow:Tae,Rightarrow:xae,RightArrowLeftArrow:Cae,rightarrowtail:wae,RightCeiling:Rae,RightDoubleBracket:Aae,RightDownTeeVector:Mae,RightDownVectorBar:Nae,RightDownVector:Oae,RightFloor:Iae,rightharpoondown:kae,rightharpoonup:Dae,rightleftarrows:Lae,rightleftharpoons:Pae,rightrightarrows:Fae,rightsquigarrow:Uae,RightTeeArrow:Bae,RightTee:Gae,RightTeeVector:Vae,rightthreetimes:zae,RightTriangleBar:Hae,RightTriangle:qae,RightTriangleEqual:Yae,RightUpDownVector:$ae,RightUpTeeVector:Wae,RightUpVectorBar:Kae,RightUpVector:jae,RightVectorBar:Qae,RightVector:Xae,ring:Zae,risingdotseq:Jae,rlarr:ele,rlhar:tle,rlm:nle,rmoustache:ile,rmoust:sle,rnmid:rle,roang:ole,roarr:ale,robrk:lle,ropar:cle,ropf:dle,Ropf:ule,roplus:ple,rotimes:fle,RoundImplies:_le,rpar:mle,rpargt:hle,rppolint:gle,rrarr:ble,Rrightarrow:yle,rsaquo:Ele,rscr:vle,Rscr:Sle,rsh:Tle,Rsh:xle,rsqb:Cle,rsquo:wle,rsquor:Rle,rthree:Ale,rtimes:Mle,rtri:Nle,rtrie:Ole,rtrif:Ile,rtriltri:kle,RuleDelayed:Dle,ruluhar:Lle,rx:Ple,Sacute:Fle,sacute:Ule,sbquo:Ble,scap:Gle,Scaron:Vle,scaron:zle,Sc:Hle,sc:qle,sccue:Yle,sce:$le,scE:Wle,Scedil:Kle,scedil:jle,Scirc:Qle,scirc:Xle,scnap:Zle,scnE:Jle,scnsim:ece,scpolint:tce,scsim:nce,Scy:ice,scy:sce,sdotb:rce,sdot:oce,sdote:ace,searhk:lce,searr:cce,seArr:dce,searrow:uce,sect:pce,semi:fce,seswar:_ce,setminus:mce,setmn:hce,sext:gce,Sfr:bce,sfr:yce,sfrown:Ece,sharp:vce,SHCHcy:Sce,shchcy:Tce,SHcy:xce,shcy:Cce,ShortDownArrow:wce,ShortLeftArrow:Rce,shortmid:Ace,shortparallel:Mce,ShortRightArrow:Nce,ShortUpArrow:Oce,shy:Ice,Sigma:kce,sigma:Dce,sigmaf:Lce,sigmav:Pce,sim:Fce,simdot:Uce,sime:Bce,simeq:Gce,simg:Vce,simgE:zce,siml:Hce,simlE:qce,simne:Yce,simplus:$ce,simrarr:Wce,slarr:Kce,SmallCircle:jce,smallsetminus:Qce,smashp:Xce,smeparsl:Zce,smid:Jce,smile:ede,smt:tde,smte:nde,smtes:ide,SOFTcy:sde,softcy:rde,solbar:ode,solb:ade,sol:lde,Sopf:cde,sopf:dde,spades:ude,spadesuit:pde,spar:fde,sqcap:_de,sqcaps:mde,sqcup:hde,sqcups:gde,Sqrt:bde,sqsub:yde,sqsube:Ede,sqsubset:vde,sqsubseteq:Sde,sqsup:Tde,sqsupe:xde,sqsupset:Cde,sqsupseteq:wde,square:Rde,Square:Ade,SquareIntersection:Mde,SquareSubset:Nde,SquareSubsetEqual:Ode,SquareSuperset:Ide,SquareSupersetEqual:kde,SquareUnion:Dde,squarf:Lde,squ:Pde,squf:Fde,srarr:Ude,Sscr:Bde,sscr:Gde,ssetmn:Vde,ssmile:zde,sstarf:Hde,Star:qde,star:Yde,starf:$de,straightepsilon:Wde,straightphi:Kde,strns:jde,sub:Qde,Sub:Xde,subdot:Zde,subE:Jde,sube:eue,subedot:tue,submult:nue,subnE:iue,subne:sue,subplus:rue,subrarr:oue,subset:aue,Subset:lue,subseteq:cue,subseteqq:due,SubsetEqual:uue,subsetneq:pue,subsetneqq:fue,subsim:_ue,subsub:mue,subsup:hue,succapprox:gue,succ:bue,succcurlyeq:yue,Succeeds:Eue,SucceedsEqual:vue,SucceedsSlantEqual:Sue,SucceedsTilde:Tue,succeq:xue,succnapprox:Cue,succneqq:wue,succnsim:Rue,succsim:Aue,SuchThat:Mue,sum:Nue,Sum:Oue,sung:Iue,sup1:kue,sup2:Due,sup3:Lue,sup:Pue,Sup:Fue,supdot:Uue,supdsub:Bue,supE:Gue,supe:Vue,supedot:zue,Superset:Hue,SupersetEqual:que,suphsol:Yue,suphsub:$ue,suplarr:Wue,supmult:Kue,supnE:jue,supne:Que,supplus:Xue,supset:Zue,Supset:Jue,supseteq:epe,supseteqq:tpe,supsetneq:npe,supsetneqq:ipe,supsim:spe,supsub:rpe,supsup:ope,swarhk:ape,swarr:lpe,swArr:cpe,swarrow:dpe,swnwar:upe,szlig:ppe,Tab:fpe,target:_pe,Tau:mpe,tau:hpe,tbrk:gpe,Tcaron:bpe,tcaron:ype,Tcedil:Epe,tcedil:vpe,Tcy:Spe,tcy:Tpe,tdot:xpe,telrec:Cpe,Tfr:wpe,tfr:Rpe,there4:Ape,therefore:Mpe,Therefore:Npe,Theta:Ope,theta:Ipe,thetasym:kpe,thetav:Dpe,thickapprox:Lpe,thicksim:Ppe,ThickSpace:Fpe,ThinSpace:Upe,thinsp:Bpe,thkap:Gpe,thksim:Vpe,THORN:zpe,thorn:Hpe,tilde:qpe,Tilde:Ype,TildeEqual:$pe,TildeFullEqual:Wpe,TildeTilde:Kpe,timesbar:jpe,timesb:Qpe,times:Xpe,timesd:Zpe,tint:Jpe,toea:efe,topbot:tfe,topcir:nfe,top:ife,Topf:sfe,topf:rfe,topfork:ofe,tosa:afe,tprime:lfe,trade:cfe,TRADE:dfe,triangle:ufe,triangledown:pfe,triangleleft:ffe,trianglelefteq:_fe,triangleq:mfe,triangleright:hfe,trianglerighteq:gfe,tridot:bfe,trie:yfe,triminus:Efe,TripleDot:vfe,triplus:Sfe,trisb:Tfe,tritime:xfe,trpezium:Cfe,Tscr:wfe,tscr:Rfe,TScy:Afe,tscy:Mfe,TSHcy:Nfe,tshcy:Ofe,Tstrok:Ife,tstrok:kfe,twixt:Dfe,twoheadleftarrow:Lfe,twoheadrightarrow:Pfe,Uacute:Ffe,uacute:Ufe,uarr:Bfe,Uarr:Gfe,uArr:Vfe,Uarrocir:zfe,Ubrcy:Hfe,ubrcy:qfe,Ubreve:Yfe,ubreve:$fe,Ucirc:Wfe,ucirc:Kfe,Ucy:jfe,ucy:Qfe,udarr:Xfe,Udblac:Zfe,udblac:Jfe,udhar:e_e,ufisht:t_e,Ufr:n_e,ufr:i_e,Ugrave:s_e,ugrave:r_e,uHar:o_e,uharl:a_e,uharr:l_e,uhblk:c_e,ulcorn:d_e,ulcorner:u_e,ulcrop:p_e,ultri:f_e,Umacr:__e,umacr:m_e,uml:h_e,UnderBar:g_e,UnderBrace:b_e,UnderBracket:y_e,UnderParenthesis:E_e,Union:v_e,UnionPlus:S_e,Uogon:T_e,uogon:x_e,Uopf:C_e,uopf:w_e,UpArrowBar:R_e,uparrow:A_e,UpArrow:M_e,Uparrow:N_e,UpArrowDownArrow:O_e,updownarrow:I_e,UpDownArrow:k_e,Updownarrow:D_e,UpEquilibrium:L_e,upharpoonleft:P_e,upharpoonright:F_e,uplus:U_e,UpperLeftArrow:B_e,UpperRightArrow:G_e,upsi:V_e,Upsi:z_e,upsih:H_e,Upsilon:q_e,upsilon:Y_e,UpTeeArrow:$_e,UpTee:W_e,upuparrows:K_e,urcorn:j_e,urcorner:Q_e,urcrop:X_e,Uring:Z_e,uring:J_e,urtri:eme,Uscr:tme,uscr:nme,utdot:ime,Utilde:sme,utilde:rme,utri:ome,utrif:ame,uuarr:lme,Uuml:cme,uuml:dme,uwangle:ume,vangrt:pme,varepsilon:fme,varkappa:_me,varnothing:mme,varphi:hme,varpi:gme,varpropto:bme,varr:yme,vArr:Eme,varrho:vme,varsigma:Sme,varsubsetneq:Tme,varsubsetneqq:xme,varsupsetneq:Cme,varsupsetneqq:wme,vartheta:Rme,vartriangleleft:Ame,vartriangleright:Mme,vBar:Nme,Vbar:Ome,vBarv:Ime,Vcy:kme,vcy:Dme,vdash:Lme,vDash:Pme,Vdash:Fme,VDash:Ume,Vdashl:Bme,veebar:Gme,vee:Vme,Vee:zme,veeeq:Hme,vellip:qme,verbar:Yme,Verbar:$me,vert:Wme,Vert:Kme,VerticalBar:jme,VerticalLine:Qme,VerticalSeparator:Xme,VerticalTilde:Zme,VeryThinSpace:Jme,Vfr:ehe,vfr:the,vltri:nhe,vnsub:ihe,vnsup:she,Vopf:rhe,vopf:ohe,vprop:ahe,vrtri:lhe,Vscr:che,vscr:dhe,vsubnE:uhe,vsubne:phe,vsupnE:fhe,vsupne:_he,Vvdash:mhe,vzigzag:hhe,Wcirc:ghe,wcirc:bhe,wedbar:yhe,wedge:Ehe,Wedge:vhe,wedgeq:She,weierp:The,Wfr:xhe,wfr:Che,Wopf:whe,wopf:Rhe,wp:Ahe,wr:Mhe,wreath:Nhe,Wscr:Ohe,wscr:Ihe,xcap:khe,xcirc:Dhe,xcup:Lhe,xdtri:Phe,Xfr:Fhe,xfr:Uhe,xharr:Bhe,xhArr:Ghe,Xi:Vhe,xi:zhe,xlarr:Hhe,xlArr:qhe,xmap:Yhe,xnis:$he,xodot:Whe,Xopf:Khe,xopf:jhe,xoplus:Qhe,xotime:Xhe,xrarr:Zhe,xrArr:Jhe,Xscr:ege,xscr:tge,xsqcup:nge,xuplus:ige,xutri:sge,xvee:rge,xwedge:oge,Yacute:age,yacute:lge,YAcy:cge,yacy:dge,Ycirc:uge,ycirc:pge,Ycy:fge,ycy:_ge,yen:mge,Yfr:hge,yfr:gge,YIcy:bge,yicy:yge,Yopf:Ege,yopf:vge,Yscr:Sge,yscr:Tge,YUcy:xge,yucy:Cge,yuml:wge,Yuml:Rge,Zacute:Age,zacute:Mge,Zcaron:Nge,zcaron:Oge,Zcy:Ige,zcy:kge,Zdot:Dge,zdot:Lge,zeetrf:Pge,ZeroWidthSpace:Fge,Zeta:Uge,zeta:Bge,zfr:Gge,Zfr:Vge,ZHcy:zge,zhcy:Hge,zigrarr:qge,zopf:Yge,Zopf:$ge,Zscr:Wge,zscr:Kge,zwj:jge,zwnj:Qge};var jA=Xge,g0=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ga={},yv={};function Zge(n){var e,t,i=yv[n];if(i)return i;for(i=yv[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?i.push(t):i.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<n.length;e++)i[n.charCodeAt(e)]=n[e];return i}function Xu(n,e,t){var i,s,r,o,a,c="";for(typeof e!="string"&&(t=e,e=Xu.defaultChars),typeof t>"u"&&(t=!0),a=Zge(e),i=0,s=n.length;i<s;i++){if(r=n.charCodeAt(i),t&&r===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(n.slice(i+1,i+3))){c+=n.slice(i,i+3),i+=2;continue}if(r<128){c+=a[r];continue}if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&i+1<s&&(o=n.charCodeAt(i+1),o>=56320&&o<=57343)){c+=encodeURIComponent(n[i]+n[i+1]),i++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(n[i])}return c}Xu.defaultChars=";/?:@&=+$,-_.!~*'()#";Xu.componentChars="-_.!~*'()";var Jge=Xu,Ev={};function ebe(n){var e,t,i=Ev[n];if(i)return i;for(i=Ev[n]=[],e=0;e<128;e++)t=String.fromCharCode(e),i.push(t);for(e=0;e<n.length;e++)t=n.charCodeAt(e),i[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return i}function Zu(n,e){var t;return typeof e!="string"&&(e=Zu.defaultChars),t=ebe(e),n.replace(/(%[a-f0-9]{2})+/gi,function(i){var s,r,o,a,c,d,u,_="";for(s=0,r=i.length;s<r;s+=3){if(o=parseInt(i.slice(s+1,s+3),16),o<128){_+=t[o];continue}if((o&224)===192&&s+3<r&&(a=parseInt(i.slice(s+4,s+6),16),(a&192)===128)){u=o<<6&1984|a&63,u<128?_+="��":_+=String.fromCharCode(u),s+=3;continue}if((o&240)===224&&s+6<r&&(a=parseInt(i.slice(s+4,s+6),16),c=parseInt(i.slice(s+7,s+9),16),(a&192)===128&&(c&192)===128)){u=o<<12&61440|a<<6&4032|c&63,u<2048||u>=55296&&u<=57343?_+="���":_+=String.fromCharCode(u),s+=6;continue}if((o&248)===240&&s+9<r&&(a=parseInt(i.slice(s+4,s+6),16),c=parseInt(i.slice(s+7,s+9),16),d=parseInt(i.slice(s+10,s+12),16),(a&192)===128&&(c&192)===128&&(d&192)===128)){u=o<<18&1835008|a<<12&258048|c<<6&4032|d&63,u<65536||u>1114111?_+="����":(u-=65536,_+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),s+=9;continue}_+="�"}return _})}Zu.defaultChars=";/?:@&=+$,#";Zu.componentChars="";var tbe=Zu,nbe=function(e){var 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 Xd(){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 ibe=/^([a-z0-9.+-]+:)/i,sbe=/:[0-9]*$/,rbe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,obe=["<",">",'"',"`"," ","\r",`
+`,"	"],abe=["{","}","|","\\","^","`"].concat(obe),lbe=["'"].concat(abe),vv=["%","/","?",";","#"].concat(lbe),Sv=["/","?","#"],cbe=255,Tv=/^[+a-z0-9A-Z_-]{0,63}$/,dbe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xv={javascript:!0,"javascript:":!0},Cv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ube(n,e){if(n&&n instanceof Xd)return n;var t=new Xd;return t.parse(n,e),t}Xd.prototype.parse=function(n,e){var t,i,s,r,o,a=n;if(a=a.trim(),!e&&n.split("#").length===1){var c=rbe.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var d=ibe.exec(a);if(d&&(d=d[0],s=d.toLowerCase(),this.protocol=d,a=a.substr(d.length)),(e||d||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(d&&xv[d])&&(a=a.substr(2),this.slashes=!0)),!xv[d]&&(o||d&&!Cv[d])){var u=-1;for(t=0;t<Sv.length;t++)r=a.indexOf(Sv[t]),r!==-1&&(u===-1||r<u)&&(u=r);var _,m;for(u===-1?m=a.lastIndexOf("@"):m=a.lastIndexOf("@",u),m!==-1&&(_=a.slice(0,m),a=a.slice(m+1),this.auth=_),u=-1,t=0;t<vv.length;t++)r=a.indexOf(vv[t]),r!==-1&&(u===-1||r<u)&&(u=r);u===-1&&(u=a.length),a[u-1]===":"&&u--;var h=a.slice(0,u);a=a.slice(u),this.parseHost(h),this.hostname=this.hostname||"";var f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){var y=this.hostname.split(/\./);for(t=0,i=y.length;t<i;t++){var b=y[t];if(b&&!b.match(Tv)){for(var g="",E=0,v=b.length;E<v;E++)b.charCodeAt(E)>127?g+="x":g+=b[E];if(!g.match(Tv)){var S=y.slice(0,t),R=y.slice(t+1),C=b.match(dbe);C&&(S.push(C[1]),R.unshift(C[2])),R.length&&(a=R.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>cbe&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=a.indexOf("#");A!==-1&&(this.hash=a.substr(A),a=a.slice(0,A));var I=a.indexOf("?");return I!==-1&&(this.search=a.substr(I),a=a.slice(0,I)),a&&(this.pathname=a),Cv[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Xd.prototype.parseHost=function(n){var e=sbe.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var pbe=ube;Ga.encode=Jge;Ga.decode=tbe;Ga.format=nbe;Ga.parse=pbe;var Dr={},Zp,wv;function QA(){return wv||(wv=1,Zp=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Zp}var Jp,Rv;function XA(){return Rv||(Rv=1,Jp=/[\0-\x1F\x7F-\x9F]/),Jp}var ef,Av;function fbe(){return Av||(Av=1,ef=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ef}var tf,Mv;function ZA(){return Mv||(Mv=1,tf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),tf}var Nv;function _be(){return Nv||(Nv=1,Dr.Any=QA(),Dr.Cc=XA(),Dr.Cf=fbe(),Dr.P=g0,Dr.Z=ZA()),Dr}(function(n){function e(O){return Object.prototype.toString.call(O)}function t(O){return e(O)==="[object String]"}var i=Object.prototype.hasOwnProperty;function s(O,H){return i.call(O,H)}function r(O){var H=Array.prototype.slice.call(arguments,1);return H.forEach(function(q){if(q){if(typeof q!="object")throw new TypeError(q+"must be object");Object.keys(q).forEach(function(L){O[L]=q[L]})}}),O}function o(O,H,q){return[].concat(O.slice(0,H),q,O.slice(H+1))}function a(O){return!(O>=55296&&O<=57343||O>=64976&&O<=65007||(O&65535)===65535||(O&65535)===65534||O>=0&&O<=8||O===11||O>=14&&O<=31||O>=127&&O<=159||O>1114111)}function c(O){if(O>65535){O-=65536;var H=55296+(O>>10),q=56320+(O&1023);return String.fromCharCode(H,q)}return String.fromCharCode(O)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,_=new RegExp(d.source+"|"+u.source,"gi"),m=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=jA;function f(O,H){var q;return s(h,H)?h[H]:H.charCodeAt(0)===35&&m.test(H)&&(q=H[1].toLowerCase()==="x"?parseInt(H.slice(2),16):parseInt(H.slice(1),10),a(q))?c(q):O}function y(O){return O.indexOf("\\")<0?O:O.replace(d,"$1")}function b(O){return O.indexOf("\\")<0&&O.indexOf("&")<0?O:O.replace(_,function(H,q,L){return q||f(H,L)})}var g=/[&<>"]/,E=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function S(O){return v[O]}function R(O){return g.test(O)?O.replace(E,S):O}var C=/[.?*+^$[\]\\(){}|-]/g;function A(O){return O.replace(C,"\\$&")}function I(O){switch(O){case 9:case 32:return!0}return!1}function x(O){if(O>=8192&&O<=8202)return!0;switch(O){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}var M=g0;function G(O){return M.test(O)}function V(O){switch(O){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 ee(O){return O=O.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(O=O.replace(/ẞ/g,"ß")),O.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=Ga,n.lib.ucmicro=_be(),n.assign=r,n.isString=t,n.has=s,n.unescapeMd=y,n.unescapeAll=b,n.isValidEntityCode=a,n.fromCodePoint=c,n.escapeHtml=R,n.arrayReplaceAt=o,n.isSpace=I,n.isWhiteSpace=x,n.isMdAsciiPunct=V,n.isPunctChar=G,n.escapeRE=A,n.normalizeReference=ee})(kt);var Ju={},mbe=function(e,t,i){var s,r,o,a,c=-1,d=e.posMax,u=e.pos;for(e.pos=t+1,s=1;e.pos<d;){if(o=e.src.charCodeAt(e.pos),o===93&&(s--,s===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)s++;else if(i)return e.pos=u,-1}}return r&&(c=e.pos),e.pos=u,c},Ov=kt.unescapeAll,hbe=function(e,t,i){var s,r,o=t,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<i;){if(s=e.charCodeAt(o),s===10||s===60)return a;if(s===62)return a.pos=o+1,a.str=Ov(e.slice(t+1,o)),a.ok=!0,a;if(s===92&&o+1<i){o+=2;continue}o++}return a}for(r=0;o<i&&(s=e.charCodeAt(o),!(s===32||s<32||s===127));){if(s===92&&o+1<i){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(s===40&&(r++,r>32))return a;if(s===41){if(r===0)break;r--}o++}return t===o||r!==0||(a.str=Ov(e.slice(t,o)),a.pos=o,a.ok=!0),a},gbe=kt.unescapeAll,bbe=function(e,t,i){var s,r,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(a>=i||(r=e.charCodeAt(a),r!==34&&r!==39&&r!==40))return c;for(a++,r===40&&(r=41);a<i;){if(s=e.charCodeAt(a),s===r)return c.pos=a+1,c.lines=o,c.str=gbe(e.slice(t+1,a)),c.ok=!0,c;if(s===40&&r===41)return c;s===10?o++:s===92&&a+1<i&&(a++,e.charCodeAt(a)===10&&o++),a++}return c};Ju.parseLinkLabel=mbe;Ju.parseLinkDestination=hbe;Ju.parseLinkTitle=bbe;var ybe=kt.assign,Ebe=kt.unescapeAll,co=kt.escapeHtml,ds={};ds.code_inline=function(n,e,t,i,s){var r=n[e];return"<code"+s.renderAttrs(r)+">"+co(r.content)+"</code>"};ds.code_block=function(n,e,t,i,s){var r=n[e];return"<pre"+s.renderAttrs(r)+"><code>"+co(n[e].content)+`</code></pre>
+`};ds.fence=function(n,e,t,i,s){var r=n[e],o=r.info?Ebe(r.info).trim():"",a="",c="",d,u,_,m,h;return o&&(_=o.split(/(\s+)/g),a=_[0],c=_.slice(2).join("")),t.highlight?d=t.highlight(r.content,a,c)||co(r.content):d=co(r.content),d.indexOf("<pre")===0?d+`
 `:o?(u=r.attrIndex("class"),m=r.attrs?r.attrs.slice():[],u<0?m.push(["class",t.langPrefix+a]):(m[u]=m[u].slice(),m[u][1]+=" "+t.langPrefix+a),h={attrs:m},"<pre><code"+s.renderAttrs(h)+">"+d+`</code></pre>
 `):"<pre><code"+s.renderAttrs(r)+">"+d+`</code></pre>
 `};ds.image=function(n,e,t,i,s){var r=n[e];return r.attrs[r.attrIndex("alt")][1]=s.renderInlineAsText(r.children,t,i),s.renderToken(n,e,t)};ds.hardbreak=function(n,e,t){return t.xhtmlOut?`<br />
@@ -49,33 +49,33 @@ var JO=Object.defineProperty;var eI=(n,e,t)=>e in n?JO(n,e,{enumerable:!0,config
 `};ds.softbreak=function(n,e,t){return t.breaks?t.xhtmlOut?`<br />
 `:`<br>
 `:`
-`};ds.text=function(n,e){return co(n[e].content)};ds.html_block=function(n,e){return n[e].content};ds.html_inline=function(n,e){return n[e].content};function Va(){this.rules=Ebe({},ds)}Va.prototype.renderAttrs=function(e){var t,i,s;if(!e.attrs)return"";for(s="",t=0,i=e.attrs.length;t<i;t++)s+=" "+co(e.attrs[t][0])+'="'+co(e.attrs[t][1])+'"';return s};Va.prototype.renderToken=function(e,t,i){var s,r="",o=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(r+=`
+`};ds.text=function(n,e){return co(n[e].content)};ds.html_block=function(n,e){return n[e].content};ds.html_inline=function(n,e){return n[e].content};function Va(){this.rules=ybe({},ds)}Va.prototype.renderAttrs=function(e){var t,i,s;if(!e.attrs)return"";for(s="",t=0,i=e.attrs.length;t<i;t++)s+=" "+co(e.attrs[t][0])+'="'+co(e.attrs[t][1])+'"';return s};Va.prototype.renderToken=function(e,t,i){var s,r="",o=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(r+=`
 `),r+=(a.nesting===-1?"</":"<")+a.tag,r+=this.renderAttrs(a),a.nesting===0&&i.xhtmlOut&&(r+=" /"),a.block&&(o=!0,a.nesting===1&&t+1<e.length&&(s=e[t+1],(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===a.tag)&&(o=!1))),r+=o?`>
 `:">",r)};Va.prototype.renderInline=function(n,e,t){for(var i,s="",r=this.rules,o=0,a=n.length;o<a;o++)i=n[o].type,typeof r[i]<"u"?s+=r[i](n,o,e,t,this):s+=this.renderToken(n,o,e);return s};Va.prototype.renderInlineAsText=function(n,e,t){for(var i="",s=0,r=n.length;s<r;s++)n[s].type==="text"?i+=n[s].content:n[s].type==="image"?i+=this.renderInlineAsText(n[s].children,e,t):n[s].type==="softbreak"&&(i+=`
-`);return i};Va.prototype.render=function(n,e,t){var i,s,r,o="",a=this.rules;for(i=0,s=n.length;i<s;i++)r=n[i].type,r==="inline"?o+=this.renderInline(n[i].children,e,t):typeof a[r]<"u"?o+=a[r](n,i,e,t,this):o+=this.renderToken(n,i,e,t);return o};var Sbe=Va;function $i(){this.__rules__=[],this.__cache__=null}$i.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};$i.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(i){e.indexOf(i)<0&&e.push(i)})}),n.__cache__={},e.forEach(function(t){n.__cache__[t]=[],n.__rules__.forEach(function(i){i.enabled&&(t&&i.alt.indexOf(t)<0||n.__cache__[t].push(i.fn))})})};$i.prototype.at=function(n,e,t){var i=this.__find__(n),s=t||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__[i].fn=e,this.__rules__[i].alt=s.alt||[],this.__cache__=null};$i.prototype.before=function(n,e,t,i){var s=this.__find__(n),r=i||{};if(s===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};$i.prototype.after=function(n,e,t,i){var s=this.__find__(n),r=i||{};if(s===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};$i.prototype.push=function(n,e,t){var i=t||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};$i.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(i){var s=this.__find__(i);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[s].enabled=!0,t.push(i)},this),this.__cache__=null,t};$i.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(n,e)};$i.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(i){var s=this.__find__(i);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[s].enabled=!1,t.push(i)},this),this.__cache__=null,t};$i.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var b0=$i,Tbe=/\r\n?|\n/g,xbe=/\0/g,Cbe=function(e){var t;t=e.src.replace(Tbe,`
-`),t=t.replace(xbe,"�"),e.src=t},wbe=function(e){var 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)},Rbe=function(e){var t=e.tokens,i,s,r;for(s=0,r=t.length;s<r;s++)i=t[s],i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)},Abe=kt.arrayReplaceAt;function Mbe(n){return/^<a[>\s]/i.test(n)}function Nbe(n){return/^<\/a\s*>/i.test(n)}var Obe=function(e){var t,i,s,r,o,a,c,d,u,_,m,h,f,y,b,g,E=e.tokens,v;if(e.md.options.linkify){for(i=0,s=E.length;i<s;i++)if(!(E[i].type!=="inline"||!e.md.linkify.pretest(E[i].content)))for(r=E[i].children,f=0,t=r.length-1;t>=0;t--){if(a=r[t],a.type==="link_close"){for(t--;r[t].level!==a.level&&r[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(Mbe(a.content)&&f>0&&f--,Nbe(a.content)&&f++),!(f>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,v=e.md.linkify.match(u),c=[],h=a.level,m=0,v.length>0&&v[0].index===0&&t>0&&r[t-1].type==="text_special"&&(v=v.slice(1)),d=0;d<v.length;d++)y=v[d].url,b=e.md.normalizeLink(y),e.md.validateLink(b)&&(g=v[d].text,v[d].schema?v[d].schema==="mailto:"&&!/^mailto:/i.test(g)?g=e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=e.md.normalizeLinkText(g):g=e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),_=v[d].index,_>m&&(o=new e.Token("text","",0),o.content=u.slice(m,_),o.level=h,c.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=h++,o.markup="linkify",o.info="auto",c.push(o),o=new e.Token("text","",0),o.content=g,o.level=h,c.push(o),o=new e.Token("link_close","a",-1),o.level=--h,o.markup="linkify",o.info="auto",c.push(o),m=v[d].lastIndex);m<u.length&&(o=new e.Token("text","",0),o.content=u.slice(m),o.level=h,c.push(o)),E[i].children=r=Abe(r,t,c)}}}},JA=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ibe=/\((c|tm|r)\)/i,kbe=/\((c|tm|r)\)/ig,Dbe={c:"©",r:"®",tm:"™"};function Lbe(n,e){return Dbe[e.toLowerCase()]}function Pbe(n){var e,t,i=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!i&&(t.content=t.content.replace(kbe,Lbe)),t.type==="link_open"&&t.info==="auto"&&i--,t.type==="link_close"&&t.info==="auto"&&i++}function Fbe(n){var e,t,i=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!i&&JA.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&i--,t.type==="link_close"&&t.info==="auto"&&i++}var Ube=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Ibe.test(e.tokens[t].content)&&Pbe(e.tokens[t].children),JA.test(e.tokens[t].content)&&Fbe(e.tokens[t].children))},Iv=kt.isWhiteSpace,kv=kt.isPunctChar,Dv=kt.isMdAsciiPunct,Bbe=/['"]/,Lv=/['"]/g,Pv="’";function Ic(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function Gbe(n,e){var t,i,s,r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C;for(S=[],t=0;t<n.length;t++){for(i=n[t],c=n[t].level,E=S.length-1;E>=0&&!(S[E].level<=c);E--);if(S.length=E+1,i.type==="text"){s=i.content,o=0,a=s.length;e:for(;o<a&&(Lv.lastIndex=o,r=Lv.exec(s),!!r);){if(b=g=!0,o=r.index+1,v=r[0]==="'",u=32,r.index-1>=0)u=s.charCodeAt(r.index-1);else for(E=t-1;E>=0&&!(n[E].type==="softbreak"||n[E].type==="hardbreak");E--)if(n[E].content){u=n[E].content.charCodeAt(n[E].content.length-1);break}if(_=32,o<a)_=s.charCodeAt(o);else for(E=t+1;E<n.length&&!(n[E].type==="softbreak"||n[E].type==="hardbreak");E++)if(n[E].content){_=n[E].content.charCodeAt(0);break}if(m=Dv(u)||kv(String.fromCharCode(u)),h=Dv(_)||kv(String.fromCharCode(_)),f=Iv(u),y=Iv(_),y?b=!1:h&&(f||m||(b=!1)),f?g=!1:m&&(y||h||(g=!1)),_===34&&r[0]==='"'&&u>=48&&u<=57&&(g=b=!1),b&&g&&(b=m,g=h),!b&&!g){v&&(i.content=Ic(i.content,r.index,Pv));continue}if(g){for(E=S.length-1;E>=0&&(d=S[E],!(S[E].level<c));E--)if(d.single===v&&S[E].level===c){d=S[E],v?(R=e.md.options.quotes[2],C=e.md.options.quotes[3]):(R=e.md.options.quotes[0],C=e.md.options.quotes[1]),i.content=Ic(i.content,r.index,C),n[d.token].content=Ic(n[d.token].content,d.pos,R),o+=C.length-1,d.token===t&&(o+=R.length-1),s=i.content,a=s.length,S.length=E;continue e}}b?S.push({token:t,pos:r.index,single:v,level:c}):g&&v&&(i.content=Ic(i.content,r.index,Pv))}}}}var Vbe=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Bbe.test(e.tokens[t].content)||Gbe(e.tokens[t].children,e)},zbe=function(e){var t,i,s,r,o,a,c=e.tokens;for(t=0,i=c.length;t<i;t++)if(c[t].type==="inline"){for(s=c[t].children,o=s.length,r=0;r<o;r++)s[r].type==="text_special"&&(s[r].type="text");for(r=a=0;r<o;r++)s[r].type==="text"&&r+1<o&&s[r+1].type==="text"?s[r+1].content=s[r].content+s[r+1].content:(r!==a&&(s[a]=s[r]),a++);r!==a&&(s.length=a)}};function za(n,e,t){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}za.prototype.attrIndex=function(e){var t,i,s;if(!this.attrs)return-1;for(t=this.attrs,i=0,s=t.length;i<s;i++)if(t[i][0]===e)return i;return-1};za.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};za.prototype.attrSet=function(e,t){var i=this.attrIndex(e),s=[e,t];i<0?this.attrPush(s):this.attrs[i]=s};za.prototype.attrGet=function(e){var t=this.attrIndex(e),i=null;return t>=0&&(i=this.attrs[t][1]),i};za.prototype.attrJoin=function(e,t){var i=this.attrIndex(e);i<0?this.attrPush([e,t]):this.attrs[i][1]=this.attrs[i][1]+" "+t};var y0=za,Hbe=y0;function eM(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}eM.prototype.Token=Hbe;var qbe=eM,Ybe=b0,nf=[["normalize",Cbe],["block",wbe],["inline",Rbe],["linkify",Obe],["replacements",Ube],["smartquotes",Vbe],["text_join",zbe]];function E0(){this.ruler=new Ybe;for(var n=0;n<nf.length;n++)this.ruler.push(nf[n][0],nf[n][1])}E0.prototype.process=function(n){var e,t,i;for(i=this.ruler.getRules(""),e=0,t=i.length;e<t;e++)i[e](n)};E0.prototype.State=qbe;var $be=E0,sf=kt.isSpace;function rf(n,e){var t=n.bMarks[e]+n.tShift[e],i=n.eMarks[e];return n.src.slice(t,i)}function Fv(n){var e=[],t=0,i=n.length,s,r=!1,o=0,a="";for(s=n.charCodeAt(t);t<i;)s===124&&(r?(a+=n.substring(o,t-1),o=t):(e.push(a+n.substring(o,t)),a="",o=t+1)),r=s===92,t++,s=n.charCodeAt(t);return e.push(a+n.substring(o)),e}var Wbe=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C;if(t+2>i||(u=t+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[u]||(C=e.src.charCodeAt(a++),C!==124&&C!==45&&C!==58&&!sf(C))||R===45&&sf(C))return!1;for(;a<e.eMarks[u];){if(r=e.src.charCodeAt(a),r!==124&&r!==45&&r!==58&&!sf(r))return!1;a++}for(o=rf(e,t+1),_=o.split("|"),f=[],c=0;c<_.length;c++){if(y=_[c].trim(),!y){if(c===0||c===_.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?f.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?f.push("left"):f.push("")}if(o=rf(e,t).trim(),o.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(_=Fv(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),m=_.length,m===0||m!==f.length))return!1;if(s)return!0;for(E=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=b=[t,0],h=e.push("thead_open","thead",1),h.map=[t,t+1],h=e.push("tr_open","tr",1),h.map=[t,t+1],c=0;c<_.length;c++)h=e.push("th_open","th",1),f[c]&&(h.attrs=[["style","text-align:"+f[c]]]),h=e.push("inline","",0),h.content=_[c].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),u=t+2;u<i&&!(e.sCount[u]<e.blkIndent);u++){for(v=!1,c=0,d=S.length;c<d;c++)if(S[c](e,u,i,!0)){v=!0;break}if(v||(o=rf(e,u).trim(),!o)||e.sCount[u]-e.blkIndent>=4)break;for(_=Fv(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),u===t+2&&(h=e.push("tbody_open","tbody",1),h.map=g=[t+2,0]),h=e.push("tr_open","tr",1),h.map=[u,u+1],c=0;c<m;c++)h=e.push("td_open","td",1),f[c]&&(h.attrs=[["style","text-align:"+f[c]]]),h=e.push("inline","",0),h.content=_[c]?_[c].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return g&&(h=e.push("tbody_close","tbody",-1),g[1]=u),h=e.push("table_close","table",-1),b[1]=u,e.parentType=E,e.line=u,!0},Kbe=function(e,t,i){var s,r,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(r=s=t+1;s<i;){if(e.isEmpty(s)){s++;continue}if(e.sCount[s]-e.blkIndent>=4){s++,r=s;continue}break}return e.line=r,o=e.push("code_block","code",0),o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
-`,o.map=[t,e.line],!0},jbe=function(e,t,i,s){var r,o,a,c,d,u,_,m=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||(r=e.src.charCodeAt(h),r!==126&&r!==96)||(d=h,h=e.skipChars(h,r),o=h-d,o<3)||(_=e.src.slice(d,h),a=e.src.slice(h,f),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(s)return!0;for(c=t;c++,!(c>=i||(h=d=e.bMarks[c]+e.tShift[c],f=e.eMarks[c],h<f&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(h)===r&&!(e.sCount[c]-e.blkIndent>=4)&&(h=e.skipChars(h,r),!(h-d<o)&&(h=e.skipSpaces(h),!(h<f)))){m=!0;break}return o=e.sCount[t],e.line=c+(m?1:0),u=e.push("fence","code",0),u.info=a,u.content=e.getLines(t+1,c,o,!0),u.markup=_,u.map=[t,e.line],!0},Qbe=kt.isSpace,Xbe=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C,A,I,x=e.lineMax,M=e.bMarks[t]+e.tShift[t],G=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(M)!==62)return!1;if(s)return!0;for(f=[],y=[],E=[],v=[],C=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",m=t;m<i&&(I=e.sCount[m]<e.blkIndent,M=e.bMarks[m]+e.tShift[m],G=e.eMarks[m],!(M>=G));m++){if(e.src.charCodeAt(M++)===62&&!I){for(c=e.sCount[m]+1,e.src.charCodeAt(M)===32?(M++,c++,r=!1,S=!0):e.src.charCodeAt(M)===9?(S=!0,(e.bsCount[m]+c)%4===3?(M++,c++,r=!1):r=!0):S=!1,h=c,f.push(e.bMarks[m]),e.bMarks[m]=M;M<G&&(o=e.src.charCodeAt(M),Qbe(o));){o===9?h+=4-(h+e.bsCount[m]+(r?1:0))%4:h++;M++}u=M>=G,y.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),E.push(e.sCount[m]),e.sCount[m]=h-c,v.push(e.tShift[m]),e.tShift[m]=M-e.bMarks[m];continue}if(u)break;for(R=!1,a=0,d=C.length;a<d;a++)if(C[a](e,m,i,!0)){R=!0;break}if(R){e.lineMax=m,e.blkIndent!==0&&(f.push(e.bMarks[m]),y.push(e.bsCount[m]),v.push(e.tShift[m]),E.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}f.push(e.bMarks[m]),y.push(e.bsCount[m]),v.push(e.tShift[m]),E.push(e.sCount[m]),e.sCount[m]=-1}for(b=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=_=[t,0],e.md.block.tokenize(e,t,m),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=x,e.parentType=g,_[1]=e.line,a=0;a<v.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=v[a],e.sCount[a+t]=E[a],e.bsCount[a+t]=y[a];return e.blkIndent=b,!0},Zbe=kt.isSpace,Jbe=function(e,t,i,s){var r,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(r=e.src.charCodeAt(d++),r!==42&&r!==45&&r!==95))return!1;for(o=1;d<u;){if(a=e.src.charCodeAt(d++),a!==r&&!Zbe(a))return!1;a===r&&o++}return o<3?!1:(s||(e.line=t+1,c=e.push("hr","hr",0),c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(r))),!0)},tM=kt.isSpace;function Uv(n,e){var t,i,s,r;return i=n.bMarks[e]+n.tShift[e],s=n.eMarks[e],t=n.src.charCodeAt(i++),t!==42&&t!==45&&t!==43||i<s&&(r=n.src.charCodeAt(i),!tM(r))?-1:i}function Bv(n,e){var t,i=n.bMarks[e]+n.tShift[e],s=i,r=n.eMarks[e];if(s+1>=r||(t=n.src.charCodeAt(s++),t<48||t>57))return-1;for(;;){if(s>=r)return-1;if(t=n.src.charCodeAt(s++),t>=48&&t<=57){if(s-i>=10)return-1;continue}if(t===41||t===46)break;return-1}return s<r&&(t=n.src.charCodeAt(s),!tM(t))?-1:s}function e0e(n,e){var t,i,s=n.level+2;for(t=e+2,i=n.tokens.length-2;t<i;t++)n.tokens[t].level===s&&n.tokens[t].type==="paragraph_open"&&(n.tokens[t+2].hidden=!0,n.tokens[t].hidden=!0,t+=2)}var t0e=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C,A,I,x,M,G,V,ee,O,H,q=t,L=!1,Y=!0;if(e.sCount[q]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]<e.blkIndent)return!1;if(s&&e.parentType==="paragraph"&&e.sCount[q]>=e.blkIndent&&(L=!0),(M=Bv(e,q))>=0){if(_=!0,V=e.bMarks[q]+e.tShift[q],g=Number(e.src.slice(V,M-1)),L&&g!==1)return!1}else if((M=Uv(e,q))>=0)_=!1;else return!1;if(L&&e.skipSpaces(M)>=e.eMarks[q])return!1;if(s)return!0;for(b=e.src.charCodeAt(M-1),y=e.tokens.length,_?(H=e.push("ordered_list_open","ol",1),g!==1&&(H.attrs=[["start",g]])):H=e.push("bullet_list_open","ul",1),H.map=f=[q,0],H.markup=String.fromCharCode(b),G=!1,O=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q<i;){for(x=M,E=e.eMarks[q],u=v=e.sCount[q]+M-(e.bMarks[q]+e.tShift[q]);x<E;){if(r=e.src.charCodeAt(x),r===9)v+=4-(v+e.bsCount[q])%4;else if(r===32)v++;else break;x++}if(o=x,o>=E?d=1:d=v-u,d>4&&(d=1),c=u+d,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(b),H.map=m=[q,0],_&&(H.info=e.src.slice(V,M-1)),I=e.tight,A=e.tShift[q],C=e.sCount[q],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[q]=o-e.bMarks[q],e.sCount[q]=v,o>=E&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,q,i,!0),(!e.tight||G)&&(Y=!1),G=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=C,e.tight=I,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(b),q=e.line,m[1]=q,q>=i||e.sCount[q]<e.blkIndent||e.sCount[q]-e.blkIndent>=4)break;for(ee=!1,a=0,h=O.length;a<h;a++)if(O[a](e,q,i,!0)){ee=!0;break}if(ee)break;if(_){if(M=Bv(e,q),M<0)break;V=e.bMarks[q]+e.tShift[q]}else if(M=Uv(e,q),M<0)break;if(b!==e.src.charCodeAt(M-1))break}return _?H=e.push("ordered_list_close","ol",-1):H=e.push("bullet_list_close","ul",-1),H.markup=String.fromCharCode(b),f[1]=q,e.line=q,e.parentType=R,Y&&e0e(e,y),!0},n0e=kt.normalizeReference,kc=kt.isSpace,i0e=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R=0,C=e.bMarks[t]+e.tShift[t],A=e.eMarks[t],I=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(C)!==91)return!1;for(;++C<A;)if(e.src.charCodeAt(C)===93&&e.src.charCodeAt(C-1)!==92){if(C+1===A||e.src.charCodeAt(C+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";I<c&&!e.isEmpty(I);I++)if(!(e.sCount[I]-e.blkIndent>3)&&!(e.sCount[I]<0)){for(E=!1,u=0,_=v.length;u<_;u++)if(v[u](e,I,c,!0)){E=!0;break}if(E)break}for(g=e.getLines(t,I,e.blkIndent,!1).trim(),A=g.length,C=1;C<A;C++){if(r=g.charCodeAt(C),r===91)return!1;if(r===93){h=C;break}else r===10?R++:r===92&&(C++,C<A&&g.charCodeAt(C)===10&&R++)}if(h<0||g.charCodeAt(h+1)!==58)return!1;for(C=h+2;C<A;C++)if(r=g.charCodeAt(C),r===10)R++;else if(!kc(r))break;if(y=e.md.helpers.parseLinkDestination(g,C,A),!y.ok||(d=e.md.normalizeLink(y.str),!e.md.validateLink(d)))return!1;for(C=y.pos,R+=y.lines,o=C,a=R,b=C;C<A;C++)if(r=g.charCodeAt(C),r===10)R++;else if(!kc(r))break;for(y=e.md.helpers.parseLinkTitle(g,C,A),C<A&&b!==C&&y.ok?(S=y.str,C=y.pos,R+=y.lines):(S="",C=o,R=a);C<A&&(r=g.charCodeAt(C),!!kc(r));)C++;if(C<A&&g.charCodeAt(C)!==10&&S)for(S="",C=o,R=a;C<A&&(r=g.charCodeAt(C),!!kc(r));)C++;return C<A&&g.charCodeAt(C)!==10||(m=n0e(g.slice(1,h)),!m)?!1:(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[m]>"u"&&(e.env.references[m]={title:S,href:d}),e.parentType=f,e.line=t+R+1),!0)},s0e=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ep={},r0e="[a-zA-Z_:][a-zA-Z0-9:._-]*",o0e="[^\"'=<>`\\x00-\\x20]+",a0e="'[^']*'",l0e='"[^"]*"',c0e="(?:"+o0e+"|"+a0e+"|"+l0e+")",d0e="(?:\\s+"+r0e+"(?:\\s*=\\s*"+c0e+")?)",nM="<[A-Za-z][A-Za-z0-9\\-]*"+d0e+"*\\s*\\/?>",iM="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",u0e="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",p0e="<[?][\\s\\S]*?[?]>",f0e="<![A-Z]+\\s+[^>]*>",_0e="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",m0e=new RegExp("^(?:"+nM+"|"+iM+"|"+u0e+"|"+p0e+"|"+f0e+"|"+_0e+")"),h0e=new RegExp("^(?:"+nM+"|"+iM+")");ep.HTML_TAG_RE=m0e;ep.HTML_OPEN_CLOSE_TAG_RE=h0e;var g0e=s0e,b0e=ep.HTML_OPEN_CLOSE_TAG_RE,Co=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+g0e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(b0e.source+"\\s*$"),/^$/,!1]],y0e=function(e,t,i,s){var r,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),r=0;r<Co.length&&!Co[r][0].test(c);r++);if(r===Co.length)return!1;if(s)return Co[r][2];if(o=t+1,!Co[r][1].test(c)){for(;o<i&&!(e.sCount[o]<e.blkIndent);o++)if(d=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],c=e.src.slice(d,u),Co[r][1].test(c)){c.length!==0&&o++;break}}return e.line=o,a=e.push("html_block","",0),a.map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},Gv=kt.isSpace,E0e=function(e,t,i,s){var r,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(r=e.src.charCodeAt(d),r!==35||d>=u))return!1;for(o=1,r=e.src.charCodeAt(++d);r===35&&d<u&&o<=6;)o++,r=e.src.charCodeAt(++d);return o>6||d<u&&!Gv(r)?!1:(s||(u=e.skipSpacesBack(u,d),a=e.skipCharsBack(u,35,d),a>d&&Gv(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[t,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[t,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},v0e=function(e,t,i){var s,r,o,a,c,d,u,_,m,h=t+1,f,y=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";h<i&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(d=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],d<u&&(m=e.src.charCodeAt(d),(m===45||m===61)&&(d=e.skipChars(d,m),d=e.skipSpaces(d),d>=u)))){_=m===61?1:2;break}if(!(e.sCount[h]<0)){for(r=!1,o=0,a=y.length;o<a;o++)if(y[o](e,h,i,!0)){r=!0;break}if(r)break}}return _?(s=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,c=e.push("heading_open","h"+String(_),1),c.markup=String.fromCharCode(m),c.map=[t,e.line],c=e.push("inline","",0),c.content=s,c.map=[t,e.line-1],c.children=[],c=e.push("heading_close","h"+String(_),-1),c.markup=String.fromCharCode(m),e.parentType=f,!0):!1},S0e=function(e,t,i){var s,r,o,a,c,d,u=t+1,_=e.md.block.ruler.getRules("paragraph");for(d=e.parentType,e.parentType="paragraph";u<i&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(r=!1,o=0,a=_.length;o<a;o++)if(_[o](e,u,i,!0)){r=!0;break}if(r)break}return s=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,c=e.push("paragraph_open","p",1),c.map=[t,e.line],c=e.push("inline","",0),c.content=s,c.map=[t,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=d,!0},sM=y0,tp=kt.isSpace;function us(n,e,t,i){var s,r,o,a,c,d,u,_;for(this.src=n,this.md=e,this.env=t,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",r=this.src,_=!1,o=a=d=u=0,c=r.length;a<c;a++){if(s=r.charCodeAt(a),!_)if(tp(s)){d++,s===9?u+=4-u%4:u++;continue}else _=!0;(s===10||a===c-1)&&(s!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(d),this.sCount.push(u),this.bsCount.push(0),_=!1,d=0,u=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}us.prototype.push=function(n,e,t){var i=new sM(n,e,t);return i.block=!0,t<0&&this.level--,i.level=this.level,t>0&&this.level++,this.tokens.push(i),i};us.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};us.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};us.prototype.skipSpaces=function(e){for(var t,i=this.src.length;e<i&&(t=this.src.charCodeAt(e),!!tp(t));e++);return e};us.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!tp(this.src.charCodeAt(--e)))return e+1;return e};us.prototype.skipChars=function(e,t){for(var i=this.src.length;e<i&&this.src.charCodeAt(e)===t;e++);return e};us.prototype.skipCharsBack=function(e,t,i){if(e<=i)return e;for(;e>i;)if(t!==this.src.charCodeAt(--e))return e+1;return e};us.prototype.getLines=function(e,t,i,s){var r,o,a,c,d,u,_,m=e;if(e>=t)return"";for(u=new Array(t-e),r=0;m<t;m++,r++){for(o=0,_=c=this.bMarks[m],m+1<t||s?d=this.eMarks[m]+1:d=this.eMarks[m];c<d&&o<i;){if(a=this.src.charCodeAt(c),tp(a))a===9?o+=4-(o+this.bsCount[m])%4:o++;else if(c-_<this.tShift[m])o++;else break;c++}o>i?u[r]=new Array(o-i+1).join(" ")+this.src.slice(c,d):u[r]=this.src.slice(c,d)}return u.join("")};us.prototype.Token=sM;var T0e=us,x0e=b0,Dc=[["table",Wbe,["paragraph","reference"]],["code",Kbe],["fence",jbe,["paragraph","reference","blockquote","list"]],["blockquote",Xbe,["paragraph","reference","blockquote","list"]],["hr",Jbe,["paragraph","reference","blockquote","list"]],["list",t0e,["paragraph","reference","blockquote"]],["reference",i0e],["html_block",y0e,["paragraph","reference","blockquote"]],["heading",E0e,["paragraph","reference","blockquote"]],["lheading",v0e],["paragraph",S0e]];function np(){this.ruler=new x0e;for(var n=0;n<Dc.length;n++)this.ruler.push(Dc[n][0],Dc[n][1],{alt:(Dc[n][2]||[]).slice()})}np.prototype.tokenize=function(n,e,t){for(var i,s,r,o=this.ruler.getRules(""),a=o.length,c=e,d=!1,u=n.md.options.maxNesting;c<t&&(n.line=c=n.skipEmptyLines(c),!(c>=t||n.sCount[c]<n.blkIndent));){if(n.level>=u){n.line=t;break}for(r=n.line,s=0;s<a;s++)if(i=o[s](n,c,t,!1),i){if(r>=n.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),c=n.line,c<t&&n.isEmpty(c)&&(d=!0,c++,n.line=c)}};np.prototype.parse=function(n,e,t,i){var s;n&&(s=new this.State(n,e,t,i),this.tokenize(s,s.line,s.lineMax))};np.prototype.State=T0e;var C0e=np;function w0e(n){switch(n){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var R0e=function(e,t){for(var i=e.pos;i<e.posMax&&!w0e(e.src.charCodeAt(i));)i++;return i===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,i)),e.pos=i,!0)},A0e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,M0e=function(e,t){var i,s,r,o,a,c,d,u;return!e.md.options.linkify||e.linkLevel>0||(i=e.pos,s=e.posMax,i+3>s)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(r=e.pending.match(A0e),!r)||(o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!a)||(c=a.url,c.length<=o.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-o.length,!0)},N0e=kt.isSpace,O0e=function(e,t){var i,s,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,s=e.posMax,!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(r=i-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),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(o++;o<s&&N0e(e.src.charCodeAt(o));)o++;return e.pos=o,!0},I0e=kt.isSpace,v0=[];for(var Vv=0;Vv<256;Vv++)v0.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){v0[n.charCodeAt(0)]=1});var k0e=function(e,t){var i,s,r,o,a,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(i=e.src.charCodeAt(c),i===10){for(t||e.push("hardbreak","br",0),c++;c<d&&(i=e.src.charCodeAt(c),!!I0e(i));)c++;return e.pos=c,!0}return o=e.src[c],i>=55296&&i<=56319&&c+1<d&&(s=e.src.charCodeAt(c+1),s>=56320&&s<=57343&&(o+=e.src[c+1],c++)),r="\\"+o,t||(a=e.push("text_special","",0),i<256&&v0[i]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=c+1,!0},D0e=function(e,t){var i,s,r,o,a,c,d,u,_=e.pos,m=e.src.charCodeAt(_);if(m!==96)return!1;for(i=_,_++,s=e.posMax;_<s&&e.src.charCodeAt(_)===96;)_++;if(r=e.src.slice(i,_),d=r.length,e.backticksScanned&&(e.backticks[d]||0)<=i)return t||(e.pending+=r),e.pos+=d,!0;for(c=_;(a=e.src.indexOf("`",c))!==-1;){for(c=a+1;c<s&&e.src.charCodeAt(c)===96;)c++;if(u=c-a,u===d)return t||(o=e.push("code_inline","code",0),o.markup=r,o.content=e.src.slice(_,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=d,!0},ip={};ip.tokenize=function(e,t){var i,s,r,o,a,c=e.pos,d=e.src.charCodeAt(c);if(t||d!==126||(s=e.scanDelims(e.pos,!0),o=s.length,a=String.fromCharCode(d),o<2))return!1;for(o%2&&(r=e.push("text","",0),r.content=a,o--),i=0;i<o;i+=2)r=e.push("text","",0),r.content=a+a,e.delimiters.push({marker:d,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function zv(n,e){var t,i,s,r,o,a=[],c=e.length;for(t=0;t<c;t++)s=e[t],s.marker===126&&s.end!==-1&&(r=e[s.end],o=n.tokens[s.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=n.tokens[r.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="",n.tokens[r.token-1].type==="text"&&n.tokens[r.token-1].content==="~"&&a.push(r.token-1));for(;a.length;){for(t=a.pop(),i=t+1;i<n.tokens.length&&n.tokens[i].type==="s_close";)i++;i--,t!==i&&(o=n.tokens[i],n.tokens[i]=n.tokens[t],n.tokens[t]=o)}}ip.postProcess=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(zv(e,e.delimiters),t=0;t<s;t++)i[t]&&i[t].delimiters&&zv(e,i[t].delimiters)};var sp={};sp.tokenize=function(e,t){var i,s,r,o=e.pos,a=e.src.charCodeAt(o);if(t||a!==95&&a!==42)return!1;for(s=e.scanDelims(e.pos,a===42),i=0;i<s.length;i++)r=e.push("text","",0),r.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function Hv(n,e){var t,i,s,r,o,a,c=e.length;for(t=c-1;t>=0;t--)i=e[t],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(s=e[i.end],a=t>0&&e[t-1].end===i.end+1&&e[t-1].marker===i.marker&&e[t-1].token===i.token-1&&e[i.end+1].token===s.token+1,o=String.fromCharCode(i.marker),r=n.tokens[i.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=n.tokens[s.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[i.end+1].token].content="",t--))}sp.postProcess=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(Hv(e,e.delimiters),t=0;t<s;t++)i[t]&&i[t].delimiters&&Hv(e,i[t].delimiters)};var L0e=kt.normalizeReference,of=kt.isSpace,P0e=function(e,t){var i,s,r,o,a,c,d,u,_,m="",h="",f=e.pos,y=e.posMax,b=e.pos,g=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(c=o+1,c<y&&e.src.charCodeAt(c)===40){for(g=!1,c++;c<y&&(s=e.src.charCodeAt(c),!(!of(s)&&s!==10));c++);if(c>=y)return!1;if(b=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(m=e.md.normalizeLink(d.str),e.md.validateLink(m)?c=d.pos:m="",b=c;c<y&&(s=e.src.charCodeAt(c),!(!of(s)&&s!==10));c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<y&&b!==c&&d.ok)for(h=d.str,c=d.pos;c<y&&(s=e.src.charCodeAt(c),!(!of(s)&&s!==10));c++);}(c>=y||e.src.charCodeAt(c)!==41)&&(g=!0),c++}if(g){if(typeof e.env.references>"u")return!1;if(c<y&&e.src.charCodeAt(c)===91?(b=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?r=e.src.slice(b,c++):c=o+1):c=o+1,r||(r=e.src.slice(a,o)),u=e.env.references[L0e(r)],!u)return e.pos=f,!1;m=u.href,h=u.title}return t||(e.pos=a,e.posMax=o,_=e.push("link_open","a",1),_.attrs=i=[["href",m]],h&&i.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,_=e.push("link_close","a",-1)),e.pos=c,e.posMax=y,!0},F0e=kt.normalizeReference,af=kt.isSpace,U0e=function(e,t){var i,s,r,o,a,c,d,u,_,m,h,f,y,b="",g=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d<E&&e.src.charCodeAt(d)===40){for(d++;d<E&&(s=e.src.charCodeAt(d),!(!af(s)&&s!==10));d++);if(d>=E)return!1;for(y=d,_=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),_.ok&&(b=e.md.normalizeLink(_.str),e.md.validateLink(b)?d=_.pos:b=""),y=d;d<E&&(s=e.src.charCodeAt(d),!(!af(s)&&s!==10));d++);if(_=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<E&&y!==d&&_.ok)for(m=_.str,d=_.pos;d<E&&(s=e.src.charCodeAt(d),!(!af(s)&&s!==10));d++);else m="";if(d>=E||e.src.charCodeAt(d)!==41)return e.pos=g,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d<E&&e.src.charCodeAt(d)===91?(y=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?o=e.src.slice(y,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[F0e(o)],!u)return e.pos=g,!1;b=u.href,m=u.title}return t||(r=e.src.slice(c,a),e.md.inline.parse(r,e.md,e.env,f=[]),h=e.push("image","img",0),h.attrs=i=[["src",b],["alt",""]],h.children=f,h.content=r,m&&i.push(["title",m])),e.pos=d,e.posMax=E,!0},B0e=/^([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])?)*)$/,G0e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,V0e=function(e,t){var i,s,r,o,a,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,c=e.posMax;;){if(++d>=c||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return i=e.src.slice(a+1,d),G0e.test(i)?(s=e.md.normalizeLink(i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):B0e.test(i)?(s=e.md.normalizeLink("mailto:"+i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):!1},z0e=ep.HTML_TAG_RE;function H0e(n){return/^<a[>\s]/i.test(n)}function q0e(n){return/^<\/a\s*>/i.test(n)}function Y0e(n){var e=n|32;return e>=97&&e<=122}var $0e=function(e,t){var i,s,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(i=e.src.charCodeAt(a+1),i!==33&&i!==63&&i!==47&&!Y0e(i))||(s=e.src.slice(a).match(z0e),!s)?!1:(t||(o=e.push("html_inline","",0),o.content=s[0],H0e(o.content)&&e.linkLevel++,q0e(o.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},qv=jA,W0e=kt.has,K0e=kt.isValidEntityCode,Yv=kt.fromCodePoint,j0e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Q0e=/^&([a-z][a-z0-9]{1,31});/i,X0e=function(e,t){var i,s,r,o,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=c)return!1;if(i=e.src.charCodeAt(a+1),i===35){if(r=e.src.slice(a).match(j0e),r)return t||(s=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=K0e(s)?Yv(s):Yv(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(Q0e),r&&W0e(qv,r[1]))return t||(o=e.push("text_special","",0),o.content=qv[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function $v(n){var e,t,i,s,r,o,a,c,d={},u=n.length;if(u){var _=0,m=-2,h=[];for(e=0;e<u;e++)if(i=n[e],h.push(0),(n[_].marker!==i.marker||m!==i.token-1)&&(_=e),m=i.token,i.length=i.length||0,!!i.close){for(d.hasOwnProperty(i.marker)||(d[i.marker]=[-1,-1,-1,-1,-1,-1]),r=d[i.marker][(i.open?3:0)+i.length%3],t=_-h[_]-1,o=t;t>r;t-=h[t]+1)if(s=n[t],s.marker===i.marker&&s.open&&s.end<0&&(a=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(a=!0),!a)){c=t>0&&!n[t-1].open?h[t-1]+1:0,h[e]=e-t+c,h[t]=c,i.open=!1,s.end=e,s.close=!1,o=-1,m=-2;break}o!==-1&&(d[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var Z0e=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for($v(e.delimiters),t=0;t<s;t++)i[t]&&i[t].delimiters&&$v(i[t].delimiters)},J0e=function(e){var t,i,s=0,r=e.tokens,o=e.tokens.length;for(t=i=0;t<o;t++)r[t].nesting<0&&s--,r[t].level=s,r[t].nesting>0&&s++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==i&&(r[i]=r[t]),i++);t!==i&&(r.length=i)},S0=y0,Wv=kt.isWhiteSpace,Kv=kt.isPunctChar,jv=kt.isMdAsciiPunct;function oc(n,e,t,i){this.src=n,this.env=t,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}oc.prototype.pushPending=function(){var n=new S0("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n};oc.prototype.push=function(n,e,t){this.pending&&this.pushPending();var i=new S0(n,e,t),s=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(s),i};oc.prototype.scanDelims=function(n,e){var t=n,i,s,r,o,a,c,d,u,_,m=!0,h=!0,f=this.posMax,y=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;t<f&&this.src.charCodeAt(t)===y;)t++;return r=t-n,s=t<f?this.src.charCodeAt(t):32,d=jv(i)||Kv(String.fromCharCode(i)),_=jv(s)||Kv(String.fromCharCode(s)),c=Wv(i),u=Wv(s),u?m=!1:_&&(c||d||(m=!1)),c?h=!1:d&&(u||_||(h=!1)),e?(o=m,a=h):(o=m&&(!h||d),a=h&&(!m||_)),{can_open:o,can_close:a,length:r}};oc.prototype.Token=S0;var eye=oc,Qv=b0,lf=[["text",R0e],["linkify",M0e],["newline",O0e],["escape",k0e],["backticks",D0e],["strikethrough",ip.tokenize],["emphasis",sp.tokenize],["link",P0e],["image",U0e],["autolink",V0e],["html_inline",$0e],["entity",X0e]],cf=[["balance_pairs",Z0e],["strikethrough",ip.postProcess],["emphasis",sp.postProcess],["fragments_join",J0e]];function ac(){var n;for(this.ruler=new Qv,n=0;n<lf.length;n++)this.ruler.push(lf[n][0],lf[n][1]);for(this.ruler2=new Qv,n=0;n<cf.length;n++)this.ruler2.push(cf[n][0],cf[n][1])}ac.prototype.skipToken=function(n){var e,t,i=n.pos,s=this.ruler.getRules(""),r=s.length,o=n.md.options.maxNesting,a=n.cache;if(typeof a[i]<"u"){n.pos=a[i];return}if(n.level<o){for(t=0;t<r;t++)if(n.level++,e=s[t](n,!0),n.level--,e){if(i>=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[i]=n.pos};ac.prototype.tokenize=function(n){for(var e,t,i,s=this.ruler.getRules(""),r=s.length,o=n.posMax,a=n.md.options.maxNesting;n.pos<o;){if(i=n.pos,n.level<a){for(t=0;t<r;t++)if(e=s[t](n,!1),e){if(i>=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};ac.prototype.parse=function(n,e,t,i){var s,r,o,a=new this.State(n,e,t,i);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,s=0;s<o;s++)r[s](a)};ac.prototype.State=eye;var tye=ac,df,Xv;function nye(){return Xv||(Xv=1,df=function(n){var e={};n=n||{},e.src_Any=QA().source,e.src_Cc=XA().source,e.src_Z=ZA().source,e.src_P=g0.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><|]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),df}function ib(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n}function rp(n){return Object.prototype.toString.call(n)}function iye(n){return rp(n)==="[object String]"}function sye(n){return rp(n)==="[object Object]"}function rye(n){return rp(n)==="[object RegExp]"}function Zv(n){return rp(n)==="[object Function]"}function oye(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var rM={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function aye(n){return Object.keys(n||{}).reduce(function(e,t){return e||rM.hasOwnProperty(t)},!1)}var lye={"http:":{validate:function(n,e,t){var i=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(i)?i.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var i=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(i)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:i.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var i=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(i)?i.match(t.re.mailto)[0].length:0}}},cye="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]",dye="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function uye(n){n.__index__=-1,n.__text_cache__=""}function pye(n){return function(e,t){var i=e.slice(t);return n.test(i)?i.match(n)[0].length:0}}function Jv(){return function(n,e){e.normalize(n)}}function Zd(n){var e=n.re=nye()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(cye),t.push(e.src_xn),e.src_tlds=t.join("|");function i(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var s=[];n.__compiled__={};function r(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(n.__schemas__).forEach(function(a){var c=n.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,sye(c)){rye(c.validate)?d.validate=pye(c.validate):Zv(c.validate)?d.validate=c.validate:r(a,c),Zv(c.normalize)?d.normalize=c.normalize:c.normalize?r(a,c):d.normalize=Jv();return}if(iye(c)){s.push(a);return}r(a,c)}}),s.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:Jv()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(oye).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),uye(n)}function fye(n,e){var t=n.__index__,i=n.__last_index__,s=n.__text_cache__.slice(t,i);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=i+e,this.raw=s,this.text=s,this.url=s}function sb(n,e){var t=new fye(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function ai(n,e){if(!(this instanceof ai))return new ai(n,e);e||aye(n)&&(e=n,n={}),this.__opts__=ib({},rM,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ib({},lye,n),this.__compiled__={},this.__tlds__=dye,this.__tlds_replaced__=!1,this.re={},Zd(this)}ai.prototype.add=function(e,t){return this.__schemas__[e]=t,Zd(this),this};ai.prototype.set=function(e){return this.__opts__=ib(this.__opts__,e),this};ai.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,i,s,r,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(t=c.exec(e))!==null;)if(r=this.testSchemaAt(e,t[2],c.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=i.index+i[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(s=e.match(this.re.email_fuzzy))!==null&&(o=s.index+s[1].length,a=s.index+s[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};ai.prototype.pretest=function(e){return this.re.pretest.test(e)};ai.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0};ai.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(sb(this,t)),t=this.__last_index__);for(var s=t?e.slice(t):e;this.test(s);)i.push(sb(this,t)),s=s.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null};ai.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,sb(this,0)):null};ai.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,s,r){return i!==r[s-1]}).reverse(),Zd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Zd(this),this)};ai.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};ai.prototype.onCompile=function(){};var _ye=ai;const sa=2147483647,ts=36,T0=1,Yl=26,mye=38,hye=700,oM=72,aM=128,lM="-",gye=/^xn--/,bye=/[^\0-\x7F]/,yye=/[\x2E\u3002\uFF0E\uFF61]/g,Eye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},uf=ts-T0,ns=Math.floor,pf=String.fromCharCode;function rr(n){throw new RangeError(Eye[n])}function vye(n,e){const t=[];let i=n.length;for(;i--;)t[i]=e(n[i]);return t}function cM(n,e){const t=n.split("@");let i="";t.length>1&&(i=t[0]+"@",n=t[1]),n=n.replace(yye,".");const s=n.split("."),r=vye(s,e).join(".");return i+r}function x0(n){const e=[];let t=0;const i=n.length;for(;t<i;){const s=n.charCodeAt(t++);if(s>=55296&&s<=56319&&t<i){const r=n.charCodeAt(t++);(r&64512)==56320?e.push(((s&1023)<<10)+(r&1023)+65536):(e.push(s),t--)}else e.push(s)}return e}const dM=n=>String.fromCodePoint(...n),Sye=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:ts},eS=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},uM=function(n,e,t){let i=0;for(n=t?ns(n/hye):n>>1,n+=ns(n/e);n>uf*Yl>>1;i+=ts)n=ns(n/uf);return ns(i+(uf+1)*n/(n+mye))},C0=function(n){const e=[],t=n.length;let i=0,s=aM,r=oM,o=n.lastIndexOf(lM);o<0&&(o=0);for(let a=0;a<o;++a)n.charCodeAt(a)>=128&&rr("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a<t;){const c=i;for(let u=1,_=ts;;_+=ts){a>=t&&rr("invalid-input");const m=Sye(n.charCodeAt(a++));m>=ts&&rr("invalid-input"),m>ns((sa-i)/u)&&rr("overflow"),i+=m*u;const h=_<=r?T0:_>=r+Yl?Yl:_-r;if(m<h)break;const f=ts-h;u>ns(sa/f)&&rr("overflow"),u*=f}const d=e.length+1;r=uM(i-c,d,c==0),ns(i/d)>sa-s&&rr("overflow"),s+=ns(i/d),i%=d,e.splice(i++,0,s)}return String.fromCodePoint(...e)},w0=function(n){const e=[];n=x0(n);const t=n.length;let i=aM,s=0,r=oM;for(const c of n)c<128&&e.push(pf(c));const o=e.length;let a=o;for(o&&e.push(lM);a<t;){let c=sa;for(const u of n)u>=i&&u<c&&(c=u);const d=a+1;c-i>ns((sa-s)/d)&&rr("overflow"),s+=(c-i)*d,i=c;for(const u of n)if(u<i&&++s>sa&&rr("overflow"),u===i){let _=s;for(let m=ts;;m+=ts){const h=m<=r?T0:m>=r+Yl?Yl:m-r;if(_<h)break;const f=_-h,y=ts-h;e.push(pf(eS(h+f%y,0))),_=ns(f/y)}e.push(pf(eS(_,0))),r=uM(s,d,a===o),s=0,++a}++s,++i}return e.join("")},pM=function(n){return cM(n,function(e){return gye.test(e)?C0(e.slice(4).toLowerCase()):e})},fM=function(n){return cM(n,function(e){return bye.test(e)?"xn--"+w0(e):e})},Tye={version:"2.3.1",ucs2:{decode:x0,encode:dM},decode:C0,encode:w0,toASCII:fM,toUnicode:pM},xye=Object.freeze(Object.defineProperty({__proto__:null,decode:C0,default:Tye,encode:w0,toASCII:fM,toUnicode:pM,ucs2decode:x0,ucs2encode:dM},Symbol.toStringTag,{value:"Module"})),Cye=R4(xye);var wye={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Rye={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Aye={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Cl=kt,Mye=Ju,Nye=Sbe,Oye=$be,Iye=C0e,kye=tye,Dye=_ye,jr=Ga,_M=Cye,Lye={default:wye,zero:Rye,commonmark:Aye},Pye=/^(vbscript|javascript|file|data):/,Fye=/^data:image\/(gif|png|jpeg|webp);/;function Uye(n){var e=n.trim().toLowerCase();return Pye.test(e)?!!Fye.test(e):!0}var mM=["http:","https:","mailto:"];function Bye(n){var e=jr.parse(n,!0);if(e.hostname&&(!e.protocol||mM.indexOf(e.protocol)>=0))try{e.hostname=_M.toASCII(e.hostname)}catch{}return jr.encode(jr.format(e))}function Gye(n){var e=jr.parse(n,!0);if(e.hostname&&(!e.protocol||mM.indexOf(e.protocol)>=0))try{e.hostname=_M.toUnicode(e.hostname)}catch{}return jr.decode(jr.format(e),jr.decode.defaultChars+"%")}function Ri(n,e){if(!(this instanceof Ri))return new Ri(n,e);e||Cl.isString(n)||(e=n||{},n="default"),this.inline=new kye,this.block=new Iye,this.core=new Oye,this.renderer=new Nye,this.linkify=new Dye,this.validateLink=Uye,this.normalizeLink=Bye,this.normalizeLinkText=Gye,this.utils=Cl,this.helpers=Cl.assign({},Mye),this.options={},this.configure(n),e&&this.set(e)}Ri.prototype.set=function(n){return Cl.assign(this.options,n),this};Ri.prototype.configure=function(n){var e=this,t;if(Cl.isString(n)&&(t=n,n=Lye[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};Ri.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Ri.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Ri.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Ri.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Ri.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Ri.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Ri.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Vye=Ri,zye=Vye;const Hye=Rr(zye),qye="😀",Yye="😃",$ye="😄",Wye="😁",Kye="😆",jye="😆",Qye="😅",Xye="🤣",Zye="😂",Jye="🙂",eEe="🙃",tEe="😉",nEe="😊",iEe="😇",sEe="🥰",rEe="😍",oEe="🤩",aEe="😘",lEe="😗",cEe="☺️",dEe="😚",uEe="😙",pEe="🥲",fEe="😋",_Ee="😛",mEe="😜",hEe="🤪",gEe="😝",bEe="🤑",yEe="🤗",EEe="🤭",vEe="🤫",SEe="🤔",TEe="🤐",xEe="🤨",CEe="😐",wEe="😑",REe="😶",AEe="😏",MEe="😒",NEe="🙄",OEe="😬",IEe="🤥",kEe="😌",DEe="😔",LEe="😪",PEe="🤤",FEe="😴",UEe="😷",BEe="🤒",GEe="🤕",VEe="🤢",zEe="🤮",HEe="🤧",qEe="🥵",YEe="🥶",$Ee="🥴",WEe="😵",KEe="🤯",jEe="🤠",QEe="🥳",XEe="🥸",ZEe="😎",JEe="🤓",eve="🧐",tve="😕",nve="😟",ive="🙁",sve="☹️",rve="😮",ove="😯",ave="😲",lve="😳",cve="🥺",dve="😦",uve="😧",pve="😨",fve="😰",_ve="😥",mve="😢",hve="😭",gve="😱",bve="😖",yve="😣",Eve="😞",vve="😓",Sve="😩",Tve="😫",xve="🥱",Cve="😤",wve="😡",Rve="😡",Ave="😠",Mve="🤬",Nve="😈",Ove="👿",Ive="💀",kve="☠️",Dve="💩",Lve="💩",Pve="💩",Fve="🤡",Uve="👹",Bve="👺",Gve="👻",Vve="👽",zve="👾",Hve="🤖",qve="😺",Yve="😸",$ve="😹",Wve="😻",Kve="😼",jve="😽",Qve="🙀",Xve="😿",Zve="😾",Jve="🙈",eSe="🙉",tSe="🙊",nSe="💋",iSe="💌",sSe="💘",rSe="💝",oSe="💖",aSe="💗",lSe="💓",cSe="💞",dSe="💕",uSe="💟",pSe="❣️",fSe="💔",_Se="❤️",mSe="🧡",hSe="💛",gSe="💚",bSe="💙",ySe="💜",ESe="🤎",vSe="🖤",SSe="🤍",TSe="💢",xSe="💥",CSe="💥",wSe="💫",RSe="💦",ASe="💨",MSe="🕳️",NSe="💣",OSe="💬",ISe="👁️‍🗨️",kSe="🗨️",DSe="🗯️",LSe="💭",PSe="💤",FSe="👋",USe="🤚",BSe="🖐️",GSe="✋",VSe="✋",zSe="🖖",HSe="👌",qSe="🤌",YSe="🤏",$Se="✌️",WSe="🤞",KSe="🤟",jSe="🤘",QSe="🤙",XSe="👈",ZSe="👉",JSe="👆",e1e="🖕",t1e="🖕",n1e="👇",i1e="☝️",s1e="👍",r1e="👎",o1e="✊",a1e="✊",l1e="👊",c1e="👊",d1e="👊",u1e="🤛",p1e="🤜",f1e="👏",_1e="🙌",m1e="👐",h1e="🤲",g1e="🤝",b1e="🙏",y1e="✍️",E1e="💅",v1e="🤳",S1e="💪",T1e="🦾",x1e="🦿",C1e="🦵",w1e="🦶",R1e="👂",A1e="🦻",M1e="👃",N1e="🧠",O1e="🫀",I1e="🫁",k1e="🦷",D1e="🦴",L1e="👀",P1e="👁️",F1e="👅",U1e="👄",B1e="👶",G1e="🧒",V1e="👦",z1e="👧",H1e="🧑",q1e="👱",Y1e="👨",$1e="🧔",W1e="👨‍🦰",K1e="👨‍🦱",j1e="👨‍🦳",Q1e="👨‍🦲",X1e="👩",Z1e="👩‍🦰",J1e="🧑‍🦰",eTe="👩‍🦱",tTe="🧑‍🦱",nTe="👩‍🦳",iTe="🧑‍🦳",sTe="👩‍🦲",rTe="🧑‍🦲",oTe="👱‍♀️",aTe="👱‍♀️",lTe="👱‍♂️",cTe="🧓",dTe="👴",uTe="👵",pTe="🙍",fTe="🙍‍♂️",_Te="🙍‍♀️",mTe="🙎",hTe="🙎‍♂️",gTe="🙎‍♀️",bTe="🙅",yTe="🙅‍♂️",ETe="🙅‍♂️",vTe="🙅‍♀️",STe="🙅‍♀️",TTe="🙆",xTe="🙆‍♂️",CTe="🙆‍♀️",wTe="💁",RTe="💁",ATe="💁‍♂️",MTe="💁‍♂️",NTe="💁‍♀️",OTe="💁‍♀️",ITe="🙋",kTe="🙋‍♂️",DTe="🙋‍♀️",LTe="🧏",PTe="🧏‍♂️",FTe="🧏‍♀️",UTe="🙇",BTe="🙇‍♂️",GTe="🙇‍♀️",VTe="🤦",zTe="🤦‍♂️",HTe="🤦‍♀️",qTe="🤷",YTe="🤷‍♂️",$Te="🤷‍♀️",WTe="🧑‍⚕️",KTe="👨‍⚕️",jTe="👩‍⚕️",QTe="🧑‍🎓",XTe="👨‍🎓",ZTe="👩‍🎓",JTe="🧑‍🏫",exe="👨‍🏫",txe="👩‍🏫",nxe="🧑‍⚖️",ixe="👨‍⚖️",sxe="👩‍⚖️",rxe="🧑‍🌾",oxe="👨‍🌾",axe="👩‍🌾",lxe="🧑‍🍳",cxe="👨‍🍳",dxe="👩‍🍳",uxe="🧑‍🔧",pxe="👨‍🔧",fxe="👩‍🔧",_xe="🧑‍🏭",mxe="👨‍🏭",hxe="👩‍🏭",gxe="🧑‍💼",bxe="👨‍💼",yxe="👩‍💼",Exe="🧑‍🔬",vxe="👨‍🔬",Sxe="👩‍🔬",Txe="🧑‍💻",xxe="👨‍💻",Cxe="👩‍💻",wxe="🧑‍🎤",Rxe="👨‍🎤",Axe="👩‍🎤",Mxe="🧑‍🎨",Nxe="👨‍🎨",Oxe="👩‍🎨",Ixe="🧑‍✈️",kxe="👨‍✈️",Dxe="👩‍✈️",Lxe="🧑‍🚀",Pxe="👨‍🚀",Fxe="👩‍🚀",Uxe="🧑‍🚒",Bxe="👨‍🚒",Gxe="👩‍🚒",Vxe="👮",zxe="👮",Hxe="👮‍♂️",qxe="👮‍♀️",Yxe="🕵️",$xe="🕵️‍♂️",Wxe="🕵️‍♀️",Kxe="💂",jxe="💂‍♂️",Qxe="💂‍♀️",Xxe="🥷",Zxe="👷",Jxe="👷‍♂️",eCe="👷‍♀️",tCe="🤴",nCe="👸",iCe="👳",sCe="👳‍♂️",rCe="👳‍♀️",oCe="👲",aCe="🧕",lCe="🤵",cCe="🤵‍♂️",dCe="🤵‍♀️",uCe="👰",pCe="👰‍♂️",fCe="👰‍♀️",_Ce="👰‍♀️",mCe="🤰",hCe="🤱",gCe="👩‍🍼",bCe="👨‍🍼",yCe="🧑‍🍼",ECe="👼",vCe="🎅",SCe="🤶",TCe="🧑‍🎄",xCe="🦸",CCe="🦸‍♂️",wCe="🦸‍♀️",RCe="🦹",ACe="🦹‍♂️",MCe="🦹‍♀️",NCe="🧙",OCe="🧙‍♂️",ICe="🧙‍♀️",kCe="🧚",DCe="🧚‍♂️",LCe="🧚‍♀️",PCe="🧛",FCe="🧛‍♂️",UCe="🧛‍♀️",BCe="🧜",GCe="🧜‍♂️",VCe="🧜‍♀️",zCe="🧝",HCe="🧝‍♂️",qCe="🧝‍♀️",YCe="🧞",$Ce="🧞‍♂️",WCe="🧞‍♀️",KCe="🧟",jCe="🧟‍♂️",QCe="🧟‍♀️",XCe="💆",ZCe="💆‍♂️",JCe="💆‍♀️",ewe="💇",twe="💇‍♂️",nwe="💇‍♀️",iwe="🚶",swe="🚶‍♂️",rwe="🚶‍♀️",owe="🧍",awe="🧍‍♂️",lwe="🧍‍♀️",cwe="🧎",dwe="🧎‍♂️",uwe="🧎‍♀️",pwe="🧑‍🦯",fwe="👨‍🦯",_we="👩‍🦯",mwe="🧑‍🦼",hwe="👨‍🦼",gwe="👩‍🦼",bwe="🧑‍🦽",ywe="👨‍🦽",Ewe="👩‍🦽",vwe="🏃",Swe="🏃",Twe="🏃‍♂️",xwe="🏃‍♀️",Cwe="💃",wwe="💃",Rwe="🕺",Awe="🕴️",Mwe="👯",Nwe="👯‍♂️",Owe="👯‍♀️",Iwe="🧖",kwe="🧖‍♂️",Dwe="🧖‍♀️",Lwe="🧗",Pwe="🧗‍♂️",Fwe="🧗‍♀️",Uwe="🤺",Bwe="🏇",Gwe="⛷️",Vwe="🏂",zwe="🏌️",Hwe="🏌️‍♂️",qwe="🏌️‍♀️",Ywe="🏄",$we="🏄‍♂️",Wwe="🏄‍♀️",Kwe="🚣",jwe="🚣‍♂️",Qwe="🚣‍♀️",Xwe="🏊",Zwe="🏊‍♂️",Jwe="🏊‍♀️",e2e="⛹️",t2e="⛹️‍♂️",n2e="⛹️‍♂️",i2e="⛹️‍♀️",s2e="⛹️‍♀️",r2e="🏋️",o2e="🏋️‍♂️",a2e="🏋️‍♀️",l2e="🚴",c2e="🚴‍♂️",d2e="🚴‍♀️",u2e="🚵",p2e="🚵‍♂️",f2e="🚵‍♀️",_2e="🤸",m2e="🤸‍♂️",h2e="🤸‍♀️",g2e="🤼",b2e="🤼‍♂️",y2e="🤼‍♀️",E2e="🤽",v2e="🤽‍♂️",S2e="🤽‍♀️",T2e="🤾",x2e="🤾‍♂️",C2e="🤾‍♀️",w2e="🤹",R2e="🤹‍♂️",A2e="🤹‍♀️",M2e="🧘",N2e="🧘‍♂️",O2e="🧘‍♀️",I2e="🛀",k2e="🛌",D2e="🧑‍🤝‍🧑",L2e="👭",P2e="👫",F2e="👬",U2e="💏",B2e="👩‍❤️‍💋‍👨",G2e="👨‍❤️‍💋‍👨",V2e="👩‍❤️‍💋‍👩",z2e="💑",H2e="👩‍❤️‍👨",q2e="👨‍❤️‍👨",Y2e="👩‍❤️‍👩",$2e="👪",W2e="👨‍👩‍👦",K2e="👨‍👩‍👧",j2e="👨‍👩‍👧‍👦",Q2e="👨‍👩‍👦‍👦",X2e="👨‍👩‍👧‍👧",Z2e="👨‍👨‍👦",J2e="👨‍👨‍👧",eRe="👨‍👨‍👧‍👦",tRe="👨‍👨‍👦‍👦",nRe="👨‍👨‍👧‍👧",iRe="👩‍👩‍👦",sRe="👩‍👩‍👧",rRe="👩‍👩‍👧‍👦",oRe="👩‍👩‍👦‍👦",aRe="👩‍👩‍👧‍👧",lRe="👨‍👦",cRe="👨‍👦‍👦",dRe="👨‍👧",uRe="👨‍👧‍👦",pRe="👨‍👧‍👧",fRe="👩‍👦",_Re="👩‍👦‍👦",mRe="👩‍👧",hRe="👩‍👧‍👦",gRe="👩‍👧‍👧",bRe="🗣️",yRe="👤",ERe="👥",vRe="🫂",SRe="👣",TRe="🐵",xRe="🐒",CRe="🦍",wRe="🦧",RRe="🐶",ARe="🐕",MRe="🦮",NRe="🐕‍🦺",ORe="🐩",IRe="🐺",kRe="🦊",DRe="🦝",LRe="🐱",PRe="🐈",FRe="🐈‍⬛",URe="🦁",BRe="🐯",GRe="🐅",VRe="🐆",zRe="🐴",HRe="🐎",qRe="🦄",YRe="🦓",$Re="🦌",WRe="🦬",KRe="🐮",jRe="🐂",QRe="🐃",XRe="🐄",ZRe="🐷",JRe="🐖",eAe="🐗",tAe="🐽",nAe="🐏",iAe="🐑",sAe="🐐",rAe="🐪",oAe="🐫",aAe="🦙",lAe="🦒",cAe="🐘",dAe="🦣",uAe="🦏",pAe="🦛",fAe="🐭",_Ae="🐁",mAe="🐀",hAe="🐹",gAe="🐰",bAe="🐇",yAe="🐿️",EAe="🦫",vAe="🦔",SAe="🦇",TAe="🐻",xAe="🐻‍❄️",CAe="🐨",wAe="🐼",RAe="🦥",AAe="🦦",MAe="🦨",NAe="🦘",OAe="🦡",IAe="🐾",kAe="🐾",DAe="🦃",LAe="🐔",PAe="🐓",FAe="🐣",UAe="🐤",BAe="🐥",GAe="🐦",VAe="🐧",zAe="🕊️",HAe="🦅",qAe="🦆",YAe="🦢",$Ae="🦉",WAe="🦤",KAe="🪶",jAe="🦩",QAe="🦚",XAe="🦜",ZAe="🐸",JAe="🐊",eMe="🐢",tMe="🦎",nMe="🐍",iMe="🐲",sMe="🐉",rMe="🦕",oMe="🐳",aMe="🐋",lMe="🐬",cMe="🐬",dMe="🦭",uMe="🐟",pMe="🐠",fMe="🐡",_Me="🦈",mMe="🐙",hMe="🐚",gMe="🐌",bMe="🦋",yMe="🐛",EMe="🐜",vMe="🐝",SMe="🐝",TMe="🪲",xMe="🐞",CMe="🦗",wMe="🪳",RMe="🕷️",AMe="🕸️",MMe="🦂",NMe="🦟",OMe="🪰",IMe="🪱",kMe="🦠",DMe="💐",LMe="🌸",PMe="💮",FMe="🏵️",UMe="🌹",BMe="🥀",GMe="🌺",VMe="🌻",zMe="🌼",HMe="🌷",qMe="🌱",YMe="🪴",$Me="🌲",WMe="🌳",KMe="🌴",jMe="🌵",QMe="🌾",XMe="🌿",ZMe="☘️",JMe="🍀",eNe="🍁",tNe="🍂",nNe="🍃",iNe="🍇",sNe="🍈",rNe="🍉",oNe="🍊",aNe="🍊",lNe="🍊",cNe="🍋",dNe="🍌",uNe="🍍",pNe="🥭",fNe="🍎",_Ne="🍏",mNe="🍐",hNe="🍑",gNe="🍒",bNe="🍓",yNe="🫐",ENe="🥝",vNe="🍅",SNe="🫒",TNe="🥥",xNe="🥑",CNe="🍆",wNe="🥔",RNe="🥕",ANe="🌽",MNe="🌶️",NNe="🫑",ONe="🥒",INe="🥬",kNe="🥦",DNe="🧄",LNe="🧅",PNe="🍄",FNe="🥜",UNe="🌰",BNe="🍞",GNe="🥐",VNe="🥖",zNe="🫓",HNe="🥨",qNe="🥯",YNe="🥞",$Ne="🧇",WNe="🧀",KNe="🍖",jNe="🍗",QNe="🥩",XNe="🥓",ZNe="🍔",JNe="🍟",eOe="🍕",tOe="🌭",nOe="🥪",iOe="🌮",sOe="🌯",rOe="🫔",oOe="🥙",aOe="🧆",lOe="🥚",cOe="🍳",dOe="🥘",uOe="🍲",pOe="🫕",fOe="🥣",_Oe="🥗",mOe="🍿",hOe="🧈",gOe="🧂",bOe="🥫",yOe="🍱",EOe="🍘",vOe="🍙",SOe="🍚",TOe="🍛",xOe="🍜",COe="🍝",wOe="🍠",ROe="🍢",AOe="🍣",MOe="🍤",NOe="🍥",OOe="🥮",IOe="🍡",kOe="🥟",DOe="🥠",LOe="🥡",POe="🦀",FOe="🦞",UOe="🦐",BOe="🦑",GOe="🦪",VOe="🍦",zOe="🍧",HOe="🍨",qOe="🍩",YOe="🍪",$Oe="🎂",WOe="🍰",KOe="🧁",jOe="🥧",QOe="🍫",XOe="🍬",ZOe="🍭",JOe="🍮",eIe="🍯",tIe="🍼",nIe="🥛",iIe="☕",sIe="🫖",rIe="🍵",oIe="🍶",aIe="🍾",lIe="🍷",cIe="🍸",dIe="🍹",uIe="🍺",pIe="🍻",fIe="🥂",_Ie="🥃",mIe="🥤",hIe="🧋",gIe="🧃",bIe="🧉",yIe="🧊",EIe="🥢",vIe="🍽️",SIe="🍴",TIe="🥄",xIe="🔪",CIe="🔪",wIe="🏺",RIe="🌍",AIe="🌎",MIe="🌏",NIe="🌐",OIe="🗺️",IIe="🗾",kIe="🧭",DIe="🏔️",LIe="⛰️",PIe="🌋",FIe="🗻",UIe="🏕️",BIe="🏖️",GIe="🏜️",VIe="🏝️",zIe="🏞️",HIe="🏟️",qIe="🏛️",YIe="🏗️",$Ie="🧱",WIe="🪨",KIe="🪵",jIe="🛖",QIe="🏘️",XIe="🏚️",ZIe="🏠",JIe="🏡",eke="🏢",tke="🏣",nke="🏤",ike="🏥",ske="🏦",rke="🏨",oke="🏩",ake="🏪",lke="🏫",cke="🏬",dke="🏭",uke="🏯",pke="🏰",fke="💒",_ke="🗼",mke="🗽",hke="⛪",gke="🕌",bke="🛕",yke="🕍",Eke="⛩️",vke="🕋",Ske="⛲",Tke="⛺",xke="🌁",Cke="🌃",wke="🏙️",Rke="🌄",Ake="🌅",Mke="🌆",Nke="🌇",Oke="🌉",Ike="♨️",kke="🎠",Dke="🎡",Lke="🎢",Pke="💈",Fke="🎪",Uke="🚂",Bke="🚃",Gke="🚄",Vke="🚅",zke="🚆",Hke="🚇",qke="🚈",Yke="🚉",$ke="🚊",Wke="🚝",Kke="🚞",jke="🚋",Qke="🚌",Xke="🚍",Zke="🚎",Jke="🚐",eDe="🚑",tDe="🚒",nDe="🚓",iDe="🚔",sDe="🚕",rDe="🚖",oDe="🚗",aDe="🚗",lDe="🚘",cDe="🚙",dDe="🛻",uDe="🚚",pDe="🚛",fDe="🚜",_De="🏎️",mDe="🏍️",hDe="🛵",gDe="🦽",bDe="🦼",yDe="🛺",EDe="🚲",vDe="🛴",SDe="🛹",TDe="🛼",xDe="🚏",CDe="🛣️",wDe="🛤️",RDe="🛢️",ADe="⛽",MDe="🚨",NDe="🚥",ODe="🚦",IDe="🛑",kDe="🚧",DDe="⚓",LDe="⛵",PDe="⛵",FDe="🛶",UDe="🚤",BDe="🛳️",GDe="⛴️",VDe="🛥️",zDe="🚢",HDe="✈️",qDe="🛩️",YDe="🛫",$De="🛬",WDe="🪂",KDe="💺",jDe="🚁",QDe="🚟",XDe="🚠",ZDe="🚡",JDe="🛰️",eLe="🚀",tLe="🛸",nLe="🛎️",iLe="🧳",sLe="⌛",rLe="⏳",oLe="⌚",aLe="⏰",lLe="⏱️",cLe="⏲️",dLe="🕰️",uLe="🕛",pLe="🕧",fLe="🕐",_Le="🕜",mLe="🕑",hLe="🕝",gLe="🕒",bLe="🕞",yLe="🕓",ELe="🕟",vLe="🕔",SLe="🕠",TLe="🕕",xLe="🕡",CLe="🕖",wLe="🕢",RLe="🕗",ALe="🕣",MLe="🕘",NLe="🕤",OLe="🕙",ILe="🕥",kLe="🕚",DLe="🕦",LLe="🌑",PLe="🌒",FLe="🌓",ULe="🌔",BLe="🌔",GLe="🌕",VLe="🌖",zLe="🌗",HLe="🌘",qLe="🌙",YLe="🌚",$Le="🌛",WLe="🌜",KLe="🌡️",jLe="☀️",QLe="🌝",XLe="🌞",ZLe="🪐",JLe="⭐",ePe="🌟",tPe="🌠",nPe="🌌",iPe="☁️",sPe="⛅",rPe="⛈️",oPe="🌤️",aPe="🌥️",lPe="🌦️",cPe="🌧️",dPe="🌨️",uPe="🌩️",pPe="🌪️",fPe="🌫️",_Pe="🌬️",mPe="🌀",hPe="🌈",gPe="🌂",bPe="☂️",yPe="☔",EPe="⛱️",vPe="⚡",SPe="❄️",TPe="☃️",xPe="⛄",CPe="☄️",wPe="🔥",RPe="💧",APe="🌊",MPe="🎃",NPe="🎄",OPe="🎆",IPe="🎇",kPe="🧨",DPe="✨",LPe="🎈",PPe="🎉",FPe="🎊",UPe="🎋",BPe="🎍",GPe="🎎",VPe="🎏",zPe="🎐",HPe="🎑",qPe="🧧",YPe="🎀",$Pe="🎁",WPe="🎗️",KPe="🎟️",jPe="🎫",QPe="🎖️",XPe="🏆",ZPe="🏅",JPe="⚽",e3e="⚾",t3e="🥎",n3e="🏀",i3e="🏐",s3e="🏈",r3e="🏉",o3e="🎾",a3e="🥏",l3e="🎳",c3e="🏏",d3e="🏑",u3e="🏒",p3e="🥍",f3e="🏓",_3e="🏸",m3e="🥊",h3e="🥋",g3e="🥅",b3e="⛳",y3e="⛸️",E3e="🎣",v3e="🤿",S3e="🎽",T3e="🎿",x3e="🛷",C3e="🥌",w3e="🎯",R3e="🪀",A3e="🪁",M3e="🔮",N3e="🪄",O3e="🧿",I3e="🎮",k3e="🕹️",D3e="🎰",L3e="🎲",P3e="🧩",F3e="🧸",U3e="🪅",B3e="🪆",G3e="♠️",V3e="♥️",z3e="♦️",H3e="♣️",q3e="♟️",Y3e="🃏",$3e="🀄",W3e="🎴",K3e="🎭",j3e="🖼️",Q3e="🎨",X3e="🧵",Z3e="🪡",J3e="🧶",e4e="🪢",t4e="👓",n4e="🕶️",i4e="🥽",s4e="🥼",r4e="🦺",o4e="👔",a4e="👕",l4e="👕",c4e="👖",d4e="🧣",u4e="🧤",p4e="🧥",f4e="🧦",_4e="👗",m4e="👘",h4e="🥻",g4e="🩱",b4e="🩲",y4e="🩳",E4e="👙",v4e="👚",S4e="👛",T4e="👜",x4e="👝",C4e="🛍️",w4e="🎒",R4e="🩴",A4e="👞",M4e="👞",N4e="👟",O4e="🥾",I4e="🥿",k4e="👠",D4e="👡",L4e="🩰",P4e="👢",F4e="👑",U4e="👒",B4e="🎩",G4e="🎓",V4e="🧢",z4e="🪖",H4e="⛑️",q4e="📿",Y4e="💄",$4e="💍",W4e="💎",K4e="🔇",j4e="🔈",Q4e="🔉",X4e="🔊",Z4e="📢",J4e="📣",e5e="📯",t5e="🔔",n5e="🔕",i5e="🎼",s5e="🎵",r5e="🎶",o5e="🎙️",a5e="🎚️",l5e="🎛️",c5e="🎤",d5e="🎧",u5e="📻",p5e="🎷",f5e="🪗",_5e="🎸",m5e="🎹",h5e="🎺",g5e="🎻",b5e="🪕",y5e="🥁",E5e="🪘",v5e="📱",S5e="📲",T5e="☎️",x5e="☎️",C5e="📞",w5e="📟",R5e="📠",A5e="🔋",M5e="🔌",N5e="💻",O5e="🖥️",I5e="🖨️",k5e="⌨️",D5e="🖱️",L5e="🖲️",P5e="💽",F5e="💾",U5e="💿",B5e="📀",G5e="🧮",V5e="🎥",z5e="🎞️",H5e="📽️",q5e="🎬",Y5e="📺",$5e="📷",W5e="📸",K5e="📹",j5e="📼",Q5e="🔍",X5e="🔎",Z5e="🕯️",J5e="💡",eFe="🔦",tFe="🏮",nFe="🏮",iFe="🪔",sFe="📔",rFe="📕",oFe="📖",aFe="📖",lFe="📗",cFe="📘",dFe="📙",uFe="📚",pFe="📓",fFe="📒",_Fe="📃",mFe="📜",hFe="📄",gFe="📰",bFe="🗞️",yFe="📑",EFe="🔖",vFe="🏷️",SFe="💰",TFe="🪙",xFe="💴",CFe="💵",wFe="💶",RFe="💷",AFe="💸",MFe="💳",NFe="🧾",OFe="💹",IFe="✉️",kFe="📧",DFe="📨",LFe="📩",PFe="📤",FFe="📥",UFe="📫",BFe="📪",GFe="📬",VFe="📭",zFe="📮",HFe="🗳️",qFe="✏️",YFe="✒️",$Fe="🖋️",WFe="🖊️",KFe="🖌️",jFe="🖍️",QFe="📝",XFe="📝",ZFe="💼",JFe="📁",eUe="📂",tUe="🗂️",nUe="📅",iUe="📆",sUe="🗒️",rUe="🗓️",oUe="📇",aUe="📈",lUe="📉",cUe="📊",dUe="📋",uUe="📌",pUe="📍",fUe="📎",_Ue="🖇️",mUe="📏",hUe="📐",gUe="✂️",bUe="🗃️",yUe="🗄️",EUe="🗑️",vUe="🔒",SUe="🔓",TUe="🔏",xUe="🔐",CUe="🔑",wUe="🗝️",RUe="🔨",AUe="🪓",MUe="⛏️",NUe="⚒️",OUe="🛠️",IUe="🗡️",kUe="⚔️",DUe="🔫",LUe="🪃",PUe="🏹",FUe="🛡️",UUe="🪚",BUe="🔧",GUe="🪛",VUe="🔩",zUe="⚙️",HUe="🗜️",qUe="⚖️",YUe="🦯",$Ue="🔗",WUe="⛓️",KUe="🪝",jUe="🧰",QUe="🧲",XUe="🪜",ZUe="⚗️",JUe="🧪",eBe="🧫",tBe="🧬",nBe="🔬",iBe="🔭",sBe="📡",rBe="💉",oBe="🩸",aBe="💊",lBe="🩹",cBe="🩺",dBe="🚪",uBe="🛗",pBe="🪞",fBe="🪟",_Be="🛏️",mBe="🛋️",hBe="🪑",gBe="🚽",bBe="🪠",yBe="🚿",EBe="🛁",vBe="🪤",SBe="🪒",TBe="🧴",xBe="🧷",CBe="🧹",wBe="🧺",RBe="🧻",ABe="🪣",MBe="🧼",NBe="🪥",OBe="🧽",IBe="🧯",kBe="🛒",DBe="🚬",LBe="⚰️",PBe="🪦",FBe="⚱️",UBe="🗿",BBe="🪧",GBe="🏧",VBe="🚮",zBe="🚰",HBe="♿",qBe="🚹",YBe="🚺",$Be="🚻",WBe="🚼",KBe="🚾",jBe="🛂",QBe="🛃",XBe="🛄",ZBe="🛅",JBe="⚠️",e6e="🚸",t6e="⛔",n6e="🚫",i6e="🚳",s6e="🚭",r6e="🚯",o6e="🚷",a6e="📵",l6e="🔞",c6e="☢️",d6e="☣️",u6e="⬆️",p6e="↗️",f6e="➡️",_6e="↘️",m6e="⬇️",h6e="↙️",g6e="⬅️",b6e="↖️",y6e="↕️",E6e="↔️",v6e="↩️",S6e="↪️",T6e="⤴️",x6e="⤵️",C6e="🔃",w6e="🔄",R6e="🔙",A6e="🔚",M6e="🔛",N6e="🔜",O6e="🔝",I6e="🛐",k6e="⚛️",D6e="🕉️",L6e="✡️",P6e="☸️",F6e="☯️",U6e="✝️",B6e="☦️",G6e="☪️",V6e="☮️",z6e="🕎",H6e="🔯",q6e="♈",Y6e="♉",$6e="♊",W6e="♋",K6e="♌",j6e="♍",Q6e="♎",X6e="♏",Z6e="♐",J6e="♑",e9e="♒",t9e="♓",n9e="⛎",i9e="🔀",s9e="🔁",r9e="🔂",o9e="▶️",a9e="⏩",l9e="⏭️",c9e="⏯️",d9e="◀️",u9e="⏪",p9e="⏮️",f9e="🔼",_9e="⏫",m9e="🔽",h9e="⏬",g9e="⏸️",b9e="⏹️",y9e="⏺️",E9e="⏏️",v9e="🎦",S9e="🔅",T9e="🔆",x9e="📶",C9e="📳",w9e="📴",R9e="♀️",A9e="♂️",M9e="⚧️",N9e="✖️",O9e="➕",I9e="➖",k9e="➗",D9e="♾️",L9e="‼️",P9e="⁉️",F9e="❓",U9e="❔",B9e="❕",G9e="❗",V9e="❗",z9e="〰️",H9e="💱",q9e="💲",Y9e="⚕️",$9e="♻️",W9e="⚜️",K9e="🔱",j9e="📛",Q9e="🔰",X9e="⭕",Z9e="✅",J9e="☑️",e8e="✔️",t8e="❌",n8e="❎",i8e="➰",s8e="➿",r8e="〽️",o8e="✳️",a8e="✴️",l8e="❇️",c8e="©️",d8e="®️",u8e="™️",p8e="#️⃣",f8e="*️⃣",_8e="0️⃣",m8e="1️⃣",h8e="2️⃣",g8e="3️⃣",b8e="4️⃣",y8e="5️⃣",E8e="6️⃣",v8e="7️⃣",S8e="8️⃣",T8e="9️⃣",x8e="🔟",C8e="🔠",w8e="🔡",R8e="🔣",A8e="🔤",M8e="🅰️",N8e="🆎",O8e="🅱️",I8e="🆑",k8e="🆒",D8e="🆓",L8e="ℹ️",P8e="🆔",F8e="Ⓜ️",U8e="🆖",B8e="🅾️",G8e="🆗",V8e="🅿️",z8e="🆘",H8e="🆙",q8e="🆚",Y8e="🈁",$8e="🈂️",W8e="🉐",K8e="🉑",j8e="㊗️",Q8e="㊙️",X8e="🈵",Z8e="🔴",J8e="🟠",eGe="🟡",tGe="🟢",nGe="🔵",iGe="🟣",sGe="🟤",rGe="⚫",oGe="⚪",aGe="🟥",lGe="🟧",cGe="🟨",dGe="🟩",uGe="🟦",pGe="🟪",fGe="🟫",_Ge="⬛",mGe="⬜",hGe="◼️",gGe="◻️",bGe="◾",yGe="◽",EGe="▪️",vGe="▫️",SGe="🔶",TGe="🔷",xGe="🔸",CGe="🔹",wGe="🔺",RGe="🔻",AGe="💠",MGe="🔘",NGe="🔳",OGe="🔲",IGe="🏁",kGe="🚩",DGe="🎌",LGe="🏴",PGe="🏳️",FGe="🏳️‍🌈",UGe="🏳️‍⚧️",BGe="🏴‍☠️",GGe="🇦🇨",VGe="🇦🇩",zGe="🇦🇪",HGe="🇦🇫",qGe="🇦🇬",YGe="🇦🇮",$Ge="🇦🇱",WGe="🇦🇲",KGe="🇦🇴",jGe="🇦🇶",QGe="🇦🇷",XGe="🇦🇸",ZGe="🇦🇹",JGe="🇦🇺",e7e="🇦🇼",t7e="🇦🇽",n7e="🇦🇿",i7e="🇧🇦",s7e="🇧🇧",r7e="🇧🇩",o7e="🇧🇪",a7e="🇧🇫",l7e="🇧🇬",c7e="🇧🇭",d7e="🇧🇮",u7e="🇧🇯",p7e="🇧🇱",f7e="🇧🇲",_7e="🇧🇳",m7e="🇧🇴",h7e="🇧🇶",g7e="🇧🇷",b7e="🇧🇸",y7e="🇧🇹",E7e="🇧🇻",v7e="🇧🇼",S7e="🇧🇾",T7e="🇧🇿",x7e="🇨🇦",C7e="🇨🇨",w7e="🇨🇩",R7e="🇨🇫",A7e="🇨🇬",M7e="🇨🇭",N7e="🇨🇮",O7e="🇨🇰",I7e="🇨🇱",k7e="🇨🇲",D7e="🇨🇳",L7e="🇨🇴",P7e="🇨🇵",F7e="🇨🇷",U7e="🇨🇺",B7e="🇨🇻",G7e="🇨🇼",V7e="🇨🇽",z7e="🇨🇾",H7e="🇨🇿",q7e="🇩🇪",Y7e="🇩🇬",$7e="🇩🇯",W7e="🇩🇰",K7e="🇩🇲",j7e="🇩🇴",Q7e="🇩🇿",X7e="🇪🇦",Z7e="🇪🇨",J7e="🇪🇪",eVe="🇪🇬",tVe="🇪🇭",nVe="🇪🇷",iVe="🇪🇸",sVe="🇪🇹",rVe="🇪🇺",oVe="🇪🇺",aVe="🇫🇮",lVe="🇫🇯",cVe="🇫🇰",dVe="🇫🇲",uVe="🇫🇴",pVe="🇫🇷",fVe="🇬🇦",_Ve="🇬🇧",mVe="🇬🇧",hVe="🇬🇩",gVe="🇬🇪",bVe="🇬🇫",yVe="🇬🇬",EVe="🇬🇭",vVe="🇬🇮",SVe="🇬🇱",TVe="🇬🇲",xVe="🇬🇳",CVe="🇬🇵",wVe="🇬🇶",RVe="🇬🇷",AVe="🇬🇸",MVe="🇬🇹",NVe="🇬🇺",OVe="🇬🇼",IVe="🇬🇾",kVe="🇭🇰",DVe="🇭🇲",LVe="🇭🇳",PVe="🇭🇷",FVe="🇭🇹",UVe="🇭🇺",BVe="🇮🇨",GVe="🇮🇩",VVe="🇮🇪",zVe="🇮🇱",HVe="🇮🇲",qVe="🇮🇳",YVe="🇮🇴",$Ve="🇮🇶",WVe="🇮🇷",KVe="🇮🇸",jVe="🇮🇹",QVe="🇯🇪",XVe="🇯🇲",ZVe="🇯🇴",JVe="🇯🇵",eze="🇰🇪",tze="🇰🇬",nze="🇰🇭",ize="🇰🇮",sze="🇰🇲",rze="🇰🇳",oze="🇰🇵",aze="🇰🇷",lze="🇰🇼",cze="🇰🇾",dze="🇰🇿",uze="🇱🇦",pze="🇱🇧",fze="🇱🇨",_ze="🇱🇮",mze="🇱🇰",hze="🇱🇷",gze="🇱🇸",bze="🇱🇹",yze="🇱🇺",Eze="🇱🇻",vze="🇱🇾",Sze="🇲🇦",Tze="🇲🇨",xze="🇲🇩",Cze="🇲🇪",wze="🇲🇫",Rze="🇲🇬",Aze="🇲🇭",Mze="🇲🇰",Nze="🇲🇱",Oze="🇲🇲",Ize="🇲🇳",kze="🇲🇴",Dze="🇲🇵",Lze="🇲🇶",Pze="🇲🇷",Fze="🇲🇸",Uze="🇲🇹",Bze="🇲🇺",Gze="🇲🇻",Vze="🇲🇼",zze="🇲🇽",Hze="🇲🇾",qze="🇲🇿",Yze="🇳🇦",$ze="🇳🇨",Wze="🇳🇪",Kze="🇳🇫",jze="🇳🇬",Qze="🇳🇮",Xze="🇳🇱",Zze="🇳🇴",Jze="🇳🇵",eHe="🇳🇷",tHe="🇳🇺",nHe="🇳🇿",iHe="🇴🇲",sHe="🇵🇦",rHe="🇵🇪",oHe="🇵🇫",aHe="🇵🇬",lHe="🇵🇭",cHe="🇵🇰",dHe="🇵🇱",uHe="🇵🇲",pHe="🇵🇳",fHe="🇵🇷",_He="🇵🇸",mHe="🇵🇹",hHe="🇵🇼",gHe="🇵🇾",bHe="🇶🇦",yHe="🇷🇪",EHe="🇷🇴",vHe="🇷🇸",SHe="🇷🇺",THe="🇷🇼",xHe="🇸🇦",CHe="🇸🇧",wHe="🇸🇨",RHe="🇸🇩",AHe="🇸🇪",MHe="🇸🇬",NHe="🇸🇭",OHe="🇸🇮",IHe="🇸🇯",kHe="🇸🇰",DHe="🇸🇱",LHe="🇸🇲",PHe="🇸🇳",FHe="🇸🇴",UHe="🇸🇷",BHe="🇸🇸",GHe="🇸🇹",VHe="🇸🇻",zHe="🇸🇽",HHe="🇸🇾",qHe="🇸🇿",YHe="🇹🇦",$He="🇹🇨",WHe="🇹🇩",KHe="🇹🇫",jHe="🇹🇬",QHe="🇹🇭",XHe="🇹🇯",ZHe="🇹🇰",JHe="🇹🇱",eqe="🇹🇲",tqe="🇹🇳",nqe="🇹🇴",iqe="🇹🇷",sqe="🇹🇹",rqe="🇹🇻",oqe="🇹🇼",aqe="🇹🇿",lqe="🇺🇦",cqe="🇺🇬",dqe="🇺🇲",uqe="🇺🇳",pqe="🇺🇸",fqe="🇺🇾",_qe="🇺🇿",mqe="🇻🇦",hqe="🇻🇨",gqe="🇻🇪",bqe="🇻🇬",yqe="🇻🇮",Eqe="🇻🇳",vqe="🇻🇺",Sqe="🇼🇫",Tqe="🇼🇸",xqe="🇽🇰",Cqe="🇾🇪",wqe="🇾🇹",Rqe="🇿🇦",Aqe="🇿🇲",Mqe="🇿🇼",Nqe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",Oqe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",Iqe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",kqe={100:"💯",1234:"🔢",grinning:qye,smiley:Yye,smile:$ye,grin:Wye,laughing:Kye,satisfied:jye,sweat_smile:Qye,rofl:Xye,joy:Zye,slightly_smiling_face:Jye,upside_down_face:eEe,wink:tEe,blush:nEe,innocent:iEe,smiling_face_with_three_hearts:sEe,heart_eyes:rEe,star_struck:oEe,kissing_heart:aEe,kissing:lEe,relaxed:cEe,kissing_closed_eyes:dEe,kissing_smiling_eyes:uEe,smiling_face_with_tear:pEe,yum:fEe,stuck_out_tongue:_Ee,stuck_out_tongue_winking_eye:mEe,zany_face:hEe,stuck_out_tongue_closed_eyes:gEe,money_mouth_face:bEe,hugs:yEe,hand_over_mouth:EEe,shushing_face:vEe,thinking:SEe,zipper_mouth_face:TEe,raised_eyebrow:xEe,neutral_face:CEe,expressionless:wEe,no_mouth:REe,smirk:AEe,unamused:MEe,roll_eyes:NEe,grimacing:OEe,lying_face:IEe,relieved:kEe,pensive:DEe,sleepy:LEe,drooling_face:PEe,sleeping:FEe,mask:UEe,face_with_thermometer:BEe,face_with_head_bandage:GEe,nauseated_face:VEe,vomiting_face:zEe,sneezing_face:HEe,hot_face:qEe,cold_face:YEe,woozy_face:$Ee,dizzy_face:WEe,exploding_head:KEe,cowboy_hat_face:jEe,partying_face:QEe,disguised_face:XEe,sunglasses:ZEe,nerd_face:JEe,monocle_face:eve,confused:tve,worried:nve,slightly_frowning_face:ive,frowning_face:sve,open_mouth:rve,hushed:ove,astonished:ave,flushed:lve,pleading_face:cve,frowning:dve,anguished:uve,fearful:pve,cold_sweat:fve,disappointed_relieved:_ve,cry:mve,sob:hve,scream:gve,confounded:bve,persevere:yve,disappointed:Eve,sweat:vve,weary:Sve,tired_face:Tve,yawning_face:xve,triumph:Cve,rage:wve,pout:Rve,angry:Ave,cursing_face:Mve,smiling_imp:Nve,imp:Ove,skull:Ive,skull_and_crossbones:kve,hankey:Dve,poop:Lve,shit:Pve,clown_face:Fve,japanese_ogre:Uve,japanese_goblin:Bve,ghost:Gve,alien:Vve,space_invader:zve,robot:Hve,smiley_cat:qve,smile_cat:Yve,joy_cat:$ve,heart_eyes_cat:Wve,smirk_cat:Kve,kissing_cat:jve,scream_cat:Qve,crying_cat_face:Xve,pouting_cat:Zve,see_no_evil:Jve,hear_no_evil:eSe,speak_no_evil:tSe,kiss:nSe,love_letter:iSe,cupid:sSe,gift_heart:rSe,sparkling_heart:oSe,heartpulse:aSe,heartbeat:lSe,revolving_hearts:cSe,two_hearts:dSe,heart_decoration:uSe,heavy_heart_exclamation:pSe,broken_heart:fSe,heart:_Se,orange_heart:mSe,yellow_heart:hSe,green_heart:gSe,blue_heart:bSe,purple_heart:ySe,brown_heart:ESe,black_heart:vSe,white_heart:SSe,anger:TSe,boom:xSe,collision:CSe,dizzy:wSe,sweat_drops:RSe,dash:ASe,hole:MSe,bomb:NSe,speech_balloon:OSe,eye_speech_bubble:ISe,left_speech_bubble:kSe,right_anger_bubble:DSe,thought_balloon:LSe,zzz:PSe,wave:FSe,raised_back_of_hand:USe,raised_hand_with_fingers_splayed:BSe,hand:GSe,raised_hand:VSe,vulcan_salute:zSe,ok_hand:HSe,pinched_fingers:qSe,pinching_hand:YSe,v:$Se,crossed_fingers:WSe,love_you_gesture:KSe,metal:jSe,call_me_hand:QSe,point_left:XSe,point_right:ZSe,point_up_2:JSe,middle_finger:e1e,fu:t1e,point_down:n1e,point_up:i1e,"+1":"👍",thumbsup:s1e,"-1":"👎",thumbsdown:r1e,fist_raised:o1e,fist:a1e,fist_oncoming:l1e,facepunch:c1e,punch:d1e,fist_left:u1e,fist_right:p1e,clap:f1e,raised_hands:_1e,open_hands:m1e,palms_up_together:h1e,handshake:g1e,pray:b1e,writing_hand:y1e,nail_care:E1e,selfie:v1e,muscle:S1e,mechanical_arm:T1e,mechanical_leg:x1e,leg:C1e,foot:w1e,ear:R1e,ear_with_hearing_aid:A1e,nose:M1e,brain:N1e,anatomical_heart:O1e,lungs:I1e,tooth:k1e,bone:D1e,eyes:L1e,eye:P1e,tongue:F1e,lips:U1e,baby:B1e,child:G1e,boy:V1e,girl:z1e,adult:H1e,blond_haired_person:q1e,man:Y1e,bearded_person:$1e,red_haired_man:W1e,curly_haired_man:K1e,white_haired_man:j1e,bald_man:Q1e,woman:X1e,red_haired_woman:Z1e,person_red_hair:J1e,curly_haired_woman:eTe,person_curly_hair:tTe,white_haired_woman:nTe,person_white_hair:iTe,bald_woman:sTe,person_bald:rTe,blond_haired_woman:oTe,blonde_woman:aTe,blond_haired_man:lTe,older_adult:cTe,older_man:dTe,older_woman:uTe,frowning_person:pTe,frowning_man:fTe,frowning_woman:_Te,pouting_face:mTe,pouting_man:hTe,pouting_woman:gTe,no_good:bTe,no_good_man:yTe,ng_man:ETe,no_good_woman:vTe,ng_woman:STe,ok_person:TTe,ok_man:xTe,ok_woman:CTe,tipping_hand_person:wTe,information_desk_person:RTe,tipping_hand_man:ATe,sassy_man:MTe,tipping_hand_woman:NTe,sassy_woman:OTe,raising_hand:ITe,raising_hand_man:kTe,raising_hand_woman:DTe,deaf_person:LTe,deaf_man:PTe,deaf_woman:FTe,bow:UTe,bowing_man:BTe,bowing_woman:GTe,facepalm:VTe,man_facepalming:zTe,woman_facepalming:HTe,shrug:qTe,man_shrugging:YTe,woman_shrugging:$Te,health_worker:WTe,man_health_worker:KTe,woman_health_worker:jTe,student:QTe,man_student:XTe,woman_student:ZTe,teacher:JTe,man_teacher:exe,woman_teacher:txe,judge:nxe,man_judge:ixe,woman_judge:sxe,farmer:rxe,man_farmer:oxe,woman_farmer:axe,cook:lxe,man_cook:cxe,woman_cook:dxe,mechanic:uxe,man_mechanic:pxe,woman_mechanic:fxe,factory_worker:_xe,man_factory_worker:mxe,woman_factory_worker:hxe,office_worker:gxe,man_office_worker:bxe,woman_office_worker:yxe,scientist:Exe,man_scientist:vxe,woman_scientist:Sxe,technologist:Txe,man_technologist:xxe,woman_technologist:Cxe,singer:wxe,man_singer:Rxe,woman_singer:Axe,artist:Mxe,man_artist:Nxe,woman_artist:Oxe,pilot:Ixe,man_pilot:kxe,woman_pilot:Dxe,astronaut:Lxe,man_astronaut:Pxe,woman_astronaut:Fxe,firefighter:Uxe,man_firefighter:Bxe,woman_firefighter:Gxe,police_officer:Vxe,cop:zxe,policeman:Hxe,policewoman:qxe,detective:Yxe,male_detective:$xe,female_detective:Wxe,guard:Kxe,guardsman:jxe,guardswoman:Qxe,ninja:Xxe,construction_worker:Zxe,construction_worker_man:Jxe,construction_worker_woman:eCe,prince:tCe,princess:nCe,person_with_turban:iCe,man_with_turban:sCe,woman_with_turban:rCe,man_with_gua_pi_mao:oCe,woman_with_headscarf:aCe,person_in_tuxedo:lCe,man_in_tuxedo:cCe,woman_in_tuxedo:dCe,person_with_veil:uCe,man_with_veil:pCe,woman_with_veil:fCe,bride_with_veil:_Ce,pregnant_woman:mCe,breast_feeding:hCe,woman_feeding_baby:gCe,man_feeding_baby:bCe,person_feeding_baby:yCe,angel:ECe,santa:vCe,mrs_claus:SCe,mx_claus:TCe,superhero:xCe,superhero_man:CCe,superhero_woman:wCe,supervillain:RCe,supervillain_man:ACe,supervillain_woman:MCe,mage:NCe,mage_man:OCe,mage_woman:ICe,fairy:kCe,fairy_man:DCe,fairy_woman:LCe,vampire:PCe,vampire_man:FCe,vampire_woman:UCe,merperson:BCe,merman:GCe,mermaid:VCe,elf:zCe,elf_man:HCe,elf_woman:qCe,genie:YCe,genie_man:$Ce,genie_woman:WCe,zombie:KCe,zombie_man:jCe,zombie_woman:QCe,massage:XCe,massage_man:ZCe,massage_woman:JCe,haircut:ewe,haircut_man:twe,haircut_woman:nwe,walking:iwe,walking_man:swe,walking_woman:rwe,standing_person:owe,standing_man:awe,standing_woman:lwe,kneeling_person:cwe,kneeling_man:dwe,kneeling_woman:uwe,person_with_probing_cane:pwe,man_with_probing_cane:fwe,woman_with_probing_cane:_we,person_in_motorized_wheelchair:mwe,man_in_motorized_wheelchair:hwe,woman_in_motorized_wheelchair:gwe,person_in_manual_wheelchair:bwe,man_in_manual_wheelchair:ywe,woman_in_manual_wheelchair:Ewe,runner:vwe,running:Swe,running_man:Twe,running_woman:xwe,woman_dancing:Cwe,dancer:wwe,man_dancing:Rwe,business_suit_levitating:Awe,dancers:Mwe,dancing_men:Nwe,dancing_women:Owe,sauna_person:Iwe,sauna_man:kwe,sauna_woman:Dwe,climbing:Lwe,climbing_man:Pwe,climbing_woman:Fwe,person_fencing:Uwe,horse_racing:Bwe,skier:Gwe,snowboarder:Vwe,golfing:zwe,golfing_man:Hwe,golfing_woman:qwe,surfer:Ywe,surfing_man:$we,surfing_woman:Wwe,rowboat:Kwe,rowing_man:jwe,rowing_woman:Qwe,swimmer:Xwe,swimming_man:Zwe,swimming_woman:Jwe,bouncing_ball_person:e2e,bouncing_ball_man:t2e,basketball_man:n2e,bouncing_ball_woman:i2e,basketball_woman:s2e,weight_lifting:r2e,weight_lifting_man:o2e,weight_lifting_woman:a2e,bicyclist:l2e,biking_man:c2e,biking_woman:d2e,mountain_bicyclist:u2e,mountain_biking_man:p2e,mountain_biking_woman:f2e,cartwheeling:_2e,man_cartwheeling:m2e,woman_cartwheeling:h2e,wrestling:g2e,men_wrestling:b2e,women_wrestling:y2e,water_polo:E2e,man_playing_water_polo:v2e,woman_playing_water_polo:S2e,handball_person:T2e,man_playing_handball:x2e,woman_playing_handball:C2e,juggling_person:w2e,man_juggling:R2e,woman_juggling:A2e,lotus_position:M2e,lotus_position_man:N2e,lotus_position_woman:O2e,bath:I2e,sleeping_bed:k2e,people_holding_hands:D2e,two_women_holding_hands:L2e,couple:P2e,two_men_holding_hands:F2e,couplekiss:U2e,couplekiss_man_woman:B2e,couplekiss_man_man:G2e,couplekiss_woman_woman:V2e,couple_with_heart:z2e,couple_with_heart_woman_man:H2e,couple_with_heart_man_man:q2e,couple_with_heart_woman_woman:Y2e,family:$2e,family_man_woman_boy:W2e,family_man_woman_girl:K2e,family_man_woman_girl_boy:j2e,family_man_woman_boy_boy:Q2e,family_man_woman_girl_girl:X2e,family_man_man_boy:Z2e,family_man_man_girl:J2e,family_man_man_girl_boy:eRe,family_man_man_boy_boy:tRe,family_man_man_girl_girl:nRe,family_woman_woman_boy:iRe,family_woman_woman_girl:sRe,family_woman_woman_girl_boy:rRe,family_woman_woman_boy_boy:oRe,family_woman_woman_girl_girl:aRe,family_man_boy:lRe,family_man_boy_boy:cRe,family_man_girl:dRe,family_man_girl_boy:uRe,family_man_girl_girl:pRe,family_woman_boy:fRe,family_woman_boy_boy:_Re,family_woman_girl:mRe,family_woman_girl_boy:hRe,family_woman_girl_girl:gRe,speaking_head:bRe,bust_in_silhouette:yRe,busts_in_silhouette:ERe,people_hugging:vRe,footprints:SRe,monkey_face:TRe,monkey:xRe,gorilla:CRe,orangutan:wRe,dog:RRe,dog2:ARe,guide_dog:MRe,service_dog:NRe,poodle:ORe,wolf:IRe,fox_face:kRe,raccoon:DRe,cat:LRe,cat2:PRe,black_cat:FRe,lion:URe,tiger:BRe,tiger2:GRe,leopard:VRe,horse:zRe,racehorse:HRe,unicorn:qRe,zebra:YRe,deer:$Re,bison:WRe,cow:KRe,ox:jRe,water_buffalo:QRe,cow2:XRe,pig:ZRe,pig2:JRe,boar:eAe,pig_nose:tAe,ram:nAe,sheep:iAe,goat:sAe,dromedary_camel:rAe,camel:oAe,llama:aAe,giraffe:lAe,elephant:cAe,mammoth:dAe,rhinoceros:uAe,hippopotamus:pAe,mouse:fAe,mouse2:_Ae,rat:mAe,hamster:hAe,rabbit:gAe,rabbit2:bAe,chipmunk:yAe,beaver:EAe,hedgehog:vAe,bat:SAe,bear:TAe,polar_bear:xAe,koala:CAe,panda_face:wAe,sloth:RAe,otter:AAe,skunk:MAe,kangaroo:NAe,badger:OAe,feet:IAe,paw_prints:kAe,turkey:DAe,chicken:LAe,rooster:PAe,hatching_chick:FAe,baby_chick:UAe,hatched_chick:BAe,bird:GAe,penguin:VAe,dove:zAe,eagle:HAe,duck:qAe,swan:YAe,owl:$Ae,dodo:WAe,feather:KAe,flamingo:jAe,peacock:QAe,parrot:XAe,frog:ZAe,crocodile:JAe,turtle:eMe,lizard:tMe,snake:nMe,dragon_face:iMe,dragon:sMe,sauropod:rMe,"t-rex":"🦖",whale:oMe,whale2:aMe,dolphin:lMe,flipper:cMe,seal:dMe,fish:uMe,tropical_fish:pMe,blowfish:fMe,shark:_Me,octopus:mMe,shell:hMe,snail:gMe,butterfly:bMe,bug:yMe,ant:EMe,bee:vMe,honeybee:SMe,beetle:TMe,lady_beetle:xMe,cricket:CMe,cockroach:wMe,spider:RMe,spider_web:AMe,scorpion:MMe,mosquito:NMe,fly:OMe,worm:IMe,microbe:kMe,bouquet:DMe,cherry_blossom:LMe,white_flower:PMe,rosette:FMe,rose:UMe,wilted_flower:BMe,hibiscus:GMe,sunflower:VMe,blossom:zMe,tulip:HMe,seedling:qMe,potted_plant:YMe,evergreen_tree:$Me,deciduous_tree:WMe,palm_tree:KMe,cactus:jMe,ear_of_rice:QMe,herb:XMe,shamrock:ZMe,four_leaf_clover:JMe,maple_leaf:eNe,fallen_leaf:tNe,leaves:nNe,grapes:iNe,melon:sNe,watermelon:rNe,tangerine:oNe,orange:aNe,mandarin:lNe,lemon:cNe,banana:dNe,pineapple:uNe,mango:pNe,apple:fNe,green_apple:_Ne,pear:mNe,peach:hNe,cherries:gNe,strawberry:bNe,blueberries:yNe,kiwi_fruit:ENe,tomato:vNe,olive:SNe,coconut:TNe,avocado:xNe,eggplant:CNe,potato:wNe,carrot:RNe,corn:ANe,hot_pepper:MNe,bell_pepper:NNe,cucumber:ONe,leafy_green:INe,broccoli:kNe,garlic:DNe,onion:LNe,mushroom:PNe,peanuts:FNe,chestnut:UNe,bread:BNe,croissant:GNe,baguette_bread:VNe,flatbread:zNe,pretzel:HNe,bagel:qNe,pancakes:YNe,waffle:$Ne,cheese:WNe,meat_on_bone:KNe,poultry_leg:jNe,cut_of_meat:QNe,bacon:XNe,hamburger:ZNe,fries:JNe,pizza:eOe,hotdog:tOe,sandwich:nOe,taco:iOe,burrito:sOe,tamale:rOe,stuffed_flatbread:oOe,falafel:aOe,egg:lOe,fried_egg:cOe,shallow_pan_of_food:dOe,stew:uOe,fondue:pOe,bowl_with_spoon:fOe,green_salad:_Oe,popcorn:mOe,butter:hOe,salt:gOe,canned_food:bOe,bento:yOe,rice_cracker:EOe,rice_ball:vOe,rice:SOe,curry:TOe,ramen:xOe,spaghetti:COe,sweet_potato:wOe,oden:ROe,sushi:AOe,fried_shrimp:MOe,fish_cake:NOe,moon_cake:OOe,dango:IOe,dumpling:kOe,fortune_cookie:DOe,takeout_box:LOe,crab:POe,lobster:FOe,shrimp:UOe,squid:BOe,oyster:GOe,icecream:VOe,shaved_ice:zOe,ice_cream:HOe,doughnut:qOe,cookie:YOe,birthday:$Oe,cake:WOe,cupcake:KOe,pie:jOe,chocolate_bar:QOe,candy:XOe,lollipop:ZOe,custard:JOe,honey_pot:eIe,baby_bottle:tIe,milk_glass:nIe,coffee:iIe,teapot:sIe,tea:rIe,sake:oIe,champagne:aIe,wine_glass:lIe,cocktail:cIe,tropical_drink:dIe,beer:uIe,beers:pIe,clinking_glasses:fIe,tumbler_glass:_Ie,cup_with_straw:mIe,bubble_tea:hIe,beverage_box:gIe,mate:bIe,ice_cube:yIe,chopsticks:EIe,plate_with_cutlery:vIe,fork_and_knife:SIe,spoon:TIe,hocho:xIe,knife:CIe,amphora:wIe,earth_africa:RIe,earth_americas:AIe,earth_asia:MIe,globe_with_meridians:NIe,world_map:OIe,japan:IIe,compass:kIe,mountain_snow:DIe,mountain:LIe,volcano:PIe,mount_fuji:FIe,camping:UIe,beach_umbrella:BIe,desert:GIe,desert_island:VIe,national_park:zIe,stadium:HIe,classical_building:qIe,building_construction:YIe,bricks:$Ie,rock:WIe,wood:KIe,hut:jIe,houses:QIe,derelict_house:XIe,house:ZIe,house_with_garden:JIe,office:eke,post_office:tke,european_post_office:nke,hospital:ike,bank:ske,hotel:rke,love_hotel:oke,convenience_store:ake,school:lke,department_store:cke,factory:dke,japanese_castle:uke,european_castle:pke,wedding:fke,tokyo_tower:_ke,statue_of_liberty:mke,church:hke,mosque:gke,hindu_temple:bke,synagogue:yke,shinto_shrine:Eke,kaaba:vke,fountain:Ske,tent:Tke,foggy:xke,night_with_stars:Cke,cityscape:wke,sunrise_over_mountains:Rke,sunrise:Ake,city_sunset:Mke,city_sunrise:Nke,bridge_at_night:Oke,hotsprings:Ike,carousel_horse:kke,ferris_wheel:Dke,roller_coaster:Lke,barber:Pke,circus_tent:Fke,steam_locomotive:Uke,railway_car:Bke,bullettrain_side:Gke,bullettrain_front:Vke,train2:zke,metro:Hke,light_rail:qke,station:Yke,tram:$ke,monorail:Wke,mountain_railway:Kke,train:jke,bus:Qke,oncoming_bus:Xke,trolleybus:Zke,minibus:Jke,ambulance:eDe,fire_engine:tDe,police_car:nDe,oncoming_police_car:iDe,taxi:sDe,oncoming_taxi:rDe,car:oDe,red_car:aDe,oncoming_automobile:lDe,blue_car:cDe,pickup_truck:dDe,truck:uDe,articulated_lorry:pDe,tractor:fDe,racing_car:_De,motorcycle:mDe,motor_scooter:hDe,manual_wheelchair:gDe,motorized_wheelchair:bDe,auto_rickshaw:yDe,bike:EDe,kick_scooter:vDe,skateboard:SDe,roller_skate:TDe,busstop:xDe,motorway:CDe,railway_track:wDe,oil_drum:RDe,fuelpump:ADe,rotating_light:MDe,traffic_light:NDe,vertical_traffic_light:ODe,stop_sign:IDe,construction:kDe,anchor:DDe,boat:LDe,sailboat:PDe,canoe:FDe,speedboat:UDe,passenger_ship:BDe,ferry:GDe,motor_boat:VDe,ship:zDe,airplane:HDe,small_airplane:qDe,flight_departure:YDe,flight_arrival:$De,parachute:WDe,seat:KDe,helicopter:jDe,suspension_railway:QDe,mountain_cableway:XDe,aerial_tramway:ZDe,artificial_satellite:JDe,rocket:eLe,flying_saucer:tLe,bellhop_bell:nLe,luggage:iLe,hourglass:sLe,hourglass_flowing_sand:rLe,watch:oLe,alarm_clock:aLe,stopwatch:lLe,timer_clock:cLe,mantelpiece_clock:dLe,clock12:uLe,clock1230:pLe,clock1:fLe,clock130:_Le,clock2:mLe,clock230:hLe,clock3:gLe,clock330:bLe,clock4:yLe,clock430:ELe,clock5:vLe,clock530:SLe,clock6:TLe,clock630:xLe,clock7:CLe,clock730:wLe,clock8:RLe,clock830:ALe,clock9:MLe,clock930:NLe,clock10:OLe,clock1030:ILe,clock11:kLe,clock1130:DLe,new_moon:LLe,waxing_crescent_moon:PLe,first_quarter_moon:FLe,moon:ULe,waxing_gibbous_moon:BLe,full_moon:GLe,waning_gibbous_moon:VLe,last_quarter_moon:zLe,waning_crescent_moon:HLe,crescent_moon:qLe,new_moon_with_face:YLe,first_quarter_moon_with_face:$Le,last_quarter_moon_with_face:WLe,thermometer:KLe,sunny:jLe,full_moon_with_face:QLe,sun_with_face:XLe,ringed_planet:ZLe,star:JLe,star2:ePe,stars:tPe,milky_way:nPe,cloud:iPe,partly_sunny:sPe,cloud_with_lightning_and_rain:rPe,sun_behind_small_cloud:oPe,sun_behind_large_cloud:aPe,sun_behind_rain_cloud:lPe,cloud_with_rain:cPe,cloud_with_snow:dPe,cloud_with_lightning:uPe,tornado:pPe,fog:fPe,wind_face:_Pe,cyclone:mPe,rainbow:hPe,closed_umbrella:gPe,open_umbrella:bPe,umbrella:yPe,parasol_on_ground:EPe,zap:vPe,snowflake:SPe,snowman_with_snow:TPe,snowman:xPe,comet:CPe,fire:wPe,droplet:RPe,ocean:APe,jack_o_lantern:MPe,christmas_tree:NPe,fireworks:OPe,sparkler:IPe,firecracker:kPe,sparkles:DPe,balloon:LPe,tada:PPe,confetti_ball:FPe,tanabata_tree:UPe,bamboo:BPe,dolls:GPe,flags:VPe,wind_chime:zPe,rice_scene:HPe,red_envelope:qPe,ribbon:YPe,gift:$Pe,reminder_ribbon:WPe,tickets:KPe,ticket:jPe,medal_military:QPe,trophy:XPe,medal_sports:ZPe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:JPe,baseball:e3e,softball:t3e,basketball:n3e,volleyball:i3e,football:s3e,rugby_football:r3e,tennis:o3e,flying_disc:a3e,bowling:l3e,cricket_game:c3e,field_hockey:d3e,ice_hockey:u3e,lacrosse:p3e,ping_pong:f3e,badminton:_3e,boxing_glove:m3e,martial_arts_uniform:h3e,goal_net:g3e,golf:b3e,ice_skate:y3e,fishing_pole_and_fish:E3e,diving_mask:v3e,running_shirt_with_sash:S3e,ski:T3e,sled:x3e,curling_stone:C3e,dart:w3e,yo_yo:R3e,kite:A3e,"8ball":"🎱",crystal_ball:M3e,magic_wand:N3e,nazar_amulet:O3e,video_game:I3e,joystick:k3e,slot_machine:D3e,game_die:L3e,jigsaw:P3e,teddy_bear:F3e,pinata:U3e,nesting_dolls:B3e,spades:G3e,hearts:V3e,diamonds:z3e,clubs:H3e,chess_pawn:q3e,black_joker:Y3e,mahjong:$3e,flower_playing_cards:W3e,performing_arts:K3e,framed_picture:j3e,art:Q3e,thread:X3e,sewing_needle:Z3e,yarn:J3e,knot:e4e,eyeglasses:t4e,dark_sunglasses:n4e,goggles:i4e,lab_coat:s4e,safety_vest:r4e,necktie:o4e,shirt:a4e,tshirt:l4e,jeans:c4e,scarf:d4e,gloves:u4e,coat:p4e,socks:f4e,dress:_4e,kimono:m4e,sari:h4e,one_piece_swimsuit:g4e,swim_brief:b4e,shorts:y4e,bikini:E4e,womans_clothes:v4e,purse:S4e,handbag:T4e,pouch:x4e,shopping:C4e,school_satchel:w4e,thong_sandal:R4e,mans_shoe:A4e,shoe:M4e,athletic_shoe:N4e,hiking_boot:O4e,flat_shoe:I4e,high_heel:k4e,sandal:D4e,ballet_shoes:L4e,boot:P4e,crown:F4e,womans_hat:U4e,tophat:B4e,mortar_board:G4e,billed_cap:V4e,military_helmet:z4e,rescue_worker_helmet:H4e,prayer_beads:q4e,lipstick:Y4e,ring:$4e,gem:W4e,mute:K4e,speaker:j4e,sound:Q4e,loud_sound:X4e,loudspeaker:Z4e,mega:J4e,postal_horn:e5e,bell:t5e,no_bell:n5e,musical_score:i5e,musical_note:s5e,notes:r5e,studio_microphone:o5e,level_slider:a5e,control_knobs:l5e,microphone:c5e,headphones:d5e,radio:u5e,saxophone:p5e,accordion:f5e,guitar:_5e,musical_keyboard:m5e,trumpet:h5e,violin:g5e,banjo:b5e,drum:y5e,long_drum:E5e,iphone:v5e,calling:S5e,phone:T5e,telephone:x5e,telephone_receiver:C5e,pager:w5e,fax:R5e,battery:A5e,electric_plug:M5e,computer:N5e,desktop_computer:O5e,printer:I5e,keyboard:k5e,computer_mouse:D5e,trackball:L5e,minidisc:P5e,floppy_disk:F5e,cd:U5e,dvd:B5e,abacus:G5e,movie_camera:V5e,film_strip:z5e,film_projector:H5e,clapper:q5e,tv:Y5e,camera:$5e,camera_flash:W5e,video_camera:K5e,vhs:j5e,mag:Q5e,mag_right:X5e,candle:Z5e,bulb:J5e,flashlight:eFe,izakaya_lantern:tFe,lantern:nFe,diya_lamp:iFe,notebook_with_decorative_cover:sFe,closed_book:rFe,book:oFe,open_book:aFe,green_book:lFe,blue_book:cFe,orange_book:dFe,books:uFe,notebook:pFe,ledger:fFe,page_with_curl:_Fe,scroll:mFe,page_facing_up:hFe,newspaper:gFe,newspaper_roll:bFe,bookmark_tabs:yFe,bookmark:EFe,label:vFe,moneybag:SFe,coin:TFe,yen:xFe,dollar:CFe,euro:wFe,pound:RFe,money_with_wings:AFe,credit_card:MFe,receipt:NFe,chart:OFe,envelope:IFe,email:kFe,"e-mail":"📧",incoming_envelope:DFe,envelope_with_arrow:LFe,outbox_tray:PFe,inbox_tray:FFe,package:"📦",mailbox:UFe,mailbox_closed:BFe,mailbox_with_mail:GFe,mailbox_with_no_mail:VFe,postbox:zFe,ballot_box:HFe,pencil2:qFe,black_nib:YFe,fountain_pen:$Fe,pen:WFe,paintbrush:KFe,crayon:jFe,memo:QFe,pencil:XFe,briefcase:ZFe,file_folder:JFe,open_file_folder:eUe,card_index_dividers:tUe,date:nUe,calendar:iUe,spiral_notepad:sUe,spiral_calendar:rUe,card_index:oUe,chart_with_upwards_trend:aUe,chart_with_downwards_trend:lUe,bar_chart:cUe,clipboard:dUe,pushpin:uUe,round_pushpin:pUe,paperclip:fUe,paperclips:_Ue,straight_ruler:mUe,triangular_ruler:hUe,scissors:gUe,card_file_box:bUe,file_cabinet:yUe,wastebasket:EUe,lock:vUe,unlock:SUe,lock_with_ink_pen:TUe,closed_lock_with_key:xUe,key:CUe,old_key:wUe,hammer:RUe,axe:AUe,pick:MUe,hammer_and_pick:NUe,hammer_and_wrench:OUe,dagger:IUe,crossed_swords:kUe,gun:DUe,boomerang:LUe,bow_and_arrow:PUe,shield:FUe,carpentry_saw:UUe,wrench:BUe,screwdriver:GUe,nut_and_bolt:VUe,gear:zUe,clamp:HUe,balance_scale:qUe,probing_cane:YUe,link:$Ue,chains:WUe,hook:KUe,toolbox:jUe,magnet:QUe,ladder:XUe,alembic:ZUe,test_tube:JUe,petri_dish:eBe,dna:tBe,microscope:nBe,telescope:iBe,satellite:sBe,syringe:rBe,drop_of_blood:oBe,pill:aBe,adhesive_bandage:lBe,stethoscope:cBe,door:dBe,elevator:uBe,mirror:pBe,window:fBe,bed:_Be,couch_and_lamp:mBe,chair:hBe,toilet:gBe,plunger:bBe,shower:yBe,bathtub:EBe,mouse_trap:vBe,razor:SBe,lotion_bottle:TBe,safety_pin:xBe,broom:CBe,basket:wBe,roll_of_paper:RBe,bucket:ABe,soap:MBe,toothbrush:NBe,sponge:OBe,fire_extinguisher:IBe,shopping_cart:kBe,smoking:DBe,coffin:LBe,headstone:PBe,funeral_urn:FBe,moyai:UBe,placard:BBe,atm:GBe,put_litter_in_its_place:VBe,potable_water:zBe,wheelchair:HBe,mens:qBe,womens:YBe,restroom:$Be,baby_symbol:WBe,wc:KBe,passport_control:jBe,customs:QBe,baggage_claim:XBe,left_luggage:ZBe,warning:JBe,children_crossing:e6e,no_entry:t6e,no_entry_sign:n6e,no_bicycles:i6e,no_smoking:s6e,do_not_litter:r6e,"non-potable_water":"🚱",no_pedestrians:o6e,no_mobile_phones:a6e,underage:l6e,radioactive:c6e,biohazard:d6e,arrow_up:u6e,arrow_upper_right:p6e,arrow_right:f6e,arrow_lower_right:_6e,arrow_down:m6e,arrow_lower_left:h6e,arrow_left:g6e,arrow_upper_left:b6e,arrow_up_down:y6e,left_right_arrow:E6e,leftwards_arrow_with_hook:v6e,arrow_right_hook:S6e,arrow_heading_up:T6e,arrow_heading_down:x6e,arrows_clockwise:C6e,arrows_counterclockwise:w6e,back:R6e,end:A6e,on:M6e,soon:N6e,top:O6e,place_of_worship:I6e,atom_symbol:k6e,om:D6e,star_of_david:L6e,wheel_of_dharma:P6e,yin_yang:F6e,latin_cross:U6e,orthodox_cross:B6e,star_and_crescent:G6e,peace_symbol:V6e,menorah:z6e,six_pointed_star:H6e,aries:q6e,taurus:Y6e,gemini:$6e,cancer:W6e,leo:K6e,virgo:j6e,libra:Q6e,scorpius:X6e,sagittarius:Z6e,capricorn:J6e,aquarius:e9e,pisces:t9e,ophiuchus:n9e,twisted_rightwards_arrows:i9e,repeat:s9e,repeat_one:r9e,arrow_forward:o9e,fast_forward:a9e,next_track_button:l9e,play_or_pause_button:c9e,arrow_backward:d9e,rewind:u9e,previous_track_button:p9e,arrow_up_small:f9e,arrow_double_up:_9e,arrow_down_small:m9e,arrow_double_down:h9e,pause_button:g9e,stop_button:b9e,record_button:y9e,eject_button:E9e,cinema:v9e,low_brightness:S9e,high_brightness:T9e,signal_strength:x9e,vibration_mode:C9e,mobile_phone_off:w9e,female_sign:R9e,male_sign:A9e,transgender_symbol:M9e,heavy_multiplication_x:N9e,heavy_plus_sign:O9e,heavy_minus_sign:I9e,heavy_division_sign:k9e,infinity:D9e,bangbang:L9e,interrobang:P9e,question:F9e,grey_question:U9e,grey_exclamation:B9e,exclamation:G9e,heavy_exclamation_mark:V9e,wavy_dash:z9e,currency_exchange:H9e,heavy_dollar_sign:q9e,medical_symbol:Y9e,recycle:$9e,fleur_de_lis:W9e,trident:K9e,name_badge:j9e,beginner:Q9e,o:X9e,white_check_mark:Z9e,ballot_box_with_check:J9e,heavy_check_mark:e8e,x:t8e,negative_squared_cross_mark:n8e,curly_loop:i8e,loop:s8e,part_alternation_mark:r8e,eight_spoked_asterisk:o8e,eight_pointed_black_star:a8e,sparkle:l8e,copyright:c8e,registered:d8e,tm:u8e,hash:p8e,asterisk:f8e,zero:_8e,one:m8e,two:h8e,three:g8e,four:b8e,five:y8e,six:E8e,seven:v8e,eight:S8e,nine:T8e,keycap_ten:x8e,capital_abcd:C8e,abcd:w8e,symbols:R8e,abc:A8e,a:M8e,ab:N8e,b:O8e,cl:I8e,cool:k8e,free:D8e,information_source:L8e,id:P8e,m:F8e,new:"🆕",ng:U8e,o2:B8e,ok:G8e,parking:V8e,sos:z8e,up:H8e,vs:q8e,koko:Y8e,sa:$8e,ideograph_advantage:W8e,accept:K8e,congratulations:j8e,secret:Q8e,u6e80:X8e,red_circle:Z8e,orange_circle:J8e,yellow_circle:eGe,green_circle:tGe,large_blue_circle:nGe,purple_circle:iGe,brown_circle:sGe,black_circle:rGe,white_circle:oGe,red_square:aGe,orange_square:lGe,yellow_square:cGe,green_square:dGe,blue_square:uGe,purple_square:pGe,brown_square:fGe,black_large_square:_Ge,white_large_square:mGe,black_medium_square:hGe,white_medium_square:gGe,black_medium_small_square:bGe,white_medium_small_square:yGe,black_small_square:EGe,white_small_square:vGe,large_orange_diamond:SGe,large_blue_diamond:TGe,small_orange_diamond:xGe,small_blue_diamond:CGe,small_red_triangle:wGe,small_red_triangle_down:RGe,diamond_shape_with_a_dot_inside:AGe,radio_button:MGe,white_square_button:NGe,black_square_button:OGe,checkered_flag:IGe,triangular_flag_on_post:kGe,crossed_flags:DGe,black_flag:LGe,white_flag:PGe,rainbow_flag:FGe,transgender_flag:UGe,pirate_flag:BGe,ascension_island:GGe,andorra:VGe,united_arab_emirates:zGe,afghanistan:HGe,antigua_barbuda:qGe,anguilla:YGe,albania:$Ge,armenia:WGe,angola:KGe,antarctica:jGe,argentina:QGe,american_samoa:XGe,austria:ZGe,australia:JGe,aruba:e7e,aland_islands:t7e,azerbaijan:n7e,bosnia_herzegovina:i7e,barbados:s7e,bangladesh:r7e,belgium:o7e,burkina_faso:a7e,bulgaria:l7e,bahrain:c7e,burundi:d7e,benin:u7e,st_barthelemy:p7e,bermuda:f7e,brunei:_7e,bolivia:m7e,caribbean_netherlands:h7e,brazil:g7e,bahamas:b7e,bhutan:y7e,bouvet_island:E7e,botswana:v7e,belarus:S7e,belize:T7e,canada:x7e,cocos_islands:C7e,congo_kinshasa:w7e,central_african_republic:R7e,congo_brazzaville:A7e,switzerland:M7e,cote_divoire:N7e,cook_islands:O7e,chile:I7e,cameroon:k7e,cn:D7e,colombia:L7e,clipperton_island:P7e,costa_rica:F7e,cuba:U7e,cape_verde:B7e,curacao:G7e,christmas_island:V7e,cyprus:z7e,czech_republic:H7e,de:q7e,diego_garcia:Y7e,djibouti:$7e,denmark:W7e,dominica:K7e,dominican_republic:j7e,algeria:Q7e,ceuta_melilla:X7e,ecuador:Z7e,estonia:J7e,egypt:eVe,western_sahara:tVe,eritrea:nVe,es:iVe,ethiopia:sVe,eu:rVe,european_union:oVe,finland:aVe,fiji:lVe,falkland_islands:cVe,micronesia:dVe,faroe_islands:uVe,fr:pVe,gabon:fVe,gb:_Ve,uk:mVe,grenada:hVe,georgia:gVe,french_guiana:bVe,guernsey:yVe,ghana:EVe,gibraltar:vVe,greenland:SVe,gambia:TVe,guinea:xVe,guadeloupe:CVe,equatorial_guinea:wVe,greece:RVe,south_georgia_south_sandwich_islands:AVe,guatemala:MVe,guam:NVe,guinea_bissau:OVe,guyana:IVe,hong_kong:kVe,heard_mcdonald_islands:DVe,honduras:LVe,croatia:PVe,haiti:FVe,hungary:UVe,canary_islands:BVe,indonesia:GVe,ireland:VVe,israel:zVe,isle_of_man:HVe,india:qVe,british_indian_ocean_territory:YVe,iraq:$Ve,iran:WVe,iceland:KVe,it:jVe,jersey:QVe,jamaica:XVe,jordan:ZVe,jp:JVe,kenya:eze,kyrgyzstan:tze,cambodia:nze,kiribati:ize,comoros:sze,st_kitts_nevis:rze,north_korea:oze,kr:aze,kuwait:lze,cayman_islands:cze,kazakhstan:dze,laos:uze,lebanon:pze,st_lucia:fze,liechtenstein:_ze,sri_lanka:mze,liberia:hze,lesotho:gze,lithuania:bze,luxembourg:yze,latvia:Eze,libya:vze,morocco:Sze,monaco:Tze,moldova:xze,montenegro:Cze,st_martin:wze,madagascar:Rze,marshall_islands:Aze,macedonia:Mze,mali:Nze,myanmar:Oze,mongolia:Ize,macau:kze,northern_mariana_islands:Dze,martinique:Lze,mauritania:Pze,montserrat:Fze,malta:Uze,mauritius:Bze,maldives:Gze,malawi:Vze,mexico:zze,malaysia:Hze,mozambique:qze,namibia:Yze,new_caledonia:$ze,niger:Wze,norfolk_island:Kze,nigeria:jze,nicaragua:Qze,netherlands:Xze,norway:Zze,nepal:Jze,nauru:eHe,niue:tHe,new_zealand:nHe,oman:iHe,panama:sHe,peru:rHe,french_polynesia:oHe,papua_new_guinea:aHe,philippines:lHe,pakistan:cHe,poland:dHe,st_pierre_miquelon:uHe,pitcairn_islands:pHe,puerto_rico:fHe,palestinian_territories:_He,portugal:mHe,palau:hHe,paraguay:gHe,qatar:bHe,reunion:yHe,romania:EHe,serbia:vHe,ru:SHe,rwanda:THe,saudi_arabia:xHe,solomon_islands:CHe,seychelles:wHe,sudan:RHe,sweden:AHe,singapore:MHe,st_helena:NHe,slovenia:OHe,svalbard_jan_mayen:IHe,slovakia:kHe,sierra_leone:DHe,san_marino:LHe,senegal:PHe,somalia:FHe,suriname:UHe,south_sudan:BHe,sao_tome_principe:GHe,el_salvador:VHe,sint_maarten:zHe,syria:HHe,swaziland:qHe,tristan_da_cunha:YHe,turks_caicos_islands:$He,chad:WHe,french_southern_territories:KHe,togo:jHe,thailand:QHe,tajikistan:XHe,tokelau:ZHe,timor_leste:JHe,turkmenistan:eqe,tunisia:tqe,tonga:nqe,tr:iqe,trinidad_tobago:sqe,tuvalu:rqe,taiwan:oqe,tanzania:aqe,ukraine:lqe,uganda:cqe,us_outlying_islands:dqe,united_nations:uqe,us:pqe,uruguay:fqe,uzbekistan:_qe,vatican_city:mqe,st_vincent_grenadines:hqe,venezuela:gqe,british_virgin_islands:bqe,us_virgin_islands:yqe,vietnam:Eqe,vanuatu:vqe,wallis_futuna:Sqe,samoa:Tqe,kosovo:xqe,yemen:Cqe,mayotte:wqe,south_africa:Rqe,zambia:Aqe,zimbabwe:Mqe,england:Nqe,scotland:Oqe,wales:Iqe};var Dqe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]},Lqe=function(e,t){return e[t].content},Pqe=function(e,t,i,s,r){var o=e.utils.arrayReplaceAt,a=e.utils.lib.ucmicro,c=new RegExp([a.Z.source,a.P.source,a.Cc.source].join("|"));function d(u,_,m){var h,f=0,y=[];return u.replace(r,function(b,g,E){var v;if(i.hasOwnProperty(b)){if(v=i[b],g>0&&!c.test(E[g-1])||g+b.length<E.length&&!c.test(E[g+b.length]))return}else v=b.slice(1,-1);g>f&&(h=new m("text","",0),h.content=u.slice(f,g),y.push(h)),h=new m("emoji","",0),h.markup=v,h.content=t[v],y.push(h),f=g+b.length}),f<u.length&&(h=new m("text","",0),h.content=u.slice(f),y.push(h)),y}return function(_){var m,h,f,y,b,g=_.tokens,E=0;for(h=0,f=g.length;h<f;h++)if(g[h].type==="inline")for(y=g[h].children,m=y.length-1;m>=0;m--)b=y[m],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(E-=b.nesting),b.type==="text"&&E===0&&s.test(b.content)&&(g[h].children=y=o(y,m,d(b.content,b.level,_.Token)))}};function Fqe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Uqe=function(e){var t=e.defs,i;e.enabled.length&&(t=Object.keys(t).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=t[d]),c},{})),i=Object.keys(e.shortcuts).reduce(function(c,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var s=Object.keys(t),r;s.length===0?r="^$":r=s.map(function(c){return":"+c+":"}).concat(Object.keys(i)).sort().reverse().map(function(c){return Fqe(c)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:t,shortcuts:i,scanRE:o,replaceRE:a}},Bqe=Lqe,Gqe=Pqe,Vqe=Uqe,zqe=function(e,t){var i={defs:{},shortcuts:{},enabled:[]},s=Vqe(e.utils.assign({},i,t||{}));e.renderer.rules.emoji=Bqe,e.core.ruler.after("linkify","emoji",Gqe(e,s.defs,s.shortcuts,s.scanRE,s.replaceRE))},Hqe=kqe,qqe=Dqe,Yqe=zqe,$qe=function(e,t){var i={defs:Hqe,shortcuts:qqe,enabled:[]},s=e.utils.assign({},i,t||{});Yqe(e,s)};const Wqe=Rr($qe);var tS=!1,fa={false:"push",true:"unshift",after:"push",before:"unshift"},Jd={isPermalinkSymbol:!0};function rb(n,e,t,i){var s;if(!tS){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),tS=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:Jd}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[i+1].children[fa[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(s=t.tokens[i+1].children)[fa[e.permalinkBefore]].apply(s,o)}function hM(n){return"#"+n}function gM(n){return{}}var Kqe={class:"header-anchor",symbol:"#",renderHref:hM,renderAttrs:gM};function lc(n){function e(t){return t=Object.assign({},e.defaults,t),function(i,s,r,o){return n(i,t,s,r,o)}}return e.defaults=Object.assign({},Kqe),e.renderPermalinkImpl=n,e}var op=lc(function(n,e,t,i,s){var r,o=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,i)))}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:Jd}),new i.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";i.tokens[s+1].children[fa[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=i.tokens[s+1].children)[fa[e.placement]].apply(r,o)});Object.assign(op.defaults,{space:!0,placement:"after",ariaHidden:!1});var Vr=lc(op.renderPermalinkImpl);Vr.defaults=Object.assign({},op.defaults,{ariaHidden:!0});var bM=lc(function(n,e,t,i,s){var r=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],Object.entries(e.renderAttrs(n,i)))})].concat(e.safariReaderFix?[new i.Token("span_open","span",1)]:[],i.tokens[s+1].children,e.safariReaderFix?[new i.Token("span_close","span",-1)]:[],[new i.Token("link_close","a",-1)]);i.tokens[s+1]=Object.assign(new i.Token("inline","",0),{children:r})});Object.assign(bM.defaults,{safariReaderFix:!1});var nS=lc(function(n,e,t,i,s){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=i.tokens[s+1].children.filter(function(_){return _.type==="text"||_.type==="code_inline"}).reduce(function(_,m){return _+m.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(n,i)]),c.push.apply(c,Object.entries(e.renderAttrs(n,i))),e.style==="visually-hidden"){if(a.push(Object.assign(new i.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new i.Token("text","",0),{content:e.assistiveText(o)}),new i.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[fa[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[fa[e.placement]](Object.assign(new i.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:Jd}),new i.Token("span_close","span",-1))}else a.push(Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:Jd}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,n]);var u=[Object.assign(new i.Token("link_open","a",1),{attrs:c})].concat(a,[new i.Token("link_close","a",-1)]);(r=i.tokens).splice.apply(r,[s+3,0].concat(u)),e.wrapper&&(i.tokens.splice(s,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[0]+`
+`);return i};Va.prototype.render=function(n,e,t){var i,s,r,o="",a=this.rules;for(i=0,s=n.length;i<s;i++)r=n[i].type,r==="inline"?o+=this.renderInline(n[i].children,e,t):typeof a[r]<"u"?o+=a[r](n,i,e,t,this):o+=this.renderToken(n,i,e,t);return o};var vbe=Va;function $i(){this.__rules__=[],this.__cache__=null}$i.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};$i.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(i){e.indexOf(i)<0&&e.push(i)})}),n.__cache__={},e.forEach(function(t){n.__cache__[t]=[],n.__rules__.forEach(function(i){i.enabled&&(t&&i.alt.indexOf(t)<0||n.__cache__[t].push(i.fn))})})};$i.prototype.at=function(n,e,t){var i=this.__find__(n),s=t||{};if(i===-1)throw new Error("Parser rule not found: "+n);this.__rules__[i].fn=e,this.__rules__[i].alt=s.alt||[],this.__cache__=null};$i.prototype.before=function(n,e,t,i){var s=this.__find__(n),r=i||{};if(s===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};$i.prototype.after=function(n,e,t,i){var s=this.__find__(n),r=i||{};if(s===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};$i.prototype.push=function(n,e,t){var i=t||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null};$i.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(i){var s=this.__find__(i);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[s].enabled=!0,t.push(i)},this),this.__cache__=null,t};$i.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(n,e)};$i.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var t=[];return n.forEach(function(i){var s=this.__find__(i);if(s<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[s].enabled=!1,t.push(i)},this),this.__cache__=null,t};$i.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var b0=$i,Sbe=/\r\n?|\n/g,Tbe=/\0/g,xbe=function(e){var t;t=e.src.replace(Sbe,`
+`),t=t.replace(Tbe,"�"),e.src=t},Cbe=function(e){var 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)},wbe=function(e){var t=e.tokens,i,s,r;for(s=0,r=t.length;s<r;s++)i=t[s],i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)},Rbe=kt.arrayReplaceAt;function Abe(n){return/^<a[>\s]/i.test(n)}function Mbe(n){return/^<\/a\s*>/i.test(n)}var Nbe=function(e){var t,i,s,r,o,a,c,d,u,_,m,h,f,y,b,g,E=e.tokens,v;if(e.md.options.linkify){for(i=0,s=E.length;i<s;i++)if(!(E[i].type!=="inline"||!e.md.linkify.pretest(E[i].content)))for(r=E[i].children,f=0,t=r.length-1;t>=0;t--){if(a=r[t],a.type==="link_close"){for(t--;r[t].level!==a.level&&r[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(Abe(a.content)&&f>0&&f--,Mbe(a.content)&&f++),!(f>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,v=e.md.linkify.match(u),c=[],h=a.level,m=0,v.length>0&&v[0].index===0&&t>0&&r[t-1].type==="text_special"&&(v=v.slice(1)),d=0;d<v.length;d++)y=v[d].url,b=e.md.normalizeLink(y),e.md.validateLink(b)&&(g=v[d].text,v[d].schema?v[d].schema==="mailto:"&&!/^mailto:/i.test(g)?g=e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=e.md.normalizeLinkText(g):g=e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),_=v[d].index,_>m&&(o=new e.Token("text","",0),o.content=u.slice(m,_),o.level=h,c.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",b]],o.level=h++,o.markup="linkify",o.info="auto",c.push(o),o=new e.Token("text","",0),o.content=g,o.level=h,c.push(o),o=new e.Token("link_close","a",-1),o.level=--h,o.markup="linkify",o.info="auto",c.push(o),m=v[d].lastIndex);m<u.length&&(o=new e.Token("text","",0),o.content=u.slice(m),o.level=h,c.push(o)),E[i].children=r=Rbe(r,t,c)}}}},JA=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Obe=/\((c|tm|r)\)/i,Ibe=/\((c|tm|r)\)/ig,kbe={c:"©",r:"®",tm:"™"};function Dbe(n,e){return kbe[e.toLowerCase()]}function Lbe(n){var e,t,i=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!i&&(t.content=t.content.replace(Ibe,Dbe)),t.type==="link_open"&&t.info==="auto"&&i--,t.type==="link_close"&&t.info==="auto"&&i++}function Pbe(n){var e,t,i=0;for(e=n.length-1;e>=0;e--)t=n[e],t.type==="text"&&!i&&JA.test(t.content)&&(t.content=t.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),t.type==="link_open"&&t.info==="auto"&&i--,t.type==="link_close"&&t.info==="auto"&&i++}var Fbe=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Obe.test(e.tokens[t].content)&&Lbe(e.tokens[t].children),JA.test(e.tokens[t].content)&&Pbe(e.tokens[t].children))},Iv=kt.isWhiteSpace,kv=kt.isPunctChar,Dv=kt.isMdAsciiPunct,Ube=/['"]/,Lv=/['"]/g,Pv="’";function Ic(n,e,t){return n.slice(0,e)+t+n.slice(e+1)}function Bbe(n,e){var t,i,s,r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C;for(S=[],t=0;t<n.length;t++){for(i=n[t],c=n[t].level,E=S.length-1;E>=0&&!(S[E].level<=c);E--);if(S.length=E+1,i.type==="text"){s=i.content,o=0,a=s.length;e:for(;o<a&&(Lv.lastIndex=o,r=Lv.exec(s),!!r);){if(b=g=!0,o=r.index+1,v=r[0]==="'",u=32,r.index-1>=0)u=s.charCodeAt(r.index-1);else for(E=t-1;E>=0&&!(n[E].type==="softbreak"||n[E].type==="hardbreak");E--)if(n[E].content){u=n[E].content.charCodeAt(n[E].content.length-1);break}if(_=32,o<a)_=s.charCodeAt(o);else for(E=t+1;E<n.length&&!(n[E].type==="softbreak"||n[E].type==="hardbreak");E++)if(n[E].content){_=n[E].content.charCodeAt(0);break}if(m=Dv(u)||kv(String.fromCharCode(u)),h=Dv(_)||kv(String.fromCharCode(_)),f=Iv(u),y=Iv(_),y?b=!1:h&&(f||m||(b=!1)),f?g=!1:m&&(y||h||(g=!1)),_===34&&r[0]==='"'&&u>=48&&u<=57&&(g=b=!1),b&&g&&(b=m,g=h),!b&&!g){v&&(i.content=Ic(i.content,r.index,Pv));continue}if(g){for(E=S.length-1;E>=0&&(d=S[E],!(S[E].level<c));E--)if(d.single===v&&S[E].level===c){d=S[E],v?(R=e.md.options.quotes[2],C=e.md.options.quotes[3]):(R=e.md.options.quotes[0],C=e.md.options.quotes[1]),i.content=Ic(i.content,r.index,C),n[d.token].content=Ic(n[d.token].content,d.pos,R),o+=C.length-1,d.token===t&&(o+=R.length-1),s=i.content,a=s.length,S.length=E;continue e}}b?S.push({token:t,pos:r.index,single:v,level:c}):g&&v&&(i.content=Ic(i.content,r.index,Pv))}}}}var Gbe=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Ube.test(e.tokens[t].content)||Bbe(e.tokens[t].children,e)},Vbe=function(e){var t,i,s,r,o,a,c=e.tokens;for(t=0,i=c.length;t<i;t++)if(c[t].type==="inline"){for(s=c[t].children,o=s.length,r=0;r<o;r++)s[r].type==="text_special"&&(s[r].type="text");for(r=a=0;r<o;r++)s[r].type==="text"&&r+1<o&&s[r+1].type==="text"?s[r+1].content=s[r].content+s[r+1].content:(r!==a&&(s[a]=s[r]),a++);r!==a&&(s.length=a)}};function za(n,e,t){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}za.prototype.attrIndex=function(e){var t,i,s;if(!this.attrs)return-1;for(t=this.attrs,i=0,s=t.length;i<s;i++)if(t[i][0]===e)return i;return-1};za.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};za.prototype.attrSet=function(e,t){var i=this.attrIndex(e),s=[e,t];i<0?this.attrPush(s):this.attrs[i]=s};za.prototype.attrGet=function(e){var t=this.attrIndex(e),i=null;return t>=0&&(i=this.attrs[t][1]),i};za.prototype.attrJoin=function(e,t){var i=this.attrIndex(e);i<0?this.attrPush([e,t]):this.attrs[i][1]=this.attrs[i][1]+" "+t};var y0=za,zbe=y0;function eM(n,e,t){this.src=n,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}eM.prototype.Token=zbe;var Hbe=eM,qbe=b0,nf=[["normalize",xbe],["block",Cbe],["inline",wbe],["linkify",Nbe],["replacements",Fbe],["smartquotes",Gbe],["text_join",Vbe]];function E0(){this.ruler=new qbe;for(var n=0;n<nf.length;n++)this.ruler.push(nf[n][0],nf[n][1])}E0.prototype.process=function(n){var e,t,i;for(i=this.ruler.getRules(""),e=0,t=i.length;e<t;e++)i[e](n)};E0.prototype.State=Hbe;var Ybe=E0,sf=kt.isSpace;function rf(n,e){var t=n.bMarks[e]+n.tShift[e],i=n.eMarks[e];return n.src.slice(t,i)}function Fv(n){var e=[],t=0,i=n.length,s,r=!1,o=0,a="";for(s=n.charCodeAt(t);t<i;)s===124&&(r?(a+=n.substring(o,t-1),o=t):(e.push(a+n.substring(o,t)),a="",o=t+1)),r=s===92,t++,s=n.charCodeAt(t);return e.push(a+n.substring(o)),e}var $be=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C;if(t+2>i||(u=t+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[u]||(C=e.src.charCodeAt(a++),C!==124&&C!==45&&C!==58&&!sf(C))||R===45&&sf(C))return!1;for(;a<e.eMarks[u];){if(r=e.src.charCodeAt(a),r!==124&&r!==45&&r!==58&&!sf(r))return!1;a++}for(o=rf(e,t+1),_=o.split("|"),f=[],c=0;c<_.length;c++){if(y=_[c].trim(),!y){if(c===0||c===_.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?f.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?f.push("left"):f.push("")}if(o=rf(e,t).trim(),o.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(_=Fv(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),m=_.length,m===0||m!==f.length))return!1;if(s)return!0;for(E=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=b=[t,0],h=e.push("thead_open","thead",1),h.map=[t,t+1],h=e.push("tr_open","tr",1),h.map=[t,t+1],c=0;c<_.length;c++)h=e.push("th_open","th",1),f[c]&&(h.attrs=[["style","text-align:"+f[c]]]),h=e.push("inline","",0),h.content=_[c].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),u=t+2;u<i&&!(e.sCount[u]<e.blkIndent);u++){for(v=!1,c=0,d=S.length;c<d;c++)if(S[c](e,u,i,!0)){v=!0;break}if(v||(o=rf(e,u).trim(),!o)||e.sCount[u]-e.blkIndent>=4)break;for(_=Fv(o),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),u===t+2&&(h=e.push("tbody_open","tbody",1),h.map=g=[t+2,0]),h=e.push("tr_open","tr",1),h.map=[u,u+1],c=0;c<m;c++)h=e.push("td_open","td",1),f[c]&&(h.attrs=[["style","text-align:"+f[c]]]),h=e.push("inline","",0),h.content=_[c]?_[c].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return g&&(h=e.push("tbody_close","tbody",-1),g[1]=u),h=e.push("table_close","table",-1),b[1]=u,e.parentType=E,e.line=u,!0},Wbe=function(e,t,i){var s,r,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(r=s=t+1;s<i;){if(e.isEmpty(s)){s++;continue}if(e.sCount[s]-e.blkIndent>=4){s++,r=s;continue}break}return e.line=r,o=e.push("code_block","code",0),o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
+`,o.map=[t,e.line],!0},Kbe=function(e,t,i,s){var r,o,a,c,d,u,_,m=!1,h=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>f||(r=e.src.charCodeAt(h),r!==126&&r!==96)||(d=h,h=e.skipChars(h,r),o=h-d,o<3)||(_=e.src.slice(d,h),a=e.src.slice(h,f),r===96&&a.indexOf(String.fromCharCode(r))>=0))return!1;if(s)return!0;for(c=t;c++,!(c>=i||(h=d=e.bMarks[c]+e.tShift[c],f=e.eMarks[c],h<f&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(h)===r&&!(e.sCount[c]-e.blkIndent>=4)&&(h=e.skipChars(h,r),!(h-d<o)&&(h=e.skipSpaces(h),!(h<f)))){m=!0;break}return o=e.sCount[t],e.line=c+(m?1:0),u=e.push("fence","code",0),u.info=a,u.content=e.getLines(t+1,c,o,!0),u.markup=_,u.map=[t,e.line],!0},jbe=kt.isSpace,Qbe=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C,A,I,x=e.lineMax,M=e.bMarks[t]+e.tShift[t],G=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(M)!==62)return!1;if(s)return!0;for(f=[],y=[],E=[],v=[],C=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",m=t;m<i&&(I=e.sCount[m]<e.blkIndent,M=e.bMarks[m]+e.tShift[m],G=e.eMarks[m],!(M>=G));m++){if(e.src.charCodeAt(M++)===62&&!I){for(c=e.sCount[m]+1,e.src.charCodeAt(M)===32?(M++,c++,r=!1,S=!0):e.src.charCodeAt(M)===9?(S=!0,(e.bsCount[m]+c)%4===3?(M++,c++,r=!1):r=!0):S=!1,h=c,f.push(e.bMarks[m]),e.bMarks[m]=M;M<G&&(o=e.src.charCodeAt(M),jbe(o));){o===9?h+=4-(h+e.bsCount[m]+(r?1:0))%4:h++;M++}u=M>=G,y.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),E.push(e.sCount[m]),e.sCount[m]=h-c,v.push(e.tShift[m]),e.tShift[m]=M-e.bMarks[m];continue}if(u)break;for(R=!1,a=0,d=C.length;a<d;a++)if(C[a](e,m,i,!0)){R=!0;break}if(R){e.lineMax=m,e.blkIndent!==0&&(f.push(e.bMarks[m]),y.push(e.bsCount[m]),v.push(e.tShift[m]),E.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}f.push(e.bMarks[m]),y.push(e.bsCount[m]),v.push(e.tShift[m]),E.push(e.sCount[m]),e.sCount[m]=-1}for(b=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=_=[t,0],e.md.block.tokenize(e,t,m),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=x,e.parentType=g,_[1]=e.line,a=0;a<v.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=v[a],e.sCount[a+t]=E[a],e.bsCount[a+t]=y[a];return e.blkIndent=b,!0},Xbe=kt.isSpace,Zbe=function(e,t,i,s){var r,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(r=e.src.charCodeAt(d++),r!==42&&r!==45&&r!==95))return!1;for(o=1;d<u;){if(a=e.src.charCodeAt(d++),a!==r&&!Xbe(a))return!1;a===r&&o++}return o<3?!1:(s||(e.line=t+1,c=e.push("hr","hr",0),c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(r))),!0)},tM=kt.isSpace;function Uv(n,e){var t,i,s,r;return i=n.bMarks[e]+n.tShift[e],s=n.eMarks[e],t=n.src.charCodeAt(i++),t!==42&&t!==45&&t!==43||i<s&&(r=n.src.charCodeAt(i),!tM(r))?-1:i}function Bv(n,e){var t,i=n.bMarks[e]+n.tShift[e],s=i,r=n.eMarks[e];if(s+1>=r||(t=n.src.charCodeAt(s++),t<48||t>57))return-1;for(;;){if(s>=r)return-1;if(t=n.src.charCodeAt(s++),t>=48&&t<=57){if(s-i>=10)return-1;continue}if(t===41||t===46)break;return-1}return s<r&&(t=n.src.charCodeAt(s),!tM(t))?-1:s}function Jbe(n,e){var t,i,s=n.level+2;for(t=e+2,i=n.tokens.length-2;t<i;t++)n.tokens[t].level===s&&n.tokens[t].type==="paragraph_open"&&(n.tokens[t+2].hidden=!0,n.tokens[t].hidden=!0,t+=2)}var e0e=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R,C,A,I,x,M,G,V,ee,O,H,q=t,L=!1,Y=!0;if(e.sCount[q]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[q]-e.listIndent>=4&&e.sCount[q]<e.blkIndent)return!1;if(s&&e.parentType==="paragraph"&&e.sCount[q]>=e.blkIndent&&(L=!0),(M=Bv(e,q))>=0){if(_=!0,V=e.bMarks[q]+e.tShift[q],g=Number(e.src.slice(V,M-1)),L&&g!==1)return!1}else if((M=Uv(e,q))>=0)_=!1;else return!1;if(L&&e.skipSpaces(M)>=e.eMarks[q])return!1;if(s)return!0;for(b=e.src.charCodeAt(M-1),y=e.tokens.length,_?(H=e.push("ordered_list_open","ol",1),g!==1&&(H.attrs=[["start",g]])):H=e.push("bullet_list_open","ul",1),H.map=f=[q,0],H.markup=String.fromCharCode(b),G=!1,O=e.md.block.ruler.getRules("list"),R=e.parentType,e.parentType="list";q<i;){for(x=M,E=e.eMarks[q],u=v=e.sCount[q]+M-(e.bMarks[q]+e.tShift[q]);x<E;){if(r=e.src.charCodeAt(x),r===9)v+=4-(v+e.bsCount[q])%4;else if(r===32)v++;else break;x++}if(o=x,o>=E?d=1:d=v-u,d>4&&(d=1),c=u+d,H=e.push("list_item_open","li",1),H.markup=String.fromCharCode(b),H.map=m=[q,0],_&&(H.info=e.src.slice(V,M-1)),I=e.tight,A=e.tShift[q],C=e.sCount[q],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[q]=o-e.bMarks[q],e.sCount[q]=v,o>=E&&e.isEmpty(q+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,q,i,!0),(!e.tight||G)&&(Y=!1),G=e.line-q>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[q]=A,e.sCount[q]=C,e.tight=I,H=e.push("list_item_close","li",-1),H.markup=String.fromCharCode(b),q=e.line,m[1]=q,q>=i||e.sCount[q]<e.blkIndent||e.sCount[q]-e.blkIndent>=4)break;for(ee=!1,a=0,h=O.length;a<h;a++)if(O[a](e,q,i,!0)){ee=!0;break}if(ee)break;if(_){if(M=Bv(e,q),M<0)break;V=e.bMarks[q]+e.tShift[q]}else if(M=Uv(e,q),M<0)break;if(b!==e.src.charCodeAt(M-1))break}return _?H=e.push("ordered_list_close","ol",-1):H=e.push("bullet_list_close","ul",-1),H.markup=String.fromCharCode(b),f[1]=q,e.line=q,e.parentType=R,Y&&Jbe(e,y),!0},t0e=kt.normalizeReference,kc=kt.isSpace,n0e=function(e,t,i,s){var r,o,a,c,d,u,_,m,h,f,y,b,g,E,v,S,R=0,C=e.bMarks[t]+e.tShift[t],A=e.eMarks[t],I=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(C)!==91)return!1;for(;++C<A;)if(e.src.charCodeAt(C)===93&&e.src.charCodeAt(C-1)!==92){if(C+1===A||e.src.charCodeAt(C+1)!==58)return!1;break}for(c=e.lineMax,v=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";I<c&&!e.isEmpty(I);I++)if(!(e.sCount[I]-e.blkIndent>3)&&!(e.sCount[I]<0)){for(E=!1,u=0,_=v.length;u<_;u++)if(v[u](e,I,c,!0)){E=!0;break}if(E)break}for(g=e.getLines(t,I,e.blkIndent,!1).trim(),A=g.length,C=1;C<A;C++){if(r=g.charCodeAt(C),r===91)return!1;if(r===93){h=C;break}else r===10?R++:r===92&&(C++,C<A&&g.charCodeAt(C)===10&&R++)}if(h<0||g.charCodeAt(h+1)!==58)return!1;for(C=h+2;C<A;C++)if(r=g.charCodeAt(C),r===10)R++;else if(!kc(r))break;if(y=e.md.helpers.parseLinkDestination(g,C,A),!y.ok||(d=e.md.normalizeLink(y.str),!e.md.validateLink(d)))return!1;for(C=y.pos,R+=y.lines,o=C,a=R,b=C;C<A;C++)if(r=g.charCodeAt(C),r===10)R++;else if(!kc(r))break;for(y=e.md.helpers.parseLinkTitle(g,C,A),C<A&&b!==C&&y.ok?(S=y.str,C=y.pos,R+=y.lines):(S="",C=o,R=a);C<A&&(r=g.charCodeAt(C),!!kc(r));)C++;if(C<A&&g.charCodeAt(C)!==10&&S)for(S="",C=o,R=a;C<A&&(r=g.charCodeAt(C),!!kc(r));)C++;return C<A&&g.charCodeAt(C)!==10||(m=t0e(g.slice(1,h)),!m)?!1:(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[m]>"u"&&(e.env.references[m]={title:S,href:d}),e.parentType=f,e.line=t+R+1),!0)},i0e=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ep={},s0e="[a-zA-Z_:][a-zA-Z0-9:._-]*",r0e="[^\"'=<>`\\x00-\\x20]+",o0e="'[^']*'",a0e='"[^"]*"',l0e="(?:"+r0e+"|"+o0e+"|"+a0e+")",c0e="(?:\\s+"+s0e+"(?:\\s*=\\s*"+l0e+")?)",nM="<[A-Za-z][A-Za-z0-9\\-]*"+c0e+"*\\s*\\/?>",iM="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",d0e="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",u0e="<[?][\\s\\S]*?[?]>",p0e="<![A-Z]+\\s+[^>]*>",f0e="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",_0e=new RegExp("^(?:"+nM+"|"+iM+"|"+d0e+"|"+u0e+"|"+p0e+"|"+f0e+")"),m0e=new RegExp("^(?:"+nM+"|"+iM+")");ep.HTML_TAG_RE=_0e;ep.HTML_OPEN_CLOSE_TAG_RE=m0e;var h0e=i0e,g0e=ep.HTML_OPEN_CLOSE_TAG_RE,Co=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+h0e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(g0e.source+"\\s*$"),/^$/,!1]],b0e=function(e,t,i,s){var r,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(d)!==60)return!1;for(c=e.src.slice(d,u),r=0;r<Co.length&&!Co[r][0].test(c);r++);if(r===Co.length)return!1;if(s)return Co[r][2];if(o=t+1,!Co[r][1].test(c)){for(;o<i&&!(e.sCount[o]<e.blkIndent);o++)if(d=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],c=e.src.slice(d,u),Co[r][1].test(c)){c.length!==0&&o++;break}}return e.line=o,a=e.push("html_block","",0),a.map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},Gv=kt.isSpace,y0e=function(e,t,i,s){var r,o,a,c,d=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(r=e.src.charCodeAt(d),r!==35||d>=u))return!1;for(o=1,r=e.src.charCodeAt(++d);r===35&&d<u&&o<=6;)o++,r=e.src.charCodeAt(++d);return o>6||d<u&&!Gv(r)?!1:(s||(u=e.skipSpacesBack(u,d),a=e.skipCharsBack(u,35,d),a>d&&Gv(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,c=e.push("heading_open","h"+String(o),1),c.markup="########".slice(0,o),c.map=[t,e.line],c=e.push("inline","",0),c.content=e.src.slice(d,u).trim(),c.map=[t,e.line],c.children=[],c=e.push("heading_close","h"+String(o),-1),c.markup="########".slice(0,o)),!0)},E0e=function(e,t,i){var s,r,o,a,c,d,u,_,m,h=t+1,f,y=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";h<i&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(d=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],d<u&&(m=e.src.charCodeAt(d),(m===45||m===61)&&(d=e.skipChars(d,m),d=e.skipSpaces(d),d>=u)))){_=m===61?1:2;break}if(!(e.sCount[h]<0)){for(r=!1,o=0,a=y.length;o<a;o++)if(y[o](e,h,i,!0)){r=!0;break}if(r)break}}return _?(s=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,c=e.push("heading_open","h"+String(_),1),c.markup=String.fromCharCode(m),c.map=[t,e.line],c=e.push("inline","",0),c.content=s,c.map=[t,e.line-1],c.children=[],c=e.push("heading_close","h"+String(_),-1),c.markup=String.fromCharCode(m),e.parentType=f,!0):!1},v0e=function(e,t,i){var s,r,o,a,c,d,u=t+1,_=e.md.block.ruler.getRules("paragraph");for(d=e.parentType,e.parentType="paragraph";u<i&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(r=!1,o=0,a=_.length;o<a;o++)if(_[o](e,u,i,!0)){r=!0;break}if(r)break}return s=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,c=e.push("paragraph_open","p",1),c.map=[t,e.line],c=e.push("inline","",0),c.content=s,c.map=[t,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=d,!0},sM=y0,tp=kt.isSpace;function us(n,e,t,i){var s,r,o,a,c,d,u,_;for(this.src=n,this.md=e,this.env=t,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",r=this.src,_=!1,o=a=d=u=0,c=r.length;a<c;a++){if(s=r.charCodeAt(a),!_)if(tp(s)){d++,s===9?u+=4-u%4:u++;continue}else _=!0;(s===10||a===c-1)&&(s!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(d),this.sCount.push(u),this.bsCount.push(0),_=!1,d=0,u=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}us.prototype.push=function(n,e,t){var i=new sM(n,e,t);return i.block=!0,t<0&&this.level--,i.level=this.level,t>0&&this.level++,this.tokens.push(i),i};us.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};us.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};us.prototype.skipSpaces=function(e){for(var t,i=this.src.length;e<i&&(t=this.src.charCodeAt(e),!!tp(t));e++);return e};us.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!tp(this.src.charCodeAt(--e)))return e+1;return e};us.prototype.skipChars=function(e,t){for(var i=this.src.length;e<i&&this.src.charCodeAt(e)===t;e++);return e};us.prototype.skipCharsBack=function(e,t,i){if(e<=i)return e;for(;e>i;)if(t!==this.src.charCodeAt(--e))return e+1;return e};us.prototype.getLines=function(e,t,i,s){var r,o,a,c,d,u,_,m=e;if(e>=t)return"";for(u=new Array(t-e),r=0;m<t;m++,r++){for(o=0,_=c=this.bMarks[m],m+1<t||s?d=this.eMarks[m]+1:d=this.eMarks[m];c<d&&o<i;){if(a=this.src.charCodeAt(c),tp(a))a===9?o+=4-(o+this.bsCount[m])%4:o++;else if(c-_<this.tShift[m])o++;else break;c++}o>i?u[r]=new Array(o-i+1).join(" ")+this.src.slice(c,d):u[r]=this.src.slice(c,d)}return u.join("")};us.prototype.Token=sM;var S0e=us,T0e=b0,Dc=[["table",$be,["paragraph","reference"]],["code",Wbe],["fence",Kbe,["paragraph","reference","blockquote","list"]],["blockquote",Qbe,["paragraph","reference","blockquote","list"]],["hr",Zbe,["paragraph","reference","blockquote","list"]],["list",e0e,["paragraph","reference","blockquote"]],["reference",n0e],["html_block",b0e,["paragraph","reference","blockquote"]],["heading",y0e,["paragraph","reference","blockquote"]],["lheading",E0e],["paragraph",v0e]];function np(){this.ruler=new T0e;for(var n=0;n<Dc.length;n++)this.ruler.push(Dc[n][0],Dc[n][1],{alt:(Dc[n][2]||[]).slice()})}np.prototype.tokenize=function(n,e,t){for(var i,s,r,o=this.ruler.getRules(""),a=o.length,c=e,d=!1,u=n.md.options.maxNesting;c<t&&(n.line=c=n.skipEmptyLines(c),!(c>=t||n.sCount[c]<n.blkIndent));){if(n.level>=u){n.line=t;break}for(r=n.line,s=0;s<a;s++)if(i=o[s](n,c,t,!1),i){if(r>=n.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");n.tight=!d,n.isEmpty(n.line-1)&&(d=!0),c=n.line,c<t&&n.isEmpty(c)&&(d=!0,c++,n.line=c)}};np.prototype.parse=function(n,e,t,i){var s;n&&(s=new this.State(n,e,t,i),this.tokenize(s,s.line,s.lineMax))};np.prototype.State=S0e;var x0e=np;function C0e(n){switch(n){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var w0e=function(e,t){for(var i=e.pos;i<e.posMax&&!C0e(e.src.charCodeAt(i));)i++;return i===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,i)),e.pos=i,!0)},R0e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,A0e=function(e,t){var i,s,r,o,a,c,d,u;return!e.md.options.linkify||e.linkLevel>0||(i=e.pos,s=e.posMax,i+3>s)||e.src.charCodeAt(i)!==58||e.src.charCodeAt(i+1)!==47||e.src.charCodeAt(i+2)!==47||(r=e.pending.match(R0e),!r)||(o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(i-o.length)),!a)||(c=a.url,c.length<=o.length)||(c=c.replace(/\*+$/,""),d=e.md.normalizeLink(c),!e.md.validateLink(d))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(c),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=c.length-o.length,!0)},M0e=kt.isSpace,N0e=function(e,t){var i,s,r,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(i=e.pending.length-1,s=e.posMax,!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){for(r=i-1;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),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(o++;o<s&&M0e(e.src.charCodeAt(o));)o++;return e.pos=o,!0},O0e=kt.isSpace,v0=[];for(var Vv=0;Vv<256;Vv++)v0.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(n){v0[n.charCodeAt(0)]=1});var I0e=function(e,t){var i,s,r,o,a,c=e.pos,d=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=d))return!1;if(i=e.src.charCodeAt(c),i===10){for(t||e.push("hardbreak","br",0),c++;c<d&&(i=e.src.charCodeAt(c),!!O0e(i));)c++;return e.pos=c,!0}return o=e.src[c],i>=55296&&i<=56319&&c+1<d&&(s=e.src.charCodeAt(c+1),s>=56320&&s<=57343&&(o+=e.src[c+1],c++)),r="\\"+o,t||(a=e.push("text_special","",0),i<256&&v0[i]!==0?a.content=o:a.content=r,a.markup=r,a.info="escape"),e.pos=c+1,!0},k0e=function(e,t){var i,s,r,o,a,c,d,u,_=e.pos,m=e.src.charCodeAt(_);if(m!==96)return!1;for(i=_,_++,s=e.posMax;_<s&&e.src.charCodeAt(_)===96;)_++;if(r=e.src.slice(i,_),d=r.length,e.backticksScanned&&(e.backticks[d]||0)<=i)return t||(e.pending+=r),e.pos+=d,!0;for(c=_;(a=e.src.indexOf("`",c))!==-1;){for(c=a+1;c<s&&e.src.charCodeAt(c)===96;)c++;if(u=c-a,u===d)return t||(o=e.push("code_inline","code",0),o.markup=r,o.content=e.src.slice(_,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=d,!0},ip={};ip.tokenize=function(e,t){var i,s,r,o,a,c=e.pos,d=e.src.charCodeAt(c);if(t||d!==126||(s=e.scanDelims(e.pos,!0),o=s.length,a=String.fromCharCode(d),o<2))return!1;for(o%2&&(r=e.push("text","",0),r.content=a,o--),i=0;i<o;i+=2)r=e.push("text","",0),r.content=a+a,e.delimiters.push({marker:d,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function zv(n,e){var t,i,s,r,o,a=[],c=e.length;for(t=0;t<c;t++)s=e[t],s.marker===126&&s.end!==-1&&(r=e[s.end],o=n.tokens[s.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=n.tokens[r.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="",n.tokens[r.token-1].type==="text"&&n.tokens[r.token-1].content==="~"&&a.push(r.token-1));for(;a.length;){for(t=a.pop(),i=t+1;i<n.tokens.length&&n.tokens[i].type==="s_close";)i++;i--,t!==i&&(o=n.tokens[i],n.tokens[i]=n.tokens[t],n.tokens[t]=o)}}ip.postProcess=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(zv(e,e.delimiters),t=0;t<s;t++)i[t]&&i[t].delimiters&&zv(e,i[t].delimiters)};var sp={};sp.tokenize=function(e,t){var i,s,r,o=e.pos,a=e.src.charCodeAt(o);if(t||a!==95&&a!==42)return!1;for(s=e.scanDelims(e.pos,a===42),i=0;i<s.length;i++)r=e.push("text","",0),r.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0};function Hv(n,e){var t,i,s,r,o,a,c=e.length;for(t=c-1;t>=0;t--)i=e[t],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(s=e[i.end],a=t>0&&e[t-1].end===i.end+1&&e[t-1].marker===i.marker&&e[t-1].token===i.token-1&&e[i.end+1].token===s.token+1,o=String.fromCharCode(i.marker),r=n.tokens[i.token],r.type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?o+o:o,r.content="",r=n.tokens[s.token],r.type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?o+o:o,r.content="",a&&(n.tokens[e[t-1].token].content="",n.tokens[e[i.end+1].token].content="",t--))}sp.postProcess=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for(Hv(e,e.delimiters),t=0;t<s;t++)i[t]&&i[t].delimiters&&Hv(e,i[t].delimiters)};var D0e=kt.normalizeReference,of=kt.isSpace,L0e=function(e,t){var i,s,r,o,a,c,d,u,_,m="",h="",f=e.pos,y=e.posMax,b=e.pos,g=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(c=o+1,c<y&&e.src.charCodeAt(c)===40){for(g=!1,c++;c<y&&(s=e.src.charCodeAt(c),!(!of(s)&&s!==10));c++);if(c>=y)return!1;if(b=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok){for(m=e.md.normalizeLink(d.str),e.md.validateLink(m)?c=d.pos:m="",b=c;c<y&&(s=e.src.charCodeAt(c),!(!of(s)&&s!==10));c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<y&&b!==c&&d.ok)for(h=d.str,c=d.pos;c<y&&(s=e.src.charCodeAt(c),!(!of(s)&&s!==10));c++);}(c>=y||e.src.charCodeAt(c)!==41)&&(g=!0),c++}if(g){if(typeof e.env.references>"u")return!1;if(c<y&&e.src.charCodeAt(c)===91?(b=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?r=e.src.slice(b,c++):c=o+1):c=o+1,r||(r=e.src.slice(a,o)),u=e.env.references[D0e(r)],!u)return e.pos=f,!1;m=u.href,h=u.title}return t||(e.pos=a,e.posMax=o,_=e.push("link_open","a",1),_.attrs=i=[["href",m]],h&&i.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,_=e.push("link_close","a",-1)),e.pos=c,e.posMax=y,!0},P0e=kt.normalizeReference,af=kt.isSpace,F0e=function(e,t){var i,s,r,o,a,c,d,u,_,m,h,f,y,b="",g=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(d=a+1,d<E&&e.src.charCodeAt(d)===40){for(d++;d<E&&(s=e.src.charCodeAt(d),!(!af(s)&&s!==10));d++);if(d>=E)return!1;for(y=d,_=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),_.ok&&(b=e.md.normalizeLink(_.str),e.md.validateLink(b)?d=_.pos:b=""),y=d;d<E&&(s=e.src.charCodeAt(d),!(!af(s)&&s!==10));d++);if(_=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<E&&y!==d&&_.ok)for(m=_.str,d=_.pos;d<E&&(s=e.src.charCodeAt(d),!(!af(s)&&s!==10));d++);else m="";if(d>=E||e.src.charCodeAt(d)!==41)return e.pos=g,!1;d++}else{if(typeof e.env.references>"u")return!1;if(d<E&&e.src.charCodeAt(d)===91?(y=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?o=e.src.slice(y,d++):d=a+1):d=a+1,o||(o=e.src.slice(c,a)),u=e.env.references[P0e(o)],!u)return e.pos=g,!1;b=u.href,m=u.title}return t||(r=e.src.slice(c,a),e.md.inline.parse(r,e.md,e.env,f=[]),h=e.push("image","img",0),h.attrs=i=[["src",b],["alt",""]],h.children=f,h.content=r,m&&i.push(["title",m])),e.pos=d,e.posMax=E,!0},U0e=/^([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])?)*)$/,B0e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,G0e=function(e,t){var i,s,r,o,a,c,d=e.pos;if(e.src.charCodeAt(d)!==60)return!1;for(a=e.pos,c=e.posMax;;){if(++d>=c||(o=e.src.charCodeAt(d),o===60))return!1;if(o===62)break}return i=e.src.slice(a+1,d),B0e.test(i)?(s=e.md.normalizeLink(i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):U0e.test(i)?(s=e.md.normalizeLink("mailto:"+i),e.md.validateLink(s)?(t||(r=e.push("link_open","a",1),r.attrs=[["href",s]],r.markup="autolink",r.info="auto",r=e.push("text","",0),r.content=e.md.normalizeLinkText(i),r=e.push("link_close","a",-1),r.markup="autolink",r.info="auto"),e.pos+=i.length+2,!0):!1):!1},V0e=ep.HTML_TAG_RE;function z0e(n){return/^<a[>\s]/i.test(n)}function H0e(n){return/^<\/a\s*>/i.test(n)}function q0e(n){var e=n|32;return e>=97&&e<=122}var Y0e=function(e,t){var i,s,r,o,a=e.pos;return!e.md.options.html||(r=e.posMax,e.src.charCodeAt(a)!==60||a+2>=r)||(i=e.src.charCodeAt(a+1),i!==33&&i!==63&&i!==47&&!q0e(i))||(s=e.src.slice(a).match(V0e),!s)?!1:(t||(o=e.push("html_inline","",0),o.content=s[0],z0e(o.content)&&e.linkLevel++,H0e(o.content)&&e.linkLevel--),e.pos+=s[0].length,!0)},qv=jA,$0e=kt.has,W0e=kt.isValidEntityCode,Yv=kt.fromCodePoint,K0e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,j0e=/^&([a-z][a-z0-9]{1,31});/i,Q0e=function(e,t){var i,s,r,o,a=e.pos,c=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=c)return!1;if(i=e.src.charCodeAt(a+1),i===35){if(r=e.src.slice(a).match(K0e),r)return t||(s=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),o=e.push("text_special","",0),o.content=W0e(s)?Yv(s):Yv(65533),o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0}else if(r=e.src.slice(a).match(j0e),r&&$0e(qv,r[1]))return t||(o=e.push("text_special","",0),o.content=qv[r[1]],o.markup=r[0],o.info="entity"),e.pos+=r[0].length,!0;return!1};function $v(n){var e,t,i,s,r,o,a,c,d={},u=n.length;if(u){var _=0,m=-2,h=[];for(e=0;e<u;e++)if(i=n[e],h.push(0),(n[_].marker!==i.marker||m!==i.token-1)&&(_=e),m=i.token,i.length=i.length||0,!!i.close){for(d.hasOwnProperty(i.marker)||(d[i.marker]=[-1,-1,-1,-1,-1,-1]),r=d[i.marker][(i.open?3:0)+i.length%3],t=_-h[_]-1,o=t;t>r;t-=h[t]+1)if(s=n[t],s.marker===i.marker&&s.open&&s.end<0&&(a=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(a=!0),!a)){c=t>0&&!n[t-1].open?h[t-1]+1:0,h[e]=e-t+c,h[t]=c,i.open=!1,s.end=e,s.close=!1,o=-1,m=-2;break}o!==-1&&(d[i.marker][(i.open?3:0)+(i.length||0)%3]=o)}}}var X0e=function(e){var t,i=e.tokens_meta,s=e.tokens_meta.length;for($v(e.delimiters),t=0;t<s;t++)i[t]&&i[t].delimiters&&$v(i[t].delimiters)},Z0e=function(e){var t,i,s=0,r=e.tokens,o=e.tokens.length;for(t=i=0;t<o;t++)r[t].nesting<0&&s--,r[t].level=s,r[t].nesting>0&&s++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==i&&(r[i]=r[t]),i++);t!==i&&(r.length=i)},S0=y0,Wv=kt.isWhiteSpace,Kv=kt.isPunctChar,jv=kt.isMdAsciiPunct;function oc(n,e,t,i){this.src=n,this.env=t,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}oc.prototype.pushPending=function(){var n=new S0("text","",0);return n.content=this.pending,n.level=this.pendingLevel,this.tokens.push(n),this.pending="",n};oc.prototype.push=function(n,e,t){this.pending&&this.pushPending();var i=new S0(n,e,t),s=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(s),i};oc.prototype.scanDelims=function(n,e){var t=n,i,s,r,o,a,c,d,u,_,m=!0,h=!0,f=this.posMax,y=this.src.charCodeAt(n);for(i=n>0?this.src.charCodeAt(n-1):32;t<f&&this.src.charCodeAt(t)===y;)t++;return r=t-n,s=t<f?this.src.charCodeAt(t):32,d=jv(i)||Kv(String.fromCharCode(i)),_=jv(s)||Kv(String.fromCharCode(s)),c=Wv(i),u=Wv(s),u?m=!1:_&&(c||d||(m=!1)),c?h=!1:d&&(u||_||(h=!1)),e?(o=m,a=h):(o=m&&(!h||d),a=h&&(!m||_)),{can_open:o,can_close:a,length:r}};oc.prototype.Token=S0;var J0e=oc,Qv=b0,lf=[["text",w0e],["linkify",A0e],["newline",N0e],["escape",I0e],["backticks",k0e],["strikethrough",ip.tokenize],["emphasis",sp.tokenize],["link",L0e],["image",F0e],["autolink",G0e],["html_inline",Y0e],["entity",Q0e]],cf=[["balance_pairs",X0e],["strikethrough",ip.postProcess],["emphasis",sp.postProcess],["fragments_join",Z0e]];function ac(){var n;for(this.ruler=new Qv,n=0;n<lf.length;n++)this.ruler.push(lf[n][0],lf[n][1]);for(this.ruler2=new Qv,n=0;n<cf.length;n++)this.ruler2.push(cf[n][0],cf[n][1])}ac.prototype.skipToken=function(n){var e,t,i=n.pos,s=this.ruler.getRules(""),r=s.length,o=n.md.options.maxNesting,a=n.cache;if(typeof a[i]<"u"){n.pos=a[i];return}if(n.level<o){for(t=0;t<r;t++)if(n.level++,e=s[t](n,!0),n.level--,e){if(i>=n.pos)throw new Error("inline rule didn't increment state.pos");break}}else n.pos=n.posMax;e||n.pos++,a[i]=n.pos};ac.prototype.tokenize=function(n){for(var e,t,i,s=this.ruler.getRules(""),r=s.length,o=n.posMax,a=n.md.options.maxNesting;n.pos<o;){if(i=n.pos,n.level<a){for(t=0;t<r;t++)if(e=s[t](n,!1),e){if(i>=n.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(n.pos>=o)break;continue}n.pending+=n.src[n.pos++]}n.pending&&n.pushPending()};ac.prototype.parse=function(n,e,t,i){var s,r,o,a=new this.State(n,e,t,i);for(this.tokenize(a),r=this.ruler2.getRules(""),o=r.length,s=0;s<o;s++)r[s](a)};ac.prototype.State=J0e;var eye=ac,df,Xv;function tye(){return Xv||(Xv=1,df=function(n){var e={};n=n||{},e.src_Any=QA().source,e.src_Cc=XA().source,e.src_Z=ZA().source,e.src_P=g0.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><|]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),df}function ib(n){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){t&&Object.keys(t).forEach(function(i){n[i]=t[i]})}),n}function rp(n){return Object.prototype.toString.call(n)}function nye(n){return rp(n)==="[object String]"}function iye(n){return rp(n)==="[object Object]"}function sye(n){return rp(n)==="[object RegExp]"}function Zv(n){return rp(n)==="[object Function]"}function rye(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var rM={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function oye(n){return Object.keys(n||{}).reduce(function(e,t){return e||rM.hasOwnProperty(t)},!1)}var aye={"http:":{validate:function(n,e,t){var i=n.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(i)?i.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(n,e,t){var i=n.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(i)?e>=3&&n[e-3]===":"||e>=3&&n[e-3]==="/"?0:i.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(n,e,t){var i=n.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(i)?i.match(t.re.mailto)[0].length:0}}},lye="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]",cye="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function dye(n){n.__index__=-1,n.__text_cache__=""}function uye(n){return function(e,t){var i=e.slice(t);return n.test(i)?i.match(n)[0].length:0}}function Jv(){return function(n,e){e.normalize(n)}}function Zd(n){var e=n.re=tye()(n.__opts__),t=n.__tlds__.slice();n.onCompile(),n.__tlds_replaced__||t.push(lye),t.push(e.src_xn),e.src_tlds=t.join("|");function i(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");var s=[];n.__compiled__={};function r(a,c){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+c)}Object.keys(n.__schemas__).forEach(function(a){var c=n.__schemas__[a];if(c!==null){var d={validate:null,link:null};if(n.__compiled__[a]=d,iye(c)){sye(c.validate)?d.validate=uye(c.validate):Zv(c.validate)?d.validate=c.validate:r(a,c),Zv(c.normalize)?d.normalize=c.normalize:c.normalize?r(a,c):d.normalize=Jv();return}if(nye(c)){s.push(a);return}r(a,c)}}),s.forEach(function(a){n.__compiled__[n.__schemas__[a]]&&(n.__compiled__[a].validate=n.__compiled__[n.__schemas__[a]].validate,n.__compiled__[a].normalize=n.__compiled__[n.__schemas__[a]].normalize)}),n.__compiled__[""]={validate:null,normalize:Jv()};var o=Object.keys(n.__compiled__).filter(function(a){return a.length>0&&n.__compiled__[a]}).map(rye).join("|");n.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","i"),n.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+o+")","ig"),n.re.schema_at_start=RegExp("^"+n.re.schema_search.source,"i"),n.re.pretest=RegExp("("+n.re.schema_test.source+")|("+n.re.host_fuzzy_test.source+")|@","i"),dye(n)}function pye(n,e){var t=n.__index__,i=n.__last_index__,s=n.__text_cache__.slice(t,i);this.schema=n.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=i+e,this.raw=s,this.text=s,this.url=s}function sb(n,e){var t=new pye(n,e);return n.__compiled__[t.schema].normalize(t,n),t}function ai(n,e){if(!(this instanceof ai))return new ai(n,e);e||oye(n)&&(e=n,n={}),this.__opts__=ib({},rM,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ib({},aye,n),this.__compiled__={},this.__tlds__=cye,this.__tlds_replaced__=!1,this.re={},Zd(this)}ai.prototype.add=function(e,t){return this.__schemas__[e]=t,Zd(this),this};ai.prototype.set=function(e){return this.__opts__=ib(this.__opts__,e),this};ai.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,i,s,r,o,a,c,d,u;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(t=c.exec(e))!==null;)if(r=this.testSchemaAt(e,t[2],c.lastIndex),r){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=i.index+i[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(s=e.match(this.re.email_fuzzy))!==null&&(o=s.index+s[1].length,a=s.index+s[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};ai.prototype.pretest=function(e){return this.re.pretest.test(e)};ai.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0};ai.prototype.match=function(e){var t=0,i=[];this.__index__>=0&&this.__text_cache__===e&&(i.push(sb(this,t)),t=this.__last_index__);for(var s=t?e.slice(t):e;this.test(s);)i.push(sb(this,t)),s=s.slice(this.__last_index__),t+=this.__last_index__;return i.length?i:null};ai.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,sb(this,0)):null};ai.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,s,r){return i!==r[s-1]}).reverse(),Zd(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Zd(this),this)};ai.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};ai.prototype.onCompile=function(){};var fye=ai;const sa=2147483647,ts=36,T0=1,Yl=26,_ye=38,mye=700,oM=72,aM=128,lM="-",hye=/^xn--/,gye=/[^\0-\x7F]/,bye=/[\x2E\u3002\uFF0E\uFF61]/g,yye={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},uf=ts-T0,ns=Math.floor,pf=String.fromCharCode;function rr(n){throw new RangeError(yye[n])}function Eye(n,e){const t=[];let i=n.length;for(;i--;)t[i]=e(n[i]);return t}function cM(n,e){const t=n.split("@");let i="";t.length>1&&(i=t[0]+"@",n=t[1]),n=n.replace(bye,".");const s=n.split("."),r=Eye(s,e).join(".");return i+r}function x0(n){const e=[];let t=0;const i=n.length;for(;t<i;){const s=n.charCodeAt(t++);if(s>=55296&&s<=56319&&t<i){const r=n.charCodeAt(t++);(r&64512)==56320?e.push(((s&1023)<<10)+(r&1023)+65536):(e.push(s),t--)}else e.push(s)}return e}const dM=n=>String.fromCodePoint(...n),vye=function(n){return n>=48&&n<58?26+(n-48):n>=65&&n<91?n-65:n>=97&&n<123?n-97:ts},eS=function(n,e){return n+22+75*(n<26)-((e!=0)<<5)},uM=function(n,e,t){let i=0;for(n=t?ns(n/mye):n>>1,n+=ns(n/e);n>uf*Yl>>1;i+=ts)n=ns(n/uf);return ns(i+(uf+1)*n/(n+_ye))},C0=function(n){const e=[],t=n.length;let i=0,s=aM,r=oM,o=n.lastIndexOf(lM);o<0&&(o=0);for(let a=0;a<o;++a)n.charCodeAt(a)>=128&&rr("not-basic"),e.push(n.charCodeAt(a));for(let a=o>0?o+1:0;a<t;){const c=i;for(let u=1,_=ts;;_+=ts){a>=t&&rr("invalid-input");const m=vye(n.charCodeAt(a++));m>=ts&&rr("invalid-input"),m>ns((sa-i)/u)&&rr("overflow"),i+=m*u;const h=_<=r?T0:_>=r+Yl?Yl:_-r;if(m<h)break;const f=ts-h;u>ns(sa/f)&&rr("overflow"),u*=f}const d=e.length+1;r=uM(i-c,d,c==0),ns(i/d)>sa-s&&rr("overflow"),s+=ns(i/d),i%=d,e.splice(i++,0,s)}return String.fromCodePoint(...e)},w0=function(n){const e=[];n=x0(n);const t=n.length;let i=aM,s=0,r=oM;for(const c of n)c<128&&e.push(pf(c));const o=e.length;let a=o;for(o&&e.push(lM);a<t;){let c=sa;for(const u of n)u>=i&&u<c&&(c=u);const d=a+1;c-i>ns((sa-s)/d)&&rr("overflow"),s+=(c-i)*d,i=c;for(const u of n)if(u<i&&++s>sa&&rr("overflow"),u===i){let _=s;for(let m=ts;;m+=ts){const h=m<=r?T0:m>=r+Yl?Yl:m-r;if(_<h)break;const f=_-h,y=ts-h;e.push(pf(eS(h+f%y,0))),_=ns(f/y)}e.push(pf(eS(_,0))),r=uM(s,d,a===o),s=0,++a}++s,++i}return e.join("")},pM=function(n){return cM(n,function(e){return hye.test(e)?C0(e.slice(4).toLowerCase()):e})},fM=function(n){return cM(n,function(e){return gye.test(e)?"xn--"+w0(e):e})},Sye={version:"2.3.1",ucs2:{decode:x0,encode:dM},decode:C0,encode:w0,toASCII:fM,toUnicode:pM},Tye=Object.freeze(Object.defineProperty({__proto__:null,decode:C0,default:Sye,encode:w0,toASCII:fM,toUnicode:pM,ucs2decode:x0,ucs2encode:dM},Symbol.toStringTag,{value:"Module"})),xye=w4(Tye);var Cye={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},wye={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Rye={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Cl=kt,Aye=Ju,Mye=vbe,Nye=Ybe,Oye=x0e,Iye=eye,kye=fye,jr=Ga,_M=xye,Dye={default:Cye,zero:wye,commonmark:Rye},Lye=/^(vbscript|javascript|file|data):/,Pye=/^data:image\/(gif|png|jpeg|webp);/;function Fye(n){var e=n.trim().toLowerCase();return Lye.test(e)?!!Pye.test(e):!0}var mM=["http:","https:","mailto:"];function Uye(n){var e=jr.parse(n,!0);if(e.hostname&&(!e.protocol||mM.indexOf(e.protocol)>=0))try{e.hostname=_M.toASCII(e.hostname)}catch{}return jr.encode(jr.format(e))}function Bye(n){var e=jr.parse(n,!0);if(e.hostname&&(!e.protocol||mM.indexOf(e.protocol)>=0))try{e.hostname=_M.toUnicode(e.hostname)}catch{}return jr.decode(jr.format(e),jr.decode.defaultChars+"%")}function Ri(n,e){if(!(this instanceof Ri))return new Ri(n,e);e||Cl.isString(n)||(e=n||{},n="default"),this.inline=new Iye,this.block=new Oye,this.core=new Nye,this.renderer=new Mye,this.linkify=new kye,this.validateLink=Fye,this.normalizeLink=Uye,this.normalizeLinkText=Bye,this.utils=Cl,this.helpers=Cl.assign({},Aye),this.options={},this.configure(n),e&&this.set(e)}Ri.prototype.set=function(n){return Cl.assign(this.options,n),this};Ri.prototype.configure=function(n){var e=this,t;if(Cl.isString(n)&&(t=n,n=Dye[t],!n))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!n)throw new Error("Wrong `markdown-it` preset, can't be empty");return n.options&&e.set(n.options),n.components&&Object.keys(n.components).forEach(function(i){n.components[i].rules&&e[i].ruler.enableOnly(n.components[i].rules),n.components[i].rules2&&e[i].ruler2.enableOnly(n.components[i].rules2)}),this};Ri.prototype.enable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.enable(n,!0))},this),t=t.concat(this.inline.ruler2.enable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};Ri.prototype.disable=function(n,e){var t=[];Array.isArray(n)||(n=[n]),["core","block","inline"].forEach(function(s){t=t.concat(this[s].ruler.disable(n,!0))},this),t=t.concat(this.inline.ruler2.disable(n,!0));var i=n.filter(function(s){return t.indexOf(s)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};Ri.prototype.use=function(n){var e=[this].concat(Array.prototype.slice.call(arguments,1));return n.apply(n,e),this};Ri.prototype.parse=function(n,e){if(typeof n!="string")throw new Error("Input data should be a String");var t=new this.core.State(n,this,e);return this.core.process(t),t.tokens};Ri.prototype.render=function(n,e){return e=e||{},this.renderer.render(this.parse(n,e),this.options,e)};Ri.prototype.parseInline=function(n,e){var t=new this.core.State(n,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Ri.prototype.renderInline=function(n,e){return e=e||{},this.renderer.render(this.parseInline(n,e),this.options,e)};var Gye=Ri,Vye=Gye;const zye=Rr(Vye),Hye="😀",qye="😃",Yye="😄",$ye="😁",Wye="😆",Kye="😆",jye="😅",Qye="🤣",Xye="😂",Zye="🙂",Jye="🙃",eEe="😉",tEe="😊",nEe="😇",iEe="🥰",sEe="😍",rEe="🤩",oEe="😘",aEe="😗",lEe="☺️",cEe="😚",dEe="😙",uEe="🥲",pEe="😋",fEe="😛",_Ee="😜",mEe="🤪",hEe="😝",gEe="🤑",bEe="🤗",yEe="🤭",EEe="🤫",vEe="🤔",SEe="🤐",TEe="🤨",xEe="😐",CEe="😑",wEe="😶",REe="😏",AEe="😒",MEe="🙄",NEe="😬",OEe="🤥",IEe="😌",kEe="😔",DEe="😪",LEe="🤤",PEe="😴",FEe="😷",UEe="🤒",BEe="🤕",GEe="🤢",VEe="🤮",zEe="🤧",HEe="🥵",qEe="🥶",YEe="🥴",$Ee="😵",WEe="🤯",KEe="🤠",jEe="🥳",QEe="🥸",XEe="😎",ZEe="🤓",JEe="🧐",eve="😕",tve="😟",nve="🙁",ive="☹️",sve="😮",rve="😯",ove="😲",ave="😳",lve="🥺",cve="😦",dve="😧",uve="😨",pve="😰",fve="😥",_ve="😢",mve="😭",hve="😱",gve="😖",bve="😣",yve="😞",Eve="😓",vve="😩",Sve="😫",Tve="🥱",xve="😤",Cve="😡",wve="😡",Rve="😠",Ave="🤬",Mve="😈",Nve="👿",Ove="💀",Ive="☠️",kve="💩",Dve="💩",Lve="💩",Pve="🤡",Fve="👹",Uve="👺",Bve="👻",Gve="👽",Vve="👾",zve="🤖",Hve="😺",qve="😸",Yve="😹",$ve="😻",Wve="😼",Kve="😽",jve="🙀",Qve="😿",Xve="😾",Zve="🙈",Jve="🙉",eSe="🙊",tSe="💋",nSe="💌",iSe="💘",sSe="💝",rSe="💖",oSe="💗",aSe="💓",lSe="💞",cSe="💕",dSe="💟",uSe="❣️",pSe="💔",fSe="❤️",_Se="🧡",mSe="💛",hSe="💚",gSe="💙",bSe="💜",ySe="🤎",ESe="🖤",vSe="🤍",SSe="💢",TSe="💥",xSe="💥",CSe="💫",wSe="💦",RSe="💨",ASe="🕳️",MSe="💣",NSe="💬",OSe="👁️‍🗨️",ISe="🗨️",kSe="🗯️",DSe="💭",LSe="💤",PSe="👋",FSe="🤚",USe="🖐️",BSe="✋",GSe="✋",VSe="🖖",zSe="👌",HSe="🤌",qSe="🤏",YSe="✌️",$Se="🤞",WSe="🤟",KSe="🤘",jSe="🤙",QSe="👈",XSe="👉",ZSe="👆",JSe="🖕",e1e="🖕",t1e="👇",n1e="☝️",i1e="👍",s1e="👎",r1e="✊",o1e="✊",a1e="👊",l1e="👊",c1e="👊",d1e="🤛",u1e="🤜",p1e="👏",f1e="🙌",_1e="👐",m1e="🤲",h1e="🤝",g1e="🙏",b1e="✍️",y1e="💅",E1e="🤳",v1e="💪",S1e="🦾",T1e="🦿",x1e="🦵",C1e="🦶",w1e="👂",R1e="🦻",A1e="👃",M1e="🧠",N1e="🫀",O1e="🫁",I1e="🦷",k1e="🦴",D1e="👀",L1e="👁️",P1e="👅",F1e="👄",U1e="👶",B1e="🧒",G1e="👦",V1e="👧",z1e="🧑",H1e="👱",q1e="👨",Y1e="🧔",$1e="👨‍🦰",W1e="👨‍🦱",K1e="👨‍🦳",j1e="👨‍🦲",Q1e="👩",X1e="👩‍🦰",Z1e="🧑‍🦰",J1e="👩‍🦱",eTe="🧑‍🦱",tTe="👩‍🦳",nTe="🧑‍🦳",iTe="👩‍🦲",sTe="🧑‍🦲",rTe="👱‍♀️",oTe="👱‍♀️",aTe="👱‍♂️",lTe="🧓",cTe="👴",dTe="👵",uTe="🙍",pTe="🙍‍♂️",fTe="🙍‍♀️",_Te="🙎",mTe="🙎‍♂️",hTe="🙎‍♀️",gTe="🙅",bTe="🙅‍♂️",yTe="🙅‍♂️",ETe="🙅‍♀️",vTe="🙅‍♀️",STe="🙆",TTe="🙆‍♂️",xTe="🙆‍♀️",CTe="💁",wTe="💁",RTe="💁‍♂️",ATe="💁‍♂️",MTe="💁‍♀️",NTe="💁‍♀️",OTe="🙋",ITe="🙋‍♂️",kTe="🙋‍♀️",DTe="🧏",LTe="🧏‍♂️",PTe="🧏‍♀️",FTe="🙇",UTe="🙇‍♂️",BTe="🙇‍♀️",GTe="🤦",VTe="🤦‍♂️",zTe="🤦‍♀️",HTe="🤷",qTe="🤷‍♂️",YTe="🤷‍♀️",$Te="🧑‍⚕️",WTe="👨‍⚕️",KTe="👩‍⚕️",jTe="🧑‍🎓",QTe="👨‍🎓",XTe="👩‍🎓",ZTe="🧑‍🏫",JTe="👨‍🏫",exe="👩‍🏫",txe="🧑‍⚖️",nxe="👨‍⚖️",ixe="👩‍⚖️",sxe="🧑‍🌾",rxe="👨‍🌾",oxe="👩‍🌾",axe="🧑‍🍳",lxe="👨‍🍳",cxe="👩‍🍳",dxe="🧑‍🔧",uxe="👨‍🔧",pxe="👩‍🔧",fxe="🧑‍🏭",_xe="👨‍🏭",mxe="👩‍🏭",hxe="🧑‍💼",gxe="👨‍💼",bxe="👩‍💼",yxe="🧑‍🔬",Exe="👨‍🔬",vxe="👩‍🔬",Sxe="🧑‍💻",Txe="👨‍💻",xxe="👩‍💻",Cxe="🧑‍🎤",wxe="👨‍🎤",Rxe="👩‍🎤",Axe="🧑‍🎨",Mxe="👨‍🎨",Nxe="👩‍🎨",Oxe="🧑‍✈️",Ixe="👨‍✈️",kxe="👩‍✈️",Dxe="🧑‍🚀",Lxe="👨‍🚀",Pxe="👩‍🚀",Fxe="🧑‍🚒",Uxe="👨‍🚒",Bxe="👩‍🚒",Gxe="👮",Vxe="👮",zxe="👮‍♂️",Hxe="👮‍♀️",qxe="🕵️",Yxe="🕵️‍♂️",$xe="🕵️‍♀️",Wxe="💂",Kxe="💂‍♂️",jxe="💂‍♀️",Qxe="🥷",Xxe="👷",Zxe="👷‍♂️",Jxe="👷‍♀️",eCe="🤴",tCe="👸",nCe="👳",iCe="👳‍♂️",sCe="👳‍♀️",rCe="👲",oCe="🧕",aCe="🤵",lCe="🤵‍♂️",cCe="🤵‍♀️",dCe="👰",uCe="👰‍♂️",pCe="👰‍♀️",fCe="👰‍♀️",_Ce="🤰",mCe="🤱",hCe="👩‍🍼",gCe="👨‍🍼",bCe="🧑‍🍼",yCe="👼",ECe="🎅",vCe="🤶",SCe="🧑‍🎄",TCe="🦸",xCe="🦸‍♂️",CCe="🦸‍♀️",wCe="🦹",RCe="🦹‍♂️",ACe="🦹‍♀️",MCe="🧙",NCe="🧙‍♂️",OCe="🧙‍♀️",ICe="🧚",kCe="🧚‍♂️",DCe="🧚‍♀️",LCe="🧛",PCe="🧛‍♂️",FCe="🧛‍♀️",UCe="🧜",BCe="🧜‍♂️",GCe="🧜‍♀️",VCe="🧝",zCe="🧝‍♂️",HCe="🧝‍♀️",qCe="🧞",YCe="🧞‍♂️",$Ce="🧞‍♀️",WCe="🧟",KCe="🧟‍♂️",jCe="🧟‍♀️",QCe="💆",XCe="💆‍♂️",ZCe="💆‍♀️",JCe="💇",ewe="💇‍♂️",twe="💇‍♀️",nwe="🚶",iwe="🚶‍♂️",swe="🚶‍♀️",rwe="🧍",owe="🧍‍♂️",awe="🧍‍♀️",lwe="🧎",cwe="🧎‍♂️",dwe="🧎‍♀️",uwe="🧑‍🦯",pwe="👨‍🦯",fwe="👩‍🦯",_we="🧑‍🦼",mwe="👨‍🦼",hwe="👩‍🦼",gwe="🧑‍🦽",bwe="👨‍🦽",ywe="👩‍🦽",Ewe="🏃",vwe="🏃",Swe="🏃‍♂️",Twe="🏃‍♀️",xwe="💃",Cwe="💃",wwe="🕺",Rwe="🕴️",Awe="👯",Mwe="👯‍♂️",Nwe="👯‍♀️",Owe="🧖",Iwe="🧖‍♂️",kwe="🧖‍♀️",Dwe="🧗",Lwe="🧗‍♂️",Pwe="🧗‍♀️",Fwe="🤺",Uwe="🏇",Bwe="⛷️",Gwe="🏂",Vwe="🏌️",zwe="🏌️‍♂️",Hwe="🏌️‍♀️",qwe="🏄",Ywe="🏄‍♂️",$we="🏄‍♀️",Wwe="🚣",Kwe="🚣‍♂️",jwe="🚣‍♀️",Qwe="🏊",Xwe="🏊‍♂️",Zwe="🏊‍♀️",Jwe="⛹️",e2e="⛹️‍♂️",t2e="⛹️‍♂️",n2e="⛹️‍♀️",i2e="⛹️‍♀️",s2e="🏋️",r2e="🏋️‍♂️",o2e="🏋️‍♀️",a2e="🚴",l2e="🚴‍♂️",c2e="🚴‍♀️",d2e="🚵",u2e="🚵‍♂️",p2e="🚵‍♀️",f2e="🤸",_2e="🤸‍♂️",m2e="🤸‍♀️",h2e="🤼",g2e="🤼‍♂️",b2e="🤼‍♀️",y2e="🤽",E2e="🤽‍♂️",v2e="🤽‍♀️",S2e="🤾",T2e="🤾‍♂️",x2e="🤾‍♀️",C2e="🤹",w2e="🤹‍♂️",R2e="🤹‍♀️",A2e="🧘",M2e="🧘‍♂️",N2e="🧘‍♀️",O2e="🛀",I2e="🛌",k2e="🧑‍🤝‍🧑",D2e="👭",L2e="👫",P2e="👬",F2e="💏",U2e="👩‍❤️‍💋‍👨",B2e="👨‍❤️‍💋‍👨",G2e="👩‍❤️‍💋‍👩",V2e="💑",z2e="👩‍❤️‍👨",H2e="👨‍❤️‍👨",q2e="👩‍❤️‍👩",Y2e="👪",$2e="👨‍👩‍👦",W2e="👨‍👩‍👧",K2e="👨‍👩‍👧‍👦",j2e="👨‍👩‍👦‍👦",Q2e="👨‍👩‍👧‍👧",X2e="👨‍👨‍👦",Z2e="👨‍👨‍👧",J2e="👨‍👨‍👧‍👦",eRe="👨‍👨‍👦‍👦",tRe="👨‍👨‍👧‍👧",nRe="👩‍👩‍👦",iRe="👩‍👩‍👧",sRe="👩‍👩‍👧‍👦",rRe="👩‍👩‍👦‍👦",oRe="👩‍👩‍👧‍👧",aRe="👨‍👦",lRe="👨‍👦‍👦",cRe="👨‍👧",dRe="👨‍👧‍👦",uRe="👨‍👧‍👧",pRe="👩‍👦",fRe="👩‍👦‍👦",_Re="👩‍👧",mRe="👩‍👧‍👦",hRe="👩‍👧‍👧",gRe="🗣️",bRe="👤",yRe="👥",ERe="🫂",vRe="👣",SRe="🐵",TRe="🐒",xRe="🦍",CRe="🦧",wRe="🐶",RRe="🐕",ARe="🦮",MRe="🐕‍🦺",NRe="🐩",ORe="🐺",IRe="🦊",kRe="🦝",DRe="🐱",LRe="🐈",PRe="🐈‍⬛",FRe="🦁",URe="🐯",BRe="🐅",GRe="🐆",VRe="🐴",zRe="🐎",HRe="🦄",qRe="🦓",YRe="🦌",$Re="🦬",WRe="🐮",KRe="🐂",jRe="🐃",QRe="🐄",XRe="🐷",ZRe="🐖",JRe="🐗",eAe="🐽",tAe="🐏",nAe="🐑",iAe="🐐",sAe="🐪",rAe="🐫",oAe="🦙",aAe="🦒",lAe="🐘",cAe="🦣",dAe="🦏",uAe="🦛",pAe="🐭",fAe="🐁",_Ae="🐀",mAe="🐹",hAe="🐰",gAe="🐇",bAe="🐿️",yAe="🦫",EAe="🦔",vAe="🦇",SAe="🐻",TAe="🐻‍❄️",xAe="🐨",CAe="🐼",wAe="🦥",RAe="🦦",AAe="🦨",MAe="🦘",NAe="🦡",OAe="🐾",IAe="🐾",kAe="🦃",DAe="🐔",LAe="🐓",PAe="🐣",FAe="🐤",UAe="🐥",BAe="🐦",GAe="🐧",VAe="🕊️",zAe="🦅",HAe="🦆",qAe="🦢",YAe="🦉",$Ae="🦤",WAe="🪶",KAe="🦩",jAe="🦚",QAe="🦜",XAe="🐸",ZAe="🐊",JAe="🐢",eMe="🦎",tMe="🐍",nMe="🐲",iMe="🐉",sMe="🦕",rMe="🐳",oMe="🐋",aMe="🐬",lMe="🐬",cMe="🦭",dMe="🐟",uMe="🐠",pMe="🐡",fMe="🦈",_Me="🐙",mMe="🐚",hMe="🐌",gMe="🦋",bMe="🐛",yMe="🐜",EMe="🐝",vMe="🐝",SMe="🪲",TMe="🐞",xMe="🦗",CMe="🪳",wMe="🕷️",RMe="🕸️",AMe="🦂",MMe="🦟",NMe="🪰",OMe="🪱",IMe="🦠",kMe="💐",DMe="🌸",LMe="💮",PMe="🏵️",FMe="🌹",UMe="🥀",BMe="🌺",GMe="🌻",VMe="🌼",zMe="🌷",HMe="🌱",qMe="🪴",YMe="🌲",$Me="🌳",WMe="🌴",KMe="🌵",jMe="🌾",QMe="🌿",XMe="☘️",ZMe="🍀",JMe="🍁",eNe="🍂",tNe="🍃",nNe="🍇",iNe="🍈",sNe="🍉",rNe="🍊",oNe="🍊",aNe="🍊",lNe="🍋",cNe="🍌",dNe="🍍",uNe="🥭",pNe="🍎",fNe="🍏",_Ne="🍐",mNe="🍑",hNe="🍒",gNe="🍓",bNe="🫐",yNe="🥝",ENe="🍅",vNe="🫒",SNe="🥥",TNe="🥑",xNe="🍆",CNe="🥔",wNe="🥕",RNe="🌽",ANe="🌶️",MNe="🫑",NNe="🥒",ONe="🥬",INe="🥦",kNe="🧄",DNe="🧅",LNe="🍄",PNe="🥜",FNe="🌰",UNe="🍞",BNe="🥐",GNe="🥖",VNe="🫓",zNe="🥨",HNe="🥯",qNe="🥞",YNe="🧇",$Ne="🧀",WNe="🍖",KNe="🍗",jNe="🥩",QNe="🥓",XNe="🍔",ZNe="🍟",JNe="🍕",eOe="🌭",tOe="🥪",nOe="🌮",iOe="🌯",sOe="🫔",rOe="🥙",oOe="🧆",aOe="🥚",lOe="🍳",cOe="🥘",dOe="🍲",uOe="🫕",pOe="🥣",fOe="🥗",_Oe="🍿",mOe="🧈",hOe="🧂",gOe="🥫",bOe="🍱",yOe="🍘",EOe="🍙",vOe="🍚",SOe="🍛",TOe="🍜",xOe="🍝",COe="🍠",wOe="🍢",ROe="🍣",AOe="🍤",MOe="🍥",NOe="🥮",OOe="🍡",IOe="🥟",kOe="🥠",DOe="🥡",LOe="🦀",POe="🦞",FOe="🦐",UOe="🦑",BOe="🦪",GOe="🍦",VOe="🍧",zOe="🍨",HOe="🍩",qOe="🍪",YOe="🎂",$Oe="🍰",WOe="🧁",KOe="🥧",jOe="🍫",QOe="🍬",XOe="🍭",ZOe="🍮",JOe="🍯",eIe="🍼",tIe="🥛",nIe="☕",iIe="🫖",sIe="🍵",rIe="🍶",oIe="🍾",aIe="🍷",lIe="🍸",cIe="🍹",dIe="🍺",uIe="🍻",pIe="🥂",fIe="🥃",_Ie="🥤",mIe="🧋",hIe="🧃",gIe="🧉",bIe="🧊",yIe="🥢",EIe="🍽️",vIe="🍴",SIe="🥄",TIe="🔪",xIe="🔪",CIe="🏺",wIe="🌍",RIe="🌎",AIe="🌏",MIe="🌐",NIe="🗺️",OIe="🗾",IIe="🧭",kIe="🏔️",DIe="⛰️",LIe="🌋",PIe="🗻",FIe="🏕️",UIe="🏖️",BIe="🏜️",GIe="🏝️",VIe="🏞️",zIe="🏟️",HIe="🏛️",qIe="🏗️",YIe="🧱",$Ie="🪨",WIe="🪵",KIe="🛖",jIe="🏘️",QIe="🏚️",XIe="🏠",ZIe="🏡",JIe="🏢",eke="🏣",tke="🏤",nke="🏥",ike="🏦",ske="🏨",rke="🏩",oke="🏪",ake="🏫",lke="🏬",cke="🏭",dke="🏯",uke="🏰",pke="💒",fke="🗼",_ke="🗽",mke="⛪",hke="🕌",gke="🛕",bke="🕍",yke="⛩️",Eke="🕋",vke="⛲",Ske="⛺",Tke="🌁",xke="🌃",Cke="🏙️",wke="🌄",Rke="🌅",Ake="🌆",Mke="🌇",Nke="🌉",Oke="♨️",Ike="🎠",kke="🎡",Dke="🎢",Lke="💈",Pke="🎪",Fke="🚂",Uke="🚃",Bke="🚄",Gke="🚅",Vke="🚆",zke="🚇",Hke="🚈",qke="🚉",Yke="🚊",$ke="🚝",Wke="🚞",Kke="🚋",jke="🚌",Qke="🚍",Xke="🚎",Zke="🚐",Jke="🚑",eDe="🚒",tDe="🚓",nDe="🚔",iDe="🚕",sDe="🚖",rDe="🚗",oDe="🚗",aDe="🚘",lDe="🚙",cDe="🛻",dDe="🚚",uDe="🚛",pDe="🚜",fDe="🏎️",_De="🏍️",mDe="🛵",hDe="🦽",gDe="🦼",bDe="🛺",yDe="🚲",EDe="🛴",vDe="🛹",SDe="🛼",TDe="🚏",xDe="🛣️",CDe="🛤️",wDe="🛢️",RDe="⛽",ADe="🚨",MDe="🚥",NDe="🚦",ODe="🛑",IDe="🚧",kDe="⚓",DDe="⛵",LDe="⛵",PDe="🛶",FDe="🚤",UDe="🛳️",BDe="⛴️",GDe="🛥️",VDe="🚢",zDe="✈️",HDe="🛩️",qDe="🛫",YDe="🛬",$De="🪂",WDe="💺",KDe="🚁",jDe="🚟",QDe="🚠",XDe="🚡",ZDe="🛰️",JDe="🚀",eLe="🛸",tLe="🛎️",nLe="🧳",iLe="⌛",sLe="⏳",rLe="⌚",oLe="⏰",aLe="⏱️",lLe="⏲️",cLe="🕰️",dLe="🕛",uLe="🕧",pLe="🕐",fLe="🕜",_Le="🕑",mLe="🕝",hLe="🕒",gLe="🕞",bLe="🕓",yLe="🕟",ELe="🕔",vLe="🕠",SLe="🕕",TLe="🕡",xLe="🕖",CLe="🕢",wLe="🕗",RLe="🕣",ALe="🕘",MLe="🕤",NLe="🕙",OLe="🕥",ILe="🕚",kLe="🕦",DLe="🌑",LLe="🌒",PLe="🌓",FLe="🌔",ULe="🌔",BLe="🌕",GLe="🌖",VLe="🌗",zLe="🌘",HLe="🌙",qLe="🌚",YLe="🌛",$Le="🌜",WLe="🌡️",KLe="☀️",jLe="🌝",QLe="🌞",XLe="🪐",ZLe="⭐",JLe="🌟",ePe="🌠",tPe="🌌",nPe="☁️",iPe="⛅",sPe="⛈️",rPe="🌤️",oPe="🌥️",aPe="🌦️",lPe="🌧️",cPe="🌨️",dPe="🌩️",uPe="🌪️",pPe="🌫️",fPe="🌬️",_Pe="🌀",mPe="🌈",hPe="🌂",gPe="☂️",bPe="☔",yPe="⛱️",EPe="⚡",vPe="❄️",SPe="☃️",TPe="⛄",xPe="☄️",CPe="🔥",wPe="💧",RPe="🌊",APe="🎃",MPe="🎄",NPe="🎆",OPe="🎇",IPe="🧨",kPe="✨",DPe="🎈",LPe="🎉",PPe="🎊",FPe="🎋",UPe="🎍",BPe="🎎",GPe="🎏",VPe="🎐",zPe="🎑",HPe="🧧",qPe="🎀",YPe="🎁",$Pe="🎗️",WPe="🎟️",KPe="🎫",jPe="🎖️",QPe="🏆",XPe="🏅",ZPe="⚽",JPe="⚾",e3e="🥎",t3e="🏀",n3e="🏐",i3e="🏈",s3e="🏉",r3e="🎾",o3e="🥏",a3e="🎳",l3e="🏏",c3e="🏑",d3e="🏒",u3e="🥍",p3e="🏓",f3e="🏸",_3e="🥊",m3e="🥋",h3e="🥅",g3e="⛳",b3e="⛸️",y3e="🎣",E3e="🤿",v3e="🎽",S3e="🎿",T3e="🛷",x3e="🥌",C3e="🎯",w3e="🪀",R3e="🪁",A3e="🔮",M3e="🪄",N3e="🧿",O3e="🎮",I3e="🕹️",k3e="🎰",D3e="🎲",L3e="🧩",P3e="🧸",F3e="🪅",U3e="🪆",B3e="♠️",G3e="♥️",V3e="♦️",z3e="♣️",H3e="♟️",q3e="🃏",Y3e="🀄",$3e="🎴",W3e="🎭",K3e="🖼️",j3e="🎨",Q3e="🧵",X3e="🪡",Z3e="🧶",J3e="🪢",e4e="👓",t4e="🕶️",n4e="🥽",i4e="🥼",s4e="🦺",r4e="👔",o4e="👕",a4e="👕",l4e="👖",c4e="🧣",d4e="🧤",u4e="🧥",p4e="🧦",f4e="👗",_4e="👘",m4e="🥻",h4e="🩱",g4e="🩲",b4e="🩳",y4e="👙",E4e="👚",v4e="👛",S4e="👜",T4e="👝",x4e="🛍️",C4e="🎒",w4e="🩴",R4e="👞",A4e="👞",M4e="👟",N4e="🥾",O4e="🥿",I4e="👠",k4e="👡",D4e="🩰",L4e="👢",P4e="👑",F4e="👒",U4e="🎩",B4e="🎓",G4e="🧢",V4e="🪖",z4e="⛑️",H4e="📿",q4e="💄",Y4e="💍",$4e="💎",W4e="🔇",K4e="🔈",j4e="🔉",Q4e="🔊",X4e="📢",Z4e="📣",J4e="📯",e5e="🔔",t5e="🔕",n5e="🎼",i5e="🎵",s5e="🎶",r5e="🎙️",o5e="🎚️",a5e="🎛️",l5e="🎤",c5e="🎧",d5e="📻",u5e="🎷",p5e="🪗",f5e="🎸",_5e="🎹",m5e="🎺",h5e="🎻",g5e="🪕",b5e="🥁",y5e="🪘",E5e="📱",v5e="📲",S5e="☎️",T5e="☎️",x5e="📞",C5e="📟",w5e="📠",R5e="🔋",A5e="🔌",M5e="💻",N5e="🖥️",O5e="🖨️",I5e="⌨️",k5e="🖱️",D5e="🖲️",L5e="💽",P5e="💾",F5e="💿",U5e="📀",B5e="🧮",G5e="🎥",V5e="🎞️",z5e="📽️",H5e="🎬",q5e="📺",Y5e="📷",$5e="📸",W5e="📹",K5e="📼",j5e="🔍",Q5e="🔎",X5e="🕯️",Z5e="💡",J5e="🔦",eFe="🏮",tFe="🏮",nFe="🪔",iFe="📔",sFe="📕",rFe="📖",oFe="📖",aFe="📗",lFe="📘",cFe="📙",dFe="📚",uFe="📓",pFe="📒",fFe="📃",_Fe="📜",mFe="📄",hFe="📰",gFe="🗞️",bFe="📑",yFe="🔖",EFe="🏷️",vFe="💰",SFe="🪙",TFe="💴",xFe="💵",CFe="💶",wFe="💷",RFe="💸",AFe="💳",MFe="🧾",NFe="💹",OFe="✉️",IFe="📧",kFe="📨",DFe="📩",LFe="📤",PFe="📥",FFe="📫",UFe="📪",BFe="📬",GFe="📭",VFe="📮",zFe="🗳️",HFe="✏️",qFe="✒️",YFe="🖋️",$Fe="🖊️",WFe="🖌️",KFe="🖍️",jFe="📝",QFe="📝",XFe="💼",ZFe="📁",JFe="📂",eUe="🗂️",tUe="📅",nUe="📆",iUe="🗒️",sUe="🗓️",rUe="📇",oUe="📈",aUe="📉",lUe="📊",cUe="📋",dUe="📌",uUe="📍",pUe="📎",fUe="🖇️",_Ue="📏",mUe="📐",hUe="✂️",gUe="🗃️",bUe="🗄️",yUe="🗑️",EUe="🔒",vUe="🔓",SUe="🔏",TUe="🔐",xUe="🔑",CUe="🗝️",wUe="🔨",RUe="🪓",AUe="⛏️",MUe="⚒️",NUe="🛠️",OUe="🗡️",IUe="⚔️",kUe="🔫",DUe="🪃",LUe="🏹",PUe="🛡️",FUe="🪚",UUe="🔧",BUe="🪛",GUe="🔩",VUe="⚙️",zUe="🗜️",HUe="⚖️",qUe="🦯",YUe="🔗",$Ue="⛓️",WUe="🪝",KUe="🧰",jUe="🧲",QUe="🪜",XUe="⚗️",ZUe="🧪",JUe="🧫",eBe="🧬",tBe="🔬",nBe="🔭",iBe="📡",sBe="💉",rBe="🩸",oBe="💊",aBe="🩹",lBe="🩺",cBe="🚪",dBe="🛗",uBe="🪞",pBe="🪟",fBe="🛏️",_Be="🛋️",mBe="🪑",hBe="🚽",gBe="🪠",bBe="🚿",yBe="🛁",EBe="🪤",vBe="🪒",SBe="🧴",TBe="🧷",xBe="🧹",CBe="🧺",wBe="🧻",RBe="🪣",ABe="🧼",MBe="🪥",NBe="🧽",OBe="🧯",IBe="🛒",kBe="🚬",DBe="⚰️",LBe="🪦",PBe="⚱️",FBe="🗿",UBe="🪧",BBe="🏧",GBe="🚮",VBe="🚰",zBe="♿",HBe="🚹",qBe="🚺",YBe="🚻",$Be="🚼",WBe="🚾",KBe="🛂",jBe="🛃",QBe="🛄",XBe="🛅",ZBe="⚠️",JBe="🚸",e6e="⛔",t6e="🚫",n6e="🚳",i6e="🚭",s6e="🚯",r6e="🚷",o6e="📵",a6e="🔞",l6e="☢️",c6e="☣️",d6e="⬆️",u6e="↗️",p6e="➡️",f6e="↘️",_6e="⬇️",m6e="↙️",h6e="⬅️",g6e="↖️",b6e="↕️",y6e="↔️",E6e="↩️",v6e="↪️",S6e="⤴️",T6e="⤵️",x6e="🔃",C6e="🔄",w6e="🔙",R6e="🔚",A6e="🔛",M6e="🔜",N6e="🔝",O6e="🛐",I6e="⚛️",k6e="🕉️",D6e="✡️",L6e="☸️",P6e="☯️",F6e="✝️",U6e="☦️",B6e="☪️",G6e="☮️",V6e="🕎",z6e="🔯",H6e="♈",q6e="♉",Y6e="♊",$6e="♋",W6e="♌",K6e="♍",j6e="♎",Q6e="♏",X6e="♐",Z6e="♑",J6e="♒",e9e="♓",t9e="⛎",n9e="🔀",i9e="🔁",s9e="🔂",r9e="▶️",o9e="⏩",a9e="⏭️",l9e="⏯️",c9e="◀️",d9e="⏪",u9e="⏮️",p9e="🔼",f9e="⏫",_9e="🔽",m9e="⏬",h9e="⏸️",g9e="⏹️",b9e="⏺️",y9e="⏏️",E9e="🎦",v9e="🔅",S9e="🔆",T9e="📶",x9e="📳",C9e="📴",w9e="♀️",R9e="♂️",A9e="⚧️",M9e="✖️",N9e="➕",O9e="➖",I9e="➗",k9e="♾️",D9e="‼️",L9e="⁉️",P9e="❓",F9e="❔",U9e="❕",B9e="❗",G9e="❗",V9e="〰️",z9e="💱",H9e="💲",q9e="⚕️",Y9e="♻️",$9e="⚜️",W9e="🔱",K9e="📛",j9e="🔰",Q9e="⭕",X9e="✅",Z9e="☑️",J9e="✔️",e8e="❌",t8e="❎",n8e="➰",i8e="➿",s8e="〽️",r8e="✳️",o8e="✴️",a8e="❇️",l8e="©️",c8e="®️",d8e="™️",u8e="#️⃣",p8e="*️⃣",f8e="0️⃣",_8e="1️⃣",m8e="2️⃣",h8e="3️⃣",g8e="4️⃣",b8e="5️⃣",y8e="6️⃣",E8e="7️⃣",v8e="8️⃣",S8e="9️⃣",T8e="🔟",x8e="🔠",C8e="🔡",w8e="🔣",R8e="🔤",A8e="🅰️",M8e="🆎",N8e="🅱️",O8e="🆑",I8e="🆒",k8e="🆓",D8e="ℹ️",L8e="🆔",P8e="Ⓜ️",F8e="🆖",U8e="🅾️",B8e="🆗",G8e="🅿️",V8e="🆘",z8e="🆙",H8e="🆚",q8e="🈁",Y8e="🈂️",$8e="🉐",W8e="🉑",K8e="㊗️",j8e="㊙️",Q8e="🈵",X8e="🔴",Z8e="🟠",J8e="🟡",eGe="🟢",tGe="🔵",nGe="🟣",iGe="🟤",sGe="⚫",rGe="⚪",oGe="🟥",aGe="🟧",lGe="🟨",cGe="🟩",dGe="🟦",uGe="🟪",pGe="🟫",fGe="⬛",_Ge="⬜",mGe="◼️",hGe="◻️",gGe="◾",bGe="◽",yGe="▪️",EGe="▫️",vGe="🔶",SGe="🔷",TGe="🔸",xGe="🔹",CGe="🔺",wGe="🔻",RGe="💠",AGe="🔘",MGe="🔳",NGe="🔲",OGe="🏁",IGe="🚩",kGe="🎌",DGe="🏴",LGe="🏳️",PGe="🏳️‍🌈",FGe="🏳️‍⚧️",UGe="🏴‍☠️",BGe="🇦🇨",GGe="🇦🇩",VGe="🇦🇪",zGe="🇦🇫",HGe="🇦🇬",qGe="🇦🇮",YGe="🇦🇱",$Ge="🇦🇲",WGe="🇦🇴",KGe="🇦🇶",jGe="🇦🇷",QGe="🇦🇸",XGe="🇦🇹",ZGe="🇦🇺",JGe="🇦🇼",e7e="🇦🇽",t7e="🇦🇿",n7e="🇧🇦",i7e="🇧🇧",s7e="🇧🇩",r7e="🇧🇪",o7e="🇧🇫",a7e="🇧🇬",l7e="🇧🇭",c7e="🇧🇮",d7e="🇧🇯",u7e="🇧🇱",p7e="🇧🇲",f7e="🇧🇳",_7e="🇧🇴",m7e="🇧🇶",h7e="🇧🇷",g7e="🇧🇸",b7e="🇧🇹",y7e="🇧🇻",E7e="🇧🇼",v7e="🇧🇾",S7e="🇧🇿",T7e="🇨🇦",x7e="🇨🇨",C7e="🇨🇩",w7e="🇨🇫",R7e="🇨🇬",A7e="🇨🇭",M7e="🇨🇮",N7e="🇨🇰",O7e="🇨🇱",I7e="🇨🇲",k7e="🇨🇳",D7e="🇨🇴",L7e="🇨🇵",P7e="🇨🇷",F7e="🇨🇺",U7e="🇨🇻",B7e="🇨🇼",G7e="🇨🇽",V7e="🇨🇾",z7e="🇨🇿",H7e="🇩🇪",q7e="🇩🇬",Y7e="🇩🇯",$7e="🇩🇰",W7e="🇩🇲",K7e="🇩🇴",j7e="🇩🇿",Q7e="🇪🇦",X7e="🇪🇨",Z7e="🇪🇪",J7e="🇪🇬",eVe="🇪🇭",tVe="🇪🇷",nVe="🇪🇸",iVe="🇪🇹",sVe="🇪🇺",rVe="🇪🇺",oVe="🇫🇮",aVe="🇫🇯",lVe="🇫🇰",cVe="🇫🇲",dVe="🇫🇴",uVe="🇫🇷",pVe="🇬🇦",fVe="🇬🇧",_Ve="🇬🇧",mVe="🇬🇩",hVe="🇬🇪",gVe="🇬🇫",bVe="🇬🇬",yVe="🇬🇭",EVe="🇬🇮",vVe="🇬🇱",SVe="🇬🇲",TVe="🇬🇳",xVe="🇬🇵",CVe="🇬🇶",wVe="🇬🇷",RVe="🇬🇸",AVe="🇬🇹",MVe="🇬🇺",NVe="🇬🇼",OVe="🇬🇾",IVe="🇭🇰",kVe="🇭🇲",DVe="🇭🇳",LVe="🇭🇷",PVe="🇭🇹",FVe="🇭🇺",UVe="🇮🇨",BVe="🇮🇩",GVe="🇮🇪",VVe="🇮🇱",zVe="🇮🇲",HVe="🇮🇳",qVe="🇮🇴",YVe="🇮🇶",$Ve="🇮🇷",WVe="🇮🇸",KVe="🇮🇹",jVe="🇯🇪",QVe="🇯🇲",XVe="🇯🇴",ZVe="🇯🇵",JVe="🇰🇪",eze="🇰🇬",tze="🇰🇭",nze="🇰🇮",ize="🇰🇲",sze="🇰🇳",rze="🇰🇵",oze="🇰🇷",aze="🇰🇼",lze="🇰🇾",cze="🇰🇿",dze="🇱🇦",uze="🇱🇧",pze="🇱🇨",fze="🇱🇮",_ze="🇱🇰",mze="🇱🇷",hze="🇱🇸",gze="🇱🇹",bze="🇱🇺",yze="🇱🇻",Eze="🇱🇾",vze="🇲🇦",Sze="🇲🇨",Tze="🇲🇩",xze="🇲🇪",Cze="🇲🇫",wze="🇲🇬",Rze="🇲🇭",Aze="🇲🇰",Mze="🇲🇱",Nze="🇲🇲",Oze="🇲🇳",Ize="🇲🇴",kze="🇲🇵",Dze="🇲🇶",Lze="🇲🇷",Pze="🇲🇸",Fze="🇲🇹",Uze="🇲🇺",Bze="🇲🇻",Gze="🇲🇼",Vze="🇲🇽",zze="🇲🇾",Hze="🇲🇿",qze="🇳🇦",Yze="🇳🇨",$ze="🇳🇪",Wze="🇳🇫",Kze="🇳🇬",jze="🇳🇮",Qze="🇳🇱",Xze="🇳🇴",Zze="🇳🇵",Jze="🇳🇷",eHe="🇳🇺",tHe="🇳🇿",nHe="🇴🇲",iHe="🇵🇦",sHe="🇵🇪",rHe="🇵🇫",oHe="🇵🇬",aHe="🇵🇭",lHe="🇵🇰",cHe="🇵🇱",dHe="🇵🇲",uHe="🇵🇳",pHe="🇵🇷",fHe="🇵🇸",_He="🇵🇹",mHe="🇵🇼",hHe="🇵🇾",gHe="🇶🇦",bHe="🇷🇪",yHe="🇷🇴",EHe="🇷🇸",vHe="🇷🇺",SHe="🇷🇼",THe="🇸🇦",xHe="🇸🇧",CHe="🇸🇨",wHe="🇸🇩",RHe="🇸🇪",AHe="🇸🇬",MHe="🇸🇭",NHe="🇸🇮",OHe="🇸🇯",IHe="🇸🇰",kHe="🇸🇱",DHe="🇸🇲",LHe="🇸🇳",PHe="🇸🇴",FHe="🇸🇷",UHe="🇸🇸",BHe="🇸🇹",GHe="🇸🇻",VHe="🇸🇽",zHe="🇸🇾",HHe="🇸🇿",qHe="🇹🇦",YHe="🇹🇨",$He="🇹🇩",WHe="🇹🇫",KHe="🇹🇬",jHe="🇹🇭",QHe="🇹🇯",XHe="🇹🇰",ZHe="🇹🇱",JHe="🇹🇲",eqe="🇹🇳",tqe="🇹🇴",nqe="🇹🇷",iqe="🇹🇹",sqe="🇹🇻",rqe="🇹🇼",oqe="🇹🇿",aqe="🇺🇦",lqe="🇺🇬",cqe="🇺🇲",dqe="🇺🇳",uqe="🇺🇸",pqe="🇺🇾",fqe="🇺🇿",_qe="🇻🇦",mqe="🇻🇨",hqe="🇻🇪",gqe="🇻🇬",bqe="🇻🇮",yqe="🇻🇳",Eqe="🇻🇺",vqe="🇼🇫",Sqe="🇼🇸",Tqe="🇽🇰",xqe="🇾🇪",Cqe="🇾🇹",wqe="🇿🇦",Rqe="🇿🇲",Aqe="🇿🇼",Mqe="🏴󠁧󠁢󠁥󠁮󠁧󠁿",Nqe="🏴󠁧󠁢󠁳󠁣󠁴󠁿",Oqe="🏴󠁧󠁢󠁷󠁬󠁳󠁿",Iqe={100:"💯",1234:"🔢",grinning:Hye,smiley:qye,smile:Yye,grin:$ye,laughing:Wye,satisfied:Kye,sweat_smile:jye,rofl:Qye,joy:Xye,slightly_smiling_face:Zye,upside_down_face:Jye,wink:eEe,blush:tEe,innocent:nEe,smiling_face_with_three_hearts:iEe,heart_eyes:sEe,star_struck:rEe,kissing_heart:oEe,kissing:aEe,relaxed:lEe,kissing_closed_eyes:cEe,kissing_smiling_eyes:dEe,smiling_face_with_tear:uEe,yum:pEe,stuck_out_tongue:fEe,stuck_out_tongue_winking_eye:_Ee,zany_face:mEe,stuck_out_tongue_closed_eyes:hEe,money_mouth_face:gEe,hugs:bEe,hand_over_mouth:yEe,shushing_face:EEe,thinking:vEe,zipper_mouth_face:SEe,raised_eyebrow:TEe,neutral_face:xEe,expressionless:CEe,no_mouth:wEe,smirk:REe,unamused:AEe,roll_eyes:MEe,grimacing:NEe,lying_face:OEe,relieved:IEe,pensive:kEe,sleepy:DEe,drooling_face:LEe,sleeping:PEe,mask:FEe,face_with_thermometer:UEe,face_with_head_bandage:BEe,nauseated_face:GEe,vomiting_face:VEe,sneezing_face:zEe,hot_face:HEe,cold_face:qEe,woozy_face:YEe,dizzy_face:$Ee,exploding_head:WEe,cowboy_hat_face:KEe,partying_face:jEe,disguised_face:QEe,sunglasses:XEe,nerd_face:ZEe,monocle_face:JEe,confused:eve,worried:tve,slightly_frowning_face:nve,frowning_face:ive,open_mouth:sve,hushed:rve,astonished:ove,flushed:ave,pleading_face:lve,frowning:cve,anguished:dve,fearful:uve,cold_sweat:pve,disappointed_relieved:fve,cry:_ve,sob:mve,scream:hve,confounded:gve,persevere:bve,disappointed:yve,sweat:Eve,weary:vve,tired_face:Sve,yawning_face:Tve,triumph:xve,rage:Cve,pout:wve,angry:Rve,cursing_face:Ave,smiling_imp:Mve,imp:Nve,skull:Ove,skull_and_crossbones:Ive,hankey:kve,poop:Dve,shit:Lve,clown_face:Pve,japanese_ogre:Fve,japanese_goblin:Uve,ghost:Bve,alien:Gve,space_invader:Vve,robot:zve,smiley_cat:Hve,smile_cat:qve,joy_cat:Yve,heart_eyes_cat:$ve,smirk_cat:Wve,kissing_cat:Kve,scream_cat:jve,crying_cat_face:Qve,pouting_cat:Xve,see_no_evil:Zve,hear_no_evil:Jve,speak_no_evil:eSe,kiss:tSe,love_letter:nSe,cupid:iSe,gift_heart:sSe,sparkling_heart:rSe,heartpulse:oSe,heartbeat:aSe,revolving_hearts:lSe,two_hearts:cSe,heart_decoration:dSe,heavy_heart_exclamation:uSe,broken_heart:pSe,heart:fSe,orange_heart:_Se,yellow_heart:mSe,green_heart:hSe,blue_heart:gSe,purple_heart:bSe,brown_heart:ySe,black_heart:ESe,white_heart:vSe,anger:SSe,boom:TSe,collision:xSe,dizzy:CSe,sweat_drops:wSe,dash:RSe,hole:ASe,bomb:MSe,speech_balloon:NSe,eye_speech_bubble:OSe,left_speech_bubble:ISe,right_anger_bubble:kSe,thought_balloon:DSe,zzz:LSe,wave:PSe,raised_back_of_hand:FSe,raised_hand_with_fingers_splayed:USe,hand:BSe,raised_hand:GSe,vulcan_salute:VSe,ok_hand:zSe,pinched_fingers:HSe,pinching_hand:qSe,v:YSe,crossed_fingers:$Se,love_you_gesture:WSe,metal:KSe,call_me_hand:jSe,point_left:QSe,point_right:XSe,point_up_2:ZSe,middle_finger:JSe,fu:e1e,point_down:t1e,point_up:n1e,"+1":"👍",thumbsup:i1e,"-1":"👎",thumbsdown:s1e,fist_raised:r1e,fist:o1e,fist_oncoming:a1e,facepunch:l1e,punch:c1e,fist_left:d1e,fist_right:u1e,clap:p1e,raised_hands:f1e,open_hands:_1e,palms_up_together:m1e,handshake:h1e,pray:g1e,writing_hand:b1e,nail_care:y1e,selfie:E1e,muscle:v1e,mechanical_arm:S1e,mechanical_leg:T1e,leg:x1e,foot:C1e,ear:w1e,ear_with_hearing_aid:R1e,nose:A1e,brain:M1e,anatomical_heart:N1e,lungs:O1e,tooth:I1e,bone:k1e,eyes:D1e,eye:L1e,tongue:P1e,lips:F1e,baby:U1e,child:B1e,boy:G1e,girl:V1e,adult:z1e,blond_haired_person:H1e,man:q1e,bearded_person:Y1e,red_haired_man:$1e,curly_haired_man:W1e,white_haired_man:K1e,bald_man:j1e,woman:Q1e,red_haired_woman:X1e,person_red_hair:Z1e,curly_haired_woman:J1e,person_curly_hair:eTe,white_haired_woman:tTe,person_white_hair:nTe,bald_woman:iTe,person_bald:sTe,blond_haired_woman:rTe,blonde_woman:oTe,blond_haired_man:aTe,older_adult:lTe,older_man:cTe,older_woman:dTe,frowning_person:uTe,frowning_man:pTe,frowning_woman:fTe,pouting_face:_Te,pouting_man:mTe,pouting_woman:hTe,no_good:gTe,no_good_man:bTe,ng_man:yTe,no_good_woman:ETe,ng_woman:vTe,ok_person:STe,ok_man:TTe,ok_woman:xTe,tipping_hand_person:CTe,information_desk_person:wTe,tipping_hand_man:RTe,sassy_man:ATe,tipping_hand_woman:MTe,sassy_woman:NTe,raising_hand:OTe,raising_hand_man:ITe,raising_hand_woman:kTe,deaf_person:DTe,deaf_man:LTe,deaf_woman:PTe,bow:FTe,bowing_man:UTe,bowing_woman:BTe,facepalm:GTe,man_facepalming:VTe,woman_facepalming:zTe,shrug:HTe,man_shrugging:qTe,woman_shrugging:YTe,health_worker:$Te,man_health_worker:WTe,woman_health_worker:KTe,student:jTe,man_student:QTe,woman_student:XTe,teacher:ZTe,man_teacher:JTe,woman_teacher:exe,judge:txe,man_judge:nxe,woman_judge:ixe,farmer:sxe,man_farmer:rxe,woman_farmer:oxe,cook:axe,man_cook:lxe,woman_cook:cxe,mechanic:dxe,man_mechanic:uxe,woman_mechanic:pxe,factory_worker:fxe,man_factory_worker:_xe,woman_factory_worker:mxe,office_worker:hxe,man_office_worker:gxe,woman_office_worker:bxe,scientist:yxe,man_scientist:Exe,woman_scientist:vxe,technologist:Sxe,man_technologist:Txe,woman_technologist:xxe,singer:Cxe,man_singer:wxe,woman_singer:Rxe,artist:Axe,man_artist:Mxe,woman_artist:Nxe,pilot:Oxe,man_pilot:Ixe,woman_pilot:kxe,astronaut:Dxe,man_astronaut:Lxe,woman_astronaut:Pxe,firefighter:Fxe,man_firefighter:Uxe,woman_firefighter:Bxe,police_officer:Gxe,cop:Vxe,policeman:zxe,policewoman:Hxe,detective:qxe,male_detective:Yxe,female_detective:$xe,guard:Wxe,guardsman:Kxe,guardswoman:jxe,ninja:Qxe,construction_worker:Xxe,construction_worker_man:Zxe,construction_worker_woman:Jxe,prince:eCe,princess:tCe,person_with_turban:nCe,man_with_turban:iCe,woman_with_turban:sCe,man_with_gua_pi_mao:rCe,woman_with_headscarf:oCe,person_in_tuxedo:aCe,man_in_tuxedo:lCe,woman_in_tuxedo:cCe,person_with_veil:dCe,man_with_veil:uCe,woman_with_veil:pCe,bride_with_veil:fCe,pregnant_woman:_Ce,breast_feeding:mCe,woman_feeding_baby:hCe,man_feeding_baby:gCe,person_feeding_baby:bCe,angel:yCe,santa:ECe,mrs_claus:vCe,mx_claus:SCe,superhero:TCe,superhero_man:xCe,superhero_woman:CCe,supervillain:wCe,supervillain_man:RCe,supervillain_woman:ACe,mage:MCe,mage_man:NCe,mage_woman:OCe,fairy:ICe,fairy_man:kCe,fairy_woman:DCe,vampire:LCe,vampire_man:PCe,vampire_woman:FCe,merperson:UCe,merman:BCe,mermaid:GCe,elf:VCe,elf_man:zCe,elf_woman:HCe,genie:qCe,genie_man:YCe,genie_woman:$Ce,zombie:WCe,zombie_man:KCe,zombie_woman:jCe,massage:QCe,massage_man:XCe,massage_woman:ZCe,haircut:JCe,haircut_man:ewe,haircut_woman:twe,walking:nwe,walking_man:iwe,walking_woman:swe,standing_person:rwe,standing_man:owe,standing_woman:awe,kneeling_person:lwe,kneeling_man:cwe,kneeling_woman:dwe,person_with_probing_cane:uwe,man_with_probing_cane:pwe,woman_with_probing_cane:fwe,person_in_motorized_wheelchair:_we,man_in_motorized_wheelchair:mwe,woman_in_motorized_wheelchair:hwe,person_in_manual_wheelchair:gwe,man_in_manual_wheelchair:bwe,woman_in_manual_wheelchair:ywe,runner:Ewe,running:vwe,running_man:Swe,running_woman:Twe,woman_dancing:xwe,dancer:Cwe,man_dancing:wwe,business_suit_levitating:Rwe,dancers:Awe,dancing_men:Mwe,dancing_women:Nwe,sauna_person:Owe,sauna_man:Iwe,sauna_woman:kwe,climbing:Dwe,climbing_man:Lwe,climbing_woman:Pwe,person_fencing:Fwe,horse_racing:Uwe,skier:Bwe,snowboarder:Gwe,golfing:Vwe,golfing_man:zwe,golfing_woman:Hwe,surfer:qwe,surfing_man:Ywe,surfing_woman:$we,rowboat:Wwe,rowing_man:Kwe,rowing_woman:jwe,swimmer:Qwe,swimming_man:Xwe,swimming_woman:Zwe,bouncing_ball_person:Jwe,bouncing_ball_man:e2e,basketball_man:t2e,bouncing_ball_woman:n2e,basketball_woman:i2e,weight_lifting:s2e,weight_lifting_man:r2e,weight_lifting_woman:o2e,bicyclist:a2e,biking_man:l2e,biking_woman:c2e,mountain_bicyclist:d2e,mountain_biking_man:u2e,mountain_biking_woman:p2e,cartwheeling:f2e,man_cartwheeling:_2e,woman_cartwheeling:m2e,wrestling:h2e,men_wrestling:g2e,women_wrestling:b2e,water_polo:y2e,man_playing_water_polo:E2e,woman_playing_water_polo:v2e,handball_person:S2e,man_playing_handball:T2e,woman_playing_handball:x2e,juggling_person:C2e,man_juggling:w2e,woman_juggling:R2e,lotus_position:A2e,lotus_position_man:M2e,lotus_position_woman:N2e,bath:O2e,sleeping_bed:I2e,people_holding_hands:k2e,two_women_holding_hands:D2e,couple:L2e,two_men_holding_hands:P2e,couplekiss:F2e,couplekiss_man_woman:U2e,couplekiss_man_man:B2e,couplekiss_woman_woman:G2e,couple_with_heart:V2e,couple_with_heart_woman_man:z2e,couple_with_heart_man_man:H2e,couple_with_heart_woman_woman:q2e,family:Y2e,family_man_woman_boy:$2e,family_man_woman_girl:W2e,family_man_woman_girl_boy:K2e,family_man_woman_boy_boy:j2e,family_man_woman_girl_girl:Q2e,family_man_man_boy:X2e,family_man_man_girl:Z2e,family_man_man_girl_boy:J2e,family_man_man_boy_boy:eRe,family_man_man_girl_girl:tRe,family_woman_woman_boy:nRe,family_woman_woman_girl:iRe,family_woman_woman_girl_boy:sRe,family_woman_woman_boy_boy:rRe,family_woman_woman_girl_girl:oRe,family_man_boy:aRe,family_man_boy_boy:lRe,family_man_girl:cRe,family_man_girl_boy:dRe,family_man_girl_girl:uRe,family_woman_boy:pRe,family_woman_boy_boy:fRe,family_woman_girl:_Re,family_woman_girl_boy:mRe,family_woman_girl_girl:hRe,speaking_head:gRe,bust_in_silhouette:bRe,busts_in_silhouette:yRe,people_hugging:ERe,footprints:vRe,monkey_face:SRe,monkey:TRe,gorilla:xRe,orangutan:CRe,dog:wRe,dog2:RRe,guide_dog:ARe,service_dog:MRe,poodle:NRe,wolf:ORe,fox_face:IRe,raccoon:kRe,cat:DRe,cat2:LRe,black_cat:PRe,lion:FRe,tiger:URe,tiger2:BRe,leopard:GRe,horse:VRe,racehorse:zRe,unicorn:HRe,zebra:qRe,deer:YRe,bison:$Re,cow:WRe,ox:KRe,water_buffalo:jRe,cow2:QRe,pig:XRe,pig2:ZRe,boar:JRe,pig_nose:eAe,ram:tAe,sheep:nAe,goat:iAe,dromedary_camel:sAe,camel:rAe,llama:oAe,giraffe:aAe,elephant:lAe,mammoth:cAe,rhinoceros:dAe,hippopotamus:uAe,mouse:pAe,mouse2:fAe,rat:_Ae,hamster:mAe,rabbit:hAe,rabbit2:gAe,chipmunk:bAe,beaver:yAe,hedgehog:EAe,bat:vAe,bear:SAe,polar_bear:TAe,koala:xAe,panda_face:CAe,sloth:wAe,otter:RAe,skunk:AAe,kangaroo:MAe,badger:NAe,feet:OAe,paw_prints:IAe,turkey:kAe,chicken:DAe,rooster:LAe,hatching_chick:PAe,baby_chick:FAe,hatched_chick:UAe,bird:BAe,penguin:GAe,dove:VAe,eagle:zAe,duck:HAe,swan:qAe,owl:YAe,dodo:$Ae,feather:WAe,flamingo:KAe,peacock:jAe,parrot:QAe,frog:XAe,crocodile:ZAe,turtle:JAe,lizard:eMe,snake:tMe,dragon_face:nMe,dragon:iMe,sauropod:sMe,"t-rex":"🦖",whale:rMe,whale2:oMe,dolphin:aMe,flipper:lMe,seal:cMe,fish:dMe,tropical_fish:uMe,blowfish:pMe,shark:fMe,octopus:_Me,shell:mMe,snail:hMe,butterfly:gMe,bug:bMe,ant:yMe,bee:EMe,honeybee:vMe,beetle:SMe,lady_beetle:TMe,cricket:xMe,cockroach:CMe,spider:wMe,spider_web:RMe,scorpion:AMe,mosquito:MMe,fly:NMe,worm:OMe,microbe:IMe,bouquet:kMe,cherry_blossom:DMe,white_flower:LMe,rosette:PMe,rose:FMe,wilted_flower:UMe,hibiscus:BMe,sunflower:GMe,blossom:VMe,tulip:zMe,seedling:HMe,potted_plant:qMe,evergreen_tree:YMe,deciduous_tree:$Me,palm_tree:WMe,cactus:KMe,ear_of_rice:jMe,herb:QMe,shamrock:XMe,four_leaf_clover:ZMe,maple_leaf:JMe,fallen_leaf:eNe,leaves:tNe,grapes:nNe,melon:iNe,watermelon:sNe,tangerine:rNe,orange:oNe,mandarin:aNe,lemon:lNe,banana:cNe,pineapple:dNe,mango:uNe,apple:pNe,green_apple:fNe,pear:_Ne,peach:mNe,cherries:hNe,strawberry:gNe,blueberries:bNe,kiwi_fruit:yNe,tomato:ENe,olive:vNe,coconut:SNe,avocado:TNe,eggplant:xNe,potato:CNe,carrot:wNe,corn:RNe,hot_pepper:ANe,bell_pepper:MNe,cucumber:NNe,leafy_green:ONe,broccoli:INe,garlic:kNe,onion:DNe,mushroom:LNe,peanuts:PNe,chestnut:FNe,bread:UNe,croissant:BNe,baguette_bread:GNe,flatbread:VNe,pretzel:zNe,bagel:HNe,pancakes:qNe,waffle:YNe,cheese:$Ne,meat_on_bone:WNe,poultry_leg:KNe,cut_of_meat:jNe,bacon:QNe,hamburger:XNe,fries:ZNe,pizza:JNe,hotdog:eOe,sandwich:tOe,taco:nOe,burrito:iOe,tamale:sOe,stuffed_flatbread:rOe,falafel:oOe,egg:aOe,fried_egg:lOe,shallow_pan_of_food:cOe,stew:dOe,fondue:uOe,bowl_with_spoon:pOe,green_salad:fOe,popcorn:_Oe,butter:mOe,salt:hOe,canned_food:gOe,bento:bOe,rice_cracker:yOe,rice_ball:EOe,rice:vOe,curry:SOe,ramen:TOe,spaghetti:xOe,sweet_potato:COe,oden:wOe,sushi:ROe,fried_shrimp:AOe,fish_cake:MOe,moon_cake:NOe,dango:OOe,dumpling:IOe,fortune_cookie:kOe,takeout_box:DOe,crab:LOe,lobster:POe,shrimp:FOe,squid:UOe,oyster:BOe,icecream:GOe,shaved_ice:VOe,ice_cream:zOe,doughnut:HOe,cookie:qOe,birthday:YOe,cake:$Oe,cupcake:WOe,pie:KOe,chocolate_bar:jOe,candy:QOe,lollipop:XOe,custard:ZOe,honey_pot:JOe,baby_bottle:eIe,milk_glass:tIe,coffee:nIe,teapot:iIe,tea:sIe,sake:rIe,champagne:oIe,wine_glass:aIe,cocktail:lIe,tropical_drink:cIe,beer:dIe,beers:uIe,clinking_glasses:pIe,tumbler_glass:fIe,cup_with_straw:_Ie,bubble_tea:mIe,beverage_box:hIe,mate:gIe,ice_cube:bIe,chopsticks:yIe,plate_with_cutlery:EIe,fork_and_knife:vIe,spoon:SIe,hocho:TIe,knife:xIe,amphora:CIe,earth_africa:wIe,earth_americas:RIe,earth_asia:AIe,globe_with_meridians:MIe,world_map:NIe,japan:OIe,compass:IIe,mountain_snow:kIe,mountain:DIe,volcano:LIe,mount_fuji:PIe,camping:FIe,beach_umbrella:UIe,desert:BIe,desert_island:GIe,national_park:VIe,stadium:zIe,classical_building:HIe,building_construction:qIe,bricks:YIe,rock:$Ie,wood:WIe,hut:KIe,houses:jIe,derelict_house:QIe,house:XIe,house_with_garden:ZIe,office:JIe,post_office:eke,european_post_office:tke,hospital:nke,bank:ike,hotel:ske,love_hotel:rke,convenience_store:oke,school:ake,department_store:lke,factory:cke,japanese_castle:dke,european_castle:uke,wedding:pke,tokyo_tower:fke,statue_of_liberty:_ke,church:mke,mosque:hke,hindu_temple:gke,synagogue:bke,shinto_shrine:yke,kaaba:Eke,fountain:vke,tent:Ske,foggy:Tke,night_with_stars:xke,cityscape:Cke,sunrise_over_mountains:wke,sunrise:Rke,city_sunset:Ake,city_sunrise:Mke,bridge_at_night:Nke,hotsprings:Oke,carousel_horse:Ike,ferris_wheel:kke,roller_coaster:Dke,barber:Lke,circus_tent:Pke,steam_locomotive:Fke,railway_car:Uke,bullettrain_side:Bke,bullettrain_front:Gke,train2:Vke,metro:zke,light_rail:Hke,station:qke,tram:Yke,monorail:$ke,mountain_railway:Wke,train:Kke,bus:jke,oncoming_bus:Qke,trolleybus:Xke,minibus:Zke,ambulance:Jke,fire_engine:eDe,police_car:tDe,oncoming_police_car:nDe,taxi:iDe,oncoming_taxi:sDe,car:rDe,red_car:oDe,oncoming_automobile:aDe,blue_car:lDe,pickup_truck:cDe,truck:dDe,articulated_lorry:uDe,tractor:pDe,racing_car:fDe,motorcycle:_De,motor_scooter:mDe,manual_wheelchair:hDe,motorized_wheelchair:gDe,auto_rickshaw:bDe,bike:yDe,kick_scooter:EDe,skateboard:vDe,roller_skate:SDe,busstop:TDe,motorway:xDe,railway_track:CDe,oil_drum:wDe,fuelpump:RDe,rotating_light:ADe,traffic_light:MDe,vertical_traffic_light:NDe,stop_sign:ODe,construction:IDe,anchor:kDe,boat:DDe,sailboat:LDe,canoe:PDe,speedboat:FDe,passenger_ship:UDe,ferry:BDe,motor_boat:GDe,ship:VDe,airplane:zDe,small_airplane:HDe,flight_departure:qDe,flight_arrival:YDe,parachute:$De,seat:WDe,helicopter:KDe,suspension_railway:jDe,mountain_cableway:QDe,aerial_tramway:XDe,artificial_satellite:ZDe,rocket:JDe,flying_saucer:eLe,bellhop_bell:tLe,luggage:nLe,hourglass:iLe,hourglass_flowing_sand:sLe,watch:rLe,alarm_clock:oLe,stopwatch:aLe,timer_clock:lLe,mantelpiece_clock:cLe,clock12:dLe,clock1230:uLe,clock1:pLe,clock130:fLe,clock2:_Le,clock230:mLe,clock3:hLe,clock330:gLe,clock4:bLe,clock430:yLe,clock5:ELe,clock530:vLe,clock6:SLe,clock630:TLe,clock7:xLe,clock730:CLe,clock8:wLe,clock830:RLe,clock9:ALe,clock930:MLe,clock10:NLe,clock1030:OLe,clock11:ILe,clock1130:kLe,new_moon:DLe,waxing_crescent_moon:LLe,first_quarter_moon:PLe,moon:FLe,waxing_gibbous_moon:ULe,full_moon:BLe,waning_gibbous_moon:GLe,last_quarter_moon:VLe,waning_crescent_moon:zLe,crescent_moon:HLe,new_moon_with_face:qLe,first_quarter_moon_with_face:YLe,last_quarter_moon_with_face:$Le,thermometer:WLe,sunny:KLe,full_moon_with_face:jLe,sun_with_face:QLe,ringed_planet:XLe,star:ZLe,star2:JLe,stars:ePe,milky_way:tPe,cloud:nPe,partly_sunny:iPe,cloud_with_lightning_and_rain:sPe,sun_behind_small_cloud:rPe,sun_behind_large_cloud:oPe,sun_behind_rain_cloud:aPe,cloud_with_rain:lPe,cloud_with_snow:cPe,cloud_with_lightning:dPe,tornado:uPe,fog:pPe,wind_face:fPe,cyclone:_Pe,rainbow:mPe,closed_umbrella:hPe,open_umbrella:gPe,umbrella:bPe,parasol_on_ground:yPe,zap:EPe,snowflake:vPe,snowman_with_snow:SPe,snowman:TPe,comet:xPe,fire:CPe,droplet:wPe,ocean:RPe,jack_o_lantern:APe,christmas_tree:MPe,fireworks:NPe,sparkler:OPe,firecracker:IPe,sparkles:kPe,balloon:DPe,tada:LPe,confetti_ball:PPe,tanabata_tree:FPe,bamboo:UPe,dolls:BPe,flags:GPe,wind_chime:VPe,rice_scene:zPe,red_envelope:HPe,ribbon:qPe,gift:YPe,reminder_ribbon:$Pe,tickets:WPe,ticket:KPe,medal_military:jPe,trophy:QPe,medal_sports:XPe,"1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:ZPe,baseball:JPe,softball:e3e,basketball:t3e,volleyball:n3e,football:i3e,rugby_football:s3e,tennis:r3e,flying_disc:o3e,bowling:a3e,cricket_game:l3e,field_hockey:c3e,ice_hockey:d3e,lacrosse:u3e,ping_pong:p3e,badminton:f3e,boxing_glove:_3e,martial_arts_uniform:m3e,goal_net:h3e,golf:g3e,ice_skate:b3e,fishing_pole_and_fish:y3e,diving_mask:E3e,running_shirt_with_sash:v3e,ski:S3e,sled:T3e,curling_stone:x3e,dart:C3e,yo_yo:w3e,kite:R3e,"8ball":"🎱",crystal_ball:A3e,magic_wand:M3e,nazar_amulet:N3e,video_game:O3e,joystick:I3e,slot_machine:k3e,game_die:D3e,jigsaw:L3e,teddy_bear:P3e,pinata:F3e,nesting_dolls:U3e,spades:B3e,hearts:G3e,diamonds:V3e,clubs:z3e,chess_pawn:H3e,black_joker:q3e,mahjong:Y3e,flower_playing_cards:$3e,performing_arts:W3e,framed_picture:K3e,art:j3e,thread:Q3e,sewing_needle:X3e,yarn:Z3e,knot:J3e,eyeglasses:e4e,dark_sunglasses:t4e,goggles:n4e,lab_coat:i4e,safety_vest:s4e,necktie:r4e,shirt:o4e,tshirt:a4e,jeans:l4e,scarf:c4e,gloves:d4e,coat:u4e,socks:p4e,dress:f4e,kimono:_4e,sari:m4e,one_piece_swimsuit:h4e,swim_brief:g4e,shorts:b4e,bikini:y4e,womans_clothes:E4e,purse:v4e,handbag:S4e,pouch:T4e,shopping:x4e,school_satchel:C4e,thong_sandal:w4e,mans_shoe:R4e,shoe:A4e,athletic_shoe:M4e,hiking_boot:N4e,flat_shoe:O4e,high_heel:I4e,sandal:k4e,ballet_shoes:D4e,boot:L4e,crown:P4e,womans_hat:F4e,tophat:U4e,mortar_board:B4e,billed_cap:G4e,military_helmet:V4e,rescue_worker_helmet:z4e,prayer_beads:H4e,lipstick:q4e,ring:Y4e,gem:$4e,mute:W4e,speaker:K4e,sound:j4e,loud_sound:Q4e,loudspeaker:X4e,mega:Z4e,postal_horn:J4e,bell:e5e,no_bell:t5e,musical_score:n5e,musical_note:i5e,notes:s5e,studio_microphone:r5e,level_slider:o5e,control_knobs:a5e,microphone:l5e,headphones:c5e,radio:d5e,saxophone:u5e,accordion:p5e,guitar:f5e,musical_keyboard:_5e,trumpet:m5e,violin:h5e,banjo:g5e,drum:b5e,long_drum:y5e,iphone:E5e,calling:v5e,phone:S5e,telephone:T5e,telephone_receiver:x5e,pager:C5e,fax:w5e,battery:R5e,electric_plug:A5e,computer:M5e,desktop_computer:N5e,printer:O5e,keyboard:I5e,computer_mouse:k5e,trackball:D5e,minidisc:L5e,floppy_disk:P5e,cd:F5e,dvd:U5e,abacus:B5e,movie_camera:G5e,film_strip:V5e,film_projector:z5e,clapper:H5e,tv:q5e,camera:Y5e,camera_flash:$5e,video_camera:W5e,vhs:K5e,mag:j5e,mag_right:Q5e,candle:X5e,bulb:Z5e,flashlight:J5e,izakaya_lantern:eFe,lantern:tFe,diya_lamp:nFe,notebook_with_decorative_cover:iFe,closed_book:sFe,book:rFe,open_book:oFe,green_book:aFe,blue_book:lFe,orange_book:cFe,books:dFe,notebook:uFe,ledger:pFe,page_with_curl:fFe,scroll:_Fe,page_facing_up:mFe,newspaper:hFe,newspaper_roll:gFe,bookmark_tabs:bFe,bookmark:yFe,label:EFe,moneybag:vFe,coin:SFe,yen:TFe,dollar:xFe,euro:CFe,pound:wFe,money_with_wings:RFe,credit_card:AFe,receipt:MFe,chart:NFe,envelope:OFe,email:IFe,"e-mail":"📧",incoming_envelope:kFe,envelope_with_arrow:DFe,outbox_tray:LFe,inbox_tray:PFe,package:"📦",mailbox:FFe,mailbox_closed:UFe,mailbox_with_mail:BFe,mailbox_with_no_mail:GFe,postbox:VFe,ballot_box:zFe,pencil2:HFe,black_nib:qFe,fountain_pen:YFe,pen:$Fe,paintbrush:WFe,crayon:KFe,memo:jFe,pencil:QFe,briefcase:XFe,file_folder:ZFe,open_file_folder:JFe,card_index_dividers:eUe,date:tUe,calendar:nUe,spiral_notepad:iUe,spiral_calendar:sUe,card_index:rUe,chart_with_upwards_trend:oUe,chart_with_downwards_trend:aUe,bar_chart:lUe,clipboard:cUe,pushpin:dUe,round_pushpin:uUe,paperclip:pUe,paperclips:fUe,straight_ruler:_Ue,triangular_ruler:mUe,scissors:hUe,card_file_box:gUe,file_cabinet:bUe,wastebasket:yUe,lock:EUe,unlock:vUe,lock_with_ink_pen:SUe,closed_lock_with_key:TUe,key:xUe,old_key:CUe,hammer:wUe,axe:RUe,pick:AUe,hammer_and_pick:MUe,hammer_and_wrench:NUe,dagger:OUe,crossed_swords:IUe,gun:kUe,boomerang:DUe,bow_and_arrow:LUe,shield:PUe,carpentry_saw:FUe,wrench:UUe,screwdriver:BUe,nut_and_bolt:GUe,gear:VUe,clamp:zUe,balance_scale:HUe,probing_cane:qUe,link:YUe,chains:$Ue,hook:WUe,toolbox:KUe,magnet:jUe,ladder:QUe,alembic:XUe,test_tube:ZUe,petri_dish:JUe,dna:eBe,microscope:tBe,telescope:nBe,satellite:iBe,syringe:sBe,drop_of_blood:rBe,pill:oBe,adhesive_bandage:aBe,stethoscope:lBe,door:cBe,elevator:dBe,mirror:uBe,window:pBe,bed:fBe,couch_and_lamp:_Be,chair:mBe,toilet:hBe,plunger:gBe,shower:bBe,bathtub:yBe,mouse_trap:EBe,razor:vBe,lotion_bottle:SBe,safety_pin:TBe,broom:xBe,basket:CBe,roll_of_paper:wBe,bucket:RBe,soap:ABe,toothbrush:MBe,sponge:NBe,fire_extinguisher:OBe,shopping_cart:IBe,smoking:kBe,coffin:DBe,headstone:LBe,funeral_urn:PBe,moyai:FBe,placard:UBe,atm:BBe,put_litter_in_its_place:GBe,potable_water:VBe,wheelchair:zBe,mens:HBe,womens:qBe,restroom:YBe,baby_symbol:$Be,wc:WBe,passport_control:KBe,customs:jBe,baggage_claim:QBe,left_luggage:XBe,warning:ZBe,children_crossing:JBe,no_entry:e6e,no_entry_sign:t6e,no_bicycles:n6e,no_smoking:i6e,do_not_litter:s6e,"non-potable_water":"🚱",no_pedestrians:r6e,no_mobile_phones:o6e,underage:a6e,radioactive:l6e,biohazard:c6e,arrow_up:d6e,arrow_upper_right:u6e,arrow_right:p6e,arrow_lower_right:f6e,arrow_down:_6e,arrow_lower_left:m6e,arrow_left:h6e,arrow_upper_left:g6e,arrow_up_down:b6e,left_right_arrow:y6e,leftwards_arrow_with_hook:E6e,arrow_right_hook:v6e,arrow_heading_up:S6e,arrow_heading_down:T6e,arrows_clockwise:x6e,arrows_counterclockwise:C6e,back:w6e,end:R6e,on:A6e,soon:M6e,top:N6e,place_of_worship:O6e,atom_symbol:I6e,om:k6e,star_of_david:D6e,wheel_of_dharma:L6e,yin_yang:P6e,latin_cross:F6e,orthodox_cross:U6e,star_and_crescent:B6e,peace_symbol:G6e,menorah:V6e,six_pointed_star:z6e,aries:H6e,taurus:q6e,gemini:Y6e,cancer:$6e,leo:W6e,virgo:K6e,libra:j6e,scorpius:Q6e,sagittarius:X6e,capricorn:Z6e,aquarius:J6e,pisces:e9e,ophiuchus:t9e,twisted_rightwards_arrows:n9e,repeat:i9e,repeat_one:s9e,arrow_forward:r9e,fast_forward:o9e,next_track_button:a9e,play_or_pause_button:l9e,arrow_backward:c9e,rewind:d9e,previous_track_button:u9e,arrow_up_small:p9e,arrow_double_up:f9e,arrow_down_small:_9e,arrow_double_down:m9e,pause_button:h9e,stop_button:g9e,record_button:b9e,eject_button:y9e,cinema:E9e,low_brightness:v9e,high_brightness:S9e,signal_strength:T9e,vibration_mode:x9e,mobile_phone_off:C9e,female_sign:w9e,male_sign:R9e,transgender_symbol:A9e,heavy_multiplication_x:M9e,heavy_plus_sign:N9e,heavy_minus_sign:O9e,heavy_division_sign:I9e,infinity:k9e,bangbang:D9e,interrobang:L9e,question:P9e,grey_question:F9e,grey_exclamation:U9e,exclamation:B9e,heavy_exclamation_mark:G9e,wavy_dash:V9e,currency_exchange:z9e,heavy_dollar_sign:H9e,medical_symbol:q9e,recycle:Y9e,fleur_de_lis:$9e,trident:W9e,name_badge:K9e,beginner:j9e,o:Q9e,white_check_mark:X9e,ballot_box_with_check:Z9e,heavy_check_mark:J9e,x:e8e,negative_squared_cross_mark:t8e,curly_loop:n8e,loop:i8e,part_alternation_mark:s8e,eight_spoked_asterisk:r8e,eight_pointed_black_star:o8e,sparkle:a8e,copyright:l8e,registered:c8e,tm:d8e,hash:u8e,asterisk:p8e,zero:f8e,one:_8e,two:m8e,three:h8e,four:g8e,five:b8e,six:y8e,seven:E8e,eight:v8e,nine:S8e,keycap_ten:T8e,capital_abcd:x8e,abcd:C8e,symbols:w8e,abc:R8e,a:A8e,ab:M8e,b:N8e,cl:O8e,cool:I8e,free:k8e,information_source:D8e,id:L8e,m:P8e,new:"🆕",ng:F8e,o2:U8e,ok:B8e,parking:G8e,sos:V8e,up:z8e,vs:H8e,koko:q8e,sa:Y8e,ideograph_advantage:$8e,accept:W8e,congratulations:K8e,secret:j8e,u6e80:Q8e,red_circle:X8e,orange_circle:Z8e,yellow_circle:J8e,green_circle:eGe,large_blue_circle:tGe,purple_circle:nGe,brown_circle:iGe,black_circle:sGe,white_circle:rGe,red_square:oGe,orange_square:aGe,yellow_square:lGe,green_square:cGe,blue_square:dGe,purple_square:uGe,brown_square:pGe,black_large_square:fGe,white_large_square:_Ge,black_medium_square:mGe,white_medium_square:hGe,black_medium_small_square:gGe,white_medium_small_square:bGe,black_small_square:yGe,white_small_square:EGe,large_orange_diamond:vGe,large_blue_diamond:SGe,small_orange_diamond:TGe,small_blue_diamond:xGe,small_red_triangle:CGe,small_red_triangle_down:wGe,diamond_shape_with_a_dot_inside:RGe,radio_button:AGe,white_square_button:MGe,black_square_button:NGe,checkered_flag:OGe,triangular_flag_on_post:IGe,crossed_flags:kGe,black_flag:DGe,white_flag:LGe,rainbow_flag:PGe,transgender_flag:FGe,pirate_flag:UGe,ascension_island:BGe,andorra:GGe,united_arab_emirates:VGe,afghanistan:zGe,antigua_barbuda:HGe,anguilla:qGe,albania:YGe,armenia:$Ge,angola:WGe,antarctica:KGe,argentina:jGe,american_samoa:QGe,austria:XGe,australia:ZGe,aruba:JGe,aland_islands:e7e,azerbaijan:t7e,bosnia_herzegovina:n7e,barbados:i7e,bangladesh:s7e,belgium:r7e,burkina_faso:o7e,bulgaria:a7e,bahrain:l7e,burundi:c7e,benin:d7e,st_barthelemy:u7e,bermuda:p7e,brunei:f7e,bolivia:_7e,caribbean_netherlands:m7e,brazil:h7e,bahamas:g7e,bhutan:b7e,bouvet_island:y7e,botswana:E7e,belarus:v7e,belize:S7e,canada:T7e,cocos_islands:x7e,congo_kinshasa:C7e,central_african_republic:w7e,congo_brazzaville:R7e,switzerland:A7e,cote_divoire:M7e,cook_islands:N7e,chile:O7e,cameroon:I7e,cn:k7e,colombia:D7e,clipperton_island:L7e,costa_rica:P7e,cuba:F7e,cape_verde:U7e,curacao:B7e,christmas_island:G7e,cyprus:V7e,czech_republic:z7e,de:H7e,diego_garcia:q7e,djibouti:Y7e,denmark:$7e,dominica:W7e,dominican_republic:K7e,algeria:j7e,ceuta_melilla:Q7e,ecuador:X7e,estonia:Z7e,egypt:J7e,western_sahara:eVe,eritrea:tVe,es:nVe,ethiopia:iVe,eu:sVe,european_union:rVe,finland:oVe,fiji:aVe,falkland_islands:lVe,micronesia:cVe,faroe_islands:dVe,fr:uVe,gabon:pVe,gb:fVe,uk:_Ve,grenada:mVe,georgia:hVe,french_guiana:gVe,guernsey:bVe,ghana:yVe,gibraltar:EVe,greenland:vVe,gambia:SVe,guinea:TVe,guadeloupe:xVe,equatorial_guinea:CVe,greece:wVe,south_georgia_south_sandwich_islands:RVe,guatemala:AVe,guam:MVe,guinea_bissau:NVe,guyana:OVe,hong_kong:IVe,heard_mcdonald_islands:kVe,honduras:DVe,croatia:LVe,haiti:PVe,hungary:FVe,canary_islands:UVe,indonesia:BVe,ireland:GVe,israel:VVe,isle_of_man:zVe,india:HVe,british_indian_ocean_territory:qVe,iraq:YVe,iran:$Ve,iceland:WVe,it:KVe,jersey:jVe,jamaica:QVe,jordan:XVe,jp:ZVe,kenya:JVe,kyrgyzstan:eze,cambodia:tze,kiribati:nze,comoros:ize,st_kitts_nevis:sze,north_korea:rze,kr:oze,kuwait:aze,cayman_islands:lze,kazakhstan:cze,laos:dze,lebanon:uze,st_lucia:pze,liechtenstein:fze,sri_lanka:_ze,liberia:mze,lesotho:hze,lithuania:gze,luxembourg:bze,latvia:yze,libya:Eze,morocco:vze,monaco:Sze,moldova:Tze,montenegro:xze,st_martin:Cze,madagascar:wze,marshall_islands:Rze,macedonia:Aze,mali:Mze,myanmar:Nze,mongolia:Oze,macau:Ize,northern_mariana_islands:kze,martinique:Dze,mauritania:Lze,montserrat:Pze,malta:Fze,mauritius:Uze,maldives:Bze,malawi:Gze,mexico:Vze,malaysia:zze,mozambique:Hze,namibia:qze,new_caledonia:Yze,niger:$ze,norfolk_island:Wze,nigeria:Kze,nicaragua:jze,netherlands:Qze,norway:Xze,nepal:Zze,nauru:Jze,niue:eHe,new_zealand:tHe,oman:nHe,panama:iHe,peru:sHe,french_polynesia:rHe,papua_new_guinea:oHe,philippines:aHe,pakistan:lHe,poland:cHe,st_pierre_miquelon:dHe,pitcairn_islands:uHe,puerto_rico:pHe,palestinian_territories:fHe,portugal:_He,palau:mHe,paraguay:hHe,qatar:gHe,reunion:bHe,romania:yHe,serbia:EHe,ru:vHe,rwanda:SHe,saudi_arabia:THe,solomon_islands:xHe,seychelles:CHe,sudan:wHe,sweden:RHe,singapore:AHe,st_helena:MHe,slovenia:NHe,svalbard_jan_mayen:OHe,slovakia:IHe,sierra_leone:kHe,san_marino:DHe,senegal:LHe,somalia:PHe,suriname:FHe,south_sudan:UHe,sao_tome_principe:BHe,el_salvador:GHe,sint_maarten:VHe,syria:zHe,swaziland:HHe,tristan_da_cunha:qHe,turks_caicos_islands:YHe,chad:$He,french_southern_territories:WHe,togo:KHe,thailand:jHe,tajikistan:QHe,tokelau:XHe,timor_leste:ZHe,turkmenistan:JHe,tunisia:eqe,tonga:tqe,tr:nqe,trinidad_tobago:iqe,tuvalu:sqe,taiwan:rqe,tanzania:oqe,ukraine:aqe,uganda:lqe,us_outlying_islands:cqe,united_nations:dqe,us:uqe,uruguay:pqe,uzbekistan:fqe,vatican_city:_qe,st_vincent_grenadines:mqe,venezuela:hqe,british_virgin_islands:gqe,us_virgin_islands:bqe,vietnam:yqe,vanuatu:Eqe,wallis_futuna:vqe,samoa:Sqe,kosovo:Tqe,yemen:xqe,mayotte:Cqe,south_africa:wqe,zambia:Rqe,zimbabwe:Aqe,england:Mqe,scotland:Nqe,wales:Oqe};var kqe={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]},Dqe=function(e,t){return e[t].content},Lqe=function(e,t,i,s,r){var o=e.utils.arrayReplaceAt,a=e.utils.lib.ucmicro,c=new RegExp([a.Z.source,a.P.source,a.Cc.source].join("|"));function d(u,_,m){var h,f=0,y=[];return u.replace(r,function(b,g,E){var v;if(i.hasOwnProperty(b)){if(v=i[b],g>0&&!c.test(E[g-1])||g+b.length<E.length&&!c.test(E[g+b.length]))return}else v=b.slice(1,-1);g>f&&(h=new m("text","",0),h.content=u.slice(f,g),y.push(h)),h=new m("emoji","",0),h.markup=v,h.content=t[v],y.push(h),f=g+b.length}),f<u.length&&(h=new m("text","",0),h.content=u.slice(f),y.push(h)),y}return function(_){var m,h,f,y,b,g=_.tokens,E=0;for(h=0,f=g.length;h<f;h++)if(g[h].type==="inline")for(y=g[h].children,m=y.length-1;m>=0;m--)b=y[m],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(E-=b.nesting),b.type==="text"&&E===0&&s.test(b.content)&&(g[h].children=y=o(y,m,d(b.content,b.level,_.Token)))}};function Pqe(n){return n.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Fqe=function(e){var t=e.defs,i;e.enabled.length&&(t=Object.keys(t).reduce(function(c,d){return e.enabled.indexOf(d)>=0&&(c[d]=t[d]),c},{})),i=Object.keys(e.shortcuts).reduce(function(c,d){return t[d]?Array.isArray(e.shortcuts[d])?(e.shortcuts[d].forEach(function(u){c[u]=d}),c):(c[e.shortcuts[d]]=d,c):c},{});var s=Object.keys(t),r;s.length===0?r="^$":r=s.map(function(c){return":"+c+":"}).concat(Object.keys(i)).sort().reverse().map(function(c){return Pqe(c)}).join("|");var o=RegExp(r),a=RegExp(r,"g");return{defs:t,shortcuts:i,scanRE:o,replaceRE:a}},Uqe=Dqe,Bqe=Lqe,Gqe=Fqe,Vqe=function(e,t){var i={defs:{},shortcuts:{},enabled:[]},s=Gqe(e.utils.assign({},i,t||{}));e.renderer.rules.emoji=Uqe,e.core.ruler.after("linkify","emoji",Bqe(e,s.defs,s.shortcuts,s.scanRE,s.replaceRE))},zqe=Iqe,Hqe=kqe,qqe=Vqe,Yqe=function(e,t){var i={defs:zqe,shortcuts:Hqe,enabled:[]},s=e.utils.assign({},i,t||{});qqe(e,s)};const $qe=Rr(Yqe);var tS=!1,fa={false:"push",true:"unshift",after:"push",before:"unshift"},Jd={isPermalinkSymbol:!0};function rb(n,e,t,i){var s;if(!tS){var r="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(r):console.warn(r),tS=!0}var o=[Object.assign(new t.Token("link_open","a",1),{attrs:[].concat(e.permalinkClass?[["class",e.permalinkClass]]:[],[["href",e.permalinkHref(n,t)]],Object.entries(e.permalinkAttrs(n,t)))}),Object.assign(new t.Token("html_block","",0),{content:e.permalinkSymbol,meta:Jd}),new t.Token("link_close","a",-1)];e.permalinkSpace&&t.tokens[i+1].children[fa[e.permalinkBefore]](Object.assign(new t.Token("text","",0),{content:" "})),(s=t.tokens[i+1].children)[fa[e.permalinkBefore]].apply(s,o)}function hM(n){return"#"+n}function gM(n){return{}}var Wqe={class:"header-anchor",symbol:"#",renderHref:hM,renderAttrs:gM};function lc(n){function e(t){return t=Object.assign({},e.defaults,t),function(i,s,r,o){return n(i,t,s,r,o)}}return e.defaults=Object.assign({},Wqe),e.renderPermalinkImpl=n,e}var op=lc(function(n,e,t,i,s){var r,o=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],e.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(e.renderAttrs(n,i)))}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:Jd}),new i.Token("link_close","a",-1)];if(e.space){var a=typeof e.space=="string"?e.space:" ";i.tokens[s+1].children[fa[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:a}))}(r=i.tokens[s+1].children)[fa[e.placement]].apply(r,o)});Object.assign(op.defaults,{space:!0,placement:"after",ariaHidden:!1});var Vr=lc(op.renderPermalinkImpl);Vr.defaults=Object.assign({},op.defaults,{ariaHidden:!0});var bM=lc(function(n,e,t,i,s){var r=[Object.assign(new i.Token("link_open","a",1),{attrs:[].concat(e.class?[["class",e.class]]:[],[["href",e.renderHref(n,i)]],Object.entries(e.renderAttrs(n,i)))})].concat(e.safariReaderFix?[new i.Token("span_open","span",1)]:[],i.tokens[s+1].children,e.safariReaderFix?[new i.Token("span_close","span",-1)]:[],[new i.Token("link_close","a",-1)]);i.tokens[s+1]=Object.assign(new i.Token("inline","",0),{children:r})});Object.assign(bM.defaults,{safariReaderFix:!1});var nS=lc(function(n,e,t,i,s){var r;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(e.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+e.style+"`");if(!["aria-describedby","aria-labelledby"].includes(e.style)&&!e.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+e.style+"` style");if(e.style==="visually-hidden"&&!e.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var o=i.tokens[s+1].children.filter(function(_){return _.type==="text"||_.type==="code_inline"}).reduce(function(_,m){return _+m.content},""),a=[],c=[];if(e.class&&c.push(["class",e.class]),c.push(["href",e.renderHref(n,i)]),c.push.apply(c,Object.entries(e.renderAttrs(n,i))),e.style==="visually-hidden"){if(a.push(Object.assign(new i.Token("span_open","span",1),{attrs:[["class",e.visuallyHiddenClass]]}),Object.assign(new i.Token("text","",0),{content:e.assistiveText(o)}),new i.Token("span_close","span",-1)),e.space){var d=typeof e.space=="string"?e.space:" ";a[fa[e.placement]](Object.assign(new i.Token(typeof e.space=="string"?"html_inline":"text","",0),{content:d}))}a[fa[e.placement]](Object.assign(new i.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:Jd}),new i.Token("span_close","span",-1))}else a.push(Object.assign(new i.Token("html_inline","",0),{content:e.symbol,meta:Jd}));e.style==="aria-label"?c.push(["aria-label",e.assistiveText(o)]):["aria-describedby","aria-labelledby"].includes(e.style)&&c.push([e.style,n]);var u=[Object.assign(new i.Token("link_open","a",1),{attrs:c})].concat(a,[new i.Token("link_close","a",-1)]);(r=i.tokens).splice.apply(r,[s+3,0].concat(u)),e.wrapper&&(i.tokens.splice(s,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[0]+`
 `})),i.tokens.splice(s+3+u.length+1,0,Object.assign(new i.Token("html_block","",0),{content:e.wrapper[1]+`
-`})))});function iS(n,e,t,i){var s=n,r=i;if(t&&Object.prototype.hasOwnProperty.call(e,s))throw new Error("User defined `id` attribute `"+n+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,s);)s=n+"-"+r,r+=1;return e[s]=!0,s}function Wo(n,e){e=Object.assign({},Wo.defaults,e),n.core.ruler.push("anchor",function(t){for(var i,s={},r=t.tokens,o=Array.isArray(e.level)?(i=e.level,function(_){return i.includes(_)}):function(_){return function(m){return m>=_}}(e.level),a=0;a<r.length;a++){var c=r[a];if(c.type==="heading_open"&&o(Number(c.tag.substr(1)))){var d=e.getTokensText(r[a+1].children),u=c.attrGet("id");u=u==null?iS(e.slugify(d),s,!1,e.uniqueSlugStartIndex):iS(u,s,!0,e.uniqueSlugStartIndex),c.attrSet("id",u),e.tabIndex!==!1&&c.attrSet("tabindex",""+e.tabIndex),typeof e.permalink=="function"?e.permalink(u,e,t,a):(e.permalink||e.renderPermalink&&e.renderPermalink!==rb)&&e.renderPermalink(u,e,t,a),a=r.indexOf(c),e.callback&&e.callback(c,{slug:u,title:d})}}})}Object.assign(nS.defaults,{style:"visually-hidden",space:!0,placement:"after",wrapper:null}),Wo.permalink={__proto__:null,legacy:rb,renderHref:hM,renderAttrs:gM,makePermalink:lc,linkInsideHeader:op,ariaHidden:Vr,headerLink:bM,linkAfterHeader:nS},Wo.defaults={level:1,slugify:function(n){return encodeURIComponent(String(n).trim().toLowerCase().replace(/\s+/g,"-"))},uniqueSlugStartIndex:1,tabIndex:"-1",getTokensText:function(n){return n.filter(function(e){return["text","code_inline"].includes(e.type)}).map(function(e){return e.content}).join("")},permalink:!1,renderPermalink:rb,permalinkClass:Vr.defaults.class,permalinkSpace:Vr.defaults.space,permalinkSymbol:"¶",permalinkBefore:Vr.defaults.placement==="before",permalinkHref:Vr.defaults.renderHref,permalinkAttrs:Vr.defaults.renderAttrs},Wo.default=Wo;function Bs(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}Bs.prototype.set_highest_alphabet=function(n){this.__highest_alphabet__=n};Bs.prototype.set_match_alphabets=function(n){this.__match_alphabets__=n};Bs.prototype.set_initial_state=function(n){this.__initial_state__=n};Bs.prototype.set_accept_states=function(n){for(var e=0;e<n.length;e++)this.__accept_states__[n[e]]=!0};Bs.prototype.set_transitions=function(n){this.__transitions__=n};Bs.prototype.set_actions=function(n){this.__actions__=n};Bs.prototype.update_transition=function(n,e){this.__transitions__[n]=Object.assign(this.__transitions__[n]||Object(),e)};Bs.prototype.execute=function(n,e){var t,i,s;for(t=this.__initial_state__,i=n;t&&i<e;i++){for(s=this.__highest_alphabet__;s>0&&!(t&s&&this.__match_alphabets__[s].call(this,i,t,s));s>>=4);if(this.__actions__(i,t,s),s===0)break;t=this.__transitions__[t][s]||0}return!!this.__accept_states__[t]};var jqe=Bs,Qqe=jqe,Xqe=function(e,t){var i={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},i,t||{});function s(u,_){var m=u.bMarks[_]+u.sCount[_],h=u.bMarks[_]+u.blkIndent,f=u.skipSpacesBack(u.eMarks[_],h),y=[],b,g,E=!1,v=!1,S=0;for(b=m;b<f;b++)switch(u.src.charCodeAt(b)){case 92:E=!0;break;case 96:g=u.skipChars(b,96)-1,g>b?(v||(S===0?S=g-b:S===g-b&&(S=0)),b=g):(v||!E&&!S)&&(v=!v),E=!1;break;case 124:!v&&!E&&y.push(b),E=!1;break;default:E=!1;break}return y.length===0||(y[0]>h&&y.unshift(h-1),y[y.length-1]<f-1&&y.push(f)),y}function r(u,_,m){var h={text:null,label:null},f=u.bMarks[m]+u.sCount[m],y=u.eMarks[m],b=/^\[(.+?)\](\[([^\[\]]+)\])?\s*$/,g=u.src.slice(f,y).match(b);return g?_?!0:(h.text=g[1],!t.autolabel&&!g[2]||(h.label=g[2]||g[1],h.label=h.label.toLowerCase().replace(/\W+/g,"")),h):!1}function o(u,_,m){var h={bounds:null,multiline:null},f=s(u,m),y,b,g;return f.length<2?!1:_?!0:(h.bounds=f,t.multiline&&(y=u.bMarks[m]+u.sCount[m],b=u.eMarks[m]-1,h.multiline=u.src.charCodeAt(b)===92,h.multiline&&(g=u.eMarks[m],u.eMarks[m]=u.skipSpacesBack(b,y),h.bounds=s(u,m),u.eMarks[m]=g)),h)}function a(u,_,m){var h={aligns:[],wraps:[]},f=s(u,m),y=/^:?(-+|=+):?\+?$/,b,g,E;if(u.sCount[m]-u.blkIndent>=4||f.length===0)return!1;for(b=0;b<f.length-1;b++){if(g=u.src.slice(f[b]+1,f[b+1]).trim(),!y.test(g))return!1;switch(h.wraps.push(g.charCodeAt(g.length-1)===43),E=(g.charCodeAt(0)===58)<<4|g.charCodeAt(g.length-1-h.wraps[b])===58,E){case 0:h.aligns.push("");break;case 1:h.aligns.push("right");break;case 16:h.aligns.push("left");break;case 17:h.aligns.push("center");break}}return _?!0:h}function c(u,_,m){return u.isEmpty(m)}function d(u,_,m,h){var f=new Qqe,y=16,b=-1,g,E,v,S,R,C,A=[],I,x,M,G,V,ee,O,H,q,L;if(_+2>m||(E=new u.Token("table_open","table",1),E.meta={sep:null,cap:null,tr:[]},f.set_highest_alphabet(65536),f.set_initial_state(65792),f.set_accept_states([65552,65553,0]),f.set_match_alphabets({65536:r.bind(this,u,!0),4096:a.bind(this,u,!0),256:o.bind(this,u,!0),16:o.bind(this,u,!0),1:c.bind(this,u,!0)}),f.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),t.headerless&&(f.set_initial_state(69888),f.update_transition(69888,{65536:4352,4096:65552,256:4352}),v=new u.Token("tr_placeholder","tr",0),v.meta=Object()),t.multibody||f.update_transition(65552,{65536:0,16:65552}),f.set_actions(function(oe,ye,xe){switch(xe){case 65536:if(E.meta.cap)break;E.meta.cap=r(u,!1,oe),E.meta.cap.map=[oe,oe+1],E.meta.cap.first=oe===_;break;case 4096:E.meta.sep=a(u,!1,oe),E.meta.sep.map=[oe,oe+1],v.meta.grp|=1,y=16;break;case 256:case 16:v=new u.Token("tr_open","tr",1),v.map=[oe,oe+1],v.meta=o(u,!1,oe),v.meta.type=xe,v.meta.grp=y,y=0,E.meta.tr.push(v),t.multiline&&(v.meta.multiline&&b<0?b=E.meta.tr.length-1:!v.meta.multiline&&b>=0&&(g=E.meta.tr[b],g.meta.mbounds=E.meta.tr.slice(b).map(function(le){return le.meta.bounds}),g.map[1]=v.map[1],E.meta.tr=E.meta.tr.slice(0,b+1),b=-1));break;case 1:v.meta.grp|=1,y=16;break}}),f.execute(_,m)===!1)||!E.meta.tr.length)return!1;if(h)return!0;if(E.meta.tr[E.meta.tr.length-1].meta.grp|=1,E.map=I=[_,0],E.block=!0,E.level=u.level++,u.tokens.push(E),E.meta.cap){g=u.push("caption_open","caption",1),g.map=E.meta.cap.map;var Y=[],ne=E.meta.cap.first?"top":"bottom";E.meta.cap.label!==null&&Y.push(["id",E.meta.cap.label]),ne!=="top"&&Y.push(["style","caption-side: "+ne]),g.attrs=Y,g=u.push("inline","",0),g.content=E.meta.cap.text,g.map=E.meta.cap.map,g.children=[],g=u.push("caption_close","caption",-1)}for(ee=0;ee<E.meta.tr.length;ee++){for(R=new u.Token("td_th_placeholder","",0),v=E.meta.tr[ee],v.meta.grp&16&&(M=v.meta.type===256?"thead":"tbody",g=u.push(M+"_open",M,1),g.map=x=[v.map[0],0],A=[]),v.block=!0,v.level=u.level++,u.tokens.push(v),O=0;O<v.meta.bounds.length-1;O++){if(V=[v.meta.bounds[O]+1,v.meta.bounds[O+1]],G=u.src.slice.apply(u.src,V),G===""){S=R.attrGet("colspan"),R.attrSet("colspan",S===null?2:S+1);continue}if(t.rowspan&&A[O]&&G.trim()==="^^"){C=A[O].attrGet("rowspan"),A[O].attrSet("rowspan",C===null?2:C+1),R=new u.Token("td_th_placeholder","",0);continue}if(M=v.meta.type===256?"th":"td",g=u.push(M+"_open",M,1),g.map=v.map,g.attrs=[],E.meta.sep.aligns[O]&&g.attrs.push(["style","text-align:"+E.meta.sep.aligns[O]]),E.meta.sep.wraps[O]&&g.attrs.push(["class","extend"]),R=A[O]=g,t.multiline&&v.meta.multiline&&v.meta.mbounds){for(G=new Array(v.map[0]).fill("").concat([G.trimRight()]),H=1;H<v.meta.mbounds.length;H++)O>v.meta.mbounds[H].length-2||(V=[v.meta.mbounds[H][O]+1,v.meta.mbounds[H][O+1]],G.push(u.src.slice.apply(u.src,V).trimRight()));for(L=new u.md.block.State(G.join(`
-`),u.md,u.env,[]),L.level=v.level+1,u.md.block.tokenize(L,v.map[0],L.lineMax),q=0;q<L.tokens.length;q++)u.tokens.push(L.tokens[q])}else g=u.push("inline","",0),g.content=G.trim(),g.map=v.map,g.level=v.level+1,g.children=[];g=u.push(M+"_close",M,-1)}u.push("tr_close","tr",-1),v.meta.grp&1&&(M=v.meta.type===256?"thead":"tbody",g=u.push(M+"_close",M,-1),x[1]=v.map[1])}return I[1]=Math.max(x[1],E.meta.sep.map[1],E.meta.cap?E.meta.cap.map[1]:-1),g=u.push("table_close","table",-1),u.line=I[1],!0}e.block.ruler.at("table",d,{alt:["paragraph","reference"]})};const Zqe=Rr(Xqe);var Jqe=function(e,t){t=t||{};function i(s){for(var r=1,o=1,a=s.tokens.length;o<a-1;++o){var c=s.tokens[o];if(c.type==="inline"&&!(!c.children||c.children.length!==1&&c.children.length!==3)&&!(c.children.length===1&&c.children[0].type!=="image")&&!(c.children.length===3&&(c.children[0].type!=="link_open"||c.children[1].type!=="image"||c.children[2].type!=="link_close"))&&!(o!==0&&s.tokens[o-1].type!=="paragraph_open")&&!(o!==a-1&&s.tokens[o+1].type!=="paragraph_close")){var d=s.tokens[o-1];d.type="figure_open",d.tag="figure",s.tokens[o+1].type="figure_close",s.tokens[o+1].tag="figure",t.dataType==!0&&s.tokens[o-1].attrPush(["data-type","image"]);var u;if(t.link==!0&&c.children.length===1&&(u=c.children[0],c.children.unshift(new s.Token("link_open","a",1)),c.children[0].attrPush(["href",u.attrGet("src")]),c.children.push(new s.Token("link_close","a",-1))),u=c.children.length===1?c.children[0]:c.children[1],t.figcaption==!0&&u.children&&u.children.length&&(c.children.push(new s.Token("figcaption_open","figcaption",1)),c.children.splice(c.children.length,0,...u.children),c.children.push(new s.Token("figcaption_close","figcaption",-1)),u.children.length=0),t.copyAttrs&&u.attrs){const _=t.copyAttrs===!0?"":t.copyAttrs;d.attrs=u.attrs.filter(([m,h])=>m.match(_))}t.tabindex==!0&&(s.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",i)};const eYe=Rr(Jqe),tYe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Ar={};Ar.getAttrs=function(n,e,t){const i=/[^\t\n\f />"'=]/,s=" ",r="=",o=".",a="#",c=[];let d="",u="",_=!0,m=!1;for(let h=e+t.leftDelimiter.length;h<n.length;h++){if(n.slice(h,h+t.rightDelimiter.length)===t.rightDelimiter){d!==""&&c.push([d,u]);break}const f=n.charAt(h);if(f===r&&_){_=!1;continue}if(f===o&&d===""){n.charAt(h+1)===o?(d="css-module",h+=1):d="class",_=!1;continue}if(f===a&&d===""){d="id",_=!1;continue}if(f==='"'&&u===""&&!m){m=!0;continue}if(f==='"'&&m){m=!1;continue}if(f===s&&!m){if(d==="")continue;c.push([d,u]),d="",u="",_=!0;continue}if(!(_&&f.search(i)===-1)){if(_){d+=f;continue}u+=f}}if(t.allowedAttributes&&t.allowedAttributes.length){const h=t.allowedAttributes;return c.filter(function(f){const y=f[0];function b(g){return y===g||g instanceof RegExp&&g.test(y)}return h.some(b)})}return c};Ar.addAttrs=function(n,e){for(let t=0,i=n.length;t<i;++t){const s=n[t][0];s==="class"?e.attrJoin("class",n[t][1]):s==="css-module"?e.attrJoin("css-module",n[t][1]):e.attrPush(n[t])}return e};Ar.hasDelimiters=function(n,e){if(!n)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(t){const i=e.leftDelimiter.length+1+e.rightDelimiter.length;if(!t||typeof t!="string"||t.length<i)return!1;function s(u){const _=u.charAt(e.leftDelimiter.length)===".",m=u.charAt(e.leftDelimiter.length)==="#";return _||m?u.length>=i+1:u.length>=i}let r,o,a,c;const d=i-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,o=r===-1?-1:t.indexOf(e.rightDelimiter,d),c=t.charAt(o+e.rightDelimiter.length),c&&e.rightDelimiter.indexOf(c)!==-1&&(o=-1);break;case"end":r=t.lastIndexOf(e.leftDelimiter),o=r===-1?-1:t.indexOf(e.rightDelimiter,r+d),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,a=t.slice(t.length-e.rightDelimiter.length),o=a===e.rightDelimiter?t.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return r!==-1&&o!==-1&&s(t.substring(r,o+e.rightDelimiter.length))}};Ar.removeDelimiter=function(n,e){const t=ob(e.leftDelimiter),i=ob(e.rightDelimiter),s=new RegExp("[ \\n]?"+t+"[^"+t+i+"]+"+i+"$"),r=n.search(s);return r!==-1?n.slice(0,r):n};function ob(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Ar.escapeRegExp=ob;Ar.getMatchingOpeningToken=function(n,e){if(n[e].type==="softbreak")return!1;if(n[e].nesting===0)return n[e];const t=n[e].level,i=n[e].type.replace("_close","_open");for(;e>=0;--e)if(n[e].type===i&&n[e].level===t)return n[e];return!1};const nYe=/[&<>"]/,iYe=/[&<>"]/g,sYe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function rYe(n){return sYe[n]}Ar.escapeHtml=function(n){return nYe.test(n)?n.replace(iYe,rYe):n};const Ct=Ar;var oYe=n=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ct.escapeRegExp(n.leftDelimiter)+"[^"+Ct.escapeRegExp(n.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ct.hasDelimiters("end",n)}],transform:(t,i)=>{const s=t[i],r=s.info.lastIndexOf(n.leftDelimiter),o=Ct.getAttrs(s.info,r,n);Ct.addAttrs(o,s),s.info=Ct.removeDelimiter(s.info,n)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content.indexOf(n.rightDelimiter),a=t[i].children[s-1],c=Ct.getAttrs(r.content,0,n);Ct.addAttrs(c,a),r.content.length===o+n.rightDelimiter.length?t[i].children.splice(s,1):r.content=r.content.slice(o+n.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n)}],transform:(t,i)=>{const s=t[i+2],r=Ct.getMatchingOpeningToken(t,i),o=Ct.getAttrs(s.content,0,n);Ct.addAttrs(o,r),t.splice(i+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content,a=Ct.getAttrs(o,0,n),c=Ct.getMatchingOpeningToken(t[i].children,s-1);Ct.addAttrs(a,c),r.content=o.slice(o.indexOf(n.rightDelimiter)+n.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,i,s)=>{const o=t[i].children[s].content,a=Ct.getAttrs(o,0,n);let c=i-2;for(;t[c-1]&&t[c-1].type!=="ordered_list_open"&&t[c-1].type!=="bullet_list_open";)c--;Ct.addAttrs(a,t[c-1]),t[i].children=t[i].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,i)=>{const r=t[i+2].content,o=Ct.getAttrs(r,0,n),a=Ct.getMatchingOpeningToken(t,i);Ct.addAttrs(o,a),t.splice(i+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Ct.hasDelimiters("end",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);Ct.addAttrs(a,t[i-2]);const c=o.slice(0,o.lastIndexOf(n.leftDelimiter));r.content=sS(c)!==" "?c:c.slice(0,-1)}},{name:`
-{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=Ct.getAttrs(r.content,0,n);let a=i+1;for(;t[a+1]&&t[a+1].nesting===-1;)a++;const c=Ct.getMatchingOpeningToken(t,a);Ct.addAttrs(o,c),t[i].children=t[i].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:t=>t.length===1,content:t=>t.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(t,i)=>{const s=t[i];s.type="hr",s.tag="hr",s.nesting=0;const r=t[i+1].content,o=r.lastIndexOf(n.leftDelimiter),a=Ct.getAttrs(r,o,n);Ct.addAttrs(a,s),s.markup=r,t.splice(i+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:Ct.hasDelimiters("end",n),type:t=>t!=="code_inline"&&t!=="math_inline"}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);let c=i+1;do if(t[c]&&t[c].nesting===-1)break;while(c++<t.length);const d=Ct.getMatchingOpeningToken(t,c);Ct.addAttrs(a,d);const u=o.slice(0,o.lastIndexOf(n.leftDelimiter));r.content=sS(u)!==" "?u:u.slice(0,-1)}}]};function sS(n){return n.slice(-1)[0]}const aYe=oYe,lYe={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var cYe=function(e,t){let i=Object.assign({},lYe);i=Object.assign(i,t);const s=aYe(i);function r(o){const a=o.tokens;for(let c=0;c<a.length;c++)for(let d=0;d<s.length;d++){const u=s[d];let _=null;u.tests.every(h=>{const f=ab(a,c,h);return f.j!==null&&(_=f.j),f.match})&&(u.transform(a,c,_),(u.name==="inline attributes"||u.name==="inline nesting 0")&&d--)}}e.core.ruler.before("linkify","curly_attributes",r)};function ab(n,e,t){const i={match:!1,j:null},s=t.shift!==void 0?e+t.shift:t.position;if(t.shift!==void 0&&s<0)return i;const r=pYe(n,s);if(r===void 0)return i;for(const o of Object.keys(t))if(!(o==="shift"||o==="position")){if(r[o]===void 0)return i;if(o==="children"&&dYe(t.children)){if(r.children.length===0)return i;let a;const c=t.children,d=r.children;if(c.every(u=>u.position!==void 0)){if(a=c.every(u=>ab(d,u.position,u).match),a){const u=fYe(c).position;i.j=u>=0?u:d.length+u}}else for(let u=0;u<d.length;u++)if(a=c.every(_=>ab(d,u,_).match),a){i.j=u;break}if(a===!1)return i;continue}switch(typeof t[o]){case"boolean":case"number":case"string":if(r[o]!==t[o])return i;break;case"function":if(!t[o](r[o]))return i;break;case"object":if(uYe(t[o])){if(t[o].every(c=>c(r[o]))===!1)return i;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return i.match=!0,i}function dYe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="object")}function uYe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="function")}function pYe(n,e){return e>=0?n[e]:n[n.length+e]}function fYe(n){return n.slice(-1)[0]||{}}const _Ye=Rr(cYe);function yM(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&yM(t)}),n}let rS=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function EM(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function pr(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const s in i)t[s]=i[s]}),t}const mYe="</span>",oS=n=>!!n.scope,hYe=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,s)=>`${i}${"_".repeat(s+1)}`)].join(" ")}return`${e}${n}`};class gYe{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=EM(e)}openNode(e){if(!oS(e))return;const t=hYe(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){oS(e)&&(this.buffer+=mYe)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const aS=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class R0{constructor(){this.rootNode=aS(),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){const t=aS({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(i=>this._walk(e,i)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{R0._collapse(t)}))}}class bYe extends R0{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new gYe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function $l(n){return n?typeof n=="string"?n:n.source:null}function vM(n){return yo("(?=",n,")")}function yYe(n){return yo("(?:",n,")*")}function EYe(n){return yo("(?:",n,")?")}function yo(...n){return n.map(t=>$l(t)).join("")}function vYe(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function A0(...n){return"("+(vYe(n).capture?"":"?:")+n.map(i=>$l(i)).join("|")+")"}function SM(n){return new RegExp(n.toString()+"|").exec("").length-1}function SYe(n,e){const t=n&&n.exec(e);return t&&t.index===0}const TYe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M0(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let r=$l(i),o="";for(;r.length>0;){const a=TYe.exec(r);if(!a){o+=r;break}o+=r.substring(0,a.index),r=r.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+s):(o+=a[0],a[0]==="("&&t++)}return o}).map(i=>`(${i})`).join(e)}const xYe=/\b\B/,TM="[a-zA-Z]\\w*",N0="[a-zA-Z_]\\w*",xM="\\b\\d+(\\.\\d+)?",CM="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",wM="\\b(0b[01]+)",CYe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",wYe=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=yo(e,/.*\b/,n.binary,/\b.*/)),pr({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Wl={begin:"\\\\[\\s\\S]",relevance:0},RYe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Wl]},AYe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Wl]},MYe={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/},ap=function(n,e,t={}){const i=pr({scope:"comment",begin:n,end:e,contains:[]},t);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const s=A0("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 i.contains.push({begin:yo(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},NYe=ap("//","$"),OYe=ap("/\\*","\\*/"),IYe=ap("#","$"),kYe={scope:"number",begin:xM,relevance:0},DYe={scope:"number",begin:CM,relevance:0},LYe={scope:"number",begin:wM,relevance:0},PYe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Wl,{begin:/\[/,end:/\]/,relevance:0,contains:[Wl]}]},FYe={scope:"title",begin:TM,relevance:0},UYe={scope:"title",begin:N0,relevance:0},BYe={begin:"\\.\\s*"+N0,relevance:0},GYe=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Lc=Object.freeze({__proto__:null,APOS_STRING_MODE:RYe,BACKSLASH_ESCAPE:Wl,BINARY_NUMBER_MODE:LYe,BINARY_NUMBER_RE:wM,COMMENT:ap,C_BLOCK_COMMENT_MODE:OYe,C_LINE_COMMENT_MODE:NYe,C_NUMBER_MODE:DYe,C_NUMBER_RE:CM,END_SAME_AS_BEGIN:GYe,HASH_COMMENT_MODE:IYe,IDENT_RE:TM,MATCH_NOTHING_RE:xYe,METHOD_GUARD:BYe,NUMBER_MODE:kYe,NUMBER_RE:xM,PHRASAL_WORDS_MODE:MYe,QUOTE_STRING_MODE:AYe,REGEXP_MODE:PYe,RE_STARTERS_RE:CYe,SHEBANG:wYe,TITLE_MODE:FYe,UNDERSCORE_IDENT_RE:N0,UNDERSCORE_TITLE_MODE:UYe});function VYe(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function zYe(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function HYe(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=VYe,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function qYe(n,e){Array.isArray(n.illegal)&&(n.illegal=A0(...n.illegal))}function YYe(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function $Ye(n,e){n.relevance===void 0&&(n.relevance=1)}const WYe=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=yo(t.beforeMatch,vM(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},KYe=["of","and","for","in","not","or","if","then","parent","list","value"],jYe="keyword";function RM(n,e,t=jYe){const i=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(r){Object.assign(i,RM(n[r],e,r))}),i;function s(r,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const c=a.split("|");i[c[0]]=[r,QYe(c[0],c[1])]})}}function QYe(n,e){return e?Number(e):XYe(n)?0:1}function XYe(n){return KYe.includes(n.toLowerCase())}const lS={},eo=n=>{console.error(n)},cS=(n,...e)=>{console.log(`WARN: ${n}`,...e)},wo=(n,e)=>{lS[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),lS[`${n}/${e}`]=!0)},eu=new Error;function AM(n,e,{key:t}){let i=0;const s=n[t],r={},o={};for(let a=1;a<=e.length;a++)o[a+i]=s[a],r[a+i]=!0,i+=SM(e[a-1]);n[t]=o,n[t]._emit=r,n[t]._multi=!0}function ZYe(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw eo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),eu;if(typeof n.beginScope!="object"||n.beginScope===null)throw eo("beginScope must be object"),eu;AM(n,n.begin,{key:"beginScope"}),n.begin=M0(n.begin,{joinWith:""})}}function JYe(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw eo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),eu;if(typeof n.endScope!="object"||n.endScope===null)throw eo("endScope must be object"),eu;AM(n,n.end,{key:"endScope"}),n.end=M0(n.end,{joinWith:""})}}function e$e(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function t$e(n){e$e(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),ZYe(n),JYe(n)}function n$e(n){function e(o,a){return new RegExp($l(o),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=SM(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(c=>c[1]);this.matcherRe=e(M0(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(a);if(!c)return null;const d=c.findIndex((_,m)=>m>0&&_!==void 0),u=this.matchIndexes[d];return c.splice(0,d),Object.assign(c,u)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const c=new t;return this.rules.slice(a).forEach(([d,u])=>c.addRule(d,u)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let d=c.exec(a);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,d=u.exec(a)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function s(o){const a=new i;return o.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function r(o,a){const c=o;if(o.isCompiled)return c;[zYe,YYe,t$e,WYe].forEach(u=>u(o,a)),n.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[HYe,qYe,$Ye].forEach(u=>u(o,a)),o.isCompiled=!0;let d=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),d=o.keywords.$pattern,delete o.keywords.$pattern),d=d||/\w+/,o.keywords&&(o.keywords=RM(o.keywords,n.case_insensitive)),c.keywordPatternRe=e(d,!0),a&&(o.begin||(o.begin=/\B|\b/),c.beginRe=e(c.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(c.endRe=e(c.end)),c.terminatorEnd=$l(c.end)||"",o.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(c.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return i$e(u==="self"?o:u)})),o.contains.forEach(function(u){r(u,c)}),o.starts&&r(o.starts,a),c.matcher=s(c),c}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return n.classNameAliases=pr(n.classNameAliases||{}),r(n)}function MM(n){return n?n.endsWithParent||MM(n.starts):!1}function i$e(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return pr(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:MM(n)?pr(n,{starts:n.starts?pr(n.starts):null}):Object.isFrozen(n)?pr(n):n}var s$e="11.10.0";class r$e extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ff=EM,dS=pr,uS=Symbol("nomatch"),o$e=7,NM=function(n){const e=Object.create(null),t=Object.create(null),i=[];let s=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:bYe};function c(L){return a.noHighlightRe.test(L)}function d(L){let Y=L.className+" ";Y+=L.parentNode?L.parentNode.className:"";const ne=a.languageDetectRe.exec(Y);if(ne){const oe=x(ne[1]);return oe||(cS(r.replace("{}",ne[1])),cS("Falling back to no-highlight mode for this block.",L)),oe?ne[1]:"no-highlight"}return Y.split(/\s+/).find(oe=>c(oe)||x(oe))}function u(L,Y,ne){let oe="",ye="";typeof Y=="object"?(oe=L,ne=Y.ignoreIllegals,ye=Y.language):(wo("10.7.0","highlight(lang, code, ...args) has been deprecated."),wo("10.7.0",`Please use highlight(code, options) instead.
-https://github.com/highlightjs/highlight.js/issues/2277`),ye=L,oe=Y),ne===void 0&&(ne=!0);const xe={code:oe,language:ye};H("before:highlight",xe);const le=xe.result?xe.result:_(xe.language,xe.code,ne);return le.code=xe.code,H("after:highlight",le),le}function _(L,Y,ne,oe){const ye=Object.create(null);function xe(j,se){return j.keywords[se]}function le(){if(!ae.keywords){Re.addText(ge);return}let j=0;ae.keywordPatternRe.lastIndex=0;let se=ae.keywordPatternRe.exec(ge),Ce="";for(;se;){Ce+=ge.substring(j,se.index);const we=ce.case_insensitive?se[0].toLowerCase():se[0],ke=xe(ae,we);if(ke){const[We,lt]=ke;if(Re.addText(Ce),Ce="",ye[we]=(ye[we]||0)+1,ye[we]<=o$e&&(D+=lt),We.startsWith("_"))Ce+=se[0];else{const Pe=ce.classNameAliases[We]||We;De(se[0],Pe)}}else Ce+=se[0];j=ae.keywordPatternRe.lastIndex,se=ae.keywordPatternRe.exec(ge)}Ce+=ge.substring(j),Re.addText(Ce)}function ve(){if(ge==="")return;let j=null;if(typeof ae.subLanguage=="string"){if(!e[ae.subLanguage]){Re.addText(ge);return}j=_(ae.subLanguage,ge,!0,Me[ae.subLanguage]),Me[ae.subLanguage]=j._top}else j=h(ge,ae.subLanguage.length?ae.subLanguage:null);ae.relevance>0&&(D+=j.relevance),Re.__addSublanguage(j._emitter,j.language)}function Oe(){ae.subLanguage!=null?ve():le(),ge=""}function De(j,se){j!==""&&(Re.startScope(se),Re.addText(j),Re.endScope())}function Q(j,se){let Ce=1;const we=se.length-1;for(;Ce<=we;){if(!j._emit[Ce]){Ce++;continue}const ke=ce.classNameAliases[j[Ce]]||j[Ce],We=se[Ce];ke?De(We,ke):(ge=We,le(),ge=""),Ce++}}function fe(j,se){return j.scope&&typeof j.scope=="string"&&Re.openNode(ce.classNameAliases[j.scope]||j.scope),j.beginScope&&(j.beginScope._wrap?(De(ge,ce.classNameAliases[j.beginScope._wrap]||j.beginScope._wrap),ge=""):j.beginScope._multi&&(Q(j.beginScope,se),ge="")),ae=Object.create(j,{parent:{value:ae}}),ae}function _e(j,se,Ce){let we=SYe(j.endRe,Ce);if(we){if(j["on:end"]){const ke=new rS(j);j["on:end"](se,ke),ke.isMatchIgnored&&(we=!1)}if(we){for(;j.endsParent&&j.parent;)j=j.parent;return j}}if(j.endsWithParent)return _e(j.parent,se,Ce)}function Ae(j){return ae.matcher.regexIndex===0?(ge+=j[0],1):(me=!0,0)}function Fe(j){const se=j[0],Ce=j.rule,we=new rS(Ce),ke=[Ce.__beforeBegin,Ce["on:begin"]];for(const We of ke)if(We&&(We(j,we),we.isMatchIgnored))return Ae(se);return Ce.skip?ge+=se:(Ce.excludeBegin&&(ge+=se),Oe(),!Ce.returnBegin&&!Ce.excludeBegin&&(ge=se)),fe(Ce,j),Ce.returnBegin?0:se.length}function te(j){const se=j[0],Ce=Y.substring(j.index),we=_e(ae,j,Ce);if(!we)return uS;const ke=ae;ae.endScope&&ae.endScope._wrap?(Oe(),De(se,ae.endScope._wrap)):ae.endScope&&ae.endScope._multi?(Oe(),Q(ae.endScope,j)):ke.skip?ge+=se:(ke.returnEnd||ke.excludeEnd||(ge+=se),Oe(),ke.excludeEnd&&(ge=se));do ae.scope&&Re.closeNode(),!ae.skip&&!ae.subLanguage&&(D+=ae.relevance),ae=ae.parent;while(ae!==we.parent);return we.starts&&fe(we.starts,j),ke.returnEnd?0:se.length}function U(){const j=[];for(let se=ae;se!==ce;se=se.parent)se.scope&&j.unshift(se.scope);j.forEach(se=>Re.openNode(se))}let P={};function Z(j,se){const Ce=se&&se[0];if(ge+=j,Ce==null)return Oe(),0;if(P.type==="begin"&&se.type==="end"&&P.index===se.index&&Ce===""){if(ge+=Y.slice(se.index,se.index+1),!s){const we=new Error(`0 width match regex (${L})`);throw we.languageName=L,we.badRule=P.rule,we}return 1}if(P=se,se.type==="begin")return Fe(se);if(se.type==="illegal"&&!ne){const we=new Error('Illegal lexeme "'+Ce+'" for mode "'+(ae.scope||"<unnamed>")+'"');throw we.mode=ae,we}else if(se.type==="end"){const we=te(se);if(we!==uS)return we}if(se.type==="illegal"&&Ce==="")return 1;if(K>1e5&&K>se.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ge+=Ce,Ce.length}const ce=x(L);if(!ce)throw eo(r.replace("{}",L)),new Error('Unknown language: "'+L+'"');const pe=n$e(ce);let he="",ae=oe||pe;const Me={},Re=new a.__emitter(a);U();let ge="",D=0,N=0,K=0,me=!1;try{if(ce.__emitTokens)ce.__emitTokens(Y,Re);else{for(ae.matcher.considerAll();;){K++,me?me=!1:ae.matcher.considerAll(),ae.matcher.lastIndex=N;const j=ae.matcher.exec(Y);if(!j)break;const se=Y.substring(N,j.index),Ce=Z(se,j);N=j.index+Ce}Z(Y.substring(N))}return Re.finalize(),he=Re.toHTML(),{language:L,value:he,relevance:D,illegal:!1,_emitter:Re,_top:ae}}catch(j){if(j.message&&j.message.includes("Illegal"))return{language:L,value:ff(Y),illegal:!0,relevance:0,_illegalBy:{message:j.message,index:N,context:Y.slice(N-100,N+100),mode:j.mode,resultSoFar:he},_emitter:Re};if(s)return{language:L,value:ff(Y),illegal:!1,relevance:0,errorRaised:j,_emitter:Re,_top:ae};throw j}}function m(L){const Y={value:ff(L),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return Y._emitter.addText(L),Y}function h(L,Y){Y=Y||a.languages||Object.keys(e);const ne=m(L),oe=Y.filter(x).filter(G).map(Oe=>_(Oe,L,!1));oe.unshift(ne);const ye=oe.sort((Oe,De)=>{if(Oe.relevance!==De.relevance)return De.relevance-Oe.relevance;if(Oe.language&&De.language){if(x(Oe.language).supersetOf===De.language)return 1;if(x(De.language).supersetOf===Oe.language)return-1}return 0}),[xe,le]=ye,ve=xe;return ve.secondBest=le,ve}function f(L,Y,ne){const oe=Y&&t[Y]||ne;L.classList.add("hljs"),L.classList.add(`language-${oe}`)}function y(L){let Y=null;const ne=d(L);if(c(ne))return;if(H("before:highlightElement",{el:L,language:ne}),L.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",L);return}if(L.children.length>0&&(a.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(L)),a.throwUnescapedHTML))throw new r$e("One of your code blocks includes unescaped HTML.",L.innerHTML);Y=L;const oe=Y.textContent,ye=ne?u(oe,{language:ne,ignoreIllegals:!0}):h(oe);L.innerHTML=ye.value,L.dataset.highlighted="yes",f(L,ne,ye.language),L.result={language:ye.language,re:ye.relevance,relevance:ye.relevance},ye.secondBest&&(L.secondBest={language:ye.secondBest.language,relevance:ye.secondBest.relevance}),H("after:highlightElement",{el:L,result:ye,text:oe})}function b(L){a=dS(a,L)}const g=()=>{S(),wo("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function E(){S(),wo("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let v=!1;function S(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(y)}function R(){v&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function C(L,Y){let ne=null;try{ne=Y(n)}catch(oe){if(eo("Language definition for '{}' could not be registered.".replace("{}",L)),s)eo(oe);else throw oe;ne=o}ne.name||(ne.name=L),e[L]=ne,ne.rawDefinition=Y.bind(null,n),ne.aliases&&M(ne.aliases,{languageName:L})}function A(L){delete e[L];for(const Y of Object.keys(t))t[Y]===L&&delete t[Y]}function I(){return Object.keys(e)}function x(L){return L=(L||"").toLowerCase(),e[L]||e[t[L]]}function M(L,{languageName:Y}){typeof L=="string"&&(L=[L]),L.forEach(ne=>{t[ne.toLowerCase()]=Y})}function G(L){const Y=x(L);return Y&&!Y.disableAutodetect}function V(L){L["before:highlightBlock"]&&!L["before:highlightElement"]&&(L["before:highlightElement"]=Y=>{L["before:highlightBlock"](Object.assign({block:Y.el},Y))}),L["after:highlightBlock"]&&!L["after:highlightElement"]&&(L["after:highlightElement"]=Y=>{L["after:highlightBlock"](Object.assign({block:Y.el},Y))})}function ee(L){V(L),i.push(L)}function O(L){const Y=i.indexOf(L);Y!==-1&&i.splice(Y,1)}function H(L,Y){const ne=L;i.forEach(function(oe){oe[ne]&&oe[ne](Y)})}function q(L){return wo("10.7.0","highlightBlock will be removed entirely in v12.0"),wo("10.7.0","Please use highlightElement now."),y(L)}Object.assign(n,{highlight:u,highlightAuto:h,highlightAll:S,highlightElement:y,highlightBlock:q,configure:b,initHighlighting:g,initHighlightingOnLoad:E,registerLanguage:C,unregisterLanguage:A,listLanguages:I,getLanguage:x,registerAliases:M,autoDetection:G,inherit:dS,addPlugin:ee,removePlugin:O}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=s$e,n.regex={concat:yo,lookahead:vM,either:A0,optional:EYe,anyNumberOfTimes:yYe};for(const L in Lc)typeof Lc[L]=="object"&&yM(Lc[L]);return Object.assign(n,Lc),n},_a=NM({});_a.newInstance=()=>NM({});var a$e=_a;_a.HighlightJS=_a;_a.default=_a;var _f,pS;function l$e(){if(pS)return _f;pS=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",r="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",c="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",h="разделительстраниц разделительстрок символтабуляции "+"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 файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",oe="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 типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",le="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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ve="null истина ложь неопределено",Oe=e.inherit(e.NUMBER_MODE),De={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Q={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},fe={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},_e=e.inherit(e.C_LINE_COMMENT_MODE),Ae={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:r+c},contains:[_e]},Fe={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},te={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:ve},contains:[Oe,De,Q]},_e]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:r,built_in:h,class:oe,type:le,literal:ve},contains:[Ae,te,_e,Fe,Oe,De,Q,fe]}}return _f=n,_f}var mf,fS;function c$e(){if(fS)return mf;fS=1;function n(e){const t=e.regex,i=/^[a-zA-Z][a-zA-Z0-9-]*/,s=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],r=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},c={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},d={scope:"symbol",match:/%[si](?=".*")/},u={scope:"attribute",match:t.concat(i,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:s,contains:[{scope:"operator",match:/=\/?/},u,r,o,a,c,d,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return mf=n,mf}var hf,_S;function d$e(){if(_S)return hf;_S=1;function n(e){const t=e.regex,i=["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(...i)),end:/"/,keywords:i,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}]}}return hf=n,hf}var gf,mS;function u$e(){if(mS)return gf;mS=1;function n(e){const t=e.regex,i=/[a-zA-Z_$][a-zA-Z0-9_$]*/,s=t.concat(i,t.concat("(\\.",i,")*")),r=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:i,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"],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+/,s],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,i],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,o]},{begin:t.concat(/:\s*/,r)}]},e.METHOD_GUARD],illegal:/#/}}return gf=n,gf}var bf,hS;function p$e(){if(hS)return bf;hS=1;function n(e){const t="\\d(_|\\d)*",i="[eE][-+]?"+t,s=t+"(\\."+t+")?("+i+")?",r="\\w+",a="\\b("+(t+"#"+r+"(\\."+r+")?#("+i+")?")+"|"+s+")",c="[A-Za-z](_?[A-Za-z0-9.])*",d=`[]\\{\\}%#'"`,u=e.COMMENT("--","$"),_={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:d,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,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"],literal:["True","False"]},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:d},{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:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:d},_,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:d}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:d},_]}}return bf=n,bf}var yf,gS;function f$e(){if(gS)return yf;gS=1;function n(e){const 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)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},s={className:"keyword",begin:"<",end:">",contains:[t,i]};return t.contains=[s],i.contains=[s],{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"],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,i,{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?)?)"}]}}return yf=n,yf}var Ef,bS;function _$e(){if(bS)return Ef;bS=1;function n(e){const t={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},s={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},r={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[s,r,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:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},s,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Ef=n,Ef}var vf,yS;function m$e(){if(yS)return vf;yS=1;function n(e){const t=e.regex,i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,i]},r=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",r]}),a=[r,o,e.HASH_COMMENT_MODE],c=[/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/],d=[/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)/];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:[i,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(...d),/\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(...c),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,s]},...a],illegal:/\/\/|->|=>|\[\[/}}return vf=n,vf}var Sf,ES;function h$e(){if(ES)return Sf;ES=1;function n(e){const t=e.regex,i="[A-Za-z_][0-9A-Za-z_]*",s={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","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","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","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","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","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"]},r=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","value","view"],o={className:"symbol",begin:"\\$"+t.either(...r)},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]};c.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,a,e.REGEXP_MODE];const u=c.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:s,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:i+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:i,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:"(\\(.*?\\)|"+i+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:u}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:i}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:u}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Sf=n,Sf}var Tf,vS;function g$e(){if(vS)return Tf;vS=1;function n(t){const i=t.regex,s=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",c="(?!struct)("+r+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},_={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.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:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(_,{className:"string"}),{className:"string",begin:/<.*?>/},s,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},y=i.optional(o)+t.IDENT_RE+"\\s*\\(",b=["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"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","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"],v=["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"],C={type:g,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},A={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},I=[A,h,d,s,t.C_BLOCK_COMMENT_MODE,m,_],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:I.concat([{begin:/\(/,end:/\)/,keywords:C,contains:I.concat(["self"]),relevance:0}]),relevance:0},M={className:"function",begin:"("+c+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:y,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[_,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[s,t.C_BLOCK_COMMENT_MODE,_,m,d,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",s,t.C_BLOCK_COMMENT_MODE,_,m,d]}]},d,s,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,M,A,I,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:C,contains:["self",d]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const i={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},s=n(t),r=s.keywords;return r.type=[...r.type,...i.type],r.literal=[...r.literal,...i.literal],r.built_in=[...r.built_in,...i.built_in],r._hints=i._hints,s.name="Arduino",s.aliases=["ino"],s.supersetOf="cpp",s}return Tf=e,Tf}var xf,SS;function b$e(){if(SS)return xf;SS=1;function n(e){const 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}]}}return xf=n,xf}var Cf,TS;function y$e(){if(TS)return Cf;TS=1;function n(e){const t=e.regex,i=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,d,c,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,d,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(i,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Cf=n,Cf}var wf,xS;function E$e(){if(xS)return wf;xS=1;function n(e){const t=e.regex,i={begin:"^'{3,}[ \\t]*$",relevance:10},s=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],r=[{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]+)\*/}],o=[{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}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},c={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};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},c,a,...s,...r,...o,{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},i,{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}]}}return wf=n,wf}var Rf,CS;function v$e(){if(CS)return Rf;CS=1;function n(e){const t=e.regex,i=["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"],s=["get","set","args","call"];return{name:"AspectJ",keywords:i,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:i.concat(s),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:i,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:i.concat(s),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:i,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:i,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]+/}]}}return Rf=n,Rf}var Af,wS;function S$e(){if(wS)return Af;wS=1;function n(e){const 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*,"}]}}return Af=n,Af}var Mf,RS;function T$e(){if(RS)return Mf;RS=1;function n(e){const t="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",i=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],s="True False And Null Not Or Default",r="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",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},d={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},u={className:"meta",begin:"#",end:"$",keywords:{keyword:i},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[c,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,o]},_={className:"symbol",begin:"@[A-z0-9_]+"},m={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,c,d]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:r,literal:s},contains:[o,a,c,d,u,_,m]}}return Mf=n,Mf}var Nf,AS;function x$e(){if(AS)return Nf;AS=1;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]+"}]}}return Nf=n,Nf}var Of,MS;function C$e(){if(MS)return Of;MS=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",s={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]};return{name:"Awk",keywords:{keyword:i},contains:[t,s,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Of=n,Of}var If,NS;function w$e(){if(NS)return If;NS=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,o={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"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,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:"$"},a]}}return If=n,If}var kf,OS;function R$e(){if(OS)return kf;OS=1;function n(e){const t=e.regex,i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,r]};r.contains.push(c);const d={match:/\\"/},u={className:"string",begin:/'/,end:/'/},_={match:/\\'/},m={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),y={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],g=["true","false"],E={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],R=["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"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:g,built_in:[...v,...S,"set","shopt",...R,...C]},contains:[f,e.SHEBANG(),y,m,o,a,E,c,d,u,_,i]}}return kf=n,kf}var Df,IS;function A$e(){if(IS)return Df;IS=1;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"]},contains:[e.QUOTE_STRING_MODE,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})"}]}}return Df=n,Df}var Lf,kS;function M$e(){if(kS)return Lf;kS=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return Lf=n,Lf}var Pf,DS;function N$e(){if(DS)return Pf;DS=1;function n(e){const 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]}}return Pf=n,Pf}var Ff,LS;function O$e(){if(LS)return Ff;LS=1;function n(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",a="("+s+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={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})"/})]},_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={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(u,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},f=t.optional(r)+e.IDENT_RE+"\\s*\\(",g={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},E=[m,c,i,e.C_BLOCK_COMMENT_MODE,_,u],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:E.concat([{begin:/\(/,end:/\)/,keywords:g,contains:E.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:g,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,i,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(v,S,E,[m,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:m,strings:u,keywords:g}}}return Ff=n,Ff}var Uf,PS;function I$e(){if(PS)return Uf;PS=1;function n(e){const t=e.regex,i=["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"],s="false true",r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},c={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},d={className:"string",begin:'"',end:'"'},u={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:[o,a,e.NUMBER_MODE]},...r]},_=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],m={match:[/OBJECT/,/\s+/,t.either(..._),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:i,literal:s},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,c,d,e.NUMBER_MODE,m,u]}}return Uf=n,Uf}var Bf,FS;function k$e(){if(FS)return Bf;FS=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],i=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],s=["true","false"],r={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:i,literal:s},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/},r]}}return Bf=n,Bf}var Gf,US;function D$e(){if(US)return Gf;US=1;function n(e){const 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"],i=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],s=["doc","by","license","see","throws","tagged"],r={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[r]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return r.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(i),meta:s},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}return Gf=n,Gf}var Vf,BS;function L$e(){if(BS)return Vf;BS=1;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"],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:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return Vf=n,Vf}var zf,GS;function P$e(){if(GS)return zf;GS=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",i="[#]?["+t+"]["+t+"0-9/;:$#]*",s="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={$pattern:i,built_in:s+" 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"},o={begin:i,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?/}]},c={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}]},d={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_={scope:"punctuation",match:/,/,relevance:0},m=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},f={begin:"\\[|(#::?"+i+")?\\{",end:"[\\]\\}]",relevance:0},y={className:"symbol",begin:"[:]{1,2}"+i},b={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},E={keywords:r,className:"name",begin:i,relevance:0,starts:g},v=[_,b,c,d,u,m,y,f,a,h,o],S={beginKeywords:s,keywords:{$pattern:i,keyword:s},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(v)};return b.contains=[S,E,g],g.contains=v,f.contains=v,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[_,b,c,d,u,m,y,f,a,h]}}return zf=n,zf}var Hf,VS;function F$e(){if(VS)return Hf;VS=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return Hf=n,Hf}var qf,zS;function U$e(){if(zS)return qf;zS=1;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]}}return qf=n,qf}var Yf,HS;function B$e(){if(HS)return Yf;HS=1;const 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"],e=["true","false","null","undefined","NaN","Infinity"],t=["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"],i=["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"],r=[].concat(s,t,i);function o(a){const c=["npm","print"],d=["yes","no","on","off"],u=["then","unless","until","loop","by","when","and","or","is","isnt","not"],_=["var","const","let","function","static"],m=R=>C=>!R.includes(C),h={keyword:n.concat(u).filter(m(_)),literal:e.concat(d),built_in:r.concat(c)},f="[A-Za-z$_][0-9A-Za-z$_]*",y={className:"subst",begin:/#\{/,end:/\}/,keywords:h},b=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,y]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,y]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[y,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+f},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];y.contains=b;const g=a.inherit(a.TITLE_MODE,{begin:f}),E="(\\(.*\\)\\s*)?\\B[-=]>",v={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(b)}]},S={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:h,illegal:/\/\*/,contains:[...b,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+f+"\\s*=\\s*"+E,end:"[-=]>",returnBegin:!0,contains:[g,v]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:E,end:"[-=]>",returnBegin:!0,contains:[v]}]},S,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return Yf=o,Yf}var $f,qS;function G$e(){if(qS)return $f;qS=1;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"],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"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return $f=n,$f}var Wf,YS;function V$e(){if(YS)return Wf;YS=1;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)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return Wf=n,Wf}var Kf,$S;function z$e(){if($S)return Kf;$S=1;function n(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",a="(?!struct)("+s+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={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})"/})]},_={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},m={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(u,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},f=t.optional(r)+e.IDENT_RE+"\\s*\\(",y=["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"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","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"],E=["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"],R={type:b,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},C={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[C,m,c,i,e.C_BLOCK_COMMENT_MODE,_,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:A.concat([{begin:/\(/,end:/\)/,keywords:R,contains:A.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:R,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,_]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,i,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(I,x,C,A,[m,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:R,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Kf=n,Kf}var jf,WS;function H$e(){if(WS)return jf;WS=1;function n(e){const t="primitive rsc_template",i="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:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,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:"</?",end:"/?>",relevance:0}]}}return jf=n,jf}var Qf,KS;function q$e(){if(KS)return Qf;KS=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",i="(_?f(32|64))?",s="[a-zA-Z_]\\w*[!?=]?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:s,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"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function _(E,v){const S=[{begin:E,end:v}];return S[0].contains=S,S}const m={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:_("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%q<",end:">",contains:_("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={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,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},y={className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%r<",end:">",contains:_("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},b={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[u,m,h,y,f,b,d,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[m,{begin:r}],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_]*)?"+i+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return c.contains=g,u.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}return Qf=n,Qf}var Xf,jS;function Y$e(){if(jS)return Xf;jS=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],r=["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"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:r.concat(o),built_in:t,literal:s},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={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},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},_={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=e.inherit(_,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(h,{illegal:/\n/}),y={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},g=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});h.contains=[b,y,_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],f.contains=[g,y,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[u,b,y,_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},S=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",R={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},E,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+S+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},R]}}return Xf=n,Xf}var Zf,QS;function $$e(){if(QS)return Zf;QS=1;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}]}}return Zf=n,Zf}var Jf,XS;function W$e(){if(XS)return Jf;XS=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=d.regex,_=n(d),m={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",f=/@-?\w[\w]*(-\w+)*/,y="[a-zA-Z-][a-zA-Z0-9_-]*",b=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[_.BLOCK_COMMENT,m,_.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+y,relevance:0},_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+r.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[_.BLOCK_COMMENT,_.HEXCOLOR,_.IMPORTANT,_.CSS_NUMBER_MODE,...b,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...b,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_.FUNCTION_DISPATCH]},{begin:u.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...b,_.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b"}]}}return Jf=c,Jf}var e_,ZS;function K$e(){if(ZS)return e_;ZS=1;function n(e){const 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"},i="(0|[1-9][\\d_]*)",s="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,c="([eE][+-]?"+s+")",d="("+s+"(\\.\\d*|"+c+")|\\d+\\."+s+"|\\."+i+c+"?)",u="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+s+")",_="("+i+"|"+r+"|"+a+")",m="("+u+"|"+d+")",h=`\\\\(['"\\?\\\\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,};`,f={className:"number",begin:"\\b"+_+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},y={className:"number",begin:"\\b("+m+"([fF]|L|i|[fF]i|Li)?|"+_+"(i|[fF]i|Li))",relevance:0},b={className:"string",begin:"'("+h+"|.)",end:"'",illegal:"."},E={className:"string",begin:'"',contains:[{begin:h,relevance:0}],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},S={className:"string",begin:"`",end:"`[cwd]?"},R={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},A={className:"meta",begin:"^#!",end:"$",relevance:5},I={className:"meta",begin:"#(line)",end:"$",relevance:5},x={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},M=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,M,R,E,v,S,C,y,f,b,A,I,x]}}return e_=n,e_}var t_,JS;function j$e(){if(JS)return t_;JS=1;function n(e){const t=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},r={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}]},o={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),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}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=e.inherit(u,{contains:[]}),h=e.inherit(_,{contains:[]});u.contains.push(h),_.contains.push(m);let f=[i,d];return[u,_,m,h].forEach(E=>{E.contains=E.contains.concat(f)}),f=f.concat(u,_),{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}]}]},i,o,u,_,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},r,s,d,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return t_=n,t_}var n_,e1;function Q$e(){if(e1)return n_;e1=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},s={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,i]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,i]}]};i.contains=[e.C_NUMBER_MODE,s];const r=["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"],o=r.map(d=>`${d}?`);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"],built_in:r.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[s,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]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return n_=n,n_}var i_,t1;function X$e(){if(t1)return i_;t1=1;function n(e){const 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"],i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={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}]},a={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},c={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},d={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:[r,a,s].concat(i)},s].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,a,o,c,d,s].concat(i)}}return i_=n,i_}var s_,n1;function Z$e(){if(n1)return s_;n1=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return s_=n,s_}var r_,i1;function J$e(){if(i1)return r_;i1=1;function n(e){const 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]}]}}return r_=n,r_}var o_,s1;function eWe(){if(s1)return o_;s1=1;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"],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]?/})]}}return o_=n,o_}var a_,r1;function tWe(){if(r1)return a_;r1=1;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:"</"}}return a_=n,a_}var l_,o1;function nWe(){if(o1)return l_;o1=1;function n(e){const 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"]},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]}}return l_=n,l_}var c_,a1;function iWe(){if(a1)return c_;a1=1;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]}}return c_=n,c_}var d_,l1;function sWe(){if(l1)return d_;l1=1;function n(e){const 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:"."}]},i={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},s={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]},r={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",relevance:0,begin:"<",end:">",contains:[i,r]},d={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},u={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},_={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},m={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},h={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[u,r,o,a,d,m,_,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,t,s,h,{begin:e.IDENT_RE+"::",keywords:""}]}}return d_=n,d_}var u_,c1;function rWe(){if(c1)return u_;c1=1;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"}]}}return u_=n,u_}var p_,d1;function oWe(){if(d1)return p_;d1=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,i,r]}}return p_=n,p_}var f_,u1;function aWe(){if(u1)return f_;u1=1;function n(e){const t=e.regex,i="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",s="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:i,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"],literal:["false","nil","true"]},c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={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},_={match:/\\[\s\S]/,scope:"char.escape",relevance:0},m=`[/|([{<"']`,h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],f=C=>({scope:"char.escape",begin:t.concat(/\\/,C),relevance:0}),y={className:"string",begin:"~[a-z](?="+m+")",contains:h.map(C=>e.inherit(C,{contains:[f(C.end),_,c]}))},b={className:"string",begin:"~[A-Z](?="+m+")",contains:h.map(C=>e.inherit(C,{contains:[f(C.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+m+")",contains:h.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[f(C.end),_,c]}))},{begin:"~R(?="+m+")",contains:h.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[f(C.end)]}))}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c],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:/"/}]},v={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},S=e.inherit(v,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),R=[E,g,b,y,e.HASH_COMMENT_MODE,S,v,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[E,{begin:s}],relevance:0},{className:"symbol",begin:i+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return c.contains=R,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:R}}return f_=n,f_}var __,p1;function lWe(){if(p1)return __;p1=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={begin:/\{/,end:/\}/,contains:s.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};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:[s,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[s,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,s,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return __=n,__}var m_,f1;function cWe(){if(f1)return m_;f1=1;function n(e){const t=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=t.concat(s,/(::\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"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],_={className:"subst",begin:/#\{/,end:/\}/,keywords:a},m={className:"string",contains:[e.BACKSLASH_ESCAPE,_],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,_]})]}]},h="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",y={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${f}))?([eE][+-]?(${f})|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"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},A=[m,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:a},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[m,{begin:i}],relevance:0},y,{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,_],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(d,u),relevance:0}].concat(d,u);_.contains=A,b.contains=A;const G=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:A}}];return u.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(G).concat(u).concat(A)}}return m_=n,m_}var h_,_1;function dWe(){if(_1)return h_;_1=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return h_=n,h_}var g_,m1;function uWe(){if(m1)return g_;m1=1;function n(e){const 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}]}}return g_=n,g_}var b_,h1;function pWe(){if(h1)return b_;h1=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",i="("+t+":"+t+"|"+t+")",s={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",literal:"false true"},r=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},c={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},d={begin:/\{/,end:/\}/,relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},_={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},m={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},f={beginKeywords:"fun receive if try case",end:"end",keywords:s};f.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),f,c,e.QUOTE_STRING_MODE,o,d,u,_,m,h];const y=[r,a,f,c,e.QUOTE_STRING_MODE,o,d,u,_,m,h];c.contains[1].contains=y,d.contains=y,m.contains[1].contains=y;const b=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],g={className:"params",begin:"\\(",end:"\\)",contains:y};return{name:"Erlang",aliases:["erl"],keywords:s,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:s,contains:y}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(E=>`${E}|1.5`).join(" ")},contains:[g]},o,e.QUOTE_STRING_MODE,m,u,_,d,h,{begin:/\.$/}]}}return b_=n,b_}var y_,g1;function fWe(){if(g1)return y_;g1=1;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","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","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","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","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","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","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","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","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","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","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},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/})]}}return y_=n,y_}var E_,b1;function _We(){if(b1)return E_;b1=1;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}}return E_=n,E_}var v_,y1;function mWe(){if(y1)return v_;y1=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},r={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};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,t,i,r,e.C_NUMBER_MODE]}}return v_=n,v_}var S_,E1;function hWe(){if(E1)return S_;E1=1;function n(e){const t=e.regex,i={className:"params",begin:"\\(",end:"\\)"},s={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},r=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,r)},{begin:t.concat(/\b\d+/,o,r)},{begin:t.concat(/\.\d+/,o,r)}],relevance:0},c={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]},d={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};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"],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"]},illegal:/\/\*/,contains:[d,c,{begin:/^C\s*=(?!=)/,relevance:0},s,a]}}return S_=n,S_}var T_,v1;function gWe(){if(v1)return T_;v1=1;function n(a){return new RegExp(a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return i("(?=",a,")")}function i(...a){return a.map(d=>e(d)).join("")}function s(a){const c=a[a.length-1];return typeof c=="object"&&c.constructor===Object?(a.splice(a.length-1,1),c):{}}function r(...a){return"("+(s(a).capture?"":"?:")+a.map(u=>e(u)).join("|")+")"}function o(a){const c=["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"],d={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},u=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],_=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],m=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],h=["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"],y={keyword:c,literal:_,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"],"variable.constant":m},g={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},E=/[a-zA-Z_](\w|')*/,v={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,R={scope:"symbol",variants:[{match:i(S,/``.*?``/)},{match:i(S,a.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:Oe}){let De;Oe?De="!%&*+-/<=>@^|~?":De="!%&*+-/<>@^|~?";const Q=Array.from(De),fe=i("[",...Q.map(n),"]"),_e=r(fe,/\./),Ae=i(_e,t(_e)),Fe=r(i(Ae,_e,"*"),i(fe,"+"));return{scope:"operator",match:r(Fe,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},A=C({includeEqual:!0}),I=C({includeEqual:!1}),x=function(Oe,De){return{begin:i(Oe,t(i(/\s*/,r(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:De,end:t(r(/\n/,/=/)),relevance:0,keywords:a.inherit(y,{type:h}),contains:[g,R,a.inherit(v,{scope:null}),I]}},M=x(/:/,"operator"),G=x(/\bof\b/,"keyword"),V={begin:[/(^|\s+)/,/type/,/\s+/,E],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:y,contains:[g,a.inherit(v,{scope:null}),R,{scope:"operator",match:/<|>/},M]},ee={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},O={begin:[/^\s*/,i(/#/,r(...u)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},H={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},q={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},L={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},Y={scope:"string",begin:/"""/,end:/"""/,relevance:2},ne={scope:"subst",begin:/\{/,end:/\}/,keywords:y},oe={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,ne]},ye={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,ne]},xe={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},ne],relevance:2},le={scope:"string",match:i(/'/,r(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return ne.contains=[ye,oe,L,q,le,d,g,v,M,ee,O,H,R,A],{name:"F#",aliases:["fs","f#"],keywords:y,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[d,{variants:[xe,ye,oe,Y,L,q,le]},g,v,V,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[v,Y,L,q,le,H]},G,M,ee,O,H,R,A]}}return T_=o,T_}var x_,S1;function bWe(){if(S1)return x_;S1=1;function n(e){const t=e.regex,i={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"},s={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},r={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:i,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},c=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:t.concat(c,t.anyNumberOfTimes(t.concat(/[ ]+/,c))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:i,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,a,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},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_]+/},s,r]},e.C_NUMBER_MODE,r]}}return x_=n,x_}var C_,T1;function yWe(){if(T1)return C_;T1=1;function n(e){const 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"},i=e.COMMENT("@","@"),s={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,i]},r={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{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,i,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},c=function(h,f,y){const b=e.inherit({className:"function",beginKeywords:h,end:f,excludeEnd:!0,contains:[].concat(o)},{});return b.contains.push(a),b.contains.push(e.C_NUMBER_MODE),b.contains.push(e.C_BLOCK_COMMENT_MODE),b.contains.push(i),b},d={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},u={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},_={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},d,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},m={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,d,_,u,"self"]};return _.contains.push(m),{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,i,u,s,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,i,m]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},_,r]}}return C_=n,C_}var w_,x1;function EWe(){if(x1)return w_;x1=1;function n(e){const t="[A-Z_][A-Z0-9_.]*",i="%",s={$pattern:t,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={className:"meta",begin:"([O])([0-9]+)"},o=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),o,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:i},r].concat(a)}}return w_=n,w_}var R_,C1;function vWe(){if(C1)return R_;C1=1;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]}}return R_=n,R_}var A_,w1;function SWe(){if(w1)return A_;w1=1;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:"$"}]}}return A_=n,A_}var M_,R1;function TWe(){if(R1)return M_;R1=1;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"],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"],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"],"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"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return M_=n,M_}var N_,A1;function xWe(){if(A1)return N_;A1=1;function n(e){const o={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:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}return N_=n,N_}var O_,M1;function CWe(){if(M1)return O_;M1=1;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"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return O_=n,O_}var I_,N1;function wWe(){if(N1)return I_;N1=1;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"],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]}}return I_=n,I_}var k_,O1;function RWe(){if(O1)return k_;O1=1;function n(e){const t=e.regex,i=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(i,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return k_=n,k_}var D_,I1;function AWe(){if(I1)return D_;I1=1;function n(t,i={}){return i.variants=t,i}function e(t){const i=t.regex,s="[A-Za-z0-9_$]+",r=n([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},a=n([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),c=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),d={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.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"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),r,c,o,a,d,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:s+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,c,o,a,"self"]},{className:"symbol",begin:"^[ 	]*"+i.lookahead(s+":"),excludeBegin:!0,end:s+":",relevance:0}],illegal:/#|<\//}}return D_=e,D_}var L_,k1;function MWe(){if(k1)return L_;k1=1;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}]}}return L_=n,L_}var P_,D1;function NWe(){if(D1)return P_;D1=1;function n(e){const t=e.regex,i={$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"]},s={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},r=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,c=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,u=t.either(r,o,a,c),_=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(d,u))),m=t.concat("(",a,"|",c,")(?==)"),h={begin:_},f=e.inherit(h,{keywords:s}),y={begin:/\(/,end:/\)/},b={className:"attr",begin:m,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,f,y]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},E={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,b,f,y],returnEnd:!0},v=e.inherit(h,{className:"name",keywords:i,starts:e.inherit(E,{end:/\)/})});y.contains=[v];const S=e.inherit(h,{keywords:i,className:"name",starts:e.inherit(E,{end:/\}\}/})}),R=e.inherit(h,{keywords:i,className:"name"}),C=e.inherit(h,{className:"name",keywords:i,starts:e.inherit(E,{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:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[S]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[R]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return P_=n,P_}var F_,L1;function OWe(){if(L1)return F_;L1=1;function n(e){const t="([0-9]_*)+",i="([0-9a-fA-F]_*)+",s="([01]_*)+",r="([0-7]_*)+",d="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",u={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},_={className:"meta",begin:/\{-#/,end:/#-\}/},m={className:"meta",begin:"^#",end:"$"},h={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},f={begin:"\\(",end:"\\)",illegal:'"',contains:[_,m,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),u]},y={begin:/\{/,end:/\}/,contains:f.contains},b={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${i})(\\.(${i}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${r})\\b`},{match:`\\b0[bB](${s})\\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:[f,u],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[f,u],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[h,f,u]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[_,h,f,y,u]},{beginKeywords:"default",end:"$",contains:[h,f,u]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,u]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[h,e.QUOTE_STRING_MODE,u]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},_,m,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,b,h,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${d}--+|--+(?!-)${d}`},u,{begin:"->|<-"}]}}return F_=n,F_}var U_,P1;function IWe(){if(P1)return U_;P1=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",i=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;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:i,relevance:0},{className:"variable",begin:"\\$"+t},{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:/<\//}}return U_=n,U_}var B_,F1;function kWe(){if(F1)return B_;F1=1;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]}}return B_=n,B_}var G_,U1;function DWe(){if(U1)return G_;U1=1;function n(e){const t=e.regex,i="HTTP/([32]|1\\.[01])",s=/[A-Za-z][A-Za-z0-9-]*/,r={className:"attribute",begin:t.concat("^",s,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[r,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(r,{relevance:0})]}}return G_=n,G_}var V_,B1;function LWe(){if(B1)return V_;B1=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",i="["+t+"]["+t+"0-9/;:]*",s={$pattern:i,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="[-+]?\\d+(\\.\\d+)?",o={begin:i,relevance:0},a={className:"number",begin:r,relevance:0},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},_={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},m={className:"comment",begin:"\\^"+i},h=e.COMMENT("\\^\\{","\\}"),f={className:"symbol",begin:"[:]{1,2}"+i},y={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:s,begin:i,starts:b},E=[y,c,m,h,d,f,_,a,u,o];return y.contains=[e.COMMENT("comment",""),g,b],b.contains=E,_.contains=E,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),y,c,m,h,d,f,_,a,u]}}return V_=n,V_}var z_,G1;function PWe(){if(G1)return z_;G1=1;function n(e){const t="\\[",i="\\]";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:t,end:i}]},{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:t,end:i,contains:["self"]}]}}return z_=n,z_}var H_,V1;function FWe(){if(V1)return H_;V1=1;function n(e){const t=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},s=e.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[s,o,r,a,i,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,_=/'[^']*'/,m=t.either(d,u,_),h=t.concat(m,"(\\s*\\.\\s*",m,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[s,c,o,r,a,i]}}]}}return H_=n,H_}var q_,z1;function UWe(){if(z1)return q_;z1=1;function n(e){const t=e.regex,i={className:"params",begin:"\\(",end:"\\)"},s=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,r,s)},{begin:t.concat(/\b\d+/,r,s)},{begin:t.concat(/\.\d+/,r,s)}],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,i]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}return q_=n,q_}var Y_,H1;function BWe(){if(H1)return Y_;H1=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",s="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Oe="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 ",qO="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 ",YO="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",$O="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 ВызовСпособ ИмяОтчета РеквЗнач ",WO="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 ",KO=Oe+qO,jO=$O,QO="null true false nil ",Uy={className:"number",begin:e.NUMBER_RE,relevance:0},By={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Gy={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},XO={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Gy]},ZO={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Gy]},Vy={variants:[XO,ZO]},Ec={$pattern:t,keyword:s,built_in:KO,class:jO,literal:QO},Rp={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:Ec,relevance:0},zy={className:"type",begin:":[ \\t]*("+WO.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Hy={className:"variable",keywords:Ec,begin:t,relevance:0,contains:[zy,Rp]},qy=i+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:Ec,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:qy,end:"\\)$",returnBegin:!0,keywords:Ec,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:YO},begin:qy,end:"\\(",returnBegin:!0,excludeEnd:!0},Rp,Hy,By,Uy,Vy]},zy,Rp,Hy,By,Uy,Vy]}}return Y_=n,Y_}var $_,q1;function GWe(){if(q1)return $_;q1=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o,a,c){return c===-1?"":o.replace(a,d=>s(o,a,c-1))}function r(o){const a=o.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=c+s("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),f={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"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},y={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[b,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[y,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,i,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},i,y]}}return $_=r,$_}var W_,Y1;function VWe(){if(Y1)return W_;Y1=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["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"],t=["true","false","null","undefined","NaN","Infinity"],i=["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"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,i,s);function c(d){const u=d.regex,_=(Q,{after:fe})=>{const _e="</"+Q[0].slice(1);return Q.input.indexOf(_e,fe)!==-1},m=n,h={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,fe)=>{const _e=Q[0].length+Q.index,Ae=Q.input[_e];if(Ae==="<"||Ae===","){fe.ignoreMatch();return}Ae===">"&&(_(Q,{after:_e})||fe.ignoreMatch());let Fe;const te=Q.input.substring(_e);if(Fe=te.match(/^\s*=/)){fe.ignoreMatch();return}if((Fe=te.match(/^\s+extends\s+/))&&Fe.index===0){fe.ignoreMatch();return}}},b={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},g="[0-9](_?[0-9])*",E=`\\.(${g})`,v="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${v})((${E})|\\.)?|(${E}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${E})\\b|\\.)?|(${E})\\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},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},A={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,R]},G={className:"comment",variants:[d.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:m+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},V=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,C,A,I,x,{match:/\$\d+/},S];R.contains=V.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(V)});const ee=[].concat(G,R.contains),O=ee.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(ee)}]),H={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:O},q={variants:[{match:[/class/,/\s+/,m,/\s+/,/extends/,/\s+/,u.concat(m,"(",u.concat(/\./,m),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,m],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:u.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:{_:[...i,...s]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ne={variants:[{match:[/function/,/\s+/,m,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(Q){return u.concat("(?!",Q.join("|"),")")}const xe={match:u.concat(/\b/,ye([...r,"super","import"].map(Q=>`${Q}\\s*\\(`)),m,u.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:u.concat(/\./,u.lookahead(u.concat(m,/(?![0-9A-Za-z$_(])/))),end:m,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ve={match:[/get|set/,/\s+/,m,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},Oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",De={match:[/const|var|let/,/\s+/,m,/\s*/,/=\s*/,/(async\s*)?/,u.lookahead(Oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,C,A,I,x,G,{match:/\$\d+/},S,L,{className:"attr",begin:m+u.lookahead(":"),relevance:0},De,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[G,d.REGEXP_MODE,{className:"function",begin:Oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:f},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},ne,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,d.inherit(d.TITLE_MODE,{begin:m,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+m,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},xe,oe,q,ve,{match:/\$[(.]/}]}}return W_=c,W_}var K_,$1;function zWe(){if($1)return K_;$1=1;function n(e){const i={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},s={className:"function",begin:/:[\w\-.]+/,relevance:0},r={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},o={className:"params",begin:/--[\w\-=\/]+/};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,o,s,r,i]}}return K_=n,K_}var j_,W1;function HWe(){if(W1)return j_;W1=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],r={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[t,i,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return j_=n,j_}var Q_,K1;function qWe(){if(K1)return Q_;K1=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={$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"],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","π","ℯ"],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"]},a={keywords:o,illegal:/<\//},c={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},d={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},_={className:"variable",begin:"\\$"+t},m={className:"string",contains:[e.BACKSLASH_ESCAPE,u,_],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},h={className:"string",contains:[e.BACKSLASH_ESCAPE,u,_],begin:"`",end:"`"},f={className:"meta",begin:"@"+t},y={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[c,d,m,h,f,y,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],u.contains=a.contains,a}return Q_=n,Q_}var X_,j1;function YWe(){if(j1)return X_;j1=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return X_=n,X_}var Z_,Q1;function $We(){if(Q1)return Z_;Q1=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(r){const o={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"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:r.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[r.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+r.UNDERSCORE_IDENT_RE},_={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,d]},{begin:"'",end:"'",illegal:/\n/,contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,u,d]}]};d.contains.push(_);const m={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+r.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+r.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[r.inherit(_,{className:"string"}),"self"]}]},f=i,y=r.COMMENT("/\\*","\\*/",{contains:[r.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:r.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},g=b;return g.variants[1].contains=[b],b.variants[1].contains=[g],{name:"Kotlin",aliases:["kt","kts"],keywords:o,contains:[r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),r.C_LINE_COMMENT_MODE,y,a,c,m,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,r.C_LINE_COMMENT_MODE,y],relevance:0},r.C_LINE_COMMENT_MODE,y,m,h,_,r.C_NUMBER_MODE]},y]},{begin:[/class|interface|trait/,/\s+/,r.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},r.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},m,h]},_,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
-`},f]}}return Z_=s,Z_}var J_,X1;function WWe(){if(X1)return J_;X1=1;function n(e){const t="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",s="\\]|\\?>",r={$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"},o=e.COMMENT("<!--","-->",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},c={className:"meta",begin:"\\[/noprocess|"+i},d={className:"symbol",begin:"'"+t+"'"},u=[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:[d]},{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:r,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[o]}},a,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:r,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[o]}},a,c].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return J_=n,J_}var em,Z1;function KWe(){if(Z1)return em;Z1=1;function n(e){const i=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(G=>G+"(?![a-zA-Z@:_])")),s=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(G=>G+"(?![a-zA-Z:_])").join("|")),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{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:i},{endsParent:!0,begin:s},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:r}]},c={className:"params",relevance:0,begin:/#+\d?/},d={variants:o},u={className:"built_in",relevance:0,begin:/[$&^_]/},_={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},m=e.COMMENT("%","$",{relevance:0}),h=[a,c,d,u,_,m],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...h]},y=e.inherit(f,{relevance:0,endsParent:!0,contains:[f,...h]}),b={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[f,...h]},g={begin:/\s+/,relevance:0},E=[y],v=[b],S=function(G,V){return{contains:[g],starts:{relevance:0,contains:G,starts:V}}},R=function(G,V){return{begin:"\\\\"+G+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+G},relevance:0,contains:[g],starts:V}},C=function(G,V){return e.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+G+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(E,V))},A=(G="string")=>e.END_SAME_AS_BEGIN({className:G,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),I=function(G){return{className:"string",end:"(?=\\\\end\\{"+G+"\\})"}},x=(G="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:G,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),M=[...["verb","lstinline"].map(G=>R(G,{contains:[A()]})),R("mint",S(E,{contains:[A()]})),R("mintinline",S(E,{contains:[x(),A()]})),R("url",{contains:[x("link"),x("link")]}),R("hyperref",{contains:[x("link")]}),R("href",S(v,{contains:[x("link")]})),...[].concat(...["","\\*"].map(G=>[C("verbatim"+G,I("verbatim"+G)),C("filecontents"+G,S(E,I("filecontents"+G))),...["","B","L"].map(V=>C(V+"Verbatim"+G,S(v,I(V+"Verbatim"+G))))])),C("minted",S(v,S(E,I("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...M,...h]}}return em=n,em}var tm,J1;function jWe(){if(J1)return tm;J1=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return tm=n,tm}var nm,eT;function QWe(){if(eT)return nm;eT=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,s={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:[s]};return s.contains.unshift(r),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[s]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return nm=n,nm}var im,tT;function XWe(){if(tT)return im;tT=1;const n=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.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:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),c=r.concat(o).sort().reverse();function d(u){const _=n(u),m=c,h="and or not only",f="[\\w-]+",y="("+f+"|@\\{"+f+"\\})",b=[],g=[],E=function(ee){return{className:"string",begin:"~?"+ee+".*?"+ee}},v=function(ee,O,H){return{className:ee,begin:O,relevance:H}},S={$pattern:/[a-z-]+/,keyword:h,attribute:s.join(" ")},R={begin:"\\(",end:"\\)",contains:g,keywords:S,relevance:0};g.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,E("'"),E('"'),_.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},_.HEXCOLOR,R,v("variable","@@?"+f,10),v("variable","@\\{"+f+"\\}"),v("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},_.IMPORTANT,{beginKeywords:"and not"},_.FUNCTION_DISPATCH);const C=g.concat({begin:/\{/,end:/\}/,contains:b}),A={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},I={begin:y+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},x={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:g,relevance:0}},M={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:C}},G={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:y,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,A,v("keyword","all\\b"),v("variable","@\\{"+f+"\\}"),{begin:"\\b("+i.join("|")+")\\b",className:"selector-tag"},_.CSS_NUMBER_MODE,v("selector-tag",y,0),v("selector-id","#"+y),v("selector-class","\\."+y,0),v("selector-tag","&",0),_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},_.FUNCTION_DISPATCH]},V={begin:f+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[G]};return b.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,x,M,V,I,G,A,_.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:b}}return im=d,im}var sm,nT;function ZWe(){if(nT)return sm;nT=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",s="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",r={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:s,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)\\("+s+" +"+s,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),d={begin:"\\*",end:"\\*"},u={className:"symbol",begin:"[:&]"+t},_={begin:t,relevance:0},m={begin:i},f={contains:[o,a,d,u,{begin:"\\(",end:"\\)",contains:["self",r,a,o,_]},_],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},y={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},b={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:i}]},g],g.contains=[f,y,b,r,o,a,c,d,u,m,_],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),r,a,c,f,y,b,_]}}return sm=n,sm}var rm,iT;function JWe(){if(iT)return rm;iT=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],s=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=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,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,s],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s]},{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,s].concat(i),illegal:";$|^\\[|^=|&|\\{"}}return rm=n,rm}var om,sT;function eKe(){if(sT)return om;sT=1;const 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"],e=["true","false","null","undefined","NaN","Infinity"],t=["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"],i=["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"],r=[].concat(s,t,i);function o(a){const c=["npm","print"],d=["yes","no","on","off","it","that","void"],u=["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"],_={keyword:n.concat(u),literal:e.concat(d),built_in:r.concat(c)},m="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",h=a.inherit(a.TITLE_MODE,{begin:m}),f={className:"subst",begin:/#\{/,end:/\}/,keywords:_},y={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:_},b=[a.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:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,f,y]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,f,y]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[f,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+m},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];f.contains=b;const g={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(b)}]},E={begin:"(#=>|=>|\\|>>|-?->|!->)"},v={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:_};return{name:"LiveScript",aliases:["ls"],keywords:_,illegal:/\/\*/,contains:b.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,E,{className:"function",contains:[h,g],returnBegin:!0,variants:[{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},v,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return om=o,om}var am,rT;function tKe(){if(rT)return am;rT=1;function n(e){const t=e.regex,i=/([-a-zA-Z$._][\w$.-]*)/,s={className:"type",begin:/\bi\d+(?=\s|\b)/},r={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},c={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:t.concat(/%/,i)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:"title",variants:[{begin:t.concat(/@/,i)},{begin:/@\d+/},{begin:t.concat(/!/,i)},{begin:t.concat(/!\d+/,i)},{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:[s,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},u,o,r,d,c,a]}}return am=n,am}var lm,oT;function nKe(){if(oT)return lm;oT=1;function n(e){const i={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},s={className:"number",relevance:0,begin:e.C_NUMBER_RE},r={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"}]},o={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"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[i,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},s,{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"}]},o,r,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return lm=n,lm}var cm,aT;function iKe(){if(aT)return cm;aT=1;function n(e){const t="\\[=*\\[",i="\\]=*\\]",s={begin:t,end:i,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,i,{contains:[s],relevance:10})];return{name:"Lua",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:r.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:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:i,contains:[s],relevance:5}])}}return cm=n,cm}var dm,lT;function sKe(){if(lT)return dm;lT=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,i,s,r,o,a]}}return dm=n,dm}var um,cT;function rKe(){if(cT)return um;cT=1;const 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"];function e(t){const i=t.regex,s=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,o=/(\d*\.\d+|\d+\.\d*|\d+)/,a=i.either(i.concat(s,r),o),c=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,d=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,u=i.either(c,d),_=/\*\^[+-]?\d+/,h={className:"number",relevance:0,begin:i.concat(a,i.optional(u),i.optional(_))},f=/[a-zA-Z$][a-zA-Z0-9$]*/,y=new Set(n),b={variants:[{className:"builtin-symbol",begin:f,"on:begin":(A,I)=>{y.has(A[0])||I.ignoreMatch()}},{className:"symbol",relevance:0,begin:f}]},g={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},E={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},v={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},S={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},R={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:i.concat("::",f)};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:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),v,S,C,b,g,t.QUOTE_STRING_MODE,h,E,R]}}return um=e,um}var pm,dT;function oKe(){if(dT)return pm;dT=1;function n(e){const t="('|\\.')+",i={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:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:i},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return pm=n,pm}var fm,uT;function aKe(){if(uT)return fm;uT=1;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:/@/}}return fm=n,fm}var _m,pT;function lKe(){if(pT)return _m;pT=1;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:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return _m=n,_m}var mm,fT;function cKe(){if(fT)return mm;fT=1;function n(e){const 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"},i=e.COMMENT("%","$"),s={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},r=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),a={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return o.contains=o.contains.slice(),o.contains.push(a),{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}]},i,e.C_BLOCK_COMMENT_MODE,s,e.NUMBER_MODE,r,o,{begin:/:-/},{begin:/\.$/}]}}return mm=n,mm}var hm,_T;function dKe(){if(_T)return hm;_T=1;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:/\//}}return hm=n,hm}var gm,mT;function uKe(){if(mT)return gm;mT=1;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("::","$")]}}return gm=n,gm}var bm,hT;function pKe(){if(hT)return bm;hT=1;function n(e){const t=e.regex,i=["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"],s=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:i.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},a={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},u={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},_=[e.BACKSLASH_ESCAPE,o,d],m=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,g,E="\\1")=>{const v=E==="\\1"?E:t.concat(E,g);return t.concat(t.concat("(?:",b,")"),g,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,E,s)},f=(b,g,E)=>t.concat(t.concat("(?:",b,")"),g,/(?:\\.|[^\\\/])*?/,E,s),y=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:_,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}]},u,{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:h("s|tr|y",t.either(...m,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...m,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=y,a.contains=y,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:y}}return bm=n,bm}var ym,gT;function fKe(){if(gT)return ym;gT=1;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}]}}return ym=n,ym}var Em,bT;function _Ke(){if(bT)return Em;bT=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},i={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},s={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"],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"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),i,s,{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]}}return Em=n,Em}var vm,yT;function mKe(){if(yT)return vm;yT=1;function n(e){const 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"},i="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:t},r=[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,s]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];s.contains=r;const o=e.inherit(e.TITLE_MODE,{begin:i}),a="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return vm=n,vm}var Sm,ET;function hKe(){if(ET)return Sm;ET=1;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"],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"]},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]}}return Sm=n,Sm}var Tm,vT;function gKe(){if(vT)return Tm;vT=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},i={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},s={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},r={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),r,s,t,i]}}return Tm=n,Tm}var xm,ST;function bKe(){if(ST)return xm;ST=1;function n(e){const t=e.regex,i={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,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],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},i]};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\\}\\{]"}}return xm=n,xm}var Cm,TT;function yKe(){if(TT)return Cm;TT=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","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"],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"],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]}}return Cm=n,Cm}var wm,xT;function EKe(){if(xT)return wm;xT=1;function n(e){const t={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},s={className:"char.escape",begin:/''\$/},r={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[s,i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,r];return i.contains=a,{name:"Nix",aliases:["nixos"],keywords:t,contains:a}}return wm=n,wm}var Rm,CT;function vKe(){if(CT)return Rm;CT=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Rm=n,Rm}var Am,wT;function SKe(){if(wT)return Am;wT=1;function n(e){const t=e.regex,i=["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"],s=["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"],r=["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"],o={className:"variable.constant",begin:t.concat(/\$/,t.either(...i))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},c={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},d={className:"variable",begin:/\$+\([\w^.:!-]+\)/},u={className:"params",begin:t.either(...s)},_={className:"keyword",begin:t.concat(/!/,t.either(...r))},m={className:"char.escape",begin:/\$(\\[nrt]|\$)/},h={className:"title.function",begin:/\w+::\w+/},f={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[m,o,a,c,d]},y=["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"],b=["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"],g={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},v={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:y,literal:b},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),v,g,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},f,_,a,c,d,u,h,e.NUMBER_MODE]}}return Am=n,Am}var Mm,RT;function TKe(){if(RT)return Mm;RT=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:i,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:i,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Mm=n,Mm}var Nm,AT;function xKe(){if(AT)return Nm;AT=1;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:/->/}]}}return Nm=n,Nm}var Om,MT;function CKe(){if(MT)return Om;MT=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",s,r,t,i]},c={begin:"[*!#%]",relevance:0},d={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,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,s,o,r,t,c,d]}}return Om=n,Om}var Im,NT;function wKe(){if(NT)return Im;NT=1;function n(e){const 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"},i=e.COMMENT(/\{/,/\}/,{relevance:0}),s=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={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:[r,o]},i,s]},c={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[i,s,e.C_LINE_COMMENT_MODE,r,o,e.NUMBER_MODE,a,c]}}return Im=n,Im}var km,OT;function RKe(){if(OT)return km;OT=1;function n(e){const 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]}}return km=n,km}var Dm,IT;function AKe(){if(IT)return Dm;IT=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},i={className:"variable",begin:/<(?!\/)/,end:/>/};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,t,i]}}return Dm=n,Dm}var Lm,kT;function MKe(){if(kT)return Lm;kT=1;function n(e){const t=e.COMMENT("--","$"),i="[a-zA-Z_][a-zA-Z_0-9$]*",s="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+i+"\\s*>>",o="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 ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="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 ",d="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 ",u=d.trim().split(" ").map(function(b){return b.split("|")[0]}).join("|"),_="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",m="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 ",h="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 ",y="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 ".trim().split(" ").map(function(b){return b.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+c+a,built_in:_+m+h},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("+y+")\\s*\\("},{begin:"\\.("+u+")\\b"},{begin:"\\b("+u+")\\s+PATH\\b",keywords:{keyword:"PATH",type:d.replace("PATH ","")}},{className:"type",begin:"\\b("+u+")\\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:s,end:s,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:r,relevance:10}]}}return Lm=n,Lm}var Pm,DT;function NKe(){if(DT)return Pm;DT=1;function n(e){const t=e.regex,i=/(?![A-Za-z0-9])(?![$])/,s=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),o={scope:"variable",match:"\\$+"+s},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=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)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(O,H)=>{H.data._beginMatch=O[1]||O[2]},"on:end":(O,H)=>{H.data._beginMatch!==O[1]&&H.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[ 	
-]`,f={scope:"string",variants:[u,d,_,m]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],g=["__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"],E=["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"],S={keyword:g,literal:(O=>{const H=[];return O.forEach(q=>{H.push(q),q.toLowerCase()===q?H.push(q.toUpperCase()):H.push(q.toLowerCase())}),H})(b),built_in:E},R=O=>O.map(H=>H.replace(/\|\d+$/,"")),C={variants:[{match:[/new/,t.concat(h,"+"),t.concat("(?!",R(E).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},A=t.concat(s,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},x={scope:"attr",match:t.concat(s,t.lookahead(":"),t.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[x,o,I,e.C_BLOCK_COMMENT_MODE,f,y,C]},G={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(g).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,t.concat(h,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push(G);const V=[x,I,e.C_BLOCK_COMMENT_MODE,f,y,C],ee={begin:t.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...V]},...V,{scope:"meta",match:r}]};return{case_insensitive:!1,keywords:S,contains:[ee,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}]}},a,{scope:"variable.language",match:/\$this\b/},o,G,I,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},C,{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:S,contains:["self",o,I,e.C_BLOCK_COMMENT_MODE,f,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},f,y]}}return Pm=n,Pm}var Fm,LT;function OKe(){if(LT)return Fm;LT=1;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})]}]}}return Fm=n,Fm}var Um,PT;function IKe(){if(PT)return Um;PT=1;function n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Um=n,Um}var Bm,FT;function kKe(){if(FT)return Bm;FT=1;function n(e){const t={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"},i={className:"string",begin:'"""',end:'"""',relevance:10},s={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},r={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:t,contains:[o,i,s,r,a,{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]}}return Bm=n,Bm}var Gm,UT;function DKe(){if(UT)return Gm;UT=1;function n(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],i="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",s="-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",r={$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"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"literal",begin:/\$(null|true|false)\b/},u={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},_={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},m={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[m]}),f={className:"built_in",variants:[{begin:"(".concat(i,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},b={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[u,_,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},E={variants:[{className:"operator",begin:"(".concat(s,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},v={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(r.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},R=[S,h,a,e.NUMBER_MODE,u,_,f,c,d,v],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",R,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return S.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:r,contains:R.concat(y,b,g,E,C)}}return Gm=n,Gm}var Vm,BT;function LKe(){if(BT)return Vm;BT=1;function n(e){const t=e.regex,i=["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"],s=e.IDENT_RE,r={variants:[{match:t.concat(t.either(...i),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,s,t.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,s],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,s],className:{2:"property"}},c={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,s]},{match:[/class/,/\s+/,s]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},d=["boolean","byte","char","color","double","float","int","long","short"],u=["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"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...i,...u],type:d},contains:[c,o,r,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return Vm=n,Vm}var zm,GT;function PKe(){if(GT)return zm;GT=1;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}]}}return zm=n,zm}var Hm,VT;function FKe(){if(VT)return Hm;VT=1;function n(e){const t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},s={begin:/\(/,end:/\)/,relevance:0},r={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},d={className:"string",begin:/0'\\s/},_=[t,i,s,{begin:/:-/},r,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,c,d,e.C_NUMBER_MODE];return s.contains=_,r.contains=_,{name:"Prolog",contains:_.concat([{begin:/\.$/}])}}return Hm=n,Hm}var qm,zT;function UKe(){if(zT)return qm;zT=1;function n(e){const t="[ \\t\\f]*",i="[ \\t\\f]+",s=t+"[:=]"+t,r=i,o="("+s+"|"+r+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",c={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+s},{begin:a+r}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:c},{className:"attr",begin:a+t+"$"}]}}return qm=n,qm}var Ym,HT;function BKe(){if(HT)return Ym;HT=1;function n(e){const t=["package","import","option","optional","required","repeated","group","oneof"],i=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],s={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:t,type:i,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return Ym=n,Ym}var $m,qT;function GKe(){if(qT)return $m;qT=1;function n(e){const 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"},i=e.COMMENT("#","$"),s="([A-Za-z_]|::)(\\w|::)*",r=e.inherit(e.TITLE_MODE,{begin:s}),o={className:"variable",begin:"\\$"+s},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[i,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[r,i]},{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:[a,i,{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},o]}],relevance:0}]}}return $m=n,$m}var Wm,YT;function VKe(){if(YT)return Wm;YT=1;function n(e){const t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};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]},t,i]}}return Wm=n,Wm}var Km,$T;function zKe(){if($T)return Km;$T=1;function n(e){const t=e.regex,i=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["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"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},_={begin:/\{\{/,relevance:0},m={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,_,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,_,u]},{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,_,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,_,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",f=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,y=`\\b|${s.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${f}))[eE][+-]?(${h})[jJ]?(?=${y})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${y})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${y})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${y})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${y})`},{begin:`\\b(${h})[jJ](?=${y})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,b,m,e.HASH_COMMENT_MODE]}]};return u.contains=[m,b,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[E]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,E,m]}]}}return Km=n,Km}var jm,WT;function HKe(){if(WT)return jm;WT=1;function n(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return jm=n,jm}var Qm,KT;function qKe(){if(KT)return Qm;KT=1;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]}}return Qm=n,Qm}var Xm,jT;function YKe(){if(jT)return Xm;jT=1;function n(e){const t=e.regex,i={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"},s="[a-zA-Z_][a-zA-Z0-9\\._]*",r={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:s,returnEnd:!1}},c={begin:s+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:s,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:t.concat(s,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:s})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:i,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:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,r,{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},a,c,d],illegal:/#/}}return Xm=n,Xm}var Zm,QT;function $Ke(){if(QT)return Zm;QT=1;function n(e){const t=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=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]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,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:i},{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:[r,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[o,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Zm=n,Zm}var Jm,XT;function WKe(){if(XT)return Jm;XT=1;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"],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}]}}return Jm=n,Jm}var eh,ZT;function KKe(){if(ZT)return eh;ZT=1;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:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return eh=n,eh}var th,JT;function jKe(){if(JT)return th;JT=1;function n(e){const t="[a-zA-Z-_][^\\n{]+\\{",i={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:[i,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",i,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[i,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return th=n,th}var nh,ex;function QKe(){if(ex)return nh;ex=1;function n(e){const t="foreach do while for if from to step else on-error and or not in",i="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",s="add remove enable disable set get print export edit find run debug error info warning",r="true false yes no nothing nil null",o="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",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},d={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:r,keyword:t+" :"+t.split(" ").join(" :")+" :"+i.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),c,d,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,d,a,{className:"literal",begin:"\\b("+r.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+s.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return nh=n,nh}var ih,tx;function XKe(){if(tx)return ih;tx=1;function n(e){const 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"],i=["matrix","float","color","point","normal","vector"],s=["while","for","if","do","return","else","break","extern","continue"],r={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:s,built_in:t,type:i},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},r,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return ih=n,ih}var sh,nx;function ZKe(){if(nx)return sh;nx=1;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 .]+"}]}]}}return sh=n,sh}var rh,ix;function JKe(){if(ix)return rh;ix=1;function n(e){const t=e.regex,i=/(r#)?/,s=t.concat(i,e.UNDERSCORE_IDENT_RE),r=t.concat(i,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,r,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",c=["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"],d=["true","false","Some","None","Ok","Err"],u=["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!"],_=["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:_,keyword:c,literal:d,built_in:u},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,s],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,s],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,s,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:_}},{className:"punctuation",begin:"->"},o]}}return rh=n,rh}var oh,sx;function eje(){if(sx)return oh;sx=1;function n(e){const t=e.regex,i=["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"],s=["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"],r=["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"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:i},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(...r)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either(...s)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return oh=n,oh}var ah,rx;function tje(){if(rx)return ah;rx=1;function n(e){const t=e.regex,i={className:"meta",begin:"@[A-Za-z]+"},s={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},r={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,s]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[s],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={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:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},d={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},u={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},_={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},m=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={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,r,o,d,c,e.C_NUMBER_MODE,u,_,...m,h,i]}}return ah=n,ah}var lh,ox;function nje(){if(ox)return lh;ox=1;function n(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",s=i+"[+\\-]"+i+"i",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-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? 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-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? 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?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},a={className:"number",variants:[{begin:i,relevance:0},{begin:s,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=e.QUOTE_STRING_MODE,d=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],u={begin:t,relevance:0},_={className:"symbol",begin:"'"+t},m={endsWithParent:!0,relevance:0},h={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,c,a,u,_]}]},f={className:"name",relevance:0,begin:t,keywords:r},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[u]}]},f,m]};return m.contains=[o,a,c,u,_,h,b].concat(d),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,c,_,h,b].concat(d)}}return lh=n,lh}var ch,ax;function ije(){if(ax)return ch;ax=1;function n(e){const 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)}}return ch=n,ch}var dh,lx;function sje(){if(lx)return dh;lx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=n(d),_=o,m=r,h="@[a-z-]+",f="and or not only",b={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+_.join("|")+")"},b,{begin:/\(/,end:/\)/,contains:[u.CSS_NUMBER_MODE]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.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:[u.BLOCK_COMMENT,b,u.HEXCOLOR,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:h,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:s.join(" ")},contains:[{begin:h,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},b,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.HEXCOLOR,u.CSS_NUMBER_MODE]},u.FUNCTION_DISPATCH]}}return dh=c,dh}var uh,cx;function rje(){if(cx)return uh;cx=1;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"}}]}}return uh=n,uh}var ph,dx;function oje(){if(dx)return ph;dx=1;function n(e){const 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"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];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("+s.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
-]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return ph=n,ph}var fh,ux;function aje(){if(ux)return fh;ux=1;function n(e){const t="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},s={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,s,i,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,i,e.C_NUMBER_MODE,s]}]}}return fh=n,fh}var _h,px;function lje(){if(px)return _h;px=1;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:/[-=]>/}]}}return _h=n,_h}var mh,fx;function cje(){if(fx)return mh;fx=1;function n(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},i={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},s={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},r=["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"],o=["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"],a=["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"],c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{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:r,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,i,s,c],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return mh=n,mh}var hh,_x;function dje(){if(_x)return hh;_x=1;function n(e){const t=e.regex,i=e.COMMENT("--","$"),s={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],c=["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"],d=["add","asc","collation","desc","final","first","last","view"],u=["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"],_=["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"],m=["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"],h=["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"],f=_,y=[...u,...d].filter(S=>!_.includes(S)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={begin:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function v(S,{exceptions:R,when:C}={}){const A=C;return R=R||[],S.map(I=>I.match(/\|\d+$/)||R.includes(I)?I:A(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(y,{when:S=>S.length<3}),literal:o,type:c,built_in:m},contains:[{begin:t.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:y.concat(h),literal:o,type:c}},{className:"type",begin:t.either(...a)},E,b,s,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,g]}}return hh=n,hh}var gh,mx;function uje(){if(mx)return gh;mx=1;function n(e){const t=e.regex,i=["functions","model","data","parameters","quantities","transformed","generated"],s=["for","in","if","else","while","break","continue","return"],r=["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"],o=["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"],a=["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"],c=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},u=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:i,type:r,keyword:s,built_in:o},contains:[e.C_LINE_COMMENT_MODE,d,e.HASH_COMMENT_MODE,c,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\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:/"/}]}}return gh=n,gh}var bh,hx;function pje(){if(hx)return bh;hx=1;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
+`})))});function iS(n,e,t,i){var s=n,r=i;if(t&&Object.prototype.hasOwnProperty.call(e,s))throw new Error("User defined `id` attribute `"+n+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(e,s);)s=n+"-"+r,r+=1;return e[s]=!0,s}function Wo(n,e){e=Object.assign({},Wo.defaults,e),n.core.ruler.push("anchor",function(t){for(var i,s={},r=t.tokens,o=Array.isArray(e.level)?(i=e.level,function(_){return i.includes(_)}):function(_){return function(m){return m>=_}}(e.level),a=0;a<r.length;a++){var c=r[a];if(c.type==="heading_open"&&o(Number(c.tag.substr(1)))){var d=e.getTokensText(r[a+1].children),u=c.attrGet("id");u=u==null?iS(e.slugify(d),s,!1,e.uniqueSlugStartIndex):iS(u,s,!0,e.uniqueSlugStartIndex),c.attrSet("id",u),e.tabIndex!==!1&&c.attrSet("tabindex",""+e.tabIndex),typeof e.permalink=="function"?e.permalink(u,e,t,a):(e.permalink||e.renderPermalink&&e.renderPermalink!==rb)&&e.renderPermalink(u,e,t,a),a=r.indexOf(c),e.callback&&e.callback(c,{slug:u,title:d})}}})}Object.assign(nS.defaults,{style:"visually-hidden",space:!0,placement:"after",wrapper:null}),Wo.permalink={__proto__:null,legacy:rb,renderHref:hM,renderAttrs:gM,makePermalink:lc,linkInsideHeader:op,ariaHidden:Vr,headerLink:bM,linkAfterHeader:nS},Wo.defaults={level:1,slugify:function(n){return encodeURIComponent(String(n).trim().toLowerCase().replace(/\s+/g,"-"))},uniqueSlugStartIndex:1,tabIndex:"-1",getTokensText:function(n){return n.filter(function(e){return["text","code_inline"].includes(e.type)}).map(function(e){return e.content}).join("")},permalink:!1,renderPermalink:rb,permalinkClass:Vr.defaults.class,permalinkSpace:Vr.defaults.space,permalinkSymbol:"¶",permalinkBefore:Vr.defaults.placement==="before",permalinkHref:Vr.defaults.renderHref,permalinkAttrs:Vr.defaults.renderAttrs},Wo.default=Wo;function Bs(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}Bs.prototype.set_highest_alphabet=function(n){this.__highest_alphabet__=n};Bs.prototype.set_match_alphabets=function(n){this.__match_alphabets__=n};Bs.prototype.set_initial_state=function(n){this.__initial_state__=n};Bs.prototype.set_accept_states=function(n){for(var e=0;e<n.length;e++)this.__accept_states__[n[e]]=!0};Bs.prototype.set_transitions=function(n){this.__transitions__=n};Bs.prototype.set_actions=function(n){this.__actions__=n};Bs.prototype.update_transition=function(n,e){this.__transitions__[n]=Object.assign(this.__transitions__[n]||Object(),e)};Bs.prototype.execute=function(n,e){var t,i,s;for(t=this.__initial_state__,i=n;t&&i<e;i++){for(s=this.__highest_alphabet__;s>0&&!(t&s&&this.__match_alphabets__[s].call(this,i,t,s));s>>=4);if(this.__actions__(i,t,s),s===0)break;t=this.__transitions__[t][s]||0}return!!this.__accept_states__[t]};var Kqe=Bs,jqe=Kqe,Qqe=function(e,t){var i={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};t=e.utils.assign({},i,t||{});function s(u,_){var m=u.bMarks[_]+u.sCount[_],h=u.bMarks[_]+u.blkIndent,f=u.skipSpacesBack(u.eMarks[_],h),y=[],b,g,E=!1,v=!1,S=0;for(b=m;b<f;b++)switch(u.src.charCodeAt(b)){case 92:E=!0;break;case 96:g=u.skipChars(b,96)-1,g>b?(v||(S===0?S=g-b:S===g-b&&(S=0)),b=g):(v||!E&&!S)&&(v=!v),E=!1;break;case 124:!v&&!E&&y.push(b),E=!1;break;default:E=!1;break}return y.length===0||(y[0]>h&&y.unshift(h-1),y[y.length-1]<f-1&&y.push(f)),y}function r(u,_,m){var h={text:null,label:null},f=u.bMarks[m]+u.sCount[m],y=u.eMarks[m],b=/^\[(.+?)\](\[([^\[\]]+)\])?\s*$/,g=u.src.slice(f,y).match(b);return g?_?!0:(h.text=g[1],!t.autolabel&&!g[2]||(h.label=g[2]||g[1],h.label=h.label.toLowerCase().replace(/\W+/g,"")),h):!1}function o(u,_,m){var h={bounds:null,multiline:null},f=s(u,m),y,b,g;return f.length<2?!1:_?!0:(h.bounds=f,t.multiline&&(y=u.bMarks[m]+u.sCount[m],b=u.eMarks[m]-1,h.multiline=u.src.charCodeAt(b)===92,h.multiline&&(g=u.eMarks[m],u.eMarks[m]=u.skipSpacesBack(b,y),h.bounds=s(u,m),u.eMarks[m]=g)),h)}function a(u,_,m){var h={aligns:[],wraps:[]},f=s(u,m),y=/^:?(-+|=+):?\+?$/,b,g,E;if(u.sCount[m]-u.blkIndent>=4||f.length===0)return!1;for(b=0;b<f.length-1;b++){if(g=u.src.slice(f[b]+1,f[b+1]).trim(),!y.test(g))return!1;switch(h.wraps.push(g.charCodeAt(g.length-1)===43),E=(g.charCodeAt(0)===58)<<4|g.charCodeAt(g.length-1-h.wraps[b])===58,E){case 0:h.aligns.push("");break;case 1:h.aligns.push("right");break;case 16:h.aligns.push("left");break;case 17:h.aligns.push("center");break}}return _?!0:h}function c(u,_,m){return u.isEmpty(m)}function d(u,_,m,h){var f=new jqe,y=16,b=-1,g,E,v,S,R,C,A=[],I,x,M,G,V,ee,O,H,q,L;if(_+2>m||(E=new u.Token("table_open","table",1),E.meta={sep:null,cap:null,tr:[]},f.set_highest_alphabet(65536),f.set_initial_state(65792),f.set_accept_states([65552,65553,0]),f.set_match_alphabets({65536:r.bind(this,u,!0),4096:a.bind(this,u,!0),256:o.bind(this,u,!0),16:o.bind(this,u,!0),1:c.bind(this,u,!0)}),f.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),t.headerless&&(f.set_initial_state(69888),f.update_transition(69888,{65536:4352,4096:65552,256:4352}),v=new u.Token("tr_placeholder","tr",0),v.meta=Object()),t.multibody||f.update_transition(65552,{65536:0,16:65552}),f.set_actions(function(oe,ye,xe){switch(xe){case 65536:if(E.meta.cap)break;E.meta.cap=r(u,!1,oe),E.meta.cap.map=[oe,oe+1],E.meta.cap.first=oe===_;break;case 4096:E.meta.sep=a(u,!1,oe),E.meta.sep.map=[oe,oe+1],v.meta.grp|=1,y=16;break;case 256:case 16:v=new u.Token("tr_open","tr",1),v.map=[oe,oe+1],v.meta=o(u,!1,oe),v.meta.type=xe,v.meta.grp=y,y=0,E.meta.tr.push(v),t.multiline&&(v.meta.multiline&&b<0?b=E.meta.tr.length-1:!v.meta.multiline&&b>=0&&(g=E.meta.tr[b],g.meta.mbounds=E.meta.tr.slice(b).map(function(le){return le.meta.bounds}),g.map[1]=v.map[1],E.meta.tr=E.meta.tr.slice(0,b+1),b=-1));break;case 1:v.meta.grp|=1,y=16;break}}),f.execute(_,m)===!1)||!E.meta.tr.length)return!1;if(h)return!0;if(E.meta.tr[E.meta.tr.length-1].meta.grp|=1,E.map=I=[_,0],E.block=!0,E.level=u.level++,u.tokens.push(E),E.meta.cap){g=u.push("caption_open","caption",1),g.map=E.meta.cap.map;var Y=[],ne=E.meta.cap.first?"top":"bottom";E.meta.cap.label!==null&&Y.push(["id",E.meta.cap.label]),ne!=="top"&&Y.push(["style","caption-side: "+ne]),g.attrs=Y,g=u.push("inline","",0),g.content=E.meta.cap.text,g.map=E.meta.cap.map,g.children=[],g=u.push("caption_close","caption",-1)}for(ee=0;ee<E.meta.tr.length;ee++){for(R=new u.Token("td_th_placeholder","",0),v=E.meta.tr[ee],v.meta.grp&16&&(M=v.meta.type===256?"thead":"tbody",g=u.push(M+"_open",M,1),g.map=x=[v.map[0],0],A=[]),v.block=!0,v.level=u.level++,u.tokens.push(v),O=0;O<v.meta.bounds.length-1;O++){if(V=[v.meta.bounds[O]+1,v.meta.bounds[O+1]],G=u.src.slice.apply(u.src,V),G===""){S=R.attrGet("colspan"),R.attrSet("colspan",S===null?2:S+1);continue}if(t.rowspan&&A[O]&&G.trim()==="^^"){C=A[O].attrGet("rowspan"),A[O].attrSet("rowspan",C===null?2:C+1),R=new u.Token("td_th_placeholder","",0);continue}if(M=v.meta.type===256?"th":"td",g=u.push(M+"_open",M,1),g.map=v.map,g.attrs=[],E.meta.sep.aligns[O]&&g.attrs.push(["style","text-align:"+E.meta.sep.aligns[O]]),E.meta.sep.wraps[O]&&g.attrs.push(["class","extend"]),R=A[O]=g,t.multiline&&v.meta.multiline&&v.meta.mbounds){for(G=new Array(v.map[0]).fill("").concat([G.trimRight()]),H=1;H<v.meta.mbounds.length;H++)O>v.meta.mbounds[H].length-2||(V=[v.meta.mbounds[H][O]+1,v.meta.mbounds[H][O+1]],G.push(u.src.slice.apply(u.src,V).trimRight()));for(L=new u.md.block.State(G.join(`
+`),u.md,u.env,[]),L.level=v.level+1,u.md.block.tokenize(L,v.map[0],L.lineMax),q=0;q<L.tokens.length;q++)u.tokens.push(L.tokens[q])}else g=u.push("inline","",0),g.content=G.trim(),g.map=v.map,g.level=v.level+1,g.children=[];g=u.push(M+"_close",M,-1)}u.push("tr_close","tr",-1),v.meta.grp&1&&(M=v.meta.type===256?"thead":"tbody",g=u.push(M+"_close",M,-1),x[1]=v.map[1])}return I[1]=Math.max(x[1],E.meta.sep.map[1],E.meta.cap?E.meta.cap.map[1]:-1),g=u.push("table_close","table",-1),u.line=I[1],!0}e.block.ruler.at("table",d,{alt:["paragraph","reference"]})};const Xqe=Rr(Qqe);var Zqe=function(e,t){t=t||{};function i(s){for(var r=1,o=1,a=s.tokens.length;o<a-1;++o){var c=s.tokens[o];if(c.type==="inline"&&!(!c.children||c.children.length!==1&&c.children.length!==3)&&!(c.children.length===1&&c.children[0].type!=="image")&&!(c.children.length===3&&(c.children[0].type!=="link_open"||c.children[1].type!=="image"||c.children[2].type!=="link_close"))&&!(o!==0&&s.tokens[o-1].type!=="paragraph_open")&&!(o!==a-1&&s.tokens[o+1].type!=="paragraph_close")){var d=s.tokens[o-1];d.type="figure_open",d.tag="figure",s.tokens[o+1].type="figure_close",s.tokens[o+1].tag="figure",t.dataType==!0&&s.tokens[o-1].attrPush(["data-type","image"]);var u;if(t.link==!0&&c.children.length===1&&(u=c.children[0],c.children.unshift(new s.Token("link_open","a",1)),c.children[0].attrPush(["href",u.attrGet("src")]),c.children.push(new s.Token("link_close","a",-1))),u=c.children.length===1?c.children[0]:c.children[1],t.figcaption==!0&&u.children&&u.children.length&&(c.children.push(new s.Token("figcaption_open","figcaption",1)),c.children.splice(c.children.length,0,...u.children),c.children.push(new s.Token("figcaption_close","figcaption",-1)),u.children.length=0),t.copyAttrs&&u.attrs){const _=t.copyAttrs===!0?"":t.copyAttrs;d.attrs=u.attrs.filter(([m,h])=>m.match(_))}t.tabindex==!0&&(s.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazyLoading==!0&&u.attrPush(["loading","lazy"])}}}e.core.ruler.before("linkify","implicit_figures",i)};const Jqe=Rr(Zqe),eYe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Ar={};Ar.getAttrs=function(n,e,t){const i=/[^\t\n\f />"'=]/,s=" ",r="=",o=".",a="#",c=[];let d="",u="",_=!0,m=!1;for(let h=e+t.leftDelimiter.length;h<n.length;h++){if(n.slice(h,h+t.rightDelimiter.length)===t.rightDelimiter){d!==""&&c.push([d,u]);break}const f=n.charAt(h);if(f===r&&_){_=!1;continue}if(f===o&&d===""){n.charAt(h+1)===o?(d="css-module",h+=1):d="class",_=!1;continue}if(f===a&&d===""){d="id",_=!1;continue}if(f==='"'&&u===""&&!m){m=!0;continue}if(f==='"'&&m){m=!1;continue}if(f===s&&!m){if(d==="")continue;c.push([d,u]),d="",u="",_=!0;continue}if(!(_&&f.search(i)===-1)){if(_){d+=f;continue}u+=f}}if(t.allowedAttributes&&t.allowedAttributes.length){const h=t.allowedAttributes;return c.filter(function(f){const y=f[0];function b(g){return y===g||g instanceof RegExp&&g.test(y)}return h.some(b)})}return c};Ar.addAttrs=function(n,e){for(let t=0,i=n.length;t<i;++t){const s=n[t][0];s==="class"?e.attrJoin("class",n[t][1]):s==="css-module"?e.attrJoin("css-module",n[t][1]):e.attrPush(n[t])}return e};Ar.hasDelimiters=function(n,e){if(!n)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(t){const i=e.leftDelimiter.length+1+e.rightDelimiter.length;if(!t||typeof t!="string"||t.length<i)return!1;function s(u){const _=u.charAt(e.leftDelimiter.length)===".",m=u.charAt(e.leftDelimiter.length)==="#";return _||m?u.length>=i+1:u.length>=i}let r,o,a,c;const d=i-e.rightDelimiter.length;switch(n){case"start":a=t.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,o=r===-1?-1:t.indexOf(e.rightDelimiter,d),c=t.charAt(o+e.rightDelimiter.length),c&&e.rightDelimiter.indexOf(c)!==-1&&(o=-1);break;case"end":r=t.lastIndexOf(e.leftDelimiter),o=r===-1?-1:t.indexOf(e.rightDelimiter,r+d),o=o===t.length-e.rightDelimiter.length?o:-1;break;case"only":a=t.slice(0,e.leftDelimiter.length),r=a===e.leftDelimiter?0:-1,a=t.slice(t.length-e.rightDelimiter.length),o=a===e.rightDelimiter?t.length-e.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${n}, expected 'start', 'end' or 'only'`)}return r!==-1&&o!==-1&&s(t.substring(r,o+e.rightDelimiter.length))}};Ar.removeDelimiter=function(n,e){const t=ob(e.leftDelimiter),i=ob(e.rightDelimiter),s=new RegExp("[ \\n]?"+t+"[^"+t+i+"]+"+i+"$"),r=n.search(s);return r!==-1?n.slice(0,r):n};function ob(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}Ar.escapeRegExp=ob;Ar.getMatchingOpeningToken=function(n,e){if(n[e].type==="softbreak")return!1;if(n[e].nesting===0)return n[e];const t=n[e].level,i=n[e].type.replace("_close","_open");for(;e>=0;--e)if(n[e].type===i&&n[e].level===t)return n[e];return!1};const tYe=/[&<>"]/,nYe=/[&<>"]/g,iYe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function sYe(n){return iYe[n]}Ar.escapeHtml=function(n){return tYe.test(n)?n.replace(nYe,sYe):n};const Ct=Ar;var rYe=n=>{const e=new RegExp("^ {0,3}[-*_]{3,} ?"+Ct.escapeRegExp(n.leftDelimiter)+"[^"+Ct.escapeRegExp(n.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:Ct.hasDelimiters("end",n)}],transform:(t,i)=>{const s=t[i],r=s.info.lastIndexOf(n.leftDelimiter),o=Ct.getAttrs(s.info,r,n);Ct.addAttrs(o,s),s.info=Ct.removeDelimiter(s.info,n)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:t=>t==="image"||t==="code_inline"},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content.indexOf(n.rightDelimiter),a=t[i].children[s-1],c=Ct.getAttrs(r.content,0,n);Ct.addAttrs(c,a),r.content.length===o+n.rightDelimiter.length?t[i].children.splice(s,1):r.content=r.content.slice(o+n.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n)}],transform:(t,i)=>{const s=t[i+2],r=Ct.getMatchingOpeningToken(t,i),o=Ct.getAttrs(s.content,0,n);Ct.addAttrs(o,r),t.splice(i+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:Ct.hasDelimiters("start",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content,a=Ct.getAttrs(o,0,n),c=Ct.getMatchingOpeningToken(t[i].children,s-1);Ct.addAttrs(a,c),r.content=o.slice(o.indexOf(n.rightDelimiter)+n.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,i,s)=>{const o=t[i].children[s].content,a=Ct.getAttrs(o,0,n);let c=i-2;for(;t[c-1]&&t[c-1].type!=="ordered_list_open"&&t[c-1].type!=="bullet_list_open";)c--;Ct.addAttrs(a,t[c-1]),t[i].children=t[i].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:t=>t==="bullet_list_close"||t==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:Ct.hasDelimiters("only",n),children:t=>t.length===1},{shift:3,type:"paragraph_close"}],transform:(t,i)=>{const r=t[i+2].content,o=Ct.getAttrs(r,0,n),a=Ct.getMatchingOpeningToken(t,i);Ct.addAttrs(o,a),t.splice(i+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:Ct.hasDelimiters("end",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);Ct.addAttrs(a,t[i-2]);const c=o.slice(0,o.lastIndexOf(n.leftDelimiter));r.content=sS(c)!==" "?c:c.slice(0,-1)}},{name:`
+{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:Ct.hasDelimiters("only",n)}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=Ct.getAttrs(r.content,0,n);let a=i+1;for(;t[a+1]&&t[a+1].nesting===-1;)a++;const c=Ct.getMatchingOpeningToken(t,a);Ct.addAttrs(o,c),t[i].children=t[i].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:t=>t.length===1,content:t=>t.match(e)!==null},{shift:2,type:"paragraph_close"}],transform:(t,i)=>{const s=t[i];s.type="hr",s.tag="hr",s.nesting=0;const r=t[i+1].content,o=r.lastIndexOf(n.leftDelimiter),a=Ct.getAttrs(r,o,n);Ct.addAttrs(a,s),s.markup=r,t.splice(i+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:Ct.hasDelimiters("end",n),type:t=>t!=="code_inline"&&t!=="math_inline"}]}],transform:(t,i,s)=>{const r=t[i].children[s],o=r.content,a=Ct.getAttrs(o,o.lastIndexOf(n.leftDelimiter),n);let c=i+1;do if(t[c]&&t[c].nesting===-1)break;while(c++<t.length);const d=Ct.getMatchingOpeningToken(t,c);Ct.addAttrs(a,d);const u=o.slice(0,o.lastIndexOf(n.leftDelimiter));r.content=sS(u)!==" "?u:u.slice(0,-1)}}]};function sS(n){return n.slice(-1)[0]}const oYe=rYe,aYe={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var lYe=function(e,t){let i=Object.assign({},aYe);i=Object.assign(i,t);const s=oYe(i);function r(o){const a=o.tokens;for(let c=0;c<a.length;c++)for(let d=0;d<s.length;d++){const u=s[d];let _=null;u.tests.every(h=>{const f=ab(a,c,h);return f.j!==null&&(_=f.j),f.match})&&(u.transform(a,c,_),(u.name==="inline attributes"||u.name==="inline nesting 0")&&d--)}}e.core.ruler.before("linkify","curly_attributes",r)};function ab(n,e,t){const i={match:!1,j:null},s=t.shift!==void 0?e+t.shift:t.position;if(t.shift!==void 0&&s<0)return i;const r=uYe(n,s);if(r===void 0)return i;for(const o of Object.keys(t))if(!(o==="shift"||o==="position")){if(r[o]===void 0)return i;if(o==="children"&&cYe(t.children)){if(r.children.length===0)return i;let a;const c=t.children,d=r.children;if(c.every(u=>u.position!==void 0)){if(a=c.every(u=>ab(d,u.position,u).match),a){const u=pYe(c).position;i.j=u>=0?u:d.length+u}}else for(let u=0;u<d.length;u++)if(a=c.every(_=>ab(d,u,_).match),a){i.j=u;break}if(a===!1)return i;continue}switch(typeof t[o]){case"boolean":case"number":case"string":if(r[o]!==t[o])return i;break;case"function":if(!t[o](r[o]))return i;break;case"object":if(dYe(t[o])){if(t[o].every(c=>c(r[o]))===!1)return i;break}default:throw new Error(`Unknown type of pattern test (key: ${o}). Test should be of type boolean, number, string, function or array of functions.`)}}return i.match=!0,i}function cYe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="object")}function dYe(n){return Array.isArray(n)&&n.length&&n.every(e=>typeof e=="function")}function uYe(n,e){return e>=0?n[e]:n[n.length+e]}function pYe(n){return n.slice(-1)[0]||{}}const fYe=Rr(lYe);function yM(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&yM(t)}),n}let rS=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function EM(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function pr(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const s in i)t[s]=i[s]}),t}const _Ye="</span>",oS=n=>!!n.scope,mYe=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,s)=>`${i}${"_".repeat(s+1)}`)].join(" ")}return`${e}${n}`};class hYe{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=EM(e)}openNode(e){if(!oS(e))return;const t=mYe(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){oS(e)&&(this.buffer+=_Ye)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const aS=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class R0{constructor(){this.rootNode=aS(),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){const t=aS({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(i=>this._walk(e,i)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{R0._collapse(t)}))}}class gYe extends R0{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new hYe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function $l(n){return n?typeof n=="string"?n:n.source:null}function vM(n){return yo("(?=",n,")")}function bYe(n){return yo("(?:",n,")*")}function yYe(n){return yo("(?:",n,")?")}function yo(...n){return n.map(t=>$l(t)).join("")}function EYe(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function A0(...n){return"("+(EYe(n).capture?"":"?:")+n.map(i=>$l(i)).join("|")+")"}function SM(n){return new RegExp(n.toString()+"|").exec("").length-1}function vYe(n,e){const t=n&&n.exec(e);return t&&t.index===0}const SYe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M0(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let r=$l(i),o="";for(;r.length>0;){const a=SYe.exec(r);if(!a){o+=r;break}o+=r.substring(0,a.index),r=r.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+s):(o+=a[0],a[0]==="("&&t++)}return o}).map(i=>`(${i})`).join(e)}const TYe=/\b\B/,TM="[a-zA-Z]\\w*",N0="[a-zA-Z_]\\w*",xM="\\b\\d+(\\.\\d+)?",CM="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",wM="\\b(0b[01]+)",xYe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",CYe=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=yo(e,/.*\b/,n.binary,/\b.*/)),pr({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Wl={begin:"\\\\[\\s\\S]",relevance:0},wYe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Wl]},RYe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Wl]},AYe={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/},ap=function(n,e,t={}){const i=pr({scope:"comment",begin:n,end:e,contains:[]},t);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const s=A0("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 i.contains.push({begin:yo(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},MYe=ap("//","$"),NYe=ap("/\\*","\\*/"),OYe=ap("#","$"),IYe={scope:"number",begin:xM,relevance:0},kYe={scope:"number",begin:CM,relevance:0},DYe={scope:"number",begin:wM,relevance:0},LYe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Wl,{begin:/\[/,end:/\]/,relevance:0,contains:[Wl]}]},PYe={scope:"title",begin:TM,relevance:0},FYe={scope:"title",begin:N0,relevance:0},UYe={begin:"\\.\\s*"+N0,relevance:0},BYe=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Lc=Object.freeze({__proto__:null,APOS_STRING_MODE:wYe,BACKSLASH_ESCAPE:Wl,BINARY_NUMBER_MODE:DYe,BINARY_NUMBER_RE:wM,COMMENT:ap,C_BLOCK_COMMENT_MODE:NYe,C_LINE_COMMENT_MODE:MYe,C_NUMBER_MODE:kYe,C_NUMBER_RE:CM,END_SAME_AS_BEGIN:BYe,HASH_COMMENT_MODE:OYe,IDENT_RE:TM,MATCH_NOTHING_RE:TYe,METHOD_GUARD:UYe,NUMBER_MODE:IYe,NUMBER_RE:xM,PHRASAL_WORDS_MODE:AYe,QUOTE_STRING_MODE:RYe,REGEXP_MODE:LYe,RE_STARTERS_RE:xYe,SHEBANG:CYe,TITLE_MODE:PYe,UNDERSCORE_IDENT_RE:N0,UNDERSCORE_TITLE_MODE:FYe});function GYe(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function VYe(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function zYe(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=GYe,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function HYe(n,e){Array.isArray(n.illegal)&&(n.illegal=A0(...n.illegal))}function qYe(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function YYe(n,e){n.relevance===void 0&&(n.relevance=1)}const $Ye=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=yo(t.beforeMatch,vM(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},WYe=["of","and","for","in","not","or","if","then","parent","list","value"],KYe="keyword";function RM(n,e,t=KYe){const i=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(r){Object.assign(i,RM(n[r],e,r))}),i;function s(r,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const c=a.split("|");i[c[0]]=[r,jYe(c[0],c[1])]})}}function jYe(n,e){return e?Number(e):QYe(n)?0:1}function QYe(n){return WYe.includes(n.toLowerCase())}const lS={},eo=n=>{console.error(n)},cS=(n,...e)=>{console.log(`WARN: ${n}`,...e)},wo=(n,e)=>{lS[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),lS[`${n}/${e}`]=!0)},eu=new Error;function AM(n,e,{key:t}){let i=0;const s=n[t],r={},o={};for(let a=1;a<=e.length;a++)o[a+i]=s[a],r[a+i]=!0,i+=SM(e[a-1]);n[t]=o,n[t]._emit=r,n[t]._multi=!0}function XYe(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw eo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),eu;if(typeof n.beginScope!="object"||n.beginScope===null)throw eo("beginScope must be object"),eu;AM(n,n.begin,{key:"beginScope"}),n.begin=M0(n.begin,{joinWith:""})}}function ZYe(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw eo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),eu;if(typeof n.endScope!="object"||n.endScope===null)throw eo("endScope must be object"),eu;AM(n,n.end,{key:"endScope"}),n.end=M0(n.end,{joinWith:""})}}function JYe(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function e$e(n){JYe(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),XYe(n),ZYe(n)}function t$e(n){function e(o,a){return new RegExp($l(o),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,a]),this.matchAt+=SM(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(c=>c[1]);this.matcherRe=e(M0(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(a);if(!c)return null;const d=c.findIndex((_,m)=>m>0&&_!==void 0),u=this.matchIndexes[d];return c.splice(0,d),Object.assign(c,u)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const c=new t;return this.rules.slice(a).forEach(([d,u])=>c.addRule(d,u)),c.compile(),this.multiRegexes[a]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,c){this.rules.push([a,c]),c.type==="begin"&&this.count++}exec(a){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let d=c.exec(a);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,d=u.exec(a)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function s(o){const a=new i;return o.contains.forEach(c=>a.addRule(c.begin,{rule:c,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function r(o,a){const c=o;if(o.isCompiled)return c;[VYe,qYe,e$e,$Ye].forEach(u=>u(o,a)),n.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[zYe,HYe,YYe].forEach(u=>u(o,a)),o.isCompiled=!0;let d=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),d=o.keywords.$pattern,delete o.keywords.$pattern),d=d||/\w+/,o.keywords&&(o.keywords=RM(o.keywords,n.case_insensitive)),c.keywordPatternRe=e(d,!0),a&&(o.begin||(o.begin=/\B|\b/),c.beginRe=e(c.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(c.endRe=e(c.end)),c.terminatorEnd=$l(c.end)||"",o.endsWithParent&&a.terminatorEnd&&(c.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(c.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return n$e(u==="self"?o:u)})),o.contains.forEach(function(u){r(u,c)}),o.starts&&r(o.starts,a),c.matcher=s(c),c}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return n.classNameAliases=pr(n.classNameAliases||{}),r(n)}function MM(n){return n?n.endsWithParent||MM(n.starts):!1}function n$e(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return pr(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:MM(n)?pr(n,{starts:n.starts?pr(n.starts):null}):Object.isFrozen(n)?pr(n):n}var i$e="11.10.0";class s$e extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ff=EM,dS=pr,uS=Symbol("nomatch"),r$e=7,NM=function(n){const e=Object.create(null),t=Object.create(null),i=[];let s=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:gYe};function c(L){return a.noHighlightRe.test(L)}function d(L){let Y=L.className+" ";Y+=L.parentNode?L.parentNode.className:"";const ne=a.languageDetectRe.exec(Y);if(ne){const oe=x(ne[1]);return oe||(cS(r.replace("{}",ne[1])),cS("Falling back to no-highlight mode for this block.",L)),oe?ne[1]:"no-highlight"}return Y.split(/\s+/).find(oe=>c(oe)||x(oe))}function u(L,Y,ne){let oe="",ye="";typeof Y=="object"?(oe=L,ne=Y.ignoreIllegals,ye=Y.language):(wo("10.7.0","highlight(lang, code, ...args) has been deprecated."),wo("10.7.0",`Please use highlight(code, options) instead.
+https://github.com/highlightjs/highlight.js/issues/2277`),ye=L,oe=Y),ne===void 0&&(ne=!0);const xe={code:oe,language:ye};H("before:highlight",xe);const le=xe.result?xe.result:_(xe.language,xe.code,ne);return le.code=xe.code,H("after:highlight",le),le}function _(L,Y,ne,oe){const ye=Object.create(null);function xe(j,se){return j.keywords[se]}function le(){if(!ae.keywords){Re.addText(ge);return}let j=0;ae.keywordPatternRe.lastIndex=0;let se=ae.keywordPatternRe.exec(ge),Ce="";for(;se;){Ce+=ge.substring(j,se.index);const we=ce.case_insensitive?se[0].toLowerCase():se[0],ke=xe(ae,we);if(ke){const[We,lt]=ke;if(Re.addText(Ce),Ce="",ye[we]=(ye[we]||0)+1,ye[we]<=r$e&&(D+=lt),We.startsWith("_"))Ce+=se[0];else{const Pe=ce.classNameAliases[We]||We;De(se[0],Pe)}}else Ce+=se[0];j=ae.keywordPatternRe.lastIndex,se=ae.keywordPatternRe.exec(ge)}Ce+=ge.substring(j),Re.addText(Ce)}function ve(){if(ge==="")return;let j=null;if(typeof ae.subLanguage=="string"){if(!e[ae.subLanguage]){Re.addText(ge);return}j=_(ae.subLanguage,ge,!0,Me[ae.subLanguage]),Me[ae.subLanguage]=j._top}else j=h(ge,ae.subLanguage.length?ae.subLanguage:null);ae.relevance>0&&(D+=j.relevance),Re.__addSublanguage(j._emitter,j.language)}function Oe(){ae.subLanguage!=null?ve():le(),ge=""}function De(j,se){j!==""&&(Re.startScope(se),Re.addText(j),Re.endScope())}function Q(j,se){let Ce=1;const we=se.length-1;for(;Ce<=we;){if(!j._emit[Ce]){Ce++;continue}const ke=ce.classNameAliases[j[Ce]]||j[Ce],We=se[Ce];ke?De(We,ke):(ge=We,le(),ge=""),Ce++}}function fe(j,se){return j.scope&&typeof j.scope=="string"&&Re.openNode(ce.classNameAliases[j.scope]||j.scope),j.beginScope&&(j.beginScope._wrap?(De(ge,ce.classNameAliases[j.beginScope._wrap]||j.beginScope._wrap),ge=""):j.beginScope._multi&&(Q(j.beginScope,se),ge="")),ae=Object.create(j,{parent:{value:ae}}),ae}function _e(j,se,Ce){let we=vYe(j.endRe,Ce);if(we){if(j["on:end"]){const ke=new rS(j);j["on:end"](se,ke),ke.isMatchIgnored&&(we=!1)}if(we){for(;j.endsParent&&j.parent;)j=j.parent;return j}}if(j.endsWithParent)return _e(j.parent,se,Ce)}function Ae(j){return ae.matcher.regexIndex===0?(ge+=j[0],1):(me=!0,0)}function Fe(j){const se=j[0],Ce=j.rule,we=new rS(Ce),ke=[Ce.__beforeBegin,Ce["on:begin"]];for(const We of ke)if(We&&(We(j,we),we.isMatchIgnored))return Ae(se);return Ce.skip?ge+=se:(Ce.excludeBegin&&(ge+=se),Oe(),!Ce.returnBegin&&!Ce.excludeBegin&&(ge=se)),fe(Ce,j),Ce.returnBegin?0:se.length}function te(j){const se=j[0],Ce=Y.substring(j.index),we=_e(ae,j,Ce);if(!we)return uS;const ke=ae;ae.endScope&&ae.endScope._wrap?(Oe(),De(se,ae.endScope._wrap)):ae.endScope&&ae.endScope._multi?(Oe(),Q(ae.endScope,j)):ke.skip?ge+=se:(ke.returnEnd||ke.excludeEnd||(ge+=se),Oe(),ke.excludeEnd&&(ge=se));do ae.scope&&Re.closeNode(),!ae.skip&&!ae.subLanguage&&(D+=ae.relevance),ae=ae.parent;while(ae!==we.parent);return we.starts&&fe(we.starts,j),ke.returnEnd?0:se.length}function U(){const j=[];for(let se=ae;se!==ce;se=se.parent)se.scope&&j.unshift(se.scope);j.forEach(se=>Re.openNode(se))}let P={};function Z(j,se){const Ce=se&&se[0];if(ge+=j,Ce==null)return Oe(),0;if(P.type==="begin"&&se.type==="end"&&P.index===se.index&&Ce===""){if(ge+=Y.slice(se.index,se.index+1),!s){const we=new Error(`0 width match regex (${L})`);throw we.languageName=L,we.badRule=P.rule,we}return 1}if(P=se,se.type==="begin")return Fe(se);if(se.type==="illegal"&&!ne){const we=new Error('Illegal lexeme "'+Ce+'" for mode "'+(ae.scope||"<unnamed>")+'"');throw we.mode=ae,we}else if(se.type==="end"){const we=te(se);if(we!==uS)return we}if(se.type==="illegal"&&Ce==="")return 1;if(K>1e5&&K>se.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ge+=Ce,Ce.length}const ce=x(L);if(!ce)throw eo(r.replace("{}",L)),new Error('Unknown language: "'+L+'"');const pe=t$e(ce);let he="",ae=oe||pe;const Me={},Re=new a.__emitter(a);U();let ge="",D=0,N=0,K=0,me=!1;try{if(ce.__emitTokens)ce.__emitTokens(Y,Re);else{for(ae.matcher.considerAll();;){K++,me?me=!1:ae.matcher.considerAll(),ae.matcher.lastIndex=N;const j=ae.matcher.exec(Y);if(!j)break;const se=Y.substring(N,j.index),Ce=Z(se,j);N=j.index+Ce}Z(Y.substring(N))}return Re.finalize(),he=Re.toHTML(),{language:L,value:he,relevance:D,illegal:!1,_emitter:Re,_top:ae}}catch(j){if(j.message&&j.message.includes("Illegal"))return{language:L,value:ff(Y),illegal:!0,relevance:0,_illegalBy:{message:j.message,index:N,context:Y.slice(N-100,N+100),mode:j.mode,resultSoFar:he},_emitter:Re};if(s)return{language:L,value:ff(Y),illegal:!1,relevance:0,errorRaised:j,_emitter:Re,_top:ae};throw j}}function m(L){const Y={value:ff(L),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return Y._emitter.addText(L),Y}function h(L,Y){Y=Y||a.languages||Object.keys(e);const ne=m(L),oe=Y.filter(x).filter(G).map(Oe=>_(Oe,L,!1));oe.unshift(ne);const ye=oe.sort((Oe,De)=>{if(Oe.relevance!==De.relevance)return De.relevance-Oe.relevance;if(Oe.language&&De.language){if(x(Oe.language).supersetOf===De.language)return 1;if(x(De.language).supersetOf===Oe.language)return-1}return 0}),[xe,le]=ye,ve=xe;return ve.secondBest=le,ve}function f(L,Y,ne){const oe=Y&&t[Y]||ne;L.classList.add("hljs"),L.classList.add(`language-${oe}`)}function y(L){let Y=null;const ne=d(L);if(c(ne))return;if(H("before:highlightElement",{el:L,language:ne}),L.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",L);return}if(L.children.length>0&&(a.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(L)),a.throwUnescapedHTML))throw new s$e("One of your code blocks includes unescaped HTML.",L.innerHTML);Y=L;const oe=Y.textContent,ye=ne?u(oe,{language:ne,ignoreIllegals:!0}):h(oe);L.innerHTML=ye.value,L.dataset.highlighted="yes",f(L,ne,ye.language),L.result={language:ye.language,re:ye.relevance,relevance:ye.relevance},ye.secondBest&&(L.secondBest={language:ye.secondBest.language,relevance:ye.secondBest.relevance}),H("after:highlightElement",{el:L,result:ye,text:oe})}function b(L){a=dS(a,L)}const g=()=>{S(),wo("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function E(){S(),wo("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let v=!1;function S(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(y)}function R(){v&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function C(L,Y){let ne=null;try{ne=Y(n)}catch(oe){if(eo("Language definition for '{}' could not be registered.".replace("{}",L)),s)eo(oe);else throw oe;ne=o}ne.name||(ne.name=L),e[L]=ne,ne.rawDefinition=Y.bind(null,n),ne.aliases&&M(ne.aliases,{languageName:L})}function A(L){delete e[L];for(const Y of Object.keys(t))t[Y]===L&&delete t[Y]}function I(){return Object.keys(e)}function x(L){return L=(L||"").toLowerCase(),e[L]||e[t[L]]}function M(L,{languageName:Y}){typeof L=="string"&&(L=[L]),L.forEach(ne=>{t[ne.toLowerCase()]=Y})}function G(L){const Y=x(L);return Y&&!Y.disableAutodetect}function V(L){L["before:highlightBlock"]&&!L["before:highlightElement"]&&(L["before:highlightElement"]=Y=>{L["before:highlightBlock"](Object.assign({block:Y.el},Y))}),L["after:highlightBlock"]&&!L["after:highlightElement"]&&(L["after:highlightElement"]=Y=>{L["after:highlightBlock"](Object.assign({block:Y.el},Y))})}function ee(L){V(L),i.push(L)}function O(L){const Y=i.indexOf(L);Y!==-1&&i.splice(Y,1)}function H(L,Y){const ne=L;i.forEach(function(oe){oe[ne]&&oe[ne](Y)})}function q(L){return wo("10.7.0","highlightBlock will be removed entirely in v12.0"),wo("10.7.0","Please use highlightElement now."),y(L)}Object.assign(n,{highlight:u,highlightAuto:h,highlightAll:S,highlightElement:y,highlightBlock:q,configure:b,initHighlighting:g,initHighlightingOnLoad:E,registerLanguage:C,unregisterLanguage:A,listLanguages:I,getLanguage:x,registerAliases:M,autoDetection:G,inherit:dS,addPlugin:ee,removePlugin:O}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=i$e,n.regex={concat:yo,lookahead:vM,either:A0,optional:yYe,anyNumberOfTimes:bYe};for(const L in Lc)typeof Lc[L]=="object"&&yM(Lc[L]);return Object.assign(n,Lc),n},_a=NM({});_a.newInstance=()=>NM({});var o$e=_a;_a.HighlightJS=_a;_a.default=_a;var _f,pS;function a$e(){if(pS)return _f;pS=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",r="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",c="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",h="разделительстраниц разделительстрок символтабуляции "+"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 файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",oe="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 типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",le="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 деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",ve="null истина ложь неопределено",Oe=e.inherit(e.NUMBER_MODE),De={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},Q={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},fe={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},_e=e.inherit(e.C_LINE_COMMENT_MODE),Ae={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:r+c},contains:[_e]},Fe={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},te={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:ve},contains:[Oe,De,Q]},_e]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:r,built_in:h,class:oe,type:le,literal:ve},contains:[Ae,te,_e,Fe,Oe,De,Q,fe]}}return _f=n,_f}var mf,fS;function l$e(){if(fS)return mf;fS=1;function n(e){const t=e.regex,i=/^[a-zA-Z][a-zA-Z0-9-]*/,s=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],r=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},c={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},d={scope:"symbol",match:/%[si](?=".*")/},u={scope:"attribute",match:t.concat(i,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:s,contains:[{scope:"operator",match:/=\/?/},u,r,o,a,c,d,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}return mf=n,mf}var hf,_S;function c$e(){if(_S)return hf;_S=1;function n(e){const t=e.regex,i=["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(...i)),end:/"/,keywords:i,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}]}}return hf=n,hf}var gf,mS;function d$e(){if(mS)return gf;mS=1;function n(e){const t=e.regex,i=/[a-zA-Z_$][a-zA-Z0-9_$]*/,s=t.concat(i,t.concat("(\\.",i,")*")),r=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:i,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"],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+/,s],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,i],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,o]},{begin:t.concat(/:\s*/,r)}]},e.METHOD_GUARD],illegal:/#/}}return gf=n,gf}var bf,hS;function u$e(){if(hS)return bf;hS=1;function n(e){const t="\\d(_|\\d)*",i="[eE][-+]?"+t,s=t+"(\\."+t+")?("+i+")?",r="\\w+",a="\\b("+(t+"#"+r+"(\\."+r+")?#("+i+")?")+"|"+s+")",c="[A-Za-z](_?[A-Za-z0-9.])*",d=`[]\\{\\}%#'"`,u=e.COMMENT("--","$"),_={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:d,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,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"],literal:["True","False"]},contains:[u,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:d},{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:[u,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:d},_,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:d}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:d},_]}}return bf=n,bf}var yf,gS;function p$e(){if(gS)return yf;gS=1;function n(e){const 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)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},s={className:"keyword",begin:"<",end:">",contains:[t,i]};return t.contains=[s],i.contains=[s],{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"],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,i,{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?)?)"}]}}return yf=n,yf}var Ef,bS;function f$e(){if(bS)return Ef;bS=1;function n(e){const t={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\b\d+/},s={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},r={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[s,r,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:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},s,i,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}return Ef=n,Ef}var vf,yS;function _$e(){if(yS)return vf;yS=1;function n(e){const t=e.regex,i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,i]},r=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",r]}),a=[r,o,e.HASH_COMMENT_MODE],c=[/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/],d=[/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)/];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:[i,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(...d),/\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(...c),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,s]},...a],illegal:/\/\/|->|=>|\[\[/}}return vf=n,vf}var Sf,ES;function m$e(){if(ES)return Sf;ES=1;function n(e){const t=e.regex,i="[A-Za-z_][0-9A-Za-z_]*",s={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","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","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","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","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","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"]},r=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","value","view"],o={className:"symbol",begin:"\\$"+t.either(...r)},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]};c.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,a,e.REGEXP_MODE];const u=c.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:s,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:i+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:i,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:"(\\(.*?\\)|"+i+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:u}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:i}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:u}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return Sf=n,Sf}var Tf,vS;function h$e(){if(vS)return Tf;vS=1;function n(t){const i=t.regex,s=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",c="(?!struct)("+r+"|"+i.optional(o)+"[a-zA-Z_]\\w*"+i.optional("<[^<>]+>")+")",d={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},_={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.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:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},m={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(_,{className:"string"}),{className:"string",begin:/<.*?>/},s,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:i.optional(o)+t.IDENT_RE,relevance:0},y=i.optional(o)+t.IDENT_RE+"\\s*\\(",b=["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"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],E=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","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"],v=["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"],C={type:g,keyword:b,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:E},A={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:i.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,i.lookahead(/(<[^<>]+>|)\s*\(/))},I=[A,h,d,s,t.C_BLOCK_COMMENT_MODE,m,_],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:I.concat([{begin:/\(/,end:/\)/,keywords:C,contains:I.concat(["self"]),relevance:0}]),relevance:0},M={className:"function",begin:"("+c+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:y,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[_,m]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[s,t.C_BLOCK_COMMENT_MODE,_,m,d,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",s,t.C_BLOCK_COMMENT_MODE,_,m,d]}]},d,s,t.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,M,A,I,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:C,contains:["self",d]},{begin:t.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function e(t){const i={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},s=n(t),r=s.keywords;return r.type=[...r.type,...i.type],r.literal=[...r.literal,...i.literal],r.built_in=[...r.built_in,...i.built_in],r._hints=i._hints,s.name="Arduino",s.aliases=["ino"],s.supersetOf="cpp",s}return Tf=e,Tf}var xf,SS;function g$e(){if(SS)return xf;SS=1;function n(e){const 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}]}}return xf=n,xf}var Cf,TS;function b$e(){if(TS)return Cf;TS=1;function n(e){const t=e.regex,i=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,d,c,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,d,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(i,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return Cf=n,Cf}var wf,xS;function y$e(){if(xS)return wf;xS=1;function n(e){const t=e.regex,i={begin:"^'{3,}[ \\t]*$",relevance:10},s=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],r=[{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]+)\*/}],o=[{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}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},c={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};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},c,a,...s,...r,...o,{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},i,{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}]}}return wf=n,wf}var Rf,CS;function E$e(){if(CS)return Rf;CS=1;function n(e){const t=e.regex,i=["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"],s=["get","set","args","call"];return{name:"AspectJ",keywords:i,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:i.concat(s),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:i,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:i.concat(s),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:i,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:i,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]+/}]}}return Rf=n,Rf}var Af,wS;function v$e(){if(wS)return Af;wS=1;function n(e){const 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*,"}]}}return Af=n,Af}var Mf,RS;function S$e(){if(RS)return Mf;RS=1;function n(e){const t="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",i=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],s="True False And Null Not Or Default",r="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",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},d={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},u={className:"meta",begin:"#",end:"$",keywords:{keyword:i},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[c,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,o]},_={className:"symbol",begin:"@[A-z0-9_]+"},m={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,c,d]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:r,literal:s},contains:[o,a,c,d,u,_,m]}}return Mf=n,Mf}var Nf,AS;function T$e(){if(AS)return Nf;AS=1;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]+"}]}}return Nf=n,Nf}var Of,MS;function x$e(){if(MS)return Of;MS=1;function n(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",s={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]};return{name:"Awk",keywords:{keyword:i},contains:[t,s,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}return Of=n,Of}var If,NS;function C$e(){if(NS)return If;NS=1;function n(e){const t=e.UNDERSCORE_IDENT_RE,o={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"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,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:"$"},a]}}return If=n,If}var kf,OS;function w$e(){if(OS)return kf;OS=1;function n(e){const t=e.regex,i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,r]};r.contains.push(c);const d={match:/\\"/},u={className:"string",begin:/'/,end:/'/},_={match:/\\'/},m={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),y={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],g=["true","false"],E={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],R=["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"],C=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:g,built_in:[...v,...S,"set","shopt",...R,...C]},contains:[f,e.SHEBANG(),y,m,o,a,E,c,d,u,_,i]}}return kf=n,kf}var Df,IS;function R$e(){if(IS)return Df;IS=1;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"]},contains:[e.QUOTE_STRING_MODE,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})"}]}}return Df=n,Df}var Lf,kS;function A$e(){if(kS)return Lf;kS=1;function n(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}return Lf=n,Lf}var Pf,DS;function M$e(){if(DS)return Pf;DS=1;function n(e){const 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]}}return Pf=n,Pf}var Ff,LS;function N$e(){if(LS)return Ff;LS=1;function n(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",a="("+s+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={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})"/})]},_={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},m={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(u,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},f=t.optional(r)+e.IDENT_RE+"\\s*\\(",g={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},E=[m,c,i,e.C_BLOCK_COMMENT_MODE,_,u],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:E.concat([{begin:/\(/,end:/\)/,keywords:g,contains:E.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:g,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,i,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(v,S,E,[m,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:m,strings:u,keywords:g}}}return Ff=n,Ff}var Uf,PS;function O$e(){if(PS)return Uf;PS=1;function n(e){const t=e.regex,i=["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"],s="false true",r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},c={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},d={className:"string",begin:'"',end:'"'},u={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:[o,a,e.NUMBER_MODE]},...r]},_=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],m={match:[/OBJECT/,/\s+/,t.either(..._),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:i,literal:s},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},o,a,c,d,e.NUMBER_MODE,m,u]}}return Uf=n,Uf}var Bf,FS;function I$e(){if(FS)return Bf;FS=1;function n(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],i=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],s=["true","false"],r={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:i,literal:s},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/},r]}}return Bf=n,Bf}var Gf,US;function k$e(){if(US)return Gf;US=1;function n(e){const 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"],i=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],s=["doc","by","license","see","throws","tagged"],r={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[r]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return r.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(i),meta:s},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}return Gf=n,Gf}var Vf,BS;function D$e(){if(BS)return Vf;BS=1;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"],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:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return Vf=n,Vf}var zf,GS;function L$e(){if(GS)return zf;GS=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&'",i="[#]?["+t+"]["+t+"0-9/;:$#]*",s="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",r={$pattern:i,built_in:s+" 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"},o={begin:i,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?/}]},c={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}]},d={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),_={scope:"punctuation",match:/,/,relevance:0},m=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},f={begin:"\\[|(#::?"+i+")?\\{",end:"[\\]\\}]",relevance:0},y={className:"symbol",begin:"[:]{1,2}"+i},b={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},E={keywords:r,className:"name",begin:i,relevance:0,starts:g},v=[_,b,c,d,u,m,y,f,a,h,o],S={beginKeywords:s,keywords:{$pattern:i,keyword:s},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(v)};return b.contains=[S,E,g],g.contains=v,f.contains=v,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[_,b,c,d,u,m,y,f,a,h]}}return zf=n,zf}var Hf,VS;function P$e(){if(VS)return Hf;VS=1;function n(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return Hf=n,Hf}var qf,zS;function F$e(){if(zS)return qf;zS=1;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]}}return qf=n,qf}var Yf,HS;function U$e(){if(HS)return Yf;HS=1;const 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"],e=["true","false","null","undefined","NaN","Infinity"],t=["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"],i=["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"],r=[].concat(s,t,i);function o(a){const c=["npm","print"],d=["yes","no","on","off"],u=["then","unless","until","loop","by","when","and","or","is","isnt","not"],_=["var","const","let","function","static"],m=R=>C=>!R.includes(C),h={keyword:n.concat(u).filter(m(_)),literal:e.concat(d),built_in:r.concat(c)},f="[A-Za-z$_][0-9A-Za-z$_]*",y={className:"subst",begin:/#\{/,end:/\}/,keywords:h},b=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,y]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,y]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[y,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+f},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];y.contains=b;const g=a.inherit(a.TITLE_MODE,{begin:f}),E="(\\(.*\\)\\s*)?\\B[-=]>",v={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:h,contains:["self"].concat(b)}]},S={variants:[{match:[/class\s+/,f,/\s+extends\s+/,f]},{match:[/class\s+/,f]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:h};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:h,illegal:/\/\*/,contains:[...b,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+f+"\\s*=\\s*"+E,end:"[-=]>",returnBegin:!0,contains:[g,v]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:E,end:"[-=]>",returnBegin:!0,contains:[v]}]},S,{begin:f+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return Yf=o,Yf}var $f,qS;function B$e(){if(qS)return $f;qS=1;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"],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"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return $f=n,$f}var Wf,YS;function G$e(){if(YS)return Wf;YS=1;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)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}return Wf=n,Wf}var Kf,$S;function V$e(){if($S)return Kf;$S=1;function n(e){const t=e.regex,i=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),s="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",a="(?!struct)("+s+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={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})"/})]},_={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},m={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(u,{className:"string"}),{className:"string",begin:/<.*?>/},i,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},f=t.optional(r)+e.IDENT_RE+"\\s*\\(",y=["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"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","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"],E=["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"],R={type:b,keyword:y,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},C={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[C,m,c,i,e.C_BLOCK_COMMENT_MODE,_,u],I={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:R,contains:A.concat([{begin:/\(/,end:/\)/,keywords:R,contains:A.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:R,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:R,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,_]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:[i,e.C_BLOCK_COMMENT_MODE,u,_,c,{begin:/\(/,end:/\)/,keywords:R,relevance:0,contains:["self",i,e.C_BLOCK_COMMENT_MODE,u,_,c]}]},c,i,e.C_BLOCK_COMMENT_MODE,m]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:R,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(I,x,C,A,[m,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:R,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:R},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return Kf=n,Kf}var jf,WS;function z$e(){if(WS)return jf;WS=1;function n(e){const t="primitive rsc_template",i="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:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,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:"</?",end:"/?>",relevance:0}]}}return jf=n,jf}var Qf,KS;function H$e(){if(KS)return Qf;KS=1;function n(e){const t="(_?[ui](8|16|32|64|128))?",i="(_?f(32|64))?",s="[a-zA-Z_]\\w*[!?=]?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:s,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"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function _(E,v){const S=[{begin:E,end:v}];return S[0].contains=S,S}const m={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:_("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%q<",end:">",contains:_("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={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,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},y={className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:_("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:_("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:_(/\{/,/\}/)},{begin:"%r<",end:">",contains:_("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},b={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[u,m,h,y,f,b,d,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:r,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[m,{begin:r}],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_]*)?"+i+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return c.contains=g,u.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:g}}return Qf=n,Qf}var Xf,jS;function q$e(){if(jS)return Xf;jS=1;function n(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],s=["default","false","null","true"],r=["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"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:r.concat(o),built_in:t,literal:s},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),d={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},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},_={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},m=e.inherit(_,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(h,{illegal:/\n/}),y={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},g=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});h.contains=[b,y,_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.C_BLOCK_COMMENT_MODE],f.contains=[g,y,m,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[u,b,y,_,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},S=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",R={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},E,d,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+S+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,d,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},R]}}return Xf=n,Xf}var Zf,QS;function Y$e(){if(QS)return Zf;QS=1;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}]}}return Zf=n,Zf}var Jf,XS;function $$e(){if(XS)return Jf;XS=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=d.regex,_=n(d),m={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},h="and or not only",f=/@-?\w[\w]*(-\w+)*/,y="[a-zA-Z-][a-zA-Z0-9_-]*",b=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[_.BLOCK_COMMENT,m,_.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+y,relevance:0},_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+r.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[_.BLOCK_COMMENT,_.HEXCOLOR,_.IMPORTANT,_.CSS_NUMBER_MODE,...b,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...b,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},_.FUNCTION_DISPATCH]},{begin:u.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:f},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:h,attribute:s.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...b,_.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b"}]}}return Jf=c,Jf}var e_,ZS;function W$e(){if(ZS)return e_;ZS=1;function n(e){const 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"},i="(0|[1-9][\\d_]*)",s="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",r="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,c="([eE][+-]?"+s+")",d="("+s+"(\\.\\d*|"+c+")|\\d+\\."+s+"|\\."+i+c+"?)",u="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+s+")",_="("+i+"|"+r+"|"+a+")",m="("+u+"|"+d+")",h=`\\\\(['"\\?\\\\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,};`,f={className:"number",begin:"\\b"+_+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},y={className:"number",begin:"\\b("+m+"([fF]|L|i|[fF]i|Li)?|"+_+"(i|[fF]i|Li))",relevance:0},b={className:"string",begin:"'("+h+"|.)",end:"'",illegal:"."},E={className:"string",begin:'"',contains:[{begin:h,relevance:0}],end:'"[cwd]?'},v={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},S={className:"string",begin:"`",end:"`[cwd]?"},R={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},A={className:"meta",begin:"^#!",end:"$",relevance:5},I={className:"meta",begin:"#(line)",end:"$",relevance:5},x={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},M=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,M,R,E,v,S,C,y,f,b,A,I,x]}}return e_=n,e_}var t_,JS;function K$e(){if(JS)return t_;JS=1;function n(e){const t=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},s={begin:"^[-\\*]{3,}",end:"$"},r={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}]},o={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),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}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},_={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},m=e.inherit(u,{contains:[]}),h=e.inherit(_,{contains:[]});u.contains.push(h),_.contains.push(m);let f=[i,d];return[u,_,m,h].forEach(E=>{E.contains=E.contains.concat(f)}),f=f.concat(u,_),{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}]}]},i,o,u,_,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},r,s,d,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return t_=n,t_}var n_,e1;function j$e(){if(e1)return n_;e1=1;function n(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},s={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,i]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,i]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,i]}]};i.contains=[e.C_NUMBER_MODE,s];const r=["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"],o=r.map(d=>`${d}?`);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"],built_in:r.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[s,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]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return n_=n,n_}var i_,t1;function Q$e(){if(t1)return i_;t1=1;function n(e){const 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"],i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={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}]},a={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},c={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},d={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:[r,a,s].concat(i)},s].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,a,o,c,d,s].concat(i)}}return i_=n,i_}var s_,n1;function X$e(){if(n1)return s_;n1=1;function n(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return s_=n,s_}var r_,i1;function Z$e(){if(i1)return r_;i1=1;function n(e){const 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]}]}}return r_=n,r_}var o_,s1;function J$e(){if(s1)return o_;s1=1;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"],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]?/})]}}return o_=n,o_}var a_,r1;function eWe(){if(r1)return a_;r1=1;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:"</"}}return a_=n,a_}var l_,o1;function tWe(){if(o1)return l_;o1=1;function n(e){const 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"]},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]}}return l_=n,l_}var c_,a1;function nWe(){if(a1)return c_;a1=1;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]}}return c_=n,c_}var d_,l1;function iWe(){if(l1)return d_;l1=1;function n(e){const 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:"."}]},i={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},s={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]},r={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",relevance:0,begin:"<",end:">",contains:[i,r]},d={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},u={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},_={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},m={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},h={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[u,r,o,a,d,m,_,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,t,s,h,{begin:e.IDENT_RE+"::",keywords:""}]}}return d_=n,d_}var u_,c1;function sWe(){if(c1)return u_;c1=1;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"}]}}return u_=n,u_}var p_,d1;function rWe(){if(d1)return p_;d1=1;function n(e){const t=e.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,i,r]}}return p_=n,p_}var f_,u1;function oWe(){if(u1)return f_;u1=1;function n(e){const t=e.regex,i="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",s="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:i,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"],literal:["false","nil","true"]},c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={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},_={match:/\\[\s\S]/,scope:"char.escape",relevance:0},m=`[/|([{<"']`,h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],f=C=>({scope:"char.escape",begin:t.concat(/\\/,C),relevance:0}),y={className:"string",begin:"~[a-z](?="+m+")",contains:h.map(C=>e.inherit(C,{contains:[f(C.end),_,c]}))},b={className:"string",begin:"~[A-Z](?="+m+")",contains:h.map(C=>e.inherit(C,{contains:[f(C.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+m+")",contains:h.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[f(C.end),_,c]}))},{begin:"~R(?="+m+")",contains:h.map(C=>e.inherit(C,{end:t.concat(C.end,/[uismxfU]{0,7}/),contains:[f(C.end)]}))}]},E={className:"string",contains:[e.BACKSLASH_ESCAPE,c],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:/"/}]},v={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},S=e.inherit(v,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),R=[E,g,b,y,e.HASH_COMMENT_MODE,S,v,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[E,{begin:s}],relevance:0},{className:"symbol",begin:i+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return c.contains=R,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:R}}return f_=n,f_}var __,p1;function aWe(){if(p1)return __;p1=1;function n(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},r={begin:/\{/,end:/\}/,contains:s.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};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:[s,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[s,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,s,r,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}return __=n,__}var m_,f1;function lWe(){if(f1)return m_;f1=1;function n(e){const t=e.regex,i="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=t.concat(s,/(::\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"]},c={className:"doctag",begin:"@[A-Za-z]+"},d={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],_={className:"subst",begin:/#\{/,end:/\}/,keywords:a},m={className:"string",contains:[e.BACKSLASH_ESCAPE,_],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,_]})]}]},h="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",y={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${f}))?([eE][+-]?(${f})|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"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},A=[m,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:a},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:s,scope:"title.class"},{match:[/def/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[m,{begin:i}],relevance:0},y,{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,_],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(d,u),relevance:0}].concat(d,u);_.contains=A,b.contains=A;const G=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:A}}];return u.unshift(d),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(G).concat(u).concat(A)}}return m_=n,m_}var h_,_1;function cWe(){if(_1)return h_;_1=1;function n(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return h_=n,h_}var g_,m1;function dWe(){if(m1)return g_;m1=1;function n(e){const 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}]}}return g_=n,g_}var b_,h1;function uWe(){if(h1)return b_;h1=1;function n(e){const t="[a-z'][a-zA-Z0-9_']*",i="("+t+":"+t+"|"+t+")",s={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",literal:"false true"},r=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},c={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},d={begin:/\{/,end:/\}/,relevance:0},u={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},_={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},m={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},f={beginKeywords:"fun receive if try case",end:"end",keywords:s};f.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),f,c,e.QUOTE_STRING_MODE,o,d,u,_,m,h];const y=[r,a,f,c,e.QUOTE_STRING_MODE,o,d,u,_,m,h];c.contains[1].contains=y,d.contains=y,m.contains[1].contains=y;const b=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],g={className:"params",begin:"\\(",end:"\\)",contains:y};return{name:"Erlang",aliases:["erl"],keywords:s,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[g,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:s,contains:y}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:b.map(E=>`${E}|1.5`).join(" ")},contains:[g]},o,e.QUOTE_STRING_MODE,m,u,_,d,h,{begin:/\.$/}]}}return b_=n,b_}var y_,g1;function pWe(){if(g1)return y_;g1=1;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","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","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","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","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","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","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","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","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","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","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},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/})]}}return y_=n,y_}var E_,b1;function fWe(){if(b1)return E_;b1=1;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}}return E_=n,E_}var v_,y1;function _We(){if(y1)return v_;y1=1;function n(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},r={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};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,t,i,r,e.C_NUMBER_MODE]}}return v_=n,v_}var S_,E1;function mWe(){if(E1)return S_;E1=1;function n(e){const t=e.regex,i={className:"params",begin:"\\(",end:"\\)"},s={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},r=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,r)},{begin:t.concat(/\b\d+/,o,r)},{begin:t.concat(/\.\d+/,o,r)}],relevance:0},c={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,i]},d={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};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"],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"]},illegal:/\/\*/,contains:[d,c,{begin:/^C\s*=(?!=)/,relevance:0},s,a]}}return S_=n,S_}var T_,v1;function hWe(){if(v1)return T_;v1=1;function n(a){return new RegExp(a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return i("(?=",a,")")}function i(...a){return a.map(d=>e(d)).join("")}function s(a){const c=a[a.length-1];return typeof c=="object"&&c.constructor===Object?(a.splice(a.length-1,1),c):{}}function r(...a){return"("+(s(a).capture?"":"?:")+a.map(u=>e(u)).join("|")+")"}function o(a){const c=["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"],d={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},u=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],_=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],m=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],h=["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"],y={keyword:c,literal:_,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"],"variable.constant":m},g={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},E=/[a-zA-Z_](\w|')*/,v={scope:"variable",begin:/``/,end:/``/},S=/\B('|\^)/,R={scope:"symbol",variants:[{match:i(S,/``.*?``/)},{match:i(S,a.UNDERSCORE_IDENT_RE)}],relevance:0},C=function({includeEqual:Oe}){let De;Oe?De="!%&*+-/<=>@^|~?":De="!%&*+-/<>@^|~?";const Q=Array.from(De),fe=i("[",...Q.map(n),"]"),_e=r(fe,/\./),Ae=i(_e,t(_e)),Fe=r(i(Ae,_e,"*"),i(fe,"+"));return{scope:"operator",match:r(Fe,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},A=C({includeEqual:!0}),I=C({includeEqual:!1}),x=function(Oe,De){return{begin:i(Oe,t(i(/\s*/,r(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:De,end:t(r(/\n/,/=/)),relevance:0,keywords:a.inherit(y,{type:h}),contains:[g,R,a.inherit(v,{scope:null}),I]}},M=x(/:/,"operator"),G=x(/\bof\b/,"keyword"),V={begin:[/(^|\s+)/,/type/,/\s+/,E],beginScope:{2:"keyword",4:"title.class"},end:t(/\(|=|$/),keywords:y,contains:[g,a.inherit(v,{scope:null}),R,{scope:"operator",match:/<|>/},M]},ee={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},O={begin:[/^\s*/,i(/#/,r(...u)),/\b/],beginScope:{2:"meta"},end:t(/\s|$/)},H={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},q={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},L={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},Y={scope:"string",begin:/"""/,end:/"""/,relevance:2},ne={scope:"subst",begin:/\{/,end:/\}/,keywords:y},oe={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,ne]},ye={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,ne]},xe={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},ne],relevance:2},le={scope:"string",match:i(/'/,r(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return ne.contains=[ye,oe,L,q,le,d,g,v,M,ee,O,H,R,A],{name:"F#",aliases:["fs","f#"],keywords:y,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[d,{variants:[xe,ye,oe,Y,L,q,le]},g,v,V,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[v,Y,L,q,le,H]},G,M,ee,O,H,R,A]}}return T_=o,T_}var x_,S1;function gWe(){if(S1)return x_;S1=1;function n(e){const t=e.regex,i={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"},s={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},r={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:i,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},c=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,d={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:t.concat(c,t.anyNumberOfTimes(t.concat(/[ ]+/,c))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:i,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,a,d]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[d]},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_]+/},s,r]},e.C_NUMBER_MODE,r]}}return x_=n,x_}var C_,T1;function bWe(){if(T1)return C_;T1=1;function n(e){const 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"},i=e.COMMENT("@","@"),s={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,i]},r={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{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,i,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},c=function(h,f,y){const b=e.inherit({className:"function",beginKeywords:h,end:f,excludeEnd:!0,contains:[].concat(o)},{});return b.contains.push(a),b.contains.push(e.C_NUMBER_MODE),b.contains.push(e.C_BLOCK_COMMENT_MODE),b.contains.push(i),b},d={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},u={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},_={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},d,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},m={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,d,_,u,"self"]};return _.contains.push(m),{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,i,u,s,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,i,m]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},_,r]}}return C_=n,C_}var w_,x1;function yWe(){if(x1)return w_;x1=1;function n(e){const t="[A-Z_][A-Z0-9_.]*",i="%",s={$pattern:t,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={className:"meta",begin:"([O])([0-9]+)"},o=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),a=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),o,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[o],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:i},r].concat(a)}}return w_=n,w_}var R_,C1;function EWe(){if(C1)return R_;C1=1;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]}}return R_=n,R_}var A_,w1;function vWe(){if(w1)return A_;w1=1;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:"$"}]}}return A_=n,A_}var M_,R1;function SWe(){if(R1)return M_;R1=1;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"],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"],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"],"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"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return M_=n,M_}var N_,A1;function TWe(){if(A1)return N_;A1=1;function n(e){const o={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:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}return N_=n,N_}var O_,M1;function xWe(){if(M1)return O_;M1=1;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"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return O_=n,O_}var I_,N1;function CWe(){if(N1)return I_;N1=1;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"],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]}}return I_=n,I_}var k_,O1;function wWe(){if(O1)return k_;O1=1;function n(e){const t=e.regex,i=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(i,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return k_=n,k_}var D_,I1;function RWe(){if(I1)return D_;I1=1;function n(t,i={}){return i.variants=t,i}function e(t){const i=t.regex,s="[A-Za-z0-9_$]+",r=n([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},a=n([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),c=n([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),d={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.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"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),r,c,o,a,d,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:s+"[ 	]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[r,c,o,a,"self"]},{className:"symbol",begin:"^[ 	]*"+i.lookahead(s+":"),excludeBegin:!0,end:s+":",relevance:0}],illegal:/#|<\//}}return D_=e,D_}var L_,k1;function AWe(){if(k1)return L_;k1=1;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}]}}return L_=n,L_}var P_,D1;function MWe(){if(D1)return P_;D1=1;function n(e){const t=e.regex,i={$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"]},s={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},r=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,c=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,d=/(\.|\/)/,u=t.either(r,o,a,c),_=t.concat(t.optional(/\.|\.\/|\//),u,t.anyNumberOfTimes(t.concat(d,u))),m=t.concat("(",a,"|",c,")(?==)"),h={begin:_},f=e.inherit(h,{keywords:s}),y={begin:/\(/,end:/\)/},b={className:"attr",begin:m,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,f,y]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},E={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,b,f,y],returnEnd:!0},v=e.inherit(h,{className:"name",keywords:i,starts:e.inherit(E,{end:/\)/})});y.contains=[v];const S=e.inherit(h,{keywords:i,className:"name",starts:e.inherit(E,{end:/\}\}/})}),R=e.inherit(h,{keywords:i,className:"name"}),C=e.inherit(h,{className:"name",keywords:i,starts:e.inherit(E,{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:[S],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[S]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[R]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[C]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[C]}]}}return P_=n,P_}var F_,L1;function NWe(){if(L1)return F_;L1=1;function n(e){const t="([0-9]_*)+",i="([0-9a-fA-F]_*)+",s="([01]_*)+",r="([0-7]_*)+",d="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",u={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},_={className:"meta",begin:/\{-#/,end:/#-\}/},m={className:"meta",begin:"^#",end:"$"},h={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},f={begin:"\\(",end:"\\)",illegal:'"',contains:[_,m,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),u]},y={begin:/\{/,end:/\}/,contains:f.contains},b={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${i})(\\.(${i}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${r})\\b`},{match:`\\b0[bB](${s})\\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:[f,u],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[f,u],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[h,f,u]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[_,h,f,y,u]},{beginKeywords:"default",end:"$",contains:[h,f,u]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,u]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[h,e.QUOTE_STRING_MODE,u]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},_,m,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,b,h,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${d}--+|--+(?!-)${d}`},u,{begin:"->|<-"}]}}return F_=n,F_}var U_,P1;function OWe(){if(P1)return U_;P1=1;function n(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",i=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;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:i,relevance:0},{className:"variable",begin:"\\$"+t},{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:/<\//}}return U_=n,U_}var B_,F1;function IWe(){if(F1)return B_;F1=1;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]}}return B_=n,B_}var G_,U1;function kWe(){if(U1)return G_;U1=1;function n(e){const t=e.regex,i="HTTP/([32]|1\\.[01])",s=/[A-Za-z][A-Za-z0-9-]*/,r={className:"attribute",begin:t.concat("^",s,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[r,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(r,{relevance:0})]}}return G_=n,G_}var V_,B1;function DWe(){if(B1)return V_;B1=1;function n(e){const t="a-zA-Z_\\-!.?+*=<>&#'",i="["+t+"]["+t+"0-9/;:]*",s={$pattern:i,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="[-+]?\\d+(\\.\\d+)?",o={begin:i,relevance:0},a={className:"number",begin:r,relevance:0},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d=e.COMMENT(";","$",{relevance:0}),u={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},_={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},m={className:"comment",begin:"\\^"+i},h=e.COMMENT("\\^\\{","\\}"),f={className:"symbol",begin:"[:]{1,2}"+i},y={begin:"\\(",end:"\\)"},b={endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:s,begin:i,starts:b},E=[y,c,m,h,d,f,_,a,u,o];return y.contains=[e.COMMENT("comment",""),g,b],b.contains=E,_.contains=E,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),y,c,m,h,d,f,_,a,u]}}return V_=n,V_}var z_,G1;function LWe(){if(G1)return z_;G1=1;function n(e){const t="\\[",i="\\]";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:t,end:i}]},{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:t,end:i,contains:["self"]}]}}return z_=n,z_}var H_,V1;function PWe(){if(V1)return H_;V1=1;function n(e){const t=e.regex,i={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},s=e.COMMENT();s.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[s,o,r,a,i,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,_=/'[^']*'/,m=t.either(d,u,_),h=t.concat(m,"(\\s*\\.\\s*",m,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[s,c,o,r,a,i]}}]}}return H_=n,H_}var q_,z1;function FWe(){if(z1)return q_;z1=1;function n(e){const t=e.regex,i={className:"params",begin:"\\(",end:"\\)"},s=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,r,s)},{begin:t.concat(/\b\d+/,r,s)},{begin:t.concat(/\.\d+/,r,s)}],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,i]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}return q_=n,q_}var Y_,H1;function UWe(){if(H1)return Y_;H1=1;function n(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",s="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",Oe="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 ",qO="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 ",YO="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",$O="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 ВызовСпособ ИмяОтчета РеквЗнач ",WO="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 ",KO=Oe+qO,jO=$O,QO="null true false nil ",Uy={className:"number",begin:e.NUMBER_RE,relevance:0},By={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Gy={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},XO={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Gy]},ZO={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Gy]},Vy={variants:[XO,ZO]},Ec={$pattern:t,keyword:s,built_in:KO,class:jO,literal:QO},Rp={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:Ec,relevance:0},zy={className:"type",begin:":[ \\t]*("+WO.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Hy={className:"variable",keywords:Ec,begin:t,relevance:0,contains:[zy,Rp]},qy=i+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:Ec,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:qy,end:"\\)$",returnBegin:!0,keywords:Ec,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:YO},begin:qy,end:"\\(",returnBegin:!0,excludeEnd:!0},Rp,Hy,By,Uy,Vy]},zy,Rp,Hy,By,Uy,Vy]}}return Y_=n,Y_}var $_,q1;function BWe(){if(q1)return $_;q1=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(o,a,c){return c===-1?"":o.replace(a,d=>s(o,a,c-1))}function r(o){const a=o.regex,c="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",d=c+s("(?:<"+c+"~~~(?:\\s*,\\s*"+c+"~~~)*>)?",/~~~/g,2),f={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"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},y={className:"meta",begin:"@"+c,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},b={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,c],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,c),/\s+/,c,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,c],className:{1:"keyword",3:"title.class"},contains:[b,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+d+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[y,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,i,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},i,y]}}return $_=r,$_}var W_,Y1;function GWe(){if(Y1)return W_;Y1=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["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"],t=["true","false","null","undefined","NaN","Infinity"],i=["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"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,i,s);function c(d){const u=d.regex,_=(Q,{after:fe})=>{const _e="</"+Q[0].slice(1);return Q.input.indexOf(_e,fe)!==-1},m=n,h={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,fe)=>{const _e=Q[0].length+Q.index,Ae=Q.input[_e];if(Ae==="<"||Ae===","){fe.ignoreMatch();return}Ae===">"&&(_(Q,{after:_e})||fe.ignoreMatch());let Fe;const te=Q.input.substring(_e);if(Fe=te.match(/^\s*=/)){fe.ignoreMatch();return}if((Fe=te.match(/^\s+extends\s+/))&&Fe.index===0){fe.ignoreMatch();return}}},b={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},g="[0-9](_?[0-9])*",E=`\\.(${g})`,v="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${v})((${E})|\\.)?|(${E}))[eE][+-]?(${g})\\b`},{begin:`\\b(${v})\\b((${E})\\b|\\.)?|(${E})\\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},R={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"xml"}},A={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"css"}},I={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[d.BACKSLASH_ESCAPE,R],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[d.BACKSLASH_ESCAPE,R]},G={className:"comment",variants:[d.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:m+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),d.C_BLOCK_COMMENT_MODE,d.C_LINE_COMMENT_MODE]},V=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,C,A,I,x,{match:/\$\d+/},S];R.contains=V.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(V)});const ee=[].concat(G,R.contains),O=ee.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(ee)}]),H={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:O},q={variants:[{match:[/class/,/\s+/,m,/\s+/,/extends/,/\s+/,u.concat(m,"(",u.concat(/\./,m),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,m],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:u.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:{_:[...i,...s]}},Y={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ne={variants:[{match:[/function/,/\s+/,m,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ye(Q){return u.concat("(?!",Q.join("|"),")")}const xe={match:u.concat(/\b/,ye([...r,"super","import"].map(Q=>`${Q}\\s*\\(`)),m,u.lookahead(/\s*\(/)),className:"title.function",relevance:0},le={begin:u.concat(/\./,u.lookahead(u.concat(m,/(?![0-9A-Za-z$_(])/))),end:m,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ve={match:[/get|set/,/\s+/,m,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},Oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+d.UNDERSCORE_IDENT_RE+")\\s*=>",De={match:[/const|var|let/,/\s+/,m,/\s*/,/=\s*/,/(async\s*)?/,u.lookahead(Oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[d.SHEBANG({label:"shebang",binary:"node",relevance:5}),Y,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,C,A,I,x,G,{match:/\$\d+/},S,L,{className:"attr",begin:m+u.lookahead(":"),relevance:0},De,{begin:"("+d.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[G,d.REGEXP_MODE,{className:"function",begin:Oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:d.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:f},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},ne,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+d.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,d.inherit(d.TITLE_MODE,{begin:m,className:"title.function"})]},{match:/\.\.\./,relevance:0},le,{match:"\\$"+m,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},xe,oe,q,ve,{match:/\$[(.]/}]}}return W_=c,W_}var K_,$1;function VWe(){if($1)return K_;$1=1;function n(e){const i={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},s={className:"function",begin:/:[\w\-.]+/,relevance:0},r={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},o={className:"params",begin:/--[\w\-=\/]+/};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,o,s,r,i]}}return K_=n,K_}var j_,W1;function zWe(){if(W1)return j_;W1=1;function n(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],r={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[t,i,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return j_=n,j_}var Q_,K1;function HWe(){if(K1)return Q_;K1=1;function n(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={$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"],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","π","ℯ"],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"]},a={keywords:o,illegal:/<\//},c={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},d={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},u={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},_={className:"variable",begin:"\\$"+t},m={className:"string",contains:[e.BACKSLASH_ESCAPE,u,_],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},h={className:"string",contains:[e.BACKSLASH_ESCAPE,u,_],begin:"`",end:"`"},f={className:"meta",begin:"@"+t},y={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[c,d,m,h,f,y,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],u.contains=a.contains,a}return Q_=n,Q_}var X_,j1;function qWe(){if(j1)return X_;j1=1;function n(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return X_=n,X_}var Z_,Q1;function YWe(){if(Q1)return Z_;Q1=1;var n="[0-9](_*[0-9])*",e=`\\.(${n})`,t="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${n})((${e})|\\.)?|(${e}))[eE][+-]?(${n})[fFdD]?\\b`},{begin:`\\b(${n})((${e})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${e})[fFdD]?\\b`},{begin:`\\b(${n})[fFdD]\\b`},{begin:`\\b0[xX]((${t})\\.?|(${t})?\\.(${t}))[pP][+-]?(${n})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${t})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(r){const o={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"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:r.UNDERSCORE_IDENT_RE+"@"},d={className:"subst",begin:/\$\{/,end:/\}/,contains:[r.C_NUMBER_MODE]},u={className:"variable",begin:"\\$"+r.UNDERSCORE_IDENT_RE},_={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[u,d]},{begin:"'",end:"'",illegal:/\n/,contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[r.BACKSLASH_ESCAPE,u,d]}]};d.contains.push(_);const m={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+r.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+r.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[r.inherit(_,{className:"string"}),"self"]}]},f=i,y=r.COMMENT("/\\*","\\*/",{contains:[r.C_BLOCK_COMMENT_MODE]}),b={variants:[{className:"type",begin:r.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},g=b;return g.variants[1].contains=[b],b.variants[1].contains=[g],{name:"Kotlin",aliases:["kt","kts"],keywords:o,contains:[r.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),r.C_LINE_COMMENT_MODE,y,a,c,m,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:o,relevance:5,contains:[{begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[b,r.C_LINE_COMMENT_MODE,y],relevance:0},r.C_LINE_COMMENT_MODE,y,m,h,_,r.C_NUMBER_MODE]},y]},{begin:[/class|interface|trait/,/\s+/,r.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},r.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},m,h]},_,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
+`},f]}}return Z_=s,Z_}var J_,X1;function $We(){if(X1)return J_;X1=1;function n(e){const t="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",s="\\]|\\?>",r={$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"},o=e.COMMENT("<!--","-->",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},c={className:"meta",begin:"\\[/noprocess|"+i},d={className:"symbol",begin:"'"+t+"'"},u=[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:[d]},{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:r,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[o]}},a,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:r,contains:[{className:"meta",begin:s,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[o]}},a,c].concat(u)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(u)}}return J_=n,J_}var em,Z1;function WWe(){if(Z1)return em;Z1=1;function n(e){const i=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(G=>G+"(?![a-zA-Z@:_])")),s=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(G=>G+"(?![a-zA-Z:_])").join("|")),r=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{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:i},{endsParent:!0,begin:s},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:r}]},c={className:"params",relevance:0,begin:/#+\d?/},d={variants:o},u={className:"built_in",relevance:0,begin:/[$&^_]/},_={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},m=e.COMMENT("%","$",{relevance:0}),h=[a,c,d,u,_,m],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...h]},y=e.inherit(f,{relevance:0,endsParent:!0,contains:[f,...h]}),b={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[f,...h]},g={begin:/\s+/,relevance:0},E=[y],v=[b],S=function(G,V){return{contains:[g],starts:{relevance:0,contains:G,starts:V}}},R=function(G,V){return{begin:"\\\\"+G+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+G},relevance:0,contains:[g],starts:V}},C=function(G,V){return e.inherit({begin:"\\\\begin(?=[ 	]*(\\r?\\n[ 	]*)?\\{"+G+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},S(E,V))},A=(G="string")=>e.END_SAME_AS_BEGIN({className:G,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),I=function(G){return{className:"string",end:"(?=\\\\end\\{"+G+"\\})"}},x=(G="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:G,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),M=[...["verb","lstinline"].map(G=>R(G,{contains:[A()]})),R("mint",S(E,{contains:[A()]})),R("mintinline",S(E,{contains:[x(),A()]})),R("url",{contains:[x("link"),x("link")]}),R("hyperref",{contains:[x("link")]}),R("href",S(v,{contains:[x("link")]})),...[].concat(...["","\\*"].map(G=>[C("verbatim"+G,I("verbatim"+G)),C("filecontents"+G,S(E,I("filecontents"+G))),...["","B","L"].map(V=>C(V+"Verbatim"+G,S(v,I(V+"Verbatim"+G))))])),C("minted",S(v,S(E,I("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...M,...h]}}return em=n,em}var tm,J1;function KWe(){if(J1)return tm;J1=1;function n(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}return tm=n,tm}var nm,eT;function jWe(){if(eT)return nm;eT=1;function n(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,s={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:[s]};return s.contains.unshift(r),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[s]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return nm=n,nm}var im,tT;function QWe(){if(tT)return im;tT=1;const n=u=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:u.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:[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:u.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),c=r.concat(o).sort().reverse();function d(u){const _=n(u),m=c,h="and or not only",f="[\\w-]+",y="("+f+"|@\\{"+f+"\\})",b=[],g=[],E=function(ee){return{className:"string",begin:"~?"+ee+".*?"+ee}},v=function(ee,O,H){return{className:ee,begin:O,relevance:H}},S={$pattern:/[a-z-]+/,keyword:h,attribute:s.join(" ")},R={begin:"\\(",end:"\\)",contains:g,keywords:S,relevance:0};g.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,E("'"),E('"'),_.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},_.HEXCOLOR,R,v("variable","@@?"+f,10),v("variable","@\\{"+f+"\\}"),v("built_in","~?`[^`]*?`"),{className:"attribute",begin:f+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},_.IMPORTANT,{beginKeywords:"and not"},_.FUNCTION_DISPATCH);const C=g.concat({begin:/\{/,end:/\}/,contains:b}),A={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(g)},I={begin:y+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:g}}]},x={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:g,relevance:0}},M={className:"variable",variants:[{begin:"@"+f+"\\s*:",relevance:15},{begin:"@"+f}],starts:{end:"[;}]",returnEnd:!0,contains:C}},G={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:y,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,A,v("keyword","all\\b"),v("variable","@\\{"+f+"\\}"),{begin:"\\b("+i.join("|")+")\\b",className:"selector-tag"},_.CSS_NUMBER_MODE,v("selector-tag",y,0),v("selector-id","#"+y),v("selector-class","\\."+y,0),v("selector-tag","&",0),_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:C},{begin:"!important"},_.FUNCTION_DISPATCH]},V={begin:f+`:(:)?(${m.join("|")})`,returnBegin:!0,contains:[G]};return b.push(u.C_LINE_COMMENT_MODE,u.C_BLOCK_COMMENT_MODE,x,M,V,I,G,A,_.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:b}}return im=d,im}var sm,nT;function XWe(){if(nT)return sm;nT=1;function n(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",s="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",r={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:s,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)\\("+s+" +"+s,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),c=e.COMMENT(";","$",{relevance:0}),d={begin:"\\*",end:"\\*"},u={className:"symbol",begin:"[:&]"+t},_={begin:t,relevance:0},m={begin:i},f={contains:[o,a,d,u,{begin:"\\(",end:"\\)",contains:["self",r,a,o,_]},_],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},y={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},b={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return b.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:i}]},g],g.contains=[f,y,b,r,o,a,c,d,u,m,_],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),r,a,c,f,y,b,_]}}return sm=n,sm}var rm,iT;function ZWe(){if(iT)return rm;iT=1;function n(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],s=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=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,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,s],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,s]},{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,s].concat(i),illegal:";$|^\\[|^=|&|\\{"}}return rm=n,rm}var om,sT;function JWe(){if(sT)return om;sT=1;const 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"],e=["true","false","null","undefined","NaN","Infinity"],t=["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"],i=["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"],r=[].concat(s,t,i);function o(a){const c=["npm","print"],d=["yes","no","on","off","it","that","void"],u=["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"],_={keyword:n.concat(u),literal:e.concat(d),built_in:r.concat(c)},m="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",h=a.inherit(a.TITLE_MODE,{begin:m}),f={className:"subst",begin:/#\{/,end:/\}/,keywords:_},y={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:_},b=[a.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:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,f,y]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,f,y]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[f,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+m},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];f.contains=b;const g={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(b)}]},E={begin:"(#=>|=>|\\|>>|-?->|!->)"},v={variants:[{match:[/class\s+/,m,/\s+extends\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:_};return{name:"LiveScript",aliases:["ls"],keywords:_,illegal:/\/\*/,contains:b.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,E,{className:"function",contains:[h,g],returnBegin:!0,variants:[{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+m+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},v,{begin:m+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return om=o,om}var am,rT;function eKe(){if(rT)return am;rT=1;function n(e){const t=e.regex,i=/([-a-zA-Z$._][\w$.-]*)/,s={className:"type",begin:/\bi\d+(?=\s|\b)/},r={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},c={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:t.concat(/%/,i)},{begin:/%\d+/},{begin:/#\d+/}]},u={className:"title",variants:[{begin:t.concat(/@/,i)},{begin:/@\d+/},{begin:t.concat(/!/,i)},{begin:t.concat(/!\d+/,i)},{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:[s,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},u,o,r,d,c,a]}}return am=n,am}var lm,oT;function tKe(){if(oT)return lm;oT=1;function n(e){const i={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},s={className:"number",relevance:0,begin:e.C_NUMBER_RE},r={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"}]},o={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"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[i,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},s,{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"}]},o,r,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return lm=n,lm}var cm,aT;function nKe(){if(aT)return cm;aT=1;function n(e){const t="\\[=*\\[",i="\\]=*\\]",s={begin:t,end:i,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,i,{contains:[s],relevance:10})];return{name:"Lua",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:r.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:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:i,contains:[s],relevance:5}])}}return cm=n,cm}var dm,lT;function iKe(){if(lT)return dm;lT=1;function n(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},s={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,i,s,r,o,a]}}return dm=n,dm}var um,cT;function sKe(){if(cT)return um;cT=1;const 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"];function e(t){const i=t.regex,s=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,o=/(\d*\.\d+|\d+\.\d*|\d+)/,a=i.either(i.concat(s,r),o),c=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,d=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,u=i.either(c,d),_=/\*\^[+-]?\d+/,h={className:"number",relevance:0,begin:i.concat(a,i.optional(u),i.optional(_))},f=/[a-zA-Z$][a-zA-Z0-9$]*/,y=new Set(n),b={variants:[{className:"builtin-symbol",begin:f,"on:begin":(A,I)=>{y.has(A[0])||I.ignoreMatch()}},{className:"symbol",relevance:0,begin:f}]},g={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},E={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},v={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},S={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},R={className:"brace",relevance:0,begin:/[[\](){}]/},C={className:"message-name",relevance:0,begin:i.concat("::",f)};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:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),v,S,C,b,g,t.QUOTE_STRING_MODE,h,E,R]}}return um=e,um}var pm,dT;function rKe(){if(dT)return pm;dT=1;function n(e){const t="('|\\.')+",i={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:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:i},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}return pm=n,pm}var fm,uT;function oKe(){if(uT)return fm;uT=1;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:/@/}}return fm=n,fm}var _m,pT;function aKe(){if(pT)return _m;pT=1;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:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return _m=n,_m}var mm,fT;function lKe(){if(fT)return mm;fT=1;function n(e){const 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"},i=e.COMMENT("%","$"),s={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},r=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),a={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return o.contains=o.contains.slice(),o.contains.push(a),{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}]},i,e.C_BLOCK_COMMENT_MODE,s,e.NUMBER_MODE,r,o,{begin:/:-/},{begin:/\.$/}]}}return mm=n,mm}var hm,_T;function cKe(){if(_T)return hm;_T=1;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:/\//}}return hm=n,hm}var gm,mT;function dKe(){if(mT)return gm;mT=1;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("::","$")]}}return gm=n,gm}var bm,hT;function uKe(){if(hT)return bm;hT=1;function n(e){const t=e.regex,i=["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"],s=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:i.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},a={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},d={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},u={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},_=[e.BACKSLASH_ESCAPE,o,d],m=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,g,E="\\1")=>{const v=E==="\\1"?E:t.concat(E,g);return t.concat(t.concat("(?:",b,")"),g,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,E,s)},f=(b,g,E)=>t.concat(t.concat("(?:",b,")"),g,/(?:\\.|[^\\\/])*?/,E,s),y=[d,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:_,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}]},u,{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:h("s|tr|y",t.either(...m,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...m,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,u]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=y,a.contains=y,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:y}}return bm=n,bm}var ym,gT;function pKe(){if(gT)return ym;gT=1;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}]}}return ym=n,ym}var Em,bT;function fKe(){if(bT)return Em;bT=1;function n(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},i={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},s={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"],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"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),i,s,{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]}}return Em=n,Em}var vm,yT;function _Ke(){if(yT)return vm;yT=1;function n(e){const 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"},i="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:t},r=[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,s]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];s.contains=r;const o=e.inherit(e.TITLE_MODE,{begin:i}),a="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return vm=n,vm}var Sm,ET;function mKe(){if(ET)return Sm;ET=1;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"],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"]},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]}}return Sm=n,Sm}var Tm,vT;function hKe(){if(vT)return Tm;vT=1;function n(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},i={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},s={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},r={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),r,s,t,i]}}return Tm=n,Tm}var xm,ST;function gKe(){if(ST)return xm;ST=1;function n(e){const t=e.regex,i={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,i],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[i]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,i],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},i]};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\\}\\{]"}}return xm=n,xm}var Cm,TT;function bKe(){if(TT)return Cm;TT=1;function n(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","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"],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"],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]}}return Cm=n,Cm}var wm,xT;function yKe(){if(xT)return wm;xT=1;function n(e){const t={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},s={className:"char.escape",begin:/''\$/},r={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},o={className:"string",contains:[s,i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,r];return i.contains=a,{name:"Nix",aliases:["nixos"],keywords:t,contains:a}}return wm=n,wm}var Rm,CT;function EKe(){if(CT)return Rm;CT=1;function n(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Rm=n,Rm}var Am,wT;function vKe(){if(wT)return Am;wT=1;function n(e){const t=e.regex,i=["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"],s=["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"],r=["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"],o={className:"variable.constant",begin:t.concat(/\$/,t.either(...i))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},c={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},d={className:"variable",begin:/\$+\([\w^.:!-]+\)/},u={className:"params",begin:t.either(...s)},_={className:"keyword",begin:t.concat(/!/,t.either(...r))},m={className:"char.escape",begin:/\$(\\[nrt]|\$)/},h={className:"title.function",begin:/\w+::\w+/},f={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[m,o,a,c,d]},y=["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"],b=["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"],g={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},v={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:y,literal:b},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),v,g,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},f,_,a,c,d,u,h,e.NUMBER_MODE]}}return Am=n,Am}var Mm,RT;function SKe(){if(RT)return Mm;RT=1;function n(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:i,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},d={$pattern:i,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+d.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:d,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}return Mm=n,Mm}var Nm,AT;function TKe(){if(AT)return Nm;AT=1;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:/->/}]}}return Nm=n,Nm}var Om,MT;function xKe(){if(MT)return Om;MT=1;function n(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},r=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",s,r,t,i]},c={begin:"[*!#%]",relevance:0},d={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,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,s,o,r,t,c,d]}}return Om=n,Om}var Im,NT;function CKe(){if(NT)return Im;NT=1;function n(e){const 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"},i=e.COMMENT(/\{/,/\}/,{relevance:0}),s=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={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:[r,o]},i,s]},c={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[i,s,e.C_LINE_COMMENT_MODE,r,o,e.NUMBER_MODE,a,c]}}return Im=n,Im}var km,OT;function wKe(){if(OT)return km;OT=1;function n(e){const 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]}}return km=n,km}var Dm,IT;function RKe(){if(IT)return Dm;IT=1;function n(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},i={className:"variable",begin:/<(?!\/)/,end:/>/};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,t,i]}}return Dm=n,Dm}var Lm,kT;function AKe(){if(kT)return Lm;kT=1;function n(e){const t=e.COMMENT("--","$"),i="[a-zA-Z_][a-zA-Z_0-9$]*",s="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+i+"\\s*>>",o="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 ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="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 ",d="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 ",u=d.trim().split(" ").map(function(b){return b.split("|")[0]}).join("|"),_="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",m="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 ",h="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 ",y="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 ".trim().split(" ").map(function(b){return b.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+c+a,built_in:_+m+h},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("+y+")\\s*\\("},{begin:"\\.("+u+")\\b"},{begin:"\\b("+u+")\\s+PATH\\b",keywords:{keyword:"PATH",type:d.replace("PATH ","")}},{className:"type",begin:"\\b("+u+")\\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:s,end:s,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:r,relevance:10}]}}return Lm=n,Lm}var Pm,DT;function MKe(){if(DT)return Pm;DT=1;function n(e){const t=e.regex,i=/(?![A-Za-z0-9])(?![$])/,s=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,i),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,i),o={scope:"variable",match:"\\$+"+s},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},d=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)}),_={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(O,H)=>{H.data._beginMatch=O[1]||O[2]},"on:end":(O,H)=>{H.data._beginMatch!==O[1]&&H.ignoreMatch()}},m=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[ 	
+]`,f={scope:"string",variants:[u,d,_,m]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],g=["__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"],E=["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"],S={keyword:g,literal:(O=>{const H=[];return O.forEach(q=>{H.push(q),q.toLowerCase()===q?H.push(q.toUpperCase()):H.push(q.toLowerCase())}),H})(b),built_in:E},R=O=>O.map(H=>H.replace(/\|\d+$/,"")),C={variants:[{match:[/new/,t.concat(h,"+"),t.concat("(?!",R(E).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},A=t.concat(s,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),A],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},x={scope:"attr",match:t.concat(s,t.lookahead(":"),t.lookahead(/(?!::)/))},M={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[x,o,I,e.C_BLOCK_COMMENT_MODE,f,y,C]},G={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(g).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),s,t.concat(h,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[M]};M.contains.push(G);const V=[x,I,e.C_BLOCK_COMMENT_MODE,f,y,C],ee={begin:t.concat(/#\[\s*/,r),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...V]},...V,{scope:"meta",match:r}]};return{case_insensitive:!1,keywords:S,contains:[ee,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}]}},a,{scope:"variable.language",match:/\$this\b/},o,G,I,{match:[/const/,/\s/,s],scope:{1:"keyword",3:"variable.constant"}},C,{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:S,contains:["self",o,I,e.C_BLOCK_COMMENT_MODE,f,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},f,y]}}return Pm=n,Pm}var Fm,LT;function NKe(){if(LT)return Fm;LT=1;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})]}]}}return Fm=n,Fm}var Um,PT;function OKe(){if(PT)return Um;PT=1;function n(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Um=n,Um}var Bm,FT;function IKe(){if(FT)return Bm;FT=1;function n(e){const t={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"},i={className:"string",begin:'"""',end:'"""',relevance:10},s={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},r={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:t,contains:[o,i,s,r,a,{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]}}return Bm=n,Bm}var Gm,UT;function kKe(){if(UT)return Gm;UT=1;function n(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],i="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",s="-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",r={$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"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},d={className:"literal",begin:/\$(null|true|false)\b/},u={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},_={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},m={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[m]}),f={className:"built_in",variants:[{begin:"(".concat(i,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},b={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[u,_,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},E={variants:[{className:"operator",begin:"(".concat(s,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},v={className:"selector-tag",begin:/@\B/,relevance:0},S={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(r.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},R=[S,h,a,e.NUMBER_MODE,u,_,f,c,d,v],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",R,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return S.contains.unshift(C),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:r,contains:R.concat(y,b,g,E,C)}}return Gm=n,Gm}var Vm,BT;function DKe(){if(BT)return Vm;BT=1;function n(e){const t=e.regex,i=["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"],s=e.IDENT_RE,r={variants:[{match:t.concat(t.either(...i),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,s,t.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,s],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,s],className:{2:"property"}},c={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,s]},{match:[/class/,/\s+/,s]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},d=["boolean","byte","char","color","double","float","int","long","short"],u=["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"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...i,...u],type:d},contains:[c,o,r,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}return Vm=n,Vm}var zm,GT;function LKe(){if(GT)return zm;GT=1;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}]}}return zm=n,zm}var Hm,VT;function PKe(){if(VT)return Hm;VT=1;function n(e){const t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},s={begin:/\(/,end:/\)/,relevance:0},r={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},d={className:"string",begin:/0'\\s/},_=[t,i,s,{begin:/:-/},r,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,c,d,e.C_NUMBER_MODE];return s.contains=_,r.contains=_,{name:"Prolog",contains:_.concat([{begin:/\.$/}])}}return Hm=n,Hm}var qm,zT;function FKe(){if(zT)return qm;zT=1;function n(e){const t="[ \\t\\f]*",i="[ \\t\\f]+",s=t+"[:=]"+t,r=i,o="("+s+"|"+r+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",c={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+s},{begin:a+r}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:c},{className:"attr",begin:a+t+"$"}]}}return qm=n,qm}var Ym,HT;function UKe(){if(HT)return Ym;HT=1;function n(e){const t=["package","import","option","optional","required","repeated","group","oneof"],i=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],s={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:t,type:i,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return Ym=n,Ym}var $m,qT;function BKe(){if(qT)return $m;qT=1;function n(e){const 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"},i=e.COMMENT("#","$"),s="([A-Za-z_]|::)(\\w|::)*",r=e.inherit(e.TITLE_MODE,{begin:s}),o={className:"variable",begin:"\\$"+s},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[i,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[r,i]},{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:[a,i,{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},o]}],relevance:0}]}}return $m=n,$m}var Wm,YT;function GKe(){if(YT)return Wm;YT=1;function n(e){const t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};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]},t,i]}}return Wm=n,Wm}var Km,$T;function VKe(){if($T)return Km;$T=1;function n(e){const t=e.regex,i=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["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"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},_={begin:/\{\{/,relevance:0},m={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,_,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,_,u]},{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,_,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,_,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",f=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,y=`\\b|${s.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${f}))[eE][+-]?(${h})[jJ]?(?=${y})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${y})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${y})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${y})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${y})`},{begin:`\\b(${h})[jJ](?=${y})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",d,b,m,e.HASH_COMMENT_MODE]}]};return u.contains=[m,b,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[d,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},m,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[E]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,E,m]}]}}return Km=n,Km}var jm,WT;function zKe(){if(WT)return jm;WT=1;function n(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return jm=n,jm}var Qm,KT;function HKe(){if(KT)return Qm;KT=1;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]}}return Qm=n,Qm}var Xm,jT;function qKe(){if(jT)return Xm;jT=1;function n(e){const t=e.regex,i={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"},s="[a-zA-Z_][a-zA-Z0-9\\._]*",r={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:s,returnEnd:!1}},c={begin:s+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:s,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:t.concat(s,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:s})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:i,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:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,r,{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},a,c,d],illegal:/#/}}return Xm=n,Xm}var Zm,QT;function YKe(){if(QT)return Zm;QT=1;function n(e){const t=e.regex,i=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=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]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:i,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:i},{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:[r,s]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,s]},{scope:{1:"punctuation",2:"number"},match:[o,s]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,s]}]},{scope:{3:"operator"},match:[i,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return Zm=n,Zm}var Jm,XT;function $Ke(){if(XT)return Jm;XT=1;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"],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}]}}return Jm=n,Jm}var eh,ZT;function WKe(){if(ZT)return eh;ZT=1;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:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}return eh=n,eh}var th,JT;function KKe(){if(JT)return th;JT=1;function n(e){const t="[a-zA-Z-_][^\\n{]+\\{",i={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:[i,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",i,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[i,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}return th=n,th}var nh,ex;function jKe(){if(ex)return nh;ex=1;function n(e){const t="foreach do while for if from to step else on-error and or not in",i="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",s="add remove enable disable set get print export edit find run debug error info warning",r="true false yes no nothing nil null",o="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",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},d={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:r,keyword:t+" :"+t.split(" ").join(" :")+" :"+i.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),c,d,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,d,a,{className:"literal",begin:"\\b("+r.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+s.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return nh=n,nh}var ih,tx;function QKe(){if(tx)return ih;tx=1;function n(e){const 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"],i=["matrix","float","color","point","normal","vector"],s=["while","for","if","do","return","else","break","extern","continue"],r={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:s,built_in:t,type:i},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},r,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return ih=n,ih}var sh,nx;function XKe(){if(nx)return sh;nx=1;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 .]+"}]}]}}return sh=n,sh}var rh,ix;function ZKe(){if(ix)return rh;ix=1;function n(e){const t=e.regex,i=/(r#)?/,s=t.concat(i,e.UNDERSCORE_IDENT_RE),r=t.concat(i,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,r,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",c=["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"],d=["true","false","Some","None","Ok","Err"],u=["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!"],_=["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:_,keyword:c,literal:d,built_in:u},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,s],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,s],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,s,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,s],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:_}},{className:"punctuation",begin:"->"},o]}}return rh=n,rh}var oh,sx;function JKe(){if(sx)return oh;sx=1;function n(e){const t=e.regex,i=["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"],s=["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"],r=["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"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:i},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(...r)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either(...s)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}return oh=n,oh}var ah,rx;function eje(){if(rx)return ah;rx=1;function n(e){const t=e.regex,i={className:"meta",begin:"@[A-Za-z]+"},s={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},r={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,s]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[s],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={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:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},d={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},u={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},_={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},m=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={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,r,o,d,c,e.C_NUMBER_MODE,u,_,...m,h,i]}}return ah=n,ah}var lh,ox;function tje(){if(ox)return lh;ox=1;function n(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",s=i+"[+\\-]"+i+"i",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-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? 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-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? 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?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},a={className:"number",variants:[{begin:i,relevance:0},{begin:s,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=e.QUOTE_STRING_MODE,d=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],u={begin:t,relevance:0},_={className:"symbol",begin:"'"+t},m={endsWithParent:!0,relevance:0},h={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,c,a,u,_]}]},f={className:"name",relevance:0,begin:t,keywords:r},b={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[u]}]},f,m]};return m.contains=[o,a,c,u,_,h,b].concat(d),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,c,_,h,b].concat(d)}}return lh=n,lh}var ch,ax;function nje(){if(ax)return ch;ax=1;function n(e){const 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)}}return ch=n,ch}var dh,lx;function ije(){if(lx)return dh;lx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=n(d),_=o,m=r,h="@[a-z-]+",f="and or not only",b={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+m.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+_.join("|")+")"},b,{begin:/\(/,end:/\)/,contains:[u.CSS_NUMBER_MODE]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.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:[u.BLOCK_COMMENT,b,u.HEXCOLOR,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:h,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:s.join(" ")},contains:[{begin:h,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},b,d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,u.HEXCOLOR,u.CSS_NUMBER_MODE]},u.FUNCTION_DISPATCH]}}return dh=c,dh}var uh,cx;function sje(){if(cx)return uh;cx=1;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"}}]}}return uh=n,uh}var ph,dx;function rje(){if(dx)return ph;dx=1;function n(e){const 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"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];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("+s.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
+]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return ph=n,ph}var fh,ux;function oje(){if(ux)return fh;ux=1;function n(e){const t="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},s={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,s,i,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,i,e.C_NUMBER_MODE,s]}]}}return fh=n,fh}var _h,px;function aje(){if(px)return _h;px=1;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:/[-=]>/}]}}return _h=n,_h}var mh,fx;function lje(){if(fx)return mh;fx=1;function n(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},i={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},s={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},r=["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"],o=["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"],a=["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"],c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{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:r,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,i,s,c],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return mh=n,mh}var hh,_x;function cje(){if(_x)return hh;_x=1;function n(e){const t=e.regex,i=e.COMMENT("--","$"),s={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},r={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],c=["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"],d=["add","asc","collation","desc","final","first","last","view"],u=["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"],_=["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"],m=["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"],h=["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"],f=_,y=[...u,...d].filter(S=>!_.includes(S)),b={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={begin:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function v(S,{exceptions:R,when:C}={}){const A=C;return R=R||[],S.map(I=>I.match(/\|\d+$/)||R.includes(I)?I:A(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(y,{when:S=>S.length<3}),literal:o,type:c,built_in:m},contains:[{begin:t.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:y.concat(h),literal:o,type:c}},{className:"type",begin:t.either(...a)},E,b,s,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,g]}}return hh=n,hh}var gh,mx;function dje(){if(mx)return gh;mx=1;function n(e){const t=e.regex,i=["functions","model","data","parameters","quantities","transformed","generated"],s=["for","in","if","else","while","break","continue","return"],r=["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"],o=["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"],a=["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"],c=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),d={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},u=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:i,type:r,keyword:s,built_in:o},contains:[e.C_LINE_COMMENT_MODE,d,e.HASH_COMMENT_MODE,c,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...u),/\s*=/),keywords:u},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\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:/"/}]}}return gh=n,gh}var bh,hx;function uje(){if(hx)return bh;hx=1;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]}}return bh=n,bh}var yh,gx;function fje(){if(gx)return yh;gx=1;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"}]}]}}return yh=n,yh}var Eh,bx;function _je(){if(bx)return Eh;bx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=n(d),_="and or not only",m={className:"variable",begin:"\\$"+d.IDENT_RE},h=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],f="(?=[.\\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:[d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-id"},{begin:"\\b("+i.join("|")+")"+f,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+r.join("|")+")"+f},{className:"selector-pseudo",begin:"&?:(:)?("+o.join("|")+")"+f},u.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[u.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+h.join("|")+"))\\b"},m,u.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:[u.HEXCOLOR,m,d.APOS_STRING_MODE,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE]}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",starts:{end:/;|$/,contains:[u.HEXCOLOR,m,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,u.CSS_NUMBER_MODE,d.C_BLOCK_COMMENT_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},u.FUNCTION_DISPATCH]}}return Eh=c,Eh}var vh,yx;function mje(){if(yx)return vh;yx=1;function n(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[
+"]*"`}]},{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]}}return bh=n,bh}var yh,gx;function pje(){if(gx)return yh;gx=1;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"}]}]}}return yh=n,yh}var Eh,bx;function fje(){if(bx)return Eh;bx=1;const n=d=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:d.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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:d.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_-]*/}}),e=["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"],t=["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"],i=[...e,...t],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),r=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","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-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-end-end-radius","border-end-start-radius","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-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","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","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","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","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","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","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","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","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-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-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","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","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","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-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function c(d){const u=n(d),_="and or not only",m={className:"variable",begin:"\\$"+d.IDENT_RE},h=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],f="(?=[.\\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:[d.QUOTE_STRING_MODE,d.APOS_STRING_MODE,d.C_LINE_COMMENT_MODE,d.C_BLOCK_COMMENT_MODE,u.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+f,className:"selector-id"},{begin:"\\b("+i.join("|")+")"+f,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+r.join("|")+")"+f},{className:"selector-pseudo",begin:"&?:(:)?("+o.join("|")+")"+f},u.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:_,attribute:s.join(" ")},contains:[u.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+h.join("|")+"))\\b"},m,u.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:[u.HEXCOLOR,m,d.APOS_STRING_MODE,u.CSS_NUMBER_MODE,d.QUOTE_STRING_MODE]}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",starts:{end:/;|$/,contains:[u.HEXCOLOR,m,d.APOS_STRING_MODE,d.QUOTE_STRING_MODE,u.CSS_NUMBER_MODE,d.C_BLOCK_COMMENT_MODE,u.IMPORTANT,u.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},u.FUNCTION_DISPATCH]}}return Eh=c,Eh}var vh,yx;function _je(){if(yx)return vh;yx=1;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:"}]}]}}return vh=n,vh}var Sh,Ex;function hje(){if(Ex)return Sh;Ex=1;function n(I){return I?typeof I=="string"?I:I.source:null}function e(I){return t("(?=",I,")")}function t(...I){return I.map(M=>n(M)).join("")}function i(I){const x=I[I.length-1];return typeof x=="object"&&x.constructor===Object?(I.splice(I.length-1,1),x):{}}function s(...I){return"("+(i(I).capture?"":"?:")+I.map(G=>n(G)).join("|")+")"}const r=I=>t(/\b/,I,/\w$/.test(I)?/\b/:/\B/),o=["Protocol","Type"].map(r),a=["init","self"].map(r),c=["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"],u=["false","nil","true"],_=["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"],f=s(/[/=\-+!*%<>&|^~?]/,/[\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]/),y=s(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(f,y,"*"),g=s(/[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]/),E=s(g,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=t(g,E,"*"),S=t(/[A-Z]/,E,"*"),R=["attached","autoclosure",t(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],C=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function A(I){const x={match:/\s+/,relevance:0},M=I.COMMENT("/\\*","\\*/",{contains:["self"]}),G=[I.C_LINE_COMMENT_MODE,M],V={match:[/\./,s(...o,...a)],className:{2:"keyword"}},ee={match:t(/\./,s(...d)),relevance:0},O=d.filter(ze=>typeof ze=="string").concat(["_|0"]),H=d.filter(ze=>typeof ze!="string").concat(c).map(r),q={variants:[{className:"keyword",match:s(...H,...a)}]},L={$pattern:s(/\b\w+/,/#\w+/),keyword:O.concat(m),literal:u},Y=[V,ee,q],ne={match:t(/\./,s(...h)),relevance:0},oe={className:"built_in",match:t(/\b/,s(...h),/(?=\()/)},ye=[ne,oe],xe={match:/->/,relevance:0},le={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${y})+`}]},ve=[xe,le],Oe="([0-9]_*)+",De="([0-9a-fA-F]_*)+",Q={className:"number",relevance:0,variants:[{match:`\\b(${Oe})(\\.(${Oe}))?([eE][+-]?(${Oe}))?\\b`},{match:`\\b0x(${De})(\\.(${De}))?([pP][+-]?(${Oe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},fe=(ze="")=>({className:"subst",variants:[{match:t(/\\/,ze,/[0\\tnr"']/)},{match:t(/\\/,ze,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_e=(ze="")=>({className:"subst",match:t(/\\/,ze,/[\t ]*(?:[\r\n]|\r\n)/)}),Ae=(ze="")=>({className:"subst",label:"interpol",begin:t(/\\/,ze,/\(/),end:/\)/}),Fe=(ze="")=>({begin:t(ze,/"""/),end:t(/"""/,ze),contains:[fe(ze),_e(ze),Ae(ze)]}),te=(ze="")=>({begin:t(ze,/"/),end:t(/"/,ze),contains:[fe(ze),Ae(ze)]}),U={className:"string",variants:[Fe(),Fe("#"),Fe("##"),Fe("###"),te(),te("#"),te("##"),te("###")]},P=[I.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[I.BACKSLASH_ESCAPE]}],Z={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:P},ce=ze=>{const Ke=t(ze,/\//),mt=t(/\//,ze);return{begin:Ke,end:mt,contains:[...P,{scope:"comment",begin:`#(?!.*${mt})`,end:/$/}]}},pe={scope:"regexp",variants:[ce("###"),ce("##"),ce("#"),Z]},he={match:t(/`/,v,/`/)},ae={className:"variable",match:/\$\d+/},Me={className:"variable",match:`\\$${E}+`},Re=[he,ae,Me],ge={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...ve,Q,U]}]}},D={scope:"keyword",match:t(/@/,s(...R),e(s(/\(/,/\s+/)))},N={scope:"meta",match:t(/@/,v)},K=[ge,D,N],me={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,E,"+")},{className:"type",match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,e(S)),relevance:0}]},j={begin:/</,end:/>/,keywords:L,contains:[...G,...Y,...K,xe,me]};me.contains.push(j);const se={match:t(v,/\s*:/),keywords:"_|0",relevance:0},Ce={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",se,...G,pe,...Y,...ye,...ve,Q,U,...Re,...K,me]},we={begin:/</,end:/>/,keywords:"repeat each",contains:[...G,me]},ke={begin:s(e(t(v,/\s*:/)),e(t(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},We={begin:/\(/,end:/\)/,keywords:L,contains:[ke,...G,...Y,...ve,Q,U,...K,me,Ce],endsParent:!0,illegal:/["']/},lt={match:[/(func|macro)/,/\s+/,s(he.match,v,b)],className:{1:"keyword",3:"title.function"},contains:[we,We,x],illegal:[/\[/,/%/]},Pe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[we,We,x],illegal:/\[|%/},Mt={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},et={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[me],keywords:[..._,...u],end:/}/},tt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,v,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[we,...Y,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:S},...Y],relevance:0}]};for(const ze of U.variants){const Ke=ze.contains.find(J=>J.label==="interpol");Ke.keywords=L;const mt=[...Y,...ye,...ve,Q,U,...Re];Ke.contains=[...mt,{begin:/\(/,end:/\)/,contains:["self",...mt]}]}return{name:"Swift",keywords:L,contains:[...G,lt,Pe,tt,Mt,et,{beginKeywords:"import",end:/$/,contains:[...G],relevance:0},pe,...Y,...ye,...ve,Q,U,...Re,...K,me,Ce]}}return Sh=A,Sh}var Th,vx;function gje(){if(vx)return Th;vx=1;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}/}]}}return Th=n,Th}var xh,Sx;function bje(){if(Sx)return xh;Sx=1;function n(e){const t="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={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"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},f={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},b=[s,{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+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{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}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},f,y,o],g=[...b];return g.pop(),g.push(a),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return xh=n,xh}var Ch,Tx;function yje(){if(Tx)return Ch;Tx=1;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"}]}]}}return Ch=n,Ch}var wh,xx;function Eje(){if(xx)return wh;xx=1;function n(e){const t=e.regex,i=/[a-zA-Z_][a-zA-Z0-9_]*/,s={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"],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(/::/),i,"(::",i,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[s]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},s]}}return wh=n,wh}var Rh,Cx;function vje(){if(Cx)return Rh;Cx=1;function n(e){const 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"]}]}}return Rh=n,Rh}var Ah,wx;function Sje(){if(wx)return Ah;wx=1;function n(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},s={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,i]},r={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,i]};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"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[s,r,{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_]+"}]}}return Ah=n,Ah}var Mh,Rx;function Tje(){if(Rx)return Mh;Rx=1;function n(e){const t=e.regex,i=["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"],s=["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"];let r=["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"];r=r.concat(r.map(y=>`end${y}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},c={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},d={beginKeywords:i.join(" "),keywords:{name:i},relevance:0,contains:[c]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:s}]},_=(y,{relevance:b})=>({beginScope:{1:"template-tag",3:"name"},relevance:b||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...y)],end:/%\}/,keywords:"in",contains:[u,d,o,a]}),m=/[a-z_]+/,h=_(r,{relevance:2}),f=_([m],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),h,f,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",u,d,o,a]}]}}return Mh=n,Mh}var Nh,Ax;function xje(){if(Ax)return Nh;Ax=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["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"],t=["true","false","null","undefined","NaN","Infinity"],i=["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"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,i,s);function c(u){const _=u.regex,m=(fe,{after:_e})=>{const Ae="</"+fe[0].slice(1);return fe.input.indexOf(Ae,_e)!==-1},h=n,f={begin:"<>",end:"</>"},y=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(fe,_e)=>{const Ae=fe[0].length+fe.index,Fe=fe.input[Ae];if(Fe==="<"||Fe===","){_e.ignoreMatch();return}Fe===">"&&(m(fe,{after:Ae})||_e.ignoreMatch());let te;const U=fe.input.substring(Ae);if(te=U.match(/^\s*=/)){_e.ignoreMatch();return}if((te=U.match(/^\s+extends\s+/))&&te.index===0){_e.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},E="[0-9](_?[0-9])*",v=`\\.(${E})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${S})((${v})|\\.)?|(${v}))[eE][+-]?(${E})\\b`},{begin:`\\b(${S})\\b((${v})\\b|\\.)?|(${v})\\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},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},A={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,C]},V={className:"comment",variants:[u.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:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},ee=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,A,I,x,M,{match:/\$\d+/},R];C.contains=ee.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(ee)});const O=[].concat(V,C.contains),H=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(O)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:H},L={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,_.concat(h,"(",_.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:_.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:{_:[...i,...s]}},ne={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},oe={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},ye={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function xe(fe){return _.concat("(?!",fe.join("|"),")")}const le={match:_.concat(/\b/,xe([...r,"super","import"].map(fe=>`${fe}\\s*\\(`)),h,_.lookahead(/\s*\(/)),className:"title.function",relevance:0},ve={begin:_.concat(/\./,_.lookahead(_.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Oe={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},De="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,_.lookahead(De)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),ne,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,A,I,x,M,V,{match:/\$\d+/},R,Y,{className:"attr",begin:h+_.lookahead(":"),relevance:0},Q,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[V,u.REGEXP_MODE,{className:"function",begin:De,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:y},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},oe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,u.inherit(u.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},ve,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},le,ye,L,Oe,{match:/\$[(.]/}]}}function d(u){const _=c(u),m=n,h=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,u.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:h},contains:[_.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:n,keyword:e.concat(g),literal:t,built_in:a.concat(h),"variable.language":o},v={className:"meta",begin:"@"+m},S=(A,I,x)=>{const M=A.contains.findIndex(G=>G.label===I);if(M===-1)throw new Error("can not find mode to replace");A.contains.splice(M,1,x)};Object.assign(_.keywords,E),_.exports.PARAMS_CONTAINS.push(v);const R=_.contains.find(A=>A.className==="attr");_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,R]),_.contains=_.contains.concat([v,f,y]),S(_,"shebang",u.SHEBANG()),S(_,"use_strict",b);const C=_.contains.find(A=>A.label==="func.def");return C.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return Nh=d,Nh}var Oh,Mx;function Cje(){if(Mx)return Oh;Mx=1;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:"$"}]}}return Oh=n,Oh}var Ih,Nx;function wje(){if(Nx)return Ih;Nx=1;function n(e){const t=e.regex,i={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,r),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,r),/ +/,t.either(a,c),/ *#/)}]},u={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])|[%&])?/}]},_={className:"label",begin:/^\w+:/},m=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=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:[i,s,d,u,_,m,h,{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:[h]}]}}return Ih=n,Ih}var kh,Ox;function Rje(){if(Ox)return kh;Ox=1;function n(e){const t=e.regex,i=["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"],s=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],r={begin:t.concat(t.either(...i),"\\s*\\("),relevance:0,keywords:{built_in:i}};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"],built_in:s,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return kh=n,kh}var Dh,Ix;function Aje(){if(Ix)return Dh;Ix=1;function n(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return Dh=n,Dh}var Lh,kx;function Mje(){if(kx)return Lh;kx=1;function n(e){const t=e.regex,i={$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"],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"]},s=["__FILE__","__LINE__"],r=["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"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:i,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(...s))},{scope:"meta",begin:t.concat(/`/,t.either(...r)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:r}]}}return Lh=n,Lh}var Ph,Dx;function Nje(){if(Dx)return Ph;Dx=1;function n(e){const t="\\d(_|\\d)*",i="[eE][-+]?"+t,s=t+"(\\."+t+")?("+i+")?",r="\\w+",a="\\b("+(t+"#"+r+"(\\."+r+")?#("+i+")?")+"|"+s+")";return{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"],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"],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:a,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]}]}}return Ph=n,Ph}var Fh,Lx;function Oje(){if(Lx)return Fh;Lx=1;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-]+>/}]}}return Fh=n,Fh}var Uh,Px;function Ije(){if(Px)return Uh;Px=1;function n(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const i=e.COMMENT(/;;/,/$/),s=["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"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={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/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[i,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,r,e.QUOTE_STRING_MODE,d,u,c]}}return Uh=n,Uh}var Bh,Fx;function kje(){if(Fx)return Bh;Fx=1;function n(e){const t=e.regex,i=/[a-zA-Z]\w*/,s=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],r=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],c=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],d={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,i,/(?=\s*[({])/),className:"title.function"},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,i),t.either(...c)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:i}]}]}},_={variants:[{match:[/class\s+/,i,/\s+is\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},m={relevance:0,match:t.either(...c),className:"operator"},h={className:"string",begin:/"""/,end:/"""/},f={className:"property",begin:t.concat(/\./,t.lookahead(i)),end:i,excludeBegin:!0,relevance:0},y={relevance:0,match:t.concat(/\b_/,i),scope:"variable"},b={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},g=e.C_NUMBER_MODE,E={match:[i,/\s*/,/=/,/\s*/,/\(/,i,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},v=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),S={scope:"subst",begin:/%\(/,end:/\)/,contains:[g,b,d,y,m]},R={scope:"string",begin:/"/,end:/"/,contains:[S,{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}/}]}]};S.contains.push(R);const C=[...s,...o,...r],A={relevance:0,match:t.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:s,"variable.language":o,literal:r},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:r},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,R,h,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,_,E,u,d,m,y,f,A]}}return Bh=n,Bh}var Gh,Ux;function Dje(){if(Ux)return Gh;Ux=1;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_-]+/}]}}return Gh=n,Gh}var Vh,Bx;function Lje(){if(Bx)return Vh;Bx=1;function n(e){const t=["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"],i=["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"],s=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:t,literal:["true","false","nil"],built_in:i.concat(s)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},c={className:"string",begin:"'",end:"'",illegal:"\\n"},d={className:"string",begin:"<<",end:">>"},u={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},_={beginKeywords:"import",end:"$",keywords:o,contains:[a]},m={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,d,m,_,u,e.NUMBER_MODE]}}return Vh=n,Vh}var zh,Gx;function Pje(){if(Gx)return zh;Gx=1;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"],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"],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:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return zh=n,zh}var Hh,Vx;function Fje(){if(Vx)return Hh;Vx=1;function n(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i=e.UNDERSCORE_TITLE_MODE,s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="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:r,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:[i,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:["self",e.C_BLOCK_COMMENT_MODE,t,s]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},t,s]}}return Hh=n,Hh}var X=a$e;X.registerLanguage("1c",l$e());X.registerLanguage("abnf",c$e());X.registerLanguage("accesslog",d$e());X.registerLanguage("actionscript",u$e());X.registerLanguage("ada",p$e());X.registerLanguage("angelscript",f$e());X.registerLanguage("apache",_$e());X.registerLanguage("applescript",m$e());X.registerLanguage("arcade",h$e());X.registerLanguage("arduino",g$e());X.registerLanguage("armasm",b$e());X.registerLanguage("xml",y$e());X.registerLanguage("asciidoc",E$e());X.registerLanguage("aspectj",v$e());X.registerLanguage("autohotkey",S$e());X.registerLanguage("autoit",T$e());X.registerLanguage("avrasm",x$e());X.registerLanguage("awk",C$e());X.registerLanguage("axapta",w$e());X.registerLanguage("bash",R$e());X.registerLanguage("basic",A$e());X.registerLanguage("bnf",M$e());X.registerLanguage("brainfuck",N$e());X.registerLanguage("c",O$e());X.registerLanguage("cal",I$e());X.registerLanguage("capnproto",k$e());X.registerLanguage("ceylon",D$e());X.registerLanguage("clean",L$e());X.registerLanguage("clojure",P$e());X.registerLanguage("clojure-repl",F$e());X.registerLanguage("cmake",U$e());X.registerLanguage("coffeescript",B$e());X.registerLanguage("coq",G$e());X.registerLanguage("cos",V$e());X.registerLanguage("cpp",z$e());X.registerLanguage("crmsh",H$e());X.registerLanguage("crystal",q$e());X.registerLanguage("csharp",Y$e());X.registerLanguage("csp",$$e());X.registerLanguage("css",W$e());X.registerLanguage("d",K$e());X.registerLanguage("markdown",j$e());X.registerLanguage("dart",Q$e());X.registerLanguage("delphi",X$e());X.registerLanguage("diff",Z$e());X.registerLanguage("django",J$e());X.registerLanguage("dns",eWe());X.registerLanguage("dockerfile",tWe());X.registerLanguage("dos",nWe());X.registerLanguage("dsconfig",iWe());X.registerLanguage("dts",sWe());X.registerLanguage("dust",rWe());X.registerLanguage("ebnf",oWe());X.registerLanguage("elixir",aWe());X.registerLanguage("elm",lWe());X.registerLanguage("ruby",cWe());X.registerLanguage("erb",dWe());X.registerLanguage("erlang-repl",uWe());X.registerLanguage("erlang",pWe());X.registerLanguage("excel",fWe());X.registerLanguage("fix",_We());X.registerLanguage("flix",mWe());X.registerLanguage("fortran",hWe());X.registerLanguage("fsharp",gWe());X.registerLanguage("gams",bWe());X.registerLanguage("gauss",yWe());X.registerLanguage("gcode",EWe());X.registerLanguage("gherkin",vWe());X.registerLanguage("glsl",SWe());X.registerLanguage("gml",TWe());X.registerLanguage("go",xWe());X.registerLanguage("golo",CWe());X.registerLanguage("gradle",wWe());X.registerLanguage("graphql",RWe());X.registerLanguage("groovy",AWe());X.registerLanguage("haml",MWe());X.registerLanguage("handlebars",NWe());X.registerLanguage("haskell",OWe());X.registerLanguage("haxe",IWe());X.registerLanguage("hsp",kWe());X.registerLanguage("http",DWe());X.registerLanguage("hy",LWe());X.registerLanguage("inform7",PWe());X.registerLanguage("ini",FWe());X.registerLanguage("irpf90",UWe());X.registerLanguage("isbl",BWe());X.registerLanguage("java",GWe());X.registerLanguage("javascript",VWe());X.registerLanguage("jboss-cli",zWe());X.registerLanguage("json",HWe());X.registerLanguage("julia",qWe());X.registerLanguage("julia-repl",YWe());X.registerLanguage("kotlin",$We());X.registerLanguage("lasso",WWe());X.registerLanguage("latex",KWe());X.registerLanguage("ldif",jWe());X.registerLanguage("leaf",QWe());X.registerLanguage("less",XWe());X.registerLanguage("lisp",ZWe());X.registerLanguage("livecodeserver",JWe());X.registerLanguage("livescript",eKe());X.registerLanguage("llvm",tKe());X.registerLanguage("lsl",nKe());X.registerLanguage("lua",iKe());X.registerLanguage("makefile",sKe());X.registerLanguage("mathematica",rKe());X.registerLanguage("matlab",oKe());X.registerLanguage("maxima",aKe());X.registerLanguage("mel",lKe());X.registerLanguage("mercury",cKe());X.registerLanguage("mipsasm",dKe());X.registerLanguage("mizar",uKe());X.registerLanguage("perl",pKe());X.registerLanguage("mojolicious",fKe());X.registerLanguage("monkey",_Ke());X.registerLanguage("moonscript",mKe());X.registerLanguage("n1ql",hKe());X.registerLanguage("nestedtext",gKe());X.registerLanguage("nginx",bKe());X.registerLanguage("nim",yKe());X.registerLanguage("nix",EKe());X.registerLanguage("node-repl",vKe());X.registerLanguage("nsis",SKe());X.registerLanguage("objectivec",TKe());X.registerLanguage("ocaml",xKe());X.registerLanguage("openscad",CKe());X.registerLanguage("oxygene",wKe());X.registerLanguage("parser3",RKe());X.registerLanguage("pf",AKe());X.registerLanguage("pgsql",MKe());X.registerLanguage("php",NKe());X.registerLanguage("php-template",OKe());X.registerLanguage("plaintext",IKe());X.registerLanguage("pony",kKe());X.registerLanguage("powershell",DKe());X.registerLanguage("processing",LKe());X.registerLanguage("profile",PKe());X.registerLanguage("prolog",FKe());X.registerLanguage("properties",UKe());X.registerLanguage("protobuf",BKe());X.registerLanguage("puppet",GKe());X.registerLanguage("purebasic",VKe());X.registerLanguage("python",zKe());X.registerLanguage("python-repl",HKe());X.registerLanguage("q",qKe());X.registerLanguage("qml",YKe());X.registerLanguage("r",$Ke());X.registerLanguage("reasonml",WKe());X.registerLanguage("rib",KKe());X.registerLanguage("roboconf",jKe());X.registerLanguage("routeros",QKe());X.registerLanguage("rsl",XKe());X.registerLanguage("ruleslanguage",ZKe());X.registerLanguage("rust",JKe());X.registerLanguage("sas",eje());X.registerLanguage("scala",tje());X.registerLanguage("scheme",nje());X.registerLanguage("scilab",ije());X.registerLanguage("scss",sje());X.registerLanguage("shell",rje());X.registerLanguage("smali",oje());X.registerLanguage("smalltalk",aje());X.registerLanguage("sml",lje());X.registerLanguage("sqf",cje());X.registerLanguage("sql",dje());X.registerLanguage("stan",uje());X.registerLanguage("stata",pje());X.registerLanguage("step21",fje());X.registerLanguage("stylus",_je());X.registerLanguage("subunit",mje());X.registerLanguage("swift",hje());X.registerLanguage("taggerscript",gje());X.registerLanguage("yaml",bje());X.registerLanguage("tap",yje());X.registerLanguage("tcl",Eje());X.registerLanguage("thrift",vje());X.registerLanguage("tp",Sje());X.registerLanguage("twig",Tje());X.registerLanguage("typescript",xje());X.registerLanguage("vala",Cje());X.registerLanguage("vbnet",wje());X.registerLanguage("vbscript",Rje());X.registerLanguage("vbscript-html",Aje());X.registerLanguage("verilog",Mje());X.registerLanguage("vhdl",Nje());X.registerLanguage("vim",Oje());X.registerLanguage("wasm",Ije());X.registerLanguage("wren",kje());X.registerLanguage("x86asm",Dje());X.registerLanguage("xl",Lje());X.registerLanguage("xquery",Pje());X.registerLanguage("zephir",Fje());X.HighlightJS=X;X.default=X;var Uje=X;const uo=Rr(Uje),Bje="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.865%203.448l-6.583-3.167c-0.766-0.37-1.677-0.214-2.276%200.385l-12.609%2011.505-5.495-4.167c-0.51-0.391-1.229-0.359-1.703%200.073l-1.76%201.604c-0.583%200.526-0.583%201.443-0.005%201.969l4.766%204.349-4.766%204.349c-0.578%200.526-0.578%201.443%200.005%201.969l1.76%201.604c0.479%200.432%201.193%200.464%201.703%200.073l5.495-4.172%2012.615%2011.51c0.594%200.599%201.505%200.755%202.271%200.385l6.589-3.172c0.693-0.333%201.13-1.031%201.13-1.802v-21.495c0-0.766-0.443-1.469-1.135-1.802zM24.005%2023.266l-9.573-7.266%209.573-7.266z'/%3e%3c/svg%3e",Gje="data:image/svg+xml,%3csvg%20height='2455'%20viewBox='-11.9%20-2%201003.9%20995.6'%20width='2500'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12.1%20353.9s-24-17.3%204.8-40.4l67.1-60s19.2-20.2%2039.5-2.6l619.2%20468.8v224.8s-.3%2035.3-45.6%2031.4z'%20fill='%232489ca'/%3e%3cpath%20d='m171.7%20498.8-159.6%20145.1s-16.4%2012.2%200%2034l74.1%2067.4s17.6%2018.9%2043.6-2.6l169.2-128.3z'%20fill='%231070b3'/%3e%3cpath%20d='m451.9%20500%20292.7-223.5-1.9-223.6s-12.5-48.8-54.2-23.4l-389.5%20354.5z'%20fill='%230877b9'/%3e%3cpath%20d='m697.1%20976.2c17%2017.4%2037.6%2011.7%2037.6%2011.7l228.1-112.4c29.2-19.9%2025.1-44.6%2025.1-44.6v-671.2c0-29.5-30.2-39.7-30.2-39.7l-197.7-95.3c-43.2-26.7-71.5%204.8-71.5%204.8s36.4-26.2%2054.2%2023.4v887.5c0%206.1-1.3%2012.1-3.9%2017.5-5.2%2010.5-16.5%2020.3-43.6%2016.2z'%20fill='%233c99d4'/%3e%3c/svg%3e";uo.configure({languages:[]});uo.configure({languages:["bash"]});uo.highlightAll();const Vje={props:{host:{type:String,required:!1,default:"http://localhost:9600"},language:{type:String,required:!0},client_id:{type:String,required:!0},code:{type:String,required:!0},discussion_id:{type:[String,Number],required:!0},message_id:{type:[String,Number],required:!0}},data(){return{isExecuting:!1,isCopied:!1,executionOutput:""}},mounted(){Le(()=>{Ve.replace()})},computed:{highlightedCode(){let n;this.language==="vue"||this.language==="vue.js"?n="javascript":this.language==="function"?n="json":n=uo.getLanguage(this.language)?this.language:"plaintext";const e=this.code.trim(),t=e.split(`
-`),i=t.length.toString().length,s=t.map((d,u)=>(u+1).toString().padStart(i," ")),r=document.createElement("div");r.classList.add("line-numbers"),r.innerHTML=s.join("<br>");const o=document.createElement("div");o.classList.add("code-container");const a=document.createElement("pre"),c=document.createElement("code");return c.classList.add("code-content"),c.innerHTML=uo.highlight(e,{language:n,ignoreIllegals:!0}).value,a.appendChild(c),o.appendChild(r),o.appendChild(a),o.outerHTML}},methods:{copyCode(){this.isCopied=!0,console.log("Copying code");const n=document.createElement("textarea");n.value=this.code,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),Le(()=>{Ve.replace()})},executeCode(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id?this.discussion_id:0,message_id:this.message_id?this.message_id:0,language:this.language});console.log(n),fetch(`${this.host}/execute_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},executeCode_in_new_tab(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id,language:this.language});console.log(n),fetch(`${this.host}/execute_code_in_new_tab`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},openFolderVsCode(){const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id});console.log(n),fetch(`${this.host}/open_discussion_folder_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openVsCode(){const n=JSON.stringify({client_id:this.client_id,discussion_id:typeof this.discussion_id=="string"?parseInt(this.discussion_id):this.discussion_id,message_id:this.message_id,code:this.code});console.log(n),fetch(`${this.host}/open_code_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openFolder(){const n=JSON.stringify({client_id:this.client_id,discussion_id:this.discussion_id});console.log(n),fetch(`${this.host}/open_discussion_folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})}}},zje={class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},Hje={class:"hljs p-1 rounded-md break-all grid grid-cols-1"},qje={class:"code-container"},Yje=["innerHTML"],$je={class:"flex flex-row bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},Wje={class:"text-2xl mr-2"},Kje=["title"],jje={key:0,class:"text-2xl"},Qje={key:1,class:"hljs mt-0 p-1 rounded-md break-all grid grid-cols-1"},Xje={class:"container h-[200px] overflow-x-auto break-all scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Zje=["innerHTML"];function Jje(n,e,t,i,s,r){return T(),w("div",zje,[l("pre",Hje,[e[9]||(e[9]=Ze("      ")),l("div",qje,[e[7]||(e[7]=Ze(`
-        `)),l("div",{class:"code-content overflow-x-auto break-all scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:r.highlightedCode,contenteditable:"true",onInput:e[0]||(e[0]=(...o)=>n.updateCode&&n.updateCode(...o))},null,40,Yje),e[8]||(e[8]=Ze(`
+`},{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:"}]}]}}return vh=n,vh}var Sh,Ex;function mje(){if(Ex)return Sh;Ex=1;function n(I){return I?typeof I=="string"?I:I.source:null}function e(I){return t("(?=",I,")")}function t(...I){return I.map(M=>n(M)).join("")}function i(I){const x=I[I.length-1];return typeof x=="object"&&x.constructor===Object?(I.splice(I.length-1,1),x):{}}function s(...I){return"("+(i(I).capture?"":"?:")+I.map(G=>n(G)).join("|")+")"}const r=I=>t(/\b/,I,/\w$/.test(I)?/\b/:/\B/),o=["Protocol","Type"].map(r),a=["init","self"].map(r),c=["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"],u=["false","nil","true"],_=["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"],f=s(/[/=\-+!*%<>&|^~?]/,/[\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]/),y=s(f,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=t(f,y,"*"),g=s(/[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]/),E=s(g,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=t(g,E,"*"),S=t(/[A-Z]/,E,"*"),R=["attached","autoclosure",t(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",t(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],C=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function A(I){const x={match:/\s+/,relevance:0},M=I.COMMENT("/\\*","\\*/",{contains:["self"]}),G=[I.C_LINE_COMMENT_MODE,M],V={match:[/\./,s(...o,...a)],className:{2:"keyword"}},ee={match:t(/\./,s(...d)),relevance:0},O=d.filter(ze=>typeof ze=="string").concat(["_|0"]),H=d.filter(ze=>typeof ze!="string").concat(c).map(r),q={variants:[{className:"keyword",match:s(...H,...a)}]},L={$pattern:s(/\b\w+/,/#\w+/),keyword:O.concat(m),literal:u},Y=[V,ee,q],ne={match:t(/\./,s(...h)),relevance:0},oe={className:"built_in",match:t(/\b/,s(...h),/(?=\()/)},ye=[ne,oe],xe={match:/->/,relevance:0},le={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${y})+`}]},ve=[xe,le],Oe="([0-9]_*)+",De="([0-9a-fA-F]_*)+",Q={className:"number",relevance:0,variants:[{match:`\\b(${Oe})(\\.(${Oe}))?([eE][+-]?(${Oe}))?\\b`},{match:`\\b0x(${De})(\\.(${De}))?([pP][+-]?(${Oe}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},fe=(ze="")=>({className:"subst",variants:[{match:t(/\\/,ze,/[0\\tnr"']/)},{match:t(/\\/,ze,/u\{[0-9a-fA-F]{1,8}\}/)}]}),_e=(ze="")=>({className:"subst",match:t(/\\/,ze,/[\t ]*(?:[\r\n]|\r\n)/)}),Ae=(ze="")=>({className:"subst",label:"interpol",begin:t(/\\/,ze,/\(/),end:/\)/}),Fe=(ze="")=>({begin:t(ze,/"""/),end:t(/"""/,ze),contains:[fe(ze),_e(ze),Ae(ze)]}),te=(ze="")=>({begin:t(ze,/"/),end:t(/"/,ze),contains:[fe(ze),Ae(ze)]}),U={className:"string",variants:[Fe(),Fe("#"),Fe("##"),Fe("###"),te(),te("#"),te("##"),te("###")]},P=[I.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[I.BACKSLASH_ESCAPE]}],Z={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:P},ce=ze=>{const Ke=t(ze,/\//),mt=t(/\//,ze);return{begin:Ke,end:mt,contains:[...P,{scope:"comment",begin:`#(?!.*${mt})`,end:/$/}]}},pe={scope:"regexp",variants:[ce("###"),ce("##"),ce("#"),Z]},he={match:t(/`/,v,/`/)},ae={className:"variable",match:/\$\d+/},Me={className:"variable",match:`\\$${E}+`},Re=[he,ae,Me],ge={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:C,contains:[...ve,Q,U]}]}},D={scope:"keyword",match:t(/@/,s(...R),e(s(/\(/,/\s+/)))},N={scope:"meta",match:t(/@/,v)},K=[ge,D,N],me={match:e(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:t(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,E,"+")},{className:"type",match:S,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:t(/\s+&\s+/,e(S)),relevance:0}]},j={begin:/</,end:/>/,keywords:L,contains:[...G,...Y,...K,xe,me]};me.contains.push(j);const se={match:t(v,/\s*:/),keywords:"_|0",relevance:0},Ce={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",se,...G,pe,...Y,...ye,...ve,Q,U,...Re,...K,me]},we={begin:/</,end:/>/,keywords:"repeat each",contains:[...G,me]},ke={begin:s(e(t(v,/\s*:/)),e(t(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},We={begin:/\(/,end:/\)/,keywords:L,contains:[ke,...G,...Y,...ve,Q,U,...K,me,Ce],endsParent:!0,illegal:/["']/},lt={match:[/(func|macro)/,/\s+/,s(he.match,v,b)],className:{1:"keyword",3:"title.function"},contains:[we,We,x],illegal:[/\[/,/%/]},Pe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[we,We,x],illegal:/\[|%/},Mt={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},et={begin:[/precedencegroup/,/\s+/,S],className:{1:"keyword",3:"title"},contains:[me],keywords:[..._,...u],end:/}/},tt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,v,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[we,...Y,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:S},...Y],relevance:0}]};for(const ze of U.variants){const Ke=ze.contains.find(J=>J.label==="interpol");Ke.keywords=L;const mt=[...Y,...ye,...ve,Q,U,...Re];Ke.contains=[...mt,{begin:/\(/,end:/\)/,contains:["self",...mt]}]}return{name:"Swift",keywords:L,contains:[...G,lt,Pe,tt,Mt,et,{beginKeywords:"import",end:/$/,contains:[...G],relevance:0},pe,...Y,...ye,...ve,Q,U,...Re,...K,me,Ce]}}return Sh=A,Sh}var Th,vx;function hje(){if(vx)return Th;vx=1;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}/}]}}return Th=n,Th}var xh,Sx;function gje(){if(Sx)return xh;Sx=1;function n(e){const t="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),m={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"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},f={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},b=[s,{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+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{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}},m,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},f,y,o],g=[...b];return g.pop(),g.push(a),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return xh=n,xh}var Ch,Tx;function bje(){if(Tx)return Ch;Tx=1;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"}]}]}}return Ch=n,Ch}var wh,xx;function yje(){if(xx)return wh;xx=1;function n(e){const t=e.regex,i=/[a-zA-Z_][a-zA-Z0-9_]*/,s={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"],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(/::/),i,"(::",i,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[s]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},s]}}return wh=n,wh}var Rh,Cx;function Eje(){if(Cx)return Rh;Cx=1;function n(e){const 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"]}]}}return Rh=n,Rh}var Ah,wx;function vje(){if(wx)return Ah;wx=1;function n(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},s={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,i]},r={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,i]};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"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[s,r,{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_]+"}]}}return Ah=n,Ah}var Mh,Rx;function Sje(){if(Rx)return Mh;Rx=1;function n(e){const t=e.regex,i=["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"],s=["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"];let r=["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"];r=r.concat(r.map(y=>`end${y}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},c={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},d={beginKeywords:i.join(" "),keywords:{name:i},relevance:0,contains:[c]},u={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:s}]},_=(y,{relevance:b})=>({beginScope:{1:"template-tag",3:"name"},relevance:b||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...y)],end:/%\}/,keywords:"in",contains:[u,d,o,a]}),m=/[a-z_]+/,h=_(r,{relevance:2}),f=_([m],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),h,f,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",u,d,o,a]}]}}return Mh=n,Mh}var Nh,Ax;function Tje(){if(Ax)return Nh;Ax=1;const n="[A-Za-z$_][0-9A-Za-z$_]*",e=["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"],t=["true","false","null","undefined","NaN","Infinity"],i=["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"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],r=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(r,i,s);function c(u){const _=u.regex,m=(fe,{after:_e})=>{const Ae="</"+fe[0].slice(1);return fe.input.indexOf(Ae,_e)!==-1},h=n,f={begin:"<>",end:"</>"},y=/<[A-Za-z0-9\\._:-]+\s*\/>/,b={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(fe,_e)=>{const Ae=fe[0].length+fe.index,Fe=fe.input[Ae];if(Fe==="<"||Fe===","){_e.ignoreMatch();return}Fe===">"&&(m(fe,{after:Ae})||_e.ignoreMatch());let te;const U=fe.input.substring(Ae);if(te=U.match(/^\s*=/)){_e.ignoreMatch();return}if((te=U.match(/^\s+extends\s+/))&&te.index===0){_e.ignoreMatch();return}}},g={$pattern:n,keyword:e,literal:t,built_in:a,"variable.language":o},E="[0-9](_?[0-9])*",v=`\\.(${E})`,S="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${S})((${v})|\\.)?|(${v}))[eE][+-]?(${E})\\b`},{begin:`\\b(${S})\\b((${v})\\b|\\.)?|(${v})\\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},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},A={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},I={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,C],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,C]},V={className:"comment",variants:[u.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:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},ee=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,A,I,x,M,{match:/\$\d+/},R];C.contains=ee.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(ee)});const O=[].concat(V,C.contains),H=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(O)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:H},L={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,_.concat(h,"(",_.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},Y={relevance:0,match:_.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:{_:[...i,...s]}},ne={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},oe={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},ye={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function xe(fe){return _.concat("(?!",fe.join("|"),")")}const le={match:_.concat(/\b/,xe([...r,"super","import"].map(fe=>`${fe}\\s*\\(`)),h,_.lookahead(/\s*\(/)),className:"title.function",relevance:0},ve={begin:_.concat(/\./,_.lookahead(_.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Oe={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},De="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,_.lookahead(De)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:Y},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),ne,u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,A,I,x,M,V,{match:/\$\d+/},R,Y,{className:"attr",begin:h+_.lookahead(":"),relevance:0},Q,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[V,u.REGEXP_MODE,{className:"function",begin:De,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:f.begin,end:f.end},{match:y},{begin:b.begin,"on:begin":b.isTrulyOpeningTag,end:b.end}],subLanguage:"xml",contains:[{begin:b.begin,end:b.end,skip:!0,contains:["self"]}]}]},oe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,u.inherit(u.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},ve,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},le,ye,L,Oe,{match:/\$[(.]/}]}}function d(u){const _=c(u),m=n,h=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,u.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:h},contains:[_.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],E={$pattern:n,keyword:e.concat(g),literal:t,built_in:a.concat(h),"variable.language":o},v={className:"meta",begin:"@"+m},S=(A,I,x)=>{const M=A.contains.findIndex(G=>G.label===I);if(M===-1)throw new Error("can not find mode to replace");A.contains.splice(M,1,x)};Object.assign(_.keywords,E),_.exports.PARAMS_CONTAINS.push(v);const R=_.contains.find(A=>A.className==="attr");_.exports.PARAMS_CONTAINS.push([_.exports.CLASS_REFERENCE,R]),_.contains=_.contains.concat([v,f,y]),S(_,"shebang",u.SHEBANG()),S(_,"use_strict",b);const C=_.contains.find(A=>A.label==="func.def");return C.relevance=0,Object.assign(_,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),_}return Nh=d,Nh}var Oh,Mx;function xje(){if(Mx)return Oh;Mx=1;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:"$"}]}}return Oh=n,Oh}var Ih,Nx;function Cje(){if(Nx)return Ih;Nx=1;function n(e){const t=e.regex,i={className:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,d={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,r),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,r),/ +/,t.either(a,c),/ *#/)}]},u={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])|[%&])?/}]},_={className:"label",begin:/^\w+:/},m=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=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:[i,s,d,u,_,m,h,{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:[h]}]}}return Ih=n,Ih}var kh,Ox;function wje(){if(Ox)return kh;Ox=1;function n(e){const t=e.regex,i=["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"],s=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],r={begin:t.concat(t.either(...i),"\\s*\\("),relevance:0,keywords:{built_in:i}};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"],built_in:s,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[r,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}return kh=n,kh}var Dh,Ix;function Rje(){if(Ix)return Dh;Ix=1;function n(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return Dh=n,Dh}var Lh,kx;function Aje(){if(kx)return Lh;kx=1;function n(e){const t=e.regex,i={$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"],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"]},s=["__FILE__","__LINE__"],r=["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"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:i,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(...s))},{scope:"meta",begin:t.concat(/`/,t.either(...r)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:r}]}}return Lh=n,Lh}var Ph,Dx;function Mje(){if(Dx)return Ph;Dx=1;function n(e){const t="\\d(_|\\d)*",i="[eE][-+]?"+t,s=t+"(\\."+t+")?("+i+")?",r="\\w+",a="\\b("+(t+"#"+r+"(\\."+r+")?#("+i+")?")+"|"+s+")";return{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"],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"],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:a,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]}]}}return Ph=n,Ph}var Fh,Lx;function Nje(){if(Lx)return Fh;Lx=1;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-]+>/}]}}return Fh=n,Fh}var Uh,Px;function Oje(){if(Px)return Uh;Px=1;function n(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const i=e.COMMENT(/;;/,/$/),s=["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"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={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/},d={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},u={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:s},contains:[i,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,r,e.QUOTE_STRING_MODE,d,u,c]}}return Uh=n,Uh}var Bh,Fx;function Ije(){if(Fx)return Bh;Fx=1;function n(e){const t=e.regex,i=/[a-zA-Z]\w*/,s=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],r=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],c=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],d={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,i,/(?=\s*[({])/),className:"title.function"},u={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,i),t.either(...c)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:i}]}]}},_={variants:[{match:[/class\s+/,i,/\s+is\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},m={relevance:0,match:t.either(...c),className:"operator"},h={className:"string",begin:/"""/,end:/"""/},f={className:"property",begin:t.concat(/\./,t.lookahead(i)),end:i,excludeBegin:!0,relevance:0},y={relevance:0,match:t.concat(/\b_/,i),scope:"variable"},b={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},g=e.C_NUMBER_MODE,E={match:[i,/\s*/,/=/,/\s*/,/\(/,i,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},v=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),S={scope:"subst",begin:/%\(/,end:/\)/,contains:[g,b,d,y,m]},R={scope:"string",begin:/"/,end:/"/,contains:[S,{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}/}]}]};S.contains.push(R);const C=[...s,...o,...r],A={relevance:0,match:t.concat("\\b(?!",C.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:s,"variable.language":o,literal:r},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:r},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,R,h,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,_,E,u,d,m,y,f,A]}}return Bh=n,Bh}var Gh,Ux;function kje(){if(Ux)return Gh;Ux=1;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_-]+/}]}}return Gh=n,Gh}var Vh,Bx;function Dje(){if(Bx)return Vh;Bx=1;function n(e){const t=["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"],i=["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"],s=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:t,literal:["true","false","nil"],built_in:i.concat(s)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},c={className:"string",begin:"'",end:"'",illegal:"\\n"},d={className:"string",begin:"<<",end:">>"},u={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},_={beginKeywords:"import",end:"$",keywords:o,contains:[a]},m={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,d,m,_,u,e.NUMBER_MODE]}}return Vh=n,Vh}var zh,Gx;function Lje(){if(Gx)return zh;Gx=1;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"],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"],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:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return zh=n,zh}var Hh,Vx;function Pje(){if(Vx)return Hh;Vx=1;function n(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i=e.UNDERSCORE_TITLE_MODE,s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="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:r,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:[i,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:["self",e.C_BLOCK_COMMENT_MODE,t,s]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},t,s]}}return Hh=n,Hh}var X=o$e;X.registerLanguage("1c",a$e());X.registerLanguage("abnf",l$e());X.registerLanguage("accesslog",c$e());X.registerLanguage("actionscript",d$e());X.registerLanguage("ada",u$e());X.registerLanguage("angelscript",p$e());X.registerLanguage("apache",f$e());X.registerLanguage("applescript",_$e());X.registerLanguage("arcade",m$e());X.registerLanguage("arduino",h$e());X.registerLanguage("armasm",g$e());X.registerLanguage("xml",b$e());X.registerLanguage("asciidoc",y$e());X.registerLanguage("aspectj",E$e());X.registerLanguage("autohotkey",v$e());X.registerLanguage("autoit",S$e());X.registerLanguage("avrasm",T$e());X.registerLanguage("awk",x$e());X.registerLanguage("axapta",C$e());X.registerLanguage("bash",w$e());X.registerLanguage("basic",R$e());X.registerLanguage("bnf",A$e());X.registerLanguage("brainfuck",M$e());X.registerLanguage("c",N$e());X.registerLanguage("cal",O$e());X.registerLanguage("capnproto",I$e());X.registerLanguage("ceylon",k$e());X.registerLanguage("clean",D$e());X.registerLanguage("clojure",L$e());X.registerLanguage("clojure-repl",P$e());X.registerLanguage("cmake",F$e());X.registerLanguage("coffeescript",U$e());X.registerLanguage("coq",B$e());X.registerLanguage("cos",G$e());X.registerLanguage("cpp",V$e());X.registerLanguage("crmsh",z$e());X.registerLanguage("crystal",H$e());X.registerLanguage("csharp",q$e());X.registerLanguage("csp",Y$e());X.registerLanguage("css",$$e());X.registerLanguage("d",W$e());X.registerLanguage("markdown",K$e());X.registerLanguage("dart",j$e());X.registerLanguage("delphi",Q$e());X.registerLanguage("diff",X$e());X.registerLanguage("django",Z$e());X.registerLanguage("dns",J$e());X.registerLanguage("dockerfile",eWe());X.registerLanguage("dos",tWe());X.registerLanguage("dsconfig",nWe());X.registerLanguage("dts",iWe());X.registerLanguage("dust",sWe());X.registerLanguage("ebnf",rWe());X.registerLanguage("elixir",oWe());X.registerLanguage("elm",aWe());X.registerLanguage("ruby",lWe());X.registerLanguage("erb",cWe());X.registerLanguage("erlang-repl",dWe());X.registerLanguage("erlang",uWe());X.registerLanguage("excel",pWe());X.registerLanguage("fix",fWe());X.registerLanguage("flix",_We());X.registerLanguage("fortran",mWe());X.registerLanguage("fsharp",hWe());X.registerLanguage("gams",gWe());X.registerLanguage("gauss",bWe());X.registerLanguage("gcode",yWe());X.registerLanguage("gherkin",EWe());X.registerLanguage("glsl",vWe());X.registerLanguage("gml",SWe());X.registerLanguage("go",TWe());X.registerLanguage("golo",xWe());X.registerLanguage("gradle",CWe());X.registerLanguage("graphql",wWe());X.registerLanguage("groovy",RWe());X.registerLanguage("haml",AWe());X.registerLanguage("handlebars",MWe());X.registerLanguage("haskell",NWe());X.registerLanguage("haxe",OWe());X.registerLanguage("hsp",IWe());X.registerLanguage("http",kWe());X.registerLanguage("hy",DWe());X.registerLanguage("inform7",LWe());X.registerLanguage("ini",PWe());X.registerLanguage("irpf90",FWe());X.registerLanguage("isbl",UWe());X.registerLanguage("java",BWe());X.registerLanguage("javascript",GWe());X.registerLanguage("jboss-cli",VWe());X.registerLanguage("json",zWe());X.registerLanguage("julia",HWe());X.registerLanguage("julia-repl",qWe());X.registerLanguage("kotlin",YWe());X.registerLanguage("lasso",$We());X.registerLanguage("latex",WWe());X.registerLanguage("ldif",KWe());X.registerLanguage("leaf",jWe());X.registerLanguage("less",QWe());X.registerLanguage("lisp",XWe());X.registerLanguage("livecodeserver",ZWe());X.registerLanguage("livescript",JWe());X.registerLanguage("llvm",eKe());X.registerLanguage("lsl",tKe());X.registerLanguage("lua",nKe());X.registerLanguage("makefile",iKe());X.registerLanguage("mathematica",sKe());X.registerLanguage("matlab",rKe());X.registerLanguage("maxima",oKe());X.registerLanguage("mel",aKe());X.registerLanguage("mercury",lKe());X.registerLanguage("mipsasm",cKe());X.registerLanguage("mizar",dKe());X.registerLanguage("perl",uKe());X.registerLanguage("mojolicious",pKe());X.registerLanguage("monkey",fKe());X.registerLanguage("moonscript",_Ke());X.registerLanguage("n1ql",mKe());X.registerLanguage("nestedtext",hKe());X.registerLanguage("nginx",gKe());X.registerLanguage("nim",bKe());X.registerLanguage("nix",yKe());X.registerLanguage("node-repl",EKe());X.registerLanguage("nsis",vKe());X.registerLanguage("objectivec",SKe());X.registerLanguage("ocaml",TKe());X.registerLanguage("openscad",xKe());X.registerLanguage("oxygene",CKe());X.registerLanguage("parser3",wKe());X.registerLanguage("pf",RKe());X.registerLanguage("pgsql",AKe());X.registerLanguage("php",MKe());X.registerLanguage("php-template",NKe());X.registerLanguage("plaintext",OKe());X.registerLanguage("pony",IKe());X.registerLanguage("powershell",kKe());X.registerLanguage("processing",DKe());X.registerLanguage("profile",LKe());X.registerLanguage("prolog",PKe());X.registerLanguage("properties",FKe());X.registerLanguage("protobuf",UKe());X.registerLanguage("puppet",BKe());X.registerLanguage("purebasic",GKe());X.registerLanguage("python",VKe());X.registerLanguage("python-repl",zKe());X.registerLanguage("q",HKe());X.registerLanguage("qml",qKe());X.registerLanguage("r",YKe());X.registerLanguage("reasonml",$Ke());X.registerLanguage("rib",WKe());X.registerLanguage("roboconf",KKe());X.registerLanguage("routeros",jKe());X.registerLanguage("rsl",QKe());X.registerLanguage("ruleslanguage",XKe());X.registerLanguage("rust",ZKe());X.registerLanguage("sas",JKe());X.registerLanguage("scala",eje());X.registerLanguage("scheme",tje());X.registerLanguage("scilab",nje());X.registerLanguage("scss",ije());X.registerLanguage("shell",sje());X.registerLanguage("smali",rje());X.registerLanguage("smalltalk",oje());X.registerLanguage("sml",aje());X.registerLanguage("sqf",lje());X.registerLanguage("sql",cje());X.registerLanguage("stan",dje());X.registerLanguage("stata",uje());X.registerLanguage("step21",pje());X.registerLanguage("stylus",fje());X.registerLanguage("subunit",_je());X.registerLanguage("swift",mje());X.registerLanguage("taggerscript",hje());X.registerLanguage("yaml",gje());X.registerLanguage("tap",bje());X.registerLanguage("tcl",yje());X.registerLanguage("thrift",Eje());X.registerLanguage("tp",vje());X.registerLanguage("twig",Sje());X.registerLanguage("typescript",Tje());X.registerLanguage("vala",xje());X.registerLanguage("vbnet",Cje());X.registerLanguage("vbscript",wje());X.registerLanguage("vbscript-html",Rje());X.registerLanguage("verilog",Aje());X.registerLanguage("vhdl",Mje());X.registerLanguage("vim",Nje());X.registerLanguage("wasm",Oje());X.registerLanguage("wren",Ije());X.registerLanguage("x86asm",kje());X.registerLanguage("xl",Dje());X.registerLanguage("xquery",Lje());X.registerLanguage("zephir",Pje());X.HighlightJS=X;X.default=X;var Fje=X;const uo=Rr(Fje),Uje="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.865%203.448l-6.583-3.167c-0.766-0.37-1.677-0.214-2.276%200.385l-12.609%2011.505-5.495-4.167c-0.51-0.391-1.229-0.359-1.703%200.073l-1.76%201.604c-0.583%200.526-0.583%201.443-0.005%201.969l4.766%204.349-4.766%204.349c-0.578%200.526-0.578%201.443%200.005%201.969l1.76%201.604c0.479%200.432%201.193%200.464%201.703%200.073l5.495-4.172%2012.615%2011.51c0.594%200.599%201.505%200.755%202.271%200.385l6.589-3.172c0.693-0.333%201.13-1.031%201.13-1.802v-21.495c0-0.766-0.443-1.469-1.135-1.802zM24.005%2023.266l-9.573-7.266%209.573-7.266z'/%3e%3c/svg%3e",Bje="data:image/svg+xml,%3csvg%20height='2455'%20viewBox='-11.9%20-2%201003.9%20995.6'%20width='2500'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12.1%20353.9s-24-17.3%204.8-40.4l67.1-60s19.2-20.2%2039.5-2.6l619.2%20468.8v224.8s-.3%2035.3-45.6%2031.4z'%20fill='%232489ca'/%3e%3cpath%20d='m171.7%20498.8-159.6%20145.1s-16.4%2012.2%200%2034l74.1%2067.4s17.6%2018.9%2043.6-2.6l169.2-128.3z'%20fill='%231070b3'/%3e%3cpath%20d='m451.9%20500%20292.7-223.5-1.9-223.6s-12.5-48.8-54.2-23.4l-389.5%20354.5z'%20fill='%230877b9'/%3e%3cpath%20d='m697.1%20976.2c17%2017.4%2037.6%2011.7%2037.6%2011.7l228.1-112.4c29.2-19.9%2025.1-44.6%2025.1-44.6v-671.2c0-29.5-30.2-39.7-30.2-39.7l-197.7-95.3c-43.2-26.7-71.5%204.8-71.5%204.8s36.4-26.2%2054.2%2023.4v887.5c0%206.1-1.3%2012.1-3.9%2017.5-5.2%2010.5-16.5%2020.3-43.6%2016.2z'%20fill='%233c99d4'/%3e%3c/svg%3e";uo.configure({languages:[]});uo.configure({languages:["bash"]});uo.highlightAll();const Gje={props:{host:{type:String,required:!1,default:"http://localhost:9600"},language:{type:String,required:!0},client_id:{type:String,required:!0},code:{type:String,required:!0},discussion_id:{type:[String,Number],required:!0},message_id:{type:[String,Number],required:!0}},data(){return{isExecuting:!1,isCopied:!1,executionOutput:""}},mounted(){Le(()=>{Ve.replace()})},computed:{highlightedCode(){let n;this.language==="vue"||this.language==="vue.js"?n="javascript":this.language==="function"?n="json":n=uo.getLanguage(this.language)?this.language:"plaintext";const e=this.code.trim(),t=e.split(`
+`),i=t.length.toString().length,s=t.map((d,u)=>(u+1).toString().padStart(i," ")),r=document.createElement("div");r.classList.add("line-numbers"),r.innerHTML=s.join("<br>");const o=document.createElement("div");o.classList.add("code-container");const a=document.createElement("pre"),c=document.createElement("code");return c.classList.add("code-content"),c.innerHTML=uo.highlight(e,{language:n,ignoreIllegals:!0}).value,a.appendChild(c),o.appendChild(r),o.appendChild(a),o.outerHTML}},methods:{copyCode(){this.isCopied=!0,console.log("Copying code");const n=document.createElement("textarea");n.value=this.code,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),Le(()=>{Ve.replace()})},executeCode(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id?this.discussion_id:0,message_id:this.message_id?this.message_id:0,language:this.language});console.log(n),fetch(`${this.host}/execute_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},executeCode_in_new_tab(){this.isExecuting=!0;const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id,language:this.language});console.log(n),fetch(`${this.host}/execute_code_in_new_tab`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>(this.isExecuting=!1,e.json())).then(e=>{console.log(e),this.executionOutput=e.output}).catch(e=>{this.isExecuting=!1,console.error("Fetch error:",e)})},openFolderVsCode(){const n=JSON.stringify({client_id:this.client_id,code:this.code,discussion_id:this.discussion_id,message_id:this.message_id});console.log(n),fetch(`${this.host}/open_discussion_folder_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openVsCode(){const n=JSON.stringify({client_id:this.client_id,discussion_id:typeof this.discussion_id=="string"?parseInt(this.discussion_id):this.discussion_id,message_id:this.message_id,code:this.code});console.log(n),fetch(`${this.host}/open_code_in_vs_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})},openFolder(){const n=JSON.stringify({client_id:this.client_id,discussion_id:this.discussion_id});console.log(n),fetch(`${this.host}/open_discussion_folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:n}).then(e=>e.json()).then(e=>{console.log(e)}).catch(e=>{console.error("Fetch error:",e)})}}},Vje={class:"bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},zje={class:"hljs p-1 rounded-md break-all grid grid-cols-1"},Hje={class:"code-container"},qje=["innerHTML"],Yje={class:"flex flex-row bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel p-2 rounded-lg shadow-sm"},$je={class:"text-2xl mr-2"},Wje=["title"],Kje={key:0,class:"text-2xl"},jje={key:1,class:"hljs mt-0 p-1 rounded-md break-all grid grid-cols-1"},Qje={class:"container h-[200px] overflow-x-auto break-all scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Xje=["innerHTML"];function Zje(n,e,t,i,s,r){return T(),w("div",Vje,[l("pre",zje,[e[9]||(e[9]=Ze("      ")),l("div",Hje,[e[7]||(e[7]=Ze(`
+        `)),l("div",{class:"code-content overflow-x-auto break-all scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:r.highlightedCode,contenteditable:"true",onInput:e[0]||(e[0]=(...o)=>n.updateCode&&n.updateCode(...o))},null,40,qje),e[8]||(e[8]=Ze(`
         `))]),e[10]||(e[10]=Ze(`
 
-    `))]),l("div",$je,[l("span",Wje,$(t.language.trim()),1),l("button",{onClick:e[1]||(e[1]=(...o)=>r.copyCode&&r.copyCode(...o)),title:s.isCopied?"Copied!":"Copy code",class:Ue([s.isCopied?"bg-green-500":"","px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"])},e[11]||(e[11]=[l("i",{"data-feather":"copy"},null,-1)]),10,Kje),["function","python","sh","shell","bash","cmd","powershell","latex","mermaid","graphviz","dot","javascript","html","html5","svg"].includes(t.language)?(T(),w("button",{key:0,ref:"btn_code_exec",onClick:e[2]||(e[2]=(...o)=>r.executeCode&&r.executeCode(...o)),title:"execute",class:Ue(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",s.isExecuting?"bg-green-500":""])},e[12]||(e[12]=[l("i",{"data-feather":"play-circle"},null,-1)]),2)):B("",!0),["airplay","mermaid","graphviz","dot","javascript","html","html5","svg","css"].includes(t.language.trim())?(T(),w("button",{key:1,ref:"btn_code_exec_in_new_tab",onClick:e[3]||(e[3]=(...o)=>r.executeCode_in_new_tab&&r.executeCode_in_new_tab(...o)),title:"execute",class:Ue(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",s.isExecuting?"bg-green-500":""])},e[13]||(e[13]=[l("i",{"data-feather":"airplay"},null,-1)]),2)):B("",!0),l("button",{onClick:e[4]||(e[4]=(...o)=>r.openFolder&&r.openFolder(...o)),title:"open code project folder",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[14]||(e[14]=[l("i",{"data-feather":"folder"},null,-1)])),["python","latex","html"].includes(t.language.trim())?(T(),w("button",{key:2,onClick:e[5]||(e[5]=(...o)=>r.openFolderVsCode&&r.openFolderVsCode(...o)),title:"open code project folder in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[15]||(e[15]=[l("img",{src:Bje,width:"25",height:"25"},null,-1)]))):B("",!0),["python","latex","html"].includes(t.language.trim())?(T(),w("button",{key:3,onClick:e[6]||(e[6]=(...o)=>r.openVsCode&&r.openVsCode(...o)),title:"open code in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[16]||(e[16]=[l("img",{src:Gje,width:"25",height:"25"},null,-1)]))):B("",!0)]),s.executionOutput?(T(),w("span",jje,"Execution output")):B("",!0),s.executionOutput?(T(),w("pre",Qje,[e[19]||(e[19]=Ze("      ")),l("div",Xje,[e[17]||(e[17]=Ze(`
-        `)),l("div",{ref:"execution_output",class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:s.executionOutput},null,8,Zje),e[18]||(e[18]=Ze(`
+    `))]),l("div",Yje,[l("span",$je,$(t.language.trim()),1),l("button",{onClick:e[1]||(e[1]=(...o)=>r.copyCode&&r.copyCode(...o)),title:s.isCopied?"Copied!":"Copy code",class:Ue([s.isCopied?"bg-green-500":"","px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"])},e[11]||(e[11]=[l("i",{"data-feather":"copy"},null,-1)]),10,Wje),["function","python","sh","shell","bash","cmd","powershell","latex","mermaid","graphviz","dot","javascript","html","html5","svg"].includes(t.language)?(T(),w("button",{key:0,ref:"btn_code_exec",onClick:e[2]||(e[2]=(...o)=>r.executeCode&&r.executeCode(...o)),title:"execute",class:Ue(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",s.isExecuting?"bg-green-500":""])},e[12]||(e[12]=[l("i",{"data-feather":"play-circle"},null,-1)]),2)):B("",!0),["airplay","mermaid","graphviz","dot","javascript","html","html5","svg","css"].includes(t.language.trim())?(T(),w("button",{key:1,ref:"btn_code_exec_in_new_tab",onClick:e[3]||(e[3]=(...o)=>r.executeCode_in_new_tab&&r.executeCode_in_new_tab(...o)),title:"execute",class:Ue(["px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200",s.isExecuting?"bg-green-500":""])},e[13]||(e[13]=[l("i",{"data-feather":"airplay"},null,-1)]),2)):B("",!0),l("button",{onClick:e[4]||(e[4]=(...o)=>r.openFolder&&r.openFolder(...o)),title:"open code project folder",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[14]||(e[14]=[l("i",{"data-feather":"folder"},null,-1)])),["python","latex","html"].includes(t.language.trim())?(T(),w("button",{key:2,onClick:e[5]||(e[5]=(...o)=>r.openFolderVsCode&&r.openFolderVsCode(...o)),title:"open code project folder in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[15]||(e[15]=[l("img",{src:Uje,width:"25",height:"25"},null,-1)]))):B("",!0),["python","latex","html"].includes(t.language.trim())?(T(),w("button",{key:3,onClick:e[6]||(e[6]=(...o)=>r.openVsCode&&r.openVsCode(...o)),title:"open code in vscode",class:"px-2 py-1 mr-2 mb-2 text-left text-sm font-medium rounded-lg hover:bg-primary dark:hover:bg-primary text-white transition-colors duration-200"},e[16]||(e[16]=[l("img",{src:Bje,width:"25",height:"25"},null,-1)]))):B("",!0)]),s.executionOutput?(T(),w("span",Kje,"Execution output")):B("",!0),s.executionOutput?(T(),w("pre",jje,[e[19]||(e[19]=Ze("      ")),l("div",Qje,[e[17]||(e[17]=Ze(`
+        `)),l("div",{ref:"execution_output",class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:s.executionOutput},null,8,Xje),e[18]||(e[18]=Ze(`
       `))]),e[20]||(e[20]=Ze(`
-    `))])):B("",!0)])}const eQe=st(Vje,[["render",Jje]]);var OM={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(kA,function(){function t(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==92)return!1;var u=a.src.slice(++d).match(/^(?:\\\[|\\\(|begin\{([^}]*)\})/);if(!u)return!1;d+=u[0].length;var _,m,h;u[0]==="\\["?(_="display_math",m="\\\\]"):u[0]==="\\("?(_="inline_math",m="\\\\)"):u[1]&&(_="math",m="\\end{"+u[1]+"}",h=!0);var f=a.src.indexOf(m,d);if(f===-1)return!1;var y=f+m.length;if(!c){var b=a.push(_,"",0);b.content=h?a.src.slice(a.pos,y):a.src.slice(d,f)}return a.pos=y,!0}function i(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==36)return!1;var u="$",_=a.src.charCodeAt(++d);if(_===36){if(u="$$",a.src.charCodeAt(++d)===36)return!1}else if(_===32||_===9||_===10)return!1;var m=a.src.indexOf(u,d);if(m===-1||a.src.charCodeAt(m-1)===92)return!1;var h=m+u.length;if(u.length===1){var f=a.src.charCodeAt(m-1);if(f===32||f===9||f===10)return!1;var y=a.src.charCodeAt(h);if(y>=48&&y<58)return!1}if(!c){var b=a.push(u.length===1?"inline_math":"display_math","",0);b.content=a.src.slice(d,m)}return a.pos=h,!0}function s(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")}function r(a,c){return Object.keys(c).reduce(function(d,u){return d[u]===void 0&&(d[u]=c[u]),d},a)}var o={math:"Math",inline_math:"InlineMath",display_math:"DisplayMath"};return function(a){var c={beforeMath:"",afterMath:"",beforeInlineMath:"\\(",afterInlineMath:"\\)",beforeDisplayMath:"\\[",afterDisplayMath:"\\]"};return a=r(a||{},c),function(d){d.inline.ruler.before("escape","math",t),d.inline.ruler.push("texMath",i),Object.keys(o).forEach(function(u){var _=a["before"+o[u]],m=a["after"+o[u]];d.renderer.rules[u]=function(h,f){return _+s(h[f].content)+m}})}}})})(OM);var tQe=OM.exports;const nQe=Rr(tQe);function iQe(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}const sQe={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:eQe},setup(n){const e=new Hye({html:!0,highlight:(r,o)=>{const a=o&&uo.getLanguage(o)?o:"plaintext";return uo.highlight(a,r).value},renderInline:!0,breaks:!0}).use(Wqe).use(Wo).use(eYe,{figcaption:!0}).use(_Ye).use(Zqe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:`
-`}).use(nQe({inlineMath:[["$","$"],["\\(","\\)"]],blockMath:[["$$","$$"],["\\[","\\]"]]})),t=ot([]),i=()=>{if(n.markdownText){let r=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a<r.length;a++)r[a].type!=="fence"?o.push(r[a]):(o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:iQe(r[a].info),code:r[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];Le(()=>{Ve.replace()})},s=(r,o)=>{t.value[r].code=o};return Tn(()=>n.markdownText,i),cs(()=>{i(),Le(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:s}}},rQe={class:"break-all container w-full"},oQe={ref:"mdRender",class:"markdown-content"},aQe=["innerHTML"];function lQe(n,e,t,i,s,r){const o=nt("code-block");return T(),w("div",rQe,[l("div",oQe,[(T(!0),w(Be,null,Xe(i.markdownItems,(a,c)=>(T(),w("div",{key:c},[a.type==="code"?(T(),at(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>i.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),w("div",{key:1,innerHTML:a.html},null,8,aQe))]))),128))],512)])}const lp=st(sQe,[["render",lQe]]),cQe={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){Le(()=>{Ve.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},dQe={class:"flex items-center space-x-2"},uQe=["value","type","placeholder"],pQe=["value","min","max"],fQe=["accept"];function _Qe(n,e,t,i,s,r){return T(),w("div",dQe,[n.useSlider?(T(),w("input",{key:1,type:"range",value:parseInt(s.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>r.handleSliderInput&&r.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,pQe)):(T(),w("input",{key:0,value:s.inputValue,type:t.inputType,placeholder:s.placeholderText,onInput:e[0]||(e[0]=(...o)=>r.handleInput&&r.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>r.handlePaste&&r.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,uQe)),l("button",{onClick:e[3]||(e[3]=(...o)=>r.pasteFromClipboard&&r.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[l("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),w("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFileInput&&r.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[l("i",{"data-feather":"upload"},null,-1)]))):B("",!0),t.inputType==="file"?(T(),w("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,fQe)):B("",!0)])}const O0=st(cQe,[["render",_Qe]]),mQe={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},hQe={class:"w-full"},gQe={class:"break-words"},bQe={class:"break-words mt-2"},yQe={class:"mt-4"};function EQe(n,e,t,i,s,r){return T(),w("div",hQe,[l("div",gQe,[(T(!0),w(Be,null,Xe(t.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Wt({backgroundColor:s.colors[a%s.colors.length]})},$(o[0]),5)]))),128))]),l("div",bQe,[(T(!0),w(Be,null,Xe(t.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Wt({backgroundColor:s.colors[a%s.colors.length]})},$(o[1]),5)]))),128))]),l("div",yQe,[l("strong",null,"Total Tokens: "+$(t.namedTokens.length),1)])])}const vQe=st(mQe,[["render",EQe]]),SQe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function TQe(n,e,t,i,s,r){return T(),w("button",CR({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,bk(n.$listeners)),[on(n.$slots,"icon"),on(n.$slots,"default")],16)}const IM=st(SQe,[["render",TQe]]),xQe={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},CQe={key:1,class:"flex flex-wrap"},wQe={key:2,class:"mb-2"};function RQe(n,e,t,i,s,r){return T(),w("div",null,[s.isActive?(T(),w("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):B("",!0),k(l("div",{class:Ue(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&s.isHovered,active:s.isActive}]),onMouseenter:e[2]||(e[2]=o=>s.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>s.isHovered=!1),onClick:e[4]||(e[4]=W((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:Wt({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),w("div",{key:0,onClick:e[1]||(e[1]=o=>s.shrink=!0),class:Ue([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},$(t.title),3)):B("",!0),t.isHorizontal?(T(),w("div",CQe,[on(n.$slots,"default")])):(T(),w("div",wQe,[on(n.$slots,"default")]))],38),[[_t,s.shrink===!1]]),t.is_subcard?k((T(),w("div",{key:1,onClick:e[5]||(e[5]=o=>s.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},$(t.title),513)),[[_t,s.shrink===!0]]):k((T(),w("div",{key:2,onClick:e[6]||(e[6]=o=>s.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[_t,s.shrink===!0]])])}const cp=st(xQe,[["render",RQe]]),kM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",DM="/assets/python_block-Bt12VGEE.png",LM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",PM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",FM="/assets/cpp_block-kkmuBJ_E.png",UM="/assets/html5_block-beC_-Wtz.png",BM="/assets/LaTeX_block-BNFNi2yr.png",GM="/assets/bash_block-DZNRrwlz.png",AQe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",MQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",NQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",OQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",IQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",VM="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",kQe={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'<path d="M18 6L6 18M6 6l12 12"/>';case"check":return'<path d="M20 6L9 17l-5-5"/>';case"code":return'<path d="M8 7l-5 5 5 5"/><path d="M16 7l5 5-5 5"/><line x1="10" y1="4" x2="14" y2="20"/>';case"python":return'<path d="M12 2C5.4 2 6 4.5 6 4.5v2.8h6.5v1H4.5S2 7.7 2 12c0 4.3 2.5 4.2 2.5 4.2h2.3v-2.5c0-2.5 2.2-2.5 2.2-2.5h6.1c2.3 0 2.2-2.2 2.2-2.2V5c0-2.8-2.9-3-5.8-3zm-3.5 1.7c.5 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1z" fill="currentColor"/><path d="M12 22c6.6 0 6-2.5 6-2.5v-2.8h-6.5v-1H19.5s2.5-.6 2.5-4.9c0-4.3-2.5-4.2-2.5-4.2h-2.3v2.5c0 2.5-2.2 2.5-2.2 2.5H8.9c-2.3 0-2.2 2.2-2.2 2.2V19c0 2.8 2.9 3 5.8 3zm3.5-1.7c-.5 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z" fill="currentColor"/>';case"js":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">JS</text>';case"typescript":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">TS</text>';case"braces":return'<path d="M7 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h3m10-10h3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-3"/>';case"cplusplus":case"c++":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="10" font-weight="bold" text-anchor="middle" fill="currentColor">C++</text>';case"csharp":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">C#</text>';case"go":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">Go</text>';case"r-project":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="16" font-weight="bold" text-anchor="middle" fill="currentColor">R</text>';case"rust":return'<path d="M12 2L2 7v10l10 5 10-5V7L12 2z M12 22v-6 M22 7l-10 5-10-5 M2 17l10-5 10 5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"swift":return'<path d="M21 12c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.4 0 2.8-.4 4-1 M14 9c-1.7-1.7-3.7-2.6-5.5-2.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"kotlin":return'<path d="M2 2v20h20L2 2z M2 22L22 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"java":return'<path fill="currentColor" d="M8.5 18.5c0 0-1.3.7.9 1 2.7.3 4.1.3 7-.3 0 0 .8.5 1.9.9-6.7 2.9-15.2-.7-9.8-1.6zm-1-3.5c0 0-1.5 1.1.8 1.3 2.9.3 5.2.3 9.1-.4 0 0 .6.6 1.4.9-7.9 2.3-16.7.2-11.3-1.8zm9.2-6.5c1.7 1.9-.4 3.6-.4 3.6s4.2-2.2 2.3-4.9c-1.8-2.5-3.2-3.8 4.3-8.1 0 0-11.8 3-6.2 9.4zm4.9 12.4c0 0 1 .8-1.1 1.4-3.9 1.2-16.3 1.5-19.7.1-1.2-.5 1.1-1.3 1.8-1.4.8-.2 1.2-.1 1.2-.1-1.4-1-9 1.9-3.8 2.7 14.1 2.3 25.8-1 21.6-2.7zm-15.4-9.3c0 0-6.3 1.5-2.2 2 1.7.2 5.1.2 8.3-.1 2.6-.2 5.2-.7 5.2-.7s-.9.4-1.6.8c-6.4 1.7-18.8.9-15.2-.8 3-1.4 5.5-1.2 5.5-1.2zm12.4 6.9c6.5-3.4 3.5-6.6 1.4-6.2-.5.1-.7.2-.7.2s.2-.3.6-.4c4.2-1.5 7.4 4.3-1.4 6.6 0-.1.1-.1.1-.2z"/>';case"html5":return'<path fill="currentColor" d="M3 2l1.5 17L12 22l7.5-3L21 2H3zm4.5 6h9l-.3 3H8.4l.2 2h8.5l-.6 6.5L12 21l-4.5-1.5L7 16h2.2l.2 2.2 2.6.7 2.6-.7.4-3.7H7.3L6.5 8z"/>';case"css3":return'<path d="M4 3l1.5 17L12 22l6.5-2L20 3H4zm3.5 7h9l-.3 3H8.4l.2 2h8l-.5 5.5-3.8 1.3-3.8-1.3-.3-3H5.5l.5 5.5L12 22l6-2 .8-9H7.5l.3-3z" fill="currentColor"/>';case"vuejs":return'<path d="M2 3l10 18L22 3h-4l-6 10.5L6 3H2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"react":return'<circle cx="12" cy="12" r="2.5" fill="currentColor"/><path d="M12 9.5c1.8-2.3 3.7-3.8 5.5-3.8 1.3 0 2.4.6 3.1 1.7 1.1 1.9.4 4.5-1.8 7.1M12 14.5c-1.8 2.3-3.7 3.8-5.5 3.8-1.3 0-2.4-.6-3.1-1.7-1.1-1.9-.4-4.5 1.8-7.1M5.5 6.5c1.9-1.1 4.5-.4 7.1 1.8M18.5 17.5c-1.9 1.1-4.5.4-7.1-1.8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"angular":return'<path d="M12 2L3 6l1.5 13L12 22l7.5-3L21 6L12 2z M12 2v20 M3 6l9 4 M21 6l-9 4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"xml":return'<path d="M16 3l-4 18M8 8l-4 4 4 4M16 8l4 4-4 4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"json":return'<path d="M4 6h16M4 10h16M4 14h10M4 18h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="18" cy="18" r="2" fill="currentColor"/>';case"yaml":return'<path d="M3 6h18M3 10h18M3 14l4 4M11 14l-4 4M17 14l4 4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"markdown":return'<path d="M3 3h18v18H3zM5 7v10M9 7v10M9 12l3-3 3 3M15 7l4 5-4 5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"latex":return'<text x="12" y="17" font-family="Times New Roman, serif" font-size="14" font-style="italic" font-weight="bold" text-anchor="middle" fill="currentColor">TEX</text>';case"bash":return'<path d="M3 3h18v18H3zM6 7l4 4-4 4M12 15h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"powershell":return'<path d="M3 3h18v18H3zM6 7l6 5-6 5M13 17h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"perl":return'<path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 7v10M7 12h10" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"mermaid":return'<circle cx="5" cy="12" r="3" fill="currentColor"/><circle cx="19" cy="12" r="3" fill="currentColor"/><circle cx="12" cy="5" r="3" fill="currentColor"/><circle cx="12" cy="19" r="3" fill="currentColor"/><path d="M5 12h14M12 5v14" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>';case"graphviz":return'<circle cx="6" cy="6" r="3" fill="currentColor"/><circle cx="18" cy="6" r="3" fill="currentColor"/><circle cx="6" cy="18" r="3" fill="currentColor"/><circle cx="18" cy="18" r="3" fill="currentColor"/><path d="M6 9v6M18 9v6M9 6h6M9 18h6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>';case"plantuml":return'<path d="M3 3h18v18H3z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 7h10v4H7zM7 15h10M12 11v7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"sql":return'<path d="M3 5h18M3 10h18M3 15h18M3 20h18M7 5v15M17 5v15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"mongodb":return'<path d="M12 2v20M12 2c-3.5 0-7 3-7 8s3.5 8 7 8 7-3 7-8-3.5-8-7-8z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 18c1.5-1 2-2.5 2-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"mathFunction":return'<path d="M3 20h18M3 4v16M3 12h4c3 0 4-3 4-3s1 6 3 6h7" fill="none" stroke="currentColor" stroke-width="2"/>';case"terminal":return'<rect x="2" y="4" width="20" height="16" rx="2" ry="2" fill="none"/><path d="M6 8l4 4-4 4M12 16h6"/>';case"edit":return'<path d="M17 3a2.85 2.85 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"/>';case"copy":return'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>';case"send":return'<path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/>';case"globe":return'<circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>';case"fastForward":return'<polygon points="13 19 22 12 13 5 13 19"/><polygon points="2 19 11 12 2 5 2 19"/>';case"sendSimple":return'<path d="M22 2L11 13M22 2l-7 20-4-9"/>';default:return""}}}},DQe=["title"],LQe={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},PQe=["innerHTML"];function FQe(n,e,t,i,s,r){return T(),w("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),w("svg",LQe,[l("g",{innerHTML:r.iconPath},null,8,PQe)]))],8,DQe)}const I0=st(kQe,[["render",FQe]]);var Qn="top",Ai="bottom",Mi="right",Xn="left",k0="auto",cc=[Qn,Ai,Mi,Xn],ma="start",Kl="end",UQe="clippingParents",zM="viewport",il="popper",BQe="reference",zx=cc.reduce(function(n,e){return n.concat([e+"-"+ma,e+"-"+Kl])},[]),HM=[].concat(cc,[k0]).reduce(function(n,e){return n.concat([e,e+"-"+ma,e+"-"+Kl])},[]),GQe="beforeRead",VQe="read",zQe="afterRead",HQe="beforeMain",qQe="main",YQe="afterMain",$Qe="beforeWrite",WQe="write",KQe="afterWrite",jQe=[GQe,VQe,zQe,HQe,qQe,YQe,$Qe,WQe,KQe];function ls(n){return n?(n.nodeName||"").toLowerCase():null}function li(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function po(n){var e=li(n).Element;return n instanceof e||n instanceof Element}function xi(n){var e=li(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D0(n){if(typeof ShadowRoot>"u")return!1;var e=li(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function QQe(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},r=e.elements[t];!xi(r)||!ls(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function XQe(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(c,d){return c[d]="",c},{});!xi(s)||!ls(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(c){s.removeAttribute(c)}))})}}const ZQe={name:"applyStyles",enabled:!0,phase:"write",fn:QQe,effect:XQe,requires:["computeStyles"]};function rs(n){return n.split("-")[0]}var to=Math.max,tu=Math.min,ha=Math.round;function lb(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qM(){return!/^((?!chrome|android).)*safari/i.test(lb())}function ga(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),s=1,r=1;e&&xi(n)&&(s=n.offsetWidth>0&&ha(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&ha(i.height)/n.offsetHeight||1);var o=po(n)?li(n):window,a=o.visualViewport,c=!qM()&&t,d=(i.left+(c&&a?a.offsetLeft:0))/s,u=(i.top+(c&&a?a.offsetTop:0))/r,_=i.width/s,m=i.height/r;return{width:_,height:m,top:u,right:d+_,bottom:u+m,left:d,x:d,y:u}}function L0(n){var e=ga(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function YM(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&D0(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ps(n){return li(n).getComputedStyle(n)}function JQe(n){return["table","td","th"].indexOf(ls(n))>=0}function Mr(n){return((po(n)?n.ownerDocument:n.document)||window.document).documentElement}function dp(n){return ls(n)==="html"?n:n.assignedSlot||n.parentNode||(D0(n)?n.host:null)||Mr(n)}function Hx(n){return!xi(n)||Ps(n).position==="fixed"?null:n.offsetParent}function eXe(n){var e=/firefox/i.test(lb()),t=/Trident/i.test(lb());if(t&&xi(n)){var i=Ps(n);if(i.position==="fixed")return null}var s=dp(n);for(D0(s)&&(s=s.host);xi(s)&&["html","body"].indexOf(ls(s))<0;){var r=Ps(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function dc(n){for(var e=li(n),t=Hx(n);t&&JQe(t)&&Ps(t).position==="static";)t=Hx(t);return t&&(ls(t)==="html"||ls(t)==="body"&&Ps(t).position==="static")?e:t||eXe(n)||e}function P0(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function wl(n,e,t){return to(n,tu(e,t))}function tXe(n,e,t){var i=wl(n,e,t);return i>t?t:i}function $M(){return{top:0,right:0,bottom:0,left:0}}function WM(n){return Object.assign({},$M(),n)}function KM(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var nXe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,WM(typeof e!="number"?e:KM(e,cc))};function iXe(n){var e,t=n.state,i=n.name,s=n.options,r=t.elements.arrow,o=t.modifiersData.popperOffsets,a=rs(t.placement),c=P0(a),d=[Xn,Mi].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!o)){var _=nXe(s.padding,t),m=L0(r),h=c==="y"?Qn:Xn,f=c==="y"?Ai:Mi,y=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],b=o[c]-t.rects.reference[c],g=dc(r),E=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-b/2,S=_[h],R=E-m[u]-_[f],C=E/2-m[u]/2+v,A=wl(S,C,R),I=c;t.modifiersData[i]=(e={},e[I]=A,e.centerOffset=A-C,e)}}function sXe(n){var e=n.state,t=n.options,i=t.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||YM(e.elements.popper,s)&&(e.elements.arrow=s))}const rXe={name:"arrow",enabled:!0,phase:"main",fn:iXe,effect:sXe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ba(n){return n.split("-")[1]}var oXe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aXe(n,e){var t=n.x,i=n.y,s=e.devicePixelRatio||1;return{x:ha(t*s)/s||0,y:ha(i*s)/s||0}}function qx(n){var e,t=n.popper,i=n.popperRect,s=n.placement,r=n.variation,o=n.offsets,a=n.position,c=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,_=n.isFixed,m=o.x,h=m===void 0?0:m,f=o.y,y=f===void 0?0:f,b=typeof u=="function"?u({x:h,y}):{x:h,y};h=b.x,y=b.y;var g=o.hasOwnProperty("x"),E=o.hasOwnProperty("y"),v=Xn,S=Qn,R=window;if(d){var C=dc(t),A="clientHeight",I="clientWidth";if(C===li(t)&&(C=Mr(t),Ps(C).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),C=C,s===Qn||(s===Xn||s===Mi)&&r===Kl){S=Ai;var x=_&&C===R&&R.visualViewport?R.visualViewport.height:C[A];y-=x-i.height,y*=c?1:-1}if(s===Xn||(s===Qn||s===Ai)&&r===Kl){v=Mi;var M=_&&C===R&&R.visualViewport?R.visualViewport.width:C[I];h-=M-i.width,h*=c?1:-1}}var G=Object.assign({position:a},d&&oXe),V=u===!0?aXe({x:h,y},li(t)):{x:h,y};if(h=V.x,y=V.y,c){var ee;return Object.assign({},G,(ee={},ee[S]=E?"0":"",ee[v]=g?"0":"",ee.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",ee))}return Object.assign({},G,(e={},e[S]=E?y+"px":"",e[v]=g?h+"px":"",e.transform="",e))}function lXe(n){var e=n.state,t=n.options,i=t.gpuAcceleration,s=i===void 0?!0:i,r=t.adaptive,o=r===void 0?!0:r,a=t.roundOffsets,c=a===void 0?!0:a,d={placement:rs(e.placement),variation:ba(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qx(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qx(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const cXe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lXe,data:{}};var Pc={passive:!0};function dXe(n){var e=n.state,t=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,c=li(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",t.update,Pc)}),a&&c.addEventListener("resize",t.update,Pc),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Pc)}),a&&c.removeEventListener("resize",t.update,Pc)}}const uXe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dXe,data:{}};var pXe={left:"right",right:"left",bottom:"top",top:"bottom"};function Od(n){return n.replace(/left|right|bottom|top/g,function(e){return pXe[e]})}var fXe={start:"end",end:"start"};function Yx(n){return n.replace(/start|end/g,function(e){return fXe[e]})}function F0(n){var e=li(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function U0(n){return ga(Mr(n)).left+F0(n).scrollLeft}function _Xe(n,e){var t=li(n),i=Mr(n),s=t.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,c=0;if(s){r=s.width,o=s.height;var d=qM();(d||!d&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:r,height:o,x:a+U0(n),y:c}}function mXe(n){var e,t=Mr(n),i=F0(n),s=(e=n.ownerDocument)==null?void 0:e.body,r=to(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=to(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+U0(n),c=-i.scrollTop;return Ps(s||t).direction==="rtl"&&(a+=to(t.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:c}}function B0(n){var e=Ps(n),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function jM(n){return["html","body","#document"].indexOf(ls(n))>=0?n.ownerDocument.body:xi(n)&&B0(n)?n:jM(dp(n))}function Rl(n,e){var t;e===void 0&&(e=[]);var i=jM(n),s=i===((t=n.ownerDocument)==null?void 0:t.body),r=li(i),o=s?[r].concat(r.visualViewport||[],B0(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(Rl(dp(o)))}function cb(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function hXe(n,e){var t=ga(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function $x(n,e,t){return e===zM?cb(_Xe(n,t)):po(e)?hXe(e,t):cb(mXe(Mr(n)))}function gXe(n){var e=Rl(dp(n)),t=["absolute","fixed"].indexOf(Ps(n).position)>=0,i=t&&xi(n)?dc(n):n;return po(i)?e.filter(function(s){return po(s)&&YM(s,i)&&ls(s)!=="body"}):[]}function bXe(n,e,t,i){var s=e==="clippingParents"?gXe(n):[].concat(e),r=[].concat(s,[t]),o=r[0],a=r.reduce(function(c,d){var u=$x(n,d,i);return c.top=to(u.top,c.top),c.right=tu(u.right,c.right),c.bottom=tu(u.bottom,c.bottom),c.left=to(u.left,c.left),c},$x(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function QM(n){var e=n.reference,t=n.element,i=n.placement,s=i?rs(i):null,r=i?ba(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(s){case Qn:c={x:o,y:e.y-t.height};break;case Ai:c={x:o,y:e.y+e.height};break;case Mi:c={x:e.x+e.width,y:a};break;case Xn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var d=s?P0(s):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case ma:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Kl:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function jl(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?n.placement:i,r=t.strategy,o=r===void 0?n.strategy:r,a=t.boundary,c=a===void 0?UQe:a,d=t.rootBoundary,u=d===void 0?zM:d,_=t.elementContext,m=_===void 0?il:_,h=t.altBoundary,f=h===void 0?!1:h,y=t.padding,b=y===void 0?0:y,g=WM(typeof b!="number"?b:KM(b,cc)),E=m===il?BQe:il,v=n.rects.popper,S=n.elements[f?E:m],R=bXe(po(S)?S:S.contextElement||Mr(n.elements.popper),c,u,o),C=ga(n.elements.reference),A=QM({reference:C,element:v,strategy:"absolute",placement:s}),I=cb(Object.assign({},v,A)),x=m===il?I:C,M={top:R.top-x.top+g.top,bottom:x.bottom-R.bottom+g.bottom,left:R.left-x.left+g.left,right:x.right-R.right+g.right},G=n.modifiersData.offset;if(m===il&&G){var V=G[s];Object.keys(M).forEach(function(ee){var O=[Mi,Ai].indexOf(ee)>=0?1:-1,H=[Qn,Ai].indexOf(ee)>=0?"y":"x";M[ee]+=V[H]*O})}return M}function yXe(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?HM:c,u=ba(i),_=u?a?zx:zx.filter(function(f){return ba(f)===u}):cc,m=_.filter(function(f){return d.indexOf(f)>=0});m.length===0&&(m=_);var h=m.reduce(function(f,y){return f[y]=jl(n,{placement:y,boundary:s,rootBoundary:r,padding:o})[rs(y)],f},{});return Object.keys(h).sort(function(f,y){return h[f]-h[y]})}function EXe(n){if(rs(n)===k0)return[];var e=Od(n);return[Yx(n),e,Yx(e)]}function vXe(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!0:o,c=t.fallbackPlacements,d=t.padding,u=t.boundary,_=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,f=h===void 0?!0:h,y=t.allowedAutoPlacements,b=e.options.placement,g=rs(b),E=g===b,v=c||(E||!f?[Od(b)]:EXe(b)),S=[b].concat(v).reduce(function(ve,Oe){return ve.concat(rs(Oe)===k0?yXe(e,{placement:Oe,boundary:u,rootBoundary:_,padding:d,flipVariations:f,allowedAutoPlacements:y}):Oe)},[]),R=e.rects.reference,C=e.rects.popper,A=new Map,I=!0,x=S[0],M=0;M<S.length;M++){var G=S[M],V=rs(G),ee=ba(G)===ma,O=[Qn,Ai].indexOf(V)>=0,H=O?"width":"height",q=jl(e,{placement:G,boundary:u,rootBoundary:_,altBoundary:m,padding:d}),L=O?ee?Mi:Xn:ee?Ai:Qn;R[H]>C[H]&&(L=Od(L));var Y=Od(L),ne=[];if(r&&ne.push(q[V]<=0),a&&ne.push(q[L]<=0,q[Y]<=0),ne.every(function(ve){return ve})){x=G,I=!1;break}A.set(G,ne)}if(I)for(var oe=f?3:1,ye=function(Oe){var De=S.find(function(Q){var fe=A.get(Q);if(fe)return fe.slice(0,Oe).every(function(_e){return _e})});if(De)return x=De,"break"},xe=oe;xe>0;xe--){var le=ye(xe);if(le==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const SXe={name:"flip",enabled:!0,phase:"main",fn:vXe,requiresIfExists:["offset"],data:{_skip:!1}};function Wx(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Kx(n){return[Qn,Mi,Ai,Xn].some(function(e){return n[e]>=0})}function TXe(n){var e=n.state,t=n.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=jl(e,{elementContext:"reference"}),a=jl(e,{altBoundary:!0}),c=Wx(o,i),d=Wx(a,s,r),u=Kx(c),_=Kx(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":_})}const xXe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:TXe};function CXe(n,e,t){var i=rs(n),s=[Xn,Qn].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Xn,Mi].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function wXe(n){var e=n.state,t=n.options,i=n.name,s=t.offset,r=s===void 0?[0,0]:s,o=HM.reduce(function(u,_){return u[_]=CXe(_,e.rects,r),u},{}),a=o[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=o}const RXe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wXe};function AXe(n){var e=n.state,t=n.name;e.modifiersData[t]=QM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const MXe={name:"popperOffsets",enabled:!0,phase:"read",fn:AXe,data:{}};function NXe(n){return n==="x"?"y":"x"}function OXe(n){var e=n.state,t=n.options,i=n.name,s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!1:o,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,_=t.padding,m=t.tether,h=m===void 0?!0:m,f=t.tetherOffset,y=f===void 0?0:f,b=jl(e,{boundary:c,rootBoundary:d,padding:_,altBoundary:u}),g=rs(e.placement),E=ba(e.placement),v=!E,S=P0(g),R=NXe(S),C=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,x=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(C){if(r){var ee,O=S==="y"?Qn:Xn,H=S==="y"?Ai:Mi,q=S==="y"?"height":"width",L=C[S],Y=L+b[O],ne=L-b[H],oe=h?-I[q]/2:0,ye=E===ma?A[q]:I[q],xe=E===ma?-I[q]:-A[q],le=e.elements.arrow,ve=h&&le?L0(le):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$M(),De=Oe[O],Q=Oe[H],fe=wl(0,A[q],ve[q]),_e=v?A[q]/2-oe-fe-De-M.mainAxis:ye-fe-De-M.mainAxis,Ae=v?-A[q]/2+oe+fe+Q+M.mainAxis:xe+fe+Q+M.mainAxis,Fe=e.elements.arrow&&dc(e.elements.arrow),te=Fe?S==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,U=(ee=G==null?void 0:G[S])!=null?ee:0,P=L+_e-U-te,Z=L+Ae-U,ce=wl(h?tu(Y,P):Y,L,h?to(ne,Z):ne);C[S]=ce,V[S]=ce-L}if(a){var pe,he=S==="x"?Qn:Xn,ae=S==="x"?Ai:Mi,Me=C[R],Re=R==="y"?"height":"width",ge=Me+b[he],D=Me-b[ae],N=[Qn,Xn].indexOf(g)!==-1,K=(pe=G==null?void 0:G[R])!=null?pe:0,me=N?ge:Me-A[Re]-I[Re]-K+M.altAxis,j=N?Me+A[Re]+I[Re]-K-M.altAxis:D,se=h&&N?tXe(me,Me,j):wl(h?me:ge,Me,h?j:D);C[R]=se,V[R]=se-Me}e.modifiersData[i]=V}}const IXe={name:"preventOverflow",enabled:!0,phase:"main",fn:OXe,requiresIfExists:["offset"]};function kXe(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function DXe(n){return n===li(n)||!xi(n)?F0(n):kXe(n)}function LXe(n){var e=n.getBoundingClientRect(),t=ha(e.width)/n.offsetWidth||1,i=ha(e.height)/n.offsetHeight||1;return t!==1||i!==1}function PXe(n,e,t){t===void 0&&(t=!1);var i=xi(e),s=xi(e)&&LXe(e),r=Mr(e),o=ga(n,s,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&((ls(e)!=="body"||B0(r))&&(a=DXe(e)),xi(e)?(c=ga(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=U0(r))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function FXe(n){var e=new Map,t=new Set,i=[];n.forEach(function(r){e.set(r.name,r)});function s(r){t.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&s(c)}}),i.push(r)}return n.forEach(function(r){t.has(r.name)||s(r)}),i}function UXe(n){var e=FXe(n);return jQe.reduce(function(t,i){return t.concat(e.filter(function(s){return s.phase===i}))},[])}function BXe(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function GXe(n){var e=n.reduce(function(t,i){var s=t[i.name];return t[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var jx={placement:"bottom",modifiers:[],strategy:"absolute"};function Qx(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function VXe(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,s=e.defaultOptions,r=s===void 0?jx:s;return function(a,c,d){d===void 0&&(d=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},jx,r),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},_=[],m=!1,h={state:u,setOptions:function(g){var E=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},r,u.options,E),u.scrollParents={reference:po(a)?Rl(a):a.contextElement?Rl(a.contextElement):[],popper:Rl(c)};var v=UXe(GXe([].concat(i,u.options.modifiers)));return u.orderedModifiers=v.filter(function(S){return S.enabled}),f(),h.update()},forceUpdate:function(){if(!m){var g=u.elements,E=g.reference,v=g.popper;if(Qx(E,v)){u.rects={reference:PXe(E,dc(v),u.options.strategy==="fixed"),popper:L0(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var R=u.orderedModifiers[S],C=R.fn,A=R.options,I=A===void 0?{}:A,x=R.name;typeof C=="function"&&(u=C({state:u,options:I,name:x,instance:h})||u)}}}},update:BXe(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){y(),m=!0}};if(!Qx(a,c))return h;h.setOptions(d).then(function(b){!m&&d.onFirstUpdate&&d.onFirstUpdate(b)});function f(){u.orderedModifiers.forEach(function(b){var g=b.name,E=b.options,v=E===void 0?{}:E,S=b.effect;if(typeof S=="function"){var R=S({state:u,name:g,instance:h,options:v}),C=function(){};_.push(R||C)}})}function y(){_.forEach(function(b){return b()}),_=[]}return h}}var zXe=[uXe,MXe,cXe,ZQe,RXe,SXe,IXe,rXe,xXe],up=VXe({defaultModifiers:zXe});const HXe={components:{ToolbarButton:I0},props:["title"],data(){return{isOpen:!1,popperInstance:null}},mounted(){document.addEventListener("click",this.closeMenu)},beforeUnmount(){document.removeEventListener("click",this.closeMenu),this.popperInstance&&this.popperInstance.destroy()},methods:{toggleMenu(n){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen&&this.$nextTick(()=>{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=up(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},qXe={class:"relative inline-block text-left"},YXe={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},$Xe={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function WXe(n,e,t,i,s,r){const o=nt("ToolbarButton");return T(),w("div",qXe,[l("div",null,[z(o,{onClick:W(r.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),at(sk,{to:"body"},[s.isOpen?(T(),w("div",YXe,[l("div",$Xe,[on(n.$slots,"default",{},void 0,!0)])],512)):B("",!0)]))])}const XM=st(HXe,[["render",WXe],["__scopeId","data-v-6c3ea3a5"]]);async function Xx(n,e="",t=[]){return new Promise((i,s)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?r.innerHTML=`
+    `))])):B("",!0)])}const Jje=st(Gje,[["render",Zje]]);var OM={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(kA,function(){function t(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==92)return!1;var u=a.src.slice(++d).match(/^(?:\\\[|\\\(|begin\{([^}]*)\})/);if(!u)return!1;d+=u[0].length;var _,m,h;u[0]==="\\["?(_="display_math",m="\\\\]"):u[0]==="\\("?(_="inline_math",m="\\\\)"):u[1]&&(_="math",m="\\end{"+u[1]+"}",h=!0);var f=a.src.indexOf(m,d);if(f===-1)return!1;var y=f+m.length;if(!c){var b=a.push(_,"",0);b.content=h?a.src.slice(a.pos,y):a.src.slice(d,f)}return a.pos=y,!0}function i(a,c){var d=a.pos;if(a.src.charCodeAt(d)!==36)return!1;var u="$",_=a.src.charCodeAt(++d);if(_===36){if(u="$$",a.src.charCodeAt(++d)===36)return!1}else if(_===32||_===9||_===10)return!1;var m=a.src.indexOf(u,d);if(m===-1||a.src.charCodeAt(m-1)===92)return!1;var h=m+u.length;if(u.length===1){var f=a.src.charCodeAt(m-1);if(f===32||f===9||f===10)return!1;var y=a.src.charCodeAt(h);if(y>=48&&y<58)return!1}if(!c){var b=a.push(u.length===1?"inline_math":"display_math","",0);b.content=a.src.slice(d,m)}return a.pos=h,!0}function s(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")}function r(a,c){return Object.keys(c).reduce(function(d,u){return d[u]===void 0&&(d[u]=c[u]),d},a)}var o={math:"Math",inline_math:"InlineMath",display_math:"DisplayMath"};return function(a){var c={beforeMath:"",afterMath:"",beforeInlineMath:"\\(",afterInlineMath:"\\)",beforeDisplayMath:"\\[",afterDisplayMath:"\\]"};return a=r(a||{},c),function(d){d.inline.ruler.before("escape","math",t),d.inline.ruler.push("texMath",i),Object.keys(o).forEach(function(u){var _=a["before"+o[u]],m=a["after"+o[u]];d.renderer.rules[u]=function(h,f){return _+s(h[f].content)+m}})}}})})(OM);var eQe=OM.exports;const tQe=Rr(eQe);function nQe(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}const iQe={name:"MarkdownRenderer",props:{host:{type:String,required:!1,default:"http://localhost:9600"},client_id:{type:String,required:!0},markdownText:{type:String,required:!0},discussion_id:{type:[String,Number],default:"0",required:!1},message_id:{value:"0",type:[String,Number],required:!1}},components:{CodeBlock:Jje},setup(n){const e=new zye({html:!0,highlight:(r,o)=>{const a=o&&uo.getLanguage(o)?o:"plaintext";return uo.highlight(a,r).value},renderInline:!0,breaks:!0}).use($qe).use(Wo).use(Jqe,{figcaption:!0}).use(fYe).use(Xqe,{enableRowspan:!0,enableColspan:!0,enableGridTables:!0,enableGridTablesExtra:!0,enableTableIndentation:!0,tableCellPadding:" ",tableCellJoiner:"|",multilineCellStartMarker:"|>",multilineCellEndMarker:"<|",multilineCellPadding:" ",multilineCellJoiner:`
+`}).use(tQe({inlineMath:[["$","$"],["\\(","\\)"]],blockMath:[["$$","$$"],["\\[","\\]"]]})),t=ot([]),i=()=>{if(n.markdownText){let r=e.parse(n.markdownText,{}),o=[];t.value=[];for(let a=0;a<r.length;a++)r[a].type!=="fence"?o.push(r[a]):(o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[]),t.value.push({type:"code",language:nQe(r[a].info),code:r[a].content}));o.length>0&&(t.value.push({type:"html",html:e.renderer.render(o,e.options,{})}),o=[])}else t.value=[];Le(()=>{Ve.replace()})},s=(r,o)=>{t.value[r].code=o};return Tn(()=>n.markdownText,i),cs(()=>{i(),Le(()=>{window.MathJax&&window.MathJax.typesetPromise()})}),{markdownItems:t,updateCode:s}}},sQe={class:"break-all container w-full"},rQe={ref:"mdRender",class:"markdown-content"},oQe=["innerHTML"];function aQe(n,e,t,i,s,r){const o=nt("code-block");return T(),w("div",sQe,[l("div",rQe,[(T(!0),w(Be,null,Xe(i.markdownItems,(a,c)=>(T(),w("div",{key:c},[a.type==="code"?(T(),at(o,{key:0,host:t.host,language:a.language,code:a.code,discussion_id:t.discussion_id,message_id:t.message_id,client_id:t.client_id,onUpdateCode:d=>i.updateCode(c,d)},null,8,["host","language","code","discussion_id","message_id","client_id","onUpdateCode"])):(T(),w("div",{key:1,innerHTML:a.html},null,8,oQe))]))),128))],512)])}const lp=st(iQe,[["render",aQe]]),lQe={props:{value:String,inputType:{type:String,default:"text",validator:n=>["text","email","password","file","path","integer","float"].includes(n)},fileAccept:String},data(){return{inputValue:this.value,placeholderText:this.getPlaceholderText()}},watch:{value(n){console.log("Changing value to ",n),this.inputValue=n}},mounted(){Le(()=>{Ve.replace()}),console.log("Changing value to ",this.value),this.inputValue=this.value},methods:{handleSliderInput(n){this.inputValue=n.target.value,this.$emit("input",n.target.value)},getPlaceholderText(){switch(this.inputType){case"text":return"Enter text here";case"email":return"Enter your email";case"password":return"Enter your password";case"file":case"path":return"Choose a file";case"integer":return"Enter an integer";case"float":return"Enter a float";default:return"Enter value here"}},handleInput(n){if(this.inputType==="integer"){const e=n.target.value.replace(/[^0-9]/g,"");this.inputValue=e}console.log("handling input : ",n.target.value),this.$emit("input",n.target.value)},async pasteFromClipboard(){try{const n=await navigator.clipboard.readText();this.handleClipboardData(n)}catch(n){console.error("Failed to read from clipboard:",n)}},handlePaste(n){const e=n.clipboardData.getData("text");this.handleClipboardData(e)},handleClipboardData(n){switch(this.inputType){case"email":this.inputValue=this.isValidEmail(n)?n:"";break;case"password":this.inputValue=n;break;case"file":case"path":this.inputValue="";break;case"integer":this.inputValue=this.parseInteger(n);break;case"float":this.inputValue=this.parseFloat(n);break;default:this.inputValue=n;break}},isValidEmail(n){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},parseInteger(n){const e=parseInt(n);return isNaN(e)?"":e},parseFloat(n){const e=parseFloat(n);return isNaN(e)?"":e},openFileInput(){this.$refs.fileInput.click()},handleFileInputChange(n){const e=n.target.files[0];e&&(this.inputValue=e.name)}}},cQe={class:"flex items-center space-x-2"},dQe=["value","type","placeholder"],uQe=["value","min","max"],pQe=["accept"];function fQe(n,e,t,i,s,r){return T(),w("div",cQe,[n.useSlider?(T(),w("input",{key:1,type:"range",value:parseInt(s.inputValue),min:n.minSliderValue,max:n.maxSliderValue,onInput:e[2]||(e[2]=(...o)=>r.handleSliderInput&&r.handleSliderInput(...o)),class:"flex-1 px-4 py-2 text-lg border dark:bg-gray-600 border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,uQe)):(T(),w("input",{key:0,value:s.inputValue,type:t.inputType,placeholder:s.placeholderText,onInput:e[0]||(e[0]=(...o)=>r.handleInput&&r.handleInput(...o)),onPaste:e[1]||(e[1]=(...o)=>r.handlePaste&&r.handlePaste(...o)),class:"flex-1 px-4 py-2 text-lg dark:bg-gray-600 border border-gray-300 rounded-md focus:outline-none focus:ring focus:border-blue-500"},null,40,dQe)),l("button",{onClick:e[3]||(e[3]=(...o)=>r.pasteFromClipboard&&r.pasteFromClipboard(...o)),class:"p-2 bg-blue-500 dark:bg-gray-600 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[6]||(e[6]=[l("i",{"data-feather":"clipboard"},null,-1)])),t.inputType==="file"?(T(),w("button",{key:2,onClick:e[4]||(e[4]=(...o)=>r.openFileInput&&r.openFileInput(...o)),class:"p-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 focus:outline-none focus:ring focus:border-blue-300"},e[7]||(e[7]=[l("i",{"data-feather":"upload"},null,-1)]))):B("",!0),t.inputType==="file"?(T(),w("input",{key:3,ref:"fileInput",type:"file",style:{display:"none"},accept:t.fileAccept,onChange:e[5]||(e[5]=(...o)=>r.handleFileInputChange&&r.handleFileInputChange(...o))},null,40,pQe)):B("",!0)])}const O0=st(lQe,[["render",fQe]]),_Qe={name:"TokensHighlighter",props:{namedTokens:{type:Object,required:!0}},data(){return{colors:["#FF6633","#FFB399","#FF33FF","#FFFF99","#00B3E6","#E6B333","#3366E6","#999966","#99FF99","#B34D4D","#80B300","#809900","#E6B3B3","#6680B3","#66991A","#FF99E6","#CCFF1A","#FF1A66","#E6331A","#33FFCC","#66994D","#B366CC","#4D8000","#B33300","#CC80CC","#66664D","#991AFF","#E666FF","#4DB3FF","#1AB399","#E666B3","#33991A","#CC9999","#B3B31A","#00E680","#4D8066","#809980","#E6FF80","#1AFF33","#999933","#FF3380","#CCCC00","#66E64D","#4D80CC","#9900B3","#E64D66","#4DB380","#FF4D4D","#99E6E6","#6666FF"]}}},mQe={class:"w-full"},hQe={class:"break-words"},gQe={class:"break-words mt-2"},bQe={class:"mt-4"};function yQe(n,e,t,i,s,r){return T(),w("div",mQe,[l("div",hQe,[(T(!0),w(Be,null,Xe(t.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block whitespace-pre-wrap",style:Wt({backgroundColor:s.colors[a%s.colors.length]})},$(o[0]),5)]))),128))]),l("div",gQe,[(T(!0),w(Be,null,Xe(t.namedTokens,(o,a)=>(T(),w("span",{key:a},[l("span",{class:"inline-block px-1 whitespace-pre-wrap",style:Wt({backgroundColor:s.colors[a%s.colors.length]})},$(o[1]),5)]))),128))]),l("div",bQe,[l("strong",null,"Total Tokens: "+$(t.namedTokens.length),1)])])}const EQe=st(_Qe,[["render",yQe]]),vQe={name:"ChatBarButton",props:{buttonClass:{type:String,default:"text-gray-600 dark:text-gray-300"}}};function SQe(n,e,t,i,s,r){return T(),w("button",CR({class:["p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",[t.buttonClass,"hover:bg-gray-200 dark:hover:bg-gray-700","active:bg-gray-300 dark:active:bg-gray-600"]]},n.$attrs,bk(n.$listeners)),[on(n.$slots,"icon"),on(n.$slots,"default")],16)}const IM=st(vQe,[["render",SQe]]),TQe={props:{is_subcard:{type:Boolean,default:!1},is_shrunk:{type:Boolean,default:!1},title:{type:String,default:""},isHorizontal:{type:Boolean,default:!1},cardWidth:{type:String,default:"w-3/4"},disableHoverAnimation:{type:Boolean,default:!0},disableFocus:{type:Boolean,default:!1}},data(){return{shrink:this.is_shrunk,isHovered:!1,isActive:!1}},computed:{cardClass(){return["bg-gray-50","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","w-full","p-2.5","dark:bg-gray-500","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500",{"cursor-pointer":!this.isActive&&!this.disableFocus,"w-auto":!this.isActive}]},cardWidthClass(){return this.isActive?this.cardWidth:""}},methods:{toggleCard(){this.disableFocus||(this.isActive=!this.isActive)}}},xQe={key:1,class:"flex flex-wrap"},CQe={key:2,class:"mb-2"};function wQe(n,e,t,i,s,r){return T(),w("div",null,[s.isActive?(T(),w("div",{key:0,class:"overlay",onClick:e[0]||(e[0]=(...o)=>r.toggleCard&&r.toggleCard(...o))})):B("",!0),k(l("div",{class:Ue(["border-blue-300 rounded-lg shadow-lg p-2",r.cardWidthClass,"m-2",{subcard:t.is_subcard},{"bg-white dark:bg-gray-900":!t.is_subcard},{hovered:!t.disableHoverAnimation&&s.isHovered,active:s.isActive}]),onMouseenter:e[2]||(e[2]=o=>s.isHovered=!0),onMouseleave:e[3]||(e[3]=o=>s.isHovered=!1),onClick:e[4]||(e[4]=W((...o)=>r.toggleCard&&r.toggleCard(...o),["self"])),style:Wt({cursor:this.disableFocus?"":"pointer"})},[t.title?(T(),w("div",{key:0,onClick:e[1]||(e[1]=o=>s.shrink=!0),class:Ue([{"text-center p-2 m-2 bg-gray-200":!t.is_subcard},"bg-gray-100 dark:bg-gray-500 rounded-lg pl-2 pr-2 mb-2 font-bold cursor-pointer"])},$(t.title),3)):B("",!0),t.isHorizontal?(T(),w("div",xQe,[on(n.$slots,"default")])):(T(),w("div",CQe,[on(n.$slots,"default")]))],38),[[_t,s.shrink===!1]]),t.is_subcard?k((T(),w("div",{key:1,onClick:e[5]||(e[5]=o=>s.shrink=!1),class:"bg-white text-center text-xl bold dark:bg-gray-500 border-blue-300 rounded-lg shadow-lg p-2 h-10 cursor-pointer m-2"},$(t.title),513)),[[_t,s.shrink===!0]]):k((T(),w("div",{key:2,onClick:e[6]||(e[6]=o=>s.shrink=!1),class:"bg-white text-center text-2xl dark:bg-gray-500 border-2 border-blue-300 rounded-lg shadow-lg p-0 h-7 cursor-pointer hover:h-8 hover:bg-blue-300"}," + ",512)),[[_t,s.shrink===!0]])])}const cp=st(TQe,[["render",wQe]]),kM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20%203H4c-1.103%200-2%20.897-2%202v14c0%201.103.897%202%202%202h16c1.103%200%202-.897%202-2V5c0-1.103-.897-2-2-2zM4%2019V7h16l.002%2012H4z'/%3e%3cpath%20d='M9.293%209.293%205.586%2013l3.707%203.707%201.414-1.414L8.414%2013l2.293-2.293zm5.414%200-1.414%201.414L15.586%2013l-2.293%202.293%201.414%201.414L18.414%2013z'/%3e%3c/svg%3e",DM="/assets/python_block-Bt12VGEE.png",LM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20630%20630'%20style='enable-background:new%200%200%20630%20630;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EDBF4A;}%20.st1{fill:%230C0C0C;}%20%3c/style%3e%3crect%20class='st0'%20width='630'%20height='630'/%3e%3cpath%20class='st1'%20d='M423.2,492.2c12.7,20.7,29.2,36,58.4,36c24.5,0,40.2-12.3,40.2-29.2c0-20.3-16.1-27.5-43.1-39.3l-14.8-6.4%20c-42.7-18.2-71.1-41-71.1-89.2c0-44.4,33.8-78.2,86.7-78.2c37.6,0,64.7,13.1,84.2,47.4l-46.1,29.6c-10.1-18.2-21.1-25.4-38.1-25.4%20c-17.3,0-28.3,11-28.3,25.4c0,17.8,11,25,36.4,36l14.8,6.3c50.3,21.6,78.7,43.6,78.7,93c0,53.3-41.9,82.5-98.1,82.5%20c-55,0-90.5-26.2-107.9-60.5L423.2,492.2z%20M214.1,497.3c9.3,16.5,17.8,30.5,38.1,30.5c19.5,0,31.7-7.6,31.7-37.2V289.3h59.2v202.1%20c0,61.3-35.9,89.2-88.4,89.2c-47.4,0-74.9-24.5-88.8-54.1L214.1,497.3z'/%3e%3c/svg%3e",PM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOeSURBVGhD7ZhNaBNBGIZHW/EPbSioRSpi0FRpVdRSjQfxkFilB5UciuChIL0JLaKIhR5KIYKIiBSF0mLVS7AIavUgPQjiT4+KB0EP3gwS8VDBgj8d33d2ZrNJt2lCppKWfeBh5pvdncyXmZ3sZokQQsIFz1JdLni8M8L6QkSNf9HMSJBIpREkUmkEiVQaQSKVRpCIH8lkUtbW1sre3l7fB9FoNCrD4fC8PaSyYyudNzU1yZGRkYJ9dXV1yUQiYTMZNX6rM5LJZERHR0fBh0/MmJDSZh4OVhOZmprStf+P1UQmJyd1zaGvr09NuxM5VFVViYmJCR3Zw1oiPT09koP00tjYKNrb23XkEIlERHV1tY7sMuNbK5XR0VGJwcnBwcGi+uns7Cz7Mz24fVnpdGhoSDY0NBTbjxweHi77MzXu+N2KBebsh7PW0tJi6/OIGr/Vm72mpkbXssTj8ZxBp9NpUV9fryN7WE0kn1QqJcfHx3U0v1hNJBQKqXtFh2JsbEx0d3frKMv09LSu2UWtMadaHm1tberxQ+9Koq6uLqff1tZW2dzcLPXviy3c8bsVG/T398+6I8ViMTkwMGDtszRq/MEfdJVGkEilESRSaZSSyCa43anmsAPGII/7wWd7nnMEbmaDD2G41anmsA76tfui9mGnWpAPkOftVpEQuyDfkMz19Bv0cg56j9NP8AQ07IXm2Es2eHgK2b5RRf6Ya7OVOchP5D1kfA0m4GX4CxouQR7/A6/DC/CObqNRSA5A00Y7oeG/JMJBM65TUS7rIV/gefw4GzzchWx/rKJsIu90+REaik6knJv9hy5vw4NO1WU/XAG/w0ds8MABk326NLyGL+A2eJYNpVBOIhd1eRS+gs/hTjYAc4M+06WX+7rkt7zKqbrc0OV5WNIjUzmJDME9MKUiIQ5DvnyshOZfCL/+l+uSz/I/narLA8gvhLsb77miKScR8haegqfhb7gBcoa4M5G4Lr0069Kck88VXZ6B+TNWEHWzONWCpCHPM78lZhkZ3kAePwa36DpthQYulwxke5INwNzst1Tk8ASa66mVXYtLgFPOc7iVroUtOh6F3Gbv6fgLXAPJVWj65vU3IW9oxl+hWWJ+iRyC5lpqJZHP0JxjbnBO+UP4F5pjXNsnoRf+IJqZpNySmRSXoMEvEeL9Iqwkwm20Cfqt12UwAleraHZCcLbHEzLz75fiUeMP3hArjUWTiHdpLWgWyYwI8Q8rrSjH5vAr6AAAAABJRU5ErkJggg==",FM="/assets/cpp_block-kkmuBJ_E.png",UM="/assets/html5_block-beC_-Wtz.png",BM="/assets/LaTeX_block-BNFNi2yr.png",GM="/assets/bash_block-DZNRrwlz.png",RQe="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNTAgNTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQogIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjI1IiBmaWxsPSJkZWVwc2t5Ymx1ZSIvPg0KICA8dGV4dCB4PSIyNSIgeT0iMzciIGZvbnQtc2l6ZT0iMzYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIiBmb250LXdlaWdodD0iYm9sZCI+VDwvdGV4dD4NCjwvc3ZnPg0K",AQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='red'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%20stroke='currentColor'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%20stroke='currentColor'%3e%3c/line%3e%3c/svg%3e",MQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%3e%3c/circle%3e%3cpath%20d='M16%2016s-1.5-2-4-2-4%202-4%202'%3e%3c/path%3e%3cline%20x1='9'%20y1='9'%20x2='15'%20y2='15'%3e%3c/line%3e%3c/svg%3e",NQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20id='heartbeat'%20cx='25'%20cy='25'%20r='20'%20fill='red'%3e%3canimate%20attributeName='r'%20dur='1s'%20repeatCount='indefinite'%20keyTimes='0;0.25;0.5;0.75;1'%20values='20;24;20;22;20'/%3e%3c/circle%3e%3c/svg%3e",OQe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='24'%20fill='white'%20stroke='black'%20stroke-width='2'/%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='red'/%3e%3c/svg%3e",VM="data:image/svg+xml,%3csvg%20viewBox='0%200%2050%2050'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(25,25)'%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23f00'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%230f0'%20transform='rotate(90)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.2s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%2300f'%20transform='rotate(180)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.4s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3ccircle%20cx='0'%20cy='-15'%20r='3'%20fill='%23ff0'%20transform='rotate(270)'%3e%3canimateTransform%20attributeName='transform'%20type='rotate'%20from='0'%20to='360'%20dur='1.6s'%20repeatCount='indefinite'%20/%3e%3c/circle%3e%3c/g%3e%3c/svg%3e",IQe={props:{icon:{type:String,required:!0},title:{type:String,required:!0}},computed:{iconPath(){return this.getIconPath()}},methods:{getIconPath(){switch(this.icon){case"x":return'<path d="M18 6L6 18M6 6l12 12"/>';case"check":return'<path d="M20 6L9 17l-5-5"/>';case"code":return'<path d="M8 7l-5 5 5 5"/><path d="M16 7l5 5-5 5"/><line x1="10" y1="4" x2="14" y2="20"/>';case"python":return'<path d="M12 2C5.4 2 6 4.5 6 4.5v2.8h6.5v1H4.5S2 7.7 2 12c0 4.3 2.5 4.2 2.5 4.2h2.3v-2.5c0-2.5 2.2-2.5 2.2-2.5h6.1c2.3 0 2.2-2.2 2.2-2.2V5c0-2.8-2.9-3-5.8-3zm-3.5 1.7c.5 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1z" fill="currentColor"/><path d="M12 22c6.6 0 6-2.5 6-2.5v-2.8h-6.5v-1H19.5s2.5-.6 2.5-4.9c0-4.3-2.5-4.2-2.5-4.2h-2.3v2.5c0 2.5-2.2 2.5-2.2 2.5H8.9c-2.3 0-2.2 2.2-2.2 2.2V19c0 2.8 2.9 3 5.8 3zm3.5-1.7c-.5 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z" fill="currentColor"/>';case"js":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">JS</text>';case"typescript":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">TS</text>';case"braces":return'<path d="M7 7H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h3m10-10h3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-3"/>';case"cplusplus":case"c++":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="10" font-weight="bold" text-anchor="middle" fill="currentColor">C++</text>';case"csharp":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">C#</text>';case"go":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="14" font-weight="bold" text-anchor="middle" fill="currentColor">Go</text>';case"r-project":return'<text x="12" y="17" font-family="Arial, sans-serif" font-size="16" font-weight="bold" text-anchor="middle" fill="currentColor">R</text>';case"rust":return'<path d="M12 2L2 7v10l10 5 10-5V7L12 2z M12 22v-6 M22 7l-10 5-10-5 M2 17l10-5 10 5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"swift":return'<path d="M21 12c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.4 0 2.8-.4 4-1 M14 9c-1.7-1.7-3.7-2.6-5.5-2.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"kotlin":return'<path d="M2 2v20h20L2 2z M2 22L22 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"java":return'<path fill="currentColor" d="M8.5 18.5c0 0-1.3.7.9 1 2.7.3 4.1.3 7-.3 0 0 .8.5 1.9.9-6.7 2.9-15.2-.7-9.8-1.6zm-1-3.5c0 0-1.5 1.1.8 1.3 2.9.3 5.2.3 9.1-.4 0 0 .6.6 1.4.9-7.9 2.3-16.7.2-11.3-1.8zm9.2-6.5c1.7 1.9-.4 3.6-.4 3.6s4.2-2.2 2.3-4.9c-1.8-2.5-3.2-3.8 4.3-8.1 0 0-11.8 3-6.2 9.4zm4.9 12.4c0 0 1 .8-1.1 1.4-3.9 1.2-16.3 1.5-19.7.1-1.2-.5 1.1-1.3 1.8-1.4.8-.2 1.2-.1 1.2-.1-1.4-1-9 1.9-3.8 2.7 14.1 2.3 25.8-1 21.6-2.7zm-15.4-9.3c0 0-6.3 1.5-2.2 2 1.7.2 5.1.2 8.3-.1 2.6-.2 5.2-.7 5.2-.7s-.9.4-1.6.8c-6.4 1.7-18.8.9-15.2-.8 3-1.4 5.5-1.2 5.5-1.2zm12.4 6.9c6.5-3.4 3.5-6.6 1.4-6.2-.5.1-.7.2-.7.2s.2-.3.6-.4c4.2-1.5 7.4 4.3-1.4 6.6 0-.1.1-.1.1-.2z"/>';case"html5":return'<path fill="currentColor" d="M3 2l1.5 17L12 22l7.5-3L21 2H3zm4.5 6h9l-.3 3H8.4l.2 2h8.5l-.6 6.5L12 21l-4.5-1.5L7 16h2.2l.2 2.2 2.6.7 2.6-.7.4-3.7H7.3L6.5 8z"/>';case"css3":return'<path d="M4 3l1.5 17L12 22l6.5-2L20 3H4zm3.5 7h9l-.3 3H8.4l.2 2h8l-.5 5.5-3.8 1.3-3.8-1.3-.3-3H5.5l.5 5.5L12 22l6-2 .8-9H7.5l.3-3z" fill="currentColor"/>';case"vuejs":return'<path d="M2 3l10 18L22 3h-4l-6 10.5L6 3H2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"react":return'<circle cx="12" cy="12" r="2.5" fill="currentColor"/><path d="M12 9.5c1.8-2.3 3.7-3.8 5.5-3.8 1.3 0 2.4.6 3.1 1.7 1.1 1.9.4 4.5-1.8 7.1M12 14.5c-1.8 2.3-3.7 3.8-5.5 3.8-1.3 0-2.4-.6-3.1-1.7-1.1-1.9-.4-4.5 1.8-7.1M5.5 6.5c1.9-1.1 4.5-.4 7.1 1.8M18.5 17.5c-1.9 1.1-4.5.4-7.1-1.8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"angular":return'<path d="M12 2L3 6l1.5 13L12 22l7.5-3L21 6L12 2z M12 2v20 M3 6l9 4 M21 6l-9 4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"xml":return'<path d="M16 3l-4 18M8 8l-4 4 4 4M16 8l4 4-4 4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"json":return'<path d="M4 6h16M4 10h16M4 14h10M4 18h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle cx="18" cy="18" r="2" fill="currentColor"/>';case"yaml":return'<path d="M3 6h18M3 10h18M3 14l4 4M11 14l-4 4M17 14l4 4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"markdown":return'<path d="M3 3h18v18H3zM5 7v10M9 7v10M9 12l3-3 3 3M15 7l4 5-4 5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"latex":return'<text x="12" y="17" font-family="Times New Roman, serif" font-size="14" font-style="italic" font-weight="bold" text-anchor="middle" fill="currentColor">TEX</text>';case"bash":return'<path d="M3 3h18v18H3zM6 7l4 4-4 4M12 15h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"powershell":return'<path d="M3 3h18v18H3zM6 7l6 5-6 5M13 17h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"perl":return'<path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 7v10M7 12h10" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"mermaid":return'<circle cx="5" cy="12" r="3" fill="currentColor"/><circle cx="19" cy="12" r="3" fill="currentColor"/><circle cx="12" cy="5" r="3" fill="currentColor"/><circle cx="12" cy="19" r="3" fill="currentColor"/><path d="M5 12h14M12 5v14" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>';case"graphviz":return'<circle cx="6" cy="6" r="3" fill="currentColor"/><circle cx="18" cy="6" r="3" fill="currentColor"/><circle cx="6" cy="18" r="3" fill="currentColor"/><circle cx="18" cy="18" r="3" fill="currentColor"/><path d="M6 9v6M18 9v6M9 6h6M9 18h6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>';case"plantuml":return'<path d="M3 3h18v18H3z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 7h10v4H7zM7 15h10M12 11v7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"sql":return'<path d="M3 5h18M3 10h18M3 15h18M3 20h18M7 5v15M17 5v15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"mongodb":return'<path d="M12 2v20M12 2c-3.5 0-7 3-7 8s3.5 8 7 8 7-3 7-8-3.5-8-7-8z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 18c1.5-1 2-2.5 2-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>';case"mathFunction":return'<path d="M3 20h18M3 4v16M3 12h4c3 0 4-3 4-3s1 6 3 6h7" fill="none" stroke="currentColor" stroke-width="2"/>';case"terminal":return'<rect x="2" y="4" width="20" height="16" rx="2" ry="2" fill="none"/><path d="M6 8l4 4-4 4M12 16h6"/>';case"edit":return'<path d="M17 3a2.85 2.85 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"/>';case"copy":return'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>';case"send":return'<path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/>';case"globe":return'<circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>';case"fastForward":return'<polygon points="13 19 22 12 13 5 13 19"/><polygon points="2 19 11 12 2 5 2 19"/>';case"sendSimple":return'<path d="M22 2L11 13M22 2l-7 20-4-9"/>';default:return""}}}},kQe=["title"],DQe={class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},LQe=["innerHTML"];function PQe(n,e,t,i,s,r){return T(),w("button",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:t.title,onClick:e[0]||(e[0]=o=>n.$emit("click"))},[(T(),w("svg",DQe,[l("g",{innerHTML:r.iconPath},null,8,LQe)]))],8,kQe)}const I0=st(IQe,[["render",PQe]]);var Qn="top",Ai="bottom",Mi="right",Xn="left",k0="auto",cc=[Qn,Ai,Mi,Xn],ma="start",Kl="end",FQe="clippingParents",zM="viewport",il="popper",UQe="reference",zx=cc.reduce(function(n,e){return n.concat([e+"-"+ma,e+"-"+Kl])},[]),HM=[].concat(cc,[k0]).reduce(function(n,e){return n.concat([e,e+"-"+ma,e+"-"+Kl])},[]),BQe="beforeRead",GQe="read",VQe="afterRead",zQe="beforeMain",HQe="main",qQe="afterMain",YQe="beforeWrite",$Qe="write",WQe="afterWrite",KQe=[BQe,GQe,VQe,zQe,HQe,qQe,YQe,$Qe,WQe];function ls(n){return n?(n.nodeName||"").toLowerCase():null}function li(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function po(n){var e=li(n).Element;return n instanceof e||n instanceof Element}function xi(n){var e=li(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D0(n){if(typeof ShadowRoot>"u")return!1;var e=li(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function jQe(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},r=e.elements[t];!xi(r)||!ls(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function QQe(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=o.reduce(function(c,d){return c[d]="",c},{});!xi(s)||!ls(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(c){s.removeAttribute(c)}))})}}const XQe={name:"applyStyles",enabled:!0,phase:"write",fn:jQe,effect:QQe,requires:["computeStyles"]};function rs(n){return n.split("-")[0]}var to=Math.max,tu=Math.min,ha=Math.round;function lb(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qM(){return!/^((?!chrome|android).)*safari/i.test(lb())}function ga(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),s=1,r=1;e&&xi(n)&&(s=n.offsetWidth>0&&ha(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&ha(i.height)/n.offsetHeight||1);var o=po(n)?li(n):window,a=o.visualViewport,c=!qM()&&t,d=(i.left+(c&&a?a.offsetLeft:0))/s,u=(i.top+(c&&a?a.offsetTop:0))/r,_=i.width/s,m=i.height/r;return{width:_,height:m,top:u,right:d+_,bottom:u+m,left:d,x:d,y:u}}function L0(n){var e=ga(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function YM(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&D0(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ps(n){return li(n).getComputedStyle(n)}function ZQe(n){return["table","td","th"].indexOf(ls(n))>=0}function Mr(n){return((po(n)?n.ownerDocument:n.document)||window.document).documentElement}function dp(n){return ls(n)==="html"?n:n.assignedSlot||n.parentNode||(D0(n)?n.host:null)||Mr(n)}function Hx(n){return!xi(n)||Ps(n).position==="fixed"?null:n.offsetParent}function JQe(n){var e=/firefox/i.test(lb()),t=/Trident/i.test(lb());if(t&&xi(n)){var i=Ps(n);if(i.position==="fixed")return null}var s=dp(n);for(D0(s)&&(s=s.host);xi(s)&&["html","body"].indexOf(ls(s))<0;){var r=Ps(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function dc(n){for(var e=li(n),t=Hx(n);t&&ZQe(t)&&Ps(t).position==="static";)t=Hx(t);return t&&(ls(t)==="html"||ls(t)==="body"&&Ps(t).position==="static")?e:t||JQe(n)||e}function P0(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function wl(n,e,t){return to(n,tu(e,t))}function eXe(n,e,t){var i=wl(n,e,t);return i>t?t:i}function $M(){return{top:0,right:0,bottom:0,left:0}}function WM(n){return Object.assign({},$M(),n)}function KM(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var tXe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,WM(typeof e!="number"?e:KM(e,cc))};function nXe(n){var e,t=n.state,i=n.name,s=n.options,r=t.elements.arrow,o=t.modifiersData.popperOffsets,a=rs(t.placement),c=P0(a),d=[Xn,Mi].indexOf(a)>=0,u=d?"height":"width";if(!(!r||!o)){var _=tXe(s.padding,t),m=L0(r),h=c==="y"?Qn:Xn,f=c==="y"?Ai:Mi,y=t.rects.reference[u]+t.rects.reference[c]-o[c]-t.rects.popper[u],b=o[c]-t.rects.reference[c],g=dc(r),E=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-b/2,S=_[h],R=E-m[u]-_[f],C=E/2-m[u]/2+v,A=wl(S,C,R),I=c;t.modifiersData[i]=(e={},e[I]=A,e.centerOffset=A-C,e)}}function iXe(n){var e=n.state,t=n.options,i=t.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||YM(e.elements.popper,s)&&(e.elements.arrow=s))}const sXe={name:"arrow",enabled:!0,phase:"main",fn:nXe,effect:iXe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ba(n){return n.split("-")[1]}var rXe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oXe(n,e){var t=n.x,i=n.y,s=e.devicePixelRatio||1;return{x:ha(t*s)/s||0,y:ha(i*s)/s||0}}function qx(n){var e,t=n.popper,i=n.popperRect,s=n.placement,r=n.variation,o=n.offsets,a=n.position,c=n.gpuAcceleration,d=n.adaptive,u=n.roundOffsets,_=n.isFixed,m=o.x,h=m===void 0?0:m,f=o.y,y=f===void 0?0:f,b=typeof u=="function"?u({x:h,y}):{x:h,y};h=b.x,y=b.y;var g=o.hasOwnProperty("x"),E=o.hasOwnProperty("y"),v=Xn,S=Qn,R=window;if(d){var C=dc(t),A="clientHeight",I="clientWidth";if(C===li(t)&&(C=Mr(t),Ps(C).position!=="static"&&a==="absolute"&&(A="scrollHeight",I="scrollWidth")),C=C,s===Qn||(s===Xn||s===Mi)&&r===Kl){S=Ai;var x=_&&C===R&&R.visualViewport?R.visualViewport.height:C[A];y-=x-i.height,y*=c?1:-1}if(s===Xn||(s===Qn||s===Ai)&&r===Kl){v=Mi;var M=_&&C===R&&R.visualViewport?R.visualViewport.width:C[I];h-=M-i.width,h*=c?1:-1}}var G=Object.assign({position:a},d&&rXe),V=u===!0?oXe({x:h,y},li(t)):{x:h,y};if(h=V.x,y=V.y,c){var ee;return Object.assign({},G,(ee={},ee[S]=E?"0":"",ee[v]=g?"0":"",ee.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",ee))}return Object.assign({},G,(e={},e[S]=E?y+"px":"",e[v]=g?h+"px":"",e.transform="",e))}function aXe(n){var e=n.state,t=n.options,i=t.gpuAcceleration,s=i===void 0?!0:i,r=t.adaptive,o=r===void 0?!0:r,a=t.roundOffsets,c=a===void 0?!0:a,d={placement:rs(e.placement),variation:ba(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,qx(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,qx(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const lXe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aXe,data:{}};var Pc={passive:!0};function cXe(n){var e=n.state,t=n.instance,i=n.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,a=o===void 0?!0:o,c=li(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(u){u.addEventListener("scroll",t.update,Pc)}),a&&c.addEventListener("resize",t.update,Pc),function(){r&&d.forEach(function(u){u.removeEventListener("scroll",t.update,Pc)}),a&&c.removeEventListener("resize",t.update,Pc)}}const dXe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cXe,data:{}};var uXe={left:"right",right:"left",bottom:"top",top:"bottom"};function Od(n){return n.replace(/left|right|bottom|top/g,function(e){return uXe[e]})}var pXe={start:"end",end:"start"};function Yx(n){return n.replace(/start|end/g,function(e){return pXe[e]})}function F0(n){var e=li(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function U0(n){return ga(Mr(n)).left+F0(n).scrollLeft}function fXe(n,e){var t=li(n),i=Mr(n),s=t.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,c=0;if(s){r=s.width,o=s.height;var d=qM();(d||!d&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:r,height:o,x:a+U0(n),y:c}}function _Xe(n){var e,t=Mr(n),i=F0(n),s=(e=n.ownerDocument)==null?void 0:e.body,r=to(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=to(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+U0(n),c=-i.scrollTop;return Ps(s||t).direction==="rtl"&&(a+=to(t.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:c}}function B0(n){var e=Ps(n),t=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+i)}function jM(n){return["html","body","#document"].indexOf(ls(n))>=0?n.ownerDocument.body:xi(n)&&B0(n)?n:jM(dp(n))}function Rl(n,e){var t;e===void 0&&(e=[]);var i=jM(n),s=i===((t=n.ownerDocument)==null?void 0:t.body),r=li(i),o=s?[r].concat(r.visualViewport||[],B0(i)?i:[]):i,a=e.concat(o);return s?a:a.concat(Rl(dp(o)))}function cb(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function mXe(n,e){var t=ga(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function $x(n,e,t){return e===zM?cb(fXe(n,t)):po(e)?mXe(e,t):cb(_Xe(Mr(n)))}function hXe(n){var e=Rl(dp(n)),t=["absolute","fixed"].indexOf(Ps(n).position)>=0,i=t&&xi(n)?dc(n):n;return po(i)?e.filter(function(s){return po(s)&&YM(s,i)&&ls(s)!=="body"}):[]}function gXe(n,e,t,i){var s=e==="clippingParents"?hXe(n):[].concat(e),r=[].concat(s,[t]),o=r[0],a=r.reduce(function(c,d){var u=$x(n,d,i);return c.top=to(u.top,c.top),c.right=tu(u.right,c.right),c.bottom=tu(u.bottom,c.bottom),c.left=to(u.left,c.left),c},$x(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function QM(n){var e=n.reference,t=n.element,i=n.placement,s=i?rs(i):null,r=i?ba(i):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(s){case Qn:c={x:o,y:e.y-t.height};break;case Ai:c={x:o,y:e.y+e.height};break;case Mi:c={x:e.x+e.width,y:a};break;case Xn:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var d=s?P0(s):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case ma:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Kl:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function jl(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=i===void 0?n.placement:i,r=t.strategy,o=r===void 0?n.strategy:r,a=t.boundary,c=a===void 0?FQe:a,d=t.rootBoundary,u=d===void 0?zM:d,_=t.elementContext,m=_===void 0?il:_,h=t.altBoundary,f=h===void 0?!1:h,y=t.padding,b=y===void 0?0:y,g=WM(typeof b!="number"?b:KM(b,cc)),E=m===il?UQe:il,v=n.rects.popper,S=n.elements[f?E:m],R=gXe(po(S)?S:S.contextElement||Mr(n.elements.popper),c,u,o),C=ga(n.elements.reference),A=QM({reference:C,element:v,strategy:"absolute",placement:s}),I=cb(Object.assign({},v,A)),x=m===il?I:C,M={top:R.top-x.top+g.top,bottom:x.bottom-R.bottom+g.bottom,left:R.left-x.left+g.left,right:x.right-R.right+g.right},G=n.modifiersData.offset;if(m===il&&G){var V=G[s];Object.keys(M).forEach(function(ee){var O=[Mi,Ai].indexOf(ee)>=0?1:-1,H=[Qn,Ai].indexOf(ee)>=0?"y":"x";M[ee]+=V[H]*O})}return M}function bXe(n,e){e===void 0&&(e={});var t=e,i=t.placement,s=t.boundary,r=t.rootBoundary,o=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?HM:c,u=ba(i),_=u?a?zx:zx.filter(function(f){return ba(f)===u}):cc,m=_.filter(function(f){return d.indexOf(f)>=0});m.length===0&&(m=_);var h=m.reduce(function(f,y){return f[y]=jl(n,{placement:y,boundary:s,rootBoundary:r,padding:o})[rs(y)],f},{});return Object.keys(h).sort(function(f,y){return h[f]-h[y]})}function yXe(n){if(rs(n)===k0)return[];var e=Od(n);return[Yx(n),e,Yx(e)]}function EXe(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!0:o,c=t.fallbackPlacements,d=t.padding,u=t.boundary,_=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,f=h===void 0?!0:h,y=t.allowedAutoPlacements,b=e.options.placement,g=rs(b),E=g===b,v=c||(E||!f?[Od(b)]:yXe(b)),S=[b].concat(v).reduce(function(ve,Oe){return ve.concat(rs(Oe)===k0?bXe(e,{placement:Oe,boundary:u,rootBoundary:_,padding:d,flipVariations:f,allowedAutoPlacements:y}):Oe)},[]),R=e.rects.reference,C=e.rects.popper,A=new Map,I=!0,x=S[0],M=0;M<S.length;M++){var G=S[M],V=rs(G),ee=ba(G)===ma,O=[Qn,Ai].indexOf(V)>=0,H=O?"width":"height",q=jl(e,{placement:G,boundary:u,rootBoundary:_,altBoundary:m,padding:d}),L=O?ee?Mi:Xn:ee?Ai:Qn;R[H]>C[H]&&(L=Od(L));var Y=Od(L),ne=[];if(r&&ne.push(q[V]<=0),a&&ne.push(q[L]<=0,q[Y]<=0),ne.every(function(ve){return ve})){x=G,I=!1;break}A.set(G,ne)}if(I)for(var oe=f?3:1,ye=function(Oe){var De=S.find(function(Q){var fe=A.get(Q);if(fe)return fe.slice(0,Oe).every(function(_e){return _e})});if(De)return x=De,"break"},xe=oe;xe>0;xe--){var le=ye(xe);if(le==="break")break}e.placement!==x&&(e.modifiersData[i]._skip=!0,e.placement=x,e.reset=!0)}}const vXe={name:"flip",enabled:!0,phase:"main",fn:EXe,requiresIfExists:["offset"],data:{_skip:!1}};function Wx(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Kx(n){return[Qn,Mi,Ai,Xn].some(function(e){return n[e]>=0})}function SXe(n){var e=n.state,t=n.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=jl(e,{elementContext:"reference"}),a=jl(e,{altBoundary:!0}),c=Wx(o,i),d=Wx(a,s,r),u=Kx(c),_=Kx(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":_})}const TXe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SXe};function xXe(n,e,t){var i=rs(n),s=[Xn,Qn].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[Xn,Mi].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function CXe(n){var e=n.state,t=n.options,i=n.name,s=t.offset,r=s===void 0?[0,0]:s,o=HM.reduce(function(u,_){return u[_]=xXe(_,e.rects,r),u},{}),a=o[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[i]=o}const wXe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CXe};function RXe(n){var e=n.state,t=n.name;e.modifiersData[t]=QM({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const AXe={name:"popperOffsets",enabled:!0,phase:"read",fn:RXe,data:{}};function MXe(n){return n==="x"?"y":"x"}function NXe(n){var e=n.state,t=n.options,i=n.name,s=t.mainAxis,r=s===void 0?!0:s,o=t.altAxis,a=o===void 0?!1:o,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,_=t.padding,m=t.tether,h=m===void 0?!0:m,f=t.tetherOffset,y=f===void 0?0:f,b=jl(e,{boundary:c,rootBoundary:d,padding:_,altBoundary:u}),g=rs(e.placement),E=ba(e.placement),v=!E,S=P0(g),R=MXe(S),C=e.modifiersData.popperOffsets,A=e.rects.reference,I=e.rects.popper,x=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(C){if(r){var ee,O=S==="y"?Qn:Xn,H=S==="y"?Ai:Mi,q=S==="y"?"height":"width",L=C[S],Y=L+b[O],ne=L-b[H],oe=h?-I[q]/2:0,ye=E===ma?A[q]:I[q],xe=E===ma?-I[q]:-A[q],le=e.elements.arrow,ve=h&&le?L0(le):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$M(),De=Oe[O],Q=Oe[H],fe=wl(0,A[q],ve[q]),_e=v?A[q]/2-oe-fe-De-M.mainAxis:ye-fe-De-M.mainAxis,Ae=v?-A[q]/2+oe+fe+Q+M.mainAxis:xe+fe+Q+M.mainAxis,Fe=e.elements.arrow&&dc(e.elements.arrow),te=Fe?S==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,U=(ee=G==null?void 0:G[S])!=null?ee:0,P=L+_e-U-te,Z=L+Ae-U,ce=wl(h?tu(Y,P):Y,L,h?to(ne,Z):ne);C[S]=ce,V[S]=ce-L}if(a){var pe,he=S==="x"?Qn:Xn,ae=S==="x"?Ai:Mi,Me=C[R],Re=R==="y"?"height":"width",ge=Me+b[he],D=Me-b[ae],N=[Qn,Xn].indexOf(g)!==-1,K=(pe=G==null?void 0:G[R])!=null?pe:0,me=N?ge:Me-A[Re]-I[Re]-K+M.altAxis,j=N?Me+A[Re]+I[Re]-K-M.altAxis:D,se=h&&N?eXe(me,Me,j):wl(h?me:ge,Me,h?j:D);C[R]=se,V[R]=se-Me}e.modifiersData[i]=V}}const OXe={name:"preventOverflow",enabled:!0,phase:"main",fn:NXe,requiresIfExists:["offset"]};function IXe(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function kXe(n){return n===li(n)||!xi(n)?F0(n):IXe(n)}function DXe(n){var e=n.getBoundingClientRect(),t=ha(e.width)/n.offsetWidth||1,i=ha(e.height)/n.offsetHeight||1;return t!==1||i!==1}function LXe(n,e,t){t===void 0&&(t=!1);var i=xi(e),s=xi(e)&&DXe(e),r=Mr(e),o=ga(n,s,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!t)&&((ls(e)!=="body"||B0(r))&&(a=kXe(e)),xi(e)?(c=ga(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=U0(r))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function PXe(n){var e=new Map,t=new Set,i=[];n.forEach(function(r){e.set(r.name,r)});function s(r){t.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&s(c)}}),i.push(r)}return n.forEach(function(r){t.has(r.name)||s(r)}),i}function FXe(n){var e=PXe(n);return KQe.reduce(function(t,i){return t.concat(e.filter(function(s){return s.phase===i}))},[])}function UXe(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function BXe(n){var e=n.reduce(function(t,i){var s=t[i.name];return t[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var jx={placement:"bottom",modifiers:[],strategy:"absolute"};function Qx(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function GXe(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,i=t===void 0?[]:t,s=e.defaultOptions,r=s===void 0?jx:s;return function(a,c,d){d===void 0&&(d=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},jx,r),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},_=[],m=!1,h={state:u,setOptions:function(g){var E=typeof g=="function"?g(u.options):g;y(),u.options=Object.assign({},r,u.options,E),u.scrollParents={reference:po(a)?Rl(a):a.contextElement?Rl(a.contextElement):[],popper:Rl(c)};var v=FXe(BXe([].concat(i,u.options.modifiers)));return u.orderedModifiers=v.filter(function(S){return S.enabled}),f(),h.update()},forceUpdate:function(){if(!m){var g=u.elements,E=g.reference,v=g.popper;if(Qx(E,v)){u.rects={reference:LXe(E,dc(v),u.options.strategy==="fixed"),popper:L0(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var R=u.orderedModifiers[S],C=R.fn,A=R.options,I=A===void 0?{}:A,x=R.name;typeof C=="function"&&(u=C({state:u,options:I,name:x,instance:h})||u)}}}},update:UXe(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){y(),m=!0}};if(!Qx(a,c))return h;h.setOptions(d).then(function(b){!m&&d.onFirstUpdate&&d.onFirstUpdate(b)});function f(){u.orderedModifiers.forEach(function(b){var g=b.name,E=b.options,v=E===void 0?{}:E,S=b.effect;if(typeof S=="function"){var R=S({state:u,name:g,instance:h,options:v}),C=function(){};_.push(R||C)}})}function y(){_.forEach(function(b){return b()}),_=[]}return h}}var VXe=[dXe,AXe,lXe,XQe,wXe,vXe,OXe,sXe,TXe],up=GXe({defaultModifiers:VXe});const zXe={components:{ToolbarButton:I0},props:["title"],data(){return{isOpen:!1,popperInstance:null}},mounted(){document.addEventListener("click",this.closeMenu)},beforeUnmount(){document.removeEventListener("click",this.closeMenu),this.popperInstance&&this.popperInstance.destroy()},methods:{toggleMenu(n){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen&&this.$nextTick(()=>{this.createPopper()})},closeMenu(n){var e;!this.$el.contains(n.target)&&!((e=this.$refs.dropdown)!=null&&e.contains(n.target))&&(this.isOpen=!1)},createPopper(){const n=this.$el.querySelector("button"),e=this.$refs.dropdown;n&&e&&(this.popperInstance=up(n,e,{placement:"bottom-end",modifiers:[{name:"flip",options:{fallbackPlacements:["top-end","bottom-start","top-start"]}},{name:"preventOverflow",options:{boundary:document.body}}]}))}}},HXe={class:"relative inline-block text-left"},qXe={key:0,ref:"dropdown",class:"z-50 w-56 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 dark:ring-white dark:ring-opacity-20 focus:outline-none dropdown-shadow text-gray-700 dark:text-white"},YXe={class:"py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"options-menu"};function $Xe(n,e,t,i,s,r){const o=nt("ToolbarButton");return T(),w("div",HXe,[l("div",null,[z(o,{onClick:W(r.toggleMenu,["stop"]),title:t.title,icon:"code"},null,8,["onClick","title"])]),(T(),at(sk,{to:"body"},[s.isOpen?(T(),w("div",qXe,[l("div",YXe,[on(n.$slots,"default",{},void 0,!0)])],512)):B("",!0)]))])}const XM=st(zXe,[["render",$Xe],["__scopeId","data-v-6c3ea3a5"]]);async function Xx(n,e="",t=[]){return new Promise((i,s)=>{const r=document.createElement("div");r.className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-50",t.length===0?r.innerHTML=`
             <div class="bg-white p-6 rounded-md shadow-md w-80">
                 <h2 class="text-lg font-semibold mb-3">${n}</h2>
                 <textarea id="replacementInput" class="w-full h-32 border rounded p-2 mb-3">${e}</textarea>
@@ -95,15 +95,15 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ye=L,oe=Y),ne===void 0
                     <button id="okButton" class="px-4 py-2 bg-blue-500 text-white rounded">OK</button>
                 </div>
             </div>
-        `,document.body.appendChild(r);const o=r.querySelector("#cancelButton"),a=r.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(r),i(null)}),a.addEventListener("click",()=>{if(t.length===0){const d=r.querySelector("#replacementInput").value.trim();document.body.removeChild(r),i(d)}else{const d=r.querySelector("#options_selector").value.trim();document.body.removeChild(r),i(d)}})})}function KXe(n,e){console.log(n);let t={},i=/@<([^>]+)>@/g,s=[],r;for(;(r=i.exec(n))!==null;)s.push("@<"+r[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function o(c){console.log(c);let d=c.toLowerCase().substring(2,c.length-2);if(d!=="generation_placeholder")if(d.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,g])=>{console.log(`Key: ${b}, Value: ${g}`);function E(R){return R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const v=E(b),S=new RegExp(v,"g");d=d.replace(S,g)});let _=d.split(":"),m=_[0],h=_[1]||"",f=[];_.length>2&&(f=_.slice(1));let y=await Xx(m,h,f);y!==null&&(t[c]=y)}else{let u=await Xx(d);u!==null&&(t[c]=u)}}let a=Promise.resolve();s.forEach(c=>{a=a.then(()=>o(c)).then(d=>{console.log(d)})}),a.then(()=>{Object.entries(t).forEach(([c,d])=>{console.log(`Key: ${c}, Value: ${d}`);function u(h){return h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=u(c),m=new RegExp(_,"g");n=n.replace(m,d)}),e(n)})}const jXe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},showSettings:!1,pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:FM,html5_block:UM,LaTeX_block:BM,javascript_block:LM,json_block:PM,code_block:kM,python_block:DM,bash_block:GM,tokenize_icon:AQe,deaf_off:NQe,deaf_on:MQe,rec_off:IQe,rec_on:OQe,loading_icon:VM,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:Qu,MarkdownRenderer:lp,ClipBoardTextInput:O0,TokensHilighter:vQe,ChatBarButton:IM,Card:cp,ToolbarButton:I0,DropdownMenu:XM},mounted(){ie.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}),Ye.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),Ye.on("text_generated",n=>{this.generating=!1}),Ye.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),Ye.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Ye.on("buzzy",n=>{console.error("Server is busy. Wait for your turn",n),this.$refs.toast.showToast(`Error: ${n.message}`,4,!1),this.generating=!1}),Ye.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ve.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(n){n&&(console.log("Audio changed url to :",n),this.$refs.audio_player.src=n)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(n){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){console.log("sending file");const n=new FormData;n.append("file",this.file),ie.post("/upload_voice/",n,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.text[e-1]==`
+        `,document.body.appendChild(r);const o=r.querySelector("#cancelButton"),a=r.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(r),i(null)}),a.addEventListener("click",()=>{if(t.length===0){const d=r.querySelector("#replacementInput").value.trim();document.body.removeChild(r),i(d)}else{const d=r.querySelector("#options_selector").value.trim();document.body.removeChild(r),i(d)}})})}function WXe(n,e){console.log(n);let t={},i=/@<([^>]+)>@/g,s=[],r;for(;(r=i.exec(n))!==null;)s.push("@<"+r[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function o(c){console.log(c);let d=c.toLowerCase().substring(2,c.length-2);if(d!=="generation_placeholder")if(d.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,g])=>{console.log(`Key: ${b}, Value: ${g}`);function E(R){return R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const v=E(b),S=new RegExp(v,"g");d=d.replace(S,g)});let _=d.split(":"),m=_[0],h=_[1]||"",f=[];_.length>2&&(f=_.slice(1));let y=await Xx(m,h,f);y!==null&&(t[c]=y)}else{let u=await Xx(d);u!==null&&(t[c]=u)}}let a=Promise.resolve();s.forEach(c=>{a=a.then(()=>o(c)).then(d=>{console.log(d)})}),a.then(()=>{Object.entries(t).forEach(([c,d])=>{console.log(`Key: ${c}, Value: ${d}`);function u(h){return h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=u(c),m=new RegExp(_,"g");n=n.replace(m,d)}),e(n)})}const KXe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},showSettings:!1,pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:FM,html5_block:UM,LaTeX_block:BM,javascript_block:LM,json_block:PM,code_block:kM,python_block:DM,bash_block:GM,tokenize_icon:RQe,deaf_off:MQe,deaf_on:AQe,rec_off:OQe,rec_on:NQe,loading_icon:VM,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:Qu,MarkdownRenderer:lp,ClipBoardTextInput:O0,TokensHilighter:EQe,ChatBarButton:IM,Card:cp,ToolbarButton:I0,DropdownMenu:XM},mounted(){ie.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}),Ye.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),Ye.on("text_generated",n=>{this.generating=!1}),Ye.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),Ye.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Ye.on("buzzy",n=>{console.error("Server is busy. Wait for your turn",n),this.$refs.toast.showToast(`Error: ${n.message}`,4,!1),this.generating=!1}),Ye.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{Ve.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(n){n&&(console.log("Audio changed url to :",n),this.$refs.audio_player.src=n)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(n){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){console.log("sending file");const n=new FormData;n.append("file",this.file),ie.post("/upload_voice/",n,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.text[e-1]==`
 `?(this.text=this.text.slice(0,e)+"```"+n+"\n\n```\n"+this.text.slice(e),e=e+4+n.length):(this.text=this.text.slice(0,e)+"\n```"+n+"\n\n```\n"+this.text.slice(e),e=e+3+n.length):speechSynthesis==0||this.text[e-1]==`
 `?(this.text=this.text.slice(0,e)+"```"+n+`
 `+this.text.slice(e,t)+"\n```\n"+this.text.slice(t),e=e+4+n.length):(this.text=this.text.slice(0,e)+"\n```"+n+`
 `+this.text.slice(e,t)+"\n```\n"+this.text.slice(t),e=e+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=e.value.substring(0,t),r=e.value.substring(i),o=s+"    "+r;this.text=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4}),n.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,ie.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(n=>{console.log(n),n.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(n=>{this.$refs.toast.showToast(`Error ${n}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let n=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,t=this.text;n!=e&&(t=t.slice(n,e)),ie.post("./text2Wave",{client_id:this.$store.state.client_id,text:t}).then(i=>{console.log(i.data.url);let s=i.data.url;this.audio_url=s,this.isSynthesizingVoice=!1,Le(()=>{Ve.replace()})}).catch(i=>{this.$refs.toast.showToast(`Error: ${i}`,4,!1),this.isSynthesizingVoice=!1,Le(()=>{Ve.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const t=s=>{let r=this.text.substring(s,s+e);const o=[".","!","?",`
-`];let a=-1;return o.forEach(c=>{const d=r.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{const s=t(n),r=this.text.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n<this.text.length-2?setTimeout(()=>{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length,"  ",s))},this.speechSynthesis.speak(this.msg)};i()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(n){this.pre_text+=n,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let n=this.text.indexOf("@<generation_placeholder>@");if(n<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,n)+this.text.substring(n+26,this.text.length),this.pre_text=this.text.substring(0,n),this.post_text=this.text.substring(n,this.text.length);var e=this.text.substring(0,n);console.log(e),Ye.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const n=await ie.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(n.data.named_tokens),this.namedTokens=n.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var n=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${n}`),Ye.emit("generate_text",{prompt:n,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Ye.emit("cancel_text_generation",{})},exportText(){const n=this.text,e=document.createElement("a"),t=new Blob([n],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const n=document.getElementById("import-input");n&&(n.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const t=new FileReader;t.onload=()=>{this.text=t.result},t.readAsText(e.target.files[0])}else alert("Please select a file.")}),n.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=KXe(this.selectedPreset.content,n=>{console.log("Done"),console.log(n),this.text=n})},addPreset(){let n=prompt("Enter the title of the preset:");this.presets[n]={client_id:this.$store.state.client_id,name:n,content:this.text},ie.post("./add_preset",this.presets[n]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){ie.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?ie.post("/stop_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!1,this.pending=!1,console.log(n),this.text+=n.data,console.log("text"),console.log(this.text),console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):ie.post("/start_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!0,this.pending=!1,console.log(n.data)}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?ie.get("/stop_recording").then(n=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=n.data.text,this.read()}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):ie.get("/start_recording").then(n=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=n=>{this.generated="";for(let e=n.resultIndex;e<n.results.length;e++)this.generated+=n.results[e][0].transcript;this.text=this.pre_text+this.generated+this.post_text,this.cursorPosition=this.pre_text.length+this.generated.length,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},QXe={class:"container w-full background-color shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},XXe={class:"container flex flex-row m-2 w-full"},ZXe={class:"flex-grow w-full m-2"},JXe={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},eZe={class:"flex items-center space-x-2"},tZe=["src"],nZe=["src"],iZe=["src"],sZe=["src"],rZe=["src"],oZe={key:1,class:"w-6 h-6"},aZe={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},lZe={key:0},cZe=["src"],dZe={key:2},uZe={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},pZe=["value"],fZe={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},_Ze=["value"],mZe={class:"slider-container ml-2 mr-2"},hZe={class:"slider-value text-gray-500"},gZe={class:"slider-container ml-2 mr-2"},bZe={class:"slider-value text-gray-500"},yZe={class:"slider-container ml-2 mr-2"},EZe={class:"slider-value text-gray-500"},vZe={class:"slider-container ml-2 mr-2"},SZe={class:"slider-value text-gray-500"},TZe={class:"slider-container ml-2 mr-2"},xZe={class:"slider-value text-gray-500"},CZe={class:"slider-container ml-2 mr-2"},wZe={class:"slider-value text-gray-500"},RZe={class:"slider-container ml-2 mr-2"},AZe={class:"slider-value text-gray-500"},MZe={class:"slider-container ml-2 mr-2"},NZe={class:"slider-value text-gray-500"};function OZe(n,e,t,i,s,r){const o=nt("ChatBarButton"),a=nt("ToolbarButton"),c=nt("DropdownSubmenu"),d=nt("DropdownMenu"),u=nt("tokens-hilighter"),_=nt("MarkdownRenderer"),m=nt("Card"),h=nt("Toast");return T(),w(Be,null,[l("div",QXe,[l("div",XXe,[l("div",ZXe,[l("div",JXe,[l("div",eZe,[k(z(o,{onClick:r.generate,title:"Generate from the current cursor position"},{icon:Ie(()=>e[54]||(e[54]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),k(z(o,{onClick:r.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Ie(()=>e[55]||(e[55]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),k(z(o,{onClick:r.tokenize_text,title:"Tokenize the text"},{icon:Ie(()=>[l("img",{src:s.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,tZe)]),_:1},8,["onClick"]),[[_t,!s.generating]]),e[65]||(e[65]=l("span",{class:"w-80"},null,-1)),k(z(o,{onClick:r.stopGeneration,title:"Stop generation"},{icon:Ie(()=>e[56]||(e[56]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),_:1},8,["onClick"]),[[_t,s.generating]]),z(o,{onClick:r.startSpeechRecognition,class:Ue({"text-red-500":n.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Ie(()=>e[57]||(e[57]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),z(o,{onClick:r.speak,class:Ue({"text-red-500":r.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Ie(()=>e[58]||(e[58]=[Ze(" 🪶 ")])),_:1},8,["onClick","class"]),z(o,{onClick:r.triggerFileUpload,title:"Upload a voice"},{icon:Ie(()=>e[59]||(e[59]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.startRecordingAndTranscribing,class:Ue({"text-green-500":s.isLesteningToVoice}),title:"Start audio to audio"},{icon:Ie(()=>[s.pending?(T(),w("img",{key:1,src:s.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,iZe)):(T(),w("img",{key:0,src:s.is_deaf_transcribing?s.deaf_on:s.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,nZe))]),_:1},8,["onClick","class"]),z(o,{onClick:r.startRecording,class:Ue({"text-green-500":s.isLesteningToVoice}),title:"Start audio recording"},{icon:Ie(()=>[s.pending?(T(),w("img",{key:1,src:s.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,rZe)):(T(),w("img",{key:0,src:s.is_recording?s.rec_on:s.rec_off,alt:"Record",class:"h-5 w-5"},null,8,sZe))]),_:1},8,["onClick","class"]),s.isSynthesizingVoice?(T(),w("div",oZe,e[61]||(e[61]=[l("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):(T(),at(o,{key:0,onClick:r.read,title:"Generate audio from text"},{icon:Ie(()=>e[60]||(e[60]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"])),k(z(o,{onClick:r.exportText,title:"Export text"},{icon:Ie(()=>e[62]||(e[62]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),k(z(o,{onClick:r.importText,title:"Import text"},{icon:Ie(()=>e[63]||(e[63]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),z(o,{onClick:e[0]||(e[0]=f=>s.showSettings=!s.showSettings),title:"Settings"},{icon:Ie(()=>e[64]||(e[64]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1})]),l("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(...f)=>r.handleFileUpload&&r.handleFileUpload(...f)),style:{display:"none"},accept:".wav"},null,544),l("div",aZe,[l("button",{class:Ue(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[2]||(e[2]=f=>s.tab_id="source")}," Source ",2),l("button",{class:Ue(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[3]||(e[3]=f=>s.tab_id="render")}," Render ",2)]),e[66]||(e[66]=l("input",{type:"file",id:"import-input",class:"hidden"},null,-1))]),l("div",{class:Ue(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":s.generating}])},[s.tab_id==="source"?(T(),w("div",lZe,[z(d,{title:"Add Block"},{default:Ie(()=>[z(c,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(a,{onClick:e[4]||(e[4]=W(f=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(a,{onClick:e[5]||(e[5]=W(f=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(a,{onClick:e[6]||(e[6]=W(f=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(a,{onClick:e[7]||(e[7]=W(f=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(a,{onClick:e[8]||(e[8]=W(f=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(a,{onClick:e[9]||(e[9]=W(f=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(a,{onClick:e[10]||(e[10]=W(f=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(a,{onClick:e[11]||(e[11]=W(f=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(a,{onClick:e[12]||(e[12]=W(f=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(a,{onClick:e[13]||(e[13]=W(f=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(a,{onClick:e[14]||(e[14]=W(f=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(c,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(a,{onClick:e[15]||(e[15]=W(f=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(a,{onClick:e[16]||(e[16]=W(f=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(a,{onClick:e[17]||(e[17]=W(f=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(a,{onClick:e[18]||(e[18]=W(f=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(a,{onClick:e[19]||(e[19]=W(f=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(c,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(a,{onClick:e[20]||(e[20]=W(f=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(a,{onClick:e[21]||(e[21]=W(f=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(a,{onClick:e[22]||(e[22]=W(f=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(a,{onClick:e[23]||(e[23]=W(f=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(a,{onClick:e[24]||(e[24]=W(f=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(c,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(a,{onClick:e[25]||(e[25]=W(f=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(a,{onClick:e[26]||(e[26]=W(f=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(a,{onClick:e[27]||(e[27]=W(f=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(c,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(a,{onClick:e[28]||(e[28]=W(f=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(a,{onClick:e[29]||(e[29]=W(f=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(a,{onClick:e[30]||(e[30]=W(f=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(c,{title:"Database",icon:"database"},{default:Ie(()=>[z(a,{onClick:e[31]||(e[31]=W(f=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(a,{onClick:e[32]||(e[32]=W(f=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(a,{onClick:e[33]||(e[33]=W(f=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),z(a,{onClick:e[34]||(e[34]=W(f=>n.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),k(l("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=wi(W((...f)=>r.insertTab&&r.insertTab(...f),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:Wt({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=f=>s.text=f),onClick:e[37]||(e[37]=W((...f)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(...f),["prevent"])),onChange:e[38]||(e[38]=W((...f)=>r.mdTextarea_changed&&r.mdTextarea_changed(...f),["prevent"]))},"                ",36),[[ue,s.text]]),l("span",null,"Cursor position "+$(s.cursorPosition),1)])):B("",!0),s.audio_url!=null?(T(),w("audio",{controls:"",key:s.audio_url},[l("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,cZe),e[67]||(e[67]=Ze(" Your browser does not support the audio element. "))])):B("",!0),z(u,{namedTokens:s.namedTokens},null,8,["namedTokens"]),s.tab_id==="render"?(T(),w("div",dZe,[z(_,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":s.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):B("",!0)],2)]),s.showSettings?(T(),w("div",uZe,[e[82]||(e[82]=l("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1)),z(m,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[k(l("select",{"onUpdate:modelValue":e[39]||(e[39]=f=>this.$store.state.selectedModel=f),onChange:e[40]||(e[40]=(...f)=>r.setModel&&r.setModel(...f)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Be,null,Xe(r.models,f=>(T(),w("option",{key:f,value:f},$(f),9,pZe))),128))],544),[[It,this.$store.state.selectedModel]]),s.selecting_model?(T(),w("div",fZe,e[68]||(e[68]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Selecting model...")],-1)]))):B("",!0)]),_:1}),z(m,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[k(l("select",{"onUpdate:modelValue":e[41]||(e[41]=f=>s.selectedPreset=f),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Be,null,Xe(s.presets,f=>(T(),w("option",{key:f,value:f},$(f.name),9,_Ze))),128))],512),[[It,s.selectedPreset]]),e[73]||(e[73]=l("br",null,null,-1)),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(...f)=>r.setPreset&&r.setPreset(...f)),title:"Use preset"},e[69]||(e[69]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(...f)=>r.addPreset&&r.addPreset(...f)),title:"Add this text as a preset"},e[70]||(e[70]=[l("i",{"data-feather":"plus"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(...f)=>r.removePreset&&r.removePreset(...f)),title:"Remove preset"},e[71]||(e[71]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(...f)=>r.reloadPresets&&r.reloadPresets(...f)),title:"Reload presets list"},e[72]||(e[72]=[l("i",{"data-feather":"refresh-ccw"},null,-1)]))]),_:1}),z(m,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[l("div",mZe,[e[74]||(e[74]=l("h3",{class:"text-gray-600"},"Temperature",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=f=>s.temperature=f),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[ue,s.temperature]]),l("span",hZe,"Current value: "+$(s.temperature),1)]),l("div",gZe,[e[75]||(e[75]=l("h3",{class:"text-gray-600"},"Top K",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=f=>s.top_k=f),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[ue,s.top_k]]),l("span",bZe,"Current value: "+$(s.top_k),1)]),l("div",yZe,[e[76]||(e[76]=l("h3",{class:"text-gray-600"},"Top P",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=f=>s.top_p=f),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[ue,s.top_p]]),l("span",EZe,"Current value: "+$(s.top_p),1)]),l("div",vZe,[e[77]||(e[77]=l("h3",{class:"text-gray-600"},"Repeat Penalty",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=f=>s.repeat_penalty=f),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.repeat_penalty]]),l("span",SZe,"Current value: "+$(s.repeat_penalty),1)]),l("div",TZe,[e[78]||(e[78]=l("h3",{class:"text-gray-600"},"Repeat Last N",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=f=>s.repeat_last_n=f),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.repeat_last_n]]),l("span",xZe,"Current value: "+$(s.repeat_last_n),1)]),l("div",CZe,[e[79]||(e[79]=l("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=f=>s.n_crop=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.n_crop]]),l("span",wZe,"Current value: "+$(s.n_crop),1)]),l("div",RZe,[e[80]||(e[80]=l("h3",{class:"text-gray-600"},"Number of tokens to generate",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=f=>s.n_predicts=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.n_predicts]]),l("span",AZe,"Current value: "+$(s.n_predicts),1)]),l("div",MZe,[e[81]||(e[81]=l("h3",{class:"text-gray-600"},"Seed",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=f=>s.seed=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.seed]]),l("span",NZe,"Current value: "+$(s.seed),1)])]),_:1})])):B("",!0)])]),z(h,{ref:"toast"},null,512)],64)}const IZe=st(jXe,[["render",OZe]]),kZe={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(HO(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(n){this.activeExtension=n}}},DZe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},LZe={key:0},PZe=["onClick"],FZe={key:0},UZe=["src"],BZe={key:1};function GZe(n,e,t,i,s,r){return T(),w("div",DZe,[r.activeExtensions.length>0?(T(),w("div",LZe,[(T(!0),w(Be,null,Xe(r.activeExtensions,o=>(T(),w("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[l("div",{class:Ue({"active-tab":o===s.activeExtension})},$(o.name),3)],8,PZe))),128)),s.activeExtension?(T(),w("div",FZe,[l("iframe",{src:s.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,UZe)])):B("",!0)])):(T(),w("div",BZe,e[0]||(e[0]=[l("p",null,"No extension is active. Please install and activate an extension.",-1)])))])}const VZe=st(kZe,[["render",GZe]]);function G0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Eo=G0();function ZM(n){Eo=n}const JM=/[&<>"']/,zZe=new RegExp(JM.source,"g"),eN=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,HZe=new RegExp(eN.source,"g"),qZe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zx=n=>qZe[n];function ii(n,e){if(e){if(JM.test(n))return n.replace(zZe,Zx)}else if(eN.test(n))return n.replace(HZe,Zx);return n}const YZe=/(^|[^\[])\^/g;function zt(n,e){let t=typeof n=="string"?n:n.source;e=e||"";const i={replace:(s,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(YZe,"$1"),t=t.replace(s,o),i},getRegex:()=>new RegExp(t,e)};return i}function Jx(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Al={exec:()=>null};function eC(n,e){const t=n.replace(/\|/g,(r,o,a)=>{let c=!1,d=o;for(;--d>=0&&a[d]==="\\";)c=!c;return c?"|":" |"}),i=t.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function sl(n,e,t){const i=n.length;if(i===0)return"";let s=0;for(;s<i;){const r=n.charAt(i-s-1);if(r===e&&!t)s++;else if(r!==e&&t)s++;else break}return n.slice(0,i-s)}function $Ze(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<n.length;i++)if(n[i]==="\\")i++;else if(n[i]===e[0])t++;else if(n[i]===e[1]&&(t--,t<0))return i;return-1}function tC(n,e,t,i){const s=e.href,r=e.title?ii(e.title):null,o=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){i.state.inLink=!0;const a={type:"link",raw:t,href:s,title:r,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,a}return{type:"image",raw:t,href:s,title:r,text:ii(o)}}function WZe(n,e){const t=n.match(/^(\s+)(?:```)/);if(t===null)return e;const i=t[1];return e.split(`
+`];let a=-1;return o.forEach(c=>{const d=r.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{const s=t(n),r=this.text.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n<this.text.length-2?setTimeout(()=>{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length,"  ",s))},this.speechSynthesis.speak(this.msg)};i()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(n){this.pre_text+=n,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let n=this.text.indexOf("@<generation_placeholder>@");if(n<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,n)+this.text.substring(n+26,this.text.length),this.pre_text=this.text.substring(0,n),this.post_text=this.text.substring(n,this.text.length);var e=this.text.substring(0,n);console.log(e),Ye.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const n=await ie.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(n.data.named_tokens),this.namedTokens=n.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var n=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${n}`),Ye.emit("generate_text",{prompt:n,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Ye.emit("cancel_text_generation",{})},exportText(){const n=this.text,e=document.createElement("a"),t=new Blob([n],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const n=document.getElementById("import-input");n&&(n.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const t=new FileReader;t.onload=()=>{this.text=t.result},t.readAsText(e.target.files[0])}else alert("Please select a file.")}),n.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=WXe(this.selectedPreset.content,n=>{console.log("Done"),console.log(n),this.text=n})},addPreset(){let n=prompt("Enter the title of the preset:");this.presets[n]={client_id:this.$store.state.client_id,name:n,content:this.text},ie.post("./add_preset",this.presets[n]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){ie.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?ie.post("/stop_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!1,this.pending=!1,console.log(n),this.text+=n.data,console.log("text"),console.log(this.text),console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):ie.post("/start_recording",{client_id:this.$store.state.client_id}).then(n=>{this.is_recording=!0,this.pending=!1,console.log(n.data)}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?ie.get("/stop_recording").then(n=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=n.data.text,this.read()}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):ie.get("/start_recording").then(n=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=n=>{this.generated="";for(let e=n.resultIndex;e<n.results.length;e++)this.generated+=n.results[e][0].transcript;this.text=this.pre_text+this.generated+this.post_text,this.cursorPosition=this.pre_text.length+this.generated.length,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},jXe={class:"container w-full background-color shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},QXe={class:"container flex flex-row m-2 w-full"},XXe={class:"flex-grow w-full m-2"},ZXe={class:"flex panels-color gap-3 flex-1 items-center flex-grow flex-row rounded-md border-2 border-blue-300 m-2 p-4"},JXe={class:"flex items-center space-x-2"},eZe=["src"],tZe=["src"],nZe=["src"],iZe=["src"],sZe=["src"],rZe={key:1,class:"w-6 h-6"},oZe={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},aZe={key:0},lZe=["src"],cZe={key:2},dZe={key:0,class:"settings scrollbar bg-white dark:bg-gray-800 rounded-lg shadow-md p-6"},uZe=["value"],pZe={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},fZe=["value"],_Ze={class:"slider-container ml-2 mr-2"},mZe={class:"slider-value text-gray-500"},hZe={class:"slider-container ml-2 mr-2"},gZe={class:"slider-value text-gray-500"},bZe={class:"slider-container ml-2 mr-2"},yZe={class:"slider-value text-gray-500"},EZe={class:"slider-container ml-2 mr-2"},vZe={class:"slider-value text-gray-500"},SZe={class:"slider-container ml-2 mr-2"},TZe={class:"slider-value text-gray-500"},xZe={class:"slider-container ml-2 mr-2"},CZe={class:"slider-value text-gray-500"},wZe={class:"slider-container ml-2 mr-2"},RZe={class:"slider-value text-gray-500"},AZe={class:"slider-container ml-2 mr-2"},MZe={class:"slider-value text-gray-500"};function NZe(n,e,t,i,s,r){const o=nt("ChatBarButton"),a=nt("ToolbarButton"),c=nt("DropdownSubmenu"),d=nt("DropdownMenu"),u=nt("tokens-hilighter"),_=nt("MarkdownRenderer"),m=nt("Card"),h=nt("Toast");return T(),w(Be,null,[l("div",jXe,[l("div",QXe,[l("div",XXe,[l("div",ZXe,[l("div",JXe,[k(z(o,{onClick:r.generate,title:"Generate from the current cursor position"},{icon:Ie(()=>e[54]||(e[54]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),k(z(o,{onClick:r.generate_in_placeholder,title:"Generate from the next placeholder"},{icon:Ie(()=>e[55]||(e[55]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),k(z(o,{onClick:r.tokenize_text,title:"Tokenize the text"},{icon:Ie(()=>[l("img",{src:s.tokenize_icon,alt:"Tokenize",class:"h-5 w-5"},null,8,eZe)]),_:1},8,["onClick"]),[[_t,!s.generating]]),e[65]||(e[65]=l("span",{class:"w-80"},null,-1)),k(z(o,{onClick:r.stopGeneration,title:"Stop generation"},{icon:Ie(()=>e[56]||(e[56]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])),_:1},8,["onClick"]),[[_t,s.generating]]),z(o,{onClick:r.startSpeechRecognition,class:Ue({"text-red-500":n.isListeningToVoice}),title:"Dictate (using your browser's transcription)"},{icon:Ie(()=>e[57]||(e[57]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),z(o,{onClick:r.speak,class:Ue({"text-red-500":r.isTalking}),title:"Convert text to audio (not saved, uses your browser's TTS service)"},{icon:Ie(()=>e[58]||(e[58]=[Ze(" 🪶 ")])),_:1},8,["onClick","class"]),z(o,{onClick:r.triggerFileUpload,title:"Upload a voice"},{icon:Ie(()=>e[59]||(e[59]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.startRecordingAndTranscribing,class:Ue({"text-green-500":s.isLesteningToVoice}),title:"Start audio to audio"},{icon:Ie(()=>[s.pending?(T(),w("img",{key:1,src:s.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,nZe)):(T(),w("img",{key:0,src:s.is_deaf_transcribing?s.deaf_on:s.deaf_off,alt:"Deaf",class:"h-5 w-5"},null,8,tZe))]),_:1},8,["onClick","class"]),z(o,{onClick:r.startRecording,class:Ue({"text-green-500":s.isLesteningToVoice}),title:"Start audio recording"},{icon:Ie(()=>[s.pending?(T(),w("img",{key:1,src:s.loading_icon,alt:"Loading",class:"h-5 w-5"},null,8,sZe)):(T(),w("img",{key:0,src:s.is_recording?s.rec_on:s.rec_off,alt:"Record",class:"h-5 w-5"},null,8,iZe))]),_:1},8,["onClick","class"]),s.isSynthesizingVoice?(T(),w("div",rZe,e[61]||(e[61]=[l("svg",{class:"animate-spin h-5 w-5 text-secondary",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))):(T(),at(o,{key:0,onClick:r.read,title:"Generate audio from text"},{icon:Ie(()=>e[60]||(e[60]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick"])),k(z(o,{onClick:r.exportText,title:"Export text"},{icon:Ie(()=>e[62]||(e[62]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),k(z(o,{onClick:r.importText,title:"Import text"},{icon:Ie(()=>e[63]||(e[63]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),_:1},8,["onClick"]),[[_t,!s.generating]]),z(o,{onClick:e[0]||(e[0]=f=>s.showSettings=!s.showSettings),title:"Settings"},{icon:Ie(()=>e[64]||(e[64]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1})]),l("input",{type:"file",ref:"fileInput",onChange:e[1]||(e[1]=(...f)=>r.handleFileUpload&&r.handleFileUpload(...f)),style:{display:"none"},accept:".wav"},null,544),l("div",oZe,[l("button",{class:Ue(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[2]||(e[2]=f=>s.tab_id="source")}," Source ",2),l("button",{class:Ue(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[3]||(e[3]=f=>s.tab_id="render")}," Render ",2)]),e[66]||(e[66]=l("input",{type:"file",id:"import-input",class:"hidden"},null,-1))]),l("div",{class:Ue(["flex-grow m-2 p-2 border panels-color border-blue-300 rounded-md",{"border-red-500":s.generating}])},[s.tab_id==="source"?(T(),w("div",aZe,[z(d,{title:"Add Block"},{default:Ie(()=>[z(c,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(a,{onClick:e[4]||(e[4]=W(f=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(a,{onClick:e[5]||(e[5]=W(f=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(a,{onClick:e[6]||(e[6]=W(f=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(a,{onClick:e[7]||(e[7]=W(f=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(a,{onClick:e[8]||(e[8]=W(f=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(a,{onClick:e[9]||(e[9]=W(f=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(a,{onClick:e[10]||(e[10]=W(f=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(a,{onClick:e[11]||(e[11]=W(f=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(a,{onClick:e[12]||(e[12]=W(f=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(a,{onClick:e[13]||(e[13]=W(f=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(a,{onClick:e[14]||(e[14]=W(f=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(c,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(a,{onClick:e[15]||(e[15]=W(f=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(a,{onClick:e[16]||(e[16]=W(f=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(a,{onClick:e[17]||(e[17]=W(f=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(a,{onClick:e[18]||(e[18]=W(f=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(a,{onClick:e[19]||(e[19]=W(f=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(c,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(a,{onClick:e[20]||(e[20]=W(f=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(a,{onClick:e[21]||(e[21]=W(f=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(a,{onClick:e[22]||(e[22]=W(f=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(a,{onClick:e[23]||(e[23]=W(f=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(a,{onClick:e[24]||(e[24]=W(f=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(c,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(a,{onClick:e[25]||(e[25]=W(f=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(a,{onClick:e[26]||(e[26]=W(f=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(a,{onClick:e[27]||(e[27]=W(f=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(c,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(a,{onClick:e[28]||(e[28]=W(f=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(a,{onClick:e[29]||(e[29]=W(f=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(a,{onClick:e[30]||(e[30]=W(f=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(c,{title:"Database",icon:"database"},{default:Ie(()=>[z(a,{onClick:e[31]||(e[31]=W(f=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(a,{onClick:e[32]||(e[32]=W(f=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(a,{onClick:e[33]||(e[33]=W(f=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1}),z(a,{onClick:e[34]||(e[34]=W(f=>n.copyContentToClipboard(),["stop"])),title:"Copy message to clipboard",icon:"copy"}),k(l("textarea",{ref:"mdTextarea",onKeydown:e[35]||(e[35]=wi(W((...f)=>r.insertTab&&r.insertTab(...f),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:Wt({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[36]||(e[36]=f=>s.text=f),onClick:e[37]||(e[37]=W((...f)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(...f),["prevent"])),onChange:e[38]||(e[38]=W((...f)=>r.mdTextarea_changed&&r.mdTextarea_changed(...f),["prevent"]))},"                ",36),[[ue,s.text]]),l("span",null,"Cursor position "+$(s.cursorPosition),1)])):B("",!0),s.audio_url!=null?(T(),w("audio",{controls:"",key:s.audio_url},[l("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,lZe),e[67]||(e[67]=Ze(" Your browser does not support the audio element. "))])):B("",!0),z(u,{namedTokens:s.namedTokens},null,8,["namedTokens"]),s.tab_id==="render"?(T(),w("div",cZe,[z(_,{ref:"mdRender",client_id:this.$store.state.client_id,message_id:0,discussion_id:0,"markdown-text":s.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["client_id","markdown-text"])])):B("",!0)],2)]),s.showSettings?(T(),w("div",dZe,[e[82]||(e[82]=l("h2",{class:"text-2xl font-bold text-gray-900 dark:text-white mb-4"},"Settings",-1)),z(m,{title:"Model",class:"slider-container ml-0 mr-0",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[k(l("select",{"onUpdate:modelValue":e[39]||(e[39]=f=>this.$store.state.selectedModel=f),onChange:e[40]||(e[40]=(...f)=>r.setModel&&r.setModel(...f)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Be,null,Xe(r.models,f=>(T(),w("option",{key:f,value:f},$(f),9,uZe))),128))],544),[[It,this.$store.state.selectedModel]]),s.selecting_model?(T(),w("div",pZe,e[68]||(e[68]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Selecting model...")],-1)]))):B("",!0)]),_:1}),z(m,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[k(l("select",{"onUpdate:modelValue":e[41]||(e[41]=f=>s.selectedPreset=f),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Be,null,Xe(s.presets,f=>(T(),w("option",{key:f,value:f},$(f.name),9,fZe))),128))],512),[[It,s.selectedPreset]]),e[73]||(e[73]=l("br",null,null,-1)),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[42]||(e[42]=(...f)=>r.setPreset&&r.setPreset(...f)),title:"Use preset"},e[69]||(e[69]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[43]||(e[43]=(...f)=>r.addPreset&&r.addPreset(...f)),title:"Add this text as a preset"},e[70]||(e[70]=[l("i",{"data-feather":"plus"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[44]||(e[44]=(...f)=>r.removePreset&&r.removePreset(...f)),title:"Remove preset"},e[71]||(e[71]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[45]||(e[45]=(...f)=>r.reloadPresets&&r.reloadPresets(...f)),title:"Reload presets list"},e[72]||(e[72]=[l("i",{"data-feather":"refresh-ccw"},null,-1)]))]),_:1}),z(m,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[l("div",_Ze,[e[74]||(e[74]=l("h3",{class:"text-gray-600"},"Temperature",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[46]||(e[46]=f=>s.temperature=f),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[ue,s.temperature]]),l("span",mZe,"Current value: "+$(s.temperature),1)]),l("div",hZe,[e[75]||(e[75]=l("h3",{class:"text-gray-600"},"Top K",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[47]||(e[47]=f=>s.top_k=f),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[ue,s.top_k]]),l("span",gZe,"Current value: "+$(s.top_k),1)]),l("div",bZe,[e[76]||(e[76]=l("h3",{class:"text-gray-600"},"Top P",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[48]||(e[48]=f=>s.top_p=f),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[ue,s.top_p]]),l("span",yZe,"Current value: "+$(s.top_p),1)]),l("div",EZe,[e[77]||(e[77]=l("h3",{class:"text-gray-600"},"Repeat Penalty",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[49]||(e[49]=f=>s.repeat_penalty=f),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.repeat_penalty]]),l("span",vZe,"Current value: "+$(s.repeat_penalty),1)]),l("div",SZe,[e[78]||(e[78]=l("h3",{class:"text-gray-600"},"Repeat Last N",-1)),k(l("input",{type:"range","onUpdate:modelValue":e[50]||(e[50]=f=>s.repeat_last_n=f),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.repeat_last_n]]),l("span",TZe,"Current value: "+$(s.repeat_last_n),1)]),l("div",xZe,[e[79]||(e[79]=l("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[51]||(e[51]=f=>s.n_crop=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.n_crop]]),l("span",CZe,"Current value: "+$(s.n_crop),1)]),l("div",wZe,[e[80]||(e[80]=l("h3",{class:"text-gray-600"},"Number of tokens to generate",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[52]||(e[52]=f=>s.n_predicts=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.n_predicts]]),l("span",RZe,"Current value: "+$(s.n_predicts),1)]),l("div",AZe,[e[81]||(e[81]=l("h3",{class:"text-gray-600"},"Seed",-1)),k(l("input",{type:"number","onUpdate:modelValue":e[53]||(e[53]=f=>s.seed=f),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[ue,s.seed]]),l("span",MZe,"Current value: "+$(s.seed),1)])]),_:1})])):B("",!0)])]),z(h,{ref:"toast"},null,512)],64)}const OZe=st(KXe,[["render",NZe]]),IZe={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(HO(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(n){this.activeExtension=n}}},kZe={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},DZe={key:0},LZe=["onClick"],PZe={key:0},FZe=["src"],UZe={key:1};function BZe(n,e,t,i,s,r){return T(),w("div",kZe,[r.activeExtensions.length>0?(T(),w("div",DZe,[(T(!0),w(Be,null,Xe(r.activeExtensions,o=>(T(),w("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[l("div",{class:Ue({"active-tab":o===s.activeExtension})},$(o.name),3)],8,LZe))),128)),s.activeExtension?(T(),w("div",PZe,[l("iframe",{src:s.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,FZe)])):B("",!0)])):(T(),w("div",UZe,e[0]||(e[0]=[l("p",null,"No extension is active. Please install and activate an extension.",-1)])))])}const GZe=st(IZe,[["render",BZe]]);function G0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Eo=G0();function ZM(n){Eo=n}const JM=/[&<>"']/,VZe=new RegExp(JM.source,"g"),eN=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zZe=new RegExp(eN.source,"g"),HZe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zx=n=>HZe[n];function ii(n,e){if(e){if(JM.test(n))return n.replace(VZe,Zx)}else if(eN.test(n))return n.replace(zZe,Zx);return n}const qZe=/(^|[^\[])\^/g;function zt(n,e){let t=typeof n=="string"?n:n.source;e=e||"";const i={replace:(s,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(qZe,"$1"),t=t.replace(s,o),i},getRegex:()=>new RegExp(t,e)};return i}function Jx(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Al={exec:()=>null};function eC(n,e){const t=n.replace(/\|/g,(r,o,a)=>{let c=!1,d=o;for(;--d>=0&&a[d]==="\\";)c=!c;return c?"|":" |"}),i=t.split(/ \|/);let s=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(/\\\|/g,"|");return i}function sl(n,e,t){const i=n.length;if(i===0)return"";let s=0;for(;s<i;){const r=n.charAt(i-s-1);if(r===e&&!t)s++;else if(r!==e&&t)s++;else break}return n.slice(0,i-s)}function YZe(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<n.length;i++)if(n[i]==="\\")i++;else if(n[i]===e[0])t++;else if(n[i]===e[1]&&(t--,t<0))return i;return-1}function tC(n,e,t,i){const s=e.href,r=e.title?ii(e.title):null,o=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){i.state.inLink=!0;const a={type:"link",raw:t,href:s,title:r,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,a}return{type:"image",raw:t,href:s,title:r,text:ii(o)}}function $Ze(n,e){const t=n.match(/^(\s+)(?:```)/);if(t===null)return e;const i=t[1];return e.split(`
 `).map(s=>{const r=s.match(/^\s+/);if(r===null)return s;const[o]=r;return o.length>=i.length?s.slice(i.length):s}).join(`
 `)}class nu{constructor(e){qt(this,"options");qt(this,"rules");qt(this,"lexer");this.options=e||Eo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const i=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:sl(i,`
-`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const i=t[0],s=WZe(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){const s=sl(i,"#");(this.options.pedantic||!s||/ $/.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:sl(t[0],`
+`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const i=t[0],s=$Ze(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(/#$/.test(i)){const s=sl(i,"#");(this.options.pedantic||!s||/ $/.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:sl(t[0],`
 `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let i=sl(t[0],`
 `).split(`
 `),s="",r="";const o=[];for(;i.length>0;){let a=!1;const c=[];let d;for(d=0;d<i.length;d++)if(/^ {0,3}>/.test(i[d]))c.push(i[d]),a=!0;else if(!a)c.push(i[d]);else break;i=i.slice(d);const u=c.join(`
@@ -124,8 +124,8 @@ ${_}`:_;const m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
 `+m}!h&&!m.trim()&&(h=!0),d+=C+`
 `,e=e.substring(C.length+1),_=A.slice(f)}}r.loose||(a?r.loose=!0:/\n[ \t]*\n[ \t]*$/.test(d)&&(a=!0));let y=null,b;this.options.gfm&&(y=/^\[[ xX]\] /.exec(u),y&&(b=y[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:d,task:!!y,checked:b,loose:!1,text:u,tokens:[]}),r.raw+=d}r.items[r.items.length-1].raw=r.items[r.items.length-1].raw.trimEnd(),r.items[r.items.length-1].text=r.items[r.items.length-1].text.trimEnd(),r.raw=r.raw.trimEnd();for(let c=0;c<r.items.length;c++)if(this.lexer.state.top=!1,r.items[c].tokens=this.lexer.blockTokens(r.items[c].text,[]),!r.loose){const d=r.items[c].tokens.filter(_=>_.type==="space"),u=d.length>0&&d.some(_=>/\n.*\n/.test(_.raw));r.loose=u}if(r.loose)for(let c=0;c<r.items.length;c++)r.items[c].loose=!0;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const i=t[1].toLowerCase().replace(/\s+/g," "),s=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const i=eC(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
 `):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(const a of s)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<i.length;a++)o.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:o.align[a]});for(const a of r)o.rows.push(eC(a,o.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:o.align[d]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const i=t[1].charAt(t[1].length-1)===`
-`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ii(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const o=sl(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{const o=$Ze(t[2],"()");if(o>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let s=t[2],r="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);o&&(s=o[1],r=o[3])}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(i)?s=s.slice(1):s=s.slice(1,-1)),tC(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const s=(i[2]||i[1]).replace(/\s+/g," "),r=t[s.toLowerCase()];if(!r){const o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return tC(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const o=[...s[0]].length-1;let a,c,d=o,u=0;const _=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_.lastIndex=0,t=t.slice(-1*e.length+o);(s=_.exec(t))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(c=[...a].length,s[3]||s[4]){d+=c;continue}else if((s[5]||s[6])&&o%3&&!((o+c)%3)){u+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+u);const m=[...s[0]][0].length,h=e.slice(0,o+s.index+m+c);if(Math.min(o,c)%2){const y=h.slice(1,-1);return{type:"em",raw:h,text:y,tokens:this.lexer.inlineTokens(y)}}const f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," ");const s=/[^ ]/.test(i),r=/^ /.test(i)&&/ $/.test(i);return s&&r&&(i=i.substring(1,i.length-1)),i=ii(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=ii(t[1]),s="mailto:"+i):(i=ii(t[1]),s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){var i;let t;if(t=this.rules.inline.url.exec(e)){let s,r;if(t[2]==="@")s=ii(t[0]),r="mailto:"+s;else{let o;do o=t[0],t[0]=((i=this.rules.inline._backpedal.exec(t[0]))==null?void 0:i[0])??"";while(o!==t[0]);s=ii(t[0]),t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let i;return this.lexer.state.inRawBlock?i=t[0]:i=ii(t[0]),{type:"text",raw:t[0],text:i}}}}const KZe=/^(?:[ \t]*(?:\n|$))+/,jZe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,QZe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XZe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tN=/(?:[*+-]|\d{1,9}[.)])/,nN=zt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,tN).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/).getRegex(),V0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ZZe=/^[^\n]+/,z0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,JZe=zt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",z0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eJe=zt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tN).getRegex(),pp="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",H0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tJe=zt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",H0).replace("tag",pp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),iN=zt(V0).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pp).getRegex(),nJe=zt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",iN).getRegex(),q0={blockquote:nJe,code:jZe,def:JZe,fences:QZe,heading:XZe,hr:uc,html:tJe,lheading:nN,list:eJe,newline:KZe,paragraph:iN,table:Al,text:ZZe},nC=zt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pp).getRegex(),iJe={...q0,table:nC,paragraph:zt(V0).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nC).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pp).getRegex()},sJe={...q0,html:zt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",H0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Al,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zt(V0).replace("hr",uc).replace("heading",` *#{1,6} *[^
-]`).replace("lheading",nN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,rJe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rN=/^( {2,}|\\)\n(?!\s*$)/,oJe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pc="\\p{P}\\p{S}",aJe=zt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,pc).getRegex(),lJe=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,cJe=zt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,pc).getRegex(),dJe=zt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,pc).getRegex(),uJe=zt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,pc).getRegex(),pJe=zt(/\\([punct])/,"gu").replace(/punct/g,pc).getRegex(),fJe=zt(/^<(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(),_Je=zt(H0).replace("(?:-->|$)","-->").getRegex(),mJe=zt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_Je).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),iu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,hJe=zt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",iu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),oN=zt(/^!?\[(label)\]\[(ref)\]/).replace("label",iu).replace("ref",z0).getRegex(),aN=zt(/^!?\[(ref)\](?:\[\])?/).replace("ref",z0).getRegex(),gJe=zt("reflink|nolink(?!\\()","g").replace("reflink",oN).replace("nolink",aN).getRegex(),Y0={_backpedal:Al,anyPunctuation:pJe,autolink:fJe,blockSkip:lJe,br:rN,code:rJe,del:Al,emStrongLDelim:cJe,emStrongRDelimAst:dJe,emStrongRDelimUnd:uJe,escape:sN,link:hJe,nolink:aN,punctuation:aJe,reflink:oN,reflinkSearch:gJe,tag:mJe,text:oJe,url:Al},bJe={...Y0,link:zt(/^!?\[(label)\]\((.*?)\)/).replace("label",iu).getRegex(),reflink:zt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",iu).getRegex()},db={...Y0,escape:zt(sN).replace("])","~|])").getRegex(),url:zt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},yJe={...db,br:zt(rN).replace("{2,}","*").getRegex(),text:zt(db.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Fc={normal:q0,gfm:iJe,pedantic:sJe},rl={normal:Y0,gfm:db,breaks:yJe,pedantic:bJe};class Ei{constructor(e){qt(this,"tokens");qt(this,"options");qt(this,"state");qt(this,"tokenizer");qt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Eo,this.options.tokenizer=this.options.tokenizer||new nu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Fc.normal,inline:rl.normal};this.options.pedantic?(t.block=Fc.pedantic,t.inline=rl.pedantic):this.options.gfm&&(t.block=Fc.gfm,this.options.breaks?t.inline=rl.breaks:t.inline=rl.gfm),this.tokenizer.rules=t}static get rules(){return{block:Fc,inline:rl}}static lex(e,t){return new Ei(t).lex(e)}static lexInline(e,t){return new Ei(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
+`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ii(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const o=sl(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{const o=YZe(t[2],"()");if(o>-1){const c=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let s=t[2],r="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);o&&(s=o[1],r=o[3])}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(i)?s=s.slice(1):s=s.slice(1,-1)),tC(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){const s=(i[2]||i[1]).replace(/\s+/g," "),r=t[s.toLowerCase()];if(!r){const o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return tC(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s||s[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const o=[...s[0]].length-1;let a,c,d=o,u=0;const _=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_.lastIndex=0,t=t.slice(-1*e.length+o);(s=_.exec(t))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(c=[...a].length,s[3]||s[4]){d+=c;continue}else if((s[5]||s[6])&&o%3&&!((o+c)%3)){u+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+u);const m=[...s[0]][0].length,h=e.slice(0,o+s.index+m+c);if(Math.min(o,c)%2){const y=h.slice(1,-1);return{type:"em",raw:h,text:y,tokens:this.lexer.inlineTokens(y)}}const f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," ");const s=/[^ ]/.test(i),r=/^ /.test(i)&&/ $/.test(i);return s&&r&&(i=i.substring(1,i.length-1)),i=ii(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=ii(t[1]),s="mailto:"+i):(i=ii(t[1]),s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){var i;let t;if(t=this.rules.inline.url.exec(e)){let s,r;if(t[2]==="@")s=ii(t[0]),r="mailto:"+s;else{let o;do o=t[0],t[0]=((i=this.rules.inline._backpedal.exec(t[0]))==null?void 0:i[0])??"";while(o!==t[0]);s=ii(t[0]),t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let i;return this.lexer.state.inRawBlock?i=t[0]:i=ii(t[0]),{type:"text",raw:t[0],text:i}}}}const WZe=/^(?:[ \t]*(?:\n|$))+/,KZe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jZe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,QZe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tN=/(?:[*+-]|\d{1,9}[.)])/,nN=zt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,tN).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/).getRegex(),V0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,XZe=/^[^\n]+/,z0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ZZe=zt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",z0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),JZe=zt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tN).getRegex(),pp="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",H0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eJe=zt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",H0).replace("tag",pp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),iN=zt(V0).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pp).getRegex(),tJe=zt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",iN).getRegex(),q0={blockquote:tJe,code:KZe,def:ZZe,fences:jZe,heading:QZe,hr:uc,html:eJe,lheading:nN,list:JZe,newline:WZe,paragraph:iN,table:Al,text:XZe},nC=zt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pp).getRegex(),nJe={...q0,table:nC,paragraph:zt(V0).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nC).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",pp).getRegex()},iJe={...q0,html:zt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",H0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Al,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:zt(V0).replace("hr",uc).replace("heading",` *#{1,6} *[^
+]`).replace("lheading",nN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sJe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rN=/^( {2,}|\\)\n(?!\s*$)/,rJe=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pc="\\p{P}\\p{S}",oJe=zt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,pc).getRegex(),aJe=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,lJe=zt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,pc).getRegex(),cJe=zt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,pc).getRegex(),dJe=zt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,pc).getRegex(),uJe=zt(/\\([punct])/,"gu").replace(/punct/g,pc).getRegex(),pJe=zt(/^<(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(),fJe=zt(H0).replace("(?:-->|$)","-->").getRegex(),_Je=zt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",fJe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),iu=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,mJe=zt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",iu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),oN=zt(/^!?\[(label)\]\[(ref)\]/).replace("label",iu).replace("ref",z0).getRegex(),aN=zt(/^!?\[(ref)\](?:\[\])?/).replace("ref",z0).getRegex(),hJe=zt("reflink|nolink(?!\\()","g").replace("reflink",oN).replace("nolink",aN).getRegex(),Y0={_backpedal:Al,anyPunctuation:uJe,autolink:pJe,blockSkip:aJe,br:rN,code:sJe,del:Al,emStrongLDelim:lJe,emStrongRDelimAst:cJe,emStrongRDelimUnd:dJe,escape:sN,link:mJe,nolink:aN,punctuation:oJe,reflink:oN,reflinkSearch:hJe,tag:_Je,text:rJe,url:Al},gJe={...Y0,link:zt(/^!?\[(label)\]\((.*?)\)/).replace("label",iu).getRegex(),reflink:zt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",iu).getRegex()},db={...Y0,escape:zt(sN).replace("])","~|])").getRegex(),url:zt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bJe={...db,br:zt(rN).replace("{2,}","*").getRegex(),text:zt(db.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Fc={normal:q0,gfm:nJe,pedantic:iJe},rl={normal:Y0,gfm:db,breaks:bJe,pedantic:gJe};class Ei{constructor(e){qt(this,"tokens");qt(this,"options");qt(this,"state");qt(this,"tokenizer");qt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Eo,this.options.tokenizer=this.options.tokenizer||new nu,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Fc.normal,inline:rl.normal};this.options.pedantic?(t.block=Fc.pedantic,t.inline=rl.pedantic):this.options.gfm&&(t.block=Fc.gfm,this.options.breaks?t.inline=rl.breaks:t.inline=rl.gfm),this.tokenizer.rules=t}static get rules(){return{block:Fc,inline:rl}}static lex(e,t){return new Ei(t).lex(e)}static lexInline(e,t){return new Ei(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
 `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const i=this.inlineQueue[t];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){this.options.pedantic&&(e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""));let s,r,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(s=a.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))){if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length),s.raw.length===1&&t.length>0?t[t.length-1].raw+=`
 `:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
 `+s.raw,r.text+=`
@@ -154,8 +154,8 @@ ${this.parser.parse(e)}</blockquote>
 ${e}</tr>
 `}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
 `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const s=this.parser.parseInline(i),r=Jx(e);if(r===null)return s;e=r;let o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+s+"</a>",o}image({href:e,title:t,text:i}){const s=Jx(e);if(s===null)return i;e=s;let r=`<img src="${e}" alt="${i}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class $0{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""}}class vi{constructor(e){qt(this,"options");qt(this,"renderer");qt(this,"textRenderer");this.options=e||Eo,this.options.renderer=this.options.renderer||new su,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $0}static parse(e,t){return new vi(t).parse(e)}static parseInline(e,t){return new vi(t).parseInline(e)}parse(e,t=!0){let i="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=r,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){i+=c||"";continue}}const o=r;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let a=o,c=this.renderer.text(a);for(;s+1<e.length&&e[s+1].type==="text";)a=e[++s],c+=`
-`+this.renderer.text(a);t?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):i+=c;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=this.options.extensions.renderers[r.type].call({parser:this},r);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=a||"";continue}}const o=r;switch(o.type){case"escape":{i+=t.text(o);break}case"html":{i+=t.html(o);break}case"link":{i+=t.link(o);break}case"image":{i+=t.image(o);break}case"strong":{i+=t.strong(o);break}case"em":{i+=t.em(o);break}case"codespan":{i+=t.codespan(o);break}case"br":{i+=t.br(o);break}case"del":{i+=t.del(o);break}case"text":{i+=t.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}}class Ml{constructor(e){qt(this,"options");qt(this,"block");this.options=e||Eo}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ei.lex:Ei.lexInline}provideParser(){return this.block?vi.parse:vi.parseInline}}qt(Ml,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class EJe{constructor(...e){qt(this,"defaults",G0());qt(this,"options",this.setOptions);qt(this,"parse",this.parseMarkdown(!0));qt(this,"parseInline",this.parseMarkdown(!1));qt(this,"Parser",vi);qt(this,"Renderer",su);qt(this,"TextRenderer",$0);qt(this,"Lexer",Ei);qt(this,"Tokenizer",nu);qt(this,"Hooks",Ml);this.use(...e)}walkTokens(e,t){var s,r;let i=[];for(const o of e)switch(i=i.concat(t.call(this,o)),o.type){case"table":{const a=o;for(const c of a.header)i=i.concat(this.walkTokens(c.tokens,t));for(const c of a.rows)for(const d of c)i=i.concat(this.walkTokens(d.tokens,t));break}case"list":{const a=o;i=i.concat(this.walkTokens(a.items,t));break}default:{const a=o;(r=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&r[a.type]?this.defaults.extensions.childTokens[a.type].forEach(c=>{const d=a[c].flat(1/0);i=i.concat(this.walkTokens(d,t))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{const s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const o=t.renderers[r.name];o?t.renderers[r.name]=function(...a){let c=r.renderer.apply(this,a);return c===!1&&(c=o.apply(this,a)),c}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[r.level];o?o.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),s.extensions=t),i.renderer){const r=this.defaults.renderer||new su(this.defaults);for(const o in i.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,c=i.renderer[a],d=r[a];r[a]=(...u)=>{let _=c.apply(r,u);return _===!1&&(_=d.apply(r,u)),_||""}}s.renderer=r}if(i.tokenizer){const r=this.defaults.tokenizer||new nu(this.defaults);for(const o in i.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,c=i.tokenizer[a],d=r[a];r[a]=(...u)=>{let _=c.apply(r,u);return _===!1&&(_=d.apply(r,u)),_}}s.tokenizer=r}if(i.hooks){const r=this.defaults.hooks||new Ml;for(const o in i.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,c=i.hooks[a],d=r[a];Ml.passThroughHooks.has(o)?r[a]=u=>{if(this.defaults.async)return Promise.resolve(c.call(r,u)).then(m=>d.call(r,m));const _=c.call(r,u);return d.call(r,_)}:r[a]=(...u)=>{let _=c.apply(r,u);return _===!1&&(_=d.apply(r,u)),_}}s.hooks=r}if(i.walkTokens){const r=this.defaults.walkTokens,o=i.walkTokens;s.walkTokens=function(a){let c=[];return c.push(o.call(this,a)),r&&(c=c.concat(r.call(this,a))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ei.lex(e,t??this.defaults)}parser(e,t){return vi.parse(e,t??this.defaults)}parseMarkdown(e){return(i,s)=>{const r={...s},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const c=o.hooks?o.hooks.provideLexer():e?Ei.lex:Ei.lexInline,d=o.hooks?o.hooks.provideParser():e?vi.parse:vi.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(u=>c(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>d(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(i=o.hooks.preprocess(i));let u=c(i,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let _=d(u,o);return o.hooks&&(_=o.hooks.postprocess(_)),_}catch(u){return a(u)}}}onError(e,t){return i=>{if(i.message+=`
-Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+ii(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}}const fo=new EJe;function Pt(n,e){return fo.parse(n,e)}Pt.options=Pt.setOptions=function(n){return fo.setOptions(n),Pt.defaults=fo.defaults,ZM(Pt.defaults),Pt};Pt.getDefaults=G0;Pt.defaults=Eo;Pt.use=function(...n){return fo.use(...n),Pt.defaults=fo.defaults,ZM(Pt.defaults),Pt};Pt.walkTokens=function(n,e){return fo.walkTokens(n,e)};Pt.parseInline=fo.parseInline;Pt.Parser=vi;Pt.parser=vi.parse;Pt.Renderer=su;Pt.TextRenderer=$0;Pt.Lexer=Ei;Pt.lexer=Ei.lex;Pt.Tokenizer=nu;Pt.Hooks=Ml;Pt.parse=Pt;Pt.options;Pt.setOptions;Pt.use;Pt.walkTokens;Pt.parseInline;vi.parse;Ei.lex;const vJe={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return Pt(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},SJe={class:"help-view background-color p-6 w-full"},TJe={class:"big-card w-full"},xJe={class:"help-sections-container"},CJe={class:"help-sections space-y-4"},wJe=["onClick"],RJe={class:"toggle-icon"},AJe={key:0,class:"help-content mt-4"},MJe=["innerHTML"];function NJe(n,e,t,i,s,r){return T(),w("div",SJe,[l("div",TJe,[e[0]||(e[0]=l("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),l("div",xJe,[l("div",CJe,[(T(!0),w(Be,null,Xe(s.helpSections,(o,a)=>(T(),w("div",{key:a,class:"help-section message"},[l("h2",{onClick:c=>r.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[Ze($(o.title)+" ",1),l("span",RJe,$(o.isOpen?"▼":"▶"),1)],8,wJe),o.isOpen?(T(),w("div",AJe,[l("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,MJe)])):B("",!0)]))),128))])])])])}const OJe=st(vJe,[["render",NJe],["__scopeId","data-v-8c1798f3"]]);function is(n,e=!0,t=1){const i=e?1e3:1024;if(Math.abs(n)<i)return n+" B";const s=e?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let r=-1;const o=10**t;do n/=i,++r;while(Math.round(Math.abs(n)*o)/o>=i&&r<s.length-1);return n.toFixed(t)+" "+s[r]}const $n="/assets/logo-CA_sh1Fo.png",IJe={props:{title:{type:String,required:!1,value:"menu"},icon:{type:String,required:!1,value:"feather:menu"},commands:{type:Array,required:!0},force_position:{required:!1,value:0},execute_cmd:{type:Function,required:!1},menuIconClass:{type:String,required:!1,default:""},selected_entry:{type:String,required:!1}},data(){return{isMenuOpen:!1,menuPosition:{bottom:"auto",top:"calc(100% + 10px)"}}},methods:{handleClickOutside(n){const e=this.$refs.menu,t=this.$refs.menuButton;e&&!e.contains(n.target)&&!t.contains(n.target)&&(this.isMenuOpen=!1,window.removeEventListener("click",this.handleClickOutside))},toggleMenu(){this.positionMenu(),this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?window.addEventListener("click",this.handleClickOutside):window.removeEventListener("click",this.handleClickOutside),Le(()=>{Ve.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Le(()=>{Ve.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},kJe={class:"menu-container"},DJe=["title"],LJe=["src"],PJe=["data-feather"],FJe={key:2,class:"w-5 h-5"},UJe={key:3,"data-feather":"menu"},BJe={class:"flex-grow menu-ul"},GJe=["onClick"],VJe={key:0,"data-feather":"check"},zJe=["src","alt"],HJe=["data-feather"],qJe={key:3,class:"menu-icon"};function YJe(n,e,t,i,s,r){return T(),w("div",kJe,[l("button",{onClick:e[0]||(e[0]=W((...o)=>r.toggleMenu&&r.toggleMenu(...o),["prevent"])),title:t.title,class:Ue([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),w("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,LJe)):t.icon&&t.icon.includes("feather")?(T(),w("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,PJe)):t.icon&&t.icon.includes("#")?(T(),w("p",FJe,$(t.icon.split("#")[1]),1)):(T(),w("i",UJe))],10,DJe),z(Os,{name:"slide"},{default:Ie(()=>[s.isMenuOpen?(T(),w("div",{key:0,class:"menu-list flex-grow",style:Wt(s.menuPosition),ref:"menu"},[l("ul",BJe,[(T(!0),w(Be,null,Xe(t.commands,(o,a)=>(T(),w("li",{key:a,onClick:W(c=>r.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),w("i",VJe)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),w("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,zJe)):B("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),w("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,HJe)):(T(),w("span",qJe)),l("span",null,$(o.name),1)],8,GJe))),128))])],4)):B("",!0)]),_:1})])}const W0=st(IJe,[["render",YJe]]),$Je={components:{InteractiveMenu:W0},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){Le(()=>{Ve.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return is(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?$n:this.model.icon},defaultImg(n){n.target.src=$n},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Le(()=>{Ve.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return is(this.speed)},total_size_computed(){return is(this.total_size)},downloaded_size_computed(){return is(this.downloaded_size)}},watch:{linkNotValid(){Le(()=>{Ve.replace()})}}},WJe=["title"],KJe={key:0,class:"flex flex-row"},jJe={class:"max-w-[300px] overflow-x-auto"},QJe={class:"flex gap-3 items-center grow"},XJe=["href"],ZJe=["src"],JJe={class:"flex-1 overflow-hidden"},eet={class:"font-bold font-large text-lg truncate"},tet={key:1,class:"flex items-center flex-row gap-2 my-1"},net={class:"flex grow items-center"},iet={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},set={class:"relative flex flex-col items-center justify-center flex-grow h-full"},ret={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},oet={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},aet={class:"flex justify-between mb-1"},cet={class:"text-sm font-medium text-blue-700 dark:text-white"},det={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},uet={class:"flex justify-between mb-1"},pet={class:"text-base font-medium text-blue-700 dark:text-white"},fet={class:"text-sm font-medium text-blue-700 dark:text-white"},_et={class:"flex flex-grow"},met={class:"flex flex-row flex-grow gap-3"},het={class:"p-2 text-center grow"},get={key:3},bet={class:"flex flex-row items-center gap-3"},yet=["src"],Eet={class:"font-bold font-large text-lg truncate"},vet={class:"flex items-center flex-row-reverse gap-2 my-1"},Tet={class:"flex flex-row items-center"},xet={key:0,class:"text-base text-red-600 flex items-center mt-1"},Cet=["title"],wet={class:""},Ret={class:"flex flex-row items-center"},Aet=["href","title"],Met={class:"flex items-center"},Net={class:"flex items-center"},Oet={key:0,class:"flex items-center"},Iet=["href"],ket={class:"flex items-center"},Det=["href"],Let={class:"flex items-center"},Pet={class:"flex items-center"},Fet=["href"];function Uet(n,e,t,i,s,r){const o=nt("InteractiveMenu");return T(),w("div",{class:Ue(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",r.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=W(a=>r.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),w("div",KJe,[l("div",jJe,[l("div",QJe,[l("a",{href:t.model.model_creator_link,target:"_blank"},[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,ZJe)],8,XJe),l("div",JJe,[l("h3",eet,$(t.model.name),1)])])])])):B("",!0),t.model.isCustomModel?(T(),w("div",tet,[l("div",net,[l("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=W(()=>{},["stop"]))},e[11]||(e[11]=[l("i",{"data-feather":"box",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=Ze(" Custom model "))]),l("div",null,[t.model.isInstalled?(T(),w("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=W((...a)=>r.uninstall&&r.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"Remove",-1)]))):B("",!0)])])):B("",!0),s.installing?(T(),w("div",iet,[l("div",set,[e[15]||(e[15]=l("div",{role:"status",class:"justify-center"},[l("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)),l("div",ret,[l("div",oet,[l("div",aet,[e[14]||(e[14]=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),l("span",cet,$(Math.floor(s.progress))+"%",1)]),l("div",det,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt({width:s.progress+"%"})},null,4)]),l("div",uet,[l("span",pet,"Download speed: "+$(r.speed_computed)+"/s",1),l("span",fet,$(r.downloaded_size_computed)+"/"+$(r.total_size_computed),1)])])]),l("div",_et,[l("div",met,[l("div",het,[l("button",{onClick:e[3]||(e[3]=W((...a)=>r.toggleCancelInstall&&r.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):B("",!0),t.model.isCustomModel?B("",!0):(T(),w("div",get,[l("div",bet,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=a=>r.defaultImg(a)),class:Ue(["w-10 h-10 rounded-lg object-fill",s.linkNotValid?"grayscale":""])},null,42,yet),l("h3",Eet,$(t.model.name),1),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),z(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",vet,[l("div",Tet,[s.linkNotValid?(T(),w("div",xet,e[17]||(e[17]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Ze(" Link is not valid ")]))):B("",!0)])]),l("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[l("div",wet,[l("div",Ret,[e[19]||(e[19]=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=l("b",null,"Card: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=W(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:s.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/<current binding> folder then refresh"}," View full model card ",8,Aet),e[21]||(e[21]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=W(a=>r.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",Met,[l("div",{class:Ue(["flex flex-shrink-0 items-center",s.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=l("b",null,"File size: ",-1)),Ze(" "+$(r.fileSize),1)],2)]),l("div",Net,[e[24]||(e[24]=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=l("b",null,"License: ",-1)),Ze(" "+$(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),w("div",Oet,[e[26]||(e[26]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=l("b",null,"quantizer: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=W(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},$(t.model.quantizer),9,Iet)])):B("",!0),l("div",ket,[e[28]||(e[28]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=l("b",null,"Model creator: ",-1)),l("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=W(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},$(t.model.model_creator),9,Det)]),l("div",Let,[e[30]||(e[30]=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=l("b",null,"Release date: ",-1)),Ze(" "+$(t.model.last_commit_time),1)]),l("div",Pet,[e[32]||(e[32]=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=l("b",null,"Category: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=W(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},$(t.model.category),9,Fet)])])],8,Cet)]))],10,WJe)}const Bet=st($Je,[["render",Uet]]),Get={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},Vet={class:"p-4"},zet={class:"flex items-center mb-4"},Het=["src"],qet={class:"text-lg font-semibold"},Yet={key:0};function $et(n,e,t,i,s,r){return T(),w("div",Vet,[l("div",zet,[l("img",{src:s.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,Het),l("h2",qet,$(s.personalityName),1)]),l("p",null,[e[2]||(e[2]=l("strong",null,"Author:",-1)),Ze(" "+$(s.personalityAuthor),1)]),l("p",null,[e[3]||(e[3]=l("strong",null,"Description:",-1)),Ze(" "+$(s.personalityDescription),1)]),l("p",null,[e[4]||(e[4]=l("strong",null,"Category:",-1)),Ze(" "+$(s.personalityCategory),1)]),s.disclaimer?(T(),w("p",Yet,[e[5]||(e[5]=l("strong",null,"Disclaimer:",-1)),Ze(" "+$(s.disclaimer),1)])):B("",!0),l("p",null,[e[6]||(e[6]=l("strong",null,"Conditioning Text:",-1)),Ze(" "+$(s.conditioningText),1)]),l("p",null,[e[7]||(e[7]=l("strong",null,"AI Prefix:",-1)),Ze(" "+$(s.aiPrefix),1)]),l("p",null,[e[8]||(e[8]=l("strong",null,"User Prefix:",-1)),Ze(" "+$(s.userPrefix),1)]),l("div",null,[e[9]||(e[9]=l("strong",null,"Antiprompts:",-1)),l("ul",null,[(T(!0),w(Be,null,Xe(s.antipromptsList,o=>(T(),w("li",{key:o.id},$(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>s.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),s.editMode?(T(),w("button",{key:1,onClick:e[1]||(e[1]=(...o)=>r.commitChanges&&r.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):B("",!0)])}const Wet=st(Get,[["render",$et]]),K0="/assets/logo-CQZwS0X1.svg",Ket="/",jet={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:W0},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Le(()=>{Ve.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return Ket+this.personality.avatar},defaultImg(n){n.target.src=K0},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Le(()=>{Ve.replace()})}}},Qet=["title"],Xet={class:"flex-grow"},Zet={class:"flex items-center mb-4"},Jet=["src"],ett={class:"text-sm text-gray-600"},ttt={class:"text-sm text-gray-600"},ntt={class:"text-sm text-gray-600"},itt={key:0,class:"text-sm text-gray-600"},stt={key:1,class:"text-sm text-gray-600"},rtt={class:"mb-4"},ott=["innerHTML"],att={class:"mt-auto pt-4 border-t"},ltt={class:"flex justify-between items-center flex-wrap"},ctt=["title"],dtt=["fill"],utt=["src"];function ptt(n,e,t,i,s,r){const o=nt("InteractiveMenu");return T(),w("div",{class:Ue(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",r.selected_computed?"border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[l("div",Xet,[l("div",Zet,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},null,40,Jet),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>r.toggleSelected&&r.toggleSelected(...a))},$(t.personality.name),1),l("p",ett,"Author: "+$(t.personality.author),1),l("p",ttt,"Version: "+$(t.personality.version),1),l("p",ntt,"Category: "+$(t.personality.category),1),t.personality.creation_date?(T(),w("p",itt,"Creation Date: "+$(r.formatDate(t.personality.creation_date)),1)):B("",!0),t.personality.last_update_date?(T(),w("p",stt,"Last update Date: "+$(r.formatDate(t.personality.last_update_date)),1)):B("",!0)])]),l("div",rtt,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,ott)])]),l("div",att,[l("div",ltt,[l("button",{onClick:e[6]||(e[6]=(...a)=>r.toggleFavorite&&r.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,dtt))],8,ctt),s.isMounted?(T(),w("button",{key:0,onClick:e[7]||(e[7]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[12]||(e[12]=[l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):B("",!0),s.isMounted?(T(),w("button",{key:1,onClick:e[8]||(e[8]=(...a)=>r.toggleTalk&&r.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[13]||(e[13]=[l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):B("",!0),l("button",{onClick:e[9]||(e[9]=(...a)=>r.showFolder&&r.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[14]||(e[14]=[l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),z(o,{commands:r.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),s.thumbnailVisible?(T(),w("div",{key:0,style:Wt({top:s.thumbnailPosition.y+"px",left:s.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:r.getImgUrl(),class:"w-full h-full object-fill"},null,8,utt)],4)):B("",!0)],10,Qet)}const lN=st(jet,[["render",ptt]]),ftt={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),i=t.getElementsByTagName("style");Array.from(i).forEach(r=>{const o=document.createElement("style");o.textContent=this.scopeCSS(r.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const s=t.getElementsByTagName("script");Array.from(s).forEach(r=>{const o=document.createElement("script");o.textContent=r.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},_tt=["id"];function mtt(n,e,t,i,s,r){return T(),w("div",{id:s.containerId,ref:"container"},null,8,_tt)}const cN=st(ftt,[["render",mtt]]),htt="/",gtt={components:{DynamicUIRenderer:cN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Le(()=>{Ve.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return htt+this.binding.icon},defaultImg(n){n.target.src=K0},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){Le(()=>{Ve.replace()})}}},btt=["title"],ytt={class:"flex flex-row items-center gap-3"},Ett=["src"],vtt={class:"font-bold font-large text-lg truncate"},Stt={class:"flex-none gap-1"},Ttt={class:"flex items-center flex-row-reverse gap-2 my-1"},xtt={class:""},Ctt={class:""},wtt={class:"flex items-center"},Rtt={class:"flex items-center"},Att={class:"flex items-center"},Mtt={class:"flex items-center"},Ntt=["href"],Ott=["title","innerHTML"];function Itt(n,e,t,i,s,r){const o=nt("DynamicUIRenderer");return T(),w("div",{class:Ue(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=W((...a)=>r.toggleSelected&&r.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[l("div",null,[l("div",ytt,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,Ett),l("h3",vtt,$(t.binding.name),1),e[10]||(e[10]=l("div",{class:"grow"},null,-1)),l("div",Stt,[t.selected?(T(),w("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>r.toggleReloadBinding&&r.toggleReloadBinding(...a)),e[2]||(e[2]=W(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Help",-1)]))):B("",!0)])]),l("div",Ttt,[t.binding.installed?B("",!0):(T(),w("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=W((...a)=>r.toggleInstall&&r.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[Ze(" Install "),l("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),w("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=W((...a)=>r.toggleReinstall&&r.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[Ze(" Reinstall "),l("span",{class:"sr-only"},"Reinstall",-1)]))):B("",!0),t.binding.installed?(T(),w("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=W((...a)=>r.toggleUnInstall&&r.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"UnInstall",-1)]))):B("",!0),t.selected?(T(),w("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=W((...a)=>r.toggleSettings&&r.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[Ze(" Settings "),l("span",{class:"sr-only"},"Settings",-1)]))):B("",!0)]),t.binding.ui?(T(),at(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):B("",!0),l("div",xtt,[l("div",Ctt,[l("div",wtt,[e[15]||(e[15]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=l("b",null,"Author: ",-1)),Ze(" "+$(t.binding.author),1)]),l("div",Rtt,[e[18]||(e[18]=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=l("b",null,"Folder: ",-1)),Ze(" "+$(t.binding.folder)+" ",1),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=W(a=>r.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",Att,[e[21]||(e[21]=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=l("b",null,"Version: ",-1)),Ze(" "+$(t.binding.version),1)]),l("div",Mtt,[e[23]||(e[23]=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=l("b",null,"Link: ",-1)),l("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},$(t.binding.link),9,Ntt)])]),e[25]||(e[25]=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1)),l("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Ott)])])],10,btt)}const ktt=st(gtt,[["render",Itt]]),Bi="/assets/logo-CA_sh1Fo.png",Dtt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},Ltt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Ptt={class:"relative w-full max-w-md max-h-full"},Ftt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Utt={class:"p-4 text-center"},Btt={class:"p-4 text-center mx-auto mb-4"};function Gtt(n,e,t,i,s,r){return s.show?(T(),w("div",Ltt,[l("div",Ptt,[l("div",Ftt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",Utt,[e[6]||(e[6]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("div",Btt,[e[5]||(e[5]=l("label",{class:"mr-2"},"Model path",-1)),k(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>s.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[ue,s.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>r.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),l("button",{onClick:e[3]||(e[3]=o=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):B("",!0)}const Vtt=st(Dtt,[["render",Gtt]]),ztt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t<e.length-1;)n/=1024,t++;return`${n.toFixed(2)} ${e[t]}`},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const n=this.newFilename.trim();n!==""&&(this.choices.push({name:n,isEditing:!1}),this.newFilename="",this.selectChoice(this.choices[this.choices.length-1])),this.showInput=!1},removeChoice(n,e){this.choices.splice(e,1),n===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",n)},editChoice(n){n.isEditing=!0,n.editName=this.displayName(n)},finishEditing(n){if(typeof n=="string"){const e=this.choices.indexOf(n);e!==-1&&(this.choices[e]=n.editName)}else n.name=n.editName;n.isEditing=!1,delete n.editName}}},Htt={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},qtt={class:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6 w-96 max-w-md"},Ytt={class:"text-2xl font-bold mb-4 text-gray-800 dark:text-white flex items-center"},$tt={class:"h-48 bg-gray-100 dark:bg-gray-700 rounded-lg mb-4 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200 dark:scrollbar-thumb-gray-600 dark:scrollbar-track-gray-800"},Wtt={class:"flex items-center justify-between"},Ktt={class:"flex-grow"},jtt=["onClick"],Qtt=["onUpdate:modelValue","onBlur","onKeyup"],Xtt={key:2,class:"text-xs text-gray-500 dark:text-gray-400 ml-2"},Ztt={class:"flex items-center"},Jtt=["onClick"],ent=["onClick"],tnt={key:0,class:"flex flex-col mb-4"},nnt={class:"flex justify-between"},int=["disabled"];function snt(n,e,t,i,s,r){return T(),at(Os,{name:"fade"},{default:Ie(()=>[t.show?(T(),w("div",Htt,[l("div",qtt,[l("h2",Ytt,[e[5]||(e[5]=l("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),Ze(" "+$(t.title),1)]),l("div",$tt,[l("ul",null,[(T(!0),w(Be,null,Xe(t.choices,(o,a)=>(T(),w("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[l("div",Wtt,[l("div",Ktt,[o.isEditing?k((T(),w("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>r.finishEditing(o),onKeyup:wi(c=>r.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,Qtt)),[[ue,o.editName]]):(T(),w("span",{key:0,onClick:c=>r.selectChoice(o),class:Ue([{"font-semibold":o===s.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},$(r.displayName(o)),11,jtt)),o.size?(T(),w("span",Xtt,$(r.formatSize(o.size)),1)):B("",!0)]),l("div",Ztt,[l("button",{onClick:c=>r.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,Jtt),t.can_remove?(T(),w("button",{key:0,onClick:c=>r.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,ent)):B("",!0)])])]))),128))])]),s.showInput?(T(),w("div",tnt,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[ue,s.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.addNewFilename&&r.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):B("",!0),l("div",nnt,[l("button",{onClick:e[2]||(e[2]=(...o)=>r.closeDialog&&r.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),l("button",{onClick:e[3]||(e[3]=(...o)=>r.validateChoice&&r.validateChoice(...o)),disabled:!s.selectedChoice,class:Ue([{"bg-blue-500 hover:bg-blue-600":s.selectedChoice,"bg-gray-400 cursor-not-allowed":!s.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,int),l("button",{onClick:e[4]||(e[4]=(...o)=>r.toggleInput&&r.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):B("",!0)]),_:1})}const j0=st(ztt,[["render",snt],["__scopeId","data-v-f43216be"]]),rnt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},ont={class:"flex space-x-4"},ant=["value","aria-checked"],lnt={class:"text-gray-700"};function cnt(n,e,t,i,s,r){return T(),w("div",ont,[(T(!0),w(Be,null,Xe(t.radioOptions,(o,a)=>(T(),w("label",{key:o.value,class:"flex items-center space-x-2"},[k(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>r.handleRadioChange&&r.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":s.selectedValue===o.value.toString(),role:"radio"},null,40,ant),[[ID,s.selectedValue]]),l("span",lnt,$(o.label),1)]))),128))])}const dnt=st(rnt,[["render",cnt]]),unt="/assets/gpu-BWVOYg-D.svg",pnt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,i)=>i!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(n<this.modelValue.length-1){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n+1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}}}},fnt={class:"flex mb-4"},_nt=["placeholder"],mnt={key:0,class:"list-none"},hnt={class:"flex-grow text-xl"},gnt={class:"flex items-center"},bnt=["onClick"],ynt=["onClick"],Ent=["onClick"],vnt=["onMousedown","onMousemove"],Snt={key:1,class:"mt-4"};function Tnt(n,e,t,i,s,r){return T(),w("div",null,[l("div",fnt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=wi((...o)=>r.addItem&&r.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,_nt),[[ue,s.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>r.addItem&&r.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),w("ul",mnt,[(T(!0),w(Be,null,Xe(t.modelValue,(o,a)=>(T(),w("li",{key:a,class:Ue(["flex items-center mb-2 relative",{"bg-gray-200":s.draggingIndex===a}])},[l("span",hnt,$(o),1),l("div",gnt,[l("button",{onClick:c=>r.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,bnt),a>0?(T(),w("button",{key:0,onClick:c=>r.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,ynt)):B("",!0),a<t.modelValue.length-1?(T(),w("button",{key:1,onClick:c=>r.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,Ent)):B("",!0)]),s.draggingIndex===a?(T(),w("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>r.startDragging(a),onMousemove:c=>r.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>r.stopDragging&&r.stopDragging(...c))},null,40,vnt)):B("",!0)],2))),128))])):B("",!0),t.modelValue.length>0?(T(),w("div",Snt,[l("button",{onClick:e[4]||(e[4]=(...o)=>r.removeAll&&r.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):B("",!0)])}const xnt=st(pnt,[["render",Tnt]]),Cnt="/";ie.defaults.baseURL="/";const wnt={components:{AddModelDialog:Vtt,ModelEntry:Bet,PersonalityViewer:Wet,PersonalityEntry:lN,BindingEntry:ktt,ChoiceDialog:j0,Card:cp,StringListManager:xnt,RadioOptions:dnt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:$n,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Bi,binding_changed:!1,SVGGPU:unt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:Cnt,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}Ye.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await ie.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{Ye.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ie.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
+`+this.renderer.text(a);t?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):i+=c;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let s=0;s<e.length;s++){const r=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=this.options.extensions.renderers[r.type].call({parser:this},r);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=a||"";continue}}const o=r;switch(o.type){case"escape":{i+=t.text(o);break}case"html":{i+=t.html(o);break}case"link":{i+=t.link(o);break}case"image":{i+=t.image(o);break}case"strong":{i+=t.strong(o);break}case"em":{i+=t.em(o);break}case"codespan":{i+=t.codespan(o);break}case"br":{i+=t.br(o);break}case"del":{i+=t.del(o);break}case"text":{i+=t.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}}class Ml{constructor(e){qt(this,"options");qt(this,"block");this.options=e||Eo}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Ei.lex:Ei.lexInline}provideParser(){return this.block?vi.parse:vi.parseInline}}qt(Ml,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class yJe{constructor(...e){qt(this,"defaults",G0());qt(this,"options",this.setOptions);qt(this,"parse",this.parseMarkdown(!0));qt(this,"parseInline",this.parseMarkdown(!1));qt(this,"Parser",vi);qt(this,"Renderer",su);qt(this,"TextRenderer",$0);qt(this,"Lexer",Ei);qt(this,"Tokenizer",nu);qt(this,"Hooks",Ml);this.use(...e)}walkTokens(e,t){var s,r;let i=[];for(const o of e)switch(i=i.concat(t.call(this,o)),o.type){case"table":{const a=o;for(const c of a.header)i=i.concat(this.walkTokens(c.tokens,t));for(const c of a.rows)for(const d of c)i=i.concat(this.walkTokens(d.tokens,t));break}case"list":{const a=o;i=i.concat(this.walkTokens(a.items,t));break}default:{const a=o;(r=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&r[a.type]?this.defaults.extensions.childTokens[a.type].forEach(c=>{const d=a[c].flat(1/0);i=i.concat(this.walkTokens(d,t))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{const s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const o=t.renderers[r.name];o?t.renderers[r.name]=function(...a){let c=r.renderer.apply(this,a);return c===!1&&(c=o.apply(this,a)),c}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[r.level];o?o.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),s.extensions=t),i.renderer){const r=this.defaults.renderer||new su(this.defaults);for(const o in i.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,c=i.renderer[a],d=r[a];r[a]=(...u)=>{let _=c.apply(r,u);return _===!1&&(_=d.apply(r,u)),_||""}}s.renderer=r}if(i.tokenizer){const r=this.defaults.tokenizer||new nu(this.defaults);for(const o in i.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,c=i.tokenizer[a],d=r[a];r[a]=(...u)=>{let _=c.apply(r,u);return _===!1&&(_=d.apply(r,u)),_}}s.tokenizer=r}if(i.hooks){const r=this.defaults.hooks||new Ml;for(const o in i.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,c=i.hooks[a],d=r[a];Ml.passThroughHooks.has(o)?r[a]=u=>{if(this.defaults.async)return Promise.resolve(c.call(r,u)).then(m=>d.call(r,m));const _=c.call(r,u);return d.call(r,_)}:r[a]=(...u)=>{let _=c.apply(r,u);return _===!1&&(_=d.apply(r,u)),_}}s.hooks=r}if(i.walkTokens){const r=this.defaults.walkTokens,o=i.walkTokens;s.walkTokens=function(a){let c=[];return c.push(o.call(this,a)),r&&(c=c.concat(r.call(this,a))),c}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ei.lex(e,t??this.defaults)}parser(e,t){return vi.parse(e,t??this.defaults)}parseMarkdown(e){return(i,s)=>{const r={...s},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const c=o.hooks?o.hooks.provideLexer():e?Ei.lex:Ei.lexInline,d=o.hooks?o.hooks.provideParser():e?vi.parse:vi.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(u=>c(u,o)).then(u=>o.hooks?o.hooks.processAllTokens(u):u).then(u=>o.walkTokens?Promise.all(this.walkTokens(u,o.walkTokens)).then(()=>u):u).then(u=>d(u,o)).then(u=>o.hooks?o.hooks.postprocess(u):u).catch(a);try{o.hooks&&(i=o.hooks.preprocess(i));let u=c(i,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let _=d(u,o);return o.hooks&&(_=o.hooks.postprocess(_)),_}catch(u){return a(u)}}}onError(e,t){return i=>{if(i.message+=`
+Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+ii(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}}const fo=new yJe;function Pt(n,e){return fo.parse(n,e)}Pt.options=Pt.setOptions=function(n){return fo.setOptions(n),Pt.defaults=fo.defaults,ZM(Pt.defaults),Pt};Pt.getDefaults=G0;Pt.defaults=Eo;Pt.use=function(...n){return fo.use(...n),Pt.defaults=fo.defaults,ZM(Pt.defaults),Pt};Pt.walkTokens=function(n,e){return fo.walkTokens(n,e)};Pt.parseInline=fo.parseInline;Pt.Parser=vi;Pt.parser=vi.parse;Pt.Renderer=su;Pt.TextRenderer=$0;Pt.Lexer=Ei;Pt.lexer=Ei.lex;Pt.Tokenizer=nu;Pt.Hooks=Ml;Pt.parse=Pt;Pt.options;Pt.setOptions;Pt.use;Pt.walkTokens;Pt.parseInline;vi.parse;Ei.lex;const EJe={name:"HelpView",data(){return{helpSections:[]}},methods:{toggleSection(n){this.helpSections[n].isOpen=!this.helpSections[n].isOpen},async loadMarkdownFile(n){try{const t=await(await fetch(`/help/${n}`)).text();return Pt(t)}catch(e){return console.error("Error loading markdown file:",e),"Error loading help content."}},async loadHelpSections(){const n=[{title:"About LoLLMs",file:"lollms-context.md"},{title:"Getting Started",file:"getting-started.md"},{title:"Uploading Files",file:"uploading-files.md"},{title:"Sending Images",file:"sending-images.md"},{title:"Using Code Interpreter",file:"code-interpreter.md"},{title:"Internet Search",file:"internet-search.md"}];for(const e of n){const t=await this.loadMarkdownFile(e.file);this.helpSections.push({title:e.title,content:t,isOpen:!1})}}},mounted(){this.loadHelpSections()}},vJe={class:"help-view background-color p-6 w-full"},SJe={class:"big-card w-full"},TJe={class:"help-sections-container"},xJe={class:"help-sections space-y-4"},CJe=["onClick"],wJe={class:"toggle-icon"},RJe={key:0,class:"help-content mt-4"},AJe=["innerHTML"];function MJe(n,e,t,i,s,r){return T(),w("div",vJe,[l("div",SJe,[e[0]||(e[0]=l("h1",{class:"text-4xl md:text-5xl font-bold text-gray-800 dark:text-gray-100 mb-6"},"LoLLMs Help",-1)),l("div",TJe,[l("div",xJe,[(T(!0),w(Be,null,Xe(s.helpSections,(o,a)=>(T(),w("div",{key:a,class:"help-section message"},[l("h2",{onClick:c=>r.toggleSection(a),class:"menu-item cursor-pointer flex justify-between items-center"},[Ze($(o.title)+" ",1),l("span",wJe,$(o.isOpen?"▼":"▶"),1)],8,CJe),o.isOpen?(T(),w("div",RJe,[l("div",{innerHTML:o.content,class:"prose dark:prose-invert"},null,8,AJe)])):B("",!0)]))),128))])])])])}const NJe=st(EJe,[["render",MJe],["__scopeId","data-v-8c1798f3"]]);function is(n,e=!0,t=1){const i=e?1e3:1024;if(Math.abs(n)<i)return n+" B";const s=e?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let r=-1;const o=10**t;do n/=i,++r;while(Math.round(Math.abs(n)*o)/o>=i&&r<s.length-1);return n.toFixed(t)+" "+s[r]}const $n="/assets/logo-CA_sh1Fo.png",OJe={props:{title:{type:String,required:!1,value:"menu"},icon:{type:String,required:!1,value:"feather:menu"},commands:{type:Array,required:!0},force_position:{required:!1,value:0},execute_cmd:{type:Function,required:!1},menuIconClass:{type:String,required:!1,default:""},selected_entry:{type:String,required:!1}},data(){return{isMenuOpen:!1,menuPosition:{bottom:"auto",top:"calc(100% + 10px)"}}},methods:{handleClickOutside(n){const e=this.$refs.menu,t=this.$refs.menuButton;e&&!e.contains(n.target)&&!t.contains(n.target)&&(this.isMenuOpen=!1,window.removeEventListener("click",this.handleClickOutside))},toggleMenu(){this.positionMenu(),this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?window.addEventListener("click",this.handleClickOutside):window.removeEventListener("click",this.handleClickOutside),Le(()=>{Ve.replace()})},executeCommand(n){this.isMenuOpen=!1,console.log("Selected"),console.log(n.value),typeof n.value=="function"&&(console.log("Command detected",n),n.value()),this.execute_cmd&&(console.log("executing generic command"),this.execute_cmd(n))},positionMenu(){var n;if(this.$refs.menuButton!=null){if(this.force_position==0||this.force_position==null){const e=this.$refs.menuButton.getBoundingClientRect(),t=window.innerHeight;n=e.bottom>t/2}else this.force_position==1?n=!0:n=!1;this.menuPosition.top=n?"auto":"calc(100% + 10px)",this.menuPosition.bottom=n?"100%":"auto"}}},mounted(){window.addEventListener("resize",this.positionMenu),this.positionMenu(),Le(()=>{Ve.replace()})},beforeDestroy(){window.removeEventListener("resize",this.positionMenu)},watch:{isMenuOpen:"positionMenu"}},IJe={class:"menu-container"},kJe=["title"],DJe=["src"],LJe=["data-feather"],PJe={key:2,class:"w-5 h-5"},FJe={key:3,"data-feather":"menu"},UJe={class:"flex-grow menu-ul"},BJe=["onClick"],GJe={key:0,"data-feather":"check"},VJe=["src","alt"],zJe=["data-feather"],HJe={key:3,class:"menu-icon"};function qJe(n,e,t,i,s,r){return T(),w("div",IJe,[l("button",{onClick:e[0]||(e[0]=W((...o)=>r.toggleMenu&&r.toggleMenu(...o),["prevent"])),title:t.title,class:Ue([t.menuIconClass,"menu-button m-0 p-0 bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 rounded flex items-center justify-center w-6 h-6 border-none cursor-pointer hover:bg-blue-400 w-8 h-8 object-fill text-red-700 border-2 active:scale-90 hover:z-20 hover:-translate-y-2 duration-150 border-gray-300 border-secondary cursor-pointer"]),ref:"menuButton"},[t.icon&&!t.icon.includes("#")&&!t.icon.includes("feather")?(T(),w("img",{key:0,src:t.icon,class:"w-5 h-5 p-0 m-0 shadow-lg bold"},null,8,DJe)):t.icon&&t.icon.includes("feather")?(T(),w("i",{key:1,"data-feather":t.icon.split(":")[1],class:"w-5 h-5"},null,8,LJe)):t.icon&&t.icon.includes("#")?(T(),w("p",PJe,$(t.icon.split("#")[1]),1)):(T(),w("i",FJe))],10,kJe),z(Os,{name:"slide"},{default:Ie(()=>[s.isMenuOpen?(T(),w("div",{key:0,class:"menu-list flex-grow",style:Wt(s.menuPosition),ref:"menu"},[l("ul",UJe,[(T(!0),w(Be,null,Xe(t.commands,(o,a)=>(T(),w("li",{key:a,onClick:W(c=>r.executeCommand(o),["prevent"]),class:"menu-command menu-li flex-grow hover:bg-blue-400"},[t.selected_entry==o.name?(T(),w("i",GJe)):o.icon&&!o.icon.includes("feather")&&!o.is_file?(T(),w("img",{key:1,src:o.icon,alt:o.name,class:"menu-icon"},null,8,VJe)):B("",!0),o.icon&&o.icon.includes("feather")&&!o.is_file?(T(),w("i",{key:2,"data-feather":o.icon.split(":")[1],class:"mr-2"},null,8,zJe)):(T(),w("span",HJe)),l("span",null,$(o.name),1)],8,BJe))),128))])],4)):B("",!0)]),_:1})])}const W0=st(OJe,[["render",qJe]]),YJe={components:{InteractiveMenu:W0},props:{isInstalled:Boolean,onInstall:Function,onCancelInstall:Function,onUninstall:Function,onSelected:Function,onCopy:Function,onCopyLink:Function,selected:Boolean,model:Object,model_type:String},data(){return{progress:0,speed:0,total_size:0,downloaded_size:0,start_time:"",installing:!1,uninstalling:!1,failedToLoad:!1,linkNotValid:!1,selected_variant:""}},async mounted(){Le(()=>{Ve.replace()})},methods:{formatFileSize(n){return n<1024?n+" bytes":n<1024*1024?(n/1024).toFixed(2)+" KB":n<1024*1024*1024?(n/(1024*1024)).toFixed(2)+" MB":(n/(1024*1024*1024)).toFixed(2)+" GB"},computedFileSize(n){return is(n)},getImgUrl(){return this.model.icon==null||this.model.icon==="/images/default_model.png"?$n:this.model.icon},defaultImg(n){n.target.src=$n},install(){this.onInstall(this)},uninstall(){this.isInstalled&&this.onUninstall(this)},toggleInstall(){this.isInstalled?(this.uninstalling=!0,this.onUninstall(this)):this.onInstall(this)},toggleSelected(n){if(console.log("event.target.tagName.toLowerCase()"),console.log(n.target.tagName.toLowerCase()),n.target.tagName.toLowerCase()==="button"||n.target.tagName.toLowerCase()==="svg"){n.stopPropagation();return}this.onSelected(this),this.model.selected=!0,Le(()=>{Ve.replace()})},toggleCopy(){this.onCopy(this)},toggleCopyLink(){this.onCopyLink(this)},toggleCancelInstall(){this.onCancelInstall(this),this.installing=!1},handleSelection(){this.isInstalled&&!this.selected&&this.onSelected(this)},copyContentToClipboard(){this.$emit("copy","this.message.content")}},computed:{computed_classes(){return this.model.isInstalled?this.selected?"border-4 border-gray-200 bg-primary cursor-pointer":"border-0 border-primary bg-primary cursor-pointer":"border-transparent"},commandsList(){let n=[{name:this.model.isInstalled?"Install Extra":"Install",icon:"feather:settings",is_file:!1,value:this.install},{name:"Copy model info to clipboard",icon:"feather:settings",is_file:!1,value:this.toggleCopy}];return this.model.isInstalled&&n.push({name:"UnInstall",icon:"feather:settings",is_file:!1,value:this.uninstall}),this.selected&&n.push({name:"Reload",icon:"feather:refresh-ccw",is_file:!1,value:this.toggleSelected}),n},selected_computed(){return this.selected},fileSize:{get(){if(this.model&&this.model.variants&&this.model.variants.length>0){const n=this.model.variants[0].size;return this.formatFileSize(n)}return null}},speed_computed(){return is(this.speed)},total_size_computed(){return is(this.total_size)},downloaded_size_computed(){return is(this.downloaded_size)}},watch:{linkNotValid(){Le(()=>{Ve.replace()})}}},$Je=["title"],WJe={key:0,class:"flex flex-row"},KJe={class:"max-w-[300px] overflow-x-auto"},jJe={class:"flex gap-3 items-center grow"},QJe=["href"],XJe=["src"],ZJe={class:"flex-1 overflow-hidden"},JJe={class:"font-bold font-large text-lg truncate"},eet={key:1,class:"flex items-center flex-row gap-2 my-1"},tet={class:"flex grow items-center"},net={key:2,class:"absolute z-10 -m-4 p-5 shadow-md text-center rounded-lg w-full h-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel bg-opacity-70 dark:bg-opacity-70 flex justify-center items-center"},iet={class:"relative flex flex-col items-center justify-center flex-grow h-full"},set={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},ret={class:"w-full bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel rounded-lg p-2"},oet={class:"flex justify-between mb-1"},aet={class:"text-sm font-medium text-blue-700 dark:text-white"},cet={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},det={class:"flex justify-between mb-1"},uet={class:"text-base font-medium text-blue-700 dark:text-white"},pet={class:"text-sm font-medium text-blue-700 dark:text-white"},fet={class:"flex flex-grow"},_et={class:"flex flex-row flex-grow gap-3"},met={class:"p-2 text-center grow"},het={key:3},get={class:"flex flex-row items-center gap-3"},bet=["src"],yet={class:"font-bold font-large text-lg truncate"},Eet={class:"flex items-center flex-row-reverse gap-2 my-1"},vet={class:"flex flex-row items-center"},Tet={key:0,class:"text-base text-red-600 flex items-center mt-1"},xet=["title"],Cet={class:""},wet={class:"flex flex-row items-center"},Ret=["href","title"],Aet={class:"flex items-center"},Met={class:"flex items-center"},Net={key:0,class:"flex items-center"},Oet=["href"],Iet={class:"flex items-center"},ket=["href"],Det={class:"flex items-center"},Let={class:"flex items-center"},Pet=["href"];function Fet(n,e,t,i,s,r){const o=nt("InteractiveMenu");return T(),w("div",{class:Ue(["relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",r.computed_classes]),title:t.model.name,onClick:e[10]||(e[10]=W(a=>r.toggleSelected(a),["prevent"]))},[t.model.isCustomModel?(T(),w("div",WJe,[l("div",KJe,[l("div",jJe,[l("a",{href:t.model.model_creator_link,target:"_blank"},[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-lg object-fill"},null,40,XJe)],8,QJe),l("div",ZJe,[l("h3",JJe,$(t.model.name),1)])])])])):B("",!0),t.model.isCustomModel?(T(),w("div",eet,[l("div",tet,[l("button",{type:"button",title:"Custom model / local model",class:"font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",onClick:e[1]||(e[1]=W(()=>{},["stop"]))},e[11]||(e[11]=[l("i",{"data-feather":"box",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Custom model / local model",-1)])),e[12]||(e[12]=Ze(" Custom model "))]),l("div",null,[t.model.isInstalled?(T(),w("button",{key:0,title:"Delete file from disk",type:"button",onClick:e[2]||(e[2]=W((...a)=>r.uninstall&&r.uninstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"Remove",-1)]))):B("",!0)])])):B("",!0),s.installing?(T(),w("div",net,[l("div",iet,[e[15]||(e[15]=l("div",{role:"status",class:"justify-center"},[l("svg",{"aria-hidden":"true",class:"w-24 h-24 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)),l("div",set,[l("div",ret,[l("div",oet,[e[14]||(e[14]=l("span",{class:"text-base font-medium text-blue-700 dark:text-white"},"Downloading",-1)),l("span",aet,$(Math.floor(s.progress))+"%",1)]),l("div",cet,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt({width:s.progress+"%"})},null,4)]),l("div",det,[l("span",uet,"Download speed: "+$(r.speed_computed)+"/s",1),l("span",pet,$(r.downloaded_size_computed)+"/"+$(r.total_size_computed),1)])])]),l("div",fet,[l("div",_et,[l("div",met,[l("button",{onClick:e[3]||(e[3]=W((...a)=>r.toggleCancelInstall&&r.toggleCancelInstall(...a),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])])):B("",!0),t.model.isCustomModel?B("",!0):(T(),w("div",het,[l("div",get,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[4]||(e[4]=a=>r.defaultImg(a)),class:Ue(["w-10 h-10 rounded-lg object-fill",s.linkNotValid?"grayscale":""])},null,42,bet),l("h3",yet,$(t.model.name),1),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),z(o,{commands:r.commandsList,force_position:2,title:"Menu"},null,8,["commands"])]),l("div",Eet,[l("div",vet,[s.linkNotValid?(T(),w("div",Tet,e[17]||(e[17]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0 mx-1"},null,-1),Ze(" Link is not valid ")]))):B("",!0)])]),l("div",{class:"",title:t.model.isInstalled?t.model.name:"Not installed"},[l("div",Cet,[l("div",wet,[e[19]||(e[19]=l("i",{"data-feather":"download",class:"w-5 m-1 flex-shrink-0"},null,-1)),e[20]||(e[20]=l("b",null,"Card: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer+"/"+t.model.name,target:"_blank",onClick:e[5]||(e[5]=W(()=>{},["stop"])),class:"m-1 flex items-center hover:text-secondary duration-75 active:scale-90 truncate",title:s.linkNotValid?"Link is not valid":"Download this manually (faster) and put it in the models/<current binding> folder then refresh"}," View full model card ",8,Ret),e[21]||(e[21]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[6]||(e[6]=W(a=>r.toggleCopyLink(),["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",Aet,[l("div",{class:Ue(["flex flex-shrink-0 items-center",s.linkNotValid?"text-red-600":""])},[e[22]||(e[22]=l("i",{"data-feather":"file",class:"w-5 m-1"},null,-1)),e[23]||(e[23]=l("b",null,"File size: ",-1)),Ze(" "+$(r.fileSize),1)],2)]),l("div",Met,[e[24]||(e[24]=l("i",{"data-feather":"key",class:"w-5 m-1"},null,-1)),e[25]||(e[25]=l("b",null,"License: ",-1)),Ze(" "+$(t.model.license),1)]),t.model.quantizer!="None"&&t.model.type!="transformers"?(T(),w("div",Net,[e[26]||(e[26]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[27]||(e[27]=l("b",null,"quantizer: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.quantizer,target:"_blank",rel:"noopener noreferrer",onClick:e[7]||(e[7]=W(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},$(t.model.quantizer),9,Oet)])):B("",!0),l("div",Iet,[e[28]||(e[28]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[29]||(e[29]=l("b",null,"Model creator: ",-1)),l("a",{href:t.model.model_creator_link,target:"_blank",rel:"noopener noreferrer",onClick:e[8]||(e[8]=W(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},$(t.model.model_creator),9,ket)]),l("div",Det,[e[30]||(e[30]=l("i",{"data-feather":"clock",class:"w-5 m-1"},null,-1)),e[31]||(e[31]=l("b",null,"Release date: ",-1)),Ze(" "+$(t.model.last_commit_time),1)]),l("div",Let,[e[32]||(e[32]=l("i",{"data-feather":"grid",class:"w-5 m-1"},null,-1)),e[33]||(e[33]=l("b",null,"Category: ",-1)),l("a",{href:"https://huggingface.co/"+t.model.model_creator,target:"_blank",rel:"noopener noreferrer",onClick:e[9]||(e[9]=W(()=>{},["stop"])),class:"flex hover:text-secondary duration-75 active:scale-90",title:"quantizer's profile"},$(t.model.category),9,Pet)])])],8,xet)]))],10,$Je)}const Uet=st(YJe,[["render",Fet]]),Bet={data(){return{editMode:!1,avatar:"path/to/avatar.jpg",personalityName:"Personality Name",personalityAuthor:"Author Name",personalityDescription:"Personality Description",personalityCategory:"Category",disclaimer:"Disclaimer text",conditioningText:"Conditioning Text",aiPrefix:"AI Prefix",userPrefix:"User Prefix",antipromptsList:[{id:1,text:"Antiprompt 1"},{id:2,text:"Antiprompt 2"},{id:3,text:"Antiprompt 3"}]}},methods:{commitChanges(){console.log("Personality changes committed"),this.editMode=!1}}},Get={class:"p-4"},Vet={class:"flex items-center mb-4"},zet=["src"],Het={class:"text-lg font-semibold"},qet={key:0};function Yet(n,e,t,i,s,r){return T(),w("div",Get,[l("div",Vet,[l("img",{src:s.avatar,class:"w-12 h-12 rounded-full mr-2",alt:"Avatar"},null,8,zet),l("h2",Het,$(s.personalityName),1)]),l("p",null,[e[2]||(e[2]=l("strong",null,"Author:",-1)),Ze(" "+$(s.personalityAuthor),1)]),l("p",null,[e[3]||(e[3]=l("strong",null,"Description:",-1)),Ze(" "+$(s.personalityDescription),1)]),l("p",null,[e[4]||(e[4]=l("strong",null,"Category:",-1)),Ze(" "+$(s.personalityCategory),1)]),s.disclaimer?(T(),w("p",qet,[e[5]||(e[5]=l("strong",null,"Disclaimer:",-1)),Ze(" "+$(s.disclaimer),1)])):B("",!0),l("p",null,[e[6]||(e[6]=l("strong",null,"Conditioning Text:",-1)),Ze(" "+$(s.conditioningText),1)]),l("p",null,[e[7]||(e[7]=l("strong",null,"AI Prefix:",-1)),Ze(" "+$(s.aiPrefix),1)]),l("p",null,[e[8]||(e[8]=l("strong",null,"User Prefix:",-1)),Ze(" "+$(s.userPrefix),1)]),l("div",null,[e[9]||(e[9]=l("strong",null,"Antiprompts:",-1)),l("ul",null,[(T(!0),w(Be,null,Xe(s.antipromptsList,o=>(T(),w("li",{key:o.id},$(o.text),1))),128))])]),l("button",{onClick:e[0]||(e[0]=o=>s.editMode=!0),class:"mt-4 bg-blue-500 text-white px-4 py-2 rounded"}," Edit "),s.editMode?(T(),w("button",{key:1,onClick:e[1]||(e[1]=(...o)=>r.commitChanges&&r.commitChanges(...o)),class:"mt-4 bg-green-500 text-white px-4 py-2 rounded"}," Commit ")):B("",!0)])}const $et=st(Bet,[["render",Yet]]),K0="/assets/logo-CQZwS0X1.svg",Wet="/",Ket={props:{personality:{},select_language:Boolean,selected:Boolean,full_path:String,onTalk:Function,onOpenFolder:Function,onSelected:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onReinstall:Function,onSettings:Function,onCopyPersonalityName:Function,onToggleFavorite:Function},components:{InteractiveMenu:W0},data(){return{isMounted:!1,name:this.personality.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0}}},computed:{commandsList(){let n=[{name:this.isMounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.isMounted?this.unmount:this.mount},{name:"reinstall",icon:"feather:terminal",is_file:!1,value:this.toggleReinstall}];return console.log("this.category",this.personality.category),this.personality.category=="custom_personalities"?n.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):n.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.isMounted&&n.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),this.selected&&this.personality.has_scripts&&n.push({name:"settings",icon:"feather:settings",is_file:!1,value:this.toggleSettings}),n},selected_computed(){return this.selected}},mounted(){this.isMounted=this.personality.isMounted,Le(()=>{Ve.replace()})},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(n){this.thumbnailPosition={x:n.clientX+10,y:n.clientY+10}},getImgUrl(){return Wet+this.personality.avatar},defaultImg(n){n.target.src=K0},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleTalk(){this.onTalk(this)},toggleCopyLink(){this.onCopyPersonalityName(this)},toggleSelected(){this.isMounted&&this.onSelected(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.isMounted=!1},toggleSettings(){this.onSettings(this)},toggleReinstall(){this.onReinstall(this)}},watch:{selected(){Le(()=>{Ve.replace()})}}},jet=["title"],Qet={class:"flex-grow"},Xet={class:"flex items-center mb-4"},Zet=["src"],Jet={class:"text-sm text-gray-600"},ett={class:"text-sm text-gray-600"},ttt={class:"text-sm text-gray-600"},ntt={key:0,class:"text-sm text-gray-600"},itt={key:1,class:"text-sm text-gray-600"},stt={class:"mb-4"},rtt=["innerHTML"],ott={class:"mt-auto pt-4 border-t"},att={class:"flex justify-between items-center flex-wrap"},ltt=["title"],ctt=["fill"],dtt=["src"];function utt(n,e,t,i,s,r){const o=nt("InteractiveMenu");return T(),w("div",{class:Ue(["personality-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full",r.selected_computed?"border-primary-light":"border-transparent",s.isMounted?"bg-blue-200 dark:bg-blue-700":""]),title:t.personality.installed?"":"Not installed"},[l("div",Qet,[l("div",Xet,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),alt:"Personality Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onClick:e[1]||(e[1]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),onMouseover:e[2]||(e[2]=(...a)=>r.showThumbnail&&r.showThumbnail(...a)),onMousemove:e[3]||(e[3]=(...a)=>r.updateThumbnailPosition&&r.updateThumbnailPosition(...a)),onMouseleave:e[4]||(e[4]=(...a)=>r.hideThumbnail&&r.hideThumbnail(...a))},null,40,Zet),l("div",null,[l("h3",{class:"font-bold text-xl text-gray-800 cursor-pointer",onClick:e[5]||(e[5]=(...a)=>r.toggleSelected&&r.toggleSelected(...a))},$(t.personality.name),1),l("p",Jet,"Author: "+$(t.personality.author),1),l("p",ett,"Version: "+$(t.personality.version),1),l("p",ttt,"Category: "+$(t.personality.category),1),t.personality.creation_date?(T(),w("p",ntt,"Creation Date: "+$(r.formatDate(t.personality.creation_date)),1)):B("",!0),t.personality.last_update_date?(T(),w("p",itt,"Last update Date: "+$(r.formatDate(t.personality.last_update_date)),1)):B("",!0)])]),l("div",stt,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:t.personality.description},null,8,rtt)])]),l("div",ott,[l("div",att,[l("button",{onClick:e[6]||(e[6]=(...a)=>r.toggleFavorite&&r.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:n.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:n.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,ctt))],8,ltt),s.isMounted?(T(),w("button",{key:0,onClick:e[7]||(e[7]=(...a)=>r.toggleSelected&&r.toggleSelected(...a)),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Select"},e[12]||(e[12]=[l("i",{"data-feather":"check",class:"h-6 w-6"},null,-1)]))):B("",!0),s.isMounted?(T(),w("button",{key:1,onClick:e[8]||(e[8]=(...a)=>r.toggleTalk&&r.toggleTalk(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Talk"},e[13]||(e[13]=[l("i",{"data-feather":"send",class:"h-6 w-6"},null,-1)]))):B("",!0),l("button",{onClick:e[9]||(e[9]=(...a)=>r.showFolder&&r.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[14]||(e[14]=[l("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),z(o,{commands:r.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),s.thumbnailVisible?(T(),w("div",{key:0,style:Wt({top:s.thumbnailPosition.y+"px",left:s.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[l("img",{src:r.getImgUrl(),class:"w-full h-full object-fill"},null,8,dtt)],4)):B("",!0)],10,jet)}const lN=st(Ket,[["render",utt]]),ptt={name:"DynamicUIRenderer",props:{ui:{type:String,required:!0},instanceId:{type:String,required:!0}},data(){return{containerId:`dynamic-ui-${this.instanceId}`}},watch:{ui:{immediate:!0,handler(n){console.log(`UI prop changed for instance ${this.instanceId}:`,n),this.$nextTick(()=>{this.renderContent()})}}},methods:{renderContent(){console.log(`Rendering content for instance ${this.instanceId}...`);const n=this.$refs.container,t=new DOMParser().parseFromString(this.ui,"text/html"),i=t.getElementsByTagName("style");Array.from(i).forEach(r=>{const o=document.createElement("style");o.textContent=this.scopeCSS(r.textContent),document.head.appendChild(o)}),n.innerHTML=t.body.innerHTML;const s=t.getElementsByTagName("script");Array.from(s).forEach(r=>{const o=document.createElement("script");o.textContent=r.textContent,n.appendChild(o)})},scopeCSS(n){return n.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,`#${this.containerId} $1$2`)}}},ftt=["id"];function _tt(n,e,t,i,s,r){return T(),w("div",{id:s.containerId,ref:"container"},null,8,ftt)}const cN=st(ptt,[["render",_tt]]),mtt="/",htt={components:{DynamicUIRenderer:cN},props:{binding:{},onSelected:Function,onReinstall:Function,onInstall:Function,onUnInstall:Function,onSettings:Function,onReloadBinding:Function,selected:Boolean},data(){return{isTemplate:!1}},mounted(){Le(()=>{Ve.replace()})},methods:{copyToClipBoard(n){console.log("Copying to clipboard :",n),navigator.clipboard.writeText(n)},getImgUrl(){return mtt+this.binding.icon},defaultImg(n){n.target.src=K0},toggleSelected(){this.onSelected(this)},toggleInstall(){this.onInstall(this)},toggleUnInstall(){this.onUnInstall(this)},toggleReinstall(){this.onReinstall(this)},toggleReloadBinding(){this.onReloadBinding(this)},toggleSettings(){this.onSettings(this)},getStatus(){(this.binding.folder==="backend_template"||this.binding.folder==="binding_template")&&(this.isTemplate=!0)}},watch:{selected(){Le(()=>{Ve.replace()})}}},gtt=["title"],btt={class:"flex flex-row items-center gap-3"},ytt=["src"],Ett={class:"font-bold font-large text-lg truncate"},vtt={class:"flex-none gap-1"},Stt={class:"flex items-center flex-row-reverse gap-2 my-1"},Ttt={class:""},xtt={class:""},Ctt={class:"flex items-center"},wtt={class:"flex items-center"},Rtt={class:"flex items-center"},Att={class:"flex items-center"},Mtt=["href"],Ntt=["title","innerHTML"];function Ott(n,e,t,i,s,r){const o=nt("DynamicUIRenderer");return T(),w("div",{class:Ue(["items-start p-4 hover:bg-primary-light hover:border-primary-light rounded-lg mb-2 shadow-lg border-2 cursor-pointer select-none",t.selected?" border-primary bg-primary":"border-transparent"]),onClick:e[8]||(e[8]=W((...a)=>r.toggleSelected&&r.toggleSelected(...a),["stop"])),title:t.binding.installed?t.binding.name:"Not installed"},[l("div",null,[l("div",btt,[l("img",{ref:"imgElement",src:r.getImgUrl(),onError:e[0]||(e[0]=a=>r.defaultImg(a)),class:"w-10 h-10 rounded-full object-fill text-blue-700"},null,40,ytt),l("h3",Ett,$(t.binding.name),1),e[10]||(e[10]=l("div",{class:"grow"},null,-1)),l("div",vtt,[t.selected?(T(),w("button",{key:0,type:"button",title:"Reload binding",onClick:[e[1]||(e[1]=(...a)=>r.toggleReloadBinding&&r.toggleReloadBinding(...a)),e[2]||(e[2]=W(()=>{},["stop"]))],class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center"},e[9]||(e[9]=[l("i",{"data-feather":"refresh-cw",class:"w-5"},null,-1),l("span",{class:"sr-only"},"Help",-1)]))):B("",!0)])]),l("div",Stt,[t.binding.installed?B("",!0):(T(),w("button",{key:0,title:"Click to install",type:"button",onClick:e[3]||(e[3]=W((...a)=>r.toggleInstall&&r.toggleInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[11]||(e[11]=[Ze(" Install "),l("span",{class:"sr-only"},"Click to install",-1)]))),t.binding.installed?(T(),w("button",{key:1,title:"Click to Reinstall binding",type:"button",onClick:e[4]||(e[4]=W((...a)=>r.toggleReinstall&&r.toggleReinstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-green-700 hover:bg-red-800 focus:ring-4 focus:ring-green-300 rounded-lg dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-red-900"},e[12]||(e[12]=[Ze(" Reinstall "),l("span",{class:"sr-only"},"Reinstall",-1)]))):B("",!0),t.binding.installed?(T(),w("button",{key:2,title:"Click to Reinstall binding",type:"button",onClick:e[5]||(e[5]=W((...a)=>r.toggleUnInstall&&r.toggleUnInstall(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center focus:outline-none text-white bg-red-700 hover:bg-red-800 focus:ring-4 focus:ring-red-300 rounded-lg dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900"},e[13]||(e[13]=[Ze(" Uninstall "),l("span",{class:"sr-only"},"UnInstall",-1)]))):B("",!0),t.selected?(T(),w("button",{key:3,title:"Click to open Settings",type:"button",onClick:e[6]||(e[6]=W((...a)=>r.toggleSettings&&r.toggleSettings(...a),["stop"])),class:"inline-flex items-center gap-2 px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},e[14]||(e[14]=[Ze(" Settings "),l("span",{class:"sr-only"},"Settings",-1)]))):B("",!0)]),t.binding.ui?(T(),at(o,{key:0,class:"w-full h-full",code:t.binding.ui},null,8,["code"])):B("",!0),l("div",Ttt,[l("div",xtt,[l("div",Ctt,[e[15]||(e[15]=l("i",{"data-feather":"user",class:"w-5 m-1"},null,-1)),e[16]||(e[16]=l("b",null,"Author: ",-1)),Ze(" "+$(t.binding.author),1)]),l("div",wtt,[e[18]||(e[18]=l("i",{"data-feather":"folder",class:"w-5 m-1"},null,-1)),e[19]||(e[19]=l("b",null,"Folder: ",-1)),Ze(" "+$(t.binding.folder)+" ",1),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{class:"hover:text-secondary duration-75 active:scale-90 font-medium rounded-lg text-sm p-2 text-center inline-flex items-center",title:"Copy link to clipboard",onClick:e[7]||(e[7]=W(a=>r.copyToClipBoard(this.binding.folder),["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"clipboard",class:"w-5"},null,-1)]))]),l("div",Rtt,[e[21]||(e[21]=l("i",{"data-feather":"git-merge",class:"w-5 m-1"},null,-1)),e[22]||(e[22]=l("b",null,"Version: ",-1)),Ze(" "+$(t.binding.version),1)]),l("div",Att,[e[23]||(e[23]=l("i",{"data-feather":"github",class:"w-5 m-1"},null,-1)),e[24]||(e[24]=l("b",null,"Link: ",-1)),l("a",{href:t.binding.link,target:"_blank",class:"flex items-center hover:text-secondary duration-75 active:scale-90"},$(t.binding.link),9,Mtt)])]),e[25]||(e[25]=l("div",{class:"flex items-center"},[l("i",{"data-feather":"info",class:"w-5 m-1"}),l("b",null,"Description: "),l("br")],-1)),l("p",{class:"mx-1 opacity-80 line-clamp-3",title:t.binding.description,innerHTML:t.binding.description},null,8,Ntt)])])],10,gtt)}const Itt=st(htt,[["render",Ott]]),Bi="/assets/logo-CA_sh1Fo.png",ktt={data(){return{show:!1,model_path:"",resolve:null}},methods:{cancel(){this.resolve(null)},openInputBox(){return new Promise(n=>{this.resolve=n})},hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},showDialog(n){return new Promise(e=>{this.model_path=n,this.show=!0,this.resolve=e})}}},Dtt={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},Ltt={class:"relative w-full max-w-md max-h-full"},Ptt={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},Ftt={class:"p-4 text-center"},Utt={class:"p-4 text-center mx-auto mb-4"};function Btt(n,e,t,i,s,r){return s.show?(T(),w("div",Dtt,[l("div",Ltt,[l("div",Ptt,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[4]||(e[4]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",Ftt,[e[6]||(e[6]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("div",Utt,[e[5]||(e[5]=l("label",{class:"mr-2"},"Model path",-1)),k(l("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>s.model_path=o),class:"px-4 py-2 border border-gray-300 rounded-lg",type:"text"},null,512),[[ue,s.model_path]])]),l("button",{onClick:e[2]||(e[2]=o=>r.hide(!0)),type:"button",class:"text-white bg-green-600 hover:bg-green-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"}," Add "),l("button",{onClick:e[3]||(e[3]=o=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},"No, cancel")])])])])):B("",!0)}const Gtt=st(ktt,[["render",Btt]]),Vtt={props:{show:{type:Boolean,default:!1},can_remove:{type:Boolean,default:!1},title:{type:String,default:"Select an option"},choices:{type:Array,required:!0}},data(){return{selectedChoice:null,showInput:!1,newFilename:""}},methods:{displayName(n){return typeof n=="string"?n:n&&n.name?n.name:""},selectChoice(n){this.selectedChoice=n,this.$emit("choice-selected",n)},closeDialog(){this.$emit("close-dialog")},validateChoice(){this.$emit("choice-validated",this.selectedChoice)},formatSize(n){const e=["bytes","KB","MB","GB"];let t=0;for(;n>=1024&&t<e.length-1;)n/=1024,t++;return`${n.toFixed(2)} ${e[t]}`},toggleInput(){this.showInput=!this.showInput},addNewFilename(){const n=this.newFilename.trim();n!==""&&(this.choices.push({name:n,isEditing:!1}),this.newFilename="",this.selectChoice(this.choices[this.choices.length-1])),this.showInput=!1},removeChoice(n,e){this.choices.splice(e,1),n===this.selectedChoice&&(this.selectedChoice=null),this.$emit("choice-removed",n)},editChoice(n){n.isEditing=!0,n.editName=this.displayName(n)},finishEditing(n){if(typeof n=="string"){const e=this.choices.indexOf(n);e!==-1&&(this.choices[e]=n.editName)}else n.name=n.editName;n.isEditing=!1,delete n.editName}}},ztt={key:0,class:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},Htt={class:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6 w-96 max-w-md"},qtt={class:"text-2xl font-bold mb-4 text-gray-800 dark:text-white flex items-center"},Ytt={class:"h-48 bg-gray-100 dark:bg-gray-700 rounded-lg mb-4 overflow-y-auto scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-gray-200 dark:scrollbar-thumb-gray-600 dark:scrollbar-track-gray-800"},$tt={class:"flex items-center justify-between"},Wtt={class:"flex-grow"},Ktt=["onClick"],jtt=["onUpdate:modelValue","onBlur","onKeyup"],Qtt={key:2,class:"text-xs text-gray-500 dark:text-gray-400 ml-2"},Xtt={class:"flex items-center"},Ztt=["onClick"],Jtt=["onClick"],ent={key:0,class:"flex flex-col mb-4"},tnt={class:"flex justify-between"},nnt=["disabled"];function int(n,e,t,i,s,r){return T(),at(Os,{name:"fade"},{default:Ie(()=>[t.show?(T(),w("div",ztt,[l("div",Htt,[l("h2",qtt,[e[5]||(e[5]=l("svg",{class:"w-6 h-6 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})],-1)),Ze(" "+$(t.title),1)]),l("div",Ytt,[l("ul",null,[(T(!0),w(Be,null,Xe(t.choices,(o,a)=>(T(),w("li",{key:a,class:"py-2 px-4 hover:bg-gray-200 dark:hover:bg-gray-600 transition duration-150 ease-in-out"},[l("div",$tt,[l("div",Wtt,[o.isEditing?k((T(),w("input",{key:1,"onUpdate:modelValue":c=>o.editName=c,onBlur:c=>r.finishEditing(o),onKeyup:wi(c=>r.finishEditing(o),["enter"]),class:"bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded px-2 py-1 text-sm",autofocus:""},null,40,jtt)),[[ue,o.editName]]):(T(),w("span",{key:0,onClick:c=>r.selectChoice(o),class:Ue([{"font-semibold":o===s.selectedChoice},"text-gray-800 dark:text-white cursor-pointer"])},$(r.displayName(o)),11,Ktt)),o.size?(T(),w("span",Qtt,$(r.formatSize(o.size)),1)):B("",!0)]),l("div",Xtt,[l("button",{onClick:c=>r.editChoice(o),class:"text-blue-500 hover:text-blue-600 mr-2"},e[6]||(e[6]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1)]),8,Ztt),t.can_remove?(T(),w("button",{key:0,onClick:c=>r.removeChoice(o,a),class:"text-red-500 hover:text-red-600"},e[7]||(e[7]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]),8,Jtt)):B("",!0)])])]))),128))])]),s.showInput?(T(),w("div",ent,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>s.newFilename=o),placeholder:"Enter a filename",class:"border border-gray-300 dark:border-gray-600 p-2 rounded-lg w-full mb-2 bg-white dark:bg-gray-700 text-gray-800 dark:text-white"},null,512),[[ue,s.newFilename]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.addNewFilename&&r.addNewFilename(...o)),class:"bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add ")])):B("",!0),l("div",tnt,[l("button",{onClick:e[2]||(e[2]=(...o)=>r.closeDialog&&r.closeDialog(...o)),class:"bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-lg transition duration-300"}," Cancel "),l("button",{onClick:e[3]||(e[3]=(...o)=>r.validateChoice&&r.validateChoice(...o)),disabled:!s.selectedChoice,class:Ue([{"bg-blue-500 hover:bg-blue-600":s.selectedChoice,"bg-gray-400 cursor-not-allowed":!s.selectedChoice},"text-white font-bold py-2 px-4 rounded-lg transition duration-300"])}," Validate ",10,nnt),l("button",{onClick:e[4]||(e[4]=(...o)=>r.toggleInput&&r.toggleInput(...o)),class:"bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded-lg transition duration-300"}," Add New ")])])])):B("",!0)]),_:1})}const j0=st(Vtt,[["render",int],["__scopeId","data-v-f43216be"]]),snt={props:{radioOptions:{type:Array,required:!0},defaultValue:{type:String,default:"0"}},data(){return{selectedValue:this.defaultValue}},computed:{selectedLabel(){const n=this.radioOptions.find(e=>e.value===this.selectedValue);return n?n.label:""}},watch:{selectedValue(n,e){this.$emit("radio-selected",n)}},methods:{handleRadioChange(){}}},rnt={class:"flex space-x-4"},ont=["value","aria-checked"],ant={class:"text-gray-700"};function lnt(n,e,t,i,s,r){return T(),w("div",rnt,[(T(!0),w(Be,null,Xe(t.radioOptions,(o,a)=>(T(),w("label",{key:o.value,class:"flex items-center space-x-2"},[k(l("input",{type:"radio",value:o.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.selectedValue=c),onChange:e[1]||(e[1]=(...c)=>r.handleRadioChange&&r.handleRadioChange(...c)),class:"text-blue-500 focus:ring-2 focus:ring-blue-200","aria-checked":s.selectedValue===o.value.toString(),role:"radio"},null,40,ont),[[ID,s.selectedValue]]),l("span",ant,$(o.label),1)]))),128))])}const cnt=st(snt,[["render",lnt]]),dnt="/assets/gpu-BWVOYg-D.svg",unt={name:"StringListManager",props:{modelValue:{type:Array,default:()=>[]},placeholder:{type:String,default:"Enter an item"}},emits:["update:modelValue","change"],data(){return{newItem:"",draggingIndex:null}},methods:{addItem(){if(this.newItem.trim()){const n=[...this.modelValue,this.newItem.trim()];this.$emit("update:modelValue",n),this.$emit("change"),this.newItem=""}},removeItem(n){const e=this.modelValue.filter((t,i)=>i!==n);this.$emit("update:modelValue",e),this.$emit("change")},removeAll(){this.$emit("update:modelValue",[]),this.$emit("change")},startDragging(n){this.draggingIndex=n},dragItem(n){if(this.draggingIndex!==null){const e=[...this.modelValue],t=e.splice(this.draggingIndex,1)[0];e.splice(n,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},stopDragging(){this.draggingIndex=null},moveUp(n){if(n>0){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n-1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}},moveDown(n){if(n<this.modelValue.length-1){const e=[...this.modelValue],t=e.splice(n,1)[0];e.splice(n+1,0,t),this.$emit("update:modelValue",e),this.$emit("change")}}}},pnt={class:"flex mb-4"},fnt=["placeholder"],_nt={key:0,class:"list-none"},mnt={class:"flex-grow text-xl"},hnt={class:"flex items-center"},gnt=["onClick"],bnt=["onClick"],ynt=["onClick"],Ent=["onMousedown","onMousemove"],vnt={key:1,class:"mt-4"};function Snt(n,e,t,i,s,r){return T(),w("div",null,[l("div",pnt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.newItem=o),placeholder:t.placeholder,onKeyup:e[1]||(e[1]=wi((...o)=>r.addItem&&r.addItem(...o),["enter"])),class:"flex-grow mr-4 px-4 py-2 border border-gray-300 rounded dark:bg-gray-600 text-lg"},null,40,fnt),[[ue,s.newItem]]),l("button",{onClick:e[2]||(e[2]=(...o)=>r.addItem&&r.addItem(...o)),class:"bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 text-lg"},"Add")]),t.modelValue.length>0?(T(),w("ul",_nt,[(T(!0),w(Be,null,Xe(t.modelValue,(o,a)=>(T(),w("li",{key:a,class:Ue(["flex items-center mb-2 relative",{"bg-gray-200":s.draggingIndex===a}])},[l("span",mnt,$(o),1),l("div",hnt,[l("button",{onClick:c=>r.removeItem(a),class:"text-red-500 hover:text-red-700 p-2"},e[5]||(e[5]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)]),8,gnt),a>0?(T(),w("button",{key:0,onClick:c=>r.moveUp(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded mr-2"},e[6]||(e[6]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1)]),8,bnt)):B("",!0),a<t.modelValue.length-1?(T(),w("button",{key:1,onClick:c=>r.moveDown(a),class:"bg-gray-300 hover:bg-gray-400 p-2 rounded"},e[7]||(e[7]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",viewBox:"0 0 20 20",fill:"currentColor"},[l("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]),8,ynt)):B("",!0)]),s.draggingIndex===a?(T(),w("div",{key:0,class:"absolute top-0 left-0 w-full h-full bg-gray-200 opacity-50 cursor-move",onMousedown:c=>r.startDragging(a),onMousemove:c=>r.dragItem(a),onMouseup:e[3]||(e[3]=(...c)=>r.stopDragging&&r.stopDragging(...c))},null,40,Ent)):B("",!0)],2))),128))])):B("",!0),t.modelValue.length>0?(T(),w("div",vnt,[l("button",{onClick:e[4]||(e[4]=(...o)=>r.removeAll&&r.removeAll(...o)),class:"bg-red-500 text-white px-6 py-2 rounded hover:bg-red-600 text-lg"},"Remove All")])):B("",!0)])}const Tnt=st(unt,[["render",Snt]]),xnt="/";ie.defaults.baseURL="/";const Cnt={components:{AddModelDialog:Gtt,ModelEntry:Uet,PersonalityViewer:$et,PersonalityEntry:lN,BindingEntry:Itt,ChoiceDialog:j0,Card:cp,StringListManager:Tnt,RadioOptions:cnt},data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},defaultModelImgPlaceholder:$n,snd_input_devices:[],snd_input_devices_indexes:[],snd_output_devices:[],snd_output_devices_indexes:[],voices:[],voice_languages:{Arabic:"ar","Brazilian Portuguese":"pt",Chinese:"zh-cn",Czech:"cs",Dutch:"nl",English:"en",French:"fr",German:"de",Italian:"it",Polish:"pl",Russian:"ru",Spanish:"es",Turkish:"tr",Japanese:"ja",Korean:"ko",Hungarian:"hu",Hindi:"hi"},storeLogo:Bi,binding_changed:!1,SVGGPU:dnt,models_zoo:[],models_zoo_initialLoadCount:10,models_zoo_loadMoreCount:5,models_zoo_loadedEntries:[],models_zoo_scrollThreshold:200,sortOptions:[{label:"Sort by Date",value:0},{label:"Sort by Rank",value:1},{label:"Sort by Name",value:2},{label:"Sort by Maker",value:3},{label:"Sort by Quantizer",value:4}],comfyui_models:[],show_only_installed_models:!1,reference_path:"",audioVoices:[],has_updates:!1,variant_choices:[],variantSelectionDialogVisible:!1,currenModelToInstall:null,loading_text:"",personality_category:null,addModelDialogVisibility:!1,modelPath:"",personalitiesFiltered:[],modelsFiltered:[],collapsedArr:[],all_collapsed:!0,data_conf_collapsed:!0,internet_conf_collapsed:!0,servers_conf_collapsed:!0,mainconf_collapsed:!0,smartrouterconf_collapsed:!0,bec_collapsed:!0,sort_type:0,is_loading_zoo:!1,mzc_collapsed:!0,mzdc_collapsed:!0,pzc_collapsed:!0,bzc_collapsed:!0,pc_collapsed:!0,mc_collapsed:!0,sc_collapsed:!0,mzl_collapsed:!1,pzl_collapsed:!1,ezl_collapsed:!1,bzl_collapsed:!1,extCatgArr:[],persCatgArr:[],persArr:[],showConfirmation:!1,showToast:!1,isLoading:!1,settingsChanged:!1,isModelSelected:!1,isMounted:!1,bUrl:xnt,searchPersonality:"",searchModel:"",searchPersonalityTimer:{},searchPersonalityTimerInterval:1500,searchModelTimerInterval:1500,searchPersonalityInProgress:!1,searchModelInProgress:!1,addModel:{},modelDownlaodInProgress:!1,uploadData:[]}},async created(){try{this.$store.state.loading_infos="Getting Hardware usage",await this.refreshHardwareUsage(this.$store)}catch(n){console.log("Error cought:",n)}Ye.on("loading_text",this.on_loading_text),this.updateHasUpdates()},methods:{fetchElevenLabsVoices(){fetch("https://api.elevenlabs.io/v1/voices").then(n=>n.json()).then(n=>{this.voices=n.voices}).catch(n=>console.error("Error fetching voices:",n))},async refreshHardwareUsage(n){await n.dispatch("refreshDiskUsage"),await n.dispatch("refreshRamUsage"),await n.dispatch("refreshVramUsage")},addDataSource(){this.$store.state.config.rag_databases.push(""),this.settingsChanged=!0},removeDataSource(n){this.$store.state.config.rag_databases.splice(n,1),this.settingsChanged=!0},async vectorize_folder(n){await ie.post("/vectorize_folder",{client_id:this.$store.state.client_id,db_path:this.$store.state.config.rag_databases[n]},this.posts_headers)},async select_folder(n){try{Ye.on("rag_db_added",e=>{console.log(e),e?(this.$store.state.config.rag_databases[n]=`${e.database_name}::${e.database_path}`,this.settingsChanged=!0):this.$store.state.toast.showToast("Failed to select a folder",4,!1)}),await ie.post("/add_rag_database",{client_id:this.$store.state.client_id},this.posts_headers)}catch{this.$store.state.toast.showToast("Failed to select a folder",4,!1)}},handleTemplateSelection(n){console.log("handleTemplateSelection");const e=n.target.value;console.log("handleTemplateSelection: ",e),e==="lollms"?(console.log("Using lollms template"),this.configFile.start_header_id_template="!@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
 `,this.configFile.start_user_header_id_template="!@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="!@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="lollms_simplified"?(console.log("Using lollms template"),this.configFile.start_header_id_template="@>",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
 `,this.configFile.start_user_header_id_template="@>",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="@>",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="bare"?(console.log("Using lollms template"),this.configFile.start_header_id_template="",this.configFile.system_message_template="system",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
 `,this.configFile.start_user_header_id_template="",this.configFile.end_user_header_id_template=": ",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="",this.configFile.end_ai_header_id_template=": ",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="llama3"?(console.log("Using llama3 template"),this.configFile.start_header_id_template="<|start_header_id|>",this.configFile.system_message_template="system",this.configFile.end_header_id_template="<|end_header_id|>",this.configFile.separator_template="<|eot_id|>",this.configFile.start_user_header_id_template="<|start_header_id|>",this.configFile.end_user_header_id_template="<|end_header_id|>",this.configFile.end_user_message_id_template="",this.configFile.start_ai_header_id_template="<|start_header_id|>",this.configFile.end_ai_header_id_template="<|end_header_id|>",this.configFile.end_ai_message_id_template="",this.settingsChanged=!0):e==="mistral"?(console.log("Using mistral template"),this.configFile.start_header_id_template="[INST]",this.configFile.system_message_template=" Using this information",this.configFile.end_header_id_template=": ",this.configFile.separator_template=`
@@ -223,25 +223,25 @@ The possibilities are endless, they are now yours to mold and customize as you s
 Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder:
 `,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),ie.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality
 `+e.message,4,!1),{status:!1}))},personalityImgPlacehodler(n){n.target.src=Bi},searchPersonality_func(){clearTimeout(this.searchPersonalityTimer),this.searchPersonality&&(this.searchPersonalityInProgress=!0,setTimeout(this.filterPersonalities,this.searchPersonalityTimerInterval))},searchModel_func(){this.filterModels()}},async mounted(){console.log("Getting voices"),this.getVoices(),console.log("Constructing"),this.load_everything(),this.getSeviceVoices();try{console.log("Loading input devices list");const n=await ie.get("/get_snd_input_devices");this.snd_input_devices=n.data.device_names,this.snd_input_devices_indexes=n.data.device_indexes}catch{console.log("Couldin't list input devices")}try{console.log("Loading output devices list");const n=await ie.get("/get_snd_output_devices");this.snd_output_devices=n.data.device_names,this.snd_output_devices_indexes=n.data.device_indexes}catch{console.log("Couldin't list output devices")}try{if(console.log("Getting comfyui models"),this.configFile.activate_lollms_tti_server&&this.configFile.active_tti_service=="comfyui"){const n=await ie.get("/list_comfyui_models");n.data.status&&(this.comfyui_models=n.data.models)}}catch{console.log("Couldin't list output devices")}this.fetchElevenLabsVoices()},activated(){},computed:{full_template:{get(){return(this.configFile.start_header_id_template+this.configFile.system_message_template+this.configFile.end_header_id_template+" system message"+this.configFile.separator_template+this.configFile.start_user_header_id_template+"user name"+this.configFile.end_user_header_id_template+" User prompt"+this.configFile.separator_template+this.configFile.end_user_message_id_template+this.configFile.separator_template+this.configFile.start_ai_header_id_template+"ai personality"+this.configFile.end_ai_header_id_template+"ai response"+this.configFile.end_ai_message_id_template).replace(`
-`,"<br>")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},imgModel:{get(){try{let n=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return n>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[n].icon}`),this.$store.state.modelsZoo[n].icon):$n}catch{console.log("error")}if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:Bi},set(n){this.$store.state.config.user_avatar=n}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(n){this.$store.state.config.hardware_mode=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(n){console.log("Current xtts voice set to ",n),this.$store.state.config.xtts_current_language=n}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.xtts_current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(n){this.$store.state.config.discussion_db_name=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return null;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return n>-1?this.bindingsZoo[n].name:null},active_pesonality(){if(!this.isMounted)return null;const n=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.$store.state.personalities[n].name:null},speed_computed(){return is(this.addModel.speed)},total_size_computed(){return is(this.addModel.total_size)},downloaded_size_computed(){return is(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Le(()=>{Ve.replace()})},pc_collapsed(){Le(()=>{Ve.replace()})},mc_collapsed(){Le(()=>{Ve.replace()})},sc_collapsed(){Le(()=>{Ve.replace()})},showConfirmation(){Le(()=>{Ve.replace()})},mzl_collapsed(){Le(()=>{Ve.replace()})},pzl_collapsed(){Le(()=>{Ve.replace()})},ezl_collapsed(){Le(()=>{Ve.replace()})},bzl_collapsed(){Le(()=>{Ve.replace()})},all_collapsed(n){this.collapseAll(n),Le(()=>{Ve.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Le(()=>{Ve.replace()})},isLoading(){Le(()=>{Ve.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Le(()=>{Ve.replace()})}},async beforeRouteLeave(n){await this.$router.isReady()}},Rnt={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Ant={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},Mnt={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Nnt={key:1,class:"flex gap-3 flex-1 items-center"},Ont={class:"flex gap-3 flex-1 items-center justify-end"},Int={class:"flex gap-3 items-center"},knt={key:0,class:"flex gap-3 items-center"},Dnt={key:1,role:"status"},Lnt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Pnt={class:"flex flex-row p-3"},Fnt={class:"text-base font-semibold cursor-pointer select-none items-center"},Unt={class:"flex gap-2 items-center"},Bnt={key:0},Gnt=["src"],Vnt={class:"font-bold font-large text-lg"},znt={key:1},Hnt={class:"flex gap-2 items-center"},qnt=["src"],Ynt={class:"font-bold font-large text-lg"},$nt={class:"font-bold font-large text-lg"},Wnt={class:"font-bold font-large text-lg"},Knt={class:"mb-2"},jnt={class:"flex flex-col mx-2"},Qnt={class:"p-2"},Xnt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Znt={class:"mb-2"},Jnt={class:"flex flex-col mx-2"},eit={class:"p-2"},tit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},nit={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},iit=["src"],sit={class:"flex flex-col mx-2"},rit={class:"p-2"},oit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},ait={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},lit={class:"flex flex-row p-3"},cit={class:"flex flex-col mb-2 px-3 pb-2"},dit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},uit={style:{width:"100%"}},pit={style:{width:"100%"}},fit={style:{width:"100%"}},_it={style:{width:"100%"}},mit={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},hit={class:"flex flex-row p-3"},git={class:"flex flex-col mb-2 px-3 pb-2"},bit={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},yit={for:"logo-upload"},Eit=["src"],vit={style:{width:"10%"}},Sit={class:"text-center items-center"},Tit={class:"flex flex-row"},xit={style:{width:"100%"}},Cit={class:"flex flex-row"},wit={class:"flex flex-row"},Rit={class:"flex flex-row"},Ait={class:"flex flex-row"},Mit={class:"flex flex-row"},Nit={class:"flex flex-row"},Oit={class:"flex flex-row"},Iit={class:"flex flex-row"},kit={class:"flex flex-row"},Dit={class:"flex flex-row"},Lit={class:"flex flex-row"},Pit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Fit=["innerHTML"],Uit={style:{width:"100%"}},Bit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Git={style:{width:"100%"}},Vit={style:{width:"100%"}},zit={style:{width:"100%"}},Hit={style:{width:"100%"}},qit={for:"avatar-upload"},Yit=["src"],$it={style:{width:"10%"}},Wit={class:"flex flex-row"},Kit={style:{width:"100%"}},jit={style:{width:"100%"}},Qit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Xit={style:{width:"100%"}},Zit={style:{width:"100%"}},Jit={style:{width:"100%"}},est={style:{width:"100%"}},tst={style:{width:"100%"}},nst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ist={class:"flex flex-row"},sst={style:{width:"100%"}},rst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ost={class:"flex flex-row"},ast={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},lst={class:"flex flex-row"},cst={class:"flex flex-row"},dst={class:"flex flex-row"},ust={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},pst={class:"flex flex-row p-3"},fst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},_st={style:{width:"100%"}},mst=["onUpdate:modelValue"],hst=["onClick"],gst=["onClick"],bst=["onClick"],yst=["disabled"],Est={key:0,value:"sentence-transformers/bert-base-nli-mean-tokens"},vst={key:1,value:"bert-base-uncased"},Sst={key:2,value:"bert-base-multilingual-uncased"},Tst={key:3,value:"bert-large-uncased"},xst={key:4,value:"bert-large-uncased-whole-word-masking-finetuned-squad"},Cst={key:5,value:"distilbert-base-uncased"},wst={key:6,value:"roberta-base"},Rst={key:7,value:"roberta-large"},Ast={key:8,value:"xlm-roberta-base"},Mst={key:9,value:"xlm-roberta-large"},Nst={key:10,value:"albert-base-v2"},Ost={key:11,value:"albert-large-v2"},Ist={key:12,value:"albert-xlarge-v2"},kst={key:13,value:"albert-xxlarge-v2"},Dst={key:14,value:"sentence-transformers/all-MiniLM-L6-v2"},Lst={key:15,value:"sentence-transformers/all-MiniLM-L12-v2"},Pst={key:16,value:"sentence-transformers/all-distilroberta-v1"},Fst={key:17,value:"sentence-transformers/all-mpnet-base-v2"},Ust={key:18,value:"text-embedding-ada-002"},Bst={key:19,value:"text-embedding-babbage-001"},Gst={key:20,value:"text-embedding-curie-001"},Vst={key:21,value:"text-embedding-davinci-001"},zst={key:22,disabled:""},Hst={class:"flex flex-row"},qst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Yst={class:"flex flex-row"},$st={class:"flex flex-row"},Wst={class:"flex flex-row"},Kst={class:"flex flex-row"},jst={class:"flex flex-row"},Qst={style:{width:"100%"}},Xst={class:"flex flex-row"},Zst={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Jst={class:"flex flex-row p-3"},ert={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},trt={class:"flex flex-row"},nrt={class:"flex flex-row"},irt={class:"flex flex-row"},srt={class:"flex flex-row"},rrt={class:"flex flex-col"},ort={class:"flex flex-col"},art={class:"flex flex-col"},lrt={class:"flex flex-col"},crt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},drt={class:"flex flex-row p-3"},urt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},prt={style:{width:"100%"}},frt={style:{width:"100%"}},_rt={style:{width:"100%"}},mrt={style:{width:"100%"}},hrt={style:{width:"100%"}},grt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},brt={class:"flex flex-row"},yrt={class:"flex flex-row"},Ert={class:"flex flex-row"},vrt={class:"flex flex-row"},Srt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Trt={style:{width:"100%"}},xrt={style:{width:"100%"}},Crt={style:{width:"100%"}},wrt={style:{width:"100%"}},Rrt={style:{width:"100%"}},Art={style:{width:"100%"}},Mrt={style:{width:"100%"}},Nrt={class:"flex flex-row"},Ort={class:"flex flex-row"},Irt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},krt={style:{width:"100%"}},Drt=["value"],Lrt={style:{width:"100%"}},Prt=["value"],Frt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Urt={style:{width:"100%"}},Brt={style:{width:"100%"}},Grt={style:{width:"100%"}},Vrt={style:{width:"100%"}},zrt={style:{width:"100%"}},Hrt={style:{width:"100%"}},qrt={style:{width:"100%"}},Yrt={style:{width:"100%"}},$rt={style:{width:"100%"}},Wrt={style:{width:"100%"}},Krt={style:{width:"100%"}},jrt={style:{width:"100%"}},Qrt={style:{width:"100%"}},Xrt={style:{width:"100%"}},Zrt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Jrt={class:"flex flex-row"},eot={class:"flex flex-row"},tot=["value"],not={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},iot={class:"flex flex-row"},sot={class:"flex flex-row"},rot=["value"],oot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},aot={class:"flex flex-row"},lot={class:"flex flex-row"},cot=["value"],dot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},uot={class:"flex flex-row"},pot=["value"],fot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},_ot={class:"flex flex-row"},mot=["value"],hot={class:"flex flex-row"},got=["value"],bot={class:"flex flex-row"},yot={class:"flex flex-row"},Eot={class:"flex flex-row"},vot={class:"flex flex-row"},Sot={class:"flex flex-row"},Tot={class:"flex flex-row"},xot={class:"flex flex-row"},Cot={class:"flex flex-row"},wot={class:"flex flex-row"},Rot={class:"flex flex-row"},Aot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Mot={class:"flex flex-row"},Not={class:"flex flex-row"},Oot={class:"flex flex-row"},Iot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},kot={class:"flex flex-row"},Dot={class:"flex flex-row"},Lot={class:"flex flex-row"},Pot={class:"flex flex-row"},Fot={class:"flex flex-row"},Uot=["value"],Bot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Got={class:"flex flex-row"},Vot={class:"flex flex-row"},zot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Hot={class:"flex flex-row"},qot={class:"flex flex-row"},Yot={class:"flex flex-row"},$ot={class:"flex flex-row"},Wot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Kot={class:"flex flex-row"},jot={class:"flex flex-row"},Qot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Xot={class:"flex flex-row"},Zot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Jot={class:"flex flex-row"},eat={class:"flex flex-row"},tat={class:"flex flex-row"},nat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},iat={class:"flex flex-row"},sat={class:"flex flex-row"},rat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},oat={class:"flex flex-row"},aat={class:"flex flex-row"},lat=["value"],cat={class:"flex flex-row"},dat={class:"flex flex-row"},uat={class:"flex flex-row"},pat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},fat={class:"flex flex-row"},_at={class:"flex flex-row"},mat={class:"flex flex-row"},hat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},gat={class:"flex flex-row"},bat={class:"flex flex-row"},yat={class:"flex flex-row"},Eat={class:"flex flex-col align-bottom"},vat={class:"relative"},Sat={class:"absolute right-0"},Tat={class:"flex flex-row"},xat={class:"flex flex-row"},Cat={class:"flex flex-row"},wat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Rat={class:"flex flex-row"},Aat={class:"flex flex-row"},Mat={class:"flex flex-row"},Nat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Oat={class:"flex flex-row"},Iat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},kat={class:"flex flex-row"},Dat={class:"flex flex-row"},Lat={class:"flex flex-row"},Pat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Fat={class:"flex flex-row p-3"},Uat={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Bat={key:1,class:"mr-2"},Gat={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Vat={class:"flex gap-1 items-center"},zat=["src"],Hat={class:"font-bold font-large text-lg line-clamp-1"},qat={key:0,class:"mb-2"},Yat={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},$at={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Wat={class:"flex flex-row p-3"},Kat={class:"flex flex-row items-center"},jat={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Qat={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Xat={key:2,class:"mr-2"},Zat={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Jat={class:"flex gap-1 items-center"},elt=["src"],tlt={class:"font-bold font-large text-lg line-clamp-1"},nlt={class:"mx-2 mb-4"},ilt={class:"relative"},slt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},rlt={key:0},olt={key:1},alt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},llt={key:1,class:"mb-2"},clt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},dlt={class:"mb-2"},ult={class:"p-2"},plt={class:"mb-3"},flt={key:0},_lt={class:"mb-3"},mlt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},hlt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},glt={class:"w-full p-2"},blt={class:"flex justify-between mb-1"},ylt={class:"text-sm font-medium text-blue-700 dark:text-white"},Elt=["title"],vlt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Slt={class:"flex justify-between mb-1"},Tlt={class:"text-base font-medium text-blue-700 dark:text-white"},xlt={class:"text-sm font-medium text-blue-700 dark:text-white"},Clt={class:"flex flex-grow"},wlt={class:"flex flex-row flex-grow gap-3"},Rlt={class:"p-2 text-center grow"},Alt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Mlt={class:"flex flex-row p-3 items-center"},Nlt={key:0,class:"mr-2"},Olt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Ilt={key:1,class:"mr-2"},klt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},Dlt={key:0,class:"flex -space-x-4 items-center"},Llt={class:"group items-center flex flex-row"},Plt=["onClick"],Flt=["src","title"],Ult=["onClick"],Blt={class:"mx-2 mb-4"},Glt={class:"relative"},Vlt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},zlt={key:0},Hlt={key:1},qlt={key:0,class:"mx-2 mb-4"},Ylt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},$lt=["selected"],Wlt={key:0,class:"mb-2"},Klt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},jlt={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Qlt={class:"flex flex-row"},Xlt={class:"m-2"},Zlt={class:"flex flex-row gap-2 items-center"},Jlt={class:"m-2"},ect={class:"m-2"},tct={class:"flex flex-col align-bottom"},nct={class:"relative"},ict={class:"absolute right-0"},sct={class:"m-2"},rct={class:"flex flex-col align-bottom"},oct={class:"relative"},act={class:"absolute right-0"},lct={class:"m-2"},cct={class:"flex flex-col align-bottom"},dct={class:"relative"},uct={class:"absolute right-0"},pct={class:"m-2"},fct={class:"flex flex-col align-bottom"},_ct={class:"relative"},mct={class:"absolute right-0"},hct={class:"m-2"},gct={class:"flex flex-col align-bottom"},bct={class:"relative"},yct={class:"absolute right-0"},Ect={class:"m-2"},vct={class:"flex flex-col align-bottom"},Sct={class:"relative"},Tct={class:"absolute right-0"};function xct(n,e,t,i,s,r){const o=nt("StringListManager"),a=nt("Card"),c=nt("BindingEntry"),d=nt("RadioOptions"),u=nt("model-entry"),_=nt("personality-entry"),m=nt("AddModelDialog"),h=nt("ChoiceDialog");return T(),w(Be,null,[l("div",Rnt,[l("div",Ant,[s.showConfirmation?(T(),w("div",Mnt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=W(f=>s.showConfirmation=!1,["stop"]))},e[471]||(e[471]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=W(f=>r.save_configuration(),["stop"]))},e[472]||(e[472]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),s.showConfirmation?B("",!0):(T(),w("div",Nnt,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>r.reset_configuration())},e[473]||(e[473]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=W(f=>s.all_collapsed=!s.all_collapsed,["stop"]))},e[474]||(e[474]=[l("i",{"data-feather":"list"},null,-1)]))])),l("div",Ont,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=f=>r.api_get_req("clear_uploads").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[475]||(e[475]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>r.api_post_req("restart_program").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[476]||(e[476]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),s.has_updates?(T(),w("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>r.api_post_req("update_software").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[477]||(e[477]=[l("i",{"data-feather":"arrow-up-circle"},null,-1),l("i",{"data-feather":"alert-circle"},null,-1)]))):B("",!0),l("div",Int,[s.settingsChanged?(T(),w("div",knt,[s.isLoading?B("",!0):(T(),w("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=W(f=>r.applyConfiguration(),["stop"]))},e[478]||(e[478]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),l("i",{"data-feather":"check"})],-1)]))),s.isLoading?B("",!0):(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=W(f=>r.cancelConfiguration(),["stop"]))},e[479]||(e[479]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),l("i",{"data-feather":"x"})],-1)])))])):B("",!0),s.isLoading?(T(),w("div",Dnt,[l("p",null,$(s.loading_text),1),e[480]||(e[480]=l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[481]||(e[481]=l("span",{class:"sr-only"},"Loading...",-1))])):B("",!0)])])]),l("div",{class:Ue(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",Lnt,[l("div",Pnt,[l("button",{onClick:e[9]||(e[9]=W(f=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[482]||(e[482]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.sc_collapsed]]),k(l("div",null,e[483]||(e[483]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.sc_collapsed]]),e[486]||(e[486]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[487]||(e[487]=l("div",{class:"mr-2"},"|",-1)),l("div",Fnt,[l("div",Unt,[l("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(T(),w("div",Bnt,[(T(!0),w(Be,null,Xe(r.vramUsage.gpus,f=>(T(),w("div",{class:"flex gap-2 items-center",key:f},[l("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Gnt),l("p",Vnt,[l("div",null,$(r.computedFileSize(f.used_vram))+" / "+$(r.computedFileSize(f.total_vram))+" ("+$(f.percentage)+"%) ",1)])]))),128))])):B("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(T(),w("div",znt,[l("div",Hnt,[l("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,qnt),l("p",Ynt,[l("div",null,$(r.vramUsage.gpus.length)+"x ",1)])])])):B("",!0)]),e[484]||(e[484]=l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",$nt,[l("div",null,$(r.ram_usage)+" / "+$(r.ram_total_space)+" ("+$(r.ram_percent_usage)+"%)",1)]),e[485]||(e[485]=l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",Wnt,[l("div",null,$(r.disk_binding_models_usage)+" / "+$(r.disk_total_space)+" ("+$(r.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Ue([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Knt,[e[490]||(e[490]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[l("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),Ze(" CPU Ram usage: ")],-1)),l("div",jnt,[l("div",null,[e[488]||(e[488]=l("b",null,"Avaliable ram: ",-1)),Ze($(r.ram_available_space),1)]),l("div",null,[e[489]||(e[489]=l("b",null,"Ram usage: ",-1)),Ze(" "+$(r.ram_usage)+" / "+$(r.ram_total_space)+" ("+$(r.ram_percent_usage)+")% ",1)])]),l("div",Qnt,[l("div",Xnt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),l("div",Znt,[e[493]||(e[493]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Ze(" Disk usage: ")],-1)),l("div",Jnt,[l("div",null,[e[491]||(e[491]=l("b",null,"Avaliable disk space: ",-1)),Ze($(r.disk_available_space),1)]),l("div",null,[e[492]||(e[492]=l("b",null,"Disk usage: ",-1)),Ze(" "+$(r.disk_binding_models_usage)+" / "+$(r.disk_total_space)+" ("+$(r.disk_percent_usage)+"%)",1)])]),l("div",eit,[l("div",tit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(T(!0),w(Be,null,Xe(r.vramUsage.gpus,f=>(T(),w("div",{class:"mb-2",key:f},[l("label",nit,[l("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,iit),e[494]||(e[494]=Ze(" GPU usage: "))]),l("div",sit,[l("div",null,[e[495]||(e[495]=l("b",null,"Model: ",-1)),Ze($(f.gpu_model),1)]),l("div",null,[e[496]||(e[496]=l("b",null,"Avaliable vram: ",-1)),Ze($(this.computedFileSize(f.available_space)),1)]),l("div",null,[e[497]||(e[497]=l("b",null,"GPU usage: ",-1)),Ze(" "+$(this.computedFileSize(f.used_vram))+" / "+$(this.computedFileSize(f.total_vram))+" ("+$(f.percentage)+"%)",1)])]),l("div",rit,[l("div",oit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",ait,[l("div",lit,[l("button",{onClick:e[10]||(e[10]=W(f=>s.smartrouterconf_collapsed=!s.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[498]||(e[498]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.smartrouterconf_collapsed]]),k(l("div",null,e[499]||(e[499]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.smartrouterconf_collapsed]]),e[500]||(e[500]=l("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),l("div",{class:Ue([{hidden:s.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",cit,[z(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",dit,[l("tr",null,[e[501]||(e[501]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use Smart Routing:")],-1)),l("td",uit,[k(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=f=>r.configFile.use_smart_routing=f),onChange:e[12]||(e[12]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_smart_routing]])])]),l("tr",null,[e[502]||(e[502]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Restore model after smart routing:")],-1)),l("td",pit,[k(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=f=>r.configFile.restore_model_after_smart_routing=f),onChange:e[14]||(e[14]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.restore_model_after_smart_routing]])])]),l("tr",null,[e[503]||(e[503]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_router_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Router Model:")],-1)),l("td",fit,[k(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=f=>r.configFile.smart_routing_router_model=f),onChange:e[16]||(e[16]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.smart_routing_router_model]])])]),l("tr",null,[e[504]||(e[504]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_models_by_power",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Models by Power:")],-1)),l("td",_it,[z(o,{modelValue:r.configFile.smart_routing_models_by_power,"onUpdate:modelValue":e[17]||(e[17]=f=>r.configFile.smart_routing_models_by_power=f),onChange:e[18]||(e[18]=f=>s.settingsChanged=!0),placeholder:"Enter model name"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",mit,[l("div",hit,[l("button",{onClick:e[19]||(e[19]=W(f=>s.mainconf_collapsed=!s.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[505]||(e[505]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.mainconf_collapsed]]),k(l("div",null,e[506]||(e[506]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.mainconf_collapsed]]),e[507]||(e[507]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),l("div",{class:Ue([{hidden:s.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",git,[z(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",bit,[l("tr",null,[e[509]||(e[509]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),l("td",null,[l("label",yit,[l("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Eit)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(...f)=>r.uploadLogo&&r.uploadLogo(...f))},null,32)]),l("td",vit,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[21]||(e[21]=W(f=>r.resetLogo(),["stop"]))},e[508]||(e[508]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[511]||(e[511]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),l("td",Sit,[l("div",Tit,[k(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=f=>r.configFile.hardware_mode=f),onChange:e[23]||(e[23]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[510]||(e[510]=[l("option",{value:"cpu"},"CPU",-1),l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1),l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1),l("option",{value:"nvidia"},"NVIDIA",-1),l("option",{value:"amd-noavx"},"AMD (No AVX)",-1),l("option",{value:"amd"},"AMD",-1),l("option",{value:"apple-intel"},"Apple Intel",-1),l("option",{value:"apple-silicon"},"Apple Silicon",-1)]),544),[[It,r.configFile.hardware_mode]])])])]),l("tr",null,[e[512]||(e[512]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),l("td",xit,[k(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=f=>r.configFile.discussion_db_name=f),onChange:e[25]||(e[25]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.discussion_db_name]])])]),l("tr",null,[e[513]||(e[513]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),l("td",null,[l("div",Cit,[k(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=f=>r.configFile.copy_to_clipboard_add_all_details=f),onChange:e[27]||(e[27]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[e[514]||(e[514]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),l("td",null,[l("div",wit,[k(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=f=>r.configFile.auto_show_browser=f),onChange:e[29]||(e[29]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_show_browser]])])])]),l("tr",null,[e[515]||(e[515]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),l("td",null,[l("div",Rit,[k(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=f=>r.configFile.debug=f),onChange:e[31]||(e[31]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug]])])])]),l("tr",null,[e[516]||(e[516]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate showing the full prompt in console (for debug):")],-1)),l("td",null,[l("div",Ait,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=f=>r.configFile.debug_show_final_full_prompt=f),onChange:e[33]||(e[33]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[517]||(e[517]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),l("td",null,[l("div",Mit,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>r.configFile.debug_show_final_full_prompt=f),onChange:e[35]||(e[35]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[518]||(e[518]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),l("td",null,[l("div",Nit,[k(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>r.configFile.debug_show_chunks=f),onChange:e[37]||(e[37]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug_show_chunks]])])])]),l("tr",null,[e[519]||(e[519]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),l("td",null,[l("div",Oit,[k(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>r.configFile.debug_log_file_path=f),onChange:e[39]||(e[39]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.debug_log_file_path]])])])]),l("tr",null,[e[520]||(e[520]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),l("td",null,[l("div",Iit,[k(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>r.configFile.show_news_panel=f),onChange:e[41]||(e[41]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.show_news_panel]])])])]),l("tr",null,[e[521]||(e[521]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),l("td",null,[l("div",kit,[k(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>r.configFile.auto_save=f),onChange:e[43]||(e[43]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_save]])])])]),l("tr",null,[e[522]||(e[522]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),l("td",null,[l("div",Dit,[k(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>r.configFile.auto_update=f),onChange:e[45]||(e[45]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_update]])])])]),l("tr",null,[e[523]||(e[523]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),l("td",null,[l("div",Lit,[k(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>r.configFile.auto_title=f),onChange:e[47]||(e[47]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_title]])])])])])]),_:1}),z(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Pit,[l("tr",null,[e[525]||(e[525]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[l("select",{onChange:e[48]||(e[48]=(...f)=>r.handleTemplateSelection&&r.handleTemplateSelection(...f))},e[524]||(e[524]=[l("option",{value:"lollms"},"Lollms communication template",-1),l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),l("option",{value:"bare"},"Bare, useful when in chat mode",-1),l("option",{value:"llama3"},"LLama3 communication template",-1),l("option",{value:"mistral"},"Mistral communication template",-1),l("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)])]),l("tr",null,[e[526]||(e[526]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=f=>r.configFile.start_header_id_template=f),onChange:e[50]||(e[50]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.start_header_id_template]])])]),l("tr",null,[e[527]||(e[527]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=f=>r.configFile.end_header_id_template=f),onChange:e[52]||(e[52]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_header_id_template]])])]),l("tr",null,[e[528]||(e[528]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=f=>r.configFile.start_user_header_id_template=f),onChange:e[54]||(e[54]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.start_user_header_id_template]])])]),l("tr",null,[e[529]||(e[529]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=f=>r.configFile.end_user_header_id_template=f),onChange:e[56]||(e[56]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_user_header_id_template]])])]),l("tr",null,[e[530]||(e[530]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=f=>r.configFile.end_user_message_id_template=f),onChange:e[58]||(e[58]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_user_message_id_template]])])]),l("tr",null,[e[531]||(e[531]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=f=>r.configFile.start_ai_header_id_template=f),onChange:e[60]||(e[60]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.start_ai_header_id_template]])])]),l("tr",null,[e[532]||(e[532]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=f=>r.configFile.end_ai_header_id_template=f),onChange:e[62]||(e[62]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_ai_header_id_template]])])]),l("tr",null,[e[533]||(e[533]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=f=>r.configFile.end_ai_message_id_template=f),onChange:e[64]||(e[64]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_ai_message_id_template]])])]),l("tr",null,[e[534]||(e[534]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),l("td",null,[k(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=f=>r.configFile.separator_template=f),onChange:e[66]||(e[66]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.separator_template]])])]),l("tr",null,[e[535]||(e[535]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=f=>r.configFile.system_message_template=f),onChange:e[68]||(e[68]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.system_message_template]])])]),l("tr",null,[e[536]||(e[536]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),l("td",null,[l("div",{innerHTML:r.full_template},null,8,Fit)])]),l("tr",null,[e[537]||(e[537]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_continue_message",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"useful for chat models and repote models but can be less useful for instruct ones"},"Use continue message:")],-1)),l("td",Uit,[k(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=f=>r.configFile.use_continue_message=f),onChange:e[70]||(e[70]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_continue_message]])])])])]),_:1}),z(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Bit,[l("tr",null,[e[538]||(e[538]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),l("td",Git,[k(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=f=>r.configFile.user_name=f),onChange:e[72]||(e[72]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.user_name]])])]),l("tr",null,[e[539]||(e[539]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),l("td",Vit,[k(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=f=>r.configFile.user_description=f),onChange:e[74]||(e[74]=f=>s.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.user_description]])])]),l("tr",null,[e[540]||(e[540]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),l("td",zit,[k(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=f=>r.configFile.use_user_informations_in_discussion=f),onChange:e[76]||(e[76]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[e[541]||(e[541]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),l("td",Hit,[k(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=f=>r.configFile.use_model_name_in_discussions=f),onChange:e[78]||(e[78]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_model_name_in_discussions]])])]),l("tr",null,[e[543]||(e[543]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),l("td",null,[l("label",qit,[l("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,Yit)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(...f)=>r.uploadAvatar&&r.uploadAvatar(...f))},null,32)]),l("td",$it,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[80]||(e[80]=W(f=>r.resetAvatar(),["stop"]))},e[542]||(e[542]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[544]||(e[544]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),l("td",null,[l("div",Wit,[k(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=f=>r.configFile.use_user_name_in_discussions=f),onChange:e[82]||(e[82]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[e[545]||(e[545]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Kit,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=f=>r.configFile.max_n_predict=f),onChange:e[84]||(e[84]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.max_n_predict]])])]),l("tr",null,[e[546]||(e[546]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",jit,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=f=>r.configFile.max_n_predict=f),onChange:e[86]||(e[86]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.max_n_predict]])])])])]),_:1}),z(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Qit,[l("tr",null,[e[547]||(e[547]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),l("td",Xit,[k(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=f=>r.configFile.turn_on_code_execution=f),onChange:e[88]||(e[88]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_code_execution]])])]),l("tr",null,[e[548]||(e[548]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),l("td",Zit,[k(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=f=>r.configFile.turn_on_code_validation=f),onChange:e[90]||(e[90]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_code_validation]])])]),l("tr",null,[e[549]||(e[549]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),l("td",Jit,[k(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=f=>r.configFile.turn_on_setting_update_validation=f),onChange:e[92]||(e[92]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[e[550]||(e[550]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),l("td",est,[k(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=f=>r.configFile.turn_on_open_file_validation=f),onChange:e[94]||(e[94]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_open_file_validation]])])]),l("tr",null,[e[551]||(e[551]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),l("td",tst,[k(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=f=>r.configFile.turn_on_send_file_validation=f),onChange:e[96]||(e[96]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),z(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",nst,[l("tr",null,[e[552]||(e[552]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),l("td",null,[l("div",ist,[k(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=f=>r.configFile.activate_skills_lib=f),onChange:e[98]||(e[98]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_skills_lib]])])])]),l("tr",null,[e[553]||(e[553]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),l("td",sst,[k(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=f=>r.configFile.skills_lib_database_name=f),onChange:e[100]||(e[100]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.skills_lib_database_name]])])])])]),_:1}),z(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rst,[l("tr",null,[e[554]||(e[554]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),l("td",null,[l("div",ost,[k(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>r.configFile.pdf_latex_path=f),onChange:e[102]||(e[102]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.pdf_latex_path]])])])])])]),_:1}),z(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",ast,[l("tr",null,[e[555]||(e[555]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),l("td",null,[l("div",lst,[k(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>r.configFile.positive_boost=f),onChange:e[104]||(e[104]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.positive_boost]])])])]),l("tr",null,[e[556]||(e[556]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),l("td",null,[l("div",cst,[k(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=f=>r.configFile.negative_boost=f),onChange:e[106]||(e[106]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.negative_boost]])])])]),l("tr",null,[e[557]||(e[557]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),l("td",null,[l("div",dst,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=f=>r.configFile.fun_mode=f),onChange:e[108]||(e[108]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",ust,[l("div",pst,[l("button",{onClick:e[109]||(e[109]=W(f=>s.data_conf_collapsed=!s.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[558]||(e[558]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.data_conf_collapsed]]),k(l("div",null,e[559]||(e[559]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.data_conf_collapsed]]),e[560]||(e[560]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),l("div",{class:Ue([{hidden:s.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",fst,[l("tr",null,[e[561]||(e[561]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),l("td",_st,[(T(!0),w(Be,null,Xe(r.configFile.rag_databases,(f,y)=>(T(),w("div",{key:y,class:"flex items-center mb-2"},[k(l("input",{type:"text","onUpdate:modelValue":b=>r.configFile.rag_databases[y]=b,onChange:e[110]||(e[110]=b=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,mst),[[ue,r.configFile.rag_databases[y]]]),l("button",{onClick:b=>r.vectorize_folder(y),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,hst),l("button",{onClick:b=>r.select_folder(y),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,gst),l("button",{onClick:b=>r.removeDataSource(y),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,bst)]))),128)),l("button",{onClick:e[111]||(e[111]=(...f)=>r.addDataSource&&r.addDataSource(...f)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[e[563]||(e[563]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=f=>r.configFile.rag_vectorizer=f),onChange:e[113]||(e[113]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[562]||(e[562]=[l("option",{value:"semantic"},"Semantic Vectorizer",-1),l("option",{value:"tfidf"},"TFIDF Vectorizer",-1),l("option",{value:"openai"},"OpenAI Vectorizer",-1)]),544),[[It,r.configFile.rag_vectorizer]])])]),l("tr",null,[e[564]||(e[564]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=f=>r.configFile.rag_vectorizer_model=f),onChange:e[115]||(e[115]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:r.configFile.rag_vectorizer==="tfidf"},[r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Est,"sentence-transformers/bert-base-nli-mean-tokens")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",vst,"bert-base-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Sst,"bert-base-multilingual-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Tst,"bert-large-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",xst,"bert-large-uncased-whole-word-masking-finetuned-squad")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Cst,"distilbert-base-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",wst,"roberta-base")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Rst,"roberta-large")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Ast,"xlm-roberta-base")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Mst,"xlm-roberta-large")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Nst,"albert-base-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Ost,"albert-large-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Ist,"albert-xlarge-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",kst,"albert-xxlarge-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Dst,"sentence-transformers/all-MiniLM-L6-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Lst,"sentence-transformers/all-MiniLM-L12-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Pst,"sentence-transformers/all-distilroberta-v1")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Fst,"sentence-transformers/all-mpnet-base-v2")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Ust,"text-embedding-ada-002")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Bst,"text-embedding-babbage-001")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Gst,"text-embedding-curie-001")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Vst,"text-embedding-davinci-001")):B("",!0),r.configFile.rag_vectorizer==="tfidf"?(T(),w("option",zst,"No models available for TFIDF")):B("",!0)],40,yst),[[It,r.configFile.rag_vectorizer_model]])])]),l("tr",null,[e[565]||(e[565]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_openai_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key for open ai embedding method (if not provided I'll use OPENAI_API_KEY environment variable):")],-1)),l("td",null,[l("div",Hst,[k(l("input",{type:"text",id:"rag_vectorizer_openai_key",required:"","onUpdate:modelValue":e[116]||(e[116]=f=>r.configFile.rag_vectorizer_openai_key=f),onChange:e[117]||(e[117]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_vectorizer_openai_key]])])])]),l("tr",null,[e[566]||(e[566]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),l("td",null,[k(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[118]||(e[118]=f=>r.configFile.rag_chunk_size=f),onChange:e[119]||(e[119]=f=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.rag_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[120]||(e[120]=f=>r.configFile.rag_chunk_size=f),type:"number",onChange:e[121]||(e[121]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_chunk_size]])])]),l("tr",null,[e[567]||(e[567]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),l("td",null,[k(l("input",{id:"rag_overlap","onUpdate:modelValue":e[122]||(e[122]=f=>r.configFile.rag_overlap=f),onChange:e[123]||(e[123]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.rag_overlap]]),k(l("input",{"onUpdate:modelValue":e[124]||(e[124]=f=>r.configFile.rag_overlap=f),type:"number",onChange:e[125]||(e[125]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_overlap]])])]),l("tr",null,[e[568]||(e[568]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),l("td",null,[k(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[126]||(e[126]=f=>r.configFile.rag_n_chunks=f),onChange:e[127]||(e[127]=f=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.rag_n_chunks]]),k(l("input",{"onUpdate:modelValue":e[128]||(e[128]=f=>r.configFile.rag_n_chunks=f),type:"number",onChange:e[129]||(e[129]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_n_chunks]])])]),l("tr",null,[e[569]||(e[569]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[130]||(e[130]=f=>r.configFile.rag_clean_chunks=f),type:"checkbox",onChange:e[131]||(e[131]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_clean_chunks]])])]),l("tr",null,[e[570]||(e[570]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[132]||(e[132]=f=>r.configFile.rag_follow_subfolders=f),type:"checkbox",onChange:e[133]||(e[133]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_follow_subfolders]])])]),l("tr",null,[e[571]||(e[571]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[134]||(e[134]=f=>r.configFile.rag_check_new_files_at_startup=f),type:"checkbox",onChange:e[135]||(e[135]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[e[572]||(e[572]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[136]||(e[136]=f=>r.configFile.rag_preprocess_chunks=f),type:"checkbox",onChange:e[137]||(e[137]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_preprocess_chunks]])])]),l("tr",null,[e[573]||(e[573]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[138]||(e[138]=f=>r.configFile.rag_activate_multi_hops=f),type:"checkbox",onChange:e[139]||(e[139]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_activate_multi_hops]])])]),l("tr",null,[e[574]||(e[574]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[140]||(e[140]=f=>r.configFile.contextual_summary=f),type:"checkbox",onChange:e[141]||(e[141]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.contextual_summary]])])]),l("tr",null,[e[575]||(e[575]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_deactivate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Useful for very big contexts and global tasks that require the whole document"},"Use all the document content (No split):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[142]||(e[142]=f=>r.configFile.rag_deactivate=f),type:"checkbox",onChange:e[143]||(e[143]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_deactivate]])])])])]),_:1}),z(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",qst,[l("tr",null,[e[576]||(e[576]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),l("td",null,[l("div",Yst,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[144]||(e[144]=f=>r.configFile.data_vectorization_save_db=f),onChange:e[145]||(e[145]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[577]||(e[577]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),l("td",null,[l("div",$st,[k(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[146]||(e[146]=f=>r.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[147]||(e[147]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[e[578]||(e[578]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),l("td",null,[l("div",Wst,[k(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[148]||(e[148]=f=>r.configFile.data_vectorization_build_keys_words=f),onChange:e[149]||(e[149]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[e[579]||(e[579]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),l("td",null,[l("div",Kst,[k(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[150]||(e[150]=f=>r.configFile.data_vectorization_force_first_chunk=f),onChange:e[151]||(e[151]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[e[580]||(e[580]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),l("td",null,[l("div",jst,[k(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[152]||(e[152]=f=>r.configFile.data_vectorization_put_chunk_informations_into_context=f),onChange:e[153]||(e[153]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[e[582]||(e[582]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),l("td",null,[k(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[154]||(e[154]=f=>r.configFile.data_vectorization_method=f),onChange:e[155]||(e[155]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[581]||(e[581]=[l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1),l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1),l("option",{value:"model_embedding"},"Model Embedding",-1),l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)]),544),[[It,r.configFile.data_vectorization_method]])])]),l("tr",null,[e[583]||(e[583]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),l("td",Qst,[k(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[156]||(e[156]=f=>r.configFile.data_vectorization_sentense_transformer_model=f),onChange:e[157]||(e[157]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[e[585]||(e[585]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),l("td",null,[k(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[158]||(e[158]=f=>r.configFile.data_visualization_method=f),onChange:e[159]||(e[159]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[584]||(e[584]=[l("option",{value:"PCA"},"PCA",-1),l("option",{value:"TSNE"},"TSNE",-1)]),544),[[It,r.configFile.data_visualization_method]])])]),l("tr",null,[e[586]||(e[586]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),l("td",null,[l("div",Xst,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[160]||(e[160]=f=>r.configFile.data_vectorization_save_db=f),onChange:e[161]||(e[161]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[587]||(e[587]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=f=>r.configFile.data_vectorization_chunk_size=f),onChange:e[163]||(e[163]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.data_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[164]||(e[164]=f=>r.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[165]||(e[165]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[e[588]||(e[588]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=f=>r.configFile.data_vectorization_overlap_size=f),onChange:e[167]||(e[167]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.data_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[168]||(e[168]=f=>r.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[169]||(e[169]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[e[589]||(e[589]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=f=>r.configFile.data_vectorization_nb_chunks=f),onChange:e[171]||(e[171]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.data_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[172]||(e[172]=f=>r.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[173]||(e[173]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",Zst,[l("div",Jst,[l("button",{onClick:e[174]||(e[174]=W(f=>s.internet_conf_collapsed=!s.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[590]||(e[590]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.internet_conf_collapsed]]),k(l("div",null,e[591]||(e[591]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.internet_conf_collapsed]]),e[592]||(e[592]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),l("div",{class:Ue([{hidden:s.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",ert,[l("tr",null,[e[593]||(e[593]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate automatic internet search (for every prompt):")],-1)),l("td",null,[l("div",trt,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[175]||(e[175]=f=>r.configFile.activate_internet_search=f),onChange:e[176]||(e[176]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_internet_search]])])])]),l("tr",null,[e[594]||(e[594]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),l("td",null,[l("div",nrt,[k(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[177]||(e[177]=f=>r.configFile.activate_internet_pages_judgement=f),onChange:e[178]||(e[178]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[e[595]||(e[595]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),l("td",null,[l("div",irt,[k(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[179]||(e[179]=f=>r.configFile.internet_quick_search=f),onChange:e[180]||(e[180]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.internet_quick_search]])])])]),l("tr",null,[e[596]||(e[596]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),l("td",null,[l("div",srt,[k(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[181]||(e[181]=f=>r.configFile.internet_activate_search_decision=f),onChange:e[182]||(e[182]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.internet_activate_search_decision]])])])]),l("tr",null,[e[597]||(e[597]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),l("td",null,[l("div",rrt,[k(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[183]||(e[183]=f=>r.configFile.internet_vectorization_chunk_size=f),onChange:e[184]||(e[184]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[185]||(e[185]=f=>r.configFile.internet_vectorization_chunk_size=f),type:"number",onChange:e[186]||(e[186]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[e[598]||(e[598]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),l("td",null,[l("div",ort,[k(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[187]||(e[187]=f=>r.configFile.internet_vectorization_overlap_size=f),onChange:e[188]||(e[188]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[189]||(e[189]=f=>r.configFile.internet_vectorization_overlap_size=f),type:"number",onChange:e[190]||(e[190]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[e[599]||(e[599]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),l("td",null,[l("div",art,[k(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[191]||(e[191]=f=>r.configFile.internet_vectorization_nb_chunks=f),onChange:e[192]||(e[192]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[193]||(e[193]=f=>r.configFile.internet_vectorization_nb_chunks=f),type:"number",onChange:e[194]||(e[194]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[e[600]||(e[600]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),l("td",null,[l("div",lrt,[k(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[195]||(e[195]=f=>r.configFile.internet_nb_search_pages=f),onChange:e[196]||(e[196]=f=>s.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_nb_search_pages]]),k(l("input",{"onUpdate:modelValue":e[197]||(e[197]=f=>r.configFile.internet_nb_search_pages=f),type:"number",onChange:e[198]||(e[198]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",crt,[l("div",drt,[l("button",{onClick:e[199]||(e[199]=W(f=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[601]||(e[601]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.servers_conf_collapsed]]),k(l("div",null,e[602]||(e[602]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.servers_conf_collapsed]]),e[603]||(e[603]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),l("div",{class:Ue([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",urt,[l("tr",null,[e[605]||(e[605]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),l("td",prt,[k(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[200]||(e[200]=f=>r.configFile.active_tts_service=f),onChange:e[201]||(e[201]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[604]||(e[604]=[l("option",{value:"None"},"None",-1),l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),l("option",{value:"xtts"},"XTTS",-1),l("option",{value:"parler-tts"},"Parler-TTS",-1),l("option",{value:"openai_tts"},"Open AI TTS",-1),l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),l("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[It,r.configFile.active_tts_service]])])]),l("tr",null,[e[607]||(e[607]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),l("td",frt,[k(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[202]||(e[202]=f=>r.configFile.active_stt_service=f),onChange:e[203]||(e[203]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[606]||(e[606]=[l("option",{value:"None"},"None",-1),l("option",{value:"whisper"},"Whisper",-1),l("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[It,r.configFile.active_stt_service]])])]),e[614]||(e[614]=l("tr",null,null,-1)),l("tr",null,[e[609]||(e[609]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),l("td",_rt,[k(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[204]||(e[204]=f=>r.configFile.active_tti_service=f),onChange:e[205]||(e[205]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[608]||(e[608]=[l("option",{value:"None"},"None",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"diffusers_client"},"Diffusers Client",-1),l("option",{value:"autosd"},"AUTO1111's SD",-1),l("option",{value:"dall-e"},"Open AI DALL-E",-1),l("option",{value:"midjourney"},"Midjourney",-1),l("option",{value:"comfyui"},"Comfyui",-1),l("option",{value:"fooocus"},"Fooocus",-1)]),544),[[It,r.configFile.active_tti_service]])])]),l("tr",null,[e[611]||(e[611]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),l("td",mrt,[k(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[206]||(e[206]=f=>r.configFile.active_ttm_service=f),onChange:e[207]||(e[207]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[610]||(e[610]=[l("option",{value:"None"},"None",-1),l("option",{value:"musicgen"},"Music Gen",-1)]),544),[[It,r.configFile.active_ttm_service]])])]),l("tr",null,[e[613]||(e[613]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttv_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTV Service:")],-1)),l("td",hrt,[k(l("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[208]||(e[208]=f=>r.configFile.active_ttv_service=f),onChange:e[209]||(e[209]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[612]||(e[612]=[l("option",{value:"None"},"None",-1),l("option",{value:"cog_video_x"},"Cog Video X",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"lumalab"},"Lumalab",-1)]),544),[[It,r.configFile.active_ttv_service]])])])])]),_:1}),z(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",grt,[l("tr",null,[e[615]||(e[615]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),l("td",null,[l("div",brt,[k(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=f=>r.configFile.use_negative_prompt=f),onChange:e[211]||(e[211]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_negative_prompt]])])])]),l("tr",null,[e[616]||(e[616]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),l("td",null,[l("div",yrt,[k(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=f=>r.configFile.use_ai_generated_negative_prompt=f),onChange:e[213]||(e[213]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[e[617]||(e[617]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),l("td",null,[l("div",Ert,[k(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=f=>r.configFile.negative_prompt_generation_prompt=f),onChange:e[215]||(e[215]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[e[618]||(e[618]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),l("td",null,[l("div",vrt,[k(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[216]||(e[216]=f=>r.configFile.default_negative_prompt=f),onChange:e[217]||(e[217]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.default_negative_prompt]])])])])])]),_:1}),z(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Srt,[l("tr",null,[e[619]||(e[619]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),l("td",Trt,[k(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[218]||(e[218]=f=>r.configFile.stt_listening_threshold=f),onChange:e[219]||(e[219]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_listening_threshold]])])]),l("tr",null,[e[620]||(e[620]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),l("td",xrt,[k(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[220]||(e[220]=f=>r.configFile.stt_silence_duration=f),onChange:e[221]||(e[221]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_silence_duration]])])]),l("tr",null,[e[621]||(e[621]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),l("td",Crt,[k(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[222]||(e[222]=f=>r.configFile.stt_sound_threshold_percentage=f),onChange:e[223]||(e[223]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[e[622]||(e[622]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),l("td",wrt,[k(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[224]||(e[224]=f=>r.configFile.stt_gain=f),onChange:e[225]||(e[225]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_gain]])])]),l("tr",null,[e[623]||(e[623]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),l("td",Rrt,[k(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[226]||(e[226]=f=>r.configFile.stt_rate=f),onChange:e[227]||(e[227]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_rate]])])]),l("tr",null,[e[624]||(e[624]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),l("td",Art,[k(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[228]||(e[228]=f=>r.configFile.stt_channels=f),onChange:e[229]||(e[229]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_channels]])])]),l("tr",null,[e[625]||(e[625]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),l("td",Mrt,[k(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[230]||(e[230]=f=>r.configFile.stt_buffer_size=f),onChange:e[231]||(e[231]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_buffer_size]])])]),l("tr",null,[e[626]||(e[626]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),l("td",null,[l("div",Nrt,[k(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[232]||(e[232]=f=>r.configFile.stt_activate_word_detection=f),onChange:e[233]||(e[233]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.stt_activate_word_detection]])])])]),l("tr",null,[e[627]||(e[627]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),l("td",null,[l("div",Ort,[k(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[234]||(e[234]=f=>r.configFile.stt_word_detection_file=f),onChange:e[235]||(e[235]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_word_detection_file]])])])])])]),_:1}),z(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Irt,[l("tr",null,[e[628]||(e[628]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),l("td",krt,[k(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[236]||(e[236]=f=>r.configFile.stt_input_device=f),onChange:e[237]||(e[237]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.snd_input_devices,(f,y)=>(T(),w("option",{key:f,value:s.snd_input_devices_indexes[y]},$(f),9,Drt))),128))],544),[[It,r.configFile.stt_input_device]])])]),l("tr",null,[e[629]||(e[629]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),l("td",Lrt,[k(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[238]||(e[238]=f=>r.configFile.tts_output_device=f),onChange:e[239]||(e[239]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.snd_output_devices,(f,y)=>(T(),w("option",{key:f,value:s.snd_output_devices_indexes[y]},$(f),9,Prt))),128))],544),[[It,r.configFile.tts_output_device]])])])])]),_:1}),z(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Frt,[l("tr",null,[e[630]||(e[630]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),l("td",Urt,[k(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[240]||(e[240]=f=>r.configFile.host=f),onChange:e[241]||(e[241]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.host]])])]),l("tr",null,[e[631]||(e[631]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),l("td",Brt,[z(o,{modelValue:r.configFile.lollms_access_keys,"onUpdate:modelValue":e[242]||(e[242]=f=>r.configFile.lollms_access_keys=f),onChange:e[243]||(e[243]=f=>s.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[e[632]||(e[632]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),l("td",Grt,[k(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[244]||(e[244]=f=>r.configFile.port=f),onChange:e[245]||(e[245]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.port]])])]),l("tr",null,[e[633]||(e[633]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"headless_server_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode:")],-1)),l("td",Vrt,[k(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[246]||(e[246]=f=>r.configFile.headless_server_mode=f),onChange:e[247]||(e[247]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.headless_server_mode]])])]),l("tr",null,[e[634]||(e[634]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),l("td",zrt,[k(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[248]||(e[248]=f=>r.configFile.activate_lollms_server=f),onChange:e[249]||(e[249]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_server]])])]),l("tr",null,[e[635]||(e[635]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_rag_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms RAG server:")],-1)),l("td",Hrt,[k(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[250]||(e[250]=f=>r.configFile.activate_lollms_rag_server=f),onChange:e[251]||(e[251]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_rag_server]])])]),l("tr",null,[e[636]||(e[636]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tts_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTS server:")],-1)),l("td",qrt,[k(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[252]||(e[252]=f=>r.configFile.activate_lollms_tts_server=f),onChange:e[253]||(e[253]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_tts_server]])])]),l("tr",null,[e[637]||(e[637]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_stt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms STT server:")],-1)),l("td",Yrt,[k(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=f=>r.configFile.activate_lollms_stt_server=f),onChange:e[255]||(e[255]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_stt_server]])])]),l("tr",null,[e[638]||(e[638]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tti_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTI server:")],-1)),l("td",$rt,[k(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[256]||(e[256]=f=>r.configFile.activate_lollms_tti_server=f),onChange:e[257]||(e[257]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_tti_server]])])]),l("tr",null,[e[639]||(e[639]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_itt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms ITT server:")],-1)),l("td",Wrt,[k(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[258]||(e[258]=f=>r.configFile.activate_lollms_itt_server=f),onChange:e[259]||(e[259]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_itt_server]])])]),l("tr",null,[e[640]||(e[640]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_ttm_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTM server:")],-1)),l("td",Krt,[k(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[260]||(e[260]=f=>r.configFile.activate_lollms_ttm_server=f),onChange:e[261]||(e[261]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[e[641]||(e[641]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),l("td",jrt,[k(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=f=>r.configFile.activate_ollama_emulator=f),onChange:e[263]||(e[263]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_ollama_emulator]])])]),l("tr",null,[e[642]||(e[642]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),l("td",Qrt,[k(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=f=>r.configFile.activate_openai_emulator=f),onChange:e[265]||(e[265]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_openai_emulator]])])]),l("tr",null,[e[643]||(e[643]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),l("td",Xrt,[k(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[266]||(e[266]=f=>r.configFile.activate_mistralai_emulator=f),onChange:e[267]||(e[267]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),z(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Zrt,[l("tr",null,[e[644]||(e[644]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),l("td",null,[l("div",Jrt,[k(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[268]||(e[268]=f=>r.configFile.activate_audio_infos=f),onChange:e[269]||(e[269]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_audio_infos]])])])]),l("tr",null,[e[645]||(e[645]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),l("td",null,[l("div",eot,[k(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[270]||(e[270]=f=>r.configFile.audio_auto_send_input=f),onChange:e[271]||(e[271]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.audio_auto_send_input]])])])]),l("tr",null,[e[646]||(e[646]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),l("td",null,[k(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[272]||(e[272]=f=>r.configFile.audio_silenceTimer=f),onChange:e[273]||(e[273]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.audio_silenceTimer]]),k(l("input",{"onUpdate:modelValue":e[274]||(e[274]=f=>r.configFile.audio_silenceTimer=f),onChange:e[275]||(e[275]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.audio_silenceTimer]])])]),l("tr",null,[e[647]||(e[647]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),l("td",null,[k(l("select",{id:"audio_in_language","onUpdate:modelValue":e[276]||(e[276]=f=>r.configFile.audio_in_language=f),onChange:e[277]||(e[277]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(r.audioLanguages,f=>(T(),w("option",{key:f.code,value:f.code},$(f.name),9,tot))),128))],544),[[It,r.configFile.audio_in_language]])])])])]),_:1}),z(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",not,[l("tr",null,[e[648]||(e[648]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),l("td",null,[l("div",iot,[k(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[278]||(e[278]=f=>r.configFile.whisper_activate=f),onChange:e[279]||(e[279]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.whisper_activate]])])])]),l("tr",null,[e[649]||(e[649]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}})],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[280]||(e[280]=(...f)=>r.reinstallWhisperService&&r.reinstallWhisperService(...f))},"install whisper")])]),l("tr",null,[e[650]||(e[650]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),l("td",null,[l("div",sot,[k(l("select",{id:"whisper_model","onUpdate:modelValue":e[281]||(e[281]=f=>r.configFile.whisper_model=f),onChange:e[282]||(e[282]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(r.whisperModels,f=>(T(),w("option",{key:f,value:f},$(f),9,rot))),128))],544),[[It,r.configFile.whisper_model]])])])])])]),_:1}),z(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",oot,[l("tr",null,[e[651]||(e[651]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),l("td",null,[l("div",aot,[k(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[283]||(e[283]=f=>r.configFile.openai_whisper_key=f),onChange:e[284]||(e[284]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.openai_whisper_key]])])])]),l("tr",null,[e[652]||(e[652]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),l("td",null,[l("div",lot,[k(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[285]||(e[285]=f=>r.configFile.openai_whisper_model=f),onChange:e[286]||(e[286]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(r.openaiWhisperModels,f=>(T(),w("option",{key:f,value:f},$(f),9,cot))),128))],544),[[It,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),z(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",dot,[l("tr",null,[e[653]||(e[653]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),l("td",null,[l("div",uot,[k(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[287]||(e[287]=f=>r.configFile.auto_speak=f),onChange:e[288]||(e[288]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_speak]])])])]),l("tr",null,[e[654]||(e[654]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),l("td",null,[k(l("input",{id:"audio_pitch","onUpdate:modelValue":e[289]||(e[289]=f=>r.configFile.audio_pitch=f),onChange:e[290]||(e[290]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.audio_pitch]]),k(l("input",{"onUpdate:modelValue":e[291]||(e[291]=f=>r.configFile.audio_pitch=f),onChange:e[292]||(e[292]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.audio_pitch]])])]),l("tr",null,[e[655]||(e[655]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),l("td",null,[k(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[293]||(e[293]=f=>r.configFile.audio_out_voice=f),onChange:e[294]||(e[294]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.audioVoices,f=>(T(),w("option",{key:f.name,value:f.name},$(f.name),9,pot))),128))],544),[[It,r.configFile.audio_out_voice]])])])])]),_:1}),z(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",fot,[l("tr",null,[e[656]||(e[656]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[295]||(e[295]=(...f)=>r.reinstallXTTSService&&r.reinstallXTTSService(...f))},"install xtts service")])]),l("tr",null,[e[657]||(e[657]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("div",_ot,[k(l("select",{"onUpdate:modelValue":e[296]||(e[296]=f=>r.xtts_current_language=f),onChange:e[297]||(e[297]=f=>s.settingsChanged=!0)},[(T(!0),w(Be,null,Xe(s.voice_languages,(f,y)=>(T(),w("option",{key:y,value:f},$(y),9,mot))),128))],544),[[It,r.xtts_current_language]])])])]),l("tr",null,[e[658]||(e[658]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),l("td",null,[l("div",hot,[k(l("select",{"onUpdate:modelValue":e[298]||(e[298]=f=>r.xtts_current_voice=f),onChange:e[299]||(e[299]=f=>s.settingsChanged=!0)},[(T(!0),w(Be,null,Xe(s.voices,f=>(T(),w("option",{key:f,value:f},$(f),9,got))),128))],544),[[It,r.xtts_current_voice]])])])]),l("tr",null,[e[659]||(e[659]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),l("td",null,[l("div",bot,[k(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[300]||(e[300]=f=>r.configFile.xtts_freq=f),onChange:e[301]||(e[301]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ue,r.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[e[660]||(e[660]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),l("td",null,[l("div",yot,[k(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[302]||(e[302]=f=>r.configFile.auto_read=f),onChange:e[303]||(e[303]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_read]])])])]),l("tr",null,[e[661]||(e[661]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),l("td",null,[l("div",Eot,[k(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[304]||(e[304]=f=>r.configFile.xtts_stream_chunk_size=f),onChange:e[305]||(e[305]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[e[662]||(e[662]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),l("td",null,[l("div",vot,[k(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[306]||(e[306]=f=>r.configFile.xtts_temperature=f),onChange:e[307]||(e[307]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ue,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[e[663]||(e[663]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),l("td",null,[l("div",Sot,[k(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[308]||(e[308]=f=>r.configFile.xtts_length_penalty=f),onChange:e[309]||(e[309]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ue,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[664]||(e[664]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),l("td",null,[l("div",Tot,[k(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[310]||(e[310]=f=>r.configFile.xtts_repetition_penalty=f),onChange:e[311]||(e[311]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ue,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[665]||(e[665]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),l("td",null,[l("div",xot,[k(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[312]||(e[312]=f=>r.configFile.xtts_top_k=f),onChange:e[313]||(e[313]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[e[666]||(e[666]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),l("td",null,[l("div",Cot,[k(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[314]||(e[314]=f=>r.configFile.xtts_top_p=f),onChange:e[315]||(e[315]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[e[667]||(e[667]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),l("td",null,[l("div",wot,[k(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[316]||(e[316]=f=>r.configFile.xtts_speed=f),onChange:e[317]||(e[317]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ue,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[e[668]||(e[668]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),l("td",null,[l("div",Rot,[k(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[318]||(e[318]=f=>r.configFile.enable_text_splitting=f),onChange:e[319]||(e[319]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_text_splitting]])])])])])]),_:1}),z(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Aot,[l("tr",null,[e[669]||(e[669]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),l("td",null,[l("div",Mot,[k(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=f=>r.configFile.openai_tts_key=f),onChange:e[321]||(e[321]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.openai_tts_key]])])])]),l("tr",null,[e[671]||(e[671]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),l("td",null,[l("div",Not,[k(l("select",{"onUpdate:modelValue":e[322]||(e[322]=f=>r.configFile.openai_tts_model=f),onChange:e[323]||(e[323]=f=>s.settingsChanged=!0)},e[670]||(e[670]=[l("option",null," tts-1 ",-1),l("option",null," tts-2 ",-1)]),544),[[It,r.configFile.openai_tts_model]])])])]),l("tr",null,[e[673]||(e[673]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),l("td",null,[l("div",Oot,[k(l("select",{"onUpdate:modelValue":e[324]||(e[324]=f=>r.configFile.openai_tts_voice=f),onChange:e[325]||(e[325]=f=>s.settingsChanged=!0)},e[672]||(e[672]=[l("option",null," alloy ",-1),l("option",null," echo ",-1),l("option",null," fable ",-1),l("option",null," nova ",-1),l("option",null," shimmer ",-1)]),544),[[It,r.configFile.openai_tts_voice]])])])])])]),_:1}),z(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Iot,[l("tr",null,[e[674]||(e[674]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),l("td",null,[l("div",kot,[k(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[326]||(e[326]=f=>r.configFile.elevenlabs_tts_key=f),onChange:e[327]||(e[327]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[e[675]||(e[675]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),l("td",null,[l("div",Dot,[k(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[328]||(e[328]=f=>r.configFile.elevenlabs_tts_model_id=f),onChange:e[329]||(e[329]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[e[676]||(e[676]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),l("td",null,[l("div",Lot,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[330]||(e[330]=f=>r.configFile.elevenlabs_tts_voice_stability=f),onChange:e[331]||(e[331]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ue,r.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[e[677]||(e[677]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),l("td",null,[l("div",Pot,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[332]||(e[332]=f=>r.configFile.elevenlabs_tts_voice_boost=f),onChange:e[333]||(e[333]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ue,r.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[e[678]||(e[678]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),l("td",null,[l("div",Fot,[k(l("select",{"onUpdate:modelValue":e[334]||(e[334]=f=>r.configFile.elevenlabs_tts_voice_id=f),onChange:e[335]||(e[335]=f=>s.settingsChanged=!0)},[(T(!0),w(Be,null,Xe(s.voices,f=>(T(),w("option",{key:f.voice_id,value:f.voice_id},$(f.name),9,Uot))),128))],544),[[It,r.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),z(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Bot,[l("tr",null,[e[679]||(e[679]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),l("td",null,[l("div",Got,[k(l("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[336]||(e[336]=f=>r.configFile.fish_tts_key=f),onChange:e[337]||(e[337]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.fish_tts_key]])])])]),l("tr",null,[e[680]||(e[680]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),l("td",null,[l("div",Vot,[k(l("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[338]||(e[338]=f=>r.configFile.fish_tts_voice=f),onChange:e[339]||(e[339]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),z(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",zot,[l("tr",null,[e[682]||(e[682]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),l("td",null,[l("div",Hot,[k(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[340]||(e[340]=f=>r.configFile.enable_sd_service=f),onChange:e[341]||(e[341]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[681]||(e[681]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[684]||(e[684]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),l("td",null,[l("div",qot,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[343]||(e[343]=(...f)=>r.reinstallSDService&&r.reinstallSDService(...f))},"install sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(...f)=>r.upgradeSDService&&r.upgradeSDService(...f))},"upgrade sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[345]||(e[345]=(...f)=>r.startSDService&&r.startSDService(...f))},"start sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[346]||(e[346]=(...f)=>r.showSD&&r.showSD(...f))},"show sd ui"),e[683]||(e[683]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1))])]),l("td",null,[l("div",Yot,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...f)=>r.reinstallSDService&&r.reinstallSDService(...f))},"install sd service")])])]),l("tr",null,[e[685]||(e[685]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),l("td",null,[l("div",$ot,[k(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[348]||(e[348]=f=>r.configFile.sd_base_url=f),onChange:e[349]||(e[349]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.sd_base_url]])])])])])]),_:1}),z(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Wot,[l("tr",null,[e[687]||(e[687]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),l("td",null,[l("div",Kot,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[350]||(e[350]=(...f)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(...f))},"install diffusers service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[351]||(e[351]=(...f)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(...f))},"upgrade diffusers service"),e[686]||(e[686]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1))])])]),l("tr",null,[e[688]||(e[688]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),l("td",null,[l("div",jot,[k(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[352]||(e[352]=f=>r.configFile.diffusers_model=f),onChange:e[353]||(e[353]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.diffusers_model]])])]),e[689]||(e[689]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Qot,[l("tr",null,[e[690]||(e[690]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),l("td",null,[l("div",Xot,[k(l("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[354]||(e[354]=f=>r.configFile.diffusers_client_base_url=f),onChange:e[355]||(e[355]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.diffusers_client_base_url]])])]),e[691]||(e[691]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Zot,[l("tr",null,[e[692]||(e[692]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),l("td",null,[l("div",Jot,[k(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[356]||(e[356]=f=>r.configFile.midjourney_key=f),onChange:e[357]||(e[357]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.midjourney_key]])])])]),l("tr",null,[e[693]||(e[693]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),l("td",null,[l("div",eat,[k(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[358]||(e[358]=f=>r.configFile.midjourney_timeout=f),onChange:e[359]||(e[359]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.midjourney_timeout]])])])]),l("tr",null,[e[694]||(e[694]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),l("td",null,[l("div",tat,[k(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[360]||(e[360]=f=>r.configFile.midjourney_retries=f),onChange:e[361]||(e[361]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.midjourney_retries]])])])])])]),_:1}),z(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",nat,[l("tr",null,[e[695]||(e[695]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),l("td",null,[l("div",iat,[k(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[362]||(e[362]=f=>r.configFile.dall_e_key=f),onChange:e[363]||(e[363]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.dall_e_key]])])])]),l("tr",null,[e[697]||(e[697]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),l("td",null,[l("div",sat,[k(l("select",{"onUpdate:modelValue":e[364]||(e[364]=f=>r.configFile.dall_e_generation_engine=f),onChange:e[365]||(e[365]=f=>s.settingsChanged=!0)},e[696]||(e[696]=[l("option",null," dall-e-2 ",-1),l("option",null," dall-e-3 ",-1)]),544),[[It,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),z(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rat,[l("tr",null,[e[699]||(e[699]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),l("td",null,[l("div",oat,[k(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[366]||(e[366]=f=>r.configFile.enable_comfyui_service=f),onChange:e[367]||(e[367]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[368]||(e[368]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[698]||(e[698]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[700]||(e[700]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),l("td",null,[l("div",aat,[k(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[369]||(e[369]=f=>r.configFile.comfyui_model=f),onChange:e[370]||(e[370]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.comfyui_models,(f,y)=>(T(),w("option",{key:f,value:f},$(f),9,lat))),128))],544),[[It,r.configFile.comfyui_model]])])])]),l("tr",null,[e[702]||(e[702]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),l("td",null,[l("div",cat,[k(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[371]||(e[371]=f=>r.configFile.comfyui_model=f),onChange:e[372]||(e[372]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[373]||(e[373]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[701]||(e[701]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[704]||(e[704]=l("td",{style:{"min-width":"200px"}},null,-1)),l("td",null,[l("div",dat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[374]||(e[374]=(...f)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(...f))},"install comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[375]||(e[375]=(...f)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(...f))},"upgrade comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[376]||(e[376]=(...f)=>r.startComfyUIService&&r.startComfyUIService(...f))},"start comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[377]||(e[377]=(...f)=>r.showComfyui&&r.showComfyui(...f))},"show comfyui"),e[703]||(e[703]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1))])])]),l("tr",null,[e[705]||(e[705]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),l("td",null,[l("div",uat,[k(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[378]||(e[378]=f=>r.configFile.comfyui_base_url=f),onChange:e[379]||(e[379]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",pat,[l("tr",null,[e[707]||(e[707]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),l("td",null,[l("div",fat,[k(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[380]||(e[380]=f=>r.configFile.enable_ollama_service=f),onChange:e[381]||(e[381]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[382]||(e[382]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding.
+`,"<br>")}},rendered_models_zoo:{get(){return this.searchModel?this.show_only_installed_models?this.modelsFiltered.filter(n=>n.isInstalled===!0):this.modelsFiltered.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)):(console.log("this.models_zoo"),console.log(this.models_zoo),console.log(this.models_zoo_initialLoadCount),this.show_only_installed_models?this.models_zoo.filter(n=>n.isInstalled===!0):this.models_zoo.slice(0,Math.min(this.models_zoo.length,this.models_zoo_initialLoadCount)))}},imgBinding:{get(){if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},imgModel:{get(){try{let n=this.$store.state.modelsZoo.findIndex(e=>e.name==this.$store.state.selectedModel);return n>=0?(console.log(`model avatar : ${this.$store.state.modelsZoo[n].icon}`),this.$store.state.modelsZoo[n].icon):$n}catch{console.log("error")}if(!this.isMounted)return $n;try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(n=>n.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return $n}}},isReady:{get(){return this.$store.state.ready}},audio_out_voice:{get(){return this.$store.state.config.audio_out_voice},set(n){this.$store.state.config.audio_out_voice=n}},openaiWhisperModels(){return["whisper-1"]},whisperModels(){return["tiny.en","tiny","base.en","base","small.en","small","medium.en","medium","large-v1","large-v2","large-v3","large"]},audioLanguages(){return[{code:"en-US",name:"English (US)"},{code:"en-GB",name:"English (UK)"},{code:"es-ES",name:"Spanish (Spain)"},{code:"es-MX",name:"Spanish (Mexico)"},{code:"fr-FR",name:"French (France)"},{code:"fr-CA",name:"French (Canada)"},{code:"de-DE",name:"German (Germany)"},{code:"it-IT",name:"Italian (Italy)"},{code:"pt-BR",name:"Portuguese (Brazil)"},{code:"pt-PT",name:"Portuguese (Portugal)"},{code:"ru-RU",name:"Russian (Russia)"},{code:"zh-CN",name:"Chinese (China)"},{code:"ja-JP",name:"Japanese (Japan)"},{code:"ar-SA",name:"Arabic (Saudi Arabia)"},{code:"tr-TR",name:"Turkish (Turkey)"},{code:"ms-MY",name:"Malay (Malaysia)"},{code:"ko-KR",name:"Korean (South Korea)"},{code:"nl-NL",name:"Dutch (Netherlands)"},{code:"sv-SE",name:"Swedish (Sweden)"},{code:"da-DK",name:"Danish (Denmark)"},{code:"fi-FI",name:"Finnish (Finland)"},{code:"no-NO",name:"Norwegian (Norway)"},{code:"pl-PL",name:"Polish (Poland)"},{code:"el-GR",name:"Greek (Greece)"},{code:"hu-HU",name:"Hungarian (Hungary)"},{code:"cs-CZ",name:"Czech (Czech Republic)"},{code:"th-TH",name:"Thai (Thailand)"},{code:"hi-IN",name:"Hindi (India)"},{code:"he-IL",name:"Hebrew (Israel)"},{code:"id-ID",name:"Indonesian (Indonesia)"},{code:"vi-VN",name:"Vietnamese (Vietnam)"},{code:"uk-UA",name:"Ukrainian (Ukraine)"},{code:"ro-RO",name:"Romanian (Romania)"},{code:"bg-BG",name:"Bulgarian (Bulgaria)"},{code:"hr-HR",name:"Croatian (Croatia)"},{code:"sr-RS",name:"Serbian (Serbia)"},{code:"sk-SK",name:"Slovak (Slovakia)"},{code:"sl-SI",name:"Slovenian (Slovenia)"},{code:"et-EE",name:"Estonian (Estonia)"},{code:"lv-LV",name:"Latvian (Latvia)"},{code:"lt-LT",name:"Lithuanian (Lithuania)"},{code:"ka-GE",name:"Georgian (Georgia)"},{code:"hy-AM",name:"Armenian (Armenia)"},{code:"az-AZ",name:"Azerbaijani (Azerbaijan)"},{code:"kk-KZ",name:"Kazakh (Kazakhstan)"},{code:"uz-UZ",name:"Uzbek (Uzbekistan)"},{code:"kkj-CM",name:"Kako (Cameroon)"},{code:"my-MM",name:"Burmese (Myanmar)"},{code:"ne-NP",name:"Nepali (Nepal)"},{code:"si-LK",name:"Sinhala (Sri Lanka)"}]},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},userName:{get(){return this.$store.state.config.user_name},set(n){this.$store.state.config.user_name=n}},user_avatar:{get(){return this.$store.state.config.user_avatar!=""?"/user_infos/"+this.$store.state.config.user_avatar:Bi},set(n){this.$store.state.config.user_avatar=n}},hardware_mode:{get(){return this.$store.state.config.hardware_mode},set(n){this.$store.state.config.hardware_mode=n}},auto_update:{get(){return this.$store.state.config.auto_update},set(n){this.$store.state.config.auto_update=n}},auto_speak:{get(){return this.$store.state.config.auto_speak},set(n){this.$store.state.config.auto_speak=n}},auto_read:{get(){return this.$store.state.config.auto_read},set(n){this.$store.state.config.auto_read=n}},xtts_current_language:{get(){return this.$store.state.config.xtts_current_language},set(n){console.log("Current xtts voice set to ",n),this.$store.state.config.xtts_current_language=n}},xtts_current_voice:{get(){return this.$store.state.config.xtts_current_voice===null||this.$store.state.config.xtts_current_voice===void 0?(console.log("current voice",this.$store.state.config.xtts_current_voice),"main_voice"):this.$store.state.config.xtts_current_voice},set(n){n=="main_voice"||n===void 0?(console.log("Current voice set to None"),this.$store.state.config.xtts_current_voice=null):(console.log("Current voice set to ",n),this.$store.state.config.xtts_current_voice=n)}},audio_pitch:{get(){return this.$store.state.config.audio_pitch},set(n){this.$store.state.config.audio_pitch=n}},audio_in_language:{get(){return this.$store.state.config.audio_in_language},set(n){this.$store.state.config.audio_in_language=n}},use_user_name_in_discussions:{get(){return this.$store.state.config.use_user_name_in_discussions},set(n){this.$store.state.config.use_user_name_in_discussions=n}},discussion_db_name:{get(){return this.$store.state.config.discussion_db_name},set(n){this.$store.state.config.discussion_db_name=n}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}},bindingsZoo:{get(){return this.$store.state.bindingsZoo},set(n){this.$store.commit("setbindingsZoo",n)}},modelsArr:{get(){return this.$store.state.modelsArr},set(n){this.$store.commit("setModelsArr",n)}},models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},installed_models:{get(){return this.models_zoo},set(n){this.$store.commit("setModelsZoo",n)}},diskUsage:{get(){return this.$store.state.diskUsage},set(n){this.$store.commit("setDiskUsage",n)}},ramUsage:{get(){return this.$store.state.ramUsage},set(n){this.$store.commit("setRamUsage",n)}},vramUsage:{get(){return this.$store.state.vramUsage},set(n){this.$store.commit("setVramUsage",n)}},disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return console.log(`this.diskUsage : ${this.diskUsage}`),this.computedFileSize(this.diskUsage.binding_models_usage)},disk_percent_usage(){return this.diskUsage.percent_usage},disk_total_space(){return this.computedFileSize(this.diskUsage.total_space)},ram_available_space(){return this.computedFileSize(this.ramUsage.available_space)},ram_usage(){return this.computedFileSize(this.ramUsage.ram_usage)},ram_percent_usage(){return this.ramUsage.percent_usage},ram_total_space(){return this.computedFileSize(this.ramUsage.total_space)},model_name(){if(this.isMounted)return this.configFile.model_name},binding_name(){if(!this.isMounted)return null;const n=this.bindingsZoo.findIndex(e=>e.folder===this.configFile.binding_name);return n>-1?this.bindingsZoo[n].name:null},active_pesonality(){if(!this.isMounted)return null;const n=this.$store.state.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);return n>-1?this.$store.state.personalities[n].name:null},speed_computed(){return is(this.addModel.speed)},total_size_computed(){return is(this.addModel.total_size)},downloaded_size_computed(){return is(this.addModel.downloaded_size)}},watch:{bec_collapsed(){Le(()=>{Ve.replace()})},pc_collapsed(){Le(()=>{Ve.replace()})},mc_collapsed(){Le(()=>{Ve.replace()})},sc_collapsed(){Le(()=>{Ve.replace()})},showConfirmation(){Le(()=>{Ve.replace()})},mzl_collapsed(){Le(()=>{Ve.replace()})},pzl_collapsed(){Le(()=>{Ve.replace()})},ezl_collapsed(){Le(()=>{Ve.replace()})},bzl_collapsed(){Le(()=>{Ve.replace()})},all_collapsed(n){this.collapseAll(n),Le(()=>{Ve.replace()})},settingsChanged(n){this.$store.state.settingsChanged=n,Le(()=>{Ve.replace()})},isLoading(){Le(()=>{Ve.replace()})},searchPersonality(n){n==""&&this.filterPersonalities()},mzdc_collapsed(){Le(()=>{Ve.replace()})}},async beforeRouteLeave(n){await this.$router.isReady()}},wnt={class:"container pt-12 flex flex-row shadow-lg p-10 pt-0 overflow-y-scroll w-full background-color scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},Rnt={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg panels-color shadow-lg"},Ant={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Mnt={key:1,class:"flex gap-3 flex-1 items-center"},Nnt={class:"flex gap-3 flex-1 items-center justify-end"},Ont={class:"flex gap-3 items-center"},Int={key:0,class:"flex gap-3 items-center"},knt={key:1,role:"status"},Dnt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Lnt={class:"flex flex-row p-3"},Pnt={class:"text-base font-semibold cursor-pointer select-none items-center"},Fnt={class:"flex gap-2 items-center"},Unt={key:0},Bnt=["src"],Gnt={class:"font-bold font-large text-lg"},Vnt={key:1},znt={class:"flex gap-2 items-center"},Hnt=["src"],qnt={class:"font-bold font-large text-lg"},Ynt={class:"font-bold font-large text-lg"},$nt={class:"font-bold font-large text-lg"},Wnt={class:"mb-2"},Knt={class:"flex flex-col mx-2"},jnt={class:"p-2"},Qnt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},Xnt={class:"mb-2"},Znt={class:"flex flex-col mx-2"},Jnt={class:"p-2"},eit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},tit={class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},nit=["src"],iit={class:"flex flex-col mx-2"},sit={class:"p-2"},rit={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},oit={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ait={class:"flex flex-row p-3"},lit={class:"flex flex-col mb-2 px-3 pb-2"},cit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},dit={style:{width:"100%"}},uit={style:{width:"100%"}},pit={style:{width:"100%"}},fit={style:{width:"100%"}},_it={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},mit={class:"flex flex-row p-3"},hit={class:"flex flex-col mb-2 px-3 pb-2"},git={class:"expand-to-fit bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},bit={for:"logo-upload"},yit=["src"],Eit={style:{width:"10%"}},vit={class:"text-center items-center"},Sit={class:"flex flex-row"},Tit={style:{width:"100%"}},xit={class:"flex flex-row"},Cit={class:"flex flex-row"},wit={class:"flex flex-row"},Rit={class:"flex flex-row"},Ait={class:"flex flex-row"},Mit={class:"flex flex-row"},Nit={class:"flex flex-row"},Oit={class:"flex flex-row"},Iit={class:"flex flex-row"},kit={class:"flex flex-row"},Dit={class:"flex flex-row"},Lit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Pit=["innerHTML"],Fit={style:{width:"100%"}},Uit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Bit={style:{width:"100%"}},Git={style:{width:"100%"}},Vit={style:{width:"100%"}},zit={style:{width:"100%"}},Hit={for:"avatar-upload"},qit=["src"],Yit={style:{width:"10%"}},$it={class:"flex flex-row"},Wit={style:{width:"100%"}},Kit={style:{width:"100%"}},jit={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Qit={style:{width:"100%"}},Xit={style:{width:"100%"}},Zit={style:{width:"100%"}},Jit={style:{width:"100%"}},est={style:{width:"100%"}},tst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nst={class:"flex flex-row"},ist={style:{width:"100%"}},sst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},rst={class:"flex flex-row"},ost={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ast={class:"flex flex-row"},lst={class:"flex flex-row"},cst={class:"flex flex-row"},dst={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},ust={class:"flex flex-row p-3"},pst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},fst={style:{width:"100%"}},_st=["onUpdate:modelValue"],mst=["onClick"],hst=["onClick"],gst=["onClick"],bst=["disabled"],yst={key:0,value:"sentence-transformers/bert-base-nli-mean-tokens"},Est={key:1,value:"bert-base-uncased"},vst={key:2,value:"bert-base-multilingual-uncased"},Sst={key:3,value:"bert-large-uncased"},Tst={key:4,value:"bert-large-uncased-whole-word-masking-finetuned-squad"},xst={key:5,value:"distilbert-base-uncased"},Cst={key:6,value:"roberta-base"},wst={key:7,value:"roberta-large"},Rst={key:8,value:"xlm-roberta-base"},Ast={key:9,value:"xlm-roberta-large"},Mst={key:10,value:"albert-base-v2"},Nst={key:11,value:"albert-large-v2"},Ost={key:12,value:"albert-xlarge-v2"},Ist={key:13,value:"albert-xxlarge-v2"},kst={key:14,value:"sentence-transformers/all-MiniLM-L6-v2"},Dst={key:15,value:"sentence-transformers/all-MiniLM-L12-v2"},Lst={key:16,value:"sentence-transformers/all-distilroberta-v1"},Pst={key:17,value:"sentence-transformers/all-mpnet-base-v2"},Fst={key:18,value:"text-embedding-ada-002"},Ust={key:19,value:"text-embedding-babbage-001"},Bst={key:20,value:"text-embedding-curie-001"},Gst={key:21,value:"text-embedding-davinci-001"},Vst={key:22,disabled:""},zst={class:"flex flex-row"},Hst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},qst={class:"flex flex-row"},Yst={class:"flex flex-row"},$st={class:"flex flex-row"},Wst={class:"flex flex-row"},Kst={class:"flex flex-row"},jst={style:{width:"100%"}},Qst={class:"flex flex-row"},Xst={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Zst={class:"flex flex-row p-3"},Jst={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},ert={class:"flex flex-row"},trt={class:"flex flex-row"},nrt={class:"flex flex-row"},irt={class:"flex flex-row"},srt={class:"flex flex-col"},rrt={class:"flex flex-col"},ort={class:"flex flex-col"},art={class:"flex flex-col"},lrt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},crt={class:"flex flex-row p-3"},drt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},urt={style:{width:"100%"}},prt={style:{width:"100%"}},frt={style:{width:"100%"}},_rt={style:{width:"100%"}},mrt={style:{width:"100%"}},hrt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},grt={class:"flex flex-row"},brt={class:"flex flex-row"},yrt={class:"flex flex-row"},Ert={class:"flex flex-row"},vrt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Srt={style:{width:"100%"}},Trt={style:{width:"100%"}},xrt={style:{width:"100%"}},Crt={style:{width:"100%"}},wrt={style:{width:"100%"}},Rrt={style:{width:"100%"}},Art={style:{width:"100%"}},Mrt={class:"flex flex-row"},Nrt={class:"flex flex-row"},Ort={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Irt={style:{width:"100%"}},krt=["value"],Drt={style:{width:"100%"}},Lrt=["value"],Prt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Frt={style:{width:"100%"}},Urt={style:{width:"100%"}},Brt={style:{width:"100%"}},Grt={style:{width:"100%"}},Vrt={style:{width:"100%"}},zrt={style:{width:"100%"}},Hrt={style:{width:"100%"}},qrt={style:{width:"100%"}},Yrt={style:{width:"100%"}},$rt={style:{width:"100%"}},Wrt={style:{width:"100%"}},Krt={style:{width:"100%"}},jrt={style:{width:"100%"}},Qrt={style:{width:"100%"}},Xrt={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Zrt={class:"flex flex-row"},Jrt={class:"flex flex-row"},eot=["value"],tot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},not={class:"flex flex-row"},iot={class:"flex flex-row"},sot=["value"],rot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},oot={class:"flex flex-row"},aot={class:"flex flex-row"},lot=["value"],cot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},dot={class:"flex flex-row"},uot=["value"],pot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},fot={class:"flex flex-row"},_ot=["value"],mot={class:"flex flex-row"},hot=["value"],got={class:"flex flex-row"},bot={class:"flex flex-row"},yot={class:"flex flex-row"},Eot={class:"flex flex-row"},vot={class:"flex flex-row"},Sot={class:"flex flex-row"},Tot={class:"flex flex-row"},xot={class:"flex flex-row"},Cot={class:"flex flex-row"},wot={class:"flex flex-row"},Rot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Aot={class:"flex flex-row"},Mot={class:"flex flex-row"},Not={class:"flex flex-row"},Oot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Iot={class:"flex flex-row"},kot={class:"flex flex-row"},Dot={class:"flex flex-row"},Lot={class:"flex flex-row"},Pot={class:"flex flex-row"},Fot=["value"],Uot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Bot={class:"flex flex-row"},Got={class:"flex flex-row"},Vot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},zot={class:"flex flex-row"},Hot={class:"flex flex-row"},qot={class:"flex flex-row"},Yot={class:"flex flex-row"},$ot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Wot={class:"flex flex-row"},Kot={class:"flex flex-row"},jot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Qot={class:"flex flex-row"},Xot={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Zot={class:"flex flex-row"},Jot={class:"flex flex-row"},eat={class:"flex flex-row"},tat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},nat={class:"flex flex-row"},iat={class:"flex flex-row"},sat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},rat={class:"flex flex-row"},oat={class:"flex flex-row"},aat=["value"],lat={class:"flex flex-row"},cat={class:"flex flex-row"},dat={class:"flex flex-row"},uat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},pat={class:"flex flex-row"},fat={class:"flex flex-row"},_at={class:"flex flex-row"},mat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},hat={class:"flex flex-row"},gat={class:"flex flex-row"},bat={class:"flex flex-row"},yat={class:"flex flex-col align-bottom"},Eat={class:"relative"},vat={class:"absolute right-0"},Sat={class:"flex flex-row"},Tat={class:"flex flex-row"},xat={class:"flex flex-row"},Cat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},wat={class:"flex flex-row"},Rat={class:"flex flex-row"},Aat={class:"flex flex-row"},Mat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Nat={class:"flex flex-row"},Oat={class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},Iat={class:"flex flex-row"},kat={class:"flex flex-row"},Dat={class:"flex flex-row"},Lat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Pat={class:"flex flex-row p-3"},Fat={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Uat={key:1,class:"mr-2"},Bat={key:2,class:"text-base font-semibold cursor-pointer select-none items-center"},Gat={class:"flex gap-1 items-center"},Vat=["src"],zat={class:"font-bold font-large text-lg line-clamp-1"},Hat={key:0,class:"mb-2"},qat={for:"binding",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Yat={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},$at={class:"flex flex-row p-3"},Wat={class:"flex flex-row items-center"},Kat={key:0,class:"text-base text-red-600 flex gap-3 items-center mr-2"},jat={key:1,class:"text-base text-red-600 flex gap-3 items-center mr-2"},Qat={key:2,class:"mr-2"},Xat={key:3,class:"text-base font-semibold cursor-pointer select-none items-center"},Zat={class:"flex gap-1 items-center"},Jat=["src"],elt={class:"font-bold font-large text-lg line-clamp-1"},tlt={class:"mx-2 mb-4"},nlt={class:"relative"},ilt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},slt={key:0},rlt={key:1},olt={key:0,role:"status",class:"text-center w-full display: flex;align-items: center;"},alt={key:1,class:"mb-2"},llt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},clt={class:"mb-2"},dlt={class:"p-2"},ult={class:"mb-3"},plt={key:0},flt={class:"mb-3"},_lt={key:1,class:"relative flex flex-col items-center justify-center flex-grow h-full"},mlt={class:"relative flex flex-row flex-grow items-center w-full h-full bottom-0"},hlt={class:"w-full p-2"},glt={class:"flex justify-between mb-1"},blt={class:"text-sm font-medium text-blue-700 dark:text-white"},ylt=["title"],Elt={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},vlt={class:"flex justify-between mb-1"},Slt={class:"text-base font-medium text-blue-700 dark:text-white"},Tlt={class:"text-sm font-medium text-blue-700 dark:text-white"},xlt={class:"flex flex-grow"},Clt={class:"flex flex-row flex-grow gap-3"},wlt={class:"p-2 text-center grow"},Rlt={class:"flex flex-col mb-2 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},Alt={class:"flex flex-row p-3 items-center"},Mlt={key:0,class:"mr-2"},Nlt={class:"mr-2 font-bold font-large text-lg line-clamp-1"},Olt={key:1,class:"mr-2"},Ilt={key:2,class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row"},klt={key:0,class:"flex -space-x-4 items-center"},Dlt={class:"group items-center flex flex-row"},Llt=["onClick"],Plt=["src","title"],Flt=["onClick"],Ult={class:"mx-2 mb-4"},Blt={class:"relative"},Glt={class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},Vlt={key:0},zlt={key:1},Hlt={key:0,class:"mx-2 mb-4"},qlt={for:"persCat",class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},Ylt=["selected"],$lt={key:0,class:"mb-2"},Wlt={for:"model",class:"block ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},Klt={class:"flex flex-col mb-2 p-3 rounded-lg panels-color hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},jlt={class:"flex flex-row"},Qlt={class:"m-2"},Xlt={class:"flex flex-row gap-2 items-center"},Zlt={class:"m-2"},Jlt={class:"m-2"},ect={class:"flex flex-col align-bottom"},tct={class:"relative"},nct={class:"absolute right-0"},ict={class:"m-2"},sct={class:"flex flex-col align-bottom"},rct={class:"relative"},oct={class:"absolute right-0"},act={class:"m-2"},lct={class:"flex flex-col align-bottom"},cct={class:"relative"},dct={class:"absolute right-0"},uct={class:"m-2"},pct={class:"flex flex-col align-bottom"},fct={class:"relative"},_ct={class:"absolute right-0"},mct={class:"m-2"},hct={class:"flex flex-col align-bottom"},gct={class:"relative"},bct={class:"absolute right-0"},yct={class:"m-2"},Ect={class:"flex flex-col align-bottom"},vct={class:"relative"},Sct={class:"absolute right-0"};function Tct(n,e,t,i,s,r){const o=nt("StringListManager"),a=nt("Card"),c=nt("BindingEntry"),d=nt("RadioOptions"),u=nt("model-entry"),_=nt("personality-entry"),m=nt("AddModelDialog"),h=nt("ChoiceDialog");return T(),w(Be,null,[l("div",wnt,[l("div",Rnt,[s.showConfirmation?(T(),w("div",Ant,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel",type:"button",onClick:e[0]||(e[0]=W(f=>s.showConfirmation=!1,["stop"]))},e[471]||(e[471]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm save changes",type:"button",onClick:e[1]||(e[1]=W(f=>r.save_configuration(),["stop"]))},e[472]||(e[472]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),s.showConfirmation?B("",!0):(T(),w("div",Mnt,[l("button",{title:"Reset configuration",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[2]||(e[2]=f=>r.reset_configuration())},e[473]||(e[473]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Collapse / Expand all panels",type:"button",onClick:e[3]||(e[3]=W(f=>s.all_collapsed=!s.all_collapsed,["stop"]))},e[474]||(e[474]=[l("i",{"data-feather":"list"},null,-1)]))])),l("div",Nnt,[l("button",{title:"Clear uploads",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[4]||(e[4]=f=>r.api_get_req("clear_uploads").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[475]||(e[475]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{title:"Restart program",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[5]||(e[5]=f=>r.api_post_req("restart_program").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast(["failed!"],4,!1)}))},e[476]||(e[476]=[l("i",{"data-feather":"refresh-ccw"},null,-1)])),s.has_updates?(T(),w("button",{key:0,title:"Upgrade program ",class:"text-2xl hover:text-secondary duration-75 active:scale-90",onClick:e[6]||(e[6]=f=>r.api_post_req("update_software").then(y=>{y.status?this.$store.state.toast.showToast("Success!",4,!0):this.$store.state.toast.showToast("Success!",4,!0)}))},e[477]||(e[477]=[l("i",{"data-feather":"arrow-up-circle"},null,-1),l("i",{"data-feather":"alert-circle"},null,-1)]))):B("",!0),l("div",Ont,[s.settingsChanged?(T(),w("div",Int,[s.isLoading?B("",!0):(T(),w("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Apply changes",type:"button",onClick:e[7]||(e[7]=W(f=>r.applyConfiguration(),["stop"]))},e[478]||(e[478]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-green-600 font-bold hover:text-green-300 ml-4 pl-4 mr-4 pr-4"},"Apply changes:"),l("i",{"data-feather":"check"})],-1)]))),s.isLoading?B("",!0):(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Cancel changes",type:"button",onClick:e[8]||(e[8]=W(f=>r.cancelConfiguration(),["stop"]))},e[479]||(e[479]=[l("div",{class:"flex flex-row"},[l("p",{class:"text-red-600 font-bold hover:text-red-300 ml-4 pl-4 mr-4 pr-4"},"Cancel changes:"),l("i",{"data-feather":"x"})],-1)])))])):B("",!0),s.isLoading?(T(),w("div",knt,[l("p",null,$(s.loading_text),1),e[480]||(e[480]=l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[481]||(e[481]=l("span",{class:"sr-only"},"Loading...",-1))])):B("",!0)])])]),l("div",{class:Ue(s.isLoading?"pointer-events-none opacity-30 w-full":"w-full")},[l("div",Dnt,[l("div",Lnt,[l("button",{onClick:e[9]||(e[9]=W(f=>s.sc_collapsed=!s.sc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[482]||(e[482]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.sc_collapsed]]),k(l("div",null,e[483]||(e[483]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.sc_collapsed]]),e[486]||(e[486]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),e[487]||(e[487]=l("div",{class:"mr-2"},"|",-1)),l("div",Pnt,[l("div",Fnt,[l("div",null,[r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length==1?(T(),w("div",Unt,[(T(!0),w(Be,null,Xe(r.vramUsage.gpus,f=>(T(),w("div",{class:"flex gap-2 items-center",key:f},[l("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Bnt),l("p",Gnt,[l("div",null,$(r.computedFileSize(f.used_vram))+" / "+$(r.computedFileSize(f.total_vram))+" ("+$(f.percentage)+"%) ",1)])]))),128))])):B("",!0),r.vramUsage&&r.vramUsage.gpus&&r.vramUsage.gpus.length>1?(T(),w("div",Vnt,[l("div",znt,[l("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,Hnt),l("p",qnt,[l("div",null,$(r.vramUsage.gpus.length)+"x ",1)])])])):B("",!0)]),e[484]||(e[484]=l("i",{"data-feather":"cpu",title:"CPU Ram",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",Ynt,[l("div",null,$(r.ram_usage)+" / "+$(r.ram_total_space)+" ("+$(r.ram_percent_usage)+"%)",1)]),e[485]||(e[485]=l("i",{"data-feather":"hard-drive",title:"Hard drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),l("p",$nt,[l("div",null,$(r.disk_binding_models_usage)+" / "+$(r.disk_total_space)+" ("+$(r.disk_percent_usage)+"%)",1)])])])])]),l("div",{class:Ue([{hidden:s.sc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Wnt,[e[490]||(e[490]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[l("path",{fill:"currentColor",d:"M17 17H7V7h10m4 4V9h-2V7a2 2 0 0 0-2-2h-2V3h-2v2h-2V3H9v2H7c-1.11 0-2 .89-2 2v2H3v2h2v2H3v2h2v2a2 2 0 0 0 2 2h2v2h2v-2h2v2h2v-2h2a2 2 0 0 0 2-2v-2h2v-2h-2v-2m-6 2h-2v-2h2m2-2H9v6h6V9Z"})]),Ze(" CPU Ram usage: ")],-1)),l("div",Knt,[l("div",null,[e[488]||(e[488]=l("b",null,"Avaliable ram: ",-1)),Ze($(r.ram_available_space),1)]),l("div",null,[e[489]||(e[489]=l("b",null,"Ram usage: ",-1)),Ze(" "+$(r.ram_usage)+" / "+$(r.ram_total_space)+" ("+$(r.ram_percent_usage)+")% ",1)])]),l("div",jnt,[l("div",Qnt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt("width: "+r.ram_percent_usage+"%;")},null,4)])])]),l("div",Xnt,[e[493]||(e[493]=l("label",{class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[l("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Ze(" Disk usage: ")],-1)),l("div",Znt,[l("div",null,[e[491]||(e[491]=l("b",null,"Avaliable disk space: ",-1)),Ze($(r.disk_available_space),1)]),l("div",null,[e[492]||(e[492]=l("b",null,"Disk usage: ",-1)),Ze(" "+$(r.disk_binding_models_usage)+" / "+$(r.disk_total_space)+" ("+$(r.disk_percent_usage)+"%)",1)])]),l("div",Jnt,[l("div",eit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt("width: "+r.disk_percent_usage+"%;")},null,4)])])]),(T(!0),w(Be,null,Xe(r.vramUsage.gpus,f=>(T(),w("div",{class:"mb-2",key:f},[l("label",tit,[l("img",{src:s.SVGGPU,width:"25",height:"25"},null,8,nit),e[494]||(e[494]=Ze(" GPU usage: "))]),l("div",iit,[l("div",null,[e[495]||(e[495]=l("b",null,"Model: ",-1)),Ze($(f.gpu_model),1)]),l("div",null,[e[496]||(e[496]=l("b",null,"Avaliable vram: ",-1)),Ze($(this.computedFileSize(f.available_space)),1)]),l("div",null,[e[497]||(e[497]=l("b",null,"GPU usage: ",-1)),Ze(" "+$(this.computedFileSize(f.used_vram))+" / "+$(this.computedFileSize(f.total_vram))+" ("+$(f.percentage)+"%)",1)])]),l("div",sit,[l("div",rit,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt("width: "+f.percentage+"%;")},null,4)])])]))),128))],2)]),l("div",oit,[l("div",ait,[l("button",{onClick:e[10]||(e[10]=W(f=>s.smartrouterconf_collapsed=!s.smartrouterconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[498]||(e[498]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.smartrouterconf_collapsed]]),k(l("div",null,e[499]||(e[499]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.smartrouterconf_collapsed]]),e[500]||(e[500]=l("div",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Smart routing configurations",-1))])]),l("div",{class:Ue([{hidden:s.smartrouterconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",lit,[z(a,{title:"Smart Routing Settings",is_shrunk:!1,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",cit,[l("tr",null,[e[501]||(e[501]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use Smart Routing:")],-1)),l("td",dit,[k(l("input",{type:"checkbox",id:"use_smart_routing","onUpdate:modelValue":e[11]||(e[11]=f=>r.configFile.use_smart_routing=f),onChange:e[12]||(e[12]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_smart_routing]])])]),l("tr",null,[e[502]||(e[502]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"restore_model_after_smart_routing",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Restore model after smart routing:")],-1)),l("td",uit,[k(l("input",{type:"checkbox",id:"restore_model_after_smart_routing","onUpdate:modelValue":e[13]||(e[13]=f=>r.configFile.restore_model_after_smart_routing=f),onChange:e[14]||(e[14]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.restore_model_after_smart_routing]])])]),l("tr",null,[e[503]||(e[503]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_router_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Router Model:")],-1)),l("td",pit,[k(l("input",{type:"text",id:"smart_routing_router_model","onUpdate:modelValue":e[15]||(e[15]=f=>r.configFile.smart_routing_router_model=f),onChange:e[16]||(e[16]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.smart_routing_router_model]])])]),l("tr",null,[e[504]||(e[504]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"smart_routing_models_by_power",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Models by Power:")],-1)),l("td",fit,[z(o,{modelValue:r.configFile.smart_routing_models_by_power,"onUpdate:modelValue":e[17]||(e[17]=f=>r.configFile.smart_routing_models_by_power=f),onChange:e[18]||(e[18]=f=>s.settingsChanged=!0),placeholder:"Enter model name"},null,8,["modelValue"])])])])]),_:1})])],2)]),l("div",_it,[l("div",mit,[l("button",{onClick:e[19]||(e[19]=W(f=>s.mainconf_collapsed=!s.mainconf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[505]||(e[505]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.mainconf_collapsed]]),k(l("div",null,e[506]||(e[506]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.mainconf_collapsed]]),e[507]||(e[507]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Main configurations",-1))])]),l("div",{class:Ue([{hidden:s.mainconf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",hit,[z(a,{title:"General",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",git,[l("tr",null,[e[509]||(e[509]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"app_custom_logo",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Application logo:")],-1)),l("td",null,[l("label",bit,[l("img",{src:r.configFile.app_custom_logo!=null&&r.configFile.app_custom_logo!=""?"/user_infos/"+r.configFile.app_custom_logo:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,yit)]),l("input",{type:"file",id:"logo-upload",style:{display:"none"},onChange:e[20]||(e[20]=(...f)=>r.uploadLogo&&r.uploadLogo(...f))},null,32)]),l("td",Eit,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[21]||(e[21]=W(f=>r.resetLogo(),["stop"]))},e[508]||(e[508]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[511]||(e[511]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"hardware_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Hardware mode:")],-1)),l("td",vit,[l("div",Sit,[k(l("select",{id:"hardware_mode",required:"","onUpdate:modelValue":e[22]||(e[22]=f=>r.configFile.hardware_mode=f),onChange:e[23]||(e[23]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[510]||(e[510]=[l("option",{value:"cpu"},"CPU",-1),l("option",{value:"cpu-noavx"},"CPU (No AVX)",-1),l("option",{value:"nvidia-tensorcores"},"NVIDIA (Tensor Cores)",-1),l("option",{value:"nvidia"},"NVIDIA",-1),l("option",{value:"amd-noavx"},"AMD (No AVX)",-1),l("option",{value:"amd"},"AMD",-1),l("option",{value:"apple-intel"},"Apple Intel",-1),l("option",{value:"apple-silicon"},"Apple Silicon",-1)]),544),[[It,r.configFile.hardware_mode]])])])]),l("tr",null,[e[512]||(e[512]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Database path:")],-1)),l("td",Tit,[k(l("input",{type:"text",id:"discussion_db_name",required:"","onUpdate:modelValue":e[24]||(e[24]=f=>r.configFile.discussion_db_name=f),onChange:e[25]||(e[25]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.discussion_db_name]])])]),l("tr",null,[e[513]||(e[513]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"copy_to_clipboard_add_all_details",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Add details to messages copied to clipboard:")],-1)),l("td",null,[l("div",xit,[k(l("input",{type:"checkbox",id:"copy_to_clipboard_add_all_details",required:"","onUpdate:modelValue":e[26]||(e[26]=f=>r.configFile.copy_to_clipboard_add_all_details=f),onChange:e[27]||(e[27]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.copy_to_clipboard_add_all_details]])])])]),l("tr",null,[e[514]||(e[514]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_show_browser",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto show browser:")],-1)),l("td",null,[l("div",Cit,[k(l("input",{type:"checkbox",id:"auto_show_browser",required:"","onUpdate:modelValue":e[28]||(e[28]=f=>r.configFile.auto_show_browser=f),onChange:e[29]||(e[29]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_show_browser]])])])]),l("tr",null,[e[515]||(e[515]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_debug",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate debug mode:")],-1)),l("td",null,[l("div",wit,[k(l("input",{type:"checkbox",id:"activate_debug",required:"","onUpdate:modelValue":e[30]||(e[30]=f=>r.configFile.debug=f),onChange:e[31]||(e[31]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug]])])])]),l("tr",null,[e[516]||(e[516]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate showing the full prompt in console (for debug):")],-1)),l("td",null,[l("div",Rit,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[32]||(e[32]=f=>r.configFile.debug_show_final_full_prompt=f),onChange:e[33]||(e[33]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[517]||(e[517]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_final_full_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show final full prompt in console:")],-1)),l("td",null,[l("div",Ait,[k(l("input",{type:"checkbox",id:"debug_show_final_full_prompt",required:"","onUpdate:modelValue":e[34]||(e[34]=f=>r.configFile.debug_show_final_full_prompt=f),onChange:e[35]||(e[35]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug_show_final_full_prompt]])])])]),l("tr",null,[e[518]||(e[518]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_show_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show chunks in console:")],-1)),l("td",null,[l("div",Mit,[k(l("input",{type:"checkbox",id:"debug_show_chunks",required:"","onUpdate:modelValue":e[36]||(e[36]=f=>r.configFile.debug_show_chunks=f),onChange:e[37]||(e[37]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.debug_show_chunks]])])])]),l("tr",null,[e[519]||(e[519]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"debug_log_file_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Debug file path:")],-1)),l("td",null,[l("div",Nit,[k(l("input",{type:"text",id:"debug_log_file_path",required:"","onUpdate:modelValue":e[38]||(e[38]=f=>r.configFile.debug_log_file_path=f),onChange:e[39]||(e[39]=f=>s.settingsChanged=!0),class:"m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.debug_log_file_path]])])])]),l("tr",null,[e[520]||(e[520]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"show_news_panel",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Show news panel:")],-1)),l("td",null,[l("div",Oit,[k(l("input",{type:"checkbox",id:"show_news_panel",required:"","onUpdate:modelValue":e[40]||(e[40]=f=>r.configFile.show_news_panel=f),onChange:e[41]||(e[41]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.show_news_panel]])])])]),l("tr",null,[e[521]||(e[521]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_save",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto save:")],-1)),l("td",null,[l("div",Iit,[k(l("input",{type:"checkbox",id:"auto_save",required:"","onUpdate:modelValue":e[42]||(e[42]=f=>r.configFile.auto_save=f),onChange:e[43]||(e[43]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_save]])])])]),l("tr",null,[e[522]||(e[522]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto update:")],-1)),l("td",null,[l("div",kit,[k(l("input",{type:"checkbox",id:"auto_update",required:"","onUpdate:modelValue":e[44]||(e[44]=f=>r.configFile.auto_update=f),onChange:e[45]||(e[45]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_update]])])])]),l("tr",null,[e[523]||(e[523]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_update",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Auto title:")],-1)),l("td",null,[l("div",Dit,[k(l("input",{type:"checkbox",id:"auto_title",required:"","onUpdate:modelValue":e[46]||(e[46]=f=>r.configFile.auto_title=f),onChange:e[47]||(e[47]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_title]])])])])])]),_:1}),z(a,{title:"Model template",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Lit,[l("tr",null,[e[525]||(e[525]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[l("select",{onChange:e[48]||(e[48]=(...f)=>r.handleTemplateSelection&&r.handleTemplateSelection(...f))},e[524]||(e[524]=[l("option",{value:"lollms"},"Lollms communication template",-1),l("option",{value:"lollms_simplified"},"Lollms simplified communication template",-1),l("option",{value:"bare"},"Bare, useful when in chat mode",-1),l("option",{value:"llama3"},"LLama3 communication template",-1),l("option",{value:"mistral"},"Mistral communication template",-1),l("option",{value:"deepseek"},"DeepSeek communication template",-1)]),32)])]),l("tr",null,[e[526]||(e[526]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_header_id_template",required:"","onUpdate:modelValue":e[49]||(e[49]=f=>r.configFile.start_header_id_template=f),onChange:e[50]||(e[50]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.start_header_id_template]])])]),l("tr",null,[e[527]||(e[527]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_header_id_template",required:"","onUpdate:modelValue":e[51]||(e[51]=f=>r.configFile.end_header_id_template=f),onChange:e[52]||(e[52]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_header_id_template]])])]),l("tr",null,[e[528]||(e[528]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_user_header_id_template",required:"","onUpdate:modelValue":e[53]||(e[53]=f=>r.configFile.start_user_header_id_template=f),onChange:e[54]||(e[54]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.start_user_header_id_template]])])]),l("tr",null,[e[529]||(e[529]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_header_id_template",required:"","onUpdate:modelValue":e[55]||(e[55]=f=>r.configFile.end_user_header_id_template=f),onChange:e[56]||(e[56]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_user_header_id_template]])])]),l("tr",null,[e[530]||(e[530]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_user_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End user message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_user_message_id_template",required:"","onUpdate:modelValue":e[57]||(e[57]=f=>r.configFile.end_user_message_id_template=f),onChange:e[58]||(e[58]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_user_message_id_template]])])]),l("tr",null,[e[531]||(e[531]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"start_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Start ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"start_ai_header_id_template",required:"","onUpdate:modelValue":e[59]||(e[59]=f=>r.configFile.start_ai_header_id_template=f),onChange:e[60]||(e[60]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.start_ai_header_id_template]])])]),l("tr",null,[e[532]||(e[532]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_header_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai header id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_header_id_template",required:"","onUpdate:modelValue":e[61]||(e[61]=f=>r.configFile.end_ai_header_id_template=f),onChange:e[62]||(e[62]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_ai_header_id_template]])])]),l("tr",null,[e[533]||(e[533]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"end_ai_message_id_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"End ai message id template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"end_ai_message_id_template",required:"","onUpdate:modelValue":e[63]||(e[63]=f=>r.configFile.end_ai_message_id_template=f),onChange:e[64]||(e[64]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.end_ai_message_id_template]])])]),l("tr",null,[e[534]||(e[534]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"separator_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Separator template:")],-1)),l("td",null,[k(l("textarea",{id:"separator_template",required:"","onUpdate:modelValue":e[65]||(e[65]=f=>r.configFile.separator_template=f),onChange:e[66]||(e[66]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.separator_template]])])]),l("tr",null,[e[535]||(e[535]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"system_message_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"System template:")],-1)),l("td",null,[k(l("input",{type:"text",id:"system_message_template",required:"","onUpdate:modelValue":e[67]||(e[67]=f=>r.configFile.system_message_template=f),onChange:e[68]||(e[68]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.system_message_template]])])]),l("tr",null,[e[536]||(e[536]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"full_template",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Full template:")],-1)),l("td",null,[l("div",{innerHTML:r.full_template},null,8,Pit)])]),l("tr",null,[e[537]||(e[537]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_continue_message",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"useful for chat models and repote models but can be less useful for instruct ones"},"Use continue message:")],-1)),l("td",Fit,[k(l("input",{type:"checkbox",id:"use_continue_message",required:"","onUpdate:modelValue":e[69]||(e[69]=f=>r.configFile.use_continue_message=f),onChange:e[70]||(e[70]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_continue_message]])])])])]),_:1}),z(a,{title:"User",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Uit,[l("tr",null,[e[538]||(e[538]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User name:")],-1)),l("td",Bit,[k(l("input",{type:"text",id:"user_name",required:"","onUpdate:modelValue":e[71]||(e[71]=f=>r.configFile.user_name=f),onChange:e[72]||(e[72]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.user_name]])])]),l("tr",null,[e[539]||(e[539]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_description",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User description:")],-1)),l("td",Git,[k(l("textarea",{id:"user_description",required:"","onUpdate:modelValue":e[73]||(e[73]=f=>r.configFile.user_description=f),onChange:e[74]||(e[74]=f=>s.settingsChanged=!0),class:"min-h-[500px] w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.user_description]])])]),l("tr",null,[e[540]||(e[540]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_informations_in_discussion",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use user description in discussion:")],-1)),l("td",Vit,[k(l("input",{type:"checkbox",id:"use_user_informations_in_discussion",required:"","onUpdate:modelValue":e[75]||(e[75]=f=>r.configFile.use_user_informations_in_discussion=f),onChange:e[76]||(e[76]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_user_informations_in_discussion]])])]),l("tr",null,[e[541]||(e[541]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_model_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use model name in discussion:")],-1)),l("td",zit,[k(l("input",{type:"checkbox",id:"use_model_name_in_discussions",required:"","onUpdate:modelValue":e[77]||(e[77]=f=>r.configFile.use_model_name_in_discussions=f),onChange:e[78]||(e[78]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_model_name_in_discussions]])])]),l("tr",null,[e[543]||(e[543]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"user_avatar",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"User avatar:")],-1)),l("td",null,[l("label",Hit,[l("img",{src:r.configFile.user_avatar!=null&&r.configFile.user_avatar!=""?"/user_infos/"+r.configFile.user_avatar:s.storeLogo,class:"w-50 h-50 rounded-full",style:{"max-width":"50px","max-height":"50px",cursor:"pointer"}},null,8,qit)]),l("input",{type:"file",id:"avatar-upload",style:{display:"none"},onChange:e[79]||(e[79]=(...f)=>r.uploadAvatar&&r.uploadAvatar(...f))},null,32)]),l("td",Yit,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[80]||(e[80]=W(f=>r.resetAvatar(),["stop"]))},e[542]||(e[542]=[l("i",{"data-feather":"x"},null,-1)]))])]),l("tr",null,[e[544]||(e[544]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_user_name_in_discussions",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use User Name in discussions:")],-1)),l("td",null,[l("div",$it,[k(l("input",{type:"checkbox",id:"use_user_name_in_discussions",required:"","onUpdate:modelValue":e[81]||(e[81]=f=>r.configFile.use_user_name_in_discussions=f),onChange:e[82]||(e[82]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_user_name_in_discussions]])])])]),l("tr",null,[e[545]||(e[545]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Maximum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Wit,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[83]||(e[83]=f=>r.configFile.max_n_predict=f),onChange:e[84]||(e[84]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.max_n_predict]])])]),l("tr",null,[e[546]||(e[546]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"max_n_predict",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Minimum number of output tokens space (forces the model to have more space to speak):")],-1)),l("td",Kit,[k(l("input",{type:"number",id:"max_n_predict",required:"","onUpdate:modelValue":e[85]||(e[85]=f=>r.configFile.max_n_predict=f),onChange:e[86]||(e[86]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.max_n_predict]])])])])]),_:1}),z(a,{title:"Security settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jit,[l("tr",null,[e[547]||(e[547]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_execution",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code execution:")],-1)),l("td",Qit,[k(l("input",{type:"checkbox",id:"turn_on_code_execution",required:"","onUpdate:modelValue":e[87]||(e[87]=f=>r.configFile.turn_on_code_execution=f),onChange:e[88]||(e[88]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_code_execution]])])]),l("tr",null,[e[548]||(e[548]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_code_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on code validation (very recommended for security reasons):")],-1)),l("td",Xit,[k(l("input",{type:"checkbox",id:"turn_on_code_validation",required:"","onUpdate:modelValue":e[89]||(e[89]=f=>r.configFile.turn_on_code_validation=f),onChange:e[90]||(e[90]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_code_validation]])])]),l("tr",null,[e[549]||(e[549]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_setting_update_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on apply settings validation (very recommended for security reasons):")],-1)),l("td",Zit,[k(l("input",{type:"checkbox",id:"turn_on_setting_update_validation",required:"","onUpdate:modelValue":e[91]||(e[91]=f=>r.configFile.turn_on_setting_update_validation=f),onChange:e[92]||(e[92]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_setting_update_validation]])])]),l("tr",null,[e[550]||(e[550]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_open_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on open file/folder validation:")],-1)),l("td",Jit,[k(l("input",{type:"checkbox",id:"turn_on_open_file_validation",required:"","onUpdate:modelValue":e[93]||(e[93]=f=>r.configFile.turn_on_open_file_validation=f),onChange:e[94]||(e[94]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_open_file_validation]])])]),l("tr",null,[e[551]||(e[551]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"turn_on_send_file_validation",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"turn on send file validation:")],-1)),l("td",est,[k(l("input",{type:"checkbox",id:"turn_on_send_file_validation",required:"","onUpdate:modelValue":e[95]||(e[95]=f=>r.configFile.turn_on_send_file_validation=f),onChange:e[96]||(e[96]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.turn_on_send_file_validation]])])])])]),_:1}),z(a,{title:"Knowledge database",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",tst,[l("tr",null,[e[552]||(e[552]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_skills_lib",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Skills library:")],-1)),l("td",null,[l("div",nst,[k(l("input",{type:"checkbox",id:"activate_skills_lib",required:"","onUpdate:modelValue":e[97]||(e[97]=f=>r.configFile.activate_skills_lib=f),onChange:e[98]||(e[98]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_skills_lib]])])])]),l("tr",null,[e[553]||(e[553]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"discussion_db_name",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Skills library database name:")],-1)),l("td",ist,[k(l("input",{type:"text",id:"skills_lib_database_name",required:"","onUpdate:modelValue":e[99]||(e[99]=f=>r.configFile.skills_lib_database_name=f),onChange:e[100]||(e[100]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.skills_lib_database_name]])])])])]),_:1}),z(a,{title:"Latex",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",sst,[l("tr",null,[e[554]||(e[554]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"pdf_latex_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"PDF LaTeX path:")],-1)),l("td",null,[l("div",rst,[k(l("input",{type:"text",id:"pdf_latex_path",required:"","onUpdate:modelValue":e[101]||(e[101]=f=>r.configFile.pdf_latex_path=f),onChange:e[102]||(e[102]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.pdf_latex_path]])])])])])]),_:1}),z(a,{title:"Boost",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",ost,[l("tr",null,[e[555]||(e[555]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"positive_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Positive Boost:")],-1)),l("td",null,[l("div",ast,[k(l("input",{type:"text",id:"positive_boost",required:"","onUpdate:modelValue":e[103]||(e[103]=f=>r.configFile.positive_boost=f),onChange:e[104]||(e[104]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.positive_boost]])])])]),l("tr",null,[e[556]||(e[556]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative Boost:")],-1)),l("td",null,[l("div",lst,[k(l("input",{type:"text",id:"negative_boost",required:"","onUpdate:modelValue":e[105]||(e[105]=f=>r.configFile.negative_boost=f),onChange:e[106]||(e[106]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.negative_boost]])])])]),l("tr",null,[e[557]||(e[557]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fun_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fun mode:")],-1)),l("td",null,[l("div",cst,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[107]||(e[107]=f=>r.configFile.fun_mode=f),onChange:e[108]||(e[108]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.fun_mode]])])])])])]),_:1})])],2)]),l("div",dst,[l("div",ust,[l("button",{onClick:e[109]||(e[109]=W(f=>s.data_conf_collapsed=!s.data_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[558]||(e[558]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.data_conf_collapsed]]),k(l("div",null,e[559]||(e[559]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.data_conf_collapsed]]),e[560]||(e[560]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Data management settings",-1))])]),l("div",{class:Ue([{hidden:s.data_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Data Sources",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",pst,[l("tr",null,[e[561]||(e[561]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_databases",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data Sources:")],-1)),l("td",fst,[(T(!0),w(Be,null,Xe(r.configFile.rag_databases,(f,y)=>(T(),w("div",{key:y,class:"flex items-center mb-2"},[k(l("input",{type:"text","onUpdate:modelValue":b=>r.configFile.rag_databases[y]=b,onChange:e[110]||(e[110]=b=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,40,_st),[[ue,r.configFile.rag_databases[y]]]),l("button",{onClick:b=>r.vectorize_folder(y),class:"w-500 ml-2 px-2 py-1 bg-green-500 text-white hover:bg-green-300 rounded"},"(Re)Vectorize",8,mst),l("button",{onClick:b=>r.select_folder(y),class:"w-500 ml-2 px-2 py-1 bg-blue-500 text-white hover:bg-green-300 rounded"},"Select Folder",8,hst),l("button",{onClick:b=>r.removeDataSource(y),class:"ml-2 px-2 py-1 bg-red-500 text-white hover:bg-green-300 rounded"},"Remove",8,gst)]))),128)),l("button",{onClick:e[111]||(e[111]=(...f)=>r.addDataSource&&r.addDataSource(...f)),class:"mt-2 px-2 py-1 bg-blue-500 text-white rounded"},"Add Data Source")])]),l("tr",null,[e[563]||(e[563]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer",required:"","onUpdate:modelValue":e[112]||(e[112]=f=>r.configFile.rag_vectorizer=f),onChange:e[113]||(e[113]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[562]||(e[562]=[l("option",{value:"semantic"},"Semantic Vectorizer",-1),l("option",{value:"tfidf"},"TFIDF Vectorizer",-1),l("option",{value:"openai"},"OpenAI Vectorizer",-1)]),544),[[It,r.configFile.rag_vectorizer]])])]),l("tr",null,[e[564]||(e[564]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG Vectorizer model:")],-1)),l("td",null,[k(l("select",{id:"rag_vectorizer_model",required:"","onUpdate:modelValue":e[114]||(e[114]=f=>r.configFile.rag_vectorizer_model=f),onChange:e[115]||(e[115]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",disabled:r.configFile.rag_vectorizer==="tfidf"},[r.configFile.rag_vectorizer==="semantic"?(T(),w("option",yst,"sentence-transformers/bert-base-nli-mean-tokens")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Est,"bert-base-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",vst,"bert-base-multilingual-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Sst,"bert-large-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Tst,"bert-large-uncased-whole-word-masking-finetuned-squad")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",xst,"distilbert-base-uncased")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Cst,"roberta-base")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",wst,"roberta-large")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Rst,"xlm-roberta-base")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Ast,"xlm-roberta-large")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Mst,"albert-base-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Nst,"albert-large-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Ost,"albert-xlarge-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Ist,"albert-xxlarge-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",kst,"sentence-transformers/all-MiniLM-L6-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Dst,"sentence-transformers/all-MiniLM-L12-v2")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Lst,"sentence-transformers/all-distilroberta-v1")):B("",!0),r.configFile.rag_vectorizer==="semantic"?(T(),w("option",Pst,"sentence-transformers/all-mpnet-base-v2")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Fst,"text-embedding-ada-002")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Ust,"text-embedding-babbage-001")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Bst,"text-embedding-curie-001")):B("",!0),r.configFile.rag_vectorizer==="openai"?(T(),w("option",Gst,"text-embedding-davinci-001")):B("",!0),r.configFile.rag_vectorizer==="tfidf"?(T(),w("option",Vst,"No models available for TFIDF")):B("",!0)],40,bst),[[It,r.configFile.rag_vectorizer_model]])])]),l("tr",null,[e[565]||(e[565]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_vectorizer_openai_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key for open ai embedding method (if not provided I'll use OPENAI_API_KEY environment variable):")],-1)),l("td",null,[l("div",zst,[k(l("input",{type:"text",id:"rag_vectorizer_openai_key",required:"","onUpdate:modelValue":e[116]||(e[116]=f=>r.configFile.rag_vectorizer_openai_key=f),onChange:e[117]||(e[117]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_vectorizer_openai_key]])])])]),l("tr",null,[e[566]||(e[566]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG chunk size:")],-1)),l("td",null,[k(l("input",{id:"rag_chunk_size","onUpdate:modelValue":e[118]||(e[118]=f=>r.configFile.rag_chunk_size=f),onChange:e[119]||(e[119]=f=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.rag_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[120]||(e[120]=f=>r.configFile.rag_chunk_size=f),type:"number",onChange:e[121]||(e[121]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_chunk_size]])])]),l("tr",null,[e[567]||(e[567]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_overlap",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG overlap size:")],-1)),l("td",null,[k(l("input",{id:"rag_overlap","onUpdate:modelValue":e[122]||(e[122]=f=>r.configFile.rag_overlap=f),onChange:e[123]||(e[123]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.rag_overlap]]),k(l("input",{"onUpdate:modelValue":e[124]||(e[124]=f=>r.configFile.rag_overlap=f),type:"number",onChange:e[125]||(e[125]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_overlap]])])]),l("tr",null,[e[568]||(e[568]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_n_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"RAG number of chunks:")],-1)),l("td",null,[k(l("input",{id:"rag_n_chunks","onUpdate:modelValue":e[126]||(e[126]=f=>r.configFile.rag_n_chunks=f),onChange:e[127]||(e[127]=f=>s.settingsChanged=!0),type:"range",min:"2",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.rag_n_chunks]]),k(l("input",{"onUpdate:modelValue":e[128]||(e[128]=f=>r.configFile.rag_n_chunks=f),type:"number",onChange:e[129]||(e[129]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.rag_n_chunks]])])]),l("tr",null,[e[569]||(e[569]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_clean_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Clean chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[130]||(e[130]=f=>r.configFile.rag_clean_chunks=f),type:"checkbox",onChange:e[131]||(e[131]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_clean_chunks]])])]),l("tr",null,[e[570]||(e[570]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_follow_subfolders",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Follow subfolders:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[132]||(e[132]=f=>r.configFile.rag_follow_subfolders=f),type:"checkbox",onChange:e[133]||(e[133]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_follow_subfolders]])])]),l("tr",null,[e[571]||(e[571]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_check_new_files_at_startup",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Check for new files at startup:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[134]||(e[134]=f=>r.configFile.rag_check_new_files_at_startup=f),type:"checkbox",onChange:e[135]||(e[135]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_check_new_files_at_startup]])])]),l("tr",null,[e[572]||(e[572]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_preprocess_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Preprocess chunks:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[136]||(e[136]=f=>r.configFile.rag_preprocess_chunks=f),type:"checkbox",onChange:e[137]||(e[137]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_preprocess_chunks]])])]),l("tr",null,[e[573]||(e[573]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_activate_multi_hops",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate multi hops RAG:")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[138]||(e[138]=f=>r.configFile.rag_activate_multi_hops=f),type:"checkbox",onChange:e[139]||(e[139]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_activate_multi_hops]])])]),l("tr",null,[e[574]||(e[574]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"contextual_summary",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use contextual summary instead of rag (consumes alot of tokens and may be very slow but efficient, useful for summary and global questions that RAG can't do):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[140]||(e[140]=f=>r.configFile.contextual_summary=f),type:"checkbox",onChange:e[141]||(e[141]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.contextual_summary]])])]),l("tr",null,[e[575]||(e[575]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"rag_deactivate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Useful for very big contexts and global tasks that require the whole document"},"Use all the document content (No split):")],-1)),l("td",null,[k(l("input",{"onUpdate:modelValue":e[142]||(e[142]=f=>r.configFile.rag_deactivate=f),type:"checkbox",onChange:e[143]||(e[143]=f=>s.settingsChanged=!0),class:"w-5 mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.rag_deactivate]])])])])]),_:1}),z(a,{title:"Data Vectorization",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Hst,[l("tr",null,[e[576]||(e[576]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save vectorized database:")],-1)),l("td",null,[l("div",qst,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[144]||(e[144]=f=>r.configFile.data_vectorization_save_db=f),onChange:e[145]||(e[145]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[577]||(e[577]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_visualize_on_vectorization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"show vectorized data:")],-1)),l("td",null,[l("div",Yst,[k(l("input",{type:"checkbox",id:"data_vectorization_visualize_on_vectorization",required:"","onUpdate:modelValue":e[146]||(e[146]=f=>r.configFile.data_vectorization_visualize_on_vectorization=f),onChange:e[147]||(e[147]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_visualize_on_vectorization]])])])]),l("tr",null,[e[578]||(e[578]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_build_keys_words",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reformulate prompt before querying database (advised):")],-1)),l("td",null,[l("div",$st,[k(l("input",{type:"checkbox",id:"data_vectorization_build_keys_words",required:"","onUpdate:modelValue":e[148]||(e[148]=f=>r.configFile.data_vectorization_build_keys_words=f),onChange:e[149]||(e[149]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_build_keys_words]])])])]),l("tr",null,[e[579]||(e[579]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_force_first_chunk",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Force adding the first chunk of the file to the context:")],-1)),l("td",null,[l("div",Wst,[k(l("input",{type:"checkbox",id:"data_vectorization_force_first_chunk",required:"","onUpdate:modelValue":e[150]||(e[150]=f=>r.configFile.data_vectorization_force_first_chunk=f),onChange:e[151]||(e[151]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_force_first_chunk]])])])]),l("tr",null,[e[580]||(e[580]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_put_chunk_informations_into_context",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Put Chunk Information Into Context:")],-1)),l("td",null,[l("div",Kst,[k(l("input",{type:"checkbox",id:"data_vectorization_put_chunk_informations_into_context",required:"","onUpdate:modelValue":e[152]||(e[152]=f=>r.configFile.data_vectorization_put_chunk_informations_into_context=f),onChange:e[153]||(e[153]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_put_chunk_informations_into_context]])])])]),l("tr",null,[e[582]||(e[582]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization method:")],-1)),l("td",null,[k(l("select",{id:"data_vectorization_method",required:"","onUpdate:modelValue":e[154]||(e[154]=f=>r.configFile.data_vectorization_method=f),onChange:e[155]||(e[155]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[581]||(e[581]=[l("option",{value:"tfidf_vectorizer"},"tfidf Vectorizer",-1),l("option",{value:"bm25_vectorizer"},"bm25 Vectorizer",-1),l("option",{value:"model_embedding"},"Model Embedding",-1),l("option",{value:"sentense_transformer"},"Sentense Transformer",-1)]),544),[[It,r.configFile.data_vectorization_method]])])]),l("tr",null,[e[583]||(e[583]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_sentense_transformer_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization model (for Sentense Transformer):")],-1)),l("td",jst,[k(l("input",{type:"text",id:"data_vectorization_sentense_transformer_model",required:"","onUpdate:modelValue":e[156]||(e[156]=f=>r.configFile.data_vectorization_sentense_transformer_model=f),onChange:e[157]||(e[157]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_sentense_transformer_model]])])]),l("tr",null,[e[585]||(e[585]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_visualization_method",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data visualization method:")],-1)),l("td",null,[k(l("select",{id:"data_visualization_method",required:"","onUpdate:modelValue":e[158]||(e[158]=f=>r.configFile.data_visualization_method=f),onChange:e[159]||(e[159]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[584]||(e[584]=[l("option",{value:"PCA"},"PCA",-1),l("option",{value:"TSNE"},"TSNE",-1)]),544),[[It,r.configFile.data_visualization_method]])])]),l("tr",null,[e[586]||(e[586]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_save_db",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Save the new files to the database (The database wil always grow and continue to be the same over many sessions):")],-1)),l("td",null,[l("div",Qst,[k(l("input",{type:"checkbox",id:"data_vectorization_save_db",required:"","onUpdate:modelValue":e[160]||(e[160]=f=>r.configFile.data_vectorization_save_db=f),onChange:e[161]||(e[161]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.data_vectorization_save_db]])])])]),l("tr",null,[e[587]||(e[587]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization chunk size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_chunk_size","onUpdate:modelValue":e[162]||(e[162]=f=>r.configFile.data_vectorization_chunk_size=f),onChange:e[163]||(e[163]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.data_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[164]||(e[164]=f=>r.configFile.data_vectorization_chunk_size=f),type:"number",onChange:e[165]||(e[165]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_chunk_size]])])]),l("tr",null,[e[588]||(e[588]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Data vectorization overlap size(tokens):")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_overlap_size","onUpdate:modelValue":e[166]||(e[166]=f=>r.configFile.data_vectorization_overlap_size=f),onChange:e[167]||(e[167]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.data_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[168]||(e[168]=f=>r.configFile.data_vectorization_overlap_size=f),type:"number",onChange:e[169]||(e[169]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_overlap_size]])])]),l("tr",null,[e[589]||(e[589]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"data_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Number of chunks to use for each message:")],-1)),l("td",null,[k(l("input",{id:"data_vectorization_nb_chunks","onUpdate:modelValue":e[170]||(e[170]=f=>r.configFile.data_vectorization_nb_chunks=f),onChange:e[171]||(e[171]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.data_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[172]||(e[172]=f=>r.configFile.data_vectorization_nb_chunks=f),type:"number",onChange:e[173]||(e[173]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.data_vectorization_nb_chunks]])])])])]),_:1})],2)]),l("div",Xst,[l("div",Zst,[l("button",{onClick:e[174]||(e[174]=W(f=>s.internet_conf_collapsed=!s.internet_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[590]||(e[590]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.internet_conf_collapsed]]),k(l("div",null,e[591]||(e[591]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.internet_conf_collapsed]]),e[592]||(e[592]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Internet",-1))])]),l("div",{class:Ue([{hidden:s.internet_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Internet search",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Jst,[l("tr",null,[e[593]||(e[593]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate automatic internet search (for every prompt):")],-1)),l("td",null,[l("div",ert,[k(l("input",{type:"checkbox",id:"fun_mode",required:"","onUpdate:modelValue":e[175]||(e[175]=f=>r.configFile.activate_internet_search=f),onChange:e[176]||(e[176]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_internet_search]])])])]),l("tr",null,[e[594]||(e[594]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_internet_pages_judgement",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate internet pages judgement:")],-1)),l("td",null,[l("div",trt,[k(l("input",{type:"checkbox",id:"activate_internet_pages_judgement",required:"","onUpdate:modelValue":e[177]||(e[177]=f=>r.configFile.activate_internet_pages_judgement=f),onChange:e[178]||(e[178]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_internet_pages_judgement]])])])]),l("tr",null,[e[595]||(e[595]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_quick_search",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate quick search:")],-1)),l("td",null,[l("div",nrt,[k(l("input",{type:"checkbox",id:"internet_quick_search",required:"","onUpdate:modelValue":e[179]||(e[179]=f=>r.configFile.internet_quick_search=f),onChange:e[180]||(e[180]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.internet_quick_search]])])])]),l("tr",null,[e[596]||(e[596]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_activate_search_decision",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate search decision:")],-1)),l("td",null,[l("div",irt,[k(l("input",{type:"checkbox",id:"internet_activate_search_decision",required:"","onUpdate:modelValue":e[181]||(e[181]=f=>r.configFile.internet_activate_search_decision=f),onChange:e[182]||(e[182]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.internet_activate_search_decision]])])])]),l("tr",null,[e[597]||(e[597]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization chunk size:")],-1)),l("td",null,[l("div",srt,[k(l("input",{id:"internet_vectorization_chunk_size","onUpdate:modelValue":e[183]||(e[183]=f=>r.configFile.internet_vectorization_chunk_size=f),onChange:e[184]||(e[184]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"64000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_vectorization_chunk_size]]),k(l("input",{"onUpdate:modelValue":e[185]||(e[185]=f=>r.configFile.internet_vectorization_chunk_size=f),type:"number",onChange:e[186]||(e[186]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_vectorization_chunk_size]])])])]),l("tr",null,[e[598]||(e[598]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_overlap_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization overlap size:")],-1)),l("td",null,[l("div",rrt,[k(l("input",{id:"internet_vectorization_overlap_size","onUpdate:modelValue":e[187]||(e[187]=f=>r.configFile.internet_vectorization_overlap_size=f),onChange:e[188]||(e[188]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"1000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_vectorization_overlap_size]]),k(l("input",{"onUpdate:modelValue":e[189]||(e[189]=f=>r.configFile.internet_vectorization_overlap_size=f),type:"number",onChange:e[190]||(e[190]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_vectorization_overlap_size]])])])]),l("tr",null,[e[599]||(e[599]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_vectorization_nb_chunks",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet vectorization number of chunks:")],-1)),l("td",null,[l("div",ort,[k(l("input",{id:"internet_vectorization_nb_chunks","onUpdate:modelValue":e[191]||(e[191]=f=>r.configFile.internet_vectorization_nb_chunks=f),onChange:e[192]||(e[192]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_vectorization_nb_chunks]]),k(l("input",{"onUpdate:modelValue":e[193]||(e[193]=f=>r.configFile.internet_vectorization_nb_chunks=f),type:"number",onChange:e[194]||(e[194]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_vectorization_nb_chunks]])])])]),l("tr",null,[e[600]||(e[600]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"internet_nb_search_pages",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Internet number of search pages:")],-1)),l("td",null,[l("div",art,[k(l("input",{id:"internet_nb_search_pages","onUpdate:modelValue":e[195]||(e[195]=f=>r.configFile.internet_nb_search_pages=f),onChange:e[196]||(e[196]=f=>s.settingsChanged=!0),type:"range",min:"1",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.internet_nb_search_pages]]),k(l("input",{"onUpdate:modelValue":e[197]||(e[197]=f=>r.configFile.internet_nb_search_pages=f),type:"number",onChange:e[198]||(e[198]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.internet_nb_search_pages]])])])])])]),_:1})],2)]),l("div",lrt,[l("div",crt,[l("button",{onClick:e[199]||(e[199]=W(f=>s.servers_conf_collapsed=!s.servers_conf_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[601]||(e[601]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.servers_conf_collapsed]]),k(l("div",null,e[602]||(e[602]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.servers_conf_collapsed]]),e[603]||(e[603]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Services Zoo",-1))])]),l("div",{class:Ue([{hidden:s.servers_conf_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[z(a,{title:"Default services selection",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",drt,[l("tr",null,[e[605]||(e[605]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tts_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTS Service:")],-1)),l("td",urt,[k(l("select",{id:"active_tts_service",required:"","onUpdate:modelValue":e[200]||(e[200]=f=>r.configFile.active_tts_service=f),onChange:e[201]||(e[201]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[604]||(e[604]=[l("option",{value:"None"},"None",-1),l("option",{value:"browser"},"Use Browser TTS (doesn't work in realtime mode)",-1),l("option",{value:"xtts"},"XTTS",-1),l("option",{value:"parler-tts"},"Parler-TTS",-1),l("option",{value:"openai_tts"},"Open AI TTS",-1),l("option",{value:"eleven_labs_tts"},"ElevenLabs TTS",-1),l("option",{value:"fish_tts"},"Fish TTS",-1)]),544),[[It,r.configFile.active_tts_service]])])]),l("tr",null,[e[607]||(e[607]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_stt_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Speach to Text engine"},"Active STT Service:")],-1)),l("td",prt,[k(l("select",{id:"active_stt_service",required:"","onUpdate:modelValue":e[202]||(e[202]=f=>r.configFile.active_stt_service=f),onChange:e[203]||(e[203]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[606]||(e[606]=[l("option",{value:"None"},"None",-1),l("option",{value:"whisper"},"Whisper",-1),l("option",{value:"openai_whisper"},"Open AI Whisper",-1)]),544),[[It,r.configFile.active_stt_service]])])]),e[614]||(e[614]=l("tr",null,null,-1)),l("tr",null,[e[609]||(e[609]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_tti_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to image engine"},"Active TTI Service:")],-1)),l("td",frt,[k(l("select",{id:"active_tti_service",required:"","onUpdate:modelValue":e[204]||(e[204]=f=>r.configFile.active_tti_service=f),onChange:e[205]||(e[205]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[608]||(e[608]=[l("option",{value:"None"},"None",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"diffusers_client"},"Diffusers Client",-1),l("option",{value:"autosd"},"AUTO1111's SD",-1),l("option",{value:"dall-e"},"Open AI DALL-E",-1),l("option",{value:"midjourney"},"Midjourney",-1),l("option",{value:"comfyui"},"Comfyui",-1),l("option",{value:"fooocus"},"Fooocus",-1)]),544),[[It,r.configFile.active_tti_service]])])]),l("tr",null,[e[611]||(e[611]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to Music engine"},"Active TTM Service:")],-1)),l("td",_rt,[k(l("select",{id:"active_ttm_service",required:"","onUpdate:modelValue":e[206]||(e[206]=f=>r.configFile.active_ttm_service=f),onChange:e[207]||(e[207]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[610]||(e[610]=[l("option",{value:"None"},"None",-1),l("option",{value:"musicgen"},"Music Gen",-1)]),544),[[It,r.configFile.active_ttm_service]])])]),l("tr",null,[e[613]||(e[613]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"active_ttv_service",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Default Text to speach engine"},"Active TTV Service:")],-1)),l("td",mrt,[k(l("select",{id:"active_ttv_service",required:"","onUpdate:modelValue":e[208]||(e[208]=f=>r.configFile.active_ttv_service=f),onChange:e[209]||(e[209]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},e[612]||(e[612]=[l("option",{value:"None"},"None",-1),l("option",{value:"cog_video_x"},"Cog Video X",-1),l("option",{value:"diffusers"},"Diffusers",-1),l("option",{value:"lumalab"},"Lumalab",-1)]),544),[[It,r.configFile.active_ttv_service]])])])])]),_:1}),z(a,{title:"TTI settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",hrt,[l("tr",null,[e[615]||(e[615]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use negative prompt:")],-1)),l("td",null,[l("div",grt,[k(l("input",{type:"checkbox",id:"use_negative_prompt",required:"","onUpdate:modelValue":e[210]||(e[210]=f=>r.configFile.use_negative_prompt=f),onChange:e[211]||(e[211]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_negative_prompt]])])])]),l("tr",null,[e[616]||(e[616]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"use_ai_generated_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Use AI generated negative prompt:")],-1)),l("td",null,[l("div",brt,[k(l("input",{type:"checkbox",id:"use_ai_generated_negative_prompt",required:"","onUpdate:modelValue":e[212]||(e[212]=f=>r.configFile.use_ai_generated_negative_prompt=f),onChange:e[213]||(e[213]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.use_ai_generated_negative_prompt]])])])]),l("tr",null,[e[617]||(e[617]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"negative_prompt_generation_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Negative prompt generation prompt:")],-1)),l("td",null,[l("div",yrt,[k(l("input",{type:"text",id:"negative_prompt_generation_prompt",required:"","onUpdate:modelValue":e[214]||(e[214]=f=>r.configFile.negative_prompt_generation_prompt=f),onChange:e[215]||(e[215]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.negative_prompt_generation_prompt]])])])]),l("tr",null,[e[618]||(e[618]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"default_negative_prompt",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Default negative prompt:")],-1)),l("td",null,[l("div",Ert,[k(l("input",{type:"text",id:"default_negative_prompt",required:"","onUpdate:modelValue":e[216]||(e[216]=f=>r.configFile.default_negative_prompt=f),onChange:e[217]||(e[217]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.default_negative_prompt]])])])])])]),_:1}),z(a,{title:"Full Audio settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",vrt,[l("tr",null,[e[619]||(e[619]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_listening_threshold",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Listening threshold"},"Listening threshold:")],-1)),l("td",Srt,[k(l("input",{type:"number",step:"1",id:"stt_listening_threshold",required:"","onUpdate:modelValue":e[218]||(e[218]=f=>r.configFile.stt_listening_threshold=f),onChange:e[219]||(e[219]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_listening_threshold]])])]),l("tr",null,[e[620]||(e[620]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_silence_duration",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Scilence duration"},"Silence duration (s):")],-1)),l("td",Trt,[k(l("input",{type:"number",step:"1",id:"stt_silence_duration",required:"","onUpdate:modelValue":e[220]||(e[220]=f=>r.configFile.stt_silence_duration=f),onChange:e[221]||(e[221]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_silence_duration]])])]),l("tr",null,[e[621]||(e[621]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_sound_threshold_percentage",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"stt_sound_threshold_percentage"},"Minimum sound percentage in recorded segment:")],-1)),l("td",xrt,[k(l("input",{type:"number",step:"1",id:"stt_sound_threshold_percentage",required:"","onUpdate:modelValue":e[222]||(e[222]=f=>r.configFile.stt_sound_threshold_percentage=f),onChange:e[223]||(e[223]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_sound_threshold_percentage]])])]),l("tr",null,[e[622]||(e[622]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_gain",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"STT Gain"},"Volume amplification:")],-1)),l("td",Crt,[k(l("input",{type:"number",step:"1",id:"stt_gain",required:"","onUpdate:modelValue":e[224]||(e[224]=f=>r.configFile.stt_gain=f),onChange:e[225]||(e[225]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_gain]])])]),l("tr",null,[e[623]||(e[623]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_rate",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Audio Rate"},"audio rate:")],-1)),l("td",wrt,[k(l("input",{type:"number",step:"1",id:"stt_rate",required:"","onUpdate:modelValue":e[226]||(e[226]=f=>r.configFile.stt_rate=f),onChange:e[227]||(e[227]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_rate]])])]),l("tr",null,[e[624]||(e[624]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_channels",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"number of channels"},"number of channels:")],-1)),l("td",Rrt,[k(l("input",{type:"number",step:"1",id:"stt_channels",required:"","onUpdate:modelValue":e[228]||(e[228]=f=>r.configFile.stt_channels=f),onChange:e[229]||(e[229]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_channels]])])]),l("tr",null,[e[625]||(e[625]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_buffer_size",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Buffer size"},"Buffer size:")],-1)),l("td",Art,[k(l("input",{type:"number",step:"1",id:"stt_buffer_size",required:"","onUpdate:modelValue":e[230]||(e[230]=f=>r.configFile.stt_buffer_size=f),onChange:e[231]||(e[231]=f=>s.settingsChanged=!0),class:"w-full w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600 dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_buffer_size]])])]),l("tr",null,[e[626]||(e[626]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_activate_word_detection",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate word detection:")],-1)),l("td",null,[l("div",Mrt,[k(l("input",{type:"checkbox",id:"stt_activate_word_detection",required:"","onUpdate:modelValue":e[232]||(e[232]=f=>r.configFile.stt_activate_word_detection=f),onChange:e[233]||(e[233]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.stt_activate_word_detection]])])])]),l("tr",null,[e[627]||(e[627]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_word_detection_file",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Word detection wav file:")],-1)),l("td",null,[l("div",Nrt,[k(l("input",{type:"text",id:"stt_word_detection_file",required:"","onUpdate:modelValue":e[234]||(e[234]=f=>r.configFile.stt_word_detection_file=f),onChange:e[235]||(e[235]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.stt_word_detection_file]])])])])])]),_:1}),z(a,{title:"Audio devices settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Ort,[l("tr",null,[e[628]||(e[628]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"stt_input_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Input device:")],-1)),l("td",Irt,[k(l("select",{id:"stt_input_device",required:"","onUpdate:modelValue":e[236]||(e[236]=f=>r.configFile.stt_input_device=f),onChange:e[237]||(e[237]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.snd_input_devices,(f,y)=>(T(),w("option",{key:f,value:s.snd_input_devices_indexes[y]},$(f),9,krt))),128))],544),[[It,r.configFile.stt_input_device]])])]),l("tr",null,[e[629]||(e[629]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"tts_output_device",class:"text-sm font-bold",style:{"margin-right":"1rem"},title:"Input device"},"Audio Output device:")],-1)),l("td",Drt,[k(l("select",{id:"tts_output_device",required:"","onUpdate:modelValue":e[238]||(e[238]=f=>r.configFile.tts_output_device=f),onChange:e[239]||(e[239]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.snd_output_devices,(f,y)=>(T(),w("option",{key:f,value:s.snd_output_devices_indexes[y]},$(f),9,Lrt))),128))],544),[[It,r.configFile.tts_output_device]])])])])]),_:1}),z(a,{title:"Lollms service",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Prt,[l("tr",null,[e[630]||(e[630]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"host",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Host:")],-1)),l("td",Frt,[k(l("input",{type:"text",id:"host",required:"","onUpdate:modelValue":e[240]||(e[240]=f=>r.configFile.host=f),onChange:e[241]||(e[241]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.host]])])]),l("tr",null,[e[631]||(e[631]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lollms_access_keys",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Access keys:")],-1)),l("td",Urt,[z(o,{modelValue:r.configFile.lollms_access_keys,"onUpdate:modelValue":e[242]||(e[242]=f=>r.configFile.lollms_access_keys=f),onChange:e[243]||(e[243]=f=>s.settingsChanged=!0),placeholder:"Enter access key"},null,8,["modelValue"])])]),l("tr",null,[e[632]||(e[632]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"port",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Port:")],-1)),l("td",Brt,[k(l("input",{type:"number",step:"1",id:"port",required:"","onUpdate:modelValue":e[244]||(e[244]=f=>r.configFile.port=f),onChange:e[245]||(e[245]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.port]])])]),l("tr",null,[e[633]||(e[633]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"headless_server_mode",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate headless server mode:")],-1)),l("td",Grt,[k(l("input",{type:"checkbox",id:"headless_server_mode",required:"","onUpdate:modelValue":e[246]||(e[246]=f=>r.configFile.headless_server_mode=f),onChange:e[247]||(e[247]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.headless_server_mode]])])]),l("tr",null,[e[634]||(e[634]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms server:")],-1)),l("td",Vrt,[k(l("input",{type:"checkbox",id:"activate_lollms_server",required:"","onUpdate:modelValue":e[248]||(e[248]=f=>r.configFile.activate_lollms_server=f),onChange:e[249]||(e[249]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_server]])])]),l("tr",null,[e[635]||(e[635]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_rag_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms RAG server:")],-1)),l("td",zrt,[k(l("input",{type:"checkbox",id:"activate_lollms_rag_server",required:"","onUpdate:modelValue":e[250]||(e[250]=f=>r.configFile.activate_lollms_rag_server=f),onChange:e[251]||(e[251]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_rag_server]])])]),l("tr",null,[e[636]||(e[636]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tts_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTS server:")],-1)),l("td",Hrt,[k(l("input",{type:"checkbox",id:"activate_lollms_tts_server",required:"","onUpdate:modelValue":e[252]||(e[252]=f=>r.configFile.activate_lollms_tts_server=f),onChange:e[253]||(e[253]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_tts_server]])])]),l("tr",null,[e[637]||(e[637]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_stt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms STT server:")],-1)),l("td",qrt,[k(l("input",{type:"checkbox",id:"activate_lollms_stt_server",required:"","onUpdate:modelValue":e[254]||(e[254]=f=>r.configFile.activate_lollms_stt_server=f),onChange:e[255]||(e[255]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_stt_server]])])]),l("tr",null,[e[638]||(e[638]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_tti_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTI server:")],-1)),l("td",Yrt,[k(l("input",{type:"checkbox",id:"activate_lollms_tti_server",required:"","onUpdate:modelValue":e[256]||(e[256]=f=>r.configFile.activate_lollms_tti_server=f),onChange:e[257]||(e[257]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_tti_server]])])]),l("tr",null,[e[639]||(e[639]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_itt_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms ITT server:")],-1)),l("td",$rt,[k(l("input",{type:"checkbox",id:"activate_lollms_itt_server",required:"","onUpdate:modelValue":e[258]||(e[258]=f=>r.configFile.activate_lollms_itt_server=f),onChange:e[259]||(e[259]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_itt_server]])])]),l("tr",null,[e[640]||(e[640]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_lollms_ttm_server",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate lollms TTM server:")],-1)),l("td",Wrt,[k(l("input",{type:"checkbox",id:"activate_lollms_ttm_server",required:"","onUpdate:modelValue":e[260]||(e[260]=f=>r.configFile.activate_lollms_ttm_server=f),onChange:e[261]||(e[261]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_lollms_ttm_server]])])]),l("tr",null,[e[641]||(e[641]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_ollama_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate ollama server emulator:")],-1)),l("td",Krt,[k(l("input",{type:"checkbox",id:"activate_ollama_emulator",required:"","onUpdate:modelValue":e[262]||(e[262]=f=>r.configFile.activate_ollama_emulator=f),onChange:e[263]||(e[263]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_ollama_emulator]])])]),l("tr",null,[e[642]||(e[642]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_openai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate openai server emulator:")],-1)),l("td",jrt,[k(l("input",{type:"checkbox",id:"activate_openai_emulator",required:"","onUpdate:modelValue":e[264]||(e[264]=f=>r.configFile.activate_openai_emulator=f),onChange:e[265]||(e[265]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_openai_emulator]])])]),l("tr",null,[e[643]||(e[643]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_mistralai_emulator",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate mistral ai server emulator:")],-1)),l("td",Qrt,[k(l("input",{type:"checkbox",id:"activate_mistralai_emulator",required:"","onUpdate:modelValue":e[266]||(e[266]=f=>r.configFile.activate_mistralai_emulator=f),onChange:e[267]||(e[267]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_mistralai_emulator]])])])])]),_:1}),z(a,{title:"STT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio STT",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Xrt,[l("tr",null,[e[644]||(e[644]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"activate_audio_infos",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate audio infos:")],-1)),l("td",null,[l("div",Zrt,[k(l("input",{type:"checkbox",id:"activate_audio_infos",required:"","onUpdate:modelValue":e[268]||(e[268]=f=>r.configFile.activate_audio_infos=f),onChange:e[269]||(e[269]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.activate_audio_infos]])])])]),l("tr",null,[e[645]||(e[645]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_auto_send_input",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Send audio input automatically:")],-1)),l("td",null,[l("div",Jrt,[k(l("input",{type:"checkbox",id:"audio_auto_send_input",required:"","onUpdate:modelValue":e[270]||(e[270]=f=>r.configFile.audio_auto_send_input=f),onChange:e[271]||(e[271]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.audio_auto_send_input]])])])]),l("tr",null,[e[646]||(e[646]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_silenceTimer",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio in silence timer (ms):")],-1)),l("td",null,[k(l("input",{id:"audio_silenceTimer","onUpdate:modelValue":e[272]||(e[272]=f=>r.configFile.audio_silenceTimer=f),onChange:e[273]||(e[273]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"10000",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.audio_silenceTimer]]),k(l("input",{"onUpdate:modelValue":e[274]||(e[274]=f=>r.configFile.audio_silenceTimer=f),onChange:e[275]||(e[275]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.audio_silenceTimer]])])]),l("tr",null,[e[647]||(e[647]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_in_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Input Audio Language:")],-1)),l("td",null,[k(l("select",{id:"audio_in_language","onUpdate:modelValue":e[276]||(e[276]=f=>r.configFile.audio_in_language=f),onChange:e[277]||(e[277]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(r.audioLanguages,f=>(T(),w("option",{key:f.code,value:f.code},$(f.name),9,eot))),128))],544),[[It,r.configFile.audio_in_language]])])])])]),_:1}),z(a,{title:"Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",tot,[l("tr",null,[e[648]||(e[648]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_activate",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Activate Whisper at startup:")],-1)),l("td",null,[l("div",not,[k(l("input",{type:"checkbox",id:"whisper_activate",required:"","onUpdate:modelValue":e[278]||(e[278]=f=>r.configFile.whisper_activate=f),onChange:e[279]||(e[279]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.whisper_activate]])])])]),l("tr",null,[e[649]||(e[649]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}})],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[280]||(e[280]=(...f)=>r.reinstallWhisperService&&r.reinstallWhisperService(...f))},"install whisper")])]),l("tr",null,[e[650]||(e[650]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Whisper model:")],-1)),l("td",null,[l("div",iot,[k(l("select",{id:"whisper_model","onUpdate:modelValue":e[281]||(e[281]=f=>r.configFile.whisper_model=f),onChange:e[282]||(e[282]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(r.whisperModels,f=>(T(),w("option",{key:f,value:f},$(f),9,sot))),128))],544),[[It,r.configFile.whisper_model]])])])])])]),_:1}),z(a,{title:"Open AI Whisper audio transcription",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",rot,[l("tr",null,[e[651]||(e[651]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai whisper key:")],-1)),l("td",null,[l("div",oot,[k(l("input",{type:"text",id:"openai_whisper_key",required:"","onUpdate:modelValue":e[283]||(e[283]=f=>r.configFile.openai_whisper_key=f),onChange:e[284]||(e[284]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.openai_whisper_key]])])])]),l("tr",null,[e[652]||(e[652]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_whisper_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open Ai Whisper model:")],-1)),l("td",null,[l("div",aot,[k(l("select",{id:"openai_whisper_model","onUpdate:modelValue":e[285]||(e[285]=f=>r.configFile.openai_whisper_model=f),onChange:e[286]||(e[286]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(r.openaiWhisperModels,f=>(T(),w("option",{key:f,value:f},$(f),9,lot))),128))],544),[[It,r.configFile.openai_whisper_model]])])])])])]),_:1})]),_:1}),z(a,{title:"TTS services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Browser Audio TTS",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",cot,[l("tr",null,[e[653]||(e[653]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_speak",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto speak:")],-1)),l("td",null,[l("div",dot,[k(l("input",{type:"checkbox",id:"auto_speak",required:"","onUpdate:modelValue":e[287]||(e[287]=f=>r.configFile.auto_speak=f),onChange:e[288]||(e[288]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_speak]])])])]),l("tr",null,[e[654]||(e[654]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_pitch",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"audio pitch:")],-1)),l("td",null,[k(l("input",{id:"audio_pitch","onUpdate:modelValue":e[289]||(e[289]=f=>r.configFile.audio_pitch=f),onChange:e[290]||(e[290]=f=>s.settingsChanged=!0),type:"range",min:"0",max:"10",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.audio_pitch]]),k(l("input",{"onUpdate:modelValue":e[291]||(e[291]=f=>r.configFile.audio_pitch=f),onChange:e[292]||(e[292]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.audio_pitch]])])]),l("tr",null,[e[655]||(e[655]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"audio_out_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Output Audio Voice:")],-1)),l("td",null,[k(l("select",{id:"audio_out_voice","onUpdate:modelValue":e[293]||(e[293]=f=>r.configFile.audio_out_voice=f),onChange:e[294]||(e[294]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.audioVoices,f=>(T(),w("option",{key:f.name,value:f.name},$(f.name),9,uot))),128))],544),[[It,r.configFile.audio_out_voice]])])])])]),_:1}),z(a,{title:"XTTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",pot,[l("tr",null,[e[656]||(e[656]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[295]||(e[295]=(...f)=>r.reinstallXTTSService&&r.reinstallXTTSService(...f))},"install xtts service")])]),l("tr",null,[e[657]||(e[657]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_language",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current language:")],-1)),l("td",null,[l("div",fot,[k(l("select",{"onUpdate:modelValue":e[296]||(e[296]=f=>r.xtts_current_language=f),onChange:e[297]||(e[297]=f=>s.settingsChanged=!0)},[(T(!0),w(Be,null,Xe(s.voice_languages,(f,y)=>(T(),w("option",{key:y,value:f},$(y),9,_ot))),128))],544),[[It,r.xtts_current_language]])])])]),l("tr",null,[e[658]||(e[658]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_current_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Current voice:")],-1)),l("td",null,[l("div",mot,[k(l("select",{"onUpdate:modelValue":e[298]||(e[298]=f=>r.xtts_current_voice=f),onChange:e[299]||(e[299]=f=>s.settingsChanged=!0)},[(T(!0),w(Be,null,Xe(s.voices,f=>(T(),w("option",{key:f,value:f},$(f),9,hot))),128))],544),[[It,r.xtts_current_voice]])])])]),l("tr",null,[e[659]||(e[659]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_freq",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Frequency (controls the tone):")],-1)),l("td",null,[l("div",got,[k(l("input",{type:"number",id:"xtts_freq",required:"","onUpdate:modelValue":e[300]||(e[300]=f=>r.configFile.xtts_freq=f),onChange:e[301]||(e[301]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ue,r.configFile.xtts_freq,void 0,{number:!0}]])])])]),l("tr",null,[e[660]||(e[660]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"auto_read",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable auto read:")],-1)),l("td",null,[l("div",bot,[k(l("input",{type:"checkbox",id:"auto_read",required:"","onUpdate:modelValue":e[302]||(e[302]=f=>r.configFile.auto_read=f),onChange:e[303]||(e[303]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.auto_read]])])])]),l("tr",null,[e[661]||(e[661]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_stream_chunk_size",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"xtts stream chunk size:")],-1)),l("td",null,[l("div",yot,[k(l("input",{type:"text",id:"xtts_stream_chunk_size",required:"","onUpdate:modelValue":e[304]||(e[304]=f=>r.configFile.xtts_stream_chunk_size=f),onChange:e[305]||(e[305]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.xtts_stream_chunk_size]])])])]),l("tr",null,[e[662]||(e[662]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_temperature",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Temperature:")],-1)),l("td",null,[l("div",Eot,[k(l("input",{type:"number",id:"xtts_temperature",required:"","onUpdate:modelValue":e[306]||(e[306]=f=>r.configFile.xtts_temperature=f),onChange:e[307]||(e[307]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.01"},null,544),[[ue,r.configFile.xtts_temperature,void 0,{number:!0}]])])])]),l("tr",null,[e[663]||(e[663]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_length_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Length Penalty:")],-1)),l("td",null,[l("div",vot,[k(l("input",{type:"number",id:"xtts_length_penalty",required:"","onUpdate:modelValue":e[308]||(e[308]=f=>r.configFile.xtts_length_penalty=f),onChange:e[309]||(e[309]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ue,r.configFile.xtts_length_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[664]||(e[664]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_repetition_penalty",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Repetition Penalty:")],-1)),l("td",null,[l("div",Sot,[k(l("input",{type:"number",id:"xtts_repetition_penalty",required:"","onUpdate:modelValue":e[310]||(e[310]=f=>r.configFile.xtts_repetition_penalty=f),onChange:e[311]||(e[311]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ue,r.configFile.xtts_repetition_penalty,void 0,{number:!0}]])])])]),l("tr",null,[e[665]||(e[665]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_k",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top K:")],-1)),l("td",null,[l("div",Tot,[k(l("input",{type:"number",id:"xtts_top_k",required:"","onUpdate:modelValue":e[312]||(e[312]=f=>r.configFile.xtts_top_k=f),onChange:e[313]||(e[313]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.xtts_top_k,void 0,{number:!0}]])])])]),l("tr",null,[e[666]||(e[666]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_top_p",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Top P:")],-1)),l("td",null,[l("div",xot,[k(l("input",{type:"number",id:"xtts_top_p",required:"","onUpdate:modelValue":e[314]||(e[314]=f=>r.configFile.xtts_top_p=f),onChange:e[315]||(e[315]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.xtts_top_p,void 0,{number:!0}]])])])]),l("tr",null,[e[667]||(e[667]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"xtts_speed",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Speed:")],-1)),l("td",null,[l("div",Cot,[k(l("input",{type:"number",id:"xtts_speed",required:"","onUpdate:modelValue":e[316]||(e[316]=f=>r.configFile.xtts_speed=f),onChange:e[317]||(e[317]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1"},null,544),[[ue,r.configFile.xtts_speed,void 0,{number:!0}]])])])]),l("tr",null,[e[668]||(e[668]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_text_splitting",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable Text Splitting:")],-1)),l("td",null,[l("div",wot,[k(l("input",{type:"checkbox",id:"enable_text_splitting","onUpdate:modelValue":e[318]||(e[318]=f=>r.configFile.enable_text_splitting=f),onChange:e[319]||(e[319]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_text_splitting]])])])])])]),_:1}),z(a,{title:"Open AI TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Rot,[l("tr",null,[e[669]||(e[669]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Open AI key:")],-1)),l("td",null,[l("div",Aot,[k(l("input",{type:"text",id:"openai_tts_key",required:"","onUpdate:modelValue":e[320]||(e[320]=f=>r.configFile.openai_tts_key=f),onChange:e[321]||(e[321]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.openai_tts_key]])])])]),l("tr",null,[e[671]||(e[671]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts model:")],-1)),l("td",null,[l("div",Mot,[k(l("select",{"onUpdate:modelValue":e[322]||(e[322]=f=>r.configFile.openai_tts_model=f),onChange:e[323]||(e[323]=f=>s.settingsChanged=!0)},e[670]||(e[670]=[l("option",null," tts-1 ",-1),l("option",null," tts-2 ",-1)]),544),[[It,r.configFile.openai_tts_model]])])])]),l("tr",null,[e[673]||(e[673]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"openai_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"openai tts voice:")],-1)),l("td",null,[l("div",Not,[k(l("select",{"onUpdate:modelValue":e[324]||(e[324]=f=>r.configFile.openai_tts_voice=f),onChange:e[325]||(e[325]=f=>s.settingsChanged=!0)},e[672]||(e[672]=[l("option",null," alloy ",-1),l("option",null," echo ",-1),l("option",null," fable ",-1),l("option",null," nova ",-1),l("option",null," shimmer ",-1)]),544),[[It,r.configFile.openai_tts_voice]])])])])])]),_:1}),z(a,{title:"Eleven Labs TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Oot,[l("tr",null,[e[674]||(e[674]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs key:")],-1)),l("td",null,[l("div",Iot,[k(l("input",{type:"text",id:"elevenlabs_tts_key",required:"","onUpdate:modelValue":e[326]||(e[326]=f=>r.configFile.elevenlabs_tts_key=f),onChange:e[327]||(e[327]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.elevenlabs_tts_key]])])])]),l("tr",null,[e[675]||(e[675]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_model_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Eleven Labs TTS model ID:")],-1)),l("td",null,[l("div",kot,[k(l("input",{type:"text",id:"elevenlabs_tts_model_id",required:"","onUpdate:modelValue":e[328]||(e[328]=f=>r.configFile.elevenlabs_tts_model_id=f),onChange:e[329]||(e[329]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.elevenlabs_tts_model_id]])])])]),l("tr",null,[e[676]||(e[676]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_stability",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Stability:")],-1)),l("td",null,[l("div",Dot,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_stability",required:"","onUpdate:modelValue":e[330]||(e[330]=f=>r.configFile.elevenlabs_tts_voice_stability=f),onChange:e[331]||(e[331]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ue,r.configFile.elevenlabs_tts_voice_stability]])])])]),l("tr",null,[e[677]||(e[677]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_boost",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice Boost:")],-1)),l("td",null,[l("div",Lot,[k(l("input",{type:"number",id:"elevenlabs_tts_voice_boost",required:"","onUpdate:modelValue":e[332]||(e[332]=f=>r.configFile.elevenlabs_tts_voice_boost=f),onChange:e[333]||(e[333]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600",step:"0.1",min:"0",max:"1"},null,544),[[ue,r.configFile.elevenlabs_tts_voice_boost]])])])]),l("tr",null,[e[678]||(e[678]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elevenlabs_tts_voice_id",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Voice ID:")],-1)),l("td",null,[l("div",Pot,[k(l("select",{"onUpdate:modelValue":e[334]||(e[334]=f=>r.configFile.elevenlabs_tts_voice_id=f),onChange:e[335]||(e[335]=f=>s.settingsChanged=!0)},[(T(!0),w(Be,null,Xe(s.voices,f=>(T(),w("option",{key:f.voice_id,value:f.voice_id},$(f.name),9,Fot))),128))],544),[[It,r.configFile.elevenlabs_tts_voice_id]])])])])])]),_:1}),z(a,{title:"Fish TTS service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Uot,[l("tr",null,[e[679]||(e[679]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS key:")],-1)),l("td",null,[l("div",Bot,[k(l("input",{type:"text",id:"fish_tts_key",required:"","onUpdate:modelValue":e[336]||(e[336]=f=>r.configFile.fish_tts_key=f),onChange:e[337]||(e[337]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.fish_tts_key]])])])]),l("tr",null,[e[680]||(e[680]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"fish_tts_voice",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Fish TTS voice:")],-1)),l("td",null,[l("div",Got,[k(l("input",{type:"text",id:"fish_tts_voice",required:"","onUpdate:modelValue":e[338]||(e[338]=f=>r.configFile.fish_tts_voice=f),onChange:e[339]||(e[339]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.fish_tts_voice]])])])])])]),_:1})]),_:1}),z(a,{title:"TTI services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Stable diffusion service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Vot,[l("tr",null,[e[682]||(e[682]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable sd service:")],-1)),l("td",null,[l("div",zot,[k(l("input",{type:"checkbox",id:"enable_sd_service",required:"","onUpdate:modelValue":e[340]||(e[340]=f=>r.configFile.enable_sd_service=f),onChange:e[341]||(e[341]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_sd_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[342]||(e[342]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[681]||(e[681]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[684]||(e[684]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_sd_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install SD service:")],-1)),l("td",null,[l("div",Hot,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[343]||(e[343]=(...f)=>r.reinstallSDService&&r.reinstallSDService(...f))},"install sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[344]||(e[344]=(...f)=>r.upgradeSDService&&r.upgradeSDService(...f))},"upgrade sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[345]||(e[345]=(...f)=>r.startSDService&&r.startSDService(...f))},"start sd service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[346]||(e[346]=(...f)=>r.showSD&&r.showSD(...f))},"show sd ui"),e[683]||(e[683]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/stable-diffusion-webui/blob/master/LICENSE.txt",target:"_blank"},"automatic1111's sd licence",-1))])]),l("td",null,[l("div",qot,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[347]||(e[347]=(...f)=>r.reinstallSDService&&r.reinstallSDService(...f))},"install sd service")])])]),l("tr",null,[e[685]||(e[685]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"sd_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"sd base url:")],-1)),l("td",null,[l("div",Yot,[k(l("input",{type:"text",id:"sd_base_url",required:"","onUpdate:modelValue":e[348]||(e[348]=f=>r.configFile.sd_base_url=f),onChange:e[349]||(e[349]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.sd_base_url]])])])])])]),_:1}),z(a,{title:"Diffusers service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",$ot,[l("tr",null,[e[687]||(e[687]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_diffusers_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Diffusers service:")],-1)),l("td",null,[l("div",Wot,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[350]||(e[350]=(...f)=>r.reinstallDiffusersService&&r.reinstallDiffusersService(...f))},"install diffusers service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[351]||(e[351]=(...f)=>r.upgradeDiffusersService&&r.upgradeDiffusersService(...f))},"upgrade diffusers service"),e[686]||(e[686]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/huggingface/diffusers?tab=Apache-2.0-1-ov-file#readme",target:"_blank"},"Diffusers licence",-1))])])]),l("tr",null,[e[688]||(e[688]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers model:")],-1)),l("td",null,[l("div",Kot,[k(l("input",{type:"text",id:"diffusers_model",required:"","onUpdate:modelValue":e[352]||(e[352]=f=>r.configFile.diffusers_model=f),onChange:e[353]||(e[353]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.diffusers_model]])])]),e[689]||(e[689]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Diffusers client service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",jot,[l("tr",null,[e[690]||(e[690]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"diffusers_client_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Diffusers client base url:")],-1)),l("td",null,[l("div",Qot,[k(l("input",{type:"text",id:"diffusers_client_base_url",required:"","onUpdate:modelValue":e[354]||(e[354]=f=>r.configFile.diffusers_client_base_url=f),onChange:e[355]||(e[355]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.diffusers_client_base_url]])])]),e[691]||(e[691]=l("td",null,null,-1))])])]),_:1}),z(a,{title:"Midjourney",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Xot,[l("tr",null,[e[692]||(e[692]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"midjourney key:")],-1)),l("td",null,[l("div",Zot,[k(l("input",{type:"text",id:"midjourney_key",required:"","onUpdate:modelValue":e[356]||(e[356]=f=>r.configFile.midjourney_key=f),onChange:e[357]||(e[357]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.midjourney_key]])])])]),l("tr",null,[e[693]||(e[693]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_timeout",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"request timeout(s):")],-1)),l("td",null,[l("div",Jot,[k(l("input",{type:"number",min:"10",max:"2048",id:"midjourney_timeout",required:"","onUpdate:modelValue":e[358]||(e[358]=f=>r.configFile.midjourney_timeout=f),onChange:e[359]||(e[359]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.midjourney_timeout]])])])]),l("tr",null,[e[694]||(e[694]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"midjourney_retries",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"number of retries:")],-1)),l("td",null,[l("div",eat,[k(l("input",{type:"number",min:"0",max:"2048",id:"midjourney_retries",required:"","onUpdate:modelValue":e[360]||(e[360]=f=>r.configFile.midjourney_retries=f),onChange:e[361]||(e[361]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.midjourney_retries]])])])])])]),_:1}),z(a,{title:"Dall-E",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",tat,[l("tr",null,[e[695]||(e[695]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e key:")],-1)),l("td",null,[l("div",nat,[k(l("input",{type:"text",id:"dall_e_key",required:"","onUpdate:modelValue":e[362]||(e[362]=f=>r.configFile.dall_e_key=f),onChange:e[363]||(e[363]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.dall_e_key]])])])]),l("tr",null,[e[697]||(e[697]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"dall_e_generation_engine",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"dall e generation engine:")],-1)),l("td",null,[l("div",iat,[k(l("select",{"onUpdate:modelValue":e[364]||(e[364]=f=>r.configFile.dall_e_generation_engine=f),onChange:e[365]||(e[365]=f=>s.settingsChanged=!0)},e[696]||(e[696]=[l("option",null," dall-e-2 ",-1),l("option",null," dall-e-3 ",-1)]),544),[[It,r.configFile.dall_e_generation_engine]])])])])])]),_:1}),z(a,{title:"ComfyUI service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",sat,[l("tr",null,[e[699]||(e[699]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_comfyui_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui service:")],-1)),l("td",null,[l("div",rat,[k(l("input",{type:"checkbox",id:"enable_comfyui_service",required:"","onUpdate:modelValue":e[366]||(e[366]=f=>r.configFile.enable_comfyui_service=f),onChange:e[367]||(e[367]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_comfyui_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[368]||(e[368]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[698]||(e[698]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[700]||(e[700]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Available models (only if local):")],-1)),l("td",null,[l("div",oat,[k(l("select",{id:"comfyui_model",required:"","onUpdate:modelValue":e[369]||(e[369]=f=>r.configFile.comfyui_model=f),onChange:e[370]||(e[370]=f=>s.settingsChanged=!0),class:"w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},[(T(!0),w(Be,null,Xe(s.comfyui_models,(f,y)=>(T(),w("option",{key:f,value:f},$(f),9,aat))),128))],544),[[It,r.configFile.comfyui_model]])])])]),l("tr",null,[e[702]||(e[702]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_model",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable comfyui model:")],-1)),l("td",null,[l("div",lat,[k(l("input",{type:"text",id:"comfyui_model",required:"","onUpdate:modelValue":e[371]||(e[371]=f=>r.configFile.comfyui_model=f),onChange:e[372]||(e[372]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.comfyui_model]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[373]||(e[373]=f=>this.$store.state.messageBox.showMessage("Activates Stable diffusion service. The service will be automatically loaded at startup alowing you to use the stable diffusion endpoint to generate images"))},e[701]||(e[701]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[704]||(e[704]=l("td",{style:{"min-width":"200px"}},null,-1)),l("td",null,[l("div",cat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[374]||(e[374]=(...f)=>r.reinstallComfyUIService&&r.reinstallComfyUIService(...f))},"install comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[375]||(e[375]=(...f)=>r.upgradeComfyUIService&&r.upgradeComfyUIService(...f))},"upgrade comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[376]||(e[376]=(...f)=>r.startComfyUIService&&r.startComfyUIService(...f))},"start comfyui service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[377]||(e[377]=(...f)=>r.showComfyui&&r.showComfyui(...f))},"show comfyui"),e[703]||(e[703]=l("a",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",href:"https://github.com/ParisNeo/ComfyUI/blob/master/LICENSE",target:"_blank"},"comfyui licence",-1))])])]),l("tr",null,[e[705]||(e[705]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"comfyui_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"comfyui base url:")],-1)),l("td",null,[l("div",dat,[k(l("input",{type:"text",id:"comfyui_base_url",required:"","onUpdate:modelValue":e[378]||(e[378]=f=>r.configFile.comfyui_base_url=f),onChange:e[379]||(e[379]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.comfyui_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTT services",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Ollama service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",uat,[l("tr",null,[e[707]||(e[707]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_ollama_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable ollama service:")],-1)),l("td",null,[l("div",pat,[k(l("input",{type:"checkbox",id:"enable_ollama_service",required:"","onUpdate:modelValue":e[380]||(e[380]=f=>r.configFile.enable_ollama_service=f),onChange:e[381]||(e[381]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_ollama_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[382]||(e[382]=f=>this.$store.state.messageBox.showMessage(`Activates ollama service. The service will be automatically loaded at startup alowing you to use the ollama binding.
 If you are using windows, this uses wsl which requires you to have it installed or at least activated.
 If You are using windows, this will install wsl so you need to activate it.
-<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},e[706]||(e[706]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[708]||(e[708]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),l("td",null,[l("div",_at,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[383]||(e[383]=(...f)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(...f))},"install ollama service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[384]||(e[384]=(...f)=>r.startollamaService&&r.startollamaService(...f))},"start ollama service")])])]),l("tr",null,[e[709]||(e[709]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),l("td",null,[l("div",mat,[k(l("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[385]||(e[385]=f=>r.configFile.ollama_base_url=f),onChange:e[386]||(e[386]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.ollama_base_url]])])])])])]),_:1}),z(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",hat,[l("tr",null,[e[711]||(e[711]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),l("td",null,[l("div",gat,[k(l("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[387]||(e[387]=f=>r.configFile.enable_vllm_service=f),onChange:e[388]||(e[388]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_vllm_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[389]||(e[389]=f=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding.
+<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},e[706]||(e[706]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[708]||(e[708]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Ollama service:")],-1)),l("td",null,[l("div",fat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[383]||(e[383]=(...f)=>r.reinstallOLLAMAService&&r.reinstallOLLAMAService(...f))},"install ollama service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[384]||(e[384]=(...f)=>r.startollamaService&&r.startollamaService(...f))},"start ollama service")])])]),l("tr",null,[e[709]||(e[709]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"ollama_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"ollama base url:")],-1)),l("td",null,[l("div",_at,[k(l("input",{type:"text",id:"ollama_base_url",required:"","onUpdate:modelValue":e[385]||(e[385]=f=>r.configFile.ollama_base_url=f),onChange:e[386]||(e[386]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.ollama_base_url]])])])])])]),_:1}),z(a,{title:"vLLM service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",mat,[l("tr",null,[e[711]||(e[711]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_vllm_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable vLLM service:")],-1)),l("td",null,[l("div",hat,[k(l("input",{type:"checkbox",id:"enable_vllm_service",required:"","onUpdate:modelValue":e[387]||(e[387]=f=>r.configFile.enable_vllm_service=f),onChange:e[388]||(e[388]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_vllm_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[389]||(e[389]=f=>this.$store.state.messageBox.showMessage(`Activates vllm service. The service will be automatically loaded at startup alowing you to use the elf binding.
 If you are using windows, this uses wsl which requires you to have it installed or at least activated.
 If You are using windows, this will install wsl so you need to activate it.
-<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},e[710]||(e[710]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[712]||(e[712]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),l("td",null,[l("div",bat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[390]||(e[390]=(...f)=>r.reinstallvLLMService&&r.reinstallvLLMService(...f))},"install vLLM service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[391]||(e[391]=(...f)=>r.startvLLMService&&r.startvLLMService(...f))},"start vllm service")])])]),l("tr",null,[e[713]||(e[713]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),l("td",null,[l("div",yat,[k(l("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[392]||(e[392]=f=>r.configFile.vllm_url=f),onChange:e[393]||(e[393]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_url]])])])]),l("tr",null,[e[715]||(e[715]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),l("td",null,[l("div",Eat,[l("div",vat,[e[714]||(e[714]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),l("p",Sat,[k(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[394]||(e[394]=f=>r.configFile.vllm_gpu_memory_utilization=f),onChange:e[395]||(e[395]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.vllm_gpu_memory_utilization]])])]),k(l("input",{id:"vllm_gpu_memory_utilization",onChange:e[396]||(e[396]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[397]||(e[397]=f=>r.configFile.vllm_gpu_memory_utilization=f),min:"0.10",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.vllm_gpu_memory_utilization]])])])]),l("tr",null,[e[716]||(e[716]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),l("td",null,[l("div",Tat,[k(l("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[398]||(e[398]=f=>r.configFile.vllm_max_num_seqs=f),onChange:e[399]||(e[399]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_max_num_seqs]])])])]),l("tr",null,[e[717]||(e[717]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),l("td",null,[l("div",xat,[k(l("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[400]||(e[400]=f=>r.configFile.vllm_max_model_len=f),onChange:e[401]||(e[401]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_max_model_len]])])])]),l("tr",null,[e[718]||(e[718]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),l("td",null,[l("div",Cat,[k(l("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[402]||(e[402]=f=>r.configFile.vllm_model_path=f),onChange:e[403]||(e[403]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_model_path]])])])])])]),_:1}),z(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",wat,[l("tr",null,[e[720]||(e[720]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),l("td",null,[l("div",Rat,[k(l("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[404]||(e[404]=f=>r.configFile.enable_petals_service=f),onChange:e[405]||(e[405]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_petals_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[406]||(e[406]=f=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network.
+<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},e[710]||(e[710]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[712]||(e[712]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install vLLM service:")],-1)),l("td",null,[l("div",gat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[390]||(e[390]=(...f)=>r.reinstallvLLMService&&r.reinstallvLLMService(...f))},"install vLLM service"),l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[391]||(e[391]=(...f)=>r.startvLLMService&&r.startvLLMService(...f))},"start vllm service")])])]),l("tr",null,[e[713]||(e[713]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm base url:")],-1)),l("td",null,[l("div",bat,[k(l("input",{type:"text",id:"vllm_url",required:"","onUpdate:modelValue":e[392]||(e[392]=f=>r.configFile.vllm_url=f),onChange:e[393]||(e[393]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_url]])])])]),l("tr",null,[e[715]||(e[715]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"gpu memory utilization:")],-1)),l("td",null,[l("div",yat,[l("div",Eat,[e[714]||(e[714]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"vllm_gpu_memory_utilization",class:"text-sm font-medium"}," vllm gpu memory utilization: ")],-1)),l("p",vat,[k(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[394]||(e[394]=f=>r.configFile.vllm_gpu_memory_utilization=f),onChange:e[395]||(e[395]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.vllm_gpu_memory_utilization]])])]),k(l("input",{id:"vllm_gpu_memory_utilization",onChange:e[396]||(e[396]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[397]||(e[397]=f=>r.configFile.vllm_gpu_memory_utilization=f),min:"0.10",max:"1",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.vllm_gpu_memory_utilization]])])])]),l("tr",null,[e[716]||(e[716]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_num_seqs",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm max num seqs:")],-1)),l("td",null,[l("div",Sat,[k(l("input",{type:"number",id:"vllm_max_num_seqs",min:"64",max:"2048",required:"","onUpdate:modelValue":e[398]||(e[398]=f=>r.configFile.vllm_max_num_seqs=f),onChange:e[399]||(e[399]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_max_num_seqs]])])])]),l("tr",null,[e[717]||(e[717]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_max_model_len",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"max model len:")],-1)),l("td",null,[l("div",Tat,[k(l("input",{type:"number",id:"vllm_max_model_len",min:"2048",max:"1000000",required:"","onUpdate:modelValue":e[400]||(e[400]=f=>r.configFile.vllm_max_model_len=f),onChange:e[401]||(e[401]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_max_model_len]])])])]),l("tr",null,[e[718]||(e[718]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"vllm_model_path",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"vllm model path:")],-1)),l("td",null,[l("div",xat,[k(l("input",{type:"text",id:"vllm_model_path",required:"","onUpdate:modelValue":e[402]||(e[402]=f=>r.configFile.vllm_model_path=f),onChange:e[403]||(e[403]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.vllm_model_path]])])])])])]),_:1}),z(a,{title:"Petals service",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Cat,[l("tr",null,[e[720]||(e[720]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"enable_petals_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable petals service:")],-1)),l("td",null,[l("div",wat,[k(l("input",{type:"checkbox",id:"enable_petals_service",required:"","onUpdate:modelValue":e[404]||(e[404]=f=>r.configFile.enable_petals_service=f),onChange:e[405]||(e[405]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.enable_petals_service]])])]),l("td",null,[l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary",onClick:e[406]||(e[406]=f=>this.$store.state.messageBox.showMessage(`Activates Petals service. The service will be automatically loaded at startup alowing you to use the petals endpoint to generate text in a distributed network.
 If You are using windows, this will install wsl so you need to activate it.
-<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},e[719]||(e[719]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[721]||(e[721]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),l("td",null,[l("div",Aat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[407]||(e[407]=(...f)=>r.reinstallPetalsService&&r.reinstallPetalsService(...f))},"install petals service")])])]),l("tr",null,[e[722]||(e[722]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),l("td",null,[l("div",Mat,[k(l("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[408]||(e[408]=f=>r.configFile.petals_base_url=f),onChange:e[409]||(e[409]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTV settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Nat,[l("tr",null,[e[723]||(e[723]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lumalabs_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Lumalabs key:")],-1)),l("td",null,[l("div",Oat,[k(l("input",{type:"text",id:"lumalabs_key",required:"","onUpdate:modelValue":e[410]||(e[410]=f=>r.configFile.lumalabs_key=f),onChange:e[411]||(e[411]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.lumalabs_key]])])])])])]),_:1}),z(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Iat,[l("tr",null,[e[724]||(e[724]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),l("td",null,[l("div",kat,[k(l("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[412]||(e[412]=f=>r.configFile.elastic_search_service=f),onChange:e[413]||(e[413]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.elastic_search_service]])])])]),l("tr",null,[e[725]||(e[725]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),l("td",null,[l("div",Dat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[414]||(e[414]=(...f)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(...f))},"install ElasticSearch service")])])]),l("tr",null,[e[726]||(e[726]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),l("td",null,[l("div",Lat,[k(l("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[415]||(e[415]=f=>r.configFile.elastic_search_url=f),onChange:e[416]||(e[416]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),l("div",Pat,[l("div",Fat,[l("button",{onClick:e[417]||(e[417]=W(f=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[727]||(e[727]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.bzc_collapsed]]),k(l("div",null,e[728]||(e[728]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.bzc_collapsed]]),e[730]||(e[730]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),r.configFile.binding_name?B("",!0):(T(),w("div",Uat,e[729]||(e[729]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" No binding selected! ")]))),r.configFile.binding_name?(T(),w("div",Bat,"|")):B("",!0),r.configFile.binding_name?(T(),w("div",Gat,[l("div",Vat,[l("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,zat),l("p",Hat,$(r.binding_name),1)])])):B("",!0)])]),l("div",{class:Ue([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(T(),w("div",qat,[l("label",Yat," Bindings: ("+$(r.bindingsZoo.length)+") ",1),l("div",{class:Ue(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[z(Is,{name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(r.bindingsZoo,(f,y)=>(T(),at(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+y+"-"+f.folder,binding:f,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:f.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):B("",!0),s.bzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[418]||(e[418]=f=>s.bzl_collapsed=!s.bzl_collapsed)},e[731]||(e[731]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[419]||(e[419]=f=>s.bzl_collapsed=!s.bzl_collapsed)},e[732]||(e[732]=[l("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),l("div",$at,[l("div",Wat,[l("button",{onClick:e[420]||(e[420]=W(f=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[k(l("div",null,e[733]||(e[733]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.mzc_collapsed]]),k(l("div",null,e[734]||(e[734]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.mzc_collapsed]]),e[737]||(e[737]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),l("div",Kat,[r.configFile.binding_name?B("",!0):(T(),w("div",jat,e[735]||(e[735]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" Select binding first! ")]))),!r.configFile.model_name&&r.configFile.binding_name?(T(),w("div",Qat,e[736]||(e[736]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" No model selected! ")]))):B("",!0),r.configFile.model_name?(T(),w("div",Xat,"|")):B("",!0),r.configFile.model_name?(T(),w("div",Zat,[l("div",Jat,[l("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,elt),l("p",tlt,$(r.configFile.model_name),1)])])):B("",!0)])])]),l("div",{class:Ue([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",nlt,[l("div",ilt,[l("div",slt,[s.searchModelInProgress?(T(),w("div",rlt,e[738]||(e[738]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),s.searchModelInProgress?B("",!0):(T(),w("div",olt,e[739]||(e[739]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)])))]),k(l("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search models...",required:"","onUpdate:modelValue":e[421]||(e[421]=f=>s.searchModel=f),onKeyup:e[422]||(e[422]=wi((...f)=>r.searchModel_func&&r.searchModel_func(...f),["enter"]))},null,544),[[ue,s.searchModel]]),s.searchModel?(T(),w("button",{key:0,onClick:e[423]||(e[423]=W(f=>s.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):B("",!0)])]),l("div",null,[k(l("input",{"onUpdate:modelValue":e[424]||(e[424]=f=>s.show_only_installed_models=f),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[He,s.show_only_installed_models]]),e[740]||(e[740]=l("label",{for:"only_installed"},"Show only installed models",-1))]),l("div",null,[z(d,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),e[748]||(e[748]=l("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),s.is_loading_zoo?(T(),w("div",alt,e[741]||(e[741]=[l("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("p",{class:"heartbeat-text"},"Loading models Zoo",-1)]))):B("",!0),s.models_zoo&&s.models_zoo.length>0?(T(),w("div",llt,[l("label",clt," Models: ("+$(s.models_zoo.length)+") ",1),l("div",{class:Ue(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",s.mzl_collapsed?"":"max-h-96"])},[z(Is,{name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(r.rendered_models_zoo,(f,y)=>(T(),at(u,{ref_for:!0,ref:"modelZoo",key:"index-"+y+"-"+f.name,model:f,"is-installed":f.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:f.name===r.configFile.model_name,model_type:f.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),l("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[425]||(e[425]=(...f)=>r.load_more_models&&r.load_more_models(...f))},"Load more models",512)]),_:1})],2)])):B("",!0),s.mzl_collapsed?(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[426]||(e[426]=(...f)=>r.open_mzl&&r.open_mzl(...f))},e[742]||(e[742]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),w("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[427]||(e[427]=(...f)=>r.open_mzl&&r.open_mzl(...f))},e[743]||(e[743]=[l("i",{"data-feather":"chevron-down"},null,-1)]))),l("div",dlt,[l("div",ult,[l("div",null,[l("div",plt,[e[744]||(e[744]=l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),k(l("input",{type:"text","onUpdate:modelValue":e[428]||(e[428]=f=>s.reference_path=f),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter Path ...",required:""},null,512),[[ue,s.reference_path]])]),l("button",{type:"button",onClick:e[429]||(e[429]=W(f=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),s.modelDownlaodInProgress?B("",!0):(T(),w("div",flt,[l("div",_lt,[e[745]||(e[745]=l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),k(l("input",{type:"text","onUpdate:modelValue":e[430]||(e[430]=f=>s.addModel.url=f),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[ue,s.addModel.url]])]),l("button",{type:"button",onClick:e[431]||(e[431]=W(f=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),s.modelDownlaodInProgress?(T(),w("div",mlt,[e[747]||(e[747]=l("div",{role:"status",class:"justify-center"},null,-1)),l("div",hlt,[l("div",glt,[l("div",blt,[e[746]||(e[746]=mr('<span class="flex flex-row items-center gap-2 text-base font-medium text-blue-700 dark:text-white" data-v-f29485cf> Downloading <svg aria-hidden="true" class="w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-secondary" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f29485cf><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor" data-v-f29485cf></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill" data-v-f29485cf></path></svg><span class="sr-only" data-v-f29485cf>Loading...</span></span>',1)),l("span",ylt,$(Math.floor(s.addModel.progress))+"%",1)]),l("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},$(s.addModel.url),9,Elt),l("div",vlt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt({width:s.addModel.progress+"%"})},null,4)]),l("div",Slt,[l("span",Tlt,"Download speed: "+$(r.speed_computed)+"/s",1),l("span",xlt,$(r.downloaded_size_computed)+"/"+$(r.total_size_computed),1)])])]),l("div",Clt,[l("div",wlt,[l("div",Rlt,[l("button",{onClick:e[432]||(e[432]=W((...f)=>r.onCancelInstall&&r.onCancelInstall(...f),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):B("",!0)])])],2)]),l("div",Alt,[l("div",Mlt,[l("button",{onClick:e[435]||(e[435]=W(f=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[k(l("div",null,e[749]||(e[749]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.pzc_collapsed]]),k(l("div",null,e[750]||(e[750]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.pzc_collapsed]]),e[753]||(e[753]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),r.configFile.personalities?(T(),w("div",Nlt,"|")):B("",!0),l("div",Olt,$(r.active_pesonality),1),r.configFile.personalities?(T(),w("div",Ilt,"|")):B("",!0),r.configFile.personalities?(T(),w("div",klt,[r.mountedPersArr.length>0?(T(),w("div",Dlt,[(T(!0),w(Be,null,Xe(r.mountedPersArr,(f,y)=>(T(),w("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:y+"-"+f.name,ref_for:!0,ref:"mountedPersonalities"},[l("div",Llt,[l("button",{onClick:W(b=>r.onPersonalitySelected(f),["stop"])},[l("img",{src:s.bUrl+f.avatar,onError:e[433]||(e[433]=(...b)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...b)),class:Ue(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(f.full_path)?"border-secondary":"border-transparent z-0"]),title:f.name},null,42,Flt)],8,Plt),l("button",{onClick:W(b=>r.unmountPersonality(f),["stop"])},e[751]||(e[751]=[l("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)]),8,Ult)])]))),128))])):B("",!0)])):B("",!0),l("button",{onClick:e[434]||(e[434]=W(f=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},e[752]||(e[752]=[l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]))])]),l("div",{class:Ue([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Blt,[e[756]||(e[756]=l("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),l("div",Glt,[l("div",Vlt,[s.searchPersonalityInProgress?(T(),w("div",zlt,e[754]||(e[754]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),s.searchPersonalityInProgress?B("",!0):(T(),w("div",Hlt,e[755]||(e[755]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)])))]),k(l("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[436]||(e[436]=f=>s.searchPersonality=f),onKeyup:e[437]||(e[437]=W((...f)=>r.searchPersonality_func&&r.searchPersonality_func(...f),["stop"]))},null,544),[[ue,s.searchPersonality]]),s.searchPersonality?(T(),w("button",{key:0,onClick:e[438]||(e[438]=W(f=>s.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):B("",!0)])]),s.searchPersonality?B("",!0):(T(),w("div",qlt,[l("label",Ylt," Personalities Category: ("+$(s.persCatgArr.length)+") ",1),l("select",{id:"persCat",onChange:e[439]||(e[439]=f=>r.update_personality_category(f.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),w(Be,null,Xe(s.persCatgArr,(f,y)=>(T(),w("option",{key:y,selected:f==this.configFile.personality_category},$(f),9,$lt))),128))],32)])),l("div",null,[s.personalitiesFiltered.length>0?(T(),w("div",Wlt,[l("label",Klt,$(s.searchPersonality?"Search results":"Personalities")+": ("+$(s.personalitiesFiltered.length)+") ",1),l("div",{class:Ue(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[z(Is,{name:"bounce"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.personalitiesFiltered,(f,y)=>(T(),at(_,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+y+"-"+f.name,personality:f,select_language:!0,full_path:f.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(b=>b===f.full_path||b===f.full_path+":"+f.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})],2)])):B("",!0)]),s.pzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[440]||(e[440]=f=>s.pzl_collapsed=!s.pzl_collapsed)},e[757]||(e[757]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[441]||(e[441]=f=>s.pzl_collapsed=!s.pzl_collapsed)},e[758]||(e[758]=[l("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),l("div",jlt,[l("div",Qlt,[l("button",{onClick:e[442]||(e[442]=W(f=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[k(l("div",null,e[759]||(e[759]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.mc_collapsed]]),k(l("div",null,e[760]||(e[760]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.mc_collapsed]]),e[761]||(e[761]=l("p",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1))])]),l("div",{class:Ue([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[l("div",Xlt,[l("div",Zlt,[k(l("input",{id:"override-model-parameters",type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[443]||(e[443]=W(()=>{},["stop"])),"onUpdate:modelValue":e[444]||(e[444]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[445]||(e[445]=f=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[He,r.configFile.override_personality_model_parameters]]),e[762]||(e[762]=l("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1))])]),l("div",{class:Ue(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[l("div",Jlt,[e[763]||(e[763]=l("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),k(l("input",{type:"text",id:"seed","onUpdate:modelValue":e[446]||(e[446]=f=>r.configFile.seed=f),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[ue,r.configFile.seed]])]),l("div",ect,[l("div",tct,[l("div",nct,[e[764]||(e[764]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),l("p",ict,[k(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[447]||(e[447]=f=>r.configFile.temperature=f),onChange:e[448]||(e[448]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.temperature]])])]),k(l("input",{id:"temperature",onChange:e[449]||(e[449]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[450]||(e[450]=f=>r.configFile.temperature=f),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.temperature]])])]),l("div",sct,[l("div",rct,[l("div",oct,[e[765]||(e[765]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),l("p",act,[k(l("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[451]||(e[451]=f=>r.configFile.n_predict=f),onChange:e[452]||(e[452]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.n_predict]])])]),k(l("input",{id:"predict",type:"range",onChange:e[453]||(e[453]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[454]||(e[454]=f=>r.configFile.n_predict=f),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.n_predict]])])]),l("div",lct,[l("div",cct,[l("div",dct,[e[766]||(e[766]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),l("p",uct,[k(l("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[455]||(e[455]=f=>r.configFile.top_k=f),onChange:e[456]||(e[456]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_k]])])]),k(l("input",{id:"top_k",type:"range",onChange:e[457]||(e[457]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[458]||(e[458]=f=>r.configFile.top_k=f),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_k]])])]),l("div",pct,[l("div",fct,[l("div",_ct,[e[767]||(e[767]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),l("p",mct,[k(l("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[459]||(e[459]=f=>r.configFile.top_p=f),onChange:e[460]||(e[460]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_p]])])]),k(l("input",{id:"top_p",type:"range","onUpdate:modelValue":e[461]||(e[461]=f=>r.configFile.top_p=f),min:"0",max:"1",step:"0.01",onChange:e[462]||(e[462]=f=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_p]])])]),l("div",hct,[l("div",gct,[l("div",bct,[e[768]||(e[768]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),l("p",yct,[k(l("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[463]||(e[463]=f=>r.configFile.repeat_penalty=f),onChange:e[464]||(e[464]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_penalty]])])]),k(l("input",{id:"repeat_penalty",onChange:e[465]||(e[465]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[466]||(e[466]=f=>r.configFile.repeat_penalty=f),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_penalty]])])]),l("div",Ect,[l("div",vct,[l("div",Sct,[e[769]||(e[769]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),l("p",Tct,[k(l("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[467]||(e[467]=f=>r.configFile.repeat_last_n=f),onChange:e[468]||(e[468]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_last_n]])])]),k(l("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[469]||(e[469]=f=>r.configFile.repeat_last_n=f),min:"0",max:"100",step:"1",onChange:e[470]||(e[470]=f=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),z(m,{ref:"addmodeldialog"},null,512),z(h,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const Cct=st(wnt,[["render",xct],["__scopeId","data-v-f29485cf"]]),wct={components:{ClipBoardTextInput:O0,Card:cp},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};ie.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},Rct={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Act={class:"mb-4"},Mct=["value"],Nct={class:"mb-4"},Oct={class:"mb-4"},Ict={class:"mb-4"},kct={class:"mb-4"},Dct={class:"mb-4"},Lct={class:"mb-4"},Pct={key:1};function Fct(n,e,t,i,s,r){const o=nt("Card"),a=nt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(T(),w("div",Rct,[l("form",{onSubmit:e[2]||(e[2]=W((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:""},[z(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[z(o,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",Act,[e[3]||(e[3]=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),k(l("select",{"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedModel=c),onChange:e[1]||(e[1]=(...c)=>n.setModel&&n.setModel(...c)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Be,null,Xe(r.models,c=>(T(),w("option",{key:c,value:c},$(c),9,Mct))),128))],544),[[It,r.selectedModel]])])]),_:1}),z(o,{title:"Data",isHorizontal:!1},{default:Ie(()=>[l("div",Nct,[e[4]||(e[4]=l("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),z(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),z(o,{title:"Training",isHorizontal:!1},{default:Ie(()=>[l("div",Oct,[e[5]||(e[5]=l("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),l("div",Ict,[e[6]||(e[6]=l("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),l("div",kct,[e[7]||(e[7]=l("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),l("div",Dct,[e[8]||(e[8]=l("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),z(o,{title:"Output",isHorizontal:!1},{default:Ie(()=>[l("div",Lct,[e[9]||(e[9]=l("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),z(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),z(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>e[10]||(e[10]=[l("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(T(),w("div",Pct,[z(o,{title:"Info",class:"",isHorizontal:!1},{default:Ie(()=>e[11]||(e[11]=[Ze(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const Uct=st(wct,[["render",Fct]]),Bct={components:{ClipBoardTextInput:O0,Card:cp},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Gct={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Vct={class:"mb-4"},zct={class:"mb-4"};function Hct(n,e,t,i,s,r){const o=nt("ClipBoardTextInput"),a=nt("Card");return T(),w("div",Gct,[l("form",{onSubmit:e[0]||(e[0]=W((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:"max-w-md mx-auto"},[z(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[z(a,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",Vct,[e[1]||(e[1]=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),z(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),l("div",zct,[e[2]||(e[2]=l("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),z(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),z(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>e[3]||(e[3]=[l("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const qct=st(Bct,[["render",Hct]]),Yct={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(n){this.newTitle=n},checkedChangeEvent(n,e){this.$emit("checked",n,e)}},mounted(){this.newTitle=this.title,Le(()=>{Ve.replace()})},watch:{showConfirmation(){Le(()=>{Ve.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Le(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Le(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},$ct=["id"],Wct={class:"flex flex-row items-center gap-2"},Kct={key:0},jct={class:"flex flex-row items-center w-full"},Qct=["title"],Xct=["value"],Zct={class:"absolute top-0 right-0 h-full flex items-center"},Jct={class:"flex gap-2 items-center bg-white dark:bg-gray-800 p-2 rounded-l-md shadow-md transform translate-x-full group-hover:translate-x-0 transition-transform duration-300"},edt={key:0,class:"flex gap-2 items-center"},tdt={key:1,class:"flex gap-2 items-center"};function ndt(n,e,t,i,s,r){return T(),w("div",{class:Ue([t.selected?"discussion-hilighted min-w-[14rem] max-w-[14rem]":"discussion min-w-[14rem] max-w-[14rem]","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 group cursor-pointer relative"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=W(o=>r.selectEvent(),["stop"]))},[l("div",Wct,[t.isCheckbox?(T(),w("div",Kct,[k(l("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=W(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[He,s.checkBoxValue_local]])])):B("",!0),t.selected?(T(),w("div",{key:1,class:Ue(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):B("",!0),t.selected?B("",!0):(T(),w("div",{key:2,class:Ue(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),l("div",jct,[s.editTitle?B("",!0):(T(),w("p",{key:0,title:t.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},$(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,Qct)),s.editTitle?(T(),w("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:t.title,required:"",onKeydown:[e[3]||(e[3]=wi(W(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=wi(W(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=W(()=>{},["stop"]))},null,40,Xct)):B("",!0)]),l("div",Zct,[l("div",Jct,[s.showConfirmation?(T(),w("div",edt,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=W(o=>r.cancel(),["stop"]))},e[14]||(e[14]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=W(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),s.showConfirmation?B("",!0):(T(),w("div",tdt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=W(o=>r.openFolderEvent(),["stop"]))},e[16]||(e[16]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=W(o=>s.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"type"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=W(o=>s.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"edit-2"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=W(o=>s.deleteMode=!0,["stop"]))},e[19]||(e[19]=[l("i",{"data-feather":"trash"},null,-1)]))]))])])],10,$ct)}const Q0=st(Yct,[["render",ndt],["__scopeId","data-v-65166c4c"]]),idt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(n){this.prompt=n}}},sdt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},rdt={class:"bg-white p-8 rounded"},odt={class:"text-xl font-bold mb-4"};function adt(n,e,t,i,s,r){return T(),w("div",null,[s.show?(T(),w("div",sdt,[l("div",rdt,[l("h2",odt,$(t.promptText),1),k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[ue,s.inputText]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),l("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):B("",!0)])}const dN=st(idt,[["render",adt]]),ldt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:Q0,MarkdownRenderer:lp},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){ie.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(n=>{this.categories=n.data.categories}).catch(n=>{console.error("Error fetching categories:",n)})},fetchTitles(){console.log("Fetching categories"),ie.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(n=>{this.titles=n.data.titles,console.log("titles recovered")}).catch(n=>{console.error("Error fetching titles:",n)})},fetchContent(n){ie.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:n}).then(e=>{const t=e.data.contents[0];this.id=t.id,this.content=t.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(n){console.log("Delete category")},editCategory(n){console.log("Edit category")},checkUncheckCategory(n){console.log("Unchecked category")},deleteSkill(n){console.log("Delete skill ",n),ie.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:n}).then(()=>{this.fetchTitles()})},editTitle(n){ie.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:n,title:n}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(n){console.log("Make title")},checkUncheckTitle(n){},searchSkills(){}}},cdt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},ddt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},udt={class:"search p-4"},pdt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},fdt={class:"z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"};function _dt(n,e,t,i,s,r){const o=nt("Discussion"),a=nt("MarkdownRenderer");return T(),w("div",{class:Ue([{hidden:!s.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[l("div",cdt,[l("div",ddt,[l("div",udt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=c=>s.searchQuery=c),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[ue,s.searchQuery]]),l("button",{onClick:e[1]||(e[1]=(...c)=>r.searchSkills&&r.searchSkills(...c)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),l("div",pdt,[e[3]||(e[3]=l("h2",{class:"text-xl font-bold m-4"},"Titles",-1)),s.titles.length>0?(T(),at(Is,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.titles,c=>(T(),at(o,{key:c.id,id:c.id,title:c.title,selected:r.fetchContent(c.id),loading:s.loading,isCheckbox:s.isCheckbox,checkBoxValue:!1,onSelect:d=>r.fetchContent(c.id),onDelete:d=>r.deleteSkill(c.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0)])]),l("div",fdt,[e[4]||(e[4]=l("h2",{class:"text-xl font-bold m-4"},"Content",-1)),z(a,{host:t.host,"markdown-text":s.content,message_id:s.id,discussion_id:s.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),l("button",{onClick:e[2]||(e[2]=(...c)=>r.closeComponent&&r.closeComponent(...c)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const uN=st(ldt,[["render",_dt]]),mdt={props:{htmlContent:{type:String,required:!0}}},hdt=["innerHTML"];function gdt(n,e,t,i,s,r){return T(),w("div",{class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:t.htmlContent},null,8,hdt)}const bdt=st(mdt,[["render",gdt]]),ydt={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)},isArray(n){return Array.isArray(n)},toggleCollapse(n){this.collapsedKeys.has(n)?this.collapsedKeys.delete(n):this.collapsedKeys.add(n)},isCollapsed(n){return this.collapsedKeys.has(n)},getValueType(n){return typeof n=="string"?"string":typeof n=="number"?"number":typeof n=="boolean"?"boolean":n===null?"null":""},formatValue(n){return typeof n=="string"?`"${n}"`:String(n)}}},Edt={class:"json-tree-view"},vdt=["onClick"],Sdt={key:0,class:"toggle-icon"},Tdt={class:"key"},xdt={key:0,class:"json-nested"};function Cdt(n,e,t,i,s,r){const o=nt("json-tree-view",!0);return T(),w("div",Edt,[(T(!0),w(Be,null,Xe(t.data,(a,c)=>(T(),w("div",{key:c,class:"json-item"},[l("div",{class:"json-key",onClick:d=>r.toggleCollapse(c)},[r.isObject(a)||r.isArray(a)?(T(),w("span",Sdt,[l("i",{class:Ue(r.isCollapsed(c)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):B("",!0),l("span",Tdt,$(c)+":",1),!r.isObject(a)&&!r.isArray(a)?(T(),w("span",{key:1,class:Ue(["value",r.getValueType(a)])},$(r.formatValue(a)),3)):B("",!0)],8,vdt),(r.isObject(a)||r.isArray(a))&&!r.isCollapsed(c)?(T(),w("div",xdt,[z(o,{data:a,depth:t.depth+1},null,8,["data","depth"])])):B("",!0)]))),128))])}const wdt=st(ydt,[["render",Cdt],["__scopeId","data-v-40406ec6"]]),Rdt={components:{JsonTreeView:wdt},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(n){return console.error("Error parsing JSON string:",n),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},Adt={key:0,class:"json-viewer"},Mdt={class:"toggle-icon"},Ndt={class:"json-content panels-color"};function Odt(n,e,t,i,s,r){const o=nt("json-tree-view");return r.isContentPresent?(T(),w("div",Adt,[l("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>r.toggleCollapsible&&r.toggleCollapsible(...a))},[l("span",Mdt,[l("i",{class:Ue(s.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),Ze(" "+$(t.jsonFormText),1)]),k(l("div",Ndt,[z(o,{data:r.parsedJsonData,depth:0},null,8,["data"])],512),[[_t,!s.collapsed]])])):B("",!0)}const Idt=st(Rdt,[["render",Odt],["__scopeId","data-v-83fc9727"]]),kdt={props:{done:{type:Boolean,default:!1},text:{type:String,default:""},status:{type:Boolean,default:!1},step_type:{type:String,default:"start_end"},description:{type:String,default:""}},mounted(){this.amounted()},methods:{amounted(){console.log("Component mounted with the following properties:"),console.log("done:",this.done),console.log("text:",this.text),console.log("status:",this.status),console.log("step_type:",this.step_type),console.log("description:",this.description)}},watch:{done(n){typeof n!="boolean"&&console.error("Invalid type for done. Expected Boolean.")},status(n){typeof n!="boolean"&&console.error("Invalid type for status. Expected Boolean."),this.done&&!n&&console.error("Task completed with errors.")}}},Ddt={class:"step-container"},Ldt={class:"step-icon"},Pdt={key:0},Fdt={key:0},Udt={key:1},Bdt={key:2},Gdt={key:1},Vdt={class:"step-content"},zdt={key:0,class:"step-description"};function Hdt(n,e,t,i,s,r){return T(),w("div",Ddt,[l("div",{class:Ue(["step-wrapper transition-all duration-300 ease-in-out",{"bg-green-100 dark:bg-green-900":t.done&&t.status,"bg-red-100 dark:bg-red-900":t.done&&!t.status,"bg-gray-100 dark:bg-gray-800":!t.done}])},[l("div",Ldt,[t.step_type==="start_end"?(T(),w("div",Pdt,[t.done?t.done&&t.status?(T(),w("div",Udt,e[1]||(e[1]=[l("i",{"data-feather":"check-circle",class:"feather-icon text-green-600 dark:text-green-400"},null,-1)]))):(T(),w("div",Bdt,e[2]||(e[2]=[l("i",{"data-feather":"x-circle",class:"feather-icon text-red-600 dark:text-red-400"},null,-1)]))):(T(),w("div",Fdt,e[0]||(e[0]=[l("i",{"data-feather":"circle",class:"feather-icon text-gray-600 dark:text-gray-300"},null,-1)])))])):B("",!0),t.done?B("",!0):(T(),w("div",Gdt,e[3]||(e[3]=[l("div",{class:"spinner"},null,-1)])))]),l("div",Vdt,[l("h3",{class:Ue(["step-text",{"text-green-600 dark:text-green-400":t.done&&t.status,"text-red-600 dark:text-red-400":t.done&&!t.status,"text-gray-800 dark:text-gray-200":!t.done}])},$(t.text||"No text provided"),3),t.description?(T(),w("p",zdt,$(t.description||"No description provided"),1)):B("",!0)])],2)])}const qdt=st(kdt,[["render",Hdt],["__scopeId","data-v-78f415f6"]]),Ydt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20480%20480'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M240,0C107.664,0,0,107.664,0,240s107.664,240,240,240s240-107.664,240-240S372.336,0,240,0z%20M240,460%20c-121.309,0-220-98.691-220-220S118.691,20,240,20s220,98.691,220,220S361.309,460,240,460z'/%3e%3cpath%20d='M410,194.999h-27.058c-2.643-8.44-6-16.56-10.03-24.271l19.158-19.158c3.776-3.775,5.854-8.79,5.854-14.121%20c0-5.332-2.08-10.347-5.854-14.121l-35.399-35.399c-3.775-3.775-8.79-5.854-14.122-5.854c-5.331,0-10.346,2.079-14.121,5.854%20l-19.158,19.158c-7.711-4.03-15.832-7.386-24.271-10.03V70c0-11.028-8.972-20-20-20h-50c-11.028,0-20,8.972-20,20v27.058%20c-8.44,2.643-16.56,6-24.271,10.03L151.57,87.93c-3.775-3.776-8.79-5.854-14.121-5.854c-5.332,0-10.347,2.08-14.121,5.854%20l-35.399,35.399c-3.775,3.775-5.854,8.79-5.854,14.122c0,5.331,2.079,10.346,5.854,14.121l19.158,19.158%20c-4.03,7.711-7.386,15.832-10.03,24.271H70c-11.028,0-20,8.972-20,20v50c0,11.028,8.972,20,20,20h27.057%20c2.643,8.44,6,16.56,10.03,24.271L87.929,328.43c-3.776,3.775-5.854,8.79-5.854,14.121c0,5.332,2.08,10.347,5.854,14.121%20l35.399,35.399c3.775,3.775,8.79,5.854,14.122,5.854c5.331,0,10.346-2.079,14.121-5.854l19.158-19.158%20c7.711,4.03,15.832,7.386,24.271,10.03V410c0,11.028,8.972,20,20,20h50c11.028,0,20-8.972,20.001-20v-27.058%20c8.44-2.643,16.56-6,24.271-10.03l19.158,19.158c3.775,3.776,8.79,5.854,14.121,5.854c5.332,0,10.347-2.08,14.121-5.854%20l35.399-35.399c3.775-3.775,5.854-8.79,5.854-14.122c0-5.331-2.079-10.346-5.854-14.121l-19.158-19.158%20c4.03-7.711,7.386-15.832,10.03-24.271H410c11.028,0,20-8.972,20-20v-50C430,203.971,421.028,194.999,410,194.999z%20M410,264.998%20h-34.598c-4.562,0-8.544,3.086-9.684,7.503c-3.069,11.901-7.716,23.133-13.813,33.387c-2.337,3.931-1.71,8.948,1.524,12.182%20l24.5,24.457l-35.357,35.4l-24.5-24.5c-3.236-3.235-8.253-3.86-12.182-1.524c-10.254,6.097-21.487,10.745-33.387,13.813%20c-4.417,1.14-7.503,5.122-7.503,9.684V410h-50v-34.599c0-4.562-3.086-8.544-7.503-9.684%20c-11.901-3.069-23.133-7.716-33.387-13.813c-1.587-0.944-3.353-1.404-5.107-1.404c-2.586,0-5.147,1.002-7.073,2.931l-24.457,24.5%20l-35.4-35.357l24.5-24.5c3.234-3.235,3.861-8.251,1.524-12.182c-6.097-10.254-10.745-21.487-13.813-33.387%20c-1.14-4.417-5.122-7.503-9.684-7.503H70v-50h34.596c4.562,0,8.544-3.086,9.684-7.503c3.069-11.901,7.716-23.133,13.813-33.387%20c2.337-3.931,1.71-8.948-1.524-12.182l-24.5-24.457l35.357-35.4l24.5,24.5c3.236,3.235,8.253,3.861,12.182,1.524%20c10.254-6.097,21.487-10.745,33.387-13.813c4.417-1.14,7.503-5.122,7.503-9.684V70h50v34.596c0,4.562,3.086,8.544,7.503,9.684%20c11.901,3.069,23.133,7.716,33.387,13.813c3.929,2.337,8.947,1.709,12.182-1.524l24.457-24.5l35.4,35.357l-24.5,24.5%20c-3.234,3.235-3.861,8.251-1.524,12.182c6.097,10.254,10.745,21.487,13.813,33.387c1.14,4.417,5.122,7.503,9.684,7.503H410%20V264.998z'/%3e%3cpath%20d='M331.585,292.475l-40-35l-13.17,15.051L298.386,290H240c-27.57,0-50-22.43-50-50h-20c0,38.598,31.402,70,70,70h58.386%20l-19.971,17.475l13.17,15.051l40-35c2.17-1.898,3.415-4.642,3.415-7.525S333.755,294.373,331.585,292.475z'/%3e%3cpath%20d='M201.585,207.473L181.614,190H240c27.57,0,50,22.43,50,50h20c0-38.598-31.402-70-70-70h-58.386l19.971-17.475%20l-13.17-15.051l-40,35c-2.17,1.898-3.415,4.642-3.415,7.525s1.245,5.627,3.415,7.525l40,35L201.585,207.473z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20from='0%20240%20240'%20to='360%20240%20240'%20dur='10s'%20repeatCount='indefinite'%20/%3e%3c/svg%3e",$dt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cpath%20d='M25%200C11.6%200%200%2011.6%200%2025s11.6%2025%2025%2025%2025-11.6%2025-25S40.4%200%2025%200zm0%2048C12.8%2048%202%2039.2%202%2025S12.8%202%2025%202s24%2010.8%2024%2024-10.8%2024-24%2024zm-4-33l-8%208%2018%2018%2030-30-8-8-22%2022L22%2016'%20fill='green'/%3e%3c/svg%3e",Wdt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'%20fill='red'/%3e%3c/svg%3e",pN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20white;%20stroke-width:%202px;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpath%20d='M%2089.999%203.075%20C%2090%203.02%2090%202.967%2089.999%202.912%20c%20-0.004%20-0.134%20-0.017%20-0.266%20-0.038%20-0.398%20c%20-0.007%20-0.041%20-0.009%20-0.081%20-0.018%20-0.122%20c%20-0.034%20-0.165%20-0.082%20-0.327%20-0.144%20-0.484%20c%20-0.018%20-0.046%20-0.041%20-0.089%20-0.061%20-0.134%20c%20-0.053%20-0.119%20-0.113%20-0.234%20-0.182%20-0.346%20C%2089.528%201.382%2089.5%201.336%2089.469%201.29%20c%20-0.102%20-0.147%20-0.212%20-0.288%20-0.341%20-0.417%20c%20-0.13%20-0.13%20-0.273%20-0.241%20-0.421%20-0.344%20c%20-0.042%20-0.029%20-0.085%20-0.056%20-0.129%20-0.082%20c%20-0.118%20-0.073%20-0.239%20-0.136%20-0.364%20-0.191%20c%20-0.039%20-0.017%20-0.076%20-0.037%20-0.116%20-0.053%20c%20-0.161%20-0.063%20-0.327%20-0.113%20-0.497%20-0.147%20c%20-0.031%20-0.006%20-0.063%20-0.008%20-0.094%20-0.014%20c%20-0.142%20-0.024%20-0.285%20-0.038%20-0.429%20-0.041%20C%2087.03%200%2086.983%200%2086.936%200.001%20c%20-0.141%200.003%20-0.282%200.017%20-0.423%200.041%20c%20-0.035%200.006%20-0.069%200.008%20-0.104%200.015%20c%20-0.154%200.031%20-0.306%200.073%20-0.456%200.129%20L%201.946%2031.709%20c%20-1.124%200.422%20-1.888%201.473%20-1.943%202.673%20c%20-0.054%201.199%200.612%202.316%201.693%202.838%20l%2034.455%2016.628%20l%2016.627%2034.455%20C%2053.281%2089.344%2054.334%2090%2055.481%2090%20c%200.046%200%200.091%20-0.001%200.137%20-0.003%20c%201.199%20-0.055%202.251%20-0.819%202.673%20-1.943%20L%2089.815%204.048%20c%200.056%20-0.149%200.097%20-0.3%200.128%20-0.453%20c%200.008%20-0.041%200.011%20-0.081%200.017%20-0.122%20C%2089.982%203.341%2089.995%203.208%2089.999%203.075%20z%20M%2075.086%2010.672%20L%2037.785%2047.973%20L%2010.619%2034.864%20L%2075.086%2010.672%20z%20M%2055.136%2079.381%20L%2042.027%2052.216%20l%2037.302%20-37.302%20L%2055.136%2079.381%20z'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'%20stroke-linecap='round'%20/%3e%3ccircle%20cx='75'%20cy='75'%20r='15'%20fill='%23008000'/%3e%3cpath%20d='M75,60%20A15,15%200%200,1%2090,75%20A15,15%200%200,1%2075,90%20A15,15%200%200,1%2060,75%20A15,15%200%200,1%2075,60%20Z'%20stroke='%23FFFFFF'%20stroke-width='2'%20fill='none'/%3e%3cpath%20d='M81,75%20A6,6%200%200,1%2075,81%20A6,6%200%200,1%2069,75%20A6,6%200%200,1%2075,69%20A6,6%200%200,1%2081,75%20Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e",Kdt="/",jdt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:lp,Step:qdt,RenderHTMLJS:bdt,JsonViewer:Idt,DynamicUIRenderer:cN,ToolbarButton:I0,DropdownMenu:XM},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:FM,html5_block:UM,LaTeX_block:BM,json_block:PM,javascript_block:LM,process_svg:Ydt,ok_svg:$dt,failed_svg:Wdt,loading_svg:VM,sendGlobe:pN,code_block:kM,python_block:DM,bash_block:GM,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Le(()=>{Ve.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let n of this.message.metadata)Object.prototype.hasOwnProperty.call(n,"audio_url")&&n.audio_url!=null&&(this.audio_url=n.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(n,e){let t=e.getTime()-n.getTime();const i=Math.floor(t/(1e3*60*60));t-=i*(1e3*60*60);const s=Math.floor(t/(1e3*60));t-=s*(1e3*60);const r=Math.floor(t/1e3);return t-=r*1e3,[i,s,r]},insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=n.shiftKey;if(t===i)if(s){if(e.value.substring(t-4,t)=="    "){const r=e.value.substring(0,t-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(i),a=r+"    "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,i).split(`
+<a href='https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/m-p/2701207' target='_blank'>Here is how you can do that</a>`))},e[719]||(e[719]=[l("i",{"data-feather":"help-circle",class:"w-5 h-5"},null,-1)]))])]),l("tr",null,[e[721]||(e[721]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Install Petals service:")],-1)),l("td",null,[l("div",Rat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[407]||(e[407]=(...f)=>r.reinstallPetalsService&&r.reinstallPetalsService(...f))},"install petals service")])])]),l("tr",null,[e[722]||(e[722]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"petals_base_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"petals base url:")],-1)),l("td",null,[l("div",Aat,[k(l("input",{type:"text",id:"petals_base_url",required:"","onUpdate:modelValue":e[408]||(e[408]=f=>r.configFile.petals_base_url=f),onChange:e[409]||(e[409]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.petals_base_url]])])])])])]),_:1})]),_:1}),z(a,{title:"TTV settings",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Mat,[l("tr",null,[e[723]||(e[723]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"lumalabs_key",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Lumalabs key:")],-1)),l("td",null,[l("div",Nat,[k(l("input",{type:"text",id:"lumalabs_key",required:"","onUpdate:modelValue":e[410]||(e[410]=f=>r.configFile.lumalabs_key=f),onChange:e[411]||(e[411]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.lumalabs_key]])])])])])]),_:1}),z(a,{title:"Misc",is_shrunk:!0,is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[z(a,{title:"Elastic search Service (under construction)",is_subcard:!0,class:"pb-2 m-2"},{default:Ie(()=>[l("table",Oat,[l("tr",null,[e[724]||(e[724]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Enable elastic search service:")],-1)),l("td",null,[l("div",Iat,[k(l("input",{type:"checkbox",id:"elastic_search_service",required:"","onUpdate:modelValue":e[412]||(e[412]=f=>r.configFile.elastic_search_service=f),onChange:e[413]||(e[413]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[He,r.configFile.elastic_search_service]])])])]),l("tr",null,[e[725]||(e[725]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"install_elastic_search_service",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"Reinstall Elastic Search service:")],-1)),l("td",null,[l("div",kat,[l("button",{class:"hover:text-primary bg-green-200 rounded-lg p-4 m-4 w-full text-center items-center",onClick:e[414]||(e[414]=(...f)=>r.reinstallElasticSearchService&&r.reinstallElasticSearchService(...f))},"install ElasticSearch service")])])]),l("tr",null,[e[726]||(e[726]=l("td",{style:{"min-width":"200px"}},[l("label",{for:"elastic_search_url",class:"text-sm font-bold",style:{"margin-right":"1rem"}},"elastic search base url:")],-1)),l("td",null,[l("div",Dat,[k(l("input",{type:"text",id:"elastic_search_url",required:"","onUpdate:modelValue":e[415]||(e[415]=f=>r.configFile.elastic_search_url=f),onChange:e[416]||(e[416]=f=>s.settingsChanged=!0),class:"mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"},null,544),[[ue,r.configFile.elastic_search_url]])])])])])]),_:1})]),_:1})],2)]),l("div",Lat,[l("div",Pat,[l("button",{onClick:e[417]||(e[417]=W(f=>s.bzc_collapsed=!s.bzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex flex-row items-center"},[k(l("div",null,e[727]||(e[727]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.bzc_collapsed]]),k(l("div",null,e[728]||(e[728]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.bzc_collapsed]]),e[730]||(e[730]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Binding zoo",-1)),r.configFile.binding_name?B("",!0):(T(),w("div",Fat,e[729]||(e[729]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" No binding selected! ")]))),r.configFile.binding_name?(T(),w("div",Uat,"|")):B("",!0),r.configFile.binding_name?(T(),w("div",Bat,[l("div",Gat,[l("img",{src:r.imgBinding,class:"w-8 h-8 rounded-full object-fill text-blue-700"},null,8,Vat),l("p",zat,$(r.binding_name),1)])])):B("",!0)])]),l("div",{class:Ue([{hidden:s.bzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[r.bindingsZoo&&r.bindingsZoo.length>0?(T(),w("div",Hat,[l("label",qat," Bindings: ("+$(r.bindingsZoo.length)+") ",1),l("div",{class:Ue(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.bzl_collapsed?"":"max-h-96"])},[z(Is,{name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(r.bindingsZoo,(f,y)=>(T(),at(c,{ref_for:!0,ref:"bindingZoo",key:"index-"+y+"-"+f.folder,binding:f,"on-selected":r.onBindingSelected,"on-reinstall":r.onReinstallBinding,"on-unInstall":r.onUnInstallBinding,"on-install":r.onInstallBinding,"on-settings":r.onSettingsBinding,"on-reload-binding":r.onReloadBinding,selected:f.folder===r.configFile.binding_name},null,8,["binding","on-selected","on-reinstall","on-unInstall","on-install","on-settings","on-reload-binding","selected"]))),128))]),_:1})],2)])):B("",!0),s.bzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[418]||(e[418]=f=>s.bzl_collapsed=!s.bzl_collapsed)},e[731]||(e[731]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[419]||(e[419]=f=>s.bzl_collapsed=!s.bzl_collapsed)},e[732]||(e[732]=[l("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),l("div",Yat,[l("div",$at,[l("button",{onClick:e[420]||(e[420]=W(f=>r.modelsZooToggleCollapse(),["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[k(l("div",null,e[733]||(e[733]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.mzc_collapsed]]),k(l("div",null,e[734]||(e[734]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.mzc_collapsed]]),e[737]||(e[737]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Models zoo",-1)),l("div",Wat,[r.configFile.binding_name?B("",!0):(T(),w("div",Kat,e[735]||(e[735]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" Select binding first! ")]))),!r.configFile.model_name&&r.configFile.binding_name?(T(),w("div",jat,e[736]||(e[736]=[l("i",{"data-feather":"alert-triangle",class:"flex-shrink-0"},null,-1),Ze(" No model selected! ")]))):B("",!0),r.configFile.model_name?(T(),w("div",Qat,"|")):B("",!0),r.configFile.model_name?(T(),w("div",Xat,[l("div",Zat,[l("img",{src:r.imgModel,class:"w-8 h-8 rounded-lg object-fill"},null,8,Jat),l("p",elt,$(r.configFile.model_name),1)])])):B("",!0)])])]),l("div",{class:Ue([{hidden:s.mzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",tlt,[l("div",nlt,[l("div",ilt,[s.searchModelInProgress?(T(),w("div",slt,e[738]||(e[738]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),s.searchModelInProgress?B("",!0):(T(),w("div",rlt,e[739]||(e[739]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)])))]),k(l("input",{type:"search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search models...",required:"","onUpdate:modelValue":e[421]||(e[421]=f=>s.searchModel=f),onKeyup:e[422]||(e[422]=wi((...f)=>r.searchModel_func&&r.searchModel_func(...f),["enter"]))},null,544),[[ue,s.searchModel]]),s.searchModel?(T(),w("button",{key:0,onClick:e[423]||(e[423]=W(f=>s.searchModel="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):B("",!0)])]),l("div",null,[k(l("input",{"onUpdate:modelValue":e[424]||(e[424]=f=>s.show_only_installed_models=f),class:"m-2 p-2",type:"checkbox",ref:"only_installed"},null,512),[[He,s.show_only_installed_models]]),e[740]||(e[740]=l("label",{for:"only_installed"},"Show only installed models",-1))]),l("div",null,[z(d,{radioOptions:s.sortOptions,onRadioSelected:r.handleRadioSelected},null,8,["radioOptions","onRadioSelected"])]),e[748]||(e[748]=l("a",{href:"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard",target:"_blank",class:"mb-4 font-bold underline text-blue-500 pb-4"},"Hugging face Leaderboard",-1)),s.is_loading_zoo?(T(),w("div",olt,e[741]||(e[741]=[l("svg",{"aria-hidden":"true",class:"text-center w-full display: flex;align-items: center; h-20 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("p",{class:"heartbeat-text"},"Loading models Zoo",-1)]))):B("",!0),s.models_zoo&&s.models_zoo.length>0?(T(),w("div",alt,[l("label",llt," Models: ("+$(s.models_zoo.length)+") ",1),l("div",{class:Ue(["overflow-y-auto p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",s.mzl_collapsed?"":"max-h-96"])},[z(Is,{name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(r.rendered_models_zoo,(f,y)=>(T(),at(u,{ref_for:!0,ref:"modelZoo",key:"index-"+y+"-"+f.name,model:f,"is-installed":f.isInstalled,"on-install":r.onInstall,"on-uninstall":r.onUninstall,"on-selected":r.onModelSelected,selected:f.name===r.configFile.model_name,model_type:f.model_type,"on-copy":r.onCopy,"on-copy-link":r.onCopyLink,"on-cancel-install":r.onCancelInstall},null,8,["model","is-installed","on-install","on-uninstall","on-selected","selected","model_type","on-copy","on-copy-link","on-cancel-install"]))),128)),l("button",{ref:"load_more_models",class:"relative items-start p-4 hover:bg-primary-light rounded-lg mb-2 shadow-lg border-2 select-none",onClick:e[425]||(e[425]=(...f)=>r.load_more_models&&r.load_more_models(...f))},"Load more models",512)]),_:1})],2)])):B("",!0),s.mzl_collapsed?(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[426]||(e[426]=(...f)=>r.open_mzl&&r.open_mzl(...f))},e[742]||(e[742]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),w("button",{key:3,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[427]||(e[427]=(...f)=>r.open_mzl&&r.open_mzl(...f))},e[743]||(e[743]=[l("i",{"data-feather":"chevron-down"},null,-1)]))),l("div",clt,[l("div",dlt,[l("div",null,[l("div",ult,[e[744]||(e[744]=l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Create a reference from local file path:",-1)),k(l("input",{type:"text","onUpdate:modelValue":e[428]||(e[428]=f=>s.reference_path=f),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter Path ...",required:""},null,512),[[ue,s.reference_path]])]),l("button",{type:"button",onClick:e[429]||(e[429]=W(f=>r.onCreateReference(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Add reference")]),s.modelDownlaodInProgress?B("",!0):(T(),w("div",plt,[l("div",flt,[e[745]||(e[745]=l("label",{class:"block mb-2 text-sm font-medium text-gray-900 dark:text-white"},"Download from web:",-1)),k(l("input",{type:"text","onUpdate:modelValue":e[430]||(e[430]=f=>s.addModel.url=f),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter URL ...",required:""},null,512),[[ue,s.addModel.url]])]),l("button",{type:"button",onClick:e[431]||(e[431]=W(f=>r.onInstallAddModel(),["stop"])),class:"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"},"Download")])),s.modelDownlaodInProgress?(T(),w("div",_lt,[e[747]||(e[747]=l("div",{role:"status",class:"justify-center"},null,-1)),l("div",mlt,[l("div",hlt,[l("div",glt,[e[746]||(e[746]=mr('<span class="flex flex-row items-center gap-2 text-base font-medium text-blue-700 dark:text-white" data-v-f29485cf> Downloading <svg aria-hidden="true" class="w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-secondary" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f29485cf><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor" data-v-f29485cf></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill" data-v-f29485cf></path></svg><span class="sr-only" data-v-f29485cf>Loading...</span></span>',1)),l("span",blt,$(Math.floor(s.addModel.progress))+"%",1)]),l("div",{class:"mx-1 opacity-80 line-clamp-1",title:s.addModel.url},$(s.addModel.url),9,ylt),l("div",Elt,[l("div",{class:"bg-blue-600 h-2.5 rounded-full",style:Wt({width:s.addModel.progress+"%"})},null,4)]),l("div",vlt,[l("span",Slt,"Download speed: "+$(r.speed_computed)+"/s",1),l("span",Tlt,$(r.downloaded_size_computed)+"/"+$(r.total_size_computed),1)])])]),l("div",xlt,[l("div",Clt,[l("div",wlt,[l("button",{onClick:e[432]||(e[432]=W((...f)=>r.onCancelInstall&&r.onCancelInstall(...f),["stop"])),type:"button",title:"Cancel download",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"}," Cancel ")])])])])):B("",!0)])])],2)]),l("div",Rlt,[l("div",Alt,[l("button",{onClick:e[435]||(e[435]=W(f=>s.pzc_collapsed=!s.pzc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 text-left w-full flex items-center"},[k(l("div",null,e[749]||(e[749]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.pzc_collapsed]]),k(l("div",null,e[750]||(e[750]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.pzc_collapsed]]),e[753]||(e[753]=l("p",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," Personalities zoo",-1)),r.configFile.personalities?(T(),w("div",Mlt,"|")):B("",!0),l("div",Nlt,$(r.active_pesonality),1),r.configFile.personalities?(T(),w("div",Olt,"|")):B("",!0),r.configFile.personalities?(T(),w("div",Ilt,[r.mountedPersArr.length>0?(T(),w("div",klt,[(T(!0),w(Be,null,Xe(r.mountedPersArr,(f,y)=>(T(),w("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:y+"-"+f.name,ref_for:!0,ref:"mountedPersonalities"},[l("div",Dlt,[l("button",{onClick:W(b=>r.onPersonalitySelected(f),["stop"])},[l("img",{src:s.bUrl+f.avatar,onError:e[433]||(e[433]=(...b)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...b)),class:Ue(["w-8 h-8 rounded-full object-fill text-red-700 border-2 active:scale-90 group-hover:border-secondary",r.configFile.active_personality_id==r.configFile.personalities.indexOf(f.full_path)?"border-secondary":"border-transparent z-0"]),title:f.name},null,42,Plt)],8,Llt),l("button",{onClick:W(b=>r.unmountPersonality(f),["stop"])},e[751]||(e[751]=[l("span",{class:"hidden group-hover:block -top-2 -right-1 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})])],-1)]),8,Flt)])]))),128))])):B("",!0)])):B("",!0),l("button",{onClick:e[434]||(e[434]=W(f=>r.unmountAll(),["stop"])),class:"bg-bg-light hover:border-green-200 ml-5 dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount All"},e[752]||(e[752]=[l("svg",{"aria-hidden":"true",class:"w-4 h-4 text-red-600 hover:text-red-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)]))])]),l("div",{class:Ue([{hidden:s.pzc_collapsed},"flex flex-col mb-2 px-3 pb-0"])},[l("div",Ult,[e[756]||(e[756]=l("label",{for:"personality-search",class:"mb-2 text-sm font-medium text-gray-900 sr-only dark:text-white"},"Search",-1)),l("div",Blt,[l("div",Glt,[s.searchPersonalityInProgress?(T(),w("div",Vlt,e[754]||(e[754]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"inline w-4 h-4 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),s.searchPersonalityInProgress?B("",!0):(T(),w("div",zlt,e[755]||(e[755]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1)])))]),k(l("input",{type:"search",id:"personality-search",class:"block w-full p-4 pl-10 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Search personality...",required:"","onUpdate:modelValue":e[436]||(e[436]=f=>s.searchPersonality=f),onKeyup:e[437]||(e[437]=W((...f)=>r.searchPersonality_func&&r.searchPersonality_func(...f),["stop"]))},null,544),[[ue,s.searchPersonality]]),s.searchPersonality?(T(),w("button",{key:0,onClick:e[438]||(e[438]=W(f=>s.searchPersonality="",["stop"])),type:"button",class:"text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"}," Clear search")):B("",!0)])]),s.searchPersonality?B("",!0):(T(),w("div",Hlt,[l("label",qlt," Personalities Category: ("+$(s.persCatgArr.length)+") ",1),l("select",{id:"persCat",onChange:e[439]||(e[439]=f=>r.update_personality_category(f.target.value,r.refresh)),class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),w(Be,null,Xe(s.persCatgArr,(f,y)=>(T(),w("option",{key:y,selected:f==this.configFile.personality_category},$(f),9,Ylt))),128))],32)])),l("div",null,[s.personalitiesFiltered.length>0?(T(),w("div",$lt,[l("label",Wlt,$(s.searchPersonality?"Search results":"Personalities")+": ("+$(s.personalitiesFiltered.length)+") ",1),l("div",{class:Ue(["overflow-y-auto no-scrollbar p-2 pb-0 grid lg:grid-cols-3 md:grid-cols-2 gap-4",s.pzl_collapsed?"":"max-h-96"])},[z(Is,{name:"bounce"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.personalitiesFiltered,(f,y)=>(T(),at(_,{ref_for:!0,ref:"personalitiesZoo",key:"index-"+y+"-"+f.name,personality:f,select_language:!0,full_path:f.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(b=>b===f.full_path||b===f.full_path+":"+f.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":r.onSettingsPersonality,"on-copy-personality-name":r.onCopyPersonalityName,"on-copy-to_custom":r.onCopyToCustom,"on-open-folder":r.handleOpenFolder},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder"]))),128))]),_:1})],2)])):B("",!0)]),s.pzl_collapsed?(T(),w("button",{key:1,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Collapse",type:"button",onClick:e[440]||(e[440]=f=>s.pzl_collapsed=!s.pzl_collapsed)},e[757]||(e[757]=[l("i",{"data-feather":"chevron-up"},null,-1)]))):(T(),w("button",{key:2,class:"text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:"Expand",type:"button",onClick:e[441]||(e[441]=f=>s.pzl_collapsed=!s.pzl_collapsed)},e[758]||(e[758]=[l("i",{"data-feather":"chevron-down"},null,-1)])))],2)]),l("div",Klt,[l("div",jlt,[l("button",{onClick:e[442]||(e[442]=W(f=>s.mc_collapsed=!s.mc_collapsed,["stop"])),class:"text-2xl hover:text-primary p-2 -m-2 w-full text-left flex items-center"},[k(l("div",null,e[759]||(e[759]=[l("i",{"data-feather":"chevron-right"},null,-1)]),512),[[_t,s.mc_collapsed]]),k(l("div",null,e[760]||(e[760]=[l("i",{"data-feather":"chevron-down"},null,-1)]),512),[[_t,!s.mc_collapsed]]),e[761]||(e[761]=l("p",{class:"text-lg font-semibold cursor-pointer select-none"}," Model Configuration",-1))])]),l("div",{class:Ue([{hidden:s.mc_collapsed},"flex flex-col mb-2 p-2"])},[l("div",Qlt,[l("div",Xlt,[k(l("input",{id:"override-model-parameters",type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[443]||(e[443]=W(()=>{},["stop"])),"onUpdate:modelValue":e[444]||(e[444]=f=>r.configFile.override_personality_model_parameters=f),onChange:e[445]||(e[445]=f=>r.update_setting("override_personality_model_parameters",r.configFile.override_personality_model_parameters))},null,544),[[He,r.configFile.override_personality_model_parameters]]),e[762]||(e[762]=l("label",{for:"override-model-parameters",class:"block text-sm font-medium"}," Override personality model parameters ",-1))])]),l("div",{class:Ue(r.configFile.override_personality_model_parameters?"":"pointer-events-none opacity-30")},[l("div",Zlt,[e[763]||(e[763]=l("label",{for:"seed",class:"block mb-2 text-sm font-medium"}," Seed: ",-1)),k(l("input",{type:"text",id:"seed","onUpdate:modelValue":e[446]||(e[446]=f=>r.configFile.seed=f),class:"bg-gray-50 border border-gray-300 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,512),[[ue,r.configFile.seed]])]),l("div",Jlt,[l("div",ect,[l("div",tct,[e[764]||(e[764]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"temperature",class:"text-sm font-medium"}," Temperature: ")],-1)),l("p",nct,[k(l("input",{type:"text",id:"temp-val","onUpdate:modelValue":e[447]||(e[447]=f=>r.configFile.temperature=f),onChange:e[448]||(e[448]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.temperature]])])]),k(l("input",{id:"temperature",onChange:e[449]||(e[449]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[450]||(e[450]=f=>r.configFile.temperature=f),min:"0",max:"5",step:"0.1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.temperature]])])]),l("div",ict,[l("div",sct,[l("div",rct,[e[765]||(e[765]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"predict",class:"text-sm font-medium"}," N Predict: ")],-1)),l("p",oct,[k(l("input",{type:"text",id:"predict-val","onUpdate:modelValue":e[451]||(e[451]=f=>r.configFile.n_predict=f),onChange:e[452]||(e[452]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.n_predict]])])]),k(l("input",{id:"predict",type:"range",onChange:e[453]||(e[453]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[454]||(e[454]=f=>r.configFile.n_predict=f),min:"0",max:"2048",step:"32",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.n_predict]])])]),l("div",act,[l("div",lct,[l("div",cct,[e[766]||(e[766]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_k",class:"text-sm font-medium"}," Top-K: ")],-1)),l("p",dct,[k(l("input",{type:"text",id:"top_k-val","onUpdate:modelValue":e[455]||(e[455]=f=>r.configFile.top_k=f),onChange:e[456]||(e[456]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_k]])])]),k(l("input",{id:"top_k",type:"range",onChange:e[457]||(e[457]=f=>s.settingsChanged=!0),"onUpdate:modelValue":e[458]||(e[458]=f=>r.configFile.top_k=f),min:"0",max:"100",step:"1",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_k]])])]),l("div",uct,[l("div",pct,[l("div",fct,[e[767]||(e[767]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"top_p",class:"text-sm font-medium"}," Top-P: ")],-1)),l("p",_ct,[k(l("input",{type:"text",id:"top_p-val","onUpdate:modelValue":e[459]||(e[459]=f=>r.configFile.top_p=f),onChange:e[460]||(e[460]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_p]])])]),k(l("input",{id:"top_p",type:"range","onUpdate:modelValue":e[461]||(e[461]=f=>r.configFile.top_p=f),min:"0",max:"1",step:"0.01",onChange:e[462]||(e[462]=f=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.top_p]])])]),l("div",mct,[l("div",hct,[l("div",gct,[e[768]||(e[768]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_penalty",class:"text-sm font-medium"}," Repeat penalty: ")],-1)),l("p",bct,[k(l("input",{type:"text",id:"repeat_penalty-val","onUpdate:modelValue":e[463]||(e[463]=f=>r.configFile.repeat_penalty=f),onChange:e[464]||(e[464]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_penalty]])])]),k(l("input",{id:"repeat_penalty",onChange:e[465]||(e[465]=f=>s.settingsChanged=!0),type:"range","onUpdate:modelValue":e[466]||(e[466]=f=>r.configFile.repeat_penalty=f),min:"0",max:"2",step:"0.01",class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_penalty]])])]),l("div",yct,[l("div",Ect,[l("div",vct,[e[769]||(e[769]=l("p",{class:"absolute left-0 mt-6"},[l("label",{for:"repeat_last_n",class:"text-sm font-medium"}," Repeat last N: ")],-1)),l("p",Sct,[k(l("input",{type:"text",id:"repeat_last_n-val","onUpdate:modelValue":e[467]||(e[467]=f=>r.configFile.repeat_last_n=f),onChange:e[468]||(e[468]=f=>s.settingsChanged=!0),class:"mt-2 w-16 text-right p-2 border border-gray-300 rounded-lg bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_last_n]])])]),k(l("input",{id:"repeat_last_n",type:"range","onUpdate:modelValue":e[469]||(e[469]=f=>r.configFile.repeat_last_n=f),min:"0",max:"100",step:"1",onChange:e[470]||(e[470]=f=>s.settingsChanged=!0),class:"flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,544),[[ue,r.configFile.repeat_last_n]])])])],2)],2)])],2)]),z(m,{ref:"addmodeldialog"},null,512),z(h,{class:"z-20",show:s.variantSelectionDialogVisible,choices:s.variant_choices,onChoiceSelected:r.onVariantChoiceSelected,onCloseDialog:r.oncloseVariantChoiceDialog,onChoiceValidated:r.onvalidateVariantChoice},null,8,["show","choices","onChoiceSelected","onCloseDialog","onChoiceValidated"])],64)}const xct=st(Cnt,[["render",Tct],["__scopeId","data-v-f29485cf"]]),Cct={components:{ClipBoardTextInput:O0,Card:cp},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const n={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};ie.post("/start_training",n).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(n){const e=n.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(n){console.log("watching model_name",n),this.$refs.clipboardInput.inputValue=n}}},wct={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Rct={class:"mb-4"},Act=["value"],Mct={class:"mb-4"},Nct={class:"mb-4"},Oct={class:"mb-4"},Ict={class:"mb-4"},kct={class:"mb-4"},Dct={class:"mb-4"},Lct={key:1};function Pct(n,e,t,i,s,r){const o=nt("Card"),a=nt("ClipBoardTextInput");return r.selectedModel!==null&&r.selectedModel.toLowerCase().includes("gptq")?(T(),w("div",wct,[l("form",{onSubmit:e[2]||(e[2]=W((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:""},[z(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[z(o,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",Rct,[e[3]||(e[3]=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),k(l("select",{"onUpdate:modelValue":e[0]||(e[0]=c=>r.selectedModel=c),onChange:e[1]||(e[1]=(...c)=>n.setModel&&n.setModel(...c)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(T(!0),w(Be,null,Xe(r.models,c=>(T(),w("option",{key:c,value:c},$(c),9,Act))),128))],544),[[It,r.selectedModel]])])]),_:1}),z(o,{title:"Data",isHorizontal:!1},{default:Ie(()=>[l("div",Mct,[e[4]||(e[4]=l("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),z(a,{id:"model_path",inputType:"file",value:s.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),z(o,{title:"Training",isHorizontal:!1},{default:Ie(()=>[l("div",Nct,[e[5]||(e[5]=l("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.lr},null,8,["value"])]),l("div",Oct,[e[6]||(e[6]=l("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.num_epochs},null,8,["value"])]),l("div",Ict,[e[7]||(e[7]=l("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.max_length},null,8,["value"])]),l("div",kct,[e[8]||(e[8]=l("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),z(a,{id:"model_path",inputType:"integer",value:s.batch_size},null,8,["value"])])]),_:1}),z(o,{title:"Output",isHorizontal:!1},{default:Ie(()=>[l("div",Dct,[e[9]||(e[9]=l("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),z(a,{id:"model_path",inputType:"text",value:n.output_dir},null,8,["value"])])]),_:1})]),_:1}),z(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>e[10]||(e[10]=[l("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(T(),w("div",Lct,[z(o,{title:"Info",class:"",isHorizontal:!1},{default:Ie(()=>e[11]||(e[11]=[Ze(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const Fct=st(Cct,[["render",Pct]]),Uct={components:{ClipBoardTextInput:O0,Card:cp},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(n){var t;console.log("here");const e=(t=n.target.files[0])==null?void 0:t.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(n){const e=n.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Bct={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},Gct={class:"mb-4"},Vct={class:"mb-4"};function zct(n,e,t,i,s,r){const o=nt("ClipBoardTextInput"),a=nt("Card");return T(),w("div",Bct,[l("form",{onSubmit:e[0]||(e[0]=W((...c)=>r.submitForm&&r.submitForm(...c),["prevent"])),class:"max-w-md mx-auto"},[z(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>[z(a,{title:"Model",class:"",isHorizontal:!1},{default:Ie(()=>[l("div",Gct,[e[1]||(e[1]=l("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),z(o,{id:"model_path",inputType:"text",value:s.model_name},null,8,["value"])]),l("div",Vct,[e[2]||(e[2]=l("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),z(o,{id:"model_path",inputType:"text",value:s.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),z(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ie(()=>e[3]||(e[3]=[l("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const Hct=st(Uct,[["render",zct]]),qct={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(n){this.newTitle=n},checkedChangeEvent(n,e){this.$emit("checked",n,e)}},mounted(){this.newTitle=this.title,Le(()=>{Ve.replace()})},watch:{showConfirmation(){Le(()=>{Ve.replace()})},editTitleMode(n){this.showConfirmation=n,this.editTitle=n,n&&Le(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(n){this.showConfirmation=n,n&&Le(()=>{this.$refs.titleBox.focus()})},makeTitleMode(n){this.showConfirmation=n},checkBoxValue(n,e){this.checkBoxValue_local=n}}},Yct=["id"],$ct={class:"flex flex-row items-center gap-2"},Wct={key:0},Kct={class:"flex flex-row items-center w-full"},jct=["title"],Qct=["value"],Xct={class:"absolute top-0 right-0 h-full flex items-center"},Zct={class:"flex gap-2 items-center bg-white dark:bg-gray-800 p-2 rounded-l-md shadow-md transform translate-x-full group-hover:translate-x-0 transition-transform duration-300"},Jct={key:0,class:"flex gap-2 items-center"},edt={key:1,class:"flex gap-2 items-center"};function tdt(n,e,t,i,s,r){return T(),w("div",{class:Ue([t.selected?"discussion-hilighted min-w-[14rem] max-w-[14rem]":"discussion min-w-[14rem] max-w-[14rem]","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 group cursor-pointer relative"]),id:"dis-"+t.id,onClick:e[13]||(e[13]=W(o=>r.selectEvent(),["stop"]))},[l("div",$ct,[t.isCheckbox?(T(),w("div",Wct,[k(l("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=W(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>s.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>r.checkedChangeEvent(o,t.id))},null,544),[[He,s.checkBoxValue_local]])])):B("",!0),t.selected?(T(),w("div",{key:1,class:Ue(["min-h-full w-2 rounded-xl self-stretch",t.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):B("",!0),t.selected?B("",!0):(T(),w("div",{key:2,class:Ue(["w-2",t.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),l("div",Kct,[s.editTitle?B("",!0):(T(),w("p",{key:0,title:t.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},$(t.title?t.title==="untitled"?"New discussion":t.title:"New discussion"),9,jct)),s.editTitle?(T(),w("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:t.title,required:"",onKeydown:[e[3]||(e[3]=wi(W(o=>r.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=wi(W(o=>s.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>r.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=W(()=>{},["stop"]))},null,40,Qct)):B("",!0)]),l("div",Xct,[l("div",Zct,[s.showConfirmation?(T(),w("div",Jct,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=W(o=>r.cancel(),["stop"]))},e[14]||(e[14]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=W(o=>s.editTitleMode?r.editTitleEvent():s.deleteMode?r.deleteEvent():r.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),s.showConfirmation?B("",!0):(T(),w("div",edt,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=W(o=>r.openFolderEvent(),["stop"]))},e[16]||(e[16]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=W(o=>s.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[l("i",{"data-feather":"type"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=W(o=>s.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[l("i",{"data-feather":"edit-2"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=W(o=>s.deleteMode=!0,["stop"]))},e[19]||(e[19]=[l("i",{"data-feather":"trash"},null,-1)]))]))])])],10,Yct)}const Q0=st(qct,[["render",tdt],["__scopeId","data-v-65166c4c"]]),ndt={data(){return{show:!1,prompt:"",inputText:""}},methods:{showPanel(){this.show=!0},ok(){this.show=!1,this.$emit("ok",this.inputText)},cancel(){this.show=!1,this.inputText=""}},props:{promptText:{type:String,required:!0}},watch:{promptText(n){this.prompt=n}}},idt={key:0,class:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black bg-opacity-50"},sdt={class:"bg-white p-8 rounded"},rdt={class:"text-xl font-bold mb-4"};function odt(n,e,t,i,s,r){return T(),w("div",null,[s.show?(T(),w("div",idt,[l("div",sdt,[l("h2",rdt,$(t.promptText),1),k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=o=>s.inputText=o),class:"border border-gray-300 px-4 py-2 rounded mb-4"},null,512),[[ue,s.inputText]]),l("button",{onClick:e[1]||(e[1]=(...o)=>r.ok&&r.ok(...o)),class:"bg-blue-500 text-white px-4 py-2 rounded mr-2"},"OK"),l("button",{onClick:e[2]||(e[2]=(...o)=>r.cancel&&r.cancel(...o)),class:"bg-gray-500 text-white px-4 py-2 rounded"},"Cancel")])])):B("",!0)])}const dN=st(ndt,[["render",odt]]),adt={data(){return{id:0,loading:!1,isCheckbox:!1,isVisible:!1,categories:[],titles:[],content:"",searchQuery:""}},components:{Discussion:Q0,MarkdownRenderer:lp},props:{host:{type:String,required:!1,default:"http://localhost:9600"}},methods:{showSkillsLibrary(){this.isVisible=!0,this.fetchTitles()},closeComponent(){this.isVisible=!1},fetchCategories(){ie.post("/get_skills_library_categories",{client_id:this.$store.state.client_id}).then(n=>{this.categories=n.data.categories}).catch(n=>{console.error("Error fetching categories:",n)})},fetchTitles(){console.log("Fetching categories"),ie.post("/get_skills_library_titles",{client_id:this.$store.state.client_id}).then(n=>{this.titles=n.data.titles,console.log("titles recovered")}).catch(n=>{console.error("Error fetching titles:",n)})},fetchContent(n){ie.post("/get_skills_library_content",{client_id:this.$store.state.client_id,skill_id:n}).then(e=>{const t=e.data.contents[0];this.id=t.id,this.content=t.content}).catch(e=>{console.error("Error fetching content:",e)})},deleteCategory(n){console.log("Delete category")},editCategory(n){console.log("Edit category")},checkUncheckCategory(n){console.log("Unchecked category")},deleteSkill(n){console.log("Delete skill ",n),ie.post("/delete_skill",{client_id:this.$store.state.client_id,skill_id:n}).then(()=>{this.fetchTitles()})},editTitle(n){ie.post("/edit_skill_title",{client_id:this.$store.state.client_id,skill_id:n,title:n}).then(()=>{this.fetchTitles()}),console.log("Edit title")},makeTitle(n){console.log("Make title")},checkUncheckTitle(n){},searchSkills(){}}},ldt={id:"leftPanel",class:"flex flex-row h-full flex-grow shadow-lg rounded"},cdt={class:"min-w-[23rem] max-w-[23rem] z-10 top-0 bg-bg-light-tone dark:bg-bg-dark-tone shadow-md overflow-y-scroll no-scrollbar"},ddt={class:"search p-4"},udt={classclass:"absolute flex flex-col no-scrollbar shadow-lg min-w-[24rem] max-w-[24rem] bg-bg-light-tone dark:bg-bg-dark-tone top-20 left-20 bottom-20 right-20 bg-bg-light shadow-lg rounded"},pdt={class:"z-0 flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"};function fdt(n,e,t,i,s,r){const o=nt("Discussion"),a=nt("MarkdownRenderer");return T(),w("div",{class:Ue([{hidden:!s.isVisible},"absolute flex flex-col no-scrollbar shadow-lg bg-bg-light dark:bg-bg-dark top-20 left-20 bottom-20 right-20 shadow-lg rounded"])},[l("div",ldt,[l("div",cdt,[l("div",ddt,[k(l("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=c=>s.searchQuery=c),placeholder:"Search skills",class:"border border-gray-300 rounded px-2 py-1 mr-2"},null,512),[[ue,s.searchQuery]]),l("button",{onClick:e[1]||(e[1]=(...c)=>r.searchSkills&&r.searchSkills(...c)),class:"bg-blue-500 text-white rounded px-4 py-1"},"Search")]),l("div",udt,[e[3]||(e[3]=l("h2",{class:"text-xl font-bold m-4"},"Titles",-1)),s.titles.length>0?(T(),at(Is,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.titles,c=>(T(),at(o,{key:c.id,id:c.id,title:c.title,selected:r.fetchContent(c.id),loading:s.loading,isCheckbox:s.isCheckbox,checkBoxValue:!1,onSelect:d=>r.fetchContent(c.id),onDelete:d=>r.deleteSkill(c.id),onEditTitle:r.editTitle,onMakeTitle:r.makeTitle,onChecked:r.checkUncheckTitle},null,8,["id","title","selected","loading","isCheckbox","onSelect","onDelete","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0)])]),l("div",pdt,[e[4]||(e[4]=l("h2",{class:"text-xl font-bold m-4"},"Content",-1)),z(a,{host:t.host,"markdown-text":s.content,message_id:s.id,discussion_id:s.id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])])]),l("button",{onClick:e[2]||(e[2]=(...c)=>r.closeComponent&&r.closeComponent(...c)),class:"absolute top-2 right-2 bg-red-500 text-white rounded px-2 py-1 hover:bg-red-300"},"Close")],2)}const uN=st(adt,[["render",fdt]]),_dt={props:{htmlContent:{type:String,required:!0}}},mdt=["innerHTML"];function hdt(n,e,t,i,s,r){return T(),w("div",{class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:t.htmlContent},null,8,mdt)}const gdt=st(_dt,[["render",hdt]]),bdt={name:"JsonTreeView",props:{data:{type:[Object,Array],required:!0},depth:{type:Number,default:0}},data(){return{collapsedKeys:new Set}},methods:{isObject(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)},isArray(n){return Array.isArray(n)},toggleCollapse(n){this.collapsedKeys.has(n)?this.collapsedKeys.delete(n):this.collapsedKeys.add(n)},isCollapsed(n){return this.collapsedKeys.has(n)},getValueType(n){return typeof n=="string"?"string":typeof n=="number"?"number":typeof n=="boolean"?"boolean":n===null?"null":""},formatValue(n){return typeof n=="string"?`"${n}"`:String(n)}}},ydt={class:"json-tree-view"},Edt=["onClick"],vdt={key:0,class:"toggle-icon"},Sdt={class:"key"},Tdt={key:0,class:"json-nested"};function xdt(n,e,t,i,s,r){const o=nt("json-tree-view",!0);return T(),w("div",ydt,[(T(!0),w(Be,null,Xe(t.data,(a,c)=>(T(),w("div",{key:c,class:"json-item"},[l("div",{class:"json-key",onClick:d=>r.toggleCollapse(c)},[r.isObject(a)||r.isArray(a)?(T(),w("span",vdt,[l("i",{class:Ue(r.isCollapsed(c)?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)])):B("",!0),l("span",Sdt,$(c)+":",1),!r.isObject(a)&&!r.isArray(a)?(T(),w("span",{key:1,class:Ue(["value",r.getValueType(a)])},$(r.formatValue(a)),3)):B("",!0)],8,Edt),(r.isObject(a)||r.isArray(a))&&!r.isCollapsed(c)?(T(),w("div",Tdt,[z(o,{data:a,depth:t.depth+1},null,8,["data","depth"])])):B("",!0)]))),128))])}const Cdt=st(bdt,[["render",xdt],["__scopeId","data-v-40406ec6"]]),wdt={components:{JsonTreeView:Cdt},props:{jsonData:{type:[Object,Array,String],default:null},jsonFormText:{type:String,default:"JSON Viewer"}},data(){return{collapsed:!0}},computed:{isContentPresent(){return this.jsonData!==null&&(typeof this.jsonData!="string"||this.jsonData.trim()!=="")},parsedJsonData(){if(typeof this.jsonData=="string")try{return JSON.parse(this.jsonData)}catch(n){return console.error("Error parsing JSON string:",n),{error:"Invalid JSON string"}}return this.jsonData}},methods:{toggleCollapsible(){this.collapsed=!this.collapsed}}},Rdt={key:0,class:"json-viewer"},Adt={class:"toggle-icon"},Mdt={class:"json-content panels-color"};function Ndt(n,e,t,i,s,r){const o=nt("json-tree-view");return r.isContentPresent?(T(),w("div",Rdt,[l("div",{class:"collapsible-section",onClick:e[0]||(e[0]=(...a)=>r.toggleCollapsible&&r.toggleCollapsible(...a))},[l("span",Adt,[l("i",{class:Ue(s.collapsed?"fas fa-chevron-right":"fas fa-chevron-down")},null,2)]),Ze(" "+$(t.jsonFormText),1)]),k(l("div",Mdt,[z(o,{data:r.parsedJsonData,depth:0},null,8,["data"])],512),[[_t,!s.collapsed]])])):B("",!0)}const Odt=st(wdt,[["render",Ndt],["__scopeId","data-v-83fc9727"]]),Idt={props:{done:{type:Boolean,default:!1},text:{type:String,default:""},status:{type:Boolean,default:!1},step_type:{type:String,default:"start_end"},description:{type:String,default:""}},mounted(){this.amounted()},methods:{amounted(){console.log("Component mounted with the following properties:"),console.log("done:",this.done),console.log("text:",this.text),console.log("status:",this.status),console.log("step_type:",this.step_type),console.log("description:",this.description)}},watch:{done(n){typeof n!="boolean"&&console.error("Invalid type for done. Expected Boolean.")},status(n){typeof n!="boolean"&&console.error("Invalid type for status. Expected Boolean."),this.done&&!n&&console.error("Task completed with errors.")}}},kdt={class:"step-container"},Ddt={class:"step-icon"},Ldt={key:0},Pdt={key:0},Fdt={key:1},Udt={key:2},Bdt={key:1},Gdt={class:"step-content"},Vdt={key:0,class:"step-description"};function zdt(n,e,t,i,s,r){return T(),w("div",kdt,[l("div",{class:Ue(["step-wrapper transition-all duration-300 ease-in-out",{"bg-green-100 dark:bg-green-900":t.done&&t.status,"bg-red-100 dark:bg-red-900":t.done&&!t.status,"bg-gray-100 dark:bg-gray-800":!t.done}])},[l("div",Ddt,[t.step_type==="start_end"?(T(),w("div",Ldt,[t.done?t.done&&t.status?(T(),w("div",Fdt,e[1]||(e[1]=[l("i",{"data-feather":"check-circle",class:"feather-icon text-green-600 dark:text-green-400"},null,-1)]))):(T(),w("div",Udt,e[2]||(e[2]=[l("i",{"data-feather":"x-circle",class:"feather-icon text-red-600 dark:text-red-400"},null,-1)]))):(T(),w("div",Pdt,e[0]||(e[0]=[l("i",{"data-feather":"circle",class:"feather-icon text-gray-600 dark:text-gray-300"},null,-1)])))])):B("",!0),t.done?B("",!0):(T(),w("div",Bdt,e[3]||(e[3]=[l("div",{class:"spinner"},null,-1)])))]),l("div",Gdt,[l("h3",{class:Ue(["step-text",{"text-green-600 dark:text-green-400":t.done&&t.status,"text-red-600 dark:text-red-400":t.done&&!t.status,"text-gray-800 dark:text-gray-200":!t.done}])},$(t.text||"No text provided"),3),t.description?(T(),w("p",Vdt,$(t.description||"No description provided"),1)):B("",!0)])],2)])}const Hdt=st(Idt,[["render",zdt],["__scopeId","data-v-78f415f6"]]),qdt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20480%20480'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M240,0C107.664,0,0,107.664,0,240s107.664,240,240,240s240-107.664,240-240S372.336,0,240,0z%20M240,460%20c-121.309,0-220-98.691-220-220S118.691,20,240,20s220,98.691,220,220S361.309,460,240,460z'/%3e%3cpath%20d='M410,194.999h-27.058c-2.643-8.44-6-16.56-10.03-24.271l19.158-19.158c3.776-3.775,5.854-8.79,5.854-14.121%20c0-5.332-2.08-10.347-5.854-14.121l-35.399-35.399c-3.775-3.775-8.79-5.854-14.122-5.854c-5.331,0-10.346,2.079-14.121,5.854%20l-19.158,19.158c-7.711-4.03-15.832-7.386-24.271-10.03V70c0-11.028-8.972-20-20-20h-50c-11.028,0-20,8.972-20,20v27.058%20c-8.44,2.643-16.56,6-24.271,10.03L151.57,87.93c-3.775-3.776-8.79-5.854-14.121-5.854c-5.332,0-10.347,2.08-14.121,5.854%20l-35.399,35.399c-3.775,3.775-5.854,8.79-5.854,14.122c0,5.331,2.079,10.346,5.854,14.121l19.158,19.158%20c-4.03,7.711-7.386,15.832-10.03,24.271H70c-11.028,0-20,8.972-20,20v50c0,11.028,8.972,20,20,20h27.057%20c2.643,8.44,6,16.56,10.03,24.271L87.929,328.43c-3.776,3.775-5.854,8.79-5.854,14.121c0,5.332,2.08,10.347,5.854,14.121%20l35.399,35.399c3.775,3.775,8.79,5.854,14.122,5.854c5.331,0,10.346-2.079,14.121-5.854l19.158-19.158%20c7.711,4.03,15.832,7.386,24.271,10.03V410c0,11.028,8.972,20,20,20h50c11.028,0,20-8.972,20.001-20v-27.058%20c8.44-2.643,16.56-6,24.271-10.03l19.158,19.158c3.775,3.776,8.79,5.854,14.121,5.854c5.332,0,10.347-2.08,14.121-5.854%20l35.399-35.399c3.775-3.775,5.854-8.79,5.854-14.122c0-5.331-2.079-10.346-5.854-14.121l-19.158-19.158%20c4.03-7.711,7.386-15.832,10.03-24.271H410c11.028,0,20-8.972,20-20v-50C430,203.971,421.028,194.999,410,194.999z%20M410,264.998%20h-34.598c-4.562,0-8.544,3.086-9.684,7.503c-3.069,11.901-7.716,23.133-13.813,33.387c-2.337,3.931-1.71,8.948,1.524,12.182%20l24.5,24.457l-35.357,35.4l-24.5-24.5c-3.236-3.235-8.253-3.86-12.182-1.524c-10.254,6.097-21.487,10.745-33.387,13.813%20c-4.417,1.14-7.503,5.122-7.503,9.684V410h-50v-34.599c0-4.562-3.086-8.544-7.503-9.684%20c-11.901-3.069-23.133-7.716-33.387-13.813c-1.587-0.944-3.353-1.404-5.107-1.404c-2.586,0-5.147,1.002-7.073,2.931l-24.457,24.5%20l-35.4-35.357l24.5-24.5c3.234-3.235,3.861-8.251,1.524-12.182c-6.097-10.254-10.745-21.487-13.813-33.387%20c-1.14-4.417-5.122-7.503-9.684-7.503H70v-50h34.596c4.562,0,8.544-3.086,9.684-7.503c3.069-11.901,7.716-23.133,13.813-33.387%20c2.337-3.931,1.71-8.948-1.524-12.182l-24.5-24.457l35.357-35.4l24.5,24.5c3.236,3.235,8.253,3.861,12.182,1.524%20c10.254-6.097,21.487-10.745,33.387-13.813c4.417-1.14,7.503-5.122,7.503-9.684V70h50v34.596c0,4.562,3.086,8.544,7.503,9.684%20c11.901,3.069,23.133,7.716,33.387,13.813c3.929,2.337,8.947,1.709,12.182-1.524l24.457-24.5l35.4,35.357l-24.5,24.5%20c-3.234,3.235-3.861,8.251-1.524,12.182c6.097,10.254,10.745,21.487,13.813,33.387c1.14,4.417,5.122,7.503,9.684,7.503H410%20V264.998z'/%3e%3cpath%20d='M331.585,292.475l-40-35l-13.17,15.051L298.386,290H240c-27.57,0-50-22.43-50-50h-20c0,38.598,31.402,70,70,70h58.386%20l-19.971,17.475l13.17,15.051l40-35c2.17-1.898,3.415-4.642,3.415-7.525S333.755,294.373,331.585,292.475z'/%3e%3cpath%20d='M201.585,207.473L181.614,190H240c27.57,0,50,22.43,50,50h20c0-38.598-31.402-70-70-70h-58.386l19.971-17.475%20l-13.17-15.051l-40,35c-2.17,1.898-3.415,4.642-3.415,7.525s1.245,5.627,3.415,7.525l40,35L201.585,207.473z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3canimateTransform%20attributeName='transform'%20attributeType='XML'%20type='rotate'%20from='0%20240%20240'%20to='360%20240%20240'%20dur='10s'%20repeatCount='indefinite'%20/%3e%3c/svg%3e",Ydt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cpath%20d='M25%200C11.6%200%200%2011.6%200%2025s11.6%2025%2025%2025%2025-11.6%2025-25S40.4%200%2025%200zm0%2048C12.8%2048%202%2039.2%202%2025S12.8%202%2025%202s24%2010.8%2024%2024-10.8%2024-24%2024zm-4-33l-8%208%2018%2018%2030-30-8-8-22%2022L22%2016'%20fill='green'/%3e%3c/svg%3e",$dt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012%2019%206.41z'%20fill='red'/%3e%3c/svg%3e",pN="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20width='256'%20height='256'%20viewBox='0%200%20256%20256'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%20style='stroke:%20white;%20stroke-width:%202px;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20none;%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='translate(1.4065934065934016%201.4065934065934016)%20scale(2.81%202.81)'%20%3e%3cpath%20d='M%2089.999%203.075%20C%2090%203.02%2090%202.967%2089.999%202.912%20c%20-0.004%20-0.134%20-0.017%20-0.266%20-0.038%20-0.398%20c%20-0.007%20-0.041%20-0.009%20-0.081%20-0.018%20-0.122%20c%20-0.034%20-0.165%20-0.082%20-0.327%20-0.144%20-0.484%20c%20-0.018%20-0.046%20-0.041%20-0.089%20-0.061%20-0.134%20c%20-0.053%20-0.119%20-0.113%20-0.234%20-0.182%20-0.346%20C%2089.528%201.382%2089.5%201.336%2089.469%201.29%20c%20-0.102%20-0.147%20-0.212%20-0.288%20-0.341%20-0.417%20c%20-0.13%20-0.13%20-0.273%20-0.241%20-0.421%20-0.344%20c%20-0.042%20-0.029%20-0.085%20-0.056%20-0.129%20-0.082%20c%20-0.118%20-0.073%20-0.239%20-0.136%20-0.364%20-0.191%20c%20-0.039%20-0.017%20-0.076%20-0.037%20-0.116%20-0.053%20c%20-0.161%20-0.063%20-0.327%20-0.113%20-0.497%20-0.147%20c%20-0.031%20-0.006%20-0.063%20-0.008%20-0.094%20-0.014%20c%20-0.142%20-0.024%20-0.285%20-0.038%20-0.429%20-0.041%20C%2087.03%200%2086.983%200%2086.936%200.001%20c%20-0.141%200.003%20-0.282%200.017%20-0.423%200.041%20c%20-0.035%200.006%20-0.069%200.008%20-0.104%200.015%20c%20-0.154%200.031%20-0.306%200.073%20-0.456%200.129%20L%201.946%2031.709%20c%20-1.124%200.422%20-1.888%201.473%20-1.943%202.673%20c%20-0.054%201.199%200.612%202.316%201.693%202.838%20l%2034.455%2016.628%20l%2016.627%2034.455%20C%2053.281%2089.344%2054.334%2090%2055.481%2090%20c%200.046%200%200.091%20-0.001%200.137%20-0.003%20c%201.199%20-0.055%202.251%20-0.819%202.673%20-1.943%20L%2089.815%204.048%20c%200.056%20-0.149%200.097%20-0.3%200.128%20-0.453%20c%200.008%20-0.041%200.011%20-0.081%200.017%20-0.122%20C%2089.982%203.341%2089.995%203.208%2089.999%203.075%20z%20M%2075.086%2010.672%20L%2037.785%2047.973%20L%2010.619%2034.864%20L%2075.086%2010.672%20z%20M%2055.136%2079.381%20L%2042.027%2052.216%20l%2037.302%20-37.302%20L%2055.136%2079.381%20z'%20style='stroke:%20none;%20stroke-width:%201;%20stroke-dasharray:%20none;%20stroke-linecap:%20butt;%20stroke-linejoin:%20miter;%20stroke-miterlimit:%2010;%20fill:%20rgb(0,0,0);%20fill-rule:%20nonzero;%20opacity:%201;'%20transform='%20matrix(1%200%200%201%200%200)%20'%20stroke-linecap='round'%20/%3e%3ccircle%20cx='75'%20cy='75'%20r='15'%20fill='%23008000'/%3e%3cpath%20d='M75,60%20A15,15%200%200,1%2090,75%20A15,15%200%200,1%2075,90%20A15,15%200%200,1%2060,75%20A15,15%200%200,1%2075,60%20Z'%20stroke='%23FFFFFF'%20stroke-width='2'%20fill='none'/%3e%3cpath%20d='M81,75%20A6,6%200%200,1%2075,81%20A6,6%200%200,1%2069,75%20A6,6%200%200,1%2075,69%20A6,6%200%200,1%2081,75%20Z'%20fill='%23FFFFFF'/%3e%3c/g%3e%3c/svg%3e",Wdt="/",Kdt={name:"Message",emits:["copy","delete","rankUp","rankDown","updateMessage","resendMessage","continueMessage"],components:{MarkdownRenderer:lp,Step:Hdt,RenderHTMLJS:gdt,JsonViewer:Odt,DynamicUIRenderer:cN,ToolbarButton:I0,DropdownMenu:XM},props:{host:{type:String,required:!1,default:"http://localhost:9600"},message:Object,avatar:{default:""}},data(){return{ui_componentKey:0,isSynthesizingVoice:!1,cpp_block:FM,html5_block:UM,LaTeX_block:BM,json_block:PM,javascript_block:LM,process_svg:qdt,ok_svg:Ydt,failed_svg:$dt,loading_svg:VM,sendGlobe:pN,code_block:kM,python_block:DM,bash_block:GM,audio_url:null,audio:null,msg:null,isSpeaking:!1,speechSynthesis:null,voices:[],expanded:!1,showConfirmation:!1,editMsgMode_:!1,deleteMsgMode:!1,mdRenderHeight:Number}},mounted(){if("speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0?this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged):console.log("No voices found")):console.error("Speech synthesis is not supported in this browser."),Le(()=>{Ve.replace(),this.mdRenderHeight=this.$refs.mdRender.$el.offsetHeight}),console.log("Checking metadata"),console.log(this.message),Object.prototype.hasOwnProperty.call(this.message,"metadata")&&this.message.metadata!=null){console.log("Metadata found!"),Array.isArray(this.message.metadata)||(this.message.metadata=[]),console.log(typeof this.message.metadata),console.log(this.message.metadata);for(let n of this.message.metadata)Object.prototype.hasOwnProperty.call(n,"audio_url")&&n.audio_url!=null&&(this.audio_url=n.audio_url,console.log("Audio URL:",this.audio_url))}},methods:{computeTimeDiff(n,e){let t=e.getTime()-n.getTime();const i=Math.floor(t/(1e3*60*60));t-=i*(1e3*60*60);const s=Math.floor(t/(1e3*60));t-=s*(1e3*60);const r=Math.floor(t/1e3);return t-=r*1e3,[i,s,r]},insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=n.shiftKey;if(t===i)if(s){if(e.value.substring(t-4,t)=="    "){const r=e.value.substring(0,t-4),o=e.value.substring(i),a=r+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t-4})}}else{const r=e.value.substring(0,t),o=e.value.substring(i),a=r+"    "+o;this.message.content=a,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4})}else{const o=e.value.substring(t,i).split(`
 `).map(u=>u.trim()===""?u:s?u.startsWith("    ")?u.substring(4):u:"    "+u),a=e.value.substring(0,t),c=e.value.substring(i),d=a+o.join(`
 `)+c;this.message.content=d,this.$nextTick(()=>{e.selectionStart=t,e.selectionEnd=i+o.length*4})}n.preventDefault()},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){this.isSynthesizingVoice?(this.isSynthesizingVoice=!1,this.$refs.audio_player.pause()):(this.isSynthesizingVoice=!0,ie.post("./text2wav",{text:this.message.content}).then(n=>{this.isSynthesizingVoice=!1;let e=n.data.url;console.log(e),this.audio_url=e,this.message.metadata||(this.message.metadata=[]);let t=!1;for(let i of this.message.metadata)Object.prototype.hasOwnProperty.call(i,"audio_url")&&(i.audio_url=this.audio_url,t=!0);t||this.message.metadata.push({audio_url:this.audio_url}),this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url)}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSynthesizingVoice=!1}))},async speak(){if(this.$store.state.config.active_tts_service!="browser"&&this.$store.state.config.active_tts_service!="None")this.isSpeaking?(this.isSpeaking=!0,ie.post("./stop",{text:this.message.content}).then(n=>{this.isSpeaking=!1}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSpeaking=!1})):(this.isSpeaking=!0,ie.post("./text2Audio",{client_id:this.$store.state.client_id,text:this.message.content}).then(n=>{this.isSpeaking=!1}).catch(n=>{this.$store.state.toast.showToast(`Error: ${n}`,4,!1),this.isSpeaking=!1}));else{if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.message.content,this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const t=s=>{let r=this.message.content.substring(s,s+e);const o=[".","!","?",`
 `];let a=-1;return o.forEach(c=>{const d=r.lastIndexOf(c);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{if(this.message.status_message=="Done"||this.message.content.includes(".")||this.message.content.includes("?")||this.message.content.includes("!")){const s=t(n),r=this.message.content.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n<this.message.content.length-2?setTimeout(()=>{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.message.content.length,"  ",s))},this.speechSynthesis.speak(this.msg)}else setTimeout(()=>{i()},1)};console.log("Speaking chunk"),i()}},toggleModel(){this.expanded=!this.expanded},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.message.content[e-1]==`
 `?(this.message.content=this.message.content.slice(0,e)+"```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+3+n.length):speechSynthesis==0||this.message.content[e-1]==`
 `?(this.message.content=this.message.content.slice(0,e)+"```"+n+`
 `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+`
-`+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?Kdt+this.avatar:(console.log("No avatar found"),Bi)},defaultImg(n){n.target.src=Bi},parseDate(n){let e=new Date(Date.parse(n)),i=Math.floor((new Date-e)/1e3);return i<=1?"just now":i<20?i+" seconds ago":i<40?"half a minute ago":i<60?"less than a minute ago":i<=90?"one minute ago":i<=3540?Math.round(i/60)+" minutes ago":i<=5400?"1 hour ago":i<=86400?Math.round(i/3600)+" hours ago":i<=129600?"1 day ago":i<604800?Math.round(i/86400)+" days ago":i<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,i=Math.floor(t/86400);if(!(isNaN(i)||i<0||i>=31))return i==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||i==1&&"Yesterday"||i<7&&i+" days ago"||i<31&&Math.ceil(i/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed to",n),this.ui_componentKey++},showConfirmation(){Le(()=>{Ve.replace()})},deleteMsgMode(){Le(()=>{Ve.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Le(()=>{Ve.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[i,s,r]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let i,s,r;[i,s,r]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let s=e.getTime()-n.getTime();const r=Math.floor(s/1e3),o=t/r;return Math.round(o)+" t/s"}}},Qdt={class:"relative w-full group rounded-lg m-2 shadow-lg message hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Xdt={class:"flex flex-row gap-2"},Zdt={class:"flex-shrink-0"},Jdt={class:"group/avatar"},eut=["src","data-popover-target"],tut={class:"flex flex-col w-full flex-grow-0"},nut={class:"flex flex-row flex-grow items-start"},iut={class:"flex flex-col mb-2"},sut={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},rut=["title"],out={class:"overflow-x-auto w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},aut={key:1},lut=["src"],cut={class:"message-details"},dut={key:0,class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full transition-all duration-300 ease-in-out"},uut={class:"grid min-w-80 select-none grid-cols-[50px,1fr] items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-all duration-300"},put={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500 transform transition-transform duration-300 hover:scale-105"},fut={class:"leading-5"},_ut={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},mut={class:"px-5 pb-5 pt-4 transition-all duration-300 ease-in-out"},hut={class:"list-none"},gut={class:"flex flex-col items-start w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},but={class:"flex-row justify-end mx-2"},yut={class:"invisible group-hover:visible flex flex-row"},Eut={key:0},vut={key:1},Sut={key:2},Tut={key:3},xut={key:4,class:"flex items-center duration-75"},Cut={class:"flex flex-row items-center"},wut={class:"flex flex-row items-center"},Rut={key:6,class:"flex flex-row items-center"},Aut=["src"],Mut={class:"text-sm text-gray-400 mt-2"},Nut={class:"flex flex-row items-center gap-2"},Out={key:0},Iut={class:"font-thin"},kut={key:1},Dut={class:"font-thin"},Lut={key:2},Put={class:"font-thin"},Fut={key:3},Uut=["title"],But={key:4},Gut=["title"],Vut={key:5},zut=["title"],Hut={key:6},qut=["title"];function Yut(n,e,t,i,s,r){var b;const o=nt("MarkdownRenderer"),a=nt("JsonViewer"),c=nt("DynamicUIRenderer"),d=nt("StatusIcon"),u=nt("StatusIndicator"),_=nt("Step"),m=nt("RenderHTMLJS"),h=nt("ToolbarButton"),f=nt("DropdownSubmenu"),y=nt("DropdownMenu");return T(),w("div",Qdt,[l("div",Xdt,[l("div",Zdt,[l("div",Jdt,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=g=>r.defaultImg(g)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,eut)])]),l("div",tut,[l("div",nut,[l("div",iut,[l("div",sut,$(t.message.sender),1),t.message.created_at?(T(),w("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},$(r.created_at),9,rut)):B("",!0)]),e[45]||(e[45]=l("div",{class:"flex-grow"},null,-1))]),l("div",out,[r.editMsgMode?B("",!0):(T(),at(o,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),l("div",null,[t.message.open?k((T(),w("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=wi(W((...g)=>r.insertTab&&r.insertTab(...g),["prevent"]),["tab"])),class:"block min-h-[500px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[2]||(e[2]=g=>t.message.content=g)},"                        ",544)),[[ue,t.message.content]]):B("",!0)]),t.message.metadata!==null?(T(),w("div",aut,[(T(!0),w(Be,null,Xe(((b=t.message.metadata)==null?void 0:b.filter(g=>g!=null&&g.hasOwnProperty("title")&&g.hasOwnProperty("content")))||[],(g,E)=>(T(),w("div",{key:"json-"+t.message.id+"-"+E,class:"json font-bold"},[(T(),at(a,{jsonFormText:g.title,jsonData:g.content,key:"msgjson-"+t.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):B("",!0),t.message.ui?(T(),at(c,{ref:"ui",class:"w-full",ui:t.message.ui,key:"msgui-"+t.message.id},null,8,["ui"])):B("",!0),s.audio_url!=null?(T(),w("audio",{controls:"",key:s.audio_url},[l("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,lut),e[46]||(e[46]=Ze(" Your browser does not support the audio element. "))])):B("",!0),l("div",cut,[t.message&&t.message.steps&&t.message.steps.length>0?(T(),w("details",dut,[l("summary",uut,[l("div",put,[z(d,{status:t.message.status_message},null,8,["status"])]),l("dl",fut,[e[47]||(e[47]=l("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1)),l("dt",_ut,[z(u,{status:t.message.status_message},null,8,["status"]),Ze(" "+$(t.message.status_message),1)])])]),l("div",mut,[l("ol",hut,[(T(!0),w(Be,null,Xe(t.message.steps,(g,E)=>(T(),w("li",{key:`step-${t.message.id}-${E}`,class:Ue(["group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800 transition-all duration-300 ease-in-out",{"bg-transparent":g.done}]),style:Wt({animationDelay:`${E*100}ms`})},[z(_,{done:g.done,text:g.text,status:g.status,step_type:g.step_type},null,8,["done","text","status","step_type"])],6))),128))])])])):B("",!0),l("div",gut,[(T(!0),w(Be,null,Xe(t.message.html_js_s,(g,E)=>(T(),w("div",{key:`htmljs-${t.message.id}-${E}`,class:"font-bold animate-fadeIn",style:Wt({animationDelay:`${E*200}ms`})},[z(m,{htmlContent:g},null,8,["htmlContent"])],4))),128))])])]),l("div",but,[l("div",yut,[r.editMsgMode?(T(),w("div",Eut,[z(h,{onClick:e[3]||(e[3]=W(g=>r.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),z(h,{onClick:W(r.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),z(y,{title:"Add Block"},{default:Ie(()=>[z(f,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(h,{onClick:e[4]||(e[4]=W(g=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(h,{onClick:e[5]||(e[5]=W(g=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(h,{onClick:e[6]||(e[6]=W(g=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(h,{onClick:e[7]||(e[7]=W(g=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(h,{onClick:e[8]||(e[8]=W(g=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(h,{onClick:e[9]||(e[9]=W(g=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(h,{onClick:e[10]||(e[10]=W(g=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(h,{onClick:e[11]||(e[11]=W(g=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(h,{onClick:e[12]||(e[12]=W(g=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(h,{onClick:e[13]||(e[13]=W(g=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(h,{onClick:e[14]||(e[14]=W(g=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(f,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(h,{onClick:e[15]||(e[15]=W(g=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(h,{onClick:e[16]||(e[16]=W(g=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(h,{onClick:e[17]||(e[17]=W(g=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(h,{onClick:e[18]||(e[18]=W(g=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(h,{onClick:e[19]||(e[19]=W(g=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(f,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(h,{onClick:e[20]||(e[20]=W(g=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(h,{onClick:e[21]||(e[21]=W(g=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(h,{onClick:e[22]||(e[22]=W(g=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(h,{onClick:e[23]||(e[23]=W(g=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(h,{onClick:e[24]||(e[24]=W(g=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(f,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(h,{onClick:e[25]||(e[25]=W(g=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(h,{onClick:e[26]||(e[26]=W(g=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(h,{onClick:e[27]||(e[27]=W(g=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(f,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(h,{onClick:e[28]||(e[28]=W(g=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(h,{onClick:e[29]||(e[29]=W(g=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(h,{onClick:e[30]||(e[30]=W(g=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(f,{title:"Database",icon:"database"},{default:Ie(()=>[z(h,{onClick:e[31]||(e[31]=W(g=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(h,{onClick:e[32]||(e[32]=W(g=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(h,{onClick:e[33]||(e[33]=W(g=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),w("div",vut,[z(h,{onClick:e[34]||(e[34]=W(g=>r.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),z(h,{onClick:r.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!r.editMsgMode&&t.message.sender!==n.$store.state.mountedPers.name?(T(),w("div",Sut,[z(h,{onClick:e[35]||(e[35]=W(g=>r.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),z(h,{onClick:e[36]||(e[36]=W(g=>r.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),z(h,{onClick:e[37]||(e[37]=W(g=>r.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):B("",!0),!r.editMsgMode&&t.message.sender===n.$store.state.mountedPers.name?(T(),w("div",Tut,[z(h,{onClick:r.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):B("",!0),s.deleteMsgMode?(T(),w("div",xut,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[38]||(e[38]=W(g=>s.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[39]||(e[39]=W(g=>r.deleteMsg(),["stop"]))},e[49]||(e[49]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),!r.editMsgMode&&!s.deleteMsgMode?(T(),w("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[40]||(e[40]=g=>s.deleteMsgMode=!0)},e[50]||(e[50]=[l("i",{"data-feather":"trash"},null,-1)]))):B("",!0),l("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[41]||(e[41]=W(g=>r.rankUp(),["stop"]))},e[51]||(e[51]=[l("i",{"data-feather":"thumbs-up"},null,-1)])),l("div",Cut,[l("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[42]||(e[42]=W(g=>r.rankDown(),["stop"]))},e[52]||(e[52]=[l("i",{"data-feather":"thumbs-down"},null,-1)])),t.message.rank!=0?(T(),w("div",{key:0,class:Ue(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},$(t.message.rank),3)):B("",!0)]),l("div",wut,[this.$store.state.config.active_tts_service!="None"?(T(),w("div",{key:0,class:Ue(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[43]||(e[43]=W(g=>r.speak(),["stop"]))},e[53]||(e[53]=[l("i",{"data-feather":"volume-2"},null,-1)]),2)):B("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),w("div",Rut,[s.isSynthesizingVoice?(T(),w("img",{key:1,src:s.loading_svg},null,8,Aut)):(T(),w("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[44]||(e[44]=W(g=>r.read(),["stop"]))},e[54]||(e[54]=[l("i",{"data-feather":"voicemail"},null,-1)])))])):B("",!0)])]),l("div",Mut,[l("div",Nut,[t.message.binding?(T(),w("p",Out,[e[55]||(e[55]=Ze("Binding: ")),l("span",Iut,$(t.message.binding),1)])):B("",!0),t.message.model?(T(),w("p",kut,[e[56]||(e[56]=Ze("Model: ")),l("span",Dut,$(t.message.model),1)])):B("",!0),t.message.seed?(T(),w("p",Lut,[e[57]||(e[57]=Ze("Seed: ")),l("span",Put,$(t.message.seed),1)])):B("",!0),t.message.nb_tokens?(T(),w("p",Fut,[e[58]||(e[58]=Ze("Number of tokens: ")),l("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},$(t.message.nb_tokens),9,Uut)])):B("",!0),r.warmup_duration?(T(),w("p",But,[e[59]||(e[59]=Ze("Warmup duration: ")),l("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},$(r.warmup_duration),9,Gut)])):B("",!0),r.time_spent?(T(),w("p",Vut,[e[60]||(e[60]=Ze("Generation duration: ")),l("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},$(r.time_spent),9,zut)])):B("",!0),r.generation_rate?(T(),w("p",Hut,[e[61]||(e[61]=Ze("Rate: ")),l("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},$(r.generation_rate),9,qut)])):B("",!0)])])])])])}const fN=st(jdt,[["render",Yut]]),$ut={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Le(()=>{Ve.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,i){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=i||this.DenyButtonText;for(let s=0;s<n.length;s++)n[s].isHelp=!1;return new Promise(s=>{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Le(()=>{Ve.replace()})}}},Wut={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},Kut={class:"relative w-full max-w-md max-h-[80vh]"},jut={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},Qut={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},Xut={class:"grow flex items-center"},Zut={class:"text-lg font-semibold select-none"},Jut={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},ept={class:"space-y-2"},tpt={key:0},npt={key:0},ipt={class:"text-base font-semibold"},spt={key:0,class:"relative inline-flex"},rpt=["onUpdate:modelValue"],opt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},apt=["onUpdate:modelValue"],lpt={key:1},cpt={class:"text-base font-semibold"},dpt={key:0,class:"relative inline-flex"},upt=["onUpdate:modelValue"],ppt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},fpt=["onUpdate:modelValue"],_pt=["value","selected"],mpt={key:1},hpt={class:"",onclick:"btn_clicked(item)"},gpt={key:2},bpt={key:0},ypt={class:"text-base font-semibold"},Ept={key:0,class:"relative inline-flex"},vpt=["onUpdate:modelValue"],Spt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Tpt=["onUpdate:modelValue"],xpt={key:1},Cpt={class:"text-base font-semibold"},wpt={key:0,class:"relative inline-flex"},Rpt=["onUpdate:modelValue"],Apt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Mpt=["onUpdate:modelValue"],Npt=["value","selected"],Opt={key:3},Ipt={class:"text-base font-semibold"},kpt={key:0,class:"relative inline-flex"},Dpt=["onUpdate:modelValue"],Lpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Ppt=["onUpdate:modelValue"],Fpt=["onUpdate:modelValue","min","max"],Upt={key:4},Bpt={class:"text-base font-semibold"},Gpt={key:0,class:"relative inline-flex"},Vpt=["onUpdate:modelValue"],zpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Hpt=["onUpdate:modelValue"],qpt=["onUpdate:modelValue","min","max"],Ypt={key:5},$pt={class:"mb-2 relative flex items-center gap-2"},Wpt={for:"default-checkbox",class:"text-base font-semibold"},Kpt=["onUpdate:modelValue"],jpt={key:0,class:"relative inline-flex"},Qpt=["onUpdate:modelValue"],Xpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Zpt={key:6},Jpt={class:"text-base font-semibold"},eft={key:0,class:"relative inline-flex"},tft=["onUpdate:modelValue"],nft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ift=["onUpdate:modelValue"],sft={key:7,class:"space-y-2"},rft={class:"flex items-center gap-2"},oft={class:"text-base font-semibold"},aft={key:0,class:"relative inline-flex"},lft=["onUpdate:modelValue"],cft={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},dft={class:"flex gap-2"},uft=["onUpdate:modelValue","placeholder"],pft=["onClick"],fft={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},_ft={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function mft(n,e,t,i,s,r){return s.show?(T(),w("div",Wut,[l("div",Kut,[l("div",jut,[l("div",Qut,[l("div",Xut,[e[3]||(e[3]=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),l("h3",Zut,$(s.title),1)]),l("button",{onClick:e[0]||(e[0]=W(o=>r.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[l("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),l("div",Jut,[l("div",ept,[(T(!0),w(Be,null,Xe(s.controls_array,(o,a)=>(T(),w("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),w("div",tpt,[o.options?B("",!0):(T(),w("div",npt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",ipt,$(o.name)+": ",1),o.help?(T(),w("label",spt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,rpt),[[He,o.isHelp]]),e[5]||(e[5]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",opt,$(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,apt),[[ue,o.value]])])),o.options?(T(),w("div",lpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",cpt,$(o.name)+": ",1),o.help?(T(),w("label",dpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,upt),[[He,o.isHelp]]),e[6]||(e[6]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",ppt,$(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),w(Be,null,Xe(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},$(c),9,_pt))),256))],8,fpt),[[It,o.value]])])):B("",!0)])):B("",!0),o.type=="btn"?(T(),w("div",mpt,[l("button",hpt,$(o.name),1)])):B("",!0),o.type=="text"?(T(),w("div",gpt,[o.options?B("",!0):(T(),w("div",bpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",ypt,$(o.name)+": ",1),o.help?(T(),w("label",Ept,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,vpt),[[He,o.isHelp]]),e[7]||(e[7]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",Spt,$(o.help),1)):B("",!0),k(l("textarea",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Tpt),[[ue,o.value]])])),o.options?(T(),w("div",xpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Cpt,$(o.name)+": ",1),o.help?(T(),w("label",wpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Rpt),[[He,o.isHelp]]),e[8]||(e[8]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",Apt,$(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),w(Be,null,Xe(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},$(c),9,Npt))),256))],8,Mpt),[[It,o.value]])])):B("",!0)])):B("",!0),o.type=="int"?(T(),w("div",Opt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Ipt,$(o.name)+": ",1),o.help?(T(),w("label",kpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Dpt),[[He,o.isHelp]]),e[9]||(e[9]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",Lpt,$(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,Ppt),[[ue,o.value]]),o.min!=null&&o.max!=null?k((T(),w("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Fpt)),[[ue,o.value]]):B("",!0)])):B("",!0),o.type=="float"?(T(),w("div",Upt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Bpt,$(o.name)+": ",1),o.help?(T(),w("label",Gpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Vpt),[[He,o.isHelp]]),e[10]||(e[10]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",zpt,$(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,Hpt),[[ue,o.value]]),o.min!=null&&o.max!=null?k((T(),w("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,qpt)),[[ue,o.value]]):B("",!0)])):B("",!0),o.type=="bool"?(T(),w("div",Ypt,[l("div",$pt,[l("label",Wpt,$(o.name)+": ",1),k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.value=c,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,Kpt),[[He,o.value]]),o.help?(T(),w("label",jpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Qpt),[[He,o.isHelp]]),e[11]||(e[11]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),w("p",Xpt,$(o.help),1)):B("",!0)])):B("",!0),o.type=="list"?(T(),w("div",Zpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Jpt,$(o.name)+": ",1),o.help?(T(),w("label",eft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,tft),[[He,o.isHelp]]),e[12]||(e[12]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",nft,$(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,ift),[[ue,o.value]])])):B("",!0),o.type==="file"||o.type==="folder"?(T(),w("div",sft,[l("label",rft,[l("span",oft,$(o.name)+":",1),o.help?(T(),w("label",aft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,lft),[[He,o.isHelp]]),e[13]||(e[13]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),w("p",cft,$(o.help),1)):B("",!0),l("div",dft,[k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,uft),[[ue,o.value]]),l("button",{onClick:c=>r.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,pft)])])):B("",!0),a<s.controls_array.length-1?(T(),w("hr",fft)):B("",!0)]))),128))])]),l("div",_ft,[l("button",{onClick:e[1]||(e[1]=W(o=>r.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},$(s.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=W(o=>r.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},$(s.DenyButtonText),1)])])])])):B("",!0)}const X0=st($ut,[["render",mft],["__scopeId","data-v-8a34bb65"]]);ie.defaults.baseURL="/";const hft={components:{InteractiveMenu:W0},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),Le(()=>{Ve.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(i=>i.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=i=>{this.selectedFile=i.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};Ye.on("file_received",i=>{i.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file
-`+i.error,4,!1),this.loading=!1,Ye.off("file_received")}),Ye.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Le(()=>{Ve.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},gft={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function bft(n,e,t,i,s,r){const o=nt("InteractiveMenu");return s.loading?(T(),w("div",gft,e[0]||(e[0]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),at(o,{key:1,commands:t.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const yft=st(hft,[["render",bft],["__scopeId","data-v-1a32c141"]]),Eft="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",vft="/",Sft={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:yft,ChatBarButton:IM},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:Eft,sendGlobe:pN,bUrl:vft,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const s=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",s),{name:t[0],value:t[0]||"default_value",icon:s,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let i of e)if(i.type.indexOf("image")!==-1){const s=i.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([s],o,{type:s.type});this.addFiles([a])}else if(i.kind==="file"){const s=i.getAsFile();t.push(s)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){ie.get("/download_files")},remove_file(n){ie.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){ie.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,i=24*1024;let s=0,r=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,c=s+a.byteLength>=n.size;Ye.emit("send_file_chunk",{filename:n.name,chunk:a,offset:s,isLastChunk:c,chunkIndex:r}),s+=a.byteLength,r++,c?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(s,s+i);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),Ye.emit("start_bidirectional_audio_stream"),Le(()=>{Ve.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),Ye.emit("stop_bidirectional_audio_stream"),Le(()=>{Ve.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t<n.results.length;t++)e+=n.results[t][0].transcript;this.message=e,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return Le(()=>{Ve.replace()}),is(n)},removeItem(n){console.log("Removing ",n.name),ie.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await ie.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){Ye.emit("take_picture"),Ye.on("picture_taken",()=>{ie.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const i=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[t];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{t++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Le(()=>{Ve.replace()})},loading(n,e){Le(()=>{Ve.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let i=0;i<n.length;i++)t=t+parseInt(n[i].size);this.totalSize=is(t,!0),console.log("filesList changed")},deep:!0},discussionList(n){console.log("discussion arr",n)}},mounted(){this.emitloaded(),Le(()=>{Ve.replace()}),console.log("Chatbar mounted"),Ye.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Le(()=>{Ve.replace()})}},Tft={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},xft={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},Cft={class:"flex"},wft=["title"],Rft={key:0},Aft={class:"flex flex-col max-h-64"},Mft=["title"],Nft={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},Oft={key:0,filesList:"",role:"status"},Ift={class:"flex flex-row items-center"},kft={class:"whitespace-nowrap"},Dft=["onClick"],Lft={key:1,class:"flex mx-1 w-500"},Pft={class:"whitespace-nowrap flex flex-row gap-2"},Fft={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},Uft={role:"status"},Bft=["src"],Gft={class:"flex w-fit relative grow w-full"},Vft={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},zft={key:0,title:"Waiting for reply"},Hft=["src"],qft={class:"w-fit"},Yft={class:"w-fit"},$ft={class:"relative grow m-0 p-0"},Wft={class:"m-0 p-0"},Kft={class:"flex items-center space-x-3"},jft={class:"relative inline-block"},Qft={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},Xft={class:"flex flex-col gap-2"};function Zft(n,e,t,i,s,r){const o=nt("ChatBarButton"),a=nt("PersonalitiesCommands");return T(),w("div",Tft,[s.filesList.length>0?(T(),w("div",xft,[l("div",Cft,[l("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=W(c=>s.showfilesList=!s.showfilesList,["stop"]))},e[12]||(e[12]=[l("i",{"data-feather":"list"},null,-1)]),8,wft)]),s.filesList.length>0&&s.showfilesList==!0?(T(),w("div",Rft,[l("div",Aft,[z(Is,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.filesList,(c,d)=>(T(),w("div",{key:d+"-"+c.name},[l("div",{class:"m-1",title:c.name},[l("div",Nft,[s.isFileSentList[d]?B("",!0):(T(),w("div",Oft,e[13]||(e[13]=[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),l("div",{class:Ue(["line-clamp-1 w-3/5",s.isFileSentList[d]?"text-green-500":"text-red-200"])},$(c.name),3),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),l("div",Ift,[l("p",kft,$(r.computedFileSize(c.size)),1),l("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>r.removeItem(c)},e[14]||(e[14]=[l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,Dft)])])],8,Mft)]))),128))]),_:1})])])):B("",!0),s.filesList.length>0?(T(),w("div",Lft,[l("div",Pft,[e[17]||(e[17]=l("p",{class:"font-bold"}," Total size: ",-1)),Ze(" "+$(s.totalSize)+" ("+$(s.filesList.length)+") ",1)]),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...c)=>r.clear_files&&r.clear_files(...c))},e[18]||(e[18]=[l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),l("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...c)=>r.download_files&&r.download_files(...c))},e[19]||(e[19]=[l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):B("",!0)])):B("",!0),s.selecting_model||s.selecting_binding?(T(),w("div",Fft,[l("div",Uft,[l("img",{src:s.loader_v0,class:"w-50 h-50"},null,8,Bft),e[21]||(e[21]=l("span",{class:"sr-only"},"Selecting model...",-1))])])):B("",!0),l("div",Gft,[l("div",Vft,[t.loading?(T(),w("div",zft,[l("img",{src:s.loader_v0},null,8,Hft),e[22]||(e[22]=l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1))])):B("",!0),z(o,{onClick:r.toggleLeftPanel,class:Ue({"text-red-500":r.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ie(()=>[k(l("div",null,e[23]||(e[23]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[_t,r.leftPanelCollapsed]]),k(l("div",null,e[24]||(e[24]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[_t,!r.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),l("div",qft,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),at(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",Yft,[r.isDataSourceNamesValid?(T(),at(a,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",$ft,[l("form",Wft,[k(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>s.message=c),onPaste:e[4]||(e[4]=(...c)=>r.handlePaste&&r.handlePaste(...c)),onKeydown:e[5]||(e[5]=wi(W(c=>r.submitOnEnter(c),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[ue,s.message]])])]),l("div",Kft,[t.loading?(T(),at(o,{key:0,onClick:r.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>e[25]||(e[25]=[l("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ie(()=>[e[26]||(e[26]=l("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),at(o,{key:1,onClick:r.submit,title:"Send"},{icon:Ie(()=>e[27]||(e[27]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),z(o,{onClick:r.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>e[28]||(e[28]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.startSpeechRecognition,class:Ue({"text-red-500":s.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>e[29]||(e[29]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),at(o,{key:2,onClick:e[6]||(e[6]=c=>s.is_rt?r.stopRTCom:r.startRTCom),class:Ue(s.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>e[30]||(e[30]=[Ze(" 🌟 ")])),_:1},8,["class"])):B("",!0),t.loading?B("",!0):(T(),w("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...c)=>r.hideSendMenu&&r.hideSendMenu(...c))},[l("div",jft,[k(l("div",{onMouseenter:e[7]||(e[7]=(...c)=>r.showSendMenu&&r.showSendMenu(...c)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Qft,[l("div",Xft,[z(o,{onClick:r.add_file,title:"Send file"},{icon:Ie(()=>e[31]||(e[31]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.takePicture,title:"Take picture"},{icon:Ie(()=>e[32]||(e[32]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.addWebLink,title:"Add web link"},{icon:Ie(()=>e[33]||(e[33]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[_t,s.isSendMenuVisible]]),l("div",{onMouseenter:e[9]||(e[9]=(...c)=>r.showSendMenu&&r.showSendMenu(...c))},[l("button",{onClick:e[8]||(e[8]=W((...c)=>n.toggleSendMenu&&n.toggleSendMenu(...c),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),z(o,{onClick:r.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>e[35]||(e[35]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>e[36]||(e[36]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.toggleRightPanel,class:Ue({"text-red-500":!r.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ie(()=>[k(l("div",null,e[37]||(e[37]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[_t,r.rightPanelCollapsed]]),k(l("div",null,e[38]||(e[38]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[_t,!r.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...c)=>r.addFiles&&r.addFiles(...c)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=l("div",{class:"ml-auto gap-2"},null,-1))])])}const _N=st(Sft,[["render",Zft],["__scopeId","data-v-e3d676fa"]]),Jft={name:"WelcomeComponent",setup(){const n=jD();return{logoSrc:Je(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Bi)}}},e_t={class:"flex flex-col items-center justify-center w-full h-full min-h-screen bg-gradient-to-br from-indigo-100 to-purple-100 dark:from-indigo-900 dark:to-purple-900 p-8"},t_t={class:"text-center max-w-4xl"},n_t={class:"flex items-center justify-center gap-8 mb-12"},i_t={class:"relative w-24 h-24"},s_t=["src"];function r_t(n,e,t,i,s,r){return T(),w("div",e_t,[l("div",t_t,[l("div",n_t,[l("div",i_t,[l("img",{src:i.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,s_t)]),e[0]||(e[0]=l("div",{class:"flex flex-col items-start"},[l("h1",{class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"}," L🌟LLMS "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1))]),e[1]||(e[1]=mr('<div class="space-y-8 animate-fade-in-up" data-v-3da6dda3><h2 class="text-4xl font-semibold text-gray-800 dark:text-gray-200" data-v-3da6dda3> Welcome to L🌟LLMS WebUI </h2><p class="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto" data-v-3da6dda3> Embark on a journey through the realm of advanced AI with L🌟LLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence. </p><div class="mt-12 space-y-6" data-v-3da6dda3><p class="text-lg text-gray-700 dark:text-gray-300" data-v-3da6dda3> Discover the capabilities of L🌟LLMS: </p><ul class="text-left list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2" data-v-3da6dda3><li data-v-3da6dda3>Engage in natural language conversations</li><li data-v-3da6dda3>Generate creative content and ideas</li><li data-v-3da6dda3>Analyze complex data and provide insights</li><li data-v-3da6dda3>Assist with coding and technical tasks</li><li data-v-3da6dda3>Process and understand multimodal inputs</li></ul></div></div>',1))])])}const mN=st(Jft,[["render",r_t],["__scopeId","data-v-3da6dda3"]]);var o_t=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),ru=function(){return ru=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},ru.apply(this,arguments)},ou={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},hN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=ou),this._items=e,this._options=ru(ru({},ou),t),this._init()}return n.prototype._init=function(){var e=this;this._items.length&&this._items.map(function(t){t.active&&e.open(t.id),t.triggerEl.addEventListener("click",function(){e.toggle(t.id)})})},n.prototype.getItem=function(e){return this._items.filter(function(t){return t.id===e})[0]},n.prototype.open=function(e){var t,i,s=this,r=this.getItem(e);this._options.alwaysOpen||this._items.map(function(o){var a,c;o!==r&&((a=o.triggerEl.classList).remove.apply(a,s._options.activeClasses.split(" ")),(c=o.triggerEl.classList).add.apply(c,s._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-expanded","false"),o.active=!1,o.iconEl&&o.iconEl.classList.remove("rotate-180"))}),(t=r.triggerEl.classList).add.apply(t,this._options.activeClasses.split(" ")),(i=r.triggerEl.classList).remove.apply(i,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-expanded","true"),r.targetEl.classList.remove("hidden"),r.active=!0,r.iconEl&&r.iconEl.classList.add("rotate-180"),this._options.onOpen(this,r)},n.prototype.toggle=function(e){var t=this.getItem(e);t.active?this.close(e):this.open(e),this._options.onToggle(this,t)},n.prototype.close=function(e){var t,i,s=this.getItem(e);(t=s.triggerEl.classList).remove.apply(t,this._options.activeClasses.split(" ")),(i=s.triggerEl.classList).add.apply(i,this._options.inactiveClasses.split(" ")),s.targetEl.classList.add("hidden"),s.triggerEl.setAttribute("aria-expanded","false"),s.active=!1,s.iconEl&&s.iconEl.classList.remove("rotate-180"),this._options.onClose(this,s)},n}();function Z0(){document.querySelectorAll("[data-accordion]").forEach(function(n){var e=n.getAttribute("data-accordion"),t=n.getAttribute("data-active-classes"),i=n.getAttribute("data-inactive-classes"),s=[];n.querySelectorAll("[data-accordion-target]").forEach(function(r){if(r.closest("[data-accordion]")===n){var o={id:r.getAttribute("data-accordion-target"),triggerEl:r,targetEl:document.querySelector(r.getAttribute("data-accordion-target")),iconEl:r.querySelector("[data-accordion-icon]"),active:r.getAttribute("aria-expanded")==="true"};s.push(o)}}),new hN(s,{alwaysOpen:e==="open",activeClasses:t||ou.activeClasses,inactiveClasses:i||ou.inactiveClasses})})}typeof window<"u"&&(window.Accordion=hN,window.initAccordions=Z0);var au=function(){return au=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},au.apply(this,arguments)},iC={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},gN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=iC),this._targetEl=e,this._triggerEl=t,this._options=au(au({},iC),i),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){e.toggle()}))},n.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},n.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},n.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},n}();function J0(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(n){var e=n.getAttribute("data-collapse-toggle"),t=document.getElementById(e);t?new gN(t,n):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=gN,window.initCollapses=J0);var qr=function(){return qr=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},qr.apply(this,arguments)},Id={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},bN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=Id),this._items=e,this._options=qr(qr(qr({},Id),t),{indicators:qr(qr({},Id.indicators),t.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return n.prototype._init=function(){var e=this;this._items.map(function(t){t.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(t,i){t.el.addEventListener("click",function(){e.slideTo(i)})})},n.prototype.getItem=function(e){return this._items[e]},n.prototype.slideTo=function(e){var t=this._items[e],i={left:t.position===0?this._items[this._items.length-1]:this._items[t.position-1],middle:t,right:t.position===this._items.length-1?this._items[0]:this._items[t.position+1]};this._rotate(i),this._setActiveItem(t),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},n.prototype.next=function(){var e=this._getActiveItem(),t=null;e.position===this._items.length-1?t=this._items[0]:t=this._items[e.position+1],this.slideTo(t.position),this._options.onNext(this)},n.prototype.prev=function(){var e=this._getActiveItem(),t=null;e.position===0?t=this._items[this._items.length-1]:t=this._items[e.position-1],this.slideTo(t.position),this._options.onPrev(this)},n.prototype._rotate=function(e){this._items.map(function(t){t.el.classList.add("hidden")}),e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.right.el.classList.add("translate-x-full","z-10")},n.prototype.cycle=function(){var e=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},n.prototype.pause=function(){clearInterval(this._intervalInstance)},n.prototype._getActiveItem=function(){return this._activeItem},n.prototype._setActiveItem=function(e){var t,i,s=this;this._activeItem=e;var r=e.position;this._indicators.length&&(this._indicators.map(function(o){var a,c;o.el.setAttribute("aria-current","false"),(a=o.el.classList).remove.apply(a,s._options.indicators.activeClasses.split(" ")),(c=o.el.classList).add.apply(c,s._options.indicators.inactiveClasses.split(" "))}),(t=this._indicators[r].el.classList).add.apply(t,this._options.indicators.activeClasses.split(" ")),(i=this._indicators[r].el.classList).remove.apply(i,this._options.indicators.inactiveClasses.split(" ")),this._indicators[r].el.setAttribute("aria-current","true"))},n}();function ey(){document.querySelectorAll("[data-carousel]").forEach(function(n){var e=n.getAttribute("data-carousel-interval"),t=n.getAttribute("data-carousel")==="slide",i=[],s=0;n.querySelectorAll("[data-carousel-item]").length&&Array.from(n.querySelectorAll("[data-carousel-item]")).map(function(d,u){i.push({position:u,el:d}),d.getAttribute("data-carousel-item")==="active"&&(s=u)});var r=[];n.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(n.querySelectorAll("[data-carousel-slide-to]")).map(function(d){r.push({position:parseInt(d.getAttribute("data-carousel-slide-to")),el:d})});var o=new bN(i,{defaultPosition:s,indicators:{items:r},interval:e||Id.interval});t&&o.cycle();var a=n.querySelector("[data-carousel-next]"),c=n.querySelector("[data-carousel-prev]");a&&a.addEventListener("click",function(){o.next()}),c&&c.addEventListener("click",function(){o.prev()})})}typeof window<"u"&&(window.Carousel=bN,window.initCarousels=ey);var lu=function(){return lu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},lu.apply(this,arguments)},sC={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},yN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=sC),this._targetEl=e,this._triggerEl=t,this._options=lu(lu({},sC),i),this._init()}return n.prototype._init=function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){e.hide()})},n.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){e._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},n}();function ty(){document.querySelectorAll("[data-dismiss-target]").forEach(function(n){var e=n.getAttribute("data-dismiss-target"),t=document.querySelector(e);t?new yN(t,n):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=yN,window.initDismisses=ty);var or=function(){return or=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},or.apply(this,arguments)},Uc=function(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))},ar={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},EN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=ar),this._targetEl=e,this._triggerEl=t,this._options=or(or({},ar),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();this._options.triggerType==="click"&&t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.toggle()})}),this._options.triggerType==="hover"&&(t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){i==="click"?e.toggle():setTimeout(function(){e.show()},e._options.delay)}),e._targetEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},e._options.delay)}),e._targetEl.addEventListener(i,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},e._options.delay)})}))},n.prototype._createPopperInstance=function(){return up(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var i=e.target,s=this._options.ignoreClickOutsideClass,r=!1;if(s){var o=document.querySelectorAll(".".concat(s));o.forEach(function(a){if(a.contains(i)){r=!0;return}})}i!==t&&!t.contains(i)&&!this._triggerEl.contains(i)&&!r&&this.isVisible()&&this.hide()},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},n.prototype.isVisible=function(){return this._visible},n.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(e){return or(or({},e),{modifiers:Uc(Uc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(e){return or(or({},e),{modifiers:Uc(Uc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},n}();function ny(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(n){var e=n.getAttribute("data-dropdown-toggle"),t=document.getElementById(e);if(t){var i=n.getAttribute("data-dropdown-placement"),s=n.getAttribute("data-dropdown-offset-skidding"),r=n.getAttribute("data-dropdown-offset-distance"),o=n.getAttribute("data-dropdown-trigger"),a=n.getAttribute("data-dropdown-delay"),c=n.getAttribute("data-dropdown-ignore-click-outside-class");new EN(t,n,{placement:i||ar.placement,triggerType:o||ar.triggerType,offsetSkidding:s?parseInt(s):ar.offsetSkidding,offsetDistance:r?parseInt(r):ar.offsetDistance,delay:a?parseInt(a):ar.delay,ignoreClickOutsideClass:c||ar.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=EN,window.initDropdowns=ny);var cu=function(){return cu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},cu.apply(this,arguments)},Ko={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},ub=function(){function n(e,t){e===void 0&&(e=null),t===void 0&&(t=Ko),this._targetEl=e,this._options=cu(cu({},Ko),t),this._isHidden=!0,this._backdropEl=null,this._init()}return n.prototype._init=function(){var e=this;this._targetEl&&this._getPlacementClasses().map(function(t){e._targetEl.classList.add(t)})},n.prototype._createBackdrop=function(){var e;if(this._isHidden){var t=document.createElement("div");t.setAttribute("modal-backdrop",""),(e=t.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(t),this._backdropEl=t}},n.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},n.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(t){e._handleOutsideClick(t.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},n.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},n.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},n.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},n.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},n.prototype.isVisible=function(){return!this._isHidden},n.prototype.isHidden=function(){return this._isHidden},n}(),Bc=function(n,e){return e.some(function(t){return t.id===n})?e.find(function(t){return t.id===n}):null};function iy(){var n=[];document.querySelectorAll("[data-modal-target]").forEach(function(e){var t=e.getAttribute("data-modal-target"),i=document.getElementById(t);if(i){var s=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop");Bc(t,n)||n.push({id:t,object:new ub(i,{placement:s||Ko.placement,backdrop:r||Ko.backdrop})})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var t=e.getAttribute("data-modal-toggle"),i=document.getElementById(t);if(i){var s=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop"),o=Bc(t,n);o||(o={id:t,object:new ub(i,{placement:s||Ko.placement,backdrop:r||Ko.backdrop})},n.push(o)),e.addEventListener("click",function(){o.object.toggle()})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var t=e.getAttribute("data-modal-show"),i=document.getElementById(t);if(i){var s=Bc(t,n);s?e.addEventListener("click",function(){s.object.isHidden&&s.object.show()}):console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var t=e.getAttribute("data-modal-hide"),i=document.getElementById(t);if(i){var s=Bc(t,n);s?e.addEventListener("click",function(){s.object.isVisible&&s.object.hide()}):console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=ub,window.initModals=iy);var du=function(){return du=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},du.apply(this,arguments)},Yr={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},vN=function(){function n(e,t){e===void 0&&(e=null),t===void 0&&(t=Yr),this._targetEl=e,this._options=du(du({},Yr),t),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(t){e._targetEl.classList.add(t)}),document.addEventListener("keydown",function(t){t.key==="Escape"&&e.isVisible()&&e.hide()})},n.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(t){e._targetEl.classList.add(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.add(t)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},n.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(t){e._targetEl.classList.remove(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.remove(t)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},n.prototype._createBackdrop=function(){var e,t=this;if(!this._visible){var i=document.createElement("div");i.setAttribute("drawer-backdrop",""),(e=i.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),i.addEventListener("click",function(){t.hide()})}},n.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},n.prototype._getPlacementClasses=function(e){switch(e){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},n.prototype.isHidden=function(){return!this._visible},n.prototype.isVisible=function(){return this._visible},n}(),Gc=function(n,e){if(e.some(function(t){return t.id===n}))return e.find(function(t){return t.id===n})};function sy(){var n=[];document.querySelectorAll("[data-drawer-target]").forEach(function(e){var t=e.getAttribute("data-drawer-target"),i=document.getElementById(t);if(i){var s=e.getAttribute("data-drawer-placement"),r=e.getAttribute("data-drawer-body-scrolling"),o=e.getAttribute("data-drawer-backdrop"),a=e.getAttribute("data-drawer-edge"),c=e.getAttribute("data-drawer-edge-offset");Gc(t,n)||n.push({id:t,object:new vN(i,{placement:s||Yr.placement,bodyScrolling:r?r==="true":Yr.bodyScrolling,backdrop:o?o==="true":Yr.backdrop,edge:a?a==="true":Yr.edge,edgeOffset:c||Yr.edgeOffset})})}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var t=e.getAttribute("data-drawer-toggle"),i=document.getElementById(t);if(i){var s=Gc(t,n);s?e.addEventListener("click",function(){s.object.toggle()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var t=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),i=document.getElementById(t);if(i){var s=Gc(t,n);s?e.addEventListener("click",function(){s.object.hide()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var t=e.getAttribute("data-drawer-show"),i=document.getElementById(t);if(i){var s=Gc(t,n);s?e.addEventListener("click",function(){s.object.show()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=vN,window.initDrawers=sy);var uu=function(){return uu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},uu.apply(this,arguments)},rC={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},SN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=rC),this._items=e,this._activeTab=t?this.getTab(t.defaultTabId):null,this._options=uu(uu({},rC),t),this._init()}return n.prototype._init=function(){var e=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(t){t.triggerEl.addEventListener("click",function(){e.show(t.id)})}))},n.prototype.getActiveTab=function(){return this._activeTab},n.prototype._setActiveTab=function(e){this._activeTab=e},n.prototype.getTab=function(e){return this._items.filter(function(t){return t.id===e})[0]},n.prototype.show=function(e,t){var i,s,r=this;t===void 0&&(t=!1);var o=this.getTab(e);o===this._activeTab&&!t||(this._items.map(function(a){var c,d;a!==o&&((c=a.triggerEl.classList).remove.apply(c,r._options.activeClasses.split(" ")),(d=a.triggerEl.classList).add.apply(d,r._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-selected","false"))}),(i=o.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(s=o.triggerEl.classList).remove.apply(s,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-selected","true"),o.targetEl.classList.remove("hidden"),this._setActiveTab(o),this._options.onShow(this,o))},n}();function ry(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(n){var e=[],t=null;n.querySelectorAll('[role="tab"]').forEach(function(i){var s=i.getAttribute("aria-selected")==="true",r={id:i.getAttribute("data-tabs-target"),triggerEl:i,targetEl:document.querySelector(i.getAttribute("data-tabs-target"))};e.push(r),s&&(t=r.id)}),new SN(e,{defaultTabId:t})})}typeof window<"u"&&(window.Tabs=SN,window.initTabs=ry);var lr=function(){return lr=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},lr.apply(this,arguments)},Vc=function(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))},pu={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},TN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=pu),this._targetEl=e,this._triggerEl=t,this._options=lr(lr({},pu),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.hide()})})},n.prototype._createPopperInstance=function(){return up(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var i=e.target;i!==t&&!t.contains(i)&&!this._triggerEl.contains(i)&&this.isVisible()&&this.hide()},n.prototype.isVisible=function(){return this._visible},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},n.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return lr(lr({},e),{modifiers:Vc(Vc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return lr(lr({},e),{modifiers:Vc(Vc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},n}();function oy(){document.querySelectorAll("[data-tooltip-target]").forEach(function(n){var e=n.getAttribute("data-tooltip-target"),t=document.getElementById(e);if(t){var i=n.getAttribute("data-tooltip-trigger"),s=n.getAttribute("data-tooltip-placement");new TN(t,n,{placement:s||pu.placement,triggerType:i||pu.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=TN,window.initTooltips=oy);var cr=function(){return cr=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},cr.apply(this,arguments)},zc=function(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))},Nl={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},xN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=Nl),this._targetEl=e,this._triggerEl=t,this._options=cr(cr({},Nl),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()}),e._targetEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},100)}),e._targetEl.addEventListener(i,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},100)})})},n.prototype._createPopperInstance=function(){return up(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var i=e.target;i!==t&&!t.contains(i)&&!this._triggerEl.contains(i)&&this.isVisible()&&this.hide()},n.prototype.isVisible=function(){return this._visible},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},n.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return cr(cr({},e),{modifiers:zc(zc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return cr(cr({},e),{modifiers:zc(zc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},n}();function ay(){document.querySelectorAll("[data-popover-target]").forEach(function(n){var e=n.getAttribute("data-popover-target"),t=document.getElementById(e);if(t){var i=n.getAttribute("data-popover-trigger"),s=n.getAttribute("data-popover-placement"),r=n.getAttribute("data-popover-offset");new xN(t,n,{placement:s||Nl.placement,offset:r?parseInt(r):Nl.offset,triggerType:i||Nl.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=xN,window.initPopovers=ay);var fu=function(){return fu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},fu.apply(this,arguments)},pb={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},CN=function(){function n(e,t,i,s){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=null),s===void 0&&(s=pb),this._parentEl=e,this._triggerEl=t,this._targetEl=i,this._options=fu(fu({},pb),s),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;if(this._triggerEl){var t=this._getTriggerEventTypes(this._options.triggerType);t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()}),e._targetEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._parentEl.addEventListener(i,function(){e._parentEl.matches(":hover")||e.hide()})})}},n.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},n.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},n.prototype.toggle=function(){this._visible?this.hide():this.show()},n.prototype.isHidden=function(){return!this._visible},n.prototype.isVisible=function(){return this._visible},n.prototype._getTriggerEventTypes=function(e){switch(e){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n}();function ly(){document.querySelectorAll("[data-dial-init]").forEach(function(n){var e=n.querySelector("[data-dial-toggle]");if(e){var t=e.getAttribute("data-dial-toggle"),i=document.getElementById(t);if(i){var s=e.getAttribute("data-dial-trigger");new CN(n,e,i,{triggerType:s||pb.triggerType})}else console.error("Dial with id ".concat(t," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(n.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=CN,window.initDials=ly);function wN(){Z0(),J0(),ey(),ty(),ny(),iy(),sy(),ry(),oy(),ay(),ly()}typeof window<"u"&&(window.initFlowbite=wN);var a_t=new o_t("load",[Z0,J0,ey,ty,ny,iy,sy,ry,oy,ay,ly]);a_t.init();const l_t={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:lp},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},c_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},d_t={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},u_t={class:"container max-h-500 overflow-y-auto"},p_t={class:"text-lg font-medium"},f_t={class:"mt-4 flex justify-center"},__t={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function m_t(n,e,t,i,s,r){const o=nt("MarkdownRenderer");return s.show?(T(),w("div",c_t,[l("div",d_t,[l("div",u_t,[l("div",p_t,[z(o,{ref:"mdRender",host:"","markdown-text":s.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),l("div",f_t,[s.has_button?(T(),w("button",{key:0,onClick:e[0]||(e[0]=(...a)=>r.hide&&r.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):B("",!0),s.has_button?B("",!0):(T(),w("svg",__t,e[1]||(e[1]=[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):B("",!0)}const RN=st(l_t,[["render",m_t]]),h_t={props:{progress:{type:Number,required:!0}}},g_t={class:"progress-bar-container"};function b_t(n,e,t,i,s,r){return T(),w("div",g_t,[l("div",{class:"progress-bar",style:Wt({width:`${t.progress}%`})},null,4)])}const _u=st(h_t,[["render",b_t]]),y_t={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(i=>{this.message=n,this.show=!0,this.resolve=i})}}},E_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},v_t={class:"relative w-full max-w-md max-h-full"},S_t={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},T_t={class:"p-4 text-center"},x_t={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function C_t(n,e,t,i,s,r){return s.show?(T(),w("div",E_t,[l("div",v_t,[l("div",S_t,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",T_t,[e[4]||(e[4]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("h3",x_t,$(s.message),1),l("button",{onClick:e[1]||(e[1]=o=>r.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},$(s.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},$(s.DenyButtonText),1)])])])])):B("",!0)}const AN=st(y_t,[["render",C_t]]),w_t={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(n){n.target.files&&(this.file=n.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){ie.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(n=>{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},R_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},A_t={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},M_t={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},N_t={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},O_t={class:"w-full flex flex-row mt-4 text-center justify-center"},I_t={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},k_t={class:"mb-4 w-full"},D_t={class:"w-full bg-bg-light dark:bg-bg-dark"};function L_t(n,e,t,i,s,r){return s.show?(T(),w("div",R_t,[l("div",A_t,[l("div",M_t,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",N_t,[l("div",O_t,[l("button",{type:"submit",onClick:e[1]||(e[1]=W((...o)=>r.submitForm&&r.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),l("button",{onClick:e[2]||(e[2]=W(o=>r.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",I_t,[l("form",k_t,[l("table",D_t,[l("tr",null,[e[18]||(e[18]=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[ue,t.config.personality_conditioning]])])]),l("tr",null,[e[19]||(e[19]=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[ue,t.config.user_message_prefix]])])]),l("tr",null,[e[20]||(e[20]=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[ue,t.config.ai_message_prefix]])])]),l("tr",null,[e[21]||(e[21]=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[ue,t.config.link_text]])])]),l("tr",null,[e[22]||(e[22]=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[ue,t.config.welcome_message]])])]),l("tr",null,[e[23]||(e[23]=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1)),l("td",null,[k(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[ue,t.config.model_temperature]])])]),l("tr",null,[e[24]||(e[24]=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[ue,t.config.model_top_k]])])]),l("tr",null,[e[25]||(e[25]=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[ue,t.config.model_top_p]])])]),l("tr",null,[e[26]||(e[26]=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[ue,t.config.model_repeat_penalty]])])]),l("tr",null,[e[27]||(e[27]=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[ue,t.config.model_repeat_last_n]])])]),l("tr",null,[e[28]||(e[28]=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[ue,t.config.recommended_binding]])])]),l("tr",null,[e[29]||(e[29]=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[ue,t.config.recommended_model]])])]),l("tr",null,[e[30]||(e[30]=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[ue,t.config.dependencies]])])]),l("tr",null,[e[31]||(e[31]=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[ue,t.config.anti_prompts]])])])])])])])])])])):B("",!0)}const MN=st(w_t,[["render",L_t]]),P_t={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ie.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},F_t={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},U_t={class:"popup-container"},B_t=["src"],G_t={class:"checkbox-container"};function V_t(n,e,t,i,s,r){return T(),at(Os,{name:"fade"},{default:Ie(()=>[s.showPopup?(T(),w("div",F_t,[l("div",U_t,[l("button",{onClick:e[0]||(e[0]=(...o)=>r.hide&&r.hide(...o)),class:"close-button"}," X "),l("iframe",{src:s.webpageUrl,class:"iframe-content"},null,8,B_t),l("div",G_t,[k(l("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>r.save_configuration&&r.save_configuration(...o))},null,544),[[He,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):B("",!0)]),_:1})}const NN=st(P_t,[["render",V_t],["__scopeId","data-v-d504dfc9"]]),z_t={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},H_t=["href","title"],q_t=["data-feather"];function Y_t(n,e,t,i,s,r){return T(),w("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>r.onClick&&r.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[l("i",{"data-feather":t.icon},null,8,q_t)],8,H_t)}const $_t=st(z_t,[["render",Y_t]]),W_t={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},K_t=["href","title"],j_t=["data-feather"],Q_t={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},X_t={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Z_t(n,e,t,i,s,r){return T(),w("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),w("i",{key:0,"data-feather":t.icon},null,8,j_t)):t.icon==="x"?(T(),w("svg",Q_t,e[0]||(e[0]=[l("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),w("svg",X_t,e[1]||(e[1]=[l("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):B("",!0)],8,K_t)}const J_t=st(W_t,[["render",Z_t]]),emt="/assets/fastapi-BQj-rjUJ.png",tmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",imt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",smt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",rmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",omt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",amt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",lmt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",cmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",dmt="/assets/robot-CQPaMbxU.svg",umt="/";ie.defaults.baseURL="/";const pmt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Qu,UniversalForm:X0},data(){return{bUrl:umt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await ie.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(s=>s===n.full_path),i={client_id:this.$store.state.client_id,id:t};e=await ie.post("/select_personality",i),console.log("Generating message from ",e.data.status),Ye.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await ie.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{ie.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{ie.post("/set_active_personality_settings",t).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses.
+`+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},copyContentToClipboard(){this.$emit("copy",this)},deleteMsg(){this.$emit("delete",this.message.id),this.deleteMsgMode=!1},rankUp(){this.$emit("rankUp",this.message.id)},rankDown(){this.$emit("rankDown",this.message.id)},updateMessage(){this.$emit("updateMessage",this.message.id,this.message.content,this.audio_url),this.editMsgMode=!1},resendMessage(n){this.$emit("resendMessage",this.message.id,this.message.content,n)},continueMessage(){this.$emit("continueMessage",this.message.id,this.message.content)},getImgUrl(){return this.avatar?Wdt+this.avatar:(console.log("No avatar found"),Bi)},defaultImg(n){n.target.src=Bi},parseDate(n){let e=new Date(Date.parse(n)),i=Math.floor((new Date-e)/1e3);return i<=1?"just now":i<20?i+" seconds ago":i<40?"half a minute ago":i<60?"less than a minute ago":i<=90?"one minute ago":i<=3540?Math.round(i/60)+" minutes ago":i<=5400?"1 hour ago":i<=86400?Math.round(i/3600)+" hours ago":i<=129600?"1 day ago":i<604800?Math.round(i/86400)+" days ago":i<=777600?"1 week ago":n},prettyDate(n){let e=new Date((n||"").replace(/-/g,"/").replace(/[TZ]/g," ")),t=(new Date().getTime()-e.getTime())/1e3,i=Math.floor(t/86400);if(!(isNaN(i)||i<0||i>=31))return i==0&&(t<60&&"just now"||t<120&&"1 minute ago"||t<3600&&Math.floor(t/60)+" minutes ago"||t<7200&&"1 hour ago"||t<86400&&Math.floor(t/3600)+" hours ago")||i==1&&"Yesterday"||i<7&&i+" days ago"||i<31&&Math.ceil(i/7)+" weeks ago"},checkForFullSentence(){if(this.message.content.trim().split(" ").length>3){this.speak();return}}},watch:{audio_url(n){n&&(this.$refs.audio_player.src=n)},"message.content":function(n){this.$store.state.config.auto_speak&&(this.$store.state.config.xtts_enable&&this.$store.state.config.xtts_use_streaming_mode||this.isSpeaking||this.checkForFullSentence())},"message.ui":function(n){console.log("ui changed to",n),this.ui_componentKey++},showConfirmation(){Le(()=>{Ve.replace()})},deleteMsgMode(){Le(()=>{Ve.replace()})}},computed:{editMsgMode:{get(){return this.message.hasOwnProperty("open")?this.editMsgMode_||this.message.open:this.editMsgMode_},set(n){this.message.open=n,this.editMsgMode_=n,Le(()=>{Ve.replace()})}},isTalking:{get(){return this.isSpeaking}},created_at(){return this.prettyDate(this.message.created_at)},created_at_parsed(){return new Date(Date.parse(this.message.created_at)).toLocaleString()},finished_generating_at_parsed(){return new Date(Date.parse(this.message.finished_generating_at)).toLocaleString()},time_spent(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at));if(e.getTime()===n.getTime()||!n.getTime()||!e.getTime())return;let[i,s,r]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},warmup_duration(){const n=new Date(Date.parse(this.message.created_at)),e=new Date(Date.parse(this.message.started_generating_at));if(console.log("Computing the warmup duration, ",n," -> ",e),e.getTime()===n.getTime())return 0;if(!n.getTime()||!e.getTime())return;let i,s,r;[i,s,r]=this.computeTimeDiff(n,e);function o(c){return c<10&&(c="0"+c),c}return o(i)+"h:"+o(s)+"m:"+o(r)+"s"},generation_rate(){const n=new Date(Date.parse(this.message.started_generating_at)),e=new Date(Date.parse(this.message.finished_generating_at)),t=this.message.nb_tokens;if(e.getTime()===n.getTime()||!t||!n.getTime()||!e.getTime())return;let s=e.getTime()-n.getTime();const r=Math.floor(s/1e3),o=t/r;return Math.round(o)+" t/s"}}},jdt={class:"relative w-full group rounded-lg m-2 shadow-lg message hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent flex flex-col flex-grow flex-wrap overflow-visible p-4 pb-2"},Qdt={class:"flex flex-row gap-2"},Xdt={class:"flex-shrink-0"},Zdt={class:"group/avatar"},Jdt=["src","data-popover-target"],eut={class:"flex flex-col w-full flex-grow-0"},tut={class:"flex flex-row flex-grow items-start"},nut={class:"flex flex-col mb-2"},iut={class:"drop-shadow-sm text-lg text-opacity-95 font-bold grow"},sut=["title"],rut={class:"overflow-x-auto w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},out={key:1},aut=["src"],lut={class:"message-details"},cut={key:0,class:"flex w-full cursor-pointer rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 mb-3.5 max-w-full transition-all duration-300 ease-in-out"},dut={class:"grid min-w-80 select-none grid-cols-[50px,1fr] items-center gap-3 p-3 bg-gray-50 dark:bg-gray-800 rounded-lg shadow-sm hover:shadow-md transition-all duration-300"},uut={class:"relative grid aspect-square place-content-center overflow-hidden rounded-full bg-gradient-to-br from-blue-400 to-purple-500 transform transition-transform duration-300 hover:scale-105"},put={class:"leading-5"},fut={class:"flex items-center gap-1 truncate whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"},_ut={class:"px-5 pb-5 pt-4 transition-all duration-300 ease-in-out"},mut={class:"list-none"},hut={class:"flex flex-col items-start w-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},gut={class:"flex-row justify-end mx-2"},but={class:"invisible group-hover:visible flex flex-row"},yut={key:0},Eut={key:1},vut={key:2},Sut={key:3},Tut={key:4,class:"flex items-center duration-75"},xut={class:"flex flex-row items-center"},Cut={class:"flex flex-row items-center"},wut={key:6,class:"flex flex-row items-center"},Rut=["src"],Aut={class:"text-sm text-gray-400 mt-2"},Mut={class:"flex flex-row items-center gap-2"},Nut={key:0},Out={class:"font-thin"},Iut={key:1},kut={class:"font-thin"},Dut={key:2},Lut={class:"font-thin"},Put={key:3},Fut=["title"],Uut={key:4},But=["title"],Gut={key:5},Vut=["title"],zut={key:6},Hut=["title"];function qut(n,e,t,i,s,r){var b;const o=nt("MarkdownRenderer"),a=nt("JsonViewer"),c=nt("DynamicUIRenderer"),d=nt("StatusIcon"),u=nt("StatusIndicator"),_=nt("Step"),m=nt("RenderHTMLJS"),h=nt("ToolbarButton"),f=nt("DropdownSubmenu"),y=nt("DropdownMenu");return T(),w("div",jdt,[l("div",Qdt,[l("div",Xdt,[l("div",Zdt,[l("img",{src:r.getImgUrl(),onError:e[0]||(e[0]=g=>r.defaultImg(g)),"data-popover-target":"avatar"+t.message.id,"data-popover-placement":"bottom",class:"w-10 h-10 rounded-full object-fill text-red-700"},null,40,Jdt)])]),l("div",eut,[l("div",tut,[l("div",nut,[l("div",iut,$(t.message.sender),1),t.message.created_at?(T(),w("div",{key:0,class:"text-sm text-gray-400 font-thin",title:"Created at: "+r.created_at_parsed},$(r.created_at),9,sut)):B("",!0)]),e[45]||(e[45]=l("div",{class:"flex-grow"},null,-1))]),l("div",rut,[r.editMsgMode?B("",!0):(T(),at(o,{key:0,ref:"mdRender",host:t.host,"markdown-text":t.message.content,message_id:t.message.id,discussion_id:t.message.discussion_id,client_id:this.$store.state.client_id},null,8,["host","markdown-text","message_id","discussion_id","client_id"])),l("div",null,[t.message.open?k((T(),w("textarea",{key:0,ref:"mdTextarea",onKeydown:e[1]||(e[1]=wi(W((...g)=>r.insertTab&&r.insertTab(...g),["prevent"]),["tab"])),class:"block min-h-[500px] p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,placeholder:"Enter message here...","onUpdate:modelValue":e[2]||(e[2]=g=>t.message.content=g)},"                        ",544)),[[ue,t.message.content]]):B("",!0)]),t.message.metadata!==null?(T(),w("div",out,[(T(!0),w(Be,null,Xe(((b=t.message.metadata)==null?void 0:b.filter(g=>g!=null&&g.hasOwnProperty("title")&&g.hasOwnProperty("content")))||[],(g,E)=>(T(),w("div",{key:"json-"+t.message.id+"-"+E,class:"json font-bold"},[(T(),at(a,{jsonFormText:g.title,jsonData:g.content,key:"msgjson-"+t.message.id},null,8,["jsonFormText","jsonData"]))]))),128))])):B("",!0),t.message.ui?(T(),at(c,{ref:"ui",class:"w-full",ui:t.message.ui,key:"msgui-"+t.message.id},null,8,["ui"])):B("",!0),s.audio_url!=null?(T(),w("audio",{controls:"",key:s.audio_url},[l("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,aut),e[46]||(e[46]=Ze(" Your browser does not support the audio element. "))])):B("",!0),l("div",lut,[t.message&&t.message.steps&&t.message.steps.length>0?(T(),w("details",cut,[l("summary",dut,[l("div",uut,[z(d,{status:t.message.status_message},null,8,["status"])]),l("dl",put,[e[47]||(e[47]=l("dd",{class:"text-lg font-semibold text-gray-800 dark:text-gray-200"},"Processing Info",-1)),l("dt",fut,[z(u,{status:t.message.status_message},null,8,["status"]),Ze(" "+$(t.message.status_message),1)])])]),l("div",_ut,[l("ol",mut,[(T(!0),w(Be,null,Xe(t.message.steps,(g,E)=>(T(),w("li",{key:`step-${t.message.id}-${E}`,class:Ue(["group border-l pb-6 last:!border-transparent last:pb-0 dark:border-gray-800 transition-all duration-300 ease-in-out",{"bg-transparent":g.done}]),style:Wt({animationDelay:`${E*100}ms`})},[z(_,{done:g.done,text:g.text,status:g.status,step_type:g.step_type},null,8,["done","text","status","step_type"])],6))),128))])])])):B("",!0),l("div",hut,[(T(!0),w(Be,null,Xe(t.message.html_js_s,(g,E)=>(T(),w("div",{key:`htmljs-${t.message.id}-${E}`,class:"font-bold animate-fadeIn",style:Wt({animationDelay:`${E*200}ms`})},[z(m,{htmlContent:g},null,8,["htmlContent"])],4))),128))])])]),l("div",gut,[l("div",but,[r.editMsgMode?(T(),w("div",yut,[z(h,{onClick:e[3]||(e[3]=W(g=>r.editMsgMode=!1,["stop"])),title:"Cancel edit",icon:"x"}),z(h,{onClick:W(r.updateMessage,["stop"]),title:"Update message",icon:"check"},null,8,["onClick"]),z(y,{title:"Add Block"},{default:Ie(()=>[z(f,{title:"Programming Languages",icon:"code"},{default:Ie(()=>[z(h,{onClick:e[4]||(e[4]=W(g=>r.addBlock("python"),["stop"])),title:"Python",icon:"python"}),z(h,{onClick:e[5]||(e[5]=W(g=>r.addBlock("javascript"),["stop"])),title:"JavaScript",icon:"js"}),z(h,{onClick:e[6]||(e[6]=W(g=>r.addBlock("typescript"),["stop"])),title:"TypeScript",icon:"typescript"}),z(h,{onClick:e[7]||(e[7]=W(g=>r.addBlock("java"),["stop"])),title:"Java",icon:"java"}),z(h,{onClick:e[8]||(e[8]=W(g=>r.addBlock("c++"),["stop"])),title:"C++",icon:"cplusplus"}),z(h,{onClick:e[9]||(e[9]=W(g=>r.addBlock("csharp"),["stop"])),title:"C#",icon:"csharp"}),z(h,{onClick:e[10]||(e[10]=W(g=>r.addBlock("go"),["stop"])),title:"Go",icon:"go"}),z(h,{onClick:e[11]||(e[11]=W(g=>r.addBlock("rust"),["stop"])),title:"Rust",icon:"rust"}),z(h,{onClick:e[12]||(e[12]=W(g=>r.addBlock("swift"),["stop"])),title:"Swift",icon:"swift"}),z(h,{onClick:e[13]||(e[13]=W(g=>r.addBlock("kotlin"),["stop"])),title:"Kotlin",icon:"kotlin"}),z(h,{onClick:e[14]||(e[14]=W(g=>r.addBlock("r"),["stop"])),title:"R",icon:"r-project"})]),_:1}),z(f,{title:"Web Technologies",icon:"web"},{default:Ie(()=>[z(h,{onClick:e[15]||(e[15]=W(g=>r.addBlock("html"),["stop"])),title:"HTML",icon:"html5"}),z(h,{onClick:e[16]||(e[16]=W(g=>r.addBlock("css"),["stop"])),title:"CSS",icon:"css3"}),z(h,{onClick:e[17]||(e[17]=W(g=>r.addBlock("vue"),["stop"])),title:"Vue.js",icon:"vuejs"}),z(h,{onClick:e[18]||(e[18]=W(g=>r.addBlock("react"),["stop"])),title:"React",icon:"react"}),z(h,{onClick:e[19]||(e[19]=W(g=>r.addBlock("angular"),["stop"])),title:"Angular",icon:"angular"})]),_:1}),z(f,{title:"Markup and Data",icon:"file-code"},{default:Ie(()=>[z(h,{onClick:e[20]||(e[20]=W(g=>r.addBlock("xml"),["stop"])),title:"XML",icon:"xml"}),z(h,{onClick:e[21]||(e[21]=W(g=>r.addBlock("json"),["stop"])),title:"JSON",icon:"json"}),z(h,{onClick:e[22]||(e[22]=W(g=>r.addBlock("yaml"),["stop"])),title:"YAML",icon:"yaml"}),z(h,{onClick:e[23]||(e[23]=W(g=>r.addBlock("markdown"),["stop"])),title:"Markdown",icon:"markdown"}),z(h,{onClick:e[24]||(e[24]=W(g=>r.addBlock("latex"),["stop"])),title:"LaTeX",icon:"latex"})]),_:1}),z(f,{title:"Scripting and Shell",icon:"terminal"},{default:Ie(()=>[z(h,{onClick:e[25]||(e[25]=W(g=>r.addBlock("bash"),["stop"])),title:"Bash",icon:"bash"}),z(h,{onClick:e[26]||(e[26]=W(g=>r.addBlock("powershell"),["stop"])),title:"PowerShell",icon:"powershell"}),z(h,{onClick:e[27]||(e[27]=W(g=>r.addBlock("perl"),["stop"])),title:"Perl",icon:"perl"})]),_:1}),z(f,{title:"Diagramming",icon:"sitemap"},{default:Ie(()=>[z(h,{onClick:e[28]||(e[28]=W(g=>r.addBlock("mermaid"),["stop"])),title:"Mermaid",icon:"mermaid"}),z(h,{onClick:e[29]||(e[29]=W(g=>r.addBlock("graphviz"),["stop"])),title:"Graphviz",icon:"graphviz"}),z(h,{onClick:e[30]||(e[30]=W(g=>r.addBlock("plantuml"),["stop"])),title:"PlantUML",icon:"plantuml"})]),_:1}),z(f,{title:"Database",icon:"database"},{default:Ie(()=>[z(h,{onClick:e[31]||(e[31]=W(g=>r.addBlock("sql"),["stop"])),title:"SQL",icon:"sql"}),z(h,{onClick:e[32]||(e[32]=W(g=>r.addBlock("mongodb"),["stop"])),title:"MongoDB",icon:"mongodb"})]),_:1}),z(h,{onClick:e[33]||(e[33]=W(g=>r.addBlock(""),["stop"])),title:"Generic Block",icon:"code"})]),_:1})])):(T(),w("div",Eut,[z(h,{onClick:e[34]||(e[34]=W(g=>r.editMsgMode=!0,["stop"])),title:"Edit message",icon:"edit"})])),z(h,{onClick:r.copyContentToClipboard,title:"Copy message to clipboard",icon:"copy"},null,8,["onClick"]),!r.editMsgMode&&t.message.sender!==n.$store.state.mountedPers.name?(T(),w("div",vut,[z(h,{onClick:e[35]||(e[35]=W(g=>r.resendMessage("full_context"),["stop"])),title:"Resend message with full context",icon:"send"}),z(h,{onClick:e[36]||(e[36]=W(g=>r.resendMessage("full_context_with_internet"),["stop"])),title:"Resend message with internet search",icon:"globe"}),z(h,{onClick:e[37]||(e[37]=W(g=>r.resendMessage("simple_question"),["stop"])),title:"Resend message without context",icon:"sendSimple"})])):B("",!0),!r.editMsgMode&&t.message.sender===n.$store.state.mountedPers.name?(T(),w("div",Sut,[z(h,{onClick:r.continueMessage,title:"Continue message",icon:"fastForward"},null,8,["onClick"])])):B("",!0),s.deleteMsgMode?(T(),w("div",Tut,[l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Cancel removal",type:"button",onClick:e[38]||(e[38]=W(g=>s.deleteMsgMode=!1,["stop"]))},e[48]||(e[48]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Confirm removal",type:"button",onClick:e[39]||(e[39]=W(g=>r.deleteMsg(),["stop"]))},e[49]||(e[49]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),!r.editMsgMode&&!s.deleteMsgMode?(T(),w("div",{key:5,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Remove message",onClick:e[40]||(e[40]=g=>s.deleteMsgMode=!0)},e[50]||(e[50]=[l("i",{"data-feather":"trash"},null,-1)]))):B("",!0),l("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer",title:"Upvote",onClick:e[41]||(e[41]=W(g=>r.rankUp(),["stop"]))},e[51]||(e[51]=[l("i",{"data-feather":"thumbs-up"},null,-1)])),l("div",xut,[l("div",{class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"Downvote",onClick:e[42]||(e[42]=W(g=>r.rankDown(),["stop"]))},e[52]||(e[52]=[l("i",{"data-feather":"thumbs-down"},null,-1)])),t.message.rank!=0?(T(),w("div",{key:0,class:Ue(["rounded-full px-2 text-sm flex items-center justify-center font-bold cursor-pointer",t.message.rank>0?"bg-secondary":"bg-red-600"]),title:"Rank"},$(t.message.rank),3)):B("",!0)]),l("div",Cut,[this.$store.state.config.active_tts_service!="None"?(T(),w("div",{key:0,class:Ue(["text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",{"text-red-500":r.isTalking}]),title:"speak",onClick:e[43]||(e[43]=W(g=>r.speak(),["stop"]))},e[53]||(e[53]=[l("i",{"data-feather":"volume-2"},null,-1)]),2)):B("",!0)]),this.$store.state.config.xtts_enable&&!this.$store.state.config.xtts_use_streaming_mode?(T(),w("div",wut,[s.isSynthesizingVoice?(T(),w("img",{key:1,src:s.loading_svg},null,8,Rut)):(T(),w("div",{key:0,class:"text-lg hover:text-red-600 duration-75 active:scale-90 p-2 cursor-pointer",title:"generate_audio",onClick:e[44]||(e[44]=W(g=>r.read(),["stop"]))},e[54]||(e[54]=[l("i",{"data-feather":"voicemail"},null,-1)])))])):B("",!0)])]),l("div",Aut,[l("div",Mut,[t.message.binding?(T(),w("p",Nut,[e[55]||(e[55]=Ze("Binding: ")),l("span",Out,$(t.message.binding),1)])):B("",!0),t.message.model?(T(),w("p",Iut,[e[56]||(e[56]=Ze("Model: ")),l("span",kut,$(t.message.model),1)])):B("",!0),t.message.seed?(T(),w("p",Dut,[e[57]||(e[57]=Ze("Seed: ")),l("span",Lut,$(t.message.seed),1)])):B("",!0),t.message.nb_tokens?(T(),w("p",Put,[e[58]||(e[58]=Ze("Number of tokens: ")),l("span",{class:"font-thin",title:"Number of Tokens: "+t.message.nb_tokens},$(t.message.nb_tokens),9,Fut)])):B("",!0),r.warmup_duration?(T(),w("p",Uut,[e[59]||(e[59]=Ze("Warmup duration: ")),l("span",{class:"font-thin",title:"Warmup duration: "+r.warmup_duration},$(r.warmup_duration),9,But)])):B("",!0),r.time_spent?(T(),w("p",Gut,[e[60]||(e[60]=Ze("Generation duration: ")),l("span",{class:"font-thin",title:"Finished generating: "+r.time_spent},$(r.time_spent),9,Vut)])):B("",!0),r.generation_rate?(T(),w("p",zut,[e[61]||(e[61]=Ze("Rate: ")),l("span",{class:"font-thin",title:"Generation rate: "+r.generation_rate},$(r.generation_rate),9,Hut)])):B("",!0)])])])])])}const fN=st(Kdt,[["render",qut]]),Yut={setup(){return{}},name:"UniversalForm",data(){return{show:!1,resolve:null,controls_array:[],title:"Universal form",ConfirmButtonText:"Submit",DenyButtonText:"Cancel"}},mounted(){Le(()=>{Ve.replace()})},methods:{btn_clicked(n){console.log(n)},hide(n){this.show=!1,this.resolve&&n&&(this.resolve(this.controls_array),this.resolve=null)},showForm(n,e,t,i){this.ConfirmButtonText=t||this.ConfirmButtonText,this.DenyButtonText=i||this.DenyButtonText;for(let s=0;s<n.length;s++)n[s].isHelp=!1;return new Promise(s=>{this.controls_array=n,this.show=!0,this.title=e||this.title,this.resolve=s,console.log("show form",this.controls_array)})},openFileDialog(n){const e=document.createElement("input");e.type="file",n.type==="folder"&&(e.webkitdirectory=!0,e.directory=!0),n.accept&&(e.accept=n.accept),e.onchange=t=>{t.target.files.length>0&&(n.value=t.target.files[0].path)},e.click()}},watch:{controls_array:{deep:!0,handler(n){n.forEach(e=>{e.type==="int"?e.value=parseInt(e.value):e.type==="float"&&(e.value=parseFloat(e.value))})}},show(){Le(()=>{Ve.replace()})}}},$ut={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 p-4 overflow-hidden"},Wut={class:"relative w-full max-w-md max-h-[80vh]"},Kut={class:"flex flex-col rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},jut={class:"flex flex-row items-center p-4 border-b border-gray-200 dark:border-gray-700"},Qut={class:"grow flex items-center"},Xut={class:"text-lg font-semibold select-none"},Zut={class:"overflow-y-auto p-4 max-h-[60vh] custom-scrollbar"},Jut={class:"space-y-2"},ept={key:0},tpt={key:0},npt={class:"text-base font-semibold"},ipt={key:0,class:"relative inline-flex"},spt=["onUpdate:modelValue"],rpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},opt=["onUpdate:modelValue"],apt={key:1},lpt={class:"text-base font-semibold"},cpt={key:0,class:"relative inline-flex"},dpt=["onUpdate:modelValue"],upt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},ppt=["onUpdate:modelValue"],fpt=["value","selected"],_pt={key:1},mpt={class:"",onclick:"btn_clicked(item)"},hpt={key:2},gpt={key:0},bpt={class:"text-base font-semibold"},ypt={key:0,class:"relative inline-flex"},Ept=["onUpdate:modelValue"],vpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Spt=["onUpdate:modelValue"],Tpt={key:1},xpt={class:"text-base font-semibold"},Cpt={key:0,class:"relative inline-flex"},wpt=["onUpdate:modelValue"],Rpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Apt=["onUpdate:modelValue"],Mpt=["value","selected"],Npt={key:3},Opt={class:"text-base font-semibold"},Ipt={key:0,class:"relative inline-flex"},kpt=["onUpdate:modelValue"],Dpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Lpt=["onUpdate:modelValue"],Ppt=["onUpdate:modelValue","min","max"],Fpt={key:4},Upt={class:"text-base font-semibold"},Bpt={key:0,class:"relative inline-flex"},Gpt=["onUpdate:modelValue"],Vpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},zpt=["onUpdate:modelValue"],Hpt=["onUpdate:modelValue","min","max"],qpt={key:5},Ypt={class:"mb-2 relative flex items-center gap-2"},$pt={for:"default-checkbox",class:"text-base font-semibold"},Wpt=["onUpdate:modelValue"],Kpt={key:0,class:"relative inline-flex"},jpt=["onUpdate:modelValue"],Qpt={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},Xpt={key:6},Zpt={class:"text-base font-semibold"},Jpt={key:0,class:"relative inline-flex"},eft=["onUpdate:modelValue"],tft={key:0,class:"text-sm font-normal text-gray-700 dark:text-gray-400 mb-2"},nft=["onUpdate:modelValue"],ift={key:7,class:"space-y-2"},sft={class:"flex items-center gap-2"},rft={class:"text-base font-semibold"},oft={key:0,class:"relative inline-flex"},aft=["onUpdate:modelValue"],lft={key:0,class:"text-sm text-gray-600 dark:text-gray-400"},cft={class:"flex gap-2"},dft=["onUpdate:modelValue","placeholder"],uft=["onClick"],pft={key:8,class:"h-px my-4 bg-gray-200 border-0 dark:bg-gray-700"},fft={class:"flex justify-center gap-3 p-4 border-t border-gray-200 dark:border-gray-700"};function _ft(n,e,t,i,s,r){return s.show?(T(),w("div",$ut,[l("div",Wut,[l("div",Kut,[l("div",jut,[l("div",Qut,[e[3]||(e[3]=l("i",{"data-feather":"sliders",class:"mr-2 flex-shrink-0"},null,-1)),l("h3",Xut,$(s.title),1)]),l("button",{onClick:e[0]||(e[0]=W(o=>r.hide(!1),["stop"])),title:"Close",class:"p-1.5 hover:bg-gray-200 rounded-lg dark:hover:bg-gray-800"},e[4]||(e[4]=[l("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"})],-1)]))]),l("div",Zut,[l("div",Jut,[(T(!0),w(Be,null,Xe(s.controls_array,(o,a)=>(T(),w("div",{key:a,class:"p-1"},[o.type=="str"||o.type=="string"?(T(),w("div",ept,[o.options?B("",!0):(T(),w("div",tpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",npt,$(o.name)+": ",1),o.help?(T(),w("label",ipt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,spt),[[He,o.isHelp]]),e[5]||(e[5]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",rpt,$(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,opt),[[ue,o.value]])])),o.options?(T(),w("div",apt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",lpt,$(o.name)+": ",1),o.help?(T(),w("label",cpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,dpt),[[He,o.isHelp]]),e[6]||(e[6]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",upt,$(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),w(Be,null,Xe(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},$(c),9,fpt))),256))],8,ppt),[[It,o.value]])])):B("",!0)])):B("",!0),o.type=="btn"?(T(),w("div",_pt,[l("button",mpt,$(o.name),1)])):B("",!0),o.type=="text"?(T(),w("div",hpt,[o.options?B("",!0):(T(),w("div",gpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",bpt,$(o.name)+": ",1),o.help?(T(),w("label",ypt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Ept),[[He,o.isHelp]]),e[7]||(e[7]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",vpt,$(o.help),1)):B("",!0),k(l("textarea",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter string"},null,8,Spt),[[ue,o.value]])])),o.options?(T(),w("div",Tpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",xpt,$(o.name)+": ",1),o.help?(T(),w("label",Cpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,wpt),[[He,o.isHelp]]),e[8]||(e[8]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",Rpt,$(o.help),1)):B("",!0),k(l("select",{"onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"},[(T(!0),w(Be,null,Xe(o.options,c=>(T(),w("option",{value:c,selected:o.value===c},$(c),9,Mpt))),256))],8,Apt),[[It,o.value]])])):B("",!0)])):B("",!0),o.type=="int"?(T(),w("div",Npt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Opt,$(o.name)+": ",1),o.help?(T(),w("label",Ipt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,kpt),[[He,o.isHelp]]),e[9]||(e[9]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",Dpt,$(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,step:"1",class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,Lpt),[[ue,o.value]]),o.min!=null&&o.max!=null?k((T(),w("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Ppt)),[[ue,o.value]]):B("",!0)])):B("",!0),o.type=="float"?(T(),w("div",Fpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Upt,$(o.name)+": ",1),o.help?(T(),w("label",Bpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,Gpt),[[He,o.isHelp]]),e[10]||(e[10]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",Vpt,$(o.help),1)):B("",!0),k(l("input",{type:"number","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter number"},null,8,zpt),[[ue,o.value]]),o.min!=null&&o.max!=null?k((T(),w("input",{key:1,type:"range","onUpdate:modelValue":c=>o.value=c,min:o.min,max:o.max,step:"0.1",class:"flex-none h-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500"},null,8,Hpt)),[[ue,o.value]]):B("",!0)])):B("",!0),o.type=="bool"?(T(),w("div",qpt,[l("div",Ypt,[l("label",$pt,$(o.name)+": ",1),k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.value=c,class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"},null,8,Wpt),[[He,o.value]]),o.help?(T(),w("label",Kpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,jpt),[[He,o.isHelp]]),e[11]||(e[11]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),w("p",Qpt,$(o.help),1)):B("",!0)])):B("",!0),o.type=="list"?(T(),w("div",Xpt,[l("label",{class:Ue(["mb-2 relative flex items-center gap-2 text-sm font-medium text-gray-900 dark:text-white select-none",o.help?"cursor-pointer ":""])},[l("div",Zpt,$(o.name)+": ",1),o.help?(T(),w("label",Jpt,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,eft),[[He,o.isHelp]]),e[12]||(e[12]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)],2),o.isHelp?(T(),w("p",tft,$(o.help),1)):B("",!0),k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,class:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",placeholder:"Enter comma separated values"},null,8,nft),[[ue,o.value]])])):B("",!0),o.type==="file"||o.type==="folder"?(T(),w("div",ift,[l("label",sft,[l("span",rft,$(o.name)+":",1),o.help?(T(),w("label",oft,[k(l("input",{type:"checkbox","onUpdate:modelValue":c=>o.isHelp=c,class:"sr-only peer"},null,8,aft),[[He,o.isHelp]]),e[13]||(e[13]=l("div",{class:"hover:text-secondary duration-75 active:scale-90 peer-checked:text-primary"},[l("i",{"data-feather":"help-circle",class:"w-5 h-5"})],-1))])):B("",!0)]),o.isHelp?(T(),w("p",lft,$(o.help),1)):B("",!0),l("div",cft,[k(l("input",{type:"text","onUpdate:modelValue":c=>o.value=c,readonly:"",class:"flex-1 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:text-white",placeholder:o.type==="file"?"Select file...":"Select folder..."},null,8,dft),[[ue,o.value]]),l("button",{onClick:c=>r.openFileDialog(o),class:"px-3 py-2 text-sm font-medium text-gray-900 bg-white border border-gray-300 rounded-lg hover:bg-gray-100 dark:bg-gray-700 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600"}," ... ",8,uft)])])):B("",!0),a<s.controls_array.length-1?(T(),w("hr",pft)):B("",!0)]))),128))])]),l("div",fft,[l("button",{onClick:e[1]||(e[1]=W(o=>r.hide(!0),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-white bg-blue-700 rounded-lg hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700"},$(s.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=W(o=>r.hide(!1),["stop"])),class:"px-5 py-2.5 text-sm font-medium text-gray-500 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-600"},$(s.DenyButtonText),1)])])])])):B("",!0)}const X0=st(Yut,[["render",_ft],["__scopeId","data-v-8a34bb65"]]);ie.defaults.baseURL="/";const mft={components:{InteractiveMenu:W0},props:{commandsList:{type:Array,required:!0},sendCommand:Function,onShowToastMessage:Function},data(){return{loading:!1,selectedFile:null,showMenu:!1,showHelpText:!1,helpText:"",commands:[]}},async mounted(){this.commands=this.commandsList,console.log("Commands",this.commands),document.addEventListener("click",this.handleClickOutside),Le(()=>{Ve.replace()})},methods:{isHTML(n){const t=new DOMParser().parseFromString(n,"text/html");return Array.from(t.body.childNodes).some(i=>i.nodeType===Node.ELEMENT_NODE)},selectFile(n,e){const t=document.createElement("input");t.type="file",t.accept=n,t.onchange=i=>{this.selectedFile=i.target.files[0],console.log("File selected"),e()},t.click()},uploadFile(){new FormData().append("file",this.selectedFile),console.log("Uploading file"),this.loading=!0;const e=new FileReader;e.onload=()=>{const t={filename:this.selectedFile.name,fileData:e.result};Ye.on("file_received",i=>{i.status?this.onShowToastMessage("File uploaded successfully",4,!0):this.onShowToastMessage(`Couldn't upload file
+`+i.error,4,!1),this.loading=!1,Ye.off("file_received")}),Ye.emit("send_file",t)},e.readAsDataURL(this.selectedFile)},async constructor(){Le(()=>{Ve.replace()})},toggleMenu(){this.showMenu=!this.showMenu},execute_cmd(n){this.showMenu=!this.showMenu,n.hasOwnProperty("is_file")?(console.log("Need to send a file."),this.selectFile(n.hasOwnProperty("file_types")?n.file_types:"*",()=>{this.selectedFile!=null&&this.uploadFile()})):this.sendCommand(n.value)},handleClickOutside(n){const e=this.$el.querySelector(".commands-menu-items-wrapper");e&&!e.contains(n.target)&&(this.showMenu=!1)}},beforeUnmount(){document.removeEventListener("click",this.handleClickOutside)}},hft={key:0,title:"Loading..",class:"flex flex-row flex-grow justify-end"};function gft(n,e,t,i,s,r){const o=nt("InteractiveMenu");return s.loading?(T(),w("div",hft,e[0]||(e[0]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):(T(),at(o,{key:1,commands:t.commandsList,execute_cmd:r.execute_cmd},null,8,["commands","execute_cmd"]))}const bft=st(mft,[["render",gft],["__scopeId","data-v-1a32c141"]]),yft="data:image/svg+xml,%3csvg%20aria-hidden='true'%20class='w-6%20h-6%20animate-spin%20fill-secondary'%20viewBox='0%200%20100%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100%2050.5908C100%2078.2051%2077.6142%20100.591%2050%20100.591C22.3858%20100.591%200%2078.2051%200%2050.5908C0%2022.9766%2022.3858%200.59082%2050%200.59082C77.6142%200.59082%20100%2022.9766%20100%2050.5908ZM9.08144%2050.5908C9.08144%2073.1895%2027.4013%2091.5094%2050%2091.5094C72.5987%2091.5094%2090.9186%2073.1895%2090.9186%2050.5908C90.9186%2027.9921%2072.5987%209.67226%2050%209.67226C27.4013%209.67226%209.08144%2027.9921%209.08144%2050.5908Z'%20fill='currentColor'%20/%3e%3cpath%20d='M93.9676%2039.0409C96.393%2038.4038%2097.8624%2035.9116%2097.0079%2033.5539C95.2932%2028.8227%2092.871%2024.3692%2089.8167%2020.348C85.8452%2015.1192%2080.8826%2010.7238%2075.2124%207.41289C69.5422%204.10194%2063.2754%201.94025%2056.7698%201.05124C51.7666%200.367541%2046.6976%200.446843%2041.7345%201.27873C39.2613%201.69328%2037.813%204.19778%2038.4501%206.62326C39.0873%209.04874%2041.5694%2010.4717%2044.0505%2010.1071C47.8511%209.54855%2051.7191%209.52689%2055.5402%2010.0491C60.8642%2010.7766%2065.9928%2012.5457%2070.6331%2015.2552C75.2735%2017.9648%2079.3347%2021.5619%2082.5849%2025.841C84.9175%2028.9121%2086.7997%2032.2913%2088.1811%2035.8758C89.083%2038.2158%2091.5421%2039.6781%2093.9676%2039.0409Z'%20fill='currentFill'%20/%3e%3c/svg%3e",Eft="/",vft={name:"ChatBox",emits:["messageSentEvent","sendCMDEvent","stopGenerating","loaded","createEmptyUserMessage","createEmptyAIMessage","personalitySelected","addWebLink"],props:{onTalk:Function,discussionList:Array,loading:{default:!1},onShowToastMessage:Function},components:{PersonalitiesCommands:bft,ChatBarButton:IM},setup(){},data(){return{isSendMenuVisible:!1,is_rt:!1,bindingHoveredIndex:null,modelHoveredIndex:null,personalityHoveredIndex:null,loader_v0:yft,sendGlobe:pN,bUrl:Eft,message:"",selecting_binding:!1,selecting_model:!1,selectedModel:"",isListeningToVoice:!1,filesList:[],isFileSentList:[],totalSize:0,showfilesList:!0,models_menu_icon:"",posts_headers:{accept:"application/json","Content-Type":"application/json"}}},computed:{leftPanelCollapsed(){return this.$store.state.leftPanelCollapsed},rightPanelCollapsed(){return this.$store.state.rightPanelCollapsed},isCompactMode(){return this.$store.state.view_mode==="compact"},isDataSourceNamesValid(){return console.log("dataSourceNames:",this.dataSourceNames),console.log("Type of dataSourceNames:",typeof this.dataSourceNames),Array.isArray(this.dataSourceNames)&&this.dataSourceNames.length>0},dataSourceNames(){console.log("dataSourceNames",this.$store.state.config.rag_databases);const n=this.$store.state.config.rag_databases.map(e=>{console.log("entry",e);const t=e.split("::");console.log("extracted",t[0]);const s=e.endsWith("mounted")?"feather:check":"";return console.log("icon decision",s),{name:t[0],value:t[0]||"default_value",icon:s,help:"mounts the database"}});return console.log("formatted data sources",n),n}},methods:{showSendMenu(){clearTimeout(this.hideSendMenuTimeout),this.isSendMenuVisible=!0},hideSendMenu(){this.hideSendMenuTimeout=setTimeout(()=>{this.isSendMenuVisible=!1},300)},toggleLeftPanel(){console.log(this.leftPanelCollapsed),this.$store.commit("setLeftPanelCollapsed",!this.leftPanelCollapsed)},async toggleRightPanel(){console.log(this.rightPanelCollapsed),this.$store.commit("setRightPanelCollapsed",!this.rightPanelCollapsed),this.rightPanelCollapsed&&(this.$store.commit("setleftPanelCollapsed",!0),this.$nextTick(()=>{this.extractHtml()})),console.log(this.rightPanelCollapsed)},handlePaste(n){const e=(n.clipboardData||n.originalEvent.clipboardData).items;let t=[];for(let i of e)if(i.type.indexOf("image")!==-1){const s=i.getAsFile(),o=`image_${Date.now()+"_"+Math.random().toString(36).substr(2,9)}.png`;console.log("newFileName",o);const a=new File([s],o,{type:s.type});this.addFiles([a])}else if(i.kind==="file"){const s=i.getAsFile();t.push(s)}t.length>0&&this.addFiles(t)},emitloaded(){this.$emit("loaded")},download_files(){ie.get("/download_files")},remove_file(n){ie.get("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n}).then(e=>{console.log(e)})},clear_files(){ie.post("/clear_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{console.log(n),n.data.state?(this.$store.state.toast.showToast("File removed successfully",4,!0),this.filesList.length=0,this.isFileSentList.length=0,this.totalSize=0):this.$store.state.toast.showToast("Files couldn't be removed",4,!1)})},send_file(n,e){console.log("Send file triggered");const t=new FileReader,i=24*1024;let s=0,r=0;t.onloadend=()=>{if(t.error){console.error("Error reading file:",t.error);return}const a=t.result,c=s+a.byteLength>=n.size;Ye.emit("send_file_chunk",{filename:n.name,chunk:a,offset:s,isLastChunk:c,chunkIndex:r}),s+=a.byteLength,r++,c?(console.log("File sent successfully"),this.isFileSentList[this.filesList.length-1]=!0,console.log(this.isFileSentList),this.$store.state.toast.showToast("File uploaded successfully",4,!0),e()):o()};function o(){const a=n.slice(s,s+i);t.readAsArrayBuffer(a)}console.log("Uploading file"),o()},makeAnEmptyUserMessage(){this.$emit("createEmptyUserMessage",this.message),this.message=""},makeAnEmptyAIMessage(){this.$emit("createEmptyAIMessage")},startRTCom(){this.is_rt=!0,console.log("is_rt:",this.is_rt),Ye.emit("start_bidirectional_audio_stream"),Le(()=>{Ve.replace()})},stopRTCom(){this.is_rt=!1,console.log("is_rt:",this.is_rt),Ye.emit("stop_bidirectional_audio_stream"),Le(()=>{Ve.replace()})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isListeningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onresult=n=>{let e="";for(let t=n.resultIndex;t<n.results.length;t++)e+=n.results[t][0].transcript;this.message=e,clearTimeout(this.silenceTimer),this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isListeningToVoice=!1,clearTimeout(this.silenceTimer),this.submit()},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")},computedFileSize(n){return Le(()=>{Ve.replace()}),is(n)},removeItem(n){console.log("Removing ",n.name),ie.post("/remove_discussion_file",{client_id:this.$store.state.client_id,name:n.name},{headers:this.posts_headers}).then(()=>{this.filesList=this.filesList.filter(e=>e!=n)}),console.log(this.filesList)},sendMessageEvent(n,e="no_internet"){this.$emit("messageSentEvent",n,e)},sendCMDEvent(n){this.$emit("sendCMDEvent",n)},async mountDB(n){await ie.post("/toggle_mount_rag_database",{client_id:this.$store.state.client_id,database_name:n}),await this.$store.dispatch("refreshConfig"),console.log("Refreshed")},addWebLink(){console.log("Emitting addWebLink"),this.$emit("addWebLink")},add_file(){const n=document.createElement("input");n.type="file",n.style.display="none",n.multiple=!0,document.body.appendChild(n),n.addEventListener("change",()=>{console.log("Calling Add file..."),this.addFiles(n.files),document.body.removeChild(n)}),n.click()},takePicture(){Ye.emit("take_picture"),Ye.on("picture_taken",()=>{ie.post("/get_discussion_files_list",{client_id:this.$store.state.client_id}).then(n=>{this.filesList=n.data.files,this.isFileSentList=n.data.files.map(e=>!0),console.log(`Files recovered: ${this.filesList}`)})})},submitOnEnter(n){this.loading||n.which===13&&(n.preventDefault(),n.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},submitWithInternetSearch(){this.message&&(this.sendMessageEvent(this.message,"internet"),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(n){console.log("Adding files");const e=[...n];let t=0;const i=()=>{if(t>=e.length){console.log(`Files_list: ${this.filesList}`);return}const s=e[t];this.filesList.push(s),this.isFileSentList.push(!1),this.send_file(s,()=>{t++,i()})};i()}},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},model_name:{immediate:!0,handler(n){this.$nextTick(()=>{this.model_name=n})}},showfilesList(){Le(()=>{Ve.replace()})},loading(n,e){Le(()=>{Ve.replace()})},filesList:{handler(n,e){let t=0;if(n.length>0)for(let i=0;i<n.length;i++)t=t+parseInt(n[i].size);this.totalSize=is(t,!0),console.log("filesList changed")},deep:!0},discussionList(n){console.log("discussion arr",n)}},mounted(){this.emitloaded(),Le(()=>{Ve.replace()}),console.log("Chatbar mounted"),Ye.on("rtcom_status_changed",n=>{this.$store.dispatch("fetchisRTOn"),console.log("rtcom_status_changed: ",n.status),console.log("active_tts_service: ",this.$store.state.config.active_tts_service),console.log("is_rt_on: ",this.$store.state.is_rt_on)}),this.$store.dispatch("fetchisRTOn")},activated(){Le(()=>{Ve.replace()})}},Sft={class:"absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center"},Tft={key:0,class:"items-center gap-2 panels-color shadow-sm hover:shadow-none dark:border-gray-800 w-fit"},xft={class:"flex"},Cft=["title"],wft={key:0},Rft={class:"flex flex-col max-h-64"},Aft=["title"],Mft={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium items-center gap-2 rounded-lg border bg-gray-100 p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-700 hover:bg-primary dark:hover:bg-primary"},Nft={key:0,filesList:"",role:"status"},Oft={class:"flex flex-row items-center"},Ift={class:"whitespace-nowrap"},kft=["onClick"],Dft={key:1,class:"flex mx-1 w-500"},Lft={class:"whitespace-nowrap flex flex-row gap-2"},Pft={key:1,title:"Selecting model",class:"flex flex-row flex-grow justify-end panels-color"},Fft={role:"status"},Uft=["src"],Bft={class:"flex w-fit relative grow w-full"},Gft={class:"relative text-light-text-panel dark:text-dark-text-panel grow flex h-12.5 cursor-pointer select-none items-center gap-2 chatbox-color p-1 shadow-sm hover:shadow-none dark:border-gray-800",tabindex:"0"},Vft={key:0,title:"Waiting for reply"},zft=["src"],Hft={class:"w-fit"},qft={class:"w-fit"},Yft={class:"relative grow m-0 p-0"},$ft={class:"m-0 p-0"},Wft={class:"flex items-center space-x-3"},Kft={class:"relative inline-block"},jft={class:"p-4 m-0 flex flex-col gap-4 max-h-96 overflow-y-auto custom-scrollbar"},Qft={class:"flex flex-col gap-2"};function Xft(n,e,t,i,s,r){const o=nt("ChatBarButton"),a=nt("PersonalitiesCommands");return T(),w("div",Sft,[s.filesList.length>0?(T(),w("div",Tft,[l("div",xft,[l("button",{class:"mx-1 w-full text-2xl hover:text-secondary duration-75 flex justify-center hover:bg-bg-light-tone hover:dark:bg-bg-dark-tone rounded-lg",title:s.showfilesList?"Hide file list":"Show file list",type:"button",onClick:e[0]||(e[0]=W(c=>s.showfilesList=!s.showfilesList,["stop"]))},e[12]||(e[12]=[l("i",{"data-feather":"list"},null,-1)]),8,Cft)]),s.filesList.length>0&&s.showfilesList==!0?(T(),w("div",wft,[l("div",Rft,[z(Is,{name:"list",tag:"div",class:"flex flex-col flex-grow overflow-y-auto scrollbar-thin scrollbar-track-bg-light scrollbar-thumb-bg-light-tone hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark dark:scrollbar-thumb-bg-dark-tone dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(s.filesList,(c,d)=>(T(),w("div",{key:d+"-"+c.name},[l("div",{class:"m-1",title:c.name},[l("div",Mft,[s.isFileSentList[d]?B("",!0):(T(),w("div",Nft,e[13]||(e[13]=[l("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),l("span",{class:"sr-only"},"Loading...",-1)]))),e[15]||(e[15]=l("div",null,[l("i",{"data-feather":"file",class:"w-5 h-5"})],-1)),l("div",{class:Ue(["line-clamp-1 w-3/5",s.isFileSentList[d]?"text-green-500":"text-red-200"])},$(c.name),3),e[16]||(e[16]=l("div",{class:"grow"},null,-1)),l("div",Oft,[l("p",Ift,$(r.computedFileSize(c.size)),1),l("button",{type:"button",title:"Remove item",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:u=>r.removeItem(c)},e[14]||(e[14]=[l("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]),8,kft)])])],8,Aft)]))),128))]),_:1})])])):B("",!0),s.filesList.length>0?(T(),w("div",Dft,[l("div",Lft,[e[17]||(e[17]=l("p",{class:"font-bold"}," Total size: ",-1)),Ze(" "+$(s.totalSize)+" ("+$(s.filesList.length)+") ",1)]),e[20]||(e[20]=l("div",{class:"grow"},null,-1)),l("button",{type:"button",title:"Clear all",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[1]||(e[1]=(...c)=>r.clear_files&&r.clear_files(...c))},e[18]||(e[18]=[l("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)])),l("button",{type:"button",title:"Download database",class:"flex items-center p-0.5 text-sm rounded-sm hover:text-red-600 active:scale-75",onClick:e[2]||(e[2]=(...c)=>r.download_files&&r.download_files(...c))},e[19]||(e[19]=[l("i",{"data-feather":"download-cloud",class:"w-5 h-5"},null,-1)]))])):B("",!0)])):B("",!0),s.selecting_model||s.selecting_binding?(T(),w("div",Pft,[l("div",Fft,[l("img",{src:s.loader_v0,class:"w-50 h-50"},null,8,Uft),e[21]||(e[21]=l("span",{class:"sr-only"},"Selecting model...",-1))])])):B("",!0),l("div",Bft,[l("div",Gft,[t.loading?(T(),w("div",Vft,[l("img",{src:s.loader_v0},null,8,zft),e[22]||(e[22]=l("div",{role:"status"},[l("span",{class:"sr-only"},"Loading...")],-1))])):B("",!0),z(o,{onClick:r.toggleLeftPanel,class:Ue({"text-red-500":r.leftPanelCollapsed}),title:"Toggle View Mode"},{default:Ie(()=>[k(l("div",null,e[23]||(e[23]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[_t,r.leftPanelCollapsed]]),k(l("div",null,e[24]||(e[24]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[_t,!r.leftPanelCollapsed]])]),_:1},8,["onClick","class"]),l("div",Hft,[this.$store.state.personalities_ready&&this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands!=""?(T(),at(a,{key:0,commandsList:this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands,sendCommand:r.sendCMDEvent,"on-show-toast-message":t.onShowToastMessage,ref:"personalityCMD"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",qft,[r.isDataSourceNamesValid?(T(),at(a,{key:0,icon:"feather:book",commandsList:r.dataSourceNames,sendCommand:r.mountDB,"on-show-toast-message":t.onShowToastMessage,ref:"databasesList"},null,8,["commandsList","sendCommand","on-show-toast-message"])):B("",!0)]),l("div",Yft,[l("form",$ft,[k(l("textarea",{id:"chat",rows:"1","onUpdate:modelValue":e[3]||(e[3]=c=>s.message=c),onPaste:e[4]||(e[4]=(...c)=>r.handlePaste&&r.handlePaste(...c)),onKeydown:e[5]||(e[5]=wi(W(c=>r.submitOnEnter(c),["exact"]),["enter"])),class:"w-full p-2 text-sm text-gray-900 dark:text-white bg-gray-100 dark:bg-gray-700 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-none",placeholder:"Send message..."},null,544),[[ue,s.message]])])]),l("div",Wft,[t.loading?(T(),at(o,{key:0,onClick:r.stopGenerating,class:"bg-red-500 dark:bg-red-600 hover:bg-red-600 dark:hover:bg-red-700"},{icon:Ie(()=>e[25]||(e[25]=[l("svg",{class:"animate-spin h-5 w-5",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)])),default:Ie(()=>[e[26]||(e[26]=l("span",null,"Stop",-1))]),_:1},8,["onClick"])):(T(),at(o,{key:1,onClick:r.submit,title:"Send"},{icon:Ie(()=>e[27]||(e[27]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})],-1)])),_:1},8,["onClick"])),z(o,{onClick:r.submitWithInternetSearch,title:"Send with internet search"},{icon:Ie(()=>e[28]||(e[28]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.startSpeechRecognition,class:Ue({"text-red-500":s.isListeningToVoice}),title:"Voice input"},{icon:Ie(()=>e[29]||(e[29]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"})],-1)])),_:1},8,["onClick","class"]),n.$store.state.config.active_tts_service!="None"&&n.$store.state.config.active_tts_service!=null&&this.$store.state.config.active_stt_service!="None"&&this.$store.state.config.active_stt_service!=null?(T(),at(o,{key:2,onClick:e[6]||(e[6]=c=>s.is_rt?r.stopRTCom:r.startRTCom),class:Ue(s.is_rt?"bg-red-500 dark:bg-red-600":"bg-green-500 dark:bg-green-600"),title:"Real-time audio mode"},{icon:Ie(()=>e[30]||(e[30]=[Ze(" 🌟 ")])),_:1},8,["class"])):B("",!0),t.loading?B("",!0):(T(),w("div",{key:3,class:"relative",onMouseleave:e[10]||(e[10]=(...c)=>r.hideSendMenu&&r.hideSendMenu(...c))},[l("div",Kft,[k(l("div",{onMouseenter:e[7]||(e[7]=(...c)=>r.showSendMenu&&r.showSendMenu(...c)),class:"absolute m-0 p-0 z-10 bottom-full left-1/2 transform -translate-x-1/2 w-25 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",jft,[l("div",Qft,[z(o,{onClick:r.add_file,title:"Send file"},{icon:Ie(()=>e[31]||(e[31]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.takePicture,title:"Take picture"},{icon:Ie(()=>e[32]||(e[32]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.addWebLink,title:"Add web link"},{icon:Ie(()=>e[33]||(e[33]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})],-1)])),_:1},8,["onClick"])])])],544),[[_t,s.isSendMenuVisible]]),l("div",{onMouseenter:e[9]||(e[9]=(...c)=>r.showSendMenu&&r.showSendMenu(...c))},[l("button",{onClick:e[8]||(e[8]=W((...c)=>n.toggleSendMenu&&n.toggleSendMenu(...c),["prevent"])),class:"p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},e[34]||(e[34]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"black"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)]))],32)])],32)),z(o,{onClick:r.makeAnEmptyUserMessage,title:"New user message",class:"text-gray-600 dark:text-gray-300"},{icon:Ie(()=>e[35]||(e[35]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.makeAnEmptyAIMessage,title:"New AI message",class:"text-red-400 dark:text-red-300"},{icon:Ie(()=>e[36]||(e[36]=[l("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})],-1)])),_:1},8,["onClick"]),z(o,{onClick:r.toggleRightPanel,class:Ue({"text-red-500":!r.rightPanelCollapsed}),title:"Toggle right Panel"},{default:Ie(()=>[k(l("div",null,e[37]||(e[37]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"15 18 9 12 15 6"})],-1)]),512),[[_t,r.rightPanelCollapsed]]),k(l("div",null,e[38]||(e[38]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[l("polyline",{points:"9 18 15 12 9 6"})],-1)]),512),[[_t,!r.rightPanelCollapsed]])]),_:1},8,["onClick","class"])]),l("input",{type:"file",ref:"fileDialog",onChange:e[11]||(e[11]=(...c)=>r.addFiles&&r.addFiles(...c)),multiple:"",style:{display:"none"}},null,544)]),e[39]||(e[39]=l("div",{class:"ml-auto gap-2"},null,-1))])])}const _N=st(vft,[["render",Xft],["__scopeId","data-v-e3d676fa"]]),Zft={name:"WelcomeComponent",setup(){const n=jD();return{logoSrc:Je(()=>n.state.config&&n.state.config.app_custom_logo?`/user_infos/${n.state.config.app_custom_logo}`:Bi)}}},Jft={class:"flex flex-col items-center justify-center w-full h-full min-h-screen bg-gradient-to-br from-indigo-100 to-purple-100 dark:from-indigo-900 dark:to-purple-900 p-8"},e_t={class:"text-center max-w-4xl"},t_t={class:"flex items-center justify-center gap-8 mb-12"},n_t={class:"relative w-24 h-24"},i_t=["src"];function s_t(n,e,t,i,s,r){return T(),w("div",Jft,[l("div",e_t,[l("div",t_t,[l("div",n_t,[l("img",{src:i.logoSrc,alt:"LoLLMS Logo",class:"w-24 h-24 rounded-full absolute animate-rolling-ball"},null,8,i_t)]),e[0]||(e[0]=l("div",{class:"flex flex-col items-start"},[l("h1",{class:"text-6xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 dark:from-indigo-400 dark:to-purple-400"}," L🌟LLMS "),l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic mt-2"}," Lord of Large Language And Multimodal Systems ")],-1))]),e[1]||(e[1]=mr('<div class="space-y-8 animate-fade-in-up" data-v-3da6dda3><h2 class="text-4xl font-semibold text-gray-800 dark:text-gray-200" data-v-3da6dda3> Welcome to L🌟LLMS WebUI </h2><p class="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto" data-v-3da6dda3> Embark on a journey through the realm of advanced AI with L🌟LLMS, your ultimate companion for intelligent conversations and multimodal interactions. Unleash the power of large language models and explore new frontiers in artificial intelligence. </p><div class="mt-12 space-y-6" data-v-3da6dda3><p class="text-lg text-gray-700 dark:text-gray-300" data-v-3da6dda3> Discover the capabilities of L🌟LLMS: </p><ul class="text-left list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2" data-v-3da6dda3><li data-v-3da6dda3>Engage in natural language conversations</li><li data-v-3da6dda3>Generate creative content and ideas</li><li data-v-3da6dda3>Analyze complex data and provide insights</li><li data-v-3da6dda3>Assist with coding and technical tasks</li><li data-v-3da6dda3>Process and understand multimodal inputs</li></ul></div></div>',1))])])}const mN=st(Zft,[["render",s_t],["__scopeId","data-v-3da6dda3"]]);var r_t=function(){function n(e,t){t===void 0&&(t=[]),this._eventType=e,this._eventFunctions=t}return n.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(t){typeof window<"u"&&window.addEventListener(e._eventType,t)})},n}(),ru=function(){return ru=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},ru.apply(this,arguments)},ou={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},hN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=ou),this._items=e,this._options=ru(ru({},ou),t),this._init()}return n.prototype._init=function(){var e=this;this._items.length&&this._items.map(function(t){t.active&&e.open(t.id),t.triggerEl.addEventListener("click",function(){e.toggle(t.id)})})},n.prototype.getItem=function(e){return this._items.filter(function(t){return t.id===e})[0]},n.prototype.open=function(e){var t,i,s=this,r=this.getItem(e);this._options.alwaysOpen||this._items.map(function(o){var a,c;o!==r&&((a=o.triggerEl.classList).remove.apply(a,s._options.activeClasses.split(" ")),(c=o.triggerEl.classList).add.apply(c,s._options.inactiveClasses.split(" ")),o.targetEl.classList.add("hidden"),o.triggerEl.setAttribute("aria-expanded","false"),o.active=!1,o.iconEl&&o.iconEl.classList.remove("rotate-180"))}),(t=r.triggerEl.classList).add.apply(t,this._options.activeClasses.split(" ")),(i=r.triggerEl.classList).remove.apply(i,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-expanded","true"),r.targetEl.classList.remove("hidden"),r.active=!0,r.iconEl&&r.iconEl.classList.add("rotate-180"),this._options.onOpen(this,r)},n.prototype.toggle=function(e){var t=this.getItem(e);t.active?this.close(e):this.open(e),this._options.onToggle(this,t)},n.prototype.close=function(e){var t,i,s=this.getItem(e);(t=s.triggerEl.classList).remove.apply(t,this._options.activeClasses.split(" ")),(i=s.triggerEl.classList).add.apply(i,this._options.inactiveClasses.split(" ")),s.targetEl.classList.add("hidden"),s.triggerEl.setAttribute("aria-expanded","false"),s.active=!1,s.iconEl&&s.iconEl.classList.remove("rotate-180"),this._options.onClose(this,s)},n}();function Z0(){document.querySelectorAll("[data-accordion]").forEach(function(n){var e=n.getAttribute("data-accordion"),t=n.getAttribute("data-active-classes"),i=n.getAttribute("data-inactive-classes"),s=[];n.querySelectorAll("[data-accordion-target]").forEach(function(r){if(r.closest("[data-accordion]")===n){var o={id:r.getAttribute("data-accordion-target"),triggerEl:r,targetEl:document.querySelector(r.getAttribute("data-accordion-target")),iconEl:r.querySelector("[data-accordion-icon]"),active:r.getAttribute("aria-expanded")==="true"};s.push(o)}}),new hN(s,{alwaysOpen:e==="open",activeClasses:t||ou.activeClasses,inactiveClasses:i||ou.inactiveClasses})})}typeof window<"u"&&(window.Accordion=hN,window.initAccordions=Z0);var au=function(){return au=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},au.apply(this,arguments)},iC={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},gN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=iC),this._targetEl=e,this._triggerEl=t,this._options=au(au({},iC),i),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){e.toggle()}))},n.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},n.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},n.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},n}();function J0(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(n){var e=n.getAttribute("data-collapse-toggle"),t=document.getElementById(e);t?new gN(t,n):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=gN,window.initCollapses=J0);var qr=function(){return qr=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},qr.apply(this,arguments)},Id={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},bN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=Id),this._items=e,this._options=qr(qr(qr({},Id),t),{indicators:qr(qr({},Id.indicators),t.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._init()}return n.prototype._init=function(){var e=this;this._items.map(function(t){t.el.classList.add("absolute","inset-0","transition-transform","transform")}),this._getActiveItem()?this.slideTo(this._getActiveItem().position):this.slideTo(0),this._indicators.map(function(t,i){t.el.addEventListener("click",function(){e.slideTo(i)})})},n.prototype.getItem=function(e){return this._items[e]},n.prototype.slideTo=function(e){var t=this._items[e],i={left:t.position===0?this._items[this._items.length-1]:this._items[t.position-1],middle:t,right:t.position===this._items.length-1?this._items[0]:this._items[t.position+1]};this._rotate(i),this._setActiveItem(t),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},n.prototype.next=function(){var e=this._getActiveItem(),t=null;e.position===this._items.length-1?t=this._items[0]:t=this._items[e.position+1],this.slideTo(t.position),this._options.onNext(this)},n.prototype.prev=function(){var e=this._getActiveItem(),t=null;e.position===0?t=this._items[this._items.length-1]:t=this._items[e.position-1],this.slideTo(t.position),this._options.onPrev(this)},n.prototype._rotate=function(e){this._items.map(function(t){t.el.classList.add("hidden")}),e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.right.el.classList.add("translate-x-full","z-10")},n.prototype.cycle=function(){var e=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},n.prototype.pause=function(){clearInterval(this._intervalInstance)},n.prototype._getActiveItem=function(){return this._activeItem},n.prototype._setActiveItem=function(e){var t,i,s=this;this._activeItem=e;var r=e.position;this._indicators.length&&(this._indicators.map(function(o){var a,c;o.el.setAttribute("aria-current","false"),(a=o.el.classList).remove.apply(a,s._options.indicators.activeClasses.split(" ")),(c=o.el.classList).add.apply(c,s._options.indicators.inactiveClasses.split(" "))}),(t=this._indicators[r].el.classList).add.apply(t,this._options.indicators.activeClasses.split(" ")),(i=this._indicators[r].el.classList).remove.apply(i,this._options.indicators.inactiveClasses.split(" ")),this._indicators[r].el.setAttribute("aria-current","true"))},n}();function ey(){document.querySelectorAll("[data-carousel]").forEach(function(n){var e=n.getAttribute("data-carousel-interval"),t=n.getAttribute("data-carousel")==="slide",i=[],s=0;n.querySelectorAll("[data-carousel-item]").length&&Array.from(n.querySelectorAll("[data-carousel-item]")).map(function(d,u){i.push({position:u,el:d}),d.getAttribute("data-carousel-item")==="active"&&(s=u)});var r=[];n.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(n.querySelectorAll("[data-carousel-slide-to]")).map(function(d){r.push({position:parseInt(d.getAttribute("data-carousel-slide-to")),el:d})});var o=new bN(i,{defaultPosition:s,indicators:{items:r},interval:e||Id.interval});t&&o.cycle();var a=n.querySelector("[data-carousel-next]"),c=n.querySelector("[data-carousel-prev]");a&&a.addEventListener("click",function(){o.next()}),c&&c.addEventListener("click",function(){o.prev()})})}typeof window<"u"&&(window.Carousel=bN,window.initCarousels=ey);var lu=function(){return lu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},lu.apply(this,arguments)},sC={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},yN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=sC),this._targetEl=e,this._triggerEl=t,this._options=lu(lu({},sC),i),this._init()}return n.prototype._init=function(){var e=this;this._triggerEl&&this._triggerEl.addEventListener("click",function(){e.hide()})},n.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){e._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},n}();function ty(){document.querySelectorAll("[data-dismiss-target]").forEach(function(n){var e=n.getAttribute("data-dismiss-target"),t=document.querySelector(e);t?new yN(t,n):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=yN,window.initDismisses=ty);var or=function(){return or=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},or.apply(this,arguments)},Uc=function(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))},ar={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},EN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=ar),this._targetEl=e,this._triggerEl=t,this._options=or(or({},ar),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();this._options.triggerType==="click"&&t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.toggle()})}),this._options.triggerType==="hover"&&(t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){i==="click"?e.toggle():setTimeout(function(){e.show()},e._options.delay)}),e._targetEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},e._options.delay)}),e._targetEl.addEventListener(i,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},e._options.delay)})}))},n.prototype._createPopperInstance=function(){return up(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var i=e.target,s=this._options.ignoreClickOutsideClass,r=!1;if(s){var o=document.querySelectorAll(".".concat(s));o.forEach(function(a){if(a.contains(i)){r=!0;return}})}i!==t&&!t.contains(i)&&!this._triggerEl.contains(i)&&!r&&this.isVisible()&&this.hide()},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},n.prototype.isVisible=function(){return this._visible},n.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(e){return or(or({},e),{modifiers:Uc(Uc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(e){return or(or({},e),{modifiers:Uc(Uc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},n}();function ny(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(n){var e=n.getAttribute("data-dropdown-toggle"),t=document.getElementById(e);if(t){var i=n.getAttribute("data-dropdown-placement"),s=n.getAttribute("data-dropdown-offset-skidding"),r=n.getAttribute("data-dropdown-offset-distance"),o=n.getAttribute("data-dropdown-trigger"),a=n.getAttribute("data-dropdown-delay"),c=n.getAttribute("data-dropdown-ignore-click-outside-class");new EN(t,n,{placement:i||ar.placement,triggerType:o||ar.triggerType,offsetSkidding:s?parseInt(s):ar.offsetSkidding,offsetDistance:r?parseInt(r):ar.offsetDistance,delay:a?parseInt(a):ar.delay,ignoreClickOutsideClass:c||ar.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=EN,window.initDropdowns=ny);var cu=function(){return cu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},cu.apply(this,arguments)},Ko={placement:"center",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},ub=function(){function n(e,t){e===void 0&&(e=null),t===void 0&&(t=Ko),this._targetEl=e,this._options=cu(cu({},Ko),t),this._isHidden=!0,this._backdropEl=null,this._init()}return n.prototype._init=function(){var e=this;this._targetEl&&this._getPlacementClasses().map(function(t){e._targetEl.classList.add(t)})},n.prototype._createBackdrop=function(){var e;if(this._isHidden){var t=document.createElement("div");t.setAttribute("modal-backdrop",""),(e=t.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(t),this._backdropEl=t}},n.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},n.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(t){e._handleOutsideClick(t.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},n.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},n.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},n.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,document.body.classList.add("overflow-hidden"),this._options.closable&&this._setupModalCloseEventListeners(),this._options.onShow(this))},n.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},n.prototype.isVisible=function(){return!this._isHidden},n.prototype.isHidden=function(){return this._isHidden},n}(),Bc=function(n,e){return e.some(function(t){return t.id===n})?e.find(function(t){return t.id===n}):null};function iy(){var n=[];document.querySelectorAll("[data-modal-target]").forEach(function(e){var t=e.getAttribute("data-modal-target"),i=document.getElementById(t);if(i){var s=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop");Bc(t,n)||n.push({id:t,object:new ub(i,{placement:s||Ko.placement,backdrop:r||Ko.backdrop})})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var t=e.getAttribute("data-modal-toggle"),i=document.getElementById(t);if(i){var s=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop"),o=Bc(t,n);o||(o={id:t,object:new ub(i,{placement:s||Ko.placement,backdrop:r||Ko.backdrop})},n.push(o)),e.addEventListener("click",function(){o.object.toggle()})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var t=e.getAttribute("data-modal-show"),i=document.getElementById(t);if(i){var s=Bc(t,n);s?e.addEventListener("click",function(){s.object.isHidden&&s.object.show()}):console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var t=e.getAttribute("data-modal-hide"),i=document.getElementById(t);if(i){var s=Bc(t,n);s?e.addEventListener("click",function(){s.object.isVisible&&s.object.hide()}):console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=ub,window.initModals=iy);var du=function(){return du=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},du.apply(this,arguments)},Yr={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},vN=function(){function n(e,t){e===void 0&&(e=null),t===void 0&&(t=Yr),this._targetEl=e,this._options=du(du({},Yr),t),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(t){e._targetEl.classList.add(t)}),document.addEventListener("keydown",function(t){t.key==="Escape"&&e.isVisible()&&e.hide()})},n.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(t){e._targetEl.classList.add(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.remove(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.add(t)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},n.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(t){e._targetEl.classList.remove(t)})):(this._getPlacementClasses(this._options.placement).active.map(function(t){e._targetEl.classList.add(t)}),this._getPlacementClasses(this._options.placement).inactive.map(function(t){e._targetEl.classList.remove(t)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},n.prototype._createBackdrop=function(){var e,t=this;if(!this._visible){var i=document.createElement("div");i.setAttribute("drawer-backdrop",""),(e=i.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),i.addEventListener("click",function(){t.hide()})}},n.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},n.prototype._getPlacementClasses=function(e){switch(e){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},n.prototype.isHidden=function(){return!this._visible},n.prototype.isVisible=function(){return this._visible},n}(),Gc=function(n,e){if(e.some(function(t){return t.id===n}))return e.find(function(t){return t.id===n})};function sy(){var n=[];document.querySelectorAll("[data-drawer-target]").forEach(function(e){var t=e.getAttribute("data-drawer-target"),i=document.getElementById(t);if(i){var s=e.getAttribute("data-drawer-placement"),r=e.getAttribute("data-drawer-body-scrolling"),o=e.getAttribute("data-drawer-backdrop"),a=e.getAttribute("data-drawer-edge"),c=e.getAttribute("data-drawer-edge-offset");Gc(t,n)||n.push({id:t,object:new vN(i,{placement:s||Yr.placement,bodyScrolling:r?r==="true":Yr.bodyScrolling,backdrop:o?o==="true":Yr.backdrop,edge:a?a==="true":Yr.edge,edgeOffset:c||Yr.edgeOffset})})}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var t=e.getAttribute("data-drawer-toggle"),i=document.getElementById(t);if(i){var s=Gc(t,n);s?e.addEventListener("click",function(){s.object.toggle()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var t=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),i=document.getElementById(t);if(i){var s=Gc(t,n);s?e.addEventListener("click",function(){s.object.hide()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var t=e.getAttribute("data-drawer-show"),i=document.getElementById(t);if(i){var s=Gc(t,n);s?e.addEventListener("click",function(){s.object.show()}):console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=vN,window.initDrawers=sy);var uu=function(){return uu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},uu.apply(this,arguments)},rC={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},SN=function(){function n(e,t){e===void 0&&(e=[]),t===void 0&&(t=rC),this._items=e,this._activeTab=t?this.getTab(t.defaultTabId):null,this._options=uu(uu({},rC),t),this._init()}return n.prototype._init=function(){var e=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(t){t.triggerEl.addEventListener("click",function(){e.show(t.id)})}))},n.prototype.getActiveTab=function(){return this._activeTab},n.prototype._setActiveTab=function(e){this._activeTab=e},n.prototype.getTab=function(e){return this._items.filter(function(t){return t.id===e})[0]},n.prototype.show=function(e,t){var i,s,r=this;t===void 0&&(t=!1);var o=this.getTab(e);o===this._activeTab&&!t||(this._items.map(function(a){var c,d;a!==o&&((c=a.triggerEl.classList).remove.apply(c,r._options.activeClasses.split(" ")),(d=a.triggerEl.classList).add.apply(d,r._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-selected","false"))}),(i=o.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(s=o.triggerEl.classList).remove.apply(s,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-selected","true"),o.targetEl.classList.remove("hidden"),this._setActiveTab(o),this._options.onShow(this,o))},n}();function ry(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(n){var e=[],t=null;n.querySelectorAll('[role="tab"]').forEach(function(i){var s=i.getAttribute("aria-selected")==="true",r={id:i.getAttribute("data-tabs-target"),triggerEl:i,targetEl:document.querySelector(i.getAttribute("data-tabs-target"))};e.push(r),s&&(t=r.id)}),new SN(e,{defaultTabId:t})})}typeof window<"u"&&(window.Tabs=SN,window.initTabs=ry);var lr=function(){return lr=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},lr.apply(this,arguments)},Vc=function(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))},pu={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},TN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=pu),this._targetEl=e,this._triggerEl=t,this._options=lr(lr({},pu),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.hide()})})},n.prototype._createPopperInstance=function(){return up(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var i=e.target;i!==t&&!t.contains(i)&&!this._triggerEl.contains(i)&&this.isVisible()&&this.hide()},n.prototype.isVisible=function(){return this._visible},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},n.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return lr(lr({},e),{modifiers:Vc(Vc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return lr(lr({},e),{modifiers:Vc(Vc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},n}();function oy(){document.querySelectorAll("[data-tooltip-target]").forEach(function(n){var e=n.getAttribute("data-tooltip-target"),t=document.getElementById(e);if(t){var i=n.getAttribute("data-tooltip-trigger"),s=n.getAttribute("data-tooltip-placement");new TN(t,n,{placement:s||pu.placement,triggerType:i||pu.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=TN,window.initTooltips=oy);var cr=function(){return cr=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},cr.apply(this,arguments)},zc=function(n,e,t){if(t||arguments.length===2)for(var i=0,s=e.length,r;i<s;i++)(r||!(i in e))&&(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))},Nl={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},xN=function(){function n(e,t,i){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=Nl),this._targetEl=e,this._triggerEl=t,this._options=cr(cr({},Nl),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return n.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},n.prototype._setupEventListeners=function(){var e=this,t=this._getTriggerEvents();t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()}),e._targetEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},100)}),e._targetEl.addEventListener(i,function(){setTimeout(function(){e._triggerEl.matches(":hover")||e.hide()},100)})})},n.prototype._createPopperInstance=function(){return up(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},n.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(t){t.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},n.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},n.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(t){e._handleClickOutside(t,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},n.prototype._handleClickOutside=function(e,t){var i=e.target;i!==t&&!t.contains(i)&&!this._triggerEl.contains(i)&&this.isVisible()&&this.hide()},n.prototype.isVisible=function(){return this._visible},n.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},n.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return cr(cr({},e),{modifiers:zc(zc([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},n.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return cr(cr({},e),{modifiers:zc(zc([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},n}();function ay(){document.querySelectorAll("[data-popover-target]").forEach(function(n){var e=n.getAttribute("data-popover-target"),t=document.getElementById(e);if(t){var i=n.getAttribute("data-popover-trigger"),s=n.getAttribute("data-popover-placement"),r=n.getAttribute("data-popover-offset");new xN(t,n,{placement:s||Nl.placement,offset:r?parseInt(r):Nl.offset,triggerType:i||Nl.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=xN,window.initPopovers=ay);var fu=function(){return fu=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s])}return n},fu.apply(this,arguments)},pb={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},CN=function(){function n(e,t,i,s){e===void 0&&(e=null),t===void 0&&(t=null),i===void 0&&(i=null),s===void 0&&(s=pb),this._parentEl=e,this._triggerEl=t,this._targetEl=i,this._options=fu(fu({},pb),s),this._visible=!1,this._init()}return n.prototype._init=function(){var e=this;if(this._triggerEl){var t=this._getTriggerEventTypes(this._options.triggerType);t.showEvents.forEach(function(i){e._triggerEl.addEventListener(i,function(){e.show()}),e._targetEl.addEventListener(i,function(){e.show()})}),t.hideEvents.forEach(function(i){e._parentEl.addEventListener(i,function(){e._parentEl.matches(":hover")||e.hide()})})}},n.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},n.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},n.prototype.toggle=function(){this._visible?this.hide():this.show()},n.prototype.isHidden=function(){return!this._visible},n.prototype.isVisible=function(){return this._visible},n.prototype._getTriggerEventTypes=function(e){switch(e){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},n}();function ly(){document.querySelectorAll("[data-dial-init]").forEach(function(n){var e=n.querySelector("[data-dial-toggle]");if(e){var t=e.getAttribute("data-dial-toggle"),i=document.getElementById(t);if(i){var s=e.getAttribute("data-dial-trigger");new CN(n,e,i,{triggerType:s||pb.triggerType})}else console.error("Dial with id ".concat(t," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(n.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=CN,window.initDials=ly);function wN(){Z0(),J0(),ey(),ty(),ny(),iy(),sy(),ry(),oy(),ay(),ly()}typeof window<"u"&&(window.initFlowbite=wN);var o_t=new r_t("load",[Z0,J0,ey,ty,ny,iy,sy,ry,oy,ay,ly]);o_t.init();const a_t={data(){return{show:!1,has_button:!0,message:""}},components:{MarkdownRenderer:lp},methods:{hide(){this.show=!1,this.$emit("ok")},showMessage(n){this.message=n,this.has_button=!0,this.show=!0},showBlockingMessage(n){this.message=n,this.has_button=!1,this.show=!0},updateMessage(n){this.message=n,this.show=!0},hideMessage(){this.show=!1}}},l_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-50"},c_t={class:"pl-10 pr-10 bg-bg-light dark:bg-bg-dark p-8 rounded-lg shadow-lg"},d_t={class:"container max-h-500 overflow-y-auto"},u_t={class:"text-lg font-medium"},p_t={class:"mt-4 flex justify-center"},f_t={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function __t(n,e,t,i,s,r){const o=nt("MarkdownRenderer");return s.show?(T(),w("div",l_t,[l("div",c_t,[l("div",d_t,[l("div",u_t,[z(o,{ref:"mdRender",host:"","markdown-text":s.message,message_id:0,discussion_id:0},null,8,["markdown-text"])])]),l("div",p_t,[s.has_button?(T(),w("button",{key:0,onClick:e[0]||(e[0]=(...a)=>r.hide&&r.hide(...a)),class:"bg-primary hover:bg-primary-light active:scale-95 duration-150 text-white px-4 py-2 rounded-lg shadow-lg hover:bg-secondary-dark"}," OK ")):B("",!0),s.has_button?B("",!0):(T(),w("svg",f_t,e[1]||(e[1]=[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1)])))])])])):B("",!0)}const RN=st(a_t,[["render",__t]]),m_t={props:{progress:{type:Number,required:!0}}},h_t={class:"progress-bar-container"};function g_t(n,e,t,i,s,r){return T(),w("div",h_t,[l("div",{class:"progress-bar",style:Wt({width:`${t.progress}%`})},null,4)])}const _u=st(m_t,[["render",g_t]]),b_t={data(){return{show:!1,message:"",resolve:null,ConfirmButtonText:"Yes, I'm sure",DenyButtonText:"No, cancel"}},methods:{hide(n){this.show=!1,this.resolve&&(this.resolve(n),this.resolve=null)},askQuestion(n,e,t){return this.ConfirmButtonText=e||this.ConfirmButtonText,this.DenyButtonText=t||this.DenyButtonText,new Promise(i=>{this.message=n,this.show=!0,this.resolve=i})}}},y_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50"},E_t={class:"relative w-full max-w-md max-h-full"},v_t={class:"relative bg-white rounded-lg shadow dark:bg-gray-700"},S_t={class:"p-4 text-center"},T_t={class:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400 select-none break-all"};function x_t(n,e,t,i,s,r){return s.show?(T(),w("div",y_t,[l("div",E_t,[l("div",v_t,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide(!1)),class:"absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[3]||(e[3]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",S_t,[e[4]||(e[4]=l("svg",{"aria-hidden":"true",class:"mx-auto mb-4 text-gray-400 w-14 h-14 dark:text-gray-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("h3",T_t,$(s.message),1),l("button",{onClick:e[1]||(e[1]=o=>r.hide(!0)),type:"button",class:"text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2"},$(s.ConfirmButtonText),1),l("button",{onClick:e[2]||(e[2]=o=>r.hide(!1)),type:"button",class:"text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"},$(s.DenyButtonText),1)])])])])):B("",!0)}const AN=st(b_t,[["render",x_t]]),C_t={props:{personality:{type:Object,required:!0},config:{type:Object,required:!0}},data(){return{show:!1,title:"Add AI Agent",iconUrl:"",file:null,tempConfig:{}}},methods:{showForm(){this.showDialog=!0},hideForm(){this.showDialog=!1},selectIcon(n){n.target.files&&(this.file=n.target.files[0],this.iconUrl=URL.createObjectURL(this.file))},showPanel(){this.show=!0},hide(){this.show=!1},submitForm(){ie.post("/set_personality_config",{client_id:this.$store.state.client_id,category:this.personality.category,name:this.personality.folder,config:this.config}).then(n=>{const e=n.data;console.log("Done"),e.status?(this.currentPersonConfig=e.config,this.showPersonalityEditor=!0):console.error(e.error)}).catch(n=>{console.error(n)})}}},w_t={key:0,class:"fixed top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-50 z-20"},R_t={class:"relative w-full max-h-full bg-bg-light dark:bg-bg-dark"},A_t={class:"w-full h-full relative items-center gap-2 rounded-lg border bg-bg-light dark:bg-bg-dark p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900"},M_t={class:"justify-center text-center items-center w-full bg-bg-light dark:bg-bg-dark"},N_t={class:"w-full flex flex-row mt-4 text-center justify-center"},O_t={class:"w-full max-h-full container bg-bg-light dark:bg-bg-dark"},I_t={class:"mb-4 w-full"},k_t={class:"w-full bg-bg-light dark:bg-bg-dark"};function D_t(n,e,t,i,s,r){return s.show?(T(),w("div",w_t,[l("div",R_t,[l("div",A_t,[l("button",{type:"button",onClick:e[0]||(e[0]=o=>r.hide()),class:"absolute top-1 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-800 dark:hover:text-white"},e[17]||(e[17]=[l("svg",{"aria-hidden":"true",class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),l("span",{class:"sr-only"},"Close modal",-1)])),l("div",M_t,[l("div",N_t,[l("button",{type:"submit",onClick:e[1]||(e[1]=W((...o)=>r.submitForm&&r.submitForm(...o),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Commit AI to Server "),l("button",{onClick:e[2]||(e[2]=W(o=>r.hide(),["prevent"])),class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"}," Close ")]),l("div",O_t,[l("form",I_t,[l("table",k_t,[l("tr",null,[e[18]||(e[18]=l("td",null,[l("label",{for:"personalityConditioning"},"Personality Conditioning:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"personalityConditioning","onUpdate:modelValue":e[3]||(e[3]=o=>t.config.personality_conditioning=o)},null,512),[[ue,t.config.personality_conditioning]])])]),l("tr",null,[e[19]||(e[19]=l("td",null,[l("label",{for:"userMessagePrefix"},"User Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"userMessagePrefix","onUpdate:modelValue":e[4]||(e[4]=o=>t.config.user_message_prefix=o)},null,512),[[ue,t.config.user_message_prefix]])])]),l("tr",null,[e[20]||(e[20]=l("td",null,[l("label",{for:"aiMessagePrefix"},"AI Message Prefix:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"aiMessagePrefix","onUpdate:modelValue":e[5]||(e[5]=o=>t.config.ai_message_prefix=o)},null,512),[[ue,t.config.ai_message_prefix]])])]),l("tr",null,[e[21]||(e[21]=l("td",null,[l("label",{for:"linkText"},"Link Text:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"linkText","onUpdate:modelValue":e[6]||(e[6]=o=>t.config.link_text=o)},null,512),[[ue,t.config.link_text]])])]),l("tr",null,[e[22]||(e[22]=l("td",null,[l("label",{for:"welcomeMessage"},"Welcome Message:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"welcomeMessage","onUpdate:modelValue":e[7]||(e[7]=o=>t.config.welcome_message=o)},null,512),[[ue,t.config.welcome_message]])])]),l("tr",null,[e[23]||(e[23]=l("td",null,[l("label",{for:"modelTemperature"},"Model Temperature:")],-1)),l("td",null,[k(l("input",{type:"number",id:"modelTemperature","onUpdate:modelValue":e[8]||(e[8]=o=>t.config.model_temperature=o)},null,512),[[ue,t.config.model_temperature]])])]),l("tr",null,[e[24]||(e[24]=l("td",null,[l("label",{for:"modelTopK"},"Model Top K:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopK","onUpdate:modelValue":e[9]||(e[9]=o=>t.config.model_top_k=o)},null,512),[[ue,t.config.model_top_k]])])]),l("tr",null,[e[25]||(e[25]=l("td",null,[l("label",{for:"modelTopP"},"Model Top P:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelTopP","onUpdate:modelValue":e[10]||(e[10]=o=>t.config.model_top_p=o)},null,512),[[ue,t.config.model_top_p]])])]),l("tr",null,[e[26]||(e[26]=l("td",null,[l("label",{for:"modelRepeatPenalty"},"Model Repeat Penalty:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatPenalty","onUpdate:modelValue":e[11]||(e[11]=o=>t.config.model_repeat_penalty=o)},null,512),[[ue,t.config.model_repeat_penalty]])])]),l("tr",null,[e[27]||(e[27]=l("td",null,[l("label",{for:"modelRepeatLastN"},"Model Repeat Last N:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"number",id:"modelRepeatLastN","onUpdate:modelValue":e[12]||(e[12]=o=>t.config.model_repeat_last_n=o)},null,512),[[ue,t.config.model_repeat_last_n]])])]),l("tr",null,[e[28]||(e[28]=l("td",null,[l("label",{for:"recommendedBinding"},"Recommended Binding:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedBinding","onUpdate:modelValue":e[13]||(e[13]=o=>t.config.recommended_binding=o)},null,512),[[ue,t.config.recommended_binding]])])]),l("tr",null,[e[29]||(e[29]=l("td",null,[l("label",{for:"recommendedModel"},"Recommended Model:")],-1)),l("td",null,[k(l("input",{class:"dark:bg-black dark:text-primary w-full",type:"text",id:"recommendedModel","onUpdate:modelValue":e[14]||(e[14]=o=>t.config.recommended_model=o)},null,512),[[ue,t.config.recommended_model]])])]),l("tr",null,[e[30]||(e[30]=l("td",null,[l("label",{class:"dark:bg-black dark:text-primary w-full",for:"dependencies"},"Dependencies:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"dependencies","onUpdate:modelValue":e[15]||(e[15]=o=>t.config.dependencies=o)},null,512),[[ue,t.config.dependencies]])])]),l("tr",null,[e[31]||(e[31]=l("td",null,[l("label",{for:"antiPrompts"},"Anti Prompts:")],-1)),l("td",null,[k(l("textarea",{class:"dark:bg-black dark:text-primary w-full",id:"antiPrompts","onUpdate:modelValue":e[16]||(e[16]=o=>t.config.anti_prompts=o)},null,512),[[ue,t.config.anti_prompts]])])])])])])])])])])):B("",!0)}const MN=st(C_t,[["render",D_t]]),L_t={data(){return{showPopup:!1,webpageUrl:"https://lollms.com/"}},methods:{show(){this.showPopup=!0},hide(){this.showPopup=!1},save_configuration(){ie.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.$store.state.config}).then(n=>{this.isLoading=!1,n.data.status?(this.$store.state.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$store.state.toast.showToast("Configuration change failed.",4,!1)})}}},P_t={key:0,class:"fixed inset-0 flex items-center justify-center z-50"},F_t={class:"popup-container"},U_t=["src"],B_t={class:"checkbox-container"};function G_t(n,e,t,i,s,r){return T(),at(Os,{name:"fade"},{default:Ie(()=>[s.showPopup?(T(),w("div",P_t,[l("div",F_t,[l("button",{onClick:e[0]||(e[0]=(...o)=>r.hide&&r.hide(...o)),class:"close-button"}," X "),l("iframe",{src:s.webpageUrl,class:"iframe-content"},null,8,U_t),l("div",B_t,[k(l("input",{type:"checkbox",id:"startup",class:"styled-checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>this.$store.state.config.show_news_panel=o),onChange:e[2]||(e[2]=(...o)=>r.save_configuration&&r.save_configuration(...o))},null,544),[[He,this.$store.state.config.show_news_panel]]),e[3]||(e[3]=l("label",{for:"startup",class:"checkbox-label"},"Show at startup",-1))])])])):B("",!0)]),_:1})}const NN=st(L_t,[["render",G_t],["__scopeId","data-v-d504dfc9"]]),V_t={props:{href:{type:String,default:"#"},icon:{type:String,required:!0},title:{type:String,default:""}},methods:{onClick(n){this.href==="#"&&(n.preventDefault(),this.$emit("click"))}}},z_t=["href","title"],H_t=["data-feather"];function q_t(n,e,t,i,s,r){return T(),w("a",{href:t.href,onClick:e[0]||(e[0]=(...o)=>r.onClick&&r.onClick(...o)),class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[l("i",{"data-feather":t.icon},null,8,H_t)],8,z_t)}const Y_t=st(V_t,[["render",q_t]]),$_t={props:{href:{type:String,required:!0},icon:{type:String,required:!0},title:{type:String,default:"Visit our social media"}}},W_t=["href","title"],K_t=["data-feather"],j_t={key:1,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Q_t={key:2,class:"w-6 h-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function X_t(n,e,t,i,s,r){return T(),w("a",{href:t.href,target:"_blank",class:"text-2xl hover:text-primary transition duration-150 ease-in-out",title:t.title},[t.icon!=="x"&&t.icon!=="discord"?(T(),w("i",{key:0,"data-feather":t.icon},null,8,K_t)):t.icon==="x"?(T(),w("svg",j_t,e[0]||(e[0]=[l("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)]))):t.icon==="discord"?(T(),w("svg",Q_t,e[1]||(e[1]=[l("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"},null,-1)]))):B("",!0)],8,W_t)}const Z_t=st($_t,[["render",X_t]]),J_t="/assets/fastapi-BQj-rjUJ.png",emt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20127.14%2096.36'%3e%3cg%20id='图层_2'%20data-name='图层%202'%3e%3cg%20id='Discord_Logos'%20data-name='Discord%20Logos'%3e%3cg%20id='Discord_Logo_-_Large_-_White'%20data-name='Discord%20Logo%20-%20Large%20-%20White'%3e%3cpath%20d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",tmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3c/circle%3e%3c/svg%3e",nmt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%3e%3ccircle%20cx='25'%20cy='25'%20r='20'%20fill='none'%20stroke='black'%20stroke-width='3'%3e%3c/circle%3e%3cline%20x1='25'%20y1='30'%20x2='25'%20y2='15'%20style='stroke:black;stroke-width:3'%3e%3canimate%20attributeName='y1'%20values='30;25;30'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3canimate%20attributeName='y2'%20values='15;20;15'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/line%3e%3ccircle%20cx='25'%20cy='35'%20r='3'%20fill='black'%3e%3canimate%20attributeName='cy'%20values='35;30;35'%20dur='1s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/circle%3e%3c/svg%3e",imt="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='Layer%205'%20id='Layer_5'%3e%3cpath%20d='M47,33H17a1,1,0,0,0-1,1c0,9.93,7.18,18,16,18s16-8.07,16-18A1,1,0,0,0,47,33ZM18,35H46a18,18,0,0,1-.67,4H18.71A18,18,0,0,1,18,35ZM26.7,48.8a6.42,6.42,0,0,1,10.6,0,12.3,12.3,0,0,1-10.6,0Zm12.34-1A8.81,8.81,0,0,0,32,44a8.81,8.81,0,0,0-7,3.81A15.56,15.56,0,0,1,19.43,41H44.57A15.56,15.56,0,0,1,39,47.81ZM36,22a1.1,1.1,0,0,1,0-.18,1.17,1.17,0,0,1,.06-.2s0-.05,0-.07a.28.28,0,0,1,.07-.09.71.71,0,0,1,.28-.28s.06-.06.09-.07l10-5a1,1,0,1,1,.9,1.78L39.24,22l8.21,4.11a1,1,0,0,1,.44,1.34A1,1,0,0,1,47,28a.93.93,0,0,1-.45-.11l-10-5h0a1.18,1.18,0,0,1-.28-.22l0-.06a.65.65,0,0,1-.1-.15s0-.05,0-.07a1.17,1.17,0,0,1-.06-.2A1.1,1.1,0,0,1,36,22ZM16.55,26.11,24.76,22l-8.21-4.11a1,1,0,1,1,.9-1.78l10,5s.06.05.09.07a.71.71,0,0,1,.28.28.28.28,0,0,1,.07.09s0,.05,0,.07a1.17,1.17,0,0,1,.06.2.82.82,0,0,1,0,.36,1.17,1.17,0,0,1-.06.2s0,.05,0,.07a.65.65,0,0,1-.1.15.21.21,0,0,0,0,.06,1.18,1.18,0,0,1-.28.22h0l-10,5A.93.93,0,0,1,17,28a1,1,0,0,1-.89-.55A1,1,0,0,1,16.55,26.11ZM60.66,36.45A29.69,29.69,0,0,0,61,32,29,29,0,0,0,3,32a29.69,29.69,0,0,0,.34,4.45,4.65,4.65,0,0,0,2.39,7.82,29,29,0,0,0,52.54,0,4.65,4.65,0,0,0,2.39-7.82ZM4.78,41.58a2.91,2.91,0,0,1-.24-.27A2.62,2.62,0,0,1,4,39.71a.61.61,0,0,1,0-.14,2.58,2.58,0,0,1,.77-1.73,4.38,4.38,0,0,1,.74-.55C7,36.38,10,34.9,12.69,33.67c-1.52,3.3-3.42,7.17-4.17,7.91a2.59,2.59,0,0,1-1.47.72A2.66,2.66,0,0,1,4.78,41.58ZM32,59A27,27,0,0,1,7.92,44.18a4.56,4.56,0,0,0,2-1.18c1.48-1.49,5-9.36,5.66-10.92a1,1,0,0,0-1.32-1.32c-.78.34-3.14,1.39-5.49,2.53-1.29.63-2.58,1.29-3.6,1.88A25.58,25.58,0,0,1,5,32a27,27,0,0,1,54,0,25.58,25.58,0,0,1-.19,3.17c-2.88-1.66-7.88-3.88-9.09-4.41a1,1,0,0,0-1.32,1.32c.69,1.56,4.18,9.43,5.66,10.92a4.56,4.56,0,0,0,2,1.18A27,27,0,0,1,32,59ZM59.46,41.31a2.91,2.91,0,0,1-.24.27A2.66,2.66,0,0,1,57,42.3a2.59,2.59,0,0,1-1.47-.72c-.75-.74-2.65-4.61-4.17-7.91,1.65.76,3.44,1.61,4.91,2.37.91.47,1.7.9,2.26,1.25a4.38,4.38,0,0,1,.74.55A2.58,2.58,0,0,1,60,39.57a.61.61,0,0,1,0,.14A2.62,2.62,0,0,1,59.46,41.31Z'/%3e%3c/g%3e%3c/svg%3e",smt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512.001%20512.001'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath%20d='M256.001,0C114.841,0,0,114.841,0,256.001s114.841,256.001,256.001,256.001S512.001,397.16,512.001,256.001%20S397.16,0,256.001,0z%20M256.001,493.701c-131.069,0-237.702-106.631-237.702-237.7S124.932,18.299,256.001,18.299%20s237.702,106.632,237.702,237.702S387.068,493.701,256.001,493.701z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M371.284,296.658H138.275c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h233.008c5.054,0,9.15-4.097,9.15-9.15%20C380.433,300.754,376.337,296.658,371.284,296.658z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M297.481,330.816h-85.403c-5.054,0-9.15,4.097-9.15,9.15s4.095,9.15,9.15,9.15h85.403c5.054,0,9.15-4.097,9.15-9.15%20S302.534,330.816,297.481,330.816z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M146.725,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20c18.666,0,33.852-15.186,33.852-33.852C180.577,208.168,165.391,192.982,146.725,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M365.275,192.982c-18.666,0-33.852,15.186-33.852,33.852c0,18.666,15.186,33.852,33.852,33.852%20s33.852-15.186,33.852-33.852C399.128,208.168,383.942,192.982,365.275,192.982z'/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cg%3e%3cg%3e%3ccircle%20cx='155.969'%20cy='219.735'%20r='9.15'/%3e%3ccircle%20cx='374.338'%20cy='219.735'%20r='9.15'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",rmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20fill='%23000000'%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20299.92%20299.92'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20d='M293.4,65.2H6.52C2.914,65.2,0,68.114,0,71.72v117.36c0,3.606,2.914,6.52,6.52,6.52h6.52v32.6%20c0,3.606,2.914,6.52,6.52,6.52h260.8c3.606,0,6.52-2.914,6.52-6.52v-32.6h6.52c3.606,0,6.52-2.914,6.52-6.52V71.72%20C299.92,68.114,297.006,65.2,293.4,65.2z%20M273.84,221.68h-19.56H228.2h-26.08h-26.08h-26.08h-26.08H97.8H71.72H45.64H26.08V195.6%20h19.56h26.08H97.8h26.08h26.08h26.08h26.08h26.08h26.08h19.56V221.68z%20M286.88,182.56h-6.52H19.56h-6.52V78.24h273.84V182.56z'/%3e%3cpath%20d='M32.6,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H32.6c-3.606,0-6.52,2.914-6.52,6.52%20V163C26.08,166.606,28.994,169.52,32.6,169.52z%20M39.12,104.32H65.2v52.16H39.12V104.32z'/%3e%3cpath%20d='M97.8,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H97.8c-3.606,0-6.52,2.914-6.52,6.52%20V163C91.28,166.606,94.194,169.52,97.8,169.52z%20M104.32,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M163,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H163c-3.606,0-6.52,2.914-6.52,6.52%20V163C156.48,166.606,159.394,169.52,163,169.52z%20M169.52,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M228.2,169.52h39.12c3.606,0,6.52-2.914,6.52-6.52V97.8c0-3.606-2.914-6.52-6.52-6.52H228.2%20c-3.606,0-6.52,2.914-6.52,6.52V163C221.68,166.606,224.594,169.52,228.2,169.52z%20M234.72,104.32h26.08v52.16h-26.08V104.32z'/%3e%3cpath%20d='M52.16,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C49.246,221.68,52.16,218.766,52.16,215.16z'/%3e%3cpath%20d='M78.24,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C75.326,221.68,78.24,218.766,78.24,215.16z'/%3e%3cpath%20d='M104.32,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C101.406,221.68,104.32,218.766,104.32,215.16z'/%3e%3cpath%20d='M130.4,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C127.486,221.68,130.4,218.766,130.4,215.16z'/%3e%3cpath%20d='M156.48,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52s-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20S156.48,218.766,156.48,215.16z'/%3e%3cpath%20d='M182.56,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C179.646,221.68,182.56,218.766,182.56,215.16z'/%3e%3cpath%20d='M208.64,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C205.726,221.68,208.64,218.766,208.64,215.16z'/%3e%3cpath%20d='M234.72,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C231.806,221.68,234.72,218.766,234.72,215.16z'/%3e%3cpath%20d='M260.8,215.16v-13.04c0-3.606-2.914-6.52-6.52-6.52c-3.606,0-6.52,2.914-6.52,6.52v13.04c0,3.606,2.914,6.52,6.52,6.52%20C257.886,221.68,260.8,218.766,260.8,215.16z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",omt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='green'%20stroke-width='4'%20fill='green'%20/%3e%3cpath%20stroke='white'%20stroke-width='4'%20d='M40%2050%20l10%2010%2020%20-20'%20fill='none'%20/%3e%3c/svg%3e",amt="data:image/svg+xml,%3csvg%20width='100'%20height='100'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='50'%20cy='50'%20r='40'%20stroke='red'%20stroke-width='4'%20fill='red'%20/%3e%3cline%20x1='35'%20y1='35'%20x2='65'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3cline%20x1='65'%20y1='35'%20x2='35'%20y2='65'%20stroke='white'%20stroke-width='4'%20/%3e%3c/svg%3e",lmt="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20fill='%23000000'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='800px'%20height='800px'%20viewBox='0%200%20461.759%20461.759'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M0,301.058h147.916v147.919H0V301.058z%20M194.432,448.977H342.35V301.058H194.432V448.977z%20M2.802,257.347h147.916V109.434%20H2.802V257.347z%20M325.476,92.219l-51.603-79.437l-79.441,51.601l51.604,79.437L325.476,92.219z%20M219.337,213.733l71.045,62.663%20l62.66-71.039l-71.044-62.669L219.337,213.733z%20M412.107,57.967l-80.668,49.656l49.652,80.666l80.668-49.65L412.107,57.967z'/%3e%3c/g%3e%3c/svg%3e",cmt="/assets/robot-CQPaMbxU.svg",dmt="/";ie.defaults.baseURL="/";const umt={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{Toast:Qu,UniversalForm:X0},data(){return{bUrl:dmt,isMounted:!1,show:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},mountedPers:{get(){return this.$store.state.mountedPers},set(n){this.$store.commit("setMountedPers",n)}},personalities:{get(){return this.$store.state.personalities},set(n){this.$store.commit("setPersonalities",n)}},mountedPersArr:{get(){return this.$store.state.mountedPersArr},set(n){this.$store.commit("setMountedPers",n)}}},methods:{async handleOnTalk(){const n=this.mountedPers;console.log("pers:",n),this.isGenerating=!0,this.setDiscussionLoading(this.currentDiscussion.id,this.isGenerating);let e=await ie.get("/get_generation_status",{});if(e)if(e.data.status)console.log("Already generating");else{const t=this.$store.state.config.personalities.findIndex(s=>s===n.full_path),i={client_id:this.$store.state.client_id,id:t};e=await ie.post("/select_personality",i),console.log("Generating message from ",e.data.status),Ye.emit("generate_msg_from",{id:-1})}},async remount_personality(){const n=this.mountedPers;if(console.log("Remounting personality ",n),!n)return{status:!1,error:"no personality - mount_personality"};try{console.log("before");const e={client_id:this.$store.state.client_id,category:n.category,folder:n.folder,language:n.language};console.log("after");const t=await ie.post("/remount_personality",e);if(console.log("Remounting personality executed:",t),t)return console.log("Remounting personality res"),this.$store.state.toast.showToast("Personality remounted",4,!0),t.data;console.log("failed remount_personality")}catch(e){console.log(e.message,"remount_personality - settings");return}},onSettingsPersonality(n){try{ie.get("/get_active_personality_settings").then(e=>{e&&(console.log("pers sett",e),e.data&&Object.keys(e.data).length>0?this.$refs.universalForm.showForm(e.data,"Personality settings - "+n.name,"Save changes","Cancel").then(t=>{try{ie.post("/set_active_personality_settings",t).then(i=>{i&&i.data?(console.log("personality set with new settings",i.data),this.$refs.toast.showToast("Personality settings updated successfully!",4,!0)):this.$refs.toast.showToast(`Did not get Personality settings responses.
 `+i,4,!1)})}catch(i){this.$refs.toast.showToast(`Did not get Personality settings responses.
- Endpoint error: `+i.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(Le(()=>{Ve.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await ie.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=K0}}},fmt={class:"relative group/item"},_mt=["src","alt"],mmt={class:"absolute bottom-6 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-1"},hmt={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},gmt={class:"text-xs font-bold"};function bmt(n,e,t,i,s,r){const o=nt("UniversalForm");return T(),w(Be,null,[l("div",fmt,[l("button",{onClick:e[1]||(e[1]=W((...a)=>r.onSettingsPersonality&&r.onSettingsPersonality(...a),["prevent"])),class:"w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:s.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),alt:r.mountedPers.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":n.isActive}])},null,42,_mt)]),l("div",mmt,[l("button",{onClick:e[2]||(e[2]=W(a=>r.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},e[4]||(e[4]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),l("button",{onClick:e[3]||(e[3]=W(a=>r.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},e[5]||(e[5]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)])),l("button",hmt,[l("span",gmt,"+"+$(r.mountedPersArr.length-1),1)])])]),z(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const ON=st(pmt,[["render",bmt]]),ymt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-gradient-to-br from-blue-400 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-hidden"},Emt={class:"absolute inset-0 pointer-events-none overflow-hidden"},vmt={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},Smt={class:"mb-8 w-full"},Tmt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},xmt={class:"w-full max-w-2xl"},Cmt={role:"status",class:"w-full"},wmt={class:"text-xl text-gray-700 dark:text-gray-300"},Rmt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},Amt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},Mmt={class:"logo-container"},Nmt=["src"],Omt={class:"toolbar discussion"},Imt={class:"toolbar-container"},kmt={class:"p-4 flex flex-wrap gap-2 items-center"},Dmt={class:"relative"},Lmt={class:"relative"},Pmt={key:4,title:"Loading..",class:"flex justify-center"},Fmt={key:5,class:"flex justify-center space-x-4"},Umt={key:6,class:"flex flex-col space-y-2"},Bmt={class:"relative inline-block"},Gmt={class:"p-8 m-0 grid grid-cols-4 gap-4 max-h-60 overflow-y-auto custom-scrollbar"},Vmt=["onClick","title"],zmt=["src","alt"],Hmt={class:"absolute -bottom-4 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white rounded-md shadow-md p-1"},qmt=["onClick"],Ymt=["src","title"],$mt={class:"relative inline-block"},Wmt={class:"p-8 m-0 grid grid-cols-4 gap-4 max-h-60 overflow-y-auto custom-scrollbar"},Kmt=["onClick","title"],jmt=["src","alt"],Qmt={class:"absolute -bottom-4 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white rounded-md shadow-md p-1"},Xmt=["onClick"],Zmt=["src","title"],Jmt={class:"relative inline-block"},eht={class:"p-8 m-0 grid grid-cols-4 gap-4 max-h-60 overflow-y-auto custom-scrollbar"},tht=["onClick","title"],nht=["src","alt"],iht={class:"absolute -bottom-4 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-1"},sht=["onClick"],rht=["onClick"],oht=["onClick"],aht={class:"w-auto max-w-md mx-auto p-2"},lht={class:"flex items-center"},cht={class:"relative flex-grow"},dht={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},uht={class:"flex flex-col space-y-2"},pht={key:0},fht={key:1,class:"flex space-x-2"},_ht={key:1,class:"flex space-x-2"},mht={class:"flex space-x-2"},hht={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},ght={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},bht={class:"flex flex-row panels-color"},yht={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},Eht={key:0,class:"relative flex flex-col flex-grow"},vht={class:"container pt-4 pb-50 mb-50 w-full"},Sht={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2 h-[600px]"},Tht={key:0,class:"overflow-y-auto flex-grow pr-2 custom-scrollbar"},xht={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-2"},Cht=["onClick"],wht=["title"],Rht={class:"absolute inset-0 overflow-hidden"},Aht={key:0,class:"flex flex-row items-center justify-center h-10"},Mht={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},Nht={ref:"isolatedContent",class:"h-full"},Oht={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},Iht={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},kht={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},Dht={class:"text-2xl animate-pulse mt-2 text-white"},Lht={id:"app"},Pht="/",Fht={setup(){},data(){return{isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:nmt,animated_info:imt,normal_mode:rmt,fun_mode:smt,is_first_connection:!0,discord:tmt,FastAPI:emt,modelImgPlaceholder:$n,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,lastMessageHtml:"",defaultMessageHtml:`
+ Endpoint error: `+i.message,4,!1)}}):this.$refs.toast.showToast("Personality has no settings",4,!1))})}catch(e){this.$refs.toast.showToast("Could not open personality settings. Endpoint error: "+e.message,4,!1)}},async constructor(){for(Le(()=>{Ve.replace()});this.$store.state.ready===!1;)await new Promise(n=>setTimeout(n,100));this.onReady()},async api_get_req(n){try{const e=await ie.get("/"+n);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - mountedPersonalities");return}},personalityImgPlacehodler(n){n.target.src=K0}}},pmt={class:"relative group/item"},fmt=["src","alt"],_mt={class:"absolute bottom-6 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-1"},mmt={class:"p-1 bg-gray-500 rounded-full text-white hover:bg-gray-600 focus:outline-none ml-1",title:"Show more"},hmt={class:"text-xs font-bold"};function gmt(n,e,t,i,s,r){const o=nt("UniversalForm");return T(),w(Be,null,[l("div",pmt,[l("button",{onClick:e[1]||(e[1]=W((...a)=>r.onSettingsPersonality&&r.onSettingsPersonality(...a),["prevent"])),class:"w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:s.bUrl+r.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>r.personalityImgPlacehodler&&r.personalityImgPlacehodler(...a)),alt:r.mountedPers.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":n.isActive}])},null,42,fmt)]),l("div",_mt,[l("button",{onClick:e[2]||(e[2]=W(a=>r.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Remount"},e[4]||(e[4]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),l("button",{onClick:e[3]||(e[3]=W(a=>r.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},e[5]||(e[5]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)])),l("button",mmt,[l("span",hmt,"+"+$(r.mountedPersArr.length-1),1)])])]),z(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const ON=st(umt,[["render",gmt]]),bmt={key:0,class:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-gradient-to-br from-blue-400 to-purple-100 dark:from-blue-900 dark:to-purple-900 overflow-hidden"},ymt={class:"absolute inset-0 pointer-events-none overflow-hidden"},Emt={class:"flex flex-col items-center text-center max-w-4xl w-full px-4 relative z-10"},vmt={class:"mb-8 w-full"},Smt={class:"bottom-0 text-2xl text-gray-600 dark:text-gray-300 italic"},Tmt={class:"w-full max-w-2xl"},xmt={role:"status",class:"w-full"},Cmt={class:"text-xl text-gray-700 dark:text-gray-300"},wmt={class:"text-2xl font-bold text-blue-600 dark:text-blue-400 mt-2"},Rmt={key:0,class:"relative flex flex-col no-scrollbar shadow-lg min-w-[15rem] max-w-[15rem]"},Amt={class:"logo-container"},Mmt=["src"],Nmt={class:"toolbar discussion"},Omt={class:"toolbar-container"},Imt={class:"p-4 flex flex-wrap gap-2 items-center"},kmt={class:"relative"},Dmt={class:"relative"},Lmt={key:4,title:"Loading..",class:"flex justify-center"},Pmt={key:5,class:"flex justify-center space-x-4"},Fmt={key:6,class:"flex flex-col space-y-2"},Umt={class:"relative inline-block"},Bmt={class:"p-8 m-0 grid grid-cols-4 gap-4 max-h-60 overflow-y-auto custom-scrollbar"},Gmt=["onClick","title"],Vmt=["src","alt"],zmt={class:"absolute -bottom-4 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white rounded-md shadow-md p-1"},Hmt=["onClick"],qmt=["src","title"],Ymt={class:"relative inline-block"},$mt={class:"p-8 m-0 grid grid-cols-4 gap-4 max-h-60 overflow-y-auto custom-scrollbar"},Wmt=["onClick","title"],Kmt=["src","alt"],jmt={class:"absolute -bottom-4 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white rounded-md shadow-md p-1"},Qmt=["onClick"],Xmt=["src","title"],Zmt={class:"relative inline-block"},Jmt={class:"p-8 m-0 grid grid-cols-4 gap-4 max-h-60 overflow-y-auto custom-scrollbar"},eht=["onClick","title"],tht=["src","alt"],nht={class:"absolute -bottom-4 left-0 w-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 bg-white dark:bg-gray-900 rounded-md shadow-md p-1"},iht=["onClick"],sht=["onClick"],rht=["onClick"],oht={class:"w-auto max-w-md mx-auto p-2"},aht={class:"flex items-center"},lht={class:"relative flex-grow"},cht={key:0,class:"w-full p-4 bg-bg-light dark:bg-bg-dark"},dht={class:"flex flex-col space-y-2"},uht={key:0},pht={key:1,class:"flex space-x-2"},fht={key:1,class:"flex space-x-2"},_ht={class:"flex space-x-2"},mht={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},hht={key:1,class:"gap-2 py-2 my-2 hover:shadow-md hover:bg-primary-light dark:hover:bg-primary rounded-md p-2 duration-75 group cursor-pointer"},ght={class:"flex flex-row panels-color"},bht={class:"text-center font-large font-bold text-l drop-shadow-md align-middle"},yht={key:0,class:"relative flex flex-col flex-grow"},Eht={class:"container pt-4 pb-50 mb-50 w-full"},vht={key:0,class:"w-full rounded-lg m-2 shadow-lg hover:border-primary dark:hover:border-primary hover:border-solid hover:border-2 border-2 border-transparent even:bg-bg-light-discussion-odd dark:even:bg-bg-dark-discussion-odd flex flex-col overflow-hidden p-4 pb-2 h-[600px]"},Sht={key:0,class:"overflow-y-auto flex-grow pr-2 custom-scrollbar"},Tht={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-2"},xht=["onClick"],Cht=["title"],wht={class:"absolute inset-0 overflow-hidden"},Rht={key:0,class:"flex flex-row items-center justify-center h-10"},Aht={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-1/2 bg-bg-light-tone dark:bg-bg-dark-tone h-full"},Mht={ref:"isolatedContent",class:"h-full"},Nht={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},Oht={class:"text-2xl animate-pulse mt-2 text-light-text-panel dark:text-dark-text-panel"},Iht={role:"status",class:"fixed m-0 p-2 left-2 bottom-2 min-w-[24rem] max-w-[24rem] h-20 flex flex-col justify-center items-center pb-4 bg-blue-500 rounded-lg shadow-lg z-50 background-a"},kht={class:"text-2xl animate-pulse mt-2 text-white"},Dht={id:"app"},Lht="/",Pht={setup(){},data(){return{isSearching:!1,isPersonalitiesMenuVisible:!1,isModelsMenuVisible:!1,isBindingsMenuVisible:!1,isMenuVisible:!1,isNavMenuVisible:!1,static_info:tmt,animated_info:nmt,normal_mode:smt,fun_mode:imt,is_first_connection:!0,discord:emt,FastAPI:J_t,modelImgPlaceholder:$n,customLanguage:"",rebooting_audio:new Audio("rebooting.wav"),connection_lost_audio:new Audio("connection_lost.wav"),connection_recovered_audio:new Audio("connection_recovered.wav"),database_selectorDialogVisible:!1,progress_visibility:!1,progress_value:0,codeBlockStylesheet:"",sunIcon:document.querySelector(".sun"),moonIcon:document.querySelector(".moon"),userTheme:localStorage.getItem("theme"),systemTheme:window.matchMedia("prefers-color-scheme: dark").matches,lastMessageHtml:"",defaultMessageHtml:`
         <!DOCTYPE html>
         <html lang="en">
         <head>
@@ -302,7 +302,7 @@ If You are using windows, this will install wsl so you need to activate it.
             </div>
         </body>
         </html>       
-            `,memory_icon:omt,active_skills:amt,inactive_skills:lmt,skillsRegistry:cmt,robot:dmt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,isOpen:!1,discussion_id:0}},methods:{handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onPersonalitiesReadyFun(){this.$store.state.personalities_ready=!0},async showBindingHoveredIn(n){this.bindingHoveredIndex=n},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(n){this.modelHoveredIndex=n},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(n){this.personalityHoveredIndex=n},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(n){if(this.hidePersonalitiesMenu(),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=n.language===null?n.full_path:n.full_path+":"+n.language;if(console.log("pers_path",e),console.log("this.$store.state.config.personalities",this.$store.state.config.personalities),this.$store.state.config.personalities.includes(e)){const t=await this.select_personality(n);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality:
+            `,memory_icon:rmt,active_skills:omt,inactive_skills:amt,skillsRegistry:lmt,robot:cmt,posts_headers:{accept:"application/json","Content-Type":"application/json"},host:"",progress_visibility_val:!0,progress_value:0,msgTypes:{MSG_TYPE_CONTENT:1,MSG_TYPE_CONTENT_INVISIBLE_TO_AI:2,MSG_TYPE_CONTENT_INVISIBLE_TO_USER:3},operationTypes:{MSG_OPERATION_TYPE_ADD_CHUNK:0,MSG_OPERATION_TYPE_SET_CONTENT:1,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_AI:2,MSG_OPERATION_TYPE_SET_CONTENT_INVISIBLE_TO_USER:3,MSG_OPERATION_TYPE_EXCEPTION:4,MSG_OPERATION_TYPE_WARNING:5,MSG_OPERATION_TYPE_INFO:6,MSG_OPERATION_TYPE_STEP:7,MSG_OPERATION_TYPE_STEP_START:8,MSG_OPERATION_TYPE_STEP_PROGRESS:9,MSG_OPERATION_TYPE_STEP_END_SUCCESS:10,MSG_OPERATION_TYPE_STEP_END_FAILURE:11,MSG_OPERATION_TYPE_JSON_INFOS:12,MSG_OPERATION_TYPE_REF:13,MSG_OPERATION_TYPE_CODE:14,MSG_OPERATION_TYPE_UI:15,MSG_OPERATION_TYPE_NEW_MESSAGE:16,MSG_OPERATION_TYPE_FINISHED_MESSAGE:17},senderTypes:{SENDER_TYPES_USER:0,SENDER_TYPES_AI:1,SENDER_TYPES_SYSTEM:2},list:[],tempList:[],currentDiscussion:{},discussionArr:[],loading:!1,filterTitle:"",filterInProgress:!1,isCreated:!1,isCheckbox:!1,isSelectAll:!1,showSaveConfirmation:!1,showBrainConfirmation:!1,showConfirmation:!1,chime:new Audio("chime_aud.wav"),showToast:!1,isDiscussionBottom:!1,personalityAvatars:[],fileList:[],database_selectorDialogVisible:!1,isDragOverDiscussion:!1,isDragOverChat:!1,isOpen:!1,discussion_id:0}},methods:{handleOnTalk(n){console.log("talking"),this.showPersonalities=!1,this.$store.state.toast.showToast(`Personality ${n.name} is Talking`,4,!0),this.onTalk(n)},onPersonalitiesReadyFun(){this.$store.state.personalities_ready=!0},async showBindingHoveredIn(n){this.bindingHoveredIndex=n},async showBindingHoveredOut(){this.bindingHoveredIndex=null},async showModelHoveredIn(n){this.modelHoveredIndex=n},async showModelHoveredOut(){this.modelHoveredIndex=null},async showPersonalityHoveredIn(n){this.personalityHoveredIndex=n},async showPersonalityHoveredOut(){this.personalityHoveredIndex=null},async onPersonalitySelected(n){if(this.hidePersonalitiesMenu(),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0);return}const e=n.language===null?n.full_path:n.full_path+":"+n.language;if(console.log("pers_path",e),console.log("this.$store.state.config.personalities",this.$store.state.config.personalities),this.$store.state.config.personalities.includes(e)){const t=await this.select_personality(n);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshMountedPersonalities"),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage"),await this.$store.dispatch("fetchisRTOn"),console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality:
 `+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality:
 `+n.name,4,!1)}else console.log("mounting pers");this.$emit("personalitySelected"),Le(()=>{Ve.replace()})}},async select_personality(n){if(!n)return{status:!1,error:"no personality - select_personality"};const e=n.language===null?n.full_path:n.full_path+":"+n.language;console.log("Selecting personality ",e);const t=this.$store.state.config.personalities.findIndex(s=>s===e),i={client_id:this.$store.state.client_id,id:t};try{const s=await ie.post("/select_personality",i);if(s)return this.$store.dispatch("refreshConfig").then(()=>{this.$store.dispatch("refreshPersonalitiesZoo").then(()=>{this.$store.dispatch("refreshMountedPersonalities")})}),s.data}catch(s){console.log(s.message,"select_personality - settings");return}},showPersonalitiesMenu(){clearTimeout(this.hideMenuTimeout),this.isPersonalitiesMenuVisible=!0},hidePersonalitiesMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isPersonalitiesMenuVisible=!1},300)},copyModelName(){navigator.clipboard.writeText(this.binding_name+"::"+this.model_name),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},copyModelNameFrom(n){navigator.clipboard.writeText(this.binding_name+"::"+n),this.$store.state.toast.showToast("Model name copyed to clipboard: "+this.binding_name+"::"+this.model_name,4,!0)},showBindingsMenu(){clearTimeout(this.hideBindingsMenuTimeout),this.isBindingsMenuVisible=!0},hideBindingsMenu(){this.hideBindingsMenuTimeout=setTimeout(()=>{this.isBindingsMenuVisible=!1},300)},setBinding(n){console.log("Setting binding to "+n.name),this.selecting_binding=!0,this.selectedBinding=n,this.$store.state.messageBox.showBlockingMessage("Loading binding"),ie.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"binding_name",setting_value:n.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshBindings"),await this.$store.dispatch("refreshModelsZoo"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,!0),this.selecting_binding=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_binding=!1})},showModelsMenu(){clearTimeout(this.hideModelsMenuTimeout),this.isModelsMenuVisible=!0},hideModelsMenu(){this.hideModelsMenuTimeout=setTimeout(()=>{this.isModelsMenuVisible=!1},300)},setModel(n){console.log("Setting model to "+n.name),this.selecting_model=!0,this.selectedModel=n,this.$store.state.messageBox.showBlockingMessage("Loading model"),ie.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:n.name}).then(async e=>{this.$store.state.messageBox.hideMessage(),console.log("UPDATED"),console.log(e),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshModels"),this.$store.state.toast.showToast(`Model changed to ${this.currentModel.name}`,4,!0),this.selecting_model=!1}).catch(e=>{this.$store.state.messageBox.hideMessage(),this.$store.state.toast.showToast(`Error ${e}`,4,!0),this.selecting_model=!1})},showModelConfig(){try{this.isLoading=!0,ie.get("/get_active_binding_settings").then(n=>{this.isLoading=!1,n&&(console.log("binding sett",n),n.data&&Object.keys(n.data).length>0?this.$refs.universalForm.showForm(n.data,"Binding settings ","Save changes","Cancel").then(e=>{try{ie.post("/set_active_binding_settings",{client_id:this.$store.state.client_id,settings:e}).then(t=>{t&&t.data?(console.log("binding set with new settings",t.data),this.$store.state.toast.showToast("Binding settings updated successfully!",4,!0)):(this.$store.state.toast.showToast(`Did not get binding settings responses.
 `+t,4,!1),this.isLoading=!1)})}catch(t){this.$store.state.toast.showToast(`Did not get binding settings responses.
@@ -321,15 +321,15 @@ ${e}
 
 ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);this.$store.state.toast.showToast("Copied to clipboard successfully",4,!0),Le(()=>{Ve.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(n,e){e=e||"data.json";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n,null,2)],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},saveMarkdowntoFile(n,e){e=e||"data.md";const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([n],{type:"text/plain"})),t.setAttribute("download",e),document.body.appendChild(t),t.click(),document.body.removeChild(t)},parseJsonObj(n){try{return JSON.parse(n)}catch(e){return this.$store.state.toast.showToast(`Could not parse JSON. 
 `+e.message,4,!1),null}},async parseJsonFile(n){return new Promise((e,t)=>{const i=new FileReader;i.onload=s=>e(this.parseJsonObj(s.target.result)),i.onerror=s=>t(s),i.readAsText(n)})},async exportDiscussionsAsMarkdown(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+i+"."+s+"."+r+o+a)+".md";this.loading=!0;const u=await this.export_multiple_discussions(n,"markdown");u?(this.saveMarkdowntoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async exportDiscussions(){},async exportDiscussionsAsJson(){const n=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(n.length>0){console.log("export",n);let e=new Date;const t=e.getFullYear(),i=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),d="discussions_export_"+(t+"."+i+"."+s+"."+r+o+a)+".json";this.loading=!0;const u=await this.export_multiple_discussions(n,"json");u?(this.saveJSONtoFile(u,d),this.$store.state.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$store.state.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussionsBundle(n){},async importDiscussions(n){const e=await this.parseJsonFile(n.target.files[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){for(;this.$store.state.personalities===null;)await new Promise(e=>setTimeout(e,100));let n=this.$store.state.personalities;this.personalityAvatars=n.map(e=>({name:e.name,avatar:e.avatar}))},getAvatar(n){if(n.toLowerCase().trim()==this.$store.state.config.user_name.toLowerCase().trim())return"user_infos/"+this.$store.state.config.user_avatar;const e=this.personalityAvatars.findIndex(i=>i.name===n),t=this.personalityAvatars[e];if(t)return console.log("Avatar",t.avatar),t.avatar},setFileListChat(n){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(n)}catch(e){this.$store.state.toast.showToast(`Failed to set filelist in chatbox
-`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){console.log("Created discussions view");const e=(await ie.get("/get_versionID")).data.versionId;Ye.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ve.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";Ye.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=Ye.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=Ye.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,Ye.on("connected",this.socketIOConnected),Ye.on("disconnected",this.socketIODisconnected),console.log("Added events"),Ye.on("show_progress",this.show_progress),Ye.on("hide_progress",this.hide_progress),Ye.on("update_progress",this.update_progress),Ye.on("notification",this.notify),Ye.on("new_message",this.new_message),Ye.on("update_message",this.update_message),Ye.on("close_message",this.finalMsgEvent),Ye.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const i=this.list.findIndex(r=>r.id==t.discussion_id),s=this.list[i];s.title=t.title}),Ye.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ye.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),Ye.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ye.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Le(()=>{Ve.replace()}),window.addEventListener("resize",this.adjustMenuPosition),Ye.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{Ve.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Le(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Q0,Message:fN,ChatBox:_N,WelcomeComponent:mN,ChoiceDialog:j0,ProgressBar:_u,InputBox:dN,SkillsLibraryViewer:uN,Toast:Qu,MessageBox:RN,ProgressBar:_u,UniversalForm:X0,YesNoDialog:AN,PersonalityEditor:MN,PopupViewer:NN,ActionButton:$_t,SocialIcon:J_t,MountedPersonalities:ON},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Le(()=>{Ve.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Le(()=>{Ve.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Le(()=>{Ve.replace()})}},computed:{currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Bi:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Bi},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...pL({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){console.log("personality:",this.$store.state.config.personalities[this.$store.state.config.active_personality_id]);const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];console.log("peronslities",this.$store.state.personalities[0]);const e=this.$store.state.personalities.find(t=>t.full_path===n);return console.log("personality:",e),e},prompts_list(){return console.log(this.personality.prompts_list),this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return Ye.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Le(()=>{Ve.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},Uht=Object.assign(Fht,{__name:"DiscussionsView",setup(n){return cs(()=>{wN()}),ie.defaults.baseURL="/",(e,t)=>(T(),w(Be,null,[z(Os,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?B("",!0):(T(),w("div",ymt,[l("div",Emt,[(T(),w(Be,null,Xe(50,i=>l("div",{key:i,class:"absolute animate-fall animate-giggle",style:Wt({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})}," 🌟 ",4)),64))]),l("div",vmt,[l("div",Smt,[t[45]||(t[45]=l("div",{class:"text-6xl md:text-7xl font-bold text-amber-500 mb-2",style:{"text-shadow":"2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white"}}," L🌟LLMS ",-1)),t[46]||(t[46]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[47]||(t[47]=l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),l("p",Tmt,$(e.version_info),1),t[48]||(t[48]=l("div",{class:"w-full h-24 relative overflow-hidden bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded-full shadow-lg flex items-center justify-center"},[l("p",{style:{"font-size":"48px","line-height":"1"}},"🌟")],-1))]),l("div",xmt,[l("div",Cmt,[l("p",wmt,$(e.loading_infos)+"... ",1),l("p",Rmt,$(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),z(Os,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),w("div",Amt,[z(yt(u0),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",Mmt,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?yt(Bi):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:yt(Bi),alt:"Logo",title:"LoLLMS WebUI"},null,8,Nmt)]),t[49]||(t[49]=l("div",{class:"flex flex-col justify-center"},[l("div",{class:"text-6xl md:text-2xl font-bold text-amber-500 mb-2",style:{"text-shadow":"2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white"}}," L🌟LLMS "),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),l("div",Omt,[l("div",Imt,[l("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[0]||(t[0]=(...i)=>e.createNewDiscussion&&e.createNewDiscussion(...i))},t[50]||(t[50]=[l("i",{"data-feather":"plus"},null,-1)])),e.loading?B("",!0):(T(),w("div",{key:0,class:"toolbar-button",onMouseleave:t[18]||(t[18]=(...i)=>e.hideMenu&&e.hideMenu(...i))},[k(l("div",{onMouseenter:t[16]||(t[16]=(...i)=>e.showMenu&&e.showMenu(...i)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",kmt,[l("button",{class:Ue(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[1]||(t[1]=i=>e.isCheckbox=!e.isCheckbox)},t[51]||(t[51]=[l("i",{"data-feather":"check-square"},null,-1)]),2),l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[2]||(t[2]=W(()=>{},["stop"]))},t[52]||(t[52]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[3]||(t[3]=W(i=>e.database_selectorDialogVisible=!0,["stop"]))},t[53]||(t[53]=[l("i",{"data-feather":"database"},null,-1)])),l("div",Dmt,[l("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[4]||(t[4]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[5]||(t[5]=W(i=>e.$refs.fileDialog.click(),["stop"]))},t[54]||(t[54]=[l("i",{"data-feather":"log-in"},null,-1)]))]),l("div",Lmt,[l("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[6]||(t[6]=(...i)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...i))},null,544),e.showSaveConfirmation?B("",!0):(T(),w("button",{key:0,title:"Import discussion bundle",onClick:t[7]||(t[7]=W(i=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[55]||(t[55]=[l("i",{"data-feather":"folder"},null,-1)])))]),e.loading?B("",!0):(T(),w("button",{key:0,type:"button",onClick:t[8]||(t[8]=W((...i)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...i),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[56]||(t[56]=[l("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),w("button",{key:1,type:"button",onClick:t[9]||(t[9]=W((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[57]||(t[57]=[l("i",{"data-feather":"check-circle"},null,-1)]))):B("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),w("button",{key:2,type:"button",onClick:t[10]||(t[10]=W((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[58]||(t[58]=[l("i",{"data-feather":"x-octagon"},null,-1)]))):B("",!0),e.loading?B("",!0):(T(),w("button",{key:3,type:"button",onClick:t[11]||(t[11]=W((...i)=>e.showSkillsLib&&e.showSkillsLib(...i),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[59]||(t[59]=[l("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),w("div",Pmt,t[60]||(t[60]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),e.showSaveConfirmation?(T(),w("div",Fmt,[l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[12]||(t[12]=W(i=>e.showSaveConfirmation=!1,["stop"]))},t[61]||(t[61]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[13]||(t[13]=W(i=>e.save_configuration(),["stop"]))},t[62]||(t[62]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),e.isOpen?(T(),w("div",Umt,[l("button",{onClick:t[14]||(t[14]=(...i)=>e.importDiscussions&&e.importDiscussions(...i)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),l("button",{onClick:t[15]||(t[15]=(...i)=>e.importChatGPT&&e.importChatGPT(...i)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):B("",!0)])],544),[[_t,e.isMenuVisible]]),l("div",{onMouseenter:t[17]||(t[17]=(...i)=>e.showMenu&&e.showMenu(...i)),class:"menu-hover-area"},t[63]||(t[63]=[l("button",{class:"w-8 h-8",title:"Toggle menu"},[l("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?B("",!0):(T(),w("div",{key:1,class:"toolbar-button",onMouseleave:t[23]||(t[23]=(...i)=>e.hideBindingsMenu&&e.hideBindingsMenu(...i))},[l("div",Bmt,[k(l("div",{onMouseenter:t[20]||(t[20]=(...i)=>e.showBindingsMenu&&e.showBindingsMenu(...i)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-60 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Gmt,[(T(!0),w(Be,null,Xe(e.installedBindings,(i,s)=>(T(),w("div",{key:s,class:"relative group/item"},[l("button",{onClick:W(r=>e.setBinding(i),["prevent"]),title:i.name,class:"w-10 h-10 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:i.icon?i.icon:yt($n),onError:t[19]||(t[19]=(...r)=>yt($n)&&yt($n)(...r)),alt:i.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":i.name==e.binding_name}])},null,42,zmt)],8,Vmt),l("div",Hmt,[l("button",{onClick:W(r=>e.showModelConfig(i),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[64]||(t[64]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,qmt)])]))),128))])],544),[[_t,e.isBindingsMenuVisible]]),l("div",{onMouseenter:t[22]||(t[22]=(...i)=>e.showBindingsMenu&&e.showBindingsMenu(...i)),class:"bindings-hover-area"},[l("button",{onClick:t[21]||(t[21]=W(i=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,Ymt)])],32)])],32)),e.loading?B("",!0):(T(),w("div",{key:2,class:"toolbar-button",onMouseleave:t[28]||(t[28]=(...i)=>e.hideModelsMenu&&e.hideModelsMenu(...i))},[l("div",$mt,[k(l("div",{onMouseenter:t[25]||(t[25]=(...i)=>e.showModelsMenu&&e.showModelsMenu(...i)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-60 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Wmt,[(T(!0),w(Be,null,Xe(e.installedModels,(i,s)=>(T(),w("div",{key:s,class:"relative group/item"},[l("button",{onClick:W(r=>e.setModel(i),["prevent"]),title:i.name,class:"w-10 h-10 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:i.icon?i.icon:yt($n),onError:t[24]||(t[24]=(...r)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...r)),alt:i.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":i.name==e.model_name}])},null,42,jmt)],8,Kmt),l("div",Qmt,[l("button",{onClick:W(r=>e.copyModelNameFrom(i.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[65]||(t[65]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Xmt)])]))),128))])],544),[[_t,e.isModelsMenuVisible]]),l("div",{onMouseenter:t[27]||(t[27]=(...i)=>e.showModelsMenu&&e.showModelsMenu(...i)),class:"models-hover-area"},[l("button",{onClick:t[26]||(t[26]=W(i=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,Zmt)])],32)])],32)),e.loading?B("",!0):(T(),w("div",{key:3,class:"toolbar-button",onMouseleave:t[32]||(t[32]=(...i)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...i))},[l("div",Jmt,[k(l("div",{onMouseenter:t[30]||(t[30]=(...i)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...i)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-60 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",eht,[(T(!0),w(Be,null,Xe(e.mountedPersonalities,(i,s)=>(T(),w("div",{key:s,class:"relative group/item"},[l("button",{onClick:W(r=>e.onPersonalitySelected(i),["prevent"]),title:i.name,class:"w-10 h-10 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:yt(Pht)+i.avatar,onError:t[29]||(t[29]=(...r)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...r)),alt:i.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(i.full_path)}])},null,42,nht)],8,tht),l("div",iht,[l("button",{onClick:W(r=>e.unmountPersonality(i),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[66]||(t[66]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,sht),l("button",{onClick:W(r=>e.remount_personality(i),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none ml-1",title:"Remount"},t[67]||(t[67]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,rht),l("button",{onClick:W(r=>e.handleOnTalk(i),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},t[68]||(t[68]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,oht)])]))),128))])],544),[[_t,e.isPersonalitiesMenuVisible]]),l("div",{onMouseenter:t[31]||(t[31]=(...i)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...i)),class:"personalities-hover-area"},[z(ON,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),l("div",aht,[l("form",{onSubmit:t[35]||(t[35]=W((...i)=>e.handleSearch&&e.handleSearch(...i),["prevent"])),class:"relative"},[l("div",lht,[l("div",cht,[k(l("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[33]||(t[33]=i=>e.filterTitle=i),onKeyup:t[34]||(t[34]=wi((...i)=>e.handleSearch&&e.handleSearch(...i),["enter"]))},null,544),[[ue,e.filterTitle]]),t[69]||(t[69]=l("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[l("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[70]||(t[70]=l("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[l("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),w("div",dht,[l("div",uht,[e.selectedDiscussions.length>0?(T(),w("p",pht,"Selected: "+$(e.selectedDiscussions.length),1)):B("",!0),e.selectedDiscussions.length>0?(T(),w("div",fht,[e.showConfirmation?B("",!0):(T(),w("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[36]||(t[36]=W(i=>e.showConfirmation=!0,["stop"]))},t[71]||(t[71]=[l("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),w("div",_ht,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[37]||(t[37]=W((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},t[72]||(t[72]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[38]||(t[38]=W(i=>e.showConfirmation=!1,["stop"]))},t[73]||(t[73]=[l("i",{"data-feather":"x"},null,-1)]))])):B("",!0)])):B("",!0),l("div",mht,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[39]||(t[39]=W((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},t[74]||(t[74]=[l("i",{"data-feather":"codepen"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[40]||(t[40]=W((...i)=>e.exportDiscussions&&e.exportDiscussions(...i),["stop"]))},t[75]||(t[75]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[41]||(t[41]=W((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},t[76]||(t[76]=[l("i",{"data-feather":"bookmark"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[42]||(t[42]=W((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},t[77]||(t[77]=[l("i",{"data-feather":"list"},null,-1)]))])])])):B("",!0),l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[43]||(t[43]=W(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",hht,[l("div",{class:Ue(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Ue([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),at(Is,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(e.list,(i,s)=>(T(),at(Q0,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:r=>e.selectDiscussion(i),onDelete:r=>e.deleteDiscussion(i.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0),e.list.length<1?(T(),w("div",ght,t[78]||(t[78]=[l("p",{class:"px-3"},"No discussions are found",-1)]))):B("",!0),t[79]||(t[79]=l("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),l("div",bht,[l("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[44]||(t[44]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[l("p",yht,$(e.formatted_database_name.replace("_"," ")),1)])])])):B("",!0)]),_:1}),e.isReady?(T(),w("div",Eht,[l("div",{id:"messages-list",class:Ue(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",vht,[e.discussionArr.length>0?(T(),at(Is,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(e.discussionArr,(i,s)=>(T(),at(fN,{key:i.id,message:i,id:"msg-"+i.id,ref_for:!0,ref:"msg-"+i.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),w("div",Sht,[t[82]||(t[82]=l("h2",{class:"text-2xl font-bold mb-4"},"Prompt examples",-1)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),w("div",Tht,[l("div",xht,[(T(!0),w(Be,null,Xe(e.personality.prompts_list,(i,s)=>(T(),w("div",{key:s,onClick:r=>e.selectPrompt(i),class:"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-4 cursor-pointer hover:shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between h-[220px] overflow-hidden group"},[l("div",{title:i,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden relative h-full"},[l("div",Rht,$(i),1),t[80]||(t[80]=l("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white dark:to-gray-800 group-hover:opacity-0 transition-opacity duration-300"},null,-1))],8,wht),t[81]||(t[81]=l("div",{class:"mt-2 text-sm text-gray-500 dark:text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,Cht))),128))])])):B("",!0)])):B("",!0)]),_:1})):B("",!0),e.currentDiscussion.id?B("",!0):(T(),at(mN,{key:1})),t[83]||(t[83]=l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1))]),t[84]||(t[84]=l("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),w("div",Aht,[z(_N,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):B("",!0)])):B("",!0),z(Os,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),w("div",Mht,[l("div",Nht,null,512)])):B("",!0)]),_:1}),z(j0,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),k(l("div",Oht,[z(_u,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",Iht,$(e.loading_infos)+" ...",1)],512),[[_t,e.progress_visibility]]),z(dN,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),z(uN,{ref:"skills_lib"},null,512),z(Qu,{ref:"toast"},null,512),z(RN,{ref:"messageBox"},null,512),k(l("div",kht,[z(_u,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",Dht,$(e.loading_infos)+" ...",1)],512),[[_t,e.progress_visibility]]),z(X0,{ref:"universalForm",class:"z-20"},null,512),z(AN,{ref:"yesNoDialog",class:"z-20"},null,512),z(MN,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",Lht,[z(NN,{ref:"news"},null,512)])],64))}}),Bht=st(Uht,[["__scopeId","data-v-ab654f46"]]);/**
+`+e.message,4,!1)}this.isDragOverChat=!1},async setFileListDiscussion(n){if(n.length>1){this.$store.state.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(n[0]);await this.import_multiple_discussions(e)?(this.$store.state.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$store.state.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1}},async created(){console.log("Created discussions view");const e=(await ie.get("/get_versionID")).data.versionId;Ye.onopen=()=>{console.log("WebSocket connection established."),this.currentDiscussion!=null&&(this.setPageTitle(item),localStorage.setItem("selected_discussion",this.currentDiscussion.id),this.load_discussion(item.id,()=>{this.discussionArr.length>1&&(this.currentDiscussion.title===""||this.currentDiscussion.title===null)&&this.changeTitleUsingUserMSG(this.currentDiscussion.id,this.discussionArr[1].content)}))},this.versionId!==e&&(this.$store.commit("updateVersionId",e),window.location.reload(!0)),this.$nextTick(()=>{Ve.replace()}),console.log("Connected to socket io");try{this.$store.state.loading_infos="Getting version",this.$store.state.loading_progress=30,await this.$store.dispatch("getVersion")}catch(t){console.log("Error cought:",t)}try{for(this.$store.state.loading_infos="Loading Configuration";Ye.id===void 0;)await new Promise(t=>setTimeout(t,100));this.$store.state.client_id=Ye.id,console.log(this.$store.state.client_id),await this.$store.dispatch("refreshConfig"),console.log("Config ready")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Loading Database",this.$store.state.loading_progress=20,await this.$store.dispatch("refreshDatabase")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting Bindings list",this.$store.state.loading_progress=40,await this.$store.dispatch("refreshBindings")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting personalities zoo",this.$store.state.loading_progress=70,await this.$store.dispatch("refreshPersonalitiesZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting mounted personalities",this.$store.state.loading_progress=80,await this.$store.dispatch("refreshMountedPersonalities")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting models zoo",this.$store.state.loading_progress=90,await this.$store.dispatch("refreshModelsZoo")}catch(t){console.log("Error cought:",t)}try{this.$store.state.loading_infos="Getting active models",this.$store.state.loading_progress=100,await this.$store.dispatch("refreshModels"),await this.$store.dispatch("refreshModelStatus")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchLanguages"),await this.$store.dispatch("fetchLanguage")}catch(t){console.log("Error cought:",t)}try{await this.$store.dispatch("fetchisRTOn")}catch(t){console.log("Error cought:",t)}this.$store.state.isConnected=!0,this.$store.state.client_id=Ye.id,console.log("Ready"),this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,this.$store.state.ready=!0,Ye.on("connected",this.socketIOConnected),Ye.on("disconnected",this.socketIODisconnected),console.log("Added events"),Ye.on("show_progress",this.show_progress),Ye.on("hide_progress",this.hide_progress),Ye.on("update_progress",this.update_progress),Ye.on("notification",this.notify),Ye.on("new_message",this.new_message),Ye.on("update_message",this.update_message),Ye.on("close_message",this.finalMsgEvent),Ye.on("disucssion_renamed",t=>{console.log("Received new title",t.discussion_id,t.title);const i=this.list.findIndex(r=>r.id==t.discussion_id),s=this.list[i];s.title=t.title}),Ye.onclose=t=>{console.log("WebSocket connection closed:",t.code,t.reason),this.socketIODisconnected()},Ye.on("connect_error",t=>{t.message==="ERR_CONNECTION_REFUSED"?console.error("Connection refused. The server is not available."):console.error("Connection error:",t),this.$store.state.isConnected=!1}),Ye.onerror=t=>{console.log("WebSocket connection error:",t.code,t.reason),this.socketIODisconnected(),Ye.disconnect()}},beforeUnmount(){window.removeEventListener("resize",this.adjustMenuPosition)},async mounted(){window.addEventListener("keydown",this.handleShortcut),this.$store.state.toast=this.$refs.toast,this.$store.state.news=this.$refs.news,this.$store.state.messageBox=this.$refs.messageBox,this.$store.state.universalForm=this.$refs.universalForm,this.$store.state.yesNoDialog=this.$refs.yesNoDialog,this.$store.state.personality_editor=this.$refs.personality_editor,this.sunIcon=document.querySelector(".sun"),this.moonIcon=document.querySelector(".moon"),this.userTheme=localStorage.getItem("theme"),this.systemTheme=window.matchMedia("prefers-color-scheme: dark").matches,this.themeCheck(),Le(()=>{Ve.replace()}),window.addEventListener("resize",this.adjustMenuPosition),Ye.on("refresh_files",()=>{this.recoverFiles()}),this.$nextTick(()=>{Ve.replace()})},async activated(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));await this.getPersonalityAvatars(),console.log("Avatars found:",this.personalityAvatars),this.isCreated&&Le(()=>{const n=document.getElementById("messages-list");this.scrollBottom(n)}),this.$store.state.config.show_news_panel&&this.$store.state.news.show()},components:{Discussion:Q0,Message:fN,ChatBox:_N,WelcomeComponent:mN,ChoiceDialog:j0,ProgressBar:_u,InputBox:dN,SkillsLibraryViewer:uN,Toast:Qu,MessageBox:RN,ProgressBar:_u,UniversalForm:X0,YesNoDialog:AN,PersonalityEditor:MN,PopupViewer:NN,ActionButton:Y_t,SocialIcon:Z_t,MountedPersonalities:ON},watch:{installedModels:{immediate:!0,handler(n){this.$nextTick(()=>{this.installedModels=n})}},"$store.state.config.fun_mode":function(n,e){console.log(`Fun mode changed from ${e} to ${n}! 🎉`)},"$store.state.isConnected":function(n,e){this.isConnected?(console.log("this.is_first_connection"),console.log(this.is_first_connection),this.is_first_connection||(this.$store.state.messageBox.hideMessage(),this.$store.state.messageBox.showMessage("Server connected."),this.$store.state.config.activate_audio_infos&&this.connection_recovered_audio.play())):(this.$store.state.messageBox.showBlockingMessage("Server suddenly disconnected. Please reboot the server to recover the connection"),this.is_first_connection=!1,console.log("this.is_first_connection set to false"),console.log(this.is_first_connection),this.$store.state.config.activate_audio_infos&&this.connection_lost_audio.play()),Le(()=>{Ve.replace()})},messages:{handler:"extractHtml",deep:!0},progress_visibility_val(n){console.log("progress_visibility changed to "+n)},filterTitle(n){n==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(n){Le(()=>{Ve.replace()}),n||(this.isSelectAll=!1)},socketConnected(n){console.log("Websocket connected (watch)",n)},showConfirmation(){Le(()=>{Ve.replace()})}},computed:{currentModel(){return this.$store.state.currentModel||{}},currentModelIcon(){return this.currentModel.icon||this.modelImgPlaceholder},binding_name(){return this.$store.state.config.binding_name},installedModels(){return this.$store.state.installedModels},model_name(){return this.$store.state.config.model_name},mountedPersonalities(){return this.$store.state.mountedPersArr},personality_name(){return this.$store.state.config.active_personality_id},config(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},installedBindings(){return this.$store.state.installedBindings},currentBindingIcon(){return this.currentBinding.icon||this.modelImgPlaceholder},currentBinding(){return this.$store.state.currentBinding||{}},isFullMode(){return this.$store.state.view_mode==="full"},storeLogo(){return this.$store.state.config?Bi:this.$store.state.config.app_custom_logo!=""?"/user_infos/"+this.$store.state.config.app_custom_logo:Bi},currentPersonConfig(){try{return this.$store.state.currentPersonConfig}catch{console.log("Error finding current personality configuration");return}},selectedPersonality(){try{return this.$store.state.selectedPersonality}catch{console.log("Error finding current personality configuration");return}},loading_infos(){return this.$store.state.loading_infos},is_fun_mode(){try{return this.$store.state.config?this.$store.state.config.fun_mode:!1}catch(n){return console.error("Oopsie! Looks like we hit a snag: ",n),!1}},isModelOK(){return this.$store.state.isModelOk},isGenerating(){return this.$store.state.isGenerating},isConnected(){return this.$store.state.isConnected},...pL({versionId:n=>n.versionId}),progress_visibility:{get(){return self.progress_visibility_val}},version_info:{get(){return this.$store.state.version!=null&&this.$store.state.version!="unknown"?this.$store.state.version:"..."}},loading_infos:{get(){return this.$store.state.loading_infos}},loading_progress:{get(){return this.$store.state.loading_progress}},isModelOk:{get(){return this.$store.state.isModelOk},set(n){this.$store.state.isModelOk=n}},isGenerating:{get(){return this.$store.state.isGenerating},set(n){this.$store.state.isGenerating=n}},personality(){console.log("personality:",this.$store.state.config.personalities[this.$store.state.config.active_personality_id]);const n=this.$store.state.config.personalities[this.$store.state.config.active_personality_id];console.log("peronslities",this.$store.state.personalities[0]);const e=this.$store.state.personalities.find(t=>t.full_path===n);return console.log("personality:",e),e},prompts_list(){return console.log(this.personality.prompts_list),this.personality.prompts_list},formatted_database_name(){return this.$store.state.config.discussion_db_name},UseDiscussionHistory(){return this.$store.state.config.activate_skills_lib},isReady(){return this.$store.state.ready},databases(){return this.$store.state.databases},client_id(){return Ye.id},showLeftPanel(){return console.log("showLeftPanel"),console.log(this.$store.state.leftPanelCollapsed),this.$store.state.ready&&!this.$store.state.leftPanelCollapsed},showRightPanel(){return console.log("showRightPanel"),console.log(this.$store.state.rightPanelCollapsed),this.$store.state.ready&&!this.$store.state.rightPanelCollapsed},socketConnected(){return console.log(" --- > Websocket connected"),this.$store.commit("setIsConnected",!0),!0},socketDisconnected(){return this.$store.commit("setIsConnected",!1),console.log(" --- > Websocket disconnected"),!0},selectedDiscussions(){return Le(()=>{Ve.replace()}),this.list.filter(n=>n.checkBoxValue==!0)}}},Fht=Object.assign(Pht,{__name:"DiscussionsView",setup(n){return cs(()=>{wN()}),ie.defaults.baseURL="/",(e,t)=>(T(),w(Be,null,[z(Os,{name:"fade-and-fly"},{default:Ie(()=>[e.isReady?B("",!0):(T(),w("div",bmt,[l("div",ymt,[(T(),w(Be,null,Xe(50,i=>l("div",{key:i,class:"absolute animate-fall animate-giggle",style:Wt({left:`${Math.random()*100}%`,top:"-20px",animationDuration:`${3+Math.random()*7}s`,animationDelay:`${Math.random()*5}s`})}," 🌟 ",4)),64))]),l("div",Emt,[l("div",vmt,[t[45]||(t[45]=l("div",{class:"text-6xl md:text-7xl font-bold text-amber-500 mb-2",style:{"text-shadow":"2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white"}}," L🌟LLMS ",-1)),t[46]||(t[46]=l("p",{class:"text-2xl text-gray-600 dark:text-gray-300 italic"}," One tool to rule them all ",-1)),t[47]||(t[47]=l("p",{class:"text-xl text-gray-500 dark:text-gray-400 mb-6"}," by ParisNeo ",-1)),l("p",Smt,$(e.version_info),1),t[48]||(t[48]=l("div",{class:"w-full h-24 relative overflow-hidden bg-gradient-to-r from-blue-200 to-purple-200 dark:from-blue-800 dark:to-purple-800 rounded-full shadow-lg flex items-center justify-center"},[l("p",{style:{"font-size":"48px","line-height":"1"}},"🌟")],-1))]),l("div",Tmt,[l("div",xmt,[l("p",Cmt,$(e.loading_infos)+"... ",1),l("p",wmt,$(Math.round(e.loading_progress))+"% ",1)])])])]))]),_:1}),z(Os,{name:"slide-right"},{default:Ie(()=>[e.showLeftPanel?(T(),w("div",Rmt,[z(yt(u0),{to:{name:"discussions"},class:"flex items-center space-x-2"},{default:Ie(()=>[l("div",Amt,[l("img",{class:"w-12 h-12 rounded-full object-cover logo-image",src:e.$store.state.config==null?yt(Bi):e.$store.state.config.app_custom_logo!=""?"/user_infos/"+e.$store.state.config.app_custom_logo:yt(Bi),alt:"Logo",title:"LoLLMS WebUI"},null,8,Mmt)]),t[49]||(t[49]=l("div",{class:"flex flex-col justify-center"},[l("div",{class:"text-6xl md:text-2xl font-bold text-amber-500 mb-2",style:{"text-shadow":"2px 2px 0px white, -2px -2px 0px white, 2px -2px 0px white, -2px 2px 0px white"}}," L🌟LLMS "),l("p",{class:"text-gray-400 text-sm"},"One tool to rule them all")],-1))]),_:1}),l("div",Nmt,[l("div",Omt,[l("button",{class:"toolbar-button",title:"Create new discussion",onClick:t[0]||(t[0]=(...i)=>e.createNewDiscussion&&e.createNewDiscussion(...i))},t[50]||(t[50]=[l("i",{"data-feather":"plus"},null,-1)])),e.loading?B("",!0):(T(),w("div",{key:0,class:"toolbar-button",onMouseleave:t[18]||(t[18]=(...i)=>e.hideMenu&&e.hideMenu(...i))},[k(l("div",{onMouseenter:t[16]||(t[16]=(...i)=>e.showMenu&&e.showMenu(...i)),class:"absolute m-0 p-0 z-50 top-full left-0 transform bg-white dark:bg-bg-dark rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Imt,[l("button",{class:Ue(["text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",e.isCheckbox?"text-secondary dark:text-secondary-light":"text-gray-700 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:t[1]||(t[1]=i=>e.isCheckbox=!e.isCheckbox)},t[51]||(t[51]=[l("i",{"data-feather":"check-square"},null,-1)]),2),l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Reset database, remove all discussions",onClick:t[2]||(t[2]=W(()=>{},["stop"]))},t[52]||(t[52]=[l("i",{"data-feather":"trash-2"},null,-1)])),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95",title:"Export database",type:"button",onClick:t[3]||(t[3]=W(i=>e.database_selectorDialogVisible=!0,["stop"]))},t[53]||(t[53]=[l("i",{"data-feather":"database"},null,-1)])),l("div",kmt,[l("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:t[4]||(t[4]=(...i)=>e.importDiscussions&&e.importDiscussions(...i))},null,544),l("button",{class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95 rotate-90",title:"Import discussions",type:"button",onClick:t[5]||(t[5]=W(i=>e.$refs.fileDialog.click(),["stop"]))},t[54]||(t[54]=[l("i",{"data-feather":"log-in"},null,-1)]))]),l("div",Dmt,[l("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:t[6]||(t[6]=(...i)=>e.importDiscussionsBundle&&e.importDiscussionsBundle(...i))},null,544),e.showSaveConfirmation?B("",!0):(T(),w("button",{key:0,title:"Import discussion bundle",onClick:t[7]||(t[7]=W(i=>e.$refs.bundleLoadingDialog.click(),["stop"])),class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[55]||(t[55]=[l("i",{"data-feather":"folder"},null,-1)])))]),e.loading?B("",!0):(T(),w("button",{key:0,type:"button",onClick:t[8]||(t[8]=W((...i)=>e.addDiscussion2SkillsLibrary&&e.addDiscussion2SkillsLibrary(...i),["stop"])),title:"Add this discussion content to skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[56]||(t[56]=[l("i",{"data-feather":"hard-drive"},null,-1)]))),!e.loading&&e.$store.state.config.activate_skills_lib?(T(),w("button",{key:1,type:"button",onClick:t[9]||(t[9]=W((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is activated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[57]||(t[57]=[l("i",{"data-feather":"check-circle"},null,-1)]))):B("",!0),!e.loading&&!e.$store.state.config.activate_skills_lib?(T(),w("button",{key:2,type:"button",onClick:t[10]||(t[10]=W((...i)=>e.toggleSkillsLib&&e.toggleSkillsLib(...i),["stop"])),title:"Skills database is deactivated",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[58]||(t[58]=[l("i",{"data-feather":"x-octagon"},null,-1)]))):B("",!0),e.loading?B("",!0):(T(),w("button",{key:3,type:"button",onClick:t[11]||(t[11]=W((...i)=>e.showSkillsLib&&e.showSkillsLib(...i),["stop"])),title:"Show Skills database",class:"text-3xl hover:text-secondary dark:hover:text-secondary-light duration-150 active:scale-95"},t[59]||(t[59]=[l("i",{"data-feather":"book"},null,-1)]))),e.loading?(T(),w("div",Lmt,t[60]||(t[60]=[l("div",{role:"status"},[l("svg",{"aria-hidden":"true",class:"w-8 h-8 animate-spin fill-secondary dark:fill-secondary-light",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),l("span",{class:"sr-only"},"Loading...")],-1)]))):B("",!0),e.showSaveConfirmation?(T(),w("div",Pmt,[l("button",{class:"text-3xl hover:text-red-500 dark:hover:text-red-400 duration-150 active:scale-95",title:"Cancel",type:"button",onClick:t[12]||(t[12]=W(i=>e.showSaveConfirmation=!1,["stop"]))},t[61]||(t[61]=[l("i",{"data-feather":"x"},null,-1)])),l("button",{class:"text-3xl hover:text-green-500 dark:hover:text-green-400 duration-150 active:scale-95",title:"Confirm save changes",type:"button",onClick:t[13]||(t[13]=W(i=>e.save_configuration(),["stop"]))},t[62]||(t[62]=[l("i",{"data-feather":"check"},null,-1)]))])):B("",!0),e.isOpen?(T(),w("div",Fmt,[l("button",{onClick:t[14]||(t[14]=(...i)=>e.importDiscussions&&e.importDiscussions(...i)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"LOLLMS"),l("button",{onClick:t[15]||(t[15]=(...i)=>e.importChatGPT&&e.importChatGPT(...i)),class:"text-sm hover:text-secondary dark:hover:text-secondary-light"},"ChatGPT")])):B("",!0)])],544),[[_t,e.isMenuVisible]]),l("div",{onMouseenter:t[17]||(t[17]=(...i)=>e.showMenu&&e.showMenu(...i)),class:"menu-hover-area"},t[63]||(t[63]=[l("button",{class:"w-8 h-8",title:"Toggle menu"},[l("i",{"data-feather":"menu"})],-1)]),32)],32)),e.loading?B("",!0):(T(),w("div",{key:1,class:"toolbar-button",onMouseleave:t[23]||(t[23]=(...i)=>e.hideBindingsMenu&&e.hideBindingsMenu(...i))},[l("div",Umt,[k(l("div",{onMouseenter:t[20]||(t[20]=(...i)=>e.showBindingsMenu&&e.showBindingsMenu(...i)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-60 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Bmt,[(T(!0),w(Be,null,Xe(e.installedBindings,(i,s)=>(T(),w("div",{key:s,class:"relative group/item"},[l("button",{onClick:W(r=>e.setBinding(i),["prevent"]),title:i.name,class:"w-10 h-10 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:i.icon?i.icon:yt($n),onError:t[19]||(t[19]=(...r)=>yt($n)&&yt($n)(...r)),alt:i.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":i.name==e.binding_name}])},null,42,Vmt)],8,Gmt),l("div",zmt,[l("button",{onClick:W(r=>e.showModelConfig(i),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Configure Binding"},t[64]||(t[64]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)]),8,Hmt)])]))),128))])],544),[[_t,e.isBindingsMenuVisible]]),l("div",{onMouseenter:t[22]||(t[22]=(...i)=>e.showBindingsMenu&&e.showBindingsMenu(...i)),class:"bindings-hover-area"},[l("button",{onClick:t[21]||(t[21]=W(i=>e.showModelConfig(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentBindingIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-200",title:e.currentBinding?e.currentBinding.name:"unknown"},null,8,qmt)])],32)])],32)),e.loading?B("",!0):(T(),w("div",{key:2,class:"toolbar-button",onMouseleave:t[28]||(t[28]=(...i)=>e.hideModelsMenu&&e.hideModelsMenu(...i))},[l("div",Ymt,[k(l("div",{onMouseenter:t[25]||(t[25]=(...i)=>e.showModelsMenu&&e.showModelsMenu(...i)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-60 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",$mt,[(T(!0),w(Be,null,Xe(e.installedModels,(i,s)=>(T(),w("div",{key:s,class:"relative group/item"},[l("button",{onClick:W(r=>e.setModel(i),["prevent"]),title:i.name,class:"w-10 h-10 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:i.icon?i.icon:yt($n),onError:t[24]||(t[24]=(...r)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...r)),alt:i.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":i.name==e.model_name}])},null,42,Kmt)],8,Wmt),l("div",jmt,[l("button",{onClick:W(r=>e.copyModelNameFrom(i.name),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none",title:"Copy Model Name"},t[65]||(t[65]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})],-1)]),8,Qmt)])]))),128))])],544),[[_t,e.isModelsMenuVisible]]),l("div",{onMouseenter:t[27]||(t[27]=(...i)=>e.showModelsMenu&&e.showModelsMenu(...i)),class:"models-hover-area"},[l("button",{onClick:t[26]||(t[26]=W(i=>e.copyModelName(),["prevent"])),class:"w-6 h-6"},[l("img",{src:e.currentModelIcon,class:"w-6 h-6 rounded-full object-fill text-red-700 border-2 active:scale-90 hover:border-secondary hover:scale-110 hover:-translate-y-1 duration-400",title:e.currentModel?e.currentModel.name:"unknown"},null,8,Xmt)])],32)])],32)),e.loading?B("",!0):(T(),w("div",{key:3,class:"toolbar-button",onMouseleave:t[32]||(t[32]=(...i)=>e.hidePersonalitiesMenu&&e.hidePersonalitiesMenu(...i))},[l("div",Zmt,[k(l("div",{onMouseenter:t[30]||(t[30]=(...i)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...i)),class:"absolute m-0 p-0 z-10 top-full left-0 transform w-60 bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2"},[l("div",Jmt,[(T(!0),w(Be,null,Xe(e.mountedPersonalities,(i,s)=>(T(),w("div",{key:s,class:"relative group/item"},[l("button",{onClick:W(r=>e.onPersonalitySelected(i),["prevent"]),title:i.name,class:"w-10 h-10 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none"},[l("img",{src:yt(Lht)+i.avatar,onError:t[29]||(t[29]=(...r)=>e.personalityImgPlacehodler&&e.personalityImgPlacehodler(...r)),alt:i.name,class:Ue(["w-full h-full object-cover",{"border-2 border-secondary":e.$store.state.active_personality_id==e.$store.state.personalities.indexOf(i.full_path)}])},null,42,tht)],8,eht),l("div",nht,[l("button",{onClick:W(r=>e.unmountPersonality(i),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none",title:"Unmount"},t[66]||(t[66]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]),8,iht),l("button",{onClick:W(r=>e.remount_personality(i),["prevent"]),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none ml-1",title:"Remount"},t[67]||(t[67]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)]),8,sht),l("button",{onClick:W(r=>e.handleOnTalk(i),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none ml-1",title:"Talk"},t[68]||(t[68]=[l("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]),8,rht)])]))),128))])],544),[[_t,e.isPersonalitiesMenuVisible]]),l("div",{onMouseenter:t[31]||(t[31]=(...i)=>e.showPersonalitiesMenu&&e.showPersonalitiesMenu(...i)),class:"personalities-hover-area"},[z(ON,{ref:"mountedPers",onShowPersList:e.onShowPersListFun,onReady:e.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32)])],32))])]),l("div",oht,[l("form",{onSubmit:t[35]||(t[35]=W((...i)=>e.handleSearch&&e.handleSearch(...i),["prevent"])),class:"relative"},[l("div",aht,[l("div",lht,[k(l("input",{type:"search",id:"default-search",class:"block w-full h-8 px-8 text-sm border border-gray-300 rounded-md bg-bg-light focus:ring-1 focus:ring-secondary focus:border-secondary dark:bg-bg-dark dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-secondary dark:focus:border-secondary transition-all duration-200",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":t[33]||(t[33]=i=>e.filterTitle=i),onKeyup:t[34]||(t[34]=wi((...i)=>e.handleSearch&&e.handleSearch(...i),["enter"]))},null,544),[[ue,e.filterTitle]]),t[69]||(t[69]=l("div",{class:"absolute left-2 top-1/2 -translate-y-1/2"},[l("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400"})],-1)),t[70]||(t[70]=l("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-600 hover:text-secondary rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-1 focus:ring-secondary transition-all duration-150 active:scale-98",title:"Search"},[l("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),e.isCheckbox?(T(),w("div",cht,[l("div",dht,[e.selectedDiscussions.length>0?(T(),w("p",uht,"Selected: "+$(e.selectedDiscussions.length),1)):B("",!0),e.selectedDiscussions.length>0?(T(),w("div",pht,[e.showConfirmation?B("",!0):(T(),w("button",{key:0,class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove selected",type:"button",onClick:t[36]||(t[36]=W(i=>e.showConfirmation=!0,["stop"]))},t[71]||(t[71]=[l("i",{"data-feather":"trash"},null,-1)]))),e.showConfirmation?(T(),w("div",fht,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm removal",type:"button",onClick:t[37]||(t[37]=W((...i)=>e.deleteDiscussionMulti&&e.deleteDiscussionMulti(...i),["stop"]))},t[72]||(t[72]=[l("i",{"data-feather":"check"},null,-1)])),l("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Cancel removal",type:"button",onClick:t[38]||(t[38]=W(i=>e.showConfirmation=!1,["stop"]))},t[73]||(t[73]=[l("i",{"data-feather":"x"},null,-1)]))])):B("",!0)])):B("",!0),l("div",_ht,[l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a json file",type:"button",onClick:t[39]||(t[39]=W((...i)=>e.exportDiscussionsAsJson&&e.exportDiscussionsAsJson(...i),["stop"]))},t[74]||(t[74]=[l("i",{"data-feather":"codepen"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[40]||(t[40]=W((...i)=>e.exportDiscussions&&e.exportDiscussions(...i),["stop"]))},t[75]||(t[75]=[l("i",{"data-feather":"folder"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Export selected to a markdown file",type:"button",onClick:t[41]||(t[41]=W((...i)=>e.exportDiscussionsAsMarkdown&&e.exportDiscussionsAsMarkdown(...i),["stop"]))},t[76]||(t[76]=[l("i",{"data-feather":"bookmark"},null,-1)])),l("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Select All",type:"button",onClick:t[42]||(t[42]=W((...i)=>e.selectAllDiscussions&&e.selectAllDiscussions(...i),["stop"]))},t[77]||(t[77]=[l("i",{"data-feather":"list"},null,-1)]))])])])):B("",!0),l("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden custom-scrollbar",onDragover:t[43]||(t[43]=W(i=>e.setDropZoneDiscussion(),["stop","prevent"]))},[l("div",mht,[l("div",{class:Ue(["mx-0 flex flex-col flex-grow w-full",e.isDragOverDiscussion?"pointer-events-none":""])},[l("div",{id:"dis-list",class:Ue([e.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-80"])},[e.list.length>0?(T(),at(Is,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(e.list,(i,s)=>(T(),at(Q0,{key:i.id,id:i.id,title:i.title,selected:e.currentDiscussion.id==i.id,loading:i.loading,isCheckbox:e.isCheckbox,checkBoxValue:i.checkBoxValue,onSelect:r=>e.selectDiscussion(i),onDelete:r=>e.deleteDiscussion(i.id),onOpenFolder:e.openFolder,onEditTitle:e.editTitle,onMakeTitle:e.makeTitle,onChecked:e.checkUncheckDiscussion},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","onSelect","onDelete","onOpenFolder","onEditTitle","onMakeTitle","onChecked"]))),128))]),_:1})):B("",!0),e.list.length<1?(T(),w("div",hht,t[78]||(t[78]=[l("p",{class:"px-3"},"No discussions are found",-1)]))):B("",!0),t[79]||(t[79]=l("div",{class:"sticky bottom-0 bg-gradient-to-t pointer-events-none from-bg-light-tone dark:from-bg-dark-tone flex flex-grow"},null,-1))],2)],2)])],32),l("div",ght,[l("div",{class:"h-15 w-full py-4 cursor-pointer text-light-text-panel dark:text-dark-text-panel hover:text-secondary",onClick:t[44]||(t[44]=(...i)=>e.showDatabaseSelector&&e.showDatabaseSelector(...i))},[l("p",bht,$(e.formatted_database_name.replace("_"," ")),1)])])])):B("",!0)]),_:1}),e.isReady?(T(),w("div",yht,[l("div",{id:"messages-list",class:Ue(["w-full z-0 flex flex-col flex-grow overflow-y-auto scrollbar",e.isDragOverChat?"pointer-events-none":""])},[l("div",Eht,[e.discussionArr.length>0?(T(),at(Is,{key:0,name:"list"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(e.discussionArr,(i,s)=>(T(),at(fN,{key:i.id,message:i,id:"msg-"+i.id,ref_for:!0,ref:"msg-"+i.id,host:e.host,onCopy:e.copyToClipBoard,onDelete:e.deleteMessage,onRankUp:e.rankUpMessage,onRankDown:e.rankDownMessage,onUpdateMessage:e.updateMessage,onResendMessage:e.resendMessage,onContinueMessage:e.continueMessage,avatar:e.getAvatar(i.sender)},null,8,["message","id","host","onCopy","onDelete","onRankUp","onRankDown","onUpdateMessage","onResendMessage","onContinueMessage","avatar"]))),128)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),w("div",vht,[t[82]||(t[82]=l("h2",{class:"text-2xl font-bold mb-4"},"Prompt examples",-1)),e.discussionArr.length<2&&e.personality.prompts_list.length>0?(T(),w("div",Sht,[l("div",Tht,[(T(!0),w(Be,null,Xe(e.personality.prompts_list,(i,s)=>(T(),w("div",{key:s,onClick:r=>e.selectPrompt(i),class:"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg p-4 cursor-pointer hover:shadow-lg transition-all duration-300 ease-in-out transform hover:scale-105 flex flex-col justify-between h-[220px] overflow-hidden group"},[l("div",{title:i,class:"text-base text-gray-700 dark:text-gray-300 overflow-hidden relative h-full"},[l("div",wht,$(i),1),t[80]||(t[80]=l("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white dark:to-gray-800 group-hover:opacity-0 transition-opacity duration-300"},null,-1))],8,Cht),t[81]||(t[81]=l("div",{class:"mt-2 text-sm text-gray-500 dark:text-gray-400 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}," Click to select ",-1))],8,xht))),128))])])):B("",!0)])):B("",!0)]),_:1})):B("",!0),e.currentDiscussion.id?B("",!0):(T(),at(mN,{key:1})),t[83]||(t[83]=l("div",null,[l("br"),l("br"),l("br"),l("br"),l("br"),l("br"),l("br")],-1))]),t[84]||(t[84]=l("div",{class:"absolute w-full bottom-0 bg-transparent p-10 pt-16 bg-gradient-to-t from-bg-light dark:from-bg-dark from-5% via-bg-light dark:via-bg-dark via-10% to-transparent to-100%"},null,-1))],2),e.currentDiscussion.id?(T(),w("div",Rht,[z(_N,{ref:"chatBox",loading:e.isGenerating,discussionList:e.discussionArr,"on-show-toast-message":e.showToastMessage,"on-talk":e.talk,onPersonalitySelected:e.recoverFiles,onMessageSentEvent:e.sendMsg,onSendCMDEvent:e.sendCmd,onAddWebLink:e.add_webpage,onCreateEmptyUserMessage:e.createEmptyUserMessage,onCreateEmptyAIMessage:e.createEmptyAIMessage,onStopGenerating:e.stopGenerating,onLoaded:e.recoverFiles},null,8,["loading","discussionList","on-show-toast-message","on-talk","onPersonalitySelected","onMessageSentEvent","onSendCMDEvent","onAddWebLink","onCreateEmptyUserMessage","onCreateEmptyAIMessage","onStopGenerating","onLoaded"])])):B("",!0)])):B("",!0),z(Os,{name:"slide-left"},{default:Ie(()=>[e.showRightPanel?(T(),w("div",Aht,[l("div",Mht,null,512)])):B("",!0)]),_:1}),z(j0,{reference:"database_selector",class:"z-20",show:e.database_selectorDialogVisible,choices:e.databases,"can-remove":!0,onChoiceRemoved:e.ondatabase_selectorDialogRemoved,onChoiceSelected:e.ondatabase_selectorDialogSelected,onCloseDialog:e.onclosedatabase_selectorDialog,onChoiceValidated:e.onvalidatedatabase_selectorChoice},null,8,["show","choices","onChoiceRemoved","onChoiceSelected","onCloseDialog","onChoiceValidated"]),k(l("div",Nht,[z(_u,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",Oht,$(e.loading_infos)+" ...",1)],512),[[_t,e.progress_visibility]]),z(dN,{"prompt-text":"Enter the url to the page to use as discussion support",onOk:e.addWebpage,ref:"web_url_input_box"},null,8,["onOk"]),z(uN,{ref:"skills_lib"},null,512),z(Qu,{ref:"toast"},null,512),z(RN,{ref:"messageBox"},null,512),k(l("div",Iht,[z(_u,{ref:"progress",progress:e.progress_value,class:"w-full h-4"},null,8,["progress"]),l("p",kht,$(e.loading_infos)+" ...",1)],512),[[_t,e.progress_visibility]]),z(X0,{ref:"universalForm",class:"z-20"},null,512),z(AN,{ref:"yesNoDialog",class:"z-20"},null,512),z(MN,{ref:"personality_editor",config:e.currentPersonConfig,personality:e.selectedPersonality},null,8,["config","personality"]),l("div",Dht,[z(NN,{ref:"news"},null,512)])],64))}}),Uht=st(Fht,[["__scopeId","data-v-ab654f46"]]);/**
  * @license
  * Copyright 2010-2023 Three.js Authors
  * SPDX-License-Identifier: MIT
- */const cy="159",Ght=0,oC=1,Vht=2,IN=1,zht=2,xs=3,Fs=0,Zn=1,Ji=2,gr=0,ra=1,aC=2,lC=3,cC=4,Hht=5,$r=100,qht=101,Yht=102,dC=103,uC=104,$ht=200,Wht=201,Kht=202,jht=203,fb=204,_b=205,Qht=206,Xht=207,Zht=208,Jht=209,egt=210,tgt=211,ngt=212,igt=213,sgt=214,rgt=0,ogt=1,agt=2,mu=3,lgt=4,cgt=5,dgt=6,ugt=7,dy=0,pgt=1,fgt=2,br=0,_gt=1,mgt=2,hgt=3,ggt=4,bgt=5,pC="attached",ygt="detached",kN=300,ya=301,Ea=302,mb=303,hb=304,fp=306,va=1e3,hi=1001,hu=1002,gn=1003,gb=1004,kd=1005,Wn=1006,DN=1007,_o=1008,yr=1009,Egt=1010,vgt=1011,uy=1012,LN=1013,fr=1014,As=1015,Ql=1016,PN=1017,FN=1018,no=1020,Sgt=1021,gi=1023,Tgt=1024,xgt=1025,io=1026,Sa=1027,Cgt=1028,UN=1029,wgt=1030,BN=1031,GN=1033,qh=33776,Yh=33777,$h=33778,Wh=33779,fC=35840,_C=35841,mC=35842,hC=35843,VN=36196,gC=37492,bC=37496,yC=37808,EC=37809,vC=37810,SC=37811,TC=37812,xC=37813,CC=37814,wC=37815,RC=37816,AC=37817,MC=37818,NC=37819,OC=37820,IC=37821,Kh=36492,kC=36494,DC=36495,Rgt=36283,LC=36284,PC=36285,FC=36286,Xl=2300,Ta=2301,jh=2302,UC=2400,BC=2401,GC=2402,Agt=2500,Mgt=0,zN=1,bb=2,HN=3e3,so=3001,Ngt=3200,Ogt=3201,py=0,Igt=1,bi="",nn="srgb",Cn="srgb-linear",fy="display-p3",_p="display-p3-linear",gu="linear",jt="srgb",bu="rec709",yu="p3",Ro=7680,VC=519,kgt=512,Dgt=513,Lgt=514,qN=515,Pgt=516,Fgt=517,Ugt=518,Bgt=519,yb=35044,zC="300 es",Eb=1035,Ms=2e3,Eu=2001;class Ha{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(t)===-1&&i[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const s=this._listeners[e];if(s!==void 0){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const s=i.slice(0);for(let r=0,o=s.length;r<o;r++)s[r].call(this,e);e.target=null}}}const An=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let HC=1234567;const Ol=Math.PI/180,xa=180/Math.PI;function Gi(){const n=Math.random()*4294967295|0,e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(An[n&255]+An[n>>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[i&255]+An[i>>8&255]+An[i>>16&255]+An[i>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function _y(n,e){return(n%e+e)%e}function Ggt(n,e,t,i,s){return i+(n-e)*(s-i)/(t-e)}function Vgt(n,e,t){return n!==e?(t-n)/(e-n):0}function Il(n,e,t){return(1-t)*n+t*e}function zgt(n,e,t,i){return Il(n,e,1-Math.exp(-t*i))}function Hgt(n,e=1){return e-Math.abs(_y(n,e*2)-e)}function qgt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function Ygt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function $gt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function Wgt(n,e){return n+Math.random()*(e-n)}function Kgt(n){return n*(.5-Math.random())}function jgt(n){n!==void 0&&(HC=n);let e=HC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function Qgt(n){return n*Ol}function Xgt(n){return n*xa}function vb(n){return(n&n-1)===0&&n!==0}function Zgt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function vu(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Jgt(n,e,t,i,s){const r=Math.cos,o=Math.sin,a=r(t/2),c=o(t/2),d=r((e+i)/2),u=o((e+i)/2),_=r((e-i)/2),m=o((e-i)/2),h=r((i-e)/2),f=o((i-e)/2);switch(s){case"XYX":n.set(a*u,c*_,c*m,a*d);break;case"YZY":n.set(c*m,a*u,c*_,a*d);break;case"ZXZ":n.set(c*_,c*m,a*u,a*d);break;case"XZX":n.set(a*u,c*f,c*h,a*d);break;case"YXY":n.set(c*h,a*u,c*f,a*d);break;case"ZYZ":n.set(c*f,c*h,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function es(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Bt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const ebt={DEG2RAD:Ol,RAD2DEG:xa,generateUUID:Gi,clamp:On,euclideanModulo:_y,mapLinear:Ggt,inverseLerp:Vgt,lerp:Il,damp:zgt,pingpong:Hgt,smoothstep:qgt,smootherstep:Ygt,randInt:$gt,randFloat:Wgt,randFloatSpread:Kgt,seededRandom:jgt,degToRad:Qgt,radToDeg:Xgt,isPowerOfTwo:vb,ceilPowerOfTwo:Zgt,floorPowerOfTwo:vu,setQuaternionFromProperEuler:Jgt,normalize:Bt,denormalize:es};class Rt{constructor(e=0,t=0){Rt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Tt{constructor(e,t,i,s,r,o,a,c,d){Tt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,c,d)}set(e,t,i,s,r,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=s,u[2]=a,u[3]=t,u[4]=r,u[5]=c,u[6]=i,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[3],c=i[6],d=i[1],u=i[4],_=i[7],m=i[2],h=i[5],f=i[8],y=s[0],b=s[3],g=s[6],E=s[1],v=s[4],S=s[7],R=s[2],C=s[5],A=s[8];return r[0]=o*y+a*E+c*R,r[3]=o*b+a*v+c*C,r[6]=o*g+a*S+c*A,r[1]=d*y+u*E+_*R,r[4]=d*b+u*v+_*C,r[7]=d*g+u*S+_*A,r[2]=m*y+h*E+f*R,r[5]=m*b+h*v+f*C,r[8]=m*g+h*S+f*A,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-i*r*u+i*a*c+s*r*d-s*o*c}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=u*o-a*d,m=a*c-u*r,h=d*r-o*c,f=t*_+i*m+s*h;if(f===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/f;return e[0]=_*y,e[1]=(s*d-u*i)*y,e[2]=(a*i-s*o)*y,e[3]=m*y,e[4]=(u*t-s*c)*y,e[5]=(s*r-a*t)*y,e[6]=h*y,e[7]=(i*c-d*t)*y,e[8]=(o*t-i*r)*y,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,r,o,a){const c=Math.cos(r),d=Math.sin(r);return this.set(i*c,i*d,-i*(c*o+d*a)+o+e,-s*d,s*c,-s*(-d*o+c*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(Qh.makeScale(e,t)),this}rotate(e){return this.premultiply(Qh.makeRotation(-e)),this}translate(e,t){return this.premultiply(Qh.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Qh=new Tt;function YN(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Zl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function tbt(){const n=Zl("canvas");return n.style.display="block",n}const qC={};function kl(n){n in qC||(qC[n]=!0,console.warn(n))}const YC=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),$C=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:gu,primaries:bu,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:jt,primaries:bu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[_p]:{transfer:gu,primaries:yu,toReference:n=>n.applyMatrix3($C),fromReference:n=>n.applyMatrix3(YC)},[fy]:{transfer:jt,primaries:yu,toReference:n=>n.convertSRGBToLinear().applyMatrix3($C),fromReference:n=>n.applyMatrix3(YC).convertLinearToSRGB()}},nbt=new Set([Cn,_p]),Lt={enabled:!0,_workingColorSpace:Cn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!nbt.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=Hc[e].toReference,s=Hc[t].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Hc[n].primaries},getTransfer:function(n){return n===bi?gu:Hc[n].transfer}};function oa(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Xh(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ao;class $N{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ao===void 0&&(Ao=Zl("canvas")),Ao.width=e.width,Ao.height=e.height;const i=Ao.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Ao}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Zl("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o<r.length;o++)r[o]=oa(r[o]/255)*255;return i.putImageData(s,0,0),t}else if(e.data){const t=e.data.slice(0);for(let i=0;i<t.length;i++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[i]=Math.floor(oa(t[i]/255)*255):t[i]=oa(t[i]);return{data:t,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let ibt=0;class WN{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:ibt++}),this.uuid=Gi(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},s=this.data;if(s!==null){let r;if(Array.isArray(s)){r=[];for(let o=0,a=s.length;o<a;o++)s[o].isDataTexture?r.push(Zh(s[o].image)):r.push(Zh(s[o]))}else r=Zh(s);i.url=r}return t||(e.images[this.uuid]=i),i}}function Zh(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&n instanceof ImageBitmap?$N.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let sbt=0;class xn extends Ha{constructor(e=xn.DEFAULT_IMAGE,t=xn.DEFAULT_MAPPING,i=hi,s=hi,r=Wn,o=_o,a=gi,c=yr,d=xn.DEFAULT_ANISOTROPY,u=bi){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:sbt++}),this.uuid=Gi(),this.name="",this.source=new WN(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=i,this.wrapT=s,this.magFilter=r,this.minFilter=o,this.anisotropy=d,this.format=a,this.internalFormat=null,this.type=c,this.offset=new Rt(0,0),this.repeat=new Rt(1,1),this.center=new Rt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Tt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,typeof u=="string"?this.colorSpace=u:(kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=u===so?nn:bi),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==kN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case va:e.x=e.x-Math.floor(e.x);break;case hi:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case va:e.y=e.y-Math.floor(e.y);break;case hi:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?so:HN}set encoding(e){kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===so?nn:bi}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=kN;xn.DEFAULT_ANISOTROPY=1;class $t{constructor(e=0,t=0,i=0,s=1){$t.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*t+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*t+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*t+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,r;const c=e.elements,d=c[0],u=c[4],_=c[8],m=c[1],h=c[5],f=c[9],y=c[2],b=c[6],g=c[10];if(Math.abs(u-m)<.01&&Math.abs(_-y)<.01&&Math.abs(f-b)<.01){if(Math.abs(u+m)<.1&&Math.abs(_+y)<.1&&Math.abs(f+b)<.1&&Math.abs(d+h+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(d+1)/2,S=(h+1)/2,R=(g+1)/2,C=(u+m)/4,A=(_+y)/4,I=(f+b)/4;return v>S&&v>R?v<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(v),s=C/i,r=A/i):S>R?S<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(S),i=C/s,r=I/s):R<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(R),i=A/r,s=I/r),this.set(i,s,r,t),this}let E=Math.sqrt((b-f)*(b-f)+(_-y)*(_-y)+(m-u)*(m-u));return Math.abs(E)<.001&&(E=1),this.x=(b-f)/E,this.y=(_-y)/E,this.z=(m-u)/E,this.w=Math.acos((d+h+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class rbt extends Ha{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new $t(0,0,e,t),this.scissorTest=!1,this.viewport=new $t(0,0,e,t);const s={width:e,height:t,depth:1};i.encoding!==void 0&&(kl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===so?nn:bi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Wn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new xn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new WN(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends rbt{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class KN extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=hi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class obt extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=hi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Nr{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,r,o,a){let c=i[s+0],d=i[s+1],u=i[s+2],_=i[s+3];const m=r[o+0],h=r[o+1],f=r[o+2],y=r[o+3];if(a===0){e[t+0]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_;return}if(a===1){e[t+0]=m,e[t+1]=h,e[t+2]=f,e[t+3]=y;return}if(_!==y||c!==m||d!==h||u!==f){let b=1-a;const g=c*m+d*h+u*f+_*y,E=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const R=Math.sqrt(v),C=Math.atan2(R,g*E);b=Math.sin(b*C)/R,a=Math.sin(a*C)/R}const S=a*E;if(c=c*b+m*S,d=d*b+h*S,u=u*b+f*S,_=_*b+y*S,b===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+_*_);c*=R,d*=R,u*=R,_*=R}}e[t]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_}static multiplyQuaternionsFlat(e,t,i,s,r,o){const a=i[s],c=i[s+1],d=i[s+2],u=i[s+3],_=r[o],m=r[o+1],h=r[o+2],f=r[o+3];return e[t]=a*f+u*_+c*h-d*m,e[t+1]=c*f+u*m+d*_-a*h,e[t+2]=d*f+u*h+a*m-c*_,e[t+3]=u*f-a*_-c*m-d*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(i/2),u=a(s/2),_=a(r/2),m=c(i/2),h=c(s/2),f=c(r/2);switch(o){case"XYZ":this._x=m*u*_+d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_-m*h*f;break;case"YXZ":this._x=m*u*_+d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_+m*h*f;break;case"ZXY":this._x=m*u*_-d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_-m*h*f;break;case"ZYX":this._x=m*u*_-d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_+m*h*f;break;case"YZX":this._x=m*u*_+d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_-m*h*f;break;case"XZY":this._x=m*u*_-d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_+m*h*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],r=t[8],o=t[1],a=t[5],c=t[9],d=t[2],u=t[6],_=t[10],m=i+a+_;if(m>0){const h=.5/Math.sqrt(m+1);this._w=.25/h,this._x=(u-c)*h,this._y=(r-d)*h,this._z=(o-s)*h}else if(i>a&&i>_){const h=2*Math.sqrt(1+i-a-_);this._w=(u-c)/h,this._x=.25*h,this._y=(s+o)/h,this._z=(r+d)/h}else if(a>_){const h=2*Math.sqrt(1+a-i-_);this._w=(r-d)/h,this._x=(s+o)/h,this._y=.25*h,this._z=(c+u)/h}else{const h=2*Math.sqrt(1+_-i-a);this._w=(o-s)/h,this._x=(r+d)/h,this._y=(c+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return i<Number.EPSILON?(i=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,s=e._y,r=e._z,o=e._w,a=t._x,c=t._y,d=t._z,u=t._w;return this._x=i*u+o*a+s*d-r*c,this._y=s*u+o*c+r*a-i*d,this._z=r*u+o*d+i*c-s*a,this._w=o*u-i*a-s*c-r*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=i,this._y=s,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const h=1-t;return this._w=h*o+t*this._w,this._x=h*i+t*this._x,this._y=h*s+t*this._y,this._z=h*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),_=Math.sin((1-t)*u)/d,m=Math.sin(t*u)/d;return this._w=o*_+this._w*m,this._x=i*_+this._x*m,this._y=s*_+this._y*m,this._z=r*_+this._z*m,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(s),i*Math.sin(r),i*Math.cos(r),t*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class re{constructor(e=0,t=0,i=0){re.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(WC.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(WC.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*s,this.y=r[1]*t+r[4]*i+r[7]*s,this.z=r[2]*t+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*t+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*t+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*t+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*s-a*i),u=2*(a*t-r*s),_=2*(r*i-o*t);return this.x=t+c*d+o*_-a*u,this.y=i+c*u+a*d-r*_,this.z=s+c*_+r*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*s,this.y=r[1]*t+r[5]*i+r[9]*s,this.z=r[2]*t+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,r=e.z,o=t.x,a=t.y,c=t.z;return this.x=s*c-r*a,this.y=r*o-i*c,this.z=i*a-s*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Jh.copy(this).projectOnVector(e),this.sub(Jh)}reflect(e){return this.sub(Jh.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Jh=new re,WC=new Nr;class Gs{constructor(e=new re(1/0,1/0,1/0),t=new re(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;t<i;t+=3)this.expandByPoint(Ii.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,i=e.count;t<i;t++)this.expandByPoint(Ii.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,i=e.length;t<i;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const i=Ii.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const i=e.geometry;if(i!==void 0){const r=i.getAttribute("position");if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=r.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,Ii):Ii.fromBufferAttribute(r,o),Ii.applyMatrix4(e.matrixWorld),this.expandByPoint(Ii);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),qc.copy(e.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),qc.copy(i.boundingBox)),qc.applyMatrix4(e.matrixWorld),this.union(qc)}const s=e.children;for(let r=0,o=s.length;r<o;r++)this.expandByObject(s[r],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ii),Ii.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ol),Yc.subVectors(this.max,ol),Mo.subVectors(e.a,ol),No.subVectors(e.b,ol),Oo.subVectors(e.c,ol),Ks.subVectors(No,Mo),js.subVectors(Oo,No),Lr.subVectors(Mo,Oo);let t=[0,-Ks.z,Ks.y,0,-js.z,js.y,0,-Lr.z,Lr.y,Ks.z,0,-Ks.x,js.z,0,-js.x,Lr.z,0,-Lr.x,-Ks.y,Ks.x,0,-js.y,js.x,0,-Lr.y,Lr.x,0];return!eg(t,Mo,No,Oo,Yc)||(t=[1,0,0,0,1,0,0,0,1],!eg(t,Mo,No,Oo,Yc))?!1:($c.crossVectors(Ks,js),t=[$c.x,$c.y,$c.z],eg(t,Mo,No,Oo,Yc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ii).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ii).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(gs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),gs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),gs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),gs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),gs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),gs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),gs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),gs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(gs),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const gs=[new re,new re,new re,new re,new re,new re,new re,new re],Ii=new re,qc=new Gs,Mo=new re,No=new re,Oo=new re,Ks=new re,js=new re,Lr=new re,ol=new re,Yc=new re,$c=new re,Pr=new re;function eg(n,e,t,i,s){for(let r=0,o=n.length-3;r<=o;r+=3){Pr.fromArray(n,r);const a=s.x*Math.abs(Pr.x)+s.y*Math.abs(Pr.y)+s.z*Math.abs(Pr.z),c=e.dot(Pr),d=t.dot(Pr),u=i.dot(Pr);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const abt=new Gs,al=new re,tg=new re;class ps{constructor(e=new re,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):abt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;r<o;r++)s=Math.max(s,i.distanceToSquared(e[r]));return this.radius=Math.sqrt(s),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const i=this.center.distanceToSquared(e);return t.copy(e),i>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;al.subVectors(e,this.center);const t=al.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(al,s/i),this.radius+=s}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(tg.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(tg)),this.expandByPoint(al.copy(e.center).sub(tg))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const bs=new re,ng=new re,Wc=new re,Qs=new re,ig=new re,Kc=new re,sg=new re;class mp{constructor(e=new re,t=new re(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,bs)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=bs.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(bs.copy(this.origin).addScaledVector(this.direction,t),bs.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){ng.copy(e).add(t).multiplyScalar(.5),Wc.copy(t).sub(e).normalize(),Qs.copy(this.origin).sub(ng);const r=e.distanceTo(t)*.5,o=-this.direction.dot(Wc),a=Qs.dot(this.direction),c=-Qs.dot(Wc),d=Qs.lengthSq(),u=Math.abs(1-o*o);let _,m,h,f;if(u>0)if(_=o*c-a,m=o*a-c,f=r*u,_>=0)if(m>=-f)if(m<=f){const y=1/u;_*=y,m*=y,h=_*(_+o*m+2*a)+m*(o*_+m+2*c)+d}else m=r,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m=-r,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m<=-f?(_=Math.max(0,-(-o*r+a)),m=_>0?-r:Math.min(Math.max(-r,-c),r),h=-_*_+m*(m+2*c)+d):m<=f?(_=0,m=Math.min(Math.max(-r,-c),r),h=m*(m+2*c)+d):(_=Math.max(0,-(o*r+a)),m=_>0?r:Math.min(Math.max(-r,-c),r),h=-_*_+m*(m+2*c)+d);else m=o>0?-r:r,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;return i&&i.copy(this.origin).addScaledVector(this.direction,_),s&&s.copy(ng).addScaledVector(Wc,m),h}intersectSphere(e,t){bs.subVectors(e.center,this.origin);const i=bs.dot(this.direction),s=bs.dot(bs)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,c=i+o;return c<0?null:a<0?this.at(c,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,r,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,_=1/this.direction.z,m=this.origin;return d>=0?(i=(e.min.x-m.x)*d,s=(e.max.x-m.x)*d):(i=(e.max.x-m.x)*d,s=(e.min.x-m.x)*d),u>=0?(r=(e.min.y-m.y)*u,o=(e.max.y-m.y)*u):(r=(e.max.y-m.y)*u,o=(e.min.y-m.y)*u),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o<s||isNaN(s))&&(s=o),_>=0?(a=(e.min.z-m.z)*_,c=(e.max.z-m.z)*_):(a=(e.max.z-m.z)*_,c=(e.min.z-m.z)*_),i>c||a>s)||((a>i||i!==i)&&(i=a),(c<s||s!==s)&&(s=c),s<0)?null:this.at(i>=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,bs)!==null}intersectTriangle(e,t,i,s,r){ig.subVectors(t,e),Kc.subVectors(i,e),sg.crossVectors(ig,Kc);let o=this.direction.dot(sg),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Qs.subVectors(this.origin,e);const c=a*this.direction.dot(Kc.crossVectors(Qs,Kc));if(c<0)return null;const d=a*this.direction.dot(ig.cross(Qs));if(d<0||c+d>o)return null;const u=-a*Qs.dot(sg);return u<0?null:this.at(u/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class xt{constructor(e,t,i,s,r,o,a,c,d,u,_,m,h,f,y,b){xt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,c,d,u,_,m,h,f,y,b)}set(e,t,i,s,r,o,a,c,d,u,_,m,h,f,y,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=c,g[2]=d,g[6]=u,g[10]=_,g[14]=m,g[3]=h,g[7]=f,g[11]=y,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new xt().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/Io.setFromMatrixColumn(e,0).length(),r=1/Io.setFromMatrixColumn(e,1).length(),o=1/Io.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),c=Math.cos(s),d=Math.sin(s),u=Math.cos(r),_=Math.sin(r);if(e.order==="XYZ"){const m=o*u,h=o*_,f=a*u,y=a*_;t[0]=c*u,t[4]=-c*_,t[8]=d,t[1]=h+f*d,t[5]=m-y*d,t[9]=-a*c,t[2]=y-m*d,t[6]=f+h*d,t[10]=o*c}else if(e.order==="YXZ"){const m=c*u,h=c*_,f=d*u,y=d*_;t[0]=m+y*a,t[4]=f*a-h,t[8]=o*d,t[1]=o*_,t[5]=o*u,t[9]=-a,t[2]=h*a-f,t[6]=y+m*a,t[10]=o*c}else if(e.order==="ZXY"){const m=c*u,h=c*_,f=d*u,y=d*_;t[0]=m-y*a,t[4]=-o*_,t[8]=f+h*a,t[1]=h+f*a,t[5]=o*u,t[9]=y-m*a,t[2]=-o*d,t[6]=a,t[10]=o*c}else if(e.order==="ZYX"){const m=o*u,h=o*_,f=a*u,y=a*_;t[0]=c*u,t[4]=f*d-h,t[8]=m*d+y,t[1]=c*_,t[5]=y*d+m,t[9]=h*d-f,t[2]=-d,t[6]=a*c,t[10]=o*c}else if(e.order==="YZX"){const m=o*c,h=o*d,f=a*c,y=a*d;t[0]=c*u,t[4]=y-m*_,t[8]=f*_+h,t[1]=_,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=h*_+f,t[10]=m-y*_}else if(e.order==="XZY"){const m=o*c,h=o*d,f=a*c,y=a*d;t[0]=c*u,t[4]=-_,t[8]=d*u,t[1]=m*_+y,t[5]=o*u,t[9]=h*_-f,t[2]=f*_-h,t[6]=a*u,t[10]=y*_+m}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(lbt,e,cbt)}lookAt(e,t,i){const s=this.elements;return ti.subVectors(e,t),ti.lengthSq()===0&&(ti.z=1),ti.normalize(),Xs.crossVectors(i,ti),Xs.lengthSq()===0&&(Math.abs(i.z)===1?ti.x+=1e-4:ti.z+=1e-4,ti.normalize(),Xs.crossVectors(i,ti)),Xs.normalize(),jc.crossVectors(ti,Xs),s[0]=Xs.x,s[4]=jc.x,s[8]=ti.x,s[1]=Xs.y,s[5]=jc.y,s[9]=ti.y,s[2]=Xs.z,s[6]=jc.z,s[10]=ti.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[4],c=i[8],d=i[12],u=i[1],_=i[5],m=i[9],h=i[13],f=i[2],y=i[6],b=i[10],g=i[14],E=i[3],v=i[7],S=i[11],R=i[15],C=s[0],A=s[4],I=s[8],x=s[12],M=s[1],G=s[5],V=s[9],ee=s[13],O=s[2],H=s[6],q=s[10],L=s[14],Y=s[3],ne=s[7],oe=s[11],ye=s[15];return r[0]=o*C+a*M+c*O+d*Y,r[4]=o*A+a*G+c*H+d*ne,r[8]=o*I+a*V+c*q+d*oe,r[12]=o*x+a*ee+c*L+d*ye,r[1]=u*C+_*M+m*O+h*Y,r[5]=u*A+_*G+m*H+h*ne,r[9]=u*I+_*V+m*q+h*oe,r[13]=u*x+_*ee+m*L+h*ye,r[2]=f*C+y*M+b*O+g*Y,r[6]=f*A+y*G+b*H+g*ne,r[10]=f*I+y*V+b*q+g*oe,r[14]=f*x+y*ee+b*L+g*ye,r[3]=E*C+v*M+S*O+R*Y,r[7]=E*A+v*G+S*H+R*ne,r[11]=E*I+v*V+S*q+R*oe,r[15]=E*x+v*ee+S*L+R*ye,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],_=e[6],m=e[10],h=e[14],f=e[3],y=e[7],b=e[11],g=e[15];return f*(+r*c*_-s*d*_-r*a*m+i*d*m+s*a*h-i*c*h)+y*(+t*c*h-t*d*m+r*o*m-s*o*h+s*d*u-r*c*u)+b*(+t*d*_-t*a*h-r*o*_+i*o*h+r*a*u-i*d*u)+g*(-s*a*u-t*c*_+t*a*m+s*o*_-i*o*m+i*c*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=e[9],m=e[10],h=e[11],f=e[12],y=e[13],b=e[14],g=e[15],E=_*b*d-y*m*d+y*c*h-a*b*h-_*c*g+a*m*g,v=f*m*d-u*b*d-f*c*h+o*b*h+u*c*g-o*m*g,S=u*y*d-f*_*d+f*a*h-o*y*h-u*a*g+o*_*g,R=f*_*c-u*y*c-f*a*m+o*y*m+u*a*b-o*_*b,C=t*E+i*v+s*S+r*R;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/C;return e[0]=E*A,e[1]=(y*m*r-_*b*r-y*s*h+i*b*h+_*s*g-i*m*g)*A,e[2]=(a*b*r-y*c*r+y*s*d-i*b*d-a*s*g+i*c*g)*A,e[3]=(_*c*r-a*m*r-_*s*d+i*m*d+a*s*h-i*c*h)*A,e[4]=v*A,e[5]=(u*b*r-f*m*r+f*s*h-t*b*h-u*s*g+t*m*g)*A,e[6]=(f*c*r-o*b*r-f*s*d+t*b*d+o*s*g-t*c*g)*A,e[7]=(o*m*r-u*c*r+u*s*d-t*m*d-o*s*h+t*c*h)*A,e[8]=S*A,e[9]=(f*_*r-u*y*r-f*i*h+t*y*h+u*i*g-t*_*g)*A,e[10]=(o*y*r-f*a*r+f*i*d-t*y*d-o*i*g+t*a*g)*A,e[11]=(u*a*r-o*_*r-u*i*d+t*_*d+o*i*h-t*a*h)*A,e[12]=R*A,e[13]=(u*y*s-f*_*s+f*i*m-t*y*m-u*i*b+t*_*b)*A,e[14]=(f*a*s-o*y*s-f*i*c+t*y*c+o*i*b-t*a*b)*A,e[15]=(o*_*s-u*a*s+u*i*c-t*_*c-o*i*m+t*a*m)*A,this}scale(e){const t=this.elements,i=e.x,s=e.y,r=e.z;return t[0]*=i,t[4]*=s,t[8]*=r,t[1]*=i,t[5]*=s,t[9]*=r,t[2]*=i,t[6]*=s,t[10]*=r,t[3]*=i,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),r=1-i,o=e.x,a=e.y,c=e.z,d=r*o,u=r*a;return this.set(d*o+i,d*a-s*c,d*c+s*a,0,d*a+s*c,u*a+i,u*c-s*o,0,d*c-s*a,u*c+s*o,r*c*c+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,r=t._x,o=t._y,a=t._z,c=t._w,d=r+r,u=o+o,_=a+a,m=r*d,h=r*u,f=r*_,y=o*u,b=o*_,g=a*_,E=c*d,v=c*u,S=c*_,R=i.x,C=i.y,A=i.z;return s[0]=(1-(y+g))*R,s[1]=(h+S)*R,s[2]=(f-v)*R,s[3]=0,s[4]=(h-S)*C,s[5]=(1-(m+g))*C,s[6]=(b+E)*C,s[7]=0,s[8]=(f+v)*A,s[9]=(b-E)*A,s[10]=(1-(m+y))*A,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let r=Io.set(s[0],s[1],s[2]).length();const o=Io.set(s[4],s[5],s[6]).length(),a=Io.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],ki.copy(this);const d=1/r,u=1/o,_=1/a;return ki.elements[0]*=d,ki.elements[1]*=d,ki.elements[2]*=d,ki.elements[4]*=u,ki.elements[5]*=u,ki.elements[6]*=u,ki.elements[8]*=_,ki.elements[9]*=_,ki.elements[10]*=_,t.setFromRotationMatrix(ki),i.x=r,i.y=o,i.z=a,this}makePerspective(e,t,i,s,r,o,a=Ms){const c=this.elements,d=2*r/(t-e),u=2*r/(i-s),_=(t+e)/(t-e),m=(i+s)/(i-s);let h,f;if(a===Ms)h=-(o+r)/(o-r),f=-2*o*r/(o-r);else if(a===Eu)h=-o/(o-r),f=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=_,c[12]=0,c[1]=0,c[5]=u,c[9]=m,c[13]=0,c[2]=0,c[6]=0,c[10]=h,c[14]=f,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,i,s,r,o,a=Ms){const c=this.elements,d=1/(t-e),u=1/(i-s),_=1/(o-r),m=(t+e)*d,h=(i+s)*u;let f,y;if(a===Ms)f=(o+r)*_,y=-2*_;else if(a===Eu)f=r*_,y=-1*_;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-m,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-h,c[2]=0,c[6]=0,c[10]=y,c[14]=-f,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const Io=new re,ki=new xt,lbt=new re(0,0,0),cbt=new re(1,1,1),Xs=new re,jc=new re,ti=new re,KC=new xt,jC=new Nr;class hp{constructor(e=0,t=0,i=0,s=hp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],c=s[1],d=s[5],u=s[9],_=s[2],m=s[6],h=s[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(m,d),this._z=0);break;case"YXZ":this._x=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-_,r),this._z=0);break;case"ZXY":this._x=Math.asin(On(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-_,h),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,r));break;case"ZYX":this._y=Math.asin(-On(_,-1,1)),Math.abs(_)<.9999999?(this._x=Math.atan2(m,h),this._z=Math.atan2(c,r)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(On(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-_,r)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(m,d),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return KC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(KC,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return jC.setFromEuler(this),this.setFromQuaternion(jC,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}hp.DEFAULT_ORDER="XYZ";class jN{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let dbt=0;const QC=new re,ko=new Nr,ys=new xt,Qc=new re,ll=new re,ubt=new re,pbt=new Nr,XC=new re(1,0,0),ZC=new re(0,1,0),JC=new re(0,0,1),fbt={type:"added"},_bt={type:"removed"};class Jt extends Ha{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:dbt++}),this.uuid=Gi(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Jt.DEFAULT_UP.clone();const e=new re,t=new hp,i=new Nr,s=new re(1,1,1);function r(){i.setFromEuler(t,!1)}function o(){t.setFromQuaternion(i,void 0,!1)}t._onChange(r),i._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:s},modelViewMatrix:{value:new xt},normalMatrix:{value:new Tt}}),this.matrix=new xt,this.matrixWorld=new xt,this.matrixAutoUpdate=Jt.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Jt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new jN,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return ko.setFromAxisAngle(e,t),this.quaternion.multiply(ko),this}rotateOnWorldAxis(e,t){return ko.setFromAxisAngle(e,t),this.quaternion.premultiply(ko),this}rotateX(e){return this.rotateOnAxis(XC,e)}rotateY(e){return this.rotateOnAxis(ZC,e)}rotateZ(e){return this.rotateOnAxis(JC,e)}translateOnAxis(e,t){return QC.copy(e).applyQuaternion(this.quaternion),this.position.add(QC.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(XC,e)}translateY(e){return this.translateOnAxis(ZC,e)}translateZ(e){return this.translateOnAxis(JC,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(ys.copy(this.matrixWorld).invert())}lookAt(e,t,i){e.isVector3?Qc.copy(e):Qc.set(e,t,i);const s=this.parent;this.updateWorldMatrix(!0,!1),ll.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ys.lookAt(ll,Qc,this.up):ys.lookAt(Qc,ll,this.up),this.quaternion.setFromRotationMatrix(ys),s&&(ys.extractRotation(s.matrixWorld),ko.setFromRotationMatrix(ys),this.quaternion.premultiply(ko.invert()))}add(e){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(fbt)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(_bt)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),ys.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),ys.multiply(e.parent.matrixWorld)),e.applyMatrix4(ys),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let i=0,s=this.children.length;i<s;i++){const o=this.children[i].getObjectByProperty(e,t);if(o!==void 0)return o}}getObjectsByProperty(e,t,i=[]){this[e]===t&&i.push(this);const s=this.children;for(let r=0,o=s.length;r<o;r++)s[r].getObjectsByProperty(e,t,i);return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ll,e,ubt),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ll,pbt,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].traverseVisible(e)}traverseAncestors(e){const t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let i=0,s=t.length;i<s;i++){const r=t[i];(r.matrixWorldAutoUpdate===!0||e===!0)&&r.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const i=this.parent;if(e===!0&&i!==null&&i.matrixWorldAutoUpdate===!0&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),t===!0){const s=this.children;for(let r=0,o=s.length;r<o;r++){const a=s[r];a.matrixWorldAutoUpdate===!0&&a.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=e===void 0||typeof e=="string",i={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const s={};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.castShadow===!0&&(s.castShadow=!0),this.receiveShadow===!0&&(s.receiveShadow=!0),this.visible===!1&&(s.visible=!1),this.frustumCulled===!1&&(s.frustumCulled=!1),this.renderOrder!==0&&(s.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const c=a.shapes;if(Array.isArray(c))for(let d=0,u=c.length;d<u;d++){const _=c[d];r(e.shapes,_)}else r(e.shapes,c)}}if(this.isSkinnedMesh&&(s.bindMode=this.bindMode,s.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(r(e.skeletons,this.skeleton),s.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let c=0,d=this.material.length;c<d;c++)a.push(r(e.materials,this.material[c]));s.material=a}else s.material=r(e.materials,this.material);if(this.children.length>0){s.children=[];for(let a=0;a<this.children.length;a++)s.children.push(this.children[a].toJSON(e).object)}if(this.animations.length>0){s.animations=[];for(let a=0;a<this.animations.length;a++){const c=this.animations[a];s.animations.push(r(e.animations,c))}}if(t){const a=o(e.geometries),c=o(e.materials),d=o(e.textures),u=o(e.images),_=o(e.shapes),m=o(e.skeletons),h=o(e.animations),f=o(e.nodes);a.length>0&&(i.geometries=a),c.length>0&&(i.materials=c),d.length>0&&(i.textures=d),u.length>0&&(i.images=u),_.length>0&&(i.shapes=_),m.length>0&&(i.skeletons=m),h.length>0&&(i.animations=h),f.length>0&&(i.nodes=f)}return i.object=s,i;function o(a){const c=[];for(const d in a){const u=a[d];delete u.metadata,c.push(u)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i<e.children.length;i++){const s=e.children[i];this.add(s.clone())}return this}}Jt.DEFAULT_UP=new re(0,1,0);Jt.DEFAULT_MATRIX_AUTO_UPDATE=!0;Jt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Di=new re,Es=new re,rg=new re,vs=new re,Do=new re,Lo=new re,ew=new re,og=new re,ag=new re,lg=new re;let Xc=!1;class Fi{constructor(e=new re,t=new re,i=new re){this.a=e,this.b=t,this.c=i}static getNormal(e,t,i,s){s.subVectors(i,t),Di.subVectors(e,t),s.cross(Di);const r=s.lengthSq();return r>0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,i,s,r){Di.subVectors(s,t),Es.subVectors(i,t),rg.subVectors(e,t);const o=Di.dot(Di),a=Di.dot(Es),c=Di.dot(rg),d=Es.dot(Es),u=Es.dot(rg),_=o*d-a*a;if(_===0)return r.set(-2,-1,-1);const m=1/_,h=(d*c-a*u)*m,f=(o*u-a*c)*m;return r.set(1-h-f,f,h)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,vs),vs.x>=0&&vs.y>=0&&vs.x+vs.y<=1}static getUV(e,t,i,s,r,o,a,c){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),this.getInterpolation(e,t,i,s,r,o,a,c)}static getInterpolation(e,t,i,s,r,o,a,c){return this.getBarycoord(e,t,i,s,vs),c.setScalar(0),c.addScaledVector(r,vs.x),c.addScaledVector(o,vs.y),c.addScaledVector(a,vs.z),c}static isFrontFacing(e,t,i,s){return Di.subVectors(i,t),Es.subVectors(e,t),Di.cross(Es).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Di.subVectors(this.c,this.b),Es.subVectors(this.a,this.b),Di.cross(Es).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Fi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Fi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,i,s,r){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),Fi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}getInterpolation(e,t,i,s,r){return Fi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}containsPoint(e){return Fi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Fi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,r=this.c;let o,a;Do.subVectors(s,i),Lo.subVectors(r,i),og.subVectors(e,i);const c=Do.dot(og),d=Lo.dot(og);if(c<=0&&d<=0)return t.copy(i);ag.subVectors(e,s);const u=Do.dot(ag),_=Lo.dot(ag);if(u>=0&&_<=u)return t.copy(s);const m=c*_-u*d;if(m<=0&&c>=0&&u<=0)return o=c/(c-u),t.copy(i).addScaledVector(Do,o);lg.subVectors(e,r);const h=Do.dot(lg),f=Lo.dot(lg);if(f>=0&&h<=f)return t.copy(r);const y=h*d-c*f;if(y<=0&&d>=0&&f<=0)return a=d/(d-f),t.copy(i).addScaledVector(Lo,a);const b=u*f-h*_;if(b<=0&&_-u>=0&&h-f>=0)return ew.subVectors(r,s),a=(_-u)/(_-u+(h-f)),t.copy(s).addScaledVector(ew,a);const g=1/(b+y+m);return o=y*g,a=m*g,t.copy(i).addScaledVector(Do,o).addScaledVector(Lo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const QN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zs={h:0,s:0,l:0},Zc={h:0,s:0,l:0};function cg(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class pt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Lt.toWorkingColorSpace(this,t),this}setRGB(e,t,i,s=Lt.workingColorSpace){return this.r=e,this.g=t,this.b=i,Lt.toWorkingColorSpace(this,s),this}setHSL(e,t,i,s=Lt.workingColorSpace){if(e=_y(e,1),t=On(t,0,1),i=On(i,0,1),t===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+t):i+t-i*t,o=2*i-r;this.r=cg(o,r,e+1/3),this.g=cg(o,r,e),this.b=cg(o,r,e-1/3)}return Lt.toWorkingColorSpace(this,s),this}setStyle(e,t=nn){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=nn){const i=QN[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=oa(e.r),this.g=oa(e.g),this.b=oa(e.b),this}copyLinearToSRGB(e){return this.r=Xh(e.r),this.g=Xh(e.g),this.b=Xh(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Lt.fromWorkingColorSpace(Mn.copy(this),e),Math.round(On(Mn.r*255,0,255))*65536+Math.round(On(Mn.g*255,0,255))*256+Math.round(On(Mn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Lt.workingColorSpace){Lt.fromWorkingColorSpace(Mn.copy(this),t);const i=Mn.r,s=Mn.g,r=Mn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const _=o-a;switch(d=u<=.5?_/(o+a):_/(2-o-a),o){case i:c=(s-r)/_+(s<r?6:0);break;case s:c=(r-i)/_+2;break;case r:c=(i-s)/_+4;break}c/=6}return e.h=c,e.s=d,e.l=u,e}getRGB(e,t=Lt.workingColorSpace){return Lt.fromWorkingColorSpace(Mn.copy(this),t),e.r=Mn.r,e.g=Mn.g,e.b=Mn.b,e}getStyle(e=nn){Lt.fromWorkingColorSpace(Mn.copy(this),e);const t=Mn.r,i=Mn.g,s=Mn.b;return e!==nn?`color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${s.toFixed(3)})`:`rgb(${Math.round(t*255)},${Math.round(i*255)},${Math.round(s*255)})`}offsetHSL(e,t,i){return this.getHSL(Zs),this.setHSL(Zs.h+e,Zs.s+t,Zs.l+i)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,i){return this.r=e.r+(t.r-e.r)*i,this.g=e.g+(t.g-e.g)*i,this.b=e.b+(t.b-e.b)*i,this}lerpHSL(e,t){this.getHSL(Zs),e.getHSL(Zc);const i=Il(Zs.h,Zc.h,t),s=Il(Zs.s,Zc.s,t),r=Il(Zs.l,Zc.l,t);return this.setHSL(i,s,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,i=this.g,s=this.b,r=e.elements;return this.r=r[0]*t+r[3]*i+r[6]*s,this.g=r[1]*t+r[4]*i+r[7]*s,this.b=r[2]*t+r[5]*i+r[8]*s,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Mn=new pt;pt.NAMES=QN;let mbt=0;class Vi extends Ha{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:mbt++}),this.uuid=Gi(),this.name="",this.type="Material",this.blending=ra,this.side=Fs,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=fb,this.blendDst=_b,this.blendEquation=$r,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new pt(0,0,0),this.blendAlpha=0,this.depthFunc=mu,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=VC,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Ro,this.stencilZFail=Ro,this.stencilZPass=Ro,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==ra&&(i.blending=this.blending),this.side!==Fs&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==fb&&(i.blendSrc=this.blendSrc),this.blendDst!==_b&&(i.blendDst=this.blendDst),this.blendEquation!==$r&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==mu&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==VC&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ro&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Ro&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Ro&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const c=r[a];delete c.metadata,o.push(c)}return o}if(t){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=t[r].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class _r extends Vi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=dy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const rn=new re,Jc=new Rt;class zn{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=yb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=As,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,r=this.itemSize;s<r;s++)this.array[e+s]=t.array[i+s];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,i=this.count;t<i;t++)Jc.fromBufferAttribute(this,t),Jc.applyMatrix3(e),this.setXY(t,Jc.x,Jc.y);else if(this.itemSize===3)for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.applyMatrix3(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}applyMatrix4(e){for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.applyMatrix4(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}applyNormalMatrix(e){for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.applyNormalMatrix(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}transformDirection(e){for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.transformDirection(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let i=this.array[e*this.itemSize+t];return this.normalized&&(i=es(i,this.array)),i}setComponent(e,t,i){return this.normalized&&(i=Bt(i,this.array)),this.array[e*this.itemSize+t]=i,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=es(t,this.array)),t}setX(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=es(t,this.array)),t}setY(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=es(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=es(t,this.array)),t}setW(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,i){return e*=this.itemSize,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array)),this.array[e+0]=t,this.array[e+1]=i,this}setXYZ(e,t,i,s){return e*=this.itemSize,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=s,this}setXYZW(e,t,i,s,r){return e*=this.itemSize,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array),r=Bt(r,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=s,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==yb&&(e.usage=this.usage),e}}class XN extends zn{constructor(e,t,i){super(new Uint16Array(e),t,i)}}class ZN extends zn{constructor(e,t,i){super(new Uint32Array(e),t,i)}}class ks extends zn{constructor(e,t,i){super(new Float32Array(e),t,i)}}let hbt=0;const pi=new xt,dg=new Jt,Po=new re,ni=new Gs,cl=new Gs,mn=new re;class fs extends Ha{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:hbt++}),this.uuid=Gi(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(YN(e)?ZN:XN)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,i=0){this.groups.push({start:e,count:t,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const r=new Tt().getNormalMatrix(e);i.applyNormalMatrix(r),i.needsUpdate=!0}const s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(e),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return pi.makeRotationFromQuaternion(e),this.applyMatrix4(pi),this}rotateX(e){return pi.makeRotationX(e),this.applyMatrix4(pi),this}rotateY(e){return pi.makeRotationY(e),this.applyMatrix4(pi),this}rotateZ(e){return pi.makeRotationZ(e),this.applyMatrix4(pi),this}translate(e,t,i){return pi.makeTranslation(e,t,i),this.applyMatrix4(pi),this}scale(e,t,i){return pi.makeScale(e,t,i),this.applyMatrix4(pi),this}lookAt(e){return dg.lookAt(e),dg.updateMatrix(),this.applyMatrix4(dg.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Po).negate(),this.translate(Po.x,Po.y,Po.z),this}setFromPoints(e){const t=[];for(let i=0,s=e.length;i<s;i++){const r=e[i];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new ks(t,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Gs);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingBox.set(new re(-1/0,-1/0,-1/0),new re(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let i=0,s=t.length;i<s;i++){const r=t[i];ni.setFromBufferAttribute(r),this.morphTargetsRelative?(mn.addVectors(this.boundingBox.min,ni.min),this.boundingBox.expandByPoint(mn),mn.addVectors(this.boundingBox.max,ni.max),this.boundingBox.expandByPoint(mn)):(this.boundingBox.expandByPoint(ni.min),this.boundingBox.expandByPoint(ni.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new ps);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingSphere.set(new re,1/0);return}if(e){const i=this.boundingSphere.center;if(ni.setFromBufferAttribute(e),t)for(let r=0,o=t.length;r<o;r++){const a=t[r];cl.setFromBufferAttribute(a),this.morphTargetsRelative?(mn.addVectors(ni.min,cl.min),ni.expandByPoint(mn),mn.addVectors(ni.max,cl.max),ni.expandByPoint(mn)):(ni.expandByPoint(cl.min),ni.expandByPoint(cl.max))}ni.getCenter(i);let s=0;for(let r=0,o=e.count;r<o;r++)mn.fromBufferAttribute(e,r),s=Math.max(s,i.distanceToSquared(mn));if(t)for(let r=0,o=t.length;r<o;r++){const a=t[r],c=this.morphTargetsRelative;for(let d=0,u=a.count;d<u;d++)mn.fromBufferAttribute(a,d),c&&(Po.fromBufferAttribute(e,d),mn.add(Po)),s=Math.max(s,i.distanceToSquared(mn))}this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=e.array,s=t.position.array,r=t.normal.array,o=t.uv.array,a=s.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new zn(new Float32Array(4*a),4));const c=this.getAttribute("tangent").array,d=[],u=[];for(let M=0;M<a;M++)d[M]=new re,u[M]=new re;const _=new re,m=new re,h=new re,f=new Rt,y=new Rt,b=new Rt,g=new re,E=new re;function v(M,G,V){_.fromArray(s,M*3),m.fromArray(s,G*3),h.fromArray(s,V*3),f.fromArray(o,M*2),y.fromArray(o,G*2),b.fromArray(o,V*2),m.sub(_),h.sub(_),y.sub(f),b.sub(f);const ee=1/(y.x*b.y-b.x*y.y);isFinite(ee)&&(g.copy(m).multiplyScalar(b.y).addScaledVector(h,-y.y).multiplyScalar(ee),E.copy(h).multiplyScalar(y.x).addScaledVector(m,-b.x).multiplyScalar(ee),d[M].add(g),d[G].add(g),d[V].add(g),u[M].add(E),u[G].add(E),u[V].add(E))}let S=this.groups;S.length===0&&(S=[{start:0,count:i.length}]);for(let M=0,G=S.length;M<G;++M){const V=S[M],ee=V.start,O=V.count;for(let H=ee,q=ee+O;H<q;H+=3)v(i[H+0],i[H+1],i[H+2])}const R=new re,C=new re,A=new re,I=new re;function x(M){A.fromArray(r,M*3),I.copy(A);const G=d[M];R.copy(G),R.sub(A.multiplyScalar(A.dot(G))).normalize(),C.crossVectors(I,G);const ee=C.dot(u[M])<0?-1:1;c[M*4]=R.x,c[M*4+1]=R.y,c[M*4+2]=R.z,c[M*4+3]=ee}for(let M=0,G=S.length;M<G;++M){const V=S[M],ee=V.start,O=V.count;for(let H=ee,q=ee+O;H<q;H+=3)x(i[H+0]),x(i[H+1]),x(i[H+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(t!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new zn(new Float32Array(t.count*3),3),this.setAttribute("normal",i);else for(let m=0,h=i.count;m<h;m++)i.setXYZ(m,0,0,0);const s=new re,r=new re,o=new re,a=new re,c=new re,d=new re,u=new re,_=new re;if(e)for(let m=0,h=e.count;m<h;m+=3){const f=e.getX(m+0),y=e.getX(m+1),b=e.getX(m+2);s.fromBufferAttribute(t,f),r.fromBufferAttribute(t,y),o.fromBufferAttribute(t,b),u.subVectors(o,r),_.subVectors(s,r),u.cross(_),a.fromBufferAttribute(i,f),c.fromBufferAttribute(i,y),d.fromBufferAttribute(i,b),a.add(u),c.add(u),d.add(u),i.setXYZ(f,a.x,a.y,a.z),i.setXYZ(y,c.x,c.y,c.z),i.setXYZ(b,d.x,d.y,d.z)}else for(let m=0,h=t.count;m<h;m+=3)s.fromBufferAttribute(t,m+0),r.fromBufferAttribute(t,m+1),o.fromBufferAttribute(t,m+2),u.subVectors(o,r),_.subVectors(s,r),u.cross(_),i.setXYZ(m+0,u.x,u.y,u.z),i.setXYZ(m+1,u.x,u.y,u.z),i.setXYZ(m+2,u.x,u.y,u.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,i=e.count;t<i;t++)mn.fromBufferAttribute(e,t),mn.normalize(),e.setXYZ(t,mn.x,mn.y,mn.z)}toNonIndexed(){function e(a,c){const d=a.array,u=a.itemSize,_=a.normalized,m=new d.constructor(c.length*u);let h=0,f=0;for(let y=0,b=c.length;y<b;y++){a.isInterleavedBufferAttribute?h=c[y]*a.data.stride+a.offset:h=c[y]*u;for(let g=0;g<u;g++)m[f++]=d[h++]}return new zn(m,u,_)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new fs,i=this.index.array,s=this.attributes;for(const a in s){const c=s[a],d=e(c,i);t.setAttribute(a,d)}const r=this.morphAttributes;for(const a in r){const c=[],d=r[a];for(let u=0,_=d.length;u<_;u++){const m=d[u],h=e(m,i);c.push(h)}t.morphAttributes[a]=c}t.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,c=o.length;a<c;a++){const d=o[a];t.addGroup(d.start,d.count,d.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const d in c)c[d]!==void 0&&(e[d]=c[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const c in i){const d=i[c];e.data.attributes[c]=d.toJSON(e.data)}const s={};let r=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let _=0,m=d.length;_<m;_++){const h=d[_];u.push(h.toJSON(e.data))}u.length>0&&(s[c]=u,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const s=e.attributes;for(const d in s){const u=s[d];this.setAttribute(d,u.clone(t))}const r=e.morphAttributes;for(const d in r){const u=[],_=r[d];for(let m=0,h=_.length;m<h;m++)u.push(_[m].clone(t));this.morphAttributes[d]=u}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let d=0,u=o.length;d<u;d++){const _=o[d];this.addGroup(_.start,_.count,_.materialIndex)}const a=e.boundingBox;a!==null&&(this.boundingBox=a.clone());const c=e.boundingSphere;return c!==null&&(this.boundingSphere=c.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const tw=new xt,Fr=new mp,ed=new ps,nw=new re,Fo=new re,Uo=new re,Bo=new re,ug=new re,td=new re,nd=new Rt,id=new Rt,sd=new Rt,iw=new re,sw=new re,rw=new re,rd=new re,od=new re;class Vn extends Jt{constructor(e=new fs,t=new _r){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}getVertexPosition(e,t){const i=this.geometry,s=i.attributes.position,r=i.morphAttributes.position,o=i.morphTargetsRelative;t.fromBufferAttribute(s,e);const a=this.morphTargetInfluences;if(r&&a){td.set(0,0,0);for(let c=0,d=r.length;c<d;c++){const u=a[c],_=r[c];u!==0&&(ug.fromBufferAttribute(_,e),o?td.addScaledVector(ug,u):td.addScaledVector(ug.sub(t),u))}t.add(td)}return t}raycast(e,t){const i=this.geometry,s=this.material,r=this.matrixWorld;s!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),ed.copy(i.boundingSphere),ed.applyMatrix4(r),Fr.copy(e.ray).recast(e.near),!(ed.containsPoint(Fr.origin)===!1&&(Fr.intersectSphere(ed,nw)===null||Fr.origin.distanceToSquared(nw)>(e.far-e.near)**2))&&(tw.copy(r).invert(),Fr.copy(e.ray).applyMatrix4(tw),!(i.boundingBox!==null&&Fr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,Fr)))}_computeIntersections(e,t,i){let s;const r=this.geometry,o=this.material,a=r.index,c=r.attributes.position,d=r.attributes.uv,u=r.attributes.uv1,_=r.attributes.normal,m=r.groups,h=r.drawRange;if(a!==null)if(Array.isArray(o))for(let f=0,y=m.length;f<y;f++){const b=m[f],g=o[b.materialIndex],E=Math.max(b.start,h.start),v=Math.min(a.count,Math.min(b.start+b.count,h.start+h.count));for(let S=E,R=v;S<R;S+=3){const C=a.getX(S),A=a.getX(S+1),I=a.getX(S+2);s=ad(this,g,e,i,d,u,_,C,A,I),s&&(s.faceIndex=Math.floor(S/3),s.face.materialIndex=b.materialIndex,t.push(s))}}else{const f=Math.max(0,h.start),y=Math.min(a.count,h.start+h.count);for(let b=f,g=y;b<g;b+=3){const E=a.getX(b),v=a.getX(b+1),S=a.getX(b+2);s=ad(this,o,e,i,d,u,_,E,v,S),s&&(s.faceIndex=Math.floor(b/3),t.push(s))}}else if(c!==void 0)if(Array.isArray(o))for(let f=0,y=m.length;f<y;f++){const b=m[f],g=o[b.materialIndex],E=Math.max(b.start,h.start),v=Math.min(c.count,Math.min(b.start+b.count,h.start+h.count));for(let S=E,R=v;S<R;S+=3){const C=S,A=S+1,I=S+2;s=ad(this,g,e,i,d,u,_,C,A,I),s&&(s.faceIndex=Math.floor(S/3),s.face.materialIndex=b.materialIndex,t.push(s))}}else{const f=Math.max(0,h.start),y=Math.min(c.count,h.start+h.count);for(let b=f,g=y;b<g;b+=3){const E=b,v=b+1,S=b+2;s=ad(this,o,e,i,d,u,_,E,v,S),s&&(s.faceIndex=Math.floor(b/3),t.push(s))}}}}function gbt(n,e,t,i,s,r,o,a){let c;if(e.side===Zn?c=i.intersectTriangle(o,r,s,!0,a):c=i.intersectTriangle(s,r,o,e.side===Fs,a),c===null)return null;od.copy(a),od.applyMatrix4(n.matrixWorld);const d=t.ray.origin.distanceTo(od);return d<t.near||d>t.far?null:{distance:d,point:od.clone(),object:n}}function ad(n,e,t,i,s,r,o,a,c,d){n.getVertexPosition(a,Fo),n.getVertexPosition(c,Uo),n.getVertexPosition(d,Bo);const u=gbt(n,e,t,i,Fo,Uo,Bo,rd);if(u){s&&(nd.fromBufferAttribute(s,a),id.fromBufferAttribute(s,c),sd.fromBufferAttribute(s,d),u.uv=Fi.getInterpolation(rd,Fo,Uo,Bo,nd,id,sd,new Rt)),r&&(nd.fromBufferAttribute(r,a),id.fromBufferAttribute(r,c),sd.fromBufferAttribute(r,d),u.uv1=Fi.getInterpolation(rd,Fo,Uo,Bo,nd,id,sd,new Rt),u.uv2=u.uv1),o&&(iw.fromBufferAttribute(o,a),sw.fromBufferAttribute(o,c),rw.fromBufferAttribute(o,d),u.normal=Fi.getInterpolation(rd,Fo,Uo,Bo,iw,sw,rw,new re),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const _={a,b:c,c:d,normal:new re,materialIndex:0};Fi.getNormal(Fo,Uo,Bo,_.normal),u.face=_}return u}class Er extends fs{constructor(e=1,t=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const c=[],d=[],u=[],_=[];let m=0,h=0;f("z","y","x",-1,-1,i,t,e,o,r,0),f("z","y","x",1,-1,i,t,-e,o,r,1),f("x","z","y",1,1,e,i,t,s,o,2),f("x","z","y",1,-1,e,i,-t,s,o,3),f("x","y","z",1,-1,e,t,i,s,r,4),f("x","y","z",-1,-1,e,t,-i,s,r,5),this.setIndex(c),this.setAttribute("position",new ks(d,3)),this.setAttribute("normal",new ks(u,3)),this.setAttribute("uv",new ks(_,2));function f(y,b,g,E,v,S,R,C,A,I,x){const M=S/A,G=R/I,V=S/2,ee=R/2,O=C/2,H=A+1,q=I+1;let L=0,Y=0;const ne=new re;for(let oe=0;oe<q;oe++){const ye=oe*G-ee;for(let xe=0;xe<H;xe++){const le=xe*M-V;ne[y]=le*E,ne[b]=ye*v,ne[g]=O,d.push(ne.x,ne.y,ne.z),ne[y]=0,ne[b]=0,ne[g]=C>0?1:-1,u.push(ne.x,ne.y,ne.z),_.push(xe/A),_.push(1-oe/I),L+=1}}for(let oe=0;oe<I;oe++)for(let ye=0;ye<A;ye++){const xe=m+ye+H*oe,le=m+ye+H*(oe+1),ve=m+(ye+1)+H*(oe+1),Oe=m+(ye+1)+H*oe;c.push(xe,le,Oe),c.push(le,ve,Oe),Y+=6}a.addGroup(h,Y,x),h+=Y,m+=L}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Er(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Ca(n){const e={};for(const t in n){e[t]={};for(const i in n[t]){const s=n[t][i];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture||s.isQuaternion)?s.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[t][i]=null):e[t][i]=s.clone():Array.isArray(s)?e[t][i]=s.slice():e[t][i]=s}}return e}function Fn(n){const e={};for(let t=0;t<n.length;t++){const i=Ca(n[t]);for(const s in i)e[s]=i[s]}return e}function bbt(n){const e=[];for(let t=0;t<n.length;t++)e.push(n[t].clone());return e}function JN(n){return n.getRenderTarget()===null?n.outputColorSpace:Lt.workingColorSpace}const ybt={clone:Ca,merge:Fn};var Ebt=`void main() {
+ */const cy="159",Bht=0,oC=1,Ght=2,IN=1,Vht=2,xs=3,Fs=0,Zn=1,Ji=2,gr=0,ra=1,aC=2,lC=3,cC=4,zht=5,$r=100,Hht=101,qht=102,dC=103,uC=104,Yht=200,$ht=201,Wht=202,Kht=203,fb=204,_b=205,jht=206,Qht=207,Xht=208,Zht=209,Jht=210,egt=211,tgt=212,ngt=213,igt=214,sgt=0,rgt=1,ogt=2,mu=3,agt=4,lgt=5,cgt=6,dgt=7,dy=0,ugt=1,pgt=2,br=0,fgt=1,_gt=2,mgt=3,hgt=4,ggt=5,pC="attached",bgt="detached",kN=300,ya=301,Ea=302,mb=303,hb=304,fp=306,va=1e3,hi=1001,hu=1002,gn=1003,gb=1004,kd=1005,Wn=1006,DN=1007,_o=1008,yr=1009,ygt=1010,Egt=1011,uy=1012,LN=1013,fr=1014,As=1015,Ql=1016,PN=1017,FN=1018,no=1020,vgt=1021,gi=1023,Sgt=1024,Tgt=1025,io=1026,Sa=1027,xgt=1028,UN=1029,Cgt=1030,BN=1031,GN=1033,qh=33776,Yh=33777,$h=33778,Wh=33779,fC=35840,_C=35841,mC=35842,hC=35843,VN=36196,gC=37492,bC=37496,yC=37808,EC=37809,vC=37810,SC=37811,TC=37812,xC=37813,CC=37814,wC=37815,RC=37816,AC=37817,MC=37818,NC=37819,OC=37820,IC=37821,Kh=36492,kC=36494,DC=36495,wgt=36283,LC=36284,PC=36285,FC=36286,Xl=2300,Ta=2301,jh=2302,UC=2400,BC=2401,GC=2402,Rgt=2500,Agt=0,zN=1,bb=2,HN=3e3,so=3001,Mgt=3200,Ngt=3201,py=0,Ogt=1,bi="",nn="srgb",Cn="srgb-linear",fy="display-p3",_p="display-p3-linear",gu="linear",jt="srgb",bu="rec709",yu="p3",Ro=7680,VC=519,Igt=512,kgt=513,Dgt=514,qN=515,Lgt=516,Pgt=517,Fgt=518,Ugt=519,yb=35044,zC="300 es",Eb=1035,Ms=2e3,Eu=2001;class Ha{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(t)===-1&&i[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const s=this._listeners[e];if(s!==void 0){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const s=i.slice(0);for(let r=0,o=s.length;r<o;r++)s[r].call(this,e);e.target=null}}}const An=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let HC=1234567;const Ol=Math.PI/180,xa=180/Math.PI;function Gi(){const n=Math.random()*4294967295|0,e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(An[n&255]+An[n>>8&255]+An[n>>16&255]+An[n>>24&255]+"-"+An[e&255]+An[e>>8&255]+"-"+An[e>>16&15|64]+An[e>>24&255]+"-"+An[t&63|128]+An[t>>8&255]+"-"+An[t>>16&255]+An[t>>24&255]+An[i&255]+An[i>>8&255]+An[i>>16&255]+An[i>>24&255]).toLowerCase()}function On(n,e,t){return Math.max(e,Math.min(t,n))}function _y(n,e){return(n%e+e)%e}function Bgt(n,e,t,i,s){return i+(n-e)*(s-i)/(t-e)}function Ggt(n,e,t){return n!==e?(t-n)/(e-n):0}function Il(n,e,t){return(1-t)*n+t*e}function Vgt(n,e,t,i){return Il(n,e,1-Math.exp(-t*i))}function zgt(n,e=1){return e-Math.abs(_y(n,e*2)-e)}function Hgt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function qgt(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function Ygt(n,e){return n+Math.floor(Math.random()*(e-n+1))}function $gt(n,e){return n+Math.random()*(e-n)}function Wgt(n){return n*(.5-Math.random())}function Kgt(n){n!==void 0&&(HC=n);let e=HC+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function jgt(n){return n*Ol}function Qgt(n){return n*xa}function vb(n){return(n&n-1)===0&&n!==0}function Xgt(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function vu(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Zgt(n,e,t,i,s){const r=Math.cos,o=Math.sin,a=r(t/2),c=o(t/2),d=r((e+i)/2),u=o((e+i)/2),_=r((e-i)/2),m=o((e-i)/2),h=r((i-e)/2),f=o((i-e)/2);switch(s){case"XYX":n.set(a*u,c*_,c*m,a*d);break;case"YZY":n.set(c*m,a*u,c*_,a*d);break;case"ZXZ":n.set(c*_,c*m,a*u,a*d);break;case"XZX":n.set(a*u,c*f,c*h,a*d);break;case"YXY":n.set(c*h,a*u,c*f,a*d);break;case"ZYZ":n.set(c*f,c*h,a*u,a*d);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+s)}}function es(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Bt(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const Jgt={DEG2RAD:Ol,RAD2DEG:xa,generateUUID:Gi,clamp:On,euclideanModulo:_y,mapLinear:Bgt,inverseLerp:Ggt,lerp:Il,damp:Vgt,pingpong:zgt,smoothstep:Hgt,smootherstep:qgt,randInt:Ygt,randFloat:$gt,randFloatSpread:Wgt,seededRandom:Kgt,degToRad:jgt,radToDeg:Qgt,isPowerOfTwo:vb,ceilPowerOfTwo:Xgt,floorPowerOfTwo:vu,setQuaternionFromProperEuler:Zgt,normalize:Bt,denormalize:es};class Rt{constructor(e=0,t=0){Rt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,i=this.y,s=e.elements;return this.x=s[0]*t+s[3]*i+s[6],this.y=s[1]*t+s[4]*i+s[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y;return t*t+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const i=Math.cos(t),s=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*i-o*s+e.x,this.y=r*s+o*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Tt{constructor(e,t,i,s,r,o,a,c,d){Tt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,c,d)}set(e,t,i,s,r,o,a,c,d){const u=this.elements;return u[0]=e,u[1]=s,u[2]=a,u[3]=t,u[4]=r,u[5]=c,u[6]=i,u[7]=o,u[8]=d,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],this}extractBasis(e,t,i){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[3],c=i[6],d=i[1],u=i[4],_=i[7],m=i[2],h=i[5],f=i[8],y=s[0],b=s[3],g=s[6],E=s[1],v=s[4],S=s[7],R=s[2],C=s[5],A=s[8];return r[0]=o*y+a*E+c*R,r[3]=o*b+a*v+c*C,r[6]=o*g+a*S+c*A,r[1]=d*y+u*E+_*R,r[4]=d*b+u*v+_*C,r[7]=d*g+u*S+_*A,r[2]=m*y+h*E+f*R,r[5]=m*b+h*v+f*C,r[8]=m*g+h*S+f*A,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8];return t*o*u-t*a*d-i*r*u+i*a*c+s*r*d-s*o*c}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=u*o-a*d,m=a*c-u*r,h=d*r-o*c,f=t*_+i*m+s*h;if(f===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/f;return e[0]=_*y,e[1]=(s*d-u*i)*y,e[2]=(a*i-s*o)*y,e[3]=m*y,e[4]=(u*t-s*c)*y,e[5]=(s*r-a*t)*y,e[6]=h*y,e[7]=(i*c-d*t)*y,e[8]=(o*t-i*r)*y,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,i,s,r,o,a){const c=Math.cos(r),d=Math.sin(r);return this.set(i*c,i*d,-i*(c*o+d*a)+o+e,-s*d,s*c,-s*(-d*o+c*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(Qh.makeScale(e,t)),this}rotate(e){return this.premultiply(Qh.makeRotation(-e)),this}translate(e,t){return this.premultiply(Qh.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,i,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<9;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<9;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Qh=new Tt;function YN(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}function Zl(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function ebt(){const n=Zl("canvas");return n.style.display="block",n}const qC={};function kl(n){n in qC||(qC[n]=!0,console.warn(n))}const YC=new Tt().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),$C=new Tt().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Hc={[Cn]:{transfer:gu,primaries:bu,toReference:n=>n,fromReference:n=>n},[nn]:{transfer:jt,primaries:bu,toReference:n=>n.convertSRGBToLinear(),fromReference:n=>n.convertLinearToSRGB()},[_p]:{transfer:gu,primaries:yu,toReference:n=>n.applyMatrix3($C),fromReference:n=>n.applyMatrix3(YC)},[fy]:{transfer:jt,primaries:yu,toReference:n=>n.convertSRGBToLinear().applyMatrix3($C),fromReference:n=>n.applyMatrix3(YC).convertLinearToSRGB()}},tbt=new Set([Cn,_p]),Lt={enabled:!0,_workingColorSpace:Cn,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(n){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!n},get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(n){if(!tbt.has(n))throw new Error(`Unsupported working color space, "${n}".`);this._workingColorSpace=n},convert:function(n,e,t){if(this.enabled===!1||e===t||!e||!t)return n;const i=Hc[e].toReference,s=Hc[t].fromReference;return s(i(n))},fromWorkingColorSpace:function(n,e){return this.convert(n,this._workingColorSpace,e)},toWorkingColorSpace:function(n,e){return this.convert(n,e,this._workingColorSpace)},getPrimaries:function(n){return Hc[n].primaries},getTransfer:function(n){return n===bi?gu:Hc[n].transfer}};function oa(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Xh(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let Ao;class $N{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{Ao===void 0&&(Ao=Zl("canvas")),Ao.width=e.width,Ao.height=e.height;const i=Ao.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),t=Ao}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Zl("canvas");t.width=e.width,t.height=e.height;const i=t.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const s=i.getImageData(0,0,e.width,e.height),r=s.data;for(let o=0;o<r.length;o++)r[o]=oa(r[o]/255)*255;return i.putImageData(s,0,0),t}else if(e.data){const t=e.data.slice(0);for(let i=0;i<t.length;i++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[i]=Math.floor(oa(t[i]/255)*255):t[i]=oa(t[i]);return{data:t,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let nbt=0;class WN{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:nbt++}),this.uuid=Gi(),this.data=e,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},s=this.data;if(s!==null){let r;if(Array.isArray(s)){r=[];for(let o=0,a=s.length;o<a;o++)s[o].isDataTexture?r.push(Zh(s[o].image)):r.push(Zh(s[o]))}else r=Zh(s);i.url=r}return t||(e.images[this.uuid]=i),i}}function Zh(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&n instanceof ImageBitmap?$N.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let ibt=0;class xn extends Ha{constructor(e=xn.DEFAULT_IMAGE,t=xn.DEFAULT_MAPPING,i=hi,s=hi,r=Wn,o=_o,a=gi,c=yr,d=xn.DEFAULT_ANISOTROPY,u=bi){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:ibt++}),this.uuid=Gi(),this.name="",this.source=new WN(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=i,this.wrapT=s,this.magFilter=r,this.minFilter=o,this.anisotropy=d,this.format=a,this.internalFormat=null,this.type=c,this.offset=new Rt(0,0),this.repeat=new Rt(1,1),this.center=new Rt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Tt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,typeof u=="string"?this.colorSpace=u:(kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=u===so?nn:bi),this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),t||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==kN)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case va:e.x=e.x-Math.floor(e.x);break;case hi:e.x=e.x<0?0:1;break;case hu:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case va:e.y=e.y-Math.floor(e.y);break;case hi:e.y=e.y<0?0:1;break;case hu:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}get encoding(){return kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace===nn?so:HN}set encoding(e){kl("THREE.Texture: Property .encoding has been replaced by .colorSpace."),this.colorSpace=e===so?nn:bi}}xn.DEFAULT_IMAGE=null;xn.DEFAULT_MAPPING=kN;xn.DEFAULT_ANISOTROPY=1;class $t{constructor(e=0,t=0,i=0,s=1){$t.prototype.isVector4=!0,this.x=e,this.y=t,this.z=i,this.w=s}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,i,s){return this.x=e,this.y=t,this.z=i,this.w=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*i+o[8]*s+o[12]*r,this.y=o[1]*t+o[5]*i+o[9]*s+o[13]*r,this.z=o[2]*t+o[6]*i+o[10]*s+o[14]*r,this.w=o[3]*t+o[7]*i+o[11]*s+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,i,s,r;const c=e.elements,d=c[0],u=c[4],_=c[8],m=c[1],h=c[5],f=c[9],y=c[2],b=c[6],g=c[10];if(Math.abs(u-m)<.01&&Math.abs(_-y)<.01&&Math.abs(f-b)<.01){if(Math.abs(u+m)<.1&&Math.abs(_+y)<.1&&Math.abs(f+b)<.1&&Math.abs(d+h+g-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(d+1)/2,S=(h+1)/2,R=(g+1)/2,C=(u+m)/4,A=(_+y)/4,I=(f+b)/4;return v>S&&v>R?v<.01?(i=0,s=.707106781,r=.707106781):(i=Math.sqrt(v),s=C/i,r=A/i):S>R?S<.01?(i=.707106781,s=0,r=.707106781):(s=Math.sqrt(S),i=C/s,r=I/s):R<.01?(i=.707106781,s=.707106781,r=0):(r=Math.sqrt(R),i=A/r,s=I/r),this.set(i,s,r,t),this}let E=Math.sqrt((b-f)*(b-f)+(_-y)*(_-y)+(m-u)*(m-u));return Math.abs(E)<.001&&(E=1),this.x=(b-f)/E,this.y=(_-y)/E,this.z=(m-u)/E,this.w=Math.acos((d+h+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this.w=e.w+(t.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class sbt extends Ha{constructor(e=1,t=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new $t(0,0,e,t),this.scissorTest=!1,this.viewport=new $t(0,0,e,t);const s={width:e,height:t,depth:1};i.encoding!==void 0&&(kl("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."),i.colorSpace=i.encoding===so?nn:bi),i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Wn,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0},i),this.texture=new xn(s,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=i.generateMipmaps,this.texture.internalFormat=i.internalFormat,this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}setSize(e,t,i=1){(this.width!==e||this.height!==t||this.depth!==i)&&(this.width=e,this.height=t,this.depth=i,this.texture.image.width=e,this.texture.image.height=t,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.texture=e.texture.clone(),this.texture.isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new WN(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class mo extends sbt{constructor(e=1,t=1,i={}){super(e,t,i),this.isWebGLRenderTarget=!0}}class KN extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=hi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class rbt extends xn{constructor(e=null,t=1,i=1,s=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:i,depth:s},this.magFilter=gn,this.minFilter=gn,this.wrapR=hi,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Nr{constructor(e=0,t=0,i=0,s=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=i,this._w=s}static slerpFlat(e,t,i,s,r,o,a){let c=i[s+0],d=i[s+1],u=i[s+2],_=i[s+3];const m=r[o+0],h=r[o+1],f=r[o+2],y=r[o+3];if(a===0){e[t+0]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_;return}if(a===1){e[t+0]=m,e[t+1]=h,e[t+2]=f,e[t+3]=y;return}if(_!==y||c!==m||d!==h||u!==f){let b=1-a;const g=c*m+d*h+u*f+_*y,E=g>=0?1:-1,v=1-g*g;if(v>Number.EPSILON){const R=Math.sqrt(v),C=Math.atan2(R,g*E);b=Math.sin(b*C)/R,a=Math.sin(a*C)/R}const S=a*E;if(c=c*b+m*S,d=d*b+h*S,u=u*b+f*S,_=_*b+y*S,b===1-a){const R=1/Math.sqrt(c*c+d*d+u*u+_*_);c*=R,d*=R,u*=R,_*=R}}e[t]=c,e[t+1]=d,e[t+2]=u,e[t+3]=_}static multiplyQuaternionsFlat(e,t,i,s,r,o){const a=i[s],c=i[s+1],d=i[s+2],u=i[s+3],_=r[o],m=r[o+1],h=r[o+2],f=r[o+3];return e[t]=a*f+u*_+c*h-d*m,e[t+1]=c*f+u*m+d*_-a*h,e[t+2]=d*f+u*h+a*m-c*_,e[t+3]=u*f-a*_-c*m-d*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,i,s){return this._x=e,this._y=t,this._z=i,this._w=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const i=e._x,s=e._y,r=e._z,o=e._order,a=Math.cos,c=Math.sin,d=a(i/2),u=a(s/2),_=a(r/2),m=c(i/2),h=c(s/2),f=c(r/2);switch(o){case"XYZ":this._x=m*u*_+d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_-m*h*f;break;case"YXZ":this._x=m*u*_+d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_+m*h*f;break;case"ZXY":this._x=m*u*_-d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_-m*h*f;break;case"ZYX":this._x=m*u*_-d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_+m*h*f;break;case"YZX":this._x=m*u*_+d*h*f,this._y=d*h*_+m*u*f,this._z=d*u*f-m*h*_,this._w=d*u*_-m*h*f;break;case"XZY":this._x=m*u*_-d*h*f,this._y=d*h*_-m*u*f,this._z=d*u*f+m*h*_,this._w=d*u*_+m*h*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t!==!1&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const i=t/2,s=Math.sin(i);return this._x=e.x*s,this._y=e.y*s,this._z=e.z*s,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,i=t[0],s=t[4],r=t[8],o=t[1],a=t[5],c=t[9],d=t[2],u=t[6],_=t[10],m=i+a+_;if(m>0){const h=.5/Math.sqrt(m+1);this._w=.25/h,this._x=(u-c)*h,this._y=(r-d)*h,this._z=(o-s)*h}else if(i>a&&i>_){const h=2*Math.sqrt(1+i-a-_);this._w=(u-c)/h,this._x=.25*h,this._y=(s+o)/h,this._z=(r+d)/h}else if(a>_){const h=2*Math.sqrt(1+a-i-_);this._w=(r-d)/h,this._x=(s+o)/h,this._y=.25*h,this._z=(c+u)/h}else{const h=2*Math.sqrt(1+_-i-a);this._w=(o-s)/h,this._x=(r+d)/h,this._y=(c+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let i=e.dot(t)+1;return i<Number.EPSILON?(i=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(On(this.dot(e),-1,1)))}rotateTowards(e,t){const i=this.angleTo(e);if(i===0)return this;const s=Math.min(1,t/i);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const i=e._x,s=e._y,r=e._z,o=e._w,a=t._x,c=t._y,d=t._z,u=t._w;return this._x=i*u+o*a+s*d-r*c,this._y=s*u+o*c+r*a-i*d,this._z=r*u+o*d+i*c-s*a,this._w=o*u-i*a-s*c-r*d,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const i=this._x,s=this._y,r=this._z,o=this._w;let a=o*e._w+i*e._x+s*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=i,this._y=s,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const h=1-t;return this._w=h*o+t*this._w,this._x=h*i+t*this._x,this._y=h*s+t*this._y,this._z=h*r+t*this._z,this.normalize(),this._onChangeCallback(),this}const d=Math.sqrt(c),u=Math.atan2(d,a),_=Math.sin((1-t)*u)/d,m=Math.sin(t*u)/d;return this._w=o*_+this._w*m,this._x=i*_+this._x*m,this._y=s*_+this._y*m,this._z=r*_+this._z*m,this._onChangeCallback(),this}slerpQuaternions(e,t,i){return this.copy(e).slerp(t,i)}random(){const e=Math.random(),t=Math.sqrt(1-e),i=Math.sqrt(e),s=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(t*Math.cos(s),i*Math.sin(r),i*Math.cos(r),t*Math.sin(s))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class re{constructor(e=0,t=0,i=0){re.prototype.isVector3=!0,this.x=e,this.y=t,this.z=i}set(e,t,i){return i===void 0&&(i=this.z),this.x=e,this.y=t,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(WC.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(WC.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[3]*i+r[6]*s,this.y=r[1]*t+r[4]*i+r[7]*s,this.z=r[2]*t+r[5]*i+r[8]*s,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,i=this.y,s=this.z,r=e.elements,o=1/(r[3]*t+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*t+r[4]*i+r[8]*s+r[12])*o,this.y=(r[1]*t+r[5]*i+r[9]*s+r[13])*o,this.z=(r[2]*t+r[6]*i+r[10]*s+r[14])*o,this}applyQuaternion(e){const t=this.x,i=this.y,s=this.z,r=e.x,o=e.y,a=e.z,c=e.w,d=2*(o*s-a*i),u=2*(a*t-r*s),_=2*(r*i-o*t);return this.x=t+c*d+o*_-a*u,this.y=i+c*u+a*d-r*_,this.z=s+c*_+r*u-o*d,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,i=this.y,s=this.z,r=e.elements;return this.x=r[0]*t+r[4]*i+r[8]*s,this.y=r[1]*t+r[5]*i+r[9]*s,this.z=r[2]*t+r[6]*i+r[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(t,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,i){return this.x=e.x+(t.x-e.x)*i,this.y=e.y+(t.y-e.y)*i,this.z=e.z+(t.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const i=e.x,s=e.y,r=e.z,o=t.x,a=t.y,c=t.z;return this.x=s*c-r*a,this.y=r*o-i*c,this.z=i*a-s*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const i=e.dot(this)/t;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Jh.copy(this).projectOnVector(e),this.sub(Jh)}reflect(e){return this.sub(Jh.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const i=this.dot(e)/t;return Math.acos(On(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,i=this.y-e.y,s=this.z-e.z;return t*t+i*i+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,i){const s=Math.sin(t)*e;return this.x=s*Math.sin(i),this.y=Math.cos(t)*e,this.z=s*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,i){return this.x=e*Math.sin(t),this.y=i,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=i,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=(Math.random()-.5)*2,t=Math.random()*Math.PI*2,i=Math.sqrt(1-e**2);return this.x=i*Math.cos(t),this.y=i*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Jh=new re,WC=new Nr;class Gs{constructor(e=new re(1/0,1/0,1/0),t=new re(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,i=e.length;t<i;t+=3)this.expandByPoint(Ii.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,i=e.count;t<i;t++)this.expandByPoint(Ii.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,i=e.length;t<i;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const i=Ii.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const i=e.geometry;if(i!==void 0){const r=i.getAttribute("position");if(t===!0&&r!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=r.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,Ii):Ii.fromBufferAttribute(r,o),Ii.applyMatrix4(e.matrixWorld),this.expandByPoint(Ii);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),qc.copy(e.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),qc.copy(i.boundingBox)),qc.applyMatrix4(e.matrixWorld),this.union(qc)}const s=e.children;for(let r=0,o=s.length;r<o;r++)this.expandByObject(s[r],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Ii),Ii.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,i;return e.normal.x>0?(t=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),t<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(ol),Yc.subVectors(this.max,ol),Mo.subVectors(e.a,ol),No.subVectors(e.b,ol),Oo.subVectors(e.c,ol),Ks.subVectors(No,Mo),js.subVectors(Oo,No),Lr.subVectors(Mo,Oo);let t=[0,-Ks.z,Ks.y,0,-js.z,js.y,0,-Lr.z,Lr.y,Ks.z,0,-Ks.x,js.z,0,-js.x,Lr.z,0,-Lr.x,-Ks.y,Ks.x,0,-js.y,js.x,0,-Lr.y,Lr.x,0];return!eg(t,Mo,No,Oo,Yc)||(t=[1,0,0,0,1,0,0,0,1],!eg(t,Mo,No,Oo,Yc))?!1:($c.crossVectors(Ks,js),t=[$c.x,$c.y,$c.z],eg(t,Mo,No,Oo,Yc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ii).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Ii).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(gs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),gs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),gs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),gs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),gs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),gs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),gs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),gs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(gs),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const gs=[new re,new re,new re,new re,new re,new re,new re,new re],Ii=new re,qc=new Gs,Mo=new re,No=new re,Oo=new re,Ks=new re,js=new re,Lr=new re,ol=new re,Yc=new re,$c=new re,Pr=new re;function eg(n,e,t,i,s){for(let r=0,o=n.length-3;r<=o;r+=3){Pr.fromArray(n,r);const a=s.x*Math.abs(Pr.x)+s.y*Math.abs(Pr.y)+s.z*Math.abs(Pr.z),c=e.dot(Pr),d=t.dot(Pr),u=i.dot(Pr);if(Math.max(-Math.max(c,d,u),Math.min(c,d,u))>a)return!1}return!0}const obt=new Gs,al=new re,tg=new re;class ps{constructor(e=new re,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const i=this.center;t!==void 0?i.copy(t):obt.setFromPoints(e).getCenter(i);let s=0;for(let r=0,o=e.length;r<o;r++)s=Math.max(s,i.distanceToSquared(e[r]));return this.radius=Math.sqrt(s),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const i=this.center.distanceToSquared(e);return t.copy(e),i>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;al.subVectors(e,this.center);const t=al.lengthSq();if(t>this.radius*this.radius){const i=Math.sqrt(t),s=(i-this.radius)*.5;this.center.addScaledVector(al,s/i),this.radius+=s}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(tg.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(tg)),this.expandByPoint(al.copy(e.center).sub(tg))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const bs=new re,ng=new re,Wc=new re,Qs=new re,ig=new re,Kc=new re,sg=new re;class mp{constructor(e=new re,t=new re(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,bs)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const i=t.dot(this.direction);return i<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=bs.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(bs.copy(this.origin).addScaledVector(this.direction,t),bs.distanceToSquared(e))}distanceSqToSegment(e,t,i,s){ng.copy(e).add(t).multiplyScalar(.5),Wc.copy(t).sub(e).normalize(),Qs.copy(this.origin).sub(ng);const r=e.distanceTo(t)*.5,o=-this.direction.dot(Wc),a=Qs.dot(this.direction),c=-Qs.dot(Wc),d=Qs.lengthSq(),u=Math.abs(1-o*o);let _,m,h,f;if(u>0)if(_=o*c-a,m=o*a-c,f=r*u,_>=0)if(m>=-f)if(m<=f){const y=1/u;_*=y,m*=y,h=_*(_+o*m+2*a)+m*(o*_+m+2*c)+d}else m=r,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m=-r,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;else m<=-f?(_=Math.max(0,-(-o*r+a)),m=_>0?-r:Math.min(Math.max(-r,-c),r),h=-_*_+m*(m+2*c)+d):m<=f?(_=0,m=Math.min(Math.max(-r,-c),r),h=m*(m+2*c)+d):(_=Math.max(0,-(o*r+a)),m=_>0?r:Math.min(Math.max(-r,-c),r),h=-_*_+m*(m+2*c)+d);else m=o>0?-r:r,_=Math.max(0,-(o*m+a)),h=-_*_+m*(m+2*c)+d;return i&&i.copy(this.origin).addScaledVector(this.direction,_),s&&s.copy(ng).addScaledVector(Wc,m),h}intersectSphere(e,t){bs.subVectors(e.center,this.origin);const i=bs.dot(this.direction),s=bs.dot(bs)-i*i,r=e.radius*e.radius;if(s>r)return null;const o=Math.sqrt(r-s),a=i-o,c=i+o;return c<0?null:a<0?this.at(c,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/t;return i>=0?i:null}intersectPlane(e,t){const i=this.distanceToPlane(e);return i===null?null:this.at(i,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let i,s,r,o,a,c;const d=1/this.direction.x,u=1/this.direction.y,_=1/this.direction.z,m=this.origin;return d>=0?(i=(e.min.x-m.x)*d,s=(e.max.x-m.x)*d):(i=(e.max.x-m.x)*d,s=(e.min.x-m.x)*d),u>=0?(r=(e.min.y-m.y)*u,o=(e.max.y-m.y)*u):(r=(e.max.y-m.y)*u,o=(e.min.y-m.y)*u),i>o||r>s||((r>i||isNaN(i))&&(i=r),(o<s||isNaN(s))&&(s=o),_>=0?(a=(e.min.z-m.z)*_,c=(e.max.z-m.z)*_):(a=(e.max.z-m.z)*_,c=(e.min.z-m.z)*_),i>c||a>s)||((a>i||i!==i)&&(i=a),(c<s||s!==s)&&(s=c),s<0)?null:this.at(i>=0?i:s,t)}intersectsBox(e){return this.intersectBox(e,bs)!==null}intersectTriangle(e,t,i,s,r){ig.subVectors(t,e),Kc.subVectors(i,e),sg.crossVectors(ig,Kc);let o=this.direction.dot(sg),a;if(o>0){if(s)return null;a=1}else if(o<0)a=-1,o=-o;else return null;Qs.subVectors(this.origin,e);const c=a*this.direction.dot(Kc.crossVectors(Qs,Kc));if(c<0)return null;const d=a*this.direction.dot(ig.cross(Qs));if(d<0||c+d>o)return null;const u=-a*Qs.dot(sg);return u<0?null:this.at(u/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class xt{constructor(e,t,i,s,r,o,a,c,d,u,_,m,h,f,y,b){xt.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,i,s,r,o,a,c,d,u,_,m,h,f,y,b)}set(e,t,i,s,r,o,a,c,d,u,_,m,h,f,y,b){const g=this.elements;return g[0]=e,g[4]=t,g[8]=i,g[12]=s,g[1]=r,g[5]=o,g[9]=a,g[13]=c,g[2]=d,g[6]=u,g[10]=_,g[14]=m,g[3]=h,g[7]=f,g[11]=y,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new xt().fromArray(this.elements)}copy(e){const t=this.elements,i=e.elements;return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],this}copyPosition(e){const t=this.elements,i=e.elements;return t[12]=i[12],t[13]=i[13],t[14]=i[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,i){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,t,i){return this.set(e.x,t.x,i.x,0,e.y,t.y,i.y,0,e.z,t.z,i.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,i=e.elements,s=1/Io.setFromMatrixColumn(e,0).length(),r=1/Io.setFromMatrixColumn(e,1).length(),o=1/Io.setFromMatrixColumn(e,2).length();return t[0]=i[0]*s,t[1]=i[1]*s,t[2]=i[2]*s,t[3]=0,t[4]=i[4]*r,t[5]=i[5]*r,t[6]=i[6]*r,t[7]=0,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,i=e.x,s=e.y,r=e.z,o=Math.cos(i),a=Math.sin(i),c=Math.cos(s),d=Math.sin(s),u=Math.cos(r),_=Math.sin(r);if(e.order==="XYZ"){const m=o*u,h=o*_,f=a*u,y=a*_;t[0]=c*u,t[4]=-c*_,t[8]=d,t[1]=h+f*d,t[5]=m-y*d,t[9]=-a*c,t[2]=y-m*d,t[6]=f+h*d,t[10]=o*c}else if(e.order==="YXZ"){const m=c*u,h=c*_,f=d*u,y=d*_;t[0]=m+y*a,t[4]=f*a-h,t[8]=o*d,t[1]=o*_,t[5]=o*u,t[9]=-a,t[2]=h*a-f,t[6]=y+m*a,t[10]=o*c}else if(e.order==="ZXY"){const m=c*u,h=c*_,f=d*u,y=d*_;t[0]=m-y*a,t[4]=-o*_,t[8]=f+h*a,t[1]=h+f*a,t[5]=o*u,t[9]=y-m*a,t[2]=-o*d,t[6]=a,t[10]=o*c}else if(e.order==="ZYX"){const m=o*u,h=o*_,f=a*u,y=a*_;t[0]=c*u,t[4]=f*d-h,t[8]=m*d+y,t[1]=c*_,t[5]=y*d+m,t[9]=h*d-f,t[2]=-d,t[6]=a*c,t[10]=o*c}else if(e.order==="YZX"){const m=o*c,h=o*d,f=a*c,y=a*d;t[0]=c*u,t[4]=y-m*_,t[8]=f*_+h,t[1]=_,t[5]=o*u,t[9]=-a*u,t[2]=-d*u,t[6]=h*_+f,t[10]=m-y*_}else if(e.order==="XZY"){const m=o*c,h=o*d,f=a*c,y=a*d;t[0]=c*u,t[4]=-_,t[8]=d*u,t[1]=m*_+y,t[5]=o*u,t[9]=h*_-f,t[2]=f*_-h,t[6]=a*u,t[10]=y*_+m}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(abt,e,lbt)}lookAt(e,t,i){const s=this.elements;return ti.subVectors(e,t),ti.lengthSq()===0&&(ti.z=1),ti.normalize(),Xs.crossVectors(i,ti),Xs.lengthSq()===0&&(Math.abs(i.z)===1?ti.x+=1e-4:ti.z+=1e-4,ti.normalize(),Xs.crossVectors(i,ti)),Xs.normalize(),jc.crossVectors(ti,Xs),s[0]=Xs.x,s[4]=jc.x,s[8]=ti.x,s[1]=Xs.y,s[5]=jc.y,s[9]=ti.y,s[2]=Xs.z,s[6]=jc.z,s[10]=ti.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const i=e.elements,s=t.elements,r=this.elements,o=i[0],a=i[4],c=i[8],d=i[12],u=i[1],_=i[5],m=i[9],h=i[13],f=i[2],y=i[6],b=i[10],g=i[14],E=i[3],v=i[7],S=i[11],R=i[15],C=s[0],A=s[4],I=s[8],x=s[12],M=s[1],G=s[5],V=s[9],ee=s[13],O=s[2],H=s[6],q=s[10],L=s[14],Y=s[3],ne=s[7],oe=s[11],ye=s[15];return r[0]=o*C+a*M+c*O+d*Y,r[4]=o*A+a*G+c*H+d*ne,r[8]=o*I+a*V+c*q+d*oe,r[12]=o*x+a*ee+c*L+d*ye,r[1]=u*C+_*M+m*O+h*Y,r[5]=u*A+_*G+m*H+h*ne,r[9]=u*I+_*V+m*q+h*oe,r[13]=u*x+_*ee+m*L+h*ye,r[2]=f*C+y*M+b*O+g*Y,r[6]=f*A+y*G+b*H+g*ne,r[10]=f*I+y*V+b*q+g*oe,r[14]=f*x+y*ee+b*L+g*ye,r[3]=E*C+v*M+S*O+R*Y,r[7]=E*A+v*G+S*H+R*ne,r[11]=E*I+v*V+S*q+R*oe,r[15]=E*x+v*ee+S*L+R*ye,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],i=e[4],s=e[8],r=e[12],o=e[1],a=e[5],c=e[9],d=e[13],u=e[2],_=e[6],m=e[10],h=e[14],f=e[3],y=e[7],b=e[11],g=e[15];return f*(+r*c*_-s*d*_-r*a*m+i*d*m+s*a*h-i*c*h)+y*(+t*c*h-t*d*m+r*o*m-s*o*h+s*d*u-r*c*u)+b*(+t*d*_-t*a*h-r*o*_+i*o*h+r*a*u-i*d*u)+g*(-s*a*u-t*c*_+t*a*m+s*o*_-i*o*m+i*c*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,i){const s=this.elements;return e.isVector3?(s[12]=e.x,s[13]=e.y,s[14]=e.z):(s[12]=e,s[13]=t,s[14]=i),this}invert(){const e=this.elements,t=e[0],i=e[1],s=e[2],r=e[3],o=e[4],a=e[5],c=e[6],d=e[7],u=e[8],_=e[9],m=e[10],h=e[11],f=e[12],y=e[13],b=e[14],g=e[15],E=_*b*d-y*m*d+y*c*h-a*b*h-_*c*g+a*m*g,v=f*m*d-u*b*d-f*c*h+o*b*h+u*c*g-o*m*g,S=u*y*d-f*_*d+f*a*h-o*y*h-u*a*g+o*_*g,R=f*_*c-u*y*c-f*a*m+o*y*m+u*a*b-o*_*b,C=t*E+i*v+s*S+r*R;if(C===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const A=1/C;return e[0]=E*A,e[1]=(y*m*r-_*b*r-y*s*h+i*b*h+_*s*g-i*m*g)*A,e[2]=(a*b*r-y*c*r+y*s*d-i*b*d-a*s*g+i*c*g)*A,e[3]=(_*c*r-a*m*r-_*s*d+i*m*d+a*s*h-i*c*h)*A,e[4]=v*A,e[5]=(u*b*r-f*m*r+f*s*h-t*b*h-u*s*g+t*m*g)*A,e[6]=(f*c*r-o*b*r-f*s*d+t*b*d+o*s*g-t*c*g)*A,e[7]=(o*m*r-u*c*r+u*s*d-t*m*d-o*s*h+t*c*h)*A,e[8]=S*A,e[9]=(f*_*r-u*y*r-f*i*h+t*y*h+u*i*g-t*_*g)*A,e[10]=(o*y*r-f*a*r+f*i*d-t*y*d-o*i*g+t*a*g)*A,e[11]=(u*a*r-o*_*r-u*i*d+t*_*d+o*i*h-t*a*h)*A,e[12]=R*A,e[13]=(u*y*s-f*_*s+f*i*m-t*y*m-u*i*b+t*_*b)*A,e[14]=(f*a*s-o*y*s-f*i*c+t*y*c+o*i*b-t*a*b)*A,e[15]=(o*_*s-u*a*s+u*i*c-t*_*c-o*i*m+t*a*m)*A,this}scale(e){const t=this.elements,i=e.x,s=e.y,r=e.z;return t[0]*=i,t[4]*=s,t[8]*=r,t[1]*=i,t[5]*=s,t[9]*=r,t[2]*=i,t[6]*=s,t[10]*=r,t[3]*=i,t[7]*=s,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,i,s))}makeTranslation(e,t,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,i,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,t,-i,0,0,i,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,0,i,0,0,1,0,0,-i,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),i=Math.sin(e);return this.set(t,-i,0,0,i,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const i=Math.cos(t),s=Math.sin(t),r=1-i,o=e.x,a=e.y,c=e.z,d=r*o,u=r*a;return this.set(d*o+i,d*a-s*c,d*c+s*a,0,d*a+s*c,u*a+i,u*c-s*o,0,d*c-s*a,u*c+s*o,r*c*c+i,0,0,0,0,1),this}makeScale(e,t,i){return this.set(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,t,i,s,r,o){return this.set(1,i,r,0,e,1,o,0,t,s,1,0,0,0,0,1),this}compose(e,t,i){const s=this.elements,r=t._x,o=t._y,a=t._z,c=t._w,d=r+r,u=o+o,_=a+a,m=r*d,h=r*u,f=r*_,y=o*u,b=o*_,g=a*_,E=c*d,v=c*u,S=c*_,R=i.x,C=i.y,A=i.z;return s[0]=(1-(y+g))*R,s[1]=(h+S)*R,s[2]=(f-v)*R,s[3]=0,s[4]=(h-S)*C,s[5]=(1-(m+g))*C,s[6]=(b+E)*C,s[7]=0,s[8]=(f+v)*A,s[9]=(b-E)*A,s[10]=(1-(m+y))*A,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,i){const s=this.elements;let r=Io.set(s[0],s[1],s[2]).length();const o=Io.set(s[4],s[5],s[6]).length(),a=Io.set(s[8],s[9],s[10]).length();this.determinant()<0&&(r=-r),e.x=s[12],e.y=s[13],e.z=s[14],ki.copy(this);const d=1/r,u=1/o,_=1/a;return ki.elements[0]*=d,ki.elements[1]*=d,ki.elements[2]*=d,ki.elements[4]*=u,ki.elements[5]*=u,ki.elements[6]*=u,ki.elements[8]*=_,ki.elements[9]*=_,ki.elements[10]*=_,t.setFromRotationMatrix(ki),i.x=r,i.y=o,i.z=a,this}makePerspective(e,t,i,s,r,o,a=Ms){const c=this.elements,d=2*r/(t-e),u=2*r/(i-s),_=(t+e)/(t-e),m=(i+s)/(i-s);let h,f;if(a===Ms)h=-(o+r)/(o-r),f=-2*o*r/(o-r);else if(a===Eu)h=-o/(o-r),f=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=d,c[4]=0,c[8]=_,c[12]=0,c[1]=0,c[5]=u,c[9]=m,c[13]=0,c[2]=0,c[6]=0,c[10]=h,c[14]=f,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,i,s,r,o,a=Ms){const c=this.elements,d=1/(t-e),u=1/(i-s),_=1/(o-r),m=(t+e)*d,h=(i+s)*u;let f,y;if(a===Ms)f=(o+r)*_,y=-2*_;else if(a===Eu)f=r*_,y=-1*_;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*d,c[4]=0,c[8]=0,c[12]=-m,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-h,c[2]=0,c[6]=0,c[10]=y,c[14]=-f,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,i=e.elements;for(let s=0;s<16;s++)if(t[s]!==i[s])return!1;return!0}fromArray(e,t=0){for(let i=0;i<16;i++)this.elements[i]=e[i+t];return this}toArray(e=[],t=0){const i=this.elements;return e[t]=i[0],e[t+1]=i[1],e[t+2]=i[2],e[t+3]=i[3],e[t+4]=i[4],e[t+5]=i[5],e[t+6]=i[6],e[t+7]=i[7],e[t+8]=i[8],e[t+9]=i[9],e[t+10]=i[10],e[t+11]=i[11],e[t+12]=i[12],e[t+13]=i[13],e[t+14]=i[14],e[t+15]=i[15],e}}const Io=new re,ki=new xt,abt=new re(0,0,0),lbt=new re(1,1,1),Xs=new re,jc=new re,ti=new re,KC=new xt,jC=new Nr;class hp{constructor(e=0,t=0,i=0,s=hp.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=i,this._order=s}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,i,s=this._order){return this._x=e,this._y=t,this._z=i,this._order=s,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,i=!0){const s=e.elements,r=s[0],o=s[4],a=s[8],c=s[1],d=s[5],u=s[9],_=s[2],m=s[6],h=s[10];switch(t){case"XYZ":this._y=Math.asin(On(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(m,d),this._z=0);break;case"YXZ":this._x=Math.asin(-On(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(c,d)):(this._y=Math.atan2(-_,r),this._z=0);break;case"ZXY":this._x=Math.asin(On(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-_,h),this._z=Math.atan2(-o,d)):(this._y=0,this._z=Math.atan2(c,r));break;case"ZYX":this._y=Math.asin(-On(_,-1,1)),Math.abs(_)<.9999999?(this._x=Math.atan2(m,h),this._z=Math.atan2(c,r)):(this._x=0,this._z=Math.atan2(-o,d));break;case"YZX":this._z=Math.asin(On(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,d),this._y=Math.atan2(-_,r)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-On(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(m,d),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,i){return KC.makeRotationFromQuaternion(e),this.setFromRotationMatrix(KC,t,i)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return jC.setFromEuler(this),this.setFromQuaternion(jC,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}hp.DEFAULT_ORDER="XYZ";class jN{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let cbt=0;const QC=new re,ko=new Nr,ys=new xt,Qc=new re,ll=new re,dbt=new re,ubt=new Nr,XC=new re(1,0,0),ZC=new re(0,1,0),JC=new re(0,0,1),pbt={type:"added"},fbt={type:"removed"};class Jt extends Ha{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:cbt++}),this.uuid=Gi(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Jt.DEFAULT_UP.clone();const e=new re,t=new hp,i=new Nr,s=new re(1,1,1);function r(){i.setFromEuler(t,!1)}function o(){t.setFromQuaternion(i,void 0,!1)}t._onChange(r),i._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:s},modelViewMatrix:{value:new xt},normalMatrix:{value:new Tt}}),this.matrix=new xt,this.matrixWorld=new xt,this.matrixAutoUpdate=Jt.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Jt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new jN,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return ko.setFromAxisAngle(e,t),this.quaternion.multiply(ko),this}rotateOnWorldAxis(e,t){return ko.setFromAxisAngle(e,t),this.quaternion.premultiply(ko),this}rotateX(e){return this.rotateOnAxis(XC,e)}rotateY(e){return this.rotateOnAxis(ZC,e)}rotateZ(e){return this.rotateOnAxis(JC,e)}translateOnAxis(e,t){return QC.copy(e).applyQuaternion(this.quaternion),this.position.add(QC.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(XC,e)}translateY(e){return this.translateOnAxis(ZC,e)}translateZ(e){return this.translateOnAxis(JC,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(ys.copy(this.matrixWorld).invert())}lookAt(e,t,i){e.isVector3?Qc.copy(e):Qc.set(e,t,i);const s=this.parent;this.updateWorldMatrix(!0,!1),ll.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ys.lookAt(ll,Qc,this.up):ys.lookAt(Qc,ll,this.up),this.quaternion.setFromRotationMatrix(ys),s&&(ys.extractRotation(s.matrixWorld),ko.setFromRotationMatrix(ys),this.quaternion.premultiply(ko.invert()))}add(e){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(pbt)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(fbt)),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),ys.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),ys.multiply(e.parent.matrixWorld)),e.applyMatrix4(ys),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let i=0,s=this.children.length;i<s;i++){const o=this.children[i].getObjectByProperty(e,t);if(o!==void 0)return o}}getObjectsByProperty(e,t,i=[]){this[e]===t&&i.push(this);const s=this.children;for(let r=0,o=s.length;r<o;r++)s[r].getObjectsByProperty(e,t,i);return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ll,e,dbt),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ll,ubt,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const t=this.children;for(let i=0,s=t.length;i<s;i++)t[i].traverseVisible(e)}traverseAncestors(e){const t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let i=0,s=t.length;i<s;i++){const r=t[i];(r.matrixWorldAutoUpdate===!0||e===!0)&&r.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const i=this.parent;if(e===!0&&i!==null&&i.matrixWorldAutoUpdate===!0&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),t===!0){const s=this.children;for(let r=0,o=s.length;r<o;r++){const a=s[r];a.matrixWorldAutoUpdate===!0&&a.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=e===void 0||typeof e=="string",i={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const s={};s.uuid=this.uuid,s.type=this.type,this.name!==""&&(s.name=this.name),this.castShadow===!0&&(s.castShadow=!0),this.receiveShadow===!0&&(s.receiveShadow=!0),this.visible===!1&&(s.visible=!1),this.frustumCulled===!1&&(s.frustumCulled=!1),this.renderOrder!==0&&(s.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(s.userData=this.userData),s.layers=this.layers.mask,s.matrix=this.matrix.toArray(),s.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(s.matrixAutoUpdate=!1),this.isInstancedMesh&&(s.type="InstancedMesh",s.count=this.count,s.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(s.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(s.type="BatchedMesh",s.perObjectFrustumCulled=this.perObjectFrustumCulled,s.sortObjects=this.sortObjects,s.drawRanges=this._drawRanges,s.reservedRanges=this._reservedRanges,s.visibility=this._visibility,s.active=this._active,s.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),s.maxGeometryCount=this._maxGeometryCount,s.maxVertexCount=this._maxVertexCount,s.maxIndexCount=this._maxIndexCount,s.geometryInitialized=this._geometryInitialized,s.geometryCount=this._geometryCount,s.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(s.boundingSphere={center:s.boundingSphere.center.toArray(),radius:s.boundingSphere.radius}),this.boundingBox!==null&&(s.boundingBox={min:s.boundingBox.min.toArray(),max:s.boundingBox.max.toArray()}));function r(a,c){return a[c.uuid]===void 0&&(a[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?s.background=this.background.toJSON():this.background.isTexture&&(s.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(s.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){s.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const c=a.shapes;if(Array.isArray(c))for(let d=0,u=c.length;d<u;d++){const _=c[d];r(e.shapes,_)}else r(e.shapes,c)}}if(this.isSkinnedMesh&&(s.bindMode=this.bindMode,s.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(r(e.skeletons,this.skeleton),s.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let c=0,d=this.material.length;c<d;c++)a.push(r(e.materials,this.material[c]));s.material=a}else s.material=r(e.materials,this.material);if(this.children.length>0){s.children=[];for(let a=0;a<this.children.length;a++)s.children.push(this.children[a].toJSON(e).object)}if(this.animations.length>0){s.animations=[];for(let a=0;a<this.animations.length;a++){const c=this.animations[a];s.animations.push(r(e.animations,c))}}if(t){const a=o(e.geometries),c=o(e.materials),d=o(e.textures),u=o(e.images),_=o(e.shapes),m=o(e.skeletons),h=o(e.animations),f=o(e.nodes);a.length>0&&(i.geometries=a),c.length>0&&(i.materials=c),d.length>0&&(i.textures=d),u.length>0&&(i.images=u),_.length>0&&(i.shapes=_),m.length>0&&(i.skeletons=m),h.length>0&&(i.animations=h),f.length>0&&(i.nodes=f)}return i.object=s,i;function o(a){const c=[];for(const d in a){const u=a[d];delete u.metadata,c.push(u)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let i=0;i<e.children.length;i++){const s=e.children[i];this.add(s.clone())}return this}}Jt.DEFAULT_UP=new re(0,1,0);Jt.DEFAULT_MATRIX_AUTO_UPDATE=!0;Jt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Di=new re,Es=new re,rg=new re,vs=new re,Do=new re,Lo=new re,ew=new re,og=new re,ag=new re,lg=new re;let Xc=!1;class Fi{constructor(e=new re,t=new re,i=new re){this.a=e,this.b=t,this.c=i}static getNormal(e,t,i,s){s.subVectors(i,t),Di.subVectors(e,t),s.cross(Di);const r=s.lengthSq();return r>0?s.multiplyScalar(1/Math.sqrt(r)):s.set(0,0,0)}static getBarycoord(e,t,i,s,r){Di.subVectors(s,t),Es.subVectors(i,t),rg.subVectors(e,t);const o=Di.dot(Di),a=Di.dot(Es),c=Di.dot(rg),d=Es.dot(Es),u=Es.dot(rg),_=o*d-a*a;if(_===0)return r.set(-2,-1,-1);const m=1/_,h=(d*c-a*u)*m,f=(o*u-a*c)*m;return r.set(1-h-f,f,h)}static containsPoint(e,t,i,s){return this.getBarycoord(e,t,i,s,vs),vs.x>=0&&vs.y>=0&&vs.x+vs.y<=1}static getUV(e,t,i,s,r,o,a,c){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),this.getInterpolation(e,t,i,s,r,o,a,c)}static getInterpolation(e,t,i,s,r,o,a,c){return this.getBarycoord(e,t,i,s,vs),c.setScalar(0),c.addScaledVector(r,vs.x),c.addScaledVector(o,vs.y),c.addScaledVector(a,vs.z),c}static isFrontFacing(e,t,i,s){return Di.subVectors(i,t),Es.subVectors(e,t),Di.cross(Es).dot(s)<0}set(e,t,i){return this.a.copy(e),this.b.copy(t),this.c.copy(i),this}setFromPointsAndIndices(e,t,i,s){return this.a.copy(e[t]),this.b.copy(e[i]),this.c.copy(e[s]),this}setFromAttributeAndIndices(e,t,i,s){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,s),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Di.subVectors(this.c,this.b),Es.subVectors(this.a,this.b),Di.cross(Es).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Fi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Fi.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,i,s,r){return Xc===!1&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Xc=!0),Fi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}getInterpolation(e,t,i,s,r){return Fi.getInterpolation(e,this.a,this.b,this.c,t,i,s,r)}containsPoint(e){return Fi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Fi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const i=this.a,s=this.b,r=this.c;let o,a;Do.subVectors(s,i),Lo.subVectors(r,i),og.subVectors(e,i);const c=Do.dot(og),d=Lo.dot(og);if(c<=0&&d<=0)return t.copy(i);ag.subVectors(e,s);const u=Do.dot(ag),_=Lo.dot(ag);if(u>=0&&_<=u)return t.copy(s);const m=c*_-u*d;if(m<=0&&c>=0&&u<=0)return o=c/(c-u),t.copy(i).addScaledVector(Do,o);lg.subVectors(e,r);const h=Do.dot(lg),f=Lo.dot(lg);if(f>=0&&h<=f)return t.copy(r);const y=h*d-c*f;if(y<=0&&d>=0&&f<=0)return a=d/(d-f),t.copy(i).addScaledVector(Lo,a);const b=u*f-h*_;if(b<=0&&_-u>=0&&h-f>=0)return ew.subVectors(r,s),a=(_-u)/(_-u+(h-f)),t.copy(s).addScaledVector(ew,a);const g=1/(b+y+m);return o=y*g,a=m*g,t.copy(i).addScaledVector(Do,o).addScaledVector(Lo,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const QN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zs={h:0,s:0,l:0},Zc={h:0,s:0,l:0};function cg(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class pt{constructor(e,t,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,i)}set(e,t,i){if(t===void 0&&i===void 0){const s=e;s&&s.isColor?this.copy(s):typeof s=="number"?this.setHex(s):typeof s=="string"&&this.setStyle(s)}else this.setRGB(e,t,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=nn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Lt.toWorkingColorSpace(this,t),this}setRGB(e,t,i,s=Lt.workingColorSpace){return this.r=e,this.g=t,this.b=i,Lt.toWorkingColorSpace(this,s),this}setHSL(e,t,i,s=Lt.workingColorSpace){if(e=_y(e,1),t=On(t,0,1),i=On(i,0,1),t===0)this.r=this.g=this.b=i;else{const r=i<=.5?i*(1+t):i+t-i*t,o=2*i-r;this.r=cg(o,r,e+1/3),this.g=cg(o,r,e),this.b=cg(o,r,e-1/3)}return Lt.toWorkingColorSpace(this,s),this}setStyle(e,t=nn){function i(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let s;if(s=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=s[1],a=s[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return i(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(s=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=s[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=nn){const i=QN[e.toLowerCase()];return i!==void 0?this.setHex(i,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=oa(e.r),this.g=oa(e.g),this.b=oa(e.b),this}copyLinearToSRGB(e){return this.r=Xh(e.r),this.g=Xh(e.g),this.b=Xh(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=nn){return Lt.fromWorkingColorSpace(Mn.copy(this),e),Math.round(On(Mn.r*255,0,255))*65536+Math.round(On(Mn.g*255,0,255))*256+Math.round(On(Mn.b*255,0,255))}getHexString(e=nn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Lt.workingColorSpace){Lt.fromWorkingColorSpace(Mn.copy(this),t);const i=Mn.r,s=Mn.g,r=Mn.b,o=Math.max(i,s,r),a=Math.min(i,s,r);let c,d;const u=(a+o)/2;if(a===o)c=0,d=0;else{const _=o-a;switch(d=u<=.5?_/(o+a):_/(2-o-a),o){case i:c=(s-r)/_+(s<r?6:0);break;case s:c=(r-i)/_+2;break;case r:c=(i-s)/_+4;break}c/=6}return e.h=c,e.s=d,e.l=u,e}getRGB(e,t=Lt.workingColorSpace){return Lt.fromWorkingColorSpace(Mn.copy(this),t),e.r=Mn.r,e.g=Mn.g,e.b=Mn.b,e}getStyle(e=nn){Lt.fromWorkingColorSpace(Mn.copy(this),e);const t=Mn.r,i=Mn.g,s=Mn.b;return e!==nn?`color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${s.toFixed(3)})`:`rgb(${Math.round(t*255)},${Math.round(i*255)},${Math.round(s*255)})`}offsetHSL(e,t,i){return this.getHSL(Zs),this.setHSL(Zs.h+e,Zs.s+t,Zs.l+i)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,i){return this.r=e.r+(t.r-e.r)*i,this.g=e.g+(t.g-e.g)*i,this.b=e.b+(t.b-e.b)*i,this}lerpHSL(e,t){this.getHSL(Zs),e.getHSL(Zc);const i=Il(Zs.h,Zc.h,t),s=Il(Zs.s,Zc.s,t),r=Il(Zs.l,Zc.l,t);return this.setHSL(i,s,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,i=this.g,s=this.b,r=e.elements;return this.r=r[0]*t+r[3]*i+r[6]*s,this.g=r[1]*t+r[4]*i+r[7]*s,this.b=r[2]*t+r[5]*i+r[8]*s,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Mn=new pt;pt.NAMES=QN;let _bt=0;class Vi extends Ha{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:_bt++}),this.uuid=Gi(),this.name="",this.type="Material",this.blending=ra,this.side=Fs,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=fb,this.blendDst=_b,this.blendEquation=$r,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new pt(0,0,0),this.blendAlpha=0,this.depthFunc=mu,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=VC,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Ro,this.stencilZFail=Ro,this.stencilZPass=Ro,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const i=e[t];if(i===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const s=this[t];if(s===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}s&&s.isColor?s.set(i):s&&s.isVector3&&i&&i.isVector3?s.copy(i):this[t]=i}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==ra&&(i.blending=this.blending),this.side!==Fs&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==fb&&(i.blendSrc=this.blendSrc),this.blendDst!==_b&&(i.blendDst=this.blendDst),this.blendEquation!==$r&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==mu&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==VC&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Ro&&(i.stencilFail=this.stencilFail),this.stencilZFail!==Ro&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==Ro&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function s(r){const o=[];for(const a in r){const c=r[a];delete c.metadata,o.push(c)}return o}if(t){const r=s(e.textures),o=s(e.images);r.length>0&&(i.textures=r),o.length>0&&(i.images=o)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let i=null;if(t!==null){const s=t.length;i=new Array(s);for(let r=0;r!==s;++r)i[r]=t[r].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class _r extends Vi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new pt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=dy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const rn=new re,Jc=new Rt;class zn{constructor(e,t,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=i,this.usage=yb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=As,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.BufferAttribute: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,i){e*=this.itemSize,i*=t.itemSize;for(let s=0,r=this.itemSize;s<r;s++)this.array[e+s]=t.array[i+s];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,i=this.count;t<i;t++)Jc.fromBufferAttribute(this,t),Jc.applyMatrix3(e),this.setXY(t,Jc.x,Jc.y);else if(this.itemSize===3)for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.applyMatrix3(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}applyMatrix4(e){for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.applyMatrix4(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}applyNormalMatrix(e){for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.applyNormalMatrix(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}transformDirection(e){for(let t=0,i=this.count;t<i;t++)rn.fromBufferAttribute(this,t),rn.transformDirection(e),this.setXYZ(t,rn.x,rn.y,rn.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let i=this.array[e*this.itemSize+t];return this.normalized&&(i=es(i,this.array)),i}setComponent(e,t,i){return this.normalized&&(i=Bt(i,this.array)),this.array[e*this.itemSize+t]=i,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=es(t,this.array)),t}setX(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=es(t,this.array)),t}setY(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=es(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=es(t,this.array)),t}setW(e,t){return this.normalized&&(t=Bt(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,i){return e*=this.itemSize,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array)),this.array[e+0]=t,this.array[e+1]=i,this}setXYZ(e,t,i,s){return e*=this.itemSize,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=s,this}setXYZW(e,t,i,s,r){return e*=this.itemSize,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array),r=Bt(r,this.array)),this.array[e+0]=t,this.array[e+1]=i,this.array[e+2]=s,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==yb&&(e.usage=this.usage),e}}class XN extends zn{constructor(e,t,i){super(new Uint16Array(e),t,i)}}class ZN extends zn{constructor(e,t,i){super(new Uint32Array(e),t,i)}}class ks extends zn{constructor(e,t,i){super(new Float32Array(e),t,i)}}let mbt=0;const pi=new xt,dg=new Jt,Po=new re,ni=new Gs,cl=new Gs,mn=new re;class fs extends Ha{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:mbt++}),this.uuid=Gi(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(YN(e)?ZN:XN)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,i=0){this.groups.push({start:e,count:t,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const r=new Tt().getNormalMatrix(e);i.applyNormalMatrix(r),i.needsUpdate=!0}const s=this.attributes.tangent;return s!==void 0&&(s.transformDirection(e),s.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return pi.makeRotationFromQuaternion(e),this.applyMatrix4(pi),this}rotateX(e){return pi.makeRotationX(e),this.applyMatrix4(pi),this}rotateY(e){return pi.makeRotationY(e),this.applyMatrix4(pi),this}rotateZ(e){return pi.makeRotationZ(e),this.applyMatrix4(pi),this}translate(e,t,i){return pi.makeTranslation(e,t,i),this.applyMatrix4(pi),this}scale(e,t,i){return pi.makeScale(e,t,i),this.applyMatrix4(pi),this}lookAt(e){return dg.lookAt(e),dg.updateMatrix(),this.applyMatrix4(dg.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Po).negate(),this.translate(Po.x,Po.y,Po.z),this}setFromPoints(e){const t=[];for(let i=0,s=e.length;i<s;i++){const r=e[i];t.push(r.x,r.y,r.z||0)}return this.setAttribute("position",new ks(t,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Gs);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingBox.set(new re(-1/0,-1/0,-1/0),new re(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let i=0,s=t.length;i<s;i++){const r=t[i];ni.setFromBufferAttribute(r),this.morphTargetsRelative?(mn.addVectors(this.boundingBox.min,ni.min),this.boundingBox.expandByPoint(mn),mn.addVectors(this.boundingBox.max,ni.max),this.boundingBox.expandByPoint(mn)):(this.boundingBox.expandByPoint(ni.min),this.boundingBox.expandByPoint(ni.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new ps);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),this.boundingSphere.set(new re,1/0);return}if(e){const i=this.boundingSphere.center;if(ni.setFromBufferAttribute(e),t)for(let r=0,o=t.length;r<o;r++){const a=t[r];cl.setFromBufferAttribute(a),this.morphTargetsRelative?(mn.addVectors(ni.min,cl.min),ni.expandByPoint(mn),mn.addVectors(ni.max,cl.max),ni.expandByPoint(mn)):(ni.expandByPoint(cl.min),ni.expandByPoint(cl.max))}ni.getCenter(i);let s=0;for(let r=0,o=e.count;r<o;r++)mn.fromBufferAttribute(e,r),s=Math.max(s,i.distanceToSquared(mn));if(t)for(let r=0,o=t.length;r<o;r++){const a=t[r],c=this.morphTargetsRelative;for(let d=0,u=a.count;d<u;d++)mn.fromBufferAttribute(a,d),c&&(Po.fromBufferAttribute(e,d),mn.add(Po)),s=Math.max(s,i.distanceToSquared(mn))}this.boundingSphere.radius=Math.sqrt(s),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=e.array,s=t.position.array,r=t.normal.array,o=t.uv.array,a=s.length/3;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new zn(new Float32Array(4*a),4));const c=this.getAttribute("tangent").array,d=[],u=[];for(let M=0;M<a;M++)d[M]=new re,u[M]=new re;const _=new re,m=new re,h=new re,f=new Rt,y=new Rt,b=new Rt,g=new re,E=new re;function v(M,G,V){_.fromArray(s,M*3),m.fromArray(s,G*3),h.fromArray(s,V*3),f.fromArray(o,M*2),y.fromArray(o,G*2),b.fromArray(o,V*2),m.sub(_),h.sub(_),y.sub(f),b.sub(f);const ee=1/(y.x*b.y-b.x*y.y);isFinite(ee)&&(g.copy(m).multiplyScalar(b.y).addScaledVector(h,-y.y).multiplyScalar(ee),E.copy(h).multiplyScalar(y.x).addScaledVector(m,-b.x).multiplyScalar(ee),d[M].add(g),d[G].add(g),d[V].add(g),u[M].add(E),u[G].add(E),u[V].add(E))}let S=this.groups;S.length===0&&(S=[{start:0,count:i.length}]);for(let M=0,G=S.length;M<G;++M){const V=S[M],ee=V.start,O=V.count;for(let H=ee,q=ee+O;H<q;H+=3)v(i[H+0],i[H+1],i[H+2])}const R=new re,C=new re,A=new re,I=new re;function x(M){A.fromArray(r,M*3),I.copy(A);const G=d[M];R.copy(G),R.sub(A.multiplyScalar(A.dot(G))).normalize(),C.crossVectors(I,G);const ee=C.dot(u[M])<0?-1:1;c[M*4]=R.x,c[M*4+1]=R.y,c[M*4+2]=R.z,c[M*4+3]=ee}for(let M=0,G=S.length;M<G;++M){const V=S[M],ee=V.start,O=V.count;for(let H=ee,q=ee+O;H<q;H+=3)x(i[H+0]),x(i[H+1]),x(i[H+2])}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(t!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new zn(new Float32Array(t.count*3),3),this.setAttribute("normal",i);else for(let m=0,h=i.count;m<h;m++)i.setXYZ(m,0,0,0);const s=new re,r=new re,o=new re,a=new re,c=new re,d=new re,u=new re,_=new re;if(e)for(let m=0,h=e.count;m<h;m+=3){const f=e.getX(m+0),y=e.getX(m+1),b=e.getX(m+2);s.fromBufferAttribute(t,f),r.fromBufferAttribute(t,y),o.fromBufferAttribute(t,b),u.subVectors(o,r),_.subVectors(s,r),u.cross(_),a.fromBufferAttribute(i,f),c.fromBufferAttribute(i,y),d.fromBufferAttribute(i,b),a.add(u),c.add(u),d.add(u),i.setXYZ(f,a.x,a.y,a.z),i.setXYZ(y,c.x,c.y,c.z),i.setXYZ(b,d.x,d.y,d.z)}else for(let m=0,h=t.count;m<h;m+=3)s.fromBufferAttribute(t,m+0),r.fromBufferAttribute(t,m+1),o.fromBufferAttribute(t,m+2),u.subVectors(o,r),_.subVectors(s,r),u.cross(_),i.setXYZ(m+0,u.x,u.y,u.z),i.setXYZ(m+1,u.x,u.y,u.z),i.setXYZ(m+2,u.x,u.y,u.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,i=e.count;t<i;t++)mn.fromBufferAttribute(e,t),mn.normalize(),e.setXYZ(t,mn.x,mn.y,mn.z)}toNonIndexed(){function e(a,c){const d=a.array,u=a.itemSize,_=a.normalized,m=new d.constructor(c.length*u);let h=0,f=0;for(let y=0,b=c.length;y<b;y++){a.isInterleavedBufferAttribute?h=c[y]*a.data.stride+a.offset:h=c[y]*u;for(let g=0;g<u;g++)m[f++]=d[h++]}return new zn(m,u,_)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new fs,i=this.index.array,s=this.attributes;for(const a in s){const c=s[a],d=e(c,i);t.setAttribute(a,d)}const r=this.morphAttributes;for(const a in r){const c=[],d=r[a];for(let u=0,_=d.length;u<_;u++){const m=d[u],h=e(m,i);c.push(h)}t.morphAttributes[a]=c}t.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,c=o.length;a<c;a++){const d=o[a];t.addGroup(d.start,d.count,d.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const d in c)c[d]!==void 0&&(e[d]=c[d]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const i=this.attributes;for(const c in i){const d=i[c];e.data.attributes[c]=d.toJSON(e.data)}const s={};let r=!1;for(const c in this.morphAttributes){const d=this.morphAttributes[c],u=[];for(let _=0,m=d.length;_<m;_++){const h=d[_];u.push(h.toJSON(e.data))}u.length>0&&(s[c]=u,r=!0)}r&&(e.data.morphAttributes=s,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(t));const s=e.attributes;for(const d in s){const u=s[d];this.setAttribute(d,u.clone(t))}const r=e.morphAttributes;for(const d in r){const u=[],_=r[d];for(let m=0,h=_.length;m<h;m++)u.push(_[m].clone(t));this.morphAttributes[d]=u}this.morphTargetsRelative=e.morphTargetsRelative;const o=e.groups;for(let d=0,u=o.length;d<u;d++){const _=o[d];this.addGroup(_.start,_.count,_.materialIndex)}const a=e.boundingBox;a!==null&&(this.boundingBox=a.clone());const c=e.boundingSphere;return c!==null&&(this.boundingSphere=c.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const tw=new xt,Fr=new mp,ed=new ps,nw=new re,Fo=new re,Uo=new re,Bo=new re,ug=new re,td=new re,nd=new Rt,id=new Rt,sd=new Rt,iw=new re,sw=new re,rw=new re,rd=new re,od=new re;class Vn extends Jt{constructor(e=new fs,t=new _r){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}getVertexPosition(e,t){const i=this.geometry,s=i.attributes.position,r=i.morphAttributes.position,o=i.morphTargetsRelative;t.fromBufferAttribute(s,e);const a=this.morphTargetInfluences;if(r&&a){td.set(0,0,0);for(let c=0,d=r.length;c<d;c++){const u=a[c],_=r[c];u!==0&&(ug.fromBufferAttribute(_,e),o?td.addScaledVector(ug,u):td.addScaledVector(ug.sub(t),u))}t.add(td)}return t}raycast(e,t){const i=this.geometry,s=this.material,r=this.matrixWorld;s!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),ed.copy(i.boundingSphere),ed.applyMatrix4(r),Fr.copy(e.ray).recast(e.near),!(ed.containsPoint(Fr.origin)===!1&&(Fr.intersectSphere(ed,nw)===null||Fr.origin.distanceToSquared(nw)>(e.far-e.near)**2))&&(tw.copy(r).invert(),Fr.copy(e.ray).applyMatrix4(tw),!(i.boundingBox!==null&&Fr.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,t,Fr)))}_computeIntersections(e,t,i){let s;const r=this.geometry,o=this.material,a=r.index,c=r.attributes.position,d=r.attributes.uv,u=r.attributes.uv1,_=r.attributes.normal,m=r.groups,h=r.drawRange;if(a!==null)if(Array.isArray(o))for(let f=0,y=m.length;f<y;f++){const b=m[f],g=o[b.materialIndex],E=Math.max(b.start,h.start),v=Math.min(a.count,Math.min(b.start+b.count,h.start+h.count));for(let S=E,R=v;S<R;S+=3){const C=a.getX(S),A=a.getX(S+1),I=a.getX(S+2);s=ad(this,g,e,i,d,u,_,C,A,I),s&&(s.faceIndex=Math.floor(S/3),s.face.materialIndex=b.materialIndex,t.push(s))}}else{const f=Math.max(0,h.start),y=Math.min(a.count,h.start+h.count);for(let b=f,g=y;b<g;b+=3){const E=a.getX(b),v=a.getX(b+1),S=a.getX(b+2);s=ad(this,o,e,i,d,u,_,E,v,S),s&&(s.faceIndex=Math.floor(b/3),t.push(s))}}else if(c!==void 0)if(Array.isArray(o))for(let f=0,y=m.length;f<y;f++){const b=m[f],g=o[b.materialIndex],E=Math.max(b.start,h.start),v=Math.min(c.count,Math.min(b.start+b.count,h.start+h.count));for(let S=E,R=v;S<R;S+=3){const C=S,A=S+1,I=S+2;s=ad(this,g,e,i,d,u,_,C,A,I),s&&(s.faceIndex=Math.floor(S/3),s.face.materialIndex=b.materialIndex,t.push(s))}}else{const f=Math.max(0,h.start),y=Math.min(c.count,h.start+h.count);for(let b=f,g=y;b<g;b+=3){const E=b,v=b+1,S=b+2;s=ad(this,o,e,i,d,u,_,E,v,S),s&&(s.faceIndex=Math.floor(b/3),t.push(s))}}}}function hbt(n,e,t,i,s,r,o,a){let c;if(e.side===Zn?c=i.intersectTriangle(o,r,s,!0,a):c=i.intersectTriangle(s,r,o,e.side===Fs,a),c===null)return null;od.copy(a),od.applyMatrix4(n.matrixWorld);const d=t.ray.origin.distanceTo(od);return d<t.near||d>t.far?null:{distance:d,point:od.clone(),object:n}}function ad(n,e,t,i,s,r,o,a,c,d){n.getVertexPosition(a,Fo),n.getVertexPosition(c,Uo),n.getVertexPosition(d,Bo);const u=hbt(n,e,t,i,Fo,Uo,Bo,rd);if(u){s&&(nd.fromBufferAttribute(s,a),id.fromBufferAttribute(s,c),sd.fromBufferAttribute(s,d),u.uv=Fi.getInterpolation(rd,Fo,Uo,Bo,nd,id,sd,new Rt)),r&&(nd.fromBufferAttribute(r,a),id.fromBufferAttribute(r,c),sd.fromBufferAttribute(r,d),u.uv1=Fi.getInterpolation(rd,Fo,Uo,Bo,nd,id,sd,new Rt),u.uv2=u.uv1),o&&(iw.fromBufferAttribute(o,a),sw.fromBufferAttribute(o,c),rw.fromBufferAttribute(o,d),u.normal=Fi.getInterpolation(rd,Fo,Uo,Bo,iw,sw,rw,new re),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const _={a,b:c,c:d,normal:new re,materialIndex:0};Fi.getNormal(Fo,Uo,Bo,_.normal),u.face=_}return u}class Er extends fs{constructor(e=1,t=1,i=1,s=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:i,widthSegments:s,heightSegments:r,depthSegments:o};const a=this;s=Math.floor(s),r=Math.floor(r),o=Math.floor(o);const c=[],d=[],u=[],_=[];let m=0,h=0;f("z","y","x",-1,-1,i,t,e,o,r,0),f("z","y","x",1,-1,i,t,-e,o,r,1),f("x","z","y",1,1,e,i,t,s,o,2),f("x","z","y",1,-1,e,i,-t,s,o,3),f("x","y","z",1,-1,e,t,i,s,r,4),f("x","y","z",-1,-1,e,t,-i,s,r,5),this.setIndex(c),this.setAttribute("position",new ks(d,3)),this.setAttribute("normal",new ks(u,3)),this.setAttribute("uv",new ks(_,2));function f(y,b,g,E,v,S,R,C,A,I,x){const M=S/A,G=R/I,V=S/2,ee=R/2,O=C/2,H=A+1,q=I+1;let L=0,Y=0;const ne=new re;for(let oe=0;oe<q;oe++){const ye=oe*G-ee;for(let xe=0;xe<H;xe++){const le=xe*M-V;ne[y]=le*E,ne[b]=ye*v,ne[g]=O,d.push(ne.x,ne.y,ne.z),ne[y]=0,ne[b]=0,ne[g]=C>0?1:-1,u.push(ne.x,ne.y,ne.z),_.push(xe/A),_.push(1-oe/I),L+=1}}for(let oe=0;oe<I;oe++)for(let ye=0;ye<A;ye++){const xe=m+ye+H*oe,le=m+ye+H*(oe+1),ve=m+(ye+1)+H*(oe+1),Oe=m+(ye+1)+H*oe;c.push(xe,le,Oe),c.push(le,ve,Oe),Y+=6}a.addGroup(h,Y,x),h+=Y,m+=L}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Er(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Ca(n){const e={};for(const t in n){e[t]={};for(const i in n[t]){const s=n[t][i];s&&(s.isColor||s.isMatrix3||s.isMatrix4||s.isVector2||s.isVector3||s.isVector4||s.isTexture||s.isQuaternion)?s.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[t][i]=null):e[t][i]=s.clone():Array.isArray(s)?e[t][i]=s.slice():e[t][i]=s}}return e}function Fn(n){const e={};for(let t=0;t<n.length;t++){const i=Ca(n[t]);for(const s in i)e[s]=i[s]}return e}function gbt(n){const e=[];for(let t=0;t<n.length;t++)e.push(n[t].clone());return e}function JN(n){return n.getRenderTarget()===null?n.outputColorSpace:Lt.workingColorSpace}const bbt={clone:Ca,merge:Fn};var ybt=`void main() {
 	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
-}`,vbt=`void main() {
+}`,Ebt=`void main() {
 	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
-}`;class ho extends Vi{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=Ebt,this.fragmentShader=vbt,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Ca(e.uniforms),this.uniformsGroups=bbt(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const s in this.uniforms){const o=this.uniforms[s].value;o&&o.isTexture?t.uniforms[s]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[s]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[s]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[s]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[s]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[s]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[s]={type:"m4",value:o.toArray()}:t.uniforms[s]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const s in this.extensions)this.extensions[s]===!0&&(i[s]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}class eO extends Jt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=Ms}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Gn extends eO{constructor(e=50,t=1,i=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=s,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=xa*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ol*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return xa*2*Math.atan(Math.tan(Ol*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,i,s,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Ol*.5*this.fov)/this.zoom,i=2*t,s=this.aspect*i,r=-.5*s;const o=this.view;if(this.view!==null&&this.view.enabled){const c=o.fullWidth,d=o.fullHeight;r+=o.offsetX*s/c,t-=o.offsetY*i/d,s*=o.width/c,i*=o.height/d}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Go=-90,Vo=1;class Sbt extends Jt{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new Gn(Go,Vo,e,t);s.layers=this.layers,this.add(s);const r=new Gn(Go,Vo,e,t);r.layers=this.layers,this.add(r);const o=new Gn(Go,Vo,e,t);o.layers=this.layers,this.add(o);const a=new Gn(Go,Vo,e,t);a.layers=this.layers,this.add(a);const c=new Gn(Go,Vo,e,t);c.layers=this.layers,this.add(c);const d=new Gn(Go,Vo,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,s,r,o,a,c]=t;for(const d of t)this.remove(d);if(e===Ms)i.up.set(0,1,0),i.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===Eu)i.up.set(0,-1,0),i.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,c,d,u]=this.children,_=e.getRenderTarget(),m=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),f=e.xr.enabled;e.xr.enabled=!1;const y=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,s),e.render(t,r),e.setRenderTarget(i,1,s),e.render(t,o),e.setRenderTarget(i,2,s),e.render(t,a),e.setRenderTarget(i,3,s),e.render(t,c),e.setRenderTarget(i,4,s),e.render(t,d),i.texture.generateMipmaps=y,e.setRenderTarget(i,5,s),e.render(t,u),e.setRenderTarget(_,m,h),e.xr.enabled=f,i.texture.needsPMREMUpdate=!0}}class tO extends xn{constructor(e,t,i,s,r,o,a,c,d,u){e=e!==void 0?e:[],t=t!==void 0?t:ya,super(e,t,i,s,r,o,a,c,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Tbt extends mo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},s=[i,i,i,i,i,i];t.encoding!==void 0&&(kl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===so?nn:bi),this.texture=new tO(s,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Wn}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
+}`;class ho extends Vi{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=ybt,this.fragmentShader=Ebt,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Ca(e.uniforms),this.uniformsGroups=gbt(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const s in this.uniforms){const o=this.uniforms[s].value;o&&o.isTexture?t.uniforms[s]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[s]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[s]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[s]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[s]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[s]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[s]={type:"m4",value:o.toArray()}:t.uniforms[s]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const i={};for(const s in this.extensions)this.extensions[s]===!0&&(i[s]=!0);return Object.keys(i).length>0&&(t.extensions=i),t}}class eO extends Jt{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new xt,this.projectionMatrix=new xt,this.projectionMatrixInverse=new xt,this.coordinateSystem=Ms}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Gn extends eO{constructor(e=50,t=1,i=.1,s=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=s,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=xa*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Ol*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return xa*2*Math.atan(Math.tan(Ol*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,i,s,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(Ol*.5*this.fov)/this.zoom,i=2*t,s=this.aspect*i,r=-.5*s;const o=this.view;if(this.view!==null&&this.view.enabled){const c=o.fullWidth,d=o.fullHeight;r+=o.offsetX*s/c,t-=o.offsetY*i/d,s*=o.width/c,i*=o.height/d}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+s,t,t-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Go=-90,Vo=1;class vbt extends Jt{constructor(e,t,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const s=new Gn(Go,Vo,e,t);s.layers=this.layers,this.add(s);const r=new Gn(Go,Vo,e,t);r.layers=this.layers,this.add(r);const o=new Gn(Go,Vo,e,t);o.layers=this.layers,this.add(o);const a=new Gn(Go,Vo,e,t);a.layers=this.layers,this.add(a);const c=new Gn(Go,Vo,e,t);c.layers=this.layers,this.add(c);const d=new Gn(Go,Vo,e,t);d.layers=this.layers,this.add(d)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[i,s,r,o,a,c]=t;for(const d of t)this.remove(d);if(e===Ms)i.up.set(0,1,0),i.lookAt(1,0,0),s.up.set(0,1,0),s.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===Eu)i.up.set(0,-1,0),i.lookAt(-1,0,0),s.up.set(0,-1,0),s.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const d of t)this.add(d),d.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:s}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,c,d,u]=this.children,_=e.getRenderTarget(),m=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),f=e.xr.enabled;e.xr.enabled=!1;const y=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,s),e.render(t,r),e.setRenderTarget(i,1,s),e.render(t,o),e.setRenderTarget(i,2,s),e.render(t,a),e.setRenderTarget(i,3,s),e.render(t,c),e.setRenderTarget(i,4,s),e.render(t,d),i.texture.generateMipmaps=y,e.setRenderTarget(i,5,s),e.render(t,u),e.setRenderTarget(_,m,h),e.xr.enabled=f,i.texture.needsPMREMUpdate=!0}}class tO extends xn{constructor(e,t,i,s,r,o,a,c,d,u){e=e!==void 0?e:[],t=t!==void 0?t:ya,super(e,t,i,s,r,o,a,c,d,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Sbt extends mo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},s=[i,i,i,i,i,i];t.encoding!==void 0&&(kl("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."),t.colorSpace=t.encoding===so?nn:bi),this.texture=new tO(s,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Wn}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
 
 				varying vec3 vWorldDirection;
 
@@ -364,9 +364,9 @@ ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);thi
 					gl_FragColor = texture2D( tEquirect, sampleUV );
 
 				}
-			`},s=new Er(5,5,5),r=new ho({name:"CubemapFromEquirect",uniforms:Ca(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Zn,blending:gr});r.uniforms.tEquirect.value=t;const o=new Vn(s,r),a=t.minFilter;return t.minFilter===_o&&(t.minFilter=Wn),new Sbt(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,i,s){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,i,s);e.setRenderTarget(r)}}const pg=new re,xbt=new re,Cbt=new Tt;class zr{constructor(e=new re(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,i,s){return this.normal.set(e,t,i),this.constant=s,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,i){const s=pg.subVectors(i,t).cross(xbt.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(s,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const i=e.delta(pg),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/s;return r<0||r>1?null:t.copy(e.start).addScaledVector(i,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const i=t||Cbt.getNormalMatrix(e),s=this.coplanarPoint(pg).applyMatrix4(e),r=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ur=new ps,ld=new re;class my{constructor(e=new zr,t=new zr,i=new zr,s=new zr,r=new zr,o=new zr){this.planes=[e,t,i,s,r,o]}set(e,t,i,s,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(s),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=Ms){const i=this.planes,s=e.elements,r=s[0],o=s[1],a=s[2],c=s[3],d=s[4],u=s[5],_=s[6],m=s[7],h=s[8],f=s[9],y=s[10],b=s[11],g=s[12],E=s[13],v=s[14],S=s[15];if(i[0].setComponents(c-r,m-d,b-h,S-g).normalize(),i[1].setComponents(c+r,m+d,b+h,S+g).normalize(),i[2].setComponents(c+o,m+u,b+f,S+E).normalize(),i[3].setComponents(c-o,m-u,b-f,S-E).normalize(),i[4].setComponents(c-a,m-_,b-y,S-v).normalize(),t===Ms)i[5].setComponents(c+a,m+_,b+y,S+v).normalize();else if(t===Eu)i[5].setComponents(a,_,y,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ur.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ur.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ur)}intersectsSprite(e){return Ur.center.set(0,0,0),Ur.radius=.7071067811865476,Ur.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ur)}intersectsSphere(e){const t=this.planes,i=e.center,s=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(i)<s)return!1;return!0}intersectsBox(e){const t=this.planes;for(let i=0;i<6;i++){const s=t[i];if(ld.x=s.normal.x>0?e.max.x:e.min.x,ld.y=s.normal.y>0?e.max.y:e.min.y,ld.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(ld)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function nO(){let n=null,e=!1,t=null,i=null;function s(r,o){t(r,o),i=n.requestAnimationFrame(s)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(s),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){n=r}}}function wbt(n,e){const t=e.isWebGL2,i=new WeakMap;function s(d,u){const _=d.array,m=d.usage,h=_.byteLength,f=n.createBuffer();n.bindBuffer(u,f),n.bufferData(u,_,m),d.onUploadCallback();let y;if(_ instanceof Float32Array)y=n.FLOAT;else if(_ instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(t)y=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else y=n.UNSIGNED_SHORT;else if(_ instanceof Int16Array)y=n.SHORT;else if(_ instanceof Uint32Array)y=n.UNSIGNED_INT;else if(_ instanceof Int32Array)y=n.INT;else if(_ instanceof Int8Array)y=n.BYTE;else if(_ instanceof Uint8Array)y=n.UNSIGNED_BYTE;else if(_ instanceof Uint8ClampedArray)y=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+_);return{buffer:f,type:y,bytesPerElement:_.BYTES_PER_ELEMENT,version:d.version,size:h}}function r(d,u,_){const m=u.array,h=u._updateRange,f=u.updateRanges;if(n.bindBuffer(_,d),h.count===-1&&f.length===0&&n.bufferSubData(_,0,m),f.length!==0){for(let y=0,b=f.length;y<b;y++){const g=f[y];t?n.bufferSubData(_,g.start*m.BYTES_PER_ELEMENT,m,g.start,g.count):n.bufferSubData(_,g.start*m.BYTES_PER_ELEMENT,m.subarray(g.start,g.start+g.count))}u.clearUpdateRanges()}h.count!==-1&&(t?n.bufferSubData(_,h.offset*m.BYTES_PER_ELEMENT,m,h.offset,h.count):n.bufferSubData(_,h.offset*m.BYTES_PER_ELEMENT,m.subarray(h.offset,h.offset+h.count)),h.count=-1),u.onUploadCallback()}function o(d){return d.isInterleavedBufferAttribute&&(d=d.data),i.get(d)}function a(d){d.isInterleavedBufferAttribute&&(d=d.data);const u=i.get(d);u&&(n.deleteBuffer(u.buffer),i.delete(d))}function c(d,u){if(d.isGLBufferAttribute){const m=i.get(d);(!m||m.version<d.version)&&i.set(d,{buffer:d.buffer,type:d.type,bytesPerElement:d.elementSize,version:d.version});return}d.isInterleavedBufferAttribute&&(d=d.data);const _=i.get(d);if(_===void 0)i.set(d,s(d,u));else if(_.version<d.version){if(_.size!==d.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");r(_.buffer,d,u),_.version=d.version}}return{get:o,remove:a,update:c}}class hy extends fs{constructor(e=1,t=1,i=1,s=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:i,heightSegments:s};const r=e/2,o=t/2,a=Math.floor(i),c=Math.floor(s),d=a+1,u=c+1,_=e/a,m=t/c,h=[],f=[],y=[],b=[];for(let g=0;g<u;g++){const E=g*m-o;for(let v=0;v<d;v++){const S=v*_-r;f.push(S,-E,0),y.push(0,0,1),b.push(v/a),b.push(1-g/c)}}for(let g=0;g<c;g++)for(let E=0;E<a;E++){const v=E+d*g,S=E+d*(g+1),R=E+1+d*(g+1),C=E+1+d*g;h.push(v,S,C),h.push(S,R,C)}this.setIndex(h),this.setAttribute("position",new ks(f,3)),this.setAttribute("normal",new ks(y,3)),this.setAttribute("uv",new ks(b,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new hy(e.width,e.height,e.widthSegments,e.heightSegments)}}var Rbt=`#ifdef USE_ALPHAHASH
+			`},s=new Er(5,5,5),r=new ho({name:"CubemapFromEquirect",uniforms:Ca(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Zn,blending:gr});r.uniforms.tEquirect.value=t;const o=new Vn(s,r),a=t.minFilter;return t.minFilter===_o&&(t.minFilter=Wn),new vbt(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,i,s){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,i,s);e.setRenderTarget(r)}}const pg=new re,Tbt=new re,xbt=new Tt;class zr{constructor(e=new re(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,i,s){return this.normal.set(e,t,i),this.constant=s,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,i){const s=pg.subVectors(i,t).cross(Tbt.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(s,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const i=e.delta(pg),s=this.normal.dot(i);if(s===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/s;return r<0||r>1?null:t.copy(e.start).addScaledVector(i,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return t<0&&i>0||i<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const i=t||xbt.getNormalMatrix(e),s=this.coplanarPoint(pg).applyMatrix4(e),r=this.normal.applyMatrix3(i).normalize();return this.constant=-s.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ur=new ps,ld=new re;class my{constructor(e=new zr,t=new zr,i=new zr,s=new zr,r=new zr,o=new zr){this.planes=[e,t,i,s,r,o]}set(e,t,i,s,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(i),a[3].copy(s),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let i=0;i<6;i++)t[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,t=Ms){const i=this.planes,s=e.elements,r=s[0],o=s[1],a=s[2],c=s[3],d=s[4],u=s[5],_=s[6],m=s[7],h=s[8],f=s[9],y=s[10],b=s[11],g=s[12],E=s[13],v=s[14],S=s[15];if(i[0].setComponents(c-r,m-d,b-h,S-g).normalize(),i[1].setComponents(c+r,m+d,b+h,S+g).normalize(),i[2].setComponents(c+o,m+u,b+f,S+E).normalize(),i[3].setComponents(c-o,m-u,b-f,S-E).normalize(),i[4].setComponents(c-a,m-_,b-y,S-v).normalize(),t===Ms)i[5].setComponents(c+a,m+_,b+y,S+v).normalize();else if(t===Eu)i[5].setComponents(a,_,y,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ur.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ur.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ur)}intersectsSprite(e){return Ur.center.set(0,0,0),Ur.radius=.7071067811865476,Ur.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ur)}intersectsSphere(e){const t=this.planes,i=e.center,s=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(i)<s)return!1;return!0}intersectsBox(e){const t=this.planes;for(let i=0;i<6;i++){const s=t[i];if(ld.x=s.normal.x>0?e.max.x:e.min.x,ld.y=s.normal.y>0?e.max.y:e.min.y,ld.z=s.normal.z>0?e.max.z:e.min.z,s.distanceToPoint(ld)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let i=0;i<6;i++)if(t[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function nO(){let n=null,e=!1,t=null,i=null;function s(r,o){t(r,o),i=n.requestAnimationFrame(s)}return{start:function(){e!==!0&&t!==null&&(i=n.requestAnimationFrame(s),e=!0)},stop:function(){n.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){n=r}}}function Cbt(n,e){const t=e.isWebGL2,i=new WeakMap;function s(d,u){const _=d.array,m=d.usage,h=_.byteLength,f=n.createBuffer();n.bindBuffer(u,f),n.bufferData(u,_,m),d.onUploadCallback();let y;if(_ instanceof Float32Array)y=n.FLOAT;else if(_ instanceof Uint16Array)if(d.isFloat16BufferAttribute)if(t)y=n.HALF_FLOAT;else throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");else y=n.UNSIGNED_SHORT;else if(_ instanceof Int16Array)y=n.SHORT;else if(_ instanceof Uint32Array)y=n.UNSIGNED_INT;else if(_ instanceof Int32Array)y=n.INT;else if(_ instanceof Int8Array)y=n.BYTE;else if(_ instanceof Uint8Array)y=n.UNSIGNED_BYTE;else if(_ instanceof Uint8ClampedArray)y=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+_);return{buffer:f,type:y,bytesPerElement:_.BYTES_PER_ELEMENT,version:d.version,size:h}}function r(d,u,_){const m=u.array,h=u._updateRange,f=u.updateRanges;if(n.bindBuffer(_,d),h.count===-1&&f.length===0&&n.bufferSubData(_,0,m),f.length!==0){for(let y=0,b=f.length;y<b;y++){const g=f[y];t?n.bufferSubData(_,g.start*m.BYTES_PER_ELEMENT,m,g.start,g.count):n.bufferSubData(_,g.start*m.BYTES_PER_ELEMENT,m.subarray(g.start,g.start+g.count))}u.clearUpdateRanges()}h.count!==-1&&(t?n.bufferSubData(_,h.offset*m.BYTES_PER_ELEMENT,m,h.offset,h.count):n.bufferSubData(_,h.offset*m.BYTES_PER_ELEMENT,m.subarray(h.offset,h.offset+h.count)),h.count=-1),u.onUploadCallback()}function o(d){return d.isInterleavedBufferAttribute&&(d=d.data),i.get(d)}function a(d){d.isInterleavedBufferAttribute&&(d=d.data);const u=i.get(d);u&&(n.deleteBuffer(u.buffer),i.delete(d))}function c(d,u){if(d.isGLBufferAttribute){const m=i.get(d);(!m||m.version<d.version)&&i.set(d,{buffer:d.buffer,type:d.type,bytesPerElement:d.elementSize,version:d.version});return}d.isInterleavedBufferAttribute&&(d=d.data);const _=i.get(d);if(_===void 0)i.set(d,s(d,u));else if(_.version<d.version){if(_.size!==d.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");r(_.buffer,d,u),_.version=d.version}}return{get:o,remove:a,update:c}}class hy extends fs{constructor(e=1,t=1,i=1,s=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:i,heightSegments:s};const r=e/2,o=t/2,a=Math.floor(i),c=Math.floor(s),d=a+1,u=c+1,_=e/a,m=t/c,h=[],f=[],y=[],b=[];for(let g=0;g<u;g++){const E=g*m-o;for(let v=0;v<d;v++){const S=v*_-r;f.push(S,-E,0),y.push(0,0,1),b.push(v/a),b.push(1-g/c)}}for(let g=0;g<c;g++)for(let E=0;E<a;E++){const v=E+d*g,S=E+d*(g+1),R=E+1+d*(g+1),C=E+1+d*g;h.push(v,S,C),h.push(S,R,C)}this.setIndex(h),this.setAttribute("position",new ks(f,3)),this.setAttribute("normal",new ks(y,3)),this.setAttribute("uv",new ks(b,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new hy(e.width,e.height,e.widthSegments,e.heightSegments)}}var wbt=`#ifdef USE_ALPHAHASH
 	if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
-#endif`,Abt=`#ifdef USE_ALPHAHASH
+#endif`,Rbt=`#ifdef USE_ALPHAHASH
 	const float ALPHA_HASH_SCALE = 0.05;
 	float hash2D( vec2 value ) {
 		return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
@@ -401,15 +401,15 @@ ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);thi
 			: cases.z;
 		return clamp( threshold , 1.0e-6, 1.0 );
 	}
-#endif`,Mbt=`#ifdef USE_ALPHAMAP
+#endif`,Abt=`#ifdef USE_ALPHAMAP
 	diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
-#endif`,Nbt=`#ifdef USE_ALPHAMAP
+#endif`,Mbt=`#ifdef USE_ALPHAMAP
 	uniform sampler2D alphaMap;
-#endif`,Obt=`#ifdef USE_ALPHATEST
+#endif`,Nbt=`#ifdef USE_ALPHATEST
 	if ( diffuseColor.a < alphaTest ) discard;
-#endif`,Ibt=`#ifdef USE_ALPHATEST
+#endif`,Obt=`#ifdef USE_ALPHATEST
 	uniform float alphaTest;
-#endif`,kbt=`#ifdef USE_AOMAP
+#endif`,Ibt=`#ifdef USE_AOMAP
 	float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
 	reflectedLight.indirectDiffuse *= ambientOcclusion;
 	#if defined( USE_CLEARCOAT ) 
@@ -422,10 +422,10 @@ ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);thi
 		float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
 		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
 	#endif
-#endif`,Dbt=`#ifdef USE_AOMAP
+#endif`,kbt=`#ifdef USE_AOMAP
 	uniform sampler2D aoMap;
 	uniform float aoMapIntensity;
-#endif`,Lbt=`#ifdef USE_BATCHING
+#endif`,Dbt=`#ifdef USE_BATCHING
 	attribute float batchId;
 	uniform highp sampler2D batchingTexture;
 	mat4 getBatchingMatrix( const in float i ) {
@@ -439,15 +439,15 @@ ${c}`;navigator.clipboard.writeText(d)}else navigator.clipboard.writeText(e);thi
 		vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
 		return mat4( v1, v2, v3, v4 );
 	}
-#endif`,Pbt=`#ifdef USE_BATCHING
+#endif`,Lbt=`#ifdef USE_BATCHING
 	mat4 batchingMatrix = getBatchingMatrix( batchId );
-#endif`,Fbt=`vec3 transformed = vec3( position );
+#endif`,Pbt=`vec3 transformed = vec3( position );
 #ifdef USE_ALPHAHASH
 	vPosition = vec3( position );
-#endif`,Ubt=`vec3 objectNormal = vec3( normal );
+#endif`,Fbt=`vec3 objectNormal = vec3( normal );
 #ifdef USE_TANGENT
 	vec3 objectTangent = vec3( tangent.xyz );
-#endif`,Bbt=`float G_BlinnPhong_Implicit( ) {
+#endif`,Ubt=`float G_BlinnPhong_Implicit( ) {
 	return 0.25;
 }
 float D_BlinnPhong( const in float shininess, const in float dotNH ) {
@@ -461,7 +461,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
 	float G = G_BlinnPhong_Implicit( );
 	float D = D_BlinnPhong( shininess, dotNH );
 	return F * ( G * D );
-} // validated`,Gbt=`#ifdef USE_IRIDESCENCE
+} // validated`,Bbt=`#ifdef USE_IRIDESCENCE
 	const mat3 XYZ_TO_REC709 = mat3(
 		 3.2404542, -0.9692660,  0.0556434,
 		-1.5371385,  1.8760108, -0.2040259,
@@ -524,7 +524,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
 		}
 		return max( I, vec3( 0.0 ) );
 	}
-#endif`,Vbt=`#ifdef USE_BUMPMAP
+#endif`,Gbt=`#ifdef USE_BUMPMAP
 	uniform sampler2D bumpMap;
 	uniform float bumpScale;
 	vec2 dHdxy_fwd() {
@@ -545,7 +545,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
 		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
 		return normalize( abs( fDet ) * surf_norm - vGrad );
 	}
-#endif`,zbt=`#if NUM_CLIPPING_PLANES > 0
+#endif`,Vbt=`#if NUM_CLIPPING_PLANES > 0
 	vec4 plane;
 	#pragma unroll_loop_start
 	for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
@@ -563,26 +563,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
 		#pragma unroll_loop_end
 		if ( clipped ) discard;
 	#endif
-#endif`,Hbt=`#if NUM_CLIPPING_PLANES > 0
+#endif`,zbt=`#if NUM_CLIPPING_PLANES > 0
 	varying vec3 vClipPosition;
 	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
-#endif`,qbt=`#if NUM_CLIPPING_PLANES > 0
+#endif`,Hbt=`#if NUM_CLIPPING_PLANES > 0
 	varying vec3 vClipPosition;
-#endif`,Ybt=`#if NUM_CLIPPING_PLANES > 0
+#endif`,qbt=`#if NUM_CLIPPING_PLANES > 0
 	vClipPosition = - mvPosition.xyz;
-#endif`,$bt=`#if defined( USE_COLOR_ALPHA )
+#endif`,Ybt=`#if defined( USE_COLOR_ALPHA )
 	diffuseColor *= vColor;
 #elif defined( USE_COLOR )
 	diffuseColor.rgb *= vColor;
-#endif`,Wbt=`#if defined( USE_COLOR_ALPHA )
+#endif`,$bt=`#if defined( USE_COLOR_ALPHA )
 	varying vec4 vColor;
 #elif defined( USE_COLOR )
 	varying vec3 vColor;
-#endif`,Kbt=`#if defined( USE_COLOR_ALPHA )
+#endif`,Wbt=`#if defined( USE_COLOR_ALPHA )
 	varying vec4 vColor;
 #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
 	varying vec3 vColor;
-#endif`,jbt=`#if defined( USE_COLOR_ALPHA )
+#endif`,Kbt=`#if defined( USE_COLOR_ALPHA )
 	vColor = vec4( 1.0 );
 #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
 	vColor = vec3( 1.0 );
@@ -592,7 +592,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
 #endif
 #ifdef USE_INSTANCING_COLOR
 	vColor.xyz *= instanceColor.xyz;
-#endif`,Qbt=`#define PI 3.141592653589793
+#endif`,jbt=`#define PI 3.141592653589793
 #define PI2 6.283185307179586
 #define PI_HALF 1.5707963267948966
 #define RECIPROCAL_PI 0.3183098861837907
@@ -670,7 +670,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
 float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
 	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
 	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
-} // validated`,Xbt=`#ifdef ENVMAP_TYPE_CUBE_UV
+} // validated`,Qbt=`#ifdef ENVMAP_TYPE_CUBE_UV
 	#define cubeUV_minMipLevel 4.0
 	#define cubeUV_minTileSize 16.0
 	float getFace( vec3 direction ) {
@@ -768,7 +768,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
 			return vec4( mix( color0, color1, mipF ), 1.0 );
 		}
 	}
-#endif`,Zbt=`vec3 transformedNormal = objectNormal;
+#endif`,Xbt=`vec3 transformedNormal = objectNormal;
 #ifdef USE_TANGENT
 	vec3 transformedTangent = objectTangent;
 #endif
@@ -797,18 +797,18 @@ transformedNormal = normalMatrix * transformedNormal;
 	#ifdef FLIP_SIDED
 		transformedTangent = - transformedTangent;
 	#endif
-#endif`,Jbt=`#ifdef USE_DISPLACEMENTMAP
+#endif`,Zbt=`#ifdef USE_DISPLACEMENTMAP
 	uniform sampler2D displacementMap;
 	uniform float displacementScale;
 	uniform float displacementBias;
-#endif`,e0t=`#ifdef USE_DISPLACEMENTMAP
+#endif`,Jbt=`#ifdef USE_DISPLACEMENTMAP
 	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
-#endif`,t0t=`#ifdef USE_EMISSIVEMAP
+#endif`,e0t=`#ifdef USE_EMISSIVEMAP
 	vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
 	totalEmissiveRadiance *= emissiveColor.rgb;
-#endif`,n0t=`#ifdef USE_EMISSIVEMAP
+#endif`,t0t=`#ifdef USE_EMISSIVEMAP
 	uniform sampler2D emissiveMap;
-#endif`,i0t="gl_FragColor = linearToOutputTexel( gl_FragColor );",s0t=`
+#endif`,n0t="gl_FragColor = linearToOutputTexel( gl_FragColor );",i0t=`
 const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(
 	vec3( 0.8224621, 0.177538, 0.0 ),
 	vec3( 0.0331941, 0.9668058, 0.0 ),
@@ -836,7 +836,7 @@ vec4 LinearToLinear( in vec4 value ) {
 }
 vec4 LinearTosRGB( in vec4 value ) {
 	return sRGBTransferOETF( value );
-}`,r0t=`#ifdef USE_ENVMAP
+}`,s0t=`#ifdef USE_ENVMAP
 	#ifdef ENV_WORLDPOS
 		vec3 cameraToFrag;
 		if ( isOrthographic ) {
@@ -865,7 +865,7 @@ vec4 LinearTosRGB( in vec4 value ) {
 	#elif defined( ENVMAP_BLENDING_ADD )
 		outgoingLight += envColor.xyz * specularStrength * reflectivity;
 	#endif
-#endif`,o0t=`#ifdef USE_ENVMAP
+#endif`,r0t=`#ifdef USE_ENVMAP
 	uniform float envMapIntensity;
 	uniform float flipEnvMap;
 	#ifdef ENVMAP_TYPE_CUBE
@@ -874,7 +874,7 @@ vec4 LinearTosRGB( in vec4 value ) {
 		uniform sampler2D envMap;
 	#endif
 	
-#endif`,a0t=`#ifdef USE_ENVMAP
+#endif`,o0t=`#ifdef USE_ENVMAP
 	uniform float reflectivity;
 	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
 		#define ENV_WORLDPOS
@@ -885,7 +885,7 @@ vec4 LinearTosRGB( in vec4 value ) {
 	#else
 		varying vec3 vReflect;
 	#endif
-#endif`,l0t=`#ifdef USE_ENVMAP
+#endif`,a0t=`#ifdef USE_ENVMAP
 	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
 		#define ENV_WORLDPOS
 	#endif
@@ -896,7 +896,7 @@ vec4 LinearTosRGB( in vec4 value ) {
 		varying vec3 vReflect;
 		uniform float refractionRatio;
 	#endif
-#endif`,c0t=`#ifdef USE_ENVMAP
+#endif`,l0t=`#ifdef USE_ENVMAP
 	#ifdef ENV_WORLDPOS
 		vWorldPosition = worldPosition.xyz;
 	#else
@@ -913,18 +913,18 @@ vec4 LinearTosRGB( in vec4 value ) {
 			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
 		#endif
 	#endif
-#endif`,d0t=`#ifdef USE_FOG
+#endif`,c0t=`#ifdef USE_FOG
 	vFogDepth = - mvPosition.z;
-#endif`,u0t=`#ifdef USE_FOG
+#endif`,d0t=`#ifdef USE_FOG
 	varying float vFogDepth;
-#endif`,p0t=`#ifdef USE_FOG
+#endif`,u0t=`#ifdef USE_FOG
 	#ifdef FOG_EXP2
 		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
 	#else
 		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
 	#endif
 	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
-#endif`,f0t=`#ifdef USE_FOG
+#endif`,p0t=`#ifdef USE_FOG
 	uniform vec3 fogColor;
 	varying float vFogDepth;
 	#ifdef FOG_EXP2
@@ -933,7 +933,7 @@ vec4 LinearTosRGB( in vec4 value ) {
 		uniform float fogNear;
 		uniform float fogFar;
 	#endif
-#endif`,_0t=`#ifdef USE_GRADIENTMAP
+#endif`,f0t=`#ifdef USE_GRADIENTMAP
 	uniform sampler2D gradientMap;
 #endif
 vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
@@ -945,16 +945,16 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
 		vec2 fw = fwidth( coord ) * 0.5;
 		return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
 	#endif
-}`,m0t=`#ifdef USE_LIGHTMAP
+}`,_0t=`#ifdef USE_LIGHTMAP
 	vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
 	vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
 	reflectedLight.indirectDiffuse += lightMapIrradiance;
-#endif`,h0t=`#ifdef USE_LIGHTMAP
+#endif`,m0t=`#ifdef USE_LIGHTMAP
 	uniform sampler2D lightMap;
 	uniform float lightMapIntensity;
-#endif`,g0t=`LambertMaterial material;
+#endif`,h0t=`LambertMaterial material;
 material.diffuseColor = diffuseColor.rgb;
-material.specularStrength = specularStrength;`,b0t=`varying vec3 vViewPosition;
+material.specularStrength = specularStrength;`,g0t=`varying vec3 vViewPosition;
 struct LambertMaterial {
 	vec3 diffuseColor;
 	float specularStrength;
@@ -968,7 +968,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr
 	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
 }
 #define RE_Direct				RE_Direct_Lambert
-#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,y0t=`uniform bool receiveShadow;
+#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,b0t=`uniform bool receiveShadow;
 uniform vec3 ambientLightColor;
 #if defined( USE_LIGHT_PROBES )
 	uniform vec3 lightProbe[ 9 ];
@@ -1091,7 +1091,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi
 		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
 		return irradiance;
 	}
-#endif`,E0t=`#ifdef USE_ENVMAP
+#endif`,y0t=`#ifdef USE_ENVMAP
 	vec3 getIBLIrradiance( const in vec3 normal ) {
 		#ifdef ENVMAP_TYPE_CUBE_UV
 			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
@@ -1124,8 +1124,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi
 			#endif
 		}
 	#endif
-#endif`,v0t=`ToonMaterial material;
-material.diffuseColor = diffuseColor.rgb;`,S0t=`varying vec3 vViewPosition;
+#endif`,E0t=`ToonMaterial material;
+material.diffuseColor = diffuseColor.rgb;`,v0t=`varying vec3 vViewPosition;
 struct ToonMaterial {
 	vec3 diffuseColor;
 };
@@ -1137,11 +1137,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo
 	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
 }
 #define RE_Direct				RE_Direct_Toon
-#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,T0t=`BlinnPhongMaterial material;
+#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,S0t=`BlinnPhongMaterial material;
 material.diffuseColor = diffuseColor.rgb;
 material.specularColor = specular;
 material.specularShininess = shininess;
-material.specularStrength = specularStrength;`,x0t=`varying vec3 vViewPosition;
+material.specularStrength = specularStrength;`,T0t=`varying vec3 vViewPosition;
 struct BlinnPhongMaterial {
 	vec3 diffuseColor;
 	vec3 specularColor;
@@ -1158,7 +1158,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom
 	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
 }
 #define RE_Direct				RE_Direct_BlinnPhong
-#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,C0t=`PhysicalMaterial material;
+#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,x0t=`PhysicalMaterial material;
 material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
 vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
 float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
@@ -1241,7 +1241,7 @@ material.roughness = min( material.roughness, 1.0 );
 	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
 	material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
 	material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
-#endif`,w0t=`struct PhysicalMaterial {
+#endif`,C0t=`struct PhysicalMaterial {
 	vec3 diffuseColor;
 	float roughness;
 	vec3 specularColor;
@@ -1541,7 +1541,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia
 #define RE_IndirectSpecular		RE_IndirectSpecular_Physical
 float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
 	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
-}`,R0t=`
+}`,w0t=`
 vec3 geometryPosition = - vViewPosition;
 vec3 geometryNormal = normal;
 vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
@@ -1656,7 +1656,7 @@ IncidentLight directLight;
 #if defined( RE_IndirectSpecular )
 	vec3 radiance = vec3( 0.0 );
 	vec3 clearcoatRadiance = vec3( 0.0 );
-#endif`,A0t=`#if defined( RE_IndirectDiffuse )
+#endif`,R0t=`#if defined( RE_IndirectDiffuse )
 	#ifdef USE_LIGHTMAP
 		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
 		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
@@ -1675,25 +1675,25 @@ IncidentLight directLight;
 	#ifdef USE_CLEARCOAT
 		clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
 	#endif
-#endif`,M0t=`#if defined( RE_IndirectDiffuse )
+#endif`,A0t=`#if defined( RE_IndirectDiffuse )
 	RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
 #endif
 #if defined( RE_IndirectSpecular )
 	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
-#endif`,N0t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
+#endif`,M0t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
 	gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
-#endif`,O0t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
+#endif`,N0t=`#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )
 	uniform float logDepthBufFC;
 	varying float vFragDepth;
 	varying float vIsPerspective;
-#endif`,I0t=`#ifdef USE_LOGDEPTHBUF
+#endif`,O0t=`#ifdef USE_LOGDEPTHBUF
 	#ifdef USE_LOGDEPTHBUF_EXT
 		varying float vFragDepth;
 		varying float vIsPerspective;
 	#else
 		uniform float logDepthBufFC;
 	#endif
-#endif`,k0t=`#ifdef USE_LOGDEPTHBUF
+#endif`,I0t=`#ifdef USE_LOGDEPTHBUF
 	#ifdef USE_LOGDEPTHBUF_EXT
 		vFragDepth = 1.0 + gl_Position.w;
 		vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
@@ -1703,16 +1703,16 @@ IncidentLight directLight;
 			gl_Position.z *= gl_Position.w;
 		}
 	#endif
-#endif`,D0t=`#ifdef USE_MAP
+#endif`,k0t=`#ifdef USE_MAP
 	vec4 sampledDiffuseColor = texture2D( map, vMapUv );
 	#ifdef DECODE_VIDEO_TEXTURE
 		sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
 	
 	#endif
 	diffuseColor *= sampledDiffuseColor;
-#endif`,L0t=`#ifdef USE_MAP
+#endif`,D0t=`#ifdef USE_MAP
 	uniform sampler2D map;
-#endif`,P0t=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
+#endif`,L0t=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
 	#if defined( USE_POINTS_UV )
 		vec2 uv = vUv;
 	#else
@@ -1724,7 +1724,7 @@ IncidentLight directLight;
 #endif
 #ifdef USE_ALPHAMAP
 	diffuseColor.a *= texture2D( alphaMap, uv ).g;
-#endif`,F0t=`#if defined( USE_POINTS_UV )
+#endif`,P0t=`#if defined( USE_POINTS_UV )
 	varying vec2 vUv;
 #else
 	#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
@@ -1736,13 +1736,13 @@ IncidentLight directLight;
 #endif
 #ifdef USE_ALPHAMAP
 	uniform sampler2D alphaMap;
-#endif`,U0t=`float metalnessFactor = metalness;
+#endif`,F0t=`float metalnessFactor = metalness;
 #ifdef USE_METALNESSMAP
 	vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
 	metalnessFactor *= texelMetalness.b;
-#endif`,B0t=`#ifdef USE_METALNESSMAP
+#endif`,U0t=`#ifdef USE_METALNESSMAP
 	uniform sampler2D metalnessMap;
-#endif`,G0t=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
+#endif`,B0t=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
 	vColor *= morphTargetBaseInfluence;
 	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
 		#if defined( USE_COLOR_ALPHA )
@@ -1751,7 +1751,7 @@ IncidentLight directLight;
 			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
 		#endif
 	}
-#endif`,V0t=`#ifdef USE_MORPHNORMALS
+#endif`,G0t=`#ifdef USE_MORPHNORMALS
 	objectNormal *= morphTargetBaseInfluence;
 	#ifdef MORPHTARGETS_TEXTURE
 		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
@@ -1763,7 +1763,7 @@ IncidentLight directLight;
 		objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
 		objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
 	#endif
-#endif`,z0t=`#ifdef USE_MORPHTARGETS
+#endif`,V0t=`#ifdef USE_MORPHTARGETS
 	uniform float morphTargetBaseInfluence;
 	#ifdef MORPHTARGETS_TEXTURE
 		uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
@@ -1783,7 +1783,7 @@ IncidentLight directLight;
 			uniform float morphTargetInfluences[ 4 ];
 		#endif
 	#endif
-#endif`,H0t=`#ifdef USE_MORPHTARGETS
+#endif`,z0t=`#ifdef USE_MORPHTARGETS
 	transformed *= morphTargetBaseInfluence;
 	#ifdef MORPHTARGETS_TEXTURE
 		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
@@ -1801,7 +1801,7 @@ IncidentLight directLight;
 			transformed += morphTarget7 * morphTargetInfluences[ 7 ];
 		#endif
 	#endif
-#endif`,q0t=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
+#endif`,H0t=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
 #ifdef FLAT_SHADED
 	vec3 fdx = dFdx( vViewPosition );
 	vec3 fdy = dFdy( vViewPosition );
@@ -1842,7 +1842,7 @@ IncidentLight directLight;
 		tbn2[1] *= faceDirection;
 	#endif
 #endif
-vec3 nonPerturbedNormal = normal;`,Y0t=`#ifdef USE_NORMALMAP_OBJECTSPACE
+vec3 nonPerturbedNormal = normal;`,q0t=`#ifdef USE_NORMALMAP_OBJECTSPACE
 	normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
 	#ifdef FLIP_SIDED
 		normal = - normal;
@@ -1857,6 +1857,12 @@ vec3 nonPerturbedNormal = normal;`,Y0t=`#ifdef USE_NORMALMAP_OBJECTSPACE
 	normal = normalize( tbn * mapN );
 #elif defined( USE_BUMPMAP )
 	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
+#endif`,Y0t=`#ifndef FLAT_SHADED
+	varying vec3 vNormal;
+	#ifdef USE_TANGENT
+		varying vec3 vTangent;
+		varying vec3 vBitangent;
+	#endif
 #endif`,$0t=`#ifndef FLAT_SHADED
 	varying vec3 vNormal;
 	#ifdef USE_TANGENT
@@ -1864,18 +1870,12 @@ vec3 nonPerturbedNormal = normal;`,Y0t=`#ifdef USE_NORMALMAP_OBJECTSPACE
 		varying vec3 vBitangent;
 	#endif
 #endif`,W0t=`#ifndef FLAT_SHADED
-	varying vec3 vNormal;
-	#ifdef USE_TANGENT
-		varying vec3 vTangent;
-		varying vec3 vBitangent;
-	#endif
-#endif`,K0t=`#ifndef FLAT_SHADED
 	vNormal = normalize( transformedNormal );
 	#ifdef USE_TANGENT
 		vTangent = normalize( transformedTangent );
 		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
 	#endif
-#endif`,j0t=`#ifdef USE_NORMALMAP
+#endif`,K0t=`#ifdef USE_NORMALMAP
 	uniform sampler2D normalMap;
 	uniform vec2 normalScale;
 #endif
@@ -1897,13 +1897,13 @@ vec3 nonPerturbedNormal = normal;`,Y0t=`#ifdef USE_NORMALMAP_OBJECTSPACE
 		float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
 		return mat3( T * scale, B * scale, N );
 	}
-#endif`,Q0t=`#ifdef USE_CLEARCOAT
+#endif`,j0t=`#ifdef USE_CLEARCOAT
 	vec3 clearcoatNormal = nonPerturbedNormal;
-#endif`,X0t=`#ifdef USE_CLEARCOAT_NORMALMAP
+#endif`,Q0t=`#ifdef USE_CLEARCOAT_NORMALMAP
 	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
 	clearcoatMapN.xy *= clearcoatNormalScale;
 	clearcoatNormal = normalize( tbn2 * clearcoatMapN );
-#endif`,Z0t=`#ifdef USE_CLEARCOATMAP
+#endif`,X0t=`#ifdef USE_CLEARCOATMAP
 	uniform sampler2D clearcoatMap;
 #endif
 #ifdef USE_CLEARCOAT_NORMALMAP
@@ -1912,18 +1912,18 @@ vec3 nonPerturbedNormal = normal;`,Y0t=`#ifdef USE_NORMALMAP_OBJECTSPACE
 #endif
 #ifdef USE_CLEARCOAT_ROUGHNESSMAP
 	uniform sampler2D clearcoatRoughnessMap;
-#endif`,J0t=`#ifdef USE_IRIDESCENCEMAP
+#endif`,Z0t=`#ifdef USE_IRIDESCENCEMAP
 	uniform sampler2D iridescenceMap;
 #endif
 #ifdef USE_IRIDESCENCE_THICKNESSMAP
 	uniform sampler2D iridescenceThicknessMap;
-#endif`,eyt=`#ifdef OPAQUE
+#endif`,J0t=`#ifdef OPAQUE
 diffuseColor.a = 1.0;
 #endif
 #ifdef USE_TRANSMISSION
 diffuseColor.a *= material.transmissionAlpha;
 #endif
-gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,tyt=`vec3 packNormalToRGB( const in vec3 normal ) {
+gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,eyt=`vec3 packNormalToRGB( const in vec3 normal ) {
 	return normalize( normal ) * 0.5 + 0.5;
 }
 vec3 unpackRGBToNormal( const in vec3 rgb ) {
@@ -1964,9 +1964,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const
 }
 float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
 	return ( near * far ) / ( ( far - near ) * depth - far );
-}`,nyt=`#ifdef PREMULTIPLIED_ALPHA
+}`,tyt=`#ifdef PREMULTIPLIED_ALPHA
 	gl_FragColor.rgb *= gl_FragColor.a;
-#endif`,iyt=`vec4 mvPosition = vec4( transformed, 1.0 );
+#endif`,nyt=`vec4 mvPosition = vec4( transformed, 1.0 );
 #ifdef USE_BATCHING
 	mvPosition = batchingMatrix * mvPosition;
 #endif
@@ -1974,22 +1974,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const
 	mvPosition = instanceMatrix * mvPosition;
 #endif
 mvPosition = modelViewMatrix * mvPosition;
-gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
+gl_Position = projectionMatrix * mvPosition;`,iyt=`#ifdef DITHERING
 	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
-#endif`,ryt=`#ifdef DITHERING
+#endif`,syt=`#ifdef DITHERING
 	vec3 dithering( vec3 color ) {
 		float grid_position = rand( gl_FragCoord.xy );
 		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
 		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
 		return color + dither_shift_RGB;
 	}
-#endif`,oyt=`float roughnessFactor = roughness;
+#endif`,ryt=`float roughnessFactor = roughness;
 #ifdef USE_ROUGHNESSMAP
 	vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
 	roughnessFactor *= texelRoughness.g;
-#endif`,ayt=`#ifdef USE_ROUGHNESSMAP
+#endif`,oyt=`#ifdef USE_ROUGHNESSMAP
 	uniform sampler2D roughnessMap;
-#endif`,lyt=`#if NUM_SPOT_LIGHT_COORDS > 0
+#endif`,ayt=`#if NUM_SPOT_LIGHT_COORDS > 0
 	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
 #endif
 #if NUM_SPOT_LIGHT_MAPS > 0
@@ -2166,7 +2166,7 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 			return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
 		#endif
 	}
-#endif`,cyt=`#if NUM_SPOT_LIGHT_COORDS > 0
+#endif`,lyt=`#if NUM_SPOT_LIGHT_COORDS > 0
 	uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
 	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
 #endif
@@ -2204,7 +2204,7 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 		};
 		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
 	#endif
-#endif`,dyt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
+#endif`,cyt=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
 	vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
 	vec4 shadowWorldPosition;
 #endif
@@ -2236,7 +2236,7 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 		vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
 	}
 	#pragma unroll_loop_end
-#endif`,uyt=`float getShadowMask() {
+#endif`,dyt=`float getShadowMask() {
 	float shadow = 1.0;
 	#ifdef USE_SHADOWMAP
 	#if NUM_DIR_LIGHT_SHADOWS > 0
@@ -2268,12 +2268,12 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 	#endif
 	#endif
 	return shadow;
-}`,pyt=`#ifdef USE_SKINNING
+}`,uyt=`#ifdef USE_SKINNING
 	mat4 boneMatX = getBoneMatrix( skinIndex.x );
 	mat4 boneMatY = getBoneMatrix( skinIndex.y );
 	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
 	mat4 boneMatW = getBoneMatrix( skinIndex.w );
-#endif`,fyt=`#ifdef USE_SKINNING
+#endif`,pyt=`#ifdef USE_SKINNING
 	uniform mat4 bindMatrix;
 	uniform mat4 bindMatrixInverse;
 	uniform highp sampler2D boneTexture;
@@ -2288,7 +2288,7 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 		vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
 		return mat4( v1, v2, v3, v4 );
 	}
-#endif`,_yt=`#ifdef USE_SKINNING
+#endif`,fyt=`#ifdef USE_SKINNING
 	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
 	vec4 skinned = vec4( 0.0 );
 	skinned += boneMatX * skinVertex * skinWeight.x;
@@ -2296,7 +2296,7 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 	skinned += boneMatZ * skinVertex * skinWeight.z;
 	skinned += boneMatW * skinVertex * skinWeight.w;
 	transformed = ( bindMatrixInverse * skinned ).xyz;
-#endif`,myt=`#ifdef USE_SKINNING
+#endif`,_yt=`#ifdef USE_SKINNING
 	mat4 skinMatrix = mat4( 0.0 );
 	skinMatrix += skinWeight.x * boneMatX;
 	skinMatrix += skinWeight.y * boneMatY;
@@ -2307,17 +2307,17 @@ gl_Position = projectionMatrix * mvPosition;`,syt=`#ifdef DITHERING
 	#ifdef USE_TANGENT
 		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
 	#endif
-#endif`,hyt=`float specularStrength;
+#endif`,myt=`float specularStrength;
 #ifdef USE_SPECULARMAP
 	vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
 	specularStrength = texelSpecular.r;
 #else
 	specularStrength = 1.0;
-#endif`,gyt=`#ifdef USE_SPECULARMAP
+#endif`,hyt=`#ifdef USE_SPECULARMAP
 	uniform sampler2D specularMap;
-#endif`,byt=`#if defined( TONE_MAPPING )
+#endif`,gyt=`#if defined( TONE_MAPPING )
 	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
-#endif`,yyt=`#ifndef saturate
+#endif`,byt=`#ifndef saturate
 #define saturate( a ) clamp( a, 0.0, 1.0 )
 #endif
 uniform float toneMappingExposure;
@@ -2353,7 +2353,7 @@ vec3 ACESFilmicToneMapping( vec3 color ) {
 	color = ACESOutputMat * color;
 	return saturate( color );
 }
-vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMISSION
+vec3 CustomToneMapping( vec3 color ) { return color; }`,yyt=`#ifdef USE_TRANSMISSION
 	material.transmission = transmission;
 	material.transmissionAlpha = 1.0;
 	material.thickness = thickness;
@@ -2374,7 +2374,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMIS
 		material.attenuationColor, material.attenuationDistance );
 	material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
 	totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
-#endif`,vyt=`#ifdef USE_TRANSMISSION
+#endif`,Eyt=`#ifdef USE_TRANSMISSION
 	uniform float transmission;
 	uniform float thickness;
 	uniform float attenuationDistance;
@@ -2480,7 +2480,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMIS
 		float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
 		return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
 	}
-#endif`,Syt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
+#endif`,vyt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
 	varying vec2 vUv;
 #endif
 #ifdef USE_MAP
@@ -2550,7 +2550,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMIS
 #ifdef USE_THICKNESSMAP
 	uniform mat3 thicknessMapTransform;
 	varying vec2 vThicknessMapUv;
-#endif`,Tyt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
+#endif`,Syt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
 	varying vec2 vUv;
 #endif
 #ifdef USE_MAP
@@ -2644,7 +2644,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMIS
 #ifdef USE_THICKNESSMAP
 	uniform mat3 thicknessMapTransform;
 	varying vec2 vThicknessMapUv;
-#endif`,xyt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
+#endif`,Tyt=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
 	vUv = vec3( uv, 1 ).xy;
 #endif
 #ifdef USE_MAP
@@ -2715,7 +2715,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMIS
 #endif
 #ifdef USE_THICKNESSMAP
 	vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
-#endif`,Cyt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
+#endif`,xyt=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
 	vec4 worldPosition = vec4( transformed, 1.0 );
 	#ifdef USE_BATCHING
 		worldPosition = batchingMatrix * worldPosition;
@@ -2724,12 +2724,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,Eyt=`#ifdef USE_TRANSMIS
 		worldPosition = instanceMatrix * worldPosition;
 	#endif
 	worldPosition = modelMatrix * worldPosition;
-#endif`;const wyt=`varying vec2 vUv;
+#endif`;const Cyt=`varying vec2 vUv;
 uniform mat3 uvTransform;
 void main() {
 	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
 	gl_Position = vec4( position.xy, 1.0, 1.0 );
-}`,Ryt=`uniform sampler2D t2D;
+}`,wyt=`uniform sampler2D t2D;
 uniform float backgroundIntensity;
 varying vec2 vUv;
 void main() {
@@ -2741,14 +2741,14 @@ void main() {
 	gl_FragColor = texColor;
 	#include <tonemapping_fragment>
 	#include <colorspace_fragment>
-}`,Ayt=`varying vec3 vWorldDirection;
+}`,Ryt=`varying vec3 vWorldDirection;
 #include <common>
 void main() {
 	vWorldDirection = transformDirection( position, modelMatrix );
 	#include <begin_vertex>
 	#include <project_vertex>
 	gl_Position.z = gl_Position.w;
-}`,Myt=`#ifdef ENVMAP_TYPE_CUBE
+}`,Ayt=`#ifdef ENVMAP_TYPE_CUBE
 	uniform samplerCube envMap;
 #elif defined( ENVMAP_TYPE_CUBE_UV )
 	uniform sampler2D envMap;
@@ -2770,14 +2770,14 @@ void main() {
 	gl_FragColor = texColor;
 	#include <tonemapping_fragment>
 	#include <colorspace_fragment>
-}`,Nyt=`varying vec3 vWorldDirection;
+}`,Myt=`varying vec3 vWorldDirection;
 #include <common>
 void main() {
 	vWorldDirection = transformDirection( position, modelMatrix );
 	#include <begin_vertex>
 	#include <project_vertex>
 	gl_Position.z = gl_Position.w;
-}`,Oyt=`uniform samplerCube tCube;
+}`,Nyt=`uniform samplerCube tCube;
 uniform float tFlip;
 uniform float opacity;
 varying vec3 vWorldDirection;
@@ -2787,7 +2787,7 @@ void main() {
 	gl_FragColor.a *= opacity;
 	#include <tonemapping_fragment>
 	#include <colorspace_fragment>
-}`,Iyt=`#include <common>
+}`,Oyt=`#include <common>
 #include <batching_pars_vertex>
 #include <uv_pars_vertex>
 #include <displacementmap_pars_vertex>
@@ -2813,7 +2813,7 @@ void main() {
 	#include <logdepthbuf_vertex>
 	#include <clipping_planes_vertex>
 	vHighPrecisionZW = gl_Position.zw;
-}`,kyt=`#if DEPTH_PACKING == 3200
+}`,Iyt=`#if DEPTH_PACKING == 3200
 	uniform float opacity;
 #endif
 #include <common>
@@ -2843,7 +2843,7 @@ void main() {
 	#elif DEPTH_PACKING == 3201
 		gl_FragColor = packDepthToRGBA( fragCoordZ );
 	#endif
-}`,Dyt=`#define DISTANCE
+}`,kyt=`#define DISTANCE
 varying vec3 vWorldPosition;
 #include <common>
 #include <batching_pars_vertex>
@@ -2869,7 +2869,7 @@ void main() {
 	#include <worldpos_vertex>
 	#include <clipping_planes_vertex>
 	vWorldPosition = worldPosition.xyz;
-}`,Lyt=`#define DISTANCE
+}`,Dyt=`#define DISTANCE
 uniform vec3 referencePosition;
 uniform float nearDistance;
 uniform float farDistance;
@@ -2893,13 +2893,13 @@ void main () {
 	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
 	dist = saturate( dist );
 	gl_FragColor = packDepthToRGBA( dist );
-}`,Pyt=`varying vec3 vWorldDirection;
+}`,Lyt=`varying vec3 vWorldDirection;
 #include <common>
 void main() {
 	vWorldDirection = transformDirection( position, modelMatrix );
 	#include <begin_vertex>
 	#include <project_vertex>
-}`,Fyt=`uniform sampler2D tEquirect;
+}`,Pyt=`uniform sampler2D tEquirect;
 varying vec3 vWorldDirection;
 #include <common>
 void main() {
@@ -2908,7 +2908,7 @@ void main() {
 	gl_FragColor = texture2D( tEquirect, sampleUV );
 	#include <tonemapping_fragment>
 	#include <colorspace_fragment>
-}`,Uyt=`uniform float scale;
+}`,Fyt=`uniform float scale;
 attribute float lineDistance;
 varying float vLineDistance;
 #include <common>
@@ -2929,7 +2929,7 @@ void main() {
 	#include <logdepthbuf_vertex>
 	#include <clipping_planes_vertex>
 	#include <fog_vertex>
-}`,Byt=`uniform vec3 diffuse;
+}`,Uyt=`uniform vec3 diffuse;
 uniform float opacity;
 uniform float dashSize;
 uniform float totalSize;
@@ -2957,7 +2957,7 @@ void main() {
 	#include <colorspace_fragment>
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
-}`,Gyt=`#include <common>
+}`,Byt=`#include <common>
 #include <batching_pars_vertex>
 #include <uv_pars_vertex>
 #include <envmap_pars_vertex>
@@ -2988,7 +2988,7 @@ void main() {
 	#include <worldpos_vertex>
 	#include <envmap_vertex>
 	#include <fog_vertex>
-}`,Vyt=`uniform vec3 diffuse;
+}`,Gyt=`uniform vec3 diffuse;
 uniform float opacity;
 #ifndef FLAT_SHADED
 	varying vec3 vNormal;
@@ -3036,7 +3036,7 @@ void main() {
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
 	#include <dithering_fragment>
-}`,zyt=`#define LAMBERT
+}`,Vyt=`#define LAMBERT
 varying vec3 vViewPosition;
 #include <common>
 #include <batching_pars_vertex>
@@ -3074,7 +3074,7 @@ void main() {
 	#include <envmap_vertex>
 	#include <shadowmap_vertex>
 	#include <fog_vertex>
-}`,Hyt=`#define LAMBERT
+}`,zyt=`#define LAMBERT
 uniform vec3 diffuse;
 uniform vec3 emissive;
 uniform float opacity;
@@ -3131,7 +3131,7 @@ void main() {
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
 	#include <dithering_fragment>
-}`,qyt=`#define MATCAP
+}`,Hyt=`#define MATCAP
 varying vec3 vViewPosition;
 #include <common>
 #include <batching_pars_vertex>
@@ -3164,7 +3164,7 @@ void main() {
 	#include <clipping_planes_vertex>
 	#include <fog_vertex>
 	vViewPosition = - mvPosition.xyz;
-}`,Yyt=`#define MATCAP
+}`,qyt=`#define MATCAP
 uniform vec3 diffuse;
 uniform float opacity;
 uniform sampler2D matcap;
@@ -3210,7 +3210,7 @@ void main() {
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
 	#include <dithering_fragment>
-}`,$yt=`#define NORMAL
+}`,Yyt=`#define NORMAL
 #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
 	varying vec3 vViewPosition;
 #endif
@@ -3242,7 +3242,7 @@ void main() {
 #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
 	vViewPosition = - mvPosition.xyz;
 #endif
-}`,Wyt=`#define NORMAL
+}`,$yt=`#define NORMAL
 uniform float opacity;
 #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
 	varying vec3 vViewPosition;
@@ -3263,7 +3263,7 @@ void main() {
 	#ifdef OPAQUE
 		gl_FragColor.a = 1.0;
 	#endif
-}`,Kyt=`#define PHONG
+}`,Wyt=`#define PHONG
 varying vec3 vViewPosition;
 #include <common>
 #include <batching_pars_vertex>
@@ -3301,7 +3301,7 @@ void main() {
 	#include <envmap_vertex>
 	#include <shadowmap_vertex>
 	#include <fog_vertex>
-}`,jyt=`#define PHONG
+}`,Kyt=`#define PHONG
 uniform vec3 diffuse;
 uniform vec3 emissive;
 uniform vec3 specular;
@@ -3360,7 +3360,7 @@ void main() {
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
 	#include <dithering_fragment>
-}`,Qyt=`#define STANDARD
+}`,jyt=`#define STANDARD
 varying vec3 vViewPosition;
 #ifdef USE_TRANSMISSION
 	varying vec3 vWorldPosition;
@@ -3402,7 +3402,7 @@ void main() {
 #ifdef USE_TRANSMISSION
 	vWorldPosition = worldPosition.xyz;
 #endif
-}`,Xyt=`#define STANDARD
+}`,Qyt=`#define STANDARD
 #ifdef PHYSICAL
 	#define IOR
 	#define USE_SPECULAR
@@ -3524,7 +3524,7 @@ void main() {
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
 	#include <dithering_fragment>
-}`,Zyt=`#define TOON
+}`,Xyt=`#define TOON
 varying vec3 vViewPosition;
 #include <common>
 #include <batching_pars_vertex>
@@ -3560,7 +3560,7 @@ void main() {
 	#include <worldpos_vertex>
 	#include <shadowmap_vertex>
 	#include <fog_vertex>
-}`,Jyt=`#define TOON
+}`,Zyt=`#define TOON
 uniform vec3 diffuse;
 uniform vec3 emissive;
 uniform float opacity;
@@ -3613,7 +3613,7 @@ void main() {
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
 	#include <dithering_fragment>
-}`,eEt=`uniform float size;
+}`,Jyt=`uniform float size;
 uniform float scale;
 #include <common>
 #include <color_pars_vertex>
@@ -3643,7 +3643,7 @@ void main() {
 	#include <clipping_planes_vertex>
 	#include <worldpos_vertex>
 	#include <fog_vertex>
-}`,tEt=`uniform vec3 diffuse;
+}`,eEt=`uniform vec3 diffuse;
 uniform float opacity;
 #include <common>
 #include <color_pars_fragment>
@@ -3668,7 +3668,7 @@ void main() {
 	#include <colorspace_fragment>
 	#include <fog_fragment>
 	#include <premultiplied_alpha_fragment>
-}`,nEt=`#include <common>
+}`,tEt=`#include <common>
 #include <batching_pars_vertex>
 #include <fog_pars_vertex>
 #include <morphtarget_pars_vertex>
@@ -3690,7 +3690,7 @@ void main() {
 	#include <worldpos_vertex>
 	#include <shadowmap_vertex>
 	#include <fog_vertex>
-}`,iEt=`uniform vec3 color;
+}`,nEt=`uniform vec3 color;
 uniform float opacity;
 #include <common>
 #include <packing>
@@ -3706,7 +3706,7 @@ void main() {
 	#include <tonemapping_fragment>
 	#include <colorspace_fragment>
 	#include <fog_fragment>
-}`,sEt=`uniform float rotation;
+}`,iEt=`uniform float rotation;
 uniform vec2 center;
 #include <common>
 #include <uv_pars_vertex>
@@ -3732,7 +3732,7 @@ void main() {
 	#include <logdepthbuf_vertex>
 	#include <clipping_planes_vertex>
 	#include <fog_vertex>
-}`,rEt=`uniform vec3 diffuse;
+}`,sEt=`uniform vec3 diffuse;
 uniform float opacity;
 #include <common>
 #include <uv_pars_fragment>
@@ -3757,7 +3757,7 @@ void main() {
 	#include <tonemapping_fragment>
 	#include <colorspace_fragment>
 	#include <fog_fragment>
-}`,vt={alphahash_fragment:Rbt,alphahash_pars_fragment:Abt,alphamap_fragment:Mbt,alphamap_pars_fragment:Nbt,alphatest_fragment:Obt,alphatest_pars_fragment:Ibt,aomap_fragment:kbt,aomap_pars_fragment:Dbt,batching_pars_vertex:Lbt,batching_vertex:Pbt,begin_vertex:Fbt,beginnormal_vertex:Ubt,bsdfs:Bbt,iridescence_fragment:Gbt,bumpmap_pars_fragment:Vbt,clipping_planes_fragment:zbt,clipping_planes_pars_fragment:Hbt,clipping_planes_pars_vertex:qbt,clipping_planes_vertex:Ybt,color_fragment:$bt,color_pars_fragment:Wbt,color_pars_vertex:Kbt,color_vertex:jbt,common:Qbt,cube_uv_reflection_fragment:Xbt,defaultnormal_vertex:Zbt,displacementmap_pars_vertex:Jbt,displacementmap_vertex:e0t,emissivemap_fragment:t0t,emissivemap_pars_fragment:n0t,colorspace_fragment:i0t,colorspace_pars_fragment:s0t,envmap_fragment:r0t,envmap_common_pars_fragment:o0t,envmap_pars_fragment:a0t,envmap_pars_vertex:l0t,envmap_physical_pars_fragment:E0t,envmap_vertex:c0t,fog_vertex:d0t,fog_pars_vertex:u0t,fog_fragment:p0t,fog_pars_fragment:f0t,gradientmap_pars_fragment:_0t,lightmap_fragment:m0t,lightmap_pars_fragment:h0t,lights_lambert_fragment:g0t,lights_lambert_pars_fragment:b0t,lights_pars_begin:y0t,lights_toon_fragment:v0t,lights_toon_pars_fragment:S0t,lights_phong_fragment:T0t,lights_phong_pars_fragment:x0t,lights_physical_fragment:C0t,lights_physical_pars_fragment:w0t,lights_fragment_begin:R0t,lights_fragment_maps:A0t,lights_fragment_end:M0t,logdepthbuf_fragment:N0t,logdepthbuf_pars_fragment:O0t,logdepthbuf_pars_vertex:I0t,logdepthbuf_vertex:k0t,map_fragment:D0t,map_pars_fragment:L0t,map_particle_fragment:P0t,map_particle_pars_fragment:F0t,metalnessmap_fragment:U0t,metalnessmap_pars_fragment:B0t,morphcolor_vertex:G0t,morphnormal_vertex:V0t,morphtarget_pars_vertex:z0t,morphtarget_vertex:H0t,normal_fragment_begin:q0t,normal_fragment_maps:Y0t,normal_pars_fragment:$0t,normal_pars_vertex:W0t,normal_vertex:K0t,normalmap_pars_fragment:j0t,clearcoat_normal_fragment_begin:Q0t,clearcoat_normal_fragment_maps:X0t,clearcoat_pars_fragment:Z0t,iridescence_pars_fragment:J0t,opaque_fragment:eyt,packing:tyt,premultiplied_alpha_fragment:nyt,project_vertex:iyt,dithering_fragment:syt,dithering_pars_fragment:ryt,roughnessmap_fragment:oyt,roughnessmap_pars_fragment:ayt,shadowmap_pars_fragment:lyt,shadowmap_pars_vertex:cyt,shadowmap_vertex:dyt,shadowmask_pars_fragment:uyt,skinbase_vertex:pyt,skinning_pars_vertex:fyt,skinning_vertex:_yt,skinnormal_vertex:myt,specularmap_fragment:hyt,specularmap_pars_fragment:gyt,tonemapping_fragment:byt,tonemapping_pars_fragment:yyt,transmission_fragment:Eyt,transmission_pars_fragment:vyt,uv_pars_fragment:Syt,uv_pars_vertex:Tyt,uv_vertex:xyt,worldpos_vertex:Cyt,background_vert:wyt,background_frag:Ryt,backgroundCube_vert:Ayt,backgroundCube_frag:Myt,cube_vert:Nyt,cube_frag:Oyt,depth_vert:Iyt,depth_frag:kyt,distanceRGBA_vert:Dyt,distanceRGBA_frag:Lyt,equirect_vert:Pyt,equirect_frag:Fyt,linedashed_vert:Uyt,linedashed_frag:Byt,meshbasic_vert:Gyt,meshbasic_frag:Vyt,meshlambert_vert:zyt,meshlambert_frag:Hyt,meshmatcap_vert:qyt,meshmatcap_frag:Yyt,meshnormal_vert:$yt,meshnormal_frag:Wyt,meshphong_vert:Kyt,meshphong_frag:jyt,meshphysical_vert:Qyt,meshphysical_frag:Xyt,meshtoon_vert:Zyt,meshtoon_frag:Jyt,points_vert:eEt,points_frag:tEt,shadow_vert:nEt,shadow_frag:iEt,sprite_vert:sEt,sprite_frag:rEt},$e={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Tt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Tt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Tt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Tt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Tt},normalScale:{value:new Rt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Tt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Tt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Tt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Tt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0},uvTransform:{value:new Tt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new Rt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Zi={basic:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:vt.meshbasic_vert,fragmentShader:vt.meshbasic_frag},lambert:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:vt.meshlambert_vert,fragmentShader:vt.meshlambert_frag},phong:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:vt.meshphong_vert,fragmentShader:vt.meshphong_frag},standard:{uniforms:Fn([$e.common,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.roughnessmap,$e.metalnessmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag},toon:{uniforms:Fn([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:vt.meshtoon_vert,fragmentShader:vt.meshtoon_frag},matcap:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:vt.meshmatcap_vert,fragmentShader:vt.meshmatcap_frag},points:{uniforms:Fn([$e.points,$e.fog]),vertexShader:vt.points_vert,fragmentShader:vt.points_frag},dashed:{uniforms:Fn([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:vt.linedashed_vert,fragmentShader:vt.linedashed_frag},depth:{uniforms:Fn([$e.common,$e.displacementmap]),vertexShader:vt.depth_vert,fragmentShader:vt.depth_frag},normal:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:vt.meshnormal_vert,fragmentShader:vt.meshnormal_frag},sprite:{uniforms:Fn([$e.sprite,$e.fog]),vertexShader:vt.sprite_vert,fragmentShader:vt.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:vt.background_vert,fragmentShader:vt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:vt.backgroundCube_vert,fragmentShader:vt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:vt.cube_vert,fragmentShader:vt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:vt.equirect_vert,fragmentShader:vt.equirect_frag},distanceRGBA:{uniforms:Fn([$e.common,$e.displacementmap,{referencePosition:{value:new re},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:vt.distanceRGBA_vert,fragmentShader:vt.distanceRGBA_frag},shadow:{uniforms:Fn([$e.lights,$e.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:vt.shadow_vert,fragmentShader:vt.shadow_frag}};Zi.physical={uniforms:Fn([Zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new Rt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Tt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Tt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Tt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Tt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Tt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Tt},transmissionSamplerSize:{value:new Rt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new Rt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag};const cd={r:0,b:0,g:0};function oEt(n,e,t,i,s,r,o){const a=new pt(0);let c=r===!0?0:1,d,u,_=null,m=0,h=null;function f(b,g){let E=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?t:e).get(v)),v===null?y(a,c):v&&v.isColor&&(y(v,1),E=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?i.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(n.autoClear||E)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),v&&(v.isCubeTexture||v.mapping===fp)?(u===void 0&&(u=new Vn(new Er(1,1,1),new ho({name:"BackgroundCubeMaterial",uniforms:Ca(Zi.backgroundCube.uniforms),vertexShader:Zi.backgroundCube.vertexShader,fragmentShader:Zi.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,C,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(u)),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Lt.getTransfer(v.colorSpace)!==jt,(_!==v||m!==v.version||h!==n.toneMapping)&&(u.material.needsUpdate=!0,_=v,m=v.version,h=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(d===void 0&&(d=new Vn(new hy(2,2),new ho({name:"BackgroundMaterial",uniforms:Ca(Zi.background.uniforms),vertexShader:Zi.background.vertexShader,fragmentShader:Zi.background.fragmentShader,side:Fs,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(d)),d.material.uniforms.t2D.value=v,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Lt.getTransfer(v.colorSpace)!==jt,v.matrixAutoUpdate===!0&&v.updateMatrix(),d.material.uniforms.uvTransform.value.copy(v.matrix),(_!==v||m!==v.version||h!==n.toneMapping)&&(d.material.needsUpdate=!0,_=v,m=v.version,h=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function y(b,g){b.getRGB(cd,JN(n)),i.buffers.color.setClear(cd.r,cd.g,cd.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),c=g,y(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(b){c=b,y(a,c)},render:f}}function aEt(n,e,t,i){const s=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},c=b(null);let d=c,u=!1;function _(O,H,q,L,Y){let ne=!1;if(o){const oe=y(L,q,H);d!==oe&&(d=oe,h(d.object)),ne=g(O,L,q,Y),ne&&E(O,L,q,Y)}else{const oe=H.wireframe===!0;(d.geometry!==L.id||d.program!==q.id||d.wireframe!==oe)&&(d.geometry=L.id,d.program=q.id,d.wireframe=oe,ne=!0)}Y!==null&&t.update(Y,n.ELEMENT_ARRAY_BUFFER),(ne||u)&&(u=!1,I(O,H,q,L),Y!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Y).buffer))}function m(){return i.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function h(O){return i.isWebGL2?n.bindVertexArray(O):r.bindVertexArrayOES(O)}function f(O){return i.isWebGL2?n.deleteVertexArray(O):r.deleteVertexArrayOES(O)}function y(O,H,q){const L=q.wireframe===!0;let Y=a[O.id];Y===void 0&&(Y={},a[O.id]=Y);let ne=Y[H.id];ne===void 0&&(ne={},Y[H.id]=ne);let oe=ne[L];return oe===void 0&&(oe=b(m()),ne[L]=oe),oe}function b(O){const H=[],q=[],L=[];for(let Y=0;Y<s;Y++)H[Y]=0,q[Y]=0,L[Y]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:H,enabledAttributes:q,attributeDivisors:L,object:O,attributes:{},index:null}}function g(O,H,q,L){const Y=d.attributes,ne=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){const ve=Y[xe];let Oe=ne[xe];if(Oe===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Oe=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Oe=O.instanceColor)),ve===void 0||ve.attribute!==Oe||Oe&&ve.data!==Oe.data)return!0;oe++}return d.attributesNum!==oe||d.index!==L}function E(O,H,q,L){const Y={},ne=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){let ve=ne[xe];ve===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(ve=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(ve=O.instanceColor));const Oe={};Oe.attribute=ve,ve&&ve.data&&(Oe.data=ve.data),Y[xe]=Oe,oe++}d.attributes=Y,d.attributesNum=oe,d.index=L}function v(){const O=d.newAttributes;for(let H=0,q=O.length;H<q;H++)O[H]=0}function S(O){R(O,0)}function R(O,H){const q=d.newAttributes,L=d.enabledAttributes,Y=d.attributeDivisors;q[O]=1,L[O]===0&&(n.enableVertexAttribArray(O),L[O]=1),Y[O]!==H&&((i.isWebGL2?n:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](O,H),Y[O]=H)}function C(){const O=d.newAttributes,H=d.enabledAttributes;for(let q=0,L=H.length;q<L;q++)H[q]!==O[q]&&(n.disableVertexAttribArray(q),H[q]=0)}function A(O,H,q,L,Y,ne,oe){oe===!0?n.vertexAttribIPointer(O,H,q,Y,ne):n.vertexAttribPointer(O,H,q,L,Y,ne)}function I(O,H,q,L){if(i.isWebGL2===!1&&(O.isInstancedMesh||L.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;v();const Y=L.attributes,ne=q.getAttributes(),oe=H.defaultAttributeValues;for(const ye in ne){const xe=ne[ye];if(xe.location>=0){let le=Y[ye];if(le===void 0&&(ye==="instanceMatrix"&&O.instanceMatrix&&(le=O.instanceMatrix),ye==="instanceColor"&&O.instanceColor&&(le=O.instanceColor)),le!==void 0){const ve=le.normalized,Oe=le.itemSize,De=t.get(le);if(De===void 0)continue;const Q=De.buffer,fe=De.type,_e=De.bytesPerElement,Ae=i.isWebGL2===!0&&(fe===n.INT||fe===n.UNSIGNED_INT||le.gpuType===LN);if(le.isInterleavedBufferAttribute){const Fe=le.data,te=Fe.stride,U=le.offset;if(Fe.isInstancedInterleavedBuffer){for(let P=0;P<xe.locationSize;P++)R(xe.location+P,Fe.meshPerAttribute);O.isInstancedMesh!==!0&&L._maxInstanceCount===void 0&&(L._maxInstanceCount=Fe.meshPerAttribute*Fe.count)}else for(let P=0;P<xe.locationSize;P++)S(xe.location+P);n.bindBuffer(n.ARRAY_BUFFER,Q);for(let P=0;P<xe.locationSize;P++)A(xe.location+P,Oe/xe.locationSize,fe,ve,te*_e,(U+Oe/xe.locationSize*P)*_e,Ae)}else{if(le.isInstancedBufferAttribute){for(let Fe=0;Fe<xe.locationSize;Fe++)R(xe.location+Fe,le.meshPerAttribute);O.isInstancedMesh!==!0&&L._maxInstanceCount===void 0&&(L._maxInstanceCount=le.meshPerAttribute*le.count)}else for(let Fe=0;Fe<xe.locationSize;Fe++)S(xe.location+Fe);n.bindBuffer(n.ARRAY_BUFFER,Q);for(let Fe=0;Fe<xe.locationSize;Fe++)A(xe.location+Fe,Oe/xe.locationSize,fe,ve,Oe*_e,Oe/xe.locationSize*Fe*_e,Ae)}}else if(oe!==void 0){const ve=oe[ye];if(ve!==void 0)switch(ve.length){case 2:n.vertexAttrib2fv(xe.location,ve);break;case 3:n.vertexAttrib3fv(xe.location,ve);break;case 4:n.vertexAttrib4fv(xe.location,ve);break;default:n.vertexAttrib1fv(xe.location,ve)}}}}C()}function x(){V();for(const O in a){const H=a[O];for(const q in H){const L=H[q];for(const Y in L)f(L[Y].object),delete L[Y];delete H[q]}delete a[O]}}function M(O){if(a[O.id]===void 0)return;const H=a[O.id];for(const q in H){const L=H[q];for(const Y in L)f(L[Y].object),delete L[Y];delete H[q]}delete a[O.id]}function G(O){for(const H in a){const q=a[H];if(q[O.id]===void 0)continue;const L=q[O.id];for(const Y in L)f(L[Y].object),delete L[Y];delete q[O.id]}}function V(){ee(),u=!0,d!==c&&(d=c,h(d.object))}function ee(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:_,reset:V,resetDefaultState:ee,dispose:x,releaseStatesOfGeometry:M,releaseStatesOfProgram:G,initAttributes:v,enableAttribute:S,disableUnusedAttributes:C}}function lEt(n,e,t,i){const s=i.isWebGL2;let r;function o(u){r=u}function a(u,_){n.drawArrays(r,u,_),t.update(_,r,1)}function c(u,_,m){if(m===0)return;let h,f;if(s)h=n,f="drawArraysInstanced";else if(h=e.get("ANGLE_instanced_arrays"),f="drawArraysInstancedANGLE",h===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}h[f](r,u,_,m),t.update(_,r,m)}function d(u,_,m){if(m===0)return;const h=e.get("WEBGL_multi_draw");if(h===null)for(let f=0;f<m;f++)this.render(u[f],_[f]);else{h.multiDrawArraysWEBGL(r,u,0,_,0,m);let f=0;for(let y=0;y<m;y++)f+=_[y];t.update(f,r,1)}}this.setMode=o,this.render=a,this.renderInstances=c,this.renderMultiDraw=d}function cEt(n,e,t){let i;function s(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const A=e.get("EXT_texture_filter_anisotropic");i=n.getParameter(A.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function r(A){if(A==="highp"){if(n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const c=r(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,_=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_TEXTURE_SIZE),f=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),y=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),E=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),v=m>0,S=o||e.has("OES_texture_float"),R=v&&S,C=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:u,maxTextures:_,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:f,maxAttributes:y,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:E,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:C}}function dEt(n){const e=this;let t=null,i=0,s=!1,r=!1;const o=new zr,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(_,m){const h=_.length!==0||m||i!==0||s;return s=m,i=_.length,h},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(_,m){t=u(_,m,0)},this.setState=function(_,m,h){const f=_.clippingPlanes,y=_.clipIntersection,b=_.clipShadows,g=n.get(_);if(!s||f===null||f.length===0||r&&!b)r?u(null):d();else{const E=r?0:i,v=E*4;let S=g.clippingState||null;c.value=S,S=u(f,m,v,h);for(let R=0;R!==v;++R)S[R]=t[R];g.clippingState=S,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=E}};function d(){c.value!==t&&(c.value=t,c.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function u(_,m,h,f){const y=_!==null?_.length:0;let b=null;if(y!==0){if(b=c.value,f!==!0||b===null){const g=h+y*4,E=m.matrixWorldInverse;a.getNormalMatrix(E),(b===null||b.length<g)&&(b=new Float32Array(g));for(let v=0,S=h;v!==y;++v,S+=4)o.copy(_[v]).applyMatrix4(E,a),o.normal.toArray(b,S),b[S+3]=o.constant}c.value=b,c.needsUpdate=!0}return e.numPlanes=y,e.numIntersection=0,b}}function uEt(n){let e=new WeakMap;function t(o,a){return a===mb?o.mapping=ya:a===hb&&(o.mapping=Ea),o}function i(o){if(o&&o.isTexture){const a=o.mapping;if(a===mb||a===hb)if(e.has(o)){const c=e.get(o).texture;return t(c,o.mapping)}else{const c=o.image;if(c&&c.height>0){const d=new Tbt(c.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",s),t(d.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class gy extends eO{constructor(e=-1,t=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,i,s,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+t,c=s-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=d*this.view.offsetX,o=r+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const jo=4,ow=[.125,.215,.35,.446,.526,.582],Wr=20,fg=new gy,aw=new pt;let _g=null,mg=0,hg=0;const Hr=(1+Math.sqrt(5))/2,zo=1/Hr,lw=[new re(1,1,1),new re(-1,1,1),new re(1,1,-1),new re(-1,1,-1),new re(0,Hr,zo),new re(0,Hr,-zo),new re(zo,0,Hr),new re(-zo,0,Hr),new re(Hr,zo,0),new re(-Hr,zo,0)];class cw{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,s=100){_g=this._renderer.getRenderTarget(),mg=this._renderer.getActiveCubeFace(),hg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=pw(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=uw(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(_g,mg,hg),e.scissorTest=!1,dd(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===ya||e.mapping===Ea?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),_g=this._renderer.getRenderTarget(),mg=this._renderer.getActiveCubeFace(),hg=this._renderer.getActiveMipmapLevel();const i=t||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,i={magFilter:Wn,minFilter:Wn,generateMipmaps:!1,type:Ql,format:gi,colorSpace:Cn,depthBuffer:!1},s=dw(e,t,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=dw(e,t,i);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=pEt(r)),this._blurMaterial=fEt(r,e,t)}return s}_compileMaterial(e){const t=new Vn(this._lodPlanes[0],e);this._renderer.compile(t,fg)}_sceneToCubeUV(e,t,i,s){const a=new Gn(90,1,t,i),c=[1,-1,1,1,1,1],d=[1,1,1,-1,-1,-1],u=this._renderer,_=u.autoClear,m=u.toneMapping;u.getClearColor(aw),u.toneMapping=br,u.autoClear=!1;const h=new _r({name:"PMREM.Background",side:Zn,depthWrite:!1,depthTest:!1}),f=new Vn(new Er,h);let y=!1;const b=e.background;b?b.isColor&&(h.color.copy(b),e.background=null,y=!0):(h.color.copy(aw),y=!0);for(let g=0;g<6;g++){const E=g%3;E===0?(a.up.set(0,c[g],0),a.lookAt(d[g],0,0)):E===1?(a.up.set(0,0,c[g]),a.lookAt(0,d[g],0)):(a.up.set(0,c[g],0),a.lookAt(0,0,d[g]));const v=this._cubeSize;dd(s,E*v,g>2?v:0,v,v),u.setRenderTarget(s),y&&u.render(f,a),u.render(e,a)}f.geometry.dispose(),f.material.dispose(),u.toneMapping=m,u.autoClear=_,e.background=b}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===ya||e.mapping===Ea;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=pw()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=uw());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Vn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const c=this._cubeSize;dd(t,0,0,3*c,2*c),i.setRenderTarget(t),i.render(o,fg)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;for(let s=1;s<this._lodPlanes.length;s++){const r=Math.sqrt(this._sigmas[s]*this._sigmas[s]-this._sigmas[s-1]*this._sigmas[s-1]),o=lw[(s-1)%lw.length];this._blur(e,s-1,s,r,o)}t.autoClear=i}_blur(e,t,i,s,r){const o=this._pingPongRenderTarget;this._halfBlur(e,o,t,i,s,"latitudinal",r),this._halfBlur(o,e,i,i,s,"longitudinal",r)}_halfBlur(e,t,i,s,r,o,a){const c=this._renderer,d=this._blurMaterial;o!=="latitudinal"&&o!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const u=3,_=new Vn(this._lodPlanes[s],d),m=d.uniforms,h=this._sizeLods[i]-1,f=isFinite(r)?Math.PI/(2*h):2*Math.PI/(2*Wr-1),y=r/f,b=isFinite(r)?1+Math.floor(u*y):Wr;b>Wr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Wr}`);const g=[];let E=0;for(let A=0;A<Wr;++A){const I=A/y,x=Math.exp(-I*I/2);g.push(x),A===0?E+=x:A<b&&(E+=2*x)}for(let A=0;A<g.length;A++)g[A]=g[A]/E;m.envMap.value=e.texture,m.samples.value=b,m.weights.value=g,m.latitudinal.value=o==="latitudinal",a&&(m.poleAxis.value=a);const{_lodMax:v}=this;m.dTheta.value=f,m.mipInt.value=v-i;const S=this._sizeLods[s],R=3*S*(s>v-jo?s-v+jo:0),C=4*(this._cubeSize-S);dd(t,R,C,3*S,2*S),c.setRenderTarget(t),c.render(_,fg)}}function pEt(n){const e=[],t=[],i=[];let s=n;const r=n-jo+1+ow.length;for(let o=0;o<r;o++){const a=Math.pow(2,s);t.push(a);let c=1/a;o>n-jo?c=ow[o-n+jo-1]:o===0&&(c=0),i.push(c);const d=1/(a-2),u=-d,_=1+d,m=[u,u,_,u,_,_,u,u,_,_,u,_],h=6,f=6,y=3,b=2,g=1,E=new Float32Array(y*f*h),v=new Float32Array(b*f*h),S=new Float32Array(g*f*h);for(let C=0;C<h;C++){const A=C%3*2/3-1,I=C>2?0:-1,x=[A,I,0,A+2/3,I,0,A+2/3,I+1,0,A,I,0,A+2/3,I+1,0,A,I+1,0];E.set(x,y*f*C),v.set(m,b*f*C);const M=[C,C,C,C,C,C];S.set(M,g*f*C)}const R=new fs;R.setAttribute("position",new zn(E,y)),R.setAttribute("uv",new zn(v,b)),R.setAttribute("faceIndex",new zn(S,g)),e.push(R),s>jo&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function dw(n,e,t){const i=new mo(n,e,t);return i.texture.mapping=fp,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function dd(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function fEt(n,e,t){const i=new Float32Array(Wr),s=new re(0,1,0);return new ho({name:"SphericalGaussianBlur",defines:{n:Wr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:by(),fragmentShader:`
+}`,vt={alphahash_fragment:wbt,alphahash_pars_fragment:Rbt,alphamap_fragment:Abt,alphamap_pars_fragment:Mbt,alphatest_fragment:Nbt,alphatest_pars_fragment:Obt,aomap_fragment:Ibt,aomap_pars_fragment:kbt,batching_pars_vertex:Dbt,batching_vertex:Lbt,begin_vertex:Pbt,beginnormal_vertex:Fbt,bsdfs:Ubt,iridescence_fragment:Bbt,bumpmap_pars_fragment:Gbt,clipping_planes_fragment:Vbt,clipping_planes_pars_fragment:zbt,clipping_planes_pars_vertex:Hbt,clipping_planes_vertex:qbt,color_fragment:Ybt,color_pars_fragment:$bt,color_pars_vertex:Wbt,color_vertex:Kbt,common:jbt,cube_uv_reflection_fragment:Qbt,defaultnormal_vertex:Xbt,displacementmap_pars_vertex:Zbt,displacementmap_vertex:Jbt,emissivemap_fragment:e0t,emissivemap_pars_fragment:t0t,colorspace_fragment:n0t,colorspace_pars_fragment:i0t,envmap_fragment:s0t,envmap_common_pars_fragment:r0t,envmap_pars_fragment:o0t,envmap_pars_vertex:a0t,envmap_physical_pars_fragment:y0t,envmap_vertex:l0t,fog_vertex:c0t,fog_pars_vertex:d0t,fog_fragment:u0t,fog_pars_fragment:p0t,gradientmap_pars_fragment:f0t,lightmap_fragment:_0t,lightmap_pars_fragment:m0t,lights_lambert_fragment:h0t,lights_lambert_pars_fragment:g0t,lights_pars_begin:b0t,lights_toon_fragment:E0t,lights_toon_pars_fragment:v0t,lights_phong_fragment:S0t,lights_phong_pars_fragment:T0t,lights_physical_fragment:x0t,lights_physical_pars_fragment:C0t,lights_fragment_begin:w0t,lights_fragment_maps:R0t,lights_fragment_end:A0t,logdepthbuf_fragment:M0t,logdepthbuf_pars_fragment:N0t,logdepthbuf_pars_vertex:O0t,logdepthbuf_vertex:I0t,map_fragment:k0t,map_pars_fragment:D0t,map_particle_fragment:L0t,map_particle_pars_fragment:P0t,metalnessmap_fragment:F0t,metalnessmap_pars_fragment:U0t,morphcolor_vertex:B0t,morphnormal_vertex:G0t,morphtarget_pars_vertex:V0t,morphtarget_vertex:z0t,normal_fragment_begin:H0t,normal_fragment_maps:q0t,normal_pars_fragment:Y0t,normal_pars_vertex:$0t,normal_vertex:W0t,normalmap_pars_fragment:K0t,clearcoat_normal_fragment_begin:j0t,clearcoat_normal_fragment_maps:Q0t,clearcoat_pars_fragment:X0t,iridescence_pars_fragment:Z0t,opaque_fragment:J0t,packing:eyt,premultiplied_alpha_fragment:tyt,project_vertex:nyt,dithering_fragment:iyt,dithering_pars_fragment:syt,roughnessmap_fragment:ryt,roughnessmap_pars_fragment:oyt,shadowmap_pars_fragment:ayt,shadowmap_pars_vertex:lyt,shadowmap_vertex:cyt,shadowmask_pars_fragment:dyt,skinbase_vertex:uyt,skinning_pars_vertex:pyt,skinning_vertex:fyt,skinnormal_vertex:_yt,specularmap_fragment:myt,specularmap_pars_fragment:hyt,tonemapping_fragment:gyt,tonemapping_pars_fragment:byt,transmission_fragment:yyt,transmission_pars_fragment:Eyt,uv_pars_fragment:vyt,uv_pars_vertex:Syt,uv_vertex:Tyt,worldpos_vertex:xyt,background_vert:Cyt,background_frag:wyt,backgroundCube_vert:Ryt,backgroundCube_frag:Ayt,cube_vert:Myt,cube_frag:Nyt,depth_vert:Oyt,depth_frag:Iyt,distanceRGBA_vert:kyt,distanceRGBA_frag:Dyt,equirect_vert:Lyt,equirect_frag:Pyt,linedashed_vert:Fyt,linedashed_frag:Uyt,meshbasic_vert:Byt,meshbasic_frag:Gyt,meshlambert_vert:Vyt,meshlambert_frag:zyt,meshmatcap_vert:Hyt,meshmatcap_frag:qyt,meshnormal_vert:Yyt,meshnormal_frag:$yt,meshphong_vert:Wyt,meshphong_frag:Kyt,meshphysical_vert:jyt,meshphysical_frag:Qyt,meshtoon_vert:Xyt,meshtoon_frag:Zyt,points_vert:Jyt,points_frag:eEt,shadow_vert:tEt,shadow_frag:nEt,sprite_vert:iEt,sprite_frag:sEt},$e={common:{diffuse:{value:new pt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Tt}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Tt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Tt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Tt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Tt},normalScale:{value:new Rt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Tt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Tt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Tt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Tt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new pt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new pt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0},uvTransform:{value:new Tt}},sprite:{diffuse:{value:new pt(16777215)},opacity:{value:1},center:{value:new Rt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Tt},alphaMap:{value:null},alphaMapTransform:{value:new Tt},alphaTest:{value:0}}},Zi={basic:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.fog]),vertexShader:vt.meshbasic_vert,fragmentShader:vt.meshbasic_frag},lambert:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:vt.meshlambert_vert,fragmentShader:vt.meshlambert_frag},phong:{uniforms:Fn([$e.common,$e.specularmap,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},specular:{value:new pt(1118481)},shininess:{value:30}}]),vertexShader:vt.meshphong_vert,fragmentShader:vt.meshphong_frag},standard:{uniforms:Fn([$e.common,$e.envmap,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.roughnessmap,$e.metalnessmap,$e.fog,$e.lights,{emissive:{value:new pt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag},toon:{uniforms:Fn([$e.common,$e.aomap,$e.lightmap,$e.emissivemap,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.gradientmap,$e.fog,$e.lights,{emissive:{value:new pt(0)}}]),vertexShader:vt.meshtoon_vert,fragmentShader:vt.meshtoon_frag},matcap:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,$e.fog,{matcap:{value:null}}]),vertexShader:vt.meshmatcap_vert,fragmentShader:vt.meshmatcap_frag},points:{uniforms:Fn([$e.points,$e.fog]),vertexShader:vt.points_vert,fragmentShader:vt.points_frag},dashed:{uniforms:Fn([$e.common,$e.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:vt.linedashed_vert,fragmentShader:vt.linedashed_frag},depth:{uniforms:Fn([$e.common,$e.displacementmap]),vertexShader:vt.depth_vert,fragmentShader:vt.depth_frag},normal:{uniforms:Fn([$e.common,$e.bumpmap,$e.normalmap,$e.displacementmap,{opacity:{value:1}}]),vertexShader:vt.meshnormal_vert,fragmentShader:vt.meshnormal_frag},sprite:{uniforms:Fn([$e.sprite,$e.fog]),vertexShader:vt.sprite_vert,fragmentShader:vt.sprite_frag},background:{uniforms:{uvTransform:{value:new Tt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:vt.background_vert,fragmentShader:vt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:vt.backgroundCube_vert,fragmentShader:vt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:vt.cube_vert,fragmentShader:vt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:vt.equirect_vert,fragmentShader:vt.equirect_frag},distanceRGBA:{uniforms:Fn([$e.common,$e.displacementmap,{referencePosition:{value:new re},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:vt.distanceRGBA_vert,fragmentShader:vt.distanceRGBA_frag},shadow:{uniforms:Fn([$e.lights,$e.fog,{color:{value:new pt(0)},opacity:{value:1}}]),vertexShader:vt.shadow_vert,fragmentShader:vt.shadow_frag}};Zi.physical={uniforms:Fn([Zi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Tt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Tt},clearcoatNormalScale:{value:new Rt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Tt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Tt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Tt},sheen:{value:0},sheenColor:{value:new pt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Tt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Tt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Tt},transmissionSamplerSize:{value:new Rt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Tt},attenuationDistance:{value:0},attenuationColor:{value:new pt(0)},specularColor:{value:new pt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Tt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Tt},anisotropyVector:{value:new Rt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Tt}}]),vertexShader:vt.meshphysical_vert,fragmentShader:vt.meshphysical_frag};const cd={r:0,b:0,g:0};function rEt(n,e,t,i,s,r,o){const a=new pt(0);let c=r===!0?0:1,d,u,_=null,m=0,h=null;function f(b,g){let E=!1,v=g.isScene===!0?g.background:null;v&&v.isTexture&&(v=(g.backgroundBlurriness>0?t:e).get(v)),v===null?y(a,c):v&&v.isColor&&(y(v,1),E=!0);const S=n.xr.getEnvironmentBlendMode();S==="additive"?i.buffers.color.setClear(0,0,0,1,o):S==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,o),(n.autoClear||E)&&n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil),v&&(v.isCubeTexture||v.mapping===fp)?(u===void 0&&(u=new Vn(new Er(1,1,1),new ho({name:"BackgroundCubeMaterial",uniforms:Ca(Zi.backgroundCube.uniforms),vertexShader:Zi.backgroundCube.vertexShader,fragmentShader:Zi.backgroundCube.fragmentShader,side:Zn,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(R,C,A){this.matrixWorld.copyPosition(A.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),s.update(u)),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=g.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,u.material.toneMapped=Lt.getTransfer(v.colorSpace)!==jt,(_!==v||m!==v.version||h!==n.toneMapping)&&(u.material.needsUpdate=!0,_=v,m=v.version,h=n.toneMapping),u.layers.enableAll(),b.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(d===void 0&&(d=new Vn(new hy(2,2),new ho({name:"BackgroundMaterial",uniforms:Ca(Zi.background.uniforms),vertexShader:Zi.background.vertexShader,fragmentShader:Zi.background.fragmentShader,side:Fs,depthTest:!1,depthWrite:!1,fog:!1})),d.geometry.deleteAttribute("normal"),Object.defineProperty(d.material,"map",{get:function(){return this.uniforms.t2D.value}}),s.update(d)),d.material.uniforms.t2D.value=v,d.material.uniforms.backgroundIntensity.value=g.backgroundIntensity,d.material.toneMapped=Lt.getTransfer(v.colorSpace)!==jt,v.matrixAutoUpdate===!0&&v.updateMatrix(),d.material.uniforms.uvTransform.value.copy(v.matrix),(_!==v||m!==v.version||h!==n.toneMapping)&&(d.material.needsUpdate=!0,_=v,m=v.version,h=n.toneMapping),d.layers.enableAll(),b.unshift(d,d.geometry,d.material,0,0,null))}function y(b,g){b.getRGB(cd,JN(n)),i.buffers.color.setClear(cd.r,cd.g,cd.b,g,o)}return{getClearColor:function(){return a},setClearColor:function(b,g=1){a.set(b),c=g,y(a,c)},getClearAlpha:function(){return c},setClearAlpha:function(b){c=b,y(a,c)},render:f}}function oEt(n,e,t,i){const s=n.getParameter(n.MAX_VERTEX_ATTRIBS),r=i.isWebGL2?null:e.get("OES_vertex_array_object"),o=i.isWebGL2||r!==null,a={},c=b(null);let d=c,u=!1;function _(O,H,q,L,Y){let ne=!1;if(o){const oe=y(L,q,H);d!==oe&&(d=oe,h(d.object)),ne=g(O,L,q,Y),ne&&E(O,L,q,Y)}else{const oe=H.wireframe===!0;(d.geometry!==L.id||d.program!==q.id||d.wireframe!==oe)&&(d.geometry=L.id,d.program=q.id,d.wireframe=oe,ne=!0)}Y!==null&&t.update(Y,n.ELEMENT_ARRAY_BUFFER),(ne||u)&&(u=!1,I(O,H,q,L),Y!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t.get(Y).buffer))}function m(){return i.isWebGL2?n.createVertexArray():r.createVertexArrayOES()}function h(O){return i.isWebGL2?n.bindVertexArray(O):r.bindVertexArrayOES(O)}function f(O){return i.isWebGL2?n.deleteVertexArray(O):r.deleteVertexArrayOES(O)}function y(O,H,q){const L=q.wireframe===!0;let Y=a[O.id];Y===void 0&&(Y={},a[O.id]=Y);let ne=Y[H.id];ne===void 0&&(ne={},Y[H.id]=ne);let oe=ne[L];return oe===void 0&&(oe=b(m()),ne[L]=oe),oe}function b(O){const H=[],q=[],L=[];for(let Y=0;Y<s;Y++)H[Y]=0,q[Y]=0,L[Y]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:H,enabledAttributes:q,attributeDivisors:L,object:O,attributes:{},index:null}}function g(O,H,q,L){const Y=d.attributes,ne=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){const ve=Y[xe];let Oe=ne[xe];if(Oe===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(Oe=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(Oe=O.instanceColor)),ve===void 0||ve.attribute!==Oe||Oe&&ve.data!==Oe.data)return!0;oe++}return d.attributesNum!==oe||d.index!==L}function E(O,H,q,L){const Y={},ne=H.attributes;let oe=0;const ye=q.getAttributes();for(const xe in ye)if(ye[xe].location>=0){let ve=ne[xe];ve===void 0&&(xe==="instanceMatrix"&&O.instanceMatrix&&(ve=O.instanceMatrix),xe==="instanceColor"&&O.instanceColor&&(ve=O.instanceColor));const Oe={};Oe.attribute=ve,ve&&ve.data&&(Oe.data=ve.data),Y[xe]=Oe,oe++}d.attributes=Y,d.attributesNum=oe,d.index=L}function v(){const O=d.newAttributes;for(let H=0,q=O.length;H<q;H++)O[H]=0}function S(O){R(O,0)}function R(O,H){const q=d.newAttributes,L=d.enabledAttributes,Y=d.attributeDivisors;q[O]=1,L[O]===0&&(n.enableVertexAttribArray(O),L[O]=1),Y[O]!==H&&((i.isWebGL2?n:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](O,H),Y[O]=H)}function C(){const O=d.newAttributes,H=d.enabledAttributes;for(let q=0,L=H.length;q<L;q++)H[q]!==O[q]&&(n.disableVertexAttribArray(q),H[q]=0)}function A(O,H,q,L,Y,ne,oe){oe===!0?n.vertexAttribIPointer(O,H,q,Y,ne):n.vertexAttribPointer(O,H,q,L,Y,ne)}function I(O,H,q,L){if(i.isWebGL2===!1&&(O.isInstancedMesh||L.isInstancedBufferGeometry)&&e.get("ANGLE_instanced_arrays")===null)return;v();const Y=L.attributes,ne=q.getAttributes(),oe=H.defaultAttributeValues;for(const ye in ne){const xe=ne[ye];if(xe.location>=0){let le=Y[ye];if(le===void 0&&(ye==="instanceMatrix"&&O.instanceMatrix&&(le=O.instanceMatrix),ye==="instanceColor"&&O.instanceColor&&(le=O.instanceColor)),le!==void 0){const ve=le.normalized,Oe=le.itemSize,De=t.get(le);if(De===void 0)continue;const Q=De.buffer,fe=De.type,_e=De.bytesPerElement,Ae=i.isWebGL2===!0&&(fe===n.INT||fe===n.UNSIGNED_INT||le.gpuType===LN);if(le.isInterleavedBufferAttribute){const Fe=le.data,te=Fe.stride,U=le.offset;if(Fe.isInstancedInterleavedBuffer){for(let P=0;P<xe.locationSize;P++)R(xe.location+P,Fe.meshPerAttribute);O.isInstancedMesh!==!0&&L._maxInstanceCount===void 0&&(L._maxInstanceCount=Fe.meshPerAttribute*Fe.count)}else for(let P=0;P<xe.locationSize;P++)S(xe.location+P);n.bindBuffer(n.ARRAY_BUFFER,Q);for(let P=0;P<xe.locationSize;P++)A(xe.location+P,Oe/xe.locationSize,fe,ve,te*_e,(U+Oe/xe.locationSize*P)*_e,Ae)}else{if(le.isInstancedBufferAttribute){for(let Fe=0;Fe<xe.locationSize;Fe++)R(xe.location+Fe,le.meshPerAttribute);O.isInstancedMesh!==!0&&L._maxInstanceCount===void 0&&(L._maxInstanceCount=le.meshPerAttribute*le.count)}else for(let Fe=0;Fe<xe.locationSize;Fe++)S(xe.location+Fe);n.bindBuffer(n.ARRAY_BUFFER,Q);for(let Fe=0;Fe<xe.locationSize;Fe++)A(xe.location+Fe,Oe/xe.locationSize,fe,ve,Oe*_e,Oe/xe.locationSize*Fe*_e,Ae)}}else if(oe!==void 0){const ve=oe[ye];if(ve!==void 0)switch(ve.length){case 2:n.vertexAttrib2fv(xe.location,ve);break;case 3:n.vertexAttrib3fv(xe.location,ve);break;case 4:n.vertexAttrib4fv(xe.location,ve);break;default:n.vertexAttrib1fv(xe.location,ve)}}}}C()}function x(){V();for(const O in a){const H=a[O];for(const q in H){const L=H[q];for(const Y in L)f(L[Y].object),delete L[Y];delete H[q]}delete a[O]}}function M(O){if(a[O.id]===void 0)return;const H=a[O.id];for(const q in H){const L=H[q];for(const Y in L)f(L[Y].object),delete L[Y];delete H[q]}delete a[O.id]}function G(O){for(const H in a){const q=a[H];if(q[O.id]===void 0)continue;const L=q[O.id];for(const Y in L)f(L[Y].object),delete L[Y];delete q[O.id]}}function V(){ee(),u=!0,d!==c&&(d=c,h(d.object))}function ee(){c.geometry=null,c.program=null,c.wireframe=!1}return{setup:_,reset:V,resetDefaultState:ee,dispose:x,releaseStatesOfGeometry:M,releaseStatesOfProgram:G,initAttributes:v,enableAttribute:S,disableUnusedAttributes:C}}function aEt(n,e,t,i){const s=i.isWebGL2;let r;function o(u){r=u}function a(u,_){n.drawArrays(r,u,_),t.update(_,r,1)}function c(u,_,m){if(m===0)return;let h,f;if(s)h=n,f="drawArraysInstanced";else if(h=e.get("ANGLE_instanced_arrays"),f="drawArraysInstancedANGLE",h===null){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}h[f](r,u,_,m),t.update(_,r,m)}function d(u,_,m){if(m===0)return;const h=e.get("WEBGL_multi_draw");if(h===null)for(let f=0;f<m;f++)this.render(u[f],_[f]);else{h.multiDrawArraysWEBGL(r,u,0,_,0,m);let f=0;for(let y=0;y<m;y++)f+=_[y];t.update(f,r,1)}}this.setMode=o,this.render=a,this.renderInstances=c,this.renderMultiDraw=d}function lEt(n,e,t){let i;function s(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const A=e.get("EXT_texture_filter_anisotropic");i=n.getParameter(A.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function r(A){if(A==="highp"){if(n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";A="mediump"}return A==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}const o=typeof WebGL2RenderingContext<"u"&&n.constructor.name==="WebGL2RenderingContext";let a=t.precision!==void 0?t.precision:"highp";const c=r(a);c!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",c,"instead."),a=c);const d=o||e.has("WEBGL_draw_buffers"),u=t.logarithmicDepthBuffer===!0,_=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),m=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=n.getParameter(n.MAX_TEXTURE_SIZE),f=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),y=n.getParameter(n.MAX_VERTEX_ATTRIBS),b=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),g=n.getParameter(n.MAX_VARYING_VECTORS),E=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),v=m>0,S=o||e.has("OES_texture_float"),R=v&&S,C=o?n.getParameter(n.MAX_SAMPLES):0;return{isWebGL2:o,drawBuffers:d,getMaxAnisotropy:s,getMaxPrecision:r,precision:a,logarithmicDepthBuffer:u,maxTextures:_,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:f,maxAttributes:y,maxVertexUniforms:b,maxVaryings:g,maxFragmentUniforms:E,vertexTextures:v,floatFragmentTextures:S,floatVertexTextures:R,maxSamples:C}}function cEt(n){const e=this;let t=null,i=0,s=!1,r=!1;const o=new zr,a=new Tt,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(_,m){const h=_.length!==0||m||i!==0||s;return s=m,i=_.length,h},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(_,m){t=u(_,m,0)},this.setState=function(_,m,h){const f=_.clippingPlanes,y=_.clipIntersection,b=_.clipShadows,g=n.get(_);if(!s||f===null||f.length===0||r&&!b)r?u(null):d();else{const E=r?0:i,v=E*4;let S=g.clippingState||null;c.value=S,S=u(f,m,v,h);for(let R=0;R!==v;++R)S[R]=t[R];g.clippingState=S,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=E}};function d(){c.value!==t&&(c.value=t,c.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function u(_,m,h,f){const y=_!==null?_.length:0;let b=null;if(y!==0){if(b=c.value,f!==!0||b===null){const g=h+y*4,E=m.matrixWorldInverse;a.getNormalMatrix(E),(b===null||b.length<g)&&(b=new Float32Array(g));for(let v=0,S=h;v!==y;++v,S+=4)o.copy(_[v]).applyMatrix4(E,a),o.normal.toArray(b,S),b[S+3]=o.constant}c.value=b,c.needsUpdate=!0}return e.numPlanes=y,e.numIntersection=0,b}}function dEt(n){let e=new WeakMap;function t(o,a){return a===mb?o.mapping=ya:a===hb&&(o.mapping=Ea),o}function i(o){if(o&&o.isTexture){const a=o.mapping;if(a===mb||a===hb)if(e.has(o)){const c=e.get(o).texture;return t(c,o.mapping)}else{const c=o.image;if(c&&c.height>0){const d=new Sbt(c.height/2);return d.fromEquirectangularTexture(n,o),e.set(o,d),o.addEventListener("dispose",s),t(d.texture,o.mapping)}else return null}}return o}function s(o){const a=o.target;a.removeEventListener("dispose",s);const c=e.get(a);c!==void 0&&(e.delete(a),c.dispose())}function r(){e=new WeakMap}return{get:i,dispose:r}}class gy extends eO{constructor(e=-1,t=1,i=1,s=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=i,this.bottom=s,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,i,s,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=s,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,s=(this.top+this.bottom)/2;let r=i-e,o=i+e,a=s+t,c=s-t;if(this.view!==null&&this.view.enabled){const d=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=d*this.view.offsetX,o=r+d*this.view.width,a-=u*this.view.offsetY,c=a-u*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const jo=4,ow=[.125,.215,.35,.446,.526,.582],Wr=20,fg=new gy,aw=new pt;let _g=null,mg=0,hg=0;const Hr=(1+Math.sqrt(5))/2,zo=1/Hr,lw=[new re(1,1,1),new re(-1,1,1),new re(1,1,-1),new re(-1,1,-1),new re(0,Hr,zo),new re(0,Hr,-zo),new re(zo,0,Hr),new re(-zo,0,Hr),new re(Hr,zo,0),new re(-Hr,zo,0)];class cw{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,i=.1,s=100){_g=this._renderer.getRenderTarget(),mg=this._renderer.getActiveCubeFace(),hg=this._renderer.getActiveMipmapLevel(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,i,s,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=pw(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=uw(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(_g,mg,hg),e.scissorTest=!1,dd(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===ya||e.mapping===Ea?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),_g=this._renderer.getRenderTarget(),mg=this._renderer.getActiveCubeFace(),hg=this._renderer.getActiveMipmapLevel();const i=t||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,i={magFilter:Wn,minFilter:Wn,generateMipmaps:!1,type:Ql,format:gi,colorSpace:Cn,depthBuffer:!1},s=dw(e,t,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=dw(e,t,i);const{_lodMax:r}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=uEt(r)),this._blurMaterial=pEt(r,e,t)}return s}_compileMaterial(e){const t=new Vn(this._lodPlanes[0],e);this._renderer.compile(t,fg)}_sceneToCubeUV(e,t,i,s){const a=new Gn(90,1,t,i),c=[1,-1,1,1,1,1],d=[1,1,1,-1,-1,-1],u=this._renderer,_=u.autoClear,m=u.toneMapping;u.getClearColor(aw),u.toneMapping=br,u.autoClear=!1;const h=new _r({name:"PMREM.Background",side:Zn,depthWrite:!1,depthTest:!1}),f=new Vn(new Er,h);let y=!1;const b=e.background;b?b.isColor&&(h.color.copy(b),e.background=null,y=!0):(h.color.copy(aw),y=!0);for(let g=0;g<6;g++){const E=g%3;E===0?(a.up.set(0,c[g],0),a.lookAt(d[g],0,0)):E===1?(a.up.set(0,0,c[g]),a.lookAt(0,d[g],0)):(a.up.set(0,c[g],0),a.lookAt(0,0,d[g]));const v=this._cubeSize;dd(s,E*v,g>2?v:0,v,v),u.setRenderTarget(s),y&&u.render(f,a),u.render(e,a)}f.geometry.dispose(),f.material.dispose(),u.toneMapping=m,u.autoClear=_,e.background=b}_textureToCubeUV(e,t){const i=this._renderer,s=e.mapping===ya||e.mapping===Ea;s?(this._cubemapMaterial===null&&(this._cubemapMaterial=pw()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=uw());const r=s?this._cubemapMaterial:this._equirectMaterial,o=new Vn(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const c=this._cubeSize;dd(t,0,0,3*c,2*c),i.setRenderTarget(t),i.render(o,fg)}_applyPMREM(e){const t=this._renderer,i=t.autoClear;t.autoClear=!1;for(let s=1;s<this._lodPlanes.length;s++){const r=Math.sqrt(this._sigmas[s]*this._sigmas[s]-this._sigmas[s-1]*this._sigmas[s-1]),o=lw[(s-1)%lw.length];this._blur(e,s-1,s,r,o)}t.autoClear=i}_blur(e,t,i,s,r){const o=this._pingPongRenderTarget;this._halfBlur(e,o,t,i,s,"latitudinal",r),this._halfBlur(o,e,i,i,s,"longitudinal",r)}_halfBlur(e,t,i,s,r,o,a){const c=this._renderer,d=this._blurMaterial;o!=="latitudinal"&&o!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const u=3,_=new Vn(this._lodPlanes[s],d),m=d.uniforms,h=this._sizeLods[i]-1,f=isFinite(r)?Math.PI/(2*h):2*Math.PI/(2*Wr-1),y=r/f,b=isFinite(r)?1+Math.floor(u*y):Wr;b>Wr&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Wr}`);const g=[];let E=0;for(let A=0;A<Wr;++A){const I=A/y,x=Math.exp(-I*I/2);g.push(x),A===0?E+=x:A<b&&(E+=2*x)}for(let A=0;A<g.length;A++)g[A]=g[A]/E;m.envMap.value=e.texture,m.samples.value=b,m.weights.value=g,m.latitudinal.value=o==="latitudinal",a&&(m.poleAxis.value=a);const{_lodMax:v}=this;m.dTheta.value=f,m.mipInt.value=v-i;const S=this._sizeLods[s],R=3*S*(s>v-jo?s-v+jo:0),C=4*(this._cubeSize-S);dd(t,R,C,3*S,2*S),c.setRenderTarget(t),c.render(_,fg)}}function uEt(n){const e=[],t=[],i=[];let s=n;const r=n-jo+1+ow.length;for(let o=0;o<r;o++){const a=Math.pow(2,s);t.push(a);let c=1/a;o>n-jo?c=ow[o-n+jo-1]:o===0&&(c=0),i.push(c);const d=1/(a-2),u=-d,_=1+d,m=[u,u,_,u,_,_,u,u,_,_,u,_],h=6,f=6,y=3,b=2,g=1,E=new Float32Array(y*f*h),v=new Float32Array(b*f*h),S=new Float32Array(g*f*h);for(let C=0;C<h;C++){const A=C%3*2/3-1,I=C>2?0:-1,x=[A,I,0,A+2/3,I,0,A+2/3,I+1,0,A,I,0,A+2/3,I+1,0,A,I+1,0];E.set(x,y*f*C),v.set(m,b*f*C);const M=[C,C,C,C,C,C];S.set(M,g*f*C)}const R=new fs;R.setAttribute("position",new zn(E,y)),R.setAttribute("uv",new zn(v,b)),R.setAttribute("faceIndex",new zn(S,g)),e.push(R),s>jo&&s--}return{lodPlanes:e,sizeLods:t,sigmas:i}}function dw(n,e,t){const i=new mo(n,e,t);return i.texture.mapping=fp,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function dd(n,e,t,i,s){n.viewport.set(e,t,i,s),n.scissor.set(e,t,i,s)}function pEt(n,e,t){const i=new Float32Array(Wr),s=new re(0,1,0);return new ho({name:"SphericalGaussianBlur",defines:{n:Wr,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:s}},vertexShader:by(),fragmentShader:`
 
 			precision mediump float;
 			precision mediump int;
@@ -3907,26 +3907,26 @@ void main() {
 			gl_Position = vec4( position, 1.0 );
 
 		}
-	`}function _Et(n){let e=new WeakMap,t=null;function i(a){if(a&&a.isTexture){const c=a.mapping,d=c===mb||c===hb,u=c===ya||c===Ea;if(d||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let _=e.get(a);return t===null&&(t=new cw(n)),_=d?t.fromEquirectangular(a,_):t.fromCubemap(a,_),e.set(a,_),_.texture}else{if(e.has(a))return e.get(a).texture;{const _=a.image;if(d&&_&&_.height>0||u&&_&&s(_)){t===null&&(t=new cw(n));const m=d?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,m),a.addEventListener("dispose",r),m.texture}else return null}}}return a}function s(a){let c=0;const d=6;for(let u=0;u<d;u++)a[u]!==void 0&&c++;return c===d}function r(a){const c=a.target;c.removeEventListener("dispose",r);const d=e.get(c);d!==void 0&&(e.delete(c),d.dispose())}function o(){e=new WeakMap,t!==null&&(t.dispose(),t=null)}return{get:i,dispose:o}}function mEt(n){const e={};function t(i){if(e[i]!==void 0)return e[i];let s;switch(i){case"WEBGL_depth_texture":s=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":s=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":s=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":s=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:s=n.getExtension(i)}return e[i]=s,s}return{has:function(i){return t(i)!==null},init:function(i){i.isWebGL2?t("EXT_color_buffer_float"):(t("WEBGL_depth_texture"),t("OES_texture_float"),t("OES_texture_half_float"),t("OES_texture_half_float_linear"),t("OES_standard_derivatives"),t("OES_element_index_uint"),t("OES_vertex_array_object"),t("ANGLE_instanced_arrays")),t("OES_texture_float_linear"),t("EXT_color_buffer_half_float"),t("WEBGL_multisampled_render_to_texture")},get:function(i){const s=t(i);return s===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),s}}}function hEt(n,e,t,i){const s={},r=new WeakMap;function o(_){const m=_.target;m.index!==null&&e.remove(m.index);for(const f in m.attributes)e.remove(m.attributes[f]);for(const f in m.morphAttributes){const y=m.morphAttributes[f];for(let b=0,g=y.length;b<g;b++)e.remove(y[b])}m.removeEventListener("dispose",o),delete s[m.id];const h=r.get(m);h&&(e.remove(h),r.delete(m)),i.releaseStatesOfGeometry(m),m.isInstancedBufferGeometry===!0&&delete m._maxInstanceCount,t.memory.geometries--}function a(_,m){return s[m.id]===!0||(m.addEventListener("dispose",o),s[m.id]=!0,t.memory.geometries++),m}function c(_){const m=_.attributes;for(const f in m)e.update(m[f],n.ARRAY_BUFFER);const h=_.morphAttributes;for(const f in h){const y=h[f];for(let b=0,g=y.length;b<g;b++)e.update(y[b],n.ARRAY_BUFFER)}}function d(_){const m=[],h=_.index,f=_.attributes.position;let y=0;if(h!==null){const E=h.array;y=h.version;for(let v=0,S=E.length;v<S;v+=3){const R=E[v+0],C=E[v+1],A=E[v+2];m.push(R,C,C,A,A,R)}}else if(f!==void 0){const E=f.array;y=f.version;for(let v=0,S=E.length/3-1;v<S;v+=3){const R=v+0,C=v+1,A=v+2;m.push(R,C,C,A,A,R)}}else return;const b=new(YN(m)?ZN:XN)(m,1);b.version=y;const g=r.get(_);g&&e.remove(g),r.set(_,b)}function u(_){const m=r.get(_);if(m){const h=_.index;h!==null&&m.version<h.version&&d(_)}else d(_);return r.get(_)}return{get:a,update:c,getWireframeAttribute:u}}function gEt(n,e,t,i){const s=i.isWebGL2;let r;function o(h){r=h}let a,c;function d(h){a=h.type,c=h.bytesPerElement}function u(h,f){n.drawElements(r,f,a,h*c),t.update(f,r,1)}function _(h,f,y){if(y===0)return;let b,g;if(s)b=n,g="drawElementsInstanced";else if(b=e.get("ANGLE_instanced_arrays"),g="drawElementsInstancedANGLE",b===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}b[g](r,f,a,h*c,y),t.update(f,r,y)}function m(h,f,y){if(y===0)return;const b=e.get("WEBGL_multi_draw");if(b===null)for(let g=0;g<y;g++)this.render(h[g]/c,f[g]);else{b.multiDrawElementsWEBGL(r,f,0,a,h,0,y);let g=0;for(let E=0;E<y;E++)g+=f[E];t.update(g,r,1)}}this.setMode=o,this.setIndex=d,this.render=u,this.renderInstances=_,this.renderMultiDraw=m}function bEt(n){const e={geometries:0,textures:0},t={frame:0,calls:0,triangles:0,points:0,lines:0};function i(r,o,a){switch(t.calls++,o){case n.TRIANGLES:t.triangles+=a*(r/3);break;case n.LINES:t.lines+=a*(r/2);break;case n.LINE_STRIP:t.lines+=a*(r-1);break;case n.LINE_LOOP:t.lines+=a*r;break;case n.POINTS:t.points+=a*r;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",o);break}}function s(){t.calls=0,t.triangles=0,t.points=0,t.lines=0}return{memory:e,render:t,programs:null,autoReset:!0,reset:s,update:i}}function yEt(n,e){return n[0]-e[0]}function EEt(n,e){return Math.abs(e[1])-Math.abs(n[1])}function vEt(n,e,t){const i={},s=new Float32Array(8),r=new WeakMap,o=new $t,a=[];for(let d=0;d<8;d++)a[d]=[d,0];function c(d,u,_){const m=d.morphTargetInfluences;if(e.isWebGL2===!0){const f=u.morphAttributes.position||u.morphAttributes.normal||u.morphAttributes.color,y=f!==void 0?f.length:0;let b=r.get(u);if(b===void 0||b.count!==y){let H=function(){ee.dispose(),r.delete(u),u.removeEventListener("dispose",H)};var h=H;b!==void 0&&b.texture.dispose();const v=u.morphAttributes.position!==void 0,S=u.morphAttributes.normal!==void 0,R=u.morphAttributes.color!==void 0,C=u.morphAttributes.position||[],A=u.morphAttributes.normal||[],I=u.morphAttributes.color||[];let x=0;v===!0&&(x=1),S===!0&&(x=2),R===!0&&(x=3);let M=u.attributes.position.count*x,G=1;M>e.maxTextureSize&&(G=Math.ceil(M/e.maxTextureSize),M=e.maxTextureSize);const V=new Float32Array(M*G*4*y),ee=new KN(V,M,G,y);ee.type=As,ee.needsUpdate=!0;const O=x*4;for(let q=0;q<y;q++){const L=C[q],Y=A[q],ne=I[q],oe=M*G*4*q;for(let ye=0;ye<L.count;ye++){const xe=ye*O;v===!0&&(o.fromBufferAttribute(L,ye),V[oe+xe+0]=o.x,V[oe+xe+1]=o.y,V[oe+xe+2]=o.z,V[oe+xe+3]=0),S===!0&&(o.fromBufferAttribute(Y,ye),V[oe+xe+4]=o.x,V[oe+xe+5]=o.y,V[oe+xe+6]=o.z,V[oe+xe+7]=0),R===!0&&(o.fromBufferAttribute(ne,ye),V[oe+xe+8]=o.x,V[oe+xe+9]=o.y,V[oe+xe+10]=o.z,V[oe+xe+11]=ne.itemSize===4?o.w:1)}}b={count:y,texture:ee,size:new Rt(M,G)},r.set(u,b),u.addEventListener("dispose",H)}let g=0;for(let v=0;v<m.length;v++)g+=m[v];const E=u.morphTargetsRelative?1:1-g;_.getUniforms().setValue(n,"morphTargetBaseInfluence",E),_.getUniforms().setValue(n,"morphTargetInfluences",m),_.getUniforms().setValue(n,"morphTargetsTexture",b.texture,t),_.getUniforms().setValue(n,"morphTargetsTextureSize",b.size)}else{const f=m===void 0?0:m.length;let y=i[u.id];if(y===void 0||y.length!==f){y=[];for(let S=0;S<f;S++)y[S]=[S,0];i[u.id]=y}for(let S=0;S<f;S++){const R=y[S];R[0]=S,R[1]=m[S]}y.sort(EEt);for(let S=0;S<8;S++)S<f&&y[S][1]?(a[S][0]=y[S][0],a[S][1]=y[S][1]):(a[S][0]=Number.MAX_SAFE_INTEGER,a[S][1]=0);a.sort(yEt);const b=u.morphAttributes.position,g=u.morphAttributes.normal;let E=0;for(let S=0;S<8;S++){const R=a[S],C=R[0],A=R[1];C!==Number.MAX_SAFE_INTEGER&&A?(b&&u.getAttribute("morphTarget"+S)!==b[C]&&u.setAttribute("morphTarget"+S,b[C]),g&&u.getAttribute("morphNormal"+S)!==g[C]&&u.setAttribute("morphNormal"+S,g[C]),s[S]=A,E+=A):(b&&u.hasAttribute("morphTarget"+S)===!0&&u.deleteAttribute("morphTarget"+S),g&&u.hasAttribute("morphNormal"+S)===!0&&u.deleteAttribute("morphNormal"+S),s[S]=0)}const v=u.morphTargetsRelative?1:1-E;_.getUniforms().setValue(n,"morphTargetBaseInfluence",v),_.getUniforms().setValue(n,"morphTargetInfluences",s)}}return{update:c}}function SEt(n,e,t,i){let s=new WeakMap;function r(c){const d=i.render.frame,u=c.geometry,_=e.get(c,u);if(s.get(_)!==d&&(e.update(_),s.set(_,d)),c.isInstancedMesh&&(c.hasEventListener("dispose",a)===!1&&c.addEventListener("dispose",a),s.get(c)!==d&&(t.update(c.instanceMatrix,n.ARRAY_BUFFER),c.instanceColor!==null&&t.update(c.instanceColor,n.ARRAY_BUFFER),s.set(c,d))),c.isSkinnedMesh){const m=c.skeleton;s.get(m)!==d&&(m.update(),s.set(m,d))}return _}function o(){s=new WeakMap}function a(c){const d=c.target;d.removeEventListener("dispose",a),t.remove(d.instanceMatrix),d.instanceColor!==null&&t.remove(d.instanceColor)}return{update:r,dispose:o}}class iO extends xn{constructor(e,t,i,s,r,o,a,c,d,u){if(u=u!==void 0?u:io,u!==io&&u!==Sa)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&u===io&&(i=fr),i===void 0&&u===Sa&&(i=no),super(null,s,r,o,a,c,u,i,d),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=a!==void 0?a:gn,this.minFilter=c!==void 0?c:gn,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}const sO=new xn,rO=new iO(1,1);rO.compareFunction=qN;const oO=new KN,aO=new obt,lO=new tO,fw=[],_w=[],mw=new Float32Array(16),hw=new Float32Array(9),gw=new Float32Array(4);function qa(n,e,t){const i=n[0];if(i<=0||i>0)return n;const s=e*t;let r=fw[s];if(r===void 0&&(r=new Float32Array(s),fw[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function fn(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t<i;t++)if(n[t]!==e[t])return!1;return!0}function _n(n,e){for(let t=0,i=e.length;t<i;t++)n[t]=e[t]}function gp(n,e){let t=_w[e];t===void 0&&(t=new Int32Array(e),_w[e]=t);for(let i=0;i!==e;++i)t[i]=n.allocateTextureUnit();return t}function TEt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1f(this.addr,e),t[0]=e)}function xEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2f(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(fn(t,e))return;n.uniform2fv(this.addr,e),_n(t,e)}}function CEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3f(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else if(e.r!==void 0)(t[0]!==e.r||t[1]!==e.g||t[2]!==e.b)&&(n.uniform3f(this.addr,e.r,e.g,e.b),t[0]=e.r,t[1]=e.g,t[2]=e.b);else{if(fn(t,e))return;n.uniform3fv(this.addr,e),_n(t,e)}}function wEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4f(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(fn(t,e))return;n.uniform4fv(this.addr,e),_n(t,e)}}function REt(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(fn(t,e))return;n.uniformMatrix2fv(this.addr,!1,e),_n(t,e)}else{if(fn(t,i))return;gw.set(i),n.uniformMatrix2fv(this.addr,!1,gw),_n(t,i)}}function AEt(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(fn(t,e))return;n.uniformMatrix3fv(this.addr,!1,e),_n(t,e)}else{if(fn(t,i))return;hw.set(i),n.uniformMatrix3fv(this.addr,!1,hw),_n(t,i)}}function MEt(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(fn(t,e))return;n.uniformMatrix4fv(this.addr,!1,e),_n(t,e)}else{if(fn(t,i))return;mw.set(i),n.uniformMatrix4fv(this.addr,!1,mw),_n(t,i)}}function NEt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1i(this.addr,e),t[0]=e)}function OEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2i(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(fn(t,e))return;n.uniform2iv(this.addr,e),_n(t,e)}}function IEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3i(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(fn(t,e))return;n.uniform3iv(this.addr,e),_n(t,e)}}function kEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4i(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(fn(t,e))return;n.uniform4iv(this.addr,e),_n(t,e)}}function DEt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1ui(this.addr,e),t[0]=e)}function LEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2ui(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(fn(t,e))return;n.uniform2uiv(this.addr,e),_n(t,e)}}function PEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3ui(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(fn(t,e))return;n.uniform3uiv(this.addr,e),_n(t,e)}}function FEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4ui(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(fn(t,e))return;n.uniform4uiv(this.addr,e),_n(t,e)}}function UEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s);const r=this.type===n.SAMPLER_2D_SHADOW?rO:sO;t.setTexture2D(e||r,s)}function BEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTexture3D(e||aO,s)}function GEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTextureCube(e||lO,s)}function VEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTexture2DArray(e||oO,s)}function zEt(n){switch(n){case 5126:return TEt;case 35664:return xEt;case 35665:return CEt;case 35666:return wEt;case 35674:return REt;case 35675:return AEt;case 35676:return MEt;case 5124:case 35670:return NEt;case 35667:case 35671:return OEt;case 35668:case 35672:return IEt;case 35669:case 35673:return kEt;case 5125:return DEt;case 36294:return LEt;case 36295:return PEt;case 36296:return FEt;case 35678:case 36198:case 36298:case 36306:case 35682:return UEt;case 35679:case 36299:case 36307:return BEt;case 35680:case 36300:case 36308:case 36293:return GEt;case 36289:case 36303:case 36311:case 36292:return VEt}}function HEt(n,e){n.uniform1fv(this.addr,e)}function qEt(n,e){const t=qa(e,this.size,2);n.uniform2fv(this.addr,t)}function YEt(n,e){const t=qa(e,this.size,3);n.uniform3fv(this.addr,t)}function $Et(n,e){const t=qa(e,this.size,4);n.uniform4fv(this.addr,t)}function WEt(n,e){const t=qa(e,this.size,4);n.uniformMatrix2fv(this.addr,!1,t)}function KEt(n,e){const t=qa(e,this.size,9);n.uniformMatrix3fv(this.addr,!1,t)}function jEt(n,e){const t=qa(e,this.size,16);n.uniformMatrix4fv(this.addr,!1,t)}function QEt(n,e){n.uniform1iv(this.addr,e)}function XEt(n,e){n.uniform2iv(this.addr,e)}function ZEt(n,e){n.uniform3iv(this.addr,e)}function JEt(n,e){n.uniform4iv(this.addr,e)}function evt(n,e){n.uniform1uiv(this.addr,e)}function tvt(n,e){n.uniform2uiv(this.addr,e)}function nvt(n,e){n.uniform3uiv(this.addr,e)}function ivt(n,e){n.uniform4uiv(this.addr,e)}function svt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTexture2D(e[o]||sO,r[o])}function rvt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTexture3D(e[o]||aO,r[o])}function ovt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTextureCube(e[o]||lO,r[o])}function avt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTexture2DArray(e[o]||oO,r[o])}function lvt(n){switch(n){case 5126:return HEt;case 35664:return qEt;case 35665:return YEt;case 35666:return $Et;case 35674:return WEt;case 35675:return KEt;case 35676:return jEt;case 5124:case 35670:return QEt;case 35667:case 35671:return XEt;case 35668:case 35672:return ZEt;case 35669:case 35673:return JEt;case 5125:return evt;case 36294:return tvt;case 36295:return nvt;case 36296:return ivt;case 35678:case 36198:case 36298:case 36306:case 35682:return svt;case 35679:case 36299:case 36307:return rvt;case 35680:case 36300:case 36308:case 36293:return ovt;case 36289:case 36303:case 36311:case 36292:return avt}}class cvt{constructor(e,t,i){this.id=e,this.addr=i,this.cache=[],this.type=t.type,this.setValue=zEt(t.type)}}class dvt{constructor(e,t,i){this.id=e,this.addr=i,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=lvt(t.type)}}class uvt{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,i){const s=this.seq;for(let r=0,o=s.length;r!==o;++r){const a=s[r];a.setValue(e,t[a.id],i)}}}const gg=/(\w+)(\])?(\[|\.)?/g;function bw(n,e){n.seq.push(e),n.map[e.id]=e}function pvt(n,e,t){const i=n.name,s=i.length;for(gg.lastIndex=0;;){const r=gg.exec(i),o=gg.lastIndex;let a=r[1];const c=r[2]==="]",d=r[3];if(c&&(a=a|0),d===void 0||d==="["&&o+2===s){bw(t,d===void 0?new cvt(a,n,e):new dvt(a,n,e));break}else{let _=t.map[a];_===void 0&&(_=new uvt(a),bw(t,_)),t=_}}}class Dd{constructor(e,t){this.seq=[],this.map={};const i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let s=0;s<i;++s){const r=e.getActiveUniform(t,s),o=e.getUniformLocation(t,r.name);pvt(r,o,this)}}setValue(e,t,i,s){const r=this.map[t];r!==void 0&&r.setValue(e,i,s)}setOptional(e,t,i){const s=t[i];s!==void 0&&this.setValue(e,i,s)}static upload(e,t,i,s){for(let r=0,o=t.length;r!==o;++r){const a=t[r],c=i[a.id];c.needsUpdate!==!1&&a.setValue(e,c.value,s)}}static seqWithValue(e,t){const i=[];for(let s=0,r=e.length;s!==r;++s){const o=e[s];o.id in t&&i.push(o)}return i}}function yw(n,e,t){const i=n.createShader(e);return n.shaderSource(i,t),n.compileShader(i),i}const fvt=37297;let _vt=0;function mvt(n,e){const t=n.split(`
+	`}function fEt(n){let e=new WeakMap,t=null;function i(a){if(a&&a.isTexture){const c=a.mapping,d=c===mb||c===hb,u=c===ya||c===Ea;if(d||u)if(a.isRenderTargetTexture&&a.needsPMREMUpdate===!0){a.needsPMREMUpdate=!1;let _=e.get(a);return t===null&&(t=new cw(n)),_=d?t.fromEquirectangular(a,_):t.fromCubemap(a,_),e.set(a,_),_.texture}else{if(e.has(a))return e.get(a).texture;{const _=a.image;if(d&&_&&_.height>0||u&&_&&s(_)){t===null&&(t=new cw(n));const m=d?t.fromEquirectangular(a):t.fromCubemap(a);return e.set(a,m),a.addEventListener("dispose",r),m.texture}else return null}}}return a}function s(a){let c=0;const d=6;for(let u=0;u<d;u++)a[u]!==void 0&&c++;return c===d}function r(a){const c=a.target;c.removeEventListener("dispose",r);const d=e.get(c);d!==void 0&&(e.delete(c),d.dispose())}function o(){e=new WeakMap,t!==null&&(t.dispose(),t=null)}return{get:i,dispose:o}}function _Et(n){const e={};function t(i){if(e[i]!==void 0)return e[i];let s;switch(i){case"WEBGL_depth_texture":s=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":s=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":s=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":s=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:s=n.getExtension(i)}return e[i]=s,s}return{has:function(i){return t(i)!==null},init:function(i){i.isWebGL2?t("EXT_color_buffer_float"):(t("WEBGL_depth_texture"),t("OES_texture_float"),t("OES_texture_half_float"),t("OES_texture_half_float_linear"),t("OES_standard_derivatives"),t("OES_element_index_uint"),t("OES_vertex_array_object"),t("ANGLE_instanced_arrays")),t("OES_texture_float_linear"),t("EXT_color_buffer_half_float"),t("WEBGL_multisampled_render_to_texture")},get:function(i){const s=t(i);return s===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),s}}}function mEt(n,e,t,i){const s={},r=new WeakMap;function o(_){const m=_.target;m.index!==null&&e.remove(m.index);for(const f in m.attributes)e.remove(m.attributes[f]);for(const f in m.morphAttributes){const y=m.morphAttributes[f];for(let b=0,g=y.length;b<g;b++)e.remove(y[b])}m.removeEventListener("dispose",o),delete s[m.id];const h=r.get(m);h&&(e.remove(h),r.delete(m)),i.releaseStatesOfGeometry(m),m.isInstancedBufferGeometry===!0&&delete m._maxInstanceCount,t.memory.geometries--}function a(_,m){return s[m.id]===!0||(m.addEventListener("dispose",o),s[m.id]=!0,t.memory.geometries++),m}function c(_){const m=_.attributes;for(const f in m)e.update(m[f],n.ARRAY_BUFFER);const h=_.morphAttributes;for(const f in h){const y=h[f];for(let b=0,g=y.length;b<g;b++)e.update(y[b],n.ARRAY_BUFFER)}}function d(_){const m=[],h=_.index,f=_.attributes.position;let y=0;if(h!==null){const E=h.array;y=h.version;for(let v=0,S=E.length;v<S;v+=3){const R=E[v+0],C=E[v+1],A=E[v+2];m.push(R,C,C,A,A,R)}}else if(f!==void 0){const E=f.array;y=f.version;for(let v=0,S=E.length/3-1;v<S;v+=3){const R=v+0,C=v+1,A=v+2;m.push(R,C,C,A,A,R)}}else return;const b=new(YN(m)?ZN:XN)(m,1);b.version=y;const g=r.get(_);g&&e.remove(g),r.set(_,b)}function u(_){const m=r.get(_);if(m){const h=_.index;h!==null&&m.version<h.version&&d(_)}else d(_);return r.get(_)}return{get:a,update:c,getWireframeAttribute:u}}function hEt(n,e,t,i){const s=i.isWebGL2;let r;function o(h){r=h}let a,c;function d(h){a=h.type,c=h.bytesPerElement}function u(h,f){n.drawElements(r,f,a,h*c),t.update(f,r,1)}function _(h,f,y){if(y===0)return;let b,g;if(s)b=n,g="drawElementsInstanced";else if(b=e.get("ANGLE_instanced_arrays"),g="drawElementsInstancedANGLE",b===null){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}b[g](r,f,a,h*c,y),t.update(f,r,y)}function m(h,f,y){if(y===0)return;const b=e.get("WEBGL_multi_draw");if(b===null)for(let g=0;g<y;g++)this.render(h[g]/c,f[g]);else{b.multiDrawElementsWEBGL(r,f,0,a,h,0,y);let g=0;for(let E=0;E<y;E++)g+=f[E];t.update(g,r,1)}}this.setMode=o,this.setIndex=d,this.render=u,this.renderInstances=_,this.renderMultiDraw=m}function gEt(n){const e={geometries:0,textures:0},t={frame:0,calls:0,triangles:0,points:0,lines:0};function i(r,o,a){switch(t.calls++,o){case n.TRIANGLES:t.triangles+=a*(r/3);break;case n.LINES:t.lines+=a*(r/2);break;case n.LINE_STRIP:t.lines+=a*(r-1);break;case n.LINE_LOOP:t.lines+=a*r;break;case n.POINTS:t.points+=a*r;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",o);break}}function s(){t.calls=0,t.triangles=0,t.points=0,t.lines=0}return{memory:e,render:t,programs:null,autoReset:!0,reset:s,update:i}}function bEt(n,e){return n[0]-e[0]}function yEt(n,e){return Math.abs(e[1])-Math.abs(n[1])}function EEt(n,e,t){const i={},s=new Float32Array(8),r=new WeakMap,o=new $t,a=[];for(let d=0;d<8;d++)a[d]=[d,0];function c(d,u,_){const m=d.morphTargetInfluences;if(e.isWebGL2===!0){const f=u.morphAttributes.position||u.morphAttributes.normal||u.morphAttributes.color,y=f!==void 0?f.length:0;let b=r.get(u);if(b===void 0||b.count!==y){let H=function(){ee.dispose(),r.delete(u),u.removeEventListener("dispose",H)};var h=H;b!==void 0&&b.texture.dispose();const v=u.morphAttributes.position!==void 0,S=u.morphAttributes.normal!==void 0,R=u.morphAttributes.color!==void 0,C=u.morphAttributes.position||[],A=u.morphAttributes.normal||[],I=u.morphAttributes.color||[];let x=0;v===!0&&(x=1),S===!0&&(x=2),R===!0&&(x=3);let M=u.attributes.position.count*x,G=1;M>e.maxTextureSize&&(G=Math.ceil(M/e.maxTextureSize),M=e.maxTextureSize);const V=new Float32Array(M*G*4*y),ee=new KN(V,M,G,y);ee.type=As,ee.needsUpdate=!0;const O=x*4;for(let q=0;q<y;q++){const L=C[q],Y=A[q],ne=I[q],oe=M*G*4*q;for(let ye=0;ye<L.count;ye++){const xe=ye*O;v===!0&&(o.fromBufferAttribute(L,ye),V[oe+xe+0]=o.x,V[oe+xe+1]=o.y,V[oe+xe+2]=o.z,V[oe+xe+3]=0),S===!0&&(o.fromBufferAttribute(Y,ye),V[oe+xe+4]=o.x,V[oe+xe+5]=o.y,V[oe+xe+6]=o.z,V[oe+xe+7]=0),R===!0&&(o.fromBufferAttribute(ne,ye),V[oe+xe+8]=o.x,V[oe+xe+9]=o.y,V[oe+xe+10]=o.z,V[oe+xe+11]=ne.itemSize===4?o.w:1)}}b={count:y,texture:ee,size:new Rt(M,G)},r.set(u,b),u.addEventListener("dispose",H)}let g=0;for(let v=0;v<m.length;v++)g+=m[v];const E=u.morphTargetsRelative?1:1-g;_.getUniforms().setValue(n,"morphTargetBaseInfluence",E),_.getUniforms().setValue(n,"morphTargetInfluences",m),_.getUniforms().setValue(n,"morphTargetsTexture",b.texture,t),_.getUniforms().setValue(n,"morphTargetsTextureSize",b.size)}else{const f=m===void 0?0:m.length;let y=i[u.id];if(y===void 0||y.length!==f){y=[];for(let S=0;S<f;S++)y[S]=[S,0];i[u.id]=y}for(let S=0;S<f;S++){const R=y[S];R[0]=S,R[1]=m[S]}y.sort(yEt);for(let S=0;S<8;S++)S<f&&y[S][1]?(a[S][0]=y[S][0],a[S][1]=y[S][1]):(a[S][0]=Number.MAX_SAFE_INTEGER,a[S][1]=0);a.sort(bEt);const b=u.morphAttributes.position,g=u.morphAttributes.normal;let E=0;for(let S=0;S<8;S++){const R=a[S],C=R[0],A=R[1];C!==Number.MAX_SAFE_INTEGER&&A?(b&&u.getAttribute("morphTarget"+S)!==b[C]&&u.setAttribute("morphTarget"+S,b[C]),g&&u.getAttribute("morphNormal"+S)!==g[C]&&u.setAttribute("morphNormal"+S,g[C]),s[S]=A,E+=A):(b&&u.hasAttribute("morphTarget"+S)===!0&&u.deleteAttribute("morphTarget"+S),g&&u.hasAttribute("morphNormal"+S)===!0&&u.deleteAttribute("morphNormal"+S),s[S]=0)}const v=u.morphTargetsRelative?1:1-E;_.getUniforms().setValue(n,"morphTargetBaseInfluence",v),_.getUniforms().setValue(n,"morphTargetInfluences",s)}}return{update:c}}function vEt(n,e,t,i){let s=new WeakMap;function r(c){const d=i.render.frame,u=c.geometry,_=e.get(c,u);if(s.get(_)!==d&&(e.update(_),s.set(_,d)),c.isInstancedMesh&&(c.hasEventListener("dispose",a)===!1&&c.addEventListener("dispose",a),s.get(c)!==d&&(t.update(c.instanceMatrix,n.ARRAY_BUFFER),c.instanceColor!==null&&t.update(c.instanceColor,n.ARRAY_BUFFER),s.set(c,d))),c.isSkinnedMesh){const m=c.skeleton;s.get(m)!==d&&(m.update(),s.set(m,d))}return _}function o(){s=new WeakMap}function a(c){const d=c.target;d.removeEventListener("dispose",a),t.remove(d.instanceMatrix),d.instanceColor!==null&&t.remove(d.instanceColor)}return{update:r,dispose:o}}class iO extends xn{constructor(e,t,i,s,r,o,a,c,d,u){if(u=u!==void 0?u:io,u!==io&&u!==Sa)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&u===io&&(i=fr),i===void 0&&u===Sa&&(i=no),super(null,s,r,o,a,c,u,i,d),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=a!==void 0?a:gn,this.minFilter=c!==void 0?c:gn,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}const sO=new xn,rO=new iO(1,1);rO.compareFunction=qN;const oO=new KN,aO=new rbt,lO=new tO,fw=[],_w=[],mw=new Float32Array(16),hw=new Float32Array(9),gw=new Float32Array(4);function qa(n,e,t){const i=n[0];if(i<=0||i>0)return n;const s=e*t;let r=fw[s];if(r===void 0&&(r=new Float32Array(s),fw[s]=r),e!==0){i.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,n[o].toArray(r,a)}return r}function fn(n,e){if(n.length!==e.length)return!1;for(let t=0,i=n.length;t<i;t++)if(n[t]!==e[t])return!1;return!0}function _n(n,e){for(let t=0,i=e.length;t<i;t++)n[t]=e[t]}function gp(n,e){let t=_w[e];t===void 0&&(t=new Int32Array(e),_w[e]=t);for(let i=0;i!==e;++i)t[i]=n.allocateTextureUnit();return t}function SEt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1f(this.addr,e),t[0]=e)}function TEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2f(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(fn(t,e))return;n.uniform2fv(this.addr,e),_n(t,e)}}function xEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3f(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else if(e.r!==void 0)(t[0]!==e.r||t[1]!==e.g||t[2]!==e.b)&&(n.uniform3f(this.addr,e.r,e.g,e.b),t[0]=e.r,t[1]=e.g,t[2]=e.b);else{if(fn(t,e))return;n.uniform3fv(this.addr,e),_n(t,e)}}function CEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4f(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(fn(t,e))return;n.uniform4fv(this.addr,e),_n(t,e)}}function wEt(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(fn(t,e))return;n.uniformMatrix2fv(this.addr,!1,e),_n(t,e)}else{if(fn(t,i))return;gw.set(i),n.uniformMatrix2fv(this.addr,!1,gw),_n(t,i)}}function REt(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(fn(t,e))return;n.uniformMatrix3fv(this.addr,!1,e),_n(t,e)}else{if(fn(t,i))return;hw.set(i),n.uniformMatrix3fv(this.addr,!1,hw),_n(t,i)}}function AEt(n,e){const t=this.cache,i=e.elements;if(i===void 0){if(fn(t,e))return;n.uniformMatrix4fv(this.addr,!1,e),_n(t,e)}else{if(fn(t,i))return;mw.set(i),n.uniformMatrix4fv(this.addr,!1,mw),_n(t,i)}}function MEt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1i(this.addr,e),t[0]=e)}function NEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2i(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(fn(t,e))return;n.uniform2iv(this.addr,e),_n(t,e)}}function OEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3i(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(fn(t,e))return;n.uniform3iv(this.addr,e),_n(t,e)}}function IEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4i(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(fn(t,e))return;n.uniform4iv(this.addr,e),_n(t,e)}}function kEt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1ui(this.addr,e),t[0]=e)}function DEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2ui(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(fn(t,e))return;n.uniform2uiv(this.addr,e),_n(t,e)}}function LEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3ui(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(fn(t,e))return;n.uniform3uiv(this.addr,e),_n(t,e)}}function PEt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4ui(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(fn(t,e))return;n.uniform4uiv(this.addr,e),_n(t,e)}}function FEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s);const r=this.type===n.SAMPLER_2D_SHADOW?rO:sO;t.setTexture2D(e||r,s)}function UEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTexture3D(e||aO,s)}function BEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTextureCube(e||lO,s)}function GEt(n,e,t){const i=this.cache,s=t.allocateTextureUnit();i[0]!==s&&(n.uniform1i(this.addr,s),i[0]=s),t.setTexture2DArray(e||oO,s)}function VEt(n){switch(n){case 5126:return SEt;case 35664:return TEt;case 35665:return xEt;case 35666:return CEt;case 35674:return wEt;case 35675:return REt;case 35676:return AEt;case 5124:case 35670:return MEt;case 35667:case 35671:return NEt;case 35668:case 35672:return OEt;case 35669:case 35673:return IEt;case 5125:return kEt;case 36294:return DEt;case 36295:return LEt;case 36296:return PEt;case 35678:case 36198:case 36298:case 36306:case 35682:return FEt;case 35679:case 36299:case 36307:return UEt;case 35680:case 36300:case 36308:case 36293:return BEt;case 36289:case 36303:case 36311:case 36292:return GEt}}function zEt(n,e){n.uniform1fv(this.addr,e)}function HEt(n,e){const t=qa(e,this.size,2);n.uniform2fv(this.addr,t)}function qEt(n,e){const t=qa(e,this.size,3);n.uniform3fv(this.addr,t)}function YEt(n,e){const t=qa(e,this.size,4);n.uniform4fv(this.addr,t)}function $Et(n,e){const t=qa(e,this.size,4);n.uniformMatrix2fv(this.addr,!1,t)}function WEt(n,e){const t=qa(e,this.size,9);n.uniformMatrix3fv(this.addr,!1,t)}function KEt(n,e){const t=qa(e,this.size,16);n.uniformMatrix4fv(this.addr,!1,t)}function jEt(n,e){n.uniform1iv(this.addr,e)}function QEt(n,e){n.uniform2iv(this.addr,e)}function XEt(n,e){n.uniform3iv(this.addr,e)}function ZEt(n,e){n.uniform4iv(this.addr,e)}function JEt(n,e){n.uniform1uiv(this.addr,e)}function evt(n,e){n.uniform2uiv(this.addr,e)}function tvt(n,e){n.uniform3uiv(this.addr,e)}function nvt(n,e){n.uniform4uiv(this.addr,e)}function ivt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTexture2D(e[o]||sO,r[o])}function svt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTexture3D(e[o]||aO,r[o])}function rvt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTextureCube(e[o]||lO,r[o])}function ovt(n,e,t){const i=this.cache,s=e.length,r=gp(t,s);fn(i,r)||(n.uniform1iv(this.addr,r),_n(i,r));for(let o=0;o!==s;++o)t.setTexture2DArray(e[o]||oO,r[o])}function avt(n){switch(n){case 5126:return zEt;case 35664:return HEt;case 35665:return qEt;case 35666:return YEt;case 35674:return $Et;case 35675:return WEt;case 35676:return KEt;case 5124:case 35670:return jEt;case 35667:case 35671:return QEt;case 35668:case 35672:return XEt;case 35669:case 35673:return ZEt;case 5125:return JEt;case 36294:return evt;case 36295:return tvt;case 36296:return nvt;case 35678:case 36198:case 36298:case 36306:case 35682:return ivt;case 35679:case 36299:case 36307:return svt;case 35680:case 36300:case 36308:case 36293:return rvt;case 36289:case 36303:case 36311:case 36292:return ovt}}class lvt{constructor(e,t,i){this.id=e,this.addr=i,this.cache=[],this.type=t.type,this.setValue=VEt(t.type)}}class cvt{constructor(e,t,i){this.id=e,this.addr=i,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=avt(t.type)}}class dvt{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,i){const s=this.seq;for(let r=0,o=s.length;r!==o;++r){const a=s[r];a.setValue(e,t[a.id],i)}}}const gg=/(\w+)(\])?(\[|\.)?/g;function bw(n,e){n.seq.push(e),n.map[e.id]=e}function uvt(n,e,t){const i=n.name,s=i.length;for(gg.lastIndex=0;;){const r=gg.exec(i),o=gg.lastIndex;let a=r[1];const c=r[2]==="]",d=r[3];if(c&&(a=a|0),d===void 0||d==="["&&o+2===s){bw(t,d===void 0?new lvt(a,n,e):new cvt(a,n,e));break}else{let _=t.map[a];_===void 0&&(_=new dvt(a),bw(t,_)),t=_}}}class Dd{constructor(e,t){this.seq=[],this.map={};const i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let s=0;s<i;++s){const r=e.getActiveUniform(t,s),o=e.getUniformLocation(t,r.name);uvt(r,o,this)}}setValue(e,t,i,s){const r=this.map[t];r!==void 0&&r.setValue(e,i,s)}setOptional(e,t,i){const s=t[i];s!==void 0&&this.setValue(e,i,s)}static upload(e,t,i,s){for(let r=0,o=t.length;r!==o;++r){const a=t[r],c=i[a.id];c.needsUpdate!==!1&&a.setValue(e,c.value,s)}}static seqWithValue(e,t){const i=[];for(let s=0,r=e.length;s!==r;++s){const o=e[s];o.id in t&&i.push(o)}return i}}function yw(n,e,t){const i=n.createShader(e);return n.shaderSource(i,t),n.compileShader(i),i}const pvt=37297;let fvt=0;function _vt(n,e){const t=n.split(`
 `),i=[],s=Math.max(e-6,0),r=Math.min(e+6,t.length);for(let o=s;o<r;o++){const a=o+1;i.push(`${a===e?">":" "} ${a}: ${t[o]}`)}return i.join(`
-`)}function hvt(n){const e=Lt.getPrimaries(Lt.workingColorSpace),t=Lt.getPrimaries(n);let i;switch(e===t?i="":e===yu&&t===bu?i="LinearDisplayP3ToLinearSRGB":e===bu&&t===yu&&(i="LinearSRGBToLinearDisplayP3"),n){case Cn:case _p:return[i,"LinearTransferOETF"];case nn:case fy:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[i,"LinearTransferOETF"]}}function Ew(n,e,t){const i=n.getShaderParameter(e,n.COMPILE_STATUS),s=n.getShaderInfoLog(e).trim();if(i&&s==="")return"";const r=/ERROR: 0:(\d+)/.exec(s);if(r){const o=parseInt(r[1]);return t.toUpperCase()+`
+`)}function mvt(n){const e=Lt.getPrimaries(Lt.workingColorSpace),t=Lt.getPrimaries(n);let i;switch(e===t?i="":e===yu&&t===bu?i="LinearDisplayP3ToLinearSRGB":e===bu&&t===yu&&(i="LinearSRGBToLinearDisplayP3"),n){case Cn:case _p:return[i,"LinearTransferOETF"];case nn:case fy:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",n),[i,"LinearTransferOETF"]}}function Ew(n,e,t){const i=n.getShaderParameter(e,n.COMPILE_STATUS),s=n.getShaderInfoLog(e).trim();if(i&&s==="")return"";const r=/ERROR: 0:(\d+)/.exec(s);if(r){const o=parseInt(r[1]);return t.toUpperCase()+`
 
 `+s+`
 
-`+mvt(n.getShaderSource(e),o)}else return s}function gvt(n,e){const t=hvt(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function bvt(n,e){let t;switch(e){case _gt:t="Linear";break;case mgt:t="Reinhard";break;case hgt:t="OptimizedCineon";break;case ggt:t="ACESFilmic";break;case bgt:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function yvt(n){return[n.extensionDerivatives||n.envMapCubeUVHeight||n.bumpMap||n.normalMapTangentSpace||n.clearcoatNormalMap||n.flatShading||n.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(n.extensionFragDepth||n.logarithmicDepthBuffer)&&n.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",n.extensionDrawBuffers&&n.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(n.extensionShaderTextureLOD||n.envMap||n.transmission)&&n.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(gl).join(`
-`)}function Evt(n){const e=[];for(const t in n){const i=n[t];i!==!1&&e.push("#define "+t+" "+i)}return e.join(`
-`)}function vvt(n,e){const t={},i=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let s=0;s<i;s++){const r=n.getActiveAttrib(e,s),o=r.name;let a=1;r.type===n.FLOAT_MAT2&&(a=2),r.type===n.FLOAT_MAT3&&(a=3),r.type===n.FLOAT_MAT4&&(a=4),t[o]={type:r.type,location:n.getAttribLocation(e,o),locationSize:a}}return t}function gl(n){return n!==""}function vw(n,e){const t=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return n.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,t).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function Sw(n,e){return n.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const Svt=/^[ \t]*#include +<([\w\d./]+)>/gm;function Sb(n){return n.replace(Svt,xvt)}const Tvt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function xvt(n,e){let t=vt[e];if(t===void 0){const i=Tvt.get(e);if(i!==void 0)t=vt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return Sb(t)}const Cvt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Tw(n){return n.replace(Cvt,wvt)}function wvt(n,e,t,i){let s="";for(let r=parseInt(e);r<parseInt(t);r++)s+=i.replace(/\[\s*i\s*\]/g,"[ "+r+" ]").replace(/UNROLLED_LOOP_INDEX/g,r);return s}function xw(n){let e="precision "+n.precision+` float;
+`+_vt(n.getShaderSource(e),o)}else return s}function hvt(n,e){const t=mvt(e);return`vec4 ${n}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function gvt(n,e){let t;switch(e){case fgt:t="Linear";break;case _gt:t="Reinhard";break;case mgt:t="OptimizedCineon";break;case hgt:t="ACESFilmic";break;case ggt:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function bvt(n){return[n.extensionDerivatives||n.envMapCubeUVHeight||n.bumpMap||n.normalMapTangentSpace||n.clearcoatNormalMap||n.flatShading||n.shaderID==="physical"?"#extension GL_OES_standard_derivatives : enable":"",(n.extensionFragDepth||n.logarithmicDepthBuffer)&&n.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",n.extensionDrawBuffers&&n.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(n.extensionShaderTextureLOD||n.envMap||n.transmission)&&n.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(gl).join(`
+`)}function yvt(n){const e=[];for(const t in n){const i=n[t];i!==!1&&e.push("#define "+t+" "+i)}return e.join(`
+`)}function Evt(n,e){const t={},i=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let s=0;s<i;s++){const r=n.getActiveAttrib(e,s),o=r.name;let a=1;r.type===n.FLOAT_MAT2&&(a=2),r.type===n.FLOAT_MAT3&&(a=3),r.type===n.FLOAT_MAT4&&(a=4),t[o]={type:r.type,location:n.getAttribLocation(e,o),locationSize:a}}return t}function gl(n){return n!==""}function vw(n,e){const t=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return n.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,t).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function Sw(n,e){return n.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const vvt=/^[ \t]*#include +<([\w\d./]+)>/gm;function Sb(n){return n.replace(vvt,Tvt)}const Svt=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function Tvt(n,e){let t=vt[e];if(t===void 0){const i=Svt.get(e);if(i!==void 0)t=vt[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return Sb(t)}const xvt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Tw(n){return n.replace(xvt,Cvt)}function Cvt(n,e,t,i){let s="";for(let r=parseInt(e);r<parseInt(t);r++)s+=i.replace(/\[\s*i\s*\]/g,"[ "+r+" ]").replace(/UNROLLED_LOOP_INDEX/g,r);return s}function xw(n){let e="precision "+n.precision+` float;
 precision `+n.precision+" int;";return n.precision==="highp"?e+=`
 #define HIGH_PRECISION`:n.precision==="mediump"?e+=`
 #define MEDIUM_PRECISION`:n.precision==="lowp"&&(e+=`
-#define LOW_PRECISION`),e}function Rvt(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===IN?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===zht?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===xs&&(e="SHADOWMAP_TYPE_VSM"),e}function Avt(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case ya:case Ea:e="ENVMAP_TYPE_CUBE";break;case fp:e="ENVMAP_TYPE_CUBE_UV";break}return e}function Mvt(n){let e="ENVMAP_MODE_REFLECTION";if(n.envMap)switch(n.envMapMode){case Ea:e="ENVMAP_MODE_REFRACTION";break}return e}function Nvt(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case dy:e="ENVMAP_BLENDING_MULTIPLY";break;case pgt:e="ENVMAP_BLENDING_MIX";break;case fgt:e="ENVMAP_BLENDING_ADD";break}return e}function Ovt(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),7*16)),texelHeight:i,maxMip:t}}function Ivt(n,e,t,i){const s=n.getContext(),r=t.defines;let o=t.vertexShader,a=t.fragmentShader;const c=Rvt(t),d=Avt(t),u=Mvt(t),_=Nvt(t),m=Ovt(t),h=t.isWebGL2?"":yvt(t),f=Evt(r),y=s.createProgram();let b,g,E=t.glslVersion?"#version "+t.glslVersion+`
+#define LOW_PRECISION`),e}function wvt(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===IN?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===Vht?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===xs&&(e="SHADOWMAP_TYPE_VSM"),e}function Rvt(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case ya:case Ea:e="ENVMAP_TYPE_CUBE";break;case fp:e="ENVMAP_TYPE_CUBE_UV";break}return e}function Avt(n){let e="ENVMAP_MODE_REFLECTION";if(n.envMap)switch(n.envMapMode){case Ea:e="ENVMAP_MODE_REFRACTION";break}return e}function Mvt(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case dy:e="ENVMAP_BLENDING_MULTIPLY";break;case ugt:e="ENVMAP_BLENDING_MIX";break;case pgt:e="ENVMAP_BLENDING_ADD";break}return e}function Nvt(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),7*16)),texelHeight:i,maxMip:t}}function Ovt(n,e,t,i){const s=n.getContext(),r=t.defines;let o=t.vertexShader,a=t.fragmentShader;const c=wvt(t),d=Rvt(t),u=Avt(t),_=Mvt(t),m=Nvt(t),h=t.isWebGL2?"":bvt(t),f=yvt(r),y=s.createProgram();let b,g,E=t.glslVersion?"#version "+t.glslVersion+`
 `:"";t.isRawShaderMaterial?(b=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f].filter(gl).join(`
 `),b.length>0&&(b+=`
 `),g=[h,"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f].filter(gl).join(`
 `),g.length>0&&(g+=`
 `)):(b=[xw(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f,t.batching?"#define USE_BATCHING":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors&&t.isWebGL2?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0&&t.isWebGL2?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","	attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","	attribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","	attribute vec2 uv1;","#endif","#ifdef USE_UV2","	attribute vec2 uv2;","#endif","#ifdef USE_UV3","	attribute vec2 uv3;","#endif","#ifdef USE_TANGENT","	attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","	attribute vec4 color;","#elif defined( USE_COLOR )","	attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","	attribute vec3 morphTarget0;","	attribute vec3 morphTarget1;","	attribute vec3 morphTarget2;","	attribute vec3 morphTarget3;","	#ifdef USE_MORPHNORMALS","		attribute vec3 morphNormal0;","		attribute vec3 morphNormal1;","		attribute vec3 morphNormal2;","		attribute vec3 morphNormal3;","	#else","		attribute vec3 morphTarget4;","		attribute vec3 morphTarget5;","		attribute vec3 morphTarget6;","		attribute vec3 morphTarget7;","	#endif","#endif","#ifdef USE_SKINNING","	attribute vec4 skinIndex;","	attribute vec4 skinWeight;","#endif",`
 `].filter(gl).join(`
-`),g=[h,xw(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+d:"",t.envMap?"#define "+u:"",t.envMap?"#define "+_:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==br?"#define TONE_MAPPING":"",t.toneMapping!==br?vt.tonemapping_pars_fragment:"",t.toneMapping!==br?bvt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",vt.colorspace_pars_fragment,gvt("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",`
+`),g=[h,xw(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,f,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+d:"",t.envMap?"#define "+u:"",t.envMap?"#define "+_:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.useLegacyLights?"#define LEGACY_LIGHTS":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.logarithmicDepthBuffer&&t.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==br?"#define TONE_MAPPING":"",t.toneMapping!==br?vt.tonemapping_pars_fragment:"",t.toneMapping!==br?gvt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",vt.colorspace_pars_fragment,hvt("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",`
 `].filter(gl).join(`
 `)),o=Sb(o),o=vw(o,t),o=Sw(o,t),a=Sb(a),a=vw(a,t),a=Sw(a,t),o=Tw(o),a=Tw(a),t.isWebGL2&&t.isRawShaderMaterial!==!0&&(E=`#version 300 es
 `,b=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join(`
@@ -3937,9 +3937,9 @@ precision `+n.precision+" int;";return n.precision==="highp"?e+=`
 
 Program Info Log: `+V+`
 `+L+`
-`+Y)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(ee===""||O==="")&&(q=!1);q&&(G.diagnostics={runnable:H,programLog:V,vertexShader:{log:ee,prefix:b},fragmentShader:{log:O,prefix:g}})}s.deleteShader(R),s.deleteShader(C),I=new Dd(s,y),x=vvt(s,y)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let x;this.getAttributes=function(){return x===void 0&&A(this),x};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=s.getProgramParameter(y,fvt)),M},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(y),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=_vt++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=R,this.fragmentShader=C,this}let kvt=0;class Dvt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new Lvt(e),t.set(e,i)),i}}class Lvt{constructor(e){this.id=kvt++,this.code=e,this.usedTimes=0}}function Pvt(n,e,t,i,s,r,o){const a=new jN,c=new Dvt,d=[],u=s.isWebGL2,_=s.logarithmicDepthBuffer,m=s.vertexTextures;let h=s.precision;const f={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(x){return x===0?"uv":`uv${x}`}function b(x,M,G,V,ee){const O=V.fog,H=ee.geometry,q=x.isMeshStandardMaterial?V.environment:null,L=(x.isMeshStandardMaterial?t:e).get(x.envMap||q),Y=L&&L.mapping===fp?L.image.height:null,ne=f[x.type];x.precision!==null&&(h=s.getMaxPrecision(x.precision),h!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",h,"instead."));const oe=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,ye=oe!==void 0?oe.length:0;let xe=0;H.morphAttributes.position!==void 0&&(xe=1),H.morphAttributes.normal!==void 0&&(xe=2),H.morphAttributes.color!==void 0&&(xe=3);let le,ve,Oe,De;if(ne){const wn=Zi[ne];le=wn.vertexShader,ve=wn.fragmentShader}else le=x.vertexShader,ve=x.fragmentShader,c.update(x),Oe=c.getVertexShaderID(x),De=c.getFragmentShaderID(x);const Q=n.getRenderTarget(),fe=ee.isInstancedMesh===!0,_e=ee.isBatchedMesh===!0,Ae=!!x.map,Fe=!!x.matcap,te=!!L,U=!!x.aoMap,P=!!x.lightMap,Z=!!x.bumpMap,ce=!!x.normalMap,pe=!!x.displacementMap,he=!!x.emissiveMap,ae=!!x.metalnessMap,Me=!!x.roughnessMap,Re=x.anisotropy>0,ge=x.clearcoat>0,D=x.iridescence>0,N=x.sheen>0,K=x.transmission>0,me=Re&&!!x.anisotropyMap,j=ge&&!!x.clearcoatMap,se=ge&&!!x.clearcoatNormalMap,Ce=ge&&!!x.clearcoatRoughnessMap,we=D&&!!x.iridescenceMap,ke=D&&!!x.iridescenceThicknessMap,We=N&&!!x.sheenColorMap,lt=N&&!!x.sheenRoughnessMap,Pe=!!x.specularMap,Mt=!!x.specularColorMap,et=!!x.specularIntensityMap,tt=K&&!!x.transmissionMap,ze=K&&!!x.thicknessMap,Ke=!!x.gradientMap,mt=!!x.alphaMap,J=x.alphaTest>0,je=!!x.alphaHash,Ge=!!x.extensions,Ne=!!H.attributes.uv1,qe=!!H.attributes.uv2,dt=!!H.attributes.uv3;let Nt=br;return x.toneMapped&&(Q===null||Q.isXRRenderTarget===!0)&&(Nt=n.toneMapping),{isWebGL2:u,shaderID:ne,shaderType:x.type,shaderName:x.name,vertexShader:le,fragmentShader:ve,defines:x.defines,customVertexShaderID:Oe,customFragmentShaderID:De,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:h,batching:_e,instancing:fe,instancingColor:fe&&ee.instanceColor!==null,supportsVertexTextures:m,outputColorSpace:Q===null?n.outputColorSpace:Q.isXRRenderTarget===!0?Q.texture.colorSpace:Cn,map:Ae,matcap:Fe,envMap:te,envMapMode:te&&L.mapping,envMapCubeUVHeight:Y,aoMap:U,lightMap:P,bumpMap:Z,normalMap:ce,displacementMap:m&&pe,emissiveMap:he,normalMapObjectSpace:ce&&x.normalMapType===Igt,normalMapTangentSpace:ce&&x.normalMapType===py,metalnessMap:ae,roughnessMap:Me,anisotropy:Re,anisotropyMap:me,clearcoat:ge,clearcoatMap:j,clearcoatNormalMap:se,clearcoatRoughnessMap:Ce,iridescence:D,iridescenceMap:we,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:We,sheenRoughnessMap:lt,specularMap:Pe,specularColorMap:Mt,specularIntensityMap:et,transmission:K,transmissionMap:tt,thicknessMap:ze,gradientMap:Ke,opaque:x.transparent===!1&&x.blending===ra,alphaMap:mt,alphaTest:J,alphaHash:je,combine:x.combine,mapUv:Ae&&y(x.map.channel),aoMapUv:U&&y(x.aoMap.channel),lightMapUv:P&&y(x.lightMap.channel),bumpMapUv:Z&&y(x.bumpMap.channel),normalMapUv:ce&&y(x.normalMap.channel),displacementMapUv:pe&&y(x.displacementMap.channel),emissiveMapUv:he&&y(x.emissiveMap.channel),metalnessMapUv:ae&&y(x.metalnessMap.channel),roughnessMapUv:Me&&y(x.roughnessMap.channel),anisotropyMapUv:me&&y(x.anisotropyMap.channel),clearcoatMapUv:j&&y(x.clearcoatMap.channel),clearcoatNormalMapUv:se&&y(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ce&&y(x.clearcoatRoughnessMap.channel),iridescenceMapUv:we&&y(x.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&y(x.iridescenceThicknessMap.channel),sheenColorMapUv:We&&y(x.sheenColorMap.channel),sheenRoughnessMapUv:lt&&y(x.sheenRoughnessMap.channel),specularMapUv:Pe&&y(x.specularMap.channel),specularColorMapUv:Mt&&y(x.specularColorMap.channel),specularIntensityMapUv:et&&y(x.specularIntensityMap.channel),transmissionMapUv:tt&&y(x.transmissionMap.channel),thicknessMapUv:ze&&y(x.thicknessMap.channel),alphaMapUv:mt&&y(x.alphaMap.channel),vertexTangents:!!H.attributes.tangent&&(ce||Re),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!H.attributes.color&&H.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:qe,vertexUv3s:dt,pointsUvs:ee.isPoints===!0&&!!H.attributes.uv&&(Ae||mt),fog:!!O,useFog:x.fog===!0,fogExp2:O&&O.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:_,skinning:ee.isSkinnedMesh===!0,morphTargets:H.morphAttributes.position!==void 0,morphNormals:H.morphAttributes.normal!==void 0,morphColors:H.morphAttributes.color!==void 0,morphTargetsCount:ye,morphTextureStride:xe,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:n.shadowMap.enabled&&G.length>0,shadowMapType:n.shadowMap.type,toneMapping:Nt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ae&&x.map.isVideoTexture===!0&&Lt.getTransfer(x.map.colorSpace)===jt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===Ji,flipSided:x.side===Zn,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ge&&x.extensions.derivatives===!0,extensionFragDepth:Ge&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&x.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:x.customProgramCacheKey()}}function g(x){const M=[];if(x.shaderID?M.push(x.shaderID):(M.push(x.customVertexShaderID),M.push(x.customFragmentShaderID)),x.defines!==void 0)for(const G in x.defines)M.push(G),M.push(x.defines[G]);return x.isRawShaderMaterial===!1&&(E(M,x),v(M,x),M.push(n.outputColorSpace)),M.push(x.customProgramCacheKey),M.join()}function E(x,M){x.push(M.precision),x.push(M.outputColorSpace),x.push(M.envMapMode),x.push(M.envMapCubeUVHeight),x.push(M.mapUv),x.push(M.alphaMapUv),x.push(M.lightMapUv),x.push(M.aoMapUv),x.push(M.bumpMapUv),x.push(M.normalMapUv),x.push(M.displacementMapUv),x.push(M.emissiveMapUv),x.push(M.metalnessMapUv),x.push(M.roughnessMapUv),x.push(M.anisotropyMapUv),x.push(M.clearcoatMapUv),x.push(M.clearcoatNormalMapUv),x.push(M.clearcoatRoughnessMapUv),x.push(M.iridescenceMapUv),x.push(M.iridescenceThicknessMapUv),x.push(M.sheenColorMapUv),x.push(M.sheenRoughnessMapUv),x.push(M.specularMapUv),x.push(M.specularColorMapUv),x.push(M.specularIntensityMapUv),x.push(M.transmissionMapUv),x.push(M.thicknessMapUv),x.push(M.combine),x.push(M.fogExp2),x.push(M.sizeAttenuation),x.push(M.morphTargetsCount),x.push(M.morphAttributeCount),x.push(M.numDirLights),x.push(M.numPointLights),x.push(M.numSpotLights),x.push(M.numSpotLightMaps),x.push(M.numHemiLights),x.push(M.numRectAreaLights),x.push(M.numDirLightShadows),x.push(M.numPointLightShadows),x.push(M.numSpotLightShadows),x.push(M.numSpotLightShadowsWithMaps),x.push(M.numLightProbes),x.push(M.shadowMapType),x.push(M.toneMapping),x.push(M.numClippingPlanes),x.push(M.numClipIntersection),x.push(M.depthPacking)}function v(x,M){a.disableAll(),M.isWebGL2&&a.enable(0),M.supportsVertexTextures&&a.enable(1),M.instancing&&a.enable(2),M.instancingColor&&a.enable(3),M.matcap&&a.enable(4),M.envMap&&a.enable(5),M.normalMapObjectSpace&&a.enable(6),M.normalMapTangentSpace&&a.enable(7),M.clearcoat&&a.enable(8),M.iridescence&&a.enable(9),M.alphaTest&&a.enable(10),M.vertexColors&&a.enable(11),M.vertexAlphas&&a.enable(12),M.vertexUv1s&&a.enable(13),M.vertexUv2s&&a.enable(14),M.vertexUv3s&&a.enable(15),M.vertexTangents&&a.enable(16),M.anisotropy&&a.enable(17),M.alphaHash&&a.enable(18),M.batching&&a.enable(19),x.push(a.mask),a.disableAll(),M.fog&&a.enable(0),M.useFog&&a.enable(1),M.flatShading&&a.enable(2),M.logarithmicDepthBuffer&&a.enable(3),M.skinning&&a.enable(4),M.morphTargets&&a.enable(5),M.morphNormals&&a.enable(6),M.morphColors&&a.enable(7),M.premultipliedAlpha&&a.enable(8),M.shadowMapEnabled&&a.enable(9),M.useLegacyLights&&a.enable(10),M.doubleSided&&a.enable(11),M.flipSided&&a.enable(12),M.useDepthPacking&&a.enable(13),M.dithering&&a.enable(14),M.transmission&&a.enable(15),M.sheen&&a.enable(16),M.opaque&&a.enable(17),M.pointsUvs&&a.enable(18),M.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const M=f[x.type];let G;if(M){const V=Zi[M];G=ybt.clone(V.uniforms)}else G=x.uniforms;return G}function R(x,M){let G;for(let V=0,ee=d.length;V<ee;V++){const O=d[V];if(O.cacheKey===M){G=O,++G.usedTimes;break}}return G===void 0&&(G=new Ivt(n,M,x,r),d.push(G)),G}function C(x){if(--x.usedTimes===0){const M=d.indexOf(x);d[M]=d[d.length-1],d.pop(),x.destroy()}}function A(x){c.remove(x)}function I(){c.dispose()}return{getParameters:b,getProgramCacheKey:g,getUniforms:S,acquireProgram:R,releaseProgram:C,releaseShaderCache:A,programs:d,dispose:I}}function Fvt(){let n=new WeakMap;function e(r){let o=n.get(r);return o===void 0&&(o={},n.set(r,o)),o}function t(r){n.delete(r)}function i(r,o,a){n.get(r)[o]=a}function s(){n=new WeakMap}return{get:e,remove:t,update:i,dispose:s}}function Uvt(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.material.id!==e.material.id?n.material.id-e.material.id:n.z!==e.z?n.z-e.z:n.id-e.id}function Cw(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.z!==e.z?e.z-n.z:n.id-e.id}function ww(){const n=[];let e=0;const t=[],i=[],s=[];function r(){e=0,t.length=0,i.length=0,s.length=0}function o(_,m,h,f,y,b){let g=n[e];return g===void 0?(g={id:_.id,object:_,geometry:m,material:h,groupOrder:f,renderOrder:_.renderOrder,z:y,group:b},n[e]=g):(g.id=_.id,g.object=_,g.geometry=m,g.material=h,g.groupOrder=f,g.renderOrder=_.renderOrder,g.z=y,g.group=b),e++,g}function a(_,m,h,f,y,b){const g=o(_,m,h,f,y,b);h.transmission>0?i.push(g):h.transparent===!0?s.push(g):t.push(g)}function c(_,m,h,f,y,b){const g=o(_,m,h,f,y,b);h.transmission>0?i.unshift(g):h.transparent===!0?s.unshift(g):t.unshift(g)}function d(_,m){t.length>1&&t.sort(_||Uvt),i.length>1&&i.sort(m||Cw),s.length>1&&s.sort(m||Cw)}function u(){for(let _=e,m=n.length;_<m;_++){const h=n[_];if(h.id===null)break;h.id=null,h.object=null,h.geometry=null,h.material=null,h.group=null}}return{opaque:t,transmissive:i,transparent:s,init:r,push:a,unshift:c,finish:u,sort:d}}function Bvt(){let n=new WeakMap;function e(i,s){const r=n.get(i);let o;return r===void 0?(o=new ww,n.set(i,[o])):s>=r.length?(o=new ww,r.push(o)):o=r[s],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function Gvt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new re,color:new pt};break;case"SpotLight":t={position:new re,direction:new re,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new re,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new re,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new re,halfWidth:new re,halfHeight:new re};break}return n[e.id]=t,t}}}function Vvt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let zvt=0;function Hvt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function qvt(n,e){const t=new Gvt,i=Vvt(),s={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)s.probe.push(new re);const r=new re,o=new xt,a=new xt;function c(u,_){let m=0,h=0,f=0;for(let V=0;V<9;V++)s.probe[V].set(0,0,0);let y=0,b=0,g=0,E=0,v=0,S=0,R=0,C=0,A=0,I=0,x=0;u.sort(Hvt);const M=_===!0?Math.PI:1;for(let V=0,ee=u.length;V<ee;V++){const O=u[V],H=O.color,q=O.intensity,L=O.distance,Y=O.shadow&&O.shadow.map?O.shadow.map.texture:null;if(O.isAmbientLight)m+=H.r*q*M,h+=H.g*q*M,f+=H.b*q*M;else if(O.isLightProbe){for(let ne=0;ne<9;ne++)s.probe[ne].addScaledVector(O.sh.coefficients[ne],q);x++}else if(O.isDirectionalLight){const ne=t.get(O);if(ne.color.copy(O.color).multiplyScalar(O.intensity*M),O.castShadow){const oe=O.shadow,ye=i.get(O);ye.shadowBias=oe.bias,ye.shadowNormalBias=oe.normalBias,ye.shadowRadius=oe.radius,ye.shadowMapSize=oe.mapSize,s.directionalShadow[y]=ye,s.directionalShadowMap[y]=Y,s.directionalShadowMatrix[y]=O.shadow.matrix,S++}s.directional[y]=ne,y++}else if(O.isSpotLight){const ne=t.get(O);ne.position.setFromMatrixPosition(O.matrixWorld),ne.color.copy(H).multiplyScalar(q*M),ne.distance=L,ne.coneCos=Math.cos(O.angle),ne.penumbraCos=Math.cos(O.angle*(1-O.penumbra)),ne.decay=O.decay,s.spot[g]=ne;const oe=O.shadow;if(O.map&&(s.spotLightMap[A]=O.map,A++,oe.updateMatrices(O),O.castShadow&&I++),s.spotLightMatrix[g]=oe.matrix,O.castShadow){const ye=i.get(O);ye.shadowBias=oe.bias,ye.shadowNormalBias=oe.normalBias,ye.shadowRadius=oe.radius,ye.shadowMapSize=oe.mapSize,s.spotShadow[g]=ye,s.spotShadowMap[g]=Y,C++}g++}else if(O.isRectAreaLight){const ne=t.get(O);ne.color.copy(H).multiplyScalar(q),ne.halfWidth.set(O.width*.5,0,0),ne.halfHeight.set(0,O.height*.5,0),s.rectArea[E]=ne,E++}else if(O.isPointLight){const ne=t.get(O);if(ne.color.copy(O.color).multiplyScalar(O.intensity*M),ne.distance=O.distance,ne.decay=O.decay,O.castShadow){const oe=O.shadow,ye=i.get(O);ye.shadowBias=oe.bias,ye.shadowNormalBias=oe.normalBias,ye.shadowRadius=oe.radius,ye.shadowMapSize=oe.mapSize,ye.shadowCameraNear=oe.camera.near,ye.shadowCameraFar=oe.camera.far,s.pointShadow[b]=ye,s.pointShadowMap[b]=Y,s.pointShadowMatrix[b]=O.shadow.matrix,R++}s.point[b]=ne,b++}else if(O.isHemisphereLight){const ne=t.get(O);ne.skyColor.copy(O.color).multiplyScalar(q*M),ne.groundColor.copy(O.groundColor).multiplyScalar(q*M),s.hemi[v]=ne,v++}}E>0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=$e.LTC_FLOAT_1,s.rectAreaLTC2=$e.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=$e.LTC_HALF_1,s.rectAreaLTC2=$e.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=m,s.ambient[1]=h,s.ambient[2]=f;const G=s.hash;(G.directionalLength!==y||G.pointLength!==b||G.spotLength!==g||G.rectAreaLength!==E||G.hemiLength!==v||G.numDirectionalShadows!==S||G.numPointShadows!==R||G.numSpotShadows!==C||G.numSpotMaps!==A||G.numLightProbes!==x)&&(s.directional.length=y,s.spot.length=g,s.rectArea.length=E,s.point.length=b,s.hemi.length=v,s.directionalShadow.length=S,s.directionalShadowMap.length=S,s.pointShadow.length=R,s.pointShadowMap.length=R,s.spotShadow.length=C,s.spotShadowMap.length=C,s.directionalShadowMatrix.length=S,s.pointShadowMatrix.length=R,s.spotLightMatrix.length=C+A-I,s.spotLightMap.length=A,s.numSpotLightShadowsWithMaps=I,s.numLightProbes=x,G.directionalLength=y,G.pointLength=b,G.spotLength=g,G.rectAreaLength=E,G.hemiLength=v,G.numDirectionalShadows=S,G.numPointShadows=R,G.numSpotShadows=C,G.numSpotMaps=A,G.numLightProbes=x,s.version=zvt++)}function d(u,_){let m=0,h=0,f=0,y=0,b=0;const g=_.matrixWorldInverse;for(let E=0,v=u.length;E<v;E++){const S=u[E];if(S.isDirectionalLight){const R=s.directional[m];R.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),R.direction.sub(r),R.direction.transformDirection(g),m++}else if(S.isSpotLight){const R=s.spot[f];R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(g),R.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),R.direction.sub(r),R.direction.transformDirection(g),f++}else if(S.isRectAreaLight){const R=s.rectArea[y];R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(g),a.identity(),o.copy(S.matrixWorld),o.premultiply(g),a.extractRotation(o),R.halfWidth.set(S.width*.5,0,0),R.halfHeight.set(0,S.height*.5,0),R.halfWidth.applyMatrix4(a),R.halfHeight.applyMatrix4(a),y++}else if(S.isPointLight){const R=s.point[h];R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(g),h++}else if(S.isHemisphereLight){const R=s.hemi[b];R.direction.setFromMatrixPosition(S.matrixWorld),R.direction.transformDirection(g),b++}}}return{setup:c,setupView:d,state:s}}function Rw(n,e){const t=new qvt(n,e),i=[],s=[];function r(){i.length=0,s.length=0}function o(_){i.push(_)}function a(_){s.push(_)}function c(_){t.setup(i,_)}function d(_){t.setupView(i,_)}return{init:r,state:{lightsArray:i,shadowsArray:s,lights:t},setupLights:c,setupLightsView:d,pushLight:o,pushShadow:a}}function Yvt(n,e){let t=new WeakMap;function i(r,o=0){const a=t.get(r);let c;return a===void 0?(c=new Rw(n,e),t.set(r,[c])):o>=a.length?(c=new Rw(n,e),a.push(c)):c=a[o],c}function s(){t=new WeakMap}return{get:i,dispose:s}}class $vt extends Vi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Ngt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Wvt extends Vi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const Kvt=`void main() {
+`+Y)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(ee===""||O==="")&&(q=!1);q&&(G.diagnostics={runnable:H,programLog:V,vertexShader:{log:ee,prefix:b},fragmentShader:{log:O,prefix:g}})}s.deleteShader(R),s.deleteShader(C),I=new Dd(s,y),x=Evt(s,y)}let I;this.getUniforms=function(){return I===void 0&&A(this),I};let x;this.getAttributes=function(){return x===void 0&&A(this),x};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=s.getProgramParameter(y,pvt)),M},this.destroy=function(){i.releaseStatesOfProgram(this),s.deleteProgram(y),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=fvt++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=R,this.fragmentShader=C,this}let Ivt=0;class kvt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,i=e.fragmentShader,s=this._getShaderStage(t),r=this._getShaderStage(i),o=this._getShaderCacheForMaterial(e);return o.has(s)===!1&&(o.add(s),s.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const i of t)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let i=t.get(e);return i===void 0&&(i=new Set,t.set(e,i)),i}_getShaderStage(e){const t=this.shaderCache;let i=t.get(e);return i===void 0&&(i=new Dvt(e),t.set(e,i)),i}}class Dvt{constructor(e){this.id=Ivt++,this.code=e,this.usedTimes=0}}function Lvt(n,e,t,i,s,r,o){const a=new jN,c=new kvt,d=[],u=s.isWebGL2,_=s.logarithmicDepthBuffer,m=s.vertexTextures;let h=s.precision;const f={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(x){return x===0?"uv":`uv${x}`}function b(x,M,G,V,ee){const O=V.fog,H=ee.geometry,q=x.isMeshStandardMaterial?V.environment:null,L=(x.isMeshStandardMaterial?t:e).get(x.envMap||q),Y=L&&L.mapping===fp?L.image.height:null,ne=f[x.type];x.precision!==null&&(h=s.getMaxPrecision(x.precision),h!==x.precision&&console.warn("THREE.WebGLProgram.getParameters:",x.precision,"not supported, using",h,"instead."));const oe=H.morphAttributes.position||H.morphAttributes.normal||H.morphAttributes.color,ye=oe!==void 0?oe.length:0;let xe=0;H.morphAttributes.position!==void 0&&(xe=1),H.morphAttributes.normal!==void 0&&(xe=2),H.morphAttributes.color!==void 0&&(xe=3);let le,ve,Oe,De;if(ne){const wn=Zi[ne];le=wn.vertexShader,ve=wn.fragmentShader}else le=x.vertexShader,ve=x.fragmentShader,c.update(x),Oe=c.getVertexShaderID(x),De=c.getFragmentShaderID(x);const Q=n.getRenderTarget(),fe=ee.isInstancedMesh===!0,_e=ee.isBatchedMesh===!0,Ae=!!x.map,Fe=!!x.matcap,te=!!L,U=!!x.aoMap,P=!!x.lightMap,Z=!!x.bumpMap,ce=!!x.normalMap,pe=!!x.displacementMap,he=!!x.emissiveMap,ae=!!x.metalnessMap,Me=!!x.roughnessMap,Re=x.anisotropy>0,ge=x.clearcoat>0,D=x.iridescence>0,N=x.sheen>0,K=x.transmission>0,me=Re&&!!x.anisotropyMap,j=ge&&!!x.clearcoatMap,se=ge&&!!x.clearcoatNormalMap,Ce=ge&&!!x.clearcoatRoughnessMap,we=D&&!!x.iridescenceMap,ke=D&&!!x.iridescenceThicknessMap,We=N&&!!x.sheenColorMap,lt=N&&!!x.sheenRoughnessMap,Pe=!!x.specularMap,Mt=!!x.specularColorMap,et=!!x.specularIntensityMap,tt=K&&!!x.transmissionMap,ze=K&&!!x.thicknessMap,Ke=!!x.gradientMap,mt=!!x.alphaMap,J=x.alphaTest>0,je=!!x.alphaHash,Ge=!!x.extensions,Ne=!!H.attributes.uv1,qe=!!H.attributes.uv2,dt=!!H.attributes.uv3;let Nt=br;return x.toneMapped&&(Q===null||Q.isXRRenderTarget===!0)&&(Nt=n.toneMapping),{isWebGL2:u,shaderID:ne,shaderType:x.type,shaderName:x.name,vertexShader:le,fragmentShader:ve,defines:x.defines,customVertexShaderID:Oe,customFragmentShaderID:De,isRawShaderMaterial:x.isRawShaderMaterial===!0,glslVersion:x.glslVersion,precision:h,batching:_e,instancing:fe,instancingColor:fe&&ee.instanceColor!==null,supportsVertexTextures:m,outputColorSpace:Q===null?n.outputColorSpace:Q.isXRRenderTarget===!0?Q.texture.colorSpace:Cn,map:Ae,matcap:Fe,envMap:te,envMapMode:te&&L.mapping,envMapCubeUVHeight:Y,aoMap:U,lightMap:P,bumpMap:Z,normalMap:ce,displacementMap:m&&pe,emissiveMap:he,normalMapObjectSpace:ce&&x.normalMapType===Ogt,normalMapTangentSpace:ce&&x.normalMapType===py,metalnessMap:ae,roughnessMap:Me,anisotropy:Re,anisotropyMap:me,clearcoat:ge,clearcoatMap:j,clearcoatNormalMap:se,clearcoatRoughnessMap:Ce,iridescence:D,iridescenceMap:we,iridescenceThicknessMap:ke,sheen:N,sheenColorMap:We,sheenRoughnessMap:lt,specularMap:Pe,specularColorMap:Mt,specularIntensityMap:et,transmission:K,transmissionMap:tt,thicknessMap:ze,gradientMap:Ke,opaque:x.transparent===!1&&x.blending===ra,alphaMap:mt,alphaTest:J,alphaHash:je,combine:x.combine,mapUv:Ae&&y(x.map.channel),aoMapUv:U&&y(x.aoMap.channel),lightMapUv:P&&y(x.lightMap.channel),bumpMapUv:Z&&y(x.bumpMap.channel),normalMapUv:ce&&y(x.normalMap.channel),displacementMapUv:pe&&y(x.displacementMap.channel),emissiveMapUv:he&&y(x.emissiveMap.channel),metalnessMapUv:ae&&y(x.metalnessMap.channel),roughnessMapUv:Me&&y(x.roughnessMap.channel),anisotropyMapUv:me&&y(x.anisotropyMap.channel),clearcoatMapUv:j&&y(x.clearcoatMap.channel),clearcoatNormalMapUv:se&&y(x.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ce&&y(x.clearcoatRoughnessMap.channel),iridescenceMapUv:we&&y(x.iridescenceMap.channel),iridescenceThicknessMapUv:ke&&y(x.iridescenceThicknessMap.channel),sheenColorMapUv:We&&y(x.sheenColorMap.channel),sheenRoughnessMapUv:lt&&y(x.sheenRoughnessMap.channel),specularMapUv:Pe&&y(x.specularMap.channel),specularColorMapUv:Mt&&y(x.specularColorMap.channel),specularIntensityMapUv:et&&y(x.specularIntensityMap.channel),transmissionMapUv:tt&&y(x.transmissionMap.channel),thicknessMapUv:ze&&y(x.thicknessMap.channel),alphaMapUv:mt&&y(x.alphaMap.channel),vertexTangents:!!H.attributes.tangent&&(ce||Re),vertexColors:x.vertexColors,vertexAlphas:x.vertexColors===!0&&!!H.attributes.color&&H.attributes.color.itemSize===4,vertexUv1s:Ne,vertexUv2s:qe,vertexUv3s:dt,pointsUvs:ee.isPoints===!0&&!!H.attributes.uv&&(Ae||mt),fog:!!O,useFog:x.fog===!0,fogExp2:O&&O.isFogExp2,flatShading:x.flatShading===!0,sizeAttenuation:x.sizeAttenuation===!0,logarithmicDepthBuffer:_,skinning:ee.isSkinnedMesh===!0,morphTargets:H.morphAttributes.position!==void 0,morphNormals:H.morphAttributes.normal!==void 0,morphColors:H.morphAttributes.color!==void 0,morphTargetsCount:ye,morphTextureStride:xe,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:x.dithering,shadowMapEnabled:n.shadowMap.enabled&&G.length>0,shadowMapType:n.shadowMap.type,toneMapping:Nt,useLegacyLights:n._useLegacyLights,decodeVideoTexture:Ae&&x.map.isVideoTexture===!0&&Lt.getTransfer(x.map.colorSpace)===jt,premultipliedAlpha:x.premultipliedAlpha,doubleSided:x.side===Ji,flipSided:x.side===Zn,useDepthPacking:x.depthPacking>=0,depthPacking:x.depthPacking||0,index0AttributeName:x.index0AttributeName,extensionDerivatives:Ge&&x.extensions.derivatives===!0,extensionFragDepth:Ge&&x.extensions.fragDepth===!0,extensionDrawBuffers:Ge&&x.extensions.drawBuffers===!0,extensionShaderTextureLOD:Ge&&x.extensions.shaderTextureLOD===!0,rendererExtensionFragDepth:u||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||i.has("EXT_shader_texture_lod"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:x.customProgramCacheKey()}}function g(x){const M=[];if(x.shaderID?M.push(x.shaderID):(M.push(x.customVertexShaderID),M.push(x.customFragmentShaderID)),x.defines!==void 0)for(const G in x.defines)M.push(G),M.push(x.defines[G]);return x.isRawShaderMaterial===!1&&(E(M,x),v(M,x),M.push(n.outputColorSpace)),M.push(x.customProgramCacheKey),M.join()}function E(x,M){x.push(M.precision),x.push(M.outputColorSpace),x.push(M.envMapMode),x.push(M.envMapCubeUVHeight),x.push(M.mapUv),x.push(M.alphaMapUv),x.push(M.lightMapUv),x.push(M.aoMapUv),x.push(M.bumpMapUv),x.push(M.normalMapUv),x.push(M.displacementMapUv),x.push(M.emissiveMapUv),x.push(M.metalnessMapUv),x.push(M.roughnessMapUv),x.push(M.anisotropyMapUv),x.push(M.clearcoatMapUv),x.push(M.clearcoatNormalMapUv),x.push(M.clearcoatRoughnessMapUv),x.push(M.iridescenceMapUv),x.push(M.iridescenceThicknessMapUv),x.push(M.sheenColorMapUv),x.push(M.sheenRoughnessMapUv),x.push(M.specularMapUv),x.push(M.specularColorMapUv),x.push(M.specularIntensityMapUv),x.push(M.transmissionMapUv),x.push(M.thicknessMapUv),x.push(M.combine),x.push(M.fogExp2),x.push(M.sizeAttenuation),x.push(M.morphTargetsCount),x.push(M.morphAttributeCount),x.push(M.numDirLights),x.push(M.numPointLights),x.push(M.numSpotLights),x.push(M.numSpotLightMaps),x.push(M.numHemiLights),x.push(M.numRectAreaLights),x.push(M.numDirLightShadows),x.push(M.numPointLightShadows),x.push(M.numSpotLightShadows),x.push(M.numSpotLightShadowsWithMaps),x.push(M.numLightProbes),x.push(M.shadowMapType),x.push(M.toneMapping),x.push(M.numClippingPlanes),x.push(M.numClipIntersection),x.push(M.depthPacking)}function v(x,M){a.disableAll(),M.isWebGL2&&a.enable(0),M.supportsVertexTextures&&a.enable(1),M.instancing&&a.enable(2),M.instancingColor&&a.enable(3),M.matcap&&a.enable(4),M.envMap&&a.enable(5),M.normalMapObjectSpace&&a.enable(6),M.normalMapTangentSpace&&a.enable(7),M.clearcoat&&a.enable(8),M.iridescence&&a.enable(9),M.alphaTest&&a.enable(10),M.vertexColors&&a.enable(11),M.vertexAlphas&&a.enable(12),M.vertexUv1s&&a.enable(13),M.vertexUv2s&&a.enable(14),M.vertexUv3s&&a.enable(15),M.vertexTangents&&a.enable(16),M.anisotropy&&a.enable(17),M.alphaHash&&a.enable(18),M.batching&&a.enable(19),x.push(a.mask),a.disableAll(),M.fog&&a.enable(0),M.useFog&&a.enable(1),M.flatShading&&a.enable(2),M.logarithmicDepthBuffer&&a.enable(3),M.skinning&&a.enable(4),M.morphTargets&&a.enable(5),M.morphNormals&&a.enable(6),M.morphColors&&a.enable(7),M.premultipliedAlpha&&a.enable(8),M.shadowMapEnabled&&a.enable(9),M.useLegacyLights&&a.enable(10),M.doubleSided&&a.enable(11),M.flipSided&&a.enable(12),M.useDepthPacking&&a.enable(13),M.dithering&&a.enable(14),M.transmission&&a.enable(15),M.sheen&&a.enable(16),M.opaque&&a.enable(17),M.pointsUvs&&a.enable(18),M.decodeVideoTexture&&a.enable(19),x.push(a.mask)}function S(x){const M=f[x.type];let G;if(M){const V=Zi[M];G=bbt.clone(V.uniforms)}else G=x.uniforms;return G}function R(x,M){let G;for(let V=0,ee=d.length;V<ee;V++){const O=d[V];if(O.cacheKey===M){G=O,++G.usedTimes;break}}return G===void 0&&(G=new Ovt(n,M,x,r),d.push(G)),G}function C(x){if(--x.usedTimes===0){const M=d.indexOf(x);d[M]=d[d.length-1],d.pop(),x.destroy()}}function A(x){c.remove(x)}function I(){c.dispose()}return{getParameters:b,getProgramCacheKey:g,getUniforms:S,acquireProgram:R,releaseProgram:C,releaseShaderCache:A,programs:d,dispose:I}}function Pvt(){let n=new WeakMap;function e(r){let o=n.get(r);return o===void 0&&(o={},n.set(r,o)),o}function t(r){n.delete(r)}function i(r,o,a){n.get(r)[o]=a}function s(){n=new WeakMap}return{get:e,remove:t,update:i,dispose:s}}function Fvt(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.material.id!==e.material.id?n.material.id-e.material.id:n.z!==e.z?n.z-e.z:n.id-e.id}function Cw(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.z!==e.z?e.z-n.z:n.id-e.id}function ww(){const n=[];let e=0;const t=[],i=[],s=[];function r(){e=0,t.length=0,i.length=0,s.length=0}function o(_,m,h,f,y,b){let g=n[e];return g===void 0?(g={id:_.id,object:_,geometry:m,material:h,groupOrder:f,renderOrder:_.renderOrder,z:y,group:b},n[e]=g):(g.id=_.id,g.object=_,g.geometry=m,g.material=h,g.groupOrder=f,g.renderOrder=_.renderOrder,g.z=y,g.group=b),e++,g}function a(_,m,h,f,y,b){const g=o(_,m,h,f,y,b);h.transmission>0?i.push(g):h.transparent===!0?s.push(g):t.push(g)}function c(_,m,h,f,y,b){const g=o(_,m,h,f,y,b);h.transmission>0?i.unshift(g):h.transparent===!0?s.unshift(g):t.unshift(g)}function d(_,m){t.length>1&&t.sort(_||Fvt),i.length>1&&i.sort(m||Cw),s.length>1&&s.sort(m||Cw)}function u(){for(let _=e,m=n.length;_<m;_++){const h=n[_];if(h.id===null)break;h.id=null,h.object=null,h.geometry=null,h.material=null,h.group=null}}return{opaque:t,transmissive:i,transparent:s,init:r,push:a,unshift:c,finish:u,sort:d}}function Uvt(){let n=new WeakMap;function e(i,s){const r=n.get(i);let o;return r===void 0?(o=new ww,n.set(i,[o])):s>=r.length?(o=new ww,r.push(o)):o=r[s],o}function t(){n=new WeakMap}return{get:e,dispose:t}}function Bvt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new re,color:new pt};break;case"SpotLight":t={position:new re,direction:new re,color:new pt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new re,color:new pt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new re,skyColor:new pt,groundColor:new pt};break;case"RectAreaLight":t={color:new pt,position:new re,halfWidth:new re,halfHeight:new re};break}return n[e.id]=t,t}}}function Gvt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Rt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let Vvt=0;function zvt(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function Hvt(n,e){const t=new Bvt,i=Gvt(),s={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)s.probe.push(new re);const r=new re,o=new xt,a=new xt;function c(u,_){let m=0,h=0,f=0;for(let V=0;V<9;V++)s.probe[V].set(0,0,0);let y=0,b=0,g=0,E=0,v=0,S=0,R=0,C=0,A=0,I=0,x=0;u.sort(zvt);const M=_===!0?Math.PI:1;for(let V=0,ee=u.length;V<ee;V++){const O=u[V],H=O.color,q=O.intensity,L=O.distance,Y=O.shadow&&O.shadow.map?O.shadow.map.texture:null;if(O.isAmbientLight)m+=H.r*q*M,h+=H.g*q*M,f+=H.b*q*M;else if(O.isLightProbe){for(let ne=0;ne<9;ne++)s.probe[ne].addScaledVector(O.sh.coefficients[ne],q);x++}else if(O.isDirectionalLight){const ne=t.get(O);if(ne.color.copy(O.color).multiplyScalar(O.intensity*M),O.castShadow){const oe=O.shadow,ye=i.get(O);ye.shadowBias=oe.bias,ye.shadowNormalBias=oe.normalBias,ye.shadowRadius=oe.radius,ye.shadowMapSize=oe.mapSize,s.directionalShadow[y]=ye,s.directionalShadowMap[y]=Y,s.directionalShadowMatrix[y]=O.shadow.matrix,S++}s.directional[y]=ne,y++}else if(O.isSpotLight){const ne=t.get(O);ne.position.setFromMatrixPosition(O.matrixWorld),ne.color.copy(H).multiplyScalar(q*M),ne.distance=L,ne.coneCos=Math.cos(O.angle),ne.penumbraCos=Math.cos(O.angle*(1-O.penumbra)),ne.decay=O.decay,s.spot[g]=ne;const oe=O.shadow;if(O.map&&(s.spotLightMap[A]=O.map,A++,oe.updateMatrices(O),O.castShadow&&I++),s.spotLightMatrix[g]=oe.matrix,O.castShadow){const ye=i.get(O);ye.shadowBias=oe.bias,ye.shadowNormalBias=oe.normalBias,ye.shadowRadius=oe.radius,ye.shadowMapSize=oe.mapSize,s.spotShadow[g]=ye,s.spotShadowMap[g]=Y,C++}g++}else if(O.isRectAreaLight){const ne=t.get(O);ne.color.copy(H).multiplyScalar(q),ne.halfWidth.set(O.width*.5,0,0),ne.halfHeight.set(0,O.height*.5,0),s.rectArea[E]=ne,E++}else if(O.isPointLight){const ne=t.get(O);if(ne.color.copy(O.color).multiplyScalar(O.intensity*M),ne.distance=O.distance,ne.decay=O.decay,O.castShadow){const oe=O.shadow,ye=i.get(O);ye.shadowBias=oe.bias,ye.shadowNormalBias=oe.normalBias,ye.shadowRadius=oe.radius,ye.shadowMapSize=oe.mapSize,ye.shadowCameraNear=oe.camera.near,ye.shadowCameraFar=oe.camera.far,s.pointShadow[b]=ye,s.pointShadowMap[b]=Y,s.pointShadowMatrix[b]=O.shadow.matrix,R++}s.point[b]=ne,b++}else if(O.isHemisphereLight){const ne=t.get(O);ne.skyColor.copy(O.color).multiplyScalar(q*M),ne.groundColor.copy(O.groundColor).multiplyScalar(q*M),s.hemi[v]=ne,v++}}E>0&&(e.isWebGL2||n.has("OES_texture_float_linear")===!0?(s.rectAreaLTC1=$e.LTC_FLOAT_1,s.rectAreaLTC2=$e.LTC_FLOAT_2):n.has("OES_texture_half_float_linear")===!0?(s.rectAreaLTC1=$e.LTC_HALF_1,s.rectAreaLTC2=$e.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),s.ambient[0]=m,s.ambient[1]=h,s.ambient[2]=f;const G=s.hash;(G.directionalLength!==y||G.pointLength!==b||G.spotLength!==g||G.rectAreaLength!==E||G.hemiLength!==v||G.numDirectionalShadows!==S||G.numPointShadows!==R||G.numSpotShadows!==C||G.numSpotMaps!==A||G.numLightProbes!==x)&&(s.directional.length=y,s.spot.length=g,s.rectArea.length=E,s.point.length=b,s.hemi.length=v,s.directionalShadow.length=S,s.directionalShadowMap.length=S,s.pointShadow.length=R,s.pointShadowMap.length=R,s.spotShadow.length=C,s.spotShadowMap.length=C,s.directionalShadowMatrix.length=S,s.pointShadowMatrix.length=R,s.spotLightMatrix.length=C+A-I,s.spotLightMap.length=A,s.numSpotLightShadowsWithMaps=I,s.numLightProbes=x,G.directionalLength=y,G.pointLength=b,G.spotLength=g,G.rectAreaLength=E,G.hemiLength=v,G.numDirectionalShadows=S,G.numPointShadows=R,G.numSpotShadows=C,G.numSpotMaps=A,G.numLightProbes=x,s.version=Vvt++)}function d(u,_){let m=0,h=0,f=0,y=0,b=0;const g=_.matrixWorldInverse;for(let E=0,v=u.length;E<v;E++){const S=u[E];if(S.isDirectionalLight){const R=s.directional[m];R.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),R.direction.sub(r),R.direction.transformDirection(g),m++}else if(S.isSpotLight){const R=s.spot[f];R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(g),R.direction.setFromMatrixPosition(S.matrixWorld),r.setFromMatrixPosition(S.target.matrixWorld),R.direction.sub(r),R.direction.transformDirection(g),f++}else if(S.isRectAreaLight){const R=s.rectArea[y];R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(g),a.identity(),o.copy(S.matrixWorld),o.premultiply(g),a.extractRotation(o),R.halfWidth.set(S.width*.5,0,0),R.halfHeight.set(0,S.height*.5,0),R.halfWidth.applyMatrix4(a),R.halfHeight.applyMatrix4(a),y++}else if(S.isPointLight){const R=s.point[h];R.position.setFromMatrixPosition(S.matrixWorld),R.position.applyMatrix4(g),h++}else if(S.isHemisphereLight){const R=s.hemi[b];R.direction.setFromMatrixPosition(S.matrixWorld),R.direction.transformDirection(g),b++}}}return{setup:c,setupView:d,state:s}}function Rw(n,e){const t=new Hvt(n,e),i=[],s=[];function r(){i.length=0,s.length=0}function o(_){i.push(_)}function a(_){s.push(_)}function c(_){t.setup(i,_)}function d(_){t.setupView(i,_)}return{init:r,state:{lightsArray:i,shadowsArray:s,lights:t},setupLights:c,setupLightsView:d,pushLight:o,pushShadow:a}}function qvt(n,e){let t=new WeakMap;function i(r,o=0){const a=t.get(r);let c;return a===void 0?(c=new Rw(n,e),t.set(r,[c])):o>=a.length?(c=new Rw(n,e),a.push(c)):c=a[o],c}function s(){t=new WeakMap}return{get:i,dispose:s}}class Yvt extends Vi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Mgt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class $vt extends Vi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const Wvt=`void main() {
 	gl_Position = vec4( position, 1.0 );
-}`,jvt=`uniform sampler2D shadow_pass;
+}`,Kvt=`uniform sampler2D shadow_pass;
 uniform vec2 resolution;
 uniform float radius;
 #include <packing>
@@ -3965,12 +3965,12 @@ void main() {
 	squared_mean = squared_mean / samples;
 	float std_dev = sqrt( squared_mean - mean * mean );
 	gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
-}`;function Qvt(n,e,t){let i=new my;const s=new Rt,r=new Rt,o=new $t,a=new $vt({depthPacking:Ogt}),c=new Wvt,d={},u=t.maxTextureSize,_={[Fs]:Zn,[Zn]:Fs,[Ji]:Ji},m=new ho({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:Kvt,fragmentShader:jvt}),h=m.clone();h.defines.HORIZONTAL_PASS=1;const f=new fs;f.setAttribute("position",new zn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new Vn(f,m),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=IN;let g=this.type;this.render=function(R,C,A){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||R.length===0)return;const I=n.getRenderTarget(),x=n.getActiveCubeFace(),M=n.getActiveMipmapLevel(),G=n.state;G.setBlending(gr),G.buffers.color.setClear(1,1,1,1),G.buffers.depth.setTest(!0),G.setScissorTest(!1);const V=g!==xs&&this.type===xs,ee=g===xs&&this.type!==xs;for(let O=0,H=R.length;O<H;O++){const q=R[O],L=q.shadow;if(L===void 0){console.warn("THREE.WebGLShadowMap:",q,"has no shadow.");continue}if(L.autoUpdate===!1&&L.needsUpdate===!1)continue;s.copy(L.mapSize);const Y=L.getFrameExtents();if(s.multiply(Y),r.copy(L.mapSize),(s.x>u||s.y>u)&&(s.x>u&&(r.x=Math.floor(u/Y.x),s.x=r.x*Y.x,L.mapSize.x=r.x),s.y>u&&(r.y=Math.floor(u/Y.y),s.y=r.y*Y.y,L.mapSize.y=r.y)),L.map===null||V===!0||ee===!0){const oe=this.type!==xs?{minFilter:gn,magFilter:gn}:{};L.map!==null&&L.map.dispose(),L.map=new mo(s.x,s.y,oe),L.map.texture.name=q.name+".shadowMap",L.camera.updateProjectionMatrix()}n.setRenderTarget(L.map),n.clear();const ne=L.getViewportCount();for(let oe=0;oe<ne;oe++){const ye=L.getViewport(oe);o.set(r.x*ye.x,r.y*ye.y,r.x*ye.z,r.y*ye.w),G.viewport(o),L.updateMatrices(q,oe),i=L.getFrustum(),S(C,A,L.camera,q,this.type)}L.isPointLightShadow!==!0&&this.type===xs&&E(L,A),L.needsUpdate=!1}g=this.type,b.needsUpdate=!1,n.setRenderTarget(I,x,M)};function E(R,C){const A=e.update(y);m.defines.VSM_SAMPLES!==R.blurSamples&&(m.defines.VSM_SAMPLES=R.blurSamples,h.defines.VSM_SAMPLES=R.blurSamples,m.needsUpdate=!0,h.needsUpdate=!0),R.mapPass===null&&(R.mapPass=new mo(s.x,s.y)),m.uniforms.shadow_pass.value=R.map.texture,m.uniforms.resolution.value=R.mapSize,m.uniforms.radius.value=R.radius,n.setRenderTarget(R.mapPass),n.clear(),n.renderBufferDirect(C,null,A,m,y,null),h.uniforms.shadow_pass.value=R.mapPass.texture,h.uniforms.resolution.value=R.mapSize,h.uniforms.radius.value=R.radius,n.setRenderTarget(R.map),n.clear(),n.renderBufferDirect(C,null,A,h,y,null)}function v(R,C,A,I){let x=null;const M=A.isPointLight===!0?R.customDistanceMaterial:R.customDepthMaterial;if(M!==void 0)x=M;else if(x=A.isPointLight===!0?c:a,n.localClippingEnabled&&C.clipShadows===!0&&Array.isArray(C.clippingPlanes)&&C.clippingPlanes.length!==0||C.displacementMap&&C.displacementScale!==0||C.alphaMap&&C.alphaTest>0||C.map&&C.alphaTest>0){const G=x.uuid,V=C.uuid;let ee=d[G];ee===void 0&&(ee={},d[G]=ee);let O=ee[V];O===void 0&&(O=x.clone(),ee[V]=O),x=O}if(x.visible=C.visible,x.wireframe=C.wireframe,I===xs?x.side=C.shadowSide!==null?C.shadowSide:C.side:x.side=C.shadowSide!==null?C.shadowSide:_[C.side],x.alphaMap=C.alphaMap,x.alphaTest=C.alphaTest,x.map=C.map,x.clipShadows=C.clipShadows,x.clippingPlanes=C.clippingPlanes,x.clipIntersection=C.clipIntersection,x.displacementMap=C.displacementMap,x.displacementScale=C.displacementScale,x.displacementBias=C.displacementBias,x.wireframeLinewidth=C.wireframeLinewidth,x.linewidth=C.linewidth,A.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const G=n.properties.get(x);G.light=A}return x}function S(R,C,A,I,x){if(R.visible===!1)return;if(R.layers.test(C.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&x===xs)&&(!R.frustumCulled||i.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const V=e.update(R),ee=R.material;if(Array.isArray(ee)){const O=V.groups;for(let H=0,q=O.length;H<q;H++){const L=O[H],Y=ee[L.materialIndex];if(Y&&Y.visible){const ne=v(R,Y,I,x);R.onBeforeShadow(n,R,C,A,V,ne,L),n.renderBufferDirect(A,null,V,ne,R,L),R.onAfterShadow(n,R,C,A,V,ne,L)}}}else if(ee.visible){const O=v(R,ee,I,x);R.onBeforeShadow(n,R,C,A,V,O,null),n.renderBufferDirect(A,null,V,O,R,null),R.onAfterShadow(n,R,C,A,V,O,null)}}const G=R.children;for(let V=0,ee=G.length;V<ee;V++)S(G[V],C,A,I,x)}}function Xvt(n,e,t){const i=t.isWebGL2;function s(){let J=!1;const je=new $t;let Ge=null;const Ne=new $t(0,0,0,0);return{setMask:function(qe){Ge!==qe&&!J&&(n.colorMask(qe,qe,qe,qe),Ge=qe)},setLocked:function(qe){J=qe},setClear:function(qe,dt,Nt,dn,wn){wn===!0&&(qe*=dn,dt*=dn,Nt*=dn),je.set(qe,dt,Nt,dn),Ne.equals(je)===!1&&(n.clearColor(qe,dt,Nt,dn),Ne.copy(je))},reset:function(){J=!1,Ge=null,Ne.set(-1,0,0,0)}}}function r(){let J=!1,je=null,Ge=null,Ne=null;return{setTest:function(qe){qe?_e(n.DEPTH_TEST):Ae(n.DEPTH_TEST)},setMask:function(qe){je!==qe&&!J&&(n.depthMask(qe),je=qe)},setFunc:function(qe){if(Ge!==qe){switch(qe){case rgt:n.depthFunc(n.NEVER);break;case ogt:n.depthFunc(n.ALWAYS);break;case agt:n.depthFunc(n.LESS);break;case mu:n.depthFunc(n.LEQUAL);break;case lgt:n.depthFunc(n.EQUAL);break;case cgt:n.depthFunc(n.GEQUAL);break;case dgt:n.depthFunc(n.GREATER);break;case ugt:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}Ge=qe}},setLocked:function(qe){J=qe},setClear:function(qe){Ne!==qe&&(n.clearDepth(qe),Ne=qe)},reset:function(){J=!1,je=null,Ge=null,Ne=null}}}function o(){let J=!1,je=null,Ge=null,Ne=null,qe=null,dt=null,Nt=null,dn=null,wn=null;return{setTest:function(Ht){J||(Ht?_e(n.STENCIL_TEST):Ae(n.STENCIL_TEST))},setMask:function(Ht){je!==Ht&&!J&&(n.stencilMask(Ht),je=Ht)},setFunc:function(Ht,Rn,Oi){(Ge!==Ht||Ne!==Rn||qe!==Oi)&&(n.stencilFunc(Ht,Rn,Oi),Ge=Ht,Ne=Rn,qe=Oi)},setOp:function(Ht,Rn,Oi){(dt!==Ht||Nt!==Rn||dn!==Oi)&&(n.stencilOp(Ht,Rn,Oi),dt=Ht,Nt=Rn,dn=Oi)},setLocked:function(Ht){J=Ht},setClear:function(Ht){wn!==Ht&&(n.clearStencil(Ht),wn=Ht)},reset:function(){J=!1,je=null,Ge=null,Ne=null,qe=null,dt=null,Nt=null,dn=null,wn=null}}}const a=new s,c=new r,d=new o,u=new WeakMap,_=new WeakMap;let m={},h={},f=new WeakMap,y=[],b=null,g=!1,E=null,v=null,S=null,R=null,C=null,A=null,I=null,x=new pt(0,0,0),M=0,G=!1,V=null,ee=null,O=null,H=null,q=null;const L=n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let Y=!1,ne=0;const oe=n.getParameter(n.VERSION);oe.indexOf("WebGL")!==-1?(ne=parseFloat(/^WebGL (\d)/.exec(oe)[1]),Y=ne>=1):oe.indexOf("OpenGL ES")!==-1&&(ne=parseFloat(/^OpenGL ES (\d)/.exec(oe)[1]),Y=ne>=2);let ye=null,xe={};const le=n.getParameter(n.SCISSOR_BOX),ve=n.getParameter(n.VIEWPORT),Oe=new $t().fromArray(le),De=new $t().fromArray(ve);function Q(J,je,Ge,Ne){const qe=new Uint8Array(4),dt=n.createTexture();n.bindTexture(J,dt),n.texParameteri(J,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(J,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Nt=0;Nt<Ge;Nt++)i&&(J===n.TEXTURE_3D||J===n.TEXTURE_2D_ARRAY)?n.texImage3D(je,0,n.RGBA,1,1,Ne,0,n.RGBA,n.UNSIGNED_BYTE,qe):n.texImage2D(je+Nt,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,qe);return dt}const fe={};fe[n.TEXTURE_2D]=Q(n.TEXTURE_2D,n.TEXTURE_2D,1),fe[n.TEXTURE_CUBE_MAP]=Q(n.TEXTURE_CUBE_MAP,n.TEXTURE_CUBE_MAP_POSITIVE_X,6),i&&(fe[n.TEXTURE_2D_ARRAY]=Q(n.TEXTURE_2D_ARRAY,n.TEXTURE_2D_ARRAY,1,1),fe[n.TEXTURE_3D]=Q(n.TEXTURE_3D,n.TEXTURE_3D,1,1)),a.setClear(0,0,0,1),c.setClear(1),d.setClear(0),_e(n.DEPTH_TEST),c.setFunc(mu),he(!1),ae(oC),_e(n.CULL_FACE),ce(gr);function _e(J){m[J]!==!0&&(n.enable(J),m[J]=!0)}function Ae(J){m[J]!==!1&&(n.disable(J),m[J]=!1)}function Fe(J,je){return h[J]!==je?(n.bindFramebuffer(J,je),h[J]=je,i&&(J===n.DRAW_FRAMEBUFFER&&(h[n.FRAMEBUFFER]=je),J===n.FRAMEBUFFER&&(h[n.DRAW_FRAMEBUFFER]=je)),!0):!1}function te(J,je){let Ge=y,Ne=!1;if(J)if(Ge=f.get(je),Ge===void 0&&(Ge=[],f.set(je,Ge)),J.isWebGLMultipleRenderTargets){const qe=J.texture;if(Ge.length!==qe.length||Ge[0]!==n.COLOR_ATTACHMENT0){for(let dt=0,Nt=qe.length;dt<Nt;dt++)Ge[dt]=n.COLOR_ATTACHMENT0+dt;Ge.length=qe.length,Ne=!0}}else Ge[0]!==n.COLOR_ATTACHMENT0&&(Ge[0]=n.COLOR_ATTACHMENT0,Ne=!0);else Ge[0]!==n.BACK&&(Ge[0]=n.BACK,Ne=!0);Ne&&(t.isWebGL2?n.drawBuffers(Ge):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Ge))}function U(J){return b!==J?(n.useProgram(J),b=J,!0):!1}const P={[$r]:n.FUNC_ADD,[qht]:n.FUNC_SUBTRACT,[Yht]:n.FUNC_REVERSE_SUBTRACT};if(i)P[dC]=n.MIN,P[uC]=n.MAX;else{const J=e.get("EXT_blend_minmax");J!==null&&(P[dC]=J.MIN_EXT,P[uC]=J.MAX_EXT)}const Z={[$ht]:n.ZERO,[Wht]:n.ONE,[Kht]:n.SRC_COLOR,[fb]:n.SRC_ALPHA,[egt]:n.SRC_ALPHA_SATURATE,[Zht]:n.DST_COLOR,[Qht]:n.DST_ALPHA,[jht]:n.ONE_MINUS_SRC_COLOR,[_b]:n.ONE_MINUS_SRC_ALPHA,[Jht]:n.ONE_MINUS_DST_COLOR,[Xht]:n.ONE_MINUS_DST_ALPHA,[tgt]:n.CONSTANT_COLOR,[ngt]:n.ONE_MINUS_CONSTANT_COLOR,[igt]:n.CONSTANT_ALPHA,[sgt]:n.ONE_MINUS_CONSTANT_ALPHA};function ce(J,je,Ge,Ne,qe,dt,Nt,dn,wn,Ht){if(J===gr){g===!0&&(Ae(n.BLEND),g=!1);return}if(g===!1&&(_e(n.BLEND),g=!0),J!==Hht){if(J!==E||Ht!==G){if((v!==$r||C!==$r)&&(n.blendEquation(n.FUNC_ADD),v=$r,C=$r),Ht)switch(J){case ra:n.blendFuncSeparate(n.ONE,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case aC:n.blendFunc(n.ONE,n.ONE);break;case lC:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case cC:n.blendFuncSeparate(n.ZERO,n.SRC_COLOR,n.ZERO,n.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",J);break}else switch(J){case ra:n.blendFuncSeparate(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case aC:n.blendFunc(n.SRC_ALPHA,n.ONE);break;case lC:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case cC:n.blendFunc(n.ZERO,n.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",J);break}S=null,R=null,A=null,I=null,x.set(0,0,0),M=0,E=J,G=Ht}return}qe=qe||je,dt=dt||Ge,Nt=Nt||Ne,(je!==v||qe!==C)&&(n.blendEquationSeparate(P[je],P[qe]),v=je,C=qe),(Ge!==S||Ne!==R||dt!==A||Nt!==I)&&(n.blendFuncSeparate(Z[Ge],Z[Ne],Z[dt],Z[Nt]),S=Ge,R=Ne,A=dt,I=Nt),(dn.equals(x)===!1||wn!==M)&&(n.blendColor(dn.r,dn.g,dn.b,wn),x.copy(dn),M=wn),E=J,G=!1}function pe(J,je){J.side===Ji?Ae(n.CULL_FACE):_e(n.CULL_FACE);let Ge=J.side===Zn;je&&(Ge=!Ge),he(Ge),J.blending===ra&&J.transparent===!1?ce(gr):ce(J.blending,J.blendEquation,J.blendSrc,J.blendDst,J.blendEquationAlpha,J.blendSrcAlpha,J.blendDstAlpha,J.blendColor,J.blendAlpha,J.premultipliedAlpha),c.setFunc(J.depthFunc),c.setTest(J.depthTest),c.setMask(J.depthWrite),a.setMask(J.colorWrite);const Ne=J.stencilWrite;d.setTest(Ne),Ne&&(d.setMask(J.stencilWriteMask),d.setFunc(J.stencilFunc,J.stencilRef,J.stencilFuncMask),d.setOp(J.stencilFail,J.stencilZFail,J.stencilZPass)),Re(J.polygonOffset,J.polygonOffsetFactor,J.polygonOffsetUnits),J.alphaToCoverage===!0?_e(n.SAMPLE_ALPHA_TO_COVERAGE):Ae(n.SAMPLE_ALPHA_TO_COVERAGE)}function he(J){V!==J&&(J?n.frontFace(n.CW):n.frontFace(n.CCW),V=J)}function ae(J){J!==Ght?(_e(n.CULL_FACE),J!==ee&&(J===oC?n.cullFace(n.BACK):J===Vht?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):Ae(n.CULL_FACE),ee=J}function Me(J){J!==O&&(Y&&n.lineWidth(J),O=J)}function Re(J,je,Ge){J?(_e(n.POLYGON_OFFSET_FILL),(H!==je||q!==Ge)&&(n.polygonOffset(je,Ge),H=je,q=Ge)):Ae(n.POLYGON_OFFSET_FILL)}function ge(J){J?_e(n.SCISSOR_TEST):Ae(n.SCISSOR_TEST)}function D(J){J===void 0&&(J=n.TEXTURE0+L-1),ye!==J&&(n.activeTexture(J),ye=J)}function N(J,je,Ge){Ge===void 0&&(ye===null?Ge=n.TEXTURE0+L-1:Ge=ye);let Ne=xe[Ge];Ne===void 0&&(Ne={type:void 0,texture:void 0},xe[Ge]=Ne),(Ne.type!==J||Ne.texture!==je)&&(ye!==Ge&&(n.activeTexture(Ge),ye=Ge),n.bindTexture(J,je||fe[J]),Ne.type=J,Ne.texture=je)}function K(){const J=xe[ye];J!==void 0&&J.type!==void 0&&(n.bindTexture(J.type,null),J.type=void 0,J.texture=void 0)}function me(){try{n.compressedTexImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function j(){try{n.compressedTexImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function se(){try{n.texSubImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Ce(){try{n.texSubImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function we(){try{n.compressedTexSubImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function ke(){try{n.compressedTexSubImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function We(){try{n.texStorage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function lt(){try{n.texStorage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Pe(){try{n.texImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Mt(){try{n.texImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function et(J){Oe.equals(J)===!1&&(n.scissor(J.x,J.y,J.z,J.w),Oe.copy(J))}function tt(J){De.equals(J)===!1&&(n.viewport(J.x,J.y,J.z,J.w),De.copy(J))}function ze(J,je){let Ge=_.get(je);Ge===void 0&&(Ge=new WeakMap,_.set(je,Ge));let Ne=Ge.get(J);Ne===void 0&&(Ne=n.getUniformBlockIndex(je,J.name),Ge.set(J,Ne))}function Ke(J,je){const Ne=_.get(je).get(J);u.get(je)!==Ne&&(n.uniformBlockBinding(je,Ne,J.__bindingPointIndex),u.set(je,Ne))}function mt(){n.disable(n.BLEND),n.disable(n.CULL_FACE),n.disable(n.DEPTH_TEST),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SCISSOR_TEST),n.disable(n.STENCIL_TEST),n.disable(n.SAMPLE_ALPHA_TO_COVERAGE),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ZERO),n.blendFuncSeparate(n.ONE,n.ZERO,n.ONE,n.ZERO),n.blendColor(0,0,0,0),n.colorMask(!0,!0,!0,!0),n.clearColor(0,0,0,0),n.depthMask(!0),n.depthFunc(n.LESS),n.clearDepth(1),n.stencilMask(4294967295),n.stencilFunc(n.ALWAYS,0,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),n.clearStencil(0),n.cullFace(n.BACK),n.frontFace(n.CCW),n.polygonOffset(0,0),n.activeTexture(n.TEXTURE0),n.bindFramebuffer(n.FRAMEBUFFER,null),i===!0&&(n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),n.bindFramebuffer(n.READ_FRAMEBUFFER,null)),n.useProgram(null),n.lineWidth(1),n.scissor(0,0,n.canvas.width,n.canvas.height),n.viewport(0,0,n.canvas.width,n.canvas.height),m={},ye=null,xe={},h={},f=new WeakMap,y=[],b=null,g=!1,E=null,v=null,S=null,R=null,C=null,A=null,I=null,x=new pt(0,0,0),M=0,G=!1,V=null,ee=null,O=null,H=null,q=null,Oe.set(0,0,n.canvas.width,n.canvas.height),De.set(0,0,n.canvas.width,n.canvas.height),a.reset(),c.reset(),d.reset()}return{buffers:{color:a,depth:c,stencil:d},enable:_e,disable:Ae,bindFramebuffer:Fe,drawBuffers:te,useProgram:U,setBlending:ce,setMaterial:pe,setFlipSided:he,setCullFace:ae,setLineWidth:Me,setPolygonOffset:Re,setScissorTest:ge,activeTexture:D,bindTexture:N,unbindTexture:K,compressedTexImage2D:me,compressedTexImage3D:j,texImage2D:Pe,texImage3D:Mt,updateUBOMapping:ze,uniformBlockBinding:Ke,texStorage2D:We,texStorage3D:lt,texSubImage2D:se,texSubImage3D:Ce,compressedTexSubImage2D:we,compressedTexSubImage3D:ke,scissor:et,viewport:tt,reset:mt}}function Zvt(n,e,t,i,s,r,o){const a=s.isWebGL2,c=s.maxTextures,d=s.maxCubemapSize,u=s.maxTextureSize,_=s.maxSamples,m=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,h=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let y;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function E(D,N){return g?new OffscreenCanvas(D,N):Zl("canvas")}function v(D,N,K,me){let j=1;if((D.width>me||D.height>me)&&(j=me/Math.max(D.width,D.height)),j<1||N===!0)if(typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&D instanceof ImageBitmap){const se=N?vu:Math.floor,Ce=se(j*D.width),we=se(j*D.height);y===void 0&&(y=E(Ce,we));const ke=K?E(Ce,we):y;return ke.width=Ce,ke.height=we,ke.getContext("2d").drawImage(D,0,0,Ce,we),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+D.width+"x"+D.height+") to ("+Ce+"x"+we+")."),ke}else return"data"in D&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+D.width+"x"+D.height+")."),D;return D}function S(D){return vb(D.width)&&vb(D.height)}function R(D){return a?!1:D.wrapS!==hi||D.wrapT!==hi||D.minFilter!==gn&&D.minFilter!==Wn}function C(D,N){return D.generateMipmaps&&N&&D.minFilter!==gn&&D.minFilter!==Wn}function A(D){n.generateMipmap(D)}function I(D,N,K,me,j=!1){if(a===!1)return N;if(D!==null){if(n[D]!==void 0)return n[D];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+D+"'")}let se=N;if(N===n.RED&&(K===n.FLOAT&&(se=n.R32F),K===n.HALF_FLOAT&&(se=n.R16F),K===n.UNSIGNED_BYTE&&(se=n.R8)),N===n.RED_INTEGER&&(K===n.UNSIGNED_BYTE&&(se=n.R8UI),K===n.UNSIGNED_SHORT&&(se=n.R16UI),K===n.UNSIGNED_INT&&(se=n.R32UI),K===n.BYTE&&(se=n.R8I),K===n.SHORT&&(se=n.R16I),K===n.INT&&(se=n.R32I)),N===n.RG&&(K===n.FLOAT&&(se=n.RG32F),K===n.HALF_FLOAT&&(se=n.RG16F),K===n.UNSIGNED_BYTE&&(se=n.RG8)),N===n.RGBA){const Ce=j?gu:Lt.getTransfer(me);K===n.FLOAT&&(se=n.RGBA32F),K===n.HALF_FLOAT&&(se=n.RGBA16F),K===n.UNSIGNED_BYTE&&(se=Ce===jt?n.SRGB8_ALPHA8:n.RGBA8),K===n.UNSIGNED_SHORT_4_4_4_4&&(se=n.RGBA4),K===n.UNSIGNED_SHORT_5_5_5_1&&(se=n.RGB5_A1)}return(se===n.R16F||se===n.R32F||se===n.RG16F||se===n.RG32F||se===n.RGBA16F||se===n.RGBA32F)&&e.get("EXT_color_buffer_float"),se}function x(D,N,K){return C(D,K)===!0||D.isFramebufferTexture&&D.minFilter!==gn&&D.minFilter!==Wn?Math.log2(Math.max(N.width,N.height))+1:D.mipmaps!==void 0&&D.mipmaps.length>0?D.mipmaps.length:D.isCompressedTexture&&Array.isArray(D.image)?N.mipmaps.length:1}function M(D){return D===gn||D===gb||D===kd?n.NEAREST:n.LINEAR}function G(D){const N=D.target;N.removeEventListener("dispose",G),ee(N),N.isVideoTexture&&f.delete(N)}function V(D){const N=D.target;N.removeEventListener("dispose",V),H(N)}function ee(D){const N=i.get(D);if(N.__webglInit===void 0)return;const K=D.source,me=b.get(K);if(me){const j=me[N.__cacheKey];j.usedTimes--,j.usedTimes===0&&O(D),Object.keys(me).length===0&&b.delete(K)}i.remove(D)}function O(D){const N=i.get(D);n.deleteTexture(N.__webglTexture);const K=D.source,me=b.get(K);delete me[N.__cacheKey],o.memory.textures--}function H(D){const N=D.texture,K=i.get(D),me=i.get(N);if(me.__webglTexture!==void 0&&(n.deleteTexture(me.__webglTexture),o.memory.textures--),D.depthTexture&&D.depthTexture.dispose(),D.isWebGLCubeRenderTarget)for(let j=0;j<6;j++){if(Array.isArray(K.__webglFramebuffer[j]))for(let se=0;se<K.__webglFramebuffer[j].length;se++)n.deleteFramebuffer(K.__webglFramebuffer[j][se]);else n.deleteFramebuffer(K.__webglFramebuffer[j]);K.__webglDepthbuffer&&n.deleteRenderbuffer(K.__webglDepthbuffer[j])}else{if(Array.isArray(K.__webglFramebuffer))for(let j=0;j<K.__webglFramebuffer.length;j++)n.deleteFramebuffer(K.__webglFramebuffer[j]);else n.deleteFramebuffer(K.__webglFramebuffer);if(K.__webglDepthbuffer&&n.deleteRenderbuffer(K.__webglDepthbuffer),K.__webglMultisampledFramebuffer&&n.deleteFramebuffer(K.__webglMultisampledFramebuffer),K.__webglColorRenderbuffer)for(let j=0;j<K.__webglColorRenderbuffer.length;j++)K.__webglColorRenderbuffer[j]&&n.deleteRenderbuffer(K.__webglColorRenderbuffer[j]);K.__webglDepthRenderbuffer&&n.deleteRenderbuffer(K.__webglDepthRenderbuffer)}if(D.isWebGLMultipleRenderTargets)for(let j=0,se=N.length;j<se;j++){const Ce=i.get(N[j]);Ce.__webglTexture&&(n.deleteTexture(Ce.__webglTexture),o.memory.textures--),i.remove(N[j])}i.remove(N),i.remove(D)}let q=0;function L(){q=0}function Y(){const D=q;return D>=c&&console.warn("THREE.WebGLTextures: Trying to use "+D+" texture units while this GPU supports only "+c),q+=1,D}function ne(D){const N=[];return N.push(D.wrapS),N.push(D.wrapT),N.push(D.wrapR||0),N.push(D.magFilter),N.push(D.minFilter),N.push(D.anisotropy),N.push(D.internalFormat),N.push(D.format),N.push(D.type),N.push(D.generateMipmaps),N.push(D.premultiplyAlpha),N.push(D.flipY),N.push(D.unpackAlignment),N.push(D.colorSpace),N.join()}function oe(D,N){const K=i.get(D);if(D.isVideoTexture&&Re(D),D.isRenderTargetTexture===!1&&D.version>0&&K.__version!==D.version){const me=D.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(K,D,N);return}}t.bindTexture(n.TEXTURE_2D,K.__webglTexture,n.TEXTURE0+N)}function ye(D,N){const K=i.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,K.__webglTexture,n.TEXTURE0+N)}function xe(D,N){const K=i.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_3D,K.__webglTexture,n.TEXTURE0+N)}function le(D,N){const K=i.get(D);if(D.version>0&&K.__version!==D.version){Ae(K,D,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,K.__webglTexture,n.TEXTURE0+N)}const ve={[va]:n.REPEAT,[hi]:n.CLAMP_TO_EDGE,[hu]:n.MIRRORED_REPEAT},Oe={[gn]:n.NEAREST,[gb]:n.NEAREST_MIPMAP_NEAREST,[kd]:n.NEAREST_MIPMAP_LINEAR,[Wn]:n.LINEAR,[DN]:n.LINEAR_MIPMAP_NEAREST,[_o]:n.LINEAR_MIPMAP_LINEAR},De={[kgt]:n.NEVER,[Bgt]:n.ALWAYS,[Dgt]:n.LESS,[qN]:n.LEQUAL,[Lgt]:n.EQUAL,[Ugt]:n.GEQUAL,[Pgt]:n.GREATER,[Fgt]:n.NOTEQUAL};function Q(D,N,K){if(K?(n.texParameteri(D,n.TEXTURE_WRAP_S,ve[N.wrapS]),n.texParameteri(D,n.TEXTURE_WRAP_T,ve[N.wrapT]),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,ve[N.wrapR]),n.texParameteri(D,n.TEXTURE_MAG_FILTER,Oe[N.magFilter]),n.texParameteri(D,n.TEXTURE_MIN_FILTER,Oe[N.minFilter])):(n.texParameteri(D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==hi||N.wrapT!==hi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(D,n.TEXTURE_MAG_FILTER,M(N.magFilter)),n.texParameteri(D,n.TEXTURE_MIN_FILTER,M(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Wn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(D,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(D,n.TEXTURE_COMPARE_FUNC,De[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const me=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==kd&&N.minFilter!==_o||N.type===As&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Ql&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(n.texParameterf(D,me.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function fe(D,N){let K=!1;D.__webglInit===void 0&&(D.__webglInit=!0,N.addEventListener("dispose",G));const me=N.source;let j=b.get(me);j===void 0&&(j={},b.set(me,j));const se=ne(N);if(se!==D.__cacheKey){j[se]===void 0&&(j[se]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,K=!0),j[se].usedTimes++;const Ce=j[D.__cacheKey];Ce!==void 0&&(j[D.__cacheKey].usedTimes--,Ce.usedTimes===0&&O(N)),D.__cacheKey=se,D.__webglTexture=j[se].texture}return K}function _e(D,N,K){let me=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(me=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(me=n.TEXTURE_3D);const j=fe(D,N),se=N.source;t.bindTexture(me,D.__webglTexture,n.TEXTURE0+K);const Ce=i.get(se);if(se.version!==Ce.__version||j===!0){t.activeTexture(n.TEXTURE0+K);const we=Lt.getPrimaries(Lt.workingColorSpace),ke=N.colorSpace===bi?null:Lt.getPrimaries(N.colorSpace),We=N.colorSpace===bi||we===ke?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,We);const lt=R(N)&&S(N.image)===!1;let Pe=v(N.image,lt,!1,u);Pe=ge(N,Pe);const Mt=S(Pe)||a,et=r.convert(N.format,N.colorSpace);let tt=r.convert(N.type),ze=I(N.internalFormat,et,tt,N.colorSpace,N.isVideoTexture);Q(me,N,Mt);let Ke;const mt=N.mipmaps,J=a&&N.isVideoTexture!==!0&&ze!==VN,je=Ce.__version===void 0||j===!0,Ge=x(N,Pe,Mt);if(N.isDepthTexture)ze=n.DEPTH_COMPONENT,a?N.type===As?ze=n.DEPTH_COMPONENT32F:N.type===fr?ze=n.DEPTH_COMPONENT24:N.type===no?ze=n.DEPTH24_STENCIL8:ze=n.DEPTH_COMPONENT16:N.type===As&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===io&&ze===n.DEPTH_COMPONENT&&N.type!==uy&&N.type!==fr&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=fr,tt=r.convert(N.type)),N.format===Sa&&ze===n.DEPTH_COMPONENT&&(ze=n.DEPTH_STENCIL,N.type!==no&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=no,tt=r.convert(N.type))),je&&(J?t.texStorage2D(n.TEXTURE_2D,1,ze,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,et,tt,null));else if(N.isDataTexture)if(mt.length>0&&Mt){J&&je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,mt[0].width,mt[0].height);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],J?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,Ke.width,Ke.height,et,tt,Ke.data):t.texImage2D(n.TEXTURE_2D,Ne,ze,Ke.width,Ke.height,0,et,tt,Ke.data);N.generateMipmaps=!1}else J?(je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,Pe.width,Pe.height),t.texSubImage2D(n.TEXTURE_2D,0,0,0,Pe.width,Pe.height,et,tt,Pe.data)):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,et,tt,Pe.data);else if(N.isCompressedTexture)if(N.isCompressedArrayTexture){J&&je&&t.texStorage3D(n.TEXTURE_2D_ARRAY,Ge,ze,mt[0].width,mt[0].height,Pe.depth);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],N.format!==gi?et!==null?J?t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Ne,0,0,0,Ke.width,Ke.height,Pe.depth,et,Ke.data,0,0):t.compressedTexImage3D(n.TEXTURE_2D_ARRAY,Ne,ze,Ke.width,Ke.height,Pe.depth,0,Ke.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):J?t.texSubImage3D(n.TEXTURE_2D_ARRAY,Ne,0,0,0,Ke.width,Ke.height,Pe.depth,et,tt,Ke.data):t.texImage3D(n.TEXTURE_2D_ARRAY,Ne,ze,Ke.width,Ke.height,Pe.depth,0,et,tt,Ke.data)}else{J&&je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,mt[0].width,mt[0].height);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],N.format!==gi?et!==null?J?t.compressedTexSubImage2D(n.TEXTURE_2D,Ne,0,0,Ke.width,Ke.height,et,Ke.data):t.compressedTexImage2D(n.TEXTURE_2D,Ne,ze,Ke.width,Ke.height,0,Ke.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):J?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,Ke.width,Ke.height,et,tt,Ke.data):t.texImage2D(n.TEXTURE_2D,Ne,ze,Ke.width,Ke.height,0,et,tt,Ke.data)}else if(N.isDataArrayTexture)J?(je&&t.texStorage3D(n.TEXTURE_2D_ARRAY,Ge,ze,Pe.width,Pe.height,Pe.depth),t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,0,Pe.width,Pe.height,Pe.depth,et,tt,Pe.data)):t.texImage3D(n.TEXTURE_2D_ARRAY,0,ze,Pe.width,Pe.height,Pe.depth,0,et,tt,Pe.data);else if(N.isData3DTexture)J?(je&&t.texStorage3D(n.TEXTURE_3D,Ge,ze,Pe.width,Pe.height,Pe.depth),t.texSubImage3D(n.TEXTURE_3D,0,0,0,0,Pe.width,Pe.height,Pe.depth,et,tt,Pe.data)):t.texImage3D(n.TEXTURE_3D,0,ze,Pe.width,Pe.height,Pe.depth,0,et,tt,Pe.data);else if(N.isFramebufferTexture){if(je)if(J)t.texStorage2D(n.TEXTURE_2D,Ge,ze,Pe.width,Pe.height);else{let Ne=Pe.width,qe=Pe.height;for(let dt=0;dt<Ge;dt++)t.texImage2D(n.TEXTURE_2D,dt,ze,Ne,qe,0,et,tt,null),Ne>>=1,qe>>=1}}else if(mt.length>0&&Mt){J&&je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,mt[0].width,mt[0].height);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],J?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,et,tt,Ke):t.texImage2D(n.TEXTURE_2D,Ne,ze,et,tt,Ke);N.generateMipmaps=!1}else J?(je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,Pe.width,Pe.height),t.texSubImage2D(n.TEXTURE_2D,0,0,0,et,tt,Pe)):t.texImage2D(n.TEXTURE_2D,0,ze,et,tt,Pe);C(N,Mt)&&A(me),Ce.__version=se.version,N.onUpdate&&N.onUpdate(N)}D.__version=N.version}function Ae(D,N,K){if(N.image.length!==6)return;const me=fe(D,N),j=N.source;t.bindTexture(n.TEXTURE_CUBE_MAP,D.__webglTexture,n.TEXTURE0+K);const se=i.get(j);if(j.version!==se.__version||me===!0){t.activeTexture(n.TEXTURE0+K);const Ce=Lt.getPrimaries(Lt.workingColorSpace),we=N.colorSpace===bi?null:Lt.getPrimaries(N.colorSpace),ke=N.colorSpace===bi||Ce===we?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,ke);const We=N.isCompressedTexture||N.image[0].isCompressedTexture,lt=N.image[0]&&N.image[0].isDataTexture,Pe=[];for(let Ne=0;Ne<6;Ne++)!We&&!lt?Pe[Ne]=v(N.image[Ne],!1,!0,d):Pe[Ne]=lt?N.image[Ne].image:N.image[Ne],Pe[Ne]=ge(N,Pe[Ne]);const Mt=Pe[0],et=S(Mt)||a,tt=r.convert(N.format,N.colorSpace),ze=r.convert(N.type),Ke=I(N.internalFormat,tt,ze,N.colorSpace),mt=a&&N.isVideoTexture!==!0,J=se.__version===void 0||me===!0;let je=x(N,Mt,et);Q(n.TEXTURE_CUBE_MAP,N,et);let Ge;if(We){mt&&J&&t.texStorage2D(n.TEXTURE_CUBE_MAP,je,Ke,Mt.width,Mt.height);for(let Ne=0;Ne<6;Ne++){Ge=Pe[Ne].mipmaps;for(let qe=0;qe<Ge.length;qe++){const dt=Ge[qe];N.format!==gi?tt!==null?mt?t.compressedTexSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,0,0,dt.width,dt.height,tt,dt.data):t.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,Ke,dt.width,dt.height,0,dt.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,0,0,dt.width,dt.height,tt,ze,dt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,Ke,dt.width,dt.height,0,tt,ze,dt.data)}}}else{Ge=N.mipmaps,mt&&J&&(Ge.length>0&&je++,t.texStorage2D(n.TEXTURE_CUBE_MAP,je,Ke,Pe[0].width,Pe[0].height));for(let Ne=0;Ne<6;Ne++)if(lt){mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Pe[Ne].width,Pe[Ne].height,tt,ze,Pe[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,Ke,Pe[Ne].width,Pe[Ne].height,0,tt,ze,Pe[Ne].data);for(let qe=0;qe<Ge.length;qe++){const Nt=Ge[qe].image[Ne].image;mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,0,0,Nt.width,Nt.height,tt,ze,Nt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,Ke,Nt.width,Nt.height,0,tt,ze,Nt.data)}}else{mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,tt,ze,Pe[Ne]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,Ke,tt,ze,Pe[Ne]);for(let qe=0;qe<Ge.length;qe++){const dt=Ge[qe];mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,0,0,tt,ze,dt.image[Ne]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,Ke,tt,ze,dt.image[Ne])}}}C(N,et)&&A(n.TEXTURE_CUBE_MAP),se.__version=j.version,N.onUpdate&&N.onUpdate(N)}D.__version=N.version}function Fe(D,N,K,me,j,se){const Ce=r.convert(K.format,K.colorSpace),we=r.convert(K.type),ke=I(K.internalFormat,Ce,we,K.colorSpace);if(!i.get(N).__hasExternalTextures){const lt=Math.max(1,N.width>>se),Pe=Math.max(1,N.height>>se);j===n.TEXTURE_3D||j===n.TEXTURE_2D_ARRAY?t.texImage3D(j,se,ke,lt,Pe,N.depth,0,Ce,we,null):t.texImage2D(j,se,ke,lt,Pe,0,Ce,we,null)}t.bindFramebuffer(n.FRAMEBUFFER,D),Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,me,j,i.get(K).__webglTexture,0,ae(N)):(j===n.TEXTURE_2D||j>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&j<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,me,j,i.get(K).__webglTexture,se),t.bindFramebuffer(n.FRAMEBUFFER,null)}function te(D,N,K){if(n.bindRenderbuffer(n.RENDERBUFFER,D),N.depthBuffer&&!N.stencilBuffer){let me=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(K||Me(N)){const j=N.depthTexture;j&&j.isDepthTexture&&(j.type===As?me=n.DEPTH_COMPONENT32F:j.type===fr&&(me=n.DEPTH_COMPONENT24));const se=ae(N);Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,se,me,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,se,me,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,me,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,D)}else if(N.depthBuffer&&N.stencilBuffer){const me=ae(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,D)}else{const me=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let j=0;j<me.length;j++){const se=me[j],Ce=r.convert(se.format,se.colorSpace),we=r.convert(se.type),ke=I(se.internalFormat,Ce,we,se.colorSpace),We=ae(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,We,ke,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,We,ke,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,ke,N.width,N.height)}}n.bindRenderbuffer(n.RENDERBUFFER,null)}function U(D,N){if(N&&N.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(n.FRAMEBUFFER,D),!(N.depthTexture&&N.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(N.depthTexture).__webglTexture||N.depthTexture.image.width!==N.width||N.depthTexture.image.height!==N.height)&&(N.depthTexture.image.width=N.width,N.depthTexture.image.height=N.height,N.depthTexture.needsUpdate=!0),oe(N.depthTexture,0);const me=i.get(N.depthTexture).__webglTexture,j=ae(N);if(N.depthTexture.format===io)Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,me,0,j):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,me,0);else if(N.depthTexture.format===Sa)Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,me,0,j):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,me,0);else throw new Error("Unknown depthTexture format")}function P(D){const N=i.get(D),K=D.isWebGLCubeRenderTarget===!0;if(D.depthTexture&&!N.__autoAllocateDepthBuffer){if(K)throw new Error("target.depthTexture not supported in Cube render targets");U(N.__webglFramebuffer,D)}else if(K){N.__webglDepthbuffer=[];for(let me=0;me<6;me++)t.bindFramebuffer(n.FRAMEBUFFER,N.__webglFramebuffer[me]),N.__webglDepthbuffer[me]=n.createRenderbuffer(),te(N.__webglDepthbuffer[me],D,!1)}else t.bindFramebuffer(n.FRAMEBUFFER,N.__webglFramebuffer),N.__webglDepthbuffer=n.createRenderbuffer(),te(N.__webglDepthbuffer,D,!1);t.bindFramebuffer(n.FRAMEBUFFER,null)}function Z(D,N,K){const me=i.get(D);N!==void 0&&Fe(me.__webglFramebuffer,D,D.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,0),K!==void 0&&P(D)}function ce(D){const N=D.texture,K=i.get(D),me=i.get(N);D.addEventListener("dispose",V),D.isWebGLMultipleRenderTargets!==!0&&(me.__webglTexture===void 0&&(me.__webglTexture=n.createTexture()),me.__version=N.version,o.memory.textures++);const j=D.isWebGLCubeRenderTarget===!0,se=D.isWebGLMultipleRenderTargets===!0,Ce=S(D)||a;if(j){K.__webglFramebuffer=[];for(let we=0;we<6;we++)if(a&&N.mipmaps&&N.mipmaps.length>0){K.__webglFramebuffer[we]=[];for(let ke=0;ke<N.mipmaps.length;ke++)K.__webglFramebuffer[we][ke]=n.createFramebuffer()}else K.__webglFramebuffer[we]=n.createFramebuffer()}else{if(a&&N.mipmaps&&N.mipmaps.length>0){K.__webglFramebuffer=[];for(let we=0;we<N.mipmaps.length;we++)K.__webglFramebuffer[we]=n.createFramebuffer()}else K.__webglFramebuffer=n.createFramebuffer();if(se)if(s.drawBuffers){const we=D.texture;for(let ke=0,We=we.length;ke<We;ke++){const lt=i.get(we[ke]);lt.__webglTexture===void 0&&(lt.__webglTexture=n.createTexture(),o.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(a&&D.samples>0&&Me(D)===!1){const we=se?N:[N];K.__webglMultisampledFramebuffer=n.createFramebuffer(),K.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,K.__webglMultisampledFramebuffer);for(let ke=0;ke<we.length;ke++){const We=we[ke];K.__webglColorRenderbuffer[ke]=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,K.__webglColorRenderbuffer[ke]);const lt=r.convert(We.format,We.colorSpace),Pe=r.convert(We.type),Mt=I(We.internalFormat,lt,Pe,We.colorSpace,D.isXRRenderTarget===!0),et=ae(D);n.renderbufferStorageMultisample(n.RENDERBUFFER,et,Mt,D.width,D.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+ke,n.RENDERBUFFER,K.__webglColorRenderbuffer[ke])}n.bindRenderbuffer(n.RENDERBUFFER,null),D.depthBuffer&&(K.__webglDepthRenderbuffer=n.createRenderbuffer(),te(K.__webglDepthRenderbuffer,D,!0)),t.bindFramebuffer(n.FRAMEBUFFER,null)}}if(j){t.bindTexture(n.TEXTURE_CUBE_MAP,me.__webglTexture),Q(n.TEXTURE_CUBE_MAP,N,Ce);for(let we=0;we<6;we++)if(a&&N.mipmaps&&N.mipmaps.length>0)for(let ke=0;ke<N.mipmaps.length;ke++)Fe(K.__webglFramebuffer[we][ke],D,N,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+we,ke);else Fe(K.__webglFramebuffer[we],D,N,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+we,0);C(N,Ce)&&A(n.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(se){const we=D.texture;for(let ke=0,We=we.length;ke<We;ke++){const lt=we[ke],Pe=i.get(lt);t.bindTexture(n.TEXTURE_2D,Pe.__webglTexture),Q(n.TEXTURE_2D,lt,Ce),Fe(K.__webglFramebuffer,D,lt,n.COLOR_ATTACHMENT0+ke,n.TEXTURE_2D,0),C(lt,Ce)&&A(n.TEXTURE_2D)}t.unbindTexture()}else{let we=n.TEXTURE_2D;if((D.isWebGL3DRenderTarget||D.isWebGLArrayRenderTarget)&&(a?we=D.isWebGL3DRenderTarget?n.TEXTURE_3D:n.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),t.bindTexture(we,me.__webglTexture),Q(we,N,Ce),a&&N.mipmaps&&N.mipmaps.length>0)for(let ke=0;ke<N.mipmaps.length;ke++)Fe(K.__webglFramebuffer[ke],D,N,n.COLOR_ATTACHMENT0,we,ke);else Fe(K.__webglFramebuffer,D,N,n.COLOR_ATTACHMENT0,we,0);C(N,Ce)&&A(we),t.unbindTexture()}D.depthBuffer&&P(D)}function pe(D){const N=S(D)||a,K=D.isWebGLMultipleRenderTargets===!0?D.texture:[D.texture];for(let me=0,j=K.length;me<j;me++){const se=K[me];if(C(se,N)){const Ce=D.isWebGLCubeRenderTarget?n.TEXTURE_CUBE_MAP:n.TEXTURE_2D,we=i.get(se).__webglTexture;t.bindTexture(Ce,we),A(Ce),t.unbindTexture()}}}function he(D){if(a&&D.samples>0&&Me(D)===!1){const N=D.isWebGLMultipleRenderTargets?D.texture:[D.texture],K=D.width,me=D.height;let j=n.COLOR_BUFFER_BIT;const se=[],Ce=D.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,we=i.get(D),ke=D.isWebGLMultipleRenderTargets===!0;if(ke)for(let We=0;We<N.length;We++)t.bindFramebuffer(n.FRAMEBUFFER,we.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.RENDERBUFFER,null),t.bindFramebuffer(n.FRAMEBUFFER,we.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.TEXTURE_2D,null,0);t.bindFramebuffer(n.READ_FRAMEBUFFER,we.__webglMultisampledFramebuffer),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,we.__webglFramebuffer);for(let We=0;We<N.length;We++){se.push(n.COLOR_ATTACHMENT0+We),D.depthBuffer&&se.push(Ce);const lt=we.__ignoreDepthValues!==void 0?we.__ignoreDepthValues:!1;if(lt===!1&&(D.depthBuffer&&(j|=n.DEPTH_BUFFER_BIT),D.stencilBuffer&&(j|=n.STENCIL_BUFFER_BIT)),ke&&n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,we.__webglColorRenderbuffer[We]),lt===!0&&(n.invalidateFramebuffer(n.READ_FRAMEBUFFER,[Ce]),n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,[Ce])),ke){const Pe=i.get(N[We]).__webglTexture;n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,Pe,0)}n.blitFramebuffer(0,0,K,me,0,0,K,me,j,n.NEAREST),h&&n.invalidateFramebuffer(n.READ_FRAMEBUFFER,se)}if(t.bindFramebuffer(n.READ_FRAMEBUFFER,null),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),ke)for(let We=0;We<N.length;We++){t.bindFramebuffer(n.FRAMEBUFFER,we.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.RENDERBUFFER,we.__webglColorRenderbuffer[We]);const lt=i.get(N[We]).__webglTexture;t.bindFramebuffer(n.FRAMEBUFFER,we.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.TEXTURE_2D,lt,0)}t.bindFramebuffer(n.DRAW_FRAMEBUFFER,we.__webglMultisampledFramebuffer)}}function ae(D){return Math.min(_,D.samples)}function Me(D){const N=i.get(D);return a&&D.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function Re(D){const N=o.render.frame;f.get(D)!==N&&(f.set(D,N),D.update())}function ge(D,N){const K=D.colorSpace,me=D.format,j=D.type;return D.isCompressedTexture===!0||D.isVideoTexture===!0||D.format===Eb||K!==Cn&&K!==bi&&(Lt.getTransfer(K)===jt?a===!1?e.has("EXT_sRGB")===!0&&me===gi?(D.format=Eb,D.minFilter=Wn,D.generateMipmaps=!1):N=$N.sRGBToLinear(N):(me!==gi||j!==yr)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",K)),N}this.allocateTextureUnit=Y,this.resetTextureUnits=L,this.setTexture2D=oe,this.setTexture2DArray=ye,this.setTexture3D=xe,this.setTextureCube=le,this.rebindTextures=Z,this.setupRenderTarget=ce,this.updateRenderTargetMipmap=pe,this.updateMultisampleRenderTarget=he,this.setupDepthRenderbuffer=P,this.setupFrameBufferTexture=Fe,this.useMultisampledRTT=Me}function Jvt(n,e,t){const i=t.isWebGL2;function s(r,o=bi){let a;const c=Lt.getTransfer(o);if(r===yr)return n.UNSIGNED_BYTE;if(r===PN)return n.UNSIGNED_SHORT_4_4_4_4;if(r===FN)return n.UNSIGNED_SHORT_5_5_5_1;if(r===Egt)return n.BYTE;if(r===vgt)return n.SHORT;if(r===uy)return n.UNSIGNED_SHORT;if(r===LN)return n.INT;if(r===fr)return n.UNSIGNED_INT;if(r===As)return n.FLOAT;if(r===Ql)return i?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===Sgt)return n.ALPHA;if(r===gi)return n.RGBA;if(r===Tgt)return n.LUMINANCE;if(r===xgt)return n.LUMINANCE_ALPHA;if(r===io)return n.DEPTH_COMPONENT;if(r===Sa)return n.DEPTH_STENCIL;if(r===Eb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===Cgt)return n.RED;if(r===UN)return n.RED_INTEGER;if(r===wgt)return n.RG;if(r===BN)return n.RG_INTEGER;if(r===GN)return n.RGBA_INTEGER;if(r===qh||r===Yh||r===$h||r===Wh)if(c===jt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===qh)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===Yh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===$h)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Wh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===qh)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===Yh)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===$h)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Wh)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===fC||r===_C||r===mC||r===hC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===fC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===_C)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===mC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===hC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===VN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===gC||r===bC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===gC)return c===jt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===bC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===yC||r===EC||r===vC||r===SC||r===TC||r===xC||r===CC||r===wC||r===RC||r===AC||r===MC||r===NC||r===OC||r===IC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===yC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===EC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===vC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===SC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===TC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===xC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===CC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===wC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===RC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===AC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===MC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===NC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===OC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===IC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Kh||r===kC||r===DC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Kh)return c===jt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===kC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===DC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===Rgt||r===LC||r===PC||r===FC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Kh)return a.COMPRESSED_RED_RGTC1_EXT;if(r===LC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===PC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===FC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===no?i?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:s}}class eSt extends Gn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Qr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const tSt={type:"move"};class bg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Qr,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Qr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new re,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new re),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Qr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new re,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new re),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let s=null,r=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const y of e.hand.values()){const b=t.getJointPose(y,i),g=this._getHandJoint(d,y);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const u=d.joints["index-finger-tip"],_=d.joints["thumb-tip"],m=u.position.distanceTo(_.position),h=.02,f=.005;d.inputState.pinching&&m>h+f?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&m<=h-f&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,i),r!==null&&(c.matrix.fromArray(r.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,r.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(r.linearVelocity)):c.hasLinearVelocity=!1,r.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(r.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(tSt)))}return a!==null&&(a.visible=s!==null),c!==null&&(c.visible=r!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new Qr;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class nSt extends Ha{constructor(e,t){super();const i=this;let s=null,r=1,o=null,a="local-floor",c=1,d=null,u=null,_=null,m=null,h=null,f=null;const y=t.getContextAttributes();let b=null,g=null;const E=[],v=[],S=new Rt;let R=null;const C=new Gn;C.layers.enable(1),C.viewport=new $t;const A=new Gn;A.layers.enable(2),A.viewport=new $t;const I=[C,A],x=new eSt;x.layers.enable(1),x.layers.enable(2);let M=null,G=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(le){let ve=E[le];return ve===void 0&&(ve=new bg,E[le]=ve),ve.getTargetRaySpace()},this.getControllerGrip=function(le){let ve=E[le];return ve===void 0&&(ve=new bg,E[le]=ve),ve.getGripSpace()},this.getHand=function(le){let ve=E[le];return ve===void 0&&(ve=new bg,E[le]=ve),ve.getHandSpace()};function V(le){const ve=v.indexOf(le.inputSource);if(ve===-1)return;const Oe=E[ve];Oe!==void 0&&(Oe.update(le.inputSource,le.frame,d||o),Oe.dispatchEvent({type:le.type,data:le.inputSource}))}function ee(){s.removeEventListener("select",V),s.removeEventListener("selectstart",V),s.removeEventListener("selectend",V),s.removeEventListener("squeeze",V),s.removeEventListener("squeezestart",V),s.removeEventListener("squeezeend",V),s.removeEventListener("end",ee),s.removeEventListener("inputsourceschange",O);for(let le=0;le<E.length;le++){const ve=v[le];ve!==null&&(v[le]=null,E[le].disconnect(ve))}M=null,G=null,e.setRenderTarget(b),h=null,m=null,_=null,s=null,g=null,xe.stop(),i.isPresenting=!1,e.setPixelRatio(R),e.setSize(S.width,S.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(le){r=le,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(le){a=le,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return d||o},this.setReferenceSpace=function(le){d=le},this.getBaseLayer=function(){return m!==null?m:h},this.getBinding=function(){return _},this.getFrame=function(){return f},this.getSession=function(){return s},this.setSession=async function(le){if(s=le,s!==null){if(b=e.getRenderTarget(),s.addEventListener("select",V),s.addEventListener("selectstart",V),s.addEventListener("selectend",V),s.addEventListener("squeeze",V),s.addEventListener("squeezestart",V),s.addEventListener("squeezeend",V),s.addEventListener("end",ee),s.addEventListener("inputsourceschange",O),y.xrCompatible!==!0&&await t.makeXRCompatible(),R=e.getPixelRatio(),e.getSize(S),s.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const ve={antialias:s.renderState.layers===void 0?y.antialias:!0,alpha:!0,depth:y.depth,stencil:y.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(s,t,ve),s.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),g=new mo(h.framebufferWidth,h.framebufferHeight,{format:gi,type:yr,colorSpace:e.outputColorSpace,stencilBuffer:y.stencil})}else{let ve=null,Oe=null,De=null;y.depth&&(De=y.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,ve=y.stencil?Sa:io,Oe=y.stencil?no:fr);const Q={colorFormat:t.RGBA8,depthFormat:De,scaleFactor:r};_=new XRWebGLBinding(s,t),m=_.createProjectionLayer(Q),s.updateRenderState({layers:[m]}),e.setPixelRatio(1),e.setSize(m.textureWidth,m.textureHeight,!1),g=new mo(m.textureWidth,m.textureHeight,{format:gi,type:yr,depthTexture:new iO(m.textureWidth,m.textureHeight,Oe,void 0,void 0,void 0,void 0,void 0,void 0,ve),stencilBuffer:y.stencil,colorSpace:e.outputColorSpace,samples:y.antialias?4:0});const fe=e.properties.get(g);fe.__ignoreDepthValues=m.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(c),d=null,o=await s.requestReferenceSpace(a),xe.setContext(s),xe.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(s!==null)return s.environmentBlendMode};function O(le){for(let ve=0;ve<le.removed.length;ve++){const Oe=le.removed[ve],De=v.indexOf(Oe);De>=0&&(v[De]=null,E[De].disconnect(Oe))}for(let ve=0;ve<le.added.length;ve++){const Oe=le.added[ve];let De=v.indexOf(Oe);if(De===-1){for(let fe=0;fe<E.length;fe++)if(fe>=v.length){v.push(Oe),De=fe;break}else if(v[fe]===null){v[fe]=Oe,De=fe;break}if(De===-1)break}const Q=E[De];Q&&Q.connect(Oe)}}const H=new re,q=new re;function L(le,ve,Oe){H.setFromMatrixPosition(ve.matrixWorld),q.setFromMatrixPosition(Oe.matrixWorld);const De=H.distanceTo(q),Q=ve.projectionMatrix.elements,fe=Oe.projectionMatrix.elements,_e=Q[14]/(Q[10]-1),Ae=Q[14]/(Q[10]+1),Fe=(Q[9]+1)/Q[5],te=(Q[9]-1)/Q[5],U=(Q[8]-1)/Q[0],P=(fe[8]+1)/fe[0],Z=_e*U,ce=_e*P,pe=De/(-U+P),he=pe*-U;ve.matrixWorld.decompose(le.position,le.quaternion,le.scale),le.translateX(he),le.translateZ(pe),le.matrixWorld.compose(le.position,le.quaternion,le.scale),le.matrixWorldInverse.copy(le.matrixWorld).invert();const ae=_e+pe,Me=Ae+pe,Re=Z-he,ge=ce+(De-he),D=Fe*Ae/Me*ae,N=te*Ae/Me*ae;le.projectionMatrix.makePerspective(Re,ge,D,N,ae,Me),le.projectionMatrixInverse.copy(le.projectionMatrix).invert()}function Y(le,ve){ve===null?le.matrixWorld.copy(le.matrix):le.matrixWorld.multiplyMatrices(ve.matrixWorld,le.matrix),le.matrixWorldInverse.copy(le.matrixWorld).invert()}this.updateCamera=function(le){if(s===null)return;x.near=A.near=C.near=le.near,x.far=A.far=C.far=le.far,(M!==x.near||G!==x.far)&&(s.updateRenderState({depthNear:x.near,depthFar:x.far}),M=x.near,G=x.far);const ve=le.parent,Oe=x.cameras;Y(x,ve);for(let De=0;De<Oe.length;De++)Y(Oe[De],ve);Oe.length===2?L(x,C,A):x.projectionMatrix.copy(C.projectionMatrix),ne(le,x,ve)};function ne(le,ve,Oe){Oe===null?le.matrix.copy(ve.matrixWorld):(le.matrix.copy(Oe.matrixWorld),le.matrix.invert(),le.matrix.multiply(ve.matrixWorld)),le.matrix.decompose(le.position,le.quaternion,le.scale),le.updateMatrixWorld(!0),le.projectionMatrix.copy(ve.projectionMatrix),le.projectionMatrixInverse.copy(ve.projectionMatrixInverse),le.isPerspectiveCamera&&(le.fov=xa*2*Math.atan(1/le.projectionMatrix.elements[5]),le.zoom=1)}this.getCamera=function(){return x},this.getFoveation=function(){if(!(m===null&&h===null))return c},this.setFoveation=function(le){c=le,m!==null&&(m.fixedFoveation=le),h!==null&&h.fixedFoveation!==void 0&&(h.fixedFoveation=le)};let oe=null;function ye(le,ve){if(u=ve.getViewerPose(d||o),f=ve,u!==null){const Oe=u.views;h!==null&&(e.setRenderTargetFramebuffer(g,h.framebuffer),e.setRenderTarget(g));let De=!1;Oe.length!==x.cameras.length&&(x.cameras.length=0,De=!0);for(let Q=0;Q<Oe.length;Q++){const fe=Oe[Q];let _e=null;if(h!==null)_e=h.getViewport(fe);else{const Fe=_.getViewSubImage(m,fe);_e=Fe.viewport,Q===0&&(e.setRenderTargetTextures(g,Fe.colorTexture,m.ignoreDepthValues?void 0:Fe.depthStencilTexture),e.setRenderTarget(g))}let Ae=I[Q];Ae===void 0&&(Ae=new Gn,Ae.layers.enable(Q),Ae.viewport=new $t,I[Q]=Ae),Ae.matrix.fromArray(fe.transform.matrix),Ae.matrix.decompose(Ae.position,Ae.quaternion,Ae.scale),Ae.projectionMatrix.fromArray(fe.projectionMatrix),Ae.projectionMatrixInverse.copy(Ae.projectionMatrix).invert(),Ae.viewport.set(_e.x,_e.y,_e.width,_e.height),Q===0&&(x.matrix.copy(Ae.matrix),x.matrix.decompose(x.position,x.quaternion,x.scale)),De===!0&&x.cameras.push(Ae)}}for(let Oe=0;Oe<E.length;Oe++){const De=v[Oe],Q=E[Oe];De!==null&&Q!==void 0&&Q.update(De,ve,d||o)}oe&&oe(le,ve),ve.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:ve}),f=null}const xe=new nO;xe.setAnimationLoop(ye),this.setAnimationLoop=function(le){oe=le},this.dispose=function(){}}}function iSt(n,e){function t(b,g){b.matrixAutoUpdate===!0&&b.updateMatrix(),g.value.copy(b.matrix)}function i(b,g){g.color.getRGB(b.fogColor.value,JN(n)),g.isFog?(b.fogNear.value=g.near,b.fogFar.value=g.far):g.isFogExp2&&(b.fogDensity.value=g.density)}function s(b,g,E,v,S){g.isMeshBasicMaterial||g.isMeshLambertMaterial?r(b,g):g.isMeshToonMaterial?(r(b,g),_(b,g)):g.isMeshPhongMaterial?(r(b,g),u(b,g)):g.isMeshStandardMaterial?(r(b,g),m(b,g),g.isMeshPhysicalMaterial&&h(b,g,S)):g.isMeshMatcapMaterial?(r(b,g),f(b,g)):g.isMeshDepthMaterial?r(b,g):g.isMeshDistanceMaterial?(r(b,g),y(b,g)):g.isMeshNormalMaterial?r(b,g):g.isLineBasicMaterial?(o(b,g),g.isLineDashedMaterial&&a(b,g)):g.isPointsMaterial?c(b,g,E,v):g.isSpriteMaterial?d(b,g):g.isShadowMaterial?(b.color.value.copy(g.color),b.opacity.value=g.opacity):g.isShaderMaterial&&(g.uniformsNeedUpdate=!1)}function r(b,g){b.opacity.value=g.opacity,g.color&&b.diffuse.value.copy(g.color),g.emissive&&b.emissive.value.copy(g.emissive).multiplyScalar(g.emissiveIntensity),g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.bumpMap&&(b.bumpMap.value=g.bumpMap,t(g.bumpMap,b.bumpMapTransform),b.bumpScale.value=g.bumpScale,g.side===Zn&&(b.bumpScale.value*=-1)),g.normalMap&&(b.normalMap.value=g.normalMap,t(g.normalMap,b.normalMapTransform),b.normalScale.value.copy(g.normalScale),g.side===Zn&&b.normalScale.value.negate()),g.displacementMap&&(b.displacementMap.value=g.displacementMap,t(g.displacementMap,b.displacementMapTransform),b.displacementScale.value=g.displacementScale,b.displacementBias.value=g.displacementBias),g.emissiveMap&&(b.emissiveMap.value=g.emissiveMap,t(g.emissiveMap,b.emissiveMapTransform)),g.specularMap&&(b.specularMap.value=g.specularMap,t(g.specularMap,b.specularMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest);const E=e.get(g).envMap;if(E&&(b.envMap.value=E,b.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const v=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*v,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function c(b,g,E,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*E,b.scale.value=v*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function _(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function m(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function h(b,g,E){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Zn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=E.texture,b.transmissionSamplerSize.value.set(E.width,E.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function f(b,g){g.matcap&&(b.matcap.value=g.matcap)}function y(b,g){const E=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(E.matrixWorld),b.nearDistance.value=E.shadow.camera.near,b.farDistance.value=E.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function sSt(n,e,t,i){let s={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(E,v){const S=v.program;i.uniformBlockBinding(E,S)}function d(E,v){let S=s[E.id];S===void 0&&(f(E),S=u(E),s[E.id]=S,E.addEventListener("dispose",b));const R=v.program;i.updateUBOMapping(E,R);const C=e.render.frame;r[E.id]!==C&&(m(E),r[E.id]=C)}function u(E){const v=_();E.__bindingPointIndex=v;const S=n.createBuffer(),R=E.__size,C=E.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,R,C),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,v,S),S}function _(){for(let E=0;E<a;E++)if(o.indexOf(E)===-1)return o.push(E),E;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function m(E){const v=s[E.id],S=E.uniforms,R=E.__cache;n.bindBuffer(n.UNIFORM_BUFFER,v);for(let C=0,A=S.length;C<A;C++){const I=S[C];if(h(I,C,R)===!0){const x=I.__offset,M=Array.isArray(I.value)?I.value:[I.value];let G=0;for(let V=0;V<M.length;V++){const ee=M[V],O=y(ee);typeof ee=="number"?(I.__data[0]=ee,n.bufferSubData(n.UNIFORM_BUFFER,x+G,I.__data)):ee.isMatrix3?(I.__data[0]=ee.elements[0],I.__data[1]=ee.elements[1],I.__data[2]=ee.elements[2],I.__data[3]=ee.elements[0],I.__data[4]=ee.elements[3],I.__data[5]=ee.elements[4],I.__data[6]=ee.elements[5],I.__data[7]=ee.elements[0],I.__data[8]=ee.elements[6],I.__data[9]=ee.elements[7],I.__data[10]=ee.elements[8],I.__data[11]=ee.elements[0]):(ee.toArray(I.__data,G),G+=O.storage/Float32Array.BYTES_PER_ELEMENT)}n.bufferSubData(n.UNIFORM_BUFFER,x,I.__data)}}n.bindBuffer(n.UNIFORM_BUFFER,null)}function h(E,v,S){const R=E.value;if(S[v]===void 0){if(typeof R=="number")S[v]=R;else{const C=Array.isArray(R)?R:[R],A=[];for(let I=0;I<C.length;I++)A.push(C[I].clone());S[v]=A}return!0}else if(typeof R=="number"){if(S[v]!==R)return S[v]=R,!0}else{const C=Array.isArray(S[v])?S[v]:[S[v]],A=Array.isArray(R)?R:[R];for(let I=0;I<C.length;I++){const x=C[I];if(x.equals(A[I])===!1)return x.copy(A[I]),!0}}return!1}function f(E){const v=E.uniforms;let S=0;const R=16;let C=0;for(let A=0,I=v.length;A<I;A++){const x=v[A],M={boundary:0,storage:0},G=Array.isArray(x.value)?x.value:[x.value];for(let V=0,ee=G.length;V<ee;V++){const O=G[V],H=y(O);M.boundary+=H.boundary,M.storage+=H.storage}if(x.__data=new Float32Array(M.storage/Float32Array.BYTES_PER_ELEMENT),x.__offset=S,A>0){C=S%R;const V=R-C;C!==0&&V-M.boundary<0&&(S+=R-C,x.__offset=S)}S+=M.storage}return C=S%R,C>0&&(S+=R-C),E.__size=S,E.__cache={},this}function y(E){const v={boundary:0,storage:0};return typeof E=="number"?(v.boundary=4,v.storage=4):E.isVector2?(v.boundary=8,v.storage=8):E.isVector3||E.isColor?(v.boundary=16,v.storage=12):E.isVector4?(v.boundary=16,v.storage=16):E.isMatrix3?(v.boundary=48,v.storage=48):E.isMatrix4?(v.boundary=64,v.storage=64):E.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",E),v}function b(E){const v=E.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(s[v.id]),delete s[v.id],delete r[v.id]}function g(){for(const E in s)n.deleteBuffer(s[E]);o=[],s={},r={}}return{bind:c,update:d,dispose:g}}class cO{constructor(e={}){const{canvas:t=tbt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:_=!1}=e;this.isWebGLRenderer=!0;let m;i!==null?m=i.getContextAttributes().alpha:m=o;const h=new Uint32Array(4),f=new Int32Array(4);let y=null,b=null;const g=[],E=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=nn,this._useLegacyLights=!1,this.toneMapping=br,this.toneMappingExposure=1;const v=this;let S=!1,R=0,C=0,A=null,I=-1,x=null;const M=new $t,G=new $t;let V=null;const ee=new pt(0);let O=0,H=t.width,q=t.height,L=1,Y=null,ne=null;const oe=new $t(0,0,H,q),ye=new $t(0,0,H,q);let xe=!1;const le=new my;let ve=!1,Oe=!1,De=null;const Q=new xt,fe=new Rt,_e=new re,Ae={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Fe(){return A===null?L:1}let te=i;function U(F,de){for(let Ee=0;Ee<F.length;Ee++){const Se=F[Ee],be=t.getContext(Se,de);if(be!==null)return be}return null}try{const F={alpha:!0,depth:s,stencil:r,antialias:a,premultipliedAlpha:c,preserveDrawingBuffer:d,powerPreference:u,failIfMajorPerformanceCaveat:_};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${cy}`),t.addEventListener("webglcontextlost",mt,!1),t.addEventListener("webglcontextrestored",J,!1),t.addEventListener("webglcontextcreationerror",je,!1),te===null){const de=["webgl2","webgl","experimental-webgl"];if(v.isWebGL1Renderer===!0&&de.shift(),te=U(de,F),te===null)throw U(de)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}typeof WebGLRenderingContext<"u"&&te instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),te.getShaderPrecisionFormat===void 0&&(te.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(F){throw console.error("THREE.WebGLRenderer: "+F.message),F}let P,Z,ce,pe,he,ae,Me,Re,ge,D,N,K,me,j,se,Ce,we,ke,We,lt,Pe,Mt,et,tt;function ze(){P=new mEt(te),Z=new cEt(te,P,e),P.init(Z),Mt=new Jvt(te,P,Z),ce=new Xvt(te,P,Z),pe=new bEt(te),he=new Fvt,ae=new Zvt(te,P,ce,he,Z,Mt,pe),Me=new uEt(v),Re=new _Et(v),ge=new wbt(te,Z),et=new aEt(te,P,ge,Z),D=new hEt(te,ge,pe,et),N=new SEt(te,D,ge,pe),We=new vEt(te,Z,ae),Ce=new dEt(he),K=new Pvt(v,Me,Re,P,Z,et,Ce),me=new iSt(v,he),j=new Bvt,se=new Yvt(P,Z),ke=new oEt(v,Me,Re,ce,N,m,c),we=new Qvt(v,N,Z),tt=new sSt(te,pe,Z,ce),lt=new lEt(te,P,pe,Z),Pe=new gEt(te,P,pe,Z),pe.programs=K.programs,v.capabilities=Z,v.extensions=P,v.properties=he,v.renderLists=j,v.shadowMap=we,v.state=ce,v.info=pe}ze();const Ke=new nSt(v,te);this.xr=Ke,this.getContext=function(){return te},this.getContextAttributes=function(){return te.getContextAttributes()},this.forceContextLoss=function(){const F=P.get("WEBGL_lose_context");F&&F.loseContext()},this.forceContextRestore=function(){const F=P.get("WEBGL_lose_context");F&&F.restoreContext()},this.getPixelRatio=function(){return L},this.setPixelRatio=function(F){F!==void 0&&(L=F,this.setSize(H,q,!1))},this.getSize=function(F){return F.set(H,q)},this.setSize=function(F,de,Ee=!0){if(Ke.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}H=F,q=de,t.width=Math.floor(F*L),t.height=Math.floor(de*L),Ee===!0&&(t.style.width=F+"px",t.style.height=de+"px"),this.setViewport(0,0,F,de)},this.getDrawingBufferSize=function(F){return F.set(H*L,q*L).floor()},this.setDrawingBufferSize=function(F,de,Ee){H=F,q=de,L=Ee,t.width=Math.floor(F*Ee),t.height=Math.floor(de*Ee),this.setViewport(0,0,F,de)},this.getCurrentViewport=function(F){return F.copy(M)},this.getViewport=function(F){return F.copy(oe)},this.setViewport=function(F,de,Ee,Se){F.isVector4?oe.set(F.x,F.y,F.z,F.w):oe.set(F,de,Ee,Se),ce.viewport(M.copy(oe).multiplyScalar(L).floor())},this.getScissor=function(F){return F.copy(ye)},this.setScissor=function(F,de,Ee,Se){F.isVector4?ye.set(F.x,F.y,F.z,F.w):ye.set(F,de,Ee,Se),ce.scissor(G.copy(ye).multiplyScalar(L).floor())},this.getScissorTest=function(){return xe},this.setScissorTest=function(F){ce.setScissorTest(xe=F)},this.setOpaqueSort=function(F){Y=F},this.setTransparentSort=function(F){ne=F},this.getClearColor=function(F){return F.copy(ke.getClearColor())},this.setClearColor=function(){ke.setClearColor.apply(ke,arguments)},this.getClearAlpha=function(){return ke.getClearAlpha()},this.setClearAlpha=function(){ke.setClearAlpha.apply(ke,arguments)},this.clear=function(F=!0,de=!0,Ee=!0){let Se=0;if(F){let be=!1;if(A!==null){const Qe=A.texture.format;be=Qe===GN||Qe===BN||Qe===UN}if(be){const Qe=A.texture.type,it=Qe===yr||Qe===fr||Qe===uy||Qe===no||Qe===PN||Qe===FN,ct=ke.getClearColor(),ut=ke.getClearAlpha(),Et=ct.r,ht=ct.g,gt=ct.b;it?(h[0]=Et,h[1]=ht,h[2]=gt,h[3]=ut,te.clearBufferuiv(te.COLOR,0,h)):(f[0]=Et,f[1]=ht,f[2]=gt,f[3]=ut,te.clearBufferiv(te.COLOR,0,f))}else Se|=te.COLOR_BUFFER_BIT}de&&(Se|=te.DEPTH_BUFFER_BIT),Ee&&(Se|=te.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),te.clear(Se)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",mt,!1),t.removeEventListener("webglcontextrestored",J,!1),t.removeEventListener("webglcontextcreationerror",je,!1),j.dispose(),se.dispose(),he.dispose(),Me.dispose(),Re.dispose(),N.dispose(),et.dispose(),tt.dispose(),K.dispose(),Ke.dispose(),Ke.removeEventListener("sessionstart",wn),Ke.removeEventListener("sessionend",Ht),De&&(De.dispose(),De=null),Rn.stop()};function mt(F){F.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),S=!0}function J(){console.log("THREE.WebGLRenderer: Context Restored."),S=!1;const F=pe.autoReset,de=we.enabled,Ee=we.autoUpdate,Se=we.needsUpdate,be=we.type;ze(),pe.autoReset=F,we.enabled=de,we.autoUpdate=Ee,we.needsUpdate=Se,we.type=be}function je(F){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",F.statusMessage)}function Ge(F){const de=F.target;de.removeEventListener("dispose",Ge),Ne(de)}function Ne(F){qe(F),he.remove(F)}function qe(F){const de=he.get(F).programs;de!==void 0&&(de.forEach(function(Ee){K.releaseProgram(Ee)}),F.isShaderMaterial&&K.releaseShaderCache(F))}this.renderBufferDirect=function(F,de,Ee,Se,be,Qe){de===null&&(de=Ae);const it=be.isMesh&&be.matrixWorld.determinant()<0,ct=Dy(F,de,Ee,Se,be);ce.setMaterial(Se,it);let ut=Ee.index,Et=1;if(Se.wireframe===!0){if(ut=D.getWireframeAttribute(Ee),ut===void 0)return;Et=2}const ht=Ee.drawRange,gt=Ee.attributes.position;let tn=ht.start*Et,qn=(ht.start+ht.count)*Et;Qe!==null&&(tn=Math.max(tn,Qe.start*Et),qn=Math.min(qn,(Qe.start+Qe.count)*Et)),ut!==null?(tn=Math.max(tn,0),qn=Math.min(qn,ut.count)):gt!=null&&(tn=Math.max(tn,0),qn=Math.min(qn,gt.count));const un=qn-tn;if(un<0||un===1/0)return;et.setup(be,Se,ct,Ee,ut);let Wi,Qt=lt;if(ut!==null&&(Wi=ge.get(ut),Qt=Pe,Qt.setIndex(Wi)),be.isMesh)Se.wireframe===!0?(ce.setLineWidth(Se.wireframeLinewidth*Fe()),Qt.setMode(te.LINES)):Qt.setMode(te.TRIANGLES);else if(be.isLine){let St=Se.linewidth;St===void 0&&(St=1),ce.setLineWidth(St*Fe()),be.isLineSegments?Qt.setMode(te.LINES):be.isLineLoop?Qt.setMode(te.LINE_LOOP):Qt.setMode(te.LINE_STRIP)}else be.isPoints?Qt.setMode(te.POINTS):be.isSprite&&Qt.setMode(te.TRIANGLES);if(be.isBatchedMesh)Qt.renderMultiDraw(be._multiDrawStarts,be._multiDrawCounts,be._multiDrawCount);else if(be.isInstancedMesh)Qt.renderInstances(tn,un,be.count);else if(Ee.isInstancedBufferGeometry){const St=Ee._maxInstanceCount!==void 0?Ee._maxInstanceCount:1/0,hc=Math.min(Ee.instanceCount,St);Qt.renderInstances(tn,un,hc)}else Qt.render(tn,un)};function dt(F,de,Ee){F.transparent===!0&&F.side===Ji&&F.forceSinglePass===!1?(F.side=Zn,F.needsUpdate=!0,Qa(F,de,Ee),F.side=Fs,F.needsUpdate=!0,Qa(F,de,Ee),F.side=Ji):Qa(F,de,Ee)}this.compile=function(F,de,Ee=null){Ee===null&&(Ee=F),b=se.get(Ee),b.init(),E.push(b),Ee.traverseVisible(function(be){be.isLight&&be.layers.test(de.layers)&&(b.pushLight(be),be.castShadow&&b.pushShadow(be))}),F!==Ee&&F.traverseVisible(function(be){be.isLight&&be.layers.test(de.layers)&&(b.pushLight(be),be.castShadow&&b.pushShadow(be))}),b.setupLights(v._useLegacyLights);const Se=new Set;return F.traverse(function(be){const Qe=be.material;if(Qe)if(Array.isArray(Qe))for(let it=0;it<Qe.length;it++){const ct=Qe[it];dt(ct,Ee,be),Se.add(ct)}else dt(Qe,Ee,be),Se.add(Qe)}),E.pop(),b=null,Se},this.compileAsync=function(F,de,Ee=null){const Se=this.compile(F,de,Ee);return new Promise(be=>{function Qe(){if(Se.forEach(function(it){he.get(it).currentProgram.isReady()&&Se.delete(it)}),Se.size===0){be(F);return}setTimeout(Qe,10)}P.get("KHR_parallel_shader_compile")!==null?Qe():setTimeout(Qe,10)})};let Nt=null;function dn(F){Nt&&Nt(F)}function wn(){Rn.stop()}function Ht(){Rn.start()}const Rn=new nO;Rn.setAnimationLoop(dn),typeof self<"u"&&Rn.setContext(self),this.setAnimationLoop=function(F){Nt=F,Ke.setAnimationLoop(F),F===null?Rn.stop():Rn.start()},Ke.addEventListener("sessionstart",wn),Ke.addEventListener("sessionend",Ht),this.render=function(F,de){if(de!==void 0&&de.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),de.parent===null&&de.matrixWorldAutoUpdate===!0&&de.updateMatrixWorld(),Ke.enabled===!0&&Ke.isPresenting===!0&&(Ke.cameraAutoUpdate===!0&&Ke.updateCamera(de),de=Ke.getCamera()),F.isScene===!0&&F.onBeforeRender(v,F,de,A),b=se.get(F,E.length),b.init(),E.push(b),Q.multiplyMatrices(de.projectionMatrix,de.matrixWorldInverse),le.setFromProjectionMatrix(Q),Oe=this.localClippingEnabled,ve=Ce.init(this.clippingPlanes,Oe),y=j.get(F,g.length),y.init(),g.push(y),Oi(F,de,0,v.sortObjects),y.finish(),v.sortObjects===!0&&y.sort(Y,ne),this.info.render.frame++,ve===!0&&Ce.beginShadows();const Ee=b.state.shadowsArray;if(we.render(Ee,F,de),ve===!0&&Ce.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(y,F),b.setupLights(v._useLegacyLights),de.isArrayCamera){const Se=de.cameras;for(let be=0,Qe=Se.length;be<Qe;be++){const it=Se[be];vp(y,F,it,it.viewport)}}else vp(y,F,de);A!==null&&(ae.updateMultisampleRenderTarget(A),ae.updateRenderTargetMipmap(A)),F.isScene===!0&&F.onAfterRender(v,F,de),et.resetDefaultState(),I=-1,x=null,E.pop(),E.length>0?b=E[E.length-1]:b=null,g.pop(),g.length>0?y=g[g.length-1]:y=null};function Oi(F,de,Ee,Se){if(F.visible===!1)return;if(F.layers.test(de.layers)){if(F.isGroup)Ee=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(de);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||le.intersectsSprite(F)){Se&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Q);const it=N.update(F),ct=F.material;ct.visible&&y.push(F,it,ct,Ee,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||le.intersectsObject(F))){const it=N.update(F),ct=F.material;if(Se&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(it.boundingSphere===null&&it.computeBoundingSphere(),_e.copy(it.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Q)),Array.isArray(ct)){const ut=it.groups;for(let Et=0,ht=ut.length;Et<ht;Et++){const gt=ut[Et],tn=ct[gt.materialIndex];tn&&tn.visible&&y.push(F,it,tn,Ee,_e.z,gt)}}else ct.visible&&y.push(F,it,ct,Ee,_e.z,null)}}const Qe=F.children;for(let it=0,ct=Qe.length;it<ct;it++)Oi(Qe[it],de,Ee,Se)}function vp(F,de,Ee,Se){const be=F.opaque,Qe=F.transmissive,it=F.transparent;b.setupLightsView(Ee),ve===!0&&Ce.setGlobalState(v.clippingPlanes,Ee),Qe.length>0&&ky(be,Qe,de,Ee),Se&&ce.viewport(M.copy(Se)),be.length>0&&ja(be,de,Ee),Qe.length>0&&ja(Qe,de,Ee),it.length>0&&ja(it,de,Ee),ce.buffers.depth.setTest(!0),ce.buffers.depth.setMask(!0),ce.buffers.color.setMask(!0),ce.setPolygonOffset(!1)}function ky(F,de,Ee,Se){if((Ee.isScene===!0?Ee.overrideMaterial:null)!==null)return;const Qe=Z.isWebGL2;De===null&&(De=new mo(1,1,{generateMipmaps:!0,type:P.has("EXT_color_buffer_half_float")?Ql:yr,minFilter:_o,samples:Qe?4:0})),v.getDrawingBufferSize(fe),Qe?De.setSize(fe.x,fe.y):De.setSize(vu(fe.x),vu(fe.y));const it=v.getRenderTarget();v.setRenderTarget(De),v.getClearColor(ee),O=v.getClearAlpha(),O<1&&v.setClearColor(16777215,.5),v.clear();const ct=v.toneMapping;v.toneMapping=br,ja(F,Ee,Se),ae.updateMultisampleRenderTarget(De),ae.updateRenderTargetMipmap(De);let ut=!1;for(let Et=0,ht=de.length;Et<ht;Et++){const gt=de[Et],tn=gt.object,qn=gt.geometry,un=gt.material,Wi=gt.group;if(un.side===Ji&&tn.layers.test(Se.layers)){const Qt=un.side;un.side=Zn,un.needsUpdate=!0,Sp(tn,Ee,Se,qn,un,Wi),un.side=Qt,un.needsUpdate=!0,ut=!0}}ut===!0&&(ae.updateMultisampleRenderTarget(De),ae.updateRenderTargetMipmap(De)),v.setRenderTarget(it),v.setClearColor(ee,O),v.toneMapping=ct}function ja(F,de,Ee){const Se=de.isScene===!0?de.overrideMaterial:null;for(let be=0,Qe=F.length;be<Qe;be++){const it=F[be],ct=it.object,ut=it.geometry,Et=Se===null?it.material:Se,ht=it.group;ct.layers.test(Ee.layers)&&Sp(ct,de,Ee,ut,Et,ht)}}function Sp(F,de,Ee,Se,be,Qe){F.onBeforeRender(v,de,Ee,Se,be,Qe),F.modelViewMatrix.multiplyMatrices(Ee.matrixWorldInverse,F.matrixWorld),F.normalMatrix.getNormalMatrix(F.modelViewMatrix),be.onBeforeRender(v,de,Ee,Se,F,Qe),be.transparent===!0&&be.side===Ji&&be.forceSinglePass===!1?(be.side=Zn,be.needsUpdate=!0,v.renderBufferDirect(Ee,de,Se,be,F,Qe),be.side=Fs,be.needsUpdate=!0,v.renderBufferDirect(Ee,de,Se,be,F,Qe),be.side=Ji):v.renderBufferDirect(Ee,de,Se,be,F,Qe),F.onAfterRender(v,de,Ee,Se,be,Qe)}function Qa(F,de,Ee){de.isScene!==!0&&(de=Ae);const Se=he.get(F),be=b.state.lights,Qe=b.state.shadowsArray,it=be.state.version,ct=K.getParameters(F,be.state,Qe,de,Ee),ut=K.getProgramCacheKey(ct);let Et=Se.programs;Se.environment=F.isMeshStandardMaterial?de.environment:null,Se.fog=de.fog,Se.envMap=(F.isMeshStandardMaterial?Re:Me).get(F.envMap||Se.environment),Et===void 0&&(F.addEventListener("dispose",Ge),Et=new Map,Se.programs=Et);let ht=Et.get(ut);if(ht!==void 0){if(Se.currentProgram===ht&&Se.lightsStateVersion===it)return xp(F,ct),ht}else ct.uniforms=K.getUniforms(F),F.onBuild(Ee,ct,v),F.onBeforeCompile(ct,v),ht=K.acquireProgram(ct,ut),Et.set(ut,ht),Se.uniforms=ct.uniforms;const gt=Se.uniforms;return(!F.isShaderMaterial&&!F.isRawShaderMaterial||F.clipping===!0)&&(gt.clippingPlanes=Ce.uniform),xp(F,ct),Se.needsLights=Py(F),Se.lightsStateVersion=it,Se.needsLights&&(gt.ambientLightColor.value=be.state.ambient,gt.lightProbe.value=be.state.probe,gt.directionalLights.value=be.state.directional,gt.directionalLightShadows.value=be.state.directionalShadow,gt.spotLights.value=be.state.spot,gt.spotLightShadows.value=be.state.spotShadow,gt.rectAreaLights.value=be.state.rectArea,gt.ltc_1.value=be.state.rectAreaLTC1,gt.ltc_2.value=be.state.rectAreaLTC2,gt.pointLights.value=be.state.point,gt.pointLightShadows.value=be.state.pointShadow,gt.hemisphereLights.value=be.state.hemi,gt.directionalShadowMap.value=be.state.directionalShadowMap,gt.directionalShadowMatrix.value=be.state.directionalShadowMatrix,gt.spotShadowMap.value=be.state.spotShadowMap,gt.spotLightMatrix.value=be.state.spotLightMatrix,gt.spotLightMap.value=be.state.spotLightMap,gt.pointShadowMap.value=be.state.pointShadowMap,gt.pointShadowMatrix.value=be.state.pointShadowMatrix),Se.currentProgram=ht,Se.uniformsList=null,ht}function Tp(F){if(F.uniformsList===null){const de=F.currentProgram.getUniforms();F.uniformsList=Dd.seqWithValue(de.seq,F.uniforms)}return F.uniformsList}function xp(F,de){const Ee=he.get(F);Ee.outputColorSpace=de.outputColorSpace,Ee.batching=de.batching,Ee.instancing=de.instancing,Ee.instancingColor=de.instancingColor,Ee.skinning=de.skinning,Ee.morphTargets=de.morphTargets,Ee.morphNormals=de.morphNormals,Ee.morphColors=de.morphColors,Ee.morphTargetsCount=de.morphTargetsCount,Ee.numClippingPlanes=de.numClippingPlanes,Ee.numIntersection=de.numClipIntersection,Ee.vertexAlphas=de.vertexAlphas,Ee.vertexTangents=de.vertexTangents,Ee.toneMapping=de.toneMapping}function Dy(F,de,Ee,Se,be){de.isScene!==!0&&(de=Ae),ae.resetTextureUnits();const Qe=de.fog,it=Se.isMeshStandardMaterial?de.environment:null,ct=A===null?v.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:Cn,ut=(Se.isMeshStandardMaterial?Re:Me).get(Se.envMap||it),Et=Se.vertexColors===!0&&!!Ee.attributes.color&&Ee.attributes.color.itemSize===4,ht=!!Ee.attributes.tangent&&(!!Se.normalMap||Se.anisotropy>0),gt=!!Ee.morphAttributes.position,tn=!!Ee.morphAttributes.normal,qn=!!Ee.morphAttributes.color;let un=br;Se.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(un=v.toneMapping);const Wi=Ee.morphAttributes.position||Ee.morphAttributes.normal||Ee.morphAttributes.color,Qt=Wi!==void 0?Wi.length:0,St=he.get(Se),hc=b.state.lights;if(ve===!0&&(Oe===!0||F!==x)){const ei=F===x&&Se.id===I;Ce.setState(Se,F,ei)}let Zt=!1;Se.version===St.__version?(St.needsLights&&St.lightsStateVersion!==hc.state.version||St.outputColorSpace!==ct||be.isBatchedMesh&&St.batching===!1||!be.isBatchedMesh&&St.batching===!0||be.isInstancedMesh&&St.instancing===!1||!be.isInstancedMesh&&St.instancing===!0||be.isSkinnedMesh&&St.skinning===!1||!be.isSkinnedMesh&&St.skinning===!0||be.isInstancedMesh&&St.instancingColor===!0&&be.instanceColor===null||be.isInstancedMesh&&St.instancingColor===!1&&be.instanceColor!==null||St.envMap!==ut||Se.fog===!0&&St.fog!==Qe||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ce.numPlanes||St.numIntersection!==Ce.numIntersection)||St.vertexAlphas!==Et||St.vertexTangents!==ht||St.morphTargets!==gt||St.morphNormals!==tn||St.morphColors!==qn||St.toneMapping!==un||Z.isWebGL2===!0&&St.morphTargetsCount!==Qt)&&(Zt=!0):(Zt=!0,St.__version=Se.version);let zs=St.currentProgram;Zt===!0&&(zs=Qa(Se,de,be));let Cp=!1,vo=!1,gc=!1;const yn=zs.getUniforms(),Hs=St.uniforms;if(ce.useProgram(zs.program)&&(Cp=!0,vo=!0,gc=!0),Se.id!==I&&(I=Se.id,vo=!0),Cp||x!==F){yn.setValue(te,"projectionMatrix",F.projectionMatrix),yn.setValue(te,"viewMatrix",F.matrixWorldInverse);const ei=yn.map.cameraPosition;ei!==void 0&&ei.setValue(te,_e.setFromMatrixPosition(F.matrixWorld)),Z.logarithmicDepthBuffer&&yn.setValue(te,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial)&&yn.setValue(te,"isOrthographic",F.isOrthographicCamera===!0),x!==F&&(x=F,vo=!0,gc=!0)}if(be.isSkinnedMesh){yn.setOptional(te,be,"bindMatrix"),yn.setOptional(te,be,"bindMatrixInverse");const ei=be.skeleton;ei&&(Z.floatVertexTextures?(ei.boneTexture===null&&ei.computeBoneTexture(),yn.setValue(te,"boneTexture",ei.boneTexture,ae)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}be.isBatchedMesh&&(yn.setOptional(te,be,"batchingTexture"),yn.setValue(te,"batchingTexture",be._matricesTexture,ae));const bc=Ee.morphAttributes;if((bc.position!==void 0||bc.normal!==void 0||bc.color!==void 0&&Z.isWebGL2===!0)&&We.update(be,Ee,zs),(vo||St.receiveShadow!==be.receiveShadow)&&(St.receiveShadow=be.receiveShadow,yn.setValue(te,"receiveShadow",be.receiveShadow)),Se.isMeshGouraudMaterial&&Se.envMap!==null&&(Hs.envMap.value=ut,Hs.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),vo&&(yn.setValue(te,"toneMappingExposure",v.toneMappingExposure),St.needsLights&&Ly(Hs,gc),Qe&&Se.fog===!0&&me.refreshFogUniforms(Hs,Qe),me.refreshMaterialUniforms(Hs,Se,L,q,De),Dd.upload(te,Tp(St),Hs,ae)),Se.isShaderMaterial&&Se.uniformsNeedUpdate===!0&&(Dd.upload(te,Tp(St),Hs,ae),Se.uniformsNeedUpdate=!1),Se.isSpriteMaterial&&yn.setValue(te,"center",be.center),yn.setValue(te,"modelViewMatrix",be.modelViewMatrix),yn.setValue(te,"normalMatrix",be.normalMatrix),yn.setValue(te,"modelMatrix",be.matrixWorld),Se.isShaderMaterial||Se.isRawShaderMaterial){const ei=Se.uniformsGroups;for(let yc=0,Fy=ei.length;yc<Fy;yc++)if(Z.isWebGL2){const wp=ei[yc];tt.update(wp,zs),tt.bind(wp,zs)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return zs}function Ly(F,de){F.ambientLightColor.needsUpdate=de,F.lightProbe.needsUpdate=de,F.directionalLights.needsUpdate=de,F.directionalLightShadows.needsUpdate=de,F.pointLights.needsUpdate=de,F.pointLightShadows.needsUpdate=de,F.spotLights.needsUpdate=de,F.spotLightShadows.needsUpdate=de,F.rectAreaLights.needsUpdate=de,F.hemisphereLights.needsUpdate=de}function Py(F){return F.isMeshLambertMaterial||F.isMeshToonMaterial||F.isMeshPhongMaterial||F.isMeshStandardMaterial||F.isShadowMaterial||F.isShaderMaterial&&F.lights===!0}this.getActiveCubeFace=function(){return R},this.getActiveMipmapLevel=function(){return C},this.getRenderTarget=function(){return A},this.setRenderTargetTextures=function(F,de,Ee){he.get(F.texture).__webglTexture=de,he.get(F.depthTexture).__webglTexture=Ee;const Se=he.get(F);Se.__hasExternalTextures=!0,Se.__hasExternalTextures&&(Se.__autoAllocateDepthBuffer=Ee===void 0,Se.__autoAllocateDepthBuffer||P.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),Se.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(F,de){const Ee=he.get(F);Ee.__webglFramebuffer=de,Ee.__useDefaultFramebuffer=de===void 0},this.setRenderTarget=function(F,de=0,Ee=0){A=F,R=de,C=Ee;let Se=!0,be=null,Qe=!1,it=!1;if(F){const ut=he.get(F);ut.__useDefaultFramebuffer!==void 0?(ce.bindFramebuffer(te.FRAMEBUFFER,null),Se=!1):ut.__webglFramebuffer===void 0?ae.setupRenderTarget(F):ut.__hasExternalTextures&&ae.rebindTextures(F,he.get(F.texture).__webglTexture,he.get(F.depthTexture).__webglTexture);const Et=F.texture;(Et.isData3DTexture||Et.isDataArrayTexture||Et.isCompressedArrayTexture)&&(it=!0);const ht=he.get(F).__webglFramebuffer;F.isWebGLCubeRenderTarget?(Array.isArray(ht[de])?be=ht[de][Ee]:be=ht[de],Qe=!0):Z.isWebGL2&&F.samples>0&&ae.useMultisampledRTT(F)===!1?be=he.get(F).__webglMultisampledFramebuffer:Array.isArray(ht)?be=ht[Ee]:be=ht,M.copy(F.viewport),G.copy(F.scissor),V=F.scissorTest}else M.copy(oe).multiplyScalar(L).floor(),G.copy(ye).multiplyScalar(L).floor(),V=xe;if(ce.bindFramebuffer(te.FRAMEBUFFER,be)&&Z.drawBuffers&&Se&&ce.drawBuffers(F,be),ce.viewport(M),ce.scissor(G),ce.setScissorTest(V),Qe){const ut=he.get(F.texture);te.framebufferTexture2D(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,te.TEXTURE_CUBE_MAP_POSITIVE_X+de,ut.__webglTexture,Ee)}else if(it){const ut=he.get(F.texture),Et=de||0;te.framebufferTextureLayer(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,ut.__webglTexture,Ee||0,Et)}I=-1},this.readRenderTargetPixels=function(F,de,Ee,Se,be,Qe,it){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ct=he.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&it!==void 0&&(ct=ct[it]),ct){ce.bindFramebuffer(te.FRAMEBUFFER,ct);try{const ut=F.texture,Et=ut.format,ht=ut.type;if(Et!==gi&&Mt.convert(Et)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const gt=ht===Ql&&(P.has("EXT_color_buffer_half_float")||Z.isWebGL2&&P.has("EXT_color_buffer_float"));if(ht!==yr&&Mt.convert(ht)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ht===As&&(Z.isWebGL2||P.has("OES_texture_float")||P.has("WEBGL_color_buffer_float")))&&!gt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}de>=0&&de<=F.width-Se&&Ee>=0&&Ee<=F.height-be&&te.readPixels(de,Ee,Se,be,Mt.convert(Et),Mt.convert(ht),Qe)}finally{const ut=A!==null?he.get(A).__webglFramebuffer:null;ce.bindFramebuffer(te.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,de,Ee=0){const Se=Math.pow(2,-Ee),be=Math.floor(de.image.width*Se),Qe=Math.floor(de.image.height*Se);ae.setTexture2D(de,0),te.copyTexSubImage2D(te.TEXTURE_2D,Ee,0,0,F.x,F.y,be,Qe),ce.unbindTexture()},this.copyTextureToTexture=function(F,de,Ee,Se=0){const be=de.image.width,Qe=de.image.height,it=Mt.convert(Ee.format),ct=Mt.convert(Ee.type);ae.setTexture2D(Ee,0),te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Ee.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ee.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Ee.unpackAlignment),de.isDataTexture?te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,be,Qe,it,ct,de.image.data):de.isCompressedTexture?te.compressedTexSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,de.mipmaps[0].width,de.mipmaps[0].height,it,de.mipmaps[0].data):te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,it,ct,de.image),Se===0&&Ee.generateMipmaps&&te.generateMipmap(te.TEXTURE_2D),ce.unbindTexture()},this.copyTextureToTexture3D=function(F,de,Ee,Se,be=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Qe=F.max.x-F.min.x+1,it=F.max.y-F.min.y+1,ct=F.max.z-F.min.z+1,ut=Mt.convert(Se.format),Et=Mt.convert(Se.type);let ht;if(Se.isData3DTexture)ae.setTexture3D(Se,0),ht=te.TEXTURE_3D;else if(Se.isDataArrayTexture)ae.setTexture2DArray(Se,0),ht=te.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Se.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Se.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Se.unpackAlignment);const gt=te.getParameter(te.UNPACK_ROW_LENGTH),tn=te.getParameter(te.UNPACK_IMAGE_HEIGHT),qn=te.getParameter(te.UNPACK_SKIP_PIXELS),un=te.getParameter(te.UNPACK_SKIP_ROWS),Wi=te.getParameter(te.UNPACK_SKIP_IMAGES),Qt=Ee.isCompressedTexture?Ee.mipmaps[0]:Ee.image;te.pixelStorei(te.UNPACK_ROW_LENGTH,Qt.width),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,Qt.height),te.pixelStorei(te.UNPACK_SKIP_PIXELS,F.min.x),te.pixelStorei(te.UNPACK_SKIP_ROWS,F.min.y),te.pixelStorei(te.UNPACK_SKIP_IMAGES,F.min.z),Ee.isDataTexture||Ee.isData3DTexture?te.texSubImage3D(ht,be,de.x,de.y,de.z,Qe,it,ct,ut,Et,Qt.data):Ee.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),te.compressedTexSubImage3D(ht,be,de.x,de.y,de.z,Qe,it,ct,ut,Qt.data)):te.texSubImage3D(ht,be,de.x,de.y,de.z,Qe,it,ct,ut,Et,Qt),te.pixelStorei(te.UNPACK_ROW_LENGTH,gt),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,tn),te.pixelStorei(te.UNPACK_SKIP_PIXELS,qn),te.pixelStorei(te.UNPACK_SKIP_ROWS,un),te.pixelStorei(te.UNPACK_SKIP_IMAGES,Wi),be===0&&Se.generateMipmaps&&te.generateMipmap(ht),ce.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?ae.setTextureCube(F,0):F.isData3DTexture?ae.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?ae.setTexture2DArray(F,0):ae.setTexture2D(F,0),ce.unbindTexture()},this.resetState=function(){R=0,C=0,A=null,ce.reset(),et.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Ms}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===fy?"display-p3":"srgb",t.unpackColorSpace=Lt.workingColorSpace===_p?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===nn?so:HN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===so?nn:Cn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class rSt extends cO{}rSt.prototype.isWebGL1Renderer=!0;class oSt extends Jt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class aSt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=yb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Gi()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let s=0,r=this.stride;s<r;s++)this.array[e+s]=t.array[i+s];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Gi()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),i=new this.constructor(t,this.stride);return i.setUsage(this.usage),i}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Gi()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const Ln=new re;class yy{constructor(e,t,i,s=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=i,this.normalized=s}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,i=this.data.count;t<i;t++)Ln.fromBufferAttribute(this,t),Ln.applyMatrix4(e),this.setXYZ(t,Ln.x,Ln.y,Ln.z);return this}applyNormalMatrix(e){for(let t=0,i=this.count;t<i;t++)Ln.fromBufferAttribute(this,t),Ln.applyNormalMatrix(e),this.setXYZ(t,Ln.x,Ln.y,Ln.z);return this}transformDirection(e){for(let t=0,i=this.count;t<i;t++)Ln.fromBufferAttribute(this,t),Ln.transformDirection(e),this.setXYZ(t,Ln.x,Ln.y,Ln.z);return this}setX(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=es(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=es(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=es(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=es(t,this.array)),t}setXY(e,t,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=i,this}setXYZ(e,t,i,s){return e=e*this.data.stride+this.offset,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=i,this.data.array[e+2]=s,this}setXYZW(e,t,i,s,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array),r=Bt(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=i,this.data.array[e+2]=s,this.data.array[e+3]=r,this}clone(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const t=[];for(let i=0;i<this.count;i++){const s=i*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)t.push(this.data.array[s+r])}return new zn(new this.array.constructor(t),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new yy(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const t=[];for(let i=0;i<this.count;i++){const s=i*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)t.push(this.data.array[s+r])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}const Aw=new re,Mw=new $t,Nw=new $t,lSt=new re,Ow=new xt,ud=new re,yg=new ps,Iw=new xt,Eg=new mp;class cSt extends Vn{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=pC,this.bindMatrix=new xt,this.bindMatrixInverse=new xt,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Gs),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let i=0;i<t.count;i++)this.getVertexPosition(i,ud),this.boundingBox.expandByPoint(ud)}computeBoundingSphere(){const e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new ps),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let i=0;i<t.count;i++)this.getVertexPosition(i,ud),this.boundingSphere.expandByPoint(ud)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const i=this.material,s=this.matrixWorld;i!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),yg.copy(this.boundingSphere),yg.applyMatrix4(s),e.ray.intersectsSphere(yg)!==!1&&(Iw.copy(s).invert(),Eg.copy(e.ray).applyMatrix4(Iw),!(this.boundingBox!==null&&Eg.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,t,Eg)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,t===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new $t,t=this.geometry.attributes.skinWeight;for(let i=0,s=t.count;i<s;i++){e.fromBufferAttribute(t,i);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(i,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===pC?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===ygt?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,t){const i=this.skeleton,s=this.geometry;Mw.fromBufferAttribute(s.attributes.skinIndex,e),Nw.fromBufferAttribute(s.attributes.skinWeight,e),Aw.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let r=0;r<4;r++){const o=Nw.getComponent(r);if(o!==0){const a=Mw.getComponent(r);Ow.multiplyMatrices(i.bones[a].matrixWorld,i.boneInverses[a]),t.addScaledVector(lSt.copy(Aw).applyMatrix4(Ow),o)}}return t.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,t){return console.warn("THREE.SkinnedMesh: .boneTransform() was renamed to .applyBoneTransform() in r151."),this.applyBoneTransform(e,t)}}class dO extends Jt{constructor(){super(),this.isBone=!0,this.type="Bone"}}class dSt extends xn{constructor(e=null,t=1,i=1,s,r,o,a,c,d=gn,u=gn,_,m){super(null,o,a,c,d,u,s,r,_,m),this.isDataTexture=!0,this.image={data:e,width:t,height:i},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const kw=new xt,uSt=new xt;class Ey{constructor(e=[],t=[]){this.uuid=Gi(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),t.length===0)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let i=0,s=this.bones.length;i<s;i++)this.boneInverses.push(new xt)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const i=new xt;this.bones[e]&&i.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(i)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const i=this.bones[e];i&&i.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const i=this.bones[e];i&&(i.parent&&i.parent.isBone?(i.matrix.copy(i.parent.matrixWorld).invert(),i.matrix.multiply(i.matrixWorld)):i.matrix.copy(i.matrixWorld),i.matrix.decompose(i.position,i.quaternion,i.scale))}}update(){const e=this.bones,t=this.boneInverses,i=this.boneMatrices,s=this.boneTexture;for(let r=0,o=e.length;r<o;r++){const a=e[r]?e[r].matrixWorld:uSt;kw.multiplyMatrices(a,t[r]),kw.toArray(i,r*16)}s!==null&&(s.needsUpdate=!0)}clone(){return new Ey(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const i=new dSt(t,e,e,gi,As);return i.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=i,this}getBoneByName(e){for(let t=0,i=this.bones.length;t<i;t++){const s=this.bones[t];if(s.name===e)return s}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let i=0,s=e.bones.length;i<s;i++){const r=e.bones[i];let o=t[r];o===void 0&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),o=new dO),this.bones.push(o),this.boneInverses.push(new xt().fromArray(e.boneInverses[i]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,i=this.boneInverses;for(let s=0,r=t.length;s<r;s++){const o=t[s];e.bones.push(o.uuid);const a=i[s];e.boneInverses.push(a.toArray())}return e}}class Tb extends zn{constructor(e,t,i,s=1){super(e,t,i),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=s}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const Ho=new xt,Dw=new xt,pd=[],Lw=new Gs,pSt=new xt,dl=new Vn,ul=new ps;class fSt extends Vn{constructor(e,t,i){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new Tb(new Float32Array(i*16),16),this.instanceColor=null,this.count=i,this.boundingBox=null,this.boundingSphere=null;for(let s=0;s<i;s++)this.setMatrixAt(s,pSt)}computeBoundingBox(){const e=this.geometry,t=this.count;this.boundingBox===null&&(this.boundingBox=new Gs),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let i=0;i<t;i++)this.getMatrixAt(i,Ho),Lw.copy(e.boundingBox).applyMatrix4(Ho),this.boundingBox.union(Lw)}computeBoundingSphere(){const e=this.geometry,t=this.count;this.boundingSphere===null&&(this.boundingSphere=new ps),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let i=0;i<t;i++)this.getMatrixAt(i,Ho),ul.copy(e.boundingSphere).applyMatrix4(Ho),this.boundingSphere.union(ul)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,e*16)}raycast(e,t){const i=this.matrixWorld,s=this.count;if(dl.geometry=this.geometry,dl.material=this.material,dl.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),ul.copy(this.boundingSphere),ul.applyMatrix4(i),e.ray.intersectsSphere(ul)!==!1))for(let r=0;r<s;r++){this.getMatrixAt(r,Ho),Dw.multiplyMatrices(i,Ho),dl.matrixWorld=Dw,dl.raycast(e,pd);for(let o=0,a=pd.length;o<a;o++){const c=pd[o];c.instanceId=r,c.object=this,t.push(c)}pd.length=0}}setColorAt(e,t){this.instanceColor===null&&(this.instanceColor=new Tb(new Float32Array(this.instanceMatrix.count*3),3)),t.toArray(this.instanceColor.array,e*3)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,e*16)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class uO extends Vi{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new pt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Pw=new re,Fw=new re,Uw=new xt,vg=new mp,fd=new ps;class vy extends Jt{constructor(e=new fs,t=new uO){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,i=[0];for(let s=1,r=t.count;s<r;s++)Pw.fromBufferAttribute(t,s-1),Fw.fromBufferAttribute(t,s),i[s]=i[s-1],i[s]+=Pw.distanceTo(Fw);e.setAttribute("lineDistance",new ks(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const i=this.geometry,s=this.matrixWorld,r=e.params.Line.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),fd.copy(i.boundingSphere),fd.applyMatrix4(s),fd.radius+=r,e.ray.intersectsSphere(fd)===!1)return;Uw.copy(s).invert(),vg.copy(e.ray).applyMatrix4(Uw);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),c=a*a,d=new re,u=new re,_=new re,m=new re,h=this.isLineSegments?2:1,f=i.index,b=i.attributes.position;if(f!==null){const g=Math.max(0,o.start),E=Math.min(f.count,o.start+o.count);for(let v=g,S=E-1;v<S;v+=h){const R=f.getX(v),C=f.getX(v+1);if(d.fromBufferAttribute(b,R),u.fromBufferAttribute(b,C),vg.distanceSqToSegment(d,u,m,_)>c)continue;m.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(m);I<e.near||I>e.far||t.push({distance:I,point:_.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),E=Math.min(b.count,o.start+o.count);for(let v=g,S=E-1;v<S;v+=h){if(d.fromBufferAttribute(b,v),u.fromBufferAttribute(b,v+1),vg.distanceSqToSegment(d,u,m,_)>c)continue;m.applyMatrix4(this.matrixWorld);const C=e.ray.origin.distanceTo(m);C<e.near||C>e.far||t.push({distance:C,point:_.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}const Bw=new re,Gw=new re;class _St extends vy{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,i=[];for(let s=0,r=t.count;s<r;s+=2)Bw.fromBufferAttribute(t,s),Gw.fromBufferAttribute(t,s+1),i[s]=s===0?0:i[s-1],i[s+1]=i[s]+Bw.distanceTo(Gw);e.setAttribute("lineDistance",new ks(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class mSt extends vy{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class pO extends Vi{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new pt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Vw=new xt,xb=new mp,_d=new ps,md=new re;class hSt extends Jt{constructor(e=new fs,t=new pO){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){const i=this.geometry,s=this.matrixWorld,r=e.params.Points.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),_d.copy(i.boundingSphere),_d.applyMatrix4(s),_d.radius+=r,e.ray.intersectsSphere(_d)===!1)return;Vw.copy(s).invert(),xb.copy(e.ray).applyMatrix4(Vw);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),c=a*a,d=i.index,_=i.attributes.position;if(d!==null){const m=Math.max(0,o.start),h=Math.min(d.count,o.start+o.count);for(let f=m,y=h;f<y;f++){const b=d.getX(f);md.fromBufferAttribute(_,b),zw(md,b,c,s,e,t,this)}}else{const m=Math.max(0,o.start),h=Math.min(_.count,o.start+o.count);for(let f=m,y=h;f<y;f++)md.fromBufferAttribute(_,f),zw(md,f,c,s,e,t,this)}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}function zw(n,e,t,i,s,r,o){const a=xb.distanceSqToPoint(n);if(a<t){const c=new re;xb.closestPointToPoint(n,c),c.applyMatrix4(i);const d=s.ray.origin.distanceTo(c);if(d<s.near||d>s.far)return;r.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class Sy extends Vi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=py,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vs extends Sy{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Rt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return On(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Hw extends Vi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=py,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=dy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function hd(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function gSt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function bSt(n){function e(s,r){return n[s]-n[r]}const t=n.length,i=new Array(t);for(let s=0;s!==t;++s)i[s]=s;return i.sort(e),i}function qw(n,e,t){const i=n.length,s=new n.constructor(i);for(let r=0,o=0;o!==i;++r){const a=t[r]*e;for(let c=0;c!==e;++c)s[o++]=n[a+c]}return s}function fO(n,e,t,i){let s=1,r=n[0];for(;r!==void 0&&r[i]===void 0;)r=n[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),t.push(o)),r=n[s++];while(r!==void 0)}class fc{constructor(e,t,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new t.constructor(i),this.sampleValues=t,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let i=this._cachedIndex,s=t[i],r=t[i-1];e:{t:{let o;n:{i:if(!(e<s)){for(let a=i+2;;){if(s===void 0){if(e<r)break i;return i=t.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===a)break;if(r=s,s=t[++i],e<s)break t}o=t.length;break n}if(!(e>=r)){const a=t[1];e<a&&(i=2,r=a);for(let c=i-2;;){if(r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===c)break;if(s=r,r=t[--i-1],e>=r)break t}o=i,i=0;break n}break e}for(;i<o;){const a=i+o>>>1;e<t[a]?o=a:i=a+1}if(s=t[i],r=t[i-1],r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(s===void 0)return i=t.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,r,s)}return this.interpolate_(i,r,e,s)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,i=this.sampleValues,s=this.valueSize,r=e*s;for(let o=0;o!==s;++o)t[o]=i[r+o];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class ySt extends fc{constructor(e,t,i,s){super(e,t,i,s),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:UC,endingEnd:UC}}intervalChanged_(e,t,i){const s=this.parameterPositions;let r=e-2,o=e+1,a=s[r],c=s[o];if(a===void 0)switch(this.getSettings_().endingStart){case BC:r=e,a=2*t-i;break;case GC:r=s.length-2,a=t+s[r]-s[r+1];break;default:r=e,a=i}if(c===void 0)switch(this.getSettings_().endingEnd){case BC:o=e,c=2*i-t;break;case GC:o=1,c=i+s[1]-s[0];break;default:o=e-1,c=t}const d=(i-t)*.5,u=this.valueSize;this._weightPrev=d/(t-a),this._weightNext=d/(c-i),this._offsetPrev=r*u,this._offsetNext=o*u}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=e*a,d=c-a,u=this._offsetPrev,_=this._offsetNext,m=this._weightPrev,h=this._weightNext,f=(i-t)/(s-t),y=f*f,b=y*f,g=-m*b+2*m*y-m*f,E=(1+m)*b+(-1.5-2*m)*y+(-.5+m)*f+1,v=(-1-h)*b+(1.5+h)*y+.5*f,S=h*b-h*y;for(let R=0;R!==a;++R)r[R]=g*o[u+R]+E*o[d+R]+v*o[c+R]+S*o[_+R];return r}}class ESt extends fc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=e*a,d=c-a,u=(i-t)/(s-t),_=1-u;for(let m=0;m!==a;++m)r[m]=o[d+m]*_+o[c+m]*u;return r}}class vSt extends fc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e){return this.copySampleValue_(e-1)}}class _s{constructor(e,t,i,s){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(t===void 0||t.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=hd(t,this.TimeBufferType),this.values=hd(i,this.ValueBufferType),this.setInterpolation(s||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let i;if(t.toJSON!==this.toJSON)i=t.toJSON(e);else{i={name:e.name,times:hd(e.times,Array),values:hd(e.values,Array)};const s=e.getInterpolation();s!==e.DefaultInterpolation&&(i.interpolation=s)}return i.type=e.ValueTypeName,i}InterpolantFactoryMethodDiscrete(e){return new vSt(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new ESt(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new ySt(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case Xl:t=this.InterpolantFactoryMethodDiscrete;break;case Ta:t=this.InterpolantFactoryMethodLinear;break;case jh:t=this.InterpolantFactoryMethodSmooth;break}if(t===void 0){const i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(i);return console.warn("THREE.KeyframeTrack:",i),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Xl;case this.InterpolantFactoryMethodLinear:return Ta;case this.InterpolantFactoryMethodSmooth:return jh}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const t=this.times;for(let i=0,s=t.length;i!==s;++i)t[i]+=e}return this}scale(e){if(e!==1){const t=this.times;for(let i=0,s=t.length;i!==s;++i)t[i]*=e}return this}trim(e,t){const i=this.times,s=i.length;let r=0,o=s-1;for(;r!==s&&i[r]<e;)++r;for(;o!==-1&&i[o]>t;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const c=i[a];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,c),e=!1;break}if(o!==null&&o>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,c,o),e=!1;break}o=c}if(s!==void 0&&gSt(s))for(let a=0,c=s.length;a!==c;++a){const d=s[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===jh,r=e.length-1;let o=1;for(let a=1;a<r;++a){let c=!1;const d=e[a],u=e[a+1];if(d!==u&&(a!==1||d!==e[0]))if(s)c=!0;else{const _=a*i,m=_-i,h=_+i;for(let f=0;f!==i;++f){const y=t[_+f];if(y!==t[m+f]||y!==t[h+f]){c=!0;break}}}if(c){if(a!==o){e[o]=e[a];const _=a*i,m=o*i;for(let h=0;h!==i;++h)t[m+h]=t[_+h]}++o}}if(r>0){e[o]=e[r];for(let a=r*i,c=o*i,d=0;d!==i;++d)t[c+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*i)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),i=this.constructor,s=new i(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}_s.prototype.TimeBufferType=Float32Array;_s.prototype.ValueBufferType=Float32Array;_s.prototype.DefaultInterpolation=Ta;class Ya extends _s{}Ya.prototype.ValueTypeName="bool";Ya.prototype.ValueBufferType=Array;Ya.prototype.DefaultInterpolation=Xl;Ya.prototype.InterpolantFactoryMethodLinear=void 0;Ya.prototype.InterpolantFactoryMethodSmooth=void 0;class _O extends _s{}_O.prototype.ValueTypeName="color";class wa extends _s{}wa.prototype.ValueTypeName="number";class SSt extends fc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(i-t)/(s-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Nr.slerpFlat(r,0,o,d-a,o,d,c);return r}}class go extends _s{InterpolantFactoryMethodLinear(e){return new SSt(this.times,this.values,this.getValueSize(),e)}}go.prototype.ValueTypeName="quaternion";go.prototype.DefaultInterpolation=Ta;go.prototype.InterpolantFactoryMethodSmooth=void 0;class $a extends _s{}$a.prototype.ValueTypeName="string";$a.prototype.ValueBufferType=Array;$a.prototype.DefaultInterpolation=Xl;$a.prototype.InterpolantFactoryMethodLinear=void 0;$a.prototype.InterpolantFactoryMethodSmooth=void 0;class Ra extends _s{}Ra.prototype.ValueTypeName="vector";class TSt{constructor(e,t=-1,i,s=Agt){this.name=e,this.tracks=i,this.duration=t,this.blendMode=s,this.uuid=Gi(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)t.push(CSt(i[o]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)t.push(_s.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,t,i,s){const r=t.length,o=[];for(let a=0;a<r;a++){let c=[],d=[];c.push((a+r-1)%r,a,(a+1)%r),d.push(0,1,0);const u=bSt(c);c=qw(c,1,u),d=qw(d,1,u),!s&&c[0]===0&&(c.push(r),d.push(d[0])),o.push(new wa(".morphTargetInfluences["+t[a].name+"]",c,d).scale(1/i))}return new this(e,-1,o)}static findByName(e,t){let i=e;if(!Array.isArray(e)){const s=e;i=s.geometry&&s.geometry.animations||s.animations}for(let s=0;s<i.length;s++)if(i[s].name===t)return i[s];return null}static CreateClipsFromMorphTargetSequences(e,t,i){const s={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,c=e.length;a<c;a++){const d=e[a],u=d.name.match(r);if(u&&u.length>1){const _=u[1];let m=s[_];m||(s[_]=m=[]),m.push(d)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],t,i));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(_,m,h,f,y){if(h.length!==0){const b=[],g=[];fO(h,b,g,f),b.length!==0&&y.push(new _(m,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let _=0;_<d.length;_++){const m=d[_].keys;if(!(!m||m.length===0))if(m[0].morphTargets){const h={};let f;for(f=0;f<m.length;f++)if(m[f].morphTargets)for(let y=0;y<m[f].morphTargets.length;y++)h[m[f].morphTargets[y]]=-1;for(const y in h){const b=[],g=[];for(let E=0;E!==m[f].morphTargets.length;++E){const v=m[f];b.push(v.time),g.push(v.morphTarget===y?1:0)}s.push(new wa(".morphTargetInfluence["+y+"]",b,g))}c=h.length*o}else{const h=".bones["+t[_].name+"]";i(Ra,h+".position",m,"pos",s),i(go,h+".quaternion",m,"rot",s),i(Ra,h+".scale",m,"scl",s)}}return s.length===0?null:new this(r,c,s,a)}resetDuration(){const e=this.tracks;let t=0;for(let i=0,s=e.length;i!==s;++i){const r=this.tracks[i];t=Math.max(t,r.times[r.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function xSt(n){switch(n.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return wa;case"vector":case"vector2":case"vector3":case"vector4":return Ra;case"color":return _O;case"quaternion":return go;case"bool":case"boolean":return Ya;case"string":return $a}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+n)}function CSt(n){if(n.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=xSt(n.type);if(n.times===void 0){const t=[],i=[];fO(n.keys,t,i,"value"),n.times=t,n.values=i}return e.parse!==void 0?e.parse(n):new e(n.name,n.times,n.values,n.interpolation)}const Aa={enabled:!1,files:{},add:function(n,e){this.enabled!==!1&&(this.files[n]=e)},get:function(n){if(this.enabled!==!1)return this.files[n]},remove:function(n){delete this.files[n]},clear:function(){this.files={}}};class wSt{constructor(e,t,i){const s=this;let r=!1,o=0,a=0,c;const d=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=i,this.itemStart=function(u){a++,r===!1&&s.onStart!==void 0&&s.onStart(u,o,a),r=!0},this.itemEnd=function(u){o++,s.onProgress!==void 0&&s.onProgress(u,o,a),o===a&&(r=!1,s.onLoad!==void 0&&s.onLoad())},this.itemError=function(u){s.onError!==void 0&&s.onError(u)},this.resolveURL=function(u){return c?c(u):u},this.setURLModifier=function(u){return c=u,this},this.addHandler=function(u,_){return d.push(u,_),this},this.removeHandler=function(u){const _=d.indexOf(u);return _!==-1&&d.splice(_,2),this},this.getHandler=function(u){for(let _=0,m=d.length;_<m;_+=2){const h=d[_],f=d[_+1];if(h.global&&(h.lastIndex=0),h.test(u))return f}return null}}}const RSt=new wSt;class Wa{constructor(e){this.manager=e!==void 0?e:RSt,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const i=this;return new Promise(function(s,r){i.load(e,s,t,r)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Wa.DEFAULT_MATERIAL_NAME="__DEFAULT";const Ss={};class ASt extends Error{constructor(e,t){super(e),this.response=t}}class mO extends Wa{constructor(e){super(e)}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=Aa.get(e);if(r!==void 0)return this.manager.itemStart(e),setTimeout(()=>{t&&t(r),this.manager.itemEnd(e)},0),r;if(Ss[e]!==void 0){Ss[e].push({onLoad:t,onProgress:i,onError:s});return}Ss[e]=[],Ss[e].push({onLoad:t,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,c=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=Ss[e],_=d.body.getReader(),m=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),h=m?parseInt(m):0,f=h!==0;let y=0;const b=new ReadableStream({start(g){E();function E(){_.read().then(({done:v,value:S})=>{if(v)g.close();else{y+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:f,loaded:y,total:h});for(let C=0,A=u.length;C<A;C++){const I=u[C];I.onProgress&&I.onProgress(R)}g.enqueue(S),E()}})}}});return new Response(b)}else throw new ASt(`fetch for "${d.url}" responded with ${d.status}: ${d.statusText}`,d)}).then(d=>{switch(c){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const _=/charset="?([^;"\s]*)"?/i.exec(a),m=_&&_[1]?_[1].toLowerCase():void 0,h=new TextDecoder(m);return d.arrayBuffer().then(f=>h.decode(f))}}}).then(d=>{Aa.add(e,d);const u=Ss[e];delete Ss[e];for(let _=0,m=u.length;_<m;_++){const h=u[_];h.onLoad&&h.onLoad(d)}}).catch(d=>{const u=Ss[e];if(u===void 0)throw this.manager.itemError(e),d;delete Ss[e];for(let _=0,m=u.length;_<m;_++){const h=u[_];h.onError&&h.onError(d)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class MSt extends Wa{constructor(e){super(e)}load(e,t,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Aa.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=Zl("img");function c(){u(),Aa.add(e,this),t&&t(this),r.manager.itemEnd(e)}function d(_){u(),s&&s(_),r.manager.itemError(e),r.manager.itemEnd(e)}function u(){a.removeEventListener("load",c,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",c,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class hO extends Wa{constructor(e){super(e)}load(e,t,i,s){const r=new xn,o=new MSt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},i,s),r}}class bp extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Sg=new xt,Yw=new re,$w=new re;class Ty{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Rt(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new my,this._frameExtents=new Rt(1,1),this._viewportCount=1,this._viewports=[new $t(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,i=this.matrix;Yw.setFromMatrixPosition(e.matrixWorld),t.position.copy(Yw),$w.setFromMatrixPosition(e.target.matrixWorld),t.lookAt($w),t.updateMatrixWorld(),Sg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Sg),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(Sg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class NSt extends Ty{constructor(){super(new Gn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,i=xa*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(i!==t.fov||s!==t.aspect||r!==t.far)&&(t.fov=i,t.aspect=s,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class OSt extends bp{constructor(e,t,i=0,s=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new NSt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Ww=new xt,pl=new re,Tg=new re;class ISt extends Ty{constructor(){super(new Gn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(4,2),this._viewportCount=6,this._viewports=[new $t(2,1,1,1),new $t(0,1,1,1),new $t(3,1,1,1),new $t(1,1,1,1),new $t(3,0,1,1),new $t(1,0,1,1)],this._cubeDirections=[new re(1,0,0),new re(-1,0,0),new re(0,0,1),new re(0,0,-1),new re(0,1,0),new re(0,-1,0)],this._cubeUps=[new re(0,1,0),new re(0,1,0),new re(0,1,0),new re(0,1,0),new re(0,0,1),new re(0,0,-1)]}updateMatrices(e,t=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),pl.setFromMatrixPosition(e.matrixWorld),i.position.copy(pl),Tg.copy(i.position),Tg.add(this._cubeDirections[t]),i.up.copy(this._cubeUps[t]),i.lookAt(Tg),i.updateMatrixWorld(),s.makeTranslation(-pl.x,-pl.y,-pl.z),Ww.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Ww)}}class kSt extends bp{constructor(e,t,i=0,s=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new ISt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class DSt extends Ty{constructor(){super(new gy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class gO extends bp{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new DSt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class LSt extends bp{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Dl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let i=0,s=e.length;i<s;i++)t+=String.fromCharCode(e[i]);try{return decodeURIComponent(escape(t))}catch{return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return t===-1?"./":e.slice(0,t+1)}static resolveURL(e,t){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class PSt extends Wa{constructor(e){super(e),this.isImageBitmapLoader=!0,typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Aa.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(c){Aa.add(e,c),t&&t(c),r.manager.itemEnd(e)}).catch(function(c){s&&s(c),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const xy="\\[\\]\\.:\\/",FSt=new RegExp("["+xy+"]","g"),Cy="[^"+xy+"]",USt="[^"+xy.replace("\\.","")+"]",BSt=/((?:WC+[\/:])*)/.source.replace("WC",Cy),GSt=/(WCOD+)?/.source.replace("WCOD",USt),VSt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Cy),zSt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Cy),HSt=new RegExp("^"+BSt+GSt+VSt+zSt+"$"),qSt=["material","materials","bones","map"];class YSt{constructor(e,t,i){const s=i||Ut.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,s)}getValue(e,t){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,t)}setValue(e,t){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class Ut{constructor(e,t,i){this.path=t,this.parsedPath=i||Ut.parseTrackName(t),this.node=Ut.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new Ut.Composite(e,t,i):new Ut(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(FSt,"")}static parseTrackName(e){const t=HSt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);qSt.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(t);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o<r.length;o++){const a=r[o];if(a.name===t||a.uuid===t)return a;const c=i(a.children);if(c)return c}return null},s=i(e.children);if(s)return s}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)e[t++]=i[s]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,i=t.objectName,s=t.propertyName;let r=t.propertyIndex;if(e||(e=Ut.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(i){let d=t.objectIndex;switch(i){case"materials":if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}e=e.material.materials;break;case"bones":if(!e.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}e=e.skeleton.bones;for(let u=0;u<e.length;u++)if(e[u].name===d){d=u;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}e=e.material.map;break;default:if(e[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}e=e[i]}if(d!==void 0){if(e[d]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);return}e=e[d]}}const o=e[s];if(o===void 0){const d=t.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+d+"."+s+" but it wasn't found.",e);return}let a=this.Versioning.None;this.targetObject=e,e.needsUpdate!==void 0?a=this.Versioning.NeedsUpdate:e.matrixWorldNeedsUpdate!==void 0&&(a=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(r!==void 0){if(s==="morphTargetInfluences"){if(!e.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!e.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}e.morphTargetDictionary[r]!==void 0&&(r=e.morphTargetDictionary[r])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=s;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}Ut.Composite=YSt;Ut.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};Ut.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};Ut.prototype.GetterByBindingType=[Ut.prototype._getValue_direct,Ut.prototype._getValue_array,Ut.prototype._getValue_arrayElement,Ut.prototype._getValue_toArray];Ut.prototype.SetterByBindingTypeAndVersioning=[[Ut.prototype._setValue_direct,Ut.prototype._setValue_direct_setNeedsUpdate,Ut.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Ut.prototype._setValue_array,Ut.prototype._setValue_array_setNeedsUpdate,Ut.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Ut.prototype._setValue_arrayElement,Ut.prototype._setValue_arrayElement_setNeedsUpdate,Ut.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Ut.prototype._setValue_fromArray,Ut.prototype._setValue_fromArray_setNeedsUpdate,Ut.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:cy}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=cy);function Kw(n,e){if(e===Mgt)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),n;if(e===bb||e===zN){let t=n.getIndex();if(t===null){const o=[],a=n.getAttribute("position");if(a!==void 0){for(let c=0;c<a.count;c++)o.push(c);n.setIndex(o),t=n.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),n}const i=t.count-2,s=[];if(e===bb)for(let o=1;o<=i;o++)s.push(t.getX(0)),s.push(t.getX(o)),s.push(t.getX(o+1));else for(let o=0;o<i;o++)o%2===0?(s.push(t.getX(o)),s.push(t.getX(o+1)),s.push(t.getX(o+2))):(s.push(t.getX(o+2)),s.push(t.getX(o+1)),s.push(t.getX(o)));s.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const r=n.clone();return r.setIndex(s),r.clearGroups(),r}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),n}class $St extends Wa{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(t){return new XSt(t)}),this.register(function(t){return new o1t(t)}),this.register(function(t){return new a1t(t)}),this.register(function(t){return new l1t(t)}),this.register(function(t){return new JSt(t)}),this.register(function(t){return new e1t(t)}),this.register(function(t){return new t1t(t)}),this.register(function(t){return new n1t(t)}),this.register(function(t){return new QSt(t)}),this.register(function(t){return new i1t(t)}),this.register(function(t){return new ZSt(t)}),this.register(function(t){return new r1t(t)}),this.register(function(t){return new s1t(t)}),this.register(function(t){return new KSt(t)}),this.register(function(t){return new c1t(t)}),this.register(function(t){return new d1t(t)})}load(e,t,i,s){const r=this;let o;if(this.resourcePath!=="")o=this.resourcePath;else if(this.path!==""){const d=Dl.extractUrlBase(e);o=Dl.resolveURL(d,this.path)}else o=Dl.extractUrlBase(e);this.manager.itemStart(e);const a=function(d){s?s(d):console.error(d),r.manager.itemError(e),r.manager.itemEnd(e)},c=new mO(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,function(d){try{r.parse(d,o,function(u){t(u),r.manager.itemEnd(e)},a)}catch(u){a(u)}},i,a)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,i,s){let r;const o={},a={},c=new TextDecoder;if(typeof e=="string")r=JSON.parse(e);else if(e instanceof ArrayBuffer)if(c.decode(new Uint8Array(e,0,4))===bO){try{o[wt.KHR_BINARY_GLTF]=new u1t(e)}catch(_){s&&s(_);return}r=JSON.parse(o[wt.KHR_BINARY_GLTF].content)}else r=JSON.parse(c.decode(e));else r=e;if(r.asset===void 0||r.asset.version[0]<2){s&&s(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const d=new x1t(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const _=this.pluginCallbacks[u](d);_.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[_.name]=_,o[_.name]=!0}if(r.extensionsUsed)for(let u=0;u<r.extensionsUsed.length;++u){const _=r.extensionsUsed[u],m=r.extensionsRequired||[];switch(_){case wt.KHR_MATERIALS_UNLIT:o[_]=new jSt;break;case wt.KHR_DRACO_MESH_COMPRESSION:o[_]=new p1t(r,this.dracoLoader);break;case wt.KHR_TEXTURE_TRANSFORM:o[_]=new f1t;break;case wt.KHR_MESH_QUANTIZATION:o[_]=new _1t;break;default:m.indexOf(_)>=0&&a[_]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+_+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function WSt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const wt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class KSt{constructor(e){this.parser=e,this.name=wt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i<s;i++){const r=t[i];r.extensions&&r.extensions[this.name]&&r.extensions[this.name].light!==void 0&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){const t=this.parser,i="light:"+e;let s=t.cache.get(i);if(s)return s;const r=t.json,c=((r.extensions&&r.extensions[this.name]||{}).lights||[])[e];let d;const u=new pt(16777215);c.color!==void 0&&u.setRGB(c.color[0],c.color[1],c.color[2],Cn);const _=c.range!==void 0?c.range:0;switch(c.type){case"directional":d=new gO(u),d.target.position.set(0,0,-1),d.add(d.target);break;case"point":d=new kSt(u),d.distance=_;break;case"spot":d=new OSt(u),d.distance=_,c.spot=c.spot||{},c.spot.innerConeAngle=c.spot.innerConeAngle!==void 0?c.spot.innerConeAngle:0,c.spot.outerConeAngle=c.spot.outerConeAngle!==void 0?c.spot.outerConeAngle:Math.PI/4,d.angle=c.spot.outerConeAngle,d.penumbra=1-c.spot.innerConeAngle/c.spot.outerConeAngle,d.target.position.set(0,0,-1),d.add(d.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+c.type)}return d.position.set(0,0,0),d.decay=2,dr(d,c),c.intensity!==void 0&&(d.intensity=c.intensity),d.name=t.createUniqueName(c.name||"light_"+e),s=Promise.resolve(d),t.cache.add(i,s),s}getDependency(e,t){if(e==="light")return this._loadLight(t)}createNodeAttachment(e){const t=this,i=this.parser,r=i.json.nodes[e],a=(r.extensions&&r.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(c){return i._getNodeRef(t.cache,a,c)})}}class jSt{constructor(){this.name=wt.KHR_MATERIALS_UNLIT}getMaterialType(){return _r}extendParams(e,t,i){const s=[];e.color=new pt(1,1,1),e.opacity=1;const r=t.pbrMetallicRoughness;if(r){if(Array.isArray(r.baseColorFactor)){const o=r.baseColorFactor;e.color.setRGB(o[0],o[1],o[2],Cn),e.opacity=o[3]}r.baseColorTexture!==void 0&&s.push(i.assignTexture(e,"map",r.baseColorTexture,nn))}return Promise.all(s)}}class QSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const s=this.parser.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=s.extensions[this.name].emissiveStrength;return r!==void 0&&(t.emissiveIntensity=r),Promise.resolve()}}class XSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];if(o.clearcoatFactor!==void 0&&(t.clearcoat=o.clearcoatFactor),o.clearcoatTexture!==void 0&&r.push(i.assignTexture(t,"clearcoatMap",o.clearcoatTexture)),o.clearcoatRoughnessFactor!==void 0&&(t.clearcoatRoughness=o.clearcoatRoughnessFactor),o.clearcoatRoughnessTexture!==void 0&&r.push(i.assignTexture(t,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),o.clearcoatNormalTexture!==void 0&&(r.push(i.assignTexture(t,"clearcoatNormalMap",o.clearcoatNormalTexture)),o.clearcoatNormalTexture.scale!==void 0)){const a=o.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new Rt(a,a)}return Promise.all(r)}}class ZSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.iridescenceFactor!==void 0&&(t.iridescence=o.iridescenceFactor),o.iridescenceTexture!==void 0&&r.push(i.assignTexture(t,"iridescenceMap",o.iridescenceTexture)),o.iridescenceIor!==void 0&&(t.iridescenceIOR=o.iridescenceIor),t.iridescenceThicknessRange===void 0&&(t.iridescenceThicknessRange=[100,400]),o.iridescenceThicknessMinimum!==void 0&&(t.iridescenceThicknessRange[0]=o.iridescenceThicknessMinimum),o.iridescenceThicknessMaximum!==void 0&&(t.iridescenceThicknessRange[1]=o.iridescenceThicknessMaximum),o.iridescenceThicknessTexture!==void 0&&r.push(i.assignTexture(t,"iridescenceThicknessMap",o.iridescenceThicknessTexture)),Promise.all(r)}}class JSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_SHEEN}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[];t.sheenColor=new pt(0,0,0),t.sheenRoughness=0,t.sheen=1;const o=s.extensions[this.name];if(o.sheenColorFactor!==void 0){const a=o.sheenColorFactor;t.sheenColor.setRGB(a[0],a[1],a[2],Cn)}return o.sheenRoughnessFactor!==void 0&&(t.sheenRoughness=o.sheenRoughnessFactor),o.sheenColorTexture!==void 0&&r.push(i.assignTexture(t,"sheenColorMap",o.sheenColorTexture,nn)),o.sheenRoughnessTexture!==void 0&&r.push(i.assignTexture(t,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(r)}}class e1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.transmissionFactor!==void 0&&(t.transmission=o.transmissionFactor),o.transmissionTexture!==void 0&&r.push(i.assignTexture(t,"transmissionMap",o.transmissionTexture)),Promise.all(r)}}class t1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_VOLUME}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];t.thickness=o.thicknessFactor!==void 0?o.thicknessFactor:0,o.thicknessTexture!==void 0&&r.push(i.assignTexture(t,"thicknessMap",o.thicknessTexture)),t.attenuationDistance=o.attenuationDistance||1/0;const a=o.attenuationColor||[1,1,1];return t.attenuationColor=new pt().setRGB(a[0],a[1],a[2],Cn),Promise.all(r)}}class n1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_IOR}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const s=this.parser.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=s.extensions[this.name];return t.ior=r.ior!==void 0?r.ior:1.5,Promise.resolve()}}class i1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_SPECULAR}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];t.specularIntensity=o.specularFactor!==void 0?o.specularFactor:1,o.specularTexture!==void 0&&r.push(i.assignTexture(t,"specularIntensityMap",o.specularTexture));const a=o.specularColorFactor||[1,1,1];return t.specularColor=new pt().setRGB(a[0],a[1],a[2],Cn),o.specularColorTexture!==void 0&&r.push(i.assignTexture(t,"specularColorMap",o.specularColorTexture,nn)),Promise.all(r)}}class s1t{constructor(e){this.parser=e,this.name=wt.EXT_MATERIALS_BUMP}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return t.bumpScale=o.bumpFactor!==void 0?o.bumpFactor:1,o.bumpTexture!==void 0&&r.push(i.assignTexture(t,"bumpMap",o.bumpTexture)),Promise.all(r)}}class r1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.anisotropyStrength!==void 0&&(t.anisotropy=o.anisotropyStrength),o.anisotropyRotation!==void 0&&(t.anisotropyRotation=o.anisotropyRotation),o.anisotropyTexture!==void 0&&r.push(i.assignTexture(t,"anisotropyMap",o.anisotropyTexture)),Promise.all(r)}}class o1t{constructor(e){this.parser=e,this.name=wt.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,i=t.json,s=i.textures[e];if(!s.extensions||!s.extensions[this.name])return null;const r=s.extensions[this.name],o=t.options.ktx2Loader;if(!o){if(i.extensionsRequired&&i.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class a1t{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let c=i.textureLoader;if(a.uri){const d=i.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return i.loadTextureImage(e,o.source,c);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class l1t{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let c=i.textureLoader;if(a.uri){const d=i.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return i.loadTextureImage(e,o.source,c);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class c1t{constructor(e){this.name=wt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const c=s.byteOffset||0,d=s.byteLength||0,u=s.count,_=s.byteStride,m=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,_,m,s.mode,s.filter).then(function(h){return h.buffer}):o.ready.then(function(){const h=new ArrayBuffer(u*_);return o.decodeGltfBuffer(new Uint8Array(h),u,_,m,s.mode,s.filter),h})})}else return null}}class d1t{constructor(e){this.name=wt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const d of s.primitives)if(d.mode!==_i.TRIANGLES&&d.mode!==_i.TRIANGLE_STRIP&&d.mode!==_i.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],c={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(c[d]=u,c[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),_=u.isGroup?u.children:[u],m=d[0].count,h=[];for(const f of _){const y=new xt,b=new re,g=new Nr,E=new re(1,1,1),v=new fSt(f.geometry,f.material,m);for(let S=0;S<m;S++)c.TRANSLATION&&b.fromBufferAttribute(c.TRANSLATION,S),c.ROTATION&&g.fromBufferAttribute(c.ROTATION,S),c.SCALE&&E.fromBufferAttribute(c.SCALE,S),v.setMatrixAt(S,y.compose(b,g,E));for(const S in c)if(S==="_COLOR_0"){const R=c[S];v.instanceColor=new Tb(R.array,R.itemSize,R.normalized)}else S!=="TRANSLATION"&&S!=="ROTATION"&&S!=="SCALE"&&f.geometry.setAttribute(S,c[S]);Jt.prototype.copy.call(v,f),this.parser.assignFinalMaterial(v),h.push(v)}return u.isGroup?(u.clear(),u.add(...h),u):h[0]}))}}const bO="glTF",fl=12,jw={JSON:1313821514,BIN:5130562};class u1t{constructor(e){this.name=wt.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,fl),i=new TextDecoder;if(this.header={magic:i.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==bO)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const s=this.header.length-fl,r=new DataView(e,fl);let o=0;for(;o<s;){const a=r.getUint32(o,!0);o+=4;const c=r.getUint32(o,!0);if(o+=4,c===jw.JSON){const d=new Uint8Array(e,fl+o,a);this.content=i.decode(d)}else if(c===jw.BIN){const d=fl+o;this.body=e.slice(d,d+a)}o+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class p1t{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=wt.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const i=this.json,s=this.dracoLoader,r=e.extensions[this.name].bufferView,o=e.extensions[this.name].attributes,a={},c={},d={};for(const u in o){const _=Cb[u]||u.toLowerCase();a[_]=o[u]}for(const u in e.attributes){const _=Cb[u]||u.toLowerCase();if(o[u]!==void 0){const m=i.accessors[e.attributes[u]],h=aa[m.componentType];d[_]=h.name,c[_]=m.normalized===!0}}return t.getDependency("bufferView",r).then(function(u){return new Promise(function(_){s.decodeDracoFile(u,function(m){for(const h in m.attributes){const f=m.attributes[h],y=c[h];y!==void 0&&(f.normalized=y)}_(m)},a,d)})})}}class f1t{constructor(){this.name=wt.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return(t.texCoord===void 0||t.texCoord===e.channel)&&t.offset===void 0&&t.rotation===void 0&&t.scale===void 0||(e=e.clone(),t.texCoord!==void 0&&(e.channel=t.texCoord),t.offset!==void 0&&e.offset.fromArray(t.offset),t.rotation!==void 0&&(e.rotation=t.rotation),t.scale!==void 0&&e.repeat.fromArray(t.scale),e.needsUpdate=!0),e}}class _1t{constructor(){this.name=wt.KHR_MESH_QUANTIZATION}}class yO extends fc{constructor(e,t,i,s){super(e,t,i,s)}copySampleValue_(e){const t=this.resultBuffer,i=this.sampleValues,s=this.valueSize,r=e*s*3+s;for(let o=0;o!==s;o++)t[o]=i[r+o];return t}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=a*2,d=a*3,u=s-t,_=(i-t)/u,m=_*_,h=m*_,f=e*d,y=f-d,b=-2*h+3*m,g=h-m,E=1-b,v=g-m+_;for(let S=0;S!==a;S++){const R=o[y+S+a],C=o[y+S+c]*u,A=o[f+S+a],I=o[f+S]*u;r[S]=E*R+v*C+b*A+g*I}return r}}const m1t=new Nr;class h1t extends yO{interpolate_(e,t,i,s){const r=super.interpolate_(e,t,i,s);return m1t.fromArray(r).normalize().toArray(r),r}}const _i={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},aa={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},Qw={9728:gn,9729:Wn,9984:gb,9985:DN,9986:kd,9987:_o},Xw={33071:hi,33648:hu,10497:va},xg={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},Cb={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},Js={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},g1t={CUBICSPLINE:void 0,LINEAR:Ta,STEP:Xl},Cg={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function b1t(n){return n.DefaultMaterial===void 0&&(n.DefaultMaterial=new Sy({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Fs})),n.DefaultMaterial}function Br(n,e,t){for(const i in t.extensions)n[i]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[i]=t.extensions[i])}function dr(n,e){e.extras!==void 0&&(typeof e.extras=="object"?Object.assign(n.userData,e.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+e.extras))}function y1t(n,e,t){let i=!1,s=!1,r=!1;for(let d=0,u=e.length;d<u;d++){const _=e[d];if(_.POSITION!==void 0&&(i=!0),_.NORMAL!==void 0&&(s=!0),_.COLOR_0!==void 0&&(r=!0),i&&s&&r)break}if(!i&&!s&&!r)return Promise.resolve(n);const o=[],a=[],c=[];for(let d=0,u=e.length;d<u;d++){const _=e[d];if(i){const m=_.POSITION!==void 0?t.getDependency("accessor",_.POSITION):n.attributes.position;o.push(m)}if(s){const m=_.NORMAL!==void 0?t.getDependency("accessor",_.NORMAL):n.attributes.normal;a.push(m)}if(r){const m=_.COLOR_0!==void 0?t.getDependency("accessor",_.COLOR_0):n.attributes.color;c.push(m)}}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(c)]).then(function(d){const u=d[0],_=d[1],m=d[2];return i&&(n.morphAttributes.position=u),s&&(n.morphAttributes.normal=_),r&&(n.morphAttributes.color=m),n.morphTargetsRelative=!0,n})}function E1t(n,e){if(n.updateMorphTargets(),e.weights!==void 0)for(let t=0,i=e.weights.length;t<i;t++)n.morphTargetInfluences[t]=e.weights[t];if(e.extras&&Array.isArray(e.extras.targetNames)){const t=e.extras.targetNames;if(n.morphTargetInfluences.length===t.length){n.morphTargetDictionary={};for(let i=0,s=t.length;i<s;i++)n.morphTargetDictionary[t[i]]=i}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function v1t(n){let e;const t=n.extensions&&n.extensions[wt.KHR_DRACO_MESH_COMPRESSION];if(t?e="draco:"+t.bufferView+":"+t.indices+":"+wg(t.attributes):e=n.indices+":"+wg(n.attributes)+":"+n.mode,n.targets!==void 0)for(let i=0,s=n.targets.length;i<s;i++)e+=":"+wg(n.targets[i]);return e}function wg(n){let e="";const t=Object.keys(n).sort();for(let i=0,s=t.length;i<s;i++)e+=t[i]+":"+n[t[i]]+";";return e}function wb(n){switch(n){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function S1t(n){return n.search(/\.jpe?g($|\?)/i)>0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const T1t=new xt;class x1t{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new WSt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new hO(this.options.manager):this.textureLoader=new PSt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new mO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return Br(r,a,s),dr(a,s),Promise.all(i._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s<r;s++){const o=t[s].joints;for(let a=0,c=o.length;a<c;a++)e[o[a]].isBone=!0}for(let s=0,r=e.length;s<r;s++){const o=e[s];o.mesh!==void 0&&(this._addNodeRef(this.meshCache,o.mesh),o.skin!==void 0&&(i[o.mesh].isSkinnedMesh=!0)),o.camera!==void 0&&this._addNodeRef(this.cameraCache,o.camera)}}_addNodeRef(e,t){t!==void 0&&(e.refs[t]===void 0&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,i){if(e.refs[t]<=1)return i;const s=i.clone(),r=(o,a)=>{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())r(u,a.children[d])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i<t.length;i++){const s=e(t[i]);if(s)return s}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const i=[];for(let s=0;s<t.length;s++){const r=e(t[s]);r&&i.push(r)}return i}getDependency(e,t){const i=e+":"+t;let s=this.cache.get(i);if(!s){switch(e){case"scene":s=this.loadScene(t);break;case"node":s=this._invokeOne(function(r){return r.loadNode&&r.loadNode(t)});break;case"mesh":s=this._invokeOne(function(r){return r.loadMesh&&r.loadMesh(t)});break;case"accessor":s=this.loadAccessor(t);break;case"bufferView":s=this._invokeOne(function(r){return r.loadBufferView&&r.loadBufferView(t)});break;case"buffer":s=this.loadBuffer(t);break;case"material":s=this._invokeOne(function(r){return r.loadMaterial&&r.loadMaterial(t)});break;case"texture":s=this._invokeOne(function(r){return r.loadTexture&&r.loadTexture(t)});break;case"skin":s=this.loadSkin(t);break;case"animation":s=this._invokeOne(function(r){return r.loadAnimation&&r.loadAnimation(t)});break;case"camera":s=this.loadCamera(t);break;default:if(s=this._invokeOne(function(r){return r!=this&&r.getDependency&&r.getDependency(e,t)}),!s)throw new Error("Unknown type: "+e);break}this.cache.add(i,s)}return s}getDependencies(e){let t=this.cache.get(e);if(!t){const i=this,s=this.json[e+(e==="mesh"?"es":"s")]||[];t=Promise.all(s.map(function(r,o){return i.getDependency(e,o)})),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],i=this.fileLoader;if(t.type&&t.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(t.uri===void 0&&e===0)return Promise.resolve(this.extensions[wt.KHR_BINARY_GLTF].body);const s=this.options;return new Promise(function(r,o){i.load(Dl.resolveURL(t.uri,s.path),r,void 0,function(){o(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))})})}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then(function(i){const s=t.byteLength||0,r=t.byteOffset||0;return i.slice(r,r+s)})}loadAccessor(e){const t=this,i=this.json,s=this.json.accessors[e];if(s.bufferView===void 0&&s.sparse===void 0){const o=xg[s.type],a=aa[s.componentType],c=s.normalized===!0,d=new a(s.count*o);return Promise.resolve(new zn(d,o,c))}const r=[];return s.bufferView!==void 0?r.push(this.getDependency("bufferView",s.bufferView)):r.push(null),s.sparse!==void 0&&(r.push(this.getDependency("bufferView",s.sparse.indices.bufferView)),r.push(this.getDependency("bufferView",s.sparse.values.bufferView))),Promise.all(r).then(function(o){const a=o[0],c=xg[s.type],d=aa[s.componentType],u=d.BYTES_PER_ELEMENT,_=u*c,m=s.byteOffset||0,h=s.bufferView!==void 0?i.bufferViews[s.bufferView].byteStride:void 0,f=s.normalized===!0;let y,b;if(h&&h!==_){const g=Math.floor(m/h),E="InterleavedBuffer:"+s.bufferView+":"+s.componentType+":"+g+":"+s.count;let v=t.cache.get(E);v||(y=new d(a,g*h,s.count*h/u),v=new aSt(y,h/u),t.cache.add(E,v)),b=new yy(v,c,m%h/u,f)}else a===null?y=new d(s.count*c):y=new d(a,m,s.count*c),b=new zn(y,c,f);if(s.sparse!==void 0){const g=xg.SCALAR,E=aa[s.sparse.indices.componentType],v=s.sparse.indices.byteOffset||0,S=s.sparse.values.byteOffset||0,R=new E(o[1],v,s.sparse.count*g),C=new d(o[2],S,s.sparse.count*c);a!==null&&(b=new zn(b.array.slice(),b.itemSize,b.normalized));for(let A=0,I=R.length;A<I;A++){const x=R[A];if(b.setX(x,C[A*c]),c>=2&&b.setY(x,C[A*c+1]),c>=3&&b.setZ(x,C[A*c+2]),c>=4&&b.setW(x,C[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const c=i.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(t,i).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const m=(r.samplers||{})[o.sampler]||{};return u.magFilter=Qw[m.magFilter]||Wn,u.minFilter=Qw[m.minFilter]||_o,u.wrapS=Xw[m.wrapS]||va,u.wrapT=Xw[m.wrapT]||va,s.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(_=>_.clone());const o=s.images[e],a=self.URL||self.webkitURL;let c=o.uri||"",d=!1;if(o.bufferView!==void 0)c=i.getDependency("bufferView",o.bufferView).then(function(_){d=!0;const m=new Blob([_],{type:o.mimeType});return c=a.createObjectURL(m),c});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then(function(_){return new Promise(function(m,h){let f=m;t.isImageBitmapLoader===!0&&(f=function(y){const b=new xn(y);b.needsUpdate=!0,m(b)}),t.load(Dl.resolveURL(_,r.path),f,void 0,h)})}).then(function(_){return d===!0&&a.revokeObjectURL(c),_.userData.mimeType=o.mimeType||S1t(o.uri),_}).catch(function(_){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),_});return this.sourceCache[e]=u,u}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[wt.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[wt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=r.associations.get(o);o=r.extensions[wt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,c)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let c=this.cache.get(a);c||(c=new pO,Vi.prototype.copy.call(c,i),c.color.copy(i.color),c.map=i.map,c.sizeAttenuation=!1,this.cache.add(a,c)),i=c}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let c=this.cache.get(a);c||(c=new uO,Vi.prototype.copy.call(c,i),c.color.copy(i.color),c.map=i.map,this.cache.add(a,c)),i=c}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=i.clone(),r&&(c.vertexColors=!0),o&&(c.flatShading=!0),s&&(c.normalScale&&(c.normalScale.y*=-1),c.clearcoatNormalScale&&(c.clearcoatNormalScale.y*=-1)),this.cache.add(a,c),this.associations.set(c,this.associations.get(i))),i=c}e.material=i}getMaterialType(){return Sy}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},c=r.extensions||{},d=[];if(c[wt.KHR_MATERIALS_UNLIT]){const _=s[wt.KHR_MATERIALS_UNLIT];o=_.getMaterialType(),d.push(_.extendParams(a,r,t))}else{const _=r.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(_.baseColorFactor)){const m=_.baseColorFactor;a.color.setRGB(m[0],m[1],m[2],Cn),a.opacity=m[3]}_.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",_.baseColorTexture,nn)),a.metalness=_.metallicFactor!==void 0?_.metallicFactor:1,a.roughness=_.roughnessFactor!==void 0?_.roughnessFactor:1,_.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",_.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",_.metallicRoughnessTexture))),o=this._invokeOne(function(m){return m.getMaterialType&&m.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(m){return m.extendMaterialParams&&m.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=Ji);const u=r.alphaMode||Cg.OPAQUE;if(u===Cg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===Cg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==_r&&(d.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Rt(1,1),r.normalTexture.scale!==void 0)){const _=r.normalTexture.scale;a.normalScale.set(_,_)}if(r.occlusionTexture!==void 0&&o!==_r&&(d.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==_r){const _=r.emissiveFactor;a.emissive=new pt().setRGB(_[0],_[1],_[2],Cn)}return r.emissiveTexture!==void 0&&o!==_r&&d.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,nn)),Promise.all(d).then(function(){const _=new o(a);return r.name&&(_.name=r.name),dr(_,r),t.associations.set(_,{materials:e}),r.extensions&&Br(s,_,r),_})}createUniqueName(e){const t=Ut.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[wt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(c){return Zw(c,a,t)})}const o=[];for(let a=0,c=e.length;a<c;a++){const d=e[a],u=v1t(d),_=s[u];if(_)o.push(_.promise);else{let m;d.extensions&&d.extensions[wt.KHR_DRACO_MESH_COMPRESSION]?m=r(d):m=Zw(new fs,d,t),s[u]={primitive:d,promise:m},o.push(m)}}return Promise.all(o)}loadMesh(e){const t=this,i=this.json,s=this.extensions,r=i.meshes[e],o=r.primitives,a=[];for(let c=0,d=o.length;c<d;c++){const u=o[c].material===void 0?b1t(this.cache):this.getDependency("material",o[c].material);a.push(u)}return a.push(t.loadGeometries(o)),Promise.all(a).then(function(c){const d=c.slice(0,c.length-1),u=c[c.length-1],_=[];for(let h=0,f=u.length;h<f;h++){const y=u[h],b=o[h];let g;const E=d[h];if(b.mode===_i.TRIANGLES||b.mode===_i.TRIANGLE_STRIP||b.mode===_i.TRIANGLE_FAN||b.mode===void 0)g=r.isSkinnedMesh===!0?new cSt(y,E):new Vn(y,E),g.isSkinnedMesh===!0&&g.normalizeSkinWeights(),b.mode===_i.TRIANGLE_STRIP?g.geometry=Kw(g.geometry,zN):b.mode===_i.TRIANGLE_FAN&&(g.geometry=Kw(g.geometry,bb));else if(b.mode===_i.LINES)g=new _St(y,E);else if(b.mode===_i.LINE_STRIP)g=new vy(y,E);else if(b.mode===_i.LINE_LOOP)g=new mSt(y,E);else if(b.mode===_i.POINTS)g=new hSt(y,E);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+b.mode);Object.keys(g.geometry.morphAttributes).length>0&&E1t(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),dr(g,r),b.extensions&&Br(s,g,b),t.assignFinalMaterial(g),_.push(g)}for(let h=0,f=_.length;h<f;h++)t.associations.set(_[h],{meshes:e,primitives:h});if(_.length===1)return r.extensions&&Br(s,_[0],r),_[0];const m=new Qr;r.extensions&&Br(s,m,r),t.associations.set(m,{meshes:e});for(let h=0,f=_.length;h<f;h++)m.add(_[h]);return m})}loadCamera(e){let t;const i=this.json.cameras[e],s=i[i.type];if(!s){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return i.type==="perspective"?t=new Gn(ebt.radToDeg(s.yfov),s.aspectRatio||1,s.znear||1,s.zfar||2e6):i.type==="orthographic"&&(t=new gy(-s.xmag,s.xmag,s.ymag,-s.ymag,s.znear,s.zfar)),i.name&&(t.name=this.createUniqueName(i.name)),dr(t,i),Promise.resolve(t)}loadSkin(e){const t=this.json.skins[e],i=[];for(let s=0,r=t.joints.length;s<r;s++)i.push(this._loadNodeShallow(t.joints[s]));return t.inverseBindMatrices!==void 0?i.push(this.getDependency("accessor",t.inverseBindMatrices)):i.push(null),Promise.all(i).then(function(s){const r=s.pop(),o=s,a=[],c=[];for(let d=0,u=o.length;d<u;d++){const _=o[d];if(_){a.push(_);const m=new xt;r!==null&&m.fromArray(r.array,d*16),c.push(m)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[d])}return new Ey(a,c)})}loadAnimation(e){const t=this.json,i=this,s=t.animations[e],r=s.name?s.name:"animation_"+e,o=[],a=[],c=[],d=[],u=[];for(let _=0,m=s.channels.length;_<m;_++){const h=s.channels[_],f=s.samplers[h.sampler],y=h.target,b=y.node,g=s.parameters!==void 0?s.parameters[f.input]:f.input,E=s.parameters!==void 0?s.parameters[f.output]:f.output;y.node!==void 0&&(o.push(this.getDependency("node",b)),a.push(this.getDependency("accessor",g)),c.push(this.getDependency("accessor",E)),d.push(f),u.push(y))}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(c),Promise.all(d),Promise.all(u)]).then(function(_){const m=_[0],h=_[1],f=_[2],y=_[3],b=_[4],g=[];for(let E=0,v=m.length;E<v;E++){const S=m[E],R=h[E],C=f[E],A=y[E],I=b[E];if(S===void 0)continue;S.updateMatrix&&S.updateMatrix();const x=i._createAnimationTracks(S,R,C,A,I);if(x)for(let M=0;M<x.length;M++)g.push(x[M])}return new TSt(r,void 0,g)})}createNodeMesh(e){const t=this.json,i=this,s=t.nodes[e];return s.mesh===void 0?null:i.getDependency("mesh",s.mesh).then(function(r){const o=i._getNodeRef(i.meshCache,s.mesh,r);return s.weights!==void 0&&o.traverse(function(a){if(a.isMesh)for(let c=0,d=s.weights.length;c<d;c++)a.morphTargetInfluences[c]=s.weights[c]}),o})}loadNode(e){const t=this.json,i=this,s=t.nodes[e],r=i._loadNodeShallow(e),o=[],a=s.children||[];for(let d=0,u=a.length;d<u;d++)o.push(i.getDependency("node",a[d]));const c=s.skin===void 0?Promise.resolve(null):i.getDependency("skin",s.skin);return Promise.all([r,Promise.all(o),c]).then(function(d){const u=d[0],_=d[1],m=d[2];m!==null&&u.traverse(function(h){h.isSkinnedMesh&&h.bind(m,T1t)});for(let h=0,f=_.length;h<f;h++)u.add(_[h]);return u})}_loadNodeShallow(e){const t=this.json,i=this.extensions,s=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];const r=t.nodes[e],o=r.name?s.createUniqueName(r.name):"",a=[],c=s._invokeOne(function(d){return d.createNodeMesh&&d.createNodeMesh(e)});return c&&a.push(c),r.camera!==void 0&&a.push(s.getDependency("camera",r.camera).then(function(d){return s._getNodeRef(s.cameraCache,r.camera,d)})),s._invokeAll(function(d){return d.createNodeAttachment&&d.createNodeAttachment(e)}).forEach(function(d){a.push(d)}),this.nodeCache[e]=Promise.all(a).then(function(d){let u;if(r.isBone===!0?u=new dO:d.length>1?u=new Qr:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let _=0,m=d.length;_<m;_++)u.add(d[_]);if(r.name&&(u.userData.name=r.name,u.name=o),dr(u,r),r.extensions&&Br(i,u,r),r.matrix!==void 0){const _=new xt;_.fromArray(r.matrix),u.applyMatrix4(_)}else r.translation!==void 0&&u.position.fromArray(r.translation),r.rotation!==void 0&&u.quaternion.fromArray(r.rotation),r.scale!==void 0&&u.scale.fromArray(r.scale);return s.associations.has(u)||s.associations.set(u,{}),s.associations.get(u).nodes=e,u}),this.nodeCache[e]}loadScene(e){const t=this.extensions,i=this.json.scenes[e],s=this,r=new Qr;i.name&&(r.name=s.createUniqueName(i.name)),dr(r,i),i.extensions&&Br(t,r,i);const o=i.nodes||[],a=[];for(let c=0,d=o.length;c<d;c++)a.push(s.getDependency("node",o[c]));return Promise.all(a).then(function(c){for(let u=0,_=c.length;u<_;u++)r.add(c[u]);const d=u=>{const _=new Map;for(const[m,h]of s.associations)(m instanceof Vi||m instanceof xn)&&_.set(m,h);return u.traverse(m=>{const h=s.associations.get(m);h!=null&&_.set(m,h)}),_};return s.associations=d(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,c=[];Js[r.path]===Js.weights?e.traverse(function(m){m.morphTargetInfluences&&c.push(m.name?m.name:m.uuid)}):c.push(a);let d;switch(Js[r.path]){case Js.weights:d=wa;break;case Js.rotation:d=go;break;case Js.position:case Js.scale:d=Ra;break;default:switch(i.itemSize){case 1:d=wa;break;case 2:case 3:default:d=Ra;break}break}const u=s.interpolation!==void 0?g1t[s.interpolation]:Ta,_=this._getArrayFromAccessor(i);for(let m=0,h=c.length;m<h;m++){const f=new d(c[m]+"."+Js[r.path],t.array,_,u);s.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(f),o.push(f)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const i=wb(t.constructor),s=new Float32Array(t.length);for(let r=0,o=t.length;r<o;r++)s[r]=t[r]*i;t=s}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(i){const s=this instanceof go?h1t:yO;return new s(this.times,this.values,this.getValueSize()/3,i)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function C1t(n,e,t){const i=e.attributes,s=new Gs;if(i.POSITION!==void 0){const a=t.json.accessors[i.POSITION],c=a.min,d=a.max;if(c!==void 0&&d!==void 0){if(s.set(new re(c[0],c[1],c[2]),new re(d[0],d[1],d[2])),a.normalized){const u=wb(aa[a.componentType]);s.min.multiplyScalar(u),s.max.multiplyScalar(u)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const r=e.targets;if(r!==void 0){const a=new re,c=new re;for(let d=0,u=r.length;d<u;d++){const _=r[d];if(_.POSITION!==void 0){const m=t.json.accessors[_.POSITION],h=m.min,f=m.max;if(h!==void 0&&f!==void 0){if(c.setX(Math.max(Math.abs(h[0]),Math.abs(f[0]))),c.setY(Math.max(Math.abs(h[1]),Math.abs(f[1]))),c.setZ(Math.max(Math.abs(h[2]),Math.abs(f[2]))),m.normalized){const y=wb(aa[m.componentType]);c.multiplyScalar(y)}a.max(c)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}s.expandByVector(a)}n.boundingBox=s;const o=new ps;s.getCenter(o.center),o.radius=s.min.distanceTo(s.max)/2,n.boundingSphere=o}function Zw(n,e,t){const i=e.attributes,s=[];function r(o,a){return t.getDependency("accessor",o).then(function(c){n.setAttribute(a,c)})}for(const o in i){const a=Cb[o]||o.toLowerCase();a in n.attributes||s.push(r(i[o],a))}if(e.indices!==void 0&&!n.index){const o=t.getDependency("accessor",e.indices).then(function(a){n.setIndex(a)});s.push(o)}return Lt.workingColorSpace!==Cn&&"COLOR_0"in i&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Lt.workingColorSpace}" not supported.`),dr(n,e),C1t(n,e,t),Promise.all(s).then(function(){return e.targets!==void 0?y1t(n,e.targets,t):n})}const w1t={data(){return{isVideoActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startVideoStream(){this.isVideoActive=!0,Ye.emit("start_webcam_video_stream"),Le(()=>{Ve.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,Ye.emit("stop_webcam_video_stream"),Le(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},R1t=["src"],A1t=["src"],M1t={class:"controls"},N1t={key:2};function O1t(n,e,t,i,s,r){return T(),w("div",{class:"floating-frame bg-white",style:Wt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(T(),w("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,R1t)):B("",!0),s.isVideoActive&&s.imageDataUrl==null?(T(),w("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,A1t)):B("",!0),l("div",M1t,[s.isVideoActive?B("",!0):(T(),w("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startVideoStream&&r.startVideoStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"video"},null,-1)]))),s.isVideoActive?(T(),w("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopVideoStream&&r.stopVideoStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"video"},null,-1)]))):B("",!0),s.isVideoActive?(T(),w("span",N1t,"FPS: "+$(s.frameRate),1)):B("",!0)])],36)}const I1t=st(w1t,[["render",O1t]]),k1t={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){Ye.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Le(()=>{Ve.replace()})},stopAudioStream(){Ye.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Le(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},D1t=["src"],L1t={class:"controls"};function P1t(n,e,t,i,s,r){return T(),w("div",{class:"floating-frame bg-white",style:Wt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(T(),w("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,D1t)):B("",!0),l("div",L1t,[s.isAudioActive?B("",!0):(T(),w("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startAudioStream&&r.startAudioStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"mic"},null,-1)]))),s.isAudioActive?(T(),w("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopAudioStream&&r.stopAudioStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"mic"},null,-1)]))):B("",!0)])],36)}const F1t=st(k1t,[["render",P1t]]),U1t={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:I1t,AudioFrame:F1t},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Le(()=>{Ve.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new oSt,this.camera=new Gn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new cO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new Er,e=new Hw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube);const t=new LSt(4210752),i=new gO(16777215,.5);i.position.set(0,1,0),this.scene.add(t),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new $St().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new Er,t=new hO().load(n),i=new _r({map:t});this.cube=new Vn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new Er,e=new Hw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},B1t={ref:"webglContainer"},G1t={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},V1t={key:0,class:"text-center"},z1t={key:1,class:"text-center"},H1t={class:"floating-frame2"},q1t=["innerHTML"];function Y1t(n,e,t,i,s,r){const o=nt("VideoFrame"),a=nt("AudioFrame");return T(),w(Be,null,[l("div",B1t,null,512),l("div",G1t,[!s.activePersonality||!s.activePersonality.scene_path?(T(),w("div",V1t," Personality does not have a 3d avatar. ")):B("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(T(),w("div",z1t," Personality does not have an avatar. ")):B("",!0),l("div",H1t,[l("div",{innerHTML:n.htmlContent},null,8,q1t)])]),z(o,{ref:"video_frame"},null,512),z(a,{ref:"audio_frame"},null,512)],64)}const $1t=st(U1t,[["render",Y1t]]);let gd;const W1t=new Uint8Array(16);function K1t(){if(!gd&&(gd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gd(W1t)}const En=[];for(let n=0;n<256;++n)En.push((n+256).toString(16).slice(1));function j1t(n,e=0){return En[n[e+0]]+En[n[e+1]]+En[n[e+2]]+En[n[e+3]]+"-"+En[n[e+4]]+En[n[e+5]]+"-"+En[n[e+6]]+En[n[e+7]]+"-"+En[n[e+8]]+En[n[e+9]]+"-"+En[n[e+10]]+En[n[e+11]]+En[n[e+12]]+En[n[e+13]]+En[n[e+14]]+En[n[e+15]]}const Q1t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Jw={randomUUID:Q1t};function Ds(n,e,t){if(Jw.randomUUID&&!e&&!n)return Jw.randomUUID();n=n||{};const i=n.random||(n.rng||K1t)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,j1t(i)}class ro{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you.
+}`;function jvt(n,e,t){let i=new my;const s=new Rt,r=new Rt,o=new $t,a=new Yvt({depthPacking:Ngt}),c=new $vt,d={},u=t.maxTextureSize,_={[Fs]:Zn,[Zn]:Fs,[Ji]:Ji},m=new ho({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Rt},radius:{value:4}},vertexShader:Wvt,fragmentShader:Kvt}),h=m.clone();h.defines.HORIZONTAL_PASS=1;const f=new fs;f.setAttribute("position",new zn(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new Vn(f,m),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=IN;let g=this.type;this.render=function(R,C,A){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||R.length===0)return;const I=n.getRenderTarget(),x=n.getActiveCubeFace(),M=n.getActiveMipmapLevel(),G=n.state;G.setBlending(gr),G.buffers.color.setClear(1,1,1,1),G.buffers.depth.setTest(!0),G.setScissorTest(!1);const V=g!==xs&&this.type===xs,ee=g===xs&&this.type!==xs;for(let O=0,H=R.length;O<H;O++){const q=R[O],L=q.shadow;if(L===void 0){console.warn("THREE.WebGLShadowMap:",q,"has no shadow.");continue}if(L.autoUpdate===!1&&L.needsUpdate===!1)continue;s.copy(L.mapSize);const Y=L.getFrameExtents();if(s.multiply(Y),r.copy(L.mapSize),(s.x>u||s.y>u)&&(s.x>u&&(r.x=Math.floor(u/Y.x),s.x=r.x*Y.x,L.mapSize.x=r.x),s.y>u&&(r.y=Math.floor(u/Y.y),s.y=r.y*Y.y,L.mapSize.y=r.y)),L.map===null||V===!0||ee===!0){const oe=this.type!==xs?{minFilter:gn,magFilter:gn}:{};L.map!==null&&L.map.dispose(),L.map=new mo(s.x,s.y,oe),L.map.texture.name=q.name+".shadowMap",L.camera.updateProjectionMatrix()}n.setRenderTarget(L.map),n.clear();const ne=L.getViewportCount();for(let oe=0;oe<ne;oe++){const ye=L.getViewport(oe);o.set(r.x*ye.x,r.y*ye.y,r.x*ye.z,r.y*ye.w),G.viewport(o),L.updateMatrices(q,oe),i=L.getFrustum(),S(C,A,L.camera,q,this.type)}L.isPointLightShadow!==!0&&this.type===xs&&E(L,A),L.needsUpdate=!1}g=this.type,b.needsUpdate=!1,n.setRenderTarget(I,x,M)};function E(R,C){const A=e.update(y);m.defines.VSM_SAMPLES!==R.blurSamples&&(m.defines.VSM_SAMPLES=R.blurSamples,h.defines.VSM_SAMPLES=R.blurSamples,m.needsUpdate=!0,h.needsUpdate=!0),R.mapPass===null&&(R.mapPass=new mo(s.x,s.y)),m.uniforms.shadow_pass.value=R.map.texture,m.uniforms.resolution.value=R.mapSize,m.uniforms.radius.value=R.radius,n.setRenderTarget(R.mapPass),n.clear(),n.renderBufferDirect(C,null,A,m,y,null),h.uniforms.shadow_pass.value=R.mapPass.texture,h.uniforms.resolution.value=R.mapSize,h.uniforms.radius.value=R.radius,n.setRenderTarget(R.map),n.clear(),n.renderBufferDirect(C,null,A,h,y,null)}function v(R,C,A,I){let x=null;const M=A.isPointLight===!0?R.customDistanceMaterial:R.customDepthMaterial;if(M!==void 0)x=M;else if(x=A.isPointLight===!0?c:a,n.localClippingEnabled&&C.clipShadows===!0&&Array.isArray(C.clippingPlanes)&&C.clippingPlanes.length!==0||C.displacementMap&&C.displacementScale!==0||C.alphaMap&&C.alphaTest>0||C.map&&C.alphaTest>0){const G=x.uuid,V=C.uuid;let ee=d[G];ee===void 0&&(ee={},d[G]=ee);let O=ee[V];O===void 0&&(O=x.clone(),ee[V]=O),x=O}if(x.visible=C.visible,x.wireframe=C.wireframe,I===xs?x.side=C.shadowSide!==null?C.shadowSide:C.side:x.side=C.shadowSide!==null?C.shadowSide:_[C.side],x.alphaMap=C.alphaMap,x.alphaTest=C.alphaTest,x.map=C.map,x.clipShadows=C.clipShadows,x.clippingPlanes=C.clippingPlanes,x.clipIntersection=C.clipIntersection,x.displacementMap=C.displacementMap,x.displacementScale=C.displacementScale,x.displacementBias=C.displacementBias,x.wireframeLinewidth=C.wireframeLinewidth,x.linewidth=C.linewidth,A.isPointLight===!0&&x.isMeshDistanceMaterial===!0){const G=n.properties.get(x);G.light=A}return x}function S(R,C,A,I,x){if(R.visible===!1)return;if(R.layers.test(C.layers)&&(R.isMesh||R.isLine||R.isPoints)&&(R.castShadow||R.receiveShadow&&x===xs)&&(!R.frustumCulled||i.intersectsObject(R))){R.modelViewMatrix.multiplyMatrices(A.matrixWorldInverse,R.matrixWorld);const V=e.update(R),ee=R.material;if(Array.isArray(ee)){const O=V.groups;for(let H=0,q=O.length;H<q;H++){const L=O[H],Y=ee[L.materialIndex];if(Y&&Y.visible){const ne=v(R,Y,I,x);R.onBeforeShadow(n,R,C,A,V,ne,L),n.renderBufferDirect(A,null,V,ne,R,L),R.onAfterShadow(n,R,C,A,V,ne,L)}}}else if(ee.visible){const O=v(R,ee,I,x);R.onBeforeShadow(n,R,C,A,V,O,null),n.renderBufferDirect(A,null,V,O,R,null),R.onAfterShadow(n,R,C,A,V,O,null)}}const G=R.children;for(let V=0,ee=G.length;V<ee;V++)S(G[V],C,A,I,x)}}function Qvt(n,e,t){const i=t.isWebGL2;function s(){let J=!1;const je=new $t;let Ge=null;const Ne=new $t(0,0,0,0);return{setMask:function(qe){Ge!==qe&&!J&&(n.colorMask(qe,qe,qe,qe),Ge=qe)},setLocked:function(qe){J=qe},setClear:function(qe,dt,Nt,dn,wn){wn===!0&&(qe*=dn,dt*=dn,Nt*=dn),je.set(qe,dt,Nt,dn),Ne.equals(je)===!1&&(n.clearColor(qe,dt,Nt,dn),Ne.copy(je))},reset:function(){J=!1,Ge=null,Ne.set(-1,0,0,0)}}}function r(){let J=!1,je=null,Ge=null,Ne=null;return{setTest:function(qe){qe?_e(n.DEPTH_TEST):Ae(n.DEPTH_TEST)},setMask:function(qe){je!==qe&&!J&&(n.depthMask(qe),je=qe)},setFunc:function(qe){if(Ge!==qe){switch(qe){case sgt:n.depthFunc(n.NEVER);break;case rgt:n.depthFunc(n.ALWAYS);break;case ogt:n.depthFunc(n.LESS);break;case mu:n.depthFunc(n.LEQUAL);break;case agt:n.depthFunc(n.EQUAL);break;case lgt:n.depthFunc(n.GEQUAL);break;case cgt:n.depthFunc(n.GREATER);break;case dgt:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}Ge=qe}},setLocked:function(qe){J=qe},setClear:function(qe){Ne!==qe&&(n.clearDepth(qe),Ne=qe)},reset:function(){J=!1,je=null,Ge=null,Ne=null}}}function o(){let J=!1,je=null,Ge=null,Ne=null,qe=null,dt=null,Nt=null,dn=null,wn=null;return{setTest:function(Ht){J||(Ht?_e(n.STENCIL_TEST):Ae(n.STENCIL_TEST))},setMask:function(Ht){je!==Ht&&!J&&(n.stencilMask(Ht),je=Ht)},setFunc:function(Ht,Rn,Oi){(Ge!==Ht||Ne!==Rn||qe!==Oi)&&(n.stencilFunc(Ht,Rn,Oi),Ge=Ht,Ne=Rn,qe=Oi)},setOp:function(Ht,Rn,Oi){(dt!==Ht||Nt!==Rn||dn!==Oi)&&(n.stencilOp(Ht,Rn,Oi),dt=Ht,Nt=Rn,dn=Oi)},setLocked:function(Ht){J=Ht},setClear:function(Ht){wn!==Ht&&(n.clearStencil(Ht),wn=Ht)},reset:function(){J=!1,je=null,Ge=null,Ne=null,qe=null,dt=null,Nt=null,dn=null,wn=null}}}const a=new s,c=new r,d=new o,u=new WeakMap,_=new WeakMap;let m={},h={},f=new WeakMap,y=[],b=null,g=!1,E=null,v=null,S=null,R=null,C=null,A=null,I=null,x=new pt(0,0,0),M=0,G=!1,V=null,ee=null,O=null,H=null,q=null;const L=n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let Y=!1,ne=0;const oe=n.getParameter(n.VERSION);oe.indexOf("WebGL")!==-1?(ne=parseFloat(/^WebGL (\d)/.exec(oe)[1]),Y=ne>=1):oe.indexOf("OpenGL ES")!==-1&&(ne=parseFloat(/^OpenGL ES (\d)/.exec(oe)[1]),Y=ne>=2);let ye=null,xe={};const le=n.getParameter(n.SCISSOR_BOX),ve=n.getParameter(n.VIEWPORT),Oe=new $t().fromArray(le),De=new $t().fromArray(ve);function Q(J,je,Ge,Ne){const qe=new Uint8Array(4),dt=n.createTexture();n.bindTexture(J,dt),n.texParameteri(J,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(J,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let Nt=0;Nt<Ge;Nt++)i&&(J===n.TEXTURE_3D||J===n.TEXTURE_2D_ARRAY)?n.texImage3D(je,0,n.RGBA,1,1,Ne,0,n.RGBA,n.UNSIGNED_BYTE,qe):n.texImage2D(je+Nt,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,qe);return dt}const fe={};fe[n.TEXTURE_2D]=Q(n.TEXTURE_2D,n.TEXTURE_2D,1),fe[n.TEXTURE_CUBE_MAP]=Q(n.TEXTURE_CUBE_MAP,n.TEXTURE_CUBE_MAP_POSITIVE_X,6),i&&(fe[n.TEXTURE_2D_ARRAY]=Q(n.TEXTURE_2D_ARRAY,n.TEXTURE_2D_ARRAY,1,1),fe[n.TEXTURE_3D]=Q(n.TEXTURE_3D,n.TEXTURE_3D,1,1)),a.setClear(0,0,0,1),c.setClear(1),d.setClear(0),_e(n.DEPTH_TEST),c.setFunc(mu),he(!1),ae(oC),_e(n.CULL_FACE),ce(gr);function _e(J){m[J]!==!0&&(n.enable(J),m[J]=!0)}function Ae(J){m[J]!==!1&&(n.disable(J),m[J]=!1)}function Fe(J,je){return h[J]!==je?(n.bindFramebuffer(J,je),h[J]=je,i&&(J===n.DRAW_FRAMEBUFFER&&(h[n.FRAMEBUFFER]=je),J===n.FRAMEBUFFER&&(h[n.DRAW_FRAMEBUFFER]=je)),!0):!1}function te(J,je){let Ge=y,Ne=!1;if(J)if(Ge=f.get(je),Ge===void 0&&(Ge=[],f.set(je,Ge)),J.isWebGLMultipleRenderTargets){const qe=J.texture;if(Ge.length!==qe.length||Ge[0]!==n.COLOR_ATTACHMENT0){for(let dt=0,Nt=qe.length;dt<Nt;dt++)Ge[dt]=n.COLOR_ATTACHMENT0+dt;Ge.length=qe.length,Ne=!0}}else Ge[0]!==n.COLOR_ATTACHMENT0&&(Ge[0]=n.COLOR_ATTACHMENT0,Ne=!0);else Ge[0]!==n.BACK&&(Ge[0]=n.BACK,Ne=!0);Ne&&(t.isWebGL2?n.drawBuffers(Ge):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(Ge))}function U(J){return b!==J?(n.useProgram(J),b=J,!0):!1}const P={[$r]:n.FUNC_ADD,[Hht]:n.FUNC_SUBTRACT,[qht]:n.FUNC_REVERSE_SUBTRACT};if(i)P[dC]=n.MIN,P[uC]=n.MAX;else{const J=e.get("EXT_blend_minmax");J!==null&&(P[dC]=J.MIN_EXT,P[uC]=J.MAX_EXT)}const Z={[Yht]:n.ZERO,[$ht]:n.ONE,[Wht]:n.SRC_COLOR,[fb]:n.SRC_ALPHA,[Jht]:n.SRC_ALPHA_SATURATE,[Xht]:n.DST_COLOR,[jht]:n.DST_ALPHA,[Kht]:n.ONE_MINUS_SRC_COLOR,[_b]:n.ONE_MINUS_SRC_ALPHA,[Zht]:n.ONE_MINUS_DST_COLOR,[Qht]:n.ONE_MINUS_DST_ALPHA,[egt]:n.CONSTANT_COLOR,[tgt]:n.ONE_MINUS_CONSTANT_COLOR,[ngt]:n.CONSTANT_ALPHA,[igt]:n.ONE_MINUS_CONSTANT_ALPHA};function ce(J,je,Ge,Ne,qe,dt,Nt,dn,wn,Ht){if(J===gr){g===!0&&(Ae(n.BLEND),g=!1);return}if(g===!1&&(_e(n.BLEND),g=!0),J!==zht){if(J!==E||Ht!==G){if((v!==$r||C!==$r)&&(n.blendEquation(n.FUNC_ADD),v=$r,C=$r),Ht)switch(J){case ra:n.blendFuncSeparate(n.ONE,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case aC:n.blendFunc(n.ONE,n.ONE);break;case lC:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case cC:n.blendFuncSeparate(n.ZERO,n.SRC_COLOR,n.ZERO,n.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",J);break}else switch(J){case ra:n.blendFuncSeparate(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case aC:n.blendFunc(n.SRC_ALPHA,n.ONE);break;case lC:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case cC:n.blendFunc(n.ZERO,n.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",J);break}S=null,R=null,A=null,I=null,x.set(0,0,0),M=0,E=J,G=Ht}return}qe=qe||je,dt=dt||Ge,Nt=Nt||Ne,(je!==v||qe!==C)&&(n.blendEquationSeparate(P[je],P[qe]),v=je,C=qe),(Ge!==S||Ne!==R||dt!==A||Nt!==I)&&(n.blendFuncSeparate(Z[Ge],Z[Ne],Z[dt],Z[Nt]),S=Ge,R=Ne,A=dt,I=Nt),(dn.equals(x)===!1||wn!==M)&&(n.blendColor(dn.r,dn.g,dn.b,wn),x.copy(dn),M=wn),E=J,G=!1}function pe(J,je){J.side===Ji?Ae(n.CULL_FACE):_e(n.CULL_FACE);let Ge=J.side===Zn;je&&(Ge=!Ge),he(Ge),J.blending===ra&&J.transparent===!1?ce(gr):ce(J.blending,J.blendEquation,J.blendSrc,J.blendDst,J.blendEquationAlpha,J.blendSrcAlpha,J.blendDstAlpha,J.blendColor,J.blendAlpha,J.premultipliedAlpha),c.setFunc(J.depthFunc),c.setTest(J.depthTest),c.setMask(J.depthWrite),a.setMask(J.colorWrite);const Ne=J.stencilWrite;d.setTest(Ne),Ne&&(d.setMask(J.stencilWriteMask),d.setFunc(J.stencilFunc,J.stencilRef,J.stencilFuncMask),d.setOp(J.stencilFail,J.stencilZFail,J.stencilZPass)),Re(J.polygonOffset,J.polygonOffsetFactor,J.polygonOffsetUnits),J.alphaToCoverage===!0?_e(n.SAMPLE_ALPHA_TO_COVERAGE):Ae(n.SAMPLE_ALPHA_TO_COVERAGE)}function he(J){V!==J&&(J?n.frontFace(n.CW):n.frontFace(n.CCW),V=J)}function ae(J){J!==Bht?(_e(n.CULL_FACE),J!==ee&&(J===oC?n.cullFace(n.BACK):J===Ght?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):Ae(n.CULL_FACE),ee=J}function Me(J){J!==O&&(Y&&n.lineWidth(J),O=J)}function Re(J,je,Ge){J?(_e(n.POLYGON_OFFSET_FILL),(H!==je||q!==Ge)&&(n.polygonOffset(je,Ge),H=je,q=Ge)):Ae(n.POLYGON_OFFSET_FILL)}function ge(J){J?_e(n.SCISSOR_TEST):Ae(n.SCISSOR_TEST)}function D(J){J===void 0&&(J=n.TEXTURE0+L-1),ye!==J&&(n.activeTexture(J),ye=J)}function N(J,je,Ge){Ge===void 0&&(ye===null?Ge=n.TEXTURE0+L-1:Ge=ye);let Ne=xe[Ge];Ne===void 0&&(Ne={type:void 0,texture:void 0},xe[Ge]=Ne),(Ne.type!==J||Ne.texture!==je)&&(ye!==Ge&&(n.activeTexture(Ge),ye=Ge),n.bindTexture(J,je||fe[J]),Ne.type=J,Ne.texture=je)}function K(){const J=xe[ye];J!==void 0&&J.type!==void 0&&(n.bindTexture(J.type,null),J.type=void 0,J.texture=void 0)}function me(){try{n.compressedTexImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function j(){try{n.compressedTexImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function se(){try{n.texSubImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Ce(){try{n.texSubImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function we(){try{n.compressedTexSubImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function ke(){try{n.compressedTexSubImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function We(){try{n.texStorage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function lt(){try{n.texStorage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Pe(){try{n.texImage2D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function Mt(){try{n.texImage3D.apply(n,arguments)}catch(J){console.error("THREE.WebGLState:",J)}}function et(J){Oe.equals(J)===!1&&(n.scissor(J.x,J.y,J.z,J.w),Oe.copy(J))}function tt(J){De.equals(J)===!1&&(n.viewport(J.x,J.y,J.z,J.w),De.copy(J))}function ze(J,je){let Ge=_.get(je);Ge===void 0&&(Ge=new WeakMap,_.set(je,Ge));let Ne=Ge.get(J);Ne===void 0&&(Ne=n.getUniformBlockIndex(je,J.name),Ge.set(J,Ne))}function Ke(J,je){const Ne=_.get(je).get(J);u.get(je)!==Ne&&(n.uniformBlockBinding(je,Ne,J.__bindingPointIndex),u.set(je,Ne))}function mt(){n.disable(n.BLEND),n.disable(n.CULL_FACE),n.disable(n.DEPTH_TEST),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SCISSOR_TEST),n.disable(n.STENCIL_TEST),n.disable(n.SAMPLE_ALPHA_TO_COVERAGE),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ZERO),n.blendFuncSeparate(n.ONE,n.ZERO,n.ONE,n.ZERO),n.blendColor(0,0,0,0),n.colorMask(!0,!0,!0,!0),n.clearColor(0,0,0,0),n.depthMask(!0),n.depthFunc(n.LESS),n.clearDepth(1),n.stencilMask(4294967295),n.stencilFunc(n.ALWAYS,0,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),n.clearStencil(0),n.cullFace(n.BACK),n.frontFace(n.CCW),n.polygonOffset(0,0),n.activeTexture(n.TEXTURE0),n.bindFramebuffer(n.FRAMEBUFFER,null),i===!0&&(n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),n.bindFramebuffer(n.READ_FRAMEBUFFER,null)),n.useProgram(null),n.lineWidth(1),n.scissor(0,0,n.canvas.width,n.canvas.height),n.viewport(0,0,n.canvas.width,n.canvas.height),m={},ye=null,xe={},h={},f=new WeakMap,y=[],b=null,g=!1,E=null,v=null,S=null,R=null,C=null,A=null,I=null,x=new pt(0,0,0),M=0,G=!1,V=null,ee=null,O=null,H=null,q=null,Oe.set(0,0,n.canvas.width,n.canvas.height),De.set(0,0,n.canvas.width,n.canvas.height),a.reset(),c.reset(),d.reset()}return{buffers:{color:a,depth:c,stencil:d},enable:_e,disable:Ae,bindFramebuffer:Fe,drawBuffers:te,useProgram:U,setBlending:ce,setMaterial:pe,setFlipSided:he,setCullFace:ae,setLineWidth:Me,setPolygonOffset:Re,setScissorTest:ge,activeTexture:D,bindTexture:N,unbindTexture:K,compressedTexImage2D:me,compressedTexImage3D:j,texImage2D:Pe,texImage3D:Mt,updateUBOMapping:ze,uniformBlockBinding:Ke,texStorage2D:We,texStorage3D:lt,texSubImage2D:se,texSubImage3D:Ce,compressedTexSubImage2D:we,compressedTexSubImage3D:ke,scissor:et,viewport:tt,reset:mt}}function Xvt(n,e,t,i,s,r,o){const a=s.isWebGL2,c=s.maxTextures,d=s.maxCubemapSize,u=s.maxTextureSize,_=s.maxSamples,m=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,h=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),f=new WeakMap;let y;const b=new WeakMap;let g=!1;try{g=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function E(D,N){return g?new OffscreenCanvas(D,N):Zl("canvas")}function v(D,N,K,me){let j=1;if((D.width>me||D.height>me)&&(j=me/Math.max(D.width,D.height)),j<1||N===!0)if(typeof HTMLImageElement<"u"&&D instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&D instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&D instanceof ImageBitmap){const se=N?vu:Math.floor,Ce=se(j*D.width),we=se(j*D.height);y===void 0&&(y=E(Ce,we));const ke=K?E(Ce,we):y;return ke.width=Ce,ke.height=we,ke.getContext("2d").drawImage(D,0,0,Ce,we),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+D.width+"x"+D.height+") to ("+Ce+"x"+we+")."),ke}else return"data"in D&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+D.width+"x"+D.height+")."),D;return D}function S(D){return vb(D.width)&&vb(D.height)}function R(D){return a?!1:D.wrapS!==hi||D.wrapT!==hi||D.minFilter!==gn&&D.minFilter!==Wn}function C(D,N){return D.generateMipmaps&&N&&D.minFilter!==gn&&D.minFilter!==Wn}function A(D){n.generateMipmap(D)}function I(D,N,K,me,j=!1){if(a===!1)return N;if(D!==null){if(n[D]!==void 0)return n[D];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+D+"'")}let se=N;if(N===n.RED&&(K===n.FLOAT&&(se=n.R32F),K===n.HALF_FLOAT&&(se=n.R16F),K===n.UNSIGNED_BYTE&&(se=n.R8)),N===n.RED_INTEGER&&(K===n.UNSIGNED_BYTE&&(se=n.R8UI),K===n.UNSIGNED_SHORT&&(se=n.R16UI),K===n.UNSIGNED_INT&&(se=n.R32UI),K===n.BYTE&&(se=n.R8I),K===n.SHORT&&(se=n.R16I),K===n.INT&&(se=n.R32I)),N===n.RG&&(K===n.FLOAT&&(se=n.RG32F),K===n.HALF_FLOAT&&(se=n.RG16F),K===n.UNSIGNED_BYTE&&(se=n.RG8)),N===n.RGBA){const Ce=j?gu:Lt.getTransfer(me);K===n.FLOAT&&(se=n.RGBA32F),K===n.HALF_FLOAT&&(se=n.RGBA16F),K===n.UNSIGNED_BYTE&&(se=Ce===jt?n.SRGB8_ALPHA8:n.RGBA8),K===n.UNSIGNED_SHORT_4_4_4_4&&(se=n.RGBA4),K===n.UNSIGNED_SHORT_5_5_5_1&&(se=n.RGB5_A1)}return(se===n.R16F||se===n.R32F||se===n.RG16F||se===n.RG32F||se===n.RGBA16F||se===n.RGBA32F)&&e.get("EXT_color_buffer_float"),se}function x(D,N,K){return C(D,K)===!0||D.isFramebufferTexture&&D.minFilter!==gn&&D.minFilter!==Wn?Math.log2(Math.max(N.width,N.height))+1:D.mipmaps!==void 0&&D.mipmaps.length>0?D.mipmaps.length:D.isCompressedTexture&&Array.isArray(D.image)?N.mipmaps.length:1}function M(D){return D===gn||D===gb||D===kd?n.NEAREST:n.LINEAR}function G(D){const N=D.target;N.removeEventListener("dispose",G),ee(N),N.isVideoTexture&&f.delete(N)}function V(D){const N=D.target;N.removeEventListener("dispose",V),H(N)}function ee(D){const N=i.get(D);if(N.__webglInit===void 0)return;const K=D.source,me=b.get(K);if(me){const j=me[N.__cacheKey];j.usedTimes--,j.usedTimes===0&&O(D),Object.keys(me).length===0&&b.delete(K)}i.remove(D)}function O(D){const N=i.get(D);n.deleteTexture(N.__webglTexture);const K=D.source,me=b.get(K);delete me[N.__cacheKey],o.memory.textures--}function H(D){const N=D.texture,K=i.get(D),me=i.get(N);if(me.__webglTexture!==void 0&&(n.deleteTexture(me.__webglTexture),o.memory.textures--),D.depthTexture&&D.depthTexture.dispose(),D.isWebGLCubeRenderTarget)for(let j=0;j<6;j++){if(Array.isArray(K.__webglFramebuffer[j]))for(let se=0;se<K.__webglFramebuffer[j].length;se++)n.deleteFramebuffer(K.__webglFramebuffer[j][se]);else n.deleteFramebuffer(K.__webglFramebuffer[j]);K.__webglDepthbuffer&&n.deleteRenderbuffer(K.__webglDepthbuffer[j])}else{if(Array.isArray(K.__webglFramebuffer))for(let j=0;j<K.__webglFramebuffer.length;j++)n.deleteFramebuffer(K.__webglFramebuffer[j]);else n.deleteFramebuffer(K.__webglFramebuffer);if(K.__webglDepthbuffer&&n.deleteRenderbuffer(K.__webglDepthbuffer),K.__webglMultisampledFramebuffer&&n.deleteFramebuffer(K.__webglMultisampledFramebuffer),K.__webglColorRenderbuffer)for(let j=0;j<K.__webglColorRenderbuffer.length;j++)K.__webglColorRenderbuffer[j]&&n.deleteRenderbuffer(K.__webglColorRenderbuffer[j]);K.__webglDepthRenderbuffer&&n.deleteRenderbuffer(K.__webglDepthRenderbuffer)}if(D.isWebGLMultipleRenderTargets)for(let j=0,se=N.length;j<se;j++){const Ce=i.get(N[j]);Ce.__webglTexture&&(n.deleteTexture(Ce.__webglTexture),o.memory.textures--),i.remove(N[j])}i.remove(N),i.remove(D)}let q=0;function L(){q=0}function Y(){const D=q;return D>=c&&console.warn("THREE.WebGLTextures: Trying to use "+D+" texture units while this GPU supports only "+c),q+=1,D}function ne(D){const N=[];return N.push(D.wrapS),N.push(D.wrapT),N.push(D.wrapR||0),N.push(D.magFilter),N.push(D.minFilter),N.push(D.anisotropy),N.push(D.internalFormat),N.push(D.format),N.push(D.type),N.push(D.generateMipmaps),N.push(D.premultiplyAlpha),N.push(D.flipY),N.push(D.unpackAlignment),N.push(D.colorSpace),N.join()}function oe(D,N){const K=i.get(D);if(D.isVideoTexture&&Re(D),D.isRenderTargetTexture===!1&&D.version>0&&K.__version!==D.version){const me=D.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{_e(K,D,N);return}}t.bindTexture(n.TEXTURE_2D,K.__webglTexture,n.TEXTURE0+N)}function ye(D,N){const K=i.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_2D_ARRAY,K.__webglTexture,n.TEXTURE0+N)}function xe(D,N){const K=i.get(D);if(D.version>0&&K.__version!==D.version){_e(K,D,N);return}t.bindTexture(n.TEXTURE_3D,K.__webglTexture,n.TEXTURE0+N)}function le(D,N){const K=i.get(D);if(D.version>0&&K.__version!==D.version){Ae(K,D,N);return}t.bindTexture(n.TEXTURE_CUBE_MAP,K.__webglTexture,n.TEXTURE0+N)}const ve={[va]:n.REPEAT,[hi]:n.CLAMP_TO_EDGE,[hu]:n.MIRRORED_REPEAT},Oe={[gn]:n.NEAREST,[gb]:n.NEAREST_MIPMAP_NEAREST,[kd]:n.NEAREST_MIPMAP_LINEAR,[Wn]:n.LINEAR,[DN]:n.LINEAR_MIPMAP_NEAREST,[_o]:n.LINEAR_MIPMAP_LINEAR},De={[Igt]:n.NEVER,[Ugt]:n.ALWAYS,[kgt]:n.LESS,[qN]:n.LEQUAL,[Dgt]:n.EQUAL,[Fgt]:n.GEQUAL,[Lgt]:n.GREATER,[Pgt]:n.NOTEQUAL};function Q(D,N,K){if(K?(n.texParameteri(D,n.TEXTURE_WRAP_S,ve[N.wrapS]),n.texParameteri(D,n.TEXTURE_WRAP_T,ve[N.wrapT]),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,ve[N.wrapR]),n.texParameteri(D,n.TEXTURE_MAG_FILTER,Oe[N.magFilter]),n.texParameteri(D,n.TEXTURE_MIN_FILTER,Oe[N.minFilter])):(n.texParameteri(D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),(D===n.TEXTURE_3D||D===n.TEXTURE_2D_ARRAY)&&n.texParameteri(D,n.TEXTURE_WRAP_R,n.CLAMP_TO_EDGE),(N.wrapS!==hi||N.wrapT!==hi)&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),n.texParameteri(D,n.TEXTURE_MAG_FILTER,M(N.magFilter)),n.texParameteri(D,n.TEXTURE_MIN_FILTER,M(N.minFilter)),N.minFilter!==gn&&N.minFilter!==Wn&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),N.compareFunction&&(n.texParameteri(D,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(D,n.TEXTURE_COMPARE_FUNC,De[N.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){const me=e.get("EXT_texture_filter_anisotropic");if(N.magFilter===gn||N.minFilter!==kd&&N.minFilter!==_o||N.type===As&&e.has("OES_texture_float_linear")===!1||a===!1&&N.type===Ql&&e.has("OES_texture_half_float_linear")===!1)return;(N.anisotropy>1||i.get(N).__currentAnisotropy)&&(n.texParameterf(D,me.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(N.anisotropy,s.getMaxAnisotropy())),i.get(N).__currentAnisotropy=N.anisotropy)}}function fe(D,N){let K=!1;D.__webglInit===void 0&&(D.__webglInit=!0,N.addEventListener("dispose",G));const me=N.source;let j=b.get(me);j===void 0&&(j={},b.set(me,j));const se=ne(N);if(se!==D.__cacheKey){j[se]===void 0&&(j[se]={texture:n.createTexture(),usedTimes:0},o.memory.textures++,K=!0),j[se].usedTimes++;const Ce=j[D.__cacheKey];Ce!==void 0&&(j[D.__cacheKey].usedTimes--,Ce.usedTimes===0&&O(N)),D.__cacheKey=se,D.__webglTexture=j[se].texture}return K}function _e(D,N,K){let me=n.TEXTURE_2D;(N.isDataArrayTexture||N.isCompressedArrayTexture)&&(me=n.TEXTURE_2D_ARRAY),N.isData3DTexture&&(me=n.TEXTURE_3D);const j=fe(D,N),se=N.source;t.bindTexture(me,D.__webglTexture,n.TEXTURE0+K);const Ce=i.get(se);if(se.version!==Ce.__version||j===!0){t.activeTexture(n.TEXTURE0+K);const we=Lt.getPrimaries(Lt.workingColorSpace),ke=N.colorSpace===bi?null:Lt.getPrimaries(N.colorSpace),We=N.colorSpace===bi||we===ke?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,We);const lt=R(N)&&S(N.image)===!1;let Pe=v(N.image,lt,!1,u);Pe=ge(N,Pe);const Mt=S(Pe)||a,et=r.convert(N.format,N.colorSpace);let tt=r.convert(N.type),ze=I(N.internalFormat,et,tt,N.colorSpace,N.isVideoTexture);Q(me,N,Mt);let Ke;const mt=N.mipmaps,J=a&&N.isVideoTexture!==!0&&ze!==VN,je=Ce.__version===void 0||j===!0,Ge=x(N,Pe,Mt);if(N.isDepthTexture)ze=n.DEPTH_COMPONENT,a?N.type===As?ze=n.DEPTH_COMPONENT32F:N.type===fr?ze=n.DEPTH_COMPONENT24:N.type===no?ze=n.DEPTH24_STENCIL8:ze=n.DEPTH_COMPONENT16:N.type===As&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),N.format===io&&ze===n.DEPTH_COMPONENT&&N.type!==uy&&N.type!==fr&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),N.type=fr,tt=r.convert(N.type)),N.format===Sa&&ze===n.DEPTH_COMPONENT&&(ze=n.DEPTH_STENCIL,N.type!==no&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),N.type=no,tt=r.convert(N.type))),je&&(J?t.texStorage2D(n.TEXTURE_2D,1,ze,Pe.width,Pe.height):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,et,tt,null));else if(N.isDataTexture)if(mt.length>0&&Mt){J&&je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,mt[0].width,mt[0].height);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],J?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,Ke.width,Ke.height,et,tt,Ke.data):t.texImage2D(n.TEXTURE_2D,Ne,ze,Ke.width,Ke.height,0,et,tt,Ke.data);N.generateMipmaps=!1}else J?(je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,Pe.width,Pe.height),t.texSubImage2D(n.TEXTURE_2D,0,0,0,Pe.width,Pe.height,et,tt,Pe.data)):t.texImage2D(n.TEXTURE_2D,0,ze,Pe.width,Pe.height,0,et,tt,Pe.data);else if(N.isCompressedTexture)if(N.isCompressedArrayTexture){J&&je&&t.texStorage3D(n.TEXTURE_2D_ARRAY,Ge,ze,mt[0].width,mt[0].height,Pe.depth);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],N.format!==gi?et!==null?J?t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Ne,0,0,0,Ke.width,Ke.height,Pe.depth,et,Ke.data,0,0):t.compressedTexImage3D(n.TEXTURE_2D_ARRAY,Ne,ze,Ke.width,Ke.height,Pe.depth,0,Ke.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):J?t.texSubImage3D(n.TEXTURE_2D_ARRAY,Ne,0,0,0,Ke.width,Ke.height,Pe.depth,et,tt,Ke.data):t.texImage3D(n.TEXTURE_2D_ARRAY,Ne,ze,Ke.width,Ke.height,Pe.depth,0,et,tt,Ke.data)}else{J&&je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,mt[0].width,mt[0].height);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],N.format!==gi?et!==null?J?t.compressedTexSubImage2D(n.TEXTURE_2D,Ne,0,0,Ke.width,Ke.height,et,Ke.data):t.compressedTexImage2D(n.TEXTURE_2D,Ne,ze,Ke.width,Ke.height,0,Ke.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):J?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,Ke.width,Ke.height,et,tt,Ke.data):t.texImage2D(n.TEXTURE_2D,Ne,ze,Ke.width,Ke.height,0,et,tt,Ke.data)}else if(N.isDataArrayTexture)J?(je&&t.texStorage3D(n.TEXTURE_2D_ARRAY,Ge,ze,Pe.width,Pe.height,Pe.depth),t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,0,Pe.width,Pe.height,Pe.depth,et,tt,Pe.data)):t.texImage3D(n.TEXTURE_2D_ARRAY,0,ze,Pe.width,Pe.height,Pe.depth,0,et,tt,Pe.data);else if(N.isData3DTexture)J?(je&&t.texStorage3D(n.TEXTURE_3D,Ge,ze,Pe.width,Pe.height,Pe.depth),t.texSubImage3D(n.TEXTURE_3D,0,0,0,0,Pe.width,Pe.height,Pe.depth,et,tt,Pe.data)):t.texImage3D(n.TEXTURE_3D,0,ze,Pe.width,Pe.height,Pe.depth,0,et,tt,Pe.data);else if(N.isFramebufferTexture){if(je)if(J)t.texStorage2D(n.TEXTURE_2D,Ge,ze,Pe.width,Pe.height);else{let Ne=Pe.width,qe=Pe.height;for(let dt=0;dt<Ge;dt++)t.texImage2D(n.TEXTURE_2D,dt,ze,Ne,qe,0,et,tt,null),Ne>>=1,qe>>=1}}else if(mt.length>0&&Mt){J&&je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,mt[0].width,mt[0].height);for(let Ne=0,qe=mt.length;Ne<qe;Ne++)Ke=mt[Ne],J?t.texSubImage2D(n.TEXTURE_2D,Ne,0,0,et,tt,Ke):t.texImage2D(n.TEXTURE_2D,Ne,ze,et,tt,Ke);N.generateMipmaps=!1}else J?(je&&t.texStorage2D(n.TEXTURE_2D,Ge,ze,Pe.width,Pe.height),t.texSubImage2D(n.TEXTURE_2D,0,0,0,et,tt,Pe)):t.texImage2D(n.TEXTURE_2D,0,ze,et,tt,Pe);C(N,Mt)&&A(me),Ce.__version=se.version,N.onUpdate&&N.onUpdate(N)}D.__version=N.version}function Ae(D,N,K){if(N.image.length!==6)return;const me=fe(D,N),j=N.source;t.bindTexture(n.TEXTURE_CUBE_MAP,D.__webglTexture,n.TEXTURE0+K);const se=i.get(j);if(j.version!==se.__version||me===!0){t.activeTexture(n.TEXTURE0+K);const Ce=Lt.getPrimaries(Lt.workingColorSpace),we=N.colorSpace===bi?null:Lt.getPrimaries(N.colorSpace),ke=N.colorSpace===bi||Ce===we?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,N.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,N.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,N.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,ke);const We=N.isCompressedTexture||N.image[0].isCompressedTexture,lt=N.image[0]&&N.image[0].isDataTexture,Pe=[];for(let Ne=0;Ne<6;Ne++)!We&&!lt?Pe[Ne]=v(N.image[Ne],!1,!0,d):Pe[Ne]=lt?N.image[Ne].image:N.image[Ne],Pe[Ne]=ge(N,Pe[Ne]);const Mt=Pe[0],et=S(Mt)||a,tt=r.convert(N.format,N.colorSpace),ze=r.convert(N.type),Ke=I(N.internalFormat,tt,ze,N.colorSpace),mt=a&&N.isVideoTexture!==!0,J=se.__version===void 0||me===!0;let je=x(N,Mt,et);Q(n.TEXTURE_CUBE_MAP,N,et);let Ge;if(We){mt&&J&&t.texStorage2D(n.TEXTURE_CUBE_MAP,je,Ke,Mt.width,Mt.height);for(let Ne=0;Ne<6;Ne++){Ge=Pe[Ne].mipmaps;for(let qe=0;qe<Ge.length;qe++){const dt=Ge[qe];N.format!==gi?tt!==null?mt?t.compressedTexSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,0,0,dt.width,dt.height,tt,dt.data):t.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,Ke,dt.width,dt.height,0,dt.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,0,0,dt.width,dt.height,tt,ze,dt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe,Ke,dt.width,dt.height,0,tt,ze,dt.data)}}}else{Ge=N.mipmaps,mt&&J&&(Ge.length>0&&je++,t.texStorage2D(n.TEXTURE_CUBE_MAP,je,Ke,Pe[0].width,Pe[0].height));for(let Ne=0;Ne<6;Ne++)if(lt){mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,Pe[Ne].width,Pe[Ne].height,tt,ze,Pe[Ne].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,Ke,Pe[Ne].width,Pe[Ne].height,0,tt,ze,Pe[Ne].data);for(let qe=0;qe<Ge.length;qe++){const Nt=Ge[qe].image[Ne].image;mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,0,0,Nt.width,Nt.height,tt,ze,Nt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,Ke,Nt.width,Nt.height,0,tt,ze,Nt.data)}}else{mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,0,0,tt,ze,Pe[Ne]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,0,Ke,tt,ze,Pe[Ne]);for(let qe=0;qe<Ge.length;qe++){const dt=Ge[qe];mt?t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,0,0,tt,ze,dt.image[Ne]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+Ne,qe+1,Ke,tt,ze,dt.image[Ne])}}}C(N,et)&&A(n.TEXTURE_CUBE_MAP),se.__version=j.version,N.onUpdate&&N.onUpdate(N)}D.__version=N.version}function Fe(D,N,K,me,j,se){const Ce=r.convert(K.format,K.colorSpace),we=r.convert(K.type),ke=I(K.internalFormat,Ce,we,K.colorSpace);if(!i.get(N).__hasExternalTextures){const lt=Math.max(1,N.width>>se),Pe=Math.max(1,N.height>>se);j===n.TEXTURE_3D||j===n.TEXTURE_2D_ARRAY?t.texImage3D(j,se,ke,lt,Pe,N.depth,0,Ce,we,null):t.texImage2D(j,se,ke,lt,Pe,0,Ce,we,null)}t.bindFramebuffer(n.FRAMEBUFFER,D),Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,me,j,i.get(K).__webglTexture,0,ae(N)):(j===n.TEXTURE_2D||j>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&j<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,me,j,i.get(K).__webglTexture,se),t.bindFramebuffer(n.FRAMEBUFFER,null)}function te(D,N,K){if(n.bindRenderbuffer(n.RENDERBUFFER,D),N.depthBuffer&&!N.stencilBuffer){let me=a===!0?n.DEPTH_COMPONENT24:n.DEPTH_COMPONENT16;if(K||Me(N)){const j=N.depthTexture;j&&j.isDepthTexture&&(j.type===As?me=n.DEPTH_COMPONENT32F:j.type===fr&&(me=n.DEPTH_COMPONENT24));const se=ae(N);Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,se,me,N.width,N.height):n.renderbufferStorageMultisample(n.RENDERBUFFER,se,me,N.width,N.height)}else n.renderbufferStorage(n.RENDERBUFFER,me,N.width,N.height);n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,D)}else if(N.depthBuffer&&N.stencilBuffer){const me=ae(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,me,n.DEPTH24_STENCIL8,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,N.width,N.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,D)}else{const me=N.isWebGLMultipleRenderTargets===!0?N.texture:[N.texture];for(let j=0;j<me.length;j++){const se=me[j],Ce=r.convert(se.format,se.colorSpace),we=r.convert(se.type),ke=I(se.internalFormat,Ce,we,se.colorSpace),We=ae(N);K&&Me(N)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,We,ke,N.width,N.height):Me(N)?m.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,We,ke,N.width,N.height):n.renderbufferStorage(n.RENDERBUFFER,ke,N.width,N.height)}}n.bindRenderbuffer(n.RENDERBUFFER,null)}function U(D,N){if(N&&N.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(n.FRAMEBUFFER,D),!(N.depthTexture&&N.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(N.depthTexture).__webglTexture||N.depthTexture.image.width!==N.width||N.depthTexture.image.height!==N.height)&&(N.depthTexture.image.width=N.width,N.depthTexture.image.height=N.height,N.depthTexture.needsUpdate=!0),oe(N.depthTexture,0);const me=i.get(N.depthTexture).__webglTexture,j=ae(N);if(N.depthTexture.format===io)Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,me,0,j):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,me,0);else if(N.depthTexture.format===Sa)Me(N)?m.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,me,0,j):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,me,0);else throw new Error("Unknown depthTexture format")}function P(D){const N=i.get(D),K=D.isWebGLCubeRenderTarget===!0;if(D.depthTexture&&!N.__autoAllocateDepthBuffer){if(K)throw new Error("target.depthTexture not supported in Cube render targets");U(N.__webglFramebuffer,D)}else if(K){N.__webglDepthbuffer=[];for(let me=0;me<6;me++)t.bindFramebuffer(n.FRAMEBUFFER,N.__webglFramebuffer[me]),N.__webglDepthbuffer[me]=n.createRenderbuffer(),te(N.__webglDepthbuffer[me],D,!1)}else t.bindFramebuffer(n.FRAMEBUFFER,N.__webglFramebuffer),N.__webglDepthbuffer=n.createRenderbuffer(),te(N.__webglDepthbuffer,D,!1);t.bindFramebuffer(n.FRAMEBUFFER,null)}function Z(D,N,K){const me=i.get(D);N!==void 0&&Fe(me.__webglFramebuffer,D,D.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,0),K!==void 0&&P(D)}function ce(D){const N=D.texture,K=i.get(D),me=i.get(N);D.addEventListener("dispose",V),D.isWebGLMultipleRenderTargets!==!0&&(me.__webglTexture===void 0&&(me.__webglTexture=n.createTexture()),me.__version=N.version,o.memory.textures++);const j=D.isWebGLCubeRenderTarget===!0,se=D.isWebGLMultipleRenderTargets===!0,Ce=S(D)||a;if(j){K.__webglFramebuffer=[];for(let we=0;we<6;we++)if(a&&N.mipmaps&&N.mipmaps.length>0){K.__webglFramebuffer[we]=[];for(let ke=0;ke<N.mipmaps.length;ke++)K.__webglFramebuffer[we][ke]=n.createFramebuffer()}else K.__webglFramebuffer[we]=n.createFramebuffer()}else{if(a&&N.mipmaps&&N.mipmaps.length>0){K.__webglFramebuffer=[];for(let we=0;we<N.mipmaps.length;we++)K.__webglFramebuffer[we]=n.createFramebuffer()}else K.__webglFramebuffer=n.createFramebuffer();if(se)if(s.drawBuffers){const we=D.texture;for(let ke=0,We=we.length;ke<We;ke++){const lt=i.get(we[ke]);lt.__webglTexture===void 0&&(lt.__webglTexture=n.createTexture(),o.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(a&&D.samples>0&&Me(D)===!1){const we=se?N:[N];K.__webglMultisampledFramebuffer=n.createFramebuffer(),K.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,K.__webglMultisampledFramebuffer);for(let ke=0;ke<we.length;ke++){const We=we[ke];K.__webglColorRenderbuffer[ke]=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,K.__webglColorRenderbuffer[ke]);const lt=r.convert(We.format,We.colorSpace),Pe=r.convert(We.type),Mt=I(We.internalFormat,lt,Pe,We.colorSpace,D.isXRRenderTarget===!0),et=ae(D);n.renderbufferStorageMultisample(n.RENDERBUFFER,et,Mt,D.width,D.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+ke,n.RENDERBUFFER,K.__webglColorRenderbuffer[ke])}n.bindRenderbuffer(n.RENDERBUFFER,null),D.depthBuffer&&(K.__webglDepthRenderbuffer=n.createRenderbuffer(),te(K.__webglDepthRenderbuffer,D,!0)),t.bindFramebuffer(n.FRAMEBUFFER,null)}}if(j){t.bindTexture(n.TEXTURE_CUBE_MAP,me.__webglTexture),Q(n.TEXTURE_CUBE_MAP,N,Ce);for(let we=0;we<6;we++)if(a&&N.mipmaps&&N.mipmaps.length>0)for(let ke=0;ke<N.mipmaps.length;ke++)Fe(K.__webglFramebuffer[we][ke],D,N,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+we,ke);else Fe(K.__webglFramebuffer[we],D,N,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+we,0);C(N,Ce)&&A(n.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(se){const we=D.texture;for(let ke=0,We=we.length;ke<We;ke++){const lt=we[ke],Pe=i.get(lt);t.bindTexture(n.TEXTURE_2D,Pe.__webglTexture),Q(n.TEXTURE_2D,lt,Ce),Fe(K.__webglFramebuffer,D,lt,n.COLOR_ATTACHMENT0+ke,n.TEXTURE_2D,0),C(lt,Ce)&&A(n.TEXTURE_2D)}t.unbindTexture()}else{let we=n.TEXTURE_2D;if((D.isWebGL3DRenderTarget||D.isWebGLArrayRenderTarget)&&(a?we=D.isWebGL3DRenderTarget?n.TEXTURE_3D:n.TEXTURE_2D_ARRAY:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),t.bindTexture(we,me.__webglTexture),Q(we,N,Ce),a&&N.mipmaps&&N.mipmaps.length>0)for(let ke=0;ke<N.mipmaps.length;ke++)Fe(K.__webglFramebuffer[ke],D,N,n.COLOR_ATTACHMENT0,we,ke);else Fe(K.__webglFramebuffer,D,N,n.COLOR_ATTACHMENT0,we,0);C(N,Ce)&&A(we),t.unbindTexture()}D.depthBuffer&&P(D)}function pe(D){const N=S(D)||a,K=D.isWebGLMultipleRenderTargets===!0?D.texture:[D.texture];for(let me=0,j=K.length;me<j;me++){const se=K[me];if(C(se,N)){const Ce=D.isWebGLCubeRenderTarget?n.TEXTURE_CUBE_MAP:n.TEXTURE_2D,we=i.get(se).__webglTexture;t.bindTexture(Ce,we),A(Ce),t.unbindTexture()}}}function he(D){if(a&&D.samples>0&&Me(D)===!1){const N=D.isWebGLMultipleRenderTargets?D.texture:[D.texture],K=D.width,me=D.height;let j=n.COLOR_BUFFER_BIT;const se=[],Ce=D.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,we=i.get(D),ke=D.isWebGLMultipleRenderTargets===!0;if(ke)for(let We=0;We<N.length;We++)t.bindFramebuffer(n.FRAMEBUFFER,we.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.RENDERBUFFER,null),t.bindFramebuffer(n.FRAMEBUFFER,we.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.TEXTURE_2D,null,0);t.bindFramebuffer(n.READ_FRAMEBUFFER,we.__webglMultisampledFramebuffer),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,we.__webglFramebuffer);for(let We=0;We<N.length;We++){se.push(n.COLOR_ATTACHMENT0+We),D.depthBuffer&&se.push(Ce);const lt=we.__ignoreDepthValues!==void 0?we.__ignoreDepthValues:!1;if(lt===!1&&(D.depthBuffer&&(j|=n.DEPTH_BUFFER_BIT),D.stencilBuffer&&(j|=n.STENCIL_BUFFER_BIT)),ke&&n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,we.__webglColorRenderbuffer[We]),lt===!0&&(n.invalidateFramebuffer(n.READ_FRAMEBUFFER,[Ce]),n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,[Ce])),ke){const Pe=i.get(N[We]).__webglTexture;n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,Pe,0)}n.blitFramebuffer(0,0,K,me,0,0,K,me,j,n.NEAREST),h&&n.invalidateFramebuffer(n.READ_FRAMEBUFFER,se)}if(t.bindFramebuffer(n.READ_FRAMEBUFFER,null),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),ke)for(let We=0;We<N.length;We++){t.bindFramebuffer(n.FRAMEBUFFER,we.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.RENDERBUFFER,we.__webglColorRenderbuffer[We]);const lt=i.get(N[We]).__webglTexture;t.bindFramebuffer(n.FRAMEBUFFER,we.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+We,n.TEXTURE_2D,lt,0)}t.bindFramebuffer(n.DRAW_FRAMEBUFFER,we.__webglMultisampledFramebuffer)}}function ae(D){return Math.min(_,D.samples)}function Me(D){const N=i.get(D);return a&&D.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&N.__useRenderToTexture!==!1}function Re(D){const N=o.render.frame;f.get(D)!==N&&(f.set(D,N),D.update())}function ge(D,N){const K=D.colorSpace,me=D.format,j=D.type;return D.isCompressedTexture===!0||D.isVideoTexture===!0||D.format===Eb||K!==Cn&&K!==bi&&(Lt.getTransfer(K)===jt?a===!1?e.has("EXT_sRGB")===!0&&me===gi?(D.format=Eb,D.minFilter=Wn,D.generateMipmaps=!1):N=$N.sRGBToLinear(N):(me!==gi||j!==yr)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",K)),N}this.allocateTextureUnit=Y,this.resetTextureUnits=L,this.setTexture2D=oe,this.setTexture2DArray=ye,this.setTexture3D=xe,this.setTextureCube=le,this.rebindTextures=Z,this.setupRenderTarget=ce,this.updateRenderTargetMipmap=pe,this.updateMultisampleRenderTarget=he,this.setupDepthRenderbuffer=P,this.setupFrameBufferTexture=Fe,this.useMultisampledRTT=Me}function Zvt(n,e,t){const i=t.isWebGL2;function s(r,o=bi){let a;const c=Lt.getTransfer(o);if(r===yr)return n.UNSIGNED_BYTE;if(r===PN)return n.UNSIGNED_SHORT_4_4_4_4;if(r===FN)return n.UNSIGNED_SHORT_5_5_5_1;if(r===ygt)return n.BYTE;if(r===Egt)return n.SHORT;if(r===uy)return n.UNSIGNED_SHORT;if(r===LN)return n.INT;if(r===fr)return n.UNSIGNED_INT;if(r===As)return n.FLOAT;if(r===Ql)return i?n.HALF_FLOAT:(a=e.get("OES_texture_half_float"),a!==null?a.HALF_FLOAT_OES:null);if(r===vgt)return n.ALPHA;if(r===gi)return n.RGBA;if(r===Sgt)return n.LUMINANCE;if(r===Tgt)return n.LUMINANCE_ALPHA;if(r===io)return n.DEPTH_COMPONENT;if(r===Sa)return n.DEPTH_STENCIL;if(r===Eb)return a=e.get("EXT_sRGB"),a!==null?a.SRGB_ALPHA_EXT:null;if(r===xgt)return n.RED;if(r===UN)return n.RED_INTEGER;if(r===Cgt)return n.RG;if(r===BN)return n.RG_INTEGER;if(r===GN)return n.RGBA_INTEGER;if(r===qh||r===Yh||r===$h||r===Wh)if(c===jt)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===qh)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===Yh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===$h)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===Wh)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===qh)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===Yh)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===$h)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===Wh)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===fC||r===_C||r===mC||r===hC)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===fC)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===_C)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===mC)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===hC)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===VN)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(r===gC||r===bC)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===gC)return c===jt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===bC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===yC||r===EC||r===vC||r===SC||r===TC||r===xC||r===CC||r===wC||r===RC||r===AC||r===MC||r===NC||r===OC||r===IC)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===yC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===EC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===vC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===SC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===TC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===xC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===CC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===wC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===RC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===AC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===MC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===NC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===OC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===IC)return c===jt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===Kh||r===kC||r===DC)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===Kh)return c===jt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===kC)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===DC)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===wgt||r===LC||r===PC||r===FC)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===Kh)return a.COMPRESSED_RED_RGTC1_EXT;if(r===LC)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===PC)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===FC)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===no?i?n.UNSIGNED_INT_24_8:(a=e.get("WEBGL_depth_texture"),a!==null?a.UNSIGNED_INT_24_8_WEBGL:null):n[r]!==void 0?n[r]:null}return{convert:s}}class Jvt extends Gn{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Qr extends Jt{constructor(){super(),this.isGroup=!0,this.type="Group"}}const eSt={type:"move"};class bg{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Qr,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Qr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new re,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new re),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Qr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new re,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new re),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const i of e.hand.values())this._getHandJoint(t,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,i){let s=null,r=null,o=null;const a=this._targetRay,c=this._grip,d=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(d&&e.hand){o=!0;for(const y of e.hand.values()){const b=t.getJointPose(y,i),g=this._getHandJoint(d,y);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const u=d.joints["index-finger-tip"],_=d.joints["thumb-tip"],m=u.position.distanceTo(_.position),h=.02,f=.005;d.inputState.pinching&&m>h+f?(d.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!d.inputState.pinching&&m<=h-f&&(d.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,i),r!==null&&(c.matrix.fromArray(r.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,r.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(r.linearVelocity)):c.hasLinearVelocity=!1,r.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(r.angularVelocity)):c.hasAngularVelocity=!1));a!==null&&(s=t.getPose(e.targetRaySpace,i),s===null&&r!==null&&(s=r),s!==null&&(a.matrix.fromArray(s.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,s.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(s.linearVelocity)):a.hasLinearVelocity=!1,s.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(s.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(eSt)))}return a!==null&&(a.visible=s!==null),c!==null&&(c.visible=r!==null),d!==null&&(d.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const i=new Qr;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[t.jointName]=i,e.add(i)}return e.joints[t.jointName]}}class tSt extends Ha{constructor(e,t){super();const i=this;let s=null,r=1,o=null,a="local-floor",c=1,d=null,u=null,_=null,m=null,h=null,f=null;const y=t.getContextAttributes();let b=null,g=null;const E=[],v=[],S=new Rt;let R=null;const C=new Gn;C.layers.enable(1),C.viewport=new $t;const A=new Gn;A.layers.enable(2),A.viewport=new $t;const I=[C,A],x=new Jvt;x.layers.enable(1),x.layers.enable(2);let M=null,G=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(le){let ve=E[le];return ve===void 0&&(ve=new bg,E[le]=ve),ve.getTargetRaySpace()},this.getControllerGrip=function(le){let ve=E[le];return ve===void 0&&(ve=new bg,E[le]=ve),ve.getGripSpace()},this.getHand=function(le){let ve=E[le];return ve===void 0&&(ve=new bg,E[le]=ve),ve.getHandSpace()};function V(le){const ve=v.indexOf(le.inputSource);if(ve===-1)return;const Oe=E[ve];Oe!==void 0&&(Oe.update(le.inputSource,le.frame,d||o),Oe.dispatchEvent({type:le.type,data:le.inputSource}))}function ee(){s.removeEventListener("select",V),s.removeEventListener("selectstart",V),s.removeEventListener("selectend",V),s.removeEventListener("squeeze",V),s.removeEventListener("squeezestart",V),s.removeEventListener("squeezeend",V),s.removeEventListener("end",ee),s.removeEventListener("inputsourceschange",O);for(let le=0;le<E.length;le++){const ve=v[le];ve!==null&&(v[le]=null,E[le].disconnect(ve))}M=null,G=null,e.setRenderTarget(b),h=null,m=null,_=null,s=null,g=null,xe.stop(),i.isPresenting=!1,e.setPixelRatio(R),e.setSize(S.width,S.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(le){r=le,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(le){a=le,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return d||o},this.setReferenceSpace=function(le){d=le},this.getBaseLayer=function(){return m!==null?m:h},this.getBinding=function(){return _},this.getFrame=function(){return f},this.getSession=function(){return s},this.setSession=async function(le){if(s=le,s!==null){if(b=e.getRenderTarget(),s.addEventListener("select",V),s.addEventListener("selectstart",V),s.addEventListener("selectend",V),s.addEventListener("squeeze",V),s.addEventListener("squeezestart",V),s.addEventListener("squeezeend",V),s.addEventListener("end",ee),s.addEventListener("inputsourceschange",O),y.xrCompatible!==!0&&await t.makeXRCompatible(),R=e.getPixelRatio(),e.getSize(S),s.renderState.layers===void 0||e.capabilities.isWebGL2===!1){const ve={antialias:s.renderState.layers===void 0?y.antialias:!0,alpha:!0,depth:y.depth,stencil:y.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(s,t,ve),s.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),g=new mo(h.framebufferWidth,h.framebufferHeight,{format:gi,type:yr,colorSpace:e.outputColorSpace,stencilBuffer:y.stencil})}else{let ve=null,Oe=null,De=null;y.depth&&(De=y.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,ve=y.stencil?Sa:io,Oe=y.stencil?no:fr);const Q={colorFormat:t.RGBA8,depthFormat:De,scaleFactor:r};_=new XRWebGLBinding(s,t),m=_.createProjectionLayer(Q),s.updateRenderState({layers:[m]}),e.setPixelRatio(1),e.setSize(m.textureWidth,m.textureHeight,!1),g=new mo(m.textureWidth,m.textureHeight,{format:gi,type:yr,depthTexture:new iO(m.textureWidth,m.textureHeight,Oe,void 0,void 0,void 0,void 0,void 0,void 0,ve),stencilBuffer:y.stencil,colorSpace:e.outputColorSpace,samples:y.antialias?4:0});const fe=e.properties.get(g);fe.__ignoreDepthValues=m.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(c),d=null,o=await s.requestReferenceSpace(a),xe.setContext(s),xe.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(s!==null)return s.environmentBlendMode};function O(le){for(let ve=0;ve<le.removed.length;ve++){const Oe=le.removed[ve],De=v.indexOf(Oe);De>=0&&(v[De]=null,E[De].disconnect(Oe))}for(let ve=0;ve<le.added.length;ve++){const Oe=le.added[ve];let De=v.indexOf(Oe);if(De===-1){for(let fe=0;fe<E.length;fe++)if(fe>=v.length){v.push(Oe),De=fe;break}else if(v[fe]===null){v[fe]=Oe,De=fe;break}if(De===-1)break}const Q=E[De];Q&&Q.connect(Oe)}}const H=new re,q=new re;function L(le,ve,Oe){H.setFromMatrixPosition(ve.matrixWorld),q.setFromMatrixPosition(Oe.matrixWorld);const De=H.distanceTo(q),Q=ve.projectionMatrix.elements,fe=Oe.projectionMatrix.elements,_e=Q[14]/(Q[10]-1),Ae=Q[14]/(Q[10]+1),Fe=(Q[9]+1)/Q[5],te=(Q[9]-1)/Q[5],U=(Q[8]-1)/Q[0],P=(fe[8]+1)/fe[0],Z=_e*U,ce=_e*P,pe=De/(-U+P),he=pe*-U;ve.matrixWorld.decompose(le.position,le.quaternion,le.scale),le.translateX(he),le.translateZ(pe),le.matrixWorld.compose(le.position,le.quaternion,le.scale),le.matrixWorldInverse.copy(le.matrixWorld).invert();const ae=_e+pe,Me=Ae+pe,Re=Z-he,ge=ce+(De-he),D=Fe*Ae/Me*ae,N=te*Ae/Me*ae;le.projectionMatrix.makePerspective(Re,ge,D,N,ae,Me),le.projectionMatrixInverse.copy(le.projectionMatrix).invert()}function Y(le,ve){ve===null?le.matrixWorld.copy(le.matrix):le.matrixWorld.multiplyMatrices(ve.matrixWorld,le.matrix),le.matrixWorldInverse.copy(le.matrixWorld).invert()}this.updateCamera=function(le){if(s===null)return;x.near=A.near=C.near=le.near,x.far=A.far=C.far=le.far,(M!==x.near||G!==x.far)&&(s.updateRenderState({depthNear:x.near,depthFar:x.far}),M=x.near,G=x.far);const ve=le.parent,Oe=x.cameras;Y(x,ve);for(let De=0;De<Oe.length;De++)Y(Oe[De],ve);Oe.length===2?L(x,C,A):x.projectionMatrix.copy(C.projectionMatrix),ne(le,x,ve)};function ne(le,ve,Oe){Oe===null?le.matrix.copy(ve.matrixWorld):(le.matrix.copy(Oe.matrixWorld),le.matrix.invert(),le.matrix.multiply(ve.matrixWorld)),le.matrix.decompose(le.position,le.quaternion,le.scale),le.updateMatrixWorld(!0),le.projectionMatrix.copy(ve.projectionMatrix),le.projectionMatrixInverse.copy(ve.projectionMatrixInverse),le.isPerspectiveCamera&&(le.fov=xa*2*Math.atan(1/le.projectionMatrix.elements[5]),le.zoom=1)}this.getCamera=function(){return x},this.getFoveation=function(){if(!(m===null&&h===null))return c},this.setFoveation=function(le){c=le,m!==null&&(m.fixedFoveation=le),h!==null&&h.fixedFoveation!==void 0&&(h.fixedFoveation=le)};let oe=null;function ye(le,ve){if(u=ve.getViewerPose(d||o),f=ve,u!==null){const Oe=u.views;h!==null&&(e.setRenderTargetFramebuffer(g,h.framebuffer),e.setRenderTarget(g));let De=!1;Oe.length!==x.cameras.length&&(x.cameras.length=0,De=!0);for(let Q=0;Q<Oe.length;Q++){const fe=Oe[Q];let _e=null;if(h!==null)_e=h.getViewport(fe);else{const Fe=_.getViewSubImage(m,fe);_e=Fe.viewport,Q===0&&(e.setRenderTargetTextures(g,Fe.colorTexture,m.ignoreDepthValues?void 0:Fe.depthStencilTexture),e.setRenderTarget(g))}let Ae=I[Q];Ae===void 0&&(Ae=new Gn,Ae.layers.enable(Q),Ae.viewport=new $t,I[Q]=Ae),Ae.matrix.fromArray(fe.transform.matrix),Ae.matrix.decompose(Ae.position,Ae.quaternion,Ae.scale),Ae.projectionMatrix.fromArray(fe.projectionMatrix),Ae.projectionMatrixInverse.copy(Ae.projectionMatrix).invert(),Ae.viewport.set(_e.x,_e.y,_e.width,_e.height),Q===0&&(x.matrix.copy(Ae.matrix),x.matrix.decompose(x.position,x.quaternion,x.scale)),De===!0&&x.cameras.push(Ae)}}for(let Oe=0;Oe<E.length;Oe++){const De=v[Oe],Q=E[Oe];De!==null&&Q!==void 0&&Q.update(De,ve,d||o)}oe&&oe(le,ve),ve.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:ve}),f=null}const xe=new nO;xe.setAnimationLoop(ye),this.setAnimationLoop=function(le){oe=le},this.dispose=function(){}}}function nSt(n,e){function t(b,g){b.matrixAutoUpdate===!0&&b.updateMatrix(),g.value.copy(b.matrix)}function i(b,g){g.color.getRGB(b.fogColor.value,JN(n)),g.isFog?(b.fogNear.value=g.near,b.fogFar.value=g.far):g.isFogExp2&&(b.fogDensity.value=g.density)}function s(b,g,E,v,S){g.isMeshBasicMaterial||g.isMeshLambertMaterial?r(b,g):g.isMeshToonMaterial?(r(b,g),_(b,g)):g.isMeshPhongMaterial?(r(b,g),u(b,g)):g.isMeshStandardMaterial?(r(b,g),m(b,g),g.isMeshPhysicalMaterial&&h(b,g,S)):g.isMeshMatcapMaterial?(r(b,g),f(b,g)):g.isMeshDepthMaterial?r(b,g):g.isMeshDistanceMaterial?(r(b,g),y(b,g)):g.isMeshNormalMaterial?r(b,g):g.isLineBasicMaterial?(o(b,g),g.isLineDashedMaterial&&a(b,g)):g.isPointsMaterial?c(b,g,E,v):g.isSpriteMaterial?d(b,g):g.isShadowMaterial?(b.color.value.copy(g.color),b.opacity.value=g.opacity):g.isShaderMaterial&&(g.uniformsNeedUpdate=!1)}function r(b,g){b.opacity.value=g.opacity,g.color&&b.diffuse.value.copy(g.color),g.emissive&&b.emissive.value.copy(g.emissive).multiplyScalar(g.emissiveIntensity),g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.bumpMap&&(b.bumpMap.value=g.bumpMap,t(g.bumpMap,b.bumpMapTransform),b.bumpScale.value=g.bumpScale,g.side===Zn&&(b.bumpScale.value*=-1)),g.normalMap&&(b.normalMap.value=g.normalMap,t(g.normalMap,b.normalMapTransform),b.normalScale.value.copy(g.normalScale),g.side===Zn&&b.normalScale.value.negate()),g.displacementMap&&(b.displacementMap.value=g.displacementMap,t(g.displacementMap,b.displacementMapTransform),b.displacementScale.value=g.displacementScale,b.displacementBias.value=g.displacementBias),g.emissiveMap&&(b.emissiveMap.value=g.emissiveMap,t(g.emissiveMap,b.emissiveMapTransform)),g.specularMap&&(b.specularMap.value=g.specularMap,t(g.specularMap,b.specularMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest);const E=e.get(g).envMap;if(E&&(b.envMap.value=E,b.flipEnvMap.value=E.isCubeTexture&&E.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap){b.lightMap.value=g.lightMap;const v=n._useLegacyLights===!0?Math.PI:1;b.lightMapIntensity.value=g.lightMapIntensity*v,t(g.lightMap,b.lightMapTransform)}g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,t(g.aoMap,b.aoMapTransform))}function o(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function c(b,g,E,v){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*E,b.scale.value=v*.5,g.map&&(b.map.value=g.map,t(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,t(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,t(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function _(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function m(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,t(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,t(g.roughnessMap,b.roughnessMapTransform)),e.get(g).envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function h(b,g,E){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,t(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,t(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,t(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,t(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,t(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Zn&&b.clearcoatNormalScale.value.negate())),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,t(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,t(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=E.texture,b.transmissionSamplerSize.value.set(E.width,E.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,t(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,t(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,t(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,t(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,t(g.specularIntensityMap,b.specularIntensityMapTransform))}function f(b,g){g.matcap&&(b.matcap.value=g.matcap)}function y(b,g){const E=e.get(g).light;b.referencePosition.value.setFromMatrixPosition(E.matrixWorld),b.nearDistance.value=E.shadow.camera.near,b.farDistance.value=E.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:s}}function iSt(n,e,t,i){let s={},r={},o=[];const a=t.isWebGL2?n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS):0;function c(E,v){const S=v.program;i.uniformBlockBinding(E,S)}function d(E,v){let S=s[E.id];S===void 0&&(f(E),S=u(E),s[E.id]=S,E.addEventListener("dispose",b));const R=v.program;i.updateUBOMapping(E,R);const C=e.render.frame;r[E.id]!==C&&(m(E),r[E.id]=C)}function u(E){const v=_();E.__bindingPointIndex=v;const S=n.createBuffer(),R=E.__size,C=E.usage;return n.bindBuffer(n.UNIFORM_BUFFER,S),n.bufferData(n.UNIFORM_BUFFER,R,C),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,v,S),S}function _(){for(let E=0;E<a;E++)if(o.indexOf(E)===-1)return o.push(E),E;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function m(E){const v=s[E.id],S=E.uniforms,R=E.__cache;n.bindBuffer(n.UNIFORM_BUFFER,v);for(let C=0,A=S.length;C<A;C++){const I=S[C];if(h(I,C,R)===!0){const x=I.__offset,M=Array.isArray(I.value)?I.value:[I.value];let G=0;for(let V=0;V<M.length;V++){const ee=M[V],O=y(ee);typeof ee=="number"?(I.__data[0]=ee,n.bufferSubData(n.UNIFORM_BUFFER,x+G,I.__data)):ee.isMatrix3?(I.__data[0]=ee.elements[0],I.__data[1]=ee.elements[1],I.__data[2]=ee.elements[2],I.__data[3]=ee.elements[0],I.__data[4]=ee.elements[3],I.__data[5]=ee.elements[4],I.__data[6]=ee.elements[5],I.__data[7]=ee.elements[0],I.__data[8]=ee.elements[6],I.__data[9]=ee.elements[7],I.__data[10]=ee.elements[8],I.__data[11]=ee.elements[0]):(ee.toArray(I.__data,G),G+=O.storage/Float32Array.BYTES_PER_ELEMENT)}n.bufferSubData(n.UNIFORM_BUFFER,x,I.__data)}}n.bindBuffer(n.UNIFORM_BUFFER,null)}function h(E,v,S){const R=E.value;if(S[v]===void 0){if(typeof R=="number")S[v]=R;else{const C=Array.isArray(R)?R:[R],A=[];for(let I=0;I<C.length;I++)A.push(C[I].clone());S[v]=A}return!0}else if(typeof R=="number"){if(S[v]!==R)return S[v]=R,!0}else{const C=Array.isArray(S[v])?S[v]:[S[v]],A=Array.isArray(R)?R:[R];for(let I=0;I<C.length;I++){const x=C[I];if(x.equals(A[I])===!1)return x.copy(A[I]),!0}}return!1}function f(E){const v=E.uniforms;let S=0;const R=16;let C=0;for(let A=0,I=v.length;A<I;A++){const x=v[A],M={boundary:0,storage:0},G=Array.isArray(x.value)?x.value:[x.value];for(let V=0,ee=G.length;V<ee;V++){const O=G[V],H=y(O);M.boundary+=H.boundary,M.storage+=H.storage}if(x.__data=new Float32Array(M.storage/Float32Array.BYTES_PER_ELEMENT),x.__offset=S,A>0){C=S%R;const V=R-C;C!==0&&V-M.boundary<0&&(S+=R-C,x.__offset=S)}S+=M.storage}return C=S%R,C>0&&(S+=R-C),E.__size=S,E.__cache={},this}function y(E){const v={boundary:0,storage:0};return typeof E=="number"?(v.boundary=4,v.storage=4):E.isVector2?(v.boundary=8,v.storage=8):E.isVector3||E.isColor?(v.boundary=16,v.storage=12):E.isVector4?(v.boundary=16,v.storage=16):E.isMatrix3?(v.boundary=48,v.storage=48):E.isMatrix4?(v.boundary=64,v.storage=64):E.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",E),v}function b(E){const v=E.target;v.removeEventListener("dispose",b);const S=o.indexOf(v.__bindingPointIndex);o.splice(S,1),n.deleteBuffer(s[v.id]),delete s[v.id],delete r[v.id]}function g(){for(const E in s)n.deleteBuffer(s[E]);o=[],s={},r={}}return{bind:c,update:d,dispose:g}}class cO{constructor(e={}){const{canvas:t=ebt(),context:i=null,depth:s=!0,stencil:r=!0,alpha:o=!1,antialias:a=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:d=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:_=!1}=e;this.isWebGLRenderer=!0;let m;i!==null?m=i.getContextAttributes().alpha:m=o;const h=new Uint32Array(4),f=new Int32Array(4);let y=null,b=null;const g=[],E=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=nn,this._useLegacyLights=!1,this.toneMapping=br,this.toneMappingExposure=1;const v=this;let S=!1,R=0,C=0,A=null,I=-1,x=null;const M=new $t,G=new $t;let V=null;const ee=new pt(0);let O=0,H=t.width,q=t.height,L=1,Y=null,ne=null;const oe=new $t(0,0,H,q),ye=new $t(0,0,H,q);let xe=!1;const le=new my;let ve=!1,Oe=!1,De=null;const Q=new xt,fe=new Rt,_e=new re,Ae={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Fe(){return A===null?L:1}let te=i;function U(F,de){for(let Ee=0;Ee<F.length;Ee++){const Se=F[Ee],be=t.getContext(Se,de);if(be!==null)return be}return null}try{const F={alpha:!0,depth:s,stencil:r,antialias:a,premultipliedAlpha:c,preserveDrawingBuffer:d,powerPreference:u,failIfMajorPerformanceCaveat:_};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${cy}`),t.addEventListener("webglcontextlost",mt,!1),t.addEventListener("webglcontextrestored",J,!1),t.addEventListener("webglcontextcreationerror",je,!1),te===null){const de=["webgl2","webgl","experimental-webgl"];if(v.isWebGL1Renderer===!0&&de.shift(),te=U(de,F),te===null)throw U(de)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}typeof WebGLRenderingContext<"u"&&te instanceof WebGLRenderingContext&&console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."),te.getShaderPrecisionFormat===void 0&&(te.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(F){throw console.error("THREE.WebGLRenderer: "+F.message),F}let P,Z,ce,pe,he,ae,Me,Re,ge,D,N,K,me,j,se,Ce,we,ke,We,lt,Pe,Mt,et,tt;function ze(){P=new _Et(te),Z=new lEt(te,P,e),P.init(Z),Mt=new Zvt(te,P,Z),ce=new Qvt(te,P,Z),pe=new gEt(te),he=new Pvt,ae=new Xvt(te,P,ce,he,Z,Mt,pe),Me=new dEt(v),Re=new fEt(v),ge=new Cbt(te,Z),et=new oEt(te,P,ge,Z),D=new mEt(te,ge,pe,et),N=new vEt(te,D,ge,pe),We=new EEt(te,Z,ae),Ce=new cEt(he),K=new Lvt(v,Me,Re,P,Z,et,Ce),me=new nSt(v,he),j=new Uvt,se=new qvt(P,Z),ke=new rEt(v,Me,Re,ce,N,m,c),we=new jvt(v,N,Z),tt=new iSt(te,pe,Z,ce),lt=new aEt(te,P,pe,Z),Pe=new hEt(te,P,pe,Z),pe.programs=K.programs,v.capabilities=Z,v.extensions=P,v.properties=he,v.renderLists=j,v.shadowMap=we,v.state=ce,v.info=pe}ze();const Ke=new tSt(v,te);this.xr=Ke,this.getContext=function(){return te},this.getContextAttributes=function(){return te.getContextAttributes()},this.forceContextLoss=function(){const F=P.get("WEBGL_lose_context");F&&F.loseContext()},this.forceContextRestore=function(){const F=P.get("WEBGL_lose_context");F&&F.restoreContext()},this.getPixelRatio=function(){return L},this.setPixelRatio=function(F){F!==void 0&&(L=F,this.setSize(H,q,!1))},this.getSize=function(F){return F.set(H,q)},this.setSize=function(F,de,Ee=!0){if(Ke.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}H=F,q=de,t.width=Math.floor(F*L),t.height=Math.floor(de*L),Ee===!0&&(t.style.width=F+"px",t.style.height=de+"px"),this.setViewport(0,0,F,de)},this.getDrawingBufferSize=function(F){return F.set(H*L,q*L).floor()},this.setDrawingBufferSize=function(F,de,Ee){H=F,q=de,L=Ee,t.width=Math.floor(F*Ee),t.height=Math.floor(de*Ee),this.setViewport(0,0,F,de)},this.getCurrentViewport=function(F){return F.copy(M)},this.getViewport=function(F){return F.copy(oe)},this.setViewport=function(F,de,Ee,Se){F.isVector4?oe.set(F.x,F.y,F.z,F.w):oe.set(F,de,Ee,Se),ce.viewport(M.copy(oe).multiplyScalar(L).floor())},this.getScissor=function(F){return F.copy(ye)},this.setScissor=function(F,de,Ee,Se){F.isVector4?ye.set(F.x,F.y,F.z,F.w):ye.set(F,de,Ee,Se),ce.scissor(G.copy(ye).multiplyScalar(L).floor())},this.getScissorTest=function(){return xe},this.setScissorTest=function(F){ce.setScissorTest(xe=F)},this.setOpaqueSort=function(F){Y=F},this.setTransparentSort=function(F){ne=F},this.getClearColor=function(F){return F.copy(ke.getClearColor())},this.setClearColor=function(){ke.setClearColor.apply(ke,arguments)},this.getClearAlpha=function(){return ke.getClearAlpha()},this.setClearAlpha=function(){ke.setClearAlpha.apply(ke,arguments)},this.clear=function(F=!0,de=!0,Ee=!0){let Se=0;if(F){let be=!1;if(A!==null){const Qe=A.texture.format;be=Qe===GN||Qe===BN||Qe===UN}if(be){const Qe=A.texture.type,it=Qe===yr||Qe===fr||Qe===uy||Qe===no||Qe===PN||Qe===FN,ct=ke.getClearColor(),ut=ke.getClearAlpha(),Et=ct.r,ht=ct.g,gt=ct.b;it?(h[0]=Et,h[1]=ht,h[2]=gt,h[3]=ut,te.clearBufferuiv(te.COLOR,0,h)):(f[0]=Et,f[1]=ht,f[2]=gt,f[3]=ut,te.clearBufferiv(te.COLOR,0,f))}else Se|=te.COLOR_BUFFER_BIT}de&&(Se|=te.DEPTH_BUFFER_BIT),Ee&&(Se|=te.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),te.clear(Se)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",mt,!1),t.removeEventListener("webglcontextrestored",J,!1),t.removeEventListener("webglcontextcreationerror",je,!1),j.dispose(),se.dispose(),he.dispose(),Me.dispose(),Re.dispose(),N.dispose(),et.dispose(),tt.dispose(),K.dispose(),Ke.dispose(),Ke.removeEventListener("sessionstart",wn),Ke.removeEventListener("sessionend",Ht),De&&(De.dispose(),De=null),Rn.stop()};function mt(F){F.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),S=!0}function J(){console.log("THREE.WebGLRenderer: Context Restored."),S=!1;const F=pe.autoReset,de=we.enabled,Ee=we.autoUpdate,Se=we.needsUpdate,be=we.type;ze(),pe.autoReset=F,we.enabled=de,we.autoUpdate=Ee,we.needsUpdate=Se,we.type=be}function je(F){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",F.statusMessage)}function Ge(F){const de=F.target;de.removeEventListener("dispose",Ge),Ne(de)}function Ne(F){qe(F),he.remove(F)}function qe(F){const de=he.get(F).programs;de!==void 0&&(de.forEach(function(Ee){K.releaseProgram(Ee)}),F.isShaderMaterial&&K.releaseShaderCache(F))}this.renderBufferDirect=function(F,de,Ee,Se,be,Qe){de===null&&(de=Ae);const it=be.isMesh&&be.matrixWorld.determinant()<0,ct=Dy(F,de,Ee,Se,be);ce.setMaterial(Se,it);let ut=Ee.index,Et=1;if(Se.wireframe===!0){if(ut=D.getWireframeAttribute(Ee),ut===void 0)return;Et=2}const ht=Ee.drawRange,gt=Ee.attributes.position;let tn=ht.start*Et,qn=(ht.start+ht.count)*Et;Qe!==null&&(tn=Math.max(tn,Qe.start*Et),qn=Math.min(qn,(Qe.start+Qe.count)*Et)),ut!==null?(tn=Math.max(tn,0),qn=Math.min(qn,ut.count)):gt!=null&&(tn=Math.max(tn,0),qn=Math.min(qn,gt.count));const un=qn-tn;if(un<0||un===1/0)return;et.setup(be,Se,ct,Ee,ut);let Wi,Qt=lt;if(ut!==null&&(Wi=ge.get(ut),Qt=Pe,Qt.setIndex(Wi)),be.isMesh)Se.wireframe===!0?(ce.setLineWidth(Se.wireframeLinewidth*Fe()),Qt.setMode(te.LINES)):Qt.setMode(te.TRIANGLES);else if(be.isLine){let St=Se.linewidth;St===void 0&&(St=1),ce.setLineWidth(St*Fe()),be.isLineSegments?Qt.setMode(te.LINES):be.isLineLoop?Qt.setMode(te.LINE_LOOP):Qt.setMode(te.LINE_STRIP)}else be.isPoints?Qt.setMode(te.POINTS):be.isSprite&&Qt.setMode(te.TRIANGLES);if(be.isBatchedMesh)Qt.renderMultiDraw(be._multiDrawStarts,be._multiDrawCounts,be._multiDrawCount);else if(be.isInstancedMesh)Qt.renderInstances(tn,un,be.count);else if(Ee.isInstancedBufferGeometry){const St=Ee._maxInstanceCount!==void 0?Ee._maxInstanceCount:1/0,hc=Math.min(Ee.instanceCount,St);Qt.renderInstances(tn,un,hc)}else Qt.render(tn,un)};function dt(F,de,Ee){F.transparent===!0&&F.side===Ji&&F.forceSinglePass===!1?(F.side=Zn,F.needsUpdate=!0,Qa(F,de,Ee),F.side=Fs,F.needsUpdate=!0,Qa(F,de,Ee),F.side=Ji):Qa(F,de,Ee)}this.compile=function(F,de,Ee=null){Ee===null&&(Ee=F),b=se.get(Ee),b.init(),E.push(b),Ee.traverseVisible(function(be){be.isLight&&be.layers.test(de.layers)&&(b.pushLight(be),be.castShadow&&b.pushShadow(be))}),F!==Ee&&F.traverseVisible(function(be){be.isLight&&be.layers.test(de.layers)&&(b.pushLight(be),be.castShadow&&b.pushShadow(be))}),b.setupLights(v._useLegacyLights);const Se=new Set;return F.traverse(function(be){const Qe=be.material;if(Qe)if(Array.isArray(Qe))for(let it=0;it<Qe.length;it++){const ct=Qe[it];dt(ct,Ee,be),Se.add(ct)}else dt(Qe,Ee,be),Se.add(Qe)}),E.pop(),b=null,Se},this.compileAsync=function(F,de,Ee=null){const Se=this.compile(F,de,Ee);return new Promise(be=>{function Qe(){if(Se.forEach(function(it){he.get(it).currentProgram.isReady()&&Se.delete(it)}),Se.size===0){be(F);return}setTimeout(Qe,10)}P.get("KHR_parallel_shader_compile")!==null?Qe():setTimeout(Qe,10)})};let Nt=null;function dn(F){Nt&&Nt(F)}function wn(){Rn.stop()}function Ht(){Rn.start()}const Rn=new nO;Rn.setAnimationLoop(dn),typeof self<"u"&&Rn.setContext(self),this.setAnimationLoop=function(F){Nt=F,Ke.setAnimationLoop(F),F===null?Rn.stop():Rn.start()},Ke.addEventListener("sessionstart",wn),Ke.addEventListener("sessionend",Ht),this.render=function(F,de){if(de!==void 0&&de.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(S===!0)return;F.matrixWorldAutoUpdate===!0&&F.updateMatrixWorld(),de.parent===null&&de.matrixWorldAutoUpdate===!0&&de.updateMatrixWorld(),Ke.enabled===!0&&Ke.isPresenting===!0&&(Ke.cameraAutoUpdate===!0&&Ke.updateCamera(de),de=Ke.getCamera()),F.isScene===!0&&F.onBeforeRender(v,F,de,A),b=se.get(F,E.length),b.init(),E.push(b),Q.multiplyMatrices(de.projectionMatrix,de.matrixWorldInverse),le.setFromProjectionMatrix(Q),Oe=this.localClippingEnabled,ve=Ce.init(this.clippingPlanes,Oe),y=j.get(F,g.length),y.init(),g.push(y),Oi(F,de,0,v.sortObjects),y.finish(),v.sortObjects===!0&&y.sort(Y,ne),this.info.render.frame++,ve===!0&&Ce.beginShadows();const Ee=b.state.shadowsArray;if(we.render(Ee,F,de),ve===!0&&Ce.endShadows(),this.info.autoReset===!0&&this.info.reset(),ke.render(y,F),b.setupLights(v._useLegacyLights),de.isArrayCamera){const Se=de.cameras;for(let be=0,Qe=Se.length;be<Qe;be++){const it=Se[be];vp(y,F,it,it.viewport)}}else vp(y,F,de);A!==null&&(ae.updateMultisampleRenderTarget(A),ae.updateRenderTargetMipmap(A)),F.isScene===!0&&F.onAfterRender(v,F,de),et.resetDefaultState(),I=-1,x=null,E.pop(),E.length>0?b=E[E.length-1]:b=null,g.pop(),g.length>0?y=g[g.length-1]:y=null};function Oi(F,de,Ee,Se){if(F.visible===!1)return;if(F.layers.test(de.layers)){if(F.isGroup)Ee=F.renderOrder;else if(F.isLOD)F.autoUpdate===!0&&F.update(de);else if(F.isLight)b.pushLight(F),F.castShadow&&b.pushShadow(F);else if(F.isSprite){if(!F.frustumCulled||le.intersectsSprite(F)){Se&&_e.setFromMatrixPosition(F.matrixWorld).applyMatrix4(Q);const it=N.update(F),ct=F.material;ct.visible&&y.push(F,it,ct,Ee,_e.z,null)}}else if((F.isMesh||F.isLine||F.isPoints)&&(!F.frustumCulled||le.intersectsObject(F))){const it=N.update(F),ct=F.material;if(Se&&(F.boundingSphere!==void 0?(F.boundingSphere===null&&F.computeBoundingSphere(),_e.copy(F.boundingSphere.center)):(it.boundingSphere===null&&it.computeBoundingSphere(),_e.copy(it.boundingSphere.center)),_e.applyMatrix4(F.matrixWorld).applyMatrix4(Q)),Array.isArray(ct)){const ut=it.groups;for(let Et=0,ht=ut.length;Et<ht;Et++){const gt=ut[Et],tn=ct[gt.materialIndex];tn&&tn.visible&&y.push(F,it,tn,Ee,_e.z,gt)}}else ct.visible&&y.push(F,it,ct,Ee,_e.z,null)}}const Qe=F.children;for(let it=0,ct=Qe.length;it<ct;it++)Oi(Qe[it],de,Ee,Se)}function vp(F,de,Ee,Se){const be=F.opaque,Qe=F.transmissive,it=F.transparent;b.setupLightsView(Ee),ve===!0&&Ce.setGlobalState(v.clippingPlanes,Ee),Qe.length>0&&ky(be,Qe,de,Ee),Se&&ce.viewport(M.copy(Se)),be.length>0&&ja(be,de,Ee),Qe.length>0&&ja(Qe,de,Ee),it.length>0&&ja(it,de,Ee),ce.buffers.depth.setTest(!0),ce.buffers.depth.setMask(!0),ce.buffers.color.setMask(!0),ce.setPolygonOffset(!1)}function ky(F,de,Ee,Se){if((Ee.isScene===!0?Ee.overrideMaterial:null)!==null)return;const Qe=Z.isWebGL2;De===null&&(De=new mo(1,1,{generateMipmaps:!0,type:P.has("EXT_color_buffer_half_float")?Ql:yr,minFilter:_o,samples:Qe?4:0})),v.getDrawingBufferSize(fe),Qe?De.setSize(fe.x,fe.y):De.setSize(vu(fe.x),vu(fe.y));const it=v.getRenderTarget();v.setRenderTarget(De),v.getClearColor(ee),O=v.getClearAlpha(),O<1&&v.setClearColor(16777215,.5),v.clear();const ct=v.toneMapping;v.toneMapping=br,ja(F,Ee,Se),ae.updateMultisampleRenderTarget(De),ae.updateRenderTargetMipmap(De);let ut=!1;for(let Et=0,ht=de.length;Et<ht;Et++){const gt=de[Et],tn=gt.object,qn=gt.geometry,un=gt.material,Wi=gt.group;if(un.side===Ji&&tn.layers.test(Se.layers)){const Qt=un.side;un.side=Zn,un.needsUpdate=!0,Sp(tn,Ee,Se,qn,un,Wi),un.side=Qt,un.needsUpdate=!0,ut=!0}}ut===!0&&(ae.updateMultisampleRenderTarget(De),ae.updateRenderTargetMipmap(De)),v.setRenderTarget(it),v.setClearColor(ee,O),v.toneMapping=ct}function ja(F,de,Ee){const Se=de.isScene===!0?de.overrideMaterial:null;for(let be=0,Qe=F.length;be<Qe;be++){const it=F[be],ct=it.object,ut=it.geometry,Et=Se===null?it.material:Se,ht=it.group;ct.layers.test(Ee.layers)&&Sp(ct,de,Ee,ut,Et,ht)}}function Sp(F,de,Ee,Se,be,Qe){F.onBeforeRender(v,de,Ee,Se,be,Qe),F.modelViewMatrix.multiplyMatrices(Ee.matrixWorldInverse,F.matrixWorld),F.normalMatrix.getNormalMatrix(F.modelViewMatrix),be.onBeforeRender(v,de,Ee,Se,F,Qe),be.transparent===!0&&be.side===Ji&&be.forceSinglePass===!1?(be.side=Zn,be.needsUpdate=!0,v.renderBufferDirect(Ee,de,Se,be,F,Qe),be.side=Fs,be.needsUpdate=!0,v.renderBufferDirect(Ee,de,Se,be,F,Qe),be.side=Ji):v.renderBufferDirect(Ee,de,Se,be,F,Qe),F.onAfterRender(v,de,Ee,Se,be,Qe)}function Qa(F,de,Ee){de.isScene!==!0&&(de=Ae);const Se=he.get(F),be=b.state.lights,Qe=b.state.shadowsArray,it=be.state.version,ct=K.getParameters(F,be.state,Qe,de,Ee),ut=K.getProgramCacheKey(ct);let Et=Se.programs;Se.environment=F.isMeshStandardMaterial?de.environment:null,Se.fog=de.fog,Se.envMap=(F.isMeshStandardMaterial?Re:Me).get(F.envMap||Se.environment),Et===void 0&&(F.addEventListener("dispose",Ge),Et=new Map,Se.programs=Et);let ht=Et.get(ut);if(ht!==void 0){if(Se.currentProgram===ht&&Se.lightsStateVersion===it)return xp(F,ct),ht}else ct.uniforms=K.getUniforms(F),F.onBuild(Ee,ct,v),F.onBeforeCompile(ct,v),ht=K.acquireProgram(ct,ut),Et.set(ut,ht),Se.uniforms=ct.uniforms;const gt=Se.uniforms;return(!F.isShaderMaterial&&!F.isRawShaderMaterial||F.clipping===!0)&&(gt.clippingPlanes=Ce.uniform),xp(F,ct),Se.needsLights=Py(F),Se.lightsStateVersion=it,Se.needsLights&&(gt.ambientLightColor.value=be.state.ambient,gt.lightProbe.value=be.state.probe,gt.directionalLights.value=be.state.directional,gt.directionalLightShadows.value=be.state.directionalShadow,gt.spotLights.value=be.state.spot,gt.spotLightShadows.value=be.state.spotShadow,gt.rectAreaLights.value=be.state.rectArea,gt.ltc_1.value=be.state.rectAreaLTC1,gt.ltc_2.value=be.state.rectAreaLTC2,gt.pointLights.value=be.state.point,gt.pointLightShadows.value=be.state.pointShadow,gt.hemisphereLights.value=be.state.hemi,gt.directionalShadowMap.value=be.state.directionalShadowMap,gt.directionalShadowMatrix.value=be.state.directionalShadowMatrix,gt.spotShadowMap.value=be.state.spotShadowMap,gt.spotLightMatrix.value=be.state.spotLightMatrix,gt.spotLightMap.value=be.state.spotLightMap,gt.pointShadowMap.value=be.state.pointShadowMap,gt.pointShadowMatrix.value=be.state.pointShadowMatrix),Se.currentProgram=ht,Se.uniformsList=null,ht}function Tp(F){if(F.uniformsList===null){const de=F.currentProgram.getUniforms();F.uniformsList=Dd.seqWithValue(de.seq,F.uniforms)}return F.uniformsList}function xp(F,de){const Ee=he.get(F);Ee.outputColorSpace=de.outputColorSpace,Ee.batching=de.batching,Ee.instancing=de.instancing,Ee.instancingColor=de.instancingColor,Ee.skinning=de.skinning,Ee.morphTargets=de.morphTargets,Ee.morphNormals=de.morphNormals,Ee.morphColors=de.morphColors,Ee.morphTargetsCount=de.morphTargetsCount,Ee.numClippingPlanes=de.numClippingPlanes,Ee.numIntersection=de.numClipIntersection,Ee.vertexAlphas=de.vertexAlphas,Ee.vertexTangents=de.vertexTangents,Ee.toneMapping=de.toneMapping}function Dy(F,de,Ee,Se,be){de.isScene!==!0&&(de=Ae),ae.resetTextureUnits();const Qe=de.fog,it=Se.isMeshStandardMaterial?de.environment:null,ct=A===null?v.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:Cn,ut=(Se.isMeshStandardMaterial?Re:Me).get(Se.envMap||it),Et=Se.vertexColors===!0&&!!Ee.attributes.color&&Ee.attributes.color.itemSize===4,ht=!!Ee.attributes.tangent&&(!!Se.normalMap||Se.anisotropy>0),gt=!!Ee.morphAttributes.position,tn=!!Ee.morphAttributes.normal,qn=!!Ee.morphAttributes.color;let un=br;Se.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(un=v.toneMapping);const Wi=Ee.morphAttributes.position||Ee.morphAttributes.normal||Ee.morphAttributes.color,Qt=Wi!==void 0?Wi.length:0,St=he.get(Se),hc=b.state.lights;if(ve===!0&&(Oe===!0||F!==x)){const ei=F===x&&Se.id===I;Ce.setState(Se,F,ei)}let Zt=!1;Se.version===St.__version?(St.needsLights&&St.lightsStateVersion!==hc.state.version||St.outputColorSpace!==ct||be.isBatchedMesh&&St.batching===!1||!be.isBatchedMesh&&St.batching===!0||be.isInstancedMesh&&St.instancing===!1||!be.isInstancedMesh&&St.instancing===!0||be.isSkinnedMesh&&St.skinning===!1||!be.isSkinnedMesh&&St.skinning===!0||be.isInstancedMesh&&St.instancingColor===!0&&be.instanceColor===null||be.isInstancedMesh&&St.instancingColor===!1&&be.instanceColor!==null||St.envMap!==ut||Se.fog===!0&&St.fog!==Qe||St.numClippingPlanes!==void 0&&(St.numClippingPlanes!==Ce.numPlanes||St.numIntersection!==Ce.numIntersection)||St.vertexAlphas!==Et||St.vertexTangents!==ht||St.morphTargets!==gt||St.morphNormals!==tn||St.morphColors!==qn||St.toneMapping!==un||Z.isWebGL2===!0&&St.morphTargetsCount!==Qt)&&(Zt=!0):(Zt=!0,St.__version=Se.version);let zs=St.currentProgram;Zt===!0&&(zs=Qa(Se,de,be));let Cp=!1,vo=!1,gc=!1;const yn=zs.getUniforms(),Hs=St.uniforms;if(ce.useProgram(zs.program)&&(Cp=!0,vo=!0,gc=!0),Se.id!==I&&(I=Se.id,vo=!0),Cp||x!==F){yn.setValue(te,"projectionMatrix",F.projectionMatrix),yn.setValue(te,"viewMatrix",F.matrixWorldInverse);const ei=yn.map.cameraPosition;ei!==void 0&&ei.setValue(te,_e.setFromMatrixPosition(F.matrixWorld)),Z.logarithmicDepthBuffer&&yn.setValue(te,"logDepthBufFC",2/(Math.log(F.far+1)/Math.LN2)),(Se.isMeshPhongMaterial||Se.isMeshToonMaterial||Se.isMeshLambertMaterial||Se.isMeshBasicMaterial||Se.isMeshStandardMaterial||Se.isShaderMaterial)&&yn.setValue(te,"isOrthographic",F.isOrthographicCamera===!0),x!==F&&(x=F,vo=!0,gc=!0)}if(be.isSkinnedMesh){yn.setOptional(te,be,"bindMatrix"),yn.setOptional(te,be,"bindMatrixInverse");const ei=be.skeleton;ei&&(Z.floatVertexTextures?(ei.boneTexture===null&&ei.computeBoneTexture(),yn.setValue(te,"boneTexture",ei.boneTexture,ae)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}be.isBatchedMesh&&(yn.setOptional(te,be,"batchingTexture"),yn.setValue(te,"batchingTexture",be._matricesTexture,ae));const bc=Ee.morphAttributes;if((bc.position!==void 0||bc.normal!==void 0||bc.color!==void 0&&Z.isWebGL2===!0)&&We.update(be,Ee,zs),(vo||St.receiveShadow!==be.receiveShadow)&&(St.receiveShadow=be.receiveShadow,yn.setValue(te,"receiveShadow",be.receiveShadow)),Se.isMeshGouraudMaterial&&Se.envMap!==null&&(Hs.envMap.value=ut,Hs.flipEnvMap.value=ut.isCubeTexture&&ut.isRenderTargetTexture===!1?-1:1),vo&&(yn.setValue(te,"toneMappingExposure",v.toneMappingExposure),St.needsLights&&Ly(Hs,gc),Qe&&Se.fog===!0&&me.refreshFogUniforms(Hs,Qe),me.refreshMaterialUniforms(Hs,Se,L,q,De),Dd.upload(te,Tp(St),Hs,ae)),Se.isShaderMaterial&&Se.uniformsNeedUpdate===!0&&(Dd.upload(te,Tp(St),Hs,ae),Se.uniformsNeedUpdate=!1),Se.isSpriteMaterial&&yn.setValue(te,"center",be.center),yn.setValue(te,"modelViewMatrix",be.modelViewMatrix),yn.setValue(te,"normalMatrix",be.normalMatrix),yn.setValue(te,"modelMatrix",be.matrixWorld),Se.isShaderMaterial||Se.isRawShaderMaterial){const ei=Se.uniformsGroups;for(let yc=0,Fy=ei.length;yc<Fy;yc++)if(Z.isWebGL2){const wp=ei[yc];tt.update(wp,zs),tt.bind(wp,zs)}else console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.")}return zs}function Ly(F,de){F.ambientLightColor.needsUpdate=de,F.lightProbe.needsUpdate=de,F.directionalLights.needsUpdate=de,F.directionalLightShadows.needsUpdate=de,F.pointLights.needsUpdate=de,F.pointLightShadows.needsUpdate=de,F.spotLights.needsUpdate=de,F.spotLightShadows.needsUpdate=de,F.rectAreaLights.needsUpdate=de,F.hemisphereLights.needsUpdate=de}function Py(F){return F.isMeshLambertMaterial||F.isMeshToonMaterial||F.isMeshPhongMaterial||F.isMeshStandardMaterial||F.isShadowMaterial||F.isShaderMaterial&&F.lights===!0}this.getActiveCubeFace=function(){return R},this.getActiveMipmapLevel=function(){return C},this.getRenderTarget=function(){return A},this.setRenderTargetTextures=function(F,de,Ee){he.get(F.texture).__webglTexture=de,he.get(F.depthTexture).__webglTexture=Ee;const Se=he.get(F);Se.__hasExternalTextures=!0,Se.__hasExternalTextures&&(Se.__autoAllocateDepthBuffer=Ee===void 0,Se.__autoAllocateDepthBuffer||P.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),Se.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(F,de){const Ee=he.get(F);Ee.__webglFramebuffer=de,Ee.__useDefaultFramebuffer=de===void 0},this.setRenderTarget=function(F,de=0,Ee=0){A=F,R=de,C=Ee;let Se=!0,be=null,Qe=!1,it=!1;if(F){const ut=he.get(F);ut.__useDefaultFramebuffer!==void 0?(ce.bindFramebuffer(te.FRAMEBUFFER,null),Se=!1):ut.__webglFramebuffer===void 0?ae.setupRenderTarget(F):ut.__hasExternalTextures&&ae.rebindTextures(F,he.get(F.texture).__webglTexture,he.get(F.depthTexture).__webglTexture);const Et=F.texture;(Et.isData3DTexture||Et.isDataArrayTexture||Et.isCompressedArrayTexture)&&(it=!0);const ht=he.get(F).__webglFramebuffer;F.isWebGLCubeRenderTarget?(Array.isArray(ht[de])?be=ht[de][Ee]:be=ht[de],Qe=!0):Z.isWebGL2&&F.samples>0&&ae.useMultisampledRTT(F)===!1?be=he.get(F).__webglMultisampledFramebuffer:Array.isArray(ht)?be=ht[Ee]:be=ht,M.copy(F.viewport),G.copy(F.scissor),V=F.scissorTest}else M.copy(oe).multiplyScalar(L).floor(),G.copy(ye).multiplyScalar(L).floor(),V=xe;if(ce.bindFramebuffer(te.FRAMEBUFFER,be)&&Z.drawBuffers&&Se&&ce.drawBuffers(F,be),ce.viewport(M),ce.scissor(G),ce.setScissorTest(V),Qe){const ut=he.get(F.texture);te.framebufferTexture2D(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,te.TEXTURE_CUBE_MAP_POSITIVE_X+de,ut.__webglTexture,Ee)}else if(it){const ut=he.get(F.texture),Et=de||0;te.framebufferTextureLayer(te.FRAMEBUFFER,te.COLOR_ATTACHMENT0,ut.__webglTexture,Ee||0,Et)}I=-1},this.readRenderTargetPixels=function(F,de,Ee,Se,be,Qe,it){if(!(F&&F.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ct=he.get(F).__webglFramebuffer;if(F.isWebGLCubeRenderTarget&&it!==void 0&&(ct=ct[it]),ct){ce.bindFramebuffer(te.FRAMEBUFFER,ct);try{const ut=F.texture,Et=ut.format,ht=ut.type;if(Et!==gi&&Mt.convert(Et)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const gt=ht===Ql&&(P.has("EXT_color_buffer_half_float")||Z.isWebGL2&&P.has("EXT_color_buffer_float"));if(ht!==yr&&Mt.convert(ht)!==te.getParameter(te.IMPLEMENTATION_COLOR_READ_TYPE)&&!(ht===As&&(Z.isWebGL2||P.has("OES_texture_float")||P.has("WEBGL_color_buffer_float")))&&!gt){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}de>=0&&de<=F.width-Se&&Ee>=0&&Ee<=F.height-be&&te.readPixels(de,Ee,Se,be,Mt.convert(Et),Mt.convert(ht),Qe)}finally{const ut=A!==null?he.get(A).__webglFramebuffer:null;ce.bindFramebuffer(te.FRAMEBUFFER,ut)}}},this.copyFramebufferToTexture=function(F,de,Ee=0){const Se=Math.pow(2,-Ee),be=Math.floor(de.image.width*Se),Qe=Math.floor(de.image.height*Se);ae.setTexture2D(de,0),te.copyTexSubImage2D(te.TEXTURE_2D,Ee,0,0,F.x,F.y,be,Qe),ce.unbindTexture()},this.copyTextureToTexture=function(F,de,Ee,Se=0){const be=de.image.width,Qe=de.image.height,it=Mt.convert(Ee.format),ct=Mt.convert(Ee.type);ae.setTexture2D(Ee,0),te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Ee.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ee.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Ee.unpackAlignment),de.isDataTexture?te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,be,Qe,it,ct,de.image.data):de.isCompressedTexture?te.compressedTexSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,de.mipmaps[0].width,de.mipmaps[0].height,it,de.mipmaps[0].data):te.texSubImage2D(te.TEXTURE_2D,Se,F.x,F.y,it,ct,de.image),Se===0&&Ee.generateMipmaps&&te.generateMipmap(te.TEXTURE_2D),ce.unbindTexture()},this.copyTextureToTexture3D=function(F,de,Ee,Se,be=0){if(v.isWebGL1Renderer){console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");return}const Qe=F.max.x-F.min.x+1,it=F.max.y-F.min.y+1,ct=F.max.z-F.min.z+1,ut=Mt.convert(Se.format),Et=Mt.convert(Se.type);let ht;if(Se.isData3DTexture)ae.setTexture3D(Se,0),ht=te.TEXTURE_3D;else if(Se.isDataArrayTexture)ae.setTexture2DArray(Se,0),ht=te.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}te.pixelStorei(te.UNPACK_FLIP_Y_WEBGL,Se.flipY),te.pixelStorei(te.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Se.premultiplyAlpha),te.pixelStorei(te.UNPACK_ALIGNMENT,Se.unpackAlignment);const gt=te.getParameter(te.UNPACK_ROW_LENGTH),tn=te.getParameter(te.UNPACK_IMAGE_HEIGHT),qn=te.getParameter(te.UNPACK_SKIP_PIXELS),un=te.getParameter(te.UNPACK_SKIP_ROWS),Wi=te.getParameter(te.UNPACK_SKIP_IMAGES),Qt=Ee.isCompressedTexture?Ee.mipmaps[0]:Ee.image;te.pixelStorei(te.UNPACK_ROW_LENGTH,Qt.width),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,Qt.height),te.pixelStorei(te.UNPACK_SKIP_PIXELS,F.min.x),te.pixelStorei(te.UNPACK_SKIP_ROWS,F.min.y),te.pixelStorei(te.UNPACK_SKIP_IMAGES,F.min.z),Ee.isDataTexture||Ee.isData3DTexture?te.texSubImage3D(ht,be,de.x,de.y,de.z,Qe,it,ct,ut,Et,Qt.data):Ee.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),te.compressedTexSubImage3D(ht,be,de.x,de.y,de.z,Qe,it,ct,ut,Qt.data)):te.texSubImage3D(ht,be,de.x,de.y,de.z,Qe,it,ct,ut,Et,Qt),te.pixelStorei(te.UNPACK_ROW_LENGTH,gt),te.pixelStorei(te.UNPACK_IMAGE_HEIGHT,tn),te.pixelStorei(te.UNPACK_SKIP_PIXELS,qn),te.pixelStorei(te.UNPACK_SKIP_ROWS,un),te.pixelStorei(te.UNPACK_SKIP_IMAGES,Wi),be===0&&Se.generateMipmaps&&te.generateMipmap(ht),ce.unbindTexture()},this.initTexture=function(F){F.isCubeTexture?ae.setTextureCube(F,0):F.isData3DTexture?ae.setTexture3D(F,0):F.isDataArrayTexture||F.isCompressedArrayTexture?ae.setTexture2DArray(F,0):ae.setTexture2D(F,0),ce.unbindTexture()},this.resetState=function(){R=0,C=0,A=null,ce.reset(),et.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Ms}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===fy?"display-p3":"srgb",t.unpackColorSpace=Lt.workingColorSpace===_p?"display-p3":"srgb"}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(e){console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!e}get outputEncoding(){return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace===nn?so:HN}set outputEncoding(e){console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."),this.outputColorSpace=e===so?nn:Cn}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class sSt extends cO{}sSt.prototype.isWebGL1Renderer=!0;class rSt extends Jt{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t}}class oSt{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=yb,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Gi()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return console.warn('THREE.InterleavedBuffer: "updateRange" is deprecated and removed in r169. Use "addUpdateRange()" instead.'),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,i){e*=this.stride,i*=t.stride;for(let s=0,r=this.stride;s<r;s++)this.array[e+s]=t.array[i+s];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Gi()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),i=new this.constructor(t,this.stride);return i.setUsage(this.usage),i}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=Gi()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const Ln=new re;class yy{constructor(e,t,i,s=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=i,this.normalized=s}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,i=this.data.count;t<i;t++)Ln.fromBufferAttribute(this,t),Ln.applyMatrix4(e),this.setXYZ(t,Ln.x,Ln.y,Ln.z);return this}applyNormalMatrix(e){for(let t=0,i=this.count;t<i;t++)Ln.fromBufferAttribute(this,t),Ln.applyNormalMatrix(e),this.setXYZ(t,Ln.x,Ln.y,Ln.z);return this}transformDirection(e){for(let t=0,i=this.count;t<i;t++)Ln.fromBufferAttribute(this,t),Ln.transformDirection(e),this.setXYZ(t,Ln.x,Ln.y,Ln.z);return this}setX(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=Bt(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=es(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=es(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=es(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=es(t,this.array)),t}setXY(e,t,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=i,this}setXYZ(e,t,i,s){return e=e*this.data.stride+this.offset,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=i,this.data.array[e+2]=s,this}setXYZW(e,t,i,s,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=Bt(t,this.array),i=Bt(i,this.array),s=Bt(s,this.array),r=Bt(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=i,this.data.array[e+2]=s,this.data.array[e+3]=r,this}clone(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const t=[];for(let i=0;i<this.count;i++){const s=i*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)t.push(this.data.array[s+r])}return new zn(new this.array.constructor(t),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new yy(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const t=[];for(let i=0;i<this.count;i++){const s=i*this.data.stride+this.offset;for(let r=0;r<this.itemSize;r++)t.push(this.data.array[s+r])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}const Aw=new re,Mw=new $t,Nw=new $t,aSt=new re,Ow=new xt,ud=new re,yg=new ps,Iw=new xt,Eg=new mp;class lSt extends Vn{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=pC,this.bindMatrix=new xt,this.bindMatrixInverse=new xt,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Gs),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let i=0;i<t.count;i++)this.getVertexPosition(i,ud),this.boundingBox.expandByPoint(ud)}computeBoundingSphere(){const e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new ps),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let i=0;i<t.count;i++)this.getVertexPosition(i,ud),this.boundingSphere.expandByPoint(ud)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const i=this.material,s=this.matrixWorld;i!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),yg.copy(this.boundingSphere),yg.applyMatrix4(s),e.ray.intersectsSphere(yg)!==!1&&(Iw.copy(s).invert(),Eg.copy(e.ray).applyMatrix4(Iw),!(this.boundingBox!==null&&Eg.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,t,Eg)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,t===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new $t,t=this.geometry.attributes.skinWeight;for(let i=0,s=t.count;i<s;i++){e.fromBufferAttribute(t,i);const r=1/e.manhattanLength();r!==1/0?e.multiplyScalar(r):e.set(1,0,0,0),t.setXYZW(i,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===pC?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===bgt?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,t){const i=this.skeleton,s=this.geometry;Mw.fromBufferAttribute(s.attributes.skinIndex,e),Nw.fromBufferAttribute(s.attributes.skinWeight,e),Aw.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let r=0;r<4;r++){const o=Nw.getComponent(r);if(o!==0){const a=Mw.getComponent(r);Ow.multiplyMatrices(i.bones[a].matrixWorld,i.boneInverses[a]),t.addScaledVector(aSt.copy(Aw).applyMatrix4(Ow),o)}}return t.applyMatrix4(this.bindMatrixInverse)}boneTransform(e,t){return console.warn("THREE.SkinnedMesh: .boneTransform() was renamed to .applyBoneTransform() in r151."),this.applyBoneTransform(e,t)}}class dO extends Jt{constructor(){super(),this.isBone=!0,this.type="Bone"}}class cSt extends xn{constructor(e=null,t=1,i=1,s,r,o,a,c,d=gn,u=gn,_,m){super(null,o,a,c,d,u,s,r,_,m),this.isDataTexture=!0,this.image={data:e,width:t,height:i},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const kw=new xt,dSt=new xt;class Ey{constructor(e=[],t=[]){this.uuid=Gi(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),t.length===0)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let i=0,s=this.bones.length;i<s;i++)this.boneInverses.push(new xt)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const i=new xt;this.bones[e]&&i.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(i)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const i=this.bones[e];i&&i.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const i=this.bones[e];i&&(i.parent&&i.parent.isBone?(i.matrix.copy(i.parent.matrixWorld).invert(),i.matrix.multiply(i.matrixWorld)):i.matrix.copy(i.matrixWorld),i.matrix.decompose(i.position,i.quaternion,i.scale))}}update(){const e=this.bones,t=this.boneInverses,i=this.boneMatrices,s=this.boneTexture;for(let r=0,o=e.length;r<o;r++){const a=e[r]?e[r].matrixWorld:dSt;kw.multiplyMatrices(a,t[r]),kw.toArray(i,r*16)}s!==null&&(s.needsUpdate=!0)}clone(){return new Ey(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const i=new cSt(t,e,e,gi,As);return i.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=i,this}getBoneByName(e){for(let t=0,i=this.bones.length;t<i;t++){const s=this.bones[t];if(s.name===e)return s}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let i=0,s=e.bones.length;i<s;i++){const r=e.bones[i];let o=t[r];o===void 0&&(console.warn("THREE.Skeleton: No bone found with UUID:",r),o=new dO),this.bones.push(o),this.boneInverses.push(new xt().fromArray(e.boneInverses[i]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,i=this.boneInverses;for(let s=0,r=t.length;s<r;s++){const o=t[s];e.bones.push(o.uuid);const a=i[s];e.boneInverses.push(a.toArray())}return e}}class Tb extends zn{constructor(e,t,i,s=1){super(e,t,i),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=s}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const Ho=new xt,Dw=new xt,pd=[],Lw=new Gs,uSt=new xt,dl=new Vn,ul=new ps;class pSt extends Vn{constructor(e,t,i){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new Tb(new Float32Array(i*16),16),this.instanceColor=null,this.count=i,this.boundingBox=null,this.boundingSphere=null;for(let s=0;s<i;s++)this.setMatrixAt(s,uSt)}computeBoundingBox(){const e=this.geometry,t=this.count;this.boundingBox===null&&(this.boundingBox=new Gs),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let i=0;i<t;i++)this.getMatrixAt(i,Ho),Lw.copy(e.boundingBox).applyMatrix4(Ho),this.boundingBox.union(Lw)}computeBoundingSphere(){const e=this.geometry,t=this.count;this.boundingSphere===null&&(this.boundingSphere=new ps),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let i=0;i<t;i++)this.getMatrixAt(i,Ho),ul.copy(e.boundingSphere).applyMatrix4(Ho),this.boundingSphere.union(ul)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,e*16)}raycast(e,t){const i=this.matrixWorld,s=this.count;if(dl.geometry=this.geometry,dl.material=this.material,dl.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),ul.copy(this.boundingSphere),ul.applyMatrix4(i),e.ray.intersectsSphere(ul)!==!1))for(let r=0;r<s;r++){this.getMatrixAt(r,Ho),Dw.multiplyMatrices(i,Ho),dl.matrixWorld=Dw,dl.raycast(e,pd);for(let o=0,a=pd.length;o<a;o++){const c=pd[o];c.instanceId=r,c.object=this,t.push(c)}pd.length=0}}setColorAt(e,t){this.instanceColor===null&&(this.instanceColor=new Tb(new Float32Array(this.instanceMatrix.count*3),3)),t.toArray(this.instanceColor.array,e*3)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,e*16)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class uO extends Vi{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new pt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Pw=new re,Fw=new re,Uw=new xt,vg=new mp,fd=new ps;class vy extends Jt{constructor(e=new fs,t=new uO){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,i=[0];for(let s=1,r=t.count;s<r;s++)Pw.fromBufferAttribute(t,s-1),Fw.fromBufferAttribute(t,s),i[s]=i[s-1],i[s]+=Pw.distanceTo(Fw);e.setAttribute("lineDistance",new ks(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const i=this.geometry,s=this.matrixWorld,r=e.params.Line.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),fd.copy(i.boundingSphere),fd.applyMatrix4(s),fd.radius+=r,e.ray.intersectsSphere(fd)===!1)return;Uw.copy(s).invert(),vg.copy(e.ray).applyMatrix4(Uw);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),c=a*a,d=new re,u=new re,_=new re,m=new re,h=this.isLineSegments?2:1,f=i.index,b=i.attributes.position;if(f!==null){const g=Math.max(0,o.start),E=Math.min(f.count,o.start+o.count);for(let v=g,S=E-1;v<S;v+=h){const R=f.getX(v),C=f.getX(v+1);if(d.fromBufferAttribute(b,R),u.fromBufferAttribute(b,C),vg.distanceSqToSegment(d,u,m,_)>c)continue;m.applyMatrix4(this.matrixWorld);const I=e.ray.origin.distanceTo(m);I<e.near||I>e.far||t.push({distance:I,point:_.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}else{const g=Math.max(0,o.start),E=Math.min(b.count,o.start+o.count);for(let v=g,S=E-1;v<S;v+=h){if(d.fromBufferAttribute(b,v),u.fromBufferAttribute(b,v+1),vg.distanceSqToSegment(d,u,m,_)>c)continue;m.applyMatrix4(this.matrixWorld);const C=e.ray.origin.distanceTo(m);C<e.near||C>e.far||t.push({distance:C,point:_.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}const Bw=new re,Gw=new re;class fSt extends vy{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,i=[];for(let s=0,r=t.count;s<r;s+=2)Bw.fromBufferAttribute(t,s),Gw.fromBufferAttribute(t,s+1),i[s]=s===0?0:i[s-1],i[s+1]=i[s]+Bw.distanceTo(Gw);e.setAttribute("lineDistance",new ks(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class _St extends vy{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class pO extends Vi{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new pt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Vw=new xt,xb=new mp,_d=new ps,md=new re;class mSt extends Jt{constructor(e=new fs,t=new pO){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){const i=this.geometry,s=this.matrixWorld,r=e.params.Points.threshold,o=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),_d.copy(i.boundingSphere),_d.applyMatrix4(s),_d.radius+=r,e.ray.intersectsSphere(_d)===!1)return;Vw.copy(s).invert(),xb.copy(e.ray).applyMatrix4(Vw);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),c=a*a,d=i.index,_=i.attributes.position;if(d!==null){const m=Math.max(0,o.start),h=Math.min(d.count,o.start+o.count);for(let f=m,y=h;f<y;f++){const b=d.getX(f);md.fromBufferAttribute(_,b),zw(md,b,c,s,e,t,this)}}else{const m=Math.max(0,o.start),h=Math.min(_.count,o.start+o.count);for(let f=m,y=h;f<y;f++)md.fromBufferAttribute(_,f),zw(md,f,c,s,e,t,this)}}updateMorphTargets(){const t=this.geometry.morphAttributes,i=Object.keys(t);if(i.length>0){const s=t[i[0]];if(s!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=s.length;r<o;r++){const a=s[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[a]=r}}}}}function zw(n,e,t,i,s,r,o){const a=xb.distanceSqToPoint(n);if(a<t){const c=new re;xb.closestPointToPoint(n,c),c.applyMatrix4(i);const d=s.ray.origin.distanceTo(c);if(d<s.near||d>s.far)return;r.push({distance:d,distanceToRay:Math.sqrt(a),point:c,index:e,face:null,object:o})}}class Sy extends Vi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new pt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=py,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Vs extends Sy{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Rt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return On(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new pt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new pt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new pt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Hw extends Vi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new pt(16777215),this.specular=new pt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new pt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=py,this.normalScale=new Rt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=dy,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}function hd(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function hSt(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function gSt(n){function e(s,r){return n[s]-n[r]}const t=n.length,i=new Array(t);for(let s=0;s!==t;++s)i[s]=s;return i.sort(e),i}function qw(n,e,t){const i=n.length,s=new n.constructor(i);for(let r=0,o=0;o!==i;++r){const a=t[r]*e;for(let c=0;c!==e;++c)s[o++]=n[a+c]}return s}function fO(n,e,t,i){let s=1,r=n[0];for(;r!==void 0&&r[i]===void 0;)r=n[s++];if(r===void 0)return;let o=r[i];if(o!==void 0)if(Array.isArray(o))do o=r[i],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=n[s++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[i],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=n[s++];while(r!==void 0);else do o=r[i],o!==void 0&&(e.push(r.time),t.push(o)),r=n[s++];while(r!==void 0)}class fc{constructor(e,t,i,s){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=s!==void 0?s:new t.constructor(i),this.sampleValues=t,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let i=this._cachedIndex,s=t[i],r=t[i-1];e:{t:{let o;n:{i:if(!(e<s)){for(let a=i+2;;){if(s===void 0){if(e<r)break i;return i=t.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===a)break;if(r=s,s=t[++i],e<s)break t}o=t.length;break n}if(!(e>=r)){const a=t[1];e<a&&(i=2,r=a);for(let c=i-2;;){if(r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===c)break;if(s=r,r=t[--i-1],e>=r)break t}o=i,i=0;break n}break e}for(;i<o;){const a=i+o>>>1;e<t[a]?o=a:i=a+1}if(s=t[i],r=t[i-1],r===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(s===void 0)return i=t.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,r,s)}return this.interpolate_(i,r,e,s)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,i=this.sampleValues,s=this.valueSize,r=e*s;for(let o=0;o!==s;++o)t[o]=i[r+o];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class bSt extends fc{constructor(e,t,i,s){super(e,t,i,s),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:UC,endingEnd:UC}}intervalChanged_(e,t,i){const s=this.parameterPositions;let r=e-2,o=e+1,a=s[r],c=s[o];if(a===void 0)switch(this.getSettings_().endingStart){case BC:r=e,a=2*t-i;break;case GC:r=s.length-2,a=t+s[r]-s[r+1];break;default:r=e,a=i}if(c===void 0)switch(this.getSettings_().endingEnd){case BC:o=e,c=2*i-t;break;case GC:o=1,c=i+s[1]-s[0];break;default:o=e-1,c=t}const d=(i-t)*.5,u=this.valueSize;this._weightPrev=d/(t-a),this._weightNext=d/(c-i),this._offsetPrev=r*u,this._offsetNext=o*u}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=e*a,d=c-a,u=this._offsetPrev,_=this._offsetNext,m=this._weightPrev,h=this._weightNext,f=(i-t)/(s-t),y=f*f,b=y*f,g=-m*b+2*m*y-m*f,E=(1+m)*b+(-1.5-2*m)*y+(-.5+m)*f+1,v=(-1-h)*b+(1.5+h)*y+.5*f,S=h*b-h*y;for(let R=0;R!==a;++R)r[R]=g*o[u+R]+E*o[d+R]+v*o[c+R]+S*o[_+R];return r}}class ySt extends fc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=e*a,d=c-a,u=(i-t)/(s-t),_=1-u;for(let m=0;m!==a;++m)r[m]=o[d+m]*_+o[c+m]*u;return r}}class ESt extends fc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e){return this.copySampleValue_(e-1)}}class _s{constructor(e,t,i,s){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(t===void 0||t.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=hd(t,this.TimeBufferType),this.values=hd(i,this.ValueBufferType),this.setInterpolation(s||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let i;if(t.toJSON!==this.toJSON)i=t.toJSON(e);else{i={name:e.name,times:hd(e.times,Array),values:hd(e.values,Array)};const s=e.getInterpolation();s!==e.DefaultInterpolation&&(i.interpolation=s)}return i.type=e.ValueTypeName,i}InterpolantFactoryMethodDiscrete(e){return new ESt(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new ySt(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new bSt(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case Xl:t=this.InterpolantFactoryMethodDiscrete;break;case Ta:t=this.InterpolantFactoryMethodLinear;break;case jh:t=this.InterpolantFactoryMethodSmooth;break}if(t===void 0){const i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(i);return console.warn("THREE.KeyframeTrack:",i),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Xl;case this.InterpolantFactoryMethodLinear:return Ta;case this.InterpolantFactoryMethodSmooth:return jh}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const t=this.times;for(let i=0,s=t.length;i!==s;++i)t[i]+=e}return this}scale(e){if(e!==1){const t=this.times;for(let i=0,s=t.length;i!==s;++i)t[i]*=e}return this}trim(e,t){const i=this.times,s=i.length;let r=0,o=s-1;for(;r!==s&&i[r]<e;)++r;for(;o!==-1&&i[o]>t;)--o;if(++o,r!==0||o!==s){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=i.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const i=this.times,s=this.values,r=i.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const c=i[a];if(typeof c=="number"&&isNaN(c)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,c),e=!1;break}if(o!==null&&o>c){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,c,o),e=!1;break}o=c}if(s!==void 0&&hSt(s))for(let a=0,c=s.length;a!==c;++a){const d=s[a];if(isNaN(d)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,d),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),i=this.getValueSize(),s=this.getInterpolation()===jh,r=e.length-1;let o=1;for(let a=1;a<r;++a){let c=!1;const d=e[a],u=e[a+1];if(d!==u&&(a!==1||d!==e[0]))if(s)c=!0;else{const _=a*i,m=_-i,h=_+i;for(let f=0;f!==i;++f){const y=t[_+f];if(y!==t[m+f]||y!==t[h+f]){c=!0;break}}}if(c){if(a!==o){e[o]=e[a];const _=a*i,m=o*i;for(let h=0;h!==i;++h)t[m+h]=t[_+h]}++o}}if(r>0){e[o]=e[r];for(let a=r*i,c=o*i,d=0;d!==i;++d)t[c+d]=t[a+d];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*i)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),i=this.constructor,s=new i(this.name,e,t);return s.createInterpolant=this.createInterpolant,s}}_s.prototype.TimeBufferType=Float32Array;_s.prototype.ValueBufferType=Float32Array;_s.prototype.DefaultInterpolation=Ta;class Ya extends _s{}Ya.prototype.ValueTypeName="bool";Ya.prototype.ValueBufferType=Array;Ya.prototype.DefaultInterpolation=Xl;Ya.prototype.InterpolantFactoryMethodLinear=void 0;Ya.prototype.InterpolantFactoryMethodSmooth=void 0;class _O extends _s{}_O.prototype.ValueTypeName="color";class wa extends _s{}wa.prototype.ValueTypeName="number";class vSt extends fc{constructor(e,t,i,s){super(e,t,i,s)}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=(i-t)/(s-t);let d=e*a;for(let u=d+a;d!==u;d+=4)Nr.slerpFlat(r,0,o,d-a,o,d,c);return r}}class go extends _s{InterpolantFactoryMethodLinear(e){return new vSt(this.times,this.values,this.getValueSize(),e)}}go.prototype.ValueTypeName="quaternion";go.prototype.DefaultInterpolation=Ta;go.prototype.InterpolantFactoryMethodSmooth=void 0;class $a extends _s{}$a.prototype.ValueTypeName="string";$a.prototype.ValueBufferType=Array;$a.prototype.DefaultInterpolation=Xl;$a.prototype.InterpolantFactoryMethodLinear=void 0;$a.prototype.InterpolantFactoryMethodSmooth=void 0;class Ra extends _s{}Ra.prototype.ValueTypeName="vector";class SSt{constructor(e,t=-1,i,s=Rgt){this.name=e,this.tracks=i,this.duration=t,this.blendMode=s,this.uuid=Gi(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],i=e.tracks,s=1/(e.fps||1);for(let o=0,a=i.length;o!==a;++o)t.push(xSt(i[o]).scale(s));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],i=e.tracks,s={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=i.length;r!==o;++r)t.push(_s.toJSON(i[r]));return s}static CreateFromMorphTargetSequence(e,t,i,s){const r=t.length,o=[];for(let a=0;a<r;a++){let c=[],d=[];c.push((a+r-1)%r,a,(a+1)%r),d.push(0,1,0);const u=gSt(c);c=qw(c,1,u),d=qw(d,1,u),!s&&c[0]===0&&(c.push(r),d.push(d[0])),o.push(new wa(".morphTargetInfluences["+t[a].name+"]",c,d).scale(1/i))}return new this(e,-1,o)}static findByName(e,t){let i=e;if(!Array.isArray(e)){const s=e;i=s.geometry&&s.geometry.animations||s.animations}for(let s=0;s<i.length;s++)if(i[s].name===t)return i[s];return null}static CreateClipsFromMorphTargetSequences(e,t,i){const s={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,c=e.length;a<c;a++){const d=e[a],u=d.name.match(r);if(u&&u.length>1){const _=u[1];let m=s[_];m||(s[_]=m=[]),m.push(d)}}const o=[];for(const a in s)o.push(this.CreateFromMorphTargetSequence(a,s[a],t,i));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(_,m,h,f,y){if(h.length!==0){const b=[],g=[];fO(h,b,g,f),b.length!==0&&y.push(new _(m,b,g))}},s=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let c=e.length||-1;const d=e.hierarchy||[];for(let _=0;_<d.length;_++){const m=d[_].keys;if(!(!m||m.length===0))if(m[0].morphTargets){const h={};let f;for(f=0;f<m.length;f++)if(m[f].morphTargets)for(let y=0;y<m[f].morphTargets.length;y++)h[m[f].morphTargets[y]]=-1;for(const y in h){const b=[],g=[];for(let E=0;E!==m[f].morphTargets.length;++E){const v=m[f];b.push(v.time),g.push(v.morphTarget===y?1:0)}s.push(new wa(".morphTargetInfluence["+y+"]",b,g))}c=h.length*o}else{const h=".bones["+t[_].name+"]";i(Ra,h+".position",m,"pos",s),i(go,h+".quaternion",m,"rot",s),i(Ra,h+".scale",m,"scl",s)}}return s.length===0?null:new this(r,c,s,a)}resetDuration(){const e=this.tracks;let t=0;for(let i=0,s=e.length;i!==s;++i){const r=this.tracks[i];t=Math.max(t,r.times[r.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function TSt(n){switch(n.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return wa;case"vector":case"vector2":case"vector3":case"vector4":return Ra;case"color":return _O;case"quaternion":return go;case"bool":case"boolean":return Ya;case"string":return $a}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+n)}function xSt(n){if(n.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=TSt(n.type);if(n.times===void 0){const t=[],i=[];fO(n.keys,t,i,"value"),n.times=t,n.values=i}return e.parse!==void 0?e.parse(n):new e(n.name,n.times,n.values,n.interpolation)}const Aa={enabled:!1,files:{},add:function(n,e){this.enabled!==!1&&(this.files[n]=e)},get:function(n){if(this.enabled!==!1)return this.files[n]},remove:function(n){delete this.files[n]},clear:function(){this.files={}}};class CSt{constructor(e,t,i){const s=this;let r=!1,o=0,a=0,c;const d=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=i,this.itemStart=function(u){a++,r===!1&&s.onStart!==void 0&&s.onStart(u,o,a),r=!0},this.itemEnd=function(u){o++,s.onProgress!==void 0&&s.onProgress(u,o,a),o===a&&(r=!1,s.onLoad!==void 0&&s.onLoad())},this.itemError=function(u){s.onError!==void 0&&s.onError(u)},this.resolveURL=function(u){return c?c(u):u},this.setURLModifier=function(u){return c=u,this},this.addHandler=function(u,_){return d.push(u,_),this},this.removeHandler=function(u){const _=d.indexOf(u);return _!==-1&&d.splice(_,2),this},this.getHandler=function(u){for(let _=0,m=d.length;_<m;_+=2){const h=d[_],f=d[_+1];if(h.global&&(h.lastIndex=0),h.test(u))return f}return null}}}const wSt=new CSt;class Wa{constructor(e){this.manager=e!==void 0?e:wSt,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const i=this;return new Promise(function(s,r){i.load(e,s,t,r)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Wa.DEFAULT_MATERIAL_NAME="__DEFAULT";const Ss={};class RSt extends Error{constructor(e,t){super(e),this.response=t}}class mO extends Wa{constructor(e){super(e)}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=Aa.get(e);if(r!==void 0)return this.manager.itemStart(e),setTimeout(()=>{t&&t(r),this.manager.itemEnd(e)},0),r;if(Ss[e]!==void 0){Ss[e].push({onLoad:t,onProgress:i,onError:s});return}Ss[e]=[],Ss[e].push({onLoad:t,onProgress:i,onError:s});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,c=this.responseType;fetch(o).then(d=>{if(d.status===200||d.status===0){if(d.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||d.body===void 0||d.body.getReader===void 0)return d;const u=Ss[e],_=d.body.getReader(),m=d.headers.get("Content-Length")||d.headers.get("X-File-Size"),h=m?parseInt(m):0,f=h!==0;let y=0;const b=new ReadableStream({start(g){E();function E(){_.read().then(({done:v,value:S})=>{if(v)g.close();else{y+=S.byteLength;const R=new ProgressEvent("progress",{lengthComputable:f,loaded:y,total:h});for(let C=0,A=u.length;C<A;C++){const I=u[C];I.onProgress&&I.onProgress(R)}g.enqueue(S),E()}})}}});return new Response(b)}else throw new RSt(`fetch for "${d.url}" responded with ${d.status}: ${d.statusText}`,d)}).then(d=>{switch(c){case"arraybuffer":return d.arrayBuffer();case"blob":return d.blob();case"document":return d.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return d.json();default:if(a===void 0)return d.text();{const _=/charset="?([^;"\s]*)"?/i.exec(a),m=_&&_[1]?_[1].toLowerCase():void 0,h=new TextDecoder(m);return d.arrayBuffer().then(f=>h.decode(f))}}}).then(d=>{Aa.add(e,d);const u=Ss[e];delete Ss[e];for(let _=0,m=u.length;_<m;_++){const h=u[_];h.onLoad&&h.onLoad(d)}}).catch(d=>{const u=Ss[e];if(u===void 0)throw this.manager.itemError(e),d;delete Ss[e];for(let _=0,m=u.length;_<m;_++){const h=u[_];h.onError&&h.onError(d)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class ASt extends Wa{constructor(e){super(e)}load(e,t,i,s){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Aa.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a=Zl("img");function c(){u(),Aa.add(e,this),t&&t(this),r.manager.itemEnd(e)}function d(_){u(),s&&s(_),r.manager.itemError(e),r.manager.itemEnd(e)}function u(){a.removeEventListener("load",c,!1),a.removeEventListener("error",d,!1)}return a.addEventListener("load",c,!1),a.addEventListener("error",d,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(e),a.src=e,a}}class hO extends Wa{constructor(e){super(e)}load(e,t,i,s){const r=new xn,o=new ASt(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(e,function(a){r.image=a,r.needsUpdate=!0,t!==void 0&&t(r)},i,s),r}}class bp extends Jt{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new pt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),t}}const Sg=new xt,Yw=new re,$w=new re;class Ty{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Rt(512,512),this.map=null,this.mapPass=null,this.matrix=new xt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new my,this._frameExtents=new Rt(1,1),this._viewportCount=1,this._viewports=[new $t(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,i=this.matrix;Yw.setFromMatrixPosition(e.matrixWorld),t.position.copy(Yw),$w.setFromMatrixPosition(e.target.matrixWorld),t.lookAt($w),t.updateMatrixWorld(),Sg.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Sg),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(Sg)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class MSt extends Ty{constructor(){super(new Gn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,i=xa*2*e.angle*this.focus,s=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;(i!==t.fov||s!==t.aspect||r!==t.far)&&(t.fov=i,t.aspect=s,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class NSt extends bp{constructor(e,t,i=0,s=Math.PI/3,r=0,o=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.distance=i,this.angle=s,this.penumbra=r,this.decay=o,this.map=null,this.shadow=new MSt}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Ww=new xt,pl=new re,Tg=new re;class OSt extends Ty{constructor(){super(new Gn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Rt(4,2),this._viewportCount=6,this._viewports=[new $t(2,1,1,1),new $t(0,1,1,1),new $t(3,1,1,1),new $t(1,1,1,1),new $t(3,0,1,1),new $t(1,0,1,1)],this._cubeDirections=[new re(1,0,0),new re(-1,0,0),new re(0,0,1),new re(0,0,-1),new re(0,1,0),new re(0,-1,0)],this._cubeUps=[new re(0,1,0),new re(0,1,0),new re(0,1,0),new re(0,1,0),new re(0,0,1),new re(0,0,-1)]}updateMatrices(e,t=0){const i=this.camera,s=this.matrix,r=e.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),pl.setFromMatrixPosition(e.matrixWorld),i.position.copy(pl),Tg.copy(i.position),Tg.add(this._cubeDirections[t]),i.up.copy(this._cubeUps[t]),i.lookAt(Tg),i.updateMatrixWorld(),s.makeTranslation(-pl.x,-pl.y,-pl.z),Ww.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Ww)}}class ISt extends bp{constructor(e,t,i=0,s=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=s,this.shadow=new OSt}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class kSt extends Ty{constructor(){super(new gy(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class gO extends bp{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Jt.DEFAULT_UP),this.updateMatrix(),this.target=new Jt,this.shadow=new kSt}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class DSt extends bp{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class Dl{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let i=0,s=e.length;i<s;i++)t+=String.fromCharCode(e[i]);try{return decodeURIComponent(escape(t))}catch{return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return t===-1?"./":e.slice(0,t+1)}static resolveURL(e,t){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class LSt extends Wa{constructor(e){super(e),this.isImageBitmapLoader=!0,typeof createImageBitmap>"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,i,s){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=Aa.get(e);if(o!==void 0)return r.manager.itemStart(e),setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o;const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader,fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(c){Aa.add(e,c),t&&t(c),r.manager.itemEnd(e)}).catch(function(c){s&&s(c),r.manager.itemError(e),r.manager.itemEnd(e)}),r.manager.itemStart(e)}}const xy="\\[\\]\\.:\\/",PSt=new RegExp("["+xy+"]","g"),Cy="[^"+xy+"]",FSt="[^"+xy.replace("\\.","")+"]",USt=/((?:WC+[\/:])*)/.source.replace("WC",Cy),BSt=/(WCOD+)?/.source.replace("WCOD",FSt),GSt=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Cy),VSt=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Cy),zSt=new RegExp("^"+USt+BSt+GSt+VSt+"$"),HSt=["material","materials","bones","map"];class qSt{constructor(e,t,i){const s=i||Ut.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,s)}getValue(e,t){this.bind();const i=this._targetGroup.nCachedObjects_,s=this._bindings[i];s!==void 0&&s.getValue(e,t)}setValue(e,t){const i=this._bindings;for(let s=this._targetGroup.nCachedObjects_,r=i.length;s!==r;++s)i[s].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,i=e.length;t!==i;++t)e[t].unbind()}}class Ut{constructor(e,t,i){this.path=t,this.parsedPath=i||Ut.parseTrackName(t),this.node=Ut.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,i){return e&&e.isAnimationObjectGroup?new Ut.Composite(e,t,i):new Ut(e,t,i)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(PSt,"")}static parseTrackName(e){const t=zSt.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const i={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},s=i.nodeName&&i.nodeName.lastIndexOf(".");if(s!==void 0&&s!==-1){const r=i.nodeName.substring(s+1);HSt.indexOf(r)!==-1&&(i.nodeName=i.nodeName.substring(0,s),i.objectName=r)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return i}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const i=e.skeleton.getBoneByName(t);if(i!==void 0)return i}if(e.children){const i=function(r){for(let o=0;o<r.length;o++){const a=r[o];if(a.name===t||a.uuid===t)return a;const c=i(a.children);if(c)return c}return null},s=i(e.children);if(s)return s}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)e[t++]=i[s]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const i=this.resolvedProperty;for(let s=0,r=i.length;s!==r;++s)i[s]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,i=t.objectName,s=t.propertyName;let r=t.propertyIndex;if(e||(e=Ut.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(i){let d=t.objectIndex;switch(i){case"materials":if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}e=e.material.materials;break;case"bones":if(!e.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}e=e.skeleton.bones;for(let u=0;u<e.length;u++)if(e[u].name===d){d=u;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!e.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}e=e.material.map;break;default:if(e[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}e=e[i]}if(d!==void 0){if(e[d]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);return}e=e[d]}}const o=e[s];if(o===void 0){const d=t.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+d+"."+s+" but it wasn't found.",e);return}let a=this.Versioning.None;this.targetObject=e,e.needsUpdate!==void 0?a=this.Versioning.NeedsUpdate:e.matrixWorldNeedsUpdate!==void 0&&(a=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(r!==void 0){if(s==="morphTargetInfluences"){if(!e.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!e.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}e.morphTargetDictionary[r]!==void 0&&(r=e.morphTargetDictionary[r])}c=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else o.fromArray!==void 0&&o.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(c=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=s;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}Ut.Composite=qSt;Ut.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};Ut.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};Ut.prototype.GetterByBindingType=[Ut.prototype._getValue_direct,Ut.prototype._getValue_array,Ut.prototype._getValue_arrayElement,Ut.prototype._getValue_toArray];Ut.prototype.SetterByBindingTypeAndVersioning=[[Ut.prototype._setValue_direct,Ut.prototype._setValue_direct_setNeedsUpdate,Ut.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[Ut.prototype._setValue_array,Ut.prototype._setValue_array_setNeedsUpdate,Ut.prototype._setValue_array_setMatrixWorldNeedsUpdate],[Ut.prototype._setValue_arrayElement,Ut.prototype._setValue_arrayElement_setNeedsUpdate,Ut.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[Ut.prototype._setValue_fromArray,Ut.prototype._setValue_fromArray_setNeedsUpdate,Ut.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:cy}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=cy);function Kw(n,e){if(e===Agt)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),n;if(e===bb||e===zN){let t=n.getIndex();if(t===null){const o=[],a=n.getAttribute("position");if(a!==void 0){for(let c=0;c<a.count;c++)o.push(c);n.setIndex(o),t=n.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),n}const i=t.count-2,s=[];if(e===bb)for(let o=1;o<=i;o++)s.push(t.getX(0)),s.push(t.getX(o)),s.push(t.getX(o+1));else for(let o=0;o<i;o++)o%2===0?(s.push(t.getX(o)),s.push(t.getX(o+1)),s.push(t.getX(o+2))):(s.push(t.getX(o+2)),s.push(t.getX(o+1)),s.push(t.getX(o)));s.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const r=n.clone();return r.setIndex(s),r.clearGroups(),r}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),n}class YSt extends Wa{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(t){return new QSt(t)}),this.register(function(t){return new r1t(t)}),this.register(function(t){return new o1t(t)}),this.register(function(t){return new a1t(t)}),this.register(function(t){return new ZSt(t)}),this.register(function(t){return new JSt(t)}),this.register(function(t){return new e1t(t)}),this.register(function(t){return new t1t(t)}),this.register(function(t){return new jSt(t)}),this.register(function(t){return new n1t(t)}),this.register(function(t){return new XSt(t)}),this.register(function(t){return new s1t(t)}),this.register(function(t){return new i1t(t)}),this.register(function(t){return new WSt(t)}),this.register(function(t){return new l1t(t)}),this.register(function(t){return new c1t(t)})}load(e,t,i,s){const r=this;let o;if(this.resourcePath!=="")o=this.resourcePath;else if(this.path!==""){const d=Dl.extractUrlBase(e);o=Dl.resolveURL(d,this.path)}else o=Dl.extractUrlBase(e);this.manager.itemStart(e);const a=function(d){s?s(d):console.error(d),r.manager.itemError(e),r.manager.itemEnd(e)},c=new mO(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,function(d){try{r.parse(d,o,function(u){t(u),r.manager.itemEnd(e)},a)}catch(u){a(u)}},i,a)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,i,s){let r;const o={},a={},c=new TextDecoder;if(typeof e=="string")r=JSON.parse(e);else if(e instanceof ArrayBuffer)if(c.decode(new Uint8Array(e,0,4))===bO){try{o[wt.KHR_BINARY_GLTF]=new d1t(e)}catch(_){s&&s(_);return}r=JSON.parse(o[wt.KHR_BINARY_GLTF].content)}else r=JSON.parse(c.decode(e));else r=e;if(r.asset===void 0||r.asset.version[0]<2){s&&s(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const d=new T1t(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});d.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const _=this.pluginCallbacks[u](d);_.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[_.name]=_,o[_.name]=!0}if(r.extensionsUsed)for(let u=0;u<r.extensionsUsed.length;++u){const _=r.extensionsUsed[u],m=r.extensionsRequired||[];switch(_){case wt.KHR_MATERIALS_UNLIT:o[_]=new KSt;break;case wt.KHR_DRACO_MESH_COMPRESSION:o[_]=new u1t(r,this.dracoLoader);break;case wt.KHR_TEXTURE_TRANSFORM:o[_]=new p1t;break;case wt.KHR_MESH_QUANTIZATION:o[_]=new f1t;break;default:m.indexOf(_)>=0&&a[_]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+_+'".')}}d.setExtensions(o),d.setPlugins(a),d.parse(i,s)}parseAsync(e,t){const i=this;return new Promise(function(s,r){i.parse(e,t,s,r)})}}function $St(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const wt={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class WSt{constructor(e){this.parser=e,this.name=wt.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let i=0,s=t.length;i<s;i++){const r=t[i];r.extensions&&r.extensions[this.name]&&r.extensions[this.name].light!==void 0&&e._addNodeRef(this.cache,r.extensions[this.name].light)}}_loadLight(e){const t=this.parser,i="light:"+e;let s=t.cache.get(i);if(s)return s;const r=t.json,c=((r.extensions&&r.extensions[this.name]||{}).lights||[])[e];let d;const u=new pt(16777215);c.color!==void 0&&u.setRGB(c.color[0],c.color[1],c.color[2],Cn);const _=c.range!==void 0?c.range:0;switch(c.type){case"directional":d=new gO(u),d.target.position.set(0,0,-1),d.add(d.target);break;case"point":d=new ISt(u),d.distance=_;break;case"spot":d=new NSt(u),d.distance=_,c.spot=c.spot||{},c.spot.innerConeAngle=c.spot.innerConeAngle!==void 0?c.spot.innerConeAngle:0,c.spot.outerConeAngle=c.spot.outerConeAngle!==void 0?c.spot.outerConeAngle:Math.PI/4,d.angle=c.spot.outerConeAngle,d.penumbra=1-c.spot.innerConeAngle/c.spot.outerConeAngle,d.target.position.set(0,0,-1),d.add(d.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+c.type)}return d.position.set(0,0,0),d.decay=2,dr(d,c),c.intensity!==void 0&&(d.intensity=c.intensity),d.name=t.createUniqueName(c.name||"light_"+e),s=Promise.resolve(d),t.cache.add(i,s),s}getDependency(e,t){if(e==="light")return this._loadLight(t)}createNodeAttachment(e){const t=this,i=this.parser,r=i.json.nodes[e],a=(r.extensions&&r.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(c){return i._getNodeRef(t.cache,a,c)})}}class KSt{constructor(){this.name=wt.KHR_MATERIALS_UNLIT}getMaterialType(){return _r}extendParams(e,t,i){const s=[];e.color=new pt(1,1,1),e.opacity=1;const r=t.pbrMetallicRoughness;if(r){if(Array.isArray(r.baseColorFactor)){const o=r.baseColorFactor;e.color.setRGB(o[0],o[1],o[2],Cn),e.opacity=o[3]}r.baseColorTexture!==void 0&&s.push(i.assignTexture(e,"map",r.baseColorTexture,nn))}return Promise.all(s)}}class jSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const s=this.parser.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=s.extensions[this.name].emissiveStrength;return r!==void 0&&(t.emissiveIntensity=r),Promise.resolve()}}class QSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];if(o.clearcoatFactor!==void 0&&(t.clearcoat=o.clearcoatFactor),o.clearcoatTexture!==void 0&&r.push(i.assignTexture(t,"clearcoatMap",o.clearcoatTexture)),o.clearcoatRoughnessFactor!==void 0&&(t.clearcoatRoughness=o.clearcoatRoughnessFactor),o.clearcoatRoughnessTexture!==void 0&&r.push(i.assignTexture(t,"clearcoatRoughnessMap",o.clearcoatRoughnessTexture)),o.clearcoatNormalTexture!==void 0&&(r.push(i.assignTexture(t,"clearcoatNormalMap",o.clearcoatNormalTexture)),o.clearcoatNormalTexture.scale!==void 0)){const a=o.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new Rt(a,a)}return Promise.all(r)}}class XSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.iridescenceFactor!==void 0&&(t.iridescence=o.iridescenceFactor),o.iridescenceTexture!==void 0&&r.push(i.assignTexture(t,"iridescenceMap",o.iridescenceTexture)),o.iridescenceIor!==void 0&&(t.iridescenceIOR=o.iridescenceIor),t.iridescenceThicknessRange===void 0&&(t.iridescenceThicknessRange=[100,400]),o.iridescenceThicknessMinimum!==void 0&&(t.iridescenceThicknessRange[0]=o.iridescenceThicknessMinimum),o.iridescenceThicknessMaximum!==void 0&&(t.iridescenceThicknessRange[1]=o.iridescenceThicknessMaximum),o.iridescenceThicknessTexture!==void 0&&r.push(i.assignTexture(t,"iridescenceThicknessMap",o.iridescenceThicknessTexture)),Promise.all(r)}}class ZSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_SHEEN}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[];t.sheenColor=new pt(0,0,0),t.sheenRoughness=0,t.sheen=1;const o=s.extensions[this.name];if(o.sheenColorFactor!==void 0){const a=o.sheenColorFactor;t.sheenColor.setRGB(a[0],a[1],a[2],Cn)}return o.sheenRoughnessFactor!==void 0&&(t.sheenRoughness=o.sheenRoughnessFactor),o.sheenColorTexture!==void 0&&r.push(i.assignTexture(t,"sheenColorMap",o.sheenColorTexture,nn)),o.sheenRoughnessTexture!==void 0&&r.push(i.assignTexture(t,"sheenRoughnessMap",o.sheenRoughnessTexture)),Promise.all(r)}}class JSt{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.transmissionFactor!==void 0&&(t.transmission=o.transmissionFactor),o.transmissionTexture!==void 0&&r.push(i.assignTexture(t,"transmissionMap",o.transmissionTexture)),Promise.all(r)}}class e1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_VOLUME}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];t.thickness=o.thicknessFactor!==void 0?o.thicknessFactor:0,o.thicknessTexture!==void 0&&r.push(i.assignTexture(t,"thicknessMap",o.thicknessTexture)),t.attenuationDistance=o.attenuationDistance||1/0;const a=o.attenuationColor||[1,1,1];return t.attenuationColor=new pt().setRGB(a[0],a[1],a[2],Cn),Promise.all(r)}}class t1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_IOR}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const s=this.parser.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=s.extensions[this.name];return t.ior=r.ior!==void 0?r.ior:1.5,Promise.resolve()}}class n1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_SPECULAR}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];t.specularIntensity=o.specularFactor!==void 0?o.specularFactor:1,o.specularTexture!==void 0&&r.push(i.assignTexture(t,"specularIntensityMap",o.specularTexture));const a=o.specularColorFactor||[1,1,1];return t.specularColor=new pt().setRGB(a[0],a[1],a[2],Cn),o.specularColorTexture!==void 0&&r.push(i.assignTexture(t,"specularColorMap",o.specularColorTexture,nn)),Promise.all(r)}}class i1t{constructor(e){this.parser=e,this.name=wt.EXT_MATERIALS_BUMP}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return t.bumpScale=o.bumpFactor!==void 0?o.bumpFactor:1,o.bumpTexture!==void 0&&r.push(i.assignTexture(t,"bumpMap",o.bumpTexture)),Promise.all(r)}}class s1t{constructor(e){this.parser=e,this.name=wt.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const i=this.parser.json.materials[e];return!i.extensions||!i.extensions[this.name]?null:Vs}extendMaterialParams(e,t){const i=this.parser,s=i.json.materials[e];if(!s.extensions||!s.extensions[this.name])return Promise.resolve();const r=[],o=s.extensions[this.name];return o.anisotropyStrength!==void 0&&(t.anisotropy=o.anisotropyStrength),o.anisotropyRotation!==void 0&&(t.anisotropyRotation=o.anisotropyRotation),o.anisotropyTexture!==void 0&&r.push(i.assignTexture(t,"anisotropyMap",o.anisotropyTexture)),Promise.all(r)}}class r1t{constructor(e){this.parser=e,this.name=wt.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,i=t.json,s=i.textures[e];if(!s.extensions||!s.extensions[this.name])return null;const r=s.extensions[this.name],o=t.options.ktx2Loader;if(!o){if(i.extensionsRequired&&i.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,o)}}class o1t{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let c=i.textureLoader;if(a.uri){const d=i.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return i.loadTextureImage(e,o.source,c);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class a1t{constructor(e){this.parser=e,this.name=wt.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,i=this.parser,s=i.json,r=s.textures[e];if(!r.extensions||!r.extensions[t])return null;const o=r.extensions[t],a=s.images[o.source];let c=i.textureLoader;if(a.uri){const d=i.options.manager.getHandler(a.uri);d!==null&&(c=d)}return this.detectSupport().then(function(d){if(d)return i.loadTextureImage(e,o.source,c);if(s.extensionsRequired&&s.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return i.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class l1t{constructor(e){this.name=wt.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,i=t.bufferViews[e];if(i.extensions&&i.extensions[this.name]){const s=i.extensions[this.name],r=this.parser.getDependency("buffer",s.buffer),o=this.parser.options.meshoptDecoder;if(!o||!o.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return r.then(function(a){const c=s.byteOffset||0,d=s.byteLength||0,u=s.count,_=s.byteStride,m=new Uint8Array(a,c,d);return o.decodeGltfBufferAsync?o.decodeGltfBufferAsync(u,_,m,s.mode,s.filter).then(function(h){return h.buffer}):o.ready.then(function(){const h=new ArrayBuffer(u*_);return o.decodeGltfBuffer(new Uint8Array(h),u,_,m,s.mode,s.filter),h})})}else return null}}class c1t{constructor(e){this.name=wt.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,i=t.nodes[e];if(!i.extensions||!i.extensions[this.name]||i.mesh===void 0)return null;const s=t.meshes[i.mesh];for(const d of s.primitives)if(d.mode!==_i.TRIANGLES&&d.mode!==_i.TRIANGLE_STRIP&&d.mode!==_i.TRIANGLE_FAN&&d.mode!==void 0)return null;const o=i.extensions[this.name].attributes,a=[],c={};for(const d in o)a.push(this.parser.getDependency("accessor",o[d]).then(u=>(c[d]=u,c[d])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(d=>{const u=d.pop(),_=u.isGroup?u.children:[u],m=d[0].count,h=[];for(const f of _){const y=new xt,b=new re,g=new Nr,E=new re(1,1,1),v=new pSt(f.geometry,f.material,m);for(let S=0;S<m;S++)c.TRANSLATION&&b.fromBufferAttribute(c.TRANSLATION,S),c.ROTATION&&g.fromBufferAttribute(c.ROTATION,S),c.SCALE&&E.fromBufferAttribute(c.SCALE,S),v.setMatrixAt(S,y.compose(b,g,E));for(const S in c)if(S==="_COLOR_0"){const R=c[S];v.instanceColor=new Tb(R.array,R.itemSize,R.normalized)}else S!=="TRANSLATION"&&S!=="ROTATION"&&S!=="SCALE"&&f.geometry.setAttribute(S,c[S]);Jt.prototype.copy.call(v,f),this.parser.assignFinalMaterial(v),h.push(v)}return u.isGroup?(u.clear(),u.add(...h),u):h[0]}))}}const bO="glTF",fl=12,jw={JSON:1313821514,BIN:5130562};class d1t{constructor(e){this.name=wt.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,fl),i=new TextDecoder;if(this.header={magic:i.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==bO)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const s=this.header.length-fl,r=new DataView(e,fl);let o=0;for(;o<s;){const a=r.getUint32(o,!0);o+=4;const c=r.getUint32(o,!0);if(o+=4,c===jw.JSON){const d=new Uint8Array(e,fl+o,a);this.content=i.decode(d)}else if(c===jw.BIN){const d=fl+o;this.body=e.slice(d,d+a)}o+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class u1t{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=wt.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const i=this.json,s=this.dracoLoader,r=e.extensions[this.name].bufferView,o=e.extensions[this.name].attributes,a={},c={},d={};for(const u in o){const _=Cb[u]||u.toLowerCase();a[_]=o[u]}for(const u in e.attributes){const _=Cb[u]||u.toLowerCase();if(o[u]!==void 0){const m=i.accessors[e.attributes[u]],h=aa[m.componentType];d[_]=h.name,c[_]=m.normalized===!0}}return t.getDependency("bufferView",r).then(function(u){return new Promise(function(_){s.decodeDracoFile(u,function(m){for(const h in m.attributes){const f=m.attributes[h],y=c[h];y!==void 0&&(f.normalized=y)}_(m)},a,d)})})}}class p1t{constructor(){this.name=wt.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return(t.texCoord===void 0||t.texCoord===e.channel)&&t.offset===void 0&&t.rotation===void 0&&t.scale===void 0||(e=e.clone(),t.texCoord!==void 0&&(e.channel=t.texCoord),t.offset!==void 0&&e.offset.fromArray(t.offset),t.rotation!==void 0&&(e.rotation=t.rotation),t.scale!==void 0&&e.repeat.fromArray(t.scale),e.needsUpdate=!0),e}}class f1t{constructor(){this.name=wt.KHR_MESH_QUANTIZATION}}class yO extends fc{constructor(e,t,i,s){super(e,t,i,s)}copySampleValue_(e){const t=this.resultBuffer,i=this.sampleValues,s=this.valueSize,r=e*s*3+s;for(let o=0;o!==s;o++)t[o]=i[r+o];return t}interpolate_(e,t,i,s){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,c=a*2,d=a*3,u=s-t,_=(i-t)/u,m=_*_,h=m*_,f=e*d,y=f-d,b=-2*h+3*m,g=h-m,E=1-b,v=g-m+_;for(let S=0;S!==a;S++){const R=o[y+S+a],C=o[y+S+c]*u,A=o[f+S+a],I=o[f+S]*u;r[S]=E*R+v*C+b*A+g*I}return r}}const _1t=new Nr;class m1t extends yO{interpolate_(e,t,i,s){const r=super.interpolate_(e,t,i,s);return _1t.fromArray(r).normalize().toArray(r),r}}const _i={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},aa={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},Qw={9728:gn,9729:Wn,9984:gb,9985:DN,9986:kd,9987:_o},Xw={33071:hi,33648:hu,10497:va},xg={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},Cb={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},Js={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},h1t={CUBICSPLINE:void 0,LINEAR:Ta,STEP:Xl},Cg={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function g1t(n){return n.DefaultMaterial===void 0&&(n.DefaultMaterial=new Sy({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Fs})),n.DefaultMaterial}function Br(n,e,t){for(const i in t.extensions)n[i]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[i]=t.extensions[i])}function dr(n,e){e.extras!==void 0&&(typeof e.extras=="object"?Object.assign(n.userData,e.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+e.extras))}function b1t(n,e,t){let i=!1,s=!1,r=!1;for(let d=0,u=e.length;d<u;d++){const _=e[d];if(_.POSITION!==void 0&&(i=!0),_.NORMAL!==void 0&&(s=!0),_.COLOR_0!==void 0&&(r=!0),i&&s&&r)break}if(!i&&!s&&!r)return Promise.resolve(n);const o=[],a=[],c=[];for(let d=0,u=e.length;d<u;d++){const _=e[d];if(i){const m=_.POSITION!==void 0?t.getDependency("accessor",_.POSITION):n.attributes.position;o.push(m)}if(s){const m=_.NORMAL!==void 0?t.getDependency("accessor",_.NORMAL):n.attributes.normal;a.push(m)}if(r){const m=_.COLOR_0!==void 0?t.getDependency("accessor",_.COLOR_0):n.attributes.color;c.push(m)}}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(c)]).then(function(d){const u=d[0],_=d[1],m=d[2];return i&&(n.morphAttributes.position=u),s&&(n.morphAttributes.normal=_),r&&(n.morphAttributes.color=m),n.morphTargetsRelative=!0,n})}function y1t(n,e){if(n.updateMorphTargets(),e.weights!==void 0)for(let t=0,i=e.weights.length;t<i;t++)n.morphTargetInfluences[t]=e.weights[t];if(e.extras&&Array.isArray(e.extras.targetNames)){const t=e.extras.targetNames;if(n.morphTargetInfluences.length===t.length){n.morphTargetDictionary={};for(let i=0,s=t.length;i<s;i++)n.morphTargetDictionary[t[i]]=i}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function E1t(n){let e;const t=n.extensions&&n.extensions[wt.KHR_DRACO_MESH_COMPRESSION];if(t?e="draco:"+t.bufferView+":"+t.indices+":"+wg(t.attributes):e=n.indices+":"+wg(n.attributes)+":"+n.mode,n.targets!==void 0)for(let i=0,s=n.targets.length;i<s;i++)e+=":"+wg(n.targets[i]);return e}function wg(n){let e="";const t=Object.keys(n).sort();for(let i=0,s=t.length;i<s;i++)e+=t[i]+":"+n[t[i]]+";";return e}function wb(n){switch(n){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function v1t(n){return n.search(/\.jpe?g($|\?)/i)>0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const S1t=new xt;class T1t{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new $St,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let i=!1,s=!1,r=-1;typeof navigator<"u"&&(i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,s=navigator.userAgent.indexOf("Firefox")>-1,r=s?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||i||s&&r<98?this.textureLoader=new hO(this.options.manager):this.textureLoader=new LSt(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new mO(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const i=this,s=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(o){return o._markDefs&&o._markDefs()}),Promise.all(this._invokeAll(function(o){return o.beforeRoot&&o.beforeRoot()})).then(function(){return Promise.all([i.getDependencies("scene"),i.getDependencies("animation"),i.getDependencies("camera")])}).then(function(o){const a={scene:o[0][s.scene||0],scenes:o[0],animations:o[1],cameras:o[2],asset:s.asset,parser:i,userData:{}};return Br(r,a,s),dr(a,s),Promise.all(i._invokeAll(function(c){return c.afterRoot&&c.afterRoot(a)})).then(function(){e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],i=this.json.meshes||[];for(let s=0,r=t.length;s<r;s++){const o=t[s].joints;for(let a=0,c=o.length;a<c;a++)e[o[a]].isBone=!0}for(let s=0,r=e.length;s<r;s++){const o=e[s];o.mesh!==void 0&&(this._addNodeRef(this.meshCache,o.mesh),o.skin!==void 0&&(i[o.mesh].isSkinnedMesh=!0)),o.camera!==void 0&&this._addNodeRef(this.cameraCache,o.camera)}}_addNodeRef(e,t){t!==void 0&&(e.refs[t]===void 0&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,i){if(e.refs[t]<=1)return i;const s=i.clone(),r=(o,a)=>{const c=this.associations.get(o);c!=null&&this.associations.set(a,c);for(const[d,u]of o.children.entries())r(u,a.children[d])};return r(i,s),s.name+="_instance_"+e.uses[t]++,s}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let i=0;i<t.length;i++){const s=e(t[i]);if(s)return s}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const i=[];for(let s=0;s<t.length;s++){const r=e(t[s]);r&&i.push(r)}return i}getDependency(e,t){const i=e+":"+t;let s=this.cache.get(i);if(!s){switch(e){case"scene":s=this.loadScene(t);break;case"node":s=this._invokeOne(function(r){return r.loadNode&&r.loadNode(t)});break;case"mesh":s=this._invokeOne(function(r){return r.loadMesh&&r.loadMesh(t)});break;case"accessor":s=this.loadAccessor(t);break;case"bufferView":s=this._invokeOne(function(r){return r.loadBufferView&&r.loadBufferView(t)});break;case"buffer":s=this.loadBuffer(t);break;case"material":s=this._invokeOne(function(r){return r.loadMaterial&&r.loadMaterial(t)});break;case"texture":s=this._invokeOne(function(r){return r.loadTexture&&r.loadTexture(t)});break;case"skin":s=this.loadSkin(t);break;case"animation":s=this._invokeOne(function(r){return r.loadAnimation&&r.loadAnimation(t)});break;case"camera":s=this.loadCamera(t);break;default:if(s=this._invokeOne(function(r){return r!=this&&r.getDependency&&r.getDependency(e,t)}),!s)throw new Error("Unknown type: "+e);break}this.cache.add(i,s)}return s}getDependencies(e){let t=this.cache.get(e);if(!t){const i=this,s=this.json[e+(e==="mesh"?"es":"s")]||[];t=Promise.all(s.map(function(r,o){return i.getDependency(e,o)})),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],i=this.fileLoader;if(t.type&&t.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(t.uri===void 0&&e===0)return Promise.resolve(this.extensions[wt.KHR_BINARY_GLTF].body);const s=this.options;return new Promise(function(r,o){i.load(Dl.resolveURL(t.uri,s.path),r,void 0,function(){o(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))})})}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then(function(i){const s=t.byteLength||0,r=t.byteOffset||0;return i.slice(r,r+s)})}loadAccessor(e){const t=this,i=this.json,s=this.json.accessors[e];if(s.bufferView===void 0&&s.sparse===void 0){const o=xg[s.type],a=aa[s.componentType],c=s.normalized===!0,d=new a(s.count*o);return Promise.resolve(new zn(d,o,c))}const r=[];return s.bufferView!==void 0?r.push(this.getDependency("bufferView",s.bufferView)):r.push(null),s.sparse!==void 0&&(r.push(this.getDependency("bufferView",s.sparse.indices.bufferView)),r.push(this.getDependency("bufferView",s.sparse.values.bufferView))),Promise.all(r).then(function(o){const a=o[0],c=xg[s.type],d=aa[s.componentType],u=d.BYTES_PER_ELEMENT,_=u*c,m=s.byteOffset||0,h=s.bufferView!==void 0?i.bufferViews[s.bufferView].byteStride:void 0,f=s.normalized===!0;let y,b;if(h&&h!==_){const g=Math.floor(m/h),E="InterleavedBuffer:"+s.bufferView+":"+s.componentType+":"+g+":"+s.count;let v=t.cache.get(E);v||(y=new d(a,g*h,s.count*h/u),v=new oSt(y,h/u),t.cache.add(E,v)),b=new yy(v,c,m%h/u,f)}else a===null?y=new d(s.count*c):y=new d(a,m,s.count*c),b=new zn(y,c,f);if(s.sparse!==void 0){const g=xg.SCALAR,E=aa[s.sparse.indices.componentType],v=s.sparse.indices.byteOffset||0,S=s.sparse.values.byteOffset||0,R=new E(o[1],v,s.sparse.count*g),C=new d(o[2],S,s.sparse.count*c);a!==null&&(b=new zn(b.array.slice(),b.itemSize,b.normalized));for(let A=0,I=R.length;A<I;A++){const x=R[A];if(b.setX(x,C[A*c]),c>=2&&b.setY(x,C[A*c+1]),c>=3&&b.setZ(x,C[A*c+2]),c>=4&&b.setW(x,C[A*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return b})}loadTexture(e){const t=this.json,i=this.options,r=t.textures[e].source,o=t.images[r];let a=this.textureLoader;if(o.uri){const c=i.manager.getHandler(o.uri);c!==null&&(a=c)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,i){const s=this,r=this.json,o=r.textures[e],a=r.images[t],c=(a.uri||a.bufferView)+":"+o.sampler;if(this.textureCache[c])return this.textureCache[c];const d=this.loadImageSource(t,i).then(function(u){u.flipY=!1,u.name=o.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const m=(r.samplers||{})[o.sampler]||{};return u.magFilter=Qw[m.magFilter]||Wn,u.minFilter=Qw[m.minFilter]||_o,u.wrapS=Xw[m.wrapS]||va,u.wrapT=Xw[m.wrapT]||va,s.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=d,d}loadImageSource(e,t){const i=this,s=this.json,r=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(_=>_.clone());const o=s.images[e],a=self.URL||self.webkitURL;let c=o.uri||"",d=!1;if(o.bufferView!==void 0)c=i.getDependency("bufferView",o.bufferView).then(function(_){d=!0;const m=new Blob([_],{type:o.mimeType});return c=a.createObjectURL(m),c});else if(o.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then(function(_){return new Promise(function(m,h){let f=m;t.isImageBitmapLoader===!0&&(f=function(y){const b=new xn(y);b.needsUpdate=!0,m(b)}),t.load(Dl.resolveURL(_,r.path),f,void 0,h)})}).then(function(_){return d===!0&&a.revokeObjectURL(c),_.userData.mimeType=o.mimeType||v1t(o.uri),_}).catch(function(_){throw console.error("THREE.GLTFLoader: Couldn't load texture",c),_});return this.sourceCache[e]=u,u}assignTexture(e,t,i,s){const r=this;return this.getDependency("texture",i.index).then(function(o){if(!o)return null;if(i.texCoord!==void 0&&i.texCoord>0&&(o=o.clone(),o.channel=i.texCoord),r.extensions[wt.KHR_TEXTURE_TRANSFORM]){const a=i.extensions!==void 0?i.extensions[wt.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const c=r.associations.get(o);o=r.extensions[wt.KHR_TEXTURE_TRANSFORM].extendTexture(o,a),r.associations.set(o,c)}}return s!==void 0&&(o.colorSpace=s),e[t]=o,o})}assignFinalMaterial(e){const t=e.geometry;let i=e.material;const s=t.attributes.tangent===void 0,r=t.attributes.color!==void 0,o=t.attributes.normal===void 0;if(e.isPoints){const a="PointsMaterial:"+i.uuid;let c=this.cache.get(a);c||(c=new pO,Vi.prototype.copy.call(c,i),c.color.copy(i.color),c.map=i.map,c.sizeAttenuation=!1,this.cache.add(a,c)),i=c}else if(e.isLine){const a="LineBasicMaterial:"+i.uuid;let c=this.cache.get(a);c||(c=new uO,Vi.prototype.copy.call(c,i),c.color.copy(i.color),c.map=i.map,this.cache.add(a,c)),i=c}if(s||r||o){let a="ClonedMaterial:"+i.uuid+":";s&&(a+="derivative-tangents:"),r&&(a+="vertex-colors:"),o&&(a+="flat-shading:");let c=this.cache.get(a);c||(c=i.clone(),r&&(c.vertexColors=!0),o&&(c.flatShading=!0),s&&(c.normalScale&&(c.normalScale.y*=-1),c.clearcoatNormalScale&&(c.clearcoatNormalScale.y*=-1)),this.cache.add(a,c),this.associations.set(c,this.associations.get(i))),i=c}e.material=i}getMaterialType(){return Sy}loadMaterial(e){const t=this,i=this.json,s=this.extensions,r=i.materials[e];let o;const a={},c=r.extensions||{},d=[];if(c[wt.KHR_MATERIALS_UNLIT]){const _=s[wt.KHR_MATERIALS_UNLIT];o=_.getMaterialType(),d.push(_.extendParams(a,r,t))}else{const _=r.pbrMetallicRoughness||{};if(a.color=new pt(1,1,1),a.opacity=1,Array.isArray(_.baseColorFactor)){const m=_.baseColorFactor;a.color.setRGB(m[0],m[1],m[2],Cn),a.opacity=m[3]}_.baseColorTexture!==void 0&&d.push(t.assignTexture(a,"map",_.baseColorTexture,nn)),a.metalness=_.metallicFactor!==void 0?_.metallicFactor:1,a.roughness=_.roughnessFactor!==void 0?_.roughnessFactor:1,_.metallicRoughnessTexture!==void 0&&(d.push(t.assignTexture(a,"metalnessMap",_.metallicRoughnessTexture)),d.push(t.assignTexture(a,"roughnessMap",_.metallicRoughnessTexture))),o=this._invokeOne(function(m){return m.getMaterialType&&m.getMaterialType(e)}),d.push(Promise.all(this._invokeAll(function(m){return m.extendMaterialParams&&m.extendMaterialParams(e,a)})))}r.doubleSided===!0&&(a.side=Ji);const u=r.alphaMode||Cg.OPAQUE;if(u===Cg.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===Cg.MASK&&(a.alphaTest=r.alphaCutoff!==void 0?r.alphaCutoff:.5)),r.normalTexture!==void 0&&o!==_r&&(d.push(t.assignTexture(a,"normalMap",r.normalTexture)),a.normalScale=new Rt(1,1),r.normalTexture.scale!==void 0)){const _=r.normalTexture.scale;a.normalScale.set(_,_)}if(r.occlusionTexture!==void 0&&o!==_r&&(d.push(t.assignTexture(a,"aoMap",r.occlusionTexture)),r.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=r.occlusionTexture.strength)),r.emissiveFactor!==void 0&&o!==_r){const _=r.emissiveFactor;a.emissive=new pt().setRGB(_[0],_[1],_[2],Cn)}return r.emissiveTexture!==void 0&&o!==_r&&d.push(t.assignTexture(a,"emissiveMap",r.emissiveTexture,nn)),Promise.all(d).then(function(){const _=new o(a);return r.name&&(_.name=r.name),dr(_,r),t.associations.set(_,{materials:e}),r.extensions&&Br(s,_,r),_})}createUniqueName(e){const t=Ut.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,i=this.extensions,s=this.primitiveCache;function r(a){return i[wt.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,t).then(function(c){return Zw(c,a,t)})}const o=[];for(let a=0,c=e.length;a<c;a++){const d=e[a],u=E1t(d),_=s[u];if(_)o.push(_.promise);else{let m;d.extensions&&d.extensions[wt.KHR_DRACO_MESH_COMPRESSION]?m=r(d):m=Zw(new fs,d,t),s[u]={primitive:d,promise:m},o.push(m)}}return Promise.all(o)}loadMesh(e){const t=this,i=this.json,s=this.extensions,r=i.meshes[e],o=r.primitives,a=[];for(let c=0,d=o.length;c<d;c++){const u=o[c].material===void 0?g1t(this.cache):this.getDependency("material",o[c].material);a.push(u)}return a.push(t.loadGeometries(o)),Promise.all(a).then(function(c){const d=c.slice(0,c.length-1),u=c[c.length-1],_=[];for(let h=0,f=u.length;h<f;h++){const y=u[h],b=o[h];let g;const E=d[h];if(b.mode===_i.TRIANGLES||b.mode===_i.TRIANGLE_STRIP||b.mode===_i.TRIANGLE_FAN||b.mode===void 0)g=r.isSkinnedMesh===!0?new lSt(y,E):new Vn(y,E),g.isSkinnedMesh===!0&&g.normalizeSkinWeights(),b.mode===_i.TRIANGLE_STRIP?g.geometry=Kw(g.geometry,zN):b.mode===_i.TRIANGLE_FAN&&(g.geometry=Kw(g.geometry,bb));else if(b.mode===_i.LINES)g=new fSt(y,E);else if(b.mode===_i.LINE_STRIP)g=new vy(y,E);else if(b.mode===_i.LINE_LOOP)g=new _St(y,E);else if(b.mode===_i.POINTS)g=new mSt(y,E);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+b.mode);Object.keys(g.geometry.morphAttributes).length>0&&y1t(g,r),g.name=t.createUniqueName(r.name||"mesh_"+e),dr(g,r),b.extensions&&Br(s,g,b),t.assignFinalMaterial(g),_.push(g)}for(let h=0,f=_.length;h<f;h++)t.associations.set(_[h],{meshes:e,primitives:h});if(_.length===1)return r.extensions&&Br(s,_[0],r),_[0];const m=new Qr;r.extensions&&Br(s,m,r),t.associations.set(m,{meshes:e});for(let h=0,f=_.length;h<f;h++)m.add(_[h]);return m})}loadCamera(e){let t;const i=this.json.cameras[e],s=i[i.type];if(!s){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return i.type==="perspective"?t=new Gn(Jgt.radToDeg(s.yfov),s.aspectRatio||1,s.znear||1,s.zfar||2e6):i.type==="orthographic"&&(t=new gy(-s.xmag,s.xmag,s.ymag,-s.ymag,s.znear,s.zfar)),i.name&&(t.name=this.createUniqueName(i.name)),dr(t,i),Promise.resolve(t)}loadSkin(e){const t=this.json.skins[e],i=[];for(let s=0,r=t.joints.length;s<r;s++)i.push(this._loadNodeShallow(t.joints[s]));return t.inverseBindMatrices!==void 0?i.push(this.getDependency("accessor",t.inverseBindMatrices)):i.push(null),Promise.all(i).then(function(s){const r=s.pop(),o=s,a=[],c=[];for(let d=0,u=o.length;d<u;d++){const _=o[d];if(_){a.push(_);const m=new xt;r!==null&&m.fromArray(r.array,d*16),c.push(m)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[d])}return new Ey(a,c)})}loadAnimation(e){const t=this.json,i=this,s=t.animations[e],r=s.name?s.name:"animation_"+e,o=[],a=[],c=[],d=[],u=[];for(let _=0,m=s.channels.length;_<m;_++){const h=s.channels[_],f=s.samplers[h.sampler],y=h.target,b=y.node,g=s.parameters!==void 0?s.parameters[f.input]:f.input,E=s.parameters!==void 0?s.parameters[f.output]:f.output;y.node!==void 0&&(o.push(this.getDependency("node",b)),a.push(this.getDependency("accessor",g)),c.push(this.getDependency("accessor",E)),d.push(f),u.push(y))}return Promise.all([Promise.all(o),Promise.all(a),Promise.all(c),Promise.all(d),Promise.all(u)]).then(function(_){const m=_[0],h=_[1],f=_[2],y=_[3],b=_[4],g=[];for(let E=0,v=m.length;E<v;E++){const S=m[E],R=h[E],C=f[E],A=y[E],I=b[E];if(S===void 0)continue;S.updateMatrix&&S.updateMatrix();const x=i._createAnimationTracks(S,R,C,A,I);if(x)for(let M=0;M<x.length;M++)g.push(x[M])}return new SSt(r,void 0,g)})}createNodeMesh(e){const t=this.json,i=this,s=t.nodes[e];return s.mesh===void 0?null:i.getDependency("mesh",s.mesh).then(function(r){const o=i._getNodeRef(i.meshCache,s.mesh,r);return s.weights!==void 0&&o.traverse(function(a){if(a.isMesh)for(let c=0,d=s.weights.length;c<d;c++)a.morphTargetInfluences[c]=s.weights[c]}),o})}loadNode(e){const t=this.json,i=this,s=t.nodes[e],r=i._loadNodeShallow(e),o=[],a=s.children||[];for(let d=0,u=a.length;d<u;d++)o.push(i.getDependency("node",a[d]));const c=s.skin===void 0?Promise.resolve(null):i.getDependency("skin",s.skin);return Promise.all([r,Promise.all(o),c]).then(function(d){const u=d[0],_=d[1],m=d[2];m!==null&&u.traverse(function(h){h.isSkinnedMesh&&h.bind(m,S1t)});for(let h=0,f=_.length;h<f;h++)u.add(_[h]);return u})}_loadNodeShallow(e){const t=this.json,i=this.extensions,s=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];const r=t.nodes[e],o=r.name?s.createUniqueName(r.name):"",a=[],c=s._invokeOne(function(d){return d.createNodeMesh&&d.createNodeMesh(e)});return c&&a.push(c),r.camera!==void 0&&a.push(s.getDependency("camera",r.camera).then(function(d){return s._getNodeRef(s.cameraCache,r.camera,d)})),s._invokeAll(function(d){return d.createNodeAttachment&&d.createNodeAttachment(e)}).forEach(function(d){a.push(d)}),this.nodeCache[e]=Promise.all(a).then(function(d){let u;if(r.isBone===!0?u=new dO:d.length>1?u=new Qr:d.length===1?u=d[0]:u=new Jt,u!==d[0])for(let _=0,m=d.length;_<m;_++)u.add(d[_]);if(r.name&&(u.userData.name=r.name,u.name=o),dr(u,r),r.extensions&&Br(i,u,r),r.matrix!==void 0){const _=new xt;_.fromArray(r.matrix),u.applyMatrix4(_)}else r.translation!==void 0&&u.position.fromArray(r.translation),r.rotation!==void 0&&u.quaternion.fromArray(r.rotation),r.scale!==void 0&&u.scale.fromArray(r.scale);return s.associations.has(u)||s.associations.set(u,{}),s.associations.get(u).nodes=e,u}),this.nodeCache[e]}loadScene(e){const t=this.extensions,i=this.json.scenes[e],s=this,r=new Qr;i.name&&(r.name=s.createUniqueName(i.name)),dr(r,i),i.extensions&&Br(t,r,i);const o=i.nodes||[],a=[];for(let c=0,d=o.length;c<d;c++)a.push(s.getDependency("node",o[c]));return Promise.all(a).then(function(c){for(let u=0,_=c.length;u<_;u++)r.add(c[u]);const d=u=>{const _=new Map;for(const[m,h]of s.associations)(m instanceof Vi||m instanceof xn)&&_.set(m,h);return u.traverse(m=>{const h=s.associations.get(m);h!=null&&_.set(m,h)}),_};return s.associations=d(r),r})}_createAnimationTracks(e,t,i,s,r){const o=[],a=e.name?e.name:e.uuid,c=[];Js[r.path]===Js.weights?e.traverse(function(m){m.morphTargetInfluences&&c.push(m.name?m.name:m.uuid)}):c.push(a);let d;switch(Js[r.path]){case Js.weights:d=wa;break;case Js.rotation:d=go;break;case Js.position:case Js.scale:d=Ra;break;default:switch(i.itemSize){case 1:d=wa;break;case 2:case 3:default:d=Ra;break}break}const u=s.interpolation!==void 0?h1t[s.interpolation]:Ta,_=this._getArrayFromAccessor(i);for(let m=0,h=c.length;m<h;m++){const f=new d(c[m]+"."+Js[r.path],t.array,_,u);s.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(f),o.push(f)}return o}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const i=wb(t.constructor),s=new Float32Array(t.length);for(let r=0,o=t.length;r<o;r++)s[r]=t[r]*i;t=s}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(i){const s=this instanceof go?m1t:yO;return new s(this.times,this.values,this.getValueSize()/3,i)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function x1t(n,e,t){const i=e.attributes,s=new Gs;if(i.POSITION!==void 0){const a=t.json.accessors[i.POSITION],c=a.min,d=a.max;if(c!==void 0&&d!==void 0){if(s.set(new re(c[0],c[1],c[2]),new re(d[0],d[1],d[2])),a.normalized){const u=wb(aa[a.componentType]);s.min.multiplyScalar(u),s.max.multiplyScalar(u)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const r=e.targets;if(r!==void 0){const a=new re,c=new re;for(let d=0,u=r.length;d<u;d++){const _=r[d];if(_.POSITION!==void 0){const m=t.json.accessors[_.POSITION],h=m.min,f=m.max;if(h!==void 0&&f!==void 0){if(c.setX(Math.max(Math.abs(h[0]),Math.abs(f[0]))),c.setY(Math.max(Math.abs(h[1]),Math.abs(f[1]))),c.setZ(Math.max(Math.abs(h[2]),Math.abs(f[2]))),m.normalized){const y=wb(aa[m.componentType]);c.multiplyScalar(y)}a.max(c)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}s.expandByVector(a)}n.boundingBox=s;const o=new ps;s.getCenter(o.center),o.radius=s.min.distanceTo(s.max)/2,n.boundingSphere=o}function Zw(n,e,t){const i=e.attributes,s=[];function r(o,a){return t.getDependency("accessor",o).then(function(c){n.setAttribute(a,c)})}for(const o in i){const a=Cb[o]||o.toLowerCase();a in n.attributes||s.push(r(i[o],a))}if(e.indices!==void 0&&!n.index){const o=t.getDependency("accessor",e.indices).then(function(a){n.setIndex(a)});s.push(o)}return Lt.workingColorSpace!==Cn&&"COLOR_0"in i&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Lt.workingColorSpace}" not supported.`),dr(n,e),x1t(n,e,t),Promise.all(s).then(function(){return e.targets!==void 0?b1t(n,e.targets,t):n})}const C1t={data(){return{isVideoActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startVideoStream(){this.isVideoActive=!0,Ye.emit("start_webcam_video_stream"),Le(()=>{Ve.replace()})},stopVideoStream(){this.isVideoActive=!1,this.imageData=null,Ye.emit("stop_webcam_video_stream"),Le(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("video_stream_image",n=>{if(this.isVideoActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},w1t=["src"],R1t=["src"],A1t={class:"controls"},M1t={key:2};function N1t(n,e,t,i,s,r){return T(),w("div",{class:"floating-frame bg-white",style:Wt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isVideoActive&&s.imageDataUrl!=null?(T(),w("img",{key:0,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},null,8,w1t)):B("",!0),s.isVideoActive&&s.imageDataUrl==null?(T(),w("p",{key:1,src:s.imageDataUrl,alt:"Webcam Frame",width:"300",height:"300"},"Loading. Please wait...",8,R1t)):B("",!0),l("div",A1t,[s.isVideoActive?B("",!0):(T(),w("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startVideoStream&&r.startVideoStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"video"},null,-1)]))),s.isVideoActive?(T(),w("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopVideoStream&&r.stopVideoStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"video"},null,-1)]))):B("",!0),s.isVideoActive?(T(),w("span",M1t,"FPS: "+$(s.frameRate),1)):B("",!0)])],36)}const O1t=st(C1t,[["render",N1t]]),I1t={data(){return{isAudioActive:!1,imageDataUrl:null,isDragging:!1,position:{bottom:0,right:0},dragStart:{x:0,y:0},zIndex:0,frameRate:0,frameCount:0,lastFrameTime:Date.now()}},methods:{startAudioStream(){Ye.emit("start_audio_stream",()=>{this.isAudioActive=!0}),Le(()=>{Ve.replace()})},stopAudioStream(){Ye.emit("stop_audio_stream",()=>{this.isAudioActive=!1,this.imageDataUrl=null}),Le(()=>{Ve.replace()})},startDrag(n){this.isDragging=!0,this.zIndex=5001,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY,document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.stopDrag)},drag(n){if(this.isDragging){const e=n.clientX-this.dragStart.x,t=n.clientY-this.dragStart.y;this.position.bottom-=t,this.position.right-=e,this.dragStart.x=n.clientX,this.dragStart.y=n.clientY}},stopDrag(){this.isDragging=!1,this.zIndex=0,document.removeEventListener("mousemove",this.drag),document.removeEventListener("mouseup",this.stopDrag)}},mounted(){Ve.replace(),Ye.on("update_spectrogram",n=>{if(this.isAudioActive){this.imageDataUrl="data:image/jpeg;base64,"+n,this.frameCount++;const e=Date.now();e-this.lastFrameTime>=1e3&&(this.frameRate=this.frameCount,this.frameCount=0,this.lastFrameTime=e)}})}},k1t=["src"],D1t={class:"controls"};function L1t(n,e,t,i,s,r){return T(),w("div",{class:"floating-frame bg-white",style:Wt({bottom:s.position.bottom+"px",right:s.position.right+"px","z-index":s.zIndex}),onMousedown:e[4]||(e[4]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[5]||(e[5]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},[l("div",{class:"handle",onMousedown:e[0]||(e[0]=W((...o)=>r.startDrag&&r.startDrag(...o),["stop"])),onMouseup:e[1]||(e[1]=W((...o)=>r.stopDrag&&r.stopDrag(...o),["stop"]))},"Drag Me",32),s.isAudioActive&&s.imageDataUrl!=null?(T(),w("img",{key:0,src:s.imageDataUrl,alt:"Spectrogram",width:"300",height:"300"},null,8,k1t)):B("",!0),l("div",D1t,[s.isAudioActive?B("",!0):(T(),w("button",{key:0,class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded",onClick:e[2]||(e[2]=(...o)=>r.startAudioStream&&r.startAudioStream(...o))},e[6]||(e[6]=[l("i",{"data-feather":"mic"},null,-1)]))),s.isAudioActive?(T(),w("button",{key:1,class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded",onClick:e[3]||(e[3]=(...o)=>r.stopAudioStream&&r.stopAudioStream(...o))},e[7]||(e[7]=[l("i",{"data-feather":"mic"},null,-1)]))):B("",!0)])],36)}const P1t=st(I1t,[["render",L1t]]),F1t={data(){return{activePersonality:null}},props:{personality:{type:Object,default:()=>({})}},components:{VideoFrame:O1t,AudioFrame:P1t},computed:{isReady:{get(){return this.$store.state.ready}}},watch:{"$store.state.mountedPersArr":"updatePersonality","$store.state.config.active_personality_id":"updatePersonality"},async mounted(){for(;this.isReady===!1;)await new Promise(n=>setTimeout(n,100));console.log("Personality:",this.personality),this.initWebGLScene(),this.updatePersonality(),Le(()=>{Ve.replace()}),this.$refs.video_frame.position={bottom:0,right:0},this.$refs.audio_frame.position={bottom:0,right:100}},beforeDestroy(){},methods:{initWebGLScene(){this.scene=new rSt,this.camera=new Gn(75,window.innerWidth/window.innerHeight,.1,1e3),this.renderer=new cO,this.renderer.setSize(window.innerWidth,window.innerHeight),this.$refs.webglContainer.appendChild(this.renderer.domElement);const n=new Er,e=new Hw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube);const t=new DSt(4210752),i=new gO(16777215,.5);i.position.set(0,1,0),this.scene.add(t),this.scene.add(i),this.camera.position.z=5,this.animate()},updatePersonality(){const{mountedPersArr:n,config:e}=this.$store.state;this.activePersonality=n[e.active_personality_id],this.activePersonality.avatar?this.showBoxWithAvatar(this.activePersonality.avatar):this.showDefaultCube(),this.$emit("update:personality",this.activePersonality)},loadScene(n){new YSt().load(n,t=>{this.scene.remove(this.cube),this.cube=t.scene,this.scene.add(this.cube)})},showBoxWithAvatar(n){this.cube&&this.scene.remove(this.cube);const e=new Er,t=new hO().load(n),i=new _r({map:t});this.cube=new Vn(e,i),this.scene.add(this.cube)},showDefaultCube(){this.scene.remove(this.cube);const n=new Er,e=new Hw({color:65280});this.cube=new Vn(n,e),this.scene.add(this.cube)},animate(){requestAnimationFrame(this.animate),this.cube&&(this.cube.rotation.x+=.01,this.cube.rotation.y+=.01),this.renderer.render(this.scene,this.camera)}}},U1t={ref:"webglContainer"},B1t={class:"flex-col y-overflow scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},G1t={key:0,class:"text-center"},V1t={key:1,class:"text-center"},z1t={class:"floating-frame2"},H1t=["innerHTML"];function q1t(n,e,t,i,s,r){const o=nt("VideoFrame"),a=nt("AudioFrame");return T(),w(Be,null,[l("div",U1t,null,512),l("div",B1t,[!s.activePersonality||!s.activePersonality.scene_path?(T(),w("div",G1t," Personality does not have a 3d avatar. ")):B("",!0),!s.activePersonality||!s.activePersonality.avatar||s.activePersonality.avatar===""?(T(),w("div",V1t," Personality does not have an avatar. ")):B("",!0),l("div",z1t,[l("div",{innerHTML:n.htmlContent},null,8,H1t)])]),z(o,{ref:"video_frame"},null,512),z(a,{ref:"audio_frame"},null,512)],64)}const Y1t=st(F1t,[["render",q1t]]);let gd;const $1t=new Uint8Array(16);function W1t(){if(!gd&&(gd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gd($1t)}const En=[];for(let n=0;n<256;++n)En.push((n+256).toString(16).slice(1));function K1t(n,e=0){return En[n[e+0]]+En[n[e+1]]+En[n[e+2]]+En[n[e+3]]+"-"+En[n[e+4]]+En[n[e+5]]+"-"+En[n[e+6]]+En[n[e+7]]+"-"+En[n[e+8]]+En[n[e+9]]+"-"+En[n[e+10]]+En[n[e+11]]+En[n[e+12]]+En[n[e+13]]+En[n[e+14]]+En[n[e+15]]}const j1t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Jw={randomUUID:j1t};function Ds(n,e,t){if(Jw.randomUUID&&!e&&!n)return Jw.randomUUID();n=n||{};const i=n.random||(n.rng||W1t)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,K1t(i)}class ro{constructor(){this.listenerMap=new Map,this._listeners=[],this.proxyMap=new Map,this.proxies=[]}get listeners(){return this._listeners.concat(this.proxies.flatMap(e=>e()))}subscribe(e,t){this.listenerMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you.
 Please check that you don't accidentally use the same token twice to register two different handlers for the same event/hook.`),this.unsubscribe(e)),this.listenerMap.set(e,t),this._listeners.push(t)}unsubscribe(e){if(this.listenerMap.has(e)){const t=this.listenerMap.get(e);this.listenerMap.delete(e);const i=this._listeners.indexOf(t);i>=0&&this._listeners.splice(i,1)}}registerProxy(e,t){this.proxyMap.has(e)&&(console.warn(`Already subscribed. Unsubscribing for you.
-Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const i=this.proxies.indexOf(t);i>=0&&this.proxies.splice(i,1)}}class Gt extends ro{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class kn extends ro{constructor(e){super(),this.entity=e}emit(e){let t=!1;const i=()=>[t=!0];for(const s of Array.from(this.listeners.values()))if(s(e,i,this.entity),t)return{prevented:!0};return{prevented:!1}}}class EO extends ro{execute(e,t){let i=e;for(const s of this.listeners)i=s(i,t);return i}}class ci extends EO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class X1t extends ro{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const i of this.listeners)t.push(i(e,this.entity));return t}}function Qi(){const n=Symbol(),e=new Map,t=new Set,i=(c,d)=>{d instanceof ro&&d.registerProxy(n,()=>{var u,_;return(_=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&_!==void 0?_:[]})},s=c=>{const d=new ro;e.set(c,d),t.forEach(u=>i(c,u[c]))},r=c=>{t.add(c);for(const d of e.keys())i(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof ro&&c[d].unregisterProxy(n);t.delete(c)},a=()=>{t.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?r:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||s(d),e.get(d))}})}class e2{constructor(e,t){if(this.destructed=!1,this.events={destruct:new Gt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Ds(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class vO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Ds(),this.from=e,this.to=t}}function Rb(n,e){return Object.fromEntries(Object.entries(n).map(([t,i])=>[t,e(i)]))}class SO{constructor(){this._title="",this.id=Ds(),this.events={loaded:new Gt(this),beforeAddInput:new kn(this),addInput:new Gt(this),beforeRemoveInput:new kn(this),removeInput:new Gt(this),beforeAddOutput:new kn(this),addOutput:new Gt(this),beforeRemoveOutput:new kn(this),removeOutput:new Gt(this),beforeTitleChanged:new kn(this),titleChanged:new Gt(this),update:new Gt(this)},this.hooks={beforeLoad:new ci(this),afterSave:new ci(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,i])=>{this.inputs[t]&&(this.inputs[t].load(i),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,i])=>{this.outputs[t]&&(this.outputs[t].load(i),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=Rb(this.inputs,s=>s.save()),t=Rb(this.outputs,s=>s.save()),i={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(i)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,i){i.isInput=e==="input",i.nodeId=this.id,i.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:i}))}addInterface(e,t,i){const s=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return s.emit(i).prevented?!1:(o[t]=i,this.initializeIntf(e,t,i),r.emit(i),!0)}removeInterface(e,t){const i=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,s=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[t]:this.outputs[t];if(!r||i.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],s.emit(r),!0}}let TO=class extends SO{load(e){super.load(e)}save(){return super.save()}};function Ka(n){return class extends TO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(i,s)=>n.calculate.call(this,i,s):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(i=>{const s=t[i]();e==="input"?this.addInput(i,s):this.addOutput(i,s)})}}}class en{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Ds(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Gt(this),beforeSetValue:new kn(this),setValue:new Gt(this),updated:new Gt(this)},this.hooks={load:new ci(this),save:new ci(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Ma="__baklava_SubgraphInputNode",Na="__baklava_SubgraphOutputNode";class xO extends TO{constructor(){super(),this.graphInterfaceId=Ds()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class wy extends xO{constructor(){super(...arguments),this.type=Ma,this.inputs={name:new en("Name","Input")},this.outputs={placeholder:new en("Value",void 0)}}static isGraphInputNode(e){return e.type===Ma}}class Ry extends xO{constructor(){super(...arguments),this.type=Na,this.inputs={name:new en("Name","Output"),placeholder:new en("Value",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Na}}class _c{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Ds(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new kn(this),addNode:new Gt(this),beforeRemoveNode:new kn(this),removeNode:new Gt(this),beforeAddConnection:new kn(this),addConnection:new Gt(this),checkConnection:new kn(this),beforeRemoveConnection:new kn(this),removeConnection:new Gt(this)},this.hooks={save:new ci(this),load:new ci(this),checkConnection:new X1t(this)},this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(i=>t.includes(i.from)||t.includes(i.to)).forEach(i=>this.removeConnection(i)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const i=this.checkConnection(e,t);if(!i.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const r of i.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const s=new e2(i.dummyConnection.from,i.dummyConnection.to);return this.internalAddConnection(s),s}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const i=this.findNodeById(e.nodeId),s=this.findNodeById(t.nodeId);if(i&&s&&i===s)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:t});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new vO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const i in t.inputs){const s=t.inputs[i];if(s.id===e)return s}for(const i in t.outputs){const s=t.outputs[i];if(s.id===e)return s}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let i=this.connections.length-1;i>=0;i--)this.removeConnection(this.connections[i]);for(let i=this.nodes.length-1;i>=0;i--)this.removeNode(this.nodes[i]);this.id=e.id;for(const i of e.nodes){const s=this.editor.nodeTypes.get(i.type);if(!s){t.push(`Node type ${i.type} is not registered`);continue}const r=new s.type;this.addNode(r),r.load(i)}for(const i of e.connections){const s=this.findNodeInterface(i.from),r=this.findNodeInterface(i.to);if(s)if(r){const o=new e2(s,r);o.id=i.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${i.to}`);continue}else{t.push(`Could not find interface with id ${i.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const Jl="__baklava_GraphNode-";function Oa(n){return Jl+n.id}const Z1t=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function J1t(n){return class extends SO{constructor(){super(...arguments),this.type=Oa(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,i)=>{var s;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!i.engine||typeof i.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const r=i.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)r.set(c.nodeInterfaceId,t[c.id]);const o=await i.engine.runGraph(this.subgraph,r,i.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(s=o.get(c.nodeId))===null||s===void 0?void 0:s.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(i=>i.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(i=>i.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new en("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,i){const s=new en(t.name,void 0);return new Proxy(s,{get:(r,o)=>{var a,c,d;if(Z1t.includes(o)||o in r||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(r,o);let u;if(i){const h=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(f=>wy.isGraphInputNode(f)&&f.graphInterfaceId===t.id);u=h==null?void 0:h.outputs.placeholder.id}else{const h=(c=this.subgraph)===null||c===void 0?void 0:c.nodes.find(f=>Ry.isGraphOutputNode(f)&&f.graphInterfaceId===t.id);u=h==null?void 0:h.inputs.placeholder.id}const _=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(h=>{var f;return u===((f=i?h.from:h.to)===null||f===void 0?void 0:f.id)}),m=i?_==null?void 0:_.to:_==null?void 0:_.from;if(m)return Reflect.get(m,o)}})}}}class yp{static fromGraph(e,t){return new yp(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(Oa(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Ds(),this._name="Subgraph",this.events={nameChanged:new Gt(this),updated:new Gt(this)},this.hooks={beforeLoad:new ci(this),afterSave:new ci(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,i=m=>{const h=Ds();return t.set(m,h),h},s=m=>{const h=t.get(m);if(!h)throw new Error(`Unable to create graph from template: Could not map old id ${m} to new id`);return h},r=m=>Rb(m,h=>({id:i(h.id),templateId:h.id,value:h.value})),o=this.nodes.map(m=>({...m,id:i(m.id),inputs:r(m.inputs),outputs:r(m.outputs)})),a=this.connections.map(m=>({id:i(m.id),from:s(m.from),to:s(m.to)})),c=this.inputs.map(m=>({id:m.id,name:m.name,nodeId:s(m.nodeId),nodeInterfaceId:s(m.nodeInterfaceId)})),d=this.outputs.map(m=>({id:m.id,name:m.name,nodeId:s(m.nodeId),nodeInterfaceId:s(m.nodeInterfaceId)})),u={id:Ds(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new _c(this.editor)),e.load(u).forEach(m=>console.warn(m)),e.template=this,e}}class eTt{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new Gt(this),beforeRegisterNodeType:new kn(this),registerNodeType:new Gt(this),beforeUnregisterNodeType:new kn(this),unregisterNodeType:new Gt(this),beforeAddGraphTemplate:new kn(this),addGraphTemplate:new Gt(this),beforeRemoveGraphTemplate:new kn(this),removeGraphTemplate:new Gt(this),registerGraph:new Gt(this),unregisterGraph:new Gt(this)},this.hooks={save:new ci(this),load:new ci(this)},this.graphTemplateEvents=Qi(),this.graphTemplateHooks=Qi(),this.graphEvents=Qi(),this.graphHooks=Qi(),this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new _c(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(wy),this.registerNodeType(Ry)}registerNodeType(e,t){var i,s;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(i=t==null?void 0:t.category)!==null&&i!==void 0?i:"default",title:(s=t==null?void 0:t.title)!==null&&s!==void 0?s:r.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=J1t(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=Oa(e);for(const i of[this.graph,...this.graphs.values()]){const s=i.nodes.filter(r=>r.type===t);for(const r of s)i.removeNode(r)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(i=>{const s=new yp(i,this);this.addGraphTemplate(s)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(i=>console.warn(i)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function tTt(n,e){const t=new Map;e.graphs.forEach(i=>{i.nodes.forEach(s=>t.set(s.id,s))}),n.forEach((i,s)=>{const r=t.get(s);r&&i.forEach((o,a)=>{const c=r.outputs[a];c&&(c.value=o)})})}class CO extends Error{constructor(){super("Cycle detected")}}function nTt(n){return typeof n=="string"}function wO(n,e){const t=new Map,i=new Map,s=new Map;let r,o;if(n instanceof _c)r=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=n,o=e}r.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),r.forEach(d=>{const u=o.filter(m=>m.from&&t.get(m.from.id)===d.id),_=new Set(u.map(m=>t.get(m.to.id)).filter(nTt));i.set(d.id,_),s.set(d,u)});const a=r.slice();o.forEach(d=>{const u=a.findIndex(_=>t.get(d.to.id)===_.id);u>=0&&a.splice(u,1)});const c=[];for(;a.length>0;){const d=a.pop();c.push(d);const u=i.get(d.id);for(;u.size>0;){const _=u.values().next().value;if(u.delete(_),Array.from(i.values()).every(m=>!m.has(_))){const m=r.find(h=>h.id===_);a.push(m)}}}if(Array.from(i.values()).some(d=>d.size>0))throw new CO;return{calculationOrder:c,connectionsFromNode:s,interfaceIdToNodeId:t}}function iTt(n,e){try{return wO(n,e),!1}catch(t){if(t instanceof CO)return!0;throw t}}var Yn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Yn||(Yn={}));class sTt{get status(){return this.isRunning?Yn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new kn(this),afterRun:new Gt(this),statusChange:new Gt(this),beforeNodeCalculation:new Gt(this),afterNodeCalculation:new Gt(this)},this.hooks={gatherCalculationData:new ci(this),transferData:new EO},this.recalculateOrder=!0,this.internalStatus=Yn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,i)=>{i.graph&&!i.graph.loading&&i.graph.activeTransactions===0&&this.internalOnChange(i,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Yn.Stopped&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Yn.Idle&&(this.internalStatus=Yn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Yn.Paused&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Yn.Idle||this.internalStatus===Yn.Paused)&&(this.internalStatus=Yn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const i=await this.execute(e,...t);return this.events.afterRun.emit(i),i}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(t.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};t=r}const i=new vO(e,t);let s=this.editor.graph.connections.slice();return t.allowMultipleConnections||(s=s.filter(r=>r.to!==t)),s.push(i),iTt(this.editor.graph.nodes,s)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(i=>{if(!(i in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${i}"`)})}internalOnChange(e,t){this.internalStatus===Yn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const i of e)for(const s of[...Object.values(i.inputs),...Object.values(i.outputs)])if(s.templateId===t)return s;return null}}class rTt extends sTt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,i){this.order.has(e.id)||this.order.set(e.id,wO(e));const{calculationOrder:s,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of s){const c={};Object.entries(a.inputs).forEach(([u,_])=>{c[u]=this.getInterfaceValue(t,_.id)}),this.events.beforeNodeCalculation.emit({inputValues:c,node:a});let d;if(a.calculate)d=await a.calculate(c,{globalValues:i,engine:this});else{d={};for(const[u,_]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,_.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),r.has(a)&&r.get(a).forEach(u=>{var _;const m=(_=Object.entries(a.outputs).find(([,f])=>f.id===u.from.id))===null||_===void 0?void 0:_[0];if(!m)throw new Error(`Could not find key for interface ${u.from.id}
+Please check that you don't accidentally use the same token twice to register two different proxies for the same event/hook.`),this.unregisterProxy(e)),this.proxyMap.set(e,t),this.proxies.push(t)}unregisterProxy(e){if(!this.proxyMap.has(e))return;const t=this.proxyMap.get(e);this.proxyMap.delete(e);const i=this.proxies.indexOf(t);i>=0&&this.proxies.splice(i,1)}}class Gt extends ro{constructor(e){super(),this.entity=e}emit(e){this.listeners.forEach(t=>t(e,this.entity))}}class kn extends ro{constructor(e){super(),this.entity=e}emit(e){let t=!1;const i=()=>[t=!0];for(const s of Array.from(this.listeners.values()))if(s(e,i,this.entity),t)return{prevented:!0};return{prevented:!1}}}class EO extends ro{execute(e,t){let i=e;for(const s of this.listeners)i=s(i,t);return i}}class ci extends EO{constructor(e){super(),this.entity=e}execute(e){return super.execute(e,this.entity)}}class Q1t extends ro{constructor(e){super(),this.entity=e}execute(e){const t=[];for(const i of this.listeners)t.push(i(e,this.entity));return t}}function Qi(){const n=Symbol(),e=new Map,t=new Set,i=(c,d)=>{d instanceof ro&&d.registerProxy(n,()=>{var u,_;return(_=(u=e.get(c))===null||u===void 0?void 0:u.listeners)!==null&&_!==void 0?_:[]})},s=c=>{const d=new ro;e.set(c,d),t.forEach(u=>i(c,u[c]))},r=c=>{t.add(c);for(const d of e.keys())i(d,c[d])},o=c=>{for(const d of e.keys())c[d]instanceof ro&&c[d].unregisterProxy(n);t.delete(c)},a=()=>{t.forEach(c=>o(c)),e.clear()};return new Proxy({},{get(c,d){return d==="addTarget"?r:d==="removeTarget"?o:d==="destroy"?a:typeof d!="string"||d.startsWith("_")?c[d]:(e.has(d)||s(d),e.get(d))}})}class e2{constructor(e,t){if(this.destructed=!1,this.events={destruct:new Gt(this)},!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Ds(),this.from=e,this.to=t,this.from.connectionCount++,this.to.connectionCount++}destruct(){this.events.destruct.emit(),this.from.connectionCount--,this.to.connectionCount--,this.destructed=!0}}class vO{constructor(e,t){if(!e||!t)throw new Error("Cannot initialize connection with null/undefined for 'from' or 'to' values");this.id=Ds(),this.from=e,this.to=t}}function Rb(n,e){return Object.fromEntries(Object.entries(n).map(([t,i])=>[t,e(i)]))}class SO{constructor(){this._title="",this.id=Ds(),this.events={loaded:new Gt(this),beforeAddInput:new kn(this),addInput:new Gt(this),beforeRemoveInput:new kn(this),removeInput:new Gt(this),beforeAddOutput:new kn(this),addOutput:new Gt(this),beforeRemoveOutput:new kn(this),removeOutput:new Gt(this),beforeTitleChanged:new kn(this),titleChanged:new Gt(this),update:new Gt(this)},this.hooks={beforeLoad:new ci(this),afterSave:new ci(this)}}get graph(){return this.graphInstance}get title(){return this._title}set title(e){this.events.beforeTitleChanged.emit(e).prevented||(this._title=e,this.events.titleChanged.emit(e))}addInput(e,t){return this.addInterface("input",e,t)}addOutput(e,t){return this.addInterface("output",e,t)}removeInput(e){return this.removeInterface("input",e)}removeOutput(e){return this.removeInterface("output",e)}registerGraph(e){this.graphInstance=e}load(e){this.hooks.beforeLoad.execute(e),this.id=e.id,this._title=e.title,Object.entries(e.inputs).forEach(([t,i])=>{this.inputs[t]&&(this.inputs[t].load(i),this.inputs[t].nodeId=this.id)}),Object.entries(e.outputs).forEach(([t,i])=>{this.outputs[t]&&(this.outputs[t].load(i),this.outputs[t].nodeId=this.id)}),this.events.loaded.emit(this)}save(){const e=Rb(this.inputs,s=>s.save()),t=Rb(this.outputs,s=>s.save()),i={type:this.type,id:this.id,title:this.title,inputs:e,outputs:t};return this.hooks.afterSave.execute(i)}onPlaced(){}onDestroy(){}initializeIo(){Object.entries(this.inputs).forEach(([e,t])=>this.initializeIntf("input",e,t)),Object.entries(this.outputs).forEach(([e,t])=>this.initializeIntf("output",e,t))}initializeIntf(e,t,i){i.isInput=e==="input",i.nodeId=this.id,i.events.setValue.subscribe(this,()=>this.events.update.emit({type:e,name:t,intf:i}))}addInterface(e,t,i){const s=e==="input"?this.events.beforeAddInput:this.events.beforeAddOutput,r=e==="input"?this.events.addInput:this.events.addOutput,o=e==="input"?this.inputs:this.outputs;return s.emit(i).prevented?!1:(o[t]=i,this.initializeIntf(e,t,i),r.emit(i),!0)}removeInterface(e,t){const i=e==="input"?this.events.beforeRemoveInput:this.events.beforeRemoveOutput,s=e==="input"?this.events.removeInput:this.events.removeOutput,r=e==="input"?this.inputs[t]:this.outputs[t];if(!r||i.emit(r).prevented)return!1;if(r.connectionCount>0)if(this.graphInstance)this.graphInstance.connections.filter(a=>a.from===r||a.to===r).forEach(a=>{this.graphInstance.removeConnection(a)});else throw new Error("Interface is connected, but no graph instance is specified. Unable to delete interface");return r.events.setValue.unsubscribe(this),e==="input"?delete this.inputs[t]:delete this.outputs[t],s.emit(r),!0}}let TO=class extends SO{load(e){super.load(e)}save(){return super.save()}};function Ka(n){return class extends TO{constructor(){var e,t;super(),this.type=n.type,this.inputs={},this.outputs={},this.calculate=n.calculate?(i,s)=>n.calculate.call(this,i,s):void 0,this._title=(e=n.title)!==null&&e!==void 0?e:n.type,this.executeFactory("input",n.inputs),this.executeFactory("output",n.outputs),(t=n.onCreate)===null||t===void 0||t.call(this)}onPlaced(){var e;(e=n.onPlaced)===null||e===void 0||e.call(this)}onDestroy(){var e;(e=n.onDestroy)===null||e===void 0||e.call(this)}executeFactory(e,t){Object.keys(t||{}).forEach(i=>{const s=t[i]();e==="input"?this.addInput(i,s):this.addOutput(i,s)})}}}class en{set connectionCount(e){this._connectionCount=e,this.events.setConnectionCount.emit(e)}get connectionCount(){return this._connectionCount}set value(e){this.events.beforeSetValue.emit(e).prevented||(this._value=e,this.events.setValue.emit(e))}get value(){return this._value}constructor(e,t){this.id=Ds(),this.nodeId="",this.port=!0,this.hidden=!1,this.events={setConnectionCount:new Gt(this),beforeSetValue:new kn(this),setValue:new Gt(this),updated:new Gt(this)},this.hooks={load:new ci(this),save:new ci(this)},this._connectionCount=0,this.name=e,this._value=t}load(e){this.id=e.id,this.templateId=e.templateId,this.value=e.value,this.hooks.load.execute(e)}save(){const e={id:this.id,templateId:this.templateId,value:this.value};return this.hooks.save.execute(e)}setComponent(e){return this.component=e,this}setPort(e){return this.port=e,this}setHidden(e){return this.hidden=e,this}use(e,...t){return e(this,...t),this}}const Ma="__baklava_SubgraphInputNode",Na="__baklava_SubgraphOutputNode";class xO extends TO{constructor(){super(),this.graphInterfaceId=Ds()}onPlaced(){super.onPlaced(),this.initializeIo()}save(){return{...super.save(),graphInterfaceId:this.graphInterfaceId}}load(e){super.load(e),this.graphInterfaceId=e.graphInterfaceId}}class wy extends xO{constructor(){super(...arguments),this.type=Ma,this.inputs={name:new en("Name","Input")},this.outputs={placeholder:new en("Value",void 0)}}static isGraphInputNode(e){return e.type===Ma}}class Ry extends xO{constructor(){super(...arguments),this.type=Na,this.inputs={name:new en("Name","Output"),placeholder:new en("Value",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)},this.calculate=({placeholder:e})=>({output:e})}static isGraphOutputNode(e){return e.type===Na}}class _c{get nodes(){return this._nodes}get connections(){return this._connections}get loading(){return this._loading}get destroying(){return this._destroying}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Ds(),this.activeTransactions=0,this._nodes=[],this._connections=[],this._loading=!1,this._destroying=!1,this.events={beforeAddNode:new kn(this),addNode:new Gt(this),beforeRemoveNode:new kn(this),removeNode:new Gt(this),beforeAddConnection:new kn(this),addConnection:new Gt(this),checkConnection:new kn(this),beforeRemoveConnection:new kn(this),removeConnection:new Gt(this)},this.hooks={save:new ci(this),load:new ci(this),checkConnection:new Q1t(this)},this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this.editor=e,this.template=t,e.registerGraph(this)}addNode(e){if(!this.events.beforeAddNode.emit(e).prevented)return this.nodeEvents.addTarget(e.events),this.nodeHooks.addTarget(e.hooks),e.registerGraph(this),this._nodes.push(e),e=this.nodes.find(t=>t.id===e.id),e.onPlaced(),this.events.addNode.emit(e),e}removeNode(e){if(this.nodes.includes(e)){if(this.events.beforeRemoveNode.emit(e).prevented)return;const t=[...Object.values(e.inputs),...Object.values(e.outputs)];this.connections.filter(i=>t.includes(i.from)||t.includes(i.to)).forEach(i=>this.removeConnection(i)),this._nodes.splice(this.nodes.indexOf(e),1),this.events.removeNode.emit(e),e.onDestroy(),this.nodeEvents.removeTarget(e.events),this.nodeHooks.removeTarget(e.hooks)}}addConnection(e,t){const i=this.checkConnection(e,t);if(!i.connectionAllowed||this.events.beforeAddConnection.emit({from:e,to:t}).prevented)return;for(const r of i.connectionsInDanger){const o=this.connections.find(a=>a.id===r.id);o&&this.removeConnection(o)}const s=new e2(i.dummyConnection.from,i.dummyConnection.to);return this.internalAddConnection(s),s}removeConnection(e){if(this.connections.includes(e)){if(this.events.beforeRemoveConnection.emit(e).prevented)return;e.destruct(),this._connections.splice(this.connections.indexOf(e),1),this.events.removeConnection.emit(e),this.connectionEvents.removeTarget(e.events)}}checkConnection(e,t){if(!e||!t)return{connectionAllowed:!1};const i=this.findNodeById(e.nodeId),s=this.findNodeById(t.nodeId);if(i&&s&&i===s)return{connectionAllowed:!1};if(e.isInput&&!t.isInput){const a=e;e=t,t=a}if(e.isInput||!t.isInput)return{connectionAllowed:!1};if(this.connections.some(a=>a.from===e&&a.to===t))return{connectionAllowed:!1};if(this.events.checkConnection.emit({from:e,to:t}).prevented)return{connectionAllowed:!1};const r=this.hooks.checkConnection.execute({from:e,to:t});if(r.some(a=>!a.connectionAllowed))return{connectionAllowed:!1};const o=Array.from(new Set(r.flatMap(a=>a.connectionsInDanger)));return{connectionAllowed:!0,dummyConnection:new vO(e,t),connectionsInDanger:o}}findNodeInterface(e){for(const t of this.nodes){for(const i in t.inputs){const s=t.inputs[i];if(s.id===e)return s}for(const i in t.outputs){const s=t.outputs[i];if(s.id===e)return s}}}findNodeById(e){return this.nodes.find(t=>t.id===e)}load(e){try{this._loading=!0;const t=[];for(let i=this.connections.length-1;i>=0;i--)this.removeConnection(this.connections[i]);for(let i=this.nodes.length-1;i>=0;i--)this.removeNode(this.nodes[i]);this.id=e.id;for(const i of e.nodes){const s=this.editor.nodeTypes.get(i.type);if(!s){t.push(`Node type ${i.type} is not registered`);continue}const r=new s.type;this.addNode(r),r.load(i)}for(const i of e.connections){const s=this.findNodeInterface(i.from),r=this.findNodeInterface(i.to);if(s)if(r){const o=new e2(s,r);o.id=i.id,this.internalAddConnection(o)}else{t.push(`Could not find interface with id ${i.to}`);continue}else{t.push(`Could not find interface with id ${i.from}`);continue}}return this.hooks.load.execute(e),t}finally{this._loading=!1}}save(){const e={id:this.id,nodes:this.nodes.map(t=>t.save()),connections:this.connections.map(t=>({id:t.id,from:t.from.id,to:t.to.id})),inputs:this.inputs,outputs:this.outputs};return this.hooks.save.execute(e)}destroy(){this._destroying=!0;for(const e of this.nodes)this.removeNode(e);this.editor.unregisterGraph(this)}internalAddConnection(e){this.connectionEvents.addTarget(e.events),this._connections.push(e),this.events.addConnection.emit(e)}}const Jl="__baklava_GraphNode-";function Oa(n){return Jl+n.id}const X1t=["component","connectionCount","events","hidden","hooks","id","isInput","name","nodeId","port","templateId","value"];function Z1t(n){return class extends SO{constructor(){super(...arguments),this.type=Oa(n),this.inputs={},this.outputs={},this.template=n,this.calculate=async(t,i)=>{var s;if(!this.subgraph)throw new Error(`GraphNode ${this.id}: calculate called without subgraph being initialized`);if(!i.engine||typeof i.engine!="object")throw new Error(`GraphNode ${this.id}: calculate called but no engine provided in context`);const r=i.engine.getInputValues(this.subgraph);for(const c of this.subgraph.inputs)r.set(c.nodeInterfaceId,t[c.id]);const o=await i.engine.runGraph(this.subgraph,r,i.globalValues),a={};for(const c of this.subgraph.outputs)a[c.id]=(s=o.get(c.nodeId))===null||s===void 0?void 0:s.get("output");return a._calculationResults=o,a}}get title(){return this._title}set title(t){this.template.name=t}load(t){if(!this.subgraph)throw new Error("Cannot load a graph node without a graph");if(!this.template)throw new Error("Unable to load graph node without graph template");this.subgraph.load(t.graphState),super.load(t)}save(){if(!this.subgraph)throw new Error("Cannot save a graph node without a graph");return{...super.save(),graphState:this.subgraph.save()}}onPlaced(){this.template.events.updated.subscribe(this,()=>this.initialize()),this.template.events.nameChanged.subscribe(this,t=>{this._title=t}),this.initialize()}onDestroy(){var t;this.template.events.updated.unsubscribe(this),this.template.events.nameChanged.unsubscribe(this),(t=this.subgraph)===null||t===void 0||t.destroy()}initialize(){this.subgraph&&this.subgraph.destroy(),this.subgraph=this.template.createGraph(),this._title=this.template.name,this.updateInterfaces(),this.events.update.emit(null)}updateInterfaces(){if(!this.subgraph)throw new Error("Trying to update interfaces without graph instance");for(const t of this.subgraph.inputs)t.id in this.inputs?this.inputs[t.id].name=t.name:this.addInput(t.id,this.createProxyInterface(t,!0));for(const t of Object.keys(this.inputs))this.subgraph.inputs.some(i=>i.id===t)||this.removeInput(t);for(const t of this.subgraph.outputs)t.id in this.outputs?this.outputs[t.id].name=t.name:this.addOutput(t.id,this.createProxyInterface(t,!1));for(const t of Object.keys(this.outputs))this.subgraph.outputs.some(i=>i.id===t)||this.removeOutput(t);this.addOutput("_calculationResults",new en("_calculationResults",void 0).setHidden(!0))}createProxyInterface(t,i){const s=new en(t.name,void 0);return new Proxy(s,{get:(r,o)=>{var a,c,d;if(X1t.includes(o)||o in r||typeof o=="string"&&o.startsWith("__v_"))return Reflect.get(r,o);let u;if(i){const h=(a=this.subgraph)===null||a===void 0?void 0:a.nodes.find(f=>wy.isGraphInputNode(f)&&f.graphInterfaceId===t.id);u=h==null?void 0:h.outputs.placeholder.id}else{const h=(c=this.subgraph)===null||c===void 0?void 0:c.nodes.find(f=>Ry.isGraphOutputNode(f)&&f.graphInterfaceId===t.id);u=h==null?void 0:h.inputs.placeholder.id}const _=(d=this.subgraph)===null||d===void 0?void 0:d.connections.find(h=>{var f;return u===((f=i?h.from:h.to)===null||f===void 0?void 0:f.id)}),m=i?_==null?void 0:_.to:_==null?void 0:_.from;if(m)return Reflect.get(m,o)}})}}}class yp{static fromGraph(e,t){return new yp(e.save(),t)}get name(){return this._name}set name(e){this._name=e,this.events.nameChanged.emit(e);const t=this.editor.nodeTypes.get(Oa(this));t&&(t.title=e)}get inputs(){return this.nodes.filter(t=>t.type===Ma).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.placeholder.id}))}get outputs(){return this.nodes.filter(t=>t.type===Na).map(t=>({id:t.graphInterfaceId,name:t.inputs.name.value,nodeId:t.id,nodeInterfaceId:t.outputs.output.id}))}constructor(e,t){this.id=Ds(),this._name="Subgraph",this.events={nameChanged:new Gt(this),updated:new Gt(this)},this.hooks={beforeLoad:new ci(this),afterSave:new ci(this)},this.editor=t,e.id&&(this.id=e.id),e.name&&(this._name=e.name),this.update(e)}update(e){this.nodes=e.nodes,this.connections=e.connections,this.events.updated.emit()}save(){return{id:this.id,name:this.name,nodes:this.nodes,connections:this.connections,inputs:this.inputs,outputs:this.outputs}}createGraph(e){const t=new Map,i=m=>{const h=Ds();return t.set(m,h),h},s=m=>{const h=t.get(m);if(!h)throw new Error(`Unable to create graph from template: Could not map old id ${m} to new id`);return h},r=m=>Rb(m,h=>({id:i(h.id),templateId:h.id,value:h.value})),o=this.nodes.map(m=>({...m,id:i(m.id),inputs:r(m.inputs),outputs:r(m.outputs)})),a=this.connections.map(m=>({id:i(m.id),from:s(m.from),to:s(m.to)})),c=this.inputs.map(m=>({id:m.id,name:m.name,nodeId:s(m.nodeId),nodeInterfaceId:s(m.nodeInterfaceId)})),d=this.outputs.map(m=>({id:m.id,name:m.name,nodeId:s(m.nodeId),nodeInterfaceId:s(m.nodeInterfaceId)})),u={id:Ds(),nodes:o,connections:a,inputs:c,outputs:d};return e||(e=new _c(this.editor)),e.load(u).forEach(m=>console.warn(m)),e.template=this,e}}class J1t{get nodeTypes(){return this._nodeTypes}get graph(){return this._graph}get graphTemplates(){return this._graphTemplates}get graphs(){return this._graphs}get loading(){return this._loading}constructor(){this.events={loaded:new Gt(this),beforeRegisterNodeType:new kn(this),registerNodeType:new Gt(this),beforeUnregisterNodeType:new kn(this),unregisterNodeType:new Gt(this),beforeAddGraphTemplate:new kn(this),addGraphTemplate:new Gt(this),beforeRemoveGraphTemplate:new kn(this),removeGraphTemplate:new Gt(this),registerGraph:new Gt(this),unregisterGraph:new Gt(this)},this.hooks={save:new ci(this),load:new ci(this)},this.graphTemplateEvents=Qi(),this.graphTemplateHooks=Qi(),this.graphEvents=Qi(),this.graphHooks=Qi(),this.nodeEvents=Qi(),this.nodeHooks=Qi(),this.connectionEvents=Qi(),this._graphs=new Set,this._nodeTypes=new Map,this._graph=new _c(this),this._graphTemplates=[],this._loading=!1,this.registerNodeType(wy),this.registerNodeType(Ry)}registerNodeType(e,t){var i,s;if(this.events.beforeRegisterNodeType.emit({type:e,options:t}).prevented)return;const r=new e;this._nodeTypes.set(r.type,{type:e,category:(i=t==null?void 0:t.category)!==null&&i!==void 0?i:"default",title:(s=t==null?void 0:t.title)!==null&&s!==void 0?s:r.title}),this.events.registerNodeType.emit({type:e,options:t})}unregisterNodeType(e){const t=typeof e=="string"?e:new e().type;if(this.nodeTypes.has(t)){if(this.events.beforeUnregisterNodeType.emit(t).prevented)return;this._nodeTypes.delete(t),this.events.unregisterNodeType.emit(t)}}addGraphTemplate(e){if(this.events.beforeAddGraphTemplate.emit(e).prevented)return;this._graphTemplates.push(e),this.graphTemplateEvents.addTarget(e.events),this.graphTemplateHooks.addTarget(e.hooks);const t=Z1t(e);this.registerNodeType(t,{category:"Subgraphs",title:e.name}),this.events.addGraphTemplate.emit(e)}removeGraphTemplate(e){if(this.graphTemplates.includes(e)){if(this.events.beforeRemoveGraphTemplate.emit(e).prevented)return;const t=Oa(e);for(const i of[this.graph,...this.graphs.values()]){const s=i.nodes.filter(r=>r.type===t);for(const r of s)i.removeNode(r)}this.unregisterNodeType(t),this._graphTemplates.splice(this._graphTemplates.indexOf(e),1),this.graphTemplateEvents.removeTarget(e.events),this.graphTemplateHooks.removeTarget(e.hooks),this.events.removeGraphTemplate.emit(e)}}registerGraph(e){this.graphEvents.addTarget(e.events),this.graphHooks.addTarget(e.hooks),this.nodeEvents.addTarget(e.nodeEvents),this.nodeHooks.addTarget(e.nodeHooks),this.connectionEvents.addTarget(e.connectionEvents),this.events.registerGraph.emit(e),this._graphs.add(e)}unregisterGraph(e){this.graphEvents.removeTarget(e.events),this.graphHooks.removeTarget(e.hooks),this.nodeEvents.removeTarget(e.nodeEvents),this.nodeHooks.removeTarget(e.nodeHooks),this.connectionEvents.removeTarget(e.connectionEvents),this.events.unregisterGraph.emit(e),this._graphs.delete(e)}load(e){try{for(this._loading=!0,e=this.hooks.load.execute(e);this.graphTemplates.length>0;)this.removeGraphTemplate(this.graphTemplates[0]);e.graphTemplates.forEach(i=>{const s=new yp(i,this);this.addGraphTemplate(s)});const t=this._graph.load(e.graph);return this.events.loaded.emit(),t.forEach(i=>console.warn(i)),t}finally{this._loading=!1}}save(){const e={graph:this.graph.save(),graphTemplates:this.graphTemplates.map(t=>t.save())};return this.hooks.save.execute(e)}}function eTt(n,e){const t=new Map;e.graphs.forEach(i=>{i.nodes.forEach(s=>t.set(s.id,s))}),n.forEach((i,s)=>{const r=t.get(s);r&&i.forEach((o,a)=>{const c=r.outputs[a];c&&(c.value=o)})})}class CO extends Error{constructor(){super("Cycle detected")}}function tTt(n){return typeof n=="string"}function wO(n,e){const t=new Map,i=new Map,s=new Map;let r,o;if(n instanceof _c)r=n.nodes,o=n.connections;else{if(!e)throw new Error("Invalid argument value: expected array of connections");r=n,o=e}r.forEach(d=>{Object.values(d.inputs).forEach(u=>t.set(u.id,d.id)),Object.values(d.outputs).forEach(u=>t.set(u.id,d.id))}),r.forEach(d=>{const u=o.filter(m=>m.from&&t.get(m.from.id)===d.id),_=new Set(u.map(m=>t.get(m.to.id)).filter(tTt));i.set(d.id,_),s.set(d,u)});const a=r.slice();o.forEach(d=>{const u=a.findIndex(_=>t.get(d.to.id)===_.id);u>=0&&a.splice(u,1)});const c=[];for(;a.length>0;){const d=a.pop();c.push(d);const u=i.get(d.id);for(;u.size>0;){const _=u.values().next().value;if(u.delete(_),Array.from(i.values()).every(m=>!m.has(_))){const m=r.find(h=>h.id===_);a.push(m)}}}if(Array.from(i.values()).some(d=>d.size>0))throw new CO;return{calculationOrder:c,connectionsFromNode:s,interfaceIdToNodeId:t}}function nTt(n,e){try{return wO(n,e),!1}catch(t){if(t instanceof CO)return!0;throw t}}var Yn;(function(n){n.Running="Running",n.Idle="Idle",n.Paused="Paused",n.Stopped="Stopped"})(Yn||(Yn={}));class iTt{get status(){return this.isRunning?Yn.Running:this.internalStatus}constructor(e){this.editor=e,this.events={beforeRun:new kn(this),afterRun:new Gt(this),statusChange:new Gt(this),beforeNodeCalculation:new Gt(this),afterNodeCalculation:new Gt(this)},this.hooks={gatherCalculationData:new ci(this),transferData:new EO},this.recalculateOrder=!0,this.internalStatus=Yn.Stopped,this.isRunning=!1,this.editor.nodeEvents.update.subscribe(this,(t,i)=>{i.graph&&!i.graph.loading&&i.graph.activeTransactions===0&&this.internalOnChange(i,t??void 0)}),this.editor.graphEvents.addNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeNode.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.addConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphEvents.removeConnection.subscribe(this,(t,i)=>{this.recalculateOrder=!0,!i.loading&&i.activeTransactions===0&&this.internalOnChange()}),this.editor.graphHooks.checkConnection.subscribe(this,t=>this.checkConnection(t.from,t.to))}start(){this.internalStatus===Yn.Stopped&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}pause(){this.internalStatus===Yn.Idle&&(this.internalStatus=Yn.Paused,this.events.statusChange.emit(this.status))}resume(){this.internalStatus===Yn.Paused&&(this.internalStatus=Yn.Idle,this.events.statusChange.emit(this.status))}stop(){(this.internalStatus===Yn.Idle||this.internalStatus===Yn.Paused)&&(this.internalStatus=Yn.Stopped,this.events.statusChange.emit(this.status))}async runOnce(e,...t){if(this.events.beforeRun.emit(e).prevented)return null;try{this.isRunning=!0,this.events.statusChange.emit(this.status),this.recalculateOrder&&this.calculateOrder();const i=await this.execute(e,...t);return this.events.afterRun.emit(i),i}finally{this.isRunning=!1,this.events.statusChange.emit(this.status)}}checkConnection(e,t){if(e.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,e.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};e=r}if(t.templateId){const r=this.findInterfaceByTemplateId(this.editor.graph.nodes,t.templateId);if(!r)return{connectionAllowed:!0,connectionsInDanger:[]};t=r}const i=new vO(e,t);let s=this.editor.graph.connections.slice();return t.allowMultipleConnections||(s=s.filter(r=>r.to!==t)),s.push(i),nTt(this.editor.graph.nodes,s)?{connectionAllowed:!1,connectionsInDanger:[]}:{connectionAllowed:!0,connectionsInDanger:t.allowMultipleConnections?[]:this.editor.graph.connections.filter(r=>r.to===t)}}calculateOrder(){this.recalculateOrder=!0}async calculateWithoutData(...e){const t=this.hooks.gatherCalculationData.execute(void 0);return await this.runOnce(t,...e)}validateNodeCalculationOutput(e,t){if(typeof t!="object")throw new Error(`Invalid calculation return value from node ${e.id} (type ${e.type})`);Object.keys(e.outputs).forEach(i=>{if(!(i in t))throw new Error(`Calculation return value from node ${e.id} (type ${e.type}) is missing key "${i}"`)})}internalOnChange(e,t){this.internalStatus===Yn.Idle&&this.onChange(this.recalculateOrder,e,t)}findInterfaceByTemplateId(e,t){for(const i of e)for(const s of[...Object.values(i.inputs),...Object.values(i.outputs)])if(s.templateId===t)return s;return null}}class sTt extends iTt{constructor(e){super(e),this.order=new Map}start(){super.start(),this.recalculateOrder=!0,this.calculateWithoutData()}async runGraph(e,t,i){this.order.has(e.id)||this.order.set(e.id,wO(e));const{calculationOrder:s,connectionsFromNode:r}=this.order.get(e.id),o=new Map;for(const a of s){const c={};Object.entries(a.inputs).forEach(([u,_])=>{c[u]=this.getInterfaceValue(t,_.id)}),this.events.beforeNodeCalculation.emit({inputValues:c,node:a});let d;if(a.calculate)d=await a.calculate(c,{globalValues:i,engine:this});else{d={};for(const[u,_]of Object.entries(a.outputs))d[u]=this.getInterfaceValue(t,_.id)}this.validateNodeCalculationOutput(a,d),this.events.afterNodeCalculation.emit({outputValues:d,node:a}),o.set(a.id,new Map(Object.entries(d))),r.has(a)&&r.get(a).forEach(u=>{var _;const m=(_=Object.entries(a.outputs).find(([,f])=>f.id===u.from.id))===null||_===void 0?void 0:_[0];if(!m)throw new Error(`Could not find key for interface ${u.from.id}
 This is likely a Baklava internal issue. Please report it on GitHub.`);const h=this.hooks.transferData.execute(d[m],u);u.to.allowMultipleConnections?t.has(u.to.id)?t.get(u.to.id).push(h):t.set(u.to.id,[h]):t.set(u.to.id,h)})}return o}async execute(e){this.recalculateOrder&&(this.order.clear(),this.recalculateOrder=!1);const t=this.getInputValues(this.editor.graph);return await this.runGraph(this.editor.graph,t,e)}getInputValues(e){const t=new Map;for(const i of e.nodes)Object.values(i.inputs).forEach(s=>{s.connectionCount===0&&t.set(s.id,s.value)}),i.calculate||Object.values(i.outputs).forEach(s=>{t.set(s.id,s.value)});return t}onChange(e){this.recalculateOrder=e||this.recalculateOrder,this.calculateWithoutData()}getInterfaceValue(e,t){if(!e.has(t))throw new Error(`Could not find value for interface ${t}
-This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const oTt=["INPUT","TEXTAREA","SELECT"];function RO(n){return oTt.includes(n.tagName)}let Ab=null;function aTt(n){Ab=n}function di(){if(!Ab)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Ab}}function Ni(){const{viewModel:n}=di();return{graph:Bd(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function AO(n){const{graph:e}=Ni(),t=ot(null),i=ot(null);return{dragging:Je(()=>!!t.value),onPointerDown:c=>{t.value={x:c.pageX,y:c.pageY},i.value={x:n.value.x,y:n.value.y}},onPointerMove:c=>{if(t.value){const d=c.pageX-t.value.x,u=c.pageY-t.value.y;n.value.x=i.value.x+d/e.value.scaling,n.value.y=i.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,i.value=null}}}function MO(n,e,t){if(!e.template)return!1;if(Oa(e.template)===t)return!0;const i=n.graphTemplates.find(r=>Oa(r)===t);return i?i.nodes.filter(r=>r.type.startsWith(Jl)).some(r=>MO(n,e,r.type)):!1}function NO(n){return Je(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,s])=>s.category)),i=[];for(const s of t.values()){let r=e.filter(([,o])=>o.category===s);n.value.displayedGraph.template?r=r.filter(([o])=>!MO(n.value.editor,n.value.displayedGraph,o)):r=r.filter(([o])=>![Ma,Na].includes(o)),r.length>0&&i.push({name:s,nodeTypes:Object.fromEntries(r)})}return i.sort((s,r)=>s.name==="default"?-1:r.name==="default"||s.name>r.name?1:-1),i})}function OO(){const{graph:n}=Ni();return{transform:(t,i)=>{const s=t/n.value.scaling-n.value.panning.x,r=i/n.value.scaling-n.value.panning.y;return[s,r]}}}function lTt(){const{graph:n}=Ni();let e=[],t=-1,i={x:0,y:0};const s=Je(()=>n.value.panning),r=AO(s),o=Je(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(h,f,y)=>{const b=[h/n.value.scaling-n.value.panning.x,f/n.value.scaling-n.value.panning.y],g=[h/y-n.value.panning.x,f/y-n.value.panning.y],E=[g[0]-b[0],g[1]-b[1]];n.value.panning.x+=E[0],n.value.panning.y+=E[1],n.value.scaling=y},c=h=>{h.preventDefault();let f=h.deltaY;h.deltaMode===1&&(f*=32);const y=n.value.scaling*(1-f/3e3);a(h.offsetX,h.offsetY,y)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:h=>{if(e.push(h),r.onPointerDown(h),e.length===2){const{ax:f,ay:y,bx:b,by:g}=d();i={x:f+(b-f)/2,y:y+(g-y)/2}}},onPointerMove:h=>{for(let f=0;f<e.length;f++)if(h.pointerId==e[f].pointerId){e[f]=h;break}if(e.length==2){const{ax:f,ay:y,bx:b,by:g}=d(),E=f-b,v=y-g,S=Math.sqrt(E*E+v*v);if(t>0){const R=n.value.scaling*(1+(S-t)/500);a(i.x,i.y,R)}t=S}else r.onPointerMove(h)},onPointerUp:h=>{e=e.filter(f=>f.pointerId!==h.pointerId),t=-1,r.onPointerUp()},onMouseWheel:c}}var yi=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(yi||{});const IO=Symbol();function cTt(){const{graph:n}=Ni(),e=ot(null),t=ot(null),i=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},s=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(c=>c.to===t.value);t.value.isInput&&a?(e.value={status:yi.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:yi.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const c=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?yi.ALLOWED:yi.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=yi.NONE,n.value.connections.forEach(c=>{c.isInDanger=!1}))};return na(IO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:i,onMouseDown:s,onMouseUp:r,hoveredOver:o}}function dTt(n){const e=ot(!1),t=ot(0),i=ot(0),s=NO(n),{transform:r}=OO(),o=Je(()=>{let u=[];const _={};for(const h of s.value){const f=Object.entries(h.nodeTypes).map(([y,b])=>({label:b.title,value:"addNode:"+y}));h.name==="default"?u=f:_[h.name]=f}const m=[...Object.entries(_).map(([h,f])=>({label:h,submenu:f}))];return m.length>0&&u.length>0&&m.push({isDivider:!0}),m.push(...u),m}),a=Je(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){const _=u.target;if(!(_ instanceof Element)||RO(_))return;u.preventDefault(),e.value=!0;const m=_.getBoundingClientRect(),f=_.closest(".baklava-editor").getBoundingClientRect();t.value=m.x+u.offsetX-f.x,i.value=m.y+u.offsetY-f.y}function d(u){if(u.startsWith("addNode:")){const _=u.substring(8),m=n.value.editor.nodeTypes.get(_);if(!m)return;const h=Hn(new m.type);n.value.displayedGraph.addNode(h);const[f,y]=r(t.value,i.value);h.position.x=f,h.position.y=y}else if(u.startsWith("command:")){const _=u.substring(8);n.value.commandHandler.canExecuteCommand(_)&&n.value.commandHandler.executeCommand(_)}}return{show:e,x:t,y:i,items:a,open:c,onClick:d}}const Ld="START_SELECTION_BOX";function uTt(n){const{viewModel:e}=di(),{graph:t}=Ni(),i=Je(()=>t.value.nodes),s=ot(!1),r=ot(!1),o=ot([0,0]),a=ot([0,0]);Tn(e,()=>{e.value.commandHandler.hasCommand(Ld)||(e.value.commandHandler.registerCommand(Ld,{canExecute:()=>!0,execute(){s.value=!0}}),e.value.commandHandler.registerHotkey(["b"],Ld))},{immediate:!0});function c(g){return[g.clientX-n.value.getBoundingClientRect().left,g.clientY-n.value.getBoundingClientRect().top]}function d(g){return s.value?(r.value=!0,s.value=!1,o.value=c(g),a.value=c(g),document.addEventListener("pointermove",u),document.addEventListener("pointerup",_),!0):!1}function u(g){o.value=c(g)}function _(g){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",_),o.value=c(g),r.value=!1;const E=m();for(const v of E)e.value.displayedGraph.selectedNodes.push(v)}function m(){const g=h(),v=document.querySelector(".baklava-editor").getBoundingClientRect();return i.value.filter(S=>{const R=f(S,v);return y(g,R)})}function h(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function f(g,E){const v=document.getElementById(g.id),S=v?v.getBoundingClientRect():{x:0,y:0,width:0,height:0},R=S.x-E.left,C=S.y-E.top;return{left:R,top:C,right:R+S.width,bottom:C+S.height}}function y(g,E){return g.left<E.right&&g.right>E.left&&g.top<E.bottom&&g.bottom>E.top}function b(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return Hn({startSelection:s,isSelecting:r,start:o,end:a,onPointerDown:d,getStyles:b})}const pTt=cn({setup(){const{viewModel:n}=di(),{graph:e}=Ni();return{styles:Je(()=>{const i=n.value.settings.background,s=e.value.panning.x*e.value.scaling,r=e.value.panning.y*e.value.scaling,o=e.value.scaling*i.gridSize,a=o/i.gridDivision,c=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>i.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${s}px top ${r}px`,backgroundSize:`${c} ${d}`}})}}}),sn=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t};function fTt(n,e,t,i,s,r){return T(),w("div",{class:"background",style:Wt(n.styles)},null,4)}const _Tt=sn(pTt,[["render",fTt]]);function mTt(n){return E2()?(hI(n),!0):!1}function Ay(n){return typeof n=="function"?n():yt(n)}const kO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hTt=Object.prototype.toString,gTt=n=>hTt.call(n)==="[object Object]",Pd=()=>{},bTt=yTt();function yTt(){var n,e;return kO&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function ETt(n,e,t=!1){return e.reduce((i,s)=>(s in n&&(!t||n[s]!==void 0)&&(i[s]=n[s]),i),{})}function vTt(n,e={}){if(!pn(n))return YI(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=qI(()=>({get(){return n.value[i]},set(s){var r;if((r=Ay(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function bl(n){var e;const t=Ay(n);return(e=t==null?void 0:t.$el)!=null?e:t}const My=kO?window:void 0;function Ll(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=My):[e,t,i,s]=n,!e)return Pd;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,_,m,h)=>(u.addEventListener(_,m,h),()=>u.removeEventListener(_,m,h)),c=Tn(()=>[bl(e),Ay(s)],([u,_])=>{if(o(),!u)return;const m=gTt(_)?{..._}:_;r.push(...t.flatMap(h=>i.map(f=>a(u,h,f,m))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return mTt(d),d}let t2=!1;function DO(n,e,t={}){const{window:i=My,ignore:s=[],capture:r=!0,detectIframe:o=!1}=t;if(!i)return Pd;bTt&&!t2&&(t2=!0,Array.from(i.document.body.children).forEach(m=>m.addEventListener("click",Pd)),i.document.documentElement.addEventListener("click",Pd));let a=!0;const c=m=>s.some(h=>{if(typeof h=="string")return Array.from(i.document.querySelectorAll(h)).some(f=>f===m.target||m.composedPath().includes(f));{const f=bl(h);return f&&(m.target===f||m.composedPath().includes(f))}}),u=[Ll(i,"click",m=>{const h=bl(n);if(!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(a=!c(m)),!a){a=!0;return}e(m)}},{passive:!0,capture:r}),Ll(i,"pointerdown",m=>{const h=bl(n);a=!c(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),o&&Ll(i,"blur",m=>{setTimeout(()=>{var h;const f=bl(n);((h=i.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(i.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>u.forEach(m=>m())}const LO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},STt=Object.keys(LO);function TTt(n={}){const{target:e=My}=n,t=ot(!1),i=ot(n.initialValue||{});Object.assign(i.value,LO,i.value);const s=r=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(r.pointerType))&&(i.value=ETt(r,STt,!1))};if(e){const r={passive:!0};Ll(e,["pointerdown","pointermove","pointerup"],s,r),Ll(e,"pointerleave",()=>t.value=!1,r)}return{...vTt(i),isInside:t}}const xTt=["onMouseenter","onMouseleave","onClick"],CTt={class:"flex-fill"},wTt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},RTt=l("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[l("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),ATt=[RTt],Ny=cn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,i=e;let s=null;const r=ot(null),o=ot(-1),a=ot(0),c=ot({x:!1,y:!1}),d=Je(()=>t.flippable&&(c.value.x||t.isFlipped.x)),u=Je(()=>t.flippable&&(c.value.y||t.isFlipped.y)),_=Je(()=>{const E={};return t.isNested||(E.top=(u.value?t.y-a.value:t.y)+"px",E.left=t.x+"px"),E}),m=Je(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),h=Je(()=>t.items.map(E=>({...E,hover:!1})));Tn([()=>t.y,()=>t.items],()=>{var E,v,S,R;a.value=t.items.length*30;const C=((v=(E=r.value)==null?void 0:E.parentElement)==null?void 0:v.offsetWidth)??0,A=((R=(S=r.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!t.isNested&&t.x>C*.75,c.value.y=!t.isNested&&t.y+a.value>A-20}),DO(r,()=>{t.modelValue&&i("update:modelValue",!1)});const f=E=>{!E.submenu&&E.value&&(i("click",E.value),i("update:modelValue",!1))},y=E=>{i("click",E),o.value=-1,t.isNested||i("update:modelValue",!1)},b=(E,v)=>{t.items[v].submenu&&(o.value=v,s!==null&&(clearTimeout(s),s=null))},g=(E,v)=>{t.items[v].submenu&&(s=window.setTimeout(()=>{o.value=-1,s=null},200))};return(E,v)=>{const S=nt("ContextMenu",!0);return T(),at(Os,{name:"slide-fade"},{default:Ie(()=>[k(l("div",{ref_key:"el",ref:r,class:Ue(["baklava-context-menu",m.value]),style:Wt(_.value)},[(T(!0),w(Be,null,Xe(h.value,(R,C)=>(T(),w(Be,null,[R.isDivider?(T(),w("div",{key:`d-${C}`,class:"divider"})):(T(),w("div",{key:`i-${C}`,class:Ue(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>b(A,C),onMouseleave:A=>g(A,C),onClick:W(A=>f(R),["stop","prevent"])},[l("div",CTt,$(R.label),1),R.submenu?(T(),w("div",wTt,ATt)):B("",!0),R.submenu?(T(),at(S,{key:1,"model-value":o.value===C,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:E.flippable,onClick:y},null,8,["model-value","items","is-flipped","flippable"])):B("",!0)],42,xTt))],64))),256))],6),[[_t,E.modelValue]])]),_:1})}}}),MTt={},NTt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},OTt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ITt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),kTt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),DTt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),LTt=[OTt,ITt,kTt,DTt];function PTt(n,e){return T(),w("svg",NTt,LTt)}const PO=sn(MTt,[["render",PTt]]),FTt=["id"],UTt={key:0,class:"__tooltip"},BTt={key:2,class:"align-middle"},n2=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,g=100)=>{const E=typeof(b==null?void 0:b.toString)=="function"?String(b):"";return E.length>g?E.slice(0,g)+"...":E},t=n,{viewModel:i}=di(),{hoveredOver:s,temporaryConnection:r}=ri(IO),o=ot(null),a=Je(()=>t.intf.connectionCount>0),c=ot(!1),d=Je(()=>i.value.settings.displayValueOnHover&&c.value),u=Je(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),_=Je(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),m=()=>{c.value=!0,s(t.intf)},h=()=>{c.value=!1,s(void 0)},f=()=>{o.value&&i.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},y=()=>{const b=i.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return cs(f),nc(f),(b,g)=>{var E;return T(),w("div",{id:b.intf.id,ref_key:"el",ref:o,class:Ue(["baklava-node-interface",u.value])},[b.intf.port?(T(),w("div",{key:0,class:Ue(["__port",{"--selected":((E=yt(r))==null?void 0:E.from)===b.intf}]),onPointerover:m,onPointerout:h},[on(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),w("span",UTt,$(e(b.intf.value)),1)):B("",!0)])],34)):B("",!0),_.value?(T(),at(Pu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":g[0]||(g[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:y},null,40,["modelValue","node","intf"])):(T(),w("span",BTt,$(b.intf.name),1))],10,FTt)}}}),GTt=["id","data-node-type"],VTt={class:"__title-label"},zTt={class:"__menu"},HTt={class:"__outputs"},qTt={class:"__inputs"},YTt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,i=e,{viewModel:s}=di(),{graph:r,switchGraph:o}=Ni(),a=ot(null),c=ot(!1),d=ot(""),u=ot(null),_=ot(!1),m=ot(!1),h=Je(()=>{const V=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(Jl)&&V.push({value:"editSubgraph",label:"Edit Subgraph"}),V}),f=Je(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),y=Je(()=>({"--reverse-y":t.node.reverseY??s.value.settings.nodes.reverseY})),b=Je(()=>{var V,ee;return{top:`${((V=t.node.position)==null?void 0:V.y)??0}px`,left:`${((ee=t.node.position)==null?void 0:ee.x)??0}px`,"--width":`${t.node.width??s.value.settings.nodes.defaultWidth}px`}}),g=Je(()=>Object.values(t.node.inputs).filter(V=>!V.hidden)),E=Je(()=>Object.values(t.node.outputs).filter(V=>!V.hidden)),v=()=>{i("select")},S=V=>{t.selected||v(),i("start-drag",V)},R=()=>{m.value=!0},C=async V=>{var ee;switch(V){case"delete":r.value.removeNode(t.node);break;case"rename":d.value=t.node.title,c.value=!0,await Le(),(ee=u.value)==null||ee.focus();break;case"editSubgraph":o(t.node.template);break}},A=()=>{t.node.title=d.value,c.value=!1},I=()=>{a.value&&s.value.hooks.renderNode.execute({node:t.node,el:a.value})},x=V=>{_.value=!0,V.preventDefault()},M=V=>{if(!_.value)return;const ee=t.node.width+V.movementX/r.value.scaling,O=s.value.settings.nodes.minWidth,H=s.value.settings.nodes.maxWidth;t.node.width=Math.max(O,Math.min(H,ee))},G=()=>{_.value=!1};return cs(()=>{I(),window.addEventListener("mousemove",M),window.addEventListener("mouseup",G)}),nc(I),La(()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",G)}),(V,ee)=>(T(),w("div",{id:V.node.id,ref_key:"el",ref:a,class:Ue(["baklava-node",f.value]),style:Wt(b.value),"data-node-type":V.node.type,onPointerdown:v},[yt(s).settings.nodes.resizable?(T(),w("div",{key:0,class:"__resize-handle",onMousedown:x},null,32)):B("",!0),on(V.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:W(S,["self","stop"])},[c.value?k((T(),w("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ee[1]||(ee[1]=O=>d.value=O),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:A,onKeydown:wi(A,["enter"])},null,544)),[[ue,d.value]]):(T(),w(Be,{key:0},[l("div",VTt,$(V.node.title),1),l("div",zTt,[z(PO,{class:"--clickable",onClick:R}),z(yt(Ny),{modelValue:m.value,"onUpdate:modelValue":ee[0]||(ee[0]=O=>m.value=O),x:0,y:0,items:h.value,onClick:C},null,8,["modelValue","items"])])],64))],32)]),on(V.$slots,"content",{},()=>[l("div",{class:Ue(["__content",y.value]),onKeydown:ee[2]||(ee[2]=wi(W(()=>{},["stop"]),["delete"]))},[l("div",HTt,[(T(!0),w(Be,null,Xe(E.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"output",node:V.node,intf:O},()=>[z(n2,{node:V.node,intf:O},null,8,["node","intf"])])),128))]),l("div",qTt,[(T(!0),w(Be,null,Xe(g.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"input",node:V.node,intf:O},()=>[z(n2,{node:V.node,intf:O},null,8,["node","intf"])])),128))])],34)])],46,GTt))}}),$Tt=cn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:yi.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=di(),{graph:t}=Ni(),i=(o,a)=>{const c=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[c,d]},s=Je(()=>{const[o,a]=i(n.x1,n.y1),[c,d]=i(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${c} ${d}`;{const u=.3*Math.abs(o-c);return`M ${o} ${a} C ${o+u} ${a}, ${c-u} ${d}, ${c} ${d}`}}),r=Je(()=>({"--temporary":n.isTemporary,"--allowed":n.state===yi.ALLOWED,"--forbidden":n.state===yi.FORBIDDEN}));return{d:s,classes:r}}}),WTt=["d"];function KTt(n,e,t,i,s,r){return T(),w("path",{class:Ue(["baklava-connection",n.classes]),d:n.d},null,10,WTt)}const FO=sn($Tt,[["render",KTt]]);function jTt(n){return document.getElementById(n.id)}function Ia(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const QTt=cn({components:{"connection-view":FO},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ni();let t;const i=ot({x1:0,y1:0,x2:0,y2:0}),s=Je(()=>n.connection.isInDanger?yi.FORBIDDEN:yi.NONE),r=Je(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=Je(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],c=()=>{const d=Ia(n.connection.from),u=Ia(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{c()}),t.observe(d.node),t.observe(u.node)));const[_,m]=a(d),[h,f]=a(u);i.value={x1:_,y1:m,x2:h,y2:f}};return cs(async()=>{await Le(),c()}),La(()=>{t&&t.disconnect()}),Tn([r,o],()=>c(),{deep:!0}),{d:i,state:s}}});function XTt(n,e,t,i,s,r){const o=nt("connection-view");return T(),at(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const ZTt=sn(QTt,[["render",XTt]]);function Su(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const JTt=cn({components:{"connection-view":FO},props:{connection:{type:Object,required:!0}},setup(n){const e=Je(()=>n.connection?n.connection.status:yi.NONE);return{d:Je(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const i=Su(Ia(n.connection.from)),s=n.connection.to?Su(Ia(n.connection.to)):[n.connection.mx||i[0],n.connection.my||i[1]];return n.connection.from.isInput?{input:s,output:i}:{input:i,output:s}}),status:e}}});function ext(n,e,t,i,s,r){const o=nt("connection-view");return T(),at(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const txt=sn(JTt,[["render",ext]]),nxt=cn({setup(){const{viewModel:n}=di(),{graph:e}=Ni(),t=ot(null),i=Bd(n.value.settings.sidebar,"width"),s=Je(()=>n.value.settings.sidebar.resizable),r=Je(()=>{const _=e.value.sidebar.nodeId;return e.value.nodes.find(m=>m.id===_)}),o=Je(()=>({width:`${i.value}px`})),a=Je(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(m=>m.displayInSidebar&&m.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=_=>{var m,h;const f=((h=(m=t.value)==null?void 0:m.parentElement)==null?void 0:h.getBoundingClientRect().width)??500;let y=i.value-_.movementX;y<300?y=300:y>.9*f&&(y=.9*f),i.value=y};return{el:t,graph:e,resizable:s,node:r,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),ixt={class:"__header"},sxt={class:"__node-name"};function rxt(n,e,t,i,s,r){return T(),w("div",{ref:"el",class:Ue(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:Wt(n.styles)},[n.resizable?(T(),w("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):B("",!0),l("div",ixt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),l("div",sxt,[l("b",null,$(n.node?n.node.title:""),1)])]),(T(!0),w(Be,null,Xe(n.displayedInterfaces,o=>(T(),w("div",{key:o.id,class:"__interface"},[(T(),at(Pu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const oxt=sn(nxt,[["render",rxt]]),axt=cn({__name:"Minimap",setup(n){const{viewModel:e}=di(),{graph:t}=Ni(),i=ot(null),s=ot(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var C,A;if(!r)return;r.canvas.width=i.value.offsetWidth,r.canvas.height=i.value.offsetHeight;const I=new Map,x=new Map;for(const O of t.value.nodes){const H=jTt(O),q=(H==null?void 0:H.offsetWidth)??0,L=(H==null?void 0:H.offsetHeight)??0,Y=((C=O.position)==null?void 0:C.x)??0,ne=((A=O.position)==null?void 0:A.y)??0;I.set(O,{x1:Y,y1:ne,x2:Y+q,y2:ne+L}),x.set(O,H)}const M={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const O of I.values())O.x1<M.x1&&(M.x1=O.x1),O.y1<M.y1&&(M.y1=O.y1),O.x2>M.x2&&(M.x2=O.x2),O.y2>M.y2&&(M.y2=O.y2);const G=50;M.x1-=G,M.y1-=G,M.x2+=G,M.y2+=G,a=M;const V=r.canvas.width/r.canvas.height,ee=(a.x2-a.x1)/(a.y2-a.y1);if(V>ee){const O=(V-ee)*(a.y2-a.y1)*.5;a.x1-=O,a.x2+=O}else{const O=a.x2-a.x1,H=a.y2-a.y1,q=(O-V*H)/V*.5;a.y1-=q,a.y2+=q}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const O of t.value.connections){const[H,q]=Su(Ia(O.from)),[L,Y]=Su(Ia(O.to)),[ne,oe]=u(H,q),[ye,xe]=u(L,Y);if(r.beginPath(),r.moveTo(ne,oe),e.value.settings.useStraightConnections)r.lineTo(ye,xe);else{const le=.3*Math.abs(ne-ye);r.bezierCurveTo(ne+le,oe,ye-le,xe,ye,xe)}r.stroke()}r.strokeStyle="lightgray";for(const[O,H]of I.entries()){const[q,L]=u(H.x1,H.y1),[Y,ne]=u(H.x2,H.y2);r.fillStyle=m(x.get(O)),r.beginPath(),r.rect(q,L,Y-q,ne-L),r.fill(),r.stroke()}if(s.value){const O=f(),[H,q]=u(O.x1,O.y1),[L,Y]=u(O.x2,O.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect(H,q,L-H,Y-q)}},u=(C,A)=>[(C-a.x1)/(a.x2-a.x1)*r.canvas.width,(A-a.y1)/(a.y2-a.y1)*r.canvas.height],_=(C,A)=>[C*(a.x2-a.x1)/r.canvas.width+a.x1,A*(a.y2-a.y1)/r.canvas.height+a.y1],m=C=>{if(C){const A=C.querySelector(".__content");if(A){const x=h(A);if(x)return x}const I=h(C);if(I)return I}return"gray"},h=C=>{const A=getComputedStyle(C).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},f=()=>{const C=i.value.parentElement.offsetWidth,A=i.value.parentElement.offsetHeight,I=C/t.value.scaling-t.value.panning.x,x=A/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:I,y2:x}},y=C=>{C.button===0&&(o=!0,b(C))},b=C=>{if(o){const[A,I]=_(C.offsetX,C.offsetY),x=f(),M=(x.x2-x.x1)/2,G=(x.y2-x.y1)/2;t.value.panning.x=-(A-M),t.value.panning.y=-(I-G)}},g=()=>{o=!1},E=()=>{s.value=!0},v=()=>{s.value=!1,g()};Tn([s,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const S=Je(()=>t.value.nodes.map(C=>C.position)),R=Je(()=>t.value.nodes.map(C=>C.width));return Tn([S,R],()=>{d()},{deep:!0}),cs(()=>{r=i.value.getContext("2d"),r.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),La(()=>{clearInterval(c)}),(C,A)=>(T(),w("canvas",{ref_key:"canvas",ref:i,class:"baklava-minimap",onMouseenter:E,onMouseleave:v,onMousedown:W(y,["self"]),onMousemove:W(b,["self"]),onMouseup:g,onContextmenu:A[0]||(A[0]=W(()=>{},["stop","prevent"]))},null,544))}}),lxt=cn({components:{ContextMenu:Ny,VerticalDots:PO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=di(),{switchGraph:t}=Ni(),i=ot(!1),s=Je(()=>n.type.startsWith(Jl));return{showContextMenu:i,hasContextMenu:s,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{i.value=!0},onContextMenuClick:c=>{const d=n.type.substring(Jl.length),u=e.value.editor.graphTemplates.find(_=>_.id===d);if(u)switch(c){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),cxt=["data-node-type"],dxt={class:"__title"},uxt={class:"__title-label"},pxt={key:0,class:"__menu"};function fxt(n,e,t,i,s,r){const o=nt("vertical-dots"),a=nt("context-menu");return T(),w("div",{class:"baklava-node --palette","data-node-type":n.type},[l("div",dxt,[l("div",uxt,$(n.title),1),n.hasContextMenu?(T(),w("div",pxt,[z(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=W(()=>{},["stop","prevent"])),onClick:W(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),z(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>n.showContextMenu=c),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=W(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):B("",!0)])],8,cxt)}const i2=sn(lxt,[["render",fxt]]),_xt={key:0},mxt=cn({__name:"NodePalette",setup(n){const{viewModel:e}=di(),{x:t,y:i}=TTt(),{transform:s}=OO(),r=NO(e),o=ri("editorEl"),a=ot(null),c=Je(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:_}=o.value.getBoundingClientRect();return{top:`${i.value-_}px`,left:`${t.value-u}px`}}),d=(u,_)=>{a.value={type:u,nodeInformation:_};const m=()=>{const h=Hn(new _.type);e.value.displayedGraph.addNode(h);const f=o.value.getBoundingClientRect(),[y,b]=s(t.value-f.left,i.value-f.top);h.position.x=y,h.position.y=b,a.value=null,document.removeEventListener("pointerup",m)};document.addEventListener("pointerup",m)};return(u,_)=>(T(),w(Be,null,[l("div",{class:"baklava-node-palette",onContextmenu:_[0]||(_[0]=W(()=>{},["stop","prevent"]))},[(T(!0),w(Be,null,Xe(yt(r),m=>(T(),w("section",{key:m.name},[m.name!=="default"?(T(),w("h1",_xt,$(m.name),1)):B("",!0),(T(!0),w(Be,null,Xe(m.nodeTypes,(h,f)=>(T(),at(i2,{key:f,type:f,title:h.title,onPointerdown:y=>d(f,h)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),z(Os,{name:"fade"},{default:Ie(()=>[a.value?(T(),w("div",{key:0,class:"baklava-dragged-node",style:Wt(c.value)},[z(i2,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):B("",!0)]),_:1})],64))}});let bd;const hxt=new Uint8Array(16);function gxt(){if(!bd&&(bd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bd(hxt)}const vn=[];for(let n=0;n<256;++n)vn.push((n+256).toString(16).slice(1));function bxt(n,e=0){return vn[n[e+0]]+vn[n[e+1]]+vn[n[e+2]]+vn[n[e+3]]+"-"+vn[n[e+4]]+vn[n[e+5]]+"-"+vn[n[e+6]]+vn[n[e+7]]+"-"+vn[n[e+8]]+vn[n[e+9]]+"-"+vn[n[e+10]]+vn[n[e+11]]+vn[n[e+12]]+vn[n[e+13]]+vn[n[e+14]]+vn[n[e+15]]}const yxt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s2={randomUUID:yxt};function Tu(n,e,t){if(s2.randomUUID&&!e&&!n)return s2.randomUUID();n=n||{};const i=n.random||(n.rng||gxt)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,bxt(i)}const ec="SAVE_SUBGRAPH";function Ext(n,e){const t=()=>{const i=n.value;if(!i.template)throw new Error("Graph template property not set");i.template.update(i.save()),i.template.panning=i.panning,i.template.scaling=i.scaling};e.registerCommand(ec,{canExecute:()=>{var i;return n.value!==((i=n.value.editor)==null?void 0:i.graph)},execute:t})}const vxt={},Sxt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Txt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),xxt=[Txt];function Cxt(n,e){return T(),w("svg",Sxt,xxt)}const wxt=sn(vxt,[["render",Cxt]]),Rxt=cn({components:{"i-arrow":wxt},props:{intf:{type:Object,required:!0}},setup(n){const e=ot(null),t=ot(!1),i=Je(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),s=Je(()=>i.value?typeof i.value=="string"?i.value:i.value.text:""),r=o=>{n.intf.value=typeof o=="string"?o:o.value};return DO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:i,selectedText:s,setSelected:r}}}),Axt=["title"],Mxt={class:"__selected"},Nxt={class:"__text"},Oxt={class:"__icon"},Ixt={class:"__dropdown"},kxt={class:"item --header"},Dxt=["onClick"];function Lxt(n,e,t,i,s,r){const o=nt("i-arrow");return T(),w("div",{ref:"el",class:Ue(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[l("div",Mxt,[l("div",Nxt,$(n.selectedText),1),l("div",Oxt,[z(o)])]),z(Os,{name:"slide-fade"},{default:Ie(()=>[k(l("div",Ixt,[l("div",kxt,$(n.intf.name),1),(T(!0),w(Be,null,Xe(n.intf.items,(a,c)=>(T(),w("div",{key:c,class:Ue(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},$(typeof a=="string"?a:a.text),11,Dxt))),128))],512),[[_t,n.open]])]),_:1})],10,Axt)}const Pxt=sn(Rxt,[["render",Lxt]]);class Fxt extends en{constructor(e,t,i){super(e,t),this.component=Iu(Pxt),this.items=i}}const Uxt=cn({props:{intf:{type:Object,required:!0}}});function Bxt(n,e,t,i,s,r){return T(),w("div",null,$(n.intf.value),1)}const Gxt=sn(Uxt,[["render",Bxt]]);class Vxt extends en{constructor(e,t){super(e,t),this.component=Iu(Gxt),this.setPort(!1)}}const zxt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:Je({get:()=>n.modelValue,set:i=>{e("update:modelValue",i)}})}}}),Hxt=["placeholder","title"];function qxt(n,e,t,i,s,r){return T(),w("div",null,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,Hxt),[[ue,n.v]])])}const Yxt=sn(zxt,[["render",qxt]]);class mc extends en{constructor(){super(...arguments),this.component=Iu(Yxt)}}class UO extends wy{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new mc("Name","Input").setPort(!1)},this.outputs={placeholder:new en("Connection",void 0)}}}class BO extends Ry{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new mc("Name","Output").setPort(!1),placeholder:new en("Connection",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)}}}const GO="CREATE_SUBGRAPH",r2=[Ma,Na];function $xt(n,e,t){const i=()=>n.value.selectedNodes.filter(r=>!r2.includes(r.type)).length>0,s=()=>{const{viewModel:r}=di(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(x=>!r2.includes(x.type)),d=c.flatMap(x=>Object.values(x.inputs)),u=c.flatMap(x=>Object.values(x.outputs)),_=o.connections.filter(x=>!u.includes(x.from)&&d.includes(x.to)),m=o.connections.filter(x=>u.includes(x.from)&&!d.includes(x.to)),h=o.connections.filter(x=>u.includes(x.from)&&d.includes(x.to)),f=c.map(x=>x.save()),y=h.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:g,xRight:E,yTop:v}=Wxt(c);for(const[x,M]of _.entries()){const G=new UO;G.inputs.name.value=M.to.name,f.push({...G.save(),position:{x:E-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),y.push({id:Tu(),from:G.outputs.placeholder.id,to:M.to.id}),b.set(M.to.id,G.graphInterfaceId)}for(const[x,M]of m.entries()){const G=new BO;G.inputs.name.value=M.from.name,f.push({...G.save(),position:{x:g+100,y:v+x*200}}),y.push({id:Tu(),from:M.from.id,to:G.inputs.placeholder.id}),b.set(M.from.id,G.graphInterfaceId)}const S=Hn(new yp({connections:y,nodes:f,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Oa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const C=Hn(new R.type);o.addNode(C);const A=Math.round(c.map(x=>x.position.x).reduce((x,M)=>x+M,0)/c.length),I=Math.round(c.map(x=>x.position.y).reduce((x,M)=>x+M,0)/c.length);C.position.x=A,C.position.y=I,_.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,C.inputs[b.get(x.to.id)])}),m.forEach(x=>{o.removeConnection(x),o.addConnection(C.outputs[b.get(x.from.id)],x.to)}),c.forEach(x=>o.removeNode(x)),o.activeTransactions--,e.canExecuteCommand(ec)&&e.executeCommand(ec),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(GO,{canExecute:i,execute:s})}function Wxt(n){const e=n.reduce((s,r)=>{const o=r.position.x;return o<s?o:s},1/0),t=n.reduce((s,r)=>{const o=r.position.y;return o<s?o:s},1/0);return{xLeft:n.reduce((s,r)=>{const o=r.position.x+r.width;return o>s?o:s},-1/0),xRight:e,yTop:t}}class o2{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const i=new t.type;e.addNode(i),i.load(this.nodeState),this.nodeId=i.id}removeNode(e){const t=e.nodes.find(i=>i.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class a2{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const i=t;this.connectionState={id:i.id,from:i.from.id,to:i.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),i=e.findNodeInterface(this.connectionState.to);if(!t||!i)return;const s=e.addConnection(t,i);s&&(s.id=this.connectionState.id),this.connectionId=s==null?void 0:s.id}removeConnection(e){const t=e.connections.find(i=>i.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class Kxt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t<this.steps.length;t++)this.steps[t].redo(e)}}const Mb="UNDO",Nb="REDO",Oy="START_TRANSACTION",Iy="COMMIT_TRANSACTION";function jxt(n,e){const t=Symbol("HistoryToken"),i=ot(200),s=ot([]),r=ot(!1),o=ot(-1),a=ot(!1),c=ot([]),d=b=>{if(!r.value)if(a.value)c.value.push(b);else for(o.value!==s.value.length-1&&(s.value=s.value.slice(0,o.value+1)),s.value.push(b),o.value++;s.value.length>i.value;)s.value.shift()},u=()=>{a.value=!0},_=()=>{a.value=!1,c.value.length>0&&(d(new Kxt(c.value)),c.value=[])},m=()=>s.value.length!==0&&o.value!==-1,h=()=>{m()&&(r.value=!0,s.value[o.value--].undo(n.value),r.value=!1)},f=()=>s.value.length!==0&&o.value<s.value.length-1,y=()=>{f()&&(r.value=!0,s.value[++o.value].redo(n.value),r.value=!1)};return Tn(n,(b,g)=>{g&&(g.events.addNode.unsubscribe(t),g.events.removeNode.unsubscribe(t),g.events.addConnection.unsubscribe(t),g.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,E=>{d(new o2("addNode",E.id))}),b.events.removeNode.subscribe(t,E=>{d(new o2("removeNode",E.save()))}),b.events.addConnection.subscribe(t,E=>{d(new a2("addConnection",E.id))}),b.events.removeConnection.subscribe(t,E=>{d(new a2("removeConnection",E))}))},{immediate:!0}),e.registerCommand(Mb,{canExecute:m,execute:h}),e.registerCommand(Nb,{canExecute:f,execute:y}),e.registerCommand(Oy,{canExecute:()=>!a.value,execute:u}),e.registerCommand(Iy,{canExecute:()=>a.value,execute:_}),e.registerHotkey(["Control","z"],Mb),e.registerHotkey(["Control","y"],Nb),Hn({maxSteps:i})}const Ob="DELETE_NODES";function Qxt(n,e){e.registerCommand(Ob,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(Oy);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const i=n.value.selectedNodes[t];n.value.removeNode(i)}e.executeCommand(Iy)}}),e.registerHotkey(["Delete"],Ob)}const VO="SWITCH_TO_MAIN_GRAPH";function Xxt(n,e,t){e.registerCommand(VO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(ec),t(n.value.editor.graph)}})}function Zxt(n,e,t){Qxt(n,e),$xt(n,e,t),Ext(n,e),Xxt(n,e,t)}const Ib="COPY",kb="PASTE",Jxt="CLEAR_CLIPBOARD";function eCt(n,e,t){const i=Symbol("ClipboardToken"),s=ot(""),r=ot(""),o=Je(()=>!s.value),a=()=>{s.value="",r.value=""},c=()=>{const _=n.value.selectedNodes.flatMap(h=>[...Object.values(h.inputs),...Object.values(h.outputs)]),m=n.value.connections.filter(h=>_.includes(h.from)||_.includes(h.to)).map(h=>({from:h.from.id,to:h.to.id}));r.value=JSON.stringify(m),s.value=JSON.stringify(n.value.selectedNodes.map(h=>h.save()))},d=(_,m,h)=>{for(const f of _){let y;if((!h||h==="input")&&(y=Object.values(f.inputs).find(b=>b.id===m)),!y&&(!h||h==="output")&&(y=Object.values(f.outputs).find(b=>b.id===m)),y)return y}},u=()=>{if(o.value)return;const _=new Map,m=JSON.parse(s.value),h=JSON.parse(r.value),f=[],y=[],b=n.value;t.executeCommand(Oy);for(const g of m){const E=e.value.nodeTypes.get(g.type);if(!E){console.warn(`Node type ${g.type} not registered`);return}const v=new E.type,S=v.id;f.push(v),v.hooks.beforeLoad.subscribe(i,R=>{const C=R;return C.position&&(C.position.x+=100,C.position.y+=100),v.hooks.beforeLoad.unsubscribe(i),C}),b.addNode(v),v.load({...g,id:S}),v.id=S,_.set(g.id,S);for(const R of Object.values(v.inputs)){const C=Tu();_.set(R.id,C),R.id=C}for(const R of Object.values(v.outputs)){const C=Tu();_.set(R.id,C),R.id=C}}for(const g of h){const E=d(f,_.get(g.from),"output"),v=d(f,_.get(g.to),"input");if(!E||!v)continue;const S=b.addConnection(E,v);S&&y.push(S)}return n.value.selectedNodes=f,t.executeCommand(Iy),{newNodes:f,newConnections:y}};return t.registerCommand(Ib,{canExecute:()=>n.value.selectedNodes.length>0,execute:c}),t.registerHotkey(["Control","c"],Ib),t.registerCommand(kb,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],kb),t.registerCommand(Jxt,{canExecute:()=>!0,execute:a}),Hn({isEmpty:o})}const tCt="OPEN_SIDEBAR";function nCt(n,e){e.registerCommand(tCt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function iCt(n,e){nCt(n,e)}const sCt={},rCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},oCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),aCt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),lCt=[oCt,aCt];function cCt(n,e){return T(),w("svg",rCt,lCt)}const dCt=sn(sCt,[["render",cCt]]),uCt={},pCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},fCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),_Ct=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),mCt=[fCt,_Ct];function hCt(n,e){return T(),w("svg",pCt,mCt)}const gCt=sn(uCt,[["render",hCt]]),bCt={},yCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ECt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),vCt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),SCt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),TCt=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),xCt=[ECt,vCt,SCt,TCt];function CCt(n,e){return T(),w("svg",yCt,xCt)}const wCt=sn(bCt,[["render",CCt]]),RCt={},ACt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},MCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),NCt=l("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),OCt=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),ICt=[MCt,NCt,OCt];function kCt(n,e){return T(),w("svg",ACt,ICt)}const DCt=sn(RCt,[["render",kCt]]),LCt={},PCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},FCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),UCt=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),BCt=l("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),GCt=[FCt,UCt,BCt];function VCt(n,e){return T(),w("svg",PCt,GCt)}const zCt=sn(LCt,[["render",VCt]]),HCt={},qCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},YCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),$Ct=l("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),WCt=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),KCt=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),jCt=[YCt,$Ct,WCt,KCt];function QCt(n,e){return T(),w("svg",qCt,jCt)}const XCt=sn(HCt,[["render",QCt]]),ZCt={},JCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ewt=mr('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 3h4v4h-4z"></path><path d="M3 17h4v4h-4z"></path><path d="M17 17h4v4h-4z"></path><path d="M7 17l5 -4l5 4"></path><line x1="12" y1="7" x2="12" y2="13"></line>',6),twt=[ewt];function nwt(n,e){return T(),w("svg",JCt,twt)}const iwt=sn(ZCt,[["render",nwt]]),swt={},rwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},owt=mr('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M8 8m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"></path><path d="M12 20v.01"></path><path d="M16 20v.01"></path><path d="M8 20v.01"></path><path d="M4 20v.01"></path><path d="M4 16v.01"></path><path d="M4 12v.01"></path><path d="M4 8v.01"></path><path d="M4 4v.01"></path><path d="M8 4v.01"></path><path d="M12 4v.01"></path><path d="M16 4v.01"></path><path d="M20 4v.01"></path><path d="M20 8v.01"></path><path d="M20 12v.01"></path><path d="M20 16v.01"></path><path d="M20 20v.01"></path>',18),awt=[owt];function lwt(n,e){return T(),w("svg",rwt,awt)}const cwt=sn(swt,[["render",lwt]]),dwt={},uwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},pwt=mr('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>',6),fwt=[pwt];function _wt(n,e){return T(),w("svg",uwt,fwt)}const mwt=sn(dwt,[["render",_wt]]),hwt=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=di();return{viewModel:n}}}),gwt=["disabled","title"];function bwt(n,e,t,i,s,r){return T(),w("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),at(Pu(n.icon),{key:0})):(T(),w(Be,{key:1},[Ze($(n.title),1)],64))],8,gwt)}const ywt=sn(hwt,[["render",bwt]]),Ewt=cn({components:{ToolbarButton:ywt},setup(){const{viewModel:n}=di();return{isSubgraph:Je(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Ib,title:"Copy",icon:zCt},{command:kb,title:"Paste",icon:DCt},{command:Ob,title:"Delete selected nodes",icon:mwt},{command:Mb,title:"Undo",icon:dCt},{command:Nb,title:"Redo",icon:gCt},{command:Ld,title:"Box Select",icon:cwt},{command:GO,title:"Create Subgraph",icon:iwt}],subgraphCommands:[{command:ec,title:"Save Subgraph",icon:XCt},{command:VO,title:"Back to Main Graph",icon:wCt}]}}});function vwt(n,e,t,i,s,r){const o=nt("toolbar-button");return T(),w("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=W(()=>{},["stop","prevent"]))},[(T(!0),w(Be,null,Xe(n.commands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),w(Be,{key:0},Xe(n.subgraphCommands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):B("",!0)],32)}const Swt=sn(Ewt,[["render",vwt]]),Twt={class:"connections-container"},xwt=cn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),i=Bd(e,"viewModel");aTt(i);const s=ot(null);na("editorEl",s);const r=Je(()=>e.viewModel.displayedGraph.nodes),o=Je(()=>e.viewModel.displayedGraph.nodes.map(I=>AO(Bd(I,"position")))),a=Je(()=>e.viewModel.displayedGraph.connections),c=Je(()=>e.viewModel.displayedGraph.selectedNodes),d=lTt(),u=cTt(),_=dTt(i),m=uTt(s),h=Je(()=>({...d.styles.value})),f=ot(0);e.viewModel.editor.hooks.load.subscribe(t,I=>(f.value++,I));const y=I=>{d.onPointerMove(I),u.onMouseMove(I)},b=I=>{if(I.button===0){if(m.onPointerDown(I))return;I.target===s.value&&(R(),d.onPointerDown(I)),u.onMouseDown()}},g=I=>{d.onPointerUp(I),u.onMouseUp()},E=I=>{I.key==="Tab"&&I.preventDefault(),e.viewModel.commandHandler.handleKeyDown(I)},v=I=>{e.viewModel.commandHandler.handleKeyUp(I)},S=I=>{["Control","Shift"].some(x=>e.viewModel.commandHandler.pressedKeys.includes(x))||R(),e.viewModel.displayedGraph.selectedNodes.push(I)},R=()=>{e.viewModel.displayedGraph.selectedNodes=[]},C=I=>{for(const x of e.viewModel.displayedGraph.selectedNodes){const M=r.value.indexOf(x),G=o.value[M];G.onPointerDown(I),document.addEventListener("pointermove",G.onPointerMove)}document.addEventListener("pointerup",A)},A=()=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(I),M=o.value[x];M.onPointerUp(),document.removeEventListener("pointermove",M.onPointerMove)}document.removeEventListener("pointerup",A)};return(I,x)=>(T(),w("div",{ref_key:"el",ref:s,tabindex:"-1",class:Ue(["baklava-editor",{"baklava-ignore-mouse":!!yt(u).temporaryConnection.value||yt(d).dragging.value,"--temporary-connection":!!yt(u).temporaryConnection.value,"--start-selection-box":yt(m).startSelection}]),onPointermove:W(y,["self"]),onPointerdown:b,onPointerup:g,onWheel:x[1]||(x[1]=W((...M)=>yt(d).onMouseWheel&&yt(d).onMouseWheel(...M),["self"])),onKeydown:E,onKeyup:v,onContextmenu:x[2]||(x[2]=(...M)=>yt(_).open&&yt(_).open(...M))},[on(I.$slots,"background",{},()=>[z(_Tt)]),on(I.$slots,"toolbar",{},()=>[I.viewModel.settings.toolbar.enabled?(T(),at(Swt,{key:0})):B("",!0)]),on(I.$slots,"palette",{},()=>[I.viewModel.settings.palette.enabled?(T(),at(mxt,{key:0})):B("",!0)]),(T(),w("svg",Twt,[(T(!0),w(Be,null,Xe(a.value,M=>(T(),w("g",{key:M.id+f.value.toString()},[on(I.$slots,"connection",{connection:M},()=>[z(ZTt,{connection:M},null,8,["connection"])])]))),128)),on(I.$slots,"temporaryConnection",{temporaryConnection:yt(u).temporaryConnection.value},()=>[yt(u).temporaryConnection.value?(T(),at(txt,{key:0,connection:yt(u).temporaryConnection.value},null,8,["connection"])):B("",!0)])])),l("div",{class:"node-container",style:Wt(h.value)},[z(Is,{name:"fade"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(r.value,(M,G)=>on(I.$slots,"node",{key:M.id+f.value.toString(),node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:C},()=>[z(YTt,{node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:C},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),on(I.$slots,"sidebar",{},()=>[I.viewModel.settings.sidebar.enabled?(T(),at(oxt,{key:0})):B("",!0)]),on(I.$slots,"minimap",{},()=>[I.viewModel.settings.enableMinimap?(T(),at(axt,{key:0})):B("",!0)]),on(I.$slots,"contextMenu",{contextMenu:yt(_)},()=>[I.viewModel.settings.contextMenu.enabled?(T(),at(Ny,{key:0,modelValue:yt(_).show.value,"onUpdate:modelValue":x[0]||(x[0]=M=>yt(_).show.value=M),items:yt(_).items.value,x:yt(_).x.value,y:yt(_).y.value,onClick:yt(_).onClick},null,8,["modelValue","items","x","y","onClick"])):B("",!0)]),yt(m).isSelecting?(T(),w("div",{key:0,class:"selection-box",style:Wt(yt(m).getStyles())},null,4)):B("",!0)],34))}});function Cwt(n){const e=ot([]),t=ot([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&RO(document.activeElement))&&t.value.forEach(a=>{var c,d;a.keys.every(u=>e.value.includes(u))&&((c=a.options)!=null&&c.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,c)=>{t.value.push({keys:o,commandName:a,options:c})}}}const wwt=()=>{const n=ot(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},i=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...c)},s=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(c)},r=Cwt(i);return Hn({hasCommand:e,registerCommand:t,executeCommand:i,canExecuteCommand:s,...r})},Rwt=n=>!(n instanceof _c);function Awt(n,e){return{switchGraph:i=>{let s;if(Rwt(i))s=new _c(n.value),i.createGraph(s);else{if(i!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");s=i}e.value&&e.value!==n.value.graph&&e.value.destroy(),s.panning=s.panning??i.panning??{x:0,y:0},s.scaling=s.scaling??i.scaling??1,s.selectedNodes=s.selectedNodes??[],s.sidebar=s.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=s}}}function Mwt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const Nwt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function Owt(n){const e=ot(new eTt),t=Symbol("ViewModelToken"),i=ot(null),s=BI(i),{switchGraph:r}=Awt(e,i),o=Je(()=>s.value&&s.value!==e.value.graph),a=Hn(Nwt()),c=wwt(),d=jxt(s,c),u=eCt(s,e,c),_={renderNode:new ci(null),renderInterface:new ci(null)};return Zxt(s,c,r),iCt(s,c),Tn(e,(m,h)=>{h&&(h.events.registerGraph.unsubscribe(t),h.graphEvents.beforeAddNode.unsubscribe(t),m.nodeHooks.beforeLoad.unsubscribe(t),m.nodeHooks.afterSave.unsubscribe(t),m.graphTemplateHooks.beforeLoad.unsubscribe(t),m.graphTemplateHooks.afterSave.unsubscribe(t),m.graph.hooks.load.unsubscribe(t),m.graph.hooks.save.unsubscribe(t)),m&&(m.nodeHooks.beforeLoad.subscribe(t,(f,y)=>(y.position=f.position??{x:0,y:0},y.width=f.width??a.nodes.defaultWidth,y.twoColumn=f.twoColumn??!1,f)),m.nodeHooks.afterSave.subscribe(t,(f,y)=>(f.position=y.position,f.width=y.width,f.twoColumn=y.twoColumn,f)),m.graphTemplateHooks.beforeLoad.subscribe(t,(f,y)=>(y.panning=f.panning,y.scaling=f.scaling,f)),m.graphTemplateHooks.afterSave.subscribe(t,(f,y)=>(f.panning=y.panning,f.scaling=y.scaling,f)),m.graph.hooks.load.subscribe(t,(f,y)=>(y.panning=f.panning,y.scaling=f.scaling,f)),m.graph.hooks.save.subscribe(t,(f,y)=>(f.panning=y.panning,f.scaling=y.scaling,f)),m.graphEvents.beforeAddNode.subscribe(t,f=>Mwt(f,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(UO,{category:"Subgraphs"}),e.value.registerNodeType(BO,{category:"Subgraphs"}),r(m.graph))},{immediate:!0}),Hn({editor:e,displayedGraph:s,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:_,switchGraph:r})}const Iwt=Ka({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new en("Request",""),agent_name:()=>new Fxt("Personality","",Pi.state.config.personalities).setPort(!1)},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Pi.state.config.personalities);let e="";try{e=(await ie.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),kwt=Ka({type:"RAGNode",title:"RAG",inputs:{request:()=>new en("Prompt",""),document_path:()=>new mc("Document path","").setPort(!1)},outputs:{prompt:()=>new en("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await ie.get("/rag",{params:{text:n,doc_path:e}})).data}catch(i){console.error(i)}return{response:t}}}),l2=Ka({type:"Task",title:"Task",inputs:{description:()=>new mc("Task description","").setPort(!1)},outputs:{prompt:()=>new en("Prompt")},calculate({description:n}){return{prompt:n}}}),c2=Ka({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new en("Input","")},outputs:{response:()=>new Vxt("Text","")},async calculate({request:n}){}}),d2=Ka({type:"LLMNode",title:"LLM",inputs:{request:()=>new en("Request","")},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Pi.state.config.personalities);let e="";try{e=(await ie.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),Dwt=Ka({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new en("Question",""),outputs:()=>new mc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new en("Response","")}}),Lwt=cn({components:{"baklava-editor":xwt},setup(){const n=Owt(),e=new rTt(n.editor);n.editor.registerNodeType(Iwt),n.editor.registerNodeType(l2),n.editor.registerNodeType(kwt),n.editor.registerNodeType(c2),n.editor.registerNodeType(d2),n.editor.registerNodeType(Dwt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),tTt(a,n.editor),e.resume()}),e.start();function i(a,c,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const s=i(l2,300,140),r=i(d2,550,140),o=i(c2,850,140);return n.displayedGraph.addConnection(s.outputs.prompt,r.inputs.request),n.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),Pwt={style:{width:"100vw",height:"100vh"}};function Fwt(n,e,t,i,s,r){const o=nt("baklava-editor");return T(),w("div",Pwt,[z(o,{"view-model":n.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const Uwt=st(Lwt,[["render",Fwt]]),Bwt={},Gwt={style:{width:"100vw",height:"100vh"}},Vwt=["src"];function zwt(n,e,t,i,s,r){return T(),w("div",Gwt,[l("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,Vwt)])}const Hwt=st(Bwt,[["render",zwt]]),qwt={},Ywt={style:{width:"100vw",height:"100vh"}},$wt=["src"];function Wwt(n,e,t,i,s,r){return T(),w("div",Ywt,[l("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,$wt)])}const Kwt=st(qwt,[["render",Wwt]]),jwt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},Qwt={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},Xwt={class:"flex-grow"},Zwt={class:"flex items-center mb-4"},Jwt=["src"],e2t={class:"font-bold text-xl text-gray-800"},t2t={class:"text-sm text-gray-600"},n2t={class:"text-sm text-gray-600"},i2t={class:"text-sm text-gray-600"},s2t={class:"text-sm text-gray-600"},r2t={class:"text-sm text-gray-600"},o2t={class:"mb-4"},a2t={class:"text-sm text-gray-600 h-20 overflow-y-auto"},l2t={class:"text-sm text-gray-600 mb-2"},c2t={key:0,class:"mb-4"},d2t={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},u2t={class:"mt-auto pt-4 border-t"},p2t={class:"flex justify-between items-center flex-wrap"},f2t=["title"],_2t=["fill"];function m2t(n,e,t,i,s,r){return T(),w("div",Qwt,[l("div",Xwt,[l("div",Zwt,[l("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,Jwt),l("div",null,[l("h3",e2t,$(t.app.name),1),l("p",t2t,"Author: "+$(t.app.author),1),l("p",n2t,"Version: "+$(t.app.version),1),l("p",i2t,"Category: "+$(t.app.category),1),l("p",s2t,"Creation date: "+$(r.formatDate(t.app.creation_date)),1),l("p",r2t,"Last update: "+$(r.formatDate(t.app.last_update_date)),1),l("p",{class:Ue(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},$(t.app.is_public?"Public App":"Local App"),3)])]),l("div",o2t,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",a2t,$(t.app.description),1)]),l("p",l2t,"AI Model: "+$(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),w("div",c2t,[e[11]||(e[11]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),l("p",d2t,$(t.app.disclaimer),1)])):B("",!0)]),l("div",u2t,[l("div",p2t,[l("button",{onClick:e[0]||(e[0]=W(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,_2t))],8,f2t),t.app.installed?(T(),w("button",{key:0,onClick:e[1]||(e[1]=W(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),w("button",{key:1,onClick:e[2]||(e[2]=W(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),w("button",{key:2,onClick:e[3]||(e[3]=W(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),w("button",{key:3,onClick:e[4]||(e[4]=W(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):B("",!0),l("button",{onClick:e[5]||(e[5]=W(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),w("button",{key:4,onClick:e[6]||(e[6]=W(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):B("",!0),t.app.installed?(T(),w("button",{key:5,onClick:e[7]||(e[7]=W(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):B("",!0),t.app.has_server&&t.app.installed?(T(),w("button",{key:6,onClick:e[8]||(e[8]=W(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):B("",!0),t.app.has_update?(T(),w("button",{key:7,onClick:e[9]||(e[9]=W(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),l("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):B("",!0)])])])}const h2t=st(jwt,[["render",m2t],["__scopeId","data-v-a946557e"]]),g2t={components:{AppCard:h2t},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,i=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&i})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server.
-This may take some time the first time as some libraries need to be installed.`),ie.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var i,s;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((s=(i=t.response)==null?void 0:i.data)==null?void 0:s.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const i=await ie.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=i.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(i){console.error("Error uploading app:",i),this.error=((t=(e=i.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await ie.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await ie.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await ie.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await ie.get(`/apps/${n.folder_name}/README.md`);this.appCode=Pt(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await ie.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await ie.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await ie.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await ie.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await ie.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],i=t&&t.match(/filename="?(.+)"?/i),s=i?i[1]:"app.zip",r=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(r),a=document.createElement("a");a.style.display="none",a.href=o,a.download=s,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},b2t={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},y2t={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},E2t={class:"flex flex-wrap items-center justify-between gap-4"},v2t={class:"flex items-center space-x-4"},S2t=["disabled"],T2t={key:0},x2t={key:1,class:"error"},C2t={class:"relative flex-grow max-w-md"},w2t={class:"flex items-center space-x-4"},R2t=["value"],A2t={class:"flex items-center space-x-4"},M2t={for:"installed-only",class:"font-semibold"},N2t={for:"installed-only",class:"font-semibold"},O2t={class:"flex items-center space-x-4"},I2t={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},k2t={key:1,class:"pb-20"},D2t={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},L2t={class:"text-2xl font-bold mb-4"},P2t={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},F2t={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},U2t={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},B2t={class:"flex justify-between items-center mb-4"},G2t={class:"text-2xl font-bold"},V2t=["srcdoc"],z2t={key:1,class:"text-center text-red-500"};function H2t(n,e,t,i,s,r){const o=nt("app-card");return T(),w("div",b2t,[l("nav",y2t,[l("div",E2t,[l("div",v2t,[l("button",{onClick:e[0]||(e[0]=(...a)=>r.fetchGithubApps&&r.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Ze(" Refresh ")])),l("button",{onClick:e[1]||(e[1]=(...a)=>r.openAppsFolder&&r.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),Ze(" Open Folder ")])),l("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>r.onFileSelected&&r.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),l("button",{onClick:e[3]||(e[3]=(...a)=>r.triggerFileInput&&r.triggerFileInput(...a)),disabled:s.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},$(s.isUploading?"Uploading...":"Upload App"),9,S2t)]),s.message?(T(),w("p",T2t,$(s.message),1)):B("",!0),s.error?(T(),w("p",x2t,$(s.error),1)):B("",!0),l("div",C2t,[k(l("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>s.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[ue,s.searchQuery]]),e[13]||(e[13]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",w2t,[e[15]||(e[15]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>s.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=l("option",{value:"all"},"All Categories",-1)),(T(!0),w(Be,null,Xe(r.categories,a=>(T(),w("option",{key:a,value:a},$(a),9,R2t))),128))],512),[[It,s.selectedCategory]])]),l("div",A2t,[l("label",M2t,[k(l("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>s.showOnlyInstalled=a),class:"mr-2"},null,512),[[He,s.showOnlyInstalled]]),e[16]||(e[16]=Ze(" Show only installed apps "))]),l("label",N2t,[k(l("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>s.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[He,s.showOnlyUnInstalled]]),e[17]||(e[17]=Ze(" Show only non installed apps "))])]),l("div",O2t,[e[19]||(e[19]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>s.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[It,s.sortBy]]),l("button",{onClick:e[9]||(e[9]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},$(s.sortOrder==="asc"?"↑":"↓"),1)])])]),s.loading?(T(),w("div",I2t,e[20]||(e[20]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),w("div",k2t,[e[21]||(e[21]=l("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),l("div",D2t,[(T(!0),w(Be,null,Xe(r.favoriteApps,a=>(T(),at(o,{key:a.appName,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onHelp:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),l("h2",L2t,$(r.currentCategoryName)+" ("+$(r.sortedAndFilteredApps.length)+")",1),l("div",P2t,[(T(!0),w(Be,null,Xe(r.sortedAndFilteredApps,a=>(T(),at(o,{key:a.name,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onHelp:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),s.selectedApp?(T(),w("div",F2t,[l("div",U2t,[l("div",B2t,[l("h2",G2t,$(s.selectedApp.name),1),l("button",{onClick:e[10]||(e[10]=(...a)=>r.backToZoo&&r.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),s.appCode?(T(),w("iframe",{key:0,srcdoc:s.appCode,class:"flex-grow border-none"},null,8,V2t)):(T(),w("p",z2t,"Please install this app to view its code."))])])):B("",!0),s.message?(T(),w("div",{key:3,class:Ue(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":s.successMessage,"bg-red-100 text-red-800":!s.successMessage}])},$(s.message),3)):B("",!0)])}const q2t=st(g2t,[["render",H2t]]),Y2t={components:{PersonalityEntry:lN},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality:
+This is likely a Baklava internal issue. Please report it on GitHub.`);return e.get(t)}}const rTt=["INPUT","TEXTAREA","SELECT"];function RO(n){return rTt.includes(n.tagName)}let Ab=null;function oTt(n){Ab=n}function di(){if(!Ab)throw new Error("providePlugin() must be called before usePlugin()");return{viewModel:Ab}}function Ni(){const{viewModel:n}=di();return{graph:Bd(n.value,"displayedGraph"),switchGraph:n.value.switchGraph}}function AO(n){const{graph:e}=Ni(),t=ot(null),i=ot(null);return{dragging:Je(()=>!!t.value),onPointerDown:c=>{t.value={x:c.pageX,y:c.pageY},i.value={x:n.value.x,y:n.value.y}},onPointerMove:c=>{if(t.value){const d=c.pageX-t.value.x,u=c.pageY-t.value.y;n.value.x=i.value.x+d/e.value.scaling,n.value.y=i.value.y+u/e.value.scaling}},onPointerUp:()=>{t.value=null,i.value=null}}}function MO(n,e,t){if(!e.template)return!1;if(Oa(e.template)===t)return!0;const i=n.graphTemplates.find(r=>Oa(r)===t);return i?i.nodes.filter(r=>r.type.startsWith(Jl)).some(r=>MO(n,e,r.type)):!1}function NO(n){return Je(()=>{const e=Array.from(n.value.editor.nodeTypes.entries()),t=new Set(e.map(([,s])=>s.category)),i=[];for(const s of t.values()){let r=e.filter(([,o])=>o.category===s);n.value.displayedGraph.template?r=r.filter(([o])=>!MO(n.value.editor,n.value.displayedGraph,o)):r=r.filter(([o])=>![Ma,Na].includes(o)),r.length>0&&i.push({name:s,nodeTypes:Object.fromEntries(r)})}return i.sort((s,r)=>s.name==="default"?-1:r.name==="default"||s.name>r.name?1:-1),i})}function OO(){const{graph:n}=Ni();return{transform:(t,i)=>{const s=t/n.value.scaling-n.value.panning.x,r=i/n.value.scaling-n.value.panning.y;return[s,r]}}}function aTt(){const{graph:n}=Ni();let e=[],t=-1,i={x:0,y:0};const s=Je(()=>n.value.panning),r=AO(s),o=Je(()=>({"transform-origin":"0 0",transform:`scale(${n.value.scaling}) translate(${n.value.panning.x}px, ${n.value.panning.y}px)`})),a=(h,f,y)=>{const b=[h/n.value.scaling-n.value.panning.x,f/n.value.scaling-n.value.panning.y],g=[h/y-n.value.panning.x,f/y-n.value.panning.y],E=[g[0]-b[0],g[1]-b[1]];n.value.panning.x+=E[0],n.value.panning.y+=E[1],n.value.scaling=y},c=h=>{h.preventDefault();let f=h.deltaY;h.deltaMode===1&&(f*=32);const y=n.value.scaling*(1-f/3e3);a(h.offsetX,h.offsetY,y)},d=()=>({ax:e[0].clientX,ay:e[0].clientY,bx:e[1].clientX,by:e[1].clientY});return{styles:o,...r,onPointerDown:h=>{if(e.push(h),r.onPointerDown(h),e.length===2){const{ax:f,ay:y,bx:b,by:g}=d();i={x:f+(b-f)/2,y:y+(g-y)/2}}},onPointerMove:h=>{for(let f=0;f<e.length;f++)if(h.pointerId==e[f].pointerId){e[f]=h;break}if(e.length==2){const{ax:f,ay:y,bx:b,by:g}=d(),E=f-b,v=y-g,S=Math.sqrt(E*E+v*v);if(t>0){const R=n.value.scaling*(1+(S-t)/500);a(i.x,i.y,R)}t=S}else r.onPointerMove(h)},onPointerUp:h=>{e=e.filter(f=>f.pointerId!==h.pointerId),t=-1,r.onPointerUp()},onMouseWheel:c}}var yi=(n=>(n[n.NONE=0]="NONE",n[n.ALLOWED=1]="ALLOWED",n[n.FORBIDDEN=2]="FORBIDDEN",n))(yi||{});const IO=Symbol();function lTt(){const{graph:n}=Ni(),e=ot(null),t=ot(null),i=a=>{e.value&&(e.value.mx=a.offsetX/n.value.scaling-n.value.panning.x,e.value.my=a.offsetY/n.value.scaling-n.value.panning.y)},s=()=>{if(t.value){if(e.value)return;const a=n.value.connections.find(c=>c.to===t.value);t.value.isInput&&a?(e.value={status:yi.NONE,from:a.from},n.value.removeConnection(a)):e.value={status:yi.NONE,from:t.value},e.value.mx=void 0,e.value.my=void 0}},r=()=>{if(e.value&&t.value){if(e.value.from===t.value)return;n.value.addConnection(e.value.from,e.value.to)}e.value=null},o=a=>{if(t.value=a??null,a&&e.value){e.value.to=a;const c=n.value.checkConnection(e.value.from,e.value.to);if(e.value.status=c.connectionAllowed?yi.ALLOWED:yi.FORBIDDEN,c.connectionAllowed){const d=c.connectionsInDanger.map(u=>u.id);n.value.connections.forEach(u=>{d.includes(u.id)&&(u.isInDanger=!0)})}}else!a&&e.value&&(e.value.to=void 0,e.value.status=yi.NONE,n.value.connections.forEach(c=>{c.isInDanger=!1}))};return na(IO,{temporaryConnection:e,hoveredOver:o}),{temporaryConnection:e,onMouseMove:i,onMouseDown:s,onMouseUp:r,hoveredOver:o}}function cTt(n){const e=ot(!1),t=ot(0),i=ot(0),s=NO(n),{transform:r}=OO(),o=Je(()=>{let u=[];const _={};for(const h of s.value){const f=Object.entries(h.nodeTypes).map(([y,b])=>({label:b.title,value:"addNode:"+y}));h.name==="default"?u=f:_[h.name]=f}const m=[...Object.entries(_).map(([h,f])=>({label:h,submenu:f}))];return m.length>0&&u.length>0&&m.push({isDivider:!0}),m.push(...u),m}),a=Je(()=>n.value.settings.contextMenu.additionalItems.length===0?o.value:[{label:"Add node",submenu:o.value},...n.value.settings.contextMenu.additionalItems.map(u=>"isDivider"in u||"submenu"in u?u:{label:u.label,value:"command:"+u.command,disabled:!n.value.commandHandler.canExecuteCommand(u.command)})]);function c(u){const _=u.target;if(!(_ instanceof Element)||RO(_))return;u.preventDefault(),e.value=!0;const m=_.getBoundingClientRect(),f=_.closest(".baklava-editor").getBoundingClientRect();t.value=m.x+u.offsetX-f.x,i.value=m.y+u.offsetY-f.y}function d(u){if(u.startsWith("addNode:")){const _=u.substring(8),m=n.value.editor.nodeTypes.get(_);if(!m)return;const h=Hn(new m.type);n.value.displayedGraph.addNode(h);const[f,y]=r(t.value,i.value);h.position.x=f,h.position.y=y}else if(u.startsWith("command:")){const _=u.substring(8);n.value.commandHandler.canExecuteCommand(_)&&n.value.commandHandler.executeCommand(_)}}return{show:e,x:t,y:i,items:a,open:c,onClick:d}}const Ld="START_SELECTION_BOX";function dTt(n){const{viewModel:e}=di(),{graph:t}=Ni(),i=Je(()=>t.value.nodes),s=ot(!1),r=ot(!1),o=ot([0,0]),a=ot([0,0]);Tn(e,()=>{e.value.commandHandler.hasCommand(Ld)||(e.value.commandHandler.registerCommand(Ld,{canExecute:()=>!0,execute(){s.value=!0}}),e.value.commandHandler.registerHotkey(["b"],Ld))},{immediate:!0});function c(g){return[g.clientX-n.value.getBoundingClientRect().left,g.clientY-n.value.getBoundingClientRect().top]}function d(g){return s.value?(r.value=!0,s.value=!1,o.value=c(g),a.value=c(g),document.addEventListener("pointermove",u),document.addEventListener("pointerup",_),!0):!1}function u(g){o.value=c(g)}function _(g){document.removeEventListener("pointermove",u),document.removeEventListener("pointerup",_),o.value=c(g),r.value=!1;const E=m();for(const v of E)e.value.displayedGraph.selectedNodes.push(v)}function m(){const g=h(),v=document.querySelector(".baklava-editor").getBoundingClientRect();return i.value.filter(S=>{const R=f(S,v);return y(g,R)})}function h(){return{left:Math.min(o.value[0],a.value[0]),top:Math.min(o.value[1],a.value[1]),right:Math.max(o.value[0],a.value[0]),bottom:Math.max(o.value[1],a.value[1])}}function f(g,E){const v=document.getElementById(g.id),S=v?v.getBoundingClientRect():{x:0,y:0,width:0,height:0},R=S.x-E.left,C=S.y-E.top;return{left:R,top:C,right:R+S.width,bottom:C+S.height}}function y(g,E){return g.left<E.right&&g.right>E.left&&g.top<E.bottom&&g.bottom>E.top}function b(){return{width:Math.abs(a.value[0]-o.value[0])+"px",height:Math.abs(a.value[1]-o.value[1])+"px",left:(a.value[0]>o.value[0]?o.value[0]:a.value[0])+"px",top:(a.value[1]>o.value[1]?o.value[1]:a.value[1])+"px"}}return Hn({startSelection:s,isSelecting:r,start:o,end:a,onPointerDown:d,getStyles:b})}const uTt=cn({setup(){const{viewModel:n}=di(),{graph:e}=Ni();return{styles:Je(()=>{const i=n.value.settings.background,s=e.value.panning.x*e.value.scaling,r=e.value.panning.y*e.value.scaling,o=e.value.scaling*i.gridSize,a=o/i.gridDivision,c=`${o}px ${o}px, ${o}px ${o}px`,d=e.value.scaling>i.subGridVisibleThreshold?`, ${a}px ${a}px, ${a}px ${a}px`:"";return{backgroundPosition:`left ${s}px top ${r}px`,backgroundSize:`${c} ${d}`}})}}}),sn=(n,e)=>{const t=n.__vccOpts||n;for(const[i,s]of e)t[i]=s;return t};function pTt(n,e,t,i,s,r){return T(),w("div",{class:"background",style:Wt(n.styles)},null,4)}const fTt=sn(uTt,[["render",pTt]]);function _Tt(n){return E2()?(hI(n),!0):!1}function Ay(n){return typeof n=="function"?n():yt(n)}const kO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mTt=Object.prototype.toString,hTt=n=>mTt.call(n)==="[object Object]",Pd=()=>{},gTt=bTt();function bTt(){var n,e;return kO&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function yTt(n,e,t=!1){return e.reduce((i,s)=>(s in n&&(!t||n[s]!==void 0)&&(i[s]=n[s]),i),{})}function ETt(n,e={}){if(!pn(n))return YI(n);const t=Array.isArray(n.value)?Array.from({length:n.value.length}):{};for(const i in n.value)t[i]=qI(()=>({get(){return n.value[i]},set(s){var r;if((r=Ay(e.replaceRef))!=null?r:!0)if(Array.isArray(n.value)){const a=[...n.value];a[i]=s,n.value=a}else{const a={...n.value,[i]:s};Object.setPrototypeOf(a,Object.getPrototypeOf(n.value)),n.value=a}else n.value[i]=s}}));return t}function bl(n){var e;const t=Ay(n);return(e=t==null?void 0:t.$el)!=null?e:t}const My=kO?window:void 0;function Ll(...n){let e,t,i,s;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,i,s]=n,e=My):[e,t,i,s]=n,!e)return Pd;Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,_,m,h)=>(u.addEventListener(_,m,h),()=>u.removeEventListener(_,m,h)),c=Tn(()=>[bl(e),Ay(s)],([u,_])=>{if(o(),!u)return;const m=hTt(_)?{..._}:_;r.push(...t.flatMap(h=>i.map(f=>a(u,h,f,m))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return _Tt(d),d}let t2=!1;function DO(n,e,t={}){const{window:i=My,ignore:s=[],capture:r=!0,detectIframe:o=!1}=t;if(!i)return Pd;gTt&&!t2&&(t2=!0,Array.from(i.document.body.children).forEach(m=>m.addEventListener("click",Pd)),i.document.documentElement.addEventListener("click",Pd));let a=!0;const c=m=>s.some(h=>{if(typeof h=="string")return Array.from(i.document.querySelectorAll(h)).some(f=>f===m.target||m.composedPath().includes(f));{const f=bl(h);return f&&(m.target===f||m.composedPath().includes(f))}}),u=[Ll(i,"click",m=>{const h=bl(n);if(!(!h||h===m.target||m.composedPath().includes(h))){if(m.detail===0&&(a=!c(m)),!a){a=!0;return}e(m)}},{passive:!0,capture:r}),Ll(i,"pointerdown",m=>{const h=bl(n);a=!c(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),o&&Ll(i,"blur",m=>{setTimeout(()=>{var h;const f=bl(n);((h=i.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(f!=null&&f.contains(i.document.activeElement))&&e(m)},0)})].filter(Boolean);return()=>u.forEach(m=>m())}const LO={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},vTt=Object.keys(LO);function STt(n={}){const{target:e=My}=n,t=ot(!1),i=ot(n.initialValue||{});Object.assign(i.value,LO,i.value);const s=r=>{t.value=!0,!(n.pointerTypes&&!n.pointerTypes.includes(r.pointerType))&&(i.value=yTt(r,vTt,!1))};if(e){const r={passive:!0};Ll(e,["pointerdown","pointermove","pointerup"],s,r),Ll(e,"pointerleave",()=>t.value=!1,r)}return{...ETt(i),isInside:t}}const TTt=["onMouseenter","onMouseleave","onClick"],xTt={class:"flex-fill"},CTt={key:0,class:"__submenu-icon",style:{"line-height":"1em"}},wTt=l("svg",{width:"13",height:"13",viewBox:"-60 120 250 250"},[l("path",{d:"M160.875 279.5625 L70.875 369.5625 L70.875 189.5625 L160.875 279.5625 Z",stroke:"none",fill:"white"})],-1),RTt=[wTt],Ny=cn({__name:"ContextMenu",props:{modelValue:{type:Boolean},items:{},x:{default:0},y:{default:0},isNested:{type:Boolean,default:!1},isFlipped:{default:()=>({x:!1,y:!1})},flippable:{type:Boolean,default:!1}},emits:["update:modelValue","click"],setup(n,{emit:e}){const t=n,i=e;let s=null;const r=ot(null),o=ot(-1),a=ot(0),c=ot({x:!1,y:!1}),d=Je(()=>t.flippable&&(c.value.x||t.isFlipped.x)),u=Je(()=>t.flippable&&(c.value.y||t.isFlipped.y)),_=Je(()=>{const E={};return t.isNested||(E.top=(u.value?t.y-a.value:t.y)+"px",E.left=t.x+"px"),E}),m=Je(()=>({"--flipped-x":d.value,"--flipped-y":u.value,"--nested":t.isNested})),h=Je(()=>t.items.map(E=>({...E,hover:!1})));Tn([()=>t.y,()=>t.items],()=>{var E,v,S,R;a.value=t.items.length*30;const C=((v=(E=r.value)==null?void 0:E.parentElement)==null?void 0:v.offsetWidth)??0,A=((R=(S=r.value)==null?void 0:S.parentElement)==null?void 0:R.offsetHeight)??0;c.value.x=!t.isNested&&t.x>C*.75,c.value.y=!t.isNested&&t.y+a.value>A-20}),DO(r,()=>{t.modelValue&&i("update:modelValue",!1)});const f=E=>{!E.submenu&&E.value&&(i("click",E.value),i("update:modelValue",!1))},y=E=>{i("click",E),o.value=-1,t.isNested||i("update:modelValue",!1)},b=(E,v)=>{t.items[v].submenu&&(o.value=v,s!==null&&(clearTimeout(s),s=null))},g=(E,v)=>{t.items[v].submenu&&(s=window.setTimeout(()=>{o.value=-1,s=null},200))};return(E,v)=>{const S=nt("ContextMenu",!0);return T(),at(Os,{name:"slide-fade"},{default:Ie(()=>[k(l("div",{ref_key:"el",ref:r,class:Ue(["baklava-context-menu",m.value]),style:Wt(_.value)},[(T(!0),w(Be,null,Xe(h.value,(R,C)=>(T(),w(Be,null,[R.isDivider?(T(),w("div",{key:`d-${C}`,class:"divider"})):(T(),w("div",{key:`i-${C}`,class:Ue(["item",{submenu:!!R.submenu,"--disabled":!!R.disabled}]),onMouseenter:A=>b(A,C),onMouseleave:A=>g(A,C),onClick:W(A=>f(R),["stop","prevent"])},[l("div",xTt,$(R.label),1),R.submenu?(T(),w("div",CTt,RTt)):B("",!0),R.submenu?(T(),at(S,{key:1,"model-value":o.value===C,items:R.submenu,"is-nested":!0,"is-flipped":{x:d.value,y:u.value},flippable:E.flippable,onClick:y},null,8,["model-value","items","is-flipped","flippable"])):B("",!0)],42,TTt))],64))),256))],6),[[_t,E.modelValue]])]),_:1})}}}),ATt={},MTt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},NTt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),OTt=l("circle",{cx:"12",cy:"12",r:"1"},null,-1),ITt=l("circle",{cx:"12",cy:"19",r:"1"},null,-1),kTt=l("circle",{cx:"12",cy:"5",r:"1"},null,-1),DTt=[NTt,OTt,ITt,kTt];function LTt(n,e){return T(),w("svg",MTt,DTt)}const PO=sn(ATt,[["render",LTt]]),PTt=["id"],FTt={key:0,class:"__tooltip"},UTt={key:2,class:"align-middle"},n2=cn({__name:"NodeInterface",props:{node:{},intf:{}},setup(n){const e=(b,g=100)=>{const E=typeof(b==null?void 0:b.toString)=="function"?String(b):"";return E.length>g?E.slice(0,g)+"...":E},t=n,{viewModel:i}=di(),{hoveredOver:s,temporaryConnection:r}=ri(IO),o=ot(null),a=Je(()=>t.intf.connectionCount>0),c=ot(!1),d=Je(()=>i.value.settings.displayValueOnHover&&c.value),u=Je(()=>({"--input":t.intf.isInput,"--output":!t.intf.isInput,"--connected":a.value})),_=Je(()=>t.intf.component&&(!t.intf.isInput||!t.intf.port||t.intf.connectionCount===0)),m=()=>{c.value=!0,s(t.intf)},h=()=>{c.value=!1,s(void 0)},f=()=>{o.value&&i.value.hooks.renderInterface.execute({intf:t.intf,el:o.value})},y=()=>{const b=i.value.displayedGraph.sidebar;b.nodeId=t.node.id,b.optionName=t.intf.name,b.visible=!0};return cs(f),nc(f),(b,g)=>{var E;return T(),w("div",{id:b.intf.id,ref_key:"el",ref:o,class:Ue(["baklava-node-interface",u.value])},[b.intf.port?(T(),w("div",{key:0,class:Ue(["__port",{"--selected":((E=yt(r))==null?void 0:E.from)===b.intf}]),onPointerover:m,onPointerout:h},[on(b.$slots,"portTooltip",{showTooltip:d.value},()=>[d.value===!0?(T(),w("span",FTt,$(e(b.intf.value)),1)):B("",!0)])],34)):B("",!0),_.value?(T(),at(Pu(b.intf.component),{key:1,modelValue:b.intf.value,"onUpdate:modelValue":g[0]||(g[0]=v=>b.intf.value=v),node:b.node,intf:b.intf,onOpenSidebar:y},null,40,["modelValue","node","intf"])):(T(),w("span",UTt,$(b.intf.name),1))],10,PTt)}}}),BTt=["id","data-node-type"],GTt={class:"__title-label"},VTt={class:"__menu"},zTt={class:"__outputs"},HTt={class:"__inputs"},qTt=cn({__name:"Node",props:{node:{},selected:{type:Boolean,default:!1},dragging:{type:Boolean}},emits:["select","start-drag"],setup(n,{emit:e}){const t=n,i=e,{viewModel:s}=di(),{graph:r,switchGraph:o}=Ni(),a=ot(null),c=ot(!1),d=ot(""),u=ot(null),_=ot(!1),m=ot(!1),h=Je(()=>{const V=[{value:"rename",label:"Rename"},{value:"delete",label:"Delete"}];return t.node.type.startsWith(Jl)&&V.push({value:"editSubgraph",label:"Edit Subgraph"}),V}),f=Je(()=>({"--selected":t.selected,"--dragging":t.dragging,"--two-column":!!t.node.twoColumn})),y=Je(()=>({"--reverse-y":t.node.reverseY??s.value.settings.nodes.reverseY})),b=Je(()=>{var V,ee;return{top:`${((V=t.node.position)==null?void 0:V.y)??0}px`,left:`${((ee=t.node.position)==null?void 0:ee.x)??0}px`,"--width":`${t.node.width??s.value.settings.nodes.defaultWidth}px`}}),g=Je(()=>Object.values(t.node.inputs).filter(V=>!V.hidden)),E=Je(()=>Object.values(t.node.outputs).filter(V=>!V.hidden)),v=()=>{i("select")},S=V=>{t.selected||v(),i("start-drag",V)},R=()=>{m.value=!0},C=async V=>{var ee;switch(V){case"delete":r.value.removeNode(t.node);break;case"rename":d.value=t.node.title,c.value=!0,await Le(),(ee=u.value)==null||ee.focus();break;case"editSubgraph":o(t.node.template);break}},A=()=>{t.node.title=d.value,c.value=!1},I=()=>{a.value&&s.value.hooks.renderNode.execute({node:t.node,el:a.value})},x=V=>{_.value=!0,V.preventDefault()},M=V=>{if(!_.value)return;const ee=t.node.width+V.movementX/r.value.scaling,O=s.value.settings.nodes.minWidth,H=s.value.settings.nodes.maxWidth;t.node.width=Math.max(O,Math.min(H,ee))},G=()=>{_.value=!1};return cs(()=>{I(),window.addEventListener("mousemove",M),window.addEventListener("mouseup",G)}),nc(I),La(()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",G)}),(V,ee)=>(T(),w("div",{id:V.node.id,ref_key:"el",ref:a,class:Ue(["baklava-node",f.value]),style:Wt(b.value),"data-node-type":V.node.type,onPointerdown:v},[yt(s).settings.nodes.resizable?(T(),w("div",{key:0,class:"__resize-handle",onMousedown:x},null,32)):B("",!0),on(V.$slots,"title",{},()=>[l("div",{class:"__title",onPointerdown:W(S,["self","stop"])},[c.value?k((T(),w("input",{key:1,ref_key:"renameInputEl",ref:u,"onUpdate:modelValue":ee[1]||(ee[1]=O=>d.value=O),type:"text",class:"baklava-input",placeholder:"Node Name",onBlur:A,onKeydown:wi(A,["enter"])},null,544)),[[ue,d.value]]):(T(),w(Be,{key:0},[l("div",GTt,$(V.node.title),1),l("div",VTt,[z(PO,{class:"--clickable",onClick:R}),z(yt(Ny),{modelValue:m.value,"onUpdate:modelValue":ee[0]||(ee[0]=O=>m.value=O),x:0,y:0,items:h.value,onClick:C},null,8,["modelValue","items"])])],64))],32)]),on(V.$slots,"content",{},()=>[l("div",{class:Ue(["__content",y.value]),onKeydown:ee[2]||(ee[2]=wi(W(()=>{},["stop"]),["delete"]))},[l("div",zTt,[(T(!0),w(Be,null,Xe(E.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"output",node:V.node,intf:O},()=>[z(n2,{node:V.node,intf:O},null,8,["node","intf"])])),128))]),l("div",HTt,[(T(!0),w(Be,null,Xe(g.value,O=>on(V.$slots,"nodeInterface",{key:O.id,type:"input",node:V.node,intf:O},()=>[z(n2,{node:V.node,intf:O},null,8,["node","intf"])])),128))])],34)])],46,BTt))}}),YTt=cn({props:{x1:{type:Number,required:!0},y1:{type:Number,required:!0},x2:{type:Number,required:!0},y2:{type:Number,required:!0},state:{type:Number,default:yi.NONE},isTemporary:{type:Boolean,default:!1}},setup(n){const{viewModel:e}=di(),{graph:t}=Ni(),i=(o,a)=>{const c=(o+t.value.panning.x)*t.value.scaling,d=(a+t.value.panning.y)*t.value.scaling;return[c,d]},s=Je(()=>{const[o,a]=i(n.x1,n.y1),[c,d]=i(n.x2,n.y2);if(e.value.settings.useStraightConnections)return`M ${o} ${a} L ${c} ${d}`;{const u=.3*Math.abs(o-c);return`M ${o} ${a} C ${o+u} ${a}, ${c-u} ${d}, ${c} ${d}`}}),r=Je(()=>({"--temporary":n.isTemporary,"--allowed":n.state===yi.ALLOWED,"--forbidden":n.state===yi.FORBIDDEN}));return{d:s,classes:r}}}),$Tt=["d"];function WTt(n,e,t,i,s,r){return T(),w("path",{class:Ue(["baklava-connection",n.classes]),d:n.d},null,10,$Tt)}const FO=sn(YTt,[["render",WTt]]);function KTt(n){return document.getElementById(n.id)}function Ia(n){const e=document.getElementById(n.id),t=e==null?void 0:e.getElementsByClassName("__port");return{node:(e==null?void 0:e.closest(".baklava-node"))??null,interface:e,port:t&&t.length>0?t[0]:null}}const jTt=cn({components:{"connection-view":FO},props:{connection:{type:Object,required:!0}},setup(n){const{graph:e}=Ni();let t;const i=ot({x1:0,y1:0,x2:0,y2:0}),s=Je(()=>n.connection.isInDanger?yi.FORBIDDEN:yi.NONE),r=Je(()=>{var d;return(d=e.value.findNodeById(n.connection.from.nodeId))==null?void 0:d.position}),o=Je(()=>{var d;return(d=e.value.findNodeById(n.connection.to.nodeId))==null?void 0:d.position}),a=d=>d.node&&d.interface&&d.port?[d.node.offsetLeft+d.interface.offsetLeft+d.port.offsetLeft+d.port.clientWidth/2,d.node.offsetTop+d.interface.offsetTop+d.port.offsetTop+d.port.clientHeight/2]:[0,0],c=()=>{const d=Ia(n.connection.from),u=Ia(n.connection.to);d.node&&u.node&&(t||(t=new ResizeObserver(()=>{c()}),t.observe(d.node),t.observe(u.node)));const[_,m]=a(d),[h,f]=a(u);i.value={x1:_,y1:m,x2:h,y2:f}};return cs(async()=>{await Le(),c()}),La(()=>{t&&t.disconnect()}),Tn([r,o],()=>c(),{deep:!0}),{d:i,state:s}}});function QTt(n,e,t,i,s,r){const o=nt("connection-view");return T(),at(o,{x1:n.d.x1,y1:n.d.y1,x2:n.d.x2,y2:n.d.y2,state:n.state},null,8,["x1","y1","x2","y2","state"])}const XTt=sn(jTt,[["render",QTt]]);function Su(n){return n.node&&n.interface&&n.port?[n.node.offsetLeft+n.interface.offsetLeft+n.port.offsetLeft+n.port.clientWidth/2,n.node.offsetTop+n.interface.offsetTop+n.port.offsetTop+n.port.clientHeight/2]:[0,0]}const ZTt=cn({components:{"connection-view":FO},props:{connection:{type:Object,required:!0}},setup(n){const e=Je(()=>n.connection?n.connection.status:yi.NONE);return{d:Je(()=>{if(!n.connection)return{input:[0,0],output:[0,0]};const i=Su(Ia(n.connection.from)),s=n.connection.to?Su(Ia(n.connection.to)):[n.connection.mx||i[0],n.connection.my||i[1]];return n.connection.from.isInput?{input:s,output:i}:{input:i,output:s}}),status:e}}});function JTt(n,e,t,i,s,r){const o=nt("connection-view");return T(),at(o,{x1:n.d.input[0],y1:n.d.input[1],x2:n.d.output[0],y2:n.d.output[1],state:n.status,"is-temporary":""},null,8,["x1","y1","x2","y2","state"])}const ext=sn(ZTt,[["render",JTt]]),txt=cn({setup(){const{viewModel:n}=di(),{graph:e}=Ni(),t=ot(null),i=Bd(n.value.settings.sidebar,"width"),s=Je(()=>n.value.settings.sidebar.resizable),r=Je(()=>{const _=e.value.sidebar.nodeId;return e.value.nodes.find(m=>m.id===_)}),o=Je(()=>({width:`${i.value}px`})),a=Je(()=>r.value?[...Object.values(r.value.inputs),...Object.values(r.value.outputs)].filter(m=>m.displayInSidebar&&m.component):[]),c=()=>{e.value.sidebar.visible=!1},d=()=>{window.addEventListener("mousemove",u),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",u)},{once:!0})},u=_=>{var m,h;const f=((h=(m=t.value)==null?void 0:m.parentElement)==null?void 0:h.getBoundingClientRect().width)??500;let y=i.value-_.movementX;y<300?y=300:y>.9*f&&(y=.9*f),i.value=y};return{el:t,graph:e,resizable:s,node:r,styles:o,displayedInterfaces:a,startResize:d,close:c}}}),nxt={class:"__header"},ixt={class:"__node-name"};function sxt(n,e,t,i,s,r){return T(),w("div",{ref:"el",class:Ue(["baklava-sidebar",{"--open":n.graph.sidebar.visible}]),style:Wt(n.styles)},[n.resizable?(T(),w("div",{key:0,class:"__resizer",onMousedown:e[0]||(e[0]=(...o)=>n.startResize&&n.startResize(...o))},null,32)):B("",!0),l("div",nxt,[l("button",{tabindex:"-1",class:"__close",onClick:e[1]||(e[1]=(...o)=>n.close&&n.close(...o))},"×"),l("div",ixt,[l("b",null,$(n.node?n.node.title:""),1)])]),(T(!0),w(Be,null,Xe(n.displayedInterfaces,o=>(T(),w("div",{key:o.id,class:"__interface"},[(T(),at(Pu(o.component),{modelValue:o.value,"onUpdate:modelValue":a=>o.value=a,node:n.node,intf:o},null,8,["modelValue","onUpdate:modelValue","node","intf"]))]))),128))],6)}const rxt=sn(txt,[["render",sxt]]),oxt=cn({__name:"Minimap",setup(n){const{viewModel:e}=di(),{graph:t}=Ni(),i=ot(null),s=ot(!1);let r,o=!1,a={x1:0,y1:0,x2:0,y2:0},c;const d=()=>{var C,A;if(!r)return;r.canvas.width=i.value.offsetWidth,r.canvas.height=i.value.offsetHeight;const I=new Map,x=new Map;for(const O of t.value.nodes){const H=KTt(O),q=(H==null?void 0:H.offsetWidth)??0,L=(H==null?void 0:H.offsetHeight)??0,Y=((C=O.position)==null?void 0:C.x)??0,ne=((A=O.position)==null?void 0:A.y)??0;I.set(O,{x1:Y,y1:ne,x2:Y+q,y2:ne+L}),x.set(O,H)}const M={x1:Number.MAX_SAFE_INTEGER,y1:Number.MAX_SAFE_INTEGER,x2:Number.MIN_SAFE_INTEGER,y2:Number.MIN_SAFE_INTEGER};for(const O of I.values())O.x1<M.x1&&(M.x1=O.x1),O.y1<M.y1&&(M.y1=O.y1),O.x2>M.x2&&(M.x2=O.x2),O.y2>M.y2&&(M.y2=O.y2);const G=50;M.x1-=G,M.y1-=G,M.x2+=G,M.y2+=G,a=M;const V=r.canvas.width/r.canvas.height,ee=(a.x2-a.x1)/(a.y2-a.y1);if(V>ee){const O=(V-ee)*(a.y2-a.y1)*.5;a.x1-=O,a.x2+=O}else{const O=a.x2-a.x1,H=a.y2-a.y1,q=(O-V*H)/V*.5;a.y1-=q,a.y2+=q}r.clearRect(0,0,r.canvas.width,r.canvas.height),r.strokeStyle="white";for(const O of t.value.connections){const[H,q]=Su(Ia(O.from)),[L,Y]=Su(Ia(O.to)),[ne,oe]=u(H,q),[ye,xe]=u(L,Y);if(r.beginPath(),r.moveTo(ne,oe),e.value.settings.useStraightConnections)r.lineTo(ye,xe);else{const le=.3*Math.abs(ne-ye);r.bezierCurveTo(ne+le,oe,ye-le,xe,ye,xe)}r.stroke()}r.strokeStyle="lightgray";for(const[O,H]of I.entries()){const[q,L]=u(H.x1,H.y1),[Y,ne]=u(H.x2,H.y2);r.fillStyle=m(x.get(O)),r.beginPath(),r.rect(q,L,Y-q,ne-L),r.fill(),r.stroke()}if(s.value){const O=f(),[H,q]=u(O.x1,O.y1),[L,Y]=u(O.x2,O.y2);r.fillStyle="rgba(255, 255, 255, 0.2)",r.fillRect(H,q,L-H,Y-q)}},u=(C,A)=>[(C-a.x1)/(a.x2-a.x1)*r.canvas.width,(A-a.y1)/(a.y2-a.y1)*r.canvas.height],_=(C,A)=>[C*(a.x2-a.x1)/r.canvas.width+a.x1,A*(a.y2-a.y1)/r.canvas.height+a.y1],m=C=>{if(C){const A=C.querySelector(".__content");if(A){const x=h(A);if(x)return x}const I=h(C);if(I)return I}return"gray"},h=C=>{const A=getComputedStyle(C).backgroundColor;if(A&&A!=="rgba(0, 0, 0, 0)")return A},f=()=>{const C=i.value.parentElement.offsetWidth,A=i.value.parentElement.offsetHeight,I=C/t.value.scaling-t.value.panning.x,x=A/t.value.scaling-t.value.panning.y;return{x1:-t.value.panning.x,y1:-t.value.panning.y,x2:I,y2:x}},y=C=>{C.button===0&&(o=!0,b(C))},b=C=>{if(o){const[A,I]=_(C.offsetX,C.offsetY),x=f(),M=(x.x2-x.x1)/2,G=(x.y2-x.y1)/2;t.value.panning.x=-(A-M),t.value.panning.y=-(I-G)}},g=()=>{o=!1},E=()=>{s.value=!0},v=()=>{s.value=!1,g()};Tn([s,t.value.panning,()=>t.value.scaling,()=>t.value.connections.length],()=>{d()});const S=Je(()=>t.value.nodes.map(C=>C.position)),R=Je(()=>t.value.nodes.map(C=>C.width));return Tn([S,R],()=>{d()},{deep:!0}),cs(()=>{r=i.value.getContext("2d"),r.imageSmoothingQuality="high",d(),c=setInterval(d,500)}),La(()=>{clearInterval(c)}),(C,A)=>(T(),w("canvas",{ref_key:"canvas",ref:i,class:"baklava-minimap",onMouseenter:E,onMouseleave:v,onMousedown:W(y,["self"]),onMousemove:W(b,["self"]),onMouseup:g,onContextmenu:A[0]||(A[0]=W(()=>{},["stop","prevent"]))},null,544))}}),axt=cn({components:{ContextMenu:Ny,VerticalDots:PO},props:{type:{type:String,required:!0},title:{type:String,required:!0}},setup(n){const{viewModel:e}=di(),{switchGraph:t}=Ni(),i=ot(!1),s=Je(()=>n.type.startsWith(Jl));return{showContextMenu:i,hasContextMenu:s,contextMenuItems:[{label:"Edit Subgraph",value:"editSubgraph"},{label:"Delete Subgraph",value:"deleteSubgraph"}],openContextMenu:()=>{i.value=!0},onContextMenuClick:c=>{const d=n.type.substring(Jl.length),u=e.value.editor.graphTemplates.find(_=>_.id===d);if(u)switch(c){case"editSubgraph":t(u);break;case"deleteSubgraph":e.value.editor.removeGraphTemplate(u);break}}}}}),lxt=["data-node-type"],cxt={class:"__title"},dxt={class:"__title-label"},uxt={key:0,class:"__menu"};function pxt(n,e,t,i,s,r){const o=nt("vertical-dots"),a=nt("context-menu");return T(),w("div",{class:"baklava-node --palette","data-node-type":n.type},[l("div",cxt,[l("div",dxt,$(n.title),1),n.hasContextMenu?(T(),w("div",uxt,[z(o,{class:"--clickable",onPointerdown:e[0]||(e[0]=W(()=>{},["stop","prevent"])),onClick:W(n.openContextMenu,["stop","prevent"])},null,8,["onClick"]),z(a,{modelValue:n.showContextMenu,"onUpdate:modelValue":e[1]||(e[1]=c=>n.showContextMenu=c),x:-100,y:0,items:n.contextMenuItems,onClick:n.onContextMenuClick,onPointerdown:e[2]||(e[2]=W(()=>{},["stop","prevent"]))},null,8,["modelValue","items","onClick"])])):B("",!0)])],8,lxt)}const i2=sn(axt,[["render",pxt]]),fxt={key:0},_xt=cn({__name:"NodePalette",setup(n){const{viewModel:e}=di(),{x:t,y:i}=STt(),{transform:s}=OO(),r=NO(e),o=ri("editorEl"),a=ot(null),c=Je(()=>{if(!a.value||!(o!=null&&o.value))return{};const{left:u,top:_}=o.value.getBoundingClientRect();return{top:`${i.value-_}px`,left:`${t.value-u}px`}}),d=(u,_)=>{a.value={type:u,nodeInformation:_};const m=()=>{const h=Hn(new _.type);e.value.displayedGraph.addNode(h);const f=o.value.getBoundingClientRect(),[y,b]=s(t.value-f.left,i.value-f.top);h.position.x=y,h.position.y=b,a.value=null,document.removeEventListener("pointerup",m)};document.addEventListener("pointerup",m)};return(u,_)=>(T(),w(Be,null,[l("div",{class:"baklava-node-palette",onContextmenu:_[0]||(_[0]=W(()=>{},["stop","prevent"]))},[(T(!0),w(Be,null,Xe(yt(r),m=>(T(),w("section",{key:m.name},[m.name!=="default"?(T(),w("h1",fxt,$(m.name),1)):B("",!0),(T(!0),w(Be,null,Xe(m.nodeTypes,(h,f)=>(T(),at(i2,{key:f,type:f,title:h.title,onPointerdown:y=>d(f,h)},null,8,["type","title","onPointerdown"]))),128))]))),128))],32),z(Os,{name:"fade"},{default:Ie(()=>[a.value?(T(),w("div",{key:0,class:"baklava-dragged-node",style:Wt(c.value)},[z(i2,{type:a.value.type,title:a.value.nodeInformation.title},null,8,["type","title"])],4)):B("",!0)]),_:1})],64))}});let bd;const mxt=new Uint8Array(16);function hxt(){if(!bd&&(bd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bd(mxt)}const vn=[];for(let n=0;n<256;++n)vn.push((n+256).toString(16).slice(1));function gxt(n,e=0){return vn[n[e+0]]+vn[n[e+1]]+vn[n[e+2]]+vn[n[e+3]]+"-"+vn[n[e+4]]+vn[n[e+5]]+"-"+vn[n[e+6]]+vn[n[e+7]]+"-"+vn[n[e+8]]+vn[n[e+9]]+"-"+vn[n[e+10]]+vn[n[e+11]]+vn[n[e+12]]+vn[n[e+13]]+vn[n[e+14]]+vn[n[e+15]]}const bxt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),s2={randomUUID:bxt};function Tu(n,e,t){if(s2.randomUUID&&!e&&!n)return s2.randomUUID();n=n||{};const i=n.random||(n.rng||hxt)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,gxt(i)}const ec="SAVE_SUBGRAPH";function yxt(n,e){const t=()=>{const i=n.value;if(!i.template)throw new Error("Graph template property not set");i.template.update(i.save()),i.template.panning=i.panning,i.template.scaling=i.scaling};e.registerCommand(ec,{canExecute:()=>{var i;return n.value!==((i=n.value.editor)==null?void 0:i.graph)},execute:t})}const Ext={},vxt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Sxt=l("polyline",{points:"6 9 12 15 18 9"},null,-1),Txt=[Sxt];function xxt(n,e){return T(),w("svg",vxt,Txt)}const Cxt=sn(Ext,[["render",xxt]]),wxt=cn({components:{"i-arrow":Cxt},props:{intf:{type:Object,required:!0}},setup(n){const e=ot(null),t=ot(!1),i=Je(()=>n.intf.items.find(o=>typeof o=="string"?o===n.intf.value:o.value===n.intf.value)),s=Je(()=>i.value?typeof i.value=="string"?i.value:i.value.text:""),r=o=>{n.intf.value=typeof o=="string"?o:o.value};return DO(e,()=>{t.value=!1}),{el:e,open:t,selectedItem:i,selectedText:s,setSelected:r}}}),Rxt=["title"],Axt={class:"__selected"},Mxt={class:"__text"},Nxt={class:"__icon"},Oxt={class:"__dropdown"},Ixt={class:"item --header"},kxt=["onClick"];function Dxt(n,e,t,i,s,r){const o=nt("i-arrow");return T(),w("div",{ref:"el",class:Ue(["baklava-select",{"--open":n.open}]),title:n.intf.name,onClick:e[0]||(e[0]=a=>n.open=!n.open)},[l("div",Axt,[l("div",Mxt,$(n.selectedText),1),l("div",Nxt,[z(o)])]),z(Os,{name:"slide-fade"},{default:Ie(()=>[k(l("div",Oxt,[l("div",Ixt,$(n.intf.name),1),(T(!0),w(Be,null,Xe(n.intf.items,(a,c)=>(T(),w("div",{key:c,class:Ue(["item",{"--active":a===n.selectedItem}]),onClick:d=>n.setSelected(a)},$(typeof a=="string"?a:a.text),11,kxt))),128))],512),[[_t,n.open]])]),_:1})],10,Rxt)}const Lxt=sn(wxt,[["render",Dxt]]);class Pxt extends en{constructor(e,t,i){super(e,t),this.component=Iu(Lxt),this.items=i}}const Fxt=cn({props:{intf:{type:Object,required:!0}}});function Uxt(n,e,t,i,s,r){return T(),w("div",null,$(n.intf.value),1)}const Bxt=sn(Fxt,[["render",Uxt]]);class Gxt extends en{constructor(e,t){super(e,t),this.component=Iu(Bxt),this.setPort(!1)}}const Vxt=cn({props:{intf:{type:Object,required:!0},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(n,{emit:e}){return{v:Je({get:()=>n.modelValue,set:i=>{e("update:modelValue",i)}})}}}),zxt=["placeholder","title"];function Hxt(n,e,t,i,s,r){return T(),w("div",null,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>n.v=o),type:"text",class:"baklava-input",placeholder:n.intf.name,title:n.intf.name},null,8,zxt),[[ue,n.v]])])}const qxt=sn(Vxt,[["render",Hxt]]);class mc extends en{constructor(){super(...arguments),this.component=Iu(qxt)}}class UO extends wy{constructor(){super(...arguments),this._title="Subgraph Input",this.inputs={name:new mc("Name","Input").setPort(!1)},this.outputs={placeholder:new en("Connection",void 0)}}}class BO extends Ry{constructor(){super(...arguments),this._title="Subgraph Output",this.inputs={name:new mc("Name","Output").setPort(!1),placeholder:new en("Connection",void 0)},this.outputs={output:new en("Output",void 0).setHidden(!0)}}}const GO="CREATE_SUBGRAPH",r2=[Ma,Na];function Yxt(n,e,t){const i=()=>n.value.selectedNodes.filter(r=>!r2.includes(r.type)).length>0,s=()=>{const{viewModel:r}=di(),o=n.value,a=n.value.editor;if(o.selectedNodes.length===0)return;const c=o.selectedNodes.filter(x=>!r2.includes(x.type)),d=c.flatMap(x=>Object.values(x.inputs)),u=c.flatMap(x=>Object.values(x.outputs)),_=o.connections.filter(x=>!u.includes(x.from)&&d.includes(x.to)),m=o.connections.filter(x=>u.includes(x.from)&&!d.includes(x.to)),h=o.connections.filter(x=>u.includes(x.from)&&d.includes(x.to)),f=c.map(x=>x.save()),y=h.map(x=>({id:x.id,from:x.from.id,to:x.to.id})),b=new Map,{xLeft:g,xRight:E,yTop:v}=$xt(c);for(const[x,M]of _.entries()){const G=new UO;G.inputs.name.value=M.to.name,f.push({...G.save(),position:{x:E-r.value.settings.nodes.defaultWidth-100,y:v+x*200}}),y.push({id:Tu(),from:G.outputs.placeholder.id,to:M.to.id}),b.set(M.to.id,G.graphInterfaceId)}for(const[x,M]of m.entries()){const G=new BO;G.inputs.name.value=M.from.name,f.push({...G.save(),position:{x:g+100,y:v+x*200}}),y.push({id:Tu(),from:M.from.id,to:G.inputs.placeholder.id}),b.set(M.from.id,G.graphInterfaceId)}const S=Hn(new yp({connections:y,nodes:f,inputs:[],outputs:[]},a));a.addGraphTemplate(S);const R=a.nodeTypes.get(Oa(S));if(!R)throw new Error("Unable to create subgraph: Could not find corresponding graph node type");o.activeTransactions++;const C=Hn(new R.type);o.addNode(C);const A=Math.round(c.map(x=>x.position.x).reduce((x,M)=>x+M,0)/c.length),I=Math.round(c.map(x=>x.position.y).reduce((x,M)=>x+M,0)/c.length);C.position.x=A,C.position.y=I,_.forEach(x=>{o.removeConnection(x),o.addConnection(x.from,C.inputs[b.get(x.to.id)])}),m.forEach(x=>{o.removeConnection(x),o.addConnection(C.outputs[b.get(x.from.id)],x.to)}),c.forEach(x=>o.removeNode(x)),o.activeTransactions--,e.canExecuteCommand(ec)&&e.executeCommand(ec),t(S),n.value.panning={...o.panning},n.value.scaling=o.scaling};e.registerCommand(GO,{canExecute:i,execute:s})}function $xt(n){const e=n.reduce((s,r)=>{const o=r.position.x;return o<s?o:s},1/0),t=n.reduce((s,r)=>{const o=r.position.y;return o<s?o:s},1/0);return{xLeft:n.reduce((s,r)=>{const o=r.position.x+r.width;return o>s?o:s},-1/0),xRight:e,yTop:t}}class o2{constructor(e,t){this.type=e,e==="addNode"?this.nodeId=t:this.nodeState=t}undo(e){this.type==="addNode"?this.removeNode(e):this.addNode(e)}redo(e){this.type==="addNode"&&this.nodeState?this.addNode(e):this.type==="removeNode"&&this.nodeId&&this.removeNode(e)}addNode(e){const t=e.editor.nodeTypes.get(this.nodeState.type);if(!t)return;const i=new t.type;e.addNode(i),i.load(this.nodeState),this.nodeId=i.id}removeNode(e){const t=e.nodes.find(i=>i.id===this.nodeId);t&&(this.nodeState=t.save(),e.removeNode(t))}}class a2{constructor(e,t){if(this.type=e,e==="addConnection")this.connectionId=t;else{const i=t;this.connectionState={id:i.id,from:i.from.id,to:i.to.id}}}undo(e){this.type==="addConnection"?this.removeConnection(e):this.addConnection(e)}redo(e){this.type==="addConnection"&&this.connectionState?this.addConnection(e):this.type==="removeConnection"&&this.connectionId&&this.removeConnection(e)}addConnection(e){const t=e.findNodeInterface(this.connectionState.from),i=e.findNodeInterface(this.connectionState.to);if(!t||!i)return;const s=e.addConnection(t,i);s&&(s.id=this.connectionState.id),this.connectionId=s==null?void 0:s.id}removeConnection(e){const t=e.connections.find(i=>i.id===this.connectionId);t&&(this.connectionState={id:t.id,from:t.from.id,to:t.to.id},e.removeConnection(t))}}class Wxt{constructor(e){if(this.type="transaction",e.length===0)throw new Error("Can't create a transaction with no steps");this.steps=e}undo(e){for(let t=this.steps.length-1;t>=0;t--)this.steps[t].undo(e)}redo(e){for(let t=0;t<this.steps.length;t++)this.steps[t].redo(e)}}const Mb="UNDO",Nb="REDO",Oy="START_TRANSACTION",Iy="COMMIT_TRANSACTION";function Kxt(n,e){const t=Symbol("HistoryToken"),i=ot(200),s=ot([]),r=ot(!1),o=ot(-1),a=ot(!1),c=ot([]),d=b=>{if(!r.value)if(a.value)c.value.push(b);else for(o.value!==s.value.length-1&&(s.value=s.value.slice(0,o.value+1)),s.value.push(b),o.value++;s.value.length>i.value;)s.value.shift()},u=()=>{a.value=!0},_=()=>{a.value=!1,c.value.length>0&&(d(new Wxt(c.value)),c.value=[])},m=()=>s.value.length!==0&&o.value!==-1,h=()=>{m()&&(r.value=!0,s.value[o.value--].undo(n.value),r.value=!1)},f=()=>s.value.length!==0&&o.value<s.value.length-1,y=()=>{f()&&(r.value=!0,s.value[++o.value].redo(n.value),r.value=!1)};return Tn(n,(b,g)=>{g&&(g.events.addNode.unsubscribe(t),g.events.removeNode.unsubscribe(t),g.events.addConnection.unsubscribe(t),g.events.removeConnection.unsubscribe(t)),b&&(b.events.addNode.subscribe(t,E=>{d(new o2("addNode",E.id))}),b.events.removeNode.subscribe(t,E=>{d(new o2("removeNode",E.save()))}),b.events.addConnection.subscribe(t,E=>{d(new a2("addConnection",E.id))}),b.events.removeConnection.subscribe(t,E=>{d(new a2("removeConnection",E))}))},{immediate:!0}),e.registerCommand(Mb,{canExecute:m,execute:h}),e.registerCommand(Nb,{canExecute:f,execute:y}),e.registerCommand(Oy,{canExecute:()=>!a.value,execute:u}),e.registerCommand(Iy,{canExecute:()=>a.value,execute:_}),e.registerHotkey(["Control","z"],Mb),e.registerHotkey(["Control","y"],Nb),Hn({maxSteps:i})}const Ob="DELETE_NODES";function jxt(n,e){e.registerCommand(Ob,{canExecute:()=>n.value.selectedNodes.length>0,execute(){e.executeCommand(Oy);for(let t=n.value.selectedNodes.length-1;t>=0;t--){const i=n.value.selectedNodes[t];n.value.removeNode(i)}e.executeCommand(Iy)}}),e.registerHotkey(["Delete"],Ob)}const VO="SWITCH_TO_MAIN_GRAPH";function Qxt(n,e,t){e.registerCommand(VO,{canExecute:()=>n.value!==n.value.editor.graph,execute:()=>{e.executeCommand(ec),t(n.value.editor.graph)}})}function Xxt(n,e,t){jxt(n,e),Yxt(n,e,t),yxt(n,e),Qxt(n,e,t)}const Ib="COPY",kb="PASTE",Zxt="CLEAR_CLIPBOARD";function Jxt(n,e,t){const i=Symbol("ClipboardToken"),s=ot(""),r=ot(""),o=Je(()=>!s.value),a=()=>{s.value="",r.value=""},c=()=>{const _=n.value.selectedNodes.flatMap(h=>[...Object.values(h.inputs),...Object.values(h.outputs)]),m=n.value.connections.filter(h=>_.includes(h.from)||_.includes(h.to)).map(h=>({from:h.from.id,to:h.to.id}));r.value=JSON.stringify(m),s.value=JSON.stringify(n.value.selectedNodes.map(h=>h.save()))},d=(_,m,h)=>{for(const f of _){let y;if((!h||h==="input")&&(y=Object.values(f.inputs).find(b=>b.id===m)),!y&&(!h||h==="output")&&(y=Object.values(f.outputs).find(b=>b.id===m)),y)return y}},u=()=>{if(o.value)return;const _=new Map,m=JSON.parse(s.value),h=JSON.parse(r.value),f=[],y=[],b=n.value;t.executeCommand(Oy);for(const g of m){const E=e.value.nodeTypes.get(g.type);if(!E){console.warn(`Node type ${g.type} not registered`);return}const v=new E.type,S=v.id;f.push(v),v.hooks.beforeLoad.subscribe(i,R=>{const C=R;return C.position&&(C.position.x+=100,C.position.y+=100),v.hooks.beforeLoad.unsubscribe(i),C}),b.addNode(v),v.load({...g,id:S}),v.id=S,_.set(g.id,S);for(const R of Object.values(v.inputs)){const C=Tu();_.set(R.id,C),R.id=C}for(const R of Object.values(v.outputs)){const C=Tu();_.set(R.id,C),R.id=C}}for(const g of h){const E=d(f,_.get(g.from),"output"),v=d(f,_.get(g.to),"input");if(!E||!v)continue;const S=b.addConnection(E,v);S&&y.push(S)}return n.value.selectedNodes=f,t.executeCommand(Iy),{newNodes:f,newConnections:y}};return t.registerCommand(Ib,{canExecute:()=>n.value.selectedNodes.length>0,execute:c}),t.registerHotkey(["Control","c"],Ib),t.registerCommand(kb,{canExecute:()=>!o.value,execute:u}),t.registerHotkey(["Control","v"],kb),t.registerCommand(Zxt,{canExecute:()=>!0,execute:a}),Hn({isEmpty:o})}const eCt="OPEN_SIDEBAR";function tCt(n,e){e.registerCommand(eCt,{execute:t=>{n.value.sidebar.nodeId=t,n.value.sidebar.visible=!0},canExecute:()=>!0})}function nCt(n,e){tCt(n,e)}const iCt={},sCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},rCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),oCt=l("path",{d:"M9 13l-4 -4l4 -4m-4 4h11a4 4 0 0 1 0 8h-1"},null,-1),aCt=[rCt,oCt];function lCt(n,e){return T(),w("svg",sCt,aCt)}const cCt=sn(iCt,[["render",lCt]]),dCt={},uCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},pCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),fCt=l("path",{d:"M15 13l4 -4l-4 -4m4 4h-11a4 4 0 0 0 0 8h1"},null,-1),_Ct=[pCt,fCt];function mCt(n,e){return T(),w("svg",uCt,_Ct)}const hCt=sn(dCt,[["render",mCt]]),gCt={},bCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},yCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ECt=l("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),vCt=l("line",{x1:"5",y1:"12",x2:"11",y2:"18"},null,-1),SCt=l("line",{x1:"5",y1:"12",x2:"11",y2:"6"},null,-1),TCt=[yCt,ECt,vCt,SCt];function xCt(n,e){return T(),w("svg",bCt,TCt)}const CCt=sn(gCt,[["render",xCt]]),wCt={},RCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ACt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),MCt=l("path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"},null,-1),NCt=l("rect",{x:"9",y:"3",width:"6",height:"4",rx:"2"},null,-1),OCt=[ACt,MCt,NCt];function ICt(n,e){return T(),w("svg",RCt,OCt)}const kCt=sn(wCt,[["render",ICt]]),DCt={},LCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},PCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),FCt=l("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"},null,-1),UCt=l("path",{d:"M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"},null,-1),BCt=[PCt,FCt,UCt];function GCt(n,e){return T(),w("svg",LCt,BCt)}const VCt=sn(DCt,[["render",GCt]]),zCt={},HCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},qCt=l("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),YCt=l("path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"},null,-1),$Ct=l("circle",{cx:"12",cy:"14",r:"2"},null,-1),WCt=l("polyline",{points:"14 4 14 8 8 8 8 4"},null,-1),KCt=[qCt,YCt,$Ct,WCt];function jCt(n,e){return T(),w("svg",HCt,KCt)}const QCt=sn(zCt,[["render",jCt]]),XCt={},ZCt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},JCt=mr('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 3h4v4h-4z"></path><path d="M3 17h4v4h-4z"></path><path d="M17 17h4v4h-4z"></path><path d="M7 17l5 -4l5 4"></path><line x1="12" y1="7" x2="12" y2="13"></line>',6),ewt=[JCt];function twt(n,e){return T(),w("svg",ZCt,ewt)}const nwt=sn(XCt,[["render",twt]]),iwt={},swt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},rwt=mr('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M8 8m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"></path><path d="M12 20v.01"></path><path d="M16 20v.01"></path><path d="M8 20v.01"></path><path d="M4 20v.01"></path><path d="M4 16v.01"></path><path d="M4 12v.01"></path><path d="M4 8v.01"></path><path d="M4 4v.01"></path><path d="M8 4v.01"></path><path d="M12 4v.01"></path><path d="M16 4v.01"></path><path d="M20 4v.01"></path><path d="M20 8v.01"></path><path d="M20 12v.01"></path><path d="M20 16v.01"></path><path d="M20 20v.01"></path>',18),owt=[rwt];function awt(n,e){return T(),w("svg",swt,owt)}const lwt=sn(iwt,[["render",awt]]),cwt={},dwt={xmlns:"http://www.w3.org/2000/svg",class:"baklava-icon",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},uwt=mr('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>',6),pwt=[uwt];function fwt(n,e){return T(),w("svg",dwt,pwt)}const _wt=sn(cwt,[["render",fwt]]),mwt=cn({props:{command:{type:String,required:!0},title:{type:String,required:!0},icon:{type:Object,required:!1,default:void 0}},setup(){const{viewModel:n}=di();return{viewModel:n}}}),hwt=["disabled","title"];function gwt(n,e,t,i,s,r){return T(),w("button",{class:"baklava-toolbar-entry baklava-toolbar-button",disabled:!n.viewModel.commandHandler.canExecuteCommand(n.command),title:n.title,onClick:e[0]||(e[0]=o=>n.viewModel.commandHandler.executeCommand(n.command))},[n.icon?(T(),at(Pu(n.icon),{key:0})):(T(),w(Be,{key:1},[Ze($(n.title),1)],64))],8,hwt)}const bwt=sn(mwt,[["render",gwt]]),ywt=cn({components:{ToolbarButton:bwt},setup(){const{viewModel:n}=di();return{isSubgraph:Je(()=>n.value.displayedGraph!==n.value.editor.graph),commands:[{command:Ib,title:"Copy",icon:VCt},{command:kb,title:"Paste",icon:kCt},{command:Ob,title:"Delete selected nodes",icon:_wt},{command:Mb,title:"Undo",icon:cCt},{command:Nb,title:"Redo",icon:hCt},{command:Ld,title:"Box Select",icon:lwt},{command:GO,title:"Create Subgraph",icon:nwt}],subgraphCommands:[{command:ec,title:"Save Subgraph",icon:QCt},{command:VO,title:"Back to Main Graph",icon:CCt}]}}});function Ewt(n,e,t,i,s,r){const o=nt("toolbar-button");return T(),w("div",{class:"baklava-toolbar",onContextmenu:e[0]||(e[0]=W(()=>{},["stop","prevent"]))},[(T(!0),w(Be,null,Xe(n.commands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)),n.isSubgraph?(T(!0),w(Be,{key:0},Xe(n.subgraphCommands,a=>(T(),at(o,{key:a.command,command:a.command,title:a.title,icon:a.icon},null,8,["command","title","icon"]))),128)):B("",!0)],32)}const vwt=sn(ywt,[["render",Ewt]]),Swt={class:"connections-container"},Twt=cn({__name:"Editor",props:{viewModel:{}},setup(n){const e=n,t=Symbol("EditorToken"),i=Bd(e,"viewModel");oTt(i);const s=ot(null);na("editorEl",s);const r=Je(()=>e.viewModel.displayedGraph.nodes),o=Je(()=>e.viewModel.displayedGraph.nodes.map(I=>AO(Bd(I,"position")))),a=Je(()=>e.viewModel.displayedGraph.connections),c=Je(()=>e.viewModel.displayedGraph.selectedNodes),d=aTt(),u=lTt(),_=cTt(i),m=dTt(s),h=Je(()=>({...d.styles.value})),f=ot(0);e.viewModel.editor.hooks.load.subscribe(t,I=>(f.value++,I));const y=I=>{d.onPointerMove(I),u.onMouseMove(I)},b=I=>{if(I.button===0){if(m.onPointerDown(I))return;I.target===s.value&&(R(),d.onPointerDown(I)),u.onMouseDown()}},g=I=>{d.onPointerUp(I),u.onMouseUp()},E=I=>{I.key==="Tab"&&I.preventDefault(),e.viewModel.commandHandler.handleKeyDown(I)},v=I=>{e.viewModel.commandHandler.handleKeyUp(I)},S=I=>{["Control","Shift"].some(x=>e.viewModel.commandHandler.pressedKeys.includes(x))||R(),e.viewModel.displayedGraph.selectedNodes.push(I)},R=()=>{e.viewModel.displayedGraph.selectedNodes=[]},C=I=>{for(const x of e.viewModel.displayedGraph.selectedNodes){const M=r.value.indexOf(x),G=o.value[M];G.onPointerDown(I),document.addEventListener("pointermove",G.onPointerMove)}document.addEventListener("pointerup",A)},A=()=>{for(const I of e.viewModel.displayedGraph.selectedNodes){const x=r.value.indexOf(I),M=o.value[x];M.onPointerUp(),document.removeEventListener("pointermove",M.onPointerMove)}document.removeEventListener("pointerup",A)};return(I,x)=>(T(),w("div",{ref_key:"el",ref:s,tabindex:"-1",class:Ue(["baklava-editor",{"baklava-ignore-mouse":!!yt(u).temporaryConnection.value||yt(d).dragging.value,"--temporary-connection":!!yt(u).temporaryConnection.value,"--start-selection-box":yt(m).startSelection}]),onPointermove:W(y,["self"]),onPointerdown:b,onPointerup:g,onWheel:x[1]||(x[1]=W((...M)=>yt(d).onMouseWheel&&yt(d).onMouseWheel(...M),["self"])),onKeydown:E,onKeyup:v,onContextmenu:x[2]||(x[2]=(...M)=>yt(_).open&&yt(_).open(...M))},[on(I.$slots,"background",{},()=>[z(fTt)]),on(I.$slots,"toolbar",{},()=>[I.viewModel.settings.toolbar.enabled?(T(),at(vwt,{key:0})):B("",!0)]),on(I.$slots,"palette",{},()=>[I.viewModel.settings.palette.enabled?(T(),at(_xt,{key:0})):B("",!0)]),(T(),w("svg",Swt,[(T(!0),w(Be,null,Xe(a.value,M=>(T(),w("g",{key:M.id+f.value.toString()},[on(I.$slots,"connection",{connection:M},()=>[z(XTt,{connection:M},null,8,["connection"])])]))),128)),on(I.$slots,"temporaryConnection",{temporaryConnection:yt(u).temporaryConnection.value},()=>[yt(u).temporaryConnection.value?(T(),at(ext,{key:0,connection:yt(u).temporaryConnection.value},null,8,["connection"])):B("",!0)])])),l("div",{class:"node-container",style:Wt(h.value)},[z(Is,{name:"fade"},{default:Ie(()=>[(T(!0),w(Be,null,Xe(r.value,(M,G)=>on(I.$slots,"node",{key:M.id+f.value.toString(),node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:C},()=>[z(qTt,{node:M,selected:c.value.includes(M),dragging:o.value[G].dragging.value,onSelect:V=>S(M),onStartDrag:C},null,8,["node","selected","dragging","onSelect"])])),128))]),_:3})],4),on(I.$slots,"sidebar",{},()=>[I.viewModel.settings.sidebar.enabled?(T(),at(rxt,{key:0})):B("",!0)]),on(I.$slots,"minimap",{},()=>[I.viewModel.settings.enableMinimap?(T(),at(oxt,{key:0})):B("",!0)]),on(I.$slots,"contextMenu",{contextMenu:yt(_)},()=>[I.viewModel.settings.contextMenu.enabled?(T(),at(Ny,{key:0,modelValue:yt(_).show.value,"onUpdate:modelValue":x[0]||(x[0]=M=>yt(_).show.value=M),items:yt(_).items.value,x:yt(_).x.value,y:yt(_).y.value,onClick:yt(_).onClick},null,8,["modelValue","items","x","y","onClick"])):B("",!0)]),yt(m).isSelecting?(T(),w("div",{key:0,class:"selection-box",style:Wt(yt(m).getStyles())},null,4)):B("",!0)],34))}});function xwt(n){const e=ot([]),t=ot([]);return{pressedKeys:e,handleKeyDown:o=>{e.value.includes(o.key)||e.value.push(o.key),!(document.activeElement&&RO(document.activeElement))&&t.value.forEach(a=>{var c,d;a.keys.every(u=>e.value.includes(u))&&((c=a.options)!=null&&c.preventDefault&&o.preventDefault(),(d=a.options)!=null&&d.stopPropagation&&o.stopPropagation(),n(a.commandName))})},handleKeyUp:o=>{const a=e.value.indexOf(o.key);a>=0&&e.value.splice(a,1)},registerHotkey:(o,a,c)=>{t.value.push({keys:o,commandName:a,options:c})}}}const Cwt=()=>{const n=ot(new Map),e=o=>n.value.has(o),t=(o,a)=>{if(n.value.has(o))throw new Error(`Command "${o}" already exists`);n.value.set(o,a)},i=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return}return n.value.get(o).execute(...c)},s=(o,a=!1,...c)=>{if(!n.value.has(o)){if(a)throw new Error(`[CommandHandler] Command ${o} not registered`);return!1}return n.value.get(o).canExecute(c)},r=xwt(i);return Hn({hasCommand:e,registerCommand:t,executeCommand:i,canExecuteCommand:s,...r})},wwt=n=>!(n instanceof _c);function Rwt(n,e){return{switchGraph:i=>{let s;if(wwt(i))s=new _c(n.value),i.createGraph(s);else{if(i!==n.value.graph)throw new Error("Can only switch using 'Graph' instance when it is the root graph. Otherwise a 'GraphTemplate' must be used.");s=i}e.value&&e.value!==n.value.graph&&e.value.destroy(),s.panning=s.panning??i.panning??{x:0,y:0},s.scaling=s.scaling??i.scaling??1,s.selectedNodes=s.selectedNodes??[],s.sidebar=s.sidebar??{visible:!1,nodeId:"",optionName:""},e.value=s}}}function Awt(n,e){n.position=n.position??{x:0,y:0},n.disablePointerEvents=!1,n.twoColumn=n.twoColumn??!1,n.width=n.width??e.defaultWidth}const Mwt=()=>({useStraightConnections:!1,enableMinimap:!1,toolbar:{enabled:!0},palette:{enabled:!0},background:{gridSize:100,gridDivision:5,subGridVisibleThreshold:.6},sidebar:{enabled:!0,width:300,resizable:!0},displayValueOnHover:!1,nodes:{defaultWidth:200,maxWidth:320,minWidth:150,resizable:!1,reverseY:!1},contextMenu:{enabled:!0,additionalItems:[]}});function Nwt(n){const e=ot(new J1t),t=Symbol("ViewModelToken"),i=ot(null),s=BI(i),{switchGraph:r}=Rwt(e,i),o=Je(()=>s.value&&s.value!==e.value.graph),a=Hn(Mwt()),c=Cwt(),d=Kxt(s,c),u=Jxt(s,e,c),_={renderNode:new ci(null),renderInterface:new ci(null)};return Xxt(s,c,r),nCt(s,c),Tn(e,(m,h)=>{h&&(h.events.registerGraph.unsubscribe(t),h.graphEvents.beforeAddNode.unsubscribe(t),m.nodeHooks.beforeLoad.unsubscribe(t),m.nodeHooks.afterSave.unsubscribe(t),m.graphTemplateHooks.beforeLoad.unsubscribe(t),m.graphTemplateHooks.afterSave.unsubscribe(t),m.graph.hooks.load.unsubscribe(t),m.graph.hooks.save.unsubscribe(t)),m&&(m.nodeHooks.beforeLoad.subscribe(t,(f,y)=>(y.position=f.position??{x:0,y:0},y.width=f.width??a.nodes.defaultWidth,y.twoColumn=f.twoColumn??!1,f)),m.nodeHooks.afterSave.subscribe(t,(f,y)=>(f.position=y.position,f.width=y.width,f.twoColumn=y.twoColumn,f)),m.graphTemplateHooks.beforeLoad.subscribe(t,(f,y)=>(y.panning=f.panning,y.scaling=f.scaling,f)),m.graphTemplateHooks.afterSave.subscribe(t,(f,y)=>(f.panning=y.panning,f.scaling=y.scaling,f)),m.graph.hooks.load.subscribe(t,(f,y)=>(y.panning=f.panning,y.scaling=f.scaling,f)),m.graph.hooks.save.subscribe(t,(f,y)=>(f.panning=y.panning,f.scaling=y.scaling,f)),m.graphEvents.beforeAddNode.subscribe(t,f=>Awt(f,{defaultWidth:a.nodes.defaultWidth})),e.value.registerNodeType(UO,{category:"Subgraphs"}),e.value.registerNodeType(BO,{category:"Subgraphs"}),r(m.graph))},{immediate:!0}),Hn({editor:e,displayedGraph:s,isSubgraph:o,settings:a,commandHandler:c,history:d,clipboard:u,hooks:_,switchGraph:r})}const Owt=Ka({type:"PersonalityNode",title:"Personality",inputs:{request:()=>new en("Request",""),agent_name:()=>new Pxt("Personality","",Pi.state.config.personalities).setPort(!1)},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Pi.state.config.personalities);let e="";try{e=(await ie.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),Iwt=Ka({type:"RAGNode",title:"RAG",inputs:{request:()=>new en("Prompt",""),document_path:()=>new mc("Document path","").setPort(!1)},outputs:{prompt:()=>new en("Prompt with Data","")},async calculate({request:n,document_path:e}){let t="";try{t=(await ie.get("/rag",{params:{text:n,doc_path:e}})).data}catch(i){console.error(i)}return{response:t}}}),l2=Ka({type:"Task",title:"Task",inputs:{description:()=>new mc("Task description","").setPort(!1)},outputs:{prompt:()=>new en("Prompt")},calculate({description:n}){return{prompt:n}}}),c2=Ka({type:"TextDisplayNode",title:"TextDisplay",inputs:{text2display:()=>new en("Input","")},outputs:{response:()=>new Gxt("Text","")},async calculate({request:n}){}}),d2=Ka({type:"LLMNode",title:"LLM",inputs:{request:()=>new en("Request","")},outputs:{response:()=>new en("Response","")},async calculate({request:n}){console.log(Pi.state.config.personalities);let e="";try{e=(await ie.post("/generate",{params:{text:n}})).data}catch(t){console.error(t)}return{display:e,response:e}}}),kwt=Ka({type:"MultichoiceNode",title:"Multichoice",inputs:{question:()=>new en("Question",""),outputs:()=>new mc("choices, one per line","","").setPort(!1)},outputs:{response:()=>new en("Response","")}}),Dwt=cn({components:{"baklava-editor":Twt},setup(){const n=Nwt(),e=new sTt(n.editor);n.editor.registerNodeType(Owt),n.editor.registerNodeType(l2),n.editor.registerNodeType(Iwt),n.editor.registerNodeType(c2),n.editor.registerNodeType(d2),n.editor.registerNodeType(kwt);const t=Symbol();e.events.afterRun.subscribe(t,a=>{e.pause(),eTt(a,n.editor),e.resume()}),e.start();function i(a,c,d){const u=new a;return n.displayedGraph.addNode(u),u.position.x=c,u.position.y=d,u}const s=i(l2,300,140),r=i(d2,550,140),o=i(c2,850,140);return n.displayedGraph.addConnection(s.outputs.prompt,r.inputs.request),n.displayedGraph.addConnection(r.outputs.response,o.inputs.text2display),{baklava:n,saveGraph:()=>{const a=e.export();localStorage.setItem("myGraph",JSON.stringify(a))},loadGraph:()=>{const a=JSON.parse(localStorage.getItem("myGraph"));e.import(a)}}}}),Lwt={style:{width:"100vw",height:"100vh"}};function Pwt(n,e,t,i,s,r){const o=nt("baklava-editor");return T(),w("div",Lwt,[z(o,{"view-model":n.baklava},null,8,["view-model"]),l("button",{onClick:e[0]||(e[0]=(...a)=>n.saveGraph&&n.saveGraph(...a))},"Save Graph"),l("button",{onClick:e[1]||(e[1]=(...a)=>n.loadGraph&&n.loadGraph(...a))},"Load Graph")])}const Fwt=st(Dwt,[["render",Pwt]]),Uwt={},Bwt={style:{width:"100vw",height:"100vh"}},Gwt=["src"];function Vwt(n,e,t,i,s,r){return T(),w("div",Bwt,[l("iframe",{src:n.$store.state.config.comfyui_base_url,class:"m-0 p-0 w-full h-full"},null,8,Gwt)])}const zwt=st(Uwt,[["render",Vwt]]),Hwt={},qwt={style:{width:"100vw",height:"100vh"}},Ywt=["src"];function $wt(n,e,t,i,s,r){return T(),w("div",qwt,[l("iframe",{src:n.$store.state.config.sd_base_url,class:"m-0 p-0 w-full h-full"},null,8,Ywt)])}const Wwt=st(Hwt,[["render",$wt]]),Kwt={name:"AppCard",props:{app:{type:Object,required:!0},isFavorite:{type:Boolean,default:!1}},methods:{formatDate(n){const e={year:"numeric",month:"short",day:"numeric"};return new Date(n).toLocaleDateString(void 0,e)}}},jwt={class:"app-card bg-white border rounded-xl shadow-lg p-6 hover:shadow-xl transition duration-300 ease-in-out flex flex-col h-full"},Qwt={class:"flex-grow"},Xwt={class:"flex items-center mb-4"},Zwt=["src"],Jwt={class:"font-bold text-xl text-gray-800"},e2t={class:"text-sm text-gray-600"},t2t={class:"text-sm text-gray-600"},n2t={class:"text-sm text-gray-600"},i2t={class:"text-sm text-gray-600"},s2t={class:"text-sm text-gray-600"},r2t={class:"mb-4"},o2t={class:"text-sm text-gray-600 h-20 overflow-y-auto"},a2t={class:"text-sm text-gray-600 mb-2"},l2t={key:0,class:"mb-4"},c2t={class:"text-xs text-gray-500 italic h-16 overflow-y-auto"},d2t={class:"mt-auto pt-4 border-t"},u2t={class:"flex justify-between items-center flex-wrap"},p2t=["title"],f2t=["fill"];function _2t(n,e,t,i,s,r){return T(),w("div",jwt,[l("div",Qwt,[l("div",Xwt,[l("img",{src:t.app.icon,alt:"App Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4"},null,8,Zwt),l("div",null,[l("h3",Jwt,$(t.app.name),1),l("p",e2t,"Author: "+$(t.app.author),1),l("p",t2t,"Version: "+$(t.app.version),1),l("p",n2t,"Category: "+$(t.app.category),1),l("p",i2t,"Creation date: "+$(r.formatDate(t.app.creation_date)),1),l("p",s2t,"Last update: "+$(r.formatDate(t.app.last_update_date)),1),l("p",{class:Ue(["text-sm",t.app.is_public?"text-green-600":"text-orange-600"])},$(t.app.is_public?"Public App":"Local App"),3)])]),l("div",r2t,[e[10]||(e[10]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),l("p",o2t,$(t.app.description),1)]),l("p",a2t,"AI Model: "+$(t.app.model_name),1),t.app.disclaimer&&t.app.disclaimer.trim()!==""?(T(),w("div",l2t,[e[11]||(e[11]=l("h4",{class:"font-semibold mb-1 text-gray-700"},"Disclaimer:",-1)),l("p",c2t,$(t.app.disclaimer),1)])):B("",!0)]),l("div",d2t,[l("div",u2t,[l("button",{onClick:e[0]||(e[0]=W(o=>n.$emit("toggle-favorite",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(T(),w("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[12]||(e[12]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,f2t))],8,p2t),t.app.installed?(T(),w("button",{key:0,onClick:e[1]||(e[1]=W(o=>n.$emit("uninstall",t.app.folder_name),["stop"])),class:"text-red-500 hover:text-red-600 transition duration-300 ease-in-out",title:"Uninstall"},e[13]||(e[13]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):t.app.existsInFolder?(T(),w("button",{key:1,onClick:e[2]||(e[2]=W(o=>n.$emit("delete",t.app.name),["stop"])),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:"Delete"},e[14]||(e[14]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)]))):(T(),w("button",{key:2,onClick:e[3]||(e[3]=W(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Install"},e[15]||(e[15]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)]))),t.app.installed?(T(),w("button",{key:3,onClick:e[4]||(e[4]=W(o=>n.$emit("edit",t.app),["stop"])),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Edit"},e[16]||(e[16]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})],-1)]))):B("",!0),l("button",{onClick:e[5]||(e[5]=W(o=>n.$emit("download",t.app.folder_name),["stop"])),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Download"},e[17]||(e[17]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1)])),t.app.has_readme?(T(),w("button",{key:4,onClick:e[6]||(e[6]=W(o=>n.$emit("help",t.app),["stop"])),class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out",title:"Help"},e[18]||(e[18]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M12 21a9 9 0 100-18 9 9 0 000 18z"})],-1)]))):B("",!0),t.app.installed?(T(),w("button",{key:5,onClick:e[7]||(e[7]=W(o=>n.$emit("open",t.app),["stop"])),class:"text-indigo-500 hover:text-indigo-600 transition duration-300 ease-in-out",title:"Open"},e[19]||(e[19]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})],-1)]))):B("",!0),t.app.has_server&&t.app.installed?(T(),w("button",{key:6,onClick:e[8]||(e[8]=W(o=>n.$emit("start-server",t.app.folder_name),["stop"])),class:"text-teal-500 hover:text-teal-600 transition duration-300 ease-in-out",title:"Start Server"},e[20]||(e[20]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14M12 5l7 7-7 7"})],-1)]))):B("",!0),t.app.has_update?(T(),w("button",{key:7,onClick:e[9]||(e[9]=W(o=>n.$emit("install",t.app.folder_name),["stop"])),class:"relative text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out animate-pulse",title:"Update Available"},e[21]||(e[21]=[l("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),l("span",{class:"absolute top-0 right-0 inline-flex items-center justify-center px-2 py-1 text-xs font-bold leading-none text-red-100 transform translate-x-1/2 -translate-y-1/2 bg-red-600 rounded-full"},"!",-1)]))):B("",!0)])])])}const m2t=st(Kwt,[["render",_2t],["__scopeId","data-v-a946557e"]]),h2t={components:{AppCard:m2t},data(){return{apps:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"update",sortOrder:"desc",showOnlyInstalled:!1,showOnlyUnInstalled:!1}},computed:{currentCategoryName(){return this.selectedCategory==="all"?"All Apps":this.selectedCategory},combinedApps(){this.apps.map(e=>e.name);const n=new Map(this.apps.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))]},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory,i=this.showOnlyInstalled&&n.installed||this.showOnlyUnInstalled&&!n.installed||!this.showOnlyInstalled&&!this.showOnlyUnInstalled;return e&&t&&i})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.appName))}},methods:{toggleSortOrder(){this.sortOrder=this.sortOrder==="asc"?"desc":"asc"},toggleFavorite(n){console.log("Toggling favorite"),console.log(n);const e=this.favorites.indexOf(n);e===-1?this.favorites.push(n):this.favorites.splice(e,1),this.saveFavoritesToLocalStorage()},saveFavoritesToLocalStorage(){localStorage.setItem("appZooFavorites",JSON.stringify(this.favorites))},loadFavoritesFromLocalStorage(){const n=localStorage.getItem("appZooFavorites");console.log("savedFavorites",n),n&&(this.favorites=JSON.parse(n))},startServer(n){const e={client_id:this.$store.state.client_id,app_name:n};this.$store.state.messageBox.showBlockingMessage(`Loading server.
+This may take some time the first time as some libraries need to be installed.`),ie.post("/apps/start_server",e).then(t=>{this.$store.state.messageBox.hideMessage(),console.log("Server start initiated:",t.data.message),this.$notify({type:"success",title:"Server Starting",text:t.data.message})}).catch(t=>{var i,s;this.$store.state.messageBox.hideMessage(),console.error("Error starting server:",t),this.$notify({type:"error",title:"Server Start Failed",text:((s=(i=t.response)==null?void 0:i.data)==null?void 0:s.detail)||"An error occurred while starting the server"})})},triggerFileInput(){this.$refs.fileInput.click()},onFileSelected(n){this.selectedFile=n.target.files[0],this.message="",this.error="",this.uploadApp()},async uploadApp(){var e,t;if(!this.selectedFile){this.error="Please select a file to upload.";return}this.isUploading=!0,this.message="",this.error="";const n=new FormData;n.append("file",this.selectedFile),n.append("client_id",this.$store.state.client_id);try{const i=await ie.post("/upload_app",n,{headers:{"Content-Type":"multipart/form-data"}});this.message=i.data.message,this.$refs.fileInput.value="",this.selectedFile=null}catch(i){console.error("Error uploading app:",i),this.error=((t=(e=i.response)==null?void 0:e.data)==null?void 0:t.detail)||"Failed to upload the app. Please try again."}finally{this.isUploading=!1}},async fetchApps(){this.loading=!0;try{const n=await ie.get("/apps");this.apps=n.data,this.showMessage("Refresh successful!",!0)}catch{this.showMessage("Failed to refresh apps.",!1)}finally{this.loading=!1}},async openAppsFolder(){this.loading=!0;try{console.log("opening apps folder");const n=await ie.post("/show_apps_folder",{client_id:this.$store.state.client_id})}catch{this.showMessage("Failed to open apps folder.",!1)}finally{this.loading=!1}},async fetchGithubApps(){this.loading=!0;try{const n=await ie.get("/github/apps");this.githubApps=n.data.apps,await this.fetchApps()}catch{this.showMessage("Failed to refresh GitHub apps.",!1)}finally{this.loading=!1}},async handleAppClick(n){if(n.installed){this.selectedApp=n;const e=await ie.get(`/apps/${n.folder_name}/README.md`);this.appCode=Pt(e.data)}else this.showMessage(`Please install ${n.folder_name} to view its code.`,!1)},backToZoo(){this.selectedApp=null,this.appCode=""},async installApp(n){this.loading=!0,this.$store.state.messageBox.showBlockingMessage(`Installing app ${n}`);try{await ie.post(`/install/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Installation succeeded!",!0)}catch{this.showMessage("Installation failed.",!1)}finally{this.loading=!1,this.fetchApps(),this.fetchGithubApps(),this.$store.state.messageBox.hideMessage()}},async uninstallApp(n){this.loading=!0;try{await ie.post(`/uninstall/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Uninstallation succeeded!",!0)}catch{this.showMessage("Uninstallation failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async deleteApp(n){this.loading=!0;try{await ie.post(`/delete/${n}`,{client_id:this.$store.state.client_id}),this.showMessage("Deletion succeeded!",!0)}catch{this.showMessage("Deletion failed.",!1)}finally{this.loading=!1,this.fetchApps()}},async editApp(n){this.loading=!0;try{const e=await ie.post("/open_app_in_vscode",{client_id:this.$store.state.client_id,app_name:n.folder_name});this.showMessage(e.data.message,!0)}catch{this.showMessage("Failed to open folder in VSCode.",!1)}finally{this.loading=!1}},async downloadApp(n){this.isLoading=!0,this.error=null;try{const e=await ie.post("/download_app",{client_id:this.$store.state.client_id,app_name:n},{responseType:"arraybuffer"}),t=e.headers["content-disposition"],i=t&&t.match(/filename="?(.+)"?/i),s=i?i[1]:"app.zip",r=new Blob([e.data],{type:"application/zip"}),o=window.URL.createObjectURL(r),a=document.createElement("a");a.style.display="none",a.href=o,a.download=s,document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(o),document.body.removeChild(a)}catch(e){console.error("Error downloading app:",e),this.error="Failed to download the app. Please try again."}finally{this.isLoading=!1}},openApp(n){n.installed?window.open(`/apps/${n.folder_name}/index.html?client_id=${this.$store.state.client_id}`,"_blank"):this.showMessage(`Please install ${n.name} before opening.`,!1)},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)}},mounted(){this.fetchGithubApps(),this.loadFavoritesFromLocalStorage()}},g2t={class:"app-zoo background-color w-full p-6 pt-12 min-h-screen overflow-y-auto"},b2t={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},y2t={class:"flex flex-wrap items-center justify-between gap-4"},E2t={class:"flex items-center space-x-4"},v2t=["disabled"],S2t={key:0},T2t={key:1,class:"error"},x2t={class:"relative flex-grow max-w-md"},C2t={class:"flex items-center space-x-4"},w2t=["value"],R2t={class:"flex items-center space-x-4"},A2t={for:"installed-only",class:"font-semibold"},M2t={for:"installed-only",class:"font-semibold"},N2t={class:"flex items-center space-x-4"},O2t={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},I2t={key:1,class:"pb-20"},k2t={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-8"},D2t={class:"text-2xl font-bold mb-4"},L2t={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},P2t={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},F2t={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},U2t={class:"flex justify-between items-center mb-4"},B2t={class:"text-2xl font-bold"},G2t=["srcdoc"],V2t={key:1,class:"text-center text-red-500"};function z2t(n,e,t,i,s,r){const o=nt("app-card");return T(),w("div",g2t,[l("nav",b2t,[l("div",y2t,[l("div",E2t,[l("button",{onClick:e[0]||(e[0]=(...a)=>r.fetchGithubApps&&r.fetchGithubApps(...a)),class:"btn btn-primary","aria-label":"Refresh apps from GitHub"},e[11]||(e[11]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),Ze(" Refresh ")])),l("button",{onClick:e[1]||(e[1]=(...a)=>r.openAppsFolder&&r.openAppsFolder(...a)),class:"btn btn-secondary","aria-label":"Open apps folder"},e[12]||(e[12]=[l("svg",{class:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z"})],-1),Ze(" Open Folder ")])),l("input",{type:"file",onChange:e[2]||(e[2]=(...a)=>r.onFileSelected&&r.onFileSelected(...a)),accept:".zip",ref:"fileInput",style:{display:"none"}},null,544),l("button",{onClick:e[3]||(e[3]=(...a)=>r.triggerFileInput&&r.triggerFileInput(...a)),disabled:s.isUploading,class:"btn-secondary text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Upload App"},$(s.isUploading?"Uploading...":"Upload App"),9,v2t)]),s.message?(T(),w("p",S2t,$(s.message),1)):B("",!0),s.error?(T(),w("p",T2t,$(s.error),1)):B("",!0),l("div",x2t,[k(l("input",{"onUpdate:modelValue":e[4]||(e[4]=a=>s.searchQuery=a),placeholder:"Search apps...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search apps"},null,512),[[ue,s.searchQuery]]),e[13]||(e[13]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",C2t,[e[15]||(e[15]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[5]||(e[5]=a=>s.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[14]||(e[14]=l("option",{value:"all"},"All Categories",-1)),(T(!0),w(Be,null,Xe(r.categories,a=>(T(),w("option",{key:a,value:a},$(a),9,w2t))),128))],512),[[It,s.selectedCategory]])]),l("div",R2t,[l("label",A2t,[k(l("input",{id:"installed-only",type:"checkbox","onUpdate:modelValue":e[6]||(e[6]=a=>s.showOnlyInstalled=a),class:"mr-2"},null,512),[[He,s.showOnlyInstalled]]),e[16]||(e[16]=Ze(" Show only installed apps "))]),l("label",M2t,[k(l("input",{id:"uninstalled-only",type:"checkbox","onUpdate:modelValue":e[7]||(e[7]=a=>s.showOnlyUnInstalled=a),class:"mr-2"},null,512),[[He,s.showOnlyUnInstalled]]),e[17]||(e[17]=Ze(" Show only non installed apps "))])]),l("div",N2t,[e[19]||(e[19]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[8]||(e[8]=a=>s.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[18]||(e[18]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[It,s.sortBy]]),l("button",{onClick:e[9]||(e[9]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},$(s.sortOrder==="asc"?"↑":"↓"),1)])])]),s.loading?(T(),w("div",O2t,e[20]||(e[20]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),w("div",I2t,[e[21]||(e[21]=l("h2",{class:"text-2xl font-bold mb-4"},"Favorite Apps",-1)),l("div",k2t,[(T(!0),w(Be,null,Xe(r.favoriteApps,a=>(T(),at(o,{key:a.appName,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onHelp:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))]),l("h2",D2t,$(r.currentCategoryName)+" ("+$(r.sortedAndFilteredApps.length)+")",1),l("div",L2t,[(T(!0),w(Be,null,Xe(r.sortedAndFilteredApps,a=>(T(),at(o,{key:a.name,app:a,onToggleFavorite:r.toggleFavorite,onInstall:r.installApp,onUninstall:r.uninstallApp,onDelete:r.deleteApp,onEdit:r.editApp,onDownload:r.downloadApp,onHelp:r.handleAppClick,onOpen:r.openApp,onStartServer:r.startServer},null,8,["app","onToggleFavorite","onInstall","onUninstall","onDelete","onEdit","onDownload","onHelp","onOpen","onStartServer"]))),128))])])),s.selectedApp?(T(),w("div",P2t,[l("div",F2t,[l("div",U2t,[l("h2",B2t,$(s.selectedApp.name),1),l("button",{onClick:e[10]||(e[10]=(...a)=>r.backToZoo&&r.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),s.appCode?(T(),w("iframe",{key:0,srcdoc:s.appCode,class:"flex-grow border-none"},null,8,G2t)):(T(),w("p",V2t,"Please install this app to view its code."))])])):B("",!0),s.message?(T(),w("div",{key:3,class:Ue(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":s.successMessage,"bg-red-100 text-red-800":!s.successMessage}])},$(s.message),3)):B("",!0)])}const H2t=st(h2t,[["render",z2t]]),q2t={components:{PersonalityEntry:lN},data(){return{personalities:[],githubApps:[],favorites:[],selectedCategory:"all",selectedApp:null,appCode:"",loading:!1,message:"",successMessage:!0,searchQuery:"",selectedFile:null,isUploading:!1,error:"",sortBy:"name",sortOrder:"asc"}},computed:{currentCategoryName(){return this.selectedCategory=="all"?"All Personalities":this.selectedCategory},configFile:{get(){return this.$store.state.config},set(n){this.$store.commit("setConfig",n)}},combinedApps(){this.personalities.map(e=>e.name);const n=new Map(this.personalities.map(e=>[e.name,{...e,installed:!0,existsInFolder:!0}]));return this.githubApps.forEach(e=>{n.has(e.name)||n.set(e.name,{...e,installed:!1,existsInFolder:!1})}),Array.from(n.values())},categories(){return[...new Set(this.combinedApps.map(n=>n.category))].sort((n,e)=>n.localeCompare(e))},filteredApps(){return this.combinedApps.filter(n=>{const e=n.name.toLowerCase().includes(this.searchQuery.toLowerCase())||n.author.toLowerCase().includes(this.searchQuery.toLowerCase())||n.description.toLowerCase().includes(this.searchQuery.toLowerCase()),t=this.selectedCategory==="all"||n.category===this.selectedCategory;return e&&t})},sortedAndFilteredApps(){return this.filteredApps.sort((n,e)=>{let t=0;switch(this.sortBy){case"name":t=n.name.localeCompare(e.name);break;case"author":t=n.author.localeCompare(e.author);break;case"date":t=new Date(n.creation_date)-new Date(e.creation_date);break;case"update":t=new Date(n.last_update_date)-new Date(e.last_update_date);break}return this.sortOrder==="asc"?t:-t})},favoriteApps(){return this.combinedApps.filter(n=>this.favorites.includes(n.uid))}},methods:{async onPersonalitySelected(n){if(console.log("on pers",n),this.isLoading&&this.$store.state.toast.showToast("Loading... please wait",4,!1),this.isLoading=!0,console.log("selecting ",n),n){if(n.selected){this.$store.state.toast.showToast("Personality already selected",4,!0),this.isLoading=!1;return}let e=n.language==null?n.full_path:n.full_path+":"+n.language;if(console.log("pth",e),n.isMounted&&this.configFile.personalities.includes(e)){const t=await this.select_personality(n);console.log("pers is mounted",t),t&&t.status&&t.active_personality_id>-1?this.$store.state.toast.showToast(`Selected personality:
 `+n.name,4,!0):this.$store.state.toast.showToast(`Error on select personality:
 `+n.name,4,!1),this.isLoading=!1}else console.log("mounting pers"),this.mountPersonality(n);Le(()=>{feather.replace()})}},onModelSelected(n){if(this.isLoading){this.$store.state.toast.showToast("Loading... please wait",4,!1);return}n&&(n.isInstalled?this.update_model(n.model.name).then(e=>{console.log("update_model",e),this.configFile.model_name=n.model.name,e.status?(this.$store.state.toast.showToast(`Selected model:
 `+n.name,4,!0),Le(()=>{feather.replace(),this.is_loading_zoo=!1}),this.updateModelsZoo(),this.api_get_req("get_model_status").then(t=>{this.$store.commit("setIsModelOk",t)})):(this.$store.state.toast.showToast(`Couldn't select model:
@@ -3990,4 +3990,4 @@ You have the freedom to give, sell, or keep the personas you create for yourself
 The possibilities are endless, they are now yours to mold and customize as you see fit.`),this.$store.dispatch("refreshPersonalitiesZoo")):this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder:
 Verify that the personality is not already copied there.`,4,!1)}).catch(e=>{this.$store.state.toast.showToast(`Personality couldn't be copied to the custom personalities folder:
 `,4,!1),console.error(e)})},async remountPersonality(n){await this.unmountPersonality(n),await this.mountPersonality(n)},onPersonalityReinstall(n){console.log("on reinstall ",n),this.isLoading=!0,console.log("Personality path:",n.personality.path),ie.post("/reinstall_personality",{client_id:this.$store.state.client_id,name:n.personality.path},{headers:this.posts_headers}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_personality",e),e.data.status?this.$store.state.toast.showToast("Personality reinstalled successfully!",4,!0):this.$store.state.toast.showToast("Could not reinstall personality",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$store.state.toast.showToast(`Could not reinstall personality
-`+e.message,4,!1),{status:!1}))},async handleOpenFolder(n){await ie.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.folder})},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},$2t={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},W2t={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},K2t={class:"flex flex-wrap items-center justify-between gap-4"},j2t={key:0},Q2t={key:1,class:"error"},X2t={class:"relative flex-grow max-w-md"},Z2t={class:"flex items-center space-x-4"},J2t=["value"],eRt={class:"flex items-center space-x-4"},tRt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},nRt={key:1},iRt={class:"container mx-auto px-4 flex flex-column pb-20"},sRt={key:0},rRt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},oRt={class:"container mx-auto px-4 flex flex-column pb-20"},aRt={class:"text-2xl font-bold my-8"},lRt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},cRt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},dRt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},uRt={class:"flex justify-between items-center mb-4"},pRt={class:"text-2xl font-bold"},fRt=["srcdoc"],_Rt={key:1,class:"text-center text-red-500"};function mRt(n,e,t,i,s,r){const o=nt("personality-entry");return T(),w("div",$2t,[l("nav",W2t,[l("div",K2t,[s.message?(T(),w("p",j2t,$(s.message),1)):B("",!0),s.error?(T(),w("p",Q2t,$(s.error),1)):B("",!0),l("div",X2t,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>s.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[ue,s.searchQuery]]),e[5]||(e[5]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",Z2t,[e[7]||(e[7]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>s.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=l("option",{value:"all"},"All Categories",-1)),(T(!0),w(Be,null,Xe(r.categories,a=>(T(),w("option",{key:a,value:a},$(a),9,J2t))),128))],512),[[It,s.selectedCategory]])]),l("div",eRt,[e[9]||(e[9]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>s.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[It,s.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},$(s.sortOrder==="asc"?"↑":"↓"),1)])])]),s.loading?(T(),w("div",tRt,e[10]||(e[10]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),w("div",nRt,[l("div",iRt,[r.favoriteApps.length>0&&!s.searchQuery?(T(),w("div",sRt,[e[11]||(e[11]=l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),l("div",rRt,[(T(!0),w(Be,null,Xe(r.favoriteApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":r.handleOpenFolder,"on-toggle-favorite":r.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):B("",!0)]),l("div",oRt,[l("h2",aRt,$(r.currentCategoryName)+" ("+$(r.sortedAndFilteredApps.length)+")",1),l("div",lRt,[(T(!0),w(Be,null,Xe(r.sortedAndFilteredApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":r.handleOpenFolder,"toggle-favorite":r.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),s.selectedApp?(T(),w("div",cRt,[l("div",dRt,[l("div",uRt,[l("h2",pRt,$(s.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),s.appCode?(T(),w("iframe",{key:0,srcdoc:s.appCode,class:"flex-grow border-none"},null,8,fRt)):(T(),w("p",_Rt,"Please install this app to view its code."))])])):B("",!0),s.message?(T(),w("div",{key:3,class:Ue(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":s.successMessage,"bg-red-100 text-red-800":!s.successMessage}])},$(s.message),3)):B("",!0),e[12]||(e[12]=l("div",{class:"h-20"},null,-1))])}const hRt=st(Y2t,[["render",mRt],["__scopeId","data-v-fcb6b036"]]),gRt=q3({history:S3("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:q2t},{path:"/personalities_view/",name:"PersonalitiesZoo",component:hRt},{path:"/auto_sd_view/",name:"AutoSD",component:Kwt},{path:"/comfyui_view/",name:"ComfyUI",component:Hwt},{path:"/playground/",name:"playground",component:IZe},{path:"/extensions/",name:"extensions",component:VZe},{path:"/help_view/",name:"help_view",component:OJe},{path:"/settings/",name:"settings",component:Cct},{path:"/training/",name:"training",component:Uct},{path:"/quantizing/",name:"quantizing",component:qct},{path:"/",name:"discussions",component:Bht},{path:"/interactive/",name:"interactive",component:$1t},{path:"/nodes/",name:"nodes",component:Uwt}]}),Ep=UD(w4);function bRt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Pi=uL({state(){return{personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await ie.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await zO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Ki("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await ie.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await ie.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await ie.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await ie.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ie.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await ie.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await ie.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ie.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await ie.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Ki("get_all_personalities"),i=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s<i.length;s++){const r=i[s],a=t[r].map(c=>{let d=!1;for(const _ of this.state.config.personalities)if(_.includes(r+"/"+c.folder))if(d=!0,_.includes(":")){const m=_.split(":");c.language=m[1]}else c.language=null;let u={};return u=c,u.category=r,u.full_path=r+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((s,r)=>s.name.localeCompare(r.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let i=0;i<this.state.config.personalities.length;i++){const s=this.state.config.personalities[i],r=s.split(":"),o=this.state.personalities.findIndex(a=>a.full_path==s||a.full_path==r[0]);if(o>=0){let a=bRt(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else t.push(i),console.log("Couldn't load personality : ",s)}for(let i=t.length-1;i>=0;i--)console.log("Removing personality : ",this.state.config.personalities[t[i]]),this.state.config.personalities.splice(t[i],1),this.state.config.active_personality_id>t[i]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id]||i.full_path+":"+i.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:n}){let e=await Ki("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(i=>i.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(i=>i.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){console.log("Fetching models");const t=(await ie.get("/get_available_models")).data.filter(i=>i.variants&&i.variants.length>0);console.log(`get_available_models: ${t}`),n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Ki("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await Ki("list_models");console.log(`Found ${e}`);let t=await Ki("get_active_model");console.log("Selected model ",t),t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const i=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);i!=-1&&n("setCurrentModel",this.state.modelsZoo[i])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Ki("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Ki("ram_usage")},async refreshVramUsage({commit:n}){const e=await Ki("vram_usage"),t=[];if(e.nb_gpus>0){for(let s=0;s<e.nb_gpus;s++){const r=e[`gpu_${s}_total_vram`],o=e[`gpu_${s}_used_vram`],a=e[`gpu_${s}_model`],c=o/r*100,d=r-o;t.push({total_vram:r,used_vram:o,gpu_index:s,gpu_model:a,percentage:c.toFixed(2),available_space:d})}const i={nb_gpus:e.nb_gpus,gpus:t};console.log("gpu usage: ",i),this.state.vramUsage=i}else{const i={nb_gpus:0,gpus:[]};console.log("gpu usage: ",i),this.state.vramUsage=i}}}});async function Ki(n){try{const e=await ie.get("/"+n);if(e)return e.data}catch(e){throw console.log(e.message,"api_get_req"),e}}async function zO(n,e){try{const t=await ie.post("/"+n,{client_id:e});if(t)return t.data}catch(t){console.log(t.message,"api_post_req - settings");return}}Ep.mixin({async created(){this.$store.state.api_get_req=Ki,this.$store.state.api_post_req=zO}});function HO(n,e=""){let t=[];for(const i in n)if(n.hasOwnProperty(i)){const s=e?`${e}/${i}`:i;if(typeof n[i]=="object"){const r=HO(n[i],s);t=t.concat(r)}else t.push(s)}return t}Ep.use(gRt);Ep.use(Pi);Ep.mount("#app");
+`+e.message,4,!1),{status:!1}))},async handleOpenFolder(n){await ie.post("/open_personality_folder",{client_id:this.$store.state.client_id,personality_folder:n.personality.folder})},showMessage(n,e){this.message=n,this.successMessage=e,setTimeout(()=>{this.message=""},3e3)},loadPersonalities(){this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},mounted(){this.loadFavoritesFromLocalStorage(),this.loading=!0,setTimeout(()=>{this.personalities=this.$store.state.personalities,this.loading=!1},500)}},Y2t={class:"app-zoo mb-100 pb-100 pt-12 background-color w-full p-6 overflow-y-auto h-screen scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},$2t={class:"panels-color shadow-lg rounded-lg p-4 max-w-4xl mx-auto mb-8"},W2t={class:"flex flex-wrap items-center justify-between gap-4"},K2t={key:0},j2t={key:1,class:"error"},Q2t={class:"relative flex-grow max-w-md"},X2t={class:"flex items-center space-x-4"},Z2t=["value"],J2t={class:"flex items-center space-x-4"},eRt={key:0,class:"flex justify-center items-center space-x-2 my-8","aria-live":"polite"},tRt={key:1},nRt={class:"container mx-auto px-4 flex flex-column pb-20"},iRt={key:0},sRt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},rRt={class:"container mx-auto px-4 flex flex-column pb-20"},oRt={class:"text-2xl font-bold my-8"},aRt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 mb-12"},lRt={key:2,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 overflow-y-auto"},cRt={class:"bg-white rounded-lg p-6 w-11/12 h-5/6 flex flex-col"},dRt={class:"flex justify-between items-center mb-4"},uRt={class:"text-2xl font-bold"},pRt=["srcdoc"],fRt={key:1,class:"text-center text-red-500"};function _Rt(n,e,t,i,s,r){const o=nt("personality-entry");return T(),w("div",Y2t,[l("nav",$2t,[l("div",W2t,[s.message?(T(),w("p",K2t,$(s.message),1)):B("",!0),s.error?(T(),w("p",j2t,$(s.error),1)):B("",!0),l("div",Q2t,[k(l("input",{"onUpdate:modelValue":e[0]||(e[0]=a=>s.searchQuery=a),placeholder:"Search personalities...",class:"w-full border-b-2 border-gray-300 px-4 py-2 pl-10 focus:outline-none focus:border-blue-500 transition duration-300 ease-in-out","aria-label":"Search personalities"},null,512),[[ue,s.searchQuery]]),e[5]||(e[5]=l("svg",{class:"w-5 h-5 text-gray-400 absolute left-3 top-1/2 transform -translate-y-1/2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})],-1))]),l("div",X2t,[e[7]||(e[7]=l("label",{for:"category-select",class:"font-semibold"},"Category:",-1)),k(l("select",{id:"category-select","onUpdate:modelValue":e[1]||(e[1]=a=>s.selectedCategory=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},[e[6]||(e[6]=l("option",{value:"all"},"All Categories",-1)),(T(!0),w(Be,null,Xe(r.categories,a=>(T(),w("option",{key:a,value:a},$(a),9,Z2t))),128))],512),[[It,s.selectedCategory]])]),l("div",J2t,[e[9]||(e[9]=l("label",{for:"sort-select",class:"font-semibold"},"Sort by:",-1)),k(l("select",{id:"sort-select","onUpdate:modelValue":e[2]||(e[2]=a=>s.sortBy=a),class:"border-2 border-gray-300 rounded-md px-2 py-1"},e[8]||(e[8]=[l("option",{value:"name"},"Name",-1),l("option",{value:"author"},"Author",-1),l("option",{value:"date"},"Creation Date",-1),l("option",{value:"update"},"Last Update",-1)]),512),[[It,s.sortBy]]),l("button",{onClick:e[3]||(e[3]=(...a)=>r.toggleSortOrder&&r.toggleSortOrder(...a)),class:"btn btn-secondary"},$(s.sortOrder==="asc"?"↑":"↓"),1)])])]),s.loading?(T(),w("div",eRt,e[10]||(e[10]=[l("div",{class:"animate-spin rounded-full h-10 w-10 border-t-2 border-b-2 border-blue-500"},null,-1),l("span",{class:"text-xl text-gray-700 font-semibold"},"Loading...",-1)]))):(T(),w("div",tRt,[l("div",nRt,[r.favoriteApps.length>0&&!s.searchQuery?(T(),w("div",iRt,[e[11]||(e[11]=l("h2",{class:"text-2xl font-bold my-8"},"Favorite Apps",-1)),l("div",sRt,[(T(!0),w(Be,null,Xe(r.favoriteApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":r.handleOpenFolder,"on-toggle-favorite":r.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","on-toggle-favorite"]))),128))])])):B("",!0)]),l("div",rRt,[l("h2",oRt,$(r.currentCategoryName)+" ("+$(r.sortedAndFilteredApps.length)+")",1),l("div",aRt,[(T(!0),w(Be,null,Xe(r.sortedAndFilteredApps,a=>(T(),at(o,{ref_for:!0,ref:"personalitiesZoo",key:a.uid,personality:a,select_language:!0,full_path:a.full_path,selected:r.configFile.active_personality_id==r.configFile.personalities.findIndex(c=>c===a.full_path||c===a.full_path+":"+a.language),"on-selected":r.onPersonalitySelected,"on-mount":r.mountPersonality,"on-un-mount":r.unmountPersonality,"on-remount":r.remountPersonality,"on-edit":r.editPersonality,"on-copy-to-custom":r.copyToCustom,"on-reinstall":r.onPersonalityReinstall,"on-settings":n.onSettingsPersonality,"on-copy-personality-name":n.onCopyPersonalityName,"on-copy-to_custom":n.onCopyToCustom,"on-open-folder":r.handleOpenFolder,"toggle-favorite":r.toggleFavorite},null,8,["personality","full_path","selected","on-selected","on-mount","on-un-mount","on-remount","on-edit","on-copy-to-custom","on-reinstall","on-settings","on-copy-personality-name","on-copy-to_custom","on-open-folder","toggle-favorite"]))),128))])])])),s.selectedApp?(T(),w("div",lRt,[l("div",cRt,[l("div",dRt,[l("h2",uRt,$(s.selectedApp.name),1),l("button",{onClick:e[4]||(e[4]=(...a)=>n.backToZoo&&n.backToZoo(...a)),class:"bg-gray-300 hover:bg-gray-400 px-4 py-2 rounded-lg transition duration-300 ease-in-out"},"Close")]),s.appCode?(T(),w("iframe",{key:0,srcdoc:s.appCode,class:"flex-grow border-none"},null,8,pRt)):(T(),w("p",fRt,"Please install this app to view its code."))])])):B("",!0),s.message?(T(),w("div",{key:3,class:Ue(["fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-md",{"bg-green-100 text-green-800":s.successMessage,"bg-red-100 text-red-800":!s.successMessage}])},$(s.message),3)):B("",!0),e[12]||(e[12]=l("div",{class:"h-20"},null,-1))])}const mRt=st(q2t,[["render",_Rt],["__scopeId","data-v-fcb6b036"]]),hRt=q3({history:S3("/"),routes:[{path:"/apps_view/",name:"AppsZoo",component:H2t},{path:"/personalities_view/",name:"PersonalitiesZoo",component:mRt},{path:"/auto_sd_view/",name:"AutoSD",component:Wwt},{path:"/comfyui_view/",name:"ComfyUI",component:zwt},{path:"/playground/",name:"playground",component:OZe},{path:"/extensions/",name:"extensions",component:GZe},{path:"/help_view/",name:"help_view",component:NJe},{path:"/settings/",name:"settings",component:xct},{path:"/training/",name:"training",component:Fct},{path:"/quantizing/",name:"quantizing",component:Hct},{path:"/",name:"discussions",component:Uht},{path:"/interactive/",name:"interactive",component:Y1t},{path:"/nodes/",name:"nodes",component:Fwt}]}),Ep=UD(C4);function gRt(n){const e={};for(const t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}const Pi=uL({state(){return{personalities_ready:!1,is_rt_on:!1,language:"english",languages:[],currentTheme:"",personality_editor:null,showPersonalityEditor:!1,selectedPersonality:null,currentPersonConfig:{ai_name:"",ai_author:"",ai_category:"",ai_language:"",ai_description:"",ai_conditionning:"",ai_disclaimer:"",ai_icon:null},posts_headers:{accept:"application/json","Content-Type":"application/json"},client_id:"",leftPanelCollapsed:!1,rightPanelCollapsed:!0,view_mode:localStorage.getItem("lollms_webui_view_mode")||"compact",yesNoDialog:null,universalForm:null,toast:null,news:null,messageBox:null,api_get_req:null,api_post_req:null,startSpeechRecognition:null,ready:!1,loading_infos:"",loading_progress:0,version:"unknown",settingsChanged:!1,isConnected:!1,isModelOk:!1,isGenerating:!1,config:null,mountedPers:null,mountedPersArr:[],bindingsZoo:[],modelsArr:[],selectedModel:null,personalities:[],diskUsage:null,ramUsage:null,vramUsage:null,modelsZoo:[],installedModels:[],installedBindings:[],currentModel:null,currentBinding:null,databases:[]}},mutations:{setLeftPanelCollapsed(n,e){n.leftPanelCollapsed=e,console.log(`Saving the status of left panel to ${e}`),localStorage.setItem("lollms_webui_left_panel_collapsed",e)},setRightPanelCollapsed(n,e){n.rightPanelCollapsed=e,console.log(`Saving the status of right panel to ${e}`),localStorage.setItem("lollms_webui_right_panel_collapsed",e)},setViewMode(n,e){n.view_mode=e,localStorage.setItem("lollms_webui_view_mode",e)},setpersonalitiesReady(n,e){n.personalities_ready=e},setisRTOn(n,e){n.is_rt_on=e},setLanguages(n,e){n.languages=e},setLanguage(n,e){n.language=e},setIsReady(n,e){n.ready=e},setIsConnected(n,e){n.isConnected=e},setIsModelOk(n,e){n.isModelOk=e},setIsGenerating(n,e){n.isGenerating=e},setConfig(n,e){n.config=e},setPersonalities(n,e){n.personalities=e},setMountedPers(n,e){n.mountedPers=e},setMountedPersArr(n,e){n.mountedPersArr=e},setbindingsZoo(n,e){n.bindingsZoo=e},setModelsArr(n,e){n.modelsArr=e},setselectedModel(n,e){n.selectedModel=e},setDiskUsage(n,e){n.diskUsage=e},setRamUsage(n,e){n.ramUsage=e},setVramUsage(n,e){n.vramUsage=e},setModelsZoo(n,e){n.modelsZoo=e},setCurrentBinding(n,e){n.currentBinding=e},setCurrentModel(n,e){n.currentModel=e},setDatabases(n,e){n.databases=e},setTheme(n){this.currentTheme=n}},getters:{getLeftPanelCollapsed(n){return n.leftPanelCollapsed},getRightPanelCollapsed(n){return n.rightPanelCollapsed},getViewMode(n){return n.view_mode},getpersonalitiesReady(n){return n.personalities_ready},getisRTOn(n){return n.is_rt_on},getLanguages(n){return n.languages},getLanguage(n){return n.language},getIsConnected(n){return n.isConnected},getIsModelOk(n){return n.isModelOk},getIsGenerating(n){return n.isGenerating},getConfig(n){return n.config},getPersonalities(n){return n.personalities},getMountedPersArr(n){return n.mountedPersArr},getMountedPers(n){return n.mountedPers},getbindingsZoo(n){return n.bindingsZoo},getModelsArr(n){return n.modelsArr},getDiskUsage(n){return n.diskUsage},getRamUsage(n){return n.ramUsage},getVramUsage(n){return n.vramUsage},getDatabasesList(n){return n.databases},getModelsZoo(n){return n.modelsZoo},getCyrrentBinding(n){return n.currentBinding},getCurrentModel(n){return n.currentModel}},actions:{async getVersion(){try{let n=await ie.get("/get_lollms_webui_version",{});n&&(this.state.version=n.data)}catch{console.error("Coudln't get version")}},async refreshConfig({commit:n}){console.log("Fetching configuration");try{console.log("Fetching configuration with client id: ",this.state.client_id);const e=await zO("get_config",this.state.client_id);e.active_personality_id<0&&(e.active_personality_id=0);let t=e.personalities[e.active_personality_id].split("/");e.personality_category=t[0],e.personality_folder=t[1],console.log("Recovered config"),console.log(e),console.log("Committing config"),console.log(e),console.log(this.state.config),n("setConfig",e)}catch(e){console.log(e.message,"refreshConfig")}},async refreshDatabase({commit:n}){let e=await Ki("list_databases");console.log("databases:",e),n("setDatabases",e)},async fetchisRTOn({commit:n}){const t=(await ie.get("/is_rt_on")).data.status;n("setisRTOn",t)},async fetchLanguages({commit:n}){console.log("get_personality_languages_list",this.state.client_id);const e=await ie.post("/get_personality_languages_list",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("languages",t),n("setLanguages",t)},async fetchLanguage({commit:n}){console.log("get_personality_language",this.state.client_id);const e=await ie.post("/get_personality_language",{client_id:this.state.client_id});console.log("response",e);const t=e.data;console.log("language",t),n("setLanguage",t)},async changeLanguage({commit:n},e){console.log("Changing language to ",e);let t=await ie.post("/set_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ie.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await ie.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async deleteLanguage({commit:n},e){console.log("Deleting ",e);let t=await ie.post("/del_personality_language",{client_id:this.state.client_id,language:e});console.log("get_personality_languages_list",this.state.client_id),t=await ie.post("/get_personality_languages_list",{client_id:this.state.client_id}),console.log("response",t);const i=t.data;console.log("languages",i),n("setLanguages",i),t=await ie.post("/get_personality_language",{client_id:this.state.client_id}),console.log("response",t);const s=t.data;console.log("language",s),n("setLanguage",s),console.log("Language changed successfully:",t.data.message)},async refreshPersonalitiesZoo({commit:n}){let e=[];const t=await Ki("get_all_personalities"),i=Object.keys(t);console.log("Personalities recovered:"+this.state.config.personalities);for(let s=0;s<i.length;s++){const r=i[s],a=t[r].map(c=>{let d=!1;for(const _ of this.state.config.personalities)if(_.includes(r+"/"+c.folder))if(d=!0,_.includes(":")){const m=_.split(":");c.language=m[1]}else c.language=null;let u={};return u=c,u.category=r,u.full_path=r+"/"+c.folder,u.isMounted=d,u});e.length==0?e=a:e=e.concat(a)}e.sort((s,r)=>s.name.localeCompare(r.name)),n("setPersonalities",e),console.log("Done loading personalities")},refreshMountedPersonalities({commit:n}){this.state.config.active_personality_id<0&&(this.state.config.active_personality_id=0);let e=[];const t=[];for(let i=0;i<this.state.config.personalities.length;i++){const s=this.state.config.personalities[i],r=s.split(":"),o=this.state.personalities.findIndex(a=>a.full_path==s||a.full_path==r[0]);if(o>=0){let a=gRt(this.state.personalities[o]);r.length>1&&(a.language=r[1]),a?e.push(a):e.push(this.state.personalities[this.state.personalities.findIndex(c=>c.full_path=="generic/lollms")])}else t.push(i),console.log("Couldn't load personality : ",s)}for(let i=t.length-1;i>=0;i--)console.log("Removing personality : ",this.state.config.personalities[t[i]]),this.state.config.personalities.splice(t[i],1),this.state.config.active_personality_id>t[i]&&(this.state.config.active_personality_id-=1);n("setMountedPersArr",e),this.state.mountedPers=this.state.personalities[this.state.personalities.findIndex(i=>i.full_path==this.state.config.personalities[this.state.config.active_personality_id]||i.full_path+":"+i.language==this.state.config.personalities[this.state.config.active_personality_id])]},async refreshBindings({commit:n}){let e=await Ki("list_bindings");console.log("Loaded bindings zoo :",e),this.state.installedBindings=e.filter(i=>i.installed),console.log("Loaded bindings zoo ",this.state.installedBindings),n("setbindingsZoo",e);const t=e.findIndex(i=>i.name==this.state.config.binding_name);t!=-1&&n("setCurrentBinding",e[t])},async refreshModelsZoo({commit:n}){console.log("Fetching models");const t=(await ie.get("/get_available_models")).data.filter(i=>i.variants&&i.variants.length>0);console.log(`get_available_models: ${t}`),n("setModelsZoo",t)},async refreshModelStatus({commit:n}){let e=await Ki("get_model_status");n("setIsModelOk",e.status)},async refreshModels({commit:n}){console.log("Fetching models");let e=await Ki("list_models");console.log(`Found ${e}`);let t=await Ki("get_active_model");console.log("Selected model ",t),t!=null&&n("setselectedModel",t.model),n("setModelsArr",e),console.log("setModelsArr",e),console.log("this.state.modelsZoo",this.state.modelsZoo),this.state.modelsZoo.map(s=>{s.isInstalled=e.includes(s.name)}),this.state.installedModels=this.state.modelsZoo.filter(s=>s.isInstalled);const i=this.state.modelsZoo.findIndex(s=>s.name==this.state.config.model_name);i!=-1&&n("setCurrentModel",this.state.modelsZoo[i])},async refreshDiskUsage({commit:n}){this.state.diskUsage=await Ki("disk_usage")},async refreshRamUsage({commit:n}){this.state.ramUsage=await Ki("ram_usage")},async refreshVramUsage({commit:n}){const e=await Ki("vram_usage"),t=[];if(e.nb_gpus>0){for(let s=0;s<e.nb_gpus;s++){const r=e[`gpu_${s}_total_vram`],o=e[`gpu_${s}_used_vram`],a=e[`gpu_${s}_model`],c=o/r*100,d=r-o;t.push({total_vram:r,used_vram:o,gpu_index:s,gpu_model:a,percentage:c.toFixed(2),available_space:d})}const i={nb_gpus:e.nb_gpus,gpus:t};console.log("gpu usage: ",i),this.state.vramUsage=i}else{const i={nb_gpus:0,gpus:[]};console.log("gpu usage: ",i),this.state.vramUsage=i}}}});async function Ki(n){try{const e=await ie.get("/"+n);if(e)return e.data}catch(e){throw console.log(e.message,"api_get_req"),e}}async function zO(n,e){try{const t=await ie.post("/"+n,{client_id:e});if(t)return t.data}catch(t){console.log(t.message,"api_post_req - settings");return}}Ep.mixin({async created(){this.$store.state.api_get_req=Ki,this.$store.state.api_post_req=zO}});function HO(n,e=""){let t=[];for(const i in n)if(n.hasOwnProperty(i)){const s=e?`${e}/${i}`:i;if(typeof n[i]=="object"){const r=HO(n[i],s);t=t.concat(r)}else t.push(s)}return t}Ep.use(hRt);Ep.use(Pi);Ep.mount("#app");
diff --git a/web/dist/assets/index-DgI2-Yh4.css b/web/dist/assets/index-uovuhICQ.css
similarity index 98%
rename from web/dist/assets/index-DgI2-Yh4.css
rename to web/dist/assets/index-uovuhICQ.css
index 36fda7d5..0fe08afc 100644
--- a/web/dist/assets/index-DgI2-Yh4.css
+++ b/web/dist/assets/index-uovuhICQ.css
@@ -1,4 +1,4 @@
-@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap";.topbar-container[data-v-b52210ee]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-b52210ee]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-content[data-v-b52210ee]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-b52210ee]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-b52210ee]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-b52210ee]{transform:scale(1.2)}.placeholder[data-v-b52210ee]{height:10px}.toolbar-button[data-v-b52210ee]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-b52210ee]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-b52210ee]{position:relative;width:100%}.topbar[data-v-b52210ee]{position:fixed;top:0;left:0;width:100%;background-color:#fff;transition:transform .3s ease-in-out;z-index:40}.topbar-hidden[data-v-b52210ee]{transform:translateY(-100%)}.hover-zone[data-v-b52210ee]{opacity:0}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ff9da4}.hljs-number,.hljs-built_in,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#d1f1a9}.hljs-title,.hljs-section{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
+@import"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap";.topbar-container[data-v-95f4bcd6]{position:fixed;top:0;left:0;right:0;z-index:1000}.topbar[data-v-95f4bcd6]{background-color:#ffffff1a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .3s ease-in-out;display:flex;justify-content:center}.topbar-hidden[data-v-95f4bcd6]{transform:translateY(-100%)}.topbar-content[data-v-95f4bcd6]{display:flex;justify-content:space-between;align-items:center;max-width:1200px;width:100%}.pin-button[data-v-95f4bcd6]{background-color:transparent;border:none;cursor:pointer;padding:5px;display:flex;align-items:center;justify-content:center}.pin-button svg[data-v-95f4bcd6]{width:24px;height:24px;transition:transform .3s ease}.pin-button:hover svg[data-v-95f4bcd6]{transform:scale(1.2)}.placeholder[data-v-95f4bcd6]{height:10px}.toolbar-button[data-v-95f4bcd6]{cursor:pointer;border-style:none;background-color:transparent;padding:.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.toolbar-button[data-v-95f4bcd6]:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.topbar-container[data-v-95f4bcd6]{position:relative;width:100%}.hover-zone[data-v-95f4bcd6]{opacity:0}.toastItem-enter-active[data-v-46f379e5],.toastItem-leave-active[data-v-46f379e5]{transition:all .5s ease}.toastItem-enter-from[data-v-46f379e5],.toastItem-leave-to[data-v-46f379e5]{opacity:0;transform:translate(-30px)}.hljs-comment,.hljs-quote{color:#7285b7}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-id,.hljs-selector-class,.hljs-regexp,.hljs-deletion{color:#ff9da4}.hljs-number,.hljs-built_in,.hljs-literal,.hljs-type,.hljs-params,.hljs-meta,.hljs-link{color:#ffc58f}.hljs-attribute{color:#ffeead}.hljs-string,.hljs-symbol,.hljs-bullet,.hljs-addition{color:#d1f1a9}.hljs-title,.hljs-section{color:#bbdaff}.hljs-keyword,.hljs-selector-tag{color:#ebbbff}.hljs{background:#002451;color:#fff}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
   Theme: Tokyo-night-Dark
   origin: https://github.com/enkia/tokyo-night-vscode-theme
   Description: Original highlight.js style
diff --git a/web/dist/index.html b/web/dist/index.html
index 67149a96..2bd771ea 100644
--- a/web/dist/index.html
+++ b/web/dist/index.html
@@ -6,8 +6,8 @@
     <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>LoLLMS WebUI</title>
-    <script type="module" crossorigin src="/assets/index-TthUmaOU.js"></script>
-    <link rel="stylesheet" crossorigin href="/assets/index-DgI2-Yh4.css">
+    <script type="module" crossorigin src="/assets/index-GJ0H796G.js"></script>
+    <link rel="stylesheet" crossorigin href="/assets/index-uovuhICQ.css">
   </head>
   <body>
     <div id="app"></div>

diff --git a/web/src/components/TopBar.vue b/web/src/components/TopBar.vue
index ce4186df..c5431d52 100644
--- a/web/src/components/TopBar.vue
+++ b/web/src/components/TopBar.vue
@@ -1,6 +1,6 @@
 
 <template>
-  <div class="topbar-container">
+  <div ref="topbar-container" :class="['topbar-container', {'h-0': !isPinned}]">
     <!-- Add a thin strip at the top that triggers the hover -->
     <div 
       class="hover-zone" 
@@ -30,7 +30,7 @@
         <div class="toolbar-button" @mouseleave="hideInfosMenu">
             <div class="relative inline-block">
                 <!-- Infos menu positioned above the button -->
-                <div v-show="isInfosMenuVisible" @mouseenter="showInfosMenu" class="absolute m-0 p-0 z-50 top-full right-0 transform bg-white dark:bg-gray-900 rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none transition-all duration-300 ease-out mb-2">
+                <div v-show="isInfosMenuVisible" @mouseenter="showInfosMenu" >
                     <div class="p-4 container flex flex-col lg:flex-row items-center gap-2">
                         <!-- SYSTEM STATUS -->
                         <div class="flex gap-3 flex-1 items-center justify-end">
@@ -95,7 +95,7 @@
 
                 <!-- Info Button -->
                 <div @mouseenter="showInfosMenu" class="infos-hover-area">
-                    <button class="w-8 h-8">
+                    <button class="w-6 h-6">
                         <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="w-full h-full">
                             <!-- Circle background -->
                             <circle cx="12.5" cy="12.5" r="11.25" fill="#3498db"/>
@@ -108,12 +108,11 @@
                 </div>
             </div>      
         </div>
-        <div 
-                v-if="is_fun_mode" 
+        <div v-if="is_fun_mode" 
                 title="Fun mode is on, press to turn off" 
                 class="w-8 h-8 cursor-pointer text-green-500 dark:text-green-400 hover:text-green-600 dark:hover:text-green-300 transition-colors duration-300"
                 @click="fun_mode_off()"
-            >
+        >
                 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-full h-full animate-bounce">
                 <circle cx="12" cy="12" r="10"></circle>
                 <path d="M8 14s1.5 2 4 2 4-2 4-2"></path>
@@ -262,9 +261,10 @@ export default {
     },        
 
     showInfosMenu() {
-      console.log("showing menu")
         this.isInfosMenuVisible = true;
-    },
+        console.log("showing menu")
+        console.log(this.isInfosMenuVisible)
+      },
     hideInfosMenu() {
         this.isInfosMenuVisible = false;
     },    
@@ -404,20 +404,6 @@ export default {
   width: 100%;
 }
 
-.topbar {
-  position: fixed;
-  top: 0;
-  left: 0;
-  width: 100%;
-  background-color: white; /* or your preferred background color */
-  transition: transform 0.3s ease-in-out;
-  z-index: 40;
-}
-
-.topbar-hidden {
-  transform: translateY(-100%);
-}
-
 .hover-zone {
   opacity: 0;
 }