/usr/share/javascript/cocktail/Cocktail.min.js is in libjs-cocktail 0.5.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | (function(a){if(typeof require==="function"&&typeof module!=="undefined"&&module.exports){module.exports=a(require("underscore"))}else{if(typeof define==="function"){define(["underscore"],a)}else{this.Cocktail=a(_)}}}(function(d){var a={};a.mixins={};a.mixin=function c(g){var h=d.chain(arguments).toArray().rest().flatten().value();var j=g.prototype||g;var i={};d(h).each(function(k){if(d.isString(k)){k=a.mixins[k]}d(k).each(function(m,l){if(d.isFunction(m)){if(j[l]===m){return}if(j[l]){i[l]=i[l]||[j[l]];i[l].push(m)}j[l]=m}else{if(d.isArray(m)){j[l]=d.union(m,j[l]||[])}else{if(d.isObject(m)){j[l]=d.extend({},m,j[l]||{})}else{if(!(l in j)){j[l]=m}}}}})});d(i).each(function(k,l){j[l]=function(){var o=this,m=arguments,n;d(k).each(function(p){var q=d.isFunction(p)?p.apply(o,m):p;n=(typeof q==="undefined"?n:q)});return n}});return g};var e;a.patch=function f(h){e=h.Model.extend;var g=function(k,l){var i=e.call(this,k,l);var j=i.prototype.mixins;if(j&&i.prototype.hasOwnProperty("mixins")){a.mixin(i,j)}return i};d([h.Model,h.Collection,h.Router,h.View]).each(function(i){i.mixin=function j(){a.mixin(this,d.toArray(arguments))};i.extend=g})};a.unpatch=function b(g){d([g.Model,g.Collection,g.Router,g.View]).each(function(h){h.mixin=undefined;h.extend=e})};return a}));
|