sms.sup39.dev/docs/_next/static/chunks/pages/index-03147cfb4ffd94fa.js

1 line
8 KiB
JavaScript
Raw Normal View History

2023-03-13 18:30:08 +09:00
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{1464:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(1976)}])},1976:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return w},headings:function(){return y},meta:function(){return x}});var r,l=t(5893),i=t(1151);t(9404);var a=t(7294),c=t(9008),o=t.n(c),s=function(){return(s=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e}).apply(this,arguments)},u=function(e){return e.endsWith("/")?e:e+"/"};function d(e){var n=e.entry,t=n.label,r=n.path,l=n.children,i=e.dir,c=e.here,o=e.children,s=r.includes("://")?r:u(i)+r,h=u(s),m=h===u(c),f=m||c.startsWith(h),p=(0,a.useState)(f),v=p[0],g=p[1],E="nav-entry"+(m?" nav-here":"");return(null==l?void 0:l.length)?a.createElement("div",{className:"nav-dir"+(v?" nav-fold-open":"")},a.createElement(a.Fragment,null,a.createElement("div",{className:E},a.createElement("a",{href:s},t),a.createElement("svg",{viewBox:"0 0 8 8",onClick:function(){return g(function(e){return!e})}},a.createElement("polyline",{points:"6 3 4 5 2 3"}))),m?o:a.createElement(a.Fragment,null),a.createElement("div",{className:"nav-dir-child"},l.map(function(e){return a.createElement(d,{key:e.path,entry:e,dir:h,here:c},o)})))):a.createElement("div",{className:E},a.createElement("a",{href:s},t))}function h(e){var n=e.children,t=e.headings,r=e.pathname,l=e.entries,i=e.className,c=a.createElement("ul",{className:""},t.map(function(e){var n=e.label,t=e.id;return a.createElement("li",{key:t},a.createElement("a",{href:"#"+t},n))}));return a.createElement("nav",{className:i},n,a.createElement("div",{className:"nav-root"},l.map(function(e){return a.createElement(d,{key:e.path,entry:e,dir:"/",here:r})}),c))}function m(e){var n,t,r,l,i,c=e.config,o=e.onToggleFold,s=c.title,u=c.subtitle,d=c.icon,h="string"==typeof d?{href:d}:d;return a.createElement("header",null,a.createElement("a",{href:"/",id:"icon-link"},(null==h?void 0:h.href)&&a.createElement("img",{className:"icon",src:null==h?void 0:h.href,alt:null!==(n=null==h?void 0:h.alt)&&void 0!==n?n:"icon",width:null!==(r=null!==(t=null==h?void 0:h.width)&&void 0!==t?t:null==h?void 0:h.size)&&void 0!==r?r:96,height:null!==(i=null!==(l=null==h?void 0:h.height)&&void 0!==l?l:null==h?void 0:h.size)&&void 0!==i?i:96}),a.createElement("div",{className:"icon-text"},a.createElement("div",null,s),a.createElement("div",null,u))),a.createElement("div",{className:"menu-toggle",onClick:o}))}function f(e){var n=e.config,t=e.children,r=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);l<r.length;l++)0>n.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(t[r[l]]=e[r[l]]);return t}(e,["config","children"]),l=(0,a.useState)(!1),i=l[0],c=l[1];return a.createElement(h,s({className:i?"open":"",entries:n.nav},r),a.createElement(m,{config:n.site,onToggleFold:function(){return c(function(e){return!e})}}),t)}function p(e){var n=e.config,t=new Date().getFullYear(),r=n.site,l=r.startYear,i=void 0===l?t:l,c=r.author,o=t>i?"".concat(i,"-").concat(t):t;return a.createElement("footer",null,c&&a.createElement("div",null,"Copyright \xa9 ",o," ",c," All rights reserved."))}var v=function(){return(v=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var l in n=arguments[t])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e}).apply(this,arguments)};function g(e){var n=e.fields,t=e.data;return a.createElement("div",null,n.map(function(e){var n=e.label,r=e.attr,l=t[r];return null==l?null:a.createElement("div",{key:r},a.createElement("span",null,n),a.createElement("span",null,l))}))}function E(e,n){var t,r,l=n.locale,i=n.defaultLocale;return null==e||"object"!=typeof e||e instanceof Array?e:null!==(r=null!==(t=null==l?void 0:e[l])&&void 0!==t?t:e[void 0===i?"":i])&&void 0!==r?r:Object.values(e)[0]