lollms-webui/web/dist/assets/index-5903b487.js

82 lines
1.5 MiB
JavaScript
Raw Normal View History

(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)?Zy(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 Qy=/;(?![^(]*\))/g,jy=/:([^]+)/,Xy=/\/\*.*?\*\//gs;function Zy(t){const e={};return t.replace(Xy,"").split(Qy).forEach(n=>{if(n){const r=n.split(jy);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function ke(t){let e="";if($e(t))e=t;else if(ve(t))for(let n=0;n<t.length;n++){const r=ke(t[n]);r&&(e+=r+" ")}else if(Ye(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Jy="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ev=Xd(Jy);function lE(t){return!!t||t===""}function tv(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?tv(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 he=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):ar(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={},sr=[],wt=()=>{},nv=()=>!1,rv=/^on[^a-z]/,Ci=t=>rv.test(t),Zd=t=>t.startsWith("onUpdate:"),et=Object.assign,Jd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},ov=Object.prototype.hasOwnProperty,De=(t,e)=>ov.call(t,e),ve=Array.isArray,ar=t=>Cr(t)==="[object Map]",Ri=t=>Cr(t)==="[object Set]",d_=t=>Cr(t)==="[object Date]",iv=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),sv=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))},av=/-(\w)/g,Ht=Oi(t=>t.replace(av,(e,n)=>n?n.toUpperCase():"")),lv=/\B([A-Z])/g,Qn=Oi(t=>t.replace(lv,"-$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),lr=(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},cv=t=>{const e=$e(t)?Number(t):NaN;return isNaN(e)?t:e};let u_;const dv=()=>u_||(u_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Nt;class uv{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
*/var UR="store";function Ar(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function BR(t){return t!==null&&typeof t=="object"}function GR(t){return t&&typeof t.then=="function"}function qR(t,e){return function(){return t(e)}}function hS(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 ES(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),bu(t,n,e)}function bu(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]=qR(s,t),Object.defineProperty(t.getters,a,{get:function(){return i[a]()},enumerable:!0})}),t._state=Nr({data:e}),t.strict&&$R(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=Tu(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){a[l]=r.state})}var c=r.context=YR(t,s,n);r.forEachMutation(function(d,u){var p=s+u;HR(t,p,d,c)}),r.forEachAction(function(d,u){var p=d.root?u:s+u,_=d.handler||d;VR(t,p,_,c)}),r.forEachGetter(function(d,u){var p=s+u;zR(t,p,d,c)}),r.forEachChild(function(d,u){Ui(t,e,n.concat(u),d,o)})}function YR(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 SS(t,e)}},state:{get:function(){return Tu(t.state,n)}}}),o}function SS(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 HR(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push(function(s){n.call(t,r.state,s)})}function VR(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 GR(a)||(a=Promise.resolve(a)),t._devtoolHook?a.catch(function(l){throw t._devtoolHook.emit("vuex:error",l),l}):a})}function zR(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function $R(t){Yn(function(){return t._state.data},function(){},{deep:!0,flush:"sync"})}function Tu(t,e){return e.reduce(function(n,r){return n[r]},t)}function si(t,e,n){return BR(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var WR="vuex bindings",$_="vuex:mutations",ps="vuex:actions",Jn="vuex",KR=0;function QR(t,e){FR({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:[WR]},function(n){n.addTimelineLayer({id:$_,label:"Vuex Mutations",color:W_}),n.addTimelineLayer({id:ps,label:"Vuex Actions",color:W_}),n.addInspector({id:Jn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===t&&r.inspectorId===Jn)if(r.filter){var o=[];vS(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[yS(e._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===t&&r.inspectorId===Jn){var o=r.nodeId;SS(e,o),r.state=ZR(eO(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===t&&r.inspectorId===Jn){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 07:39:38 +00:00
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const rr=typeof window<"u";function nO(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Ue=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,rO=/\/$/,oO=t=>t.replace(rO,"");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=lO(r??e,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:s}}function iO(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 sO(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&fr(e.matched[r],n.matched[o])&&OS(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function fr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function OS(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!aO(t[n],e[n]))return!1;return!0}function aO(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 lO(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 cO(t){if(!t)if(rr){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),oO(t)}const dO=/^[^#]+#/;function uO(t,e){return t.replace(dO,"#")+e}function _O(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 pO(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=_O(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 mO(t,e){xd.set(t,e)}function gO(t){const e=xd.get(t);return xd.delete(t),e}let fO=()=>location.protocol+"//"+location.host;function NS(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 hO(t,e,n,r){let o=[],i=[],s=null;const a=({state:p})=>{const _=NS(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(Ue({},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 EO(t){const{history:e,location:n}=window,r={value:NS(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 07:39:38 +00:00
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(){var a=function(){function l(){}l.prototype=Object.create(null);function c(h,S){for(var T=S.length,R=0;R<T;++R)f(h,S[R])}var d={}.hasOwnProperty;function u(h,S){h[S]=!0}function p(h,S){for(var T in S)d.call(S,T)&&(h[T]=!!S[T])}var _=/\s+/;function g(h,S){for(var T=S.split(_),R=T.length,x=0;x<R;++x)h[T[x]]=!0}function f(h,S){if(S){var T=typeof S;T==="string"?g(h,S):Array.isArray(S)?c(h,S):T==="object"?p(h,S):T==="number"&&u(h,S)}}function E(){for(var h=arguments.length,S=Array(h),T=0;T<h;T++)S[T]=arguments[T];var R=new l;c(R,S);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,S=h!==void 0,T=0,R=u(g),x,O,M,b;if(S&&(h=i(h,E>2?arguments[2]:void 0,2)),R!=null&&!(f==Array&&l(R)))for(b=R.call(g),O=new f;!(M=b.next()).done;T++)d(O,T,S?a(b,h,[M.value,T],!0):M.value);else for(x=c(g.length),O=new f(x);x>T;T++)d(O,T,S?h(g[T],T):g[T]);return O.length=T,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 07:39:38 +00:00
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
*/(function(t,e){(function(n,r){t.exports=r()})(US,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(b,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,z=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; ","(",z,")();"],{type:"text/javascript"})))),P=new r.Worker(K),ie,z;return P.onmessage=S,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:b,config:C,workerId:D.id})}var k=null;return l.NODE_STREAM_INPUT,typeof b=="string"?(b=function(K){return K.charCodeAt(0)===65279?K.slice(1):K}(b),k=C.download?new u(C):new _(C)):b.readable===!0&&M(b.read)&&M(b.on)?k=new g(C):(r.File&&b instanceof File||b instanceof Object)&&(k=new p(C)),k.stream(b)},unparse:function(b,C){var I=!1,D=!0,k=",",K=`\r
2023-06-13 16:26:32 +00:00
`,P='"',ie=P+P,z=!1,A=null,q=!1;(function(){if(typeof C=="object"){if(typeof C.delimiter!="string"||l.BAD_DELIMITERS.filter(function(ee){return C.delimiter.indexOf(ee)!==-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"||(z=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 H=new RegExp(E(P),"g");if(typeof b=="string"&&(b=JSON.parse(b)),Array.isArray(b)){if(!b.length||Array.isArray(b[0]))return me(null,b,z);if(typeof b[0]=="object")return me(A||Object.keys(b[0]),b,z)}else if(typeof b=="object")return typeof b.data=="string"&&(b.data=JSON.parse(b.data)),Array.isArray(b.data)&&(b.fields||(b.fields=b.meta&&b.meta.fields||A),b.fields||(b.fields=Array.isArray(b.data[0])?b.fields:typeof b.data[0]=="object"?Object.keys(b.data[0]):[]),Array.isArray(b.data[0])||typeof b.data[0]=="object"||(b.data=[b.data])),me(b.fields||[],b.data||[],z);throw new Error("Unable to serialize unrecognized input");function me(ee,ge,Ee){var L="";typeof ee=="string"&&(ee=JSON.parse(ee)),typeof ge=="string"&&(ge=JSON.parse(ge));var $=Array.isArray(ee)&&0<ee.length,V=!Array.isArray(ge[0]);if($&&D){for(var Z=0;Z<ee.length;Z++)0<Z&&(L+=k),L+=_e(ee[Z],Z);0<ge.length&&(L+=K)}for(var J=0;J<ge.length;J++){var de=$?ee.length:ge[J].length,le=!1,y=$?Object.keys(ge[J]).length===0:ge[J].length===0;if(Ee&&!$&&(le=Ee==="greedy"?ge[J].join("").trim()==="":ge[J].length===1&&ge[J][0].length===0),Ee==="greedy"&&$){for(var N=[],F=0;F<de;F++){var U=V?ee[F]:F;N.push(ge[J][U])}le=N.join("").trim()===""}if(!le){for(var B=0;B<de;B++){0<B&&!y&&(L+=k);var te=$&&V?ee[B]:B;L+=_e(ge[J][te],B)}J<ge.length-1&&(!Ee||0<de&&!y)&&(L+=K)}}return L}function _e(ee,ge){if(ee==null)return"";if(ee.constructor===Date)return JSON.stringify(ee).slice(1,25);var Ee=!1;q&&typeof ee=="string"&&q.test(ee)&&(ee="'"+ee,Ee=!0);var L=ee.toString().replace(H,ie);return(Ee=Ee||I===!0||typeof I=="function"&&I(ee,ge)||Array.isArray(I)&&I[ge]||function($,V){for(var Z=0;Z<V.length;Z++)if(-1<$.indexOf(V[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(b){var C=b.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,z,A=I[0];if(M(b.before)){var q=b.before(A.file,A.inputElem);if(typeof q=="object"){if(q.action==="abort")return K="AbortError",P=A.file,ie=A.inputElem,z=q.reason,void(M(b.error)&&b.error({name:K},P,ie,z));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 H=A.instanceConfig.complete;A.instanceConfig.complete=function(me){M(H)&&H(me,A.file,A.inputElem),k()},l.parse(A.file,A.instanceConfig)}else M(b.complete)&&b.complete()}function k(){I.splice(0,1),D()}}}function d(b){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,b),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(b){var C;(b=b||{}).chunkSize||(b.chunkSize=l.RemoteChunkSize),d.call(this,b),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
`),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 07:39:38 +00:00
`&&Y++;return Y>=se.length/2?`\r
`:"\r"}(J,y)),D=!1,b.delimiter)M(b.delimiter)&&(b.delimiter=b.delimiter(J),ee.meta.delimiter=b.delimiter);else{var N=function(U,B,te,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],Te=0,Q=0,oe=0;X=void 0;for(var pe=new h({comments:se,delimiter:ce,newline:B,preview:10}).parse(U),ye=0;ye<pe.data.length;ye++)if(te&&Ee(pe.data[ye]))oe++;else{var Ie=pe.data[ye].length;Q+=Ie,X!==void 0?0<Ie&&(Te+=Math.abs(Ie-X),X=Ie):X=Ie}0<pe.data.length&&(Q/=pe.data.length-oe),(Y===void 0||Te<=Y)&&(ae===void 0||ae<Q)&&1.99<Q&&(Y=Te,re=ce,ae=Q)}return{successful:!!(b.delimiter=re),bestDelimiter:re}}(J,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess);N.successful?b.delimiter=N.bestDelimiter:(D=!0,b.delimiter=l.DefaultDelimiter),ee.meta.delimiter=b.delimiter}var F=x(b);return b.preview&&b.header&&F.preview++,C=J,I=new h(F),ee=I.parse(C,de,le),L(),H?{meta:{paused:!0}}:ee||{meta:{paused:!1}}},this.paused=function(){return H},this.pause=function(){H=!0,I.abort(),C=M(b.chunk)?"":C.substring(I.getCharIndex())},this.resume=function(){z.streamer._halted?(H=!1,z.streamer.parseChunk(C,!0)):setTimeout(z.resume,3)},this.aborted=function(){return me},this.abort=function(){me=!0,I.abort(),ee.meta.aborted=!0,M(b.complete)&&b.complete(ee),C=""}}function E(b){return b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(b){var C,I=(b=b||{}).delimiter,D=b.newline,k=b.comments,K=b.step,P=b.preview,ie=b.fastMode,z=C=b.quoteChar===void 0||b.quoteChar===null?'"':b.quoteChar;if(b.escapeChar!==void 0&&(z=b.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 07:39:38 +00:00
`&&D!=="\r"&&D!==`\r
`&&(D=`
`);var A=0,q=!1;this.parse=function(H,me,_e){if(typeof H!="string")throw new Error("Input must be a string");var ee=H.length,ge=I.length,Ee=D.length,L=k.length,$=M(K),V=[],Z=[],J=[],de=A=0;if(!H)return Fe();if(b.header&&!me){var le=H.split(D)[0].split(I),y=[],N={},F=!1;for(var U in le){var B=le[U];M(b.transformHeader)&&(B=b.transformHeader(B,U));var te=B,se=N[B]||0;for(0<se&&(F=!0,te=B+"_"+se),N[B]=se+1;y.includes(te);)te=te+"_"+se;y.push(te)}if(F){var G=H.split(D);G[0]=y.join(I),H=G.join(D)}}if(ie||ie!==!1&&H.indexOf(C)===-1){for(var re=H.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 Fe();if(!k||J.substring(0,L)!==k){if($){if(V=[],oe(J.split(I)),Ne(),q)return Fe()}else oe(J.split(I));if(P&&P<=Y)return V=V.slice(0,P),Fe(!0)}}return Fe()}for(var X=H.indexOf(I,A),ae=H.indexOf(D,A),ue=new RegExp(E(z)+E(C),"g"),ce=H.indexOf(C,A);;)if(H[A]!==C)if(k&&J.length===0&&H.substring(A,A+L)===k){if(ae===-1)return Fe();A=ae+Ee,ae=H.indexOf(D,A),X=H.indexOf(I,A)}else if(X!==-1&&(X<ae||ae===-1))J.push(H.substring(A,X)),A=X+ge,X=H.indexOf(I,A);else{if(ae===-1)break;if(J.push(H.substring(A,ae)),Ie(ae+Ee),$&&(Ne(),q))return Fe();if(P&&V.length>=P)return Fe(!0)}else for(ce=A,A++;;){if((ce=H.indexOf(C,ce+1))===-1)return _e||Z.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:V.length,index:A}),ye();if(ce===ee-1)return ye(H.substring(A,ce).replace(ue,C));if(C!==z||H[ce+1]!==z){if(C===z||ce===0||H[ce-1]!==z){X!==-1&&X<ce+1&&(X=H.indexOf(I,ce+1)),ae!==-1&&ae<ce+1&&(ae=H.indexOf(D,ce+1));var Te=pe(ae===-1?X:Math.min(X,ae));if(H.substr(ce+1+Te,ge)===I){J.push(H.substring(A,ce).replace(ue,C)),H[A=ce+1+Te+ge]!==C&&(ce=H.indexOf(C,A)),X=H.indexOf(I,A),ae=H.indexOf(D,A);break}var Q=pe(ae);if(H.substring(ce+1+Q,ce+1+Q+Ee)===D){if(J.push(H.substring(A,ce).replace(ue,C)),Ie(ce+1+Q+Ee),X=H.indexOf(I,A),ce=H.indexOf(C,A),$&&(Ne(),q))return Fe();if(P&&V.length>=P)return Fe(!0);break}Z.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:V.length,index:A}),ce++}}else ce++}return ye();function oe(ze){V.push(ze),de=A}function pe(ze){var We=0;if(ze!==-1){var Je=H.substring(ce+1,ze);Je&&Je.trim()===""&&(We=Je.length)}return We}function ye(ze){return _e||(ze===void 0&&(ze=H.substring(A)),J.push(ze),A=ee,oe(J),$&&Ne()),Fe()}function Ie(ze){A=ze,oe(J),J=[],ae=H.indexOf(D,A)}function Fe(ze){return{data:V,errors:Z,meta:{delimiter:I,linebreak:D,aborted:q,truncated:!!ze,cursor:de+(me||0)}}}function Ne(){K(Fe()),V=[],Z=[]}},this.abort=function(){q=!0},this.getCharIndex=function(){return A}}function S(b){var C=b.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,T(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&&T(C.workerId,C.results)}function T(b,C){var I=s[b];M(I.userComplete)&&I.userComplete(C),I.terminate(),delete s[b]}function R(){throw new Error("Not implemented.")}function x(b){if(typeof b!="object"||b===null)return b;var C=Array.isArray(b)?[]:{};for(var I in b)C[I]=x(b[I]);return C}function O(b,C){return function(){b.apply(C,arguments)}}function M(b){return typeof b=="function"}return i&&(r.onmessage=function(b){var C=b.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})})(qS);var MN=qS.exports
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&qA[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 HA(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 VA=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ss(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 zA(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function $A(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())&&!VA(e)?s(YA(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 HA(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||Ss(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||Ss(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||Ss(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?zA(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]||($A(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 bs(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 ob(t){return!!(t&&t.__CANCEL__)}function ho(t,e,n){Me.call(this,t??"canceled",Me.ERR_CANCELED,e,n),this.name="CanceledError"}j.inherits(ho,Me,{__CANCEL__:!0});function WA(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const KA=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 QA(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jA(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function ib(t,e){return t&&!QA(e)?jA(t,e):e}const XA=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 ZA(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function JA(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=JA(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 eI=typeof XMLHttpRequest<"u",tI=eI&&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=ib(t.baseURL,t.url);c.open(t.method.toUpperCase(),tb(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};WA(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 07:39:38 +00:00
`+t.title,4,!0),this.settingsChanged=!0,this.isModelSelected=!0):this.$refs.toast.showToast(`Model:
`+t.title+`
is not installed`,4,!1),Se(()=>{Ce.replace()}))},onCopy(t){let e;t.model.isCustomModel?e=`Model name: ${t.title}
2023-06-08 21:06:49 +00: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 07:39:38 +00: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 07:39:38 +00: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 07:39:38 +00: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 07:39:38 +00:00
`+t.title+`
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)},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){const r={setting_name:t,setting_value:e};Ge.post("/update_setting",r).then(o=>{if(o)return console.log("update_setting",o),n!==void 0&&n(o),o.data}).catch(o=>({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,Ge.post("/apply_settings").then(t=>{this.isLoading=!1,t.data.status==="succeeded"?(this.$refs.toast.showToast("Configuration changed successfully.",4,!0),this.settingsChanged=!1,this.save_configuration()):this.$refs.toast.showToast("Configuration change failed.",4,!1),Se(()=>{Ce.replace()})})},save_configuration(){this.showConfirmation=!1,Ge.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&&Ge.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 Ge.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 Ge.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 Ge.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 Ge.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:
2023-06-13 16:26:32 +00:00
`+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(i.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=[];if(this.configFile.personalities.length>0)for(let e=0;e<this.configFile.personalities.length;e++){const n=this.configFile.personalities[e],r=this.personalities.findIndex(o=>o.full_path==n);if(r){const o=this.personalities[r];o&&t.push(o)}}this.mountedPersArr=[],this.mountedPersArr=t,console.log("getMountedPersonalities",t),console.log("fig",this.configFile.personality_category),Se(()=>{console.log("accc",this.$refs.mountedPersonalities),this.$store.state.mountedPersonalities=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=!0},personalityImgPlacehodler(t){t.target.src=$n}},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}}},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){Se(()=>{Ce.replace()})},isLoading(){Se(()=>{Ce.replace()})}}},Re=t=>(po("data-v-37d03052"),t=t(),mo(),t),zD={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-0"},$D={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"},WD={key:0,class:"flex gap-3 flex-1 items-center duration-75"},KD=Re(()=>m("i",{"data-feather":"x"},null,-1)),QD=[KD],jD=Re(()=>m("i",{"data-feather":"check"},null
`,nK="∄",rK="∄",oK="𝔑",iK="𝔫",sK="≧̸",aK="≱",lK="≱",cK="≧̸",dK="⩾̸",uK="⩾̸",_K="⋙̸",pK="≵",mK="≫⃒",gK="≯",fK="≯",hK="≫̸",EK="↮",SK="⇎",bK="⫲",TK="∋",yK="⋼",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="⋵̸",S7="⋹̸",b7="∉",T7="⋷",y7="⋶",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="⤳̸",SQ="↛",bQ="⇏",TQ="↝̸",yQ="↛",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="≥⃒",Sj=">⃒",bj="⤄",Tj="⧞",yj="⤂",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="⊖",SX="𝕆",bX="𝕠",TX="⦷",yX="“",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="Φ",SZ="φ",bZ="ϕ",TZ="",yZ="☎",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="∏",SJ="⌮",bJ="⌒",TJ="⌓",yJ="∝",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="↣",See="↝",bee="⤚",Tee="⤜",yee="",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
`," "],t_e=["{","}","|","\\","^","`"].concat(e_e),n_e=["'"].concat(t_e),wp=["%","/","?",";","#"].concat(n_e),Dp=["/","?","#"],r_e=255,Mp=/^[+a-z0-9A-Z_-]{0,63}$/,o_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 i_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=Jue.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=Xue.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="",S=0,T=E.length;S<T;S++)E.charCodeAt(S)>127?h+="x":h+=E[S];if(!h.match(Mp)){var R=f.slice(0,n),x=f.slice(n+1),O=E.match(o_e);O&&(R.push(O[1]),x.unshift(O[2])),x.length&&(a=x.join(".")+a),this.hostname=R.join(".");break}}}}this.hostname.length>r_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 b=a.indexOf("?");return b!==-1&&(this.search=a.substr(b),a=a.slice(0,b)),a&&(this.pathname=a),kp[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};di.prototype.parseHost=function(t){var e=Zue.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 s_e=i_e;wr.encode=Wue;wr.decode=Que;wr.format=jue;wr.parse=s_e;var xn={},ys,Pp;function Nb(){return Pp||(Pp=1,ys=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ys}var vs,Fp;function Ab(){return Fp||(Fp=1,vs=/[\0-\x1F\x7F-\x9F]/),vs}var Cs,Up;function a_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 Ib(){return Bp||(Bp=1,Rs=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Rs}var Gp;function l_e(){return Gp||(Gp=1,xn.Any=Nb(),xn.Cc=Ab(),xn.Cf=a_e(),xn.P=Lu,xn.Z=Ib()),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(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(A){P[A]=z[A]})}}),P}function s(P,ie,z){return[].concat(P.slice(0,ie),z,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),z=56320+(P&1023);return String.fromCharCode(ie,z)}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,_=Ob;function g(P,ie){var z=0;return o(_,ie)?_[ie]:ie.charCodeAt(0)===35&&p.test(ie)&&(z=ie[1].toLowerCase()==="x"?parseInt(ie.slice(2),16):parseInt(ie.slice(1),10),a(z))?l(z):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?m_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)||Wn(i.content):c=Wn(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-09 23:37:50 +00: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 07:39:38 +00:00
`:`<br>
`};$t.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
2023-06-07 07:39:38 +00:00
`:`<br>
`:`
`};$t.text=function(t,e){return Wn(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=p_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+=" "+Wn(e.attrs[n][0])+'="'+Wn(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-09 23:37:50 +00:00
`),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&r.xhtmlOut&&(i+=" /"),a.block&&(s=!0,a.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(s=!1))),i+=s?`>
`:">",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+=`
`);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 g_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,f_e=/\r\n?|\n/g,h_e=/\0/g,E_e=function(e){var n;n=e.src.replace(f_e,`
`),n=n.replace(h_e,"<22>"),e.src=n},S_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)},b_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)},T_e=Pe.arrayReplaceAt;function y_e(t){return/^<a[>\s]/i.test(t)}function v_e(t){return/^<\/a\s*>/i.test(t)}var C_e=function(e){var n,r,o,i,s,a,l,c,d,u,p,_,g,f,E,h,S=e.tokens,T;if(e.md.options.linkify){for(r=0,o=S.length;r<o;r++)if(!(S[r].type!=="inline"||!e.md.linkify.pretest(S[r].content)))for(i=S[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"&&(y_e(a.content)&&g>0&&g--,v_e(a.content)&&g++),!(g>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(d=a.content,T=e.md.linkify.match(d),l=[],_=a.level,p=0,T.length>0&&T[0].index===0&&n>0&&i[n-1].type==="text_special"&&(T=T.slice(1)),c=0;c<T.length;c++)f=T[c].url,E=e.md.normalizeLink(f),e.md.validateLink(E)&&(h=T[c].text,T[c].schema?T[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=T[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=T[c].lastIndex);p<d.length&&(s=new e.Token("text","",0),s.content=d.slice(p),s.level=_,l.push(s)),S[r].children=i=T_e(i,n,l)}}}},xb=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,R_e=/\((c|tm|r)\)/i,O_e=/\((c|tm|r)\)/ig,N_e={c:"©",r:"®",tm:"™"};function A_e(t,e){return N_e[e.toLowerCase()]}function I_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(O_e,A_e)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function x_e(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&xb.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 w_e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(R_e.test(e.tokens[n].content)&&I_e(e.tokens[n].children),xb.test(e.tokens[n].content)&&x_e(e.tokens[n].children))},Yp=Pe.isWhiteSpace,Hp=Pe.isPunctChar,Vp=Pe.isMdAsciiPunct,D_e=/['"]/,zp=/['"]/g,$p="";function Do(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function M_e(t,e){var n,r,o,i,s,a,l,c,d,u,p,_,g,f,E,h,S,T,R,x,O;for(R=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,S=R.length-1;S>=0&&!(R[S].level<=l);S--);if(R.length=S+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,T=i[0]==="'",d=32,i.index-1>=0)d=o.charCodeAt(i.index-1);else for(S=n-1;S>=0&&!(t[S].type==="softbreak"||t[S].type==="hardbreak");S--)if(t[S].content){d=t[S].content.charCodeAt(t[S].content.length-1);break}if(u=32,s<a)u=o.charCodeAt(s);else for(S=n+1;S<t.length&&!(t[S].type==="softbreak"||t[S].type==="hardbreak");S++)if(t[S].content){u=t[S].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){T&&(r.content=Do(r.content,i.index,$p));continue}if(h){for(S=R.length-1;S>=0&&(c=R[S],!(R[S].level<l));S--)if(c.single===T&&R[S].level===l){c=R[S],T?(x=e.md.options.quotes[2],O=e.md.options.quotes[
`,s.map=[n,e.line],!0},Y_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=Pe.isSpace,H_e=function(e,n,r,o){var i,s,a,l,c,d,u,p,_,g,f,E,h,S,T,R,x,O,M,b,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,S=[e.sCount[n]],e.sCount[n]=_-l,T=[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&&(b=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&&!b){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),S.push(e.sCount[p]),e.sCount[p]=_-l,T.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]),T.push(e.tShift[p]),S.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}g.push(e.bMarks[p]),f.push(e.bsCount[p]),T.push(e.tShift[p]),S.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<T.length;a++)e.bMarks[a+n]=g[a],e.tShift[a+n]=T[a],e.sCount[a+n]=S[a],e.bsCount[a+n]=f[a];return e.blkIndent=E,!0},V_e=Pe.isSpace,z_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&&!V_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)},Db=Pe.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),!Db(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),!Db(n))?-1:o}function $_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 W_e=function(e,n,r,o){var i,s,a,l,c,d,u,p,_,g,f,E,h,S,T,R,x,O,M,b,C,I,D,k,K,P,ie,z,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,me=q),H===void 0&&(H=!0);const ee={code:me,language:_e};ie("before:highlight",ee);const ge=ee.result?ee.result:u(ee.language,ee.code,H);return ge.code=ee.code,ie("after:highlight",ge),ge}function u(A,q,H,me){const _e=Object.create(null);function ee(Q,oe){return Q.keywords[oe]}function ge(){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 ye=B.case_insensitive?oe[0].toLowerCase():oe[0],Ie=ee(G,ye);if(Ie){const[Fe,Ne]=Ie;if(Y.addText(pe),pe="",_e[ye]=(_e[ye]||0)+1,_e[ye]<=wze&&(ae+=Ne),Fe.startsWith("_"))pe+=oe[0];else{const ze=B.classNameAliases[Fe]||Fe;$(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():ge(),X=""}function $(Q,oe){Q!==""&&(Y.startScope(oe),Y.addText(Q),Y.endScope())}function V(Q,oe){let pe=1;const ye=oe.length-1;for(;pe<=ye;){if(!Q._emit[pe]){pe++;continue}const Ie=B.classNameAliases[Q[pe]]||Q[pe],Fe=oe[pe];Ie?$(Fe,Ie):(X=Fe,ge(),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?($(X,B.classNameAliases[Q.beginScope._wrap]||Q.beginScope._wrap),X=""):Q.beginScope._multi&&(V(Q.beginScope,oe),X="")),G=Object.create(Q,{parent:{value:G}}),G}function J(Q,oe,pe){let ye=WVe(Q.endRe,pe);if(ye){if(Q["on:end"]){const Ie=new _m(Q);Q["on:end"](oe,Ie),Ie.isMatchIgnored&&(ye=!1)}if(ye){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):(Te=!0,0)}function le(Q){const oe=Q[0],pe=Q.rule,ye=new _m(pe),Ie=[pe.__beforeBegin,pe["on:begin"]];for(const Fe of Ie)if(Fe&&(Fe(Q,ye),ye.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 y(Q){const oe=Q[0],pe=q.substring(Q.index),ye=J(G,Q,pe);if(!ye)return Em;const Ie=G;G.endScope&&G.endScope._wrap?(L(),$(oe,G.endScope._wrap)):G.endScope&&G.endScope._multi?(L(),V(G.endScope,Q)):Ie.skip?X+=oe:(Ie.returnEnd||Ie.excludeEnd||(X+=oe),L(),Ie.excludeEnd&&(X=oe));do G.scope&&Y.closeNode(),!G.skip&&!G.subLanguage&&(ae+=G.relevance),G=G.parent;while(G!==ye.parent);return ye.starts&&Z(ye.starts,Q),Ie.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 ye=new Error(`0 width match regex (${A})`);throw ye.languageName=A,ye.badRule=F.rule,ye}return 1}if(F=oe,oe.type==="begin")return le(oe);if(oe.type==="illegal"&&!H){const ye=new Error('Illegal lexeme "'+pe+'" for mode "'+(G.scope||"<unnamed>")+'"');throw ye.mode=G,ye}else if(oe.type==="end"){const ye=y(oe);if(ye!==Em)return ye}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 te=Nze(B);let se="",G=me||te;const re={},Y=new a.__emitter(a);N();let X="",ae=0,ue=0,ce=0,Te=!1;try{if(B.__emitTokens)B.__emitTokens(q,Y);else{for(G.matcher.considerAll();;){ce++,Te?Te=!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 Tl=o,Tl}var yl,of;function E5e(){if(of)return yl;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 yl=t,yl}var vl,sf;function S5e(){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"],S=["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(z=>{ie.push(z),z.toLowerCase()===z?ie.push(z.toUpperCase()):ie.push(z.toLowerCase())}),ie})(E),built_in:S},x=P=>P.map(ie=>ie.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,n.concat(_,"+"),n.concat("(?!",x(S).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},M=n.concat(o,"\\b(?!\\()"),b={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,b,e.C_BLOCK_COMMENT_MODE,g,f,O]},D={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",x(h).join("\\b|"),"|",x(S).join("\\b|"),"\\b)"),o,n.concat(_,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(D);const k=[C,b,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,Sh;function D$e(){if(Sh)return Pc;Sh=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,bh;function M$e(){if(bh)return Fc;bh=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,Th;function L$e(){if(Th)return Uc;Th=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 07:39:38 +00:00
]*?"'`},{begin:`"[^\r
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return qc=t,qc}var Yc,Rh;function U$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 B$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 07:39:38 +00:00
(multipart)?`,end:`\\]
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Vc=t,Vc}var zc,Ah;function q$e(){if(Ah)return zc;Ah=1;function t(b){return b?typeof b=="string"?b:b.source:null}function e(b){return n("(?=",b,")")}function n(...b){return b.map(I=>t(I)).join("")}function r(b){const C=b[b.length-1];return typeof C=="object"&&C.constructor===Object?(b.splice(b.length-1,1),C):{}}function o(...b){return"("+(r(b).capture?"":"?:")+b.map(D=>t(D)).join("|")+")"}const i=b=>n(/\b/,b,/\w$/.test(b)?/\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]/),S=o(h,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),T=n(h,S,"*"),R=n(/[A-Z]/,S,"*"),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\(/,T,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],O=["iOS","iOSApplicationExtension","
`,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"},O6e)]),m("div",N6e,[n.loading?fe("",!0):(W(),ne("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"},x6e)),n.loading?(W(),ne("div",w6e,M6e)):fe("",!0)])])])])])])}const sT=Ze(J9e,[["render",L6e],["__scopeId","data-v-0f50df52"]]),k6e={name:"WelcomeComponent",setup(){return{}}},P6e={class:"flex flex-col text-center"},F6e=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="'+$n+'" alt="Logo"><p class="">lollms-webui</p></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-lg">Welcome, please create a new discussion or select existing one to start</p></div>',1),U6e=[F6e];function B6e(t,e,n,r,o,i){return W(),ne("div",P6e,U6e)}const aT=Ze(k6e,[["render",B6e]]);const G6e={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()})}}},q6e={class:"text-4xl text-center"};function Y6e(t,e,n,r,o,i){return W(),lt(yn,{name:"list",tag:"div"},{default:nt(()=>[o.show?(W(),ne("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:ke(["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",q6e,[WE(t.$slots,"default",{},()=>[we(" Drop your files here ")])])],2)],32)):fe("",!0)]),_:3})}const $d=Ze(G6e,[["render",Y6e]]);var H6e=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(){}},lT=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._items.map(function(n){n.active&&e.open(n.id),n.triggerEl.addEventListener("click",function(){e.toggle(n.id)})})},t.prototype.getItem=function(e){return this
`+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){this.$refs.chatBox.fileList=this.$refs.chatBox.fileList.concat(t),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)},async activated(){console.log("settings changed",this.$store.state.mountedPersonalities),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:Rb,Message:iT,ChatBox:sT,WelcomeComponent:aT,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)}}},QWe=Object.assign(KWe,{__name:"DiscussionsView",setup(t){return Li(()=>{Q8e()}),Ge.defaults.baseURL="/",(e,n)=>(W(),ne(Be,null,[m("div",X8e,[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",Z8e,[m("div",J8e,[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())},tWe),m("button",{class:ke(["text-2xl hover:text-secondary duration-75 active:scale-90",e.isCheckbox?"text-secondary":""]),tit