mirror of
https://github.com/hanzoai/cuckoo.git
synced 2026-10-30 18:41:54 +00:00
1 line
1.5 KiB
JavaScript
1 line
1.5 KiB
JavaScript
(function(e){function n(e,o){if({}.hasOwnProperty.call(n.cache,e))return n.cache[e];if("function"==typeof o)return void n.load(e,o);var t=n.resolve(e);if(!t)throw new Error("Failed to resolve module "+e);var l={id:e,require:n,filename:e,exports:{},loaded:!1,parent:null,children:[]},r=e.slice(0,e.lastIndexOf("/")+1);return n.cache[e]=l.exports,t.call(l.exports,l,l.exports,r,e),l.loaded=!0,n.cache[e]=l.exports}n.modules={},n.cache={},n.resolve=function(e){return{}.hasOwnProperty.call(n.modules,e)?n.modules[e]:void 0},n.define=function(e,o){n.modules[e]=o},n.define("./index",function(e,n,o,t){var n;n={Egg:function(){return console.log("Egg called with ",arguments)}},function(){var e,o;if("undefined"!=typeof EventTarget&&null!==EventTarget)o=EventTarget.prototype;else{if("undefined"==typeof Node||null===Node)return void("undefined"!=typeof console&&null!==console&&"function"==typeof console.log&&console.log("EventTarget and Node are missing"));o=Node.prototype}return o&&null==o.dispatchEvent?void("undefined"!=typeof console&&null!==console&&"function"==typeof console.log&&console.log("dispatchEvent is missing")):(e=o.dispatchEvent,o.dispatchEvent=function(){return n.Egg.apply(this,arguments)},n.Target=function(e){var o,t,l,r,i;for(t=e.split(" "),i=[],l=0,r=t.length;r>l;l++)o=t[l],i.push(window.addEventListener(o,function(){return n.Egg.apply(n.Egg,arguments)}));return i},"undefined"!=typeof window&&null!==window?window.cuckoo=n:void 0)}(),e.exports=n}),n("./index")}).call(this,this); |