import {J}from'./main-WUGO6e7n.js';var l,p=J(()=>{l=(()=>{class r{static{this.versionPattern=/^\d{4}\.\d{1,2}\.\d{1,2}(?:\.\d{1,2})?$/;}static isVersionValid(t){return r.versionPattern.test(t)}static compare(t,a){if(!r.isVersionValid(t)||!r.isVersionValid(a))throw new Error("Invalid version string");let s=t.split(".").map(e=>parseInt(e,10)),i=a.split(".").map(e=>parseInt(e,10));for(;s[s.length-1]===0;)s.pop();for(;i[i.length-1]===0;)i.pop();for(let e=0;e<Math.max(s.length,i.length);e++){let n=s[e]||0,c=i[e]||0;if(n<c)return -1;if(n>c)return 1}return 0}static isVersionUpToDate(t,a){try{return [0,1].includes(r.compare(t,a))}catch(s){return !1}}static isVersionOutdated(t,a){try{return r.compare(t,a)===-1}catch(s){return !1}}static isVersionGreater(t,a){try{return r.compare(t,a)===1}catch(s){return !1}}}return r})();});export{l,p};