About
parkrun Walker Analysis summarises finishers at walking pace versus faster participants on dated single-event results pages (e.g. Piggly Wiggly results).
Where it works
It runs on dated results URLs, not on latestresults alone.
Classification
Walkers are finishers at or slower than 10:00 per kilometre: 50:00 for a 5k, or 20:00 for junior (2k) locations whose slug includes -juniors. Missing times may be estimated from neighbouring finishers so they can still be classified.
What you see
Summary breakdowns (for example volunteer experience, gender, age group, and parkrun experience), a stacked finishers-per-minute chart, and a summary table. Save as Image downloads the visualisation so you can share it with event teams for analysis, or to prompt supportive conversations about handling larger fields.
Result rows themselves are not restyled or highlighted.
Version 1.3.5 Updated
Screenshot
Install
Recommended: userscript. Bookmarklet works where a userscript manager isn’t available.
Userscript (recommended)
Install parkrun Walker Analysis
First time? Userscript basics and installation steps
What is a userscript?
A userscript is a small piece of JavaScript that runs in your browser and enhances specific websites. These scripts work with parkrun event pages, parkrunner profile pages, and results pages, and can be used with any userscript manager including Userscripts, Tampermonkey, Violentmonkey, or any compatible browser extension.
Installation steps
-
Install a userscript manager for your browser:
- Desktop: Userscripts (Safari), Tampermonkey (Chrome, Firefox, Edge, Opera), or Violentmonkey (Orion)
- iOS: Userscripts (Safari) or Violentmonkey (Orion)
- Android: Install Kiwi Browser, then install Tampermonkey or Violentmonkey from the Chrome Web Store.
- Click the Install button above for this script.
- Click “Install” when prompted by your userscript manager.
Bookmarklet
A bookmarklet is a bookmark whose URL is JavaScript. Use it on browsers that support bookmarks but not userscript managers.
Drag this link to your bookmarks bar:
parkrun Walker Analysis bookmarklet
Mobile bookmarklet setup and full code
Mobile bookmarklet
On mobile browsers that let you edit bookmark URLs:
- Copy the JavaScript code below to your clipboard.
- Create a new bookmark for any page.
- Edit the bookmark and replace its URL with the code you copied.
- Navigate to the relevant parkrun page.
- Select the bookmark to run the script.
javascript:function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _regenerator(){var m,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var o,a,i,l,c,u,s,d,p,t=t&&t.prototype instanceof g?t:g,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(o=e,a=n,s=r||[],d=!1,p={p:u=0,n:0,v:m,a:f,f:f.bind(m,4),d:function(e,t){return i=e,l=0,c=m,p.n=t,y}},function(e,t,n){if(1<u)throw TypeError("Generator is already running");for(d&&1===t&&f(t,n),l=t,c=n;(h=l<2?m:c)||!d;){i||(l?l<3?(1<l&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(u=2,i){if(h=i[e=l?e:"next"]){if(!(h=h.call(i,c)))throw TypeError("iterator result is not an object");if(!h.done)return h;c=h.value,l<2&&(l=0)}else 1===l&&(h=i.return)&&h.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+e+"' method"),l=1);i=m}else if((h=(d=p.n<0)?c:o.call(a,p))!==y)break}catch(e){i=m,l=1,c=e}finally{u=1}}return{value:h,done:d}}),!0),t;function f(e,t){for(l=e,c=t,h=0;!d&&u&&!n&&h<s.length;h++){var n,r=s[h],o=p.p,a=r[2];3<e?(n=a===t)&&(c=r[(l=r[4])?5:l=3],r[4]=r[5]=m):r[0]<=o&&((n=e<2&&o<r[1])?(l=0,p.v=t,p.n=r[1]):o<a&&(n=e<3||r[0]>t||a<t)&&(r[4]=e,r[5]=t,p.n=a,l=0))}if(n||1<e)return y;throw d=!0,t}}var y={};function g(){}function o(){}function a(){}var h=Object.getPrototypeOf,e=[][t]?h(h([][t]())):(_regeneratorDefine2(h={},t,function(){return this}),h),i=a.prototype=g.prototype=Object.create(e);function l(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_regeneratorDefine2(e,n,"GeneratorFunction")),e.prototype=Object.create(i),e}return _regeneratorDefine2(i,"constructor",o.prototype=a),_regeneratorDefine2(a,"constructor",o),_regeneratorDefine2(a,n,o.displayName="GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,"Generator"),_regeneratorDefine2(i,t,function(){return this}),_regeneratorDefine2(i,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:r,m:l}})()}function _regeneratorDefine2(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function(e,t,n,r){function o(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function _asyncToGenerator(l){return function(){var e=this,i=arguments;return new Promise(function(t,n){var r=l.apply(e,i);function o(e){asyncGeneratorStep(r,t,n,o,a,"next",e)}function a(e){asyncGeneratorStep(r,t,n,o,a,"throw",e)}o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function ownKeys(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;if("undefined"==typeof Symbol||void 0===(n=e[Symbol.toPrimitive]))return("string"===t?String:Number)(e);var n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _createForOfIteratorHelper(e,t){var n,r,o,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!0,{s:function(){i=i.call(e)},n:function(){o=!0;var e=i.next();return e.done?{done:!0}:{value:e.value,done:o=!1}},e:function(e){n=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(n)throw r}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ChartRef="undefined"!=typeof window&&window.Chart?window.Chart:void 0,MILESTONE_CLUB_THRESHOLDS=[1e3,900,800,700,600,500,400,300,250,200,100,50,25,10],MILESTONE_CLUB_ORDER=[].concat(MILESTONE_CLUB_THRESHOLDS).reverse(),milestoneColours={10:"#EBE9F0",25:"#6D5698",50:"#C81D31",100:"#2E393B",200:"#7FC7E7",250:"#2C504A",300:"#E2712D",400:"#923047",500:"#2E4DA7",600:"#BDDD48",700:"#262A4C",800:"#BC57B6",900:"#4F7528",1e3:"#FFE049","Volunteered once":"#90EE90","Volunteered multiple times":"#00CEAE","Has Volunteered":"#00CEAE","Yet to Volunteer":"#FFA300",Unknown:"#A1B6B7"};function getMilestoneClub(e,t){var n,r=_createForOfIteratorHelper(MILESTONE_CLUB_THRESHOLDS);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o<=e)return{status:"".concat(t," ").concat(o," Club"),milestone:o}}}catch(e){r.e(e)}finally{r.f()}return{status:null,milestone:0}}function assignUnknownFinishTimes(o){return o.map(function(e,t){var n,r;return e.timeStr&&0<e.timeSec?e:(n=(n=(n=o).slice(0,t).reverse().find(function(e){return e.timeStr&&0<e.timeSec}))?n.timeSec:null,t=(r=(r=o).slice(t+1).find(function(e){return e.timeStr&&0<e.timeSec}))?r.timeSec:null,r=n||t||0,_objectSpread(_objectSpread({},e),{},{timeSec:r,estimatedTime:0<r}))})}function getEventMetadata(){var e,t="",n="",r="",o="undefined"!=typeof document?document.querySelector("h1"):null,o=(o?t=o.textContent.trim():"undefined"!=typeof document&&document.title&&(t=document.title.split("-")[0].trim()),"undefined"!=typeof document?document.querySelector("h3"):null);return o&&((e=(o=o.textContent).match(/(\d{1,2}\/\d{1,2}\/\d{2,4})/))&&(n=e[1]),e=o.match(/#(\d+)/))&&(r=e[1]),{eventName:t,eventDate:n,eventNumber:r}}function generateExportFilename(e,t){var n=e.eventName?e.eventName.replace(/[^a-z0-9]+/gi,"").toLowerCase():"event",r=e.eventDate?e.eventDate.replace(/\//g,"_"):"date",e=e.eventNumber||"num";return"".concat(n,"_").concat(r,"_").concat(e,"_").concat(t,".png")}function computeWalkerThreshold(e){var t=5;try{"string"==typeof e&&e&&e.toLowerCase().includes("-juniors")&&(t=2)}catch(e){}return 10*t*60}function parkrunWalkerAnalysisMain(){var A,T,O,N,D,L,e="undefined"!=typeof window&&window.location?window.location.pathname:"";function M(){L.innerHTML="Breakdown: "+T.map(function(e){return'<button style="margin:0 8px;padding:6px 12px;border-radius:4px;border:none;background:'.concat(O===e.key?"#FFA300":"#00CEAE",';color:#2b223d;font-weight:bold;cursor:pointer;" data-key="').concat(e.key,'">').concat(e.label,"</button>")}).join(""),L.querySelectorAll("button").forEach(function(t){t.onclick=function(){var e;e=t.getAttribute("data-key"),O=e,n()}})}function n(){M();for(var o,r,n,a,i,t,l,c,u,s,d,p,f,e=document.getElementById("walkerRunnerSummaryTable"),m=(e||((e=document.createElement("div")).id="walkerRunnerSummaryTable"),e.innerHTML=(o=O,t=computeWalkerThreshold("undefined"!=typeof document&&document.location?document.location.href:""),l=A.filter(function(e){return e.timeSec>=t}),c=A.filter(function(e){return 0<e.timeSec&&e.timeSec<t}),u=l.length,s=c.length,d=new Set,l.forEach(function(e){return d.add(e[o]||"Unknown")}),c.forEach(function(e){return d.add(e[o]||"Unknown")}),g=Array.from(d),"ageGroup"===o?((g=g.filter(function(e){return e&&"Unknown"!==e&&"Not specified"!==e})).sort(function(e,t){e=parseInt((e||"").split("-")[0],10),t=parseInt((t||"").split("-")[0],10);return isNaN(e)?1:isNaN(t)?-1:e-t}),d.has("Not specified")&&g.push("Not specified"),d.has("Unknown")&&g.push("Unknown")):"parkrunExperience"===o?(r=["First Timer (anywhere)","First Timer (to this event)","Multiple parkruns"].concat(_toConsumableArray(MILESTONE_CLUB_ORDER.map(function(e){return"parkrun ".concat(e," Club")}))),n=function(e){var t,n=r.indexOf(e);return-1!==n?n:(n=e.match(/parkrun (\d+) Club/))?(n=parseInt(n[1],10),-1!==(t=MILESTONE_CLUB_ORDER.indexOf(n))?3+t:200+n):"Unknown"===e?9999:999},g.sort(function(e,t){return n(e)-n(t)})):"volunteerStatus"===o?(a=["Yet to Volunteer","Volunteered once","Volunteered multiple times"].concat(_toConsumableArray(MILESTONE_CLUB_ORDER.map(function(e){return"Volunteer ".concat(e," Club")}))),i=function(e){var t=a.indexOf(e);return-1!==t?t:(t=e.match(/(\d+)/))?200+parseInt(t[1],10):"Has Volunteered"===e?150:"Unknown"===e?9999:999},g.sort(function(e,t){return i(e)-i(t)})):g.sort(),m=(p=u+s)?(u/p*100).toFixed(1):"0.0",y=p?(s/p*100).toFixed(1):"0.0",f='<div style="text-align:center;margin-bottom:0.5em;font-size:1.08em;">\n <strong>Walkers:</strong> '.concat(u," (").concat(m,"%) | <strong>Runners:</strong> ").concat(s," (").concat(y,"%) | <strong>Total finishers:</strong> ").concat(p,"\n </div>"),f+='<table class="Results-table" style="margin:1em auto;font-size:1.1em;">\n <thead><tr><th>'.concat(T.find(function(e){return e.key===o}).label,"</th><th>Walkers (n)</th><th>Walkers (%)</th><th>Runners (n)</th><th>Runners (%)</th><th>Total (n)</th><th>Total (%)</th></tr></thead><tbody>"),g.forEach(function(t){var e=l.filter(function(e){return(e[o]||"Unknown")===t}).length,n=c.filter(function(e){return(e[o]||"Unknown")===t}).length,r=e+n;f+="<tr><td>".concat(t,'</td><td style="text-align:right">').concat(e,'</td><td style="text-align:right">').concat(u?(e/u*100).toFixed(1):"0.0",'%</td><td style="text-align:right">').concat(n,'</td><td style="text-align:right">').concat(s?(n/s*100).toFixed(1):"0.0",'%</td><td style="text-align:right">').concat(r,'</td><td style="text-align:right">').concat(p?(r/p*100).toFixed(1):"0.0","%</td></tr>")}),f=f+'<tr style="font-weight:bold;"><td>Total</td><td style="text-align:right">'.concat(u,'</td><td style="text-align:right">100.0%</td><td style="text-align:right">').concat(s,'</td><td style="text-align:right">100.0%</td><td style="text-align:right">').concat(p,'</td><td style="text-align:right">100.0%</td></tr>')+"</tbody></table>"),document.getElementById("walkerAnalysisContainer")),y=(m||((m=document.createElement("div")).id="walkerAnalysisContainer",m.style.width="100%",m.style.maxWidth="900px",m.style.margin="20px auto"),m.innerHTML="",document.getElementById(N)),g=(y||((y=document.createElement("div")).id=N),m.appendChild(y),m.appendChild(L),m.appendChild(e),document.querySelector("h3")),h=(g&&g.parentNode?m.parentNode===g.parentNode&&m.previousSibling===g||(g.nextSibling?g.parentNode.insertBefore(m,g.nextSibling):g.parentNode.appendChild(m)):document.body.appendChild(m),O),y=T.find(function(e){return e.key===O}).label,e=N,b=(g=(n=>{var r={},o=1/0,a=0;return A.forEach(function(e){var t;0!==e.timeSec&&(t=Math.floor(e.timeSec/60),o=Math.min(o,t),a=Math.max(a,t),r[t]||(r[t]={}),e=e[n]||"Unknown",r[t][e]=(r[t][e]||0)+1)}),{bins:r,minMinute:o,maxMinute:a}})(h)).bins,E=g.maxMinute,v=[],S=g.minMinute;S<=E;S++)v.push(S);var k=new Set,x=(Object.values(b).forEach(function(e){return Object.keys(e).forEach(function(e){return k.add(e)})}),Array.from(k)),C=(x=((e,t)=>{var n,r,o,a,i;return"ageGroup"===t?((n=e.filter(function(e){return e&&"Unknown"!==e&&"Not specified"!==e})).sort(function(e,t){e=parseInt((e||"").split("-")[0],10),t=parseInt((t||"").split("-")[0],10);return isNaN(e)?1:isNaN(t)?-1:e-t}),e.includes("Not specified")&&n.push("Not specified"),e.includes("Unknown")&&n.push("Unknown"),n):"parkrunExperience"===t?(r=["First Timer (anywhere)","First Timer (to this event)","Multiple parkruns"].concat(_toConsumableArray(MILESTONE_CLUB_ORDER.map(function(e){return"parkrun ".concat(e," Club")}))),o=function(e){var t,n=r.indexOf(e);return-1!==n?n:(n=e.match(/parkrun (\d+) Club/))?(n=parseInt(n[1],10),-1!==(t=MILESTONE_CLUB_ORDER.indexOf(n))?3+t:200+n):"Unknown"===e?9999:999},e.slice().sort(function(e,t){return o(e)-o(t)})):"volunteerStatus"===t?(a=["Yet to Volunteer","Volunteered once","Volunteered multiple times"].concat(_toConsumableArray(MILESTONE_CLUB_ORDER.map(function(e){return"Volunteer ".concat(e," Club")}))),i=function(e){var t=a.indexOf(e);return-1!==t?t:(t=e.match(/(\d+)/))?200+parseInt(t[1],10):"Has Volunteered"===e?150:"Unknown"===e?9999:999},e.slice().sort(function(e,t){return i(e)-i(t)})):e.slice().sort()})(x,h)).map(function(t){return{label:t,data:v.map(function(e){return b[e]&&b[e][t]?b[e][t]:0}),backgroundColor:(e=t,"volunteerStatus"===h?(r=e.match(/(\d+)/))?(r=parseInt(r[1],10),milestoneColours[r]||"#cccccc"):milestoneColours[e]||"#cccccc":"parkrunExperience"===h?(r=e.match(/(\d+)/))?(r=parseInt(r[1],10),milestoneColours[r]||"#cccccc"):{"First Timer (anywhere)":"#FFE049","First Timer (to this event)":"#FFA300","Multiple parkruns":"#00CEAE",Unknown:"#A1B6B7"}[e]||"#cccccc":"gender"===h?{Male:"#00CEAE",Female:"#E21145","Not specified":"#FFE049",Unknown:"#A1B6B7"}[e]||"#FFA300":"ageGroup"===h?"Not specified"===e?"#F2F2F2":"Unknown"===e?"#A1B6B7":(r=e.match(/^(\d+)-/))&&(r=parseInt(r[1],10),n=["#DA70D6","#9370DB","#6495ED","#4169E1","#1E90FF","#00BFFF","#00CED1","#20B2AA","#3CB371","#32CD32","#9ACD32","#FFD700","#FFA500","#FF8C00","#FF6347","#DC143C","#DB7093"],r=Math.floor((r-10)/5),n[Math.min(r,n.length-1)])||"#cccccc":["#FFA300","#00CEAE","#E21145","#EBE9F0","#FFE049","#2C504A","#6D5698","#C81D31","#A1B6B7"][x.indexOf(e)%9]),stack:"stack1"};var e,n,r}),w=v.map(function(e){var t=Math.floor(e/60),e=e%60;return"".concat(t,":").concat(e.toString().padStart(2,"0"))}),_=document.getElementById(e);_?_.innerHTML="":(_=document.createElement("div")).id=e,_.style.background="#2b223d",_.style.borderRadius="8px",_.style.margin="20px auto",_.style.padding="15px",_.style.maxWidth="900px",_.style.boxShadow="0 2px 4px rgba(0,0,0,0.1)",(g=document.createElement("h3")).textContent="Finishers per Minute by ".concat(y),g.style.textAlign="center",g.style.marginBottom="15px",g.style.color="#FFA300",_.appendChild(g);var F=document.createElement("canvas");_.appendChild(F),(e=document.createElement("button")).textContent="💾 Save as Image",e.style.padding="6px 12px",e.style.backgroundColor="#FFA300",e.style.color="#2b223d",e.style.border="none",e.style.borderRadius="4px",e.style.cursor="pointer",e.style.fontWeight="bold",e.style.display="inline-block",e.style.margin="10px auto 0 auto",e.title="Download chart as PNG image",e.addEventListener("mouseover",function(){this.style.backgroundColor="#e59200"}),e.addEventListener("mouseout",function(){this.style.backgroundColor="#FFA300"}),e.addEventListener("click",_asyncToGenerator(_regenerator().m(function e(){var t,n,r,o,a,i,l,c,u,s,d,p;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:try{t=getEventMetadata(),n=_.querySelector("h3"),r=n?n.textContent.replace(/[^a-z0-9]+/gi,"-").replace(/^-+|-+$/g,"").toLowerCase():"chart",o=generateExportFilename(t,r),i=(a=F).width,l=i,c=a.height+100,(u=document.createElement("canvas")).width=l,u.height=c,(s=u.getContext("2d")).fillStyle="#2b223d",s.fillRect(0,0,l,c),s.fillStyle="#FFA300",s.textAlign="center",s.textBaseline="middle",s.font="bold 56px Arial",d=n?n.textContent:"Finishers per Minute",s.fillText(d,l/2,50),s.drawImage(a,0,100),(p=document.createElement("a")).download=o,p.href=u.toDataURL("image/png"),p.click()}catch(e){alert("Failed to export image: "+e)}case 1:return e.a(2)}},e)}))),(y=_.querySelector(".walker-controls-footer"))||((y=document.createElement("div")).className="walker-controls-footer",y.style.display="flex",y.style.justifyContent="center",y.style.marginTop="12px",_.appendChild(y)),y.innerHTML="",y.appendChild(e),D&&(D.destroy(),D=null),setTimeout(function(){ChartRef&&(D=new ChartRef(F.getContext("2d"),{type:"bar",data:{labels:w,datasets:C},options:{responsive:!0,layout:{padding:{left:60,right:60,top:40,bottom:40}},plugins:{legend:{labels:{color:"#e0e0e0"}},title:{display:!1}},scales:{x:{stacked:!0,title:{display:!0,text:"Finish Time",color:"#e0e0e0"},ticks:{color:"#cccccc"},grid:{color:"rgba(200,200,200,0.2)"}},y:{stacked:!0,beginAtZero:!0,title:{display:!0,text:"Number of Finishers",color:"#e0e0e0"},ticks:{color:"#cccccc",precision:0},grid:{color:"rgba(200,200,200,0.2)"}}}}}))},0),(m=document.getElementById(N))&&m.parentNode?m.nextSibling?m.parentNode.insertBefore(L,m.nextSibling):m.parentNode.appendChild(L):document.body.appendChild(L)}/\/results\/\d{4}-\d{2}-\d{2}\/?$/.test(e)&&(e=Array.from(document.querySelectorAll("tr.Results-table-row"))).length&&(A=assignUnknownFinishTimes(e.map(function(e,t){var n=e.querySelector(".Results-table-td--time .compact"),n=n?n.textContent.trim():"",r=(r=n)?2===(r=r.split(":").map(Number)).length?60*r[0]+r[1]:3===r.length?3600*r[0]+60*r[1]+r[2]:0:0,o=(e.getAttribute("data-gender")||"").trim(),a=parseInt(e.getAttribute("data-runs"),10),i=parseInt(e.getAttribute("data-vols"),10),l=(e.getAttribute("data-achievement")||"").trim(),c="Unknown",l=(!isNaN(a)&&0<a&&(c=1===a?"First Timer (anywhere)":"First Timer!"===l?"First Timer (to this event)":!(a<10)&&getMilestoneClub(a,"parkrun").status||"Multiple parkruns"),"Unknown"),a=0,i=(isNaN(i)||(0===i?l="Yet to Volunteer":1===i?l="Volunteered once":1<i&&i<10?l="Volunteered multiple times":(l=(i=getMilestoneClub(i,"Volunteer")).status||"Has Volunteered",a=i.milestone)),e.innerHTML.match(/milestone-v(\d+)/)),i=(i&&(l="Volunteer ".concat(i[1]," Club"),a=parseInt(i[1],10)),""),u=e.querySelector(".Results-table-td--agegrade"),u=(u&&(u=u.textContent.trim())&&(i=u.replace("%","")),"Unknown"),s=e.getAttribute("data-agegroup")||"",s=(s?u=s.replace(/^[A-Z]+/,""):(s=e.querySelector(".Results-table-td--agegroup"))?u=s.textContent.trim().replace(/^[A-Z]+/,"")||(n?"Not specified":"Unknown"):n&&(u="Not specified"),o.toLowerCase());return{timeStr:n,timeSec:r,gender:s="male"===s||"m"===s?"Male":"female"===s||"f"===s?"Female":n?"Not specified":"Unknown",parkrunExperience:c,volunteerStatus:l,volunteerMilestone:a,ageGrade:i,ageGroup:u,_row:e,_idx:t}})),T=[{key:"parkrunExperience",label:"parkrun Experience"},{key:"volunteerStatus",label:"Volunteer Experience"},{key:"gender",label:"Gender"},{key:"ageGroup",label:"Age Group"}],O="parkrunExperience",N="finishersStackedChart",D=null,(L=document.getElementById("walkerAnalysisControls"))||((L=document.createElement("div")).id="walkerAnalysisControls",L.style.textAlign="center",L.style.margin="20px 0 10px 0",L.style.color="#e0e0e0",L.style.background="#2b223d",L.style.padding="10px",L.style.borderRadius="8px",L.style.maxWidth="900px",L.style.marginLeft="auto",L.style.marginRight="auto"),n())}parkrunWalkerAnalysisMain(),"undefined"!=typeof module&&void 0!==module.exports&&(module.exports={assignUnknownFinishTimes:assignUnknownFinishTimes,getEventMetadata:getEventMetadata,generateExportFilename:generateExportFilename,computeWalkerThreshold:computeWalkerThreshold,getMilestoneClub:getMilestoneClub,MILESTONE_CLUB_THRESHOLDS:MILESTONE_CLUB_THRESHOLDS,MILESTONE_CLUB_ORDER:MILESTONE_CLUB_ORDER,milestoneColours:milestoneColours});