const webview={convertPixelToRem:function(e){return e/16},getFontSize:function(e,t){return e-t/100*e},isFacebook:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return e.indexOf("FBAN")>-1||e.indexOf("FBAV")>-1||e.indexOf("wv")>-1},isInstagram:function(){return(navigator.userAgent||navigator.vendor||window.opera).match(/Instagram\ ([0-9\.]+)/)},isAndroid:function(){return navigator.userAgent.toLowerCase().match("android")},getScale:function(e){return-25===e?e-36.5:-12.5===e?e-13.5:0===e||e<6.25&&e>0?e:6.25===e&&e<25?e+8:25===e&&e<50?e+15:50===e&&e<100?e+5:68.75===e?e+2:100===e?e-10:void 0},adjustFontSize:function(){let e,t=parseInt(window.getComputedStyle(document.body).fontSize);e=(t-16)/16*100,e=this.getScale(e),[...document.getElementsByClassName("widget-text")].forEach(t=>{let n=window.getComputedStyle(t).display;if("none"===n)return;let i=parseInt(window.getComputedStyle(t).fontSize),o=this.getFontSize(i,e),r=this.convertPixelToRem(o);t.style.fontSize=r.toFixed(2)+"rem"})}};window.addEventListener("DOMContentLoaded",function(){(webview.isFacebook()||webview.isInstagram())&&webview.isAndroid()&&webview.adjustFontSize()});