lollms-webui/web/dist/assets/index-47b6b817.js

99 lines
1.5 MiB
JavaScript
Raw Normal View History

2023-06-17 19:02:54 +02: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 Xd(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 vn(t){if(ve(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],o=$e(r)?JT(r):vn(r);if(o)for(const i in o)e[i]=o[i]}return e}else{if($e(t))return t;if(Ye(t))return t}}const jT=/;(?![^(]*\))/g,XT=/:([^]+)/,ZT=/\/\*.*?\*\//gs;function JT(t){const e={};return t.replace(ZT,"").split(jT).forEach(n=>{if(n){const r=n.split(XT);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Le(t){let e="";if($e(t))e=t;else if(ve(t))for(let n=0;n<t.length;n++){const r=Le(t[n]);r&&(e+=r+" ")}else if(Ye(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const ev="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tv=Xd(ev);function lE(t){return!!t||t===""}function nv(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=vi(t[r],e[r]);return n}function vi(t,e){if(t===e)return!0;let n=d_(t),r=d_(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=jr(t),r=jr(e),n||r)return t===e;if(n=ve(t),r=ve(e),n||r)return n&&r?nv(t,e):!1;if(n=Ye(t),r=Ye(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),l=e.hasOwnProperty(s);if(a&&!l||!a&&l||!vi(t[s],e[s]))return!1}}return String(t)===String(e)}function cE(t,e){return t.findIndex(n=>vi(n,e))}const me=t=>$e(t)?t:t==null?"":ve(t)||Ye(t)&&(t.toString===_E||!Oe(t.toString))?JSON.stringify(t,dE,2):String(t),dE=(t,e)=>e&&e.__v_isRef?dE(t,e.value):sr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Ri(e)?{[`Set(${e.size})`]:[...e.values()]}:Ye(e)&&!ve(e)&&!pE(e)?String(e):e,He={},ir=[],wt=()=>{},rv=()=>!1,ov=/^on[^a-z]/,Ci=t=>ov.test(t),Zd=t=>t.startsWith("onUpdate:"),et=Object.assign,Jd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},iv=Object.prototype.hasOwnProperty,Me=(t,e)=>iv.call(t,e),ve=Array.isArray,sr=t=>Cr(t)==="[object Map]",Ri=t=>Cr(t)==="[object Set]",d_=t=>Cr(t)==="[object Date]",sv=t=>Cr(t)==="[object RegExp]",Oe=t=>typeof t=="function",$e=t=>typeof t=="string",jr=t=>typeof t=="symbol",Ye=t=>t!==null&&typeof t=="object",uE=t=>Ye(t)&&Oe(t.then)&&Oe(t.catch),_E=Object.prototype.toString,Cr=t=>_E.call(t),av=t=>Cr(t).slice(8,-1),pE=t=>Cr(t)==="[object Object]",eu=t=>$e(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Yo=Xd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Oi=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},lv=/-(\w)/g,Ht=Oi(t=>t.replace(lv,(e,n)=>n?n.toUpperCase():"")),cv=/\B([A-Z])/g,Kn=Oi(t=>t.replace(cv,"-$1").toLowerCase()),Ni=Oi(t=>t.charAt(0).toUpperCase()+t.slice(1)),os=Oi(t=>t?`on${Ni(t)}`:""),Xr=(t,e)=>!Object.is(t,e),ar=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},ti=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},md=t=>{const e=parseFloat(t);return isNaN(e)?t:e},dv=t=>{const e=$e(t)?Number(t):NaN;return isNaN(e)?t:e};let u_;const uv=()=>u_||(u_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Nt;class _v{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Nt,!e&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this
* vuex v4.0.2
* (c) 2021 Evan You
* @license MIT
2023-06-17 19:02:54 +02:00
*/var BR="store";function Ar(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function GR(t){return t!==null&&typeof t=="object"}function qR(t){return t&&typeof t.then=="function"}function YR(t,e){return function(){return t(e)}}function hb(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function Eb(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;Ui(t,n,[],t._modules.root,!0),Su(t,n,e)}function Su(t,e,n){var r=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,i={};Ar(o,function(s,a){i[a]=YR(s,t),Object.defineProperty(t.getters,a,{get:function(){return i[a]()},enumerable:!0})}),t._state=Nr({data:e}),t.strict&&WR(t),r&&n&&t._withCommit(function(){r.data=null})}function Ui(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!i&&!o){var a=yu(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){a[l]=r.state})}var c=r.context=HR(t,s,n);r.forEachMutation(function(d,u){var p=s+u;VR(t,p,d,c)}),r.forEachAction(function(d,u){var p=d.root?u:s+u,_=d.handler||d;zR(t,p,_,c)}),r.forEachGetter(function(d,u){var p=s+u;$R(t,p,d,c)}),r.forEachChild(function(d,u){Ui(t,e,n.concat(u),d,o)})}function HR(t,e,n){var r=e==="",o={dispatch:r?t.dispatch:function(i,s,a){var l=si(i,s,a),c=l.payload,d=l.options,u=l.type;return(!d||!d.root)&&(u=e+u),t.dispatch(u,c)},commit:r?t.commit:function(i,s,a){var l=si(i,s,a),c=l.payload,d=l.options,u=l.type;(!d||!d.root)&&(u=e+u),t.commit(u,c,d)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return bb(t,e)}},state:{get:function(){return yu(t.state,n)}}}),o}function bb(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function VR(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push(function(s){n.call(t,r.state,s)})}function zR(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push(function(s){var a=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},s);return qR(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):a})}function $R(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function WR(t){Yn(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function yu(t,e){return e.reduce(function(n,r){return n[r]},t)}function si(t,e,n){return GR(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var KR="vuex bindings",$_="vuex:mutations",ps="vuex:actions",Zn="vuex",QR=0;function jR(t,e){UR({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[KR]},function(n){n.addTimelineLayer({id:$_,label:"Vuex Mutations",color:W_}),n.addTimelineLayer({id:ps,label:"Vuex Actions",color:W_}),n.addInspector({id:Zn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===t&&r.inspectorId===Zn)if(r.filter){var o=[];vb(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Tb(e._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===t&&r.inspectorId===Zn){var o=r.nodeId;bb(e,o),r.state=JR(tO(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===t&&r.inspectorId===Zn){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),e._withCommit(function(){r.set(e._state.data,i,r.state.value)})}}),e.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state
2023-06-07 09:39:38 +02:00
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
2023-06-17 19:02:54 +02:00
*/const nr=typeof window<"u";function rO(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ge=Object.assign;function ms(t,e){const n={};for(const r in e){const o=e[r];n[r]=Dt(o)?o.map(t):t(o)}return n}const Vr=()=>{},Dt=Array.isArray,oO=/\/$/,iO=t=>t.replace(oO,"");function gs(t,e,n="/"){let r,o={},i="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=e.slice(0,l),i=e.slice(l+1,a>-1?a:e.length),o=t(i)),a>-1&&(r=r||e.slice(0,a),s=e.slice(a,e.length)),r=cO(r??e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function sO(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function K_(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function aO(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&gr(e.matched[r],n.matched[o])&&Ob(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function gr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Ob(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!lO(t[n],e[n]))return!1;return!0}function lO(t,e){return Dt(t)?Q_(t,e):Dt(e)?Q_(e,t):t===e}function Q_(t,e){return Dt(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function cO(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 io;(function(t){t.pop="pop",t.push="push"})(io||(io={}));var zr;(function(t){t.back="back",t.forward="forward",t.unknown=""})(zr||(zr={}));function dO(t){if(!t)if(nr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),iO(t)}const uO=/^[^#]+#/;function _O(t,e){return t.replace(uO,"#")+e}function pO(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 Bi=()=>({left:window.pageXOffset,top:window.pageYOffset});function mO(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=pO(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 j_(t,e){return(history.state?history.state.position-e:-1)+t}const xd=new Map;function gO(t,e){xd.set(t,e)}function fO(t){const e=xd.get(t);return xd.delete(t),e}let hO=()=>location.protocol+"//"+location.host;function Nb(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,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),K_(l,"")}return K_(n,t)+r+o}function EO(t,e,n,r){let o=[],i=[],s=null;const a=({state:p})=>{const _=Nb(t,location),g=n.value,f=e.value;let E=0;if(p){if(n.value=_,e.value=p,s&&s===g){s=null;return}E=f?p.position-f.position:0}else r(_);o.forEach(h=>{h(n.value,g,{delta:E,type:io.pop,direction:E?E>0?zr.forward:zr.back:zr.unknown})})};function l(){s=n.value}function c(p){o.push(p);const _=()=>{const g=o.indexOf(p);g>-1&&o.splice(g,1)};return i.push(_),_}function d(){const{history:p}=window;p.state&&p.replaceState(Ge({},p.state,{scroll:Bi()}),"")}function u(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:c,destroy:u}}function X_(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?Bi():null}}function bO(t){const{history:e,location:n}=window,r={value:Nb(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(l,c,d){const u=t.indexOf("#"
2023-06-07 09:39:38 +02:00
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
2023-06-17 19:02:54 +02:00
*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(h,b){for(var y=b.length,R=0;R<y;++R)f(h,b[R])}var d={}.hasOwnProperty;function u(h,b){h[b]=!0}function p(h,b){for(var y in b)d.call(b,y)&&(h[y]=!!b[y])}var _=/\s+/;function g(h,b){for(var y=b.split(_),R=y.length,x=0;x<R;++x)h[y[x]]=!0}function f(h,b){if(b){var y=typeof b;y==="string"?g(h,b):Array.isArray(b)?c(h,b):y==="object"?p(h,b):y==="number"&&u(h,b)}}function E(){for(var h=arguments.length,b=Array(h),y=0;y<h;y++)b[y]=arguments[y];var R=new l;c(R,b);var x=[];for(var O in R)R[O]&&x.push(O);return x.join(" ")}return E}();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"),l=o("./node_modules/core-js/internals/is-array-iterator-method.js"),c=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(_){var g=s(_),f=typeof this=="function"?this:Array,E=arguments.length,h=E>1?arguments[1]:void 0,b=h!==void 0,y=0,R=u(g),x,O,M,S;if(b&&(h=i(h,E>2?arguments[2]:void 0,2)),R!=null&&!(f==Array&&l(R)))for(S=R.call(g),O=new f;!(M=S.next()).done;y++)d(O,y,b?a(S,h,[M.value,y],!0):M.value);else for(x=c(g.length),O=new f(x);x>y;y++)d(O,y,b?h(g[y],y):g[y]);return O.length=y,O}},"./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(l){return function(c,d,u){var p=i(c),_=s(p.length),g=a(u,_),f;if(l&&d!=d){for(;_>g;)if(f=p[g++],f!=f)return!0}else for(;_>g;g++)if((l||g in p)&&p[g]===d)return l||g||0;return!l&&-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,l){if(i(s),a===void 0)return s;switch(l){case 0:return function(){return s.call(a)};case 1:return function(c){return s.call(a,c)};case 2:return function(c,d){return s.call(a,c,d)};case 3:return function(c,d,u){return s.call(a,c,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,l,c){try{return c?a(i(l)[0],l[1]):a(l)}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 l=0,c={next:function(){return{done:!!l++}},return:function(){a=!0}};c[s]=function(){return this},Array.from(c,function(){throw 2})}catch{}n.exports=function(d,u){if(!u&&!a)return!1;var p=!1;try{var _={};_[s]=function(){return{next:function(){return{done:p=!0}}}},d(_)}catch{}return p}},"./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
2023-06-07 09:39:38 +02:00
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
2023-06-17 19:02:54 +02:00
*/(function(t,e){(function(n,r){t.exports=r()})(Bb,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,s={},a=0,l={parse:function(S,C){var I=(C=C||{}).dynamicTyping||!1;if(M(I)&&(C.dynamicTypingFunction=I,I={}),C.dynamicTyping=I,C.transform=!!M(C.transform)&&C.transform,C.worker&&l.WORKERS_SUPPORTED){var D=function(){if(!l.WORKERS_SUPPORTED)return!1;var K=(ie=r.URL||r.webkitURL||null,$=n.toString(),l.BLOB_URL||(l.BLOB_URL=ie.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",$,")();"],{type:"text/javascript"})))),P=new r.Worker(K),ie,$;return P.onmessage=b,P.id=a++,s[P.id]=P}();return D.userStep=C.step,D.userChunk=C.chunk,D.userComplete=C.complete,D.userError=C.error,C.step=M(C.step),C.chunk=M(C.chunk),C.complete=M(C.complete),C.error=M(C.error),delete C.worker,void D.postMessage({input:S,config:C,workerId:D.id})}var k=null;return l.NODE_STREAM_INPUT,typeof S=="string"?(S=function(K){return K.charCodeAt(0)===65279?K.slice(1):K}(S),k=C.download?new u(C):new _(C)):S.readable===!0&&M(S.read)&&M(S.on)?k=new g(C):(r.File&&S instanceof File||S instanceof Object)&&(k=new p(C)),k.stream(S)},unparse:function(S,C){var I=!1,D=!0,k=",",K=`\r
`,P='"',ie=P+P,$=!1,A=null,q=!1;(function(){if(typeof C=="object"){if(typeof C.delimiter!="string"||l.BAD_DELIMITERS.filter(function(te){return C.delimiter.indexOf(te)!==-1}).length||(k=C.delimiter),(typeof C.quotes=="boolean"||typeof C.quotes=="function"||Array.isArray(C.quotes))&&(I=C.quotes),typeof C.skipEmptyLines!="boolean"&&typeof C.skipEmptyLines!="string"||($=C.skipEmptyLines),typeof C.newline=="string"&&(K=C.newline),typeof C.quoteChar=="string"&&(P=C.quoteChar),typeof C.header=="boolean"&&(D=C.header),Array.isArray(C.columns)){if(C.columns.length===0)throw new Error("Option columns is empty");A=C.columns}C.escapeChar!==void 0&&(ie=C.escapeChar+P),(typeof C.escapeFormulae=="boolean"||C.escapeFormulae instanceof RegExp)&&(q=C.escapeFormulae instanceof RegExp?C.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var V=new RegExp(E(P),"g");if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return fe(null,S,$);if(typeof S[0]=="object")return fe(A||Object.keys(S[0]),S,$)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||A),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),fe(S.fields||[],S.data||[],$);throw new Error("Unable to serialize unrecognized input");function fe(te,he,Ee){var L="";typeof te=="string"&&(te=JSON.parse(te)),typeof he=="string"&&(he=JSON.parse(he));var W=Array.isArray(te)&&0<te.length,z=!Array.isArray(he[0]);if(W&&D){for(var Z=0;Z<te.length;Z++)0<Z&&(L+=k),L+=_e(te[Z],Z);0<he.length&&(L+=K)}for(var J=0;J<he.length;J++){var de=W?te.length:he[J].length,le=!1,T=W?Object.keys(he[J]).length===0:he[J].length===0;if(Ee&&!W&&(le=Ee==="greedy"?he[J].join("").trim()==="":he[J].length===1&&he[J][0].length===0),Ee==="greedy"&&W){for(var N=[],F=0;F<de;F++){var U=z?te[F]:F;N.push(he[J][U])}le=N.join("").trim()===""}if(!le){for(var B=0;B<de;B++){0<B&&!T&&(L+=k);var ne=W&&z?te[B]:B;L+=_e(he[J][ne],B)}J<he.length-1&&(!Ee||0<de&&!T)&&(L+=K)}}return L}function _e(te,he){if(te==null)return"";if(te.constructor===Date)return JSON.stringify(te).slice(1,25);var Ee=!1;q&&typeof te=="string"&&q.test(te)&&(te="'"+te,Ee=!0);var L=te.toString().replace(V,ie);return(Ee=Ee||I===!0||typeof I=="function"&&I(te,he)||Array.isArray(I)&&I[he]||function(W,z){for(var Z=0;Z<z.length;Z++)if(-1<W.indexOf(z[Z]))return!0;return!1}(L,l.BAD_DELIMITERS)||-1<L.indexOf(k)||L.charAt(0)===" "||L.charAt(L.length-1)===" ")?P+L+P:L}}};if(l.RECORD_SEP=String.fromCharCode(30),l.UNIT_SEP=String.fromCharCode(31),l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r",`
`,'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!o&&!!r.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=10485760,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=h,l.ParserHandle=f,l.NetworkStreamer=u,l.FileStreamer=p,l.StringStreamer=_,l.ReadableStreamStreamer=g,r.jQuery){var c=r.jQuery;c.fn.parse=function(S){var C=S.config||{},I=[];return this.each(function(K){if(!(c(this).prop("tagName").toUpperCase()==="INPUT"&&c(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var P=0;P<this.files.length;P++)I.push({file:this.files[P],inputElem:this,instanceConfig:c.extend({},C)})}),D(),this;function D(){if(I.length!==0){var K,P,ie,$,A=I[0];if(M(S.before)){var q=S.before(A.file,A.inputElem);if(typeof q=="object"){if(q.action==="abort")return K="AbortError",P=A.file,ie=A.inputElem,$=q.reason,void(M(S.error)&&S.error({name:K},P,ie,$));if(q.action==="skip")return void k();typeof q.config=="object"&&(A.instanceConfig=c.extend(A.instanceConfig,q.config))}else if(q==="skip")return void k()}var V=A.instanceConfig.complete;A.instanceConfig.complete=function(fe){M(V)&&V(fe,A.file,A.inputElem),k()},l.parse(A.file,A.instanceConfig)}else M(S.complete)&&S.complete()}function k(){I.splice(0,1),D()}}}function d(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(C){var I=x(C);I.chunkSize=parseInt(I.chunkSize),C.step||C.chunk||(I.chunkSize=null),this._handle=new f(I),(this._handle.streamer=this)._config=I}.call(this,S),this.parseChunk=function(C,I){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var D=this._config.beforeFirstChunk(C);D!==void 0&&(C=D)}this.isFirstChunk=!1,this._halted=!1;var k=this._partialLine+C;this._partialLine="";var K=this._handle.parse(k,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var P=K.meta.cursor;this._finished||(this._partialLine=k.substring(P-this._baseIndex),this._baseIndex=P),K&&K.data&&(this._rowCount+=K.data.length);var ie=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)r.postMessage({results:K,workerId:l.WORKER_ID,finished:ie});else if(M(this._config.chunk)&&!I){if(this._config.chunk(K,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);K=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(K.data),this._completeResults.errors=this._completeResults.errors.concat(K.errors),this._completeResults.meta=K.meta),this._completed||!ie||!M(this._config.complete)||K&&K.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),ie||K&&K.meta.paused||this._nextChunk(),K}this._halted=!0},this._sendError=function(C){M(this._config.error)?this._config.error(C):i&&this._config.error&&r.postMessage({workerId:l.WORKER_ID,error:C,finished:!1})}}function u(S){var C;(S=S||{}).chunkSize||(S.chunkSize=l.RemoteChunkSize),d.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(I){this._input=I,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(C=new XMLHttpRequest,this._config.withCredentials&&(C.withCredentials=this._config.withCredentials),o||(C.onload=O(this._chunkLoaded,this),C.onerror=O(this._chunkError,this)),C.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var I=this._config.downloadRequestHeaders;for(var D in I)C.setRequestHeader(D,I[D])}if(this._config.chunkSize){var k=this._start+this._config.chunkSize-1;C.setRequestHeader("Range","bytes="+this._start+"-"+k)}try{C.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}o&&C.status===0&&this._chunkError()}},this._chunkLoaded=function(){C.readyState===4&&(C.status<200||400<=C.status?th
2023-06-13 18:26:32 +02:00
`),re=1<G.length&&G[0].length<se[0].length;if(se.length===1||re)return`
`;for(var Y=0,X=0;X<se.length;X++)se[X][0]===`
2023-06-07 09:39:38 +02:00
`&&Y++;return Y>=se.length/2?`\r
2023-06-17 19:02:54 +02:00
`:"\r"}(J,T)),D=!1,S.delimiter)M(S.delimiter)&&(S.delimiter=S.delimiter(J),te.meta.delimiter=S.delimiter);else{var N=function(U,B,ne,se,G){var re,Y,X,ae;G=G||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var ue=0;ue<G.length;ue++){var ce=G[ue],ye=0,Q=0,oe=0;X=void 0;for(var pe=new h({comments:se,delimiter:ce,newline:B,preview:10}).parse(U),Te=0;Te<pe.data.length;Te++)if(ne&&Ee(pe.data[Te]))oe++;else{var xe=pe.data[Te].length;Q+=xe,X!==void 0?0<xe&&(ye+=Math.abs(xe-X),X=xe):X=xe}0<pe.data.length&&(Q/=pe.data.length-oe),(Y===void 0||ye<=Y)&&(ae===void 0||ae<Q)&&1.99<Q&&(Y=ye,re=ce,ae=Q)}return{successful:!!(S.delimiter=re),bestDelimiter:re}}(J,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess);N.successful?S.delimiter=N.bestDelimiter:(D=!0,S.delimiter=l.DefaultDelimiter),te.meta.delimiter=S.delimiter}var F=x(S);return S.preview&&S.header&&F.preview++,C=J,I=new h(F),te=I.parse(C,de,le),L(),V?{meta:{paused:!0}}:te||{meta:{paused:!1}}},this.paused=function(){return V},this.pause=function(){V=!0,I.abort(),C=M(S.chunk)?"":C.substring(I.getCharIndex())},this.resume=function(){$.streamer._halted?(V=!1,$.streamer.parseChunk(C,!0)):setTimeout($.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,I.abort(),te.meta.aborted=!0,M(S.complete)&&S.complete(te),C=""}}function E(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(S){var C,I=(S=S||{}).delimiter,D=S.newline,k=S.comments,K=S.step,P=S.preview,ie=S.fastMode,$=C=S.quoteChar===void 0||S.quoteChar===null?'"':S.quoteChar;if(S.escapeChar!==void 0&&($=S.escapeChar),(typeof I!="string"||-1<l.BAD_DELIMITERS.indexOf(I))&&(I=","),k===I)throw new Error("Comment character same as delimiter");k===!0?k="#":(typeof k!="string"||-1<l.BAD_DELIMITERS.indexOf(k))&&(k=!1),D!==`
2023-06-07 09:39:38 +02:00
`&&D!=="\r"&&D!==`\r
`&&(D=`
2023-06-17 19:02:54 +02:00
`);var A=0,q=!1;this.parse=function(V,fe,_e){if(typeof V!="string")throw new Error("Input must be a string");var te=V.length,he=I.length,Ee=D.length,L=k.length,W=M(K),z=[],Z=[],J=[],de=A=0;if(!V)return Be();if(S.header&&!fe){var le=V.split(D)[0].split(I),T=[],N={},F=!1;for(var U in le){var B=le[U];M(S.transformHeader)&&(B=S.transformHeader(B,U));var ne=B,se=N[B]||0;for(0<se&&(F=!0,ne=B+"_"+se),N[B]=se+1;T.includes(ne);)ne=ne+"_"+se;T.push(ne)}if(F){var G=V.split(D);G[0]=T.join(I),V=G.join(D)}}if(ie||ie!==!1&&V.indexOf(C)===-1){for(var re=V.split(D),Y=0;Y<re.length;Y++){if(J=re[Y],A+=J.length,Y!==re.length-1)A+=D.length;else if(_e)return Be();if(!k||J.substring(0,L)!==k){if(W){if(z=[],oe(J.split(I)),Ne(),q)return Be()}else oe(J.split(I));if(P&&P<=Y)return z=z.slice(0,P),Be(!0)}}return Be()}for(var X=V.indexOf(I,A),ae=V.indexOf(D,A),ue=new RegExp(E($)+E(C),"g"),ce=V.indexOf(C,A);;)if(V[A]!==C)if(k&&J.length===0&&V.substring(A,A+L)===k){if(ae===-1)return Be();A=ae+Ee,ae=V.indexOf(D,A),X=V.indexOf(I,A)}else if(X!==-1&&(X<ae||ae===-1))J.push(V.substring(A,X)),A=X+he,X=V.indexOf(I,A);else{if(ae===-1)break;if(J.push(V.substring(A,ae)),xe(ae+Ee),W&&(Ne(),q))return Be();if(P&&z.length>=P)return Be(!0)}else for(ce=A,A++;;){if((ce=V.indexOf(C,ce+1))===-1)return _e||Z.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:A}),Te();if(ce===te-1)return Te(V.substring(A,ce).replace(ue,C));if(C!==$||V[ce+1]!==$){if(C===$||ce===0||V[ce-1]!==$){X!==-1&&X<ce+1&&(X=V.indexOf(I,ce+1)),ae!==-1&&ae<ce+1&&(ae=V.indexOf(D,ce+1));var ye=pe(ae===-1?X:Math.min(X,ae));if(V.substr(ce+1+ye,he)===I){J.push(V.substring(A,ce).replace(ue,C)),V[A=ce+1+ye+he]!==C&&(ce=V.indexOf(C,A)),X=V.indexOf(I,A),ae=V.indexOf(D,A);break}var Q=pe(ae);if(V.substring(ce+1+Q,ce+1+Q+Ee)===D){if(J.push(V.substring(A,ce).replace(ue,C)),xe(ce+1+Q+Ee),X=V.indexOf(I,A),ce=V.indexOf(C,A),W&&(Ne(),q))return Be();if(P&&z.length>=P)return Be(!0);break}Z.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:A}),ce++}}else ce++}return Te();function oe(ze){z.push(ze),de=A}function pe(ze){var We=0;if(ze!==-1){var Je=V.substring(ce+1,ze);Je&&Je.trim()===""&&(We=Je.length)}return We}function Te(ze){return _e||(ze===void 0&&(ze=V.substring(A)),J.push(ze),A=te,oe(J),W&&Ne()),Be()}function xe(ze){A=ze,oe(J),J=[],ae=V.indexOf(D,A)}function Be(ze){return{data:z,errors:Z,meta:{delimiter:I,linebreak:D,aborted:q,truncated:!!ze,cursor:de+(fe||0)}}}function Ne(){K(Be()),z=[],Z=[]}},this.abort=function(){q=!0},this.getCharIndex=function(){return A}}function b(S){var C=S.data,I=s[C.workerId],D=!1;if(C.error)I.userError(C.error,C.file);else if(C.results&&C.results.data){var k={abort:function(){D=!0,y(C.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:R,resume:R};if(M(I.userStep)){for(var K=0;K<C.results.data.length&&(I.userStep({data:C.results.data[K],errors:C.results.errors,meta:C.results.meta},k),!D);K++);delete C.results}else M(I.userChunk)&&(I.userChunk(C.results,k,C.file),delete C.results)}C.finished&&!D&&y(C.workerId,C.results)}function y(S,C){var I=s[S];M(I.userComplete)&&I.userComplete(C),I.terminate(),delete s[S]}function R(){throw new Error("Not implemented.")}function x(S){if(typeof S!="object"||S===null)return S;var C=Array.isArray(S)?[]:{};for(var I in S)C[I]=x(S[I]);return C}function O(S,C){return function(){S.apply(C,arguments)}}function M(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var C=S.data;if(l.WORKER_ID===void 0&&C&&(l.WORKER_ID=C.workerId),typeof C.input=="string")r.postMessage({workerId:l.WORKER_ID,results:l.parse(C.input,C.config),finished:!0});else if(r.File&&C.input instanceof File||C.input instanceof Object){var I=l.parse(C.input,C.config);I&&r.postMessage({workerId:l.WORKER_ID,results:I,finished:!0})}}),(u.prototype=Object.create(d.prototype)).constructor=u,(p.prototype=Object.create(d.prototype)).constructor=p,(_.prototype=Object.create(_.prototype)).constructor=_,(g.prototype=Object.create(d.prototype)).constructor=g,l})})(Yb);var kN=Yb.exports
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&HA[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},fp=Symbol("internals");function Pr(t){return t&&String(t).trim().toLowerCase()}function Wo(t){return t===!1||t==null?t:j.isArray(t)?t.map(Wo):String(t)}function zA(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 $A=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bs(t,e,n,r,o){if(j.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!j.isString(e)){if(j.isString(r))return e.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(e)}}function WA(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function KA(t,e){const n=j.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 Vi{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,l,c){const d=Pr(l);if(!d)throw new Error("header name must be a non-empty string");const u=j.findKey(o,d);(!u||o[u]===void 0||c===!0||c===void 0&&o[u]!==!1)&&(o[u||l]=Wo(a))}const s=(a,l)=>j.forEach(a,(c,d)=>i(c,d,l));return j.isPlainObject(e)||e instanceof this.constructor?s(e,n):j.isString(e)&&(e=e.trim())&&!$A(e)?s(VA(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Pr(e),e){const r=j.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return zA(o);if(j.isFunction(n))return n.call(this,o,r);if(j.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Pr(e),e){const r=j.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||bs(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Pr(s),s){const a=j.findKey(r,s);a&&(!n||bs(r,r[a],a,n))&&(delete r[a],o=!0)}}return j.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||bs(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return j.forEach(this,(o,i)=>{const s=j.findKey(r,i);if(s){n[s]=Wo(o),delete n[i];return}const a=e?WA(i):String(i).trim();a!==i&&delete n[i],n[a]=Wo(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return j.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&j.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[fp]=this[fp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Pr(s);r[a]||(KA(o,s),r[a]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}}Vi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.freezeMethods(Vi.prototype);j.freezeMethods(Vi);const Zt=Vi;function Ss(t,e){const n=this||Au,r=e||n,o=Zt.from(r.headers);let i=r.data;return j.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function iS(t){return!!(t&&t.__CANCEL__)}function ho(t,e,n){ke.call(this,t??"canceled",ke.ERR_CANCELED,e,n),this.name="CanceledError"}j.inherits(ho,ke,{__CANCEL__:!0});function QA(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ke("Request failed with status code "+n.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const jA=Ut.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),j.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),j.isString(i)&&l.push("path="+i),j.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.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 XA(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ZA(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function sS(t,e){return t&&!XA(e)?ZA(t,e):e}const JA=Ut.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=j.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function eI(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function tI(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(l){const c=Date.now(),d=r[i];s||(s=c),n[o]=l,r[o]=c;let u=i,p=0;for(;u!==o;)p+=n[u++],u=u%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),c-s<e)return;const _=d&&c-d;return _?Math.round(p*1e3/_):void 0}}function hp(t,e){let n=0;const r=tI(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a),c=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}const nI=typeof XMLHttpRequest<"u",rI=nI&&function(t){return new Promise(function(n,r){let o=t.data;const i=Zt.from(t.headers).normalize(),s=t.responseType;let a;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}j.isFormData(o)&&(Ut.isStandardBrowserEnv||Ut.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const _=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(_+":"+g))}const d=sS(t.baseURL,t.url);c.open(t.method.toUpperCase(),nS(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function u(){if(!c)return;const _=Zt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),f={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:_,config:t,request:c};QA(function(h){n(h),l()},function(h){r(h),l()
`+t.name,4,!0):this.onPersonalityMounted(t),Se(()=>{Ce.replace()}),this.isLoading=!1}},onSelected(t){this.isLoading&&this.$refs.toast.showToast("Loading... please wait",4,!1),t&&(t.isInstalled?this.configFile.model_name!=t.title&&(this.update_model(t.title),this.configFile.model_name=t.title,this.$refs.toast.showToast(`Selected model:
2023-06-07 09:39:38 +02:00
`+t.title,4,!0),this.settingsChanged=!0,this.isModelSelected=!0):this.$refs.toast.showToast(`Model:
`+t.title+`
2023-06-17 19:02:54 +02:00
is not installed`,4,!1),Se(()=>{Ce.replace()}))},onCopy(t){let e;t.model.isCustomModel?e=`Model name: ${t.title}
2023-06-08 23:06:49 +02:00
File size: ${t.fileSize}
Manually downloaded model `:e=`Model name: ${t.title}
File size: ${t.fileSize}
Download: ${t.path}
License: ${t.license}
Owner: ${t.owner}
Website: ${t.owner_link}
Description: ${t.description}`,this.$refs.toast.showToast("Copied model info to clipboard!",4,!0),navigator.clipboard.writeText(e.trim())},onInstall(t){if(t.linkNotValid){t.installing=!1,this.$refs.toast.showToast("Link is not valid, file does not exist",4,!1);return}let e=t.path;this.showProgress=!0,this.progress=0,console.log("installing...");const n=r=>{if(console.log("received something"),r.status==="progress"){if(console.log(`Progress = ${r.progress}`),t.progress=r.progress,t.installing=!0,t.progress==100){const o=this.models.findIndex(i=>i.path===e);this.models[o].isInstalled=!0,this.showProgress=!1,t.installing=!1}}else if(r.status==="succeeded"){console.log("Received succeeded"),Ke.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,t.installing=!1,this.$refs.toast.showToast(`Model:
2023-06-07 09:39:38 +02:00
`+t.title+`
installed!`,4,!0),this.api_get_req("disk_usage").then(i=>{this.diskUsage=i})}else r.status==="failed"&&(Ke.off("install_progress",n),console.log("Install failed"),t.installing=!1,v,this.showProgress=!1,console.error("Installation failed:",r.error),this.$refs.toast.showToast(`Model:
2023-06-07 09:39:38 +02:00
`+t.title+`
failed to install!`,4,!1),this.api_get_req("disk_usage").then(o=>{this.diskUsage=o}))};Ke.on("install_progress",n),Ke.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"){t.uninstalling=!1,Ke.off("install_progress",e),this.showProgress=!1;const r=this.models.findIndex(o=>o.path===t.path);this.models[r].isInstalled=!1,t.model.isCustomModel&&(this.models=this.models.filter(o=>o.title!==t.title)),this.$refs.toast.showToast(`Model:
2023-06-07 09:39:38 +02:00
`+t.title+`
was uninstalled!`,4,!0),this.api_get_req("disk_usage").then(o=>{this.diskUsage=o})}else n.status==="failed"&&(t.uninstalling=!1,this.showProgress=!1,Ke.off("install_progress",e),console.error("Uninstallation failed:",message.error),this.$refs.toast.showToast(`Model:
2023-06-07 09:39:38 +02:00
`+t.title+`
2023-06-17 19:02:54 +02:00
failed to uninstall!`,4,!1),this.api_get_req("disk_usage").then(r=>{this.diskUsage=r}))};Ke.on("install_progress",e),Ke.emit("uninstall_model",{path:t.path})},onSelectedBinding(t){this.configFile.binding_name!=t.binding.folder&&this.update_binding(t.binding.folder)},onReinstallBinding(t){this.isLoading=!0,De.post("/reinstall_binding",{name:t.binding.folder}).then(e=>{if(e)return this.isLoading=!1,console.log("reinstall_binding",e),e.data.status?this.$refs.toast.showToast("Reinstalled binding successfully!",4,!0):this.$refs.toast.showToast("Could not reinstall binding",4,!1),e.data;this.isLoading=!1}).catch(e=>(this.isLoading=!1,this.$refs.toast.showToast(`Could not reinstall binding
`+e.message,4,!1),{status:!1}))},onMessageBoxOk(){console.log("OK button clicked")},refresh(){this.api_get_req("list_models").then(t=>{this.modelsArr=t,this.modelsArr.sort()}),this.api_get_req("list_personalities_categories").then(t=>{this.persCatgArr=t,this.persCatgArr.sort()}),this.api_get_req("get_config").then(t=>{this.getPersonalitiesArr().then(()=>{this.getMountedPersonalities()}),console.log("Received config"),this.configFile=t,this.models.forEach(e=>{e.title==t.model_name?e.selected=!0:e.selected=!1})}).then(()=>{this.api_get_req("get_current_personality_path_infos").then(t=>{this.configFile.personality_language=t.personality_language,this.configFile.personality_category=t.personality_category,this.configFile.personality_folder=t.personality_name,console.log("received infos")})}),this.api_get_req("list_personalities").then(t=>{this.persArr=t,this.persArr.sort(),console.log(`Listed personalities:
${t}`)}),this.api_get_req("disk_usage").then(t=>{this.diskUsage=t}),this.api_get_req("ram_usage").then(t=>{this.ramUsage=t}),this.fetchModels()},toggleAccordion(){this.showAccordion=!this.showAccordion},update_setting(t,e,n){this.isLoading=!0;const r={setting_name:t,setting_value:e};De.post("/update_setting",r).then(o=>{if(o)return this.isLoading=!1,console.log("update_setting",o),n!==void 0&&n(o),o.data;this.isLoading=!1}).catch(o=>(this.isLoading=!1,{status:!1}))},update_binding(t){this.isLoading=!0,this.update_setting("binding_name",t,e=>{this.$refs.toast.showToast("Binding changed.",4,!0),this.settingsChanged=!0,this.isLoading=!1,this.update_model(null),this.configFile.model_name=null,this.refresh(),Se(()=>{Ce.replace()})})},update_model(t){t||(this.isModelSelected=!1),this.isLoading=!0,this.update_setting("model_name",t,e=>{this.isLoading=!1})},applyConfiguration(){this.isLoading=!0,De.post("/apply_settings").then(t=>{this.isLoading=!1,t.data.status?(this.$refs.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1):this.$refs.toast.showToast("Configuration change failed.",4,!1),Se(()=>{Ce.replace()})})},save_configuration(){this.showConfirmation=!1,De.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.message,"save_configuration"),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&&De.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.message,"reset_configuration"),this.$refs.messageBox.showMessage("Couldn't reset settings!"),{status:!1}))})},async api_get_req(t){try{const e=await De.get("/"+t);if(e)return e.data}catch(e){console.log(e.message,"api_get_req - settings");return}},closeToast(){this.showToast=!1},async getPersonalitiesArr(){this.isLoading=!0,this.personalities=[];const t=await this.api_get_req("get_all_personalities"),e=await this.api_get_req("get_config"),n=Object.keys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o],s=Object.keys(i);for(let a=0;a<s.length;a++){const l=s[a],d=i[l].map(u=>{const p=e.personalities.includes(o+"/"+l+"/"+u.folder);let _={};return _=u,_.category=l,_.language=o,_.full_path=o+"/"+l+"/"+u.folder,_.isMounted=p,_});this.personalities.length==0?this.personalities=d:this.personalities=this.personalities.concat(d)}}this.personalities.sort((r,o)=>r.name.localeCompare(o.name)),this.personalitiesFiltered=this.personalities.filter(r=>r.category===this.configFile.personality_category&&r.language===this.configFile.personality_language),this.personalitiesFiltered.sort(),this.isLoading=!1},computedFileSize(t){return li(t)},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={language:t.language,category:t.category,folder:t.folder},n=await De.post("/mount_personality",e);if(n)return n.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={language:t.language,category:t.category,folder:t.folder};try{const n=await De.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};console.log("select pers",t);const n={id:this.configFile.personalities.findIndex(r=>r===t.full_path)};try{const r=await De.post("/select_personality",n);if(r){this.configFile=await this.api_get_req("get_config");let o=await this.api_get_req("get_current_personality_path_infos");return this.configFile.personality_language=o.personality_language,this.configFile.personality_category=o.personality_category,this.configFile.personality_folder=o.personality_name,r.data}}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(t){if(this.isLoading=!0,console.log("mount pers",t),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){this.isLoading=!1,this.$refs.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(t.personality);console.log("mount_personality res",e),e&&e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality:
2023-06-13 18:26:32 +02:00
`+t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality
2023-06-15 12:03:05 +02:00
Error: `+e.error,4,!1)),this.isLoading=!1},async unmountPersonality(t){if(this.isLoading=!0,!t)return;const e=await this.unmount_personality(t.personality||t);if(e.status){this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality unmounted",4,!0);const n=this.personalities.findIndex(a=>a.full_path==t.full_path),r=this.personalitiesFiltered.findIndex(a=>a.full_path==t.full_path),o=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path);console.log("ppp",this.personalities[n]),this.personalities[n].isMounted=!1,r>-1&&(this.personalitiesFiltered[r].isMounted=!1),o>-1&&(this.$refs.personalitiesZoo[o].isMounted=!1),this.getMountedPersonalities();const i=this.mountedPersArr[this.mountedPersArr.length-1];console.log(i,this.mountedPersArr.length),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality:
`+i.name,4,!0)}else this.$refs.toast.showToast(`Could not unmount personality
2023-06-17 19:02:54 +02:00
Error: `+e.error,4,!1);this.isLoading=!1},getMountedPersonalities(){let t=[];console.log(this.configFile.personalities.length);for(let e=0;e<this.configFile.personalities.length;e++){const n=this.configFile.personalities[e],r=this.personalities.findIndex(i=>i.full_path==n);console.log("index",r),console.log("i:",e);const o=this.personalities[r];o?t.push(o):t.push(this.personalities[this.personalities.findIndex(i=>i.full_path=="english/generic/lollms")])}this.mountedPersArr=[],this.mountedPersArr=t,console.log("getMountedPersonalities",t),console.log("fig",this.configFile.personality_category),Se(()=>{console.log("accc",this.$refs.mountedPersonalities)})},onPersonalityMounted(t){this.isLoading=!0,console.log("on sel ",t),this.configFile.personalities.includes(t.full_path)?this.configFile.personalities.length==1?this.$refs.toast.showToast("Can't unmount last personality",4,!1):this.unmountPersonality(t):this.mountPersonality(t),this.isLoading=!1},personalityImgPlacehodler(t){t.target.src=Er}},async mounted(){this.isLoading=!0,Se(()=>{Ce.replace()}),this.configFile=await this.api_get_req("get_config");let t=await this.api_get_req("get_current_personality_path_infos");this.configFile.personality_language=t.personality_language,this.configFile.personality_category=t.personality_category,this.configFile.personality_folder=t.personality_name,this.configFile.model_name&&(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"),this.bindingsArr.sort((e,n)=>e.name.localeCompare(n.name)),this.modelsArr.sort(),this.persLangArr.sort(),this.persCatgArr.sort(),this.persArr.sort(),this.langArr.sort(),await this.getPersonalitiesArr(),this.bindings=await this.api_get_req("list_bindings"),this.bindings.sort((e,n)=>e.name.localeCompare(n.name)),this.isLoading=!1,this.diskUsage=await this.api_get_req("disk_usage"),this.ramUsage=await this.api_get_req("ram_usage"),this.getMountedPersonalities(),this.isMounted=!0},activated(){},computed:{disk_available_space(){return this.computedFileSize(this.diskUsage.available_space)},disk_binding_models_usage(){return 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)},imgBinding(){if(this.isMounted)try{return this.$refs.bindingZoo[this.$refs.bindingZoo.findIndex(t=>t.binding.folder==this.configFile.binding_name)].$refs.imgElement.src}catch{return defaultImgPlaceholder}},imgModel(){if(this.isMounted)try{return this.$refs.modelZoo[this.$refs.modelZoo.findIndex(t=>t.title==this.configFile.model_name)].$refs.imgElement.src}catch{return Fd}},binding_name(){if(!this.isMounted)return;const t=this.bindingsArr.findIndex(e=>e.folder===this.configFile.binding_name);if(t>-1)return this.bindingsArr[t].name},active_pesonality(){if(!this.isMounted)return;const t=this.personalities.findIndex(e=>e.full_path===this.configFile.personalities[this.configFile.active_personality_id]);if(t>-1)return this.personalities[t].name}},watch:{bec_collapsed(){Se(()=>{Ce.replace()})},pc_collapsed(){Se(()=>{Ce.replace()})},mc_collapsed(){Se(()=>{Ce.replace()})},sc_collapsed(){Se(()=>{Ce.replace()})},showConfirmation(){Se(()=>{Ce.replace()})},mzl_collapsed(){Se(()=>{Ce.replace()})},pzl_collapsed(){Se(()=>{Ce.replace()})},bzl_collapsed(){Se(()=>{Ce.replace()})},all_collapsed(t){this.collapseAll(t),Se(()=>{Ce.replace()})},settingsChanged(t){this.$store.state.settingsChanged=t,Se
You need to apply changes before you leave, or else.`,"Apply configuration","Cancel")&&this.applyConfiguration(),!1}},Re=t=>(po("data-v-06597871"),t=t(),mo(),t),KD={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"},QD={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"},jD={key:0,class:"flex gap-3 flex-1 items-center duration-75"},XD=Re(()=>m("i",{"data-feather":"x"},null,-1)),ZD=[XD],JD=Re(()=>m("i",{"data-feather":"check"},null,-1)),e1=[JD],t1={key:1,class:"flex gap-3 flex-1 items-center"},n1=Re(()=>m("i",{"data-feather":"save"},null,-1)),r1=[n1],o1=Re(()=>m("i",{"data-feather":"refresh-ccw"},null,-1)),i1=[o1],s1=Re(()=>m("i",{"data-feather":"list"},null,-1)),a1=[s1],l1={class:"flex gap-3 flex-1 items-center justify-end"},c1={class:"flex gap-3 items-center"},d1={key:0,class:"flex gap-3 items-center"},u1=Re(()=>m("i",{"data-feather":"check"},null,-1)),_1=[u1],p1={key:1,role:"status"},m1=Re(()=>m("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"},[m("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"}),m("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)),g1=Re(()=>m("span",{class:"sr-only"},"Loading...",-1)),f1=[m1,g1],h1={class:"flex flex-col mb-2 rounded-lg bg-bg-light-tone dark:bg-bg-dark-tone hover:bg-bg-light-tone-panel hover:dark:bg-bg-dark-tone-panel duration-150 shadow-lg"},E1={class:"flex flex-row p-3"},b1=Re(()=>m("i",{"data-feather":"chevron-right",class:"mr-2 flex-shrink-0"},null,-1)),S1=Re(()=>m("h3",{class:"text-lg font-semibold cursor-pointer select-none mr-2"}," System status",-1)),y1=Re(()=>m("div",{class:"mr-2"},"|",-1)),T1={class:"text-base font-semibold cursor-pointer select-none items-center"},v1={class:"flex gap-2 items-center"},C1=Re(()=>m("i",{"data-feather":"cpu",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),R1={class:"font-bold font-large text-lg"},O1=Re(()=>m("i",{"data-feather":"hard-drive",class:"w-5 h-5 mx-1 flex-shrink-0"},null,-1)),N1={class:"font-bold font-large text-lg"},A1={class:"mb-2"},I1=Re(()=>m("label",{for:"disk",class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[m("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"})]),Ie(" Ram usage: ")],-1)),x1={class:"flex flex-col mx-2"},w1=Re(()=>m("b",null,"Avaliable space: ",-1)),D1=Re(()=>m("b",null,"Ram usage: ",-1)),M1={class:"p-2"},L1={class:"w-full bg-gray-200 rounded-full h-2.5 dark:bg-gray-700"},k1={class:"mb-2"},P1=Re(()=>m("label",{for:"disk",class:"flex items-center gap-1 ml-2 mb-2 text-sm font-medium text-gray-900 dark:text-white"},[m("i",{"data-feather":"hard-drive",class:"w-5 h-5"}),Ie(" Disk usage: ")],-1)),F1={class:"flex flex-col mx-2"},U1=Re(()=>m("b",null,"Avaliable space: ",-1)),B1=Re(()=>m("b",null,"Disk usage: ",-1)),G1={clas
`,aK="∄",lK="∄",cK="𝔑",dK="𝔫",uK="≧̸",_K="≱",pK="≱",mK="≧̸",gK="⩾̸",fK="⩾̸",hK="⋙̸",EK="≵",bK="≫⃒",SK="≯",yK="≯",TK="≫̸",vK="↮",CK="⇎",RK="⫲",OK="∋",NK="⋼",AK="⋺",IK="∋",xK="Њ",wK="њ",DK="↚",MK="⇍",LK="‥",kK="≦̸",PK="≰",FK="↚",UK="⇍",BK="↮",GK="⇎",qK="≰",YK="≦̸",HK="⩽̸",VK="⩽̸",zK="≮",$K="⋘̸",WK="≴",KK="≪⃒",QK="≮",jK="⋪",XK="⋬",ZK="≪̸",JK="∤",e7="",t7=" ",n7="𝕟",r7="",o7="⫬",i7="¬",s7="≢",a7="≭",l7="∦",c7="∉",d7="≠",u7="≂̸",_7="∄",p7="≯",m7="≱",g7="≧̸",f7="≫̸",h7="≹",E7="⩾̸",b7="≵",S7="≎̸",y7="≏̸",T7="∉",v7="⋵̸",C7="⋹̸",R7="∉",O7="⋷",N7="⋶",A7="⧏̸",I7="⋪",x7="⋬",w7="≮",D7="≰",M7="≸",L7="≪̸",k7="⩽̸",P7="≴",F7="⪢̸",U7="⪡̸",B7="∌",G7="∌",q7="⋾",Y7="⋽",H7="⊀",V7="⪯̸",z7="⋠",$7="∌",W7="⧐̸",K7="⋫",Q7="⋭",j7="⊏̸",X7="⋢",Z7="⊐̸",J7="⋣",eQ="⊂⃒",tQ="⊈",nQ="⊁",rQ="⪰̸",oQ="⋡",iQ="≿̸",sQ="⊃⃒",aQ="⊉",lQ="≁",cQ="≄",dQ="≇",uQ="≉",_Q="∤",pQ="∦",mQ="∦",gQ="⫽⃥",fQ="∂̸",hQ="⨔",EQ="⊀",bQ="⋠",SQ="⊀",yQ="⪯̸",TQ="⪯̸",vQ="⤳̸",CQ="↛",RQ="⇏",OQ="↝̸",NQ="↛",AQ="⇏",IQ="⋫",xQ="⋭",wQ="⊁",DQ="⋡",MQ="⪰̸",LQ="𝒩",kQ="𝓃",PQ="∤",FQ="∦",UQ="≁",BQ="≄",GQ="≄",qQ="∤",YQ="∦",HQ="⋢",VQ="⋣",zQ="⊄",$Q="⫅̸",WQ="⊈",KQ="⊂⃒",QQ="⊈",jQ="⫅̸",XQ="⊁",ZQ="⪰̸",JQ="⊅",ej="⫆̸",tj="⊉",nj="⊃⃒",rj="⊉",oj="⫆̸",ij="≹",sj="Ñ",aj="ñ",lj="≸",cj="⋪",dj="⋬",uj="⋫",_j="⋭",pj="Ν",mj="ν",gj="#",fj="№",hj="",Ej="≍⃒",bj="⊬",Sj="⊭",yj="⊮",Tj="⊯",vj="≥⃒",Cj=">⃒",Rj="⤄",Oj="⧞",Nj="⤂",Aj="≤⃒",Ij="<⃒",xj="⊴⃒",wj="⤃",Dj="⊵⃒",Mj="∼⃒",Lj="⤣",kj="↖",Pj="⇖",Fj="↖",Uj="⤧",Bj="Ó",Gj="ó",qj="⊛",Yj="Ô",Hj="ô",Vj="⊚",zj="О",$j="о",Wj="⊝",Kj="Ő",Qj="ő",jj="⨸",Xj="⊙",Zj="⦼",Jj="Œ",eX="œ",tX="⦿",nX="𝔒",rX="𝔬",oX="˛",iX="Ò",sX="ò",aX="⧁",lX="⦵",cX="Ω",dX="∮",uX="↺",_X="⦾",pX="⦻",mX="‾",gX="⧀",fX="Ō",hX="ō",EX="Ω",bX="ω",SX="Ο",yX="ο",TX="⦶",vX="⊖",CX="𝕆",RX="𝕠",OX="⦷",NX="“",AX="",IX="⦹",xX="⊕",wX="↻",DX="⩔",MX="",LX="⩝",kX="",PX="",FX="ª",UX="º",BX="⊶",GX="⩖",qX="⩗",YX="⩛",HX="Ⓢ",VX="𝒪",zX="",$X="Ø",WX="ø",KX="⊘",QX="Õ",jX="õ",XX="⨶",ZX="⨷",JX="⊗",eZ="Ö",tZ="ö",nZ="⌽",rZ="‾",oZ="⏞",iZ="⎴",sZ="⏜",aZ="¶",lZ="∥",cZ="∥",dZ="⫳",uZ="⫽",_Z="∂",pZ="∂",mZ="П",gZ="п",fZ="%",hZ=".",EZ="‰",bZ="⊥",SZ="‱",yZ="𝔓",TZ="𝔭",vZ="Φ",CZ="φ",RZ="ϕ",OZ="",NZ="☎",AZ="Π",IZ="π",xZ="⋔",wZ="ϖ",DZ="ℏ",MZ="",LZ="ℏ",kZ="⨣",PZ="⊞",FZ="⨢",UZ="+",BZ="∔",GZ="⨥",qZ="⩲",YZ="±",HZ="±",VZ="⨦",zZ="⨧",$Z="±",WZ="",KZ="⨕",QZ="𝕡",jZ="",XZ="£",ZZ="⪷",JZ="⪻",eJ="≺",tJ="≼",nJ="⪷",rJ="≺",oJ="≼",iJ="≺",sJ="⪯",aJ="≼",lJ="≾",cJ="⪯",dJ="⪹",uJ="⪵",_J="⋨",pJ="⪯",mJ="⪳",gJ="≾",fJ="",hJ="″",EJ="",bJ="⪹",SJ="⪵",yJ="⋨",TJ="∏",vJ="∏",CJ="⌮",RJ="⌒",OJ="⌓",NJ="∝",AJ="∝",IJ="∷",xJ="∝",wJ="≾",DJ="⊰",MJ="𝒫",LJ="𝓅",kJ="Ψ",PJ="ψ",FJ="",UJ="𝔔",BJ="𝔮",GJ="⨌",qJ="𝕢",YJ="",HJ="⁗",VJ="𝒬",zJ="𝓆",$J="",WJ="⨖",KJ="?",QJ="≟",jJ='"',XJ='"',ZJ="⇛",JJ="∽̱",eee="Ŕ",tee="ŕ",nee="√",ree="⦳",oee="⟩",iee="⟫",see="⦒",aee="⦥",lee="⟩",cee="»",dee="⥵",uee="⇥",_ee="⤠",pee="⤳",mee="→",gee="↠",fee="⇒",hee="⤞",Eee="↪",bee="↬",See="⥅",yee="⥴",Tee="⤖",vee="↣",Cee="↝",Ree="⤚",Oee="⤜",Nee="",Aee="",Iee="⤍",xee="⤏",wee="⤐",Dee="",Mee="}",Lee="]",kee="⦌",Pee="⦎",Fee="⦐",Uee="Ř",Bee="ř",Gee="Ŗ",qee="ŗ",Yee="⌉",Hee="}",Vee="Р",zee="р",$ee="⤷",Wee="⥩",Kee="”",Qee="”",jee="↳",Xee="",Zee="",Jee="",ete="",tte="",nte="▭",rte="®",ote="®",ite="∋",ste="⇋",ate="⥯",lte="⥽",cte="⌋",dte="𝔯",ute="",_te="⥤",pte="⇁",mte="⇀
`," "],s_e=["{","}","|","\\","^","`"].concat(i_e),a_e=["'"].concat(s_e),wp=["%","/","?",";","#"].concat(a_e),Dp=["/","?","#"],l_e=255,Mp=/^[+a-z0-9A-Z_-]{0,63}$/,c_e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Lp={javascript:!0,"javascript:":!0},kp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function d_e(t,e){if(t&&t instanceof di)return t;var n=new di;return n.parse(t,e),n}di.prototype.parse=function(t,e){var n,r,o,i,s,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var l=o_e.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=n_e.exec(a);if(c&&(c=c[0],o=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(e||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=a.substr(0,2)==="//",s&&!(c&&Lp[c])&&(a=a.substr(2),this.slashes=!0)),!Lp[c]&&(s||c&&!kp[c])){var d=-1;for(n=0;n<Dp.length;n++)i=a.indexOf(Dp[n]),i!==-1&&(d===-1||i<d)&&(d=i);var u,p;for(d===-1?p=a.lastIndexOf("@"):p=a.lastIndexOf("@",d),p!==-1&&(u=a.slice(0,p),a=a.slice(p+1),this.auth=u),d=-1,n=0;n<wp.length;n++)i=a.indexOf(wp[n]),i!==-1&&(d===-1||i<d)&&(d=i);d===-1&&(d=a.length),a[d-1]===":"&&d--;var _=a.slice(0,d);a=a.slice(d),this.parseHost(_),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var f=this.hostname.split(/\./);for(n=0,r=f.length;n<r;n++){var E=f[n];if(E&&!E.match(Mp)){for(var h="",b=0,y=E.length;b<y;b++)E.charCodeAt(b)>127?h+="x":h+=E[b];if(!h.match(Mp)){var R=f.slice(0,n),x=f.slice(n+1),O=E.match(c_e);O&&(R.push(O[1]),x.unshift(O[2])),x.length&&(a=x.join(".")+a),this.hostname=R.join(".");break}}}}this.hostname.length>l_e&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var S=a.indexOf("?");return S!==-1&&(this.search=a.substr(S),a=a.slice(0,S)),a&&(this.pathname=a),kp[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};di.prototype.parseHost=function(t){var e=r_e.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 u_e=d_e;wr.encode=Zue;wr.decode=e_e;wr.format=t_e;wr.parse=u_e;var xn={},Ts,Pp;function AS(){return Pp||(Pp=1,Ts=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Ts}var vs,Fp;function IS(){return Fp||(Fp=1,vs=/[\0-\x1F\x7F-\x9F]/),vs}var Cs,Up;function __e(){return Up||(Up=1,Cs=/[\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]/),Cs}var Rs,Bp;function xS(){return Bp||(Bp=1,Rs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Rs}var Gp;function p_e(){return Gp||(Gp=1,xn.Any=AS(),xn.Cc=IS(),xn.Cf=__e(),xn.P=Lu,xn.Z=xS()),xn}(function(t){function e(P){return Object.prototype.toString.call(P)}function n(P){return e(P)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(P,ie){return r.call(P,ie)}function i(P){var ie=Array.prototype.slice.call(arguments,1);return ie.forEach(function($){if($){if(typeof $!="object")throw new TypeError($+"must be object");Object.keys($).forEach(function(A){P[A]=$[A]})}}),P}function s(P,ie,$){return[].concat(P.slice(0,ie),$,P.slice(ie+1))}function a(P){return!(P>=55296&&P<=57343||P>=64976&&P<=65007||(P&65535)===65535||(P&65535)===65534||P>=0&&P<=8||P===11||P>=14&&P<=31||P>=127&&P<=159||P>1114111)}function l(P){if(P>65535){P-=65536;var ie=55296+(P>>10),$=56320+(P&1023);return String.fromCharCode(ie,$)}return String.fromCharCode(P)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,u=new RegExp(c.source+"|"+d.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_=NS;function g(P,ie){var $=0;return o(_,ie)?_[ie]:ie.charCodeAt(0)===35&&p.test(ie)&&($=ie[1].toLowerCase()==="x"?parseInt(ie.slice(2),16):parseInt(ie.slice(1),10),a($))?l($):P}function f(P){return P.indexOf("\\")<0?P:P.replace(c,"$1")}function E(P){return P.indexOf("\\"
`};$t.fence=function(t,e,n,r,o){var i=t[e],s=i.info?b_e(i.info).trim():"",a="",l="",c,d,u,p,_;return s&&(u=s.split(/(\s+)/g),a=u[0],l=u.slice(2).join("")),n.highlight?c=n.highlight(i.content,a,l)||$n(i.content):c=$n(i.content),c.indexOf("<pre")===0?c+`
`:s?(d=i.attrIndex("class"),p=i.attrs?i.attrs.slice():[],d<0?p.push(["class",n.langPrefix+a]):(p[d]=p[d].slice(),p[d][1]+=" "+n.langPrefix+a),_={attrs:p},"<pre><code"+o.renderAttrs(_)+">"+c+`</code></pre>
2023-06-10 01:37:50 +02:00
`):"<pre><code"+o.renderAttrs(i)+">"+c+`</code></pre>
`};$t.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)};$t.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
2023-06-07 09:39:38 +02:00
`:`<br>
`};$t.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
2023-06-07 09:39:38 +02:00
`:`<br>
`:`
2023-06-17 19:02:54 +02:00
`};$t.text=function(t,e){return $n(t[e].content)};$t.html_block=function(t,e){return t[e].content};$t.html_inline=function(t,e){return t[e].content};function Dr(){this.rules=E_e({},$t)}Dr.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+$n(e.attrs[n][0])+'="'+$n(e.attrs[n][1])+'"';return o};Dr.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-06-10 01:37:50 +02: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?`>
`:">",i)};Dr.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};Dr.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+=`
2023-06-17 19:02:54 +02:00
`);return r};Dr.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 S_e=Dr;function Lt(){this.__rules__=[],this.__cache__=null}Lt.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Lt.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))})})};Lt.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};Lt.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};Lt.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};Lt.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};Lt.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};Lt.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Lt.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};Lt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var ku=Lt,y_e=/\r\n?|\n/g,T_e=/\0/g,v_e=function(e){var n;n=e.src.replace(y_e,`
`),n=n.replace(T_e,"<22>"),e.src=n},C_e=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)},R_e=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)},O_e=Fe.arrayReplaceAt;function N_e(t){return/^<a[>\s]/i.test(t)}function A_e(t){return/^<\/a\s*>/i.test(t)}var I_e=function(e){var n,r,o,i,s,a,l,c,d,u,p,_,g,f,E,h,b=e.tokens,y;if(e.md.options.linkify){for(r=0,o=b.length;r<o;r++)if(!(b[r].type!=="inline"||!e.md.linkify.pretest(b[r].content)))for(i=b[r].children,g=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"&&(N_e(a.content)&&g>0&&g--,A_e(a.content)&&g++),!(g>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,y=e.md.linkify.match(d),l=[],_=a.level,p=0,y.length>0&&y[0].index===0&&n>0&&i[n-1].type==="text_special"&&(y=y.slice(1)),c=0;c<y.length;c++)f=y[c].url,E=e.md.normalizeLink(f),e.md.validateLink(E)&&(h=y[c].text,y[c].schema?y[c].schema==="mailto:"&&!/^mailto:/i.test(h)?h=e.md.normalizeLinkText("mailto:"+h).replace(/^mailto:/,""):h=e.md.normalizeLinkText(h):h=e.md.normalizeLinkText("http://"+h).replace(/^http:\/\//,""),u=y[c].index,u>p&&(s=new e.Token("text","",0),s.content=d.slice(p,u),s.level=_,l.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",E]],s.level=_++,s.markup="linkify",s.info="auto",l.push(s),s=new e.Token("text","",0),s.content=h,s.level=_,l.push(s),s=new e.Token("link_close","a",-1),s.level=--_,s.markup="linkify",s.info="auto",l.push(s),p=y[c].lastIndex);p<d.length&&(s=new e.Token("text","",0),s.content=d.slice(p),s.level=_,l.push(s)),b[r].children=i=O_e(i,n,l)}}}},wS=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,x_e=/\((c|tm|r)\)/i,w_e=/\((c|tm|r)\)/ig,D_e={c:"©",r:"®",tm:"™"};function M_e(t,e){return D_e[e.toLowerCase()]}function L_e(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(w_e,M_e)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function k_e(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 P_e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(x_e.test(e.tokens[n].content)&&L_e(e.tokens[n].children),wS.test(e.tokens[n].content)&&k_e(e.tokens[n].children))},Yp=Fe.isWhiteSpace,Hp=Fe.isPunctChar,Vp=Fe.isMdAsciiPunct,F_e=/['"]/,zp=/['"]/g,$p="";function Do(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function U_e(t,e){var n,r,o,i,s,a,l,c,d,u,p,_,g,f,E,h,b,y,R,x,O;for(R=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,b=R.length-1;b>=0&&!(R[b].level<=l);b--);if(R.length=b+1,r.type==="text"){o=r.content,s=0,a=o.length;e:for(;s<a&&(zp.lastIndex=s,i=zp.exec(o),!!i);){if(E=h=!0,s=i.index+1,y=i[0]==="'",d=32,i.index-1>=0)d=o.charCodeAt(i.index-1);else for(b=n-1;b>=0&&!(t[b].type==="softbreak"||t[b].type==="hardbreak");b--)if(t[b].content){d=t[b].content.charCodeAt(t[b].content.length-1);break}if(u=32,s<a)u=o.charCodeAt(s);else for(b=n+1;b<t.length&&!(t[b].type==="softbreak"||t[b].type==="hardbreak");b++)if(t[b].content){u=t[b].content.charCodeAt(0);break}if(p=Vp(d)||Hp(String.fromCharCode(d)),_=Vp(u)||Hp(String.fromCharCode(u)),g=Yp(d),f=Yp(u),f?E=!1:_&&(g||p||(E=!1)),g?h=!1:p&&(f||_||(h=!1)),u===34&&i[0]==='"'&&d>=48&&d<=57&&(h=E=!1),E&&h&&(E=p,h=_),!E&&!h){y&&(r.content=Do(r.content,i.index,$p));continue}if(h){for(b=R.length-1;b>=0&&(c=R[b],!(R[b].level<l));b--)if(c.single===y&&R[b].level===l){c=R[b],y?(x=e.md.options.quotes[2],O=e.md.options.quotes[
`,s.map=[n,e.line],!0},W_e=function(e,n,r,o){var i,s,a,l,c,d,u,p=!1,_=e.bMarks[n]+e.tShift[n],g=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||_+3>g||(i=e.src.charCodeAt(_),i!==126&&i!==96)||(c=_,_=e.skipChars(_,i),s=_-c,s<3)||(u=e.src.slice(c,_),a=e.src.slice(_,g),i===96&&a.indexOf(String.fromCharCode(i))>=0))return!1;if(o)return!0;for(l=n;l++,!(l>=r||(_=c=e.bMarks[l]+e.tShift[l],g=e.eMarks[l],_<g&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(_)===i&&!(e.sCount[l]-e.blkIndent>=4)&&(_=e.skipChars(_,i),!(_-c<s)&&(_=e.skipSpaces(_),!(_<g)))){p=!0;break}return s=e.sCount[n],e.line=l+(p?1:0),d=e.push("fence","code",0),d.info=a,d.content=e.getLines(n+1,l,s,!0),d.markup=u,d.map=[n,e.line],!0},Kp=Fe.isSpace,K_e=function(e,n,r,o){var i,s,a,l,c,d,u,p,_,g,f,E,h,b,y,R,x,O,M,S,C=e.lineMax,I=e.bMarks[n]+e.tShift[n],D=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(I++)!==62)return!1;if(o)return!0;for(l=_=e.sCount[n]+1,e.src.charCodeAt(I)===32?(I++,l++,_++,i=!1,R=!0):e.src.charCodeAt(I)===9?(R=!0,(e.bsCount[n]+_)%4===3?(I++,l++,_++,i=!1):i=!0):R=!1,g=[e.bMarks[n]],e.bMarks[n]=I;I<D&&(s=e.src.charCodeAt(I),Kp(s));){s===9?_+=4-(_+e.bsCount[n]+(i?1:0))%4:_++;I++}for(f=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(R?1:0),d=I>=D,b=[e.sCount[n]],e.sCount[n]=_-l,y=[e.tShift[n]],e.tShift[n]=I-e.bMarks[n],O=e.md.block.ruler.getRules("blockquote"),h=e.parentType,e.parentType="blockquote",p=n+1;p<r&&(S=e.sCount[p]<e.blkIndent,I=e.bMarks[p]+e.tShift[p],D=e.eMarks[p],!(I>=D));p++){if(e.src.charCodeAt(I++)===62&&!S){for(l=_=e.sCount[p]+1,e.src.charCodeAt(I)===32?(I++,l++,_++,i=!1,R=!0):e.src.charCodeAt(I)===9?(R=!0,(e.bsCount[p]+_)%4===3?(I++,l++,_++,i=!1):i=!0):R=!1,g.push(e.bMarks[p]),e.bMarks[p]=I;I<D&&(s=e.src.charCodeAt(I),Kp(s));){s===9?_+=4-(_+e.bsCount[p]+(i?1:0))%4:_++;I++}d=I>=D,f.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(R?1:0),b.push(e.sCount[p]),e.sCount[p]=_-l,y.push(e.tShift[p]),e.tShift[p]=I-e.bMarks[p];continue}if(d)break;for(x=!1,a=0,c=O.length;a<c;a++)if(O[a](e,p,r,!0)){x=!0;break}if(x){e.lineMax=p,e.blkIndent!==0&&(g.push(e.bMarks[p]),f.push(e.bsCount[p]),y.push(e.tShift[p]),b.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}g.push(e.bMarks[p]),f.push(e.bsCount[p]),y.push(e.tShift[p]),b.push(e.sCount[p]),e.sCount[p]=-1}for(E=e.blkIndent,e.blkIndent=0,M=e.push("blockquote_open","blockquote",1),M.markup=">",M.map=u=[n,0],e.md.block.tokenize(e,n,p),M=e.push("blockquote_close","blockquote",-1),M.markup=">",e.lineMax=C,e.parentType=h,u[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+n]=g[a],e.tShift[a+n]=y[a],e.sCount[a+n]=b[a],e.bsCount[a+n]=f[a];return e.blkIndent=E,!0},Q_e=Fe.isSpace,j_e=function(e,n,r,o){var i,s,a,l,c=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(i=e.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(s=1;c<d;){if(a=e.src.charCodeAt(c++),a!==i&&!Q_e(a))return!1;a===i&&s++}return s<3?!1:(o||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(s+1).join(String.fromCharCode(i))),!0)},MS=Fe.isSpace;function Qp(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),!MS(i))?-1:r}function jp(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),!MS(n))?-1:o}function X_e(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 Z_e=function(e,n,r,o){var i,s,a,l,c,d,u,p,_,g,f,E,h,b,y,R,x,O,M,S,C,I,D,k,K,P,ie,$,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),(D=jp(e,n))>=0){if(u=!0,K=e.bMarks[n]+e.tShift[n],h=Number(e.src.slice(K,D-1)),A&&h!==1)return!1}else if((D=Qp(e,n))>=0)u=!1;else return!1;if(A&&e.skipSpaces(D)>=e.
https://github.com/highlightjs/highlight.js/issues/2277`),_e=A,fe=q),V===void 0&&(V=!0);const te={code:fe,language:_e};ie("before:highlight",te);const he=te.result?te.result:u(te.language,te.code,V);return he.code=te.code,ie("after:highlight",he),he}function u(A,q,V,fe){const _e=Object.create(null);function te(Q,oe){return Q.keywords[oe]}function he(){if(!G.keywords){Y.addText(X);return}let Q=0;G.keywordPatternRe.lastIndex=0;let oe=G.keywordPatternRe.exec(X),pe="";for(;oe;){pe+=X.substring(Q,oe.index);const Te=B.case_insensitive?oe[0].toLowerCase():oe[0],xe=te(G,Te);if(xe){const[Be,Ne]=xe;if(Y.addText(pe),pe="",_e[Te]=(_e[Te]||0)+1,_e[Te]<=P4e&&(ae+=Ne),Be.startsWith("_"))pe+=oe[0];else{const ze=B.classNameAliases[Be]||Be;W(oe[0],ze)}}else pe+=oe[0];Q=G.keywordPatternRe.lastIndex,oe=G.keywordPatternRe.exec(X)}pe+=X.substring(Q),Y.addText(pe)}function Ee(){if(X==="")return;let Q=null;if(typeof G.subLanguage=="string"){if(!e[G.subLanguage]){Y.addText(X);return}Q=u(G.subLanguage,X,!0,re[G.subLanguage]),re[G.subLanguage]=Q._top}else Q=_(X,G.subLanguage.length?G.subLanguage:null);G.relevance>0&&(ae+=Q.relevance),Y.__addSublanguage(Q._emitter,Q.language)}function L(){G.subLanguage!=null?Ee():he(),X=""}function W(Q,oe){Q!==""&&(Y.startScope(oe),Y.addText(Q),Y.endScope())}function z(Q,oe){let pe=1;const Te=oe.length-1;for(;pe<=Te;){if(!Q._emit[pe]){pe++;continue}const xe=B.classNameAliases[Q[pe]]||Q[pe],Be=oe[pe];xe?W(Be,xe):(X=Be,he(),X=""),pe++}}function Z(Q,oe){return Q.scope&&typeof Q.scope=="string"&&Y.openNode(B.classNameAliases[Q.scope]||Q.scope),Q.beginScope&&(Q.beginScope._wrap?(W(X,B.classNameAliases[Q.beginScope._wrap]||Q.beginScope._wrap),X=""):Q.beginScope._multi&&(z(Q.beginScope,oe),X="")),G=Object.create(Q,{parent:{value:G}}),G}function J(Q,oe,pe){let Te=ZVe(Q.endRe,pe);if(Te){if(Q["on:end"]){const xe=new _m(Q);Q["on:end"](oe,xe),xe.isMatchIgnored&&(Te=!1)}if(Te){for(;Q.endsParent&&Q.parent;)Q=Q.parent;return Q}}if(Q.endsWithParent)return J(Q.parent,oe,pe)}function de(Q){return G.matcher.regexIndex===0?(X+=Q[0],1):(ye=!0,0)}function le(Q){const oe=Q[0],pe=Q.rule,Te=new _m(pe),xe=[pe.__beforeBegin,pe["on:begin"]];for(const Be of xe)if(Be&&(Be(Q,Te),Te.isMatchIgnored))return de(oe);return pe.skip?X+=oe:(pe.excludeBegin&&(X+=oe),L(),!pe.returnBegin&&!pe.excludeBegin&&(X=oe)),Z(pe,Q),pe.returnBegin?0:oe.length}function T(Q){const oe=Q[0],pe=q.substring(Q.index),Te=J(G,Q,pe);if(!Te)return Em;const xe=G;G.endScope&&G.endScope._wrap?(L(),W(oe,G.endScope._wrap)):G.endScope&&G.endScope._multi?(L(),z(G.endScope,Q)):xe.skip?X+=oe:(xe.returnEnd||xe.excludeEnd||(X+=oe),L(),xe.excludeEnd&&(X=oe));do G.scope&&Y.closeNode(),!G.skip&&!G.subLanguage&&(ae+=G.relevance),G=G.parent;while(G!==Te.parent);return Te.starts&&Z(Te.starts,Q),xe.returnEnd?0:oe.length}function N(){const Q=[];for(let oe=G;oe!==B;oe=oe.parent)oe.scope&&Q.unshift(oe.scope);Q.forEach(oe=>Y.openNode(oe))}let F={};function U(Q,oe){const pe=oe&&oe[0];if(X+=Q,pe==null)return L(),0;if(F.type==="begin"&&oe.type==="end"&&F.index===oe.index&&pe===""){if(X+=q.slice(oe.index,oe.index+1),!o){const Te=new Error(`0 width match regex (${A})`);throw Te.languageName=A,Te.badRule=F.rule,Te}return 1}if(F=oe,oe.type==="begin")return le(oe);if(oe.type==="illegal"&&!V){const Te=new Error('Illegal lexeme "'+pe+'" for mode "'+(G.scope||"<unnamed>")+'"');throw Te.mode=G,Te}else if(oe.type==="end"){const Te=T(oe);if(Te!==Em)return Te}if(oe.type==="illegal"&&pe==="")return 1;if(ce>1e5&&ce>oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=pe,pe.length}const B=C(A);if(!B)throw Vn(i.replace("{}",A)),new Error('Unknown language: "'+A+'"');const ne=D4e(B);let se="",G=fe||ne;const re={},Y=new a.__emitter(a);N();let X="",ae=0,ue=0,ce=0,ye=!1;try{if(B.__emitTokens)B.__emitTokens(q,Y);else{for(G.matcher.considerAll();;){ce++,ye?ye=!1:G.matcher.considerAll(),G.matcher.lastIndex=ue;const Q=G.matcher.exec(q);if(!Q)break;const oe=q.substring(ue,Q.index),pe=U(oe,Q);ue=Q.index+pe}U(q.substring(ue))}return Y.finalize(),se=Y.toHTML(),{language:A,value:se,rel
`},g]}}return yl=o,yl}var Tl,of;function v5e(){if(of)return Tl;of=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]}},l={className:"meta",begin:"\\[/noprocess|"+r},c={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:[c]},{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,l,{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,l].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return Tl=t,Tl}var vl,sf;function C5e(){if(sf)return vl;sf=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(D=>D+"(?![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-
]`,g={scope:"string",variants:[d,c,u,p]},f={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},E=["false","null","true"],h=["__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"],b=["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"],R={keyword:h,literal:(P=>{const ie=[];return P.forEach($=>{ie.push($),$.toLowerCase()===$?ie.push($.toUpperCase()):ie.push($.toLowerCase())}),ie})(E),built_in:b},x=P=>P.map(ie=>ie.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,n.concat(_,"+"),n.concat("(?!",x(b).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},M=n.concat(o,"\\b(?!\\()"),S={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,n.concat(/::/,n.lookahead(/(?!class\b)/)),M],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"}}]},C={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:R,contains:[C,s,S,e.C_BLOCK_COMMENT_MODE,g,f,O]},D={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",x(h).join("\\b|"),"|",x(b).join("\\b|"),"\\b)"),o,n.concat(_,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(D);const k=[C,S,e.C_BLOCK_COMMENT_MODE,g,f,O],K={begin:n.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...k]},
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return kc=t,kc}var Pc,bh;function F$e(){if(bh)return Pc;bh=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 Pc=t,Pc}var Fc,Sh;function U$e(){if(Sh)return Fc;Sh=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 Fc=t,Fc}var Uc,yh;function B$e(){if(yh)return Uc;yh=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-06-07 09:39:38 +02:00
]*?"'`},{begin:`"[^\r
2023-06-17 19:02:54 +02: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 qc=t,qc}var Yc,Rh;function H$e(){if(Rh)return Yc;Rh=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 Yc=t,Yc}var Hc,Oh;function V$e(){if(Oh)return Hc;Oh=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-06-07 09:39:38 +02:00
(multipart)?`,end:`\\]
2023-06-17 19:02:54 +02: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 Vc=t,Vc}var zc,Ah;function $$e(){if(Ah)return zc;Ah=1;function t(S){return S?typeof S=="string"?S:S.source:null}function e(S){return n("(?=",S,")")}function n(...S){return S.map(I=>t(I)).join("")}function r(S){const C=S[S.length-1];return typeof C=="object"&&C.constructor===Object?(S.splice(S.length-1,1),C):{}}function o(...S){return"("+(r(S).capture?"":"?:")+S.map(D=>t(D)).join("|")+")"}const i=S=>n(/\b/,S,/\w$/.test(S)?/\b/:/\B/),s=["Protocol","Type"].map(i),a=["init","self"].map(i),l=["Any","Self"],c=["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"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],_=["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"],g=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),f=o(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),E=n(g,f,"*"),h=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),b=o(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),y=n(h,b,"*"),R=n(/[A-Z]/,b,"*"),x=["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\(/,y,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],O=["iOS","iOSApplicationExtension","
`+t.name,4,!0):this.onPersonalityMounted(t),nextTick(()=>{}),this.isLoading=!1}},async mount_personality(t){if(!t)return{status:!1,error:"no personality - mount_personality"};try{const e={language:t.language,category:t.category,folder:t.folder},n=await De.post("/mount_personality",e);if(n)return n.data}catch(e){console.log(e.message,"mount_personality - settings");return}},async unmount_personality(t){if(!t)return{status:!1,error:"no personality - unmount_personality"};const e={language:t.language,category:t.category,folder:t.folder};try{const n=await De.post("/unmount_personality",e);if(n)return n.data}catch(n){console.log(n.message,"unmount_personality - settings");return}},async select_personality(t){if(!t)return{status:!1,error:"no personality - select_personality"};console.log("select pers",t);const n={id:this.configFile.personalities.findIndex(r=>r===t.full_path)};try{const r=await De.post("/select_personality",n);if(r){this.configFile=await this.api_get_req("get_config");let o=await this.api_get_req("get_current_personality_path_infos");return this.configFile.personality_language=o.personality_language,this.configFile.personality_category=o.personality_category,this.configFile.personality_folder=o.personality_name,r.data}}catch(r){console.log(r.message,"select_personality - settings");return}},async mountPersonality(t){if(this.isLoading=!0,console.log("mount pers",t),!t)return;if(this.configFile.personalities.includes(t.personality.full_path)){this.$refs.toast.showToast("Personality already mounted",4,!1);return}const e=await this.mount_personality(t.personality);console.log("mount_personality res",e),e.status?(this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality mounted",4,!0),t.isMounted=!0,(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality:
`+t.personality.name,4,!0),this.getMountedPersonalities()):(t.isMounted=!1,this.$refs.toast.showToast(`Could not mount personality
Error: `+e.error,4,!1)),this.isLoading=!1},async unmountPersonality(t){if(this.isLoading=!0,!t)return;const e=await this.unmount_personality(t.personality||t);if(e.status){this.configFile.personalities=e.personalities,this.$refs.toast.showToast("Personality unmounted",4,!0);const n=this.personalities.findIndex(a=>a.full_path==t.full_path),r=this.personalitiesFiltered.findIndex(a=>a.full_path==t.full_path),o=this.$refs.personalitiesZoo.findIndex(a=>a.full_path==t.full_path);console.log("ppp",this.personalities[n]),this.personalities[n].isMounted=!1,r>-1&&(this.personalitiesFiltered[r].isMounted=!1),o>-1&&(this.$refs.personalitiesZoo[o].isMounted=!1),this.getMountedPersonalities();const i=this.mountedPersArr[this.mountedPersArr.length-1];console.log(i,this.mountedPersArr.length),(await this.select_personality(t.personality)).status&&this.$refs.toast.showToast(`Selected personality:
`+i.name,4,!0)}else this.$refs.toast.showToast(`Could not unmount personality
Error: `+e.error,4,!1);this.isLoading=!1},getMountedPersonalities(){let t=[];console.log(this.configFile.personalities.length);for(let e=0;e<this.configFile.personalities.length;e++){const n=this.configFile.personalities[e],r=this.personalities.findIndex(i=>i.full_path==n),o=this.personalities[r];o?t.push(o):t.push(this.personalities[this.personalities.findIndex(i=>i.full_path=="english/generic/lollms")])}this.mountedPersArr=[],this.mountedPersArr=t,console.log("getMountedPersonalities",t),console.log("fig",this.configFile.personality_category)}}},h6e={class:"text-base font-semibold cursor-pointer select-none items-center flex flex-row overflow-visible overflow-x-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"},E6e={class:"flex -space-x-4 items-center"},b6e={class:"group items-center flex flex-row"},S6e=["onClick"],y6e=["src","title"],T6e=["onClick"],v6e=m("span",{class:"hidden group-hover:block top-0 left-7 absolute active:scale-90 bg-bg-light dark:bg-bg-dark rounded-full border-2 border-transparent",title:"Unmount personality"},[m("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"},[m("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),C6e=[v6e];function R6e(t,e,n,r,o,i){return H(),ee("div",h6e,[m("div",E6e,[(H(!0),ee(Ue,null,pt(r.mountedPersArr,(s,a)=>(H(),ee("div",{class:"relative hover:-translate-y-2 duration-300 hover:z-10 shrink-0",key:a+"-"+s.name},[m("div",b6e,[m("button",{onClick:be(l=>i.onPersonalitySelected(s),["stop"])},[m("img",{src:r.bUrl+s.avatar,onError:e[0]||(e[0]=(...l)=>i.personalityImgPlacehodler&&i.personalityImgPlacehodler(...l)),class:Le(["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(s.full_path)?"border-secondary":"border-transparent z-0"]),title:s.name},null,42,y6e)],8,S6e),m("button",{onClick:be(l=>i.onPersonalityMounted(s),["stop"])},C6e,8,T6e)])]))),128))])])}const O6e=Xe(f6e,[["render",R6e]]);const N6e={name:"ChatBox",emits:["messageSentEvent","stopGenerating"],props:{loading:!1},components:{MountedPersonalities:O6e},setup(){},data(){return{message:"",fileList:[],totalSize:0}},methods:{computedFileSize(t){return Se(()=>{Ce.replace()}),li(t)},removeItem(t){this.fileList=this.fileList.filter(e=>e!=t)},sendMessageEvent(t){this.fileList=[],this.$emit("messageSentEvent",t)},submitOnEnter(t){t.which===13&&(t.preventDefault(),t.repeat||(this.sendMessageEvent(this.message),this.message=""))},submit(){this.message&&(this.sendMessageEvent(this.message),this.message="")},stopGenerating(){this.$emit("stopGenerating")},addFiles(t){this.fileList=this.fileList.concat([...t.target.files])}},watch:{loading(t,e){Se(()=>{Ce.replace()})},fileList:{handler(t,e){let n=0;if(t.length>0)for(let r=0;r<t.length;r++)n=n+parseInt(t[r].size);this.totalSize=li(n,!0)},deep:!0}},mounted(){Se(()=>{Ce.replace()})},activated(){Se(()=>{Ce.replace()})}},kt=t=>(po("data-v-6edb1144"),t=t(),mo(),t),A6e={class:"absolute bottom-0 min-w-96 w-full justify-center text-center p-4"},I6e={key:0,class:"flex items-center justify-center w-full"},x6e={class:"flex flex-row p-2 rounded-t-lg"},w6e=kt(()=>m("label",{for:"chat",class:"sr-only"},"Send message",-1)),D6e={class:"px-3 py-3 rounded-lg bg-bg-light-tone-panel dark:bg-bg-dark-tone-panel shadow-lg"},M6e={class:"flex flex-col gap-2"},L6e={key:0,class:"flex flex-col max-h-64"},k6e=["title"],P6e={class:"flex flex-row items-center gap-1 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary"},F6e=kt(()=>m("div"
\r
\r
`,544),[[Ve,o.message]]),m("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:e[4]||(e[4]=(...s)=>i.addFiles&&i.addFiles(...s)),multiple:""},null,544),m("button",{type:"button",onClick:e[5]||(e[5]=be(s=>t.$refs.fileDialog.click(),["stop"])),title:"Add files",class:"absolute inset-y-0 right-0 flex items-center mr-2 w-6 hover:text-secondary duration-75 active:scale-90"},e8e)]),m("div",t8e,[n.loading?ge("",!0):(H(),ee("button",{key:0,type:"button",onClick:e[6]||(e[6]=(...s)=>i.submit&&i.submit(...s)),class:"w-6 hover:text-secondary duration-75 active:scale-90"},o8e)),n.loading?(H(),ee("div",i8e,a8e)):ge("",!0)])])])])])])}const ay=Xe(N6e,[["render",l8e],["__scopeId","data-v-6edb1144"]]),c8e={name:"WelcomeComponent",setup(){return{}}},d8e={class:"flex flex-col text-center"},u8e=fu('<div class="flex flex-col text-center items-center"><div class="flex items-center gap-3 text-5xl drop-shadow-md align-middle pt-24"><img class="w-24 animate-bounce" title="LoLLMS WebUI" src="'+Ub+'" alt="Logo"><div class="flex flex-col items-start"><p class="text-2xl">Lord of Large Language Models</p><p class="text-gray-400 text-base">One tool to rule them all</p></div></div><hr class="mt-1 w-96 h-1 mx-auto my-2 md:my-2 dark:bg-bg-dark-tone-panel bg-bg-light-tone-panel border-0 rounded"><p class="text-2xl">Welcome</p><p class="text-lg">Please create a new discussion or select existing one to start</p></div>',1),_8e=[u8e];function p8e(t,e,n,r,o,i){return H(),ee("div",d8e,_8e)}const ly=Xe(c8e,[["render",p8e]]);const m8e={setup(){return{}},name:"DragDrop",emits:["panelLeave","panelDrop"],data(){return{fileList:[],show:!1,dropRelease:!1}},mounted(){Se(()=>{Ce.replace()})},methods:{async panelDrop(t){const e="getAsFileSystemHandle"in DataTransferItem.prototype,n="webkitGetAsEntry"in DataTransferItem.prototype;if(!e&&!n)return;const r=[...t.dataTransfer.items].filter(i=>i.kind==="file").map(i=>e?i.getAsFileSystemHandle():i.webkitGetAsEntry());let o=[];for await(const i of r)(i.kind==="directory"||i.isDirectory)&&o.push(i.name);this.dropRelease=!0,t.dataTransfer.files.length>0&&[...t.dataTransfer.files].forEach(i=>{o.includes(i.name)||this.fileList.push(i)}),Se(()=>{Ce.replace()}),this.$emit("panelDrop",this.fileList),this.fileList=[],this.show=!1},panelLeave(){this.$emit("panelLeave"),console.log("exit/leave"),this.dropRelease=!1,this.show=!1,Se(()=>{Ce.replace()})}}},g8e={class:"text-4xl text-center"};function f8e(t,e,n,r,o,i){return H(),lt(Tn,{name:"list",tag:"div"},{default:nt(()=>[o.show?(H(),ee("div",{key:"dropmenu",class:"select-none text-slate-50 absolute top-0 left-0 right-0 bottom-0 flex flex-col items-center justify-center bg-black bg-opacity-50 duration-200 backdrop-blur-sm",onDragleave:e[0]||(e[0]=be(s=>i.panelLeave(s),["prevent"])),onDrop:e[1]||(e[1]=be(s=>i.panelDrop(s),["stop","prevent"]))},[m("div",{class:Le(["flex flex-col items-center justify-center p-8 rounded-lg shadow-lg border-dashed border-4 border-secondary w-4/5 h-4/5",o.dropRelease?"":"pointer-events-none"])},[m("div",g8e,[WE(t.$slots,"default",{},()=>[Ie(" Drop your files here ")])])],2)],32)):ge("",!0)]),_:3})}const $d=Xe(m8e,[["render",f8e]]);var h8e=function(){function t(e,n){n===void 0&&(n=[]),this._eventType=e,this._eventFunctions=n}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(n){typeof window<"u"&&window.addEventListener(e._eventType,n)})},t}(),pi=globalThis&&globalThis.__assign||function(){return pi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},pi.apply(this,arguments)},mi={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(){}},cy=function(){function t(e,n){e===void 0&&(e=[]),n===void 0&&(n=mi),this._items=e,this._options=pi(pi({},mi),n),this._init()}return t.prototype._init=function(){var e=this;this._items.length&&this._
Personality: ${t.message.personality}`);let r="";t.created_at_parsed&&(r=`
Created: ${t.created_at_parsed}`);let o="";t.message.content&&(o=t.message.content);let i="";t.message.model&&(i=`Model: ${t.message.model}`);let s="";t.message.seed&&(s=`Seed: ${t.message.seed}`);let a="";t.time_spent&&(a=`
Time spent: ${t.time_spent}`);let l="";l=`${e} ${i} ${s} ${a}`.trim();const c=`${t.message.sender}${n}${r}
${o}
${l}`;navigator.clipboard.writeText(c),Se(()=>{Ce.replace()})},closeToast(){this.showToast=!1},saveJSONtoFile(t,e){e=e||"data.json";const n=document.createElement("a");n.href=URL.createObjectURL(new Blob([JSON.stringify(t,null,2)],{type:"text/plain"})),n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n)},parseJsonObj(t){try{return JSON.parse(t)}catch(e){return this.$refs.toast.showToast(`Could not parse JSON.
`+e.message,4,!1),null}},async parseJsonFile(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=o=>e(this.parseJsonObj(o.target.result)),r.onerror=o=>n(o),r.readAsText(t)})},async exportDiscussions(){const t=this.list.filter(e=>e.checkBoxValue==!0).map(e=>e.id);if(t.length>0){console.log("export",t);let e=new Date;const n=e.getFullYear(),r=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0"),a=e.getSeconds().toString().padStart(2,"0"),c="discussions_export_"+(n+"."+r+"."+o+"."+i+s+a)+".json";this.loading=!0;const d=await this.export_multiple_discussions(t);d?(this.saveJSONtoFile(d,c),this.$refs.toast.showToast("Successfully exported",4,!0),this.isCheckbox=!1):this.$refs.toast.showToast("Failed to export discussions",4,!1),this.loading=!1}},async importDiscussions(t){const e=await this.parseJsonFile(t.target.files[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1)},async getPersonalityAvatars(){let t=[];const e=await this.api_get_req("get_all_personalities"),n=Object.keys(e);for(let r=0;r<n.length;r++){const o=n[r],i=e[o],s=Object.keys(i);for(let a=0;a<s.length;a++){const l=s[a],d=i[l].map(u=>{let p={};return p=u,p.category=l,p.language=o,p});t.length==0?t=d:t=t.concat(d)}}this.personalityAvatars=t.map(r=>({name:r.name,avatar:r.avatar}))},getAvatar(t){const e=this.personalityAvatars.findIndex(r=>r.name===t),n=this.personalityAvatars[e];if(n)return n.avatar},setFileListChat(t){try{this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t)}catch(e){this.$refs.toast.showToast(`Failed to set filelist in chatbox
`+e.message,4,!1)}this.isDragOverChat=!1},setDropZoneChat(){this.isDragOverChat=!0,this.$refs.dragdropChat.show=!0},async setFileListDiscussion(t){if(t.length>1){this.$refs.toast.showToast("Failed to import discussions. Too many files",4,!1);return}const e=await this.parseJsonFile(t[0]);await this.import_multiple_discussions(e)?(this.$refs.toast.showToast("Successfully imported ("+e.length+")",4,!0),await this.list_discussions()):this.$refs.toast.showToast("Failed to import discussions",4,!1),this.isDragOverDiscussion=!1},setDropZoneDiscussion(){this.isDragOverDiscussion=!0,this.$refs.dragdropDiscussion.show=!0}},async created(){this.setPageTitle(),await this.list_discussions(),this.loadLastUsedDiscussion(),this.isCreated=!0,Se(()=>{Ce.replace()}),Ke.on("infos",this.createBotMsg),Ke.on("message",this.streamMessageContent),Ke.on("final",this.finalMsgEvent)},mounted(){},async activated(){console.log("Websocket connected (activated)",this.socketConnected),await this.getPersonalityAvatars(),this.isCreated&&(this.loadLastUsedDiscussion(),Se(()=>{const t=document.getElementById("messages-list");this.scrollBottom(t)}))},components:{Discussion:OS,Message:sy,ChatBox:ay,WelcomeComponent:ly,Toast:wu,DragDrop:$d},watch:{filterTitle(t){t==""&&(this.filterInProgress=!0,this.list=this.tempList,this.filterInProgress=!1)},isCheckbox(t){Se(()=>{Ce.replace()}),t||(this.isSelectAll=!1)},socketConnected(t){console.log("Websocket connected (watch)",t)},showConfirmation(){Se(()=>{Ce.replace()})},isSearch(){Se(()=>{Ce.replace()})}},computed:{socketConnected(){return!0},selectedDiscussions(){return Se(()=>{Ce.replace()}),this.list.filter(t=>t.checkBoxValue==!0)}}},vKe=Object.assign(TKe,{__name:"DiscussionsView",setup(t){return Li(()=>{vWe()}),De.defaults.baseURL="/",(e,n)=>(H(),ee(Ue,null,[m("div",RWe,[m("div",{id:"leftPanel",class:"flex flex-col flex-grow overflow-y-scroll no-scrollbar",onDragover:n[13]||(n[13]=be(r=>e.setDropZoneDiscussion(),["stop","prevent"]))},[m("div",OWe,[m("div",NWe,[m("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Create new discussion",type:"button",onClick:n[0]||(n[0]=r=>e.createNewDiscussion())},IWe),m("button",{class:Le(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),title:"Edit discussion list",type:"button",onClick:n[1]||(n[1]=r=>e.isCheckbox=!e.isCheckbox)},wWe,2),DWe,MWe,m("input",{type:"file",ref:"fileDialog",style:{display:"none"},onChange:n[2]||(n[2]=(...r)=>e.importDiscussions&&e.importDiscussions(...r))},null,544),m("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90 rotate-90",title:"Import discussions",type:"button",onClick:n[3]||(n[3]=be(r=>e.$refs.fileDialog.click(),["stop"]))},kWe),m("button",{class:Le(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isSearch?"text-secondary":""]),title:"Filter discussions",type:"button",onClick:n[4]||(n[4]=r=>e.isSearch=!e.isSearch)},FWe,2),e.loading?(H(),ee("div",UWe,GWe)):ge("",!0)]),e.isSearch?(H(),ee("div",qWe,[m("div",YWe,[m("div",HWe,[VWe,m("div",zWe,[m("div",{class:Le(["hover:text-secondary duration-75 active:scale-90",e.filterTitle?"visible":"invisible"]),title:"Clear",onClick:n[5]||(n[5]=r=>e.filterTitle="")},WWe,2)]),qe(m("input",{type:"search",id:"default-search",class:"block w-full p-2 pl-10 pr-10 text-sm border border-gray-300 rounded-lg bg-bg-light 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",placeholder:"Search...",title:"Filter discussions by title","onUpdate:modelValue":n[6]||(n[6]=r=>e.filterTitle=r),onInput:n[7]||(n[7]=r=>e.filterDiscussions())},null,544),[[Ve,e.filterTitle]])])])])):ge("",!0),e.isCheckbox?(H(),ee("hr",KWe)):ge("",!0),e.isCheckbox?(H(),ee("div",QWe,[m("div",jWe,[e.selectedDiscussions.length>0?(H(),ee("p",XWe,"Selected: "+me(e.selectedDiscussions.length),1)):ge("",!0)]),m("div",ZWe,[e.selectedDiscussions.length>0?(H(),ee("div",JWe,[e.showConfirmation?ge("",!0):(H(),ee("button",{key:0,class:"flex mx-