Skip to content

Instantly share code, notes, and snippets.

@CSElliyas
Created October 17, 2019 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CSElliyas/22d7e1fb016c99817b5010bd1c970216 to your computer and use it in GitHub Desktop.
Save CSElliyas/22d7e1fb016c99817b5010bd1c970216 to your computer and use it in GitHub Desktop.
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(k,B,p){k!=Array.prototype&&k!=Object.prototype&&(k[B]=p.value)};$jscomp.getGlobal=function(k){return"undefined"!=typeof window&&window===k?k:"undefined"!=typeof global&&null!=global?global:k};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var k=0;return function(B){return $jscomp.SYMBOL_PREFIX+(B||"")+k++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var k=$jscomp.global.Symbol.iterator;k||(k=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[k]&&$jscomp.defineProperty(Array.prototype,k,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(k){var B=0;return $jscomp.iteratorPrototype(function(){return B<k.length?{done:!1,value:k[B++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(k){$jscomp.initSymbolIterator();k={next:k};k[$jscomp.global.Symbol.iterator]=function(){return this};return k};$jscomp.iteratorFromArray=function(k,B){$jscomp.initSymbolIterator();k instanceof String&&(k+="");var p=0,l={next:function(){if(p<k.length){var y=p++;return{value:B(y,k[y]),done:!1}}l.next=function(){return{done:!0,value:void 0}};return l.next()}};l[Symbol.iterator]=function(){return l};return l};
$jscomp.polyfill=function(k,B,p,l){if(B){p=$jscomp.global;k=k.split(".");for(l=0;l<k.length-1;l++){var y=k[l];y in p||(p[y]={});p=p[y]}k=k[k.length-1];l=p[k];B=B(l);B!=l&&null!=B&&$jscomp.defineProperty(p,k,{configurable:!0,writable:!0,value:B})}};$jscomp.polyfill("Array.prototype.keys",function(k){return k?k:function(){return $jscomp.iteratorFromArray(this,function(k){return k})}},"es6","es3");
(function(k,B){function p(a,b){function c(){}c.prototype=a;a=new c;for(var d in b)a[d]=b[d];b.toString!==Object.prototype.toString&&(a.toString=b.toString);return a}function l(a){return a instanceof Array?function(){return u.iter(a)}:"function"==typeof a.iterator?y(a,a.iterator):a.iterator}function y(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=eb++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=function(){return c.method.apply(c.scope,arguments)},
c.scope=a,c.method=b,a.hx__closures__[b.__id__]=c);return c}k.muses=k.muses||{};var I=function(a,b){this.r=new RegExp(a,b.split("u").join(""))};I.__name__=["EReg"];I.prototype={r:null,match:function(a){this.r.global&&(this.r.lastIndex=0);this.r.m=this.r.exec(a);this.r.s=a;return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&a<this.r.m.length)return this.r.m[a];throw new r("EReg::matched");},__class__:I};var u=function(){};u.__name__=["HxOverrides"];u.strDate=function(a){switch(a.length){case 8:a=
a.split(":");var b=new Date;b.setTime(0);b.setUTCHours(a[0]);b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return b=a.split(" "),a=b[0].split("-"),b=b[1].split(":"),new Date(a[0],a[1]-1,a[2],b[0],b[1],b[2]);default:throw new r("Invalid date format : "+a);}};u.cca=function(a,b){a=a.charCodeAt(b);if(a==a)return a};u.substr=function(a,b,c){if(null==c)c=a.length;else if(0>c)if(0==b)c=a.length+c;else return"";return a.substr(b,
c)};u.remove=function(a,b){b=a.indexOf(b);if(-1==b)return!1;a.splice(b,1);return!0};u.iter=function(a){return{cur:0,arr:a,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var P=function(){};P.__name__=["Lambda"];P.exists=function(a,b){for(a=l(a)();a.hasNext();){var c=a.next();if(b(c))return!0}return!1};P.filter=function(a,b){var c=new J;for(a=l(a)();a.hasNext();){var d=a.next();b(d)&&c.add(d)}return c};var J=function(){this.length=0};J.__name__=["List"];
J.prototype={h:null,q:null,length:null,add:function(a){a=new Q(a,null);null==this.h?this.h=a:this.q.next=a;this.q=a;this.length++},push:function(a){this.h=a=new Q(a,this.h);null==this.q&&(this.q=a);this.length++},iterator:function(){return new na(this.h)},__class__:J};var Q=function(a,b){this.item=a;this.next=b};Q.__name__=["_List","ListNode"];Q.prototype={item:null,next:null,__class__:Q};var na=function(a){this.head=a};na.__name__=["_List","ListIterator"];na.prototype={head:null,hasNext:function(){return null!=
this.head},next:function(){var a=this.head.item;this.head=this.head.next;return a},__class__:na};var g=k.MRP=function(){};g.__name__=["MRP"];g.setElementId=function(a){g.elementId=a};g.setObjectId=function(a){g.objectId=a};g.play=function(){var a=g.objectId,b=g.jsInstances;if(null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a))a=g.objectId,b=g.jsInstances,(null!=m[a]?b.getReserved(a):b.h[a]).playAudio();a=g.objectId;b=g.flashInstances;if(null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a))a=g.objectId,
b=g.flashInstances,(null!=m[a]?b.getReserved(a):b.h[a]).playSound()};g.stop=function(){var a=g.objectId,b=g.jsInstances;if(null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a))a=g.objectId,b=g.jsInstances,(null!=m[a]?b.getReserved(a):b.h[a]).stopAudio(!1);a=g.objectId;b=g.flashInstances;if(null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a))a=g.objectId,b=g.flashInstances,(null!=m[a]?b.getReserved(a):b.h[a]).stopSound()};g.setVolume=function(a){var b=g.objectId,c=g.jsInstances;if(null!=m[b]?c.existsReserved(b):
c.h.hasOwnProperty(b))b=g.objectId,c=g.jsInstances,(null!=m[b]?c.getReserved(b):c.h[b]).setVolume(a/100);b=g.objectId;c=g.flashInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.flashInstances,(null!=m[b]?c.getReserved(b):c.h[b]).setVolume(a/100)};g.showInfo=function(a){var b=g.objectId,c=g.jsInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.jsInstances,(null!=m[b]?c.getReserved(b):c.h[b]).ui.showInfo(a);b=g.objectId;c=g.flashInstances;
if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.flashInstances,(null!=m[b]?c.getReserved(b):c.h[b]).showInfo(a)};g.setTitle=function(a){var b=g.objectId,c=g.jsInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.jsInstances,(null!=m[b]?c.getReserved(b):c.h[b]).ui.setTitle(a);b=g.objectId;c=g.flashInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.flashInstances,(null!=m[b]?c.getReserved(b):c.h[b]).setTitle(a)};
g.setUrl=function(a){var b=g.objectId,c=g.jsInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.jsInstances,(null!=m[b]?c.getReserved(b):c.h[b]).setUrl(a);b=g.objectId;c=g.flashInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.flashInstances,(null!=m[b]?c.getReserved(b):c.h[b]).setUrl(a)};g.setFallbackUrl=function(a){var b=g.objectId,c=g.jsInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.jsInstances,
(null!=m[b]?c.getReserved(b):c.h[b]).setFallbackUrl(a);b=g.objectId;c=g.flashInstances;if(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))b=g.objectId,c=g.flashInstances,(null!=m[b]?c.getReserved(b):c.h[b]).setFallbackUrl(a)};g.setCallbackFunction=function(a){musesCallback=a};g.getScriptBaseHREF=function(){return"//hosted.muses.org"};g.getSkin=function(a,b){return-1!=a.indexOf("/")||b&&("original"==a||"tiny"==a)?a:g.getScriptBaseHREF()+"/muses-"+a+".xml"};g.createMusesStyleReset=function(){if(null==
mrpStyleReset){var a=window.document.createElement("style"),b=window.document.createTextNode(".musesStyleReset,.musesStyleReset DIV,.musesStyleReset IMG,.musesStyleReset SPAN { animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:transparent;background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:default;direction:ltr;display:block;empty-cells:show;float:none;font:normal;font-family:inherit;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;max-height:none !important;max-width:none !important;min-height:0;min-width:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;width:auto;word-spacing:normal;z-index:auto;-o-user-select:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;}");
a.appendChild(b);window.document.head.appendChild(a);mrpStyleReset=a}};g.browserSupportsCodec=function(a){return"ogg"!=a&&"aac"!=a&&"mp3"!=a?!0:mrpBrowserCompat[a]};g.isIE=function(){return mrpBrowserCompat.isIE};g.insert=function(a){1==a.forceFlash?g.flashInsert(a):0<g.isIE()&&11>g.isIE()?(console.log("MusesRadioPlayer will use Flash Version here since you have Internet Explorer "+g.isIE()+" (wich is older than IE 11)."),g.flashInsert(a)):0<g.isIE()&&11<=g.isIE()&&"aac"==a.codec&&FlashDetect.versionAtLeast(10,
1)?(console.log("MusesRadioPlayer will use Flash Version here since you have Internet Explorer "+g.isIE()+" (wich claims to support AAC but it doesn't support it right)."),g.flashInsert(a)):1==a.forceHTML5?g.jsInsert(a):g.browserSupportsCodec(a.codec)?g.jsInsert(a):FlashDetect.versionAtLeast(10,1)?(console.log("MusesRadioPlayer will use Flash Version here since your browser does not support "+a.codec+" codec!"),g.flashInsert(a)):(console.log("MusesRadioPlayer will not work here, since your browser does not support "+
a.codec+" codec and you don't have flash plugin installed!"),g.jsInsert(a))};g.getMusesPlayerCounter=function(){return musesPlayerCounter++};g.jsInsert=function(a){null==a.elementId&&null!=g.elementId&&(a.elementId=g.elementId);null==a.id&&(a.id=g.objectId);g.createMusesStyleReset();var b="MusesRadioPlayer-HTML5-player-"+g.getMusesPlayerCounter(),c='<div id="'+b+'" class="musesStyleReset" style="overflow:hidden; width:'+a.width+"px;height:"+a.height+'px;"></div>';null==a.elementId?window.document.write(c):
window.document.getElementById(a.elementId).innerHTML=c;null!=a.callbackFunction&&g.setCallbackFunction(a.callbackFunction);a.elementId=b;a.skin=g.getSkin(a.skin,!1);b=g.jsInstances;c=a.id;a=new K(a);null!=m[c]?b.setReserved(c,a):b.h[c]=a};g.flashInsert=function(a){null==a.elementId&&null!=g.elementId&&(a.elementId=g.elementId);null==a.id&&(a.id=g.objectId);null==a.wmode&&(a.wmode="window");var b="url="+a.url;b+="&lang="+(null!=a.lang?a.lang:"auto");b+="&codec="+a.codec;b=b+"&tracking=true"+("&volume="+
(null!=a.volume?a.volume:100));null!=a.introurl&&(b+="&introurl="+a.introurl);null!=a.autoplay&&(b+="&autoplay="+(a.autoplay?"true":"false"));null!=a.jsevents&&(b+="&jsevents="+(a.jsevents?"true":"false"));null!=a.buffering&&(b+="&buffering="+a.buffering);null!=a.metadataMode&&(b+="&querymetadata="+a.metadataMode,null!=a.metadataProxy&&(b+="&metadataproxy="+a.metadataProxy),null!=a.metadataInterval&&(b+="&interval="+a.metadataInterval));null!=a.reconnectTime&&(b+="&reconnecttime="+a.reconnectTime);
null!=a.fallbackUrl&&(b+="&fallback="+a.fallbackUrl);b+="&skin="+g.getSkin(a.skin,!0);b+="&title="+a.title;b+="&welcome="+a.welcome;var c=g.getScriptBaseHREF()+"/muses-hosted.swf",d='width="'+a.width+'" height="'+a.height+'" ';null!=a.bgcolor&&(d+='bgcolor="'+a.bgcolor+'" ');var e='<object id="'+a.id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+d+">";e=e+('<param name="movie" value="'+c+'" />')+('<param name="flashvars" value="'+b+'" />')+('<param name="wmode" value="'+a.wmode+'" />');
e+='<param name="allowScriptAccess" value="always" />';e+='<param name="scale" value="noscale" />';null!=a.bgcolor&&(e+='<param name="bgcolor" value="'+a.bgcolor+'" />');e+='<embed name="'+a.id+'" src="'+c+'" flashvars="'+b+'" scale="noscale" wmode="'+a.wmode+'" '+d+' allowScriptAccess="always" type="application/x-shockwave-flash" />';e+="</object>";null!=a.callbackFunction&&g.setCallbackFunction(a.callbackFunction);null==a.elementId?window.document.write(e):window.document.getElementById(a.elementId).innerHTML=
e;b=null;eval("instance = document."+g.objectId+";");null==b&&(b=document.getElementById(g.objectId));a=a.id;c=g.flashInstances;null!=m[a]?c.setReserved(a,b):c.h[a]=b};g.main=function(){g.getScriptBaseHREF()};Math.__name__=["Math"];var M=function(){};M.__name__=["Reflect"];M.field=function(a,b){try{return a[b]}catch(c){return null}};M.isFunction=function(a){return"function"==typeof a?!(a.__name__||a.__ename__):!1};var L=function(){};L.__name__=["Std"];L.string=function(a){return C.__string_rec(a,
"")};L.parseInt=function(a){var b=parseInt(a,10);0!=b||120!=u.cca(a,1)&&88!=u.cca(a,1)||(b=parseInt(a));return isNaN(b)?null:b};var X=function(){this.b=""};X.__name__=["StringBuf"];X.prototype={b:null,__class__:X};var z=function(){};z.__name__=["StringTools"];z.isSpace=function(a,b){a=u.cca(a,b);return 8<a&&14>a?!0:32==a};z.ltrim=function(a){for(var b=a.length,c=0;c<b&&z.isSpace(a,c);)++c;return 0<c?u.substr(a,c,b-c):a};z.rtrim=function(a){for(var b=a.length,c=0;c<b&&z.isSpace(a,b-c-1);)++c;return 0<
c?u.substr(a,0,b-c):a};z.trim=function(a){return z.ltrim(z.rtrim(a))};z.replace=function(a,b,c){return a.split(b).join(c)};var da=function(){};da.__name__=["Type"];da.getClassName=function(a){a=a.__name__;return null==a?null:a.join(".")};da.getInstanceFields=function(a){var b=[],c;for(c in a.prototype)b.push(c);u.remove(b,"__class__");u.remove(b,"__properties__");return b};var h=function(a){this.nodeType=a;this.children=[];this.attributeMap=new w};h.__name__=["Xml"];h.parse=function(a){return R.parse(a)};
h.createElement=function(a){var b=new h(h.Element);if(b.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+b.nodeType);b.nodeName=a;return b};h.createPCData=function(a){var b=new h(h.PCData);if(b.nodeType==h.Document||b.nodeType==h.Element)throw new r("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};h.createCData=function(a){var b=new h(h.CData);if(b.nodeType==h.Document||b.nodeType==h.Element)throw new r("Bad node type, unexpected "+b.nodeType);b.nodeValue=
a;return b};h.createComment=function(a){var b=new h(h.Comment);if(b.nodeType==h.Document||b.nodeType==h.Element)throw new r("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};h.createDocType=function(a){var b=new h(h.DocType);if(b.nodeType==h.Document||b.nodeType==h.Element)throw new r("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};h.createProcessingInstruction=function(a){var b=new h(h.ProcessingInstruction);if(b.nodeType==h.Document||b.nodeType==h.Element)throw new r("Bad node type, unexpected "+
b.nodeType);b.nodeValue=a;return b};h.createDocument=function(){return new h(h.Document)};h.prototype={nodeType:null,nodeName:null,nodeValue:null,parent:null,children:null,attributeMap:null,get:function(a){if(this.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+this.nodeType);var b=this.attributeMap;return null!=m[a]?b.getReserved(a):b.h[a]},set:function(a,b){if(this.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+this.nodeType);var c=this.attributeMap;
null!=m[a]?c.setReserved(a,b):c.h[a]=b},exists:function(a){if(this.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+this.nodeType);var b=this.attributeMap;return null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},attributes:function(){if(this.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.keys()},elements:function(){if(this.nodeType!=h.Document&&this.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+
this.nodeType);for(var a=[],b=0,c=this.children;b<c.length;){var d=c[b];++b;d.nodeType==h.Element&&a.push(d)}return u.iter(a)},elementsNamed:function(a){if(this.nodeType!=h.Document&&this.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+this.nodeType);for(var b=[],c=0,d=this.children;c<d.length;){var e=d[c];++c;if(e.nodeType==h.Element){if(e.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+e.nodeType);var f=e.nodeName==a}else f=!1;
f&&b.push(e)}return u.iter(b)},firstElement:function(){if(this.nodeType!=h.Document&&this.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+this.nodeType);for(var a=0,b=this.children;a<b.length;){var c=b[a];++a;if(c.nodeType==h.Element)return c}return null},addChild:function(a){if(this.nodeType!=h.Document&&this.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+this.nodeType);null!=a.parent&&a.parent.removeChild(a);this.children.push(a);
a.parent=this},removeChild:function(a){if(this.nodeType!=h.Document&&this.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+this.nodeType);return u.remove(this.children,a)?(a.parent=null,!0):!1},__class__:h};var S=function(a){null==a&&(a=!1);this.sitespeedSampleRate=1;this.endPointPath="/__utm.gif";this.endPointHost="www.google-analytics.com";this.urlScheme="http";this.requestTimeout=1;this.sendOnShutdown=this.fireAndForget=!1;this.errorSeverity=2;this.setUrlScheme("http"+
(a?"s":""))};S.__name__=["googleAnalytics","Config"];S.prototype={errorSeverity:null,sendOnShutdown:null,fireAndForget:null,loggingCallback:null,requestTimeout:null,urlScheme:null,endPointHost:null,endPointPath:null,sitespeedSampleRate:null,getErrorSeverity:function(){return this.errorSeverity},setErrorSeverity:function(a){this.errorSeverity=a},getSendOnShutdown:function(){return this.sendOnShutdown},setSendOnShutdown:function(a){this.sendOnShutdown=a},getFireAndForget:function(){return this.fireAndForget},
setFireAndForget:function(a){this.fireAndForget=a},getLoggingCallback:function(){return this.loggingCallback},setLoggingCallback:function(a){this.loggingCallback=a},getRequestTimeout:function(){return this.requestTimeout},setRequestTimeout:function(a){this.requestTimeout=a},getUrlScheme:function(){return this.urlScheme},setUrlScheme:function(a){return this.urlScheme=a},getEndPointHost:function(){return this.endPointHost},setEndPointHost:function(a){this.endPointHost=a},getEndPointPath:function(){return this.endPointPath},
setEndPointPath:function(a){this.endPointPath=a},getSitespeedSampleRate:function(){return this.sitespeedSampleRate},setSitespeedSampleRate:function(a){0>a||100<a?D._raiseError("For consistency with ga.js, sample rates must be specified as a number between 0 and 100.","config.setSitespeedSampleRate"):this.sitespeedSampleRate=a},__class__:S};var T=function(a){this.date=null==a?Math.round((new Date).getTime())+"":a};T.__name__=["googleAnalytics","DateTime"];T.prototype={date:null,toString:function(){return this.date},
__class__:T};var Sa=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);this.noninteraction=!1;null!=a&&this.setCategory(a);null!=b&&this.setAction(b);null!=c&&this.setLabel(c);this.setValue(d);this.setNoninteraction(e)};Sa.__name__=["googleAnalytics","Event"];Sa.prototype={category:null,action:null,label:null,value:null,noninteraction:null,validate:function(){null!=this.category&&null!=this.action||D._raiseError("Events need at least to have a category and action defined.","Event.validate")},getCategory:function(){return this.category},
setCategory:function(a){this.category=a},getAction:function(){return this.action},setAction:function(a){this.action=a},getLabel:function(){return this.label},setLabel:function(a){this.label=a},getValue:function(){return this.value},setValue:function(a){this.value=a},getNoninteraction:function(){return this.noninteraction},setNoninteraction:function(a){this.noninteraction=a},__class__:Sa};var oa=function(a){this.setPath(a)};oa.__name__=["googleAnalytics","Page"];oa.prototype={path:null,title:null,
charset:null,referrer:null,loadTime:null,setPath:function(a){null!=a&&"/"!=a.charAt(0)&&D._raiseError('The page path should always start with a slash ("/").',"Page.setPath");this.path=a},getPath:function(){return this.path},setTitle:function(a){this.title=a},getTitle:function(){return this.title},setCharset:function(a){this.charset=a},getCharset:function(){return this.charset},setReferrer:function(a){this.referrer=a},getReferrer:function(){return this.referrer},setLoadTime:function(a){this.loadTime=
a},getLoadTime:function(){return this.loadTime},__class__:oa};var Ta=function(){this.setSessionId(this.generateSessionId());this.setTrackCount(0);this.setStartTime(new T)};Ta.__name__=["googleAnalytics","Session"];Ta.prototype={sessionId:null,trackCount:null,startTime:null,fromUtmb:function(a){a=a.split(".");if(4!=a.length)return D._raiseError('The given "__utmb" cookie value is invalid.',"Session.fromUtmb"),this;this.setTrackCount(E.parseInt(a[1],0));this.setStartTime(new T(a[3]));return this},generateSessionId:function(){return E.generate32bitRandom()},
getSessionId:function(){return this.sessionId},setSessionId:function(a){this.sessionId=a},getTrackCount:function(){return this.trackCount},setTrackCount:function(a){this.trackCount=a},increaseTrackCount:function(a){null==a&&(a=1);this.trackCount+=a},getStartTime:function(){return this.startTime},setStartTime:function(a){this.startTime=a},__class__:Ta};var x=function(){};x.__name__=["googleAnalytics","Stats"];x.init=function(a,b,c){null==c&&(c=!1);null==x.accountId&&(x.accountId=a,x.domainName=b,x.tracker=
new D(a,b,new S(c)),x.cache=new w,x.session=new Ta,x.loadVisitor())};x.trackPageview=function(a,b){var c="page:"+a,d=x.cache;(null!=m[c]?d.existsReserved(c):d.h.hasOwnProperty(c))||(a=new oa(a),null!=b&&a.setTitle(b),b=x.cache,a=new pa(a,null),null!=m[c]?b.setReserved(c,a):b.h[c]=a);x.track(c)};x.trackEvent=function(a,b,c,d){null==d&&(d=0);var e="event:"+a+"/"+b+"/"+c+":"+d,f=x.cache;(null!=m[e]?f.existsReserved(e):f.h.hasOwnProperty(e))||(f=x.cache,a=new pa(null,new Sa(a,b,c,d)),null!=m[e]?f.setReserved(e,
a):f.h[e]=a);x.track(e)};x.track=function(a){if(!x.paused){var b=x.cache;(null!=m[a]?b.getReserved(a):b.h[a]).track(x.tracker,x.visitor,x.session);x.persistVisitor()}};x.pause=function(){x.paused=!0};x.resume=function(){x.paused=!1};x.loadVisitor=function(){x.visitor=new Ua;x.visitor.setUserAgent("-not-set- [haxe]");x.visitor.setScreenResolution("1024x768");x.visitor.setLocale("en_US");x.visitor.getUniqueId();x.visitor.addSession(x.session);x.persistVisitor()};x.persistVisitor=function(){};var pa=
function(a,b){this.page=a;this.event=b};pa.__name__=["googleAnalytics","_Stats","GATrackObject"];pa.prototype={event:null,page:null,track:function(a,b,c){null!=this.page&&a.trackPageview(this.page,c,b);null!=this.event&&a.trackEvent(this.event,c,b)},__class__:pa};var D=function(a,b,c){this.allowHash=!0;this.customVariables=[];D.setConfig(null!=c?c:new S);this.setAccountId(a);this.setDomainName(b)};D.__name__=["googleAnalytics","Tracker"];D.getConfig=function(){return D.config};D.setConfig=function(a){D.config=
a};D._raiseError=function(a,b){a=b+"(): "+a;switch(null!=D.config?D.config.getErrorSeverity():0){case 1:console.log(a);break;case 2:throw new r(a);}};D.prototype={accountId:null,domainName:null,allowHash:null,customVariables:null,campaign:null,setAccountId:function(a){(new I("^(UA|MO)-[0-9]*-[0-9]*$","")).match(a)||D._raiseError('"'+a+'" is not a valid Google Analytics account ID.',"Tracker.setAccountId");this.accountId=a},getAccountId:function(){return this.accountId},setDomainName:function(a){this.domainName=
a},getDomainName:function(){return this.domainName},setAllowHash:function(a){this.allowHash=a},getAllowHash:function(){return this.allowHash},addCustomVariable:function(a){a.validate();this.customVariables[a.getIndex()]=a},getCustomVariables:function(){return this.customVariables},removeCustomVariable:function(a){u.remove(this.customVariables,this.customVariables[a])},setCampaign:function(a){null!=a&&a.validate();this.campaign=a},getCampaign:function(){return this.campaign},trackPageview:function(a,
b,c){var d=new Y(D.config);d.setPage(a);d.setSession(b);d.setVisitor(c);d.setTracker(this);d.send()},trackEvent:function(a,b,c){a.validate();var d=new ea(D.config);d.setEvent(a);d.setSession(b);d.setVisitor(c);d.setTracker(this);d.send()},trackTransaction:function(a,b,c){a.validate();var d=new qa(D.config);d.setTransaction(a);d.setSession(b);d.setVisitor(c);d.setTracker(this);d.send();a=a.getItems();for(a=new Va(a,a.arrayKeys());a.hasNext();){d=a.next();d.validate();var e=new ra(D.config);e.setItem(d);
e.setSession(b);e.setVisitor(c);e.setTracker(this);e.send()}},trackSocial:function(a,b,c,d){var e=new sa(D.config);e.setSocialInteraction(a);e.setPage(b);e.setSession(c);e.setVisitor(d);e.setTracker(this);e.send()},__class__:D};var Ua=function(){var a=new T;this.uniqueId=0;this.setFirstVisitTime(a);this.setPreviousVisitTime(a);this.setCurrentVisitTime(a);this.setVisitCount(1)};Ua.__name__=["googleAnalytics","Visitor"];Ua.prototype={uniqueId:null,firstVisitTime:null,previousVisitTime:null,currentVisitTime:null,
visitCount:null,ipAddress:null,userAgent:null,locale:null,flashVersion:null,javaEnabled:null,screenColorDepth:null,screenResolution:null,fromUtma:function(a){a=a.split(".");if(6!=a.length)return D._raiseError('The given "__utma" cookie value is invalid.',"Visitor.fromUtma"),this;this.setUniqueId(E.parseInt(a[1],0));this.setFirstVisitTime(new T(a[2]));this.setPreviousVisitTime(new T(a[3]));this.setCurrentVisitTime(new T(a[4]));this.setVisitCount(E.parseInt(a[5],0));return this},generateHash:function(){return E.generateHash(this.userAgent+
this.screenResolution+this.screenColorDepth)},generateUniqueId:function(){return(E.generate32bitRandom()^this.generateHash())&2147483647},setUniqueId:function(a){(0>a||2147483647<a)&&D._raiseError("Visitor unique ID has to be a 32-bit integer between 0 and 2147483647.","Visitor.setUniqueId");this.uniqueId=a},getUniqueId:function(){0==this.uniqueId&&(this.uniqueId=this.generateUniqueId());return this.uniqueId},addSession:function(a){a=a.getStartTime();a!=this.currentVisitTime&&(this.previousVisitTime=
this.currentVisitTime,this.currentVisitTime=a,++this.visitCount)},setFirstVisitTime:function(a){this.firstVisitTime=a},getFirstVisitTime:function(){return this.firstVisitTime},setPreviousVisitTime:function(a){this.previousVisitTime=a},getPreviousVisitTime:function(){return this.previousVisitTime},setCurrentVisitTime:function(a){this.currentVisitTime=a},getCurrentVisitTime:function(){return this.currentVisitTime},setVisitCount:function(a){this.visitCount=a},getVisitCount:function(){return this.visitCount},
setIpAddress:function(a){this.ipAddress=a},getIpAddress:function(){return this.ipAddress},setUserAgent:function(a){this.userAgent=a},getUserAgent:function(){return this.userAgent},setLocale:function(a){this.locale=a},getLocale:function(){return this.locale},setFlashVersion:function(a){this.flashVersion=a},getFlashVersion:function(){return this.flashVersion},setJavaEnabled:function(a){this.javaEnabled=a},getJavaEnabled:function(){return this.javaEnabled},setScreenColorDepth:function(a){this.screenColorDepth=
a},getScreenColorDepth:function(){return this.screenColorDepth},setScreenResolution:function(a){this.screenResolution=a},getScreenResolution:function(){return this.screenResolution},__class__:Ua};var fa=function(){this.utmwv="5.2.5";this.utmr=this.utmcs=this.utmfl=this.utmje="0"};fa.__name__=["googleAnalytics","internals","ParameterHolder"];fa.prototype={utmwv:null,utmac:null,utmhn:null,utmvid:null,utmt:null,utms:null,utmn:null,utmcc:null,utme:null,utmni:null,utmu:null,utmp:null,utmdt:null,utmcs:null,
utmr:null,utmip:null,utmul:null,utmfl:null,utmje:null,utmsc:null,utmsr:null,__utma:null,utmhid:null,__utmb:null,__utmc:null,utmipc:null,utmipn:null,utmipr:null,utmiqt:null,utmiva:null,utmtid:null,utmtst:null,utmtto:null,utmttx:null,utmtsp:null,utmtci:null,utmtrg:null,utmtco:null,utmcn:null,utmcr:null,utmcid:null,utmcsr:null,utmgclid:null,utmdclid:null,utmccn:null,utmcmd:null,utmctr:null,utmcct:null,utmcvr:null,__utmz:null,utmsn:null,utmsa:null,utmsid:null,__utmx:null,__utmv:null,toHashTable:function(){for(var a=
new w,b=0,c=da.getInstanceFields(fa);b<c.length;){var d=c[b];++b;if("_"!=d.charAt(0)&&!M.isFunction(M.field(this,d))){var e=M.field(this,d);null!=m[d]?a.setReserved(d,e):a.h[d]=e}}return a},toQueryString:function(){for(var a="",b=0,c=da.getInstanceFields(fa);b<c.length;){var d=c[b];++b;"_"==d.charAt(0)||M.isFunction(M.field(this,d))||null==M.field(this,d)||"null"==M.field(this,d)||(a+=d+"="+z.replace(L.string(M.field(this,d))+"","&","%26")+"&")}return a},__class__:fa};var E=function(){};E.__name__=
["googleAnalytics","internals","Util"];E.encodeUriComponent=function(a){return E.convertToUriComponentEncoding(encodeURIComponent(a))};E.stringReplaceArray=function(a,b,c){for(var d=0,e=b.length;d<e;){var f=d++;null!=b[f]&&(a=z.replace(a+" ",b[f],c[f]))}return z.trim(a)};E.parseInt=function(a,b){return null==a?b:L.parseInt(a)};E.convertToUriComponentEncoding=function(a){return E.stringReplaceArray(a,"!*'() +".split(""),"%21 %2A %27 %28 %29 %20 %20".split(" "))};E.generate32bitRandom=function(){return Math.round(2147483647*
Math.random())};E.generateHash=function(a){var b=1;if(null!=a&&""!=a){b=0;for(var c=a.length-1;0<=c;){var d=u.cca(a,c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;0!=d&&(b^=d>>21);--c}}return b};var U=function(){this.projectData=new w;this.KEY="k";this.VALUE="v";this.SET=["k","v"];this.DELIM_BEGIN="(";this.DELIM_END=")";this.DELIM_SET="*";this.DELIM_NUM_VALUE="!";this.MINIMUM=1;var a=this.ESCAPE_CHAR_MAP=new w;null!=m["'"]?a.setReserved("'","'0"):a.h["'"]="'0";a=this.ESCAPE_CHAR_MAP;null!=m[")"]?a.setReserved(")",
"'1"):a.h[")"]="'1";a=this.ESCAPE_CHAR_MAP;null!=m["*"]?a.setReserved("*","'2"):a.h["*"]="'2";a=this.ESCAPE_CHAR_MAP;null!=m["!"]?a.setReserved("!","'3"):a.h["!"]="'3"};U.__name__=["googleAnalytics","internals","X10"];U.prototype={projectData:null,KEY:null,VALUE:null,SET:null,DELIM_BEGIN:null,DELIM_END:null,DELIM_SET:null,DELIM_NUM_VALUE:null,ESCAPE_CHAR_MAP:null,MINIMUM:null,hasProject:function(a){var b=this.projectData;return null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},setKey:function(a,
b,c){this.setInternal(a,this.KEY,b,c)},getKey:function(a,b){return this.getInternal(a,this.KEY,b)},clearKey:function(a){this.clearInternal(a,this.KEY)},setValue:function(a,b,c){this.setInternal(a,this.VALUE,b,c)},getValue:function(a,b){return this.getInternal(a,this.VALUE,b)},clearValue:function(a){this.clearInternal(a,this.VALUE)},setInternal:function(a,b,c,d){var e=this.projectData;if(null!=m[a]?!e.existsReserved(a):!e.h.hasOwnProperty(a)){e=this.projectData;var f=new w;null!=m[a]?e.setReserved(a,
f):e.h[a]=f}e=this.projectData;a=null!=m[a]?e.getReserved(a):e.h[a];(null!=m[b]?a.existsReserved(b):a.h.hasOwnProperty(b))||(e=[],null!=m[b]?a.setReserved(b,e):a.h[b]=e);(null!=m[b]?a.getReserved(b):a.h[b])[c]=d},getInternal:function(a,b,c){var d=this.projectData;if(null!=m[a]?!d.existsReserved(a):!d.h.hasOwnProperty(a))return null;d=this.projectData;a=null!=m[a]?d.getReserved(a):d.h[a];if(null!=m[b]?!a.existsReserved(b):!a.h.hasOwnProperty(b))return null;b=null!=m[b]?a.getReserved(b):a.h[b];return null==
b[c]?null:b[c]},clearInternal:function(a,b){var c=this.projectData;(null!=m[a]?c.existsReserved(a):c.h.hasOwnProperty(a))?(c=this.projectData,c=null!=m[a]?c.getReserved(a):c.h[a],c=null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b)):c=!1;c&&(c=this.projectData,(null!=m[a]?c.getReserved(a):c.h[a]).remove(b))},escapeExtensibleValue:function(a){for(var b="",c=0,d=a.length;c<d;){var e=c++;e=a.charAt(e);var f=this.ESCAPE_CHAR_MAP;(null!=m[e]?f.existsReserved(e):f.h.hasOwnProperty(e))?(f=this.ESCAPE_CHAR_MAP,
b+=null!=m[e]?f.getReserved(e):f.h[e]):b+=e}return b},SORT_NUMERIC:function(a,b){return a==b?0:a>b?1:-1},renderDataType:function(a){for(var b=[],c=0,d=0,e=a.length;d<e;){var f=d++,g=a[f];if(null!=g){var h="";f!=this.MINIMUM&&f-1!=c&&(h+=f,h+=this.DELIM_NUM_VALUE);h+=this.escapeExtensibleValue(g);b.push(h)}c=f}return this.DELIM_BEGIN+b.join(this.DELIM_SET)+this.DELIM_END},renderProject:function(a){for(var b="",c=!1,d=0,e=this.SET.length;d<e;){var f=d++,g=this.SET[f];(null!=m[g]?a.existsReserved(g):
a.h.hasOwnProperty(g))?(c&&(b+=this.SET[f]),c=this.SET[f],b+=this.renderDataType(null!=m[c]?a.getReserved(c):a.h[c]),c=!1):c=!0}return b},renderUrlString:function(){for(var a="",b=this.projectData.keys();b.hasNext();){var c=b.next(),d=this.projectData;a+=c+this.renderProject(null!=m[c]?d.getReserved(c):d.h[c])}return a},__class__:U};var A=function(a){this.setConfig(null!=a?a:new S)};A.__name__=["googleAnalytics","internals","request","Request"];A.onError=function(a){};A.prototype={type:null,config:null,
userAgent:null,tracker:null,visitor:null,session:null,getConfig:function(){return this.config},setConfig:function(a){this.config=a},setUserAgent:function(a){this.userAgent=a},getTracker:function(){return this.tracker},setTracker:function(a){this.tracker=a},getVisitor:function(){return this.visitor},setVisitor:function(a){this.visitor=a},getSession:function(){return this.session},setSession:function(a){this.session=a},increaseTrackCount:function(){this.session.increaseTrackCount();500<this.session.getTrackCount()&&
D._raiseError("Google Analytics does not guarantee to process more than 500 requests per session.","Request.buildHttpRequest");null!=this.tracker.getCampaign()&&this.tracker.getCampaign().increaseResponseCount()},send:function(){if(null!=this.config.getEndPointHost()){var a=this.buildParameters();null!=this.visitor&&(this.setUserAgent(this.visitor.getUserAgent()),a.utmvid=this.visitor.getUniqueId());a=E.convertToUriComponentEncoding(a.toQueryString());a=this.config.getUrlScheme()+"://"+this.config.getEndPointHost()+
this.config.getEndPointPath()+"?"+a;this.increaseTrackCount();(new Image).src=a}},getType:function(){return null},buildParameters:function(){var a=new fa;a.utmac=this.tracker.getAccountId();a.utmhn=this.tracker.getDomainName();a.utmt=""+this.getType();a.utmn=E.generate32bitRandom();a.utmip=this.visitor.getIpAddress();a.utmhid=this.session.getSessionId();a.utms=this.session.getTrackCount();a=this.buildVisitorParameters(a);a=this.buildCustomVariablesParameter(a);a=this.buildCampaignParameters(a);return a=
this.buildCookieParameters(a)},buildVisitorParameters:function(a){null!=this.visitor.getLocale()&&(a.utmul=z.replace(this.visitor.getLocale(),"_","-").toLowerCase());null!=this.visitor.getFlashVersion()&&(a.utmfl=this.visitor.getFlashVersion());a.utmje=this.visitor.getJavaEnabled()?"1":"0";null!=this.visitor.getScreenColorDepth()&&(a.utmsc=this.visitor.getScreenColorDepth()+"-bit");a.utmsr=this.visitor.getScreenResolution();return a},buildCustomVariablesParameter:function(a){var b=this.tracker.getCustomVariables();
if(null==b)return a;5<b.length&&D._raiseError("The sum of all custom variables cannot exceed 5 in any given request.","Request.buildCustomVariablesParameter");var c=new U;c.clearKey("8");c.clearKey("9");c.clearKey("11");for(var d=0;d<b.length;){var e=b[d];++d;var f=E.encodeUriComponent(e.getName());var g=E.encodeUriComponent(e.getValue());c.setKey("8",e.getIndex(),f);c.setKey("9",e.getIndex(),g);3!=e.getScope()&&c.setKey("11",e.getIndex(),e.getScope())}b=c.renderUrlString();null!=b&&(a.utme=null==
a.utme?b:a.utme+b);return a},buildCookieParameters:function(a){var b=this.generateDomainHash();a.__utma=b+".";a.__utma+=this.visitor.getUniqueId()+".";a.__utma+=this.visitor.getFirstVisitTime().toString()+".";a.__utma+=this.visitor.getPreviousVisitTime().toString()+".";a.__utma+=this.visitor.getCurrentVisitTime().toString()+".";a.__utma+=this.visitor.getVisitCount();a.__utmb=b+".";a.__utmb+=this.session.getTrackCount()+".";a.__utmb+="10.";a.__utmb+=this.session.getStartTime().toString();a.__utmc=
b;b="__utma="+a.__utma+";";null!=a.__utmz&&(b+="+__utmz="+a.__utmz+";");null!=a.__utmv&&(b+="+__utmv="+a.__utmv+";");a.utmcc=b;return a},buildCampaignParameters:function(a){var b=this.tracker.getCampaign();if(null==b)return a;a.__utmz=this.generateDomainHash()+".";a.__utmz+=b.getCreationTime().toString()+".";a.__utmz+=this.visitor.getVisitCount()+".";a.__utmz+=b.getResponseCount()+".";b="utmcid="+b.getId()+"|utmcsr="+b.getSource()+"|utmgclid="+b.getGClickId()+"|utmdclid="+b.getDClickId()+"|utmccn="+
b.getName()+"|utmcmd="+b.getMedium()+"|utmctr="+b.getTerm()+"|utmcct="+b.getContent();a.__utmz+=z.replace(z.replace(b,"+","%20")," ","%20");return a},generateDomainHash:function(){var a=1;this.tracker.getAllowHash()&&(a=E.generateHash(this.tracker.getDomainName()));return a},__class__:A};var ea=function(a){A.call(this,a)};ea.__name__=["googleAnalytics","internals","request","EventRequest"];ea.__super__=A;ea.prototype=p(A.prototype,{event:null,getType:function(){return"event"},buildParameters:function(){var a=
A.prototype.buildParameters.call(this),b=new U;b.clearKey("5");b.clearValue("5");b.setKey("5",1,this.event.getCategory());b.setKey("5",2,this.event.getAction());null!=this.event.getLabel()&&b.setKey("5",3,this.event.getLabel());0!=this.event.getValue()&&b.setValue("5",1,this.event.getValue());b=b.renderUrlString();null!=b&&(a.utme=null==a.utme?b:a.utme+b);this.event.getNoninteraction()&&(a.utmni=1);return a},getEvent:function(){return this.event},setEvent:function(a){this.event=a},__class__:ea});
var ra=function(a){A.call(this,a)};ra.__name__=["googleAnalytics","internals","request","ItemRequest"];ra.__super__=A;ra.prototype=p(A.prototype,{item:null,getType:function(){return"item"},buildParameters:function(){var a=A.prototype.buildParameters.call(this);a.utmtid=this.item.getOrderId();a.utmipc=this.item.getSku();a.utmipn=this.item.getName();a.utmiva=this.item.getVariation();a.utmipr=this.item.getPrice();a.utmiqt=this.item.getQuantity();return a},buildVisitorParameters:function(a){return a},
buildCustomVariablesParameter:function(a){return a},getItem:function(){return this.item},setItem:function(a){this.item=a},__class__:ra});var Y=function(a){A.call(this,a)};Y.__name__=["googleAnalytics","internals","request","PageviewRequest"];Y.__super__=A;Y.prototype=p(A.prototype,{page:null,getType:function(){return null},buildParameters:function(){var a=A.prototype.buildParameters.call(this);a.utmp=this.page.getPath();a.utmdt=this.page.getTitle();null!=this.page.getCharset()&&(a.utmcs=this.page.getCharset());
null!=this.page.getReferrer()&&(a.utmr=this.page.getReferrer());0!=this.page.getLoadTime()&&a.utmn%100<this.config.getSitespeedSampleRate()&&(a.utme=null==a.utme?"0":a.utme+0);return a},getPage:function(){return this.page},setPage:function(a){this.page=a},__class__:Y});var sa=function(a){A.call(this,a)};sa.__name__=["googleAnalytics","internals","request","SocialInteractionRequest"];sa.__super__=Y;sa.prototype=p(Y.prototype,{socialInteraction:null,getType:function(){return"social"},buildParameters:function(){var a=
Y.prototype.buildParameters.call(this);a.utmsn=this.socialInteraction.getNetwork();a.utmsa=this.socialInteraction.getAction();a.utmsid=this.socialInteraction.getTarget();null==a.utmsid&&(a.utmsid=this.page.getPath());return a},getSocialInteraction:function(){return this.socialInteraction},setSocialInteraction:function(a){this.socialInteraction=a},__class__:sa});var qa=function(a){A.call(this,a)};qa.__name__=["googleAnalytics","internals","request","TransactionRequest"];qa.__super__=A;qa.prototype=
p(A.prototype,{transaction:null,getType:function(){return"tran"},buildParameters:function(){var a=A.prototype.buildParameters.call(this);a.utmtid=this.transaction.getOrderId();a.utmtst=this.transaction.getAffiliation();a.utmtto=this.transaction.getTotal();a.utmttx=this.transaction.getTax();a.utmtsp=this.transaction.getShipping();a.utmtci=this.transaction.getCity();a.utmtrg=this.transaction.getRegion();a.utmtco=this.transaction.getCountry();return a},buildVisitorParameters:function(a){return a},buildCustomVariablesParameter:function(a){return a},
getTransaction:function(){return this.transaction},setTransaction:function(a){this.transaction=a},__class__:qa});var bb=function(){};bb.__name__=["haxe","IMap"];var ha=function(a){this.url=a;this.headers=new J;this.params=new J;this.async=!0;this.withCredentials=!1};ha.__name__=["haxe","Http"];ha.prototype={url:null,responseData:null,async:null,withCredentials:null,postData:null,headers:null,params:null,setParameter:function(a,b){this.params=P.filter(this.params,function(b){return b.param!=a});this.params.push({param:a,
value:b});return this},req:null,request:function(a){var b=this;b.responseData=null;var c=this.req=Za.createXMLHttpRequest(),d=function(a){if(4==c.readyState){try{var d=c.status}catch(n){d=null}null!=d&&"undefined"!==typeof window&&(a=window.location.protocol.toLowerCase(),(new I("^(?:about|app|app-storage|.+-extension|file|res|widget):$","")).match(a)&&(d=null!=c.responseText?200:404));void 0==d&&(d=null);if(null!=d)b.onStatus(d);if(null!=d&&200<=d&&400>d)b.req=null,b.onData(b.responseData=c.responseText);
else if(null==d)b.req=null,b.onError("Failed to connect or resolve host");else switch(d){case 12007:b.req=null;b.onError("Unknown host");break;case 12029:b.req=null;b.onError("Failed to connect to host");break;default:b.req=null,b.responseData=c.responseText,b.onError("Http Error #"+c.status)}}};this.async&&(c.onreadystatechange=d);var e=this.postData;if(null!=e)a=!0;else for(var f=this.params.h;null!=f;){var g=f.item;f=f.next;e=null==e?"":e+"&";var h=encodeURIComponent(g.param)+"=";e+=h+encodeURIComponent(g.value)}try{if(a)c.open("POST",
this.url,this.async);else if(null!=e){var k=1>=this.url.split("?").length;c.open("GET",this.url+(k?"?":"&")+e,this.async);e=null}else c.open("GET",this.url,this.async)}catch(Wa){Wa instanceof r&&(Wa=Wa.val);b.req=null;this.onError(Wa.toString());return}c.withCredentials=this.withCredentials;!P.exists(this.headers,function(a){return"Content-Type"==a.header})&&a&&null==this.postData&&c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(a=this.headers.h;null!=a;)f=a.item,a=a.next,
c.setRequestHeader(f.header,f.value);c.send(e);this.async||d(null)},onData:function(a){},onError:function(a){},onStatus:function(a){},__class__:ha};var O=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};O.__name__=["haxe","Timer"];O.delay=function(a,b){var c=new O(b);c.run=function(){c.stop();a()};return c};O.prototype={id:null,stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:O};var Z=function(){};Z.__name__=["haxe","crypto","Md5"];
Z.encode=function(a){var b=new Z;a=b.doEncode(Z.str2blks(a));return b.hex(a)};Z.str2blks=function(a){var b=ia.ofString(a),c=(b.length+8>>6)+1;a=[];for(var d=0,e=16*c;d<e;){var f=d++;a[f]=0}e=0;f=b.length;for(d=8*f;e<f;)a[e>>2]|=b.b[e]<<(d+e)%4*8,++e;a[e>>2]|=128<<(d+e)%4*8;b=16*c-2;a[b]=d&255;a[b]|=(d>>>8&255)<<8;a[b]|=(d>>>16&255)<<16;a[b]|=(d>>>24&255)<<24;return a};Z.prototype={bitOR:function(a,b){return(a>>>1|b>>>1)<<1|a&1|b&1},bitXOR:function(a,b){return(a>>>1^b>>>1)<<1|a&1^b&1},bitAND:function(a,
b){return(a>>>1&b>>>1)<<1|a&1&b&1},addme:function(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535},hex:function(a){for(var b="",c=0;c<a.length;){var d=a[c];++c;for(var e=0;4>e;){var f=e++;b+="0123456789abcdef".charAt(d>>8*f+4&15)+"0123456789abcdef".charAt(d>>8*f&15)}}return b},rol:function(a,b){return a<<b|a>>>32-b},cmn:function(a,b,c,d,e,f){return this.addme(this.rol(this.addme(this.addme(b,a),this.addme(d,f)),e),c)},ff:function(a,b,c,d,e,f,g){return this.cmn(this.bitOR(this.bitAND(b,
c),this.bitAND(~b,d)),a,b,e,f,g)},gg:function(a,b,c,d,e,f,g){return this.cmn(this.bitOR(this.bitAND(b,d),this.bitAND(c,~d)),a,b,e,f,g)},hh:function(a,b,c,d,e,f,g){return this.cmn(this.bitXOR(this.bitXOR(b,c),d),a,b,e,f,g)},ii:function(a,b,c,d,e,f,g){return this.cmn(this.bitXOR(c,this.bitOR(b,~d)),a,b,e,f,g)},doEncode:function(a){for(var b=1732584193,c=-271733879,d=-1732584194,e=271733878,f=0;f<a.length;){var g=b,h=c,k=d,m=e;b=this.ff(b,c,d,e,a[f],7,-680876936);e=this.ff(e,b,c,d,a[f+1],12,-389564586);
d=this.ff(d,e,b,c,a[f+2],17,606105819);c=this.ff(c,d,e,b,a[f+3],22,-1044525330);b=this.ff(b,c,d,e,a[f+4],7,-176418897);e=this.ff(e,b,c,d,a[f+5],12,1200080426);d=this.ff(d,e,b,c,a[f+6],17,-1473231341);c=this.ff(c,d,e,b,a[f+7],22,-45705983);b=this.ff(b,c,d,e,a[f+8],7,1770035416);e=this.ff(e,b,c,d,a[f+9],12,-1958414417);d=this.ff(d,e,b,c,a[f+10],17,-42063);c=this.ff(c,d,e,b,a[f+11],22,-1990404162);b=this.ff(b,c,d,e,a[f+12],7,1804603682);e=this.ff(e,b,c,d,a[f+13],12,-40341101);d=this.ff(d,e,b,c,a[f+14],
17,-1502002290);c=this.ff(c,d,e,b,a[f+15],22,1236535329);b=this.gg(b,c,d,e,a[f+1],5,-165796510);e=this.gg(e,b,c,d,a[f+6],9,-1069501632);d=this.gg(d,e,b,c,a[f+11],14,643717713);c=this.gg(c,d,e,b,a[f],20,-373897302);b=this.gg(b,c,d,e,a[f+5],5,-701558691);e=this.gg(e,b,c,d,a[f+10],9,38016083);d=this.gg(d,e,b,c,a[f+15],14,-660478335);c=this.gg(c,d,e,b,a[f+4],20,-405537848);b=this.gg(b,c,d,e,a[f+9],5,568446438);e=this.gg(e,b,c,d,a[f+14],9,-1019803690);d=this.gg(d,e,b,c,a[f+3],14,-187363961);c=this.gg(c,
d,e,b,a[f+8],20,1163531501);b=this.gg(b,c,d,e,a[f+13],5,-1444681467);e=this.gg(e,b,c,d,a[f+2],9,-51403784);d=this.gg(d,e,b,c,a[f+7],14,1735328473);c=this.gg(c,d,e,b,a[f+12],20,-1926607734);b=this.hh(b,c,d,e,a[f+5],4,-378558);e=this.hh(e,b,c,d,a[f+8],11,-2022574463);d=this.hh(d,e,b,c,a[f+11],16,1839030562);c=this.hh(c,d,e,b,a[f+14],23,-35309556);b=this.hh(b,c,d,e,a[f+1],4,-1530992060);e=this.hh(e,b,c,d,a[f+4],11,1272893353);d=this.hh(d,e,b,c,a[f+7],16,-155497632);c=this.hh(c,d,e,b,a[f+10],23,-1094730640);
b=this.hh(b,c,d,e,a[f+13],4,681279174);e=this.hh(e,b,c,d,a[f],11,-358537222);d=this.hh(d,e,b,c,a[f+3],16,-722521979);c=this.hh(c,d,e,b,a[f+6],23,76029189);b=this.hh(b,c,d,e,a[f+9],4,-640364487);e=this.hh(e,b,c,d,a[f+12],11,-421815835);d=this.hh(d,e,b,c,a[f+15],16,530742520);c=this.hh(c,d,e,b,a[f+2],23,-995338651);b=this.ii(b,c,d,e,a[f],6,-198630844);e=this.ii(e,b,c,d,a[f+7],10,1126891415);d=this.ii(d,e,b,c,a[f+14],15,-1416354905);c=this.ii(c,d,e,b,a[f+5],21,-57434055);b=this.ii(b,c,d,e,a[f+12],6,
1700485571);e=this.ii(e,b,c,d,a[f+3],10,-1894986606);d=this.ii(d,e,b,c,a[f+10],15,-1051523);c=this.ii(c,d,e,b,a[f+1],21,-2054922799);b=this.ii(b,c,d,e,a[f+8],6,1873313359);e=this.ii(e,b,c,d,a[f+15],10,-30611744);d=this.ii(d,e,b,c,a[f+6],15,-1560198380);c=this.ii(c,d,e,b,a[f+13],21,1309151649);b=this.ii(b,c,d,e,a[f+4],6,-145523070);e=this.ii(e,b,c,d,a[f+11],10,-1120210379);d=this.ii(d,e,b,c,a[f+2],15,718787259);c=this.ii(c,d,e,b,a[f+9],21,-343485551);b=this.addme(b,g);c=this.addme(c,h);d=this.addme(d,
k);e=this.addme(e,m);f+=16}return[b,c,d,e]},__class__:Z};var Va=function(a,b){this.map=a;this.keys=b;this.index=0;this.count=b.length};Va.__name__=["haxe","ds","_StringMap","StringMapIterator"];Va.prototype={map:null,keys:null,index:null,count:null,hasNext:function(){return this.index<this.count},next:function(){var a=this.map,b=this.keys[this.index++];return null!=m[b]?a.getReserved(b):a.h[b]},__class__:Va};var w=function(){this.h={}};w.__name__=["haxe","ds","StringMap"];w.__interfaces__=[bb];w.prototype=
{h:null,rh:null,setReserved:function(a,b){null==this.rh&&(this.rh={});this.rh["$"+a]=b},getReserved:function(a){return null==this.rh?null:this.rh["$"+a]},existsReserved:function(a){return null==this.rh?!1:this.rh.hasOwnProperty("$"+a)},remove:function(a){if(null!=m[a]){a="$"+a;if(null==this.rh||!this.rh.hasOwnProperty(a))return!1;delete this.rh[a]}else{if(!this.h.hasOwnProperty(a))return!1;delete this.h[a]}return!0},keys:function(){return u.iter(this.arrayKeys())},arrayKeys:function(){var a=[],b;
for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b);if(null!=this.rh)for(b in this.rh)36==b.charCodeAt(0)&&a.push(b.substr(1));return a},__class__:w};var ia=function(a){this.length=a.byteLength;this.b=new Xa(a);this.b.bufferValue=a;a.hxBytes=this;a.bytes=this.b};ia.__name__=["haxe","io","Bytes"];ia.ofString=function(a){for(var b=[],c=0;c<a.length;){var d=a.charCodeAt(c++);55296<=d&&56319>=d&&(d=d-55232<<10|a.charCodeAt(c++)&1023);127>=d?b.push(d):(2047>=d?b.push(192|d>>6):(65535>=d?b.push(224|d>>
12):(b.push(240|d>>18),b.push(128|d>>12&63)),b.push(128|d>>6&63)),b.push(128|d&63))}return new ia((new Xa(b)).buffer)};ia.prototype={length:null,b:null,__class__:ia};var F=function(a,b,c){this.xml=b;this.message=a;this.position=c;this.lineNumber=1;for(a=this.positionAtLine=0;a<c;){var d=a++;d=b.charCodeAt(d);10==d?(this.lineNumber++,this.positionAtLine=0):13!=d&&this.positionAtLine++}};F.__name__=["haxe","xml","XmlParserException"];F.prototype={message:null,lineNumber:null,positionAtLine:null,position:null,
xml:null,toString:function(){return da.getClassName(C.getClass(this))+": "+this.message+" at line "+this.lineNumber+" char "+this.positionAtLine},__class__:F};var R=function(){};R.__name__=["haxe","xml","Parser"];R.parse=function(a,b){null==b&&(b=!1);var c=h.createDocument();R.doParse(a,b,0,c);return c};R.doParse=function(a,b,c,d){null==c&&(c=0);for(var e=null,f=1,g=1,k=null,q=0,p=0,t=0,n=a.charCodeAt(c),l=new X,y=1,v=-1;n==n;){switch(f){case 0:switch(n){case 9:case 10:case 13:case 32:break;default:f=
g;continue}break;case 1:if(60==n)f=0,g=2;else{q=c;f=13;continue}break;case 2:switch(n){case 33:if(91==a.charCodeAt(c+1)){c+=2;if("CDATA["!=u.substr(a,c,6).toUpperCase())throw new r(new F("Expected <![CDATA[",a,c));c+=5;f=17}else if(68==a.charCodeAt(c+1)||100==a.charCodeAt(c+1)){if("OCTYPE"!=u.substr(a,c+2,6).toUpperCase())throw new r(new F("Expected <!DOCTYPE",a,c));c+=8;f=16}else{if(45!=a.charCodeAt(c+1)||45!=a.charCodeAt(c+2))throw new r(new F("Expected \x3c!--",a,c));c+=2;f=15}q=c+1;break;case 47:if(null==
d)throw new r(new F("Expected node name",a,c));q=c+1;f=0;g=10;break;case 63:f=14;q=c;break;default:f=3;q=c;continue}break;case 3:if(!(97<=n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)){if(c==q)throw new r(new F("Expected node name",a,c));e=h.createElement(u.substr(a,q,c-q));d.addChild(e);++p;f=0;g=4;continue}break;case 4:switch(n){case 47:f=11;break;case 62:f=9;break;default:f=5;q=c;continue}break;case 5:if(!(97<=n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==
n)){if(q==c)throw new r(new F("Expected attribute name",a,c));k=u.substr(a,q,c-q);if(e.exists(k))throw new r(new F("Duplicate attribute ["+k+"]",a,c));f=0;g=6;continue}break;case 6:if(61==n)f=0,g=7;else throw new r(new F("Expected =",a,c));break;case 7:switch(n){case 34:case 39:l=new X;f=8;q=c+1;v=n;break;default:throw new r(new F('Expected "',a,c));}break;case 8:switch(n){case 38:y=c-q;l.b+=null==y?u.substr(a,q,null):u.substr(a,q,y);f=18;y=8;q=c+1;break;case 60:case 62:if(b)throw new r(new F("Invalid unescaped "+
String.fromCharCode(n)+" in attribute value",a,c));n==v&&(g=c-q,l.b+=null==g?u.substr(a,q,null):u.substr(a,q,g),g=l.b,l=new X,e.set(k,g),f=0,g=4);break;default:n==v&&(g=c-q,l.b+=null==g?u.substr(a,q,null):u.substr(a,q,g),g=l.b,l=new X,e.set(k,g),f=0,g=4)}break;case 9:q=c=R.doParse(a,b,c,e);f=1;break;case 10:if(!(97<=n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)){if(q==c)throw new r(new F("Expected node name",a,c));g=u.substr(a,q,c-q);if(d.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+
d.nodeType);if(g!=d.nodeName){if(d.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+d.nodeType);throw new r(new F("Expected </"+d.nodeName+">",a,c));}f=0;g=12;continue}break;case 11:if(62==n)f=1;else throw new r(new F("Expected >",a,c));break;case 12:if(62==n)return 0==p&&d.addChild(h.createPCData("")),c;throw new r(new F("Expected >",a,c));case 13:60==n?(g=c-q,l.b+=null==g?u.substr(a,q,null):u.substr(a,q,g),g=h.createPCData(l.b),l=new X,d.addChild(g),++p,f=0,g=2):38==
n&&(y=c-q,l.b+=null==y?u.substr(a,q,null):u.substr(a,q,y),f=18,y=13,q=c+1);break;case 14:63==n&&62==a.charCodeAt(c+1)&&(++c,n=u.substr(a,q+1,c-q-2),d.addChild(h.createProcessingInstruction(n)),++p,f=1);break;case 15:45==n&&45==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(d.addChild(h.createComment(u.substr(a,q,c-q))),++p,c+=2,f=1);break;case 16:91==n?++t:93==n?--t:62==n&&0==t&&(d.addChild(h.createDocType(u.substr(a,q,c-q))),++p,f=1);break;case 17:93==n&&93==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&
(n=h.createCData(u.substr(a,q,c-q)),d.addChild(n),++p,c+=2,f=1);break;case 18:if(59==n){q=u.substr(a,q,c-q);if(35==q.charCodeAt(0))q=120==q.charCodeAt(1)?L.parseInt("0"+u.substr(q,1,q.length-1)):L.parseInt(u.substr(q,1,q.length-1)),l.b+=String.fromCharCode(q);else if(n=R.escapes,null!=m[q]?n.existsReserved(q):n.h.hasOwnProperty(q))n=R.escapes,q=null!=m[q]?n.getReserved(q):n.h[q],l.b+=L.string(q);else{if(b)throw new r(new F("Undefined entity: "+q,a,c));l.b+=L.string("&"+q+";")}q=c+1;f=y}else if(!(97<=
n&&122>=n||65<=n&&90>=n||48<=n&&57>=n||58==n||46==n||95==n||45==n)&&35!=n){if(b)throw new r(new F("Invalid character in entity: "+String.fromCharCode(n),a,c));l.b+="&";n=c-q;l.b+=null==n?u.substr(a,q,null):u.substr(a,q,n);q=c--;f=y}}n=a.charCodeAt(++c)}1==f&&(q=c,f=13);if(13==f){if(c!=q||0==p)b=c-q,l.b+=null==b?u.substr(a,q,null):u.substr(a,q,b),d.addChild(h.createPCData(l.b));return c}if(!b&&18==f&&13==y)return l.b+="&",b=c-q,l.b+=null==b?u.substr(a,q,null):u.substr(a,q,b),d.addChild(h.createPCData(l.b)),
c;throw new r(new F("Unexpected end",a,c));};var r=function(a){Error.call(this);this.val=a;this.message=String(a);Error.captureStackTrace&&Error.captureStackTrace(this,r)};r.__name__=["js","_Boot","HaxeError"];r.wrap=function(a){return a instanceof Error?a:new r(a)};r.__super__=Error;r.prototype=p(Error.prototype,{val:null,__class__:r});var C=function(){};C.__name__=["js","Boot"];C.getClass=function(a){if(a instanceof Array&&null==a.__enum__)return Array;var b=a.__class__;if(null!=b)return b;a=C.__nativeClassName(a);
return null!=a?C.__resolveNativeClass(a):null};C.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var c=typeof a;"function"==c&&(a.__name__||a.__ename__)&&(c="object");switch(c){case "function":return"<function>";case "object":if(a instanceof Array){if(a.__enum__){if(2==a.length)return a[0];c=a[0]+"(";b+="\t";for(var d=2,e=a.length;d<e;){var f=d++;c=2!=f?c+(","+C.__string_rec(a[f],b)):c+C.__string_rec(a[f],b)}return c+")"}c=a.length;d="[";b+="\t";for(e=0;e<c;)f=e++,
d+=(0<f?",":"")+C.__string_rec(a[f],b);return d+"]"}try{d=a.toString}catch(jb){return"???"}if(null!=d&&d!=Object.toString&&"function"==typeof d&&(c=a.toString(),"[object Object]"!=c))return c;c=null;d="{\n";b+="\t";e=null!=a.hasOwnProperty;for(c in a)e&&!a.hasOwnProperty(c)||"prototype"==c||"__class__"==c||"__super__"==c||"__interfaces__"==c||"__properties__"==c||(2!=d.length&&(d+=", \n"),d+=b+c+" : "+C.__string_rec(a[c],b));b=b.substring(1);return d+("\n"+b+"}");case "string":return a;default:return String(a)}};
C.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var d=0,e=c.length;d<e;){var f=d++;f=c[f];if(f==b||C.__interfLoop(f,b))return!0}return C.__interfLoop(a.__super__,b)};C.__instanceof=function(a,b){if(null==b)return!1;switch(b){case Array:return a instanceof Array?null==a.__enum__:!1;case cb:return"boolean"==typeof a;case fb:return!0;case db:return"number"==typeof a;case gb:return"number"==typeof a?(a|0)===a:!1;case String:return"string"==typeof a;
default:if(null!=a)if("function"==typeof b){if(a instanceof b||C.__interfLoop(C.getClass(a),b))return!0}else{if("object"==typeof b&&C.__isNativeObj(b)&&a instanceof b)return!0}else return!1;return b==hb&&null!=a.__name__||b==ib&&null!=a.__ename__?!0:a.__enum__==b}};C.__nativeClassName=function(a){a=C.__toStr.call(a).slice(8,-1);return"Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a};C.__isNativeObj=function(a){return null!=C.__nativeClassName(a)};C.__resolveNativeClass=function(a){return B[a]};
var Za=function(){};Za.__name__=["js","Browser"];Za.createXMLHttpRequest=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)return new ActiveXObject("Microsoft.XMLHTTP");throw new r("Unable to create XMLHttpRequest object.");};var aa=function(){};aa.__name__=["js","Cookie"];aa.set=function(a,b,c,d,e){a=a+"="+encodeURIComponent(b);null!=c&&(c=(new Date).getTime()+1E3*c,a+=";expires="+(new Date(c)).toGMTString());null!=d&&(a+=";path="+d);
null!=e&&(a+=";domain="+e);window.document.cookie=a};aa.all=function(){for(var a=new w,b=window.document.cookie.split(";"),c=0;c<b.length;){var d=b[c];++c;d=z.ltrim(d);var e=d.split("=");2>e.length||(d=e[0],e=decodeURIComponent(e[1].split("+").join(" ")),null!=m[d]?a.setReserved(d,e):a.h[d]=e)}return a};aa.exists=function(a){var b=aa.all();return null!=m[a]?b.existsReserved(a):b.h.hasOwnProperty(a)};var N=function(a){if(a instanceof Array&&null==a.__enum__)this.a=a,this.byteLength=a.length;else{this.a=
[];for(var b=0;b<a;){var c=b++;this.a[c]=0}this.byteLength=a}};N.__name__=["js","html","compat","ArrayBuffer"];N.sliceImpl=function(a,b){a=new Xa(this,a,null==b?null:b-a);b=new $a(a.byteLength);(new Xa(b)).set(a);return b};N.prototype={byteLength:null,a:null,slice:function(a,b){return new N(this.a.slice(a,b))},__class__:N};var V=function(){};V.__name__=["js","html","compat","Uint8Array"];V._new=function(a,b,c){if("number"==typeof a){c=[];for(b=0;b<a;){var d=b++;c[d]=0}c.byteLength=c.length;c.byteOffset=
0;c.buffer=new N(c)}else if(C.__instanceof(a,N))null==b&&(b=0),null==c&&(c=a.byteLength-b),c=0==b?a.a:a.a.slice(b,b+c),c.byteLength=c.length,c.byteOffset=b,c.buffer=a;else if(a instanceof Array&&null==a.__enum__)c=a.slice(),c.byteLength=c.length,c.byteOffset=0,c.buffer=new N(c);else throw new r("TODO "+L.string(a));c.subarray=V._subarray;c.set=V._set;return c};V._set=function(a,b){if(C.__instanceof(a.buffer,N)){if(a.byteLength+b>this.byteLength)throw new r("set() outside of range");for(var c=0,d=
a.byteLength;c<d;){var e=c++;this[e+b]=a[e]}}else if(a instanceof Array&&null==a.__enum__){if(a.length+b>this.byteLength)throw new r("set() outside of range");c=0;for(d=a.length;c<d;)e=c++,this[e+b]=a[e]}else throw new r("TODO");};V._subarray=function(a,b){b=V._new(this.slice(a,b));b.byteOffset=a;return b};var ta=function(){this.title=this.artist=this.album=this.genre=this.comment=this.encoder=this.year=""};ta.__name__=["muses","AudioMetadata"];ta.prototype={title:null,artist:null,album:null,genre:null,
comment:null,encoder:null,year:null,set:function(a,b){switch(a.toLowerCase()){case "album":this.album=b;break;case "artist":this.artist=b;break;case "encoder":this.encoder=b;break;case "genre":this.genre=b;break;case "title":this.title=b;break;case "year":this.year=b}},getJson:function(){return'{"title":"'+z.replace(this.title,'"',"'")+'","artist":"'+z.replace(this.artist,'"',"'")+'","album":"'+z.replace(this.album,'"',"'")+'","genre":"'+z.replace(this.genre,'"',"'")+'","comment":"'+z.replace(this.comment,
'"',"'")+'","encoder":"'+z.replace(this.encoder,'"',"'")+'","year":"'+z.replace(this.year,'"',"'")+'"}'},__class__:ta};var v=function(){};v.__name__=["muses","ContextMenu"];v.createContainerDiv=function(){if(null==v.container&&(v.container=window.document.getElementById("musesContextMenuContainer"),v.titleDiv=window.document.getElementById("musesContextMenuTitleDiv"),v.aboutDiv=window.document.getElementById("musesContextMenuAboutDiv"),v.versionDiv=window.document.getElementById("musesContextMenuVersionDiv"),
null==v.container)){var a=window.document.createElement("style"),b=window.document.createTextNode("DIV#musesContextMenuContainer{margin:0;padding:0;z-index:2147483647;text-align:left;width:auto;height:auto;background-color:#fff;border: solid #dedede 1px;position:absolute;cursor:default;display:none;font-family:Arial;color:#000;font-size:12px;border-radius:3px;}DIV#musesContextMenuTitleDiv{margin:0;padding:5px;font-weight:bold;color:#b5b5b5;border-bottom:solid #dedede 1px}DIV#musesContextMenuAboutDiv{margin:0;padding:5px;font-weight:bold;}DIV#musesContextMenuAboutDiv:hover{text-decorations:underline;cursor:pointer;background-color:#eee;}DIV#musesContextMenuAboutDiv A {text-decoration:none;color:#555}DIV#musesContextMenuVersionDiv{margin:0;padding:0px 5px 5px 5px;font-size:11px;}");
a.appendChild(b);v.container=window.document.createElement("div");v.titleDiv=window.document.createElement("div");v.aboutDiv=window.document.createElement("div");v.versionDiv=window.document.createElement("div");v.container.classList.add("musesStyleReset");v.container.id="musesContextMenuContainer";v.titleDiv.id="musesContextMenuTitleDiv";v.aboutDiv.id="musesContextMenuAboutDiv";v.versionDiv.id="musesContextMenuVersionDiv";v.container.appendChild(v.titleDiv);v.container.appendChild(v.aboutDiv);v.container.appendChild(v.versionDiv);
window.document.head.appendChild(a);window.document.body.appendChild(v.container)}};v.prepare=function(a){v.createContainerDiv();v.versionDiv.style.textAlign=a.getTextAlign();v.aboutDiv.style.textAlign=a.getTextAlign();var b=a.getText("version")+" ";v.versionDiv.innerHTML=b+"2.3 (html5)";a="<a rel='nofollow' href='https://www.muses.org/' target='_blank'>"+a.getText("about");v.aboutDiv.innerHTML=a+"</a>"};v.hide=function(a){v.displaying&&(v.container.style.display="none",window.document.removeEventListener("click",
v.hide),v.displaying=!1)};v.display=function(a,b,c,d){v.prepare(d);v.displaying||(v.container.style.display="block",window.document.addEventListener("click",v.hide),v.displaying=!0);v.container.style.left=a-3+"px";v.container.style.top=b-3+"px";v.titleDiv.style.textAlign=d.getTextAlign();v.titleDiv.innerHTML=c};var Ya=function(a,b){this.timer=null;this.player=a;null!=b.metadataMode&&(this.metadataMode=b.metadataMode);this.interval=null!=b.metadataInterval?b.metadataInterval:20;null!=b.metadataProxy&&
(this.proxy=b.metadataProxy);""==this.proxy&&(this.proxy=null)};Ya.__name__=["muses","MetadataLoader"];Ya.prototype={player:null,ui:null,interval:null,proxy:null,metadataMode:null,mUrl:null,timer:null,stop:function(){null!=this.timer&&(this.timer.stop(),this.timer=null)},begin:function(){"icecast"!=this.metadataMode&&"streamtheworld"!=this.metadataMode&&"shoutcast"!=this.metadataMode||null!=this.timer||(this.timer=new O(1E3*this.interval),this.timer.run=y(this,this.loop),this.loop())},loop:function(){if(this.player.isPlaying()){switch(this.metadataMode){case "icecast":var a=
this.player.getCurrentUrl().split("?")[0]+".xspf";break;case "shoutcast":a=u.substr(this.player.getCurrentUrl(),0,this.player.getCurrentUrl().indexOf("/",9))+"/7.html";break;case "streamtheworld":a=this.mUrl+"&"+(new Date).getTime();break;default:a=null}null!=this.proxy&&(a=this.proxy+"?url="+z.replace(a,":","%3A"));this.loadMetadata(a)}else this.stop()},loadMetadata:function(a){a=new ha(a);a.onError=y(this,this.onError);switch(this.metadataMode){case "icecast":var b=y(this,this.loadIcecastEvent);
break;case "shoutcast":b=y(this,this.loadShoutcastEvent);break;case "streamtheworld":b=y(this,this.loadStreamTheWorldEvent);break;default:b=null}a.onData=b;a.async=!0;a.request(!1)},onError:function(a){console.log("Metadata Error: "+a)},loadStreamTheWorldEvent:function(a){a=h.parse(a);if(a.nodeType!=h.Document&&a.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+a.nodeType);a=a.children[0];if(a.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+
a.nodeType);if("nowplaying-info-list"==a.nodeName.toLowerCase())for(a=a.elementsNamed("nowplaying-info");a.hasNext();){var b=a.next();a=new ta;for(b=b.elementsNamed("property");b.hasNext();){var c=b.next();if("cue_title"==c.get("name")){if(c.nodeType!=h.Document&&c.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+c.nodeType);var d=c.children[0];if(d.nodeType==h.Document||d.nodeType==h.Element)throw new r("Bad node type, unexpected "+d.nodeType);a.title=d.nodeValue}if("track_artist_name"==
c.get("name")){if(c.nodeType!=h.Document&&c.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+c.nodeType);d=c.children[0];if(d.nodeType==h.Document||d.nodeType==h.Element)throw new r("Bad node type, unexpected "+d.nodeType);a.artist=d.nodeValue}if("cue_time_start"==c.get("name")){if(c.nodeType!=h.Document&&c.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+c.nodeType);c=c.children[0];if(c.nodeType==h.Document||c.nodeType==
h.Element)throw new r("Bad node type, unexpected "+c.nodeType);a.comment=c.nodeValue}}this.player.ui.setMetadata(a);break}},loadShoutcastEvent:function(a){if(null!=a&&""!=a){a=z.replace(a,"<html>","");a=z.replace(a,"</html>","");a=z.replace(a,"<body>","");a=z.replace(a,"</body>","");a=a.split(",");for(var b=a[6],c=7,d=a.length;c<d;){var e=c++;b+=","+a[e]}null!=b&&""!=b&&this.player.ui.setMetadataFromString(z.trim(b))}},loadIcecastEvent:function(a){if(null!=a&&""!=a){var b=h.parse(a).firstElement(),
c=a=null;if(b.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+b.nodeType);if("playlist"==b.nodeName.toLowerCase()){for(b=b.elements();b.hasNext();){var d=b.next();if(d.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+d.nodeType);if("tracklist"==d.nodeName.toLowerCase())for(d=d.elements();d.hasNext();){var e=d.next();if(e.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+e.nodeType);if("track"==e.nodeName.toLowerCase())for(e=
e.elements();e.hasNext();){var f=e.next();if(f.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+f.nodeType);if("title"==f.nodeName.toLowerCase()){if(f.nodeType!=h.Document&&f.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+f.nodeType);a=f.children[0];if(a.nodeType==h.Document||a.nodeType==h.Element)throw new r("Bad node type, unexpected "+a.nodeType);a=a.nodeValue}else{if(null==c){if(f.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+
f.nodeType);var g="creator"==f.nodeName.toLowerCase()}else g=!1;if(g){if(f.nodeType!=h.Document&&f.nodeType!=h.Element)throw new r("Bad node type, expected Element or Document but found "+f.nodeType);c=f.children[0];if(c.nodeType==h.Document||c.nodeType==h.Element)throw new r("Bad node type, unexpected "+c.nodeType);c=c.nodeValue}else{if(f.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+f.nodeType);if("artist"==f.nodeName.toLowerCase()){if(f.nodeType!=h.Document&&f.nodeType!=
h.Element)throw new r("Bad node type, expected Element or Document but found "+f.nodeType);c=f.children[0];if(c.nodeType==h.Document||c.nodeType==h.Element)throw new r("Bad node type, unexpected "+c.nodeType);c=c.nodeValue}}}}}}if(null!=a||null!=c)null==c?this.player.ui.setMetadataFromString(a):(b=new ta,b.title=a,b.artist=c,this.player.ui.setMetadata(b))}}},__class__:Ya};var K=k.muses.Muses=function(a){this.legacyData=new w;this.metadataLoader=null;this.activated=!1;this.lastMessage=null;this.lastVolume=
1;this.src=this.name=null;this.progress=0;this.lastAudioName=null;this.playURL="";this.mustWaitForBuffer=!1;this.playTimeout=this.bufferingTimeout=this.requestedBuffering=0;this.desiredStatus="stop";this.audio=this.lastAudioStatus=this.lastAudioSrc=null;this.playerParams=a;this.src=a.url;this.name=a.title;this.audio=new Audio;this.ui=new G(this,a);null!=a.buffering&&(this.requestedBuffering=a.buffering);this.mustWaitForBuffer=0<this.requestedBuffering;this.metadataLoader=new Ya(this,a);a.autoplay&&
(this.audio.addEventListener("play",y(this,this.activate)),this.playAudio(!1))};K.__name__=["muses","Muses"];K.initTimer=function(a){-1==K.instances.indexOf(a)&&K.instances.push(a);null==K.statusTimer&&(K.statusTimer=new O(500),K.statusTimer.run=function(){for(var a=0,c=K.instances;a<c.length;){var d=c[a];++a;try{d.checkAudioStatus()}catch(e){if(e instanceof r&&(e=e.val),C.__instanceof(e,String))console.log("Error: "+e);else throw e;}}})};K.prototype={audio:null,lastAudioStatus:null,lastAudioSrc:null,
desiredStatus:null,playTimeout:null,bufferingTimeout:null,requestedBuffering:null,mustWaitForBuffer:null,playURL:null,lastAudioName:null,progress:null,src:null,name:null,lastVolume:null,lastMessage:null,activated:null,metadataLoader:null,playerParams:null,ui:null,activate:function(){this.activated||(this.activated=!0,K.initTimer(this),this.metadataLoader.begin(),this.mustWaitForBuffer=0<this.requestedBuffering)},setUrl:function(a){this.src=a},setFallbackUrl:function(a){console.log("Alert! setFallbackUrl not yet implemented on HTML5 version...")},
isPlaying:function(){return"play"==this.desiredStatus},getCurrentUrl:function(){return this.src},playAudio:function(a){null==a&&(a=!0);a&&this.activate();this.stopAudio(!1);this.playURL=this.src;this.desiredStatus="play";this.playTimeout=7200;this.bufferingTimeout=this.requestedBuffering+40;a="?";1<this.src.split("?").length&&(a="&");a=this.src+a;var b=(new Date).getTime();this.audio.src=a+b;this.lastAudioSrc=this.src;this.lastAudioName=this.name;this.lastAudioStatus=null;this.audio.autoplay=!0;this.setVolume(this.lastVolume,
!0);this.audio.play();this.activated&&(this.ui.setPlaying(),this.metadataLoader.begin(),this.mustWaitForBuffer=0<this.requestedBuffering);this.mustWaitForBuffer&&(this.audio.volume=0,0<this.audio.volume&&(this.mustWaitForBuffer=!1));W.track(this.src,this.name,this.ui,!0)},stopAudio:function(a){this.desiredStatus="stop";null!=this.audio&&(this.audio.pause(),this.audio.src="");a&&(this.lastAudioStatus=4,this.metadataLoader.stop())},retryAudio:function(a){null==a&&(a=5E3);var b=this;-1!=this.lastAudioStatus&&
(this.lastAudioStatus=-1,O.delay(function(){-1==b.lastAudioStatus&&b.playAudio()},a))},setVolume:function(a,b){null==b&&(b=!1);this.lastVolume=a;this.mustWaitForBuffer||(this.audio.volume=a,this.lastVolume=this.audio.volume);null!=this.ui&&this.ui.setVolume(this.lastVolume,b)},checkAudioStatus:function(){var a=null;if(null!=this.audio){a=this.audio.networkState;L.string(this.audio.error);if(2==a||1==a)a=2;if(null!=this.audio.error||4==this.lastAudioStatus)a=3;this.mustWaitForBuffer&&0<this.audio.currentTime&&
(2==a&&(a=1),this.audio.currentTime>=this.requestedBuffering&&(this.audio.volume=this.lastVolume,this.mustWaitForBuffer=!1,this.audio.currentTime=0))}0==a?(a="Error al conectar",this.lastMessage!=a&&this.ui.setError()):-1==a?a="retry...":null==a?a="init":1==a?(this.bufferingTimeout--,0==this.bufferingTimeout&&this.retryAudio(),a="Buffering... "+Math.round(this.bufferingTimeout/2),this.lastMessage!=a&&this.ui.setBuffering()):2==a?(this.playTimeout--,0==this.playTimeout&&this.retryAudio(5),a="Playing... ",
this.lastMessage!=a&&(this.ui.setPlaying(),this.reportLegacyPlayer())):4==a||3==a?"play"==this.desiredStatus?(a="Error de red",this.retryAudio(),this.lastMessage!=a&&this.ui.setError()):(a="Stopped.",this.lastMessage!=a&&this.ui.setStopped()):(a="ERROR: "+a,console.log(a));this.lastMessage=a},legacyData:null,reportLegacyPlayer:function(){if(null!=this.src){var a=window.navigator.language;a=null!=a?a.split("-")[0]:"N/A";null==this.playerParams.lang&&(this.playerParams.lang="auto");null==this.playerParams.codec&&
(this.playerParams.codec="auto");null==this.playerParams.title&&(this.playerParams.title="-");null==this.playerParams.welcome&&(this.playerParams.welcome="-");null==this.playerParams.skin&&(this.playerParams.skin="-");var b=window.location.href;null==b&&(b="-");a=JSON.stringify({title:this.playerParams.title,url:this.src,codec:this.playerParams.codec,welcome:this.playerParams.welcome,skin:this.playerParams.skin,playerLang:this.playerParams.lang,listenerLang:a,website:b});b=Z.encode(a);var c=this.legacyData;
(null!=m[b]?c.existsReserved(b):c.h.hasOwnProperty(b))||(c=this.legacyData,null!=m[b]?c.setReserved(b,!0):c.h[b]=!0,aa.exists(b)?console.log("COOKIE EXISTS!"):(aa.set(b,"1",43200),b=new ha("https://www.muses.org/ws/leg rel='nofollow'acyPlayer"),b.onData=function(a){console.log(a)},b.async=!0,b.setParameter("json",a),b.request(!0)))}},__class__:K};var W=function(){};W.__name__=["muses","Tracker"];W.track=function(a,b,c,d){W.enabled&&(null==W.tracked&&(W.tracked=new w,x.init("UA-12297597-3","hosted.muses.org",!0)),
d?(d=W.tracked,d=!(null!=m[a]?d.getReserved(a):d.h[a])):d=!0,d&&(x.trackPageview("/tracker/track.php?version=2.3 (html5)&url="+a+"&player=HTML5&skin="+c.skin,"Muses - HTML5 Tracking [Radio: "+b+"]"),b=W.tracked,null!=m[a]?b.setReserved(a,!0):b.h[a]=!0))};var G=k.muses.UI=function(a,b){this.toggleBuffer=!1;this.lastMetadata=this.lastMetadataJson=null;this.skinFolder=this.baseURL=this.skinDomain="";this.togglePlayStopEnabled=this.lastToggleValue=!1;this.mainDiv=this.playButton=this.stopButton=this.volumeControl=
this.bg=this.statusText=this.artistText=this.songTitleText=this.statusLed=null;this.skin="";var c=this;this.title=b.title;this.skin=b.skin;this.reportEvents=null==b.jsevents?!1:b.jsevents;this.muses=a;this.language=ab.factory(b.lang);v.prepare(this.language);this.mainDiv=window.document.getElementById(b.elementId);this.mainDiv.style.position="relative";this.mainDiv.addEventListener("contextmenu",y(this,this.showContextMenu));this.statusText=new ba(this);this.artistText=new ba(this);this.songTitleText=
new ba(this);this.statusLed=new ua(this);this.volumeControl=new va(this,this.muses);this.volumeControl.setVolume(b.volume/100,!0);this.playButton=new ja(this,"play");this.stopButton=new ja(this,"stop");this.loadSkin(this.skin,function(){c.statusLed.configured&&c.mainDiv.appendChild(c.statusLed.container);c.statusText.configured&&c.mainDiv.appendChild(c.statusText.container);c.artistText.configured&&c.mainDiv.appendChild(c.artistText.container);c.songTitleText.configured&&c.mainDiv.appendChild(c.songTitleText.container);
c.volumeControl.configured&&c.mainDiv.appendChild(c.volumeControl.container);c.mainDiv.appendChild(c.playButton.container);c.mainDiv.appendChild(c.stopButton.container);c.stopButton.container.onclick=function(a){c.muses.stopAudio(!0)};c.playButton.container.onclick=function(a){c.muses.playAudio()};c.showInfo(b.welcome)})};G.__name__=["muses","UI"];G.parseInt=function(a,b){return null==a?b:L.parseInt(a)};G.prototype={skin:null,mainDiv:null,playButton:null,stopButton:null,volumeControl:null,bg:null,
statusText:null,artistText:null,songTitleText:null,statusLed:null,togglePlayStopEnabled:null,lastToggleValue:null,skinFolder:null,baseURL:null,skinDomain:null,title:null,titleTimer:null,muses:null,reportEvents:null,lastMetadata:null,lastMetadataJson:null,language:null,XmlToLower:function(a){for(var b=a.attributes();b.hasNext();){var c=b.next();a.set(c.toLowerCase(),a.get(c))}},enablePlayStopToggle:function(){this.togglePlayStopEnabled=!0;this.togglePlayStop(this.lastToggleValue)},togglePlayStop:function(a){this.lastToggleValue=
a;this.togglePlayStopEnabled&&(this.playButton.setVisible(!a),this.stopButton.setVisible(a))},makeAbsolute:function(a){return-1!=a.indexOf("://")?a:"/"==a.charAt(0)?this.skinDomain+a:this.baseURL+a},getDomainName:function(a){a+="/";var b=a.indexOf("://");return-1==b?"":u.substr(a,0,a.indexOf("/",b+3))},getDirName:function(a){var b=a.lastIndexOf("/");return-1==b?"":u.substr(a,0,b+1)},loadSkin:function(a,b){var c=this,d=new ha(a);d.onData=function(d){c.baseURL=c.getDirName(a);c.skinDomain=c.getDomainName(a);
for(d=h.parse(d).elements();d.hasNext();){var e=d.next();if(e.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+e.nodeType);if("ffmp3-skin"!=e.nodeName.toLowerCase()){if(e.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+e.nodeType);var g="muses-skin"!=e.nodeName.toLowerCase()}else g=!1;if(g)return;c.XmlToLower(e);g=null==e.get("folder")?"":e.get("folder");c.skinFolder=g;(g=null==e.get("toggleplaystop")?!1:"true"==e.get("toggleplaystop"))&&c.enablePlayStopToggle();
0<c.skinFolder.length&&"/"!=c.skinFolder.charAt(c.skinFolder.length-1)&&(c.skinFolder+="/");c.skinFolder=c.makeAbsolute(c.skinFolder);for(e=e.elements();e.hasNext();){g=e.next();c.XmlToLower(g);if(g.nodeType!=h.Element)throw new r("Bad node type, expected Element but found "+g.nodeType);switch(g.nodeName.toLowerCase()){case "artist":c.artistText.configureText(g,c.language.getTextAlign());break;case "bg":c.configureBG(g);break;case "play":c.playButton.configure(g);break;case "songtitle":c.songTitleText.configureText(g,
c.language.getTextAlign());break;case "status":c.statusLed.configure(g);break;case "stop":c.stopButton.configure(g);break;case "text":c.statusText.configureText(g,c.language.getTextAlign());break;case "volume":c.volumeControl.configure(g)}}}b()};d.async=!0;d.request(!1)},loadImage:function(a,b){a.src=this.skinFolder+b;a.style.width="auto";a.style.height="auto"},configureBG:function(a){this.bg=new Image;this.loadImage(this.bg,a.get("image"));this.bg.style.position="absolute";var b=G.parseInt(a.get("x"),
0);this.bg.style.left=b+"px";a=G.parseInt(a.get("y"),0);this.bg.style.top=a+"px";this.mainDiv.appendChild(this.bg)},configureButton:function(a,b){a.src=this.skinFolder+b.get("image");a.style.position="absolute";var c=G.parseInt(b.get("x"),0);a.style.left=c+"px";b=G.parseInt(b.get("y"),0);a.style.top=b+"px"},callback:function(a,b){null==b&&(b="0");this.reportEvents&&musesCallback(a,b)},setStatus:function(a){this.showInfo(this.language.getText(a));this.callback(a)},setPlaying:function(){this.setStatus("play");
this.statusLed.on();this.togglePlayStop(!0)},setStopped:function(){this.setStatus("stop");this.statusLed.off();this.togglePlayStop(!1);this.artistText.setText("");this.songTitleText.setText("");this.lastMetadata=this.lastMetadataJson=null},toggleBuffer:null,setBuffering:function(){this.callback("buffering");this.toggleBuffer?this.showInfo("\u25cf"):this.showInfo("\u25cb");this.toggleBuffer=!this.toggleBuffer;this.statusLed.on();this.togglePlayStop(!0)},setError:function(){this.setStatus("ioError");
this.statusLed.off()},setVolume:function(a,b){this.volumeControl.setVolume(a,b);b||this.showInfo(this.language.getText("volume")+": "+Math.round(100*a)+"%");this.callback("volume",""+Math.round(100*a))},setMetadataFromString:function(a){if(this.muses.isPlaying()&&this.lastMetadata!=a){var b=a.indexOf(" - ",0);-1!=b?(this.artistText.setText(u.substr(a,0,b)),this.songTitleText.setText(u.substr(a,b+3,null))):(this.artistText.setText(""),this.songTitleText.setText(a));this.lastMetadata=a;this.callback("metadata",
a)}},setMetadata:function(a){if(this.muses.isPlaying()){var b=a.artist+" - "+a.title;this.lastMetadata!=b&&(this.lastMetadata=b,this.callback("metadata",b));b=a.getJson();this.lastMetadataJson!=b&&(this.lastMetadataJson=b,this.artistText.setText(a.artist),this.songTitleText.setText(a.title),this.callback("metadata-json","["+b+"]"))}},showInfo:function(a,b){null==b&&(b=!0);null==a?this.restoreTitle():(null!=this.titleTimer&&this.titleTimer.stop(),this.statusText.setText(a),b&&(this.titleTimer=new O(2E3),
this.titleTimer.run=y(this,this.restoreTitle)))},restoreTitle:function(){null!=this.titleTimer&&this.titleTimer.stop();this.statusText.setText(this.title)},setTitle:function(a){this.title=a;this.restoreTitle()},showContextMenu:function(a){v.display(window.pageXOffset+a.clientX,window.pageYOffset+a.clientY,this.title,this.language);a.preventDefault()},__class__:G};var t=function(){this.byText=new w};t.__name__=["muses","internationalization","AbstractLanguage"];t.prototype={byText:null,getText:function(a){var b=
this.byText;return null!=m[a]?b.getReserved(a):b.h[a]},setText:function(a,b){var c=this.byText;null!=m[a]?c.setReserved(a,b):c.h[a]=b},getTextAlign:function(){return"left"},__class__:t};var wa=function(){this.byText=new w;this.setText("play","\u0546\u057e\u0561\u0563\u0561\u0580\u056f\u0565\u056c");this.setText("stop","\u053f\u0561\u0576\u0563\u0576\u0565\u0581\u0576\u0565\u056c");this.setText("intro","\u0546\u0565\u0580\u0561\u056e\u0578\u0582\u0569\u0575\u0578\u0582\u0576");this.setText("ioError",
"\u0551\u0561\u0576\u0581\u0561\u0575\u056b\u0576 \u057d\u056d\u0561\u056c");this.setText("loadComplete","\u054d\u056d\u0561\u056c. \u0562\u0565\u057c\u0576\u0578\u0582\u0574\u0576 \u0561\u057e\u0561\u0580\u057f\u057e\u0561\u056e \u0567");this.setText("soundComplete","\u054d\u056d\u0561\u056c. \u0576\u057e\u0561\u0563\u0561\u0580\u056f\u0578\u0582\u0574\u0576 \u0561\u057e\u0561\u0580\u057f\u057e\u0561\u056e \u0567");this.setText("volume","\u0541\u0561\u0575\u0576\u056b \u0562\u0561\u0580\u0571\u0580\u0578\u0582\u0569\u0575\u0578\u0582\u0576");
this.setText("securityError","\u0531\u0576\u057e\u057f\u0561\u0576\u0563\u0578\u0582\u0569\u0575\u0561\u0576 \u057d\u056d\u0561\u056c");this.setText("about","\u00abMuses\u00bb \u057c\u0561\u0564\u056b\u0578 \u0576\u057e\u0561\u0563\u0561\u0580\u056f\u0579\u056b \u0574\u0561\u057d\u056b\u0576");this.setText("version","\u054f\u0561\u0580\u0562\u0565\u0580\u0561\u056f")};wa.__name__=["muses","internationalization","Armenian"];wa.__super__=t;wa.prototype=p(t.prototype,{__class__:wa});var xa=function(){this.byText=
new w;this.setText("play","\u0412\u043a\u043b\u044e\u0447\u0438");this.setText("stop","\u0418\u0437\u043a\u043b\u044e\u0447\u0438");this.setText("ioError","\u0413\u0440\u0435\u0448\u043a\u0430 \u0432 \u0441\u0432\u044a\u0440\u0437\u0432\u0430\u043d\u0435\u0442\u043e");this.setText("loadComplete","\u0413\u0440\u0435\u0448\u043a\u0430: \u0417\u0430\u0432\u044a\u0440\u0448\u0435\u043d\u043e \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435");this.setText("soundComplete","\u0413\u0440\u0435\u0448\u043a\u0430: \u0417\u0430\u0432\u044a\u0440\u0448\u0435\u043d\u043e \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435 \u043d\u0430 \u0437\u0432\u0443\u043a");
this.setText("volume","\u0421\u0438\u043b\u0430 \u043d\u0430 \u0437\u0432\u0443\u043a\u0430");this.setText("securityError","\u0413\u0440\u0435\u0448\u043a\u0430 \u0432 \u0441\u0438\u0433\u0443\u0440\u043d\u043e\u0441\u0442\u0442\u0430");this.setText("about","\u0417\u0430 Muses Radio Player...");this.setText("version","\u0412\u0435\u0440\u0441\u0438\u044f ....");this.setText("intro","\u0418\u043d\u0442\u0440\u043e")};xa.__name__=["muses","internationalization","Bulgarian"];xa.__super__=t;xa.prototype=
p(t.prototype,{__class__:xa});var ya=function(){this.byText=new w;this.setText("play","Reprodueix");this.setText("stop","Atura");this.setText("ioError","Error de xarxa");this.setText("loadComplete","Error: s'ha completat la c\u00e0rrega");this.setText("soundComplete","Error: s'ha completat el so");this.setText("volume","Volum");this.setText("securityError","Error de seguretat");this.setText("about","Quant a Muses Radio Player...");this.setText("version","Versi\u00f3");this.setText("intro","Introducci\u00f3")};
ya.__name__=["muses","internationalization","Catalan"];ya.__super__=t;ya.prototype=p(t.prototype,{__class__:ya});var za=function(){this.byText=new w;this.setText("play","\u64ad\u653e");this.setText("stop","\u505c\u6b62");this.setText("intro","\u7b80\u4ecb");this.setText("ioError","\u7f51\u7edc\u51fa\u9519");this.setText("loadComplete","\u9519\u8bef: \u4e0b\u8f7d\u7ed3\u675f");this.setText("soundComplete","\u9519\u8bef: \u58f0\u97f3\u7ed3\u675f");this.setText("volume","\u97f3\u91cf");this.setText("securityError",
"\u5b89\u5168\u6027\u9519\u8bef");this.setText("about","\u5173\u4e8eMuses Radio Player");this.setText("version","\u7248\u672c")};za.__name__=["muses","internationalization","Chinese"];za.__super__=t;za.prototype=p(t.prototype,{__class__:za});var Aa=function(){this.byText=new w;this.setText("play","Pokreni");this.setText("stop","Zaustavi");this.setText("ioError","Gre\u0161ka u mre\u017ei");this.setText("loadComplete","Gre\u0161ka: U\u010ditavanje zavr\u0161eno");this.setText("soundComplete","Gre\u0161ka: Zvuk zavr\u0161en");
this.setText("volume","Glasno\u0107a");this.setText("securityError","Sigurnosna gre\u0161ka");this.setText("about","O Muses Radio Player...");this.setText("version","Verzija")};Aa.__name__=["muses","internationalization","Croatian"];Aa.__super__=t;Aa.prototype=p(t.prototype,{__class__:Aa});var Ba=function(){this.byText=new w;this.setText("play","P\u0159ehr\u00e1t");this.setText("stop","Zastavit");this.setText("intro","\u00davod");this.setText("ioError","Chyba s\u00edt\u011b");this.setText("loadComplete",
"Chyba: na\u010dteno");this.setText("soundComplete","Chyba: zvuk kompletn\u00ed");this.setText("volume","Hlasitost");this.setText("securityError","Chyba zabezpe\u010den\u00ed");this.setText("about","O Muses Radio p\u0159ehr\u00e1va\u010di...");this.setText("version","Verze")};Ba.__name__=["muses","internationalization","Czech"];Ba.__super__=t;Ba.prototype=p(t.prototype,{__class__:Ba});var Ca=function(){this.byText=new w;this.setText("play","Afspelen");this.setText("stop","Stoppen");this.setText("ioError",
"Netwerkfout");this.setText("loadComplete","Fout: Laden afgelopen");this.setText("soundComplete","Fout: Geluid afgelopen");this.setText("volume","Volume");this.setText("securityError","Beveiligingsfout");this.setText("about","Over Muses Radio Player...");this.setText("version","Versie");this.setText("intro","Intro")};Ca.__name__=["muses","internationalization","Dutch"];Ca.__super__=t;Ca.prototype=p(t.prototype,{__class__:Ca});var Da=function(){this.byText=new w;this.setText("play","Play");this.setText("stop",
"Stop");this.setText("ioError","Network Error");this.setText("loadComplete","Error: Load Complete");this.setText("soundComplete","Error: Sound Complete");this.setText("volume","Volume");this.setText("securityError","Security Error");this.setText("about","About Muses Radio Player...");this.setText("version","Version");this.setText("intro","Intro")};Da.__name__=["muses","internationalization","English"];Da.__super__=t;Da.prototype=p(t.prototype,{__class__:Da});var Ea=function(){this.byText=new w;this.setText("play",
"Toista");this.setText("stop","Pys\u00e4yt\u00e4");this.setText("ioError","Verkkoyhteysvirhe");this.setText("loadComplete","Lataaminen p\u00e4\u00e4ttyi");this.setText("soundComplete","\u00c4\u00e4nentoisto p\u00e4\u00e4ttyi");this.setText("volume","\u00c4\u00e4nenvoimakkuus");this.setText("securityError","Tietoturvavirhe");this.setText("about","Tietoja Muses Radio Player:sta...");this.setText("version","Versio")};Ea.__name__=["muses","internationalization","Finnish"];Ea.__super__=t;Ea.prototype=
p(t.prototype,{__class__:Ea});var Fa=function(){this.byText=new w;this.setText("play","Jouer");this.setText("stop","Arr\u00eater");this.setText("ioError","Erreur r\u00e9seau");this.setText("loadComplete","Erreur: Chargement complet");this.setText("soundComplete","Erreur: Son complet");this.setText("volume","Volume");this.setText("securityError","Erreur de s\u00e9curit\u00e9");this.setText("about","A propos de Muses Radio Player...");this.setText("version","Version")};Fa.__name__=["muses","internationalization",
"French"];Fa.__super__=t;Fa.prototype=p(t.prototype,{__class__:Fa});var ka=function(){this.byText=new w;this.setText("play","Abspielen");this.setText("stop","Stop");this.setText("ioError","Netzwerk-Fehler");this.setText("loadComplete","Fehler: Full Load");this.setText("soundComplete","Fehler: Full Audio");this.setText("volume","Lautst\u00e4rke");this.setText("securityError","Sicherheit Fehler");this.setText("about","\u00dcber Muses Radio Player...");this.setText("version","Version")};ka.__name__=
["muses","internationalization","German"];ka.__super__=t;ka.prototype=p(t.prototype,{__class__:ka});var Ga=function(){this.byText=new w;this.setText("play","\u0391\u03bd\u03b1\u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03ae");this.setText("stop","\u0394\u03b9\u03b1\u03ba\u03bf\u03c0\u03ae");this.setText("ioError","\u03a3\u03c6\u03ac\u03bb\u03bc\u03b1 \u03b4\u03b9\u03ba\u03c4\u03cd\u03bf\u03c5");this.setText("loadComplete","\u03a3\u03c6\u03ac\u03bb\u03bc\u03b1: \u03b7 \u03bc\u03b5\u03c4\u03b1\u03c6\u03cc\u03c1\u03c4\u03c9\u03c3\u03b7 \u03bf\u03bb\u03bf\u03ba\u03bb\u03b7\u03c1\u03ce\u03b8\u03b7\u03ba\u03b5");
this.setText("soundComplete","\u03a3\u03c6\u03ac\u03bb\u03bc\u03b1: \u03bf \u03ae\u03c7\u03bf\u03c2 \u03bf\u03bb\u03bf\u03ba\u03bb\u03b7\u03c1\u03ce\u03b8\u03b7\u03ba\u03b5");this.setText("volume","\u0388\u03bd\u03c4\u03b1\u03c3\u03b7");this.setText("securityError","\u03a3\u03c6\u03ac\u03bb\u03bc\u03b1 \u03b1\u03c3\u03c6\u03b1\u03bb\u03b5\u03af\u03b1\u03c2");this.setText("about","\u03a0\u03b5\u03c1\u03af \u03c4\u03bf\u03c5 Muses Radio Player...");this.setText("version","\u0388\u03ba\u03b4\u03bf\u03c3\u03b7");
this.setText("intro","\u0395\u03b9\u03c3\u03b1\u03b3\u03c9\u03b3\u03ae")};Ga.__name__=["muses","internationalization","Greek"];Ga.__super__=t;Ga.prototype=p(t.prototype,{__class__:Ga});var la=function(){this.byText=new w;this.setText("play","\u05de\u05ea\u05e0\u05d2\u05df");this.setText("stop","\u05de\u05d5\u05e4\u05e1\u05e7");this.setText("ioError","\u05e9\u05d2\u05d9\u05d0\u05ea \u05d7\u05d9\u05d1\u05d5\u05e8");this.setText("loadComplete","\u05e9\u05d2\u05d9\u05d0\u05d4: \u05d4\u05d8\u05e2\u05d9\u05e0\u05d4 \u05d4\u05e1\u05ea\u05d9\u05d9\u05de\u05d4");
this.setText("soundComplete","\u05e9\u05d2\u05d9\u05d0\u05d4: \u05d4\u05e9\u05de\u05e2 \u05d4\u05e1\u05ea\u05d9\u05d9\u05dd");this.setText("volume","\u05e2\u05d5\u05e6\u05de\u05d4");this.setText("securityError","\u05e9\u05d2\u05d9\u05d0\u05ea \u05d0\u05d1\u05d8\u05d7\u05d4");this.setText("about","\u05d0\u05d5\u05d3\u05d5\u05ea Muses Radio Player...");this.setText("version","\u05d2\u05d9\u05e8\u05e1\u05d4");this.setText("intro","\u05e4\u05ea\u05d9\u05d7")};la.__name__=["muses","internationalization",
"Hebrew"];la.__super__=t;la.prototype=p(t.prototype,{getTextAlign:function(){return"right"},__class__:la});var Ha=function(){this.byText=new w;this.setText("play","Lej\u00e1tsz\u00e1s");this.setText("stop","Stop");this.setText("ioError","Hl\u00f3zati hiba");this.setText("loadComplete","Hiba: a let\u00f6lt\u00e9s befejezod\u00f6tt");this.setText("soundComplete","Hiba: a hang megszakadt");this.setText("volume","Hangero");this.setText("securityError","Biztons\u00e1gi hiba");this.setText("about","Bovebben az Muses Radio Player-r\u00f3l...");
this.setText("version","Verzi\u00f3")};Ha.__name__=["muses","internationalization","Hungarian"];Ha.__super__=t;Ha.prototype=p(t.prototype,{__class__:Ha});var Ia=function(){this.byText=new w;this.setText("play","Seinn");this.setText("stop","Stad");this.setText("intro","Seoladh Isteach ");this.setText("ioError","Earr\u00e1id ar an L\u00edonra");this.setText("loadComplete","Earr\u00e1id: L\u00f3d curtha i gcr\u00edch");this.setText("soundComplete","Earr\u00e1id: Fuaim curtha i gcr\u00edch");this.setText("volume",
"Airde");this.setText("securityError","Earr\u00e1id Sl\u00e1nd\u00e1la");this.setText("about","Maidir le Seinnteoir Raidi\u00f3 Muses...");this.setText("version","Leagan")};Ia.__name__=["muses","internationalization","Irish"];Ia.__super__=t;Ia.prototype=p(t.prototype,{__class__:Ia});var Ja=function(){this.byText=new w;this.setText("play","Riprodurre");this.setText("stop","Fermare");this.setText("ioError","Errore di rete");this.setText("loadComplete","Erreur: Completo carico");this.setText("soundComplete",
"Errore: Audio completo");this.setText("volume","Volume");this.setText("securityError","Errore di Sicurezza");this.setText("about","Circa Muses Radio Player ...");this.setText("version","Versione")};Ja.__name__=["muses","internationalization","Italian"];Ja.__super__=t;Ja.prototype=p(t.prototype,{__class__:Ja});var ab=function(){};ab.__name__=["muses","internationalization","LanguageFactory"];ab.factory=function(a){if(null==a||"auto"==a)a=window.navigator.language,null!=a&&(a=a.split("-")[0]);switch(a){case "bg":return new xa;
case "ca":return new ya;case "cs":return new Ba;case "de":return new ka;case "el":return new Ga;case "es":return new ma;case "fi":return new Ea;case "fr":return new Fa;case "ga":return new Ia;case "ger":return new ka;case "he":return new la;case "hr":return new Aa;case "hu":return new Ha;case "hy":return new wa;case "it":return new Ja;case "iw":return new la;case "nb":return new ca;case "nl":return new Ca;case "nn":return new ca;case "nw":return new ca;case "pl":return new Ka;case "pt":return new La;
case "ru":return new Ma;case "sl":return new Na;case "sp":return new ma;case "sv":return new Oa;case "tr":return new Pa;case "tt":return new Qa;case "uk":return new Ra;case "zh":return new za}return new Da};var ca=function(){this.byText=new w;this.setText("play","Spill av");this.setText("stop","Stopp");this.setText("ioError","Nettverksfeil");this.setText("loadComplete","Feil: Lasting fullf\u00f8rt");this.setText("soundComplete","Feil: Lyd fullf\u00f8rt");this.setText("volume","Volum");this.setText("securityError",
"Sikkerhetsfeil");this.setText("about","Om Muses Radio Player...");this.setText("version","Versjon")};ca.__name__=["muses","internationalization","Norwegian"];ca.__super__=t;ca.prototype=p(t.prototype,{__class__:ca});var Ka=function(){this.byText=new w;this.setText("play","Odtw\u00f3rz");this.setText("stop","Stop");this.setText("ioError","B\u0142\u0105d sieciowy");this.setText("loadComplete","B\u0142\u0105d: \u0141adowanie zako\u0144czone");this.setText("soundComplete","B\u0142\u0105d: \u0141adowanie audio zako\u0144czone");
this.setText("volume","G\u0142o\u015bno\u015b\u0107");this.setText("securityError","B\u0142\u0105d zabezpiecze\u0144");this.setText("about","O Muses Radio Player...");this.setText("version","Wersja")};Ka.__name__=["muses","internationalization","Polish"];Ka.__super__=t;Ka.prototype=p(t.prototype,{__class__:Ka});var La=function(){this.byText=new w;this.setText("play","Tocar");this.setText("stop","Parar");this.setText("ioError","Erro de Rede");this.setText("loadComplete","Erro: terminou de carregar");
this.setText("soundComplete","Erro: fim do \u00e1udio");this.setText("volume","Volume");this.setText("securityError","Erro de Seguran\u00e7a");this.setText("about","Sobre Muses Radio Player...");this.setText("version","Vers\u00e3o")};La.__name__=["muses","internationalization","Portuguese"];La.__super__=t;La.prototype=p(t.prototype,{__class__:La});var Ma=function(){this.byText=new w;this.setText("play","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438");this.setText("stop",
"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c");this.setText("ioError","\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f");this.setText("loadComplete","\u041e\u0448\u0438\u0431\u043a\u0430: \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430");this.setText("soundComplete","\u041e\u0448\u0438\u0431\u043a\u0430: \u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f");
this.setText("volume","\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0437\u0432\u0443\u043a\u0430");this.setText("securityError","\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043e");this.setText("about","\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e Muses Radio Player...");this.setText("version","\u0412\u0435\u0440\u0441\u0438\u044f")};Ma.__name__=["muses","internationalization","Russian"];Ma.__super__=
t;Ma.prototype=p(t.prototype,{__class__:Ma});var Na=function(){this.byText=new w;this.setText("play","Predvajaj");this.setText("stop","Stop");this.setText("ioError","Omre\u017ena napaka");this.setText("loadComplete","Napaka: Nalaganje kon\u010dano");this.setText("soundComplete","Napaka: Ni zvoka");this.setText("volume","Glasnost");this.setText("securityError","Varnostna napaka");this.setText("about","O Muses Radio Player...");this.setText("version","Verzija");this.setText("intro","Uvod")};Na.__name__=
["muses","internationalization","Slovene"];Na.__super__=t;Na.prototype=p(t.prototype,{__class__:Na});var ma=function(){this.byText=new w;this.setText("play","Reproducir");this.setText("stop","Detener");this.setText("ioError","Error de Red");this.setText("loadComplete","Error: Carga completa");this.setText("soundComplete","Error: Sonido completo");this.setText("volume","Volumen");this.setText("securityError","Error de Seguridad");this.setText("about","Acerca de Muses Radio Player...");this.setText("version",
"Versi\u00f3n");this.setText("intro","Intro")};ma.__name__=["muses","internationalization","Spanish"];ma.__super__=t;ma.prototype=p(t.prototype,{__class__:ma});var Oa=function(){this.byText=new w;this.setText("play","Spelar");this.setText("stop","Stoppad");this.setText("ioError","N\u00e4tverksfel");this.setText("loadComplete","Fel: Laddning komplett");this.setText("soundComplete","Fel: Ljud komplett");this.setText("volume","Volym");this.setText("securityError","S\u00e4kerhetsfel");this.setText("about",
"Om Muses Radio Player...");this.setText("version","Version");this.setText("intro","Intro")};Oa.__name__=["muses","internationalization","Swedish"];Oa.__super__=t;Oa.prototype=p(t.prototype,{__class__:Oa});var Qa=function(){this.byText=new w;this.setText("play","\u0423\u0439\u043d\u0430\u0442\u0443");this.setText("stop","\u0422\u0443\u043a\u0442\u0430\u0442\u0443");this.setText("intro","\u0418\u043d\u0442\u0440\u043e");this.setText("ioError","\u0427\u0435\u043b\u0442\u04d9\u0440 \u0425\u0430\u0442\u0430\u0441\u044b");
this.setText("loadComplete","\u0425\u0430\u0442\u0430: \u0419\u04e9\u043a\u043b\u04d9\u04af \u0442\u04d9\u043c\u0430\u043c");this.setText("soundComplete","\u0425\u0430\u0442\u0430: \u0422\u0430\u0432\u044b\u0448 \u0442\u04d9\u043c\u0430\u043c");this.setText("volume","\u0422\u0430\u0432\u044b\u0448");this.setText("securityError","\u041a\u0443\u0440\u043a\u044b\u043d\u044b\u0447\u0441\u044b\u0437\u043b\u044b\u043a \u0445\u0430\u0442\u0430\u0441\u044b");this.setText("about","Muses Radio Player \u0422\u0443\u0440\u044b\u043d\u0434\u0430...");
this.setText("version","\u0412\u0435\u0440\u0441\u0438\u044f")};Qa.__name__=["muses","internationalization","Tatar"];Qa.__super__=t;Qa.prototype=p(t.prototype,{__class__:Qa});var Pa=function(){this.byText=new w;this.setText("play","\u00c7al");this.setText("stop","Durdur");this.setText("ioError","A\u011f hatas\u0131");this.setText("loadComplete","Hata: Y\u00fcklenme Tamamland\u0131");this.setText("soundComplete","Hata: Yay\u0131n Tamamland\u0131");this.setText("volume","Ses");this.setText("securityError",
"G\u00fcvenlik Hatas\u0131");this.setText("about","Muses Radio Player Hakk\u0131nda...");this.setText("version","S\u00fcr\u00fcm")};Pa.__name__=["muses","internationalization","Turkish"];Pa.__super__=t;Pa.prototype=p(t.prototype,{__class__:Pa});var Ra=function(){this.byText=new w;this.setText("play","\u0412\u0456\u0434\u0442\u0432\u043e\u0440\u0438\u0442\u0438");this.setText("stop","\u0417\u0443\u043f\u0438\u043d\u0438\u0442\u0438");this.setText("ioError","\u041f\u043e\u043c\u0438\u043b\u043a\u0430 \u043c\u0435\u0440\u0435\u0436\u0456");
this.setText("loadComplete","\u041f\u043e\u043c\u0438\u043b\u043a\u0430: \u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043e");this.setText("soundComplete","\u041f\u043e\u043c\u0438\u043b\u043a\u0430: \u0417\u0432\u0443\u043a \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043e");this.setText("volume","\u0433\u0443\u0447\u043d\u0456\u0441\u0442\u044c");this.setText("securityError","\u041f\u043e\u043c\u0438\u043b\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0443");
this.setText("about","\u041f\u0440\u043e Muses Radio Player...");this.setText("version","\u0412\u0435\u0440\u0441\u0456\u044f");this.setText("intro","\u0412\u0441\u0442\u0443\u043f\u043d\u0435 \u0432\u0456\u0442\u0430\u043d\u043d\u044f")};Ra.__name__=["muses","internationalization","Ukrainian"];Ra.__super__=t;Ra.prototype=p(t.prototype,{__class__:Ra});var H=function(a){this.styleWidth=this.styleHeight=0;this.ui=a;this.configured=!1;this.container=window.document.createElement("div");this.container.style.position=
"absolute"};H.__name__=["muses","skin","UIComponent"];H.prototype={container:null,configured:null,ui:null,styleWidth:null,styleHeight:null,setVisible:function(a){this.container.style.display=a?"block":"none"},configure:function(a){this.configured=!0;var b=G.parseInt(a.get("x"),0);this.container.style.left=b+"px";b=G.parseInt(a.get("y"),0);this.container.style.top=b+"px";this.styleWidth=G.parseInt(a.get("width"),0);this.styleHeight=G.parseInt(a.get("height"),0);null!=a.get("width")&&(this.container.style.width=
this.styleWidth+"px");null!=a.get("height")&&(this.container.style.height=this.styleHeight+"px")},appendChild:function(a,b){null==b&&(b=!0);a.style.position="absolute";a.style.left=a.style.top="0px";a.style.display=b?"block":"none";this.container.appendChild(a)},__class__:H};var ja=function(a,b){var c=this;H.call(this,a);this.mouseOverState=new Image;this.mouseDownState=new Image;this.noMouseState=new Image;this.container.title=b;this.mouseDownState.style.opacity="0";this.mouseOverState.style.opacity=
"0";this.container.onmouseup=function(a){c.mouseDownState.style.opacity="0";c.mouseOverState.style.opacity="1"};this.container.onmousedown=function(a){c.mouseDownState.style.opacity="1";c.mouseOverState.style.opacity="0"};this.container.onmouseover=function(a){c.mouseOverState.style.opacity="1"};this.container.onmouseout=function(a){c.mouseDownState.style.opacity="0";c.mouseOverState.style.opacity="0"}};ja.__name__=["muses","skin","Button"];ja.__super__=H;ja.prototype=p(H.prototype,{mouseOverState:null,
mouseDownState:null,noMouseState:null,configure:function(a){H.prototype.configure.call(this,a);null!=a.get("bgimage")&&(this.ui.loadImage(this.noMouseState,a.get("bgimage")),this.noMouseState.style.cursor="pointer",this.appendChild(this.noMouseState));null!=a.get("clickimage")&&(this.ui.loadImage(this.mouseDownState,a.get("clickimage")),this.mouseDownState.style.cursor="pointer",this.appendChild(this.mouseDownState));this.ui.loadImage(this.mouseOverState,a.get("image"));this.appendChild(this.mouseOverState);
this.mouseOverState.style.cursor="pointer"},__class__:ja});var ua=function(a){H.call(this,a);this.playMC=new Image;this.stopMC=new Image};ua.__name__=["muses","skin","StatusLed"];ua.__super__=H;ua.prototype=p(H.prototype,{playMC:null,stopMC:null,configure:function(a){H.prototype.configure.call(this,a);null!=a.get("imageplay")&&-1==a.get("imageplay").indexOf(".swf")&&(this.ui.loadImage(this.playMC,a.get("imageplay")),this.appendChild(this.playMC,!1));null!=a.get("imagestop")&&-1==a.get("imagestop").indexOf(".swf")&&
(this.ui.loadImage(this.stopMC,a.get("imagestop")),this.appendChild(this.stopMC,!0))},on:function(){this.playMC.style.display="block";this.stopMC.style.display="none"},off:function(){this.playMC.style.display="none";this.stopMC.style.display="block"},__class__:ua});var ba=function(a){this.innerDIV=null;this.scrollDiff=0;H.call(this,a);this.container.style.fontFamily="Silkscreen";this.container.style.fontSize="12px";this.innerDIV=window.document.createElement("div")};ba.__name__=["muses","skin","TitleText"];
ba.__super__=H;ba.prototype=p(H.prototype,{scrollDiff:null,innerDIV:null,configureText:function(a,b){this.configure(a);this.innerDIV.style.fontFamily=a.get("font");var c=G.parseInt(a.get("size"),12);this.innerDIV.style.fontSize=c+"px";this.innerDIV.style.color=a.get("color");this.innerDIV.style.whiteSpace="nowrap";this.innerDIV.style.padding="2px";this.innerDIV.addEventListener("transitionend",y(this,this.scroll));switch(a.get("align")){case "center":a="center";break;case "right":a="right";break;
default:a=b}this.innerDIV.style.textAlign=a;this.container.style.overflow="hidden";this.container.style.transition="opacity 300ms";this.container.style.opacity="0";this.container.appendChild(this.innerDIV)},setText:function(a){if(""==a)this.container.style.opacity="0";else{this.container.style.opacity="1";var b=a+" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"+a;this.innerDIV.innerHTML!=a&&this.innerDIV.innerHTML!=b&&(this.innerDIV.innerHTML=a,this.disableScrolling(),this.container.scrollWidth-
6>this.styleWidth&&(this.scrollDiff=this.container.scrollWidth,this.innerDIV.innerHTML=b,this.scrollDiff-=this.container.scrollWidth,this.scroll()))}},scroll:function(){var a=this;this.innerDIV.style.transition="";this.innerDIV.style.transitionDelay="";this.innerDIV.style.transform="translate(0px , 0px)";O.delay(function(){0!=a.scrollDiff&&(a.innerDIV.style.transition="transform 10000ms",a.innerDIV.style.transitionDelay="5s",a.innerDIV.style.transform="translate("+a.scrollDiff+"px, 0px)")},1)},disableScrolling:function(){this.scrollDiff=
0;this.innerDIV.style.transition="";this.innerDIV.style.transitionDelay="";this.innerDIV.style.transform="translate(0px , 0px)"},__class__:ba});var va=function(a,b){H.call(this,a);this.muses=b;this.firstDraw=!0;this.bars=null;this.mousePressed=!1;this.volume=1;this.setMode("bars");this.draw(this.container);this.vertMargin=this.horizMargin=this.height=this.width=0;this.barStep=2;this.barWidth=1;this.barColors=this.bgColors=null};va.__name__=["muses","skin","VolumeControl"];va.__super__=H;va.prototype=
p(H.prototype,{volume:null,width:null,height:null,horizMargin:null,horizDesp:null,vertMargin:null,vertDesp:null,barStep:null,barWidth:null,bgColors:null,barColors:null,bars:null,cover:null,spriteBar:null,firstDraw:null,mode:null,holder:null,mousePressed:null,muses:null,draw:function(a){},setMode:function(a){switch(a.toLowerCase()){case "bars":this.draw=y(this,this.drawBars);break;case "holder":this.draw=y(this,this.drawHolder);break;case "vholder":this.draw=y(this,this.drawVHolder)}this.mode=a},drawHolder:function(a){this.holder.style.left=
this.volume*(this.width-this.holder.naturalWidth)+"px"},drawVHolder:function(a){this.holder.style.top=(1-this.volume)*(this.height-this.holder.naturalHeight)+"px"},drawBars:function(a){if(null!=this.barColors&&0!=this.barStep&&(a=Math.round((this.width-2*this.horizMargin)/this.barStep),0!=a)){var b=(this.height-2*this.vertMargin+1)/a,c=this.height-this.vertMargin,d=this.horizMargin;if(null==this.bars){this.bars=[];for(var e=0;e<a;){var f=e++,g=window.document.createElement("div");this.bars.push(g);
this.appendChild(g);g.style.left=Math.ceil(d+f*this.barStep)+"px";g.style.top=Math.ceil(c-f*b)+"px";g.style.width=Math.round(this.barWidth)+"px";g.style.height=Math.ceil(f*b)+"px"}}b=0;for(c=Math.round(this.volume*a);b<c;)d=b++,this.bars[d].style.backgroundColor=this.barColors[0];for(b=Math.round(this.volume*a);b<a;)c=b++,this.bars[c].style.backgroundColor=this.barColors[1]}},setVolume:function(a,b){null==b&&(b=!1);this.volume!=a&&(this.volume=a,1<this.volume&&(this.volume=1),0>this.volume&&(this.volume=
0),this.muses.setVolume(this.volume,b),this.draw(this.container))},getVolume:function(){return this.volume},mouseDown:function(a){this.mousePressed=!0;a=this.getXY(a);if(null!=a){if("vholder"!=this.mode){a=a.x;var b=this.width}else a=this.height-a.y,b=this.height;a-=.06*b;0>a&&(a=0);a=Math.round(1.06*a);a>b&&(a=b);this.setVolume(a/(b-2))}},mouseUp:function(a){this.mousePressed=!1},mouseMove:function(a){this.mousePressed&&this.mouseDown(a)},mouseWheel:function(a){0<a.deltaY?this.setVolume(this.volume+
.025):this.setVolume(this.volume-.025)},touchMove:function(a){a.stopPropagation();a.preventDefault();var b=this.cover.getBoundingClientRect();this.mouseDown({layerX:a.changedTouches[0].clientX-b.left,layerY:a.changedTouches[0].clientY-b.top})},configure:function(a){H.prototype.configure.call(this,a);this.width=G.parseInt(a.get("width"),0);this.height=G.parseInt(a.get("height"),0);this.barColors=[a.get("color1"),a.get("color2")];this.barStep=G.parseInt(a.get("barstep"),2);this.barWidth=G.parseInt(a.get("barwidth"),
1);var b=null!=a.get("mode")?a.get("mode").toLowerCase():null;this.setMode(b);if("holder"==b||"vholder"==b)this.holder=new Image,this.holder.onload=y(this,this.holderLoad),this.ui.loadImage(this.holder,a.get("holderimage")),this.appendChild(this.holder);this.draw(this.container);this.cover=window.document.createElement("div");this.cover.onmousedown=y(this,this.mouseDown);this.cover.onmousemove=y(this,this.mouseMove);this.cover.addEventListener("touchstart",y(this,this.touchMove));this.cover.addEventListener("touchmove",
y(this,this.touchMove));this.cover.onwheel=y(this,this.mouseWheel);this.cover.onmouseup=y(this,this.mouseUp);this.cover.onmouseout=y(this,this.mouseUp);this.cover.style.width=this.container.style.width;this.cover.style.height=this.container.style.height;this.cover.style.cursor="pointer";this.appendChild(this.cover)},holderLoad:function(a){this.holder.style.left=.5*(this.width-this.holder.naturalWidth)+"px";this.holder.style.top=.5*(this.height-this.holder.naturalHeight)+"px";this.draw(this.container)},
getXY:function(a){return a.offsetX||0==a.offsetX||a.layerX||0==a.layerX?{x:a.offsetX,y:a.offsetY}:null},__class__:va});var eb=0;String.prototype.__class__=String;String.__name__=["String"];Array.__name__=["Array"];Date.prototype.__class__=Date;Date.__name__=["Date"];var gb={__name__:["Int"]},fb={__name__:["Dynamic"]},db=Number;db.__name__=["Float"];var cb=Boolean;cb.__ename__=["Bool"];var hb={__name__:["Class"]},ib={},m={},$a=B.ArrayBuffer||N;null==$a.prototype.slice&&($a.prototype.slice=N.sliceImpl);
var Xa=B.Uint8Array||V._new;g.objectId="MRPObject";g.flashInstances=new w;g.jsInstances=new w;g.__hostPrefix="hosted";g.__hostMidfix="muses";h.Element=0;h.PCData=1;h.CData=2;h.Comment=3;h.DocType=4;h.ProcessingInstruction=5;h.Document=6;S.ERROR_SEVERITY_SILENCE=0;S.ERROR_SEVERITY_TRACE=1;S.ERROR_SEVERITY_EXCEPTIONS=2;oa.REFERRER_INTERNAL="0";x.paused=!1;D.VERSION="5.2.5";U.OBJECT_KEY_NUM=1;U.TYPE_KEY_NUM=2;U.LABEL_KEY_NUM=3;U.VALUE_VALUE_NUM=1;A.TYPE_EVENT="event";A.TYPE_TRANSACTION="tran";A.TYPE_ITEM=
"item";A.TYPE_SOCIAL="social";A.TYPE_CUSTOMVARIABLE="var";A.X10_CUSTOMVAR_NAME_PROJECT_ID="8";A.X10_CUSTOMVAR_VALUE_PROJECT_ID="9";A.X10_CUSTOMVAR_SCOPE_PROJECT_ID="11";A.CAMPAIGN_DELIMITER="|";ea.X10_EVENT_PROJECT_ID="5";R.escapes=function(a){a=new w;null!=m.lt?a.setReserved("lt","<"):a.h.lt="<";null!=m.gt?a.setReserved("gt",">"):a.h.gt=">";null!=m.amp?a.setReserved("amp","&"):a.h.amp="&";null!=m.quot?a.setReserved("quot",'"'):a.h.quot='"';null!=m.apos?a.setReserved("apos","'"):a.h.apos="'";return a}(this);
C.__toStr={}.toString;V.BYTES_PER_ELEMENT=1;v.displaying=!1;K.VERSION="2.3 (html5)";K.instances=[];W.enabled=!0;g.main()})("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this);if("undefined"==typeof musesCallback)var musesCallback=function(k,B){};
if("undefined"==typeof musesPlayerCounter){var musesPlayerCounter=0,mrpStyleReset=null;mrpBrowserCompat={};(function(){var k=function(){var k=navigator.userAgent.toLowerCase(),p=-1!=k.indexOf("msie")?parseInt(k.split("msie")[1]):-1;return-1==p&&0<k.indexOf("trident/7.0")?11:p};mrpBrowserCompat.isIE=k();0<k()&&11>k()||(k=document.createElement("audio"),mrpBrowserCompat.aac=!(!k.canPlayType||!k.canPlayType("audio/mp4;").replace(/no/,"")),mrpBrowserCompat.mp3=!(!k.canPlayType||!k.canPlayType("audio/mpeg;").replace(/no/,
"")),mrpBrowserCompat.ogg=!(!k.canPlayType||!k.canPlayType("audio/ogg;").replace(/no/,"")))})()}
var FlashDetect=new function(){var k=this;k.installed=!1;k.raw="";k.major=-1;k.minor=-1;k.revision=-1;k.revisionStr="";var B=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(k){return p(k)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(k){var l="6,0,21";try{k.AllowScriptAccess="always",l=p(k)}catch(I){}return l}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(k){return p(k)}}],p=function(k){var l=-1;try{l=k.GetVariable("$version")}catch(I){}return l};k.majorAtLeast=function(l){return k.major>=
l};k.minorAtLeast=function(l){return k.minor>=l};k.revisionAtLeast=function(l){return k.revision>=l};k.versionAtLeast=function(l){var p=[k.major,k.minor,k.revision],B=Math.min(p.length,arguments.length);for(i=0;i<B;i++)if(p[i]>=arguments[i]){if(!(i+1<B&&p[i]==arguments[i]))return!0}else return!1};k.FlashDetect=function(){if(navigator.plugins&&0<navigator.plugins.length){var l=navigator.mimeTypes;if(l&&l["application/x-shockwave-flash"]&&l["application/x-shockwave-flash"].enabledPlugin&&l["application/x-shockwave-flash"].enabledPlugin.description){var p=
l=l["application/x-shockwave-flash"].enabledPlugin.description;l=p.split(/ +/);var I=l[2].split(/\./);l=l[3];var u=parseInt(I[0],10);var P=parseInt(I[1],10);var J=l;var Q=parseInt(l.replace(/[a-zA-Z]/g,""),10)||k.revision;k.raw=p;k.major=u;k.minor=P;k.revisionStr=J;k.revision=Q;k.installed=!0}}else if(-1==navigator.appVersion.indexOf("Mac")&&window.execScript)for(l=-1,I=0;I<B.length&&-1==l;I++){p=-1;try{p=new ActiveXObject(B[I].name)}catch(na){p={activeXError:!0}}p.activeXError||(k.installed=!0,l=
B[I].version(p),-1!=l&&(p=l,J=p.split(","),u=parseInt(J[0].split(" ")[1],10),P=parseInt(J[1],10),Q=parseInt(J[2],10),J=J[2],k.raw=p,k.major=u,k.minor=P,k.revision=Q,k.revisionStr=J))}}()};FlashDetect.JS_RELEASE="1.0.4";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment