"use strict";const t=require("./wechat.js");let e;function n(t,e){t=t.split("."),e=e.split(".");const n=Math.max(t.length,e.length);for(;t.length<n;)t.push("0");for(;e.length<n;)e.push("0");for(let r=0;r<n;r+=1){const n=parseInt(t[r],10),s=parseInt(e[r],10);if(n>s)return 1;if(n<s)return-1}return 0}function r(r){return n((null==e&&(e=t.getAppBaseInfo()),e).SDKVersion,r)>=0}exports.canUseVirtualHost=function(){let t=!1;return t=r("2.19.2"),t},exports.compareVersion=n;
