"use strict";functione(e,o){returnt(e)||r(e,o)||l(e,o)||n()}functionn(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functionr(e,n){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e)){varr=[],t=!0,o=!1,a=void0;try{for(vari,u=e[Symbol.iterator]();!(t=(i=u.next()).done)&&(r.push(i.value),!n||r.length!==n);t=!0);}catch(c){o=!0,a=c}finally{try{t||null==u.return||u.return()}finally{if(o)throwa}}returnr}}functiont(e){if(Array.isArray(e))returne}functiono(e){returnu(e)||i(e)||l(e)||a()}functiona(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}functioni(e){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e))returnArray.from(e)}functionu(e){if(Array.isArray(e))returnd(e)}functionc(e,n,r,t,o,a,i){try{varu=e[a](i),c=u.value}catch(f){returnvoidr(f)}u.done?n(c):Promise.resolve(c).then(t,o)}functionf(e){returnfunction(){varn=this,r=arguments;returnnewPromise(function(t,o){vara=e.apply(n,r);functioni(e){c(a,t,o,i,u,"next",e)}functionu(e){c(a,t,o,i,u,"throw",e)}i(void0)})}}functions(e,n){varr;if("undefined"==typeofSymbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=l(e))||n&&e&&"number"==typeofe.length){r&&(e=r);vart=0,o=function(){};return{s:o,n:function(){returnt>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throwe},f:o}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}vara,i=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){vare=r.next();returni=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throwa}}}}functionl(e,n){if(e){if("string"==typeofe)returnd(e,n);varr=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,n):void0}}functiond(e,n){(null==n||n>e.length)&&(n=e.length);for(varr=0,t=newArray(n);r<n;r++)t[r]=e[r];returnt}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void0;varp="0.1.0",y=function(e){returne._orderedActionHandlers.MESSAGE_CREATE.find(function(e){return!0===e.crwWanted||e.actionHandler.toString().includes("receivePushNotification")})},m=0,v=["cunt","wanker","fuck","bitch","shit","crap","bollocks","arse","ass","piss","frick"],h=functione(){varn,r=goosemodScope.webpackModules.findByProps("register");try{n=y(r)}catch(t){returnsetTimeout(e,3e3)}n.crwWanted=!0,goosemodScope.patcher.inject("censor-rude-words",n,"actionHandler",function(e){varn,r=s(v);try{for(r.s();!(n=r.n()).done;){vart=n.value;t.enabled&&(e[0].message.content=e[0].message.content.replace(newRegExp("".concat(t.word),"g"),t.censored))}}catch(o){r.e(o)}finally{r.f()}returne},!0)},g={goosemodHandlers:{onImport:function(){vare=f(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:v=v.map(function(e){return{word:e,enabled:!0,censored:o(e).map(function(n,r){returnr>=e.length/4&&r<e.length-e.length/4?"\\*":n}).join("")}}),goosemodScope.settings.createItem("Censor Rude Words",["(v".concat(p,")"),{type:"header",text:"Words"}].concat(o(v.map(function(e){return{type:"toggle",text:e.word[0].toUpperCase()+e.word.substring(1),onToggle:function(n){e.enabled=n},isToggled:function(){returne.enabled}}}))));case2:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onLoadingFinished:function(){vare=f(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case0:h();case1:case"end":returne.stop()}},e)}));returnfunction(){returne.apply(this,arguments)}}(),onRemove:function(){vare=f(regeneratorRuntime.mark(functione(){returnregeneratorRuntime.wrap(function