芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/blog.ycreate.jp/wp-content/themes/swell/build/js/main.min.js
!function(){var e={283:function(e,t,n){"use strict";n.d(t,{M:function(){return r},X:function(){return l}});const o=async(e,t,n,o)=>{var l,r;const i=null===(l=window)||void 0===l||null===(r=l.swellVars)||void 0===r?void 0:r.restUrl;void 0!==i&&fetch(i+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),o&&o()}))},l=async(e,t,n=undefined,l=undefined)=>{const r=new URLSearchParams;Object.keys(t).forEach((e=>{r.append(e,t[e])})),o(e,{method:"POST",body:r},n,l)},r=async(e,t,n=undefined,l=undefined)=>{const r=new URLSearchParams;Object.keys(t).forEach((e=>{r.append(e,t[e])}));const i=r.toString();o(`${e}?${i}`,{method:"GET"},n,l)}},614:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(507),l=n(354);const r={pageTop(){(0,l.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 o=t.getAttribute("aria-controls"),l=document.getElementById(o);if(null===l)return;const r=t.closest('[role="tablist"]').querySelector('.c-tabList__item [aria-selected="true"]'),i=r.getAttribute("aria-controls"),s=document.getElementById(i);t.setAttribute("aria-selected","true"),r.setAttribute("aria-selected","false"),l.setAttribute("aria-hidden","false"),s.setAttribute("aria-hidden","true")},scrollToContent(){const e=document.querySelector("#main_visual + *");e&&(0,l.l)(e,o.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 i(e){e.querySelectorAll("[data-onclick]").forEach((e=>{const t=e.getAttribute("data-onclick"),n=r[t];e.addEventListener("click",(function(e){e.preventDefault(),n(e)}))})),e.querySelectorAll('[data-onclick="clickLink"]').forEach((e=>{e.addEventListener("mousedown",(e=>r.clickLink(e)))}))}},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 w},Ro:function(){return i},Z8:function(){return u},ls:function(){return m},tq:function(){return c},ua:function(){return f},wR:function(){return d}});var o=n(754);let l=0,r=0,i=!1,s=!1,c=!1,d=!1,u=0,a=window.swellVars.isFixHeadSP;const f=navigator.userAgent.toLowerCase(),m=()=>{i=959
window.innerWidth,s=!i,d=!c},p=()=>{const e=window.innerWidth-document.body.clientWidth;document.documentElement.style.setProperty("--swl-scrollbar_width",e+"px")},w=()=>{var e,t,n;null!==(e=o.Z.header)&&(l=e.offsetHeight,document.documentElement.style.setProperty("--swl-headerH",l+"px")),null!==(t=o.Z.fixHeader)&&(r=t.offsetHeight,document.documentElement.style.setProperty("--swl-fix_headerH",r+"px")),n=o.Z.wpadminbar,u=0,i?u+=r:!i&&a&&(u+=l),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 o=n(754),l=n(614),r=n(354),i=n(283);let s=0,c=0;const d=(e,t)=>{const n=document.getElementById(e);if(!n)return;const d={placement:e};if("post_id"===t){if(null===o.Z.content)return void console.error('Not found "#content".');const e=o.Z.content.getAttribute("data-postid");if(!e)return void console.error('Not found "data-postid".');d.post_id=e}(0,i.M)("swell-lazyload-contents",d,(e=>{const t=document.createDocumentFragment(),o=document.createElement("div");for(o.innerHTML=e;o.firstChild;)t.appendChild(o.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,o=document.createElement("script");e.src?o.src=e.src:o.textContent=e.textContent,n.replaceChild(o,e)})),n.innerHTML="",n.appendChild(t),(e=>{const t=e.querySelectorAll('select[name="cat"]');0
{const t="ajaxed-cat-dropdown-"+s++;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,l.Z)(n),(0,r.B)(n)}))},u=()=>{var e,t;null!==(e=window.swellVars)&&void 0!==e&&e.useAjaxAfterPost&&d("after_article","post_id"),null!==(t=window.swellVars)&&void 0!==t&&t.useAjaxFooter&&(d("before_footer_widget",""),d("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 r}});var o=n(754),l=n(283);const r=()=>{var e;if(null===o.Z.content)return;if(null===(e=window.swellVars)||void 0===e||!e.usePvCount)return;const t=o.Z.content.getAttribute("data-postid");if(!t)return;if(!o.Z.content.getAttribute("data-pvct"))return;const n={postid:t};(0,l.X)("swell-ct-pv",n)}},41:function(e,t,n){"use strict";function o(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 o}})},581:function(e,t,n){"use strict";function o(e){1
{if(null===e)return;const t=window.location.pathname,n=window.location.origin+t,o=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 r}});var o=n(754);function l(e,t){let n=e.innerHTML;const o=t.join("|")||"";n=n.replace(/
.*<\/noscript>/gim,"");const l=new RegExp("(?!<\\/?("+o+")(>|\\s[^>]*>))<(\"[^\"]*\"|\\'[^\\']*\\'|[^\\'\">])*>","gim");n=n.replace(l,"");const r=e.querySelector(".mininote");if(null!==r){const e=r.textContent;n=n.replace(e,`
${e}
`)}return n}function r(){var e,t,n,r,i,s;if(void 0===window.swellVars)return;const c=o.Z.bodyWrap;if(null===c)return;const d=o.Z.mainContent;if(null===d)return;if(null!==d.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 a=d.querySelector(".l-mainContent__inner > .post_content")||d.querySelector(".p-termContent > .post_content")||d.querySelector(".p-authorContent > .post_content"),f=(null===(e=window.swellVars)||void 0===e?void 0:e.tocListTag)||"ol",m=(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,w=[];null!==a&&("h2"===m?w=a.querySelectorAll("h2"):"h3"===m?w=a.querySelectorAll("h2, h3"):"h4"===m?w=a.querySelectorAll("h2, h3, h4"):"h5"===m&&(w=a.querySelectorAll("h2, h3, h4, h5")));const h=function(e,t=".current"){if(!e)return null;const n=e.querySelector(t);if(!n)return null;const o={},l=n.nextElementSibling;if(l){const e=l.getAttribute("href");o.next=e}const r=n.previousElementSibling;if(r){const e=r.getAttribute("href");o.prev=e}return o}(d.querySelector(".c-pagination.-post"));if(null!==h&&(p-=1),p>w.length)return void function(){const e=o.Z.bodyWrap;if(null===e)return;e.classList.add("-index-off");const t=o.Z.mainContent;if(null===t)return;const n=t.querySelector(".swell-block-fullWide .p-toc");n&&n.parentNode.removeChild(n);const l=t.querySelector(".swell-block-fullWide .w-beforeToc");l&&l.parentNode.removeChild(l)}();const g=(null===(r=window.swellVars)||void 0===r?void 0:r.tocOmitType)||"",v=Number((null===(i=window.swellVars)||void 0===i?void 0:i.tocOmitNum)||0);let y=g&&v+1
${(null===(w=window.swellVars)||void 0===w?void 0:w.tocPrevText)||"前のページへ"}
`);let h=1,g=1;for(let c=0;c
`;else if(m>b)for(;m>b;)p+=`${o}>`,m--;let x="";""===u?x="":"nest"===u&&2
${y}
`,h++,g++}if(!p)return{listHtml:null,isOmitted:!1};for("nest"===u&&a>=h&&(f=!1);m>1;)p+=`${o}>`,m--;var v;d&&(p+=`
${(null===(v=window.swellVars)||void 0===v?void 0:v.tocNextText)||"次のページへ"}
`);return{listHtml:p,isOmitted:f}}({hTags:w,ignoreClasses:["p-postList__title","swl-toc-off"],idPrefix:"index_id",listTag:f,childClass:"p-toc__childList",linkClass:"p-toc__link",prevLink:(null==h?void 0:h.prev)||"",nextLink:(null==h?void 0:h.next)||"",omitType:y?g:"",omitNum:v});if(!b)return void c.classList.add("-index-off");y=E;const x=document.createElement(f);x.classList.add("p-toc__list","is-style-index"),x.setAttribute("data-level","2"),x.innerHTML=b;const _=(null===(s=window.swellVars)||void 0===s?void 0:s.tocAdPosition)||"before",A=d.querySelector(".p-toc");y&&A&&(A.setAttribute("data-omit",g),A.classList.add("is-omitted"));for(let e=0;e
{A.classList.contains("is-expanded")?(A.classList.add("is-omitted"),A.classList.remove("is-expanded"),o.innerHTML=t):(A.classList.remove("is-omitted"),A.classList.add("is-expanded"),o.innerHTML=e)}))}}}},354:function(e,t,n){"use strict";n.d(t,{B:function(){return r},l:function(){return l}});var o=n(507);function l(e,t){var n;const o=window.scrollY;let l=0;if(Number.isInteger(e))l=e;else{const n=e.getBoundingClientRect();l=n.top+o-t,l<0&&(l=0)}if(null===(n=window.swellVars)||void 0===n?void 0:n.offSmoothScroll)return void window.scrollTo(0,l);let r=null,i=500;const s=Math.abs(l-o);1e4
{const t=e-r,n=Math.min(1,t/i),s=o+(l-o)*(d=n,1-Math.pow(1-d,3));var d;window.scrollTo(0,s),n<1&&requestAnimationFrame(c)};r=performance.now(),c(r)}function r(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 r=n[0],i=n[1],s=""===r,c=window.location.origin+window.location.pathname;(s||r===c)&&e.addEventListener("click",(function(e){const n=document.getElementById(i);if(!n)return!0;e.preventDefault(),window.history.pushState({},"",t),l(n,o.Z8),document.documentElement.setAttribute("data-spmenu","closed");const r=document.getElementById("index_modal");null!==r&&r.classList.remove("is-opened")}))}))}}},t={};function n(o){var l=t[o];if(void 0!==l)return l.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(595);var e=n(754),t=n(41),o=n(507);var l=n(14),r=n(581),i=n(703),s=n(548);function c(){null!==e.Z.fixBottomMenu&&(e=>{const t=document.getElementById("footer");if(null!==t)if(o.Ro)t.style.paddingBottom="0";else{const n=e.offsetHeight;t.style.paddingBottom=n+"px"}})(e.Z.fixBottomMenu),(0,s.D)()}var d=n(614),u=n(354),a=n(853),f=n(290);-1!==o.ua.indexOf("fb")&&300>window.innerHeight&&location.reload(),(0,o.ls)();const m=location.hash;window.onpageshow=function(e){e.persisted},document.addEventListener("DOMContentLoaded",(function(){(0,t.Z)(e.Z),(0,o.QW)(),(0,o.M_)(),window.objectFitImages&&window.objectFitImages(),c(),(0,i.Z)(),(0,l.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,s.B)()})),window.addEventListener("load",(function(){if(document.documentElement.setAttribute("data-loaded","true"),(0,o.QW)(),null!==e.Z.fixSidebar&&(0,r.Z)(e.Z.fixSidebar),(0,u.B)(),m){const e=m.replace("#",""),t=document.getElementById(e);null!==t&&(0,u.l)(t,o.Z8)}(0,a.J)(),(0,f.F)()})),window.addEventListener("orientationchange",(function(){setTimeout((()=>{(0,o.ls)(),(0,o.QW)(),c()}),10)})),window.addEventListener("resize",(function(){setTimeout((()=>{(0,o.ls)(),(0,o.QW)(),(0,o.M_)(),c()}),5)}))}()}();