System.register([],function(){"use strict";return{execute:function(){function v(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function m(o,e){for(var r="",i=0,l=-1,f=0,n,t=0;t<=o.length;++t){if(t<o.length)n=o.charCodeAt(t);else{if(n===47)break;n=47}if(n===47){if(!(l===t-1||f===1))if(l!==t-1&&f===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),l=t,f=0;continue}}else if(r.length===2||r.length===1){r="",i=0,l=t,f=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(l+1,t):r=o.slice(l+1,t),i=t-l-1;l=t,f=0}else n===46&&f!==-1?++f:f=-1}return r}function C(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,l=arguments.length-1;l>=-1&&!r;l--){var f;l>=0?f=arguments[l]:(i===void 0&&(i=process.cwd()),f=i),v(f),f.length!==0&&(e=f+"/"+e,r=f.charCodeAt(0)===47)}return e=m(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(v(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=m(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return v(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];v(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(v(e),v(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var l=e.length,f=l-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var t=r.length,s=t-n,c=f<s?f:s,u=-1,a=0;a<=c;++a){if(a===c){if(s>c){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else f>c&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var A=e.charCodeAt(i+a),b=r.charCodeAt(n+a);if(A!==b)break;A===47&&(u=a)}var d="";for(a=i+u+1;a<=l;++a)(a===l||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(v(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,l=-1,f=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!f){l=n;break}}else f=!1;return l===-1?i?"/":".":i&&l===1?"//":e.slice(0,l)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');v(e);var i=0,l=-1,f=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var t=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!f){i=n+1;break}}else s===-1&&(f=!1,s=n+1),t>=0&&(c===r.charCodeAt(t)?--t===-1&&(l=n):(t=-1,l=s))}return i===l?l=s:l===-1&&(l=e.length),e.slice(i,l)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!f){i=n+1;break}}else l===-1&&(f=!1,l=n+1);return l===-1?"":e.slice(i,l)}},extname:function(e){v(e);for(var r=-1,i=0,l=-1,f=!0,n=0,t=e.length-1;t>=0;--t){var s=e.charCodeAt(t);if(s===47){if(!f){i=t+1;break}continue}l===-1&&(f=!1,l=t+1),s===46?r===-1?r=t:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||l===-1||n===0||n===1&&r===l-1&&r===i+1?"":e.slice(r,l)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return C("/",e)},parse:function(e){v(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),l=i===47,f;l?(r.root="/",f=1):f=0;for(var n=-1,t=0,s=-1,c=!0,u=e.length-1,a=0;u>=f;--u){if(i=e.charCodeAt(u),i===47){if(!c){t=u+1;break}continue}s===-1&&(c=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===t+1?s!==-1&&(t===0&&l?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(t,s)):(t===0&&l?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(t,n),r.base=e.slice(t,s)),r.ext=e.slice(n,s)),t>0?r.dir=e.slice(0,t-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};g.posix=g,module.exports=g}}});