(function(){'use strict';var e,aa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},h;if("function"==typeof Object.setPrototypeOf)h=Object.setPrototypeOf;else{var k;a:{var ba={Db:!0},ca={};try{ca.__proto__=ba;k=ca.Db;break a}catch(a){}k=!1}h=k?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var da=h,ea=function(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(da)da(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.mc=b.prototype},fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},m="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:
this,ha=function(){ha=function(){};m.Symbol||(m.Symbol=ia)},ia=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),n=function(){ha();var a=m.Symbol.iterator;a||(a=m.Symbol.iterator=m.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&fa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(this)}});n=function(){}},ja=function(a){var b=0;return ka(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ka=function(a){n();a={next:a};a[m.Symbol.iterator]=
function(){return this};return a},la=function(a){n();var b=a[Symbol.iterator];return b?b.call(a):ja(a)},q=this,ma=function(){},r=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==
c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},u=function(a){var b=r(a);return"array"==b||"object"==b&&"number"==typeof a.length},na="closure_uid_"+(1E9*Math.random()>>>0),oa=0,pa=function(a,b,c){return a.call.apply(a.bind,arguments)},qa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,
2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},v=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v=pa:v=qa;return v.apply(null,arguments)},w=function(a,b){a=a.split(".");var c=q;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?
c=c[d]:c=c[d]={}:c[d]=b},ra=function(a,b){function c(){}c.prototype=b.prototype;a.mc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.pc=function(a,c,g){for(var d=Array(arguments.length-2),f=2;f<arguments.length;f++)d[f-2]=arguments[f];return b.prototype[c].apply(a,d)}};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};var mojo={};chrome.cast.VERSION=[1,2];w("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.oc=!0;w("chrome.cast.usingPresentationApi",chrome.cast.oc);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};w("chrome.cast.Error",chrome.cast.Error);chrome.cast.pb=function(a){this.platform=a;this.packageId=this.url=null};w("chrome.cast.SenderApplication",chrome.cast.pb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};w("chrome.cast.Image",chrome.cast.Image);
chrome.cast.Volume=function(a,b){this.level=void 0!==a?a:null;this.muted=void 0!==b?b:null};w("chrome.cast.Volume",chrome.cast.Volume);chrome.cast.ha={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};w("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ja={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};w("chrome.cast.DefaultActionPolicy",chrome.cast.ja);chrome.cast.U={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
w("chrome.cast.Capability",chrome.cast.U);chrome.cast.m={CANCEL:"cancel",TIMEOUT:"timeout",API_NOT_INITIALIZED:"api_not_initialized",INVALID_PARAMETER:"invalid_parameter",EXTENSION_NOT_COMPATIBLE:"extension_not_compatible",EXTENSION_MISSING:"extension_missing",RECEIVER_UNAVAILABLE:"receiver_unavailable",SESSION_ERROR:"session_error",CHANNEL_ERROR:"channel_error",LOAD_MEDIA_FAILED:"load_media_failed"};w("chrome.cast.ErrorCode",chrome.cast.m);chrome.cast.M={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
w("chrome.cast.ReceiverAvailability",chrome.cast.M);chrome.cast.qb={CHROME:"chrome",IOS:"ios",ANDROID:"android"};w("chrome.cast.SenderPlatform",chrome.cast.qb);chrome.cast.sa={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};w("chrome.cast.ReceiverType",chrome.cast.sa);chrome.cast.Ra={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};w("chrome.cast.DialAppState",chrome.cast.Ra);chrome.cast.lb={CAST:"cast",STOP:"stop"};w("chrome.cast.ReceiverAction",chrome.cast.lb);
chrome.cast.G={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};w("chrome.cast.SessionStatus",chrome.cast.G);chrome.cast.Bb={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};w("chrome.cast.VolumeControlType",chrome.cast.Bb);var sa=/&/g,ta=/</g,ua=/>/g,va=/"/g,wa=/'/g,xa=/\x00/g,ya=/[\x00&<>"']/,Aa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=q.document.createElement("div");return a.replace(za,function(a,f){var d=b[a];if(d)return d;"#"==f.charAt(0)&&(f=Number("0"+f.substr(1)),isNaN(f)||(d=String.fromCharCode(f)));d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=d})},Ba=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";
case "gt":return">";case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?a:String.fromCharCode(c)}})},za=/&([^;\s<&]+);?/g;chrome.cast.Na=function(a,b,c,d,f){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ha.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=f||chrome.cast.ja.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};w("chrome.cast.ApiConfig",chrome.cast.Na);chrome.cast.Ua=function(a,b){this.appName=a;this.launchParameter=b||null};w("chrome.cast.DialRequest",chrome.cast.Ua);
chrome.cast.Sa=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};w("chrome.cast.DialLaunchData",chrome.cast.Sa);chrome.cast.Ta=function(a,b){this.doLaunch=a;this.launchParameter=b||null};w("chrome.cast.DialLaunchResponse",chrome.cast.Ta);chrome.cast.rb=function(a,b,c){this.appId=a;this.capabilities="array"==r(b)?b:[chrome.cast.U.VIDEO_OUT,chrome.cast.U.AUDIO_OUT];this.requestSessionTimeout=c||chrome.cast.timeout.requestSession;this.dialRequest=this.language=null};
w("chrome.cast.SessionRequest",chrome.cast.rb);
chrome.cast.kb=function(a,b,c,d){this.label=a;a=b;ya.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(sa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(ta,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ua,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(va,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(wa,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(xa,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.sa.CAST;this.displayStatus=this.isActiveInput=null};
w("chrome.cast.Receiver",chrome.cast.kb);chrome.cast.mb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};w("chrome.cast.ReceiverDisplayStatus",chrome.cast.mb);chrome.cast.va=function(){this.requestSession=6E4;this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};w("chrome.cast.Timeout",chrome.cast.va);chrome.cast.timeout=new chrome.cast.va;w("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ma="auto-join";chrome.cast.fb="cast-session_";chrome.cast.media.ab={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};w("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.l={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4};w("chrome.cast.media.MetadataType",chrome.cast.media.l);chrome.cast.media.F={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};w("chrome.cast.media.PlayerState",chrome.cast.media.F);
chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};w("chrome.cast.media.RepeatMode",chrome.cast.media.V);chrome.cast.media.nb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};w("chrome.cast.media.ResumeState",chrome.cast.media.nb);chrome.cast.media.ua={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};w("chrome.cast.media.StreamType",chrome.cast.media.ua);
chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};w("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.zb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};w("chrome.cast.media.TrackType",chrome.cast.media.zb);chrome.cast.media.wb={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};w("chrome.cast.media.TextTrackType",chrome.cast.media.wb);
chrome.cast.media.sb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};w("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.sb);chrome.cast.media.xb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};w("chrome.cast.media.TextTrackWindowType",chrome.cast.media.xb);
chrome.cast.media.tb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};w("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.tb);chrome.cast.media.ub={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};w("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.ub);chrome.cast.media.ka=function(){this.customData=null};w("chrome.cast.media.GetStatusRequest",chrome.cast.media.ka);chrome.cast.media.la=function(){this.customData=null};w("chrome.cast.media.PauseRequest",chrome.cast.media.la);chrome.cast.media.ma=function(){this.customData=null};w("chrome.cast.media.PlayRequest",chrome.cast.media.ma);chrome.cast.media.ob=function(){this.customData=this.resumeState=this.currentTime=null};w("chrome.cast.media.SeekRequest",chrome.cast.media.ob);
chrome.cast.media.ta=function(){this.customData=null};w("chrome.cast.media.StopRequest",chrome.cast.media.ta);chrome.cast.media.Cb=function(a){this.volume=a;this.customData=null};w("chrome.cast.media.VolumeRequest",chrome.cast.media.Cb);chrome.cast.media.Za=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.customData=this.currentTime=null};w("chrome.cast.media.LoadRequest",chrome.cast.media.Za);
chrome.cast.media.hb=function(a){this.type="PRECACHE";this.requestId=0;this.precacheData=a};chrome.cast.media.Va=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};w("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Va);chrome.cast.media.Xa=function(){this.metadataType=this.type=chrome.cast.media.l.GENERIC;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=null};w("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.Xa);
chrome.cast.media.cb=function(){this.metadataType=this.type=chrome.cast.media.l.MOVIE;this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=null};w("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.cb);chrome.cast.media.Ab=function(){this.metadataType=this.type=chrome.cast.media.l.TV_SHOW;this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=null};
w("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ab);chrome.cast.media.eb=function(){this.metadataType=this.type=chrome.cast.media.l.MUSIC_TRACK;this.releaseDate=this.releaseYear=this.images=this.discNumber=this.trackNumber=this.artistName=this.songName=this.composer=this.artist=this.albumArtist=this.title=this.albumName=null};w("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.eb);
chrome.cast.media.gb=function(){this.metadataType=this.type=chrome.cast.media.l.PHOTO;this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=null};w("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.gb);chrome.cast.media.bb=function(a,b){this.contentId=a;this.streamType=chrome.cast.media.ua.BUFFERED;this.contentType=b;this.customData=this.textTrackStyle=this.tracks=this.duration=this.metadata=null};
w("chrome.cast.media.MediaInfo",chrome.cast.media.bb);chrome.cast.media.oa=function(a){this.itemId=null;this.media=a;this.autoplay=!0;this.startTime=0;this.playbackDuration=null;this.preloadTime=0;this.customData=this.activeTrackIds=null};w("chrome.cast.media.QueueItem",chrome.cast.media.oa);chrome.cast.media.Qa="CC1AD845";w("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Qa);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;w("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.O=0;w("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.O);chrome.cast.media.timeout.play=0;w("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;w("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;w("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;w("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.S=0;w("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.S);chrome.cast.media.timeout.N=0;w("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.N);chrome.cast.media.timeout.j=0;w("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.j);chrome.cast.media.yb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};w("chrome.cast.media.Track",chrome.cast.media.yb);
chrome.cast.media.vb=function(){this.customData=this.fontStyle=this.fontGenericFamily=this.fontFamily=this.fontScale=this.windowRoundedCornerRadius=this.windowColor=this.windowType=this.edgeColor=this.edgeType=this.backgroundColor=this.foregroundColor=null};w("chrome.cast.media.TextTrackStyle",chrome.cast.media.vb);chrome.cast.media.ib=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.V.OFF;this.customData=null};
w("chrome.cast.media.QueueLoadRequest",chrome.cast.media.ib);chrome.cast.media.na=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};w("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.na);chrome.cast.media.jb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};w("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.jb);
chrome.cast.media.L=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};w("chrome.cast.media.QueueJumpRequest",chrome.cast.media.L);chrome.cast.media.ra=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};w("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.ra);
chrome.cast.media.pa=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};w("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.pa);chrome.cast.media.qa=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};w("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.qa);var Ca=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f="string"==typeof a?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},Da=function(a,b){for(var c=a.length,d="string"==typeof a?a.split(""):a,f=0;f<c;f++)if(f in d&&b.call(void 0,d[f],f,a))return f;return-1};chrome.cast.media.a=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.playbackRate=1;this.playerState=chrome.cast.media.F.IDLE;this.currentTime=0;this.g=-1;this.supportedMediaCommands=[];this.volume=new chrome.cast.Volume;this.items=this.preloadedItemId=this.loadingItemId=this.currentItemId=this.customData=this.activeTrackIds=this.idleReason=null;this.repeatMode=chrome.cast.media.V.OFF;this.f=!1;this.b=[]};w("chrome.cast.media.Media",chrome.cast.media.a);
chrome.cast.media.a.prototype.O=function(a,b,c){a||(a=new chrome.cast.media.ka);x.b(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.O)};chrome.cast.media.a.prototype.getStatus=chrome.cast.media.a.prototype.O;chrome.cast.media.a.prototype.play=function(a,b,c){this.Aa(x,a,b,c)};chrome.cast.media.a.prototype.play=chrome.cast.media.a.prototype.play;chrome.cast.media.a.prototype.Aa=function(a,b,c,d){b||(b=new chrome.cast.media.ma);a.b(this,"PLAY",b,c,d,chrome.cast.media.timeout.play)};
chrome.cast.media.a.prototype.playWithContext=chrome.cast.media.a.prototype.Aa;chrome.cast.media.a.prototype.pause=function(a,b,c){this.za(x,a,b,c)};chrome.cast.media.a.prototype.pause=chrome.cast.media.a.prototype.pause;chrome.cast.media.a.prototype.za=function(a,b,c,d){b||(b=new chrome.cast.media.la);a.b(this,"PAUSE",b,c,d,chrome.cast.media.timeout.pause)};chrome.cast.media.a.prototype.pauseWithContext=chrome.cast.media.a.prototype.za;
chrome.cast.media.a.prototype.seek=function(a,b,c){x.b(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};chrome.cast.media.a.prototype.seek=chrome.cast.media.a.prototype.seek;chrome.cast.media.a.prototype.stop=function(a,b,c){a||(a=new chrome.cast.media.ta);x.b(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};chrome.cast.media.a.prototype.stop=chrome.cast.media.a.prototype.stop;chrome.cast.media.a.prototype.S=function(a,b,c){x.b(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.S)};
chrome.cast.media.a.prototype.setVolume=chrome.cast.media.a.prototype.S;chrome.cast.media.a.prototype.N=function(a,b,c){x.b(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.N)};chrome.cast.media.a.prototype.editTracksInfo=chrome.cast.media.a.prototype.N;chrome.cast.media.a.prototype.Sb=function(a,b,c){x.b(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueInsertItems=chrome.cast.media.a.prototype.Sb;
chrome.cast.media.a.prototype.Rb=function(a,b,c){x.b(this,"QUEUE_INSERT",new chrome.cast.media.na([a]),b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueAppendItem=chrome.cast.media.a.prototype.Rb;chrome.cast.media.a.prototype.cc=function(a,b,c){x.b(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueUpdateItems=chrome.cast.media.a.prototype.cc;
chrome.cast.media.a.prototype.Xb=function(a,b){var c=new chrome.cast.media.L;c.jump=-1;x.b(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queuePrev=chrome.cast.media.a.prototype.Xb;chrome.cast.media.a.prototype.Wb=function(a,b){var c=new chrome.cast.media.L;c.jump=1;x.b(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueNext=chrome.cast.media.a.prototype.Wb;
chrome.cast.media.a.prototype.Tb=function(a,b,c){if(!(0>y(this,a))){var d=new chrome.cast.media.L;d.currentItemId=a;x.b(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.j)}};chrome.cast.media.a.prototype.queueJumpToItem=chrome.cast.media.a.prototype.Tb;chrome.cast.media.a.prototype.bc=function(a,b,c){var d=new chrome.cast.media.ra;d.repeatMode=a;x.b(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueSetRepeatMode=chrome.cast.media.a.prototype.bc;
chrome.cast.media.a.prototype.Zb=function(a,b,c){x.b(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueRemoveItems=chrome.cast.media.a.prototype.Zb;chrome.cast.media.a.prototype.Yb=function(a,b,c){0>y(this,a)||x.b(this,"QUEUE_REMOVE",new chrome.cast.media.pa([a]),b,c,chrome.cast.media.timeout.j)};chrome.cast.media.a.prototype.queueRemoveItem=chrome.cast.media.a.prototype.Yb;chrome.cast.media.a.prototype.ac=function(a,b,c){x.b(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.j)};
chrome.cast.media.a.prototype.queueReorderItems=chrome.cast.media.a.prototype.ac;chrome.cast.media.a.prototype.Vb=function(a,b,c,d){var f=y(this,a);if(!(0>f))if(0>b)d&&d(new chrome.cast.Error(chrome.cast.m.INVALID_PARAMETER));else if(f==b)c&&c();else{var g=null;b=b>f?b+1:b;b<this.items.length&&(g=this.items[b]);a=new chrome.cast.media.qa([a]);a.insertBefore=g?g.itemId:null;x.b(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.j)}};chrome.cast.media.a.prototype.queueMoveItemToNewIndex=chrome.cast.media.a.prototype.Vb;
chrome.cast.media.a.prototype.nc=function(a){return-1<this.supportedMediaCommands.indexOf(a)};chrome.cast.media.a.prototype.supportsCommand=chrome.cast.media.a.prototype.nc;chrome.cast.media.a.prototype.Kb=function(){if(this.playerState==chrome.cast.media.F.PLAYING&&0<=this.g){var a=this.currentTime+(Date.now()-this.g)/1E3*this.playbackRate;this.media&&null!=this.media.duration&&a>this.media.duration&&(a=this.media.duration);0>a&&(a=0);return a}return this.currentTime};
chrome.cast.media.a.prototype.getEstimatedTime=chrome.cast.media.a.prototype.Kb;chrome.cast.media.a.prototype.Y=function(a){this.H(x,a)};chrome.cast.media.a.prototype.addUpdateListener=chrome.cast.media.a.prototype.Y;chrome.cast.media.a.prototype.H=function(a,b){a.Fb(this,b)};chrome.cast.media.a.prototype.addUpdateListenerWithContext=chrome.cast.media.a.prototype.H;chrome.cast.media.a.prototype.ba=function(a){this.K(x,a)};chrome.cast.media.a.prototype.removeUpdateListener=chrome.cast.media.a.prototype.ba;
chrome.cast.media.a.prototype.K=function(a,b){x.ec(this,b)};chrome.cast.media.a.prototype.removeUpdateListenerWithContext=chrome.cast.media.a.prototype.K;var y=function(a,b){return Da(a.items,function(a){return a.itemId==b})};var x=null;var Ea=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Fa=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ga=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.c=function(a,b,c,d,f){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=f;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.G.CONNECTED;this.transportId=""};w("chrome.cast.Session",chrome.cast.c);chrome.cast.c.prototype.lc=function(a,b,c){this.Ha(x,a,b,c)};chrome.cast.c.prototype.setReceiverVolumeLevel=chrome.cast.c.prototype.lc;
chrome.cast.c.prototype.Ha=function(a,b,c,d){b=new Fa(new chrome.cast.Volume(b,null),this.receiver.volume);a.setReceiverVolume(this.sessionId,b,c,d)};chrome.cast.c.prototype.setReceiverVolumeLevelWithContext=chrome.cast.c.prototype.Ha;chrome.cast.c.prototype.kc=function(a,b,c){this.Ga(x,a,b,c)};chrome.cast.c.prototype.setReceiverMuted=chrome.cast.c.prototype.kc;
chrome.cast.c.prototype.Ga=function(a,b,c,d){a=new Fa(new chrome.cast.Volume(null,b),this.receiver.volume);x.setReceiverVolume(this.sessionId,a,c,d)};chrome.cast.c.prototype.setReceiverMutedWithContext=chrome.cast.c.prototype.Ga;chrome.cast.c.prototype.Mb=function(a,b){x.leaveSession(this.sessionId,a,b)};chrome.cast.c.prototype.leave=chrome.cast.c.prototype.Mb;chrome.cast.c.prototype.stop=function(a,b){this.Ja(x,a,b)};chrome.cast.c.prototype.stop=chrome.cast.c.prototype.stop;
chrome.cast.c.prototype.Ja=function(a,b,c){a.Ea(new Ga(this.sessionId),b,c,chrome.cast.timeout.stopSession)};chrome.cast.c.prototype.stopWithContext=chrome.cast.c.prototype.Ja;chrome.cast.c.prototype.sendMessage=function(a,b,c,d){this.Fa(x,a,b,c,d)};chrome.cast.c.prototype.sendMessage=chrome.cast.c.prototype.sendMessage;chrome.cast.c.prototype.Fa=function(a,b,c,d,f){a.hc(new Ea(this.sessionId,b,c),d,f)};chrome.cast.c.prototype.sendMessageWithContext=chrome.cast.c.prototype.Fa;
chrome.cast.c.prototype.Y=function(a){this.H(x,a)};chrome.cast.c.prototype.addUpdateListener=chrome.cast.c.prototype.Y;chrome.cast.c.prototype.H=function(a,b){a.Hb(this.sessionId,b)};chrome.cast.c.prototype.addUpdateListenerWithContext=chrome.cast.c.prototype.H;chrome.cast.c.prototype.ba=function(a){this.K(x,a)};chrome.cast.c.prototype.removeUpdateListener=chrome.cast.c.prototype.ba;chrome.cast.c.prototype.K=function(a,b){a.gc(this.sessionId,b)};
chrome.cast.c.prototype.removeUpdateListenerWithContext=chrome.cast.c.prototype.K;chrome.cast.c.prototype.Gb=function(a,b){this.xa(x,a,b)};chrome.cast.c.prototype.addMessageListener=chrome.cast.c.prototype.Gb;chrome.cast.c.prototype.xa=function(a,b,c){a.Eb(this.sessionId,b,c)};chrome.cast.c.prototype.addMessageListenerWithContext=chrome.cast.c.prototype.xa;chrome.cast.c.prototype.W=function(a){this.wa(x,a)};chrome.cast.c.prototype.addMediaListener=chrome.cast.c.prototype.W;
chrome.cast.c.prototype.wa=function(a,b){a.W(this.sessionId,b)};chrome.cast.c.prototype.addMediaListenerWithContext=chrome.cast.c.prototype.wa;chrome.cast.c.prototype.Z=function(a){this.Ba(x,a)};chrome.cast.c.prototype.removeMediaListener=chrome.cast.c.prototype.Z;chrome.cast.c.prototype.Ba=function(a,b){a.Z(this.sessionId,b)};chrome.cast.c.prototype.removeMediaListenerWithContext=chrome.cast.c.prototype.Ba;chrome.cast.c.prototype.fc=function(a,b){this.Ca(x,a,b)};
chrome.cast.c.prototype.removeMessageListener=chrome.cast.c.prototype.fc;chrome.cast.c.prototype.Ca=function(a,b,c){a.dc(this.sessionId,b,c)};chrome.cast.c.prototype.removeMessageListenerWithContext=chrome.cast.c.prototype.Ca;chrome.cast.c.prototype.Nb=function(a,b,c){a.sessionId=this.sessionId;x.ia(a,"LOAD",b,c)};chrome.cast.c.prototype.loadMedia=chrome.cast.c.prototype.Nb;chrome.cast.c.prototype.Ub=function(a,b,c){a.sessionId=this.sessionId;x.ia(a,"QUEUE_LOAD",b,c)};
chrome.cast.c.prototype.queueLoad=chrome.cast.c.prototype.Ub;var z="StopIteration"in q?q.StopIteration:{message:"StopIteration",stack:""},A=function(){};A.prototype.next=function(){throw z;};A.prototype.o=function(){return this};
var Ha=function(a){if(a instanceof A)return a;if("function"==typeof a.o)return a.o(!1);if(u(a)){var b=0,c=new A;c.next=function(){for(;;){if(b>=a.length)throw z;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},B=function(a,b){if(u(a))try{Ca(a,b,void 0)}catch(c){if(c!==z)throw c;}else{a=Ha(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==z)throw c;}}};var C=function(a,b){this.b={};this.h=[];this.g=this.f=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof C)for(D(a),c=a.h.concat(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};C.prototype.I=function(){D(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.b[this.h[b]]);return a};C.prototype.clear=function(){this.b={};this.g=this.f=this.h.length=0};
C.prototype.remove=function(a){return E(this.b,a)?(delete this.b[a],this.f--,this.g++,this.h.length>2*this.f&&D(this),!0):!1};var D=function(a){if(a.f!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];E(a.b,d)&&(a.h[c++]=d);b++}a.h.length=c}if(a.f!=a.h.length){var f={};for(c=b=0;b<a.h.length;)d=a.h[b],E(f,d)||(a.h[c++]=d,f[d]=1),b++;a.h.length=c}};C.prototype.get=function(a,b){return E(this.b,a)?this.b[a]:b};
C.prototype.set=function(a,b){E(this.b,a)||(this.f++,this.h.push(a),this.g++);this.b[a]=b};C.prototype.o=function(a){D(this);var b=0,c=this.g,d=this,f=new A;f.next=function(){if(c!=d.g)throw Error("The map has changed since the iterator was created");if(b>=d.h.length)throw z;var f=d.h[b++];return a?f:d.b[f]};return f};var E=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var F=function(a,b){this.requestId=a;this.i=b;this.Ka=null};F.prototype.f=function(){};var Ia=function(){this.b=new C},Ja=function(a,b){a.b.set(b.requestId,b);b.Ka=setTimeout(function(){a.b.remove(b.requestId);b.f()},b.i)},Ka=function(a,b){var c=a.b.get(b);if(!c)return null;clearTimeout(c.Ka);a.b.remove(b);return c};var G=function(a,b,c,d){F.call(this,a,d||6E5);this.g=b;this.b=c};ea(G,F);G.prototype.f=function(){this.b(new chrome.cast.Error(chrome.cast.m.TIMEOUT))};var H=function(a,b,c,d){this.type=a;this.message=b;this.sequenceNumber=void 0!==c?c:-1;this.timeoutMillis=d||0;this.clientId=""};var I=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="AssertionError";this.message=void 0===a?"":a;Error.captureStackTrace?Error.captureStackTrace(this,I):this.stack=Error().stack};ea(I,Error);var J=function(a){this.b=a},Ma=function(a){var b=La.get(a);b||(b=new J(a),La.set(a,b));return b};J.prototype.log=function(a,b,c){if(!(1>a)){"function"==typeof b&&(b=b());if("string"!=typeof b)throw new I("Expected message to be a string.");var d={rc:this.b,level:a,time:Date.now(),message:b,qc:c};Na.forEach(function(a){return a(d)})}};J.prototype.error=function(a,b){this.log(3,a,b)};var L=function(a){K.log(1,a,void 0)},Na=[],La=new Map;var M=function(a){this.g=a;this.f=String(Date.now())+String(Math.floor(1E5*Math.random()));this.b=null},Oa=function(a,b){if(!a.b)return N.error("No active session"),"No active session";b.clientId=a.f;b=JSON.stringify(b);if(32768<b.length)return N.error("Message length over limit"),"Message length over limit";N.log(0,"Send "+b,void 0);a.b.send(b);return null};M.prototype.connect=function(a){this.b=a;this.b.onmessage=v(this.i,this);Oa(this,new H("client_connect",this.f))};
M.prototype.disconnect=function(){this.b.close();this.b=null};M.prototype.i=function(a){N.log(0,"Receive "+a.data,void 0);a=JSON.parse(a.data);if(a.clientId==this.f)this.g.onMessage(a)};var N=Ma("mr.cast.ExtensionMessenger");var Pa=function(a,b,c){this.g=a;this.f=b;this.b=c},Qa=function(a){var b="cast-dial:"+a.g,c=new URLSearchParams;a.f&&c.set("dialPostData",a.f);a.b&&c.set("clientId",a.b);(a=c.toString())&&(b+="?"+a);return b};var Ra=function(a,b,c,d,f,g,l,p,t,W){this.w=a;this.b=b||null;this.f=c||null;this.s=d||null;this.u=void 0!==f?f:null;this.v=g||null;this.C=l||null;this.B=p||!1;this.i=t||null;this.g=W||null},Sa=function(a){var b=a.w.map(function(b){var c="cast:"+b.appId,f=new URLSearchParams;b.capabilities&&0<b.capabilities.length&&f.set("capabilities",b.capabilities.join(","));a.b&&f.set("clientId",a.b);a.f&&f.set("autoJoinPolicy",a.f);a.s&&f.set("defaultActionPolicy",a.s);null!=a.u&&f.set("launchTimeout",String(a.u));
a.B&&f.set("invisibleSender","true");a.i&&(f.set("broadcastNamespace",a.i),f.set("broadcastId",String(Math.random())));a.g&&f.set("broadcastMessage",encodeURIComponent(JSON.stringify(a.g)));return c+"?"+f.toString()});a.v&&b.push(Qa(new Pa(a.v,a.C,a.b)));return b};var Ta=function(){this.b={};this.f={}},Ua=function(a,b,c){var d=a.b[b];return d?(d.status=c,d.media.forEach(function(b){delete a.f[b.sessionId+"#"+b.mediaSessionId]}),delete a.b[b],!0):!1},Wa=function(a,b){var c=a.b[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.c(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver);for(var d in b)"media"==d?c.media=b.media.map(function(b){b=Va(a,b);b.i=!1;b.f=!0;return b}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.b[b.sessionId]=c},Va=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.f[c];d||(d=new chrome.cast.media.a(b.sessionId,b.mediaSessionId),a.f[c]=d,(a=a.b[b.sessionId])&&a.media.push(d));a=d;a.currentItemId=null;a.loadingItemId=null;a.preloadedItemId=null;for(var f in b)"items"!=f&&b.hasOwnProperty(f)&&("volume"==f?(a.volume.level=b.volume.level,a.volume.muted=b.volume.muted):a[f]=b[f]);f=la(["idleReason","extendedStatus"]);for(c=f.next();!c.done;c=f.next())c=
c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.g=Date.now());if(a.playerState==chrome.cast.media.F.IDLE&&null==a.loadingItemId)a.currentItemId=null,a.loadingItemId=null,a.preloadedItemId=null,a.items=null;else if(b.hasOwnProperty("items")&&b.items){f=[];var g=a.items;c={};if(g)for(var l=0;l<g.length;l++)c[g[l].itemId]=l;b=la(b.items);for(g=b.next();!g.done;g=b.next()){g=g.value;if(!g.media){l=g.itemId;var p=a.items?a.items[c[l]]:null;p&&p.media?g.media=p.media:l==a.currentItemId&&
a.media&&(g.media=a.media)}f.push(Xa(g))}a.items=f}return d},Ya=function(a,b){delete a.f[b.sessionId+"#"+b.mediaSessionId];if(a=a.b[b.sessionId])b=a.media.indexOf(b),-1!=b&&a.media.splice(b,1)},Xa=function(a){var b=new chrome.cast.media.oa(a.media),c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b};var Za=function(){};var O;a:{var $a=q.navigator;if($a){var ab=$a.userAgent;if(ab){O=ab;break a}}O=""}var P=function(a){return-1!=O.indexOf(a)};var bb=P("Opera"),cb=P("Gecko")&&!(-1!=O.toLowerCase().indexOf("webkit")&&!P("Edge"))&&!(P("Trident")||P("MSIE"))&&!P("Edge"),db=-1!=O.toLowerCase().indexOf("webkit")&&!P("Edge");var Q=function(a,b,c){this.i=null!=c?v(a,c):a;this.g=b;this.f=v(this.Pb,this);this.b=[]};ra(Q,Za);e=Q.prototype;e.D=!1;e.J=0;e.A=null;e.Jb=function(a){this.b=arguments;this.A||this.J?this.D=!0:R(this)};e.stop=function(){this.A&&(q.clearTimeout(this.A),this.A=null,this.D=!1,this.b=[])};e.pause=function(){this.J++};e.resume=function(){this.J--;this.J||!this.D||this.A||(this.D=!1,R(this))};e.Pb=function(){this.A=null;this.D&&!this.J&&(this.D=!1,R(this))};
var R=function(a){var b=a.f;var c=a.g;if("function"!=r(b))if(b&&"function"==typeof b.handleEvent)b=v(b.handleEvent,b);else throw Error("Invalid listener argument");b=2147483647<Number(c)?-1:q.setTimeout(b,c||0);a.A=b;a.i.apply(null,a.b)};var eb=P("Safari")&&!((P("Chrome")||P("CriOS"))&&!P("Edge")||P("Coast")||P("Opera")||P("Edge")||P("Silk")||P("Android"))&&!(P("iPhone")&&!P("iPod")&&!P("iPad")||P("iPad")||P("iPod"));var S=null,fb=cb||db&&!eb||bb||"function"==typeof q.btoa,gb=function(a){if(fb)var b=q.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){var f=a.charCodeAt(d);255<f&&(b[c++]=f&255,f>>=8);b[c++]=f}if(!S)for(S={},a=0;65>a;a++)S[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a);a=S;c=[];for(d=0;d<b.length;d+=3){var g=b[d],l=(f=d+1<b.length)?b[d+1]:0,p=d+2<b.length,t=p?b[d+2]:0,W=g>>2;g=(g&3)<<4|l>>4;l=(l&15)<<2|t>>6;t&=63;p||(t=64,f||(l=64));c.push(a[W],a[g],a[l],a[t])}b=
c.join("")}return b};var hb=function(a){if(a.I&&"function"==typeof a.I)return a.I();if("string"==typeof a)return a.split("");if(u(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b};var T=function(){this.b=new C},ib=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[na]||(a[na]=++oa)):b.substr(0,1)+a};e=T.prototype;e.add=function(a){this.b.set(ib(a),a)};e.removeAll=function(a){a=hb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};e.remove=function(a){return this.b.remove(ib(a))};e.clear=function(){this.b.clear()};e.contains=function(a){a=ib(a);return E(this.b.b,a)};e.I=function(){return this.b.I()};e.o=function(){return this.b.o(!1)};var U=function(){this.v=new M(this);this.f=null;this.T=new Ta;this.i=0;this.fa=new Ia;this.w=new C;this.ga=!1;this.u=new C;this.C=new C;this.R=[];this.Pa=this.Ib.bind(this);this.g=null;this.B=0;this.s=null;this.Oa=new Q(this.Wa,200,this);this.La=null},jb=function(a){var b=new chrome.cast.Error(chrome.cast.m.INVALID_PARAMETER,"Already requesting session");a&&a(b)},V=function(a,b,c,d){c&&Ja(a.fa,c);void 0!==d?b.sequenceNumber=d:(b.sequenceNumber=a.i,a.i=(a.i+1)%9007199254740992);d=Oa(a.v,b);c&&d&&(a=
Ka(a.fa,b.sequenceNumber),b=new chrome.cast.Error(chrome.cast.m.INVALID_PARAMETER,d),(a=a.b)&&a(b))};
U.prototype.P=function(a,b){var c=this;x=this;this.f||(this.f=a,a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(a){a.onchange=function(){c.ga=!!a.value;c.f.receiverListener(a.value?chrome.cast.M.AVAILABLE:chrome.cast.M.UNAVAILABLE)};a.onchange()},function(){c.f.receiverListener(chrome.cast.M.AVAILABLE)}),a.onconnectionavailable=function(a){Y(c,a.connection)},this.La=(q.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ma).then(function(a){Y(c,
a)},ma)));b&&b(void 0)};U.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.La};
var Y=function(a,b,c){c=void 0===c?null:c;b.onclose=function(b){a.g=null;switch(b.reason){case "closed":kb(a,chrome.cast.G.DISCONNECTED);break;case "error":c&&(b=new chrome.cast.Error(chrome.cast.m.SESSION_ERROR),c&&c(b))}};b.onterminate=function(){kb(a,chrome.cast.G.STOPPED)};"connected"==b.state?a.v.connect(b):b.onconnect=function(){a.v.connect(b)}},nb=function(a){var b=Z;lb.has(a.type)?b.ga&&(b.s?(a.sessionId=b.s,mb(b,null,a.type,a,function(){L("Send Broadcast directly succeeded")},function(a){K.error("Send Broadcast directly failed with code "+
a.code)})):b.Oa.Jb(X(b,void 0,"urn:x-cast:com.google.cast.media",a))):K.error("Unsupported broadcast message type - "+a.type)};U.prototype.Wa=function(a){L("Broadcast request "+a);(a=(new PresentationRequest(a)).getAvailability())?a.then(function(){L("Broadcast succeeded")},function(){K.log(2,"Broadcast failed",void 0)}):K.error("presentationRequest.getAvailability return undefined")};
U.prototype.requestSession=function(a,b,c){var d=this;this.g?jb(b):(c=X(this,c),this.g=a,(new PresentationRequest(c)).start().then(function(a){Y(d,a,b)}).catch(function(a){d.g=null;a=new chrome.cast.Error("AbortError"==a.name||"NotAllowedError"==a.name?chrome.cast.m.CANCEL:chrome.cast.m.SESSION_ERROR);b&&b(a)}))};
var X=function(a,b,c,d){var f=null,g=null,l=b||a.f.sessionRequest,p=l.dialRequest;p&&(f=p.appName,(g=p.launchParameter)&&!g.match(ob)&&(g=gb(g)));var t=[];t.push({appId:l.appId,capabilities:l.capabilities});b||Ca(a.f.additionalSessionRequests,function(a){t.push({appId:a.appId,capabilities:a.capabilities})});return Sa(new Ra(t,a.v.f,a.f.autoJoinPolicy,a.f.defaultActionPolicy,l.requestSessionTimeout,f,g,a.f.invisibleSender,c,d))};
U.prototype.ia=function(a,b,c,d){var f=this;this.B++;mb(this,null,b,a,function(a){f.B--;a.f=!0;c&&c(a)},function(a){f.B--;d(a)},chrome.cast.media.timeout.load)};U.prototype.b=function(a,b,c,d,f,g){var l=this;mb(this,a,b,c,function(a){l.ya(a);d&&d(void 0)},f,g)};
var mb=function(a,b,c,d,f,g,l){d.type=c;null!=b&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Ea(d,function(a){a.status&&1==a.status.length?f&&f(a.status[0]):(a=new chrome.cast.Error(chrome.cast.m.SESSION_ERROR),g&&g(a))},g,l)};e=U.prototype;e.setReceiverVolume=function(a,b,c,d){b.sessionId=a;V(this,new H("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new G(this.i,c,d,chrome.cast.timeout.sendCustomMessage))};
e.ca=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.fb+a).then(function(a){Y(b,a)},ma)};e.leaveSession=function(a,b,c){V(this,new H("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new G(this.i,b,c,chrome.cast.timeout.leaveSession))};e.hc=function(a,b,c){V(this,new H("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new G(this.i,b,c,chrome.cast.timeout.sendCustomMessage))};
e.Ea=function(a,b,c,d){V(this,new H("v2_message",a,void 0,d),new G(this.i,b,c,d))};var pb=function(a,b,c){var d=a.get(b);d||(d=new T,a.set(b,d));d.add(c)};e=U.prototype;e.Hb=function(a,b){pb(this.w,a,b)};e.gc=function(a,b){(a=this.w.get(a))&&a.remove(b)};e.X=function(a){this.R.push(a)};e.aa=function(a){a=this.R.indexOf(a);0<=a&&this.R.splice(a,1)};e.Eb=function(a,b,c){var d=this.u.get(a);d||(d=new C,this.u.set(a,d));a=d.get(b);a||(a=new T,d.set(b,a));a.add(c)};
e.dc=function(a,b,c){(a=this.u.get(a))&&(b=a.get(b))&&b.remove(c)};e.W=function(a,b){pb(this.C,a,b)};e.Z=function(a,b){(a=this.C.get(a))&&a.remove(b)};e.Fb=function(a,b){-1==a.b.indexOf(b)&&a.b.push(b)};e.ec=function(a,b){b=a.b.indexOf(b);-1!=b&&a.b.splice(b,1)};e.ya=function(a){if(a.f){var b=a.playerState!=chrome.cast.media.F.IDLE||null!=a.loadingItemId;a.b.forEach(function(a){a(b)});b||Ya(this.T,a)}else if(!(0<this.B)){a.f=!0;var c=this.C.get(a.sessionId);c&&B(c.o(),function(b){b(a)})}};
e.Ib=function(a){return Va(this.T,a)};var kb=function(a,b){if(a.s){var c=a.s;a.s=null;a.v.disconnect();var d=b!=chrome.cast.G.STOPPED;Ua(a.T,c,b)&&(a.u.remove(c),a.C.remove(c),b=a.w.get(c))&&(a.w.remove(c),B(b.o(),function(a){a(d)}))}};
U.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Wa(this.T,a.message);break;case "v2_message":var b=a.message;b&&"MEDIA_STATUS"==b.type&&b.status&&(b.status=b.status.map(this.Pa))}if(b=Ka(this.fa,a.sequenceNumber))"error"==a.type?(b=b.b)&&b(a.message):(b=b.g)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":qb(this,b);break;case "new_session":this.s=b.sessionId;this.g?(this.g(b),this.g=null):this.f&&this.f.sessionListener(b);break;
case "update_session":rb(this,b);break;case "app_message":sb(this,b);break;case "v2_message":"MEDIA_STATUS"==b.type&&b.status.forEach(this.ya.bind(this));break;case "custom_dial_launch":tb(this,a.sequenceNumber,b)}};
var rb=function(a,b){(a=a.w.get(b.sessionId))&&B(a.o(),function(a){a(!0)})},qb=function(a,b){a.R.forEach(function(a){a(b.receiver,b.action)})},sb=function(a,b){(a=a.u.get(b.sessionId))&&(a=a.get(b.namespaceName))&&B(a.o(),function(a){a(b.namespaceName,b.message)})},ub=function(a,b,c){V(a,new H("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},tb=function(a,b,c){a.f.customDialLaunchCallback?a.f.customDialLaunchCallback(c).then(function(c){ub(a,b,c)},function(){ub(a,b)}):
ub(a,b)},ob=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,lb=new Set(["PRECACHE"]),Z=new U,K=Ma("mr.cast.Api");chrome.cast.P=function(a,b,c){Z.P(a,b,c)};w("chrome.cast.initialize",chrome.cast.P);chrome.cast.Lb=function(a,b,c){var d=new U;d.P(a,b,c);return d};w("chrome.cast.initializeWithContext",chrome.cast.Lb);chrome.cast.da=function(a){Z.da(a)};w("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};w("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Qb=function(a){nb(new chrome.cast.media.hb(a))};w("chrome.cast.precache",chrome.cast.Qb);
chrome.cast.ca=function(a){chrome.cast.Da(Z,a)};w("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.Da=function(a,b){a.ca(b)};w("chrome.cast.requestSessionByIdWithContext",chrome.cast.Da);chrome.cast.X=function(a){Z.X(a)};w("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};w("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Ob=function(){};w("chrome.cast.logMessage",chrome.cast.Ob);chrome.cast.ic=function(a,b){b()};
w("chrome.cast.setCustomReceivers",chrome.cast.ic);chrome.cast.jc=function(a,b){b()};w("chrome.cast.setReceiverDisplayStatus",chrome.cast.jc);chrome.cast.unescape=function(a){return-1!=a.indexOf("&")?"document"in q?Aa(a):Ba(a):a};w("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;w("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Ia=!1;
chrome.cast.ea=function(){if(!chrome.cast.Ia){chrome.cast.Ia=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&"function"==typeof a&&a(!0)}};"complete"==document.readyState?chrome.cast.ea():(window.addEventListener("load",chrome.cast.ea,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ea,!1));}).call(this);
(function(){'use strict';var b,m=m||{};m.scope={};var n=n||{};n.global=this;n.Ma=function(a){return void 0!==a};n.K=function(a){return"string"==typeof a};n.Pb=function(a){return"boolean"==typeof a};n.Cb=function(a){return"number"==typeof a};n.Kc=function(a,c,d){a=a.split(".");d=d||n.global;a[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&n.Ma(c)?d[e]=c:d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}};n.define=function(a,c){n.Kc(a,c)};n.Ba=!0;
n.dl="en";n.Ac=!0;n.qg=!1;n.nf=!n.Ba;n.qk=!1;n.Ep=function(a){if(n.Qb())throw Error("goog.provide cannot be used within a module.");n.ye()&&n.Le("goog.provide should not be used within a module.");n.Qd(a)};n.Qd=function(a,c){n.Kc(a,c)};n.wo=function(){null===n.Fc&&(n.Fc=n.Gh()||"");return n.Fc};n.Uf=/^[\w+/_-]+[=]{0,2}$/;n.Fc=null;n.Gh=function(){var a=n.global.document.querySelector("script[nonce]");return a&&(a=a.nonce||a.getAttribute("nonce"))&&n.Uf.test(a)?a:null};n.Bg=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
n.Xc=function(a){if(!n.K(a)||!a||-1==a.search(n.Bg))throw Error("Invalid module identifier");if(!n.Qb())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");
if(n.aa.Ub)throw Error("goog.module may only be called once per module.");n.aa.Ub=a};n.Xc.get=function(){return null};n.Xc.b=function(){return null};n.Jb={rf:"es6",hc:"goog"};n.aa=null;n.ai=function(){return n.Qb()||n.ye()};n.Qb=function(){return!!n.aa&&n.aa.type==n.Jb.hc};n.ye=function(){if(n.aa&&n.aa.type==n.Jb.rf)return!0;var a=n.global.$jscomp;return a?"function"!=typeof a.nh?!1:!!a.nh():!1};n.he=function(){return n.aa&&n.aa.path};n.Xc.Gc=function(){n.aa.Gc=!0};
n.bd=function(a){if(n.nf)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};n.jo=function(){};n.ke=function(a){a=a.split(".");for(var c=n.global,d=0;d<a.length;d++)if(c=c[a[d]],!n.Wh(c))return null;return c};n.Bo=function(a,c){c=c||n.global;for(var d in a)c[d]=a[d]};n.Cm=function(){};n.xq=!1;n.rk=!0;n.Le=function(a){n.global.console&&n.global.console.error(a)};n.gi=function(a){return 0==a.indexOf("./")||0==a.indexOf("../")};
n.Np=function(a){if(n.gi(a))if(n.Qb()){if(!n.he())throw Error("Current module has no path information. Was it loaded via goog.loadModule without a path argument?");n.xi(n.he()+"/../"+a)}else throw Error("Cannot require by path outside of goog.modules.");};n.Lg="";n.Va=function(){};n.Am=function(){throw Error("unimplemented abstract method");};n.Dg=function(){var a=chrome.cast.a.C.Ld;a.jb=void 0;a.fe=function(){if(a.jb)return a.jb;n.Ba&&(n.se[n.se.length]=a);return a.jb=new a}};n.se=[];n.cl=!0;
n.ng=n.Ba;n.Ke={};n.Qj=!1;n.mm="detect";n.sg="transpile.js";n.Pc=null;n.gj=function(){if(null==n.Pc){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(c){a=!1}n.Pc=a}return n.Pc};n.hj=function(a){return"(function(){"+a+"\n;})();\n"};
n.kp=function(a,c){var d=n.aa;try{n.aa={Ub:"",Gc:!1,type:n.Jb.hc,path:c};if(n.xa(a))var e=a.call(void 0,{});else if(n.K(a))n.gj()&&(a=n.hj(a)),e=n.li.call(void 0,a);else throw Error("Invalid module definition");var f=n.aa.Ub;if(n.K(f)&&f){n.aa.Gc?n.Qd(f,e):n.ng&&Object.seal&&"object"==typeof e&&null!=e&&Object.seal(e);var g={co:e,type:n.Jb.hc,pp:n.aa.Ub};n.Ke[f]=g;c&&(n.Ke[c]=g)}else throw Error('Invalid module name "'+f+'"');}finally{n.aa=d}};n.li=function(a){eval(a);return{}};
n.xi=function(a){a=a.split("/");for(var c=0;c<a.length;)"."==a[c]?a.splice(c,1):c&&".."==a[c]&&a[c-1]&&".."!=a[c-1]?a.splice(--c,2):c++;a.join("/")};n.ki=function(a){if(n.global.l)return n.global.l(a);try{var c=new n.global.XMLHttpRequest;c.open("get",a,!1);c.send();return 0==c.status||200==c.status?c.responseText:null}catch(d){return null}};
n.pq=function(a,c){var d=n.global.$jscomp;d||(n.global.$jscomp=d={});var e=d.gd;if(!e){var f=n.Lg+n.sg,g=n.ki(f);if(g){(function(){eval(g+"\n//# sourceURL="+f)}).call(n.global);if(n.global.$gwtExport&&n.global.$gwtExport.$jscomp&&!n.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(n.global.$gwtExport));n.global.$jscomp.gd=n.global.$gwtExport.$jscomp.transpile;d=n.global.$jscomp;e=d.gd}}if(!e){var h=" requires transpilation but no transpiler was found.";
h+=' Please add "//javascript/closure:transpiler" as a data dependency to ensure it is included.';e=d.gd=function(a,c){n.Le(c+h);return a}}return e(a,c)};
n.ka=function(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==c&&"undefined"==typeof a.call)return"object";return c};n.Ee=function(a){return null===a};n.Wh=function(a){return null!=a};n.isArray=function(a){return"array"==n.ka(a)};n.ra=function(a){var c=n.ka(a);return"array"==c||"object"==c&&"number"==typeof a.length};n.Oo=function(a){return n.ya(a)&&"function"==typeof a.getFullYear};n.xa=function(a){return"function"==n.ka(a)};n.ya=function(a){var c=typeof a;return"object"==c&&null!=a||"function"==c};
n.yb=function(a){return a[n.Pa]||(a[n.Pa]=++n.bj)};n.Th=function(a){return!!a[n.Pa]};n.Ve=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(n.Pa);try{delete a[n.Pa]}catch(c){}};n.Pa="closure_uid_"+(1E9*Math.random()>>>0);n.bj=0;n.qo=n.yb;n.Jp=n.Ve;n.Sg=function(a){var c=n.ka(a);if("object"==c||"array"==c){if("function"===typeof a.clone)return a.clone();c="array"==c?[]:{};for(var d in a)c[d]=n.Sg(a[d]);return c}return a};n.Ng=function(a,c,d){return a.call.apply(a.bind,arguments)};
n.Mg=function(a,c,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(c,d)}}return function(){return a.apply(c,arguments)}};n.bind=function(a,c,d){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?n.bind=n.Ng:n.bind=n.Mg;return n.bind.apply(null,arguments)};
n.Te=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return a.apply(this,c)}};n.op=function(a,c){for(var d in c)a[d]=c[d]};n.now=n.Ac&&Date.now||function(){return+new Date};
n.Ao=function(a){if(n.global.execScript)n.global.execScript(a,"JavaScript");else if(n.global.eval){if(null==n.Mb){try{n.global.eval("var _evalTest_ = 1;")}catch(e){}if("undefined"!=typeof n.global._evalTest_){try{delete n.global._evalTest_}catch(e){}n.Mb=!0}else n.Mb=!1}if(n.Mb)n.global.eval(a);else{var c=n.global.document,d=c.createElement("SCRIPT");d.type="text/javascript";d.defer=!1;d.appendChild(c.createTextNode(a));c.head.appendChild(d);c.head.removeChild(d)}}else throw Error("goog.globalEval not available");
};n.Mb=null;n.oo=function(a,c){if("."==String(a).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var d=function(a){return n.Td[a]||a},e=function(a){a=a.split("-");for(var c=[],e=0;e<a.length;e++)c.push(d(a[e]));return c.join("-")};e=n.Td?"BY_WHOLE"==n.Wg?d:e:function(a){return a};a=c?a+"-"+e(c):e(a);return n.global.b?n.global.b(a):a};n.Rp=function(a,c){n.Td=a;n.Wg=c};
n.so=function(a,c){c&&(a=a.replace(/\{\$([^}]+)}/g,function(a,e){return null!=c&&e in c?c[e]:a}));return a};n.to=function(a){return a};n.F=function(a,c){n.Kc(a,c,void 0)};n.w=function(a,c,d){a[c]=d};n.Ta=function(a,c){function d(){}d.prototype=c.prototype;a.Ya=c.prototype;a.prototype=new d;a.prototype.constructor=a;a.Kg=function(a,d,g){for(var e=Array(arguments.length-2),f=2;f<arguments.length;f++)e[f-2]=arguments[f];return c.prototype[d].apply(a,e)}};
n.Kg=function(a,c,d){var e=arguments.callee.caller;if(n.qg||n.Ba&&!e)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if("undefined"!==typeof e.Ya){for(var f=Array(arguments.length-1),g=1;g<arguments.length;g++)f[g-1]=arguments[g];return e.Ya.constructor.apply(a,f)}if("string"!=typeof c&&"symbol"!=typeof c)throw Error("method names provided to goog.base must be a string or a symbol");f=Array(arguments.length-
2);for(g=2;g<arguments.length;g++)f[g-2]=arguments[g];g=!1;for(var h=a.constructor;h;h=h.Ya&&h.Ya.constructor)if(h.prototype[c]===e)g=!0;else if(g)return h.prototype[c].apply(a,f);if(a[c]===e)return a.constructor.prototype[c].apply(a,f);throw Error("goog.base called from a method of one name to a method of a different name");};n.scope=function(a){if(n.ai())throw Error("goog.scope is not supported within a module.");a.call(n.global)};
n.ha=function(a,c){var d=c.constructor,e=c.Wi;d&&d!=Object.prototype.constructor||(d=function(){throw Error("cannot instantiate an interface (no constructor defined).");});d=n.ha.D(d,a);a&&n.Ta(d,a);delete c.constructor;delete c.Wi;n.ha.l(d.prototype,c);null!=e&&(e instanceof Function?e(d):n.ha.l(d,e));return d};n.ha.v=n.Ba;
n.ha.D=function(a,c){if(!n.ha.v)return a;var d=!n.ha.I(c),e=function(){var c=a.apply(this,arguments)||this;c[n.Pa]=c[n.Pa];this.constructor===e&&d&&Object.seal instanceof Function&&Object.seal(c);return c};return e};n.ha.I=function(a){return a&&a.prototype&&a.prototype[n.ug]};n.ha.b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
n.ha.l=function(a,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);for(var e=0;e<n.ha.b.length;e++)d=n.ha.b[e],Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])};n.iq=function(){};n.ug="goog_defineClass_legacy_unsealable";var chrome=chrome||{};chrome.cast=chrome.cast||{};chrome.cast.a={};n.F("chrome.cast.games",chrome.cast.a);chrome.cast.a.ab="urn:x-cast:com.google.cast.games";n.w(chrome.cast.a,"NAMESPACE",chrome.cast.a.ab);chrome.cast.a.zc="1.0.0";n.w(chrome.cast.a,"SDK_VERSION_NUMBER",chrome.cast.a.zc);chrome.cast.a.Ad={UNKNOWN:0,LOADING:1,RUNNING:2,PAUSED:3,SHOWING_INFO_SCREEN:4};n.w(chrome.cast.a,"GameplayState",chrome.cast.a.Ad);chrome.cast.a.Bd={UNKNOWN:0,OPEN:1,CLOSED:2};n.w(chrome.cast.a,"LobbyState",chrome.cast.a.Bd);chrome.cast.a.Da={INVALID_REQUEST:"invalid_request",NOT_ALLOWED:"not_allowed",INCORRECT_VERSION:"incorrect_version",TOO_MANY_PLAYERS:"too_many_players",cc:"cast_error"};n.w(chrome.cast.a,"GameManagerErrorCode",chrome.cast.a.Da);chrome.cast.a.C={};chrome.cast.a.C.oa={SUCCESS:0,INVALID_REQUEST:1,NOT_ALLOWED:2,INCORRECT_VERSION:3,TOO_MANY_PLAYERS:4};
chrome.cast.a.C.oa.qh=function(a){switch(a){case chrome.cast.a.C.oa.INVALID_REQUEST:return chrome.cast.a.Da.INVALID_REQUEST;case chrome.cast.a.C.oa.NOT_ALLOWED:return chrome.cast.a.Da.NOT_ALLOWED;case chrome.cast.a.C.oa.INCORRECT_VERSION:return chrome.cast.a.Da.INCORRECT_VERSION;case chrome.cast.a.C.oa.TOO_MANY_PLAYERS:return chrome.cast.a.Da.TOO_MANY_PLAYERS;default:throw Error("Cannot get error code for status code "+a);}};chrome.cast.a.C.Cf=function(){this.type=chrome.cast.a.C.sb.GAME_MANAGER_PROCESSED_RESULT;this.requestId=0;this.playerId="";this.playerToken=null;this.statusCode=chrome.cast.a.C.oa.SUCCESS;this.errorDescription="";this.gameplayState=chrome.cast.a.Ad.UNKNOWN;this.lobbyState=chrome.cast.a.Bd.UNKNOWN;this.players=[];this.gameData=null;this.gameStatusText="";this.extraMessageData=this.gameManagerConfig=null};n.F("chrome.cast.games.internal.GameManagerMessage",chrome.cast.a.C.Cf);
chrome.cast.a.C.sb={UNKNOWN:0,GAME_MANAGER_PROCESSED_RESULT:1,GAME_MESSAGE:2};n.F("chrome.cast.games.internal.GameManagerMessageType",chrome.cast.a.C.sb);chrome.cast.a.PlayerState={UNKNOWN:0,DROPPED:1,QUIT:2,AVAILABLE:3,READY:4,IDLE:5,PLAYING:6};n.w(chrome.cast.a,"PlayerState",chrome.cast.a.PlayerState);chrome.cast.a.C.Ld=function(){this.b=1E3*Math.floor(1E5*Math.random())};n.Dg();chrome.cast.a.C.ba={UNKNOWN:0,Jd:1,jg:2,gg:3,hg:4,ig:5,yf:6,GAME_MESSAGE:7,gc:1100};n.F("chrome.cast.games.internal.GameManagerRequestType",chrome.cast.a.C.ba);chrome.cast.a.C.yd=function(){this.type=chrome.cast.a.C.ba.UNKNOWN;var a=chrome.cast.a.C.Ld.fe(),c=a.b++;0==c&&(c=a.b++);this.requestId=c;this.playerId="";this.extraMessageData=this.playerToken=null};
chrome.cast.a.C.ba.rh=function(a){var c=chrome.cast.a.PlayerState,d=chrome.cast.a.C.ba;switch(a){case c.QUIT:return d.ig;case c.AVAILABLE:return d.Jd;case c.READY:return d.jg;case c.IDLE:return d.gg;case c.PLAYING:return d.hg;default:throw Error("No mapping to a game manager request type for player state: "+a);}};chrome.cast.a.rb=function(a,c,d,e){this.errorCode=a;this.errorDescription=c;this.result=d;this.castError=e};n.w(chrome.cast.a,"GameManagerError",chrome.cast.a.rb);chrome.cast.a.jc=function(a,c,d){this.playerId=a;this.requestId=c;this.extraMessageData=d};n.w(chrome.cast.a,"GameManagerResult",chrome.cast.a.jc);n.debug={};n.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,n.debug.Error);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a))};n.Ta(n.debug.Error,Error);n.debug.Error.prototype.name="CustomError";n.Wd={};n.Wd.Wf={qf:1,qj:2,TEXT:3,Bj:4,uk:5,tk:6,Fl:7,Ej:8,Uj:9,Wj:10,Vj:11,ul:12};n.h={};n.h.ga=n.Ba;n.h.Fb=function(a,c){n.debug.Error.call(this,n.h.Xi(a,c))};n.Ta(n.h.Fb,n.debug.Error);n.h.Fb.prototype.name="AssertionError";n.h.mf=function(a){throw a;};n.h.Jc=n.h.mf;n.h.Xi=function(a,c){a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<c.length?c[f]:"%s");return d+a[e]};n.h.pa=function(a,c,d,e){var f="Assertion failed";if(d){f+=": "+d;var g=e}else a&&(f+=": "+a,g=c);a=new n.h.Fb(""+f,g||[]);n.h.Jc(a)};n.h.Sp=function(a){n.h.ga&&(n.h.Jc=a)};
n.h.assert=function(a,c,d){n.h.ga&&!a&&n.h.pa("",null,c,Array.prototype.slice.call(arguments,2));return a};n.h.Ra=function(a,c){n.h.ga&&n.h.Jc(new n.h.Fb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};n.h.en=function(a,c,d){n.h.ga&&!n.Cb(a)&&n.h.pa("Expected number but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};
n.h.mn=function(a,c,d){n.h.ga&&!n.K(a)&&n.h.pa("Expected string but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.h.Sm=function(a,c,d){n.h.ga&&!n.xa(a)&&n.h.pa("Expected function but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.h.fn=function(a,c,d){n.h.ga&&!n.ya(a)&&n.h.pa("Expected object but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};
n.h.Gm=function(a,c,d){n.h.ga&&!n.isArray(a)&&n.h.pa("Expected array but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.h.Im=function(a,c,d){n.h.ga&&!n.Pb(a)&&n.h.pa("Expected boolean but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};n.h.Lm=function(a,c,d){!n.h.ga||n.ya(a)&&a.nodeType==n.Wd.Wf.qf||n.h.pa("Expected Element but got %s: %s.",[n.ka(a),a],c,Array.prototype.slice.call(arguments,2));return a};
n.h.Vm=function(a,c,d,e){!n.h.ga||a instanceof c||n.h.pa("Expected instanceof %s but got %s.",[n.h.oe(c),n.h.oe(a)],d,Array.prototype.slice.call(arguments,3));return a};n.h.Rm=function(a,c,d){!n.h.ga||"number"==typeof a&&isFinite(a)||n.h.pa("Expected %s to be a finite number but it is not.",[a],c,Array.prototype.slice.call(arguments,2));return a};n.h.hn=function(){for(var a in Object.prototype)n.h.Ra(a+" should not be enumerable in Object.prototype.")};
n.h.oe=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};n.g={};n.ua=n.Ac;n.g.ta=!1;n.g.Bi=function(a){return a[a.length-1]};n.g.gp=n.g.Bi;n.g.indexOf=n.ua&&(n.g.ta||Array.prototype.indexOf)?function(a,c,d){return Array.prototype.indexOf.call(a,c,d)}:function(a,c,d){d=null==d?0:0>d?Math.max(0,a.length+d):d;if(n.K(a))return n.K(c)&&1==c.length?a.indexOf(c,d):-1;for(;d<a.length;d++)if(d in a&&a[d]===c)return d;return-1};
n.g.lastIndexOf=n.ua&&(n.g.ta||Array.prototype.lastIndexOf)?function(a,c,d){return Array.prototype.lastIndexOf.call(a,c,null==d?a.length-1:d)}:function(a,c,d){d=null==d?a.length-1:d;0>d&&(d=Math.max(0,a.length+d));if(n.K(a))return n.K(c)&&1==c.length?a.lastIndexOf(c,d):-1;for(;0<=d;d--)if(d in a&&a[d]===c)return d;return-1};
n.g.forEach=n.ua&&(n.g.ta||Array.prototype.forEach)?function(a,c,d){Array.prototype.forEach.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)g in f&&c.call(d,f[g],g,a)};n.g.be=function(a,c){for(var d=n.K(a)?a.split(""):a,e=a.length-1;0<=e;--e)e in d&&c.call(void 0,d[e],e,a)};
n.g.filter=n.ua&&(n.g.ta||Array.prototype.filter)?function(a,c,d){return Array.prototype.filter.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=[],g=0,h=n.K(a)?a.split(""):a,k=0;k<e;k++)if(k in h){var l=h[k];c.call(d,l,k,a)&&(f[g++]=l)}return f};n.g.map=n.ua&&(n.g.ta||Array.prototype.map)?function(a,c,d){return Array.prototype.map.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=Array(e),g=n.K(a)?a.split(""):a,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,a));return f};
n.g.reduce=n.ua&&(n.g.ta||Array.prototype.reduce)?function(a,c,d,e){e&&(c=n.bind(c,e));return Array.prototype.reduce.call(a,c,d)}:function(a,c,d,e){var f=d;n.g.forEach(a,function(d,h){f=c.call(e,f,d,h,a)});return f};n.g.reduceRight=n.ua&&(n.g.ta||Array.prototype.reduceRight)?function(a,c,d,e){e&&(c=n.bind(c,e));return Array.prototype.reduceRight.call(a,c,d)}:function(a,c,d,e){var f=d;n.g.be(a,function(d,h){f=c.call(e,f,d,h,a)});return f};
n.g.some=n.ua&&(n.g.ta||Array.prototype.some)?function(a,c,d){return Array.prototype.some.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return!0;return!1};n.g.every=n.ua&&(n.g.ta||Array.prototype.every)?function(a,c,d){return Array.prototype.every.call(a,c,d)}:function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!c.call(d,f[g],g,a))return!1;return!0};
n.g.count=function(a,c,d){var e=0;n.g.forEach(a,function(a,g,h){c.call(d,a,g,h)&&++e},d);return e};n.g.find=function(a,c,d){c=n.g.findIndex(a,c,d);return 0>c?null:n.K(a)?a.charAt(c):a[c]};n.g.findIndex=function(a,c,d){for(var e=a.length,f=n.K(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return g;return-1};n.g.ho=function(a,c,d){c=n.g.eh(a,c,d);return 0>c?null:n.K(a)?a.charAt(c):a[c]};
n.g.eh=function(a,c,d){for(var e=n.K(a)?a.split(""):a,f=a.length-1;0<=f;f--)if(f in e&&c.call(d,e[f],f,a))return f;return-1};n.g.contains=function(a,c){return 0<=n.g.indexOf(a,c)};n.g.Bb=function(a){return 0==a.length};n.g.clear=function(a){if(!n.isArray(a))for(var c=a.length-1;0<=c;c--)delete a[c];a.length=0};n.g.insert=function(a,c){n.g.contains(a,c)||a.push(c)};n.g.re=function(a,c,d){n.g.splice(a,d,0,c)};n.g.Eo=function(a,c,d){n.Te(n.g.splice,a,d,0).apply(null,c)};
n.g.insertBefore=function(a,c,d){var e;2==arguments.length||0>(e=n.g.indexOf(a,d))?a.push(c):n.g.re(a,c,e)};n.g.remove=function(a,c){c=n.g.indexOf(a,c);var d;(d=0<=c)&&n.g.Xa(a,c);return d};n.g.Lp=function(a,c){c=n.g.lastIndexOf(a,c);return 0<=c?(n.g.Xa(a,c),!0):!1};n.g.Xa=function(a,c){return 1==Array.prototype.splice.call(a,c,1).length};n.g.Kp=function(a,c,d){c=n.g.findIndex(a,c,d);return 0<=c?(n.g.Xa(a,c),!0):!1};
n.g.Ip=function(a,c,d){var e=0;n.g.be(a,function(f,g){c.call(d,f,g,a)&&n.g.Xa(a,g)&&e++});return e};n.g.concat=function(a){return Array.prototype.concat.apply([],arguments)};n.g.join=function(a){return Array.prototype.concat.apply([],arguments)};n.g.Na=function(a){var c=a.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=a[e];return d}return[]};n.g.clone=n.g.Na;
n.g.extend=function(a,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(n.ra(e)){var f=a.length||0,g=e.length||0;a.length=f+g;for(var h=0;h<g;h++)a[f+h]=e[h]}else a.push(e)}};n.g.splice=function(a,c,d,e){return Array.prototype.splice.apply(a,n.g.slice(arguments,1))};n.g.slice=function(a,c,d){return 2>=arguments.length?Array.prototype.slice.call(a,c):Array.prototype.slice.call(a,c,d)};
n.g.Fi=function(a,c){c=c||a;for(var d={},e=0,f=0;f<a.length;){var g=a[f++];var h=g;h=n.ya(h)?"o"+n.yb(h):(typeof h).charAt(0)+h;Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,c[e++]=g)}c.length=e};n.g.Nd=function(a,c,d){return n.g.Od(a,d||n.g.Ia,!1,c)};n.g.sn=function(a,c,d){return n.g.Od(a,c,!0,void 0,d)};n.g.Od=function(a,c,d,e,f){for(var g=0,h=a.length,k;g<h;){var l=g+h>>1,q;d?q=c.call(f,a[l],l,a):q=c(e,a[l]);0<q?g=l+1:(h=l,k=!q)}return k?g:~g};n.g.sort=function(a,c){a.sort(c||n.g.Ia)};
n.g.aq=function(a,c){for(var d=Array(a.length),e=0;e<a.length;e++)d[e]={index:e,value:a[e]};var f=c||n.g.Ia;n.g.sort(d,function(a,c){return f(a.value,c.value)||a.index-c.index});for(e=0;e<a.length;e++)a[e]=d[e].value};n.g.Vi=function(a,c,d){var e=d||n.g.Ia;n.g.sort(a,function(a,d){return e(c(a),c(d))})};n.g.Yp=function(a,c,d){n.g.Vi(a,function(a){return a[c]},d)};n.g.Ge=function(a){for(var c=n.g.Ia,d=1;d<a.length;d++)if(0<c(a[d-1],a[d]))return!1;return!0};
n.g.ia=function(a,c,d){if(!n.ra(a)||!n.ra(c)||a.length!=c.length)return!1;var e=a.length;d=d||n.g.Ud;for(var f=0;f<e;f++)if(!d(a[f],c[f]))return!1;return!0};n.g.Kn=function(a,c,d){d=d||n.g.Ia;for(var e=Math.min(a.length,c.length),f=0;f<e;f++){var g=d(a[f],c[f]);if(0!=g)return g}return n.g.Ia(a.length,c.length)};n.g.Ia=function(a,c){return a>c?1:a<c?-1:0};n.g.Ho=function(a,c){return-n.g.Ia(a,c)};n.g.Ud=function(a,c){return a===c};
n.g.qn=function(a,c,d){d=n.g.Nd(a,c,d);return 0>d?(n.g.re(a,c,-(d+1)),!0):!1};n.g.rn=function(a,c,d){c=n.g.Nd(a,c,d);return 0<=c?n.g.Xa(a,c):!1};n.g.tn=function(a,c,d){for(var e={},f=0;f<a.length;f++){var g=a[f],h=c.call(d,g,f,a);n.Ma(h)&&(e[h]||(e[h]=[])).push(g)}return e};n.g.Zi=function(a,c,d){var e={};n.g.forEach(a,function(f,g){e[c.call(d,f,g,a)]=f});return e};
n.g.Vb=function(a,c,d){var e=[],f=0,g=a;d=d||1;void 0!==c&&(f=a,g=c);if(0>d*(g-f))return[];if(0<d)for(a=f;a<g;a+=d)e.push(a);else for(a=f;a>g;a+=d)e.push(a);return e};n.g.repeat=function(a,c){for(var d=[],e=0;e<c;e++)d[e]=a;return d};n.g.flatten=function(a){for(var c=[],d=0;d<arguments.length;d++){var e=arguments[d];if(n.isArray(e))for(var f=0;f<e.length;f+=8192){var g=n.g.slice(e,f,f+8192);g=n.g.flatten.apply(null,g);for(var h=0;h<g.length;h++)c.push(g[h])}else c.push(e)}return c};
n.g.rotate=function(a,c){a.length&&(c%=a.length,0<c?Array.prototype.unshift.apply(a,a.splice(-c,c)):0>c&&Array.prototype.push.apply(a,a.splice(0,-c)));return a};n.g.rp=function(a,c,d){c=Array.prototype.splice.call(a,c,1);Array.prototype.splice.call(a,d,0,c[0])};
n.g.ff=function(a){if(!arguments.length)return[];for(var c=[],d=arguments[0].length,e=1;e<arguments.length;e++)arguments[e].length<d&&(d=arguments[e].length);for(e=0;e<d;e++){for(var f=[],g=0;g<arguments.length;g++)f.push(arguments[g][e]);c.push(f)}return c};n.g.Xp=function(a,c){c=c||Math.random;for(var d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}};n.g.On=function(a,c){var d=[];n.g.forEach(c,function(c){d.push(a[c])});return d};
n.g.Nn=function(a,c,d){return n.g.concat.apply([],n.g.map(a,c,d))};n.debug.Ja={};n.debug.Ja.Cg=function(a,c,d){a[n.debug.Ja.Gb]||(a[n.debug.Ja.Gb]={});a[n.debug.Ja.Gb][c]=d};n.debug.Ja.po=function(a){return a[n.debug.Ja.Gb]||{}};n.debug.Ja.Gb="__closure__error__context__984382";n.i={};n.i.sd=!1;n.i.wf=!1;n.i.vg={Tf:"\u00a0"};n.i.startsWith=function(a,c){return 0==a.lastIndexOf(c,0)};n.i.endsWith=function(a,c){var d=a.length-c.length;return 0<=d&&a.indexOf(c,d)==d};n.i.Bn=function(a,c){return 0==n.i.Pd(c,a.substr(0,c.length))};n.i.zn=function(a,c){return 0==n.i.Pd(c,a.substr(a.length-c.length,c.length))};n.i.An=function(a,c){return a.toLowerCase()==c.toLowerCase()};
n.i.hq=function(a,c){for(var d=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<d.length;)e+=d.shift()+f.shift();return e+d.join("%s")};n.i.Hn=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};n.i.Rc=function(a){return/^[\s\xa0]*$/.test(a)};n.i.Ro=function(a){return 0==a.length};n.i.Bb=n.i.Rc;n.i.Xh=function(a){return n.i.Rc(n.i.mi(a))};n.i.Qo=n.i.Xh;n.i.Lo=function(a){return!/[^\t\n\r ]/.test(a)};n.i.Io=function(a){return!/[^a-zA-Z]/.test(a)};
n.i.Yo=function(a){return!/[^0-9]/.test(a)};n.i.Jo=function(a){return!/[^a-zA-Z0-9]/.test(a)};n.i.bp=function(a){return" "==a};n.i.cp=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};n.i.fq=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};n.i.xn=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};n.i.vp=function(a){return a.replace(/\xa0|\s/g," ")};n.i.up=function(a){return a.replace(/\xa0|[ \t]+/g," ")};
n.i.Gn=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};n.i.trim=n.Ac&&String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};n.i.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};n.i.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};n.i.Pd=function(a,c){a=String(a).toLowerCase();c=String(c).toLowerCase();return a<c?-1:a==c?0:1};
n.i.Qe=function(a,c,d){if(a==c)return 0;if(!a)return-1;if(!c)return 1;for(var e=a.toLowerCase().match(d),f=c.toLowerCase().match(d),g=Math.min(e.length,f.length),h=0;h<g;h++){d=e[h];var k=f[h];if(d!=k)return a=parseInt(d,10),!isNaN(a)&&(c=parseInt(k,10),!isNaN(c)&&a-c)?a-c:d<k?-1:1}return e.length!=f.length?e.length-f.length:a<c?-1:1};n.i.Fo=function(a,c){return n.i.Qe(a,c,/\d+|\D+/g)};n.i.gh=function(a,c){return n.i.Qe(a,c,/\d+|\.\d+|\D+/g)};n.i.xp=n.i.gh;n.i.wq=function(a){return encodeURIComponent(String(a))};
n.i.vq=function(a){return decodeURIComponent(a.replace(/\+/g," "))};n.i.vi=function(a,c){return a.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")};
n.i.pe=function(a){if(!n.i.gf.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(n.i.hf,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(n.i.Gf,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(n.i.zf,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(n.i.mg,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(n.i.pg,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(n.i.Vf,"&#0;"));n.i.sd&&-1!=a.indexOf("e")&&(a=a.replace(n.i.tf,"&#101;"));return a};n.i.hf=/&/g;n.i.Gf=/</g;n.i.zf=/>/g;n.i.mg=/"/g;n.i.pg=/'/g;n.i.Vf=/\x00/g;n.i.tf=/e/g;
n.i.gf=n.i.sd?/[\x00&<>"'e]/:/[\x00&<>"']/;n.i.bf=function(a){return n.i.contains(a,"&")?!n.i.wf&&"document"in n.global?n.i.cf(a):n.i.cj(a):a};n.i.rq=function(a,c){return n.i.contains(a,"&")?n.i.cf(a,c):a};
n.i.cf=function(a,c){var d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var e=c?c.createElement("div"):n.global.document.createElement("div");return a.replace(n.i.Df,function(a,c){var f=d[a];if(f)return f;"#"==c.charAt(0)&&(c=Number("0"+c.substr(1)),isNaN(c)||(f=String.fromCharCode(c)));f||(e.innerHTML=a+" ",f=e.firstChild.nodeValue.slice(0,-1));return d[a]=f})};
n.i.cj=function(a){return a.replace(/&([^;]+);/g,function(a,d){switch(d){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return"#"!=d.charAt(0)||(d=Number("0"+d.substr(1)),isNaN(d))?a:String.fromCharCode(d)}})};n.i.Df=/&([^;\s<&]+);?/g;n.i.zq=function(a,c){return n.i.vi(a.replace(/  /g," &#160;"),c)};n.i.Bp=function(a){return a.replace(/(^|[\n ]) /g,"$1"+n.i.vg.Tf)};
n.i.gq=function(a,c){for(var d=c.length,e=0;e<d;e++){var f=1==d?c:c.charAt(e);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a};n.i.truncate=function(a,c,d){d&&(a=n.i.bf(a));a.length>c&&(a=a.substring(0,c-3)+"...");d&&(a=n.i.pe(a));return a};n.i.qq=function(a,c,d,e){d&&(a=n.i.bf(a));e&&a.length>c?(e>c&&(e=c),a=a.substring(0,c-e)+"..."+a.substring(a.length-e)):a.length>c&&(e=Math.floor(c/2),a=a.substring(0,e+c%2)+"..."+a.substring(a.length-e));d&&(a=n.i.pe(a));return a};
n.i.dd={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"};n.i.Rb={"'":"\\'"};n.i.quote=function(a){a=String(a);for(var c=['"'],d=0;d<a.length;d++){var e=a.charAt(d),f=e.charCodeAt(0);c[d+1]=n.i.dd[e]||(31<f&&127>f?e:n.i.Xd(e))}c.push('"');return c.join("")};n.i.bo=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=n.i.Xd(a.charAt(d));return c.join("")};
n.i.Xd=function(a){if(a in n.i.Rb)return n.i.Rb[a];if(a in n.i.dd)return n.i.Rb[a]=n.i.dd[a];var c=a.charCodeAt(0);if(31<c&&127>c)var d=a;else{if(256>c){if(d="\\x",16>c||256<c)d+="0"}else d="\\u",4096>c&&(d+="0");d+=c.toString(16).toUpperCase()}return n.i.Rb[a]=d};n.i.contains=function(a,c){return-1!=a.indexOf(c)};n.i.Qg=function(){return n.i.contains(n.f.userAgent.B.hb().toLowerCase(),"webkit")};n.i.Pn=function(a,c){return a&&c?a.split(c).length-1:0};n.i.Xa=function(a){return a};
n.i.remove=function(a,c){return a.replace(c,"")};n.i.removeAll=function(a,c){c=new RegExp(n.i.ad(c),"g");return a.replace(c,"")};n.i.Mp=function(a,c,d){c=new RegExp(n.i.ad(c),"g");return a.replace(c,d.replace(/\$/g,"$$$$"))};n.i.ad=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};n.i.repeat=String.prototype.repeat?function(a,c){return a.repeat(c)}:function(a,c){return Array(c+1).join(a)};
n.i.zp=function(a,c,d){a=n.Ma(d)?a.toFixed(d):String(a);d=a.indexOf(".");-1==d&&(d=a.length);return n.i.repeat("0",Math.max(0,c-d))+a};n.i.mi=function(a){return null==a?"":String(a)};n.i.un=function(a){return Array.prototype.join.call(arguments,"")};n.i.vo=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^n.now()).toString(36)};
n.i.ub=function(a,c){var d=0;a=n.i.trim(String(a)).split(".");c=n.i.trim(String(c)).split(".");for(var e=Math.max(a.length,c.length),f=0;0==d&&f<e;f++){var g=a[f]||"",h=c[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;d=n.i.Ec(0==g[1].length?0:parseInt(g[1],10),0==h[1].length?0:parseInt(h[1],10))||n.i.Ec(0==g[2].length,0==h[2].length)||n.i.Ec(g[2],h[2]);g=g[3];h=h[3]}while(0==d)}return d};
n.i.Ec=function(a,c){return a<c?-1:a>c?1:0};n.i.Do=function(a){for(var c=0,d=0;d<a.length;++d)c=31*c+a.charCodeAt(d)>>>0;return c};n.i.ej=2147483648*Math.random()|0;n.i.Sn=function(){return"goog_"+n.i.ej++};n.i.mq=function(a){var c=Number(a);return 0==c&&n.i.Rc(a)?NaN:c};n.i.Wo=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};n.i.ep=function(a){return/^([A-Z][a-z]*)+$/.test(a)};n.i.lq=function(a){return String(a).replace(/\-([a-z])/g,function(a,d){return d.toUpperCase()})};
n.i.nq=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};n.i.oq=function(a,c){c=n.K(c)?n.i.ad(c):"\\s";return a.replace(new RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(a,c,f){return c+f.toUpperCase()})};n.i.yn=function(a){return String(a.charAt(0)).toUpperCase()+String(a.substr(1)).toLowerCase()};n.i.parseInt=function(a){isFinite(a)&&(a=String(a));return n.K(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};
n.i.Zp=function(a,c,d){a=a.split(c);for(var e=[];0<d&&a.length;)e.push(a.shift()),d--;a.length&&e.push(a.join(c));return e};n.i.hp=function(a,c){if(c)"string"==typeof c&&(c=[c]);else return a;for(var d=-1,e=0;e<c.length;e++)if(""!=c[e]){var f=a.lastIndexOf(c[e]);f>d&&(d=f)}return-1==d?a:a.slice(d+1)};
n.i.Xn=function(a,c){var d=[],e=[];if(a==c)return 0;if(!a.length||!c.length)return Math.max(a.length,c.length);for(var f=0;f<c.length+1;f++)d[f]=f;for(f=0;f<a.length;f++){e[0]=f+1;for(var g=0;g<c.length;g++)e[g+1]=Math.min(e[g]+1,d[g+1]+1,d[g]+Number(a[f]!=c[g]));for(g=0;g<d.length;g++)d[g]=e[g]}return e[c.length]};n.f={};n.f.userAgent={};n.f.userAgent.B={};n.f.userAgent.B.je=function(){var a=n.f.userAgent.B.zh();return a&&(a=a.userAgent)?a:""};n.f.userAgent.B.zh=function(){return n.global.navigator};n.f.userAgent.B.df=n.f.userAgent.B.je();n.f.userAgent.B.Vp=function(a){n.f.userAgent.B.df=a||n.f.userAgent.B.je()};n.f.userAgent.B.hb=function(){return n.f.userAgent.B.df};n.f.userAgent.B.J=function(a){return n.i.contains(n.f.userAgent.B.hb(),a)};n.f.userAgent.B.ti=function(){return n.i.Qg()};
n.f.userAgent.B.Yd=function(a){for(var c=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,d=[],e;e=c.exec(a);)d.push([e[1],e[2],e[3]||void 0]);return d};n.object={};n.object.is=function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c};n.object.forEach=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};n.object.filter=function(a,c,d){var e={},f;for(f in a)c.call(d,a[f],f,a)&&(e[f]=a[f]);return e};n.object.map=function(a,c,d){var e={},f;for(f in a)e[f]=c.call(d,a[f],f,a);return e};n.object.some=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return!0;return!1};n.object.every=function(a,c,d){for(var e in a)if(!c.call(d,a[e],e,a))return!1;return!0};
n.object.de=function(){var a=0,c;for(c in void 0)a++;return a};n.object.mo=function(a){for(var c in a)return c};n.object.no=function(a){for(var c in a)return a[c]};n.object.contains=function(a,c){return n.object.Rd(a,c)};n.object.ib=function(){var a=[],c=0,d;for(d in void 0)a[c++]=(void 0)[d];return a};n.object.eb=function(a){var c=[],d=0,e;for(e in a)c[d++]=e;return c};n.object.zo=function(a,c){var d=n.ra(c),e=d?c:arguments;for(d=d?0:1;d<e.length;d++){if(null==a)return;a=a[e[d]]}return a};
n.object.wb=function(a,c){return null!==a&&c in a};n.object.Rd=function(a,c){for(var d in a)if(a[d]==c)return!0;return!1};n.object.fh=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return e};n.object.io=function(a,c,d){return(c=n.object.fh(a,c,d))&&a[c]};n.object.Bb=function(a){for(var c in a)return!1;return!0};n.object.clear=function(a){for(var c in a)delete a[c]};n.object.remove=function(a,c){var d;(d=c in a)&&delete a[c];return d};
n.object.add=function(a,c,d){if(null!==a&&c in a)throw Error('The object already contains the key "'+c+'"');n.object.set(a,c,d)};n.object.get=function(a,c,d){return null!==a&&c in a?a[c]:d};n.object.set=function(a,c,d){a[c]=d};n.object.Up=function(a,c,d){return c in a?a[c]:a[c]=d};n.object.Wp=function(a,c,d){if(c in a)return a[c];d=d();return a[c]=d};n.object.ia=function(a,c){for(var d in a)if(!(d in c)||a[d]!==c[d])return!1;for(d in c)if(!(d in a))return!1;return!0};
n.object.clone=function(a){var c={},d;for(d in a)c[d]=a[d];return c};n.object.fj=function(a){var c=n.ka(a);if("object"==c||"array"==c){if(n.xa(a.clone))return a.clone();c="array"==c?[]:{};for(var d in a)c[d]=n.object.fj(a[d]);return c}return a};n.object.aj=function(a){var c={},d;for(d in a)c[a[d]]=d;return c};n.object.Kd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
n.object.extend=function(a,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<n.object.Kd.length;g++)d=n.object.Kd[g],Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d])}};n.object.create=function(a){var c=arguments.length;if(1==c&&n.isArray(arguments[0]))return n.object.create.apply(null,arguments[0]);if(c%2)throw Error("Uneven number of arguments");for(var d={},e=0;e<c;e+=2)d[arguments[e]]=arguments[e+1];return d};
n.object.Vg=function(a){var c=arguments.length;if(1==c&&n.isArray(arguments[0]))return n.object.Vg.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};n.object.Rn=function(a){var c=a;Object.isFrozen&&!Object.isFrozen(a)&&(c=Object.create(a),Object.freeze(c));return c};n.object.To=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
n.object.lo=function(a,c,d){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return n.object.eb(a);for(var e={};a&&(a!==Object.prototype||c)&&(a!==Function.prototype||d);){for(var f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++)e[f[g]]=!0;a=Object.getPrototypeOf(a)}return n.object.eb(e)};n.f.userAgent.browser={};n.f.userAgent.browser.Me=function(){return n.f.userAgent.B.J("Opera")};n.f.userAgent.browser.ri=function(){return n.f.userAgent.B.J("Trident")||n.f.userAgent.B.J("MSIE")};n.f.userAgent.browser.Wc=function(){return n.f.userAgent.B.J("Edge")};n.f.userAgent.browser.pi=function(){return n.f.userAgent.B.J("Firefox")};
n.f.userAgent.browser.Ne=function(){return n.f.userAgent.B.J("Safari")&&!(n.f.userAgent.browser.Uc()||n.f.userAgent.browser.Vc()||n.f.userAgent.browser.Me()||n.f.userAgent.browser.Wc()||n.f.userAgent.browser.Fe()||n.f.userAgent.B.J("Android"))};n.f.userAgent.browser.Vc=function(){return n.f.userAgent.B.J("Coast")};
n.f.userAgent.browser.si=function(){return(n.f.userAgent.B.J("iPad")||n.f.userAgent.B.J("iPhone"))&&!n.f.userAgent.browser.Ne()&&!n.f.userAgent.browser.Uc()&&!n.f.userAgent.browser.Vc()&&n.f.userAgent.B.J("AppleWebKit")};n.f.userAgent.browser.Uc=function(){return(n.f.userAgent.B.J("Chrome")||n.f.userAgent.B.J("CriOS"))&&!n.f.userAgent.browser.Wc()};
n.f.userAgent.browser.oi=function(){return n.f.userAgent.B.J("Android")&&!(n.f.userAgent.browser.ve()||n.f.userAgent.browser.Yh()||n.f.userAgent.browser.Sc()||n.f.userAgent.browser.Fe())};n.f.userAgent.browser.Sc=n.f.userAgent.browser.Me;n.f.userAgent.browser.xe=n.f.userAgent.browser.ri;n.f.userAgent.browser.kb=n.f.userAgent.browser.Wc;n.f.userAgent.browser.Yh=n.f.userAgent.browser.pi;n.f.userAgent.browser.ap=n.f.userAgent.browser.Ne;n.f.userAgent.browser.No=n.f.userAgent.browser.Vc;
n.f.userAgent.browser.Vo=n.f.userAgent.browser.si;n.f.userAgent.browser.ve=n.f.userAgent.browser.Uc;n.f.userAgent.browser.Ko=n.f.userAgent.browser.oi;n.f.userAgent.browser.Fe=function(){return n.f.userAgent.B.J("Silk")};
n.f.userAgent.browser.zb=function(){function a(a){a=n.g.find(a,e);return d[a]||""}var c=n.f.userAgent.B.hb();if(n.f.userAgent.browser.xe())return n.f.userAgent.browser.uh(c);c=n.f.userAgent.B.Yd(c);var d={};n.g.forEach(c,function(a){d[a[0]]=a[1]});var e=n.Te(n.object.wb,d);return n.f.userAgent.browser.Sc()?a(["Version","Opera"]):n.f.userAgent.browser.kb()?a(["Edge"]):n.f.userAgent.browser.ve()?a(["Chrome","CriOS"]):(c=c[2])&&c[1]||""};
n.f.userAgent.browser.fa=function(a){return 0<=n.i.ub(n.f.userAgent.browser.zb(),a)};n.f.userAgent.browser.uh=function(a){var c=/rv: *([\d\.]*)/.exec(a);if(c&&c[1])return c[1];c="";var d=/MSIE +([\d\.]+)/.exec(a);if(d&&d[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==d[1])if(a&&a[1])switch(a[1]){case "4.0":c="8.0";break;case "5.0":c="9.0";break;case "6.0":c="10.0";break;case "7.0":c="11.0"}else c="7.0";else c=d[1];return c};n.f.userAgent.U={};n.f.userAgent.U.Zo=function(){return n.f.userAgent.B.J("Presto")};n.f.userAgent.U.hi=function(){return n.f.userAgent.B.J("Trident")||n.f.userAgent.B.J("MSIE")};n.f.userAgent.U.kb=function(){return n.f.userAgent.B.J("Edge")};n.f.userAgent.U.He=function(){return n.f.userAgent.B.ti()&&!n.f.userAgent.U.kb()};n.f.userAgent.U.Zh=function(){return n.f.userAgent.B.J("Gecko")&&!n.f.userAgent.U.He()&&!n.f.userAgent.U.hi()&&!n.f.userAgent.U.kb()};
n.f.userAgent.U.zb=function(){var a=n.f.userAgent.B.hb();if(a){a=n.f.userAgent.B.Yd(a);var c=n.f.userAgent.U.oh(a);if(c)return"Gecko"==c[0]?n.f.userAgent.U.Jh(a):c[1];a=a[0];var d;if(a&&(d=a[2])&&(d=/Trident\/([^\s;]+)/.exec(d)))return d[1]}return""};n.f.userAgent.U.oh=function(a){if(!n.f.userAgent.U.kb())return a[1];for(var c=0;c<a.length;c++){var d=a[c];if("Edge"==d[0])return d}};n.f.userAgent.U.fa=function(a){return 0<=n.i.ub(n.f.userAgent.U.zb(),a)};
n.f.userAgent.U.Jh=function(a){return(a=n.g.find(a,function(a){return"Firefox"==a[0]}))&&a[1]||""};n.f.userAgent.platform={};n.f.userAgent.platform.te=function(){return n.f.userAgent.B.J("Android")};n.f.userAgent.platform.Ce=function(){return n.f.userAgent.B.J("iPod")};n.f.userAgent.platform.Be=function(){return n.f.userAgent.B.J("iPhone")&&!n.f.userAgent.B.J("iPod")&&!n.f.userAgent.B.J("iPad")};n.f.userAgent.platform.Ae=function(){return n.f.userAgent.B.J("iPad")};n.f.userAgent.platform.ze=function(){return n.f.userAgent.platform.Be()||n.f.userAgent.platform.Ae()||n.f.userAgent.platform.Ce()};
n.f.userAgent.platform.De=function(){return n.f.userAgent.B.J("Macintosh")};n.f.userAgent.platform.di=function(){return n.f.userAgent.B.J("Linux")};n.f.userAgent.platform.Ie=function(){return n.f.userAgent.B.J("Windows")};n.f.userAgent.platform.we=function(){return n.f.userAgent.B.J("CrOS")};n.f.userAgent.platform.Mo=function(){return n.f.userAgent.B.J("CrKey")};
n.f.userAgent.platform.zb=function(){var a=n.f.userAgent.B.hb(),c="";n.f.userAgent.platform.Ie()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(a=c.exec(a))?a[1]:"0.0"):n.f.userAgent.platform.ze()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(a=c.exec(a))&&a[1].replace(/_/g,".")):n.f.userAgent.platform.De()?(c=/Mac OS X ([0-9_.]+)/,c=(a=c.exec(a))?a[1].replace(/_/g,"."):"10"):n.f.userAgent.platform.te()?(c=/Android\s+([^\);]+)(\)|;)/,c=(a=c.exec(a))&&a[1]):n.f.userAgent.platform.we()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
c=(a=c.exec(a))&&a[1]);return c||""};n.f.userAgent.platform.fa=function(a){return 0<=n.i.ub(n.f.userAgent.platform.zb(),a)};n.sa={};n.sa.object=function(a,c){return c};n.sa.cd=function(a){n.sa.cd[" "](a);return a};n.sa.cd[" "]=n.Va;n.sa.Pg=function(a){try{return n.sa.cd(a.nodeName),!0}catch(c){}return!1};n.sa.cache=function(a,c,d,e){e=e?e(c):c;return Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=d(c)};n.userAgent={};n.userAgent.ld=!1;n.userAgent.jd=!1;n.userAgent.kd=!1;n.userAgent.pd=!1;n.userAgent.ac=!1;n.userAgent.od=!1;n.userAgent.jf=!1;n.userAgent.qb=n.userAgent.ld||n.userAgent.jd||n.userAgent.kd||n.userAgent.ac||n.userAgent.pd||n.userAgent.od;n.userAgent.Ih=function(){return n.f.userAgent.B.hb()};n.userAgent.Nc=function(){return n.global.navigator||null};n.userAgent.uo=function(){return n.userAgent.Nc()};n.userAgent.qc=n.userAgent.qb?n.userAgent.od:n.f.userAgent.browser.Sc();
n.userAgent.na=n.userAgent.qb?n.userAgent.ld:n.f.userAgent.browser.xe();n.userAgent.td=n.userAgent.qb?n.userAgent.jd:n.f.userAgent.U.kb();n.userAgent.nk=n.userAgent.td||n.userAgent.na;n.userAgent.Hb=n.userAgent.qb?n.userAgent.kd:n.f.userAgent.U.Zh();n.userAgent.Qa=n.userAgent.qb?n.userAgent.pd||n.userAgent.ac:n.f.userAgent.U.He();n.userAgent.fi=function(){return n.userAgent.Qa&&n.f.userAgent.B.J("Mobile")};n.userAgent.kl=n.userAgent.ac||n.userAgent.fi();n.userAgent.Ol=n.userAgent.Qa;
n.userAgent.Xg=function(){var a=n.userAgent.Nc();return a&&a.platform||""};n.userAgent.Cl=n.userAgent.Xg();n.userAgent.nd=!1;n.userAgent.qd=!1;n.userAgent.md=!1;n.userAgent.rd=!1;n.userAgent.hd=!1;n.userAgent.Yb=!1;n.userAgent.Xb=!1;n.userAgent.Zb=!1;n.userAgent.va=n.userAgent.nd||n.userAgent.qd||n.userAgent.md||n.userAgent.rd||n.userAgent.hd||n.userAgent.Yb||n.userAgent.Xb||n.userAgent.Zb;n.userAgent.gl=n.userAgent.va?n.userAgent.nd:n.f.userAgent.platform.De();
n.userAgent.ym=n.userAgent.va?n.userAgent.qd:n.f.userAgent.platform.Ie();n.userAgent.ci=function(){return n.f.userAgent.platform.di()||n.f.userAgent.platform.we()};n.userAgent.Uk=n.userAgent.va?n.userAgent.md:n.userAgent.ci();n.userAgent.ji=function(){var a=n.userAgent.Nc();return!!a&&n.i.contains(a.appVersion||"","X11")};n.userAgent.zm=n.userAgent.va?n.userAgent.rd:n.userAgent.ji();n.userAgent.ANDROID=n.userAgent.va?n.userAgent.hd:n.f.userAgent.platform.te();
n.userAgent.Pk=n.userAgent.va?n.userAgent.Yb:n.f.userAgent.platform.Be();n.userAgent.Ok=n.userAgent.va?n.userAgent.Xb:n.f.userAgent.platform.Ae();n.userAgent.Qk=n.userAgent.va?n.userAgent.Zb:n.f.userAgent.platform.Ce();n.userAgent.IOS=n.userAgent.va?n.userAgent.Yb||n.userAgent.Xb||n.userAgent.Zb:n.f.userAgent.platform.ze();n.userAgent.Yg=function(){var a="",c=n.userAgent.Kh();c&&(a=c?c[1]:"");return n.userAgent.na&&(c=n.userAgent.ee(),null!=c&&c>parseFloat(a))?String(c):a};
n.userAgent.Kh=function(){var a=n.userAgent.Ih();if(n.userAgent.Hb)return/rv:([^\);]+)(\)|;)/.exec(a);if(n.userAgent.td)return/Edge\/([\d\.]+)/.exec(a);if(n.userAgent.na)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(n.userAgent.Qa)return/WebKit\/(\S+)/.exec(a);if(n.userAgent.qc)return/(?:Version)[ \/]?(\S+)/.exec(a)};n.userAgent.ee=function(){var a=n.global.document;return a?a.documentMode:void 0};n.userAgent.VERSION=n.userAgent.Yg();n.userAgent.compare=function(a,c){return n.i.ub(a,c)};
n.userAgent.ii={};n.userAgent.fa=function(a){return n.userAgent.jf||n.sa.cache(n.userAgent.ii,a,function(){return 0<=n.i.ub(n.userAgent.VERSION,a)})};n.userAgent.fp=n.userAgent.fa;n.userAgent.Qc=function(a){return Number(n.userAgent.pf)>=a};n.userAgent.Po=n.userAgent.Qc;var p;var u=n.global.document;p=u&&n.userAgent.na?n.userAgent.ee()||("CSS1Compat"==u.compatMode?parseInt(n.userAgent.VERSION,10):5):void 0;n.userAgent.pf=p;n.debug.da=n.Ba;n.debug.vd=!1;n.debug.Cn=function(a,c,d){d=d||n.global;var e=d.onerror,f=!!c;n.userAgent.Qa&&!n.userAgent.fa("535.3")&&(f=!f);d.onerror=function(c,d,k,l,q){e&&e(c,d,k,l,q);a({message:c,fileName:d,line:k,lineNumber:k,Fn:l,error:q});return f}};n.debug.bh=function(a,c){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var d=[],e;for(e in a)if(c||!n.xa(a[e])){var f=e+" = ";try{f+=a[e]}catch(g){f+="*** "+g+" ***"}d.push(f)}return d.join("\n")};
n.debug.Vn=function(a,c){var d=[],e=[],f={},g=function(a,k){var h=k+"  ";try{if(n.Ma(a))if(n.Ee(a))d.push("NULL");else if(n.K(a))d.push('"'+a.replace(/\n/g,"\n"+k)+'"');else if(n.xa(a))d.push(String(a).replace(/\n/g,"\n"+k));else if(n.ya(a)){n.Th(a)||e.push(a);var q=n.yb(a);if(f[q])d.push("*** reference loop detected (id="+q+") ***");else{f[q]=!0;d.push("{");for(var t in a)if(c||!n.xa(a[t]))d.push("\n"),d.push(h),d.push(t+" = "),g(a[t],h);d.push("\n"+k+"}");delete f[q]}}else d.push(a);else d.push("undefined")}catch(v){d.push("*** "+
v+" ***")}};g(a,"");for(a=0;a<e.length;a++)n.Ve(e[a]);return d.join("")};n.debug.dh=function(a){for(var c=[],d=0;d<a.length;d++)n.isArray(a[d])?c.push(n.debug.dh(a[d])):c.push(a[d]);return"[ "+c.join(", ")+" ]"};
n.debug.tp=function(a){var c=n.ke("window.location.href");if(n.K(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var d=!1;try{var e=a.lineNumber||a.line||"Not available"}catch(g){e="Not available",d=!0}try{var f=a.fileName||a.filename||a.sourceURL||n.global.$googDebugFname||c}catch(g){f="Not available",d=!0}return!d&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||"Not available",name:a.name||"UnknownError",lineNumber:e,
fileName:f,stack:a.stack||"Not available"}};n.debug.Ic=function(a,c){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,n.debug.Ic));a.stack||(a.stack=n.debug.me(n.debug.Ic));if(c){for(var d=0;a["message"+d];)++d;a["message"+d]=String(c)}return a};n.debug.Yn=function(a,c){a=n.debug.Ic(a);if(c)for(var d in c)n.debug.Ja.Cg(a,d,c[d]);return a};
n.debug.Hh=function(a){if(!n.debug.vd){var c=n.debug.ie(n.debug.Hh);if(c)return c}c=[];for(var d=arguments.callee.caller,e=0;d&&(!a||e<a);){c.push(n.debug.getFunctionName(d));c.push("()\n");try{d=d.caller}catch(f){c.push("[exception trying to get caller]\n");break}e++;if(e>=n.debug.Cd){c.push("[...long stack...]");break}}a&&e>=a?c.push("[...reached max depth limit...]"):c.push("[end]");return c.join("")};n.debug.Cd=50;
n.debug.ie=function(a){var c=Error();if(Error.captureStackTrace)return Error.captureStackTrace(c,a),String(c.stack);try{throw c;}catch(d){c=d}return(a=c.stack)?String(a):null};n.debug.me=function(a){var c;n.debug.vd||(c=n.debug.ie(a||n.debug.me));c||(c=n.debug.ne(a||arguments.callee.caller,[]));return c};
n.debug.ne=function(a,c){var d=[];if(n.g.contains(c,a))d.push("[...circular reference...]");else if(a&&c.length<n.debug.Cd){d.push(n.debug.getFunctionName(a)+"(");for(var e=a.arguments,f=0;e&&f<e.length;f++){0<f&&d.push(", ");var g=e[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=n.debug.getFunctionName(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+"...");
d.push(g)}c.push(a);d.push(")\n");try{d.push(n.debug.ne(a.caller,c))}catch(h){d.push("[exception trying to get caller]\n")}}else a?d.push("[...long stack...]"):d.push("[end]");return d.join("")};n.debug.Tp=function(a){n.debug.ae=a};n.debug.getFunctionName=function(a){if(n.debug.cb[a])return n.debug.cb[a];if(n.debug.ae){var c=n.debug.ae(a);if(c)return n.debug.cb[a]=c}a=String(a);n.debug.cb[a]||(c=/function ([^\(]+)/.exec(a),n.debug.cb[a]=c?c[1]:"[Anonymous]");return n.debug.cb[a]};
n.debug.np=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};n.debug.Op=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?"null":typeof a};n.debug.cb={};n.debug.ih=n.Ba&&Object.freeze||function(a){return a};n.debug.freeze=function(a){return n.debug.ih(a)};n.debug.Ga=function(a,c,d,e,f){"number"==typeof f||n.debug.Ga.b++;e||n.now();this.l=c;delete this.b};n.debug.Ga.prototype.b=null;n.debug.Ga.l=!0;n.debug.Ga.b=0;n.debug.Ga.prototype.getMessage=function(){return this.l};n.debug.Fa=function(){this.clear()};n.debug.Fa.fe=function(){n.debug.Fa.jb||(n.debug.Fa.jb=new n.debug.Fa);return n.debug.Fa.jb};n.debug.Fa.b=0;n.debug.Fa.l=function(){return!1};n.debug.Fa.prototype.clear=function(){};n.debug.o=function(a){this.I=a;this.b=this.v=this.D=this.l=null};n.debug.o.Kb="";n.debug.o.b=!0;n.debug.o.l=!1;n.debug.o.A=function(a,c){this.name=a;this.value=c};n.debug.o.A.prototype.toString=function(){return this.name};n.debug.o.A.Aa=new n.debug.o.A("OFF",Infinity);n.debug.o.A.nb=new n.debug.o.A("SHOUT",1200);n.debug.o.A.D=new n.debug.o.A("SEVERE",1E3);n.debug.o.A.Y=new n.debug.o.A("WARNING",900);n.debug.o.A.P=new n.debug.o.A("INFO",800);n.debug.o.A.l=new n.debug.o.A("CONFIG",700);
n.debug.o.A.I=new n.debug.o.A("FINE",500);n.debug.o.A.Ua=new n.debug.o.A("FINER",400);n.debug.o.A.Wa=new n.debug.o.A("FINEST",300);n.debug.o.A.ALL=new n.debug.o.A("ALL",0);n.debug.o.A.v=[n.debug.o.A.Aa,n.debug.o.A.nb,n.debug.o.A.D,n.debug.o.A.Y,n.debug.o.A.P,n.debug.o.A.l,n.debug.o.A.I,n.debug.o.A.Ua,n.debug.o.A.Wa,n.debug.o.A.ALL];n.debug.o.A.b=null;n.debug.o.A.za=function(){n.debug.o.A.b={};for(var a=0,c;c=n.debug.o.A.v[a];a++)n.debug.o.A.b[c.value]=c,n.debug.o.A.b[c.name]=c};
n.debug.o.A.Eb=function(a){n.debug.o.A.b||n.debug.o.A.za();return n.debug.o.A.b[a]||null};n.debug.o.A.yq=function(a){n.debug.o.A.b||n.debug.o.A.za();if(a in n.debug.o.A.b)return n.debug.o.A.b[a];for(var c=0;c<n.debug.o.A.v.length;++c){var d=n.debug.o.A.v[c];if(d.value<=a)return d}return null};n.debug.o.gb=function(a){return n.debug.O.gb(a)};n.debug.o.v=function(){};n.debug.o.prototype.Md=function(a){n.debug.da&&(this.b||(this.b=[]),this.b.push(a))};
n.debug.o.prototype.Ue=function(a){if(n.debug.da){var c=this.b;return!!c&&n.g.remove(c,a)}return!1};n.debug.o.prototype.getChildren=function(){this.v||(this.v={});return this.v};var w=function(a){if(!n.debug.da)return n.debug.o.A.Aa;if(a.D)return a.D;if(a.l)return w(a.l);n.h.Ra("Root logger has no level set.");return null};b=n.debug.o.prototype;
b.log=function(a,c,d){if(n.debug.da&&n.debug.da&&a.value>=w(this).value)for(n.xa(c)&&(c=c()),a=new n.debug.Ga(a,String(c),this.I),d&&(a.b=d),d=this;d;){var e=d,f=a;if(e.b)for(var g=0;c=e.b[g];g++)c(f);d=d.l}};b.ef=function(a,c){n.debug.da&&this.log(n.debug.o.A.Y,a,c)};b.info=function(a,c){n.debug.da&&this.log(n.debug.o.A.P,a,c)};b.config=function(a,c){n.debug.da&&this.log(n.debug.o.A.l,a,c)};b.Zd=function(a,c){n.debug.da&&this.log(n.debug.o.A.I,a,c)};n.debug.O={};n.debug.O.Tb={};n.debug.O.Db=null;
n.debug.O.initialize=function(){if(!n.debug.O.Db){n.debug.O.Db=new n.debug.o(n.debug.o.Kb);n.debug.O.Tb[n.debug.o.Kb]=n.debug.O.Db;var a=n.debug.o.A.l;n.debug.da&&(n.debug.O.Db.D=a)}};n.debug.O.ro=function(){return n.debug.O.Tb};n.debug.O.Fh=function(){n.debug.O.initialize();return n.debug.O.Db};n.debug.O.gb=function(a){n.debug.O.initialize();return n.debug.O.Tb[a]||n.debug.O.Ug(a)};
n.debug.O.Qn=function(a){return function(c){var d=a||n.debug.O.Fh();n.debug.da&&d.log(n.debug.o.A.D,"Error: "+c.message+" ("+c.fileName+" @ Line: "+c.line+")",void 0)}};n.debug.O.Ug=function(a){var c=new n.debug.o(a),d=a.lastIndexOf("."),e=a.substr(d+1);d=n.debug.O.gb(a.substr(0,d));d.getChildren()[e]=c;c.l=d;return n.debug.O.Tb[a]=c};n.log={};n.log.Ca=n.debug.da;n.log.Kb=n.debug.o.Kb;n.log.o=n.debug.o;n.log.A=n.debug.o.A;n.log.Ga=n.debug.Ga;n.log.gb=function(a){return n.log.Ca?n.debug.O.gb(a):null};n.log.Md=function(a){n.log.Ca&&a&&a.Md(void 0)};n.log.Ue=function(a){return n.log.Ca&&a?a.Ue(void 0):!1};n.log.log=function(a,c,d,e){n.log.Ca&&a&&a.log(c,d,e)};n.log.error=function(a,c,d){n.log.Ca&&a&&n.debug.da&&a.log(n.debug.o.A.D,c,d)};n.log.ef=function(a,c){n.log.Ca&&a&&a.ef(c,void 0)};
n.log.info=function(a,c,d){n.log.Ca&&a&&a.info(c,d)};n.log.Zd=function(a,c){n.log.Ca&&a&&a.Zd(c,void 0)};n.H={};n.H.vb=function(a){return function(){return a}};n.H.xk=n.H.vb(!1);n.H.nm=n.H.vb(!0);n.H.vl=n.H.vb(null);n.H.identity=function(a){return a};n.H.error=function(a){return function(){throw Error(a);}};n.H.Ra=function(){};n.H.lock=function(a,c){c=c||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,c))}};n.H.wp=function(a){return function(){return arguments[a]}};
n.H.Ap=function(a,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.push.apply(c,d);return a.apply(this,c)}};n.H.Aq=function(a,c){return n.H.Ti(a,n.H.vb(c))};n.H.ao=function(a,c){return function(d){return c?a==d:a===d}};n.H.Ln=function(a,c){var d=arguments,e=d.length;return function(){var a;e&&(a=d[e-1].apply(this,arguments));for(var c=e-2;0<=c;c--)a=d[c].call(this,a);return a}};
n.H.Ti=function(a){var c=arguments,d=c.length;return function(){for(var a,f=0;f<d;f++)a=c[f].apply(this,arguments);return a}};n.H.and=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(!c[a].apply(this,arguments))return!1;return!0}};n.H.or=function(a){var c=arguments,d=c.length;return function(){for(var a=0;a<d;a++)if(c[a].apply(this,arguments))return!0;return!1}};n.H.yi=function(a){return function(){return!a.apply(this,arguments)}};
n.H.create=function(a,c){var d=function(){};d.prototype=a.prototype;d=new d;a.apply(d,Array.prototype.slice.call(arguments,1));return d};n.H.kf=!0;n.H.vn=function(a){var c=!1,d;return function(){if(!n.H.kf)return a();c||(d=a(),c=!0);return d}};n.H.once=function(a){var c=a;return function(){if(c){var a=c;c=null;a()}}};n.H.Un=function(a,c,d){var e=0;return function(f){n.global.clearTimeout(e);var g=arguments;e=n.global.setTimeout(function(){a.apply(d,g)},c)}};
n.H.kq=function(a,c,d){var e=0,f=!1,g=[],h=function(){e=0;f&&(f=!1,k())},k=function(){e=n.global.setTimeout(h,c);a.apply(d,g)};return function(a){g=arguments;e?f=!0:k()}};n.H.Hp=function(a,c,d){var e=0,f=function(){e=0};return function(g){e||(e=n.global.setTimeout(f,c),a.apply(d,arguments))}};n.G={};n.G.Gp=function(a){return Math.floor(Math.random()*a)};n.G.sq=function(a,c){return a+Math.random()*(c-a)};n.G.En=function(a,c,d){return Math.min(Math.max(a,c),d)};n.G.Oe=function(a,c){a%=c;return 0>a*c?a+c:a};n.G.ip=function(a,c,d){return a+d*(c-a)};n.G.sp=function(a,c,d){return Math.abs(a-c)<=(d||1E-6)};n.G.ed=function(a){return n.G.Oe(a,360)};n.G.bq=function(a){return n.G.Oe(a,2*Math.PI)};n.G.af=function(a){return a*Math.PI/180};n.G.Yi=function(a){return 180*a/Math.PI};
n.G.Em=function(a,c){return c*Math.cos(n.G.af(a))};n.G.Fm=function(a,c){return c*Math.sin(n.G.af(a))};n.G.angle=function(a,c,d,e){return n.G.ed(n.G.Yi(Math.atan2(e-c,d-a)))};n.G.Dm=function(a,c){a=n.G.ed(c)-n.G.ed(a);180<a?a-=360:-180>=a&&(a=360+a);return a};n.G.sign=function(a){return 0<a?1:0>a?-1:a};
n.G.mp=function(a,c,d,e){d=d||function(a,c){return a==c};e=e||function(c){return a[c]};for(var f=a.length,g=c.length,h=[],k=0;k<f+1;k++)h[k]=[],h[k][0]=0;for(var l=0;l<g+1;l++)h[0][l]=0;for(k=1;k<=f;k++)for(l=1;l<=g;l++)d(a[k-1],c[l-1])?h[k][l]=h[k-1][l-1]+1:h[k][l]=Math.max(h[k-1][l],h[k][l-1]);var q=[];k=f;for(l=g;0<k&&0<l;)d(a[k-1],c[l-1])?(q.unshift(e(k-1,l-1)),k--,l--):h[k-1][l]>h[k][l-1]?k--:l--;return q};n.G.Ze=function(a){return n.g.reduce(arguments,function(a,d){return a+d},0)};
n.G.Jg=function(a){return n.G.Ze.apply(null,arguments)/arguments.length};n.G.Gi=function(a){var c=arguments.length;if(2>c)return 0;var d=n.G.Jg.apply(null,arguments);return n.G.Ze.apply(null,n.g.map(arguments,function(a){return Math.pow(a-d,2)}))/(c-1)};n.G.cq=function(a){return Math.sqrt(n.G.Gi.apply(null,arguments))};n.G.Uo=function(a){return isFinite(a)&&0==a%1};n.G.So=function(a){return isFinite(a)};n.G.Xo=function(a){return 0==a&&0>1/a};
n.G.lp=function(a){if(0<a){var c=Math.round(Math.log(a)*Math.LOG10E);return c-(parseFloat("1e"+c)>a?1:0)}return 0==a?-Infinity:NaN};n.G.Qp=function(a,c){return Math.floor(a+(c||2E-15))};n.G.Pp=function(a,c){return Math.ceil(a-(c||2E-15))};n.j={};n.j.X="StopIteration"in n.global?n.global.StopIteration:{message:"StopIteration",stack:""};n.j.Iterator=function(){};n.j.Iterator.prototype.b=function(){throw n.j.X;};n.j.Iterator.prototype.Cc=function(){return this};n.j.R=function(a){if(a instanceof n.j.Iterator)return a;if("function"==typeof a.Cc)return a.Cc(!1);if(n.ra(a)){var c=0,d=new n.j.Iterator;d.b=function(){for(;;){if(c>=a.length)throw n.j.X;if(c in a)return a[c++];c++}};return d}throw Error("Not implemented");};
n.j.forEach=function(a,c,d){if(n.ra(a))try{n.g.forEach(a,c,d)}catch(e){if(e!==n.j.X)throw e;}else{a=n.j.R(a);try{for(;;)c.call(d,a.b(),void 0,a)}catch(e){if(e!==n.j.X)throw e;}}};n.j.filter=function(a,c,d){var e=n.j.R(a);a=new n.j.Iterator;a.b=function(){for(;;){var a=e.b();if(c.call(d,a,void 0,e))return a}};return a};n.j.fo=function(a,c,d){return n.j.filter(a,n.H.yi(c),d)};
n.j.Vb=function(a,c,d){var e=0,f=a,g=d||1;1<arguments.length&&(e=a,f=+c);if(0==g)throw Error("Range step argument must not be zero");var h=new n.j.Iterator;h.b=function(){if(0<g&&e>=f||0>g&&e<=f)throw n.j.X;var a=e;e+=g;return a};return h};n.j.join=function(a,c){return n.j.Na(a).join(c)};n.j.map=function(a,c,d){var e=n.j.R(a);a=new n.j.Iterator;a.b=function(){var a=e.b();return c.call(d,a,void 0,e)};return a};n.j.reduce=function(a,c,d,e){var f=d;n.j.forEach(a,function(a){f=c.call(e,f,a)});return f};
n.j.some=function(a,c,d){a=n.j.R(a);try{for(;;)if(c.call(d,a.b(),void 0,a))return!0}catch(e){if(e!==n.j.X)throw e;}return!1};n.j.every=function(a,c,d){a=n.j.R(a);try{for(;;)if(!c.call(d,a.b(),void 0,a))return!1}catch(e){if(e!==n.j.X)throw e;}return!0};n.j.Dn=function(a){return n.j.Rg(arguments)};n.j.Rg=function(a){var c=n.j.R(a);a=new n.j.Iterator;var d=null;a.b=function(){for(;;){if(null==d){var a=c.b();d=n.j.R(a)}try{return d.b()}catch(f){if(f!==n.j.X)throw f;d=null}}};return a};
n.j.Wn=function(a,c,d){var e=n.j.R(a);a=new n.j.Iterator;var f=!0;a.b=function(){for(;;){var a=e.b();if(!f||!c.call(d,a,void 0,e))return f=!1,a}};return a};n.j.jq=function(a,c,d){var e=n.j.R(a);a=new n.j.Iterator;a.b=function(){var a=e.b();if(c.call(d,a,void 0,e))return a;throw n.j.X;};return a};n.j.Na=function(a){if(n.ra(a))return n.g.Na(a);a=n.j.R(a);var c=[];n.j.forEach(a,function(a){c.push(a)});return c};
n.j.ia=function(a,c,d){a=n.j.ij({},a,c);var e=d||n.g.Ud;return n.j.every(a,function(a){return e(a[0],a[1])})};n.j.wi=function(a){try{n.j.R(a).b()}catch(c){if(c!=n.j.X)throw c;}};
n.j.product=function(a){if(n.g.some(arguments,function(a){return!a.length})||!arguments.length)return new n.j.Iterator;var c=new n.j.Iterator,d=arguments,e=n.g.repeat(0,d.length);c.b=function(){if(e){for(var a=n.g.map(e,function(a,c){return d[c][a]}),c=e.length-1;0<=c;c--){if(e[c]<d[c].length-1){e[c]++;break}if(0==c){e=null;break}e[c]=0}return a}throw n.j.X;};return c};
n.j.Tn=function(a){var c=n.j.R(a),d=[],e=0;a=new n.j.Iterator;var f=!1;a.b=function(){var a=null;if(!f)try{return a=c.b(),d.push(a),a}catch(h){if(h!=n.j.X||n.g.Bb(d))throw h;f=!0}a=d[e];e=(e+1)%d.length;return a};return a};n.j.count=function(a,c){var d=a||0,e=n.Ma(c)?c:1;a=new n.j.Iterator;a.b=function(){var a=d;d+=e;return a};return a};n.j.repeat=function(a){var c=new n.j.Iterator;c.b=n.H.vb(a);return c};n.j.Bm=function(a){var c=n.j.R(a),d=0;a=new n.j.Iterator;a.b=function(){return d+=c.b()};return a};
n.j.ff=function(a){var c=arguments,d=new n.j.Iterator;if(0<c.length){var e=n.g.map(c,n.j.R);d.b=function(){return n.g.map(e,function(a){return a.b()})}}return d};n.j.ij=function(a,c){var d=n.g.slice(arguments,1),e=new n.j.Iterator;if(0<d.length){var f=n.g.map(d,n.j.R);e.b=function(){var c=!1,d=n.g.map(f,function(d){try{var e=d.b();c=!0}catch(q){if(q!==n.j.X)throw q;e=a}return e});if(!c)throw n.j.X;return d}}return e};n.j.Mn=function(a,c){var d=n.j.R(c);return n.j.filter(a,function(){return!!d.b()})};
n.j.kc=function(a,c){this.D=n.j.R(a);this.I=c||n.H.identity};n.Ta(n.j.kc,n.j.Iterator);n.j.kc.prototype.b=function(){for(;this.l==this.P;)this.v=this.D.b(),this.l=this.I(this.v);for(var a=this.P=this.l,c=this.P,d=[];this.l==c;){d.push(this.v);try{this.v=this.D.b()}catch(e){if(e!==n.j.X)throw e;break}this.l=this.I(this.v)}return[a,d]};n.j.Co=function(a,c){return new n.j.kc(a,c)};
n.j.eq=function(a,c,d){var e=n.j.R(a);a=new n.j.Iterator;a.b=function(){var a=n.j.Na(e.b());return c.apply(d,n.g.concat(a,void 0,e))};return a};n.j.tee=function(a,c){var d=n.j.R(a),e=n.g.map(n.g.Vb(n.Cb(c)?c:2),function(){return[]}),f=function(){var a=d.b();n.g.forEach(e,function(c){c.push(a)})};return n.g.map(e,function(a){var c=new n.j.Iterator;c.b=function(){n.g.Bb(a)&&f();return a.shift()};return c})};n.j.Zn=function(a,c){return n.j.ff(n.j.count(c),a)};
n.j.limit=function(a,c){var d=n.j.R(a);a=new n.j.Iterator;var e=c;a.b=function(){if(0<e--)return d.b();throw n.j.X;};return a};n.j.Tg=function(a,c){for(a=n.j.R(a);0<c--;)n.j.wi(a);return a};n.j.slice=function(a,c,d){a=n.j.Tg(a,c);n.Cb(d)&&(a=n.j.limit(a,d-c));return a};n.j.Lh=function(a){var c=[];n.g.Fi(a,c);return a.length!=c.length};n.j.Ci=function(a,c){a=n.j.Na(a);c=n.g.repeat(a,n.Cb(c)?c:a.length);c=n.j.product.apply(void 0,c);return n.j.filter(c,function(a){return!n.j.Lh(a)})};
n.j.In=function(a,c){function d(a){return e[a]}var e=n.j.Na(a);a=n.j.Vb(e.length);c=n.j.Ci(a,c);var f=n.j.filter(c,function(a){return n.g.Ge(a)});c=new n.j.Iterator;c.b=function(){return n.g.map(f.b(),d)};return c};n.j.Jn=function(a,c){function d(a){return e[a]}var e=n.j.Na(a);a=n.g.Vb(e.length);c=n.g.repeat(a,c);c=n.j.product.apply(void 0,c);var f=n.j.filter(c,function(a){return n.g.Ge(a)});c=new n.j.Iterator;c.b=function(){return n.g.map(f.b(),d)};return c};n.M={};n.M.Map=function(a,c){this.W={};this.b=[];this.v=this.l=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(a)if(a instanceof n.M.Map)for(d=a.eb(),e=0;e<d.length;e++)this.set(d[e],a.get(d[e]));else for(e in a)this.set(e,a[e])};b=n.M.Map.prototype;b.de=function(){return this.l};b.ib=function(){x(this);for(var a=[],c=0;c<this.b.length;c++)a.push(this.W[this.b[c]]);return a};
b.eb=function(){x(this);return this.b.concat()};b.wb=function(a){return n.M.Map.b(this.W,a)};b.Rd=function(a){for(var c=0;c<this.b.length;c++){var d=this.b[c];if(n.M.Map.b(this.W,d)&&this.W[d]==a)return!0}return!1};b.ia=function(a,c){if(this===a)return!0;if(this.l!=a.de())return!1;c=c||n.M.Map.l;x(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};n.M.Map.l=function(a,c){return a===c};n.M.Map.prototype.Bb=function(){return 0==this.l};
n.M.Map.prototype.clear=function(){this.W={};this.v=this.l=this.b.length=0};n.M.Map.prototype.remove=function(a){return n.M.Map.b(this.W,a)?(delete this.W[a],this.l--,this.v++,this.b.length>2*this.l&&x(this),!0):!1};var x=function(a){if(a.l!=a.b.length){for(var c=0,d=0;c<a.b.length;){var e=a.b[c];n.M.Map.b(a.W,e)&&(a.b[d++]=e);c++}a.b.length=d}if(a.l!=a.b.length){var f={};for(d=c=0;c<a.b.length;)e=a.b[c],n.M.Map.b(f,e)||(a.b[d++]=e,f[e]=1),c++;a.b.length=d}};b=n.M.Map.prototype;
b.get=function(a,c){return n.M.Map.b(this.W,a)?this.W[a]:c};b.set=function(a,c){n.M.Map.b(this.W,a)||(this.l++,this.b.push(a),this.v++);this.W[a]=c};b.forEach=function(a,c){for(var d=this.eb(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);a.call(c,g,f,this)}};b.clone=function(){return new n.M.Map(this)};b.aj=function(){for(var a=new n.M.Map,c=0;c<this.b.length;c++){var d=this.b[c];a.set(this.W[d],d)}return a};b.Zi=function(){x(this);for(var a={},c=0;c<this.b.length;c++){var d=this.b[c];a[d]=this.W[d]}return a};
b.Cc=function(a){x(this);var c=0,d=this.v,e=this,f=new n.j.Iterator;f.b=function(){if(d!=e.v)throw Error("The map has changed since the iterator was created");if(c>=e.b.length)throw n.j.X;var f=e.b[c++];return a?f:e.W[f]};return f};n.M.Map.b=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};chrome.cast.a.C.Ea=function(a){this.P=a;this.Aa=n.log.gb("chrome.cast.games.internal.GameManagerSession");this.D=null;this.Wa=new n.M.Map;this.b=new n.M.Map;this.v=new n.M.Map;this.l=new n.M.Map;this.Ua=new n.M.Map;this.za=this.I=this.Y=null;this.P.addMessageListener(chrome.cast.a.ab,n.bind(this.nb,this))};chrome.cast.a.C.Ea.b=6E4;
chrome.cast.a.C.Ea.prototype.wa=function(){this.P.removeMessageListener(chrome.cast.a.ab,n.bind(this.nb,this));for(var a=this.v.eb(),c=0;c<a.length;c++)y(this,a[c]);this.I=this.Y=null};
var z=function(a,c,d){var e=new chrome.cast.a.C.yd;e.type=chrome.cast.a.C.ba.gc;if(!e.requestId)throw Error("Missing requestId field from request.");if(!c)throw Error("No success callback provided.");a.D=c;c=n.Va;d&&(a.b.set(e.requestId,d),c=function(a){d(new chrome.cast.a.rb(chrome.cast.a.Da.cc,a.description,null,a));y(this,e.requestId)}.bind(a));var f=n.global.setTimeout(n.bind(a.Eb,a,e.requestId),6E4);a.v.set(e.requestId,f);a.l.set(e.requestId,e.type);a.P.sendMessage(chrome.cast.a.ab,e,n.Va,c)},
A=function(a,c,d,e,f,g){if(d==chrome.cast.a.C.ba.UNKNOWN)throw Error("Cannot send an UNKNOWN game manager request.");if(!c&&d!=chrome.cast.a.C.ba.Jd&&d!=chrome.cast.a.C.ba.gc)throw Error("Missing player ID for game manager request type:"+d);var h=new chrome.cast.a.C.yd;h.type=d;h.playerId=c?c:"";h.playerToken=a.Ua.get(h.playerId,null);h.extraMessageData=e;if(!h.requestId)throw Error("Missing requestId field from request");f&&a.Wa.set(h.requestId,f);c=n.Va;g&&(a.b.set(h.requestId,g),c=function(a){g(new chrome.cast.a.rb(chrome.cast.a.Da.cc,
a.description,null,a));y(this,h.requestId)}.bind(a));h.type!=chrome.cast.a.C.ba.GAME_MESSAGE&&(d=n.global.setTimeout(n.bind(a.Eb,a,h.requestId),6E4),a.v.set(h.requestId,d));a.l.set(h.requestId,h.type);a.P.sendMessage(chrome.cast.a.ab,h,n.Va,c)};chrome.cast.a.C.Ea.prototype.ma=function(){return this.za};n.w(chrome.cast.a.C.Ea.prototype,"getLastUsedPlayerId",chrome.cast.a.C.Ea.prototype.ma);
chrome.cast.a.C.Ea.prototype.nb=function(a,c){if(a!=chrome.cast.a.ab)throw Error("Incoming message has unexpected namespace: "+a);a=JSON.parse(c);c=a.type;if(c!=chrome.cast.a.C.sb.GAME_MANAGER_PROCESSED_RESULT&&c!=chrome.cast.a.C.sb.GAME_MESSAGE)n.log.error(this.Aa,"Ignoring message, type is not GAME_MANAGER_PROCESSED_RESULT or  GAME_MESSAGE Type: "+c);else if(a.gameManagerConfig&&a.gameManagerConfig.version!=chrome.cast.a.zc&&(a.statusCode=chrome.cast.a.C.oa.INCORRECT_VERSION,a.errorDescription=
"Incorrect version of the GameManager SDK. Sender: "+chrome.cast.a.zc+"Receiver: "+a.gameManagerConfig.version),a.statusCode!=chrome.cast.a.C.oa.SUCCESS)if(c=a.requestId,this.b.wb(c)){var d=this.b.get(c),e=new chrome.cast.a.jc(a.playerId,a.requestId,a.extraMessageData),f=chrome.cast.a.C.oa.qh(a.statusCode);d(new chrome.cast.a.rb(f,a.errorDescription,e,null));y(this,c)}else n.log.info(this.Aa,"Ignoring error message, no callback for request ID: "+c);else{c=a.playerId;d=a.playerToken;c&&d&&this.Ua.set(c,
d);this.Y&&this.Y(a);if(a.requestId)if(this.za=c||this.za,c=a.requestId,d=this.l.get(c),e=this.Wa.get(a.requestId),y(this,c),d==chrome.cast.a.C.ba.gc){if(!this.D)throw Error("Got a response for a GET_GAME_MANAGER_CONFIG request but no initialization callback was set.");this.D();this.D=null}else e?e(new chrome.cast.a.jc(a.playerId,a.requestId,a.extraMessageData)):n.log.info(this.Aa,"Ignoring message, no callback for request ID: "+c);this.I&&this.I()}};
chrome.cast.a.C.Ea.prototype.Eb=function(a){var c=this.l.get(a);c="Did not receive a response to player request within a time period. request ID="+a+" request type ="+c;if(this.b.wb(a)){var d=this.b.get(a),e=new chrome.cast.Error(chrome.cast.ErrorCode.TIMEOUT,c,null);d(new chrome.cast.a.rb(chrome.cast.a.Da.cc,c,null,e));y(this,a)}else throw Error(c);};var y=function(a,c){a.Wa.remove(c);a.b.remove(c);var d=a.v.get(c);n.global.clearTimeout(d);a.v.remove(c);a.l.remove(c)};n.debug.V={};n.debug.wk=function(){};n.debug.V.mb=[];n.debug.V.Yc=[];n.debug.V.Pe=!1;n.debug.V.register=function(a){n.debug.V.mb[n.debug.V.mb.length]=a;if(n.debug.V.Pe)for(var c=n.debug.V.Yc,d=0;d<c.length;d++)a(n.bind(c[d].b,c[d]))};n.debug.V.qp=function(a){n.debug.V.Pe=!0;for(var c=n.bind(a.b,a),d=0;d<n.debug.V.mb.length;d++)n.debug.V.mb[d](c);n.debug.V.Yc.push(a)};n.debug.V.uq=function(a){var c=n.debug.V.Yc;a=n.bind(a.l,a);for(var d=0;d<n.debug.V.mb.length;d++)n.debug.V.mb[d](a);c.length--};n.Zg={};n.Zg.Kk=function(){};n.N=function(){0!=n.N.l.OFF&&(n.N.b[n.yb(this)]=this);this.l=this.l;this.b=this.b};n.N.l={OFF:0,fg:1,Nk:2};n.N.D=0;n.N.v=!0;n.N.b={};n.N.P=function(){var a=[],c;for(c in n.N.b)n.N.b.hasOwnProperty(c)&&a.push(n.N.b[Number(c)]);return a};n.N.I=function(){n.N.b={}};n.N.prototype.l=!1;n.N.prototype.isDisposed=function(){return this.l};
n.N.prototype.wa=function(){if(!this.l&&(this.l=!0,this.Hc(),0!=n.N.l.OFF)){var a=n.yb(this);if(0==n.N.l.fg&&!n.N.b.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");if(0!=n.N.l.OFF&&this.b&&0<this.b.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete n.N.b[a]}};
n.N.prototype.Hc=function(){if(this.b)for(;this.b.length;)this.b.shift()()};n.N.isDisposed=function(a){return a&&"function"==typeof a.isDisposed?a.isDisposed():!1};n.wa=function(a){a&&"function"==typeof a.wa&&a.wa()};n.ah=function(a){for(var c=0,d=arguments.length;c<d;++c){var e=arguments[c];n.ra(e)?n.ah.apply(null,e):n.wa(e)}};n.events={};m.scope.Ei=function(a){return{valueOf:a}.valueOf()};
n.events.Oa={Hk:!n.userAgent.na||n.userAgent.Qc(9),lc:!n.userAgent.na||n.userAgent.Qc(9),og:n.userAgent.na&&!n.userAgent.fa("9"),Gk:!n.userAgent.Qa||n.userAgent.fa("528"),Fk:n.userAgent.Hb&&n.userAgent.fa("1.9b")||n.userAgent.na&&n.userAgent.fa("8")||n.userAgent.qc&&n.userAgent.fa("9.5")||n.userAgent.Qa&&n.userAgent.fa("528"),Jk:n.userAgent.Hb&&!n.userAgent.fa("8")||n.userAgent.na&&!n.userAgent.fa("9"),km:"ontouchstart"in n.global||!!(n.global.document&&document.documentElement&&"ontouchstart"in document.documentElement)||
!(!n.global.navigator||!n.global.navigator.maxTouchPoints&&!n.global.navigator.msMaxTouchPoints),kg:"PointerEvent"in n.global,Sf:"MSPointerEvent"in n.global&&!(!n.global.navigator||!n.global.navigator.msPointerEnabled),dg:(0,m.scope.Ei)(function(){if(!n.global.addEventListener||!Object.defineProperty)return!1;var a=!1,c=Object.defineProperty({},"passive",{get:function(){a=!0}});n.global.addEventListener("test",n.Va,c);n.global.removeEventListener("test",n.Va,c);return a})};n.events.ud=function(a){this.id=a};n.events.ud.prototype.toString=function(){return this.id};n.events.Event=function(a,c){this.type=a instanceof n.events.ud?String(a):a;this.b=this.target=c;this.l=!1;this.We=!0};n.events.Event.prototype.I=function(){this.l=!0};n.events.Event.prototype.D=function(){this.We=!1};n.events.Event.l=function(a){a.I()};n.events.Event.b=function(a){a.D()};n.events.Nb=function(a){return n.userAgent.Qa?"webkit"+a:n.userAgent.qc?"o"+a.toLowerCase():a.toLowerCase()};
n.events.L={Dj:"click",Nl:"rightclick",Oj:"dblclick",Ed:"mousedown",Id:"mouseup",pc:"mouseover",oc:"mouseout",Hd:"mousemove",Fd:"mouseenter",Gd:"mouseleave",Dd:"mousecancel",Tl:"selectionchange",Ul:"selectstart",xm:"wheel",Sk:"keypress",Rk:"keydown",Tk:"keyup",yj:"blur",zk:"focus",Pj:"deactivate",Ak:"focusin",Bk:"focusout",Cj:"change",Kl:"reset",Sl:"select",cm:"submit",Lk:"input",Gl:"propertychange",kk:"dragstart",fk:"drag",hk:"dragenter",jk:"dragover",ik:"dragleave",lk:"drop",gk:"dragend",jm:"touchstart",
im:"touchmove",hm:"touchend",gm:"touchcancel",xj:"beforeunload",Jj:"consolemessage",Kj:"contextmenu",Rj:"devicechange",Sj:"devicemotion",Tj:"deviceorientation",Zj:"DOMContentLoaded",ERROR:"error",Ik:"help",LOAD:"load",el:"losecapture",yl:"orientationchange",Jl:"readystatechange",Ll:"resize",Pl:"scroll",om:"unload",zj:"canplay",Aj:"canplaythrough",mk:"durationchange",pk:"emptied",sk:"ended",Xk:"loadeddata",Yk:"loadedmetadata",PAUSE:"pause",Dl:"play",PLAYING:"playing",Il:"ratechange",Ql:"seeked",Rl:"seeking",
Zl:"stalled",dm:"suspend",fm:"timeupdate",vm:"volumechange",wm:"waiting",Yl:"sourceopen",Xl:"sourceended",Wl:"sourceclosed",jj:"abort",qm:"update",tm:"updatestart",rm:"updateend",Ek:"hashchange",zl:"pagehide",Al:"pageshow",El:"popstate",Mj:"copy",Bl:"paste",Nj:"cut",rj:"beforecopy",sj:"beforecut",vj:"beforepaste",xl:"online",wl:"offline",hl:"message",Ij:"connect",Mk:"install",kj:"activate",yk:"fetch",Ck:"foreignfetch",il:"messageerror",am:"statechange",sm:"updatefound",Lj:"controllerchange",oj:n.events.Nb("AnimationStart"),
mj:n.events.Nb("AnimationEnd"),nj:n.events.Nb("AnimationIteration"),lm:n.events.Nb("TransitionEnd"),sc:"pointerdown",yc:"pointerup",rc:"pointercancel",vc:"pointermove",xc:"pointerover",wc:"pointerout",tc:"pointerenter",uc:"pointerleave",Dk:"gotpointercapture",fl:"lostpointercapture",ll:"MSGestureChange",ml:"MSGestureEnd",nl:"MSGestureHold",ol:"MSGestureStart",pl:"MSGestureTap",ql:"MSGotPointerCapture",rl:"MSInertiaStart",sl:"MSLostPointerCapture",Kf:"MSPointerCancel",Lf:"MSPointerDown",Mf:"MSPointerEnter",
tl:"MSPointerHover",Nf:"MSPointerLeave",Of:"MSPointerMove",Pf:"MSPointerOut",Qf:"MSPointerOver",Rf:"MSPointerUp",TEXT:"text",em:n.userAgent.na?"textinput":"textInput",Gj:"compositionstart",Hj:"compositionupdate",Fj:"compositionend",tj:"beforeinput",vk:"exit",Vk:"loadabort",Wk:"loadcommit",Zk:"loadredirect",al:"loadstart",bl:"loadstop",Ml:"responsive",Vl:"sizechanged",pm:"unresponsive",um:"visibilitychange",bm:"storage",ek:"DOMSubtreeModified",ak:"DOMNodeInserted",ck:"DOMNodeRemoved",dk:"DOMNodeRemovedFromDocument",
bk:"DOMNodeInsertedIntoDocument",Xj:"DOMAttrModified",Yj:"DOMCharacterDataModified",wj:"beforeprint",lj:"afterprint",uj:"beforeinstallprompt",pj:"appinstalled"};n.events.La=function(a,c,d){return n.events.Oa.kg?a:n.events.Oa.Sf?c:d};
n.events.Ha={sc:n.events.La(n.events.L.sc,n.events.L.Lf,n.events.L.Ed),yc:n.events.La(n.events.L.yc,n.events.L.Rf,n.events.L.Id),rc:n.events.La(n.events.L.rc,n.events.L.Kf,n.events.L.Dd),vc:n.events.La(n.events.L.vc,n.events.L.Of,n.events.L.Hd),xc:n.events.La(n.events.L.xc,n.events.L.Qf,n.events.L.pc),wc:n.events.La(n.events.L.wc,n.events.L.Pf,n.events.L.oc),tc:n.events.La(n.events.L.tc,n.events.L.Mf,n.events.L.Fd),uc:n.events.La(n.events.L.uc,n.events.L.Nf,n.events.L.Gd)};
n.events.Hl={Ed:n.events.Ha.sc,Id:n.events.Ha.yc,Dd:n.events.Ha.rc,Hd:n.events.Ha.vc,pc:n.events.Ha.xc,oc:n.events.Ha.wc,Fd:n.events.Ha.tc,Gd:n.events.Ha.uc};n.events.S=function(a,c){n.events.Event.call(this,a?a.type:"");this.relatedTarget=this.b=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.pointerId=0;this.pointerType="";this.v=null;a&&this.init(a,c)};n.Ta(n.events.S,n.events.Event);n.events.S.P={LEFT:0,jl:1,RIGHT:2};n.events.S.b={Jf:"mouse",eg:"pen",rg:"touch"};n.events.S.l=n.debug.freeze([1,4,2]);n.events.S.I=n.events.S.l;
n.events.S.v=n.debug.freeze({2:n.events.S.b.rg,3:n.events.S.b.eg,4:n.events.S.b.Jf});
n.events.S.prototype.init=function(a,c){var d=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.b=c;(c=a.relatedTarget)?n.userAgent.Hb&&(n.sa.Pg(c)||(c=null)):d==n.events.L.pc?c=a.fromElement:d==n.events.L.oc&&(c=a.toElement);this.relatedTarget=c;n.Ee(e)?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:
e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=n.events.S.D(a);this.v=a;a.defaultPrevented&&this.D()};n.events.S.prototype.I=function(){n.events.S.Ya.I.call(this);this.v.stopPropagation?this.v.stopPropagation():this.v.cancelBubble=!0};
n.events.S.prototype.D=function(){n.events.S.Ya.D.call(this);var a=this.v;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,n.events.Oa.og)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(c){}};n.events.S.D=function(a){return n.K(a.pointerType)?a.pointerType:n.events.S.v[a.pointerType]||""};n.events.Z=function(){};n.events.Z.l="closure_listenable_"+(1E6*Math.random()|0);n.events.Z.v=function(){n.events.EventTarget.prototype[n.events.Z.l]=!0};n.events.Z.b=function(a){return!(!a||!a[n.events.Z.l])};n.events.Ib=function(){};n.events.Ib.b=0;n.events.Ib.l=function(){return++n.events.Ib.b};n.events.Listener=function(a,c,d,e,f,g){this.listener=a;this.proxy=c;this.src=d;this.type=e;this.capture=!!f;this.Ob=g;this.key=n.events.Ib.l();this.removed=this.Lb=!1};n.events.Listener.b=!1;var B=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Ob=null};n.events.ea=function(a){this.src=a;this.b={};this.l=0};n.events.ea.prototype.add=function(a,c,d,e,f){var g=a.toString();a=this.b[g];a||(a=this.b[g]=[],this.l++);var h=n.events.ea.b(a,c,e,f);-1<h?(c=a[h],d||(c.Lb=!1)):(c=new n.events.Listener(c,null,this.src,g,!!e,f),c.Lb=d,a.push(c));return c};
n.events.ea.prototype.remove=function(a,c,d,e){a=a.toString();if(!(a in this.b))return!1;var f=this.b[a];c=n.events.ea.b(f,c,d,e);return-1<c?(B(f[c]),n.g.Xa(f,c),0==f.length&&(delete this.b[a],this.l--),!0):!1};var C=function(a,c){var d=c.type;if(!(d in a.b))return!1;var e=n.g.remove(a.b[d],c);e&&(B(c),0==a.b[d].length&&(delete a.b[d],a.l--));return e};
n.events.ea.prototype.removeAll=function(a){a=a&&a.toString();var c=0,d;for(d in this.b)if(!a||d==a){for(var e=this.b[d],f=0;f<e.length;f++)++c,B(e[f]);delete this.b[d];this.l--}return c};n.events.ea.prototype.xb=function(a,c){a=this.b[a.toString()];var d=[];if(a)for(var e=0;e<a.length;++e){var f=a[e];f.capture==c&&d.push(f)}return d};n.events.ea.prototype.fb=function(a,c,d,e){a=this.b[a.toString()];var f=-1;a&&(f=n.events.ea.b(a,c,d,e));return-1<f?a[f]:null};
n.events.ea.prototype.hasListener=function(a,c){var d=n.Ma(a),e=d?a.toString():"",f=n.Ma(c);return n.object.some(this.b,function(a){for(var g=0;g<a.length;++g)if(!(d&&a[g].type!=e||f&&a[g].capture!=c))return!0;return!1})};n.events.ea.b=function(a,c,d,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.removed&&g.listener==c&&g.capture==!!d&&g.Ob==e)return f}return-1};n.events.mc="closure_lm_"+(1E6*Math.random()|0);n.events.zi="on";n.events.Zc={};n.events.dc={Xf:0,Yf:1,Zf:2};n.events.bc=2;n.events.Tc=0;n.events.listen=function(a,c,d,e,f){if(e&&e.once)return n.events.Sb(a,c,d,e,f);if(n.isArray(c)){for(var g=0;g<c.length;g++)n.events.listen(a,c[g],d,e,f);return null}d=n.events.Wb(d);return n.events.Z.b(a)?a.listen(c,d,n.ya(e)?!!e.capture:!!e,f):n.events.Je(a,c,d,!1,e,f)};
n.events.Je=function(a,c,d,e,f,g){if(!c)throw Error("Invalid event type");var h=n.ya(f)?!!f.capture:!!f;if(h&&!n.events.Oa.lc){if(n.events.bc==n.events.dc.Xf)return n.h.Ra("Can not register capture listener in IE8-."),null;if(n.events.bc==n.events.dc.Yf)return null}var k=n.events.Ka(a);k||(a[n.events.mc]=k=new n.events.ea(a));d=k.add(c,d,e,h,g);if(d.proxy)return d;e=n.events.Eh();d.proxy=e;e.src=a;e.listener=d;if(a.addEventListener)n.events.Oa.dg||(f=h),void 0===f&&(f=!1),a.addEventListener(c.toString(),
e,f);else if(a.attachEvent)a.attachEvent(n.events.le(c.toString()),e);else if(a.addListener&&a.removeListener)a.addListener(e);else throw Error("addEventListener and attachEvent are unavailable.");n.events.Tc++;return d};n.events.Eh=function(){var a=n.events.Ab,c=n.events.Oa.lc?function(d){return a.call(c.src,c.listener,d)}:function(d){d=a.call(c.src,c.listener,d);if(!d)return d};return c};
n.events.Sb=function(a,c,d,e,f){if(n.isArray(c)){for(var g=0;g<c.length;g++)n.events.Sb(a,c[g],d,e,f);return null}d=n.events.Wb(d);return n.events.Z.b(a)?a.Sb(c,d,n.ya(e)?!!e.capture:!!e,f):n.events.Je(a,c,d,!0,e,f)};n.events.jp=function(a,c,d,e,f){c.listen(a,d,e,f)};
n.events.ob=function(a,c,d,e,f){if(n.isArray(c)){for(var g=0;g<c.length;g++)n.events.ob(a,c[g],d,e,f);return null}e=n.ya(e)?!!e.capture:!!e;d=n.events.Wb(d);if(n.events.Z.b(a))return a.ob(c,d,e,f);if(!a)return!1;if(a=n.events.Ka(a))if(c=a.fb(c,d,e,f))return n.events.pb(c);return!1};
n.events.pb=function(a){if(n.Cb(a)||!a||a.removed)return!1;var c=a.src;if(n.events.Z.b(c))return c.pb(a);var d=a.type,e=a.proxy;c.removeEventListener?c.removeEventListener(d,e,a.capture):c.detachEvent?c.detachEvent(n.events.le(d),e):c.addListener&&c.removeListener&&c.removeListener(e);n.events.Tc--;(d=n.events.Ka(c))?(C(d,a),0==d.l&&(d.src=null,c[n.events.mc]=null)):B(a);return!0};n.events.tq=function(a,c,d,e,f){c.ob(a,d,e,f)};
n.events.removeAll=function(a,c){if(!a)return 0;if(n.events.Z.b(a))return a.ja?a.ja.removeAll(c):0;a=n.events.Ka(a);if(!a)return 0;var d=0;c=c&&c.toString();for(var e in a.b)if(!c||e==c)for(var f=a.b[e].concat(),g=0;g<f.length;++g)n.events.pb(f[g])&&++d;return d};n.events.xb=function(a,c){return n.events.Z.b(a)?a.xb(c,void 0):a?(a=n.events.Ka(a))?a.xb(c,void 0):[]:[]};
n.events.fb=function(a,c,d,e){d=n.events.Wb(d);e=!!e;return n.events.Z.b(a)?a.fb(c,d,e,void 0):a?(a=n.events.Ka(a))?a.fb(c,d,e,void 0):null:null};n.events.hasListener=function(a,c,d){if(n.events.Z.b(a))return a.hasListener(c,d);a=n.events.Ka(a);return!!a&&a.hasListener(c,d)};n.events.bh=function(a){var c=[],d;for(d in a)a[d]&&a[d].id?c.push(d+" = "+a[d]+" ("+a[d].id+")"):c.push(d+" = "+a[d]);return c.join("\n")};
n.events.le=function(a){return a in n.events.Zc?n.events.Zc[a]:n.events.Zc[a]=n.events.zi+a};n.events.bb=function(a,c,d){return n.events.Z.b(a)?a.bb(c,d,void 0):n.events.Mc(a,c,d,void 0)};n.events.Mc=function(a,c,d,e){var f=!0;if(a=n.events.Ka(a))if(c=a.b[c.toString()])for(c=c.concat(),a=0;a<c.length;a++){var g=c[a];g&&g.capture==d&&!g.removed&&(g=n.events.Lc(g,e),f=f&&!1!==g)}return f};n.events.Lc=function(a,c){var d=a.listener,e=a.Ob||a.src;a.Lb&&n.events.pb(a);return d.call(e,c)};n.events.xo=function(){return n.events.Tc};
n.events.dispatchEvent=function(a,c){return a.dispatchEvent(c)};n.events.Cp=function(a){n.events.Ab=a.Dp(n.events.Ab)};
n.events.Ab=function(a,c){if(a.removed)return!0;if(!n.events.Oa.lc){var d=c||n.ke("window.event");c=new n.events.S(d,this);var e=!0;if(n.events.bc==n.events.dc.Zf){if(!n.events.ei(d)){n.events.ni(d);d=[];for(var f=c.b;f;f=f.parentNode)d.push(f);a=a.type;for(f=d.length-1;!c.l&&0<=f;f--){c.b=d[f];var g=n.events.Mc(d[f],a,!0,c);e=e&&g}for(f=0;!c.l&&f<d.length;f++)c.b=d[f],g=n.events.Mc(d[f],a,!1,c),e=e&&g}}else e=n.events.Lc(a,c);return e}return n.events.Lc(a,new n.events.S(c,this))};
n.events.ni=function(a){var c=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(d){c=!0}if(c||void 0==a.returnValue)a.returnValue=!0};n.events.ei=function(a){return 0>a.keyCode||void 0!=a.returnValue};n.events.dj=0;n.events.yo=function(a){return a+"_"+n.events.dj++};n.events.Ka=function(a){a=a[n.events.mc];return a instanceof n.events.ea?a:null};n.events.nc="__closure_events_fn_"+(1E9*Math.random()>>>0);
n.events.Wb=function(a){if(n.xa(a))return a;a[n.events.nc]||(a[n.events.nc]=function(c){return a.handleEvent(c)});return a[n.events.nc]};n.debug.V.register(function(a){n.events.Ab=a(n.events.Ab)});n.events.EventTarget=function(){n.N.call(this);this.ja=new n.events.ea(this);this.D=this;this.v=null};n.Ta(n.events.EventTarget,n.N);n.events.Z.v();n.events.EventTarget.l=1E3;b=n.events.EventTarget.prototype;b.addEventListener=function(a,c,d,e){n.events.listen(this,a,c,d,e)};b.removeEventListener=function(a,c,d,e){n.events.ob(this,a,c,d,e)};b.dispatchEvent=function(a){var c,d=this.v;if(d)for(c=[];d;d=d.v)c.push(d);return n.events.EventTarget.b(this.D,a,c)};
b.Hc=function(){n.events.EventTarget.Ya.Hc.call(this);this.ja&&this.ja.removeAll(void 0);this.v=null};b.listen=function(a,c,d,e){return this.ja.add(String(a),c,!1,d,e)};b.Sb=function(a,c,d,e){return this.ja.add(String(a),c,!0,d,e)};b.ob=function(a,c,d,e){return this.ja.remove(String(a),c,d,e)};b.pb=function(a){return C(this.ja,a)};
b.bb=function(a,c,d){a=this.ja.b[String(a)];if(!a)return!0;a=a.concat();for(var e=!0,f=0;f<a.length;++f){var g=a[f];if(g&&!g.removed&&g.capture==c){var h=g.listener,k=g.Ob||g.src;g.Lb&&this.pb(g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.We};b.xb=function(a,c){return this.ja.xb(String(a),c)};b.fb=function(a,c,d,e){return this.ja.fb(String(a),c,d,e)};b.hasListener=function(a,c){return this.ja.hasListener(n.Ma(a)?String(a):void 0,c)};
n.events.EventTarget.b=function(a,c,d){var e=c.type||c;if(n.K(c))c=new n.events.Event(c,a);else if(c instanceof n.events.Event)c.target=c.target||a;else{var f=c;c=new n.events.Event(e,a);n.object.extend(c,f)}f=!0;if(d)for(var g=d.length-1;!c.l&&0<=g;g--){var h=c.b=d[g];f=h.bb(e,!0,c)&&f}c.l||(h=c.b=a,f=h.bb(e,!0,c)&&f,c.l||(f=h.bb(e,!1,c)&&f));if(d)for(g=0;!c.l&&g<d.length;g++)h=c.b=d[g],f=h.bb(e,!1,c)&&f;return f};n.bd("goog.testing.stacktrace");n.c={};n.c.m={};n.c.m.Za=function(a,c,d,e){this.l=a;this.b=c;this.v=d;this.D=e};var D=function(a){return!a.b||"[object Object]"==a.l},E=function(a){var c=n.c.m.Uh,d=n.c.m.ui;d=[a.l?c(a.l)+".":"",a.b?c(d(a.b)):"anonymous",a.v?" [as "+c(d(a.v))+"]":""];a.D&&(d.push(" at "),d.push(c(a.D)));return d.join("")};n.c.m.Hf=20;n.c.m.If=5E5;n.c.m.ca="[a-zA-Z_$][\\w$]*";n.c.m.wg="(?: \\[as ("+n.c.m.ca+")\\])?";
n.c.m.xg="(?:((?:new )?(?:\\[object Object\\]|"+n.c.m.ca+"(?:\\."+n.c.m.ca+")*))\\.)?";n.c.m.zg="(?:new )?(?:"+n.c.m.ca+"|<anonymous>)";n.c.m.yg=" "+n.c.m.xg+"("+n.c.m.zg+")"+n.c.m.wg;n.c.m.Bc="((?:http|https|file)://[^\\s)]+|javascript:.*)";n.c.m.lf=" (?:\\(unknown source\\)|\\(native\\)|\\((.+)\\)|(.+))";n.c.m.Ag=new RegExp("^    at(?:"+n.c.m.yg+")?"+n.c.m.lf+"$");n.c.m.uf="("+n.c.m.ca+"(?:\\."+n.c.m.ca+")*)?(\\(.*\\))?@";n.c.m.vf=new RegExp("^"+n.c.m.uf+"(?::0|"+n.c.m.Bc+")$");
n.c.m.ag="<anonymous function(?:\\: (?:("+n.c.m.ca+"(?:\\."+n.c.m.ca+")*)\\.)?("+n.c.m.ca+"))?>";n.c.m.bg="(?:(?:("+n.c.m.ca+")|"+n.c.m.ag+")(\\(.*\\)))?@";n.c.m.cg=new RegExp("^"+n.c.m.bg+n.c.m.Bc+"?$");n.c.m.xf=new RegExp("^function ("+n.c.m.ca+")");n.c.m.Ef="("+n.c.m.ca+"(?:\\."+n.c.m.ca+")*(?:\\s+\\w+)*)";n.c.m.Ff=new RegExp("^   at "+n.c.m.Ef+"\\s*\\((eval code:[^)]*|Unknown script code:[^)]*|"+n.c.m.Bc+")\\)?$");
n.c.m.hh=function(){for(var a=[],c=arguments.callee.caller,d=0;c&&d<n.c.m.Hf;){var e=Function.prototype.toString.call(c).match(n.c.m.xf);a.push(new n.c.m.Za("",e?e[1]:"","",""));try{c=c.caller}catch(f){break}d++}return a};
n.c.m.Ai=function(a){var c=a.match(n.c.m.Ag);return c?new n.c.m.Za(c[1]||"",c[2]||"",c[3]||"",c[4]||c[5]||c[6]||""):a.length>n.c.m.If?null:(c=a.match(n.c.m.vf))?new n.c.m.Za("",c[1]||"","",c[3]||""):(c=a.match(n.c.m.cg))?new n.c.m.Za(c[2]||"",c[1]||c[3]||"","",c[5]||""):(c=a.match(n.c.m.Ff))?new n.c.m.Za("",c[1]||"","",c[2]||""):null};n.c.m.Ui=function(a){n.c.m.Vd=a};n.c.m.ui=function(a){return n.c.m.Vd?n.c.m.Vd(a):a};
n.c.m.Uh=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};n.c.m.ce=function(a){for(var c=a.length-1;a[c]&&D(a[c]);)c--;for(var d=-1,e=0;e<a.length;e++)if(a[e]&&"_assert"==a[e].b){d=e;break}var f=[];for(e=d+1;e<=c;e++)f.push("> "),a[e]?f.push(E(a[e])):f.push("(unknown)"),f.push("\n");return f.join("")};n.c.m.Se=function(a){a=a.replace(/\s*$/,"").split("\n");for(var c=[],d=0;d<a.length;d++)c.push(n.c.m.Ai(a[d]));return c};
n.c.m.wn=function(a){a=n.c.m.Se(a);return n.c.m.ce(a)};n.c.m.yh=function(){var a=Error();if(a.stack)return a.stack;try{null.x()}catch(c){return c.stack}return""};n.c.m.get=function(){var a=n.c.m.yh(),c;a?n.isArray(a)?c=n.c.m.Og(a):c=n.c.m.Se(a):c=n.c.m.hh();return n.c.m.ce(c)};n.c.m.Og=function(a){for(var c=[],d=0;d<a.length;d++){var e=a[d],f=e.getFunctionName()||"unknown",g=e.getFileName();e=g?g+":"+e.getLineNumber()+":"+e.getColumnNumber():"unknown";c.push(new n.c.m.Za("",f,"",e))}return c};
n.F("setDeobfuscateFunctionName",n.c.m.Ui);n.bd();n.c.tb=function(a,c){this.bi=!0;this.message=(a?a:"")+(a&&c?"\n":"")+(c?c:"");n.c.m.get();this.comment=a||null;Error.captureStackTrace?Error.captureStackTrace(this,n.c.tb):this.stack=Error().stack||""};n.Ta(n.c.tb,Error);n.c.tb.prototype.toString=function(){return this.message};n.c.h={};n.bd();var F=function(a,c){return a==c},G=function(a,c){return a.toString()===c.toString()},H={String:F,Number:F,Boolean:F,Date:function(a,c){return a.getTime()==c.getTime()},RegExp:G,Function:G};n.c.h.Re=function(a,c,d){return Math.abs(a-c)<=d};n.c.h.Di={Number:n.c.h.Re};
var _trueTypeOf=function(a){var c=typeof a;try{switch(c){case "object":if(null==a){c="null";break}case "function":switch(a.constructor){case (new String("")).constructor:c="String";break;case (new Boolean(!0)).constructor:c="Boolean";break;case (new Number(0)).constructor:c="Number";break;case [].constructor:c="Array";break;case RegExp().constructor:c="RegExp";break;case (new Date).constructor:c="Date";break;case Function:c="Function";break;default:var d=a.constructor.toString().match(/function\s*([^( ]+)\(/);
d&&(c=d[1])}}}catch(e){}finally{c=c.substr(0,1).toUpperCase()+c.substr(1)}return c},_displayStringForValue=function(a){try{var c="<"+String(a)+">"}catch(d){c="<toString failed: "+d.message+">"}null!==a&&void 0!==a&&(c+=" ("+_trueTypeOf(a)+")");return c},I=n.c.h.Ra=function(a){n.c.h.lb("Call to fail()",a)},J=function(a,c){return c.length==a+1?c[0]:null},K=function(a,c,d){return d.length==c+1?d[a]:d[a-1]},_validateArguments=function(a,c){c.length==a||c.length==a+1&&n.K(c[0])||n.c.h.lb("Incorrect arguments passed to assert function.\nExpected "+
a+" argument(s) plus optional comment; got "+c.length+".")},_getCurrentTestCase=function(){return n.c.tg?n.c.tg.ko():(n.global.console&&n.global.console.error("Missing goog.testing.TestCase, add /* @suppress {extraRequire} */goog.require('goog.testing.TestCase'"),null)},_assert=function(a,c,d){c||n.c.h.lb(a,d)};
n.c.h.la=function(a,c){var d=_displayStringForValue(a),e=_displayStringForValue(c);d=["Expected",d,"but was",e].join(40<d.length||40<e.length?"\n":" ");if("string"==typeof a&&"string"==typeof c){e=Math.min(a.length,c.length);for(var f=0;f<e&&a.charAt(f)==c.charAt(f);)f++;for(var g=0;g<e&&a.charAt(a.length-g-1)==c.charAt(c.length-g-1);)g++;f+g>e&&(g=0);if(2<f||2<g)e=function(a){var c=Math.max(0,f-2),d=Math.min(a.length,a.length-(g-2));return(0<c?"...":"")+a.substring(c,d)+(d<a.length?"...":"")},a=
e(a),c=e(c),d+="\nDifference was at position "+f+". "+["Expected","["+a+"]","vs. actual","["+c+"]"].join(40<a.length||40<c.length?"\n":" ")}return d};
var L=n.c.h.assert=function(a,c){_validateArguments(1,arguments);var d=J(1,arguments),e=K(1,1,arguments);_assert(d,n.Pb(e),"Bad argument to assert(boolean)");_assert(d,e,"Call to assert(boolean) with false")},M=n.c.h.nn=function(a,c){_validateArguments(1,arguments);var d=K(1,1,arguments),e=J(1,arguments);_assert(e,"function"==typeof d,"Argument passed to assertThrows is not a function");try{d()}catch(f){return f&&n.K(f.stacktrace)&&n.K(f.message)&&(d=f.message.length-f.stacktrace.length,f.message.indexOf(f.stacktrace,
d)==d&&(f.message=f.message.substr(0,d-14))),d=_getCurrentTestCase(),f&&f.isJsUnitException&&d&&d.eo&&n.c.h.lb(e,"Function passed to assertThrows caught a JsUnitException (usually from an assert or call to fail()). If this is expected, use assertThrowsJsUnitException instead."),f}n.c.h.lb(e,"No exception thrown from function passed to assertThrows")},N=n.c.h.cn=function(a,c){_validateArguments(1,arguments);var d=J(1,arguments),e=K(1,1,arguments);_assert(d,"function"==typeof e,"Argument passed to assertNotThrows is not a function");
try{return e()}catch(f){n.c.h.lb((d?d+"\n":"")+"A non expected exception was thrown from function passed to assertNotThrows",f.stack||f.stacktrace||f.toString())}},O=n.c.h.on=function(a,c){try{a()}catch(d){return(a=_getCurrentTestCase())?a.Go(d):n.global.console.error("Failed to remove expected exception: no test case is installed."),d.bi||n.c.h.Ra("Expected a JsUnitException"),"undefined"!=typeof c&&d.message!=c&&n.c.h.Ra("Expected message ["+c+"] but got ["+d.message+"]"),d}a="Expected a failure";
"undefined"!=typeof c&&(a+=": "+c);throw new n.c.tb(a);},P=n.c.h.Ig=function(a,c){_validateArguments(1,arguments);var d=J(1,arguments),e=K(1,1,arguments);_assert(d,n.Pb(e),"Bad argument to assertTrue(boolean)");_assert(d,e,"Call to assertTrue(boolean) with false")},Q=n.c.h.Qm=function(a,c){_validateArguments(1,arguments);var d=J(1,arguments),e=K(1,1,arguments);_assert(d,n.Pb(e),"Bad argument to assertFalse(boolean)");_assert(d,!e,"Call to assertFalse(boolean) with true")},R=n.c.h.Dc=function(a,c,
d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments);_assert(J(2,arguments),e===f,n.c.h.la(e,f))},S=n.c.h.Zm=function(a,c,d){_validateArguments(2,arguments);var e=K(2,2,arguments);_assert(J(2,arguments),K(1,2,arguments)!==e,"Expected not to be "+_displayStringForValue(e))},T=n.c.h.dn=function(a,c){_validateArguments(1,arguments);var d=K(1,1,arguments);_assert(J(1,arguments),null===d,n.c.h.la(null,d))},U=n.c.h.Eg=function(a,c){_validateArguments(1,arguments);_assert(J(1,arguments),
null!==K(1,1,arguments),"Expected not to be "+_displayStringForValue(null))},V=n.c.h.pn=function(a,c){_validateArguments(1,arguments);var d=K(1,1,arguments);_assert(J(1,arguments),void 0===d,n.c.h.la(void 0,d))},aa=n.c.h.Fg=function(a,c){_validateArguments(1,arguments);_assert(J(1,arguments),void 0!==K(1,1,arguments),"Expected not to be "+_displayStringForValue(void 0))},ba=n.c.h.bn=function(a,c){_validateArguments(1,arguments);n.c.h.Eg.apply(null,arguments);n.c.h.Fg.apply(null,arguments)},ca=n.c.h.Xm=
function(a,c){_validateArguments(1,arguments);var d=K(1,1,arguments);_assert(J(1,arguments),void 0!==d&&null!==d&&"string"==typeof d&&""!==d,"Expected non-empty string but was "+_displayStringForValue(d))},da=n.c.h.Wm=function(a,c){_validateArguments(1,arguments);_assert(J(1,arguments),isNaN(K(1,1,arguments)),"Expected NaN")},ea=n.c.h.an=function(a,c){_validateArguments(1,arguments);_assert(J(1,arguments),!isNaN(K(1,1,arguments)),"Expected not NaN")};n.c.h.ec=null;n.c.h.fc="";
n.c.h.Sa=function(a,c,d){function e(a,c,d){for(var e=0;e<k.length;++e){var h=k[e]===a,t=l[e]===c;if(h||t){h&&t||g.push("Asymmetric cycle detected at "+d);return}}k.push(a);l.push(c);f(a,c,d);k.pop();l.pop()}function f(a,c,d){if(a!==c){var f=_trueTypeOf(a),k=_trueTypeOf(c);if(f==k){var l="Array"==f,t=q(f,a,c);if(t!=n.c.h.ec)t!=n.c.h.fc&&(d?g.push(d+": "+t):h=!0);else if(l&&a.length!=c.length)g.push((d?d+": ":"")+"Expected "+a.length+"-element array but got a "+c.length+"-element array");else if("String"==
f)a!=c&&(d?g.push(d+": "+n.c.h.la(a,c)):h=!0);else{var v=d+(l?"[%s]":d?".%s":"%s");if("undefined"!=typeof Map&&a instanceof Map||"undefined"!=typeof Set&&a instanceof Set)a.forEach(function(a,f){c.has(f)?c.get&&e(a,c.get(f),v.replace("%s",f)):g.push(f+" not present in actual "+(d||k))}),c.forEach(function(c,e){a.has(e)||g.push(e+" not present in expected "+(d||f))});else if(a.__iterator__)n.xa(a.ia)?a.ia(c)||g.push("equals() returned false for "+(d||f)):a.W?e(a.W,c.W,v.replace("%s","map_")):g.push("unable to check "+
(d||f)+" for equality: it has an iterator we do not know how to handle. please add an equals method");else{for(var r in a)l&&n.c.h.ue(r)||(r in c?e(a[r],c[r],v.replace("%s",r)):g.push("property "+r+" not present in actual "+(d||k)));for(r in c)l&&n.c.h.ue(r)||r in a||g.push("property "+r+" not present in expected "+(d||f));if(l)for(r=0;r<a.length;r++)e(a[r],c[r],v.replace("%s",String(r)))}}}else d?g.push(d+": "+n.c.h.la(a,c)):h=!0}}var g=[],h=!1,k=[],l=[],q=d||function(a,c,d){return(a=H[a])?a(c,d)?
n.c.h.fc:n.c.h.la(c,d):n.c.h.ec};e(a,c,"");return h?n.c.h.la(a,c):0==g.length?null:n.c.h.la(a,c)+"\n   "+g.join("\n   ")};
var fa=n.c.h.Gg=function(a,c,d){_validateArguments(2,arguments);var e=J(2,arguments)?J(2,arguments):"",f=n.c.h.Sa(K(1,2,arguments),K(2,2,arguments));_assert(e,!f,f)},ha=n.c.h.jn=function(a,c,d,e){_validateArguments(3,arguments);var f=K(3,3,arguments),g=J(3,arguments)?J(3,arguments):"",h=n.c.h.Sa(K(1,3,arguments),K(2,3,arguments),function(a,c,d){return(a=n.c.h.Di[a])?a(c,d,f)?n.c.h.fc:n.c.h.la(c,d)+" which was more than "+f+" away":n.c.h.ec});_assert(g,!h,h)},ia=n.c.h.gn=function(a,c,d){_validateArguments(2,
arguments);var e=J(2,arguments)?J(2,arguments):"",f=n.c.h.Sa(K(1,2,arguments),K(2,2,arguments));_assert(e,f,"Objects should not be equal")},ja=n.c.h.Hm=function(a,c,d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments),g=J(2,arguments)?J(2,arguments):"",h=_trueTypeOf(e);_assert(g,"Array"==h,"Expected an array for assertArrayEquals but found a "+h);h=_trueTypeOf(f);_assert(g,"Array"==h,"Expected an array for assertArrayEquals but found a "+h);n.c.h.Gg(g,Array.prototype.concat.call(e),
Array.prototype.concat.call(f))},ka=n.c.h.Mm=function(a,c,d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments),g=J(2,arguments)?J(2,arguments):"";if(e){n.c.h.Dc("length mismatch: "+g,e.length,f.length);for(var h=0;h<e.length;++h)n.c.h.Dc("mismatch at index "+h+": "+g,e[h],f[h])}else n.c.h.assert(g,!f)},la=n.c.h.Nm=function(a,c,d,e){_validateArguments(3,arguments);var f=K(1,3,arguments),g=K(2,3,arguments),h=K(3,3,arguments),k=J(3,arguments)?J(3,arguments):"";if(f){n.c.h.Dc("length mismatch: "+
k,f.length,g.length);for(var l=0;l<f.length;++l)n.c.h.Hg(k,f[l],g[l],h)}else n.c.h.assert(k,!g)},ma=n.c.h.ln=function(a,c,d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments),g=J(2,arguments);n.c.h.Ig("Bad arguments to assertSameElements(opt_message, expected: ArrayLike, actual: ArrayLike)",n.ra(e)&&n.ra(f));e=n.c.h.fd(e);f=n.c.h.fd(f);_assert(g,e.length==f.length,"Expected "+e.length+" elements: ["+e+"], got "+f.length+" elements: ["+f+"]");for(var h=n.c.h.fd(e),k=0;k<f.length;k++){var l=
n.c.h.qe(h,f[k]);_assert(g,-1!=l,"Expected ["+e+"], got ["+f+"]");h.splice(l,1)}},na=n.c.h.Pm=function(a,c){_validateArguments(1,arguments);K(1,1,arguments)||_assert(J(1,arguments),!1,"Expected to evaluate to true")},oa=n.c.h.Om=function(a,c){_validateArguments(1,arguments);K(1,1,arguments)&&_assert(J(1,arguments),!1,"Expected to evaluate to false")},pa=n.c.h.Tm=function(a,c,d){_validateArguments(2,arguments);var e=K(2,2,arguments),f=W(K(1,2,arguments));e=W(e);_assert(J(2,arguments),f===e,n.c.h.la(f,
e))};n.c.h.Jm=function(a,c,d,e){_validateArguments(3,arguments);var f=K(1,3,arguments),g=K(3,3,arguments),h=X(f,K(2,3,arguments));f=X(f,g);_assert(J(3,arguments),h==f,n.c.h.la(h,f))};
var qa=n.c.h.Um=function(a,c,d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments),g=J(2,arguments),h;for(h in e)_assert(g,h in f,"Expected hash had key "+h+" that was not found"),_assert(g,e[h]==f[h],"Value for key "+h+" mismatch - expected = "+e[h]+", actual = "+f[h]);for(h in f)_assert(g,h in e,"Actual hash had key "+h+" that was not expected")},ra=n.c.h.Hg=function(a,c,d,e){_validateArguments(3,arguments);var f=K(1,3,arguments),g=K(2,3,arguments),h=K(3,3,arguments);_assert(J(3,
arguments),n.c.h.Re(f,g,h),"Expected "+f+", but got "+g+" which was more than "+h+" away")},sa=n.c.h.Km=function(a,c,d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments);_assert(J(2,arguments),n.c.h.Sd(f,e),"Expected '"+f+"' to contain '"+e+"'")},ta=n.c.h.Ym=function(a,c,d){_validateArguments(2,arguments);var e=K(1,2,arguments),f=K(2,2,arguments);_assert(J(2,arguments),!n.c.h.Sd(f,e),"Expected '"+f+"' not to contain '"+e+"'")},ua=n.c.h.kn=function(a,c,d){_validateArguments(2,
arguments);var e=K(1,2,arguments),f=K(2,2,arguments);"string"==typeof e&&(e=new RegExp(e));_assert(J(2,arguments),e.test(f),"Expected '"+f+"' to match RegExp "+e.toString())};n.c.h.fd=function(a){for(var c=[],d=0;d<a.length;d++)c[d]=a[d];return c};n.c.h.qe=function(a,c){if(a.indexOf)return a.indexOf(c);for(var d=0;d<a.length;d++)if(a[d]===c)return d;return-1};n.c.h.Sd=function(a,c){return-1!=n.c.h.qe(a,c)};
var W=function(a){var c=document.createElement("DIV");c.innerHTML=a;return c.innerHTML.replace(/^\s+|\s+$/g,"")},X=function(a,c){var d=document.createElement("DIV").style;d[a]=c;return d[a]};n.c.h.lb=function(a,c){a=new n.c.tb(a,c);if(c=_getCurrentTestCase())c.Fp(a);else throw n.global.console.error("Failed to save thrown exception: no test case is installed."),a;};n.c.h.ue=function(a){return(a|0)==a};n.sf=!0;
n.sf&&(n.F("fail",I),n.F("assert",L),n.F("assertThrows",M),n.F("assertNotThrows",N),n.F("assertThrowsJsUnitException",O),n.F("assertTrue",P),n.F("assertFalse",Q),n.F("assertEquals",R),n.F("assertNotEquals",S),n.F("assertNull",T),n.F("assertNotNull",U),n.F("assertUndefined",V),n.F("assertNotUndefined",aa),n.F("assertNotNullNorUndefined",ba),n.F("assertNonEmptyString",ca),n.F("assertNaN",da),n.F("assertNotNaN",ea),n.F("assertObjectEquals",fa),n.F("assertObjectRoughlyEquals",ha),n.F("assertObjectNotEquals",
ia),n.F("assertArrayEquals",ja),n.F("assertElementsEquals",ka),n.F("assertElementsRoughlyEqual",la),n.F("assertSameElements",ma),n.F("assertEvaluatesToTrue",na),n.F("assertEvaluatesToFalse",oa),n.F("assertHTMLEquals",pa),n.F("assertHashEquals",qa),n.F("assertRoughlyEquals",ra),n.F("assertContains",sa),n.F("assertNotContains",ta),n.F("assertRegExp",ua));chrome.cast.a.ic={UNKNOWN:"unknown",STATE_CHANGED:"state_changed",GAME_MESSAGE_RECEIVED:"game_message_received"};n.w(chrome.cast.a,"GameManagerEventType",chrome.cast.a.ic);chrome.cast.a.Bf=function(){};n.w(chrome.cast.a,"GameManagerEvent",chrome.cast.a.Bf);chrome.cast.a.zd=function(a,c){this.type=chrome.cast.a.ic.STATE_CHANGED;this.currentState=a;this.previousState=c};n.w(chrome.cast.a,"GameManagerStateChangedEvent",chrome.cast.a.zd);
chrome.cast.a.wd=function(a,c){this.type=chrome.cast.a.ic.GAME_MESSAGE_RECEIVED;this.playerId=a;this.gameMessage=c};n.w(chrome.cast.a,"GameManagerGameMessageReceivedEvent",chrome.cast.a.wd);chrome.cast.a.xd=function(a){this.gameManagerClient=a};n.w(chrome.cast.a,"GameManagerInstanceResult",chrome.cast.a.xd);chrome.cast.a.u=function(a,c,d,e,f,g,h){this.P=a;this.Y=c;this.I=d;this.D=e;this.l=f;this.v=g;this.b=new n.M.Map;for(a=0;a<h.length;a++)c=h[a],this.b.set(c.l,c)};n.w(chrome.cast.a,"GameManagerState",chrome.cast.a.u);chrome.cast.a.u.prototype.jh=function(){return this.P};n.w(chrome.cast.a.u.prototype,"getApplicationName",chrome.cast.a.u.prototype.jh);chrome.cast.a.u.prototype.xh=function(){return this.Y};n.w(chrome.cast.a.u.prototype,"getMaxPlayers",chrome.cast.a.u.prototype.xh);
chrome.cast.a.u.prototype.wh=function(){return this.I};n.w(chrome.cast.a.u.prototype,"getLobbyState",chrome.cast.a.u.prototype.wh);chrome.cast.a.u.prototype.th=function(){return this.D};n.w(chrome.cast.a.u.prototype,"getGameplayState",chrome.cast.a.u.prototype.th);chrome.cast.a.u.prototype.ph=function(){return this.l};n.w(chrome.cast.a.u.prototype,"getGameData",chrome.cast.a.u.prototype.ph);chrome.cast.a.u.prototype.sh=function(){return this.v};n.w(chrome.cast.a.u.prototype,"getGameStatusText",chrome.cast.a.u.prototype.sh);
chrome.cast.a.u.prototype.Oc=function(){return this.b.ib()};n.w(chrome.cast.a.u.prototype,"getPlayers",chrome.cast.a.u.prototype.Oc);chrome.cast.a.u.prototype.qa=function(a){return this.b.get(a,null)};n.w(chrome.cast.a.u.prototype,"getPlayer",chrome.cast.a.u.prototype.qa);chrome.cast.a.u.prototype.mh=function(){for(var a=[],c=this.b.ib(),d=0;d<c.length;d++){var e=c[d];e.v&&a.push(e)}return a};n.w(chrome.cast.a.u.prototype,"getControllablePlayers",chrome.cast.a.u.prototype.mh);
chrome.cast.a.u.prototype.lh=function(){for(var a=[],c=this.b.ib(),d=0;d<c.length;d++){var e=c[d];e.isConnected()&&a.push(e)}return a};n.w(chrome.cast.a.u.prototype,"getConnectedPlayers",chrome.cast.a.u.prototype.lh);chrome.cast.a.u.prototype.kh=function(){for(var a=[],c=this.b.ib(),d=0;d<c.length;d++){var e=c[d];e.isConnected()&&e.v&&a.push(e)}return a};n.w(chrome.cast.a.u.prototype,"getConnectedControllablePlayers",chrome.cast.a.u.prototype.kh);
chrome.cast.a.u.prototype.Dh=function(a){for(var c=[],d=this.b.ib(),e=0;e<d.length;e++){var f=d[e];f.b==a&&c.push(f)}return c};n.w(chrome.cast.a.u.prototype,"getPlayersInState",chrome.cast.a.u.prototype.Dh);chrome.cast.a.u.prototype.Ph=function(a){return this.I!=a.I};n.w(chrome.cast.a.u.prototype,"hasLobbyStateChanged",chrome.cast.a.u.prototype.Ph);chrome.cast.a.u.prototype.Oh=function(a){return this.D!=a.D};n.w(chrome.cast.a.u.prototype,"hasGameplayStateChanged",chrome.cast.a.u.prototype.Oh);
chrome.cast.a.u.prototype.Mh=function(a){return null!=n.c.h.Sa(this.l,a.l)};n.w(chrome.cast.a.u.prototype,"hasGameDataChanged",chrome.cast.a.u.prototype.Mh);chrome.cast.a.u.prototype.Nh=function(a){return this.v!=a.v};n.w(chrome.cast.a.u.prototype,"hasGameStatusTextChanged",chrome.cast.a.u.prototype.Nh);chrome.cast.a.u.prototype.Qh=function(a,c){var d=this.qa(a);a=c.qa(a);return null==d&&null==a?!1:null!=d&&null!=a?!d.ia(a):!0};n.w(chrome.cast.a.u.prototype,"hasPlayerChanged",chrome.cast.a.u.prototype.Qh);
chrome.cast.a.u.prototype.Sh=function(a,c){var d=this.qa(a);a=c.qa(a);return null==d&&null==a?!1:null!=d&&null!=a?d.b!=a.b:!0};n.w(chrome.cast.a.u.prototype,"hasPlayerStateChanged",chrome.cast.a.u.prototype.Sh);chrome.cast.a.u.prototype.Rh=function(a,c){var d=this.qa(a);a=c.qa(a);return null==d&&null==a?!1:null!=d&&null!=a?null!=n.c.h.Sa(d.D,a.D):!0};n.w(chrome.cast.a.u.prototype,"hasPlayerDataChanged",chrome.cast.a.u.prototype.Rh);
chrome.cast.a.u.prototype.ge=function(a){for(var c=[],d=this.Oc(),e=0;e<d.length;e++){var f=d[e],g=a.qa(f.l);null!=g&&f.ia(g)||c.push(f.l)}a=a.Oc();for(e=0;e<a.length;e++)g=a[e],f=this.qa(g.l),null!=f||n.g.contains(c,g.l)||c.push(g.l);return c};n.w(chrome.cast.a.u.prototype,"getListOfChangedPlayers",chrome.cast.a.u.prototype.ge);chrome.cast.a.u.prototype.ia=function(a){return this.P==a.P&&this.Y==a.Y&&this.I==a.I&&this.D==a.D&&this.v==a.v&&0==this.ge(a).length&&!n.c.h.Sa(this.l,a.l)};
n.w(chrome.cast.a.u.prototype,"equals",chrome.cast.a.u.prototype.ia);chrome.cast.a.T=function(a,c,d,e){this.l=a;this.b=c;this.D=d;this.v=e};n.w(chrome.cast.a,"PlayerInfo",chrome.cast.a.T);chrome.cast.a.T.prototype.Bh=function(){return this.l};n.w(chrome.cast.a.T.prototype,"getPlayerId",chrome.cast.a.T.prototype.Bh);chrome.cast.a.T.prototype.Ch=function(){return this.b};n.w(chrome.cast.a.T.prototype,"getPlayerState",chrome.cast.a.T.prototype.Ch);chrome.cast.a.T.prototype.Ah=function(){return this.D};n.w(chrome.cast.a.T.prototype,"getPlayerData",chrome.cast.a.T.prototype.Ah);
chrome.cast.a.T.prototype.Vh=function(){return this.v};n.w(chrome.cast.a.T.prototype,"isControllable",chrome.cast.a.T.prototype.Vh);chrome.cast.a.T.prototype.isConnected=function(){return this.b==chrome.cast.a.PlayerState.IDLE||this.b==chrome.cast.a.PlayerState.AVAILABLE||this.b==chrome.cast.a.PlayerState.PLAYING||this.b==chrome.cast.a.PlayerState.READY};n.w(chrome.cast.a.T.prototype,"isConnected",chrome.cast.a.T.prototype.isConnected);
chrome.cast.a.T.prototype.ia=function(a){return this.l==a.l&&this.b==a.b&&this.v==a.v&&!n.c.h.Sa(this.D,a.D)};n.w(chrome.cast.a.T.prototype,"equals",chrome.cast.a.T.prototype.ia);chrome.cast.a.s=function(a){this.b=new chrome.cast.a.C.Ea(a);this.D=new n.events.EventTarget;this.I=this.l=this.v=null;this.Aa=this.za=!1;this.Ua=n.bind(this.nb,this);this.Wa=n.bind(this.Eb,this);this.Y=this.P=null;a=this.b;var c=this.Wa;a.Y=this.Ua;a.I=c};n.w(chrome.cast.a,"GameManagerClient",chrome.cast.a.s);chrome.cast.a.s.vh=function(a,c,d){va(new chrome.cast.a.s(a),c,d)};n.w(chrome.cast.a.s,"getInstanceFor",chrome.cast.a.s.vh);
var va=function(a,c,d){if(a.za)throw Error("Attempted to initialize the GameManagerClient more than once.");if(a.isDisposed())throw Error("Attempted to initialize the GameManagerClient after it was disposed.");a.za=!0;z(a.b,function(){c(new chrome.cast.a.xd(a))},d)};chrome.cast.a.s.prototype.wa=function(){this.isDisposed()||(this.b.wa(),this.D.wa(),this.b=null,this.Aa=!0)};n.w(chrome.cast.a.s.prototype,"dispose",chrome.cast.a.s.prototype.wa);chrome.cast.a.s.prototype.isDisposed=function(){return this.Aa};
n.w(chrome.cast.a.s.prototype,"isDisposed",chrome.cast.a.s.prototype.isDisposed);chrome.cast.a.s.prototype.Ji=function(a,c,d){var e=this.b.ma();Y(this,e,chrome.cast.a.PlayerState.AVAILABLE,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerAvailableRequest",chrome.cast.a.s.prototype.Ji);chrome.cast.a.s.prototype.Ki=function(a,c,d,e){Y(this,a,chrome.cast.a.PlayerState.AVAILABLE,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerAvailableRequestWithPlayerId",chrome.cast.a.s.prototype.Ki);
chrome.cast.a.s.prototype.Ri=function(a,c,d){var e=this.b.ma();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");Y(this,e,chrome.cast.a.PlayerState.READY,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerReadyRequest",chrome.cast.a.s.prototype.Ri);
chrome.cast.a.s.prototype.Si=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");Y(this,a,chrome.cast.a.PlayerState.READY,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerReadyRequestWithPlayerId",chrome.cast.a.s.prototype.Si);
chrome.cast.a.s.prototype.Li=function(a,c,d){var e=this.b.ma();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");Y(this,e,chrome.cast.a.PlayerState.IDLE,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerIdleRequest",chrome.cast.a.s.prototype.Li);
chrome.cast.a.s.prototype.Mi=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");Y(this,a,chrome.cast.a.PlayerState.IDLE,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerIdleRequestWithPlayerId",chrome.cast.a.s.prototype.Mi);
chrome.cast.a.s.prototype.Ni=function(a,c,d){var e=this.b.ma();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");Y(this,e,chrome.cast.a.PlayerState.PLAYING,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerPlayingRequest",chrome.cast.a.s.prototype.Ni);
chrome.cast.a.s.prototype.Oi=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");Y(this,a,chrome.cast.a.PlayerState.PLAYING,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerPlayingRequestWithPlayerId",chrome.cast.a.s.prototype.Oi);
chrome.cast.a.s.prototype.Pi=function(a,c,d){var e=this.b.ma();if(!e)throw Error("Cannot send player request - no last used player ID found.To register a new player, use setPlayerAvailableRequest()");Y(this,e,chrome.cast.a.PlayerState.QUIT,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendPlayerQuitRequest",chrome.cast.a.s.prototype.Pi);
chrome.cast.a.s.prototype.Qi=function(a,c,d,e){if(!a)throw Error("Cannot send player request - no player ID provided.To register a new player, use setPlayerAvailableRequest()");Y(this,a,chrome.cast.a.PlayerState.QUIT,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendPlayerQuitRequestWithPlayerId",chrome.cast.a.s.prototype.Qi);var Y=function(a,c,d,e,f,g){Z(a);d=chrome.cast.a.C.ba.rh(d);A(a.b,c,d,e,f,g)};
chrome.cast.a.s.prototype.Ii=function(a,c,d){var e=this.b.ma();if(!e)throw Error("Cannot send game request - no last used player ID found.");this.Ye(e,a,c,d)};n.w(chrome.cast.a.s.prototype,"sendGameRequest",chrome.cast.a.s.prototype.Ii);chrome.cast.a.s.prototype.Ye=function(a,c,d,e){Z(this);A(this.b,a,chrome.cast.a.C.ba.yf,c,d,e)};n.w(chrome.cast.a.s.prototype,"sendGameRequestWithPlayerId",chrome.cast.a.s.prototype.Ye);
chrome.cast.a.s.prototype.Hi=function(a){var c=this.b.ma();if(!c)throw Error("Cannot send game message - no last used player ID found.");this.Xe(c,a)};n.w(chrome.cast.a.s.prototype,"sendGameMessage",chrome.cast.a.s.prototype.Hi);chrome.cast.a.s.prototype.Xe=function(a,c){Z(this);A(this.b,a,chrome.cast.a.C.ba.GAME_MESSAGE,c,null,null)};n.w(chrome.cast.a.s.prototype,"sendGameMessageWithPlayerId",chrome.cast.a.s.prototype.Xe);chrome.cast.a.s.prototype.addEventListener=function(a,c){this.D.listen(a,c)};
n.w(chrome.cast.a.s.prototype,"addEventListener",chrome.cast.a.s.prototype.addEventListener);chrome.cast.a.s.prototype.removeEventListener=function(a,c){this.D.ob(a,c)};n.w(chrome.cast.a.s.prototype,"removeEventListener",chrome.cast.a.s.prototype.removeEventListener);chrome.cast.a.s.prototype.getCurrentState=function(){Z(this);return this.l};n.w(chrome.cast.a.s.prototype,"getCurrentState",chrome.cast.a.s.prototype.getCurrentState);chrome.cast.a.s.prototype.ma=function(){Z(this);return this.b.ma()};
n.w(chrome.cast.a.s.prototype,"getLastUsedPlayerId",chrome.cast.a.s.prototype.ma);
chrome.cast.a.s.prototype.nb=function(a){if(a.statusCode!=chrome.cast.a.C.oa.SUCCESS)throw Error("Expecting a successful response message but got an error for request ID "+a.requestId);if(null!=this.v||a.gameManagerConfig)if(a.gameManagerConfig&&(this.v=a.gameManagerConfig),null!=this.v){this.I=this.l;for(var c=[],d=0;d<a.players.length;d++){var e=a.players[d],f=e.playerId;c.push(new chrome.cast.a.T(f,e.playerState,e.playerData,this.b.Ua.wb(f)))}this.l=new chrome.cast.a.u(this.v.applicationName,this.v.maxPlayers,
a.lobbyState,a.gameplayState,a.gameData,a.gameStatusText,c);c=this.l.qa(a.playerId);null!=c&&c.v&&a.type==chrome.cast.a.C.sb.GAME_MESSAGE&&(this.P=a.playerId,this.Y=a.extraMessageData)}};chrome.cast.a.s.prototype.Eb=function(){null==this.I||this.l.ia(this.I)||this.D.dispatchEvent(new chrome.cast.a.zd(this.l,this.I));null!=this.P&&null!=this.Y&&this.D.dispatchEvent(new chrome.cast.a.wd(this.P,this.Y));this.Y=this.P=this.I=null};
var Z=function(a){if(null==a.v)throw Error("Attempted to perform an operation on the GameManagerClient before it was initialized.");if(a.isDisposed())throw Error("Attempted to perform an operation on the GameManagerClient after it was disposed.");};chrome.cast.a.C.Af=function(){this.applicationName="[APPLICATION_NAME_NOT_SET]";this.maxPlayers=-1;this.version="[INVALID_VERSION]"};n.F("chrome.cast.games.internal.GameManagerConfig",chrome.cast.a.C.Af);chrome.cast.a.C.lg=function(){this.playerId="";this.playerState=chrome.cast.a.PlayerState.UNKNOWN;this.playerData=null};n.F("chrome.cast.games.internal.PlayerInfoMessageComponent",chrome.cast.a.C.lg);}).call(this);
