!function(){"use strict";var n={d:function(o,i){for(var a in i)n.o(i,a)&&!n.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},o:function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}},o={};n.d(o,{default:function(){return t}});const i="PMC: Piano: ",a=()=>{var n,o;return null===(o=null===(n=window.location)||void 0===n?void 0:n.search)||void 0===o?void 0:o.includes("pianoDebug")},w=n=>{let o=n.name.replace("bound","").trim();return o||(o="Anonymous"),o},c=(n={})=>{void 0!==n.knownUser&&window.tp.user.isUserValid()&&(a()&&console.log(i,"init","Firing known user callback",w(n.knownUser)),n.knownUser()),void 0===n.unknownUser||window.tp.user.isUserValid()||(a()&&console.log(i,"init","Firing unknown user callback",w(n.unknownUser)),n.unknownUser())},d=(n,o)=>{a()&&console.log(i,"loginSuccess","Firing callback",w(n),o),n(o)},l=n=>{a()&&console.log(i,"logout","Firing callback",w(n)),n()},e=(n,o)=>{a()&&console.log(i,"registrationSuccess","Firing callback",w(n),o),n(o)};var t={onInit:n=>(window.tp=window.tp||[],window.tp.push(["init",c.bind(void 0,n)]),window.pmcPiano.callbacks),onKnownIP:n=>{var o;return null===(o=window.pmcPiano.ipAuth)||void 0===o||o.onKnownIP(n),window.pmcPiano.callbacks},onLogin:n=>(window.tp=window.tp||[],window.tp.push(["addHandler","loginSuccess",d.bind(void 0,n)]),window.pmcPiano.callbacks),onLogout:n=>(window.tp=window.tp||[],window.tp.push(["addHandler","logout",l.bind(void 0,n)]),window.pmcPiano.callbacks),onRegistration:n=>(window.tp=window.tp||[],window.tp.push(["addHandler","registrationSuccess",e.bind(void 0,n)]),window.pmcPiano.callbacks)};(window.pmcPiano=window.pmcPiano||{}).callbacks=o.default}();