PageSourceSearch

https://manuelpratt.net/b/blog/build/soundplayer.2940b52.js

js manuelpratt.net collected 2026-10-07 20:56:20 UTC 12,062 bytes, 1 lines download raw bytes

vendor: 8,363 bytes, line 1
1!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/build/",t(t.s="ZBGy")}({EF6w:function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var o,r,i,a,l=Z;for(a=arguments.length;a-- >2;)T.push(arguments[a]);for(n&&null!=n.children&&(T.length||T.push(n.children),delete n.children);T.length;)if((r=T.pop())&&void 0!==r.pop)for(a=r.length;a--;)T.push(r[a]);else!0!==r&&!1!==r||(r=null),(i="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(i=!1)),i&&o?l[l.length-1]+=r:l===Z?l=[r]:l.push(r),o=i;var u=new t;return u.nodeName=e,u.children=l,u.attributes=null==n?void 0:n,u.key=null==n?void 0:n.key,void 0!==E.vnode&&E.vnode(u),u}function o(e,t){for(var n in t)e[n]=t[n];return e}function r(e,t){return n(e.nodeName,o(o({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(e){!e.__d&&(e.__d=!0)&&1==W.push(e)&&(E.debounceRendering||setTimeout)(a)}function a(){var e,t=W;for(W=[];e=t.pop();)e.__d&&M(e)}function l(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&u(e,t.nodeName):n||e._componentConstructor===t.nodeName}function u(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function s(e){var t=o({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function c(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function p(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),o&&o(e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===O.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,_,a):e.removeEventListener(t,_,a),(e.__l||(e.__l={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e)f(e,t,null==o?"":o),null!=o&&!1!==o||e.removeAttribute(t);else{var l=r&&t!==(t=t.replace(/^xlink\:?/,""));null==o||!1===o?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function f(e,t,n){try{e[t]=n}catch(e){}}function _(e){return this.__l[e.type](E.event&&E.event(e)||e)}function h(){for(var e;e=j.pop();)E.afterMount&&E.afterMount(e),e.componentDidMount&&e.componentDidMount()}function v(e,t,n,o,r,i){B++||(V=null!=r&&void 0!==r.ownerSVGElement,A=null!=e&&!("__preactattr_"in e));var a=m(e,t,n,o,i);return r&&a.parentNode!==r&&r.appendChild(a),--B||(A=!1,i||h()),a}function m(e,t,n,o,r){var i=e,a=V;if(null==t&&(t=""),"string"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),b(e,!0))),i.__preactattr_=!0,i;if("function"==typeof t.nodeName)return k(e,t,n,o);if(V="svg"===t.nodeName||"foreignObject"!==t.nodeName&&V,(!e||!u(e,String(t.nodeName)))&&(i=c(String(t.nodeName),V),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),b(e,!0)}var l=i.firstChild,s=i.__preactattr_||(i.__preactattr_={}),p=t.children;return!A&&p&&1===p.length&&"string"==typeof p[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=p[0]&&(l.nodeValue=p[0]):(p&&p.length||null!=l)&&y(i,p,n,o,A||null!=s.dangerouslySetInnerHTML),g(i,t.attributes,s),V=a,i}function y(e,t,n,o,r){var i,a,u,s,c=e.childNodes,d=[],f={},_=0,h=0,v=c.length,y=0,L=t?t.length:0;if(0!==v)for(var g=0;g<v;g++){var C=c[g],w=C.__preactattr_,x=L&&w?C._component?C._component.__k:w.key:null;null!=x?(_++,f[x]=C):(w||(void 0!==C.splitText?!r||C.nodeValue.trim():r))&&(d[y++]=C)}if(0!==L)for(var g=0;g<L;g++){u=t[g],s=null;var x=u.key;if(null!=x)_&&void 0!==f[x]&&(s=f[x],f[x]=void 0,_--);else if(!s&&h<y)for(i=h;i<y;i++)if(void 0!==d[i]&&l(a=d[i],u,r)){s=a,d[i]=void 0,i===y-1&&y--,i===h&&h++;break}s=m(s,u,n,o),s&&s!==e&&(g>=v?e.appendChild(s):s!==c[g]&&(s===c[g+1]?p(c[g]):e.insertBefore(s,c[g]||null)))}if(_)for(var g in f)void 0!==f[g]&&b(f[g],!1);for(;h<=y;)void 0!==(s=d[y--])&&b(s,!1)}function b(e,t){var n=e._component;n?P(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||p(e),L(e))}function L(e){for(e=e.lastChild;e;){var t=e.previousSibling;b(e,!0),e=t}}function g(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||d(e,o,n[o],n[o]=void 0,V);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||d(e,o,n[o],n[o]=t[o],V)}function C(e){var t=e.constructor.name;(I[t]||(I[t]=[])).push(e)}function w(e,t,n){var o,r=I[e.name];if(e.prototype&&e.prototype.render?(o=new e(t,n),S.call(o,t,n)):(o=new S(t,n),o.constructor=e,o.render=x),r)for(var i=r.length;i--;)if(r[i].constructor===e){o.__b=r[i].__b,r.splice(i,1);break}return o}function x(e,t,n){return this.constructor(e,n)}function N(e,t,n,o,r){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,o),o&&o!==e.context&&(e.__c||(e.__c=e.context),e.context=o),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==n&&(1!==n&&!1===E.syncComponentUpdates&&e.base?i(e):M(e,1,r)),e.__r&&e.__r(e))}function M(e,t,n,r){if(!e.__x){var i,a,l,u=e.props,c=e.state,p=e.context,d=e.__p||u,f=e.__s||c,_=e.__c||p,m=e.base,y=e.__b,L=m||y,g=e._component,C=!1;if(m&&(e.props=d,e.state=f,e.context=_,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(u,c,p)?C=!0:e.componentWillUpdate&&e.componentWillUpdate(u,c,p),e.props=u,e.state=c,e.context=p),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!C){i=e.render(u,c,p),e.getChildContext&&(p=o(o({},p),e.getChildContext()));var x,k,S=i&&i.nodeName;if("function"==typeof S){var U=s(i);a=g,a&&a.constructor===S&&U.key==a.__k?N(a,U,1,p,!1):(x=a,e._component=a=w(S,U,p),a.__b=a.__b||y,a.__u=e,N(a,U,0,p,!1),M(a,1,n,!0)),k=a.base}else l=L,x=g,x&&(l=e._component=null),(L||1===t)&&(l&&(l._component=null),k=v(l,i,p,n||!m,L&&L.parentNode,!0));if(L&&k!==L&&a!==g){var T=L.parentNode;T&&k!==T&&(T.replaceChild(k,L),x||(L._component=null,b(L,!1)))}if(x&&P(x),e.base=k,k&&!r){for(var Z=e,O=e;O=O.__u;)(Z=O).base=k;k._component=Z,k._componentConstructor=Z.constructor}}if(!m||n?j.unshift(e):C||(h(),e.componentDidUpdate&&e.componentDidUpdate(d,f,_),E.afterUpdate&&E.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);B||r||h()}}function k(e,t,n,o){for(var r=e&&e._component,i=r,a=e,l=r&&e._componentConstructor===t.nodeName,u=l,c=s(t);r&&!u&&(r=r.__u);)u=r.constructor===t.nodeName;return r&&u&&(!o||r._component)?(N(r,c,3,n,o),e=r.base):(i&&!l&&(P(i),e=a=null),r=w(t.nodeName,c,n),e&&!r.__b&&(r.__b=e,a=null),N(r,c,1,n,o),e=r.base,a&&e!==a&&(a._component=null,b(a,!1))),e}function P(e){E.beforeUnmount&&E.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?P(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,p(t),C(e),L(t)),e.__r&&e.__r(null)}function S(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}function U(e,t,n){return v(n,e,{},!1,t,!1)}var E={},T=[],Z=[],O=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,W=[],j=[],B=0,V=!1,A=!1,I={};o(S.prototype,{setState:function(e,t){var n=this.state;this.__s||(this.__s=o({},n)),o(n,"function"==typeof e?e(n,this.props):e),t&&(this.__h=this.__h||[]).push(t),i(this)}
1,forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),M(this,2)},render:function(){}});var D={h:n,createElement:n,cloneElement:r,Component:S,render:U,rerender:a,options:E};e.exports=D}()},LWf2:function(e,t,n){e.exports=n.p+"deezer.9b2f7f8.svg"},ZBGy:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){for(var o=document.getElementById(e);o.lastChild;)o.removeChild(o.lastChild);n.i(l.render)(n.i(l.h)(d,t),o)}Object.defineProperty(t,"__esModule",{value:!0});var l=n("EF6w"),u=(n.n(l),n("rPIE")),s=n.n(u),c=n("LWf2"),p=n.n(c),d=function(e){function t(){o(this,t);var n=r(this,e.call(this));return n.handlePlay=n.handlePlay.bind(n),n.handlePause=n.handlePause.bind(n),n.handleMute=n.handleMute.bind(n),n.handleUnmute=n.handleUnmute.bind(n),n.state={paused:!0,muted:!1},n}return i(t,e),t.prototype.handlePlay=function(){this.audio.play(),this.setState({paused:!1})},t.prototype.handlePause=function(){this.audio.pause(),this.setState({paused:!0})},t.prototype.handleMute=function(){this.audio.muted=!0,this.setState({muted:!0})},t.prototype.handleUnmute=function(){this.audio.muted=!1,this.setState({muted:!1})},t.prototype.render=function(e,t){var o=this,r=t.paused,i=t.muted,a=e.artist,u=e.cover,c=e.src,d=e.title;return n.i(l.h)("div",{class:s.a.container},n.i(l.h)("audio",{src:c,ref:function(e){return o.audio=e},loop:!0}),n.i(l.h)("span",{class:s.a.play+" play"},r?n.i(l.h)("svg",{viewBox:"0 0 12 14",height:"30",width:"26",onClick:this.handlePlay},n.i(l.h)("path",{d:"M0,0 L0,14 L11,7 L0,0 Z"})):n.i(l.h)("svg",{viewBox:"0 0 12 14",height:"30",width:"26",onClick:this.handlePause},n.i(l.h)("path",{d:"M0,14 L4,14 L4,0 L0,0 L0,14 L0,14 Z M8,0 L8,14 L12,14 L12,0 L8,0 L8,0 Z"}))),u&&n.i(l.h)("span",{class:s.a.cover,style:"background-image: url("+u+");"}),(a||d)&&n.i(l.h)("div",{class:s.a.infos},d&&n.i(l.h)("div",{class:s.a.title},d),a&&n.i(l.h)("div",{class:s.a.author},a)),n.i(l.h)("span",{class:s.a.volume+" volume"},i?n.i(l.h)("svg",{viewBox:"0 0 18 18",width:"25",height:"25",onClick:this.handleUnmute},n.i(l.h)("path",{d:"M13.5,9 C13.5,7.2 12.5,5.7 11,5 L11,7.2 L13.5,9.7 L13.5,9 L13.5,9 Z M16,9 C16,9.9 15.8,10.8 15.5,11.6 L17,13.1 C17.7,11.9 18,10.4 18,8.9 C18,4.6 15,1 11,0.1 L11,2.2 C13.9,3.2 16,5.8 16,9 L16,9 Z M1.3,0 L0,1.3 L4.7,6 L0,6 L0,12 L4,12 L9,17 L9,10.3 L13.3,14.6 C12.6,15.1 11.9,15.5 11,15.8 L11,17.9 C12.4,17.6 13.6,17 14.7,16.1 L16.7,18.1 L18,16.8 L9,7.8 L1.3,0 L1.3,0 Z M9,1 L6.9,3.1 L9,5.2 L9,1 L9,1 Z"})):n.i(l.h)("svg",{viewBox:"0 0 18 18",width:"25",height:"25",onClick:this.handleMute},n.i(l.h)("path",{d:"M0,6 L0,12 L4,12 L9,17 L9,1 L4,6 L0,6 L0,6 Z M13.5,9 C13.5,7.2 12.5,5.7 11,5 L11,13 C12.5,12.3 13.5,10.8 13.5,9 L13.5,9 Z M11,0.2 L11,2.3 C13.9,3.2 16,5.8 16,9 C16,12.2 13.9,14.8 11,15.7 L11,17.8 C15,16.9 18,13.3 18,9 C18,4.7 15,1.1 11,0.2 L11,0.2 Z"}))),n.i(l.h)("a",{href:"http://www.deezer.com",target:"_blank"},n.i(l.h)("img",{class:s.a.logo,src:""+p.a})))},t}(l.Component);window.renderSoundPlayer=a},rPIE:function(e,t){e.exports={container:"_8ea3346f",play:"_928c82cd",title:"_85ab7957",author:"_9f83ebdb",infos:"b51a21ee",logo:"_631eba36",volume:"f09a7303",cover:"_5ffa62f0"}}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.