PageSourceSearch

https://www.rebelhockey.com/static/js/22.73d40605.chunk.js

js rebelhockey.com collected 2026-10-04 02:28:16 UTC 146,162 bytes, 3 lines download raw bytes

1/*! For license information please see 22.73d40605.chunk.js.LICENSE.txt */
2(this.webpackJsonpoptimx_sports_client_website=this.webpackJsonpoptimx_sports_client_website||[]).push([[22],{310:function(e,t,a){"use strict";var s=a(0),n=a(130),o=a(3),r=a(20),l=a(95),i=a(1),c=function(e){var t=e.title,a=e.pageTitle,c=e.description,d=e.keywords,p=Object(s.useContext)(r.b).globalState;return Object(i.jsxs)(n.a,{children:[Object(o.f)(t)?Object(i.jsx)("title",{children:t}):null,Object(o.f)(c)?Object(i.jsx)("meta",{name:"description",content:c}):null,Object(o.f)(d)?Object(i.jsx)("meta",{name:"keywords",content:d}):null,Object(o.f)(a)&&Object(o.d)(p)&&Object(o.d)(p.accountObject)&&Object(o.f)(p.accountObject.url)?Object(i.jsx)("script",{type:"application/ld+json",children:'\n                        {\n                            "@context": "https://schema.org",\n                            "@type": "BreadcrumbList",\n                            "itemListElement": [{\n                                "@type": "ListItem",\n                                "position": 1,\n                                "name": "Home",\n                                "item": "'.concat(p.accountObject.url,'/"\n                            },{\n                                "@type": "ListItem",\n                                "position": 2,\n                                "name": "').concat(a,'"\n                            }]\n                        }\n                    ')}):null,Object(o.d)(p)&&Object(o.d)(p.accountObject)&&Object(o.f)(p.accountObject.url)?Object(i.jsx)("link",{rel:"canonical",href:"".concat(p.accountObject.url).concat(window.location.pathname)}):null,Object(o.f)(t)?Object(i.jsx)("meta",{name:"twitter:title",content:t}):null,Object(o.f)(c)?Object(i.jsx)("meta",{name:"twitter:description",content:c}):null,Object(o.d)(p)&&Object(o.d)(p.socials)&&Object(o.f)(p.socials.twitterURL)?Object(i.jsx)("meta",{name:"twitter:site",content:"@".concat(Object(l.p)(p.socials.twitterURL))}):null,Object(o.f)(t)?Object(i.jsx)("meta",{property:"og:title",content:t}):null,Object(o.f)(c)?Object(i.jsx)("meta",{property:"og:description",content:c}):null]})};c.defaultProps={pageTitle:""},t.a=Object(s.memo)(c)},311:function(e,t,a){"use strict";var s=a(0),n=a(324),o=a(323),r=a(332),l=a(20),i=(a(312),a(1)),c=function(e){var t=e.links,a=e.lastCrumb,c=e.marginLeft,d=e.marginTop,p=e.fontColor,b=Object(s.useContext)(l.b).globalState;return Object(i.jsxs)(n.a,{className:"alegreya-font-family font-weight-700 breadcrumbs1-container text-uppercase font-size-s",style:{marginLeft:c,marginTop:d,color:"normal"===p?b.websiteStyles.colors.primaryColor:p},separator:"\u203a","aria-label":"breadcrumb",children:[t.map((function(e){return Object(i.jsx)(o.a,{color:"inherit",href:e.link,children:e.title},e.link)})),Object(i.jsx)(r.a,{className:"alegreya-font-family font-weight-700 font-size-s",children:a})]})};c.defaultProps={marginLeft:"100px",marginTop:"280px",fontColor:"normal"},t.a=Object(s.memo)(c)},312:function(e,t,a){},317:function(e,t,a){"use strict";var s=a(0),n=a(3),o=a(20),r=(a(321),a(1)),l=function(e){var t=e.title,a=e.useH1,l=Object(s.useContext)(o.b).globalState;return Object(r.jsxs)("div",{className:"title1 full-width",children:[a?Object(r.jsx)("h1",{className:"alegreya-font-family font-size-5xl text-uppercase m-t-0 m-b-0 font-weight-800 text-left-align",children:t}):Object(r.jsx)("p",{className:"alegreya-font-family font-size-5xl text-uppercase m-t-0 m-b-0 font-weight-800 text-left-align",children:t}),Object(n.d)(l.logo)&&Object(n.f)(l.logo.logo3)?Object(r.jsx)("img",{className:"title1-logo",src:l.logo.logo3,alt:Object(n.f)(l.teamName)?l.teamName:"Team Logo"}):null]})};l.defaultProps={useH1:!0},t.a=Object(s.memo)(l)},321:function(e,t,a){},351:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var s=a(18),n=function(e,t){return s.b.collectionGroup("game-players").where("id","==",t).where("teamId","==",e).where("timeOfGame","<=",new Date).orderBy("timeOfGame","desc").get()}},400:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"f",(function(){return n})),a.d(t,"a",(function(){return o}
2)),a.d(t,"h",(function(){return r})),a.d(t,"d",(function(){return l})),a.d(t,"l",(function(){return i})),a.d(t,"c",(function(){return c})),a.d(t,"j",(function(){return O})),a.d(t,"i",(function(){return g})),a.d(t,"g",(function(){return f})),a.d(t,"e",(function(){return y})),a.d(t,"k",(function(){return v}));var s=function(e){return d(e.stats)},n=function(e){return p(e.stats)},o=function(e){return b(e.stats)},r=function(e){return u(e.stats)},l=function(e){return h(e.stats)},i=function(e){return m(e.stats)},c=function(e){return j(e.stats)},d=function(e){var t=0;return e.forEach((function(e){t+=e.gamesPlayed})),t},p=function(e){var t=0;return e.forEach((function(e){t+=e.goals})),t},b=function(e){var t=0;return e.forEach((function(e){t+=e.assists})),t},u=function(e){var t=0;return e.forEach((function(e){t+=e.penaltyMinutes})),t},h=function(e){var t=0;return e.forEach((function(e){t+=e.goalieGoalsConceded})),t},m=function(e){var t=0;return e.forEach((function(e){t+=e.goalieShotsSaved})),t},j=function(e){var t=0;return e.forEach((function(e){t+=e.goalieMinutes})),t},O=function(e){return n(e)+o(e)},g=function(e,t){return e+t},f=function(e,t){return(100*e/t).toFixed(2)},y=function(e,t){return(e/t).toFixed(2)},v=function(e,t){return(e/t).toFixed(2)}},401:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"f",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"h",(function(){return r})),a.d(t,"d",(function(){return l})),a.d(t,"l",(function(){return i})),a.d(t,"c",(function(){return c})),a.d(t,"j",(function(){return O})),a.d(t,"i",(function(){return g})),a.d(t,"g",(function(){return f})),a.d(t,"e",(function(){return y})),a.d(t,"k",(function(){return v}));var s=function(e){return d(e.stats)},n=function(e){return p(e.stats)},o=function(e){return b(e.stats)},r=function(e){return u(e.stats)},l=function(e){return h(e.stats)},i=function(e){return m(e.stats)},c=function(e){return j(e.stats)},d=function(e){var t=0;return e.forEach((function(e){t+=e.gamesPlayed})),t},p=function(e){var t=0;return e.forEach((function(e){t+=e.goals})),t},b=function(e){var t=0;return e.forEach((function(e){t+=e.assists})),t},u=function(e){var t=0;return e.forEach((function(e){t+=e.penaltyMinutes})),t},h=function(e){var t=0;return e.forEach((function(e){t+=e.goalieGoalsConceded})),t},m=function(e){var t=0;return e.forEach((function(e){t+=e.goalieShotsSaved})),t},j=function(e){var t=0;return e.forEach((function(e){t+=e.goalieMinutes})),t},O=function(e){return n(e)+o(e)},g=function(e,t){return e+t},f=function(e,t){return(100*e/t).toFixed(2)},y=function(e,t){return(e/t).toFixed(2)},v=function(e,t){return(e/t).toFixed(2)}},455:function(e,t,a){"use strict";a.d(t,"b",(function(){return f})),a.d(t,"a",(function(){return y}));var s,n,o=a(29),r=a(23),l=a(4),i=a(10),c=a(14),d=a(3),p=a(351),b=a(86),u=a(80),h=a(71),m=a(103),j=a(2),O=a(19);function g(){g=function(){return t};var e,t={},a=Object.prototype,s=a.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,a){return e[t]=a}}function d(e,t,a,s){var o=t&&t.prototype instanceof j?t:j,r=Object.create(o.prototype),l=new B(s||[]);return n(r,"_invoke",{value:N(e,a,l)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var b="suspendedStart",u="executing",h="completed",m={};function j(){}function O(){}function f(){}var y={};c(y,r,(function(){return this}));var v=Object.getPrototypeOf,G=v&&v(v(L([])));G&&G!==a&&s.call(G,r)&&(y=G);var x=f.prototype=j.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(n,o,r,l){var i=p(e[n],e,o);if("throw"!==i.type){var c=i.arg,d=c.value;return d&&"object"==typeof d&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,r,l)}),(function(e){a("throw",e,r,l)})):t.resolve(d).then((function(e){c.value=e,r(c)}),(function(e){return a("throw",e,r,l)}))}l(i.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){a(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function N(t,a,s){var n=b;return function(o,r){if(n===u)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw r;return{value:e,done:!0}}for(s.method=o,s.arg=r;;){var l=s.delegate;if(l){var i=P(l,s);if(i){if(i===m)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===b)throw n=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=u;var c=p(t,a,s);if("normal"===c.type){if(n=s.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=h,s.method="throw",s.arg=c.arg)}}}function P(t,a){var s=a.method,n=t.iterator[s];if(n===e)return a.delegate=null,"throw"===s&&t.iterator.return&&
2(a.method="return",a.arg=e,P(t,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,a.arg);if("throw"===o.type)return a.method="throw",a.arg=o.arg,a.delegate=null,m;var r=o.arg;return r?r.done?(a[t.resultName]=r.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,m):r:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(t){if(t||""===t){var a=t[r];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function a(){for(;++n<t.length;)if(s.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=e,a.done=!0,a};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return O.prototype=f,n(x,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:O,configurable:!0}),O.displayName=c(f,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,a,s,n,o){void 0===o&&(o=Promise);var r=new S(d(e,a,s,n),o);return t.isGeneratorFunction(a)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},w(x),c(x,i,"Generator"),c(x,r,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var s in t)a.push(s);return a.reverse(),function e(){for(;a.length;){var s=a.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=L,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var a in this)"t"===a.charAt(0)&&s.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function n(s,n){return l.type="throw",l.arg=t,a.next=s,n&&(a.method="next",a.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var i=s.call(r,"catchLoc"),c=s.call(r,"finallyLoc");if(i&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=e,r.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),k(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var s=a.completion;if("throw"===s.type){var n=s.arg;k(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,s){return this.delegate={iterator:L(t),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}var f=function(e,t,a,n,m){return(s=s||Object(i.a)(g().mark((function e(t,a,s,n,m){var f,y,v,G;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,y=[],v=[],!s){e.next=9;break}return e.next=6,Object(b.a)(a);case 6:G=e.sent,e.next=12;break;case 9:return e.next=11,Object(b.e)(a);case 11:G=e.sent;case 12:return G.forEach((function(e){e.exists&&v.push(Object(l.a)({},e.data()))})),e.next=15,Promise.all(v.map((function(e){return(f=f||Object(i.a)(g().mark((function e(s){var n,i,c,b,m,j,O,f;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(d.d)(s)){e.next=26;break}return n=s.id,i={gamesPlayed:0,wins:0,losses:0,ties:0,shutOuts:0,goals:0,assists:0,shots:0,blocks:0,bodyChecks:0,faceOffWins:0,penalties:0,penaltyMinutes:0,emptyNetGoals:0,gameWinningGoals:0,powerPlayGoals:0,shortHandedGoals:0,goalieGoalsConceded:0,saves:0,goalieMinutes:0,goalieEmptyNetGoals:0,goalieGameWinningGoals:0,goaliePowerPlayGoals:0,goalieShortHandedGoals:0,goalieShotsOnGoal:0,goalieShotsSaved:0},c=new Map,e.next=6,Object(p.a)(a,n);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(c.has(t.preDevelopedSeasonId)){if(!(null===(n=c.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=c.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,i)}else c.set(t.preDevelopedSeasonId,new Map),null===(r=c.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,i);var p=Object(l.a)({},null===(a=c.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));p.gamesPlayed+=1,p.wins+="win"===t.winOrLoss?1:0,p.losses+="loss"===t.winOrLoss?1:0,p.ties+="tied"===t.winOrLoss?1:0,p.shutOuts+=t.shutOut?1:0,p.goals+=t.goals,p.assists+=t.assists,p.shots+=t.shots,p.blocks+=t.blocks,p.bodyChecks+=t.bodyChecks,p.faceOffWins+=t.faceOffWins,p.penalties+=t.penalties,p.penaltyMinutes+=t.penaltyMinutes/60,p.emptyNetGoals+=t.emptyNetGoals,p.gameWinningGoals+=t.gameWinningGoals,p.powerPlayGoals+=t.powerPlayGoals,p.shortHandedGoals+=t.shortHandedGoals,p.goalieGoalsConceded+=t.goalieGoalsConceded,p.saves+=t.saves,p.goalieMinutes+=t.goalieMinutes,p.goalieEmptyNetGoals+=t.goalieEmptyNetGoals,p.goalieGameWinningGoals+=t.goalieGameWinningGoals,p.goaliePowerPlayGoals+=t.goaliePowerPlayGoals,p.goalieShortHandedGoals+=t.goalieShortHandedGoals,p.goalieShotsOnGoal+=t.goalieShotsOnGoal,p.goalieShotsSaved+=t.goalieShotsSaved,null===(s=c.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,p)}})),b=s.overridingStats,Object.entries(b).forEach((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];
2Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(c.has(a))if(null===(t=c.get(a))||void 0===t?void 0:t.has(o)){var p,b,u=Object(l.a)({},null===(p=c.get(a))||void 0===p?void 0:p.get(o));u.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:u.gamesPlayed,u.wins=Object(d.e)(i.wins)?i.wins:u.wins,u.losses=Object(d.e)(i.losses)?i.losses:u.losses,u.ties=Object(d.e)(i.ties)?i.ties:u.ties,u.shutOuts=Object(d.e)(i.shutOuts)?i.shutOuts:u.shutOuts,u.goals=Object(d.e)(i.goals)?i.goals:u.goals,u.assists=Object(d.e)(i.assists)?i.assists:u.assists,u.shots=Object(d.e)(i.shots)?i.shots:u.shots,u.blocks=Object(d.e)(i.blocks)?i.blocks:u.blocks,u.bodyChecks=Object(d.e)(i.bodyChecks)?i.bodyChecks:u.bodyChecks,u.faceOffWins=Object(d.e)(i.faceOffWins)?i.faceOffWins:u.faceOffWins,u.penalties=Object(d.e)(i.penalties)?i.penalties:u.penalties,u.penaltyMinutes=Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:u.penaltyMinutes,u.emptyNetGoals=Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:u.emptyNetGoals,u.gameWinningGoals=Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:u.gameWinningGoals,u.powerPlayGoals=Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:u.powerPlayGoals,u.shortHandedGoals=Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:u.shortHandedGoals,u.goalieGoalsConceded=Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:u.goalieGoalsConceded,u.saves=Object(d.e)(i.saves)?i.saves:u.saves,u.goalieMinutes=Object(d.e)(i.goalieMinutes)?i.goalieMinutes:u.goalieMinutes,u.goalieEmptyNetGoals=Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:u.goalieEmptyNetGoals,u.goalieGameWinningGoals=Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:u.goalieGameWinningGoals,u.goaliePowerPlayGoals=Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:u.goaliePowerPlayGoals,u.goalieShortHandedGoals=Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:u.goalieShortHandedGoals,u.goalieShotsOnGoal=Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:u.goalieShotsOnGoal,u.goalieShotsSaved=Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:u.goalieShotsSaved,null===(b=c.get(a))||void 0===b||b.set(o,u)}else{var h;null===(h=c.get(a))||void 0===h||h.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}else c.set(a,new Map),null===(s=c.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}
2))})),m=new Map,j=new Map,e.next=14,Object(h.b)(t);case 14:return e.sent.forEach((function(e){e.exists&&m.set(e.data().id,e.data().name)})),e.next=18,Object(u.c)(t);case 18:e.sent.forEach((function(e){e.exists&&j.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),O=new Map,c.forEach((function(e,t){var a=m.get(t);O.set(a,new Map),e.forEach((function(e,t){var s,n=j.get(t);null===(s=O.get(a))||void 0===s||s.set(n,e)})),O.set(a,new Map(Object(o.a)(O.get(a).entries()).sort()))})),O=new Map(Object(o.a)(O.entries()).sort()),f=[],O.forEach((function(e,t){e.forEach((function(e,a){f.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),y.push(Object(l.a)(Object(l.a)({},s),{},{stats:f}));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 15:n({type:"fetchPlayersStats",players:y}),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),Object(O.e)(c.g),j.c&&(m(c.g,{variant:"error"}),console.log(e.t0));case 22:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)},y=function(e,t,a,s,f){return(n=n||Object(i.a)(g().mark((function e(t,a,s,n,f){var y,v,G,x,w,S,N,P,E,k,B,L;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v={gamesPlayed:0,wins:0,losses:0,ties:0,shutOuts:0,goals:0,assists:0,shots:0,blocks:0,bodyChecks:0,faceOffWins:0,penalties:0,penaltyMinutes:0,emptyNetGoals:0,gameWinningGoals:0,powerPlayGoals:0,shortHandedGoals:0,goalieGoalsConceded:0,saves:0,goalieMinutes:0,goalieEmptyNetGoals:0,goalieGameWinningGoals:0,goaliePowerPlayGoals:0,goalieShortHandedGoals:0,goalieShotsOnGoal:0,goalieShotsSaved:0},G=new Map,x=[],e.next=6,Object(p.a)(a,s);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(G.has(t.preDevelopedSeasonId)){if(!(null===(n=G.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=G.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,v)}else G.set(t.preDevelopedSeasonId,new Map),null===(r=G.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,v);var i=Object(l.a)({},null===(a=G.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));i.gamesPlayed+=1,i.wins+="win"===t.winOrLoss?1:0,i.losses+="loss"===t.winOrLoss?1:0,i.ties+="tied"===t.winOrLoss?1:0,i.shutOuts+=t.shutOut?1:0,i.goals+=t.goals,i.assists+=t.assists,i.shots+=t.shots,i.blocks+=t.blocks,i.bodyChecks+=t.bodyChecks,i.faceOffWins+=t.faceOffWins,i.penalties+=t.penalties,i.penaltyMinutes+=t.penaltyMinutes/60,i.emptyNetGoals+=t.emptyNetGoals,i.gameWinningGoals+=t.gameWinningGoals,i.powerPlayGoals+=t.powerPlayGoals,i.shortHandedGoals+=t.shortHandedGoals,i.goalieGoalsConceded+=t.goalieGoalsConceded,i.saves+=t.saves,i.goalieMinutes+=t.goalieMinutes,i.goalieEmptyNetGoals+=t.goalieEmptyNetGoals,i.goalieGameWinningGoals+=t.goalieGameWinningGoals,i.goaliePowerPlayGoals+=t.goaliePowerPlayGoals,i.goalieShortHandedGoals+=t.goalieShortHandedGoals,i.goalieShotsOnGoal+=t.goalieShotsOnGoal,i.goalieShotsSaved+=t.goalieShotsSaved,null===(s=G.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,i),x.push({seasonId:t.preDevelopedSeasonId,leagueId:t.preDevelopedLeagueId,opponentId:t.opponentId,timeOfGame:t.timeOfGame,homeGame:t.homeGame,winOrLoss:t.winOrLoss,gameScore:t.gameScore,shutOut:t.shutOut,goals:t.goals,assists:t.assists,shots:t.shots,blocks:t.blocks,bodyChecks:t.bodyChecks,faceOffWins:t.faceOffWins,penalties:t.penalties,penaltyMinutes:t.penaltyMinutes/60,emptyNetGoals:t.emptyNetGoals,gameWinningGoals:t.gameWinningGoals,powerPlayGoals:t.powerPlayGoals,shortHandedGoals:t.shortHandedGoals,goalieGoalsConceded:t.goalieGoalsConceded,saves:t.saves,goalieMinutes:t.goalieMinutes,goalieEmptyNetGoals:t.goalieEmptyNetGoals,goalieGameWinningGoals:t.goalieGameWinningGoals,goaliePowerPlayGoals:t.goaliePowerPlayGoals,goalieShortHandedGoals:t.goalieShortHandedGoals,goalieShotsOnGoal:t.goalieShotsOnGoal,goalieShotsSaved:t.goalieShotsSaved})}})),e.next=10,Object(b.d)(s);case 10:return w=e.sent,S=w.data(),w.exists&&Object(d.d)(S)&&(N=S.overridingStats,Object.entries(N).forEac
2h((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(G.has(a))if(null===(t=G.get(a))||void 0===t?void 0:t.has(o)){var c,p,b=Object(l.a)({},null===(c=G.get(a))||void 0===c?void 0:c.get(o));b.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:b.gamesPlayed,b.wins=Object(d.e)(i.wins)?i.wins:b.wins,b.losses=Object(d.e)(i.losses)?i.losses:b.losses,b.ties=Object(d.e)(i.ties)?i.ties:b.ties,b.shutOuts=Object(d.e)(i.shutOuts)?i.shutOuts:b.shutOuts,b.goals=Object(d.e)(i.goals)?i.goals:b.goals,b.assists=Object(d.e)(i.assists)?i.assists:b.assists,b.shots=Object(d.e)(i.shots)?i.shots:b.shots,b.blocks=Object(d.e)(i.blocks)?i.blocks:b.blocks,b.bodyChecks=Object(d.e)(i.bodyChecks)?i.bodyChecks:b.bodyChecks,b.faceOffWins=Object(d.e)(i.faceOffWins)?i.faceOffWins:b.faceOffWins,b.penalties=Object(d.e)(i.penalties)?i.penalties:b.penalties,b.penaltyMinutes=Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:b.penaltyMinutes,b.emptyNetGoals=Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:b.emptyNetGoals,b.gameWinningGoals=Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:b.gameWinningGoals,b.powerPlayGoals=Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:b.powerPlayGoals,b.shortHandedGoals=Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:b.shortHandedGoals,b.goalieGoalsConceded=Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:b.goalieGoalsConceded,b.saves=Object(d.e)(i.saves)?i.saves:b.saves,b.goalieMinutes=Object(d.e)(i.goalieMinutes)?i.goalieMinutes:b.goalieMinutes,b.goalieEmptyNetGoals=Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:b.goalieEmptyNetGoals,b.goalieGameWinningGoals=Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:b.goalieGameWinningGoals,b.goaliePowerPlayGoals=Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:b.goaliePowerPlayGoals,b.goalieShortHandedGoals=Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:b.goalieShortHandedGoals,b.goalieShotsOnGoal=Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:b.goalieShotsOnGoal,b.goalieShotsSaved=Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:b.goalieShotsSaved,null===(p=G.get(a))||void 0===p||p.set(o,b)}else{var u;null===(u=G.get(a))||void 0===u||u.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}else G.set(a,new Map),null===(s=G.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}
2))}))),P=new Map,E=new Map,e.next=17,Object(h.b)(t);case 17:return e.sent.forEach((function(e){e.exists&&P.set(e.data().id,e.data().name)})),e.next=21,Object(u.c)(t);case 21:return e.sent.forEach((function(e){e.exists&&E.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),k=new Map,G.forEach((function(e,t){var a=P.get(t);k.set(a,new Map),e.forEach((function(e,t){var s,n=E.get(t);null===(s=k.get(a))||void 0===s||s.set(n,e)})),k.set(a,new Map(Object(o.a)(k.get(a).entries()).sort()))})),k=new Map(Object(o.a)(k.entries()).sort()),B=[],k.forEach((function(e,t){e.forEach((function(e,a){B.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),L=Array(x.length),e.next=31,Promise.all(x.map((function(e,t){return(y=y||Object(i.a)(g().mark((function e(t,s){var n,o,r,i,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=P.get(x[s].seasonId),o=E.get(x[s].leagueId),e.next=4,Object(m.a)(a,x[s].opponentId);case 4:r=e.sent,i="",r.exists&&Object(d.d)(r.data())&&(i=r.data().name),c=Object(l.a)(Object(l.a)({},t),{},{seasonName:n,leagueName:o,opponentName:i}),L[s]=c;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 31:n({type:"fetchStatsAndGameLogs",stats:B,gameLogs:L}),e.next=38;break;case 34:e.prev=34,e.t0=e.catch(0),Object(O.e)(c.h),j.c&&(f(c.h,{variant:"error"}),console.log(e.t0));case 38:case"end":return e.stop()}}),e,null,[[0,34]])})))).apply(this,arguments)}},456:function(e,t,a){"use strict";a.d(t,"b",(function(){return f})),a.d(t,"a",(function(){return y}));var s,n,o=a(29),r=a(23),l=a(4),i=a(10),c=a(14),d=a(3),p=a(351),b=a(86),u=a(80),h=a(71),m=a(103),j=a(2),O=a(19);function g(){g=function(){return t};var e,t={},a=Object.prototype,s=a.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,a){return e[t]=a}}function d(e,t,a,s){var o=t&&t.prototype instanceof j?t:j,r=Object.create(o.prototype),l=new B(s||[]);return n(r,"_invoke",{value:N(e,a,l)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var b="suspendedStart",u="executing",h="completed",m={};function j(){}function O(){}function f(){}var y={};c(y,r,(function(){return this}));var v=Object.getPrototypeOf,G=v&&v(v(L([])));G&&G!==a&&s.call(G,r)&&(y=G);var x=f.prototype=j.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(n,o,r,l){var i=p(e[n],e,o);if("throw"!==i.type){var c=i.arg,d=c.value;return d&&"object"==typeof d&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,r,l)}),(function(e){a("throw",e,r,l)})):t.resolve(d).then((function(e){c.value=e,r(c)}),(function(e){return a("throw",e,r,l)}))}l(i.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){a(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function N(t,a,s){var n=b;return function(o,r){if(n===u)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw r;return{value:e,done:!0}}for(s.method=o,s.arg=r;;){var l=s.delegate;if(l){var i=P(l,s);if(i){if(i===m)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===b)throw n=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=u;var c=p(t,a,s);if("normal"===c.type){if(n=s.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=h,s.method="throw",s.arg=c.arg)}}}function P(t,a){var s=a.method,n=t.iterator[s];if(n===e)return a.delegate=null,"throw"===s&&t.iterator.return&&(a.method="return",a.arg=e,P(t,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,a.arg);if("throw"===o.type)return a.method="throw",a.arg=o.arg,a.delegate=null,m;var r=o.arg;
2return r?r.done?(a[t.resultName]=r.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,m):r:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(t){if(t||""===t){var a=t[r];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function a(){for(;++n<t.length;)if(s.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=e,a.done=!0,a};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return O.prototype=f,n(x,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:O,configurable:!0}),O.displayName=c(f,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,a,s,n,o){void 0===o&&(o=Promise);var r=new S(d(e,a,s,n),o);return t.isGeneratorFunction(a)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},w(x),c(x,i,"Generator"),c(x,r,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var s in t)a.push(s);return a.reverse(),function e(){for(;a.length;){var s=a.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=L,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var a in this)"t"===a.charAt(0)&&s.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function n(s,n){return l.type="throw",l.arg=t,a.next=s,n&&(a.method="next",a.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var i=s.call(r,"catchLoc"),c=s.call(r,"finallyLoc");if(i&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=e,r.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),k(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var s=a.completion;if("throw"===s.type){var n=s.arg;k(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,s){return this.delegate={iterator:L(t),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}var f=function(e,t,a,n,m){return(s=s||Object(i.a)(g().mark((function e(t,a,s,n,m){var f,y,v,G;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,y=[],v=[],!s){e.next=9;break}return e.next=6,Object(b.a)(a);case 6:G=e.sent,e.next=12;break;case 9:return e.next=11,Object(b.e)(a);case 11:G=e.sent;case 12:return G.forEach((function(e){e.exists&&v.push(Object(l.a)({},e.data()))})),e.next=15,Promise.all(v.map((function(e){return(f=f||Object(i.a)(g().mark((function e(s){var n,i,c,b,m,j,O,f;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(d.d)(s)){e.next=26;break}return n=s.id,i={gamesPlayed:0,wins:0,losses:0,ties:0,shutOuts:0,goals:0,assists:0,shots:0,blocks:0,groundBalls:0,turnOvers:0,bodyChecks:0,faceOffWins:0,penalties:0,penaltyMinutes:0,emptyNetGoals:0,gameWinningGoals:0,powerPlayGoals:0,shortHandedGoals:0,goalieGoalsConceded:0,saves:0,goalieMinutes:0,goalieEmptyNetGoals:0,goalieGameWinningGoals:0,goaliePowerPlayGoals:0,goalieShortHandedGoals:0,goalieShotsOnGoal:0,goalieShotsSaved:0},c=new Map,e.next=6,Object(p.a)(a,n);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(c.has(t.preDevelopedSeasonId)){if(!(null===(n=c.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=c.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,i)}else c.set(t.preDevelopedSeasonId,new Map),null===(r=c.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,i);var p=Object(l.a)({},null===(a=c.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));p.gamesPlayed+=1,p.wins+="win"===t.winOrLoss?1:0,p.losses+="loss"===t.winOrLoss?1:0,p.ties+="tied"===t.winOrLoss?1:0,p.shutOuts+=t.shutOut?1:0,p.goals+=t.goals,p.assists+=t.assists,p.shots+=t.shots,p.blocks+=t.blocks,p.groundBalls+=t.groundBalls,p.turnOvers+=t.turnOvers,p.bodyChecks+=t.bodyChecks,p.faceOffWins+=t.faceOffWins,p.penalties+=t.penalties,p.penaltyMinutes+=t.penaltyMinutes/60,p.emptyNetGoals+=t.emptyNetGoals,p.gameWinningGoals+=t.gameWinningGoals,p.powerPlayGoals+=t.powerPlayGoals,p.shortHandedGoals+=t.shortHandedGoals,p.goalieGoalsConceded+=t.goalieGoalsConceded,p.saves+=t.saves,p.goalieMinutes+=t.goalieMinutes,p.goalieEmptyNetGoals+=t.goalieEmptyNetGoals,p.goalieGameWinningGoals+=t.goalieGameWinningGoals,p.goaliePowerPlayGoals+=t.goaliePowerPlayGoals,p.goalieShortHandedGoals+=t.goalieShortHandedGoals,p.goalieShotsOnGoal+=t.goalieShotsOnGoal,p.goalieShotsSaved+=t.goalieShotsSaved,null===(s=c.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,p)}})),b=s.overridingStats,Object.entries(b).forEach((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];
2Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(c.has(a))if(null===(t=c.get(a))||void 0===t?void 0:t.has(o)){var p,b,u=Object(l.a)({},null===(p=c.get(a))||void 0===p?void 0:p.get(o));u.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:u.gamesPlayed,u.wins=Object(d.e)(i.wins)?i.wins:u.wins,u.losses=Object(d.e)(i.losses)?i.losses:u.losses,u.ties=Object(d.e)(i.ties)?i.ties:u.ties,u.shutOuts=Object(d.e)(i.shutOuts)?i.shutOuts:u.shutOuts,u.goals=Object(d.e)(i.goals)?i.goals:u.goals,u.assists=Object(d.e)(i.assists)?i.assists:u.assists,u.shots=Object(d.e)(i.shots)?i.shots:u.shots,u.blocks=Object(d.e)(i.blocks)?i.blocks:u.blocks,u.bodyChecks=Object(d.e)(i.bodyChecks)?i.bodyChecks:u.bodyChecks,u.groundBalls=Object(d.e)(i.groundBalls)?i.groundBalls:u.groundBalls,u.turnOvers=Object(d.e)(i.turnOvers)?i.turnOvers:u.turnOvers,u.faceOffWins=Object(d.e)(i.faceOffWins)?i.faceOffWins:u.faceOffWins,u.penalties=Object(d.e)(i.penalties)?i.penalties:u.penalties,u.penaltyMinutes=Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:u.penaltyMinutes,u.emptyNetGoals=Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:u.emptyNetGoals,u.gameWinningGoals=Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:u.gameWinningGoals,u.powerPlayGoals=Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:u.powerPlayGoals,u.shortHandedGoals=Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:u.shortHandedGoals,u.goalieGoalsConceded=Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:u.goalieGoalsConceded,u.saves=Object(d.e)(i.saves)?i.saves:u.saves,u.goalieMinutes=Object(d.e)(i.goalieMinutes)?i.goalieMinutes:u.goalieMinutes,u.goalieEmptyNetGoals=Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:u.goalieEmptyNetGoals,u.goalieGameWinningGoals=Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:u.goalieGameWinningGoals,u.goaliePowerPlayGoals=Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:u.goaliePowerPlayGoals,u.goalieShortHandedGoals=Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:u.goalieShortHandedGoals,u.goalieShotsOnGoal=Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:u.goalieShotsOnGoal,u.goalieShotsSaved=Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:u.goalieShotsSaved,null===(b=c.get(a))||void 0===b||b.set(o,u)}else{var h;null===(h=c.get(a))||void 0===h||h.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,groundBalls:Object(d.e)(i.groundBalls)?i.groundBalls:0,turnOvers:Object(d.e)(i.turnOvers)?i.turnOvers:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}else c.set(a,new Map),null===(s=c.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,groundBalls:Object(d.e)(i.groundBalls)?i.groundBalls:0,turnOvers:Object(d.e)(i.turnOvers)?i.turnOvers:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}
2))})),m=new Map,j=new Map,e.next=14,Object(h.b)(t);case 14:return e.sent.forEach((function(e){e.exists&&m.set(e.data().id,e.data().name)})),e.next=18,Object(u.c)(t);case 18:e.sent.forEach((function(e){e.exists&&j.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),O=new Map,c.forEach((function(e,t){var a=m.get(t);O.set(a,new Map),e.forEach((function(e,t){var s,n=j.get(t);null===(s=O.get(a))||void 0===s||s.set(n,e)})),O.set(a,new Map(Object(o.a)(O.get(a).entries()).sort()))})),O=new Map(Object(o.a)(O.entries()).sort()),f=[],O.forEach((function(e,t){e.forEach((function(e,a){f.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),y.push(Object(l.a)(Object(l.a)({},s),{},{stats:f}));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 15:n({type:"fetchPlayersStats",players:y}),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),Object(O.e)(c.g),j.c&&(m(c.g,{variant:"error"}),console.log(e.t0));case 22:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)},y=function(e,t,a,s,f){return(n=n||Object(i.a)(g().mark((function e(t,a,s,n,f){var y,v,G,x,w,S,N,P,E,k,B,L;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v={gamesPlayed:0,wins:0,losses:0,ties:0,shutOuts:0,goals:0,assists:0,shots:0,blocks:0,turnOvers:0,groundBalls:0,bodyChecks:0,faceOffWins:0,penalties:0,penaltyMinutes:0,emptyNetGoals:0,gameWinningGoals:0,powerPlayGoals:0,shortHandedGoals:0,goalieGoalsConceded:0,saves:0,goalieMinutes:0,goalieEmptyNetGoals:0,goalieGameWinningGoals:0,goaliePowerPlayGoals:0,goalieShortHandedGoals:0,goalieShotsOnGoal:0,goalieShotsSaved:0},G=new Map,x=[],e.next=6,Object(p.a)(a,s);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(G.has(t.preDevelopedSeasonId)){if(!(null===(n=G.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=G.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,v)}else G.set(t.preDevelopedSeasonId,new Map),null===(r=G.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,v);var i=Object(l.a)({},null===(a=G.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));i.gamesPlayed+=1,i.wins+="win"===t.winOrLoss?1:0,i.losses+="loss"===t.winOrLoss?1:0,i.ties+="tied"===t.winOrLoss?1:0,i.shutOuts+=t.shutOut?1:0,i.goals+=t.goals,i.assists+=t.assists,i.shots+=t.shots,i.blocks+=t.blocks,i.bodyChecks+=t.bodyChecks,i.groundBalls+=t.groundBalls,i.turnOvers+=t.turnOvers,i.faceOffWins+=t.faceOffWins,i.penalties+=t.penalties,i.penaltyMinutes+=t.penaltyMinutes/60,i.emptyNetGoals+=t.emptyNetGoals,i.gameWinningGoals+=t.gameWinningGoals,i.powerPlayGoals+=t.powerPlayGoals,i.shortHandedGoals+=t.shortHandedGoals,i.goalieGoalsConceded+=t.goalieGoalsConceded,i.saves+=t.saves,i.goalieMinutes+=t.goalieMinutes,i.goalieEmptyNetGoals+=t.goalieEmptyNetGoals,i.goalieGameWinningGoals+=t.goalieGameWinningGoals,i.goaliePowerPlayGoals+=t.goaliePowerPlayGoals,i.goalieShortHandedGoals+=t.goalieShortHandedGoals,i.goalieShotsOnGoal+=t.goalieShotsOnGoal,i.goalieShotsSaved+=t.goalieShotsSaved,null===(s=G.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,i),x.push({seasonId:t.preDevelopedSeasonId,leagueId:t.preDevelopedLeagueId,opponentId:t.opponentId,timeOfGame:t.timeOfGame,homeGame:t.homeGame,winOrLoss:t.winOrLoss,gameScore:t.gameScore,shutOut:t.shutOut,goals:t.goals,assists:t.assists,shots:t.shots,blocks:t.blocks,bodyChecks:t.bodyChecks,groundBalls:t.groundBalls,turnOvers:t.turnOvers,faceOffWins:t.faceOffWins,penalties:t.penalties,penaltyMinutes:t.penaltyMinutes/60,emptyNetGoals:t.emptyNetGoals,gameWinningGoals:t.gameWinningGoals,powerPlayGoals:t.powerPlayGoals,shortHandedGoals:t.shortHandedGoals,goalieGoalsConceded:t.goalieGoalsConceded,saves:t.saves,goalieMinutes:t.goalieMinutes,goalieEmptyNetGoals:t.goalieEmptyNetGoals,goalieGameWinningGoals:t.goalieGameWinningGoals,goaliePowerPlayGoals:t.goaliePowerPlayGoals,goalieShortHandedGoals:t.goalieShortHandedGoals,goalieShotsOnGoal:t.goalieShotsOnGoal,goalieShotsSaved:t.goalieShotsSaved})}})),e.next=10,Object(b.d)(s);case 10:return w=e.sent,S=w.data(),w.exists&&Object(d.d)(S)&&(N=S.overridingStats,Object.entries(N).forEac
2h((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(G.has(a))if(null===(t=G.get(a))||void 0===t?void 0:t.has(o)){var c,p,b=Object(l.a)({},null===(c=G.get(a))||void 0===c?void 0:c.get(o));b.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:b.gamesPlayed,b.wins=Object(d.e)(i.wins)?i.wins:b.wins,b.losses=Object(d.e)(i.losses)?i.losses:b.losses,b.ties=Object(d.e)(i.ties)?i.ties:b.ties,b.shutOuts=Object(d.e)(i.shutOuts)?i.shutOuts:b.shutOuts,b.goals=Object(d.e)(i.goals)?i.goals:b.goals,b.assists=Object(d.e)(i.assists)?i.assists:b.assists,b.shots=Object(d.e)(i.shots)?i.shots:b.shots,b.blocks=Object(d.e)(i.blocks)?i.blocks:b.blocks,b.bodyChecks=Object(d.e)(i.bodyChecks)?i.bodyChecks:b.bodyChecks,b.groundBalls=Object(d.e)(i.groundBalls)?i.groundBalls:b.groundBalls,b.turnOvers=Object(d.e)(i.turnOvers)?i.turnOvers:b.turnOvers,b.faceOffWins=Object(d.e)(i.faceOffWins)?i.faceOffWins:b.faceOffWins,b.penalties=Object(d.e)(i.penalties)?i.penalties:b.penalties,b.penaltyMinutes=Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:b.penaltyMinutes,b.emptyNetGoals=Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:b.emptyNetGoals,b.gameWinningGoals=Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:b.gameWinningGoals,b.powerPlayGoals=Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:b.powerPlayGoals,b.shortHandedGoals=Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:b.shortHandedGoals,b.goalieGoalsConceded=Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:b.goalieGoalsConceded,b.saves=Object(d.e)(i.saves)?i.saves:b.saves,b.goalieMinutes=Object(d.e)(i.goalieMinutes)?i.goalieMinutes:b.goalieMinutes,b.goalieEmptyNetGoals=Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:b.goalieEmptyNetGoals,b.goalieGameWinningGoals=Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:b.goalieGameWinningGoals,b.goaliePowerPlayGoals=Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:b.goaliePowerPlayGoals,b.goalieShortHandedGoals=Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:b.goalieShortHandedGoals,b.goalieShotsOnGoal=Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:b.goalieShotsOnGoal,b.goalieShotsSaved=Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:b.goalieShotsSaved,null===(p=G.get(a))||void 0===p||p.set(o,b)}else{var u;null===(u=G.get(a))||void 0===u||u.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,groundBalls:Object(d.e)(i.groundBalls)?i.groundBalls:0,turnOvers:Object(d.e)(i.turnOvers)?i.turnOvers:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}else G.set(a,new Map),null===(s=G.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,shutOuts:Object(d.e)(i.shutOuts)?i.shutOuts:0,goals:Object(d.e)(i.goals)?i.goals:0,assists:Object(d.e)(i.assists)?i.assists:0,shots:Object(d.e)(i.shots)?i.shots:0,blocks:Object(d.e)(i.blocks)?i.blocks:0,bodyChecks:Object(d.e)(i.bodyChecks)?i.bodyChecks:0,groundBalls:Object(d.e)(i.groundBalls)?i.groundBalls:0,turnOvers:Object(d.e)(i.turnOvers)?i.turnOvers:0,faceOffWins:Object(d.e)(i.faceOffWins)?i.faceOffWins:0,penalties:Object(d.e)(i.penalties)?i.penalties:0,penaltyMinutes:Object(d.e)(i.penaltyMinutes)?i.penaltyMinutes:0,emptyNetGoals:Object(d.e)(i.emptyNetGoals)?i.emptyNetGoals:0,gameWinningGoals:Object(d.e)(i.gameWinningGoals)?i.gameWinningGoals:0,powerPlayGoals:Object(d.e)(i.powerPlayGoals)?i.powerPlayGoals:0,shortHandedGoals:Object(d.e)(i.shortHandedGoals)?i.shortHandedGoals:0,goalieGoalsConceded:Object(d.e)(i.goalieGoalsConceded)?i.goalieGoalsConceded:0,saves:Object(d.e)(i.saves)?i.saves:0,goalieMinutes:Object(d.e)(i.goalieMinutes)?i.goalieMinutes:0,goalieEmptyNetGoals:Object(d.e)(i.goalieEmptyNetGoals)?i.goalieEmptyNetGoals:0,goalieGameWinningGoals:Object(d.e)(i.goalieGameWinningGoals)?i.goalieGameWinningGoals:0,goaliePowerPlayGoals:Object(d.e)(i.goaliePowerPlayGoals)?i.goaliePowerPlayGoals:0,goalieShortHandedGoals:Object(d.e)(i.goalieShortHandedGoals)?i.goalieShortHandedGoals:0,goalieShotsOnGoal:Object(d.e)(i.goalieShotsOnGoal)?i.goalieShotsOnGoal:0,goalieShotsSaved:Object(d.e)(i.goalieShotsSaved)?i.goalieShotsSaved:0})}
2))}))),P=new Map,E=new Map,e.next=17,Object(h.b)(t);case 17:return e.sent.forEach((function(e){e.exists&&P.set(e.data().id,e.data().name)})),e.next=21,Object(u.c)(t);case 21:return e.sent.forEach((function(e){e.exists&&E.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),k=new Map,G.forEach((function(e,t){var a=P.get(t);k.set(a,new Map),e.forEach((function(e,t){var s,n=E.get(t);null===(s=k.get(a))||void 0===s||s.set(n,e)})),k.set(a,new Map(Object(o.a)(k.get(a).entries()).sort()))})),k=new Map(Object(o.a)(k.entries()).sort()),B=[],k.forEach((function(e,t){e.forEach((function(e,a){B.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),L=Array(x.length),e.next=31,Promise.all(x.map((function(e,t){return(y=y||Object(i.a)(g().mark((function e(t,s){var n,o,r,i,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=P.get(x[s].seasonId),o=E.get(x[s].leagueId),e.next=4,Object(m.a)(a,x[s].opponentId);case 4:r=e.sent,i="",r.exists&&Object(d.d)(r.data())&&(i=r.data().name),c=Object(l.a)(Object(l.a)({},t),{},{seasonName:n,leagueName:o,opponentName:i}),L[s]=c;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 31:n({type:"fetchStatsAndGameLogs",stats:B,gameLogs:L}),e.next=38;break;case 34:e.prev=34,e.t0=e.catch(0),Object(O.e)(c.h),j.c&&(f(c.h,{variant:"error"}),console.log(e.t0));case 38:case"end":return e.stop()}}),e,null,[[0,34]])})))).apply(this,arguments)}},457:function(e,t,a){"use strict";a.d(t,"b",(function(){return f})),a.d(t,"a",(function(){return y}));var s,n,o=a(29),r=a(23),l=a(4),i=a(10),c=a(14),d=a(3),p=a(351),b=a(86),u=a(80),h=a(71),m=a(103),j=a(2),O=a(19);function g(){g=function(){return t};var e,t={},a=Object.prototype,s=a.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,a){return e[t]=a}}function d(e,t,a,s){var o=t&&t.prototype instanceof j?t:j,r=Object.create(o.prototype),l=new B(s||[]);return n(r,"_invoke",{value:N(e,a,l)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var b="suspendedStart",u="executing",h="completed",m={};function j(){}function O(){}function f(){}var y={};c(y,r,(function(){return this}));var v=Object.getPrototypeOf,G=v&&v(v(L([])));G&&G!==a&&s.call(G,r)&&(y=G);var x=f.prototype=j.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function a(n,o,r,l){var i=p(e[n],e,o);if("throw"!==i.type){var c=i.arg,d=c.value;return d&&"object"==typeof d&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,r,l)}),(function(e){a("throw",e,r,l)})):t.resolve(d).then((function(e){c.value=e,r(c)}),(function(e){return a("throw",e,r,l)}))}l(i.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){a(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function N(t,a,s){var n=b;return function(o,r){if(n===u)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw r;return{value:e,done:!0}}for(s.method=o,s.arg=r;;){var l=s.delegate;if(l){var i=P(l,s);if(i){if(i===m)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===b)throw n=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=u;var c=p(t,a,s);if("normal"===c.type){if(n=s.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=h,s.method="throw",s.arg=c.arg)}}}function P(t,a){var s=a.method,n=t.iterator[s];if(n===e)return a.delegate=null,"throw"===s&&t.iterator.return&&(a.method="return",a.arg=e,P(t,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,a.arg);if("throw"===o.type)return a.method="throw",a.arg=o.arg,a.delegate=null,m;var r=o.arg;
2return r?r.done?(a[t.resultName]=r.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,m):r:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(t){if(t||""===t){var a=t[r];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function a(){for(;++n<t.length;)if(s.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=e,a.done=!0,a};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return O.prototype=f,n(x,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:O,configurable:!0}),O.displayName=c(f,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,a,s,n,o){void 0===o&&(o=Promise);var r=new S(d(e,a,s,n),o);return t.isGeneratorFunction(a)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},w(x),c(x,i,"Generator"),c(x,r,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var s in t)a.push(s);return a.reverse(),function e(){for(;a.length;){var s=a.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=L,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var a in this)"t"===a.charAt(0)&&s.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function n(s,n){return l.type="throw",l.arg=t,a.next=s,n&&(a.method="next",a.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var i=s.call(r,"catchLoc"),c=s.call(r,"finallyLoc");if(i&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=e,r.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),k(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var s=a.completion;if("throw"===s.type){var n=s.arg;k(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,s){return this.delegate={iterator:L(t),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}var f=function(e,t,a,n,m){return(s=s||Object(i.a)(g().mark((function e(t,a,s,n,m){var f,y,v,G;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,y=[],v=[],!s){e.next=9;break}return e.next=6,Object(b.a)(a);case 6:G=e.sent,e.next=12;break;case 9:return e.next=11,Object(b.e)(a);case 11:G=e.sent;case 12:return G.forEach((function(e){e.exists&&v.push(Object(l.a)({},e.data()))})),e.next=15,Promise.all(v.map((function(e){return(f=f||Object(i.a)(g().mark((function e(s){var n,i,c,b,m,j,O,f;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(d.d)(s)){e.next=26;break}return n=s.id,i={gamesPlayed:0,wins:0,losses:0,ties:0,AB:0,R:0,H:0,"2B":0,"3B":0,HR:0,RBI:0,BB:0,SO:0,SB:0,HBP:0,SF:0,PO:0,A:0,E:0},c=new Map,e.next=6,Object(p.a)(a,n);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(c.has(t.preDevelopedSeasonId)){if(!(null===(n=c.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=c.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,Object(l.a)({},i))}else c.set(t.preDevelopedSeasonId,new Map),null===(r=c.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,Object(l.a)({},i));var p=Object(l.a)({},null===(a=c.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));p.gamesPlayed+=1,p.wins+="win"===t.winOrLoss?1:0,p.losses+="loss"===t.winOrLoss?1:0,p.ties+="tied"===t.winOrLoss?1:0,p.AB+=t.AB||0,p.R+=t.R||0,p.H+=t.H||0,p["2B"]+=t["2B"]||0,p["3B"]+=t["3B"]||0,p.HR+=t.HR||0,p.RBI+=t.RBI||0,p.BB+=t.BB||0,p.SO+=t.SO||0,p.SB+=t.SB||0,p.HBP+=t.HBP||0,p.SF+=t.SF||0,p.PO+=t.PO||0,p.A+=t.A||0,p.E+=t.E||0,null===(s=c.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,p)}})),b=s.overridingStats,Object.entries(b).forEach((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];
2Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(c.has(a))if(null===(t=c.get(a))||void 0===t?void 0:t.has(o)){var p,b,u=Object(l.a)({},null===(p=c.get(a))||void 0===p?void 0:p.get(o));u.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:u.gamesPlayed,u.wins=Object(d.e)(i.wins)?i.wins:u.wins,u.losses=Object(d.e)(i.losses)?i.losses:u.losses,u.ties=Object(d.e)(i.ties)?i.ties:u.ties,u.AB=Object(d.e)(i.AB)?i.AB:u.AB,u.R=Object(d.e)(i.R)?i.R:u.R,u.H=Object(d.e)(i.H)?i.H:u.H,u["2B"]=Object(d.e)(i["2B"])?i["2B"]:u["2B"],u["3B"]=Object(d.e)(i["3B"])?i["3B"]:u["3B"],u.HR=Object(d.e)(i.HR)?i.HR:u.HR,u.RBI=Object(d.e)(i.RBI)?i.RBI:u.RBI,u.BB=Object(d.e)(i.BB)?i.BB:u.BB,u.SO=Object(d.e)(i.SO)?i.SO:u.SO,u.SB=Object(d.e)(i.SB)?i.SB:u.SB,u.HBP=Object(d.e)(i.HBP)?i.HBP:u.HBP,u.SF=Object(d.e)(i.SF)?i.SF:u.SF,u.PO=Object(d.e)(i.PO)?i.PO:u.PO,u.A=Object(d.e)(i.A)?i.A:u.A,u.E=Object(d.e)(i.E)?i.E:u.E,null===(b=c.get(a))||void 0===b||b.set(o,u)}else{var h;null===(h=c.get(a))||void 0===h||h.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,AB:Object(d.e)(i.AB)?i.AB:0,R:Object(d.e)(i.R)?i.R:0,H:Object(d.e)(i.H)?i.H:0,"2B":Object(d.e)(i["2B"])?i["2B"]:0,"3B":Object(d.e)(i["3B"])?i["3B"]:0,HR:Object(d.e)(i.HR)?i.HR:0,RBI:Object(d.e)(i.RBI)?i.RBI:0,BB:Object(d.e)(i.BB)?i.BB:0,SO:Object(d.e)(i.SO)?i.SO:0,SB:Object(d.e)(i.SB)?i.SB:0,HBP:Object(d.e)(i.HBP)?i.HBP:0,SF:Object(d.e)(i.SF)?i.SF:0,PO:Object(d.e)(i.PO)?i.PO:0,A:Object(d.e)(i.A)?i.A:0,E:Object(d.e)(i.E)?i.E:0})}else c.set(a,new Map),null===(s=c.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,AB:Object(d.e)(i.AB)?i.AB:0,R:Object(d.e)(i.R)?i.R:0,H:Object(d.e)(i.H)?i.H:0,"2B":Object(d.e)(i["2B"])?i["2B"]:0,"3B":Object(d.e)(i["3B"])?i["3B"]:0,HR:Object(d.e)(i.HR)?i.HR:0,RBI:Object(d.e)(i.RBI)?i.RBI:0,BB:Object(d.e)(i.BB)?i.BB:0,SO:Object(d.e)(i.SO)?i.SO:0,SB:Object(d.e)(i.SB)?i.SB:0,HBP:Object(d.e)(i.HBP)?i.HBP:0,SF:Object(d.e)(i.SF)?i.SF:0,PO:Object(d.e)(i.PO)?i.PO:0,A:Object(d.e)(i.A)?i.A:0,E:Object(d.e)(i.E)?i.E:0})}))})),m=new Map,j=new Map,e.next=14,Object(h.b)(t);case 14:return e.sent.forEach((function(e){e.exists&&m.set(e.data().id,e.data().name)})),e.next=18,Object(u.c)(t);case 18:e.sent.forEach((function(e){e.exists&&j.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),O=new Map,c.forEach((function(e,t){var a=m.get(t);O.set(a,new Map),e.forEach((function(e,t){var s,n=j.get(t);null===(s=O.get(a))||void 0===s||s.set(n,e)})),O.set(a,new Map(Object(o.a)(O.get(a).entries()).sort()))})),O=new Map(Object(o.a)(O.entries()).sort()),f=[],O.forEach((function(e,t){e.forEach((function(e,a){f.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),y.push(Object(l.a)(Object(l.a)({},s),{},{stats:f}));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 15:n({type:"fetchPlayersStats",players:y}),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),Object(O.e)(c.g),j.c&&(m(c.g,{variant:"error"}),console.log(e.t0));case 22:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)},y=function(e,t,a,s,f){return(n=n||Object(i.a)(g().mark((function e(t,a,s,n,f){var y,v,G,x,w,S,N,P,E,k,B,L;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v={gamesPlayed:0,wins:0,losses:0,ties:0,AB:0,R:0,H:0,"2B":0,"3B":0,HR:0,RBI:0,BB:0,SO:0,SB:0,HBP:0,SF:0,PO:0,A:0,E:0},G=new Map,x=[],e.next=6,Object(p.a)(a,s);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(G.has(t.preDevelopedSeasonId)){if(!(null===(n=G.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=G.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,Object(l.a)({},v))}else G.set(t.preDevelopedSeasonId,new Map),null===(r=G.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,Object(l.a)({},v));var i=Object(l.a)({},null===(a=G.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));i.gamesPlayed+=1,i.wins+="win"===t.winOrLoss?1:0,i.losses+="loss"===t.winOrLoss?1:0,i.ties+="tied"===t.winOrLoss?1:0,i.AB+=t.AB||0,i.R+=t.R||0,i.H+=t.H||0,i["2B"]+=t["2B"]||0,i["3B"]+=t["3B"]||0,i.HR+=t.HR||0,i.RBI+=t.RBI||0,i.BB+=t.BB||0,i.SO+=t.SO||0,i.SB+=t.SB||0,i.HBP+=t.HBP||0,i.SF+=t.SF||0,i.PO+=t.PO||0,i.A+=t.A||0,i.E+=t.E||0,null===(s=G.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,i),x.push({seasonId:t.preDevelopedSeasonId,leagueId:t.preDevelopedLeagueId,opponentId:t.opponentId,timeOfGame:t.timeOfGame,homeGame:t.homeGame,winOrLoss:t.winOrLoss,gameScore:t.gameScore,AB:t.AB||0,R:t.R||0,H:t.H||0,"2B":t["2B"]||0,"3B":t["3B"]||0,HR:t.HR||0,RBI:t.RBI||0,BB:t.BB||0,SO:t.SO||0,SB:t.SB||0,HBP:t.HBP||0,SF:t.SF||0,PO:t.PO||0,A:t.A||0,E:t.E||0})}})),e.next=10,Object(b.d)(s);case 10:return w=e.sent,S=w.data(),w.exists&&Object(d.d)(S)&&(N=S.overridingStats,Object.entries(N).forEac
2h((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(G.has(a))if(null===(t=G.get(a))||void 0===t?void 0:t.has(o)){var c,p,b=Object(l.a)({},null===(c=G.get(a))||void 0===c?void 0:c.get(o));b.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:b.gamesPlayed,b.wins=Object(d.e)(i.wins)?i.wins:b.wins,b.losses=Object(d.e)(i.losses)?i.losses:b.losses,b.ties=Object(d.e)(i.ties)?i.ties:b.ties,b.AB=Object(d.e)(i.AB)?i.AB:b.AB,b.R=Object(d.e)(i.R)?i.R:b.R,b.H=Object(d.e)(i.H)?i.H:b.H,b["2B"]=Object(d.e)(i["2B"])?i["2B"]:b["2B"],b["3B"]=Object(d.e)(i["3B"])?i["3B"]:b["3B"],b.HR=Object(d.e)(i.HR)?i.HR:b.HR,b.RBI=Object(d.e)(i.RBI)?i.RBI:b.RBI,b.BB=Object(d.e)(i.BB)?i.BB:b.BB,b.SO=Object(d.e)(i.SO)?i.SO:b.SO,b.SB=Object(d.e)(i.SB)?i.SB:b.SB,b.HBP=Object(d.e)(i.HBP)?i.HBP:b.HBP,b.SF=Object(d.e)(i.SF)?i.SF:b.SF,b.PO=Object(d.e)(i.PO)?i.PO:b.PO,b.A=Object(d.e)(i.A)?i.A:b.A,b.E=Object(d.e)(i.E)?i.E:b.E,null===(p=G.get(a))||void 0===p||p.set(o,b)}else{var u;null===(u=G.get(a))||void 0===u||u.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,AB:Object(d.e)(i.AB)?i.AB:0,R:Object(d.e)(i.R)?i.R:0,H:Object(d.e)(i.H)?i.H:0,"2B":Object(d.e)(i["2B"])?i["2B"]:0,"3B":Object(d.e)(i["3B"])?i["3B"]:0,HR:Object(d.e)(i.HR)?i.HR:0,RBI:Object(d.e)(i.RBI)?i.RBI:0,BB:Object(d.e)(i.BB)?i.BB:0,SO:Object(d.e)(i.SO)?i.SO:0,SB:Object(d.e)(i.SB)?i.SB:0,HBP:Object(d.e)(i.HBP)?i.HBP:0,SF:Object(d.e)(i.SF)?i.SF:0,PO:Object(d.e)(i.PO)?i.PO:0,A:Object(d.e)(i.A)?i.A:0,E:Object(d.e)(i.E)?i.E:0})}else G.set(a,new Map),null===(s=G.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,AB:Object(d.e)(i.AB)?i.AB:0,R:Object(d.e)(i.R)?i.R:0,H:Object(d.e)(i.H)?i.H:0,"2B":Object(d.e)(i["2B"])?i["2B"]:0,"3B":Object(d.e)(i["3B"])?i["3B"]:0,HR:Object(d.e)(i.HR)?i.HR:0,RBI:Object(d.e)(i.RBI)?i.RBI:0,BB:Object(d.e)(i.BB)?i.BB:0,SO:Object(d.e)(i.SO)?i.SO:0,SB:Object(d.e)(i.SB)?i.SB:0,HBP:Object(d.e)(i.HBP)?i.HBP:0,SF:Object(d.e)(i.SF)?i.SF:0,PO:Object(d.e)(i.PO)?i.PO:0,A:Object(d.e)(i.A)?i.A:0,E:Object(d.e)(i.E)?i.E:0})}))}))),P=new Map,E=new Map,e.next=17,Object(h.b)(t);case 17:return e.sent.forEach((function(e){e.exists&&P.set(e.data().id,e.data().name)})),e.next=21,Object(u.c)(t);case 21:return e.sent.forEach((function(e){e.exists&&E.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),k=new Map,G.forEach((function(e,t){var a=P.get(t);k.set(a,new Map),e.forEach((function(e,t){var s,n=E.get(t);null===(s=k.get(a))||void 0===s||s.set(n,e)})),k.set(a,new Map(Object(o.a)(k.get(a).entries()).sort()))})),k=new Map(Object(o.a)(k.entries()).sort()),B=[],k.forEach((function(e,t){e.forEach((function(e,a){B.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),L=Array(x.length),e.next=31,Promise.all(x.map((function(e,t){return(y=y||Object(i.a)(g().mark((function e(t,s){var n,o,r,i,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=P.get(x[s].seasonId),o=E.get(x[s].leagueId),e.next=4,Object(m.a)(a,x[s].opponentId);case 4:r=e.sent,i="",r.exists&&Object(d.d)(r.data())&&(i=r.data().name),c=Object(l.a)(Object(l.a)({},t),{},{seasonName:n,leagueName:o,opponentName:i}),L[s]=c;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 31:n({type:"fetchStatsAndGameLogs",stats:B,gameLogs:L}),e.next=38;break;case 34:e.prev=34,e.t0=e.catch(0),Object(O.e)(c.h),j.c&&(f(c.h,{variant:"error"}),console.log(e.t0));case 38:case"end":return e.stop()}}),e,null,[[0,34]])})))).apply(this,arguments)}},458:function(e,t,a){"use strict";a.d(t,"b",(function(){return f})),a.d(t,"a",(function(){return y}));var s,n,o=a(29),r=a(23),l=a(4),i=a(10),c=a(14),d=a(3),p=a(351),b=a(86),u=a(80),h=a(71),m=a(103),j=a(2),O=a(19);function g(){g=function(){return t};var e,t={},a=Object.prototype,s=a.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,a){return e[t]=a}}function d(e,t,a,s){var o=t&&t.prototype instanceof j?t:j,r=Object.create(o.prototype),l=new B(s||[]);return n(r,"_invoke",{value:N(e,a,l)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var b="suspendedStart",u="executing",h="completed",m={};function j(){}function O(){}function f(){}var y={};c(y,r,(function(){return this}));var v=Object.getPrototypeOf,G=v&&v(v(L([])));G&&G!==a&&s.call(G,r)&&(y=G);var x=f.prototype=j.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,033 bytes, line 2
2))}function S(e,t){function a(n,o,r,l){var i=p(e[n],e,o);if("throw"!==i.type){var c=i.arg,d=c.value;return d&&"object"==typeof d&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,r,l)}),(function(e){a("throw",e,r,l)})):t.resolve(d).then((function(e){c.value=e,r(c)}),(function(e){return a("throw",e,r,l)}))}l(i.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){a(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function N(t,a,s){var n=b;return function(o,r){if(n===u)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw r;return{value:e,done:!0}}for(s.method=o,s.arg=r;;){var l=s.delegate;if(l){var i=P(l,s);if(i){if(i===m)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===b)throw n=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=u;var c=p(t,a,s);if("normal"===c.type){if(n=s.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=h,s.method="throw",s.arg=c.arg)}}}function P(t,a){var s=a.method,n=t.iterator[s];if(n===e)return a.delegate=null,"throw"===s&&t.iterator.return&&(a.method="return",a.arg=e,P(t,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,a.arg);if("throw"===o.type)return a.method="throw",a.arg=o.arg,a.delegate=null,m;var r=o.arg;return r?r.done?(a[t.resultName]=r.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,m):r:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(t){if(t||""===t){var a=t[r];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function a(){for(;++n<t.length;)if(s.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=e,a.done=!0,a};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return O.prototype=f,n(x,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:O,configurable:!0}),O.displayName=c(f,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,i,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(S.prototype),c(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,a,s,n,o){void 0===o&&(o=Promise);var r=new S(d(e,a,s,n),o);return t.isGeneratorFunction(a)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},w(x),c(x,i,"Generator"),c(x,r,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var s in t)a.push(s);return a.reverse(),function e(){for(;a.length;){var s=a.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=L,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var a in this)"t"===a.charAt(0)&&s.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function n(s,n){return l.type="throw",l.arg=t,a.next=s,n&&(a.method="next",a.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var i=s.call(r,"catchLoc"),c=s.call(r,"finallyLoc");if(i&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=e,r.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];
2if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),k(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var s=a.completion;if("throw"===s.type){var n=s.arg;k(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,s){return this.delegate={iterator:L(t),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}var f=function(e,t,a,n,m){return(s=s||Object(i.a)(g().mark((function e(t,a,s,n,m){var f,y,v,G;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,y=[],v=[],!s){e.next=9;break}return e.next=6,Object(b.a)(a);case 6:G=e.sent,e.next=12;break;case 9:return e.next=11,Object(b.e)(a);case 11:G=e.sent;case 12:return G.forEach((function(e){e.exists&&v.push(Object(l.a)({},e.data()))})),e.next=15,Promise.all(v.map((function(e){return(f=f||Object(i.a)(g().mark((function e(s){var n,i,c,b,m,j,O,f;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(d.d)(s)){e.next=26;break}return n=s.id,i={gamesPlayed:0,wins:0,losses:0,ties:0,tries:0,tryAssists:0,conversions:0,penaltyKicks:0,penaltyGoals:0,dropGoals:0,fouls:0,yellowCards:0,redCards:0,tackles:0,offloads:0,passes:0,carries:0,metersCarried:0,minsPlayed:0},c=new Map,e.next=6,Object(p.a)(a,n);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(c.has(t.preDevelopedSeasonId)){if(!(null===(n=c.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=c.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,i)}else c.set(t.preDevelopedSeasonId,new Map),null===(r=c.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,i);var p=Object(l.a)({},null===(a=c.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));p.gamesPlayed+=1,p.wins+="win"===t.winOrLoss?1:0,p.losses+="loss"===t.winOrLoss?1:0,p.ties+="tied"===t.winOrLoss?1:0,p.tries+=t.tries,p.tryAssists+=t.tryAssists,p.conversions+=t.conversions,p.penaltyKicks+=t.penaltyKicks,p.penaltyGoals+=t.penaltyGoals,p.dropGoals+=t.dropGoals,p.fouls+=t.fouls,p.yellowCards+=t.yellowCards,p.redCards+=t.redCards,p.tackles+=t.tackles,p.offloads+=t.offloads,p.passes+=t.passes,p.carries+=t.carries,p.metersCarried+=t.metersCarried,p.minsPlayed+=t.minsPlayed,null===(s=c.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,p)}})),b=s.overridingStats,Object.entries(b).forEach((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(c.has(a))if(null===(t=c.get(a))||void 0===t?void 0:t.has(o)){var p,b,u=Object(l.a)({},null===(p=c.get(a))||void 0===p?void 0:p.get(o));u.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:u.gamesPlayed,u.wins=Object(d.e)(i.wins)?i.wins:u.wins,u.losses=Object(d.e)(i.losses)?i.losses:u.losses,u.ties=Object(d.e)(i.ties)?i.ties:u.ties,u.tries=Object(d.e)(i.tries)?i.tries:u.tries,u.tryAssists=Object(d.e)(i.tryAssists)?i.tryAssists:u.tryAssists,u.conversions=Object(d.e)(i.conversions)?i.conversions:u.conversions,u.penaltyKicks=Object(d.e)(i.penaltyKicks)?i.penaltyKicks:u.penaltyKicks,u.penaltyGoals=Object(d.e)(i.penaltyGoals)?i.penaltyGoals:u.penaltyGoals,u.dropGoals=Object(d.e)(i.dropGoals)?i.dropGoals:u.dropGoals,u.fouls=Object(d.e)(i.fouls)?i.fouls:u.fouls,u.yellowCards=Object(d.e)(i.yellowCards)?i.yellowCards:u.yellowCards,u.redCards=Object(d.e)(i.redCards)?i.redCards:u.redCards,u.tackles=Object(d.e)(i.tackles)?i.tackles:u.tackles,u.offloads=Object(d.e)(i.offloads)?i.offloads:u.offloads,u.passes=Object(d.e)(i.passes)?i.passes:u.passes,u.carries=Object(d.e)(i.carries)?i.carries:u.carries,u.metersCarried=Object(d.e)(i.metersCarried)?i.metersCarried:u.metersCarried,u.minsPlayed=Object(d.e)(i.minsPlayed)?i.minsPlayed:u.minsPlayed,null===(b=c.get(a))||void 0===b||b.set(o,u)}else{var h;null===(h=c.get(a))||void 0===h||h.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,tries:Object(d.e)(i.tries)?i.tries:0,tryAssists:Object(d.e)(i.tryAssists)?i.tryAssists:0,conversions:Object(d.e)(i.conversions)?i.conversions:0,penaltyKicks:Object(d.e)(i.penaltyKicks)?i.penaltyKicks:0,penaltyGoals:Object(d.e)(i.penaltyGoals)?i.penaltyGoals:0,dropGoals:Object(d.e)(i.dropGoals)?i.dropGoals:0,fouls:Object(d.e)(i.fouls)?i.fouls:0,yellowCards:Object(d.e)(i.yellowCards)?i.yellowCards:0,redCards:Object(d.e)(i.redCards)?i.redCards:0,tackles:Object(d.e)(i.tackles)?i.tackles:0,offloads:Object(d.e)(i.offloads)?i.offloads:0,passes:Object(d.e)(i.passes)?i.passes:0,carries:Object(d.e)(i.carries)?i.carries:0,metersCarried:Object(d.e)(i.metersCarried)?i.metersCarried:0,minsPlayed:Object(d.e)(i.minsPlayed)?i.minsPlayed:0})}else c.set(a,new Map),null===(s=c.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,tries:Object(d.e)(i.tries)?i.tries:0,tryAssists:Object(d.e)(i.tryAssists)?i.tryAssists:0,conversions:Object(d.e)(i.conversions)?i.conversions:0,penaltyKicks:Object(d.e)(i.penaltyKicks)?i.penaltyKicks:0,penaltyGoals:Object(d.e)(i.penaltyGoals)?i.penaltyGoals:0,dropGoals:Object(d.e)(i.dropGoals)?i.dropGoals:0,fouls:Object(d.e)(i.fouls)?i.fouls:0,yellowCards:Object(d.e)(i.yellowCards)?i.yellowCards:0,redCards:Object(d.e)(i.redCards)?i.redCards:0,tackles:Object(d.e)(i.tackles)?i.tackles:0,offloads:Object(d.e)(i.offloads)?i.offloads:0,passes:Object(d.e)(i.passes)?i.passes:0,carries:Object(d.e)(i.carries)?i.carries:0,metersCarried:Object(d.e)(i.metersCarried)?i.metersCarried:0,minsPlayed:Object(d.e)(i.minsPlayed)?i.minsPlayed:0})}))})),m=new Map,j=new Map,e.next=14,Object(h.b)(t);case 14:return e.sent.forEach((function(e){e.exists&&m.set(e.data().id,e.data().name)})),e.next=18,Object(u.c)(t);case 18:e.sent.forEach((function(e){e.exists&&j.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))}
2)),O=new Map,c.forEach((function(e,t){var a=m.get(t);O.set(a,new Map),e.forEach((function(e,t){var s,n=j.get(t);null===(s=O.get(a))||void 0===s||s.set(n,e)})),O.set(a,new Map(Object(o.a)(O.get(a).entries()).sort()))})),O=new Map(Object(o.a)(O.entries()).sort()),f=[],O.forEach((function(e,t){e.forEach((function(e,a){f.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),y.push(Object(l.a)(Object(l.a)({},s),{},{stats:f}));case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 15:n({type:"fetchPlayersStats",players:y}),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),Object(O.e)(c.g),j.c&&(m(c.g,{variant:"error"}),console.log(e.t0));case 22:case"end":return e.stop()}}),e,null,[[0,18]])})))).apply(this,arguments)},y=function(e,t,a,s,f){return(n=n||Object(i.a)(g().mark((function e(t,a,s,n,f){var y,v,G,x,w,S,N,P,E,k,B,L;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v={gamesPlayed:0,wins:0,losses:0,ties:0,tries:0,tryAssists:0,conversions:0,penaltyKicks:0,penaltyGoals:0,dropGoals:0,fouls:0,yellowCards:0,redCards:0,tackles:0,offloads:0,passes:0,carries:0,metersCarried:0,minsPlayed:0},G=new Map,x=[],e.next=6,Object(p.a)(a,s);case 6:return e.sent.forEach((function(e){var t=e.data();if(e.exists&&Object(d.d)(t)){var a,s,n,o,r;if(G.has(t.preDevelopedSeasonId)){if(!(null===(n=G.get(t.preDevelopedSeasonId))||void 0===n?void 0:n.has(t.preDevelopedLeagueId)))null===(o=G.get(t.preDevelopedSeasonId))||void 0===o||o.set(t.preDevelopedLeagueId,v)}else G.set(t.preDevelopedSeasonId,new Map),null===(r=G.get(t.preDevelopedSeasonId))||void 0===r||r.set(t.preDevelopedLeagueId,v);var i=Object(l.a)({},null===(a=G.get(t.preDevelopedSeasonId))||void 0===a?void 0:a.get(t.preDevelopedLeagueId));i.gamesPlayed+=1,i.wins+="win"===t.winOrLoss?1:0,i.losses+="loss"===t.winOrLoss?1:0,i.ties+="tied"===t.winOrLoss?1:0,i.tries+=t.tries,i.tryAssists+=t.tryAssists,i.conversions+=t.conversions,i.penaltyKicks+=t.penaltyKicks,i.penaltyGoals+=t.penaltyGoals,i.dropGoals+=t.dropGoals,i.fouls+=t.fouls,i.yellowCards+=t.yellowCards,i.redCards+=t.redCards,i.tackles+=t.tackles,i.offloads+=t.offloads,i.passes+=t.passes,i.carries+=t.carries,i.metersCarried+=t.metersCarried,i.minsPlayed+=t.minsPlayed,null===(s=G.get(t.preDevelopedSeasonId))||void 0===s||s.set(t.preDevelopedLeagueId,i),x.push({seasonId:t.preDevelopedSeasonId,leagueId:t.preDevelopedLeagueId,opponentId:t.opponentId,timeOfGame:t.timeOfGame,homeGame:t.homeGame,winOrLoss:t.winOrLoss,gameScore:t.gameScore,tries:t.tries,tryAssists:t.tryAssists,conversions:t.conversions,penaltyKicks:t.penaltyKicks,penaltyGoals:t.penaltyGoals,dropGoals:t.dropGoals,fouls:t.fouls,yellowCards:t.yellowCards,redCards:t.redCards,tackles:t.tackles,offloads:t.offloads,passes:t.passes,carries:t.carries,metersCarried:t.metersCarried,minsPlayed:t.minsPlayed})}})),e.next=10,Object(b.d)(s);case 10:return w=e.sent,S=w.data(),w.exists&&Object(d.d)(S)&&(N=S.overridingStats,Object.entries(N).forEac
2h((function(e){var t=Object(r.a)(e,2),a=t[0],s=t[1];Object.entries(s).forEach((function(e){var t,s,n=Object(r.a)(e,2),o=n[0],i=n[1];if(G.has(a))if(null===(t=G.get(a))||void 0===t?void 0:t.has(o)){var c,p,b=Object(l.a)({},null===(c=G.get(a))||void 0===c?void 0:c.get(o));b.gamesPlayed=Object(d.e)(i.gamesPlayed)?i.gamesPlayed:b.gamesPlayed,b.wins=Object(d.e)(i.wins)?i.wins:b.wins,b.losses=Object(d.e)(i.losses)?i.losses:b.losses,b.ties=Object(d.e)(i.ties)?i.ties:b.ties,b.tries=Object(d.e)(i.tries)?i.tries:b.tries,b.tryAssists=Object(d.e)(i.tryAssists)?i.tryAssists:b.tryAssists,b.conversions=Object(d.e)(i.conversions)?i.conversions:b.conversions,b.penaltyKicks=Object(d.e)(i.penaltyKicks)?i.penaltyKicks:b.penaltyKicks,b.penaltyGoals=Object(d.e)(i.penaltyGoals)?i.penaltyGoals:b.penaltyGoals,b.dropGoals=Object(d.e)(i.dropGoals)?i.dropGoals:b.dropGoals,b.fouls=Object(d.e)(i.fouls)?i.fouls:b.fouls,b.yellowCards=Object(d.e)(i.yellowCards)?i.yellowCards:b.yellowCards,b.redCards=Object(d.e)(i.redCards)?i.redCards:b.redCards,b.tackles=Object(d.e)(i.tackles)?i.tackles:b.tackles,b.offloads=Object(d.e)(i.offloads)?i.offloads:b.offloads,b.passes=Object(d.e)(i.passes)?i.passes:b.passes,b.carries=Object(d.e)(i.carries)?i.carries:b.carries,b.metersCarried=Object(d.e)(i.metersCarried)?i.metersCarried:b.metersCarried,b.minsPlayed=Object(d.e)(i.minsPlayed)?i.minsPlayed:b.minsPlayed,null===(p=G.get(a))||void 0===p||p.set(o,b)}else{var u;null===(u=G.get(a))||void 0===u||u.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,tries:Object(d.e)(i.tries)?i.tries:0,tryAssists:Object(d.e)(i.tryAssists)?i.tryAssists:0,conversions:Object(d.e)(i.conversions)?i.conversions:0,penaltyKicks:Object(d.e)(i.penaltyKicks)?i.penaltyKicks:0,penaltyGoals:Object(d.e)(i.penaltyGoals)?i.penaltyGoals:0,dropGoals:Object(d.e)(i.dropGoals)?i.dropGoals:0,fouls:Object(d.e)(i.fouls)?i.fouls:0,yellowCards:Object(d.e)(i.yellowCards)?i.yellowCards:0,redCards:Object(d.e)(i.redCards)?i.redCards:0,tackles:Object(d.e)(i.tackles)?i.tackles:0,offloads:Object(d.e)(i.offloads)?i.offloads:0,passes:Object(d.e)(i.passes)?i.passes:0,carries:Object(d.e)(i.carries)?i.carries:0,metersCarried:Object(d.e)(i.metersCarried)?i.metersCarried:0,minsPlayed:Object(d.e)(i.minsPlayed)?i.minsPlayed:0})}else G.set(a,new Map),null===(s=G.get(a))||void 0===s||s.set(o,{gamesPlayed:Object(d.e)(i.gamesPlayed)?i.gamesPlayed:0,wins:Object(d.e)(i.wins)?i.wins:0,losses:Object(d.e)(i.losses)?i.losses:0,ties:Object(d.e)(i.ties)?i.ties:0,tries:Object(d.e)(i.tries)?i.tries:0,tryAssists:Object(d.e)(i.tryAssists)?i.tryAssists:0,conversions:Object(d.e)(i.conversions)?i.conversions:0,penaltyKicks:Object(d.e)(i.penaltyKicks)?i.penaltyKicks:0,penaltyGoals:Object(d.e)(i.penaltyGoals)?i.penaltyGoals:0,dropGoals:Object(d.e)(i.dropGoals)?i.dropGoals:0,fouls:Object(d.e)(i.fouls)?i.fouls:0,yellowCards:Object(d.e)(i.yellowCards)?i.yellowCards:0,redCards:Object(d.e)(i.redCards)?i.redCards:0,tackles:Object(d.e)(i.tackles)?i.tackles:0,offloads:Object(d.e)(i.offloads)?i.offloads:0,passes:Object(d.e)(i.passes)?i.passes:0,carries:Object(d.e)(i.carries)?i.carries:0,metersCarried:Object(d.e)(i.metersCarried)?i.metersCarried:0,minsPlayed:Object(d.e)(i.minsPlayed)?i.minsPlayed:0})}))}))),P=new Map,E=new Map,e.next=17,Object(h.b)(t);case 17:return e.sent.forEach((function(e){e.exists&&P.set(e.data().id,e.data().name)})),e.next=21,Object(u.c)(t);case 21:return e.sent.forEach((function(e){e.exists&&E.set(e.data().id,"".concat(e.data().name).concat("-1"!==e.data().division?" - ".concat(e.data().division):""))})),k=new Map,G.forEach((function(e,t){var a=P.get(t);k.set(a,new Map),e.forEach((function(e,t){var s,n=E.get(t);null===(s=k.get(a))||void 0===s||s.set(n,e)})),k.set(a,new Map(Object(o.a)(k.get(a).entries()).sort()))})),k=new Map(Object(o.a)(k.entries()).sort()),B=[],k.forEach((function(e,t){e.forEach((function(e,a){B.push(Object(l.a)({seasonName:t,leagueName:a},e))}))})),L=Array(x.length),e.next=31,Promise.all(x.map((function(e,t){return(y=y||Object(i.a)(g().mark((function e(t,s){var n,o,r,i,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=P.get(x[s].seasonId),o=E.get(x[s].leagueId),e.next=4,Object(m.a)(a,x[s].opponentId);case 4:r=e.sent,i="",r.exists&&Object(d.d)(r.data())&&(i=r.data().name),c=Object(l.a)(Object(l.a)({},t),{},{seasonName:n,leagueName:o,opponentName:i}),L[s]=c;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)})));case 31:n({type:"fetchStatsAndGameLogs",stats:B,gameLogs:L}
2),e.next=38;break;case 34:e.prev=34,e.t0=e.catch(0),Object(O.e)(c.h),j.c&&(f(c.h,{variant:"error"}),console.log(e.t0));case 38:case"end":return e.stop()}}),e,null,[[0,34]])})))).apply(this,arguments)}},459:function(e,t,a){},624:function(e,t,a){},625:function(e,t,a){},626:function(e,t,a){},627:function(e,t,a){},628:function(e,t,a){},629:function(e,t,a){},678:function(e,t,a){"use strict";a.r(t);var s=a(10),n=a(23),o=a(4),r=a(39),l=a(0),i=a.n(l),c=a(36),d=a(19),p=a(13),b=a(100),u=a(3),h=a(20),m=a(455),j=a(456),O=a(457),g=a(458),f=(a(459),a(412)),y=a(53),v=a(22),G=a(311),x=a(317),w=a(120),S=a.n(w),N=a(307),P=a(299),E=a(300),k=(a(624),a(625),a(84)),B=a(400),L=a(41),C=a(1),M=function(e){var t=e.player,a=e.isGoalie,s=Object(l.useContext)(h.b).globalState,n=Object(c.g)();return Object(C.jsxs)("div",{className:"icehockey-roster-stats-1-player-season-container",children:[t.stats.length>0?Object(C.jsxs)("div",{className:"roster-stats-1-player-season-title m-t-20px m-b-20px",children:[Object(C.jsx)("h2",{className:"alegreya-font-family font-size-4xl text-uppercase font-weight-800 text-left-align m-t-0 m-b-0 m-l-20px",children:t.name}),Object(C.jsx)("h2",{className:"alegreya-font-family roster-stats-1-player-season-title-season font-size-2xl text-uppercase font-weight-800 text-left-align m-t-0 m-b-0 m-r-20px",children:Object(v.i)(t.details,"Position")})]}):null,Object(C.jsx)("div",{className:"roster-stats-1-player-season-buttons",children:Object(C.jsx)(k.a,{onClick:function(){n.push("/roster/".concat(t.id))},transparent:!0,title:"Player Profile",backgroundColor:s.websiteStyles.colors.primaryColor,fontColor:Object(u.f)(s.websiteStyles.colors.fontColor)?"".concat(s.websiteStyles.colors.fontColor):"white",width:"200px"})}),t.stats.length>0?Object(C.jsx)(C.Fragment,{children:a?Object(C.jsxs)("div",{className:"m-t-30px m-b-50px",children:[Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-head",style:Object(v.g)(s),children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"Season"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"League"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"Season & League"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals Against",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GA"})}),Object(C.jsx)(f.a,{title:"Goalie Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"MIN"})}),Object(C.jsx)(f.a,{title:"Total Saves",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"SV"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-player-season-container-table-rows",children:t.stats.map((function(e){return Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-row",children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.seasonName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.leagueName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"".concat(e.seasonName," ").concat(e.leagueName)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.gamesPlayed)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.goalieGoalsConceded)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.goalieMinutes)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.goalieShotsSaved)})]},Object(L.c)())}))})]}):Object(C.jsxs)("div",{className:"m-t-30px m-b-50px",children:[Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-head",style:Object(v.g)(s),children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"Season"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"League"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"Season & League"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"G"})}),Object(C.jsx)(f.a,{title:"Assists",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"A"})}),Object(C.jsx)(f.a,{title:"Points",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"PTS"})}),Object(C.jsx)(f.a,{title:"Penalty Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"PEN MIN"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-player-season-container-table-rows",children:t.stats.map((function(e){return Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-row",children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.seasonName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.leagueName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"".concat(e.seasonName," ").concat(e.leagueName)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.gamesPlayed)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.goals)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.assists)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(Object(B.i)(e.goals,e.assists))}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.penaltyMinutes)})]},Object(L.c)())}))})]})}):null]},t.id)},I=Object(l.memo)(M),H=function(e){var t=e.player,a=e.isGoalie;return Object(C.jsxs)(N.a,{className:"icehockey-roster-stats-1-table-row-container",TransitionProps:{unmountOnExit:!0},children:[Object(C.jsx)(P.a,{expandIcon:Object(C.jsx)(S.a,{}),className:"roster-stats-1-table-row",id:t.id,children:Object(C.jsx)(C.Fragment,{children:a?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.i)(t.details,"Team Number")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:t.name}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(B.b)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(B.d)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(B.c)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(B.l)(t))})]}):Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.i)(t.details,"Team Number")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:t.name}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element hide-phone m-t-0 m-b-0",children:Object(v.i)(t.details,"Position")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(B.b)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(B.f)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(B.a)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(B.j)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(Object(B.h)(t))})]})})}),Object(C.jsx)(E.a,{children:Object(C.jsx)(I,{player:t,isGoalie:a})})]},t.id)},W=Object(l.memo)(H),A=function(e){var t=e.players,a=e.loadingSpinner,s=Object(c.g)(),n=Object(l.useContext)(h.b).globalState,o=function(){return"/alumnistats"===s.location.pathname};return Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(G.a,{links:[{title:"Home",link:"/"}],lastCrumb:o()?"Alumni Stats":"Roster Stats",marginLeft:"100px"}
2),Object(C.jsxs)("div",{className:"roster-stats-1-container x-center bg-white curve-border-30px box-shadow-black p-t-20px p-l-100px p-r-100px p-b-100px m-t-50px m-b-30px",children:[Object(C.jsx)(x.a,{title:o()?"Alumni Stats":"Roster Stats"}),a?Object(C.jsx)(y.a,{color:n.websiteStyles.colors.primaryColor,marginTop:20}):Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("h2",{className:"alegreya-font-family font-size-3xl text-uppercase m-t-20px m-b-0 font-weight-800 text-left-align",children:"Players"}),t.filter((function(e){return"Goalie"!==Object(v.i)(e.details,"Position")})).length>0?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsxs)("div",{className:"roster-stats-1-table-head m-t-20px p-l-15px p-r-40px",style:Object(v.g)(n),children:[Object(C.jsx)(f.a,{title:"Squal Number",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"NUM"})}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:"Name"}),Object(C.jsx)(f.a,{title:"GamesPosition",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element hide-phone m-t-0 m-b-0",children:"POS"})}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"G"})}),Object(C.jsx)(f.a,{title:"Assists",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"A"})}),Object(C.jsx)(f.a,{title:"Points",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"PTS"})}),Object(C.jsx)(f.a,{title:"Penalty Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:"PEN MIN"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-table-rows",children:t.filter((function(e){return"Goalie"!==Object(v.i)(e.details,"Position")})).sort((function(e,t){return parseInt(Object(v.i)(e.details,"Team Number"),10)>parseInt(Object(v.i)(t.details,"Team Number"),10)?1:parseInt(Object(v.i)(t.details,"Team Number"),10)>parseInt(Object(v.i)(e.details,"Team Number"),10)?-1:0})).map((function(e){return Object(C.jsx)(i.a.Fragment,{children:Object(C.jsx)(W,{player:e,isGoalie:!1})},e.id)}))}),Object(C.jsx)("div",{className:"roster-stats-1-table-bottom p-l-15px p-r-40px",style:Object(v.g)(n)})]}):Object(C.jsx)("p",{className:"alegreya-font-family font-weight-800 font-size-4xl full-width text-center-align",children:"Player Stats Unavailable"}),Object(C.jsx)("h2",{className:"alegreya-font-family font-size-3xl text-uppercase m-t-100px m-b-0 font-weight-800 text-left-align",children:"Goalies"}),t.length>0?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsxs)("div",{className:"roster-stats-1-table-head m-t-20px p-l-15px  p-r-40px",style:Object(v.g)(n),children:[Object(C.jsx)(f.a,{title:"Squal Number",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"NUM"})}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:"Name"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals Against",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GA"})}),Object(C.jsx)(f.a,{title:"Goalie Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"MIN"})}),Object(C.jsx)(f.a,{title:"Total Saves",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"SV"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-table-rows",children:t.filter((function(e){return"Goalie"===Object(v.i)(e.details,"Position")})).sort((function(e,t){return parseInt(Object(v.i)(e.details,"Team Number"),10)>parseInt(Object(v.i)(t.details,"Team Number"),10)?1:parseInt(Object(v.i)(t.details,"Team Number"),10)>parseInt(Object(v.i)(e.details,"Team Number"),10)?-1:0})).map((function(e){return Object(C.jsx)(i.a.Fragment,{children:Object(C.jsx)(W,{player:e,isGoalie:!0})},e.id)}))}),Object(C.jsx)("div",{className:"roster-stats-1-table-bottom p-l-15px p-r-40px",style:Object(v.g)(n)})]}):Object(C.jsx)("p",{className:"alegreya-font-family font-weight-800 font-size-4xl full-width text-center-align",children:"Goalie Stats Unavailable"})]}),Object(u.d)(n.logo)&&Object(u.f)(n.logo.logo2)?Object(C.jsx)("img",{src:n.logo.logo2,className:"roster-stats-1-icon m-t-50px m-b-0",alt:Object(u.f)(n.teamName)?n.teamName:"Team Logo"}):null]})]})},D=Object(l.memo)(A),R=(a(626),a(627),a(401)),T=function(e){var t=e.player,a=e.isGoalie,s=Object(l.useContext)(h.b).globalState,n=Object(c.g)();return Object(C.jsxs)("div",{className:"lacrosse-roster-stats-1-player-season-container",children:[t.stats.length>0?Object(C.jsxs)("div",{className:"roster-stats-1-player-season-title m-t-20px m-b-20px",children:[Object(C.jsx)("h2",{className:"alegreya-font-family font-size-4xl text-uppercase font-weight-800 text-left-align m-t-0 m-b-0 m-l-20px",children:t.name}),Object(C.jsx)("h2",{className:"alegreya-font-family roster-stats-1-player-season-title-season font-size-2xl text-uppercase font-weight-800 text-left-align m-t-0 m-b-0 m-r-20px",children:Object(v.i)(t.details,"Position")})]}):null,Object(C.jsx)("div",{className:"roster-stats-1-player-season-buttons",children:Object(C.jsx)(k.a,{onClick:function(){n.push("/roster/".concat(t.id))},transparent:!0,title:"Player Profile",backgroundColor:s.websiteStyles.colors.primaryColor,fontColor:Object(u.f)(s.websiteStyles.colors.fontColor)?"".concat(s.websiteStyles.colors.fontColor):"white",width:"200px"})}),t.stats.length>0?Object(C.jsx)(C.Fragment,{children:a?Object(C.jsxs)("div",{className:"m-t-30px m-b-50px",children:[Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-head",style:Object(v.g)(s),children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"Season"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"League"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"Season & League"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals Against",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GA"})}),Object(C.jsx)(f.a,{title:"Goalie Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"MIN"})}),Object(C.jsx)(f.a,{title:"Total Saves",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"SV"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-player-season-container-table-rows",children:t.stats.map((function(e){return Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-row",children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.seasonName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.leagueName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"".concat(e.seasonName," ").concat(e.leagueName)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.gamesPlayed)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.goalieGoalsConceded)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.goalieMinutes)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.goalieShotsSaved)})]},Object(L.c)())}))})]}):Object(C.jsxs)("div",{className:"m-t-30px m-b-50px",children:[Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-head",style:Object(v.g)(s),children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"Season"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"League"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"Season & League"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"G"})}),Object(C.jsx)(f.a,{title:"Assists",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"A"})}),Object(C.jsx)(f.a,{title:"Points",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"PTS"})}),Object(C.jsx)(f.a,{title:"Penalty Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"PEN MIN"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-player-season-container-table-rows",children:t.stats.map((function(e){return Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-row",children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.seasonName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.leagueName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"".concat(e.seasonName," ").concat(e.leagueName)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.gamesPlayed)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.goals)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.assists)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(Object(R.i)(e.goals,e.assists))}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.penaltyMinutes)})]},Object(L.c)())}))})]})}):null]},t.id)},F=Object(l.memo)(T),_=function(e){var t=e.player,a=e.isGoalie;return Object(C.jsxs)(N.a,{className:"lacrosse-roster-stats-1-table-row-container",TransitionProps:{unmountOnExit:!0},children:[Object(C.jsx)(P.a,{expandIcon:Object(C.jsx)(S.a,{}),className:"roster-stats-1-table-row",id:t.id,children:Object(C.jsx)(C.Fragment,{children:a?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.i)(t.details,"Team Number")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:t.name}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(R.b)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(R.d)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(R.c)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(R.l)(t))})]}):Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.i)(t.details,"Team Number")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:t.name}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element hide-phone m-t-0 m-b-0",children:Object(v.i)(t.details,"Position")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(R.b)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(R.f)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(Object(R.a)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(Object(R.j)(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(Object(R.h)(t))})]})})}),Object(C.jsx)(E.a,{children:Object(C.jsx)(F,{player:t,isGoalie:a})})]},t.id)},K=Object(l.memo)(_),Y=function(e){var t=e.players,a=e.loadingSpinner,s=Object(c.g)(),n=Object(l.useContext)(h.b).globalState,o=function(){return"/alumnistats"===s.location.pathname};return Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(G.a,{links:[{title:"Home",link:"/"}],lastCrumb:o()?"Alumni Stats":"Roster Stats",marginLeft:"100px"}
2),Object(C.jsxs)("div",{className:"roster-stats-1-container x-center bg-white curve-border-30px box-shadow-black p-t-20px p-l-100px p-r-100px p-b-100px m-t-50px m-b-30px",children:[Object(C.jsx)(x.a,{title:o()?"Alumni Stats":"Roster Stats"}),a?Object(C.jsx)(y.a,{color:n.websiteStyles.colors.primaryColor,marginTop:20}):Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)("h2",{className:"alegreya-font-family font-size-3xl text-uppercase m-t-20px m-b-0 font-weight-800 text-left-align",children:"Players"}),t.filter((function(e){return"Goalie"!==Object(v.i)(e.details,"Position")})).length>0?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsxs)("div",{className:"roster-stats-1-table-head m-t-20px p-l-15px p-r-40px",style:Object(v.g)(n),children:[Object(C.jsx)(f.a,{title:"Squal Number",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"NUM"})}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:"Name"}),Object(C.jsx)(f.a,{title:"GamesPosition",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element hide-phone m-t-0 m-b-0",children:"POS"})}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"G"})}),Object(C.jsx)(f.a,{title:"Assists",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"A"})}),Object(C.jsx)(f.a,{title:"Points",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"PTS"})}),Object(C.jsx)(f.a,{title:"Penalty Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:"PEN MIN"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-table-rows",children:t.filter((function(e){return"Goalie"!==Object(v.i)(e.details,"Position")})).sort((function(e,t){return parseInt(Object(v.i)(e.details,"Team Number"),10)>parseInt(Object(v.i)(t.details,"Team Number"),10)?1:parseInt(Object(v.i)(t.details,"Team Number"),10)>parseInt(Object(v.i)(e.details,"Team Number"),10)?-1:0})).map((function(e){return Object(C.jsx)(i.a.Fragment,{children:Object(C.jsx)(K,{player:e,isGoalie:!1})},e.id)}))}),Object(C.jsx)("div",{className:"roster-stats-1-table-bottom p-l-15px p-r-40px",style:Object(v.g)(n)})]}):Object(C.jsx)("p",{className:"alegreya-font-family font-weight-800 font-size-4xl full-width text-center-align",children:"Player Stats Unavailable"}),Object(C.jsx)("h2",{className:"alegreya-font-family font-size-3xl text-uppercase m-t-100px m-b-0 font-weight-800 text-left-align",children:"Goalies"}),t.length>0?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsxs)("div",{className:"roster-stats-1-table-head m-t-20px p-l-15px  p-r-40px",style:Object(v.g)(n),children:[Object(C.jsx)(f.a,{title:"Squal Number",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"NUM"})}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:"Name"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Goals Against",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GA"})}),Object(C.jsx)(f.a,{title:"Goalie Minutes",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"MIN"})}),Object(C.jsx)(f.a,{title:"Total Saves",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"SV"})})]}),Object(C.jsx)("div",{className:"roster-stats-1-table-rows",children:t.filter((function(e){return"Goalie"===Object(v.i)(e.details,"Position")})).sort((function(e,t){return parseInt(Object(v.i)(e.details,"Team Number"),10)>parseInt(Object(v.i)(t.details,"Team Number"),10)?1:parseInt(Object(v.i)(t.details,"Team Number"),10)>parseInt(Object(v.i)(e.details,"Team Number"),10)?-1:0})).map((function(e){return Object(C.jsx)(i.a.Fragment,{children:Object(C.jsx)(K,{player:e,isGoalie:!0})},e.id)}))}),Object(C.jsx)("div",{className:"roster-stats-1-table-bottom p-l-15px p-r-40px",style:Object(v.g)(n)})]}):Object(C.jsx)("p",{className:"alegreya-font-family font-weight-800 font-size-4xl full-width text-center-align",children:"Goalie Stats Unavailable"})]}),Object(u.d)(n.logo)&&Object(u.f)(n.logo.logo2)?Object(C.jsx)("img",{src:n.logo.logo2,className:"roster-stats-1-icon m-t-50px m-b-0",alt:Object(u.f)(n.teamName)?n.teamName:"Team Logo"}):null]})]})},z=Object(l.memo)(Y),U=a(489),q=(a(628),function(e){return ee(e.stats)}),V=function(e){return te(e.stats)},J=function(e){return ae(e.stats)},Q=function(e){return se(e.stats)},X=function(e){return ne(e.stats)},Z=function(e){return oe(e.stats)},$=function(e){return re(e.stats)},ee=function(e){var t=0;return e.forEach((function(e){t+=e.gamesPlayed})),t},te=function(e){var t=0;return e.forEach((function(e){t+=e.tries})),t},ae=function(e){var t=0;return e.forEach((function(e){t+=e.conversions})),t},se=function(e){var t=0;return e.forEach((function(e){t+=e.penaltyGoals})),t},ne=function(e){var t=0;return e.forEach((function(e){t+=e.dropGoals})),t},oe=function(e){var t=0;return e.forEach((function(e){t+=e.yellowCards})),t},re=function(e){var t=0;return e.forEach((function(e){t+=e.redCards})),t},le=(a(629),function(e){var t=e.player,a=Object(l.useContext)(h.b).globalState,s=Object(c.g)();return Object(C.jsxs)("div",{className:"rugby-roster-stats-1-player-season-container",children:[t.stats.length>0?Object(C.jsxs)("div",{className:"roster-stats-1-player-season-title m-t-20px m-b-20px",children:[Object(C.jsx)("h2",{className:"alegreya-font-family font-size-4xl text-uppercase font-weight-800 text-left-align m-t-0 m-b-0 m-l-20px",children:t.name}),Object(C.jsx)("h2",{className:"alegreya-font-family roster-stats-1-player-season-title-season font-size-2xl text-uppercase font-weight-800 text-left-align m-t-0 m-b-0 m-r-20px",children:Object(v.i)(t.details,"Position")})]}):null,Object(C.jsx)("div",{className:"roster-stats-1-player-season-buttons",children:Object(C.jsx)(k.a,{onClick:function(){s.push("/roster/".concat(t.id))},transparent:!0,title:"Player Profile",backgroundColor:a.websiteStyles.colors.primaryColor,fontColor:Object(u.f)(a.websiteStyles.colors.fontColor)?"".concat(a.websiteStyles.colors.fontColor):"white",width:"200px"})}),t.stats.length>0?Object(C.jsxs)("div",{className:"m-t-30px m-b-50px",children:[Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-head",style:Object(v.g)(a),children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"Season"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:"League"}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"Season & League"}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Tries",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"Tr"})}),Object(C.jsx)(f.a,{title:"Conversions",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:"C"})}),Object(C.jsx)(f.a,{title:"Penalty Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",children:"PG"})}),Object(C.jsx)(f.a,{title:"Drop Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",children:"DG"})}),Object(C.jsx)(f.a,{title:"Yellow Cards",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",style:{color:"#FFE44E"},children:Object(C.jsx)(U.a,{})})}),Object(C.jsx)(f.a,{title:"Red Cards",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",style:{color:"red"},children:Object(C.jsx)(U.a,{})})})]}),Object(C.jsx)("div",{className:"roster-stats-1-player-season-container-table-rows",children:t.stats.map((function(e){return Object(C.jsxs)("div",{className:"roster-stats-1-player-season-container-table-row",children:[Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.seasonName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone long-element m-t-0 m-b-0",children:e.leagueName}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-computer show-phone long-element m-t-0 m-b-0",children:"".concat(e.seasonName," ").concat(e.leagueName)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element m-t-0 m-b-0",children:Object(v.o)(e.gamesPlayed)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.tries
2)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(e.conversions)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(e.penaltyGoals)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(e.dropGoals)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(e.yellowCards)}),Object(C.jsx)("p",{className:"roster-stats-1-player-season-container-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(e.redCards)})]},e.id)}))})]}):null]},t.id)}),ie=Object(l.memo)(le),ce=function(e){var t=e.player;return Object(C.jsxs)(N.a,{className:"rugby-roster-stats-1-table-row-container",TransitionProps:{unmountOnExit:!0},children:[Object(C.jsxs)(P.a,{expandIcon:Object(C.jsx)(S.a,{}),className:"roster-stats-1-table-row",id:t.id,children:[Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.i)(t.details,"Team Number")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:t.name}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element hide-phone m-t-0 m-b-0",children:Object(v.i)(t.details,"Position")}),Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:Object(v.o)(q(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(V(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:Object(v.o)(J(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(Q(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(X(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)(Z(t))}),Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:Object(v.o)($(t))})]}),Object(C.jsx)(E.a,{children:Object(C.jsx)(ie,{player:t})})]},t.id)},de=Object(l.memo)(ce),pe=function(e){var t=e.players,a=e.loadingSpinner,s=Object(c.g)(),n=Object(l.useContext)(h.b).globalState,o=function(){return"/alumnistats"===s.location.pathname};return Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(G.a,{links:[{title:"Home",link:"/"}],lastCrumb:o()?"Alumni Stats":"Roster Stats",marginLeft:"100px"}),Object(C.jsxs)("div",{className:"roster-stats-1-container x-center bg-white curve-border-30px box-shadow-black p-t-20px p-l-100px p-r-100px p-b-100px m-t-50px m-b-30px",children:[Object(C.jsx)(x.a,{title:o()?"Alumni Stats":"Roster Stats"}),a?Object(C.jsx)(y.a,{color:n.websiteStyles.colors.primaryColor,marginTop:20}):Object(C.jsx)(C.Fragment,{children:t.length>0?Object(C.jsxs)(C.Fragment,{children:[Object(C.jsxs)("div",{className:"roster-stats-1-table-head m-t-20px p-l-15px p-r-40px",style:Object(v.g)(n),children:[Object(C.jsx)(f.a,{title:"Squal Number",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"NUM"})}),Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element m-t-0 m-b-0",children:"Name"}),Object(C.jsx)(f.a,{title:"GamesPosition",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element long-element hide-phone m-t-0 m-b-0",children:"POS"})}),Object(C.jsx)(f.a,{title:"Games Played",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element m-t-0 m-b-0",children:"GP"})}),Object(C.jsx)(f.a,{title:"Tries",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"Tr"})}),Object(C.jsx)(f.a,{title:"Conversions",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone m-t-0 m-b-0",children:"C"})}),Object(C.jsx)(f.a,{title:"Penalty Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:"PG"})}),Object(C.jsx)(f.a,{title:"Drop Goals",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",children:"DG"})}),Object(C.jsx)(f.a,{title:"Yellow Cards",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",style:{color:"#FFE44E"},children:Object(C.jsx)(U.a,{})})}),Object(C.jsx)(f.a,{title:"Red Cards",placement:"top",arrow:!0,children:Object(C.jsx)("p",{className:"roster-stats-1-table-element hide-phone hide-pad m-t-0 m-b-0",style:{color:"red"},children:Object(C.jsx)(U.a,{})})})]}),Object(C.jsx)("div",{className:"roster-stats-1-table-rows",children:t.sort((function(e,t){return parseInt(Object(v.i)(e.details,"Team Number"),10)>parseInt(Object(v.i)(t.details,"Team Number"),10)?1:parseInt(Object(v.i)(t.details,"Team Number"),10)>parseInt(Object(v.i)(e.details,"Team Number"),10)?-1:0})).map((function(e){return Object(C.jsx)(i.a.Fragment,{children:Object(C.jsx)(de,{player:e})},e.id)}))}),Object(C.jsx)("div",{className:"roster-stats-1-table-bottom p-l-15px p-r-40px",style:Object(v.g)(n)})]}):Object(C.jsx)("p",{className:"alegreya-font-family font-weight-800 font-size-4xl full-width text-center-align",children:"Player Stats Unavailable"})}),Object(u.d)(n.logo)&&Object(u.f)(n.logo.logo2)?Object(C.jsx)("img",{src:n.logo.logo2,className:"roster-stats-1-icon m-t-50px m-b-0",alt:Object(u.f)(n.teamName)?n.teamName:"Team Logo"}):null]})]})},be=Object(l.memo)(pe),ue=a(85),he=a(310);function me(){me=function(){return t};var e,t={},a=Object.prototype,s=a.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function c(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,a){return e[t]=a}}function d(e,t,a,s){var o=t&&t.prototype instanceof j?t:j,r=Object.create(o.prototype),l=new k(s||[]);return n(r,"_invoke",{value:S(e,a,l)}),r}function p(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var b="suspendedStart",u="executing",h="completed",m={};function j(){}function O(){}function g(){}var f={};c(f,r,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(B([])));v&&v!==a&&s.call(v,r)&&(f=v);var G=g.prototype=j.prototype=Object.create(f);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,033 bytes, line 2
2))}function w(e,t){function a(n,o,r,l){var i=p(e[n],e,o);if("throw"!==i.type){var c=i.arg,d=c.value;return d&&"object"==typeof d&&s.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,r,l)}),(function(e){a("throw",e,r,l)})):t.resolve(d).then((function(e){c.value=e,r(c)}),(function(e){return a("throw",e,r,l)}))}l(i.arg)}var o;n(this,"_invoke",{value:function(e,s){function n(){return new t((function(t,n){a(e,s,t,n)}))}return o=o?o.then(n,n):n()}})}function S(t,a,s){var n=b;return function(o,r){if(n===u)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw r;return{value:e,done:!0}}for(s.method=o,s.arg=r;;){var l=s.delegate;if(l){var i=N(l,s);if(i){if(i===m)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(n===b)throw n=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);n=u;var c=p(t,a,s);if("normal"===c.type){if(n=s.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(n=h,s.method="throw",s.arg=c.arg)}}}function N(t,a){var s=a.method,n=t.iterator[s];if(n===e)return a.delegate=null,"throw"===s&&t.iterator.return&&(a.method="return",a.arg=e,N(t,a),"throw"===a.method)||"return"!==s&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+s+"' method")),m;var o=p(n,t.iterator,a.arg);if("throw"===o.type)return a.method="throw",a.arg=o.arg,a.delegate=null,m;var r=o.arg;return r?r.done?(a[t.resultName]=r.value,a.next=t.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,m):r:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function B(t){if(t||""===t){var a=t[r];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function a(){for(;++n<t.length;)if(s.call(t,n))return a.value=t[n],a.done=!1,a;return a.value=e,a.done=!0,a};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return O.prototype=g,n(G,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:O,configurable:!0}),O.displayName=c(g,i,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,i,"GeneratorFunction")),e.prototype=Object.create(G),e},t.awrap=function(e){return{__await:e}},x(w.prototype),c(w.prototype,l,(function(){return this})),t.AsyncIterator=w,t.async=function(e,a,s,n,o){void 0===o&&(o=Promise);var r=new w(d(e,a,s,n),o);return t.isGeneratorFunction(a)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},x(G),c(G,i,"Generator"),c(G,r,(function(){return this})),c(G,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var s in t)a.push(s);return a.reverse(),function e(){for(;a.length;){var s=a.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},t.values=B,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var a in this)"t"===a.charAt(0)&&s.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var a=this;function n(s,n){return l.type="throw",l.arg=t,a.next=s,n&&(a.method="next",a.arg=e),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var i=s.call(r,"catchLoc"),c=s.call(r,"finallyLoc");if(i&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=e,r.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];
2if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),E(a),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var s=a.completion;if("throw"===s.type){var n=s.arg;E(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,s){return this.delegate={iterator:B(t),resultName:a,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}var je={players:[],loadingSpinner:!0};function Oe(e,t){switch(t.type){case"fetchPlayersStats":return Object(o.a)(Object(o.a)({},e),{},{players:t.players});case"setLoadingSpinner":return Object(o.a)(Object(o.a)({},e),{},{loadingSpinner:t.loadingSpinner});default:return je}}var ge=function(){var e=Object(c.g)(),t=Object(l.useContext)(h.b).globalState,a=Object(l.useReducer)(Oe,je),o=Object(n.a)(a,2),i=o[0],f=o[1],y=Object(r.b)().enqueueSnackbar;Object(l.useEffect)((function(){Object(d.n)(t,v()?"Alumni Stats":"Roster Stats")}),[t]),Object(l.useEffect)((function(){var a;function n(){return(a=a||Object(s.a)(me().mark((function e(){return me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(u.f)(t.accountId)){e.next=15;break}if(f({type:"setLoadingSpinner",loadingSpinner:!0}),t.sportsType!==p.a.WOMENSICEHOCKEY&&t.sportsType!==p.a.MENSICEHOCKEY){e.next=5;break}return e.next=5,Object(m.b)(t.sportsType,t.accountId,v(),f,y);case 5:if(t.sportsType!==p.a.WOMENSRUGBY&&t.sportsType!==p.a.MENSRUGBY){e.next=8;break}return e.next=8,Object(g.b)(t.sportsType,t.accountId,v(),f,y);case 8:if(t.sportsType!==p.a.WOMENSLACROSSE&&t.sportsType!==p.a.MENSLACROSSE){e.next=11;break}return e.next=11,Object(j.b)(t.sportsType,t.accountId,v(),f,y);case 11:if(t.sportsType!==p.a.WOMENSBASEBALL&&t.sportsType!==p.a.MENSBASEBALL){e.next=14;break}return e.next=14,Object(O.b)(t.sportsType,t.accountId,v(),f,y);case 14:f({type:"setLoadingSpinner",loadingSpinner:!1});case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return n(),e.listen((function(){n()}))}),[e,e.location.pathname,t.accountId]);var v=function(){return"/alumnistats"===e.location.pathname};return Object(C.jsxs)(C.Fragment,{children:[Object(C.jsx)(he.a,{title:Object(ue.c)(v()?"Alumni Stats":"Roster Stats",t),description:Object(ue.a)(v()?"Check out our Alumni Stats":"Check out our Roster Stats",t),keywords:Object(ue.b)(v()?"Alumni Stats":"Roster Stats",t)}),function(){if(!Object(u.d)(t)||!Object(u.d)(t.websiteStyles))return null;if(t.websiteStyles.design.players===b.a.DESIGN_1){if(t.sportsType===p.a.WOMENSICEHOCKEY||t.sportsType===p.a.MENSICEHOCKEY)return Object(C.jsx)(D,{players:i.players,loadingSpinner:i.loadingSpinner});if(t.sportsType===p.a.WOMENSRUGBY||t.sportsType===p.a.MENSRUGBY)return Object(C.jsx)(be,{players:i.players,loadingSpinner:i.loadingSpinner});if(t.sportsType===p.a.WOMENSLACROSSE||t.sportsType===p.a.MENSLACROSSE)return Object(C.jsx)(z,{players:i.players,loadingSpinner:i.loadingSpinner});if(t.sportsType===p.a.WOMENSBASEBALL||t.sportsType===p.a.MENSBASEBALL)return Object(C.jsx)(z,{players:i.players,loadingSpinner:i.loadingSpinner})}return null}()]})};t.default=Object(l.memo)(ge)}}]);
3//# sourceMappingURL=22.73d40605.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.