diff --git a/extensions/reviewed/PlaygamaBridge.json b/extensions/reviewed/PlaygamaBridge.json index 20d143c38..c7cdd70ab 100644 --- a/extensions/reviewed/PlaygamaBridge.json +++ b/extensions/reviewed/PlaygamaBridge.json @@ -10,7 +10,7 @@ "name": "PlaygamaBridge", "previewIconUrl": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTcgMTU0LjM2MlY5Ni4wMDAxSDIyMy4xMjlWNDE2SDExN1YzNTkuMjU0SDE1OC40NFYxNTQuMzYySDExN1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0zOTUgMTU0LjM2MlY5NkgyODguODcxVjQxNkgzOTVWMzU5LjI1NEgzNTMuNTZWMTU0LjM2MkgzOTVaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K", "shortDescription": "One SDK for cross-platform publishing HTML5 games.", - "version": "1.29.0", + "version": "1.30.0", "description": [ "One SDK for cross-platform publishing HTML5 games. ", "Please refer to [Playgama documentation](https://wiki.playgama.com/playgama/sdk/engines/gdevelop) for detailed guidance." @@ -111,6 +111,10 @@ " rewardedState: null,", " prevRewardedState: null,", " rewardedStateStack: [],", + " advancedBannersState: null,", + " prevAdvancedBannersState: null,", + " advancedBannersStateStack: [],", + " isAdvancedBannersStateChanged: false,", " isAdBlockDetected: false,", " isBannerStateChanged: false,", " isInterstitialStateChanged: false,", @@ -226,6 +230,10 @@ " gdjs._playgamaBridgeExtension.rewardedStateStack.push(state);", " });", "", + " bridge.advertisement.on('advanced_banners_state_changed', state => {", + " gdjs._playgamaBridgeExtension.advancedBannersStateStack.push(state);", + " });", + "", " bridge.game.on('visibility_state_changed', state => {", " gdjs._playgamaBridgeExtension.visibilityStateStack.push(state)", " });", @@ -281,6 +289,16 @@ " gdjs._playgamaBridgeExtension.prevRewardedState = gdjs._playgamaBridgeExtension.rewardedState;", " }", "", + " if (gdjs._playgamaBridgeExtension.advancedBannersStateStack.length > 0) {", + " gdjs._playgamaBridgeExtension.advancedBannersState = gdjs._playgamaBridgeExtension.advancedBannersStateStack.shift();", + " }", + "", + " gdjs._playgamaBridgeExtension.isAdvancedBannersStateChanged = gdjs._playgamaBridgeExtension.advancedBannersState !== gdjs._playgamaBridgeExtension.prevAdvancedBannersState;", + "", + " if (gdjs._playgamaBridgeExtension.isAdvancedBannersStateChanged) {", + " gdjs._playgamaBridgeExtension.prevAdvancedBannersState = gdjs._playgamaBridgeExtension.advancedBannersState;", + " }", + "", " if (gdjs._playgamaBridgeExtension.isCheckAdBlockCompleted !== gdjs._playgamaBridgeExtension.nextIsCheckAdBlockCompleted) {", " gdjs._playgamaBridgeExtension.isCheckAdBlockCompleted = gdjs._playgamaBridgeExtension.nextIsCheckAdBlockCompleted", " }", @@ -552,7 +570,7 @@ "document.head.appendChild(bridgeScript)", "", "function evalLocalScript() {", - " (()=>{var t={166:(t,e,r)=>{\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function o(t,e){for(var r=0;rh});var l=new WeakMap,f=new WeakMap,p=new WeakMap;const h=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),a(this,l,{writable:!0,value:void 0}),a(this,f,{writable:!0,value:void 0}),a(this,p,{writable:!0,value:void 0}),s(this,l,new Promise((function(t,r){s(e,f,t),s(e,p,r)})))}var e,r,n;return e=t,(r=[{key:\"promise\",get:function(){return u(this,l)}},{key:\"resolve\",value:function(t){u(this,f).call(this,t)}},{key:\"reject\",value:function(t){u(this,p).call(this,t)}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),t}()},383:(t,e,r)=>{\"use strict\";r.d(e,{$H:()=>_,D1:()=>A,DQ:()=>v,Dz:()=>d,QG:()=>m,R2:()=>I,RH:()=>w,Tg:()=>k,X_:()=>g,ZP:()=>P,ZT:()=>f,dG:()=>y,dY:()=>b,eE:()=>D,fn:()=>R,kM:()=>h,my:()=>O,n_:()=>T,pb:()=>p,t0:()=>E});var n=r(843);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,n){var o=document.createElement(\"script\");o.src=t;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t){var a=document.createElement(\"script\");a.src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\",a.setAttribute(\"data-ad-client\",e),r?a.setAttribute(\"data-ad-channel\",r):n&&a.setAttribute(\"data-ad-host\",n),o&&a.setAttribute(\"data-admob-interstitial-slot\",o),i&&a.setAttribute(\"data-admob-rewarded-slot\",i),l&&a.setAttribute(\"data-adbreak-test\",\"on\"),a.setAttribute(\"data-ad-frequency-hint\",s),a.setAttribute(\"crossorigin\",\"anonymous\"),a.addEventListener(\"load\",(function(){window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push(u({preloadAdBreaks:\"on\",sound:\"on\",onReady:function(){}},f)),t((function(t){return window.adsbygoogle.push(t)}))})),document.head.appendChild(a)}))};function h(t){var e=document.createElement(\"div\");switch(e.id=n._g,e.style.position=\"absolute\",document.body.appendChild(e),t){case n.Cb.TOP:e.style.top=\"0px\",e.style.height=\"90px\",e.style.width=\"100%\";break;case n.Cb.BOTTOM:default:e.style.bottom=\"0px\",e.style.height=\"90px\",e.style.width=\"100%\"}return e}function d(){var t=document.createElement(\"div\");t.style.position=\"fixed\",t.style.top=\"0\",t.style.left=\"0\",t.style.width=\"100vw\",t.style.height=\"100vh\",t.style.backgroundColor=\"rgba(0, 0, 0, 0.5)\",t.style.display=\"flex\",t.style.justifyContent=\"center\",t.style.alignItems=\"center\",t.style.zIndex=\"9999\",t.id=\"loading-overlay\";var e=document.createElement(\"div\");return e.style.fontSize=\"24px\",e.style.color=\"#fff\",e.innerText=\"Loading...\",t.appendChild(e),t}function y(){if(!document.getElementById(\"bridge-orientation-overlay-styles\")){var t=document.createElement(\"style\");t.id=\"bridge-orientation-overlay-styles\",t.textContent=\"\\n #\".concat(n.Uw,\" {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 100vw;\\n height: 100vh;\\n background-color: rgba(0, 0, 0, 0.95);\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n align-items: center;\\n z-index: 9999999;\\n }\\n\\n #bridge-orientation-icon {\\n width: 80px;\\n height: 80px;\\n animation: bridge-rotate-phone 1.5s ease-in-out infinite;\\n }\\n\\n #bridge-orientation-message {\\n color: #fff;\\n font-size: 18px;\\n font-family: Arial, sans-serif;\\n margin-top: 20px;\\n text-align: center;\\n }\\n\\n @keyframes bridge-rotate-phone {\\n 0%, 100% { transform: rotate(0deg); }\\n 50% { transform: rotate(90deg); }\\n }\\n \"),document.head.appendChild(t)}var e=document.createElement(\"div\");e.id=n.Uw;var r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");r.setAttribute(\"id\",\"bridge-orientation-icon\"),r.setAttribute(\"viewBox\",\"0 0 24 24\"),r.setAttribute(\"fill\",\"none\"),r.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),r.innerHTML='\\n \\n \\n ';var o=document.createElement(\"div\");return o.id=\"bridge-orientation-message\",o.innerText=\"Please rotate your device\",e.appendChild(r),e.appendChild(o),e}function m(t){if(!document.getElementById(\"bridge-info-popup-styles\")){var e=document.createElement(\"style\");e.id=\"bridge-info-popup-styles\",e.textContent=\"\\n #bridge-info-popup-overlay {\\n position: fixed;\\n inset: 0;\\n display: none;\\n align-items: center;\\n justify-content: center;\\n padding: 18px;\\n background: rgba(0, 0, 0, 0.24);\\n z-index: 9999;\\n }\\n\\n #bridge-info-popup {\\n width: min(92vw, 320px);\\n padding: 24px 20px 20px;\\n border-radius: 26px;\\n background: #ffffff;\\n color: #24304d;\\n text-align: center;\\n box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);\\n font-family: Inter, Arial, sans-serif;\\n }\\n\\n #bridge-info-popup-emoji {\\n font-size: 42px;\\n margin-bottom: 10px;\\n line-height: 1;\\n }\\n\\n #bridge-info-popup-title {\\n margin: 0 0 10px;\\n font-size: 24px;\\n line-height: 1.1;\\n }\\n\\n #bridge-info-popup-message {\\n margin: 0 0 18px;\\n font-size: 15px;\\n line-height: 1.45;\\n color: #66708b;\\n }\\n\\n #bridge-info-popup-button {\\n min-width: 140px;\\n height: 46px;\\n padding: 0 24px;\\n border: 0;\\n border-radius: 999px;\\n font-weight: 700;\\n font-size: 15px;\\n color: #ffffff;\\n background: linear-gradient(180deg, #5f8cff, #4c71e6);\\n box-shadow: 0 8px 20px rgba(76, 113, 230, 0.32);\\n cursor: pointer;\\n font-family: Inter, Arial, sans-serif;\\n }\\n\\n #bridge-info-popup-button:active {\\n transform: translateY(1px);\\n }\",document.head.appendChild(e)}var r=document.getElementById(\"bridge-info-popup-overlay\");r||((r=document.createElement(\"div\")).id=\"bridge-info-popup-overlay\",document.body.appendChild(r));var n=document.getElementById(\"bridge-info-popup\");n||((n=document.createElement(\"div\")).id=\"bridge-info-popup\",r.appendChild(n)),n.innerHTML=\"\";var o=document.createElement(\"div\");o.id=\"bridge-info-popup-emoji\",o.textContent=\"🎬\",n.appendChild(o);var i=document.createElement(\"h3\");i.id=\"bridge-info-popup-title\",i.textContent=t,n.appendChild(i);var a=document.createElement(\"button\");return a.id=\"bridge-info-popup-button\",a.textContent=\"Continue\",n.appendChild(a),new Promise((function(t){a.onclick=function(){r.style.display=\"none\",t()},r.style.display=\"flex\"}))}function v(){if(!document.getElementById(\"bridge-ad-failure-popup-fonts\")){var t=document.createElement(\"link\");t.rel=\"preconnect\",t.href=\"https://fonts.googleapis.com\",document.head.appendChild(t);var e=document.createElement(\"link\");e.rel=\"preconnect\",e.href=\"https://fonts.gstatic.com\",e.crossOrigin=\"anonymous\",document.head.appendChild(e);var r=document.createElement(\"link\");r.id=\"bridge-ad-failure-popup-fonts\",r.rel=\"stylesheet\",r.href=\"https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap\",document.head.appendChild(r)}if(!document.getElementById(\"bridge-ad-failure-popup-styles\")){var n=document.createElement(\"style\");n.id=\"bridge-ad-failure-popup-styles\",n.textContent=\"\\n #bridge-ad-failure-popup {\\n position: fixed;\\n top: 0;\\n left: 0;\\n height: 100%;\\n width: 100%;\\n box-sizing: border-box;\\n padding: 24px 16px;\\n background: #682eb2;\\n display: none;\\n grid-template-columns: 1fr 1fr;\\n grid-template-rows: 32px 1fr;\\n z-index: 9999999;\\n font-family: 'Cal Sans', -apple-system, BlinkMacSystemFont, sans-serif;\\n color: #fff;\\n cursor: pointer;\\n }\\n\\n #bridge-ad-failure-popup-logo {\\n height: 32px;\\n }\\n\\n #bridge-ad-failure-popup-close {\\n all: unset;\\n cursor: pointer;\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n width: 32px;\\n height: 32px;\\n background: #fff;\\n border-radius: 50%;\\n justify-self: end;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n grid-column: span 2;\\n font-size: 21px;\\n font-style: normal;\\n font-weight: 400;\\n line-height: 110%;\\n align-self: end;\\n margin: 0;\\n }\\n\\n @media (min-width: 320px) {\\n #bridge-ad-failure-popup {\\n padding: 24px;\\n grid-template-rows: 40px 1fr;\\n }\\n\\n #bridge-ad-failure-popup-logo {\\n height: 40px;\\n }\\n\\n #bridge-ad-failure-popup-close {\\n width: 40px;\\n height: 40px;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n font-size: 25px;\\n align-self: center;\\n }\\n }\\n\\n @media (orientation: landscape) {\\n #bridge-ad-failure-popup {\\n gap: 40px;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n width: 60%;\\n align-self: start;\\n }\\n }\\n\\n @media (orientation: landscape) and (min-width: 800px) {\\n #bridge-ad-failure-popup {\\n gap: 80px;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n width: 50%;\\n font-size: 33px;\\n }\\n }\\n \",document.head.appendChild(n)}var o=document.getElementById(\"bridge-ad-failure-popup\");if(!o){(o=document.createElement(\"div\")).id=\"bridge-ad-failure-popup\";var i=document.createElement(\"div\");i.innerHTML='\\n \\n \\n \\n \\n ',o.appendChild(i);var a=document.createElement(\"button\");a.id=\"bridge-ad-failure-popup-close\",a.innerHTML='\\n \\n \\n \\n ',o.appendChild(a);var s=document.createElement(\"p\");s.id=\"bridge-ad-failure-popup-text\",o.appendChild(s),document.body.appendChild(o)}var u=document.getElementById(\"bridge-ad-failure-popup-close\");return new Promise((function(t){var e=function(){o.style.display=\"none\",t()};u.onclick=e,o.onclick=e;var r=[\"If you see this message, no Ad was returned for the Ad request.

Please ask the developer to check the Ad setup.\",\"This is placeholder for the Ad. Playgama helps games reach players worldwide.\"];document.getElementById(\"bridge-ad-failure-popup-text\").innerHTML=r[Math.floor(Math.random()*r.length)],o.style.display=\"grid\"}))}function _(t){var e=document.createElement(\"style\");e.textContent=\"\\n .fullscreen {\\n background: #242424;\\n width: 100vw;\\n height: 100vh;\\n position: absolute;\\n top: 0px;\\n left: 0px;\\n }\\n\\n #loading-overlay {\\n font-size: 20px;\\n z-index: 1;\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n align-items: center;\\n }\\n\\n #logo {\\n width: 10%;\\n max-width: 300px;\\n min-width: 120px;\\n overflow: visible;\\n }\\n\\n .fill-rect {\\n transform: translateY(100%);\\n transition: transform 0.3s ease-out;\\n }\\n\\n #gradientMover {\\n display: none;\\n }\\n\\n .gradient-mover {\\n animation: moveGradient 0.4s linear;\\n }\\n\\n @keyframes moveGradient {\\n 0% { transform: translateX(0); }\\n 100% { transform: translateX(-250%); }\\n }\\n\\n .logo-fade-out {\\n animation: logoFadeOut 1s linear;\\n }\\n\\n .logo-fade-out path {\\n fill: white;\\n stroke: white;\\n }\\n\\n @keyframes logoFadeOut {\\n 0% { opacity: 1; }\\n 50% { opacity: 0; }\\n 100% { opacity: 0; }\\n }\\n \",document.head.appendChild(e);var r=document.createElement(\"div\");r.id=\"loading-overlay\",r.className=\"fullscreen\",document.body.appendChild(r);var n=!1===t?{viewBox:\"0 0 633 819\",paths:[\"M632 1V632H1V1H632ZM350 125.586V507.414L380.586 538H546V451H478.599L478.308 451.278L454.598 474H443.406L450.944 452.328L451 452.169V187.459L457.369 182H546V95H380.586L350 125.586ZM283 125.586L252.414 95H87V182H175.631L182 187.459V445.54L175.631 451H87V538H252.414L283 507.414V125.586Z\",\"M633 687V660H548V687H560V791H548V819H633V792H601L592 801H587L590 792V752H627V725H590V687H633Z\",\"M533 718V675L518 660H450L435 675V802L450 819H518L533 804V734H482V761H503V788L499 792H476L467 801H462L465 792V691L469 687H499L503 691V718H533Z\",\"M402 660H310V687H322V792H310V819H402L417 804V675L402 660ZM387 788L383 792H363L354 801H349L352 792V687H383L387 691V788Z\",\"M295 687V660H239V687H251V792H239V819H295V792H283V687H295Z\",\"M215 791L200 760H209L224 745V675L209 660H121V687H132V792H121V819H162V760H166L193 819H227V791H215ZM194 729L190 733H173L164 742H159L162 733V687H190L194 691V729Z\",\"M106 724V675L91 660H0V687H12V792H0V819H91L106 804V749L89 744V728L106 724ZM73 788L69 792H53L44 801H39L42 792V752H73V788ZM73 725H53L44 734H39L42 725V687H69L73 691V725Z\"],fillColor:\"#aa76ff\",strokeColor:\"#aa76ff\",gradientStops:[{offset:\"0.235577\",color:\"#aa76ff\"},{offset:\"0.240685\",color:\"white\"},{offset:\"0.659749\",color:\"#aa76ff\"}]}:{viewBox:\"0 0 633 918\",paths:[\"M633 687V660H548V687H560V791H548V819H633V792H601L592 801H587L590 792V752H627V725H590V687H633Z\",\"M533 718V675L518 660H450L435 675V802L450 819H518L533 804V734H482V761H503V788L499 792H476L467 801H462L465 792V691L469 687H499L503 691V718H533Z\",\"M612 847H564V894H579V861H591V894H606V861H612C615 861 617 864 617 867V894H633V868C633 856 623 847 612 847Z\",\"M533 846C519 846 508 857 508 870C508 884 519 895 533 895C546 895 557 884 557 870C557 857 546 846 533 846ZM533 880C528 880 524 875 524 870C524 865 528 861 533 861C538 861 542 865 542 870C542 875 538 880 533 880Z\",\"M402 660H310V687H322V792H310V819H402L417 804V675L402 660ZM387 788L383 792H363L354 801H349L352 792V687H383L387 691V788Z\",\"M484 861H502V847H482C469 847 459 858 459 871C459 884 469 894 482 894H502V880H484C478 880 474 876 474 871C474 865 478 861 484 861Z\",\"M444 875C438 875 434 879 434 885C434 890 438 895 444 895C449 895 454 890 454 885C454 879 449 875 444 875Z\",\"M402 847C389 847 378 857 378 870C378 883 389 894 402 894H425V847H402ZM410 880H403C398 880 394 876 394 870C394 865 398 861 403 861H410V880Z\",\"M295 687V660H239V687H251V792H239V819H295V792H283V687H295Z\",\"M350 847H303V894H318V861H329V894H345V861H350C353 861 356 864 356 867V894H371V868C371 856 362 847 350 847Z\",\"M215 791L200 760H209L224 745V675L209 660H121V687H132V792H121V819H162V760H166L193 819H227V791H215ZM194 729L190 733H173L164 742H159L162 733V687H190L194 691V729Z\",\"M269 847C256 847 247 857 247 870C247 883 256 894 269 894H293V847H269ZM277 880H271C265 880 261 876 261 870C261 865 265 861 271 861H277V880Z\",\"M214 847C201 847 190 857 190 870C190 883 201 894 214 894H224V895C224 900 220 903 215 903H195V918H216C229 918 239 908 239 895V847H214ZM224 880H215C210 880 206 876 206 870C206 865 210 861 215 861H224V880Z\",\"M106 724V675L91 660H0V687H12V792H0V819H91L106 804V749L89 744V728L106 724ZM73 788L69 792H53L44 801H39L42 792V752H73V788ZM73 725H53L44 734H39L42 725V687H69L73 691V725Z\",\"M167 847V880H153V847H137V894H167V895C167 900 163 904 157 904H137V918H158C172 918 182 909 182 896V847H167Z\",\"M104 847C91 847 80 857 80 870C80 883 91 894 104 894H127V847H104ZM112 880H105C100 880 96 876 96 870C96 865 100 861 105 861H112V880Z\",\"M56 833V894H72V833H56Z\",\"M25 847H2V908H17V894H25C38 894 49 883 49 870C49 857 38 847 25 847ZM24 880H17V861H24C29 861 33 865 33 870C33 876 29 880 24 880Z\",\"M0 0V633H633V0H0ZM451 452L443 475H456L480 452H546V537H382L352 507V126L382 96H546V181H458L451 187V452ZM252 96L282 126V507L252 537H88V452H176L183 446V187L176 181H88V96H252Z\"],fillColor:\"#aa76ff\",strokeColor:\"#aa76ff\",gradientStops:[{offset:\"0.235577\",color:\"#aa76ff\"},{offset:\"0.240685\",color:\"white\"},{offset:\"0.659749\",color:\"#aa76ff\"}]};n.gradientWidthMultiplier=4;var o=i(n.viewBox.split(/[ ,]+/),4),a=o[2],s=o[3],u=Number(a),c=Number(s),l=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");l.setAttribute(\"id\",\"logo\"),l.setAttribute(\"viewBox\",n.viewBox),l.setAttribute(\"fill\",\"none\"),l.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\");var f=document.createElementNS(l.namespaceURI,\"defs\"),p=document.createElementNS(l.namespaceURI,\"mask\");p.setAttribute(\"id\",\"logo-mask\");var h=document.createElementNS(l.namespaceURI,\"rect\");h.setAttribute(\"x\",\"0\"),h.setAttribute(\"y\",\"0\"),h.setAttribute(\"width\",\"100%\"),h.setAttribute(\"height\",\"100%\"),h.setAttribute(\"fill\",\"black\"),p.appendChild(h),n.paths.forEach((function(t){var e=document.createElementNS(l.namespaceURI,\"path\");e.setAttribute(\"d\",t),e.setAttribute(\"fill\",\"white\"),p.appendChild(e)})),f.appendChild(p);var d=document.createElementNS(l.namespaceURI,\"linearGradient\");d.setAttribute(\"id\",\"shineGradient\"),d.setAttribute(\"x1\",\"1233\"),d.setAttribute(\"y1\",\"0\"),d.setAttribute(\"x2\",\"1866\"),d.setAttribute(\"y2\",\"633\"),d.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),n.gradientStops.forEach((function(t){var e=t.offset,r=t.color,n=document.createElementNS(l.namespaceURI,\"stop\");n.setAttribute(\"offset\",e),n.setAttribute(\"stop-color\",r),d.appendChild(n)})),f.appendChild(d),l.appendChild(f);var y=document.createElementNS(l.namespaceURI,\"g\");y.setAttribute(\"mask\",\"url(#logo-mask)\");var m=document.createElementNS(l.namespaceURI,\"rect\");m.setAttribute(\"id\",\"gradientMover\"),m.setAttribute(\"x\",\"0\"),m.setAttribute(\"y\",\"0\"),m.setAttribute(\"width\",String(u*n.gradientWidthMultiplier)),m.setAttribute(\"height\",String(c)),m.setAttribute(\"fill\",\"url(#shineGradient)\"),m.style.transform=\"translateX(0)\",y.appendChild(m),l.appendChild(y);var v=document.createElementNS(l.namespaceURI,\"g\");v.setAttribute(\"mask\",\"url(#logo-mask)\");var _=document.createElementNS(l.namespaceURI,\"rect\");_.setAttribute(\"id\",\"fillRect\"),_.setAttribute(\"class\",\"fill-rect\"),_.setAttribute(\"x\",\"0\"),_.setAttribute(\"y\",\"0\"),_.setAttribute(\"width\",\"100%\"),_.setAttribute(\"height\",String(c)),_.setAttribute(\"fill\",n.fillColor),v.appendChild(_),l.appendChild(v),n.paths.forEach((function(t){var e=document.createElementNS(l.namespaceURI,\"path\");e.setAttribute(\"d\",t),e.setAttribute(\"stroke\",n.strokeColor),e.setAttribute(\"stroke-width\",\"3\"),l.appendChild(e)})),r.appendChild(l)}var g=function(){for(var t=arguments.length,e=new Array(t),r=0;r2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(t))return t.reduce((function(t,n,o){if(t[o]=S(e,n),r)try{t[o]=JSON.parse(t[o])}catch(t){}return t}),new Array(t.length));var n=S(e,t);if(r&&\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){}return n}function w(t,e){for(var r=u({},t),n=Object.keys(e),o=0;oe.indexOf(\".\")?parseFloat(e.replace(/\\./g,\"\").replace(\",\",\".\")):e.includes(\",\")&&-1!==e.lastIndexOf(\",\")&&e.lastIndexOf(\",\")===e.length-4?parseInt(e.replace(/,/,\"\"),10):e.includes(\",\")&&-1!==e.lastIndexOf(\",\")&&e.lastIndexOf(\",\")!==e.length-3?parseFloat(e.replace(\",\",\".\")):e.includes(\".\")&&-1!==e.lastIndexOf(\".\")&&e.lastIndexOf(\".\")===e.length-4?parseInt(e.replace(/\\./,\"\"),10):e.includes(\".\")?parseFloat(e):parseInt(e,10)}function A(){var t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",e=Array.from({length:8},(function(){return t.charAt(Math.floor(62*Math.random()))})).join(\"\"),r=Date.now().toString(36);return\"\".concat(e).concat(r)}function O(){var t,e=\"bridge_player_guest_id\";try{t=localStorage.getItem(e)}catch(t){}if(!t){t=A();try{localStorage.setItem(e,t)}catch(t){}}return{id:t,name:\"Guest \".concat(t)}}function T(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"*\";window.parent&&window.parent[l](t,e)}function D(t){window.system&&window.system[l](t)}function k(t){window.chrome&&window.chrome.webview&&\"function\"==typeof window.chrome.webview.postMessage&&window.chrome.webview[l](t)}function I(){var t=document.createElement(\"div\");t.style.cssText=\"position:fixed;top:env(safe-area-inset-top);bottom:env(safe-area-inset-bottom);left:env(safe-area-inset-left);right:env(safe-area-inset-right);pointer-events:none;visibility:hidden;\",document.body.appendChild(t);var e=t.getBoundingClientRect(),r={top:e.top,bottom:window.innerHeight-e.bottom,left:e.left,right:window.innerWidth-e.right};return t.remove(),r}function R(){var t=document.createElement(\"style\");t.id=\"bridge-safe-area-styles\",t.textContent=\"\\n html, body {\\n height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));\\n padding-top: env(safe-area-inset-top);\\n padding-bottom: env(safe-area-inset-bottom);\\n box-sizing: border-box;\\n }\\n \",document.head.appendChild(t)}},843:(t,e,r)=>{\"use strict\";r.d(e,{AR:()=>v,Cb:()=>p,Dt:()=>g,Kk:()=>f,Lb:()=>i,Lh:()=>m,Mn:()=>S,T2:()=>o,Uw:()=>_,W1:()=>s,WA:()=>c,YU:()=>u,Z:()=>b,_g:()=>h,b3:()=>l,b9:()=>n,bD:()=>d,me:()=>y,oF:()=>a,pn:()=>E});var n=\"https://playgama.com/api/bridge/v1\",o=\"https://playgama.com/api/v1/timestamp/now\",i={VK:\"vk\",OK:\"ok\",YANDEX:\"yandex\",CRAZY_GAMES:\"crazy_games\",ABSOLUTE_GAMES:\"absolute_games\",GAME_DISTRIBUTION:\"game_distribution\",PLAYGAMA:\"playgama\",PLAYDECK:\"playdeck\",TELEGRAM:\"telegram\",Y8:\"y8\",LAGGED:\"lagged\",FACEBOOK:\"facebook\",POKI:\"poki\",MOCK:\"mock\",QA_TOOL:\"qa_tool\",MSN:\"msn\",MICROSOFT_STORE:\"microsoft_store\",HUAWEI:\"huawei\",BITQUEST:\"bitquest\",GAMEPUSH:\"gamepush\",DISCORD:\"discord\",JIO_GAMES:\"jio_games\",YOUTUBE:\"youtube\",PORTAL:\"portal\",REDDIT:\"reddit\",XIAOMI:\"xiaomi\",TIKTOK:\"tiktok\",DLIGHTEK:\"dlightek\",GAMESNACKS:\"gamesnacks\"},a={CORE:\"core\",PLATFORM:\"platform\",PLAYER:\"player\",GAME:\"game\",STORAGE:\"storage\",ADVERTISEMENT:\"advertisement\",SOCIAL:\"social\",DEVICE:\"device\",LEADERBOARDS:\"leaderboards\",PAYMENTS:\"payments\",REMOTE_CONFIG:\"remote_config\",CLIPBOARD:\"clipboard\",ACHIEVEMENTS:\"achievements\",ANALYTICS:\"analytics\"},s={INTERSTITIAL_STATE_CHANGED:\"interstitial_state_changed\",REWARDED_STATE_CHANGED:\"rewarded_state_changed\",BANNER_STATE_CHANGED:\"banner_state_changed\",VISIBILITY_STATE_CHANGED:\"visibility_state_changed\",AUDIO_STATE_CHANGED:\"audio_state_changed\",PAUSE_STATE_CHANGED:\"pause_state_changed\",ORIENTATION_STATE_CHANGED:\"orientation_state_changed\"},u={VISIBLE:\"visible\",HIDDEN:\"hidden\"},c={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\"},l={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\",REWARDED:\"rewarded\"},f={LOADING:\"loading\",SHOWN:\"shown\",HIDDEN:\"hidden\",FAILED:\"failed\"},p={TOP:\"top\",BOTTOM:\"bottom\"},h=\"banner-container\",d={LOCAL_STORAGE:\"local_storage\",PLATFORM_INTERNAL:\"platform_internal\"},y={DESKTOP:\"desktop\",MOBILE:\"mobile\",TABLET:\"tablet\",TV:\"tv\"},m={WINDOWS:\"windows\",MACOS:\"macos\",LINUX:\"linux\",ANDROID:\"android\",IOS:\"ios\",OTHER:\"other\"},v={PORTRAIT:\"portrait\",LANDSCAPE:\"landscape\"},_=\"bridge-orientation-overlay\",g={GAME_READY:\"game_ready\",LEVEL_STARTED:\"level_started\",LEVEL_COMPLETED:\"level_completed\",LEVEL_FAILED:\"level_failed\",LEVEL_PAUSED:\"level_paused\",LEVEL_RESUMED:\"level_resumed\",IN_GAME_LOADING_STARTED:\"in_game_loading_started\",IN_GAME_LOADING_STOPPED:\"in_game_loading_stopped\",GAMEPLAY_STARTED:\"gameplay_started\",GAMEPLAY_STOPPED:\"gameplay_stopped\",PLAYER_GOT_ACHIEVEMENT:\"player_got_achievement\"},b={NOT_AVAILABLE:\"not_available\",IN_GAME:\"in_game\",NATIVE:\"native\",NATIVE_POPUP:\"native_popup\"},S={INITIALIZE:\"initialize\",AUTHORIZE_PLAYER:\"authorize_player\",SHARE:\"share\",INVITE_FRIENDS:\"invite_friends\",JOIN_COMMUNITY:\"join_community\",CREATE_POST:\"create_post\",ADD_TO_HOME_SCREEN:\"add_to_home_screen\",ADD_TO_FAVORITES:\"add_to_favorites\",RATE:\"rate\",LEADERBOARDS_SET_SCORE:\"leaderboards_set_score\",LEADERBOARDS_GET_ENTRIES:\"leaderboards_get_entries\",LEADERBOARDS_SHOW_NATIVE_POPUP:\"leaderboards_show_native_popup\",GET_PURCHASES:\"get_purchases\",GET_CATALOG:\"get_catalog\",PURCHASE:\"purchase\",CONSUME_PURCHASE:\"consume_purchase\",GET_REMOTE_CONFIG:\"get_remote_config\",GET_STORAGE_DATA:\"get_storage_data\",SET_STORAGE_DATA:\"set_storage_data\",DELETE_STORAGE_DATA:\"delete_storage_data\",CLIPBOARD_WRITE:\"clipboard_write\",ADBLOCK_DETECT:\"adblock_detect\",SET_INTERSTITIAL_STATE:\"set_interstitial_state\",SET_REWARDED_STATE:\"set_rewarded_state\",SHOW_INTERSTITIAL:\"show_interstitial\",SHOW_REWARDED:\"show_rewarded\"},E={SDK_NOT_INITIALIZED:{message:\"Before using the SDK you must initialize it\"},STORAGE_NOT_SUPPORTED:{message:\"Storage not supported\"},STORAGE_NOT_AVAILABLE:{message:\"Storage not available\"},GAME_PARAMS_NOT_FOUND:{message:\"Game params are not found\"},INVITE_FRIENDS_MESSAGE_LENGTH_ERROR:{message:\"Message is too long\"}}},784:(t,e,r)=>{\"use strict\";r.d(e,{Z:()=>St});var n=r(843);const o={i8:\"1.29.0\"};var i=r(383),a=r(23);function s(t){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},s(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,a,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,a)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==s(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,u)}),(function(t){r(\"throw\",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r(\"throw\",t,a,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function c(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{};return{event_name:t,timestamp:new Date(Date.now()+w(this,F)).toISOString(),data:e}}function at(){var t,e;return{bridge_version:o.i8,platform_id:this._platformBridge.platformId,game_id:w(this,L),session_id:w(this,M),player_id:this._platformBridge.playerId,player_guest_id:w(this,j),device_type:this._platformBridge.deviceType,device_os:this._platformBridge.deviceOs,clid:null!==(t=null===(e=this._platformBridge.additionalData)||void 0===e?void 0:e.clid)&&void 0!==t?t:\"\"}}function st(t){return ut.apply(this,arguments)}function ut(){return(ut=h(u().mark((function t(e){var r,n,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=JSON.stringify(e),n=new Blob([r]).stream(),o=n.pipeThrough(new CompressionStream(\"gzip\")),t.abrupt(\"return\",new Response(o).blob());case 4:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function ct(){return this._platformBridge.platformId===n.Lb.DISCORD?D:T}function lt(t){return{meta:P(this,V,at).call(this),events:t}}function ft(){return pt.apply(this,arguments)}function pt(){return(pt=h(u().mark((function t(){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==w(this,I).length&&!w(this,C)){t.next=2;break}return t.abrupt(\"return\");case 2:return e=l(w(this,I)),A(this,I,[]),t.next=6,P(this,J,ht).call(this,P(this,Y,lt).call(this,e));case 6:t.sent||w(this,C)||A(this,I,[].concat(l(e),l(w(this,I))));case 8:case\"end\":return t.stop()}}),t,this)})))).apply(this,arguments)}function ht(t){return dt.apply(this,arguments)}function dt(){return(dt=h(u().mark((function t(e){var r,n,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r={\"Content-Type\":\"application/json\"},!w(this,B)){t.next=16;break}return t.prev=3,r[\"Content-Encoding\"]=\"gzip\",t.next=7,P(this,Z,st).call(this,e);case 7:n=t.sent,t.next=14;break;case 10:t.prev=10,t.t0=t.catch(3),delete r[\"Content-Encoding\"],n=JSON.stringify(e);case 14:t.next=17;break;case 16:n=JSON.stringify(e);case 17:return t.next=19,fetch(P(this,z,ct).call(this),{method:\"POST\",headers:r,body:n});case 19:if((o=t.sent).ok){t.next=22;break}throw new Error(\"Network response was not ok: \".concat(o.status));case 22:return A(this,N,0),t.abrupt(\"return\",!0);case 26:return t.prev=26,t.t1=t.catch(0),A(this,N,w(this,N)+1),w(this,N)>=k&&P(this,Q,vt).call(this),t.abrupt(\"return\",!1);case 31:case\"end\":return t.stop()}}),t,this,[[0,26],[3,10]])})))).apply(this,arguments)}function yt(){if(0!==w(this,I).length&&!w(this,C)){var t=l(w(this,I));A(this,I,[]);var e=P(this,z,ct).call(this),r=P(this,Y,lt).call(this,t),n=JSON.stringify(r);if(navigator.sendBeacon){var o=new Blob([n],{type:\"application/json\"});navigator.sendBeacon(e,o)}}}function mt(){var t=this;A(this,G,(function(){P(t,q,yt).call(t)})),A(this,x,(function(){\"hidden\"===document.visibilityState&&P(t,q,yt).call(t)})),document.addEventListener(\"visibilitychange\",w(this,x)),window.addEventListener(\"pagehide\",w(this,G))}function vt(){A(this,C,!0),A(this,I,[]),w(this,R)&&(clearInterval(w(this,R)),A(this,R,null)),w(this,x)&&(document.removeEventListener(\"visibilitychange\",w(this,x)),A(this,x,null)),w(this,G)&&(window.removeEventListener(\"pagehide\",w(this,G)),A(this,G,null))}function _t(){var t=this._platformBridge,e=t.options,r=t.platformId,o=c(c(c(c(c(c(c({},n.Lb.GAME_DISTRIBUTION,\"gameId\"),n.Lb.Y8,\"gameId\"),n.Lb.MSN,\"gameId\"),n.Lb.HUAWEI,\"appId\"),n.Lb.DISCORD,\"appId\"),n.Lb.GAMEPUSH,\"projectId\"),n.Lb.MICROSOFT_STORE,\"gameId\")[r];return(o?null==e?void 0:e[o]:null)||P(this,tt,gt).call(this,window.location.href)}function gt(t){try{var e=new URL(t),r=e.pathname.split(\"/\").filter(Boolean),o=this._platformBridge.platformId,i=c(c(c({},n.Lb.YANDEX,{pathKey:\"app\"}),n.Lb.LAGGED,{pathKey:\"g\"}),n.Lb.CRAZY_GAMES,{pathKey:\"game\"})[o];if(i){var a=r.indexOf(i.pathKey),s=-1!==a?r[a+1]:null;if(s)return s}if(o===n.Lb.PLAYGAMA){if(e.searchParams.get(\"game_id\"))return e.searchParams.get(\"game_id\");var u=e.hostname.match(/^([a-z0-9-]+)\\.games\\.playgama\\.net$/i);if(u)return u[1]}}catch(t){return null}return null}function bt(){var t=this;w(this,R)||A(this,R,setInterval((function(){t.send(\"\".concat(n.oF.CORE,\"_ping\")),P(t,K,ft).call(t)}),15e3))}const St=new(function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&m(t,e)}(s,t);var e,r,o,a=v(s);function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s),b(_(t=a.call(this)),et),b(_(t),tt),b(_(t),$),b(_(t),Q),b(_(t),X),b(_(t),q),b(_(t),J),b(_(t),K),b(_(t),Y),b(_(t),z),b(_(t),Z),b(_(t),V),b(_(t),W),b(_(t),U),b(_(t),H),S(_(t),I,{writable:!0,value:[]}),S(_(t),R,{writable:!0,value:null}),S(_(t),L,{writable:!0,value:null}),S(_(t),j,{writable:!0,value:null}),S(_(t),M,{writable:!0,value:null}),S(_(t),N,{writable:!0,value:0}),S(_(t),C,{writable:!0,value:!1}),S(_(t),x,{writable:!0,value:null}),S(_(t),G,{writable:!0,value:null}),S(_(t),F,{writable:!0,value:0}),S(_(t),B,{writable:!0,value:\"undefined\"!=typeof CompressionStream}),A(_(t),M,P(_(t),H,rt).call(_(t))),t}return e=s,r=[{key:\"initialize\",value:function(t){var e;this._platformBridge=t,!1===(null===(e=this._platformBridge.options)||void 0===e?void 0:e.sendAnalyticsEvents)&&A(this,C,!0);var r=window.location.href;return(r.startsWith(\"file://\")||r.includes(\"localhost\")||r.includes(\"127.0.0.1\"))&&A(this,C,!0),P(this,U,nt).call(this),A(this,L,P(this,$,_t).call(this)),A(this,j,(0,i.my)().id),this.send(\"\".concat(n.oF.CORE,\"_initialization_started\")),P(this,et,bt).call(this),P(this,X,mt).call(this),this}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!w(this,C)){var r=P(this,W,it).call(this,t,e);w(this,I).push(r)}}}],r&&d(e.prototype,r),o&&d(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(a.Z))},66:(t,e,r)=>{\"use strict\";r.d(e,{ZP:()=>V});var n=r(383),o=r(23);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},s=a.iterator||\"@@iterator\",c=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,s)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,a,s,u){var c=h(t[o],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==i(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var a;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function c(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function l(t,e){for(var r=0;r1&&void 0!==i[1]?i[1]:{},b(this,j,e||S(this,I)),b(this,F,r),t.prev=3,b(this,R,P),t.next=7,fetch(S(this,j));case 7:if((n=t.sent).ok){t.next=10;break}throw new Error(\"Failed to load bridge config: \".concat(S(this,j),\" \").concat(n.status,\" (\").concat(n.statusText,\")\"));case 10:return t.next=12,n.text();case 12:o=t.sent,b(this,M,o),b(this,R,A),g(this,B,U).call(this,o),t.next=24;break;case 18:t.prev=18,t.t0=t.catch(3),g(this,H,W).call(this,S(this,F)),b(this,R,O),b(this,C,t.t0.message||String(t.t0)),console.error(t.t0);case 24:case\"end\":return t.stop()}}),t,this,[[3,18]])})),a=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function a(t){c(o,r,n,a,s,\"next\",t)}function s(t){c(o,r,n,a,s,\"throw\",t)}a(void 0)}))},function(t){return a.apply(this,arguments)})},{key:\"getPlatformOptions\",value:function(t){var e,r=null===(e=this.options.platforms)||void 0===e?void 0:e[t];return r?(0,n.RH)(this.options,r):this.options}}],r&&l(e.prototype,r),o&&l(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),f}(o.Z))},23:(t,e,r)=>{\"use strict\";function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function o(t,e){for(var r=0;rs});const s=i((function t(e){var r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),r=this,o=void 0,(n=a(n=\"_platformBridge\"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this._platformBridge=e}))},861:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>b});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{\"use strict\";r.r(e),r.d(e,{default:()=>P});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function f(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,s,\"next\",t)}function s(t){f(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function h(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>W});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{\"use strict\";r.r(e),r.d(e,{default:()=>v});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{\"use strict\";r.r(e),r.d(e,{default:()=>P});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>C});var n=r(640),o=r(383),i=r(843);function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},s=i.iterator||\"@@iterator\",u=i.asyncIterator||\"@@asyncIterator\",c=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,s)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,s){var u=h(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==l(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function s(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedInterstitialPromises[t])return this._preloadedInterstitialPromises[t];var r=null;return this._preloadedInterstitialPromises[t]=this._platformSdk.getInterstitialAdAsync(t).then((function(t){return r=t,t.loadAsync()})).then((function(){return r})).catch((function(){return e._preloadedInterstitialPromises[t]=null,Promise.reject()})),this._preloadedInterstitialPromises[t]}function j(t){var e=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedRewardedPromises[t])return this._preloadedRewardedPromises[t];var r=null;return this._preloadedRewardedPromises[t]=this._platformSdk.getRewardedVideoAsync(t).then((function(t){return r=t,t.loadAsync()})).then((function(){return r})).catch((function(){return e._preloadedRewardedPromises[t]=null,Promise.reject()})),this._preloadedRewardedPromises[t]}function M(){return N.apply(this,arguments)}function N(){var t;return t=a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._platformSdk.player.isSubscribedBotAsync();case 3:if(!t.sent){t.next=6;break}return t.abrupt(\"return\",Promise.resolve());case 6:t.next=14;break;case 8:if(t.prev=8,t.t0=t.catch(0),\"INVALID_OPERATION\"!==(null===t.t0||void 0===t.t0?void 0:t.t0.code)){t.next=13;break}t.next=14;break;case 13:throw new Error(t.t0);case 14:return t.prev=15,t.next=18,this._platformSdk.player.canSubscribeBotAsync();case 18:if(!t.sent){t.next=21;break}return t.abrupt(\"return\",this._platformSdk.player.subscribeBotAsync());case 21:t.next=28;break;case 23:if(t.prev=23,t.t1=t.catch(15),\"INVALID_OPERATION\"!==(null===t.t1||void 0===t.t1?void 0:t.t1.code)){t.next=27;break}return t.abrupt(\"return\",Promise.resolve());case 27:throw new Error(t.t1);case 28:return t.abrupt(\"return\",Promise.resolve());case 29:case\"end\":return t.stop()}}),t,this,[[0,8],[15,23]])})),N=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,u,\"next\",t)}function u(t){s(i,n,o,a,u,\"throw\",t)}a(void 0)}))},N.apply(this,arguments)}const C=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&y(t,e)}(s,t);var e,r,n,a=m(s);function s(){var t,e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s);for(var o=arguments.length,u=new Array(o),c=0;c\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n',\"\",{players:r},(function(t){t.showAsync(),e._overlay=t,n.remove(),e._resolvePromiseDecorator(i.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP)}),(function(t,r){n.remove(),e._rejectPromiseDecorator(i.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP,r)})).iframeElement;o.style.zIndex=9999,o.style.position=\"absolute\",o.style.top=0,o.style.left=0,o.style.height=\"100vh\",o.style.width=\"100vw\",o.style.border=0,o.id=o.name,document.body.appendChild(o)})).catch((function(t){n.remove(),e._rejectPromiseDecorator(i.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP,t)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(t){var e=this,r=this._paymentsGetProductPlatformData(t);r||(r={id:t});var n=this._getPromiseDecorator(i.Mn.PURCHASE);if(!n){n=this._createPromiseDecorator(i.Mn.PURCHASE);var o=r.platformProductId?r.platformProductId:r.id;this._platformSdk.payments.purchaseAsync({productID:o.toLowerCase()}).then((function(r){var n=c({id:t},r);delete n.productID,e._paymentsPurchases.push(n),e._resolvePromiseDecorator(i.Mn.PURCHASE,n)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.PURCHASE,t)}))}return n.promise}},{key:\"paymentsConsumePurchase\",value:function(t){var e=this,r=this._paymentsPurchases.findIndex((function(e){return e.id===t}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(i.Mn.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(i.Mn.CONSUME_PURCHASE),this._platformSdk.payments.consumePurchaseAsync(this._paymentsPurchases[r].purchaseToken).then((function(){e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(i.Mn.CONSUME_PURCHASE,{id:t})})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CONSUME_PURCHASE,t)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var t=this,e=this._paymentsGetProductsPlatformData();if(!e)return Promise.reject();var r=this._getPromiseDecorator(i.Mn.GET_CATALOG);return r||(r=this._createPromiseDecorator(i.Mn.GET_CATALOG),this._platformSdk.payments.getCatalogAsync().then((function(r){var n=e.map((function(t){var e=r.find((function(e){return e.productID===t.platformProductId}));return{id:t.id,title:e.title,description:e.description,imageURI:e.imageURI,price:e.price,priceCurrencyCode:e.priceCurrencyCode,priceValue:e.priceAmount}}));t._resolvePromiseDecorator(i.Mn.GET_CATALOG,n)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_CATALOG,e)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var t=this,e=this._getPromiseDecorator(i.Mn.GET_PURCHASES);return e||(e=this._createPromiseDecorator(i.Mn.GET_PURCHASES),this._platformSdk.payments.getPurchasesAsync().then((function(e){var r=t._paymentsGetProductsPlatformData();t._paymentsPurchases=e.map((function(t){var e=c({id:r.find((function(e){return e.id===t.productID})).id},t);return delete e.productID,e})),t._resolvePromiseDecorator(i.Mn.GET_PURCHASES,t._paymentsPurchases)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_PURCHASES,e)}))),e.promise}},{key:\"inviteFriends\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.image||!e.text)return Promise.reject();if(!(0,o.dY)(e.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(i.Mn.INVITE_FRIENDS);return r||(r=this._createPromiseDecorator(i.Mn.INVITE_FRIENDS),this._platformSdk.inviteAsync(e).then((function(){t._resolvePromiseDecorator(i.Mn.INVITE_FRIENDS)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.INVITE_FRIENDS,e)}))),r.promise}},{key:\"joinCommunity\",value:function(t){var e=this,r=this._getPromiseDecorator(i.Mn.JOIN_COMMUNITY);return r||(r=this._createPromiseDecorator(i.Mn.JOIN_COMMUNITY),t&&!0===t.isPage?this._platformSdk.community.followOfficialPageAsync().then((function(t){return e._resolvePromiseDecorator(i.Mn.JOIN_COMMUNITY,t)})).catch((function(t){return e._rejectPromiseDecorator(i.Mn.JOIN_COMMUNITY,t)})):this._platformSdk.community.joinOfficialGroupAsync().then((function(t){return e._resolvePromiseDecorator(i.Mn.JOIN_COMMUNITY,t)})).catch((function(t){return e._rejectPromiseDecorator(i.Mn.JOIN_COMMUNITY,t)}))),r.promise}},{key:\"share\",value:function(t){var e=this;if(!t.image||!t.text)return Promise.reject();if(!(0,o.dY)(t.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(i.Mn.SHARE);return r||(r=this._createPromiseDecorator(i.Mn.SHARE),this._platformSdk.shareAsync(c({intent:\"REQUEST\"},t)).then((function(){e._resolvePromiseDecorator(i.Mn.SHARE)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.SHARE,t)}))),r.promise}}],r&&h(e.prototype,r),n&&h(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(n.Z)},441:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>_});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>S});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>b});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case i.Dt.GAME_READY:return this._platformSdk.game.ready(),Promise.resolve();case i.Dt.LEVEL_FAILED:return this._platformSdk.game.gameOver(),Promise.resolve();case i.Dt.LEVEL_COMPLETED:var r=Number(e.level);return Number.isFinite(r)?(this._platformSdk.game.levelComplete(r),Promise.resolve()):Promise.reject(new Error(\"Level is required for level_completed message\"));default:return u(p(b.prototype),\"sendMessage\",this).call(this,t,e)}}},{key:\"showInterstitial\",value:function(t){var e=this;this._platformSdk.ad.break({type:\"next\",name:t||\"interstitial\",beforeAd:function(){e._setInterstitialState(i.WA.OPENED)},afterAd:function(){e.interstitialState!==i.WA.FAILED&&e._setInterstitialState(i.WA.CLOSED)},adBreakDone:function(t){\"viewed\"!==(null==t?void 0:t.breakStatus)&&e._showAdFailurePopup(!1)}})}},{key:\"showRewarded\",value:function(t){var e=this;this._platformSdk.ad.break({type:\"reward\",name:t||\"rewarded\",beforeAd:function(){e._setRewardedState(i.b3.OPENED)},afterAd:function(){e.rewardedState!==i.b3.FAILED&&e._setRewardedState(i.b3.CLOSED)},beforeReward:function(t){t()},adDismissed:function(){e._showAdFailurePopup(!0)},adViewed:function(){e._setRewardedState(i.b3.REWARDED)},adBreakDone:function(t){\"frequencyCapped\"!==(null==t?void 0:t.breakStatus)&&\"other\"!==(null==t?void 0:t.breakStatus)||e._showAdFailurePopup(!0)}})}},{key:\"isStorageSupported\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||u(p(b.prototype),\"isStorageSupported\",this).call(this,t)}},{key:\"isStorageAvailable\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||u(p(b.prototype),\"isStorageAvailable\",this).call(this,t)}},{key:\"getDataFromStorage\",value:function(t,e,r){var n=this;if(e===i.bD.PLATFORM_INTERNAL){if(Array.isArray(t)){var o=t.map((function(t){return y(n,v,g).call(n,n._platformSdk.storage.getItem(t),r)}));return Promise.resolve(o)}var a=y(this,v,g).call(this,this._platformSdk.storage.getItem(t),r);return Promise.resolve(a)}return u(p(b.prototype),\"getDataFromStorage\",this).call(this,t,e,r)}},{key:\"setDataToStorage\",value:function(t,e,r){if(r===i.bD.PLATFORM_INTERNAL){if(Array.isArray(t)){for(var n=0;n{\"use strict\";r.r(e),r.d(e,{default:()=>Z});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e=0&&this._paymentsPurchases.splice(e,1),this._resolvePromiseDecorator(o.Mn.CONSUME_PURCHASE,t)}else this._rejectPromiseDecorator(o.Mn.CONSUME_PURCHASE,new Error(t))}function H(t){if(t.success){var e=this._paymentsGetProductsPlatformData();this._paymentsPurchases=t.data.map((function(t){var r=JSON.parse(t),n=u({id:e.find((function(t){return t.id===r.productId})).id},r);return delete n.productId,n})),this._resolvePromiseDecorator(o.Mn.GET_PURCHASES,this._paymentsPurchases)}else this._rejectPromiseDecorator(o.Mn.GET_PURCHASES,new Error(t))}function U(t){t.success?this._resolvePromiseDecorator(o.Mn.GET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.GET_STORAGE_DATA,new Error(t))}function W(t){t.success?this._resolvePromiseDecorator(o.Mn.SET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.SET_STORAGE_DATA,new Error(t))}function V(t){t.success?this._resolvePromiseDecorator(o.Mn.DELETE_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.DELETE_STORAGE_DATA,new Error(t))}const Z=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(a,t);var e,r,n,i=p(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,a);for(var e=arguments.length,r=new Array(e),n=0;n{\"use strict\";r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}var s=[\"gamer_id\",\"gamer_name\",\"gamer_avatar_url\"];function u(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function c(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>h});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r0&&(t._playerId=o,t._playerName=a,t._playerPhotos.push(s),t._isPlayerAuthorized=!0),t._isInitialized=!0,t._resolvePromiseDecorator(i.Mn.INITIALIZE)}))}))})):this._rejectPromiseDecorator(i.Mn.INITIALIZE,i.pn.GAME_PARAMS_NOT_FOUND)),e.promise}},{key:\"isStorageSupported\",value:function(t){return t!==i.bD.PLATFORM_INTERNAL&&c(p(u.prototype),\"isStorageSupported\",this).call(this,t)}},{key:\"isStorageAvailable\",value:function(t){return t!==i.bD.PLATFORM_INTERNAL&&c(p(u.prototype),\"isStorageAvailable\",this).call(this,t)}},{key:\"showInterstitial\",value:function(){var t=this;this._setInterstitialState(i.WA.OPENED),this._platformSdk.APIAds.show((function(){t._setInterstitialState(i.WA.CLOSED)}))}},{key:\"showRewarded\",value:function(){var t=this;this._setRewardedState(i.b3.OPENED),this._platformSdk.GEvents.reward((function(e,r){e?r():t._showAdFailurePopup(!0)}),(function(e){e?(t._setRewardedState(i.b3.REWARDED),t._setRewardedState(i.b3.CLOSED)):t._showAdFailurePopup(!0)}))}},{key:\"leaderboardsSetScore\",value:function(t,e){var r=this,n=this._getPromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE);if(!n){n=this._createPromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE);var o={score:e,board:t};this._platformSdk.Scores.save(o,(function(t){t.success?r._resolvePromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE):r._rejectPromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE,t.errormsg)}))}return n.promise}},{key:\"unlockAchievement\",value:function(t){var e=this;return t.achievement?new Promise((function(r,n){e._platformSdk.Achievements.save(Array.isArray(t.achievement)?t.achievement:[t.achievement],(function(t){t.success?r(t):n(t.errormsg)}))})):Promise.reject()}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),u}(n.Z)},572:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>rt});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e=0&&this._paymentsPurchases.splice(i,1),this._resolvePromiseDecorator(o.Mn.CONSUME_PURCHASE,n)}else this._rejectPromiseDecorator(o.Mn.CONSUME_PURCHASE,new Error(t))}function X(t){if(null!=t&&t.success){var e=this._paymentsGetProductsPlatformData();this._paymentsPurchases=(t.data||[]).map((function(t){var r=e.find((function(e){return e.platformProductId===t.id}));return u(u({},t),{},{id:null==r?void 0:r.id,platformProductId:t.id})})),this._resolvePromiseDecorator(o.Mn.GET_PURCHASES,this._paymentsPurchases)}else this._rejectPromiseDecorator(o.Mn.GET_PURCHASES,new Error(t))}function Q(t){this._pauseStateAggregator.setState(\"rate\",!1),t&&!1!==t.success?this._resolvePromiseDecorator(o.Mn.RATE):this._rejectPromiseDecorator(o.Mn.RATE,new Error(t))}function $(t){null!=t&&t.success?this._resolvePromiseDecorator(o.Mn.GET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.GET_STORAGE_DATA,new Error(t))}function tt(t){null!=t&&t.success?this._resolvePromiseDecorator(o.Mn.SET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.SET_STORAGE_DATA,new Error(t))}function et(t){null!=t&&t.success?this._resolvePromiseDecorator(o.Mn.DELETE_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.DELETE_STORAGE_DATA,new Error(t))}const rt=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(s,t);var e,r,n,a=p(s);function s(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s);for(var e=arguments.length,r=new Array(e),n=0;n{\"use strict\";r.r(e),r.d(e,{default:()=>G});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,\"next\",t)}function s(t){u(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e1&&void 0!==n[1]&&n[1],this._platformStorageCachedData){t.next=5;break}return t.next=4,this.platformSdk.cloudSave.getDataAsync({gameId:this._options.gameId});case 4:this._platformStorageCachedData=t.sent;case 5:return t.abrupt(\"return\",(0,o.t0)(e,this._platformStorageCachedData,r));case 6:case\"end\":return t.stop()}}),t,this)}))),x.apply(this,arguments)}const G=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&m(t,e)}(d,t);var e,r,n,a,u,l,p=v(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,d);for(var e=arguments.length,r=new Array(e),n=0;n{\"use strict\";r.r(e),r.d(e,{default:()=>ct});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r120?this._rejectPromiseDecorator(i.Mn.INVITE_FRIENDS,i.pn.INVITE_FRIENDS_MESSAGE_LENGTH_ERROR):this._platformSdk.UI.showInvite(e)),r.promise}},{key:\"rate\",value:function(){var t=this._getPromiseDecorator(i.Mn.RATE);return t||(t=this._createPromiseDecorator(i.Mn.RATE),this._platformSdk.UI.showRatingDialog()),t.promise}},{key:\"createPost\",value:function(t){if(!t||null==t||!t.media)return Promise.reject();var e,r=this._getPromiseDecorator(i.Mn.CREATE_POST);return r||(r=this._createPromiseDecorator(i.Mn.CREATE_POST),this._platformSdk.UI.postMediatopic(t,null!==(e=t.status)&&void 0!==e&&e)),r.promise}},{key:\"joinCommunity\",value:function(t){if(!t||null==t||!t.groupId)return Promise.reject();var e,r=this._getPromiseDecorator(i.Mn.JOIN_COMMUNITY);return r||(r=this._createPromiseDecorator(i.Mn.JOIN_COMMUNITY),this._platformSdk.UI.joinGroup(t.groupId,null!==(e=t.enableMessages)&&void 0!==e&&e)),r.promise}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),y}(n.Z)},640:(t,e,r)=>{\"use strict\";r.d(e,{Z:()=>G});var n=r(258),o=r.n(n),i=r(843),a=r(784),s=r(166);function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}function c(t,e){for(var r=0;r1?i.Lh.IOS:/windows/i.test(o)?i.Lh.WINDOWS:/macintosh|mac os/i.test(o)?i.Lh.MACOS:/linux/i.test(o)?i.Lh.LINUX:i.Lh.OTHER}},{key:\"isPaymentsSupported\",get:function(){return!1}},{key:\"leaderboardsType\",get:function(){return i.Z.NOT_AVAILABLE}},{key:\"isRemoteConfigSupported\",get:function(){return!1}},{key:\"isClipboardSupported\",get:function(){return!0}},{key:\"isAchievementsSupported\",get:function(){return!1}},{key:\"isGetAchievementsListSupported\",get:function(){return!1}},{key:\"isAchievementsNativePopupSupported\",get:function(){return!1}},{key:\"initialize\",value:function(){return Promise.resolve()}},{key:\"sendMessage\",value:function(){return Promise.resolve()}},{key:\"getServerTime\",value:function(){return new Promise((function(t,e){fetch(i.T2).then((function(t){if(!t.ok)throw new Error(\"Network response was not ok\");return t.json()})).then((function(e){t(1e3*e.timestamp)})).catch((function(){e()}))}))}},{key:\"getAllGames\",value:function(){return Promise.reject()}},{key:\"getGameById\",value:function(){return Promise.reject()}},{key:\"authorizePlayer\",value:function(){return Promise.reject()}},{key:\"isStorageSupported\",value:function(t){switch(t){case i.bD.LOCAL_STORAGE:return null!==this._localStorage;case i.bD.PLATFORM_INTERNAL:default:return!1}}},{key:\"isStorageAvailable\",value:function(t){switch(t){case i.bD.LOCAL_STORAGE:return null!==this._localStorage;case i.bD.PLATFORM_INTERNAL:default:return!1}}},{key:\"getDataFromStorage\",value:function(t,e,r){if(e===i.bD.LOCAL_STORAGE){if(this._localStorage){if(Array.isArray(t)){for(var n=[],o=0;o{\"use strict\";r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>I});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e1&&void 0!==n[1])||n[1],this._platformStorageCachedData){t.next=5;break}return t.next=4,this.platformSdk.cloudSaveApi.getState();case 4:this._platformStorageCachedData=t.sent;case 5:return t.abrupt(\"return\",(0,o.t0)(e,this._platformStorageCachedData,r));case 6:case\"end\":return t.stop()}}),t,this)})),k=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,\"next\",t)}function s(t){u(i,n,o,a,s,\"throw\",t)}a(void 0)}))},k.apply(this,arguments)}const I=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&y(t,e)}(s,t);var e,r,n,a=m(s);function s(){var t,e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s);for(var o=arguments.length,i=new Array(o),u=0;u=0&&e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(i.Mn.CONSUME_PURCHASE,{id:t})})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CONSUME_PURCHASE,t)})),n.promise}return d(_(s.prototype),\"paymentsConsumePurchase\",this).call(this,t)}},{key:\"paymentsGetCatalog\",value:function(){var t=this._paymentsGetProductsPlatformData();if(!t)return Promise.reject();var e=t.map((function(t){return{id:t.id,price:\"\".concat(t.amount,\" Gam\"),priceCurrencyCode:\"Gam\",priceCurrencyImage:\"https://games.playgama.com/assets/gold-fennec-coin-large.webp\",priceValue:t.amount}}));return Promise.resolve(e)}}])&&p(e.prototype,r),n&&p(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(n.Z)},514:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>h});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>m});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{\"use strict\";r.r(e),r.d(e,{ACTION_NAME_QA:()=>x,INTERNAL_STORAGE_POLICY:()=>C,SUPPORTED_FEATURES:()=>Y,default:()=>gt});var n=r(640),o=r(383);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:\"*\";(0,o.n_)(t,e)}},{key:\"addListener\",value:function(t){window.addEventListener(\"message\",t)}},{key:\"removeListener\",value:function(t){window.removeEventListener(\"message\",t)}},{key:\"generateMessageId\",value:function(){return\"\".concat(Date.now(),\"-\").concat(Math.random())}}],r&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),t}(),l=r(66),f=r(843);function p(){p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var h=\"suspendedStart\",d=\"suspendedYield\",y=\"executing\",m=\"completed\",v={};function g(){}function b(){}function S(){}var E={};c(E,a,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,a)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==_(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=h;return function(i,a){if(o===y)throw new Error(\"Generator is already running\");if(o===m){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===v)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=y;var c=f(e,r,n);if(\"normal\"===c.type){if(o=n.done?m:d,c.arg===v)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=m,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),v;var i=f(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,v):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,v)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),v}},e}function h(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{};return[f.Dt.GAME_READY,f.Dt.LEVEL_STARTED,f.Dt.LEVEL_COMPLETED,f.Dt.LEVEL_FAILED,f.Dt.LEVEL_PAUSED,f.Dt.LEVEL_RESUMED,f.Dt.IN_GAME_LOADING_STARTED,f.Dt.IN_GAME_LOADING_STOPPED,f.Dt.GAMEPLAY_STARTED,f.Dt.GAMEPLAY_STOPPED,f.Dt.PLAYER_GOT_ACHIEVEMENT].includes(t)?(I(this,$,ft).call(this,{type:f.oF.PLATFORM,action:t,options:e}),Promise.resolve()):P(A(a.prototype),\"sendMessage\",this).call(this,t,e)}},{key:\"getServerTime\",value:function(){return I(this,tt,pt).call(this,f.oF.PLATFORM,x.GET_SERVER_TIME,{options:{}},{timeout:5e3}).then((function(t){var e=t.time;if(!e)throw new Error(\"Invalid server time\");return e})).catch((function(){throw new Error(\"Server time request timeout\")}))}},{key:\"isStorageSupported\",value:function(t){return I(this,$,ft).call(this,{type:f.oF.STORAGE,action:x.IS_STORAGE_SUPPORTED,options:{storageType:t}}),!(t!==f.bD.PLATFORM_INTERNAL||!this._supportedFeatures.includes(Y.STORAGE_INTERNAL))||!(t!==f.bD.LOCAL_STORAGE||!this._supportedFeatures.includes(Y.STORAGE_LOCAL))}},{key:\"isStorageAvailable\",value:function(t){return I(this,$,ft).call(this,{type:f.oF.STORAGE,action:x.IS_STORAGE_AVAILABLE,options:{storageType:t}}),(t===f.bD.PLATFORM_INTERNAL&&this._supportedFeatures.includes(Y.STORAGE_INTERNAL)&&I(this,nt,mt).call(this)||!(t!==f.bD.LOCAL_STORAGE||!this._supportedFeatures.includes(Y.STORAGE_LOCAL)))&&P(A(a.prototype),\"isStorageAvailable\",this).call(this,f.bD.LOCAL_STORAGE)}},{key:\"getDataFromStorage\",value:function(t,e,r){return this.isStorageSupported(e)?I(this,tt,pt).call(this,f.oF.STORAGE,x.GET_DATA_FROM_STORAGE,{options:{key:t,storageType:e,tryParseJson:r}}).then((function(e){var n=e.storage;return(0,o.t0)(t,n,r)})):Promise.reject(f.pn.STORAGE_NOT_SUPPORTED)}},{key:\"setDataToStorage\",value:function(t,e,r){return I(this,$,ft).call(this,{type:f.oF.STORAGE,action:x.SET_DATA_TO_STORAGE,options:{key:t,value:e,storageType:r}}),this.isStorageSupported(r)?r===f.bD.PLATFORM_INTERNAL||r===f.bD.LOCAL_STORAGE?Promise.resolve():P(A(a.prototype),\"setDataToStorage\",this).call(this,t,e,r):Promise.reject(f.pn.STORAGE_NOT_SUPPORTED)}},{key:\"deleteDataFromStorage\",value:function(t,e){return I(this,$,ft).call(this,{type:f.oF.STORAGE,action:x.DELETE_DATA_FROM_STORAGE,options:{key:t,storageType:e}}),this.isStorageSupported(e)?e===f.bD.PLATFORM_INTERNAL||e===f.bD.LOCAL_STORAGE?Promise.resolve():P(A(a.prototype),\"deleteDataFromStorage\",this).call(this,t,e):Promise.reject(f.pn.STORAGE_NOT_SUPPORTED)}},{key:\"showInterstitial\",value:function(t){this.isInterstitialSupported&&I(this,$,ft).call(this,{type:f.oF.ADVERTISEMENT,action:R,options:{placement:t}})}},{key:\"showRewarded\",value:function(t){this.isRewardedSupported&&I(this,$,ft).call(this,{type:f.oF.ADVERTISEMENT,action:L,options:{placement:t}})}},{key:\"showBanner\",value:function(t,e){this.isBannerSupported&&(this._setBannerState(f.Kk.SHOWN),I(this,$,ft).call(this,{type:f.oF.ADVERTISEMENT,action:f.Kk.SHOWN,options:{type:j,position:t,placement:e}}))}},{key:\"hideBanner\",value:function(){this.isBannerSupported&&(this._setBannerState(f.Kk.HIDDEN),I(this,$,ft).call(this,{type:f.oF.ADVERTISEMENT,action:f.Kk.HIDDEN,options:{type:j}}))}},{key:\"checkAdBlock\",value:function(){return I(this,$,ft).call(this,{type:x.CHECK_ADBLOCK,action:f.Mn.ADBLOCK_DETECT}),P(A(a.prototype),\"checkAdBlock\",this).call(this)}},{key:\"inviteFriends\",value:function(){if(!this.isInviteFriendsSupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.INVITE_FRIENDS);return t||(t=this._createPromiseDecorator(f.Mn.INVITE_FRIENDS),this._resolvePromiseDecorator(f.Mn.INVITE_FRIENDS),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.INVITE_FRIENDS})),t.promise}},{key:\"joinCommunity\",value:function(){if(!this.isJoinCommunitySupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.JOIN_COMMUNITY);return t||(t=this._createPromiseDecorator(f.Mn.JOIN_COMMUNITY),this._resolvePromiseDecorator(f.Mn.JOIN_COMMUNITY),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.JOIN_COMMUNITY})),t.promise}},{key:\"share\",value:function(){if(!this.isShareSupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.SHARE);return t||(t=this._createPromiseDecorator(f.Mn.SHARE),this._resolvePromiseDecorator(f.Mn.SHARE),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.SHARE})),t.promise}},{key:\"createPost\",value:function(){if(!this.isCreatePostSupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.CREATE_POST);return t||(t=this._createPromiseDecorator(f.Mn.CREATE_POST),this._resolvePromiseDecorator(f.Mn.CREATE_POST),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.CREATE_POST})),t.promise}},{key:\"addToHomeScreen\",value:function(){if(!this.isAddToHomeScreenSupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.ADD_TO_HOME_SCREEN);return t||(t=this._createPromiseDecorator(f.Mn.ADD_TO_HOME_SCREEN),this._resolvePromiseDecorator(f.Mn.ADD_TO_HOME_SCREEN),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.ADD_TO_HOME_SCREEN})),t.promise}},{key:\"addToFavorites\",value:function(){if(!this.isAddToFavoritesSupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.ADD_TO_FAVORITES);return t||(t=this._createPromiseDecorator(f.Mn.ADD_TO_FAVORITES),this._resolvePromiseDecorator(f.Mn.ADD_TO_FAVORITES),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.ADD_TO_FAVORITES})),t.promise}},{key:\"rate\",value:function(){if(!this.isRateSupported)return Promise.reject();var t=this._getPromiseDecorator(f.Mn.RATE);return t||(t=this._createPromiseDecorator(f.Mn.RATE),this._resolvePromiseDecorator(f.Mn.RATE),I(this,$,ft).call(this,{type:f.oF.SOCIAL,action:f.Mn.RATE})),t.promise}},{key:\"paymentsPurchase\",value:function(t,e){var r=this;if(!this.isPaymentsSupported)return Promise.reject();var n=this._paymentsGetProductPlatformData(t);if(!n)return Promise.reject();e&&e.externalId&&(n.externalId=e.externalId),n.externalId||(n.externalId=this._paymentsGenerateTransactionId(t));var o=this._getPromiseDecorator(f.Mn.PURCHASE);return o||(o=this._createPromiseDecorator(f.Mn.PURCHASE),I(this,tt,pt).call(this,f.oF.PAYMENTS,f.Mn.PURCHASE,{options:{product:n}}).then((function(e){var n=e.purchase;if(n&&\"object\"===_(n))if(null!=n&&n.status){var o=v({id:t},n.purchaseData);r._paymentsPurchases.push(o),r._resolvePromiseDecorator(f.Mn.PURCHASE,o)}else r._rejectPromiseDecorator(f.Mn.PURCHASE,(null==n?void 0:n.error)||new Error(\"Unknown purchase error\"));else r._rejectPromiseDecorator(f.Mn.PURCHASE,new Error(\"Invalid purchase\"))}))),o.promise}},{key:\"paymentsConsumePurchase\",value:function(t){var e=this;if(!this.isPaymentsSupported)return Promise.reject();var r=this._paymentsPurchases.findIndex((function(e){return e.id===t}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(f.Mn.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(f.Mn.CONSUME_PURCHASE),I(this,tt,pt).call(this,f.oF.PAYMENTS,f.Mn.CONSUME_PURCHASE,{options:{product:this._paymentsPurchases[r]}}).then((function(n){var o=n.purchase;if(o&&\"object\"===_(o))if(null!=o&&o.status){var i=v({id:t},o);e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(f.Mn.CONSUME_PURCHASE,i)}else e._rejectPromiseDecorator(f.Mn.CONSUME_PURCHASE,(null==o?void 0:o.error)||new Error(\"Unknown consume purchase error\"));else e._rejectPromiseDecorator(f.Mn.CONSUME_PURCHASE,new Error(\"Invalid purchase\"))}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var t=this;if(!this.isPaymentsSupported)return Promise.reject();var e=this._getPromiseDecorator(f.Mn.GET_CATALOG);if(!e){e=this._createPromiseDecorator(f.Mn.GET_CATALOG);var r=this._paymentsGetProductsPlatformData();I(this,tt,pt).call(this,f.oF.PAYMENTS,f.Mn.GET_CATALOG,{options:{products:r}}).then((function(){var e=r.map((function(t){return{id:t.id,price:\"\".concat(t.amount,\" Gam\"),priceCurrencyCode:\"Gam\",priceCurrencyImage:\"https://games.playgama.com/assets/gold-fennec-coin-large.webp\",priceValue:t.amount}}));t._resolvePromiseDecorator(f.Mn.GET_CATALOG,e)}))}return e.promise}},{key:\"paymentsGetPurchases\",value:function(){var t=this;if(!this.isPaymentsSupported)return Promise.reject();var e=this._getPromiseDecorator(f.Mn.GET_PURCHASES);return e||(e=this._createPromiseDecorator(f.Mn.GET_PURCHASES),I(this,tt,pt).call(this,f.oF.PAYMENTS,f.Mn.GET_PURCHASES,{options:{products:this._paymentsGetProductsPlatformData()}}).then((function(e){var r=e.purchases,n=t._paymentsGetProductsPlatformData();t._paymentsPurchases=r.map((function(t){return v({id:n.find((function(e){return e.id===t.id})).id},t.purchaseData)})),t._resolvePromiseDecorator(f.Mn.GET_PURCHASES,t._paymentsPurchases)}))),e.promise}},{key:\"getRemoteConfig\",value:function(){var t=this;if(!this.isRemoteConfigSupported)return Promise.reject();var e=this._getPromiseDecorator(f.Mn.GET_REMOTE_CONFIG);return e||(e=this._createPromiseDecorator(f.Mn.GET_REMOTE_CONFIG),I(this,tt,pt).call(this,f.oF.REMOTE_CONFIG,f.Mn.GET_REMOTE_CONFIG).then((function(e){var r=e.result;t._resolvePromiseDecorator(f.Mn.GET_REMOTE_CONFIG,r)}))),e.promise}},{key:\"clipboardWrite\",value:function(t){var e=this;if(!this.isClipboardSupported)return Promise.reject();var r=this._getPromiseDecorator(f.Mn.CLIPBOARD_WRITE);return r||(r=this._createPromiseDecorator(f.Mn.CLIPBOARD_WRITE),I(this,tt,pt).call(this,f.oF.CLIPBOARD,f.Mn.CLIPBOARD_WRITE,{options:{text:t}}).then((function(){e._resolvePromiseDecorator(f.Mn.CLIPBOARD_WRITE,!0)}))),r.promise}},{key:\"clipboardRead\",value:function(){var t=this;if(!this.isClipboardSupported)return Promise.reject();var e=this._getPromiseDecorator(x.CLIPBOARD_READ);return e||(e=this._createPromiseDecorator(x.CLIPBOARD_READ),I(this,tt,pt).call(this,f.oF.CLIPBOARD,x.CLIPBOARD_READ,{options:{}}).then((function(e){var r=e.text;t._resolvePromiseDecorator(x.CLIPBOARD_READ,r)}))),e.promise}},{key:\"leaderboardsSetScore\",value:function(t,e){if(this.leaderboardsType===f.Z.NOT_AVAILABLE)return Promise.reject(new Error(\"Leaderboards are not available\"));var r=this._getPromiseDecorator(f.Mn.LEADERBOARDS_SET_SCORE);if(!r){r=this._createPromiseDecorator(f.Mn.LEADERBOARDS_SET_SCORE);var n={id:t,score:e};I(this,$,ft).call(this,{type:f.oF.LEADERBOARDS,action:f.Mn.LEADERBOARDS_SET_SCORE,options:n}),this._resolvePromiseDecorator(f.Mn.LEADERBOARDS_SET_SCORE)}return r.promise}},{key:\"leaderboardsGetEntries\",value:function(t){var e=this;if(this.leaderboardsType!==f.Z.IN_GAME)return Promise.reject(new Error(\"Leaderboards are not available\"));var r=this._getPromiseDecorator(f.Mn.LEADERBOARDS_GET_ENTRIES);return r||(r=this._createPromiseDecorator(f.Mn.LEADERBOARDS_GET_ENTRIES),I(this,tt,pt).call(this,f.oF.LEADERBOARDS,f.Mn.LEADERBOARDS_GET_ENTRIES,{options:{id:t}},{timeout:5e3}).then((function(t){var r=t.entries;e._resolvePromiseDecorator(f.Mn.LEADERBOARDS_GET_ENTRIES,r)})).catch((function(){e._rejectPromiseDecorator(f.Mn.LEADERBOARDS_GET_ENTRIES)}))),r.promise}},{key:\"leaderboardsShowNativePopup\",value:function(t){return this.leaderboardsType!==f.Z.NATIVE_POPUP?Promise.reject(new Error(\"Leaderboards are not available\")):(I(this,$,ft).call(this,{type:f.oF.LEADERBOARDS,action:f.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP,options:{id:t}}),Promise.resolve(f.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP))}},{key:\"unlockAchievement\",value:function(t){return this.isAchievementsSupported?I(this,tt,pt).call(this,f.oF.ACHIEVEMENTS,x.UNLOCK_ACHIEVEMENT,{options:t}).then((function(t){return t.result})):Promise.reject()}},{key:\"getAchievementsList\",value:function(t){return this.isGetAchievementsListSupported?I(this,tt,pt).call(this,f.oF.ACHIEVEMENTS,x.GET_ACHIEVEMENTS,{options:t}).then((function(t){return t.result})):Promise.reject()}},{key:\"showAchievementsNativePopup\",value:function(){return this.isAchievementsNativePopupSupported?(I(this,$,ft).call(this,{type:f.oF.ACHIEVEMENTS,action:x.SHOW_ACHIEVEMENTS_NATIVE_POPUP}),Promise.resolve()):Promise.reject()}},{key:\"_paymentsGetProductsPlatformData\",value:function(){return this._options.payments?this._options.payments.map((function(t){return v({id:t.id},t.playgama)})):[]}},{key:\"_paymentsGetProductPlatformData\",value:function(t){var e=this._options.payments;if(!e)return null;var r=e.find((function(e){return e.id===t}));return r?v({id:r.id},r.playgama):null}}],r&&g(e.prototype,r),n&&g(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),a}(n.Z);function st(t){var e,r,n,o,i;this._supportedFeatures=t.supportedFeatures||[],this._isBannerSupported=this._supportedFeatures.includes(Y.BANNER);var a=t.config,s=void 0===a?{}:a;this._deviceType=null!==(e=s.deviceType)&&void 0!==e?e:P(A(u.prototype),\"deviceType\",this),this._platformLanguage=s.platformLanguage?s.platformLanguage.toLowerCase():P(A(u.prototype),\"platformLanguage\",this),this._platformTld=null!==(r=s.platformTld)&&void 0!==r?r:P(A(u.prototype),\"platformTld\",this),this._platformPayload=null!==(n=s.platformPayload)&&void 0!==n?n:P(A(u.prototype),\"platformPayload\",this),this._leaderboardsType=null!==(o=s.leaderboardsType)&&void 0!==o?o:f.Z.NOT_AVAILABLE,this._internalStoragePolicy=null!==(i=s.internalStoragePolicy)&&void 0!==i?i:C.AUTHORIZED_ONLY,this._paymentsPurchases=t.purchases||[],this._isInitialized=!0,this._resolvePromiseDecorator(f.Mn.INITIALIZE),I(this,ot,vt).call(this),I(this,$,ft).call(this,{type:N,action:x.LIVENESS_PING,options:{version:\"1.29.0\"}})}function ut(t){this._setAudioState(t.options.isEnabled)}function ct(t){this._setPauseState(t.options.isPaused)}function lt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Array.isArray(e)?e:[],n=performance.getEntriesByType(\"resource\")||[],o=r.length>0?r:[\"name\",\"initiatorType\"],i=n.map((function(t){var e={};return o.forEach((function(r){r in t&&(e[r]=t[r])})),e}));return I(this,$,ft).call(this,{type:f.oF.PLATFORM,action:x.GET_PERFORMANCE_RESOURCES,id:t,options:{resources:i}}),Promise.resolve(n)}function ft(t){k(this,K).send(v({source:M},t))}function pt(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=k(this,K).generateMessageId(),a=v({timeout:0},o);return new Promise((function(s,u){var c=function n(o){var a=o.data;(null==a?void 0:a.type)===t&&(null==a?void 0:a.action)===e&&(null==a?void 0:a.id)===i&&(null==a?void 0:a.source)!==M&&(k(r,K).removeListener(n),s(a))};k(r,K).addListener(c),I(r,$,ft).call(r,v({type:t,action:e,id:i,options:o},n)),a.timeout>0&&setTimeout((function(){u(new Error(\"Request timeout\")),k(r,K).removeListener(c)}),a.timeout)}))}function ht(){return dt.apply(this,arguments)}function dt(){var t;return t=p().mark((function t(){var e=this;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",I(this,tt,pt).call(this,f.oF.PLAYER,x.GET_PLAYER).then((function(t){var r=t.player;null!=r&&r.isAuthorized?(e._playerId=r.userId,e._isPlayerAuthorized=r.isAuthorized,e._playerName=r.name,Array.isArray(r.photos)&&(e._playerPhotos=h(r.photos)),e._playerExtra=r,I(e,ot,vt).call(e)):e._playerApplyGuestData()})).catch((function(){e._playerApplyGuestData()})));case 1:case\"end\":return t.stop()}}),t,this)})),dt=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){y(i,n,o,a,s,\"next\",t)}function s(t){y(i,n,o,a,s,\"throw\",t)}a(void 0)}))},dt.apply(this,arguments)}function yt(t){var e=t.action,r=t.payload;if(\"interstitial\"===e){if(!this.isInterstitialSupported)return;switch(r.status){case G:this._setInterstitialState(f.WA.LOADING);break;case F:this._setInterstitialState(f.WA.OPENED);break;case H:this._showAdFailurePopup(!1);break;case B:this._setInterstitialState(f.WA.CLOSED)}}else if(\"reward\"===e){if(!this.isRewardedSupported)return;switch(r.status){case U:this._setRewardedState(f.b3.LOADING);break;case W:this._setRewardedState(f.b3.OPENED);break;case V:this._setRewardedState(f.b3.REWARDED);break;case Z:this._setRewardedState(f.b3.CLOSED);break;case z:this._showAdFailurePopup(!0)}}}function mt(){return this._internalStoragePolicy===C.AUTHORIZED_ONLY&&this._isPlayerAuthorized||this._internalStoragePolicy===C.ALWAYS}function vt(){I(this,nt,mt).call(this)?this._defaultStorageType=f.bD.PLATFORM_INTERNAL:this._defaultStorageType=f.bD.LOCAL_STORAGE}function _t(){\"unity\"===this.engine&&indexedDB.deleteDatabase(\"UnityCache\")}u=at;const gt=at},381:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>F});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:D(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",_={};function g(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=g.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function D(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=k(s,n);if(u){if(u===_)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===_)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,k(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),_;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,_;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,_):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,_)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),_}},e}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,\"next\",t)}function s(t){u(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function l(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};(0,i.n_)({type:t,data:e},\"*\")}function I(t){this._isPlayerAuthorized=t.isPlayerAuthorized,this._isPlayerAuthorized&&(this._playerId=t.playerId,this._playerName=t.playerName,t.playerPhoto&&this._playerPhotos.push(t.playerPhoto),this._defaultStorageType=o.bD.PLATFORM_INTERNAL),this._isInitialized=!0,this._resolvePromiseDecorator(o.Mn.INITIALIZE)}function R(t){var e,r;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.GET_STORAGE_DATA,null!==(r=t.data.data)&&void 0!==r?r:null):this._rejectPromiseDecorator(o.Mn.GET_STORAGE_DATA)}function L(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.SET_STORAGE_DATA):this._rejectPromiseDecorator(o.Mn.SET_STORAGE_DATA)}function j(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.DELETE_STORAGE_DATA):this._rejectPromiseDecorator(o.Mn.DELETE_STORAGE_DATA)}function M(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.PURCHASE,t.data):this._rejectPromiseDecorator(o.Mn.PURCHASE,t.data)}function N(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.GET_CATALOG,t.data):this._rejectPromiseDecorator(o.Mn.GET_CATALOG,t.data)}function C(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.GET_PURCHASES,t.data):this._rejectPromiseDecorator(o.Mn.GET_PURCHASES,t.data)}function x(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.CREATE_POST):this._rejectPromiseDecorator(o.Mn.CREATE_POST)}function G(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.JOIN_COMMUNITY):this._rejectPromiseDecorator(o.Mn.JOIN_COMMUNITY)}const F=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(f,t);var e,r,n,i,a,u=d(f);function f(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,f);for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=this._getPromiseDecorator(o.Mn.CREATE_POST);return e||(e=this._createPromiseDecorator(o.Mn.CREATE_POST),_(this,g,k).call(this,o.Mn.CREATE_POST,{options:t})),e.promise}},{key:\"joinCommunity\",value:function(){var t=this._getPromiseDecorator(o.Mn.JOIN_COMMUNITY);return t||(t=this._createPromiseDecorator(o.Mn.JOIN_COMMUNITY),_(this,g,k).call(this,o.Mn.JOIN_COMMUNITY)),t.promise}}],r&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),f}(n.Z)},675:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>w});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>k});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"result\",i=this._getPromiseDecorator(t);return i||(i=this._createPromiseDecorator(t),this._platformSdk.send(e,n).then((function(e){e[o]?r._resolvePromiseDecorator(t):r._rejectPromiseDecorator(t)})).catch((function(e){r._rejectPromiseDecorator(t,e)}))),i.promise}const E=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(_,t);var e,r,n,a=l(_);function _(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,_);for(var n=arguments.length,o=new Array(n),i=0;i{\"use strict\";r.r(e),r.d(e,{default:()=>S});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{\"use strict\";r.r(e),r.d(e,{default:()=>T});var n=r(640),o=r(383),i=r(843),a=[\"player\"];function s(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{\"use strict\";r.r(e),r.d(e,{default:()=>k});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e0?t.entries.map((function(t){return{id:t.player.uniqueID,name:t.player.publicName,score:t.score,rank:t.rank,photo:t.player.getAvatarSrc(\"large\")}})):[],e._resolvePromiseDecorator(i.Mn.LEADERBOARDS_GET_ENTRIES,r)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.LEADERBOARDS_GET_ENTRIES,t)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(t){var e=this;if(!S(this,A))return Promise.reject();var r=this._paymentsGetProductPlatformData(t);r||(r={id:t});var n=this._getPromiseDecorator(i.Mn.PURCHASE);return n||(n=this._createPromiseDecorator(i.Mn.PURCHASE),S(this,A).purchase(r).then((function(r){var n=u({id:t},r.purchaseData);delete n.productID,e._paymentsPurchases.push(n),e._resolvePromiseDecorator(i.Mn.PURCHASE,n)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.PURCHASE,t)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(t){var e=this;if(!S(this,A))return Promise.reject();var r=this._paymentsPurchases.findIndex((function(e){return e.id===t}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(i.Mn.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(i.Mn.CONSUME_PURCHASE),S(this,A).consumePurchase(this._paymentsPurchases[r].purchaseToken).then((function(){e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(i.Mn.CONSUME_PURCHASE,{id:t})})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CONSUME_PURCHASE,t)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var t=this;if(!S(this,A))return Promise.reject();var e=this._paymentsGetProductsPlatformData(),r=this._getPromiseDecorator(i.Mn.GET_CATALOG);return r||(r=this._createPromiseDecorator(i.Mn.GET_CATALOG),S(this,A).getCatalog().then((function(r){var n=e.map((function(t){var e,n=r.find((function(e){return e.id===t.id}));return{id:t.id,title:n.title,description:n.description,imageURI:n.imageURI,price:n.price,priceCurrencyCode:n.priceCurrencyCode,priceValue:n.priceValue,priceCurrencyImage:null===(e=n.getPriceCurrencyImage)||void 0===e?void 0:e.call(n,\"medium\")}}));t._resolvePromiseDecorator(i.Mn.GET_CATALOG,n)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_CATALOG,e)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var t=this;if(!S(this,A))return Promise.reject();var e=this._getPromiseDecorator(i.Mn.GET_PURCHASES);return e||(e=this._createPromiseDecorator(i.Mn.GET_PURCHASES),S(this,A).getPurchases().then((function(e){var r=t._paymentsGetProductsPlatformData();t._paymentsPurchases=e.map((function(t){var e=u({id:r.find((function(e){return e.id===t.productID})).id},t.purchaseData);return delete e.productID,e})),t._resolvePromiseDecorator(i.Mn.GET_PURCHASES,t._paymentsPurchases)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_PURCHASES,e)}))),e.promise}},{key:\"getRemoteConfig\",value:function(t){var e=this;if(!this._platformSdk)return Promise.reject();var r=t;r||(r={}),r.clientFeatures||(r.clientFeatures=[]);var n=this._getPromiseDecorator(i.Mn.GET_REMOTE_CONFIG);return n||(n=this._createPromiseDecorator(i.Mn.GET_REMOTE_CONFIG),this._platformSdk.getFlags(r).then((function(t){e._resolvePromiseDecorator(i.Mn.GET_REMOTE_CONFIG,t)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.GET_REMOTE_CONFIG,t)}))),n.promise}},{key:\"clipboardWrite\",value:function(t){var e=this,r=this._getPromiseDecorator(i.Mn.CLIPBOARD_WRITE);return r||(r=this._createPromiseDecorator(i.Mn.CLIPBOARD_WRITE),this._platformSdk.clipboard.writeText(t).then((function(){e._resolvePromiseDecorator(i.Mn.CLIPBOARD_WRITE,!0)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CLIPBOARD_WRITE,t)}))),r.promise}}])&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(n.Z)},151:(t,e,r)=>{\"use strict\";r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e2?e.slice(0,2):e)}));t._platformStorageCachedData={};var r=t._platformSdk.game.loadData().then((function(e){\"string\"==typeof e&&\"\"!==e&&(t._platformStorageCachedData=JSON.parse(e))}));t._platformSdk.system.onAudioEnabledChange((function(e){t._setAudioState(e)})),t._platformSdk.system.onPause((function(){t._setPauseState(!0)})),t._platformSdk.system.onResume((function(){t._setPauseState(!1)})),Promise.all([e,r]).finally((function(){t._isInitialized=!0,t._resolvePromiseDecorator(i.Mn.INITIALIZE),t._platformSdk.game.firstFrameReady()}))}))),e.promise}},{key:\"isStorageSupported\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||p(m(s.prototype),\"isStorageSupported\",this).call(this,t)}},{key:\"isStorageAvailable\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||p(m(s.prototype),\"isStorageAvailable\",this).call(this,t)}},{key:\"getDataFromStorage\",value:function(t,e,r){var n=this;return e===i.bD.PLATFORM_INTERNAL?new Promise((function(e,o){n._platformSdk.game.loadData().then((function(o){if(\"string\"==typeof o&&\"\"!==o&&(n._platformStorageCachedData=JSON.parse(o)),Array.isArray(t)){for(var i=[],a=0;a{!function(e){t.exports=e;var r=\"listeners\",n={on:function(t,e){return a(this,t).push(e),this},once:function(t,e){var r=this;return n.originalListener=e,a(r,t).push(n),r;function n(){i.call(r,t,n),e.apply(this,arguments)}},off:i,emit:function(t,e){var r=this,n=a(r,t,!0);if(!n)return!1;var o=arguments.length;if(1===o)n.forEach((function(t){t.call(r)}));else if(2===o)n.forEach((function(t){t.call(r,e)}));else{var i=Array.prototype.slice.call(arguments,1);n.forEach((function(t){t.apply(r,i)}))}return!!n.length}};function o(t){for(var e in n)t[e]=n[e];return t}function i(t,e){var n,o=this;if(arguments.length){if(e){if(n=a(o,t,!0)){if(!(n=n.filter((function(t){return t!==e&&t.originalListener!==e}))).length)return i.call(o,t);o[r][t]=n}}else if((n=o[r])&&(delete n[t],!Object.keys(n).length))return i.call(o)}else delete o[r];return o}function a(t,e,n){if(!n||t[r]){var o=t[r]||(t[r]={});return o[e]||(o[e]=[])}}o(e.prototype),e.mixin=o}((function t(){if(!(this instanceof t))return new t}))}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},(()=>{\"use strict\";var t=r(843),e=r(166),n=r(66),o=r(258),i=r.n(o),a=r(23),s=r(784);function u(t){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},u(t)}function c(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n={};if(e===t.Dt.GAME_READY){if(v(this,g))return Promise.reject();m(this,g,!0);var o=((performance.now()-v(this,b))/1e3).toFixed(2);n.time_s=o;var i=document.getElementById(\"loading-overlay\");i&&i.remove()}return void 0!==r.world&&(n.world=String(r.world)),void 0!==r.level&&(n.level=String(r.level)),s.Z.send(\"\".concat(t.oF.PLATFORM,\"_message_\").concat(e),n),this._platformBridge.sendMessage(e,r)}},{key:\"getServerTime\",value:function(){return this._platformBridge.getServerTime()}},{key:\"getAllGames\",value:function(){return this._platformBridge.getAllGames()}},{key:\"getGameById\",value:function(t){if(t){var e=t[this._platformBridge.platformId];if(e)return this.getGameById(e)}return this._platformBridge.getGameById(t)}}],n&&c(r.prototype,n),o&&c(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),a}(a.Z);i().mixin(S.prototype);const E=S;function w(t){return w=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},w(t)}function P(t,e){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1];if(!(this._loadingProcessCompleted||e&&null!==this._currentLoadingProgress)){var r=document.getElementById(\"fillRect\"),n=document.getElementById(\"gradientMover\"),o=document.getElementById(\"logo\"),i=document.getElementById(\"loading-overlay\");if(r&&n&&o&&i){this._currentLoadingProgress=t;var a=Math.max(0,Math.min(100,t)),s=100-a;r.style.transform=\"translateY(\".concat(s,\"%)\"),100===a?(this._loadingProcessCompleted=!0,setTimeout((function(){r.style.display=\"none\",n.style.display=\"block\",n.classList.add(\"gradient-mover\")}),400),setTimeout((function(){return o.classList.add(\"logo-fade-out\")}),900),setTimeout((function(){return i.remove()}),1400)):n.classList.remove(\"gradient-mover\")}}}}],n&&L(r.prototype,n),o&&L(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),a}(a.Z);i().mixin(F.prototype);const B=F;function H(t){return H=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},H(t)}function U(t,e){for(var r=0;r2&&void 0!==arguments[2])||arguments[2];if(e){var n=e[this._platformBridge.platformId];if(n)return this.get(t,n,r)}var o=e;return o||(o=this.defaultType),this._platformBridge.isStorageAvailable(o)?Array.isArray(t)&&0===t.length?Promise.resolve([]):this._platformBridge.getDataFromStorage(t,o,r):Promise.reject()}},{key:\"set\",value:function(t,e,r){if(r){var n=r[this._platformBridge.platformId];if(n)return this.set(t,e,n)}var o=r;if(o||(o=this.defaultType),!this._platformBridge.isStorageAvailable(o))return Promise.reject();if(Array.isArray(t)){if(!Array.isArray(e))return Promise.reject(new Error(\"Value must be an array when key is an array\"));if(t.length!==e.length)return Promise.reject(new Error(\"Key and value arrays must have the same length\"));if(0===t.length)return Promise.resolve()}return this._platformBridge.setDataToStorage(t,e,o)}},{key:\"delete\",value:function(t,e){if(e){var r=e[this._platformBridge.platformId];if(r)return this.delete(t,r)}var n=e;return n||(n=this.defaultType),this._platformBridge.isStorageAvailable(n)?Array.isArray(t)&&0===t.length?Promise.resolve():this._platformBridge.deleteDataFromStorage(t,n):Promise.reject()}}],r&&U(e.prototype,r),n&&U(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),i}(a.Z);function K(t){return K=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},K(t)}function J(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:t.Cb.BOTTOM,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.bannerState!==t.Kk.LOADING&&this.bannerState!==t.Kk.SHOWN){It(this,Nt,r);var o,i=n;if(i||null!==(o=this._platformBridge.options)&&void 0!==o&&null!==(o=o.advertisement)&&void 0!==o&&null!==(o=o.banner)&&void 0!==o&&o.placementFallback&&(i=this._platformBridge.options.advertisement.banner.placementFallback),It(this,Ct,i),Rt(this,Jt,ae).call(this,t.Kk.LOADING),this.isBannerSupported){var a=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.banner)||void 0===e?void 0:e.placements,s=Rt(this,Qt,ce).call(this,i,a);this._platformBridge.showBanner(r,s)}else Rt(this,Jt,ae).call(this,t.Kk.FAILED)}}},{key:\"hideBanner\",value:function(){this.bannerState!==t.Kk.LOADING&&this.bannerState!==t.Kk.HIDDEN&&this.isBannerSupported&&this._platformBridge.hideBanner()}},{key:\"preloadInterstitial\",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.isInterstitialSupported){var r,n=e;n&&\"string\"==typeof n||null!==(r=this._platformBridge.options)&&void 0!==r&&null!==(r=r.advertisement)&&void 0!==r&&null!==(r=r.interstitial)&&void 0!==r&&r.placementFallback&&(n=this._platformBridge.options.advertisement.interstitial.placementFallback);var o=null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t||null===(t=t.interstitial)||void 0===t?void 0:t.placements,i=Rt(this,Qt,ce).call(this,n,o);this._platformBridge.preloadInterstitial(i)}}},{key:\"showInterstitial\",value:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!Rt(this,Kt,ie).call(this)){var n,o=r;if(o||null!==(n=this._platformBridge.options)&&void 0!==n&&null!==(n=n.advertisement)&&void 0!==n&&null!==(n=n.interstitial)&&void 0!==n&&n.placementFallback&&(o=this._platformBridge.options.advertisement.interstitial.placementFallback),It(this,Gt,o),Rt(this,qt,se).call(this,t.WA.LOADING),this.isInterstitialSupported)if(this._platformBridge.isMinimumDelayBetweenInterstitialEnabled&&Lt(this,Ft)&&Lt(this,Ft).state===st)Rt(this,qt,se).call(this,t.WA.FAILED);else{var i=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.interstitial)||void 0===e?void 0:e.placements,a=Rt(this,Qt,ce).call(this,o,i);this._platformBridge.showInterstitial(a)}else Rt(this,qt,se).call(this,t.WA.FAILED)}}},{key:\"preloadRewarded\",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.isRewardedSupported){var r,n=e;n&&\"string\"==typeof n||null!==(r=this._platformBridge.options)&&void 0!==r&&null!==(r=r.advertisement)&&void 0!==r&&null!==(r=r.rewarded)&&void 0!==r&&r.placementFallback&&(n=this._platformBridge.options.advertisement.rewarded.placementFallback);var o=null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t||null===(t=t.rewarded)||void 0===t?void 0:t.placements,i=Rt(this,Qt,ce).call(this,n,o);this._platformBridge.preloadRewarded(i)}}},{key:\"showRewarded\",value:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!Rt(this,Kt,ie).call(this)){var n;It(this,Ut,r),Lt(this,Ut)||null!==(n=this._platformBridge.options)&&void 0!==n&&null!==(n=n.advertisement)&&void 0!==n&&null!==(n=n.rewarded)&&void 0!==n&&n.placementFallback&&It(this,Ut,this._platformBridge.options.advertisement.rewarded.placementFallback);var o=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.rewarded)||void 0===e?void 0:e.placements,i=Rt(this,Qt,ce).call(this,Lt(this,Ut),o);Rt(this,Xt,ue).call(this,t.b3.LOADING),this.isRewardedSupported?this._platformBridge.showRewarded(i):Rt(this,Xt,ue).call(this,t.b3.FAILED)}}},{key:\"checkAdBlock\",value:function(){return this._platformBridge.checkAdBlock()}}],n&&St(r.prototype,n),o&&St(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),a}(a.Z);function te(t){It(this,Bt,t),Lt(this,Ft)&&(Lt(this,Ft).stop(),Rt(this,Yt,oe).call(this))}function ee(t){if(\"number\"==typeof t)return t;if(\"string\"==typeof t){var e=parseInt(t,10);return Number.isNaN(e)?null:e}return null}function re(){var t=Rt(this,zt,ne).call(this);if(void 0!==t){var e=Rt(this,Vt,ee).call(this,t);null!==e&&Rt(this,Wt,te).call(this,e)}}function ne(){var t;return null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t?void 0:t.minimumDelayBetweenInterstitial}function oe(){Lt(this,Bt)>0&&this._platformBridge.isMinimumDelayBetweenInterstitialEnabled&&(It(this,Ft,new gt(Lt(this,Bt))),Lt(this,Ft).start())}function ie(){var e=[t.WA.LOADING,t.WA.OPENED].includes(Lt(this,xt)),r=[t.b3.LOADING,t.b3.OPENED,t.b3.REWARDED].includes(Lt(this,Ht));return e||r}function ae(e){Lt(this,Mt)!==e&&(It(this,Mt,e),s.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_banner_\").concat(e),{position:Lt(this,Nt),placement:Lt(this,Ct)}),this.emit(t.W1.BANNER_STATE_CHANGED,Lt(this,Mt)))}function se(e){Lt(this,xt)!==e&&(It(this,xt,e),s.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_interstitial_\").concat(e),{placement:Lt(this,Gt)}),this.emit(t.W1.INTERSTITIAL_STATE_CHANGED,Lt(this,xt)))}function ue(e){Lt(this,Ht)!==e&&(It(this,Ht,e),s.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_rewarded_\").concat(e),{placement:Lt(this,Ut)}),this.emit(t.W1.REWARDED_STATE_CHANGED,Lt(this,Ht)))}function ce(t,e){if(!t)return t;if(!e)return t;var r=e.find((function(e){return e.id===t}));return r&&r[this._platformBridge.platformId]?r[this._platformBridge.platformId]:t}i().mixin($t.prototype);const le=$t;function fe(t){return fe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},fe(t)}function pe(t,e){for(var r=0;rwindow.innerWidth?t.AR.PORTRAIT:t.AR.LANDSCAPE}function Ze(){var e=ke(this,xe,Ve).call(this);e!==Ie(this,Le)&&(De(this,Le,e),this.emit(t.W1.ORIENTATION_STATE_CHANGED,Ie(this,Le)),ke(this,Fe,ze).call(this))}function ze(){if(Ie(this,Ne))if(1===Ie(this,Me).length){var t=Ie(this,Me)[0];Ie(this,Le)!==t?ke(this,Be,Ye).call(this):ke(this,He,Ke).call(this)}else ke(this,He,Ke).call(this)}function Ye(){Ie(this,je)||(De(this,je,(0,I.dG)()),document.body.appendChild(Ie(this,je)))}function Ke(){Ie(this,je)&&(Ie(this,je).remove(),De(this,je,null))}i().mixin(Ue.prototype);const Je=Ue;function qe(t){return qe=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},qe(t)}function Xe(t,e){for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;k(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lr(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;k(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function Pr(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function Ar(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Pr(i,n,o,a,s,\"next\",t)}function s(t){Pr(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function Or(t,e){for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;k(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function ln(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}var fn={};function pn(t){return hn.apply(this,arguments)}function hn(){var t;return t=cn().mark((function t(e){var r,n,o;return cn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=fn[e])){t.next=7;break}return t.next=4,r();case 4:return n=t.sent,o=n.default,t.abrupt(\"return\",o);case 7:return t.abrupt(\"return\",sn.Z);case 8:case\"end\":return t.stop()}}),t)})),hn=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ln(i,n,o,a,s,\"next\",t)}function s(t){ln(i,n,o,a,s,\"throw\",t)}a(void 0)}))},hn.apply(this,arguments)}function dn(t){return dn=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},dn(t)}function yn(){yn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new I(n||[]);return o(a,\"_invoke\",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var p=\"suspendedStart\",h=\"suspendedYield\",d=\"executing\",y=\"completed\",m={};function v(){}function _(){}function g(){}var b={};c(b,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(R([])));E&&E!==r&&n.call(E,a)&&(b=E);var w=g.prototype=v.prototype=Object.create(b);function P(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==dn(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===d)throw new Error(\"Generator is already running\");if(o===y){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=T(s,n);if(u){if(u===m)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=d;var c=f(e,r,n);if(\"normal\"===c.type){if(o=n.done?y:h,c.arg===m)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=y,n.method=\"throw\",n.arg=c.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,T(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),m;var i=f(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,m):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,m)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(D,this),this.reset(!0)}function R(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;k(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function mn(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function vn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){mn(i,n,o,a,s,\"next\",t)}function s(t){mn(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function _n(t,e){for(var r=0;r{\"use strict\";var t={446:(t,e,r)=>{function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1?r-1:0),i=1;iu,aA:()=>i,iL:()=>s});var a={};function s(t){t.on=function(t,e){a.on(t,e)},t.off=function(t,e){a.off(t,e)},t.once=function(t,e){a.once(t,e)}}i(a);const u=a},166:(t,e,r)=>{function n(t){return n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(t)}function o(t,e){for(var r=0;rh});var l=new WeakMap,f=new WeakMap,p=new WeakMap;const h=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),a(this,l,{writable:!0,value:void 0}),a(this,f,{writable:!0,value:void 0}),a(this,p,{writable:!0,value:void 0}),s(this,l,new Promise((function(t,r){s(e,f,t),s(e,p,r)})))}var e,r,n;return e=t,(r=[{key:\"promise\",get:function(){return u(this,l)}},{key:\"resolve\",value:function(t){u(this,f).call(this,t)}},{key:\"reject\",value:function(t){u(this,p).call(this,t)}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),t}()},383:(t,e,r)=>{r.d(e,{$H:()=>b,D1:()=>T,DQ:()=>_,Dz:()=>m,QG:()=>g,R2:()=>j,RH:()=>A,SC:()=>N,Tg:()=>R,XA:()=>y,X_:()=>S,ZP:()=>O,ZT:()=>f,dG:()=>v,dY:()=>E,eE:()=>I,f_:()=>d,fn:()=>M,fr:()=>L,kM:()=>h,my:()=>k,n_:()=>D,pb:()=>p,t0:()=>P});var n=r(843);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:\"undefined\"!=typeof Symbol&&t[Symbol.iterator]||t[\"@@iterator\"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(!t)return;if(\"string\"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t,e)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,n){var o=document.createElement(\"script\");o.src=t;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(t){var a=document.createElement(\"script\");a.src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\",a.setAttribute(\"data-ad-client\",e),r?a.setAttribute(\"data-ad-channel\",r):n&&a.setAttribute(\"data-ad-host\",n),o&&a.setAttribute(\"data-admob-interstitial-slot\",o),i&&a.setAttribute(\"data-admob-rewarded-slot\",i),l&&a.setAttribute(\"data-adbreak-test\",\"on\"),a.setAttribute(\"data-ad-frequency-hint\",s),a.setAttribute(\"crossorigin\",\"anonymous\"),a.addEventListener(\"load\",(function(){window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push(u({preloadAdBreaks:\"on\",sound:\"on\",onReady:function(){}},f)),t((function(t){return window.adsbygoogle.push(t)}))})),document.head.appendChild(a)}))};function h(t){var e=document.createElement(\"div\");switch(e.id=n._g,e.style.position=\"absolute\",document.body.appendChild(e),t){case n.Cb.TOP:e.style.top=\"0px\",e.style.height=\"90px\",e.style.width=\"100%\";break;case n.Cb.BOTTOM:default:e.style.bottom=\"0px\",e.style.height=\"90px\",e.style.width=\"100%\"}return e}function d(t){var e=[];return t.forEach((function(t,r){var o=document.createElement(\"div\"),i=\"\".concat(n.Qh).concat(r);o.id=i,o.style.position=\"absolute\",o.style.zIndex=\"9999\",t.width&&(o.style.width=t.width),t.height&&(o.style.height=t.height),t.top&&(o.style.top=t.top),t.bottom&&(o.style.bottom=t.bottom),t.left&&(o.style.left=t.left),t.right&&(o.style.right=t.right),document.body.appendChild(o),e.push(i)})),e}function y(){document.querySelectorAll('[id^=\"'.concat(n.Qh,'\"]')).forEach((function(t){return t.remove()}))}function m(){var t=document.createElement(\"div\");t.style.position=\"fixed\",t.style.top=\"0\",t.style.left=\"0\",t.style.width=\"100vw\",t.style.height=\"100vh\",t.style.backgroundColor=\"rgba(0, 0, 0, 0.5)\",t.style.display=\"flex\",t.style.justifyContent=\"center\",t.style.alignItems=\"center\",t.style.zIndex=\"9999\",t.id=\"loading-overlay\";var e=document.createElement(\"div\");return e.style.fontSize=\"24px\",e.style.color=\"#fff\",e.innerText=\"Loading...\",t.appendChild(e),t}function v(){if(!document.getElementById(\"bridge-orientation-overlay-styles\")){var t=document.createElement(\"style\");t.id=\"bridge-orientation-overlay-styles\",t.textContent=\"\\n #\".concat(n.Uw,\" {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 100vw;\\n height: 100vh;\\n background-color: rgba(0, 0, 0, 0.95);\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n align-items: center;\\n z-index: 9999999;\\n }\\n\\n #bridge-orientation-icon {\\n width: 80px;\\n height: 80px;\\n animation: bridge-rotate-phone 1.5s ease-in-out infinite;\\n }\\n\\n #bridge-orientation-message {\\n color: #fff;\\n font-size: 18px;\\n font-family: Arial, sans-serif;\\n margin-top: 20px;\\n text-align: center;\\n }\\n\\n @keyframes bridge-rotate-phone {\\n 0%, 100% { transform: rotate(0deg); }\\n 50% { transform: rotate(90deg); }\\n }\\n \"),document.head.appendChild(t)}var e=document.createElement(\"div\");e.id=n.Uw;var r=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");r.setAttribute(\"id\",\"bridge-orientation-icon\"),r.setAttribute(\"viewBox\",\"0 0 24 24\"),r.setAttribute(\"fill\",\"none\"),r.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\"),r.innerHTML='\\n \\n \\n ';var o=document.createElement(\"div\");return o.id=\"bridge-orientation-message\",o.innerText=\"Please rotate your device\",e.appendChild(r),e.appendChild(o),e}function g(t){if(!document.getElementById(\"bridge-info-popup-styles\")){var e=document.createElement(\"style\");e.id=\"bridge-info-popup-styles\",e.textContent=\"\\n #bridge-info-popup-overlay {\\n position: fixed;\\n inset: 0;\\n display: none;\\n align-items: center;\\n justify-content: center;\\n padding: 18px;\\n background: rgba(0, 0, 0, 0.24);\\n z-index: 9999;\\n }\\n\\n #bridge-info-popup {\\n width: min(92vw, 320px);\\n padding: 24px 20px 20px;\\n border-radius: 26px;\\n background: #ffffff;\\n color: #24304d;\\n text-align: center;\\n box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);\\n font-family: Inter, Arial, sans-serif;\\n }\\n\\n #bridge-info-popup-emoji {\\n font-size: 42px;\\n margin-bottom: 10px;\\n line-height: 1;\\n }\\n\\n #bridge-info-popup-title {\\n margin: 0 0 10px;\\n font-size: 24px;\\n line-height: 1.1;\\n }\\n\\n #bridge-info-popup-message {\\n margin: 0 0 18px;\\n font-size: 15px;\\n line-height: 1.45;\\n color: #66708b;\\n }\\n\\n #bridge-info-popup-button {\\n min-width: 140px;\\n height: 46px;\\n padding: 0 24px;\\n border: 0;\\n border-radius: 999px;\\n font-weight: 700;\\n font-size: 15px;\\n color: #ffffff;\\n background: linear-gradient(180deg, #5f8cff, #4c71e6);\\n box-shadow: 0 8px 20px rgba(76, 113, 230, 0.32);\\n cursor: pointer;\\n font-family: Inter, Arial, sans-serif;\\n }\\n\\n #bridge-info-popup-button:active {\\n transform: translateY(1px);\\n }\",document.head.appendChild(e)}var r=document.getElementById(\"bridge-info-popup-overlay\");r||((r=document.createElement(\"div\")).id=\"bridge-info-popup-overlay\",document.body.appendChild(r));var n=document.getElementById(\"bridge-info-popup\");n||((n=document.createElement(\"div\")).id=\"bridge-info-popup\",r.appendChild(n)),n.innerHTML=\"\";var o=document.createElement(\"div\");o.id=\"bridge-info-popup-emoji\",o.textContent=\"🎬\",n.appendChild(o);var i=document.createElement(\"h3\");i.id=\"bridge-info-popup-title\",i.textContent=t,n.appendChild(i);var a=document.createElement(\"button\");return a.id=\"bridge-info-popup-button\",a.textContent=\"Continue\",n.appendChild(a),new Promise((function(t){a.onclick=function(){r.style.display=\"none\",t()},r.style.display=\"flex\"}))}function _(){if(!document.getElementById(\"bridge-ad-failure-popup-fonts\")){var t=document.createElement(\"link\");t.rel=\"preconnect\",t.href=\"https://fonts.googleapis.com\",document.head.appendChild(t);var e=document.createElement(\"link\");e.rel=\"preconnect\",e.href=\"https://fonts.gstatic.com\",e.crossOrigin=\"anonymous\",document.head.appendChild(e);var r=document.createElement(\"link\");r.id=\"bridge-ad-failure-popup-fonts\",r.rel=\"stylesheet\",r.href=\"https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap\",document.head.appendChild(r)}if(!document.getElementById(\"bridge-ad-failure-popup-styles\")){var n=document.createElement(\"style\");n.id=\"bridge-ad-failure-popup-styles\",n.textContent=\"\\n #bridge-ad-failure-popup {\\n position: fixed;\\n top: 0;\\n left: 0;\\n height: 100%;\\n width: 100%;\\n box-sizing: border-box;\\n padding: 24px 16px;\\n background: #682eb2;\\n display: none;\\n grid-template-columns: 1fr 1fr;\\n grid-template-rows: 32px 1fr;\\n z-index: 9999999;\\n font-family: 'Cal Sans', -apple-system, BlinkMacSystemFont, sans-serif;\\n color: #fff;\\n cursor: pointer;\\n }\\n\\n #bridge-ad-failure-popup-logo {\\n height: 32px;\\n }\\n\\n #bridge-ad-failure-popup-close {\\n all: unset;\\n cursor: pointer;\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n width: 32px;\\n height: 32px;\\n background: #fff;\\n border-radius: 50%;\\n justify-self: end;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n grid-column: span 2;\\n font-size: 21px;\\n font-style: normal;\\n font-weight: 400;\\n line-height: 110%;\\n align-self: end;\\n margin: 0;\\n }\\n\\n @media (min-width: 320px) {\\n #bridge-ad-failure-popup {\\n padding: 24px;\\n grid-template-rows: 40px 1fr;\\n }\\n\\n #bridge-ad-failure-popup-logo {\\n height: 40px;\\n }\\n\\n #bridge-ad-failure-popup-close {\\n width: 40px;\\n height: 40px;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n font-size: 25px;\\n align-self: center;\\n }\\n }\\n\\n @media (orientation: landscape) {\\n #bridge-ad-failure-popup {\\n gap: 40px;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n width: 60%;\\n align-self: start;\\n }\\n }\\n\\n @media (orientation: landscape) and (min-width: 800px) {\\n #bridge-ad-failure-popup {\\n gap: 80px;\\n }\\n\\n #bridge-ad-failure-popup-text {\\n width: 50%;\\n font-size: 33px;\\n }\\n }\\n \",document.head.appendChild(n)}var o=document.getElementById(\"bridge-ad-failure-popup\");if(!o){(o=document.createElement(\"div\")).id=\"bridge-ad-failure-popup\";var i=document.createElement(\"div\");i.innerHTML='\\n \\n \\n \\n \\n ',o.appendChild(i);var a=document.createElement(\"button\");a.id=\"bridge-ad-failure-popup-close\",a.innerHTML='\\n \\n \\n \\n ',o.appendChild(a);var s=document.createElement(\"p\");s.id=\"bridge-ad-failure-popup-text\",o.appendChild(s),document.body.appendChild(o)}var u=document.getElementById(\"bridge-ad-failure-popup-close\");return new Promise((function(t){var e=function(){o.style.display=\"none\",t()};u.onclick=e,o.onclick=e;var r=[\"If you see this message, no Ad was returned for the Ad request.

Please ask the developer to check the Ad setup.\",\"This is placeholder for the Ad. Playgama helps games reach players worldwide.\"];document.getElementById(\"bridge-ad-failure-popup-text\").innerHTML=r[Math.floor(Math.random()*r.length)],o.style.display=\"grid\"}))}function b(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement(\"style\");r.textContent=\"\\n .fullscreen {\\n background: #242424;\\n width: 100vw;\\n height: 100vh;\\n position: absolute;\\n top: 0px;\\n left: 0px;\\n }\\n\\n #loading-overlay {\\n font-size: 20px;\\n z-index: 1;\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n align-items: center;\\n }\\n\\n #logo {\\n width: 10%;\\n max-width: 300px;\\n min-width: 120px;\\n overflow: visible;\\n }\\n\\n #loading-hint {\\n width: 8%;\\n max-width: 240px;\\n min-width: 96px;\\n margin-top: clamp(17px, 1.7vw, 33px);\\n text-align: center;\\n color: #aa76ff;\\n font-size: clamp(11px, 1.3vw, 16px);\\n font-family: -apple-system, BlinkMacSystemFont, sans-serif;\\n letter-spacing: 0.04em;\\n white-space: nowrap;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n transition: opacity 0.4s ease;\\n }\\n\\n .fill-rect {\\n transform: translateY(100%);\\n transition: transform 0.3s ease-out;\\n }\\n\\n #gradientMover {\\n display: none;\\n }\\n\\n .gradient-mover {\\n animation: moveGradient 0.4s linear;\\n }\\n\\n @keyframes moveGradient {\\n 0% { transform: translateX(0); }\\n 100% { transform: translateX(-250%); }\\n }\\n\\n .logo-fade-out {\\n animation: logoFadeOut 1s linear;\\n }\\n\\n .logo-fade-out path {\\n fill: white;\\n stroke: white;\\n }\\n\\n @keyframes logoFadeOut {\\n 0% { opacity: 1; }\\n 50% { opacity: 0; }\\n 100% { opacity: 0; }\\n }\\n \",document.head.appendChild(r);var n=document.createElement(\"div\");n.id=\"loading-overlay\",n.className=\"fullscreen\",document.body.appendChild(n);var a=!1===t?{viewBox:\"0 0 633 819\",paths:[\"M632 1V632H1V1H632ZM350 125.586V507.414L380.586 538H546V451H478.599L478.308 451.278L454.598 474H443.406L450.944 452.328L451 452.169V187.459L457.369 182H546V95H380.586L350 125.586ZM283 125.586L252.414 95H87V182H175.631L182 187.459V445.54L175.631 451H87V538H252.414L283 507.414V125.586Z\",\"M633 687V660H548V687H560V791H548V819H633V792H601L592 801H587L590 792V752H627V725H590V687H633Z\",\"M533 718V675L518 660H450L435 675V802L450 819H518L533 804V734H482V761H503V788L499 792H476L467 801H462L465 792V691L469 687H499L503 691V718H533Z\",\"M402 660H310V687H322V792H310V819H402L417 804V675L402 660ZM387 788L383 792H363L354 801H349L352 792V687H383L387 691V788Z\",\"M295 687V660H239V687H251V792H239V819H295V792H283V687H295Z\",\"M215 791L200 760H209L224 745V675L209 660H121V687H132V792H121V819H162V760H166L193 819H227V791H215ZM194 729L190 733H173L164 742H159L162 733V687H190L194 691V729Z\",\"M106 724V675L91 660H0V687H12V792H0V819H91L106 804V749L89 744V728L106 724ZM73 788L69 792H53L44 801H39L42 792V752H73V788ZM73 725H53L44 734H39L42 725V687H69L73 691V725Z\"],fillColor:\"#aa76ff\",strokeColor:\"#aa76ff\",gradientStops:[{offset:\"0.235577\",color:\"#aa76ff\"},{offset:\"0.240685\",color:\"white\"},{offset:\"0.659749\",color:\"#aa76ff\"}]}:{viewBox:\"0 0 633 986\",paths:[\"M224.044 880.996V933.01H247.059V880.996H269.036V954.011C269.036 972.997 256.033 986 234.056 986H202.067V967.991H231.064C242.053 967.991 247.059 960.97 247.059 952.973V949.981H202.067V880.996H224.044Z\",{d:\"M355.051 880.996V952.912C355.051 971.959 340.094 985.939 320.071 985.939H289.059V966.953H319.033C328.007 966.953 333.013 960.97 333.013 952.973V949.981H317.019C297.972 949.981 281.001 935.024 281.001 915C281.001 896.014 298.033 880.996 317.019 880.996H355.051ZM320.01 897.968C310.975 897.968 304.992 904.927 304.992 914.939C304.992 925.928 311.036 932.949 320.01 932.949H333.013V897.968H320.01Z\",fillRule:\"evenodd\"},{d:\"M34.0643 880.996C53.05 880.996 71.0593 895.953 71.0593 915C71.0593 934.963 53.05 949.981 34.0643 949.981H22.0378V970.982H0.0608089V880.996H34.0643ZM22.0378 897.968V932.949H32.0498C41.0238 932.949 47.0672 925.989 47.0672 914.939C47.0672 904.989 41.0238 897.968 32.0498 897.968H22.0378Z\",fillRule:\"evenodd\"},\"M105.062 870.007V949.981H81.0707V870.007H105.062Z\",{d:\"M187.049 880.996V949.981H152.069C133.022 949.981 116.051 935.024 116.051 915C116.051 896.014 133.083 880.996 152.069 880.996H187.049ZM154.999 897.968C145.964 897.968 139.981 904.927 139.981 914.939C139.981 925.928 146.025 932.949 154.999 932.949H165.011V897.968H154.999Z\",fillRule:\"evenodd\"},{d:\"M436 880.996V949.981H401.02C381.973 949.981 365.002 935.024 365.002 915C365.002 896.014 382.034 880.996 401.02 880.996H436ZM404.011 897.968C394.976 897.968 388.994 904.927 388.994 914.939C388.994 925.928 395.037 932.949 404.011 932.949H414.023V897.968H404.011Z\",fillRule:\"evenodd\"},\"M521.039 880.996C538.987 880.996 551.99 894 551.99 912.009V949.981H530.013V908.957C530.013 903.951 525.984 897.968 520.001 897.968H512.004V949.981H490.027V897.968H472.018V949.981H450.041V880.996H521.039Z\",{d:\"M633 880.996V949.981H598.019C579.034 949.981 563.039 935.024 563.039 915C563.039 896.014 579.034 880.996 598.019 880.996H633ZM603.025 897.968C593.014 897.968 587.031 904.927 587.031 914.939C587.031 925.928 593.014 932.949 603.025 932.949H611.023V897.968H603.025Z\",fillRule:\"evenodd\"},\"M522.993 663.967L538.01 678.986V732.037H504.068V695.041L500.038 691.012H482.029L478.001 695.041V829.044L475.009 838.018H480.015L488.989 829.044H499.978L504.007 825.015V775.015H491.004V748.032H538.01V841.009L522.993 856.027H459.015L443.997 838.994V678.986L459.015 663.967H522.993Z\",\"M633 664.029V691.073H601.011V739.057H627.017V766.041H601.011V829.044L598.019 838.018H603.025L611.999 829.044H633V856.027H553.028V828.006H567.007V691.012H553.028V664.029H633Z\",{d:\"M89.0069 664.029L104.025 679.046V738.02L87.0533 741.927V757.922L104.025 762.928V840.948L89.0069 855.966H0V828.983H13.9801V691.012H0V664.029H89.0069ZM47.983 765.98V828.983L44.992 837.956H49.998L59.0329 828.983H65.9919L70.0214 824.953H69.96V765.98H47.983ZM47.983 691.012V738.997L44.992 747.971H49.998L59.0329 738.997H70.0214V695.041L65.9919 691.012H47.983Z\",fillRule:\"evenodd\"},{d:\"M210.003 664.029L225.02 679.046V759.02L210.003 774.039L217.023 828.006V827.945H227.951V855.966H184.973L176.976 773.977H166.964V855.966H118.981V828.983H132.961V691.012H118.981V664.029H210.003ZM167.025 691.012V746.994L164.034 755.968H169.04L178.014 746.994H186.988L191.017 742.965H191.078V695.041L187.049 691.012H167.025Z\",fillRule:\"evenodd\"},\"M302.001 664.029V691.012H288.021V828.983H302.001V855.966H239.977V828.983H253.957V691.012H239.977V664.029H302.001Z\",{d:\"M411.032 663.967L426.05 678.924V840.887L411.032 855.905H317.019V828.921H330.999V690.951H317.019V663.967H411.032ZM365.002 691.012V828.983L362.011 837.956H367.017L376.052 828.983H388.078L392.046 824.953H391.985V695.041L388.017 691.012H365.002Z\",fillRule:\"evenodd\"},{d:\"M633 0V635.946H0.0608089V0H633ZM88.0298 92.0008V177.042H176.06L183.02 183.024V446.023L176.06 452.006H88.0298V536.986H252.003L252.004 536.986H252.065L282.039 507.011V121.976L252.065 92.0008H88.0298ZM382.034 92.0008L351.999 122.037V507.011L382.034 536.986H546.007L546.008 452.006H480.015L456.024 475.021H443.021L451.018 452.006V183.024L458.038 177.042H546.008V92.0616L546.007 92.0008H382.034Z\",fillRule:\"evenodd\"}],fillColor:\"#aa76ff\",strokeColor:\"#aa76ff\",gradientStops:[{offset:\"0.235577\",color:\"#aa76ff\"},{offset:\"0.240685\",color:\"white\"},{offset:\"0.659749\",color:\"#aa76ff\"}]};a.gradientWidthMultiplier=4;var s=i(a.viewBox.split(/[ ,]+/),4),u=s[2],c=s[3],l=Number(u),f=Number(c),p=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");p.setAttribute(\"id\",\"logo\"),p.setAttribute(\"viewBox\",a.viewBox),p.setAttribute(\"fill\",\"none\"),p.setAttribute(\"xmlns\",\"http://www.w3.org/2000/svg\");var h=document.createElementNS(p.namespaceURI,\"defs\"),d=document.createElementNS(p.namespaceURI,\"mask\");d.setAttribute(\"id\",\"logo-mask\");var y=document.createElementNS(p.namespaceURI,\"rect\");y.setAttribute(\"x\",\"0\"),y.setAttribute(\"y\",\"0\"),y.setAttribute(\"width\",\"100%\"),y.setAttribute(\"height\",\"100%\"),y.setAttribute(\"fill\",\"black\"),d.appendChild(y),a.paths.forEach((function(t){var e=document.createElementNS(p.namespaceURI,\"path\");e.setAttribute(\"d\",\"string\"==typeof t?t:t.d),e.setAttribute(\"fill\",\"object\"===o(t)&&t.maskFill?t.maskFill:\"white\"),\"object\"===o(t)&&t.fillRule&&e.setAttribute(\"fill-rule\",t.fillRule),d.appendChild(e)})),h.appendChild(d);var m=document.createElementNS(p.namespaceURI,\"linearGradient\");m.setAttribute(\"id\",\"shineGradient\"),m.setAttribute(\"x1\",String(2*l)),m.setAttribute(\"y1\",\"0\"),m.setAttribute(\"x2\",String(3*l)),m.setAttribute(\"y2\",String(f)),m.setAttribute(\"gradientUnits\",\"userSpaceOnUse\"),a.gradientStops.forEach((function(t){var e=t.offset,r=t.color,n=document.createElementNS(p.namespaceURI,\"stop\");n.setAttribute(\"offset\",e),n.setAttribute(\"stop-color\",r),m.appendChild(n)})),h.appendChild(m),p.appendChild(h);var v=document.createElementNS(p.namespaceURI,\"g\");v.setAttribute(\"mask\",\"url(#logo-mask)\");var g=document.createElementNS(p.namespaceURI,\"rect\");g.setAttribute(\"id\",\"gradientMover\"),g.setAttribute(\"x\",\"0\"),g.setAttribute(\"y\",\"0\"),g.setAttribute(\"width\",String(l*a.gradientWidthMultiplier)),g.setAttribute(\"height\",String(f)),g.setAttribute(\"fill\",\"url(#shineGradient)\"),g.style.transform=\"translateX(0)\",v.appendChild(g),p.appendChild(v);var _=document.createElementNS(p.namespaceURI,\"g\");_.setAttribute(\"mask\",\"url(#logo-mask)\");var b=document.createElementNS(p.namespaceURI,\"rect\");b.setAttribute(\"id\",\"fillRect\"),b.setAttribute(\"class\",\"fill-rect\"),b.setAttribute(\"x\",\"0\"),b.setAttribute(\"y\",\"0\"),b.setAttribute(\"width\",\"100%\"),b.setAttribute(\"height\",String(f)),b.setAttribute(\"fill\",a.fillColor),_.appendChild(b),p.appendChild(_);var S=String(Math.round(3*l/633));if(a.paths.forEach((function(t){if(\"object\"!==o(t)||\"black\"!==t.maskFill){var e=document.createElementNS(p.namespaceURI,\"path\");e.setAttribute(\"d\",\"string\"==typeof t?t:t.d),e.setAttribute(\"stroke\",a.strokeColor),e.setAttribute(\"stroke-width\",S),\"object\"===o(t)&&t.fillRule&&e.setAttribute(\"fill-rule\",t.fillRule),p.appendChild(e)}})),n.appendChild(p),e){var E=[\"Loading GPU\",\"Parsing AST\",\"Linking libs\",\"Baking mesh\",\"Warming JIT\",\"Tracing rays\",\"Packing data\",\"Flushing GPU\",\"Loading WASM\",\"Alloc memory\",\"Init shaders\",\"Optimize FPS\",\"Sync textures\",\"Build navmesh\",\"Compile code\",\"Load physics\",\"Stream assets\",\"Cache buffers\",\"Map controls\",\"Decode audio\",\"Init network\",\"Setup scene\"],w=document.createElement(\"div\");w.id=\"loading-hint\",w.style.opacity=\"0\";var P=Math.floor(Math.random()*E.length);w.textContent=E[P],n.appendChild(w);var A=function(){return 1e3*(2+Math.random())},O=null,T=function t(){O=setTimeout((function(){w.style.opacity=\"0\",setTimeout((function(){P=(P+1)%E.length,w.textContent=E[P],w.style.opacity=\"1\",t()}),400)}),A())};O=setTimeout((function(){w.style.opacity=\"1\",T()}),A());var k=new MutationObserver((function(t){t.forEach((function(t){t.removedNodes.forEach((function(t){t===n&&(clearTimeout(O),k.disconnect())}))}))}));k.observe(document.body,{childList:!0})}}var S=function(){for(var t=arguments.length,e=new Array(t),r=0;r2&&void 0!==arguments[2]&&arguments[2];if(Array.isArray(t))return t.reduce((function(t,n,o){if(t[o]=w(e,n),r)try{t[o]=JSON.parse(t[o])}catch(t){}return t}),new Array(t.length));var n=w(e,t);if(r&&\"string\"==typeof n)try{n=JSON.parse(n)}catch(t){}return n}function A(t,e){for(var r=u({},t),n=Object.keys(e),o=0;oe.indexOf(\".\")?parseFloat(e.replace(/\\./g,\"\").replace(\",\",\".\")):e.includes(\",\")&&-1!==e.lastIndexOf(\",\")&&e.lastIndexOf(\",\")===e.length-4?parseInt(e.replace(/,/,\"\"),10):e.includes(\",\")&&-1!==e.lastIndexOf(\",\")&&e.lastIndexOf(\",\")!==e.length-3?parseFloat(e.replace(\",\",\".\")):e.includes(\".\")&&-1!==e.lastIndexOf(\".\")&&e.lastIndexOf(\".\")===e.length-4?parseInt(e.replace(/\\./,\"\"),10):e.includes(\".\")?parseFloat(e):parseInt(e,10)}function T(){var t=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",e=Array.from({length:8},(function(){return t.charAt(Math.floor(62*Math.random()))})).join(\"\"),r=Date.now().toString(36);return\"\".concat(e).concat(r)}function k(){var t,e=\"bridge_player_guest_id\";try{t=localStorage.getItem(e)}catch(t){}if(!t){t=T();try{localStorage.setItem(e,t)}catch(t){}}return{id:t,name:\"Guest \".concat(t)}}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"*\";window.parent&&window.parent[l](t,e)}function I(t){window.system&&window.system[l](t)}function R(t){window.chrome&&window.chrome.webview&&\"function\"==typeof window.chrome.webview.postMessage&&window.chrome.webview[l](t)}function L(){return window.innerHeight>window.innerWidth?n.AR.PORTRAIT:n.AR.LANDSCAPE}function j(){var t=document.createElement(\"div\");t.style.cssText=\"position:fixed;top:env(safe-area-inset-top);bottom:env(safe-area-inset-bottom);left:env(safe-area-inset-left);right:env(safe-area-inset-right);pointer-events:none;visibility:hidden;\",document.body.appendChild(t);var e=t.getBoundingClientRect(),r={top:e.top,bottom:window.innerHeight-e.bottom,left:e.left,right:window.innerWidth-e.right};return t.remove(),r}function M(){var t=document.createElement(\"style\");t.id=\"bridge-safe-area-styles\",t.textContent=\"\\n html, body {\\n height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));\\n padding-top: env(safe-area-inset-top);\\n padding-bottom: env(safe-area-inset-bottom);\\n box-sizing: border-box;\\n }\\n \",document.head.appendChild(t)}function N(){return document.querySelector(\"canvas\")}},843:(t,e,r)=>{r.d(e,{AR:()=>_,Cb:()=>p,Dt:()=>S,Kk:()=>f,Lb:()=>i,Lh:()=>g,Mn:()=>w,Qh:()=>y,T2:()=>o,Uw:()=>b,W1:()=>s,WA:()=>c,YU:()=>u,Z:()=>E,_g:()=>d,b3:()=>l,b9:()=>n,bD:()=>m,me:()=>v,oF:()=>a,pn:()=>P,qV:()=>h});var n=\"https://playgama.com/api/bridge/v1\",o=\"https://playgama.com/api/v1/timestamp/now\",i={VK:\"vk\",OK:\"ok\",YANDEX:\"yandex\",CRAZY_GAMES:\"crazy_games\",ABSOLUTE_GAMES:\"absolute_games\",GAME_DISTRIBUTION:\"game_distribution\",PLAYGAMA:\"playgama\",PLAYDECK:\"playdeck\",TELEGRAM:\"telegram\",Y8:\"y8\",LAGGED:\"lagged\",FACEBOOK:\"facebook\",POKI:\"poki\",MOCK:\"mock\",QA_TOOL:\"qa_tool\",MSN:\"msn\",MICROSOFT_STORE:\"microsoft_store\",HUAWEI:\"huawei\",BITQUEST:\"bitquest\",GAMEPUSH:\"gamepush\",DISCORD:\"discord\",JIO_GAMES:\"jio_games\",YOUTUBE:\"youtube\",PORTAL:\"portal\",REDDIT:\"reddit\",XIAOMI:\"xiaomi\",TIKTOK:\"tiktok\",DLIGHTEK:\"dlightek\",GAMESNACKS:\"gamesnacks\"},a={CORE:\"core\",PLATFORM:\"platform\",PLAYER:\"player\",GAME:\"game\",STORAGE:\"storage\",ADVERTISEMENT:\"advertisement\",SOCIAL:\"social\",DEVICE:\"device\",LEADERBOARDS:\"leaderboards\",PAYMENTS:\"payments\",REMOTE_CONFIG:\"remote_config\",CLIPBOARD:\"clipboard\",ACHIEVEMENTS:\"achievements\",ANALYTICS:\"analytics\",RECORDER:\"recorder\"},s={INTERSTITIAL_STATE_CHANGED:\"interstitial_state_changed\",REWARDED_STATE_CHANGED:\"rewarded_state_changed\",BANNER_STATE_CHANGED:\"banner_state_changed\",ADVANCED_BANNERS_STATE_CHANGED:\"advanced_banners_state_changed\",VISIBILITY_STATE_CHANGED:\"visibility_state_changed\",AUDIO_STATE_CHANGED:\"audio_state_changed\",PAUSE_STATE_CHANGED:\"pause_state_changed\",ORIENTATION_STATE_CHANGED:\"orientation_state_changed\",SCREEN_SIZE_CHANGED:\"screen_size_changed\",PLATFORM_MESSAGE_SENT:\"platform_message_sent\"},u={VISIBLE:\"visible\",HIDDEN:\"hidden\"},c={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\"},l={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\",REWARDED:\"rewarded\"},f={LOADING:\"loading\",SHOWN:\"shown\",HIDDEN:\"hidden\",FAILED:\"failed\"},p={TOP:\"top\",BOTTOM:\"bottom\"},h={SHOW:\"show\",HIDE:\"hide\"},d=\"banner-container\",y=\"advanced-banner-\",m={LOCAL_STORAGE:\"local_storage\",PLATFORM_INTERNAL:\"platform_internal\"},v={DESKTOP:\"desktop\",MOBILE:\"mobile\",TABLET:\"tablet\",TV:\"tv\"},g={WINDOWS:\"windows\",MACOS:\"macos\",LINUX:\"linux\",ANDROID:\"android\",IOS:\"ios\",OTHER:\"other\"},_={PORTRAIT:\"portrait\",LANDSCAPE:\"landscape\"},b=\"bridge-orientation-overlay\",S={GAME_READY:\"game_ready\",LEVEL_STARTED:\"level_started\",LEVEL_COMPLETED:\"level_completed\",LEVEL_FAILED:\"level_failed\",LEVEL_PAUSED:\"level_paused\",LEVEL_RESUMED:\"level_resumed\",IN_GAME_LOADING_STARTED:\"in_game_loading_started\",IN_GAME_LOADING_STOPPED:\"in_game_loading_stopped\",GAMEPLAY_STARTED:\"gameplay_started\",GAMEPLAY_STOPPED:\"gameplay_stopped\",PLAYER_GOT_ACHIEVEMENT:\"player_got_achievement\"},E={NOT_AVAILABLE:\"not_available\",IN_GAME:\"in_game\",NATIVE:\"native\",NATIVE_POPUP:\"native_popup\"},w={INITIALIZE:\"initialize\",AUTHORIZE_PLAYER:\"authorize_player\",SHARE:\"share\",INVITE_FRIENDS:\"invite_friends\",JOIN_COMMUNITY:\"join_community\",CREATE_POST:\"create_post\",ADD_TO_HOME_SCREEN:\"add_to_home_screen\",ADD_TO_FAVORITES:\"add_to_favorites\",RATE:\"rate\",LEADERBOARDS_SET_SCORE:\"leaderboards_set_score\",LEADERBOARDS_GET_ENTRIES:\"leaderboards_get_entries\",LEADERBOARDS_SHOW_NATIVE_POPUP:\"leaderboards_show_native_popup\",GET_PURCHASES:\"get_purchases\",GET_CATALOG:\"get_catalog\",PURCHASE:\"purchase\",CONSUME_PURCHASE:\"consume_purchase\",GET_REMOTE_CONFIG:\"get_remote_config\",GET_STORAGE_DATA:\"get_storage_data\",SET_STORAGE_DATA:\"set_storage_data\",DELETE_STORAGE_DATA:\"delete_storage_data\",CLIPBOARD_WRITE:\"clipboard_write\",ADBLOCK_DETECT:\"adblock_detect\",SET_INTERSTITIAL_STATE:\"set_interstitial_state\",SET_REWARDED_STATE:\"set_rewarded_state\",SHOW_INTERSTITIAL:\"show_interstitial\",SHOW_REWARDED:\"show_rewarded\"},P={SDK_NOT_INITIALIZED:{message:\"Before using the SDK you must initialize it\"},STORAGE_NOT_SUPPORTED:{message:\"Storage not supported\"},STORAGE_NOT_AVAILABLE:{message:\"Storage not available\"},GAME_PARAMS_NOT_FOUND:{message:\"Game params are not found\"},INVITE_FRIENDS_MESSAGE_LENGTH_ERROR:{message:\"Message is too long\"}}},784:(t,e,r)=>{r.d(e,{Z:()=>St});var n=r(843);const o={i8:\"1.30.0\"};var i=r(383),a=r(23);function s(t){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},s(t)}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,a,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,a)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==s(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,u)}),(function(t){r(\"throw\",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r(\"throw\",t,a,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function c(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{};return{event_name:t,timestamp:new Date(Date.now()+w(this,B)).toISOString(),data:e}}function at(){var t,e;return{bridge_version:o.i8,platform_id:this._platformBridge.platformId,game_id:w(this,L),session_id:w(this,M),player_id:this._platformBridge.playerId,player_guest_id:w(this,j),device_type:this._platformBridge.deviceType,device_os:this._platformBridge.deviceOs,clid:null!==(t=null===(e=this._platformBridge.additionalData)||void 0===e?void 0:e.clid)&&void 0!==t?t:\"\"}}function st(t){return ut.apply(this,arguments)}function ut(){return(ut=h(u().mark((function t(e){var r,n,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=JSON.stringify(e),n=new Blob([r]).stream(),o=n.pipeThrough(new CompressionStream(\"gzip\")),t.abrupt(\"return\",new Response(o).blob());case 4:case\"end\":return t.stop()}}),t)})))).apply(this,arguments)}function ct(){return this._platformBridge.platformId===n.Lb.DISCORD?k:T}function lt(t){return{meta:P(this,V,at).call(this),events:t}}function ft(){return pt.apply(this,arguments)}function pt(){return(pt=h(u().mark((function t(){var e;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==w(this,I).length&&!w(this,C)){t.next=2;break}return t.abrupt(\"return\");case 2:return e=l(w(this,I)),A(this,I,[]),t.next=6,P(this,J,ht).call(this,P(this,Y,lt).call(this,e));case 6:t.sent||w(this,C)||A(this,I,[].concat(l(e),l(w(this,I))));case 8:case\"end\":return t.stop()}}),t,this)})))).apply(this,arguments)}function ht(t){return dt.apply(this,arguments)}function dt(){return(dt=h(u().mark((function t(e){var r,n,o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r={\"Content-Type\":\"application/json\"},!w(this,F)){t.next=16;break}return t.prev=3,r[\"Content-Encoding\"]=\"gzip\",t.next=7,P(this,Z,st).call(this,e);case 7:n=t.sent,t.next=14;break;case 10:t.prev=10,t.t0=t.catch(3),delete r[\"Content-Encoding\"],n=JSON.stringify(e);case 14:t.next=17;break;case 16:n=JSON.stringify(e);case 17:return t.next=19,fetch(P(this,z,ct).call(this),{method:\"POST\",headers:r,body:n});case 19:if((o=t.sent).ok){t.next=22;break}throw new Error(\"Network response was not ok: \".concat(o.status));case 22:return A(this,N,0),t.abrupt(\"return\",!0);case 26:return t.prev=26,t.t1=t.catch(0),A(this,N,w(this,N)+1),w(this,N)>=D&&P(this,Q,vt).call(this),t.abrupt(\"return\",!1);case 31:case\"end\":return t.stop()}}),t,this,[[0,26],[3,10]])})))).apply(this,arguments)}function yt(){if(0!==w(this,I).length&&!w(this,C)){var t=l(w(this,I));A(this,I,[]);var e=P(this,z,ct).call(this),r=P(this,Y,lt).call(this,t),n=JSON.stringify(r);if(navigator.sendBeacon){var o=new Blob([n],{type:\"application/json\"});navigator.sendBeacon(e,o)}}}function mt(){var t=this;A(this,G,(function(){P(t,q,yt).call(t)})),A(this,x,(function(){\"hidden\"===document.visibilityState&&P(t,q,yt).call(t)})),document.addEventListener(\"visibilitychange\",w(this,x)),window.addEventListener(\"pagehide\",w(this,G))}function vt(){A(this,C,!0),A(this,I,[]),w(this,R)&&(clearInterval(w(this,R)),A(this,R,null)),w(this,x)&&(document.removeEventListener(\"visibilitychange\",w(this,x)),A(this,x,null)),w(this,G)&&(window.removeEventListener(\"pagehide\",w(this,G)),A(this,G,null))}function gt(){var t=this._platformBridge,e=t.options,r=t.platformId,o=c(c(c(c(c(c(c({},n.Lb.GAME_DISTRIBUTION,\"gameId\"),n.Lb.Y8,\"gameId\"),n.Lb.MSN,\"gameId\"),n.Lb.HUAWEI,\"appId\"),n.Lb.DISCORD,\"appId\"),n.Lb.GAMEPUSH,\"projectId\"),n.Lb.MICROSOFT_STORE,\"gameId\")[r];return(o?null==e?void 0:e[o]:null)||P(this,tt,_t).call(this,window.location.href)}function _t(t){try{var e=new URL(t),r=e.pathname.split(\"/\").filter(Boolean),o=this._platformBridge.platformId,i=c(c(c({},n.Lb.YANDEX,{pathKey:\"app\"}),n.Lb.LAGGED,{pathKey:\"g\"}),n.Lb.CRAZY_GAMES,{pathKey:\"game\"})[o];if(i){var a=r.indexOf(i.pathKey),s=-1!==a?r[a+1]:null;if(s)return s}if(o===n.Lb.XIAOMI)if(\"index.html\"===r[r.length-1]&&r.length>=2)return r[r.length-2];if(o===n.Lb.PLAYGAMA){if(e.searchParams.get(\"game_id\"))return e.searchParams.get(\"game_id\");var u=e.hostname.match(/^([a-z0-9-]+)\\.games\\.playgama\\.net$/i);if(u)return u[1]}}catch(t){return null}return null}function bt(){var t=this;w(this,R)||A(this,R,setInterval((function(){t.send(\"\".concat(n.oF.CORE,\"_ping\")),P(t,K,ft).call(t)}),15e3))}const St=new(function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&m(t,e)}(s,t);var e,r,o,a=v(s);function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s),b(g(t=a.call(this)),et),b(g(t),tt),b(g(t),$),b(g(t),Q),b(g(t),X),b(g(t),q),b(g(t),J),b(g(t),K),b(g(t),Y),b(g(t),z),b(g(t),Z),b(g(t),V),b(g(t),U),b(g(t),W),b(g(t),H),S(g(t),I,{writable:!0,value:[]}),S(g(t),R,{writable:!0,value:null}),S(g(t),L,{writable:!0,value:null}),S(g(t),j,{writable:!0,value:null}),S(g(t),M,{writable:!0,value:null}),S(g(t),N,{writable:!0,value:0}),S(g(t),C,{writable:!0,value:!1}),S(g(t),x,{writable:!0,value:null}),S(g(t),G,{writable:!0,value:null}),S(g(t),B,{writable:!0,value:0}),S(g(t),F,{writable:!0,value:\"undefined\"!=typeof CompressionStream}),A(g(t),M,P(g(t),H,rt).call(g(t))),t}return e=s,r=[{key:\"initialize\",value:function(t){var e;this._platformBridge=t,!1===(null===(e=this._platformBridge.options)||void 0===e?void 0:e.sendAnalyticsEvents)&&A(this,C,!0);var r=window.location.href;return(r.startsWith(\"file://\")||r.includes(\"localhost\")||r.includes(\"127.0.0.1\"))&&A(this,C,!0),P(this,W,nt).call(this),A(this,L,P(this,$,gt).call(this)),A(this,j,(0,i.my)().id),this.send(\"\".concat(n.oF.CORE,\"_initialization_started\")),P(this,et,bt).call(this),P(this,X,mt).call(this),this}},{key:\"send\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!w(this,C)){var r=P(this,U,it).call(this,t,e);w(this,I).push(r)}}}],r&&d(e.prototype,r),o&&d(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(a.Z))},66:(t,e,r)=>{r.d(e,{ZP:()=>V});var n=r(383),o=r(23);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=f(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(){u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a=\"function\"==typeof Symbol?Symbol:{},s=a.iterator||\"@@iterator\",c=a.asyncIterator||\"@@asyncIterator\",l=a.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,s)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,a,s,u){var c=h(t[o],t,a);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==i(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var a;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function c(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function l(t,e){for(var r=0;r1&&void 0!==i[1]?i[1]:{},b(this,j,e||S(this,I)),b(this,B,r),t.prev=3,b(this,R,P),t.next=7,fetch(S(this,j));case 7:if((n=t.sent).ok){t.next=10;break}throw new Error(\"Failed to load bridge config: \".concat(S(this,j),\" \").concat(n.status,\" (\").concat(n.statusText,\")\"));case 10:return t.next=12,n.text();case 12:o=t.sent,b(this,M,o),b(this,R,A),_(this,F,W).call(this,o),t.next=24;break;case 18:t.prev=18,t.t0=t.catch(3),_(this,H,U).call(this,S(this,B)),b(this,R,O),b(this,C,t.t0.message||String(t.t0)),console.error(t.t0);case 24:case\"end\":return t.stop()}}),t,this,[[3,18]])})),a=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=i.apply(t,e);function a(t){c(o,r,n,a,s,\"next\",t)}function s(t){c(o,r,n,a,s,\"throw\",t)}a(void 0)}))},function(t){return a.apply(this,arguments)})},{key:\"getPlatformOptions\",value:function(t){var e,r=null===(e=this.options.platforms)||void 0===e?void 0:e[t];return r?(0,n.RH)(this.options,r):this.options}}],r&&l(e.prototype,r),o&&l(e,o),Object.defineProperty(e,\"prototype\",{writable:!1}),f}(o.Z))},23:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(446);function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function i(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>b});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{r.r(e),r.d(e,{default:()=>P});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function f(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,s,\"next\",t)}function s(t){f(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function h(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>U});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{r.r(e),r.d(e,{default:()=>v});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{r.r(e),r.d(e,{default:()=>P});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>C});var n=r(640),o=r(383),i=r(843);function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},s=i.iterator||\"@@iterator\",u=i.asyncIterator||\"@@asyncIterator\",c=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,s,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,s)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,s){var u=h(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==l(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[s];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function s(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedInterstitialPromises[t])return this._preloadedInterstitialPromises[t];var r=null;return this._preloadedInterstitialPromises[t]=this._platformSdk.getInterstitialAdAsync(t).then((function(t){return r=t,t.loadAsync()})).then((function(){return r})).catch((function(){return e._preloadedInterstitialPromises[t]=null,Promise.reject()})),this._preloadedInterstitialPromises[t]}function j(t){var e=this;if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this._preloadedRewardedPromises[t])return this._preloadedRewardedPromises[t];var r=null;return this._preloadedRewardedPromises[t]=this._platformSdk.getRewardedVideoAsync(t).then((function(t){return r=t,t.loadAsync()})).then((function(){return r})).catch((function(){return e._preloadedRewardedPromises[t]=null,Promise.reject()})),this._preloadedRewardedPromises[t]}function M(){return N.apply(this,arguments)}function N(){var t;return t=a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._platformSdk.player.isSubscribedBotAsync();case 3:if(!t.sent){t.next=6;break}return t.abrupt(\"return\",Promise.resolve());case 6:t.next=14;break;case 8:if(t.prev=8,t.t0=t.catch(0),\"INVALID_OPERATION\"!==(null===t.t0||void 0===t.t0?void 0:t.t0.code)){t.next=13;break}t.next=14;break;case 13:throw new Error(t.t0);case 14:return t.prev=15,t.next=18,this._platformSdk.player.canSubscribeBotAsync();case 18:if(!t.sent){t.next=21;break}return t.abrupt(\"return\",this._platformSdk.player.subscribeBotAsync());case 21:t.next=28;break;case 23:if(t.prev=23,t.t1=t.catch(15),\"INVALID_OPERATION\"!==(null===t.t1||void 0===t.t1?void 0:t.t1.code)){t.next=27;break}return t.abrupt(\"return\",Promise.resolve());case 27:throw new Error(t.t1);case 28:return t.abrupt(\"return\",Promise.resolve());case 29:case\"end\":return t.stop()}}),t,this,[[0,8],[15,23]])})),N=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,u,\"next\",t)}function u(t){s(i,n,o,a,u,\"throw\",t)}a(void 0)}))},N.apply(this,arguments)}const C=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&y(t,e)}(s,t);var e,r,n,a=m(s);function s(){var t,e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s);for(var o=arguments.length,u=new Array(o),c=0;c\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n',\"\",{players:r},(function(t){t.showAsync(),e._overlay=t,n.remove(),e._resolvePromiseDecorator(i.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP)}),(function(t,r){n.remove(),e._rejectPromiseDecorator(i.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP,r)})).iframeElement;o.style.zIndex=9999,o.style.position=\"absolute\",o.style.top=0,o.style.left=0,o.style.height=\"100vh\",o.style.width=\"100vw\",o.style.border=0,o.id=o.name,document.body.appendChild(o)})).catch((function(t){n.remove(),e._rejectPromiseDecorator(i.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP,t)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(t){var e=this,r=this._paymentsGetProductPlatformData(t);r||(r={id:t});var n=this._getPromiseDecorator(i.Mn.PURCHASE);if(!n){n=this._createPromiseDecorator(i.Mn.PURCHASE);var o=r.platformProductId?r.platformProductId:r.id;this._platformSdk.payments.purchaseAsync({productID:o.toLowerCase()}).then((function(r){var n=c({id:t},r);delete n.productID,e._paymentsPurchases.push(n),e._resolvePromiseDecorator(i.Mn.PURCHASE,n)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.PURCHASE,t)}))}return n.promise}},{key:\"paymentsConsumePurchase\",value:function(t){var e=this,r=this._paymentsPurchases.findIndex((function(e){return e.id===t}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(i.Mn.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(i.Mn.CONSUME_PURCHASE),this._platformSdk.payments.consumePurchaseAsync(this._paymentsPurchases[r].purchaseToken).then((function(){e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(i.Mn.CONSUME_PURCHASE,{id:t})})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CONSUME_PURCHASE,t)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var t=this,e=this._paymentsGetProductsPlatformData();if(!e)return Promise.reject();var r=this._getPromiseDecorator(i.Mn.GET_CATALOG);return r||(r=this._createPromiseDecorator(i.Mn.GET_CATALOG),this._platformSdk.payments.getCatalogAsync().then((function(r){var n=e.map((function(t){var e=r.find((function(e){return e.productID===t.platformProductId}));return{id:t.id,title:e.title,description:e.description,imageURI:e.imageURI,price:e.price,priceCurrencyCode:e.priceCurrencyCode,priceValue:e.priceAmount}}));t._resolvePromiseDecorator(i.Mn.GET_CATALOG,n)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_CATALOG,e)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var t=this,e=this._getPromiseDecorator(i.Mn.GET_PURCHASES);return e||(e=this._createPromiseDecorator(i.Mn.GET_PURCHASES),this._platformSdk.payments.getPurchasesAsync().then((function(e){var r=t._paymentsGetProductsPlatformData();t._paymentsPurchases=e.map((function(t){var e=c({id:r.find((function(e){return e.id===t.productID})).id},t);return delete e.productID,e})),t._resolvePromiseDecorator(i.Mn.GET_PURCHASES,t._paymentsPurchases)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_PURCHASES,e)}))),e.promise}},{key:\"inviteFriends\",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.image||!e.text)return Promise.reject();if(!(0,o.dY)(e.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(i.Mn.INVITE_FRIENDS);return r||(r=this._createPromiseDecorator(i.Mn.INVITE_FRIENDS),this._platformSdk.inviteAsync(e).then((function(){t._resolvePromiseDecorator(i.Mn.INVITE_FRIENDS)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.INVITE_FRIENDS,e)}))),r.promise}},{key:\"joinCommunity\",value:function(t){var e=this,r=this._getPromiseDecorator(i.Mn.JOIN_COMMUNITY);return r||(r=this._createPromiseDecorator(i.Mn.JOIN_COMMUNITY),t&&!0===t.isPage?this._platformSdk.community.followOfficialPageAsync().then((function(t){return e._resolvePromiseDecorator(i.Mn.JOIN_COMMUNITY,t)})).catch((function(t){return e._rejectPromiseDecorator(i.Mn.JOIN_COMMUNITY,t)})):this._platformSdk.community.joinOfficialGroupAsync().then((function(t){return e._resolvePromiseDecorator(i.Mn.JOIN_COMMUNITY,t)})).catch((function(t){return e._rejectPromiseDecorator(i.Mn.JOIN_COMMUNITY,t)}))),r.promise}},{key:\"share\",value:function(t){var e=this;if(!t.image||!t.text)return Promise.reject();if(!(0,o.dY)(t.image))return Promise.reject(new Error(\"Image is not base64\"));var r=this._getPromiseDecorator(i.Mn.SHARE);return r||(r=this._createPromiseDecorator(i.Mn.SHARE),this._platformSdk.shareAsync(c({intent:\"REQUEST\"},t)).then((function(){e._resolvePromiseDecorator(i.Mn.SHARE)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.SHARE,t)}))),r.promise}}],r&&h(e.prototype,r),n&&h(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(n.Z)},441:(t,e,r)=>{r.r(e),r.d(e,{default:()=>g});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>S});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>b});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case i.Dt.GAME_READY:return this._platformSdk.game.ready(),Promise.resolve();case i.Dt.LEVEL_FAILED:return this._platformSdk.game.gameOver(),Promise.resolve();case i.Dt.LEVEL_COMPLETED:var r=Number(e.level);return Number.isFinite(r)?(this._platformSdk.game.levelComplete(r),Promise.resolve()):Promise.reject(new Error(\"Level is required for level_completed message\"));default:return u(p(b.prototype),\"sendMessage\",this).call(this,t,e)}}},{key:\"showInterstitial\",value:function(t){var e=this;this._platformSdk.ad.break({type:\"next\",name:t||\"interstitial\",beforeAd:function(){e._setInterstitialState(i.WA.OPENED)},afterAd:function(){e.interstitialState!==i.WA.FAILED&&e._setInterstitialState(i.WA.CLOSED)},adBreakDone:function(t){\"viewed\"!==(null==t?void 0:t.breakStatus)&&e._showAdFailurePopup(!1)}})}},{key:\"showRewarded\",value:function(t){var e=this;this._platformSdk.ad.break({type:\"reward\",name:t||\"rewarded\",beforeAd:function(){e._setRewardedState(i.b3.OPENED)},afterAd:function(){e.rewardedState!==i.b3.FAILED&&e._setRewardedState(i.b3.CLOSED)},beforeReward:function(t){t()},adDismissed:function(){e._showAdFailurePopup(!0)},adViewed:function(){e._setRewardedState(i.b3.REWARDED)},adBreakDone:function(t){\"frequencyCapped\"!==(null==t?void 0:t.breakStatus)&&\"other\"!==(null==t?void 0:t.breakStatus)||e._showAdFailurePopup(!0)}})}},{key:\"checkAdBlock\",value:function(){return Promise.resolve(!1)}},{key:\"isStorageSupported\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||u(p(b.prototype),\"isStorageSupported\",this).call(this,t)}},{key:\"isStorageAvailable\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||u(p(b.prototype),\"isStorageAvailable\",this).call(this,t)}},{key:\"getDataFromStorage\",value:function(t,e,r){var n=this;if(e===i.bD.PLATFORM_INTERNAL){if(Array.isArray(t)){var o=t.map((function(t){return y(n,v,_).call(n,n._platformSdk.storage.getItem(t),r)}));return Promise.resolve(o)}var a=y(this,v,_).call(this,this._platformSdk.storage.getItem(t),r);return Promise.resolve(a)}return u(p(b.prototype),\"getDataFromStorage\",this).call(this,t,e,r)}},{key:\"setDataToStorage\",value:function(t,e,r){if(r===i.bD.PLATFORM_INTERNAL){if(Array.isArray(t)){for(var n=0;n{r.r(e),r.d(e,{default:()=>Z});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e=0&&this._paymentsPurchases.splice(e,1),this._resolvePromiseDecorator(o.Mn.CONSUME_PURCHASE,t)}else this._rejectPromiseDecorator(o.Mn.CONSUME_PURCHASE,new Error(t))}function H(t){if(t.success){var e=this._paymentsGetProductsPlatformData();this._paymentsPurchases=t.data.map((function(t){var r=JSON.parse(t),n=u({id:e.find((function(t){return t.id===r.productId})).id},r);return delete n.productId,n})),this._resolvePromiseDecorator(o.Mn.GET_PURCHASES,this._paymentsPurchases)}else this._rejectPromiseDecorator(o.Mn.GET_PURCHASES,new Error(t))}function W(t){t.success?this._resolvePromiseDecorator(o.Mn.GET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.GET_STORAGE_DATA,new Error(t))}function U(t){t.success?this._resolvePromiseDecorator(o.Mn.SET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.SET_STORAGE_DATA,new Error(t))}function V(t){t.success?this._resolvePromiseDecorator(o.Mn.DELETE_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.DELETE_STORAGE_DATA,new Error(t))}const Z=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(a,t);var e,r,n,i=p(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,a);for(var e=arguments.length,r=new Array(e),n=0;n{r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}var s=[\"gamer_id\",\"gamer_name\",\"gamer_avatar_url\"];function u(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function c(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>h});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r0&&(t._playerId=o,t._playerName=a,t._playerPhotos.push(s),t._isPlayerAuthorized=!0),t._isInitialized=!0,t._resolvePromiseDecorator(i.Mn.INITIALIZE)}))}))})):this._rejectPromiseDecorator(i.Mn.INITIALIZE,i.pn.GAME_PARAMS_NOT_FOUND)),e.promise}},{key:\"isStorageSupported\",value:function(t){return t!==i.bD.PLATFORM_INTERNAL&&c(p(u.prototype),\"isStorageSupported\",this).call(this,t)}},{key:\"isStorageAvailable\",value:function(t){return t!==i.bD.PLATFORM_INTERNAL&&c(p(u.prototype),\"isStorageAvailable\",this).call(this,t)}},{key:\"showInterstitial\",value:function(){var t=this;this._setInterstitialState(i.WA.OPENED),this._platformSdk.APIAds.show((function(){t._setInterstitialState(i.WA.CLOSED)}))}},{key:\"showRewarded\",value:function(){var t=this;this._setRewardedState(i.b3.OPENED),this._platformSdk.GEvents.reward((function(e,r){e?r():t._showAdFailurePopup(!0)}),(function(e){e?(t._setRewardedState(i.b3.REWARDED),t._setRewardedState(i.b3.CLOSED)):t._showAdFailurePopup(!0)}))}},{key:\"leaderboardsSetScore\",value:function(t,e){var r=this,n=this._getPromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE);if(!n){n=this._createPromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE);var o={score:e,board:t};this._platformSdk.Scores.save(o,(function(t){t.success?r._resolvePromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE):r._rejectPromiseDecorator(i.Mn.LEADERBOARDS_SET_SCORE,t.errormsg)}))}return n.promise}},{key:\"unlockAchievement\",value:function(t){var e=this;return t.achievement?new Promise((function(r,n){e._platformSdk.Achievements.save(Array.isArray(t.achievement)?t.achievement:[t.achievement],(function(t){t.success?r(t):n(t.errormsg)}))})):Promise.reject()}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),u}(n.Z)},572:(t,e,r)=>{r.r(e),r.d(e,{default:()=>rt});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e=0&&this._paymentsPurchases.splice(i,1),this._resolvePromiseDecorator(o.Mn.CONSUME_PURCHASE,n)}else this._rejectPromiseDecorator(o.Mn.CONSUME_PURCHASE,new Error(t))}function X(t){if(null!=t&&t.success){var e=this._paymentsGetProductsPlatformData();this._paymentsPurchases=(t.data||[]).map((function(t){var r=e.find((function(e){return e.platformProductId===t.id}));return u(u({},t),{},{id:null==r?void 0:r.id,platformProductId:t.id})})),this._resolvePromiseDecorator(o.Mn.GET_PURCHASES,this._paymentsPurchases)}else this._rejectPromiseDecorator(o.Mn.GET_PURCHASES,new Error(t))}function Q(t){this._pauseStateAggregator.setState(\"rate\",!1),t&&!1!==t.success?this._resolvePromiseDecorator(o.Mn.RATE):this._rejectPromiseDecorator(o.Mn.RATE,new Error(t))}function $(t){null!=t&&t.success?this._resolvePromiseDecorator(o.Mn.GET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.GET_STORAGE_DATA,new Error(t))}function tt(t){null!=t&&t.success?this._resolvePromiseDecorator(o.Mn.SET_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.SET_STORAGE_DATA,new Error(t))}function et(t){null!=t&&t.success?this._resolvePromiseDecorator(o.Mn.DELETE_STORAGE_DATA,t.data):this._rejectPromiseDecorator(o.Mn.DELETE_STORAGE_DATA,new Error(t))}const rt=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&f(t,e)}(s,t);var e,r,n,a=p(s);function s(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s);for(var e=arguments.length,r=new Array(e),n=0;n{r.r(e),r.d(e,{default:()=>Y});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,\"next\",t)}function s(t){u(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rs&&(s=e,a=t)})),\"\".concat(e,\":\").concat(a[0],\"x\").concat(a[1])}function W(t,e){if(\"string\"!=typeof t)return null;if(t.endsWith(\"%\")){var r=parseFloat(t);return Number.isNaN(r)?null:Math.floor(e*r/100)}var n=parseInt(t,10);return Number.isNaN(n)?null:n}function U(t){var e=void 0!==t.top,r=void 0!==t.bottom,n=void 0!==t.left,o=void 0!==t.right;return e&&n?\"topleft\":e&&o?\"topright\":r&&n?\"bottomleft\":r&&o?\"bottomright\":e?\"top\":r?\"bottom\":n?\"left\":o?\"right\":null}function V(t){t?(this._isPlayerAuthorized=!0,this._playerId=t.playerId,this._playerName=t.playerDisplayName,this._playerExtra=t,A(this,R,\"personal\"===t.userAccountType.toLowerCase())):this._playerApplyGuestData()}function Z(t){return z.apply(this,arguments)}function z(){return z=c(s().mark((function t(e){var r,n=arguments;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.length>1&&void 0!==n[1]&&n[1],this._platformStorageCachedData){t.next=5;break}return t.next=4,this.platformSdk.cloudSave.getDataAsync({gameId:this._options.gameId});case 4:this._platformStorageCachedData=t.sent;case 5:return t.abrupt(\"return\",(0,o.t0)(e,this._platformStorageCachedData,r));case 6:case\"end\":return t.stop()}}),t,this)}))),z.apply(this,arguments)}const Y=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&m(t,e)}(E,t);var e,r,n,a,u,f,p=v(E);function E(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,E);for(var e=arguments.length,r=new Array(e),n=0;n{r.r(e),r.d(e,{default:()=>ct});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r120?this._rejectPromiseDecorator(i.Mn.INVITE_FRIENDS,i.pn.INVITE_FRIENDS_MESSAGE_LENGTH_ERROR):this._platformSdk.UI.showInvite(e)),r.promise}},{key:\"rate\",value:function(){var t=this._getPromiseDecorator(i.Mn.RATE);return t||(t=this._createPromiseDecorator(i.Mn.RATE),this._platformSdk.UI.showRatingDialog()),t.promise}},{key:\"createPost\",value:function(t){if(!t||null==t||!t.media)return Promise.reject();var e,r=this._getPromiseDecorator(i.Mn.CREATE_POST);return r||(r=this._createPromiseDecorator(i.Mn.CREATE_POST),this._platformSdk.UI.postMediatopic(t,null!==(e=t.status)&&void 0!==e&&e)),r.promise}},{key:\"joinCommunity\",value:function(t){if(!t||null==t||!t.groupId)return Promise.reject();var e,r=this._getPromiseDecorator(i.Mn.JOIN_COMMUNITY);return r||(r=this._createPromiseDecorator(i.Mn.JOIN_COMMUNITY),this._platformSdk.UI.joinGroup(t.groupId,null!==(e=t.enableMessages)&&void 0!==e&&e)),r.promise}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),y}(n.Z)},640:(t,e,r)=>{r.d(e,{Z:()=>x});var n=r(446),o=r(843),i=r(784),a=r(166);function s(t){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},s(t)}function u(t,e){for(var r=0;r1?o.Lh.IOS:/windows/i.test(i)?o.Lh.WINDOWS:/macintosh|mac os/i.test(i)?o.Lh.MACOS:/linux/i.test(i)?o.Lh.LINUX:o.Lh.OTHER}},{key:\"isPaymentsSupported\",get:function(){return!1}},{key:\"leaderboardsType\",get:function(){return o.Z.NOT_AVAILABLE}},{key:\"isRemoteConfigSupported\",get:function(){return!1}},{key:\"isClipboardSupported\",get:function(){return!0}},{key:\"isAchievementsSupported\",get:function(){return!1}},{key:\"isGetAchievementsListSupported\",get:function(){return!1}},{key:\"isAchievementsNativePopupSupported\",get:function(){return!1}},{key:\"initialize\",value:function(){return Promise.resolve()}},{key:\"sendMessage\",value:function(){return Promise.resolve()}},{key:\"sendCustomMessage\",value:function(){return Promise.resolve()}},{key:\"getServerTime\",value:function(){return new Promise((function(t,e){fetch(o.T2).then((function(t){if(!t.ok)throw new Error(\"Network response was not ok\");return t.json()})).then((function(e){t(1e3*e.timestamp)})).catch((function(){e()}))}))}},{key:\"getAllGames\",value:function(){return Promise.reject()}},{key:\"getGameById\",value:function(){return Promise.reject()}},{key:\"authorizePlayer\",value:function(){return Promise.reject()}},{key:\"isStorageSupported\",value:function(t){switch(t){case o.bD.LOCAL_STORAGE:return null!==this._localStorage;case o.bD.PLATFORM_INTERNAL:default:return!1}}},{key:\"isStorageAvailable\",value:function(t){switch(t){case o.bD.LOCAL_STORAGE:return null!==this._localStorage;case o.bD.PLATFORM_INTERNAL:default:return!1}}},{key:\"getDataFromStorage\",value:function(t,e,r){if(e===o.bD.LOCAL_STORAGE){if(this._localStorage){if(Array.isArray(t)){for(var n=[],i=0;i{r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>I});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e1&&void 0!==n[1])||n[1],this._platformStorageCachedData){t.next=5;break}return t.next=4,this.platformSdk.cloudSaveApi.getState();case 4:this._platformStorageCachedData=t.sent;case 5:return t.abrupt(\"return\",(0,o.t0)(e,this._platformStorageCachedData,r));case 6:case\"end\":return t.stop()}}),t,this)})),D=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,\"next\",t)}function s(t){u(i,n,o,a,s,\"throw\",t)}a(void 0)}))},D.apply(this,arguments)}const I=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(s,t);var e,r,n,a=d(s);function s(){var t,e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,s);for(var o=arguments.length,i=new Array(o),u=0;u=0&&e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(i.Mn.CONSUME_PURCHASE,{id:t})})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CONSUME_PURCHASE,t)})),n.promise}return p(m(s.prototype),\"paymentsConsumePurchase\",this).call(this,t)}},{key:\"paymentsGetCatalog\",value:function(){var t=this._paymentsGetProductsPlatformData();if(!t)return Promise.reject();var e=t.map((function(t){return{id:t.id,price:\"\".concat(t.amount,\" Gam\"),priceCurrencyCode:\"Gam\",priceCurrencyImage:\"https://games.playgama.com/assets/gold-fennec-coin-large.webp\",priceValue:t.amount}}));return Promise.resolve(e)}}])&&f(e.prototype,r),n&&f(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(n.Z)},514:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>m});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e{r.r(e),r.d(e,{ACTION_NAME_QA:()=>pt,INTERNAL_STORAGE_POLICY:()=>ft,SUPPORTED_FEATURES:()=>Rt,default:()=>se});var n=r(640),o=r(383);function i(t){return i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},i(t)}function a(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:\"*\";(0,o.n_)(t,e)}},{key:\"addListener\",value:function(t){window.addEventListener(\"message\",t)}},{key:\"removeListener\",value:function(t){window.removeEventListener(\"message\",t)}},{key:\"generateMessageId\",value:function(){return\"\".concat(Date.now(),\"-\").concat(Math.random())}}],r&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),t}(),c=r(66);function l(t){return l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},l(t)}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};c(E,a,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,a)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,a,s){var u=h(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,f=c.value;return f&&\"object\"==l(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,s,\"next\",t)}function s(t){p(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function d(t,e){for(var r=0;r0&&void 0!==h[0]?h[0]:{},o=this.checkAvailability(),i=o.available,a=o.reason,i){t.next=5;break}return null===(s=_(this,k))||void 0===s||s.call(this,a),t.abrupt(\"return\");case 5:return u=b(this,I,M).call(this),S(this,P,u.captureStream(n.fps||30)),n.contentHint&&(c=_(this,P).getVideoTracks()[0])&&(c.contentHint=n.contentHint),S(this,w,new RTCPeerConnection),_(this,P).getTracks().forEach((function(t){return _(p,w).addTrack(t,_(p,P))})),_(this,w).onicecandidate=function(t){var e;t.candidate&&(null===(e=_(p,O))||void 0===e||e.call(p,t.candidate.toJSON()))},t.next=13,_(this,w).createOffer();case 13:return l=t.sent,t.next=16,_(this,w).setLocalDescription(l);case 16:b(this,D,j).call(this,n),null===(e=_(this,A))||void 0===e||e.call(this,l.sdp),null===(r=_(this,T))||void 0===r||r.call(this);case 19:case\"end\":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:\"handleAnswer\",value:(i=h(f().mark((function t(e){var r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.sdp,!_(this,w)){t.next=4;break}return t.next=4,_(this,w).setRemoteDescription(new RTCSessionDescription({type:\"answer\",sdp:r}));case 4:case\"end\":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:\"handleIce\",value:(o=h(f().mark((function t(e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!_(this,w)||!e){t.next=3;break}return t.next=3,_(this,w).addIceCandidate(new RTCIceCandidate(e));case 3:case\"end\":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:\"takeScreenshot\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,r=void 0===e?\"image/png\":e,n=t.quality,o=void 0===n?.92:n,i=b(this,I,M).call(this);return i?{success:!0,reason:null,data:i.toDataURL(r,o)}:{success:!1,reason:\"Canvas not found\",data:null}}},{key:\"stopCapture\",value:function(){var t,e;null===(t=_(this,P))||void 0===t||t.getTracks().forEach((function(t){return t.stop()})),null===(e=_(this,w))||void 0===e||e.close(),S(this,w,null),S(this,P,null)}}],r&&d(e.prototype,r),n&&d(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),t}());var G,B=r(843);function F(){F=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new I(n||[]);return o(a,\"_invoke\",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var p=\"suspendedStart\",h=\"suspendedYield\",d=\"executing\",y=\"completed\",m={};function v(){}function g(){}function _(){}var b={};c(b,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(R([])));E&&E!==r&&n.call(E,a)&&(b=E);var w=_.prototype=v.prototype=Object.create(b);function P(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==z(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===d)throw new Error(\"Generator is already running\");if(o===y){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=T(s,n);if(u){if(u===m)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=d;var c=f(e,r,n);if(\"normal\"===c.type){if(o=n.done?y:h,c.arg===m)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=y,n.method=\"throw\",n.arg=c.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,T(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),m;var i=f(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,m):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(k,this),this.reset(!0)}function R(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;D(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function H(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if(\"undefined\"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t[\"@@iterator\"])return Array.from(t)}(t)||function(t,e){if(!t)return;if(\"string\"==typeof t)return W(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);\"Object\"===r&&t.constructor&&(r=t.constructor.name);if(\"Map\"===r||\"Set\"===r)return Array.from(t);if(\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W(t,e)}(t)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{};return[B.Dt.GAME_READY,B.Dt.LEVEL_STARTED,B.Dt.LEVEL_COMPLETED,B.Dt.LEVEL_FAILED,B.Dt.LEVEL_PAUSED,B.Dt.LEVEL_RESUMED,B.Dt.IN_GAME_LOADING_STARTED,B.Dt.IN_GAME_LOADING_STOPPED,B.Dt.GAMEPLAY_STARTED,B.Dt.GAMEPLAY_STOPPED,B.Dt.PLAYER_GOT_ACHIEVEMENT].includes(t)?(ot(this,xt,Xt).call(this,{type:B.oF.PLATFORM,action:t,options:e}),Promise.resolve()):Q($(a.prototype),\"sendMessage\",this).call(this,t,e)}},{key:\"getServerTime\",value:function(){return ot(this,Gt,Qt).call(this,B.oF.PLATFORM,pt.GET_SERVER_TIME,{options:{}},{timeout:5e3}).then((function(t){var e=t.time;if(!e)throw new Error(\"Invalid server time\");return e})).catch((function(){throw new Error(\"Server time request timeout\")}))}},{key:\"isStorageSupported\",value:function(t){return ot(this,xt,Xt).call(this,{type:B.oF.STORAGE,action:pt.IS_STORAGE_SUPPORTED,options:{storageType:t}}),!(t!==B.bD.PLATFORM_INTERNAL||!this._supportedFeatures.includes(Rt.STORAGE_INTERNAL))||!(t!==B.bD.LOCAL_STORAGE||!this._supportedFeatures.includes(Rt.STORAGE_LOCAL))}},{key:\"isStorageAvailable\",value:function(t){return ot(this,xt,Xt).call(this,{type:B.oF.STORAGE,action:pt.IS_STORAGE_AVAILABLE,options:{storageType:t}}),(t===B.bD.PLATFORM_INTERNAL&&this._supportedFeatures.includes(Rt.STORAGE_INTERNAL)&&ot(this,Ut,oe).call(this)||!(t!==B.bD.LOCAL_STORAGE||!this._supportedFeatures.includes(Rt.STORAGE_LOCAL)))&&Q($(a.prototype),\"isStorageAvailable\",this).call(this,B.bD.LOCAL_STORAGE)}},{key:\"getDataFromStorage\",value:function(t,e,r){return this.isStorageSupported(e)?ot(this,Gt,Qt).call(this,B.oF.STORAGE,pt.GET_DATA_FROM_STORAGE,{options:{key:t,storageType:e,tryParseJson:r}}).then((function(e){var n=e.storage;return(0,o.t0)(t,n,r)})):Promise.reject(B.pn.STORAGE_NOT_SUPPORTED)}},{key:\"setDataToStorage\",value:function(t,e,r){return ot(this,xt,Xt).call(this,{type:B.oF.STORAGE,action:pt.SET_DATA_TO_STORAGE,options:{key:t,value:e,storageType:r}}),this.isStorageSupported(r)?r===B.bD.PLATFORM_INTERNAL||r===B.bD.LOCAL_STORAGE?Promise.resolve():Q($(a.prototype),\"setDataToStorage\",this).call(this,t,e,r):Promise.reject(B.pn.STORAGE_NOT_SUPPORTED)}},{key:\"deleteDataFromStorage\",value:function(t,e){return ot(this,xt,Xt).call(this,{type:B.oF.STORAGE,action:pt.DELETE_DATA_FROM_STORAGE,options:{key:t,storageType:e}}),this.isStorageSupported(e)?e===B.bD.PLATFORM_INTERNAL||e===B.bD.LOCAL_STORAGE?Promise.resolve():Q($(a.prototype),\"deleteDataFromStorage\",this).call(this,t,e):Promise.reject(B.pn.STORAGE_NOT_SUPPORTED)}},{key:\"showInterstitial\",value:function(t){this.isInterstitialSupported&&ot(this,xt,Xt).call(this,{type:B.oF.ADVERTISEMENT,action:it,options:{placement:t}})}},{key:\"showRewarded\",value:function(t){this.isRewardedSupported&&ot(this,xt,Xt).call(this,{type:B.oF.ADVERTISEMENT,action:at,options:{placement:t}})}},{key:\"showBanner\",value:function(t,e){this.isBannerSupported&&(this._setBannerState(B.Kk.SHOWN),ot(this,xt,Xt).call(this,{type:B.oF.ADVERTISEMENT,action:B.Kk.SHOWN,options:{type:st,position:t,placement:e}}))}},{key:\"hideBanner\",value:function(){this.isBannerSupported&&(this._setBannerState(B.Kk.HIDDEN),ot(this,xt,Xt).call(this,{type:B.oF.ADVERTISEMENT,action:B.Kk.HIDDEN,options:{type:st}}))}},{key:\"showAdvancedBanners\",value:function(t){this.isAdvancedBannersSupported&&(this._setAdvancedBannersState(B.Kk.LOADING),ot(this,xt,Xt).call(this,{type:B.oF.ADVERTISEMENT,action:pt.SHOW_ADVANCED_BANNERS,options:{banners:t}}))}},{key:\"hideAdvancedBanners\",value:function(){this.isAdvancedBannersSupported&&(this._setAdvancedBannersState(B.Kk.HIDDEN),ot(this,xt,Xt).call(this,{type:B.oF.ADVERTISEMENT,action:pt.HIDE_ADVANCED_BANNERS}))}},{key:\"checkAdBlock\",value:function(){return ot(this,xt,Xt).call(this,{type:pt.CHECK_ADBLOCK,action:B.Mn.ADBLOCK_DETECT}),Q($(a.prototype),\"checkAdBlock\",this).call(this)}},{key:\"inviteFriends\",value:function(){if(!this.isInviteFriendsSupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.INVITE_FRIENDS);return t||(t=this._createPromiseDecorator(B.Mn.INVITE_FRIENDS),this._resolvePromiseDecorator(B.Mn.INVITE_FRIENDS),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.INVITE_FRIENDS})),t.promise}},{key:\"joinCommunity\",value:function(){if(!this.isJoinCommunitySupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.JOIN_COMMUNITY);return t||(t=this._createPromiseDecorator(B.Mn.JOIN_COMMUNITY),this._resolvePromiseDecorator(B.Mn.JOIN_COMMUNITY),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.JOIN_COMMUNITY})),t.promise}},{key:\"share\",value:function(){if(!this.isShareSupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.SHARE);return t||(t=this._createPromiseDecorator(B.Mn.SHARE),this._resolvePromiseDecorator(B.Mn.SHARE),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.SHARE})),t.promise}},{key:\"createPost\",value:function(){if(!this.isCreatePostSupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.CREATE_POST);return t||(t=this._createPromiseDecorator(B.Mn.CREATE_POST),this._resolvePromiseDecorator(B.Mn.CREATE_POST),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.CREATE_POST})),t.promise}},{key:\"addToHomeScreen\",value:function(){if(!this.isAddToHomeScreenSupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.ADD_TO_HOME_SCREEN);return t||(t=this._createPromiseDecorator(B.Mn.ADD_TO_HOME_SCREEN),this._resolvePromiseDecorator(B.Mn.ADD_TO_HOME_SCREEN),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.ADD_TO_HOME_SCREEN})),t.promise}},{key:\"addToFavorites\",value:function(){if(!this.isAddToFavoritesSupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.ADD_TO_FAVORITES);return t||(t=this._createPromiseDecorator(B.Mn.ADD_TO_FAVORITES),this._resolvePromiseDecorator(B.Mn.ADD_TO_FAVORITES),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.ADD_TO_FAVORITES})),t.promise}},{key:\"rate\",value:function(){if(!this.isRateSupported)return Promise.reject();var t=this._getPromiseDecorator(B.Mn.RATE);return t||(t=this._createPromiseDecorator(B.Mn.RATE),this._resolvePromiseDecorator(B.Mn.RATE),ot(this,xt,Xt).call(this,{type:B.oF.SOCIAL,action:B.Mn.RATE})),t.promise}},{key:\"paymentsPurchase\",value:function(t,e){var r=this;if(!this.isPaymentsSupported)return Promise.reject();var n=this._paymentsGetProductPlatformData(t);if(!n)return Promise.reject();e&&e.externalId&&(n.externalId=e.externalId),n.externalId||(n.externalId=this._paymentsGenerateTransactionId(t));var o=this._getPromiseDecorator(B.Mn.PURCHASE);return o||(o=this._createPromiseDecorator(B.Mn.PURCHASE),ot(this,Gt,Qt).call(this,B.oF.PAYMENTS,B.Mn.PURCHASE,{options:{product:n}}).then((function(e){var n=e.purchase;if(n&&\"object\"===z(n))if(null!=n&&n.status){var o=Z({id:t},n.purchaseData);r._paymentsPurchases.push(o),r._resolvePromiseDecorator(B.Mn.PURCHASE,o)}else r._rejectPromiseDecorator(B.Mn.PURCHASE,(null==n?void 0:n.error)||new Error(\"Unknown purchase error\"));else r._rejectPromiseDecorator(B.Mn.PURCHASE,new Error(\"Invalid purchase\"))}))),o.promise}},{key:\"paymentsConsumePurchase\",value:function(t){var e=this;if(!this.isPaymentsSupported)return Promise.reject();var r=this._paymentsPurchases.findIndex((function(e){return e.id===t}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(B.Mn.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(B.Mn.CONSUME_PURCHASE),ot(this,Gt,Qt).call(this,B.oF.PAYMENTS,B.Mn.CONSUME_PURCHASE,{options:{product:this._paymentsPurchases[r]}}).then((function(n){var o=n.purchase;if(o&&\"object\"===z(o))if(null!=o&&o.status){var i=Z({id:t},o);e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(B.Mn.CONSUME_PURCHASE,i)}else e._rejectPromiseDecorator(B.Mn.CONSUME_PURCHASE,(null==o?void 0:o.error)||new Error(\"Unknown consume purchase error\"));else e._rejectPromiseDecorator(B.Mn.CONSUME_PURCHASE,new Error(\"Invalid purchase\"))}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var t=this;if(!this.isPaymentsSupported)return Promise.reject();var e=this._getPromiseDecorator(B.Mn.GET_CATALOG);if(!e){e=this._createPromiseDecorator(B.Mn.GET_CATALOG);var r=this._paymentsGetProductsPlatformData();ot(this,Gt,Qt).call(this,B.oF.PAYMENTS,B.Mn.GET_CATALOG,{options:{products:r}}).then((function(){var e=r.map((function(t){return{id:t.id,price:\"\".concat(t.amount,\" Gam\"),priceCurrencyCode:\"Gam\",priceCurrencyImage:\"https://games.playgama.com/assets/gold-fennec-coin-large.webp\",priceValue:t.amount}}));t._resolvePromiseDecorator(B.Mn.GET_CATALOG,e)}))}return e.promise}},{key:\"paymentsGetPurchases\",value:function(){var t=this;if(!this.isPaymentsSupported)return Promise.reject();var e=this._getPromiseDecorator(B.Mn.GET_PURCHASES);return e||(e=this._createPromiseDecorator(B.Mn.GET_PURCHASES),ot(this,Gt,Qt).call(this,B.oF.PAYMENTS,B.Mn.GET_PURCHASES,{options:{products:this._paymentsGetProductsPlatformData()}}).then((function(e){var r=e.purchases,n=t._paymentsGetProductsPlatformData();t._paymentsPurchases=r.map((function(t){return Z({id:n.find((function(e){return e.id===t.id})).id},t.purchaseData)})),t._resolvePromiseDecorator(B.Mn.GET_PURCHASES,t._paymentsPurchases)}))),e.promise}},{key:\"getRemoteConfig\",value:function(){var t=this;if(!this.isRemoteConfigSupported)return Promise.reject();var e=this._getPromiseDecorator(B.Mn.GET_REMOTE_CONFIG);return e||(e=this._createPromiseDecorator(B.Mn.GET_REMOTE_CONFIG),ot(this,Gt,Qt).call(this,B.oF.REMOTE_CONFIG,B.Mn.GET_REMOTE_CONFIG).then((function(e){var r=e.result;t._resolvePromiseDecorator(B.Mn.GET_REMOTE_CONFIG,r)}))),e.promise}},{key:\"clipboardWrite\",value:function(t){var e=this;if(!this.isClipboardSupported)return Promise.reject();var r=this._getPromiseDecorator(B.Mn.CLIPBOARD_WRITE);return r||(r=this._createPromiseDecorator(B.Mn.CLIPBOARD_WRITE),ot(this,Gt,Qt).call(this,B.oF.CLIPBOARD,B.Mn.CLIPBOARD_WRITE,{options:{text:t}}).then((function(){e._resolvePromiseDecorator(B.Mn.CLIPBOARD_WRITE,!0)}))),r.promise}},{key:\"clipboardRead\",value:function(){var t=this;if(!this.isClipboardSupported)return Promise.reject();var e=this._getPromiseDecorator(pt.CLIPBOARD_READ);return e||(e=this._createPromiseDecorator(pt.CLIPBOARD_READ),ot(this,Gt,Qt).call(this,B.oF.CLIPBOARD,pt.CLIPBOARD_READ,{options:{}}).then((function(e){var r=e.text;t._resolvePromiseDecorator(pt.CLIPBOARD_READ,r)}))),e.promise}},{key:\"leaderboardsSetScore\",value:function(t,e){if(this.leaderboardsType===B.Z.NOT_AVAILABLE)return Promise.reject(new Error(\"Leaderboards are not available\"));var r=this._getPromiseDecorator(B.Mn.LEADERBOARDS_SET_SCORE);if(!r){r=this._createPromiseDecorator(B.Mn.LEADERBOARDS_SET_SCORE);var n={id:t,score:e};ot(this,xt,Xt).call(this,{type:B.oF.LEADERBOARDS,action:B.Mn.LEADERBOARDS_SET_SCORE,options:n}),this._resolvePromiseDecorator(B.Mn.LEADERBOARDS_SET_SCORE)}return r.promise}},{key:\"leaderboardsGetEntries\",value:function(t){var e=this;if(this.leaderboardsType!==B.Z.IN_GAME)return Promise.reject(new Error(\"Leaderboards are not available\"));var r=this._getPromiseDecorator(B.Mn.LEADERBOARDS_GET_ENTRIES);return r||(r=this._createPromiseDecorator(B.Mn.LEADERBOARDS_GET_ENTRIES),ot(this,Gt,Qt).call(this,B.oF.LEADERBOARDS,B.Mn.LEADERBOARDS_GET_ENTRIES,{options:{id:t}},{timeout:5e3}).then((function(t){var r=t.entries;e._resolvePromiseDecorator(B.Mn.LEADERBOARDS_GET_ENTRIES,r)})).catch((function(){e._rejectPromiseDecorator(B.Mn.LEADERBOARDS_GET_ENTRIES)}))),r.promise}},{key:\"leaderboardsShowNativePopup\",value:function(t){return this.leaderboardsType!==B.Z.NATIVE_POPUP?Promise.reject(new Error(\"Leaderboards are not available\")):(ot(this,xt,Xt).call(this,{type:B.oF.LEADERBOARDS,action:B.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP,options:{id:t}}),Promise.resolve(B.Mn.LEADERBOARDS_SHOW_NATIVE_POPUP))}},{key:\"unlockAchievement\",value:function(t){return this.isAchievementsSupported?ot(this,Gt,Qt).call(this,B.oF.ACHIEVEMENTS,pt.UNLOCK_ACHIEVEMENT,{options:t}).then((function(t){return t.result})):Promise.reject()}},{key:\"getAchievementsList\",value:function(t){return this.isGetAchievementsListSupported?ot(this,Gt,Qt).call(this,B.oF.ACHIEVEMENTS,pt.GET_ACHIEVEMENTS,{options:t}).then((function(t){return t.result})):Promise.reject()}},{key:\"showAchievementsNativePopup\",value:function(){return this.isAchievementsNativePopupSupported?(ot(this,xt,Xt).call(this,{type:B.oF.ACHIEVEMENTS,action:pt.SHOW_ACHIEVEMENTS_NATIVE_POPUP}),Promise.resolve()):Promise.reject()}},{key:\"_paymentsGetProductsPlatformData\",value:function(){return this._options.payments?this._options.payments.map((function(t){return Z({id:t.id},t.playgama)})):[]}},{key:\"_paymentsGetProductPlatformData\",value:function(t){var e=this._options.payments;if(!e)return null;var r=e.find((function(e){return e.id===t}));return r?Z({id:r.id},r.playgama):null}}],r&&Y(e.prototype,r),n&&Y(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),a}(n.Z);function Yt(t){var e,r,n,o,i;this._supportedFeatures=t.supportedFeatures||[],this._isBannerSupported=this._supportedFeatures.includes(Rt.BANNER),this._isAdvancedBannersSupported=this._supportedFeatures.includes(Rt.ADVANCED_BANNERS);var a=t.config,s=void 0===a?{}:a;this._deviceType=null!==(e=s.deviceType)&&void 0!==e?e:Q($(G.prototype),\"deviceType\",this),this._platformLanguage=s.platformLanguage?s.platformLanguage.toLowerCase():Q($(G.prototype),\"platformLanguage\",this),this._platformTld=null!==(r=s.platformTld)&&void 0!==r?r:Q($(G.prototype),\"platformTld\",this),this._platformPayload=null!==(n=s.platformPayload)&&void 0!==n?n:Q($(G.prototype),\"platformPayload\",this),this._leaderboardsType=null!==(o=s.leaderboardsType)&&void 0!==o?o:B.Z.NOT_AVAILABLE,this._internalStoragePolicy=null!==(i=s.internalStoragePolicy)&&void 0!==i?i:ft.AUTHORIZED_ONLY,this._paymentsPurchases=t.purchases||[],this._isInitialized=!0,this._resolvePromiseDecorator(B.Mn.INITIALIZE),ot(this,Vt,ie).call(this),ot(this,xt,Xt).call(this,{type:lt,action:pt.LIVENESS_PING,options:{version:\"1.30.0\"}})}function Kt(t){this._setAudioState(t.options.isEnabled)}function Jt(t){this._setPauseState(t.options.isPaused)}function qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Array.isArray(e)?e:[],n=performance.getEntriesByType(\"resource\")||[],o=r.length>0?r:[\"name\",\"initiatorType\"],i=n.map((function(t){var e={};return o.forEach((function(r){r in t&&(e[r]=t[r])})),e}));return ot(this,xt,Xt).call(this,{type:B.oF.PLATFORM,action:pt.GET_PERFORMANCE_RESOURCES,id:t,options:{resources:i}}),Promise.resolve(n)}function Xt(t){nt(this,Lt).send(Z({source:ct},t))}function Qt(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=nt(this,Lt).generateMessageId(),a=Z({timeout:0},o);return new Promise((function(s,u){var c=function n(o){var a=o.data;(null==a?void 0:a.type)===t&&(null==a?void 0:a.action)===e&&(null==a?void 0:a.id)===i&&(null==a?void 0:a.source)!==ct&&(nt(r,Lt).removeListener(n),s(a))};nt(r,Lt).addListener(c),ot(r,xt,Xt).call(r,Z({type:t,action:e,id:i,options:o},n)),a.timeout>0&&setTimeout((function(){u(new Error(\"Request timeout\")),nt(r,Lt).removeListener(c)}),a.timeout)}))}function $t(){return te.apply(this,arguments)}function te(){var t;return t=F().mark((function t(){var e=this;return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt(\"return\",ot(this,Gt,Qt).call(this,B.oF.PLAYER,pt.GET_PLAYER).then((function(t){var r=t.player;null!=r&&r.isAuthorized?(e._playerId=r.userId,e._isPlayerAuthorized=r.isAuthorized,e._playerName=r.name,Array.isArray(r.photos)&&(e._playerPhotos=H(r.photos)),e._playerExtra=r,ot(e,Vt,ie).call(e)):e._playerApplyGuestData()})).catch((function(){e._playerApplyGuestData()})));case 1:case\"end\":return t.stop()}}),t,this)})),te=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){U(i,n,o,a,s,\"next\",t)}function s(t){U(i,n,o,a,s,\"throw\",t)}a(void 0)}))},te.apply(this,arguments)}function ee(t){var e=t.action,r=t.payload;if(e===it){if(!this.isInterstitialSupported)return;switch(r.status){case Et:this._setInterstitialState(B.WA.LOADING);break;case wt:this._setInterstitialState(B.WA.OPENED);break;case At:this._showAdFailurePopup(!1);break;case Pt:this._setInterstitialState(B.WA.CLOSED)}}else if(e===at){if(!this.isRewardedSupported)return;switch(r.status){case Ot:this._setRewardedState(B.b3.LOADING);break;case Tt:this._setRewardedState(B.b3.OPENED);break;case kt:this._setRewardedState(B.b3.REWARDED);break;case Dt:this._setRewardedState(B.b3.CLOSED);break;case It:this._showAdFailurePopup(!0)}}else if(e===ut)switch(r.status){case B.Kk.SHOWN:this._setAdvancedBannersState(B.Kk.SHOWN);break;case B.Kk.HIDDEN:this._setAdvancedBannersState(B.Kk.HIDDEN);break;case B.Kk.FAILED:this._setAdvancedBannersState(B.Kk.FAILED);break;case B.Kk.LOADING:this._setAdvancedBannersState(B.Kk.LOADING)}}function re(t){switch(t.action){case ht:x.startCapture(t.options||{});break;case dt:x.stopCapture();break;case mt:x.handleAnswer(t.options);break;case vt:x.handleIce(t.options);break;case bt:var e=x.takeScreenshot(t.options||{});ot(this,xt,Xt).call(this,{type:B.oF.RECORDER,action:St,payload:e})}}function ne(){var t=this;x.onOffer=function(e){ot(t,xt,Xt).call(t,{type:B.oF.RECORDER,action:yt,payload:{sdp:e}})},x.onIceCandidate=function(e){ot(t,xt,Xt).call(t,{type:B.oF.RECORDER,action:vt,payload:e})},x.onStarted=function(){ot(t,xt,Xt).call(t,{type:B.oF.RECORDER,action:gt})},x.onError=function(e){ot(t,xt,Xt).call(t,{type:B.oF.RECORDER,action:_t,payload:{message:e}})}}function oe(){return this._internalStoragePolicy===ft.AUTHORIZED_ONLY&&this._isPlayerAuthorized||this._internalStoragePolicy===ft.ALWAYS}function ie(){ot(this,Ut,oe).call(this)?this._defaultStorageType=B.bD.PLATFORM_INTERNAL:this._defaultStorageType=B.bD.LOCAL_STORAGE}function ae(){\"unity\"===this.engine&&indexedDB.deleteDatabase(\"UnityCache\")}G=zt;const se=zt},381:(t,e,r)=>{r.r(e),r.d(e,{default:()=>B});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},u=i.iterator||\"@@iterator\",c=i.asyncIterator||\"@@asyncIterator\",l=i.toStringTag||\"@@toStringTag\";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},\"\")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof _?e:_,a=Object.create(i.prototype),s=new L(n||[]);return o(a,\"_invoke\",{value:k(t,r,s)}),a}function h(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=p;var d=\"suspendedStart\",y=\"suspendedYield\",m=\"executing\",v=\"completed\",g={};function _(){}function b(){}function S(){}var E={};f(E,u,(function(){return this}));var w=Object.getPrototypeOf,P=w&&w(w(j([])));P&&P!==r&&n.call(P,u)&&(E=P);var A=S.prototype=_.prototype=Object.create(E);function O(t){[\"next\",\"throw\",\"return\"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function r(o,i,s,u){var c=h(t[o],t,i);if(\"throw\"!==c.type){var l=c.arg,f=l.value;return f&&\"object\"==a(f)&&n.call(f,\"__await\")?e.resolve(f.__await).then((function(t){r(\"next\",t,s,u)}),(function(t){r(\"throw\",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r(\"throw\",t,s,u)}))}u(c.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===m)throw new Error(\"Generator is already running\");if(o===v){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=D(s,n);if(u){if(u===g)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=m;var c=h(e,r,n);if(\"normal\"===c.type){if(o=n.done?v:y,c.arg===g)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=v,n.method=\"throw\",n.arg=c.arg)}}}function D(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,D(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),g;var i=h(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,g):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,g)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(I,this),this.reset(!0)}function j(e){if(e||\"\"===e){var r=e[u];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;R(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,\"next\",t)}function s(t){u(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function l(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};(0,i.n_)({type:t,data:e},\"*\")}function I(t){this._isPlayerAuthorized=t.isPlayerAuthorized,this._isPlayerAuthorized&&(this._playerId=t.playerId,this._playerName=t.playerName,t.playerPhoto&&this._playerPhotos.push(t.playerPhoto),this._defaultStorageType=o.bD.PLATFORM_INTERNAL),this._isInitialized=!0,this._resolvePromiseDecorator(o.Mn.INITIALIZE)}function R(t){var e,r;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.GET_STORAGE_DATA,null!==(r=t.data.data)&&void 0!==r?r:null):this._rejectPromiseDecorator(o.Mn.GET_STORAGE_DATA)}function L(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.SET_STORAGE_DATA):this._rejectPromiseDecorator(o.Mn.SET_STORAGE_DATA)}function j(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.DELETE_STORAGE_DATA):this._rejectPromiseDecorator(o.Mn.DELETE_STORAGE_DATA)}function M(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.PURCHASE,t.data):this._rejectPromiseDecorator(o.Mn.PURCHASE,t.data)}function N(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.GET_CATALOG,t.data):this._rejectPromiseDecorator(o.Mn.GET_CATALOG,t.data)}function C(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.GET_PURCHASES,t.data):this._rejectPromiseDecorator(o.Mn.GET_PURCHASES,t.data)}function x(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.CREATE_POST):this._rejectPromiseDecorator(o.Mn.CREATE_POST)}function G(t){var e;null!==(e=t.data)&&void 0!==e&&e.success?this._resolvePromiseDecorator(o.Mn.JOIN_COMMUNITY):this._rejectPromiseDecorator(o.Mn.JOIN_COMMUNITY)}const B=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&h(t,e)}(f,t);var e,r,n,i,a,u=d(f);function f(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,f);for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=this._getPromiseDecorator(o.Mn.CREATE_POST);return e||(e=this._createPromiseDecorator(o.Mn.CREATE_POST),g(this,_,D).call(this,o.Mn.CREATE_POST,{options:t})),e.promise}},{key:\"joinCommunity\",value:function(){var t=this._getPromiseDecorator(o.Mn.JOIN_COMMUNITY);return t||(t=this._createPromiseDecorator(o.Mn.JOIN_COMMUNITY),g(this,_,D).call(this,o.Mn.JOIN_COMMUNITY)),t.promise}}],r&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),f}(n.Z)},675:(t,e,r)=>{r.r(e),r.d(e,{default:()=>w});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>D});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"result\",i=this._getPromiseDecorator(t);return i||(i=this._createPromiseDecorator(t),this._platformSdk.send(e,n).then((function(e){e[o]?r._resolvePromiseDecorator(t):r._rejectPromiseDecorator(t)})).catch((function(e){r._rejectPromiseDecorator(t,e)}))),i.promise}const E=function(t){!function(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,\"prototype\",{writable:!1}),e&&c(t,e)}(g,t);var e,r,n,a=l(g);function g(){var t,e,r;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,g);for(var n=arguments.length,o=new Array(n),i=0;i{r.r(e),r.d(e,{default:()=>S});var n=r(640),o=r(843),i=r(383);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){for(var r=0;r{r.r(e),r.d(e,{default:()=>T});var n=r(640),o=r(383),i=r(843),a=[\"player\"];function s(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e{r.r(e),r.d(e,{default:()=>D});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e0?t.entries.map((function(t){return{id:t.player.uniqueID,name:t.player.publicName,score:t.score,rank:t.rank,photo:t.player.getAvatarSrc(\"large\")}})):[],e._resolvePromiseDecorator(i.Mn.LEADERBOARDS_GET_ENTRIES,r)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.LEADERBOARDS_GET_ENTRIES,t)}))}return r.promise}},{key:\"paymentsPurchase\",value:function(t){var e=this;if(!S(this,A))return Promise.reject();var r=this._paymentsGetProductPlatformData(t);r||(r={id:t});var n=this._getPromiseDecorator(i.Mn.PURCHASE);return n||(n=this._createPromiseDecorator(i.Mn.PURCHASE),S(this,A).purchase(r).then((function(r){var n=u({id:t},r.purchaseData);delete n.productID,e._paymentsPurchases.push(n),e._resolvePromiseDecorator(i.Mn.PURCHASE,n)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.PURCHASE,t)}))),n.promise}},{key:\"paymentsConsumePurchase\",value:function(t){var e=this;if(!S(this,A))return Promise.reject();var r=this._paymentsPurchases.findIndex((function(e){return e.id===t}));if(r<0)return Promise.reject();var n=this._getPromiseDecorator(i.Mn.CONSUME_PURCHASE);return n||(n=this._createPromiseDecorator(i.Mn.CONSUME_PURCHASE),S(this,A).consumePurchase(this._paymentsPurchases[r].purchaseToken).then((function(){e._paymentsPurchases.splice(r,1),e._resolvePromiseDecorator(i.Mn.CONSUME_PURCHASE,{id:t})})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CONSUME_PURCHASE,t)}))),n.promise}},{key:\"paymentsGetCatalog\",value:function(){var t=this;if(!S(this,A))return Promise.reject();var e=this._paymentsGetProductsPlatformData(),r=this._getPromiseDecorator(i.Mn.GET_CATALOG);return r||(r=this._createPromiseDecorator(i.Mn.GET_CATALOG),S(this,A).getCatalog().then((function(r){var n=e.map((function(t){var e,n=r.find((function(e){return e.id===t.id}));return{id:t.id,title:n.title,description:n.description,imageURI:n.imageURI,price:n.price,priceCurrencyCode:n.priceCurrencyCode,priceValue:n.priceValue,priceCurrencyImage:null===(e=n.getPriceCurrencyImage)||void 0===e?void 0:e.call(n,\"medium\")}}));t._resolvePromiseDecorator(i.Mn.GET_CATALOG,n)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_CATALOG,e)}))),r.promise}},{key:\"paymentsGetPurchases\",value:function(){var t=this;if(!S(this,A))return Promise.reject();var e=this._getPromiseDecorator(i.Mn.GET_PURCHASES);return e||(e=this._createPromiseDecorator(i.Mn.GET_PURCHASES),S(this,A).getPurchases().then((function(e){var r=t._paymentsGetProductsPlatformData();t._paymentsPurchases=e.map((function(t){var e=u({id:r.find((function(e){return e.id===t.productID})).id},t.purchaseData);return delete e.productID,e})),t._resolvePromiseDecorator(i.Mn.GET_PURCHASES,t._paymentsPurchases)})).catch((function(e){t._rejectPromiseDecorator(i.Mn.GET_PURCHASES,e)}))),e.promise}},{key:\"getRemoteConfig\",value:function(t){var e=this;if(!this._platformSdk)return Promise.reject();var r=t;r||(r={}),r.clientFeatures||(r.clientFeatures=[]);var n=this._getPromiseDecorator(i.Mn.GET_REMOTE_CONFIG);return n||(n=this._createPromiseDecorator(i.Mn.GET_REMOTE_CONFIG),this._platformSdk.getFlags(r).then((function(t){e._resolvePromiseDecorator(i.Mn.GET_REMOTE_CONFIG,t)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.GET_REMOTE_CONFIG,t)}))),n.promise}},{key:\"clipboardWrite\",value:function(t){var e=this,r=this._getPromiseDecorator(i.Mn.CLIPBOARD_WRITE);return r||(r=this._createPromiseDecorator(i.Mn.CLIPBOARD_WRITE),this._platformSdk.clipboard.writeText(t).then((function(){e._resolvePromiseDecorator(i.Mn.CLIPBOARD_WRITE,!0)})).catch((function(t){e._rejectPromiseDecorator(i.Mn.CLIPBOARD_WRITE,t)}))),r.promise}}])&&l(e.prototype,r),n&&l(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),s}(n.Z)},151:(t,e,r)=>{r.r(e),r.d(e,{default:()=>E});var n=r(640),o=r(383),i=r(843);function a(t){return a=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e2?e.slice(0,2):e)}));t._platformStorageCachedData={};var r=t._platformSdk.game.loadData().then((function(e){\"string\"==typeof e&&\"\"!==e&&(t._platformStorageCachedData=JSON.parse(e))}));t._platformSdk.system.onAudioEnabledChange((function(e){t._setAudioState(e)})),t._platformSdk.system.onPause((function(){t._setPauseState(!0)})),t._platformSdk.system.onResume((function(){t._setPauseState(!1)})),Promise.all([e,r]).finally((function(){t._isInitialized=!0,t._resolvePromiseDecorator(i.Mn.INITIALIZE),t._platformSdk.game.firstFrameReady()}))}))),e.promise}},{key:\"isStorageSupported\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||p(m(s.prototype),\"isStorageSupported\",this).call(this,t)}},{key:\"isStorageAvailable\",value:function(t){return t===i.bD.PLATFORM_INTERNAL||p(m(s.prototype),\"isStorageAvailable\",this).call(this,t)}},{key:\"getDataFromStorage\",value:function(t,e,r){var n=this;return e===i.bD.PLATFORM_INTERNAL?new Promise((function(e,o){n._platformSdk.game.loadData().then((function(o){if(\"string\"==typeof o&&\"\"!==o&&(n._platformStorageCachedData=JSON.parse(o)),Array.isArray(t)){for(var i=[],a=0;a{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},(()=>{var t=r(843),e=r(446),n=r(166),o=r(66),i=r(23),a=r(784);function s(t){return s=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},s(t)}function u(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},o={};if(r===t.Dt.GAME_READY){if(m(this,g))return Promise.reject();y(this,g,!0);var i=performance.now();o.time_s=((i-m(this,_))/1e3).toFixed(2);var s=document.getElementById(\"loading-overlay\");s&&s.remove()}return void 0!==n.world&&(o.world=String(n.world)),void 0!==n.level&&(o.level=String(n.level)),a.Z.send(\"\".concat(t.oF.PLATFORM,\"_message_\").concat(r),o),e.ZP.emit(t.W1.PLATFORM_MESSAGE_SENT,r),this._platformBridge.sendMessage(r,n)}},{key:\"sendCustomMessage\",value:function(r,n){return a.Z.send(\"\".concat(t.oF.PLATFORM,\"_custom_message\"),{id:r}),e.ZP.emit(t.W1.PLATFORM_MESSAGE_SENT,r),this._platformBridge.sendCustomMessage(r,n)}},{key:\"getServerTime\",value:function(){return this._platformBridge.getServerTime()}},{key:\"getAllGames\",value:function(){return this._platformBridge.getAllGames()}},{key:\"getGameById\",value:function(t){if(t){var e=t[this._platformBridge.platformId];if(e)return this.getGameById(e)}return this._platformBridge.getGameById(t)}}],o&&u(n.prototype,o),i&&u(n,i),Object.defineProperty(n,\"prototype\",{writable:!1}),c}(i.Z);(0,e.iL)(b.prototype);const S=b;function E(t){return E=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},E(t)}function w(t,e){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1];if(!(this._loadingProcessCompleted||e&&null!==this._currentLoadingProgress)){var r=document.getElementById(\"fillRect\"),n=document.getElementById(\"gradientMover\"),o=document.getElementById(\"logo\"),i=document.getElementById(\"loading-overlay\");if(r&&n&&o&&i){this._currentLoadingProgress=t;var a=Math.max(0,Math.min(100,t)),s=100-a;r.style.transform=\"translateY(\".concat(s,\"%)\"),100===a?(this._loadingProcessCompleted=!0,setTimeout((function(){r.style.display=\"none\",n.style.display=\"block\",n.classList.add(\"gradient-mover\")}),400),setTimeout((function(){return o.classList.add(\"logo-fade-out\")}),900),setTimeout((function(){return i.remove()}),1400)):n.classList.remove(\"gradient-mover\")}}}}],n&&R(r.prototype,n),o&&R(r,o),Object.defineProperty(r,\"prototype\",{writable:!1}),a}(i.Z);(0,e.iL)(G.prototype);const B=G;function F(t){return F=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},F(t)}function H(t,e){for(var r=0;r2&&void 0!==arguments[2])||arguments[2];if(e){var n=e[this._platformBridge.platformId];if(n)return this.get(t,n,r)}var o=e;return o||(o=this.defaultType),this._platformBridge.isStorageAvailable(o)?Array.isArray(t)&&0===t.length?Promise.resolve([]):this._platformBridge.getDataFromStorage(t,o,r):Promise.reject()}},{key:\"set\",value:function(t,e,r){if(r){var n=r[this._platformBridge.platformId];if(n)return this.set(t,e,n)}var o=r;if(o||(o=this.defaultType),!this._platformBridge.isStorageAvailable(o))return Promise.reject();if(Array.isArray(t)){if(!Array.isArray(e))return Promise.reject(new Error(\"Value must be an array when key is an array\"));if(t.length!==e.length)return Promise.reject(new Error(\"Key and value arrays must have the same length\"));if(0===t.length)return Promise.resolve()}return this._platformBridge.setDataToStorage(t,e,o)}},{key:\"delete\",value:function(t,e){if(e){var r=e[this._platformBridge.platformId];if(r)return this.delete(t,r)}var n=e;return n||(n=this.defaultType),this._platformBridge.isStorageAvailable(n)?Array.isArray(t)&&0===t.length?Promise.resolve():this._platformBridge.deleteDataFromStorage(t,n):Promise.reject()}}],r&&H(e.prototype,r),n&&H(e,n),Object.defineProperty(e,\"prototype\",{writable:!1}),i}(i.Z);function Y(t){return Y=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Y(t)}function K(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:t.Cb.BOTTOM,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.bannerState!==t.Kk.LOADING&&this.bannerState!==t.Kk.SHOWN){var o=Object.values(t.Cb).includes(r)?r:t.Cb.BOTTOM;Dt(this,xt,o);var i,a=n;if(a||null!==(i=this._platformBridge.options)&&void 0!==i&&null!==(i=i.advertisement)&&void 0!==i&&null!==(i=i.banner)&&void 0!==i&&i.placementFallback&&(a=this._platformBridge.options.advertisement.banner.placementFallback),Dt(this,Gt,a),It(this,oe,De).call(this,t.Kk.LOADING),this.isBannerSupported){var s=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.banner)||void 0===e?void 0:e.placements,u=It(this,be,Ze).call(this,a,s);this._platformBridge.showBanner(o,u)}else It(this,oe,De).call(this,t.Kk.FAILED)}}},{key:\"hideBanner\",value:function(){this.bannerState!==t.Kk.LOADING&&this.bannerState!==t.Kk.HIDDEN&&this.isBannerSupported&&this._platformBridge.hideBanner()}},{key:\"preloadInterstitial\",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.isInterstitialSupported){var r,n=e;n&&\"string\"==typeof n||null!==(r=this._platformBridge.options)&&void 0!==r&&null!==(r=r.advertisement)&&void 0!==r&&null!==(r=r.interstitial)&&void 0!==r&&r.placementFallback&&(n=this._platformBridge.options.advertisement.interstitial.placementFallback);var o=null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t||null===(t=t.interstitial)||void 0===t?void 0:t.placements,i=It(this,be,Ze).call(this,n,o);this._platformBridge.preloadInterstitial(i)}}},{key:\"showInterstitial\",value:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!It(this,re,Te).call(this)){var n,o=r;if(o||null!==(n=this._platformBridge.options)&&void 0!==n&&null!==(n=n.advertisement)&&void 0!==n&&null!==(n=n.interstitial)&&void 0!==n&&n.placementFallback&&(o=this._platformBridge.options.advertisement.interstitial.placementFallback),Dt(this,Ft,o),It(this,ie,Ie).call(this,t.WA.LOADING),this.isInterstitialSupported){var i=this._platformBridge.initialInterstitialDelay;if(i>0&&(Date.now()-Rt(this,Ut))/1e30&&void 0!==arguments[0]?arguments[0]:null;if(this.isRewardedSupported){var r,n=e;n&&\"string\"==typeof n||null!==(r=this._platformBridge.options)&&void 0!==r&&null!==(r=r.advertisement)&&void 0!==r&&null!==(r=r.rewarded)&&void 0!==r&&r.placementFallback&&(n=this._platformBridge.options.advertisement.rewarded.placementFallback);var o=null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t||null===(t=t.rewarded)||void 0===t?void 0:t.placements,i=It(this,be,Ze).call(this,n,o);this._platformBridge.preloadRewarded(i)}}},{key:\"showRewarded\",value:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!It(this,re,Te).call(this)){var n;Dt(this,Zt,r),Rt(this,Zt)||null!==(n=this._platformBridge.options)&&void 0!==n&&null!==(n=n.advertisement)&&void 0!==n&&null!==(n=n.rewarded)&&void 0!==n&&n.placementFallback&&Dt(this,Zt,this._platformBridge.options.advertisement.rewarded.placementFallback);var o=null===(e=this._platformBridge.options)||void 0===e||null===(e=e.advertisement)||void 0===e||null===(e=e.rewarded)||void 0===e?void 0:e.placements,i=It(this,be,Ze).call(this,Rt(this,Zt),o);It(this,ae,Re).call(this,t.b3.LOADING),this.isRewardedSupported?this._platformBridge.showRewarded(i):It(this,ae,Re).call(this,t.b3.FAILED)}}},{key:\"showAdvancedBanners\",value:function(t){var e,r=t;r||null!==(e=Rt(this,fe))&&void 0!==e&&e.placementFallback&&(r=Rt(this,fe).placementFallback),It(this,ue,je).call(this,r)}},{key:\"hideAdvancedBanners\",value:function(){this.isAdvancedBannersSupported&&(It(this,he,Ge).call(this),It(this,pe,xe).call(this),It(this,ne,ke).call(this,t.Kk.HIDDEN))}},{key:\"checkAdBlock\",value:function(){return this._platformBridge.checkAdBlock()}}],o&&bt(n.prototype,o),i&&bt(n,i),Object.defineProperty(n,\"prototype\",{writable:!1}),s}(i.Z);function Ee(t){Dt(this,Wt,t),Rt(this,Ht)&&(Rt(this,Ht).stop(),It(this,ee,Oe).call(this))}function we(t){if(\"number\"==typeof t)return t;if(\"string\"==typeof t){var e=parseInt(t,10);return Number.isNaN(e)?null:e}return null}function Pe(){var t=It(this,te,Ae).call(this);if(void 0!==t){var e=It(this,Qt,we).call(this,t);null!==e&&It(this,Xt,Ee).call(this,e)}}function Ae(){var t;return null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t?void 0:t.minimumDelayBetweenInterstitial}function Oe(){Rt(this,Wt)>0&&this._platformBridge.isMinimumDelayBetweenInterstitialEnabled&&(Dt(this,Ht,new gt(Rt(this,Wt))),Rt(this,Ht).start())}function Te(){var e=[t.WA.LOADING,t.WA.OPENED].includes(Rt(this,Bt)),r=[t.b3.LOADING,t.b3.OPENED,t.b3.REWARDED].includes(Rt(this,Vt));return e||r}function ke(r){Rt(this,zt)!==r&&(Dt(this,zt,r),a.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_advanced_banners_\").concat(r),{placement:Rt(this,Yt)}),e.ZP.emit(t.W1.ADVANCED_BANNERS_STATE_CHANGED,Rt(this,zt)))}function De(r){Rt(this,Ct)!==r&&(Dt(this,Ct,r),a.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_banner_\").concat(r),{position:Rt(this,xt),placement:Rt(this,Gt)}),e.ZP.emit(t.W1.BANNER_STATE_CHANGED,Rt(this,Ct)))}function Ie(r){Rt(this,Bt)!==r&&(Dt(this,Bt,r),a.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_interstitial_\").concat(r),{placement:Rt(this,Ft)}),e.ZP.emit(t.W1.INTERSTITIAL_STATE_CHANGED,Rt(this,Bt)))}function Re(r){Rt(this,Vt)!==r&&(Dt(this,Vt,r),a.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_rewarded_\").concat(r),{placement:Rt(this,Zt)}),e.ZP.emit(t.W1.REWARDED_STATE_CHANGED,Rt(this,Vt)))}function Le(t){It(this,ue,je).call(this,t)}function je(e){var r,n;if(this.isAdvancedBannersSupported){var o=null===(r=Rt(this,fe))||void 0===r?void 0:r[e];if(o){if((null!==(n=o.action)&&void 0!==n?n:t.qV.SHOW)===t.qV.HIDE)return It(this,he,Ge).call(this),void It(this,pe,xe).call(this);It(this,ne,ke).call(this,t.Kk.LOADING);var i=It(this,me,He).call(this,o);Dt(this,Yt,e),Rt(this,Kt)&&!i&&this._platformBridge.hideAdvancedBanners(),Dt(this,Kt,i),i?It(this,re,Te).call(this)?Dt(this,Jt,!0):this._platformBridge.showAdvancedBanners(i):It(this,ne,ke).call(this,t.Kk.FAILED)}}}function Me(){var t=this;Rt(this,qt)&&clearTimeout(Rt(this,qt)),Dt(this,qt,setTimeout((function(){Dt(t,qt,null),It(t,le,Ne).call(t)}),200))}function Ne(){var e;if(Rt(this,Yt)){var r=null===(e=Rt(this,fe))||void 0===e?void 0:e[Rt(this,Yt)];if(r){var n=It(this,me,He).call(this,r);if(n!==Rt(this,Kt)){var o=Rt(this,Kt);Dt(this,Kt,n),Rt(this,Jt)||(o&&this._platformBridge.hideAdvancedBanners(),n?this._platformBridge.showAdvancedBanners(n):o&&It(this,ne,ke).call(this,t.Kk.HIDDEN))}}}}function Ce(){var t;return null===(t=this._platformBridge.options)||void 0===t||null===(t=t.advertisement)||void 0===t?void 0:t.advancedBanners}function xe(){Dt(this,Yt,null),Dt(this,Kt,null),Dt(this,Jt,!1)}function Ge(){Rt(this,Kt)&&!Rt(this,Jt)&&this._platformBridge.hideAdvancedBanners()}function Be(){Rt(this,Kt)&&!Rt(this,Jt)&&(Dt(this,Jt,!0),this._platformBridge.hideAdvancedBanners())}function Fe(){Rt(this,Jt)&&(It(this,re,Te).call(this)||(Dt(this,Jt,!1),Rt(this,Kt)&&this._platformBridge.showAdvancedBanners(Rt(this,Kt))))}function He(t){var e,r=this,n={deviceType:this._platformBridge.deviceType,orientation:(0,D.fr)(),canvas:(0,D.SC)()},o=\"default\",i=null!==(e=t.default)&&void 0!==e?e:null,a=-1;return Object.keys(t).filter((function(t){return\"action\"!==t&&\"default\"!==t})).forEach((function(e){var s=It(r,ve,We).call(r,e,n);s.matched&&((s.score>a||s.score===a&&e.split(\":\").length>o.split(\":\").length)&&(a=s.score,o=e,i=t[e]))})),i}function We(t,e){var r=this,n=e.deviceType,o=e.orientation,i=e.canvas,a=t.split(\":\"),s=a.includes(\"canvas\"),u=0;return s&&!i?{matched:!1,score:u}:(s&&(u+=jt.CANVAS),{matched:a.every((function(t){if(\"canvas\"===t)return!0;if(Mt.has(t)){if(t!==n)return!1;u+=jt.DEVICE_TYPE}else if(Nt.has(t)){if(t!==o)return!1;u+=jt.ORIENTATION}else{var e=/^([wh])([><]=?)(\\d+)$/.exec(t),a=/^ar([><]=?)(\\d+(?:\\.\\d+)?)$/.exec(t);if(e){var c=s?i.width:window.innerWidth,l=s?i.height:window.innerHeight,f=\"w\"===e[1]?c:l,p=e[2],h=parseInt(e[3],10);if(!It(r,ge,Ue).call(r,f,p,h))return!1;u+=jt.DIMENSION+It(r,_e,Ve).call(r,f,h)}else{if(!a)return!1;var d=(s?i.width:window.innerWidth)/(s?i.height:window.innerHeight),y=a[1],m=parseFloat(a[2]);if(!It(r,ge,Ue).call(r,d,y,m))return!1;u+=jt.DIMENSION+It(r,_e,Ve).call(r,d,m,1e3)}}return!0})),score:u})}function Ue(t,e,r){switch(e){case\">\":return t>r;case\"<\":return t=\":return t>=r;case\"<=\":return t<=r;default:return!1}}function Ve(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return.9/(1+Math.abs(t-e)*r)}function Ze(t,e){if(!t)return t;if(!e)return t;var r=e.find((function(e){return e.id===t}));return r&&r[this._platformBridge.platformId]?r[this._platformBridge.platformId]:t}(0,e.iL)(Se.prototype);const ze=Se;function Ye(t){return Ye=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Ye(t)}function Ke(t,e){for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;D(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function Qr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $r(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;D(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function dn(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function yn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){dn(i,n,o,a,s,\"next\",t)}function s(t){dn(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function mn(t,e){for(var r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;D(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function $n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}var to={};function eo(t){return ro.apply(this,arguments)}function ro(){var t;return t=Qn().mark((function t(e){var r,n,o;return Qn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=to[e])){t.next=7;break}return t.next=4,r();case 4:return n=t.sent,o=n.default,t.abrupt(\"return\",o);case 7:return t.abrupt(\"return\",qn.Z);case 8:case\"end\":return t.stop()}}),t)})),ro=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$n(i,n,o,a,s,\"next\",t)}function s(t){$n(i,n,o,a,s,\"throw\",t)}a(void 0)}))},ro.apply(this,arguments)}function no(t){return no=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},no(t)}function oo(){oo=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i=\"function\"==typeof Symbol?Symbol:{},a=i.iterator||\"@@iterator\",s=i.asyncIterator||\"@@asyncIterator\",u=i.toStringTag||\"@@toStringTag\";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},\"\")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new I(n||[]);return o(a,\"_invoke\",{value:O(t,r,s)}),a}function f(t,e,r){try{return{type:\"normal\",arg:t.call(e,r)}}catch(t){return{type:\"throw\",arg:t}}}e.wrap=l;var p=\"suspendedStart\",h=\"suspendedYield\",d=\"executing\",y=\"completed\",m={};function v(){}function g(){}function _(){}var b={};c(b,a,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(R([])));E&&E!==r&&n.call(E,a)&&(b=E);var w=_.prototype=v.prototype=Object.create(b);function P(t){[\"next\",\"throw\",\"return\"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==no(l)&&n.call(l,\"__await\")?e.resolve(l.__await).then((function(t){r(\"next\",t,a,s)}),(function(t){r(\"throw\",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r(\"throw\",t,a,s)}))}s(u.arg)}var i;o(this,\"_invoke\",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=p;return function(i,a){if(o===d)throw new Error(\"Generator is already running\");if(o===y){if(\"throw\"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=T(s,n);if(u){if(u===m)continue;return u}}if(\"next\"===n.method)n.sent=n._sent=n.arg;else if(\"throw\"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else\"return\"===n.method&&n.abrupt(\"return\",n.arg);o=d;var c=f(e,r,n);if(\"normal\"===c.type){if(o=n.done?y:h,c.arg===m)continue;return{value:c.arg,done:n.done}}\"throw\"===c.type&&(o=y,n.method=\"throw\",n.arg=c.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,\"throw\"===n&&e.iterator.return&&(r.method=\"return\",r.arg=t,T(e,r),\"throw\"===r.method)||\"return\"!==n&&(r.method=\"throw\",r.arg=new TypeError(\"The iterator does not provide a '\"+n+\"' method\")),m;var i=f(o,e.iterator,r.arg);if(\"throw\"===i.type)return r.method=\"throw\",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,\"return\"!==r.method&&(r.method=\"next\",r.arg=t),r.delegate=null,m):a:(r.method=\"throw\",r.arg=new TypeError(\"iterator result is not an object\"),r.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type=\"normal\",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(k,this),this.reset(!0)}function R(e){if(e||\"\"===e){var r=e[a];if(r)return r.call(e);if(\"function\"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if(\"root\"===a.tryLoc)return o(\"end\");if(a.tryLoc<=this.prev){var u=n.call(a,\"catchLoc\"),c=n.call(a,\"finallyLoc\");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,\"finallyLoc\")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if(\"throw\"===n.type){var o=n.arg;D(r)}return o}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},\"next\"===this.method&&(this.arg=t),m}},e}function io(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function ao(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){io(i,n,o,a,s,\"next\",t)}function s(t){io(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function so(t,e){for(var r=0;r