PageSourceSearch

https://weblogina.com/files/mt.js

js weblogina.com collected 2026-10-04 08:53:06 UTC 30,254 bytes, 145 lines download raw bytes

1function hideDocumentElement(id){return mtHide(id)}
2function showDocumentElement(id){return mtShow(id)}
3function individualArchivesOnLoad(){return mtEntryOnLoad()}
4function writeCommenterGreeting(){return mtShowGreeting()}
5function rememberMe(f){return mtRememberMe(f)}
6function forgetMe(f){return mtForgetMe(f)}
7var commenter_name;var commenter_id;var commenter_url;var commenter_blog_ids;var mtcmtmail;var mtcmtauth;var mtcmthome;var captcha_timer;var mtCookieName="mt_blog_user";var mtCookieDomain=".weblogina.com";var mtCookiePath="/";var mtCookieTimeout=14400;function mtHide(id){var el=(typeof id=="string")?document.getElementById(id):id;if(el)el.style.display='none';}
8function mtShow(id){var el=(typeof id=="string")?document.getElementById(id):id;if(el)el.style.display='block';}
9function mtAttachEvent(eventName,func){var onEventName='on'+ eventName;var old=window[onEventName];if(typeof old!='function')
10window[onEventName]=func;else{window[onEventName]=function(evt){old(evt);return func(evt);};}}
11function mtFireEvent(eventName,param){var fn=window['on'+ eventName];if(typeof fn=='function')return fn(param);return;}
12if(!this.JSON){JSON={};}(function(){function f(n){return n<10?'0'+n:n;}if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}if(typeof rep==='function'){value=rep.call(holder,key,value);}switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}return str('',{'':value});};}if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}return reviver.call(holder,key,value);}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+a.charCo
12deAt(0).toString(16)).slice(-4);});}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}throw new SyntaxError('JSON.parse');};}}());var MT=window.MT||{};MT.cons=function(){return{LOG:'log',WARN:'warn',DEBUG:'debug',INFO:'info',ERR:'error',JSON:'json'};}();MT.core=function(o){var _debug=false;return{connect:function(url,respType,respHandler){var xh=mtGetXmlHttp();if(!xh)return false;xh.onreadystatechange=function(){if(xh.readyState==4){if(xh.status&&(xh.status!=200)){}else{switch(respType){case'json':respHandler(JSON.parse(xh.responseText));break;case'xml':break;case'text':break;}}}};xh.open('GET',url);xh.send(null);},getEl:function(el){return MT.util.checkNodeType(el)==='element'?id:(document.getElementById(el)||false);},addEvent:function(el,type,func,obj){if(!obj&&document.addEventListener){el.addEventListener(type,func,false);}else if(obj&&document.addEventListener){el.addEventListener(type,function(){func.call(obj,event);},false);}else{if(obj){el.attachEvent('on'+ type,function(){func.call(obj,event);});}else{el.attachEvent('on'+ type,function(){func.call(el,event);});}}},log:function(level,msg){if(_debug&&window.console){switch(level){case'warn':case'debug':case'info':case'error':case'log':console[level](msg);break;default:return false;}}else{return false;}}}}();MT.util=function(){return{toggleVisibility:{show:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.visibility='visible';}else{MT.core.getEl(arguments[i]).style.visibility='visible';}}},hide:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.visibility='hidden';}else{MT.core.getEl(arguments[i]).style.visibility='hidden';}}}},toggleDisplay:{show:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.display='';}else{MT.core.getEl(arguments[i]).style.display='';}}},hide:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.display='none';}else{MT.core.getEl(arguments[i]).style.display='none';}}}},findDefiningParent:function(origin){if(MT.util.checkNodeType(origin)==='element'){for(var node=origin.parentNode;node.parentNode;node=node.parentNode){if((node.hasAttribute&&node.hasAttribute('id'))||node.getAttribute('id')){return node;}}}
13return false;},checkNodeType:function(obj){if(obj&&obj.nodeName){switch(obj.nodeType){case 1:return'element';case 3:return(/\S/).test(obj.nodeValue)?'textnode':'whitespace';}}}}}();(function(){var M=MT.core,c=MT.cons,u=MT.util,cache,isLoading,direction,currentComments,commentAnchor,commentArrId,commentsPerPage,commentsTotalPages,loadingIcon,pageNum,commentsOffset,totalComments,entryID,commentContentDiv,topNav,nav,currentCommentsSpan,topCurrentCommentsSpan;M.addEvent(window,'load',_init);function _init(){if(!MT.entryCommentCount){return;}
14_initializeVariables();_setCommentOffset(false);_checkForAnchor();_setCurrentComments();_toggleNavLinks();_initializeEvents();}
15function _initializeVariables(){cache={};isLoading=false;commentAnchor='';commentArrId='';commentsPerPage=MT.commentsPerPage||50;currentComments='';direction='ascend';entryID=MT.entryID;totalComments=MT.entryCommentCount;commentsTotalPages=Math.ceil(totalComments/commentsPerPage);pageNum=1;loadingIcon="<img title='صبر کنید...' src='https://weblogina.com/mt/mt-static/images/indicator.white.gif' alt='Loading' />";commentContentDiv=M.getEl("comments-content");topNav=M.getEl("top-comment-nav");nav=M.getEl("comment-nav");currentCommentsSpan=M.getEl("current-comments");topCurrentCommentsSpan=M.getEl("top-current-comments");}
16function _initializeEvents(){if(commentsPerPage<totalComments){M.addEvent(nav,'click',_handleEvents);M.addEvent(topNav,'click',_handleEvents);}}
17function _checkForAnchor(){var found=String(window.location.hash).match(/comment-(\d{1,6})/);
17if(found){M.log(c.DEBUG,found);if(!Object.prototype.hasOwnProperty.call(M.getEl(found[0]),'className')){if(_findIdMatch(found[1])){pageNum=Math.floor(commentArrId/commentsPerPage)+ 1;M.log(c.DEBUG,'Comment Array Id: '+ commentArrId);M.log(c.DEBUG,'Comments Per Page: '+ commentsPerPage);M.log(c.DEBUG,'Page Number: '+ pageNum);M.log(c.DEBUG,'Comment Offset: '+ _getCommentOffset());_updateComments();}}}}
18function _setCommentOffset(){commentsOffset=commentsPerPage*(pageNum-1);}
19function _getCommentOffset(){return commentsOffset;}
20function _handleEvents(e){var origin=e.target||e.srcElement,parentId;origin=origin.id&&M.getEl(origin.id)||false;if(origin){parentId=u.checkNodeType(origin.parentNode)==='element'&&origin.parentNode.getAttribute('id')&&origin.parentNode.id;}else{return false;}
21switch(origin.nodeName){case'A':switch(parentId){case'prev-comments':case'top-prev-comments':if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}
22if(!isLoading){_previousPage();}
23break;case'next-comments':case'top-next-comments':if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}
24if(!isLoading){_nextPage();}
25break;}
26break;}}
27function _toggleNavLinks(){M.log(c.DEBUG,M.getEl('top-prev-comments'));if(pageNum<=commentsTotalPages&&pageNum!==1){u.toggleVisibility.show('prev-comments');u.toggleVisibility.show('top-prev-comments');}
28if(pageNum>=1&&pageNum!==commentsTotalPages){u.toggleVisibility.show('next-comments');u.toggleVisibility.show('top-next-comments');}
29if(pageNum===1||nav.style.visibility==='hidden'){u.toggleVisibility.hide('prev-comments');u.toggleVisibility.hide('top-prev-comments');}
30if(pageNum===commentsTotalPages||nav.style.visibility==='hidden'){u.toggleVisibility.hide('next-comments');u.toggleVisibility.hide('top-next-comments');}}
31function _nextPage(){if(pageNum<commentsTotalPages){pageNum++;_updateComments();}}
32function _previousPage(){if(pageNum>1){pageNum--;_updateComments();}}
33function _findIdMatch(id){var len=MT.commentIds.length;while(len--){if(MT.commentIds[len]==id){commentAnchor="comment-"+ id;commentArrId=len;return true;}}
34return false;}
35function _setCurrentComments(){var commentsOnPage=pageNum!=commentsTotalPages?commentsOffset+ commentsPerPage:totalComments;_setCurrentCommentsContent([commentsOffset+1," - ",commentsOnPage].join(''));}
36function _setCurrentCommentsContent(currentCommentsHTML){currentCommentsSpan.innerHTML=currentCommentsHTML;topCurrentCommentsSpan.innerHTML=currentCommentsHTML;}
37function _setCommentContent(commentHTML){commentContentDiv.innerHTML=commentHTML;}
38function _updateComments(){var comments,jsonUrl;isLoading=true;_setCurrentCommentsContent(loadingIcon);_setCommentOffset();jsonUrl=["https://weblogina.com/mt/mt-comments.cgi?__mode=comment_listing&direction=",direction,"&entry_id=",entryID,"&limit=",commentsPerPage,"&offset=",_getCommentOffset()].join('');if(!commentAnchor){commentAnchor="comments-content";}
39if(cache.hasOwnProperty(jsonUrl)){_refreshComments(cache[jsonUrl]);isLoading=false;}else{M.connect(jsonUrl,c.JSON,function(json){cache[jsonUrl]=json.comments;_refreshComments(json.comments);isLoading=false;});}}
40function _refreshComments(commentData){_setCommentContent(commentData);_setCurrentComments();window.location.hash='reset';window.location.hash=commentAnchor;_toggleNavLinks();}})();function mtRelativeDate(ts,fds){var now=new Date();var ref=ts;var delta=Math.floor((now.getTime()- ref.getTime())/ 1000);
41var str;if(delta<60){str='moments ago';}else if(delta<=86400){var hours=Math.floor(delta/3600);var min=Math.floor((delta%3600)/ 60);
42if(hours==1)
43str='1 hour ago';else if(hours>1)
44str='2 hours ago'.replace(/2/,hours);else if(min==1)
45str='1 minute ago';else
46str='2 minutes ago'.replace(/2/,min);}else if(delta<=604800){var days=Math.floor(delta/86400);var hours=Math.floor((delta%86400)/ 3600);
47if(days==1)
48str='1 day ago';else if(days>1)
49str='2 days ago'.replace(/2/,days);else if(hours==1)
50str='1 hour ago';else
51str='2 hours ago'.replace(/2/,hours);}
52return str?str:fds;}
53function mtEditLink(entry_id,author_id){var u=mtGetUser();if(!u)return;if(!entry_id)return;if(!author_id)return;if(u.id!=author_id)return;var link='<a href="mt.cgi?__mode=view&amp;_type=entry&amp;
53id='+ entry_id+'">Edit</a>';document.write(link);}
54function mtCommentFormOnFocus(){mtShowCaptcha();}
55var mtCaptchaVisible=false;function mtShowCaptcha(){var u=mtGetUser();if(u&&u.is_authenticated)return;if(mtCaptchaVisible)return;var div=document.getElementById('comments-open-captcha');if(div){div.innerHTML='';mtCaptchaVisible=true;}}
56var is_preview;var user;function mtSetUser(u){if(u){user=u;mtSaveUser();mtFireEvent('usersignin');}}
57function mtEscapeJS(s){s=s.replace(/'/g,"&apos;");return s;}
58function mtUnescapeJS(s){s=s.replace(/&apos;/g,"'");return s;}
59function mtBakeUserCookie(u){var str="";if(u.name)str+="name:'"+ mtEscapeJS(u.name)+"';";if(u.url)str+="url:'"+ mtEscapeJS(u.url)+"';";if(u.email)str+="email:'"+ mtEscapeJS(u.email)+"';";if(u.is_authenticated)str+="is_authenticated:'1';";if(u.profile)str+="profile:'"+ mtEscapeJS(u.profile)+"';";if(u.userpic)str+="userpic:'"+ mtEscapeJS(u.userpic)+"';";if(u.sid)str+="sid:'"+ mtEscapeJS(u.sid)+"';";str+="is_trusted:'"+(u.is_trusted?"1":"0")+"';";str+="is_author:'"+(u.is_author?"1":"0")+"';";str+="is_banned:'"+(u.is_banned?"1":"0")+"';";str+="can_post:'"+(u.can_post?"1":"0")+"';";str+="can_comment:'"+(u.can_comment?"1":"0")+"';";str=str.replace(/;$/,'');return str;}
60function mtUnbakeUserCookie(s){if(!s)return;var u={};var m;while(m=s.match(/^((name|url|email|is_authenticated|profile|userpic|sid|is_trusted|is_author|is_banned|can_post|can_comment):'([^']+?)';?)/)){s=s.substring(m[1].length);if(m[2].match(/^(is|can)_/))
61u[m[2]]=m[3]=='1'?true:false;else
62u[m[2]]=mtUnescapeJS(m[3]);}
63if(u.is_authenticated){u.is_anonymous=false;}else{u.is_anonymous=true;u.can_post=false;u.is_author=false;u.is_banned=false;u.is_trusted=false;}
64return u;}
65function mtGetUser(){if(!user){var cookie=mtGetCookie(mtCookieName);if(!cookie)return;user=mtUnbakeUserCookie(cookie);if(!user){user={};user.is_anonymous=true;user.can_post=false;user.is_author=false;user.is_banned=false;user.is_trusted=false;}}
66return user;}
67var mtFetchedUser=false;function mtRememberMeOnClick(b){if(!b.checked)
68mtClearUser(b.form);return true;}
69function mtEntryOnLoad(){var cf=document['comments_form'];if(cf&&cf.preview)cf.preview.value='';mtFireEvent('usersignin');}
70function mtEntryOnUnload(){if(mtRequestSubmitted){var cf=document['comments_form'];if(cf){if(cf.post&&cf.post.disabled)
71cf.post.disabled=false;if(cf.preview_button&&cf.preview_button.disabled)
72cf.preview_button.disabled=false;}
73mtRequestSubmitted=false;}
74return true;}
75mtAttachEvent('usersignin',mtUserOnLoad);function mtSignIn(){var doc_url=document.URL;doc_url=doc_url.replace(/#.+/,'');var url='https://weblogina.com/mt/mt-cp.cgi?__mode=login&blog_id=2';if(is_preview){if(document['comments_form']){var entry_id=document['comments_form'].entry_id.value;url+='&entry_id='+ entry_id;}else{url+='&return_url=http%3A%2F%2Fweblogina.com%2F';}}else{url+='&return_url='+ encodeURIComponent(doc_url);}
76mtClearUser();location.href=url;}
77function mtSignInOnClick(sign_in_element){var el;if(sign_in_element){el=document.getElementById(sign_in_element);if(!el)
78el=document.getElementById('comment-form-external-auth');}
79if(el)
80el.innerHTML='Signing in... <span class="status-indicator">&nbsp;</span>';mtClearUser();mtFetchUser('mtSetUserOrLogin');return false;}
81function mtSetUserOrLogin(u){if(u&&u.is_authenticated){mtSetUser(u);}else{mtSignIn();}}
82function mtSignOut(entry_id){mtClearUser();var doc_url=document.URL;doc_url=doc_url.replace(/#.+/,'');var url='https://weblogina.com/mt/mt-cp.cgi?__mode=logout&static=0&blog_id=2';if(is_preview){if(document['comments_form']){var entry_id=document['comments_form'].entry_id.value;url+='&entry_id='+ entry_id;}else{url+='&return_url=http%3A%2F%2Fweblogina.com%2F';}}else{url+='&return_url='+ encodeURIComponent(doc_url);}
83location.href=url;}
84function mtSignOutOnClick(){mtSignOut();return false;}
85function mtReplyCommentOnClick(parent_id,author){mtShow('comment-form-reply');var checkbox=document.getElementById('comment-reply');var label=document.getElementById('comment-reply-label');var text=document.getElementById('comment-text');var reply_text='در پاسخ به \<a href=\"#comment-__PARENT__\" onclick=\"location.href=this.href; return false\"\>__AUTHOR__\<\/a\>';reply_text=reply_text.replace(/__PARENT__/,parent_id);reply_text=reply_text.replace(/__AUTHOR__/,author);label.innerHTML=reply_text;checkbox.value=parent_id;checkbox.checked=true;try{text.focus();}catch(e){}
86mtSetCommentParentID();}
87function mtSetCommentParentID(){var checkbox=document.getElementById('comment-reply');var parent_id_field=document.getElementById('comment-parent-id');if(!checkbox||!parent_id_field)return;var pid=0;if(checkbox.checked==true)
88pid=checkbox.value;parent_id_field.value=pid;}
89function mtSaveUser(f){if(is_preview)return;var u=mtGetUser();if(f&&(!u||u.is_anonymous)){if(!u){u={};u.is_authenticated=false;u.can_comment=true;u.is_author=false;u.is_banned=false;u.is_anonymous=true;u.is_trusted=false;}
90if(f.author!=undefined)u.name=f.author.value;if(f.email!=undefined)u.email=f.email.value;if(f.url!=undefined)u.url=f.url.value;}
91if(!u)return;var cache_period=mtCookieTimeout*1000;if(u.is_anonymous&&f&&f.bakecookie&&f.bakecookie.checked)
92cache_period=365*24*60*60*1000;var now=new Date();mtFixDate(now);now.setTime(now.getTime()+ cache_period);var cmtcookie=mtBakeUserCookie(u);mtSetCookie(mtCookieName,cmtcookie,now,mtCookiePath,mtCookieDomain,location.protocol=='https:');}
93function mtClearUser(){user=null;mtDeleteCookie(mtCookieName,mtCookiePath,mtCookieDomain,location.protocol=='https:');}
94function mtSetCookie(name,value,expires,path,domain,secure){if(domain&&domain.match(/^\.?localhost$/))
95domain=null;var curCookie=name+"="+ escape(value)+
96(expires?"; expires="+ expires.toGMTString():"")+
97(path?"; path="+ path:"")+
98(domain?"; domain="+ domain:"")+
99(secure?"; secure":"");document.cookie=curCookie;}
100function mtGetCookie(name){var prefix=name+'=';var c=document.cookie;var cookieStartIndex=c.indexOf(prefix);if(cookieStartIndex==-1)
101return'';var cookieEndIndex=c.indexOf(";",cookieStartIndex+ prefix.length);if(cookieEndIndex==-1)
102cookieEndIndex=c.length;return unescape(c.substring(cookieStartIndex+ prefix.length,cookieEndIndex));}
103function mtDeleteCookie(name,path,domain,secure){if(mtGetCookie(name)){if(domain&&domain.match(/^\.?localhost$/))
104domain=null;document.cookie=name+"="+
105(path?"; path="+ path:"")+
106(domain?"; domain="+ domain:"")+
107(secure?"; secure":"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
108function mtFixDate(date){var skew=(new Date(0)).getTime();if(skew>0)
109date.setTime(date.getTime()- skew);}
110function mtGetXmlHttp(){if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var types=["Microsoft.XMLHTTP","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"];for(var i=0;i<types.length;i++){try{return new ActiveXObject(types[i]);}catch(e){}}
111return undefined;};}
112if(window.XMLHttpRequest)
113return new XMLHttpRequest();}
114function mtInit(){if(arguments.callee.done)return;arguments.callee.done=true;if(window._timer)clearInterval(window._timer);if(window.onload&&(window.onload!==window.mtInit)){window.onload();window.onload=function(){};}}
115if(document.addEventListener){document.addEventListener("DOMContentLoaded",mtInit,false);}/*@cc_on @*/
116if(/WebKit/i.test(navigator.userAgent)){_timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){mtInit();}},10);}
117window.onload=mtInit;if(!this.JSON){JSON={};}(function(){function f(n){return n<10?'0'+n:n;}if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];
117return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}if(typeof rep==='function'){value=rep.call(holder,key,value);}switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}return str('',{'':value});};}if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}return reviver.call(holder,key,value);}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}throw new SyntaxError('JSON.parse');};}}());var MT=window.MT||{};MT.cons=function(){return{LOG:'log',WARN:'warn',DEBUG:'debug',INFO:'info',ERR:'error',JSON:'json'};}();MT.core=function(o){var _debug=false;return{connect:function(url,respType,respHandler){var xh=mtGetXmlHttp();if(!xh)return false;xh.onreadystatechange=function(){if(xh.readyState==4){if(xh.status&&(xh.status!=200)){}else{switch(respType){case'json':respHandler(JSON.parse(xh.responseText));break;case'xml':break;case'text':break;}}}};xh.open('GET',url);xh.send(null);},getEl:function(el){return MT.util.checkNodeType(el)==='element'?id:(document.getElementById(el)||false);},addEvent:function(el,type,func,obj){if(!obj&&document.addEventListener){el.addEventListener(type,func,false);}else if(obj&&document.addEventListener){el.addEventListener(type,function(){func.call(obj,event);},false);}else{if(obj){el.attachEvent('on'+ type,function(){func.call(obj,event);});}else{el.attachEvent('on'+ type,function(){func.call(el,event);});}}},log:function(level,msg){if(_debug&&window.console){switch(level){case'warn':case'debug':case'info':case'error':case'log':console[level](msg);break;default:return false;}}else{return false;}}}}();MT.util=function(){return{toggleVisibility:{show:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.visibility='visible';}else{MT.core.getEl(arguments[i]).style.visibility='visible';}}},hide:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.visibility='hidden';}else{MT.core.getEl(arguments[i]).style.visibility='hidden';}}}},toggleDisplay:{show:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.display='';}else{MT.core.getEl(arguments[i]).style.display='';}}},hide:function(){var i=arguments.length;while(i--){if(MT.util.checkNodeType(arguments[i])==='element'){arguments[i].style.display='none';}else{MT.core.getEl(arguments[i]).style.display='none';}}}},findDefiningParent:function(origin){if(MT.util.checkNodeType(origin)==='element'){for(var node=origin.parentNode;node.parentNode;node=node.parentNode){if((node.hasAttribute&&node.hasAttribute('id'))||node.getAttribute('id')){return node;}}}
118return false;}
118,checkNodeType:function(obj){if(obj&&obj.nodeName){switch(obj.nodeType){case 1:return'element';case 3:return(/\S/).test(obj.nodeValue)?'textnode':'whitespace';}}}}}();(function(){var M=MT.core,c=MT.cons,u=MT.util,cache,isLoading,direction,currentComments,commentAnchor,commentArrId,commentsPerPage,commentsTotalPages,loadingIcon,pageNum,commentsOffset,totalComments,entryID,commentContentDiv,topNav,nav,currentCommentsSpan,topCurrentCommentsSpan;M.addEvent(window,'load',_init);function _init(){if(!MT.entryCommentCount){return;}
119_initializeVariables();_setCommentOffset(false);_checkForAnchor();_setCurrentComments();_toggleNavLinks();_initializeEvents();}
120function _initializeVariables(){cache={};isLoading=false;commentAnchor='';commentArrId='';commentsPerPage=MT.commentsPerPage||50;currentComments='';direction='descend';entryID=MT.entryID;totalComments=MT.entryCommentCount;commentsTotalPages=Math.ceil(totalComments/commentsPerPage);pageNum=1;loadingIcon="<img title='Loading...' src='https://weblogina.com/mt/mt-static/images/indicator.white.gif' alt='Loading' />";commentContentDiv=M.getEl("comments-content");topNav=M.getEl("top-comment-nav");nav=M.getEl("comment-nav");currentCommentsSpan=M.getEl("current-comments");topCurrentCommentsSpan=M.getEl("top-current-comments");}
121function _initializeEvents(){if(commentsPerPage<totalComments){M.addEvent(nav,'click',_handleEvents);M.addEvent(topNav,'click',_handleEvents);}}
122function _checkForAnchor(){var found=String(window.location.hash).match(/comment-(\d{1,6})/);if(found){M.log(c.DEBUG,found);if(!M.getEl(found[0]).hasOwnProperty('className')){if(_findIdMatch(found[1])){pageNum=Math.floor(commentArrId/commentsPerPage)+ 1;M.log(c.DEBUG,'Comment Array Id: '+ commentArrId);M.log(c.DEBUG,'Comments Per Page: '+ commentsPerPage);M.log(c.DEBUG,'Page Number: '+ pageNum);M.log(c.DEBUG,'Comment Offset: '+ _getCommentOffset());_updateComments();}}}}
123function _setCommentOffset(){commentsOffset=commentsPerPage*(pageNum-1);}
124function _getCommentOffset(){return commentsOffset;}
125function _handleEvents(e){var origin=e.target||e.srcElement,parentId;origin=origin.id&&M.getEl(origin.id)||false;if(origin){parentId=u.checkNodeType(origin.parentNode)==='element'&&origin.parentNode.getAttribute('id')&&origin.parentNode.id;}else{return false;}
126switch(origin.nodeName){case'A':switch(parentId){case'prev-comments':case'top-prev-comments':if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}
127if(!isLoading){_previousPage();}
128break;case'next-comments':case'top-next-comments':if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}
129if(!isLoading){_nextPage();}
130break;}
131break;}}
132function _toggleNavLinks(){M.log(c.DEBUG,M.getEl('top-prev-comments'));if(pageNum<=commentsTotalPages&&pageNum!==1){u.toggleVisibility.show('prev-comments');u.toggleVisibility.show('top-prev-comments');}
133if(pageNum>=1&&pageNum!==commentsTotalPages){u.toggleVisibility.show('next-comments');u.toggleVisibility.show('top-next-comments');}
134if(pageNum===1||nav.style.visibility==='hidden'){u.toggleVisibility.hide('prev-comments');u.toggleVisibility.hide('top-prev-comments');}
135if(pageNum===commentsTotalPages||nav.style.visibility==='hidden'){u.toggleVisibility.hide('next-comments');u.toggleVisibility.hide('top-next-comments');}}
136function _nextPage(){if(pageNum<commentsTotalPages){pageNum++;_updateComments();}}
137function _previousPage(){if(pageNum>1){pageNum--;_updateComments();}}
138function _findIdMatch(id){var len=MT.commentIds.length;while(len--){if(MT.commentIds[len]==id){commentAnchor="comment-"+ id;commentArrId=len;return true;}}
139return false;}
140function _setCurrentComments(){var commentsOnPage=pageNum!=commentsTotalPages?commentsOffset+ commentsPerPage:totalComments;_setCurrentCommentsContent([commentsOffset+1," - ",commentsOnPage].join(''));}
141function _setCurrentCommentsContent(currentCommentsHTML){currentCommentsSpan.innerHTML=currentCommentsHTML;topCurrentCommentsSpan.innerHTML=currentCommentsHTML;}
142function _setCommentContent(commentHTML){commentContentDiv.innerHTML=commentHTML;}
143function _updateComments(){var comments,jsonUrl;isLoading=true;_setCurrentCommentsContent(loadingIcon);_setCommentOffset();jsonUrl=["https://weblogina.com/mt/mt-comments.cgi?__mode=comment_listing&direction=",direction,"&entry_id=",entryID,"&limit=",commentsPerPage,"&offset=",_getCommentOffset()].join('');if(!commentAnchor){commentAnchor="comments-content";}
144if(cache.hasOwnProperty(jsonUrl)){_refreshComments(cache[jsonUrl]);isLoading=false;}else{M.connect(jsonUrl,c.JSON,function(json){cache[jsonUrl]=json.comments;_refreshComments(json.comments);isLoading=false;});}}
145function _refreshComments(commentData){_setCommentContent(commentData);_setCurrentComments();window.location.hash='reset';window.location.hash=commentAnchor;_toggleNavLinks();}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.