CINXE.COM
Something Special Picture Maker - CBeebies - BBC
<!DOCTYPE html> <html lang="en" id="ng-app" class="no-js b-header--white--black b-footer--transparent--dark-grey"> <head prefix="og: http://ogp.me/ns#"><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.bbc.co.uk/cbeebies/makes/something-special-make-a-picture?collection=creative-play-for-kids","20180202144621","https://web.archive.org/","web","/_static/", "1517582781"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <link rel="schema.DCTERMS" href="https://purl.org/dc/terms/"> <title>Something Special Picture Maker - CBeebies - BBC</title> <meta name="DCTERMS.title" content="Something Special Picture Maker - CBeebies - BBC"/> <meta name="description" content="Get creative with Justin and Mr Tumble. Make super spotty Something Special pictures and even your very own Mr Tumble Star Badge."/> <meta name="DCTERMS.description" content="Get creative with Justin and Mr Tumble. Make super spotty Something Special pictures and even your very own Mr Tumble Star Badge."/> <meta property="og:title" content="Something Special - Something Special Picture Maker"/> <meta property="og:description" content="Get creative with Justin and Mr Tumble. Make super spotty Something Special pictures and even your very own Mr Tumble Star Badge."/> <meta property="og:image" content="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/720/1x/cbeebies/ss-map-cc.jpg"/> <meta property="og:url" content="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/cbeebies/makes/something-special-make-a-picture"/> <meta property="fb:pages" content="194575130577797"/> <meta property="fb:pages" content="7397061762"/> <meta property="fb:pages" content="7833211321"/> <meta property="fb:pages" content="129044383774217"/> <meta property="fb:pages" content="401538510458"/> <meta property="fb:pages" content="8251776107"/> <meta property="fb:pages" content="273726292719943"/> <meta property="fb:pages" content="107909022566650"/> <meta property="fb:pages" content="21750735380"/> <meta property="fb:pages" content="1477945425811579"/> <meta property="fb:pages" content="944295152308991"/> <meta property="fb:pages" content="154344434967"/> <meta property="fb:pages" content="8244244903"/> <meta property="fb:pages" content="512423982152360"/> <meta property="fb:pages" content="156060587793370"/> <meta property="fb:pages" content="215504865453262"/> <meta property="fb:pages" content="260967092113"/> <meta property="fb:pages" content="1392506827668140"/> <meta property="fb:pages" content="128645453843827"/> <meta property="fb:pages" content="7519460786"/> <meta property="fb:pages" content="1143803202301544"/> <meta property="fb:pages" content="1470145583204829"/> <meta property="fb:pages" content="470911516262605"/> <meta property="fb:pages" content="413132078795966"/> <meta property="fb:pages" content="118883634811868"/> <meta property="fb:pages" content="130593816777"/> <meta property="fb:pages" content="228735667216"/> <meta property="fb:pages" content="80758950658"/> <meta property="fb:pages" content="260212261199"/> <meta property="fb:pages" content="294662213128"/> <meta property="fb:pages" content="1086451581439054"/> <meta property="fb:pages" content="283348121682053"/> <meta property="fb:pages" content="295830058648"/> <meta property="fb:pages" content="239931389545417"/> <meta property="fb:pages" content="304314573046"/> <meta property="fb:pages" content="310719525611571"/> <meta property="fb:pages" content="647687225371774"/> <meta property="fb:pages" content="1159932557403143"/> <meta property="fb:pages" content="286567251709437"/> <meta property="fb:pages" content="1731770190373618"/> <meta property="fb:pages" content="125309456546"/> <meta property="fb:pages" content="742734325867560"/> <meta property="fb:pages" content="168895963122035"/> <meta property="fb:pages" content="292291897588734"/> <meta property="fb:pages" content="658551547588605"/> <meta property="fb:pages" content="156400551056385"/> <meta property="fb:pages" content="185246968166196"/> <meta property="fb:pages" content="1411916919051820"/> <meta property="fb:pages" content="958681370814419"/> <meta property="fb:pages" content="317278538359186"/> <meta property="fb:pages" content="8585725981"/> <meta property="fb:pages" content="1436581493296609"/> <meta property="fb:pages" content="163571453661989"/> <meta property="fb:pages" content="751471531641341"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="google-site-verification" content="sUg-a4QKArEnMf-yhvv06bQKRMuWK9rcrRL8T7z3bPA"/> <meta name="DCTERMS.created" content="2018-01-22T10:00:00.000Z"/> <meta name="DCTERMS.modified" content="2018-01-23T16:31:17.185Z"/> <link rel="canonical" href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/something-special-make-a-picture?collection=creative-play-for-kids"/> <script type="text/javascript"> var _sf_startpt = (new Date()).getTime() </script> <link rel="copyright" href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/terms/" title="Terms of Use"/> <link href="/web/20180202144621im_/https://www.bbc.co.uk/cbeebies/assets/images/favicons/apple-touch-icon.png" rel="apple-touch-icon"/> <link href="/web/20180202144621im_/https://www.bbc.co.uk/cbeebies/assets/images/favicons/favicon.ico" rel="icon" type="image/x-icon"/> <link href="/web/20180202144621im_/https://www.bbc.co.uk/cbeebies/assets/images/favicons/favicon.ico" rel="shortcut icon" type="image/x-icon"/> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20180202144621cs_/https://static.bbci.co.uk/gelstyles/0.11.0/style/core.css"/> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20180202144621cs_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/stylesheets/cbeebies.min.css"/> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/stylesheets/cbeebies.ie8.min.css"/> <![endif]--> <link rel="stylesheet" type="text/css" href="/web/20180202144621cs_/https://www.bbc.co.uk/cbeebies/stylesheets/immersive/brand/1455554980/fabc6c1/something-special.css"/> <script type="text/javascript"> var allForwardSlashes = /\//g; var anythingNotAWordOrFullStop = /[^\w^\.]/g; var allMultipleUnderscores = /_+/g; var fullStopAtEnd = /\.$/; var pageDescriptor = window.location.pathname.substring(1) .replace(allForwardSlashes, '.') .replace(anythingNotAWordOrFullStop, '_') .replace(allMultipleUnderscores, '_') .replace(fullStopAtEnd, ''); window.istats_countername = pageDescriptor.toLowerCase() + '.page'; </script> <!-- Nav Env: live --> <!-- Analytics Web Module: 89 --> <!-- NavID Web Module: 0.2.0-152 --> <!-- Searchbox Web Module: 136 --> <!-- Promo Web Module: 0.0.0-239.4080e99 --> <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta property="fb:admins" content="100004154058350"><link rel="stylesheet" href="https://web.archive.org/web/20180202144621cs_/https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815/css/orb-ltr.min.css"><!--[if (lt IE 9) & (!IEMobile)]> <link rel="stylesheet" href="https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815/css/orb-ie-ltr.min.css"> <![endif]--><script type="text/javascript">/*<![CDATA[*/ window.orb = { lang: 'en', bbcBaseUrl: 'https://web.archive.org/web/20180202144621/http://www.bbc.co.uk', staticHost: 'https://web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815', figUrl: 'https://web.archive.org/web/20180202144621/https://fig.bbc.co.uk/frameworks/fig/2/fig.js', partialCookieOvenUrl: 'https://web.archive.org/web/20180202144621/https://cookie-oven.api.bbc' }; document.documentElement.className += (document.documentElement.className? ' ' : '') + 'orb-js'; window.orb.worldwideNavlinks = ''; /*]]>*/</script><script>// Promise polyfill from https://github.com/bramstein/promis (function(){'use strict';var f,g=[];function l(a){g.push(a);1==g.length&&f()}function m(){for(;g.length;)g[0](),g.shift()}f=function(){setTimeout(m)};function n(a){this.a=p;this.b=void 0;this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}var p=2;function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a)throw new TypeError;var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d){d.call(b,function(b){c||q(a,b);c=!0},function(b){c||r(a,b);c=!0});return}}catch(e){c||r(a,e);return}a.a=0;a.b=b;v(a)}} function r(a,b){if(a.a==p){if(b==a)throw new TypeError;a.a=1;a.b=b;v(a)}}function v(a){l(function(){if(a.a!=p)for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?"function"==typeof c?e(c.call(void 0,a.b)):e(a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}})}n.prototype.g=function(a){return this.c(void 0,a)};n.prototype.c=function(a,b){var c=this;return new n(function(d,e){c.f.push([a,b,d,e]);v(c)})}; function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d;e+=1;e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k<a.length;k+=1)u(a[k]).c(d(k),c)})}function x(a){return new n(function(b,c){for(var d=0;d<a.length;d+=1)u(a[d]).c(b,c)})};window.Promise||(window.Promise=n,window.Promise.resolve=u,window.Promise.reject=t,window.Promise.race=x,window.Promise.all=w,window.Promise.prototype.then=n.prototype.c,window.Promise.prototype["catch"]=n.prototype.g);}()); window.bbcpage = { loadModule: function(deps) { return new Promise(function (resolve, reject) { window.require(deps, function () { resolve.apply(this, arguments); }, function (error) { reject(error); }); }) } }; window.bbcuser = { allowsPerformanceCookies: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.readPolicy('performance'); }); }, allowsFunctionalCookies: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.readPolicy('personalisation'); }); }, getCookieValue: function(cookieName) { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return bbccookies.get(cookieName); }); }, resetCookiesPreferences: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { bbccookies.setDefaultCookiesSingleDomain(); }); }, hasCookiesEnabled: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { return !!bbccookies.cookiesEnabled(); }); }, hasSeenCookieBanner: function() { return window.bbcpage.loadModule(['orb/cookies']) .then(function (bbccookies) { return !!bbccookies.isCookiePolicySet(); }); } };</script> <script src="https://web.archive.org/web/20180202144621js_/https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815/js/api.min.js"></script><script type="text/javascript">define('orb/cookies', function() { return window.bbccookies; });</script><script type="text/javascript">window.bbcFlagpoles_istats="ON",require.config({paths:{"istats-1":"//web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/nav-analytics/0.1.0-89/js/istats-1","megavolt-client":"//web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/nav-analytics/0.1.0-89/js/megavolt-client"},config:{"megavolt-client":{baseUrl:"https://web.archive.org/web/20180202144621/https://mvt.api.bbc.com"}}}),require(["istats-1","orb/cookies"],function(e,t){if(t.isAllowed("s1")){e.addCollector({name:"default",url:"https://web.archive.org/web/20180202144621/https://sa.bbc.co.uk/bbc/bbc/s",separator:"&"});var a="cbeebies.makes.something_special_make_a_picture.page";e.setCountername(a),window.istats_countername&&e.setCountername(window.istats_countername),e.addLabels("ml_name=webmodule&ml_version=89&blq_e=orbit&blq_r=orbit&blq_s=orbit&blq_v=cbeebies&language=en&app_name=cbeebies&app_type=responsive")}});</script><link rel="stylesheet" href="//web.archive.org/web/20180202144621cs_/https://static.bbc.co.uk/id/0.37.24/style/id-cta.css"><link rel="stylesheet" href="//web.archive.org/web/20180202144621cs_/https://static.bbc.co.uk/id/0.37.24/style/id-cta-v5.css"><!--[if IE 8]><link href="//static.bbc.co.uk/id/0.37.24/style/ie8.css" rel="stylesheet"/> <![endif]--><script type="text/javascript">/* <![CDATA[ */ var map = {}; if (typeof(map['jssignals-1']) == 'undefined') { map['jssignals-1'] = 'https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/frameworks/jssignals/0.3.6/modules/jssignals-1'; } require({paths: map}); /* ]]> */</script><script src="//web.archive.org/web/20180202144621js_/https://static.bbc.co.uk/id/0.37.24/modules/idcta/dist/idcta-1.min.js"></script><script type="text/javascript">(function () { if (!window.require) { throw new Error('idcta: could not find require module'); } if(typeof(map) == 'undefined') { var map = {}; } if(!!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect) { document.documentElement.className += ' id-svg'; } var ptrt = RegExp("[\\?&]ptrt=([^&#]*)").exec(document.location.href); var ENDPOINT_URL = '//' + ((window.location.protocol == "https:") ? ('ssl.bbc.co.uk').replace("www.", "ssl.") : ('ssl.bbc.co.uk').replace("ssl.", "www.")); var ENDPOINT_CONFIG = ('/idcta/config?callback&locale=en-GB&ptrt=' + encodeURI((ptrt ? ptrt[1] : document.location.href))).replace(/\&/g, '&'); var ENDPOINT_TRANSLATIONS = '/idcta/translations?callback&locale=en-GB'; map['idapp-1'] = '//web.archive.org/web/20180202144621/https://static.bbc.co.uk/idapp/0.72.58/modules/idapp/idapp-1'; map['idcta'] = '//web.archive.org/web/20180202144621/https://static.bbc.co.uk/id/0.37.24/modules/idcta'; map['idcta/config'] = [ENDPOINT_URL + ENDPOINT_CONFIG, '//web.archive.org/web/20180202144621/https://static.bbc.co.uk/id/0.37.24/modules/idcta/fallbackConfig']; map['idcta/translations'] = [ENDPOINT_URL + ENDPOINT_TRANSLATIONS, '//web.archive.org/web/20180202144621/https://static.bbc.co.uk/id/0.37.24/modules/idcta/fallbackTranslations']; require({paths: map}); /* * Temporary code * To be removed when old id-statusbar-config is no longer supported */ define('id-statusbar-config', ['idcta/id-config'], function(conf) { return conf; }); define('idcta/id-statusbar-config', ['idcta/id-config'], function(conf) { return conf; }); })();</script><script type="text/javascript">// Globally available search context window.SEARCHBOX={"variant":"cbeebies","locale":"en","navSearchboxStaticPrefix":"//web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/searchbox/1.0.0-136","searchboxAppStaticPrefix":"//web.archive.org/web/20180202144621/https://search.files.bbci.co.uk/searchbox-app/1.0.19","searchFormHtml":"<div tabindex=\"-1\" data-reactid=\".jval9y49og\" data-react-checksum=\"1886463233\"><div data-reactid=\".jval9y49og.0\"><section class=\"se-searchbox-panel\" data-reactid=\".jval9y49og.0.0\"><div class=\"se-g-wrap\" data-reactid=\".jval9y49og.0.0.0\"><div class=\"se-g-layout\" data-reactid=\".jval9y49og.0.0.0.0\"><div class=\"se-g-layout__item se-searchbox-title\" aria-hidden=\"true\" data-reactid=\".jval9y49og.0.0.0.0.0\">search</div><div class=\"se-g-layout__item se-searchbox\" data-reactid=\".jval9y49og.0.0.0.0.1\"><form accept-charset=\"utf-8\" id=\"searchboxDrawerForm\" method=\"get\" action=\"https://search.bbc.co.uk/search\" data-reactid=\".jval9y49og.0.0.0.0.1.0\"><label class=\"se-searchbox__input\" for=\"se-searchbox-input-field\" data-reactid=\".jval9y49og.0.0.0.0.1.0.0\"><span class=\"se-sr-only\" data-reactid=\".jval9y49og.0.0.0.0.1.0.0.0\">Search Term</span><input name=\"q\" type=\"text\" value=\"\" id=\"se-searchbox-input-field\" class=\"se-searchbox__input__field\" maxlength=\"512\" autocomplete=\"off\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" data-reactid=\".jval9y49og.0.0.0.0.1.0.0.1\"/></label><input type=\"hidden\" name=\"scope\" value=\"\" data-reactid=\".jval9y49og.0.0.0.0.1.0.2\"/><button type=\"submit\" class=\"se-searchbox__submit\" tabindex=\"0\" data-reactid=\".jval9y49og.0.0.0.0.1.0.3\">Search</button><button type=\"button\" class=\"se-searchbox__clear se-searchbox__clear--visible\" tabindex=\"0\" data-reactid=\".jval9y49og.0.0.0.0.1.0.4\">Close</button></form></div></div></div></section><div aria-live=\"polite\" aria-atomic=\"true\" class=\"se-suggestions-container\" data-reactid=\".jval9y49og.0.1\"><section class=\"se-g-wrap\" data-reactid=\".jval9y49og.0.1.0\"></section></div></div></div>","searchScopePlaceholder":"<input type=\"hidden\" name=\"scope\" id=\"orb-search-scope\" value=\"cbeebies\">","searchScopeParam":"?scope=cbeebies","searchScopeTemplate":"cbeebies","searchPlaceholderWrapperStart":"","searchPlaceholderWrapperEnd":""}; window.SEARCHBOX.suppress = false; window.SEARCHBOX.searchScope = SEARCHBOX.searchScopeTemplate.split('-')[0];</script><link rel="stylesheet" href="//web.archive.org/web/20180202144621cs_/https://nav.files.bbci.co.uk/searchbox/1.0.0-136/css/main.css"><!--[if IE 8]> <script type="text/javascript" src="//nav.files.bbci.co.uk/searchbox/1.0.0-136/script/html5shiv.min.js"></script> <script type="text/javascript">window['searchboxIEVersion'] = 8;</script> <link rel="stylesheet" href="//nav.files.bbci.co.uk/searchbox/1.0.0-136/css/ie8.css"> <![endif]--><!--[if IE 9]> <script type="text/javascript">window['searchboxIEVersion'] = 9;</script> <![endif]--><script type="text/javascript">require.config({ "paths": { "orb/async/_footerpromo": 'https://web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/nav-promo/0.0.0-239.4080e99/js/async/_footerpromo' } });</script><!-- BBCDOTCOM head --><script type="text/javascript">/*<![CDATA[*/ var _sf_startpt = (new Date()).getTime(); /*]]>*/</script><style type="text/css">.bbccom_display_none{display:none;}</style><script type="text/javascript">/*<![CDATA[*/ var bbcdotcomConfig, googletag = googletag || {}; googletag.cmd = googletag.cmd || []; var bbcdotcom = false; (function(){ if(typeof require !== 'undefined') { require({ paths:{ "bbcdotcom":"https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/script" } }); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ var bbcdotcom = { adverts: { keyValues: { set: function() {} } }, advert: { write: function () {}, show: function () {}, isActive: function () { return false; }, layout: function() { return { reset: function() {} } } }, config: { init: function() {}, isActive: function() {}, setSections: function() {}, isAdsEnabled: function() {}, setAdsEnabled: function() {}, isAnalyticsEnabled: function() {}, setAnalyticsEnabled: function() {}, setAssetPrefix: function() {}, setVersion: function () {}, setJsPrefix: function() {}, setSwfPrefix: function() {}, setCssPrefix: function() {}, setConfig: function() {}, getAssetPrefix: function() {}, getJsPrefix: function () {}, getSwfPrefix: function () {}, getCssPrefix: function () {} }, survey: { init: function(){ return false; } }, data: {}, init: function() {}, objects: function(str) { return false; }, locale: { set: function() {}, get: function() {} }, setAdKeyValue: function() {}, utils: { addEvent: function() {}, addHtmlTagClass: function() {}, log: function () {} }, addLoadEvent: function() {} }; /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (typeof orb !== 'undefined' && typeof orb.fig === 'function') { if (orb.fig('ad') && orb.fig('uk') == 0) { bbcdotcom.data = { ads: (orb.fig('ad') ? 1 : 0), stats: (orb.fig('uk') == 0 ? 1 : 0), statsProvider: orb.fig('ap') }; } } else { document.write('<script type="text/javascript" src="'+('https:' == document.location.protocol ? 'https://web.archive.org/web/20180202144621/https://www.bbc.com' : 'https://web.archive.org/web/20180202144621/http://tps.bbc.com')+'/wwscripts/data">\x3C/script>'); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (typeof orb === 'undefined' || typeof orb.fig !== 'function') { bbcdotcom.data = { ads: bbcdotcom.data.a, stats: bbcdotcom.data.b, statsProvider: bbcdotcom.data.c }; } if (bbcdotcom.data.ads == 1) { document.write('<script type="text/javascript" src="'+('https:' == document.location.protocol ? 'https://web.archive.org/web/20180202144621/https://www.bbc.com' : 'https://web.archive.org/web/20180202144621/http://www.bbc.com')+'/wwscripts/flag">\x3C/script>'); } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (window.bbcdotcom && (typeof bbcdotcom.flag == 'undefined' || (typeof bbcdotcom.data.ads !== 'undefined' && bbcdotcom.flag.a != 1))) { bbcdotcom.data.ads = 0; } if (/[?|&]ads/.test(window.location.href) || /(^|; )ads=on; /.test(document.cookie) || /; ads=on(; |$)/.test(document.cookie)) { bbcdotcom.data.ads = 1; bbcdotcom.data.stats = 1; } if (window.bbcdotcom && (bbcdotcom.data.ads == 1 || bbcdotcom.data.stats == 1)) { bbcdotcom.assetPrefix = "https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/"; if (/(sandbox|int)(.dev)*.bbc.co*/.test(window.location.href) || /[?|&]ads-debug/.test(window.location.href) || document.cookie.indexOf('ads-debug=') !== -1) { document.write('<link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/style/dist/bbcdotcom.dev.css" />'); } else { document.write('<link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/style/dist/bbcdotcom.css" />'); } (function() { var useSSL = 'https:' == document.location.protocol; var src = (useSSL ? 'https:' : 'http:') + '//web.archive.org/web/20180202144621/https://www.googletagservices.com/tag/js/gpt.js'; document.write('<scr' + 'ipt src="' + src + '">\x3C/script>'); })(); if (/(sandbox|int)(.dev)*.bbc.co*/.test(window.location.href) || /[?|&]ads-debug/.test(window.location.href) || document.cookie.indexOf('ads-debug=') !== -1) { document.write('<script type="text/javascript" src="https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/script/dist/bbcdotcom.dev.js">\x3C/script>'); } else { document.write('<script type="text/javascript" src="https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/script/dist/bbcdotcom.js">\x3C/script>'); } } })(); /*]]>*/</script><script type="text/javascript">if (window.bbcdotcom && bbcdotcom.data.stats == 1) { document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20180202144621/https://secure-us.imrworldwide.com/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20180202144621/https://me-cdn.effectivemeasure.net/">'); document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20180202144621/https://ssc.api.bbc.com/">'); } if (window.bbcdotcom && bbcdotcom.data.ads == 1) { document.write('<link rel="dns-prefetch" href="//web.archive.org/web/20180202144621/https://www.googletagservices.com/">'); }</script><script type="text/javascript">if (window.bbcdotcom && bbcdotcom.data.ads == 1) { document.write('<meta name="google-site-verification" content="auTeTTwSt_KBY_4iDoR00Lwb7-qzx1IgzJy6ztaWgEI" />'); }</script><script type="text/javascript">/*<![CDATA[*/ (function(){ if (window.bbcdotcom && (bbcdotcom.data.ads == 1 || bbcdotcom.data.stats == 1)) { bbcdotcomConfig = {"adFormat":"standard","adKeyword":"","adMode":"smart","adsEnabled":true,"appAnalyticsSections":"","asyncEnabled":false,"disableInitialLoad":false,"advertInfoPageUrl":"https:\/\/web.archive.org\/web\/20180202144621\/http:\/\/www.bbc.com\/privacy\/cookies\/international\/","advertisementText":"Advertisement","analyticsEnabled":true,"appName":"cbeebies","assetPrefix":"https:\/\/web.archive.org\/web\/20180202144621\/https:\/\/static.bbc.co.uk\/bbcdotcom\/1.73.0\/","customAdParams":[],"customStatsParams":[],"headline":"","id":"","inAssociationWithText":"in association with","keywords":"","language":"","orbTransitional":false,"outbrainEnabled":true,"outbrainSportEnabled":true,"adsenseEnabled":true,"adsportappEnabled":true,"lotameEnabled":true,"sherlockEnabled":false,"platinumEnabled":true,"tlNewsIndexEnabled":false,"tlNewsStoryEnabled":false,"tlNewsFpEnabled":false,"winterOlympicsEnabled":false,"palEnv":"live","productName":"cbeebies","sections":[],"comScoreEnabled":true,"comscoreSite":"bbc","comscoreID":"19293874","comscorePageName":"","slots":"","sponsoredByText":"is sponsored by","adsByGoogleText":"Ads by Google","summary":"","type":"","features":{"testfeature":{"name":"testfeature","envs":["sandbox","int","test"],"on":true,"options":{},"override":null},"lxadverts":{"name":"lxadverts","envs":[],"on":true,"options":{},"override":null}},"staticBase":"\/bbcdotcom","staticHost":"https:\/\/web.archive.org\/web\/20180202144621\/https:\/\/static.bbc.co.uk","staticVersion":"1.73.0","staticPrefix":"https:\/\/web.archive.org\/web\/20180202144621\/https:\/\/static.bbc.co.uk\/bbcdotcom\/1.73.0","dataHttp":"tps.bbc.com","dataHttps":"www.bbc.com","flagHttp":"www.bbc.co.uk","flagHttps":"www.bbc.co.uk","analyticsHttp":"sa.bbc.com","analyticsHttps":"ssa.bbc.com"}; bbcdotcom.config.init(bbcdotcomConfig, bbcdotcom.data, window.location, window.document); bbcdotcom.config.setAssetPrefix("https://web.archive.org/web/20180202144621/https://static.bbc.co.uk/bbcdotcom/1.73.0/"); bbcdotcom.config.setVersion("1.73.0"); document.write('<!--[if IE 7]><script type="text/javascript">bbcdotcom.config.setIE7(true);\x3C/script><![endif]-->'); document.write('<!--[if IE 8]><script type="text/javascript">bbcdotcom.config.setIE8(true);\x3C/script><![endif]-->'); document.write('<!--[if IE 9]><script type="text/javascript">bbcdotcom.config.setIE9(true);\x3C/script><![endif]-->'); if (/[?|&]ex-dp/.test(window.location.href) || document.cookie.indexOf('ex-dp=') !== -1) { bbcdotcom.utils.addHtmlTagClass('bbcdotcom-ex-dp'); } } })(); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.head = true; }()); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ bbcpage.loadModule(['orb/cookies']) .then(function(bbccookies) { require(['istats-1', 'orb/fig'], function (istats, orbFig) { istats.addLabels({ 'bbc_mc': bbccookies.analyticsPolicyString() }); var domesticBlqV = istats._getLabels().blq_v; var worldwideBlqV = istats._getLabels().blq_v + '-ww'; function setBlqVLabel(fig) { if (fig.geo.isUK()) { istats.addLabels({'blq_v': domesticBlqV}); } else { istats.addLabels({'blq_v': worldwideBlqV}); } } // Guess with synchronous API first (might be cached and the async version might be too slow) setBlqVLabel(orbFig); orbFig.load(function (fig) { setBlqVLabel(fig); }); }); }); /*]]>*/</script> <script type="text/javascript"> require(['orb/fig'], function(orbFig) { orbFig.load(function(fig) { if (!fig.geo.isUK()) { window.location = "https://web.archive.org/web/20180202144621/http://www.cbeebies.com"; } }); }); </script> <script type="text/javascript" src="https://web.archive.org/web/20180202144621js_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/modernizr.js"></script> <script> define('modernizr', [], Modernizr); </script> <script type="text/javascript" src="https://web.archive.org/web/20180202144621js_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/matchMedia.js"></script> <script>window.Morph = {}</script> <script type="text/javascript">Morph.markPerformance = function(label) { if(window.performance && window.performance.mark) { window.performance.mark(label); } }; Morph.versions = {}; Morph.modules = {}; Morph.config = { cdn: "m.files.bbci.co.uk", pushEnv: "live" }; Morph.styles = {}; Morph.styleSrc = []; Morph.toInit = {bundles: [], registers: [], payloads: [], ptrs: []}; Morph.initStyles = function() { if (!Morph.enhanced) { var eles = Array.prototype.slice.call(document.getElementsByTagName('noscript')); for (var i = 0, len = eles.length; i<len; i++) { if (eles[i].className === 'morph-core-style') { document.write(eles[i].innerText); eles[i].parentNode.removeChild(eles[i]); } } return; } for (var j = 0, jLen = Morph.styleSrc.length; j<jLen; j++) { document.write(Morph.styleSrc[j]); } Morph.styleSrc = []; };</script> <script type="text/javascript">Morph.forceCore = window.location.search.indexOf('morph-disable-enhanced=1')>-1; Morph.modernBrowser = ( 'addEventListener' in window && 'querySelector' in document && 'localStorage' in window ); Morph.isOperaMini = ( window.navigator.userAgent.indexOf('Opera Mini/')>-1 && window.navigator.userAgent.indexOf('Presto/')>-1 ); Morph.enhanced = (!Morph.forceCore && Morph.modernBrowser && !Morph.isOperaMini);</script> <!--[if gt IE 8]><!--><noscript class="morph-core-style"><!--<![endif]--><style>body{margin:0}.game-wrapper{position:relative;width:100%;height:100%;padding-bottom:56.25%;background-color:#000}.game-wrapper--fixedsize{position:relative;margin:0 auto}.game-wrapper__error-header{font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;font-size:26px;color:#fff;text-align:center;padding-top:50px}@keyframes rotating{from{-ms-transform:translate(-50%, -50%) rotate(0deg);-moz-transform:translate(-50%, -50%) rotate(0deg);-webkit-transform:translate(-50%, -50%) rotate(0deg);-o-transform:translate(-50%, -50%) rotate(0deg);transform:translate(-50%, -50%) rotate(0deg)}to{-ms-transform:translate(-50%, -50%) rotate(360deg);-moz-transform:translate(-50%, -50%) rotate(360deg);-webkit-transform:translate(-50%, -50%) rotate(360deg);-o-transform:translate(-50%, -50%) rotate(360deg);transform:translate(-50%, -50%) rotate(360deg)}}.game-wrapper__loading-spinner{position:absolute;left:50%;top:50%;animation:rotating 1.5s linear infinite}.game-wrapper__loading-spinner path{fill:#fff}.game-wrapper__cta{position:absolute;height:100%;width:100%;cursor:pointer;background-color:#000}.game-wrapper__cta img{width:100%;height:100%}.game-wrapper__cta:hover .game-holder__cta-button{background-color:rgba(186,26,23,0.75)}.game-wrapper__cta-button{position:absolute;bottom:0;left:0;width:80px;height:80px;background-color:rgba(0,0,0,0.75)}.game-wrapper__cta-icon{position:absolute;top:16px;left:16px;width:49px;height:39px}.game-wrapper__iframe,.game-wrapper__game{position:absolute;width:100%;height:100%}.game-wrapper__iframe--fixedsize{position:absolute;margin:0 auto}.cage-settings__wrapper{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.4)}.cage-settings{position:absolute;left:25%;top:25%;width:50%;min-width:325px;height:50%;min-height:150px;overflow:hidden;background-color:#fff;z-index:1;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-size:110%}.cage-settings__list{overflow-y:auto;height:70%}.cage-settings__title{margin:0 auto;padding:15px 10px;color:#3F3E4A;text-align:center;border-bottom:1px solid #B7BBBB}.cage-settings__title-text{text-align:center;padding:10px 78px;font:bold 1.3em arial,sans-serif;color:#3F3E4A}.cage-settings__close-button{position:absolute;right:16px;top:16px;padding:2px;border:0;background-color:transparent}.cage-settings__close-button:hover .cage-settings__close-icon-circle{fill:#B3B3B5}.cage-settings__close-icon-circle{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out;fill:#F0F0F4}.cage-settings__subheading{padding:20px 40px;font:bold 0.9em arial,sans-serif;text-transform:uppercase;color:#939397;background-color:#F0F0F4}.cage-setting{position:relative;padding:20px 40px;border-bottom:1px solid #F0F0F4}.cage-setting:last-child{border-bottom:0}.cage-setting__info{display:block;padding-right:86px;font:normal 1em arial,sans-serif}.cage-setting__title{padding-bottom:10px;font-weight:bold;color:#323232}.cage-setting__description{font-size:1em;color:#939397}.cage-setting__toggle{position:absolute;right:40px;top:10px}.cage-setting__toggle_button{margin-top:5px;padding:10px 10px 8px;border:0;background-color:transparent}.cage-setting__toggle_button .cage-setting__toggle-slider,.cage-setting__toggle_button .cage-setting__toggle-outline{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out}.cage-setting__toggle_button--on .cage-setting__toggle-outline{fill:#44D6DA}.cage-setting__toggle_button--off .cage-setting__toggle-outline{fill:#D8D8D8}@media (max-width: 410px){.cage-settings{top:5%;left:5%;width:90%;height:90%}.cage-settings__list{height:55%}}@media (max-width: 450px) and (min-width: 411px){.cage-settings{top:5%;left:5%;width:90%;height:90%}.cage-settings__list{height:50%}}@media (max-width: 580px) and (min-width: 451px){.cage-settings{top:5%;left:10%;width:80%;height:90%}.cage-settings__list{height:69%}}@media (max-width: 780px) and (min-width: 581px){.cage-settings{left:10%;top:10%;width:80%;height:80%}.cage-settings__list{height:71%}}@media (max-width: 980px) and (min-width: 781px){.cage-settings{left:15%;top:15%;width:70%;height:70%}.cage-settings__list{height:73%}}@media (max-width: 1470px) and (min-width: 981px){.cage-settings__list{height:72%}.cage-settings--mobile{left:10%;width:80%}.cage-settings--mobile .cage-settings__list{height:70%}}@media (min-width: 1470px){.cage-settings__list{height:82%}}.error{background-color:#000;color:#fff;font-family:Arial, Helvetica, sans-serif}.error-body{background-color:#000}.error a{color:#fff;text-decoration:underline;font-weight:bold}@media screen and (min-width: 400px){.error h1,.error-default h1{margin:8px 70px}.error p,.error-default p{margin:8px 70px}}@media screen and (min-width: 600px){.error,.error-default{max-height:280px}.error h1,.error-default h1{margin:16px 96px;font-size:20px}.error p,.error-default p{margin:16px 96px;font-size:18px}}@media screen and (min-width: 770px){.error h1,.error-default h1{margin:16px 126px;font-size:26px}.error p,.error-default p{margin:16px 126px;font-size:20px}}@media screen and (min-width: 1008px){.error h1,.error-default h1{margin:16px 246px}.error p,.error-default p{margin:16px 246px}} </style><!--[if gt IE 8]><!--></noscript><!--<![endif]--><script>if (Morph.enhanced) { Morph.styles["bbc-morph-childrens-games-view/0.6.16"]=true; Morph.styleSrc.push("<style>body{margin:0}.game-wrapper{position:relative;width:100%;height:100%;padding-bottom:56.25%;background-color:#000}.game-wrapper--fixedsize{position:relative;margin:0 auto}.game-wrapper__error-header{font-family:\"Helvetica Neue\", Helvetica, Arial, sans-serif;font-size:26px;color:#fff;text-align:center;padding-top:50px}@keyframes rotating{from{-ms-transform:translate(-50%, -50%) rotate(0deg);-moz-transform:translate(-50%, -50%) rotate(0deg);-webkit-transform:translate(-50%, -50%) rotate(0deg);-o-transform:translate(-50%, -50%) rotate(0deg);transform:translate(-50%, -50%) rotate(0deg)}to{-ms-transform:translate(-50%, -50%) rotate(360deg);-moz-transform:translate(-50%, -50%) rotate(360deg);-webkit-transform:translate(-50%, -50%) rotate(360deg);-o-transform:translate(-50%, -50%) rotate(360deg);transform:translate(-50%, -50%) rotate(360deg)}}.game-wrapper__loading-spinner{position:absolute;left:50%;top:50%;animation:rotating 1.5s linear infinite}.game-wrapper__loading-spinner path{fill:#fff}.game-wrapper__cta{position:absolute;height:100%;width:100%;cursor:pointer;background-color:#000}.game-wrapper__cta img{width:100%;height:100%}.game-wrapper__cta:hover .game-holder__cta-button{background-color:rgba(186,26,23,0.75)}.game-wrapper__cta-button{position:absolute;bottom:0;left:0;width:80px;height:80px;background-color:rgba(0,0,0,0.75)}.game-wrapper__cta-icon{position:absolute;top:16px;left:16px;width:49px;height:39px}.game-wrapper__iframe,.game-wrapper__game{position:absolute;width:100%;height:100%}.game-wrapper__iframe--fixedsize{position:absolute;margin:0 auto}.cage-settings__wrapper{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.4)}.cage-settings{position:absolute;left:25%;top:25%;width:50%;min-width:325px;height:50%;min-height:150px;overflow:hidden;background-color:#fff;z-index:1;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-size:110%}.cage-settings__list{overflow-y:auto;height:70%}.cage-settings__title{margin:0 auto;padding:15px 10px;color:#3F3E4A;text-align:center;border-bottom:1px solid #B7BBBB}.cage-settings__title-text{text-align:center;padding:10px 78px;font:bold 1.3em arial,sans-serif;color:#3F3E4A}.cage-settings__close-button{position:absolute;right:16px;top:16px;padding:2px;border:0;background-color:transparent}.cage-settings__close-button:hover .cage-settings__close-icon-circle{fill:#B3B3B5}.cage-settings__close-icon-circle{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out;fill:#F0F0F4}.cage-settings__subheading{padding:20px 40px;font:bold 0.9em arial,sans-serif;text-transform:uppercase;color:#939397;background-color:#F0F0F4}.cage-setting{position:relative;padding:20px 40px;border-bottom:1px solid #F0F0F4}.cage-setting:last-child{border-bottom:0}.cage-setting__info{display:block;padding-right:86px;font:normal 1em arial,sans-serif}.cage-setting__title{padding-bottom:10px;font-weight:bold;color:#323232}.cage-setting__description{font-size:1em;color:#939397}.cage-setting__toggle{position:absolute;right:40px;top:10px}.cage-setting__toggle_button{margin-top:5px;padding:10px 10px 8px;border:0;background-color:transparent}.cage-setting__toggle_button .cage-setting__toggle-slider,.cage-setting__toggle_button .cage-setting__toggle-outline{transition:200ms;transition-timing-function:ease-in-out;-webkit-transition:200ms;-webkit-transition-timing-function:ease-in-out}.cage-setting__toggle_button--on .cage-setting__toggle-outline{fill:#44D6DA}.cage-setting__toggle_button--off .cage-setting__toggle-outline{fill:#D8D8D8}@media (max-width: 410px){.cage-settings{top:5%;left:5%;width:90%;height:90%}.cage-settings__list{height:55%}}@media (max-width: 450px) and (min-width: 411px){.cage-settings{top:5%;left:5%;width:90%;height:90%}.cage-settings__list{height:50%}}@media (max-width: 580px) and (min-width: 451px){.cage-settings{top:5%;left:10%;width:80%;height:90%}.cage-settings__list{height:69%}}@media (max-width: 780px) and (min-width: 581px){.cage-settings{left:10%;top:10%;width:80%;height:80%}.cage-settings__list{height:71%}}@media (max-width: 980px) and (min-width: 781px){.cage-settings{left:15%;top:15%;width:70%;height:70%}.cage-settings__list{height:73%}}@media (max-width: 1470px) and (min-width: 981px){.cage-settings__list{height:72%}.cage-settings--mobile{left:10%;width:80%}.cage-settings--mobile .cage-settings__list{height:70%}}@media (min-width: 1470px){.cage-settings__list{height:82%}}.error{background-color:#000;color:#fff;font-family:Arial, Helvetica, sans-serif}.error-body{background-color:#000}.error a{color:#fff;text-decoration:underline;font-weight:bold}@media screen and (min-width: 400px){.error h1,.error-default h1{margin:8px 70px}.error p,.error-default p{margin:8px 70px}}@media screen and (min-width: 600px){.error,.error-default{max-height:280px}.error h1,.error-default h1{margin:16px 96px;font-size:20px}.error p,.error-default p{margin:16px 96px;font-size:18px}}@media screen and (min-width: 770px){.error h1,.error-default h1{margin:16px 126px;font-size:26px}.error p,.error-default p{margin:16px 126px;font-size:20px}}@media screen and (min-width: 1008px){.error h1,.error-default h1{margin:16px 246px}.error p,.error-default p{margin:16px 246px}}\n</style>"); }</script> <script type="text/javascript">Morph.initStyles(); /* u7107637948356569 */</script> <script type="text/javascript" id="js-require-config"> define('local/utils/config', function () { "use strict"; return { 'appName': 'cbeebies', 'env': 'live', 'uasKey': 'ocivkho3fups2', 'uasEnv': 'live', 'uasUrl': '', 'uasDomainSuffix': 'co.uk', 'comscoreSiteOverride': '', 'comscoreTestServiceUrl': '', 'oneTooltipPerPageEnabled': 'true', 'breakpointConfig': [ { minWidth: 0, name: 'extra-small' }, { minWidth: 400, name: 'small' }, { minWidth: 600, name: 'medium' }, { minWidth: 768, name: 'medium-wide' }, { minWidth: 1008, name: 'wide' }, { minWidth: 1280, name: 'extra-wide' } ] }; }); </script> <script> define('childrens-mandolin', function () { "use strict"; var ROLLING_PERIOD_DAYS = 30; var Mandolin = function (id, segments, opts) { var now = new Date().getTime(), storedItem, DEFAULT_START = now, DEFAULT_RATE = 1, COOKIE_NAME = 'ckpf_childrens_mandolin'; opts = opts || {}; this._id = id; this._segmentSet = segments; this._store = new Mandolin.Storage(COOKIE_NAME); this._opts = opts; this._rate = (opts.rate !== undefined) ? +opts.rate : DEFAULT_RATE; this._startTs = (opts.start !== undefined) ? new Date(opts.start).getTime() : new Date(DEFAULT_START).getTime(); this._endTs = (opts.end !== undefined) ? new Date(opts.end).getTime() : daysFromNow(ROLLING_PERIOD_DAYS); this._signupEndTs = (opts.signupEnd !== undefined) ? new Date(opts.signupEnd).getTime() : this._endTs; this._segment = null; // initially // Check for invalid options if (typeof id !== 'string') { throw new Error('Invalid Argument: id must be defined and be a string'); } if (Object.prototype.toString.call(segments) !== '[object Array]') { throw new Error('Invalid Argument: Segments are required.'); } if (opts.rate !== undefined && (opts.rate < 0 || opts.rate > 1)) { throw new Error('Invalid Argument: Rate must be between 0 and 1.'); } if (this._startTs > this._endTs) { throw new Error('Invalid Argument: end date must occur after start date.'); } if (!(this._startTs < this._signupEndTs && this._signupEndTs <= this._endTs)) { throw new Error('Invalid Argument: SignupEnd must be between start and end date'); } // Clear out expired items from Storage before looking for stashed segment data removeExpired.call(this, now); // Load segment override from cookie and validate segment if set. var overrides = window.bbccookies.get().match(/ckns_mandolin_setSegments=([^;]+)/); if (overrides !== null) { eval('overrides = ' + decodeURIComponent(RegExp.$1) + ';'); if(overrides[this._id] && this._segmentSet.indexOf(overrides[this._id]) == -1){ throw new Error('Invalid Override: overridden segment should exist in segments array'); } } if (overrides !== null && overrides[this._id]){ this._segment = overrides[this._id]; } else if ((storedItem = this._store.getItem(this._id))) { this._segment = storedItem.segment; } else if (this._startTs <= now && now < this._signupEndTs && now <= this._endTs && this._store.isEnabled() === true) { this._segment = pick(segments, this._rate); if (opts.end === undefined) { this._store.setItem(this._id, {segment: this._segment}); } else { this._store.setItem(this._id, {segment: this._segment, end: this._endTs}); } log.call(this, 'mandolin_segment'); } // order matters: do this after the segment has been populated log.call(this, 'mandolin_view'); }; Mandolin.prototype.getSegment = function () { return this._segment; }; function log(actionType, params) { var that = this; require(['istats-1'], function (istats) { istats.log(actionType, that._id + ':' + that._segment, params ? params : {}); }); } function removeExpired(expires) { var items = this._store.getItems(), expiresInt = +expires; for (var key in items) { if (items[key].end !== undefined && +items[key].end < expiresInt) { this._store.removeItem(key); } } } function getLastExpirationDate(data) { var winner = 0, rollingExpire = daysFromNow(ROLLING_PERIOD_DAYS); for (var key in data) { if (data[key].end === undefined && rollingExpire > winner) { winner = rollingExpire; } else if (+data[key].end > winner) { winner = +data[key].end; } } return (winner) ? new Date(winner) : new Date(rollingExpire) ; } Mandolin.prototype.log = function (params) { log.call(this, 'mandolin_log', params); }; Mandolin.prototype.convert = function (params) { log.call(this, 'mandolin_convert', params); this.convert = function () {}; }; function daysFromNow(n) { var endDate; endDate = new Date().getTime() + (n * 60 * 60 * 24) * 1000; return endDate; } function pick(segments, rate) { var picked, min = 0, max = segments.length - 1; if (typeof rate === 'number' && Math.random() > rate) { return null; } do { picked = Math.floor(Math.random() * (max - min + 1)) + min; } while (picked > max); return segments[picked]; } Mandolin.Storage = function (name) { validateCookieName(name); this._cookieName = name; this._isEnabled = (bbccookies.isAllowed(this._cookieName) === true && bbccookies.cookiesEnabled() === true); }; Mandolin.Storage.prototype.setItem = function (key, value) { var storeData = this.getItems(); storeData[key] = value; this.save(storeData); return value; }; Mandolin.Storage.prototype.isEnabled = function () { return this._isEnabled; }; Mandolin.Storage.prototype.getItem = function (key) { var storeData = this.getItems(); return storeData[key]; }; Mandolin.Storage.prototype.removeItem = function (key) { var storeData = this.getItems(); delete storeData[key]; this.save(storeData); }; Mandolin.Storage.prototype.getItems = function () { return deserialise(this.readCookie(this._cookieName) || ''); }; Mandolin.Storage.prototype.save = function (data) { //TODO: Is this mixing concerns to have Storage aware of item expiry? window.bbccookies.set( this._cookieName + '=' + encodeURIComponent(serialise(data)) + '; ' + 'path=/;' + 'expires=' + getLastExpirationDate(data).toUTCString() + ';' ); }; Mandolin.Storage.prototype.readCookie = function (name) { var nameEq = name + '=', ca = window.bbccookies.get().split('; '), i, c; validateCookieName(name); for (i = 0; i < ca.length; i++) { c = ca[i]; if (c.indexOf(nameEq) === 0) { return decodeURIComponent(c.substring(nameEq.length, c.length)); } } return null; }; function serialise(o) { var str = ''; for (var p in o) { if (o.hasOwnProperty(p)) { str += '"' + p + '"' + ':' + (typeof o[p] === 'object' ? (o[p] === null? 'null' : '{' + serialise(o[p])+ '}') : '"' + o[p].toString() + '"') + ','; } } return str.replace(/,\}/g, '}').replace(/,$/g, ''); } function deserialise(str) { var o; str = '{' + str + '}'; if ( !validateSerialisation(str) ) { throw 'Invalid input provided for deserialisation.'; } eval('o = ' + str); return o; } var validateSerialisation = (function () { var OBJECT_TOKEN = '<Object>', ESCAPED_CHAR = '"\\n\\r\\u2028\\u2029\\u000A\\u000D\\u005C', ALLOWED_CHAR = '([^' + ESCAPED_CHAR + ']|\\\\[' + ESCAPED_CHAR + '])', KEY = '"' + ALLOWED_CHAR + '+"', VALUE = '(null|"' + ALLOWED_CHAR + '*"|' + OBJECT_TOKEN + ')', KEY_VALUE = KEY + ':' + VALUE, KEY_VALUE_SEQUENCE = '(' + KEY_VALUE + ',)*' + KEY_VALUE, OBJECT_LITERAL = '({}|{' + KEY_VALUE_SEQUENCE + '})', objectPattern = new RegExp(OBJECT_LITERAL, 'g'); return function(str) { if (str.indexOf(OBJECT_TOKEN) !== -1) return false; while (str.match(objectPattern)) { str = str.replace(objectPattern, OBJECT_TOKEN); } return str === OBJECT_TOKEN; } })(); function validateCookieName(name) { if ( name.match(/ ,;/) ) { throw 'Illegal name provided, must be valid in browser cookie.'; } } return Mandolin; }); </script> <script type="text/javascript" id="js-require-setup"> require({ paths: { 'childrens': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts', 'cbeebies': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/cbeebies', 'cbbc': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/cbbc', 'jquery': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/jquery', 'jquery-1': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/jquery/jquery', 'jquery-1.9': 'https://web.archive.org/web/20180202144621/https://static.bbci.co.uk/frameworks/jquery/0.4.1/sharedmodules/jquery-1.9.1', 'lib': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries', 'bump-3': 'https://web.archive.org/web/20180202144621/https://emp.bbci.co.uk/emp/bump-3/bump-3', 'embed': 'https://web.archive.org/web/20180202144621/https://play.bbc.co.uk/play/sdk/embed/v1/latest', 'lib/Imager': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/Imager.min', 'TweenMax': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/gsap/TweenMax.min', 'TimelineMax': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/gsap/TweenMax.min', 'echo-9.4.0': 'https://web.archive.org/web/20180202144621/https://mybbc-analytics.files.bbci.co.uk/echo-client-js/echo-9.4.0.min', 'lib/riddle': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/riddle/embed-3.15.min', 'lib/minpubsub': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/minpubsub.min', 'uasclient': 'https://web.archive.org/web/20180202144621/https://static.bbci.co.uk/uasclient/0.1.40/modules/uasclient', 'activity-button': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/activity-button', 'activity-button/activity-button': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/personalisation/personalisation.min', 'reads': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/reads', 'reads/reads': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/personalisation/personalisation.min', 'reads-carousel': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/reads-carousel', 'reads-carousel/reads-carousel': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/personalisation/personalisation.min', 'angular': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/angular', 'angular/app': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/angular/app.min', 'stats': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/stats', 'stats/stats': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/stats/stats.min', 'confetti': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/confetti', 'confetti/confetti': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/confetti/confetti.min', 'save-game-migration': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/save-game-migration', 'save-game-migration/save-game-migration': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/save-game-migration/save-game-migration.min', 'follows-panel': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/follows-panel', 'follows-panel/childrens-follows-panel': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/personalisation/personalisation.min', 'personalisation': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/personalisation', 'domReady': 'https://web.archive.org/web/20180202144621/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/javascripts/libraries/require/domReady.min', 'relay-1': 'https://web.archive.org/web/20180202144621/https://static.bbci.co.uk/frameworks/relay/0.2.6/sharedmodules/relay-1', 'jssignals-1': 'https://web.archive.org/web/20180202144621/https://static.bbci.co.uk/frameworks/jssignals/0.3.6/modules/jssignals-1' }, shim: { 'angular/angular': { exports: 'angular' }, 'TweenMax': { exports: 'TweenMax' }, 'TimelineMax': { exports: 'TimelineMax' } } }); require(['local/utils/config'], function (config) { }); require(["istats-1"], function (istats) { if (istats.setSite !== undefined) { istats.setSite('cbeebies'); } }); </script> <script> require(['childrens-mandolin'], function (Mandolin) { //cleanup collection-position test var storage = new Mandolin.Storage('ckpf_childrens_mandolin'); var experimentName = 'childrens_collection_position'; if (storage.getItem(experimentName)) { storage.removeItem(experimentName); } }); </script> <script type="text/javascript"> define('local/utils/experiments', ['childrens-mandolin'], function (Mandolin) { "use strict"; function setupMandolin(experiment, variants, config) { var mandolin = new Mandolin(experiment, variants, config); return mandolin.getSegment(); } function addClasses(wrapper, experiment, variant) { var experimentPrefix = " experiment-"; var experimentClass = experimentPrefix + experiment; wrapper.className += experimentClass + experimentClass + "--" + variant; } function addAttribute(wrapper, experiment, variant) { if (!wrapper.hasAttribute("data-active-experiment")) { var att = document.createAttribute("data-active-experiment"); att.value = experiment + ":" + variant; wrapper.setAttributeNode(att); } } return { setup: function(experiment, variants, config) { var variant = setupMandolin(experiment, variants, config); var wrapper = document.querySelector(".childrens-wrapper"); if (variant) { addClasses(wrapper, experiment, variant); } addAttribute(wrapper, experiment, variant); return variant; } } }); </script> </head> <body class="b-pw-1280"> <noscript><p style="position: absolute; top: -999em"><img src="https://web.archive.org/web/20180202144621im_/https://sa.bbc.co.uk/bbc/bbc/s?name=cbeebies.makes.something_special_make_a_picture.page&ml_name=webmodule&ml_version=89&blq_e=orbit&blq_r=orbit&blq_s=orbit&blq_v=cbeebies&language=en&app_name=cbeebies&app_type=responsive&blq_js_enabled=0" height="1" width="1" alt=""></p></noscript><!-- BBCDOTCOM bodyFirst --><div id="bbccom_interstitial_ad" class="bbccom_display_none"></div><div id="bbccom_interstitial" class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ (function() { if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { googletag.cmd.push(function() { googletag.display('bbccom_interstitial'); }); } }()); /*]]>*/</script></div><div id="bbccom_wallpaper_ad" class="bbccom_display_none"></div><div id="bbccom_wallpaper" class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ (function() { var wallpaper; if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { if (bbcdotcom.config.isAsync()) { googletag.cmd.push(function() { googletag.display('bbccom_wallpaper'); }); } else if (typeof googletag !== "undefined" && typeof googletag.display === "function") { googletag.display("wallpaper"); } wallpaper = bbcdotcom.adverts.adRegister.getAd('wallpaper'); } }()); /*]]>*/</script></div><script type="text/javascript">/*<![CDATA[*/ (function() { if (window.bbcdotcom && bbcdotcom.config.isActive('ads')) { document.write(unescape('%3Cscript id="gnlAdsEnabled" class="bbccom_display_none"%3E%3C/script%3E')); } if (window.bbcdotcom && bbcdotcom.config.isActive('analytics')) { document.write(unescape('%3Cscript id="gnlAnalyticsEnabled" class="bbccom_display_none"%3E%3C/script%3E')); } }()); /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.bodyFirst = true; }()); /*]]>*/</script><div id="blq-global"><div id="blq-pre-mast"></div></div><div id="cookiePrompt"></div><!--[if (gt IE 8) | (IEMobile)]><!--><header id="orb-banner" role="banner" aria-label="BBC"><!--<![endif]--><!--[if (lt IE 9) & (!IEMobile)]> <![if (IE 8)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie8" aria-label="BBC"> <![endif]> <![if (IE 7)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie7" aria-label="BBC"> <![endif]> <![if (IE 6)]> <header id="orb-banner" role="banner" class="orb-old-ie orb-ie6" aria-label="BBC"> <![endif]> <![endif]--><div id="orb-header" class="orb-nav-pri orb-nav-pri-white orb-nav-empty" dir="ltr"><div class="orb-nav-pri-container b-r b-g-p"><div class="orb-nav-section orb-nav-blocks"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/">Homepage</a></div><section><div class="orb-skip-links"><h2>Accessibility links</h2><ul><li><a href="#orb-modules">Skip to content</a></li><li><a id="orb-accessibility-help" href="/web/20180202144621/https://www.bbc.co.uk/accessibility/">Accessibility Help</a></li></ul></div></section><div id="mybbc-wrapper" class="orb-nav-section orb-nav-id orb-nav-focus orb-nav-id-default"><div id="idcta-statusbar" class="orb-nav-section orb-nav-focus"><a id="idcta-link" href="https://web.archive.org/web/20180202144621/https://account.bbc.com/account?ptrt=https://www.bbc.co.uk/cbeebies/makes/something-special-make-a-picture"><span id="idcta-username">BBC iD</span></a></div><script type="text/javascript">require(['idcta/statusbar'], function(statusbar) { new statusbar.Statusbar({"id":"idcta-statusbar","publiclyCacheable":true}); });</script></div><nav role="navigation" aria-label="BBC" class="orb-nav"><div class="orb-nav-section orb-nav-links orb-nav-focus" id="orb-nav-links"><ul><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-iplayer"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/iplayer/cbeebies">CBeebies iPlayer</a></li><li class="orb-nav-grownups orb-d"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies/grownups">Grown-ups</a></li><li class="orb-nav-cbeebiesguide"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies/guide">TV Guide</a></li><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-cbeebiesbitesize orb-d"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/education/highlights/sections/primary">Bitesize</a></li><li id="orb-nav-more" style="width: 88px" aria-controls="orb-panel-more"><a href="#orb-footer" data-alt="More" class="istats-notrack">Menu<span class="orb-icon orb-icon-arrow"></span></a></li></ul></div></nav><div class="orb-nav-section orb-nav-search"><a class="orb-search__button" href="https://web.archive.org/web/20180202144621/https://search.bbc.co.uk/search?scope=cbeebies" title="Search the BBC">Search</a><form class="b-f" id="orb-search-form" role="search" method="get" action="https://web.archive.org/web/20180202144621/https://search.bbc.co.uk/search" accept-charset="utf-8"><div><input type="hidden" name="scope" id="orb-search-scope" value="cbeebies"><label for="orb-search-q">Search the BBC</label><input id="orb-search-q" type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" name="q" placeholder="Search"><button id="orb-search-button" class="orb-search__button">Search the BBC</button><input type="hidden" name="suggid" id="orb-search-suggid"></div></form></div></div><div id="orb-panels"></div></div></header><!-- Styling hook for shared modules only --> <div id="orb-modules"> <div id="unsupported-browser-banner-wrapper"> <!--[if lt IE 10]> <div class="unsupported-browser-banner" role="complementary"> <div class="unsupported-browser-banner__window"> <div class="grid__container"> <div class="grid__item"> <img class="unsupported-browser-banner__icon" aria-hidden="true" alt="" src="https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/images/icons/ie-caution-icon.png"/> <span class="unsupported-browser-banner__text">To get the best experience from CBeebies, you need to upgrade your browser to the latest version.</span> </div> </div> </div> </div> <![endif]--> </div> <script> // Show unsupported browser banner for IE10 (function () { if (/*@cc_on!@*/false && document.documentMode === 10) { var bannerWrapper = document.getElementById('unsupported-browser-banner-wrapper'); var currentNode = bannerWrapper.firstChild; var startTagLength = '<!--[if lt IE 10]>'.length; var endTagLength = '<![endif]-->'.length; // Retrieve comment node inside the bannerWrapper; first child is whitespace while (currentNode) { if (currentNode.nodeType === bannerWrapper.COMMENT_NODE) { // Remove the IE tag comments and insert HTML into bannerWrapper bannerWrapper.innerHTML = currentNode.nodeValue.trim().slice(startTagLength, -endTagLength); } currentNode = currentNode.nextSibling; } } })(); </script> <div class="childrens-wrapper childrens-wrapper--cbeebies childrens-wrapper--content-item childrens-wrapper--makes childrens-wrapper--background feature-flag feature-flag--search-bar feature-flag--puzzles-and-quizzes feature-flag--new-vote-styling feature-flag--episode-prominence-on-brand-pages feature-flag--confetti" data-stats-page-type="content" data-stats-children-curation="creative-play-for-kids" data-stats-children-show="something-special" data-stats-children-index="makes" data-stats-children-topic="none" data-stats-children-collection="creative-play-for-kids" data-stats-children-oj-campaign="cbeebies.makes.mr_tumbles_bow_tie_treats.page-cbeebies.makes.lets_go_club_ice_cool_skaters.page-cbeebies.watch.something_special_the_goodbye_song.page" data-stats-children-page-intention="false" data-stats-children-primary-content="gid-map2-somethingspecial" data-stats-children-game-cms="isite" data-stats-children-comments="false"> <script> require(['jquery-1', 'stats/stats', 'domReady!'], function ($, stats, domReady) { stats.init($('.childrens-wrapper'), window.location.pathname); }); </script> <span class="childrens-wrapper__cover"></span> <div class="menu-container "> <div class="menu-placeholder"></div> <nav id="menu" role="navigation" class="menu menu--closed"> <div class="menu__window window window--extra-wide "> <div class="menu__bar"> <a class="menu__product" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies" data-stats-interaction="navigation" data-stats-interaction-variant="home_logo"> <svg version="1.1" id="small-menu-logo" class="logo logo--cbeebies logo--animated menu__logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 126 54" enable-background="new 0 0 126 54" xml:space="preserve" preserveaspectratio="xMaxYMin meet"> <g class="logo__part logo__part--character logo__part--c"> <g> <g> <g> <path d="M10.6,22.7c-1.8,0-3.4,0.7-4.7,2C2.3,28.2-5,37.8,5.4,49c3.5,3.8,7.2,5.8,10.8,5.8c4.5,0,7.7-2.9,9.2-4.3 c0.1-0.1,0.3-0.3,0.4-0.4c1.7-1.5,4.6-5.2,4.8-8.5c0.1-1.5-0.4-2.8-1.3-3.8c-0.3-0.3-0.4-0.6-0.8-0.8c-0.6-0.3-1.1-0.6-1.5-1 c-0.6-0.5-1.2-1.4-1.6-1.7c-0.6-0.4-1.2-0.5-1.8-0.5c-0.7,0-1.9,0.2-2.8,1.4c-0.8,1.1-0.8,2.6-1,4c-0.1,0.9-0.4,2.9-0.9,3 c-0.4,0.2-0.8,0.2-1.2,0.2c-1.2,0-2.4-0.7-3.6-2.2c-0.8-1-1.4-2.4-1.7-3.7c0.6,0.5,1.3,0.9,2.4,1c0.3,0.1,0.6,0.1,0.9,0.1 c2.6,0,5.7-1.8,6.6-4.3c0.2-1.8-0.4-4.5-2.4-6.1C17.2,25,13.9,22.7,10.6,22.7L10.6,22.7C10.6,22.7,10.6,22.7,10.6,22.7 L10.6,22.7z"></path> <path fill="#FFE500" d="M15.2,35.9c3.2,0.6,7.6-4,3.6-7.2c-4-3.2-8.4-6-11.7-2.7c-3.4,3.4-9.7,11.7-0.4,21.8 c9.2,10.1,16,2.7,18,1s5.9-7,3.4-9.7c-2.6-2.7-4.4-4.4-5.6-2.6c-1.2,1.7-0.4,6.7-2.9,7.6c-2.4,0.9-4.6,0-6.7-2.5 c-2.1-2.6-3.4-8.4-1.4-8.9C13.3,32,12,35.4,15.2,35.9z"></path> </g> </g> </g> </g><g class="logo__part logo__part--character logo__part--b1"> <g> <g> <path d="M33.1,12.5c-2.1,0-4.2,0.5-6,1.3C24.3,15.3,17,19.3,21,31.6c0.1,0.7,0.4,2,0.9,2.7c0.3,0.4,1,0.6,1.1,0.8 c0.2,0.3,2.2,1.1,2.9,1.8c0.8,0.7,1.2,1.4,1.8,1.7c2.5,1.4,5,1.7,6.8,1.7c2.4,0,4.9-0.6,7-1.6c2-0.9,5.5-3,6.6-6.4 c0.6-1.8,0.4-3.7-0.6-5.5c-0.4-0.7-0.9-1.3-1.4-1.7c-0.2-0.2-0.6-0.2-0.8-0.4c-0.4-0.3-0.7-0.6-1.1-0.8c-1.1-0.4-2.2-0.6-3.1-0.8 c-1.4-0.2-2.1-0.4-2.4-0.7c0.1-0.4,0.3-1,0.5-1.5c0.7-1.8,1.6-4.2,0.2-6C38.4,13.4,36.1,12.5,33.1,12.5L33.1,12.5z"></path> <path fill="#FFE500" d="M27.9,15.4c-3.6,1.9-8.7,5.1-4.6,15.1c4.1,9.9,13.3,8.6,17.5,6.6c4-1.9,7.5-5.4,5.2-9.5 c-2.1-4-7.7-1.6-9-4.7c-0.5-1.4,2.4-5.2,1-7C36.7,14.1,31.6,13.7,27.9,15.4z"></path> </g> </g> <g> <path fill="#50318E" d="M31.8,24.3c1.5-1.7,1.1-5.4-0.7-5.9c-2.6-0.7-4.6,3.1-4,4.4C27.9,24.1,30.3,26,31.8,24.3z"></path> </g> <g> <path fill="#50318E" d="M38.7,31c-0.5,1.5-2.2,3.6-4.4,2.9s-3.7-3.9-2.4-5C33.4,27.9,40.3,26.5,38.7,31z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e1"> <g> <g> <path d="M47.8,8.2c-1.7,0-3.4,0.7-4.6,1.8c-5.2,4.8-4.3,10.5-1.1,14.1c0.4,0.5,0.9,0.9,1.4,1.3c0.3,0.2,0.6,0.3,0.9,0.4 c0.1,0.1,0.3,0.1,0.4,0.2c0.1,0.1,0.2,0.3,0.3,0.3c1.4,0.8,3,1.1,4.5,1.1c2.6,0,5.1-1.1,7.3-3.1c2.5-2.2,2.1-4,1.3-5.5 c0-0.1-0.1-0.1-0.1-0.2c-0.5-1.2-1.8-2.4-3.2-2.6c0.4-1.8-0.4-3.8-1.3-5l-0.1-0.1L53.5,11C51.5,8.7,49.3,8.2,47.8,8.2L47.8,8.2z"></path> <path fill="#FFE500" d="M44.4,11.3c-3.2,3-4.5,7.6-1,11.6c2.9,3.1,7.9,4.4,12.4,0.2c2-1.7,1.2-2.6,0.7-3.6 c-0.4-1-1.9-2.1-2.6-1.4c-0.7,0.7-1.1,1.7-2,2.5c-1.2,1.1-5.2,0.4-3.9-0.9c0.7-0.7,2.9-1.5,4.6-3.1c1.2-1.1,0.1-3.6-0.5-4.5 C49.3,9,45.9,10,44.4,11.3z"></path> </g> </g> <g> <path fill="#50318E" d="M44.8,16.9c0.5,1.1,2.6,0.6,3.6-0.4c1-1,1.9-2.5,0.6-3.6C47,11.2,44,15.2,44.8,16.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e2"> <g> <g> <path d="M67.1,9.1c-6.8,0-10,4.7-10.2,9.3c-0.1,5,3.1,10.4,10.5,10.7c0.2,0,0.3,0,0.5,0c3.3,0,4-2,4.3-2.9c0-0.1,0.1-0.2,0.1-0.2 c0.4-1.1,0.4-2.9-0.4-4.1c1.6-1.1,2.4-3.4,2.6-4.6l0-0.1v-0.1c0-5.2-3.6-7.8-6.9-8l0,0l0,0C67.3,9.1,67.2,9.1,67.1,9.1L67.1,9.1z "></path> <path fill="#FFE500" d="M67.4,11c-4.4-0.1-8.5,2.4-8.7,7.6c-0.1,4.2,2.6,8.6,8.7,8.9c2.6,0.1,2.7-1,3.1-2c0.4-1,0.1-2.9-0.9-2.9 c-1,0-2,0.5-3.1,0.5c-1.7,0-4-3.4-2.1-3.2c1.1,0,3.1,0.9,5.5,1c1.6,0,2.6-2.5,2.7-3.6C72.6,12.6,69.4,11.1,67.4,11z"></path> </g> </g> <g> <path fill="#50318E" d="M64.9,16.1c-0.4,1.1,1.2,2.4,2.5,2.2c1.2,0,2.7-0.5,2.6-2.1C69.7,13.4,65.5,14.3,64.9,16.1z"></path> </g> </g><g class="logo__part logo__part--character logo__part--b2"> <g> <g> <path d="M82.3,0.4c-2.1,0-3.8,1-4.7,2.9c-0.3,0.5-1,1.5-1.5,3.4l0,0l0,0c0,0.1-0.4,1.8-0.5,3l0,0.1V10c0,0.2,0,0.6,0,0.9 c0,0.5-0.1,1-0.1,1.6c0,0,0,0,0,0c0,0,0,0.4-0.2,1.4c-0.1,0.5-0.6,1.1-1.2,2.1c-0.3,0.4-0.6,0.8-0.9,1.3c-0.2,0.3-1,1.6-1.3,2.6 c-0.3,0.8-1.7,4.5,0.1,8.9c1.3,3.7,4.9,6.1,9.3,6.1c1.6,0,3.2-0.3,4.7-1c1-0.4,1.7-1,2.2-1.3l0.1-0.1c0.5-0.4,0.9-0.8,1-1 c0.3-0.3,0.6-0.7,0.8-1.1c0.3-0.5,0.2-1.1,0.5-1.6c0.4-0.8,1.1-1.2,1.1-1.4c0.9-2.6,0.8-4.7,0.7-5.7v-0.1v-0.2L92.4,21 c0-0.2-0.1-0.3-0.1-0.4c0-0.2-0.1-0.5-0.2-0.9c-0.7-2.7-3.2-4.3-6.4-4.3c-0.6,0-1.1,0.1-1.6,0.2l-0.5,0.1l-0.1,0.1 c0-0.1,0.1-0.2,0.1-0.4l0-0.1l0-0.1l0.1-0.2c0.3-1.1,0.3-1.1,1.6-3l0.1-0.2c0.6-0.5,1.1-1.5,1.9-2.9C87.8,8,88,7,88,6.1 C88,3,85.5,0.4,82.3,0.4L82.3,0.4z"></path> <path fill="#FFE500" d="M73.6,20.4c0.2-0.9,1.1-2.2,1.1-2.2c1.2-1.9,2.1-2.9,2.4-4c0.2-1.2,0.2-1.7,0.2-1.7 c0-0.9,0.1-1.9,0.1-2.5C77.6,8.8,78,7.1,78,7.1c0.5-2,1.2-2.9,1.2-2.9c0.6-1.4,1.7-2,3.1-2c2.1,0,3.9,1.7,3.9,3.9 c0,0.5-0.1,1.2-0.5,2c-1.1,2.1-1.5,2.5-1.6,2.5c-1.7,2.7-1.6,2.5-2.1,4.1c-0.2,0.6-0.4,1.1-0.2,1.6c0.2,0.9,0.9,1.2,1.5,1.2 c0.2,0,0.5,0,0.9-0.1c0.1,0,0.2,0,0.4-0.1c1.9-0.4,5.2,0,6,3c0.1,0.2,0.1,0.6,0.2,1.1v0.2c0.1,1,0.1,2.9-0.6,5 c-0.1,0.4-1.2,2.6-2.1,3.5l0,0c0,0-0.2,0.4-0.7,0.7c-0.5,0.4-1.1,0.9-2,1.2c-4.4,2-10,0.4-11.5-4.1C72,23.9,73.6,20.4,73.6,20.4z "></path> </g> </g> <g> <path fill="#50318E" d="M86.1,25.9c-1.1,1.2-3.7,2.5-5.5,0.9c-1.7-1.6-1.9-5.5-0.1-5.9C82.3,20.7,89.6,22.3,86.1,25.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--i"> <g> <g> <path d="M99.7,14.3c-1.6,0-2.8,0.9-3.3,2.4c-1.2,3.7,0.4,5.8,2.2,6.5c0.3,0.1,0.7,0.2,1,0.2c1.8,0,3.4-1.7,4.2-3.1 c0.8-1.4,0.8-2.8,0.2-3.7C103.2,15.5,101.5,14.3,99.7,14.3L99.7,14.3z"></path> <path fill="#FFE500" d="M98.1,17.3c-0.7,2.4-0.1,3.7,1.1,4.2c1.5,0.6,4-2.9,3.2-4C101.7,16.4,98.8,15.1,98.1,17.3z"></path> </g> </g> <g> <g> <path d="M97.1,21.5L97.1,21.5c-1.2,0-2.6,0.7-4.1,1.9l0,0l0,0c-1.1,1.1-1.6,1.7-2.3,2.5c-0.1,0.1-0.2,0.3-0.3,0.5 c-0.1,0.1-0.3,0.8-0.3,0.8c-0.6,1.2-1.3,1.9-1.4,2.2c-0.1,1.1,0,1.8,0.3,2.4c0.6,1.3,2.1,2.2,4,2.3c0.1,0,0.2,0,0.3,0 c3.3,0,6.5-4.2,7.1-7.9c0.3-2-0.2-3.2-0.7-3.8C98.9,21.9,98.1,21.5,97.1,21.5L97.1,21.5z"></path> <path fill="#FFE500" d="M94.2,24.8c2.9-2.5,4.7-1.7,4.2,1.2c-0.5,3-3.1,6.5-5.5,6.4c-1.7-0.1-3.9-1.2-1.7-4.4 C92.3,26.8,92.8,26.2,94.2,24.8z"></path> </g> </g> </g><g class="logo__part logo__part--character logo__part--e3"> <g> <g> <path d="M106.4,23.7c-4.7,0-8.3,2.9-9.1,7.4c-0.5,2.6,0,5.3,1.4,7.4c1.5,2.1,3.8,3.5,6.7,4.1c0.5,0.1,1,0.2,1.4,0.2 c2.2,0,3-1.4,3.4-2.1c0-0.1,0.1-0.2,0.1-0.2l0-0.1l0-0.1c0.6-1,0.8-2.7,0.2-4c0,0,0,0,0,0c0.6-0.3,1.1-0.7,1.6-1.3 c0.7-0.8,1.1-1.8,1.3-2.6c0.6-2.6-0.1-4.4-0.8-5.5c-1-1.5-2.6-2.6-4.3-3C107.8,23.8,107.1,23.7,106.4,23.7L106.4,23.7z"></path> <path fill="#FFE500" d="M108.2,25.7c-4-0.7-8.2,1-9.1,5.7c-0.7,3.9,1.1,8.4,6.7,9.4c2.4,0.5,2.6-0.6,3.1-1.4 c0.5-0.9,0.5-2.6-0.5-2.7s-2,0.1-3,0c-1.6-0.2-3.2-3.6-1.5-3.4c1,0.2,2.7,1.2,4.9,1.6c1.5,0.2,2.9-1.9,3-2.9 C112.8,28,110,26,108.2,25.7z"></path> </g> </g> <g> <path fill="#50318E" d="M105,28.5c-0.6,1-0.5,2.9,0.7,3c1.2,0.1,3.6-1.1,2.7-2.6C107.7,27.5,105.9,27.2,105,28.5z"></path> </g> </g><g class="logo__part logo__part--character logo__part--s"> <g> <path d="M117.5,34.6c-2.4,0-4.7,1-6.3,2.7l0,0l0,0c-1.2,1.4-2.3,3.8-1.7,5.9c-1.3,0.1-2.2,0.9-2.6,1.3l0,0l0,0 c-2.3,2.5-2.2,5.6,0.3,7.9l0,0l0,0c1.8,1.6,4.1,2.4,6.4,2.4c2.4,0,4.6-1,6.2-2.7c1.3-1.4,2.4-3.9,1.8-5.9c1.2-0.1,2.2-0.9,2.5-1.3 l0,0l0,0c1.1-1.2,1.7-2.6,1.6-4c-0.1-1.4-0.7-2.7-2-3.9C122.1,35.5,119.9,34.6,117.5,34.6L117.5,34.6 C117.5,34.6,117.5,34.6,117.5,34.6L117.5,34.6z"></path> <path fill="#FFE500" d="M118.5,51c1.1-1.2,2.2-3.9,0.7-5.2c-1-0.9-1.9-1.2-2.9-2.1c-0.7-0.7-0.7-1.7-0.1-2.4 c0.5-0.6,1.6-1.2,2.4-0.6c1,0.9,1.1,2.6,2,3.6c0.7,0.6,1.7,0,2.2-0.5c1.6-1.7,1.5-3.7-0.2-5.4c-2.9-2.6-7.4-2.7-10.1,0.1 c-1.1,1.2-2.1,3.9-0.7,5.2c1,0.9,2.4,1.1,3,2.4c0.5,0.9,0.4,1.4,0,2.1c-0.5,0.7-1.6,1.2-2.4,0.6c-1-0.9-1-2.6-2-3.6 c-0.7-0.6-1.7,0-2.2,0.5c-1.6,1.7-1.5,3.7,0.2,5.4C111.4,53.7,115.9,53.9,118.5,51z"></path> </g> </g> </svg> <script> require(['jquery-1', 'modernizr', 'childrens/logo/animated-cbeebies-logo'], function ($, Modernizr, logoAnimation) { var shouldAnimateLogo = Modernizr.svg && Modernizr.cssanimations; if (shouldAnimateLogo) { var logo = logoAnimation({id: '#small-menu-logo'}); $(document).ready(function () { setTimeout(logo.play, 800); }); } }); </script> Home </a> <button id="menu-toggle" class="menu__toggle" data-stats-interaction="navigation" data-stats-interaction-action="button" data-stats-interaction-variant="open"> <span id="menu-toggle-title" class="menu__toggle-title">Menu</span> <i aria-hidden="true" class="menu__toggle-icon"></i> </button> </div> <div class="menu__contents"> <div class="menu__list"> <ul class="menu__list-inner"> <li class="menu__item menu__item--home"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies" data-stats-interaction="navigation" data-stats-interaction-variant="home"> <span class="menu__link-icon"> <svg version="1.1" id="large-menu-logo" class="logo logo--cbeebies logo--animated menu__logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 126 54" enable-background="new 0 0 126 54" xml:space="preserve" preserveaspectratio="xMaxYMin meet"> <g class="logo__part logo__part--character logo__part--c"> <g> <g> <g> <path d="M10.6,22.7c-1.8,0-3.4,0.7-4.7,2C2.3,28.2-5,37.8,5.4,49c3.5,3.8,7.2,5.8,10.8,5.8c4.5,0,7.7-2.9,9.2-4.3 c0.1-0.1,0.3-0.3,0.4-0.4c1.7-1.5,4.6-5.2,4.8-8.5c0.1-1.5-0.4-2.8-1.3-3.8c-0.3-0.3-0.4-0.6-0.8-0.8c-0.6-0.3-1.1-0.6-1.5-1 c-0.6-0.5-1.2-1.4-1.6-1.7c-0.6-0.4-1.2-0.5-1.8-0.5c-0.7,0-1.9,0.2-2.8,1.4c-0.8,1.1-0.8,2.6-1,4c-0.1,0.9-0.4,2.9-0.9,3 c-0.4,0.2-0.8,0.2-1.2,0.2c-1.2,0-2.4-0.7-3.6-2.2c-0.8-1-1.4-2.4-1.7-3.7c0.6,0.5,1.3,0.9,2.4,1c0.3,0.1,0.6,0.1,0.9,0.1 c2.6,0,5.7-1.8,6.6-4.3c0.2-1.8-0.4-4.5-2.4-6.1C17.2,25,13.9,22.7,10.6,22.7L10.6,22.7C10.6,22.7,10.6,22.7,10.6,22.7 L10.6,22.7z"></path> <path fill="#FFE500" d="M15.2,35.9c3.2,0.6,7.6-4,3.6-7.2c-4-3.2-8.4-6-11.7-2.7c-3.4,3.4-9.7,11.7-0.4,21.8 c9.2,10.1,16,2.7,18,1s5.9-7,3.4-9.7c-2.6-2.7-4.4-4.4-5.6-2.6c-1.2,1.7-0.4,6.7-2.9,7.6c-2.4,0.9-4.6,0-6.7-2.5 c-2.1-2.6-3.4-8.4-1.4-8.9C13.3,32,12,35.4,15.2,35.9z"></path> </g> </g> </g> </g><g class="logo__part logo__part--character logo__part--b1"> <g> <g> <path d="M33.1,12.5c-2.1,0-4.2,0.5-6,1.3C24.3,15.3,17,19.3,21,31.6c0.1,0.7,0.4,2,0.9,2.7c0.3,0.4,1,0.6,1.1,0.8 c0.2,0.3,2.2,1.1,2.9,1.8c0.8,0.7,1.2,1.4,1.8,1.7c2.5,1.4,5,1.7,6.8,1.7c2.4,0,4.9-0.6,7-1.6c2-0.9,5.5-3,6.6-6.4 c0.6-1.8,0.4-3.7-0.6-5.5c-0.4-0.7-0.9-1.3-1.4-1.7c-0.2-0.2-0.6-0.2-0.8-0.4c-0.4-0.3-0.7-0.6-1.1-0.8c-1.1-0.4-2.2-0.6-3.1-0.8 c-1.4-0.2-2.1-0.4-2.4-0.7c0.1-0.4,0.3-1,0.5-1.5c0.7-1.8,1.6-4.2,0.2-6C38.4,13.4,36.1,12.5,33.1,12.5L33.1,12.5z"></path> <path fill="#FFE500" d="M27.9,15.4c-3.6,1.9-8.7,5.1-4.6,15.1c4.1,9.9,13.3,8.6,17.5,6.6c4-1.9,7.5-5.4,5.2-9.5 c-2.1-4-7.7-1.6-9-4.7c-0.5-1.4,2.4-5.2,1-7C36.7,14.1,31.6,13.7,27.9,15.4z"></path> </g> </g> <g> <path fill="#50318E" d="M31.8,24.3c1.5-1.7,1.1-5.4-0.7-5.9c-2.6-0.7-4.6,3.1-4,4.4C27.9,24.1,30.3,26,31.8,24.3z"></path> </g> <g> <path fill="#50318E" d="M38.7,31c-0.5,1.5-2.2,3.6-4.4,2.9s-3.7-3.9-2.4-5C33.4,27.9,40.3,26.5,38.7,31z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e1"> <g> <g> <path d="M47.8,8.2c-1.7,0-3.4,0.7-4.6,1.8c-5.2,4.8-4.3,10.5-1.1,14.1c0.4,0.5,0.9,0.9,1.4,1.3c0.3,0.2,0.6,0.3,0.9,0.4 c0.1,0.1,0.3,0.1,0.4,0.2c0.1,0.1,0.2,0.3,0.3,0.3c1.4,0.8,3,1.1,4.5,1.1c2.6,0,5.1-1.1,7.3-3.1c2.5-2.2,2.1-4,1.3-5.5 c0-0.1-0.1-0.1-0.1-0.2c-0.5-1.2-1.8-2.4-3.2-2.6c0.4-1.8-0.4-3.8-1.3-5l-0.1-0.1L53.5,11C51.5,8.7,49.3,8.2,47.8,8.2L47.8,8.2z"></path> <path fill="#FFE500" d="M44.4,11.3c-3.2,3-4.5,7.6-1,11.6c2.9,3.1,7.9,4.4,12.4,0.2c2-1.7,1.2-2.6,0.7-3.6 c-0.4-1-1.9-2.1-2.6-1.4c-0.7,0.7-1.1,1.7-2,2.5c-1.2,1.1-5.2,0.4-3.9-0.9c0.7-0.7,2.9-1.5,4.6-3.1c1.2-1.1,0.1-3.6-0.5-4.5 C49.3,9,45.9,10,44.4,11.3z"></path> </g> </g> <g> <path fill="#50318E" d="M44.8,16.9c0.5,1.1,2.6,0.6,3.6-0.4c1-1,1.9-2.5,0.6-3.6C47,11.2,44,15.2,44.8,16.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--e2"> <g> <g> <path d="M67.1,9.1c-6.8,0-10,4.7-10.2,9.3c-0.1,5,3.1,10.4,10.5,10.7c0.2,0,0.3,0,0.5,0c3.3,0,4-2,4.3-2.9c0-0.1,0.1-0.2,0.1-0.2 c0.4-1.1,0.4-2.9-0.4-4.1c1.6-1.1,2.4-3.4,2.6-4.6l0-0.1v-0.1c0-5.2-3.6-7.8-6.9-8l0,0l0,0C67.3,9.1,67.2,9.1,67.1,9.1L67.1,9.1z "></path> <path fill="#FFE500" d="M67.4,11c-4.4-0.1-8.5,2.4-8.7,7.6c-0.1,4.2,2.6,8.6,8.7,8.9c2.6,0.1,2.7-1,3.1-2c0.4-1,0.1-2.9-0.9-2.9 c-1,0-2,0.5-3.1,0.5c-1.7,0-4-3.4-2.1-3.2c1.1,0,3.1,0.9,5.5,1c1.6,0,2.6-2.5,2.7-3.6C72.6,12.6,69.4,11.1,67.4,11z"></path> </g> </g> <g> <path fill="#50318E" d="M64.9,16.1c-0.4,1.1,1.2,2.4,2.5,2.2c1.2,0,2.7-0.5,2.6-2.1C69.7,13.4,65.5,14.3,64.9,16.1z"></path> </g> </g><g class="logo__part logo__part--character logo__part--b2"> <g> <g> <path d="M82.3,0.4c-2.1,0-3.8,1-4.7,2.9c-0.3,0.5-1,1.5-1.5,3.4l0,0l0,0c0,0.1-0.4,1.8-0.5,3l0,0.1V10c0,0.2,0,0.6,0,0.9 c0,0.5-0.1,1-0.1,1.6c0,0,0,0,0,0c0,0,0,0.4-0.2,1.4c-0.1,0.5-0.6,1.1-1.2,2.1c-0.3,0.4-0.6,0.8-0.9,1.3c-0.2,0.3-1,1.6-1.3,2.6 c-0.3,0.8-1.7,4.5,0.1,8.9c1.3,3.7,4.9,6.1,9.3,6.1c1.6,0,3.2-0.3,4.7-1c1-0.4,1.7-1,2.2-1.3l0.1-0.1c0.5-0.4,0.9-0.8,1-1 c0.3-0.3,0.6-0.7,0.8-1.1c0.3-0.5,0.2-1.1,0.5-1.6c0.4-0.8,1.1-1.2,1.1-1.4c0.9-2.6,0.8-4.7,0.7-5.7v-0.1v-0.2L92.4,21 c0-0.2-0.1-0.3-0.1-0.4c0-0.2-0.1-0.5-0.2-0.9c-0.7-2.7-3.2-4.3-6.4-4.3c-0.6,0-1.1,0.1-1.6,0.2l-0.5,0.1l-0.1,0.1 c0-0.1,0.1-0.2,0.1-0.4l0-0.1l0-0.1l0.1-0.2c0.3-1.1,0.3-1.1,1.6-3l0.1-0.2c0.6-0.5,1.1-1.5,1.9-2.9C87.8,8,88,7,88,6.1 C88,3,85.5,0.4,82.3,0.4L82.3,0.4z"></path> <path fill="#FFE500" d="M73.6,20.4c0.2-0.9,1.1-2.2,1.1-2.2c1.2-1.9,2.1-2.9,2.4-4c0.2-1.2,0.2-1.7,0.2-1.7 c0-0.9,0.1-1.9,0.1-2.5C77.6,8.8,78,7.1,78,7.1c0.5-2,1.2-2.9,1.2-2.9c0.6-1.4,1.7-2,3.1-2c2.1,0,3.9,1.7,3.9,3.9 c0,0.5-0.1,1.2-0.5,2c-1.1,2.1-1.5,2.5-1.6,2.5c-1.7,2.7-1.6,2.5-2.1,4.1c-0.2,0.6-0.4,1.1-0.2,1.6c0.2,0.9,0.9,1.2,1.5,1.2 c0.2,0,0.5,0,0.9-0.1c0.1,0,0.2,0,0.4-0.1c1.9-0.4,5.2,0,6,3c0.1,0.2,0.1,0.6,0.2,1.1v0.2c0.1,1,0.1,2.9-0.6,5 c-0.1,0.4-1.2,2.6-2.1,3.5l0,0c0,0-0.2,0.4-0.7,0.7c-0.5,0.4-1.1,0.9-2,1.2c-4.4,2-10,0.4-11.5-4.1C72,23.9,73.6,20.4,73.6,20.4z "></path> </g> </g> <g> <path fill="#50318E" d="M86.1,25.9c-1.1,1.2-3.7,2.5-5.5,0.9c-1.7-1.6-1.9-5.5-0.1-5.9C82.3,20.7,89.6,22.3,86.1,25.9z"></path> </g> </g><g class="logo__part logo__part--character logo__part--i"> <g> <g> <path d="M99.7,14.3c-1.6,0-2.8,0.9-3.3,2.4c-1.2,3.7,0.4,5.8,2.2,6.5c0.3,0.1,0.7,0.2,1,0.2c1.8,0,3.4-1.7,4.2-3.1 c0.8-1.4,0.8-2.8,0.2-3.7C103.2,15.5,101.5,14.3,99.7,14.3L99.7,14.3z"></path> <path fill="#FFE500" d="M98.1,17.3c-0.7,2.4-0.1,3.7,1.1,4.2c1.5,0.6,4-2.9,3.2-4C101.7,16.4,98.8,15.1,98.1,17.3z"></path> </g> </g> <g> <g> <path d="M97.1,21.5L97.1,21.5c-1.2,0-2.6,0.7-4.1,1.9l0,0l0,0c-1.1,1.1-1.6,1.7-2.3,2.5c-0.1,0.1-0.2,0.3-0.3,0.5 c-0.1,0.1-0.3,0.8-0.3,0.8c-0.6,1.2-1.3,1.9-1.4,2.2c-0.1,1.1,0,1.8,0.3,2.4c0.6,1.3,2.1,2.2,4,2.3c0.1,0,0.2,0,0.3,0 c3.3,0,6.5-4.2,7.1-7.9c0.3-2-0.2-3.2-0.7-3.8C98.9,21.9,98.1,21.5,97.1,21.5L97.1,21.5z"></path> <path fill="#FFE500" d="M94.2,24.8c2.9-2.5,4.7-1.7,4.2,1.2c-0.5,3-3.1,6.5-5.5,6.4c-1.7-0.1-3.9-1.2-1.7-4.4 C92.3,26.8,92.8,26.2,94.2,24.8z"></path> </g> </g> </g><g class="logo__part logo__part--character logo__part--e3"> <g> <g> <path d="M106.4,23.7c-4.7,0-8.3,2.9-9.1,7.4c-0.5,2.6,0,5.3,1.4,7.4c1.5,2.1,3.8,3.5,6.7,4.1c0.5,0.1,1,0.2,1.4,0.2 c2.2,0,3-1.4,3.4-2.1c0-0.1,0.1-0.2,0.1-0.2l0-0.1l0-0.1c0.6-1,0.8-2.7,0.2-4c0,0,0,0,0,0c0.6-0.3,1.1-0.7,1.6-1.3 c0.7-0.8,1.1-1.8,1.3-2.6c0.6-2.6-0.1-4.4-0.8-5.5c-1-1.5-2.6-2.6-4.3-3C107.8,23.8,107.1,23.7,106.4,23.7L106.4,23.7z"></path> <path fill="#FFE500" d="M108.2,25.7c-4-0.7-8.2,1-9.1,5.7c-0.7,3.9,1.1,8.4,6.7,9.4c2.4,0.5,2.6-0.6,3.1-1.4 c0.5-0.9,0.5-2.6-0.5-2.7s-2,0.1-3,0c-1.6-0.2-3.2-3.6-1.5-3.4c1,0.2,2.7,1.2,4.9,1.6c1.5,0.2,2.9-1.9,3-2.9 C112.8,28,110,26,108.2,25.7z"></path> </g> </g> <g> <path fill="#50318E" d="M105,28.5c-0.6,1-0.5,2.9,0.7,3c1.2,0.1,3.6-1.1,2.7-2.6C107.7,27.5,105.9,27.2,105,28.5z"></path> </g> </g><g class="logo__part logo__part--character logo__part--s"> <g> <path d="M117.5,34.6c-2.4,0-4.7,1-6.3,2.7l0,0l0,0c-1.2,1.4-2.3,3.8-1.7,5.9c-1.3,0.1-2.2,0.9-2.6,1.3l0,0l0,0 c-2.3,2.5-2.2,5.6,0.3,7.9l0,0l0,0c1.8,1.6,4.1,2.4,6.4,2.4c2.4,0,4.6-1,6.2-2.7c1.3-1.4,2.4-3.9,1.8-5.9c1.2-0.1,2.2-0.9,2.5-1.3 l0,0l0,0c1.1-1.2,1.7-2.6,1.6-4c-0.1-1.4-0.7-2.7-2-3.9C122.1,35.5,119.9,34.6,117.5,34.6L117.5,34.6 C117.5,34.6,117.5,34.6,117.5,34.6L117.5,34.6z"></path> <path fill="#FFE500" d="M118.5,51c1.1-1.2,2.2-3.9,0.7-5.2c-1-0.9-1.9-1.2-2.9-2.1c-0.7-0.7-0.7-1.7-0.1-2.4 c0.5-0.6,1.6-1.2,2.4-0.6c1,0.9,1.1,2.6,2,3.6c0.7,0.6,1.7,0,2.2-0.5c1.6-1.7,1.5-3.7-0.2-5.4c-2.9-2.6-7.4-2.7-10.1,0.1 c-1.1,1.2-2.1,3.9-0.7,5.2c1,0.9,2.4,1.1,3,2.4c0.5,0.9,0.4,1.4,0,2.1c-0.5,0.7-1.6,1.2-2.4,0.6c-1-0.9-1-2.6-2-3.6 c-0.7-0.6-1.7,0-2.2,0.5c-1.6,1.7-1.5,3.7,0.2,5.4C111.4,53.7,115.9,53.9,118.5,51z"></path> </g> </g> </svg> <script> require(['jquery-1', 'modernizr', 'childrens/logo/animated-cbeebies-logo'], function ($, Modernizr, logoAnimation) { var shouldAnimateLogo = Modernizr.svg && Modernizr.cssanimations; if (shouldAnimateLogo) { var logo = logoAnimation({id: '#large-menu-logo'}); $(document).ready(function () { setTimeout(logo.play, 800); }); } }); </script> </span><span class="menu__link-label">Home</span> </a> </li><!-- --><li class="menu__item menu__item--shows"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows" data-stats-interaction="navigation" data-stats-interaction-variant="shows"> <span class="menu__link-icon"></span><span class="menu__link-label">Shows</span> </a> </li><li class="menu__item menu__item--games"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/games" data-stats-interaction="navigation" data-stats-interaction-variant="games"> <span class="menu__link-icon"></span><span class="menu__link-label">Games</span> </a> </li><li class="menu__item menu__item--puzzles"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/puzzles" data-stats-interaction="navigation" data-stats-interaction-variant="puzzles"> <span class="menu__link-icon"></span><span class="menu__link-label">Puzzles & Quizzes</span> </a> </li><li class="menu__item menu__item--watch"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/watch" data-stats-interaction="navigation" data-stats-interaction-variant="watch"> <span class="menu__link-icon"></span><span class="menu__link-label">Watch & Sing</span> </a> </li><li class="menu__item menu__item--joinin"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/joinin" data-stats-interaction="navigation" data-stats-interaction-variant="joinin"> <span class="menu__link-icon"></span><span class="menu__link-label">Join In</span> </a> </li><li class="menu__item menu__item--makes menu__item--current"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes" data-stats-interaction="navigation" data-stats-interaction-variant="makes"> <span class="menu__link-icon"></span><span class="menu__link-label">Make & Colour</span> </a> </li><li class="menu__item menu__item--radio"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/radio" data-stats-interaction="navigation" data-stats-interaction-variant="radio"> <span class="menu__link-icon"></span><span class="menu__link-label">Radio</span> </a> </li><li class="menu__item menu__item--topics"> <a class="menu__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/topics" data-stats-interaction="navigation" data-stats-interaction-variant="topics"> <span class="menu__link-icon"></span><span class="menu__link-label">Topics</span> </a> </li> </ul> <div class="menu__search-bar menu__search-bar--open"> <form id="search-bar-in-menu" class="search-bar" role="search" action="//web.archive.org/web/20180202144621/https://search.bbc.co.uk/search" method="get" accept-charset="utf-8"> <label for="search-bar-input-in-menu" class="search-bar__label vh">Start your search here...</label> <input type="hidden" name="scope" value="cbeebies"> <div class="search-bar__input-area"> <input id="search-bar-input-in-menu" class="search-bar__input" type="text" name="q" placeholder="Start your search here..."> <button class="search-bar__clear" aria-label="Clear Search" type="button" data-stats-interaction="search_bar" data-stats-interaction-variant="clear" data-stats-interaction-action="button"> <i class="search-bar__clear-icon gelicon gelicon--no" aria-hidden="true"></i> </button> </div> <button aria-label="Search" class="search-bar__button"> <div class="search-bar__button-inner"> <span class="search-bar__button-image"></span> </div> </button> </form> <script> require(['jquery-1'], function ($) { function clearSearchOnClick() { var $searchBar = $('#search-bar-in-menu'); var $searchInput = $('#search-bar-input-in-menu'); var $clearButton = $searchBar.find('.search-bar__clear'); $clearButton.on('click', function () { $searchInput.val("").focus(); $clearButton.hide(); }); function hideOrShowClearButton() { var isEmpty = $searchInput.val() === ""; isEmpty ? $clearButton.hide() : $clearButton.show(); } hideOrShowClearButton(); $searchInput.on('keyup keypress blur change', hideOrShowClearButton); } function setNextPageIstatsLabelsOnFormSubmit() { var $searchForm = $('#search-bar-in-menu'); function canSetPerformanceCookies() { return window.bbccookies && window.bbccookies.cookiesEnabled() && window.bbccookies.readPolicy('performance'); } function setNextPageIstatsCookie(labels, domain) { var encodedLabels = $.map(labels, function(value, key) { return encodeURIComponent(key) + '=' + encodeURIComponent(value); }); var encodedLabelString = encodeURIComponent(encodedLabels.join('&')); document.cookie = 'sa_labels=' + encodedLabelString + '; domain=' + domain + '; path=/'; } var $searchButton = $searchForm.find('.search-bar__button'); function searchButtonIsActive() { return document.activeElement === $searchButton[0]; } $searchForm.submit(function () { if (canSetPerformanceCookies()) { var pageType = $(this).closest('[data-stats-page-type]').attr('data-stats-page-type'); var submitType = searchButtonIsActive() ? 'button' : 'submit'; var labels = { 'intlink_from_url': window.location.href, 'intlink_ts': new Date().getTime(), 'intlink_id': 'childrens-local-search-' + submitType, 'link_location': 'childrens-local-search-' + pageType }; setNextPageIstatsCookie(labels, 'bbc.co.uk'); } }); } clearSearchOnClick(); setNextPageIstatsLabelsOnFormSubmit(); }); </script> </div> <div class="menu__close-on-focus" tabindex="0"></div> </div> </div> </div> </nav> <div class="menu__search-bar menu__search-bar--below-menu"> <form id="search-bar-below-menu" class="search-bar" role="search" action="//web.archive.org/web/20180202144621/https://search.bbc.co.uk/search" method="get" accept-charset="utf-8"> <label for="search-bar-input-below-menu" class="search-bar__label vh">Start your search here...</label> <input type="hidden" name="scope" value="cbeebies"> <div class="search-bar__input-area"> <input id="search-bar-input-below-menu" class="search-bar__input" type="text" name="q" placeholder="Start your search here..."> <button class="search-bar__clear" aria-label="Clear Search" type="button" data-stats-interaction="search_bar" data-stats-interaction-variant="clear" data-stats-interaction-action="button"> <i class="search-bar__clear-icon gelicon gelicon--no" aria-hidden="true"></i> </button> </div> <button aria-label="Search" class="search-bar__button"> <div class="search-bar__button-inner"> <span class="search-bar__button-image"></span> </div> </button> </form> <script> require(['jquery-1'], function ($) { function clearSearchOnClick() { var $searchBar = $('#search-bar-below-menu'); var $searchInput = $('#search-bar-input-below-menu'); var $clearButton = $searchBar.find('.search-bar__clear'); $clearButton.on('click', function () { $searchInput.val("").focus(); $clearButton.hide(); }); function hideOrShowClearButton() { var isEmpty = $searchInput.val() === ""; isEmpty ? $clearButton.hide() : $clearButton.show(); } hideOrShowClearButton(); $searchInput.on('keyup keypress blur change', hideOrShowClearButton); } function setNextPageIstatsLabelsOnFormSubmit() { var $searchForm = $('#search-bar-below-menu'); function canSetPerformanceCookies() { return window.bbccookies && window.bbccookies.cookiesEnabled() && window.bbccookies.readPolicy('performance'); } function setNextPageIstatsCookie(labels, domain) { var encodedLabels = $.map(labels, function(value, key) { return encodeURIComponent(key) + '=' + encodeURIComponent(value); }); var encodedLabelString = encodeURIComponent(encodedLabels.join('&')); document.cookie = 'sa_labels=' + encodedLabelString + '; domain=' + domain + '; path=/'; } var $searchButton = $searchForm.find('.search-bar__button'); function searchButtonIsActive() { return document.activeElement === $searchButton[0]; } $searchForm.submit(function () { if (canSetPerformanceCookies()) { var pageType = $(this).closest('[data-stats-page-type]').attr('data-stats-page-type'); var submitType = searchButtonIsActive() ? 'button' : 'submit'; var labels = { 'intlink_from_url': window.location.href, 'intlink_ts': new Date().getTime(), 'intlink_id': 'childrens-local-search-' + submitType, 'link_location': 'childrens-local-search-' + pageType }; setNextPageIstatsCookie(labels, 'bbc.co.uk'); } }); } clearSearchOnClick(); setNextPageIstatsLabelsOnFormSubmit(); }); </script> </div> </div> <script> (function () { 'use strict'; var button = document.getElementById('menu-toggle'); var buttonTitle = document.getElementById('menu-toggle-title'); var menu = document.getElementById('menu'); var menuOverlay = document.querySelector('.menu__contents'); var menuOpen = false; function addEvent(name, el, fn) { if (el.addEventListener) el.addEventListener(name, fn, false); else if (el.attachEvent) el.attachEvent('on' + name, fn); } function removeClass(el, name) { el.className = el.className.replace(new RegExp('(?:^|\\s)' + name + '(?!\\S)'), ''); } function setText(el, text) { if (el.textContent) { el.textContent = text; } else { el.innerText = text; } } function toggleMenuOpenAndClose(e) { e.preventDefault(); menuOpen = !menuOpen; if (menuOpen) { removeClass(menu, 'menu--closed'); menu.className += ' menu--open'; setText(buttonTitle, 'Close'); setTimeout(function () { button.setAttribute('data-stats-interaction-variant', 'close'); }, 10); } else { removeClass(menu, 'menu--open'); menu.className += ' menu--closed'; setText(buttonTitle, 'Menu'); setTimeout(function () { button.setAttribute('data-stats-interaction-variant', 'open'); }, 10); } } function findElements(selector) { var elements = document.querySelectorAll(selector); return Array.prototype.slice.call(elements); } var searchBars = findElements('.search-bar__input'); function searchInputCopyText(e) { var text = e.target.value; searchBars.forEach(function(searchBar) { searchBar.value = text; if ("createEvent" in document) { var evt = document.createEvent("HTMLEvents"); evt.initEvent("change", false, true); searchBar.dispatchEvent(evt); } }) } addEvent('click', button, toggleMenuOpenAndClose); if (menuOverlay) { addEvent('click', menuOverlay, function (e) { var clickedOnEmptySpace = e.target === menuOverlay; if (clickedOnEmptySpace) { toggleMenuOpenAndClose(e); } }); } var hiddenElementAfterSearchInMenu = document.querySelector('.menu__close-on-focus'); addEvent('focus', hiddenElementAfterSearchInMenu, function (e) { var menuToggle = document.querySelector('.menu__toggle'); toggleMenuOpenAndClose(e); menuToggle.focus(); }); searchBars.forEach(function(searchBar) { addEvent('blur', searchBar, searchInputCopyText); }); })(); </script> <script> (function () { var menu = document.getElementById('menu'); var childrensWrapper = document.querySelector('.childrens-wrapper'); var anchorOffsetClass = 'childrens-wrapper--anchor-offset'; function currentVerticalScroll() { return document.documentElement.scrollTop || document.body.scrollTop; } function setupMenuStickyness() { var stuckClass = 'menu--stuck'; function stickingPoint() { return childrensWrapper.offsetTop; } function hasScrolledPastStickingPoint() { return currentVerticalScroll() >= stickingPoint(); } function calculateMainContentHeight() { var viewportWidth = document.documentElement.clientWidth; var mediumBreakpoint = 600; var maxContentHeight = 468; var contentHeight; if (viewportWidth < mediumBreakpoint) { contentHeight = Math.floor(viewportWidth / 16 * 9); } else { contentHeight = Math.floor((viewportWidth - 64) / 16 * 9); } return contentHeight > maxContentHeight ? maxContentHeight : contentHeight; } function hasEnoughSpaceForMainContent() { var viewportHeight = document.documentElement.clientHeight; var menuHeight = menu.offsetHeight; return viewportHeight > (menuHeight + calculateMainContentHeight()); } function stickElement(elem) { elem.classList.add(stuckClass); } function unstickElement(elem) { elem.classList.remove(stuckClass); } function applyAnchorOffsets() { childrensWrapper.classList.add(anchorOffsetClass); } function unapplyAnchorOffsets() { childrensWrapper.classList.remove(anchorOffsetClass); } function stickOrUnstickMenu() { var menuIsStuck = menu.classList.contains(stuckClass); var menuIsOpen = menu.classList.contains('menu--open'); var isSpaceForStickyNav = (hasEnoughSpaceForMainContent() || menuIsOpen); //If the menu is open then assume there is enough space for sticky nav if (hasScrolledPastStickingPoint() && isSpaceForStickyNav) { if (!menuIsStuck && !menuIsOpen) { stickElement(menu); } } else { if (menuIsStuck) { unstickElement(menu); } } } function applyOrUnapplyAnchorOffsets() { if (hasEnoughSpaceForMainContent()) { applyAnchorOffsets(); } else { unapplyAnchorOffsets(); } } function throttleAndDebounce(fn) { var blockFunctionCall = false; return function () { if (blockFunctionCall) return; var self = this; blockFunctionCall = true; function run() { fn.apply(self); } run(); setTimeout(function () { blockFunctionCall = false; run(); }, 16); }; } window.addEventListener('resize', throttleAndDebounce(applyOrUnapplyAnchorOffsets), false); window.addEventListener('resize', throttleAndDebounce(stickOrUnstickMenu), false); window.addEventListener('scroll', throttleAndDebounce(stickOrUnstickMenu), false); window.addEventListener('touchmove', throttleAndDebounce(stickOrUnstickMenu), false); document.addEventListener('DOMContentLoaded', stickOrUnstickMenu, false); applyOrUnapplyAnchorOffsets(); } setupMenuStickyness(); })(); </script> <div class="content-page content-page--has-sidebar" role="main"> <div class="content-page__columns-wrapper"> <div class="content-page__columns"><!-- --><div class="content-page__column content-page__column--main"> <section class="content-page__section content-page__section--content-item content-item content-item--game content-item--makes"> <div class="content-item__frame"> <section class="content-item__section content-item__primary-content content-item__primary-content--game" itemtype="http://www.schema.org/MediaObject" itemscope> <meta itemprop="name" content="Something Special - Something Special Picture Maker"/> <meta itemprop="description" content="Get creative with Justin and Mr Tumble. Make super spotty Something Special pictures and even your very own Mr Tumble Star Badge."/> <meta itemprop="typicalAgeRange" content="0-12"/> <meta itemprop="datePublished" content="2018-01-22T10:00:00.000Z"/> <meta itemprop="url" content="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/cbeebies/makes/something-special-make-a-picture"/> <meta itemprop="isFamilyFriendly" content="true"/> <meta itemprop="image" content="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/720/1x/cbeebies/ss-map-cc.jpg"/> <meta itemprop="thumbnailUrl" content="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/720/1x/cbeebies/ss-map-cc.jpg"/> <div class="content-item__section-content"> <div id="game" class="game-embed" data-intention-id="map2-somethingspecial" data-stats-children-game-cms="isite"><div id="u7107637948356569"><div class="game-wrapper" data-reactid=".13yvnvpr0g" data-react-checksum="-1789368267"><svg width="64" height="64" viewbox="0 0 32 32" class="game-wrapper__loading-spinner" data-reactid=".13yvnvpr0g.0"><path d="M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z" data-reactid=".13yvnvpr0g.0.0"></path></svg><div class="game-wrapper__cta" data-reactid=".13yvnvpr0g.1"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-reactid=".13yvnvpr0g.1.0"/><button class="game-wrapper__cta-button" data-reactid=".13yvnvpr0g.1.1"><div class="game-wrapper__cta-icon" data-reactid=".13yvnvpr0g.1.1.0"><svg viewbox="0 0 32 32" data-reactid=".13yvnvpr0g.1.1.0.0"><path fill="#fff" d="M8 7.5c-1.9 0-3.5 1.6-3.5 3.5s1.6 3.5 3.5 3.5 3.5-1.6 3.5-3.5S9.9 7.5 8 7.5z" data-reactid=".13yvnvpr0g.1.1.0.0.0"></path><path fill="#fff" d="M24 3c-2 0-3.9.8-5.3 2h-5.4C11.9 3.8 10 3 8 3c-4.4 0-8 3.6-8 8v18h6l6-10h8l6 10h6V11c0-4.4-3.6-8-8-8zm0 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM8 17c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm12-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" data-reactid=".13yvnvpr0g.1.1.0.0.1"></path></svg></div></button></div></div></div></div> <script> require(['jquery-1', 'stats/stats'], function ($, stats) { var intentionId = 'gid-map2-somethingspecial'; var statsAttributes = { children_interaction_action: 'button', children_interaction_type: 'play', children_interaction_variant: intentionId }; var clicked = false; var $embed = $('#game'); $embed.on('click', '.game-wrapper__cta', function () { if (!clicked) { clicked = true; stats.recordIntention(intentionId); stats.recordInteraction($embed, "click", window.location.pathname, statsAttributes); } }); }); </script> <script> require(['jquery-1'], function ($) { var $embed = $('#game'); $embed.on('DOMNodeInserted', '.game-wrapper__iframe--fixedsize', function (e) { var width = $(e.target).width(); if($.isNumeric(width) && (width > 0)) { $('.content-page__section.content-item--game').css('max-width', (width + 32) + 'px'); } }); }); </script> <noscript> <div class="content-item__js-not-available js-not-available"> <h2 class="js-not-available__title">Oops you can't see this activity!</h2> <p class="js-not-available__text">To enjoy the CBeebies website at its best you will need to have JavaScript turned on.</p> <p class="js-not-available__text">For more help please visit the <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/grownups/faqs" class="js-not-available__link">CBeebies Grown-ups FAQ <span class="gel-icon gelicon--next"></span></a></p> </div> </noscript> </div> </section> <div class="content-item__section content-item__section--information"> <div class="content-item__section-content"> <div class="content-item-description"> <div class="button-list-container button-list-container--above-description"> <ul class="button-list"><!-- --><li class="button-list__item content-item__heart-button"> <div class="heart-button"> <div class="button button--heart-button"> <button class="heart-button__button heart-button__button--cbeebies button__link" aria-pressed="false" aria-live="polite" aria-labelledby="heart-button__labels" data-heart-button-state="unselected" data-resource-id="urn:bbc:isite2:file_id:cbeebies:content-something-special-make-a-picture"> <span class="button__inner"> <span class="heart-button__icons heart-button__s"> <i aria-hidden="true" class="gelicon gelicon--love-outline heart-button__gelicon heart-button__icon heart-button__icon--unselected heart-button__icon--remove"></i> <i aria-hidden="true" class="gelicon gelicon--load heart-button__gelicon heart-button__icon heart-button__icon--in-progress"></i> <i aria-hidden="true" class="gelicon gelicon--love heart-button__gelicon heart-button__icon heart-button__icon--selected"></i> </span> <span class="heart-button__labels"> <span class="heart-button__label heart-button__s heart-button__label--add" role="presentation">Love</span> <span class="heart-button__label heart-button__s heart-button__label--added" role="presentation">Loved</span> <span class="heart-button__label heart-button__s heart-button__label--remove" role="presentation">Unlove</span> </span> </span> </button> <span class="heart-button__count"> <span class="button__add-on-container"> <span class="button__add-on ">33</span> </span> </span> </div> <div class="heart-button__tooltip"></div> <script> require(['activity-button/heart-button'], function (HeartButton) { HeartButton('urn:bbc:isite2:file_id:cbeebies:content-something-special-make-a-picture', 'isite'); }); </script> </div> </li><!-- --></ul> </div> <div class="content-item-description__text-container"> <a class="content-item-description__brand-link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/something-special" title="Something Special" data-stats-interaction="show_oj" data-stats-interaction-variant="text_link"> <span class="content-item-description__brand-name">All Something Special</span> <span class="gelicon gelicon--next"></span> </a> <h1 class="content-item-description__heading"><span class="vh">Something Special - </span>Something Special Picture Maker</h1> <p class="content-item-description__description">Get creative with Justin and Mr Tumble. Make super spotty Something Special pictures and even your very own Mr Tumble Star Badge.</p> </div> </div> <div class="button-list-container button-list-container--below-description"> <ul class="button-list"><!-- --><li class="button-list__item content-item__heart-button"> <div class="heart-button"> <div class="button button--heart-button"> <button class="heart-button__button heart-button__button--cbeebies button__link" aria-pressed="false" aria-live="polite" aria-labelledby="heart-button__labels" data-heart-button-state="unselected" data-resource-id="urn:bbc:isite2:file_id:cbeebies:content-something-special-make-a-picture"> <span class="button__inner"> <span class="heart-button__icons heart-button__s"> <i aria-hidden="true" class="gelicon gelicon--love-outline heart-button__gelicon heart-button__icon heart-button__icon--unselected heart-button__icon--remove"></i> <i aria-hidden="true" class="gelicon gelicon--load heart-button__gelicon heart-button__icon heart-button__icon--in-progress"></i> <i aria-hidden="true" class="gelicon gelicon--love heart-button__gelicon heart-button__icon heart-button__icon--selected"></i> </span> <span class="heart-button__labels"> <span class="heart-button__label heart-button__s heart-button__label--add" role="presentation">Love</span> <span class="heart-button__label heart-button__s heart-button__label--added" role="presentation">Loved</span> <span class="heart-button__label heart-button__s heart-button__label--remove" role="presentation">Unlove</span> </span> </span> </button> <span class="heart-button__count"> <span class="button__add-on-container"> <span class="button__add-on ">33</span> </span> </span> </div> <div class="heart-button__tooltip"></div> <script> require(['activity-button/heart-button'], function (HeartButton) { HeartButton('urn:bbc:isite2:file_id:cbeebies:content-something-special-make-a-picture', 'isite'); }); </script> </div> </li><!-- --></ul> </div> </div> </div> <div class="content-item__section content-item__section--collection-oj"> <div class="content-item__section-content"> <div data-carousel class="carousel carousel--with-title carousel--carousel-at-mobile " data-carousel-at-mobile="true" data-carousel-changes-in-place="false" data-carousel-disable-selected-item="true"> <div class="carousel__title-container"> <a class="carousel__title-link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/curations/creative-play-for-kids" data-stats-interaction="collection" data-stats-interaction-variant="text_link"> <h3 class="carousel__title">Make a picture with no mess </h3> </a> </div> <div class="carousel__controls"> <div class="carousel__button carousel__button--prev button button--prev button--immersive "><!-- --><a class="button__link"><!-- --><span class="button__inner"> <span class="vh">previous items</span> <i class="gelicon gelicon--previous" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div><div class="carousel__button carousel__button--next button button--next button--immersive "><!-- --><a class="button__link"><!-- --><span class="button__inner"> <span class="vh">next items</span> <i class="gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> <div class="carousel__curtain carousel__curtain--right"></div> <div class="carousel__window"><!-- --><div class="carousel__panel"> <ul class="carousel__list"><!-- --><li class="carousel__item carousel__item--selected"> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/something-special-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card-disabled" data-stats-interaction-position="0" data-stats-interaction-action="button" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/ss-map-cc.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/ss-map-cc.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Make a Something Special Picture"> Make a Something Special Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/mister-maker-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="1" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/mister-maker-map-index.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/mister-maker-map-index.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Mister Maker Picture"> Mister Maker Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/biggleton-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="2" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/biggleton-make-a-picture.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/biggleton-make-a-picture.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Biggleton Make a Picture"> Biggleton Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/swashbuckle-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="3" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/swashbuckle-map-cc.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/swashbuckle-map-cc.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Swashbuckle Make a Picture"> Swashbuckle Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/pablo-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="4" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/pablo-make-a-picture-v3.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/pablo-make-a-picture-v3.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Pablo Make a Picture"> Pablo Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/justins-house-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="5" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/justins_house_content_card_v2.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/justins_house_content_card_v2.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Justin's House Make a Picture"> Justin's House Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/apple-tree-house-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="6" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/ath-map-cc.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/ath-map-cc.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Make an Apple Tree House picture"> Make an Apple Tree House picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/stargazing-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="7" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/stargazing_map_2017_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/stargazing_map_2017_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Make a Stargazing Picture"> Make a Stargazing Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/special-day-picture-maker?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="8" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/special_day_map_happy_birthday_CC.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/special_day_map_happy_birthday_CC.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Special Day Picture Maker"> Special Day Picture Maker </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/kazoops-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="9" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/kazoops-map-1024-576-v1.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/kazoops-map-1024-576-v1.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Kazoops! Make a Picture"> Kazoops! Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/andys-prehistoric-adventures-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="10" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/january_2017_update_map_prehistoric_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/january_2017_update_map_prehistoric_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Paint a Prehistoric Picture"> Paint a Prehistoric Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/octonauts-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="11" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/january_2017_update_map_octonauts_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/january_2017_update_map_octonauts_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Get Arty with the Octonauts"> Get Arty with the Octonauts </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/games/little-roy-wonder-doodler?collection=creative-play-for-kids" class="content-card content-card--games content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="12" data-site-section="games"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/january_2017_update_wonder_doodler_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/january_2017_update_wonder_doodler_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--games"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Try Drawing with Little Roy"> Try Drawing with Little Roy </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/the-lets-go-club-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="13" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/january_2017_update_map_tlgc_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/january_2017_update_map_tlgc_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="The Let's Go Club Make a Picture"> The Let's Go Club Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/my-pet-and-me-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="14" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/january_2017_update_map_my_pet_and_me_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/january_2017_update_map_my_pet_and_me_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Paint Yourself a Fantastic Pet Picture"> Paint Yourself a Fantastic Pet Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --><li class="carousel__item "> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/go-jetters-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="15" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/january_2017_update_map_go_jetters_content_card.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/january_2017_update_map_go_jetters_content_card.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Disco Drawing with the Go Jetters"> Disco Drawing with the Go Jetters </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><!-- --></ul> </div><!-- --></div> </div> </div> </div> </div> </section> <script> require(['jquery-1'], function ($) { var cover = $('.childrens-wrapper__cover'); var secondContentItemSection = $('.content-item__section').eq(1); function updateCoverHeight() { var height = secondContentItemSection.offset().top - cover.offset().top; if (height > 250) { cover.height(height); } } if (cover.length && secondContentItemSection.length) { updateCoverHeight(); var timer = null; $(window).on('orientationchange', updateCoverHeight); $(window).resize(function () { if (timer) { clearTimeout(timer); } timer = setTimeout(updateCoverHeight, 150); }); } var menuToggleButton = $('.menu__toggle'); menuToggleButton.click(function () { window.setTimeout(updateCoverHeight, 100); }); }); </script> <section class="onward-journeys content-page__section content-page__section--content-cards"> <div class="onward-journey__cards"> <ul class="content-list"> <li class="content-list__item" data-follows-panel-item data-resource-id=""> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/mr-tumbles-bow-tie-treats" class="content-card content-card--makes content-card--styled content-card--animated" data-stats-interaction="oj" data-stats-interaction-variant="content_card" data-stats-interaction-position="0" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/something-special-bow-tie.jpg" data-alt="Something Special - Mr Tumble鈥檚 Bow Tie Treats"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/something-special-bow-tie.jpg" alt="Something Special - Mr Tumble鈥檚 Bow Tie Treats"/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Mr Tumble鈥檚 Bow Tie Treats"> Mr Tumble鈥檚 Bow Tie Treats </p> <div class="content-card__details"> <p class="content-card__subtitle " aria-label="from Something Special">Something Special</p> <ul class="content-card__counts"><!-- --><li class="content-card__count content-card__count--loves"> <i class="gelicon gelicon--love-outline content-card__count-icon" aria-hidden="true"></i> <span class="content-card__love-count">23</span> </li><!-- --></ul> </div> </div> </a> </li><li class="content-list__item" data-follows-panel-item data-resource-id=""> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/lets-go-club-ice-cool-skaters" class="content-card content-card--makes content-card--styled content-card--animated" data-stats-interaction="oj" data-stats-interaction-variant="content_card" data-stats-interaction-position="1" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/tlgc-s3tx7-hero-ice-cube-skater.jpg" data-alt="The Let's Go Club - Ice Cool Skaters"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/tlgc-s3tx7-hero-ice-cube-skater.jpg" alt="The Let's Go Club - Ice Cool Skaters"/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Ice Cool Skaters"> Ice Cool Skaters </p> <div class="content-card__details"> <p class="content-card__subtitle " aria-label="from The Let's Go Club">The Let's Go Club</p> <ul class="content-card__counts"><!-- --><li class="content-card__count content-card__count--loves"> <i class="gelicon gelicon--love-outline content-card__count-icon" aria-hidden="true"></i> <span class="content-card__love-count">21</span> </li><!-- --></ul> </div> </div> </a> </li><li class="content-list__item" data-follows-panel-item data-resource-id=""> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/watch/something-special-the-goodbye-song" class="content-card content-card--watch content-card--styled content-card--animated" data-stats-interaction="oj" data-stats-interaction-variant="content_card" data-stats-interaction-position="2" data-site-section="watch"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/something-special-goodbye-song-2017-cc.jpg" data-alt="Something Special - The Goodbye Song"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/something-special-goodbye-song-2017-cc.jpg" alt="Something Special - The Goodbye Song"/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--watch"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="The Goodbye Song"> The Goodbye Song </p> <div class="content-card__details"> <p class="content-card__subtitle " aria-label="from Something Special">Something Special</p> <ul class="content-card__counts"><!-- --><li class="content-card__count content-card__count--loves"> <i class="gelicon gelicon--love-outline content-card__count-icon" aria-hidden="true"></i> <span class="content-card__love-count">10</span> </li><!-- --></ul> </div> </div> </a> </li> </ul> </div> </section> <script> require(['jquery-1', 'stats/stats', 'domReady!'], function ($, stats, domReady) { stats.recordEvent({ action_name: 'web_oj', action_type: 'view' }, $('.childrens-wrapper'), window.location.pathname); }); </script> <section class="content-page__section content-page__section--brandcards"> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/something-special" class="brandcard" data-stats-interaction="show_oj" data-stats-interaction-variant="panel"><!-- --><div class="brandcard__inner"><!-- --><div class="brandcard__image-container"> <div class="brandcard__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/something-special_onward_journey_image_bid.png" data-alt="Something Special"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/something-special_onward_journey_image_bid.png" alt="Something Special"/></noscript> </span> </div> </div><!-- --><div class="brandcard__text"> <span class="brandcard__text-inner"> <span class="brandcard__brand-prefix">All</span> <span class="brandcard__brand-name-container"> <span class="brandcard__brand-name">Something Special <span class="brandcard__link-icon gelicon gelicon--next"></span></span> </span> </span> </div><!-- --></div><!-- --></a> </section> </div><!-- --><div class="content-page__column content-page__column--side"> <div class="collection-list"> <div class="collection-list__title-container"> <a class="collection-list__title-link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/curations/creative-play-for-kids" data-stats-interaction="collection" data-stats-interaction-variant="text_link"> <h3 class="collection-list__title">Make a picture with no mess </h3> </a> </div> <ul class="collection-list__items"> <li class="collection-list__item"> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/mister-maker-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="0" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/mister-maker-map-index.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/mister-maker-map-index.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Mister Maker Picture"> Mister Maker Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><li class="collection-list__item"> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/biggleton-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="1" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/biggleton-make-a-picture.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/biggleton-make-a-picture.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Biggleton Make a Picture"> Biggleton Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><li class="collection-list__item"> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/swashbuckle-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="2" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/swashbuckle-map-cc.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/swashbuckle-map-cc.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Swashbuckle Make a Picture"> Swashbuckle Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li><li class="collection-list__item"> <a href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/makes/pablo-make-a-picture?collection=creative-play-for-kids" class="content-card content-card--makes content-card--minimal" data-stats-interaction="collection" data-stats-interaction-variant="content_card" data-stats-interaction-position="3" data-site-section="makes"> <div class="content-card__image-wrapper "> <div class="content-card__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/{width}xn/amz/cbeebies/pablo-make-a-picture-v3.jpg"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-ck/400xn/amz/cbeebies/pablo-make-a-picture-v3.jpg" alt=""/></noscript> </span> </div> <div class="content-card__flag flag flag--icon flag--makes"> <span class="flag__icon"></span> <span class="flag__text"></span> </div> </div><!-- --><div class="content-card__info"> <p class="content-card__title" aria-label="Pablo Make a Picture"> Pablo Make a Picture </p> <div class="content-card__details"> <ul class="content-card__counts"><!-- --></ul> </div> </div> </a> </li> </ul> <div class="collection-list__button button button--immersive "><!-- --><a class="button__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/curations/creative-play-for-kids" data-stats-interaction="collection" data-stats-interaction-variant="button"><!-- --><span class="button__inner"> <span class="button__text">View collection</span> <i class="button__icon-pre gelicon gelicon--next" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </div> </div> </div> <section class="brand-shelf-section"> <div class="brand-shelf-container window window--extra-wide"> <div id="brand-shelf" data-simple-carousel class="brand-shelf simple-carousel"> <div class="brand-shelf__main"> <div class="simple-carousel__controls"> <div class="brand-shelf__curtain brand-shelf__curtain--left"></div> <div class="brand-shelf__curtain brand-shelf__curtain--right"></div> <button class="brand-shelf__button brand-shelf__button--prev simple-carousel__button--prev"> <span class="vh">Previous items</span> <i class="gelicon gelicon--previous" aria-hidden="true"></i> </button> <button class="brand-shelf__button brand-shelf__button--next simple-carousel__button--next"> <span class="vh">Next items</span> <i class="gelicon gelicon--next" aria-hidden="true"></i> </button> </div> <div class="simple-carousel__window brand-shelf__window"> <div class="simple-carousel__panel"> <ul class="brand-shelf__list"><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/swashbuckle-online" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="0"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/swashbuckle-brand-shelf.png" data-alt="Gem in her Swashbuckle outfit."></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/swashbuckle-brand-shelf.png" alt="Gem in her Swashbuckle outfit."/></noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/go-jetters" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="1"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/go_jetters_s2_atoz.png" data-alt="Go Jetters Logo"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/go_jetters_s2_atoz.png" alt="Go Jetters Logo"/></noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/hey-duggee" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="2"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/hey_duggee_brand_shelf.png" data-alt="Hey Duggee."></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/hey_duggee_brand_shelf.png" alt="Hey Duggee."/></noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/twirlywoos" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="3"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/twirlywoos_brand_shelf.png"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/twirlywoos_brand_shelf.png" alt=""/></noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/numberblocks" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="4"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/numberblocks-egg-v4.png"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/numberblocks-egg-v4.png" alt=""/></noscript> </span> </a> </li><!-- --><li class="simple-carousel__item brand-shelf__item"> <a class="brand-shelf__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows/something-special" data-stats-interaction="brand_shelf" data-stats-interaction-variant="show" data-stats-interaction-position="5"> <span class="responsive-img responsive-img--5x6 brand-shelf__image"> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/something-special-brand-shelf.png"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/something-special-brand-shelf.png" alt=""/></noscript> </span> </a> </li><!-- --></ul> </div> </div> </div> </div> <div class="brand-shelf__all-shows-link button button--center button--shows "><!-- --><a class="button__link" href="/web/20180202144621/https://www.bbc.co.uk/cbeebies/shows" data-stats-interaction="brand_shelf" data-stats-interaction-variant="all_shows"><!-- --><span class="button__inner"> <span class="button__text">All shows</span> <i class="button__icon-gel gelicon gelicon--next gelicon--trailing" aria-hidden="true"></i> </span><!-- --></a><!-- --><!-- --></div> </div> </section> <section class="channel-banner-section" data-channel-banner data-channel-banner-enable-close-persist="true" data-ng-class="{'channel-banner-section--hide' : isChannelBannerHidden}"> <script> (function () { var cookieCheckingEnabled = true; var channelBannerSection = document.querySelector(".channel-banner-section"); function hideChannelBannerIfCookieIsSet() { var channelBannerCookieName = 'ckps_cbeebies_channel_banner_hidden'; var hideCookieIsSet = document.cookie.indexOf(" " + channelBannerCookieName + "=true") > 0; if (hideCookieIsSet) { channelBannerSection.className += ' channel-banner-section--hide'; } } function showCloseButtonIfCookiesAreAllowed() { var cookiePolicy = window.bbccookies.readPolicy(); var personalisationAllowed = cookiePolicy.personalisation; if (personalisationAllowed) { showCloseButton(); } } function showCloseButton() { channelBannerSection.className += ' channel-banner-section--show-close'; } if (cookieCheckingEnabled) { hideChannelBannerIfCookieIsSet(); showCloseButtonIfCookiesAreAllowed(); } else { showCloseButton(); } })() </script> <div class="channel-banner-section__inner window window--extra-wide"> <div class="channel-banner"> <div class="channel-banner__inner"> <div class="channel-banner__title-bar"> <a class="channel-banner__logo" href="/web/20180202144621/https://www.bbc.co.uk/cbbc" data-istats-click="cross_channel_logo" data-stats-interaction="channel_banner" data-stats-interaction-variant="logo"> <img class="channel-banner__logo-image" alt="CBBC logo" src="https://web.archive.org/web/20180202144621im_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/images/channel-banner/logo.png"/> </a> <span class="channel-banner__title">Are you ready to try CBBC?</span> </div> <div class="channel-banner__main"> <ul class="channel-banner__list"> <li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20180202144621/https://www.bbc.co.uk/cbbc/shows/the-deep" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="0"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/the-deep-crossover-panel.png"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/the-deep-crossover-panel.png" alt=""/></noscript> </span> </span><!-- --> </a> </li><li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20180202144621/https://www.bbc.co.uk/cbbc/shows/shaun-the-sheep" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="1"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Shaun-the-sheep.png"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Shaun-the-sheep.png" alt=""/></noscript> </span> </span><!-- --> </a> </li><li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20180202144621/https://www.bbc.co.uk/cbbc/shows/danger-mouse" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="2"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Dm-crossover-panel2.png"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Dm-crossover-panel2.png" alt=""/></noscript> </span> </span><!-- --> </a> </li><li class="channel-banner__list-item"> <a class="channel-banner__link channel-banner-link" href="/web/20180202144621/https://www.bbc.co.uk/cbbc/shows/arthur" data-stats-interaction="channel_banner" data-stats-interaction-variant="show" data-stats-interaction-position="3"> <span class="channel-banner-link__image"> <span class="responsive-img responsive-img--16x9 "> <span class="delayed-png-image-load" data-src="https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/{width}/{pixel_ratio}x/cbeebies/Arthur-crossover-panel.png" data-alt="Arthur"></span> <noscript><img src="https://web.archive.org/web/20180202144621im_/https://ichef.bbci.co.uk/childrens-responsive-ichef-live/r/400/1x/cbeebies/Arthur-crossover-panel.png" alt="Arthur"/></noscript> </span> </span><!-- --> </a> </li> </ul> <div class="channel-banner__footer"> <a class="channel-banner-close" data-stats-interaction="channel_banner" data-stats-interaction-variant="close" data-stats-interaction-action="button" data-channel-banner-close data-feedback-banner-open> <i aria-hidden="true" class="gelicon gelicon--no gelicon--leading"></i><span class="channel-banner-close__text">No thanks</span> </a> <span class="channel-banner__title">Are you ready to try CBBC?</span> </div> </div> </div> </div> </div> </section> <section class="feedback-banner-section" data-feedback-banner data-ng-class="{'feedback-banner-section--show' : !isFeedbackBannerHidden}"> <div class="feedback-banner-container window window--extra-wide"> <div class="feedback-banner"> <span class="feedback-banner__close" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="hide" data-stats-interaction-action="button" data-istats-click="cross_channel_hide"> <i aria-hidden="true" class="gelicon gelicon--no"></i> </span> <p class="feedback-banner__message">We'll hide these CBBC shows for 30 days.</p> <p class="feedback-banner__undo"><a class="feedback-banner__undo-link" data-feedback-banner-close data-channel-banner-open data-stats-interaction="channel_banner" data-stats-interaction-variant="undo" data-stats-interaction-action="button" data-istats-click="cross_channel_undo">Bring them back!</a></p> <p class="feedback-banner__question">Why did you hide them?</p> <ul class="feedback-banner__options"> <li class="feedback-banner__option" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="feedback" data-stats-interaction-position="0" data-stats-interaction-action="button" data-istats-pos="0" data-istats-click="cross_channel_feedback"> <span>Not familiar with CBBC</span> </li> <li class="feedback-banner__option" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="feedback" data-stats-interaction-position="1" data-stats-interaction-action="button" data-istats-pos="1" data-istats-click="cross_channel_feedback"> <span>Didn't like those shows</span> </li> <li class="feedback-banner__option" data-feedback-banner-close data-stats-interaction="channel_banner" data-stats-interaction-variant="feedback" data-stats-interaction-position="2" data-stats-interaction-action="button" data-istats-pos="2" data-istats-click="cross_channel_feedback"> <span>Too young for CBBC</span> </li> </ul> <div class="feedback-banner__image"> <img class="feedback-banner__image-inner" src="https://web.archive.org/web/20180202144621im_/https://childrens-web.files.bbci.co.uk/cbeebies/www/assets/fabc6c1/images/feedback/feedbackImage.png" alt=""/> </div> </div> </div> </section> </div> <div class="cf"></div> </div> <div id="heart-button-isite-tooltip"> <div class="tooltip heart-button__tooltip" data-active-tooltip=""> <span class="tooltip__pointer"></span> <div class="tooltip__inner"> <div class="tooltip__content tooltip__content--upsell"> <p class="tooltip__subtitle"> Love this? Sign in to let us know. </p> <div class="tooltip__idcta"> <p class="id4-cta"> <span class="id4-cta-size-medium id4-cta-color-blue id4-cta-medium-blue"> <a href="" class="id4-cta-signin id4-cta-button">Sign in</a> <span class="id4-cta-with"> with your BBC iD,</span> or <a href="" class="id4-cta-register">Register</a> </span> <script> require(['jquery-1', 'idcta/id-config'], function ($, idConfig) { $('.id4-cta-signin').each(function () { if (idConfig && idConfig.signin_url) { this.href = idConfig.signin_url; } }); $('.id4-cta-register').each(function () { if (idConfig && idConfig.register_url) { this.href = idConfig.register_url; } }); }); </script> </p> </div> </div> <div class="tooltip__content tooltip__content--error"> <p class="tooltip__title"> <span class="add-to__icons add-to__s"> <i aria-hidden="true" class="gelicon gelicon--alert add-to__gelicon add-to__icon"></i> </span>Something's gone wrong </p> <p class="tooltip__body tooltip__try-again">Please try again later</p> </div> <button href="#" class="tooltip__close add-to__tab" title="Close" aria-label="Close Tooltip"> <span class="tooltip__close-icon"> <i aria-hidden="true" class="gelicon gelicon--no"></i> </span> </button> </div> </div> </div> <script type="text/javascript"> require(['lib/Imager', 'lib/minpubsub'], function (Imager, pubsub) { Imager.transforms.pixelRatio = function (value) { return value; }; var availableWidths = [80, 160, 240, 320, 400, 480, 560, 640, 720, 800, 880, 960]; var imagerDefault = new Imager('.delayed-image-load', { availableWidths: availableWidths, availablePixelRatios: [1, 1.5] }); var imagerPng = new Imager('.delayed-png-image-load', { availableWidths: availableWidths, availablePixelRatios: [1] }); var imagerGif = new Imager('.delayed-gif-image-load', { availableWidths: availableWidths, availablePixelRatios: [1, 1.5], lazyload:true }); pubsub.subscribe('/showMore/updateImages', function () { imagerDefault.add('.delayed-image-load'); imagerPng.add('.delayed-png-image-load'); }); pubsub.subscribe('/imager/addPngImages', function (selector) { imagerPng.add(selector); }); pubsub.subscribe('/imager/addImages', function (selector) { imagerDefault.add(selector); }); }); require(['childrens/singlePlayingVideo'], function (singlePlayingVideo) { setTimeout(singlePlayingVideo.setup, 2000); }); require(['angular/app'], function () {}); </script> <script>Morph.toInit.ptrs.push(function() { Morph.ptrs = Morph.ptrs || {}; Morph.names = Morph.names || {}; var newPtrs = {}; Object.keys(newPtrs).forEach(function(key) { Morph.names[key] = newPtrs[key].name; Morph.ptrs[key] = newPtrs[key].ptrs; }); });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-debouncer@1.0.1"]={morph:"3.4.0"},function(e){function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){Morph.modules["bbc-morph-debouncer@1.0.1"]=t(1)},function(e,n,t){var o=t(2);e.exports=function(){function e(e,n){window.addEventListener?window.addEventListener(e,n,!1):document.documentElement.attachEvent("onpropertychange",function(t){t.propertyName===e&&n()})}function n(e){var n;document.createEvent?(n=document.createEvent("UIEvents"),n.initEvent(e,!1,!0),window.dispatchEvent(n)):(n=document.documentElement[e],n+=1)}function t(e){return setTimeout(function(){n(e+"-debounced")},i)}var r,c,i=50;o.isClientSide()&&(e("resize",function(){clearTimeout(r),r=t("resize")}),e("scroll",function(){clearTimeout(c),c=t("scroll")}))}()},function(e,n){e.exports=Morph}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-responsive-image@1.3.0"]={"bbc-morph-debouncer":"1.0.1",morph:"3.5.0",react:"0.14.7"},function(t){function e(r){if(i[r])return i[r].exports;var s=i[r]={exports:{},id:r,loaded:!1};return t[r].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){Morph.modules["bbc-morph-responsive-image@1.3.0"]=i(1)},function(t,e,i){i(2);var r=i(3),s=[64,80,96,128,160,240,320,400,480,512,624,704,800,912,960,1024,1056,1104,1152,1200,1248,1440,1600,1680];t.exports=r.createClass({displayName:"ResponsiveImage",propTypes:{src:r.PropTypes.string.isRequired,alt:r.PropTypes.string,className:r.PropTypes.string,width:r.PropTypes.number,availableWidths:r.PropTypes.arrayOf(r.PropTypes.number),delayed:r.PropTypes.bool,keepAspectRatio:r.PropTypes.string,aspectRatioStartPoint:r.PropTypes.number},getDefaultProps:function(){return{width:320,height:180,delayed:!1,background:!1,aspectRatioStartPoint:!1}},getInitialState:function(){var t=this.getClosestGreaterWidth(this.props.width);return{delayed:this.props.delayed,width:t,height:this.calcHeight(this.props.width),background:this.props.background,ratioStartPoint:this.isWidthAboveRatioStartPoint(t)}},componentWillUnmount:function(){window.removeEventListener&&(window.removeEventListener("resize-debounced",this.state.resizeHandler),window.removeEventListener("orientationchange",this.state.resizeHandler),this.props.triggerResizeOnClick&&window.removeEventListener("click",this.state.resizeHandler))},componentDidMount:function(){var t=function(){var t=this.getClosestGreaterWidth(this.node.parentNode.clientWidth);this.setState({width:t,height:this.calcHeight(t)})}.bind(this);window.addEventListener&&(window.addEventListener("resize-debounced",t),window.addEventListener("orientationchange",t),this.props.triggerResizeOnClick&&window.addEventListener("click",t));var e=this.getClosestGreaterWidth(this.node.parentNode.clientWidth),i=this.calcHeight(e);this.setState({delayed:!1,width:e,height:i,resizeHandler:t})},hdpiEnabled:function(){return this.props.hasOwnProperty("hidpi")&&!0===this.props.hidpi&&window.devicePixelRatio>1},defaultInterpolator:function(t,e){var i="";return this.hdpiEnabled()&&(i="-hidpi"),t.replace(/{width}/g,e+i)},interpolate:function(t,e){return this.props.customInterpolator?this.props.customInterpolator(t,e):this.defaultInterpolator(t,e)},getClosestGreaterWidth:function(t){for(var e=this.props.availableWidths||s,i=0;i<e.length;i+=1){var r=e[i];if(r>=t)return r}return e[e.length-1]},calcHeight:function(t){var e=this.getRatio(this.props.keepAspectRatio);return Math.floor(t/e)},getRatio:function(t){var e=1;if("string"==typeof t){var i=/^(\d{1,2})\:(\d{1,2})/g,r=i.exec(t);r.length>0&&(e=r[1]/r[2])}return e},isWidthAboveRatioStartPoint:function(t){return"string"==typeof this.props.keepAspectRatio&&("number"==typeof this.props.aspectRatioStartPoint&&this.props.aspectRatioStartPoint<t||!1===this.props.aspectRatioStartPoint)},setNode:function(t){this.node=t},render:function(){var t,e,i,s=this.state.width;return i=this.isWidthAboveRatioStartPoint(s)?{maxHeight:this.state.height}:{},this.state.delayed?e=r.createElement("img",{ref:this.setNode,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}):this.state.background?(t={backgroundImage:"url("+this.interpolate(this.props.src,this.state.width)+")"},e=r.createElement("div",{ref:this.setNode,style:t,className:this.props.className})):e=r.createElement("img",{ref:this.setNode,src:this.interpolate(this.props.src,this.state.width),alt:this.props.alt,className:this.props.className,style:i}),e}})},function(t,e){t.exports=Morph.modules["bbc-morph-debouncer@1.0.1"]},function(t,e){t.exports=React}]);; });</script> <script>Morph.toInit.bundles.push(function() { Morph.versions["bbc-morph-childrens-games-view@0.6.16"]={"bbc-morph-games-data":"0.2.3","bbc-morph-responsive-image":"1.3.0","echo-client-js":"10.0.0","morph-container":"4.0.0","morph-require":"5.0.0",react:"0.14.7"},function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){Morph.modules["bbc-morph-childrens-games-view@0.6.16"]=n(1)},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=s(i),o=n(19),r=s(o),c=function(e){var t={uri:{data:"bbc-morph-games-data",game:e.game||e.gid,project:"childrensgames",baseUrl:"/childrens/assets/games"},requireSuccess:!0};return e.versionOverride&&(t.uri.versionOverride=e.versionOverride),e.viewNonPublished&&(t.uri.viewNonPublished=e.viewNonPublished),t};t.default=r.default.create(a.default,{data:function(e){return{data:c(e)}}}),e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),c=n(3),l=s(c),u=n(4),g=s(u),p=n(5),d=s(p),_=n(6),f=s(_),S=n(8),h=n(9),E=n(10),b=n(11),y=n(12),m=n(14),P=n(15),A=void 0,v=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.loadGameFromCta=n.loadGameFromCta.bind(n),n.state={showIframe:!1,showCta:n.showCta(),showSettings:!1,showErrorMessage:!1,loadingSpinnerEnabled:!0},n.equalsTrue(n.props.showFullscreen)&&P.selfTransitiveThenUpdate("fullscreen",n),n}return o(t,e),r(t,[{key:"showCta",value:function(){return this.equalsTrue(this.props.showCallToAction)}},{key:"equalsTrue",value:function(e){return"true"===e||!0===e}},{key:"isLegacyGame",value:function(){return this.equalsTrue(this.props.data.body.isLegacyGame)}},{key:"setUpWindowObject",value:function(){window.cage={gameId:this.props.data.body.id,gameDir:b.setOrigin(window,this.props.data.body.gameDir),exitGameUrl:this.props.exitGameUrl?this.props.exitGameUrl:"",embedVars:this.props.data.body.embedVars,gameContainerId:"game-holder",environment:window.Morph.config.pushEnv||"test",isFullScreen:h.isFullscreen(window,this.equalsTrue(this.props.showFullscreen))},this.isLegacyGame()&&(window.og=window.cage,window.og.gameContainerId="og-game-holder")}},{key:"setUpCookies",value:function(){window.bbccookies=n(16)}},{key:"setRequireConfig",value:function(){requirejs({paths:{Game:b.setOrigin(window,this.props.data.body.url),echo:"https://web.archive.org/web/20180202144621/https://static.bbci.co.uk/nkdata/echoclient/2.0.0/sharedmodules/echo"},waitSeconds:30,baseUrl:b.setOrigin(window,this.props.data.body.gameDir)})}},{key:"delayLoadingSpinnerRemoval",value:function(){var e=this;setTimeout(function(){e.setState({loadingSpinnerEnabled:!1})},1e4)}},{key:"requireAndInitGame",value:function(){var e=this;requirejs(["Game","echo"],function(t){t&&"function"==typeof t.init&&t.init(),e.delayLoadingSpinnerRemoval()},function(t){console.log(t),e.setState({showErrorMessage:!0,loadingSpinnerEnabled:!1})})}},{key:"loadGame",value:function(){var e=this;this.setUpCookies();var t=n(17);A=n(18)(window,t,function(t){e.setState(t)}),window.getGMI=A.getGMI,this.setRequireConfig(),this.requireAndInitGame()}},{key:"componentDidMount",value:function(){this.setUpWindowObject(),this.showCta()||this.loadGame()}},{key:"loadGameFromCta",value:function(){if(window.cage.isFullScreen)return this.loadGame(),void this.setState({showCta:!1});if(S.isMobile(window,screen)){var e=E.generate(window,this.props);m.openUrlAtWindowTop(window,e)}else this.setState({showIframe:!0}),this.delayLoadingSpinnerRemoval()}},{key:"renderCallToAction",value:function(){var e=this.props.data.body.heroImagePid;return l.default.createElement("div",{className:"game-wrapper__cta",onClick:this.loadGameFromCta},e&&l.default.createElement(f.default,{imagePid:e}),l.default.createElement(g.default,null))}},{key:"isFixedSize",value:function(){var e=this.props.data.body;return!this.equalsTrue(e.responsive)&&!(!e.width||!e.height)}},{key:"renderGameHolder",value:function(){var e=this,t=this.isLegacyGame()?"og-game-holder":"game-holder";return l.default.createElement("div",null,l.default.createElement("div",{id:t,className:"game-wrapper__game"}),this.state.showSettings&&l.default.createElement(y,{isMobile:S.isMobile(window,screen),gmi:this.state.gmi,gmiOptions:this.state.gmiOptions,closeSettingsView:function(){e.setState({showSettings:!1})},onSettingChanged:this.state.onSettingChanged,onSettingsClosed:this.state.onSettingsClosed}))}},{key:"renderIframe",value:function(){var e={src:E.generate(window,this.props),className:this.isFixedSize()?"game-wrapper__iframe--fixedsize":"game-wrapper__iframe",marginWidth:"0",marginHeight:"0"};return this.isFixedSize()&&(e.width=this.props.data.body.width,e.height=this.props.data.body.height),l.default.createElement("iframe",e)}},{key:"renderContent",value:function(){return 200!==this.props.data.meta.responseCode||!0===this.state.showErrorMessage?l.default.createElement("h1",{className:"game-wrapper__error-header"},"This content could not be found."):this.state.showIframe?this.renderIframe():this.state.showCta?this.renderCallToAction():this.renderGameHolder()}},{key:"getGameWrapperProps",value:function(){var e={className:"game-wrapper"};return this.isFixedSize()&&this.state.showIframe&&(e.className+=" game-wrapper--fixedsize",e.style={width:this.props.data.body.width,height:this.props.data.body.height}),e}},{key:"render",value:function(){return l.default.createElement("div",this.getGameWrapperProps(),this.state.loadingSpinnerEnabled&&l.default.createElement(d.default,null),this.renderContent())}}]),t}(l.default.Component);t.default=v,v.displayName="Childrens-Games-View__Game",v.propTypes={data:l.default.PropTypes.object.isRequired,game:l.default.PropTypes.string.isRequired,exitGameUrl:l.default.PropTypes.string,showCallToAction:l.default.PropTypes.oneOfType([l.default.PropTypes.string,l.default.PropTypes.bool])},e.exports=t.default},function(e,t){e.exports=React},function(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),r=n(3),c=function(e){return e&&e.__esModule?e:{default:e}}(r),l=function(e){function t(e){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),o(t,[{key:"render",value:function(){return c.default.createElement("button",{className:"game-wrapper__cta-button"},c.default.createElement("div",{className:"game-wrapper__cta-icon"},c.default.createElement("svg",{viewBox:"0 0 32 32"},c.default.createElement("path",{fill:"#fff",d:"M8 7.5c-1.9 0-3.5 1.6-3.5 3.5s1.6 3.5 3.5 3.5 3.5-1.6 3.5-3.5S9.9 7.5 8 7.5z"}),c.default.createElement("path",{fill:"#fff",d:"M24 3c-2 0-3.9.8-5.3 2h-5.4C11.9 3.8 10 3 8 3c-4.4 0-8 3.6-8 8v18h6l6-10h8l6 10h6V11c0-4.4-3.6-8-8-8zm0 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM8 17c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm12-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm4-4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))))}}]),t}(c.default.Component);t.default=l,l.displayName="Childrens-Games-View__Play-Icon",e.exports=t.default},function(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),r=n(3),c=function(e){return e&&e.__esModule?e:{default:e}}(r),l=function(e){function t(e){return s(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return a(t,e),o(t,[{key:"render",value:function(){return c.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 32 32",className:"game-wrapper__loading-spinner",ref:"loading"},c.default.createElement("path",{d:"M29.8 8l-3.5 2c1 1.8 1.6 3.8 1.6 6 0 6.6-5.4 12-12 12S4 22.6 4 16 9.4 4 16 4V0C7.2 0 0 7.2 0 16s7.2 16 16 16 16-7.2 16-16c0-2.9-.8-5.6-2.2-8z"}))}}]),t}(c.default.Component);t.default=l,l.displayName="Childrens-Games-View__Loading-Spinner",e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),c=n(3),l=s(c),u=n(7),g=s(u),p=function(e){function t(e){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return o(t,e),r(t,[{key:"customInterpolator",value:function(e,t){var n=Math.round(9*t/16),s=t+"x"+n;return e.replace(/{width-height}/g,s)}},{key:"render",value:function(){var e={src:"https://web.archive.org/web/20180202144621/https://ichef.bbci.co.uk/images/ic/{width-height}/"+this.props.imagePid+".jpg",customInterpolator:this.customInterpolator,aspectRatioStartPoint:1,chefSizes:[400,512,608,704,800],delayed:!0};return l.default.createElement(g.default,e)}}]),t}(l.default.Component);t.default=p,p.displayName="Childrens-Games-View__Hero-Image",p.propTypes={imagePid:l.default.PropTypes.string},e.exports=t.default},function(e,t){e.exports=Morph.modules["bbc-morph-responsive-image@1.3.0"]},function(e,t){"use strict";function n(e){return"msMaxTouchPoints"in e.navigator?e.navigator.msMaxTouchPoints>0:"ontouchstart"in e||"onmsgesturechange"in e}function s(e){return e.width+e.height<1160}function i(e,t){return n(e)||s(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=i},function(e,t){"use strict";function n(e,t){return e.top===e.self&&t}Object.defineProperty(t,"__esModule",{value:!0}),t.isFullscreen=n},function(e,t){"use strict";function n(e){return["versionOverride","viewNonPublished"].indexOf(e)>-1}function s(e,t){var s=Object.keys(t).filter(n).map(function(e){return e+"="+t[e]});return s.push("showFullscreen=true"),s.push("exitGameUrl="+encodeURIComponent(e)),s.join("&")}function i(e,t){if(!t.embedUrl)throw new Error("The morph prop 'embedUrl' has not been passed into the childrens-games-view");var n=t.game||t.gid,i=s(e.location.href,t),a=i?"?"+i:"";return decodeURIComponent(t.embedUrl)+n+a}Object.defineProperty(t,"__esModule",{value:!0}),t.generate=i},function(e,t){"use strict";function n(e,t){return(e.Morph.config.pushEnv?e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:""):"https://web.archive.org/web/20180202144621/https://www.bbc.co.uk")+t}Object.defineProperty(t,"__esModule",{value:!0}),t.setOrigin=n},function(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),r=n(3),c=function(e){return e&&e.__esModule?e:{default:e}}(r),l=n(13),u=function(e){function t(e){s(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setInitialState(e),n.keyIsPressed=!1,n.handleEscapeKeyDown=n.checkForEscape(),n}return a(t,e),o(t,[{key:"getStateFromGmi",value:function(e,t){return void 0!==e[t]?!0===e[t]:e.gameData&&void 0!==e.gameData[t]?!0===e.gameData[t]:void 0}},{key:"setInitialState",value:function(e){var t=this,n=e.gmi.getAllSettings();this.state={},this.initialState={},e.gmiOptions.settingsConfig&&e.gmiOptions.settingsConfig.pages&&e.gmiOptions.settingsConfig.pages.length&&e.gmiOptions.settingsConfig.pages.forEach(function(e){e.settings.forEach(function(e){var s=e.key.toLowerCase(),i="setting-"+s,a=t.getStateFromGmi(n,s);t.state[i]=a,t.initialState[s]=a})})}}]),o(t,[{key:"componentDidMount",value:function(){this.props.gmi.sendStatsEvent("game_click","settings"),document.addEventListener("keydown",this.handleEscapeKeyDown),this.refs["settings-title"].focus()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleEscapeKeyDown)}},{key:"getChangedSettings",value:function(){var e=[];return Object.keys(this.state).forEach(function(t){var n=t.match(/(setting-)(.*)/);if(n&&n.length){var s=n[2];this.state[t]!==this.initialState[s]&&e.push(s+":"+this.state[t])}},this),e.join(",")}},{key:"handleClose",value:function(e){var t=this.getChangedSettings();this.props.gmi.sendStatsEvent("game_click","exit_settings",{settings_changed:t||"none"}),e.closeSettingsView(),e.onSettingsClosed()}},{key:"checkForEscape",value:function(){var e=this;return function(t){27===t.keyCode&&e.handleClose(e.props)}}},{key:"interactWithGmi",value:function(e,t,n){"muted"===t?this.props.gmi.setMuted(n):"audio"===t?this.props.gmi.setAudio(n):"subtitles"===t?this.props.gmi.setSubtitles(n):"motion"===t?this.props.gmi.setMotion(n):this.props.gmi.setGameData(t,n)}},{key:"handleToggle",value:function(e,t){var n="setting-"+t,s={},i=!this.state[n];s[n]=i,this.setState(s),this.interactWithGmi(e,t,i),e.onSettingChanged(t,i)}},{key:"renderCloseButton",value:function(e){var t=this;return c.default.createElement("button",{"aria-label":"close settings",className:"cage-settings__close-button",type:"button",onClick:function(){return t.handleClose(e)}},c.default.createElement("svg",{className:"cage-settings__close-icon",width:"48px",height:"48px",viewBox:"0 0 48 48"},c.default.createElement("path",{className:"cage-settings__close-icon-circle",d:"M24,48 L24,48 C10.7451429,48 0,37.2548571 0,24 L0,24 C0,10.7451429 10.7451429,0 24,0 L24,0 C37.2548571,0 48,10.7451429 48,24 L48,24 C48,37.2548571 37.2548571,48 24,48"}),c.default.createElement("polygon",{className:"cage-settings__close-icon-cross",fill:"#50505D",points:"26.0225143 23.9948571 33.1390857 31.1182857 31.1196571 33.1377143 23.9962286 26.0211429 16.8796571 33.1377143 14.8533714 31.1182857 21.9768 23.9948571 14.8533714 16.8782857 16.8796571 14.852 23.9962286 21.9754286 31.1196571 14.852 33.1390857 16.8782857"})))}},{key:"renderToggle",value:function(e,t){var n=this,s=!0===this.state["setting-"+t],i=s?"on":"off",a="cage-setting__toggle_button cage-setting__toggle_button--"+i,o=s?36:16;return c.default.createElement("div",{id:t+"-button",className:"cage-setting__toggle-container "+a,role:"checkbox",tabIndex:"0","aria-checked":s,"aria-label":t,onClick:function(){n.handleToggle(e,t)},onKeyDown:this.handleKeyDown.bind(this),onKeyUp:this.handleKeyUp.bind(this)},c.default.createElement("svg",{className:"cage-setting__toggle-icon",width:"52px",height:"32px",viewBox:"0 0 52 32"},c.default.createElement("rect",{className:"cage-setting__toggle-outline",fill:"#D8D8D8",x:"0",y:"0",width:"52",height:"32",rx:"16"}),c.default.createElement("ellipse",{className:"cage-setting__toggle-slider",fill:"#FFFFFF",cx:o,cy:"16.054902",rx:"14",ry:"14.054902"})))}},{key:"handleKeyDown",value:function(e){var t=32===e.keyCode,n=13===e.keyCode,s=9===e.keyCode;(t||n)&&!1===this.keyIsPressed?this.interactOnKeyPress(e):s&&this.limitTabbableElements(e)}},{key:"handleKeyUp",value:function(){this.keyIsPressed=!1}},{key:"interactOnKeyPress",value:function(e){e.preventDefault(),e.target.click(),this.keyIsPressed=!0}},{key:"limitTabbableElements",value:function(e){var t=document.getElementsByClassName("cage-settings__close-button"),n=document.getElementsByClassName("cage-setting__toggle-container"),s=[].slice.call(t).concat([].slice.call(n));l.limit(s,e,document.activeElement)}},{key:"renderSetting",value:function(e,t,n,s){var i=s+"-"+n,a=t.key.toLowerCase();return c.default.createElement("div",{key:i,className:"cage-setting"},c.default.createElement("label",{className:"cage-setting__info",htmlFor:a+"-button"},c.default.createElement("div",{className:"cage-setting__title"},t.title),c.default.createElement("div",{className:"cage-setting__description"},t.description)),c.default.createElement("div",{className:"cage-setting__toggle"},this.renderToggle(e,a)))}},{key:"renderSettingsList",value:function(e){var t=this;return e.gmiOptions.settingsConfig.pages.map(function(n,s){var i=n.settings.map(function(n,i){return t.renderSetting(e,n,i,s)}),a=n+"-"+s;return c.default.createElement("div",{key:n+"-"+s},c.default.createElement("div",{className:"cage-settings__subheading",key:a+"-subheading"},n.title),i)})}},{key:"render",value:function(){var e="cage-settings"+(this.props.isMobile?" cage-settings--mobile":"");return c.default.createElement("div",{className:"cage-settings__wrapper",role:"dialog","aria-label":"settings screen open"},c.default.createElement("div",{className:e},c.default.createElement("div",{className:"cage-settings__title",tabIndex:"0",ref:"settings-title",onKeyDown:this.handleKeyDown.bind(this)},c.default.createElement("div",{className:"cage-settings__title-text"},"Settings"),this.renderCloseButton(this.props)),c.default.createElement("div",{className:"cage-settings__list"},c.default.createElement("form",null,this.renderSettingsList(this.props)))))}}]),t}(c.default.Component);t.default=u,u.displayName="Childrens-Games-View__Settings-Screen",u.propTypes={isMobile:c.default.PropTypes.bool.isRequired,gmi:c.default.PropTypes.object.isRequired,gmiOptions:c.default.PropTypes.object.isRequired,closeSettingsView:c.default.PropTypes.func.isRequired,onSettingsClosed:c.default.PropTypes.func.isRequired,onSettingChanged:c.default.PropTypes.func.isRequired},e.exports=t.default},function(e,t){"use strict";function n(e,t,n){var s=e[0],i=e[e.length-1],a=function(){return e.indexOf(n)>-1},o=function(){e[e.indexOf(n)+1].focus()},r=function(){e[e.indexOf(n)-1].focus()};t.preventDefault(),t.shiftKey?function(){n!==s&&a()?r():i.focus()}():function(){n!==i&&a()?o():s.focus()}()}Object.defineProperty(t,"__esModule",{value:!0}),t.limit=n},function(e,t){"use strict";function n(e,t){e.top.location=decodeURI(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.openUrlAtWindowTop=n},function(e,t){e.exports={transitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-childrens-games-view@0.6.16",e,t)},selfTransitive:function(e,t){return Morph.requireTransitiveWithCaller("bbc-morph-childrens-games-view@0.6.16",e,t,!0)},transitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-childrens-games-view@0.6.16",e,t)},selfTransitiveThenUpdate:function(e,t){return Morph.requireTransitiveWithCallerThenUpdate("bbc-morph-childrens-games-view@0.6.16",e,t,!0)}}},function(e,t){"use strict";!function(){function t(e,t,n){return window.orb.partialCookieOvenUrl+"."+e+"/"+t+"/"+n}function n(e,t){t&&t(new Error(e))}function s(e){var t=new XMLHttpRequest;return t.withCredentials=!0,t.onload=function(){e&&e(null,t.status)},t.onerror=function(s){n("Request to cross domain cookie service encountered an error with code"+t.status+". "+s,e)},t.onabort=function(){n("Request to cross domain cookie service was aborted.",e)},t.ontimeout=function(){n("Request to cross domain cookie service timed out.",e)},t}function i(e){return{com:"co.uk","co.uk":"com"}[e.match(/(co.uk|com)/)[0]]}function a(e,t,n){t=(t+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent),n=n||{};var s=e+"="+t;return s+=n.path?";path="+n.path:"",s+=n.domain?";domain="+n.domain:"",s+=n.expires?";expires="+n.expires.toUTCString():"",s+=n.secure?";secure":""}function o(e,t){if(void 0===e)return null;var n={};n.expires=new Date(0),t&&(n.domain=t.domain,n.path=t.path),document.cookie=a(e,"removed",n)}function r(e,t){var n=window.location.pathname.split("/");for(o(e,t);n.length;){var s=n.join("/");""===s&&(s="/"),o(e,{domain:t,path:s}),o(e,{domain:"."+t,path:s}),n.pop()}}function c(e){var t=window.location.hostname.split(".");for(o(e),r(e);t.length&&-1==="|co.uk|com|".indexOf("|"+t.join(".")+"|");){if(t.length){var n=t.join(".");o(e,{domain:n}),r(e,n)}t.shift()}}function l(e){var t=JSON.stringify(e);if(void 0!==b[t])return b[t];var n="";for(var s in e)e.hasOwnProperty(s)&&y[s]&&!0===e[s]&&(n+=(n?"|":"")+y[s]);return b[t]=new RegExp("^("+(n||".*")+")$","i"),b[t]}function u(){var e=new RegExp("(?:^|; ?)"+h+"=(\\d)(\\d)(\\d)($|;)"),t=document.cookie.match(e);return t?{ads:"1"===t[1],personalisation:"1"===t[2],performance:"1"===t[3],necessary:!0}:E}function g(){var e=new Date;return e.setYear(e.getFullYear()+1),e}function p(e,t,n){var s=g(),i=""+(e.ads?1:0)+(e.personalisation?1:0)+(e.performance?1:0),a=f._getCurrentDomain();f.set(h,i,{domain:a,path:"/",expires:s,crossDomainEnabled:t},n);var o=new Date(s.getTime());return o.setMonth(o.getMonth()+1),f.set(S,s.getTime(),{domain:a,path:"/",expires:o}),e}function d(e){var t=(""+e).match(/^([^=]+)(?==)/);return t&&t.length?t[0]:""}function _(e){return e=e.replace(/[^#$&+\^`|]/g,encodeURIComponent),e=e.replace(/\(/g,"%28").replace(/\)/g,"%29")}var f=e.exports={};f.POLICY_REFRESH_DATE_MILLIS=new Date(2015,4,21,0,0,0,0).getTime();var S="ckns_policy_exp",h="ckns_policy",E={ads:!0,personalisation:!0,performance:!0,necessary:!0},b={},y={personalisation:"ckps_.+|X-AB-iplayer-.+|ACTVTYMKR|BBC_EXAMPLE_COOKIE|BBCIplayer|BBCiPlayerM|BBCIplayerSession|BBCMediaselector|BBCPostcoder|bbctravel|CGISESSID|ed|food-view|forceDesktop|h4|IMRID|locserv|MyLang|myloc|NTABS|ttduserPrefs|V5|WEATHER|BBCScienceDiscoveryPlaylist_.+|bitratePref|correctAnswerCount|genreCookie|highestQuestionScore|incorrectAnswerCount|longestStreak|MSCSProfile|programmes-oap-expanded|quickestAnswer|score|servicePanel|slowestAnswer|totalTimeForAllFormatted|v|BBCwords|score|correctAnswerCount|highestQuestionScore|hploc|BGUID|BBCWEACITY|mstouch|myway|BBCNewsCustomisation|cbbc_anim|cbeebies_snd|bbcsr_usersx|cbeebies_rd|BBC-Latest_Blogs|zh-enc|pref_loc|m|bbcEmp.+|recs-.+|_lvd2|_lvs2|tick|_fcap_CAM1|_rcc2",performance:"ckpf_.+|BBCLiveStatsClick|id|_em_.+|cookies_enabled|mbox|mbox-admin|mc_.+|omniture_unique|s_.+|sc_.+|adpolicyAdDisplayFrequency|s1|ns_session|ns_cookietest|ns_ux|NO-SA|tr_pr1|gvsurvey|bbcsurvey|si_v|sa_labels|obuid|mm_.+|mmid|mmcore.+|mmpa.+",ads:"ckad_.+|rsi_segs|c",necessary:"ckns_.+|BBC-UID|blq\\.dPref|SSO2-UID|BBC-H2-User|rmRpDetectReal|bbcComSurvey|IDENTITY_ENV|IDENTITY|IDENTITY-HTTPS|IDENTITY_SESSION|BBCCOMMENTSMODULESESSID|bbcBump.+|IVOTE_VOTE_HISTORY|pulse|BBCPG|BBCPGstat|ecos\\.dt"};f.cookieOvenRequest=function(e,t,n){try{e.open("GET",t,!0),e.send()}catch(e){n&&n(e)}},f.cookieOvenClient=function(e,n,a,o){if("withCredentials"in new XMLHttpRequest){var r=[h];try{if(!a)throw new Error("Cannot make request to cross domain cookie service when domain is not set.");if(r.indexOf(e)<=-1)throw new Error("Cookie name is not in the whitelist accepted by the cross domain cookie service.");var c=i(a),l=s(o),u=t(c,e,n);f.cookieOvenRequest(l,u,o)}catch(e){o&&o(e)}}else o(new Error("Cannot make request to cross domain cookie service as this browser does not support XmlHttpRequest with credentials."))},f.set=function(e,t,n,s){var i,o;if(void 0!==t){i=_(e),o=a(i,t,n);var r=n&&n.crossDomainEnabled;f.isAllowed(i)&&r&&f.cookieOvenClient(e,t,n.domain,s)}else i=d(e),o=e;f.isAllowed(i)&&(document.cookie=o)},f.isAllowed=function(e){var t,n;return t=f.readPolicy(),n=l(t),n.test(e)},f.readPolicy=function(e){var t=u();return e?t[e]:t},f.analyticsPolicyString=function(){var e=u();return"ad"+e.ads+"ps"+e.personalisation+"pf"+e.performance},f.get=function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:document.cookie},f.isCookiePolicySet=function(){return null!==f.get(h)},f.setDefaultCookiesSingleDomain=function(){p(E,!1)},f._setPolicy=function(e,t,n,s){var i=f.readPolicy();i[e]=!!t,p(i,!n,s)},f.cookiesEnabled=function(){var e="ckns_cookietest"+Math.floor(1e5*Math.random());return this.set(e,"1"),!!this.get(e)&&(this.delete(e),!0)},f.delete=function(e,t){e=_(e),o(e,t)},f.del=f.delete,f._crunch=function(){c("");for(var e=document.cookie.split(";"),t=0;t<e.length;t+=1){var n=e[t].split("="),s=n[0].trim();this.isAllowed(s)||c(s)}},f._getCurrentDomain=function(){try{return window.location.hostname.toLowerCase().match(/.*(bbc\.co\.uk|bbc\.com)\/*/)[1]}catch(e){return}},f._getPolicy=f.readPolicy,String.prototype.trim||function(){var e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(e,"")}}(),f._crunch(),function(e,t){var n=!1,s=!0,i=e.document,a=i.documentElement,o=i.addEventListener,r=o?"addEventListener":"attachEvent",c=o?"removeEventListener":"detachEvent",l=o?"":"on",u=function s(a){"readystatechange"===a.type&&"complete"!==i.readyState||(("load"===a.type?e:i)[c](l+a.type,s,!1),!n&&(n=!0)&&t.call(e,a.type||a))};if("complete"===i.readyState)t.call(e,"lazy");else{if(!o&&a.doScroll){try{s=!e.frameElement}catch(e){}s&&function e(){try{a.doScroll("left")}catch(t){return void setTimeout(e,50)}u("poll")}()}i[r](l+"DOMContentLoaded",u,!1),i[r](l+"readystatechange",u,!1),e[r](l+"load",u,!1)}}(window,function(){f._crunch()}),window.addEventListener?window.addEventListener("beforeunload",function(){f._crunch()},!1):window.attachEvent?window.attachEvent("onbeforeunload",function(){f._crunch()}):window.onbeforeunload=function(){f._crunch()}}()},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=31)}([function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e,t,n,s){var i={};return i[a.COMSCORE_CUSTOMER_ID]=e,i[a.COMSCORE_SITE]=t,i[a.COMSCORE_HOST]=n,i[a.SSC_HOSTNAME]=s,i}function s(e){return t(o.PUBLIC_SERVICE,e,"sa.bbc.co.uk",".co.uk")}function i(e,n){return t(e,n,"scorecardresearch.com",".com")}var a=n(3),o={PUBLIC_SERVICE:"16060501",GNL:"19293874",WORLD_SERVICE:"19999701",WORLDWIDE_FEATURES:"19774467",STORE_NONCOMMERCIAL:"19774474",STORE_COMMERCIAL:"19774472",AFFILIATES_ACCEPTANCE:"18897612",BRITBOX:"23239715",BRITBOX_ACCEPTANCE:"18897612"},r={};return r.PUBLIC_SERVICE=s("bbc"),r.PUBLIC_SERVICE_STAGE=s("stage"),r.PUBLIC_SERVICE_TEST=s("test"),r.PUBLIC_SERVICE_INT=s("int"),r.PUBLIC_SERVICE_INTRANET=s("intranet"),r.GNL=i(o.GNL,"bbc"),r.GNL_ACCEPTANCE=i(o.AFFILIATES_ACCEPTANCE,"gnl-test"),r.WORLD_SERVICE=i(o.WORLD_SERVICE,"bbc"),r.WORLD_SERVICE_ACCEPTANCE=i(o.AFFILIATES_ACCEPTANCE,"ws-test"),r.WORLDWIDE_FEATURES=i(o.WORLDWIDE_FEATURES,"bbc"),r.WORLDWIDE_FEATURES_ACCEPTANCE=i(o.AFFILIATES_ACCEPTANCE,"features-test"),r.STORE_NONCOMMERCIAL=i(o.STORE_NONCOMMERCIAL,"bbc"),r.STORE_COMMERCIAL=i(o.STORE_COMMERCIAL,"bbc"),r.BRITBOX_ACCEPTANCE=i(o.BRITBOX_ACCEPTANCE,"bbc-global-test"),r.BRITBOX=i(o.BRITBOX,"bbc"),{ApplicationType:{WEB:"web",MOBILE_WEB:"mobile-web",RESPONSIVE:"responsive",MOBILE_APP:"mobile-app",BIGSCREEN_HTML:"bigscreen-html",BIGSCREEN_FLASH:"bigscreen-flash",BIGSCREEN_APP:"bigscreen-app",BIGSCREEN_CAST:"bigscreen-cast",DESKTOP_APP:"desktop-app"},WindowState:{FULL:"full",NORMAL:"norm",MINIMISED:"min",MAXIMISED:"max",PICTUREINPICTURE:"picture-in-picture"},MediaIdType:{VERSION:"version",CLIP:"clip",EPISODE:"episode",SERVICE:"service",VPID:"vpid",NONPIPSCONTENTID:"nonpipscontentid"},AvType:{AUDIO:"audio",VIDEO:"video"},RetrievalType:{STREAM:"stream",DOWNLOAD:"download"},Form:{LONG:"long",SHORT:"short"},PIPsType:{CLIP:"clip",EPISODE:"ep"},MediaConsumptionMode:{ON_DEMAND:"ondemand",LIVE:"live",DOWNLOAD:"download"},EchoScheduleMode:{ON:"on",OFF:"off"},EchoCacheMode:{OFFLINE:"offline",ALL:"all"},ManagedLabels:{EVENT_MASTER_BRAND:"event_master_brand",BBC_SITE:"bbc_site",IPLAYER_STATE:"iplayer_state",STORE_ED_TYPE:"store_ed_type",IPLAYER_AVAIL:"iplayer_avail",STORE_REFERRAL:"store_referral",BBC_HASHED_ID:"bbc_hid"},ReportingProfiles:r,EssError:{STATUS_CODE:"status_code",TIMEOUT:"timeout",JSON:"json",RUNTIME:"runtime_error"}}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e){var n={};for(var s in e)try{e[s].constructor===Object?n[s]=t(e[s]):n[s]=e[s]}catch(t){n[s]=e[s]}return n}function s(e,n,i){var a=i?e:t(e);for(var o in n)try{n[o].constructor===Object?a[o]=s(a[o],n[o]):a[o]=n[o]}catch(e){a[o]=n[o]}return a}function i(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return!0;return!1}function a(e,n){for(var i=(n?t(e):e)||{},a=arguments,o=2,r=a.length;o<r;o++)"object"==typeof a[o]?s(i,a[o],!0):i[a[o]]=a[++o];return i} function o(e,t,n){return n?a(e,!0,t,n):a(e,!0,t)}function r(e,t,n){return e||(n?u.warn("AssertionFailed: "+t):u.error("AssertionFailed: "+t)),e}function c(e,t,n){return r(i(e,t),n)}function l(e){if("string"==typeof e)return e=String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}var u=n(2);return{clone:t,combineObjects:s,addKV:o,containsValue:i,extend:a,assert:r,assertContainsValue:c,trim:l}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e,t){"object"==typeof console&&"function"==typeof console[e]&&console[e](t)}function n(){o=!0}function s(){o=!1}function i(e){o&&t("log",e)}function a(e){if(o)throw new Error("ECHO_DEBUG: "+e)}var o=!1;return{enable:n,disable:s,info:i,warn:i,error:a}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(){"use strict";return{ECHO_ENABLED:"enabled",ECHO_AUTO_START:"auto_start",ECHO_TRACE:"trace",ECHO_DEVICE_ID:"device_id",REPORTING_PROFILE:"reporting_profile",ECHO_CACHE_MODE:"cache_mode",ECHO_NAME:"lib_name",ECHO_VERSION:"lib_version",USE_SSC:"use_ssc",SSC_HOSTNAME:"ssc_hostname",COMSCORE_ENABLED:"comscore.enabled",COMSCORE_HOST:"comscore.host",COMSCORE_SITE:"comscore.site",COMSCORE_KEEPALIVE_INTERVAL:"comscore.keep_alive_interval",COMSCORE_CUSTOMER_ID:"comscore.customer_id",COMSCORE_PUBLISHER_SECRET:"comscore.publisher_secret",TEST_SERVICE_ENABLED:"test.enabled",TEST_SERVICE_URL:"test.url",BARB_ENABLED:"barb.enabled",BARB_SITE_CODE:"barb.site_code",BARB_DEBUG:"barb.debug",USE_ESS:"use_ess",ESS_HOSTNAME:"ess.hostname"}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){e.exports={BBC_APPLICATION_NAME:"app_name",BBC_APPLICATION_TYPE:"app_type",BBC_APPLICATION_VERSION:"app_version",BBC_COUNTER_NAME:"name",BBC_LANGUAGE:"language",DEVICE_ID:"ns_alias",COMSCORE_C1:"c1",COMSCORE_C7:"c7",BBC_MEASUREMENT_LIB_NAME:"ml_name",BBC_MEASUREMENT_LIB_VERSION:"ml_version",ECHO_TRACE:"trace",ECHO_EVENT_NAME:"echo_event",EVENT_TRIGGERED_BY_USER:"ns_st_ui",STREAMSENSE_CUSTOM_EVENT_TYPE:"ns_st_ev",USER_ACTION_TYPE:"action_type",USER_ACTION_NAME:"action_name",PLAYLIST_END:"ns_st_pe",REWIND_FF_RATE:"ffrw_rate",COMSCORE_SITE:"ns_site",COMSCORE_CUSTOMER:"c2",COMSCORE_ENDPOINT:"comscore_endpoint",PLAYER_NAME:"ns_st_mp",PLAYER_VERSION:"ns_st_mv",PLAYER_WINDOW_STATE:"ns_st_ws",PLAYER_VOLUME:"ns_st_vo",PLAYER_POPPED:"bbc_st_pop",PLAYER_SUBTITLED:"bbc_st_sub",PLAYLIST_NAME:"ns_st_pl",PLAYLIST_CLIP_COUNT:"ns_st_cp",PLAYLIST_LENGTH:"ns_st_ca",MEDIA_PID:"ns_st_ci",MEDIA_LENGTH:"ns_st_cl",MEDIA_BITRATE:"ns_st_br",MEDIA_STREAM_TYPE:"ns_st_ty",MEDIA_IS_LIVE:"ns_st_li",MEDIA_EPISODE_ID:"episode_id",MEDIA_CLIP_ID:"clip_id",MEDIA_CLIP_NUMBER:"ns_st_cn",MEDIA_PART_NUMBER:"ns_st_pn",MEDIA_TOTAL_PARTS:"ns_st_tp",MEDIA_MEDIUM:"bbc_st_med",MEDIA_LIVE_OR_ONDEMAND:"bbc_st_lod",MEDIA_FORM:"bbc_st_mf",MEDIA_RETRIEVAL_TYPE:"bbc_st_ret",MEDIA_SCHEDULE_INDICATOR:"bbc_st_sch",MEDIA_CODEC:"bbc_st_co",MEDIA_CDN:"bbc_st_cdn",MEDIA_VERSION_ID:"version_id",MEDIA_SERVICE_ID:"service_id",MEDIA_NON_PIPS_CONTENT_ID:"non_pips_content_id",MEDIA_AMBIGUOUS_ID:"ambig_ci",MEDIA_TIMESTAMP:"bbc_st_live_ts",ESS_SUCCESS:"ess_success",ESS_ERROR:"ess_error",ESS_STATUS_CODE:"ess_status_code",APP_PLATFORM_NAME:"ns_ap_pn",APP_PLATFORM_RUNTIME:"ns_ap_pfm",APP_OS_VERSION:"ns_ap_pfv",APP_DEVICE_NAME:"ns_ap_device",APP_SCREEN_RESOLUTION:"ns_ap_res",APP_LANGUAGE:"ns_ap_lang",ENV_CHAR_SET:"ns_c",ENV_TITLE:"c8",ENV_URL:"c7",ENV_REFERRER:"c9",APP_NAME:"ns_ap_an",APP_VERSION:"ns_ap_ver",NO_COOKIES:"ns_nc",COOKIE_POLICY:"bbc_mc",BBC_ID_LOGGED_IN:"bbc_identity",WEB_SCREEN_RES:"screen_resolution",ESS_ENABLED:"ess_enabled",ESS_ENRICHED:"ess_enriched"}},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(){var e=window.screen||{},t=window.navigator||{},n=window.document||{};this._platformRuntimeEnvironment="html",this._platformOSVersion="5",this._screenResolution=(e.width||"-")+"x"+(e.height||"-"),this._language=t.language||"",this._platformName=t.platform||"",this._charset=n.characterSet||n.defaultCharset||"",this._title=n.title||"",this._url=n.URL||"",this._referrer=n.referrer||"",this._deviceName=null,this._httpGet=null,this._executeCrossDomainGet=null,this._getCookie=null,this._setCookie=null,this._setLocalStorageItem=null,this._getLocalStorageItem=null}var s=n(6),i=n(7),a=n(30);t._defaultHttpGet=a.httpGet,t._defaultGetCookie=i.getCookieValueByName,t.prototype.getPlatformName=function(){return this._platformName},t.prototype.getPlatformRuntimeEnvironment=function(){return this._platformRuntimeEnvironment},t.prototype.getPlatformOSVersion=function(){return this._platformOSVersion},t.prototype.getDeviceName=function(){return this._deviceName},t.prototype.getScreenResolution=function(){return this._screenResolution},t.prototype.getLanguage=function(){return this._language},t.prototype.getHttpGet=function(){return this._httpGet},t.prototype.setExecuteCrossDomainGet=function(e){this._executeCrossDomainGet=e},t.prototype.getExecuteCrossDomainGet=function(){return this._executeCrossDomainGet?this._executeCrossDomainGet:a.executeCrossDomainGet},t.prototype.getCookieGetter=function(){return this._getCookie},t.prototype.getCookieSetter=function(){return this._setCookie},t.prototype.getCharSet=function(){return this._charset},t.prototype.getTitle=function(){return this._title},t.prototype.getURL=function(){return this._url},t.prototype.getProtocol=function(){return 0!==this.getURL().toLowerCase().indexOf("http:",0)?"https:":"http:"},t.prototype.getReferrer=function(){return this._referrer},t.prototype.setSetLocalStorageItem=function(e){this._setLocalStorageItem=e},t.prototype.getSetLocalStorageItem=function(){return this._setLocalStorageItem},t.prototype.setGetLocalStorageItem=function(e){this._getLocalStorageItem=e},t.prototype.getGetLocalStorageItem=function(){return this._getLocalStorageItem},t.prototype.setPlatformName=function(e){return this._platformName=e,this},t.prototype.setPlatform=function(e,t){return this._platformRuntimeEnvironment=e,this._platformOSVersion=t,this},t.prototype.setDeviceName=function(e){return this._deviceName=e,this},t.prototype.setScreenResolution=function(e){return this._screenResolution=e,this},t.prototype.setLanguage=function(e){return this._language=s.cleanLanguage(e),this},t.prototype.setHttpGet=function(e){return this._httpGet=e,this},t.prototype.setCookieGetter=function(e){return this._getCookie=e,this},t.prototype.setCookieSetter=function(e){return this._setCookie=e,this},t.prototype.setCharSet=function(e){return this._charset=e,this},t.prototype.setTitle=function(e){return this._title=e,this},t.prototype.setURL=function(e){return this._url=e,this},t.prototype.setReferrer=function(e){return this._referrer=e,this};var o;t.setOrbCookies=function(e){return o=e,this},t.getOrbCookies=function(){return o},t.getOrbCookiesPolicy=function(){if(o&&"function"==typeof o.readPolicy)return o.readPolicy()};var r,c,l=!1,u=[];return t.setOrbIdCta=function(e){return r=e,this},t.getOrbIdCta=function(e){var t,n=function(e,t){e&&"function"==typeof e&&e(t)};if(void 0!==r)return void n(e,r);if(!1===c)return void n(e);u.push(e);var s=window.require;void 0===c&&s?!(c="function"==typeof s.defined&&s.defined("idcta/idcta-1"))&&s.s&&s.s.contexts&&s.s.contexts._&&s.s.contexts._.config&&s.s.contexts._.config.paths&&s.s.contexts._.config.paths.idcta&&(c=!0):c=!1,c&&!l?(l=!0,window.require(["idcta/idcta-1"],function(e){for(r=e,t=0;t<u.length;u++)u[t]&&"function"==typeof u[t]&&n(u[t],r)})):!1===c&&n(e)},t}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e){return h.hasOwnProperty(e)?h[e]:f.CUSTOM}function s(e){return e&&e.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/(^_+)|(_+$)/g,"")}function i(e){var t=s(e);return p.assert(e===t,'Label key can only contain: [a-z0-9_], and no consecutive "_"s or "_" at the begining or end, got "'+e+'". This will be sent as "'+t+'"',!0),t}function a(e){return s(e)}function o(e){return e&&e.toLowerCase().replace(/(^\s+)|(\s+$)/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-+)|(-+$)/g,"")}function r(e){return e&&e.replace(/(^\s+)|(\s+$)/g,"").replace(/\|/g,"!")}function c(e){var t=e&&e.toLowerCase().replace(/[^a-z0-9\.]+/g,"_").replace(/\.+/g,".").replace(/(^_+)|(_+$)/g,"")||"no.name.page";return e!==t&&(null!==e&&"string"==typeof e&&0!==e.replace(/ */,"").length||d.error("Countername must be a non-empty string"),e&&-1!==e.search(/-/)?d.warn('Submitted countername ("'+e+'") contains at least one "-". Dashes are not permitted but, for legacy reasons, "-" and "_" are equivalent in DAx. Echo converts dashes to underscores, so the countername will be sent as "'+t+'"'):d.warn('countername may only contain: [a-z0-9._], got "'+e+'". This will be cleaned up and sent as "'+t+'"')),-1===t.search(/\.page$/)&&(t+=".page"),t}function l(e,n){var s="",i=n,l=t(e);if(l===f.COUNTERNAME&&(n=c(n)),"number"==typeof n||"boolean"==typeof n)return n.toString();if("string"!=typeof n)return void d.error("Label must have number, boolean or string value");switch(l){case f.EVENT_MASTER_BRAND:s='Label value can only contain [0-9a-z], and no consecutive "_"s and no "_"s or whitespace at the start or end.',i=a(n);break;case f.STRICT:s='Strict Label values can only contain [ 0-9a-z-], and no consecutive "-"s and no "-"s or whitespace at the start or end.',i=o(n);break;case f.NO_CLEANSING:break;default:s="Custom Label value cannot contain whitespace at start or end or pipes (|).",i=r(n)}return s+='Got "'+n+'", will be replaced with "'+i+'"',p.assert(n===i,s,!0),i}function u(e){if("number"==typeof e||"boolean"==typeof e)return e.toString();var t=e&&e.replace(/(^\s*)|(\s*$)/g,"").replace(/[^0-9a-zA-Z._]+/g,"-").replace(/(^-)|(-$)/g,"")||"";return p.assert(e===t,'Language label value can only contain [0-9a-zA-Z._-], and no consecutive "-"s and no - at the start or end. Got "'+e+'", will be replaced with "'+t+'"',!0),t}function g(e){var t,n={};for(var s in e)t=i(s),n[t]=l(t,e[s]);return n}var p=n(1),d=n(2),_=n(0),f=n(28),S=["player_name","ns_st_ws","bbc_site","app_type","app_name","bbc_store_pf","bbc_store_ed","bbc_store_fr","bbc_store_src"],h={name:f.COUNTERNAME};h[_.ManagedLabels.EVENT_MASTER_BRAND]=f.EVENT_MASTER_BRAND;for(var E=0;E<S.length;E++)h[S[E]]=f.STRICT;return{cleanCounterName:c,cleanLabelKey:i,cleanLabelValue:l,cleanLanguage:u,cleanLabels:g}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(){"use strict";return{getCookieValueByName:function(e,t){var n=t||window,s=e+"=",i=n.document,a={};if(void 0===i||"string"!=typeof i.cookie)return null;a=i.cookie.split(";");for(var o=0,r=a.length;o<r;o++){var c=a[o];if(" "===c.charAt(0)&&(c=c.substring(1,c.length)),0===c.indexOf(s))return c.substring(s.length,c.length)}return null}}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){e.exports={NAME:"echo_js",VERSION:"9.5.0"}},function(e,t,n){var s;void 0!==(s=function(e){"use strict";var t=n(1),s=function(e,t){this.idType=e,this.validValueRegex=/^[a-z0-9A-Z_-]+$/,this.value=null,this.isSet=!1,this.isValid=!1,this.requiresValidation=t};return s.prototype.getIdType=function(){return this.idType},s.prototype.setValue=function(e){this.isSet=!0,null==e?this.isValid=!1:this.requiresValidation?this.isValid=this._validateValue(e):this.isValid=!0,t.assert(this.isValid,"MediaId: The value for "+this.idType+"Id is invalid",!0),this.value=e},s.prototype.getValue=function(){return this.value},s.prototype.isValueSet=function(){return this.isSet},s.prototype.isValueValid=function(){return this.isValid},s.prototype._validateValue=function(e){return"string"==typeof e&&this.validValueRegex.test(e)},s}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e){return e===a.AvType.AUDIO||e===a.AvType.VIDEO}function s(e){return e===u.ON_DEMAND||e===u.DOWNLOAD||e===u.LIVE}var i=n(9),a=n(0),o=n(1),r=n(4),c=n(6),l=n(2),u=a.MediaConsumptionMode,g=function(e,n){this.avType=t(e)?e:null,this.consumptionMode=s(n)?n:null,o.assert(this.avType,"Media: Invalid avType: "+this.avType,!0),o.assert(this.consumptionMode,"Media: Invalid consumptionMode: "+this.consumptionMode,!0),this.serviceIdObject=new i(a.MediaIdType.SERVICE,!0),this.versionIdObject=new i(a.MediaIdType.VERSION,!0),this.clipIdObject=new i(a.MediaIdType.CLIP,!0),this.episodeIdObject=new i(a.MediaIdType.EPISODE,!0),this.vpIdObject=new i(a.MediaIdType.VPID,!0),this.nonPipsContentIdObject=new i(a.MediaIdType.NONPIPSCONTENT,!1),this.length=0,this.bufferLength=0,this.supplier=null,this.mediaSet=null,this.transferFormat=null,this.scheduleMode=null,this.bitrate=0,this.codec=null,this.cdn=null,this.essEnrichedData=!1};return g.prototype.isEssEnriched=function(){return!0===this.essEnrichedData},g.prototype.setEssEnriched=function(e){this.essEnrichedData=e},g.prototype.getAvType=function(){return this.avType},g.prototype.getMediaConsumptionMode=function(){return this.consumptionMode},g.prototype.getClone=function(){var e=new g(this.avType,this.consumptionMode);return e.serviceIdObject=this.serviceIdObject,e.versionIdObject=this.versionIdObject,e.clipIdObject=this.clipIdObject,e.episodeIdObject=this.episodeIdObject,e.vpIdObject=this.vpIdObject,e.nonPipsContentIdObject=this.nonPipsContentIdObject,e.bufferLength=this.bufferLength,e.mediaSet=this.mediaSet,e.supplier=this.supplier,e.transferFormat=this.transferFormat,e.length=this.length,e.scheduleMode=this.scheduleMode,e.bitrate=this.bitrate,e.codec=this.codec,e.cdn=this.cdn,e.essEnrichedData=this.essEnrichedData,e},g.prototype.setVersionId=function(e){return this.versionIdObject.setValue(e),this},g.prototype.setClipId=function(e){return this.clipIdObject.setValue(e),this},g.prototype.setServiceId=function(e){return this.serviceIdObject.setValue(e),this},g.prototype.setEpisodeId=function(e){return this.episodeIdObject.setValue(e),this},g.prototype.setVpId=function(e){return this.vpIdObject.setValue(e),this},g.prototype.setNonPipsContentId=function(e){var t=c.cleanLabelValue(r.MEDIA_NON_PIPS_CONTENT_ID,e);return this.nonPipsContentIdObject.setValue(t),this},g.prototype.setSupplier=function(e){if(null!==e){var t=o.trim(e);0!==t.length&&(this.supplier=t)}return this},g.prototype.getSupplier=function(){return this.supplier},g.prototype.setMediaSet=function(e){if(null!=e){var t=o.trim(e);0!==t.length&&(this.mediaSet=t)}return this},g.prototype.getMediaSet=function(){return this.mediaSet},g.prototype.setTransferFormat=function(e){if(null!=e){var t=o.trim(e);0!==t.length&&(this.transferFormat=t)}return this},g.prototype.getTransferFormat=function(){return this.transferFormat},g.prototype.setLength=function(e){return void 0!==e&&null!==e&&(e=Math.floor(e)),(void 0===e||isNaN(e)||!isFinite(e)||e<0)&&(l.warn("Media: length must be an integer of 0 or greater. Echo will report as 0."),e=0),this.length=e,this},g.prototype.setBitrate=function(e){return e&&e>0?this.bitrate=e:l.warn("Invalid media bitrate: "+e),this},g.prototype.setCodec=function(e){return this.codec=c.cleanLabelValue(r.MEDIA_CODEC,e),this},g.prototype.setCDN=function(e){return this.cdn=c.cleanLabelValue(r.MEDIA_CDN,e),this},g.prototype.setScheduleMode=function(e){return e===a.EchoScheduleMode.ON||e===a.EchoScheduleMode.OFF?this.scheduleMode=e:(this.scheduleMode=null,l.warn("Media: Invalid scheduleMode: "+this.scheduleMode)),this},g.prototype.getVersionIdObject=function(){return this.versionIdObject},g.prototype.getClipIdObject=function(){return this.clipIdObject},g.prototype.getServiceIdObject=function(){return this.serviceIdObject},g.prototype.getEpisodeIdObject=function(){return this.episodeIdObject},g.prototype.getVpIdObject=function(){return this.vpIdObject},g.prototype.getNonPipsContentIdObject=function(){return this.nonPipsContentIdObject},g.prototype.getVersionId=function(){return this.versionIdObject.getValue()},g.prototype.getClipId=function(){return this.clipIdObject.getValue()},g.prototype.getServiceId=function(){return this.serviceIdObject.getValue()},g.prototype.getEpisodeId=function(){return this.episodeIdObject.getValue()},g.prototype.getVpId=function(){return this.vpIdObject.getValue()},g.prototype.getNonPipsContentId=function(){return this.nonPipsContentIdObject.getValue()},g.prototype.getLength=function(){return this.length},g.prototype.getScheduleMode=function(){return this.scheduleMode},g.prototype.getBitrate=function(){return this.bitrate},g.prototype.getCDN=function(){return this.cdn},g.prototype.getCodec=function(){return this.codec},g.prototype.getRetrievalType=function(){return null===this.consumptionMode?null:this.consumptionMode===u.DOWNLOAD?a.RetrievalType.DOWNLOAD:a.RetrievalType.STREAM},g.prototype.isOnDemand=function(){return this.consumptionMode===u.ON_DEMAND},g.prototype.isDownload=function(){return this.consumptionMode===u.DOWNLOAD},g.prototype.isLive=function(){return this.consumptionMode===u.LIVE},g.prototype.isVideo=function(){return this.avType===a.AvType.VIDEO},g}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(){"use strict";function e(){this.reset()}return e.prototype.start=function(){!0!==this._isPlaying&&(this._isPlaying=!0,this._startTime=this._getCurrentTime())},e.prototype.reset=function(){this._isPlaying=!1,this._position=0,this._startTime=0},e.prototype.stop=function(){this._isPlaying&&(this._isPlaying=!1,this._position+=this._getCurrentTime()-this._startTime,this._startTime=0)},e.prototype.getPosition=function(){var e=this._position;return!0===this._isPlaying&&(e+=this._getCurrentTime()-this._startTime),e},e.prototype._getCurrentTime=function(){return Date.now||(Date.now=function(){return(new Date).getTime()}),Date.now()},e}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s,i;s=[n(1),n(2),n(0)],void 0!==(i=function(e,t,n){"use strict";function s(e,t,n){this._schedule=[],this.serviceId=null,this._media=e,this._environment=t,this._echoClient=n,this._fetchData()}return s.prototype.getBroadcast=function(e){var t,n;for(t=0;t<this._schedule.length;t++)if(n=this._schedule[t].published_time,e<n.end&&e>=n.start)return this._schedule[t]},s.essHost="ess.api.bbci.co.uk",s.prototype._fetchData=function(){var e,n,i=this;e=this._environment.getExecuteCrossDomainGet(),n=this._environment.getProtocol();var a=n+s.essHost.replace(/^(\/+)?/,"//")+"/schedules";if(this._media){if(this._media.getServiceId())a+="?serviceId="+encodeURIComponent(this._media.getServiceId());else if(this._media.getVersionId())a+="?versionId="+encodeURIComponent(this._media.getVersionId());else{if(!this._media.getVpId())return void t.info("Unable to determine serviceId, versionId or VpId for schedule");a+="?vpid="+encodeURIComponent(this._media.getVpId())}e(a,{onSuccess:function(e){i._dataSuccessHandler(e)},onError:function(e,t){var n="error";"json"===e?n="json":"object"==typeof e&&"timeout"===e.type&&(n="timeout"),i._dataErrorHandler(n,t)}})}},s.prototype.hasData=function(){return this._schedule.length>0},s.prototype._dataSuccessHandler=function(e){var n,s,i,a,o=[];if(t.info("Cross-domain schedule request success."),e){for(this._echoClient.setEssSuccess(!0),this.serviceId=e.service.id,e.items=e.items||[],n=0;n<e.items.length;n++)i=e.items[n].published_time.start,a=e.items[n].published_time.end,s=e.items[n],s.published_time.start=new Date(i).getTime(),s.published_time.end=new Date(a).getTime(),o.push(s);this._schedule=o}},s.prototype._dataErrorHandler=function(e,s){this._schedule=[],t.error("There was a problem requesting the schedule from ESS: "+e),this._echoClient.setEssSuccess(!1),"json"===e?this._echoClient.setEssError(n.EssError.JSON,s):"timeout"===e?this._echoClient.setEssError(n.EssError.TIMEOUT,s):"error"===e&&void 0!==s?this._echoClient.setEssError(n.EssError.STATUS_CODE,s):this._echoClient.setEssError(n.EssError.RUNTIME,"0")},s}.apply(t,s))&&(e.exports=i)},function(e,t,n){var s,i;s=[n(17)],void 0!==(i=function(e){"use strict";return window&&window.bbccookies&&e.Environment.setOrbCookies(window.bbccookies),e}.apply(t,s))&&(e.exports=i)},function(e,t,n){var s,i;!function(n,a){"use strict";a(n.ns_=n.ns_||{}),s=[],void 0!==(i=function(){return n.ns_}.apply(t,s))&&(e.exports=i)}(this,function(e){"use strict";e.ns_=e;var t=t||{};t.indexOf=function(e,t){var n=-1;return this.forEach(t,function(t,s){t==e&&(n=s)}),n},t.forEach=function(e,t,n){try{if("function"==typeof t)if(n=void 0!==n?n:null,"number"!=typeof e.length||void 0===e[0]){var s=void 0!==e.__proto__;for(var i in e)e.hasOwnProperty(i)&&(!s||s&&void 0===e.__proto__[i])&&"function"!=typeof e[i]&&t.call(n,e[i],i)}else for(var a=0,o=e.length;a<o;a++)t.call(n,e[a],a)}catch(e){}};var t=t||{};t.parseBoolean=function(e,t){return t=t||!1,e?"0"!=e:t},t.parseInteger=function(e,t){return null==e||isNaN(e)?t||0:parseInt(e)},t.parseLong=function(e,t){var n=Number(e);return null==e||isNaN(n)?t||0:n},t.toString=function(e){if(void 0===e)return"undefined";if("string"==typeof e)return e;if(e instanceof Array)return e.join(",");var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t||e.toString()};var t=t||{};t.filter=function(e,t){var n={};for(var s in t)t.hasOwnProperty(s)&&e(t[s])&&(n[s]=t[s]);return n},t.extend=function(e){var t,n=arguments.length;e=e||{};for(var s=1;s<n;s++)if(t=arguments[s])for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e};var t=t||{};t.cloneObject=function(e){return null==e||"object"!=typeof e?e:function(){function e(){}function t(t){return"object"==typeof t?(e.prototype=t,new e):t}function n(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}function s(){this.copiedObjects=[];var e=this;this.recursiveDeepCopy=function(t){return e.deepCopy(t)},this.depth=0}function i(e,t){var n=new s;return t&&(n.maxDepth=t),n.deepCopy(e)}function a(e){return"undefined"!=typeof window&&window&&window.Node?e instanceof Node:"undefined"!=typeof document&&e===document||"number"==typeof e.nodeType&&e.attributes&&e.childNodes&&e.cloneNode}var o=[];return n.prototype={constructor:n,canCopy:function(){return!1},create:function(e){},populate:function(e,t,n){}},s.prototype={constructor:s,maxDepth:256,cacheResult:function(e,t){this.copiedObjects.push([e,t])},getCachedResult:function(e){for(var t=this.copiedObjects,n=t.length,s=0;s<n;s++)if(t[s][0]===e)return t[s][1]},deepCopy:function(e){if(null===e)return null;if("object"!=typeof e)return e;var t=this.getCachedResult(e);if(t)return t;for(var n=0;n<o.length;n++){var s=o[n];if(s.canCopy(e))return this.applyDeepCopier(s,e)}throw new Error("Unable to clone the following object "+e)},applyDeepCopier:function(e,t){var n=e.create(t);if(this.cacheResult(t,n),++this.depth>this.maxDepth)throw new Error("Maximum recursion depth exceeded.");return e.populate(this.recursiveDeepCopy,t,n),this.depth--,n}},i.DeepCopier=n,i.deepCopiers=o,i.register=function(e){e instanceof n||(e=new n(e)),o.unshift(e)},i.register({canCopy:function(){return!0},create:function(e){return e instanceof e.constructor?t(e.constructor.prototype):{}},populate:function(e,t,n){for(var s in t)t.hasOwnProperty(s)&&(n[s]=e(t[s]));return n}}),i.register({canCopy:function(e){return e instanceof Array},create:function(e){return new e.constructor},populate:function(e,t,n){for(var s=0;s<t.length;s++)n.push(e(t[s]));return n}}),i.register({canCopy:function(e){return e instanceof Date},create:function(e){return new Date(e)}}),i.register({canCopy:function(e){return a(e)},create:function(e){return"undefined"!=typeof document&&e===document?document:e.cloneNode(!1)},populate:function(e,t,n){if("undefined"!=typeof document&&t===document)return document;if(t.childNodes&&t.childNodes.length)for(var s=0;s<t.childNodes.length;s++){var i=e(t.childNodes[s]);n.appendChild(i)}}}),{deepCopy:i}}().deepCopy(e)};var t=t||{};t.getNamespace=function(){return e.ns_||e},t.uid=function(){var e=1;return function(){return+new Date+"_"+e++}}(),t.isEmpty=function(e){return void 0===e||null===e||""===e||e instanceof Array&&0===e.length},t.isNotEmpty=function(e){return!this.isEmpty(e)},t.safeGet=function(e,t){return t=this.exists(t)?t:"",this.exists(e)?e:t},t.isTrue=function(e){return void 0!==e&&("string"==typeof e?"true"===(e=e.toLowerCase())||"1"===e||"on"===e:!!e)},t.regionMatches=function(e,t,n,s,i){if(t<0||s<0||t+i>e.length||s+i>n.length)return!1;for(;--i>=0;){if(e.charAt(t++)!=n.charAt(s++))return!1}return!0},t.exists=function(e){return void 0!==e&&null!=e},function(){var e=[],n=!1,s=!0,i=1e3;t.onSystemClockJump=function(t,a){e.push(t),n||(n=!0,i=a||i,s=+new Date,setInterval(function(){var t=s+i,n=+new Date;s=n;var a=n-t;if(Math.abs(a)>i)for(var o=0;o<e.length;++o)e[o](a>0)},i))}}();var t=t||{};t.hasPageVisibilityAPISupport=function(){if("undefined"==typeof document)return!1;var e=!1;return void 0!==document.hidden?e=!0:void 0!==document.mozHidden?e=!0:void 0!==document.msHidden?e=!0:void 0!==document.webkitHidden&&(e=!0),function(){return e}}(),t.getPageVisibilityAPI=function(){if("undefined"==typeof document)return null;var e,t,n;void 0!==document.hidden?(e="hidden",t="visibilitychange",n="visibilityState"):void 0!==document.mozHidden?(e="mozHidden",t="mozvisibilitychange",n="mozVisibilityState"):void 0!==document.msHidden?(e="msHidden",t="msvisibilitychange",n="msVisibilityState"):void 0!==document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange",n="webkitVisibilityState");var s={hidden:e,visibilityChange:t,state:n};return function(){return s}}(),t.isTabInBackground=function(){if("undefined"==typeof document)return null;var e=t.getPageVisibilityAPI();return function(){return document[e.hidden]}}(),t.getBrowserName=function(){if(!navigator)return"";var e,t,n=navigator.userAgent||"",s=navigator.appName||"";return-1!=(t=n.indexOf("Opera"))||-1!=(t=n.indexOf("OPR/"))?s="Opera":-1!=(t=n.indexOf("Android"))?s="Android":-1!=(t=n.indexOf("Chrome"))?s="Chrome":-1!=(t=n.indexOf("Safari"))?s="Safari":-1!=(t=n.indexOf("Firefox"))?s="Firefox":-1!=(t=n.indexOf("IEMobile"))?s="Internet Explorer Mobile":"Microsoft Internet Explorer"==s||"Netscape"==s?s="Internet Explorer":(e=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/"))?(s=n.substring(e,t),s.toLowerCase()==s.toUpperCase()&&(s=navigator.appName)):s="unknown",s},t.getBrowserFullVersion=function(){if(!navigator)return"";var e,t,n,s,i=navigator.userAgent||"",a=navigator.appName||"",o=navigator.appVersion?""+parseFloat(navigator.appVersion):"";return-1!=(t=i.indexOf("Opera"))?(o=i.substring(t+6),-1!=(t=i.indexOf("Version"))&&(o=i.substring(t+8))):-1!=(t=i.indexOf("OPR/"))?o=i.substring(t+4):-1!=(t=i.indexOf("Android"))?o=i.substring(t+11):-1!=(t=i.indexOf("Chrome"))?o=i.substring(t+7):-1!=(t=i.indexOf("Safari"))?(o=i.substring(t+7),-1!=(t=i.indexOf("Version"))&&(o=i.substring(t+8))):-1!=(t=i.indexOf("Firefox"))?o=i.substring(t+8):"Microsoft Internet Explorer"==a?(s=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),null!=s.exec(i)&&(o=parseFloat(RegExp.$1))):"Netscape"==a?(s=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),null!=s.exec(i)&&(o=parseFloat(RegExp.$1))):o=i.lastIndexOf(" ")+1<(t=i.lastIndexOf("/"))?i.substring(t+1):"unknown",o=o.toString(),-1!=(n=o.indexOf(";"))&&(o=o.substring(0,n)),-1!=(n=o.indexOf(" "))&&(o=o.substring(0,n)),-1!=(n=o.indexOf(")"))&&(o=o.substring(0,n)),e=parseInt(""+o,10),isNaN(e)&&(o=""+parseFloat(navigator.appVersion)),o},t.browserAcceptsLargeURLs=function(){return"undefined"==typeof window||(window.ActiveXObject,!0)},t.isBrowser=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},t.isWebSecure=function(){return"undefined"!=typeof document&&null!=document&&"s"===document.location.href.charAt(4)};var n=function(){return function(e,t){function n(t){t=t||[];var n=[o,+new Date];return e&&n.push(e),t=Array.prototype.slice.call(t),n=n.concat(t)}function s(e){var n,s,i;if("boolean"==typeof t||!t)return!!t;if(i=e.join(" "),t instanceof Array&&t.length>0){for(n=0;n<t.length;++n)if((s=t[n])instanceof RegExp&&s.test(i))return!0;return!1}if("object"==typeof t){var a=!1;if(t.hide instanceof Array)for(n=0;n<t.hide.length;++n)if((s=t.hide[n])instanceof RegExp&&s.test(i)){a=!0;break}if(t.show instanceof Array)for(n=0;n<t.show.length;++n)if((s=t.show[n])instanceof RegExp&&s.test(i))return!0;return!a&&!t.show}return!0}function i(e){var n=r.length;(n>1e4||t&&t.max&&n>t.max)&&(r=r.slice(-Math.floor(t.max/2)),r.push("Previous logs: "+n)),r.push(e)}var a=this,o="comScore",r=[];a.log=function(){var e=n(arguments);i(e),"undefined"!=typeof console&&"function"==typeof console.log&&s(e)&&console.log.apply(console,e)},a.warn=function(){var e=n(arguments);i(e),"undefined"!=typeof console&&"function"==typeof console.warn&&s(e)&&console.warn.apply(console,e)},a.error=function(){var e=n(arguments);i(e),"undefined"!=typeof console&&"function"==typeof console.error&&s(e)&&console.error.apply(console,e)},a.apiCall=function(e){for(var t=["API call to:",e],n=1;n<arguments.length;++n)t.push("arg"+n+":",arguments[n]);this.log.apply(this,t)},a.infoLog=function(){var e=["Trace log:"];e.push.apply(e,Array.prototype.slice.call(arguments)),this.log.apply(this,e)},a.deprecation=function(e,t){var n=["Deprecated API:",e,"is deprecated and will be eventually removed."];t&&n.push("Use",t,"instead."),this.warn.apply(this,n)},a.getLogHistory=function(){return r}}}();return e.StreamingAnalytics=e.StreamingAnalytics||function(){var e=function(){var e="cs_";return function(){var n="undefined"!=typeof localStorage?localStorage:null;t.extend(this,{get:function(t){return n&&n.getItem(e+t)},set:function(t,s){n&&n.setItem(e+t,s)},has:function(t){return n&&n.getItem(e+t)},remove:function(t){n&&n.removeItem(e+t)},clear:function(){for(var t=0;n&&t<n.length;++t){var s=n.key(t);s.substr(0,e.length)===e&&n.removeItem(s)}}})}}(),s=function(e,t){if("undefined"==typeof Image)return void("function"==typeof setTimeout?t&&setTimeout(t,0):t&&t());var n=new Image;n.onload=function(){t&&t(200),n=null},n.onerror=function(){t&&t(),n=null},n.src=e},i=function(e,t,n){"function"==typeof setTimeout?n&&setTimeout(function(){n(200)},0):n&&n(200)},a=function(){return{dir:function(){return null},append:function(e,t,n){},write:function(e,t,n){},deleteFile:function(){return!1},read:function(){return null}}}(),o=function(){return{PLATFORM:"generic",httpGet:s,httpPost:i,Storage:e,IO:a,onDataFetch:function(e){e()},getCrossPublisherId:function(){return null},getAppName:function(){return r.UNKNOWN_VALUE},getAppVersion:function(){return r.UNKNOWN_VALUE},getVisitorId:function(){return+new Date+~~(1e3*Math.random())},getVisitorIdSuffix:function(){return"72"},getDeviceModel:function(){return r.UNKNOWN_VALUE},getPlatformVersion:function(){return r.UNKNOWN_VALUE},getPlatformName:function(){return"js"},getRuntimeName:function(){return r.UNKNOWN_VALUE},getRuntimeVersion:function(){return r.UNKNOWN_VALUE},getDisplayResolution:function(){return r.UNKNOWN_RESOLUTION},getApplicationResolution:function(){return r.UNKNOWN_RESOLUTION},getLanguage:function(){return r.UNKNOWN_VALUE},getPackageName:function(){return null},isConnectionAvailable:function(){return!0},isCompatible:function(){return!0},autoSelect:function(){},setPlatformAPI:function(){},isCrossPublisherIdChanged:function(){return!1},setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)},getDeviceArchitecture:function(){return r.UNKNOWN_VALUE},getConnectionType:function(){return r.UNKNOWN_VALUE},getDeviceJailBrokenFlag:function(){return r.UNKNOWN_VALUE},isConnectionSecure:function(){return!1},processMeasurementLabels:function(){}}}(),r={UNKNOWN_VALUE:"unknown",UNKNOWN_RESOLUTION:"0x0"};t.jsonObjectToStringDictionary=function(e){var t={};for(var n in e){var s=e[n];t[n]=null===s||void 0===s?s:e[n]+""}return t},t.getKeys=function(e,t){var n,s=[];for(n in e)t&&!t.test(n)||!e.hasOwnProperty(n)||(s[s.length]=n);return s},t.fixEventTime=function(e){if(e.ns_ts)return parseInt(e.ns_ts);var t=+new Date;return e.ns_ts=t+"",t},t.isBrowser=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},t.addNewPlaybackInterval=function(e,n,s,i){var a={};if(!(s>=n))return t.cloneObject(e);if(a.start=n,a.end=s,0==e.length)return e.push(a),t.cloneObject(e) ;var o;for(o=0;o<e.length;o++)if(a.start>=e[o].start&&a.end<=e[o].end)return t.cloneObject(e);var r,c=!1;for(r=0;r<e.length;r++)if(r+1===e.length&&a.start>=e[r].start||a.start>=e[r].start&&a.start<e[r+1].start){e.splice(r+1,0,a),c=!0;break}c||e.splice(0,0,a);var l=[e[0]];for(o=1;o<e.length;o++)l[l.length-1].end+i<e[o].start?l.push(e[o]):l[l.length-1].end<e[o].end&&(l[l.length-1].end=e[o].end);return t.cloneObject(l)},t.stateToString=function(e){var t=R.InternalStates;for(var n in t)if(t.hasOwnProperty(n)&&t[n]==e)return n};var c=function(){var e=["play","pause","pause-on-buffering","end","buffer","buffer-stop","keep-alive","hb","custom","load","start","skstart","adskip","cta","error","trans","drmfa","drmap","drmde","bitrt","playrt","volume","window","audio","video","subs","cdn"];return{PLAY:0,PAUSE:1,PAUSE_ON_BUFFERING:2,END:3,BUFFER:4,BUFFER_STOP:5,KEEPALIVE:6,HEARTBEAT:7,CUSTOM:8,LOAD:9,ENGAGE:10,SEEK_START:11,AD_SKIP:12,CTA:13,ERROR:14,TRANSFER:15,DRM_FAILED:16,DRM_APPROVED:17,DRM_DENIED:18,BIT_RATE:19,PLAYBACK_RATE:20,VOLUME:21,WINDOW_STATE:22,AUDIO:23,VIDEO:24,SUBS:25,CDN:26,toString:function(t){return e[t]}}}(),l=function(){return{IDLE:0,PLAYBACK_NOT_STARTED:1,PLAYING:2,PAUSED:3,BUFFERING_BEFORE_PLAYBACK:4,BUFFERING_DURING_PLAYBACK:5,BUFFERING_DURING_SEEKING:6,BUFFERING_DURING_PAUSE:7,SEEKING_BEFORE_PLAYBACK:8,SEEKING_DURING_PLAYBACK:9,SEEKING_DURING_BUFFERING:10,SEEKING_DURING_PAUSE:11,PAUSED_DURING_BUFFERING:12}}(),u=function(){var e=["c","s","r"];return{SINGLE_CLIP:0,SEGMENTED:1,REDUCED:2,toString:function(t){return e[t]}}}(),g={STREAMINGANALYTICS_VERSION:"6.0.0.161201",MODEL_VERSION:"5.7",LOG_NAMESPACE:"STA",DEFAULT_PLAYERNAME:"js_api",DEFAULT_HEARTBEAT_INTERVAL:[{playingtime:6e4,interval:1e4},{playingtime:null,interval:6e4}],DEFAULT_KEEP_ALIVE_INTERVAL:12e5,DEFAULT_PAUSED_ON_BUFFERING_INTERVAL:500,C1_VALUE:"19",C10_VALUE:"js",NS_AP_C12M_VALUE:"1",NS_NC_VALUE:"1",PAGE_NAME_LABEL:"name",RESTRICTED_URL_LENGTH_LIMIT:2048,URL_LENGTH_LIMIT:4096,THROTTLING_DELAY:500,INTERVAL_MERGE_TOLERANCE:500,SYSTEM_CLOCK_JUMP_DETECTION_DEFAULT_INTERVAL:1e3,SYSTEM_CLOCK_JUMP_DETECTION_MINIMUM_INTERVAL:500,STANDARD_METADATA_LABELS:["ns_st_st","ns_st_ci","ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_ty","ns_st_ct","ns_st_li","ns_st_ad","ns_st_bn","ns_st_tb","ns_st_an","ns_st_ta","ns_st_pu","c3","c4","c6"],LABELS_ORDER:["c1","c2","ca2","cb2","cc2","cd2","ns_site","ca_ns_site","cb_ns_site","cc_ns_site","cd_ns_site","ns_vsite","ca_ns_vsite","cb_ns_vsite","cc_ns_vsite","cd_ns_vsite","ns_alias","ca_ns_alias","cb_ns_alias","cc_ns_alias","cd_ns_alias","ns_ap_an","ca_ns_ap_an","cb_ns_ap_an","cc_ns_ap_an","cd_ns_ap_an","ns_ap_pn","ns_ap_pv","c12","ca12","cb12","cc12","cd12","ns_ak","ns_ap_hw","name","ns_ap_ni","ns_ap_ec","ns_ap_ev","ns_ap_device","ns_ap_id","ns_ap_csf","ns_ap_bi","ns_ap_pfm","ns_ap_pfv","ns_ap_ver","ca_ns_ap_ver","cb_ns_ap_ver","cc_ns_ap_ver","cd_ns_ap_ver","ns_ap_sv","ns_ap_cv","ns_ap_smv","ns_type","ca_ns_type","cb_ns_type","cc_ns_type","cd_ns_type","ns_radio","ns_nc","cs_partner","cs_xcid","cs_impid","ns_ap_ui","ca_ns_ap_ui","cb_ns_ap_ui","cc_ns_ap_ui","cd_ns_ap_ui","ns_ap_gs","ns_st_sv","ns_st_pv","ns_st_smv","ns_st_it","ns_st_id","ns_st_ec","ns_st_sp","ns_st_sc","ns_st_psq","ns_st_asq","ns_st_sq","ns_st_ppc","ns_st_apc","ns_st_spc","ns_st_cn","ns_st_ev","ns_st_po","ns_st_cl","ns_st_el","ns_st_sl","ns_st_pb","ns_st_hc","ns_st_mp","ca_ns_st_mp","cb_ns_st_mp","cc_ns_st_mp","cd_ns_st_mp","ns_st_mv","ca_ns_st_mv","cb_ns_st_mv","cc_ns_st_mv","cd_ns_st_mv","ns_st_pn","ns_st_tp","ns_st_ad","ns_st_li","ns_st_ci","ns_st_si","ns_st_pt","ns_st_dpt","ns_st_ipt","ns_st_et","ns_st_det","ns_st_upc","ns_st_dupc","ns_st_iupc","ns_st_upa","ns_st_dupa","ns_st_iupa","ns_st_lpc","ns_st_dlpc","ns_st_lpa","ns_st_dlpa","ns_st_pa","ns_st_ie","ns_ap_jb","ns_ap_et","ns_ap_res","ns_ap_sd","ns_ap_po","ns_ap_ot","ns_ap_c12m","cs_c12u","ca_cs_c12u","cb_cs_c12u","cc_cs_c12u","cd_cs_c12u","ns_ap_install","ns_ap_updated","ns_ap_lastrun","ns_ap_cs","ns_ap_runs","ns_ap_usage","ns_ap_fg","ns_ap_ft","ns_ap_dft","ns_ap_bt","ns_ap_dbt","ns_ap_dit","ns_ap_as","ns_ap_das","ns_ap_it","ns_ap_uc","ns_ap_aus","ns_ap_daus","ns_ap_us","ns_ap_dus","ns_ap_ut","ns_ap_oc","ns_ap_uxc","ns_ap_uxs","ns_ap_lang","ns_ap_ar","ns_ap_miss","ns_ts","ns_ap_cfg","ns_st_ca","ns_st_cp","ns_st_er","ca_ns_st_er","cb_ns_st_er","cc_ns_st_er","cd_ns_st_er","ns_st_pe","ns_st_ui","ca_ns_st_ui","cb_ns_st_ui","cc_ns_st_ui","cd_ns_st_ui","ns_st_bc","ns_st_dbc","ns_st_bt","ns_st_dbt","ns_st_bp","ns_st_lt","ns_st_skc","ns_st_dskc","ns_st_ska","ns_st_dska","ns_st_skd","ns_st_skt","ns_st_dskt","ns_st_pc","ns_st_dpc","ns_st_pp","ns_st_br","ns_st_pbr","ns_st_rt","ns_st_prt","ns_st_ub","ns_st_vo","ns_st_pvo","ns_st_ws","ns_st_pws","ns_st_ki","ns_st_rp","ns_st_bn","ns_st_tb","ns_st_an","ns_st_ta","ns_st_pl","ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_sr","ns_st_ty","ns_st_ct","ns_st_cs","ns_st_ge","ns_st_st","ns_st_stc","ns_st_ce","ns_st_ia","ns_st_dt","ns_st_ddt","ns_st_tdt","ns_st_tm","ns_st_dtm","ns_st_ttm","ns_st_de","ns_st_pu","ns_st_ti","ns_st_cu","ns_st_fee","ns_st_ft","ns_st_at","ns_st_pat","ns_st_vt","ns_st_pvt","ns_st_tt","ns_st_ptt","ns_st_cdn","ns_st_pcdn","ns_st_ami","ns_st_amt","ns_st_ams","ns_ap_i1","ns_ap_i2","ns_ap_i3","ns_ap_i4","ns_ap_i5","ns_ap_i6","ns_ap_referrer","ns_clid","ns_campaign","ns_source","ns_mchannel","ns_linkname","ns_fee","gclid","utm_campaign","utm_source","utm_medium","utm_term","utm_content","ns_ecommerce","ns_ec_sv","ns_client_id","ns_order_id","ns_ec_cur","ns_orderline_id","ns_orderlines","ns_prod_id","ns_qty","ns_prod_price","ns_prod_grp","ns_brand","ns_shop","ns_category","category","ns_c","ns_search_term","ns_search_result","ns_m_exp","ns_m_chs","c3","ca3","cb3","cc3","cd3","c4","ca4","cb4","cc4","cd4","c5","ca5","cb5","cc5","cd5","c6","ca6","cb6","cc6","cd6","c10","c11","c13","c14","c15","c16","c7","c8","c9","ns_ap_er","ns_st_amc"]},p=function(){function e(){var e,n,s,i,a,o,c,l,u,p,d,_,f,S,h,E,b,y,m,P,A,v,k,C,I,T,L,N,O,D,R,M,B,w,U,F,V,G,x,K,H,Y,j,W,q,z,$,J,X,Z=this,Q=g.INTERVAL_MERGE_TOLERANCE;t.extend(this,{getHash:function(){return e},setHash:function(t){e=t},setPlaybackIntervalMergeTolerance:function(e){Q=e},getPlaybackIntervalMergeTolerance:function(){return Q},setInternalLabel:function(e,t){i[e]=t},getInternalLabel:function(e){return i[e]},hasInternalLabel:function(e){return null!=i[e]},setLabels:function(e){e&&t.extend(a,e)},getLabels:function(){return a},setLabel:function(e,t){a[e]=t},getLabel:function(e){return a[e]},hasLabel:function(e){return e in a},getClipNumber:function(){return parseInt(Z.getInternalLabel("ns_st_cn"))},setClipNumber:function(e){Z.setInternalLabel("ns_st_cn",e+"")},getPartNumber:function(){return Z.hasLabel("ns_st_pn")?parseInt(Z.getLabel("ns_st_pn")):parseInt(Z.getInternalLabel("ns_st_pn"))},createLabels:function(e,n){var o=e||{},r=t.isEmpty(o.ns_st_pt)?Z.getPlaybackTime():parseInt(o.ns_st_pt);o.ns_st_pt=r+(isNaN(l)?0:n-l)+"",o.ns_st_dpt=r+(isNaN(l)?0:n-l)-p+"",o.ns_st_ipt=r+(isNaN(l)?0:n-l)-d+"";var c=t.isEmpty(o.ns_st_et)?Z.getElapsedTime():parseInt(o.ns_st_et);o.ns_st_et=c+(isNaN(S)?0:n-S)+"",o.ns_st_det=c+(isNaN(S)?0:n-S)-h+"";var u=t.isEmpty(o.ns_st_bt)?Z.getBufferingTime():parseInt(o.ns_st_bt);o.ns_st_bt=u+"",o.ns_st_dbt=u+(isNaN(L)?0:n-L)-N+"";for(var g,_=parseInt(o.ns_st_po),f=t.addNewPlaybackInterval(t.cloneObject(Z.getSegmentPlaybackIntervals()),m,_,Q),E=t.addNewPlaybackInterval(t.cloneObject(Z.getAssetPlaybackIntervals()),m,_,Q),b=0,y=0,T=0;T<f.length;T++)g=Math.abs(f[T].end-f[T].start),b+=g,g>y&&(y=g);var O=0,R=0;for(T=0,g;T<E.length;T++)g=Math.abs(E[T].end-E[T].start),O+=g,g>R&&(R=g);o.ns_st_upc=b+"",o.ns_st_dupc=b-P+"",o.ns_st_iupc=b-A+"",o.ns_st_iupc=b>A?b-A+"":"0",o.ns_st_lpc=y+"",o.ns_st_dlpc=y-v+"",o.ns_st_upa=O+"",o.ns_st_dupa=O-k+"",o.ns_st_iupa=O>C?O-C+"":"0",o.ns_st_lpa=R+"",o.ns_st_dlpa=R-I+"";var M=t.isEmpty(o.ns_st_pc)?Z.getPauses():parseInt(o.ns_st_pc);o.ns_st_pc=M+"",o.ns_st_dpc=M-Y+"";var B=t.isEmpty(o.ns_st_skc)?Z.getSeeks():parseInt(o.ns_st_skc);o.ns_st_skc=B+"",o.ns_st_dskc=B-W+"";var U=t.isEmpty(o.ns_st_bc)?Z.getBuffers():parseInt(o.ns_st_bc);o.ns_st_bc=U+"",o.ns_st_dbc=U-D+"";var F=t.isEmpty(o.ns_st_skt)?Z.getSeekingTime():parseInt(o.ns_st_skt);o.ns_st_skt=F+"",o.ns_st_dskt=F-w+"";var V=t.isEmpty(o.ns_st_ska)?Z.getSeekingAmount():parseInt(o.ns_st_ska);return o.ns_st_ska=V+"",o.ns_st_dska=V-G+"",s&&(o.ns_st_spc=q+"",o.ns_st_apc=z+"",o.ns_st_sq=$+"",o.ns_st_asq=J+""),o.ns_st_sc=s||0!=X?X+"":"1",t.extend(o,i,a),o},updateDeltaLabels:function(e){p=parseInt(e.ns_st_pt),h=parseInt(e.ns_st_et),N=parseInt(e.ns_st_bt),P=parseInt(e.ns_st_upc),v=parseInt(e.ns_st_lpc),k=parseInt(e.ns_st_upa),I=parseInt(e.ns_st_lpa),Y=parseInt(e.ns_st_pc),W=parseInt(e.ns_st_skc),D=parseInt(e.ns_st_bc),w=parseInt(e.ns_st_skt),G=parseInt(e.ns_st_ska),Z.setSeekingDirection(0)},updateIndependentLabels:function(e){d=parseInt(e.ns_st_pt),A=parseInt(e.ns_st_upc),C=parseInt(e.ns_st_upa)},getVideoTrack:function(){return Z.getInternalLabel("ns_st_vt")},setVideoTrack:function(e){Z.setInternalLabel("ns_st_vt",e+"")},getAudioTrack:function(){return Z.getInternalLabel("ns_st_at")},setAudioTrack:function(e){Z.setInternalLabel("ns_st_at",e+"")},getSubtitleTrack:function(){return Z.getInternalLabel("ns_st_tt")},setSubtitleTrack:function(e){Z.setInternalLabel("ns_st_tt",e+"")},getCDN:function(){return Z.getInternalLabel("ns_st_cdn")},setCDN:function(e){Z.setInternalLabel("ns_st_cdn",e+"")},getSegmentPlaybackIntervals:function(){return b},setAssetPlaybackIntervals:function(e){b=e},getAssetPlaybackIntervals:function(){return y},incrementPauses:function(){H++},incrementSeeks:function(){j++},incrementPlayCounter:function(){$++},getPlayCounter:function(){return $},getBufferingTime:function(){return T},setBufferingTime:function(e){T=e},addBufferingTime:function(e){if(!isNaN(L)){var t=Z.getBufferingTime();t+=e-L,Z.setBufferingTime(t),L=NaN}},setPlaybackStartPosition:function(e){m=parseInt(e)},getPlaybackStartPosition:function(){return m},addInterval:function(e){isNaN(m)||isNaN(e)||(b=t.addNewPlaybackInterval(b,m,e,Q),y=t.addNewPlaybackInterval(y,m,e,Q),m=NaN)},getElapsedTime:function(){return f},setElapsedTime:function(e){f=e},addElapsedTime:function(e){if(!isNaN(S)){var t=Z.getElapsedTime();t+=e-S,Z.setElapsedTime(t),S=NaN}},getElapsedTimestamp:function(){return S},setElapsedTimestamp:function(e){S=e},addPlaybackTime:function(e){if(!isNaN(l)){var t=Z.getPlaybackTime();t+=e-l,Z.setPlaybackTime(t),l=NaN}},getPlaybackTime:function(){return c},getExpectedPlaybackPosition:function(e){return isNaN(l)?_:_+(e-l)},setPlaybackTimeOffset:function(e){_=e},getPlaybackTimeOffset:function(){return _},setPlaybackTime:function(e){c=e},getPlaybackTimestamp:function(){return l},setPlaybackTimestamp:function(e){l=e},setPreviousPlaybackTime:function(e){p=e},setPreviousPlaybackTimestamp:function(e){u=e},getBufferingTimestamp:function(){return L},setBufferingTimestamp:function(e){L=e},getPauses:function(){return H},setPauses:function(e){H=e},getSeeks:function(){return j},setSeeks:function(e){j=e},setSeeking:function(e){R=e},isSeeking:function(){return R},setCollectingSeekingTime:function(e){F=e},isCollectingSeekingTime:function(){return F},setAssetStarted:function(e){n=e},isAssetStarted:function(){return n},setPlaybackStarted:function(e){s=e},isPlaybackStarted:function(){return s},setSeekingTimestamp:function(e){M=e},getSeekingTimestamp:function(){return M},addSeekingTime:function(e){if(!isNaN(M)){var t=Z.getSeekingTime();t+=e-M,Z.setSeekingTime(t),M=NaN}},getSeekingTime:function(){return B},setSeekingTime:function(e){B=e},setSeekingTimeBeforeEnd:function(e){x=e},getSeekingTimeBeforeEnd:function(){return x},setSeekStartPosition:function(e){U=e},getSeekStartPosition:function(){return U},setSeekingAmount:function(e){V=e},getSeekingAmount:function(){return V},addSeekingAmount:function(e){var t=Z.getSeekingAmount();t+=Math.abs(e-U),Z.setSeekingAmount(t);var n;U==e?n=0:U>e?n=-1:U<e&&(n=1),Z.setSeekingDirection(n),U=0},getSeekingDirection:function(){return parseInt(Z.getInternalLabel("ns_st_skd"))},setSeekingDirection:function(e){Z.setInternalLabel("ns_st_skd",e+"")},resetAssetLifecycleLabels:function(){c=0,p=0,d=0,T=0,N=0,O=0,D=0,H=0,Y=0,$=0,y=[],k=0,C=0,I=0,f=0,h=0,B=0,w=0,V=0,G=0,j=0,W=0},incrementSegmentPlaybackCounter:function(){q++},incrementAssetLoadCounter:function(){X++},incrementAssetPlaybackCounter:function(){z++},getPreviousUniquePlaybackInterval:function(){return P},setPreviousUniquePlaybackInterval:function(e){P=e},getPreviousEventIndependentUniquePlaybackInterval:function(){return A},setPreviousEventIndependentUniquePlaybackInterval:function(e){A=e},setPreviousLongestPlaybackInterval:function(e){v=e},getPreviousLongestPlaybackInterval:function(){return v},resetAssetPlaybackIntervals:function(){y=[],k=0,C=0,I=0},setSegmentPlaybackCounter:function(e){q=e},setAssetLoadCounter:function(e){X=e},setAssetPlaybackCounter:function(e){z=e},setLowestPartNumberPlayed:function(e){E=e},getSegmentPlaybackCounter:function(){return q},getAssetLoadCounter:function(){return X},getAssetPlaybackCounter:function(){return z},getLowestPartNumberPlayed:function(){return E},getBuffers:function(){return O},incrementBufferCount:function(){O++},getPreviousBufferingTime:function(){return N},setPlaySequenceCounter:function(e){J=e},incrementPlaySequenceCounter:function(){J++},getPlaySequenceCounter:function(){return J},isPlaybackSessionLooping:function(){return K},setPlaybackSessionLooping:function(e){K=e},enableAutoCalculatePositions:function(e){o=!!e},isAutoCalculatePositionsEnabled:function(){return o}}),function(){i={},i.ns_st_cl="0",i.ns_st_pn="1",i.ns_st_tp="0",i.ns_st_cn="1",i.ns_st_skd="0",i.ns_st_ci="0",i.c3="*null",i.c4="*null",i.c6="*null",i.ns_st_st="*null",i.ns_st_pu="*null",i.ns_st_pr="*null",i.ns_st_ep="*null",i.ns_st_sn="*null",i.ns_st_en="*null",i.ns_st_ct="*null",a={},s=!1,n=!1,e=r.UNKNOWN_VALUE,o=!0,c=0,l=NaN,_=0,p=0,u=NaN,f=0,S=NaN,E=0,h=0,d=0,m=NaN,b=[],y=[],P=0,A=0,v=0,k=0,C=0,I=0,T=0,L=NaN,N=0,O=0,D=0,R=!1,M=NaN,F=!1,U=0,x=0,B=0,w=0,V=0,G=0,H=0,Y=0,j=0,W=0,q=0,z=0,$=0,J=0,X=0,K=!1}()}return e.resetAsset=function(e,t,n){for(var s=e.getLabels(),i={},a=0;n&&a<n.length;++a)s.hasOwnProperty(n[a])&&(i[n[a]]=s[n[a]]);t.setLabels(i),t.setPlaybackIntervalMergeTolerance(e.getPlaybackIntervalMergeTolerance())},e}(),d=function(){function e(e){var n,s,i,a,o,r,u,d,_,f,S,h,E,b,y,m,P=this;t.extend(this,{resetAsset:function(){var e=n;n=new p,p.resetAsset(e,n)},hashExists:function(e){return null!=d[e]},storeHash:function(e){d[e]={}},removeHash:function(e){delete d[e]},storeAssetPlaybackCounters:function(){for(var e in d)if(d.hasOwnProperty(e)&&d[e].clipNumber===n.getClipNumber()){t.extend(d[e],{segmentPlaybackCounter:n.getSegmentPlaybackCounter(),assetLoadCounter:n.getAssetLoadCounter(),assetPlaybackCounter:n.getAssetPlaybackCounter(),lowestPartNumberPlayed:n.getLowestPartNumberPlayed(),seeking:n.isSeeking(),seekingTimeBeforeEnd:n.getSeekingTimeBeforeEnd(),seekingStartPosition:n.getSeekStartPosition(),segmentPlaybackIntervals:n.getSegmentPlaybackIntervals(),videoTrack:n.getVideoTrack(),audioTrack:n.getAudioTrack(),subtitleTrack:n.getSubtitleTrack(),cdn:n.getCDN(),playSequenceCounter:n.getPlaySequenceCounter(),previousUniquePlaybackInterval:n.getPreviousUniquePlaybackInterval(),previousEventIndependentUniquePlaybackInterval:n.getPreviousEventIndependentUniquePlaybackInterval(),previousLongestPlaybackInterval:n.getPreviousLongestPlaybackInterval()});break}},getStoredAssetRegisters:function(e){return d[e]},getClipNumber:function(e){return d[e].clipNumber},getMaxClipNumber:function(){return _},storeClipNumber:function(e,t){d[e].clipNumber=t,t>_&&(_=t)},setLabels:function(e){null!=e&&t.extend(r,e)},getLabels:function(){return r},setLabel:function(e,t){var n={};n[e]=t,P.setLabels(n)},getLabel:function(e){return r[e]},getAsset:function(){return n},addInternalErrorFlag:function(e){for(var t=0;t<m.length;++t)if(m[t]==e)return;m.push(e)},createLabels:function(s,i){var c=s||{},l=t.isEmpty(c.ns_st_pa)?P.getPlaybackTime():parseInt(c.ns_st_pa);return c.ns_st_pa=l+(isNaN(a)?0:i-a)+"",c.ns_st_pp=E+"",c.ns_st_sp=b+"",c.ns_st_bp=y+"",f||(c.ns_st_pb=null!=c.ns_st_pb?c.ns_st_pb:"1"),n.isPlaybackStarted()&&(c.ns_st_ppc=S+"",c.ns_st_psq=h+""),m.length>0&&(c.ns_st_ie=(c.ns_st_ie?c.ns_st_ie+";":"")+m.join(";")),t.extend(c,o,r),e.getPlaybackSession().getAsset().createLabels(c,i),c},incrementPlayCounter:function(){b++},incrementPauses:function(){E++},addPlaybackTime:function(e){if(!isNaN(a)){var t=P.getPlaybackTime();t+=e-a,P.setPlaybackTime(t),a=NaN}},addBufferingTime:function(e){if(!isNaN(s)){var t=P.getBufferingTime();t+=e-s,P.setBufferingTime(t),s=NaN}},getBufferingTime:function(){return y},setBufferingTime:function(e){y=e},getPlaybackTime:function(){return i},setBufferingTimestamp:function(e){s=e},getBufferingTimestamp:function(){return s},setPlaybackTime:function(e){i=e},setPlaybackTimestamp:function(e){a=e},getPlaybackTimestamp:function(){return a},getPauses:function(){return E},setPauses:function(e){E=e},isPlaybackSessionStarted:function(){return u},setPlaybackSessionStarted:function(e){u=e},getPlaybackCounter:function(){return S},incrementPlaybackCounter:function(){S++},setFirstEventSent:function(e){f=e},setPlaySequenceCounter:function(e){h=e},incrementPlaySequenceCounter:function(){h++},getPlaybackSessionID:function(){return o.ns_st_id},setAsset:function(n,s){e.getLogging().apiCall("setAsset",n,s),n=t.jsonObjectToStringDictionary(n);var i=e.getStateMachine().getCurrentState();if(i!=l.IDLE){e.getLogging().infoLog("Ending the current Clip. It was in state:",t.stateToString(i));var a={};e.getStaCore().newEvent(c.END,t.fixEventTime(a),a)}var o="",r=0;if(null!=n.ns_st_cn)o=n.ns_st_cn;else for(var u=0;u<g.STANDARD_METADATA_LABELS.length;u++)n[g.STANDARD_METADATA_LABELS[u]]&&(o+=g.STANDARD_METADATA_LABELS[u]+":"+n[g.STANDARD_METADATA_LABELS[u]]+";");var p=P,d=p.getAsset();d.isAssetStarted()?(p.hashExists(d.getHash())||(p.storeHash(d.getHash()),p.storeClipNumber(d.getHash(),d.getClipNumber())),p.storeAssetPlaybackCounters(),r=p.hashExists(o)?p.getClipNumber(o):t.exists(n.ns_st_cn)?parseInt(n.ns_st_cn):p.getMaxClipNumber()+1):r=p.hashExists(o)?p.getClipNumber(o):d.getClipNumber(),p.resetAsset(),d=p.getAsset(),d.setHash(o),d.setClipNumber(r),d.setLabels(n);var _=p.getStoredAssetRegisters(o);_&&(d.setAssetStarted(!0),d.setSegmentPlaybackCounter(_.segmentPlaybackCounter),d.setAssetLoadCounter(_.assetLoadCounter),d.setAssetPlaybackCounter(_.assetPlaybackCounter),d.setLowestPartNumberPlayed(_.lowestPartNumberPlayed),d.setSeeking(_.seeking),d.setSeekingTimeBeforeEnd(_.seekingTimeBeforeEnd),d.setSeekStartPosition(_.seekingStartPosition),d.setAssetPlaybackIntervals(_.segmentPlaybackIntervals),_.videoTrack&&d.setVideoTrack(_.videoTrack),_.audioTrack&&d.setAudioTrack(_.audioTrack),_.subtitleTrack&&d.setSubtitleTrack(_.subtitleTrack),_.cdn&&d.setCDN(_.cdn),d.setPlaySequenceCounter(_.playSequenceCounter),d.setPreviousUniquePlaybackInterval(_.previousUniquePlaybackInterval),d.setPreviousEventIndependentUniquePlaybackInterval(_.previousEventIndependentUniquePlaybackInterval),d.setPreviousLongestPlaybackInterval(_.previousLongestPlaybackInterval)),d.incrementAssetLoadCounter(),d.isAssetStarted()&&s&&p.incrementPlayCounter(),s&&(p.setPlaySequenceCounter(0),d.setPlaybackSessionLooping(!0)),!t.exists(n.ns_st_tp)&&t.exists(n.ns_st_ad)&&t.isNotEmpty(n.ns_st_ad)&&"0"!==n.ns_st_ad&&d.setInternalLabel("ns_st_tp","1")}}),function(){n=new p,o={},o.ns_st_id=+new Date+"",r={},s=NaN,i=0,a=NaN,d={},_=0,u=!1,f=!1,S=0,E=0,h=0,b=1,y=0,m=[]}()}return e.resetPlaybackSession=function(e,t,n){for(var s=t.getAsset(),i=t.getLabels(),a={},o=0;n&&o<n.length;o++)i.hasOwnProperty(n[o])&&(a[n[o]]=i[n[o]]);e.getPlaybackSession().setLabels(a),p.resetAsset(s,e.getPlaybackSession().getAsset(),n)},e}(),_=function(){return function(e){function n(n){i=t.extend({},n);var s=e.getStaCore().getLiveEndpointURL();if(e.getAppCore()){if(e.getStaCore().isProperlyInitialized()){var a=e.getStaCore().getExports().et;if("function"==typeof e.getAppCore().getMeasurementDispatcher){var o=e.getAppCore().getMeasurementDispatcher();o.send(a.HIDDEN,n,s)}else{var r=e.getStaCore().getExports().am,c=r.newApplicationMeasurement(e.getAppCore(),a.HIDDEN,n,s);e.getAppCore().getQueue().offer(c)}}}else s&&e.getStaCore().getPlatformAPI().httpGet(e.getStaCore().prepareUrl(s,n))}var s,i,a=this,o=[];t.extend(this,{newEvent:function(e){for(var t=0;t<o.length;++t)o[t](e.eventLabels);n(e.eventLabels),e.eventType!=c.HEARTBEAT&&a.incrementEventCounter()},addMeasurementListener:function(e){"function"==typeof e&&o.push(e)},removeMeasurementListener:function(e){for(var t=NaN,n=0;n<o.length;++n)if(o[n]==e){t=n;break}isNaN(t)||o.splice(t,1)},getEventCounter:function(){return s},incrementEventCounter:function(){s++},setEventCounter:function(e){s=e},getMeasurementSnapshot:function(){return i}}),function(){s=1}()}}(),f=function(){return function(e){function n(){o++;var n={},s=t.fixEventTime(n);n.ns_st_hc=e.getHeartbeat().getCount()+"";var i=e.getStaCore().createLabels(c.HEARTBEAT,n,s);e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),a=0,r.resume()}function s(){null!=i&&(e.getStaCore().getPlatformAPI().clearTimeout(i),i=null)}var i,a,o,r=this,l=g.DEFAULT_HEARTBEAT_INTERVAL;t.extend(this,{getCount:function(){return o},setIntervals:function(e){l=e},getInterval:function(e){var t=0;if(null!=l)for(var n=0;n<l.length;n++){var s=l[n],i=s.playingtime;if(!i||e<i){t=s.interval;break}}return t},getIntervals:function(){return l},resume:function(){s();var t=r.getInterval(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()));if(t>0){var o=a>0?a:t;i=e.getStaCore().getPlatformAPI().setTimeout(n,o)}a=0},pause:function(){s();var t=r.getInterval(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()));a=t-(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()))%t}}),function(){a=0,o=0}()}}(),S=function(){return function(e){function n(){var n={},s=t.fixEventTime(n);e.getStaCore().newPseudoEvent(c.KEEPALIVE,s,n),a.start()}function s(){null!=i&&(e.getStaCore().getPlatformAPI().clearTimeout(i),i=null)}var i,a=this,o=g.DEFAULT_KEEP_ALIVE_INTERVAL;t.extend(a,{start:function(){s(),i=e.getStaCore().getPlatformAPI().setTimeout(n,o)},stop:s,setInterval:function(e){o=e},getInterval:function(){return o}})}}(),h=function(){return function(e){var n,s,i,a=this;t.extend(a,{eventTypeToState:function(e){if(i==l.IDLE){if(e==c.PLAY)return l.PLAYING;if(e==c.SEEK_START)return l.SEEKING_BEFORE_PLAYBACK;if(e==c.BUFFER)return l.BUFFERING_BEFORE_PLAYBACK}else if(i==l.PLAYBACK_NOT_STARTED){if(e==c.PLAY)return l.PLAYING;if(e==c.SEEK_START)return l.SEEKING_BEFORE_PLAYBACK;if(e==c.BUFFER)return l.BUFFERING_BEFORE_PLAYBACK;if(e==c.END||e==c.AD_SKIP)return l.IDLE}else if(i==l.PLAYING){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.BUFFER)return l.BUFFERING_DURING_PLAYBACK;if(e==c.PAUSE)return l.PAUSED;if(e==c.SEEK_START)return l.SEEKING_DURING_PLAYBACK}else if(i==l.PAUSED){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.BUFFER)return l.BUFFERING_DURING_PAUSE;if(e==c.PLAY)return l.PLAYING;if(e==c.SEEK_START)return l.SEEKING_DURING_PAUSE}else if(i==l.BUFFERING_BEFORE_PLAYBACK){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PAUSE||e==c.BUFFER_STOP)return l.PLAYBACK_NOT_STARTED;if(e==c.PLAY)return l.PLAYING;if(e==c.SEEK_START)return l.SEEKING_BEFORE_PLAYBACK}else if(i==l.BUFFERING_DURING_PLAYBACK){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PLAY||e==c.BUFFER_STOP)return l.PLAYING;if(e==c.PAUSE_ON_BUFFERING)return l.PAUSED_DURING_BUFFERING;if(e==c.SEEK_START)return l.SEEKING_DURING_BUFFERING;if(e==c.PAUSE)return l.PAUSED}else if(i==l.BUFFERING_DURING_SEEKING){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PLAY)return l.PLAYING;if(e==c.BUFFER_STOP)return l.SEEKING_DURING_PLAYBACK;if(e==c.PAUSE)return l.PAUSED}else if(i==l.BUFFERING_DURING_PAUSE){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PLAY)return l.PLAYING;if(e==c.SEEK_START)return l.SEEKING_DURING_PAUSE;if(e==c.BUFFER_STOP||e==c.PAUSE)return l.PAUSED}else if(i==l.SEEKING_BEFORE_PLAYBACK){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PAUSE)return l.PLAYBACK_NOT_STARTED;if(e==c.PLAY)return l.PLAYING;if(e==c.BUFFER)return l.BUFFERING_BEFORE_PLAYBACK}else if(i==l.SEEKING_DURING_PLAYBACK){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PLAY)return l.PLAYING;if(e==c.PAUSE)return l.PAUSED;if(e==c.BUFFER)return l.BUFFERING_DURING_SEEKING}else if(i==l.SEEKING_DURING_BUFFERING){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PLAY)return l.PLAYING;if(e==c.PAUSE||e==c.BUFFER_STOP)return l.PAUSED;if(e==c.BUFFER)return l.BUFFERING_DURING_SEEKING}else if(i==l.SEEKING_DURING_PAUSE){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.PLAY)return l.PLAYING;if(e==c.PAUSE||e==c.BUFFER_STOP)return l.PAUSED;if(e==c.BUFFER)return l.BUFFERING_DURING_PAUSE}else if(i==l.PAUSED_DURING_BUFFERING){if(e==c.END||e==c.AD_SKIP)return l.IDLE;if(e==c.SEEK_START)return l.SEEKING_DURING_BUFFERING;if(e==c.PAUSE)return l.PAUSED;if(e==c.PLAY||e==c.BUFFER_STOP)return l.PLAYING}return null},getCurrentState:function(){return i},newEvent:function(e,t){var o=a.eventTypeToState(e);i!=o&&(s=i,i=o,n=t)},getPreviousState:function(){return s},getLastStateChangeTimestamp:function(){return n}}),function(){i=l.IDLE,s=null,n=NaN}()}}(),E=function(){return function(e){var n=this;t.extend(n,{onSeekStartWhenPausedOrBufferingDuringPause:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onBufferWhenSeekingOrPaused:function(t,n){e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlayWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause:function(t,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onBufferStopOrOnPlayWhenBufferingDuringPlayback:function(t,n){var s=parseInt(n.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getHeartbeat().resume(),e.getKeepAlive().start()}})}}(),b=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStop:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(), e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t))},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),y=function(){return function(e){var n=this;t.extend(n,{onEndAndSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),m=function(){return function(e){var n=this;t.extend(n,{onPauseOnBuffering:function(t,n){parseInt(n.ns_st_po),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var s=e.getStaCore().createLabels(c.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(s.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(s.eventLabels),e.getEventManager().newEvent(s),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t)},onEndOrAdSkip:function(n,s){parseInt(s.ns_st_po),e.getStaCore().stopPausedOnBufferingTimer(),e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var i=e.getStaCore().createLabels(c.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onPause:function(t,n){parseInt(n.ns_st_po),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var s=e.getStaCore().createLabels(c.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(s.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(s.eventLabels),e.getEventManager().newEvent(s)}})}}(),P=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses(),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),A=function(){return function(e){var n=this;t.extend(n,{onBuffer:function(t,n){e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t)},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),v=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),k=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1));var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStop:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),C=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().setSeekingTimestamp(t):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t))},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().setPlaybackSessionStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onBuffer:function(){e.getPlaybackSession().setBufferingTimestamp(eventTimestamp),e.getPlaybackSession().getAsset().setBufferingTimestamp(eventTimestamp)}})}}(),I=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){var i=parseInt(s.ns_st_po);e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(n),e.getPlaybackSession().getAsset().addPlaybackTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n),e.getPlaybackSession().getAsset().addInterval(i);var a=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(a.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(a.eventLabels),e.getEventManager().newEvent(a),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBuffer:function(t,n){var s=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(s),e.getStaCore().isPauseOnBufferingEnabled()&&e.getStaCore().startPausedOnBufferingTimer(t,n),e.getPlaybackSession().getAsset().incrementBufferCount(),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(s),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var i=e.getStaCore().createLabels(c.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onPause:function(t,n){var s=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(s),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var i=e.getStaCore().createLabels(c.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),T=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),L=function(){return function(e){var n=this;t.extend(n,{onPause:function(t,n){e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses(),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)}})}}(),N=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){parseInt(s.ns_st_po),e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(c.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(c.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels), e.getEventManager().newEvent(i)}})}}(),O=function(){return function(e){function s(e){var t=p.getStateMachine().getCurrentState();if(t==l.IDLE||t==l.PLAYBACK_NOT_STARTED||t==l.BUFFERING_BEFORE_PLAYBACK||t==l.SEEKING_BEFORE_PLAYBACK){if(e==c.PLAY)return!0}else if(t==l.PLAYING){if(e==c.END||e==c.AD_SKIP||e==c.SEEK_START||e==c.PAUSE)return!0}else if(t==l.PAUSED||t==l.BUFFERING_DURING_PAUSE||t==l.SEEKING_DURING_PLAYBACK||t==l.SEEKING_DURING_BUFFERING||t==l.SEEKING_DURING_PAUSE){if(e==c.END||e==c.AD_SKIP||e==c.PLAY)return!0}else if(t==l.BUFFERING_DURING_PLAYBACK){if(e==c.PAUSE_ON_BUFFERING||e==c.END||e==c.AD_SKIP||e==c.SEEK_START||e==c.PAUSE||e==c.PLAY)return!0}else if(t==l.BUFFERING_DURING_SEEKING){if(e==c.END||e==c.AD_SKIP||e==c.PAUSE||e==c.PLAY)return!0}else if(t==l.PAUSED_DURING_BUFFERING&&(e==c.END||e==c.AD_SKIP||e==c.BUFFER_STOP||e==c.PLAY))return!0;return!1}function i(e,t,n){var i=p.getStateMachine().getCurrentState();e==c.AD_SKIP&&!n.hasOwnProperty("ns_st_ui")&&s(e)?n.ns_st_ui="skip":e==c.SEEK_START&&!n.hasOwnProperty("ns_st_ui")&&s(e)&&(n.ns_st_ui="seek"),i==l.IDLE?e==c.BUFFER?O.onBuffer(t,n):e==c.SEEK_START?O.onSeekStart(t,n):e==c.PLAY&&O.onPlay(t,n):i==l.PLAYBACK_NOT_STARTED?e==c.END||e==c.AD_SKIP?M.onEndOrAdSkip(t,n):e==c.SEEK_START?M.onSeekStart(t,n):e==c.PLAY?M.onPlay(t,n):e==c.BUFFER&&M.onBuffer(t,n):i==l.PLAYING?e==c.END||e==c.AD_SKIP?B.onEndOrAdSkip(t,n):e==c.BUFFER?B.onBuffer(t,n):e==c.SEEK_START?B.onSeekStart(t,n):e==c.PAUSE&&B.onPause(t,n):i==l.PAUSED?e==c.END||e==c.AD_SKIP?R.onEndOrAdSkip(t,n):e==c.PLAY?R.onPlay(t,n):e==c.BUFFER?Y.onBufferWhenSeekingOrPaused(t,n):e==c.SEEK_START&&Y.onSeekStartWhenPausedOrBufferingDuringPause(t,n):i==l.BUFFERING_BEFORE_PLAYBACK?e==c.END||e==c.AD_SKIP?w.onEndOrAdSkip(t,n):e==c.BUFFER_STOP?w.onBufferStop(t,n):e==c.SEEK_START?w.onSeekStart(t,n):e==c.PAUSE?w.onPause(t,n):e==c.PLAY&&w.onPlay(t,n):i==l.BUFFERING_DURING_PLAYBACK?e==c.PAUSE_ON_BUFFERING?U.onPauseOnBuffering(t,n):e==c.BUFFER_STOP?Y.onBufferStopOrOnPlayWhenBufferingDuringPlayback(t,n):e==c.END||e==c.AD_SKIP?U.onEndOrAdSkip(t,n):e==c.SEEK_START?U.onSeekStart(t,n):e==c.PAUSE?U.onPause(t,n):e==c.PLAY&&Y.onBufferStopOrOnPlayWhenBufferingDuringPlayback(t,n):i==l.BUFFERING_DURING_SEEKING?e==c.END||e==c.AD_SKIP?F.onEndOrAdSkip(t,n):e==c.PAUSE?F.onPause(t,n):e==c.PLAY?F.onPlay(t,n):e==c.BUFFER_STOP&&Y.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(t,n):i==l.BUFFERING_DURING_PAUSE?e==c.END||e==c.AD_SKIP?V.onEndAndSkip(t,n):e==c.PAUSE?V.onPause(t,n):e==c.PLAY?V.onPlay(t,n):e==c.SEEK_START?Y.onSeekStartWhenPausedOrBufferingDuringPause(t,n):e==c.BUFFER_STOP&&Y.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(t,n):i==l.SEEKING_BEFORE_PLAYBACK?e==c.END||e==c.AD_SKIP?x.onEndOrAdSkip(t,n):e==c.PAUSE?x.onPause(t,n):e==c.PLAY?x.onPlay(t,n):e==c.BUFFER&&Y.onBufferWhenSeekingOrPaused(t,n):i==l.SEEKING_DURING_PLAYBACK?e==c.END||e==c.AD_SKIP?H.onEndOrAdSkip(t,n):e==c.PLAY?H.onPlay(t,n):e==c.BUFFER?Y.onBufferWhenSeekingOrPaused(t,n):e==c.PAUSE&&Y.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(t,n):i==l.SEEKING_DURING_BUFFERING?e==c.PAUSE?K.onPause(t,n):e==c.BUFFER?Y.onBufferWhenSeekingOrPaused(t,n):e==c.PLAY?Y.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==c.END||e==c.AD_SKIP?Y.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==c.BUFFER_STOP&&Y.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):i==l.PAUSED_DURING_BUFFERING?e==c.END||e==c.AD_SKIP?G.onEndOrAdSkip(t,n):e==c.BUFFER_STOP?G.onBufferStop(t,n):e==c.SEEK_START?G.onSeekStart(t,n):e==c.PAUSE?G.onPause(t,n):e==c.PLAY&&G.onPlay(t,n):i==l.SEEKING_DURING_PAUSE&&(e==c.BUFFER?Y.onBufferWhenSeekingOrPaused(t,n):e==c.PLAY?Y.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==c.PAUSE?Y.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(t,n):e==c.END||e==c.AD_SKIP?Y.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==c.BUFFER_STOP&&Y.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(t,n)),s(e)&&p.getPlaybackSession().setFirstEventSent(!0)}function a(e,n){for(var s,i=le.encodeURIComponent||escape,a=[],o=g.LABELS_ORDER,r=e.split("?"),c=r[0],l=r[1],u=l.split("&"),p=0,d=u.length;p<d;p++){var _=u[p].split("="),f=unescape(_[0]),S=unescape(_[1]);f&&(n[f]=S)}for(var h={},E=0,b=o.length;E<b;E++){var y=o[E];if(n.hasOwnProperty(y)){var m=n[y];void 0!==m&&null!=m&&(h[y]=!0,a.push(i(y)+"="+i(n[y])))}}for(var P in n)if(n.hasOwnProperty(P)){if(h[P])continue;var A=n[P];void 0!==A&&null!=A&&a.push(i(P)+"="+i(n[P]))}s=c+"?"+a.join("&"),s=s+(s.indexOf("&c8=")<0?"&c8="+i(ue.title):"")+(s.indexOf("&c7=")<0?"&c7="+i(ue.URL):"")+(s.indexOf("&c9=")<0?"&c9="+i(ue.referrer):"");var v=t.browserAcceptsLargeURLs()?g.URL_LENGTH_LIMIT:g.RESTRICTED_URL_LENGTH_LIMIT;if(s.length>v&&s.indexOf("&")>0){var k=s.substr(0,v-8).lastIndexOf("&");s=(s.substring(0,k)+"&ns_cut="+i(s.substring(k+1))).substr(0,v)}return s}var p,O,R,M,B,w,U,F,V,G,x,K,H,Y,j,W,q,z,$,J,X,Z,Q,ee,te,ne,se=this,ie={},ae=g.DEFAULT_PAUSED_ON_BUFFERING_INTERVAL,oe=g.THROTTLING_DELAY,re={},ce=!1;t.extend(se,{getConfiguration:function(){return e||{}},enableSystemClockJumpsDetection:function(e){(e<g.SYSTEM_CLOCK_JUMP_DETECTION_MINIMUM_INTERVAL||!e)&&(e=g.SYSTEM_CLOCK_JUMP_DETECTION_DEFAULT_INTERVAL),t.onSystemClockJump(function(e){ne=e,ce=!0},e)},createLabels:function(e,n,s){var i=!1;if(e==c.HEARTBEAT){var a=isNaN(z)?q:z;z=s,(s<a||ce)&&(i=!0,ce=!1,s<a?(p.getPlaybackSession().addInternalErrorFlag("1"),p.getLogging().infoLog("System clock jump detected","to the far past")):ne?(p.getPlaybackSession().addInternalErrorFlag("3"),p.getLogging().infoLog("System clock jump detected","to the future")):(p.getPlaybackSession().addInternalErrorFlag("2"),p.getLogging().infoLog("System clock jump detected","to the near past")),s=a)}var o={};if("undefined"!=typeof document){var r=document;o.c7=r.URL,o.c8=r.title,o.c9=r.referrer}return o.ns_ts=+new Date+"",o.ns_st_ev=c.toString(e),o.ns_st_mp=g.DEFAULT_PLAYERNAME,o.ns_st_mv=g.STREAMINGANALYTICS_VERSION,o.ns_st_ub="0",o.ns_st_br="0",o.ns_st_pn="1",o.ns_st_tp="0",o.ns_st_it=u.toString(u.SINGLE_CLIP),o.ns_st_sv=g.STREAMINGANALYTICS_VERSION,o.ns_st_smv=g.MODEL_VERSION,o.ns_type="hidden",o.ns_st_ec=p.getEventManager().getEventCounter()+"",o.ns_st_ki=p.getKeepAlive().getInterval()+"",p.getPlaybackSession().getAsset().isAutoCalculatePositionsEnabled()?o.ns_st_po=p.getPlaybackSession().getAsset().getExpectedPlaybackPosition(s)+"":o.ns_st_po=te+"",te=parseInt(o.ns_st_po),t.extend(o,se.getLabels()),p.getPlaybackSession().createLabels(o,s),t.extend(o,n),i&&(p.getPlaybackSession().setPlaybackTimestamp(z-parseInt(o.ns_st_pt)),p.getPlaybackSession().getAsset().setPlaybackTimestamp(z-parseInt(o.ns_st_pt)),p.getPlaybackSession().getAsset().setElapsedTimestamp(z-parseInt(o.ns_st_et)),p.getStateMachine().getCurrentState()==l.BUFFERING_DURING_PLAYBACK&&p.getPlaybackSession().getAsset().setBufferingTimestamp(z-parseInt(o.ns_st_bp))),{eventType:e,eventLabels:o}},newEvent:function(e,n,s,a){se.stopDelayedTransitionTimer();var o=p.getStateMachine().getCurrentState(),r=p.getStateMachine().eventTypeToState(e);if(null==r||r==o)return void p.getLogging().infoLog("Ignored event:",c.toString(e),"during state",t.stateToString(o),s);if(se.isThrottlingEnabled()&&(o==l.PLAYING||o==l.PAUSED)&&(r==l.PLAYING||r==l.PAUSED)&&!a){p.getLogging().infoLog("Throttled event:",c.toString(e),"during state",t.stateToString(o),s,se.getThrottlingDelay(),"ms");var u=function(e,t,s){return function(){se.newEvent(e,n,s,!0)}}(e,0,s);return void(Z=p.getPlatformAPI().setTimeout(u,se.getThrottlingDelay()))}var g=isNaN(z)?q:z;z=n;var d=!1;(n<g||ce)&&(d=!0,ce=!1,n<g?(p.getPlaybackSession().addInternalErrorFlag("1"),p.getLogging().infoLog("System clock jump detected","to the far past")):ne?(p.getPlaybackSession().addInternalErrorFlag("3"),p.getLogging().infoLog("System clock jump detected","to the future")):(p.getPlaybackSession().addInternalErrorFlag("2"),p.getLogging().infoLog("System clock jump detected","to the near past")),n=g),s.ns_st_po||(p.getPlaybackSession().getAsset().isAutoCalculatePositionsEnabled()?p.getStateMachine().getCurrentState()==l.IDLE?s.ns_st_po="0":s.ns_st_po=p.getPlaybackSession().getAsset().getExpectedPlaybackPosition(n)+"":s.ns_st_po=te+""),te=parseInt(s.ns_st_po),p.getPlaybackSession().getAsset().setPlaybackTimeOffset(parseInt(s.ns_st_po)),i(e,n,s);var _=0;isNaN(p.getStateMachine().getLastStateChangeTimestamp())||(_=n-p.getStateMachine().getLastStateChangeTimestamp()),p.getStateMachine().newEvent(e,n),d&&(r!=l.IDLE&&r!=l.PLAYBACK_NOT_STARTED&&r!=l.SEEKING_BEFORE_PLAYBACK&&r!=l.BUFFERING_BEFORE_PLAYBACK&&p.getPlaybackSession().getAsset().setElapsedTimestamp(z),r!=l.BUFFERING_BEFORE_PLAYBACK&&r!=l.BUFFERING_DURING_PAUSE&&r!=l.BUFFERING_DURING_PLAYBACK&&r!=l.BUFFERING_DURING_SEEKING&&r!=l.PAUSED_DURING_BUFFERING||(p.getPlaybackSession().setBufferingTimestamp(z),p.getPlaybackSession().getAsset().setBufferingTimestamp(z)),r!=l.PLAYING&&r!=l.BUFFERING_DURING_PLAYBACK||(p.getPlaybackSession().setPlaybackTimestamp(z),p.getPlaybackSession().getAsset().setPlaybackTimestamp(z)),r!=l.SEEKING_BEFORE_PLAYBACK&&r!=l.SEEKING_DURING_BUFFERING&&r!=l.SEEKING_DURING_PAUSE&&r!=l.SEEKING_DURING_PLAYBACK&&r!=l.BUFFERING_DURING_SEEKING||p.getPlaybackSession().getAsset().setSeekingTimestamp(z)),p.getLogging().log("Transition from",t.stateToString(o),"to",t.stateToString(r),"due to event:",c.toString(e));for(var f=0,S=Q.length;f<S;f++)Q[f](o,r,s,_)},newPseudoEvent:function(e,n,s){if((e==c.LOAD||e==c.ENGAGE)&&p.getStateMachine().getCurrentState()!=l.IDLE)return void p.getLogging().infoLog("Ignored pseudo-event:",c.toString(e),"during state",t.stateToString(p.getStateMachine().getCurrentState()),s);e==c.ERROR&&null==s.ns_st_er&&(s.ns_st_er=r.UNKNOWN_VALUE),e==c.TRANSFER&&null==s.ns_st_rp&&(s.ns_st_rp=r.UNKNOWN_VALUE);var i,a,o,u=!0,g=!1;switch(e){case c.BIT_RATE:i="ns_st_br",a="ns_st_pbr",g=!0;break;case c.PLAYBACK_RATE:i="ns_st_rt",a="ns_st_prt",g=!0;break;case c.VOLUME:i="ns_st_vo",a="ns_st_pvo",g=!0;break;case c.WINDOW_STATE:i="ns_st_ws",a="ns_st_pws",g=!0;break;case c.AUDIO:i="ns_st_at",a="ns_st_pat",g=!1;break;case c.VIDEO:i="ns_st_vt",a="ns_st_pvt",g=!1;break;case c.SUBS:i="ns_st_tt",a="ns_st_ptt",g=!1;break;case c.CDN:i="ns_st_cdn",a="ns_st_pcdn",g=!1;break;default:u=!1}if(u&&s.hasOwnProperty(i)&&(g?(se.getLabels().hasOwnProperty(i)&&(o=se.getLabels()[i],s[a]=o),se.setLabel(i,s[i])):(p.getPlaybackSession().getAsset().hasInternalLabel(i)&&(o=p.getPlaybackSession().getAsset().getInternalLabel(i),s[a]=o),p.getPlaybackSession().getAsset().setInternalLabel(i,s[i]))),u&&p.getStateMachine().getCurrentState()!=l.PLAYING&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PLAYBACK)return void p.getLogging().infoLog("No measurement send for the pseudo-event:",c.toString(e),"during state",t.stateToString(p.getStateMachine().getCurrentState()),s);var d=isNaN(z)?q:z;z=n;var _=!1;(n<d||ce)&&(_=!0,ce=!1,n<d?(p.getPlaybackSession().addInternalErrorFlag("1"),p.getLogging().infoLog("System clock jump detected","to the far past")):ne?(p.getPlaybackSession().addInternalErrorFlag("3"),p.getLogging().infoLog("System clock jump detected","to the future")):(p.getPlaybackSession().addInternalErrorFlag("2"),p.getLogging().infoLog("System clock jump detected","to the near past")),n=d),s.ns_st_po||(p.getPlaybackSession().getAsset().isAutoCalculatePositionsEnabled()?s.ns_st_po=p.getPlaybackSession().getAsset().getExpectedPlaybackPosition(n)+"":s.ns_st_po=te+""),te=parseInt(s.ns_st_po),p.getPlaybackSession().getAsset().setPlaybackTimeOffset(parseInt(s.ns_st_po)),p.getStateMachine().getCurrentState()!=l.IDLE&&p.getStateMachine().getCurrentState()!=l.PLAYBACK_NOT_STARTED&&p.getStateMachine().getCurrentState()!=l.SEEKING_BEFORE_PLAYBACK&&p.getStateMachine().getCurrentState()!=l.BUFFERING_BEFORE_PLAYBACK&&(p.getPlaybackSession().getAsset().addElapsedTime(n),p.getPlaybackSession().getAsset().setElapsedTimestamp(n)),p.getStateMachine().getCurrentState()!=l.PLAYING&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PLAYBACK||(p.getPlaybackSession().addPlaybackTime(n),p.getPlaybackSession().setPlaybackTimestamp(n),p.getPlaybackSession().getAsset().addPlaybackTime(n),p.getPlaybackSession().getAsset().setPlaybackTimestamp(n),p.getPlaybackSession().getAsset().addInterval(parseInt(s.ns_st_po)),p.getPlaybackSession().getAsset().setPlaybackStartPosition(parseInt(s.ns_st_po))),p.getStateMachine().getCurrentState()!=l.BUFFERING_BEFORE_PLAYBACK&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PAUSE&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PLAYBACK&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_SEEKING||(p.getPlaybackSession().addBufferingTime(n),p.getPlaybackSession().setBufferingTimestamp(n),p.getPlaybackSession().getAsset().addBufferingTime(n),p.getPlaybackSession().getAsset().setBufferingTimestamp(n));var f=se.createLabels(e,s,n);p.getPlaybackSession().getAsset().updateDeltaLabels(f.eventLabels),p.getPlaybackSession().getAsset().updateIndependentLabels(f.eventLabels),p.getEventManager().newEvent(f),_&&(p.getStateMachine().getCurrentState()!=l.PLAYING&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PLAYBACK||(p.getPlaybackSession().setPlaybackTimestamp(z),p.getPlaybackSession().getAsset().setPlaybackTimestamp(z)),p.getStateMachine().getCurrentState()!=l.IDLE&&p.getStateMachine().getCurrentState()!=l.PLAYBACK_NOT_STARTED&&p.getStateMachine().getCurrentState()!=l.SEEKING_BEFORE_PLAYBACK&&p.getStateMachine().getCurrentState()!=l.BUFFERING_BEFORE_PLAYBACK&&p.getPlaybackSession().getAsset().setElapsedTimestamp(z),p.getStateMachine().getCurrentState()!=l.BUFFERING_BEFORE_PLAYBACK&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PAUSE&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_PLAYBACK&&p.getStateMachine().getCurrentState()!=l.BUFFERING_DURING_SEEKING||(p.getPlaybackSession().setBufferingTimestamp(z),p.getPlaybackSession().getAsset().setBufferingTimestamp(z)),newState!=l.SEEKING_BEFORE_PLAYBACK&&newState!=l.SEEKING_DURING_BUFFERING&&newState!=l.SEEKING_DURING_PAUSE&&newState!=l.SEEKING_DURING_PLAYBACK&&newState!=l.BUFFERING_DURING_SEEKING||p.getPlaybackSession().getAsset().setSeekingTimestamp(z))},getState:function(){return p.getStateMachine().getCurrentState()},addListener:function(e){Q.push(e)},removeListener:function(e){Q.splice(t.indexOf(e,Q),1)},getLabel:function(e){return re[e]},getLabels:function(){return re},setLabel:function(e,t){null==t?delete re[e]:re[e]=t},setLabels:function(e){for(var t in e)e.hasOwnProperty(t)&&se.setLabel(t,e[t])},getPlatformAPI:function(){return p.getAppCore()?p.getAppCore().getPlatformAPI():o},getExports:function(){return ie},isProperlyInitialized:function(){var e=p.getAppCore().getAppContext(),t=p.getAppCore().getSalt(),n=p.getAppCore().getPixelURL();return e&&n&&t},setThrottlingDelay:function(e){oe=e},getThrottlingDelay:function(){return oe},isThrottlingEnabled:function(){return X},setThrottlingEnabled:function(e){X=e},isLoadingTimeSent:function(){return j},setLoadingTimeSent:function(e){j=e},getLoadTimeOffset:function(){return W},setLoadTimeOffset:function(e){W=e},getInitTimestamp:function(){return q},setPauseOnBufferingInterval:function(e){ae=e},getPauseOnBufferingInterval:function(){return ae},isPauseOnBufferingEnabled:function(){return $},setPauseOnBufferingEnabled:function(e){$=e},startPausedOnBufferingTimer:function(e,n){se.stopPausedOnBufferingTimer(),J=se.getPlatformAPI().setTimeout(function(){var e={},s=t.fixEventTime(e),i=parseInt(n.ns_st_po);e.ns_st_po=i+"",se.newEvent(c.PAUSE_ON_BUFFERING,s,e)},ae)},stopPausedOnBufferingTimer:function(){null!=J&&(se.getPlatformAPI().clearTimeout(J),J=null)},stopDelayedTransitionTimer:function(){Z&&(se.getPlatformAPI().clearTimeout(Z),Z=null)},setLiveEndpointURL:function(e){if(null==e||0==e.length)return null;var t=decodeURIComponent||unescape,n=e.indexOf("?");if(n>=0){if(n<e.length-1){for(var s=e.substring(n+1).split("&"),i=0,a=s.length;i<a;i++){var o=s[i],r=o.split("=");2==r.length?se.setLabel(r[0],t(r[1])):1==r.length&&se.setLabel(g.PAGE_NAME_LABEL,t(r[0]))}e=e.substring(0,n+1)}}else e+="?";return ee=e},getLiveEndpointURL:function(){return ee||("undefined"!=typeof ns_p&&"string"==typeof ns_p.src?ee=ns_p.src.replace(/&/,"&").replace(/&ns__t=\d+/,""):"string"==typeof ns_pixelUrl?ee=ns_pixelUrl.replace(/&/,"&").replace(/&ns__t=\d+/,""):null)},getStaSM:function(){return p},resetPlaybackSession:function(e){var t=p.getPlaybackSession();p.setPlaybackSession(new d(p)),d.resetPlaybackSession(p,t,e)},resetHeartbeat:function(){p.getHeartbeat().pause();var e=p.getHeartbeat().getIntervals();p.setHeartbeat(new f(p)),p.getHeartbeat().setIntervals(e)}});var le,ue;t.isBrowser()?(le=window,ue=document):(le={},ue={location:{href:""},title:"",URL:"",referrer:"",cookie:""}),t.extend(se,{prepareUrl:a}),function(){if(p=new D(se),t.getNamespace().comScore?(ie=t.getNamespace().comScore.exports,p.setAppCore(ie.c())):p.setAppCore(null),e.publisherId){se.setLabel("c2",e.publisherId);var s=e.secure;!s&&p.getAppCore()?s=p.getAppCore().isSecure():!s&&t.isBrowser()&&(s=t.isWebSecure());var i=(s?"https://web.archive.org/web/20180202144621/https://sb":"http://b")+".scorecardresearch.com/p?c1=2";se.setLiveEndpointURL(i)}e.liveEndpointURL&&se.setLiveEndpointURL(e.liveEndpointURL),p.setKeepAlive(new S(p)),p.setHeartbeat(new f(p)),p.setEventManager(new _(p)),p.setStateMachine(new h),p.setLogging(new n(g.LOG_NAMESPACE,e.debug)),p.setPlaybackSession(new d(p)),O=new A(p),R=new v(p),M=new C(p),B=new I(p),w=new b(p),U=new m(p),F=new P(p),V=new y(p),G=new k(p),x=new T(p),K=new L(p),H=new N(p),Y=new E(p),j=!1,W=0,q=+new Date,$=!0,X=!1,Q=[],e.systemClockJumpDetection&&se.enableSystemClockJumpsDetection(parseInt(e.systemClockJumpDetectionInterval))}()}}(),D=function(){return function(e){var n,s,i,a,o,r,c,l=this;t.extend(l,{getAppCore:function(){return n},getStaCore:function(){return e},getEventManager:function(){return s},getStateMachine:function(){return i},getHeartbeat:function(){return a},getKeepAlive:function(){return o},getPlaybackSession:function(){return r},getLogging:function(){return c},setAppCore:function(e){n=e},setKeepAlive:function(e){o=e},setHeartbeat:function(e){a=e},setEventManager:function(e){s=e},setStateMachine:function(e){i=e},setPlaybackSession:function(e){r=e},setLogging:function(e){c=e}})}}(),R=function(){return function(e){function n(e){var n,s;if(n="object"==typeof arguments[1]?arguments[1]:"object"==typeof arguments[2]?arguments[2]:{},s="number"==typeof arguments[1]?arguments[1]:"number"==typeof arguments[2]?arguments[2]:NaN,c.toString(e)){n=t.jsonObjectToStringDictionary(n);var a=t.fixEventTime(n);n.ns_st_po||isNaN(s)||(n.ns_st_po=t.parseInteger(s,0)+""),e==c.PLAY||e==c.PAUSE||e==c.BUFFER||e==c.END||e==c.SEEK_START||e==c.AD_SKIP||e==c.BUFFER_STOP?i.newEvent(e,a,n):i.newPseudoEvent(e,a,n)}}function s(){o&&i.getStaSM().getStateMachine().getCurrentState()!=l.IDLE&&a.notifyEnd()}var i,a=this,o=!0;t.extend(this,{isProperlyInitialized:function(){return i.isProperlyInitialized()},reset:function(e){n(c.END);var t=i;t.getStaSM().getKeepAlive().stop(),t.getStaSM().getHeartbeat().pause(),i=new O(t.getConfiguration()),d.resetPlaybackSession(i.getStaSM(),t.getStaSM().getPlaybackSession(),e)},setPauseOnBufferingInterval:function(e){i.setPauseOnBufferingInterval(e)},getPauseOnBufferingInterval:function(){return i.getPauseOnBufferingInterval()},setKeepAliveInterval:function(e){i.getStaSM().getKeepAlive().setInterval(e)},getKeepAliveInterval:function(){return i.getStaSM().getKeepAlive().getInterval()},setHeartbeatIntervals:function(e){i.getStaSM().getHeartbeat().setIntervals(e)},notifyPlay:function(e,t){i.getStaSM().getLogging().apiCall("notifyPlay",e,t),n(c.PLAY,e,t)},notifyPause:function(e,t){i.getStaSM().getLogging().apiCall("notifyPause",e,t),n(c.PAUSE,e,t)},notifyEnd:function(e,t){i.getStaSM().getLogging().apiCall("notifyEnd",e,t),n(c.END,e,t)},notifyBufferStart:function(e,t){i.getStaSM().getLogging().apiCall("notifyBufferStart",e,t),n(c.BUFFER,e,t)},notifyBufferStop:function(e,t){i.getStaSM().getLogging().apiCall("notifyBufferStop",e,t),n(c.BUFFER_STOP,e,t)},notifyLoad:function(e,t){i.getStaSM().getLogging().apiCall("notifyLoad",e,t),n(c.LOAD,e,t)},notifyEngage:function(e,t){i.getStaSM().getLogging().apiCall("notifyEngage",e,t),n(c.ENGAGE,e,t)},notifySeekStart:function(e,t){i.getStaSM().getLogging().apiCall("notifySeekStart",e,t),n(c.SEEK_START,e,t)},notifySkipAd:function(e,t){i.getStaSM().getLogging().apiCall("notifySkipAd",e,t),n(c.AD_SKIP,e,t)},notifyCallToAction:function(e,t){i.getStaSM().getLogging().apiCall("notifyCallToAction",e,t),n(c.CTA,e,t)},notifyError:function(e,t){i.getStaSM().getLogging().apiCall("notifyError",e,t),n(c.ERROR,e,t)},notifyTransferPlayback:function(e,t){i.getStaSM().getLogging().apiCall("notifyTransferPlayback",e,t),n(c.TRANSFER,e,t)},notifyDrmFail:function(e,t){i.getStaSM().getLogging().apiCall("notifyDrmFail",e,t),n(c.DRM_FAILED,e,t)},notifyDrmApprove:function(e,t){i.getStaSM().getLogging().apiCall("notifyDrmApprove",e,t),n(c.DRM_APPROVED,e,t)},notifyDrmDeny:function(e,t){i.getStaSM().getLogging().apiCall("notifyDrmDeny",e,t),n(c.DRM_DENIED,e,t)},notifyChangeBitrate:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeBitrate",e,t,s),null!=e){var a=s||{};a.ns_st_br=e+"",n(c.BIT_RATE,a,t)}},notifyChangePlaybackRate:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangePlaybackRate",e,t,s),null!=e){var a=s||{};a.ns_st_rt=e+"",n(c.PLAYBACK_RATE,a,t)}},notifyChangeVolume:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeVolume",e,t,s),null!=e){var a=s||{};a.ns_st_vo=e+"",n(c.VOLUME,a,t)}},notifyChangeWindowState:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeWindowState",e,t,s),null!=e){var a=s||{};a.ns_st_ws=e+"",n(c.WINDOW_STATE,a,t)}},notifyChangeAudioTrack:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeAudioTrack",e,t,s),null!=e){var a=s||{};a.ns_st_at=e+"",n(c.AUDIO,a,t)}},notifyChangeVideoTrack:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeVideoTrack",e,t,s),null!=e){var a=s||{};a.ns_st_vt=e+"",n(c.VIDEO,a,t)}},notifyChangeSubtitleTrack:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeSubtitleTrack",e,t,s),null!=e){var a=s||{};a.ns_st_tt=e+"",n(c.SUBS,a,t)}},notifyChangeCdn:function(e,t,s){if(i.getStaSM().getLogging().apiCall("notifyChangeCdn",e,t,s),null!=e){var a=s||{};a.ns_st_cdn=e+"",n(c.CDN,a,t)}},notifyCustomEvent:function(e,t){i.getStaSM().getLogging().apiCall("notifyCustomEvent",e,t),n(c.CUSTOM,e,t)},getLabels:function(){return i.getLabels()},getState:function(){return i.getStaSM().getStateMachine().getCurrentState()},setLabels:function(e){i.setLabels(e)},getLabel:function(e){return i.getLabel(e)},setLabel:function(e,t){i.setLabel(e,t)},getLoadTimeOffset:function(){return i.getLoadTimeOffset()},setLoadTimeOffset:function(e){i.setLoadTimeOffset(e)},setLiveEndpointURL:function(e){return i.setLiveEndpointURL(e)},getLiveEndpointURL:function(){return i.getLiveEndpointURL()},isPauseOnBufferingEnabled:function(){return i.isPauseOnBufferingEnabled()},setPauseOnBufferingEnabled:function(e){i.setPauseOnBufferingEnabled(e)},isThrottlingEnabled:function(){return i.isThrottlingEnabled()},setThrottlingEnabled:function(e){i.setThrottlingEnabled(e)},setThrottlingDelay:function(e){i.setThrottlingDelay(e)},getThrottlingDelay:function(){return i.getThrottlingDelay()},setPlaybackIntervalMergeTolerance:function(e){i.getStaSM().getPlaybackSession().getAsset().setPlaybackIntervalMergeTolerance(e)},getPlaybackIntervalMergeTolerance:function(){return i.getStaSM().getPlaybackSession().getAsset().getPlaybackIntervalMergeTolerance()},createPlaybackSession:function(e){i.getStaSM().getLogging().apiCall("createPlaybackSession",e),e=t.jsonObjectToStringDictionary(e);var n=i.getStaSM().getStateMachine().getCurrentState();n!=l.IDLE&&(i.getStaSM().getLogging().infoLog("Ending the current Clip. It was in state:",t.stateToString(n)),a.notifyEnd()),i.getStaSM().getPlaybackSession().isPlaybackSessionStarted()&&i.resetPlaybackSession(),i.getStaSM().getPlaybackSession().setLabels(e)},getVersion:function(){return g.STREAMINGANALYTICS_VERSION},addListener:function(e){i.addListener(e)},removeListener:function(e){i.removeListener(e)},addMeasurementListener:function(e){i.getStaSM().getEventManager().addMeasurementListener(e)},removeMeasurementListener:function(e){i.getStaSM().getEventManager().removeMeasurementListener(e)},getPlaybackSession:function(){return i.getStaSM().getPlaybackSession()},setExitEndEventEnabled:function(e){o=e},isExitEndEventEnabled:function(){return o},getPlatformAPI:function(){return i.getPlatformAPI()},_getLogHistory:function(){return i.getStaSM().getLogging().getLogHistory()}}),t.isBrowser()&&(window.addEventListener?(window.addEventListener("beforeunload",s),window.addEventListener("unload",s)):window.attachEvent&&(window.attachEvent("onbeforeunload",s),window.attachEvent("onunload",s))),function(){e=t.extend({},e),i=new O(e),i.getStaSM().getLogging().log("New StreamingAnalytics instance with configuration",e)}()}}();return R.PlayerEvents=c,R.InternalStates=l,R.ImplementationType=u,R.Constants=g,R}(),e.ReducedRequirementsStreamingAnalytics=e.ReducedRequirementsStreamingAnalytics||function(){var s={LongFormOnDemand:"12",ShortFormOnDemand:"11",Live:"13",UserGeneratedLongFormOnDemand:"22",UserGeneratedShortFormOnDemand:"21",UserGeneratedLive:"23",Bumper:"99",Other:"00"},i={LinearOnDemandPreRoll:"11",LinearOnDemandMidRoll:"12",LinearOnDemandPostRoll:"13",LinearLive:"21",BrandedOnDemandPreRoll:"31",BrandedOnDemandMidRoll:"32",BrandedOnDemandPostRoll:"33",BrandedOnDemandContent:"34",BrandedOnDemandLive:"35",Other:"00"},a=e.StreamingAnalytics,o=e.StreamingAnalytics.InternalStates||null,r=e.StreamingAnalytics.ImplementationType||null,c=null!=e.StreamingAnalytics.InternalStates&&null!=e.StreamingAnalytics.ImplementationType,l=e.StreamingAnalytics.Constants,u=function(e){function u(e){for(var t in l.STANDARD_METADATA_LABELS)if(l.STANDARD_METADATA_LABELS.hasOwnProperty(t)&&!g(l.STANDARD_METADATA_LABELS[t],f,e))return!1;return!0}function g(e,n,s){return!!(t.exists(e)&&t.exists(n)&&t.exists(s)&&(n.hasOwnProperty(e)&&s.hasOwnProperty(e)&&n[e]===s[e]||!n.hasOwnProperty(e)&&!s.hasOwnProperty(e)))}function p(e){E.getPlaybackSession().setAsset(e),f=e,E.notifyPlay()}function d(e){var t=e||{};t.ns_st_ad="1",t.ns_st_an=++S+"",E.getPlaybackSession().setAsset(t),E.notifyPlay(),h=!1}function _(e,t){y==b.None&&(y=t),h&&y==t&&u(e)?(E.getPlaybackSession().getAsset().setLabels(e),E.getState()!=o.PLAYING&&E.notifyPlay()):p(e),h=!0,y=t}var f=null,S=0,h=!1,E=null,b={None:0,AudioContent:1,VideoContent:2},y=b.None,m=new n("TTSTA",(e||{}).debug);t.extend(this,{playVideoAdvertisement:function(e,n){if(E){m.apiCall("playVideoAdvertisement",e,n);var s={ns_st_ct:"va"};n?s.ns_st_ct="va"+n:m.warn("Calling 'playVideoAdvertisement' without specifying the media type as a second parameter."),n!=i.LinearLive&&n!=i.BrandedOnDemandLive||(s.ns_st_li="1"),e&&t.extend(s,e),d(s)}},playAudioAdvertisement:function(e,n){if(E){m.apiCall("playAudioAdvertisement",e,n);var s={ns_st_ct:"aa"};n?s.ns_st_ct="aa"+n:m.warn("Calling 'playAudioAdvertisement' without specifying the media type as a second parameter."),n!=i.LinearLive&&n!=i.BrandedOnDemandLive||(s.ns_st_li="1"),e&&t.extend(s,e),d(s)}},playVideoContentPart:function(e,n){if(E){m.apiCall("playVideoContentPart",e,n);var i={ns_st_ct:"vc"};n?i.ns_st_ct="vc"+n:m.warn("Calling 'playVideoContentPart' without specifying the media type as a second parameter."),n!=s.Live&&n!=s.UserGeneratedLive||(i.ns_st_li="1"),e&&t.extend(i,e),_(i,b.VideoContent)}},playAudioContentPart:function(e,n){if(E){m.apiCall("playAudioContentPart",e,n);var i={ns_st_ct:"ac"};n?i.ns_st_ct="ac"+n:m.warn("Calling 'playAudioContentPart' without specifying the media type as a second parameter."),n!=s.Live&&n!=s.UserGeneratedLive||(i.ns_st_li="1"),e&&t.extend(i,e),_(i,b.AudioContent)}},stop:function(){E&&(m.apiCall("stop"),E.notifyPause())}}),function(){c&&(t.exists(e)&&(e.customerC2||e.publisherId)||t.getNamespace().comScore?E=new a(e):m.error("Cannot instantiate StreamingAnalytics","The property publisherId was not provided (or incorrectly provided) in the StreamingAnalytics configuration."),E&&E.setLabel("ns_st_it",r.toString(r.REDUCED)))}()};return u.ContentType=s,u.AdType=i,u}(),e})},function(e,t,n){var s;void 0!==(s=function(){function e(e){function t(e){e&&(F=e)}function n(){return F}function s(e,t,n){if(void 0===U.pageContext&&(U.pageContext=U.defaultPageContext),e){var s=new f(this,e,t,n);return w.push(s),s}}function i(){for(var e=0;e<w.length;++e)try{w[e].stop()}catch(e){r(e)}}function a(e){for(var t=0;t<w.length;++t)try{w[t].update(e)}catch(e){r(e)}}function o(e){for(var t=0;t<w.length;++t)try{w[t].sync(e)}catch(e){r(e)}}function r(e){d("",e)}function c(e,t){return _([[e,t]])}function l(e){return e&&void 0!=e.site?e.site:B}function u(e){}function g(){return void 0===U.pageContext.getWindowLocationURL()?"http://":"https"==U.pageContext.getWindowLocationURL().slice(0,5)?"https://web.archive.org/web/20180202144621/https://ssl-":"http://"}function p(){if(!this.nlso)try{var e="";if(e=U.pageContext.getLocalStorageItem("i00"))return"&c="+e;var t="0000",n=t+Math.ceil((new Date).getTime()/1e3).toString(16)+(32768|65535*Math.random()).toString(16)+t;U.pageContext.setLocalStorageItem("i00",n)}catch(e){console.log("error"+e)}return""}function d(e,t){var n=g()+l(t)+"."+D+"/j0="+c(e,t)+"?lt="+(new Date).getTime().toString(36)+p();U.pageContext.preloadImage(n),this.debug(n)}function _(e){var t,n,s,i,a,o=/[+&,;=~]/g;switch(typeof e){case"string":return o.test(e)?escape(e).replace(o,function(e){var t=(void 0)[e];return t||e}):escape(e);case"number":return isFinite(e)?e.toString():"null";case"boolean":case"null":return e.toString();case"object":if(!e)return"null";if(t=[],"number"==typeof e.length&&!e.propertyIsEnumerable("length")){for(i=e.length,n=0;n<i;n+=1)t.push(_(e[n])||"null");return","+t.join("+")+";"}for(s in e)"string"==typeof s&&"site"!=s&&(a=_(e[s]))&&t.push(_(s)+"="+a);return","+t.join("+")+";"}return""}function f(e,t,n,s){function i(e){d.length<g.maxstates&&d.push(e)}function a(e){m=[e,e,Math.round((new Date).getTime()/1e3).toString(36)],i(m),v=!0,P=0}function o(){null!=h&&E<h.length&&(S=h[E++],g.debug("switch syncrate to "+S))}function c(e){if(!k){var t=m[1],n=t;try{n=Math.round(f.getPosition(p))}catch(e){}try{if(t==n)return void(P>=0&&++P==g.pausesync&&(v=!0));P>=g.pausesync?a(n):t<n-1?a(n):t>n?a(n):(m[1]=n,m[1]-m[0]>=S&&n-A>=S&&(v=!0,o()),P=0)}catch(e){r=!0,g.error(e)}}}function l(){k||(v=!0,k=!0,u(null))}function u(e){if(v){try{p.width&&(_.sx=p.width),p.videoWidth&&(_.sx=p.videoWidth),p.height&&(_.sy=p.height),p.videoHeight&&(_.sy=p.videoHeight)}catch(e){}void 0!==U.pageContext.getDeviceID&&void 0!==U.pageContext.getDeviceID()&&(_[U.pageContext.getDeviceID().id_name]=U.pageContext.getDeviceID().id_value),_.uid=b,_.pst=d;var t;try{_.dur&&0!=_.dur||(_.dur=f.getDuration(p))}catch(e){}try{t=f.getMeta(p)}catch(e){}_.vt=Math.round((new Date).getTime()/1e3)-y,g.send(t,_),A=m[1]}v=!1}var g,p,d,_,f,S,h,E,b=Math.round(1e10*Math.random()).toString(36),y=Math.round((new Date).getTime()/1e3),m=[0,0,y.toString(36)],P=0,A=0,v=!0,k=!1;g=e,p=t,f=s||g.HTML5Adapter,_=function(e){var t=new Object;for(var n in e)t[n]=e[n];return t}(n),d=new Array,d.push(m),E=0,S=e.syncrate,h=e.getSyncRates(),o(),this.update=c,this.stop=l,this.sync=u}function S(e){return{pl:"HTML 5 Video",pv:"HTML 5",sx:screen.width,sy:screen.height}}function h(e){return Math.round(e.duration)}function E(e){return e.currentTime}function b(e){return{pl:"DEF",pv:version,sx:screen.width,sy:screen.height}}function y(e){return(new Date).getTime()/1e3}function m(e){return 0}function P(e){return{pl:"MSWM",plv:e.versionInfo,sx:screen.width,sy:screen.height}}function A(e){ return e.CurrentPosition?e.CurrentPosition:e.currentPosition?e.currentPosition:e.controls&&e.controls.currentPosition?e.controls.currentPosition:e.Controls&&e.Controls.currentPosition?e.Controls.currentPosition:0}function v(e){if(e.currentMedia){if(e.currentMedia.Duration)return e.currentMedia.Duration;if(e.currentMedia.duration)return e.currentMedia.duration}else if(e.CurrentMedia){if(e.CurrentMedia.duration)return e.CurrentMedia.duration;if(e.CurrentMedia.Duration)return e.CurrentMedia.Duration}}function k(e){return{pl:"RV",plv:e.GetVersionInfo(),sx:screen.width,sy:screen.height}}function C(e){return e.GetPosition()/1e3}function I(e){return e.GetLength()/1e3}function T(e,t){localStorage.setItem(e,t)}function L(e){return localStorage.getItem(e)}function N(e){(new Image).src=e}function O(){return document.location.href}this.version="2.0.0";var D="2cnt.net",R=200,M=2e3,B="default",w=new Array;this.namespace="com.kma.springstreams",this.syncrate=20,this.pausesync=6,this.maxstates=50;var U=this;this.pageContext;var F;!function(e){var n;if(e){for(var s in e)s==D&&(n=e[s]);n&&t(n.syncrates)}}(function(){return{"2cnt.net":{syncrates:[3,7,10,10,10,10,10,60]}}}()),e&&(B=e),function(){setInterval(a,R),setInterval(o,M)}(),this.getSyncRates=n,this.track=s,this.unload=i,this.doUpdate=a,this.doSync=o,this.error=r,this.debug=u,this.send=d,this.defaultPageContext={getLocalStorageItem:L,setLocalStorageItem:T,preloadImage:N,getWindowLocationURL:O},this.HTML5Adapter={getMeta:S,getPosition:E,getDuration:h},this.DefaultAdapter={getMeta:b,getPosition:y,getDuration:m},this.WMStreamAdapter={getMeta:P,getPosition:A,getDuration:v},this.RVStreamAdapter={getMeta:k,getPosition:C,getDuration:I}}return e.prototype.setPageContext=function(e){this.pageContext=e},e}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s,i;!function(a,o){s=o,void 0!==(i="function"==typeof s?s.call(t,n,t,e):s)&&(e.exports=i)}(0,function(){function e(e){e=e||{},this.alwaysUseHttps=!0===e.alwaysUseHttps||!1,this.forceBBCHost=!1,this._sscCookieId=void 0,this._s1CookieId=void 0,this._uidCookieId=void 0,".co.uk"===e.forceBBCHost?this.forceBBCHost=".co.uk":".com"===e.forceBBCHost&&(this.forceBBCHost=".com")}var t,n,s,i,a,o,r;return t="ckpf_sscid",n="s1",s="ckpf_uid",i="ssc.api.bbc.co.uk",a="ssc.api.bbc.com",o="b.scorecardresearch.com",r="sb.scorecardresearch.com",e.prototype.getCookie=function(e){return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},e.prototype.getLocation=function(){return window.location},e.prototype.getCookieId=function(){var e,t,n,s,o;return t=this.getSSCHostname(),n=this.getLocation(),s=t===i&&-1!==n.hostname.search(/bbc.co.uk$/),o=t===a&&-1!==n.hostname.search(/bbc.com$/),(s||o)&&(null!==(e=this.getSSCCookieId())&&void 0!==e||(s?e=this.getS1CookieId():o&&(e=this.getUidCookieId()))),e},e.prototype.getS1CookieId=function(){return void 0===this._s1CookieValue&&(this._s1CookieValue=this.getCookie(n)),this._s1CookieValue},e.prototype.getUidCookieId=function(){return void 0===this._uidCookieValue&&(this._uidCookieValue=this.getCookie(s)),this._uidCookieValue},e.prototype.getSSCCookieId=function(){return void 0===this._sscCookieValue&&(this._sscCookieValue=this.getCookie(t)),this._sscCookieValue},e.prototype.isValidId=function(e){var t;return t=!1,"string"==typeof e&&-1!==e.search(/^[^(?!<>\s)]+$/)&&(t=!0),t},e.prototype.getAnalyticsLocation=function(e,t){var n,s,i,a,o;return this.getSSCHostname(),s=this.getLocation(),n={sscId:void 0},"string"!=typeof e&&(e=""),void 0!==t&&!1!==this.isValidId(t)||(t=this.getCookieId()),this.alwaysUseHttps||"https:"===s.protocol?n.protocol="https:":n.protocol="http:",a=-1!==e.search(/ns_alias=/),o=this.isValidId(t),n.hostname=a||o?this.getScorecardresearchHostname():this.getSSCHostname(),o&&(""===e?e="?ns_alias="+t:(i=e.search(/\?/)+1,e=[e.slice(0,i),"ns_alias="+t+"&",e.slice(i)].join("")),n.sscId=t),n.search=e,-1!==n.hostname.search(/scorecardresearch.com$/)?n.pathname="/p":n.pathname="/",n.href=n.protocol+"//"+n.hostname+n.pathname+n.search,n},e.prototype.getSSCHostname=function(){var e;return e=this.getLocation(),".com"===this.forceBBCHost||".co.uk"!==this.forceBBCHost&&-1===e.hostname.search(/bbc\.co\.uk$/)?a:i},e.prototype.getScorecardresearchHostname=function(){var e;return e=this.getLocation(),"https:"===e.protocol?r:o},e})},function(e,t,n){var s;void 0!==(s=function(e){"use strict";var t=n(8),s=n(5);return{EchoClient:n(18),Media:n(10),MediaId:n(9),Environment:s,Enums:n(0),ConfigKeys:n(3),Debug:n(2),getImplementationVersion:function(){return t.VERSION}}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e,n,s,r){var c=this;s=s||{},i.assertContainsValue(o.ApplicationType,n,'appType should be one of Enums.ApplicationType, got "'+n+'"'),this.state={counterNameSet:!1};var l=t.ConfigGenerator.generate(s);this._env=void 0!==r?r:new t.Environment;var _=t.Environment.getOrbCookiesPolicy();_&&!1===_.performance?this._hasOptedOutOfPerformanceReporting=!0:this._hasOptedOutOfPerformanceReporting=!1;var f;l&&"string"==typeof l[a.ECHO_DEVICE_ID]&&(f=i.trim(l[a.ECHO_DEVICE_ID]),f.length>0?(l[a.ECHO_DEVICE_ID]=f,this._deviceId=f):l[a.ECHO_DEVICE_ID]=void 0),l&&l[a.COMSCORE_HOST]===p&&!l[a.ECHO_DEVICE_ID]&&(f=g.getCookieValueByName(d))&&(this._deviceId=f,l[a.ECHO_DEVICE_ID]=f),l&&!1===l[a.ECHO_AUTO_START]?this._autoStart=!1:this._autoStart=!0,this._setConsumers(e,n,l,this._env),l&&l[a.USE_ESS]?this._essEnabled=!0:this._essEnabled=!1,l&&l[a.ESS_HOSTNAME]&&(u.essHost=l[a.ESS_HOSTNAME]),l&&!1===l[a.ECHO_ENABLED]?this._isEnabled=!1:this._isEnabled=!0,this._liveBroker=null,this._onDemandBroker=null,this._bitrate=null,this._codec=null,this._cdn=null,this._suppressingPlayEvent=!1,this._suppressedPlayEventLabels=null,this.addLabel("bbc_id_wait","1"),t.Environment.getOrbIdCta(function(e){c.removeLabel("bbc_id_wait"),e&&"function"==typeof e.getIStatsLabels&&c.addLabels(e.getIStatsLabels())}),l&&l[a.ECHO_CACHE_MODE]&&(this._cacheMode=l[a.ECHO_CACHE_MODE]),this._isEnabled&&this._autoStart&&this.start()}var s=n(2),i=n(1),a=n(3),o=n(0),r=n(26),c=n(27),l=n(4),u=n(12),g=n(7),p="sa.bbc.co.uk",d="ckpf_echo_device_id";return t.prototype.start=function(){this._isEnabled&&!this._hasStarted&&(this._hasStarted=!0,this._delegate("start"))},t.prototype.enable=function(){return this._isEnabled||(this._isEnabled=!0,this._delegate("enable"),this._autoStart&&!this._hasStarted&&this.start()),this},t.prototype.disable=function(){return this._isEnabled&&(this._clearMedia(),this._isEnabled=!1,this._delegate("disable")),this},t.prototype.isEnabled=function(){return this._isEnabled},t.prototype.getComScoreDeviceId=function(){var e;return this.consumers[t.Consumers.COMSCORE]&&(e=this.consumers[t.Consumers.COMSCORE])instanceof t.ComScoreDelegate&&"function"==typeof e.getDeviceId?e.getDeviceId():null},t.prototype.setTraceId=function(e){this._delegate("setTraceId",[e])},t.ConfigGenerator=n(19),t.LabelCleanser=n(6),t.Util=n(1),t.ComScoreDelegate=n(21),t.SpringDelegate=n(25),t.Environment=n(5),t.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStarted},t.prototype._setConsumers=function(e,n,s,i){this.consumers={};var o=t.LabelCleanser.cleanLabelValue("app_name",e);return!1===this._hasOptedOutOfPerformanceReporting&&(s&&s[a.COMSCORE_ENABLED]&&(this.consumers[t.Consumers.COMSCORE]=new t.ComScoreDelegate(o,n,s,i)),s&&s[a.BARB_ENABLED]&&(this.consumers[t.Consumers.BARB]=new t.SpringDelegate(o,n,s,i))),this},t.prototype._delegate=function(e,t){var n,s;for(n in this.consumers)n&&(s=this.consumers[n],s[e].apply(s,t));return this},t.prototype.addLabels=function(e){return this._delegate("addLabels",[t.LabelCleanser.cleanLabels(e)]),this},t.prototype.addLabel=function(e,t){if("string"!=typeof e)return void s.error("Label key must be a string");if(null===t||void 0===t)return void s.error("Label cannot be null/undefined");var n={};return n[e]=t,this.addLabels(n)},t.prototype.addManagedLabel=function(e,n){return this._delegate("addManagedLabel",[t.LabelCleanser.cleanLabelKey(e),t.LabelCleanser.cleanLabelValue(e,n)]),this},t.prototype.removeLabels=function(e){for(var n=[],s=0,i=e.length;s<i;s++)n.push(t.LabelCleanser.cleanLabelKey(e[s]));return this._delegate("removeLabels",[n]),this},t.prototype.removeLabel=function(e){return this.removeLabels([e])},t.prototype.setLoggedInToBBCId=function(e){return this._delegate("setLoggedInToBBCId",[e]),this},t.prototype.setLoggedOutOfBBCId=function(){return this._delegate("setLoggedOutOfBBCId"),this},t.prototype.setAppVersion=function(e){return this._delegate("setAppVersion",[e]),this},t.prototype.setCounterName=function(e){var n,s,i=t.LabelCleanser.cleanCounterName(e);for(n in this.consumers)n&&(s=this.consumers[n],s.requiresLabelCleansing()?s.setCounterName(i):s.setCounterName(e));return this.state.counterNameSet=!0,this},t.prototype.setContentLanguage=function(e){return this._delegate("setContentLanguage",[e]),this},t.prototype.setCacheMode=function(e){return this._delegate("setCacheMode",[e]),this._cacheMode=e,this},t.prototype.getCacheMode=function(){return this._cacheMode},t.prototype.flushCache=function(){this._isEnabled&&this._delegate("flushCache")},t.prototype.viewEvent=function(e,n){if(this._eventsEnabled()){var s,i,a=t.LabelCleanser.cleanCounterName(e),o=t.LabelCleanser.cleanLabels(n);for(s in this.consumers)s&&(i=this.consumers[s],i.requiresLabelCleansing()?i.viewEvent(a,o):i.viewEvent(e,n));return this.state.counterNameSet=!0,this.consumers[t.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0),this}},t.prototype.userActionEvent=function(e,n,i){if(this._eventsEnabled())return this.state.counterNameSet?(this._delegate("userActionEvent",[e,n,t.LabelCleanser.cleanLabels(i)]),this.consumers[t.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0),this):(s.error("userActionEvent not available before a call to viewEvent (to set counter name)."),this)},t.prototype.errorEvent=function(e,n){if(this._eventsEnabled())return this._delegate("errorEvent",[e,t.LabelCleanser.cleanLabels(n)]),this},t.prototype.setPlayerName=function(e){i.assert("string"==typeof e&&e.length>0,'setPlayerName: name must be string with length, got "'+e+'"');var n,s,a=t.LabelCleanser.cleanLabelValue("player_name",e);for(n in this.consumers)n&&(s=this.consumers[n],s.requiresLabelCleansing()?s.setPlayerName(a):s.setPlayerName(e));return this},t.prototype.setPlayerVersion=function(e){i.assert("string"==typeof e&&e.length>0,'setPlayerVersion: version must be string with length, got "'+e+'"');var n,s,a=t.LabelCleanser.cleanLabelValue("player_version",e);for(n in this.consumers)n&&(s=this.consumers[n],s.requiresLabelCleansing()?s.setPlayerVersion(a):s.setPlayerVersion(e));return this},t.prototype.setPlayerIsPopped=function(e){return i.assert("boolean"==typeof e,'setPlayerIsPopped: isPopped must be boolean, got "'+e+'"'),this._delegate("setPlayerIsPopped",[e]),this},t.prototype.setPlayerWindowState=function(e){return i.assertContainsValue(o.WindowState,e,'The window state must be set as a member of Enums.WindowState, got "'+e+'"'),this._delegate("setPlayerWindowState",[e]),this},t.prototype.setPlayerVolume=function(e){return i.assert(e<=100&&e>=0,"volume must be 0-100, got: "+e),e<=100&&e>=0&&this._delegate("setPlayerVolume",[e]),this},t.prototype.setPlayerIsSubtitled=function(e){return i.assert("boolean"==typeof e,'setPlayerIsSubtitled: isSubtitled must be a boolean, got "'+e+'"'),this._delegate("setPlayerIsSubtitled",[e]),this},t.prototype.setPlayerDelegate=function(e){e=e||{};var t,n,s,a=["getTimestamp","getPosition"],o=!1;for(n=0;n<a.length;n++)t=a[n],s=e.hasOwnProperty(t)&&"function"==typeof e[t],i.assert(s,'The player delegate must implement "'+t+'"'),s||(o=!0);return o||(this._playerDelegate=e),this},t.prototype.setMedia=function(e){if(this._eventsEnabled()){this._clearMedia();var t=e.getClone();if(!this.state.counterNameSet)return void s.error("setMedia: Must have a countername set or view event sent first");this.media=t,this.addLabel(l.ESS_ENABLED,this._essEnabled?"true":"false");var n=o.MediaConsumptionMode.LIVE;this.media.getMediaConsumptionMode()===n?this._initLiveBroker():this._initOnDemandBroker(),this._delegate("setMedia",[this.media])}},t.prototype.liveMediaUpdate=function(e,t,n){this._eventsEnabled()&&this._avEventsEnabled()&&e&&(this._suppressingPlayEvent=!1,e.setBitrate(this._bitrate||this.media.getBitrate()),e.setCodec(this._codec||this.media.getCodec()),e.setCDN(this._cdn||this.media.getCDN()),this.media=e,this._delegate("liveMediaUpdate",[e,t,n]))},t.prototype.setMediaLength=function(e){return this.media?this.media.isOnDemand()?"number"!=typeof(e=this._cleanPosition(e))?(s.error("setMediaLength: Length must be a positive number"),this):(this._delegate("setMediaLength",[e]),this.media.setLength(e),this):(s.error("setMediaLength: Length should be set to zero prior to passing the media object to Echo for live media"),this):(s.error("setMediaLength: Must call setMedia first"),this)},t.prototype.setMediaBitrate=function(e){return i.assert(e>0,'setMediaBitrate: bitrate must be > 0, got "'+e+'"'),this._bitrate=e,this._delegate("setMediaBitrate",[e]),this},t.prototype.setMediaCodec=function(e){return i.assert("string"==typeof e,'setMediaCodec: must be string value, got "'+typeof e+'"'),this._codec=t.LabelCleanser.cleanLabelValue(l.MEDIA_CODEC,e),this._delegate("setMediaCodec",[this._codec]),this},t.prototype.setMediaCDN=function(e){return i.assert("string"==typeof e,'setMediaCDN: must be string value, got "'+typeof e+'"'),this._cdn=t.LabelCleanser.cleanLabelValue(l.MEDIA_CDN,e),this._delegate("setMediaCDN",[this._cdn]),this},t.prototype.setEssSuccess=function(e){this.addLabel(l.ESS_SUCCESS,e?"true":"false")},t.prototype.setEssError=function(e,t){this.addLabel(l.ESS_ERROR,e.toString().toLowerCase()),e.toString()===o.EssError.STATUS_CODE.toString()&&this.addLabel(l.ESS_STATUS_CODE,t),this._delegate("liveEnrichmentFailed")},t.prototype._avEventsEnabled=function(){return i.assert(!!this.media,"setMedia() must be called prior to this method")&&i.assert(!!this._playerDelegate,"setPlayerDelegate not called or not configured correctly")},t.prototype.getLiveBroker=function(){return this._liveBroker},t.prototype._initLiveBroker=function(){this._avEventsEnabled()&&this.media.getMediaConsumptionMode()===o.MediaConsumptionMode.LIVE&&(this._liveBroker=new r(this._playerDelegate,this.media,this,this._env,this._essEnabled),this._delegate("setBroker",[this._liveBroker]))},t.prototype.getOnDemandBroker=function(){return this._onDemandBroker},t.prototype._initOnDemandBroker=function(){this._avEventsEnabled()&&this.media.getMediaConsumptionMode()!==o.MediaConsumptionMode.LIVE&&(this._onDemandBroker=new c(this._playerDelegate,this.media,this),this._delegate("setBroker",[this._onDemandBroker]))},t.prototype._cleanPosition=function(e){return void 0!==e&&null!==e&&(e=Math.floor(e)),(void 0===e||isNaN(e)||!isFinite(e)||e<0)&&(e=0),e},t.prototype.avPlayEvent=function(e,n){if(this._eventsEnabled()&&this._avEventsEnabled()){var s,i;if(s=this.media.isLive(),!s&&this._isPlaying&&this._onDemandBroker&&(i=this._onDemandBroker.getPosition(),(0===this._previousPlayPosition||Math.abs(e-i)>1e4)&&this._delegate("avPauseEvent",[i,{}])),this._isPlaying=!0,s&&this._liveBroker)e=this._liveBroker.getPosition(),this._liveBroker.start();else if(!s&&this._onDemandBroker){if(e=this._cleanPosition(e),this._previousPlayPosition=e,this._positionExceedsMediaLength(e))return;this._onDemandBroker.setPosition(e),this._onDemandBroker.start()}return s&&this.media.isEssEnriched()&&this._suppressingPlayEvent?this._suppressedPlayEventLabels=n:this._delegate("avPlayEvent",[e,t.LabelCleanser.cleanLabels(n)]),this.consumers[t.Consumers.COMSCORE]&&(this.state.comscoreEventSent=!0),this}},t.prototype._avNavigationEvent=function(e,n,s,i){this._avEventsEnabled()&&(this._isPlaying=!1,this.media.isLive()?(this._liveBroker&&(this._liveBroker.stop(),n=this._liveBroker.getPosition()),this.media.isEssEnriched()&&!this._suppressingPlayEvent&&(this._suppressingPlayEvent=!0)):this._onDemandBroker&&(n=this._cleanPosition(n),n=this._preventPositionExceedingMediaLength(n),this._onDemandBroker.stop()),"avRewindEvent"===e||"avFastForwardEvent"===e?this._delegate(e,[n,i,t.LabelCleanser.cleanLabels(s)]):this._delegate(e,[n,t.LabelCleanser.cleanLabels(s)]))},t.prototype.avPauseEvent=function(e,t){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avPauseEvent",e,t),this},t.prototype.avBufferEvent=function(e,t){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avBufferEvent",e,t),this},t.prototype.avEndEvent=function(e,t){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avEndEvent",e,t),this.media=null,this},t.prototype.avRewindEvent=function(e,t,n){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avRewindEvent",e,n,t),this},t.prototype.avFastForwardEvent=function(e,t,n){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avFastForwardEvent",e,n,t),this},t.prototype.avSeekEvent=function(e,t){if(this._eventsEnabled()&&this._avEventsEnabled())return this._avNavigationEvent("avSeekEvent",e,t),this},t.prototype.avUserActionEvent=function(e,n,s,i){if(this._eventsEnabled()&&this._avEventsEnabled()){this._liveBroker?s=this._liveBroker.getPosition():(s=this._cleanPosition(s),s=this._preventPositionExceedingMediaLength(s));var a=t.LabelCleanser.cleanLabels(i);return this._delegate("avUserActionEvent",[e,n,s,a]),this}},t.prototype.releaseSuppressedPlay=function(){if(this._eventsEnabled()&&this._avEventsEnabled())return this._suppressingPlayEvent&&(this._suppressingPlayEvent=!1,this.avPlayEvent(this._liveBroker.getPosition(),this._suppressedPlayEventLabels)),this},t.prototype._clearMedia=function(){this.removeLabel(l.MEDIA_TIMESTAMP),this.removeLabel(l.ESS_ENABLED),this.removeLabel(l.ESS_ENRICHED),this.removeLabel(l.ESS_SUCCESS),this.removeLabel(l.ESS_ERROR),this.removeLabel(l.ESS_STATUS_CODE),null!==this.media&&(this.media=null),this._liveBroker instanceof r&&(this._liveBroker.stop(),this._liveBroker=null),this._onDemandBroker instanceof c&&(this._onDemandBroker.stop(),this._onDemandBroker=null),this._isPlaying=void 0,this._previousPlayPosition=void 0},t.prototype._positionExceedsMediaLength=function(e){return!!(this.media&&this.media.length>0&&e>=this.media.length-1e3)},t.prototype._preventPositionExceedingMediaLength=function(e){return this._positionExceedsMediaLength(e)?this.media.length:e},t.Consumers={COMSCORE:1,BARB:2},t}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e){return"string"==typeof e&&e.length>0}function s(e){return e.match(/[a-zA-Z]+/)}function i(e){return"string"==typeof e&&(e=e.toUpperCase(),_.ReportingProfiles.hasOwnProperty(e))}function a(e){return"string"==typeof e&&(e=e.toUpperCase(),_.EchoCacheMode.hasOwnProperty(e))}function o(e){return a(e[h.ECHO_CACHE_MODE])?f.assert("boolean"==typeof e[h.ECHO_ENABLED],'Config: "enabled" must be boolean, got '+e[h.ECHO_ENABLED])&&f.assert("boolean"==typeof e[h.ECHO_AUTO_START],'Config: "auto_start" must be boolean, got '+e[h.ECHO_AUTO_START])&&f.assert(null===e[h.ECHO_DEVICE_ID]||"string"==typeof e[h.ECHO_DEVICE_ID]&&e[h.ECHO_DEVICE_ID].length,"ECHO.DEVICE_ID must be an non-empty string"):(d.error("Config Error: KEYS.ECHO_CACHE_MODE Invalid cache mode specified"),!1)}function r(e){if(!1===e[h.COMSCORE_ENABLED])return!0;if(!t(e[h.REPORTING_PROFILE])){if(!t(e[h.COMSCORE_HOST]))return d.error("Config Error: Must have config value for COMSCORE_HOST or REPORTING_PROFILE"),!1;if("scorecardresearch.com"!==e[h.COMSCORE_HOST]&&"sa.bbc.co.uk"!==e[h.COMSCORE_HOST])return d.error("Config Error: KEYS.COMSCORE_HOST Should be one of scorecardresearch.com or sa.bbc.co.uk"),!1}return i(e[h.REPORTING_PROFILE])?f.assert("boolean"==typeof e[h.COMSCORE_ENABLED],'ComScore config: "ENABLED" must be boolean'):(d.error("Config Error: KEYS.REPORTING_PROFILE Invalid reporting profile specified"),!1)}function c(e){return!1===e[h.BARB_ENABLED]||(t(e[h.BARB_SITE_CODE])?s(e[h.BARB_SITE_CODE])?"boolean"==typeof e[h.BARB_DEBUG]||(d.error("Config Error: KEYS.BARB_DEBUG must be a boolean"),!1):(d.error("Config Error: KEYS.BARB_SITE_CODE must match [a-zA-Z]"),!1):(d.error("Config Error: KEYS.BARB_SITE_CODE must have a value"),!1))}function l(e){var t=e[h.SSC_HOSTNAME];return"boolean"!=typeof e[h.USE_SSC]?(d.error("Config Error: KEYS.USE_SSC must be boolean"),!1):null===t||".com"===t||".co.uk"===t||(d.error("Config Error: SSC_HOSTNAME must be one of .com, .co.uk or null"),!1)}function u(e){return"string"==typeof e&&(e=e.toUpperCase(),_.ReportingProfiles.hasOwnProperty(e))?_.ReportingProfiles[e]:null}function g(e){return"string"==typeof e&&(e=e.toUpperCase(),_.EchoCacheMode.hasOwnProperty(e))?_.EchoCacheMode[e]:null}function p(e){var t,n;e=e||{},e[h.REPORTING_PROFILE]&&(t=u(e[h.REPORTING_PROFILE])),t||(t=u("PUBLIC_SERVICE")),e[h.ECHO_CACHE_MODE]&&(n=g(e[h.ECHO_CACHE_MODE])),n||(n=g("OFFLINE"));var s=f.extend(E,!0,t,e||{},b);return o(s)&&r(s)&&c(s)&&l(s)?s:null}var d=n(2),_=n(0),f=n(1),S=n(8),h=n(3),E={};E[h.ECHO_ENABLED]=!0,E[h.ECHO_AUTO_START]=!0,E[h.ECHO_DEVICE_ID]=null,E[h.REPORTING_PROFILE]="PUBLIC_SERVICE",E[h.ECHO_CACHE_MODE]="OFFLINE",E[h.COMSCORE_ENABLED]=!0,E[h.COMSCORE_KEEPALIVE_INTERVAL]=2628e3,E[h.BARB_ENABLED]=!1,E[h.BARB_DEBUG]=!1,E[h.BARB_SITE_CODE]="bbcdotcom",E[h.TEST_SERVICE_ENABLED]=!1,E[h.USE_ESS]=!1,E[h.ESS_HOSTNAME]="ess.api.bbci.co.uk",E[h.USE_SSC]=!1,E[h.SSC_HOSTNAME]=null;var b={};return b[h.ECHO_NAME]=S.NAME,b[h.ECHO_VERSION]=S.VERSION,{defaultConfig:E,fixedConfig:b,generate:p}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s,i;s=[n(4)],void 0!==(i=function(e){"use strict";function t(e,t,n){this._persistantLabels={},this._urlParams="",this._cut="",this._httpGet=e,this._eventCount=0,this._isApp=t,this._isScorecardDomain=!0===n,this._hasStarted=!1}return t.IS_ECHO_APP_TAG=!0,t.URL_LIMIT=2048,t.prototype.setPixelURL=function(e){this._url=this._makeBaseUrl(e)},t.prototype.setCustomerC2=function(t){this.setLabel(e.COMSCORE_CUSTOMER,t)},t.prototype.start=function(){this._hasStarted||(this._hasStarted=!0)},t.prototype.setLabel=function(e,t){null===t?this.removeLabel(e):this._persistantLabels[e]=t},t.prototype.removeLabels=function(e){for(var t in e)void 0!==this._persistantLabels[e[t]]&&delete this._persistantLabels[e[t]]},t.prototype.removeLabel=function(e){void 0!==this._persistantLabels[e]&&delete this._persistantLabels[e]},t.prototype.view=function(e){this.send("view",e)},t.prototype.hidden=function(e){this.send("hidden",e)},t.prototype.send=function(e,t,n){var s,i,a=this._persistantLabels,o={};if(this._hasStarted){this._eventCount++;for(i in a)o[i]=a[i];for(i in t)o[i]=t[i];o.ns_type=e,this._isApp&&(o.ns_ap_ev=e,o.ns_ap_ec=this._eventCount),o[this._isApp?"ns_ts":"ns__t"]=+new Date,s=this._createUrl(o),this._httpGet(s,n)}},t.prototype._createUrl=function(t){var n,s=window.encodeURIComponent||escape,i=this._url;this._urlParams="",this._cut="",t.hasOwnProperty("name")&&this._addUrlParam("name",t.name);for(n in t)"name"!==n&&"ns_referrer"!==n&&this._addUrlParam(n,t[n]);return t.hasOwnProperty("ns_referrer")&&this._addUrlParam(this._isScorecardDomain?e.ENV_REFERRER:"ns_referrer",t.ns_referrer),i+=this._urlParams,this._cut.length?i+="ns_cut="+s(this._cut.replace(/&$/,"")):i=i.replace(/&$/,""),i},t.prototype._addUrlParam=function(e,n){var s=window.encodeURIComponent||escape,i=s(e)+"="+s(n)+"&",a=t.URL_LIMIT-8;this._url.length+this._urlParams.length+i.length<a?this._urlParams+=i:this._cut+=i},t.prototype._makeBaseUrl=function(e){for(var t=-1,n=e.charAt(e.length-1),s=0,i=e.length;s<i;s++)"?"===e.charAt(s)&&(t=s);return-1===t?e+="?":"?"!==n&&"&"!==n&&(e+="&"),e},t}.apply(t,s))&&(e.exports=i)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(){return-1}function s(e){return e+"//"+("https:"===e?"s":"")+"b."+v+"/p?"}function i(e,t){return e+"//"+A+"/"+t+"/s"}function a(e,t,n){return e===v?s(t):i(t,n)}function o(e){return null===e?y:e}function r(e){return null!==e&&e.isValueValid()?e.getValue():y}function c(e){var t=e.getMediaConsumptionMode(),n=e.getServiceIdObject(),s=e.getVersionIdObject(),i=e.getClipIdObject(),a=e.getEpisodeIdObject(),o=e.getVpIdObject(),r=e.getNonPipsContentIdObject();return t===b.MediaConsumptionMode.LIVE&&!0===e.isEssEnriched()&&s.isValueValid()?s:t===b.MediaConsumptionMode.LIVE&&n.isValueValid()?n:r.isValueValid()?r:s.isValueValid()?s:i.isValueValid()?i:a.isValueValid()?a:o.isValueValid()?o:n.isValueValid()?n:null}function l(e){var t=c(e),n=e.getVersionIdObject(),s=e.getEpisodeIdObject(),i=e.getClipIdObject();if(null!==t){var a=t.getIdType();if(e.isLive()){if(a===b.MediaIdType.SERVICE||e.isEssEnriched())return!1}else{if(!(a!==b.MediaIdType.SERVICE||n.isValueSet()||s.isValueSet()||i.isValueSet()))return!0;if(a!==b.MediaIdType.VPID)return!1}}return!0}function u(e){var t={},n=c(e);return t[d.PLAYLIST_NAME]=null===n?y:n.getValue(),t}function g(e){var t={},n=c(e),s=o(e.getAvType()),i=o(e.getLength()),a=o(e.getRetrievalType()),u=e.getBitrate(),g=e.getScheduleMode(),p=e.getCodec(),_=e.getCDN();t[d.MEDIA_PART_NUMBER]=1,t[d.MEDIA_TOTAL_PARTS]=1,t[d.MEDIA_LENGTH]=i,t[d.MEDIA_MEDIUM]=s,t[d.MEDIA_RETRIEVAL_TYPE]=a,null===e.getMediaConsumptionMode()?(t[d.MEDIA_STREAM_TYPE]=y,t[d.MEDIA_LIVE_OR_ONDEMAND]=y):e.isLive()||s!==y?e.isOnDemand()||e.isDownload()?(t[d.MEDIA_STREAM_TYPE]=e.isVideo()?"vod":"aod",t[d.MEDIA_LIVE_OR_ONDEMAND]="on-demand"):(e.isEssEnriched()?t[d.ESS_ENRICHED]="true":(t[d.ESS_ENRICHED]="false",t[d.MEDIA_IS_LIVE]="1"),t[d.MEDIA_STREAM_TYPE]="live",t[d.MEDIA_LIVE_OR_ONDEMAND]="live"):t[d.MEDIA_STREAM_TYPE]=y,u>0&&(t[d.MEDIA_BITRATE]=1e3*u),null!==g&&(t[d.MEDIA_SCHEDULE_INDICATOR]=g),null!==p&&(t[d.MEDIA_CODEC]=p),null!==_&&(t[d.MEDIA_CDN]=_);var f=e.getVersionIdObject(),S=e.getServiceIdObject(),h=e.getClipIdObject(),E=e.getEpisodeIdObject(),b=e.getNonPipsContentIdObject();if(t[d.MEDIA_PID]=r(n),e.isLive()&&!e.getServiceId()&&!1===e.isEssEnriched()&&(e.getVersionId()||e.getVpId())){var m=e.getVersionId()||e.getVpId();t[d.MEDIA_PID]="unverified_"+m}return b.isValueSet()&&(t[d.MEDIA_NON_PIPS_CONTENT_ID]=r(b)),f.isValueSet()&&(t[d.MEDIA_VERSION_ID]=r(f)),S.isValueSet()&&(t[d.MEDIA_SERVICE_ID]=r(S)),h.isValueSet()&&(t[d.MEDIA_CLIP_ID]=r(h)),E.isValueSet()&&(t[d.MEDIA_EPISODE_ID]=r(E)),l(e)&&(t[d.MEDIA_AMBIGUOUS_ID]="1"),t}function p(e,t,n,s){var i,o,r,c,l,u,g,f,E,m=n[_.COMSCORE_SITE];this._deviceId=null,this._broker=null,this.media=null,this.SSPlayerEvent=p.StreamSense.PlayerEvents,this.SSPlayerState=p.StreamSense.InternalStates,this._clips=[],this._isEnabled=!0,this._hasStartedAppTag=!1,this._hasCreatedAsset=!1,this._storedAssetLabels={},l=n[_.COMSCORE_HOST],m=n[_.COMSCORE_SITE],this.useSsc=!0===n[_.USE_SSC]&&"sa.bbc.co.uk"!==l,this._deviceId=n[_.ECHO_DEVICE_ID]||void 0,!0!==this.useSsc||this._deviceId||(g=p._createSscHelper({forceBBCHost:n[_.SSC_HOSTNAME]}),this._deviceId=g.getCookieId()),h.containsValue(b.ApplicationType,t)||(t=y),i=a(l,s.getProtocol(),m),!0!==this.useSsc||this._deviceId||(i=g.getLocation().protocol+"//"+g.getSSCHostname()),!0===n[_.TEST_SERVICE_ENABLED]&&(r=i,i=n[_.TEST_SERVICE_URL]+"/comscore",this._isUsingComscoreOTTLibrary&&(o=n[_.TEST_SERVICE_URL]+"/offline")),this._isApp=!h.containsValue(k,t),u=s.getHttpGet(),c=l===v,this._isUsingComscoreOTTLibrary=!(!p.AppTag||!p.AppTag.ns_),this._isUsingComscoreOTTLibrary?(this.appTag=p.AppTag.ns_.comScore,this.appTag.setPlatformAPI(p.AppTag.ns_.PlatformAPIs.html5),u&&(this.appTag.getPlatformAPI().httpGet=u),this.appTag.setPublisherSecret(n[_.COMSCORE_PUBLISHER_SECRET]),this.appTag.setAppContext()):this.appTag=new p.AppTag(u||S._defaultHttpGet,this._isApp,c),this.ss=new p.StreamSense.ns_.StreamingAnalytics({liveEndpointURL:i,systemClockJumpDetection:!0}),u&&(this.ss.getPlatformAPI().httpGet=u),c&&(this.appTag.setCustomerC2(n[_.COMSCORE_CUSTOMER_ID]),this.ss.setLabel(d.COMSCORE_CUSTOMER,n[_.COMSCORE_CUSTOMER_ID]),this.addLabel(d.COMSCORE_C1,"2"),this.addLabel(d.COMSCORE_SITE,m)),this.appTag.setPixelURL(i),this._deviceId?this.addLabel(d.DEVICE_ID,this._deviceId):this.useSsc||"sa.bbc.co.uk"!==l||(this._deviceId=P.getCookieValueByName("s1")),!0===n[_.TEST_SERVICE_ENABLED]&&(this.addLabel(d.COMSCORE_ENDPOINT,r),this._isUsingComscoreOTTLibrary&&this.appTag.setOfflineURL(o)),this.addLabel(d.BBC_APPLICATION_NAME,e),this.addLabel(d.BBC_APPLICATION_TYPE,t),this.setCacheMode(n[_.ECHO_CACHE_MODE]),this.addLabel(d.BBC_MEASUREMENT_LIB_NAME,n[_.ECHO_NAME]),this.addLabel(d.BBC_MEASUREMENT_LIB_VERSION,n[_.ECHO_VERSION]),this.ss&&this.ss.setKeepAliveInterval&&n[_.COMSCORE_KEEPALIVE_INTERVAL]&&this.ss.setKeepAliveInterval(n[_.COMSCORE_KEEPALIVE_INTERVAL]),this._isApp?(this._isUsingComscoreOTTLibrary?this.appTag.setAppName(e):this.addLabel(d.APP_NAME,e),this.addLabel(d.APP_PLATFORM_NAME,s.getPlatformName()),this.addLabel(d.APP_PLATFORM_RUNTIME,s.getPlatformRuntimeEnvironment()),this.addLabel(d.APP_OS_VERSION,s.getPlatformOSVersion()),this.addLabel(d.APP_DEVICE_NAME,s.getDeviceName()),this.addLabel(d.APP_SCREEN_RESOLUTION,s.getScreenResolution()),this.addLabel(d.APP_LANGUAGE,s.getLanguage())):this.addLabel(d.WEB_SCREEN_RES,s.getScreenResolution()),this.addLabel(d.ENV_CHAR_SET,s.getCharSet()),this.addLabel(d.ENV_TITLE,s.getTitle()),this.addLabel(d.ENV_REFERRER,s.getReferrer()),-1===s.getURL().indexOf("file:",0)&&this.addLabel(d.ENV_URL,s.getURL()),n[_.ECHO_TRACE]&&this.setTraceId(n[_.ECHO_TRACE]),f=S.getOrbCookiesPolicy(),f&&(E="ad"+(f.ads?"1":"0")+"ps"+(f.personalisation?"1":"0")+"pf"+(f.performance?"1":"0"),this.addLabel(d.COOKIE_POLICY,E),f.performance||this.addLabel(d.NO_COOKIES,"1")),this.addLabel(b.ManagedLabels.BBC_SITE,y),this._mediaIsLive=null,n&&!1===n[_.ECHO_ENABLED]?this._isEnabled=!1:this._isEnabled=!0}var d=n(4),_=n(3),f=n(22),S=n(5),h=n(1),E=n(29),b=n(0),y="invalid-data",m=n(16),P=n(7),A="sa.bbc.co.uk/bbc",v="scorecardresearch.com",k=[b.ApplicationType.WEB,b.ApplicationType.MOBILE_WEB,b.ApplicationType.RESPONSIVE],C=[d.NO_COOKIES],I=["ns_st_pr","ns_st_sn","ns_st_en","ns_st_ep","ns_st_ty","ns_st_ct","ns_st_st","ns_st_pu"];p.prototype.start=function(){this._isEnabled&&!this._hasStartedAppTag&&(this.appTag.start(),this._hasStartedAppTag=!0)},p.prototype.enable=function(){this._isEnabled||(this._isEnabled=!0)},p.prototype.disable=function(){this._isEnabled&&(this.clearMedia(),this._isEnabled=!1)},p.prototype.getDeviceId=function(){return this._deviceId},p.prototype._buildStreamSenseClip=function(e){var t,n=g(e),s=n[d.MEDIA_PID];for(t=0;t<this._clips.length;t++)if(this._clips[t][d.MEDIA_PID]===s)return this._clips[t];return n[d.MEDIA_CLIP_NUMBER]=this._clips.length+1,this._clips.push(n),n},p.prototype.setTraceId=function(e){this.addLabel(_.ECHO_TRACE,e)},p._createSscHelper=function(e){return new m(e||{})},p.StreamSense=n(14),p.AppTag=n(20);var T="<"+C.join("><")+">";return p.prototype._isExcludedLabel=function(e){return!0===this.useSsc&&!!T.match(new RegExp("<"+e+">"))},p.prototype.addLabels=function(e){if("object"==typeof e)for(var t in e)e.hasOwnProperty(t)&&this.addLabel(t,e[t])},p.prototype.addLabel=function(e,t){!0!==this._isExcludedLabel(e)&&(this.appTag.setLabel(e,t),I.indexOf(e)>-1?this._hasCreatedAsset?this.ss.getPlaybackSession().getAsset().setLabel(e,t):this._storedAssetLabels[e]=t:this.ss.setLabel(e,t))},p.prototype.addManagedLabel=function(e,t){var n=E.isValidManagedLabel(e,t),s=n?t:y;for(var i in b.ManagedLabels)b.ManagedLabels[i]===e&&this.addLabel(e,s)},p.prototype.removeLabels=function(e){for(var t=0,n=e.length;t<n;t++)this.removeLabel(e[t])},p.prototype.removeLabel=function(e){this.appTag.setLabel(e,null),I.indexOf(e)>-1?this._hasCreatedAsset?this.ss.getPlaybackSession().getAsset().setLabel(e,null):delete this._storedAssetLabels[e]:this.ss.setLabel(e,null)}, p.prototype.setLoggedInToBBCId=function(e){this.addLabel(d.BBC_ID_LOGGED_IN,"1"),e&&e.length>0?this.addManagedLabel(b.ManagedLabels.BBC_HASHED_ID,e):this.removeLabel(b.ManagedLabels.BBC_HASHED_ID)},p.prototype.setLoggedOutOfBBCId=function(){this.removeLabels([d.BBC_ID_LOGGED_IN,b.ManagedLabels.BBC_HASHED_ID])},p.prototype.setAppVersion=function(e){"function"==typeof this.appTag.setAppVersion?this.appTag.setAppVersion(e):e&&this._isApp?this.addLabel(d.BBC_APPLICATION_VERSION,e.toString()):e&&this.addLabel(d.APP_VERSION,e.toString())},p.prototype.setCounterName=function(e){this._isEnabled&&this.addLabel(d.BBC_COUNTER_NAME,e)},p.prototype.setContentLanguage=function(e){this.addLabel(d.BBC_LANGUAGE,e)},p.prototype.setCacheMode=function(e){if(this._isUsingComscoreOTTLibrary&&e!==this._cacheMode){switch(e){case b.EchoCacheMode.ALL:this.appTag.allowLiveTransmission(this.appTag.TransmissionMode.NEVER),this.appTag.allowOfflineTransmission(this.appTag.TransmissionMode.NEVER);break;case b.EchoCacheMode.OFFLINE:this.appTag.allowLiveTransmission(this.appTag.TransmissionMode.DEFAULT),this.appTag.allowOfflineTransmission(this.appTag.TransmissionMode.DEFAULT)}this._cacheMode=e}},p.prototype.flushCache=function(){this._isUsingComscoreOTTLibrary&&this.appTag.flushCache()},p.prototype.viewEvent=function(e,t){if(this._eventsEnabled()){this.addLabel(d.BBC_COUNTER_NAME,e);var n=h.extend(t,!0,d.ECHO_EVENT_NAME,"view");n.name=e,this.appTag.view(n)}},p.prototype.errorEvent=t,p.prototype.userActionEvent=function(e,t,n){if(this._eventsEnabled()){var s=h.extend(n,!0,d.USER_ACTION_TYPE,e,d.USER_ACTION_NAME,t,d.ECHO_EVENT_NAME,"userAct");this.appTag.hidden(s)}},p.prototype.setPlayerName=function(e){this.addLabel(d.PLAYER_NAME,e)},p.prototype.setPlayerVersion=function(e){this.addLabel(d.PLAYER_VERSION,e)},p.prototype.setPlayerIsPopped=function(e){this.ss.setLabel(d.PLAYER_POPPED,e?1:0)},p.prototype.setPlayerWindowState=function(e){this.ss.setLabel(d.PLAYER_WINDOW_STATE,e)},p.prototype.setPlayerVolume=function(e){this.ss.setLabel(d.PLAYER_VOLUME,e)},p.prototype.setPlayerIsSubtitled=function(e){this.ss.setLabel(d.PLAYER_SUBTITLED,e?1:0)},p.prototype.setBroker=function(e){return this._broker=e,this},p.prototype.setMedia=function(e){if(this._eventsEnabled()&&(this.clearMedia(),e)){this.media=e;var t=this._buildStreamSenseClip(this.media),n=u(this.media);this._mediaIsLive=!e.isOnDemand(),this.ss.createPlaybackSession(n),this.ss.getPlaybackSession()&&(this.ss.getPlaybackSession().setAsset(t),this._hasCreatedAsset=!0,this.ss.getPlaybackSession().getAsset().setLabels(this._storedAssetLabels))}},p.prototype.liveMediaUpdate=function(e,t,n){h.assert("number"==typeof t,"newPosition must be a number"),h.assert("number"==typeof n,"oldPosition must be a number"),this.media=e;var s=this._buildStreamSenseClip(e);this.ss.notifyEnd(n),this.ss.getPlaybackSession().setAsset(s),this.ss.getPlaybackSession().getAsset().setLabels(this._storedAssetLabels),this.ss.notifyPlay(t)},p.prototype.liveEnrichmentFailed=t,p.prototype.setMediaLength=function(e){this._eventsEnabled()&&null!=this.media&&((!e||e<0)&&(e=0),this.ss.getPlaybackSession().getAsset().setLabel(d.MEDIA_LENGTH,e))},p.prototype.setMediaBitrate=function(e){this._eventsEnabled()&&e>0&&null!==this.media&&(e*=1e3,this.ss.getPlaybackSession().getAsset().setLabel(d.MEDIA_BITRATE,e))},p.prototype.setMediaCodec=function(e){this._eventsEnabled()&&this.ss.getPlaybackSession().getAsset().setLabel(d.MEDIA_CODEC,e)},p.prototype.setMediaCDN=function(e){this._eventsEnabled()&&this.ss.getPlaybackSession().getAsset().setLabel(d.MEDIA_CDN,e)},p.prototype.avPlayEvent=function(e,t){if(this._eventsEnabled()){var n=h.extend(t,!0,d.ECHO_EVENT_NAME,"avPlay");this.media.isLive()&&!1===this.media.isEssEnriched()&&(e=0),this.ss.notifyPlay(n,e)}},p.prototype.avPauseEvent=function(e,t){if(this._eventsEnabled()){var n=h.extend(t,!0,d.ECHO_EVENT_NAME,"avPause"),s=this.media.isLive();s&&!1===this.media.isEssEnriched()?e=0:!s&&this._broker&&0===e&&(e=this._broker.getCurrentIntervalMaxPosition()),this.ss.notifyPause(n,e)}},p.prototype.avBufferEvent=function(e,t){this._eventsEnabled()&&(this.media.isLive()&&!1===this.media.isEssEnriched()&&(e=0),this.ss.notifyBufferStart(e))},p.prototype.avEndEvent=function(e,t){if(this._eventsEnabled()){var n=h.extend(t,!0,d.ECHO_EVENT_NAME,"avEnd",d.PLAYLIST_END,1);this.media.isLive()&&!1===this.media.isEssEnriched()&&(e=0),this.ss.notifyEnd(e,n),this.clearMedia()}},p.prototype.avRewindEvent=function(e,t,n){if(this._eventsEnabled()){var s=h.extend(n,!0,d.ECHO_EVENT_NAME,"avRW",d.EVENT_TRIGGERED_BY_USER,"rewind",d.REWIND_FF_RATE,t);this.media.isLive()&&!1===this.media.isEssEnriched()&&(e=0),this.ss.notifyPause(e,s)}},p.prototype.avFastForwardEvent=function(e,t,n){if(this._eventsEnabled()){var s=h.extend(n,!0,d.ECHO_EVENT_NAME,"avFF",d.EVENT_TRIGGERED_BY_USER,"fastforward",d.REWIND_FF_RATE,t);this.media.isLive()&&!1===this.media.isEssEnriched()&&(e=0),this.ss.notifyPause(s,e)}},p.prototype.avSeekEvent=function(e,t){if(this._eventsEnabled()){var n=h.extend(t,!0,d.ECHO_EVENT_NAME,"avSeek",d.EVENT_TRIGGERED_BY_USER,"seek");this.media.isLive()&&!1===this.media.isEssEnriched()&&(e=0),this.ss.notifyPause(e,n)}},p.prototype.avUserActionEvent=function(e,t,n,s){if(this._eventsEnabled()){var i=h.extend(s,!0,d.ECHO_EVENT_NAME,"avUserAct",d.STREAMSENSE_CUSTOM_EVENT_TYPE,e,d.USER_ACTION_TYPE,e,d.USER_ACTION_NAME,t);this.media.isLive()&&!1===this.media.isEssEnriched()&&(n=0),this.ss.notifyCustomEvent(n,i)}},p.prototype.clearMedia=function(){this._eventsEnabled()&&(this._clips=[],this._hasCreatedAsset=!1,null!==this.media&&(this.ss.getState()===f.PLAYING&&this.avEndEvent(0),this.media=null))},p.prototype.requiresLabelCleansing=function(){return!0},p.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStartedAppTag},p}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){e.exports={IDLE:0,PLAYBACK_NOT_STARTED:1,PLAYING:2,PAUSED:3,BUFFERING_BEFORE_PLAYBACK:4,BUFFERING_DURING_PLAYBACK:5,BUFFERING_DURING_SEEKING:6,BUFFERING_DURING_PAUSE:7,SEEKING_BEFORE_PLAYBACK:8,SEEKING_DURING_PLAYBACK:9,SEEKING_DURING_BUFFERING:10,SEEKING_DURING_PAUSE:11,PAUSED_DURING_BUFFERING:12}},function(e,t,n){e.exports={STREAM:"stream",PID:"cq",WIDTH:"sx",HEIGHT:"sy",PLAYER_DESC:"pl",PLAYER_VERSION:"plv"}},function(e,t,n){var s;void 0!==(s=function(){"use strict";function e(e,t){this.namespace=e,this.env=t}return e.prototype.preloadImage=function(e){return this.env.getHttpGet()(e)},e.prototype.getLocalStorageItem=function(e){return this.env.getGetLocalStorageItem()(e)},e.prototype.setLocalStorageItem=function(e,t){return this.env.getSetLocalStorageItem()(e,t)},e.prototype.getWindowLocationURL=function(){return this.env.getURL()},e}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(){return-1}function s(e,t,n,s){this._sensors=null,this._broker=null,this._media=null,this._meta={},this._stream=null,this._env=s,this._siteCode=n[a.BARB_SITE_CODE],this._debug=n[a.BARB_DEBUG],this._traceId=null,this._isPlaying=!1,this._isEssEnabled=!1,this._isEnabled=!0,this._hasStarted=!1,n[a.ECHO_TRACE]&&this.setTraceId(n[a.ECHO_TRACE]),n[a.USE_ESS]&&(this._isEssEnabled=!0),n&&!1===n[a.ECHO_ENABLED]?this._isEnabled=!1:this._isEnabled=!0}var i=n(23),a=n(3),o=n(2),r=n(0),c=n(24);return s.prototype.start=function(){this._hasStarted||(this._hasStarted=!0)},s.prototype.enable=function(){this._isEnabled||(this._isEnabled=!0)},s.prototype.disable=function(){this._isEnabled&&(this._isEnabled=!1,this.clearMedia())},s.prototype.setTraceId=function(e){this._traceId=e},s.SpringStreams=n(15),s.prototype.addLabels=t,s.prototype.addLabel=t,s.prototype.addManagedLabel=t,s.prototype.removeLabels=t,s.prototype.removeLabel=t,s.prototype.setLoggedInToBBCId=t,s.prototype.setLoggedOutOfBBCId=t,s.prototype.setAppVersion=t,s.prototype.setCounterName=t,s.prototype.setContentLanguage=t,s.prototype.setCacheMode=t,s.prototype.flushCache=t,s.prototype.setESSEnabled=t,s.prototype.viewEvent=t,s.prototype.errorEvent=t,s.prototype.userActionEvent=t,s.prototype.setPlayerName=function(e){this._meta[i.PLAYER_DESC]=e},s.prototype.setPlayerVersion=function(e){this._meta[i.PLAYER_VERSION]=e},s.prototype.setPlayerIsPopped=t,s.prototype.setPlayerWindowState=t,s.prototype.setPlayerVolume=t,s.prototype.setPlayerIsSubtitled=t,s.prototype.setBroker=function(e){return this._broker=e,this},s.prototype.setMedia=function(e){this._eventsEnabled()&&(this.clearMedia(),this._media=e.getClone())},s.prototype.setMediaLength=function(e){this._media.setLength(e)},s.prototype.setMediaBitrate=t,s.prototype.setMediaCodec=t,s.prototype.setMediaCDN=t,s.prototype.liveMediaUpdate=function(e){this._media=e.getClone(),this._isPlaying&&this._startTracking()},s.prototype.liveEnrichmentFailed=function(){this._media.getServiceId()||this._media.setServiceId("no-service-id-found"),this._isPlaying&&this._startTracking()},s.prototype.avPlayEvent=function(e,t){this._eventsEnabled()&&this.isValidMedia()&&this._broker&&(this._initSensors(),this._isPlaying=!0,this._media.isLive()&&!this._media.getServiceId()?this._isEssEnabled&&(this._media.getVersionId()||this._media.getVpId())||(this._media.setServiceId("invalid-data"),this._startTracking()):this._startTracking())},s.prototype._initSensors=function(){if(null===this._sensors){if(this._sensors=new s.SpringStreams(this._siteCode),null!==this._env.getSetLocalStorageItem()&&null!==this._env.getGetLocalStorageItem()&&null!==this._env.getHttpGet()){o.info("Using custom PageContext for BARB");var e=new c("com.kma.springstreams",this._env);this._sensors.setPageContext(e)}this._debug&&(this._sensors.debug=function(e){o.info("Spring DEBUG: "+e)})}},s.prototype._startTracking=function(){if(null===this._stream){var e=this._getAttributes(),t=e[i.PID]||" ";this._stream=this._sensors.track(t,e,this._getAdaptor())}},s.prototype._getMostPrecedentIdObject=function(){var e=this._media.getVersionIdObject(),t=this._media.getEpisodeIdObject(),n=this._media.getClipIdObject(),s=this._media.getVpIdObject(),i=this._media.getServiceIdObject();return e.isValueValid()?e:t.isValueValid()?t:n.isValueValid()?n:s.isValueValid()?s:i.isValueValid()?i:null},s.prototype._getAttributes=function(){var e=this._media,t={};if(this._traceId&&(t[a.ECHO_TRACE]=this._traceId),!e.isLive()){var n=this._getMostPrecedentIdObject();null!==n&&(t[i.PID]=n.getValue())}return e.isOnDemand()?t[i.STREAM]="od":e.isDownload()?t[i.STREAM]="dwn":e.isLive()&&e.getServiceIdObject().isValueValid()&&(t[i.STREAM]="live/"+e.getServiceId()),t},s.prototype._getAdaptor=function(){var e,t=this;return e=this._media.isLive()?function(){return t._broker.getTimestamp()}:function(){return t._broker.getPosition()},{getMeta:function(e){return t._meta},getDuration:function(e){var n=0;return t._media.isLive()||(n=Math.floor(t._media.getLength()/1e3)),n},getPosition:function(t){return Math.floor(e()/1e3)}}},s.prototype._eventsEnabled=function(){return this._isEnabled&&this._hasStarted},s.prototype.avPauseEvent=function(){},s.prototype.avBufferEvent=function(){},s.prototype.avEndEvent=function(){this._eventsEnabled()&&(this._isPlaying=!1,this.isValidMedia()&&this.clearMedia())},s.prototype.avRewindEvent=function(){},s.prototype.avFastForwardEvent=function(){},s.prototype.avSeekEvent=function(){},s.prototype.avUserActionEvent=t,s.prototype.clearMedia=function(){this.isValidMedia()&&(this._stream&&this._stream.stop(),this._stream=null,this._media=null)},s.prototype.isValidMedia=function(){return null!==this._media&&this._media.avType===r.AvType.VIDEO},s.prototype.isValidLiveMedia=function(){return this.isValidMedia()&&this._media.isLive()},s.prototype.requiresLabelCleansing=function(){return!0},s}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s,i;s=[n(11),n(4),n(12),n(10)],void 0!==(i=function(e,t,n,s){"use strict";function i(t,s,i,o,r){this._playerDelegate=t,this._playhead=new e,this._isStarted=!1,this._interval=null,this._echoClient=i,this._broadcast=a,this._playerDelegateTimestamp=0,this._previousPosition=0,this._playingTime=0,this._media=s,this._environment=o,this._essEnabled=r,this._hb3NotSentYet=!0,this._hb5NotSentYet=!0,this._isRecievingPlayerTimestamp=!1,this._updateTime=0,this._essEnabled&&(this._schedule=new n(s,o,i))}var a="no-broadcast";return i.prototype.start=function(){var e=this;this._isStarted||(this._interval=setInterval(function(){e._update()},1e3),this._isStarted=!0,this._isRecievingPlayerTimestamp||this._playhead.start())},i.prototype.stop=function(){clearInterval(this._interval),this._playhead.stop(),this._isStarted=!1},i.prototype._update=function(){var e,n=parseInt(this._playerDelegate.getTimestamp(),10),s=!1,i=!1,a=!1,o=this.getTimestamp(),r=new Date;r=r.getTime();var c=r-this._updateTime;this._updateTime=r,"number"==typeof n&&n>0&&(i=!0,this._isRecievingPlayerTimestamp=!0,this._playerDelegateTimestamp!==n&&(s=!0,this._echoClient.addLabel(t.MEDIA_TIMESTAMP,n)),e=n-o,i&&(0===this._playerDelegateTimestamp||e<0-c-1500||e>c+1500)&&(a=!0,this._playerDelegateTimestamp=n,this._playingTime+=this._playhead.getPosition(),this._restartPlayhead(),o=this.getTimestamp())),a||(0!==this._playerDelegateTimestamp&&!s||this._isRecievingPlayerTimestamp&&!i?this._playhead.stop():this._playhead.start()),this._updateSchedule(o)?(this._playingTime=0,this._playerDelegateTimestamp=n,this._restartPlayhead(),this._hb3NotSentYet=!0,this._hb5NotSentYet=!0):s&&this._echoClient.releaseSuppressedPlay(),this._updateHeartbeats(),this._previousPosition=this.getPosition()},i.prototype._updateSchedule=function(e){var t,n,i,o,r=!1;return this._essEnabled&&this._schedule.hasData()&&e>0&&(t=this._schedule.getBroadcast(e),o=new s(this._media.getAvType(),this._media.getMediaConsumptionMode()),o.setServiceId(this._schedule.serviceId),t||this._broadcast===a?!t||this._broadcast!==a&&t.version.id===this._broadcast.version.id||(this._broadcast=t,n=t.published_time,i=n.end-n.start,o.setEssEnriched(!0),o.setVersionId(t.version.id),o.setLength(i),t.episode&&t.episode.id&&o.setEpisodeId(t.episode.id),this._updateMedia(o),r=!0):(this._broadcast=a,this._updateMedia(o),r=!0)),r},i.prototype._updateHeartbeats=function(){var e,t;this._broadcast!==a&&(this._hb3NotSentYet||this._hb5NotSentYet)&&(e=this._playingTime+this._playhead.getPosition(),t=this.getPosition(),e>=3e3&&this._hb3NotSentYet&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_3",t),this._hb3NotSentYet=!1),e>=5e3&&this._hb5NotSentYet&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_5",t),this._hb5NotSentYet=!1))},i.prototype._updateMedia=function(e){var t=this.getPosition();this._echoClient.liveMediaUpdate(e,t,this._previousPosition),this._previousPosition=t},i.prototype._restartPlayhead=function(){this._playhead.reset(),this._playhead.start()},i.prototype.getPosition=function(){return this._broadcast&&this._broadcast!==a?this._playerDelegateTimestamp-this._broadcast.published_time.start+this._playhead.getPosition():this._playhead.getPosition()},i.prototype.getTimestamp=function(){return this._playerDelegateTimestamp+this._playhead.getPosition()},i}.apply(t,s))&&(e.exports=i)},function(e,t,n){var s,i;s=[n(11)],void 0!==(i=function(e){"use strict";function t(t,n,s){this._playerDelegate=t,this._media=n,this._echoClient=s,this._playhead=new e,this._isStarted=!1,this._interval=null,this._playerDelegatePosition=0,this._playingTime=0,this._currentIntervalMaxPosition=0,this._hb3NotSentYet=!0,this._hb5NotSentYet=!0,this._previousPlayingTime=0}return t.prototype.setPlayhead=function(e){this._playhead=e},t.prototype.start=function(){var e=this;this._isStarted||(this._interval=setInterval(function(){e._update()},1e3),this._isStarted=!0,this._playhead.start())},t.prototype.stop=function(){clearInterval(this._interval),this._playhead.stop(),this._isStarted=!1},t.prototype.setPosition=function(e){"number"==typeof e&&e>=0&&!this.arePositionsWithinTolerance(this.getPosition(),e)&&(this._playerDelegatePosition=e,this._playingTime+=this._playhead.getPosition(),this._restartPlayhead(),this._currentIntervalMaxPosition=e)},t.prototype.getCurrentIntervalMaxPosition=function(){return this._currentIntervalMaxPosition},t.prototype._update=function(){var e=parseInt(this._playerDelegate.getPosition(),10),t=this.getPosition(),n=this._playingTime+this._playhead.getPosition(),s=Math.abs(n-(this._previousPlayingTime||n));this._previousPlayingTime=n,"number"==typeof e&&e!==this._playerDelegatePosition&&e>0&&(0!==this._playerDelegatePosition&&this.arePositionsWithinTolerance(e,t)||(this._playerDelegatePosition=e,t=this._playerDelegatePosition,this._restartPlayhead())),t>this._currentIntervalMaxPosition&&(this._currentIntervalMaxPosition=t),n>=3e3&&this._hb3NotSentYet&&s<1500&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_3",t),this._hb3NotSentYet=!1),n>=5e3&&this._hb5NotSentYet&&s<1500&&(this._echoClient.avUserActionEvent("echo_hb","echo_hb_5",t),this._hb5NotSentYet=!1),this._media.length>0&&t>=this._media.length&&this._echoClient.avPauseEvent(this._media.length,{echo_pause_at_media_length:1})},t.prototype._restartPlayhead=function(){this._playhead.reset(),this._playhead.start()},t.prototype.getPosition=function(){var e=this._playhead.getPosition();return this._playerDelegatePosition+e},t.prototype.getTimestamp=function(){return 0},t.prototype.arePositionsWithinTolerance=function(e,t){var n=e-t;return n>=-1500&&n<=1500},t}.apply(t,s))&&(e.exports=i)},function(e,t,n){e.exports={STRICT:"strict",COUNTERNAME:"countername",EVENT_MASTER_BRAND:"event_master_brand",NO_CLEANSING:"no_cleansing",CUSTOM:"custom"}},function(e,t,n){var s;void 0!==(s=function(e){"use strict";function t(e,t){switch(e){case s.ManagedLabels.IPLAYER_STATE:if("purchased"!==t&&"free"!==t)return!1;break;case s.ManagedLabels.STORE_ED_TYPE:if("archive"!==t&&"standard"!==t)return!1;break;case s.ManagedLabels.IPLAYER_AVAIL:if("avail"!==t&&"unavail"!==t&&"soon"!==t)return!1;break;case s.ManagedLabels.STORE_REFERRAL:if("iplayer"!==t&&"store"!==t)return!1;break;case s.ManagedLabels.BBC_HASHED_ID:if("string"!=typeof t||0===i.trim(t).length)return!1}return!0}var s=n(0),i=n(1);return{isValidManagedLabel:t}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){var s;void 0!==(s=function(){"use strict";function e(e,t){var n=new Image;"function"==typeof t&&(n.onload=function(){t()}),n.src=e}function t(e,t){var s,i,a;i=!1,a=!1;var o=function(e,n){t.onError&&t.onError(e,n)},r=function(){var e;if(t.onSuccess){try{e=window.JSON.parse(s.responseText)}catch(e){o("json")}"object"==typeof e&&setTimeout(function(){t.onSuccess(e)})}};if(window.JSON&&window.JSON.parse&&void 0!==window.XMLHttpRequest&&"withCredentials"in(s=new XMLHttpRequest)&&(a=!0),!a)return void o();try{s.open("GET",e,!0),s.onload=function(){(void 0===s.status||s.status<400)&&null!==s.responseText?r():o(s.responseText,s.status)},s.onerror=function(e){o(e)},s.timeout=n,s.ontimeout=function(e){o(e)}}catch(e){!function(e){i||o(e)}(e)}try{s.send(null)}catch(e){!function(){i=!0,s.onload=s.onerror=s.onreadystatechange=null,s.abort()}(),o(e)}}var n=1e4;return{httpGet:e,executeCrossDomainGet:t}}.call(t,n,t,e))&&(e.exports=s)},function(e,t,n){e.exports=n(13)}])})},function(e,t){"use strict";e.exports=function(e,t,n){function s(n,s,i){var a=e.cage.environment,o={};o[t.ConfigKeys.COMSCORE_SITE]="live"===a?"bbc":a;var r=new t.EchoClient(n,t.Enums.ApplicationType.RESPONSIVE,o);return r.addManagedLabel(t.Enums.ManagedLabels.BBC_SITE,n),i&&i.statsLabel&&r.addLabel(i.statsLabel.name,i.statsLabel.value),r.viewEvent(s),r}var i=function(t){return new function i(){function a(){var t=e.bbccookies;return!t||t.isAllowed("ckps_whatever")}function o(t){var n=e.localStorage.getItem(t);try{return JSON.parse(n)}catch(e){}}function r(){if(a())try{e.localStorage.setItem(S,JSON.stringify(b))}catch(e){}}var c=e.cage.embedVars,l=c.statsAppName,u=c.statsCounterName,g=e.cage.gameId,p=e.cage.gameContainerId,d=e.cage.gameUrl,_=e.cage.gameDir,f=e.cage.environment;Object.defineProperty(i.prototype,"embedVars",{get:function(){return c}}),Object.defineProperty(i.prototype,"gameContainerId",{get:function(){return p}}),Object.defineProperty(i.prototype,"gameUrl",{get:function(){return d}}),Object.defineProperty(i.prototype,"gameDir",{get:function(){return _}}),Object.defineProperty(i.prototype,"environment",{get:function(){return f}}),Object.defineProperty(i.prototype,"shouldShowExitButton",{get:function(){return e.cage.isFullScreen}}),Object.defineProperty(i.prototype,"shouldDisplayMuteButton",{get:function(){return!0}}),Object.defineProperty(i.prototype,"shouldLongPressForSettings",{get:function(){return!1}});var S="bbc_childrens_gmi_data",h=S+"_"+g,E={},b={audio:!0,subtitles:!1,motion:!0};this.stats=s(l,u,t),i.prototype.getAllSettings=function(){var e=JSON.parse(JSON.stringify(b));return e.muted=!e.audio,a()&&(e.gameData=E),e},i.prototype.setGameData=function(t,n){if(a()){E[t]=n;try{e.localStorage.setItem(h,JSON.stringify(E))}catch(e){}}},i.prototype.setMuted=function(e){b.audio=!e,r()},i.prototype.setAudio=function(e){b.audio=!!e,r()},i.prototype.setSubtitles=function(e){b.subtitles=!!e,r()},i.prototype.setMotion=function(e){b.motion=!!e,r()},i.prototype.showPrompt=function(e){return e(),!1},i.prototype.showSettings=function(e,t){return!("operation-ouch"!==window.cage.gameId&&"childrens-games-starter-pack"!==window.cage.gameId||(n({showSettings:!0,onSettingChanged:e,onSettingsClosed:t}),0))},i.prototype.sendStatsEvent=function(e,t,n){this.stats.userActionEvent(t,e,n||{})},i.prototype.exit=function(){var t=e.cage.exitGameUrl;e.open(t,"_top")},i.prototype.debug=function(e){console.log(e)},i.prototype.gameLoaded=function(){},function(){function e(){var e={};return e.audio=!0,e.subtitles=!1,e.motion=!0,e}if(!a())return e();b=o(S)||e(),function(){b.audio=!!b.audio,b.subtitles=!!b.subtitles,b.motion=!b.hasOwnProperty("motion")||b.motion}(),E=o(h)||{}}(),i.prototype=Object.create(i.prototype)}},a=void 0;return{getGMI:e.getGMI||function(e){return a&&console.warn("Attempted to create multiple copies of the GMI. Only a single instance should be created"),a=i(e),n({gmi:a,gmiOptions:e}),a}}}},function(e,t){e.exports={create:function(e,t){return Morph.createContainerWithCaller("bbc-morph-childrens-games-view@0.6.16",e,t)}}}]);; });</script> <script>Morph.toInit.payloads.push(function() { Morph.setPayload('/data/bbc-morph-games-data/baseUrl/%2Fchildrens%2Fassets%2Fgames/game/map2-somethingspecial/project/childrensgames/version/0.2.3', {"meta":{"responseCode":200,"errorMessage":null,"headers":{"x-morph-privacy-level":"public","content-type":"application\/json"}},"body":{"id":"map2-somethingspecial","title":"[MaP2] Something Special","product":"cbeebies","brand":"Something Special","description":"Make a Picture","url":"\/childrens\/assets\/games\/map2-somethingspecial\/66\/main","gameDir":"\/childrens\/assets\/games\/map2-somethingspecial\/66\/","embedVars":{"statsCounterName":"cbeebies.makes,something_special_make_a_picture.page","statsAppName":"cbeebies"},"heroImagePid":"p05vfdt0","responsive":true,"isLegacyGame":true,"width":"","height":""}}); });</script> <script>Morph.toInit.registers.push(function() { Morph.register({"view":"bbc-morph-childrens-games-view","appName":"cbeebies","embedUrl":"https:\/\/web.archive.org\/web\/20180202144621\/https:\/\/www.bbc.co.uk\/cbeebies\/embed\/game\/","game":"map2-somethingspecial","showCallToAction":"true","version":"0.6.16","_mrrVersion":"1.13.4"},'u7107637948356569'); });</script> <script>Morph.init = function() { if (!Morph.initCalled) { Morph.markPerformance('morph-init'); Morph.initCalled = true; requirejs.config({ paths: { 'morph/react' : '//web.archive.org/web/20180202144621/https://m.files.bbci.co.uk/modules/vendor-react/1.0.0/react.min', 'morph/react-dom' : '//web.archive.org/web/20180202144621/https://m.files.bbci.co.uk/modules/vendor-react-dom/1.0.0/react-dom.min', 'morph/es5-shim' : '//web.archive.org/web/20180202144621/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-shim.min', 'morph/es5-sham' : '//web.archive.org/web/20180202144621/https://m.files.bbci.co.uk/modules/vendor-es5-shim/4.1.13/es5-sham.min', 'morph/module/morph': '//web.archive.org/web/20180202144621/https://m.files.bbci.co.uk/modules/morph/4.3.3/bundle', 'live-push' : '//web.archive.org/web/20180202144621/https://push.api.bbci.co.uk/public/client' }, shim: { 'morph/react': { deps: ['morph/es5-shim', 'morph/es5-sham'] }, 'morph/es5-sham': { deps: ['morph/es5-shim'] } }, map: { 'morph/react-dom': { 'react': 'morph/react' } } }); } function attempt(fn) { fn(); } requirejs(['morph/react', 'morph/react-dom', 'morph/module/morph'], function(React, ReactDOM) { window.React = React; window.ReactDOM = ReactDOM; if (!Morph.toInitsCalled) { Morph.markPerformance('morph-init-core-deps-complete'); Morph.toInitsCalled = true; } Morph.toInit.ptrs.forEach(attempt); Morph.toInit.ptrs = []; Morph.toInit.bundles.forEach(attempt); Morph.toInit.bundles = []; Morph.markPerformance('morph-init-bundles-complete'); Morph.toInit.payloads.forEach(attempt); Morph.toInit.payloads = []; Morph.markPerformance('morph-init-payloads-complete'); Morph.toInit.registers.forEach(attempt); Morph.toInit.registers = []; Morph.markPerformance('morph-init-registers-complete'); }); };</script> <script>if (!Morph.manualInit) { Morph.init(); } /* u7107637948356569 */</script> <script type="text/javascript"> var cookiePolicy = window.bbccookies.readPolicy(); if( cookiePolicy.performance ) { var _sf_async_config = {"domain":"bbc.co.uk","region":"domestic","uid":50924,"sections":"childrens, cbeebies"}; _sf_async_config.path = window.location.pathname; (function () { function loadChartbeat() { window._sf_endpt = (new Date()).getTime(); var e = document.createElement("script"); e.setAttribute("language", "javascript"); e.setAttribute("type", "text/javascript"); e.setAttribute('src', "//web.archive.org/web/20180202144621/https://static.chartbeat.com/js/chartbeat.js"); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != "function") ? loadChartbeat : function () { oldonload(); loadChartbeat(); }; })(); } </script> </div> <div id="orb-footer" class="orb-footer" dir="ltr"><div id="navp-orb-footer-promo"></div><aside role="complementary"><div id="orb-aside" class="orb-nav-sec b-r b-g-p"><div class="orb-footer-inner" role="navigation" aria-label="BBC"><h2 class="orb-footer-lead">Explore the BBC</h2><div class="orb-footer-primary-links"><ul><li class="orb-nav-cbeebies"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies">CBeebies</a></li><li class="orb-nav-iplayer"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/iplayer/cbeebies">CBeebies iPlayer</a></li><li class="orb-nav-grownups orb-d"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies/grownups">Grown-ups</a></li><li class="orb-nav-cbeebiesguide"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbeebies/guide">TV Guide</a></li><li class="orb-nav-cbbc"><a href="https://web.archive.org/web/20180202144621/https://www.bbc.co.uk/cbbc">CBBC</a></li><li class="orb-nav-cbeebiesbitesize orb-d"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/education/highlights/sections/primary">Bitesize</a></li></ul></div></div></div></aside><footer role="contentinfo"><div id="orb-contentinfo" class="orb-nav-sec b-r b-g-p"><script>window.orb.worldwideFooterlinks = '<li class="orb-footer-ads"><a href="https://web.archive.org/web/20180202144621/https://advertising.bbcworldwide.com/">Advertise with us<'+'/a><'+'/li><li class="orb-footer-adchoices"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.com/usingthebbc/cookies/what-is-online-behavioural-advertising/">Ad choices<'+'/a><'+'/li>';</script><div class="orb-footer-inner"><ul><li class="orb-footer-terms"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/usingthebbc/terms/">Terms of Use</a></li><li class="orb-footer-about"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/aboutthebbc">About the BBC</a></li><li class="orb-footer-privacy"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/usingthebbc/privacy/">Privacy Policy</a></li><li class="orb-footer-cookies"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/usingthebbc/cookies/">Cookies</a></li><li class="orb-footer-accessibility"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/accessibility/">Accessibility Help</a></li><li class="orb-footer-parental"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/guidance">Parental Guidance</a></li><li class="orb-footer-contact"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/contact">Contact the BBC</a></li><li class="orb-footer-newsletter"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/bbcnewsletter">Get Personalised Newsletters</a></li></ul><small><em class="orb-hilight">Copyright © 2018 BBC.</em> The BBC is not responsible for the content of external sites. <span class="orb-footer-links"><a href="https://web.archive.org/web/20180202144621/http://www.bbc.co.uk/help/web/links/" class="orb-hilight">Read about our approach to external linking.</a></span></small></div></div></footer></div><script id="orb-js-script" data-assetpath="https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815/" src="https://web.archive.org/web/20180202144621js_/https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815/js/orb.min.js"></script><script type="text/javascript">require(['orb/lib/_$'], function($) { $.ready(function() { initialiseFooter(); }); var scrollCheckTimer; var didScroll; var previousPosition = 0; var delta = 5; var PROMO_SHOW_BREAKPOINT = 1500; var pageLength = 0; function initialiseFooter() { // Suppress this feature on browsers we no longer test var myNav = navigator.userAgent.toLowerCase(); var oldIE = (myNav.indexOf('msie') !== -1) && parseInt(myNav.split('msie')[1], 10) <= 10; if (!oldIE) { require(['orb/cookies'], function (bbccookies) { var disabledByCookie = (parseInt(bbccookies.get('ckns_nav_promofail')) || 0) >= 3; if (!disabledByCookie) { require(['orb/fig'], function (orbFig) { orbFig.load(function (fig) { if (fig.geo.isUK()) { setUpLazyLoading(); } }); }); } }); } } function setUpLazyLoading() { // offsetHeight is expensive to calculate, only do it once. pageLength = Math.abs(document.body.offsetHeight); if (pageLength < getViewportHeight() + 300 || pageLength - getCurrentPosition() < PROMO_SHOW_BREAKPOINT) { loadPromo(); } else { window.onscroll = function () { didScroll = true; }; scrollCheckTimer = setInterval(function () { if (didScroll) { hasScrolled(); didScroll = false; } }, 250); } } function loadPromo() { clearInterval(scrollCheckTimer); require(['orb/async/_footerpromo'], function(promo) { promo.init('https://web.archive.org/web/20180202144621/https://navpromo.api.bbci.co.uk', 'cbeebies'); }); } function getViewportHeight() { return window.innerHeight; } function getCurrentPosition() { return Math.abs(window.scrollY || document.body.scrollTop || document.documentElement.scrollTop); } function hasScrolled() { var currentPosition = getCurrentPosition(); if (Math.abs(previousPosition - currentPosition) <= delta) { return; } if (currentPosition > previousPosition) { if ((pageLength - currentPosition) <= PROMO_SHOW_BREAKPOINT) { loadPromo(); } } previousPosition = currentPosition; } })</script><script type="text/javascript">/*<![CDATA[*/ require(['orb/fig', 'orb/nav'], function(fig, nav) { fig.load(function(fig) { if (fig.geo.isUK()) { nav.loadJs('https://web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/orbit/2.0.0-84.7351815/js/edr.min.js'); } }); }); /*]]>*/</script><script type="text/javascript">require(["megavolt-client","istats-1","orb/cookies"],function(t,e,i){function o(){return"true"===l&&a&&t&&"function"==typeof t.getMVTIStatsLabels}function n(){!c&&o()?setTimeout(function(){e.invoke()},"500"):e.invoke()}var s=navigator.userAgent.toLowerCase(),a=!(s.indexOf("msie")>-1)||parseInt(s.split("msie")[1],10)>10,c=!1,l="true";if(i.isAllowed("s1"))try{if(o()&&t.getMVTIStatsLabels(function(t){e.addLabels(t),c=!0}),!require.s.contexts._.config.paths.idcta)return void n();require(["idcta/idcta-1"],function(t){t&&"function"==typeof t.getIStatsLabels&&e.addLabels(t.getIStatsLabels()),n()},function(t){throw t})}catch(t){console&&"function"==typeof console.log&&console.log("an exception occurred while adding idcta labels to istats, invoking istats without them",t),n()}});</script><script type="text/javascript">if (window.SEARCHBOX.suppress === false && window.SEARCHBOX.locale && /^en-?.*?/.test(window.SEARCHBOX.locale)) { require.config({ paths: { "search/searchbox": window.SEARCHBOX.searchboxAppStaticPrefix, "disco-layer": "//web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/discovery-layer/0.0.1-223.ebc085d/app" } }); require(['search/searchbox/searchboxDrawer'], function (SearchboxDrawer) { SearchboxDrawer.run(window.SEARCHBOX); }); var loadDiscoveryLayer = function (fig) { if (fig.geo.isUK()) { require(['disco-layer'], function (discoLayer) { discoLayer.run("//web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/discovery-layer/content/", "//web.archive.org/web/20180202144621/https://nav.files.bbci.co.uk/discovery-layer/0.0.1-223.ebc085d/main.css"); }); } }; var orbFig = window.orb.fig; if (typeof orbFig.load === 'function') { // Use new async API from Orbit orbFig.load(loadDiscoveryLayer); } else { // Use old sync-only API from PAL orbfig project loadDiscoveryLayer(orbFig); } }</script><!-- BBCDOTCOM bodyLast --><div class="bbccom_display_none"><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && window.bbcdotcom.analytics && bbcdotcom.config && !bbcdotcom.config.isSportApp()) { bbcdotcom.analytics.page(); } /*]]>*/</script><noscript><img src="//web.archive.org/web/20180202144621im_/https://ssc.api.bbc.com/?c1=2&c2=19293874&ns_site=bbc&name=" height="1" width="1" alt=""></noscript><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.currencyProviders) { bbcdotcom.currencyProviders.write(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.currencyProviders) { bbcdotcom.currencyProviders.postWrite(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats && bbcdotcom.data.stats == 1 && bbcdotcom.config && bbcdotcom.config.isLotameEnabled && bbcdotcom.config.isLotameEnabled() && bbcdotcom.lotame){ bbcdotcom.lotame.write(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats && bbcdotcom.data.stats === 1 && bbcdotcom.utils && window.location.pathname === '/' && window.bbccookies && bbccookies.readPolicy('performance') ) { var wwhpEdition = bbcdotcom.utils.getMetaPropertyContent('wwhp-edition'); var _sf_async_config={}; /** CONFIGURATION START **/ _sf_async_config.uid = 50924; _sf_async_config.domain = "bbc.co.uk"; _sf_async_config.title = "Homepage"+(wwhpEdition !== '' ? ' - '+wwhpEdition : ''); _sf_async_config.sections = "Homepage"+(wwhpEdition !== '' ? ', Homepage - '+wwhpEdition : ''); _sf_async_config.region = wwhpEdition; _sf_async_config.path = "/"+(wwhpEdition !== '' ? '?'+wwhpEdition : ''); /** CONFIGURATION END **/ (function(){ function loadChartbeat() { window._sf_endpt=(new Date()).getTime(); var e = document.createElement("script"); e.setAttribute("language", "javascript"); e.setAttribute("type", "text/javascript"); e.setAttribute('src', '//web.archive.org/web/20180202144621/https://static.chartbeat.com/js/chartbeat.js'); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != "function") ? loadChartbeat : function() { oldonload(); loadChartbeat(); }; })(); } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ if (window.bbcdotcom && bbcdotcom.data && bbcdotcom.data.stats == 1 ) { var js_loaded=false, percent; if (window.bbcdotcom && bbcdotcom.config && bbcdotcom.config.isSherlockEnabled()) { document.write('<script src="//web.archive.org/web/20180202144621/https://stag.mdotlabs.com/ads.js">\x3C/script>'); if(document.location.protocol === "http:"){ document.write('<script src="//web.archive.org/web/20180202144621/https://stag.mdotlabs.com/sherlock.php?clientID=19293874">\x3C/script>'); } else { document.write('<script src="//web.archive.org/web/20180202144621/https://stag.mdotlabs.com/sherlock.php?clientID=19293874&sec=1">\x3C/script>'); } } } /*]]>*/</script><script type="text/javascript">/*<![CDATA[*/ (function() { window.bbcdotcom.bodyLast = true; }()); /*]]>*/</script></div><!-- BBCDOTCOM all code in page --> </body> </html> <!-- FILE ARCHIVED ON 14:46:21 Feb 02, 2018 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 23:50:43 Nov 28, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.589 exclusion.robots: 0.027 exclusion.robots.policy: 0.017 esindex: 0.013 cdx.remote: 35.867 LoadShardBlock: 79.104 (3) PetaboxLoader3.datanode: 94.478 (4) load_resource: 637.437 PetaboxLoader3.resolve: 99.615 -->