diff --git a/lollms_webui.py b/lollms_webui.py index 131ddcaf..ab3f2cfe 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -1024,6 +1024,7 @@ class LOLLMSWebUI(LOLLMSElfServer): { "sender": self.personality.name, "id": client.discussion.current_message.id, + "discussion_id": client.discussion.discussion_id, "content": client.generated_text, "binding": self.binding.binding_folder_name, "model": self.model.model_name, diff --git a/web/dist/assets/index-cKfhiyTm.js b/web/dist/assets/index-8x9TDz4s.js similarity index 99% rename from web/dist/assets/index-cKfhiyTm.js rename to web/dist/assets/index-8x9TDz4s.js index dc8e3a60..d24eaf8a 100644 --- a/web/dist/assets/index-cKfhiyTm.js +++ b/web/dist/assets/index-8x9TDz4s.js @@ -1 +1 @@ -import{n as r,b as i,d as n,L as $,f as y,g as P,h as X,l as m,E as S,s as c,t as O}from"./index-Ywe7hT58.js";const s=110,l=1,f=2,t=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function e(T){return T>=65&&T<=90||T>=97&&T<=122||T>=161}function p(T){return T>=48&&T<=57}const W=new S((T,Q)=>{if(T.next==40){let a=T.peek(-1);(e(a)||p(a)||a==95||a==45)&&T.acceptToken(f,1)}}),d=new S(T=>{if(t.indexOf(T.peek(-1))>-1){let{next:Q}=T;(e(Q)||Q==95||Q==35||Q==46||Q==91||Q==58||Q==45)&&T.acceptToken(s)}}),Z=new S(T=>{if(t.indexOf(T.peek(-1))<0){let{next:Q}=T;if(Q==37&&(T.advance(),T.acceptToken(l)),e(Q)){do T.advance();while(e(T.next));T.acceptToken(l)}}}),w=c({"import charset namespace keyframes media supports when":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName PropertyVariable":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,"AtKeyword Interpolation":O.special(O.variableName),Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,MatchOp:O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,"Comment LineComment":O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,Escape:O.special(O.string),": ...":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),h={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},z={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},g=$.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#DkOOQO,58|,58|O(QQWO,58|O,pQWO,5:{OOQO,5:{,5:{OOQT'#Cl'#ClO-UQeO,59TO.cQ[O,59TOOQP'#D]'#D]OOQP,59u,59uOOQO'#D_'#D_O.hQpO,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S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[d,Z,W,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:T=>h[T]||-1},{term:23,get:T=>z[T]||-1}],tokenPrec:2180}),o=i.define({name:"less",parser:g.configure({props:[y.add({Declaration:X()}),P.add({Block:m})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),u=r(T=>T.name=="VariableName"||T.name=="AtKeyword");function R(){return new n(o,o.data.of({autocomplete:u}))}export{R as less,u as lessCompletionSource,o as lessLanguage}; +import{n as r,b as i,d as n,L as $,f as y,g as P,h as X,l as m,E as S,s as c,t as O}from"./index-D8eUH6YH.js";const s=110,l=1,f=2,t=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function e(T){return T>=65&&T<=90||T>=97&&T<=122||T>=161}function p(T){return T>=48&&T<=57}const W=new S((T,Q)=>{if(T.next==40){let a=T.peek(-1);(e(a)||p(a)||a==95||a==45)&&T.acceptToken(f,1)}}),d=new S(T=>{if(t.indexOf(T.peek(-1))>-1){let{next:Q}=T;(e(Q)||Q==95||Q==35||Q==46||Q==91||Q==58||Q==45)&&T.acceptToken(s)}}),Z=new S(T=>{if(t.indexOf(T.peek(-1))<0){let{next:Q}=T;if(Q==37&&(T.advance(),T.acceptToken(l)),e(Q)){do T.advance();while(e(T.next));T.acceptToken(l)}}}),w=c({"import charset namespace keyframes media supports when":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName PropertyVariable":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,"AtKeyword Interpolation":O.special(O.variableName),Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,MatchOp:O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,"Comment LineComment":O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,Escape:O.special(O.string),": ...":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),h={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},z={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},g=$.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#DkOOQO,58|,58|O(QQWO,58|O,pQWO,5:{OOQO,5:{,5:{OOQT'#Cl'#ClO-UQeO,59TO.cQ[O,59TOOQP'#D]'#D]OOQP,59u,59uOOQO'#D_'#D_O.hQpO,59xOOQO'#EZ'#EZO.pQ`O,5;oOOQO,5;o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=`<%l!.w`!2nP;=`<%l$t",tokenizers:[d,Z,W,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:T=>h[T]||-1},{term:23,get:T=>z[T]||-1}],tokenPrec:2180}),o=i.define({name:"less",parser:g.configure({props:[y.add({Declaration:X()}),P.add({Block:m})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),u=r(T=>T.name=="VariableName"||T.name=="AtKeyword");function R(){return new n(o,o.data.of({autocomplete:u}))}export{R as less,u as lessCompletionSource,o as lessLanguage}; diff --git a/web/dist/assets/index-Ywe7hT58.js b/web/dist/assets/index-D8eUH6YH.js similarity index 99% rename from web/dist/assets/index-Ywe7hT58.js rename to web/dist/assets/index-D8eUH6YH.js index 7bf04095..c4f7880a 100644 --- a/web/dist/assets/index-Ywe7hT58.js +++ b/web/dist/assets/index-D8eUH6YH.js @@ -562,7 +562,7 @@ ${e.disclaimer} Mount this personality?`,"Mount","Cancel"))return;this.setPersonalityProcessing(t,!0),this.show_toast(`Mounting ${e.name}...`,3,!0);const n=await this.mount_personality(e);if(n&&n.status){await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),this.show_toast(`Personality "${e.name}" mounted`,4,!0);const r=this.$store.state.config;if((r==null?void 0:r.active_personality_id)>-1){const i=e.language?`${e.full_path}:${e.language}`:e.full_path,s=r.personalities[r.active_personality_id];i===s&&this.show_toast(`${e.name} mounted and selected`,4,!0)}}else this.show_toast(`Could not mount personality Error: ${(n==null?void 0:n.error)||"Unknown error"}`,4,!1);this.setPersonalityProcessing(t,!1)},async mount_personality(t){if(!t)return{status:!1,error:"no personality provided"};try{const e={language:t.language||"",category:t.category||"",folder:t.folder||""};return await this.api_post_req("mount_personality",e)}catch(e){return{status:!1,error:e.message}}},async unmountPersonality(t){const e=t.personality;if(!e.isMounted||e.isProcessing||!await this.show_yes_no_dialog(`Unmount personality "${e.name}"?`,"Unmount","Cancel"))return;this.setPersonalityProcessing(t,!0),this.show_toast(`Unmounting ${e.name}...`,3,!0);const r=await this.unmount_personality(e);r&&r.status?(await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),this.show_toast("Personality unmounted",4,!0)):this.show_toast(`Could not unmount personality -Error: ${(r==null?void 0:r.error)||"Unknown error"}`,4,!1),this.setPersonalityProcessing(t,!1)},async unmount_personality(t){var s;if(!t)return{status:!1,error:"no personality provided"};const e=((s=this.$store.state.config)==null?void 0:s.personalities)||[];let n=null;const r=t.language?`${t.full_path}:${t.language}`:null;r&&e.includes(r)?n=r:(e.includes(t.full_path),n=t.full_path);const i={path:n};try{return await this.api_post_req("unmount_personality",i)}catch(o){return{status:!1,error:o.message}}},async unmountAll(){if(!await this.show_yes_no_dialog(`Unmount all ${this.mountedPersArr.length} personalities?`,"Unmount All","Cancel"))return;this.show_toast("Unmounting all...",3,!0),this.isLoading=!0;const e=await this.api_post_req("unmount_all_personalities");e&&e.status?(await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),this.show_toast("All personalities unmounted.",4,!0)):this.show_toast(`Failed to unmount all: ${(e==null?void 0:e.error)||"Unknown error"}`,4,!1),this.isLoading=!1},async remountPersonality(t){const e=t.personality;if(!(!e.isMounted||e.isProcessing)){this.setPersonalityProcessing(t,!0),this.show_toast(`Remounting ${e.name}...`,3,!0);try{const n=await this.unmount_personality(e);if(!n||!n.status)throw new Error(`Unmount failed: ${(n==null?void 0:n.error)||"Unknown error"}`);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),await new Promise(i=>setTimeout(i,200));const r=await this.mount_personality(e);if(!r||!r.status)throw new Error(`Mount failed: ${(r==null?void 0:r.error)||"Unknown error"}`);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),this.show_toast(`${e.name} remounted successfully.`,4,!0)}catch(n){this.show_toast(`Error remounting ${e.name}: ${n.message}`,4,!1),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities")}finally{this.setPersonalityProcessing(t,!1)}}},async editPersonality(t){var n;const e=t.personality;if(!e.isProcessing){this.setPersonalityProcessing(t,!0);try{const r=await this.api_post_req("get_personality_config",{category:e.category,name:e.folder});r.status&&r.config?(this.$store.commit("setCurrentPersonConfig",r.config),this.$store.commit("setShowPersonalityEditor",!0),this.$store.commit("setSelectedPersonality",e),(n=this.$store.state.personality_editor)!=null&&n.showPanel&&this.$store.state.personality_editor.showPanel()):this.show_toast(`Failed to load config for ${e.name}: ${r.error||"Not found/error"}`,4,!1)}catch(r){this.show_toast(`Error loading config for ${e.name}: ${r.message}`,4,!1)}finally{this.setPersonalityProcessing(t,!1)}}},async onCopyToCustom(t){const e=t.personality;if(e.isProcessing||!await this.show_yes_no_dialog(`Copy "${e.name}" to 'custom_personalities'?`,"Copy","Cancel"))return;this.setPersonalityProcessing(t,!0);const r=await this.api_post_req("copy_to_custom_personas",{category:e.category,name:e.folder});r&&r.status?(this.show_message_box(`"${e.name}" copied. Refreshing list...`),await new Promise(i=>setTimeout(i,500)),await this.$store.dispatch("refreshPersonalitiesZoo"),await this.$store.dispatch("refreshMountedPersonalities")):this.show_toast(`Failed to copy ${e.name}: ${(r==null?void 0:r.error)||"Error"}`,4,!1),this.setPersonalityProcessing(t,!1)},async onPersonalityReinstall(t){const e=t.personality;if(e.isProcessing||!await this.show_yes_no_dialog(`Reinstall "${e.name}"? This overwrites local changes.`,"Reinstall","Cancel"))return;this.setPersonalityProcessing(t,!0),this.show_toast(`Reinstalling ${e.name}...`,3,!0);const r=await this.api_post_req("reinstall_personality",{name:e.full_path});r&&r.status?this.show_toast(`${e.name} reinstalled. Remount if active.`,4,!0):this.show_toast(`Failed to reinstall ${e.name}: ${(r==null?void 0:r.error)||"Error"}`,4,!1),this.setPersonalityProcessing(t,!1)},async onSettingsPersonality(t){const e=t.personality;if(!(!this.isActivePersonality(e)||e.isProcessing)){if(!this.isActivePersonality(e)){this.show_toast(`Activate "${e.name}" first to configure settings.`,4,!1);return}this.setPersonalityProcessing(t,!0);try{const n=await this.api_get_req("/get_active_personality_settings");if(n&&typeof n=="object"&&Object.keys(n).length>0){const r=await this.show_universal_form(n,`Settings - ${e.name}`,"Save","Cancel");if(r!=null){this.setPersonalityProcessing(t,!0);const i=await this.api_post_req("set_active_personality_settings",r);i!=null&&i.status?this.show_toast(`Settings for ${e.name} updated.`,4,!0):this.show_toast(`Failed to update settings: ${(i==null?void 0:i.error)||"Error"}`,4,!1)}}else n&&typeof n=="object"?this.show_toast(`"${e.name}" has no configurable settings.`,3,!0):this.show_toast("Could not retrieve settings structure.",4,!1)}catch(n){this.show_toast(`Error accessing settings: ${n.message}`,4,!1)}finally{this.setPersonalityProcessing(t,!1)}}},onCopyPersonalityName(t){const e=t.personality;navigator.clipboard.writeText(e.name).then(()=>this.show_toast(`Copied name: ${e.name}`,3,!0)).catch(n=>this.show_toast("Failed to copy name.",3,!1))},async handleOpenFolder(t){const e=t.personality,n=await this.api_post_req("open_personality_folder",{category:e.category,name:e.folder});(!n||!n.status)&&this.show_toast(`Could not open folder: ${(n==null?void 0:n.error)||"Error"}`,4,!1)}},async mounted(){var t;await this.fetchInitialData(),this.selectedCategory=((t=this.config)==null?void 0:t.personality_category)||""},updated(){Ge(()=>{Ne.replace()})}},bOr={class:"user-settings-panel flex flex-col mb-2 rounded-lg shadow-lg p-4 bg-white dark:bg-gray-800"},SOr={class:"flex flex-row justify-between items-center mb-4 flex-wrap gap-y-2"},xOr={class:"flex items-center flex-wrap"},EOr={key:0,class:"flex items-center mr-2 text-lg text-blue-600 dark:text-blue-300"},wOr=["title"],COr={class:"flex items-center space-x-3 shrink-0"},LOr={key:0,class:"text-base font-semibold cursor-default select-none items-center flex flex-row"},AOr={class:"flex -space-x-4 items-center"},$Or={class:"group/mounted items-center flex flex-row"},kOr=["onClick","title"],POr=["src"],ROr=["onClick"],MOr=["title"],DOr={class:"flex flex-col sm:flex-row gap-4 mb-4"},NOr={class:"flex-grow"},IOr={class:"relative"},HOr={class:"absolute right-1.5 bottom-1.5 flex space-x-1"},VOr={class:"flex-shrink-0 sm:w-64"},qOr={value:""},UOr={value:"Mounted"},BOr={key:0,value:"Starred"},zOr={key:1,disabled:"",class:"text-blue-400 dark:text-blue-600"},XOr=["value"],FOr={key:0,class:"flex justify-center items-center p-10 text-loading text-blue-600 dark:text-blue-300"},jOr={key:1,class:"text-center text-blue-500 dark:text-blue-400 py-10"},YOr={key:2,class:"overflow-y-auto flex-grow personalities-grid-container scrollbar",style:{"max-height":"calc(100vh - 300px)"},ref:"gridContainer"},GOr={class:"label block ml-2 mb-2 text-blue-700 dark:text-blue-300"};function WOr(t,e,n,r,i,s){const o=je("PersonalityEntry");return P(),D("div",bOr,[b("div",SOr,[b("div",xOr,[e[9]||(e[9]=b("p",{class:"text-xl font-semibold cursor-default select-none mr-3 text-blue-800 dark:text-blue-100"}," Personalities Zoo ",-1)),s.active_personality_name?(P(),D("div",EOr,[e[8]||(e[8]=b("span",{class:"mx-2 text-blue-400 dark:text-blue-500"},"|",-1)),b("span",{class:"font-bold line-clamp-1",title:`Active: ${s.active_personality_name}`},le(s.active_personality_name),9,wOr)])):ne("",!0)]),b("div",COr,[s.mountedPersArr.length>0?(P(),D("div",LOr,[b("div",AOr,[(P(!0),D(He,null,lt(s.displayedMountedPersonalities,(a,l)=>(P(),D("div",{class:"relative hover:-translate-y-1 duration-300 hover:z-10 shrink-0",key:a.id||a.full_path+"-"+l,ref_for:!0,ref:"mountedPersonalitiesRefs"},[b("div",$Or,[b("button",{onClick:oe(c=>s.onPersonalitySelected({personality:a,isMounted:!0}),["stop"]),title:`Select: ${a.name}`,class:"transition-transform duration-150 ease-in-out active:scale-90"},[b("img",{src:s.getPersonalityIconUrl(a.avatar),onError:e[0]||(e[0]=(...c)=>s.personalityImgPlaceholder&&s.personalityImgPlaceholder(...c)),class:we(["w-8 h-8 rounded-full object-cover border-2 transition-colors duration-200 group-hover/mounted:border-blue-500 dark:group-hover/mounted:border-blue-400",s.isActivePersonality(a)?"border-blue-500 dark:border-blue-400":"border-blue-300 dark:border-blue-600"])},null,42,POr)],8,kOr),b("button",{onClick:oe(c=>s.unmountPersonality({personality:a}),["stop"]),class:"absolute -top-1 -right-1 opacity-0 group-hover/mounted:opacity-100 transition-all duration-150 ease-in-out hover:scale-110",title:"Unmount personality"},e[10]||(e[10]=[b("span",{class:"bg-red-500 hover:bg-red-600 text-white rounded-full p-0.5 flex items-center justify-center shadow-md transition-colors duration-150"},[b("i",{"data-feather":"x",class:"w-3 h-3 stroke-current"})],-1)]),8,ROr)])]))),128)),s.mountedPersArr.length>i.maxDisplayedMounted?(P(),D("div",{key:0,class:"w-8 h-8 rounded-full bg-blue-200 dark:bg-blue-700 border-2 border-blue-300 dark:border-blue-600 flex items-center justify-center text-xs font-semibold text-blue-600 dark:text-blue-300 cursor-default",title:`${s.mountedPersArr.length-i.maxDisplayedMounted} more mounted`}," +"+le(s.mountedPersArr.length-i.maxDisplayedMounted),9,MOr)):ne("",!0)])])):ne("",!0),s.mountedPersArr.length>0?(P(),D("button",{key:1,onClick:e[1]||(e[1]=oe(a=>s.unmountAll(),["stop"])),class:"p-1 bg-red-100 hover:bg-red-200 dark:bg-red-900 dark:hover:bg-red-800 rounded-full border border-red-300 dark:border-red-700 active:scale-90 transition-all duration-150",title:"Unmount All Personalities"},e[11]||(e[11]=[b("i",{"data-feather":"x-octagon",class:"w-4 h-4 text-red-600 dark:text-red-400 stroke-current"},null,-1)]))):ne("",!0)])]),b("div",DOr,[b("div",NOr,[e[13]||(e[13]=b("label",{for:"personality-search",class:"sr-only"},"Search",-1)),b("div",IOr,[e[12]||(e[12]=b("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[b("i",{"data-feather":"search",class:"w-5 h-5 text-blue-400 dark:text-blue-500"})],-1)),Ie(b("input",{type:"search",id:"personality-search",class:"input search-input block w-full p-3 pl-10 text-sm text-blue-900 dark:text-blue-100 placeholder-blue-500 dark:placeholder-blue-400 pr-24",placeholder:"Search name, author, description...","onUpdate:modelValue":e[2]||(e[2]=a=>i.searchTermInput=a),onKeyup:e[3]||(e[3]=Pr((...a)=>s.applySearch&&s.applySearch(...a),["enter"]))},null,544),[[vt,i.searchTermInput]]),b("div",HOr,[i.searchTermInput?(P(),D("button",{key:0,onClick:e[4]||(e[4]=oe((...a)=>s.clearSearch&&s.clearSearch(...a),["stop"])),type:"button",class:"btn btn-secondary btn-sm text-xs px-3 py-1.5"}," Clear ")):ne("",!0),b("button",{onClick:e[5]||(e[5]=oe((...a)=>s.applySearch&&s.applySearch(...a),["stop"])),type:"button",class:"btn btn-primary btn-sm text-xs px-3 py-1.5"}," Search ")])])]),b("div",VOr,[e[14]||(e[14]=b("label",{for:"persCat",class:"sr-only"},"Category",-1)),Ie(b("select",{id:"persCat","onUpdate:modelValue":e[6]||(e[6]=a=>i.selectedCategory=a),onChange:e[7]||(e[7]=(...a)=>s.handleCategoryChange&&s.handleCategoryChange(...a)),class:"input block w-full p-3 text-sm text-blue-900 dark:text-blue-100"},[b("option",qOr,"All Categories ("+le(i.allPersonalities.length)+")",1),b("option",UOr,"⬆️ Mounted ("+le(s.mountedPersArr.length)+")",1),s.starredPersonalitiesPaths.length>0?(P(),D("option",BOr,"⭐ Starred ("+le(s.getStarredCount())+")",1)):ne("",!0),(s.starredPersonalitiesPaths.length>0||s.mountedPersArr.length>0)&&i.persCatgArr.length>0?(P(),D("option",zOr,"──────────")):ne("",!0),(P(!0),D(He,null,lt(i.persCatgArr,(a,l)=>(P(),D("option",{key:l,value:a},le(a)+" ("+le(s.getCategoryCount(a))+") ",9,XOr))),128))],544),[[As,i.selectedCategory]])])]),i.isLoading&&i.allPersonalities.length===0?(P(),D("div",FOr,e[15]||(e[15]=[b("svg",{"aria-hidden":"true",class:"w-8 h-8 mr-2 text-blue-400 animate-spin dark:text-blue-500 fill-blue-600 dark:fill-blue-300",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),b("span",null,"Loading personalities...",-1)]))):!i.isLoading&&s.filteredPersonalities.length===0?(P(),D("div",jOr," No personalities found"+le(i.activeSearchTerm?' matching "'+i.activeSearchTerm+'"':"")+le(s.getResultMessageQualifier())+". ",1)):(P(),D("div",YOr,[b("label",GOr,le(s.getResultLabel())+": ("+le(s.filteredPersonalities.length)+") ",1),(P(),D("div",{key:i.selectedCategory+"-"+i.activeSearchTerm,class:"p-2 pb-0 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 bg-blue-100/50 dark:bg-blue-800/30 rounded-md"},[te(I4,{name:"list"},{default:Ve(()=>[(P(!0),D(He,null,lt(s.filteredPersonalities,a=>(P(),yt(o,{key:a.id||a.full_path,personality:a,select_language:!0,full_path:a.full_path,"is-mounted":a.isMounted,"is-active":s.isActivePersonality(a),"is-processing":a.isProcessing,"is-starred":a.isStarred,"base-url":i.bUrl,onSelect:s.onPersonalitySelected,onMount:s.mountPersonality,onUnmount:s.unmountPersonality,onRemount:s.remountPersonality,onEdit:s.editPersonality,onToggleStar:s.toggleStar,onCopyToCustom:s.onCopyToCustom,onReinstall:s.onPersonalityReinstall,onSettings:s.onSettingsPersonality,onCopyPersonalityName:s.onCopyPersonalityName,onOpenFolder:s.handleOpenFolder,onError:s.personalityImgPlaceholder},null,8,["personality","full_path","is-mounted","is-active","is-processing","is-starred","base-url","onSelect","onMount","onUnmount","onRemount","onEdit","onToggleStar","onCopyToCustom","onReinstall","onSettings","onCopyPersonalityName","onOpenFolder","onError"]))),128))]),_:1})]))],512))])}const ZOr=ct(yOr,[["render",WOr],["__scopeId","data-v-57acb6cf"]]),KOr="/assets/functioncall-Cm2fTSgb.png",JOr="/",emr={props:{function_call:{},select_language:Boolean,full_path:String,onOpenFolder:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onShowSettings:Function,onCopyfunction_callName:Function,onToggleFavorite:Function},components:{InteractiveMenu:GC},data(){return{mounted:!1,name:this.function_call.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0},showHelpPopup:!1,renderedHelp:""}},computed:{commandsList(){let t=[{name:this.mounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.mounted?this.unmount:this.mount}];return console.log("this.category",this.function_call.category),this.function_call.category=="custom_personalities"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.mounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),t}},mounted(){this.mounted=this.function_call.mounted,console.log(this.function_call),Ge(()=>{Ne.replace()})},methods:{show_settings(){this.onShowSettings(this)},formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return JOr+this.function_call.avatar},defaultImg(t){t.target.src=KOr},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleCopyLink(){this.onCopyfunction_callName(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.mounted=!1},showHelp(){this.renderedHelp=Jt(this.function_call.help),this.showHelpPopup=!0},closeHelp(){this.showHelpPopup=!1}},watch:{}},tmr=["title"],nmr={class:"flex-grow"},rmr={class:"flex items-center mb-4"},imr=["src"],smr={class:"font-bold text-xl text-gray-800 cursor-pointer"},omr={class:"text-sm text-gray-600"},amr={class:"text-sm text-gray-600"},lmr={class:"text-sm text-gray-600"},cmr={key:0,class:"text-sm text-gray-600"},umr={key:1,class:"text-sm text-gray-600"},dmr={class:"mb-4"},fmr=["innerHTML"],hmr={class:"mt-auto pt-4 border-t"},pmr={class:"flex justify-between items-center flex-wrap"},Tmr=["title"],Omr=["fill"],mmr=["src"],gmr={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center"},Qmr={class:"bg-white p-4 rounded-lg shadow-lg w-[500px] h-[400px] flex flex-col"},_mr={class:"flex justify-between items-center mb-2"},vmr={class:"flex-grow overflow-auto"},ymr=["innerHTML"];function bmr(t,e,n,r,i,s){const o=je("InteractiveMenu");return P(),D("div",{class:we(["app-card flex flex-col h-full",i.mounted?"border-primary-light":"border-transparent"]),title:n.function_call.installed?"":"Not installed"},[b("div",nmr,[b("div",rmr,[b("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),alt:"function_call Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onMouseover:e[1]||(e[1]=(...a)=>s.showThumbnail&&s.showThumbnail(...a)),onMousemove:e[2]||(e[2]=(...a)=>s.updateThumbnailPosition&&s.updateThumbnailPosition(...a)),onMouseleave:e[3]||(e[3]=(...a)=>s.hideThumbnail&&s.hideThumbnail(...a))},null,40,imr),b("div",null,[b("h3",smr,le(n.function_call.name),1),b("p",omr,"Author: "+le(n.function_call.author),1),b("p",amr,"Version: "+le(n.function_call.version),1),b("p",lmr,"Category: "+le(n.function_call.category),1),n.function_call.creation_date?(P(),D("p",cmr,"Creation Date: "+le(s.formatDate(n.function_call.creation_date)),1)):ne("",!0),n.function_call.last_update_date?(P(),D("p",umr,"Last update Date: "+le(s.formatDate(n.function_call.last_update_date)),1)):ne("",!0)]),n.function_call.help?(P(),D("button",{key:0,onClick:e[4]||(e[4]=(...a)=>s.showHelp&&s.showHelp(...a)),class:"ml-2 text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Help"},e[9]||(e[9]=[b("i",{"data-feather":"help-circle",class:"h-6 w-6"},null,-1)]))):ne("",!0)]),b("div",dmr,[e[10]||(e[10]=b("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),b("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:n.function_call.description},null,8,fmr)])]),b("div",hmr,[b("div",pmr,[b("button",{onClick:e[5]||(e[5]=(...a)=>s.toggleFavorite&&s.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(P(),D("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Omr))],8,Tmr),b("button",{onClick:e[6]||(e[6]=(...a)=>s.showFolder&&s.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[12]||(e[12]=[b("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),i.mounted?(P(),D("button",{key:0,onClick:e[7]||(e[7]=(...a)=>s.show_settings&&s.show_settings(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Settings"},e[13]||(e[13]=[b("i",{"data-feather":"settings",class:"h-6 w-6"},null,-1)]))):ne("",!0),te(o,{commands:s.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(P(),D("div",{key:0,style:qn({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[b("img",{src:s.getImgUrl(),class:"w-full h-full object-fill"},null,8,mmr)],4)):ne("",!0),i.showHelpPopup?(P(),D("div",gmr,[b("div",Qmr,[b("div",_mr,[e[14]||(e[14]=b("h2",{class:"text-lg font-bold"},"Help",-1)),b("button",{onClick:e[8]||(e[8]=(...a)=>s.closeHelp&&s.closeHelp(...a)),class:"text-red-500 hover:text-red-600"},"Close")]),b("div",vmr,[b("div",{innerHTML:i.renderedHelp},null,8,ymr)])])])):ne("",!0)],10,tmr)}const Smr=ct(emr,[["render",bmr]]),xmr="/assets/default_function-CyfcuNmo.png";function Emr(t,e){let n;return function(...i){const s=()=>{clearTimeout(n),t.apply(this,i)};clearTimeout(n),n=setTimeout(s,e)}}const wmr={name:"FunctionCallsZoo",components:{FunctionEntry:Smr},props:{config:{type:Object,required:!0},api_post_req:{type:Function,required:!0},api_get_req:{type:Function,required:!0},show_toast:{type:Function,required:!0},show_yes_no_dialog:{type:Function,required:!0},show_universal_form:{type:Function,required:!0},show_message_box:{type:Function,required:!0},client_id:{type:String,required:!0}},emits:["update:setting"],data(){return{allFunctions:[],categoriesFunc:[],filteredFunctions:[],pagedFunctions:[],isLoadingFunctions:!1,isSearchingFunc:!1,searchTermFunc:"",selectedCategoryFunc:"",sortOptionFunc:"mounted",itemsPerPageFunc:15,currentPageFunc:1,maxDisplayedMountedFunc:7,functionEntryRefs:{},observerFunc:null,defaultIcon:xmr,axiosBaseUrl:$e.defaults.baseURL||""}},computed:{mountedFunctionPathsSet(){var t;return new Set(((t=this.config)==null?void 0:t.mounted_functions)||[])},mountedFunctions(){return this.allFunctions.filter(t=>this.mountedFunctionPathsSet.has(t.full_path))},displayedMountedFunctions(){return[...this.mountedFunctions].sort((e,n)=>(e.name||"").localeCompare(n.name||"")).slice(0,this.maxDisplayedMountedFunc)},hasMoreFunctionsToLoad(){return this.pagedFunctions.length{const i=e.has(r.full_path);r.isMounted!==i&&(r.isMounted=i,n=!0)}),n&&(console.log("Watcher: Re-applying filters and sort due to mounted status change."),this.resetAndReloadFunctions()),this.featherReplace()},deep:!0},searchTermFunc(){this.debouncedResetAndReload()},selectedCategoryFunc(){this.debouncedResetAndReload()},sortOptionFunc(){this.debouncedResetAndReload()},allFunctions:{handler(){console.log("Watcher: allFunctions list changed. Triggering initial load."),this.resetAndReloadFunctions()}}},methods:{getFunctionIcon(t){return t?t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t.startsWith("/")?`${this.axiosBaseUrl}${t}`:t:`${this.axiosBaseUrl}/${t}`:this.defaultIcon},imgPlaceholder(t){t.target.src=this.defaultIcon},featherReplace(){this.$nextTick(()=>{try{Ne.replace()}catch(t){console.error("Feather replace error:",t)}})},setFunctionRef(t,e){e&&(this.functionEntryRefs[t]=e)},async fetchFunctionsAndCategories(){if(!this.isLoadingFunctions){this.isLoadingFunctions=!0,console.log("Fetching functions and categories...");try{const t=await this.api_get_req("list_function_calls"),e=(t==null?void 0:t.function_calls)||[],n=new Set(e.map(r=>r.category).filter(Boolean));this.categoriesFunc=Array.from(n).sort(),this.allFunctions=e.map(r=>{const i=`${r.category}/${r.name}`,s=r.id||i;return{...r,full_path:i,isMounted:!1,id:s,isProcessing:!1}}),console.log(`Fetched ${this.allFunctions.length} total functions.`),this.$nextTick(()=>{var r;(r=this.config)!=null&&r.mounted_functions&&this.watch["config.mounted_functions"].handler.call(this,this.config.mounted_functions)})}catch(t){this.show_toast("Failed to load functions list.",4,!1),console.error("Error fetching functions:",t),this.allFunctions=[],this.categoriesFunc=[]}finally{this.isLoadingFunctions=!1}}},applyFiltersAndSortFunc(){console.time("FilterSortFunctions");let t=[...this.allFunctions];if(this.selectedCategoryFunc&&(t=t.filter(e=>e.category===this.selectedCategoryFunc)),this.searchTermFunc){const e=this.searchTermFunc.toLowerCase();t=t.filter(n=>{var c,u,d,f,h;const r=(c=n.name)==null?void 0:c.toLowerCase().includes(e),i=(u=n.author)==null?void 0:u.toLowerCase().includes(e),s=(d=n.description)==null?void 0:d.toLowerCase().includes(e),o=(f=n.category)==null?void 0:f.toLowerCase().includes(e),a=(h=n.full_path)==null?void 0:h.toLowerCase().includes(e),l=Array.isArray(n.keywords)?n.keywords.some(p=>p.toLowerCase().includes(e)):!1;return r||i||s||o||a||l})}t.sort((e,n)=>{if(this.sortOptionFunc==="mounted"){if(e.isMounted&&!n.isMounted)return-1;if(!e.isMounted&&n.isMounted)return 1}switch(this.sortOptionFunc!=="mounted"?this.sortOptionFunc:"name"){case"name":return(e.name||"").localeCompare(n.name||"");case"author":return(e.author||"").localeCompare(n.author||"");case"category":return(e.category||"").localeCompare(n.category||"");default:return 0}}),this.filteredFunctions=t,console.timeEnd("FilterSortFunctions"),console.log(`Filtered/Sorted functions: ${this.filteredFunctions.length}`)},resetAndReloadFunctions(){this.currentPageFunc=1,this.pagedFunctions=[],this.applyFiltersAndSortFunc(),this.$nextTick(()=>{this.loadMoreFunctions()})},debouncedResetAndReload:Emr(function(){this.isSearchingFunc=!0,this.resetAndReloadFunctions(),setTimeout(()=>{this.isSearchingFunc=!1},100)},300),loadMoreFunctions(){if(this.isLoadingFunctions||this.isSearchingFunc||!this.hasMoreFunctionsToLoad)return;console.log(`Loading page ${this.currentPageFunc}`);const t=(this.currentPageFunc-1)*this.itemsPerPageFunc,e=t+this.itemsPerPageFunc,n=this.filteredFunctions.slice(t,e),r=new Set(this.pagedFunctions.map(s=>s.id||s.full_path)),i=n.filter(s=>!r.has(s.id||s.full_path));i.length>0?(this.pagedFunctions.push(...i),this.currentPageFunc++,this.featherReplace()):n.length>0&&console.log("Load more triggered but items already seem to be loaded.")},setFunctionProcessing(t,e){const n=s=>{s&&(s.isProcessing=e)},r=this.allFunctions.findIndex(s=>(s.id||s.full_path)===t);n(this.allFunctions[r]);const i=this.pagedFunctions.findIndex(s=>(s.id||s.full_path)===t);n(this.pagedFunctions[i])},async handleMount(t){if(t.isMounted||t.isProcessing)return;const e=t.id||t.full_path;this.setFunctionProcessing(e,!0),this.show_toast(`Mounting ${t.name}...`,3,!0);try{const n=await this.api_post_req("mount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});if(n&&n.status){this.show_toast(`${t.name} mounted successfully.`,4,!0);const r=[...this.mountedFunctionPathsSet,t.full_path];this.$emit("update:setting",{key:"mounted_functions",value:r})}else this.show_toast(`Failed to mount ${t.name}: ${(n==null?void 0:n.error)||"Error"}`,4,!1)}catch(n){this.show_toast(`Error mounting ${t.name}: ${n.message||n}`,4,!1),console.error("Mount error:",n)}finally{this.setFunctionProcessing(e,!1)}},async handleUnmount(t){var n;if(!t.isMounted||t.isProcessing)return;const e=t.id||t.full_path;this.setFunctionProcessing(e,!0),this.show_toast(`Unmounting ${t.name}...`,3,!0);try{const r=await this.api_post_req("unmount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});if(r&&r.status){this.show_toast(`${t.name} unmounted.`,4,!0);const i=(((n=this.config)==null?void 0:n.mounted_functions)||[]).filter(s=>s!==t.full_path);this.$emit("update:setting",{key:"mounted_functions",value:i})}else this.show_toast(`Failed to unmount ${t.name}: ${(r==null?void 0:r.error)||"Error"}`,4,!1)}catch(r){this.show_toast(`Error unmounting ${t.name}: ${r.message||r}`,4,!1),console.error("Unmount error:",r)}finally{this.setFunctionProcessing(e,!1)}},async unmountAll(){if(!(this.mountedFunctions.length===0||!await this.show_yes_no_dialog(`Unmount all ${this.mountedFunctions.length} functions?`,"Unmount All","Cancel"))){this.show_toast("Unmounting all functions...",3,!0),this.mountedFunctions.forEach(e=>this.setFunctionProcessing(e.id||e.full_path,!0));try{const e=await this.api_post_req("unmount_all_functions",{client_id:this.client_id});e&&e.status?(this.show_toast("All functions unmounted.",4,!0),this.$emit("update:setting",{key:"mounted_functions",value:[]})):(this.show_toast(`Failed to unmount all: ${(e==null?void 0:e.error)||"Error"}`,4,!1),this.mountedFunctions.forEach(n=>this.setFunctionProcessing(n.id||n.full_path,!1)))}catch(e){this.show_toast(`Error unmounting all: ${e.message||e}`,4,!1),console.error("Unmount all error:",e),this.mountedFunctions.forEach(n=>this.setFunctionProcessing(n.id||n.full_path,!1))}}},async handleRemount(t){const e=t.id||t.full_path;if(!t.isProcessing){this.setFunctionProcessing(e,!0),this.show_toast(`Remounting ${t.name}...`,3,!0);try{let n=[...this.config.mounted_functions||[]];if(n.includes(t.full_path)){const s=await this.api_post_req("unmount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});if(!s||!s.status){this.show_toast(`Failed to unmount ${t.name} during remount. Aborting.`,4,!1),this.setFunctionProcessing(e,!1);return}n=n.filter(o=>o!==t.full_path),this.$emit("update:setting",{key:"mounted_functions",value:n}),await Ge(),console.log("Remount Step 1: Unmounted and emitted.")}const i=await this.api_post_req("mount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});i&&i.status?(this.show_toast(`${t.name} remounted successfully.`,4,!0),n.includes(t.full_path)||n.push(t.full_path),this.$emit("update:setting",{key:"mounted_functions",value:n}),console.log("Remount Step 2: Mounted and emitted.")):this.show_toast(`Failed to mount ${t.name} during remount: ${(i==null?void 0:i.error)||"Error"}`,4,!1)}catch(n){this.show_toast(`Error remounting ${t.name}: ${n.message||n}`,4,!1),console.error("Remount error:",n)}finally{this.setFunctionProcessing(e,!1)}}},async handleSettings(t){if(t.isProcessing)return;const e=t.id||t.full_path;this.setFunctionProcessing(e,!0);try{const n=await this.api_post_req("get_function_call_settings",{client_id:this.client_id,category:t.category,name:t.name});if(n&&typeof n=="object"&&Object.keys(n).length>0){const r=await this.show_universal_form(n,`Function Settings - ${t.name}`,"Save","Cancel");if(r!=null){const i=await this.api_post_req("set_function_call_settings",{client_id:this.client_id,category:t.category,name:t.name,settings:r});i&&i.status?this.show_toast(`Settings for ${t.name} updated.`,4,!0):this.show_toast(`Failed to update settings for ${t.name}: ${(i==null?void 0:i.error)||"Error"}`,4,!1)}else this.show_toast(`Settings update for ${t.name} cancelled.`,3,!0)}else n&&typeof n=="object"&&Object.keys(n).length===0?this.show_message_box(`Function "${t.name}" has no configurable settings.`):this.show_toast(`Could not retrieve settings for ${t.name}: ${(n==null?void 0:n.error)||"Invalid response"}`,4,!1)}catch(n){this.show_toast(`Error accessing settings for ${t.name}: ${n.message||n}`,4,!1),console.error("Settings error:",n)}finally{this.setFunctionProcessing(e,!1)}},async handleEdit(t){this.show_toast(`Opening folder containing "${t.name}" for editing...`,3,!0),await this.handleOpenFolder(t)},async handleCopyToCustom(t){if(!await this.show_yes_no_dialog(`Copy "${t.name}" from "${t.category}" to your 'custom_functions' folder?`,"Copy","Cancel")||t.isProcessing)return;const n=t.id||t.full_path;this.setFunctionProcessing(n,!0);try{const r=await this.api_post_req("copy_to_custom_functions",{client_id:this.client_id,category:t.category,name:t.name});r&&r.status?(this.show_message_box(`Function "${t.name}" copied to 'custom_functions'. The list will refresh shortly.`),await this.fetchFunctionsAndCategories()):this.show_toast(`Failed to copy ${t.name}: ${(r==null?void 0:r.error)||"Already exists in custom?"}`,4,!1)}catch(r){this.show_toast(`Error copying ${t.name}: ${r.message||r}`,4,!1),console.error("Copy to custom error:",r)}finally{this.setFunctionProcessing(n,!1)}},handleCopyName(t){navigator.clipboard.writeText(t.name).then(()=>this.show_toast(`Copied name: ${t.name}`,3,!0)).catch(e=>{this.show_toast("Failed to copy name to clipboard.",3,!1),console.error("Clipboard copy failed:",e)})},async handleOpenFolder(t){try{await this.api_post_req("open_function_folder",{client_id:this.client_id,category:t.category,name:t.name})}catch(e){this.show_toast(`Error opening folder for ${t.name}: ${e.message||e}`,4,!1),console.error("Open folder error:",e)}},scrollToFunction(t){const e=t.id||t.full_path,n=this.functionEntryRefs[e];if(n&&n.$el){const r=n.$el;r.scrollIntoView({behavior:"smooth",block:"center"}),r.classList.add("ring-2","ring-offset-2","ring-blue-500","dark:ring-offset-gray-800","transition-all","duration-1000","ease-out"),setTimeout(()=>{r.classList.remove("ring-2","ring-offset-2","ring-blue-500","dark:ring-offset-gray-800","transition-all","duration-1000","ease-out")},1500)}else console.warn(`Could not find ref $el to scroll to for function ID: ${e}. Is it loaded?`),this.hasMoreFunctionsToLoad&&!this.pagedFunctions.some(r=>(r.id||r.full_path)===e)?(this.show_toast(`Function ${t.name} not visible, attempting to load more...`,3,!0),this.loadMoreFunctions(),setTimeout(()=>this.scrollToFunction(t),500)):this.show_toast(`Could not scroll to ${t.name}.`,3,!1)},setupIntersectionObserverFunc(){this.disconnectIntersectionObserver();const t={root:null,rootMargin:"100px",threshold:.1};this.observerFunc=new IntersectionObserver(n=>{n.forEach(r=>{r.isIntersecting&&this.hasMoreFunctionsToLoad&&this.loadMoreFunctions()})},t);const e=this.$refs.loadMoreTriggerFunc;e?(this.observerFunc.observe(e),console.log("IntersectionObserver setup complete.")):this.$nextTick(()=>{const n=this.$refs.loadMoreTriggerFunc;n?(this.observerFunc.observe(n),console.log("IntersectionObserver setup complete (nextTick).")):console.error("Load more trigger element not found for IntersectionObserver setup.")})},disconnectIntersectionObserver(){if(this.observerFunc){console.log("Disconnecting IntersectionObserver.");const t=this.$refs.loadMoreTriggerFunc;if(t)try{this.observerFunc.unobserve(t)}catch(e){console.warn("Error unobserving trigger:",e)}this.observerFunc.disconnect(),this.observerFunc=null}}},mounted(){console.log("FunctionCallsZoo Mounted."),this.fetchFunctionsAndCategories(),this.featherReplace(),this.$nextTick(()=>{this.setupIntersectionObserverFunc()})},beforeUpdate(){this.functionEntryRefs={}},updated(){this.featherReplace(),this.$nextTick(()=>{const t=this.$refs.loadMoreTriggerFunc;if(t&&this.observerFunc&&!this.observerFunc.takeRecords().some(e=>e.target===t)){console.warn("IntersectionObserver detached from trigger, re-observing.");try{this.observerFunc.unobserve(t)}catch{}this.observerFunc.observe(t)}else t&&!this.observerFunc&&(console.warn("IntersectionObserver lost, re-setting up."),this.setupIntersectionObserverFunc())})},unmounted(){console.log("FunctionCallsZoo Unmounted."),this.disconnectIntersectionObserver()}},Cmr={class:"user-settings-panel space-y-6 p-4 md:p-6 rounded-lg shadow-md bg-white dark:bg-gray-800"},Lmr={class:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-blue-300 dark:border-blue-600 pb-3 mb-4"},Amr={class:"flex flex-col items-end"},$mr={class:"flex items-center flex-wrap gap-2 text-sm font-medium mb-1"},kmr={key:0,class:"text-blue-500 dark:text-blue-500 italic text-xs"},Pmr={key:1,class:"flex -space-x-3 items-center"},Rmr=["src","title","onClick"],Mmr=["onClick"],Dmr=["title"],Nmr={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4 items-center"},Imr={class:"relative md:col-span-1"},Hmr={key:0,class:"absolute inset-y-0 right-0 pr-3 flex items-center"},Vmr={class:"md:col-span-1"},qmr=["value"],Umr={class:"md:col-span-1"},Bmr={key:0,class:"flex justify-center items-center p-10 text-blue-500 dark:text-blue-400"},zmr={key:1,class:"text-center text-blue-500 dark:text-blue-400 py-10"},Xmr={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 scrollbar-thin scrollbar-thumb-blue-300 scrollbar-track-blue-100 dark:scrollbar-thumb-blue-700 dark:scrollbar-track-blue-900",ref:"scrollContainerFunc"},Fmr={ref:"loadMoreTriggerFunc",class:"h-10"},jmr={key:0,class:"flex justify-center items-center text-center text-blue-500 dark:text-blue-400 py-4"};function Ymr(t,e,n,r,i,s){const o=je("FunctionEntry");return P(),D("div",Cmr,[b("div",Lmr,[e[9]||(e[9]=b("h2",{class:"text-2xl font-semibold text-blue-800 dark:text-blue-100 mb-2 sm:mb-0"}," Function Calls Zoo ",-1)),b("div",Amr,[b("div",$mr,[e[7]||(e[7]=b("span",{class:"text-blue-600 dark:text-blue-400"},"Mounted:",-1)),s.mountedFunctions.length===0?(P(),D("div",kmr,"None")):(P(),D("div",Pmr,[(P(!0),D(He,null,lt(s.displayedMountedFunctions,(a,l)=>(P(),D("div",{key:`mounted-${a.id||a.full_path||l}`,class:"relative group"},[b("img",{src:s.getFunctionIcon(a.icon),onError:e[0]||(e[0]=(...c)=>s.imgPlaceholder&&s.imgPlaceholder(...c)),class:"w-7 h-7 rounded-full object-cover ring-2 ring-white dark:ring-gray-700 cursor-pointer hover:ring-blue-500 dark:hover:ring-blue-400 transition-all",title:`${a.name} (${a.category})`,onClick:c=>s.scrollToFunction(a)},null,40,Rmr),b("button",{onClick:oe(c=>s.handleUnmount(a),["stop"]),class:"absolute -top-1 -right-1 p-0.5 rounded-full bg-red-600 text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-1 dark:focus:ring-offset-gray-900",title:"Unmount"},e[6]||(e[6]=[b("i",{"data-feather":"x",class:"w-3 h-3 stroke-current"},null,-1)]),8,Mmr)]))),128)),s.mountedFunctions.length>i.maxDisplayedMountedFunc?(P(),D("div",{key:0,class:"w-7 h-7 rounded-full bg-blue-200 dark:bg-blue-700 ring-2 ring-white dark:ring-gray-700 flex items-center justify-center text-xs font-semibold text-blue-600 dark:text-blue-300",title:`${s.mountedFunctions.length-i.maxDisplayedMountedFunc} more mounted`}," +"+le(s.mountedFunctions.length-i.maxDisplayedMountedFunc),9,Dmr)):ne("",!0)]))]),s.mountedFunctions.length>0?(P(),D("button",{key:0,onClick:e[1]||(e[1]=(...a)=>s.unmountAll&&s.unmountAll(...a)),class:"btn btn-sm bg-red-600 hover:bg-red-700 text-white text-xs mt-1 focus:ring-red-300 dark:focus:ring-red-600"},e[8]||(e[8]=[b("i",{"data-feather":"x-octagon",class:"w-3 h-3 mr-1 stroke-current"},null,-1),be("Unmount All ")]))):ne("",!0)])]),e[18]||(e[18]=b("p",{class:"text-sm text-blue-600 dark:text-blue-400"}," Mount functions to grant the AI specific capabilities and tools it can use during conversations. Requires a model trained for function calling. ",-1)),b("div",Nmr,[b("div",Imr,[e[11]||(e[11]=b("div",{class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},[b("i",{"data-feather":"search",class:"w-5 h-5 text-blue-400 dark:text-blue-500"})],-1)),Ie(b("input",{type:"search","onUpdate:modelValue":e[2]||(e[2]=a=>i.searchTermFunc=a),placeholder:"Search functions...",class:"input pl-10 w-full placeholder:text-blue-400 dark:placeholder:text-blue-500",onInput:e[3]||(e[3]=(...a)=>t.debounceSearchFunc&&t.debounceSearchFunc(...a))},null,544),[[vt,i.searchTermFunc]]),i.isSearchingFunc?(P(),D("div",Hmr,e[10]||(e[10]=[b("svg",{"aria-hidden":"true",class:"w-5 h-5 text-blue-400 dark:text-blue-500 animate-spin fill-blue-500 dark:fill-blue-400",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)]))):ne("",!0)]),b("div",Vmr,[e[13]||(e[13]=b("label",{for:"func-category",class:"sr-only"},"Filter by Category",-1)),Ie(b("select",{id:"func-category","onUpdate:modelValue":e[4]||(e[4]=a=>i.selectedCategoryFunc=a),class:"input w-full"},[e[12]||(e[12]=b("option",{value:""},"All Categories",-1)),(P(!0),D(He,null,lt(i.categoriesFunc,a=>(P(),D("option",{key:a,value:a},le(a),9,qmr))),128))],512),[[As,i.selectedCategoryFunc]])]),b("div",Umr,[e[15]||(e[15]=b("label",{for:"func-sort",class:"sr-only"},"Sort functions by",-1)),Ie(b("select",{id:"func-sort","onUpdate:modelValue":e[5]||(e[5]=a=>i.sortOptionFunc=a),class:"input w-full"},e[14]||(e[14]=[b("option",{value:"mounted"},"Sort by Mounted",-1),b("option",{value:"name"},"Sort by Name",-1),b("option",{value:"author"},"Sort by Author",-1),b("option",{value:"category"},"Sort by Category",-1)]),512),[[As,i.sortOptionFunc]])])]),i.isLoadingFunctions?(P(),D("div",Bmr,e[16]||(e[16]=[b("svg",{"aria-hidden":"true",class:"w-8 h-8 mr-2 text-blue-300 dark:text-blue-600 animate-spin fill-blue-500 dark:fill-blue-400",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),b("span",null,"Loading functions...",-1)]))):i.pagedFunctions.length===0&&i.filteredFunctions.length===0?(P(),D("div",zmr," No functions found"+le(i.searchTermFunc?' matching "'+i.searchTermFunc+'"':"")+le(i.selectedCategoryFunc?' in category "'+i.selectedCategoryFunc+'"':"")+". ",1)):ne("",!0),b("div",Xmr,[(P(!0),D(He,null,lt(i.pagedFunctions,a=>(P(),yt(o,{key:a.id||a.full_path,ref_for:!0,ref:l=>s.setFunctionRef(a.id||a.full_path,l),function_call:a,"is-mounted":a.isMounted,"is-processing":a.isProcessing,"get-icon-url":s.getFunctionIcon,"on-img-error":s.imgPlaceholder,onMount:l=>s.handleMount(a),onUnmount:l=>s.handleUnmount(a),onRemount:l=>s.handleRemount(a),onShowSettings:l=>s.handleSettings(a),onEdit:l=>s.handleEdit(a),onCopyToCustom:l=>s.handleCopyToCustom(a),onCopyName:l=>s.handleCopyName(a),onOpenFolder:l=>s.handleOpenFolder(a)},null,8,["function_call","is-mounted","is-processing","get-icon-url","on-img-error","onMount","onUnmount","onRemount","onShowSettings","onEdit","onCopyToCustom","onCopyName","onOpenFolder"]))),128))],512),b("div",Fmr,[s.hasMoreFunctionsToLoad&&!i.isLoadingFunctions&&!i.isSearchingFunc?(P(),D("div",jmr,e[17]||(e[17]=[b("svg",{"aria-hidden":"true",class:"w-5 h-5 mr-2 text-blue-300 dark:text-blue-600 animate-spin fill-blue-500 dark:fill-blue-400",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),b("span",null,"Loading more...",-1)]))):ne("",!0)],512)])}const Gmr=ct(wmr,[["render",Ymr],["__scopeId","data-v-8ff7e3ea"]]),Wmr={name:"ModelConfigSettings",components:{ToggleSwitch:zu},props:{config:{type:Object,required:!0},loading:{type:Boolean,default:!1}},emits:["setting-updated"],computed:{isDisabled(){return!this.config.override_personality_model_parameters}},methods:{updateValue(t,e){this.$emit("setting-updated",{key:t,value:e})},handleNumberInput(t,e,n=!1){let r=n?parseInt(e):parseFloat(e);if(t==="seed"){if(String(e)==="-")return;(isNaN(r)||r<-1)&&(r=-1)}else if(isNaN(r)){console.warn(`Attempted to set invalid number for ${t}:`,e);return}this.updateValue(t,r)},replaceFeatherIcons(){Ge(()=>{try{Ne.replace()}catch{}})}},mounted(){this.replaceFeatherIcons()},updated(){this.replaceFeatherIcons()}},Zmr={class:"user-settings-panel space-y-6"},Kmr={class:"toggle-item !justify-start gap-4 border border-blue-200 dark:border-blue-700 rounded-lg p-3 panels-color"},Jmr={class:"setting-item"},egr=["value","disabled"],tgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ngr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},rgr=["value","disabled"],igr=["value","disabled"],sgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ogr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},agr=["value","disabled"],lgr=["value","disabled"],cgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ugr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},dgr=["value","disabled"],fgr=["value","disabled"],hgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},pgr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},Tgr=["value","disabled"],Ogr=["value","disabled"],mgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ggr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},Qgr=["value","disabled"],_gr=["value","disabled"],vgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ygr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},bgr=["value","disabled"],Sgr=["value","disabled"];function xgr(t,e,n,r,i,s){const o=je("ToggleSwitch");return P(),D("div",Zmr,[e[22]||(e[22]=b("h2",{class:"text-xl font-semibold text-blue-800 dark:text-blue-100 border-b border-blue-300 dark:border-blue-600 pb-2"}," Model Generation Parameters ",-1)),e[23]||(e[23]=b("p",{class:"text-sm text-blue-600 dark:text-blue-400 mb-4"}," Adjust the core parameters that influence how the AI generates text. These settings can be overridden by specific personalities unless the option below is checked. ",-1)),b("div",Kmr,[te(o,{id:"override_personality_model_parameters",checked:n.config.override_personality_model_parameters,"onUpdate:checked":e[0]||(e[0]=a=>s.updateValue("override_personality_model_parameters",a))},null,8,["checked"]),e[14]||(e[14]=b("label",{for:"override_personality_model_parameters",class:"toggle-label !flex-none"},[be(" Override Personality Parameters "),b("span",{class:"toggle-description"},"Force the use of these global parameters, ignoring any settings defined within the selected personality.")],-1))]),b("div",{class:we(["space-y-5 pt-4",s.isDisabled?"opacity-50 pointer-events-none":""])},[b("div",Jmr,[e[15]||(e[15]=To('',1)),b("input",{type:"number",id:"seed",value:n.config.seed,onInput:e[1]||(e[1]=a=>s.handleNumberInput("seed",a.target.value,!0)),class:"input-sm w-full md:w-32",step:"1",placeholder:"-1",disabled:s.isDisabled},null,40,egr)]),b("div",tgr,[e[16]||(e[16]=To('',1)),b("div",ngr,[b("input",{id:"temperature-range",value:n.config.temperature,onInput:e[2]||(e[2]=a=>s.handleNumberInput("temperature",a.target.value)),type:"range",min:"0",max:"2",step:"0.01",class:"range-input flex-grow",disabled:s.isDisabled},null,40,rgr),b("input",{id:"temperature-number",value:n.config.temperature,onInput:e[3]||(e[3]=a=>s.handleNumberInput("temperature",a.target.value)),type:"number",min:"0",max:"2",step:"0.01",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,igr)])]),b("div",sgr,[e[17]||(e[17]=To('',1)),b("div",ogr,[b("input",{id:"n_predict-range",value:n.config.n_predict,onInput:e[4]||(e[4]=a=>s.handleNumberInput("n_predict",a.target.value,!0)),type:"range",min:"32",max:"8192",step:"32",class:"range-input flex-grow",disabled:s.isDisabled},null,40,agr),b("input",{id:"n_predict-number",value:n.config.n_predict,onInput:e[5]||(e[5]=a=>s.handleNumberInput("n_predict",a.target.value,!0)),type:"number",min:"32",max:"8192",step:"32",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,lgr)])]),b("div",cgr,[e[18]||(e[18]=To('',1)),b("div",ugr,[b("input",{id:"top_k-range",value:n.config.top_k,onInput:e[6]||(e[6]=a=>s.handleNumberInput("top_k",a.target.value,!0)),type:"range",min:"0",max:"100",step:"1",class:"range-input flex-grow",disabled:s.isDisabled},null,40,dgr),b("input",{id:"top_k-number",value:n.config.top_k,onInput:e[7]||(e[7]=a=>s.handleNumberInput("top_k",a.target.value,!0)),type:"number",min:"0",max:"100",step:"1",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,fgr)])]),b("div",hgr,[e[19]||(e[19]=To('',1)),b("div",pgr,[b("input",{id:"top_p-range",value:n.config.top_p,onInput:e[8]||(e[8]=a=>s.handleNumberInput("top_p",a.target.value)),type:"range",min:"0",max:"1",step:"0.01",class:"range-input flex-grow",disabled:s.isDisabled},null,40,Tgr),b("input",{id:"top_p-number",value:n.config.top_p,onInput:e[9]||(e[9]=a=>s.handleNumberInput("top_p",a.target.value)),type:"number",min:"0",max:"1",step:"0.01",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,Ogr)])]),b("div",mgr,[e[20]||(e[20]=To('',1)),b("div",ggr,[b("input",{id:"repeat_penalty-range",value:n.config.repeat_penalty,onInput:e[10]||(e[10]=a=>s.handleNumberInput("repeat_penalty",a.target.value)),type:"range",min:"0.5",max:"2.0",step:"0.01",class:"range-input flex-grow",disabled:s.isDisabled},null,40,Qgr),b("input",{id:"repeat_penalty-number",value:n.config.repeat_penalty,onInput:e[11]||(e[11]=a=>s.handleNumberInput("repeat_penalty",a.target.value)),type:"number",min:"0.5",max:"2.0",step:"0.01",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,_gr)])]),b("div",vgr,[e[21]||(e[21]=To('',1)),b("div",ygr,[b("input",{id:"repeat_last_n-range",value:n.config.repeat_last_n,onInput:e[12]||(e[12]=a=>s.handleNumberInput("repeat_last_n",a.target.value,!0)),type:"range",min:"0",max:"512",step:"8",class:"range-input flex-grow",disabled:s.isDisabled},null,40,bgr),b("input",{id:"repeat_last_n-number",value:n.config.repeat_last_n,onInput:e[13]||(e[13]=a=>s.handleNumberInput("repeat_last_n",a.target.value,!0)),type:"number",min:"0",max:"512",step:"8",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,Sgr)])])],2)])}const Egr=ct(Wmr,[["render",xgr],["__scopeId","data-v-1dc5e8f0"]]);$e.defaults.baseURL="/";const X8={accept:"application/json","Content-Type":"application/json"},wgr={name:"SettingsView",components:{SettingsSidebar:Pur},data(){return{isLoading:!1,settingsChanged:!1,has_updates:!1,activeSection:"system_status",loading_text:"Loading settings...",editableConfig:null,sections:[{id:"system_status",name:"System Status",icon:"activity",component:rs(_6r)},{id:"main_config",name:"Main Config",icon:"sliders",component:rs(kfr)},{id:"model_config",name:"Model Parameters",icon:"cpu",component:rs(Egr)},{id:"smart_routing",name:"Smart Routing",icon:"git-branch",component:rs(G6r)},{id:"data_management",name:"Data Management",icon:"database",component:rs(T8r)},{id:"internet",name:"Internet",icon:"wifi",component:rs(N8r)},{id:"services_zoo",name:"Services Zoo",icon:"server",component:rs(U9r)},{id:"binding_zoo",name:"Bindings Zoo",icon:"link",component:rs(Ihr)},{id:"models_zoo",name:"Models Zoo",icon:"package",component:rs(VTr)},{id:"personalities_zoo",name:"Personalities Zoo",icon:"users",component:rs(ZOr)},{id:"function_calls_zoo",name:"Function Calls Zoo",icon:"tool",component:rs(Gmr)}]}},computed:{configToEdit(){return this.editableConfig??this.$store.state.config},currentComponent(){const t=this.sections.find(e=>e.id===this.activeSection);return t?t.component:null}},methods:{deepClone(t){if(t===null||typeof t!="object")return t;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t)){const n=[];for(let r=0;r{e&&(this.cancelConfiguration(!1),this.activeSection=t)}):this.activeSection=t},handleSettingUpdated(t){this.editableConfig||(this.editableConfig=this.deepClone(this.$store.state.config));const e=t.key.split(".");let n=this.editableConfig;try{for(;e.length>1;){const a=e.shift(),l=a.match(/^(\w+)\[(\d+)\]$/);let c=a,u=-1;if(l&&(c=l[1],u=parseInt(l[2],10)),!n||typeof n!="object"||!n.hasOwnProperty(c))throw new Error(`Invalid path segment: ${c}`);if(u!==-1){if(!Array.isArray(n[c])||u>=n[c].length)throw new Error(`Invalid array index: ${u} for key ${c}`);n=n[c][u]}else n=n[c]}const r=e[0],i=r.match(/^(\w+)\[(\d+)\]$/);let s=r,o=-1;if(i&&(s=i[1],o=parseInt(i[2],10)),typeof n!="object"||n===null)throw new Error(`Cannot set property on non-object: ${r}`);if(o!==-1){if(!n.hasOwnProperty(s)||!Array.isArray(n[s])||o>=n[s].length)throw new Error(`Invalid final array index: ${o} for key ${s}`);n[s][o]=t.value}else n[s]=t.value;this.settingsChanged=!0}catch(r){this.$store.state.toast.showToast(`Error updating setting ${t.key}: ${r.message}`,4,!1)}},async refreshConfigInView(){this.isLoading=!0,this.loading_text="Refreshing config...";try{await this.$store.dispatch("refreshConfig"),this.editableConfig=null,this.settingsChanged=!1}catch{this.$store.state.toast.showToast("Failed to load configuration.",4,!1),this.editableConfig=null,this.settingsChanged=!1}finally{this.isLoading=!1,Ge(()=>{Ne.replace()})}},async applyConfiguration(){if(!this.settingsChanged||!this.editableConfig){this.$store.state.toast.showToast("No changes to apply.",3,!1);return}this.isLoading=!0,this.loading_text="Applying settings...";let t=!1;try{const e=await $e.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.editableConfig},{headers:X8});e.data.status?(this.$store.state.toast.showToast("Settings applied. Refreshing...",4,!0),t=!0,await this.refreshConfigInView()):this.$store.state.toast.showToast(`Apply failed: ${e.data.error||"Error"}`,4,!1)}catch(e){this.$store.state.toast.showToast(`Error applying settings: ${e.message||e}`,4,!1)}finally{t||(this.isLoading=!1)}},cancelConfiguration(t=!0){this.editableConfig=null,this.settingsChanged=!1},async saveConfiguration(){this.isLoading=!0,this.loading_text="Saving configuration...";try{const t=await $e.post("/save_settings",{client_id:this.$store.state.client_id},{headers:X8});t.data.status?this.$store.state.toast.showToast("Settings saved successfully.",4,!0):this.$store.state.messageBox.showMessage(`Error saving settings: ${t.data.error||"Error"}`)}catch(t){this.$store.state.messageBox.showMessage(`Error saving settings: ${t.message}`)}finally{this.isLoading=!1}},reset_configuration(){this.$store.state.yesNoDialog.askQuestion("Reset config to default? This deletes current settings.","Reset","Cancel").then(async t=>{if(t){this.isLoading=!0,this.loading_text="Resetting...";let e=!1;try{const n=await $e.post("/reset_settings",{client_id:this.$store.state.client_id},{headers:X8});n.data.status?(this.$store.state.messageBox.showMessage("Settings reset. Reloading..."),e=!0,setTimeout(()=>window.location.reload(),2e3)):this.$store.state.messageBox.showMessage(`Reset failed: ${n.data.error||"Error"}`)}catch(n){this.$store.state.messageBox.showMessage(`Reset failed: ${n.message}`)}finally{e||(this.isLoading=!1)}}})},async restart_program(){this.loading_text="Restarting...",this.isLoading=!0;let t=!1;try{const e=await this.api_post_req("restart_program");e.status?(this.$store.state.toast.showToast("Restarting LoLLMs...",4,!0),t=!0):this.$store.state.toast.showToast(`Restart command failed: ${e.error||"Error"}`,4,!1)}catch{}finally{t||(this.isLoading=!1)}},async clear_uploads(){this.loading_text="Clearing uploads...",this.isLoading=!0;try{const t=await this.api_get_req("clear_uploads");t.status?this.$store.state.toast.showToast("Uploads folder cleared!",4,!0):this.$store.state.toast.showToast(`Clear failed: ${t.error||"Error"}`,4,!1)}catch{}finally{this.isLoading=!1}},async update_software(){this.loading_text="Updating...",this.isLoading=!0;let t=!1;try{const e=await this.api_post_req("update_software");this.$store.state.toast.showToast("Update initiated. LoLLMs might restart.",4,!0),this.has_updates=!1,t=!0,e.status||this.$store.state.toast.showToast(`Update command sent, server reported issue: ${e.error||"Unknown"}`,4,!1)}catch{}finally{t||(this.isLoading=!1)}},async updateHasUpdates(){try{const t=await this.api_get_req("check_update");this.has_updates=(t==null?void 0:t.update_availability)||!1,Ge(()=>{Ne.replace()})}catch{this.has_updates=!1}},async api_get_req(t){if(this.$store.state.api_get_req)return this.$store.state.api_get_req(t);try{return(await $e.get(`/${t}?client_id=${this.$store.state.client_id}`)).data}catch(e){throw this.$store.state.toast.showToast(`GET Error: ${e.message}`,4,!1),e}},async api_post_req(t,e={}){if(this.$store.state.api_post_req)return this.$store.state.api_post_req(t,e);try{const n={...e,client_id:this.$store.state.client_id};return(await $e.post(`/${t}`,n,{headers:X8})).data}catch(n){throw this.$store.state.toast.showToast(`POST Error: ${n.message}`,4,!1),n}}},mounted(){this.refreshConfigInView(),this.updateHasUpdates(),Ge(()=>{Ne.replace()})},updated(){Ge(()=>{Ne.replace()})}},Cgr={class:"flex h-screen w-screen font-sans antialiased theme-bg-primary theme-text-primary"},Lgr={class:"flex-1 flex flex-col overflow-hidden"},Agr={class:"flex items-center gap-4 flex-1"},$gr={key:0,class:"flex items-center gap-2 theme-text-warning animate-pulse"},kgr={key:1,class:"flex gap-3 items-center"},Pgr={key:0,class:"flex items-center gap-2"},Rgr={key:1,class:"flex items-center gap-2 text-sm theme-text-muted"},Mgr={class:"flex-1 overflow-x-hidden overflow-y-auto theme-scrollbar p-6"},Dgr={key:1,class:"flex justify-center items-center h-full theme-text-secondary"};function Ngr(t,e,n,r,i,s){const o=je("SettingsSidebar");return P(),D("div",Cgr,[te(o,{sections:i.sections,"active-section":i.activeSection,"onUpdate:activeSection":s.setActiveSection,class:"flex-shrink-0 w-64 border-r theme-border-primary theme-bg-secondary overflow-y-auto theme-scrollbar"},null,8,["sections","active-section","onUpdate:activeSection"]),b("div",Lgr,[b("div",{class:we(["sticky top-0 z-20 flex items-center justify-between p-3 gap-3 shadow-md theme-bg-secondary theme-border-b theme-border-primary",i.isLoading?"opacity-50 pointer-events-none":""])},[b("div",Agr,[i.settingsChanged&&!i.isLoading?(P(),D("div",$gr,e[6]||(e[6]=[b("i",{"data-feather":"alert-circle",class:"w-5 h-5"},null,-1),b("span",{class:"text-sm font-medium"},"Settings have changed",-1)]))):ne("",!0),!i.settingsChanged&&!i.isLoading?(P(),D("div",kgr,[b("button",{title:"Reset configuration to default",class:"icon-button theme-text-secondary hover:theme-text-primary",onClick:e[0]||(e[0]=a=>s.reset_configuration())},e[7]||(e[7]=[b("i",{"data-feather":"refresh-ccw"},null,-1)])),b("button",{title:"Restart program",class:"icon-button theme-text-secondary hover:theme-text-primary",onClick:e[1]||(e[1]=a=>s.restart_program())},e[8]||(e[8]=[b("i",{"data-feather":"power"},null,-1)])),b("button",{title:"Clear uploads folder",class:"icon-button theme-text-secondary hover:theme-text-danger",onClick:e[2]||(e[2]=a=>s.clear_uploads())},e[9]||(e[9]=[b("i",{"data-feather":"trash-2"},null,-1)])),i.has_updates?(P(),D("button",{key:0,title:"Upgrade program",class:"icon-button theme-text-success hover:theme-text-primary relative",onClick:e[3]||(e[3]=a=>s.update_software())},e[10]||(e[10]=[b("i",{"data-feather":"arrow-up-circle"},null,-1),b("span",{class:"absolute top-0 right-0 block h-2 w-2 rounded-full theme-bg-danger ring-2 theme-ring-bg"},null,-1)]))):ne("",!0)])):ne("",!0)]),i.settingsChanged&&!i.isLoading?(P(),D("div",Pgr,[b("button",{class:"flex items-center gap-2 px-3 py-1.5 rounded theme-button-success duration-150 active:scale-95",title:"Apply changes",type:"button",onClick:e[4]||(e[4]=oe(a=>s.applyConfiguration(),["stop"]))},e[11]||(e[11]=[b("span",{class:"font-medium text-sm"},"Apply",-1),b("i",{"data-feather":"check",class:"w-4 h-4"},null,-1)])),b("button",{class:"flex items-center gap-2 px-3 py-1.5 rounded theme-button-danger duration-150 active:scale-95",title:"Cancel changes",type:"button",onClick:e[5]||(e[5]=oe(a=>s.cancelConfiguration(),["stop"]))},e[12]||(e[12]=[b("span",{class:"font-medium text-sm"},"Cancel",-1),b("i",{"data-feather":"x",class:"w-4 h-4"},null,-1)]))])):ne("",!0),i.isLoading?(P(),D("div",Rgr,[b("span",null,le(i.loading_text),1),e[13]||(e[13]=b("svg",{"aria-hidden":"true",class:"w-5 h-5 animate-spin theme-spinner-color",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[14]||(e[14]=b("span",{class:"sr-only"},"Loading...",-1))])):ne("",!0)],2),b("main",Mgr,[s.configToEdit?(P(),yt(Kf(s.currentComponent),{key:0,config:s.configToEdit,loading:i.isLoading,onSettingUpdated:s.handleSettingUpdated,api_get_req:s.api_get_req,api_post_req:s.api_post_req,show_toast:this.$store.state.toast.showToast,show_yes_no_dialog:this.$store.state.yesNoDialog.askQuestion,show_message_box:this.$store.state.messageBox.showMessage,client_id:t.$store.state.client_id,show_universal_form:this.$store.state.universalForm.showForm},null,40,["config","loading","onSettingUpdated","api_get_req","api_post_req","show_toast","show_yes_no_dialog","show_message_box","client_id","show_universal_form"])):(P(),D("div",Dgr,e[15]||(e[15]=[b("p",null,"Loading configuration...",-1)])))])])])}const Igr=ct(wgr,[["render",Ngr],["__scopeId","data-v-5621f36d"]]),Hgr={components:{ClipBoardTextInput:xoe,Card:VC},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};$e.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},Vgr={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},qgr={class:"mb-4"},Ugr=["value"],Bgr={class:"mb-4"},zgr={class:"mb-4"},Xgr={class:"mb-4"},Fgr={class:"mb-4"},jgr={class:"mb-4"},Ygr={class:"mb-4"},Ggr={key:1};function Wgr(t,e,n,r,i,s){const o=je("Card"),a=je("ClipBoardTextInput");return s.selectedModel!==null&&s.selectedModel.toLowerCase().includes("gptq")?(P(),D("div",Vgr,[b("form",{onSubmit:e[2]||(e[2]=oe((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:""},[te(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>[te(o,{title:"Model",class:"",isHorizontal:!1},{default:Ve(()=>[b("div",qgr,[e[3]||(e[3]=b("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),Ie(b("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(P(!0),D(He,null,lt(s.models,l=>(P(),D("option",{key:l,value:l},le(l),9,Ugr))),128))],544),[[As,s.selectedModel]])])]),_:1}),te(o,{title:"Data",isHorizontal:!1},{default:Ve(()=>[b("div",Bgr,[e[4]||(e[4]=b("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),te(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),te(o,{title:"Training",isHorizontal:!1},{default:Ve(()=>[b("div",zgr,[e[5]||(e[5]=b("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),b("div",Xgr,[e[6]||(e[6]=b("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),b("div",Fgr,[e[7]||(e[7]=b("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),b("div",jgr,[e[8]||(e[8]=b("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),te(o,{title:"Output",isHorizontal:!1},{default:Ve(()=>[b("div",Ygr,[e[9]||(e[9]=b("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),te(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),te(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>e[10]||(e[10]=[b("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(P(),D("div",Ggr,[te(o,{title:"Info",class:"",isHorizontal:!1},{default:Ve(()=>e[11]||(e[11]=[be(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const Zgr=ct(Hgr,[["render",Wgr]]),Kgr={components:{ClipBoardTextInput:xoe,Card:VC},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Jgr={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},eQr={class:"mb-4"},tQr={class:"mb-4"};function nQr(t,e,n,r,i,s){const o=je("ClipBoardTextInput"),a=je("Card");return P(),D("div",Jgr,[b("form",{onSubmit:e[0]||(e[0]=oe((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[te(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>[te(a,{title:"Model",class:"",isHorizontal:!1},{default:Ve(()=>[b("div",eQr,[e[1]||(e[1]=b("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),te(o,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),b("div",tQr,[e[2]||(e[2]=b("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),te(o,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),te(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>e[3]||(e[3]=[b("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const rQr=ct(Kgr,[["render",nQr]]),iQr={name:"WelcomeScreen",props:{isReady:{type:Boolean,required:!0},loadingProgress:{type:Number,required:!0},loadingInfos:{type:String,required:!0},versionInfo:{type:String,required:!0},interestingFacts:{type:Array,required:!0}},data(){return{randomFact:""}},computed:{...e7(["config","theme_vars"]),appName(){var t,e;return((t=this.config)==null?void 0:t.app_custom_name)||((e=this.theme_vars)==null?void 0:e.lollms_title)||"LoLLMs"},appSlogan(){var t;return((t=this.config)==null?void 0:t.app_custom_slogan)||"One tool to rule them all"},shouldShowLollmsParagraphs(){var t;return!((t=this.config)!=null&&t.app_custom_name)},shouldShowLollmsFunFacts(){var t;return(t=this.config)==null?void 0:t.app_show_fun_facts}},methods:{updateRandomFact(){let t;if(this.interestingFacts.length<=1){this.randomFact=this.interestingFacts.length===1?this.interestingFacts[0]:"";return}do t=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)];while(t===this.randomFact);this.randomFact=t}},mounted(){this.updateRandomFact()},watch:{interestingFacts:{handler(){this.updateRandomFact()},immediate:!0}}},sQr={key:0,class:"fixed inset-0 z-50 flex items-center justify-center overflow-hidden bg-gradient-welcome text-blue-800 dark:text-blue-100"},oQr={key:0,class:"absolute inset-0 pointer-events-none overflow-hidden opacity-70"},aQr={class:"relative z-10 flex w-full max-w-4xl flex-col items-center px-6 text-center"},lQr={class:"mb-10 w-full"},cQr={class:"lollms-title-style mb-3 text-5xl font-extrabold tracking-tight drop-shadow-md md:text-7xl transition-transform duration-300 hover:scale-[1.03]"},uQr={class:"text-xl italic md:text-2xl text-subtitle"},dQr={key:0,class:"mt-4 text-base text-author"},fQr={class:"mt-1 text-sm text-author"},hQr={class:"text-base text-blue-800 dark:text-blue-200"},pQr=["innerHTML"],TQr={class:"w-full max-w-lg"},OQr={class:"mb-3 h-3 w-full overflow-hidden rounded-full shadow-inner animated-progressbar-bg"},mQr={role:"status",class:"w-full"},gQr={class:"text-2xl font-semibold text-progress"};function QQr(t,e,n,r,i,s){return P(),yt(Jn,{name:"fade-smooth"},{default:Ve(()=>[n.isReady?ne("",!0):(P(),D("div",sQr,[t.$store.state.theme_vars.activate_dropping_animation?(P(),D("div",oQr,[(P(),D(He,null,lt(60,o=>b("div",{key:o,class:"absolute animate-fall text-xs text-blue-300 dark:text-blue-500",style:qn({left:`${Math.random()*100}%`,top:"-30px",animationDuration:`${4+Math.random()*8}s`,animationDelay:`${Math.random()*6}s`,opacity:`${.3+Math.random()*.5}`})},le(t.$store.state.theme_vars.falling_object||"·"),5)),64))])):ne("",!0),b("div",aQr,[b("div",lQr,[b("h1",cQr,le(s.appName),1),b("p",uQr,le(s.appSlogan),1),s.shouldShowLollmsParagraphs?(P(),D("p",dQr," by ParisNeo ")):ne("",!0),b("p",fQr,le(n.versionInfo),1)]),s.shouldShowLollmsFunFacts&&i.randomFact?(P(),D("div",{key:0,class:"mb-8 w-full max-w-xl cursor-pointer rounded-lg border p-4 shadow-lg backdrop-blur-sm transition-all duration-300 card border-blue-300 dark:border-blue-600 hover:bg-blue-200 dark:hover:bg-blue-700 hover:border-blue-400 dark:hover:border-blue-500",onClick:e[0]||(e[0]=(...o)=>s.updateRandomFact&&s.updateRandomFact(...o))},[b("p",hQr,[e[1]||(e[1]=b("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),b("span",{innerHTML:i.randomFact,class:"italic"},null,8,pQr)])])):ne("",!0),b("div",TQr,[b("div",OQr,[b("div",{class:"h-full rounded-full shadow-md transition-all duration-500 ease-out animated-progressbar-fg",style:qn({width:`${n.loadingProgress}%`})},null,4)]),b("div",mQr,[(P(),D("p",{class:"mb-1 text-lg transition-opacity duration-300 text-loading",key:n.loadingInfos},le(n.loadingInfos)+"... ",1)),b("p",gQr,le(Math.round(n.loadingProgress))+"% ",1)])])])]))]),_:1})}const _Qr=ct(iQr,[["render",QQr]]),vQr={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean,openfolder_enabled:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Ge(()=>{Ne.replace()})},watch:{showConfirmation(){Ge(()=>{Ne.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Ge(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Ge(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},yQr=["id"],bQr={class:"flex flex-row items-center gap-2"},SQr={key:0},xQr={class:"flex flex-row items-center w-full"},EQr=["title"],wQr=["value"],CQr={class:"absolute top-0 right-0 h-full flex items-center group"},LQr={class:"discussion-toolbox"},AQr={key:0,class:"flex gap-2 items-center"},$Qr={key:1,class:"flex gap-2 items-center"};function kQr(t,e,n,r,i,s){return P(),D("div",{class:we([n.selected?"discussion-hilighted":"discussion","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 cursor-pointer relative w-[15rem]"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=oe(o=>s.selectEvent(),["stop"]))},[b("div",bQr,[n.isCheckbox?(P(),D("div",SQr,[Ie(b("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=oe(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>i.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>s.checkedChangeEvent(o,n.id))},null,544),[[Y3,i.checkBoxValue_local]])])):ne("",!0),n.selected?(P(),D("div",{key:1,class:we(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):ne("",!0),n.selected?ne("",!0):(P(),D("div",{key:2,class:we(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),b("div",xQr,[i.editTitle?ne("",!0):(P(),D("p",{key:0,title:n.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},le(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,EQr)),i.editTitle?(P(),D("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Pr(oe(o=>s.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Pr(oe(o=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>s.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=oe(()=>{},["stop"]))},null,40,wQr)):ne("",!0)]),b("div",CQr,[b("div",LQr,[i.showConfirmation?(P(),D("div",AQr,[b("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=oe(o=>s.cancel(),["stop"]))},e[14]||(e[14]=[b("i",{"data-feather":"x"},null,-1)])),b("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=oe(o=>i.editTitleMode?s.editTitleEvent():i.deleteMode?s.deleteEvent():s.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[b("i",{"data-feather":"check"},null,-1)]))])):ne("",!0),i.showConfirmation?ne("",!0):(P(),D("div",$Qr,[n.openfolder_enabled?(P(),D("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=oe(o=>s.openFolderEvent(),["stop"]))},e[16]||(e[16]=[b("i",{"data-feather":"folder"},null,-1)]))):ne("",!0),b("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=oe(o=>i.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[b("i",{"data-feather":"type"},null,-1)])),b("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=oe(o=>i.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[b("i",{"data-feather":"edit-2"},null,-1)])),b("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=oe(o=>i.deleteMode=!0,["stop"]))},e[19]||(e[19]=[b("i",{"data-feather":"trash"},null,-1)]))]))])])],10,yQr)}const Ioe=ct(vQr,[["render",kQr],["__scopeId","data-v-2b3580ce"]]),PQr="/";$e.defaults.baseURL="/";const RQr={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{UniversalForm:uoe},data(){return{bUrl:PQr,isMounted:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},isActive(){return this.$store.state.mountedPers&&this.$store.state.config.active_personality_id===this.$store.state.config.personalities.findIndex(t=>t===this.$store.state.mountedPers.full_path)}},methods:{async handleOnTalk(){const t=this.mountedPers;if(!t){this.$store.state.toast.showToast("No personality mounted to talk with.",3,!1);return}console.log("Talking with:",t.name);try{let e=await $e.get("/get_generation_status",{});if(e&&!e.data.status){const n=this.$store.state.config.personalities.findIndex(r=>r===t.full_path);if(n!==this.$store.state.config.active_personality_id){const r={client_id:this.$store.state.client_id,id:n};let i=await $e.post("/select_personality",r);if(!i.data.status){console.error("Failed to select personality before talking:",i.data.error),this.$store.state.toast.showToast(`Error selecting ${t.name}: ${i.data.error}`,4,!1);return}this.$store.commit("setActivePersonalityId",n),this.$store.commit("setMountedPers",this.$store.state.personalities_infos[n])}console.log("Requesting generation from:",t.name),Je.emit("generate_msg_from",{id:n})}else e?(console.log("Already generating"),this.$store.state.toast.showToast("Generation is already in progress.",3,!1)):(console.error("Could not get generation status."),this.$store.state.toast.showToast("Error checking generation status.",4,!1))}catch(e){console.error("Error during handleOnTalk:",e),this.$store.state.toast.showToast(`Error initiating talk: ${e.message}`,4,!1)}finally{}},async remount_personality(){var e;const t=this.mountedPers;if(!t)return this.$store.state.toast.showToast("No personality mounted to remount.",3,!1),{status:!1,error:"no personality selected"};console.log("Remounting personality ",t.name),this.$store.state.toast.showToast(`Remounting ${t.name}...`,4,!0);try{const n={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language},r=await $e.post("/remount_personality",n);if(r&&r.data.status)return console.log("Personality remounted successfully:",r.data),this.$store.state.toast.showToast(`${t.name} remounted successfully!`,4,!0),this.$store.dispatch("refreshPersonalityData"),r.data;{const i=((e=r==null?void 0:r.data)==null?void 0:e.error)||"Unknown error";return console.error("Failed remount_personality:",i),this.$store.state.toast.showToast(`Failed to remount ${t.name}: ${i}`,4,!1),(r==null?void 0:r.data)||{status:!1,error:i}}}catch(n){return console.error("Error during remount_personality:",n),this.$store.state.toast.showToast(`Error remounting: ${n.message}`,4,!1),{status:!1,error:n.message}}},async onSettingsPersonality(t){var e;if(!t){this.$store.state.toast.showToast("No personality selected for settings.",3,!1);return}console.log("Opening settings for:",t.name);try{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path);if(n!==this.$store.state.config.active_personality_id){const i={client_id:this.$store.state.client_id,id:n};let s=await $e.post("/select_personality",i);if(!s.data.status){console.error("Failed to select personality before opening settings:",s.data.error),this.$store.state.toast.showToast(`Error selecting ${t.name} for settings: ${s.data.error}`,4,!1);return}this.$store.commit("setActivePersonalityId",n),this.$store.commit("setMountedPers",this.$store.state.personalities_infos[n]),await Ge()}const r=await $e.get("/get_active_personality_settings");if(r&&r.data&&Object.keys(r.data).length>0){console.log("Personality settings data:",r.data);const i=await this.$refs.universalForm.showForm(r.data,`Settings - ${t.name}`,"Save changes","Cancel");if(i){console.log("Saving new settings:",i);try{const s=await $e.post("/set_active_personality_settings",i);if(s&&s.data&&s.data.status)console.log("Settings saved successfully:",s.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0);else{const o=((e=s==null?void 0:s.data)==null?void 0:e.error)||"Unknown error saving settings.";console.error("Failed to save settings:",o),this.$store.state.toast.showToast(`Failed to save settings: ${o}`,4,!1)}}catch(s){console.error("Error saving personality settings:",s),this.$store.state.toast.showToast(`Error saving settings: ${s.message}`,4,!1)}}else console.log("Settings editing cancelled.")}else r&&r.data&&Object.keys(r.data).length===0?this.$store.state.toast.showToast(`${t.name} has no configurable settings.`,4,!1):(console.error("Could not get personality settings response:",r),this.$store.state.toast.showToast("Failed to retrieve personality settings.",4,!1))}catch(n){console.error("Error fetching/showing personality settings:",n),this.$store.state.toast.showToast(`Could not open settings: ${n.message}`,4,!1)}},async constructor(){for(Ge(()=>{Ne.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady&&this.onReady()},personalityImgPlacehodler(t){t.target.src=$9}}},MQr={class:"relative group/item"},DQr=["title"],NQr=["src","alt"],IQr={class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-auto flex items-center justify-center space-x-1 opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-2 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 z-10"};function HQr(t,e,n,r,i,s){const o=je("UniversalForm");return P(),D(He,null,[b("div",MQr,[b("button",{onClick:e[1]||(e[1]=oe(a=>s.onSettingsPersonality(s.mountedPers),["prevent"])),class:we(["w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none relative",{"glow-effect":t.$store.state.config.activate_skills_lib,"border-2 border-primary":s.isActive}]),title:"Configure "+s.mountedPers.name},[b("img",{src:s.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...a)),alt:s.mountedPers.name,class:"w-full h-full object-cover"},null,40,NQr)],10,DQr),b("div",IQr,[b("button",{onClick:e[2]||(e[2]=oe(a=>s.onSettingsPersonality(s.mountedPers),["prevent"])),class:"p-1 btn-secondary btn-xs rounded-full hover:scale-110 transition-transform duration-150",title:"Configure"},e[5]||(e[5]=[b("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826 3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),b("button",{onClick:e[3]||(e[3]=oe(a=>s.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none btn-xs hover:scale-110 transition-transform duration-150",title:"Remount"},e[6]||(e[6]=[b("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),b("button",{onClick:e[4]||(e[4]=oe(a=>s.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none btn-xs hover:scale-110 transition-transform duration-150",title:"Talk"},e[7]||(e[7]=[b("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]))])]),te(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const VQr=ct(RQr,[["render",HQr],["__scopeId","data-v-5f8375f1"]]),qQr={name:"Toolbar",components:{MountedPersonalities:VQr},props:{loading:Boolean,isCheckbox:Boolean},emits:["create-new-discussion","add-discussion-to-skills-library","toggle-skills-lib","show-skills-lib","toggle-edit-mode","reset-database","export-database","import-discussions","import-discussions-bundle","show-model-config","set-binding","copy-model-name","set-model","personality-selected","unmount-personality","remount-personality","talk-personality","personalities-ready","show-personality-list"],data(){return{isSkillsLibraryMenuVisible:!1,isMenuVisible:!1,isBindingsMenuVisible:!1,isModelsMenuVisible:!1,isPersonalitiesMenuVisible:!1,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",modelImgPlaceholder:qh,hideMenuTimeout:null,hideBindingsMenuTimeout:null,hideModelsMenuTimeout:null,hidePersonalitiesMenuTimeout:null,hideSkillsLibraryMenuTimeout:null}},computed:{...e7(["config","installedBindings","installedModels","mountedPersArr"]),...tE(["getCurrentBinding","getCurrentModel"]),currentBinding(){return this.getCurrentBinding||{}},currentModel(){return this.getCurrentModel||{}},currentBindingName(){var t;return(t=this.currentBinding)==null?void 0:t.name},currentModelName(){var t;return(t=this.currentModel)==null?void 0:t.name},currentBindingIcon(){var t;return((t=this.currentBinding)==null?void 0:t.icon)||this.modelImgPlaceholder},currentModelIcon(){var t;return((t=this.currentModel)==null?void 0:t.icon)||this.modelImgPlaceholder},filteredBindings(){const t=this.bindingSearchQuery.toLowerCase();return this.installedBindings.filter(e=>{var n;return(n=e.name)==null?void 0:n.toLowerCase().includes(t)})},filteredModels(){const t=this.modelSearchQuery.toLowerCase();return this.installedModels.filter(e=>{var n;return(n=e.name)==null?void 0:n.toLowerCase().includes(t)})},filteredPersonalities(){const t=this.personalitySearchQuery.toLowerCase();return Array.isArray(this.mountedPersArr)?this.mountedPersArr.filter(e=>{var n;return(n=e.name)==null?void 0:n.toLowerCase().includes(t)}):[]},activePersonalityId(){var t;return(t=this.$store.state.config)==null?void 0:t.active_personality_id},configPersonalities(){var t;return((t=this.$store.state.config)==null?void 0:t.personalities)||[]}},methods:{isActivePersonality(t){if(this.activePersonalityId===void 0||this.activePersonalityId<0||this.activePersonalityId>=this.configPersonalities.length)return!1;const e=this.configPersonalities[this.activePersonalityId];return t.full_path===e||t.full_path===(e==null?void 0:e.split(":")[0])},triggerFileDialog(t){this.$refs[t]&&this.$refs[t].click()},showSkillsLibraryMenu(){clearTimeout(this.hideSkillsLibraryMenuTimeout),this.isSkillsLibraryMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideSkillsLibraryMenu(){this.hideSkillsLibraryMenuTimeout=setTimeout(()=>{this.isSkillsLibraryMenuVisible=!1},300)},showMenu(){clearTimeout(this.hideMenuTimeout),this.isMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isMenuVisible=!1},300)},showBindingsMenu(){clearTimeout(this.hideBindingsMenuTimeout),this.isBindingsMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideBindingsMenu(){this.hideBindingsMenuTimeout=setTimeout(()=>{this.isBindingsMenuVisible=!1},300)},showModelsMenu(){clearTimeout(this.hideModelsMenuTimeout),this.isModelsMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideModelsMenu(){this.hideModelsMenuTimeout=setTimeout(()=>{this.isModelsMenuVisible=!1},300)},showPersonalitiesMenu(){clearTimeout(this.hidePersonalitiesMenuTimeout),this.isPersonalitiesMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hidePersonalitiesMenu(){this.hidePersonalitiesMenuTimeout=setTimeout(()=>{this.isPersonalitiesMenuVisible=!1},300)},onPersonalitiesReadyFun(){this.$emit("personalities-ready")},onShowPersListFun(){this.$emit("show-personality-list")}},mounted(){Ge(()=>{Ne.replace()})},updated(){Ge(()=>{Ne.replace()})}},UQr={class:"toolbar-color flex items-center p-1 justify-around"},BQr={key:0,class:"toolbar-container flex items-center gap-1 relative"},zQr={class:"relative"},XQr={class:"relative"},FQr=["title"],jQr=["src","alt"],YQr={class:"p-2 border-b border-blue-200 dark:border-slate-700"},GQr={class:"px-4 py-3 grid grid-cols-3 gap-x-4 gap-y-4 max-h-80 overflow-y-auto scrollbar overflow-visible"},WQr=["onClick","title"],ZQr=["src","alt"],KQr={class:"animated-thought-bubble text-center"},JQr=["onClick"],e_r={class:"flex space-x-1 justify-center"},t_r=["onClick"],n_r=["title"],r_r=["src","alt"],i_r={class:"p-2 border-b border-blue-200 dark:border-slate-700"},s_r={class:"px-4 py-3 grid grid-cols-3 gap-x-4 gap-y-4 max-h-80 overflow-y-auto scrollbar overflow-visible"},o_r=["onClick","title"],a_r=["src","alt"],l_r={class:"animated-thought-bubble text-center z-50"},c_r=["onClick"],u_r={class:"flex space-x-1 justify-center"},d_r=["onClick"],f_r={class:"p-2 border-b border-blue-200 dark:border-slate-700"},h_r={class:"px-4 py-3 grid grid-cols-3 gap-x-4 gap-y-4 max-h-80 overflow-y-auto scrollbar overflow-visible"},p_r=["onClick","title"],T_r=["src","alt"],O_r={class:"animated-thought-bubble text-center"},m_r=["onClick"],g_r={class:"flex space-x-1 justify-center"},Q_r=["onClick"],__r=["onClick"],v_r=["onClick"];function y_r(t,e,n,r,i,s){const o=je("MountedPersonalities");return P(),D("div",UQr,[n.loading?ne("",!0):(P(),D("div",BQr,[b("button",{class:"toolbar-button svg-button",title:"Create new discussion",onClick:e[0]||(e[0]=a=>t.$emit("create-new-discussion"))},e[32]||(e[32]=[b("i",{"data-feather":"plus",class:"w-5 h-5"},null,-1)])),n.loading?ne("",!0):(P(),D("div",{key:0,class:"relative",onMouseleave:e[7]||(e[7]=(...a)=>s.hideSkillsLibraryMenu&&s.hideSkillsLibraryMenu(...a))},[b("div",{onMouseenter:e[1]||(e[1]=(...a)=>s.showSkillsLibraryMenu&&s.showSkillsLibraryMenu(...a)),class:"menu-hover-area flex items-center justify-center w-8 h-8"},e[33]||(e[33]=[b("button",{class:"toolbar-button svg-button",title:"Toggle Skills library menu"},[b("svg",{class:"w-5 h-5",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M4 4v16h16V4H4zm2 2h12v12H6V6zm2 2h2v8H8V8zm3 0h2v8h-2V8zm3 0h2v8h-2V8z",fill:"currentColor"})])],-1)]),32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[6]||(e[6]=(...a)=>s.showSkillsLibraryMenu&&s.showSkillsLibraryMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform card p-1 flex flex-wrap gap-1 items-center shadow-lg w-auto min-w-[10rem]"},[b("button",{type:"button",onClick:e[2]||(e[2]=oe(a=>t.$emit("add-discussion-to-skills-library"),["stop"])),title:"Add this discussion content to skills database",class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300"},e[34]||(e[34]=[b("i",{"data-feather":"plus",class:"w-5 h-5"},null,-1)])),t.$store.state.config.activate_skills_lib?(P(),D("button",{key:0,type:"button",onClick:e[3]||(e[3]=oe(a=>t.$emit("toggle-skills-lib"),["stop"])),title:"Skills database is activated",class:"svg-button text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-200"},e[35]||(e[35]=[b("i",{"data-feather":"check-circle",class:"w-5 h-5"},null,-1)]))):(P(),D("button",{key:1,type:"button",onClick:e[4]||(e[4]=oe(a=>t.$emit("toggle-skills-lib"),["stop"])),title:"Skills database is deactivated",class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200"},e[36]||(e[36]=[b("i",{"data-feather":"x-octagon",class:"w-5 h-5"},null,-1)]))),b("button",{type:"button",onClick:e[5]||(e[5]=oe(a=>t.$emit("show-skills-lib"),["stop"])),title:"Show Skills database",class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300"},e[37]||(e[37]=[b("i",{"data-feather":"book",class:"w-5 h-5"},null,-1)]))],544),[[mr,i.isSkillsLibraryMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:1,class:"relative",onMouseleave:e[17]||(e[17]=(...a)=>s.hideMenu&&s.hideMenu(...a))},[b("div",{onMouseenter:e[8]||(e[8]=(...a)=>s.showMenu&&s.showMenu(...a)),class:"menu-hover-area flex items-center justify-center w-8 h-8"},e[38]||(e[38]=[b("button",{class:"toolbar-button svg-button",title:"Toggle menu"},[b("i",{"data-feather":"menu",class:"w-5 h-5"})],-1)]),32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[16]||(e[16]=(...a)=>s.showMenu&&s.showMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform card p-1 flex flex-wrap gap-1 items-center shadow-lg w-auto min-w-[10rem]"},[b("button",{class:we(["svg-button",n.isCheckbox?"text-blue-600 dark:text-sky-400 bg-blue-200 dark:bg-slate-700":"text-gray-600 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:e[9]||(e[9]=a=>t.$emit("toggle-edit-mode"))},e[39]||(e[39]=[b("i",{"data-feather":"check-square",class:"w-5 h-5"},null,-1)]),2),b("button",{class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200",title:"Reset database, remove all discussions",onClick:e[10]||(e[10]=oe(a=>t.$emit("reset-database"),["stop"]))},e[40]||(e[40]=[b("i",{"data-feather":"trash-2",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300",title:"Export database",type:"button",onClick:e[11]||(e[11]=oe(a=>t.$emit("export-database"),["stop"]))},e[41]||(e[41]=[b("i",{"data-feather":"database",class:"w-5 h-5"},null,-1)])),b("div",zQr,[b("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:e[12]||(e[12]=a=>t.$emit("import-discussions",a))},null,544),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300 rotate-90",title:"Import discussions",type:"button",onClick:e[13]||(e[13]=oe(a=>s.triggerFileDialog("fileDialog"),["stop"]))},e[42]||(e[42]=[b("i",{"data-feather":"log-in",class:"w-5 h-5"},null,-1)]))]),b("div",XQr,[b("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:e[14]||(e[14]=a=>t.$emit("import-discussions-bundle",a))},null,544),b("button",{title:"Import discussion bundle",onClick:e[15]||(e[15]=oe(a=>s.triggerFileDialog("bundleLoadingDialog"),["stop"])),class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300"},e[43]||(e[43]=[b("i",{"data-feather":"folder",class:"w-5 h-5"},null,-1)]))])],544),[[mr,i.isMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:2,class:"relative",onMouseleave:e[22]||(e[22]=(...a)=>s.hideBindingsMenu&&s.hideBindingsMenu(...a))},[b("div",{onMouseenter:e[19]||(e[19]=(...a)=>s.showBindingsMenu&&s.showBindingsMenu(...a)),class:"bindings-hover-area flex items-center justify-center w-8 h-8"},[b("button",{onClick:e[18]||(e[18]=oe(a=>t.$emit("show-model-config",null),["prevent"])),class:"w-6 h-6 block",title:s.currentBinding?s.currentBinding.name:"unknown"},[b("img",{src:s.currentBindingIcon,class:"w-full h-full rounded-full object-cover border-2 border-blue-300 dark:border-slate-600 active:scale-90 hover:border-blue-500 dark:hover:border-sky-400 hover:scale-110 hover:-translate-y-1 duration-200 transition-transform",alt:s.currentBinding?s.currentBinding.name:"Binding icon"},null,8,jQr)],8,FQr)],32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[21]||(e[21]=(...a)=>s.showBindingsMenu&&s.showBindingsMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform w-80 panels-color rounded-md shadow-lg ring-1 ring-blue-300 dark:ring-slate-700 ring-opacity-50 focus:outline-none"},[b("div",YQr,[Ie(b("input",{type:"text","onUpdate:modelValue":e[20]||(e[20]=a=>i.bindingSearchQuery=a),placeholder:"Search bindings...",class:"w-full input input-sm"},null,512),[[vt,i.bindingSearchQuery]])]),b("div",GQr,[(P(!0),D(He,null,lt(s.filteredBindings,(a,l)=>(P(),D("div",{key:l,class:"relative group/item flex flex-col items-center"},[b("button",{onClick:oe(c=>t.$emit("set-binding",a),["prevent"]),title:a.name,class:we(["w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none border-2 mb-1",a.name==s.currentBindingName?"border-blue-500 dark:border-sky-500":"border-transparent hover:border-blue-300 dark:hover:border-slate-600"])},[b("img",{src:a.icon?a.icon:i.modelImgPlaceholder,alt:a.name,class:"w-full h-full object-cover"},null,8,ZQr)],10,WQr),b("div",KQr,[b("span",{class:"text-xs font-medium mb-1 block text-slate-800 dark:text-slate-100 cursor-pointer",onClick:oe(c=>t.$emit("set-binding",a),["prevent"])},le(a.name),9,JQr),b("div",e_r,[b("button",{onClick:oe(c=>t.$emit("show-model-config",a),["prevent"]),class:"p-1 btn-secondary btn-sm rounded-full hover:scale-110 transition-transform duration-150",title:"Configure Binding"},e[44]||(e[44]=[b("i",{"data-feather":"settings",class:"w-3 h-3"},null,-1)]),8,t_r)])])]))),128))])],544),[[mr,i.isBindingsMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:3,class:"relative",onMouseleave:e[27]||(e[27]=(...a)=>s.hideModelsMenu&&s.hideModelsMenu(...a))},[b("div",{onMouseenter:e[24]||(e[24]=(...a)=>s.showModelsMenu&&s.showModelsMenu(...a)),class:"models-hover-area flex items-center justify-center w-8 h-8"},[b("button",{onClick:e[23]||(e[23]=oe(a=>t.$emit("copy-model-name",null),["prevent"])),class:"w-6 h-6 block",title:s.currentModel?s.currentModel.name:"unknown"},[b("img",{src:s.currentModelIcon,class:"w-full h-full rounded-full object-cover border-2 border-blue-300 dark:border-slate-600 active:scale-90 hover:border-blue-500 dark:hover:border-sky-400 hover:scale-110 hover:-translate-y-1 duration-200 transition-transform",alt:s.currentModel?s.currentModel.name:"Model icon"},null,8,r_r)],8,n_r)],32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[26]||(e[26]=(...a)=>s.showModelsMenu&&s.showModelsMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform w-80 panels-color rounded-md shadow-lg ring-1 ring-blue-300 dark:ring-slate-700 ring-opacity-50 focus:outline-none"},[b("div",i_r,[Ie(b("input",{type:"text","onUpdate:modelValue":e[25]||(e[25]=a=>i.modelSearchQuery=a),placeholder:"Search models...",class:"w-full input input-sm"},null,512),[[vt,i.modelSearchQuery]])]),b("div",s_r,[(P(!0),D(He,null,lt(s.filteredModels,(a,l)=>(P(),D("div",{key:l,class:"relative group/item flex flex-col items-center"},[b("button",{onClick:oe(c=>t.$emit("set-model",a),["prevent"]),title:a.name,class:we(["w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none border-2 mb-1",a.name==s.currentModelName?"border-blue-500 dark:border-sky-500":"border-transparent hover:border-blue-300 dark:hover:border-slate-600"])},[b("img",{src:a.icon?a.icon:i.modelImgPlaceholder,alt:a.name,class:"w-full h-full object-cover"},null,8,a_r)],10,o_r),b("div",l_r,[b("span",{class:"text-xs font-medium mb-1 block text-slate-800 dark:text-slate-100 cursor-pointer",onClick:oe(c=>t.$emit("set-model",a),["prevent"])},le(a.name),9,c_r),b("div",u_r,[b("button",{onClick:oe(c=>t.$emit("copy-model-name",a),["prevent"]),class:"p-1 btn-secondary btn-sm rounded-full hover:scale-110 transition-transform duration-150",title:"Copy Model Name"},e[45]||(e[45]=[b("i",{"data-feather":"copy",class:"w-3 h-3"},null,-1)]),8,d_r)])])]))),128))])],544),[[mr,i.isModelsMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:4,class:"relative",onMouseleave:e[31]||(e[31]=(...a)=>s.hidePersonalitiesMenu&&s.hidePersonalitiesMenu(...a))},[b("div",{onMouseenter:e[28]||(e[28]=(...a)=>s.showPersonalitiesMenu&&s.showPersonalitiesMenu(...a)),class:"personalities-hover-area flex items-center justify-center w-8 h-8"},[te(o,{ref:"mountedPers",onShowPersList:s.onShowPersListFun,onReady:s.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[30]||(e[30]=(...a)=>s.showPersonalitiesMenu&&s.showPersonalitiesMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform w-80 panels-color rounded-md shadow-lg ring-1 ring-blue-300 dark:ring-slate-700 ring-opacity-50 focus:outline-none"},[b("div",f_r,[Ie(b("input",{type:"text","onUpdate:modelValue":e[29]||(e[29]=a=>i.personalitySearchQuery=a),placeholder:"Search personalities...",class:"w-full input input-sm"},null,512),[[vt,i.personalitySearchQuery]])]),b("div",h_r,[(P(!0),D(He,null,lt(s.filteredPersonalities,(a,l)=>(P(),D("div",{key:l,class:"relative group/item flex flex-col items-center"},[b("button",{onClick:oe(c=>t.$emit("personality-selected",a),["prevent"]),title:a.name,class:we(["w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none border-2 mb-1",s.isActivePersonality(a)?"border-blue-500 dark:border-sky-500":"border-transparent hover:border-blue-300 dark:hover:border-slate-600"])},[b("img",{src:a.avatar,alt:a.name,class:"w-full h-full object-cover"},null,8,T_r)],10,p_r),b("div",O_r,[b("span",{class:"text-xs font-medium mb-1 block text-slate-800 dark:text-slate-100 cursor-pointer",onClick:oe(c=>t.$emit("personality-selected",a),["prevent"])},le(a.name),9,m_r),b("div",g_r,[b("button",{onClick:oe(c=>t.$emit("unmount-personality",a),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none btn-sm hover:scale-110 transition-transform duration-150",title:"Unmount"},e[46]||(e[46]=[b("i",{"data-feather":"x",class:"w-3 h-3"},null,-1)]),8,Q_r),b("button",{onClick:oe(c=>t.$emit("remount-personality",a),["prevent"]),class:"p-1 btn-secondary btn-sm rounded-full hover:scale-110 transition-transform duration-150",title:"Remount"},e[47]||(e[47]=[b("i",{"data-feather":"refresh-cw",class:"w-3 h-3"},null,-1)]),8,__r),b("button",{onClick:oe(c=>t.$emit("talk-personality",a),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none btn-sm hover:scale-110 transition-transform duration-150",title:"Talk"},e[48]||(e[48]=[b("i",{"data-feather":"message-square",class:"w-3 h-3"},null,-1)]),8,v_r)])])]))),128))])],544),[[mr,i.isPersonalitiesMenuVisible]])]),_:1})],32))]))])}const b_r=ct(qQr,[["render",y_r]]),S_r={name:"LeftPanel",components:{Discussion:Ioe,RouterLink:Z9,Toolbar:b_r},props:{showLeftPanel:Boolean,discussionsList:Array,currentDiscussion:Object,toolbarLoading:Boolean,formattedDatabaseName:String},emits:["select-discussion","delete-discussion","open-folder","edit-title","make-title","create-new-discussion","add-discussion-to-skills-library","toggle-skills-lib","show-skills-lib","reset-database","export-database","import-discussions","import-discussions-bundle","show-model-config","set-binding","copy-model-name","set-model","personality-selected","unmount-personality","remount-personality","talk-personality","personalities-ready","show-personality-list","delete-selected","export-discussions-as-json","export-discussions-to-folder","export-discussions-as-markdown","show-database-selector","update-discussion-properties","import-discussion-file","toggle-star-discussion"],data(){return{filterTitle:"",filterInProgress:!1,isCheckbox:!1,showConfirmation:!1,isDragOverDiscussion:!1,searchTimeout:null,localDiscussions:[]}},computed:{...e7(["config","theme_vars","starredPersonalities"]),...tE(["getStarredPersonalities"]),logoSrc(){var t;return(t=this.config)!=null&&t.app_custom_logo?`/user_infos/${this.config.app_custom_logo}`:sa},logoTitle(){var t;return((t=this.config)==null?void 0:t.app_custom_name)||"LoLLMs WebUI"},appName(){var t;return((t=this.config)==null?void 0:t.app_custom_name)||"LoLLMS WebUI"},appSlogan(){var t;return((t=this.config)==null?void 0:t.app_custom_slogan)||"One tool to rule them all"},starredSet(){return new Set(this.getStarredPersonalities||[])},processedDiscussions(){return this.discussionsList.map(t=>{const e=this.localDiscussions.find(n=>n.id===t.id);return{...t,checkBoxValue:e?e.checkBoxValue:!1,isStarred:this.starredSet.has(String(t.id))}}).sort((t,e)=>t.isStarred&&!e.isStarred?-1:!t.isStarred&&e.isStarred?1:e.id-t.id)},displayedDiscussions(){if(!this.filterTitle.trim())return this.processedDiscussions;const t=this.filterTitle.toLowerCase();return this.processedDiscussions.filter(e=>e.title&&e.title.toLowerCase().includes(t))},selectedDiscussions(){return this.processedDiscussions.filter(t=>t.checkBoxValue)},isAllSelected(){return this.processedDiscussions.length>0&&this.selectedDiscussions.length===this.processedDiscussions.length}},methods:{handleSearchInput(){clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{},300)},handleSearch(){},selectDiscussion(t){this.toolbarLoading||this.$emit("select-discussion",t)},deleteDiscussion(t){this.$emit("delete-discussion",t.id)},checkUncheckDiscussion(t,e){const n=this.localDiscussions.findIndex(r=>r.id===e);n!==-1&&(this.localDiscussions[n].checkBoxValue=t),this.$emit("update-discussion-properties",{id:e,properties:{checkBoxValue:t}}),this.$forceUpdate()},selectAllDiscussions(){const t=!this.isAllSelected;this.localDiscussions.forEach(e=>{e.checkBoxValue=t,this.$emit("update-discussion-properties",{id:e.id,properties:{checkBoxValue:t}})}),this.$forceUpdate()},deleteSelectedDiscussions(){const t=this.selectedDiscussions.map(e=>e.id);this.$emit("delete-selected",t),this.showConfirmation=!1,this.isCheckbox=!1,this.localDiscussions=this.localDiscussions.filter(e=>!t.includes(e.id))},handleDrop(t){this.isDragOverDiscussion=!1;const e=t.dataTransfer.files;e.length===1&&e[0].type==="application/json"?this.$emit("import-discussion-file",e[0]):this.$store.state.toast.showToast("Please drop a single JSON file to import.",4,!1)},toggleStarDiscussion(t){this.$emit("toggle-star-discussion",t)},toggleStarSelectedDiscussions(){const t=this.selectedDiscussions;if(t.length===0)return;const e=!t[0].isStarred;t.forEach(n=>{n.isStarred!==e&&this.toggleStarDiscussion(n)})}},watch:{discussionsList:{handler(t){this.localDiscussions=t.map(e=>{const n=this.localDiscussions.find(r=>r.id===e.id);return{id:e.id,checkBoxValue:n?n.checkBoxValue:!1}}),this.$nextTick(()=>Ne.replace())},immediate:!0,deep:!0},isCheckbox(t){this.$nextTick(()=>Ne.replace()),t||(this.showConfirmation=!1,this.localDiscussions.forEach(e=>e.checkBoxValue=!1))},showConfirmation(t){this.$nextTick(()=>Ne.replace())}},mounted(){Ge(()=>{Ne.replace()})},updated(){this.$nextTick(()=>{Ne.replace()})}},x_r={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-[16rem] panels-color scrollbar h-full"},E_r={class:"logo-container w-12 h-12 flex-shrink-0"},w_r=["src","title"],C_r={class:"flex flex-col justify-center overflow-hidden"},L_r={class:"text-left p-1"},A_r={class:"text-md relative inline-block"},$_r={class:"relative inline-block font-bold tracking-wide text-blue-800 dark:text-blue-100 text-gradient-title truncate"},k_r={class:"text-blue-600 dark:text-blue-400 text-sm text-subtitle truncate"},P_r={class:"w-full max-w-md mx-auto p-2"},R_r={class:"flex items-center"},M_r={class:"relative flex-grow"},D_r={key:0,class:"w-full p-2 bg-blue-200 dark:bg-blue-700"},N_r={class:"flex flex-col space-y-1"},I_r={key:0,class:"text-sm text-blue-700 dark:text-blue-200"},H_r={key:1,class:"flex space-x-1 items-center"},V_r={key:1,class:"flex space-x-1 items-center"},q_r={class:"flex space-x-1 items-center"},U_r=["data-feather"],B_r={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},z_r={key:0,class:"p-4 text-center text-blue-600 dark:text-blue-400"},X_r={class:"flex flex-row items-center justify-center border-t border-blue-200 dark:border-blue-700 p-1"},F_r={class:"text-center font-semibold text-xs drop-shadow-md align-middle text-blue-700 dark:text-blue-300 truncate"};function j_r(t,e,n,r,i,s){const o=je("RouterLink"),a=je("Toolbar"),l=je("Discussion");return P(),yt(Jn,{name:"slide-right"},{default:Ve(()=>[n.showLeftPanel?(P(),D("div",x_r,[te(o,{to:{name:"discussions"},class:"flex items-center space-x-2 p-2 border-b border-blue-200 dark:border-blue-700"},{default:Ve(()=>[b("div",E_r,[b("img",{class:"w-full h-full rounded-full object-cover logo-image border-2 border-blue-300 dark:border-blue-600 shadow-sm",src:s.logoSrc,alt:"Logo",title:s.logoTitle},null,8,w_r)]),b("div",C_r,[b("div",L_r,[b("div",A_r,[b("span",$_r,le(s.appName),1),e[36]||(e[36]=b("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-blue-500 dark:bg-blue-400 transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"},null,-1))])]),b("p",k_r,le(s.appSlogan),1)])]),_:1}),te(a,{loading:n.toolbarLoading,"is-checkbox":i.isCheckbox,onCreateNewDiscussion:e[0]||(e[0]=c=>t.$emit("create-new-discussion")),onAddDiscussionToSkillsLibrary:e[1]||(e[1]=c=>t.$emit("add-discussion-to-skills-library")),onToggleSkillsLib:e[2]||(e[2]=c=>t.$emit("toggle-skills-lib")),onShowSkillsLib:e[3]||(e[3]=c=>t.$emit("show-skills-lib")),onToggleEditMode:e[4]||(e[4]=c=>i.isCheckbox=!i.isCheckbox),onResetDatabase:e[5]||(e[5]=c=>t.$emit("reset-database")),onExportDatabase:e[6]||(e[6]=c=>t.$emit("export-database")),onImportDiscussions:e[7]||(e[7]=c=>t.$emit("import-discussions",c)),onImportDiscussionsBundle:e[8]||(e[8]=c=>t.$emit("import-discussions-bundle",c)),onShowModelConfig:e[9]||(e[9]=c=>t.$emit("show-model-config",c)),onSetBinding:e[10]||(e[10]=c=>t.$emit("set-binding",c)),onCopyModelName:e[11]||(e[11]=c=>t.$emit("copy-model-name",c)),onSetModel:e[12]||(e[12]=c=>t.$emit("set-model",c)),onPersonalitySelected:e[13]||(e[13]=c=>t.$emit("personality-selected",c)),onUnmountPersonality:e[14]||(e[14]=c=>t.$emit("unmount-personality",c)),onRemountPersonality:e[15]||(e[15]=c=>t.$emit("remount-personality",c)),onTalkPersonality:e[16]||(e[16]=c=>t.$emit("talk-personality",c)),onPersonalitiesReady:e[17]||(e[17]=c=>t.$emit("personalities-ready")),onShowPersonalityList:e[18]||(e[18]=c=>t.$emit("show-personality-list"))},null,8,["loading","is-checkbox"]),b("div",P_r,[b("form",{onSubmit:e[22]||(e[22]=oe((...c)=>s.handleSearch&&s.handleSearch(...c),["prevent"])),class:"relative"},[b("div",R_r,[b("div",M_r,[Ie(b("input",{type:"search",id:"default-search",class:"block w-full h-8 pl-8 pr-10 text-sm input",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":e[19]||(e[19]=c=>i.filterTitle=c),onInput:e[20]||(e[20]=(...c)=>s.handleSearchInput&&s.handleSearchInput(...c)),onKeyup:e[21]||(e[21]=Pr((...c)=>s.handleSearch&&s.handleSearch(...c),["enter"]))},null,544),[[vt,i.filterTitle]]),e[37]||(e[37]=b("div",{class:"absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none"},[b("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400 dark:text-gray-500"})],-1)),e[38]||(e[38]=b("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 svg-button p-1",title:"Search"},[b("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),i.isCheckbox?(P(),D("div",D_r,[b("div",N_r,[s.selectedDiscussions.length>0?(P(),D("p",I_r,"Selected: "+le(s.selectedDiscussions.length),1)):ne("",!0),s.selectedDiscussions.length>0?(P(),D("div",H_r,[i.showConfirmation?ne("",!0):(P(),D("button",{key:0,class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200",title:"Remove selected",type:"button",onClick:e[23]||(e[23]=oe(c=>i.showConfirmation=!0,["stop"]))},e[39]||(e[39]=[b("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)]))),i.showConfirmation?(P(),D("div",V_r,[b("button",{class:"svg-button text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-200",title:"Confirm removal",type:"button",onClick:e[24]||(e[24]=oe((...c)=>s.deleteSelectedDiscussions&&s.deleteSelectedDiscussions(...c),["stop"]))},e[40]||(e[40]=[b("i",{"data-feather":"check",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200",title:"Cancel removal",type:"button",onClick:e[25]||(e[25]=oe(c=>i.showConfirmation=!1,["stop"]))},e[41]||(e[41]=[b("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]))])):ne("",!0)])):ne("",!0),b("div",q_r,[b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200 rotate-90",title:"Export selected to a json file",type:"button",onClick:e[26]||(e[26]=oe(c=>t.$emit("export-discussions-as-json",s.selectedDiscussions),["stop"]))},e[42]||(e[42]=[b("i",{"data-feather":"codepen",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200 rotate-90",title:"Export selected to a folder",type:"button",onClick:e[27]||(e[27]=oe(c=>t.$emit("export-discussions-to-folder",s.selectedDiscussions),["stop"]))},e[43]||(e[43]=[b("i",{"data-feather":"folder",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200",title:"Export selected to a markdown file",type:"button",onClick:e[28]||(e[28]=oe(c=>t.$emit("export-discussions-as-markdown",s.selectedDiscussions),["stop"]))},e[44]||(e[44]=[b("i",{"data-feather":"bookmark",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200",title:"Select/Deselect All",type:"button",onClick:e[29]||(e[29]=oe((...c)=>s.selectAllDiscussions&&s.selectAllDiscussions(...c),["stop"]))},[b("i",{"data-feather":s.isAllSelected?"minus-square":"check-square",class:"w-5 h-5"},null,8,U_r)]),b("button",{class:"svg-button text-yellow-500 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-200",title:"Star/Unstar Selected",type:"button",onClick:e[30]||(e[30]=oe((...c)=>s.toggleStarSelectedDiscussions&&s.toggleStarSelectedDiscussions(...c),["stop"]))},e[45]||(e[45]=[b("i",{"data-feather":"star",class:"w-5 h-5"},null,-1)]))])])])):ne("",!0),b("div",{id:"leftPanelScroll",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden scrollbar",onDragover:e[32]||(e[32]=oe(c=>i.isDragOverDiscussion=!0,["prevent"])),onDragleave:e[33]||(e[33]=c=>i.isDragOverDiscussion=!1),onDrop:e[34]||(e[34]=oe((...c)=>s.handleDrop&&s.handleDrop(...c),["prevent"]))},[b("div",B_r,[b("div",{class:we(["mx-0 flex flex-col flex-grow w-full",i.isDragOverDiscussion?"opacity-50 border-2 border-dashed border-blue-500":""])},[b("div",{id:"dis-list",class:we([i.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-10"])},[te(I4,{name:"discussionsList"},{default:Ve(()=>[(P(!0),D(He,null,lt(s.displayedDiscussions,c=>(P(),yt(l,{key:c.id,id:c.id,title:c.title,selected:n.currentDiscussion&&n.currentDiscussion.id===c.id,loading:c.loading,isCheckbox:i.isCheckbox,checkBoxValue:c.checkBoxValue,"is-starred":c.isStarred,openfolder_enabled:!0,onSelect:u=>s.selectDiscussion(c),onDelete:u=>s.deleteDiscussion(c),onOpenFolder:u=>t.$emit("open-folder",c),onEditTitle:e[31]||(e[31]=u=>t.$emit("edit-title",u)),onMakeTitle:u=>t.$emit("make-title",c),onChecked:s.checkUncheckDiscussion,onToggleStar:u=>s.toggleStarDiscussion(c)},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","is-starred","onSelect","onDelete","onOpenFolder","onMakeTitle","onChecked","onToggleStar"]))),128))]),_:1}),s.displayedDiscussions.length<1?(P(),D("div",z_r,e[46]||(e[46]=[b("p",null,"No discussions found.",-1)]))):ne("",!0)],2)],2)])],32),b("div",X_r,[b("div",{class:"chat-bar text-center flex items-center justify-center w-full cursor-pointer hover:bg-blue-100 dark:hover:bg-blue-700 rounded",onClick:e[35]||(e[35]=c=>t.$emit("show-database-selector"))},[e[47]||(e[47]=b("button",{class:"svg-button p-1"},[b("i",{"data-feather":"database",class:"w-4 h-4 mr-1"})],-1)),b("p",F_r,le(n.formattedDatabaseName),1)])])])):ne("",!0)]),_:1})}const Y_r=ct(S_r,[["render",j_r]]),G_r={props:{htmlContent:{type:String,required:!0}}},W_r=["innerHTML"];function Z_r(t,e,n,r,i,s){return P(),D("div",{class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:n.htmlContent},null,8,W_r)}const K_r=ct(G_r,[["render",Z_r]]),J_r={name:"JsonNode",props:{data:{required:!0},label:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expanded:!0}},computed:{isObject(){return this.data!==null&&typeof this.data=="object"},isArray(){return Array.isArray(this.data)}},methods:{toggle(){this.expanded=!this.expanded},getValueType(t){return t===null?"null":typeof t},formatValue(t){return t===null?"null":typeof t=="string"?`"${t}"`:t}}},evr={class:"json-tree"},tvr={key:0,class:"tree-node"},nvr={class:"toggle-icon"},rvr={class:"key"},ivr={class:"bracket"},svr={key:0,class:"node-content"},ovr={key:1,class:"bracket-close"},avr={key:1,class:"tree-leaf"},lvr={key:0,class:"key"};function cvr(t,e,n,r,i,s){const o=je("json-node",!0);return P(),D("div",evr,[s.isObject?(P(),D("div",tvr,[b("div",{class:"node-label",onClick:e[0]||(e[0]=(...a)=>s.toggle&&s.toggle(...a))},[b("span",nvr,le(i.expanded?"▼":"▶"),1),b("span",rvr,le(n.label),1),b("span",ivr,le(s.isArray?"[":"{"),1)]),i.expanded?(P(),D("div",svr,[(P(!0),D(He,null,lt(n.data,(a,l)=>(P(),D("div",{key:l,class:"node-item"},[te(o,{data:a,label:l,depth:n.depth+1},null,8,["data","label","depth"])]))),128))])):ne("",!0),i.expanded?(P(),D("div",ovr,le(s.isArray?"]":"}"),1)):ne("",!0)])):(P(),D("div",avr,[n.label?(P(),D("span",lvr,le(n.label)+":",1)):ne("",!0),b("span",{class:we(["value",s.getValueType(n.data)])},le(s.formatValue(n.data)),3)]))])}const uvr=ct(J_r,[["render",cvr],["__scopeId","data-v-0535817b"]]),dvr={name:"JsonViewer",components:{JsonNode:uvr},props:{data:{required:!0},title:{type:String,default:"JSON Data"}},data(){return{expanded:!0}},computed:{parsedData(){if(typeof this.data=="string")try{return JSON.parse(this.data)}catch{return{error:"Invalid JSON"}}return this.data}},methods:{toggle(){this.expanded=!this.expanded}}},fvr={class:"json-viewer"},hvr={class:"toggle-icon"},pvr={class:"title"},Tvr={key:0,class:"viewer-content"};function Ovr(t,e,n,r,i,s){const o=je("json-node");return P(),D("div",fvr,[b("div",{class:"viewer-header",onClick:e[0]||(e[0]=(...a)=>s.toggle&&s.toggle(...a))},[b("span",hvr,le(i.expanded?"▼":"▶"),1),b("span",pvr,le(n.title),1)]),i.expanded?(P(),D("div",Tvr,[te(o,{data:s.parsedData},null,8,["data"])])):ne("",!0)])}const mvr=ct(dvr,[["render",Ovr],["__scopeId","data-v-6fbe5047"]]),gvr={name:"Step",props:{done:Boolean,text:String,status:Boolean,description:String}},Qvr={class:"step-icon-wrapper"},_vr={key:"spinner",class:"step-spinner"},vvr={key:"success",class:"step-icon-success w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},yvr={key:"fail",class:"step-icon-fail w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},bvr={class:"step-text-content"},Svr={class:"step-text"},xvr={key:0,class:"step-description"};function Evr(t,e,n,r,i,s){return P(),D("div",{class:we(["step-component",[n.done?n.status?"step-component-success":"step-component-fail":"step-component-pending"]])},[b("div",Qvr,[te(Jn,{name:"fade-icon",mode:"out-in"},{default:Ve(()=>[n.done?n.status?(P(),D("svg",vvr,e[0]||(e[0]=[b("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)]))):(P(),D("svg",yvr,e[1]||(e[1]=[b("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1)]))):(P(),D("div",_vr))]),_:1})]),b("div",bvr,[b("div",Svr,le(n.text||"Processing..."),1),n.description?(P(),D("div",xvr,le(n.description),1)):ne("",!0)])],2)}const wvr=ct(gvr,[["render",Evr],["__scopeId","data-v-6d675aab"]]),Cvr=["title"],Lvr={key:0,class:"icon icon-success",viewBox:"0 0 24 24"},Avr={key:1,class:"icon icon-fail",viewBox:"0 0 24 24"},$vr={key:2,class:"icon-spinner"},kvr={key:1,class:"icon-text"},Pvr={__name:"StatusIcon",props:{status:{type:String,required:!0},icon:Boolean,iconDone:{type:String,default:"✓"},iconFailed:{type:String,default:"✗"},iconProcessing:{type:String,default:"⟳"},titleDone:{type:String,default:"Success"},titleFailed:{type:String,default:"Failure"},titleProcessing:{type:String,default:"Processing"}},setup(t){const e=t,n=et(()=>e.status==="Done"?e.titleDone:e.status==="Failed"?e.titleFailed:e.titleProcessing),r=et(()=>e.status==="Done"?e.iconDone:e.status==="Failed"?e.iconFailed:e.iconProcessing);return(i,s)=>(P(),D("div",{class:"status-icon",title:n.value},[t.icon?(P(),D(He,{key:0},[t.status==="Done"?(P(),D("svg",Lvr,s[0]||(s[0]=[b("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},null,-1)]))):t.status==="Failed"?(P(),D("svg",Avr,s[1]||(s[1]=[b("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null,-1)]))):(P(),D("div",$vr))],64)):(P(),D("span",kvr,le(r.value),1))],8,Cvr))}},Rvr=ct(Pvr,[["__scopeId","data-v-b3d110c2"]]),Mvr={name:"DropdownSubmenu",props:{title:{type:String,required:!0},icon:{type:String,required:!1,default:null}},setup(){const t=We(!1);let e=null;const n=()=>{e&&(clearTimeout(e),e=null),t.value||(t.value=!0,Ge(()=>{Ne.replace()}))},r=()=>{e=setTimeout(()=>{t.value=!1,e=null},150)};return Ii(()=>{Ge(()=>{Ne.replace()})}),{isOpen:t,openSubmenu:n,closeSubmenu:r}}},Dvr=["aria-expanded"],Nvr={class:"flex items-center gap-2"},Ivr=["data-feather"],Hvr={class:"truncate"},Vvr={key:0,class:"absolute top-0 left-full mt-[-1px] ml-1 w-auto min-w-[10rem] origin-top-left rounded-md bg-white dark:bg-gray-800 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-20 py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"submenu-button"};function qvr(t,e,n,r,i,s){return P(),D("div",{class:"relative",onMouseenter:e[0]||(e[0]=(...o)=>r.openSubmenu&&r.openSubmenu(...o)),onMouseleave:e[1]||(e[1]=(...o)=>r.closeSubmenu&&r.closeSubmenu(...o))},[b("button",{type:"button",class:"w-full flex items-center justify-between px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-700",role:"menuitem",tabindex:"-1","aria-haspopup":!0,"aria-expanded":r.isOpen},[b("div",Nvr,[n.icon?(P(),D("i",{key:0,"data-feather":n.icon,class:"w-4 h-4 flex-shrink-0"},null,8,Ivr)):ne("",!0),b("span",Hvr,le(n.title),1)]),e[2]||(e[2]=b("i",{"data-feather":"chevron-right",class:"w-4 h-4 ml-auto flex-shrink-0 text-gray-400"},null,-1))],8,Dvr),te(Jn,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:Ve(()=>[r.isOpen?(P(),D("div",Vvr,[ar(t.$slots,"default",{},void 0,!0)])):ne("",!0)]),_:3})],32)}const Hoe=ct(Mvr,[["render",qvr],["__scopeId","data-v-6d202a8d"]]),Uvr=[nJ(),rJ(),jK(),IJ(),bJ(),BK(),FK(),nn.allowMultipleSelections.of(!0),hJ(),BE(xJ,{fallback:!0}),LJ(),Pee(),Iee(),GK(),WK(),YK(),XSt(),q4.of([...Dee,...pee,...Eee,...qJ,...QJ,...dw,...qee])],Bvr="modulepreload",zvr=function(t){return"/"+t},oY={},xe=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=zvr(l),l in oY)return;oY[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Bvr,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};function De(t){return new ri(H3.define(t))}function W2(t){return xe(()=>Promise.resolve().then(()=>zPt),void 0).then(e=>e.sql({dialect:e[t]}))}const Xvr=[ye.of({name:"C",extensions:["c","h","ino"],load(){return xe(()=>Promise.resolve().then(()=>eH),void 0).then(t=>t.cpp())}}),ye.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return xe(()=>Promise.resolve().then(()=>eH),void 0).then(t=>t.cpp())}}),ye.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return W2("Cassandra")}}),ye.of({name:"CSS",extensions:["css"],load(){return xe(()=>Promise.resolve().then(()=>XLt),void 0).then(t=>t.css())}}),ye.of({name:"Go",extensions:["go"],load(){return xe(()=>import("./index-BLgecc2k.js"),[]).then(t=>t.go())}}),ye.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return xe(()=>Promise.resolve().then(()=>ZLt),void 0).then(t=>t.html())}}),ye.of({name:"Java",extensions:["java"],load(){return xe(()=>Promise.resolve().then(()=>u$t),void 0).then(t=>t.java())}}),ye.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript())}}),ye.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return xe(()=>Promise.resolve().then(()=>nAt),void 0).then(t=>t.json())}}),ye.of({name:"JSX",extensions:["jsx"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript({jsx:!0}))}}),ye.of({name:"LESS",extensions:["less"],load(){return xe(()=>import("./index-cKfhiyTm.js"),[]).then(t=>t.less())}}),ye.of({name:"Liquid",extensions:["liquid"],load(){return xe(()=>import("./index-C4P78S0C.js"),[]).then(t=>t.liquid())}}),ye.of({name:"MariaDB SQL",load(){return W2("MariaSQL")}}),ye.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return xe(()=>Promise.resolve().then(()=>HAt),void 0).then(t=>t.markdown())}}),ye.of({name:"MS SQL",load(){return W2("MSSQL")}}),ye.of({name:"MySQL",load(){return W2("MySQL")}}),ye.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return xe(()=>Promise.resolve().then(()=>Pkt),void 0).then(t=>t.php())}}),ye.of({name:"PLSQL",extensions:["pls"],load(){return W2("PLSQL")}}),ye.of({name:"PostgreSQL",load(){return W2("PostgreSQL")}}),ye.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return xe(()=>Promise.resolve().then(()=>MCt),void 0).then(t=>t.python())}}),ye.of({name:"Rust",extensions:["rs"],load(){return xe(()=>Promise.resolve().then(()=>Jkt),void 0).then(t=>t.rust())}}),ye.of({name:"Sass",extensions:["sass"],load(){return xe(()=>import("./index-CUkoV-qp.js"),[]).then(t=>t.sass({indented:!0}))}}),ye.of({name:"SCSS",extensions:["scss"],load(){return xe(()=>import("./index-CUkoV-qp.js"),[]).then(t=>t.sass())}}),ye.of({name:"SQL",extensions:["sql"],load(){return W2("StandardSQL")}}),ye.of({name:"SQLite",load(){return W2("SQLite")}}),ye.of({name:"TSX",extensions:["tsx"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript({jsx:!0,typescript:!0}))}}),ye.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript({typescript:!0}))}}),ye.of({name:"WebAssembly",extensions:["wat","wast"],load(){return xe(()=>import("./index-Cf5bix62.js"),[]).then(t=>t.wast())}}),ye.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return xe(()=>Promise.resolve().then(()=>fRt),void 0).then(t=>t.xml())}}),ye.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return xe(()=>Promise.resolve().then(()=>zRt),void 0).then(t=>t.yaml())}}),ye.of({name:"APL",extensions:["dyalog","apl"],load(){return xe(()=>import("./apl-B4CMkyY2.js"),[]).then(t=>De(t.apl))}}),ye.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return xe(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(t=>De(t.asciiArmor))}}),ye.of({name:"ASN.1",extensions:["asn","asn1"],load(){return xe(()=>import("./asn1-EdZsLKOL.js"),[]).then(t=>De(t.asn1({})))}}),ye.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return xe(()=>import("./asterisk-B-8jnY81.js"),[]).then(t=>De(t.asterisk))}}),ye.of({name:"Brainfuck",extensions:["b","bf"],load(){return xe(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(t=>De(t.brainfuck))}}),ye.of({name:"Cobol",extensions:["cob","cpy"],load(){return xe(()=>import("./cobol-CWcv1MsR.js"),[]).then(t=>De(t.cobol))}}),ye.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.csharp))}}),ye.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return xe(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>De(t.clojure))}}),ye.of({name:"ClojureScript",extensions:["cljs"],load(){return xe(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>De(t.clojure))}}),ye.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return xe(()=>import("./css-BnMrqG3P.js"),[]).then(t=>De(t.gss))}}),ye.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return xe(()=>import("./cmake-BQqOBYOt.js"),[]).then(t=>De(t.cmake))}}),ye.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return xe(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(t=>De(t.coffeeScript))}}),ye.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return xe(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(t=>De(t.commonLisp))}}),ye.of({name:"Cypher",extensions:["cyp","cypher"],load(){return xe(()=>import("./cypher-C_CwsFkJ.js"),[]).then(t=>De(t.cypher))}}),ye.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return xe(()=>import("./python-BuPzkPfP.js"),[]).then(t=>De(t.cython))}}),ye.of({name:"Crystal",extensions:["cr"],load(){return xe(()=>import("./crystal-SjHAIU92.js"),[]).then(t=>De(t.crystal))}}),ye.of({name:"D",extensions:["d"],load(){return xe(()=>import("./d-pRatUO7H.js"),[]).then(t=>De(t.d))}}),ye.of({name:"Dart",extensions:["dart"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.dart))}}),ye.of({name:"diff",extensions:["diff","patch"],load(){return xe(()=>import("./diff-DbItnlRl.js"),[]).then(t=>De(t.diff))}}),ye.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return xe(()=>import("./dockerfile-BU1Ap__c.js"),__vite__mapDeps([0,1])).then(t=>De(t.dockerFile))}}),ye.of({name:"DTD",extensions:["dtd"],load(){return xe(()=>import("./dtd-DF_7sFjM.js"),[]).then(t=>De(t.dtd))}}),ye.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return xe(()=>import("./dylan-DwRh75JA.js"),[]).then(t=>De(t.dylan))}}),ye.of({name:"EBNF",load(){return xe(()=>import("./ebnf-CDyGwa7X.js"),[]).then(t=>De(t.ebnf))}}),ye.of({name:"ECL",extensions:["ecl"],load(){return xe(()=>import("./ecl-Cabwm37j.js"),[]).then(t=>De(t.ecl))}}),ye.of({name:"edn",extensions:["edn"],load(){return xe(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>De(t.clojure))}}),ye.of({name:"Eiffel",extensions:["e"],load(){return xe(()=>import("./eiffel-CnydiIhH.js"),[]).then(t=>De(t.eiffel))}}),ye.of({name:"Elm",extensions:["elm"],load(){return xe(()=>import("./elm-vLlmbW-K.js"),[]).then(t=>De(t.elm))}}),ye.of({name:"Erlang",extensions:["erl"],load(){return xe(()=>import("./erlang-BNw1qcRV.js"),[]).then(t=>De(t.erlang))}}),ye.of({name:"Esper",load(){return xe(()=>import("./sql-D0XecflT.js"),[]).then(t=>De(t.esper))}}),ye.of({name:"Factor",extensions:["factor"],load(){return xe(()=>import("./factor-BPndPnYX.js"),__vite__mapDeps([2,1])).then(t=>De(t.factor))}}),ye.of({name:"FCL",load(){return xe(()=>import("./fcl-Kvtd6kyn.js"),[]).then(t=>De(t.fcl))}}),ye.of({name:"Forth",extensions:["forth","fth","4th"],load(){return xe(()=>import("./forth-Ffai-XNe.js"),[]).then(t=>De(t.forth))}}),ye.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return xe(()=>import("./fortran-DYz_wnZ1.js"),[]).then(t=>De(t.fortran))}}),ye.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return xe(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>De(t.fSharp))}}),ye.of({name:"Gas",extensions:["s"],load(){return xe(()=>import("./gas-Bneqetm1.js"),[]).then(t=>De(t.gas))}}),ye.of({name:"Gherkin",extensions:["feature"],load(){return xe(()=>import("./gherkin-heZmZLOM.js"),[]).then(t=>De(t.gherkin))}}),ye.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return xe(()=>import("./groovy-D9Dt4D0W.js"),[]).then(t=>De(t.groovy))}}),ye.of({name:"Haskell",extensions:["hs"],load(){return xe(()=>import("./haskell-BWDZoCOh.js"),[]).then(t=>De(t.haskell))}}),ye.of({name:"Haxe",extensions:["hx"],load(){return xe(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>De(t.haxe))}}),ye.of({name:"HXML",extensions:["hxml"],load(){return xe(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>De(t.hxml))}}),ye.of({name:"HTTP",load(){return xe(()=>import("./http-DBlCnlav.js"),[]).then(t=>De(t.http))}}),ye.of({name:"IDL",extensions:["pro"],load(){return xe(()=>import("./idl-BEugSyMb.js"),[]).then(t=>De(t.idl))}}),ye.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return xe(()=>import("./javascript-qCveANmP.js"),[]).then(t=>De(t.jsonld))}}),ye.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load(){return xe(()=>import("./jinja2-C4DGRd-O.js"),[]).then(t=>De(t.jinja2))}}),ye.of({name:"Julia",extensions:["jl"],load(){return xe(()=>import("./julia-DuME0IfC.js"),[]).then(t=>De(t.julia))}}),ye.of({name:"Kotlin",extensions:["kt","kts"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.kotlin))}}),ye.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return xe(()=>import("./livescript-BwQOo05w.js"),[]).then(t=>De(t.liveScript))}}),ye.of({name:"Lua",extensions:["lua"],load(){return xe(()=>Promise.resolve().then(()=>bMt),void 0).then(t=>De(t.lua))}}),ye.of({name:"mIRC",extensions:["mrc"],load(){return xe(()=>import("./mirc-CjQqDB4T.js"),[]).then(t=>De(t.mirc))}}),ye.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return xe(()=>import("./mathematica-DTrFuWx2.js"),[]).then(t=>De(t.mathematica))}}),ye.of({name:"Modelica",extensions:["mo"],load(){return xe(()=>import("./modelica-Dc1JOy9r.js"),[]).then(t=>De(t.modelica))}}),ye.of({name:"MUMPS",extensions:["mps"],load(){return xe(()=>import("./mumps-BT43cFF4.js"),[]).then(t=>De(t.mumps))}}),ye.of({name:"Mbox",extensions:["mbox"],load(){return xe(()=>import("./mbox-CNhZ1qSd.js"),[]).then(t=>De(t.mbox))}}),ye.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return xe(()=>import("./nginx-DdIZxoE0.js"),[]).then(t=>De(t.nginx))}}),ye.of({name:"NSIS",extensions:["nsh","nsi"],load(){return xe(()=>import("./nsis-ClDXqMnM.js"),__vite__mapDeps([3,1])).then(t=>De(t.nsis))}}),ye.of({name:"NTriples",extensions:["nt","nq"],load(){return xe(()=>import("./ntriples-BfvgReVJ.js"),[]).then(t=>De(t.ntriples))}}),ye.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.objectiveC))}}),ye.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.objectiveCpp))}}),ye.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return xe(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>De(t.oCaml))}}),ye.of({name:"Octave",extensions:["m"],load(){return xe(()=>import("./octave-Ck1zUtKM.js"),[]).then(t=>De(t.octave))}}),ye.of({name:"Oz",extensions:["oz"],load(){return xe(()=>import("./oz-BzwKVEFT.js"),[]).then(t=>De(t.oz))}}),ye.of({name:"Pascal",extensions:["p","pas"],load(){return xe(()=>import("./pascal--L3eBynH.js"),[]).then(t=>De(t.pascal))}}),ye.of({name:"Perl",extensions:["pl","pm"],load(){return xe(()=>import("./perl-CdXCOZ3F.js"),[]).then(t=>De(t.perl))}}),ye.of({name:"Pig",extensions:["pig"],load(){return xe(()=>import("./pig-CevX1Tat.js"),[]).then(t=>De(t.pig))}}),ye.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return xe(()=>import("./powershell-CFHJl5sT.js"),[]).then(t=>De(t.powerShell))}}),ye.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return xe(()=>import("./properties-C78fOPTZ.js"),[]).then(t=>De(t.properties))}}),ye.of({name:"ProtoBuf",extensions:["proto"],load(){return xe(()=>import("./protobuf-ChK-085T.js"),[]).then(t=>De(t.protobuf))}}),ye.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return xe(()=>import("./pug-DukmZTjD.js"),__vite__mapDeps([4,5])).then(t=>De(t.pug))}}),ye.of({name:"Puppet",extensions:["pp"],load(){return xe(()=>import("./puppet-DMA9R1ak.js"),[]).then(t=>De(t.puppet))}}),ye.of({name:"Q",extensions:["q"],load(){return xe(()=>import("./q-ZnEupP5q.js"),[]).then(t=>De(t.q))}}),ye.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return xe(()=>import("./r-B6wPVr8A.js"),[]).then(t=>De(t.r))}}),ye.of({name:"RPM Changes",load(){return xe(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>De(t.rpmChanges))}}),ye.of({name:"RPM Spec",extensions:["spec"],load(){return xe(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>De(t.rpmSpec))}}),ye.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return xe(()=>Promise.resolve().then(()=>TMt),void 0).then(t=>De(t.ruby))}}),ye.of({name:"SAS",extensions:["sas"],load(){return xe(()=>import("./sas-B4kiWyti.js"),[]).then(t=>De(t.sas))}}),ye.of({name:"Scala",extensions:["scala"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.scala))}}),ye.of({name:"Scheme",extensions:["scm","ss"],load(){return xe(()=>import("./scheme-C41bIUwD.js"),[]).then(t=>De(t.scheme))}}),ye.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return xe(()=>Promise.resolve().then(()=>nMt),void 0).then(t=>De(t.shell))}}),ye.of({name:"Sieve",extensions:["siv","sieve"],load(){return xe(()=>import("./sieve-C3Gn_uJK.js"),[]).then(t=>De(t.sieve))}}),ye.of({name:"Smalltalk",extensions:["st"],load(){return xe(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(t=>De(t.smalltalk))}}),ye.of({name:"Solr",load(){return xe(()=>import("./solr-DehyRSwq.js"),[]).then(t=>De(t.solr))}}),ye.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return xe(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>De(t.sml))}}),ye.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return xe(()=>import("./sparql-DkYu6x3z.js"),[]).then(t=>De(t.sparql))}}),ye.of({name:"Spreadsheet",alias:["excel","formula"],load(){return xe(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(t=>De(t.spreadsheet))}}),ye.of({name:"Squirrel",extensions:["nut"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.squirrel))}}),ye.of({name:"Stylus",extensions:["styl"],load(){return xe(()=>import("./stylus-BdAi1jBa.js"),[]).then(t=>De(t.stylus))}}),ye.of({name:"Swift",extensions:["swift"],load(){return xe(()=>import("./swift-BzpIVaGY.js"),[]).then(t=>De(t.swift))}}),ye.of({name:"sTeX",load(){return xe(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>De(t.stex))}}),ye.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return xe(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>De(t.stex))}}),ye.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return xe(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>De(t.verilog))}}),ye.of({name:"Tcl",extensions:["tcl"],load(){return xe(()=>import("./tcl-DVfN8rqt.js"),[]).then(t=>De(t.tcl))}}),ye.of({name:"Textile",extensions:["textile"],load(){return xe(()=>import("./textile-CnDTJFAw.js"),[]).then(t=>De(t.textile))}}),ye.of({name:"TiddlyWiki",load(){return xe(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(t=>De(t.tiddlyWiki))}}),ye.of({name:"Tiki wiki",load(){return xe(()=>import("./tiki-DGYXhP31.js"),[]).then(t=>De(t.tiki))}}),ye.of({name:"TOML",extensions:["toml"],load(){return xe(()=>import("./toml-BXUEaScT.js"),[]).then(t=>De(t.toml))}}),ye.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return xe(()=>import("./troff-wAsdV37c.js"),[]).then(t=>De(t.troff))}}),ye.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return xe(()=>import("./ttcn-CfJYG6tj.js"),[]).then(t=>De(t.ttcn))}}),ye.of({name:"TTCN_CFG",extensions:["cfg"],load(){return xe(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(t=>De(t.ttcnCfg))}}),ye.of({name:"Turtle",extensions:["ttl"],load(){return xe(()=>import("./turtle-B1tBg_DP.js"),[]).then(t=>De(t.turtle))}}),ye.of({name:"Web IDL",extensions:["webidl"],load(){return xe(()=>import("./webidl-ZXfAyPTL.js"),[]).then(t=>De(t.webIDL))}}),ye.of({name:"VB.NET",extensions:["vb"],load(){return xe(()=>import("./vb-CmGdzxic.js"),[]).then(t=>De(t.vb))}}),ye.of({name:"VBScript",extensions:["vbs"],load(){return xe(()=>import("./vbscript-BuJXcnF6.js"),[]).then(t=>De(t.vbScript))}}),ye.of({name:"Velocity",extensions:["vtl"],load(){return xe(()=>import("./velocity-D8B20fx6.js"),[]).then(t=>De(t.velocity))}}),ye.of({name:"Verilog",extensions:["v"],load(){return xe(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>De(t.verilog))}}),ye.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return xe(()=>import("./vhdl-lSbBsy5d.js"),[]).then(t=>De(t.vhdl))}}),ye.of({name:"XQuery",extensions:["xy","xquery"],load(){return xe(()=>import("./xquery-CQfU5ijd.js"),[]).then(t=>De(t.xQuery))}}),ye.of({name:"Yacas",extensions:["ys"],load(){return xe(()=>import("./yacas-BJ4BC0dw.js"),[]).then(t=>De(t.yacas))}}),ye.of({name:"Z80",extensions:["z80"],load(){return xe(()=>import("./z80-Hz9HOZM7.js"),[]).then(t=>De(t.z80))}}),ye.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return xe(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>De(t.mscgen))}}),ye.of({name:"Xù",extensions:["xu"],load(){return xe(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>De(t.xu))}}),ye.of({name:"MsGenny",extensions:["msgenny"],load(){return xe(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>De(t.msgenny))}}),ye.of({name:"Vue",extensions:["vue"],load(){return xe(()=>Promise.resolve().then(()=>KRt),void 0).then(t=>t.vue())}}),ye.of({name:"Angular Template",load(){return xe(()=>import("./index-BtGV7sqN.js"),[]).then(t=>t.angular())}})],Fvr=t=>{let e=[];for(let n of t.selection.ranges){const r=t.doc.lineAt(n.from),i=t.doc.lineAt(n.to);for(let s=r.number;s<=i.number;s++)e.some(o=>o.number===s)||e.push(t.doc.line(s))}return e},T3=(t,e,n)=>n&&e===0||!n&&e===t.doc.length?!1:(n?t.doc.sliceString(e-1,e):t.doc.sliceString(e,e+1))!==` +Error: ${(r==null?void 0:r.error)||"Unknown error"}`,4,!1),this.setPersonalityProcessing(t,!1)},async unmount_personality(t){var s;if(!t)return{status:!1,error:"no personality provided"};const e=((s=this.$store.state.config)==null?void 0:s.personalities)||[];let n=null;const r=t.language?`${t.full_path}:${t.language}`:null;r&&e.includes(r)?n=r:(e.includes(t.full_path),n=t.full_path);const i={path:n};try{return await this.api_post_req("unmount_personality",i)}catch(o){return{status:!1,error:o.message}}},async unmountAll(){if(!await this.show_yes_no_dialog(`Unmount all ${this.mountedPersArr.length} personalities?`,"Unmount All","Cancel"))return;this.show_toast("Unmounting all...",3,!0),this.isLoading=!0;const e=await this.api_post_req("unmount_all_personalities");e&&e.status?(await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),this.show_toast("All personalities unmounted.",4,!0)):this.show_toast(`Failed to unmount all: ${(e==null?void 0:e.error)||"Unknown error"}`,4,!1),this.isLoading=!1},async remountPersonality(t){const e=t.personality;if(!(!e.isMounted||e.isProcessing)){this.setPersonalityProcessing(t,!0),this.show_toast(`Remounting ${e.name}...`,3,!0);try{const n=await this.unmount_personality(e);if(!n||!n.status)throw new Error(`Unmount failed: ${(n==null?void 0:n.error)||"Unknown error"}`);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),await new Promise(i=>setTimeout(i,200));const r=await this.mount_personality(e);if(!r||!r.status)throw new Error(`Mount failed: ${(r==null?void 0:r.error)||"Unknown error"}`);await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities"),this.show_toast(`${e.name} remounted successfully.`,4,!0)}catch(n){this.show_toast(`Error remounting ${e.name}: ${n.message}`,4,!1),await this.$store.dispatch("refreshConfig"),await this.$store.dispatch("refreshMountedPersonalities")}finally{this.setPersonalityProcessing(t,!1)}}},async editPersonality(t){var n;const e=t.personality;if(!e.isProcessing){this.setPersonalityProcessing(t,!0);try{const r=await this.api_post_req("get_personality_config",{category:e.category,name:e.folder});r.status&&r.config?(this.$store.commit("setCurrentPersonConfig",r.config),this.$store.commit("setShowPersonalityEditor",!0),this.$store.commit("setSelectedPersonality",e),(n=this.$store.state.personality_editor)!=null&&n.showPanel&&this.$store.state.personality_editor.showPanel()):this.show_toast(`Failed to load config for ${e.name}: ${r.error||"Not found/error"}`,4,!1)}catch(r){this.show_toast(`Error loading config for ${e.name}: ${r.message}`,4,!1)}finally{this.setPersonalityProcessing(t,!1)}}},async onCopyToCustom(t){const e=t.personality;if(e.isProcessing||!await this.show_yes_no_dialog(`Copy "${e.name}" to 'custom_personalities'?`,"Copy","Cancel"))return;this.setPersonalityProcessing(t,!0);const r=await this.api_post_req("copy_to_custom_personas",{category:e.category,name:e.folder});r&&r.status?(this.show_message_box(`"${e.name}" copied. Refreshing list...`),await new Promise(i=>setTimeout(i,500)),await this.$store.dispatch("refreshPersonalitiesZoo"),await this.$store.dispatch("refreshMountedPersonalities")):this.show_toast(`Failed to copy ${e.name}: ${(r==null?void 0:r.error)||"Error"}`,4,!1),this.setPersonalityProcessing(t,!1)},async onPersonalityReinstall(t){const e=t.personality;if(e.isProcessing||!await this.show_yes_no_dialog(`Reinstall "${e.name}"? This overwrites local changes.`,"Reinstall","Cancel"))return;this.setPersonalityProcessing(t,!0),this.show_toast(`Reinstalling ${e.name}...`,3,!0);const r=await this.api_post_req("reinstall_personality",{name:e.full_path});r&&r.status?this.show_toast(`${e.name} reinstalled. Remount if active.`,4,!0):this.show_toast(`Failed to reinstall ${e.name}: ${(r==null?void 0:r.error)||"Error"}`,4,!1),this.setPersonalityProcessing(t,!1)},async onSettingsPersonality(t){const e=t.personality;if(!(!this.isActivePersonality(e)||e.isProcessing)){if(!this.isActivePersonality(e)){this.show_toast(`Activate "${e.name}" first to configure settings.`,4,!1);return}this.setPersonalityProcessing(t,!0);try{const n=await this.api_get_req("/get_active_personality_settings");if(n&&typeof n=="object"&&Object.keys(n).length>0){const r=await this.show_universal_form(n,`Settings - ${e.name}`,"Save","Cancel");if(r!=null){this.setPersonalityProcessing(t,!0);const i=await this.api_post_req("set_active_personality_settings",r);i!=null&&i.status?this.show_toast(`Settings for ${e.name} updated.`,4,!0):this.show_toast(`Failed to update settings: ${(i==null?void 0:i.error)||"Error"}`,4,!1)}}else n&&typeof n=="object"?this.show_toast(`"${e.name}" has no configurable settings.`,3,!0):this.show_toast("Could not retrieve settings structure.",4,!1)}catch(n){this.show_toast(`Error accessing settings: ${n.message}`,4,!1)}finally{this.setPersonalityProcessing(t,!1)}}},onCopyPersonalityName(t){const e=t.personality;navigator.clipboard.writeText(e.name).then(()=>this.show_toast(`Copied name: ${e.name}`,3,!0)).catch(n=>this.show_toast("Failed to copy name.",3,!1))},async handleOpenFolder(t){const e=t.personality,n=await this.api_post_req("open_personality_folder",{category:e.category,name:e.folder});(!n||!n.status)&&this.show_toast(`Could not open folder: ${(n==null?void 0:n.error)||"Error"}`,4,!1)}},async mounted(){var t;await this.fetchInitialData(),this.selectedCategory=((t=this.config)==null?void 0:t.personality_category)||""},updated(){Ge(()=>{Ne.replace()})}},bOr={class:"user-settings-panel flex flex-col mb-2 rounded-lg shadow-lg p-4 bg-white dark:bg-gray-800"},SOr={class:"flex flex-row justify-between items-center mb-4 flex-wrap gap-y-2"},xOr={class:"flex items-center flex-wrap"},EOr={key:0,class:"flex items-center mr-2 text-lg text-blue-600 dark:text-blue-300"},wOr=["title"],COr={class:"flex items-center space-x-3 shrink-0"},LOr={key:0,class:"text-base font-semibold cursor-default select-none items-center flex flex-row"},AOr={class:"flex -space-x-4 items-center"},$Or={class:"group/mounted items-center flex flex-row"},kOr=["onClick","title"],POr=["src"],ROr=["onClick"],MOr=["title"],DOr={class:"flex flex-col sm:flex-row gap-4 mb-4"},NOr={class:"flex-grow"},IOr={class:"relative"},HOr={class:"absolute right-1.5 bottom-1.5 flex space-x-1"},VOr={class:"flex-shrink-0 sm:w-64"},qOr={value:""},UOr={value:"Mounted"},BOr={key:0,value:"Starred"},zOr={key:1,disabled:"",class:"text-blue-400 dark:text-blue-600"},XOr=["value"],FOr={key:0,class:"flex justify-center items-center p-10 text-loading text-blue-600 dark:text-blue-300"},jOr={key:1,class:"text-center text-blue-500 dark:text-blue-400 py-10"},YOr={key:2,class:"overflow-y-auto flex-grow personalities-grid-container scrollbar",style:{"max-height":"calc(100vh - 300px)"},ref:"gridContainer"},GOr={class:"label block ml-2 mb-2 text-blue-700 dark:text-blue-300"};function WOr(t,e,n,r,i,s){const o=je("PersonalityEntry");return P(),D("div",bOr,[b("div",SOr,[b("div",xOr,[e[9]||(e[9]=b("p",{class:"text-xl font-semibold cursor-default select-none mr-3 text-blue-800 dark:text-blue-100"}," Personalities Zoo ",-1)),s.active_personality_name?(P(),D("div",EOr,[e[8]||(e[8]=b("span",{class:"mx-2 text-blue-400 dark:text-blue-500"},"|",-1)),b("span",{class:"font-bold line-clamp-1",title:`Active: ${s.active_personality_name}`},le(s.active_personality_name),9,wOr)])):ne("",!0)]),b("div",COr,[s.mountedPersArr.length>0?(P(),D("div",LOr,[b("div",AOr,[(P(!0),D(He,null,lt(s.displayedMountedPersonalities,(a,l)=>(P(),D("div",{class:"relative hover:-translate-y-1 duration-300 hover:z-10 shrink-0",key:a.id||a.full_path+"-"+l,ref_for:!0,ref:"mountedPersonalitiesRefs"},[b("div",$Or,[b("button",{onClick:oe(c=>s.onPersonalitySelected({personality:a,isMounted:!0}),["stop"]),title:`Select: ${a.name}`,class:"transition-transform duration-150 ease-in-out active:scale-90"},[b("img",{src:s.getPersonalityIconUrl(a.avatar),onError:e[0]||(e[0]=(...c)=>s.personalityImgPlaceholder&&s.personalityImgPlaceholder(...c)),class:we(["w-8 h-8 rounded-full object-cover border-2 transition-colors duration-200 group-hover/mounted:border-blue-500 dark:group-hover/mounted:border-blue-400",s.isActivePersonality(a)?"border-blue-500 dark:border-blue-400":"border-blue-300 dark:border-blue-600"])},null,42,POr)],8,kOr),b("button",{onClick:oe(c=>s.unmountPersonality({personality:a}),["stop"]),class:"absolute -top-1 -right-1 opacity-0 group-hover/mounted:opacity-100 transition-all duration-150 ease-in-out hover:scale-110",title:"Unmount personality"},e[10]||(e[10]=[b("span",{class:"bg-red-500 hover:bg-red-600 text-white rounded-full p-0.5 flex items-center justify-center shadow-md transition-colors duration-150"},[b("i",{"data-feather":"x",class:"w-3 h-3 stroke-current"})],-1)]),8,ROr)])]))),128)),s.mountedPersArr.length>i.maxDisplayedMounted?(P(),D("div",{key:0,class:"w-8 h-8 rounded-full bg-blue-200 dark:bg-blue-700 border-2 border-blue-300 dark:border-blue-600 flex items-center justify-center text-xs font-semibold text-blue-600 dark:text-blue-300 cursor-default",title:`${s.mountedPersArr.length-i.maxDisplayedMounted} more mounted`}," +"+le(s.mountedPersArr.length-i.maxDisplayedMounted),9,MOr)):ne("",!0)])])):ne("",!0),s.mountedPersArr.length>0?(P(),D("button",{key:1,onClick:e[1]||(e[1]=oe(a=>s.unmountAll(),["stop"])),class:"p-1 bg-red-100 hover:bg-red-200 dark:bg-red-900 dark:hover:bg-red-800 rounded-full border border-red-300 dark:border-red-700 active:scale-90 transition-all duration-150",title:"Unmount All Personalities"},e[11]||(e[11]=[b("i",{"data-feather":"x-octagon",class:"w-4 h-4 text-red-600 dark:text-red-400 stroke-current"},null,-1)]))):ne("",!0)])]),b("div",DOr,[b("div",NOr,[e[13]||(e[13]=b("label",{for:"personality-search",class:"sr-only"},"Search",-1)),b("div",IOr,[e[12]||(e[12]=b("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[b("i",{"data-feather":"search",class:"w-5 h-5 text-blue-400 dark:text-blue-500"})],-1)),Ie(b("input",{type:"search",id:"personality-search",class:"input search-input block w-full p-3 pl-10 text-sm text-blue-900 dark:text-blue-100 placeholder-blue-500 dark:placeholder-blue-400 pr-24",placeholder:"Search name, author, description...","onUpdate:modelValue":e[2]||(e[2]=a=>i.searchTermInput=a),onKeyup:e[3]||(e[3]=Pr((...a)=>s.applySearch&&s.applySearch(...a),["enter"]))},null,544),[[vt,i.searchTermInput]]),b("div",HOr,[i.searchTermInput?(P(),D("button",{key:0,onClick:e[4]||(e[4]=oe((...a)=>s.clearSearch&&s.clearSearch(...a),["stop"])),type:"button",class:"btn btn-secondary btn-sm text-xs px-3 py-1.5"}," Clear ")):ne("",!0),b("button",{onClick:e[5]||(e[5]=oe((...a)=>s.applySearch&&s.applySearch(...a),["stop"])),type:"button",class:"btn btn-primary btn-sm text-xs px-3 py-1.5"}," Search ")])])]),b("div",VOr,[e[14]||(e[14]=b("label",{for:"persCat",class:"sr-only"},"Category",-1)),Ie(b("select",{id:"persCat","onUpdate:modelValue":e[6]||(e[6]=a=>i.selectedCategory=a),onChange:e[7]||(e[7]=(...a)=>s.handleCategoryChange&&s.handleCategoryChange(...a)),class:"input block w-full p-3 text-sm text-blue-900 dark:text-blue-100"},[b("option",qOr,"All Categories ("+le(i.allPersonalities.length)+")",1),b("option",UOr,"⬆️ Mounted ("+le(s.mountedPersArr.length)+")",1),s.starredPersonalitiesPaths.length>0?(P(),D("option",BOr,"⭐ Starred ("+le(s.getStarredCount())+")",1)):ne("",!0),(s.starredPersonalitiesPaths.length>0||s.mountedPersArr.length>0)&&i.persCatgArr.length>0?(P(),D("option",zOr,"──────────")):ne("",!0),(P(!0),D(He,null,lt(i.persCatgArr,(a,l)=>(P(),D("option",{key:l,value:a},le(a)+" ("+le(s.getCategoryCount(a))+") ",9,XOr))),128))],544),[[As,i.selectedCategory]])])]),i.isLoading&&i.allPersonalities.length===0?(P(),D("div",FOr,e[15]||(e[15]=[b("svg",{"aria-hidden":"true",class:"w-8 h-8 mr-2 text-blue-400 animate-spin dark:text-blue-500 fill-blue-600 dark:fill-blue-300",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),b("span",null,"Loading personalities...",-1)]))):!i.isLoading&&s.filteredPersonalities.length===0?(P(),D("div",jOr," No personalities found"+le(i.activeSearchTerm?' matching "'+i.activeSearchTerm+'"':"")+le(s.getResultMessageQualifier())+". ",1)):(P(),D("div",YOr,[b("label",GOr,le(s.getResultLabel())+": ("+le(s.filteredPersonalities.length)+") ",1),(P(),D("div",{key:i.selectedCategory+"-"+i.activeSearchTerm,class:"p-2 pb-0 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 bg-blue-100/50 dark:bg-blue-800/30 rounded-md"},[te(I4,{name:"list"},{default:Ve(()=>[(P(!0),D(He,null,lt(s.filteredPersonalities,a=>(P(),yt(o,{key:a.id||a.full_path,personality:a,select_language:!0,full_path:a.full_path,"is-mounted":a.isMounted,"is-active":s.isActivePersonality(a),"is-processing":a.isProcessing,"is-starred":a.isStarred,"base-url":i.bUrl,onSelect:s.onPersonalitySelected,onMount:s.mountPersonality,onUnmount:s.unmountPersonality,onRemount:s.remountPersonality,onEdit:s.editPersonality,onToggleStar:s.toggleStar,onCopyToCustom:s.onCopyToCustom,onReinstall:s.onPersonalityReinstall,onSettings:s.onSettingsPersonality,onCopyPersonalityName:s.onCopyPersonalityName,onOpenFolder:s.handleOpenFolder,onError:s.personalityImgPlaceholder},null,8,["personality","full_path","is-mounted","is-active","is-processing","is-starred","base-url","onSelect","onMount","onUnmount","onRemount","onEdit","onToggleStar","onCopyToCustom","onReinstall","onSettings","onCopyPersonalityName","onOpenFolder","onError"]))),128))]),_:1})]))],512))])}const ZOr=ct(yOr,[["render",WOr],["__scopeId","data-v-57acb6cf"]]),KOr="/assets/functioncall-Cm2fTSgb.png",JOr="/",emr={props:{function_call:{},select_language:Boolean,full_path:String,onOpenFolder:Function,onMount:Function,onUnMount:Function,onRemount:Function,onCopyToCustom:Function,onEdit:Function,onShowSettings:Function,onCopyfunction_callName:Function,onToggleFavorite:Function},components:{InteractiveMenu:GC},data(){return{mounted:!1,name:this.function_call.name,thumbnailVisible:!1,thumbnailPosition:{x:0,y:0},showHelpPopup:!1,renderedHelp:""}},computed:{commandsList(){let t=[{name:this.mounted?"unmount":"mount",icon:"feather:settings",is_file:!1,value:this.mounted?this.unmount:this.mount}];return console.log("this.category",this.function_call.category),this.function_call.category=="custom_personalities"?t.push({name:"edit",icon:"feather:settings",is_file:!1,value:this.edit}):t.push({name:"Copy to custom personas folder for editing",icon:"feather:copy",is_file:!1,value:this.copyToCustom}),this.mounted&&t.push({name:"remount",icon:"feather:refresh-ccw",is_file:!1,value:this.reMount}),t}},mounted(){this.mounted=this.function_call.mounted,console.log(this.function_call),Ge(()=>{Ne.replace()})},methods:{show_settings(){this.onShowSettings(this)},formatDate(t){const e={year:"numeric",month:"short",day:"numeric"};return new Date(t).toLocaleDateString(void 0,e)},showThumbnail(){this.thumbnailVisible=!0},hideThumbnail(){this.thumbnailVisible=!1},updateThumbnailPosition(t){this.thumbnailPosition={x:t.clientX+10,y:t.clientY+10}},getImgUrl(){return JOr+this.function_call.avatar},defaultImg(t){t.target.src=KOr},toggleFavorite(){this.onToggleFavorite(this)},showFolder(){this.onOpenFolder(this)},toggleCopyLink(){this.onCopyfunction_callName(this)},edit(){this.onEdit(this)},copyToCustom(){this.onCopyToCustom(this)},reMount(){this.onRemount(this)},mount(){console.log("Mounting"),this.onMount(this)},unmount(){console.log("Unmounting"),console.log(this.onUnMount),this.onUnMount(this),this.mounted=!1},showHelp(){this.renderedHelp=Jt(this.function_call.help),this.showHelpPopup=!0},closeHelp(){this.showHelpPopup=!1}},watch:{}},tmr=["title"],nmr={class:"flex-grow"},rmr={class:"flex items-center mb-4"},imr=["src"],smr={class:"font-bold text-xl text-gray-800 cursor-pointer"},omr={class:"text-sm text-gray-600"},amr={class:"text-sm text-gray-600"},lmr={class:"text-sm text-gray-600"},cmr={key:0,class:"text-sm text-gray-600"},umr={key:1,class:"text-sm text-gray-600"},dmr={class:"mb-4"},fmr=["innerHTML"],hmr={class:"mt-auto pt-4 border-t"},pmr={class:"flex justify-between items-center flex-wrap"},Tmr=["title"],Omr=["fill"],mmr=["src"],gmr={key:1,class:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center"},Qmr={class:"bg-white p-4 rounded-lg shadow-lg w-[500px] h-[400px] flex flex-col"},_mr={class:"flex justify-between items-center mb-2"},vmr={class:"flex-grow overflow-auto"},ymr=["innerHTML"];function bmr(t,e,n,r,i,s){const o=je("InteractiveMenu");return P(),D("div",{class:we(["app-card flex flex-col h-full",i.mounted?"border-primary-light":"border-transparent"]),title:n.function_call.installed?"":"Not installed"},[b("div",nmr,[b("div",rmr,[b("img",{src:s.getImgUrl(),onError:e[0]||(e[0]=a=>s.defaultImg(a)),alt:"function_call Icon",class:"w-16 h-16 rounded-full border border-gray-300 mr-4 cursor-pointer",onMouseover:e[1]||(e[1]=(...a)=>s.showThumbnail&&s.showThumbnail(...a)),onMousemove:e[2]||(e[2]=(...a)=>s.updateThumbnailPosition&&s.updateThumbnailPosition(...a)),onMouseleave:e[3]||(e[3]=(...a)=>s.hideThumbnail&&s.hideThumbnail(...a))},null,40,imr),b("div",null,[b("h3",smr,le(n.function_call.name),1),b("p",omr,"Author: "+le(n.function_call.author),1),b("p",amr,"Version: "+le(n.function_call.version),1),b("p",lmr,"Category: "+le(n.function_call.category),1),n.function_call.creation_date?(P(),D("p",cmr,"Creation Date: "+le(s.formatDate(n.function_call.creation_date)),1)):ne("",!0),n.function_call.last_update_date?(P(),D("p",umr,"Last update Date: "+le(s.formatDate(n.function_call.last_update_date)),1)):ne("",!0)]),n.function_call.help?(P(),D("button",{key:0,onClick:e[4]||(e[4]=(...a)=>s.showHelp&&s.showHelp(...a)),class:"ml-2 text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",title:"Help"},e[9]||(e[9]=[b("i",{"data-feather":"help-circle",class:"h-6 w-6"},null,-1)]))):ne("",!0)]),b("div",dmr,[e[10]||(e[10]=b("h4",{class:"font-semibold mb-1 text-gray-700"},"Description:",-1)),b("p",{class:"text-sm text-gray-600 h-20 overflow-y-auto",innerHTML:n.function_call.description},null,8,fmr)])]),b("div",hmr,[b("div",pmr,[b("button",{onClick:e[5]||(e[5]=(...a)=>s.toggleFavorite&&s.toggleFavorite(...a)),class:"text-yellow-500 hover:text-yellow-600 transition duration-300 ease-in-out",title:t.isFavorite?"Remove from favorites":"Add to favorites"},[(P(),D("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:t.isFavorite?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor"},e[11]||(e[11]=[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"},null,-1)]),8,Omr))],8,Tmr),b("button",{onClick:e[6]||(e[6]=(...a)=>s.showFolder&&s.showFolder(...a)),class:"text-purple-500 hover:text-purple-600 transition duration-300 ease-in-out",title:"Show Folder"},e[12]||(e[12]=[b("i",{"data-feather":"folder",class:"h-6 w-6"},null,-1)])),i.mounted?(P(),D("button",{key:0,onClick:e[7]||(e[7]=(...a)=>s.show_settings&&s.show_settings(...a)),class:"text-green-500 hover:text-green-600 transition duration-300 ease-in-out",title:"Settings"},e[13]||(e[13]=[b("i",{"data-feather":"settings",class:"h-6 w-6"},null,-1)]))):ne("",!0),te(o,{commands:s.commandsList,force_position:2,title:"Menu",class:"text-gray-500 hover:text-gray-600 transition duration-300 ease-in-out"},null,8,["commands"])])]),i.thumbnailVisible?(P(),D("div",{key:0,style:qn({top:i.thumbnailPosition.y+"px",left:i.thumbnailPosition.x+"px"}),class:"fixed z-50 w-20 h-20 rounded-full overflow-hidden"},[b("img",{src:s.getImgUrl(),class:"w-full h-full object-fill"},null,8,mmr)],4)):ne("",!0),i.showHelpPopup?(P(),D("div",gmr,[b("div",Qmr,[b("div",_mr,[e[14]||(e[14]=b("h2",{class:"text-lg font-bold"},"Help",-1)),b("button",{onClick:e[8]||(e[8]=(...a)=>s.closeHelp&&s.closeHelp(...a)),class:"text-red-500 hover:text-red-600"},"Close")]),b("div",vmr,[b("div",{innerHTML:i.renderedHelp},null,8,ymr)])])])):ne("",!0)],10,tmr)}const Smr=ct(emr,[["render",bmr]]),xmr="/assets/default_function-CyfcuNmo.png";function Emr(t,e){let n;return function(...i){const s=()=>{clearTimeout(n),t.apply(this,i)};clearTimeout(n),n=setTimeout(s,e)}}const wmr={name:"FunctionCallsZoo",components:{FunctionEntry:Smr},props:{config:{type:Object,required:!0},api_post_req:{type:Function,required:!0},api_get_req:{type:Function,required:!0},show_toast:{type:Function,required:!0},show_yes_no_dialog:{type:Function,required:!0},show_universal_form:{type:Function,required:!0},show_message_box:{type:Function,required:!0},client_id:{type:String,required:!0}},emits:["update:setting"],data(){return{allFunctions:[],categoriesFunc:[],filteredFunctions:[],pagedFunctions:[],isLoadingFunctions:!1,isSearchingFunc:!1,searchTermFunc:"",selectedCategoryFunc:"",sortOptionFunc:"mounted",itemsPerPageFunc:15,currentPageFunc:1,maxDisplayedMountedFunc:7,functionEntryRefs:{},observerFunc:null,defaultIcon:xmr,axiosBaseUrl:$e.defaults.baseURL||""}},computed:{mountedFunctionPathsSet(){var t;return new Set(((t=this.config)==null?void 0:t.mounted_functions)||[])},mountedFunctions(){return this.allFunctions.filter(t=>this.mountedFunctionPathsSet.has(t.full_path))},displayedMountedFunctions(){return[...this.mountedFunctions].sort((e,n)=>(e.name||"").localeCompare(n.name||"")).slice(0,this.maxDisplayedMountedFunc)},hasMoreFunctionsToLoad(){return this.pagedFunctions.length{const i=e.has(r.full_path);r.isMounted!==i&&(r.isMounted=i,n=!0)}),n&&(console.log("Watcher: Re-applying filters and sort due to mounted status change."),this.resetAndReloadFunctions()),this.featherReplace()},deep:!0},searchTermFunc(){this.debouncedResetAndReload()},selectedCategoryFunc(){this.debouncedResetAndReload()},sortOptionFunc(){this.debouncedResetAndReload()},allFunctions:{handler(){console.log("Watcher: allFunctions list changed. Triggering initial load."),this.resetAndReloadFunctions()}}},methods:{getFunctionIcon(t){return t?t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")?t.startsWith("/")?`${this.axiosBaseUrl}${t}`:t:`${this.axiosBaseUrl}/${t}`:this.defaultIcon},imgPlaceholder(t){t.target.src=this.defaultIcon},featherReplace(){this.$nextTick(()=>{try{Ne.replace()}catch(t){console.error("Feather replace error:",t)}})},setFunctionRef(t,e){e&&(this.functionEntryRefs[t]=e)},async fetchFunctionsAndCategories(){if(!this.isLoadingFunctions){this.isLoadingFunctions=!0,console.log("Fetching functions and categories...");try{const t=await this.api_get_req("list_function_calls"),e=(t==null?void 0:t.function_calls)||[],n=new Set(e.map(r=>r.category).filter(Boolean));this.categoriesFunc=Array.from(n).sort(),this.allFunctions=e.map(r=>{const i=`${r.category}/${r.name}`,s=r.id||i;return{...r,full_path:i,isMounted:!1,id:s,isProcessing:!1}}),console.log(`Fetched ${this.allFunctions.length} total functions.`),this.$nextTick(()=>{var r;(r=this.config)!=null&&r.mounted_functions&&this.watch["config.mounted_functions"].handler.call(this,this.config.mounted_functions)})}catch(t){this.show_toast("Failed to load functions list.",4,!1),console.error("Error fetching functions:",t),this.allFunctions=[],this.categoriesFunc=[]}finally{this.isLoadingFunctions=!1}}},applyFiltersAndSortFunc(){console.time("FilterSortFunctions");let t=[...this.allFunctions];if(this.selectedCategoryFunc&&(t=t.filter(e=>e.category===this.selectedCategoryFunc)),this.searchTermFunc){const e=this.searchTermFunc.toLowerCase();t=t.filter(n=>{var c,u,d,f,h;const r=(c=n.name)==null?void 0:c.toLowerCase().includes(e),i=(u=n.author)==null?void 0:u.toLowerCase().includes(e),s=(d=n.description)==null?void 0:d.toLowerCase().includes(e),o=(f=n.category)==null?void 0:f.toLowerCase().includes(e),a=(h=n.full_path)==null?void 0:h.toLowerCase().includes(e),l=Array.isArray(n.keywords)?n.keywords.some(p=>p.toLowerCase().includes(e)):!1;return r||i||s||o||a||l})}t.sort((e,n)=>{if(this.sortOptionFunc==="mounted"){if(e.isMounted&&!n.isMounted)return-1;if(!e.isMounted&&n.isMounted)return 1}switch(this.sortOptionFunc!=="mounted"?this.sortOptionFunc:"name"){case"name":return(e.name||"").localeCompare(n.name||"");case"author":return(e.author||"").localeCompare(n.author||"");case"category":return(e.category||"").localeCompare(n.category||"");default:return 0}}),this.filteredFunctions=t,console.timeEnd("FilterSortFunctions"),console.log(`Filtered/Sorted functions: ${this.filteredFunctions.length}`)},resetAndReloadFunctions(){this.currentPageFunc=1,this.pagedFunctions=[],this.applyFiltersAndSortFunc(),this.$nextTick(()=>{this.loadMoreFunctions()})},debouncedResetAndReload:Emr(function(){this.isSearchingFunc=!0,this.resetAndReloadFunctions(),setTimeout(()=>{this.isSearchingFunc=!1},100)},300),loadMoreFunctions(){if(this.isLoadingFunctions||this.isSearchingFunc||!this.hasMoreFunctionsToLoad)return;console.log(`Loading page ${this.currentPageFunc}`);const t=(this.currentPageFunc-1)*this.itemsPerPageFunc,e=t+this.itemsPerPageFunc,n=this.filteredFunctions.slice(t,e),r=new Set(this.pagedFunctions.map(s=>s.id||s.full_path)),i=n.filter(s=>!r.has(s.id||s.full_path));i.length>0?(this.pagedFunctions.push(...i),this.currentPageFunc++,this.featherReplace()):n.length>0&&console.log("Load more triggered but items already seem to be loaded.")},setFunctionProcessing(t,e){const n=s=>{s&&(s.isProcessing=e)},r=this.allFunctions.findIndex(s=>(s.id||s.full_path)===t);n(this.allFunctions[r]);const i=this.pagedFunctions.findIndex(s=>(s.id||s.full_path)===t);n(this.pagedFunctions[i])},async handleMount(t){if(t.isMounted||t.isProcessing)return;const e=t.id||t.full_path;this.setFunctionProcessing(e,!0),this.show_toast(`Mounting ${t.name}...`,3,!0);try{const n=await this.api_post_req("mount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});if(n&&n.status){this.show_toast(`${t.name} mounted successfully.`,4,!0);const r=[...this.mountedFunctionPathsSet,t.full_path];this.$emit("update:setting",{key:"mounted_functions",value:r})}else this.show_toast(`Failed to mount ${t.name}: ${(n==null?void 0:n.error)||"Error"}`,4,!1)}catch(n){this.show_toast(`Error mounting ${t.name}: ${n.message||n}`,4,!1),console.error("Mount error:",n)}finally{this.setFunctionProcessing(e,!1)}},async handleUnmount(t){var n;if(!t.isMounted||t.isProcessing)return;const e=t.id||t.full_path;this.setFunctionProcessing(e,!0),this.show_toast(`Unmounting ${t.name}...`,3,!0);try{const r=await this.api_post_req("unmount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});if(r&&r.status){this.show_toast(`${t.name} unmounted.`,4,!0);const i=(((n=this.config)==null?void 0:n.mounted_functions)||[]).filter(s=>s!==t.full_path);this.$emit("update:setting",{key:"mounted_functions",value:i})}else this.show_toast(`Failed to unmount ${t.name}: ${(r==null?void 0:r.error)||"Error"}`,4,!1)}catch(r){this.show_toast(`Error unmounting ${t.name}: ${r.message||r}`,4,!1),console.error("Unmount error:",r)}finally{this.setFunctionProcessing(e,!1)}},async unmountAll(){if(!(this.mountedFunctions.length===0||!await this.show_yes_no_dialog(`Unmount all ${this.mountedFunctions.length} functions?`,"Unmount All","Cancel"))){this.show_toast("Unmounting all functions...",3,!0),this.mountedFunctions.forEach(e=>this.setFunctionProcessing(e.id||e.full_path,!0));try{const e=await this.api_post_req("unmount_all_functions",{client_id:this.client_id});e&&e.status?(this.show_toast("All functions unmounted.",4,!0),this.$emit("update:setting",{key:"mounted_functions",value:[]})):(this.show_toast(`Failed to unmount all: ${(e==null?void 0:e.error)||"Error"}`,4,!1),this.mountedFunctions.forEach(n=>this.setFunctionProcessing(n.id||n.full_path,!1)))}catch(e){this.show_toast(`Error unmounting all: ${e.message||e}`,4,!1),console.error("Unmount all error:",e),this.mountedFunctions.forEach(n=>this.setFunctionProcessing(n.id||n.full_path,!1))}}},async handleRemount(t){const e=t.id||t.full_path;if(!t.isProcessing){this.setFunctionProcessing(e,!0),this.show_toast(`Remounting ${t.name}...`,3,!0);try{let n=[...this.config.mounted_functions||[]];if(n.includes(t.full_path)){const s=await this.api_post_req("unmount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});if(!s||!s.status){this.show_toast(`Failed to unmount ${t.name} during remount. Aborting.`,4,!1),this.setFunctionProcessing(e,!1);return}n=n.filter(o=>o!==t.full_path),this.$emit("update:setting",{key:"mounted_functions",value:n}),await Ge(),console.log("Remount Step 1: Unmounted and emitted.")}const i=await this.api_post_req("mount_function_call",{client_id:this.client_id,function_category:t.category,function_name:t.name});i&&i.status?(this.show_toast(`${t.name} remounted successfully.`,4,!0),n.includes(t.full_path)||n.push(t.full_path),this.$emit("update:setting",{key:"mounted_functions",value:n}),console.log("Remount Step 2: Mounted and emitted.")):this.show_toast(`Failed to mount ${t.name} during remount: ${(i==null?void 0:i.error)||"Error"}`,4,!1)}catch(n){this.show_toast(`Error remounting ${t.name}: ${n.message||n}`,4,!1),console.error("Remount error:",n)}finally{this.setFunctionProcessing(e,!1)}}},async handleSettings(t){if(t.isProcessing)return;const e=t.id||t.full_path;this.setFunctionProcessing(e,!0);try{const n=await this.api_post_req("get_function_call_settings",{client_id:this.client_id,category:t.category,name:t.name});if(n&&typeof n=="object"&&Object.keys(n).length>0){const r=await this.show_universal_form(n,`Function Settings - ${t.name}`,"Save","Cancel");if(r!=null){const i=await this.api_post_req("set_function_call_settings",{client_id:this.client_id,category:t.category,name:t.name,settings:r});i&&i.status?this.show_toast(`Settings for ${t.name} updated.`,4,!0):this.show_toast(`Failed to update settings for ${t.name}: ${(i==null?void 0:i.error)||"Error"}`,4,!1)}else this.show_toast(`Settings update for ${t.name} cancelled.`,3,!0)}else n&&typeof n=="object"&&Object.keys(n).length===0?this.show_message_box(`Function "${t.name}" has no configurable settings.`):this.show_toast(`Could not retrieve settings for ${t.name}: ${(n==null?void 0:n.error)||"Invalid response"}`,4,!1)}catch(n){this.show_toast(`Error accessing settings for ${t.name}: ${n.message||n}`,4,!1),console.error("Settings error:",n)}finally{this.setFunctionProcessing(e,!1)}},async handleEdit(t){this.show_toast(`Opening folder containing "${t.name}" for editing...`,3,!0),await this.handleOpenFolder(t)},async handleCopyToCustom(t){if(!await this.show_yes_no_dialog(`Copy "${t.name}" from "${t.category}" to your 'custom_functions' folder?`,"Copy","Cancel")||t.isProcessing)return;const n=t.id||t.full_path;this.setFunctionProcessing(n,!0);try{const r=await this.api_post_req("copy_to_custom_functions",{client_id:this.client_id,category:t.category,name:t.name});r&&r.status?(this.show_message_box(`Function "${t.name}" copied to 'custom_functions'. The list will refresh shortly.`),await this.fetchFunctionsAndCategories()):this.show_toast(`Failed to copy ${t.name}: ${(r==null?void 0:r.error)||"Already exists in custom?"}`,4,!1)}catch(r){this.show_toast(`Error copying ${t.name}: ${r.message||r}`,4,!1),console.error("Copy to custom error:",r)}finally{this.setFunctionProcessing(n,!1)}},handleCopyName(t){navigator.clipboard.writeText(t.name).then(()=>this.show_toast(`Copied name: ${t.name}`,3,!0)).catch(e=>{this.show_toast("Failed to copy name to clipboard.",3,!1),console.error("Clipboard copy failed:",e)})},async handleOpenFolder(t){try{await this.api_post_req("open_function_folder",{client_id:this.client_id,category:t.category,name:t.name})}catch(e){this.show_toast(`Error opening folder for ${t.name}: ${e.message||e}`,4,!1),console.error("Open folder error:",e)}},scrollToFunction(t){const e=t.id||t.full_path,n=this.functionEntryRefs[e];if(n&&n.$el){const r=n.$el;r.scrollIntoView({behavior:"smooth",block:"center"}),r.classList.add("ring-2","ring-offset-2","ring-blue-500","dark:ring-offset-gray-800","transition-all","duration-1000","ease-out"),setTimeout(()=>{r.classList.remove("ring-2","ring-offset-2","ring-blue-500","dark:ring-offset-gray-800","transition-all","duration-1000","ease-out")},1500)}else console.warn(`Could not find ref $el to scroll to for function ID: ${e}. Is it loaded?`),this.hasMoreFunctionsToLoad&&!this.pagedFunctions.some(r=>(r.id||r.full_path)===e)?(this.show_toast(`Function ${t.name} not visible, attempting to load more...`,3,!0),this.loadMoreFunctions(),setTimeout(()=>this.scrollToFunction(t),500)):this.show_toast(`Could not scroll to ${t.name}.`,3,!1)},setupIntersectionObserverFunc(){this.disconnectIntersectionObserver();const t={root:null,rootMargin:"100px",threshold:.1};this.observerFunc=new IntersectionObserver(n=>{n.forEach(r=>{r.isIntersecting&&this.hasMoreFunctionsToLoad&&this.loadMoreFunctions()})},t);const e=this.$refs.loadMoreTriggerFunc;e?(this.observerFunc.observe(e),console.log("IntersectionObserver setup complete.")):this.$nextTick(()=>{const n=this.$refs.loadMoreTriggerFunc;n?(this.observerFunc.observe(n),console.log("IntersectionObserver setup complete (nextTick).")):console.error("Load more trigger element not found for IntersectionObserver setup.")})},disconnectIntersectionObserver(){if(this.observerFunc){console.log("Disconnecting IntersectionObserver.");const t=this.$refs.loadMoreTriggerFunc;if(t)try{this.observerFunc.unobserve(t)}catch(e){console.warn("Error unobserving trigger:",e)}this.observerFunc.disconnect(),this.observerFunc=null}}},mounted(){console.log("FunctionCallsZoo Mounted."),this.fetchFunctionsAndCategories(),this.featherReplace(),this.$nextTick(()=>{this.setupIntersectionObserverFunc()})},beforeUpdate(){this.functionEntryRefs={}},updated(){this.featherReplace(),this.$nextTick(()=>{const t=this.$refs.loadMoreTriggerFunc;if(t&&this.observerFunc&&!this.observerFunc.takeRecords().some(e=>e.target===t)){console.warn("IntersectionObserver detached from trigger, re-observing.");try{this.observerFunc.unobserve(t)}catch{}this.observerFunc.observe(t)}else t&&!this.observerFunc&&(console.warn("IntersectionObserver lost, re-setting up."),this.setupIntersectionObserverFunc())})},unmounted(){console.log("FunctionCallsZoo Unmounted."),this.disconnectIntersectionObserver()}},Cmr={class:"user-settings-panel space-y-6 p-4 md:p-6 rounded-lg shadow-md bg-white dark:bg-gray-800"},Lmr={class:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-blue-300 dark:border-blue-600 pb-3 mb-4"},Amr={class:"flex flex-col items-end"},$mr={class:"flex items-center flex-wrap gap-2 text-sm font-medium mb-1"},kmr={key:0,class:"text-blue-500 dark:text-blue-500 italic text-xs"},Pmr={key:1,class:"flex -space-x-3 items-center"},Rmr=["src","title","onClick"],Mmr=["onClick"],Dmr=["title"],Nmr={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4 items-center"},Imr={class:"relative md:col-span-1"},Hmr={key:0,class:"absolute inset-y-0 right-0 pr-3 flex items-center"},Vmr={class:"md:col-span-1"},qmr=["value"],Umr={class:"md:col-span-1"},Bmr={key:0,class:"flex justify-center items-center p-10 text-blue-500 dark:text-blue-400"},zmr={key:1,class:"text-center text-blue-500 dark:text-blue-400 py-10"},Xmr={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 scrollbar-thin scrollbar-thumb-blue-300 scrollbar-track-blue-100 dark:scrollbar-thumb-blue-700 dark:scrollbar-track-blue-900",ref:"scrollContainerFunc"},Fmr={ref:"loadMoreTriggerFunc",class:"h-10"},jmr={key:0,class:"flex justify-center items-center text-center text-blue-500 dark:text-blue-400 py-4"};function Ymr(t,e,n,r,i,s){const o=je("FunctionEntry");return P(),D("div",Cmr,[b("div",Lmr,[e[9]||(e[9]=b("h2",{class:"text-2xl font-semibold text-blue-800 dark:text-blue-100 mb-2 sm:mb-0"}," Function Calls Zoo ",-1)),b("div",Amr,[b("div",$mr,[e[7]||(e[7]=b("span",{class:"text-blue-600 dark:text-blue-400"},"Mounted:",-1)),s.mountedFunctions.length===0?(P(),D("div",kmr,"None")):(P(),D("div",Pmr,[(P(!0),D(He,null,lt(s.displayedMountedFunctions,(a,l)=>(P(),D("div",{key:`mounted-${a.id||a.full_path||l}`,class:"relative group"},[b("img",{src:s.getFunctionIcon(a.icon),onError:e[0]||(e[0]=(...c)=>s.imgPlaceholder&&s.imgPlaceholder(...c)),class:"w-7 h-7 rounded-full object-cover ring-2 ring-white dark:ring-gray-700 cursor-pointer hover:ring-blue-500 dark:hover:ring-blue-400 transition-all",title:`${a.name} (${a.category})`,onClick:c=>s.scrollToFunction(a)},null,40,Rmr),b("button",{onClick:oe(c=>s.handleUnmount(a),["stop"]),class:"absolute -top-1 -right-1 p-0.5 rounded-full bg-red-600 text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-1 dark:focus:ring-offset-gray-900",title:"Unmount"},e[6]||(e[6]=[b("i",{"data-feather":"x",class:"w-3 h-3 stroke-current"},null,-1)]),8,Mmr)]))),128)),s.mountedFunctions.length>i.maxDisplayedMountedFunc?(P(),D("div",{key:0,class:"w-7 h-7 rounded-full bg-blue-200 dark:bg-blue-700 ring-2 ring-white dark:ring-gray-700 flex items-center justify-center text-xs font-semibold text-blue-600 dark:text-blue-300",title:`${s.mountedFunctions.length-i.maxDisplayedMountedFunc} more mounted`}," +"+le(s.mountedFunctions.length-i.maxDisplayedMountedFunc),9,Dmr)):ne("",!0)]))]),s.mountedFunctions.length>0?(P(),D("button",{key:0,onClick:e[1]||(e[1]=(...a)=>s.unmountAll&&s.unmountAll(...a)),class:"btn btn-sm bg-red-600 hover:bg-red-700 text-white text-xs mt-1 focus:ring-red-300 dark:focus:ring-red-600"},e[8]||(e[8]=[b("i",{"data-feather":"x-octagon",class:"w-3 h-3 mr-1 stroke-current"},null,-1),be("Unmount All ")]))):ne("",!0)])]),e[18]||(e[18]=b("p",{class:"text-sm text-blue-600 dark:text-blue-400"}," Mount functions to grant the AI specific capabilities and tools it can use during conversations. Requires a model trained for function calling. ",-1)),b("div",Nmr,[b("div",Imr,[e[11]||(e[11]=b("div",{class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},[b("i",{"data-feather":"search",class:"w-5 h-5 text-blue-400 dark:text-blue-500"})],-1)),Ie(b("input",{type:"search","onUpdate:modelValue":e[2]||(e[2]=a=>i.searchTermFunc=a),placeholder:"Search functions...",class:"input pl-10 w-full placeholder:text-blue-400 dark:placeholder:text-blue-500",onInput:e[3]||(e[3]=(...a)=>t.debounceSearchFunc&&t.debounceSearchFunc(...a))},null,544),[[vt,i.searchTermFunc]]),i.isSearchingFunc?(P(),D("div",Hmr,e[10]||(e[10]=[b("svg",{"aria-hidden":"true",class:"w-5 h-5 text-blue-400 dark:text-blue-500 animate-spin fill-blue-500 dark:fill-blue-400",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)]))):ne("",!0)]),b("div",Vmr,[e[13]||(e[13]=b("label",{for:"func-category",class:"sr-only"},"Filter by Category",-1)),Ie(b("select",{id:"func-category","onUpdate:modelValue":e[4]||(e[4]=a=>i.selectedCategoryFunc=a),class:"input w-full"},[e[12]||(e[12]=b("option",{value:""},"All Categories",-1)),(P(!0),D(He,null,lt(i.categoriesFunc,a=>(P(),D("option",{key:a,value:a},le(a),9,qmr))),128))],512),[[As,i.selectedCategoryFunc]])]),b("div",Umr,[e[15]||(e[15]=b("label",{for:"func-sort",class:"sr-only"},"Sort functions by",-1)),Ie(b("select",{id:"func-sort","onUpdate:modelValue":e[5]||(e[5]=a=>i.sortOptionFunc=a),class:"input w-full"},e[14]||(e[14]=[b("option",{value:"mounted"},"Sort by Mounted",-1),b("option",{value:"name"},"Sort by Name",-1),b("option",{value:"author"},"Sort by Author",-1),b("option",{value:"category"},"Sort by Category",-1)]),512),[[As,i.sortOptionFunc]])])]),i.isLoadingFunctions?(P(),D("div",Bmr,e[16]||(e[16]=[b("svg",{"aria-hidden":"true",class:"w-8 h-8 mr-2 text-blue-300 dark:text-blue-600 animate-spin fill-blue-500 dark:fill-blue-400",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),b("span",null,"Loading functions...",-1)]))):i.pagedFunctions.length===0&&i.filteredFunctions.length===0?(P(),D("div",zmr," No functions found"+le(i.searchTermFunc?' matching "'+i.searchTermFunc+'"':"")+le(i.selectedCategoryFunc?' in category "'+i.selectedCategoryFunc+'"':"")+". ",1)):ne("",!0),b("div",Xmr,[(P(!0),D(He,null,lt(i.pagedFunctions,a=>(P(),yt(o,{key:a.id||a.full_path,ref_for:!0,ref:l=>s.setFunctionRef(a.id||a.full_path,l),function_call:a,"is-mounted":a.isMounted,"is-processing":a.isProcessing,"get-icon-url":s.getFunctionIcon,"on-img-error":s.imgPlaceholder,onMount:l=>s.handleMount(a),onUnmount:l=>s.handleUnmount(a),onRemount:l=>s.handleRemount(a),onShowSettings:l=>s.handleSettings(a),onEdit:l=>s.handleEdit(a),onCopyToCustom:l=>s.handleCopyToCustom(a),onCopyName:l=>s.handleCopyName(a),onOpenFolder:l=>s.handleOpenFolder(a)},null,8,["function_call","is-mounted","is-processing","get-icon-url","on-img-error","onMount","onUnmount","onRemount","onShowSettings","onEdit","onCopyToCustom","onCopyName","onOpenFolder"]))),128))],512),b("div",Fmr,[s.hasMoreFunctionsToLoad&&!i.isLoadingFunctions&&!i.isSearchingFunc?(P(),D("div",jmr,e[17]||(e[17]=[b("svg",{"aria-hidden":"true",class:"w-5 h-5 mr-2 text-blue-300 dark:text-blue-600 animate-spin fill-blue-500 dark:fill-blue-400",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),be(),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),b("span",null,"Loading more...",-1)]))):ne("",!0)],512)])}const Gmr=ct(wmr,[["render",Ymr],["__scopeId","data-v-8ff7e3ea"]]),Wmr={name:"ModelConfigSettings",components:{ToggleSwitch:zu},props:{config:{type:Object,required:!0},loading:{type:Boolean,default:!1}},emits:["setting-updated"],computed:{isDisabled(){return!this.config.override_personality_model_parameters}},methods:{updateValue(t,e){this.$emit("setting-updated",{key:t,value:e})},handleNumberInput(t,e,n=!1){let r=n?parseInt(e):parseFloat(e);if(t==="seed"){if(String(e)==="-")return;(isNaN(r)||r<-1)&&(r=-1)}else if(isNaN(r)){console.warn(`Attempted to set invalid number for ${t}:`,e);return}this.updateValue(t,r)},replaceFeatherIcons(){Ge(()=>{try{Ne.replace()}catch{}})}},mounted(){this.replaceFeatherIcons()},updated(){this.replaceFeatherIcons()}},Zmr={class:"user-settings-panel space-y-6"},Kmr={class:"toggle-item !justify-start gap-4 border border-blue-200 dark:border-blue-700 rounded-lg p-3 panels-color"},Jmr={class:"setting-item"},egr=["value","disabled"],tgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ngr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},rgr=["value","disabled"],igr=["value","disabled"],sgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ogr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},agr=["value","disabled"],lgr=["value","disabled"],cgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ugr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},dgr=["value","disabled"],fgr=["value","disabled"],hgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},pgr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},Tgr=["value","disabled"],Ogr=["value","disabled"],mgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ggr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},Qgr=["value","disabled"],_gr=["value","disabled"],vgr={class:"setting-item items-start md:items-center border-t border-blue-200 dark:border-blue-700 pt-4 mt-4"},ygr={class:"flex-1 flex flex-col sm:flex-row items-center gap-4 w-full"},bgr=["value","disabled"],Sgr=["value","disabled"];function xgr(t,e,n,r,i,s){const o=je("ToggleSwitch");return P(),D("div",Zmr,[e[22]||(e[22]=b("h2",{class:"text-xl font-semibold text-blue-800 dark:text-blue-100 border-b border-blue-300 dark:border-blue-600 pb-2"}," Model Generation Parameters ",-1)),e[23]||(e[23]=b("p",{class:"text-sm text-blue-600 dark:text-blue-400 mb-4"}," Adjust the core parameters that influence how the AI generates text. These settings can be overridden by specific personalities unless the option below is checked. ",-1)),b("div",Kmr,[te(o,{id:"override_personality_model_parameters",checked:n.config.override_personality_model_parameters,"onUpdate:checked":e[0]||(e[0]=a=>s.updateValue("override_personality_model_parameters",a))},null,8,["checked"]),e[14]||(e[14]=b("label",{for:"override_personality_model_parameters",class:"toggle-label !flex-none"},[be(" Override Personality Parameters "),b("span",{class:"toggle-description"},"Force the use of these global parameters, ignoring any settings defined within the selected personality.")],-1))]),b("div",{class:we(["space-y-5 pt-4",s.isDisabled?"opacity-50 pointer-events-none":""])},[b("div",Jmr,[e[15]||(e[15]=To('',1)),b("input",{type:"number",id:"seed",value:n.config.seed,onInput:e[1]||(e[1]=a=>s.handleNumberInput("seed",a.target.value,!0)),class:"input-sm w-full md:w-32",step:"1",placeholder:"-1",disabled:s.isDisabled},null,40,egr)]),b("div",tgr,[e[16]||(e[16]=To('',1)),b("div",ngr,[b("input",{id:"temperature-range",value:n.config.temperature,onInput:e[2]||(e[2]=a=>s.handleNumberInput("temperature",a.target.value)),type:"range",min:"0",max:"2",step:"0.01",class:"range-input flex-grow",disabled:s.isDisabled},null,40,rgr),b("input",{id:"temperature-number",value:n.config.temperature,onInput:e[3]||(e[3]=a=>s.handleNumberInput("temperature",a.target.value)),type:"number",min:"0",max:"2",step:"0.01",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,igr)])]),b("div",sgr,[e[17]||(e[17]=To('',1)),b("div",ogr,[b("input",{id:"n_predict-range",value:n.config.n_predict,onInput:e[4]||(e[4]=a=>s.handleNumberInput("n_predict",a.target.value,!0)),type:"range",min:"32",max:"8192",step:"32",class:"range-input flex-grow",disabled:s.isDisabled},null,40,agr),b("input",{id:"n_predict-number",value:n.config.n_predict,onInput:e[5]||(e[5]=a=>s.handleNumberInput("n_predict",a.target.value,!0)),type:"number",min:"32",max:"8192",step:"32",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,lgr)])]),b("div",cgr,[e[18]||(e[18]=To('',1)),b("div",ugr,[b("input",{id:"top_k-range",value:n.config.top_k,onInput:e[6]||(e[6]=a=>s.handleNumberInput("top_k",a.target.value,!0)),type:"range",min:"0",max:"100",step:"1",class:"range-input flex-grow",disabled:s.isDisabled},null,40,dgr),b("input",{id:"top_k-number",value:n.config.top_k,onInput:e[7]||(e[7]=a=>s.handleNumberInput("top_k",a.target.value,!0)),type:"number",min:"0",max:"100",step:"1",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,fgr)])]),b("div",hgr,[e[19]||(e[19]=To('',1)),b("div",pgr,[b("input",{id:"top_p-range",value:n.config.top_p,onInput:e[8]||(e[8]=a=>s.handleNumberInput("top_p",a.target.value)),type:"range",min:"0",max:"1",step:"0.01",class:"range-input flex-grow",disabled:s.isDisabled},null,40,Tgr),b("input",{id:"top_p-number",value:n.config.top_p,onInput:e[9]||(e[9]=a=>s.handleNumberInput("top_p",a.target.value)),type:"number",min:"0",max:"1",step:"0.01",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,Ogr)])]),b("div",mgr,[e[20]||(e[20]=To('',1)),b("div",ggr,[b("input",{id:"repeat_penalty-range",value:n.config.repeat_penalty,onInput:e[10]||(e[10]=a=>s.handleNumberInput("repeat_penalty",a.target.value)),type:"range",min:"0.5",max:"2.0",step:"0.01",class:"range-input flex-grow",disabled:s.isDisabled},null,40,Qgr),b("input",{id:"repeat_penalty-number",value:n.config.repeat_penalty,onInput:e[11]||(e[11]=a=>s.handleNumberInput("repeat_penalty",a.target.value)),type:"number",min:"0.5",max:"2.0",step:"0.01",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,_gr)])]),b("div",vgr,[e[21]||(e[21]=To('',1)),b("div",ygr,[b("input",{id:"repeat_last_n-range",value:n.config.repeat_last_n,onInput:e[12]||(e[12]=a=>s.handleNumberInput("repeat_last_n",a.target.value,!0)),type:"range",min:"0",max:"512",step:"8",class:"range-input flex-grow",disabled:s.isDisabled},null,40,bgr),b("input",{id:"repeat_last_n-number",value:n.config.repeat_last_n,onInput:e[13]||(e[13]=a=>s.handleNumberInput("repeat_last_n",a.target.value,!0)),type:"number",min:"0",max:"512",step:"8",class:"input-sm w-24 text-center",disabled:s.isDisabled},null,40,Sgr)])])],2)])}const Egr=ct(Wmr,[["render",xgr],["__scopeId","data-v-1dc5e8f0"]]);$e.defaults.baseURL="/";const X8={accept:"application/json","Content-Type":"application/json"},wgr={name:"SettingsView",components:{SettingsSidebar:Pur},data(){return{isLoading:!1,settingsChanged:!1,has_updates:!1,activeSection:"system_status",loading_text:"Loading settings...",editableConfig:null,sections:[{id:"system_status",name:"System Status",icon:"activity",component:rs(_6r)},{id:"main_config",name:"Main Config",icon:"sliders",component:rs(kfr)},{id:"model_config",name:"Model Parameters",icon:"cpu",component:rs(Egr)},{id:"smart_routing",name:"Smart Routing",icon:"git-branch",component:rs(G6r)},{id:"data_management",name:"Data Management",icon:"database",component:rs(T8r)},{id:"internet",name:"Internet",icon:"wifi",component:rs(N8r)},{id:"services_zoo",name:"Services Zoo",icon:"server",component:rs(U9r)},{id:"binding_zoo",name:"Bindings Zoo",icon:"link",component:rs(Ihr)},{id:"models_zoo",name:"Models Zoo",icon:"package",component:rs(VTr)},{id:"personalities_zoo",name:"Personalities Zoo",icon:"users",component:rs(ZOr)},{id:"function_calls_zoo",name:"Function Calls Zoo",icon:"tool",component:rs(Gmr)}]}},computed:{configToEdit(){return this.editableConfig??this.$store.state.config},currentComponent(){const t=this.sections.find(e=>e.id===this.activeSection);return t?t.component:null}},methods:{deepClone(t){if(t===null||typeof t!="object")return t;if(t instanceof Date)return new Date(t.getTime());if(Array.isArray(t)){const n=[];for(let r=0;r{e&&(this.cancelConfiguration(!1),this.activeSection=t)}):this.activeSection=t},handleSettingUpdated(t){this.editableConfig||(this.editableConfig=this.deepClone(this.$store.state.config));const e=t.key.split(".");let n=this.editableConfig;try{for(;e.length>1;){const a=e.shift(),l=a.match(/^(\w+)\[(\d+)\]$/);let c=a,u=-1;if(l&&(c=l[1],u=parseInt(l[2],10)),!n||typeof n!="object"||!n.hasOwnProperty(c))throw new Error(`Invalid path segment: ${c}`);if(u!==-1){if(!Array.isArray(n[c])||u>=n[c].length)throw new Error(`Invalid array index: ${u} for key ${c}`);n=n[c][u]}else n=n[c]}const r=e[0],i=r.match(/^(\w+)\[(\d+)\]$/);let s=r,o=-1;if(i&&(s=i[1],o=parseInt(i[2],10)),typeof n!="object"||n===null)throw new Error(`Cannot set property on non-object: ${r}`);if(o!==-1){if(!n.hasOwnProperty(s)||!Array.isArray(n[s])||o>=n[s].length)throw new Error(`Invalid final array index: ${o} for key ${s}`);n[s][o]=t.value}else n[s]=t.value;this.settingsChanged=!0}catch(r){this.$store.state.toast.showToast(`Error updating setting ${t.key}: ${r.message}`,4,!1)}},async refreshConfigInView(){this.isLoading=!0,this.loading_text="Refreshing config...";try{await this.$store.dispatch("refreshConfig"),this.editableConfig=null,this.settingsChanged=!1}catch{this.$store.state.toast.showToast("Failed to load configuration.",4,!1),this.editableConfig=null,this.settingsChanged=!1}finally{this.isLoading=!1,Ge(()=>{Ne.replace()})}},async applyConfiguration(){if(!this.settingsChanged||!this.editableConfig){this.$store.state.toast.showToast("No changes to apply.",3,!1);return}this.isLoading=!0,this.loading_text="Applying settings...";let t=!1;try{const e=await $e.post("/apply_settings",{client_id:this.$store.state.client_id,config:this.editableConfig},{headers:X8});e.data.status?(this.$store.state.toast.showToast("Settings applied. Refreshing...",4,!0),t=!0,await this.refreshConfigInView()):this.$store.state.toast.showToast(`Apply failed: ${e.data.error||"Error"}`,4,!1)}catch(e){this.$store.state.toast.showToast(`Error applying settings: ${e.message||e}`,4,!1)}finally{t||(this.isLoading=!1)}},cancelConfiguration(t=!0){this.editableConfig=null,this.settingsChanged=!1},async saveConfiguration(){this.isLoading=!0,this.loading_text="Saving configuration...";try{const t=await $e.post("/save_settings",{client_id:this.$store.state.client_id},{headers:X8});t.data.status?this.$store.state.toast.showToast("Settings saved successfully.",4,!0):this.$store.state.messageBox.showMessage(`Error saving settings: ${t.data.error||"Error"}`)}catch(t){this.$store.state.messageBox.showMessage(`Error saving settings: ${t.message}`)}finally{this.isLoading=!1}},reset_configuration(){this.$store.state.yesNoDialog.askQuestion("Reset config to default? This deletes current settings.","Reset","Cancel").then(async t=>{if(t){this.isLoading=!0,this.loading_text="Resetting...";let e=!1;try{const n=await $e.post("/reset_settings",{client_id:this.$store.state.client_id},{headers:X8});n.data.status?(this.$store.state.messageBox.showMessage("Settings reset. Reloading..."),e=!0,setTimeout(()=>window.location.reload(),2e3)):this.$store.state.messageBox.showMessage(`Reset failed: ${n.data.error||"Error"}`)}catch(n){this.$store.state.messageBox.showMessage(`Reset failed: ${n.message}`)}finally{e||(this.isLoading=!1)}}})},async restart_program(){this.loading_text="Restarting...",this.isLoading=!0;let t=!1;try{const e=await this.api_post_req("restart_program");e.status?(this.$store.state.toast.showToast("Restarting LoLLMs...",4,!0),t=!0):this.$store.state.toast.showToast(`Restart command failed: ${e.error||"Error"}`,4,!1)}catch{}finally{t||(this.isLoading=!1)}},async clear_uploads(){this.loading_text="Clearing uploads...",this.isLoading=!0;try{const t=await this.api_get_req("clear_uploads");t.status?this.$store.state.toast.showToast("Uploads folder cleared!",4,!0):this.$store.state.toast.showToast(`Clear failed: ${t.error||"Error"}`,4,!1)}catch{}finally{this.isLoading=!1}},async update_software(){this.loading_text="Updating...",this.isLoading=!0;let t=!1;try{const e=await this.api_post_req("update_software");this.$store.state.toast.showToast("Update initiated. LoLLMs might restart.",4,!0),this.has_updates=!1,t=!0,e.status||this.$store.state.toast.showToast(`Update command sent, server reported issue: ${e.error||"Unknown"}`,4,!1)}catch{}finally{t||(this.isLoading=!1)}},async updateHasUpdates(){try{const t=await this.api_get_req("check_update");this.has_updates=(t==null?void 0:t.update_availability)||!1,Ge(()=>{Ne.replace()})}catch{this.has_updates=!1}},async api_get_req(t){if(this.$store.state.api_get_req)return this.$store.state.api_get_req(t);try{return(await $e.get(`/${t}?client_id=${this.$store.state.client_id}`)).data}catch(e){throw this.$store.state.toast.showToast(`GET Error: ${e.message}`,4,!1),e}},async api_post_req(t,e={}){if(this.$store.state.api_post_req)return this.$store.state.api_post_req(t,e);try{const n={...e,client_id:this.$store.state.client_id};return(await $e.post(`/${t}`,n,{headers:X8})).data}catch(n){throw this.$store.state.toast.showToast(`POST Error: ${n.message}`,4,!1),n}}},mounted(){this.refreshConfigInView(),this.updateHasUpdates(),Ge(()=>{Ne.replace()})},updated(){Ge(()=>{Ne.replace()})}},Cgr={class:"flex h-screen w-screen font-sans antialiased theme-bg-primary theme-text-primary"},Lgr={class:"flex-1 flex flex-col overflow-hidden"},Agr={class:"flex items-center gap-4 flex-1"},$gr={key:0,class:"flex items-center gap-2 theme-text-warning animate-pulse"},kgr={key:1,class:"flex gap-3 items-center"},Pgr={key:0,class:"flex items-center gap-2"},Rgr={key:1,class:"flex items-center gap-2 text-sm theme-text-muted"},Mgr={class:"flex-1 overflow-x-hidden overflow-y-auto theme-scrollbar p-6"},Dgr={key:1,class:"flex justify-center items-center h-full theme-text-secondary"};function Ngr(t,e,n,r,i,s){const o=je("SettingsSidebar");return P(),D("div",Cgr,[te(o,{sections:i.sections,"active-section":i.activeSection,"onUpdate:activeSection":s.setActiveSection,class:"flex-shrink-0 w-64 border-r theme-border-primary theme-bg-secondary overflow-y-auto theme-scrollbar"},null,8,["sections","active-section","onUpdate:activeSection"]),b("div",Lgr,[b("div",{class:we(["sticky top-0 z-20 flex items-center justify-between p-3 gap-3 shadow-md theme-bg-secondary theme-border-b theme-border-primary",i.isLoading?"opacity-50 pointer-events-none":""])},[b("div",Agr,[i.settingsChanged&&!i.isLoading?(P(),D("div",$gr,e[6]||(e[6]=[b("i",{"data-feather":"alert-circle",class:"w-5 h-5"},null,-1),b("span",{class:"text-sm font-medium"},"Settings have changed",-1)]))):ne("",!0),!i.settingsChanged&&!i.isLoading?(P(),D("div",kgr,[b("button",{title:"Reset configuration to default",class:"icon-button theme-text-secondary hover:theme-text-primary",onClick:e[0]||(e[0]=a=>s.reset_configuration())},e[7]||(e[7]=[b("i",{"data-feather":"refresh-ccw"},null,-1)])),b("button",{title:"Restart program",class:"icon-button theme-text-secondary hover:theme-text-primary",onClick:e[1]||(e[1]=a=>s.restart_program())},e[8]||(e[8]=[b("i",{"data-feather":"power"},null,-1)])),b("button",{title:"Clear uploads folder",class:"icon-button theme-text-secondary hover:theme-text-danger",onClick:e[2]||(e[2]=a=>s.clear_uploads())},e[9]||(e[9]=[b("i",{"data-feather":"trash-2"},null,-1)])),i.has_updates?(P(),D("button",{key:0,title:"Upgrade program",class:"icon-button theme-text-success hover:theme-text-primary relative",onClick:e[3]||(e[3]=a=>s.update_software())},e[10]||(e[10]=[b("i",{"data-feather":"arrow-up-circle"},null,-1),b("span",{class:"absolute top-0 right-0 block h-2 w-2 rounded-full theme-bg-danger ring-2 theme-ring-bg"},null,-1)]))):ne("",!0)])):ne("",!0)]),i.settingsChanged&&!i.isLoading?(P(),D("div",Pgr,[b("button",{class:"flex items-center gap-2 px-3 py-1.5 rounded theme-button-success duration-150 active:scale-95",title:"Apply changes",type:"button",onClick:e[4]||(e[4]=oe(a=>s.applyConfiguration(),["stop"]))},e[11]||(e[11]=[b("span",{class:"font-medium text-sm"},"Apply",-1),b("i",{"data-feather":"check",class:"w-4 h-4"},null,-1)])),b("button",{class:"flex items-center gap-2 px-3 py-1.5 rounded theme-button-danger duration-150 active:scale-95",title:"Cancel changes",type:"button",onClick:e[5]||(e[5]=oe(a=>s.cancelConfiguration(),["stop"]))},e[12]||(e[12]=[b("span",{class:"font-medium text-sm"},"Cancel",-1),b("i",{"data-feather":"x",class:"w-4 h-4"},null,-1)]))])):ne("",!0),i.isLoading?(P(),D("div",Rgr,[b("span",null,le(i.loading_text),1),e[13]||(e[13]=b("svg",{"aria-hidden":"true",class:"w-5 h-5 animate-spin theme-spinner-color",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),b("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1)),e[14]||(e[14]=b("span",{class:"sr-only"},"Loading...",-1))])):ne("",!0)],2),b("main",Mgr,[s.configToEdit?(P(),yt(Kf(s.currentComponent),{key:0,config:s.configToEdit,loading:i.isLoading,onSettingUpdated:s.handleSettingUpdated,api_get_req:s.api_get_req,api_post_req:s.api_post_req,show_toast:this.$store.state.toast.showToast,show_yes_no_dialog:this.$store.state.yesNoDialog.askQuestion,show_message_box:this.$store.state.messageBox.showMessage,client_id:t.$store.state.client_id,show_universal_form:this.$store.state.universalForm.showForm},null,40,["config","loading","onSettingUpdated","api_get_req","api_post_req","show_toast","show_yes_no_dialog","show_message_box","client_id","show_universal_form"])):(P(),D("div",Dgr,e[15]||(e[15]=[b("p",null,"Loading configuration...",-1)])))])])])}const Igr=ct(wgr,[["render",Ngr],["__scopeId","data-v-5621f36d"]]),Hgr={components:{ClipBoardTextInput:xoe,Card:VC},data(){return{dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDataset:""}},methods:{submitForm(){const t={model_name:this.selectedModel,dataset_file:this.selectedDataset,max_length:this.max_length,batch_size:this.batch_size,lr:this.lr,num_epochs:this.num_epochs,output_dir:this.selectedFolder};$e.post("/start_training",t).then(e=>{})},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDataset(t){const e=t.target.files;e.length>0&&(this.selectedDataset=e[0])}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}}},watch:{model_name(t){console.log("watching model_name",t),this.$refs.clipboardInput.inputValue=t}}},Vgr={key:0,class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},qgr={class:"mb-4"},Ugr=["value"],Bgr={class:"mb-4"},zgr={class:"mb-4"},Xgr={class:"mb-4"},Fgr={class:"mb-4"},jgr={class:"mb-4"},Ygr={class:"mb-4"},Ggr={key:1};function Wgr(t,e,n,r,i,s){const o=je("Card"),a=je("ClipBoardTextInput");return s.selectedModel!==null&&s.selectedModel.toLowerCase().includes("gptq")?(P(),D("div",Vgr,[b("form",{onSubmit:e[2]||(e[2]=oe((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:""},[te(o,{title:"Training configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>[te(o,{title:"Model",class:"",isHorizontal:!1},{default:Ve(()=>[b("div",qgr,[e[3]||(e[3]=b("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),Ie(b("select",{"onUpdate:modelValue":e[0]||(e[0]=l=>s.selectedModel=l),onChange:e[1]||(e[1]=(...l)=>t.setModel&&t.setModel(...l)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(P(!0),D(He,null,lt(s.models,l=>(P(),D("option",{key:l,value:l},le(l),9,Ugr))),128))],544),[[As,s.selectedModel]])])]),_:1}),te(o,{title:"Data",isHorizontal:!1},{default:Ve(()=>[b("div",Bgr,[e[4]||(e[4]=b("label",{for:"dataset_path",class:"text-sm"},"Dataset:",-1)),te(a,{id:"model_path",inputType:"file",value:i.dataset_path,onchange:"selectDataset()"},null,8,["value"])])]),_:1}),te(o,{title:"Training",isHorizontal:!1},{default:Ve(()=>[b("div",zgr,[e[5]||(e[5]=b("label",{for:"lr",class:"text-sm"},"Learning Rate:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.lr},null,8,["value"])]),b("div",Xgr,[e[6]||(e[6]=b("label",{for:"num_epochs",class:"text-sm"},"Number of Epochs:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.num_epochs},null,8,["value"])]),b("div",Fgr,[e[7]||(e[7]=b("label",{for:"max_length",class:"text-sm"},"Max Length:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.max_length},null,8,["value"])]),b("div",jgr,[e[8]||(e[8]=b("label",{for:"batch_size",class:"text-sm"},"Batch Size:",-1)),te(a,{id:"model_path",inputType:"integer",value:i.batch_size},null,8,["value"])])]),_:1}),te(o,{title:"Output",isHorizontal:!1},{default:Ve(()=>[b("div",Ygr,[e[9]||(e[9]=b("label",{for:"output_dir",class:"text-sm"},"Output Directory:",-1)),te(a,{id:"model_path",inputType:"text",value:t.output_dir},null,8,["value"])])]),_:1})]),_:1}),te(o,{disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>e[10]||(e[10]=[b("button",{class:"bg-blue-500 text-white px-4 py-2 rounded"},"Start training",-1)])),_:1})],32)])):(P(),D("div",Ggr,[te(o,{title:"Info",class:"",isHorizontal:!1},{default:Ve(()=>e[11]||(e[11]=[be(" Only GPTQ models are supported for QLora fine tuning. Please select a GPTQ compatible binding. ")])),_:1})]))}const Zgr=ct(Hgr,[["render",Wgr]]),Kgr={components:{ClipBoardTextInput:xoe,Card:VC},data(){return{model_name:"jondurbin/airoboros-7b-gpt4",tokenizer_name:"jondurbin/airoboros-7b-gpt4",dataset_path:"",max_length:1024,batch_size:4,lr:5e-5,num_epochs:2,selectedFolder:"",selectedDatasetPath:""}},methods:{submitForm(){this.model_name,this.tokenizer_name,this.selectedDatasetPath,this.max_length,this.batch_size,this.lr,this.num_epochs,this.selectedFolder},openFolderSelector(){this.$refs.folder_selector.click()},selectOutputDirectory(t){var n;console.log("here");const e=(n=t.target.files[0])==null?void 0:n.path;console.log(e),e&&(this.selectedFolder=e)},selectDatasetPath(t){const e=t.target.files;e.length>0&&(this.selectedDatasetPath=e[0].webkitRelativePath)}}},Jgr={class:"container overflow-y-scroll flex flex-col no-scrollbar shadow-lg p-10 pt-2 bg-bg-light-tone dark:bg-bg-dark-tone"},eQr={class:"mb-4"},tQr={class:"mb-4"};function nQr(t,e,n,r,i,s){const o=je("ClipBoardTextInput"),a=je("Card");return P(),D("div",Jgr,[b("form",{onSubmit:e[0]||(e[0]=oe((...l)=>s.submitForm&&s.submitForm(...l),["prevent"])),class:"max-w-md mx-auto"},[te(a,{title:"Quantizing configuration",isHorizontal:!0,disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>[te(a,{title:"Model",class:"",isHorizontal:!1},{default:Ve(()=>[b("div",eQr,[e[1]||(e[1]=b("label",{for:"model_name",class:"text-sm"},"Model Name:",-1)),te(o,{id:"model_path",inputType:"text",value:i.model_name},null,8,["value"])]),b("div",tQr,[e[2]||(e[2]=b("label",{for:"tokenizer_name",class:"text-sm"},"Tokenizer Name:",-1)),te(o,{id:"model_path",inputType:"text",value:i.tokenizer_name},null,8,["value"])])]),_:1})]),_:1}),te(a,{disableHoverAnimation:!0,disableFocus:!0},{default:Ve(()=>e[3]||(e[3]=[b("button",{type:"submit",class:"bg-blue-500 text-white px-4 py-2 rounded"},"Quantize LLM",-1)])),_:1})],32)])}const rQr=ct(Kgr,[["render",nQr]]),iQr={name:"WelcomeScreen",props:{isReady:{type:Boolean,required:!0},loadingProgress:{type:Number,required:!0},loadingInfos:{type:String,required:!0},versionInfo:{type:String,required:!0},interestingFacts:{type:Array,required:!0}},data(){return{randomFact:""}},computed:{...e7(["config","theme_vars"]),appName(){var t,e;return((t=this.config)==null?void 0:t.app_custom_name)||((e=this.theme_vars)==null?void 0:e.lollms_title)||"LoLLMs"},appSlogan(){var t;return((t=this.config)==null?void 0:t.app_custom_slogan)||"One tool to rule them all"},shouldShowLollmsParagraphs(){var t;return!((t=this.config)!=null&&t.app_custom_name)},shouldShowLollmsFunFacts(){var t;return(t=this.config)==null?void 0:t.app_show_fun_facts}},methods:{updateRandomFact(){let t;if(this.interestingFacts.length<=1){this.randomFact=this.interestingFacts.length===1?this.interestingFacts[0]:"";return}do t=this.interestingFacts[Math.floor(Math.random()*this.interestingFacts.length)];while(t===this.randomFact);this.randomFact=t}},mounted(){this.updateRandomFact()},watch:{interestingFacts:{handler(){this.updateRandomFact()},immediate:!0}}},sQr={key:0,class:"fixed inset-0 z-50 flex items-center justify-center overflow-hidden bg-gradient-welcome text-blue-800 dark:text-blue-100"},oQr={key:0,class:"absolute inset-0 pointer-events-none overflow-hidden opacity-70"},aQr={class:"relative z-10 flex w-full max-w-4xl flex-col items-center px-6 text-center"},lQr={class:"mb-10 w-full"},cQr={class:"lollms-title-style mb-3 text-5xl font-extrabold tracking-tight drop-shadow-md md:text-7xl transition-transform duration-300 hover:scale-[1.03]"},uQr={class:"text-xl italic md:text-2xl text-subtitle"},dQr={key:0,class:"mt-4 text-base text-author"},fQr={class:"mt-1 text-sm text-author"},hQr={class:"text-base text-blue-800 dark:text-blue-200"},pQr=["innerHTML"],TQr={class:"w-full max-w-lg"},OQr={class:"mb-3 h-3 w-full overflow-hidden rounded-full shadow-inner animated-progressbar-bg"},mQr={role:"status",class:"w-full"},gQr={class:"text-2xl font-semibold text-progress"};function QQr(t,e,n,r,i,s){return P(),yt(Jn,{name:"fade-smooth"},{default:Ve(()=>[n.isReady?ne("",!0):(P(),D("div",sQr,[t.$store.state.theme_vars.activate_dropping_animation?(P(),D("div",oQr,[(P(),D(He,null,lt(60,o=>b("div",{key:o,class:"absolute animate-fall text-xs text-blue-300 dark:text-blue-500",style:qn({left:`${Math.random()*100}%`,top:"-30px",animationDuration:`${4+Math.random()*8}s`,animationDelay:`${Math.random()*6}s`,opacity:`${.3+Math.random()*.5}`})},le(t.$store.state.theme_vars.falling_object||"·"),5)),64))])):ne("",!0),b("div",aQr,[b("div",lQr,[b("h1",cQr,le(s.appName),1),b("p",uQr,le(s.appSlogan),1),s.shouldShowLollmsParagraphs?(P(),D("p",dQr," by ParisNeo ")):ne("",!0),b("p",fQr,le(n.versionInfo),1)]),s.shouldShowLollmsFunFacts&&i.randomFact?(P(),D("div",{key:0,class:"mb-8 w-full max-w-xl cursor-pointer rounded-lg border p-4 shadow-lg backdrop-blur-sm transition-all duration-300 card border-blue-300 dark:border-blue-600 hover:bg-blue-200 dark:hover:bg-blue-700 hover:border-blue-400 dark:hover:border-blue-500",onClick:e[0]||(e[0]=(...o)=>s.updateRandomFact&&s.updateRandomFact(...o))},[b("p",hQr,[e[1]||(e[1]=b("span",{class:"font-semibold text-blue-600 dark:text-blue-400"},"🤔 Fun Fact: ",-1)),b("span",{innerHTML:i.randomFact,class:"italic"},null,8,pQr)])])):ne("",!0),b("div",TQr,[b("div",OQr,[b("div",{class:"h-full rounded-full shadow-md transition-all duration-500 ease-out animated-progressbar-fg",style:qn({width:`${n.loadingProgress}%`})},null,4)]),b("div",mQr,[(P(),D("p",{class:"mb-1 text-lg transition-opacity duration-300 text-loading",key:n.loadingInfos},le(n.loadingInfos)+"... ",1)),b("p",gQr,le(Math.round(n.loadingProgress))+"% ",1)])])])]))]),_:1})}const _Qr=ct(iQr,[["render",QQr]]),vQr={name:"Discussion",emits:["delete","select","openFolder","editTitle","makeTitle","checked"],props:{id:Number,title:String,selected:Boolean,loading:Boolean,isCheckbox:Boolean,checkBoxValue:Boolean,openfolder_enabled:Boolean},setup(){},data(){return{showConfirmation:!1,editTitleMode:!1,makeTitleMode:!1,deleteMode:!1,openFolder:!1,editTitle:!1,newTitle:String,checkBoxValue_local:!1}},methods:{cancel(){this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1},deleteEvent(){this.showConfirmation=!1,this.$emit("delete")},selectEvent(){this.$emit("select")},openFolderEvent(){this.$emit("openFolder",{id:this.id})},editTitleEvent(){this.editTitle=!1,this.editTitleMode=!1,this.makeTitleMode=!1,this.deleteMode=!1,this.showConfirmation=!1,this.$emit("editTitle",{title:this.newTitle,id:this.id})},makeTitleEvent(){this.$emit("makeTitle",{id:this.id}),this.showConfirmation=!1},chnageTitle(t){this.newTitle=t},checkedChangeEvent(t,e){this.$emit("checked",t,e)}},mounted(){this.newTitle=this.title,Ge(()=>{Ne.replace()})},watch:{showConfirmation(){Ge(()=>{Ne.replace()})},editTitleMode(t){this.showConfirmation=t,this.editTitle=t,t&&Ge(()=>{try{this.$refs.titleBox.focus()}catch{}})},deleteMode(t){this.showConfirmation=t,t&&Ge(()=>{this.$refs.titleBox.focus()})},makeTitleMode(t){this.showConfirmation=t},checkBoxValue(t,e){this.checkBoxValue_local=t}}},yQr=["id"],bQr={class:"flex flex-row items-center gap-2"},SQr={key:0},xQr={class:"flex flex-row items-center w-full"},EQr=["title"],wQr=["value"],CQr={class:"absolute top-0 right-0 h-full flex items-center group"},LQr={class:"discussion-toolbox"},AQr={key:0,class:"flex gap-2 items-center"},$Qr={key:1,class:"flex gap-2 items-center"};function kQr(t,e,n,r,i,s){return P(),D("div",{class:we([n.selected?"discussion-hilighted":"discussion","m-1 py-2 flex flex-row sm:flex-row flex-wrap flex-shrink-0 items-center rounded-md duration-75 cursor-pointer relative w-[15rem]"]),id:"dis-"+n.id,onClick:e[13]||(e[13]=oe(o=>s.selectEvent(),["stop"]))},[b("div",bQr,[n.isCheckbox?(P(),D("div",SQr,[Ie(b("input",{type:"checkbox",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 dark:focus:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500",onClick:e[0]||(e[0]=oe(()=>{},["stop"])),"onUpdate:modelValue":e[1]||(e[1]=o=>i.checkBoxValue_local=o),onInput:e[2]||(e[2]=o=>s.checkedChangeEvent(o,n.id))},null,544),[[Y3,i.checkBoxValue_local]])])):ne("",!0),n.selected?(P(),D("div",{key:1,class:we(["min-h-full w-2 rounded-xl self-stretch",n.loading?"animate-bounce bg-accent":"bg-secondary"])},null,2)):ne("",!0),n.selected?ne("",!0):(P(),D("div",{key:2,class:we(["w-2",n.loading?"min-h-full w-2 rounded-xl self-stretch animate-bounce bg-accent":""])},null,2))]),b("div",xQr,[i.editTitle?ne("",!0):(P(),D("p",{key:0,title:n.title,class:"line-clamp-1 w-full ml-1 -mx-5 text-xs"},le(n.title?n.title==="untitled"?"New discussion":n.title:"New discussion"),9,EQr)),i.editTitle?(P(),D("input",{key:1,type:"text",id:"title-box",ref:"titleBox",class:"bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1",value:n.title,required:"",onKeydown:[e[3]||(e[3]=Pr(oe(o=>s.editTitleEvent(),["exact"]),["enter"])),e[4]||(e[4]=Pr(oe(o=>i.editTitleMode=!1,["exact"]),["esc"]))],onInput:e[5]||(e[5]=o=>s.chnageTitle(o.target.value)),onClick:e[6]||(e[6]=oe(()=>{},["stop"]))},null,40,wQr)):ne("",!0)]),b("div",CQr,[b("div",LQr,[i.showConfirmation?(P(),D("div",AQr,[b("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Discard title changes",type:"button",onClick:e[7]||(e[7]=oe(o=>s.cancel(),["stop"]))},e[14]||(e[14]=[b("i",{"data-feather":"x"},null,-1)])),b("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Confirm title changes",type:"button",onClick:e[8]||(e[8]=oe(o=>i.editTitleMode?s.editTitleEvent():i.deleteMode?s.deleteEvent():s.makeTitleEvent(),["stop"]))},e[15]||(e[15]=[b("i",{"data-feather":"check"},null,-1)]))])):ne("",!0),i.showConfirmation?ne("",!0):(P(),D("div",$Qr,[n.openfolder_enabled?(P(),D("button",{key:0,class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Open folder",type:"button",onClick:e[9]||(e[9]=oe(o=>s.openFolderEvent(),["stop"]))},e[16]||(e[16]=[b("i",{"data-feather":"folder"},null,-1)]))):ne("",!0),b("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Make a title",type:"button",onClick:e[10]||(e[10]=oe(o=>i.makeTitleMode=!0,["stop"]))},e[17]||(e[17]=[b("i",{"data-feather":"type"},null,-1)])),b("button",{class:"text-2xl hover:text-secondary duration-75 active:scale-90",title:"Edit title",type:"button",onClick:e[11]||(e[11]=oe(o=>i.editTitleMode=!0,["stop"]))},e[18]||(e[18]=[b("i",{"data-feather":"edit-2"},null,-1)])),b("button",{class:"text-2xl hover:text-red-600 duration-75 active:scale-90",title:"Remove discussion",type:"button",onClick:e[12]||(e[12]=oe(o=>i.deleteMode=!0,["stop"]))},e[19]||(e[19]=[b("i",{"data-feather":"trash"},null,-1)]))]))])])],10,yQr)}const Ioe=ct(vQr,[["render",kQr],["__scopeId","data-v-2b3580ce"]]),PQr="/";$e.defaults.baseURL="/";const RQr={name:"MountedPersonalities",props:{onShowPersList:Function,onReady:Function},components:{UniversalForm:uoe},data(){return{bUrl:PQr,isMounted:!1}},async mounted(){await this.constructor(),this.isMounted=!0},async activated(){this.isMounted&&await this.constructor()},computed:{configFile(){return this.$store.state.config},mountedPers(){return this.$store.state.mountedPers},isActive(){return this.$store.state.mountedPers&&this.$store.state.config.active_personality_id===this.$store.state.config.personalities.findIndex(t=>t===this.$store.state.mountedPers.full_path)}},methods:{async handleOnTalk(){const t=this.mountedPers;if(!t){this.$store.state.toast.showToast("No personality mounted to talk with.",3,!1);return}console.log("Talking with:",t.name);try{let e=await $e.get("/get_generation_status",{});if(e&&!e.data.status){const n=this.$store.state.config.personalities.findIndex(r=>r===t.full_path);if(n!==this.$store.state.config.active_personality_id){const r={client_id:this.$store.state.client_id,id:n};let i=await $e.post("/select_personality",r);if(!i.data.status){console.error("Failed to select personality before talking:",i.data.error),this.$store.state.toast.showToast(`Error selecting ${t.name}: ${i.data.error}`,4,!1);return}this.$store.commit("setActivePersonalityId",n),this.$store.commit("setMountedPers",this.$store.state.personalities_infos[n])}console.log("Requesting generation from:",t.name),Je.emit("generate_msg_from",{id:n})}else e?(console.log("Already generating"),this.$store.state.toast.showToast("Generation is already in progress.",3,!1)):(console.error("Could not get generation status."),this.$store.state.toast.showToast("Error checking generation status.",4,!1))}catch(e){console.error("Error during handleOnTalk:",e),this.$store.state.toast.showToast(`Error initiating talk: ${e.message}`,4,!1)}finally{}},async remount_personality(){var e;const t=this.mountedPers;if(!t)return this.$store.state.toast.showToast("No personality mounted to remount.",3,!1),{status:!1,error:"no personality selected"};console.log("Remounting personality ",t.name),this.$store.state.toast.showToast(`Remounting ${t.name}...`,4,!0);try{const n={client_id:this.$store.state.client_id,category:t.category,folder:t.folder,language:t.language},r=await $e.post("/remount_personality",n);if(r&&r.data.status)return console.log("Personality remounted successfully:",r.data),this.$store.state.toast.showToast(`${t.name} remounted successfully!`,4,!0),this.$store.dispatch("refreshPersonalityData"),r.data;{const i=((e=r==null?void 0:r.data)==null?void 0:e.error)||"Unknown error";return console.error("Failed remount_personality:",i),this.$store.state.toast.showToast(`Failed to remount ${t.name}: ${i}`,4,!1),(r==null?void 0:r.data)||{status:!1,error:i}}}catch(n){return console.error("Error during remount_personality:",n),this.$store.state.toast.showToast(`Error remounting: ${n.message}`,4,!1),{status:!1,error:n.message}}},async onSettingsPersonality(t){var e;if(!t){this.$store.state.toast.showToast("No personality selected for settings.",3,!1);return}console.log("Opening settings for:",t.name);try{const n=this.$store.state.config.personalities.findIndex(i=>i===t.full_path);if(n!==this.$store.state.config.active_personality_id){const i={client_id:this.$store.state.client_id,id:n};let s=await $e.post("/select_personality",i);if(!s.data.status){console.error("Failed to select personality before opening settings:",s.data.error),this.$store.state.toast.showToast(`Error selecting ${t.name} for settings: ${s.data.error}`,4,!1);return}this.$store.commit("setActivePersonalityId",n),this.$store.commit("setMountedPers",this.$store.state.personalities_infos[n]),await Ge()}const r=await $e.get("/get_active_personality_settings");if(r&&r.data&&Object.keys(r.data).length>0){console.log("Personality settings data:",r.data);const i=await this.$refs.universalForm.showForm(r.data,`Settings - ${t.name}`,"Save changes","Cancel");if(i){console.log("Saving new settings:",i);try{const s=await $e.post("/set_active_personality_settings",i);if(s&&s.data&&s.data.status)console.log("Settings saved successfully:",s.data),this.$store.state.toast.showToast("Personality settings updated successfully!",4,!0);else{const o=((e=s==null?void 0:s.data)==null?void 0:e.error)||"Unknown error saving settings.";console.error("Failed to save settings:",o),this.$store.state.toast.showToast(`Failed to save settings: ${o}`,4,!1)}}catch(s){console.error("Error saving personality settings:",s),this.$store.state.toast.showToast(`Error saving settings: ${s.message}`,4,!1)}}else console.log("Settings editing cancelled.")}else r&&r.data&&Object.keys(r.data).length===0?this.$store.state.toast.showToast(`${t.name} has no configurable settings.`,4,!1):(console.error("Could not get personality settings response:",r),this.$store.state.toast.showToast("Failed to retrieve personality settings.",4,!1))}catch(n){console.error("Error fetching/showing personality settings:",n),this.$store.state.toast.showToast(`Could not open settings: ${n.message}`,4,!1)}},async constructor(){for(Ge(()=>{Ne.replace()});this.$store.state.ready===!1;)await new Promise(t=>setTimeout(t,100));this.onReady&&this.onReady()},personalityImgPlacehodler(t){t.target.src=$9}}},MQr={class:"relative group/item"},DQr=["title"],NQr=["src","alt"],IQr={class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-auto flex items-center justify-center space-x-1 opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 p-2 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 z-10"};function HQr(t,e,n,r,i,s){const o=je("UniversalForm");return P(),D(He,null,[b("div",MQr,[b("button",{onClick:e[1]||(e[1]=oe(a=>s.onSettingsPersonality(s.mountedPers),["prevent"])),class:we(["w-6 h-6 rounded-full overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none relative",{"glow-effect":t.$store.state.config.activate_skills_lib,"border-2 border-primary":s.isActive}]),title:"Configure "+s.mountedPers.name},[b("img",{src:s.mountedPers.avatar,onError:e[0]||(e[0]=(...a)=>s.personalityImgPlacehodler&&s.personalityImgPlacehodler(...a)),alt:s.mountedPers.name,class:"w-full h-full object-cover"},null,40,NQr)],10,DQr),b("div",IQr,[b("button",{onClick:e[2]||(e[2]=oe(a=>s.onSettingsPersonality(s.mountedPers),["prevent"])),class:"p-1 btn-secondary btn-xs rounded-full hover:scale-110 transition-transform duration-150",title:"Configure"},e[5]||(e[5]=[b("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826 3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})],-1)])),b("button",{onClick:e[3]||(e[3]=oe(a=>s.remount_personality(),["prevent"])),class:"p-1 bg-blue-500 rounded-full text-white hover:bg-blue-600 focus:outline-none btn-xs hover:scale-110 transition-transform duration-150",title:"Remount"},e[6]||(e[6]=[b("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1)])),b("button",{onClick:e[4]||(e[4]=oe(a=>s.handleOnTalk(),["prevent"])),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none btn-xs hover:scale-110 transition-transform duration-150",title:"Talk"},e[7]||(e[7]=[b("svg",{class:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})],-1)]))])]),te(o,{ref:"universalForm",class:"z-50"},null,512)],64)}const VQr=ct(RQr,[["render",HQr],["__scopeId","data-v-5f8375f1"]]),qQr={name:"Toolbar",components:{MountedPersonalities:VQr},props:{loading:Boolean,isCheckbox:Boolean},emits:["create-new-discussion","add-discussion-to-skills-library","toggle-skills-lib","show-skills-lib","toggle-edit-mode","reset-database","export-database","import-discussions","import-discussions-bundle","show-model-config","set-binding","copy-model-name","set-model","personality-selected","unmount-personality","remount-personality","talk-personality","personalities-ready","show-personality-list"],data(){return{isSkillsLibraryMenuVisible:!1,isMenuVisible:!1,isBindingsMenuVisible:!1,isModelsMenuVisible:!1,isPersonalitiesMenuVisible:!1,bindingSearchQuery:"",modelSearchQuery:"",personalitySearchQuery:"",modelImgPlaceholder:qh,hideMenuTimeout:null,hideBindingsMenuTimeout:null,hideModelsMenuTimeout:null,hidePersonalitiesMenuTimeout:null,hideSkillsLibraryMenuTimeout:null}},computed:{...e7(["config","installedBindings","installedModels","mountedPersArr"]),...tE(["getCurrentBinding","getCurrentModel"]),currentBinding(){return this.getCurrentBinding||{}},currentModel(){return this.getCurrentModel||{}},currentBindingName(){var t;return(t=this.currentBinding)==null?void 0:t.name},currentModelName(){var t;return(t=this.currentModel)==null?void 0:t.name},currentBindingIcon(){var t;return((t=this.currentBinding)==null?void 0:t.icon)||this.modelImgPlaceholder},currentModelIcon(){var t;return((t=this.currentModel)==null?void 0:t.icon)||this.modelImgPlaceholder},filteredBindings(){const t=this.bindingSearchQuery.toLowerCase();return this.installedBindings.filter(e=>{var n;return(n=e.name)==null?void 0:n.toLowerCase().includes(t)})},filteredModels(){const t=this.modelSearchQuery.toLowerCase();return this.installedModels.filter(e=>{var n;return(n=e.name)==null?void 0:n.toLowerCase().includes(t)})},filteredPersonalities(){const t=this.personalitySearchQuery.toLowerCase();return Array.isArray(this.mountedPersArr)?this.mountedPersArr.filter(e=>{var n;return(n=e.name)==null?void 0:n.toLowerCase().includes(t)}):[]},activePersonalityId(){var t;return(t=this.$store.state.config)==null?void 0:t.active_personality_id},configPersonalities(){var t;return((t=this.$store.state.config)==null?void 0:t.personalities)||[]}},methods:{isActivePersonality(t){if(this.activePersonalityId===void 0||this.activePersonalityId<0||this.activePersonalityId>=this.configPersonalities.length)return!1;const e=this.configPersonalities[this.activePersonalityId];return t.full_path===e||t.full_path===(e==null?void 0:e.split(":")[0])},triggerFileDialog(t){this.$refs[t]&&this.$refs[t].click()},showSkillsLibraryMenu(){clearTimeout(this.hideSkillsLibraryMenuTimeout),this.isSkillsLibraryMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideSkillsLibraryMenu(){this.hideSkillsLibraryMenuTimeout=setTimeout(()=>{this.isSkillsLibraryMenuVisible=!1},300)},showMenu(){clearTimeout(this.hideMenuTimeout),this.isMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideMenu(){this.hideMenuTimeout=setTimeout(()=>{this.isMenuVisible=!1},300)},showBindingsMenu(){clearTimeout(this.hideBindingsMenuTimeout),this.isBindingsMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideBindingsMenu(){this.hideBindingsMenuTimeout=setTimeout(()=>{this.isBindingsMenuVisible=!1},300)},showModelsMenu(){clearTimeout(this.hideModelsMenuTimeout),this.isModelsMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hideModelsMenu(){this.hideModelsMenuTimeout=setTimeout(()=>{this.isModelsMenuVisible=!1},300)},showPersonalitiesMenu(){clearTimeout(this.hidePersonalitiesMenuTimeout),this.isPersonalitiesMenuVisible=!0,this.$nextTick(()=>Ne.replace())},hidePersonalitiesMenu(){this.hidePersonalitiesMenuTimeout=setTimeout(()=>{this.isPersonalitiesMenuVisible=!1},300)},onPersonalitiesReadyFun(){this.$emit("personalities-ready")},onShowPersListFun(){this.$emit("show-personality-list")}},mounted(){Ge(()=>{Ne.replace()})},updated(){Ge(()=>{Ne.replace()})}},UQr={class:"toolbar-color flex items-center p-1 justify-around"},BQr={key:0,class:"toolbar-container flex items-center gap-1 relative"},zQr={class:"relative"},XQr={class:"relative"},FQr=["title"],jQr=["src","alt"],YQr={class:"p-2 border-b border-blue-200 dark:border-slate-700"},GQr={class:"px-4 py-3 grid grid-cols-3 gap-x-4 gap-y-4 max-h-80 overflow-y-auto scrollbar overflow-visible"},WQr=["onClick","title"],ZQr=["src","alt"],KQr={class:"animated-thought-bubble text-center"},JQr=["onClick"],e_r={class:"flex space-x-1 justify-center"},t_r=["onClick"],n_r=["title"],r_r=["src","alt"],i_r={class:"p-2 border-b border-blue-200 dark:border-slate-700"},s_r={class:"px-4 py-3 grid grid-cols-3 gap-x-4 gap-y-4 max-h-80 overflow-y-auto scrollbar overflow-visible"},o_r=["onClick","title"],a_r=["src","alt"],l_r={class:"animated-thought-bubble text-center z-50"},c_r=["onClick"],u_r={class:"flex space-x-1 justify-center"},d_r=["onClick"],f_r={class:"p-2 border-b border-blue-200 dark:border-slate-700"},h_r={class:"px-4 py-3 pb-10 grid grid-cols-3 gap-x-4 gap-y-4 max-h-80 overflow-y-auto scrollbar"},p_r=["onClick","title"],T_r=["src","alt"],O_r={class:"animated-thought-bubble"},m_r=["onClick"],g_r={class:"flex space-x-1 justify-center"},Q_r=["onClick"],__r=["onClick"],v_r=["onClick"];function y_r(t,e,n,r,i,s){const o=je("MountedPersonalities");return P(),D("div",UQr,[n.loading?ne("",!0):(P(),D("div",BQr,[b("button",{class:"toolbar-button svg-button",title:"Create new discussion",onClick:e[0]||(e[0]=a=>t.$emit("create-new-discussion"))},e[32]||(e[32]=[b("i",{"data-feather":"plus",class:"w-5 h-5"},null,-1)])),n.loading?ne("",!0):(P(),D("div",{key:0,class:"relative",onMouseleave:e[7]||(e[7]=(...a)=>s.hideSkillsLibraryMenu&&s.hideSkillsLibraryMenu(...a))},[b("div",{onMouseenter:e[1]||(e[1]=(...a)=>s.showSkillsLibraryMenu&&s.showSkillsLibraryMenu(...a)),class:"menu-hover-area flex items-center justify-center w-8 h-8"},e[33]||(e[33]=[b("button",{class:"toolbar-button svg-button",title:"Toggle Skills library menu"},[b("svg",{class:"w-5 h-5",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[b("path",{d:"M4 4v16h16V4H4zm2 2h12v12H6V6zm2 2h2v8H8V8zm3 0h2v8h-2V8zm3 0h2v8h-2V8z",fill:"currentColor"})])],-1)]),32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[6]||(e[6]=(...a)=>s.showSkillsLibraryMenu&&s.showSkillsLibraryMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform card p-1 flex flex-wrap gap-1 items-center shadow-lg w-auto min-w-[10rem]"},[b("button",{type:"button",onClick:e[2]||(e[2]=oe(a=>t.$emit("add-discussion-to-skills-library"),["stop"])),title:"Add this discussion content to skills database",class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300"},e[34]||(e[34]=[b("i",{"data-feather":"plus",class:"w-5 h-5"},null,-1)])),t.$store.state.config.activate_skills_lib?(P(),D("button",{key:0,type:"button",onClick:e[3]||(e[3]=oe(a=>t.$emit("toggle-skills-lib"),["stop"])),title:"Skills database is activated",class:"svg-button text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-200"},e[35]||(e[35]=[b("i",{"data-feather":"check-circle",class:"w-5 h-5"},null,-1)]))):(P(),D("button",{key:1,type:"button",onClick:e[4]||(e[4]=oe(a=>t.$emit("toggle-skills-lib"),["stop"])),title:"Skills database is deactivated",class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200"},e[36]||(e[36]=[b("i",{"data-feather":"x-octagon",class:"w-5 h-5"},null,-1)]))),b("button",{type:"button",onClick:e[5]||(e[5]=oe(a=>t.$emit("show-skills-lib"),["stop"])),title:"Show Skills database",class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300"},e[37]||(e[37]=[b("i",{"data-feather":"book",class:"w-5 h-5"},null,-1)]))],544),[[mr,i.isSkillsLibraryMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:1,class:"relative",onMouseleave:e[17]||(e[17]=(...a)=>s.hideMenu&&s.hideMenu(...a))},[b("div",{onMouseenter:e[8]||(e[8]=(...a)=>s.showMenu&&s.showMenu(...a)),class:"menu-hover-area flex items-center justify-center w-8 h-8"},e[38]||(e[38]=[b("button",{class:"toolbar-button svg-button",title:"Toggle menu"},[b("i",{"data-feather":"menu",class:"w-5 h-5"})],-1)]),32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[16]||(e[16]=(...a)=>s.showMenu&&s.showMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform card p-1 flex flex-wrap gap-1 items-center shadow-lg w-auto min-w-[10rem]"},[b("button",{class:we(["svg-button",n.isCheckbox?"text-blue-600 dark:text-sky-400 bg-blue-200 dark:bg-slate-700":"text-gray-600 dark:text-gray-300"]),title:"Edit discussion list",type:"button",onClick:e[9]||(e[9]=a=>t.$emit("toggle-edit-mode"))},e[39]||(e[39]=[b("i",{"data-feather":"check-square",class:"w-5 h-5"},null,-1)]),2),b("button",{class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200",title:"Reset database, remove all discussions",onClick:e[10]||(e[10]=oe(a=>t.$emit("reset-database"),["stop"]))},e[40]||(e[40]=[b("i",{"data-feather":"trash-2",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300",title:"Export database",type:"button",onClick:e[11]||(e[11]=oe(a=>t.$emit("export-database"),["stop"]))},e[41]||(e[41]=[b("i",{"data-feather":"database",class:"w-5 h-5"},null,-1)])),b("div",zQr,[b("input",{type:"file",ref:"fileDialog",class:"hidden",onChange:e[12]||(e[12]=a=>t.$emit("import-discussions",a))},null,544),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300 rotate-90",title:"Import discussions",type:"button",onClick:e[13]||(e[13]=oe(a=>s.triggerFileDialog("fileDialog"),["stop"]))},e[42]||(e[42]=[b("i",{"data-feather":"log-in",class:"w-5 h-5"},null,-1)]))]),b("div",XQr,[b("input",{type:"file",ref:"bundleLoadingDialog",class:"hidden",onChange:e[14]||(e[14]=a=>t.$emit("import-discussions-bundle",a))},null,544),b("button",{title:"Import discussion bundle",onClick:e[15]||(e[15]=oe(a=>s.triggerFileDialog("bundleLoadingDialog"),["stop"])),class:"svg-button text-blue-600 hover:text-blue-800 dark:text-sky-400 dark:hover:text-sky-300"},e[43]||(e[43]=[b("i",{"data-feather":"folder",class:"w-5 h-5"},null,-1)]))])],544),[[mr,i.isMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:2,class:"relative",onMouseleave:e[22]||(e[22]=(...a)=>s.hideBindingsMenu&&s.hideBindingsMenu(...a))},[b("div",{onMouseenter:e[19]||(e[19]=(...a)=>s.showBindingsMenu&&s.showBindingsMenu(...a)),class:"bindings-hover-area flex items-center justify-center w-8 h-8"},[b("button",{onClick:e[18]||(e[18]=oe(a=>t.$emit("show-model-config",null),["prevent"])),class:"w-6 h-6 block",title:s.currentBinding?s.currentBinding.name:"unknown"},[b("img",{src:s.currentBindingIcon,class:"w-full h-full rounded-full object-cover border-2 border-blue-300 dark:border-slate-600 active:scale-90 hover:border-blue-500 dark:hover:border-sky-400 hover:scale-110 hover:-translate-y-1 duration-200 transition-transform",alt:s.currentBinding?s.currentBinding.name:"Binding icon"},null,8,jQr)],8,FQr)],32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[21]||(e[21]=(...a)=>s.showBindingsMenu&&s.showBindingsMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform w-80 panels-color rounded-md shadow-lg ring-1 ring-blue-300 dark:ring-slate-700 ring-opacity-50 focus:outline-none"},[b("div",YQr,[Ie(b("input",{type:"text","onUpdate:modelValue":e[20]||(e[20]=a=>i.bindingSearchQuery=a),placeholder:"Search bindings...",class:"w-full input input-sm"},null,512),[[vt,i.bindingSearchQuery]])]),b("div",GQr,[(P(!0),D(He,null,lt(s.filteredBindings,(a,l)=>(P(),D("div",{key:l,class:"relative group/item flex flex-col items-center"},[b("button",{onClick:oe(c=>t.$emit("set-binding",a),["prevent"]),title:a.name,class:we(["w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none border-2 mb-1",a.name==s.currentBindingName?"border-blue-500 dark:border-sky-500":"border-transparent hover:border-blue-300 dark:hover:border-slate-600"])},[b("img",{src:a.icon?a.icon:i.modelImgPlaceholder,alt:a.name,class:"w-full h-full object-cover"},null,8,ZQr)],10,WQr),b("div",KQr,[b("span",{class:"text-xs font-medium mb-1 block text-slate-800 dark:text-slate-100 cursor-pointer",onClick:oe(c=>t.$emit("set-binding",a),["prevent"])},le(a.name),9,JQr),b("div",e_r,[b("button",{onClick:oe(c=>t.$emit("show-model-config",a),["prevent"]),class:"p-1 btn-secondary btn-sm rounded-full hover:scale-110 transition-transform duration-150",title:"Configure Binding"},e[44]||(e[44]=[b("i",{"data-feather":"settings",class:"w-3 h-3"},null,-1)]),8,t_r)])])]))),128))])],544),[[mr,i.isBindingsMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:3,class:"relative",onMouseleave:e[27]||(e[27]=(...a)=>s.hideModelsMenu&&s.hideModelsMenu(...a))},[b("div",{onMouseenter:e[24]||(e[24]=(...a)=>s.showModelsMenu&&s.showModelsMenu(...a)),class:"models-hover-area flex items-center justify-center w-8 h-8"},[b("button",{onClick:e[23]||(e[23]=oe(a=>t.$emit("copy-model-name",null),["prevent"])),class:"w-6 h-6 block",title:s.currentModel?s.currentModel.name:"unknown"},[b("img",{src:s.currentModelIcon,class:"w-full h-full rounded-full object-cover border-2 border-blue-300 dark:border-slate-600 active:scale-90 hover:border-blue-500 dark:hover:border-sky-400 hover:scale-110 hover:-translate-y-1 duration-200 transition-transform",alt:s.currentModel?s.currentModel.name:"Model icon"},null,8,r_r)],8,n_r)],32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[26]||(e[26]=(...a)=>s.showModelsMenu&&s.showModelsMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform w-80 panels-color rounded-md shadow-lg ring-1 ring-blue-300 dark:ring-slate-700 ring-opacity-50 focus:outline-none"},[b("div",i_r,[Ie(b("input",{type:"text","onUpdate:modelValue":e[25]||(e[25]=a=>i.modelSearchQuery=a),placeholder:"Search models...",class:"w-full input input-sm"},null,512),[[vt,i.modelSearchQuery]])]),b("div",s_r,[(P(!0),D(He,null,lt(s.filteredModels,(a,l)=>(P(),D("div",{key:l,class:"relative group/item flex flex-col items-center"},[b("button",{onClick:oe(c=>t.$emit("set-model",a),["prevent"]),title:a.name,class:we(["w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none border-2 mb-1",a.name==s.currentModelName?"border-blue-500 dark:border-sky-500":"border-transparent hover:border-blue-300 dark:hover:border-slate-600"])},[b("img",{src:a.icon?a.icon:i.modelImgPlaceholder,alt:a.name,class:"w-full h-full object-cover"},null,8,a_r)],10,o_r),b("div",l_r,[b("span",{class:"text-xs font-medium mb-1 block text-slate-800 dark:text-slate-100 cursor-pointer",onClick:oe(c=>t.$emit("set-model",a),["prevent"])},le(a.name),9,c_r),b("div",u_r,[b("button",{onClick:oe(c=>t.$emit("copy-model-name",a),["prevent"]),class:"p-1 btn-secondary btn-sm rounded-full hover:scale-110 transition-transform duration-150",title:"Copy Model Name"},e[45]||(e[45]=[b("i",{"data-feather":"copy",class:"w-3 h-3"},null,-1)]),8,d_r)])])]))),128))])],544),[[mr,i.isModelsMenuVisible]])]),_:1})],32)),n.loading?ne("",!0):(P(),D("div",{key:4,class:"relative",onMouseleave:e[31]||(e[31]=(...a)=>s.hidePersonalitiesMenu&&s.hidePersonalitiesMenu(...a))},[b("div",{onMouseenter:e[28]||(e[28]=(...a)=>s.showPersonalitiesMenu&&s.showPersonalitiesMenu(...a)),class:"personalities-hover-area flex items-center justify-center w-8 h-8"},[te(o,{ref:"mountedPers",onShowPersList:s.onShowPersListFun,onReady:s.onPersonalitiesReadyFun},null,8,["onShowPersList","onReady"])],32),te(Jn,{name:"fade-and-fly"},{default:Ve(()=>[Ie(b("div",{onMouseenter:e[30]||(e[30]=(...a)=>s.showPersonalitiesMenu&&s.showPersonalitiesMenu(...a)),class:"absolute top-full left-0 mt-1 z-50 transform w-80 panels-color rounded-md shadow-lg ring-1 ring-blue-300 dark:ring-slate-700 ring-opacity-50 focus:outline-none"},[b("div",f_r,[Ie(b("input",{type:"text","onUpdate:modelValue":e[29]||(e[29]=a=>i.personalitySearchQuery=a),placeholder:"Search personalities...",class:"w-full input input-sm"},null,512),[[vt,i.personalitySearchQuery]])]),b("div",h_r,[(P(!0),D(He,null,lt(s.filteredPersonalities,(a,l)=>(P(),D("div",{key:l,class:"relative group/item flex flex-col items-center"},[b("button",{onClick:oe(c=>t.$emit("personality-selected",a),["prevent"]),title:a.name,class:we(["w-12 h-12 rounded-md overflow-hidden transition-transform duration-200 transform group-hover/item:scale-110 focus:outline-none border-2 mb-1",s.isActivePersonality(a)?"border-blue-500 dark:border-sky-500":"border-transparent hover:border-blue-300 dark:hover:border-slate-600"])},[b("img",{src:a.avatar,alt:a.name,class:"w-full h-full object-cover"},null,8,T_r)],10,p_r),b("div",O_r,[b("span",{class:"text-xs font-medium mb-1 block cursor-pointer",onClick:oe(c=>t.$emit("personality-selected",a),["prevent"])},le(a.name),9,m_r),b("div",g_r,[b("button",{onClick:oe(c=>t.$emit("unmount-personality",a),["prevent"]),class:"p-1 bg-red-500 rounded-full text-white hover:bg-red-600 focus:outline-none btn-sm hover:scale-110 transition-transform duration-150",title:"Unmount"},e[46]||(e[46]=[b("i",{"data-feather":"x",class:"w-3 h-3"},null,-1)]),8,Q_r),b("button",{onClick:oe(c=>t.$emit("remount-personality",a),["prevent"]),class:"p-1 btn-secondary btn-sm rounded-full hover:scale-110 transition-transform duration-150",title:"Remount"},e[47]||(e[47]=[b("i",{"data-feather":"refresh-cw",class:"w-3 h-3"},null,-1)]),8,__r),b("button",{onClick:oe(c=>t.$emit("talk-personality",a),["prevent"]),class:"p-1 bg-green-500 rounded-full text-white hover:bg-green-600 focus:outline-none btn-sm hover:scale-110 transition-transform duration-150",title:"Talk"},e[48]||(e[48]=[b("i",{"data-feather":"message-square",class:"w-3 h-3"},null,-1)]),8,v_r)])])]))),128))])],544),[[mr,i.isPersonalitiesMenuVisible]])]),_:1})],32))]))])}const b_r=ct(qQr,[["render",y_r]]),S_r={name:"LeftPanel",components:{Discussion:Ioe,RouterLink:Z9,Toolbar:b_r},props:{showLeftPanel:Boolean,discussionsList:Array,currentDiscussion:Object,toolbarLoading:Boolean,formattedDatabaseName:String},emits:["select-discussion","delete-discussion","open-folder","edit-title","make-title","create-new-discussion","add-discussion-to-skills-library","toggle-skills-lib","show-skills-lib","reset-database","export-database","import-discussions","import-discussions-bundle","show-model-config","set-binding","copy-model-name","set-model","personality-selected","unmount-personality","remount-personality","talk-personality","personalities-ready","show-personality-list","delete-selected","export-discussions-as-json","export-discussions-to-folder","export-discussions-as-markdown","show-database-selector","update-discussion-properties","import-discussion-file","toggle-star-discussion"],data(){return{filterTitle:"",filterInProgress:!1,isCheckbox:!1,showConfirmation:!1,isDragOverDiscussion:!1,searchTimeout:null,localDiscussions:[]}},computed:{...e7(["config","theme_vars","starredPersonalities"]),...tE(["getStarredPersonalities"]),logoSrc(){var t;return(t=this.config)!=null&&t.app_custom_logo?`/user_infos/${this.config.app_custom_logo}`:sa},logoTitle(){var t;return((t=this.config)==null?void 0:t.app_custom_name)||"LoLLMs WebUI"},appName(){var t;return((t=this.config)==null?void 0:t.app_custom_name)||"LoLLMS WebUI"},appSlogan(){var t;return((t=this.config)==null?void 0:t.app_custom_slogan)||"One tool to rule them all"},starredSet(){return new Set(this.getStarredPersonalities||[])},processedDiscussions(){return this.discussionsList.map(t=>{const e=this.localDiscussions.find(n=>n.id===t.id);return{...t,checkBoxValue:e?e.checkBoxValue:!1,isStarred:this.starredSet.has(String(t.id))}}).sort((t,e)=>t.isStarred&&!e.isStarred?-1:!t.isStarred&&e.isStarred?1:e.id-t.id)},displayedDiscussions(){if(!this.filterTitle.trim())return this.processedDiscussions;const t=this.filterTitle.toLowerCase();return this.processedDiscussions.filter(e=>e.title&&e.title.toLowerCase().includes(t))},selectedDiscussions(){return this.processedDiscussions.filter(t=>t.checkBoxValue)},isAllSelected(){return this.processedDiscussions.length>0&&this.selectedDiscussions.length===this.processedDiscussions.length}},methods:{handleSearchInput(){clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{},300)},handleSearch(){},selectDiscussion(t){this.toolbarLoading||this.$emit("select-discussion",t)},deleteDiscussion(t){this.$emit("delete-discussion",t.id)},checkUncheckDiscussion(t,e){const n=this.localDiscussions.findIndex(r=>r.id===e);n!==-1&&(this.localDiscussions[n].checkBoxValue=t),this.$emit("update-discussion-properties",{id:e,properties:{checkBoxValue:t}}),this.$forceUpdate()},selectAllDiscussions(){const t=!this.isAllSelected;this.localDiscussions.forEach(e=>{e.checkBoxValue=t,this.$emit("update-discussion-properties",{id:e.id,properties:{checkBoxValue:t}})}),this.$forceUpdate()},deleteSelectedDiscussions(){const t=this.selectedDiscussions.map(e=>e.id);this.$emit("delete-selected",t),this.showConfirmation=!1,this.isCheckbox=!1,this.localDiscussions=this.localDiscussions.filter(e=>!t.includes(e.id))},handleDrop(t){this.isDragOverDiscussion=!1;const e=t.dataTransfer.files;e.length===1&&e[0].type==="application/json"?this.$emit("import-discussion-file",e[0]):this.$store.state.toast.showToast("Please drop a single JSON file to import.",4,!1)},toggleStarDiscussion(t){this.$emit("toggle-star-discussion",t)},toggleStarSelectedDiscussions(){const t=this.selectedDiscussions;if(t.length===0)return;const e=!t[0].isStarred;t.forEach(n=>{n.isStarred!==e&&this.toggleStarDiscussion(n)})}},watch:{discussionsList:{handler(t){this.localDiscussions=t.map(e=>{const n=this.localDiscussions.find(r=>r.id===e.id);return{id:e.id,checkBoxValue:n?n.checkBoxValue:!1}}),this.$nextTick(()=>Ne.replace())},immediate:!0,deep:!0},isCheckbox(t){this.$nextTick(()=>Ne.replace()),t||(this.showConfirmation=!1,this.localDiscussions.forEach(e=>e.checkBoxValue=!1))},showConfirmation(t){this.$nextTick(()=>Ne.replace())}},mounted(){Ge(()=>{Ne.replace()})},updated(){this.$nextTick(()=>{Ne.replace()})}},x_r={key:0,class:"relative flex flex-col no-scrollbar shadow-lg w-[16rem] panels-color scrollbar h-full"},E_r={class:"logo-container w-12 h-12 flex-shrink-0"},w_r=["src","title"],C_r={class:"flex flex-col justify-center overflow-hidden"},L_r={class:"text-left p-1"},A_r={class:"text-md relative inline-block"},$_r={class:"relative inline-block font-bold tracking-wide text-blue-800 dark:text-blue-100 text-gradient-title truncate"},k_r={class:"text-blue-600 dark:text-blue-400 text-sm text-subtitle truncate"},P_r={class:"w-full max-w-md mx-auto p-2"},R_r={class:"flex items-center"},M_r={class:"relative flex-grow"},D_r={key:0,class:"w-full p-2 bg-blue-200 dark:bg-blue-700"},N_r={class:"flex flex-col space-y-1"},I_r={key:0,class:"text-sm text-blue-700 dark:text-blue-200"},H_r={key:1,class:"flex space-x-1 items-center"},V_r={key:1,class:"flex space-x-1 items-center"},q_r={class:"flex space-x-1 items-center"},U_r=["data-feather"],B_r={class:"relative flex flex-row flex-grow mb-10 z-0 w-full"},z_r={key:0,class:"p-4 text-center text-blue-600 dark:text-blue-400"},X_r={class:"flex flex-row items-center justify-center border-t border-blue-200 dark:border-blue-700 p-1"},F_r={class:"text-center font-semibold text-xs drop-shadow-md align-middle text-blue-700 dark:text-blue-300 truncate"};function j_r(t,e,n,r,i,s){const o=je("RouterLink"),a=je("Toolbar"),l=je("Discussion");return P(),yt(Jn,{name:"slide-right"},{default:Ve(()=>[n.showLeftPanel?(P(),D("div",x_r,[te(o,{to:{name:"discussions"},class:"flex items-center space-x-2 p-2 border-b border-blue-200 dark:border-blue-700"},{default:Ve(()=>[b("div",E_r,[b("img",{class:"w-full h-full rounded-full object-cover logo-image border-2 border-blue-300 dark:border-blue-600 shadow-sm",src:s.logoSrc,alt:"Logo",title:s.logoTitle},null,8,w_r)]),b("div",C_r,[b("div",L_r,[b("div",A_r,[b("span",$_r,le(s.appName),1),e[36]||(e[36]=b("div",{class:"absolute -bottom-0.5 left-0 w-full h-0.5 bg-blue-500 dark:bg-blue-400 transform origin-left transition-transform duration-300 hover:scale-x-100 scale-x-0"},null,-1))])]),b("p",k_r,le(s.appSlogan),1)])]),_:1}),te(a,{loading:n.toolbarLoading,"is-checkbox":i.isCheckbox,onCreateNewDiscussion:e[0]||(e[0]=c=>t.$emit("create-new-discussion")),onAddDiscussionToSkillsLibrary:e[1]||(e[1]=c=>t.$emit("add-discussion-to-skills-library")),onToggleSkillsLib:e[2]||(e[2]=c=>t.$emit("toggle-skills-lib")),onShowSkillsLib:e[3]||(e[3]=c=>t.$emit("show-skills-lib")),onToggleEditMode:e[4]||(e[4]=c=>i.isCheckbox=!i.isCheckbox),onResetDatabase:e[5]||(e[5]=c=>t.$emit("reset-database")),onExportDatabase:e[6]||(e[6]=c=>t.$emit("export-database")),onImportDiscussions:e[7]||(e[7]=c=>t.$emit("import-discussions",c)),onImportDiscussionsBundle:e[8]||(e[8]=c=>t.$emit("import-discussions-bundle",c)),onShowModelConfig:e[9]||(e[9]=c=>t.$emit("show-model-config",c)),onSetBinding:e[10]||(e[10]=c=>t.$emit("set-binding",c)),onCopyModelName:e[11]||(e[11]=c=>t.$emit("copy-model-name",c)),onSetModel:e[12]||(e[12]=c=>t.$emit("set-model",c)),onPersonalitySelected:e[13]||(e[13]=c=>t.$emit("personality-selected",c)),onUnmountPersonality:e[14]||(e[14]=c=>t.$emit("unmount-personality",c)),onRemountPersonality:e[15]||(e[15]=c=>t.$emit("remount-personality",c)),onTalkPersonality:e[16]||(e[16]=c=>t.$emit("talk-personality",c)),onPersonalitiesReady:e[17]||(e[17]=c=>t.$emit("personalities-ready")),onShowPersonalityList:e[18]||(e[18]=c=>t.$emit("show-personality-list"))},null,8,["loading","is-checkbox"]),b("div",P_r,[b("form",{onSubmit:e[22]||(e[22]=oe((...c)=>s.handleSearch&&s.handleSearch(...c),["prevent"])),class:"relative"},[b("div",R_r,[b("div",M_r,[Ie(b("input",{type:"search",id:"default-search",class:"block w-full h-8 pl-8 pr-10 text-sm input",placeholder:"Search discussions...",title:"Filter discussions by title","onUpdate:modelValue":e[19]||(e[19]=c=>i.filterTitle=c),onInput:e[20]||(e[20]=(...c)=>s.handleSearchInput&&s.handleSearchInput(...c)),onKeyup:e[21]||(e[21]=Pr((...c)=>s.handleSearch&&s.handleSearch(...c),["enter"]))},null,544),[[vt,i.filterTitle]]),e[37]||(e[37]=b("div",{class:"absolute left-2 top-1/2 -translate-y-1/2 pointer-events-none"},[b("i",{"data-feather":"search",class:"w-4 h-4 text-gray-400 dark:text-gray-500"})],-1)),e[38]||(e[38]=b("button",{type:"submit",class:"absolute right-2 top-1/2 -translate-y-1/2 svg-button p-1",title:"Search"},[b("i",{"data-feather":"arrow-right",class:"w-4 h-4"})],-1))])])],32)]),i.isCheckbox?(P(),D("div",D_r,[b("div",N_r,[s.selectedDiscussions.length>0?(P(),D("p",I_r,"Selected: "+le(s.selectedDiscussions.length),1)):ne("",!0),s.selectedDiscussions.length>0?(P(),D("div",H_r,[i.showConfirmation?ne("",!0):(P(),D("button",{key:0,class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200",title:"Remove selected",type:"button",onClick:e[23]||(e[23]=oe(c=>i.showConfirmation=!0,["stop"]))},e[39]||(e[39]=[b("i",{"data-feather":"trash",class:"w-5 h-5"},null,-1)]))),i.showConfirmation?(P(),D("div",V_r,[b("button",{class:"svg-button text-green-500 hover:text-green-700 dark:text-green-400 dark:hover:text-green-200",title:"Confirm removal",type:"button",onClick:e[24]||(e[24]=oe((...c)=>s.deleteSelectedDiscussions&&s.deleteSelectedDiscussions(...c),["stop"]))},e[40]||(e[40]=[b("i",{"data-feather":"check",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-200",title:"Cancel removal",type:"button",onClick:e[25]||(e[25]=oe(c=>i.showConfirmation=!1,["stop"]))},e[41]||(e[41]=[b("i",{"data-feather":"x",class:"w-5 h-5"},null,-1)]))])):ne("",!0)])):ne("",!0),b("div",q_r,[b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200 rotate-90",title:"Export selected to a json file",type:"button",onClick:e[26]||(e[26]=oe(c=>t.$emit("export-discussions-as-json",s.selectedDiscussions),["stop"]))},e[42]||(e[42]=[b("i",{"data-feather":"codepen",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200 rotate-90",title:"Export selected to a folder",type:"button",onClick:e[27]||(e[27]=oe(c=>t.$emit("export-discussions-to-folder",s.selectedDiscussions),["stop"]))},e[43]||(e[43]=[b("i",{"data-feather":"folder",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200",title:"Export selected to a markdown file",type:"button",onClick:e[28]||(e[28]=oe(c=>t.$emit("export-discussions-as-markdown",s.selectedDiscussions),["stop"]))},e[44]||(e[44]=[b("i",{"data-feather":"bookmark",class:"w-5 h-5"},null,-1)])),b("button",{class:"svg-button text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200",title:"Select/Deselect All",type:"button",onClick:e[29]||(e[29]=oe((...c)=>s.selectAllDiscussions&&s.selectAllDiscussions(...c),["stop"]))},[b("i",{"data-feather":s.isAllSelected?"minus-square":"check-square",class:"w-5 h-5"},null,8,U_r)]),b("button",{class:"svg-button text-yellow-500 hover:text-yellow-700 dark:text-yellow-400 dark:hover:text-yellow-200",title:"Star/Unstar Selected",type:"button",onClick:e[30]||(e[30]=oe((...c)=>s.toggleStarSelectedDiscussions&&s.toggleStarSelectedDiscussions(...c),["stop"]))},e[45]||(e[45]=[b("i",{"data-feather":"star",class:"w-5 h-5"},null,-1)]))])])])):ne("",!0),b("div",{id:"leftPanelScroll",class:"flex flex-col flex-grow overflow-y-scroll overflow-x-hidden scrollbar",onDragover:e[32]||(e[32]=oe(c=>i.isDragOverDiscussion=!0,["prevent"])),onDragleave:e[33]||(e[33]=c=>i.isDragOverDiscussion=!1),onDrop:e[34]||(e[34]=oe((...c)=>s.handleDrop&&s.handleDrop(...c),["prevent"]))},[b("div",B_r,[b("div",{class:we(["mx-0 flex flex-col flex-grow w-full",i.isDragOverDiscussion?"opacity-50 border-2 border-dashed border-blue-500":""])},[b("div",{id:"dis-list",class:we([i.filterInProgress?"opacity-20 pointer-events-none":"","flex flex-col flex-grow w-full pb-10"])},[te(I4,{name:"discussionsList"},{default:Ve(()=>[(P(!0),D(He,null,lt(s.displayedDiscussions,c=>(P(),yt(l,{key:c.id,id:c.id,title:c.title,selected:n.currentDiscussion&&n.currentDiscussion.id===c.id,loading:c.loading,isCheckbox:i.isCheckbox,checkBoxValue:c.checkBoxValue,"is-starred":c.isStarred,openfolder_enabled:!0,onSelect:u=>s.selectDiscussion(c),onDelete:u=>s.deleteDiscussion(c),onOpenFolder:u=>t.$emit("open-folder",c),onEditTitle:e[31]||(e[31]=u=>t.$emit("edit-title",u)),onMakeTitle:u=>t.$emit("make-title",c),onChecked:s.checkUncheckDiscussion,onToggleStar:u=>s.toggleStarDiscussion(c)},null,8,["id","title","selected","loading","isCheckbox","checkBoxValue","is-starred","onSelect","onDelete","onOpenFolder","onMakeTitle","onChecked","onToggleStar"]))),128))]),_:1}),s.displayedDiscussions.length<1?(P(),D("div",z_r,e[46]||(e[46]=[b("p",null,"No discussions found.",-1)]))):ne("",!0)],2)],2)])],32),b("div",X_r,[b("div",{class:"chat-bar text-center flex items-center justify-center w-full cursor-pointer hover:bg-blue-100 dark:hover:bg-blue-700 rounded",onClick:e[35]||(e[35]=c=>t.$emit("show-database-selector"))},[e[47]||(e[47]=b("button",{class:"svg-button p-1"},[b("i",{"data-feather":"database",class:"w-4 h-4 mr-1"})],-1)),b("p",F_r,le(n.formattedDatabaseName),1)])])])):ne("",!0)]),_:1})}const Y_r=ct(S_r,[["render",j_r]]),G_r={props:{htmlContent:{type:String,required:!0}}},W_r=["innerHTML"];function Z_r(t,e,n,r,i,s){return P(),D("div",{class:"w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",innerHTML:n.htmlContent},null,8,W_r)}const K_r=ct(G_r,[["render",Z_r]]),J_r={name:"JsonNode",props:{data:{required:!0},label:{type:String,default:""},depth:{type:Number,default:0}},data(){return{expanded:!0}},computed:{isObject(){return this.data!==null&&typeof this.data=="object"},isArray(){return Array.isArray(this.data)}},methods:{toggle(){this.expanded=!this.expanded},getValueType(t){return t===null?"null":typeof t},formatValue(t){return t===null?"null":typeof t=="string"?`"${t}"`:t}}},evr={class:"json-tree"},tvr={key:0,class:"tree-node"},nvr={class:"toggle-icon"},rvr={class:"key"},ivr={class:"bracket"},svr={key:0,class:"node-content"},ovr={key:1,class:"bracket-close"},avr={key:1,class:"tree-leaf"},lvr={key:0,class:"key"};function cvr(t,e,n,r,i,s){const o=je("json-node",!0);return P(),D("div",evr,[s.isObject?(P(),D("div",tvr,[b("div",{class:"node-label",onClick:e[0]||(e[0]=(...a)=>s.toggle&&s.toggle(...a))},[b("span",nvr,le(i.expanded?"▼":"▶"),1),b("span",rvr,le(n.label),1),b("span",ivr,le(s.isArray?"[":"{"),1)]),i.expanded?(P(),D("div",svr,[(P(!0),D(He,null,lt(n.data,(a,l)=>(P(),D("div",{key:l,class:"node-item"},[te(o,{data:a,label:l,depth:n.depth+1},null,8,["data","label","depth"])]))),128))])):ne("",!0),i.expanded?(P(),D("div",ovr,le(s.isArray?"]":"}"),1)):ne("",!0)])):(P(),D("div",avr,[n.label?(P(),D("span",lvr,le(n.label)+":",1)):ne("",!0),b("span",{class:we(["value",s.getValueType(n.data)])},le(s.formatValue(n.data)),3)]))])}const uvr=ct(J_r,[["render",cvr],["__scopeId","data-v-0535817b"]]),dvr={name:"JsonViewer",components:{JsonNode:uvr},props:{data:{required:!0},title:{type:String,default:"JSON Data"}},data(){return{expanded:!0}},computed:{parsedData(){if(typeof this.data=="string")try{return JSON.parse(this.data)}catch{return{error:"Invalid JSON"}}return this.data}},methods:{toggle(){this.expanded=!this.expanded}}},fvr={class:"json-viewer"},hvr={class:"toggle-icon"},pvr={class:"title"},Tvr={key:0,class:"viewer-content"};function Ovr(t,e,n,r,i,s){const o=je("json-node");return P(),D("div",fvr,[b("div",{class:"viewer-header",onClick:e[0]||(e[0]=(...a)=>s.toggle&&s.toggle(...a))},[b("span",hvr,le(i.expanded?"▼":"▶"),1),b("span",pvr,le(n.title),1)]),i.expanded?(P(),D("div",Tvr,[te(o,{data:s.parsedData},null,8,["data"])])):ne("",!0)])}const mvr=ct(dvr,[["render",Ovr],["__scopeId","data-v-6fbe5047"]]),gvr={name:"Step",props:{done:Boolean,text:String,status:Boolean,description:String}},Qvr={class:"step-icon-wrapper"},_vr={key:"spinner",class:"step-spinner"},vvr={key:"success",class:"step-icon-success w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},yvr={key:"fail",class:"step-icon-fail w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},bvr={class:"step-text-content"},Svr={class:"step-text"},xvr={key:0,class:"step-description"};function Evr(t,e,n,r,i,s){return P(),D("div",{class:we(["step-component",[n.done?n.status?"step-component-success":"step-component-fail":"step-component-pending"]])},[b("div",Qvr,[te(Jn,{name:"fade-icon",mode:"out-in"},{default:Ve(()=>[n.done?n.status?(P(),D("svg",vvr,e[0]||(e[0]=[b("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)]))):(P(),D("svg",yvr,e[1]||(e[1]=[b("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"},null,-1)]))):(P(),D("div",_vr))]),_:1})]),b("div",bvr,[b("div",Svr,le(n.text||"Processing..."),1),n.description?(P(),D("div",xvr,le(n.description),1)):ne("",!0)])],2)}const wvr=ct(gvr,[["render",Evr],["__scopeId","data-v-6d675aab"]]),Cvr=["title"],Lvr={key:0,class:"icon icon-success",viewBox:"0 0 24 24"},Avr={key:1,class:"icon icon-fail",viewBox:"0 0 24 24"},$vr={key:2,class:"icon-spinner"},kvr={key:1,class:"icon-text"},Pvr={__name:"StatusIcon",props:{status:{type:String,required:!0},icon:Boolean,iconDone:{type:String,default:"✓"},iconFailed:{type:String,default:"✗"},iconProcessing:{type:String,default:"⟳"},titleDone:{type:String,default:"Success"},titleFailed:{type:String,default:"Failure"},titleProcessing:{type:String,default:"Processing"}},setup(t){const e=t,n=et(()=>e.status==="Done"?e.titleDone:e.status==="Failed"?e.titleFailed:e.titleProcessing),r=et(()=>e.status==="Done"?e.iconDone:e.status==="Failed"?e.iconFailed:e.iconProcessing);return(i,s)=>(P(),D("div",{class:"status-icon",title:n.value},[t.icon?(P(),D(He,{key:0},[t.status==="Done"?(P(),D("svg",Lvr,s[0]||(s[0]=[b("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},null,-1)]))):t.status==="Failed"?(P(),D("svg",Avr,s[1]||(s[1]=[b("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null,-1)]))):(P(),D("div",$vr))],64)):(P(),D("span",kvr,le(r.value),1))],8,Cvr))}},Rvr=ct(Pvr,[["__scopeId","data-v-b3d110c2"]]),Mvr={name:"DropdownSubmenu",props:{title:{type:String,required:!0},icon:{type:String,required:!1,default:null}},setup(){const t=We(!1);let e=null;const n=()=>{e&&(clearTimeout(e),e=null),t.value||(t.value=!0,Ge(()=>{Ne.replace()}))},r=()=>{e=setTimeout(()=>{t.value=!1,e=null},150)};return Ii(()=>{Ge(()=>{Ne.replace()})}),{isOpen:t,openSubmenu:n,closeSubmenu:r}}},Dvr=["aria-expanded"],Nvr={class:"flex items-center gap-2"},Ivr=["data-feather"],Hvr={class:"truncate"},Vvr={key:0,class:"absolute top-0 left-full mt-[-1px] ml-1 w-auto min-w-[10rem] origin-top-left rounded-md bg-white dark:bg-gray-800 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none z-20 py-1",role:"menu","aria-orientation":"vertical","aria-labelledby":"submenu-button"};function qvr(t,e,n,r,i,s){return P(),D("div",{class:"relative",onMouseenter:e[0]||(e[0]=(...o)=>r.openSubmenu&&r.openSubmenu(...o)),onMouseleave:e[1]||(e[1]=(...o)=>r.closeSubmenu&&r.closeSubmenu(...o))},[b("button",{type:"button",class:"w-full flex items-center justify-between px-4 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-700",role:"menuitem",tabindex:"-1","aria-haspopup":!0,"aria-expanded":r.isOpen},[b("div",Nvr,[n.icon?(P(),D("i",{key:0,"data-feather":n.icon,class:"w-4 h-4 flex-shrink-0"},null,8,Ivr)):ne("",!0),b("span",Hvr,le(n.title),1)]),e[2]||(e[2]=b("i",{"data-feather":"chevron-right",class:"w-4 h-4 ml-auto flex-shrink-0 text-gray-400"},null,-1))],8,Dvr),te(Jn,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:Ve(()=>[r.isOpen?(P(),D("div",Vvr,[ar(t.$slots,"default",{},void 0,!0)])):ne("",!0)]),_:3})],32)}const Hoe=ct(Mvr,[["render",qvr],["__scopeId","data-v-6d202a8d"]]),Uvr=[nJ(),rJ(),jK(),IJ(),bJ(),BK(),FK(),nn.allowMultipleSelections.of(!0),hJ(),BE(xJ,{fallback:!0}),LJ(),Pee(),Iee(),GK(),WK(),YK(),XSt(),q4.of([...Dee,...pee,...Eee,...qJ,...QJ,...dw,...qee])],Bvr="modulepreload",zvr=function(t){return"/"+t},oY={},xe=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=zvr(l),l in oY)return;oY[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Bvr,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};function De(t){return new ri(H3.define(t))}function W2(t){return xe(()=>Promise.resolve().then(()=>zPt),void 0).then(e=>e.sql({dialect:e[t]}))}const Xvr=[ye.of({name:"C",extensions:["c","h","ino"],load(){return xe(()=>Promise.resolve().then(()=>eH),void 0).then(t=>t.cpp())}}),ye.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return xe(()=>Promise.resolve().then(()=>eH),void 0).then(t=>t.cpp())}}),ye.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return W2("Cassandra")}}),ye.of({name:"CSS",extensions:["css"],load(){return xe(()=>Promise.resolve().then(()=>XLt),void 0).then(t=>t.css())}}),ye.of({name:"Go",extensions:["go"],load(){return xe(()=>import("./index-DvIYZByZ.js"),[]).then(t=>t.go())}}),ye.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return xe(()=>Promise.resolve().then(()=>ZLt),void 0).then(t=>t.html())}}),ye.of({name:"Java",extensions:["java"],load(){return xe(()=>Promise.resolve().then(()=>u$t),void 0).then(t=>t.java())}}),ye.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript())}}),ye.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return xe(()=>Promise.resolve().then(()=>nAt),void 0).then(t=>t.json())}}),ye.of({name:"JSX",extensions:["jsx"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript({jsx:!0}))}}),ye.of({name:"LESS",extensions:["less"],load(){return xe(()=>import("./index-8x9TDz4s.js"),[]).then(t=>t.less())}}),ye.of({name:"Liquid",extensions:["liquid"],load(){return xe(()=>import("./index-Ohe8Pq32.js"),[]).then(t=>t.liquid())}}),ye.of({name:"MariaDB SQL",load(){return W2("MariaSQL")}}),ye.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return xe(()=>Promise.resolve().then(()=>HAt),void 0).then(t=>t.markdown())}}),ye.of({name:"MS SQL",load(){return W2("MSSQL")}}),ye.of({name:"MySQL",load(){return W2("MySQL")}}),ye.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return xe(()=>Promise.resolve().then(()=>Pkt),void 0).then(t=>t.php())}}),ye.of({name:"PLSQL",extensions:["pls"],load(){return W2("PLSQL")}}),ye.of({name:"PostgreSQL",load(){return W2("PostgreSQL")}}),ye.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return xe(()=>Promise.resolve().then(()=>MCt),void 0).then(t=>t.python())}}),ye.of({name:"Rust",extensions:["rs"],load(){return xe(()=>Promise.resolve().then(()=>Jkt),void 0).then(t=>t.rust())}}),ye.of({name:"Sass",extensions:["sass"],load(){return xe(()=>import("./index-MPdHhonI.js"),[]).then(t=>t.sass({indented:!0}))}}),ye.of({name:"SCSS",extensions:["scss"],load(){return xe(()=>import("./index-MPdHhonI.js"),[]).then(t=>t.sass())}}),ye.of({name:"SQL",extensions:["sql"],load(){return W2("StandardSQL")}}),ye.of({name:"SQLite",load(){return W2("SQLite")}}),ye.of({name:"TSX",extensions:["tsx"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript({jsx:!0,typescript:!0}))}}),ye.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return xe(()=>Promise.resolve().then(()=>b8),void 0).then(t=>t.javascript({typescript:!0}))}}),ye.of({name:"WebAssembly",extensions:["wat","wast"],load(){return xe(()=>import("./index-dcYUeJVK.js"),[]).then(t=>t.wast())}}),ye.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return xe(()=>Promise.resolve().then(()=>fRt),void 0).then(t=>t.xml())}}),ye.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return xe(()=>Promise.resolve().then(()=>zRt),void 0).then(t=>t.yaml())}}),ye.of({name:"APL",extensions:["dyalog","apl"],load(){return xe(()=>import("./apl-B4CMkyY2.js"),[]).then(t=>De(t.apl))}}),ye.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return xe(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(t=>De(t.asciiArmor))}}),ye.of({name:"ASN.1",extensions:["asn","asn1"],load(){return xe(()=>import("./asn1-EdZsLKOL.js"),[]).then(t=>De(t.asn1({})))}}),ye.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return xe(()=>import("./asterisk-B-8jnY81.js"),[]).then(t=>De(t.asterisk))}}),ye.of({name:"Brainfuck",extensions:["b","bf"],load(){return xe(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(t=>De(t.brainfuck))}}),ye.of({name:"Cobol",extensions:["cob","cpy"],load(){return xe(()=>import("./cobol-CWcv1MsR.js"),[]).then(t=>De(t.cobol))}}),ye.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.csharp))}}),ye.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return xe(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>De(t.clojure))}}),ye.of({name:"ClojureScript",extensions:["cljs"],load(){return xe(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>De(t.clojure))}}),ye.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return xe(()=>import("./css-BnMrqG3P.js"),[]).then(t=>De(t.gss))}}),ye.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return xe(()=>import("./cmake-BQqOBYOt.js"),[]).then(t=>De(t.cmake))}}),ye.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return xe(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(t=>De(t.coffeeScript))}}),ye.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return xe(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(t=>De(t.commonLisp))}}),ye.of({name:"Cypher",extensions:["cyp","cypher"],load(){return xe(()=>import("./cypher-C_CwsFkJ.js"),[]).then(t=>De(t.cypher))}}),ye.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return xe(()=>import("./python-BuPzkPfP.js"),[]).then(t=>De(t.cython))}}),ye.of({name:"Crystal",extensions:["cr"],load(){return xe(()=>import("./crystal-SjHAIU92.js"),[]).then(t=>De(t.crystal))}}),ye.of({name:"D",extensions:["d"],load(){return xe(()=>import("./d-pRatUO7H.js"),[]).then(t=>De(t.d))}}),ye.of({name:"Dart",extensions:["dart"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.dart))}}),ye.of({name:"diff",extensions:["diff","patch"],load(){return xe(()=>import("./diff-DbItnlRl.js"),[]).then(t=>De(t.diff))}}),ye.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return xe(()=>import("./dockerfile-BU1Ap__c.js"),__vite__mapDeps([0,1])).then(t=>De(t.dockerFile))}}),ye.of({name:"DTD",extensions:["dtd"],load(){return xe(()=>import("./dtd-DF_7sFjM.js"),[]).then(t=>De(t.dtd))}}),ye.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return xe(()=>import("./dylan-DwRh75JA.js"),[]).then(t=>De(t.dylan))}}),ye.of({name:"EBNF",load(){return xe(()=>import("./ebnf-CDyGwa7X.js"),[]).then(t=>De(t.ebnf))}}),ye.of({name:"ECL",extensions:["ecl"],load(){return xe(()=>import("./ecl-Cabwm37j.js"),[]).then(t=>De(t.ecl))}}),ye.of({name:"edn",extensions:["edn"],load(){return xe(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>De(t.clojure))}}),ye.of({name:"Eiffel",extensions:["e"],load(){return xe(()=>import("./eiffel-CnydiIhH.js"),[]).then(t=>De(t.eiffel))}}),ye.of({name:"Elm",extensions:["elm"],load(){return xe(()=>import("./elm-vLlmbW-K.js"),[]).then(t=>De(t.elm))}}),ye.of({name:"Erlang",extensions:["erl"],load(){return xe(()=>import("./erlang-BNw1qcRV.js"),[]).then(t=>De(t.erlang))}}),ye.of({name:"Esper",load(){return xe(()=>import("./sql-D0XecflT.js"),[]).then(t=>De(t.esper))}}),ye.of({name:"Factor",extensions:["factor"],load(){return xe(()=>import("./factor-BPndPnYX.js"),__vite__mapDeps([2,1])).then(t=>De(t.factor))}}),ye.of({name:"FCL",load(){return xe(()=>import("./fcl-Kvtd6kyn.js"),[]).then(t=>De(t.fcl))}}),ye.of({name:"Forth",extensions:["forth","fth","4th"],load(){return xe(()=>import("./forth-Ffai-XNe.js"),[]).then(t=>De(t.forth))}}),ye.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return xe(()=>import("./fortran-DYz_wnZ1.js"),[]).then(t=>De(t.fortran))}}),ye.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return xe(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>De(t.fSharp))}}),ye.of({name:"Gas",extensions:["s"],load(){return xe(()=>import("./gas-Bneqetm1.js"),[]).then(t=>De(t.gas))}}),ye.of({name:"Gherkin",extensions:["feature"],load(){return xe(()=>import("./gherkin-heZmZLOM.js"),[]).then(t=>De(t.gherkin))}}),ye.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return xe(()=>import("./groovy-D9Dt4D0W.js"),[]).then(t=>De(t.groovy))}}),ye.of({name:"Haskell",extensions:["hs"],load(){return xe(()=>import("./haskell-BWDZoCOh.js"),[]).then(t=>De(t.haskell))}}),ye.of({name:"Haxe",extensions:["hx"],load(){return xe(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>De(t.haxe))}}),ye.of({name:"HXML",extensions:["hxml"],load(){return xe(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>De(t.hxml))}}),ye.of({name:"HTTP",load(){return xe(()=>import("./http-DBlCnlav.js"),[]).then(t=>De(t.http))}}),ye.of({name:"IDL",extensions:["pro"],load(){return xe(()=>import("./idl-BEugSyMb.js"),[]).then(t=>De(t.idl))}}),ye.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return xe(()=>import("./javascript-qCveANmP.js"),[]).then(t=>De(t.jsonld))}}),ye.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load(){return xe(()=>import("./jinja2-C4DGRd-O.js"),[]).then(t=>De(t.jinja2))}}),ye.of({name:"Julia",extensions:["jl"],load(){return xe(()=>import("./julia-DuME0IfC.js"),[]).then(t=>De(t.julia))}}),ye.of({name:"Kotlin",extensions:["kt","kts"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.kotlin))}}),ye.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return xe(()=>import("./livescript-BwQOo05w.js"),[]).then(t=>De(t.liveScript))}}),ye.of({name:"Lua",extensions:["lua"],load(){return xe(()=>Promise.resolve().then(()=>bMt),void 0).then(t=>De(t.lua))}}),ye.of({name:"mIRC",extensions:["mrc"],load(){return xe(()=>import("./mirc-CjQqDB4T.js"),[]).then(t=>De(t.mirc))}}),ye.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return xe(()=>import("./mathematica-DTrFuWx2.js"),[]).then(t=>De(t.mathematica))}}),ye.of({name:"Modelica",extensions:["mo"],load(){return xe(()=>import("./modelica-Dc1JOy9r.js"),[]).then(t=>De(t.modelica))}}),ye.of({name:"MUMPS",extensions:["mps"],load(){return xe(()=>import("./mumps-BT43cFF4.js"),[]).then(t=>De(t.mumps))}}),ye.of({name:"Mbox",extensions:["mbox"],load(){return xe(()=>import("./mbox-CNhZ1qSd.js"),[]).then(t=>De(t.mbox))}}),ye.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return xe(()=>import("./nginx-DdIZxoE0.js"),[]).then(t=>De(t.nginx))}}),ye.of({name:"NSIS",extensions:["nsh","nsi"],load(){return xe(()=>import("./nsis-ClDXqMnM.js"),__vite__mapDeps([3,1])).then(t=>De(t.nsis))}}),ye.of({name:"NTriples",extensions:["nt","nq"],load(){return xe(()=>import("./ntriples-BfvgReVJ.js"),[]).then(t=>De(t.ntriples))}}),ye.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.objectiveC))}}),ye.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.objectiveCpp))}}),ye.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return xe(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>De(t.oCaml))}}),ye.of({name:"Octave",extensions:["m"],load(){return xe(()=>import("./octave-Ck1zUtKM.js"),[]).then(t=>De(t.octave))}}),ye.of({name:"Oz",extensions:["oz"],load(){return xe(()=>import("./oz-BzwKVEFT.js"),[]).then(t=>De(t.oz))}}),ye.of({name:"Pascal",extensions:["p","pas"],load(){return xe(()=>import("./pascal--L3eBynH.js"),[]).then(t=>De(t.pascal))}}),ye.of({name:"Perl",extensions:["pl","pm"],load(){return xe(()=>import("./perl-CdXCOZ3F.js"),[]).then(t=>De(t.perl))}}),ye.of({name:"Pig",extensions:["pig"],load(){return xe(()=>import("./pig-CevX1Tat.js"),[]).then(t=>De(t.pig))}}),ye.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return xe(()=>import("./powershell-CFHJl5sT.js"),[]).then(t=>De(t.powerShell))}}),ye.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return xe(()=>import("./properties-C78fOPTZ.js"),[]).then(t=>De(t.properties))}}),ye.of({name:"ProtoBuf",extensions:["proto"],load(){return xe(()=>import("./protobuf-ChK-085T.js"),[]).then(t=>De(t.protobuf))}}),ye.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return xe(()=>import("./pug-DukmZTjD.js"),__vite__mapDeps([4,5])).then(t=>De(t.pug))}}),ye.of({name:"Puppet",extensions:["pp"],load(){return xe(()=>import("./puppet-DMA9R1ak.js"),[]).then(t=>De(t.puppet))}}),ye.of({name:"Q",extensions:["q"],load(){return xe(()=>import("./q-ZnEupP5q.js"),[]).then(t=>De(t.q))}}),ye.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return xe(()=>import("./r-B6wPVr8A.js"),[]).then(t=>De(t.r))}}),ye.of({name:"RPM Changes",load(){return xe(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>De(t.rpmChanges))}}),ye.of({name:"RPM Spec",extensions:["spec"],load(){return xe(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>De(t.rpmSpec))}}),ye.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return xe(()=>Promise.resolve().then(()=>TMt),void 0).then(t=>De(t.ruby))}}),ye.of({name:"SAS",extensions:["sas"],load(){return xe(()=>import("./sas-B4kiWyti.js"),[]).then(t=>De(t.sas))}}),ye.of({name:"Scala",extensions:["scala"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.scala))}}),ye.of({name:"Scheme",extensions:["scm","ss"],load(){return xe(()=>import("./scheme-C41bIUwD.js"),[]).then(t=>De(t.scheme))}}),ye.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return xe(()=>Promise.resolve().then(()=>nMt),void 0).then(t=>De(t.shell))}}),ye.of({name:"Sieve",extensions:["siv","sieve"],load(){return xe(()=>import("./sieve-C3Gn_uJK.js"),[]).then(t=>De(t.sieve))}}),ye.of({name:"Smalltalk",extensions:["st"],load(){return xe(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(t=>De(t.smalltalk))}}),ye.of({name:"Solr",load(){return xe(()=>import("./solr-DehyRSwq.js"),[]).then(t=>De(t.solr))}}),ye.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return xe(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>De(t.sml))}}),ye.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return xe(()=>import("./sparql-DkYu6x3z.js"),[]).then(t=>De(t.sparql))}}),ye.of({name:"Spreadsheet",alias:["excel","formula"],load(){return xe(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(t=>De(t.spreadsheet))}}),ye.of({name:"Squirrel",extensions:["nut"],load(){return xe(()=>import("./clike-Cr_nJiF2.js"),[]).then(t=>De(t.squirrel))}}),ye.of({name:"Stylus",extensions:["styl"],load(){return xe(()=>import("./stylus-BdAi1jBa.js"),[]).then(t=>De(t.stylus))}}),ye.of({name:"Swift",extensions:["swift"],load(){return xe(()=>import("./swift-BzpIVaGY.js"),[]).then(t=>De(t.swift))}}),ye.of({name:"sTeX",load(){return xe(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>De(t.stex))}}),ye.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return xe(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>De(t.stex))}}),ye.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return xe(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>De(t.verilog))}}),ye.of({name:"Tcl",extensions:["tcl"],load(){return xe(()=>import("./tcl-DVfN8rqt.js"),[]).then(t=>De(t.tcl))}}),ye.of({name:"Textile",extensions:["textile"],load(){return xe(()=>import("./textile-CnDTJFAw.js"),[]).then(t=>De(t.textile))}}),ye.of({name:"TiddlyWiki",load(){return xe(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(t=>De(t.tiddlyWiki))}}),ye.of({name:"Tiki wiki",load(){return xe(()=>import("./tiki-DGYXhP31.js"),[]).then(t=>De(t.tiki))}}),ye.of({name:"TOML",extensions:["toml"],load(){return xe(()=>import("./toml-BXUEaScT.js"),[]).then(t=>De(t.toml))}}),ye.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return xe(()=>import("./troff-wAsdV37c.js"),[]).then(t=>De(t.troff))}}),ye.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return xe(()=>import("./ttcn-CfJYG6tj.js"),[]).then(t=>De(t.ttcn))}}),ye.of({name:"TTCN_CFG",extensions:["cfg"],load(){return xe(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(t=>De(t.ttcnCfg))}}),ye.of({name:"Turtle",extensions:["ttl"],load(){return xe(()=>import("./turtle-B1tBg_DP.js"),[]).then(t=>De(t.turtle))}}),ye.of({name:"Web IDL",extensions:["webidl"],load(){return xe(()=>import("./webidl-ZXfAyPTL.js"),[]).then(t=>De(t.webIDL))}}),ye.of({name:"VB.NET",extensions:["vb"],load(){return xe(()=>import("./vb-CmGdzxic.js"),[]).then(t=>De(t.vb))}}),ye.of({name:"VBScript",extensions:["vbs"],load(){return xe(()=>import("./vbscript-BuJXcnF6.js"),[]).then(t=>De(t.vbScript))}}),ye.of({name:"Velocity",extensions:["vtl"],load(){return xe(()=>import("./velocity-D8B20fx6.js"),[]).then(t=>De(t.velocity))}}),ye.of({name:"Verilog",extensions:["v"],load(){return xe(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>De(t.verilog))}}),ye.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return xe(()=>import("./vhdl-lSbBsy5d.js"),[]).then(t=>De(t.vhdl))}}),ye.of({name:"XQuery",extensions:["xy","xquery"],load(){return xe(()=>import("./xquery-CQfU5ijd.js"),[]).then(t=>De(t.xQuery))}}),ye.of({name:"Yacas",extensions:["ys"],load(){return xe(()=>import("./yacas-BJ4BC0dw.js"),[]).then(t=>De(t.yacas))}}),ye.of({name:"Z80",extensions:["z80"],load(){return xe(()=>import("./z80-Hz9HOZM7.js"),[]).then(t=>De(t.z80))}}),ye.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return xe(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>De(t.mscgen))}}),ye.of({name:"Xù",extensions:["xu"],load(){return xe(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>De(t.xu))}}),ye.of({name:"MsGenny",extensions:["msgenny"],load(){return xe(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>De(t.msgenny))}}),ye.of({name:"Vue",extensions:["vue"],load(){return xe(()=>Promise.resolve().then(()=>KRt),void 0).then(t=>t.vue())}}),ye.of({name:"Angular Template",load(){return xe(()=>import("./index-DMjOaJIL.js"),[]).then(t=>t.angular())}})],Fvr=t=>{let e=[];for(let n of t.selection.ranges){const r=t.doc.lineAt(n.from),i=t.doc.lineAt(n.to);for(let s=r.number;s<=i.number;s++)e.some(o=>o.number===s)||e.push(t.doc.line(s))}return e},T3=(t,e,n)=>n&&e===0||!n&&e===t.doc.length?!1:(n?t.doc.sliceString(e-1,e):t.doc.sliceString(e,e+1))!==` `,jvr={name:"MarkdownEditor",components:{DropdownMenu:YC,DropdownSubmenu:Hoe,ToolbarButton:tT},props:{modelValue:{type:String,required:!0},editorClass:{type:[String,Object,Array],default:""},toolbarClass:{type:[String,Object,Array],default:""},buttonClass:{type:[String,Object,Array],default:""},toolbarButtonIconSize:{type:Number,default:16},theme:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{editorView:null,updatingFromSelf:!1}},computed:{toolbarButtonBaseClass(){return this.buttonClass||"px-1.5 py-1 bg-white dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded hover:bg-gray-200 dark:hover:bg-gray-500 text-sm focus:outline-none focus:ring-1 focus:ring-blue-400 dark:text-gray-200 flex items-center justify-center w-7 h-7"},iconSize(){return this.toolbarButtonIconSize},svgIconSizeClass(){const t=Math.round(this.iconSize/4);return`w-${t} h-${t}`}},methods:{getButtonTitle(t){return{bold:"Bold (Ctrl+B)",italic:"Italic (Ctrl+I)",strikethrough:"Strikethrough",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",blockquote:"Blockquote",ul:"Unordered List",ol:"Ordered List",codeblock:"Code Block",inlinecode:"Inline Code",link:"Insert Link",image:"Insert Image",hr:"Horizontal Rule",latex:"Inline LaTeX ($...$)",latexBlock:"LaTeX Block ($$...$$)",latexEnvEquation:"Equation Environment",latexEnvAlign:"Align Environment",latexEnvGather:"Gather Environment",latexEnvEquationStar:"Equation* Environment (Unnumbered)",latexEnvAlignStar:"Align* Environment (Unnumbered)",latexEnvGatherStar:"Gather* Environment (Unnumbered)"}[t]||t},initializeEditor(){this.editorView&&this.editorView.destroy();const t=nn.create({doc:this.modelValue,extensions:[Uvr,q4.of([Tee]),Aw({base:Pp,codeLanguages:Xvr}),this.theme,rt.lineWrapping,rt.updateListener.of(e=>{e.docChanged&&!this.updatingFromSelf&&this.$emit("update:modelValue",e.state.doc.toString())}),rt.contentAttributes.of({"aria-label":"Markdown editor content"})]});this.editorView=new rt({state:t,parent:this.$refs.editorRef})},destroyEditor(){this.editorView&&(this.editorView.destroy(),this.editorView=null)},applyFormat(t,e={}){if(!this.editorView)return;const n=this.editorView,r=n.state;let i=[];const s=r.selection.main,o=r.doc.sliceString(s.from,s.to);let a="",l="",c="",u=!1;switch(t){case"bold":a="**",l="**";break;case"italic":a="_",l="_";break;case"strikethrough":a="~~",l="~~";break;case"inlinecode":a="`",l="`";break;case"latex":a="$",l="$";break;case"h1":c="# ";break;case"h2":c="## ";break;case"h3":c="### ";break;case"blockquote":c="> ";break;case"ul":c="- ";break;case"ol":c="1. ";break;case"latexBlock":a=`$$ `,l=` $$`,u=!0;break;case"codeblock":a="```"+(e.language||"")+` diff --git a/web/dist/assets/index-BtGV7sqN.js b/web/dist/assets/index-DMjOaJIL.js similarity index 98% rename from web/dist/assets/index-BtGV7sqN.js rename to web/dist/assets/index-DMjOaJIL.js index 388985f4..35f0b7bd 100644 --- a/web/dist/assets/index-BtGV7sqN.js +++ b/web/dist/assets/index-DMjOaJIL.js @@ -1 +1 @@ -import{b as q,d as P,q as g,r as l,L as c,u as i,s as R,t as r,E as p}from"./index-Ywe7hT58.js";const b=1,$=33,m=34,v=35,x=36,d=new p(O=>{let e=O.pos;for(;;){if(O.next==10){O.advance();break}else if(O.next==123&&O.peek(1)==123||O.next<0)break;O.advance()}O.pos>e&&O.acceptToken(b)});function n(O,e,a){return new p(t=>{let u=t.pos;for(;t.next!=O&&t.next>=0&&(a||t.next!=38&&(t.next!=123||t.peek(1)!=123));)t.advance();t.pos>u&&t.acceptToken(e)})}const W=n(39,$,!1),C=n(34,m,!1),T=n(39,v,!0),f=n(34,x,!0),A=c.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<O.name=="InterpolationContent"?o:null)}),y=Q.configure({wrap:l((O,e)=>{var a;return O.name=="InterpolationContent"?o:O.name!="AttributeInterpolation"?null:((a=O.node.parent)===null||a===void 0?void 0:a.name)=="StatementAttributeValue"?w:o}),top:"Attribute"}),E={parser:U},N={parser:y},s=g();function S(O){return O.configure({wrap:l(z)},"angular")}const k=S(s.language);function z(O,e){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(e.read(O.from,O.to))?N:null;case"Text":return E}return null}function G(O={}){let e=s;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof q))throw new RangeError("The base option must be the result of calling html(...)");e=O.base}return new P(e.language==s.language?k:S(e.language),[e.support,e.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}export{G as angular,k as angularLanguage}; +import{b as q,d as P,q as g,r as l,L as c,u as i,s as R,t as r,E as p}from"./index-D8eUH6YH.js";const b=1,$=33,m=34,v=35,x=36,d=new p(O=>{let e=O.pos;for(;;){if(O.next==10){O.advance();break}else if(O.next==123&&O.peek(1)==123||O.next<0)break;O.advance()}O.pos>e&&O.acceptToken(b)});function n(O,e,a){return new p(t=>{let u=t.pos;for(;t.next!=O&&t.next>=0&&(a||t.next!=38&&(t.next!=123||t.peek(1)!=123));)t.advance();t.pos>u&&t.acceptToken(e)})}const W=n(39,$,!1),C=n(34,m,!1),T=n(39,v,!0),f=n(34,x,!0),A=c.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<O.name=="InterpolationContent"?o:null)}),y=Q.configure({wrap:l((O,e)=>{var a;return O.name=="InterpolationContent"?o:O.name!="AttributeInterpolation"?null:((a=O.node.parent)===null||a===void 0?void 0:a.name)=="StatementAttributeValue"?w:o}),top:"Attribute"}),E={parser:U},N={parser:y},s=g();function S(O){return O.configure({wrap:l(z)},"angular")}const k=S(s.language);function z(O,e){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(e.read(O.from,O.to))?N:null;case"Text":return E}return null}function G(O={}){let e=s;if(O.base){if(O.base.language.name!="html"||!(O.base.language instanceof q))throw new RangeError("The base option must be the result of calling html(...)");e=O.base}return new P(e.language==s.language?k:S(e.language),[e.support,e.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}export{G as angular,k as angularLanguage}; diff --git a/web/dist/assets/index-BLgecc2k.js b/web/dist/assets/index-DvIYZByZ.js similarity index 99% rename from web/dist/assets/index-BLgecc2k.js rename to web/dist/assets/index-DvIYZByZ.js index c08d6f34..53dc3bd5 100644 --- a/web/dist/assets/index-BLgecc2k.js +++ b/web/dist/assets/index-DvIYZByZ.js @@ -1,4 +1,4 @@ -import{L as s,E as R,a as Y,s as x,C as w,t as O,b as d,c as X,d as k,i as h,e as f,f as u,g as y,h as l,j as g,k as j,l as U,m as G,N as b,I as Z}from"./index-Ywe7hT58.js";const _=177,q=179,E=184,v=12,C=13,D=17,z=20,F=25,B=53,N=95,I=142,L=144,A=145,J=148,M=10,H=13,K=32,OO=9,$=47,QO=41,eO=125,aO=new R((Q,e)=>{for(let n=0,a=Q.next;(e.context&&(a<0||a==M||a==H||a==$&&Q.peek(n+1)==$)||a==QO||a==eO)&&Q.acceptToken(_),!(a!=K&&a!=OO);)a=Q.peek(++n)},{contextual:!0});let tO=new Set([N,E,z,v,D,L,A,I,J,C,B,F]);const iO=new w({start:!1,shift:(Q,e)=>e==q?Q:tO.has(e)}),XO=x({"func interface struct chan map const type var":O.definitionKeyword,"import package":O.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":O.controlKeyword,range:O.keyword,Bool:O.bool,String:O.string,Rune:O.character,Number:O.number,Nil:O.null,VariableName:O.variableName,DefName:O.definition(O.variableName),TypeName:O.typeName,LabelName:O.labelName,FieldName:O.propertyName,"FunctionDecl/DefName":O.function(O.definition(O.variableName)),"TypeSpec/DefName":O.definition(O.typeName),"CallExpr/VariableName":O.function(O.variableName),LineComment:O.lineComment,BlockComment:O.blockComment,LogicOp:O.logicOperator,ArithOp:O.arithmeticOperator,BitOp:O.bitwiseOperator,"DerefOp .":O.derefOperator,"UpdateOp IncDecOp":O.updateOperator,CompareOp:O.compareOperator,"= :=":O.definitionOperator,"<-":O.operator,'~ "*"':O.modifier,"; ,":O.separator,"... :":O.punctuation,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),nO={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},PO=s.deserialize({version:14,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xQ(R&QQ(W&UR(X&VT%|#u&OhqOScw!U!V#O#k#n&|'Y+gU$Q!R$R&jU$W!T$X&uQ$e!WY%y#u&O'})|*wQ)`']V-S'W)W*kS&[#y&]S*R(S(oR*z*QY&Y#y&](S(o*QR*W(['``OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:iO,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[XO],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~&UP%l~!_!`&X~&^O#U~~&cR%j~vw&l!_!`&X#Q#R&q~&qO%p~~&vP%o~!_!`&X~'OWd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k<%lO&y~'mOd~~'pRO;'S&y;'S;=`'y;=`O&y~(OXd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x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~4gP;=`<%l3x~4oO!W~~4tO!V~~4yP%i~!_!`&X~5RV%O~!Q![5h!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~5o^aQ%O~!O!P*`!Q![5h!c!g3x!g!h6k!h!}3x#R#S4|#T#X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[aO,1,2,new Y("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:Q=>nO[Q]||-1}],tokenPrec:5451}),oO=[X("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),X("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),X("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),X("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),X("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),X("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),X("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),X(`select { +import{L as s,E as R,a as Y,s as x,C as w,t as O,b as d,c as X,d as k,i as h,e as f,f as u,g as y,h as l,j as g,k as j,l as U,m as G,N as b,I as Z}from"./index-D8eUH6YH.js";const _=177,q=179,E=184,v=12,C=13,D=17,z=20,F=25,B=53,N=95,I=142,L=144,A=145,J=148,M=10,H=13,K=32,OO=9,$=47,QO=41,eO=125,aO=new R((Q,e)=>{for(let n=0,a=Q.next;(e.context&&(a<0||a==M||a==H||a==$&&Q.peek(n+1)==$)||a==QO||a==eO)&&Q.acceptToken(_),!(a!=K&&a!=OO);)a=Q.peek(++n)},{contextual:!0});let tO=new Set([N,E,z,v,D,L,A,I,J,C,B,F]);const iO=new w({start:!1,shift:(Q,e)=>e==q?Q:tO.has(e)}),XO=x({"func interface struct chan map const type var":O.definitionKeyword,"import package":O.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":O.controlKeyword,range:O.keyword,Bool:O.bool,String:O.string,Rune:O.character,Number:O.number,Nil:O.null,VariableName:O.variableName,DefName:O.definition(O.variableName),TypeName:O.typeName,LabelName:O.labelName,FieldName:O.propertyName,"FunctionDecl/DefName":O.function(O.definition(O.variableName)),"TypeSpec/DefName":O.definition(O.typeName),"CallExpr/VariableName":O.function(O.variableName),LineComment:O.lineComment,BlockComment:O.blockComment,LogicOp:O.logicOperator,ArithOp:O.arithmeticOperator,BitOp:O.bitwiseOperator,"DerefOp .":O.derefOperator,"UpdateOp IncDecOp":O.updateOperator,CompareOp:O.compareOperator,"= :=":O.definitionOperator,"<-":O.operator,'~ "*"':O.modifier,"; ,":O.separator,"... :":O.punctuation,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),nO={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296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-dS#w|!pS$w!j-TQ&T#xQ(R&QQ(W&UR(X&VT%|#u&OhqOScw!U!V#O#k#n&|'Y+gU$Q!R$R&jU$W!T$X&uQ$e!WY%y#u&O'})|*wQ)`']V-S'W)W*kS&[#y&]S*R(S(oR*z*QY&Y#y&](S(o*QR*W(['``OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:iO,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[XO],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~&UP%l~!_!`&X~&^O#U~~&cR%j~vw&l!_!`&X#Q#R&q~&qO%p~~&vP%o~!_!`&X~'OWd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k<%lO&y~'mOd~~'pRO;'S&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n~!_!`&X~3}V%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~4gP;=`<%l3x~4oO!W~~4tO!V~~4yP%i~!_!`&X~5RV%O~!Q![5h!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~5o^aQ%O~!O!P*`!Q![5h!c!g3x!g!h6k!h!}3x#R#S4|#T#X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[aO,1,2,new Y("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:Q=>nO[Q]||-1}],tokenPrec:5451}),oO=[X("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),X("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),X("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),X("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),X("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),X("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),X("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),X("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),X(`select { \${} }`,{label:"select",detail:"statement",type:"keyword"}),X("case ${}:\n${}",{label:"case",type:"keyword"}),X("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),X("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),X("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),X(`if \${} { \${} diff --git a/web/dist/assets/index-CUkoV-qp.js b/web/dist/assets/index-MPdHhonI.js similarity index 99% rename from web/dist/assets/index-CUkoV-qp.js rename to web/dist/assets/index-MPdHhonI.js index 10fd0281..2bfe86b0 100644 --- a/web/dist/assets/index-CUkoV-qp.js +++ b/web/dist/assets/index-MPdHhonI.js @@ -1 +1 @@ -import{L as G,E as i,s as u,C as w,t as $,n as v,b as V,d as b,g,f as U,l as q,h as E}from"./index-Ywe7hT58.js";const z=154,X=155,C=156,N=1,D=2,f=3,I=157,F=158,Z=4,K=5,L=159,p=160,W=161,s=162,T=6,h=7,A=8,B=9,c=0,R=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],M=58,J=40,P=95,H=91,l=45,OO=46,m=35,$O=37,j=123,eO=125,o=47,S=42,r=10,_=61,aO=43,QO=38;function d(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function x(O){return O>=48&&O<=57}function k(O){let e;return O.next==o&&((e=O.peek(1))==o||e==S)}const tO=new i((O,e)=>{if(e.dialectEnabled(c)){let a;if(O.next<0&&e.canShift(W))O.acceptToken(W);else if(((a=O.peek(-1))==r||a<0)&&e.canShift(p)){let Q=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),Q++;O.next==r||k(O)?O.acceptToken(p,-Q):Q&&O.acceptToken(s)}else if(O.next==r)O.acceptToken(L,1);else if(R.includes(O.next)){for(O.advance();O.next!=r&&R.includes(O.next);)O.advance();O.acceptToken(s)}}else{let a=0;for(;R.includes(O.next);)O.advance(),a++;a&&O.acceptToken(s)}},{contextual:!0}),nO=new i((O,e)=>{if(k(O)){if(O.advance(),e.dialectEnabled(c)){let a=-1;for(let Q=1;;Q++){let t=O.peek(-Q-1);if(t==r||t<0){a=Q+1;break}else if(!R.includes(t))break}if(a>-1){let Q=O.next==S,t=0;for(O.advance();O.next>=0;)if(O.next==r){O.advance();let n=0;for(;O.next!=r&&R.includes(O.next);)n++,O.advance();if(n=0;)O.advance();O.acceptToken(T)}else{for(O.advance();O.next>=0;){let{next:a}=O;if(O.advance(),a==S&&O.next==o){O.advance();break}}O.acceptToken(h)}}}),rO=new i((O,e)=>{(O.next==aO||O.next==_)&&e.dialectEnabled(c)&&O.acceptToken(O.next==_?A:B,1)}),RO=new i((O,e)=>{if(!e.dialectEnabled(c))return;let a=e.context.depth;if(O.next<0&&a){O.acceptToken(X);return}if(O.peek(-1)==r){let t=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),t++;t!=a&&O.next!=r&&!k(O)&&(t{for(let a=!1,Q=0,t=0;;t++){let{next:n}=O;if(d(n)||n==l||n==P||a&&x(n))!a&&(n!=l||t>0)&&(a=!0),Q===t&&n==l&&Q++,O.advance();else if(n==m&&O.peek(1)==j){O.acceptToken(K,2);break}else{a&&O.acceptToken(n==J?I:Q==2&&e.canShift(Z)?Z:F);break}}}),lO=new i(O=>{if(O.next==eO){for(O.advance();d(O.next)||O.next==l||O.next==P||x(O.next);)O.advance();O.next==m&&O.peek(1)==j?O.acceptToken(D,2):O.acceptToken(N)}}),oO=new i(O=>{if(R.includes(O.peek(-1))){let{next:e}=O;(d(e)||e==P||e==m||e==OO||e==H||e==M||e==l||e==QO)&&O.acceptToken(C)}}),dO=new i(O=>{if(!R.includes(O.peek(-1))){let{next:e}=O;if(e==$O&&(O.advance(),O.acceptToken(f)),d(e)){do O.advance();while(d(O.next));O.acceptToken(f)}}});function Y(O,e){this.parent=O,this.depth=e,this.hash=(O?O.hash+O.hash<<8:0)+e+(e<<4)}const SO=new Y(null,0),cO=new w({start:SO,shift(O,e,a,Q){return e==z?new Y(O,a.pos-Q.pos):e==X?O.parent:O},hash(O){return O.hash}}),sO=u({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":$.definitionKeyword,"Keyword selector":$.keyword,ControlKeyword:$.controlKeyword,NamespaceName:$.namespace,KeyframeName:$.labelName,TagName:$.tagName,"ClassName Suffix":$.className,PseudoClassName:$.constant($.className),IdName:$.labelName,"FeatureName PropertyName":$.propertyName,AttributeName:$.attributeName,NumberLiteral:$.number,KeywordQuery:$.keyword,UnaryQueryOp:$.operatorKeyword,"CallTag ValueName":$.atom,VariableName:$.variableName,SassVariableName:$.special($.variableName),Callee:$.operatorKeyword,Unit:$.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":$.definitionOperator,MatchOp:$.compareOperator,"ChildOp SiblingOp, LogicOp":$.logicOperator,BinOp:$.arithmeticOperator,"Important Global Default":$.modifier,Comment:$.blockComment,LineComment:$.lineComment,ColorLiteral:$.color,"ParenthesizedContent StringLiteral":$.string,"InterpolationStart InterpolationContinue InterpolationEnd":$.meta,': "..."':$.punctuation,"PseudoOp #":$.derefOperator,"; ,":$.separator,"( )":$.paren,"[ ]":$.squareBracket,"{ }":$.brace}),XO={__proto__:null,not:62,only:62,using:179,as:189,with:193,without:193,hide:207,show:207,from:230,to:232,if:245,through:251,in:257},yO={__proto__:null,url:80,"url-prefix":80,domain:80,regexp:80,lang:94,"nth-child":94,"nth-last-child":94,"nth-of-type":94,"nth-last-of-type":94,dir:94,"host-context":94,selector:172},PO={__proto__:null,"@import":156,"@include":176,"@mixin":182,"@function":182,"@use":186,"@extend":196,"@at-root":200,"@forward":204,"@media":210,"@charset":214,"@namespace":218,"@keyframes":224,"@supports":236,"@if":240,"@else":242,"@for":248,"@each":254,"@while":260,"@debug":264,"@warn":264,"@error":264,"@return":264},mO=G.deserialize({version:14,states:"L|Q`Q+tOOO#fQ+tOOP#m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$R#X#Y@{#Y;'S$R;'S;=`$d<%lO$RZGkUtROy$Rz![$R![!]G}!];'S$R;'S;=`$d<%lO$RXHUS}PyWOy$Rz;'S$R;'S;=`$d<%lO$RZHgS!lROy$Rz;'S$R;'S;=`$d<%lO$RYHxUlQOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$R^IaU![SOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$RZIzV!^PlQOy$Rz!_$R!_!`%c!`!aJa!a;'S$R;'S;=`$d<%lO$RXJhS!^PyWOy$Rz;'S$R;'S;=`$d<%lO$RXJwWOy$Rz!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXKh[!oPyWOy$Rz}$R}!OKa!O!Q$R!Q![Ka![!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXLcS!YPOy$Rz;'S$R;'S;=`$d<%lO$R^LtS!WUOy$Rz;'S$R;'S;=`$d<%lO$R[MTUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RZMjUOy$Rz#b$R#b#cM|#c;'S$R;'S;=`$d<%lO$RZNRUyWOy$Rz#W$R#W#XNe#X;'S$R;'S;=`$d<%lO$RZNlSmRyWOy$Rz;'S$R;'S;=`$d<%lO$RZN{UOy$Rz#f$R#f#gNe#g;'S$R;'S;=`$d<%lO$RZ! dS!eROy$Rz;'S$R;'S;=`$d<%lO$RZ! uS!mROy$Rz;'S$R;'S;=`$d<%lO$R]!!WU!aPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!!mP;=`<%l#r",tokenizers:[RO,oO,lO,dO,iO,tO,nO,rO,0,1,2,3],topRules:{StyleSheet:[0,10],Styles:[1,134]},dialects:{indented:0},specialized:[{term:158,get:O=>XO[O]||-1},{term:157,get:O=>yO[O]||-1},{term:77,get:O=>PO[O]||-1}],tokenPrec:3003}),y=V.define({name:"sass",parser:mO.configure({props:[g.add({Block:q,Comment(O,e){return{from:O.from+2,to:e.sliceDoc(O.to-2,O.to)=="*/"?O.to-2:O.to}}}),U.add({Declaration:E()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),kO=y.configure({dialect:"indented",props:[U.add({"Block RuleSet":O=>O.baseIndent+O.unit}),g.add({Block:O=>({from:O.from,to:O.to})})]}),fO=v(O=>O.name=="VariableName"||O.name=="SassVariableName");function pO(O){return new b(O!=null&&O.indented?kO:y,y.data.of({autocomplete:fO}))}export{pO as sass,fO as sassCompletionSource,y as sassLanguage}; +import{L as G,E as i,s as u,C as w,t as $,n as v,b as V,d as b,g,f as U,l as q,h as E}from"./index-D8eUH6YH.js";const z=154,X=155,C=156,N=1,D=2,f=3,I=157,F=158,Z=4,K=5,L=159,p=160,W=161,s=162,T=6,h=7,A=8,B=9,c=0,R=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],M=58,J=40,P=95,H=91,l=45,OO=46,m=35,$O=37,j=123,eO=125,o=47,S=42,r=10,_=61,aO=43,QO=38;function d(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function x(O){return O>=48&&O<=57}function k(O){let e;return O.next==o&&((e=O.peek(1))==o||e==S)}const tO=new i((O,e)=>{if(e.dialectEnabled(c)){let a;if(O.next<0&&e.canShift(W))O.acceptToken(W);else if(((a=O.peek(-1))==r||a<0)&&e.canShift(p)){let Q=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),Q++;O.next==r||k(O)?O.acceptToken(p,-Q):Q&&O.acceptToken(s)}else if(O.next==r)O.acceptToken(L,1);else if(R.includes(O.next)){for(O.advance();O.next!=r&&R.includes(O.next);)O.advance();O.acceptToken(s)}}else{let a=0;for(;R.includes(O.next);)O.advance(),a++;a&&O.acceptToken(s)}},{contextual:!0}),nO=new i((O,e)=>{if(k(O)){if(O.advance(),e.dialectEnabled(c)){let a=-1;for(let Q=1;;Q++){let t=O.peek(-Q-1);if(t==r||t<0){a=Q+1;break}else if(!R.includes(t))break}if(a>-1){let Q=O.next==S,t=0;for(O.advance();O.next>=0;)if(O.next==r){O.advance();let n=0;for(;O.next!=r&&R.includes(O.next);)n++,O.advance();if(n=0;)O.advance();O.acceptToken(T)}else{for(O.advance();O.next>=0;){let{next:a}=O;if(O.advance(),a==S&&O.next==o){O.advance();break}}O.acceptToken(h)}}}),rO=new i((O,e)=>{(O.next==aO||O.next==_)&&e.dialectEnabled(c)&&O.acceptToken(O.next==_?A:B,1)}),RO=new i((O,e)=>{if(!e.dialectEnabled(c))return;let a=e.context.depth;if(O.next<0&&a){O.acceptToken(X);return}if(O.peek(-1)==r){let t=0;for(;O.next!=r&&R.includes(O.next);)O.advance(),t++;t!=a&&O.next!=r&&!k(O)&&(t{for(let a=!1,Q=0,t=0;;t++){let{next:n}=O;if(d(n)||n==l||n==P||a&&x(n))!a&&(n!=l||t>0)&&(a=!0),Q===t&&n==l&&Q++,O.advance();else if(n==m&&O.peek(1)==j){O.acceptToken(K,2);break}else{a&&O.acceptToken(n==J?I:Q==2&&e.canShift(Z)?Z:F);break}}}),lO=new i(O=>{if(O.next==eO){for(O.advance();d(O.next)||O.next==l||O.next==P||x(O.next);)O.advance();O.next==m&&O.peek(1)==j?O.acceptToken(D,2):O.acceptToken(N)}}),oO=new i(O=>{if(R.includes(O.peek(-1))){let{next:e}=O;(d(e)||e==P||e==m||e==OO||e==H||e==M||e==l||e==QO)&&O.acceptToken(C)}}),dO=new i(O=>{if(!R.includes(O.peek(-1))){let{next:e}=O;if(e==$O&&(O.advance(),O.acceptToken(f)),d(e)){do O.advance();while(d(O.next));O.acceptToken(f)}}});function Y(O,e){this.parent=O,this.depth=e,this.hash=(O?O.hash+O.hash<<8:0)+e+(e<<4)}const SO=new Y(null,0),cO=new w({start:SO,shift(O,e,a,Q){return e==z?new Y(O,a.pos-Q.pos):e==X?O.parent:O},hash(O){return O.hash}}),sO=u({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":$.definitionKeyword,"Keyword selector":$.keyword,ControlKeyword:$.controlKeyword,NamespaceName:$.namespace,KeyframeName:$.labelName,TagName:$.tagName,"ClassName Suffix":$.className,PseudoClassName:$.constant($.className),IdName:$.labelName,"FeatureName PropertyName":$.propertyName,AttributeName:$.attributeName,NumberLiteral:$.number,KeywordQuery:$.keyword,UnaryQueryOp:$.operatorKeyword,"CallTag ValueName":$.atom,VariableName:$.variableName,SassVariableName:$.special($.variableName),Callee:$.operatorKeyword,Unit:$.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":$.definitionOperator,MatchOp:$.compareOperator,"ChildOp SiblingOp, LogicOp":$.logicOperator,BinOp:$.arithmeticOperator,"Important Global Default":$.modifier,Comment:$.blockComment,LineComment:$.lineComment,ColorLiteral:$.color,"ParenthesizedContent StringLiteral":$.string,"InterpolationStart InterpolationContinue InterpolationEnd":$.meta,': "..."':$.punctuation,"PseudoOp #":$.derefOperator,"; ,":$.separator,"( )":$.paren,"[ ]":$.squareBracket,"{ }":$.brace}),XO={__proto__:null,not:62,only:62,using:179,as:189,with:193,without:193,hide:207,show:207,from:230,to:232,if:245,through:251,in:257},yO={__proto__:null,url:80,"url-prefix":80,domain:80,regexp:80,lang:94,"nth-child":94,"nth-last-child":94,"nth-of-type":94,"nth-last-of-type":94,dir:94,"host-context":94,selector:172},PO={__proto__:null,"@import":156,"@include":176,"@mixin":182,"@function":182,"@use":186,"@extend":196,"@at-root":200,"@forward":204,"@media":210,"@charset":214,"@namespace":218,"@keyframes":224,"@supports":236,"@if":240,"@else":242,"@for":248,"@each":254,"@while":260,"@debug":264,"@warn":264,"@error":264,"@return":264},mO=G.deserialize({version:14,states:"L|Q`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#FxO%rQ.jO'#CnO&jQ#dO'#DWO'aQ(pO'#CgO'hQ)OO'#DYO'sQ#dO'#DaO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R;'S;=`$d<%lO$RYHxUlQOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$R^IaU![SOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$RZIzV!^PlQOy$Rz!_$R!_!`%c!`!aJa!a;'S$R;'S;=`$d<%lO$RXJhS!^PyWOy$Rz;'S$R;'S;=`$d<%lO$RXJwWOy$Rz!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXKh[!oPyWOy$Rz}$R}!OKa!O!Q$R!Q![Ka![!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXLcS!YPOy$Rz;'S$R;'S;=`$d<%lO$R^LtS!WUOy$Rz;'S$R;'S;=`$d<%lO$R[MTUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RZMjUOy$Rz#b$R#b#cM|#c;'S$R;'S;=`$d<%lO$RZNRUyWOy$Rz#W$R#W#XNe#X;'S$R;'S;=`$d<%lO$RZNlSmRyWOy$Rz;'S$R;'S;=`$d<%lO$RZN{UOy$Rz#f$R#f#gNe#g;'S$R;'S;=`$d<%lO$RZ! dS!eROy$Rz;'S$R;'S;=`$d<%lO$RZ! uS!mROy$Rz;'S$R;'S;=`$d<%lO$R]!!WU!aPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!!mP;=`<%l#r",tokenizers:[RO,oO,lO,dO,iO,tO,nO,rO,0,1,2,3],topRules:{StyleSheet:[0,10],Styles:[1,134]},dialects:{indented:0},specialized:[{term:158,get:O=>XO[O]||-1},{term:157,get:O=>yO[O]||-1},{term:77,get:O=>PO[O]||-1}],tokenPrec:3003}),y=V.define({name:"sass",parser:mO.configure({props:[g.add({Block:q,Comment(O,e){return{from:O.from+2,to:e.sliceDoc(O.to-2,O.to)=="*/"?O.to-2:O.to}}}),U.add({Declaration:E()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),kO=y.configure({dialect:"indented",props:[U.add({"Block RuleSet":O=>O.baseIndent+O.unit}),g.add({Block:O=>({from:O.from,to:O.to})})]}),fO=v(O=>O.name=="VariableName"||O.name=="SassVariableName");function pO(O){return new b(O!=null&&O.indented?kO:y,y.data.of({autocomplete:fO}))}export{pO as sass,fO as sassCompletionSource,y as sassLanguage}; diff --git a/web/dist/assets/index-C4P78S0C.js b/web/dist/assets/index-Ohe8Pq32.js similarity index 99% rename from web/dist/assets/index-C4P78S0C.js rename to web/dist/assets/index-Ohe8Pq32.js index 1cfc7e9a..02a9706b 100644 --- a/web/dist/assets/index-C4P78S0C.js +++ b/web/dist/assets/index-Ohe8Pq32.js @@ -1 +1 @@ -import{o as h,p as b,q as v,d as y,b as k,r as u,m as T,L as _,s as W,f as R,g as Y,t,j as w,E as P}from"./index-Ywe7hT58.js";const j=1,U=2,X=3,G=180,S=4,z=181,x=5,Z=182,E=6;function V(O){return O>=65&&O<=90||O>=97&&O<=122}const D=new P(O=>{let a=O.pos;for(;;){let{next:e}=O;if(e<0)break;if(e==123){let r=O.peek(1);if(r==123){if(O.pos>a)break;O.acceptToken(j,2);return}else if(r==37){if(O.pos>a)break;let $=2,i=2;for(;;){let n=O.peek($);if(n==32||n==10)++$;else if(n==35)for(++$;;){let Q=O.peek($);if(Q<0||Q==10)break;$++}else if(n==45&&i==2)i=++$;else{let Q=n==101&&O.peek($+1)==110&&O.peek($+2)==100;O.acceptToken(Q?X:U,i);return}}}}if(O.advance(),e==10)break}O.pos>a&&O.acceptToken(G)});function f(O,a,e){return new P(r=>{let $=r.pos;for(;;){let{next:i}=r;if(i==123&&r.peek(1)==37){let n=2;for(;;n++){let s=r.peek(n);if(s!=32&&s!=10)break}let Q="";for(;;n++){let s=r.peek(n);if(!V(s))break;Q+=String.fromCharCode(s)}if(Q==O){if(r.pos>$)break;r.acceptToken(e,2);break}}else if(i<0)break;if(r.advance(),i==10)break}r.pos>$&&r.acceptToken(a)})}const F=f("endcomment",Z,x),C=f("endraw",z,S),N=new P(O=>{if(O.next==35){for(O.advance();!(O.next==10||O.next<0||(O.next==37||O.next==125)&&O.peek(1)==125);)O.advance();O.acceptToken(E)}}),I={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:312,assign:316,capture:322,endcapture:326,increment:330,decrement:334},L={__proto__:null,if:82,endif:86,elsif:90,else:94,unless:100,endunless:104,case:110,endcase:114,when:118,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},A=_.deserialize({version:14,states:"HOQYOPOOOOOP'#F{'#F{OeOaO'#CdOsQhO'#CfO!bQxO'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQW'#Cg'#CgO&`Q!jO,59QO&gQ!jO'#G^OsQhO'#CsOOQW'#G^'#G^OOOP,59l,59lO)PQhO,59lOsQhO,59pOsQhO,59tO)ZQhO,59vOsQhO,59yOsQhO,5:OOsQhO,5:SO!]QhO,5:WO!]QhO,5:`O)`QhO,5:dO)eQhO,5:fO)jQhO,5:hO)oQhO,5:kO)tQhO,5:qOsQhO,5:vOsQhO,5:xOsQhO,5;OOsQhO,5;QOsQhO,5;TOsQhO,5;XOsQhO,5;ZO+TQhO,5;]O+[OPO'#CdOOOP,59o,59oO#{OPO,59oO+jQxO'#DWOOOP,59x,59xO$ZOPO,59xO+oQxO'#DaOOOP,59},59}O$iOPO,59}O+tQxO'#DfOOOP,5:V,5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n1G.nOOQW1G.q1G.qO7QQ!jO1G.qOOQW'#DO'#DOO7[QhO,59hOOQW-E9z-E9zOOOP7+$W7+$WO9UQ!jO1G.qO9`Q!jO1G.uOsQhO1G.yO;uQhO7+$rOOOP7+$r7+$rOOOP7+$v7+$vOOOP7+$z7+$zOOOP7+%P7+%POOOP7+%U7+%UOsQhO'#F}O;}QhO7+%YOOOP7+%Y7+%YOsQhO7+%^OsQhO7+%fOrQ!jO,5;eO@]Q!jO,5;iOBYQ!jO,5;nOCsQ!jO,5;rOEfQhO,5;uOEkQhO,5;yOEpQhO,5dOOOPAN>dAN>dO!7QQhOAN>lOOOPAN>lAN>lO!7YQhOAN>tOOOPAN>tAN>tOsQhO1G0fO!]QhO1G0fO!7bQ!jO7+&{O!8qQ!jO7+'PO!:QQhO7+'WO!;tQhO,5I[O]||-1},{term:37,get:O=>L[O]||-1}],tokenPrec:0});function l(O,a){return O.split(" ").map(e=>({label:e,type:a}))}const q=l("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),p=l("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),d=l("empty forloop tablerowloop in with as contains","keyword"),B=l("first index index0 last length rindex","property"),H=l("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function M(O){var a;let{state:e,pos:r}=O,$=T(e).resolveInner(r,-1).enterUnfinishedNodesBefore(r),i=((a=$.childBefore(r))===null||a===void 0?void 0:a.name)||$.name;if($.name=="FilterName")return{type:"filter",node:$};if(O.explicit&&i=="|")return{type:"filter"};if($.name=="TagName")return{type:"tag",node:$};if(O.explicit&&i=="{%")return{type:"tag"};if($.name=="PropertyName"&&$.parent.name=="MemberExpression")return{type:"property",node:$,target:$.parent};if($.name=="."&&$.parent.name=="MemberExpression")return{type:"property",target:$.parent};if($.name=="MemberExpression"&&i==".")return{type:"property",target:$};if($.name=="VariableName")return{type:"expression",from:$.from};let n=O.matchBefore(/[\w\u00c0-\uffff]+$/);return n?{type:"expression",from:n.from}:O.explicit&&$.name!="CommentText"&&$.name!="StringLiteral"&&$.name!="NumberLiteral"&&$.name!="InlineComment"?{type:"expression"}:null}function K(O,a,e,r){let $=[];for(;;){let i=a.getChild("Expression");if(!i)return[];if(i.name=="forloop")return $.length?[]:B;if(i.name=="tablerowloop")return $.length?[]:H;if(i.name=="VariableName"){$.unshift(O.sliceDoc(i.from,i.to));break}else if(i.name=="MemberExpression"){let n=i.getChild("PropertyName");n&&$.unshift(O.sliceDoc(n.from,n.to)),a=i}else return[]}return r?r($,O,e):[]}function J(O={}){let a=O.filters?O.filters.concat(q):q,e=O.tags?O.tags.concat(p):p,r=O.variables?O.variables.concat(d):d,{properties:$}=O;return i=>{var n;let Q=M(i);if(!Q)return null;let s=(n=Q.from)!==null&&n!==void 0?n:Q.node?Q.node.from:i.pos,o;return Q.type=="filter"?o=a:Q.type=="tag"?o=e:Q.type=="expression"?o=r:o=K(i.state,Q.target,i,$),o.length?{options:o,from:s,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const OO=h.inputHandler.of((O,a,e,r)=>r!="%"||a!=e||O.state.doc.sliceString(a-1,e+1)!="{}"?!1:(O.dispatch(O.state.changeByRange($=>({changes:{from:$.from,to:$.to,insert:"%%"},range:b.cursor($.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function c(O){return a=>{let e=O.test(a.textAfter);return a.lineIndent(a.node.from)+(e?0:a.unit)}}const $O=k.define({name:"liquid",parser:A.configure({props:[W({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":t.keyword,"empty forloop tablerowloop":t.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":t.controlKeyword,"assign capture endcapture":t.definitionKeyword,contains:t.operatorKeyword,"render include":t.moduleKeyword,VariableName:t.variableName,TagName:t.tagName,FilterName:t.function(t.variableName),PropertyName:t.propertyName,CompareOp:t.compareOperator,AssignOp:t.definitionOperator,LogicOp:t.logicOperator,NumberLiteral:t.number,StringLiteral:t.string,BooleanLiteral:t.bool,InlineComment:t.lineComment,CommentText:t.blockComment,"{% %} {{ }}":t.brace,"( )":t.paren,".":t.derefOperator,", .. : |":t.punctuation}),R.add({Tag:w({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":c(/^\s*(\{%-?\s*)?end\w/),IfDirective:c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:c(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),Y.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O){let a=O.firstChild,e=O.lastChild;return!a||a.name!="Tag"?null:{from:a.to,to:e.name=="EndTag"?e.from:O.to}}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),m=v();function g(O){return $O.configure({wrap:u(a=>a.type.isTop?{parser:O.parser,overlay:e=>e.name=="Text"||e.name=="RawText"}:null)},"liquid")}const aO=g(m.language);function iO(O={}){let a=O.base||m,e=a.language==m.language?aO:g(a.language);return new y(e,[a.support,e.data.of({autocomplete:J(O)}),a.language.data.of({closeBrackets:{brackets:["{"]}}),OO])}export{OO as closePercentBrace,iO as liquid,J as liquidCompletionSource,aO as liquidLanguage}; +import{o as h,p as b,q as v,d as y,b as k,r as u,m as T,L as _,s as W,f as R,g as Y,t,j as w,E as P}from"./index-D8eUH6YH.js";const j=1,U=2,X=3,G=180,S=4,z=181,x=5,Z=182,E=6;function V(O){return O>=65&&O<=90||O>=97&&O<=122}const D=new P(O=>{let a=O.pos;for(;;){let{next:e}=O;if(e<0)break;if(e==123){let r=O.peek(1);if(r==123){if(O.pos>a)break;O.acceptToken(j,2);return}else if(r==37){if(O.pos>a)break;let $=2,i=2;for(;;){let n=O.peek($);if(n==32||n==10)++$;else if(n==35)for(++$;;){let Q=O.peek($);if(Q<0||Q==10)break;$++}else if(n==45&&i==2)i=++$;else{let Q=n==101&&O.peek($+1)==110&&O.peek($+2)==100;O.acceptToken(Q?X:U,i);return}}}}if(O.advance(),e==10)break}O.pos>a&&O.acceptToken(G)});function f(O,a,e){return new P(r=>{let $=r.pos;for(;;){let{next:i}=r;if(i==123&&r.peek(1)==37){let n=2;for(;;n++){let s=r.peek(n);if(s!=32&&s!=10)break}let Q="";for(;;n++){let s=r.peek(n);if(!V(s))break;Q+=String.fromCharCode(s)}if(Q==O){if(r.pos>$)break;r.acceptToken(e,2);break}}else if(i<0)break;if(r.advance(),i==10)break}r.pos>$&&r.acceptToken(a)})}const F=f("endcomment",Z,x),C=f("endraw",z,S),N=new P(O=>{if(O.next==35){for(O.advance();!(O.next==10||O.next<0||(O.next==37||O.next==125)&&O.peek(1)==125);)O.advance();O.acceptToken(E)}}),I={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:312,assign:316,capture:322,endcapture:326,increment:330,decrement:334},L={__proto__:null,if:82,endif:86,elsif:90,else:94,unless:100,endunless:104,case:110,endcase:114,when:118,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},A=_.deserialize({version:14,states:"HOQYOPOOOOOP'#F{'#F{OeOaO'#CdOsQhO'#CfO!bQxO'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOO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O'#EtOsQhO'#EyOsQhO'#E}OOQW'#FP'#FPOsQhO'#FSOsQhO'#FWO!]QhO'#FZO!]QhO'#F_OOQW'#Fc'#FcOOQW'#Fe'#FeO3rQhO'#FfOsQhO'#FhOsQhO'#FjOsQhO'#FmOsQhO'#FoOsQhO'#FrOsQhO'#FvOsQhO'#FxOOOP1G0w1G0wOOOP1G/Z1G/ZO3wQhO,59rOOOP1G/d1G/dO3|QhO,59{OOOP1G/i1G/iO4RQhO,5:QOOOP1G/q1G/qO4WQhO,5:]OOOP1G/y1G/yO4]QhO,5:bOOOS-E:O-E:OOOOP1G0U1G0UO4bQxO'#ESOOOQ-E:P-E:POOOP1G0[1G0[O4gQxO'#EYOOOP1G0n1G0nO4lQhO,5;VOOQW1G.n1G.nOOQW1G.q1G.qO7QQ!jO1G.qOOQW'#DO'#DOO7[QhO,59hOOQW-E9z-E9zOOOP7+$W7+$WO9UQ!jO1G.qO9`Q!jO1G.uOsQhO1G.yO;uQhO7+$rOOOP7+$r7+$rOOOP7+$v7+$vOOOP7+$z7+$zOOOP7+%P7+%POOOP7+%U7+%UOsQhO'#F}O;}QhO7+%YOOOP7+%Y7+%YOsQhO7+%^OsQhO7+%fOrQ!jO,5;eO@]Q!jO,5;iOBYQ!jO,5;nOCsQ!jO,5;rOEfQhO,5;uOEkQhO,5;yOEpQhO,5dOOOPAN>dAN>dO!7QQhOAN>lOOOPAN>lAN>lO!7YQhOAN>tOOOPAN>tAN>tOsQhO1G0fO!]QhO1G0fO!7bQ!jO7+&{O!8qQ!jO7+'PO!:QQhO7+'WO!;tQhO,5I[O]||-1},{term:37,get:O=>L[O]||-1}],tokenPrec:0});function l(O,a){return O.split(" ").map(e=>({label:e,type:a}))}const q=l("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),p=l("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),d=l("empty forloop tablerowloop in with as contains","keyword"),B=l("first index index0 last length rindex","property"),H=l("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function M(O){var a;let{state:e,pos:r}=O,$=T(e).resolveInner(r,-1).enterUnfinishedNodesBefore(r),i=((a=$.childBefore(r))===null||a===void 0?void 0:a.name)||$.name;if($.name=="FilterName")return{type:"filter",node:$};if(O.explicit&&i=="|")return{type:"filter"};if($.name=="TagName")return{type:"tag",node:$};if(O.explicit&&i=="{%")return{type:"tag"};if($.name=="PropertyName"&&$.parent.name=="MemberExpression")return{type:"property",node:$,target:$.parent};if($.name=="."&&$.parent.name=="MemberExpression")return{type:"property",target:$.parent};if($.name=="MemberExpression"&&i==".")return{type:"property",target:$};if($.name=="VariableName")return{type:"expression",from:$.from};let n=O.matchBefore(/[\w\u00c0-\uffff]+$/);return n?{type:"expression",from:n.from}:O.explicit&&$.name!="CommentText"&&$.name!="StringLiteral"&&$.name!="NumberLiteral"&&$.name!="InlineComment"?{type:"expression"}:null}function K(O,a,e,r){let $=[];for(;;){let i=a.getChild("Expression");if(!i)return[];if(i.name=="forloop")return $.length?[]:B;if(i.name=="tablerowloop")return $.length?[]:H;if(i.name=="VariableName"){$.unshift(O.sliceDoc(i.from,i.to));break}else if(i.name=="MemberExpression"){let n=i.getChild("PropertyName");n&&$.unshift(O.sliceDoc(n.from,n.to)),a=i}else return[]}return r?r($,O,e):[]}function J(O={}){let a=O.filters?O.filters.concat(q):q,e=O.tags?O.tags.concat(p):p,r=O.variables?O.variables.concat(d):d,{properties:$}=O;return i=>{var n;let Q=M(i);if(!Q)return null;let s=(n=Q.from)!==null&&n!==void 0?n:Q.node?Q.node.from:i.pos,o;return Q.type=="filter"?o=a:Q.type=="tag"?o=e:Q.type=="expression"?o=r:o=K(i.state,Q.target,i,$),o.length?{options:o,from:s,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const OO=h.inputHandler.of((O,a,e,r)=>r!="%"||a!=e||O.state.doc.sliceString(a-1,e+1)!="{}"?!1:(O.dispatch(O.state.changeByRange($=>({changes:{from:$.from,to:$.to,insert:"%%"},range:b.cursor($.from+1)})),{scrollIntoView:!0,userEvent:"input.type"}),!0));function c(O){return a=>{let e=O.test(a.textAfter);return a.lineIndent(a.node.from)+(e?0:a.unit)}}const $O=k.define({name:"liquid",parser:A.configure({props:[W({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":t.keyword,"empty forloop tablerowloop":t.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":t.controlKeyword,"assign capture endcapture":t.definitionKeyword,contains:t.operatorKeyword,"render include":t.moduleKeyword,VariableName:t.variableName,TagName:t.tagName,FilterName:t.function(t.variableName),PropertyName:t.propertyName,CompareOp:t.compareOperator,AssignOp:t.definitionOperator,LogicOp:t.logicOperator,NumberLiteral:t.number,StringLiteral:t.string,BooleanLiteral:t.bool,InlineComment:t.lineComment,CommentText:t.blockComment,"{% %} {{ }}":t.brace,"( )":t.paren,".":t.derefOperator,", .. : |":t.punctuation}),R.add({Tag:w({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":c(/^\s*(\{%-?\s*)?end\w/),IfDirective:c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:c(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),Y.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O){let a=O.firstChild,e=O.lastChild;return!a||a.name!="Tag"?null:{from:a.to,to:e.name=="EndTag"?e.from:O.to}}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),m=v();function g(O){return $O.configure({wrap:u(a=>a.type.isTop?{parser:O.parser,overlay:e=>e.name=="Text"||e.name=="RawText"}:null)},"liquid")}const aO=g(m.language);function iO(O={}){let a=O.base||m,e=a.language==m.language?aO:g(a.language);return new y(e,[a.support,e.data.of({autocomplete:J(O)}),a.language.data.of({closeBrackets:{brackets:["{"]}}),OO])}export{OO as closePercentBrace,iO as liquid,J as liquidCompletionSource,aO as liquidLanguage}; diff --git a/web/dist/assets/index-Cf5bix62.js b/web/dist/assets/index-dcYUeJVK.js similarity index 97% rename from web/dist/assets/index-Cf5bix62.js rename to web/dist/assets/index-dcYUeJVK.js index 244d1184..caee081b 100644 --- a/web/dist/assets/index-Cf5bix62.js +++ b/web/dist/assets/index-dcYUeJVK.js @@ -1 +1 @@ -import{b as O,d as b,L as r,f as s,g as a,s as t,j as P,l as n,t as e}from"./index-Ywe7hT58.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},Q=r.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%bu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T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>S[o]||-1}],tokenPrec:0}),i=O.define({name:"wast",parser:Q.configure({props:[s.add({App:P({closing:")",align:!1})}),a.add({App:n,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),t({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function p(){return new b(i)}export{p as wast,i as wastLanguage}; +import{b as O,d as b,L as r,f as s,g as a,s as t,j as P,l as n,t as e}from"./index-D8eUH6YH.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},Q=r.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#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}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:o=>S[o]||-1}],tokenPrec:0}),i=O.define({name:"wast",parser:Q.configure({props:[s.add({App:P({closing:")",align:!1})}),a.add({App:n,BlockComment(o){return{from:o.from+2,to:o.to-2}}}),t({Keyword:e.keyword,Type:e.typeName,Number:e.number,String:e.string,Identifier:e.variableName,LineComment:e.lineComment,BlockComment:e.blockComment,"( )":e.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function p(){return new b(i)}export{p as wast,i as wastLanguage}; diff --git a/web/dist/index.html b/web/dist/index.html index cb588c14..38dcd18d 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,7 +6,7 @@ LoLLMS WebUI - + diff --git a/web/dist/themes/default.css b/web/dist/themes/default.css index dabbd6e4..84cf6c00 100644 --- a/web/dist/themes/default.css +++ b/web/dist/themes/default.css @@ -3335,17 +3335,18 @@ input[type='range']:is(.dark *)::-moz-range-track{ visibility: hidden; } .animated-thought-bubble{ + pointer-events: none; visibility: hidden; position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 50; - width: -moz-max-content; - width: max-content; + width: auto; max-width: 180px; transform-origin: bottom; --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); + white-space: normal; border-radius: 0.375rem; --tw-bg-opacity: 1; background-color: rgb(51 65 85 / var(--tw-bg-opacity)); @@ -3353,6 +3354,7 @@ input[type='range']:is(.dark *)::-moz-range-track{ padding-right: 0.625rem; padding-top: 0.375rem; padding-bottom: 0.375rem; + text-align: center; font-size: 0.75rem; line-height: 1rem; --tw-text-opacity: 1; @@ -3381,6 +3383,8 @@ input[type='range']:is(.dark *)::-moz-range-track{ color: rgb(30 41 59 / var(--tw-text-opacity)); } .animated-thought-bubble { /* Apply animation */ + /* Ensure pointer-events are re-enabled on hover if needed */ + /* group-hover/item:pointer-events-auto; /* Re-enable pointer events for interaction */ } .animated-thought-bubble::after { /* Arrow */ content: ''; @@ -10475,6 +10479,34 @@ html:not(.dark) .light\:inline { display: inline; } .animate-fall { animation: fall linear infinite; } /* Transition Utilities (Vue ) */ /* Animated Thought Bubble Component (Tooltip) */ +/* Ensure you have the animation defined somewhere, e.g., in tailwind.config.js or a global CSS file */ +@keyframes bubble-in-down { + 0% { + opacity: 0; + transform: translate(-50%, 10px) scale(0.95); /* Start slightly down and smaller */ + } + 100% { + opacity: 1; + transform: translate(-50%, 0) scale(1); /* End at final position and size */ + } +} +/* Add the animation to Tailwind theme (optional, if using JS config) */ +/* In tailwind.config.js */ +/* +theme: { + extend: { + animation: { + 'bubble-in-down': 'bubble-in-down 0.15s ease-out forwards', + }, + keyframes: { + 'bubble-in-down': { + '0%': { opacity: '0', transform: 'translate(-50%, 10px) scale(0.95)' }, + '100%': { opacity: '1', transform: 'translate(-50%, 0) scale(1)' }, + } + } + } +} +*/ /* Line Clamp Utility */ .line-clamp-4 { display: -webkit-box; diff --git a/web/public/themes/default.css b/web/public/themes/default.css index dabbd6e4..84cf6c00 100644 --- a/web/public/themes/default.css +++ b/web/public/themes/default.css @@ -3335,17 +3335,18 @@ input[type='range']:is(.dark *)::-moz-range-track{ visibility: hidden; } .animated-thought-bubble{ + pointer-events: none; visibility: hidden; position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 50; - width: -moz-max-content; - width: max-content; + width: auto; max-width: 180px; transform-origin: bottom; --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); + white-space: normal; border-radius: 0.375rem; --tw-bg-opacity: 1; background-color: rgb(51 65 85 / var(--tw-bg-opacity)); @@ -3353,6 +3354,7 @@ input[type='range']:is(.dark *)::-moz-range-track{ padding-right: 0.625rem; padding-top: 0.375rem; padding-bottom: 0.375rem; + text-align: center; font-size: 0.75rem; line-height: 1rem; --tw-text-opacity: 1; @@ -3381,6 +3383,8 @@ input[type='range']:is(.dark *)::-moz-range-track{ color: rgb(30 41 59 / var(--tw-text-opacity)); } .animated-thought-bubble { /* Apply animation */ + /* Ensure pointer-events are re-enabled on hover if needed */ + /* group-hover/item:pointer-events-auto; /* Re-enable pointer events for interaction */ } .animated-thought-bubble::after { /* Arrow */ content: ''; @@ -10475,6 +10479,34 @@ html:not(.dark) .light\:inline { display: inline; } .animate-fall { animation: fall linear infinite; } /* Transition Utilities (Vue ) */ /* Animated Thought Bubble Component (Tooltip) */ +/* Ensure you have the animation defined somewhere, e.g., in tailwind.config.js or a global CSS file */ +@keyframes bubble-in-down { + 0% { + opacity: 0; + transform: translate(-50%, 10px) scale(0.95); /* Start slightly down and smaller */ + } + 100% { + opacity: 1; + transform: translate(-50%, 0) scale(1); /* End at final position and size */ + } +} +/* Add the animation to Tailwind theme (optional, if using JS config) */ +/* In tailwind.config.js */ +/* +theme: { + extend: { + animation: { + 'bubble-in-down': 'bubble-in-down 0.15s ease-out forwards', + }, + keyframes: { + 'bubble-in-down': { + '0%': { opacity: '0', transform: 'translate(-50%, 10px) scale(0.95)' }, + '100%': { opacity: '1', transform: 'translate(-50%, 0) scale(1)' }, + } + } + } +} +*/ /* Line Clamp Utility */ .line-clamp-4 { display: -webkit-box; diff --git a/web/src/themes/default.css b/web/src/themes/default.css index 61e183a7..ec7b0919 100644 --- a/web/src/themes/default.css +++ b/web/src/themes/default.css @@ -987,20 +987,23 @@ html:not(.dark) .light\:inline { display: inline; } /* Utility to show only in l transform: translateY(10px); /* Fly from bottom */ } } - /* Animated Thought Bubble Component (Tooltip) */ @layer components { .animated-thought-bubble { @apply absolute bottom-[calc(100%+6px)] left-1/2 /* Position above parent + arrow space */ - opacity-0 invisible group-hover/item:opacity-100 group-hover/item:visible group-hover/item:pointer-events-auto /* Group hover control */ + opacity-0 invisible pointer-events-none group-hover/item:opacity-100 group-hover/item:visible group-hover/item:pointer-events-auto /* Group hover control - added pointer-events-none initially */ bg-slate-700 dark:bg-slate-200 /* Inverted colors for contrast */ - text-white dark:text-slate-800 + text-white dark:text-slate-800 /* Base text color */ rounded-md shadow-lg px-2.5 py-1.5 text-xs z-50 /* Style */ - w-max max-w-[180px] /* Size */ - transform -translate-x-1/2 /* Center */ + w-auto max-w-[180px] /* Size: Allow auto width up to max, remove w-max */ + text-center /* Center internal content */ + whitespace-normal /* Allow text wrapping */ + transform -translate-x-1/2 /* Center horizontally */ origin-bottom /* Animate from bottom */ transition-opacity duration-150 /* Smooth fade */ group-hover/item:animate-bubble-in-down; /* Apply animation */ + /* Ensure pointer-events are re-enabled on hover if needed */ + /* group-hover/item:pointer-events-auto; /* Re-enable pointer events for interaction */ } .animated-thought-bubble::after { /* Arrow */ @@ -1011,6 +1014,37 @@ html:not(.dark) .light\:inline { display: inline; } /* Utility to show only in l } } +/* Ensure you have the animation defined somewhere, e.g., in tailwind.config.js or a global CSS file */ +@keyframes bubble-in-down { + 0% { + opacity: 0; + transform: translate(-50%, 10px) scale(0.95); /* Start slightly down and smaller */ + } + 100% { + opacity: 1; + transform: translate(-50%, 0) scale(1); /* End at final position and size */ + } +} + +/* Add the animation to Tailwind theme (optional, if using JS config) */ +/* In tailwind.config.js */ +/* +theme: { + extend: { + animation: { + 'bubble-in-down': 'bubble-in-down 0.15s ease-out forwards', + }, + keyframes: { + 'bubble-in-down': { + '0%': { opacity: '0', transform: 'translate(-50%, 10px) scale(0.95)' }, + '100%': { opacity: '1', transform: 'translate(-50%, 0) scale(1)' }, + } + } + } +} +*/ + + /* Line Clamp Utility */ .line-clamp-4 { display: -webkit-box;