!function(a){var b=window.parent.document,c={};c.Observer=function(){var a=function(){};return a.prototype={listen:function(a,b,c,d){var e,f;(e=this.listeners)||(e=this.listeners={}),(f=e[a])||(f=e[a]=[]),c=c?c:window,f.push({method:b,scope:c,context:d?d:c})},fireEvent:function(a,b,c){var d,e,f,g,h;if((d=this.listeners)&&(e=d[a])){for(f=0,g=e.length;f<g;f++)if(h=e[f],"undefined"==typeof c||c===h.context){if(h.method.call(h.scope,this,a,b)===!1)return!1}else console.log("bad context");return!0}}},new a}();var d=function(){var a,b,c=window.parent.document.getElementById("gm-wall")||window.parent.document.body;a=c.clientWidth-20+"px",window.parent.document.getElementById("transc").style.width=a,document.getElementById("maxWidthInsta")||(b=document.body.appendChild(document.createElement("style")),b.id="maxWidthInsta"),document.getElementById("maxWidthInsta").innerHTML="html#main-dotmobi, html#main-dotmobi * { max-width: "+a+" !important; }"},e=function(){var c,e,f;c=a.body.firstElementChild||a.body.children[0];try{f=c.style.display,c.style.display="block",e=a.body.offsetHeight+10,(0==e||e<a.body.scrollHeight&&e+50>a.body.scrollHeight)&&(e=a.body.scrollHeight),c.style.display=f}catch(g){return!1}return b.getElementById("transc").style.height=e+"px",b.getElementById("tloader").style.display="none",d(),!0};c.Observer.listen("resize",e,window,b.getElementById("transc"));var f=setInterval(function(){if("complete"==a.readyState){clearInterval(f);var b=setInterval(function(){e()&&clearInterval(b)},2e3)}e()},500);b.onresize&&b.onorientationchange&&(b.addEventListener("orientationchange",e,!1),b.addEventListener("resize",e,!1)),a.GM=c}(document);
!function(){var a=function(){function a(a,b,c,d){var e,f,g,h=!1;if(c=c||14,d=d||10.5,g=xpath(a),g.match(/h1|h2|h3/))return!1;if(f=window.getComputedStyle(a)[b])switch(e=+f.substr(0,f.length-2),f.substr(f.length-2)){case"px":h=e>c;break;case"pt":h=e>d}return h}function b(a){return("INPUT"!=a.nodeName||"hidden"!=a.type)&&("none"===window.getComputedStyle(a).display.trim().substr(0,4)||"hidden"==window.getComputedStyle(a).visibility.trim())}function c(a){return"footer-nav-hidden"==a.parentNode.id||"footer-nav-hidden"==a.id}xpath_array=function(a,b){var c,d;if(b=b||[],a.parentNode&&(b=xpath_array(a.parentNode,b)),c=null,a.previousSibling){for(c=1,d=a.previousSibling;;)if(1===d.nodeType&&d.nodeName===a.nodeName&&c++,d=d.previousSibling,!d)break;1===c&&(c=null)}if(a.nextSibling&&!c)for(d=a.nextSibling;;)if(1===d.nodeType&&d.nodeName===a.nodeName?(c=1,d=null):(c=null,d=d.nextSibling),!d)break;return 1===a.nodeType&&b.push(a.nodeName.toLowerCase()+(c>0?"["+c+"]":"")),b},xpath=function(a){return a?"/"+xpath_array(a).join("/"):null};for(var d,e,f,g={},h=document.getElementsByTagName("img"),i=document.body.scrollWidth/4,j=0;j<h.length;j++)d=xpath(h[j]),d=d.replace(/(\d+[^\d]*$)/,"@"),g[d]||(g[d]=[]),g[d].push(h[j]);for(var k in g){e=0;for(var j=0;j<g[k].length;j++)f=window.getComputedStyle(g[k][j]).width.replace("px",""),f<=i&&("div-swipe-wrap-dm-transc"==g[k][j].parentNode.className?g[k][j].parentNode.parentNode.removeChild(g[k][j].parentNode):e++);if(e==g[k].length)for(var l=0;l<g[k].length;l++)g[k][l].style.setProperty("display","inline","important")}for(var m=document.body.querySelectorAll(":not(.gm-keepit)"),j=0;j<m.length;j++)m[j].querySelectorAll("input").length>0||m[j].tagName.match(/^(input)$/i)||(c(m[j])||!b(m[j])?(m[j].tagName.match(/^(div|article|section|p)$/i)&&m[j].style.setProperty("display","block","important"),a(m[j],"fontSize")&&m[j].style.setProperty("font-size","14px","important"),a(m[j],"lineHeight",30,24)&&m[j].style.setProperty("line-height","30px","important")):m[j].parentNode.removeChild(m[j]))};window.addEventListener?window.addEventListener("load",a,!1):window.attachEvent("onload",a,!1)}();
