mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[11,8],{149:function(e,t,a){"use strict";a.r(t);a(12);var n=a(0),r=a.n(n),l=a(151),c=a(152),i=a(46),o=a(161),s=a(90),m=a(2),u=a(153),d=a.n(u),p=a(168),b=a(171),f=a(172),E=a(170),g=a(155),h=a(156),v=a(104),y=a.n(v);function N({item:e,onItemClick:t,collapsible:a,activePath:l,...c}){const{items:i,href:o,label:s,type:u}=e,[p,b]=Object(n.useState)(e.collapsed),[f,E]=Object(n.useState)(null);e.collapsed!==f&&(E(e.collapsed),b(e.collapsed));const v=Object(n.useCallback)(e=>{e.preventDefault(),e.target.blur(),b(e=>!e)});switch(u){case"category":return i.length>0&&r.a.createElement("li",{className:d()("menu__list-item",{"menu__list-item--collapsed":p}),key:s},r.a.createElement("a",Object(m.a)({className:d()("menu__link",{"menu__link--sublist":a,"menu__link--active":a&&!e.collapsed}),href:"#!",onClick:a?v:void 0},c),s),r.a.createElement("ul",{className:"menu__list"},i.map(e=>r.a.createElement(N,{tabIndex:p?"-1":"0",key:e.label,item:e,onItemClick:t,collapsible:a,activePath:l}))));case"link":default:return r.a.createElement("li",{className:"menu__list-item",key:s},r.a.createElement(g.a,Object(m.a)({className:d()("menu__link",{"menu__link--active":o===l}),to:o},Object(h.a)(o)?{isNavLink:!0,exact:!0,onClick:t}:{target:"_blank",rel:"noreferrer noopener"},c),s))}}var O=function(e){const[t,a]=Object(n.useState)(!1),{siteConfig:{themeConfig:{navbar:{title:l,hideOnScroll:i=!1}={}}}={},isClient:o}=Object(c.a)(),{logoLink:s,logoLinkProps:u,logoImageUrl:h,logoAlt:v}=Object(f.a)(),{isAnnouncementBarClosed:O}=Object(p.a)(),{scrollY:_}=Object(E.a)(),{docsSidebars:k,path:w,sidebar:j,sidebarCollapsible:C}=e;if(Object(b.a)(t),!j)return null;const x=k[j];if(!x)throw new Error(`Cannot find the sidebar "${j}" in the sidebar config!`);return C&&x.forEach(e=>function e(t,a){const{items:n,href:r,type:l}=t;switch(l){case"category":{const r=n.map(t=>e(t,a)).filter(e=>e).length>0;return t.collapsed=!r,r}case"link":default:return r===a}}(e,w)),r.a.createElement("div",{className:d()(y.a.sidebar,{[y.a.sidebarWithHideableNavbar]:i})},i&&r.a.createElement(g.a,Object(m.a)({tabIndex:"-1",className:y.a.sidebarLogo,to:s},u),null!=h&&r.a.createElement("img",{key:o,src:h,alt:v}),null!=l&&r.a.createElement("strong",null,l)),r.a.createElement("div",{className:d()("menu","menu--responsive",y.a.menu,{"menu--show":t,[y.a.menuWithAnnouncementBar]:!O&&0===_})},r.a.createElement("button",{"aria-label":t?"Close Menu":"Open Menu","aria-haspopup":"true",className:"button button--secondary button--sm menu__button",type:"button",onClick:()=>{a(!t)}},t?r.a.createElement("span",{className:d()(y.a.sidebarMenuIcon,y.a.sidebarMenuCloseIcon)},"\xd7"):r.a.createElement("svg",{"aria-label":"Menu",className:y.a.sidebarMenuIcon,xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 32 32",role:"img",focusable:"false"},r.a.createElement("title",null,"Menu"),r.a.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))),r.a.createElement("ul",{className:"menu__list"},x.map(e=>r.a.createElement(N,{key:e.label,item:e,onItemClick:e=>{e.target.blur(),a(!1)},collapsible:C,activePath:w})))))},_=a(162),k=(a(106),a(107)),w=a.n(k);var j=e=>function({id:t,...a}){const{siteConfig:{themeConfig:{navbar:{hideOnScroll:n=!1}={}}={}}={}}=Object(c.a)();return t?r.a.createElement(e,a,r.a.createElement("a",{"aria-hidden":"true",tabIndex:"-1",className:d()("anchor",{[w.a.enhancedAnchor]:!n}),id:t}),a.children,r.a.createElement("a",{"aria-hidden":"true",tabIndex:"-1",className:"hash-link",href:"#"+t,title:"Direct link to heading"},"#")):r.a.createElement(e,a)},C=a(108),x=a.n(C),P={code:e=>{const{children:t}=e;return"string"==typeof t?r.a.createElement(_.a,e):t},a:e=>/\.[^./]+$/.test(e.href)?r.a.createElement("a",e):r.a.createElement(g.a,e),pre:e=>r.a.createElement("div",Object(m.a)({className:x.a.mdxCodeBlock},e)),h1:j("h1"),h2:j("h2"),h3:j("h3"),h4:j("h4"),h5:j("h5"),h6:j("h6")},I=a(166),S=a(169),M=a(109),L=a.n(M);t.default=function(e){const{route:t,docsMetadata:a,location:n,content:m}=e,{permalinkToSidebar:u,docsSidebars:d,version:p,isHomePage:b,homePagePath:f}=a,E=b?{}:t.routes.find(e=>Object(S.a)(n.pathname,e))||{},g=b?m.metadata.sidebar:u[E.path],{siteConfig:{themeConfig:{sidebarCollapsible:h=!0}={}}={},isClient:v}=Object(c.a)();return b||0!==Object.keys(E).length?r.a.createElement(o.a,{version:p,key:v},r.a.createElement("div",{className:L.a.docPage},g&&r.a.createElement("div",{className:L.a.docSidebarContainer},r.a.createElement(O,{docsSidebars:d,path:b?f:E.path,sidebar:g,sidebarCollapsible:h})),r.a.createElement("main",{className:L.a.docMainContainer},r.a.createElement(l.a,{components:P},b?r.a.createElement(s.default,{content:m}):Object(i.a)(t.routes))))):r.a.createElement(I.default,e)}},151:function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return b}));var n=a(0),r=a.n(n);function l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){l(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function o(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var s=r.a.createContext({}),m=function(e){var t=r.a.useContext(s),a=t;return e&&(a="function"==typeof e?e(t):i({},t,{},e)),a},u=function(e){var t=m(e.components);return r.a.createElement(s.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},p=Object(n.forwardRef)((function(e,t){var a=e.components,n=e.mdxType,l=e.originalType,c=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),u=m(a),p=n,b=u["".concat(c,".").concat(p)]||u[p]||d[p]||l;return a?r.a.createElement(b,i({ref:t},s,{components:a})):r.a.createElement(b,i({ref:t},s))}));function b(e,t){var a=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var l=a.length,c=new Array(l);c[0]=p;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i.mdxType="string"==typeof e?e:n,c[1]=i;for(var s=2;s<l;s++)c[s]=a[s];return r.a.createElement.apply(null,c)}return r.a.createElement.apply(null,a)}p.displayName="MDXCreateElement"},166:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=a(161);t.default=function(){return r.a.createElement(l.a,{title:"Page Not Found"},r.a.createElement("div",{className:"container margin-vert--xl"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col col--6 col--offset-3"},r.a.createElement("h1",{className:"hero__title"},"Page Not Found"),r.a.createElement("p",null,"We could not find what you were looking for."),r.a.createElement("p",null,"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))}},90:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=a(164),c=a(156),i=a(152),o=a(154),s=a(155);var m=function(e){const{metadata:t}=e;return r.a.createElement("nav",{className:"pagination-nav"},r.a.createElement("div",{className:"pagination-nav__item"},t.previous&&r.a.createElement(s.a,{className:"pagination-nav__link",to:t.previous.permalink},r.a.createElement("div",{className:"pagination-nav__sublabel"},"Previous"),r.a.createElement("div",{className:"pagination-nav__label"},"\xab ",t.previous.title))),r.a.createElement("div",{className:"pagination-nav__item pagination-nav__item--next"},t.next&&r.a.createElement(s.a,{className:"pagination-nav__link",to:t.next.permalink},r.a.createElement("div",{className:"pagination-nav__sublabel"},"Next"),r.a.createElement("div",{className:"pagination-nav__label"},t.next.title," \xbb"))))};var u=function(e,t,a){const[r,l]=Object(n.useState)(void 0);Object(n.useEffect)(()=>{let n=[],c=[];function i(){const i=function(){let e=0,t=null;for(n=document.getElementsByClassName("anchor");e<n.length&&!t;){const r=n[e],{top:l}=r.getBoundingClientRect();l>=0&&l<=a&&(t=r),e+=1}return t}();if(i){let a=0,n=!1;for(c=document.getElementsByClassName(e);a<c.length&&!n;){const e=c[a],{href:o}=e,s=decodeURIComponent(o.substring(o.indexOf("#")+1));i.id===s&&(r&&r.classList.remove(t),e.classList.add(t),l(e),n=!0),a+=1}}}return document.addEventListener("scroll",i),document.addEventListener("resize",i),i(),()=>{document.removeEventListener("scroll",i),document.removeEventListener("resize",i)}})},d=a(153),p=a.n(d),b=a(91),f=a.n(b);function E({headings:e}){return u("table-of-contents__link","table-of-contents__link--active",100),r.a.createElement("div",{className:"col col--3"},r.a.createElement("div",{className:f.a.tableOfContents},r.a.createElement(g,{headings:e})))}function g({headings:e,isChild:t}){return e.length?r.a.createElement("ul",{className:t?"":"table-of-contents table-of-contents__left-border"},e.map(e=>r.a.createElement("li",{key:e.id},r.a.createElement("a",{href:"#"+e.id,className:"table-of-contents__link",dangerouslySetInnerHTML:{__html:e.value}}),r.a.createElement(g,{isChild:!0,headings:e.children})))):null}t.default=function(e){const{siteConfig:t={}}=Object(i.a)(),{url:a,title:n}=t,{content:s}=e,{metadata:u}=s,{description:d,title:b,permalink:g,editUrl:h,lastUpdatedAt:v,lastUpdatedBy:y,version:N}=u,{frontMatter:{image:O,keywords:_,hide_title:k,hide_table_of_contents:w}}=s,j=b?`${b} | ${n}`:n;let C=a+Object(o.a)(O);return Object(c.a)(O)||(C=O),r.a.createElement(r.a.Fragment,null,r.a.createElement(l.a,null,r.a.createElement("title",null,j),r.a.createElement("meta",{property:"og:title",content:j}),d&&r.a.createElement("meta",{name:"description",content:d}),d&&r.a.createElement("meta",{property:"og:description",content:d}),_&&_.length&&r.a.createElement("meta",{name:"keywords",content:_.join(",")}),O&&r.a.createElement("meta",{property:"og:image",content:C}),O&&r.a.createElement("meta",{property:"twitter:image",content:C}),O&&r.a.createElement("meta",{name:"twitter:image:alt",content:"Image for "+b}),g&&r.a.createElement("meta",{property:"og:url",content:a+g}),g&&r.a.createElement("link",{rel:"canonical",href:a+g})),r.a.createElement("div",{className:p()("container padding-vert--lg",f.a.docItemWrapper)},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:p()("col",{[f.a.docItemCol]:!w})},r.a.createElement("div",{className:f.a.docItemContainer},r.a.createElement("article",null,N&&r.a.createElement("div",null,r.a.createElement("span",{className:"badge badge--secondary"},"Version: ",N)),!k&&r.a.createElement("header",null,r.a.createElement("h1",{className:f.a.docTitle},b)),r.a.createElement("div",{className:"markdown"},r.a.createElement(s,null))),(h||v||y)&&r.a.createElement("div",{className:"margin-vert--xl"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col"},h&&r.a.createElement("a",{href:h,target:"_blank",rel:"noreferrer noopener"},r.a.createElement("svg",{fill:"currentColor",height:"1.2em",width:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 40 40",style:{marginRight:"0.3em",verticalAlign:"sub"}},r.a.createElement("g",null,r.a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"}))),"Edit this page")),(v||y)&&r.a.createElement("div",{className:"col text--right"},r.a.createElement("em",null,r.a.createElement("small",null,"Last updated"," ",v&&r.a.createElement(r.a.Fragment,null,"on"," ",r.a.createElement("time",{dateTime:new Date(1e3*v).toISOString(),className:f.a.docLastUpdatedAt},new Date(1e3*v).toLocaleDateString()),y&&" "),y&&r.a.createElement(r.a.Fragment,null,"by ",r.a.createElement("strong",null,y)),!1))))),r.a.createElement("div",{className:"margin-vert--lg"},r.a.createElement(m,{metadata:u})))),!w&&s.rightToc&&r.a.createElement(E,{headings:s.rightToc}))))}}}]); |