Socket
Socket
Sign inDemoInstall

de4js

Package Overview
Dependencies
0
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.10.3 to 1.10.4

workbox-3110e472.js

9

lib/utils.js

@@ -19,7 +19,7 @@ /* global math */

strMerge: (str) => str.replace(/(?<![[(=<>,!?:|&+\-*/])('|")\s*\+\s*\1(?!([\])=<>,?:|&+\-*/]|$))/g, ''),
strMerge: (str) => str.replace(/(?<![[(=<>,!?:|&+\-*/])('|")\s*\+\s*\1(?!([\])=<>,?:|&!+\-*/]|$))/g, ''),
methodChain: (str) => {
str = str.replace(
/(?<=(\b(return|throw|in|of|new|delete|default|function|async|await|get|set)|\{|\}|\*))\s*\[('|")((?![\d\W])[\w$]*)\3\]\s*\(/gi,
/(?<=(\b(return|throw|in|of|new|delete|default|function|async|await|get|set)|\{|\*))\s*\[('|")((?![\d\W])[\w$]*)\3\]\s*\(/g,
' $4( ',

@@ -49,5 +49,8 @@ );

_boolean: (str) =>
str.replace(/((?<=([=:(,|&[]|return|=>))|^)!{1,2}(\[\]|0|1)((?=[;,)}|&\]])|$)/g, (m) => eval(m).toString()),
str.replace(
/((?<=([=:(,|&[]|return|=>))|^)[\n\s]*!{1,2}(\[\]|0|1)((?=[;,)}|&\]])|$)/g,
(m) => ' ' + eval(m).toString(),
),
propArr: (str) => str.replace(/\[\((['"])((?![\d\W])[\w$]*)['"]\)\]/gi, '[$1$2$1]'),
};
{
"name": "de4js",
"version": "1.10.3",
"version": "1.10.4",
"description": "JavaScript Deobfuscator and Unpacker",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -1,2 +0,2 @@

if(!self.define){const r=r=>{"require"!==r&&(r+=".js");let e=Promise.resolve();return o[r]||(e=new Promise(async e=>{if("document"in self){const o=document.createElement("script");o.src=r,document.head.appendChild(o),o.onload=e}else importScripts(r),e()})),e.then(()=>{if(!o[r])throw new Error(`Module ${r} didn’t register its module`);return o[r]})},e=(e,o)=>{Promise.all(e.map(r)).then(r=>o(1===r.length?r[0]:r))},o={require:Promise.resolve(e)};self.define=(e,a,i)=>{o[e]||(o[e]=Promise.resolve().then(()=>{let o={};const s={uri:location.origin+e.slice(1)};return Promise.all(a.map(e=>{switch(e){case"exports":return o;case"module":return s;default:return r(e)}})).then(r=>{const e=i(...r);return o.default||(o.default=e),o})}))}}define("./sw.js",["./workbox-9f2a03dc"],(function(r){"use strict";self.addEventListener("message",r=>{r.data&&"SKIP_WAITING"===r.data.type&&self.skipWaiting()}),r.precacheAndRoute([{url:"assets/css/style.css",revision:"591b81e5dc564e3eb65fe6d016659a88"},{url:"assets/images/bkg.png",revision:"360842dce3f69f728aa77ae005424fe8"},{url:"assets/images/blacktocat.png",revision:"63f291a3168cc5e02daaa6156756b122"},{url:"assets/images/bullet.png",revision:"03ac3148397e2db4a517b649dda1473b"},{url:"assets/images/buttons/copy-document.png",revision:"383595543e61ac2796b290749fcc52ef"},{url:"assets/images/buttons/download.png",revision:"d2dedf6d77957db5a7bfb6a53295e7d6"},{url:"assets/images/buttons/external-link-symbol.png",revision:"2de11a499c90ac4ae01e216b1f80177b"},{url:"assets/images/icons/icon-128x128.png",revision:"6f14d711cf80097b078497193ea4ac30"},{url:"assets/images/icons/icon-144x144.png",revision:"e67b5b9ba8858a5d7db314fb36c038a5"},{url:"assets/images/icons/icon-152x152.png",revision:"4ced623ede1d3cf81710a7e19037a2f7"},{url:"assets/images/icons/icon-192x192.png",revision:"f1b40ddd6aef720f988681573c295218"},{url:"assets/images/icons/icon-384x384.png",revision:"5ba82586ea5c9a813117f132eb348fe7"},{url:"assets/images/icons/icon-512x512.png",revision:"e6bdac56bd1b6144f2a134d5828b1f87"},{url:"assets/images/icons/icon-72x72.png",revision:"f2e958dff8f4adead85d6d2ed4691807"},{url:"assets/images/icons/icon-96x96.png",revision:"515f261f32a0fd0e6a1bc6487a377979"},{url:"favicon.ico",revision:"9023cfc9b056b1e214bed25cfc018a33"},{url:"index.html",revision:"b35085cda45fc69a893bf1d412a316e7"},{url:"lib/arraydecode.js",revision:"56477e521ee80dbac47c89e7fd7689c6"},{url:"lib/evaldecode.js",revision:"4f59b2c741609ab89fc40e8c6ecc196f"},{url:"lib/jsfuckdecode.js",revision:"7fe99e9044d95fde7ee9ec0df51b8882"},{url:"lib/numberdecode.js",revision:"9b100f205b5ed0b77c3a8196034e1d09"},{url:"lib/obfuscatorio.js",revision:"87a7604919530b609c5bdfad379bc018"},{url:"lib/utils.js",revision:"1f4cdb2c772ff6530c4ff582dfc82b8b"},{url:"main.js",revision:"49101981b3ecb271b93642599b8974a9"},{url:"manifest.webmanifest",revision:"b94102b1340367613a5b168b57ba94d3"},{url:"sw.js",revision:"b899c5f3737ce14903768c3273bd1793"},{url:"third_party/cat-in-136/aadecode.js",revision:"06ea6b7f3cc57abf9bf111be19f10c7c"},{url:"third_party/clipboard-js/clipboard.min.js",revision:"ef09ae325779f61c5b994bb7d3797695"},{url:"third_party/decoder-jjencode/jjdecode.js",revision:"27abc7cdeee1be4a891678eb72c46880"},{url:"third_party/highlight-js/highlight.min.js",revision:"885244632b9e623c0cc40061ee5745f4"},{url:"third_party/js-beautify/beautify.min.js",revision:"f1cb625c43e86caf730eb258a289e8c3"},{url:"third_party/js-beautify/unpackers/javascriptobfuscator_unpacker.js",revision:"939ead8257cdb38a0556ba8a0f79feda"},{url:"third_party/js-beautify/unpackers/myobfuscate_unpacker.js",revision:"9c2d3d994e406d3ca73419978ccfff26"},{url:"third_party/js-beautify/unpackers/p_a_c_k_e_r_unpacker.js",revision:"0303e930789facfc4d8a764ffcfb6d30"},{url:"third_party/js-beautify/unpackers/urlencode_unpacker.js",revision:"6c4a9f54d4a766f6d085fff7bd7c88fb"},{url:"third_party/mathjs/math.min.js",revision:"4f44a4577c93aa6b6c13083b3ad4cd86"},{url:"third_party/workbox/workbox-v5.1.4/workbox-background-sync.dev.js",revision:"292540f6dfbf73613fee69c4daa34768"},{url:"third_party/workbox/workbox-v5.1.4/workbox-background-sync.prod.js",revision:"1477337d11af8f727e9203690ef10cfc"},{url:"third_party/workbox/workbox-v5.1.4/workbox-broadcast-update.dev.js",revision:"c8aec116b72d5a6f4fbdf895cbe9a6a2"},{url:"third_party/workbox/workbox-v5.1.4/workbox-broadcast-update.prod.js",revision:"3b28d76111687065750273c7ac7f4c97"},{url:"third_party/workbox/workbox-v5.1.4/workbox-cacheable-response.dev.js",revision:"22b01a882fa59ca2dc95581a863d6543"},{url:"third_party/workbox/workbox-v5.1.4/workbox-cacheable-response.prod.js",revision:"baa5a06eb89620c714728d9292895824"},{url:"third_party/workbox/workbox-v5.1.4/workbox-core.dev.js",revision:"4da76fb060d4145b55f770ef2ba1916e"},{url:"third_party/workbox/workbox-v5.1.4/workbox-core.prod.js",revision:"2002e39bc413245e9466646856a3a1a0"},{url:"third_party/workbox/workbox-v5.1.4/workbox-expiration.dev.js",revision:"2b6ecefe6b4de33b232b1d4f3f6f2d4d"},{url:"third_party/workbox/workbox-v5.1.4/workbox-expiration.prod.js",revision:"3c39521fc764b9952c819c8be6bdee40"},{url:"third_party/workbox/workbox-v5.1.4/workbox-navigation-preload.dev.js",revision:"79bf2718a2ad92bc4b16e90df9a6813e"},{url:"third_party/workbox/workbox-v5.1.4/workbox-navigation-preload.prod.js",revision:"b08e45df331d747386f7a9d3ce8d6f35"},{url:"third_party/workbox/workbox-v5.1.4/workbox-offline-ga.dev.js",revision:"3bfac87afd96631ca169f1580340bb09"},{url:"third_party/workbox/workbox-v5.1.4/workbox-offline-ga.prod.js",revision:"291d35c6a2d5e4e63240804f3da93dff"},{url:"third_party/workbox/workbox-v5.1.4/workbox-precaching.dev.js",revision:"fe30d3ca56741cc350362b551cc81ea6"},{url:"third_party/workbox/workbox-v5.1.4/workbox-precaching.prod.js",revision:"aad79f6fd69e76afce9a9bc0444fb4b1"},{url:"third_party/workbox/workbox-v5.1.4/workbox-range-requests.dev.js",revision:"0aba977d2b293ce947ace319edfff93f"},{url:"third_party/workbox/workbox-v5.1.4/workbox-range-requests.prod.js",revision:"05a4f56357fc7bc48478d8048df4f0e3"},{url:"third_party/workbox/workbox-v5.1.4/workbox-routing.dev.js",revision:"eb2ee6155e0c721707d9fa05e4590f28"},{url:"third_party/workbox/workbox-v5.1.4/workbox-routing.prod.js",revision:"65baaf497738a14f1b694a9cff829d4d"},{url:"third_party/workbox/workbox-v5.1.4/workbox-strategies.dev.js",revision:"929f436eeb0effe772037b7afb8ab1db"},{url:"third_party/workbox/workbox-v5.1.4/workbox-strategies.prod.js",revision:"2a12ac7e1932c797cb3084c2543066c9"},{url:"third_party/workbox/workbox-v5.1.4/workbox-streams.dev.js",revision:"1ebc21ea730f92a3ea3e2698f9449a65"},{url:"third_party/workbox/workbox-v5.1.4/workbox-streams.prod.js",revision:"e1ce8b87604c3265fcca4504f1b97814"},{url:"third_party/workbox/workbox-v5.1.4/workbox-sw.js",revision:"dc277aae8a000c27df99aba092aa1832"},{url:"third_party/workbox/workbox-v5.1.4/workbox-window.dev.umd.js",revision:"80d6025c59787e3fbdbd4e55ef08d7f3"},{url:"third_party/workbox/workbox-v5.1.4/workbox-window.prod.umd.js",revision:"a416894a85a10c88abd525b50d27ffed"},{url:"userscript/de4js_helper.meta.js",revision:"fe825c1a70565f0261a1d50f5c1852a0"},{url:"userscript/de4js_helper.user.js",revision:"77a52a43fd118afab8e2c9978333b922"},{url:"workbox-9f2a03dc.js",revision:"7b12cf6dd7e7bf505381622e6b7ec4e0"},{url:"worker/decode.js",revision:"6af2ab3c808dd9d7947f163868156610"},{url:"worker/format.js",revision:"37cf86ac190a81b1d157a0fa5bfb407b"}],{})}));
if(!self.define){const r=r=>{"require"!==r&&(r+=".js");let e=Promise.resolve();return o[r]||(e=new Promise(async e=>{if("document"in self){const o=document.createElement("script");o.src=r,document.head.appendChild(o),o.onload=e}else importScripts(r),e()})),e.then(()=>{if(!o[r])throw new Error(`Module ${r} didn’t register its module`);return o[r]})},e=(e,o)=>{Promise.all(e.map(r)).then(r=>o(1===r.length?r[0]:r))},o={require:Promise.resolve(e)};self.define=(e,a,i)=>{o[e]||(o[e]=Promise.resolve().then(()=>{let o={};const s={uri:location.origin+e.slice(1)};return Promise.all(a.map(e=>{switch(e){case"exports":return o;case"module":return s;default:return r(e)}})).then(r=>{const e=i(...r);return o.default||(o.default=e),o})}))}}define("./sw.js",["./workbox-3110e472"],(function(r){"use strict";self.addEventListener("message",r=>{r.data&&"SKIP_WAITING"===r.data.type&&self.skipWaiting()}),r.precacheAndRoute([{url:"assets/css/style.css",revision:"591b81e5dc564e3eb65fe6d016659a88"},{url:"assets/images/bkg.png",revision:"360842dce3f69f728aa77ae005424fe8"},{url:"assets/images/blacktocat.png",revision:"63f291a3168cc5e02daaa6156756b122"},{url:"assets/images/bullet.png",revision:"03ac3148397e2db4a517b649dda1473b"},{url:"assets/images/buttons/copy-document.png",revision:"383595543e61ac2796b290749fcc52ef"},{url:"assets/images/buttons/download.png",revision:"d2dedf6d77957db5a7bfb6a53295e7d6"},{url:"assets/images/buttons/external-link-symbol.png",revision:"2de11a499c90ac4ae01e216b1f80177b"},{url:"assets/images/icons/icon-128x128.png",revision:"6f14d711cf80097b078497193ea4ac30"},{url:"assets/images/icons/icon-144x144.png",revision:"e67b5b9ba8858a5d7db314fb36c038a5"},{url:"assets/images/icons/icon-152x152.png",revision:"4ced623ede1d3cf81710a7e19037a2f7"},{url:"assets/images/icons/icon-192x192.png",revision:"f1b40ddd6aef720f988681573c295218"},{url:"assets/images/icons/icon-384x384.png",revision:"5ba82586ea5c9a813117f132eb348fe7"},{url:"assets/images/icons/icon-512x512.png",revision:"e6bdac56bd1b6144f2a134d5828b1f87"},{url:"assets/images/icons/icon-72x72.png",revision:"f2e958dff8f4adead85d6d2ed4691807"},{url:"assets/images/icons/icon-96x96.png",revision:"515f261f32a0fd0e6a1bc6487a377979"},{url:"favicon.ico",revision:"9023cfc9b056b1e214bed25cfc018a33"},{url:"index.html",revision:"9390063504fdf725735a829173aac0bc"},{url:"lib/arraydecode.js",revision:"56477e521ee80dbac47c89e7fd7689c6"},{url:"lib/evaldecode.js",revision:"4f59b2c741609ab89fc40e8c6ecc196f"},{url:"lib/jsfuckdecode.js",revision:"7fe99e9044d95fde7ee9ec0df51b8882"},{url:"lib/numberdecode.js",revision:"9b100f205b5ed0b77c3a8196034e1d09"},{url:"lib/obfuscatorio.js",revision:"87a7604919530b609c5bdfad379bc018"},{url:"lib/utils.js",revision:"ea2daa9b271f8f16736b95cec6e8a6f6"},{url:"main.js",revision:"4ca5be1fcfc14d278522b47ae75a4d56"},{url:"manifest.webmanifest",revision:"b94102b1340367613a5b168b57ba94d3"},{url:"sw.js",revision:"79b94f5ab3ea76851e2ed6d4cf472424"},{url:"third_party/cat-in-136/aadecode.js",revision:"06ea6b7f3cc57abf9bf111be19f10c7c"},{url:"third_party/clipboard-js/clipboard.min.js",revision:"aeaeb6ab463cb8140a72103aedb01d74"},{url:"third_party/decoder-jjencode/jjdecode.js",revision:"27abc7cdeee1be4a891678eb72c46880"},{url:"third_party/highlight-js/highlight.min.js",revision:"9a99fc600014ee54d144c4e643fdfb05"},{url:"third_party/js-beautify/beautify.min.js",revision:"62a28a3187b18814899cf0813a718cb2"},{url:"third_party/js-beautify/unpackers/javascriptobfuscator_unpacker.js",revision:"939ead8257cdb38a0556ba8a0f79feda"},{url:"third_party/js-beautify/unpackers/myobfuscate_unpacker.js",revision:"9c2d3d994e406d3ca73419978ccfff26"},{url:"third_party/js-beautify/unpackers/p_a_c_k_e_r_unpacker.js",revision:"0303e930789facfc4d8a764ffcfb6d30"},{url:"third_party/js-beautify/unpackers/urlencode_unpacker.js",revision:"6c4a9f54d4a766f6d085fff7bd7c88fb"},{url:"third_party/mathjs/math.min.js",revision:"b5d0fab60a09c4aee005deba57498470"},{url:"third_party/workbox/workbox-v5.1.4/workbox-background-sync.dev.js",revision:"292540f6dfbf73613fee69c4daa34768"},{url:"third_party/workbox/workbox-v5.1.4/workbox-background-sync.prod.js",revision:"1477337d11af8f727e9203690ef10cfc"},{url:"third_party/workbox/workbox-v5.1.4/workbox-broadcast-update.dev.js",revision:"c8aec116b72d5a6f4fbdf895cbe9a6a2"},{url:"third_party/workbox/workbox-v5.1.4/workbox-broadcast-update.prod.js",revision:"3b28d76111687065750273c7ac7f4c97"},{url:"third_party/workbox/workbox-v5.1.4/workbox-cacheable-response.dev.js",revision:"22b01a882fa59ca2dc95581a863d6543"},{url:"third_party/workbox/workbox-v5.1.4/workbox-cacheable-response.prod.js",revision:"baa5a06eb89620c714728d9292895824"},{url:"third_party/workbox/workbox-v5.1.4/workbox-core.dev.js",revision:"4da76fb060d4145b55f770ef2ba1916e"},{url:"third_party/workbox/workbox-v5.1.4/workbox-core.prod.js",revision:"2002e39bc413245e9466646856a3a1a0"},{url:"third_party/workbox/workbox-v5.1.4/workbox-expiration.dev.js",revision:"2b6ecefe6b4de33b232b1d4f3f6f2d4d"},{url:"third_party/workbox/workbox-v5.1.4/workbox-expiration.prod.js",revision:"3c39521fc764b9952c819c8be6bdee40"},{url:"third_party/workbox/workbox-v5.1.4/workbox-navigation-preload.dev.js",revision:"79bf2718a2ad92bc4b16e90df9a6813e"},{url:"third_party/workbox/workbox-v5.1.4/workbox-navigation-preload.prod.js",revision:"b08e45df331d747386f7a9d3ce8d6f35"},{url:"third_party/workbox/workbox-v5.1.4/workbox-offline-ga.dev.js",revision:"3bfac87afd96631ca169f1580340bb09"},{url:"third_party/workbox/workbox-v5.1.4/workbox-offline-ga.prod.js",revision:"291d35c6a2d5e4e63240804f3da93dff"},{url:"third_party/workbox/workbox-v5.1.4/workbox-precaching.dev.js",revision:"fe30d3ca56741cc350362b551cc81ea6"},{url:"third_party/workbox/workbox-v5.1.4/workbox-precaching.prod.js",revision:"aad79f6fd69e76afce9a9bc0444fb4b1"},{url:"third_party/workbox/workbox-v5.1.4/workbox-range-requests.dev.js",revision:"0aba977d2b293ce947ace319edfff93f"},{url:"third_party/workbox/workbox-v5.1.4/workbox-range-requests.prod.js",revision:"05a4f56357fc7bc48478d8048df4f0e3"},{url:"third_party/workbox/workbox-v5.1.4/workbox-routing.dev.js",revision:"eb2ee6155e0c721707d9fa05e4590f28"},{url:"third_party/workbox/workbox-v5.1.4/workbox-routing.prod.js",revision:"65baaf497738a14f1b694a9cff829d4d"},{url:"third_party/workbox/workbox-v5.1.4/workbox-strategies.dev.js",revision:"929f436eeb0effe772037b7afb8ab1db"},{url:"third_party/workbox/workbox-v5.1.4/workbox-strategies.prod.js",revision:"2a12ac7e1932c797cb3084c2543066c9"},{url:"third_party/workbox/workbox-v5.1.4/workbox-streams.dev.js",revision:"1ebc21ea730f92a3ea3e2698f9449a65"},{url:"third_party/workbox/workbox-v5.1.4/workbox-streams.prod.js",revision:"e1ce8b87604c3265fcca4504f1b97814"},{url:"third_party/workbox/workbox-v5.1.4/workbox-sw.js",revision:"dc277aae8a000c27df99aba092aa1832"},{url:"third_party/workbox/workbox-v5.1.4/workbox-window.dev.umd.js",revision:"80d6025c59787e3fbdbd4e55ef08d7f3"},{url:"third_party/workbox/workbox-v5.1.4/workbox-window.prod.umd.js",revision:"a416894a85a10c88abd525b50d27ffed"},{url:"userscript/de4js_helper.meta.js",revision:"d620914eb1bf8e2b9eb1ccfd9852c0f0"},{url:"userscript/de4js_helper.user.js",revision:"f5cb717dfcffb80d45674bf9499294d5"},{url:"workbox-3110e472.js",revision:"f9f818b697555ce7b63536eecf722797"},{url:"worker/decode.js",revision:"17643fab792e878b4d517f43cdb60f25"},{url:"worker/format.js",revision:"e9d14076746e3bef34bb1ef6150160aa"}],{})}));
//# sourceMappingURL=sw.js.map

@@ -1,2 +0,7 @@

/*! clipboard.js v2.0.4 | https://zenorocha.github.io/clipboard.js | MIT https://zenorocha.mit-license.org/ */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="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=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="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=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
/*!
* clipboard.js v2.0.6
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n,t.exports.TinyEmitter=n},function(t,e,n){var d=n(3),h=n(4);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(u=t).addEventListener(s,f),{destroy:function(){u.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,l=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,l)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,l,u,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(5);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,n){"use strict";n.r(e);var o=n(0),r=n.n(o),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};function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),this.resolveOptions(t),this.initSelection()}var l=(function(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}(c,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=r()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(t){var e=0<arguments.length&&void 0!==t?t:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),c),u=n(1),s=n.n(u),f=n(2),d=n.n(f),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},p=function(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t};function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var m=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(v,s.a),p(v,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=d()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return b("action",t)}},{key:"defaultTarget",value:function(t){var e=b("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return b("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(t){var e=0<arguments.length&&void 0!==t?t:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),v);function v(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));return n.resolveOptions(e),n.listenClick(t),n}function b(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=m}],r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=6).default;function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,o});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc