芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/blog.ycreate.jp/wp-content/themes/swell/build/js/main_with_pjax.min.js
(function(){var __webpack_modules__={69:function(e){e.exports=function(){function e(e,t){for(var n=0;n
-1)&&(h=y,s=s.slice(0,b))}s&&(r.push(s),s="",l=!1);var L=m||_,x=h||a;r.push({name:p||o++,prefix:h,delimiter:x,optional:"?"===g||"*"===g,repeat:"+"===g||"*"===g,pattern:L?S(L):"[^"+E(x===a?x:x+a)+"]+?"})}}return(s||i
1?e>0?"forward":"back":0===e?"popstate":e>0?"back":"forward"},t(e,[{key:"current",get:function(){return this.h[this.v]}},{key:"state",get:function(){return this.h[this.h.length-1]}},{key:"previous",get:function(){return this.v<1?null:this.h[this.v-1]}},{key:"size",get:function(){return this.h.length}}]),e}()),q=function(e,t){try{var n=function(){if(!t.next.html)return Promise.resolve(e).then((function(e){var n=t.next;if(e){var r=O.toElement(e);n.namespace=O.getNamespace(r),n.container=O.getContainer(r),n.html=e,k.update({ns:n.namespace});var o=O.toDocument(e);document.title=o.title}}))}();return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(e){return Promise.reject(e)}},T=f,C={__proto__:null,update:q,nextTick:function(){return new Promise((function(e){window.requestAnimationFrame(e)}))},pathToRegexp:T},M=function(){return window.location.origin},B=function(e){return void 0===e&&(e=window.location.href),j(e).port},j=function(e){var t,n=e.match(/:\d+/);if(null===n)/^http/.test(e)&&(t=80),/^https/.test(e)&&(t=443);else{var r=n[0].substring(1);t=parseInt(r,10)}var o,i=e.replace(M(),""),s={},a=i.indexOf("#");a>=0&&(o=i.slice(a+1),i=i.slice(0,a));var c=i.indexOf("?");return c>=0&&(s=D(i.slice(c+1)),i=i.slice(0,c)),{hash:o,path:i,port:t,query:s}},D=function(e){return e.split("&").reduce((function(e,t){var n=t.split("=");return e[n[0]]=n[1],e}),{})},I=function(e){return void 0===e&&(e=window.location.href),e.replace(/(\/#.*|\/|#.*)$/,"")},R={__proto__:null,getHref:function(){return window.location.href},getOrigin:M,getPort:B,getPath:function(e){return void 0===e&&(e=window.location.href),j(e).path},parse:j,parseQuery:D,clean:I};function H(e,t,n){return void 0===t&&(t=2e3),new Promise((function(r,o){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200===i.status)r(i.responseText);else if(i.status){var t={status:i.status,statusText:i.statusText};n(e,t),o(t)}},i.ontimeout=function(){var r=new Error("Timeout error ["+t+"]");n(e,r),o(r)},i.onerror=function(){var t=new Error("Fetch error");n(e,t),o(t)},i.open("GET",e),i.timeout=t,i.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),i.setRequestHeader("x-barba","yes"),i.send()}))}function W(e,t){return void 0===t&&(t={}),function(){for(var n=arguments.length,r=new Array(n),o=0;o
1?n-1:0),o=1;o
1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey},V=function(e){var t=e.el;return t.hasAttribute("target")&&"_blank"===t.target},z=function(e){var t=e.el;return void 0!==t.protocol&&window.location.protocol!==t.protocol||void 0!==t.hostname&&window.location.hostname!==t.hostname},X=function(e){var t=e.el;return void 0!==t.port&&B()!==B(t.href)},Q=function(e){var t=e.el;return t.getAttribute&&"string"==typeof t.getAttribute("download")},G=function(e){return e.el.hasAttribute(P.prefix+"-"+P.prevent)},J=function(e){return Boolean(e.el.closest("["+P.prefix+"-"+P.prevent+'="all"]'))},Y=function(e){var t=e.href;return I(t)===I()&&B(t)===B()},ee=function(e){function t(t){var n;return(n=e.call(this,t)||this).suite=[],n.tests=new Map,n.init(),n}r(t,e);var n=t.prototype;return n.init=function(){this.add("pushState",Z),this.add("exists",$),this.add("newTab",F),this.add("blank",V),this.add("corsDomain",z),this.add("corsPort",X),this.add("download",Q),this.add("preventSelf",G),this.add("preventAll",J),this.add("sameUrl",Y,!1)},n.add=function(e,t,n){void 0===n&&(n=!0),this.tests.set(e,t),n&&this.suite.push(e)},n.run=function(e,t,n,r){return this.tests.get(e)({el:t,event:n,href:r})},n.checkLink=function(e,t,n){var r=this;return this.suite.some((function(o){return r.run(o,e,t,n)}))},t}(N),te=function(e){function t(n,r){var o;void 0===r&&(r="Barba error");for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a
0&&l.push(s),(c=this.logger).info.apply(c,["Transition found ["+a.join(",")+"]"].concat(l))}else this.logger.info("No transition found ["+a.join(",")+"]");return i},t.update=function(){var e=this;this.all=this.all.map((function(t){return e.T(t)})).sort((function(e,t){return e.priority-t.priority})).reverse().map((function(e){return delete e.priority,e})),this.page=this.all.filter((function(e){return void 0!==e.leave||void 0!==e.enter})),this.once=this.all.filter((function(e){return void 0!==e.once}))},t.R=function(e,t,n,r,o){var i=!0,s=!1,a=e,c=t.name,l=c,u=c,d=c,f=o?a[o]:a,h="to"===o?n.next:n.current;if(o?f&&f[c]:f[c]){switch(t.type){case"strings":default:var p=Array.isArray(f[l])?f[l]:[f[l]];h[l]&&-1!==p.indexOf(h[l])&&(s=!0),-1===p.indexOf(h[l])&&(i=!1);break;case"object":var m=Array.isArray(f[u])?f[u]:[f[u]];h[u]?(h[u].name&&-1!==m.indexOf(h[u].name)&&(s=!0),-1===m.indexOf(h[u].name)&&(i=!1)):i=!1;break;case"function":f[d](n)?s=!0:i=!1}s&&(o?(r[o]=r[o]||{},r[o][c]=a[o][c]):r[c]=a[c])}return i},t.O=function(e,t,n){var r=0;return(e[t]||e.from&&e.from[t]||e.to&&e.to[t])&&(r+=Math.pow(10,n),e.from&&e.from[t]&&(r+=1),e.to&&e.to[t]&&(r+=2)),r},t.T=function(e){var t=this;e.priority=0;var n=0;return this.A.forEach((function(r,o){n+=t.O(e,r.name,o+1)})),e.priority=n,e},e}(),re=function(){function e(e){void 0===e&&(e=[]),this.logger=new d("@barba/core"),this.S=!1,this.store=new ne(e)}var n=e.prototype;return n.get=function(e,t){return this.store.resolve(e,t)},n.doOnce=function(e){var t=e.data,n=e.transition;try{var r=function(){o.S=!1},o=this,i=n||{};o.S=!0;var s=c((function(){return Promise.resolve(o.j("beforeOnce",t,i)).then((function(){return Promise.resolve(o.once(t,i)).then((function(){return Promise.resolve(o.j("afterOnce",t,i)).then((function(){}))}))}))}),(function(e){o.S=!1,o.logger.debug("Transition error [before/after/once]"),o.logger.error(e)}));return Promise.resolve(s&&s.then?s.then(r):r())}catch(e){return Promise.reject(e)}},n.doPage=function(e){var t=e.data,n=e.transition,r=e.page,o=e.wrapper;try{var i=function(e){if(s)return e;a.S=!1},s=!1,a=this,l=n||{},u=!0===l.sync||!1;a.S=!0;var d=c((function(){function e(){return Promise.resolve(a.j("before",t,l)).then((function(){function e(e){return Promise.resolve(a.remove(t)).then((function(){return Promise.resolve(a.j("after",t,l)).then((function(){}))}))}var n=function(){if(u)return c((function(){return Promise.resolve(a.add(t,o)).then((function(){return Promise.resolve(a.j("beforeLeave",t,l)).then((function(){return Promise.resolve(a.j("beforeEnter",t,l)).then((function(){return Promise.resolve(Promise.all([a.leave(t,l),a.enter(t,l)])).then((function(){return Promise.resolve(a.j("afterLeave",t,l)).then((function(){return Promise.resolve(a.j("afterEnter",t,l)).then((function(){}))}))}))}))}))}))}),(function(e){if(a.M(e))throw new te(e,"Transition error [sync]")}));var e=function(e){return c((function(){var e=function(){if(!1!==n)return Promise.resolve(a.add(t,o)).then((function(){return Promise.resolve(a.j("beforeEnter",t,l)).then((function(){return Promise.resolve(a.enter(t,l,n)).then((function(){return Promise.resolve(a.j("afterEnter",t,l)).then((function(){}))}))}))}))}();if(e&&e.then)return e.then((function(){}))}),(function(e){if(a.M(e))throw new te(e,"Transition error [before/after/enter]")}))},n=!1,i=c((function(){return Promise.resolve(a.j("beforeLeave",t,l)).then((function(){return Promise.resolve(Promise.all([a.leave(t,l),q(r,t)]).then((function(e){return e[0]}))).then((function(e){return n=e,Promise.resolve(a.j("afterLeave",t,l)).then((function(){}))}))}))}),(function(e){if(a.M(e))throw new te(e,"Transition error [before/after/leave]")}));return i&&i.then?i.then(e):e()}();return n&&n.then?n.then(e):e()}))}var n=function(){if(u)return Promise.resolve(q(r,t)).then((function(){}))}();return n&&n.then?n.then(e):e()}),(function(e){if(a.S=!1,e.name&&"BarbaError"===e.name)throw a.logger.debug(e.label),a.logger.error(e.error),e;throw a.logger.debug("Transition error [page]"),a.logger.error(e),e}));return Promise.resolve(d&&d.then?d.then(i):i(d))}catch(e){return Promise.reject(e)}},n.once=function(e,t){try{return Promise.resolve(K.do("once",e,t)).then((function(){return t.once?W(t.once,t)(e):Promise.resolve()}))}catch(e){return Promise.reject(e)}},n.leave=function(e,t){try{return Promise.resolve(K.do("leave",e,t)).then((function(){return t.leave?W(t.leave,t)(e):Promise.resolve()}))}catch(e){return Promise.reject(e)}},n.enter=function(e,t,n){try{return Promise.resolve(K.do("enter",e,t)).then((function(){return t.enter?W(t.enter,t)(e,n):Promise.resolve()}))}catch(e){return Promise.reject(e)}},n.add=function(e,t){try{return O.addContainer(e.next.container,t),K.do("nextAdded",e),Promise.resolve()}catch(e){return Promise.reject(e)}},n.remove=function(e){try{return O.removeContainer(e.current.container),K.do("currentRemoved",e),Promise.resolve()}catch(e){return Promise.reject(e)}},n.M=function(e){return e.message?!/Timeout error|Fetch error/.test(e.message):!e.status},n.j=function(e,t,n){try{return Promise.resolve(K.do(e,t,n)).then((function(){return n[e]?W(n[e],n)(t):Promise.resolve()}))}catch(e){return Promise.reject(e)}},t(e,[{key:"isRunning",get:function(){return this.S},set:function(e){this.S=e}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some((function(e){return"self"===e.name}))}},{key:"shouldWait",get:function(){return this.store.all.some((function(e){return e.to&&!e.to.route||e.sync}))}}]),e}(),oe=function(){function e(e){var t=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,0!==e.length&&(e.forEach((function(e){t.byNamespace.set(e.namespace,e)})),this.names.forEach((function(e){K[e](t.L(e))})))}return e.prototype.L=function(e){var t=this;return function(n){var r=e.match(/enter/i)?n.next:n.current,o=t.byNamespace.get(r.namespace);return o&&o[e]?W(o[e],o)(n):Promise.resolve()}},e}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var ie={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}};return new(function(){function e(){this.version="2.9.7",this.schemaPage=ie,this.Logger=d,this.logger=new d("@barba/core"),this.plugins=[],this.hooks=K,this.dom=O,this.helpers=C,this.history=k,this.request=H,this.url=R}var r=e.prototype;return r.use=function(e,t){var n=this.plugins;n.indexOf(e)>-1?this.logger.warn("Plugin ["+e.name+"] already installed."):"function"==typeof e.install?(e.install(this,t),n.push(e)):this.logger.warn("Plugin ["+e.name+'] has no "install" method.')},r.init=function(e){var t=void 0===e?{}:e,r=t.transitions,o=void 0===r?[]:r,i=t.views,s=void 0===i?[]:i,a=t.schema,c=void 0===a?P:a,l=t.requestError,u=t.timeout,f=void 0===u?2e3:u,h=t.cacheIgnore,p=void 0!==h&&h,m=t.prefetchIgnore,_=void 0!==m&&m,v=t.preventRunning,w=void 0!==v&&v,g=t.prevent,b=void 0===g?null:g,y=t.debug,E=t.logLevel;if(d.setLevel(!0===(void 0!==y&&y)?"debug":void 0===E?"off":E),this.logger.info(this.version),Object.keys(c).forEach((function(e){P[e]&&(P[e]=c[e])})),this.$=l,this.timeout=f,this.cacheIgnore=p,this.prefetchIgnore=_,this.preventRunning=w,this._=this.dom.getWrapper(),!this._)throw new Error("[@barba/core] No Barba wrapper found");this._.setAttribute("aria-live","polite"),this.q();var S=this.data.current;if(!S.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new U(p),this.prevent=new ee(_),this.transitions=new re(o),this.views=new oe(s),null!==b){if("function"!=typeof b)throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",b)}this.history.init(S.url.href,S.namespace),this.B=this.B.bind(this),this.U=this.U.bind(this),this.D=this.D.bind(this),this.F(),this.plugins.forEach((function(e){return e.init()}));var L=this.data;L.trigger="barba",L.next=L.current,L.current=n({},this.schemaPage),this.hooks.do("ready",L),this.once(L),this.q()},r.destroy=function(){this.q(),this.H(),this.history.clear(),this.hooks.clear(),this.plugins=[]},r.force=function(e){window.location.assign(e)},r.go=function(e,t,n){var r;if(void 0===t&&(t="barba"),this.transitions.isRunning)this.force(e);else if(!(r="popstate"===t?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(e):this.prevent.run("sameUrl",null,null,e))||this.transitions.hasSelf)return t=this.history.change(e,t,n),n&&(n.stopPropagation(),n.preventDefault()),this.page(e,t,r)},r.once=function(e){try{var t=this;return Promise.resolve(t.hooks.do("beforeEnter",e)).then((function(){function n(){return Promise.resolve(t.hooks.do("afterEnter",e)).then((function(){}))}var r=function(){if(t.transitions.hasOnce){var n=t.transitions.get(e,{once:!0});return Promise.resolve(t.transitions.doOnce({transition:n,data:e})).then((function(){}))}}();return r&&r.then?r.then(n):n()}))}catch(e){return Promise.reject(e)}},r.page=function(e,t,r){try{var o=function(){var e=i.data;return Promise.resolve(i.hooks.do("page",e)).then((function(){var t=c((function(){var t=i.transitions.get(e,{once:!1,self:r});return Promise.resolve(i.transitions.doPage({data:e,page:s,transition:t,wrapper:i._})).then((function(){i.q()}))}),(function(){0===d.getLevel()&&i.force(e.current.url.href)}));if(t&&t.then)return t.then((function(){}))}))},i=this;i.data.next.url=n({href:e},i.url.parse(e)),i.data.trigger=t;var s=i.cache.has(e)?i.cache.update(e,{action:"click"}).request:i.cache.set(e,i.request(e,i.timeout,i.onRequestError.bind(i,t)),"click").request,a=function(){if(i.transitions.shouldWait)return Promise.resolve(q(s,i.data)).then((function(){}))}();return Promise.resolve(a&&a.then?a.then(o):o())}catch(e){return Promise.reject(e)}},r.onRequestError=function(e){this.transitions.isRunning=!1;for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r
{var o,i;const s=null===(o=window)||void 0===o||null===(i=o.swellVars)||void 0===i?void 0:i.restUrl;void 0!==s&&fetch(s+e,t).then((e=>{if(e.ok)return e.json();throw new TypeError(`Failed callRestApi: ${e.status}`)})).then((e=>{n&&n(e)})).catch((n=>{console.error(n),console.error("route:"+e,t),r&&r()}))},o=async(e,t,n=undefined,o=undefined)=>{const i=new URLSearchParams;Object.keys(t).forEach((e=>{i.append(e,t[e])})),r(e,{method:"POST",body:i},n,o)},i=async(e,t,n=undefined,o=undefined)=>{const i=new URLSearchParams;Object.keys(t).forEach((e=>{i.append(e,t[e])}));const s=i.toString();r(`${e}?${s}`,{method:"GET"},n,o)}},952:function(e,t,n){"use strict";n(595);var r=n(754),o=n(41),i=n(507);var s=n(14),a=n(581),c=n(703),l=n(548);function u(){null!==r.Z.fixBottomMenu&&(e=>{const t=document.getElementById("footer");if(null!==t)if(i.Ro)t.style.paddingBottom="0";else{const n=e.offsetHeight;t.style.paddingBottom=n+"px"}})(r.Z.fixBottomMenu),(0,l.D)()}var d=n(614),f=n(354),h=n(853),p=n(290);-1!==i.ua.indexOf("fb")&&300>window.innerHeight&&location.reload(),(0,i.ls)();const m=location.hash;window.onpageshow=function(e){e.persisted},document.addEventListener("DOMContentLoaded",(function(){(0,o.Z)(r.Z),(0,i.QW)(),(0,i.M_)(),window.objectFitImages&&window.objectFitImages(),u(),(0,c.Z)(),(0,s.Z)(),(0,d.Z)(document),function(){if(!window.IntersectionObserver||!("isIntersecting"in IntersectionObserverEntry.prototype))return;const e=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?document.documentElement.setAttribute("data-scrolled","false"):document.documentElement.setAttribute("data-scrolled","true")}))}),{root:null,rootMargin:"0px",threshold:0}),t=document.querySelector(".l-scrollObserver");e.observe(t)}(),(0,l.B)()})),window.addEventListener("load",(function(){if(document.documentElement.setAttribute("data-loaded","true"),(0,i.QW)(),null!==r.Z.fixSidebar&&(0,a.Z)(r.Z.fixSidebar),(0,f.B)(),m){const e=m.replace("#",""),t=document.getElementById(e);null!==t&&(0,f.l)(t,i.Z8)}(0,h.J)(),(0,p.F)()})),window.addEventListener("orientationchange",(function(){setTimeout((()=>{(0,i.ls)(),(0,i.QW)(),u()}),10)})),window.addEventListener("resize",(function(){setTimeout((()=>{(0,i.ls)(),(0,i.QW)(),(0,i.M_)(),u()}),5)}))},614:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(507),o=n(354);const i={pageTop(){(0,o.l)(0,0)},toggleMenu(){"opened"===document.documentElement.getAttribute("data-spmenu")?document.documentElement.setAttribute("data-spmenu","closed"):document.documentElement.setAttribute("data-spmenu","opened")},toggleSearch(){const e=document.getElementById("search_modal");if(null===e)return!1;e.classList.contains("is-opened")?e.classList.remove("is-opened"):(e.classList.add("is-opened"),setTimeout((()=>{e.querySelector('[name="s"]').focus()}),250))},toggleIndex(){const e=document.getElementById("index_modal");null!==e&&e.classList.toggle("is-opened")},toggleAccordion(){},toggleSubmenu(e){const t=e.currentTarget,n=t.parentNode.nextElementSibling;t.classList.toggle("is-opened"),n.classList.toggle("is-opened"),e.stopPropagation()},tabControl(e){const t=e.currentTarget,n="true"===t.getAttribute("aria-selected");if(0===e.clientX||t.blur(),n)return;const r=t.getAttribute("aria-controls"),o=document.getElementById(r);if(null===o)return;const i=t.closest('[role="tablist"]').querySelector('.c-tabList__item [aria-selected="true"]'),s=i.getAttribute("aria-controls"),a=document.getElementById(s);t.setAttribute("aria-selected","true"),i.setAttribute("aria-selected","false"),o.setAttribute("aria-hidden","false"),a.setAttribute("aria-hidden","true")},scrollToContent(){const e=document.querySelector("#main_visual + *");e&&(0,o.l)(e,r.Z8-8)},clickLink(e){const t=e.currentTarget.querySelector("a");"mousedown"===e.type?1===e.button&&window.open(t.getAttribute("href")):(t.onclick=e=>(e.stopPropagation(),!0),t.click())}};function s(e){e.querySelectorAll("[data-onclick]").forEach((e=>{const t=e.getAttribute("data-onclick"),n=i[t];e.addEventListener("click",(function(e){e.preventDefault(),n(e)}))})),e.querySelectorAll('[data-onclick="clickLink"]').forEach((e=>{e.addEventListener("mousedown",(e=>i.clickLink(e)))}))}},576:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ae:function(){return sendGA},Lp:function(){return resetSnsScript},Tv:function(){return resetWidgetScripts},cW:function(){return removeAdScript},vi:function(){return resetCustomScript},yS:function(){return resetAdsense},zJ:function(){return resetSwellScript}});var _swell_js_modules_data_domData__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(754),_swell_js_modules_data_stateData__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(507),_swell_js_modules_setDomData__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(41),_swell_js_modules_setToc__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(14),_swell_js_modules_setFixWidget__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(581),_swell_js_modules_setGnavClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(703),_swell_js_modules_addClickEvents__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(614),_swell_js_modules_smoothScroll__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(354),_swell_js_modules_pvCount__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(853),_swell_js_modules_lazyLoadContents__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(290),_swell_js_modules_setPostContent__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(548);function resetCustomScript({newBody:newBody}){if(newBody){const newSwellScript=newBody.querySelector("#swell_custom_js"),newSwellScriptText=newSwellScript?newSwellScript.textContent:"";eval(newSwellScriptText),window.SWELLHOOK.barbaAfterOnce&&window.SWELLHOOK.barbaAfterOnce(),window.SWELLHOOK.barbaAfterOnce=null}}function sendGA(){window.gtag?gtag("event","page_view",{page_location:window.location.href,page_path:window.location.pathname}):window.ga&&(ga("set","page",window.location.pathname),ga("send","pageview"))}function removeAdScript(){const e=document.querySelectorAll(".adsbygoogle + script");0!==e.length&&e.forEach((function(e){e.parentNode.removeChild(e)}))}function resetSnsScript(){const content=document.querySelector("#content");if(content){if(window.twttr)window.twttr.widgets.load();else{const e=content.querySelectorAll('script[src*="platform.twitter.com"]');if(0
{eval(script.textContent)}))}function resetSwellScript({newBody:e,next:t}){(0,_swell_js_modules_data_stateData__WEBPACK_IMPORTED_MODULE_1__.ls)(),window.objectFitImages&&objectFitImages(),(0,_swell_js_modules_setDomData__WEBPACK_IMPORTED_MODULE_9__.Z)(_swell_js_modules_data_domData__WEBPACK_IMPORTED_MODULE_0__.Z),(0,_swell_js_modules_data_stateData__WEBPACK_IMPORTED_MODULE_1__.QW)(),(0,_swell_js_modules_data_stateData__WEBPACK_IMPORTED_MODULE_1__.M_)(),(0,_swell_js_modules_setGnavClass__WEBPACK_IMPORTED_MODULE_3__.Z)();const n=document.querySelectorAll(".p-toc__list");0
{e.parentNode.removeChild(e)})),(0,_swell_js_modules_setToc__WEBPACK_IMPORTED_MODULE_2__.Z)(),(0,_swell_js_modules_addClickEvents__WEBPACK_IMPORTED_MODULE_4__.Z)(document.querySelector('[data-barba="container"]')),(0,_swell_js_modules_setPostContent__WEBPACK_IMPORTED_MODULE_8__.D)(),(0,_swell_js_modules_setPostContent__WEBPACK_IMPORTED_MODULE_8__.B)(),null!==_swell_js_modules_data_domData__WEBPACK_IMPORTED_MODULE_0__.Z.fixSidebar&&(0,_swell_js_modules_setFixWidget__WEBPACK_IMPORTED_MODULE_10__.Z)(_swell_js_modules_data_domData__WEBPACK_IMPORTED_MODULE_0__.Z.fixSidebar),(0,_swell_js_modules_smoothScroll__WEBPACK_IMPORTED_MODULE_5__.B)();const r=t.url.hash;if(r){const e=document.getElementById(r);setTimeout((()=>{null!==e&&(0,_swell_js_modules_smoothScroll__WEBPACK_IMPORTED_MODULE_5__.l)(e,_swell_js_modules_data_stateData__WEBPACK_IMPORTED_MODULE_1__.Z8),document.documentElement.setAttribute("data-scrolled","true")}),50)}window.Prism&&Prism.highlightAll(),(0,_swell_js_modules_pvCount__WEBPACK_IMPORTED_MODULE_6__.J)(),(0,_swell_js_modules_lazyLoadContents__WEBPACK_IMPORTED_MODULE_7__.F)()}},754:function(e,t){"use strict";t.Z={bodyWrap:null,header:null,gnav:null,fixHeader:null,content:null,mainContent:null,sidebar:null,spMenu:null,mainVisual:null,postSlider:null,fixBottomMenu:null,fixSidebar:null,wpadminbar:null}},507:function(e,t,n){"use strict";n.d(t,{M_:function(){return p},QW:function(){return m},Ro:function(){return s},Z8:function(){return u},ls:function(){return h},tq:function(){return c},ua:function(){return f},wR:function(){return l}});var r=n(754);let o=0,i=0,s=!1,a=!1,c=!1,l=!1,u=0,d=window.swellVars.isFixHeadSP;const f=navigator.userAgent.toLowerCase(),h=()=>{s=959
window.innerWidth,a=!s,l=!c},p=()=>{const e=window.innerWidth-document.body.clientWidth;document.documentElement.style.setProperty("--swl-scrollbar_width",e+"px")},m=()=>{var e,t,n;null!==(e=r.Z.header)&&(o=e.offsetHeight,document.documentElement.style.setProperty("--swl-headerH",o+"px")),null!==(t=r.Z.fixHeader)&&(i=t.offsetHeight,document.documentElement.style.setProperty("--swl-fix_headerH",i+"px")),n=r.Z.wpadminbar,u=0,s?u+=i:!s&&d&&(u+=o),null!==n&&(u+=n.offsetHeight),document.documentElement.style.setProperty("--swl-offset_y",u+"px"),u+=8}},290:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var r=n(754),o=n(614),i=n(354),s=n(283);let a=0,c=0;const l=(e,t)=>{const n=document.getElementById(e);if(!n)return;const l={placement:e};if("post_id"===t){if(null===r.Z.content)return void console.error('Not found "#content".');const e=r.Z.content.getAttribute("data-postid");if(!e)return void console.error('Not found "data-postid".');l.post_id=e}(0,s.M)("swell-lazyload-contents",l,(e=>{const t=document.createDocumentFragment(),r=document.createElement("div");for(r.innerHTML=e;r.firstChild;)t.appendChild(r.firstChild);(e=>{const t=e.querySelectorAll('select[name="cat"]');0
{!function(){const t=e.parentNode;if(null===t)return;const n=t.nextElementSibling;null!==n&&t.parentNode.removeChild(n)}()}));const n=e.querySelectorAll('select[name="archive-dropdown"]');0
{!function(){const t=e.nextElementSibling;null!==t&&e.parentNode.removeChild(t)}()}))})(t),[].map.call(t.querySelectorAll("script"),(function(e){const n=e.parentElement||t,r=document.createElement("script");e.src?r.src=e.src:r.textContent=e.textContent,n.replaceChild(r,e)})),n.innerHTML="",n.appendChild(t),(e=>{const t=e.querySelectorAll('select[name="cat"]');0
{const t="ajaxed-cat-dropdown-"+a++;e.setAttribute("id",t),e.addEventListener("change",(t=>{0
{const t="ajaxed-archive-dropdown-"+c++;e.setAttribute("id",t),e.addEventListener("change",(t=>{""!==e.options[e.selectedIndex].value&&(document.location.href=e.options[e.selectedIndex].value)}))}))})(n),(0,o.Z)(n),(0,i.B)(n)}))},u=()=>{var e,t;null!==(e=window.swellVars)&&void 0!==e&&e.useAjaxAfterPost&&l("after_article","post_id"),null!==(t=window.swellVars)&&void 0!==t&&t.useAjaxFooter&&(l("before_footer_widget",""),l("footer",""))}},595:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){let t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},853:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(754),o=n(283);const i=()=>{var e;if(null===r.Z.content)return;if(null===(e=window.swellVars)||void 0===e||!e.usePvCount)return;const t=r.Z.content.getAttribute("data-postid");if(!t)return;if(!r.Z.content.getAttribute("data-pvct"))return;const n={postid:t};(0,o.X)("swell-ct-pv",n)}},41:function(e,t,n){"use strict";function r(e){e.header=document.getElementById("header"),e.bodyWrap=document.getElementById("body_wrap"),e.fixHeader=document.getElementById("fix_header"),e.gnav=document.getElementById("gnav"),e.spMenu=document.getElementById("sp_menu"),e.wpadminbar=document.getElementById("wpadminbar"),e.content=document.getElementById("content")||document.getElementById("lp-content"),e.mainContent=document.getElementById("main_content"),e.sidebar=document.getElementById("sidebar"),e.fixBottomMenu=document.getElementById("fix_bottom_menu"),e.fixSidebar=document.getElementById("fix_sidebar")}n.d(t,{Z:function(){return r}})},581:function(e,t,n){"use strict";function r(e){1
{if(null===e)return;const t=window.location.pathname,n=window.location.origin+t,r=e.querySelectorAll(".c-gnav > li");for(let e=0;e
{const t=e.querySelectorAll("tbody tr > :first-child, tbody tr:empty");let n=0;t.forEach((e=>{if("tr"===e.tagName)n>0&&n--;else if(n>0)n--,e.classList.add("-no1");else{const t=e.rowSpan||1;t>1&&(n=t-1)}}))}))}},14:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(754);function o(e,t){let n=e.innerHTML;const r=t.join("|")||"";n=n.replace(/
.*<\/noscript>/gim,"");const o=new RegExp("(?!<\\/?("+r+")(>|\\s[^>]*>))<(\"[^\"]*\"|\\'[^\\']*\\'|[^\\'\">])*>","gim");n=n.replace(o,"");const i=e.querySelector(".mininote");if(null!==i){const e=i.textContent;n=n.replace(e,`
${e}
`)}return n}function i(){var e,t,n,i,s,a;if(void 0===window.swellVars)return;const c=r.Z.bodyWrap;if(null===c)return;const l=r.Z.mainContent;if(null===l)return;if(null!==l.querySelector(".p-toc.-called-from-sc")&&c.classList.remove("-index-off"),c.classList.contains("-index-off"))return;const u=document.querySelectorAll(".p-toc");if(1>u.length)return;const d=l.querySelector(".l-mainContent__inner > .post_content")||l.querySelector(".p-termContent > .post_content")||l.querySelector(".p-authorContent > .post_content"),f=(null===(e=window.swellVars)||void 0===e?void 0:e.tocListTag)||"ol",h=(null===(t=window.swellVars)||void 0===t?void 0:t.tocTarget)||"h3";let p=parseInt(null===(n=window.swellVars)||void 0===n?void 0:n.tocMinnum)||2,m=[];null!==d&&("h2"===h?m=d.querySelectorAll("h2"):"h3"===h?m=d.querySelectorAll("h2, h3"):"h4"===h?m=d.querySelectorAll("h2, h3, h4"):"h5"===h&&(m=d.querySelectorAll("h2, h3, h4, h5")));const _=function(e,t=".current"){if(!e)return null;const n=e.querySelector(t);if(!n)return null;const r={},o=n.nextElementSibling;if(o){const e=o.getAttribute("href");r.next=e}const i=n.previousElementSibling;if(i){const e=i.getAttribute("href");r.prev=e}return r}(l.querySelector(".c-pagination.-post"));if(null!==_&&(p-=1),p>m.length)return void function(){const e=r.Z.bodyWrap;if(null===e)return;e.classList.add("-index-off");const t=r.Z.mainContent;if(null===t)return;const n=t.querySelector(".swell-block-fullWide .p-toc");n&&n.parentNode.removeChild(n);const o=t.querySelector(".swell-block-fullWide .w-beforeToc");o&&o.parentNode.removeChild(o)}();const v=(null===(i=window.swellVars)||void 0===i?void 0:i.tocOmitType)||"",w=Number((null===(s=window.swellVars)||void 0===s?void 0:s.tocOmitNum)||0);let g=v&&w+1
${(null===(m=window.swellVars)||void 0===m?void 0:m.tocPrevText)||"前のページへ"}
`);let _=1,v=1;for(let c=0;c
`;else if(h>b)for(;h>b;)p+=`${r}>`,h--;let E="";""===u?E="":"nest"===u&&2
${g}
`,_++,v++}if(!p)return{listHtml:null,isOmitted:!1};for("nest"===u&&d>=_&&(f=!1);h>1;)p+=`${r}>`,h--;var w;l&&(p+=`
${(null===(w=window.swellVars)||void 0===w?void 0:w.tocNextText)||"次のページへ"}
`);return{listHtml:p,isOmitted:f}}({hTags:m,ignoreClasses:["p-postList__title","swl-toc-off"],idPrefix:"index_id",listTag:f,childClass:"p-toc__childList",linkClass:"p-toc__link",prevLink:(null==_?void 0:_.prev)||"",nextLink:(null==_?void 0:_.next)||"",omitType:g?v:"",omitNum:w});if(!b)return void c.classList.add("-index-off");g=y;const E=document.createElement(f);E.classList.add("p-toc__list","is-style-index"),E.setAttribute("data-level","2"),E.innerHTML=b;const S=(null===(a=window.swellVars)||void 0===a?void 0:a.tocAdPosition)||"before",L=l.querySelector(".p-toc");g&&L&&(L.setAttribute("data-omit",v),L.classList.add("is-omitted"));for(let e=0;e
{L.classList.contains("is-expanded")?(L.classList.add("is-omitted"),L.classList.remove("is-expanded"),r.innerHTML=t):(L.classList.remove("is-omitted"),L.classList.add("is-expanded"),r.innerHTML=e)}))}}}},354:function(e,t,n){"use strict";n.d(t,{B:function(){return i},l:function(){return o}});var r=n(507);function o(e,t){var n;const r=window.scrollY;let o=0;if(Number.isInteger(e))o=e;else{const n=e.getBoundingClientRect();o=n.top+r-t,o<0&&(o=0)}if(null===(n=window.swellVars)||void 0===n?void 0:n.offSmoothScroll)return void window.scrollTo(0,o);let i=null,s=500;const a=Math.abs(o-r);1e4
{const t=e-i,n=Math.min(1,t/s),a=r+(o-r)*(l=n,1-Math.pow(1-l,3));var l;window.scrollTo(0,a),n<1&&requestAnimationFrame(c)};i=performance.now(),c(i)}function i(e){(e||document).querySelectorAll('a[href*="#"]').forEach((e=>{if("_blank"===e.getAttribute("target"))return;const t=e.getAttribute("href"),n=t.split("#");if(n.length>2)return;const i=n[0],s=n[1],a=""===i,c=window.location.origin+window.location.pathname;(a||i===c)&&e.addEventListener("click",(function(e){const n=document.getElementById(s);if(!n)return!0;e.preventDefault(),window.history.pushState({},"",t),o(n,r.Z8),document.documentElement.setAttribute("data-spmenu","closed");const i=document.getElementById("index_modal");null!==i&&i.classList.remove("is-opened")}))}))}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var __webpack_exports__={};!function(){"use strict";__webpack_require__(952);var e=__webpack_require__(69),t=__webpack_require__.n(e),n=__webpack_require__(40),r=__webpack_require__.n(n),o=__webpack_require__(576);const i="undefined"!=typeof Promise,s=window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype;window.SWELLHOOK={},window.SWELLHOOK.barbaBeforeEnter=new Set,window.SWELLHOOK.barbaAfter=new Set,document.querySelector('[data-barba="wrapper"]')&&i&&s&&(console.log("[SWELL] Barba on"),function(){t().use(r());let e=null,n=null,o=window.swellVars.pjaxPreventPages;o&&(o=o.split(","),o=o.map((function(e,t,n){return e.trim()}))),t().init({debug:!0,timeout:3e3,prevent:({el:e,event:t,href:n})=>{if(-1!==n.indexOf("/wp-admin/")||-1!==n.indexOf("/wp-login.php")||-1!==n.indexOf("/lp/")||n===location.href)return!0;if(o)for(let e=0;e
]*>([\s\S]*)<\/head>/i)[1];e=document.createElement("head"),e.innerHTML=a;const c=s.match(/]*>([\s\S]*)<\/body>/i)[1];n=document.createElement("body"),n.innerHTML=c,n.querySelector('[data-barba="wrapper"]')||(t().destroy(),location.href=o.url.href)},beforeEnter({current:t,next:r}){r.url.hash||window.scrollTo(0,0);const o=window.SWELLHOOK.barbaBeforeEnter||{};Array.from(o).forEach((t=>{t&&"function"==typeof t&&t({newHead:e,newBody:n})}))},enter(){},after({current:t,next:r,trigger:o}){const i=window.SWELLHOOK.barbaAfter||{};Array.from(i).forEach((t=>{t&&"function"==typeof t&&t({newHead:e,newBody:n,next:r})}))}}]})}(),window.SWELLHOOK.barbaBeforeEnter.add((function({newHead:e}){if(!e)return;const t=document.head;if(!t)return;const n=["meta[name='keywords']","meta[name='description']","meta[property^='fb']","meta[property^='og']","meta[name^='twitter']","meta[name='robots']","meta[itemprop]","link[itemprop]","link[rel='prev']","link[rel='next']","link[rel='canonical']"].join(",");[...t.querySelectorAll(n)].forEach((e=>{t.removeChild(e)})),[...e.querySelectorAll(n)].forEach((e=>{t.appendChild(e)}));const r=[];[...t.querySelectorAll("link[type='text/css']")].forEach((e=>{const t=e.getAttribute("id");t&&(r[t]=e)}));const o=[];[...e.querySelectorAll("link[type='text/css']")].forEach((e=>{const t=e.getAttribute("id");t&&(o[t]=e)})),Object.keys(o).forEach((e=>{r[e]||(t.appendChild(o[e]),console.log("added css:",e))}))})),window.SWELLHOOK.barbaBeforeEnter.add((function({newHead:e}){if(!e)return;const t=e.querySelector("#swell_custom-inline-css"),n=document.querySelector("#swell_custom-inline-css"),r=t?t.textContent:"";n&&(n.textContent=r);const o=e.querySelector("#swell_custom_css"),i=document.querySelector("#swell_custom_css"),s=o?o.textContent:"";i&&(i.textContent=s)})),window.SWELLHOOK.barbaBeforeEnter.add((function(){let e=document.querySelector(".swell-style-animation");if(e)return;e=document.createElement("style");const t=document.createTextNode("#content,#main_visual,.p-mvInfo,.l-topTitleArea,.l-topTitleArea__body{animation-delay: 0s;}");e.media="screen",e.type="text/css",e.classList.add("swell-style-animation"),e.styleSheet?e.styleSheet.cssText=t.nodeValue:e.appendChild(t),document.getElementsByTagName("head")[0].appendChild(e)})),window.SWELLHOOK.barbaBeforeEnter.add((function({newBody:e}){if(!e)return;const t=e.querySelector("#body_wrap"),n=document.querySelector("#body_wrap");t&&n&&n.setAttribute("class",t.getAttribute("class"))})),window.SWELLHOOK.barbaBeforeEnter.add((function({newBody:e}){if(!e)return;const t=e.querySelector("#header"),n=document.querySelector("#header");if(!t||!n)return;n.setAttribute("class",t.getAttribute("class"));const r=t.querySelector(".c-headLogo__link"),o=n.querySelector(".c-headLogo__link");r&&o&&(o.innerHTML=r.innerHTML,document.documentElement.setAttribute("data-spmenu","closed"))})),window.SWELLHOOK.barbaBeforeEnter.add((function({newBody:e}){if(!e)return;const t=e.querySelector("#wpadminbar"),n=document.querySelector("#wpadminbar");if(!t||!n)return;n.innerHTML=t.innerHTML;const r=document.querySelectorAll("#wp-admin-bar-root-default > li");0