Spotify.NET/assets/js/2.138e3a59.js

2 lines
34 KiB
JavaScript
Raw Normal View History

/*! For license information please see 2.138e3a59.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{126:function(e,t,a){"use strict";a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return o}));var n=a(16),r=a(128);function c(){var e=Object(n.default)().siteConfig,t=(e=void 0===e?{}:e).baseUrl,a=void 0===t?"/":t,c=e.url;return{withBaseUrl:function(e,t){return function(e,t,a,n){var c=void 0===n?{}:n,o=c.forcePrependBaseUrl,l=void 0!==o&&o,i=c.absolute,s=void 0!==i&&i;if(!a)return a;if(a.startsWith("#"))return a;if(Object(r.b)(a))return a;if(l)return t+a;var u=a.startsWith(t)?a:t+a.replace(/^\//,"");return s?e+u:u}(c,a,e,t)}}}function o(e,t){return void 0===t&&(t={}),(0,c().withBaseUrl)(e,t)}},128:function(e,t,a){"use strict";function n(e){return!0===/^(\w*:|\/\/)/.test(e)}function r(e){return void 0!==e&&!n(e)}a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return r}))},130:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(10),o=a(128),l=a(8),i=Object(n.createContext)({collectLink:function(){}}),s=a(126),u=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a};t.a=function(e){var t,a,d,f=e.isNavLink,m=e.to,h=e.href,v=e.activeClassName,b=e.isActive,p=e["data-noBrokenLinkCheck"],g=e.autoAddBaseUrl,O=void 0===g||g,E=u(e,["isNavLink","to","href","activeClassName","isActive","data-noBrokenLinkCheck","autoAddBaseUrl"]),k=Object(s.b)().withBaseUrl,j=Object(n.useContext)(i),y=m||h,w=Object(o.a)(y),C=null==y?void 0:y.replace("pathname://",""),_=void 0!==C?(a=C,O&&function(e){return e.startsWith("/")}(a)?k(a):a):void 0,N=Object(n.useRef)(!1),T=f?c.e:c.c,L=l.a.canUseIntersectionObserver;Object(n.useEffect)((function(){return!L&&w&&window.docusaurus.prefetch(_),function(){L&&d&&d.disconnect()}}),[_,L,w]);var S=null!==(t=null==_?void 0:_.startsWith("#"))&&void 0!==t&&t,I=!_||!w||S;return _&&w&&!S&&!p&&j.collectLink(_),I?r.a.createElement("a",Object.assign({href:_},y&&!w&&{target:"_blank",rel:"noopener noreferrer"},E)):r.a.createElement(T,Object.assign({},E,{onMouseEnter:function(){N.current||(window.docusaurus.preload(_),N.current=!0)},innerRef:function(e){var t,a;L&&e&&w&&(t=e,a=function(){window.docusaurus.prefetch(_)},(d=new window.IntersectionObserver((function(e){e.forEach((function(e){t===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(d.unobserve(t),d.disconnect(),a())}))}))).observe(t))},to:_||""},f&&{isActive:b,activeClassName:v}))}},132:function(e,t,a){"use strict";var n=a(0),r=a(138);t.a=function(){var e=Object(n.useContext)(r.a);if(null==e)throw new Error("`useThemeContext` is used outside of `Layout` Component. See https://v2.docusaurus.io/docs/api/themes/configuration#usethemecontext.");return e}},134:function(e,t,a){"use strict";var n=a(0),r=a(137);t.a=function(){var e=Object(n.useContext)(r.a);if(null==e)throw new Error("`useUserPreferencesContext` is used outside of `Layout` Component.");return e}},135:function(e,t,a){"use strict";var n=a(3),r=a(7),c=a(0),o=a.n(c),l=a(127),i=a(130),s=a(126),u=a(23),d=a(125);function f(e){var t=e.activeBasePath,a=e.activeBaseRegex,c=e.to,l=e.href,u=e.label,d=e.activeClassName,f=void 0===d?"navbar__link--active":d,m=e.prependBaseUrlToHref,h=Object(r.a)(e,["activeBasePath","activeBaseRegex","to","href","label","activeClassName","prependBaseUrlToHref"]),v=Object(s.a)(c),b=Object(s.a)(t),p=Object(s.a)(l,{forcePrependBaseUrl:!0});return o.a.createElement(i.a,Object(n.a)({},l?{href:m?p:l}:Object.assign({isNavLink:!0,activeClassName:f,to:v},t||a?{isActive:function(e,t){return a?new RegExp(a).test(t.pathname):t.pathname.startsWith(b)}}:null),h),u)}function m(e){var t,a=e.items,i=e.position,s=e.className,u=Object(r.a)(e,["items","position","className"]),d=Object(c.useRef)(null),m=Object(c.useRef)(null),h=Object(c.useState)(!1),v=h[0],b=h[1];Object(c.useEffect)((function(){var e=function(e){d.current&&!d.current.contains(e.target)&&b(!1)};retu