Files
discogs-service/docs/js/index.b232e9de.js
T

9 lines
56 KiB
JavaScript
Raw Normal View History

2026-03-24 01:54:43 +00:00
/*!
* This source file is part of the Swift.org open source project
*
* Copyright (c) 2021 Apple Inc. and the Swift project authors
* Licensed under Apache License v2.0 with Runtime Library Exception
*
* See https://swift.org/LICENSE.txt for license information
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
*/(function(){var e={288:function(e,t,n){"use strict";n.d(t,{CN:function(){return i},Fd:function(){return a},Hm:function(){return c},Vd:function(){return s},iw:function(){return l},np:function(){return r},qD:function(){return o},vc:function(){return d}});n(4114),n(8111),n(116),n(8237);function r(e){return e.reduce((e,t)=>(t.traits.includes("dark")?e.dark.push(t):e.light.push(t),e),{light:[],dark:[]})}function o(e){const t=["1x","2x","3x"];return t.reduce((t,n)=>{const r=e.find(e=>e.traits.includes(n));return r?t.concat({density:n,src:r.url,size:r.size}):t},[])}function i(e){const t="/",n=new RegExp(`${t}+`,"g");return e.join(t).replace(n,t)}function a(e){const{baseUrl:t}=window,n=Array.isArray(e)?i(e):e;return n&&"string"===typeof n&&!n.startsWith(t)&&n.startsWith("/")?i([t,n]):n}function s(e){return e?e.startsWith("/")?e:`/${e}`:e}function l(e){return e?`url('${a(e)}')`:void 0}function c(e){return new Promise((t,n)=>{const r=new Image;r.src=e,r.onerror=n,r.onload=()=>t({width:r.width,height:r.height})})}const u={landscape:"landscape",portrait:"portrait",square:"square"};function d(e,t){return e&&t?e<t?u.portrait:e>t?u.landscape:u.square:null}},986:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});const r="app-top"},1074:function(e,t,n){"use strict";n.d(t,{LG:function(){return s},c$:function(){return a},Lo:function(){return l},vh:function(){return u},vk:function(){return i},FT:function(){return c}});n(8111),n(8237),n(4603),n(7566),n(8721);var r=n(288),o={input:"input",tags:"tags"};function i(e={}){return Object.entries(e).reduce((e,[t,n])=>n?e.concat(`${encodeURIComponent(t)}=${encodeURIComponent(n)}`):e,[]).join("&")}function a(e,{changes:t,language:n,context:r}={}){const[o,a]=e.split("#"),s=o.match(/\?.*/),l=i({changes:t,language:n,context:r}),c=s?"&":"?",u=a?o:e,d=l?`${c}${l}`:"",m=a?`#${a}`:"";return`${u}${d}${m}`}function s(e,t){const{query:{changes:n,[o.input]:r,[o.tags]:i,...a}={}}=e,{query:{changes:s,[o.input]:l,[o.tags]:c,...u}={}}=t;return e.name===t.name&&JSON.stringify({path:e.path,query:a})===JSON.stringify({path:t.path,query:u})}function l(e,t=window.location.href){return new URL((0,r.Fd)(e),t)}function c(e,t){return l(e,t).href}function u(e){try{return new URL(e),!0}catch(t){return!1}}},1176:function(e,t,n){"use strict";n.d(t,{IG:function(){return l},Ud:function(){return a},sZ:function(){return c}});const r="developer.setting.";function o(e=localStorage){return{getItem:t=>{try{return e.getItem(t)}catch(n){return null}},setItem:(t,n)=>{try{e.setItem(t,n)}catch(r){}},removeItem:t=>{try{e.removeItem(t)}catch(n){}}}}function i(e){return{get:(t,n)=>{const o=JSON.parse(e.getItem(r+t));return null!==o?o:n},set:(t,n)=>e.setItem(r+t,JSON.stringify(n)),remove:t=>e.removeItem(r+t)}}const a=o(window.localStorage),s=o(window.sessionStorage),l=i(a),c=i(s)},1537:function(e,t){"use strict";t.A={auto:"auto",dark:"dark",light:"light"}},1570:function(e,t,n){"use strict";n(3958);var r=n(5471),o=n(4765),i=n(173),a=function(){var e=this,t=e._self._c;return t("div",{class:{fromkeyboard:e.fromKeyboard,hascustomheader:e.hasCustomHeader},attrs:{id:"app"}},[t("div",{attrs:{id:e.AppTopID}}),e.isTargetIDE?e._e():t("a",{attrs:{href:"#app-main",id:"skip-nav"}},[e._v(" "+e._s(e.$t("accessibility.skip-navigation"))+" ")]),e._t("header",function(){return[e.enablei18n?t("SuggestLang"):e._e(),e.hasCustomHeader?t("custom-header",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e._e()]},{isTargetIDE:e.isTargetIDE}),t("div",{attrs:{id:e.baseNavStickyAnchorId}}),t("InitialLoadingPlaceholder"),e._t("default",function(){return[t("router-view",{staticClass:"router-content"}),e.hasCustomFooter?t("custom-footer",{attrs:{"data-color-scheme":e.preferredColorScheme}}):e.isTargetIDE?e._e():t("Footer",{scopedSlots:e._u([{key:"default",fn:function({className:n}){return[e.enablei18n?t("div",{class:n},[t("LocaleSelector")],1):e._e()]}}])})]},{isTargetIDE:e.isTargetIDE}),e._t("footer",null,{isTargetIDE:e.isTargetIDE})],2)},s=[],l=(n(4114),n(8111),n(2489),n(7588),n(8964)),c=n(1537),u=function(){var e=this,t=e._self._c;return t("footer",{stati