(function(e,t){var n=function(){var t=function(e,t){var n={};n.command=e;for(var r in t){n[r]=t[r]}return n};var n={context:e,commandUrlForHash:function(e){return"command:"+encodeURIComponent(JSON.stringify(e))},runCommand:function(e,n){var r=t(e,n);this.context.location=this.commandUrlForHash(r)},registerCommands:function(e){var t=function(e){return function(t){n.runCommand(e,t)}};for(var r=0;r