diff --git a/extensions/reviewed/PlaygamaBridge.json b/extensions/reviewed/PlaygamaBridge.json index 06b32e23f..20d143c38 100644 --- a/extensions/reviewed/PlaygamaBridge.json +++ b/extensions/reviewed/PlaygamaBridge.json @@ -1,6 +1,7 @@ { "author": "Playgama", "category": "Ads", + "dimension": "", "extensionNamespace": "", "fullName": "Playgama Bridge", "gdevelopVersion": "", @@ -8,8 +9,8 @@ "iconUrl": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBmaWxsPSIjOTc0N0ZGIi8+CjxwYXRoIGQ9Ik0xMTcgMTU0LjM2MlY5Ni4wMDAxSDIyMy4xMjlWNDE2SDExN1YzNTkuMjU0SDE1OC40NFYxNTQuMzYySDExN1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0zOTUgMTU0LjM2MlY5NkgyODguODcxVjQxNkgzOTVWMzU5LjI1NEgzNTMuNTZWMTU0LjM2MkgzOTVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K", "name": "PlaygamaBridge", "previewIconUrl": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTcgMTU0LjM2MlY5Ni4wMDAxSDIyMy4xMjlWNDE2SDExN1YzNTkuMjU0SDE1OC40NFYxNTQuMzYySDExN1oiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0zOTUgMTU0LjM2MlY5NkgyODguODcxVjQxNkgzOTVWMzU5LjI1NEgzNTMuNTZWMTU0LjM2MkgzOTVaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K", - "shortDescription": "Cross-platform HTML5 publishing SDK: ads, payments, social features via Playgama.", - "version": "1.28.0", + "shortDescription": "One SDK for cross-platform publishing HTML5 games.", + "version": "1.29.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." @@ -551,7 +552,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:()=>g,D1:()=>A,DQ:()=>v,Dz:()=>d,QG:()=>m,R2:()=>I,RH:()=>w,Tg:()=>k,X_:()=>_,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 top: 0;\\n left: 0;\\n width: 100vw;\\n height: 100vh;\\n background-color: rgba(0, 0, 0, 0.5);\\n z-index: 9998;\\n display: none;\\n }\\n\\n #bridge-info-popup {\\n position: fixed;\\n top: 50%;\\n left: 50%;\\n transform: translate(-50%, -50%);\\n background-color: #2E3C75;\\n color: #fff;\\n padding: 20px;\\n z-index: 9999;\\n display: none;\\n border-radius: 10px;\\n box-shadow: 0 0 10px #2E3C75;\\n font-size: 24px;\\n font-family: 'Roboto', sans-serif;\\n text-align: center;\\n min-width: 250px;\\n max-width: 30%;\\n flex-direction: column;\\n justify-content: center;\\n align-items: center;\\n }\\n\\n #bridge-info-popup-button {\\n margin-top: 24px;\\n width: 150px;\\n background-color: rgba(255, 255, 255, 0.2);\\n color: #fff;\\n border: none;\\n font-size: 24px;\\n padding: 20px;\\n border-radius: 5px;\\n cursor: pointer;\\n font-family: 'Roboto', sans-serif;\\n display: block;\\n }\\n\\n #bridge-info-popup-button:hover {\\n background-color: rgba(255, 255, 255, 0.3);\\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\"),n.innerText=t;var o=document.getElementById(\"bridge-info-popup-button\");return o||((o=document.createElement(\"button\")).id=\"bridge-info-popup-button\",o.innerText=\"OK\",n.appendChild(o)),document.body.appendChild(n),new Promise((function(t){o.onclick=function(){n.style.display=\"none\",r.style.display=\"none\",t()},r.style.display=\"block\",n.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 g(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 g=document.createElementNS(l.namespaceURI,\"rect\");g.setAttribute(\"id\",\"fillRect\"),g.setAttribute(\"class\",\"fill-rect\"),g.setAttribute(\"x\",\"0\"),g.setAttribute(\"y\",\"0\"),g.setAttribute(\"width\",\"100%\"),g.setAttribute(\"height\",String(c)),g.setAttribute(\"fill\",n.fillColor),v.appendChild(g),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 _=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:()=>y,Cb:()=>f,Dt:()=>v,Kk:()=>l,Lb:()=>o,Mn:()=>_,Uw:()=>m,W1:()=>a,WA:()=>u,YU:()=>s,Z:()=>g,_g:()=>p,b3:()=>c,b9:()=>n,bD:()=>h,me:()=>d,oF:()=>i,pn:()=>b});var n=\"https://playgama.com/api/bridge/v1\",o={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\"},i={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\"},a={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\"},s={VISIBLE:\"visible\",HIDDEN:\"hidden\"},u={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\"},c={LOADING:\"loading\",OPENED:\"opened\",CLOSED:\"closed\",FAILED:\"failed\",REWARDED:\"rewarded\"},l={LOADING:\"loading\",SHOWN:\"shown\",HIDDEN:\"hidden\",FAILED:\"failed\"},f={TOP:\"top\",BOTTOM:\"bottom\"},p=\"banner-container\",h={LOCAL_STORAGE:\"local_storage\",PLATFORM_INTERNAL:\"platform_internal\"},d={DESKTOP:\"desktop\",MOBILE:\"mobile\",TABLET:\"tablet\",TV:\"tv\"},y={PORTRAIT:\"portrait\",LANDSCAPE:\"landscape\"},m=\"bridge-orientation-overlay\",v={GAME_READY:\"game_ready\",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\",GAME_OVER:\"game_over\"},g={NOT_AVAILABLE:\"not_available\",IN_GAME:\"in_game\",NATIVE:\"native\",NATIVE_POPUP:\"native_popup\"},_={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\"},b={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:()=>vt});var n=r(843);const o={i8:\"1.28.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: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\",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 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===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 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\")),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).toISOString(),data:e}}function rt(){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}}function nt(t){return ot.apply(this,arguments)}function ot(){return(ot=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 it(){return this._platformBridge.platformId===n.Lb.DISCORD?D:T}function at(t){return{meta:P(this,U,rt).call(this),events:t}}function st(){return ut.apply(this,arguments)}function ut(){return(ut=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,Y,ct).call(this,P(this,Z,at).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 ct(t){return lt.apply(this,arguments)}function lt(){return(lt=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,W,nt).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,V,it).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,ht).call(this),t.abrupt(\"return\",!1);case 31:case\"end\":return t.stop()}}),t,this,[[0,26],[3,10]])})))).apply(this,arguments)}function ft(){if(0!==w(this,I).length&&!w(this,C)){var t=l(w(this,I));A(this,I,[]);var e=P(this,V,it).call(this),r=P(this,Z,at).call(this,t),n=JSON.stringify(r);if(navigator.sendBeacon){var o=new Blob([n],{type:\"application/json\"});navigator.sendBeacon(e,o)}}}function pt(){var t=this;A(this,x,(function(){P(t,K,ft).call(t)})),A(this,G,(function(){\"hidden\"===document.visibilityState&&P(t,K,ft).call(t)})),document.addEventListener(\"visibilitychange\",w(this,G)),window.addEventListener(\"pagehide\",w(this,x))}function ht(){A(this,C,!0),A(this,I,[]),w(this,R)&&(clearInterval(w(this,R)),A(this,R,null)),w(this,G)&&(document.removeEventListener(\"visibilitychange\",w(this,G)),A(this,G,null)),w(this,x)&&(window.removeEventListener(\"pagehide\",w(this,x)),A(this,x,null))}function dt(){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,Q,yt).call(this,window.location.href)}function yt(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){var u=e.hostname.match(/^([a-z0-9-]+)\\.games\\.playgama\\.net$/i);if(u)return u[1]}}catch(t){return null}return null}function mt(){var t=this;w(this,R)||A(this,R,setInterval((function(){t.send(\"\".concat(n.oF.CORE,\"_ping\")),P(t,z,st).call(t)}),15e3))}const vt=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)),$),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),W),b(g(t),U),b(g(t),H),b(g(t),B),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),G,{writable:!0,value:null}),S(g(t),x,{writable:!0,value:null}),S(g(t),F,{writable:!0,value:\"undefined\"!=typeof CompressionStream}),A(g(t),M,P(g(t),B,tt).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),A(this,L,P(this,X,dt).call(this)),A(this,j,(0,i.my)().id),this.send(\"\".concat(n.oF.CORE,\"_initialization_started\")),P(this,$,mt).call(this),P(this,J,pt).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,H,et).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 _?e:_,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\",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 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===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 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\")),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,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),_(this,B,U).call(this,o),t.next=24;break;case 18:t.prev=18,t.t0=t.catch(3),_(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),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{\"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 _?e:_,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\",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 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===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 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\")),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{\"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:()=>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: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\",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 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===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 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\")),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);return n||(n=this._createPromiseDecorator(i.Mn.PURCHASE),this._platformSdk.payments.purchaseAsync({productID:r.platformProductId}).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)}))),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:()=>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{\"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:()=>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:()=>x});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: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\",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 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===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 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\")),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){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)}))),G.apply(this,arguments)}const x=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:()=>x});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;r{\"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:()=>O});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: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\",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 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===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 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\")),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)})),A=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)}))},A.apply(this,arguments)}const O=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;!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:()=>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:()=>G,INTERNAL_STORAGE_POLICY:()=>C,SUPPORTED_FEATURES:()=>Y,default:()=>_t});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 _?e:_,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 _(){}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=f(t[o],t,i);if(\"throw\"!==u.type){var c=u.arg,l=c.value;return l&&\"object\"==g(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]:[],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:G.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,G.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 x: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 gt(){\"unity\"===this.engine&&indexedDB.deleteDatabase(\"UnityCache\")}u=at;const _t=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 _?e:_,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\",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 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===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 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\")),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 G(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 x(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),g(this,_,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),g(this,_,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:()=>T});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)}(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{\"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];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,xt,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 _t(Lt(this,Bt))),Lt(this,Ft).start())}function ie(){var e=[t.WA.LOADING,t.WA.OPENED].includes(Lt(this,Gt)),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,Gt)!==e&&(It(this,Gt,e),s.Z.send(\"\".concat(t.oF.ADVERTISEMENT,\"_interstitial_\").concat(e),{placement:Lt(this,xt)}),this.emit(t.W1.INTERSTITIAL_STATE_CHANGED,Lt(this,Gt)))}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,Ge,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){return ln=\"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},ln(t)}function fn(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 pn(t,e,r){var n;return n=function(t,e){if(\"object\"!=ln(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||\"default\");if(\"object\"!=ln(n))return n;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===e?String:Number)(t)}(e,\"string\"),(e=\"symbol\"==ln(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hn=(pn(pn(pn(pn(pn(pn(pn(pn(pn(pn(sn={},t.Lb.VK,(function(){return Promise.resolve().then(r.bind(r,631))})),t.Lb.YANDEX,(function(){return Promise.resolve().then(r.bind(r,823))})),t.Lb.CRAZY_GAMES,(function(){return Promise.resolve().then(r.bind(r,997))})),t.Lb.ABSOLUTE_GAMES,(function(){return Promise.resolve().then(r.bind(r,861))})),t.Lb.GAME_DISTRIBUTION,(function(){return Promise.resolve().then(r.bind(r,441))})),t.Lb.OK,(function(){return Promise.resolve().then(r.bind(r,474))})),t.Lb.PLAYGAMA,(function(){return Promise.resolve().then(r.bind(r,735))})),t.Lb.PLAYDECK,(function(){return Promise.resolve().then(r.bind(r,582))})),t.Lb.TELEGRAM,(function(){return Promise.resolve().then(r.bind(r,675))})),t.Lb.Y8,(function(){return Promise.resolve().then(r.bind(r,577))})),pn(pn(pn(pn(pn(pn(pn(pn(pn(pn(sn,t.Lb.LAGGED,(function(){return Promise.resolve().then(r.bind(r,88))})),t.Lb.FACEBOOK,(function(){return Promise.resolve().then(r.bind(r,353))})),t.Lb.POKI,(function(){return Promise.resolve().then(r.bind(r,514))})),t.Lb.QA_TOOL,(function(){return Promise.resolve().then(r.bind(r,334))})),t.Lb.MSN,(function(){return Promise.resolve().then(r.bind(r,288))})),t.Lb.HUAWEI,(function(){return Promise.resolve().then(r.bind(r,999))})),t.Lb.BITQUEST,(function(){return Promise.resolve().then(r.bind(r,546))})),t.Lb.GAMEPUSH,(function(){return Promise.resolve().then(r.bind(r,133))})),t.Lb.DISCORD,(function(){return Promise.resolve().then(r.bind(r,121))})),t.Lb.YOUTUBE,(function(){return Promise.resolve().then(r.bind(r,151))})),pn(pn(pn(pn(pn(pn(sn,t.Lb.JIO_GAMES,(function(){return Promise.resolve().then(r.bind(r,698))})),t.Lb.PORTAL,(function(){return Promise.resolve().then(r.bind(r,993))})),t.Lb.REDDIT,(function(){return Promise.resolve().then(r.bind(r,381))})),t.Lb.XIAOMI,(function(){return Promise.resolve().then(r.bind(r,788))})),t.Lb.MICROSOFT_STORE,(function(){return Promise.resolve().then(r.bind(r,572))})),t.Lb.TIKTOK,(function(){return Promise.resolve().then(r.bind(r,961))})));function dn(t){return yn.apply(this,arguments)}function yn(){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=hn[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\",un.Z);case 8:case\"end\":return t.stop()}}),t)})),yn=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fn(i,n,o,a,s,\"next\",t)}function s(t){fn(i,n,o,a,s,\"throw\",t)}a(void 0)}))},yn.apply(this,arguments)}function mn(t){return mn=\"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},mn(t)}function vn(){vn=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\"==mn(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 gn(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 _n(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){gn(i,n,o,a,s,\"next\",t)}function s(t){gn(i,n,o,a,s,\"throw\",t)}a(void 0)}))}}function bn(t,e){for(var r=0;r{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