asset-rack
Version:
Asset management framework for nodejs
1 lines • 13.1 kB
JavaScript
(function(){var r=function(e,n){var t=r.resolve(e,n||"/"),o=r.modules[t];if(!o)throw Error("Failed to resolve module "+e+", tried "+t);var i=r.cache[t],a=i?i.exports:o();return a};r.paths=[],r.modules={},r.cache={},r.extensions=[".js",".coffee",".json"],r._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},r.resolve=function(){return function(e,n){function t(e){if(e=u.normalize(e),r.modules[e])return e;for(var n=0;r.extensions.length>n;n++){var t=r.extensions[n];if(r.modules[e+t])return e+t}}function o(e){e=e.replace(/\/+$/,"");var n=u.normalize(e+"/package.json");if(r.modules[n]){var o=r.modules[n](),i=o.browserify;if("object"==typeof i&&i.main){var a=t(u.resolve(e,i.main));if(a)return a}else if("string"==typeof i){var a=t(u.resolve(e,i));if(a)return a}else if(o.main){var a=t(u.resolve(e,o.main));if(a)return a}}return t(e+"/index")}function i(r,e){for(var n=a(e),i=0;n.length>i;i++){var u=n[i],c=t(u+"/"+r);if(c)return c;var f=o(u+"/"+r);if(f)return f}var c=t(r);return c?c:void 0}function a(r){var e;e="/"===r?[""]:u.normalize(r).split("/");for(var n=[],t=e.length-1;t>=0;t--)if("node_modules"!==e[t]){var o=e.slice(0,t+1).join("/")+"/node_modules";n.push(o)}return n}if(n||(n="/"),r._core[e])return e;var u=r.modules.path();n=u.resolve("/",n);var c=n||"/";if(e.match(/^(?:\.\.?\/|\/)/)){var f=t(u.resolve(c,e))||o(u.resolve(c,e));if(f)return f}var s=i(e,c);if(s)return s;throw Error("Cannot find module '"+e+"'")}}(),r.alias=function(e,n){var t=r.modules.path(),o=null;try{o=r.resolve(e+"/package.json","/")}catch(i){o=r.resolve(e,"/")}for(var a=t.dirname(o),u=(Object.keys||function(r){var e=[];for(var n in r)e.push(n);return e})(r.modules),c=0;u.length>c;c++){var f=u[c];if(f.slice(0,a.length+1)===a+"/"){var s=f.slice(a.length);r.modules[n+s]=r.modules[a+s]}else f===a&&(r.modules[n]=r.modules[a])}},function(){var e={},n="undefined"!=typeof window?window:{},t=!1;r.define=function(o,i){!t&&r.modules.__browserify_process&&(e=r.modules.__browserify_process(),t=!0);var a=r._core[o]?"":r.modules.path().dirname(o),u=function(e){var n=r(e,a),t=r.cache[r.resolve(e,a)];return t&&null===t.parent&&(t.parent=c),n};u.resolve=function(e){return r.resolve(e,a)},u.modules=r.modules,u.define=r.define,u.cache=r.cache;var c={id:o,filename:o,exports:{},loaded:!1,parent:null};r.modules[o]=function(){return r.cache[o]=c,i.call(c.exports,u,c,c.exports,a,o,e,n),c.loaded=!0,c.exports}}}(),r.define("path",function(r,e,n,t,o,i){function a(r,e){for(var n=[],t=0;r.length>t;t++)e(r[t],t,r)&&n.push(r[t]);return n}function u(r,e){for(var n=0,t=r.length;t>=0;t--){var o=r[t];"."==o?r.splice(t,1):".."===o?(r.splice(t,1),n++):n&&(r.splice(t,1),n--)}if(e)for(;n--;n)r.unshift("..");return r}var c=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;n.resolve=function(){for(var r="",e=!1,n=arguments.length;n>=-1&&!e;n--){var t=n>=0?arguments[n]:i.cwd();"string"==typeof t&&t&&(r=t+"/"+r,e="/"===t.charAt(0))}return r=u(a(r.split("/"),function(r){return!!r}),!e).join("/"),(e?"/":"")+r||"."},n.normalize=function(r){var e="/"===r.charAt(0),n="/"===r.slice(-1);return r=u(a(r.split("/"),function(r){return!!r}),!e).join("/"),r||e||(r="."),r&&n&&(r+="/"),(e?"/":"")+r},n.join=function(){var r=Array.prototype.slice.call(arguments,0);return n.normalize(a(r,function(r){return r&&"string"==typeof r}).join("/"))},n.dirname=function(r){var e=c.exec(r)[1]||"",n=!1;return e?1===e.length||n&&3>=e.length&&":"===e.charAt(1)?e:e.substring(0,e.length-1):"."},n.basename=function(r,e){var n=c.exec(r)[2]||"";return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},n.extname=function(r){return c.exec(r)[3]||""},n.relative=function(r,e){function t(r){for(var e=0;r.length>e&&""===r[e];e++);for(var n=r.length-1;n>=0&&""===r[n];n--);return e>n?[]:r.slice(e,n-e+1)}r=n.resolve(r).substr(1),e=n.resolve(e).substr(1);for(var o=t(r.split("/")),i=t(e.split("/")),a=Math.min(o.length,i.length),u=a,c=0;a>c;c++)if(o[c]!==i[c]){u=c;break}for(var f=[],c=u;o.length>c;c++)f.push("..");return f=f.concat(i.slice(u)),f.join("/")}}),r.define("__browserify_process",function(r,e,n,t,o,i){var i=e.exports={};i.nextTick=function(){var r="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(r)return function(r){return window.setImmediate(r)};if(e){var n=[];return window.addEventListener("message",function(r){if(r.source===window&&"browserify-tick"===r.data&&(r.stopPropagation(),n.length>0)){var e=n.shift();e()}},!0),function(r){n.push(r),window.postMessage("browserify-tick","*")}}return function(r){setTimeout(r,0)}}(),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.binding=function(e){if("evals"===e)return r("vm");throw Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";i.cwd=function(){return n},i.chdir=function(t){e||(e=r("path")),n=e.resolve(t,n)}}()}),r.define("crypto",function(r,e){e.exports=r("crypto-browserify")}),r.define("/node_modules/crypto-browserify/package.json",function(r,e){e.exports={}}),r.define("/node_modules/crypto-browserify/index.js",function(r,e,n){function t(){var r=[].slice.call(arguments).join(" ");throw Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}var o=r("./sha"),i=r("./rng"),a=r("./md5"),u={sha1:{hex:o.hex_sha1,binary:o.b64_sha1,ascii:o.str_sha1},md5:{hex:a.hex_md5,binary:a.b64_md5,ascii:a.any_md5}};n.createHash=function(r){r=r||"sha1",u[r]||t("algorithm:",r,"is not yet supported");var e="",n=u[r];return{update:function(r){return e+=r,this},digest:function(o){o=o||"binary";var i;(i=n[o])||t("encoding:",o,"is not yet supported for algorithm",r);var a=i(e);return e=null,a}}},n.randomBytes=function(r,e){if(!e||!e.call)return i(r);try{e.call(this,void 0,i(r))}catch(n){e(n)}},["createCredentials","createHmac","createCypher","createCypheriv","createDecipher","createDecipheriv","createSign","createVerify","createDeffieHellman","pbkdf2"].forEach(function(r){n[r]=function(){t("sorry,",r,"is not implemented yet")}})}),r.define("/node_modules/crypto-browserify/sha.js",function(r,e,n){function t(r){return p(f(g(r),r.length*_))}function o(r){return y(f(g(r),r.length*_))}function i(r){return m(f(g(r),r.length*_))}function a(r,e){return p(h(r,e))}function u(r,e){return y(h(r,e))}function c(r,e){return m(h(r,e))}function f(r,e){r[e>>5]|=128<<24-e%32,r[(e+64>>9<<4)+15]=e;for(var n=Array(80),t=1732584193,o=-271733879,i=-1732584194,a=271733878,u=-1009589776,c=0;r.length>c;c+=16){for(var f=t,h=o,g=i,m=a,p=u,y=0;80>y;y++){n[y]=16>y?r[c+y]:v(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var w=d(d(v(t,5),s(y,o,i,a)),d(d(u,n[y]),l(y)));u=a,a=i,i=v(o,30),o=t,t=w}t=d(t,f),o=d(o,h),i=d(i,g),a=d(a,m),u=d(u,p)}return[t,o,i,a,u]}function s(r,e,n,t){return 20>r?e&n|~e&t:40>r?e^n^t:60>r?e&n|e&t|n&t:e^n^t}function l(r){return 20>r?1518500249:40>r?1859775393:60>r?-1894007588:-899497514}function h(r,e){var n=g(r);n.length>16&&(n=f(n,r.length*_));for(var t=Array(16),o=Array(16),i=0;16>i;i++)t[i]=909522486^n[i],o[i]=1549556828^n[i];var a=f(t.concat(g(e)),512+e.length*_);return f(o.concat(a),672)}function d(r,e){var n=(65535&r)+(65535&e),t=(r>>16)+(e>>16)+(n>>16);return t<<16|65535&n}function v(r,e){return r<<e|r>>>32-e}function g(r){for(var e=[],n=(1<<_)-1,t=0;r.length*_>t;t+=_)e[t>>5]|=(r.charCodeAt(t/_)&n)<<32-_-t%32;return e}function m(r){for(var e="",n=(1<<_)-1,t=0;32*r.length>t;t+=_)e+=String.fromCharCode(r[t>>5]>>>32-_-t%32&n);return e}function p(r){for(var e=w?"0123456789ABCDEF":"0123456789abcdef",n="",t=0;4*r.length>t;t++)n+=e.charAt(15&r[t>>2]>>8*(3-t%4)+4)+e.charAt(15&r[t>>2]>>8*(3-t%4));return n}function y(r){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",t=0;4*r.length>t;t+=3)for(var o=(255&r[t>>2]>>8*(3-t%4))<<16|(255&r[t+1>>2]>>8*(3-(t+1)%4))<<8|255&r[t+2>>2]>>8*(3-(t+2)%4),i=0;4>i;i++)n+=8*t+6*i>32*r.length?b:e.charAt(63&o>>6*(3-i));return n}n.hex_sha1=t,n.b64_sha1=o,n.str_sha1=i,n.hex_hmac_sha1=a,n.b64_hmac_sha1=u,n.str_hmac_sha1=c;var w=0,b="",_=8}),r.define("/node_modules/crypto-browserify/rng.js",function(r,e){(function(){var r,n,t=this;if(r=function(r){for(var e,e,n=Array(r),t=0;r>t;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=255&e>>>((3&t)<<3);return n},t.crypto&&crypto.getRandomValues){var o=new Uint32Array(4);n=function(r){var e=Array(r);crypto.getRandomValues(o);for(var n=0;r>n;n++)e[n]=255&o[n>>2]>>>8*(3&n);return e}}e.exports=n||r})()}),r.define("/node_modules/crypto-browserify/md5.js",function(r,e,n){function t(r){return u(a(s(r)))}function o(r){return c(a(s(r)))}function i(r,e){return f(a(s(r)),e)}function a(r){return h(d(l(r),8*r.length))}function u(r){try{}catch(e){_=0}for(var n,t=_?"0123456789ABCDEF":"0123456789abcdef",o="",i=0;r.length>i;i++)n=r.charCodeAt(i),o+=t.charAt(15&n>>>4)+t.charAt(15&n);return o}function c(r){try{}catch(e){A=""}for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="",o=r.length,i=0;o>i;i+=3)for(var a=r.charCodeAt(i)<<16|(o>i+1?r.charCodeAt(i+1)<<8:0)|(o>i+2?r.charCodeAt(i+2):0),u=0;4>u;u++)t+=8*i+6*u>8*r.length?A:n.charAt(63&a>>>6*(3-u));return t}function f(r,e){var n,t,o,i,a,u=e.length,c=Array(Math.ceil(r.length/2));for(n=0;c.length>n;n++)c[n]=r.charCodeAt(2*n)<<8|r.charCodeAt(2*n+1);var f=Math.ceil(8*r.length/(Math.log(e.length)/Math.log(2))),s=Array(f);for(t=0;f>t;t++){for(a=[],i=0,n=0;c.length>n;n++)i=(i<<16)+c[n],o=Math.floor(i/u),i-=o*u,(a.length>0||o>0)&&(a[a.length]=o);s[t]=i,c=a}var l="";for(n=s.length-1;n>=0;n--)l+=e.charAt(s[n]);return l}function s(r){for(var e,n,t="",o=-1;++o<r.length;)e=r.charCodeAt(o),n=r.length>o+1?r.charCodeAt(o+1):0,e>=55296&&56319>=e&&n>=56320&&57343>=n&&(e=65536+((1023&e)<<10)+(1023&n),o++),127>=e?t+=String.fromCharCode(e):2047>=e?t+=String.fromCharCode(192|31&e>>>6,128|63&e):65535>=e?t+=String.fromCharCode(224|15&e>>>12,128|63&e>>>6,128|63&e):2097151>=e&&(t+=String.fromCharCode(240|7&e>>>18,128|63&e>>>12,128|63&e>>>6,128|63&e));return t}function l(r){for(var e=Array(r.length>>2),n=0;e.length>n;n++)e[n]=0;for(var n=0;8*r.length>n;n+=8)e[n>>5]|=(255&r.charCodeAt(n/8))<<n%32;return e}function h(r){for(var e="",n=0;32*r.length>n;n+=8)e+=String.fromCharCode(255&r[n>>5]>>>n%32);return e}function d(r,e){r[e>>5]|=128<<e%32,r[(e+64>>>9<<4)+14]=e;for(var n=1732584193,t=-271733879,o=-1732584194,i=271733878,a=0;r.length>a;a+=16){var u=n,c=t,f=o,s=i;n=g(n,t,o,i,r[a+0],7,-680876936),i=g(i,n,t,o,r[a+1],12,-389564586),o=g(o,i,n,t,r[a+2],17,606105819),t=g(t,o,i,n,r[a+3],22,-1044525330),n=g(n,t,o,i,r[a+4],7,-176418897),i=g(i,n,t,o,r[a+5],12,1200080426),o=g(o,i,n,t,r[a+6],17,-1473231341),t=g(t,o,i,n,r[a+7],22,-45705983),n=g(n,t,o,i,r[a+8],7,1770035416),i=g(i,n,t,o,r[a+9],12,-1958414417),o=g(o,i,n,t,r[a+10],17,-42063),t=g(t,o,i,n,r[a+11],22,-1990404162),n=g(n,t,o,i,r[a+12],7,1804603682),i=g(i,n,t,o,r[a+13],12,-40341101),o=g(o,i,n,t,r[a+14],17,-1502002290),t=g(t,o,i,n,r[a+15],22,1236535329),n=m(n,t,o,i,r[a+1],5,-165796510),i=m(i,n,t,o,r[a+6],9,-1069501632),o=m(o,i,n,t,r[a+11],14,643717713),t=m(t,o,i,n,r[a+0],20,-373897302),n=m(n,t,o,i,r[a+5],5,-701558691),i=m(i,n,t,o,r[a+10],9,38016083),o=m(o,i,n,t,r[a+15],14,-660478335),t=m(t,o,i,n,r[a+4],20,-405537848),n=m(n,t,o,i,r[a+9],5,568446438),i=m(i,n,t,o,r[a+14],9,-1019803690),o=m(o,i,n,t,r[a+3],14,-187363961),t=m(t,o,i,n,r[a+8],20,1163531501),n=m(n,t,o,i,r[a+13],5,-1444681467),i=m(i,n,t,o,r[a+2],9,-51403784),o=m(o,i,n,t,r[a+7],14,1735328473),t=m(t,o,i,n,r[a+12],20,-1926607734),n=p(n,t,o,i,r[a+5],4,-378558),i=p(i,n,t,o,r[a+8],11,-2022574463),o=p(o,i,n,t,r[a+11],16,1839030562),t=p(t,o,i,n,r[a+14],23,-35309556),n=p(n,t,o,i,r[a+1],4,-1530992060),i=p(i,n,t,o,r[a+4],11,1272893353),o=p(o,i,n,t,r[a+7],16,-155497632),t=p(t,o,i,n,r[a+10],23,-1094730640),n=p(n,t,o,i,r[a+13],4,681279174),i=p(i,n,t,o,r[a+0],11,-358537222),o=p(o,i,n,t,r[a+3],16,-722521979),t=p(t,o,i,n,r[a+6],23,76029189),n=p(n,t,o,i,r[a+9],4,-640364487),i=p(i,n,t,o,r[a+12],11,-421815835),o=p(o,i,n,t,r[a+15],16,530742520),t=p(t,o,i,n,r[a+2],23,-995338651),n=y(n,t,o,i,r[a+0],6,-198630844),i=y(i,n,t,o,r[a+7],10,1126891415),o=y(o,i,n,t,r[a+14],15,-1416354905),t=y(t,o,i,n,r[a+5],21,-57434055),n=y(n,t,o,i,r[a+12],6,1700485571),i=y(i,n,t,o,r[a+3],10,-1894986606),o=y(o,i,n,t,r[a+10],15,-1051523),t=y(t,o,i,n,r[a+1],21,-2054922799),n=y(n,t,o,i,r[a+8],6,1873313359),i=y(i,n,t,o,r[a+15],10,-30611744),o=y(o,i,n,t,r[a+6],15,-1560198380),t=y(t,o,i,n,r[a+13],21,1309151649),n=y(n,t,o,i,r[a+4],6,-145523070),i=y(i,n,t,o,r[a+11],10,-1120210379),o=y(o,i,n,t,r[a+2],15,718787259),t=y(t,o,i,n,r[a+9],21,-343485551),n=w(n,u),t=w(t,c),o=w(o,f),i=w(i,s)}return[n,t,o,i]}function v(r,e,n,t,o,i){return w(b(w(w(e,r),w(t,i)),o),n)}function g(r,e,n,t,o,i,a){return v(e&n|~e&t,r,e,o,i,a)}function m(r,e,n,t,o,i,a){return v(e&t|n&~t,r,e,o,i,a)}function p(r,e,n,t,o,i,a){return v(e^n^t,r,e,o,i,a)}function y(r,e,n,t,o,i,a){return v(n^(e|~t),r,e,o,i,a)}function w(r,e){var n=(65535&r)+(65535&e),t=(r>>16)+(e>>16)+(n>>16);return t<<16|65535&n}function b(r,e){return r<<e|r>>>32-e}var _=0,A="";n.hex_md5=t,n.b64_md5=o,n.any_md5=i}),r.define("/app.coffee",function(r){(function(){var e,n,t;for(e=r("crypto"),n=t=0;12>=t;n=++t)window[n]=n}).call(this)}),r("/app.coffee")})();