mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
2 lines
6.2 KiB
JavaScript
2 lines
6.2 KiB
JavaScript
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("jss")):"function"==typeof define&&define.amd?define(["exports","jss"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).jssPluginVendorPrefixer={},e.jss)}(this,(function(e,r){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document))&&9===document.nodeType;function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u="",f="",a="",l="",s=n&&"ontouchstart"in document.documentElement;if(n){var p={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},c=document.createElement("p").style;for(var d in p)if(d+"Transform"in c){u=d,f=p[d];break}"Webkit"===u&&"msHyphens"in c&&(u="ms",f=p.ms,l="edge"),"Webkit"===u&&"-apple-trailing-word"in c&&(a="apple")}var y=u,m=f,b=a,v=l,g=s;var x={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===y?"-webkit-"+e:m+e)}},P={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===y?m+"print-"+e:e)}},k=/[-\s]+(.)?/g;function w(e,r){return r?r.toUpperCase():""}function h(e){return e.replace(k,w)}function j(e){return h("-"+e)}var S,A={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===y){var t="mask-image";if(h(t)in r)return e;if(y+j(t)in r)return m+e}return e}},W={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==b||g?e:m+e)}},C={noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:m+e)}},E={noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:m+e)}},O={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===y||"ms"===y&&"edge"!==v?m+e:e)}},z={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===y||"ms"===y||"apple"===b?m+e:e)}},M={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===y?"WebkitColumn"+j(e)in r&&m+"column-"+e:"Moz"===y&&("page"+j(e)in r&&"page-"+e))}},T={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===y)return e;var t=e.replace("-inline","");return y+j(t)in r&&m+t}},I={supportedProperty:function(e,r){return h(e)in r&&e}},N={supportedProperty:function(e,r){var t=j(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:y+t in r?m+e:"Webkit"!==y&&"Webkit"+t in r&&"-webkit-"+e}},V={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===y?""+m+e:e)}},U={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===y?m+"scroll-chaining":e)}},_={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},q={supportedProperty:function(e,r){var t=_[e];return!!t&&(y+j(t)in r&&m+t)}},H={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},R=Object.keys(H),$=function(e){return m+e},B=[x,P,A,W,C,E,O,z,M,T,I,N,V,U,q,{supportedProperty:function(e,r,t){var n=t.multiple;if(R.indexOf(e)>-1){var o=H[e];if(!Array.isArray(o))return y+j(o)in r&&m+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(y+j(o[0])in r))return!1;return o.map($)}return!1}}],D=B.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),F=B.filter((function(e){return e.noPrefill})).reduce((function(e,r){return e.push.apply(e,i(r.noPrefill)),e}),[]),G={};if(n){S=document.createElement("p");var J=window.getComputedStyle(document.documentElement,"");for(var K in J)isNaN(K)||(G[J[K]]=J[K]);F.forEach((function(e){return delete G[e]}))}function L(e,r){if(void 0===r&&(r={}),!S)return e;if(null!=G[e])return G[e];"transition"!==e&&"transform"!==e||(r[e]=e in S.style);for(var t=0;t<D.length&&(G[e]=D[t](e,S.style,r),!G[e]);t++);try{S.style[e]=""}catch(e){return!1}return G[e]}var Q,X={},Y={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Z=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ee(e,r,t){if("var"===r)return"var";if("all"===r)return"all";if("all"===t)return", all";var n=r?L(r):", "+L(t);return n||(r||t)}function re(e,r){var t=r;if(!Q||"content"===e)return r;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=X[n])return X[n];try{Q.style[e]=t}catch(e){return X[n]=!1,!1}if(Y[e])t=t.replace(Z,ee);else if(""===Q.style[e]&&("-ms-flex"===(t=m+t)&&(Q.style[e]="-ms-flexbox"),Q.style[e]=t,""===Q.style[e]))return X[n]=!1,!1;return Q.style[e]="",X[n]=t,X[n]}n&&(Q=document.createElement("p")),e.default=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,u=L(n);u&&u!==n&&(i=!0);var f=!1,a=re(u,r.toCssValue(o));a&&a!==o&&(f=!0),(i||f)&&(i&&delete t[n],t[u||n]=a||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var r=e;r.at=function(e){return"-"===e[1]||"ms"===y?e:"@"+m+"keyframes"+e.substr(10)}(r.at)}},onProcessStyle:function(r,t){return"style"!==t.type?r:e(r)},onChangeValue:function(e,t){return re(t,r.toCssValue(e))||e}}},Object.defineProperty(e,"__esModule",{value:!0})}));
|