=0;q--){for(var P=H.length,D=p[h].match_list[q][0],I=p[h].match_list[q][1],x=0;x"+H.slice(D,I)+""+H.slice(I)}H=H.replace("(",'(').replace(")",")"),l.append("
'+H+""+(null!=p[h].dataset.sub?''+p[h].dataset.sub+"":"")+"")}l.find("li:first-child").addClass("selected"),l.css("top",e.offset().top+e.outerHeight()+1),l.css("left",e.offset().left),$body.append(l)}}}},100);e.on("keydown.autocomplete",function(t){if(t.keyCode=t.which?t.which:t.keyCode,38==t.keyCode||40==t.keyCode){var a=l.find("li"),o=a.filter(".selected");if(a.removeClass("selected"),o.length>0){if(38==t.keyCode){var s=o.prev();s.length>0?s.addClass("selected"):a.eq(-1).addClass("selected")}else{var i=o.next();i.length>0?i.addClass("selected"):a.eq(0).addClass("selected")}}return t.preventDefault(),!1}if(13==t.keyCode){var o=l.find("li.selected");if(o.length>0&&c(o.find("span.text").text()),!e.hasClass("autocomplete_auto_submit"))return t.preventDefault(),!1}}),e.one("blur.autocomplete",function(){e.attr("autocomplete","on");var a=e.val();e.val("").val(a),window.clearInterval(h),h=0,v>=0&&(clearTimeout(v),v=-1),v=window.setTimeout(function(){null!=l&&l.remove(),v=-1},500),e.off("keydown.autocomplete"),$document.off("click.autocomplete"),$document.off("mousedown.autocomplete"),t("#mf-GdJiSy,#adx_custom_ol").length>0&&(m=setTimeout(function(){t("#mf-GdJiSy,#adx_custom_ol").show(),m=-1},500)),$window.on("focus.autocomplete",function(){p=Date.now(),$window.off("focus.autocomplete")})})};e.on("focus.autocomplete",i),(o||e.is(":focus"))&&i()};t(".autocomplete").each(function(){var e=t(this),a=this;a.autocomplete_data={},a.autocomplete_data.dataset_func=h,a.autocomplete_data.index=-1,e.one("focus.autocomplete_first",function(){void 0==a.autocomplete_data.dataset&&h(e,null,null,!0)}),e.on("change.autocomplete",function(){var t=a.autocomplete_data.dataset;if(null!=t){for(var o=e.val(),s=t.length,l=0;l0){i.addClass("highlight"),i.smoothScroll(-(.5*$window.height()));return}}}}else _=!0,location.hash="stupidtable/"+s+"/"+a.column+"/"+a.direction}$window.scrollTop()>o.offset().top&&o.smoothScroll()}),t("table.stupidtable:has(thead th.stupidtable_rank_th)").on("aftertablesort",function(e,a){var o,s,l=t(this),i=l.find("thead th.stupidtable_rank_th").index(),n=1;l.find("tbody tr").each(function(){var e=t(this),l=e.find("td:nth-child("+(a.column+1)+")"),r=l.data("sort-value");void 0==r&&(r=l.text()),r!=s&&(o=n,s=r),e.find("td:nth-child("+(i+1)+")").text(o),n++})}),stupidtable_hashchange_func=function(){if(_){_=!1;return}if(location.hash){var e,a=location.hash.split("/");if("#stupidtable"==a[0]){_=!0,t("table[data-stupidtable-id="+a[1]+"]").find("thead th").eq(a[2]).stupidsort(a[3])}}},window.addEventListener("hashchange",stupidtable_hashchange_func,!1),stupidtable_hashchange_func(),t("a[target='_blank']").each(function(){var e=t(this),a=e.attr("rel");0>(a=void 0!=a?a.split(" "):[]).indexOf("noopener")&&a.push("noopener"),0>a.indexOf("noreferrer")&&a.push("noreferrer"),e.attr("rel",a.join(" "))});var b=t(".rakysticky");if(b.length>0){var y=0,w=0,k=0,x=!1;window.addEventListener("scroll",function(){if($body.hasClass("smoothScrolling")){if(x){$body.removeClass("rakysticky_overlay");var e=t("#site_search_switch");e.length>0&&e.animate({marginTop:e.data("default-top")},200),w=k=0,x=!1}return}var a=$window.scrollTop();if(a>y){if(a>k&&(k=a),a>w+100){if(x){$body.removeClass("rakysticky_overlay");var e=t("#site_search_switch");e.length>0&&e.animate({marginTop:e.data("default-top")},200),x=!1}w=a}}else if(a0&&e.animate({marginTop:b.outerHeight()+5},200),x=!0}k=a}y=a},{passive:!0})}var C=t("a.popup_image");C.length>0&&C.on("click",function(){var e=t(this).attr("href"),a=t('');$body.append(a),a.hide(),a.fadeIn(200);var o=function(e){t(e.target).closest("img").length>0||a.fadeOut(200,function(){a.remove()})};return a.on("click",o),a.on("touchmove",function(t){t.preventDefault()}),!1})}),$.easing.quart=function(t,e,a,o,s){return-o*((e=e/s-1)*e*e*e-1)+a},$.hashScroll=function(){$document.on("click","a[href^='#'], area[href^='#']",function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname&&""!=this.hash){var t=$(this.hash);(t=t.length&&t||$("[name="+this.hash.slice(1)+"]")).length&&t.smoothScroll()}return!0})},$.fn.extend({smoothScroll:function(t){var e=this;void 0===t&&(t=0);var a=this.offset().top+t;return $html_body.stop(!0,!1),$body.addClass("smoothScrolling"),$html_body.animate({scrollTop:a},{duration:300,easing:"quart",complete:function(){$html_body.scrollTop(e.offset().top+t),$body.removeClass("smoothScrolling")}}),this}});
// kanaxs
// https://code.google.com/p/kanaxs/
String.prototype.toKatakanaCase=function(){for(var a,b=this.length,c=[];b--;)a=this.charCodeAt(b),c[b]=12353<=a&&12438>=a?a+96:a;return String.fromCharCode.apply(null,c)};String.prototype.toHankakuCase=function(){for(var a,b=this.length,c=[];b--;)switch(a=c[b]=this.charCodeAt(b),!0){case 65281<=a&&65374>=a:c[b]-=65248;break;case 12288==a:c[b]=32}return String.fromCharCode.apply(null,c)};
String.prototype.toHankakuCase=function(){for(var t,r=this.length,a=[];r--;)switch(t=a[r]=this.charCodeAt(r),!0){case 65281<=t&&t<=65374:a[r]-=65248;break;case 12288==t:a[r]=32}return String.fromCharCode.apply(null,a)};
/*!
* jQuery Cookie Plugin v1.3
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2011, Klaus Hartl
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/GPL-2.0
*/
(function($,document,undefined){var pluses=/\+/g;function raw(s){return s;}function decoded(s){return decodeURIComponent(s.replace(pluses,' '));}var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);if(value===null){options.expires=-1;}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}value=config.json?JSON.stringify(value):String(value);return(document.cookie=[encodeURIComponent(key),'=',config.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}var decode=config.raw?raw:decoded;var cookies=document.cookie.split('; ');for(var i=0,l=cookies.length;i