"use strict";(self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[5914,9873],{9873:(n,t,e)=>{e.r(t),e.d(t,{default:()=>m});var i=e(8416),o=e(5240),u=e.n(o),s=e(73),r=e.n(s),l=e(1100),a=e.n(l);function c(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var i,o,u,s,r=[],l=!0,a=!1;try{if(u=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(i=u.call(e)).done)&&(r.push(i.value),r.length!==t);l=!0);}catch(n){a=!0,o=n}finally{try{if(!l&&null!=e.return&&(s=e.return(),Object(s)!==s))return}finally{if(a)throw o}}return r}}(n,t)||function(n,t){if(n){if("string"==typeof n)return f(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?f(n,t):void 0}}(n,t)||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 f(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e0&&void 0!==arguments[0]?arguments[0]:{},t=n.soundUrl,e=void 0===t?"":t,o=n.soundObj,s=void 0===o?{}:o,l=n.musicUrl,f=void 0===l?"":l,m=n.musicObj,y=void 0===m?{}:m,p=r()(),O=c((0,i.useState)(null===(null===a()||void 0===a()?void 0:a().getItem(d))||"true"===(null===a()||void 0===a()?void 0:a().getItem(d))),2),g=O[0],b=O[1],S=c((0,i.useState)(null===(null===a()||void 0===a()?void 0:a().getItem(v))||"true"===(null===a()||void 0===a()?void 0:a().getItem(v))),2),h=S[0],A=S[1],I=c(u()(!g,e,s),3),j=I[0],M=I[1],E=I[2],w=c(u()(!h,f,y),3),L=w[0],U=w[1],x=w[2];return(0,i.useEffect)((function(){null===a()||void 0===a()||a().setItem(d,g)}),[g]),(0,i.useEffect)((function(){null===a()||void 0===a()||a().setItem(v,h)}),[h]),(0,i.useEffect)((function(){p&&(b("true"===(null===a()||void 0===a()?void 0:a().getItem(d))),A("true"===(null===a()||void 0===a()?void 0:a().getItem(v))))}),[p]),{sound:(0,i.useMemo)((function(){return{isLoaded:j,isOn:g,play:M,stop:E,setOn:b}}),[j,g,M,E,b]),music:(0,i.useMemo)((function(){return{isLoaded:L,isOn:h,play:U,stop:x,setOn:A}}),[L,h,U,x,A])}}},914:(n,t,e)=>{e.d(t,{X:()=>S,Z:()=>A});var i=e(5439),o=e.n(i),u=e(8416),s=e(5694),r=e(1100),l=e.n(r),a=e(73),c=e.n(a),f=e(613),d=e(9873),v=e(9767);function m(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e{e.r(t),e.d(t,{SettingsService:()=>i.Z,settings:()=>i.X});var i=e(914)}}]);