lollms-webui/web/dist/assets/index-00e35e66.js

53 lines
1.5 MiB
JavaScript
Raw Normal View History

2023-05-26 14:21:00 +00:00
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Md(t,e){const n=Object.create(null),r=t.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return e?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function tr(t){if(_e(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],o=Be(r)?fy(r):tr(r);if(o)for(const i in o)e[i]=o[i]}return e}else{if(Be(t))return t;if(Le(t))return t}}const py=/;(?![^(]*\))/g,my=/:([^]+)/,gy=/\/\*.*?\*\//gs;function fy(t){const e={};return t.replace(gy,"").split(py).forEach(n=>{if(n){const r=n.split(my);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Ge(t){let e="";if(Be(t))e=t;else if(_e(t))for(let n=0;n<t.length;n++){const r=Ge(t[n]);r&&(e+=r+" ")}else if(Le(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Ey="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hy=Md(Ey);function BE(t){return!!t||t===""}function Sy(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=ui(t[r],e[r]);return n}function ui(t,e){if(t===e)return!0;let n=Yu(t),r=Yu(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Br(t),r=Br(e),n||r)return t===e;if(n=_e(t),r=_e(e),n||r)return n&&r?Sy(t,e):!1;if(n=Le(t),r=Le(e),n||r){if(!n||!r)return!1;const o=Object.keys(t).length,i=Object.keys(e).length;if(o!==i)return!1;for(const s in t){const a=t.hasOwnProperty(s),c=e.hasOwnProperty(s);if(a&&!c||!a&&c||!ui(t[s],e[s]))return!1}}return String(t)===String(e)}function GE(t,e){return t.findIndex(n=>ui(n,e))}const ve=t=>Be(t)?t:t==null?"":_e(t)||Le(t)&&(t.toString===HE||!Te(t.toString))?JSON.stringify(t,qE,2):String(t),qE=(t,e)=>e&&e.__v_isRef?qE(t,e.value):Qn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:pi(e)?{[`Set(${e.size})`]:[...e.values()]}:Le(e)&&!_e(e)&&!VE(e)?String(e):e,Pe={},Kn=[],Nt=()=>{},by=()=>!1,Ty=/^on[^a-z]/,_i=t=>Ty.test(t),Ld=t=>t.startsWith("onUpdate:"),We=Object.assign,kd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},yy=Object.prototype.hasOwnProperty,Ne=(t,e)=>yy.call(t,e),_e=Array.isArray,Qn=t=>pr(t)==="[object Map]",pi=t=>pr(t)==="[object Set]",Yu=t=>pr(t)==="[object Date]",vy=t=>pr(t)==="[object RegExp]",Te=t=>typeof t=="function",Be=t=>typeof t=="string",Br=t=>typeof t=="symbol",Le=t=>t!==null&&typeof t=="object",YE=t=>Le(t)&&Te(t.then)&&Te(t.catch),HE=Object.prototype.toString,pr=t=>HE.call(t),Cy=t=>pr(t).slice(8,-1),VE=t=>pr(t)==="[object Object]",Pd=t=>Be(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Do=Md(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mi=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Ry=/-(\w)/g,Ut=mi(t=>t.replace(Ry,(e,n)=>n?n.toUpperCase():"")),Oy=/\B([A-Z])/g,Bn=mi(t=>t.replace(Oy,"-$1").toLowerCase()),gi=mi(t=>t.charAt(0).toUpperCase()+t.slice(1)),zi=mi(t=>t?`on${gi(t)}`:""),Gr=(t,e)=>!Object.is(t,e),jn=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},Vo=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},Zl=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ny=t=>{const e=Be(t)?Number(t):NaN;return isNaN(e)?t:e};let Hu;const Ay=()=>Hu||(Hu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let vt;class Iy{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=vt,!e&&vt&&(this.index=(vt.scopes||(vt.scopes=[])).push(this
2023-05-25 18:13:28 +00:00
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
2023-05-26 14:21:00 +00:00
*/const zn=typeof window<"u";function jC(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const we=Object.assign;function es(t,e){const n={};for(const r in e){const o=e[r];n[r]=At(o)?o.map(t):t(o)}return n}const Mr=()=>{},At=Array.isArray,XC=/\/$/,ZC=t=>t.replace(XC,"");function ts(t,e,n="/"){let r,o={},i="",s="";const a=e.indexOf("#");let c=e.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(r=e.slice(0,c),i=e.slice(c+1,a>-1?a:e.length),o=t(i)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=nR(r??e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function JC(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function C_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function eR(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ir(e.matched[r],n.matched[o])&&Wh(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function ir(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Wh(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!tR(t[n],e[n]))return!1;return!0}function tR(t,e){return At(t)?R_(t,e):At(e)?R_(e,t):t===e}function R_(t,e){return At(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function nR(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let o=n.length-1,i,s;for(i=0;i<r.length;i++)if(s=r[i],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Qr;(function(t){t.pop="pop",t.push="push"})(Qr||(Qr={}));var Lr;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Lr||(Lr={}));function rR(t){if(!t)if(zn){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),ZC(t)}const oR=/^[^#]+#/;function iR(t,e){return t.replace(oR,"#")+e}function sR(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const Oi=()=>({left:window.pageXOffset,top:window.pageYOffset});function aR(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=sR(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function O_(t,e){return(history.state?history.state.position-e:-1)+t}const _d=new Map;function cR(t,e){_d.set(t,e)}function lR(t){const e=_d.get(t);return _d.delete(t),e}let dR=()=>location.protocol+"//"+location.host;function Kh(t,e){const{pathname:n,search:r,hash:o}=e,i=t.indexOf("#");if(i>-1){let a=o.includes(t.slice(i))?t.slice(i).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),C_(c,"")}return C_(n,t)+r+o}function uR(t,e,n,r){let o=[],i=[],s=null;const a=({state:_})=>{const p=Kh(t,location),m=n.value,g=e.value;let h=0;if(_){if(n.value=p,e.value=_,s&&s===m){s=null;return}h=g?_.position-g.position:0}else r(p);o.forEach(f=>{f(n.value,m,{delta:h,type:Qr.pop,direction:h?h>0?Lr.forward:Lr.back:Lr.unknown})})};function c(){s=n.value}function l(_){o.push(_);const p=()=>{const m=o.indexOf(_);m>-1&&o.splice(m,1)};return i.push(p),p}function d(){const{history:_}=window;_.state&&_.replaceState(we({},_.state,{scroll:Oi()}),"")}function u(){for(const _ of i)_();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:l,destroy:u}}function N_(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?Oi():null}}function _R(t){const{history:e,location:n}=window,r={value:Kh(t,n)},o={value:e.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(c,l,d){const u=t.indexOf("#"
2023-05-25 18:13:28 +00:00
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
2023-05-26 14:21:00 +00:00
*/(function(){var a=function(){function c(){}c.prototype=Object.create(null);function l(f,E){for(var b=E.length,T=0;T<b;++T)g(f,E[T])}var d={}.hasOwnProperty;function u(f,E){f[E]=!0}function _(f,E){for(var b in E)d.call(E,b)&&(f[b]=!!E[b])}var p=/\s+/;function m(f,E){for(var b=E.split(p),T=b.length,R=0;R<T;++R)f[b[R]]=!0}function g(f,E){if(E){var b=typeof E;b==="string"?m(f,E):Array.isArray(E)?l(f,E):b==="object"?_(f,E):b==="number"&&u(f,E)}}function h(){for(var f=arguments.length,E=Array(f),b=0;b<f;b++)E[b]=arguments[b];var T=new c;l(T,E);var R=[];for(var v in T)T[v]&&R.push(v);return R.join(" ")}return h}();typeof n<"u"&&n.exports?n.exports=a:(i=[],s=function(){return a}.apply(r,i),s!==void 0&&(n.exports=s))})()},"./node_modules/core-js/es/array/from.js":function(n,r,o){o("./node_modules/core-js/modules/es.string.iterator.js"),o("./node_modules/core-js/modules/es.array.from.js");var i=o("./node_modules/core-js/internals/path.js");n.exports=i.Array.from},"./node_modules/core-js/internals/a-function.js":function(n,r){n.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"./node_modules/core-js/internals/an-object.js":function(n,r,o){var i=o("./node_modules/core-js/internals/is-object.js");n.exports=function(s){if(!i(s))throw TypeError(String(s)+" is not an object");return s}},"./node_modules/core-js/internals/array-from.js":function(n,r,o){var i=o("./node_modules/core-js/internals/bind-context.js"),s=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),c=o("./node_modules/core-js/internals/is-array-iterator-method.js"),l=o("./node_modules/core-js/internals/to-length.js"),d=o("./node_modules/core-js/internals/create-property.js"),u=o("./node_modules/core-js/internals/get-iterator-method.js");n.exports=function(p){var m=s(p),g=typeof this=="function"?this:Array,h=arguments.length,f=h>1?arguments[1]:void 0,E=f!==void 0,b=0,T=u(m),R,v,I,N;if(E&&(f=i(f,h>2?arguments[2]:void 0,2)),T!=null&&!(g==Array&&c(T)))for(N=T.call(m),v=new g;!(I=N.next()).done;b++)d(v,b,E?a(N,f,[I.value,b],!0):I.value);else for(R=l(m.length),v=new g(R);R>b;b++)d(v,b,E?f(m[b],b):m[b]);return v.length=b,v}},"./node_modules/core-js/internals/array-includes.js":function(n,r,o){var i=o("./node_modules/core-js/internals/to-indexed-object.js"),s=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js");n.exports=function(c){return function(l,d,u){var _=i(l),p=s(_.length),m=a(u,p),g;if(c&&d!=d){for(;p>m;)if(g=_[m++],g!=g)return!0}else for(;p>m;m++)if((c||m in _)&&_[m]===d)return c||m||0;return!c&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(n,r,o){var i=o("./node_modules/core-js/internals/a-function.js");n.exports=function(s,a,c){if(i(s),a===void 0)return s;switch(c){case 0:return function(){return s.call(a)};case 1:return function(l){return s.call(a,l)};case 2:return function(l,d){return s.call(a,l,d)};case 3:return function(l,d,u){return s.call(a,l,d,u)}}return function(){return s.apply(a,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(n,r,o){var i=o("./node_modules/core-js/internals/an-object.js");n.exports=function(s,a,c,l){try{return l?a(i(c)[0],c[1]):a(c)}catch(u){var d=s.return;throw d!==void 0&&i(d.call(s)),u}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(n,r,o){var i=o("./node_modules/core-js/internals/well-known-symbol.js"),s=i("iterator"),a=!1;try{var c=0,l={next:function(){return{done:!!c++}},return:function(){a=!0}};l[s]=function(){return this},Array.from(l,function(){throw 2})}catch{}n.exports=function(d,u){if(!u&&!a)return!1;var _=!1;try{var p={};p[s]=function(){return{next:function(){return{done:_=!0}}}},d(p)}catch{}return _}},"./node_modules/core-js/internals/classof-raw.js":function(n,r){var o={}.toString;n.exports=function(i){return o.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,r,o){var i=o("./node_modules/core-js/internals/classof-r
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&yN[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},z_=Symbol("internals");function Cr(t){return t&&String(t).trim().toLowerCase()}function Po(t){return t===!1||t==null?t:G.isArray(t)?t.map(Po):String(t)}function CN(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const RN=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function os(t,e,n,r,o){if(G.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!G.isString(e)){if(G.isString(r))return e.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(e)}}function ON(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function NN(t,e){const n=G.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class Di{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,c,l){const d=Cr(c);if(!d)throw new Error("header name must be a non-empty string");const u=G.findKey(o,d);(!u||o[u]===void 0||l===!0||l===void 0&&o[u]!==!1)&&(o[u||c]=Po(a))}const s=(a,c)=>G.forEach(a,(l,d)=>i(l,d,c));return G.isPlainObject(e)||e instanceof this.constructor?s(e,n):G.isString(e)&&(e=e.trim())&&!RN(e)?s(vN(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Cr(e),e){const r=G.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return CN(o);if(G.isFunction(n))return n.call(this,o,r);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Cr(e),e){const r=G.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||os(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Cr(s),s){const a=G.findKey(r,s);a&&(!n||os(r,r[a],a,n))&&(delete r[a],o=!0)}}return G.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||os(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return G.forEach(this,(o,i)=>{const s=G.findKey(r,i);if(s){n[s]=Po(o),delete n[i];return}const a=e?ON(i):String(i).trim();a!==i&&delete n[i],n[a]=Po(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[z_]=this[z_]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Cr(s);r[a]||(NN(o,s),r[a]=!0)}return G.isArray(e)?e.forEach(i):i(e),this}}Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.freezeMethods(Di.prototype);G.freezeMethods(Di);const Kt=Di;function is(t,e){const n=this||au,r=e||n,o=Kt.from(r.headers);let i=r.data;return G.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function yS(t){return!!(t&&t.__CANCEL__)}function io(t,e,n){Ae.call(this,t??"canceled",Ae.ERR_CANCELED,e,n),this.name="CanceledError"}G.inherits(io,Ae,{__CANCEL__:!0});function AN(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const IN=wt.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const c=[];c.push(n+"="+encodeURIComponent(r)),G.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),G.isString(i)&&c.push("path="+i),G.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function xN(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function DN(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function vS(t,e){return t&&!xN(e)?DN(t,e):e}const wN=wt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=G.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function MN(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function LN(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),d=r[i];s||(s=l),n[o]=c,r[o]=l;let u=i,_=0;for(;u!==o;)_+=n[u++],u=u%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-s<e)return;const p=d&&l-d;return p?Math.round(_*1e3/p):void 0}}function $_(t,e){let n=0;const r=LN(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,c=r(a),l=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-i)/c:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}const kN=typeof XMLHttpRequest<"u",PN=kN&&function(t){return new Promise(function(n,r){let o=t.data;const i=Kt.from(t.headers).normalize(),s=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}G.isFormData(o)&&(wt.isStandardBrowserEnv||wt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let l=new XMLHttpRequest;if(t.auth){const p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const d=vS(t.baseURL,t.url);l.open(t.method.toUpperCase(),SS(d,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function u(){if(!l)return;const p=Kt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),g={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:t,request:l};AN(function(f){n(f),c()},function(f){r(f),c()
`+t.personality.name,4,!0),this.configFile.personality=t.personality.name,this.configFile.personality_category=t.personality.category,this.configFile.personality_language=t.personality.language}),he(()=>{Ce.replace()}))},onSelected(t){console.log("Selected model"),this.isLoading&&this.$refs.toast.showToast("Loading... please wait",4,!1),t&&(t.isInstalled?this.configFile.model!=t.title&&(this.update_model(t.title),this.configFile.model=t.title,this.$refs.toast.showToast(`Selected model:
`+t.title,4,!0),this.settingsChanged=!0,this.isModelSelected=!0):this.$refs.toast.showToast(`Model:
2023-05-25 18:13:28 +00:00
`+t.title+`
<<<<<<<< HEAD:web/dist/assets/index-aeb494ac.js
selected`,4,!0),this.settingsChanged=!0,this.isModelSelected=!0):this.$refs.toast.showToast(`Model:
`+t.title+`
is not installed`,4,!1),he(()=>{Ce.replace()}))},onInstall(t){let e=t.path;this.showProgress=!0,this.progress=0,console.log("installing...");const n=r=>{if(console.log("received something"),r.status==="progress")console.log(`Progress = ${r.progress}`),t.progress=r.progress,t.progress==100&&(this.models[index].isInstalled=!0,this.showProgress=!1);else if(r.status==="succeeded"){console.log("Received succeeded"),qe.off("install_progress",n),console.log("Installed successfully");const o=this.models.findIndex(i=>i.path===e);this.models[o].isInstalled=!0,this.showProgress=!1}else r.status==="failed"&&(qe.off("install_progress",n),console.log("Install failed"),t.installing=!1,this.showProgress=!1,console.error("Installation failed:",r.error))};qe.on("install_progress",n),qe.emit("install_model",{path:e}),console.log("Started installation, please wait")},onUninstall(t){console.log("uninstalling model...");const e=n=>{if(n.status==="progress")this.progress=n.progress;else if(n.status==="succeeded"){console.log(t),t.uninstalling=!1,qe.off("install_progress",e),this.showProgress=!1;const r=this.models.findIndex(o=>o.path===t.path);this.models[r].isInstalled=!1}else n.status==="failed"&&(t.uninstalling=!1,this.showProgress=!1,qe.off("install_progress",e),console.error("Installation failed:",message.error))};qe.on("install_progress",e),qe.emit("uninstall_model",{path:t.path})},onMessageBoxOk(){console.log("OK button clicked")},refresh(){console.log("Refreshing"),this.api_get_req("list_models").then(t=>{this.modelsArr=t}),this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t}),this.api_get_req("list_personalities").then(t=>{this.persArr=t}),this.api_get_req("get_config").then(t=>{this.configFile=t,console.log("selecting model"),this.models.forEach(e=>{console.log(`${e} -> ${t.model}`),e.title==t.model?e.selected=!0:e.selected=!1})}),this.getPersonalitiesArr(),this.fetchModels()},toggleAccordion(){this.showAccordion=!this.showAccordion},update_setting(t,e,n){const r={setting_name:t,setting_value:e};console.log("change",t,e,r),Ue.post("/update_setting",r).then(o=>{if(console.log("Update setting done"),o)return console.log("res is ok"),n!==void 0&&(console.log("Calling next"),n(o)),o.data}).catch(o=>({status:!1}))},update_binding(t){console.log("Upgrading binding"),this.isLoading=!0,this.update_setting("binding",t,e=>{this.refresh(),console.log("Binding changed"),console.log(e),this.$refs.toast.showToast("Binding changed.",4,!0),this.settingsChanged=!0,this.isLoading=!1,he(()=>{Ce.replace()}),this.update_model(null)})},update_model(t){t||(this.isModelSelected=!1),console.log("Upgrading model"),this.isLoading=!0,this.update_setting("model",t,e=>{console.log("Model changed"),this.fetchModels(),this.isLoading=!1})},applyConfiguration(){if(!this.configFile.model){console.log("applying configuration failed"),this.$refs.toast.showToast(`Configuration changed failed.
Please select model first`,4,!1),he(()=>{Ce.replace()});return}this.isLoading=!0,Ue.post("/apply_settings").then(t=>{this.isLoading=!1,console.log(t.data),t.data.status==="succeeded"?(console.log("applying configuration succeeded"),this.$refs.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1,this.save_configuration()):(console.log("applying configuration failed"),this.$refs.toast.showToast("Configuration change failed.",4,!1)),he(()=>{Ce.replace()})})},save_configuration(){this.showConfirmation=!1,Ue.post("/save_settings",{}).then(t=>{if(t)return t.status||this.$refs.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t),this.$refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this.$refs.yesNoDialog.askQuestion(`Are you sure?
This will delete all your configurations and get back to default configuration.`).then(t=>{t&&Ue.post("/reset_settings",{}).then(e=>{if(e)return e.status?this.$refs.messageBox.showMessage("Settings have been reset correctly"):this.$refs.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e),this.$refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(t){try{const e=await Ue.get("/"+t);if(e)return e.data}catch(e){console.log(e);return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.personalities=[];const t=await this.api_get_req("get_all_personalities"),e=Object.keys(t);for(let n=0;n<e.length;n++){const r=e[n],o=t[r],i=Object.keys(o);for(let s=0;s<i.length;s++){const a=i[s],l=o[a].map(d=>{let u={};return u=d,u.category=a,u.language=r,u});this.personalities.length==0?this.personalities=l:this.personalities=this.personalities.concat(l)}}this.personalitiesFiltered=this.personalities.filter(n=>n.category===this.configFile.personality_category&&n.language===this.configFile.personality_language),this.isLoading=!1}},async mounted(){this.isLoading=!0,he(()=>{Ce.replace()}),this.configFile=await this.api_get_req("get_config"),this.configFile.model&&(this.isModelSelected=!0),this.fetchModels(),this.bindingsArr=await this.api_get_req("list_bindings"),this.modelsArr=await this.api_get_req("list_models"),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),await this.getPersonalitiesArr(),this.isLoading=!1},watch:{bec_collapsed(){he(()=>{Ce.replace()})},pc_collapsed(){he(()=>{Ce.replace()})},mc_collapsed(){he(()=>{Ce.replace()})},showConfirmation(){he(()=>{Ce.replace()})},mzl_collapsed(){he(()=>{Ce.replace()})},pzl_collapsed(){he(()=>{Ce.replace()})},all_collapsed(t){this.collapseAll(t),he(()=>{Ce.replace()})},settingsChanged(){he(()=>{Ce.replace()})},isLoading(){he(()=>{Ce.replace()})},isModelSelected(t){console.log("iss selected:",t)}}},yx={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"},vx={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Cx={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Rx=S("i",{"data-feather":"x"},null,-1),Ox=[Rx],Nx=S("i",{"data-feather":"check"},null,-1),Ax=[Nx],Ix={key:1,class:"flex gap-3 flex-1 items-center"},xx=S("i",{"data-feather":"save"},null,-1),Dx=[xx],wx=S("i",{"data-feather":"refresh-ccw"},null,-1),Mx=[wx],Lx=S("i",{"data-feather":"list"},null,-1),kx=[Lx],Px={class:"flex gap-3 flex-1 items-center justify-end"},Ux={key:0,class:"text-red-600 flex gap-3 items-center"},Fx=S("i",{"data-feather":"alert-triangle"},null,-1),Bx={class:"flex gap-3 items-center"},Gx={key:0,class:"flex gap-3 items-center"},qx=S("i",{"data-feather":"check"},null,-1),Yx=[qx],Hx={key:1,role:"status"},Vx=S("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"},[S("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"}),S("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.
`,u9="∄",_9="∄",p9="𝔑",m9="𝔫",g9="≧̸",f9="≱",E9="≱",h9="≧̸",S9="⩾̸",b9="⩾̸",T9="⋙̸",y9="≵",v9="≫⃒",C9="≯",R9="≯",O9="≫̸",N9="↮",A9="⇎",I9="⫲",x9="∋",D9="⋼",w9="⋺",M9="∋",L9="Њ",k9="њ",P9="↚",U9="⇍",F9="‥",B9="≦̸",G9="≰",q9="↚",Y9="⇍",H9="↮",V9="⇎",z9="≰",$9="≦̸",W9="⩽̸",K9="⩽̸",Q9="≮",j9="⋘̸",X9="≴",Z9="≪⃒",J9="≮",e6="⋪",t6="⋬",n6="≪̸",r6="∤",o6="",i6=" ",s6="𝕟",a6="",c6="⫬",l6="¬",d6="≢",u6="≭",_6="∦",p6="∉",m6="≠",g6="≂̸",f6="∄",E6="≯",h6="≱",S6="≧̸",b6="≫̸",T6="≹",y6="⩾̸",v6="≵",C6="≎̸",R6="≏̸",O6="∉",N6="⋵̸",A6="⋹̸",I6="∉",x6="⋷",D6="⋶",w6="⧏̸",M6="⋪",L6="⋬",k6="≮",P6="≰",U6="≸",F6="≪̸",B6="⩽̸",G6="≴",q6="⪢̸",Y6="⪡̸",H6="∌",V6="∌",z6="⋾",$6="⋽",W6="⊀",K6="⪯̸",Q6="⋠",j6="∌",X6="⧐̸",Z6="⋫",J6="⋭",eW="⊏̸",tW="⋢",nW="⊐̸",rW="⋣",oW="⊂⃒",iW="⊈",sW="⊁",aW="⪰̸",cW="⋡",lW="≿̸",dW="⊃⃒",uW="⊉",_W="≁",pW="≄",mW="≇",gW="≉",fW="∤",EW="∦",hW="∦",SW="⫽⃥",bW="∂̸",TW="⨔",yW="⊀",vW="⋠",CW="⊀",RW="⪯̸",OW="⪯̸",NW="⤳̸",AW="↛",IW="⇏",xW="↝̸",DW="↛",wW="⇏",MW="⋫",LW="⋭",kW="⊁",PW="⋡",UW="⪰̸",FW="𝒩",BW="𝓃",GW="∤",qW="∦",YW="≁",HW="≄",VW="≄",zW="∤",$W="∦",WW="⋢",KW="⋣",QW="⊄",jW="⫅̸",XW="⊈",ZW="⊂⃒",JW="⊈",e8="⫅̸",t8="⊁",n8="⪰̸",r8="⊅",o8="⫆̸",i8="⊉",s8="⊃⃒",a8="⊉",c8="⫆̸",l8="≹",d8="Ñ",u8="ñ",_8="≸",p8="⋪",m8="⋬",g8="⋫",f8="⋭",E8="Ν",h8="ν",S8="#",b8="№",T8="",y8="≍⃒",v8="⊬",C8="⊭",R8="⊮",O8="⊯",N8="≥⃒",A8=">⃒",I8="⤄",x8="⧞",D8="⤂",w8="≤⃒",M8="<⃒",L8="⊴⃒",k8="⤃",P8="⊵⃒",U8="∼⃒",F8="⤣",B8="↖",G8="⇖",q8="↖",Y8="⤧",H8="Ó",V8="ó",z8="⊛",$8="Ô",W8="ô",K8="⊚",Q8="О",j8="о",X8="⊝",Z8="Ő",J8="ő",eK="⨸",tK="⊙",nK="⦼",rK="Œ",oK="œ",iK="⦿",sK="𝔒",aK="𝔬",cK="˛",lK="Ò",dK="ò",uK="⧁",_K="⦵",pK="Ω",mK="∮",gK="↺",fK="⦾",EK="⦻",hK="‾",SK="⧀",bK="Ō",TK="ō",yK="Ω",vK="ω",CK="Ο",RK="ο",OK="⦶",NK="⊖",AK="𝕆",IK="𝕠",xK="⦷",DK="“",wK="",MK="⦹",LK="⊕",kK="↻",PK="⩔",UK="",FK="⩝",BK="",GK="",qK="ª",YK="º",HK="⊶",VK="⩖",zK="⩗",$K="⩛",WK="Ⓢ",KK="𝒪",QK="",jK="Ø",XK="ø",ZK="⊘",JK="Õ",e7="õ",t7="⨶",n7="⨷",r7="⊗",o7="Ö",i7="ö",s7="⌽",a7="‾",c7="⏞",l7="⎴",d7="⏜",u7="¶",_7="∥",p7="∥",m7="⫳",g7="⫽",f7="∂",E7="∂",h7="П",S7="п",b7="%",T7=".",y7="‰",v7="⊥",C7="‱",R7="𝔓",O7="𝔭",N7="Φ",A7="φ",I7="ϕ",x7="",D7="☎",w7="Π",M7="π",L7="⋔",k7="ϖ",P7="ℏ",U7="",F7="ℏ",B7="⨣",G7="⊞",q7="⨢",Y7="+",H7="∔",V7="⨥",z7="⩲",$7="±",W7="±",K7="⨦",Q7="⨧",j7="±",X7="",Z7="⨕",J7="𝕡",eQ="",tQ="£",nQ="⪷",rQ="⪻",oQ="≺",iQ="≼",sQ="⪷",aQ="≺",cQ="≼",lQ="≺",dQ="⪯",uQ="≼",_Q="≾",pQ="⪯",mQ="⪹",gQ="⪵",fQ="⋨",EQ="⪯",hQ="⪳",SQ="≾",bQ="",TQ="″",yQ="",vQ="⪹",CQ="⪵",RQ="⋨",OQ="∏",NQ="∏",AQ="⌮",IQ="⌒",xQ="⌓",DQ="∝",wQ="∝",MQ="∷",LQ="∝",kQ="≾",PQ="⊰",UQ="𝒫",FQ="𝓅",BQ="Ψ",GQ="ψ",qQ="",YQ="𝔔",HQ="𝔮",VQ="⨌",zQ="𝕢",$Q="",WQ="⁗",KQ="𝒬",QQ="𝓆",jQ="",XQ="⨖",ZQ="?",JQ="≟",ej='"',tj='"',nj="⇛",rj="∽̱",oj="Ŕ",ij="ŕ",sj="√",aj="⦳",cj="⟩",lj="⟫",dj="⦒",uj="⦥",_j="⟩",pj="»",mj="⥵",gj="⇥",fj="⤠",Ej="⤳",hj="→",Sj="↠",bj="⇒",Tj="⤞",yj="↪",vj="↬",Cj="⥅",Rj="⥴",Oj="⤖",Nj="↣",Aj="↝",Ij="⤚",xj="⤜",Dj="",wj="",Mj="⤍",Lj="⤏",kj="⤐",Pj="",Uj="}",Fj="]",Bj="⦌",Gj="⦎",qj="⦐",Yj="Ř",Hj="ř",Vj="Ŗ",zj="ŗ",$j="⌉",Wj="}",Kj="Р",Qj="р",jj="⤷",Xj="⥩",Zj="”",Jj="”",eX="↳",tX="",nX="",rX="",oX="",iX="",sX="▭",aX="®",cX="®",lX="∋",dX="⇋",uX="⥯",_X="⥽",pX="⌋",mX="𝔯",gX="",fX="⥤",EX="⇁",hX="⇀",SX="⥬",bX="Ρ",TX="ρ",yX="ϱ",vX="⟩",CX="⇥",RX="→",OX="→
`," "],dce=["{","}","|","\\","^","`"].concat(lce),uce=["'"].concat(dce),rp=["%","/","?",";","#"].concat(uce),op=["/","?","#"],_ce=255,ip=/^[+a-z0-9A-Z_-]{0,63}$/,pce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,sp={javascript:!0,"javascript:":!0},ap={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function mce(t,e){if(t&&t instanceof Qo)return t;var n=new Qo;return n.parse(t,e),n}Qo.prototype.parse=function(t,e){var n,r,o,i,s,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var c=cce.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=sce.exec(a);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,a=a.substr(l.length)),(e||l||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(l&&sp[l])&&(a=a.substr(2),this.slashes=!0)),!sp[l]&&(s||l&&!ap[l])){var d=-1;for(n=0;n<op.length;n++)i=a.indexOf(op[n]),i!==-1&&(d===-1||i<d)&&(d=i);var u,_;for(d===-1?_=a.lastIndexOf("@"):_=a.lastIndexOf("@",d),_!==-1&&(u=a.slice(0,_),a=a.slice(_+1),this.auth=u),d=-1,n=0;n<rp.length;n++)i=a.indexOf(rp[n]),i!==-1&&(d===-1||i<d)&&(d=i);d===-1&&(d=a.length),a[d-1]===":"&&d--;var p=a.slice(0,d);a=a.slice(d),this.parseHost(p),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var g=this.hostname.split(/\./);for(n=0,r=g.length;n<r;n++){var h=g[n];if(h&&!h.match(ip)){for(var f="",E=0,b=h.length;E<b;E++)h.charCodeAt(E)>127?f+="x":f+=h[E];if(!f.match(ip)){var T=g.slice(0,n),R=g.slice(n+1),v=h.match(pce);v&&(T.push(v[1]),R.unshift(v[2])),R.length&&(a=R.join(".")+a),this.hostname=T.join(".");break}}}}this.hostname.length>_ce&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=a.indexOf("#");I!==-1&&(this.hash=a.substr(I),a=a.slice(0,I));var N=a.indexOf("?");return N!==-1&&(this.search=a.substr(N),a=a.slice(0,N)),a&&(this.pathname=a),ap[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Qo.prototype.parseHost=function(t){var e=ace.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var gce=mce;hr.encode=nce;hr.decode=oce;hr.format=ice;hr.parse=gce;var Tn={},is,cp;function YS(){return cp||(cp=1,is=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),is}var ss,lp;function HS(){return lp||(lp=1,ss=/[\0-\x1F\x7F-\x9F]/),ss}var as,dp;function fce(){return dp||(dp=1,as=/[\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]/),as}var cs,up;function VS(){return up||(up=1,cs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),cs}var _p;function Ece(){return _p||(_p=1,Tn.Any=YS(),Tn.Cc=HS(),Tn.Cf=fce(),Tn.P=lu,Tn.Z=VS()),Tn}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(L,te){return r.call(L,te)}function i(L){var te=Array.prototype.slice.call(arguments,1);return te.forEach(function($){if($){if(typeof $!="object")throw new TypeError($+"must be object");Object.keys($).forEach(function(A){L[A]=$[A]})}}),L}function s(L,te,$){return[].concat(L.slice(0,te),$,L.slice(te+1))}function a(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function c(L){if(L>65535){L-=65536;var te=55296+(L>>10),$=56320+(L&1023);return String.fromCharCode(te,$)}return String.fromCharCode(L)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,u=new RegExp(l.source+"|"+d.source,"gi"),_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=Ko;function m(L,te){var $=0;return o(p,te)?p[te]:te.charCodeAt(0)===35&&_.test(te)&&($=te[1].toLowerCase()==="x"?parseInt(te.slice(2),16):parseInt(te.slice(1),10),a($))?c($):L}function g(L){return L.indexOf("\\")<0?L:L.replace(l,"$1")}function h(L){return L.indexOf("\\"
`};Ft.fence=function(t,e,n,r,o){var i=t[e],s=i.info?vce(i.info).trim():"",a="",c="",l,d,u,_,p;return s&&(u=s.split(/(\s+)/g),a=u[0],c=u.slice(2).join("")),n.highlight?l=n.highlight(i.content,a,c)||Pn(i.content):l=Pn(i.content),l.indexOf("<pre")===0?l+`
========
2023-05-26 14:21:00 +00:00
is not installed`,4,!1),he(()=>{Ce.replace()}))},onInstall(t){let e=t.path;this.showProgress=!0,this.progress=0,console.log("installing...");const n=r=>{if(console.log("received something"),r.status==="progress")console.log(`Progress = ${r.progress}`),t.progress=r.progress;else if(r.status==="succeeded"){Ye.off("install_progress",n),console.log("Installed successfully");const o=this.models.findIndex(i=>i.path===e);this.models[o].isInstalled=!0,this.showProgress=!1}else r.status==="failed"&&(Ye.off("install_progress",n),console.log("Install failed"),t.installing=!1,this.showProgress=!1,console.error("Installation failed:",r.error))};Ye.on("install_progress",n),Ye.emit("install_model",{path:e}),console.log("Started installation, please wait")},onUninstall(t){console.log("uninstalling model...");const e=n=>{if(n.status==="progress")this.progress=n.progress;else if(n.status==="succeeded"){console.log(t),t.uninstalling=!1,Ye.off("install_progress",e),this.showProgress=!1;const r=this.models.findIndex(o=>o.path===t.path);this.models[r].isInstalled=!1}else n.status==="failed"&&(t.uninstalling=!1,this.showProgress=!1,Ye.off("install_progress",e),console.error("Installation failed:",message.error))};Ye.on("install_progress",e),Ye.emit("uninstall_model",{path:t.path})},onMessageBoxOk(){console.log("OK button clicked")},refresh(){console.log("Refreshing"),this.api_get_req("list_models").then(t=>{this.modelsArr=t}),this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t}),this.api_get_req("list_personalities").then(t=>{this.persArr=t}),this.api_get_req("get_config").then(t=>{this.configFile=t,console.log("selecting model"),this.models.forEach(e=>{console.log(`${e} -> ${t.model}`),e.title==t.model?e.selected=!0:e.selected=!1})}),this.getPersonalitiesArr(),this.fetchModels()},toggleAccordion(){this.showAccordion=!this.showAccordion},update_setting(t,e,n){const r={setting_name:t,setting_value:e};console.log("change",t,e,r),Fe.post("/update_setting",r).then(o=>{if(console.log("Update setting done"),o)return console.log("res is ok"),n!==void 0&&(console.log("Calling next"),n(o)),o.data}).catch(o=>({status:!1}))},update_binding(t){console.log("Upgrading binding"),this.isLoading=!0,this.update_setting("binding",t,e=>{this.refresh(),console.log("Binding changed"),console.log(e),this.$refs.toast.showToast("Binding changed.",4,!0),this.settingsChanged=!0,this.isLoading=!1,he(()=>{Ce.replace()}),this.update_model(null)})},update_model(t){t||(this.isModelSelected=!1),console.log("Upgrading model"),this.isLoading=!0,this.update_setting("model",t,e=>{console.log("Model changed"),this.fetchModels(),this.isLoading=!1})},applyConfiguration(){if(!this.configFile.model){console.log("applying configuration failed"),this.$refs.toast.showToast(`Configuration changed failed.
Please select model first`,4,!1),he(()=>{Ce.replace()});return}this.isLoading=!0,Fe.post("/apply_settings").then(t=>{this.isLoading=!1,console.log(t.data),t.data.status==="succeeded"?(console.log("applying configuration succeeded"),this.$refs.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1,this.save_configuration()):(console.log("applying configuration failed"),this.$refs.toast.showToast("Configuration change failed.",4,!1)),he(()=>{Ce.replace()})})},save_configuration(){this.showConfirmation=!1,Fe.post("/save_settings",{}).then(t=>{if(t)return t.status||this.$refs.messageBox.showMessage("Error: Couldn't save settings!"),t.data}).catch(t=>(console.log(t),this.$refs.messageBox.showMessage("Couldn't save settings!"),{status:!1}))},reset_configuration(){this.$refs.yesNoDialog.askQuestion(`Are you sure?
This will delete all your configurations and get back to default configuration.`).then(t=>{t&&Fe.post("/reset_settings",{}).then(e=>{if(e)return e.status?this.$refs.messageBox.showMessage("Settings have been reset correctly"):this.$refs.messageBox.showMessage("Couldn't reset settings!"),e.data}).catch(e=>(console.log(e),this.$refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(t){try{const e=await Fe.get("/"+t);if(e)return e.data}catch(e){console.log(e);return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.personalities=[];const t=await this.api_get_req("get_all_personalities"),e=Object.keys(t);for(let n=0;n<e.length;n++){const r=e[n],o=t[r],i=Object.keys(o);for(let s=0;s<i.length;s++){const a=i[s],l=o[a].map(d=>{let u={};return u=d,u.category=a,u.language=r,u});this.personalities.length==0?this.personalities=l:this.personalities=this.personalities.concat(l)}}this.personalitiesFiltered=this.personalities.filter(n=>n.category===this.configFile.personality_category&&n.language===this.configFile.personality_language),this.isLoading=!1}},async mounted(){this.isLoading=!0,he(()=>{Ce.replace()}),this.configFile=await this.api_get_req("get_config"),this.configFile.model&&(this.isModelSelected=!0),this.fetchModels(),this.bindingsArr=await this.api_get_req("list_bindings"),this.modelsArr=await this.api_get_req("list_models"),this.persLangArr=await this.api_get_req("list_personalities_languages"),this.persCatgArr=await this.api_get_req("list_personalities_categories"),this.persArr=await this.api_get_req("list_personalities"),this.langArr=await this.api_get_req("list_languages"),await this.getPersonalitiesArr(),this.isLoading=!1},watch:{bec_collapsed(){he(()=>{Ce.replace()})},pc_collapsed(){he(()=>{Ce.replace()})},mc_collapsed(){he(()=>{Ce.replace()})},showConfirmation(){he(()=>{Ce.replace()})},mzl_collapsed(){he(()=>{Ce.replace()})},pzl_collapsed(){he(()=>{Ce.replace()})},all_collapsed(t){this.collapseAll(t),he(()=>{Ce.replace()})},settingsChanged(){he(()=>{Ce.replace()})},isLoading(){he(()=>{Ce.replace()})},isModelSelected(t){console.log("iss selected:",t)}}},Ue=t=>($d("data-v-b6feebec"),t=t(),Wd(),t),vx={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"},Cx={class:"sticky top-0 z-10 flex flex-row mb-2 p-3 gap-3 w-full rounded-b-lg bg-bg-light-tone dark:bg-bg-dark-tone shadow-lg"},Rx={key:0,class:"flex gap-3 flex-1 items-center duration-75"},Ox=Ue(()=>S("i",{"data-feather":"x"},null,-1)),Nx=[Ox],Ax=Ue(()=>S("i",{"data-feather":"check"},null,-1)),Ix=[Ax],xx={key:1,class:"flex gap-3 flex-1 items-center"},Dx=Ue(()=>S("i",{"data-feather":"save"},null,-1)),wx=[Dx],Mx=Ue(()=>S("i",{"data-feather":"refresh-ccw"},null,-1)),Lx=[Mx],kx=Ue(()=>S("i",{"data-feather":"list"},null,-1)),Px=[kx],Ux={class:"flex gap-3 flex-1 items-center justify-end"},Fx={key:0,class:"text-red-600 flex gap-3 items-center"},Bx=Ue(()=>S("i",{"data-feather":"alert-triangle"},null,-1)),Gx={class:"flex gap-3 items-center"},qx={key:0,class:"flex gap-3 items-center"},Yx=Ue(()=>S("i",{"data-feather":"check"},null,-1)),Hx=[Yx],Vx={key:1,role:"status"},zx=Ue(()=>S("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"},[S("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"}),S("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
`,_9="∄",p9="∄",m9="𝔑",g9="𝔫",f9="≧̸",E9="≱",h9="≱",S9="≧̸",b9="⩾̸",T9="⩾̸",y9="⋙̸",v9="≵",C9="≫⃒",R9="≯",O9="≯",N9="≫̸",A9="↮",I9="⇎",x9="⫲",D9="∋",w9="⋼",M9="⋺",L9="∋",k9="Њ",P9="њ",U9="↚",F9="⇍",B9="‥",G9="≦̸",q9="≰",Y9="↚",H9="⇍",V9="↮",z9="⇎",$9="≰",W9="≦̸",K9="⩽̸",Q9="⩽̸",j9="≮",X9="⋘̸",Z9="≴",J9="≪⃒",e6="≮",t6="⋪",n6="⋬",r6="≪̸",o6="∤",i6="",s6=" ",a6="𝕟",c6="",l6="⫬",d6="¬",u6="≢",_6="≭",p6="∦",m6="∉",g6="≠",f6="≂̸",E6="∄",h6="≯",S6="≱",b6="≧̸",T6="≫̸",y6="≹",v6="⩾̸",C6="≵",R6="≎̸",O6="≏̸",N6="∉",A6="⋵̸",I6="⋹̸",x6="∉",D6="⋷",w6="⋶",M6="⧏̸",L6="⋪",k6="⋬",P6="≮",U6="≰",F6="≸",B6="≪̸",G6="⩽̸",q6="≴",Y6="⪢̸",H6="⪡̸",V6="∌",z6="∌",$6="⋾",W6="⋽",K6="⊀",Q6="⪯̸",j6="⋠",X6="∌",Z6="⧐̸",J6="⋫",eW="⋭",tW="⊏̸",nW="⋢",rW="⊐̸",oW="⋣",iW="⊂⃒",sW="⊈",aW="⊁",cW="⪰̸",lW="⋡",dW="≿̸",uW="⊃⃒",_W="⊉",pW="≁",mW="≄",gW="≇",fW="≉",EW="∤",hW="∦",SW="∦",bW="⫽⃥",TW="∂̸",yW="⨔",vW="⊀",CW="⋠",RW="⊀",OW="⪯̸",NW="⪯̸",AW="⤳̸",IW="↛",xW="⇏",DW="↝̸",wW="↛",MW="⇏",LW="⋫",kW="⋭",PW="⊁",UW="⋡",FW="⪰̸",BW="𝒩",GW="𝓃",qW="∤",YW="∦",HW="≁",VW="≄",zW="≄",$W="∤",WW="∦",KW="⋢",QW="⋣",jW="⊄",XW="⫅̸",ZW="⊈",JW="⊂⃒",e8="⊈",t8="⫅̸",n8="⊁",r8="⪰̸",o8="⊅",i8="⫆̸",s8="⊉",a8="⊃⃒",c8="⊉",l8="⫆̸",d8="≹",u8="Ñ",_8="ñ",p8="≸",m8="⋪",g8="⋬",f8="⋫",E8="⋭",h8="Ν",S8="ν",b8="#",T8="№",y8="",v8="≍⃒",C8="⊬",R8="⊭",O8="⊮",N8="⊯",A8="≥⃒",I8=">⃒",x8="⤄",D8="⧞",w8="⤂",M8="≤⃒",L8="<⃒",k8="⊴⃒",P8="⤃",U8="⊵⃒",F8="∼⃒",B8="⤣",G8="↖",q8="⇖",Y8="↖",H8="⤧",V8="Ó",z8="ó",$8="⊛",W8="Ô",K8="ô",Q8="⊚",j8="О",X8="о",Z8="⊝",J8="Ő",eK="ő",tK="⨸",nK="⊙",rK="⦼",oK="Œ",iK="œ",sK="⦿",aK="𝔒",cK="𝔬",lK="˛",dK="Ò",uK="ò",_K="⧁",pK="⦵",mK="Ω",gK="∮",fK="↺",EK="⦾",hK="⦻",SK="‾",bK="⧀",TK="Ō",yK="ō",vK="Ω",CK="ω",RK="Ο",OK="ο",NK="⦶",AK="⊖",IK="𝕆",xK="𝕠",DK="⦷",wK="“",MK="",LK="⦹",kK="⊕",PK="↻",UK="⩔",FK="",BK="⩝",GK="",qK="",YK="ª",HK="º",VK="⊶",zK="⩖",$K="⩗",WK="⩛",KK="Ⓢ",QK="𝒪",jK="",XK="Ø",ZK="ø",JK="⊘",e7="Õ",t7="õ",n7="⨶",r7="⨷",o7="⊗",i7="Ö",s7="ö",a7="⌽",c7="‾",l7="⏞",d7="⎴",u7="⏜",_7="¶",p7="∥",m7="∥",g7="⫳",f7="⫽",E7="∂",h7="∂",S7="П",b7="п",T7="%",y7=".",v7="‰",C7="⊥",R7="‱",O7="𝔓",N7="𝔭",A7="Φ",I7="φ",x7="ϕ",D7="",w7="☎",M7="Π",L7="π",k7="⋔",P7="ϖ",U7="ℏ",F7="",B7="ℏ",G7="⨣",q7="⊞",Y7="⨢",H7="+",V7="∔",z7="⨥",$7="⩲",W7="±",K7="±",Q7="⨦",j7="⨧",X7="±",Z7="",J7="⨕",eQ="𝕡",tQ="",nQ="£",rQ="⪷",oQ="⪻",iQ="≺",sQ="≼",aQ="⪷",cQ="≺",lQ="≼",dQ="≺",uQ="⪯",_Q="≼",pQ="≾",mQ="⪯",gQ="⪹",fQ="⪵",EQ="⋨",hQ="⪯",SQ="⪳",bQ="≾",TQ="",yQ="″",vQ="",CQ="⪹",RQ="⪵",OQ="⋨",NQ="∏",AQ="∏",IQ="⌮",xQ="⌒",DQ="⌓",wQ="∝",MQ="∝",LQ="∷",kQ="∝",PQ="≾",UQ="⊰",FQ="𝒫",BQ="𝓅",GQ="Ψ",qQ="ψ",YQ="",HQ="𝔔",VQ="𝔮",zQ="⨌",$Q="𝕢",WQ="",KQ="⁗",QQ="𝒬",jQ="𝓆",XQ="",ZQ="⨖",JQ="?",ej="≟",tj='"',nj='"',rj="⇛",oj="∽̱",ij="Ŕ",sj="ŕ",aj="√",cj="⦳",lj="⟩",dj="⟫",uj="⦒",_j="⦥",pj="⟩",mj="»",gj="⥵",fj="⇥",Ej="⤠",hj="⤳",Sj="→",bj="↠",Tj="⇒",yj="⤞",vj="↪",Cj="↬",Rj="⥅",Oj="⥴",Nj="⤖",Aj="↣",Ij="↝",xj="⤚",Dj="⤜",wj="",Mj="",Lj="⤍",kj="⤏",Pj="⤐",Uj="",Fj="}",Bj="]",Gj="⦌",qj="⦎",Yj="⦐",Hj="Ř",Vj="ř",zj="Ŗ",$j="ŗ",Wj="⌉",Kj="}",Qj="Р",jj="р",Xj="⤷",Zj="⥩",Jj="”",eX="”",tX="↳",nX="",rX="",oX="",iX="",sX="",aX="▭",cX="®",lX="®",dX="∋",uX="⇋",_X="⥯",pX="⥽",mX="⌋",gX="𝔯",fX="",EX="⥤",hX="⇁",SX="⇀",bX="⥬",TX="Ρ",yX="ρ",vX="ϱ",CX="⟩",RX="⇥",OX="→",NX="→
`," "],uce=["{","}","|","\\","^","`"].concat(dce),_ce=["'"].concat(uce),ap=["%","/","?",";","#"].concat(_ce),cp=["/","?","#"],pce=255,lp=/^[+a-z0-9A-Z_-]{0,63}$/,mce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dp={javascript:!0,"javascript:":!0},up={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function gce(t,e){if(t&&t instanceof Zo)return t;var n=new Zo;return n.parse(t,e),n}Zo.prototype.parse=function(t,e){var n,r,o,i,s,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var c=lce.exec(a);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var l=ace.exec(a);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,a=a.substr(l.length)),(e||l||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(l&&dp[l])&&(a=a.substr(2),this.slashes=!0)),!dp[l]&&(s||l&&!up[l])){var d=-1;for(n=0;n<cp.length;n++)i=a.indexOf(cp[n]),i!==-1&&(d===-1||i<d)&&(d=i);var u,_;for(d===-1?_=a.lastIndexOf("@"):_=a.lastIndexOf("@",d),_!==-1&&(u=a.slice(0,_),a=a.slice(_+1),this.auth=u),d=-1,n=0;n<ap.length;n++)i=a.indexOf(ap[n]),i!==-1&&(d===-1||i<d)&&(d=i);d===-1&&(d=a.length),a[d-1]===":"&&d--;var p=a.slice(0,d);a=a.slice(d),this.parseHost(p),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var g=this.hostname.split(/\./);for(n=0,r=g.length;n<r;n++){var h=g[n];if(h&&!h.match(lp)){for(var f="",E=0,b=h.length;E<b;E++)h.charCodeAt(E)>127?f+="x":f+=h[E];if(!f.match(lp)){var T=g.slice(0,n),R=g.slice(n+1),v=h.match(mce);v&&(T.push(v[1]),R.unshift(v[2])),R.length&&(a=R.join(".")+a),this.hostname=T.join(".");break}}}}this.hostname.length>pce&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=a.indexOf("#");I!==-1&&(this.hash=a.substr(I),a=a.slice(0,I));var N=a.indexOf("?");return N!==-1&&(this.search=a.substr(N),a=a.slice(0,N)),a&&(this.pathname=a),up[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Zo.prototype.parseHost=function(t){var e=cce.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var fce=gce;Sr.encode=rce;Sr.decode=ice;Sr.format=sce;Sr.parse=fce;var yn={},as,_p;function VS(){return _p||(_p=1,as=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),as}var cs,pp;function zS(){return pp||(pp=1,cs=/[\0-\x1F\x7F-\x9F]/),cs}var ls,mp;function Ece(){return mp||(mp=1,ls=/[\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]/),ls}var ds,gp;function $S(){return gp||(gp=1,ds=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),ds}var fp;function hce(){return fp||(fp=1,yn.Any=VS(),yn.Cc=zS(),yn.Cf=Ece(),yn.P=pu,yn.Z=$S()),yn}(function(t){function e(L){return Object.prototype.toString.call(L)}function n(L){return e(L)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(L,te){return r.call(L,te)}function i(L){var te=Array.prototype.slice.call(arguments,1);return te.forEach(function($){if($){if(typeof $!="object")throw new TypeError($+"must be object");Object.keys($).forEach(function(A){L[A]=$[A]})}}),L}function s(L,te,$){return[].concat(L.slice(0,te),$,L.slice(te+1))}function a(L){return!(L>=55296&&L<=57343||L>=64976&&L<=65007||(L&65535)===65535||(L&65535)===65534||L>=0&&L<=8||L===11||L>=14&&L<=31||L>=127&&L<=159||L>1114111)}function c(L){if(L>65535){L-=65536;var te=55296+(L>>10),$=56320+(L&1023);return String.fromCharCode(te,$)}return String.fromCharCode(L)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,u=new RegExp(l.source+"|"+d.source,"gi"),_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,p=Xo;function m(L,te){var $=0;return o(p,te)?p[te]:te.charCodeAt(0)===35&&_.test(te)&&($=te[1].toLowerCase()==="x"?parseInt(te.slice(2),16):parseInt(te.slice(1),10),a($))?c($):L}function g(L){return L.indexOf("\\")<0?L:L.replace(l,"$1")}function h(L){return L.indexOf("\\"
`};Gt.fence=function(t,e,n,r,o){var i=t[e],s=i.info?Cce(i.info).trim():"",a="",c="",l,d,u,_,p;return s&&(u=s.split(/(\s+)/g),a=u[0],c=u.slice(2).join("")),n.highlight?l=n.highlight(i.content,a,c)||Un(i.content):l=Un(i.content),l.indexOf("<pre")===0?l+`
>>>>>>>> 626d603c665e4c099315ccc5356054fe848f6940:web/dist/assets/index-00e35e66.js
2023-05-25 18:13:28 +00:00
`:s?(d=i.attrIndex("class"),_=i.attrs?i.attrs.slice():[],d<0?_.push(["class",n.langPrefix+a]):(_[d]=_[d].slice(),_[d][1]+=" "+n.langPrefix+a),p={attrs:_},"<pre><code"+o.renderAttrs(p)+">"+l+`</code></pre>
`):"<pre><code"+o.renderAttrs(i)+">"+l+`</code></pre>
2023-05-26 14:21:00 +00:00
`};Gt.image=function(t,e,n,r,o){var i=t[e];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(t,e,n)};Gt.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
2023-05-25 18:13:28 +00:00
`:`<br>
2023-05-26 14:21:00 +00:00
`};Gt.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
2023-05-25 18:13:28 +00:00
`:`<br>
`:`
2023-05-26 14:21:00 +00:00
`};Gt.text=function(t,e){return Un(t[e].content)};Gt.html_block=function(t,e){return t[e].content};Gt.html_inline=function(t,e){return t[e].content};function br(){this.rules=vce({},Gt)}br.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+Un(e.attrs[n][0])+'="'+Un(e.attrs[n][1])+'"';return o};br.prototype.renderToken=function(e,n,r){var o,i="",s=!1,a=e[n];return a.hidden?"":(a.block&&a.nesting!==-1&&n&&e[n-1].hidden&&(i+=`
2023-05-25 18:13:28 +00:00
`),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&r.xhtmlOut&&(i+=" /"),a.block&&(s=!0,a.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(s=!1))),i+=s?`>
2023-05-26 14:21:00 +00:00
`:">",i)};br.prototype.renderInline=function(t,e,n){for(var r,o="",i=this.rules,s=0,a=t.length;s<a;s++)r=t[s].type,typeof i[r]<"u"?o+=i[r](t,s,e,n,this):o+=this.renderToken(t,s,e);return o};br.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,i=t.length;o<i;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+=`
`);return r};br.prototype.render=function(t,e,n){var r,o,i,s="",a=this.rules;for(r=0,o=t.length;r<o;r++)i=t[r].type,i==="inline"?s+=this.renderInline(t[r].children,e,n):typeof a[i]<"u"?s+=a[t[r].type](t,r,e,n,this):s+=this.renderToken(t,r,e,n);return s};var Rce=br;function It(){this.__rules__=[],this.__cache__=null}It.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};It.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})};It.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null};It.prototype.before=function(t,e,n,r){var o=this.__find__(t),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};It.prototype.after=function(t,e,n,r){var o=this.__find__(t),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};It.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};It.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};It.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};It.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};It.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var mu=It,Oce=/\r\n?|\n/g,Nce=/\0/g,Ace=function(e){var n;n=e.src.replace(Oce,`
`),n=n.replace(Nce,"<22>"),e.src=n},Ice=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},xce=function(e){var n=e.tokens,r,o,i;for(o=0,i=n.length;o<i;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Dce=De.arrayReplaceAt;function wce(t){return/^<a[>\s]/i.test(t)}function Mce(t){return/^<\/a\s*>/i.test(t)}var Lce=function(e){var n,r,o,i,s,a,c,l,d,u,_,p,m,g,h,f,E=e.tokens,b;if(e.md.options.linkify){for(r=0,o=E.length;r<o;r++)if(!(E[r].type!=="inline"||!e.md.linkify.pretest(E[r].content)))for(i=E[r].children,m=0,n=i.length-1;n>=0;n--){if(a=i[n],a.type==="link_close"){for(n--;i[n].level!==a.level&&i[n].type!=="link_open";)n--;continue}if(a.type==="html_inline"&&(wce(a.content)&&m>0&&m--,Mce(a.content)&&m++),!(m>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,b=e.md.linkify.match(d),c=[],p=a.level,_=0,b.length>0&&b[0].index===0&&n>0&&i[n-1].type==="text_special"&&(b=b.slice(1)),l=0;l<b.length;l++)g=b[l].url,h=e.md.normalizeLink(g),e.md.validateLink(h)&&(f=b[l].text,b[l].schema?b[l].schema==="mailto:"&&!/^mailto:/i.test(f)?f=e.md.normalizeLinkText("mailto:"+f).replace(/^mailto:/,""):f=e.md.normalizeLinkText(f):f=e.md.normalizeLinkText("http://"+f).replace(/^http:\/\//,""),u=b[l].index,u>_&&(s=new e.Token("text","",0),s.content=d.slice(_,u),s.level=p,c.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",h]],s.level=p++,s.markup="linkify",s.info="auto",c.push(s),s=new e.Token("text","",0),s.content=f,s.level=p,c.push(s),s=new e.Token("link_close","a",-1),s.level=--p,s.markup="linkify",s.info="auto",c.push(s),_=b[l].lastIndex);_<d.length&&(s=new e.Token("text","",0),s.content=d.slice(_),s.level=p,c.push(s)),E[r].children=i=Dce(i,n,c)}}}},WS=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,kce=/\((c|tm|r)\)/i,Pce=/\((c|tm|r)\)/ig,Uce={c:"©",r:"®",tm:"™"};function Fce(t,e){return Uce[e.toLowerCase()]}function Bce(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(Pce,Fce)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function Gce(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&WS.test(n.content)&&(n.content=n.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")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var qce=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(kce.test(e.tokens[n].content)&&Bce(e.tokens[n].children),WS.test(e.tokens[n].content)&&Gce(e.tokens[n].children))},hp=De.isWhiteSpace,Sp=De.isPunctChar,bp=De.isMdAsciiPunct,Yce=/['"]/,Tp=/['"]/g,yp="";function To(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Hce(t,e){var n,r,o,i,s,a,c,l,d,u,_,p,m,g,h,f,E,b,T,R,v;for(T=[],n=0;n<t.length;n++){for(r=t[n],c=t[n].level,E=T.length-1;E>=0&&!(T[E].level<=c);E--);if(T.length=E+1,r.type==="text"){o=r.content,s=0,a=o.length;e:for(;s<a&&(Tp.lastIndex=s,i=Tp.exec(o),!!i);){if(h=f=!0,s=i.index+1,b=i[0]==="'",d=32,i.index-1>=0)d=o.charCodeAt(i.index-1);else for(E=n-1;E>=0&&!(t[E].type==="softbreak"||t[E].type==="hardbreak");E--)if(t[E].content){d=t[E].content.charCodeAt(t[E].content.length-1);break}if(u=32,s<a)u=o.charCodeAt(s);else for(E=n+1;E<t.length&&!(t[E].type==="softbreak"||t[E].type==="hardbreak");E++)if(t[E].content){u=t[E].content.charCodeAt(0);break}if(_=bp(d)||Sp(String.fromCharCode(d)),p=bp(u)||Sp(String.fromCharCode(u)),m=hp(d),g=hp(u),g?h=!1:p&&(m||_||(h=!1)),m?f=!1:_&&(g||p||(f=!1)),u===34&&i[0]==='"'&&d>=48&&d<=57&&(f=h=!1),h&&f&&(h=_,f=p),!h&&!f){b&&(r.content=To(r.content,i.index,yp));continue}if(f){for(E=T.length-1;E>=0&&(l=T[E],!(T[E].level<c));E--)if(l.single===b&&T[E].level===c){l=T[E],b?(R=e.md.options.quotes[2],v=e.md.options.quotes[
`,s.map=[n,e.line],!0},Zce=function(e,n,r,o){var i,s,a,c,l,d,u,_=!1,p=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||p+3>m||(i=e.src.charCodeAt(p),i!==126&&i!==96)||(l=p,p=e.skipChars(p,i),s=p-l,s<3)||(u=e.src.slice(l,p),a=e.src.slice(p,m),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(o)return!0;for(c=n;c++,!(c>=r||(p=l=e.bMarks[c]+e.tShift[c],m=e.eMarks[c],p<m&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(p)===i&&!(e.sCount[c]-e.blkIndent>=4)&&(p=e.skipChars(p,i),!(p-l<s)&&(p=e.skipSpaces(p),!(p<m)))){_=!0;break}return s=e.sCount[n],e.line=c+(_?1:0),d=e.push("fence","code",0),d.info=a,d.content=e.getLines(n+1,c,s,!0),d.markup=u,d.map=[n,e.line],!0},Cp=De.isSpace,Jce=function(e,n,r,o){var i,s,a,c,l,d,u,_,p,m,g,h,f,E,b,T,R,v,I,N,B=e.lineMax,k=e.bMarks[n]+e.tShift[n],M=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k++)!==62)return!1;if(o)return!0;for(c=p=e.sCount[n]+1,e.src.charCodeAt(k)===32?(k++,c++,p++,i=!1,T=!0):e.src.charCodeAt(k)===9?(T=!0,(e.bsCount[n]+p)%4===3?(k++,c++,p++,i=!1):i=!0):T=!1,m=[e.bMarks[n]],e.bMarks[n]=k;k<M&&(s=e.src.charCodeAt(k),Cp(s));){s===9?p+=4-(p+e.bsCount[n]+(i?1:0))%4:p++;k++}for(g=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(T?1:0),d=k>=M,E=[e.sCount[n]],e.sCount[n]=p-c,b=[e.tShift[n]],e.tShift[n]=k-e.bMarks[n],v=e.md.block.ruler.getRules("blockquote"),f=e.parentType,e.parentType="blockquote",_=n+1;_<r&&(N=e.sCount[_]<e.blkIndent,k=e.bMarks[_]+e.tShift[_],M=e.eMarks[_],!(k>=M));_++){if(e.src.charCodeAt(k++)===62&&!N){for(c=p=e.sCount[_]+1,e.src.charCodeAt(k)===32?(k++,c++,p++,i=!1,T=!0):e.src.charCodeAt(k)===9?(T=!0,(e.bsCount[_]+p)%4===3?(k++,c++,p++,i=!1):i=!0):T=!1,m.push(e.bMarks[_]),e.bMarks[_]=k;k<M&&(s=e.src.charCodeAt(k),Cp(s));){s===9?p+=4-(p+e.bsCount[_]+(i?1:0))%4:p++;k++}d=k>=M,g.push(e.bsCount[_]),e.bsCount[_]=e.sCount[_]+1+(T?1:0),E.push(e.sCount[_]),e.sCount[_]=p-c,b.push(e.tShift[_]),e.tShift[_]=k-e.bMarks[_];continue}if(d)break;for(R=!1,a=0,l=v.length;a<l;a++)if(v[a](e,_,r,!0)){R=!0;break}if(R){e.lineMax=_,e.blkIndent!==0&&(m.push(e.bMarks[_]),g.push(e.bsCount[_]),b.push(e.tShift[_]),E.push(e.sCount[_]),e.sCount[_]-=e.blkIndent);break}m.push(e.bMarks[_]),g.push(e.bsCount[_]),b.push(e.tShift[_]),E.push(e.sCount[_]),e.sCount[_]=-1}for(h=e.blkIndent,e.blkIndent=0,I=e.push("blockquote_open","blockquote",1),I.markup=">",I.map=u=[n,0],e.md.block.tokenize(e,n,_),I=e.push("blockquote_close","blockquote",-1),I.markup=">",e.lineMax=B,e.parentType=f,u[1]=e.line,a=0;a<b.length;a++)e.bMarks[a+n]=m[a],e.tShift[a+n]=b[a],e.sCount[a+n]=E[a],e.bsCount[a+n]=g[a];return e.blkIndent=h,!0},ele=De.isSpace,tle=function(e,n,r,o){var i,s,a,c,l=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(l++),i!==42&&i!==45&&i!==95))return!1;for(s=1;l<d;){if(a=e.src.charCodeAt(l++),a!==i&&!ele(a))return!1;a===i&&s++}return s<3?!1:(o||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(s+1).join(String.fromCharCode(i))),!0)},QS=De.isSpace;function Rp(t,e){var n,r,o,i;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(i=t.src.charCodeAt(r),!QS(i))?-1:r}function Op(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,i=t.eMarks[e];if(o+1>=i||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=i)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<i&&(n=t.src.charCodeAt(o),!QS(n))?-1:o}function nle(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var rle=function(e,n,r,o){var i,s,a,c,l,d,u,_,p,m,g,h,f,E,b,T,R,v,I,N,B,k,M,Y,re,L,te,$,A=!1,q=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(A=!0),(M=Op(e,n))>=0){if(u=!0,re=e.bMarks[n]+e.tShift[n],f=Number(e.src.slice(re,M-1)),A&&f!==1)return!1}else if((M=Rp(e,n))>=0)u=!1;else return!1;if(A&&e.skipSpaces(M)>
https://github.com/highlightjs/highlight.js/issues/2277`),le=A,ue=q),ne===void 0&&(ne=!0);const pe={code:ue,language:le};te("before:highlight",pe);const ye=pe.result?pe.result:u(pe.language,pe.code,ne);return ye.code=pe.code,te("after:highlight",ye),ye}function u(A,q,ne,ue){const le=Object.create(null);function pe(H,K){return H.keywords[K]}function ye(){if(!w.keywords){U.addText(Z);return}let H=0;w.keywordPatternRe.lastIndex=0;let K=w.keywordPatternRe.exec(Z),ae="";for(;K;){ae+=Z.substring(H,K.index);const Ee=F.case_insensitive?K[0].toLowerCase():K[0],Me=pe(w,Ee);if(Me){const[je,Oe]=Me;if(U.addText(ae),ae="",le[Ee]=(le[Ee]||0)+1,le[Ee]<=BYe&&(oe+=Oe),je.startsWith("_"))ae+=K[0];else{const Yt=F.classNameAliases[je]||je;z(K[0],Yt)}}else ae+=K[0];H=w.keywordPatternRe.lastIndex,K=w.keywordPatternRe.exec(Z)}ae+=Z.substring(H),U.addText(ae)}function Se(){if(Z==="")return;let H=null;if(typeof w.subLanguage=="string"){if(!e[w.subLanguage]){U.addText(Z);return}H=u(w.subLanguage,Z,!0,X[w.subLanguage]),X[w.subLanguage]=H._top}else H=p(Z,w.subLanguage.length?w.subLanguage:null);w.relevance>0&&(oe+=H.relevance),U.__addSublanguage(H._emitter,H.language)}function x(){w.subLanguage!=null?Se():ye(),Z=""}function z(H,K){H!==""&&(U.startScope(K),U.addText(H),U.endScope())}function V(H,K){let ae=1;const Ee=K.length-1;for(;ae<=Ee;){if(!H._emit[ae]){ae++;continue}const Me=F.classNameAliases[H[ae]]||H[ae],je=K[ae];Me?z(je,Me):(Z=je,ye(),Z=""),ae++}}function W(H,K){return H.scope&&typeof H.scope=="string"&&U.openNode(F.classNameAliases[H.scope]||H.scope),H.beginScope&&(H.beginScope._wrap?(z(Z,F.classNameAliases[H.beginScope._wrap]||H.beginScope._wrap),Z=""):H.beginScope._multi&&(V(H.beginScope,K),Z="")),w=Object.create(H,{parent:{value:w}}),w}function ce(H,K,ae){let Ee=tYe(H.endRe,ae);if(Ee){if(H["on:end"]){const Me=new Yp(H);H["on:end"](K,Me),Me.isMatchIgnored&&(Ee=!1)}if(Ee){for(;H.endsParent&&H.parent;)H=H.parent;return H}}if(H.endsWithParent)return ce(H.parent,K,ae)}function fe(H){return w.matcher.regexIndex===0?(Z+=H[0],1):(me=!0,0)}function se(H){const K=H[0],ae=H.rule,Ee=new Yp(ae),Me=[ae.__beforeBegin,ae["on:begin"]];for(const je of Me)if(je&&(je(H,Ee),Ee.isMatchIgnored))return fe(K);return ae.skip?Z+=K:(ae.excludeBegin&&(Z+=K),x(),!ae.returnBegin&&!ae.excludeBegin&&(Z=K)),W(ae,H),ae.returnBegin?0:K.length}function y(H){const K=H[0],ae=q.substring(H.index),Ee=ce(w,H,ae);if(!Ee)return Kp;const Me=w;w.endScope&&w.endScope._wrap?(x(),z(K,w.endScope._wrap)):w.endScope&&w.endScope._multi?(x(),V(w.endScope,H)):Me.skip?Z+=K:(Me.returnEnd||Me.excludeEnd||(Z+=K),x(),Me.excludeEnd&&(Z=K));do w.scope&&U.closeNode(),!w.skip&&!w.subLanguage&&(oe+=w.relevance),w=w.parent;while(w!==Ee.parent);return Ee.starts&&W(Ee.starts,H),Me.returnEnd?0:K.length}function C(){const H=[];for(let K=w;K!==F;K=K.parent)K.scope&&H.unshift(K.scope);H.forEach(K=>U.openNode(K))}let D={};function P(H,K){const ae=K&&K[0];if(Z+=H,ae==null)return x(),0;if(D.type==="begin"&&K.type==="end"&&D.index===K.index&&ae===""){if(Z+=q.slice(K.index,K.index+1),!o){const Ee=new Error(`0 width match regex (${A})`);throw Ee.languageName=A,Ee.badRule=D.rule,Ee}return 1}if(D=K,K.type==="begin")return se(K);if(K.type==="illegal"&&!ne){const Ee=new Error('Illegal lexeme "'+ae+'" for mode "'+(w.scope||"<unnamed>")+'"');throw Ee.mode=w,Ee}else if(K.type==="end"){const Ee=y(K);if(Ee!==Kp)return Ee}if(K.type==="illegal"&&ae==="")return 1;if(de>1e5&&de>K.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=ae,ae.length}const F=B(A);if(!F)throw kn(i.replace("{}",A)),new Error('Unknown language: "'+A+'"');const j=kYe(F);let ee="",w=ue||j;const X={},U=new a.__emitter(a);C();let Z="",oe=0,ie=0,de=0,me=!1;try{if(F.__emitTokens)F.__emitTokens(q,U);else{for(w.matcher.considerAll();;){de++,me?me=!1:w.matcher.considerAll(),w.matcher.lastIndex=ie;const H=w.matcher.exec(q);if(!H)break;const K=q.substring(ie,H.index),ae=P(K,H);ie=H.index+ae}P(q.substring(ie))}return U.finalize(),ee=U.toHTML(),{language:A,value:ee,relevance:oe,illegal:!1,_emitter:U,_top:w}}catch(H){if(H.m
`},m]}}return sc=o,sc}var ac,Lg;function OHe(){if(Lg)return ac;Lg=1;function t(e){const n="[a-zA-Z_][\\w.]*",r="<\\?(lasso(script)?|=)",o="\\]|\\?>",i={$pattern:n+"|&[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"},s=e.COMMENT("<!--","-->",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},c={className:"meta",begin:"\\[/noprocess|"+r},l={className:"symbol",begin:"'"+n+"'"},d=[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:"[#$]"+n},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:n,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+n,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:n+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[|"+r,returnEnd:!0,relevance:0,contains:[s]}},a,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[noprocess\\]|"+r,returnEnd:!0,contains:[s]}},a,c].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return ac=t,ac}var cc,kg;function NHe(){if(kg)return cc;kg=1;function t(e){const r=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(M=>M+"(?![a-zA-Z@:_])")),o=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-
]`,m={scope:"string",variants:[d,l,u,_]},g={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},h=["false","null","true"],f=["__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"],T={keyword:f,literal:(L=>{const te=[];return L.forEach($=>{te.push($),$.toLowerCase()===$?te.push($.toUpperCase()):te.push($.toLowerCase())}),te})(h),built_in:E},R=L=>L.map(te=>te.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,n.concat(p,"+"),n.concat("(?!",R(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},I=n.concat(o,"\\b(?!\\()"),N={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,n.concat(/::/,n.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[i,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},B={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:T,contains:[B,s,N,e.C_BLOCK_COMMENT_MODE,m,g,v]},M={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",R(f).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),o,n.concat(p,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(M);const Y=[B,N,e.C_BLOCK_COMMENT_MODE,m,g,v],re={begin:n.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:h,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:h,keyword:["new","array"]},contains:["self",...Y]}
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return bl=t,bl}var Tl,Qf;function GVe(){if(Qf)return Tl;Qf=1;function t(e){const n="[a-z][a-zA-Z0-9_]*",r={className:"string",begin:"\\$.{1}"},o={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:n+":",relevance:0},e.C_NUMBER_MODE,o,r,{begin:"\\|[ ]*"+n+"([ ]+"+n+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+n}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,r,e.C_NUMBER_MODE,o]}]}}return Tl=t,Tl}var yl,jf;function qVe(){if(jf)return yl;jf=1;function t(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 yl=t,yl}var vl,Xf;function YVe(){if(Xf)return vl;Xf=1;function t(e){const n={className:"variable",begin:/\b_+[a-zA-Z]\w*/},r={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},o={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],s=["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","a
2023-05-25 18:13:28 +00:00
]*?"'`},{begin:`"[^\r
2023-05-26 14:21:00 +00:00
"]*"`}]},{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 Ol=t,Ol}var Nl,tE;function $Ve(){if(tE)return Nl;tE=1;function t(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 Nl=t,Nl}var Al,nE;function WVe(){if(nE)return Al;nE=1;const t=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.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:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.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","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["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"],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","i
2023-05-25 18:13:28 +00:00
(multipart)?`,end:`\\]
2023-05-26 14:21:00 +00:00
`},{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 Il=t,Il}var xl,oE;function QVe(){if(oE)return xl;oE=1;function t(N){return N?typeof N=="string"?N:N.source:null}function e(N){return n("(?=",N,")")}function n(...N){return N.map(k=>t(k)).join("")}function r(N){const B=N[N.length-1];return typeof B=="object"&&B.constructor===Object?(N.splice(N.length-1,1),B):{}}function o(...N){return"("+(r(N).capture?"":"?:")+N.map(M=>t(M)).join("|")+")"}const i=N=>n(/\b/,N,/\w$/.test(N)?/\b/:/\B/),s=["Protocol","Type"].map(i),a=["init","self"].map(i),c=["Any","Self"],l=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","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","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","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"],d=["false","nil","true"],u=["assignment","associativity","higherThan","left","lowerThan","none","right"],_=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["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"],m=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=o(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),h=n(m,g,"*"),f=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),E=o(f,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),b=n(f,E,"*"),T=n(/[A-Z]/,E,"*"),R=["autoclosure",n(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,b,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],v=["iOS","iOSApplicationExtension","