/usr/share/javascript/requirejs/css-builder.min.js is in libjs-require-css 0.1.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | define(["require","./normalize"],function(l,h){var i={};function f(q){if(typeof process!=="undefined"&&process.versions&&!!process.versions.node&&require.nodeRequire){try{var t=require.nodeRequire("csso");var r=q.length;q=t.justDoIt(q);console.log("Compressed CSS output to "+Math.round(q.length/r*100)+"%.");return q}catch(s){console.log('Compression module not installed. Use "npm install csso -g" to enable.');return q}}console.log("Compression not supported outside of nodejs environments.");return q}function g(w){if(typeof process!=="undefined"&&process.versions&&!!process.versions.node&&require.nodeRequire){var r=require.nodeRequire("fs");var u=r.readFileSync(w,"utf8");if(u.indexOf("\uFEFF")===0){return u.substring(1)}return u}else{var u=new java.io.File(w),q=java.lang.System.getProperty("line.separator"),t=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(u),"utf-8")),v,s;try{v=new java.lang.StringBuffer();s=t.readLine();if(s&&s.length()&&s.charAt(0)===65279){s=s.substring(1)}v.append(s);while((s=t.readLine())!==null){v.append(q).append(s)}return String(v.toString())}finally{t.close()}}}function c(u,t){if(typeof process!=="undefined"&&process.versions&&!!process.versions.node&&require.nodeRequire){var q=require.nodeRequire("fs");q.writeFileSync(u,t,"utf8")}else{var s=new java.lang.String(t);var r=new java.io.BufferedWriter(new java.io.OutputStreamWriter(new java.io.FileOutputStream(u),"utf-8"));try{r.write(s,0,s.length());r.flush()}finally{r.close()}}}function n(q){return q.replace(/(["'\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")}var o=/@import\s*(url)?\s*(('([^']*)'|"([^"]*)")|\(('([^']*)'|"([^"]*)"|([^\)]*))\))\s*;?/g;var p=/^([^\:\/]+:\/)?\//;var e;var k=l.toUrl("base_url").split("/");k[k.length-1]="";var j=k.join("/");var m=0;var d;var a=[];var b={};i.load=function(r,s,u,t){d=d||t;e=e||path.resolve(d.dir||path.dirname(d.out),d.siteRoot||".")+"/";if(r.match(p)){return u()}var q=s.toUrl(r+".css");b[r]=h(g(q),q,e);u()};i.normalize=function(r,q){if(r.substr(r.length-4,4)==".css"){r=r.substr(0,r.length-4)}return q(r)};i.write=function(s,q,r,t){if(q.match(p)){return}a.push(b[q]);if(d.buildCSS!=false){r.asModule(s+"!"+q,"define(function(){})")}};i.onLayerEnd=function(r,s){var q=a.join("");if(d.separateCSS){console.log("Writing CSS! file: "+s.name+"\n");var t=d.appDir?d.baseUrl+s.name+".css":d.out.replace(/(\.js)?$/,".css");c(t,f(q))}else{if(d.buildCSS!=false){if(q==""){return}r("(function(c){var d=document,a='appendChild',i='styleSheet',s=d.createElement('style');s.type='text/css';d.getElementsByTagName('head')[0][a](s);s[i]?s[i].cssText=c:s[a](d.createTextNode(c));})\n('"+n(f(q))+"');\n")}}a=[]};return i});
|