mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
5 lines
5 KiB
JavaScript
5 lines
5 KiB
JavaScript
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"../../../../moduleWrappers/webpack.js":[function(require,module,exports) {
|
|
module.exports=goosemodScope.webpackModules;
|
|
},{}],"index.js":[function(require,module,exports) {
|
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e,r,n,t=i(require("@goosemod/webpack"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o();if(r&&r.has(e))return r.get(e);var n={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=t?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function a(e,r){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var t=0,o=function(){};return{s:o,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function u(e,r){if(e){if("string"==typeof e)return l(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,r):void 0}}function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function c(e,r,n,t,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void n(c)}u.done?r(l):Promise.resolve(l).then(t,o)}function f(e){return function(){var r=this,n=arguments;return new Promise(function(t,o){var i=e.apply(r,n);function a(e){c(i,t,o,a,u,"next",e)}function u(e){c(i,t,o,a,u,"throw",e)}a(void 0)})}}var s=t.findByProps("getDisambiguatedEmojiContext","filterExternal"),p=t.findByProps("parse","parsePreprocessor","unparse"),d=t.findByProps("useEmojiSelectHandler"),v={original_filterExternal:void 0,original_parse:void 0,original_useEmojiSelectHandler:void 0},m={goosemodHandlers:{onImport:function(){var t=f(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=v.original_filterExternal=s.filterExternal,s.filterExternal=function(){return e.apply(this,arguments)},r=v.original_parse=p.parse,p.parse=function(){return r.apply(this,arguments)},n=v.original_useEmojiSelectHandler=d.useEmojiSelectHandler,d.useEmojiSelectHandler=function(){return n.apply(this,arguments)},e=function(e,r,n){var t=s.getDisambiguatedEmojiContext(e?e.guild_id:null).nameMatchesChain(r);return n>0&&(t=t.take(n)),t.value()},r=function(){var e=v.original_parse.apply(this,arguments);if(0!==e.invalidEmojis.length){var r,n=a(e.invalidEmojis);try{for(n.s();!(r=n.n()).done;){var t=r.value;e.content=e.content.replace("<".concat(t.animated?"a":"",":").concat(t.originalName||t.name,":").concat(t.id,">"),"".concat(t.url,"&size=64&width=16"))}}catch(o){n.e(o)}finally{n.f()}e.invalidEmojis=[]}return e},n=function(e){var r=e.onSelectEmoji,n=e.closePopout;return function(e,t){var o=e.emoji;null!=o&&o.available&&(r(o,t.isFinalSelection),t.isFinalSelection&&n())}};case 9:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),onRemove:function(){var t=f(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=v.original_filterExternal,r=v.original_parse,n=v.original_useEmojiSelectHandler;case 3:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}()}};exports.default=m;
|
|
},{"@goosemod/webpack":"../../../../moduleWrappers/webpack.js"}]},{},["index.js"], null);parcelRequire('index.js').default |