1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6497],{66497:(e,t,n)=>{n.r(t),n(52675),n(89463),n(28706),n(2008),n(23792),n(62062),n(72712),n(34782),n(60739),n(69085),n(26099),n(58940),n(3362),n(42762),n(23500),n(62953);var r=n(18803),o=n(31477),s=n(82660),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=function(e,t,n,r){return new(n||(n=Promise))(function(o,s){function a(e){try{u(r.next(e))}catch(e){s(e)}}function i(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,i)}u((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function i(i){return function(u){var c=[i,u];if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},c=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},l="#awards-page",h="#dc-page",f="#tournament-page",d="#postcards-page",v="#storybook-page",p=f+' button[class*="_tournament_hiw__"]',m=d+' button[class*="_hiw__"]',b=v+' button[class*="_hiw__"]',w="dailyInfo",y=".tournament_hiw",g=".tournament_hiw_btn";function _(e){var t=document.querySelector(e);if(!t)throw new s.Rh("no "+e+" on this page");return t}function k(e){var t=[];return Array.prototype.slice.call(e.querySelectorAll('img[src*="/hiw"]')).forEach(function(e){var n=e.closest("[data-show]");n&&-1===t.indexOf(n)&&t.push(n)}),t}function S(e){var t=k(e).filter(function(e){return"true"===e.getAttribute("data-show")&&(0,r.eB)(e)});return t.length?t[0]:null}function P(e){var t=[];return Array.prototype.slice.call(e.querySelectorAll("button")).forEach(function(e){if(e.textContent&&e.textContent.trim()){var n=e.parentElement;n&&-1===t.indexOf(n)&&t.push(n)}}),t}function q(e){for(var t=P(e),n=0;n<t.length;n++)if((0,r.eB)(t[n]))return n;return -1}function G(e){return i(this,void 0,Promise,function(){return u(this,function(t){switch(t.label){case 0:return[4,(0,r.fm)("the tutorial button",function(){var t=q(e);return t<0?null:P(e)[t].querySelector("button")})];case 1:return t.sent().click(),[2]}})})}function O(e){return i(this,void 0,Promise,function(){var t,n,o,s;return u(this,function(a){switch(a.label){case 0:t=k(e).reduce(function(e,t){return e+P(t).length},0),n=function(t){var n,o;return u(this,function(t){switch(t.label){case 0:if(!(n=S(e)))return[2,{value:void 0}];return o=q(n),[4,G(n)];case 1:return t.sent(),[4,(0,r.fm)("the tutorial to move on",function(){return!(0,r.eB)(n)||q(n)>o})];case 2:return t.sent(),[2]}})},o=0,a.label=1;case 1:if(!(o<=t))return[3,4];return[5,n(o)];case 2:if("object"==typeof(s=a.sent()))return[2,s.value];a.label=3;case 3:return o++,[3,1];case 4:return[2]}})})}function A(e){return i(this,void 0,Promise,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,e.ready()];case 1:return t=n.sent(),[4,(0,r.fm)("the page to make its call on the tutorial",t)];case 2:return n.sent(),[4,(0,r.G9)()];case 3:return n.sent(),[2,_(e.host)]}})})}function C(e){return i(this,void 0,Promise,function(){var t,r;return u(this,function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.bind(n,80011))];case 1:return t=o.sent(),[4,Promise.resolve((r="postcards"===e?t.postcards.postcardsLogic:t.storybook.storybookLogic).request).catch(function(){})];case 2:if(o.sent(),!r.getData())throw new s.Rh("no "+e+" event data â liveops has none running for this profile");return[2,function(){return!!r.config.hiw}]}})})}function R(e){return i(this,void 0,Promise,function(){var t,r,o,s,a,i,c;return u(this,function(u){switch(u.label){case 0:return[4,Promise.all([Promise.resolve().then(n.bind(n,80011)),Promise.resolve().then(n.t.bind(n,75535,19)),n.e(4046).then(n.bind(n,84046))])];case 1:return r=(t=u.sent())[0],s=(o=t[1]).h,a=o.render,i=t[2].dcProps,c=_(h),r.dc.dcLogic.config.hiw=e,a(null,c),a(s(r.dc.components.DC,i()),c),[2]}})})}var L={dc:{title:"Daily Challenges",host:h,ready:function(){return i(this,void 0,Promise,function(){var e;return u(this,function(t){switch(t.label){case 0:return[4,Promise.resolve().then(n.bind(n,80011))];case 1:return e=t.sent().dc,[4,(0,r.oG)()];case 2:return t.sent(),[2,function(){return e.dcLogic.config.hiw}]}})})},reveal:function(){return R(!1)}},tournament_page:{title:"Tournament",host:f,ready:function(){return i(this,void 0,Promise,function(){var e;return u(this,function(t){switch(t.label){case 0:return[4,Promise.resolve().then(n.bind(n,80011))];case 1:return[4,Promise.resolve((e=t.sent().tournament.tournamentLogic).loadingPromise).catch(function(){})];case 2:if(t.sent(),!e.currentTournamentId)throw new s.Rh("no tournament is running for this profile â the page is a spinner");return[2,function(){return!!e.config.hiw}]}})})},reveal:function(){return i(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,(0,r.Oz)(p)];case 1:return e.sent(),[2]}})})}},postcards_page:{title:"Postcards event",host:d,ready:function(){return C("postcards")},reveal:function(){return i(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,O(_(d))];case 1:return e.sent(),[4,(0,r.Oz)(m)];case 2:return e.sent(),[2]}})})}},storybook_page:{title:"Storybook event",host:v,ready:function(){return C("storybook")},reveal:function(){return i(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,O(_(v))];case 1:return e.sent(),[4,(0,r.Oz)(b)];case 2:return e.sent(),[2]}})})}}},x={default:"1",about:"Which slide to stop on, one-based: `1`, `2`, `3`⦠2 on Daily Challenges and the tournament, 3 on Postcards and
1Storybook â 4 where the Postcards event has a leaderboard. Past the end the scene skips and names the real count. Not a number is a broken link, and fails."};function T(e){var t=e?parseInt(e,10):1;if(!isFinite(t)||t<1)throw Error("qa_args=slide:"+e+" is not a slide number");return t}s.zV.apply(void 0,c(c([{id:"awards",summary:"The awards page, on the tab given by `tab`.",where:function(){return!!document.querySelector(l)},args:{tab:{default:"",values:["dc","events"],about:"Which tab to select. Empty is whichever the page opened on, which depends on what this profile has unclaimed. The events tab is only rendered when there is something to put in it, and asking for it otherwise skips."}},open:function(e){var t=e.args;return i(void 0,void 0,void 0,function(){var e,n,o;return u(this,function(a){switch(a.label){case 0:return e=_(l),n=function(){return e.querySelector('[class*="_awards_content__"]')},[4,(0,r.fm)("the awards page to render",n)];case 1:if(a.sent(),!t.tab)return[3,3];if((o=Array.prototype.slice.call(e.querySelectorAll('[class*="_awards_header_tab__"]'))).length<2)throw new s.Rh("this profile has no events awards, so the page has no tabs");return o[+("dc"!==t.tab)].click(),[4,(0,r.fm)("the "+t.tab+" tab",function(){var e=n();return e&&e.classList.contains(t.tab)})];case 2:a.sent(),a.label=3;case 3:return[4,(0,r.G9)()];case 4:return a.sent(),[2]}})})}},{id:"dc.level_in_progress",summary:'The "Level in Progress" sheet over the Daily Challenges calendar: Continue or Restart.',where:function(){return!!document.querySelector(h)},open:function(){return i(void 0,void 0,void 0,function(){var e,t,c,l,f;return u(this,function(d){switch(d.label){case 0:return[4,(0,r.oG)()];case 1:if(d.sent(),(0,o.aG)())return[3,8];if(!(e=window.calendar))throw new s.Rh("the calendar has not booted yet");(f=(c=JSON.parse((t=localStorage.getItem(w))||"{}"))[l=e.selectedDate])&&!f.done||(c[l]=a(a({},D),{date:l})),localStorage.setItem(w,JSON.stringify(c)),d.label=2;case 2:return d.trys.push([2,,6,7]),[4,(0,r.Oz)("#calendar-button")];case 3:return d.sent(),[4,(0,r.fm)("the level-in-progress sheet",function(){return(0,r.eB)(document.querySelector("#dc-menu.menu-visible .new-game-menu.calendar-menu"))})];case 4:case 14:return d.sent(),[4,(0,r.G9)()];case 5:return d.sent(),[3,7];case 6:return null===t?localStorage.removeItem(w):localStorage.setItem(w,t),[7];case 7:return[2];case 8:return[4,function(){return i(this,void 0,Promise,function(){var e,t,r,o;return u(this,function(a){switch(a.label){case 0:return[4,Promise.resolve().then(n.bind(n,80011))];case 1:if(!(t=(e=a.sent().dc.dcLogic).calendar[e.selectedMonth]))throw new s.Rh("the calendar has no month to select â nothing to have progress on");if(r=t.id+"_"+e.selectedDate,(o=e.config.data[r])&&(o.sudokuProgress||o.d))return[2];if(o&&o.s)throw new s.Rh(r+" is already finished â reset it from the module Cheats panel to shoot this");return e.config.data[r]={sudokuProgress:D},[2]}})})}()];case 9:return d.sent(),[4,A(L.dc)];case 10:return d.sent(),[4,R(!0)];case 11:return d.sent(),[4,(0,r.fm)("the calendar to finish loading",function(){return!document.querySelector(h+' [class*="_loading__"][class*="_active__"]')})];case 12:return d.sent(),[4,(0,r.Oz)(h+' [class*="_btn_container__"] button')];case 13:return d.sent(),[4,(0,r.fm)("the level-in-progress sheet",function(){return(0,r.eB)(document.querySelector(h+' [class*="_btn_popup__"][class*="_active__"]'))})];case 15:return d.sent(),[2]}})})}},{id:"tournament_page.tutorial_legacy",summary:"The tournament how-it-works carousel in its pre-modules markup, on the slide given by `slide`. Skipped where `useModules` is on â `tournament_page.tutorial` is that build's scene.",where:function(){return!(0,o.aG)()&&!!document.querySelector(y)},args:{slide:x},open:function(e){var t=e.args;return i(void 0,void 0,void 0,function(){var e,n,o,a,i;return u(this,function(c){switch(c.label){case 0:return e=T(t.slide),[4,(0,r.oG)()];case 1:return c.sent(),[4,(0,r.Oz)(".tournament_hiw_open")];case 2:return c.sent(),[4,(0,r.fm)("the tutorial",function(){return document.querySelector(y+".open")})];case 3:if(n=c.sent(),o=Array.prototype.slice.call(n.querySelectorAll(".tournament_hiw_item")),e>o.length)throw new s.Rh("this tutorial has "+o.length+" slides, so there is no "+e);a=function(e){var t;return u(this,function(n){switch(n.label){case 0:if(!(t=o[e-1].querySelector(g+'[data-action="next"]')))throw new s.Rh("slide "+e+" has no Continue button");return t.click(),[4,(0,r.fm)("slide "+(e+1),function(){return o[e].classList.contains("active")})];case 1:return n.sent(),[2]}})},i=1,c.label=4;case 4:if(!(i<e))return[3,7];return[5,a(i)];case 5:c.sent(),c.label=6;case 6:return i++,[3,4];case 7:return[4,(0,r.G9)()];case 8:return c.sent(),[2]}})})}},{id:"tournament_page.no_tutorial_legacy",summary:"The pre-modules tournament page with its tutorial closed, as a returning player sees it. Skipped where `useModules` is on.",where:function(){return!(0,o.aG)()&&!!document.querySelector(y)},open:function(){return i(void 0,void 0,void 0,function(){var e,t;return u(this,function(n){switch(n.label){case 0:return[4,(0,r.oG)()];case 1:return n.sent(),t=(e=document.querySelector(y)).querySelector(g+'[data-action="close"]'),e.classList.contains("open")&&t&&t.click(),[4,(0,r.fm)("the tutorial to close",function(){return!e.classList.contains("open")})];case 2:return n.sent(),[4,(0,r.G9)()];case 3:return n.sent(),[2]}})})}}],Object.keys(L).map(function(e){var t=L[e];return{id:e+".tutorial",summary:"The "+t.title+" how-it-works tutorial, on the slide given by `slide`.",where:function(){return!!document.querySelector(t.host)},args:{slide:x},open:function(n){var a=n.args;return i(void 0,void 0,void 0,function(){var n,c;return u(this,function(l){switch(l.label){case 0:if(n=T(a.slide),"dc"===e&&!(0,o.aG)())throw new s.Rh("the pre-modules Daily Challenges calendar has no tutorial â drop `qa_modules=0` to shoot the module one");return[4,A(t)];case 1:return c=l.sent(),[4,t.reveal()];case 2:return l.sent(),[4,(0,r.fm)("the tutorial popup",function(){return S(c)})];case 3:return[4,function(e,t){return i(this,void 0,Promise,function(){var n,o,a;return u(this,function(i){switch(i.label){case 0:if(t>(n=P(e).length))throw new s.Rh("this tutorial has "+n+" slide"+(n>1?"s":"")+", so there is no "+t);o=function(t){var n;return u(this,function(t){switch(t.label){case 0:return n=q(e),[4,G(e)];case 1:return t.sent(),[4,(0,r.fm)("slide "+(n+2)+" of the tutorial",function(){return q(e)>n})];case 2:return t.sent(),[2]}})},a=1,i.label=1;case 1:if(!(a<t))return[3,4];return[5,o(a)];case 2:i.sent(),i.label=3;case 3:return a++,[3,1];case 4:return[2]}})})}(l.sent(),n)];case 4:return l.sent(),[4,(0,r.G9)()];case 5:return l.sent(),[2]}})})}}}
1),!1),Object.keys(L).map(function(e){var t=L[e];return{id:e+".no_tutorial",summary:"The "+t.title+" page as a returning player sees it, with no tutorial over it.",where:function(){return!!document.querySelector(t.host)},open:function(){return i(void 0,void 0,void 0,function(){var n;return u(this,function(s){switch(s.label){case 0:if(!("dc"===e&&!(0,o.aG)()))return[3,3];return[4,(0,r.oG)()];case 1:case 6:return s.sent(),[4,(0,r.G9)()];case 2:case 7:return s.sent(),[2];case 3:return[4,A(t)];case 4:return[4,O(n=s.sent())];case 5:return s.sent(),[4,(0,r.fm)("the tutorial to go",function(){return!S(n)})]}})})}}}),!1));var D={values:Array.apply(null,Array(81)).map(function(e,t){return{val:t<40?t%9+1:0,mistake:!1}})}}}]);
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.