b646b83234fcb9f2fe8f2175b268fe20fc0fbeb880984fc68718a2aac795b34f

Source Code:

if(void 0===YAHOO)var YAHOO={};YAHOO.i13n=YAHOO.i13n||{},YAHOO.i13n=function(){var h={},E={MAX_VALUE_LENGTH:300,LINK_TAG_LIST:["a","button","input"],logWarn:function(e){"undefined"==typeof console.warn&&(console.warn=console.log),console.warn(e)},logErr:function(e){"undefined"==typeof console.error&&(console.error=console.log),console.error(e)},isDebug:function(){return void 0!==E&&"undefined"!=typeof E.debug&&E.debug},logDebug:function(e){this.isDebug()&&console.log("Rapid : ["+(new Date).getTime()+"]"+e)},logTrace:function(e,t){this.isDebug()&&(console.log("Rapid : [TRACELOG]["+(new Date).getTime()+"]"+e),console.log(t))},isPlainObject:function(e){var t;return!(!e||"[object Object]"!==toString.call(e))&&(!(t=Object.getPrototypeOf(e))||"function"==typeof(this.hasOwn.call(t,"constructor")&&t.constructor))},isFunction:function(e){return"[object Function]"===E.type(e)},isDate:function(e){return"[object Date]"===E.type(e)},isArr:function(e){return"[object Array]"===E.type(e)},isStr:function(e){return"string"===E.type(e)},isNum:function(e){return"number"===E.type(e)&&isFinite(e)},isNumeric:function(e){return e-0===e&&0<(e+"").replace(/^\s+|\s+$/g,"").length},isObj:function(e){return e&&"object"==typeof e},isIE:navigator.userAgent.match(/MSIE\s[^;]*/)||navigator.userAgent.match(/Trident\/[^;]*/)?1:0,isEdge:-1<navigator.userAgent.indexOf(" Edge/"),type:function(e){return null===e?e+"":"object"==typeof e||"function"==typeof e?Object.prototype.toString.call(e)||"object":typeof e},extend:function(){var e,t,n,i,o,r,a=arguments[0]||{},l=1,s=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[l]||{},l++),"object"==typeof a||E.isFunction(a)||(a={}),l===s&&(a=this,l--);l<s;l++)if(null!==(e=arguments[l]))for(t in e)e.hasOwnProperty(t)&&(n=a[t],a!==(i=e[t])&&(c&&i&&(E.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,r=n&&Array.isArray(n)?n:[]):r=n&&E.isPlainObject(n)?n:{},a[t]=E.extend(c,r,i)):void 0!==i&&(a[t]=i)))},trim:function(e){return(e=null===e?"":(e+"").replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")).replace(/[\u007f-\u00a0]|\s{2,}/g," ").replace(/\ufeff|\uffef|[\u0000-\u001f]|[\ue000-\uf8ff]/g,"")},getValueWithBounds:function(e,t,n){return e<t?t:n<e?n:e},getScrollbarWidthHeight:function(){var e=E.make("div");e.style.overflow="scroll",e.style.visibility="hidden",e.style.position="absolute",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);var t={width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight};return E.rmBodyEl(e),t},make:function(e,t){var n=document.createElement(e);if(t&&E.isObj(t))for(var i in t)t.hasOwnProperty(i)&&n.setAttribute(i,t[i]);return n},rmBodyEl:function(e){document.body.removeChild(e)},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},getAttribute:function(e,t){var n="";return document.documentElement.hasAttribute||"class"!==t||(t="className"),e&&e.getAttribute&&(n=e.getAttribute(t,2)),n},clref:function(e){if(0!==e.indexOf("http://")&&0!==e.indexOf("https://"))return"";var t=this.strip(e);return t.clean||t.url},toJSON:function(e){return JSON.stringify(e)},hasCC:function(e){for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<32||"="===n)return!0}return!1},isValidPair:function(e,t){return!!this.in_value_whitelist(e)||(!(8<e.length||t.length>this.MAX_VALUE_LENGTH)||(E.logWarn("Invalid key/value pair ("+e+"="+t+") Size must be < 8/300 respectively."),!1))},ser:function(e,t){if(!e)return"";void 0===t&&(t=!0);var n=[],i="";for(var o in e)if(E.hasOwn(e,o)){var r=o,a=e[o];if(null===r||null===a)continue;if(r+="",(a+="")&&!this.in_value_whitelist(r)&&a.length>this.MAX_VALUE_LENGTH&&(a=a.substring(0,this.MAX_VALUE_LENGTH)),!this.isValidPair(r,a))continue;if(!this.hasCC(r)&&!this.hasCC(a)){(i="")!==(a=this.trim(a))&&" "!==a||!t||(a="_");try{i=(i=encodeURIComponent(r+""+a)).replace(/'/g,"%27")}catch(l){i="_ERR_ENCODE_",E.logErr(l)}n.push(i)}}return n.join("%04")},in_value_whitelist:function(e){if(E.isIE&&E.ieV<=8)return!1;return-1!==["A_res","A_cmi","A_cma","A_utm"].indexOf(e)},rmProto:function(e){return e?"http://"===e.substr(0,7)?e.substr(7,e.length):"https://"===e.substr(0,8)?e.substr(8,e.length):e:""},rand:function(){for(var e=0,t="";e++<16;){var n=Math.floor(62*Math.random());t+=n<10?n:String.fromCharCode(n<36?n+55:n+61)}return t+E.tms().toString(36)},tms:function(){return+new Date},aug:function(e,t,n){if(t)for(var i in t)if(this.hasOwn(t,i)){if(n&&!n.call(null,i,t[i]))continue;e[i]=t[i]}},strip:function(e){for(var t={"/":"P",";":"1","?":"P","&":"1","#":"P"},n={url:e,clean:"",keys:[]},i=0;-1!==e.indexOf("_yl",i);){var o=e.indexOf("_yl",i);if(i<o&&(n.clean+=e.slice(i,o-1)),i=o+3,t[e.charAt(o-1)]&&"="===e.charAt(o+4)){n.ult=1;var r="_yl"+e.charAt(o+3),a="";for(o+=5;o<e.length&&!t[e.charAt(o)];o++)a+=e.charAt(o);n.keys.push(r),n[r]=a,t[e.charAt(o)]&&"P"===t[e.charAt(o)]&&(n.clean+=e.charAt(o)),i=o+1}else n.clean+=e.slice(o-1,i)}return n.ult&&(n.clean+=e.substr(i)),n},getXHR:function(){return new XMLHttpRequest},hasCORS:function(){return!(E.isIE&&E.ieV<10)&&("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest)},COMPRESS_TYPE:{none:0,gzip:1,lzw:2,deflate:3},hasWorkers:function(){return!!window.Worker},getProtocol:function(){return void 0!==E&&E.yhlhttp?"http://":"https://"},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},off:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},async:function(e,t){return null==t&&(t=0),setTimeout(e,t)},hasClass:function(e,o){function t(e,t){var n,i=!1;return e&&o&&(n=E.getAttribute(e,"class")||"",i=o.exec?t.test(n):t&&-1<(" "+n+" ").indexOf(" "+t+" ")),i}if(this.isArr(o)){for(var n=0;n<o.length;n++)if(t(e,o[n]))return!0;return!1}return!!this.isStr(o)&&t(e,o)},extDomain:function(e){var t=e.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i);return t&&t[1]},screenPos:function(e){return screen?screen.width+(e||",")+screen.height:""},pos:function(e){var t=null,n=e.pageX,i=e.pageY;return this.isIE&&(t=function o(){var e=document.documentElement,t=document.body;return e&&(e.scrollTop||e.scrollLeft)?[e.scrollTop,e.scrollLeft]:t?[t.scrollTop,t.scrollLeft]:[0,0]}()),n||0===n||(n=e.clientX||0,this.isIE&&(n+=t[1])),i||0===i||(i=e.clientY||0,this.isIE&&(i+=t[0])),n+","+i},getElementsByTagNames:function(e,t){e||(e=document);for(var n=[],i=0;i<this.LINK_TAG_LIST.length;i++)for(var o=e.getElementsByTagName(this.LINK_TAG_LIST[i]),r=0;r<o.length;r++){var a=o[r];t&&!t.call(0,a)||n.push(a)}return this.sort(n)},getElementsByTagNamesDOMParsing:function(e,t,n,i){function o(e){for(var t=0;t<this.LINK_TAG_LIST.length;t++)if(e.tagName&&e.tagName.toLowerCase()===this.LINK_TAG_LIST[t].toLowerCase())return!0;return!1}t||(t=document);var r=n||[],a=t.childNodes;if("true"!==this.getAttribute(t,e.conf.skip_attr))for(var l=0;l<a.length;l++){var s=a[l];o(s)&&(i&&!i.call(0,s)||r.push(s)),"true"!==this.getAttribute(s,e.conf.skip_attr)?r=this.getElementsByTagNamesDOMParsing(e,s,r,i):"true"===E.getAttribute(s,e.conf.skip_attr)&&r.push(s)}return this.sort(r)},sort:function(e){var t=e[0];return t?(t.sourceIndex?e.sort(function(e,t){return e.sourceIndex-t.sourceIndex}):t.compareDocumentPosition&&e.sort(function(e,t){return 3-(6&e.compareDocumentPosition(t))}),e):[]},getLinkContent:function(e){for(var t,n=0,i="";(t=e.childNodes[n])&&t;n++)1===t.nodeType&&("img"===t.nodeName.toLowerCase()&&(i+=(this.getAttribute(t,"alt")||"")+" "),i+=this.getLinkContent(t));return i},getLT:function(e,t){if(!e)return"_";var n="";return t=t.toLowerCase(),n="input"===e.nodeName.toLowerCase()?this.getAttribute(e,"value"):"text"===t?/KHTML/.test(navigator.userAgent)?e.textContent:e.innerText?e.innerText:e.textContent:"href"===t?this.rmProto(this.getAttribute(e,"href")):this.getAttribute(e,t)||"",""===(n=this.trim(n))&&(n=this.trim(this.getLinkContent(e))),n&&n.length>E.MAX_VALUE_LENGTH&&(n=n.substring(0,E.MAX_VALUE_LENGTH)),""===n?"_":n},getCompStyle:function(n,e){return"undefined"!=typeof window.getComputedStyle?window.getComputedStyle(n,e):(this.el=n,this.getPropertyValue=function(e){var t=/(¥-([a-z]){1})/g;return"float"===e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(){return arguments[2].toUpperCase()})),n.currentStyle[e]?n.currentStyle[e]:0},this)},isAboveFoldArea:function(e,t){var n=this.getCompStyle(e);if("hidden"===n.getPropertyValue("visibility")||"none"===n.getPropertyValue("display"))return!1;var i,o,r=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,l=window.innerWidth||document.documentElement.clientWidth;if("undefined"==typeof r.height||"undefined"==typeof r.width?(i=Math.abs(r.bottom-r.top),o=Math.abs(r.right-r.left)):(i=r.height,o=r.width),function c(){return document.documentElement.scrollWidth>document.documentElement.clientWidth}()&&(a-=t.height),function u(){return document.documentElement.scrollHeight>document.documentElement.clientHeight}()&&(l-=t.width),r.right<=0||r.bottom<=0||r.left>=l||r.top>=a)return!1;var s={};return s.top=r.top<0?0:r.top,s.left=r.left<0?0:r.left,s.bottom=r.bottom>a?a:r.bottom,s.right=r.right>l?l:r.right,s.width=s.right-s.left,s.height=s.bottom-s.top,o*i/2<=s.width*s.height},ltattr:function(e,t){return E.hasClass(e,"rapid_track_href")?"href":E.hasClass(e,"rapid_track_text")?"text":E.hasClass(e,"rapid_track_title")?"title":E.hasClass(e,"rapid_track_id")?"id":t},isAvailableSendBeacon:function(){return"undefined"!=typeof window.navigator.sendBeacon&&"undefined"!=typeof Blob}};return E.ieV=E.isIE?document.documentMode?document.documentMode:document.compatMode&&"CSS1Compat"===document.compatMode?7:5:null,E.isFlowinpv=function(){var e=document.getElementsByTagName("script"),t=/https?:\/\/[is]\.yimg\.jp\/images\/ds\/ult\/apj\/rapid-[\d.]+\.js/;for(var n in e)if("string"==typeof e[n].src&&null!==e[n].src.match(t))return!0;return!1}(),E.extend(h,{Uploader:function(k){var A;function a(h,v,_,y,e){function b(e,t,n){var i="select * from x where a = '"+e+"'";return(t?"q=":"")+(n?encodeURIComponent(i):i)}function w(e,t){E.logDebug("[Yahoo.i13n.Uploader.send.exec] this method is XHR transfer.");var n=E.getXHR();n.open("POST",e,!0),n.withCredentials=!0,n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),v&&E.isFunction(v)&&(n.timeout=k.conf.click_timeout),n.onload=n.ontimeout=n.onerror=n.onabort=function(){v&&E.isFunction(v)&&v.call(0,_,y)},n.send(t)}function t(e,t,n){0===t&&(e=e.replace(/'/g,"\\'")),E.isDebug()&&E.logDebug("[Yahoo.i13n.Uploader.send.exec] A_sid : "+k.conf.keys.get("A_sid"));var i=function g(e){var t=[E.getProtocol(),k.conf.yql_host,k.conf.yql_path,"?yhlVer=2&yhlClient=rapid&yhlS=",k.conf.spaceid,!0===k.conf.deb?"&yhlEnv=staging":"",!0===k.conf.deb||k.conf.ldbg?"&debug=true&diagnostics=true":"",E.isIE&&E.ieV?"&yhlUA=ie"+E.ieV:"","&format=json","&yhlCT=2","&yhlBTMS=",(new Date).valueOf(),"&yhlClientVer=",k.conf.version,"&yhlRnd=",E.rand(),"&yhlCompressed=",e||0].join("");return E.logDebug("[Yahoo.i13n.Uploader.getURI] result : "+t),t}(t),o=b(e,!0,!0);if(n)A=i+"&"+o;else if(k.conf.click_sendbeacon&&E.isAvailableSendBeacon()&&void 0!==y)!function m(e,t){E.logDebug("[Yahoo.i13n.Uploader.send.exec] this method is sendBeacon transfer.");var n=new Blob([t],{type:"application/x-www-form-urlencoded;charset=UTF-8",host:k.conf.yql_host});return navigator.sendBeacon(e,n)}(i,o)?w(i,o):v.call(0,_);else if(E.hasCORS())w(i,o);else{E.logDebug("[Yahoo.i13n.Uploader.send.exec] this method is to create Iframe and form submit.");var r="rapid_if_"+E.rand(),a="rapid_if_"+E.rand(),l=document.createElement("iframe"),s="application/x-www-form-urlencoded;charset=UTF-8",c=null,u=null,d=null,f=null;l.name=r;var p=function(){E.off(l,"load",p),E.async(function(){document.body.removeChild(l)})};l.setAttribute("style","display:none"),document.body.appendChild(l),(c=l.contentDocument||l.contentWindow.document).open(),c.close(),(u=c.createElement("form")).setAttribute("style","display:none"),u.id=a,u.method="POST",u.action=i,u.target=r,u.setAttribute("enctype",s),u.setAttribute("encoding",s),(d=c.createElement("input")).name="q",d.value=b(h,0,0),d.type="text",u.appendChild(d),(f=c.createElement("input")).type="submit",u.appendChild(f),c.body.appendChild(u),c.charset="UTF-8",E.on(l,"load",p),v&&E.isFunction(v)&&E.on(u,"submit",function(){v.call(0,_)}),f.click()}}function n(){r||(r=!0,t(h,0),E.logDebug("[Yahoo.i13n.Uploader.send] sent in failSend"))}var i=E.COMPRESS_TYPE[k.conf.compr_type];if(k.conf.compr_on&&E.hasWorkers()&&1<i&&2048<h.length&&!e){E.logDebug("[Yahoo.i13n.Uploader.send] Looking for worker:"+k.conf.webworker_file+", compr timeout:"+k.conf.compr_timeout);try{var o=new Worker(k.conf.webworker_file),r=!1,a=null;o.onerror=function(e){clearTimeout(a),n(),E.logWarn(e.message),o.terminate()},o.onmessage=function(e){clearTimeout(a),"Decompress fail"!==e.data&&"Compress fail"!==e.data&&0!==e.data.indexOf("error:")||(E.logDebug("[Yahoo.i13n.Uploader.send]"+e.data),n()),r||(r=!0,t(e.data,i)),o.terminate()},o.postMessage({type:i,json:h}),a=E.async(function(){n(),o.terminate()},k.conf.compr_timeout)}catch(l){E.logDebug("[Yahoo.i13n.Uploader.send]compression worker exception "+l),t(h,0)}}else t(h,0,e)}function c(e){var t={_pl:1,A_v:k.conf.version,A_jpv:k.conf.rapidjp_version},n=E.trim(E.clref(null!==k.conf.referrer?k.conf.referrer:document.referrer));n&&!1!==e&&(t._R=n),k.conf.ex&&(t._ex=1),t._bt||(t._bt="rapid"),E.isFlowinpv&&(t.flowinpv="1");var i=window.location.protocol||"";return i=i.replace(/:$/,""),t.A_pr=i,t.A_tzoff=(new Date).getTimezoneOffset(),t.A_tzoff=t.A_tzoff?-1*t.A_tzoff/60:0,E.logDebug("[Yahoo.i13n.Uploader.createBP] result : "+t),t}function n(e,t){if(E.isIE&&E.ieV<=8)E.logDebug("[Yahoo.i13n.Uploader.send.exec] did not send. for unsupported browsers");else{E.logDebug("[Yahoo.i13n.Uploader.isendRapidPage]");var n=function i(n,e){return E.logTrace("[Yahoo.i13n.Uploader.createPageJson] Modules ",n),E.logTrace("[Yahoo.i13n.Uploader.createPageJson] Parameter ",e),E.toJSON({bp:c(),r:[{t:"lv",s:k.conf.spaceid,pp:(t=h.PageParams.makeFromPP(k.conf.keys),e&&t.absorb(e),t.getAll()),_ts:Math.floor((new Date).valueOf()/1e3),lv:function(){var u=[],d=null;for(var e in n)if(E.hasOwn(n,e)&&(d=n[e])){var t=function(){function e(e,t){var n="_p"===e;return!!n||"sec"===e&&t!==i.m&&t!==r||"sec"!==e&&!n}var i={m:E.trim(d.moduleName),l:[]};d.moduleNode&&(i.ylk=d.moduleNode.getAll());var t,n,o,r=u.ylk&&u.ylk.sec?u.ylk.sec:"",a=d.links;if(a)for(var l=0;l<a.length;l++)if(a[l])if(!k.conf.viewability||a[l].viewable){var s=a[l].data;s.length>E.MAX_VALUE_LENGTH&&(a[l].data=s.substring(0,E.MAX_VALUE_LENGTH));var c=(t=a[l].data,n=e,o={},E.isObj(t)&&E.aug(o,t,n),o);i.l.push(c)}else E.logDebug("Skipping not viewable link: "+a[l].data.slk);return i}();0<t.l.length?u.push(t):E.logDebug('[Yahoo.i13n.Uploader.createPageRowMsg] Not capturing 0 links mod: "'+d.moduleName+'"')}return u}()}],yrid:k.conf.yrid,optout:k.conf.oo,nol:k.conf.nol});var t}(e,t);E.logTrace("[Yahoo.i13n.Uploader.isendRapidPage] Json ",n),a(n)}}function i(e,t,n){if(E.isIE&&E.ieV<=8)E.logDebug("[Yahoo.i13n.Uploader.send.exec] did not send. for unsupported browsers");else{E.logDebug("[Yahoo.i13n.Uploader.isendRapidClick]");var i=function o(i){return E.logTrace("[Yahoo.i13n.Uploader.createClickJson] sender ",i),E.toJSON({bp:c(),r:[{t:"cl",s:k.conf.spaceid,pp:h.PageParams.makeFromPP(k.conf.keys).getAll(),_ts:Math.floor((new Date).valueOf()/1e3),ci:function(){var e={};for(var t in i.targetObject&&i.targetObject.moduleNode&&(e=i.targetObject.moduleNode.getAll()),i.data)if(E.hasOwn(i.data,t)){var n=i.data[t];null!==n&&n.length>E.MAX_VALUE_LENGTH&&(i.data[t]=n.substring(0,E.MAX_VALUE_LENGTH)),"function"==typeof i.data[t]&&(i.data[t]=i.data[t].toString()),e[t]=i.data[t]}return e}()}],yrid:k.conf.yrid,optout:k.conf.oo,nol:k.conf.nol})}(e);E.logTrace("[Yahoo.i13n.Uploader.isendRapidClick] Json ",i),e.stop||function r(e){e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}(e.event),a(i,t,e,e.event?{autoClick:!0}:undefined,n)}}function o(e,t,n){if(E.isIE&&E.ieV<=8)E.logDebug("[Yahoo.i13n.Uploader.send.exec] did not send. for unsupported browsers");else{E.logDebug("[Yahoo.i13n.Uploader.isendRapidEvent]");var i=function s(e,t,n,i){var o=h.PageParams.makeFromPP(k.conf.keys).getAll();if(n=n||{},e){var r=YAHOO.i13n.EventTypes.getEventByName(e);n._E=r.getEventName(),t=n._E}else n._E=t||"_";for(var a in i&&(n.outcm=i),n)if(E.hasOwn(n,a)&&8<a.length)delete n[a];else{var l=n[a];l.length>E.MAX_VALUE_LENGTH&&(n[a]=l.substring(0,E.MAX_VALUE_LENGTH))}return E.extend(o,n),E.toJSON({bp:c(),r:[{t:"ev",s:k.conf.spaceid,pp:o,_ts:Math.floor((new Date).valueOf()/1e3)}],yrid:k.conf.yrid,optout:k.conf.oo,nol:k.conf.nol})}(0,e,t,n);E.logTrace("[Yahoo.i13n.Uploader.isendRapidEvent] Json ",i),a(i)}}return{sendRapidPage:function(e,t){E.logDebug("[Yahoo.i13n.Uploader.sendRapidPage]"),n(e,t)},sendRapidClick:function(e,t,n){E.logDebug("[Yahoo.i13n.Uploader.sendRapidClick]"),i(e,t,n)},sendRapidEvent:function(e,t,n,i){E.logDebug("[Yahoo.i13n.Uploader.sendRapidEvent]"),o(e,t,n)},getBeaconUrl:function(){return A}}},Module:function(f,e,t,n,c){function s(e,t){return t>e.links.length?null:e.links[t-1]}function u(e,t,n,i,o,r,a,l){var s="",c=null,u=!a||E.isAboveFoldArea(i,l),d={viewable:u,data:{sec:t,_p:n}};return a&&E.aug(d.data,{A_lv:1}),r?(d.data.slk=o||"section",c=f.fn.getNode(i)):(i.setAttribute(f.conf.anc_pos_attr,n),a&&i.setAttribute(f.conf.anc_v9y_attr,u?"1":"0"),(s=E.getLT(i,e))&&""!==s?c=f.fn.getNode(i):s="_ELINK_",s="_",d.data.slk=o||s),null!==c&&E.aug(d.data,c.getAll()),d}function i(e){var t=[];p.linkpos=p.linkpos||1;for(var n=null,i=null!==p.moduleNode?p.moduleNode.map.sec:null,o=null!==p.moduleNode?p.moduleNode.map.slk:null,r=0;r<e.length;r++)if("div"===e[r].tagName.toLowerCase()){var a=e[r],l=f.fn.getNode(a);n=u(E.ltattr(d,f.conf.lt_attr),i||p.moduleName,1,a,l.map.slk||o,!0,p.useViewability,c),p.links[0]=n,t.push(n)}else{var s=e[r];n=u(E.ltattr(d,f.conf.lt_attr),i||p.moduleName,p.linkpos,s,o,0,p.useViewability,c),p.links[p.linkpos-1]=n,t.push(n),p.linkpos++}return"true"===E.getAttribute(d,f.conf.skip_attr)&&(n=u(E.ltattr(d,f.conf.lt_attr),i||p.moduleName,1,a,o,!0,p.useViewability,c),p.links[0]=n,t.push(n)),t}function o(i){function e(e,t,n){var i=t.target?t.target.toLowerCase():"_self";return"_self"!==i&&"_top"!==i&&"_parent"!==i&&window.name!==i||2===e.which||4===e.button||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||"on"===E.getAttribute(t,"data-nofollow")||E.getAttribute(t,"href")&&"javascript:"===E.getAttribute(t,"href").substr(0,11).toLowerCase()||E.hasClass(t,f.conf.nofollow_class)||E.hasClass(n,f.conf.nofollow_class)}var o=function a(e){var t=e.target||e.srcElement;for(t&&3===t.nodeType&&(t=t.parentNode);t&&"a"!==t.nodeName.toLowerCase()&&"button"!==t.nodeName.toLowerCase()&&("input"!==t.nodeName.toLowerCase()||"submit"!==E.getAttribute(t,"type"))&&!E.hasClass(t,f.conf.nonanchor_track_class);)t=t.parentNode;return t}(i=i||event);if(o&&!E.hasClass(o,f.conf.no_click_listen)){if(0<f.conf.ignore_click_interval){if("1"===o.getAttribute(f.conf.ignore_click_attr))return;o.setAttribute(f.conf.ignore_click_attr,"1"),setTimeout(function(){o.setAttribute(f.conf.ignore_click_attr,"0")},f.conf.ignore_click_interval)}var t=o.nodeName.toLowerCase(),r=E.getAttribute(o,f.conf.anc_pos_attr);if(null!==s(p,r)){var n={data:function(){var e=null;if(E.hasClass(o,f.conf.nonanchor_track_class)){e={pos:0,sec:p.moduleName,slk:"_"};var t=f.fn.getNode(o,1);t&&E.aug(e,t.getAll())}else e=s(p,r).data;if(!e.tar){var n=E.getAttribute(o,"href");n&&(e.tar=E.extDomain(n)),n&&e.tar||(e.tar=E.extDomain(f.conf.loc))}return e.tar_uri||(o.pathname?e.tar_uri=o.pathname.substring(0,E.MAX_VALUE_LENGTH):e.tar_uri=""),e.A_xy=E.pos(i),e.A_sr=E.screenPos(),"contextmenu"===i.type&&(e.A_cl=3),e}(),event:i,moduleElement:p.moduleElement,targetElement:o,targetObject:p,stop:e(i,o,p.moduleElement)||"input"===t||"button"===t,synch:!E.hasClass(o,f.conf.nonanchor_track_class)&&"input"!==t&&"button"!==t&&!e(i,o,p.moduleElement)&&"contextmenu"!==i.type,hasTargetTop:o&&o.target&&"_top"===o.target.toLowerCase(),hasTargetParent:o&&o.target&&"_parent"===o.target.toLowerCase()};f.variable.uploader.sendRapidClick(n,function l(e){if(E.logTrace("[Yahoo.i13n.Uploader.redirect] sender ",e),e.synch){if(e.targetElement)if(f.conf.click_postmsg.origin){var t=f.conf.click_postmsg.window||top,n=f.conf.click_postmsg.payload||{};n.href=e.targetElement.href,t.postMessage(E.toJSON(n),f.conf.click_postmsg.origin)}else if(E.isIE&&11<=E.ieV||E.isEdge)"complete"!==document.readyState&&history.pushState("",document.title),e.hasTargetTop?top.document.location=e.targetElement.href:e.hasTargetParent?parent.document.location=e.targetElement.href:document.location=e.targetElement.href;else{var i=e.targetElement.cloneNode(!0);if(i.dispatchEvent){var o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),i.dispatchEvent(o)}else i.click()}}else E.logDebug("[Yahoo.i13n.Uploader.redirect] synch "+e.synch)})}}}E.logDebug("[Yahoo.i13n.Module]");var d=document.getElementById(t);if(!d)return E.logWarn("Specified module not in DOM: "+t),null;var p={useViewability:n,moduleNode:f.fn.getNode(d),links:[],moduleName:e,trackType:E.getAttribute(d,f.conf.track_type),moduleElement:d,clickEvent:o,setLink:i,link:u,linkpos:1};return E.logTrace("[Yahoo.i13n.Module] targetObject ",p),i(f.conf.parse_dom?E.getElementsByTagNamesDOMParsing(f,d):E.getElementsByTagNames(d)),E.on(d,"click",o),f.conf.track_right_click&&E.on(d,"contextmenu",o),E.logTrace("[Yahoo.i13n.Module] targetObject ",p),p},Node:function(){this.map={},this.count=0},PageParams:function(e){this.map={},this.count=0,e&&this.absorb(e)},MsgHeader:function(){},ViewabilityManager:function(o){function r(){return"undefined"!=typeof window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}function a(){return"undefined"!=typeof window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft}function e(){var e=r(),t=a(),n=-1===c?e-l:e-c,i=-1===u?t-s:t-u;(Math.abs(n)>o.conf.viewability_px||Math.abs(i)>o.conf.viewability_px||d)&&(o.variable.moduleList.sendViewability(),c=e,u=t,d=!1)}function t(){null!==n&&clearTimeout(n),(new Date).getTime()-i<o.conf.viewability_time&&(l=r(),s=a()),n=E.async(e,o.conf.viewability_time)}E.logDebug("[Yahoo.i13n.ViewabilityManager]");var n=null,i=(new Date).getTime(),l=r(),s=a(),c=-1,u=-1,d=!1;return o.variable.moduleList.refreshViewability=function f(){d=!0,t()},E.on(window,"scroll",t),{reInit:function(){l=r(),s=a(),u=c=-1,i=(new Date).getTime()},destroy:function(){E.off(window,"scroll",t)}}}}),h.MsgHeader.prototype={ser:function(){return E.ser(this.map)},set:function(e,t){var n=E.trim(t);E.isStr(n)&&(n=n.replace(/\\/g,"\\\\")),!E.in_value_whitelist(e)&&n.length>E.MAX_VALUE_LENGTH&&(n=n.substring(0,E.MAX_VALUE_LENGTH)),E.isValidPair(e,n)&&(this.map[E.trim(e)]=n,this.count++)},get:function(e){return this.map[e]},getAll:function(){return JSON.parse(JSON.stringify(this.map))},absorb:function(e){if(e&&E.isObj(e))for(var t in e)E.hasOwn(e,t)&&this.set(t,e[t])},absorb_filter:function(e,t){if(e&&E.isObj(e))for(var n in e)t&&!t.call(null,n)||E.hasOwn(e,n)&&this.set(n,e[n])},getSize:function(){return this.count}},h.PageParams.makeFromPP=function(){for(var e=new h.PageParams,t=arguments.length,n=0;n<t;n++)"undefined"!=typeof arguments[n]&&null!==arguments[n]&&e.absorb(arguments[n].getAll());return e},h.PageParams.prototype=new h.MsgHeader,h.PageParams.prototype.constructor=h.MsgHeader,h.Node.prototype=new h.MsgHeader,h.Node.prototype.constructor=h.MsgHeader,h.Module.List=function(d){var f={};return{add:function(e,t){f[E.trim(e)]=t},addRange:function(e,t){E.logDebug("[Yahoo.i13n.Module.List]");var n=E.isArr(e),i=t?E.getScrollbarWidthHeight():{},o=[];for(var r in n||E.isStr(e)&&(e=new Array(e),n=!0),e)if(E.hasOwn(e,r)){var a=n?e[r]:r,l=E.trim(e[r]);if(this.exists(a))E.logErr('add() called with prev processed id:"'+a+'"');else{var s=h.Module(d,l,a,t,i);s&&(this.add(a,s),o.push(s))}}return o},get:function(){return f},sendViewability:function(){function e(l,n){var e=function a(e,t){e||(e=document);for(var n=[],i=e.getElementsByTagName("a"),o=0;o<i.length;o++){var r=i[o];t&&!t.call(0,r)||n.push(r)}return E.sort(n)}(l.moduleElement,function o(e){if(!E.getAttribute(e,d.conf.anc_pos_attr)){l.linkpos++,e.setAttribute(d.conf.anc_pos_attr,l.linkpos);var t=l.link(E.ltattr(e,d.conf.lt_attr),l.moduleNode.map.sec||c,l.linkpos,e,l.moduleNode.map.slk,0,!1,n);l.links[l.linkpos-1]=t}return!("1"===E.getAttribute(e,d.conf.anc_v9y_attr)||!E.isAboveFoldArea(e,n)||(e.setAttribute(d.conf.anc_v9y_attr,"1"),0))});if(0!==e.length&&d.conf.USE_RAPID){var t=function s(e,t){for(var n=[],i=0;i<e.length;i++){var o=e[i],r=E.getAttribute(o,d.conf.anc_pos_attr),a=l.link(E.ltattr(o,d.conf.lt_attr),l.moduleNode.map.sec||c,r,o,l.moduleNode.map.slk,0,!0,t);n.push(a)}return n}(e,n),i={};E.aug(i,l),i.links=t,d.variable.uploader.sendRapidPage([i])}}var t=function i(){var e={};for(var t in f){var n=f[t];n.useViewability&&(e[t]=n)}return e}(),n=E.getScrollbarWidthHeight();for(var c in t)e(t[c],n)},refresh:function(e,t,n){function i(e){return!E.getAttribute(e,d.conf.anc_pos_attr)}var o=f[E.trim(e)];if(o){n.isRefreshed=!0;var r=document.getElementById(e),a=d.conf.parse_dom?E.getElementsByTagNamesDOMParsing(d,r,null,i):E.getElementsByTagNames(r,i),l=0;if(0<a.length){var s=o.setLink(a);if(l=a.length,o.useViewability)for(var c=l=0;c<s.length;c++)s[c].viewable&&l++;if(0<l&&(d.conf.USE_RAPID||n.event)){var u={};E.aug(u,o),t&&(u.links=s,d.variable.uploader.sendRapidPage([u],n.pp))}}}else E.logErr("refreshModule called on unknown section: "+e)},remove:function(e){var t=f[E.trim(e)];t&&(E.off(t.moduleElement,"click",t.clickEvent),delete f[E.trim(e)])},destroy:function(){for(var e in f)this.remove(e)},exists:function(e){return"undefined"!=typeof f[E.trim(e)]}}},E.extend(h,{initialize:function(i,m,n){function o(){var e=arguments.length;if(e<2)E.logErr("[Yahoo.i13n.Rapid.setValue] This parameter length is wrong.");else for(var t=m.conf,n=arguments[1],i=2;i<e;i++)"undefined"!=typeof arguments[i]&&(t[n]=arguments[i])}function r(e){var t=m.conf;t[e]=E.trim(t[e])}i=i||{},m.conf={},function a(){function e(e){var t=function l(e){var t=s.loc,n=t.indexOf("?")+1,i=t.substring(n);i=i.split("&");for(var o=0;o<i.length;o++){var r=i[o].split("=");if(2===r.length&&E.trim(r[0])===e){var a=E.trim(r[1]);return a=a.replace(/[!@#$%^&*();:'",./<>?_=¥+¥-]/gi,"")}}return null}(e);return null!==t&&("true"===t||"1"===t)}var t,s=m.conf;for(var n in h.define)null!==n&&""!==n&&o(m,n,h.define[n]);for(n in s)null!==n&&""!==n&&o(m,n,i[n]);o(m,"loc",i.location,document.location.href),s.keys=((t=new h.PageParams).set("A_sid",YAHOO.i13n.A_SID||E.rand()),t.set("_w",E.rmProto(s.loc).substring(0,E.MAX_VALUE_LENGTH)),i.keys&&t.absorb(i.keys),t),o(m,"spaceid",s.override.spaceid,YAHOO.i13n.SPACEID),r(m),r(m),s.oo=i.oo?"1":"0",s.nol=i.nol?"1":"0",s.yql_enabled=!1!==i.yql_enabled,s.fing=1===i.use_fing,s.USE_RAPID=!1!==i.use_rapid,o(m,"linktrack_attribut",i.lt_attr),s.compr_on=!1!==i.compr_on,o(m,"webworker_file",YAHOO.i13n.WEBWORKER_FILE),o(m,"no_click_listen",i.rapid_noclick_resp),s.deb=!0===i.debug,s.ldbg=0<i.ldbg||e("yhldebug"),s.yhlhttp=e("yhlhttp")||!0===i.use_http,o(m,"addmod_timeout",i.addmodules_timeout),s.ult_token_capture="boolean"==typeof i.ult_token_capture&&i.ult_token_capture,s.dwell_on=!0===i.dwell_on,s.async_all_clicks=!0===i.async_all_clicks,s.apv=!1!==i.apv,s.apv_always_send=!0===i.apv_always_send,s.ex=!0===i.ex,s.persist_asid=!0===i.persist_asid,s.track_right_click=!0===i.track_right_click,s.parse_dom=!0===i.parse_dom,s.pageview_on_init=!1!==i.pageview_on_init,s.compr_timeout*=1,E.debug=s.ldbg,E.yhlhttp=s.yhlhttp,E.isNum(s.compr_timeout)?s.compr_timeout=E.getValueWithBounds(s.compr_timeout,300,700):s.compr_timeout=700,s.ldbg&&1e4!==s.click_timeout&&E.logWarn("[Yahoo.i13n.Rapid.initialize] Click timeout set to "+s.click_timeout+"ms (default 10000ms)"),i.apv_callback&&E.isFunction(i.apv_callback)&&o(m,"apv_callback",i.apv_callback)}(),function e(){E.extend(m,{variable:{moduleList:new h.Module.List(m),uploader:new h.Uploader(m),viewabilityManager:null},fn:{inlineInit:function(){},inlineBeaconEvent:function(e,t,n,i){m.variable.uploader.sendRapidEvent(e,t,n,i)},inlineBeaconClick:function(e,t,n,i,o,r,a){if(!i&&o&&(i={}),o&&(i.outcm=o),m.variable.uploader.sendRapidClick(function l(e,t,n,i,o){var r={outcome:o,event:null,moduleElement:null,targetElement:null,synch:!1,hasTargetTop:!1,hasTargetParent:!1};return r.data={sec:e,slk:t,_p:n},E.aug(r.data,i),r}(e,t,n,i,o),r,a),!0===a)return m.variable.uploader.getBeaconUrl()},inlineAddModules:function(e,t,n){var i={A_am:1};(n=n||{}).pp&&E.aug(i,n.pp),n.useViewability=n.useViewability||!1;var o=m.variable.moduleList.addRange(e,n.useViewability);m.conf.USE_RAPID&&o&&0<o.length&&m.variable.uploader.sendRapidPage(o,i)},inlineAddModulesWithViewability:function(e,t,n){(n=n||{}).useViewability=m.conf.viewability,this.inlineAddModules(e,t,n)},inlineRefreshModule:function(e,t,n,i){i=i||{};var o=!1!==n;m.variable.moduleList.refresh(e,o,i)},inlineRefreshViewability:function(){m.variable.moduleList.refreshViewability()},inlineRemoveModule:function(e){m.variable.moduleList.remove(e)},inlineIsModuleTracked:function(e){return m.variable.moduleList.exists(e)},inlineGetModulesInfo:function(){return m.variable.moduleList.get()},inlineDestroy:function(){m.variable.moduleList.destroy(),m.variable.viewabilityManager&&m.variable.viewabilityManager.destroy()},inlineReInit:function(e){h.initialize(e,m,!0)},inlineSetRapidAttribute:function(e){e.keys&&m.conf.keys.absorb(e.keys),e.spaceid&&(m.conf.spaceid=e.spaceid),e.referrer&&(m.conf.referrer=e.referrer.substring(0,E.MAX_VALUE_LENGTH)),e.A_sid&&(m.conf.keys.set("A_sid",e.A_sid),m.conf.persist_asid=!0),e.location&&(m.conf.loc=e.location,m.conf.keys.set("_w",E.rmProto(e.location).substring(0,E.MAX_VALUE_LENGTH)))},inlineClearRapidAttribute:function(e){for(var t in e)if("keys"===e[t]){var n=m.conf.keys.get("_w"),i=m.conf.keys.get("A_sid");m.conf.keys=new h.PageParams,m.conf.keys.set("_w",n),m.conf.keys.set("A_sid",i)}else"referrer"===e[t]?m.conf.referrer="":"A_sid"===e[t]?(m.conf.keys.set("A_sid",""),m.conf.persist_asid=!0):"location"===e[t]&&(m.conf.loc="",m.conf.keys.set("_w",""))},inlineGetCurrentSID:function(){return m.conf.keys.get("A_sid")},inlineBeaconLinkViews:function(e,t,n,i){var o={};if((n=n||{}).pp&&E.aug(o,n.pp),0!==e.length||n.event){for(var r=[],a=0;a<e.length;a++){var l=e[a],s=new h.Node;s.absorb_filter(l,function(e){return"sec"!==e&&"_links"!==e});for(var c=[],u=1,d=0;d<l._links.length;d++){var f=l._links[d],p={viewable:!0,data:{sec:l.sec,_p:u++,A_lv:2}};E.aug(p.data,f),c.push(p)}var g={moduleName:l.sec,moduleNode:s,links:c,identifier:l.sec};r.push(g)}m.conf.USE_RAPID&&r&&m.variable.uploader.sendRapidPage(r,o),i&&i.call()}},getNode:function(e,t){if(!e)return null;null===t&&(t=!1);var n=new h.Node,i=E.getAttribute(e,"data-action-outcome");i&&n.set("outcm",i);var o=E.getAttribute(e,"data-ylk");if(null===o||0===o.length)return n;for(var r=o.split(m.conf.ylk_pair_delim),a=0;a<r.length;a++){var l=r[a].split(m.conf.ylk_kv_delim);if(2===l.length){var s=l[0],c=l[1];null!==s&&""!==s&&null!==c&&(c.length>E.MAX_VALUE_LENGTH&&(c=c.substring(0,E.MAX_VALUE_LENGTH)),s.length<=8&&c.length<=E.MAX_VALUE_LENGTH&&("_p"!==s||t)&&n.set(s,c))}}return n},getEventMapping:function(e){return m.conf.eventMapping[e]}}})}(),function s(){m.variable.moduleList.destroy();var e=m.variable.moduleList.addRange(m.conf.tracked_mods,!1),t=m.variable.moduleList.addRange(m.conf.tracked_mods_viewability,m.conf.viewability);m.conf.USE_RAPID&&m.conf.pageview_on_init&&!n&&m.variable.uploader.sendRapidPage(e.concat(t)),function l(t){function e(e){(document.addEventListener||e&&"load"===e.type||"complete"===document.readyState)&&(i=!0,n(),t.call(this))}function n(){document.addEventListener?(document.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1)):(document.detachEvent("onreadystatechange",e),window.detachEvent("onload",e))}E.logDebug("[Yahoo.i13n.Rapid.executeOnLoad]");var i=!1;if("complete"===document.readyState)E.async(e);else if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1);else{document.attachEvent("onreadystatechange",e),window.attachEvent("onload",e);var o=!1;try{o=null===window.frameElement&&document.documentElement}catch(r){E.logErr("[Yahoo.i13n.Rapid.executeOnLoad] e : "+r)}o&&o.doScroll&&function a(){if(!i){try{o.doScroll("left")}catch(e){return void E.async(a,50)}n(),t.call(this)}}()}}(function(){m.variable.viewabilityManager=new h.ViewabilityManager(m)}),E.isFunction(m.conf.init_callback)&&m.conf.init_callback()}(),function l(){var e="richview";function t(e,t,n){this.yqlid=e,this.eventName=t,this.spaceidPrefix=n}t.prototype={getYQLID:function(){return this.yqlid},getEventName:function(){return this.eventName}},m.conf.eventMapping={pageview:new t("pv","pageview",""),simple:new t("lv","event","P"),linkview:new t("lv","linkview","P"),richview:new t(e,e,"R"),contentmodification:new t(e,"contentmodification","R"),dwell:new t("lv","dwell","D")}}(),E.logTrace("[Yahoo.i13n] conf",m.conf)},conf:{},define:{override:{},version:"4.4.0",rapidjp_version:"2.0.0",keys:null,referrer:null,spaceid:"0",yrid:"",oo:"0",nol:"0",yql_enabled:!1,fing:!1,USE_RAPID:!1,linktrack_attribut:"text",tracked_mods:[],tracked_mods_viewability:[],viewability:!1,viewability_time:300,viewability_px:50,lt_attr:"text",client_only:null,text_link_len:-1,yql_host:"logql.yahoo.co.jp",yql_path:"/v1/public/yql",click_timeout:1e4,compr_timeout:300,compr_on:!1,compr_type:"deflate",webworker_file:"rapidworker-1.2.js",nofollow_class:"rapidnofollow",no_click_listen:"rapid-noclick-resp",nonanchor_track_class:"rapid-nonanchor-lt",anc_pos_attr:"data-rapid_p",anc_v9y_attr:"data-v9y",deb:!1,ldbg:!1,addmod_timeout:300,ult_token_capture:!1,track_type:"data-tracktype",dwell_on:!1,async_all_clicks:!1,click_postmsg:{},apv:!1,apv_time:500,apv_px:500,apv_always_send:!1,apv_callback:null,ex:!1,persist_asid:!1,track_right_click:!1,skip_attr:"data-rapid-skip",parse_dom:!1,pageview_on_init:!1,perf_navigationtime:0,perf_commontime:null,perf_usertime:null,perf_resourcetime:0,sample:{},loc:null,init_callback:null,ylk_kv_delim:":",ylk_pair_delim:";",eventMapping:{},yhlhttp:!1,click_sendbeacon:!1,ignore_click_interval:0,ignore_click_attr:"data-rapid_ignore_click"}}),{EventTypes:{getEventByName:function(e){"use strict";return h.fn.getEventMapping(e)}},Rapid:function(e){"use strict";var a={};return h.initialize(e,a,!1),{init:function(){a.inlineInit()},beaconEvent:function(e,t,n,i){a.fn.inlineBeaconEvent(e,t,n,i)},beaconClick:function(e,t,n,i,o,r){a.fn.inlineBeaconClick(e,t,n,i,o,r)},getBeaconClick:function(e,t,n,i,o){return a.fn.inlineBeaconClick(e,t,n,i,o,null,!0)},addModules:function(e,t,n){a.fn.inlineAddModules(e,t,n)},addModulesWithViewability:function(e,t,n){a.fn.inlineAddModulesWithViewability(e,t,n)},refreshModule:function(e,t,n,i){a.fn.inlineRefreshModule(e,t,n,i)},refreshViewability:function(){a.fn.inlineRefreshViewability()},removeModule:function(e){a.fn.inlineRemoveModule(e)},isModuleTracked:function(e){return a.fn.inlineIsModuleTracked(e)},getModulesInfo:function(){return a.fn.inlineGetModulesInfo()},destroy:function(){a.fn.inlineDestroy()},reInit:function(e){a.fn.inlineReInit(e)},setRapidAttribute:function(e){a.fn.inlineSetRapidAttribute(e)},clearRapidAttribute:function(e){a.fn.inlineClearRapidAttribute(e)},getCurrentSID:function(){return a.fn.inlineGetCurrentSID()},beaconLinkViews:function(e,t,n,i){a.fn.inlineBeaconLinkViews(e,t,n,i)}}},JP:{simpleRapid:function(e){e=e||{};var t,n,r,d,i=window,o=document,a=0<o.location.toString().indexOf("yhldebug=1");function l(e){return"string"==typeof e?e.replace(/\^/g,""):e}function s(e,t){e=l(e),t=l(t),""!==e&&""!==t&&(r[e]=t)}function c(e,t){var n,i;for(i in e=l(e),t)n=l(t[i]),""!==(i=l(i))&&""!==n&&(r[e][i]=n)}function f(){return p("Object",d)&&"function"==typeof d.init}function p(e,t){var n=Object.prototype.toString.call(t).slice(8,-1);return null!=t&&n===e}function u(e){var t,n,i=[];if(document.getElementsByClassName)i=document.getElementsByClassName(e);else if(p("String",e)){t=document.getElementsByTagName("*");for(var o=0;o<t.length;o++)p("String",n=t[o].className||t[o].getAttribute("class"))&&-1!==(" "+n+" ").indexOf(" "+e+" ")&&i.push(t[o])}return i}function g(e,t){var n;for(n in e)if(e[n]===t)return n;return-1}function m(e,t){var n,i,o={};if(p("Object",t))o=t;else if(p("Array",t))for(i in t)o[t[i]]=t[i];else o[t]=t;for(n in o)r[e][n]=o[n]}function h(e,t){e=l(e),t=l(t),""!==e&&""!==t&&-1!==g(r[e],t)&&r[e].splice(g(r[e],t),1)}function v(){return{tracked_mods:{},keys:{cl:i.screen.colorDepth,dspsize:i.screen.width+"x"+i.screen.height,enc:(o.characterSet||o.charset).toLowerCase(),os:function t(){var e=navigator.userAgent;return e.match(/windows\sphone/i)?"windowsphone":e.match(/windows/i)?"windows":e.match(/iphone|ipad/i)?"ios":e.match(/mac|ppc/i)?"mac":e.match(/android/i)?"android":"other"}(),_sr:(i.innerWidth||o.documentElement.clientWidth)+"x"+(i.innerHeight||o.documentElement.clientHeight),_libn:"simplerapid",_libv:"1.1.0"},viewability:!1,viewability_time:1e3,tracked_mods_viewability:{},apv:!1,click_timeout:1e4,compr_on:p("String",YAHOO.i13n.WEBWORKER_FILE)||p("String",e.webworker_file)}}for(t in"undefined"!=typeof console&&"undefined"!=typeof console.log||(console={log:function(){}}),"undefined"==typeof console.error&&(console.error=console.log),"undefined"==typeof console.warn&&(console.warn=console.log),"undefined"!=typeof(r=v()).keys._do||isNaN(i.orientation)||(r.keys._do=Math.abs(i.orientation)/90%2),"undefined"!=typeof r.keys.dpr||isNaN(i.devicePixelRatio)||(r.keys.dpr=i.devicePixelRatio),c("keys",{metakwd:function _(){for(var e=document.getElementsByTagName("meta"),t=0;t<e.length;t++)if("keywords"===e[t].getAttribute("name")&&"string"==typeof e[t].getAttribute("content"))return e[t].getAttribute("content");return""}()}),e)if("keys"===t)for(n in e.keys)r.keys[n]=e.keys[n];else r[t]=e[t];return{setClickTimeout:function(e){return s("click_timeout",e),this},setModule:function(e){return m("tracked_mods",e),this},setSpaceid:function(e){return s("spaceid",e),this},startViewable:function(){return s("viewability",!0),this},stopViewable:function(){return s("viewability",!1),this},setViewableModule:function(e){return m("tracked_mods_viewability",e),this},setViewableTime:function(e){return s("viewability_time",e),this},setWebWorkerFilePath:function(e){return s("webworker_file",e),s("compr_on",!0),this},setRapidConf:function(e){var t;for(t in e)s(t,e[t]);return this},setActtype:function(e){return c("keys",{acttype:e}),this},setApptype:function(e){return c("keys",{apptype:e}),this},setAuthid:function(e){return c("keys",{auth_out:e}),this},setCategorypath:function(e){return c("keys",{cat_path:e}),this},setContentsid:function(e){return c("keys",{ctsid:e}),this},setConttype:function(e){return c("keys",{conttype:e}),this},setDevice:function(e){return c("keys",{device:e}),this},setMetakeyword:function(e){return c("keys",{metakwd:e}),this},setNonepv:function(e){return c("keys",{nonepv:e}),this},setOpttype:function(e){return c("keys",{opttype:e}),this},setPartner:function(e){return c("keys",{prtnr:e}),this},setPagetype:function(e){return c("keys",{pagetype:e}),this},setQuery:function(e){return c("keys",{query:e}),this},setService:function(e){return c("keys",{service:e}),this},setServiceid:function(e){return c("keys",{srvid:e}),this},setStatus:function(e){return c("keys",{status:e}),this},setPg:function(e){return c("keys",{pg:e}),this},setIns:function(e){return c("keys",{ins:e}),this},setUiid:function(e){return c("keys",{uiid:e}),this},setVtestid:function(e){return c("keys",{vtestid:e}),this},setVtgrpid:function(e){return c("keys",{vtgrpid:e}),this},setVpkjp:function(e){return c("keys",{v_pkjp:e}),this},trackedClass:function(e){var t,n=[];t=u(e=e||"tracked_mods");for(var i=0;i<t.length;i++)t[i].getAttribute("id")?n.push(t[i].getAttribute("id")):console.warn("simplerapid: Not found id to the specified element");return m("tracked_mods",n),this},trackedViewableClass:function(e){var t,n=[];t=u(e=e||"tracked_mods_viewability");for(var i=0;i<t.length;i++)t[i].getAttribute("id")?n.push(t[i].getAttribute("id")):console.warn("simplerapid: Not found id to the specified element");return m("tracked_mods_viewability",n),this},startGeolocation:function(e){return navigator.geolocation&&(e||(e={enableHighAccuracy:!0,timeout:1e4,maximumAge:0}),navigator.geolocation.getCurrentPosition(function(e){if(f()){var t={pp:{lat:e.coords.latitude,"long":e.coords.longitude,accuracy:e.coords.accuracy},event:{type:YAHOO.i13n.EventTypes.getEventByName("linkview")}};d.beaconLinkViews([],!1,t),a&&console.log("simplerapid: send geolocation")}else console.warn("simplerapid: rapid instance not found")},function(e){if(a)switch(e.code){case 1:console.warn("simplerapid: startGeolocation is permission denied");break;case 2:console.warn("simplerapid: startGeolocation is position unavailable");break;case 3:console.warn("simplerapid: startGeolocation is timeout")}},e)),this},setPageParam:function(e){return c("keys",e),this},addPageParam:function(e,t){var n={};return p("String",e)&&p("String",t)&&(n[e]=t,c("keys",n)),this},addRapidConf:function(e,t){return s(e,t),this},deleteRapidConf:function(e){return function t(e){""!==(e=l(e))&&delete r[e]}(e),this},deleteModule:function(e){return h("tracked_mods",e),this},deleteViewableModule:function(e){return h("tracked_mods_viewability",e),this},deletePageParam:function(e){return function n(e,t){e=l(e),t=l(t),""!==e&&""!==t&&delete r[e][t]}("keys",e),this},setRapidinstance:function(e){return p("Object",e)&&"function"==typeof e.init&&(d=e),this},setCallback:function(e){return"function"==typeof e&&s("init_callback",e),this},simpleBeaconClick:function(e,t,n){var i,o,r,a,l,s,c=[];if(f())if(p("Object",e)&&p("String",e.sec)){for(r in i=d.getModulesInfo())for(a in i[r].links)i[r].links[a].data.sec===e.sec&&c.push(i[r].links[a].data);if(0===c.length)s=!1;else for(var u=0;u<c.length;u++){for(l in s=!0,e){if("undefined"==typeof c[u][l]){s=!1;break}if(String(c[u][l])!==String(e[l])){s=!1;break}}if(s){for(l in o={},c[u])"slk"!==l&&"_p"!==l&&(o[l]=c[u][l]);d.beaconClick(e.sec,c[u].slk,c[u]._p,o,t,n);break}}!1===s&&console.warn("simplerapid: undefined link param in link view")}else console.warn("simplerapid: the simpleBeaconClick must specify the sec");else console.warn("simplerapid: undefined rapid instance")},refreshViewability:function(){f()&&"function"==typeof d.refreshViewability&&d.refreshViewability()},destroy:function(){YAHOO.i13n.JP.reSession(),r=v(),f()&&"function"==typeof d.destroy&&d.destroy()},initRapid:function(){if(a&&console.log(r),"undefined"!=typeof YAHOO.i13n.Rapid&&YAHOO.i13n.Rapid)return YAHOO.i13n.JP.rapid_conf=r,d=new YAHOO.i13n.Rapid(r)}}},reSession:function(){YAHOO.i13n.A_SID=function(){for(var e,t=0,n="",i=+new Date;t++<16;)n+=(e=Math.floor(62*Math.random()))<10?e:String.fromCharCode(e<36?e+55:e+61);return n+i.toString(36)}.apply()}}}}(),"undefined"!=typeof YAHOO.i13n.A_SID&&YAHOO.i13n.A_SID||YAHOO.i13n.JP.reSession();