import{c as u,d as h}from"./chunk-AIHAZUSZ.js";import{e as o}from"./chunk-SZAW6ZBW.js";var i,m=o(()=>{i=function(t){return t[t.None=0]="None",t[t.External=1]="External",t[t.Privileged=2]="Privileged",t}(i||{});(function(t){function e(){return"SystemUserTags"}t.getClass=e;function l(n){let a="";return typeof t.getClass=="function"&&(a=t.getClass()),a+"_"+t[n]}t.getEnumKey=l})(i||(i={}))});var r,c=o(()=>{h();r=class t{constructor(e=null,l=null,n){this.clone=()=>new t(null,null,this),this.name=e??u.manageDefaultValue(n,"name","")??"",this.theme=l??u.manageDefaultValue(n,"theme","")??""}}});var f,p=o(()=>{m();c();f=class t{static{this.THEME_MAP=new Map([["SystemUserTags_External","external"],["SystemUserTags_Privileged","privileged"]])}constructor(){}static getTheme(e){let l=Number.isInteger(e)?i.getEnumKey(e):e;return this.THEME_MAP.get(l)}static toInt(e){return e.reduce((l,n)=>l|n,0)}static fromInt(e){let l=[],n=1;for(;e>0;)e&n&&(l.push(n),e^=n),n<<=1;return l}static toVMTags(e){let l=()=>t.fromInt(e.systemTags).map(n=>new r(Object.keys(i)[n],t.getTheme(i.getEnumKey(n))));return e?l():null}}});export{i as a,m as b,f as c,p as d};
