(globalThis.webpackChunkHatena_Epic=globalThis.webpackChunkHatena_Epic||[]).push([["commons"],{93358:(e,t,n)=>{"use strict";n.d(t,{k:()=>c});var o=n(27484),r=n.n(o),i=n(57942),s=n(36414),a=n(36500);const c=(e,t)=>{if(t!==(0,i.Z)("global-domain"))return;const n=(0,s.pE)(),o=(0,s._4)(),c=r()(o);let d;if(o&&c.isValid()){d=r()().diff(c,"days")}a.Z.send("visitorAttribute",{visitorAttribute:n,daysSinceRegister:d})}},65939:(e,t,n)=>{"use strict";n.d(t,{pq:()=>c,qc:()=>a});var o=n(50025);const r="ghTracker";let i;const s=e=>{let{eventCategory:t,eventLabel:n}=e;i&&i()(`${r}.send`,{hitType:"event",eventCategory:t,eventAction:"click",eventLabel:n,nonInteraction:!0,transport:"beacon"})},a=e=>{s({eventCategory:e,eventLabel:""})},c=()=>{(0,o.H)(((e,t)=>{i=e,e()("create","UA-29716941-46","auto",r,{clientId:t,storage:"none"})})),document.querySelectorAll("[data-gh-track-category]").forEach((e=>e.addEventListener("click",(t=>{const n=e.getAttribute("data-gh-track-category")||"",o=e.getAttribute("href")||"";s({eventCategory:n,eventLabel:o})}))))}},39769:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(65311);var o=n(98860);const r={_setup:function(){this._reloadStarImplement||(this._reloadStarImplement=o.P2((()=>{document.dispatchEvent(new Event("hatena:star:requestreload"))}),1e3))},reloadStar:function(){this._setup(),this._reloadStarImplement()}}},59662:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});const o=e=>-1!==navigator.userAgent.indexOf(e),r=o("MSIE")||o("Trident/"),i=o("MSIE 6."),s=o("MSIE 7."),a=o("MSIE 8."),c=o("MSIE 9."),d=o("MSIE 10."),l=o("Trident/")&&o("rv:11."),u=o("Mozilla")&&!o("compatible")&&!o("WebKit"),h=!!window.opera,m=o("WebKit")&&o("Chrome/"),g=o("Chrome/"),p=o("Firefox/"),f=o("Nintendo DSi"),b=o("Nintendo Wii"),w=o("Android"),y=o("Android")&&o("Mobile"),v=o("Android")&&!o("Mobile"),E=o("iPod;")||o("iPhone;")||o("iPhone Simulator;"),Z=o("Windows Phone"),$=o("iPad"),C=o("Mobile"),S={isIE:r,isIE6:i,isIE7:s,isIE8:a,isIE9:c,isIE10:d,isIE11:l,isMozilla:u,isOpera:h,isSafari:m,isChrome:g,isFirefox:p,isDSi:f,isWii:b,isAndroid:w,isAndroidMobile:y,isAndroidTablet:v,isIPhone:E,isWindowsPhone:Z,isIPad:$,isMac:o("Mac OS"),isTouch:C&&!$,isSmartPhone:E||y||Z,isHatenaBlogNativeApp:o("HatenaBlog/"),isTablet:v||$,isObsolete:i||s||a||c||d}},24264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59662);const r={userAgent:function(){return o.Z.isTouch?"touch":"pc"}}},96371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(65311),r=n.n(o),i=n(70879),s=n(57942),a=n(26410),c=n(36500),d="hatena-diary-dropdown";const l={toggle:function(e,t,n,o){n=d+(n?`-${n}`:e.replace(/\//,"-")),"object"!=typeof(o=o||{})&&(0,i.qR)(`Wrong type of options given: ${o}`);var l,u=r()(document.getElementById(n));if(o.key&&u.length&&u.attr("data-dropdown-key")!==o.key&&(u.remove(),u=r()()),u.length)l="show"in o?!!o.show:!u.is(":visible"),u[l?"fadeIn":"fadeOut"]("fast"),u.trigger(`dropdown:${l?"show":"hide"}:start`);else if("show"in o&&!1===o.show);else{if(u=r()('
').hide().attr("id",n).appendTo(document.body),o.key&&u.attr("data-dropdown-key",o.key),o.parent){var h=document.getElementById(`${d}-${o.parent}`);r()(h).on("dropdown:hide:start",(()=>{u.fadeOut("fast")}))}o.className&&u.addClass(o.className);var m=r()('').appendTo(u),g=m[0];/^https?:/.test(e)||(e=(0,s.Z)("admin-domain")+e);var p=c.Z.createForFrame(g,e);if(p.addEventListener("close",(()=>{a.Z.hide(m)})),p.addEventListener("init",(e=>{e&&u.css(e),p.send("init",t)})),p.addEventListener("resize",(e=>{e&&u.css(e)})),p.addEventListener("reload",(e=>{location.reload(!0)})),o.callback&&o.callback(g,p),a.Z.show(u,{destroy:function(){u.remove(),p.destroy()},keepOthers:!!o.parent||!1}),t){if("left"in t||"right"in t||"top"in t){var f=u.offset();"left"in t?f.left=t.left:"right"in t&&(f.left=t.right-u.width()),"top"in t&&(f.top=t.top),u.offset(f)}"height"in t&&u.height(t.height)}}}}},41730:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(65311),r=n.n(o),i=n(26410),s=n(36500),a=n(57942),c="hatena-diary-feedback";const d={toggle:function(e){var t=document.getElementById(c);if(t)r()(t).fadeToggle("fast");else{var n=r()('').hide().attr("id",c).appendTo(document.body);t=n[0];var o=s.Z.createForFrame(t,`${e}?uri=${encodeURIComponent(location.href)}&page_id=${encodeURIComponent((0,a.Z)("page"))}`);o.addEventListener("close",(()=>{i.Z.hide(n)})),o.addEventListener("resize",(e=>{e&&n.css(e)})),i.Z.show(n,{destroy:function(){n.remove(),o.destroy()},fixScroll:!0})}}}},56769:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(86965),r=n(70879),i=n(55834),s=n(57942),a=n(65311),c=n.n(a),d=n(36500),l=n(24264),u=n(56412);const h=class{constructor(){const e=!!(0,i.fe)("gh-ng");this.globalheader=this.createGlobalHeader(),this.color=this.getColor(),this.bgColor=this.getBackgroundColor(),this.circleId=this.getCircleId(),this.pageCategory=this.getPageCategory(),this.params=this.getParams();const t=e?this.getURLNextGen():this.getURL();d.Z.listenToFrame(this.globalheader,t),d.Z.addEventListener("init",(e=>{c()((()=>{(0,r.sY)(["init",e]),u.Z.resolveInfo(e)}))}))}createGlobalHeader(){const e=document.querySelector("iframe#globalheader");if(e)return e;{const e=c()('');return e.appendTo(document.body),e[0]}}getColor(){return(0,o.w)(c()(this.globalheader).css("color"))||"000000"}getBackgroundColor(){let e=null,t=this.globalheader;for(;!e&&t&&t!==document.documentElement;){const n=c()(t).css("backgroundColor");e=(0,o.w)(n),t=t.parentNode}return e||(e="ffffff"),e}getDevice(){const e=(0,s.Z)("globalheader-type")||"auto";return"auto"===e?l.Z.userAgent():e}getCircleId(){return(0,s.Z)("circle-id")}getPageCategory(){return/\.hatena\.ne\.jp(:\d+)?$/.test(location.host)?"admin":(0,s.Z)("blog")?"blogs":this.circleId?"circle":"global"}showUpgradePro(){return"admin"===this.pageCategory&&(0,s.Z)("dont-recommend-pro")&&"false"===(0,s.Z)("dont-recommend-pro")&&(0,s.Z)("pro")&&"false"===(0,s.Z)("pro")}showGMOCampaignLink(){return"admin"===this.pageCategory&&(0,s.Z)("dont-recommend-pro")&&"false"===(0,s.Z)("dont-recommend-pro")}getBrand(){return(0,s.Z)("brand")}getParams(){const e={device:this.getDevice()};return this.circleId&&(e.circle_id=this.circleId),this.showGMOCampaignLink()&&(e.show_upgrade_pro="yes"),this.showGMOCampaignLink()&&(e.show_campaign="yes"),(0,s.Z)("brand")&&(e.brand=(0,s.Z)("brand")),e}getURL(){const e=(0,s.Z)("admin-domain"),t=encodeURIComponent(this.color),n=encodeURIComponent(this.bgColor),o=c().param(this.params),r=encodeURIComponent(location.href);return`${e}/-/globalheader/${t}/${n}/${this.pageCategory}?${o}#${r}`}getURLNextGen(){return`${(0,s.Z)("admin-origin")}/-/globalheader_ng?${c().param(this.params)}#${encodeURIComponent(location.href)}`}}},36843:(e,t,n)=>{"use strict";n.d(t,{Q:()=>g,v:()=>p});var o=n(55992),r=n(57942),i=n(50025),s=n(65311),a=n.n(s),c=n(36500),d=n(56412),l=n(96371),u=n(26410),h=n(10912),m=n(43302);const g=()=>{c.Z.addEventListener("resizeGlobalHeader",(e=>{"100vh"===e?document.body.classList.add("globalheader-expanded"):document.body.classList.remove("globalheader-expanded")}))},p={navigateToEditNewEntry:function(e){d.Z.infoLoaded.then((t=>{t.can_open_editor?h.Z.newEntry({openedFrom:e.openedFrom}):location.href=o.e1("/my/edit")}))},navigateToEditNewEntryWithQuote:function(){d.Z.infoLoaded.then((()=>{location.href=o.e1("/my/edit?sidebar=quote#auto_fillin")}))},navigateToEditNewEntryWithReQuote:function(){d.Z.infoLoaded.then((()=>{location.href=o.e1("/my/edit")}))},init:function(){if(window!==window.parent)return null;if(!c.Z.messenger)return null;g(),(0,i.R)(),c.Z.addEventListener("new-entry",(()=>{p.navigateToEditNewEntry({openedFrom:"globalheader-new-entry"})})),c.Z.addEventListener("new-entry-with-quote",(()=>{p.navigateToEditNewEntryWithQuote()})),c.Z.addEventListener("new-entry-with-requote",(()=>{p.navigateToEditNewEntryWithReQuote()})),c.Z.addEventListener("mymenu",(e=>{m.Z.toggle(e)})),c.Z.addEventListener("servicesmenu",(e=>{l.Z.toggle("/-/menu/services",e)})),c.Z.addEventListener("unread",(()=>{location.href=o.e1("/-/antenna")}));const e=a()('\n \n '.trim());let t;c.Z.addEventListener("notify",(n=>{const o=n.BASE;if(t){if(t.is(":visible"))return void u.Z.hide(t);t.remove()}t=e.clone(),t.css({left:n.left-250+32});t.find("iframe").attr("src",`https://www${o}/notify/notices.iframe?${(new Date).getTime()}`),t.appendTo(document.body).fadeIn("fast"),u.Z.show(t,{fixScroll:!0})})),c.Z.addEventListener("blogmenu",(e=>{const t={};(0,r.Z)("blog")&&(t.blog=location.href,"entry"===(0,r.Z)("page")&&a()('article.entry:not([class~="no-entry"])').length>0&&(t.blog_permalink=1));const n=`/-/menu/blogmenu?${a().param(t)}`;l.Z.toggle(n,e,"blogmenu",{callback:(e,t)=>{t.addEventListener("request-report-abuse-info",(()=>{t.send("response-report-abuse-info",window.location.href)})),t.addEventListener("edit-this-entry",(()=>{var e=a()("article.entry").first();h.Z.editEntryInPlace(e,{openedFrom:"blogmenu-edit-this-entry"})})),t.addEventListener("new-entry",(()=>{p.navigateToEditNewEntry({openedFrom:"blogmenu-new-entry"})})),t.addEventListener("subscribe",(e=>{a()(document).trigger("subscribe",e)}))}})}))}}},75225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(65311),r=n.n(o),i=n(56769);const s={init:function(){return function(){if("fixed"===r()("#globalheader-container").css("position")){var e=r()("#globalheader-container").height(),t=r()(document);t.on("click",'a[href^="#"]',(()=>{var n=t.scrollTop(),o=0,r=function(){t.scrollTop()!==n?window.scrollBy(0,-e):o++<10&&setTimeout(r,0)};setTimeout(r,0)}))}}(),new i.Z}}},91269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o,r,i,s=n(70879);class a{static load(){const e=document.querySelector("html").getAttribute("data-initial-state");if(e)try{a.__STATE__=JSON.parse(e)}catch(e){(0,s.qR)(e,"Cannot parse embedded data-initial-state")}}static get(e){return a.__STATE__[e]}static dumpAllForTest(){return a.__STATE__}}o=a,i={},(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(r="__STATE__"))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i;const c=a},37914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o,r,i=n(1606),s=n(57942);const a={setup:function(e){e||(e=window.location);const t=e.search.slice(1);r=(0,i.Z)(t),o=e.host},param:function(e){return this.params()[e]?this.params()[e][0]:null},params:function(){return r||this.setup(),r},domainType:function(){o||this.setup();const e=(0,s.Z)("router-type"),t=(0,s.Z)("admin-domain");if(e){if("global"===e)return this.Global;if("admin"===e)return this.Admin;if("blogs"===e)return this.Blogs}return t?t===`//${o}`?this.Admin:this.Blogs:/\.hatena\.ne\.jp(:\d+)?$/.test(o)?this.Admin:this.Blogs},Admin:"Admin",Blogs:"Blogs",Global:"Global"}},50477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o,r=n(65311),i=n.n(r),s=n(55992),a=s.vA("/js/external/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML");const c={load:function(e){var t=e.find('img[src*="chart.apis.google.com/chart?cht=tx&chl="]');t.length&&(o||(window.MathJax={AuthorInit:function(){MathJax.Ajax.fileRev=function(e){var t=MathJax.cdnFileVersions[e]||MathJax.cdnVersion||"",n=s.Cr();return t?`?v=${t}${n?`&${n}`:""}`:n?`?${n}`:""}}},o=i().ajax({url:a,dataType:"script",cache:!0})),o.done((()=>{MathJax.Hub.Config({tex2jax:{inlineMath:[],displayMath:[]}}),t.each((function(){var e=i()(this),t=e.attr("alt");if(t){var n=i()('