any-rule/dist/extension.js

9 lines
293 KiB
JavaScript
Raw Normal View History

module.exports=function(n){var a={};function e(i){if(a[i])return a[i].exports;var u=a[i]={i:i,l:!1,exports:{}};return n[i].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=n,e.c=a,e.d=function(n,a,i){e.o(n,a)||Object.defineProperty(n,a,{enumerable:!0,get:i})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,a){if(1&a&&(n=e(n)),8&a)return n;if(4&a&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&a&&"string"!=typeof n)for(var u in n)e.d(i,u,function(a){return n[a]}.bind(null,u));return i},e.n=function(n){var a=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(a,"a",a),a},e.o=function(n,a){return Object.prototype.hasOwnProperty.call(n,a)},e.p="",e(e.s=16)}([function(n,a,e){"use strict";var i=e(4),u=e(23),o=Object.prototype.toString;function g(n){return"[object Array]"===o.call(n)}function s(n){return null!==n&&"object"==typeof n}function h(n){return"[object Function]"===o.call(n)}function t(n,a){if(null!=n)if("object"!=typeof n&&(n=[n]),g(n))for(var e=0,i=n.length;e<i;e++)a.call(null,n[e],e,n);else for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&a.call(null,n[u],u,n)}n.exports={isArray:g,isArrayBuffer:function(n){return"[object ArrayBuffer]"===o.call(n)},isBuffer:u,isFormData:function(n){return"undefined"!=typeof FormData&&n instanceof FormData},isArrayBufferView:function(n){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&n.buffer instanceof ArrayBuffer},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isObject:s,isUndefined:function(n){return void 0===n},isDate:function(n){return"[object Date]"===o.call(n)},isFile:function(n){return"[object File]"===o.call(n)},isBlob:function(n){return"[object Blob]"===o.call(n)},isFunction:h,isStream:function(n){return s(n)&&h(n.pipe)},isURLSearchParams:function(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:t,merge:function n(){var a={};function e(e,i){"object"==typeof a[i]&&"object"==typeof e?a[i]=n(a[i],e):a[i]=e}for(var i=0,u=arguments.length;i<u;i++)t(arguments[i],e);return a},deepMerge:function n(){var a={};function e(e,i){"object"==typeof a[i]&&"object"==typeof e?a[i]=n(a[i],e):a[i]="object"==typeof e?n({},e):e}for(var i=0,u=arguments.length;i<u;i++)t(arguments[i],e);return a},extend:function(n,a,e){return t(a,(function(a,u){n[u]=e&&"function"==typeof a?i(a,e):a})),n},trim:function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(n,a,e){"use strict";var i=e(0);function u(n){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}n.exports=function(n,a,e){if(!a)return n;var o;if(e)o=e(a);else if(i.isURLSearchParams(a))o=a.toString();else{var g=[];i.forEach(a,(function(n,a){null!=n&&(i.isArray(n)?a+="[]":n=[n],i.forEach(n,(function(n){i.isDate(n)?n=n.toISOString():i.isObject(n)&&(n=JSON.stringify(n)),g.push(u(a)+"="+u(n))})))})),o=g.join("&")}if(o){var s=n.indexOf("#");-1!==s&&(n=n.slice(0,s)),n+=(-1===n.indexOf("?")?"?":"&")+o}return n}},function(n,a,e){"use strict";var i=e(8);n.exports=function(n,a,e,u,o){var g=new Error(n);return i(g,a,e,u,o)}},function(n,a){n.exports=require("vscode")},function(n,a,e){"use strict";n.exports=function(n,a){return function(){for(var e=new Array(arguments.length),i=0;i<e.length;i++)e[i]=arguments[i];return n.apply(a,e)}}},function(n,a,e){"use strict";n.exports=function(n){return!(!n||!n.__CANCEL__)}},function(n,a,e){"use strict";var i=e(0),u=e(28),o={"Content-Type":"application/x-www-form-urlencod
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
n.exports=function(n){return null!=n&&null!=n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}},function(n,a,e){"use strict";var i=e(0),u=e(1),o=e(25),g=e(26),s=e(14);function h(n){this.defaults=n,this.interceptors={request:new o,response:new o}}h.prototype.request=function(n){"string"==typeof n?(n=arguments[1]||{}).url=arguments[0]:n=n||{},(n=s(this.defaults,n)).method=n.method?n.method.toLowerCase():"get";var a=[g,void 0],e=Promise.resolve(n);for(this.interceptors.request.forEach((function(n){a.unshift(n.fulfilled,n.rejected)})),this.interceptors.response.forEach((function(n){a.push(n.fulfilled,n.rejected)}));a.length;)e=e.then(a.shift(),a.shift());return e},h.prototype.getUri=function(n){return n=s(this.defaults,n),u(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(n){h.prototype[n]=function(a,e){return this.request(i.merge(e||{},{method:n,url:a}))}})),i.forEach(["post","put","patch"],(function(n){h.prototype[n]=function(a,e,u){return this.request(i.merge(u||{},{method:n,url:a,data:e}))}})),n.exports=h},function(n,a,e){"use strict";var i=e(0);function u(){this.handlers=[]}u.prototype.use=function(n,a){return this.handlers.push({fulfilled:n,rejected:a}),this.handlers.length-1},u.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},u.prototype.forEach=function(n){i.forEach(this.handlers,(function(a){null!==a&&n(a)}))},n.exports=u},function(n,a,e){"use strict";var i=e(0),u=e(27),o=e(5),g=e(6),s=e(47),h=e(48);function t(n){n.cancelToken&&n.cancelToken.throwIfRequested()}n.exports=function(n){return t(n),n.baseURL&&!s(n.url)&&(n.url=h(n.baseURL,n.url)),n.headers=n.headers||{},n.data=u(n.data,n.headers,n.transformRequest),n.headers=i.merge(n.headers.common||{},n.headers[n.method]||{},n.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],(function(a){delete n.headers[a]})),(n.adapter||g.adapter)(n).then((function(a){return t(n),a.data=u(a.data,a.headers,n.transformResponse),a}),(function(a){return o(a)||(t(n),a&&a.response&&(a.response.data=u(a.response.data,a.response.headers,n.transformResponse))),Promise.reject(a)}))}},function(n,a,e){"use strict";var i=e(0);n.exports=function(n,a,e){return i.forEach(e,(function(e){n=e(n,a)})),n}},function(n,a,e){"use strict";var i=e(0);n.exports=function(n,a){i.forEach(n,(function(e,i){i!==a&&i.toUpperCase()===a.toUpperCase()&&(n[a]=e,delete n[i])}))}},function(n,a,e){"use strict";var i=e(0),u=e(7),o=e(1),g=e(9),s=e(10),h=e(11).http,t=e(11).https,y=e(12),l=e(41),b=e(42),d=e(2),w=e(8),r=/https:?/;n.exports=function(n){return new Promise((function(a,e){var j,p=function(n){clearTimeout(j),a(n)},c=function(n){clearTimeout(j),e(n)},m=n.data,Y=n.headers;if(Y["User-Agent"]||Y["user-agent"]||(Y["User-Agent"]="axios/"+b.version),m&&!i.isStream(m)){if(Buffer.isBuffer(m));else if(i.isArrayBuffer(m))m=Buffer.from(new Uint8Array(m));else{if(!i.isString(m))return c(d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",n));m=Buffer.from(m,"utf-8")}Y["Content-Length"]=m.length}var Z=void 0;n.auth&&(Z=(n.auth.username||"")+":"+(n.auth.password||""));var L=y.parse(n.url),J=L.protocol||"http:";if(!Z&&L.auth){var C=L.auth.split(":");Z=(C[0]||"")+":"+(C[1]||"")}Z&&delete Y.Authorization;var S=r.test(J),k=S?n.httpsAgent:n.httpAgent,X={path:o(L.path,n.params,n.paramsSerializer).replace(/^\?/,""),method:n.method.toUpperCase(),headers:Y,agent:k,auth:Z};n.socketPath?X.socketPath=n.socketPath:(X.hostname=L.hostname,X.port=L.port);var H,T=n.proxy;if(!T&&!1!==T){var D=J.slice(0,-1)+"_proxy",Q=process.env[D]||process.env[D.toUpperCase()];if(Q){var B=y.parse(Q),M=process.env.no_proxy||process.env.NO_PROXY,G=!0;if(M)G=!M.split(",").map((function(n){return n.trim()})).some((function(n){return!!n&&("*"===n||("."===n[0]&&L.hostname.substr(L.hostname.length-n.length)===n&&n.match(/\./g).length===L.hostname.match(/\./g).length||L.hostname===n))}));if(G&&(T={host:B.hostname,port:B.port},B.auth)){var f=B.auth.split(":");T.auth={username:f[0],password:f[1]}}}}i
//# sourceMappingURL=extension.js.map