1(self.fbJsonpFunction=self.fbJsonpFunction||[]).push([[607,1458,2606,2917,3089,4127,4318,5854,7129,8403,9026,9707],{55680:function(e,n,i){"use strict";i.d(n,{b:function(){return r}});var a=i(75127),t=(i(78983),{errorInfo:"errorInfo-emSxJ",errorInfoTitle:"errorInfoTitle-lklc4"}),r=function(e){var n=e.title,i=e.message;return(0,a.FD)("div",{className:t.errorInfo,children:[(0,a.Y)("div",{className:t.errorInfoTitle,children:n||"ÐÑоизоÑла оÑибка!"}),(0,a.Y)("div",{className:t.errorInfoMessage,children:i||"ÐопÑобÑйÑе пеÑезагÑÑзиÑÑ ÑÑÑаниÑÑ Ð¸Ð»Ð¸ зайÑи ÑÑÑÑ Ð¿Ð¾Ð·Ð¶Ðµ!"})]})}},71986:function(e,n,i){"use strict";i.d(n,{GameSimpleTest:function(){return we},q:function(){return he}}),i(76281),i(99425);var a=i(75127),t=i(78983),r=i(87520),o=i(930),d=i(67346),s=(i(69703),i(51908),i(78557),i(83994),i(14846),i(63333),i(6211),i(75568),i(82367),i(11015)),l=i(9221),u=(i(67834),i(97792));function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],t=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return u.V.query({query:i(67694),variables:{gameId:e,preview:n,isEmbed:a,location:t,gameFilters:r}}).then(function(e){var n=e.data,i=n.common.preview,a=n.simpleTest.game;if(!a||!i)throw new Error("ÐÑибка загÑÑзки игÑовÑÑ
даннÑÑ
!");return{preview:i,simpleTest:a}})}function c(e){if(!e.simpleTest)return{};var n=e.currentQuestionIndex+1,i=e.simpleTest.questions.length-1;return{currentQuestionIndex:n>i?i:n}}function v(e){if(!e.simpleTest)return{};var n=e.currentQuestionIndex-1;return{currentQuestionIndex:n<0?0:n}}function g(e){var n,i;return null!==(n=null===(i=e.simpleTest)||void 0===i||null===(i=i.questions)||void 0===i?void 0:i[e.currentQuestionIndex])&&void 0!==n?n:null}function f(e,n){var i,a;return null!==(i=null===(a=n.userData)||void 0===a?void 0:a.answers.find(function(n){return n.questionId===e.id}))&&void 0!==i?i:null}function p(e){if(!e.simpleTest)return!1;if(e.simpleTest.isFinished)return!0;var n=g(e);if(!n)return!1;if(!e.userData)return!1;var i=f(n,e);return Boolean(i)}i(15724),i(69655),i(23630);var k=i(92099),N=i(48183),h=i(41705),b=i(38424),w=i(61448),C=i.n(w),T=new(function(){return(0,N.A)(function e(){(0,k.A)(this,e),(0,h.A)(this,"db",void 0),this.db=(0,b.f)("se-simple-test-user-games")},[{key:"isValidContextData",value:function(e){return!!e&&C()(e,"id")&&C()(e,"answers")}},{key:"getByGameId",value:function(e){var n=this;return this.db.getItem("".concat(e)).then(function(e){return n.isValidContextData(e)?e:null})}},{key:"save",value:function(e,n){return this.db.setItem("".concat(e),n)}},{key:"clear",value:function(e){return this.db.removeItem("".concat(e))}}])}()),_=i(96893),q=i(89232),S=(0,s.O)({predictableActionArguments:!0,id:"simpleTestMachine",initial:"notInit",context:{isAuthorized:!1,gameId:0,preview:null,simpleTest:null,userData:null,currentQuestionIndex:0,previewCode:null,isEmbed:!0,brand:null,brandCampaign:null,location:null,oneTimeBrandingFilters:null},states:{notInit:{on:{INIT:"fetching"}},fetching:{invoke:{id:"fetchingGameData",src:function(e){return Promise.all([m(e.gameId,e.previewCode,e.isEmbed,e.location,e.oneTimeBrandingFilters),(n=e.gameId,T.getByGameId(n))]).then(function(e){var n=(0,d.A)(e,2),i=n[0],a=n[1];return{preview:i.preview,simpleTest:i.simpleTest,userData:a}});var n},onDone:{actions:[(0,l.kp)(function(e,n){var i=n.data;return i?{preview:i.preview,simpleTest:i.simpleTest,userData:i.userData,currentQuestionIndex:0}:{}}),(0,l.tN)(function(e){return{type:e.isEmbed?"PLAYING":"PREVIEW"}})]},onError:{actions:[(0,l.tN)(function(){return{type:"ERROR"}})]}},on:{PREVIEW:"preview",PLAYING:"playing",ERROR:"error"}},preview:{on:{PLAY:"playing"}},playing:{initial:"waitingQuestionAnswer",states:{waitingQuestionAnswer:{on:{SEND_ANSWER:".sendAnswer",SHOW_RESULTS:[{target:"viewQuestionResult.infoBlock",cond:function(e){var n=g(e);if(!n)return!1;var i=f(n,e);return Boolean(i&&n.showInfo&&n.info)}},{target:"viewQuestionResult",cond:p}],PREV_QUESTION:{target:"#simpleTestMachine.playing",actions:(0,l.kp)(v)},NEXT_QUESTION:{target:"#simpleTestMachine.playing",actions:(0,l.kp)(c)}},initial:"wait",states:{wait:{always:[{target:"#simpleTestMachine.playing.viewQuestionResult",cond:p}]},sendAnswer:{invoke:{id:"sendAnswerProcessing",src:function(e,n){var a,t,r=n.data;return(a=e.gameId,t=r,u.V.mutate({mutation:i(10428),variables:{answer:{gameId:a,questionId:t.questionId,variantId:t.variantId}}}).then(function(e){var n,i=e.data;return null!=i&&null!==(n=i.simpleTestMutations)&&void 0!==n&&n.saveUserAnswer?i.simpleTestMutations.saveUserAnswer:null})).then(function(e){return{questionAnswersResult:e,userSelectedVariant:r.variantId}})},onDone:{actions:[(0,l.kp)(function(e,n){var i,a;if(!n.data||!e.simpleTest)return{};var t=g(e);
1if(!t)return{};t.votes=n.data.questionAnswersResult.questionTotalVotes,t.formattedVotes=n.data.questionAnswersResult.questionTotalFormattedVotes,n.data.questionAnswersResult.variants.forEach(function(e){var n=t.variants.find(function(n){return n.id===e.variantId});n&&(n.votes=e.votes,n.formattedVotes=e.formattedVotes,n.percentage=e.percentage)});var r=null!==(i=null===(a=e.userData)||void 0===a?void 0:a.answers)&&void 0!==i?i:[];return r.push({questionId:n.data.questionAnswersResult.questionId,variantId:n.data.userSelectedVariant}),{userData:{id:e.gameId,answers:r}}}),(0,l.tN)(function(e,n){var i,a,t,r,o,d=null===(i=e.simpleTest)||void 0===i?void 0:i.questions.find(function(e){return e.id===n.data.questionAnswersResult.questionId}),s=null==d||null===(a=d.variants.find(function(e){return e.id===n.data.userSelectedVariant}))||void 0===a?void 0:a.text;e.preview&&s&&d&&(0,_.c)({game_id:String(e.preview.id),game_name:e.preview.name,type_event:"game_question",type_event_label:d.text,type_event_label_answer:s,game_type:e.preview.type.code,game_brand:null!==(r=e.brand)&&void 0!==r?r:q.CX,game_campaign:null!==(o=e.brandCampaign)&&void 0!==o?o:q.Ff,event:"game_ce"});var l,u,m=null===(t=e.simpleTest)||void 0===t?void 0:t.questions.every(function(n){var i,a=n.id;return null===(i=e.userData)||void 0===i?void 0:i.answers.some(function(e){var n=e.questionId;return a===n})});return e.preview&&m&&(0,_.c)({game_id:String(e.preview.id),game_name:e.preview.name,type_event:"game_over",type_event_label:"game_winner",game_type:e.preview.type.code,game_brand:null!==(l=e.brand)&&void 0!==l?l:q.CX,game_campaign:null!==(u=e.brandCampaign)&&void 0!==u?u:q.Ff,event:"game_ce"}),{type:"SHOW_RESULTS"}}),function(e){return e.userData?T.save(e.gameId,e.userData):null}]},onError:{actions:(0,l.tN)(function(){return{type:"ERROR"}})}},on:{ERROR:"wait"}}}},viewQuestionResult:{always:{target:"waitingQuestionAnswer",cond:function(e){return!p(e)}},initial:"wait",states:{wait:{},infoBlock:{on:{CLOSE_INFO_BLOCK:[{target:"wait",cond:p},{actions:(0,l.tN)({type:"NEXT_QUESTION"})}]}}},on:{NEXT_QUESTION:{actions:(0,l.kp)(c)},PREV_QUESTION:{actions:(0,l.kp)(v)}}}}},error:{}}}),I=i(4452),y=i.n(I),D=i(59663),F=i(69707);function A(){var e,n,i=(0,t.useContext)(he).machine,a=(0,D.B)(i),r=(0,d.A)(a,2),o=r[0],s=r[1],l=o.context,u=null!==(e=null===(n=l.simpleTest)||void 0===n?void 0:n.questions)&&void 0!==e?e:[],m=l.currentQuestionIndex;return{num:m+1,currentQuestion:l.simpleTest.questions[m],totalQuestions:u.length,navigate:function(e){s("".concat(e.toUpperCase(),"_QUESTION"))},send:s}}i(24776),i(86584),i(94364);var E,V=i(95170),B=i(36351),Y=i(83957),x=i.n(Y),P=i(20378),L=i(73152),Q=i(99072),R=i(14318),G=i(98814),O=i(72076),H=function(e){var n,i,r,o=e.className,d=(0,t.useContext)(he),s=d.brand,l=d.brandingCode,u=d.brandCampaign,m=d.gameOptions,c=d.game,v=(0,O.i)().publish,g=l&&(null==m||null===(n=m.branding)||void 0===n?void 0:n.actionViewLink)||null,f=l&&(null==m||null===(i=m.branding)||void 0===i?void 0:i.actionLink)||null,p=(null==m||null===(r=m.branding)||void 0===r?void 0:r.actionText)||"",k=(0,P.Wx)({threshold:.5,triggerOnce:!0,onChange:function(e){l&&e&&g&&x().get(g).then(function(){})}}).ref,N=(0,t.useCallback)(function(){f&&window.open(f,"_blank"),(0,L.z5)("click_logo_in_game_".concat(s),{}),v(G.g8,{brand:s,type:"button"}),(0,_.c)({game_id:String(c.id),game_name:c.name,type_event:"go_to_reklama",type_go_to_reklama:Q.j.Fribet,game_type:c.type.code,game_brand:null!=s?s:q.CX,game_campaign:null!=u?u:q.Ff,event:"game_ce"})},[s,f,u,c]);return l?(0,a.Y)("div",{ref:k,className:y()(R.default.simpleTestGameBrandActionItem,o),children:(0,a.Y)(V.h,{onClick:N,className:R.default.simpleTestGameBrandActionItemButton,branding:!0,children:p})}):null},W=i(41406),M=i(44127),U=i(82656),$=function(e){var n,i,r,o,s=e.question,l=e.onClose,u=e.autoCloseTime,m=void 0===u?0:u,c=(0,t.useContext)(he),v=c.brandingCode,g=c.gameOptions,f=c.isEmbed,p=(0,t.useState)(m),k=(0,d.A)(p,2),N=k[0],b=k[1],w=(0,U.g)().classes,C=null==g||null===(n=g.branding)||void 0===n?void 0:n.brandInfo;return(0,B.$)(function(){m&&(N<=0?l():b(N-1))},N<=0?null:1e3),(0,a.FD)("div",{className:w([M.default.infoDialog,(0,h.A)({},M.default.infoDialog_embed,f)],(0,h.A)({},"infoDialog__".concat(v),!!v)),onClick:function(e){e.stopPropagation()},children:[(0,a.FD)("div",{className:M.default.infoDialogHeader,children:[(0,a.Y)("div",{className:M.default.infoDialogTimer,children:m?(0,a.FD)(a.FK,{children:["ÐвÑомаÑиÑеÑки ",(0,a.Y)("br",{})," закÑоеÑÑÑ ÑеÑез ",(i=null!=N?N:0,r=Math.floor(i/60),o=i%60,"".concat(r>9?r:"0".concat(r),":").concat(o>9?o:"0".concat(o)))]}):null}),(0,a.Y)("div",{className:M.default.infoDialogClose,role:"button","aria-pressed":"false",onClick:l,children:(0,a.Y)(W.A,{glyph:"close"})})]}),(0,a.FD)("div",{className:M.default.infoDialogCenterWrapper,children:[s.info&&(0,a.Y)("div",{className:M.default.infoDialogDescription,dangerouslySetInnerHTML:{__html:s.info}}),v&&C&&(0,a.Y)("div",{className:w(M.default.infoDialogBrandInfo,{infoDialogBrandInfo:!!v}),dangerouslySetInnerHTML:{__html:C}}),v&&(0,a.Y)("div",{className:M.default.infoDialogActions,children:(0,a.Y)(H,{className:w(M.default.infoDialogBrandAction,{infoDialogBrandAction:!!v})})})]})]})},X=i(98622),z=i(2917),j=function(e){var n=e.numQuestion,i=e.totalQuestions,r=e.onClick,o=(0,t.useContext)(he).isWidget,d=(0,X.I)().brandingCode;return(0,a.FD)("div",{className:y()(z.default.questionNavigator,(0,h.A)((0,h.A)({},z.default.questionNavigator__widget,o),z.default["questionNavigator__branding_".concat(d)],d)),children:[(0,a.Y)("div",{className:y()(z.default.questionNavigatorButton,(0,h.A)({},z.default.questionNavigatorButton__disabled,n<=1)),onClick:function(e){e.stopPropagation(),r("prev")}}),(0,a.Y)("div",{className:y()(z.default.questionNavigatorButton,(0,h.A)({},z.default.questionNavigatorButton__disabled,n===i)),onClick:function(e){e.stopPropagation(),r("next")}})]})},J=i(99026),K={pari:"pari/simple-test/pari.svg",fonbet_simple:"fonbet/smiple-test/logo-fonbet.svg"},Z=i(69144),ee=function(){var e=(0,t.useContext)(he),n=e.brandingCode,i=e.gameOptions,r=(0,U.g)().classes,o=(0,P.Wx)({threshold:.5,triggerOnce:!0,onChange:function(e){var a;n&&e&&null!=i&&null!==(a=i.branding)&&void 0!==a&&a.brandViewLink&&x().get(i.branding.brandViewLink).catch(function(){})}}).ref;return n?(0,a.Y)("div",{ref:o,className:r(J.default.simpleTestGameBrandLogo,(0,h.A)({},"simpleTestGameBrandLogo__".concat(n),!!n)),role:"link",children:(0,a.Y)(Z.q,{brandImagePath:K[n]})}):null},ne=i(17129),ie=function(){var e=(0,t.useContext)(he),n=e.isWidget,i=e.brandingCode,r=A(),o=r.totalQuestions,d=r.currentQuestion,s=r.num,l=r.navigate;return(0,a.FD)("div",{className:ne.default.questionCardHeaderWrapper,children:[d.photo&&(0,a.Y)("img",{src:d.photo}),(0,a.FD)("div",{className:y()(ne.default.questionCardHeader,(0,h.A)((0,h.A)({},ne.default.questionCardHeader__widget,n),ne.default["questionCardHeader__".concat(i)],i)),children:[(0,a.Y)("div",{className:ne.default.questionCardHeaderLogo,children:(0,a.Y)(ee,{})}),o>1&&(0,a.FD)("div",{className:ne.default.questionCardHeaderNav,children:[(0,a.FD)("div",{className:ne.default.questionCardHeaderNavCounts,children:[s,"/",o]}),(0,a.Y)("div",{className:ne.default.questionCardHeaderNavButtons,children:(0,a.Y)(j,{totalQuestions:o,numQuestion:s,onClick:function(e){l(e)}})})]})]})]})},ae=i(58699),te=i(88403),re=function(){var e,n,i,r=(0,t.useContext)(he),o=r.machine,s=r.isWidget,l=r.brandingCode,u=(0,D.B)(o),m=(0,d.A)(u,2),c=m[0],v=m[1],g=A().currentQuestion,f=(0,U.g)().classes,p=null===(e=c.context.userData)||void 0===e?void 0:e.answers,k=Array.isArray(p)&&(null===(n=p.find(function(e){return e.questionId===g.id}))||void 0===n?void 0:n.variantId)||null,N=c.matches({playing:"viewQuestionResult"}),b=c.matches({playing:{viewQuestionResult:"infoBlock"}}),w=N&&!(0,ae.u)(k),C=null===(i=c.context.simpleTest)||void 0===i?void 0:i.questionInfoAutoCloseTime;return(0,a.FD)("div",{className:f([te.default.questionCard,(0,h.A)({},te.default.questionCard__widget,s)],(0,h.A)({},"questionCard__".concat(l),!!l)),children:[(0,a.Y)(ie,{}),(0,a.Y)("div",{className:f(te.default.questionCardQuestionWrapper,{questionCardQuestionWrapper:!!l}),children:(0,a.FD)("div",{className:te.default.questionCardQuestion,children:[g.photoSource&&(0,a.Y)("div",{className:te.default.questionCardQuestionPhotoSource,children:g.photoSource}),(0,a.Y)("div",{className:te.default.questionCardQuestionTitle,children:g.text}),(0,a.Y)("div",{className:te.default.questionCardVariants,children:g.variants.map(function(e){var n=!(0,ae.u)(k)&&k===e.id,i=null;return g.showVotes&&g.showPercentages?i="".concat(e.formattedVotes," (").concat(e.percentage,"%)"):g.showVotes?i=e.formattedVotes:g.showPercentages&&(i="".concat(e.percentage,"%")),(0,a.FD)("div",{className:f(te.default.questionCardVariant,{questionCardVariant:!!l}),children:[(0,a.Y)(V.h,{className:f((0,h.A)((0,h.A)({},te.default.questionCardVariantButton,!0),te.default.questionCardVariantButton__active,!w||n),{questionCardVariantButton:!!l,questionCardVariantButton__active:!!l&&(!w||n),questionCardVariantButton__answeredAndChecked:!!l&&w&&n}),disabled:w,onClick:function(){return n=e.id,void v({type:"SEND_ANSWER",data:{questionId:g.id,variantId:n}});var n},children:e.text},e.id),(0,a.Y)("div",{className:y()(te.default.questionCardVariantResult,(0,h.A)({},te.default.questionCardVariantResult__visible,w)),children:i})]})})})]})}),b&&(0,a.Y)($,{autoCloseTime:C,question:g,onClose:function(){v({type:"CLOSE_INFO_BLOCK"})}})]})},oe=function(){return(0,a.Y)("div",{className:F.default.gameScreen,children:(0,a.Y)(re,{})})},de=(i(29305),i(32733),i(94),i(79725)),se=i(75854),le=function(e){var n=e.gameTitle,i=e.onPlayGame,t=e.needAuth,r=void 0!==t&&t,o=e.canContinue,d=void 0!==o&&o,s=e.isFinished,l=void 0!==s&&s,u=e.children;return(0,a.Y)("div",{className:y()(se.default.gamePreview),onClick:function(e){e.stopPropagation()},children:(0,a.FD)("div",{className:se.default.gamePreviewInner,children:[(0,a.FD)("div",{className:se.default.gamePreviewDescription,children:[(0,a.Y)("div",{className:se.default.gamePreviewTitle,children:n}),(0,a.Y)("div",{className:se.default.gamePreviewInfo,children:u})]}),(0,a.Y)("div",{className:se.default.gamePreviewPlay,children:r?(0,a.Y)(V.h,{onClick:function(){de.A.emit("showAuthForm",null)},children:"ÐÑжно авÑоÑизоваÑÑÑÑ"}):(0,a.Y)(V.h,{onClick:i,children:l?"ÐÑоÑмоÑÑ ÑезÑлÑÑаÑов":d?"ÐÑодолжиÑÑ Ð¾Ð¿ÑоÑ":"ÐаÑаÑÑ Ð¾Ð¿ÑоÑ"})})]})})},ue=function(){var e,n=(0,t.useContext)(o.J),i=(0,t.useContext)(he),r=i.machine,s=i.brand,l=i.brandCampaign,u=(0,D.B)(r),m=(0,d.A)(u,2),c=m[0],v=m[1],g=c.context.preview;if(!g||!c.context.simpleTest)return null;var f=Number(null===(e=c.context.userData)||void 0===e?void 0:e.answers.length),p=c.context.simpleTest.questions.length,k=f>
10&&f<p,N=c.context.simpleTest.isFinished||f===p,h=g.needAuth&&!n.isAuthorized;return(0,a.Y)(le,{onPlayGame:function(){v("PLAY");var e=c.context,n=e.userData,i=e.simpleTest,a=null==i?void 0:i.questions.every(function(e){var i=e.id;return null==n?void 0:n.answers.some(function(e){var n=e.questionId;return i===n})});g&&!a&&(0,_.c)({game_id:String(g.id),game_name:g.name,type_event:"game_start",game_type:g.type.code,game_brand:null!=s?s:q.CX,game_campaign:null!=l?l:q.Ff,event:"game_ce"})},gameTitle:g.name,needAuth:h,canContinue:k,isFinished:N,children:(0,a.Y)("div",{dangerouslySetInnerHTML:{__html:g.description}})})},me=i(55680),ce=i(33089),ve=function(){var e=(0,t.useContext)(he).machine,n=(0,D.B)(e),i=(0,d.A)(n,2),r=i[0],o=i[1];return(0,t.useEffect)(function(){o({type:"INIT"})},[]),(0,a.FD)("div",{className:y()(ce.default.screenManager,(0,h.A)({},ce.default.screenManagerLoading,r.matches("notInit")||r.matches("fetching"))),children:[r.matches("preview")&&(0,a.Y)(ue,{}),r.matches("playing")&&(0,a.Y)(oe,{}),r.matches("error")&&(0,a.Y)(me.b,{})]})},ge=i(27405),fe=i(1458),pe=i(38247),ke=function(e){var n,i,r,o,d,s=e.children,l=(0,t.useContext)(he),u=l.game,m=l.isEmbed,c=l.brandingCode,v=l.brandCampaign,g=l.brand,f=l.gameOptions,p=(null==f?void 0:f.branding)||{},k=p.legal,N=p.legalColor,b=p.legalDurationSec,w=c?"simpleTestGameBranding__".concat(c).concat(m?"_embed":""):null,C=(0,P.Wx)({threshold:.5,triggerOnce:!0,onChange:function(e){e&&u&&(0,_.c)({game_id:String(u.id),game_name:u.name,type_event:"game_view",game_type:u.type.code,game_brand:null!=g?g:q.CX,game_campaign:null!=v?v:q.Ff,event:"game_ce"})}}).ref;return(0,a.FD)("div",{ref:C,className:y()((0,ge.A)((0,h.A)({},fe.default.simpleTestGameBranding,!0),w&&(0,h.A)({},fe.default[w],!0))),children:[(0,a.Y)("div",{className:y()(fe.default.simpleTestGameBrandingHeader)}),(0,a.Y)("div",{className:y()(fe.default.simpleTestGameBrandingContent),children:s}),c?(0,a.FD)("div",{className:y()(fe.default.simpleTestGameBrandingFooter,(0,h.A)({},fe.default.simpleTestGameBrandingFooterBottom,Boolean(null==f||null===(n=f.branding)||void 0===n?void 0:n.legal))),children:[(null==f||null===(i=f.branding)||void 0===i?void 0:i.adInfo)&&(0,a.Y)("div",{style:{color:null!==(r=null==f||null===(o=f.branding)||void 0===o?void 0:o.adInfoColor)&&void 0!==r?r:void 0},children:null==f||null===(d=f.branding)||void 0===d?void 0:d.adInfo}),(0,a.Y)(pe.R,{className:fe.default.simpleTestGameBrandingFooterTicker,brandingClassName:"simpleTestGameBrandingFooterTicker",legal:k,color:N,animationDuration:b})]}):null]})};!function(e){e[e.NOT_SELECTED=0]="NOT_SELECTED",e[e.EMBED=1]="EMBED",e[e.PORTAL=2]="PORTAL",e[e.ALL_PAGES=3]="ALL_PAGES"}(E||(E={}));var Ne=i(83240),he=(0,t.createContext)({game:{},machine:{},isEmbed:!1,isWidget:!1,brand:null,brandCampaign:null,brandingCode:null,gameOptions:null}),be=function(e){var n,i,d,s,l,u,m,c,v,g=e.game,f=e.gameOptions,p=e.previewCode,k=e.isEmbed,N=void 0!==k&&k,h=e.isWidget,b=void 0!==h&&h,w=e.children,C=e.location,T=e.oneTimeBrandingFilters,_=(0,t.useContext)(o.J).isAuthorized,q=null!=f&&null!==(n=f.branding)&&void 0!==n&&n.active&&f.branding.brand&&[E.ALL_PAGES,N?E.EMBED:E.PORTAL].includes(f.branding.attachPage)?f.branding.brand:null,I=q?null!==(i=null==f||null===(d=f.branding)||void 0===d?void 0:d.brandCampaign)&&void 0!==i?i:"default":null,y=(0,Ne.Z)({brand:q,brandCampaign:I,gameTypeCode:g.type.code,layoutLink:null!==(s=null==f||null===(l=f.branding)||void 0===l?void 0:l.layoutLink)&&void 0!==s?s:null,layoutViewLink:null!==(u=null==f||null===(m=f.branding)||void 0===m?void 0:m.layoutViewLink)&&void 0!==u?u:null,brandLink:null!==(c=null==f||null===(v=f.branding)||void 0===v?void 0:v.brandLink)&&void 0!==c?c:null}),D=y.isLoading,F=y.brandingCode,A=(0,r.F)(S,{context:{isAuthorized:_,gameId:g.id,previewCode:p,isEmbed:N,brand:q,brandCampaign:I,location:C,oneTimeBrandingFilters:T}},function(e){e.context.isAuthorized});return D&&F?null:(0,a.Y)(he.Provider,{value:{game:g,machine:A,isEmbed:N,isWidget:b,brand:q,brandCampaign:I,brandingCode:F,gameOptions:null!=f?f:null},children:w})},we=function(e){var n=e.game,i=e.previewCode,t=void 0===i?null:i,r=e.isEmbed,o=void 0!==r&&r,d=e.isWidget,s=void 0!==d&&d,l=e.location,u=e.oneTimeBrandingFilters;return(0,a.Y)(be,{game:n,previewCode:t,isEmbed:o,isWidget:s,gameOptions:n.options,location:l,oneTimeBrandingFilters:u,children:(0,a.Y)(ke,{children:(0,a.Y)(ve,{})})})}},72606:function(e,n,i){"use strict";i.d(n,{AC:function(){return w},El:function(){return b},Yq:function(){return N},bD:function(){return h},vd:function(){return k}});var a=i(40694),t=(i(24776),i(95021),i(93062),i(46968),i(95285)),r=i.n(t),o=(i(13824),i(84486)),d=i.n(o),s=i(88361),l=i.n(s),u=i(5545),m=i.n(u),c=i(83340),v=i.n(c),g=i(23297),f=i.n(g),p=i(88809);function k(e){return!(!e||!r()(e).isValid())}function N(e,n,i){if(!e)return"";var t=!0,o=!1,d=!1,s=!1;if("boolean"==typeof i)t=i;else if("object"===(0,a.A)(i)){var l,u,m,c;t=null===(l=i.utc)||void 0===l||l,o=null!==(u=i.hideCurrentYear)&&void 0!==u&&u,d=null!==(m=i.dateOnly)&&void 0!==m&&m,s=null!==(c=i.disableUtc)&&void 0!==c&&c}var v=n;
1return o&&r()(e).year()===r()().year()&&(v=n.replace(/[\s.,-]?YYYY/,"")),d&&(v=v.replace(/[\s.,-]?HH:mm/,"")),s?r()(e).locale("ru").format(v.trim()):r()(e).utc().utcOffset(t?0:180).locale("ru").format(v.trim())}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return r()(n).isAfter(r()(e))}function b(e,n,i){return r()(e).add(n,i)}function w(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";return Math.abs(r()(e).diff(n,i))}r().extend(p),r().extend(d()),r().extend(l()),r().extend(m()),r().extend(v()),r().extend(f()),r().locale("ru"),r().updateLocale("ru",{monthsShort:["Ñнв","Ñев","маÑ","апÑ","маÑ","иÑн","иÑл","авг","Ñен","окÑ","ноÑ","дек"]})},67694:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GameSimpleTestDataQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"gameId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"preview"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},defaultValue:{kind:"NullValue"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isEmbed"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"location"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},defaultValue:{kind:"NullValue"},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"gameFilters"}},type:{kind:"NamedType",name:{kind:"Name",value:"GamesFilterInput"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"common"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"preview"},name:{kind:"Name",value:"gameById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"gameId"}}},{kind:"Argument",name:{kind:"Name",value:"preview"},value:{kind:"Variable",name:{kind:"Name",value:"preview"}}},{kind:"Argument",name:{kind:"Name",value:"isEmbed"},value:{kind:"Variable",name:{kind:"Name",value:"isEmbed"}}},{kind:"Argument",name:{kind:"Name",value:"location"},value:{kind:"Variable",name:{kind:"Name",value:"location"}}},{kind:"Argument",name:{kind:"Name",value:"filters"},value:{kind:"Variable",name:{kind:"Name",value:"gameFilters"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"photo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"needAuth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"difficultyLevel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pluralName"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"simpleTest"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"game"},arguments:[{kind:"Argument",name:{kind:"Name",value:"gameId"},value:{kind:"Variable",name:{kind:"Name",value:"gameId"}}},{kind:"Argument",name:{kind:"Name",value:"preview"},value:{kind:"Variable",name:{kind:"Name",value:"preview"}}},{kind:"Argument",name:{kind:"Name",value:"isEmbed"},value:{kind:"Variable",name:{kind:"Name",value:"isEmbed"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isFinished"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"questionInfoAutoCloseTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"questions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"photo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"photoSource"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showVotes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showPercentages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"votes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formattedVotes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"showInfo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"info"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"votes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formattedVotes"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:1266}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){i(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){i(e,n)}),e.definitions&&e.definitions.forEach(function(e){i(e,n)})}n.loc.source={body:"query GameSimpleTestDataQuery(\n $gameId: Int!\n $preview: String = null\n $isEmbed: Boolean!\n $location: String = null\n $gameFilters: GamesFilterInput\n) {\n common {\n preview: gameById(\n id: $gameId\n preview: $preview\n isEmbed: $isEmbed\n location: $location\n filters: $gameFilters\n ) {\n id\n name\n description\n photo\n needAuth\n difficultyLevel\n type {\n id\n name\n code\n pluralName\n }\n }\n }\n simpleTest {\n game(gameId: $gameId, preview: $preview, isEmbed: $isEmbed) {\n isFinished\n questionInfoAutoCloseTime\n questions {\n id\n text\n photo\n photoSource\n showVotes\n showPercentages\n votes\n formattedVotes\n showInfo\n info\n variants {\n id\n text\n votes\n percentage\n formattedVotes\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GameSimpleTestDataQuery=function(e,n){var i={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=a[n]||new Set,o=new Set,d=new Set;for(r.forEach(function(e){d.add(e)});d.size>0;){var s=d;d=new Set,s.forEach(function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach(function(e){d.add(e)}))})}return o.forEach(function(n){var a=t(e,n);a&&i.definitions.push(a)}),i}(n,"GameSimpleTestDataQuery")},10428:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GameSimpleTestSaveUserAnswerMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"answer"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SimpleTestUserAnswerInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"simpleTestMutations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"saveUserAnswer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"answer"},value:{kind:"Variable",name:{kind:"Name",value:"answer"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gameId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"questionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"questionTotalVotes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"questionTotalFormattedVotes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variants"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"votes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formattedVotes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"variantId"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:427}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){i(e,n)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){i(e,n)}),e.definitions&&e.definitions.forEach(function(e){i(e,n)})}n.loc.source={body:"mutation GameSimpleTestSaveUserAnswerMutation($answer: SimpleTestUserAnswerInput!) {\n simpleTestMutations {\n saveUserAnswer(answer: $answer) {\n gameId\n questionId\n questionTotalVotes\n questionTotalFormattedVotes\n variants {\n votes\n formattedVotes\n percentage\n variantId\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function t(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;i(e,n),a[e.name.value]=n}}),e.exports=n,e.exports.GameSimpleTestSaveUserAnswerMutation=function(e,n){var i={kind:e.kind,definitions:[t(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var r=a[n]||new Set,o=new Set,d=new Set;for(r.forEach(function(e){d.add(e)});d.size>0;){var s=d;
1d=new Set,s.forEach(function(e){o.has(e)||(o.add(e),(a[e]||new Set).forEach(function(e){d.add(e)}))})}return o.forEach(function(n){var a=t(e,n);a&&i.definitions.push(a)}),i}(n,"GameSimpleTestSaveUserAnswerMutation")},33089:function(e,n){"use strict";n.default={screenManagerLoading:"screenManagerLoading-FzH2t",pulseGameLoader:"pulseGameLoader-ln7q5"}},14318:function(e,n){"use strict";n.default={simpleTestGameBrandActionItemButton:"simpleTestGameBrandActionItemButton-U3VSJ"}},99026:function(e,n){"use strict";n.default={simpleTestGameBrandLogo:"simpleTestGameBrandLogo-psubs"}},1458:function(e,n){"use strict";n.default={simpleTestGameBrandingHeader:"simpleTestGameBrandingHeader-X8rsh",simpleTestGameBrandingFooter:"simpleTestGameBrandingFooter-wLql2",simpleTestGameBrandingFooterTicker:"simpleTestGameBrandingFooterTicker-EYsRF"}},75854:function(e,n){"use strict";n.default={gamePreview:"gamePreview-A28ej",gamePreviewInner:"gamePreviewInner-aw296",gamePreviewDescription:"gamePreviewDescription-mpebs",gamePreviewTitle:"gamePreviewTitle-eYFMo",gamePreviewInfo:"gamePreviewInfo-Jysf9",gamePreviewPlay:"gamePreviewPlay-CbCej"}},69707:function(e,n){"use strict";n.default={gameScreen:"gameScreen-cYv4n"}},88403:function(e,n){"use strict";n.default={questionCard:"questionCard-AYjUi",questionCardQuestionWrapper:"questionCardQuestionWrapper-x_hgR",questionCardQuestion:"questionCardQuestion-P_aII",questionCardQuestionPhotoSource:"questionCardQuestionPhotoSource-nDDuv",questionCardQuestionTitle:"questionCardQuestionTitle-cF016",questionCardVariants:"questionCardVariants-IErNp",questionCardVariant:"questionCardVariant-p7Og6",questionCardVariantButton:"questionCardVariantButton-W7gpZ",questionCardVariantButton__active:"questionCardVariantButton__active-Ndsch",questionCardVariantResult:"questionCardVariantResult-OqdXH",questionCardVariantResult__visible:"questionCardVariantResult__visible-Hp1PM"}},44127:function(e,n){"use strict";n.default={infoDialog:"infoDialog-eR3C3",infoDialog_embed:"infoDialog_embed-LmHTb",infoDialogHeader:"infoDialogHeader-lc8g9",infoDialogTimer:"infoDialogTimer-Pb5sc",infoDialogClose:"infoDialogClose-oqyE_",infoDialogInfo:"infoDialogInfo-u9cv9",infoDialogCenterWrapper:"infoDialogCenterWrapper-CyViM",infoDialogDescription:"infoDialogDescription-jPL0Z",infoDialogActions:"infoDialogActions-PdyRk",infoDialogBrandInfo:"infoDialogBrandInfo-C6mWN",infoDialogBrandAction:"infoDialogBrandAction-pphBo"}},17129:function(e,n){"use strict";n.default={questionCardHeaderWrapper:"questionCardHeaderWrapper-qxrdR",questionCardHeader:"questionCardHeader-W3DRj",questionCardHeaderLogo:"questionCardHeaderLogo-UByDe",questionCardHeaderNav:"questionCardHeaderNav-kNaXl",questionCardHeaderNavCounts:"questionCardHeaderNavCounts-EwKPK",questionCardHeaderNavButtons:"questionCardHeaderNavButtons-iv18Z"}},2917:function(e,n){"use strict";n.default={questionNavigator:"questionNavigator-dd922",questionNavigatorButton:"questionNavigatorButton-igieb",questionNavigator__widget:"questionNavigator__widget-SwSkm",questionNavigatorButton__disabled:"questionNavigatorButton__disabled-ugpqt"}}}]);
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.