{"version":3,"sources":["../src/index.js"],"names":["mergeDeep","dither","resize","blit","rotate","color","print","blur","crop","normalize","invert","gaussian","flip","mask","scale","displace","contain","cover","plugins","jimpEvChange","initializedPlugins","map","pluginModule","plugin","class","constants"],"mappings":";;;;;;;;AAAA,SAASA,SAAT,QAA0B,MAA1B;AAEA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,IAAP,MAAiB,mBAAjB;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,KAAP,MAAkB,oBAAlB;AACA,OAAOC,KAAP,MAAkB,oBAAlB;AACA,OAAOC,IAAP,MAAiB,mBAAjB;AACA,OAAOC,IAAP,MAAiB,mBAAjB;AACA,OAAOC,SAAP,MAAsB,wBAAtB;AACA,OAAOC,MAAP,MAAmB,qBAAnB;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,IAAP,MAAiB,mBAAjB;AACA,OAAOC,IAAP,MAAiB,mBAAjB;AACA,OAAOC,KAAP,MAAkB,oBAAlB;AACA,OAAOC,QAAP,MAAqB,uBAArB;AACA,OAAOC,OAAP,MAAoB,sBAApB;AACA,OAAOC,KAAP,MAAkB,oBAAlB;AAEA,IAAMC,OAAO,GAAG,CACdjB,MADc,EAEdC,MAFc,EAGdC,IAHc,EAIdC,MAJc,EAKdC,KALc,EAMdC,KANc,EAOdC,IAPc,EAQdC,IARc,EASdC,SATc,EAUdC,MAVc,EAWdC,QAXc,EAYdC,IAZc,EAadC,IAbc,EAcdC,KAdc,EAedC,QAfc,EAgBdC,OAhBc,EAiBdC,KAjBc,CAAhB;AAoBA,gBAAe,UAAAE,YAAY,EAAI;AAC7B,MAAMC,kBAAkB,GAAGF,OAAO,CAACG,GAAR,CAAY,UAAAC,YAAY,EAAI;AACrD,QAAIC,MAAM,GAAGD,YAAY,CAACH,YAAD,CAAZ,IAA8B,EAA3C;;AAEA,QAAI,CAACI,MAAM,CAACC,KAAR,IAAiB,CAACD,MAAM,CAACE,SAA7B,EAAwC;AACtC;AACAF,MAAAA,MAAM,GAAG;AAAEC,QAAAA,KAAK,EAAED;AAAT,OAAT;AACD;;AAED,WAAOA,MAAP;AACD,GAT0B,CAA3B;AAWA,SAAOvB,SAAS,MAAT,4BAAaoB,kBAAb,EAAP;AACD,CAbD","sourcesContent":["import { mergeDeep } from 'timm';\n\nimport dither from '@jimp/plugin-dither';\nimport resize from '@jimp/plugin-resize';\nimport blit from '@jimp/plugin-blit';\nimport rotate from '@jimp/plugin-rotate';\nimport color from '@jimp/plugin-color';\nimport print from '@jimp/plugin-print';\nimport blur from '@jimp/plugin-blur';\nimport crop from '@jimp/plugin-crop';\nimport normalize from '@jimp/plugin-normalize';\nimport invert from '@jimp/plugin-invert';\nimport gaussian from '@jimp/plugin-gaussian';\nimport flip from '@jimp/plugin-flip';\nimport mask from '@jimp/plugin-mask';\nimport scale from '@jimp/plugin-scale';\nimport displace from '@jimp/plugin-displace';\nimport contain from '@jimp/plugin-contain';\nimport cover from '@jimp/plugin-cover';\n\nconst plugins = [\n dither,\n resize,\n blit,\n rotate,\n color,\n print,\n blur,\n crop,\n normalize,\n invert,\n gaussian,\n flip,\n mask,\n scale,\n displace,\n contain,\n cover\n];\n\nexport default jimpEvChange => {\n const initializedPlugins = plugins.map(pluginModule => {\n let plugin = pluginModule(jimpEvChange) || {};\n\n if (!plugin.class && !plugin.constants) {\n // Default to class function\n plugin = { class: plugin };\n }\n\n return plugin;\n });\n\n return mergeDeep(...initializedPlugins);\n};\n"],"file":"index.js"}