blob: 6a5fa5412816fc7534832a42efb31645d4d674c8 [file] [log] [blame]
/**
* @license Angular v11.2.14
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/common/http",["exports","@angular/core","rxjs","rxjs/operators","@angular/common"],t):t(((e=e||self).ng=e.ng||{},e.ng.common=e.ng.common||{},e.ng.common.http={}),e.ng.core,e.rxjs,e.rxjs.operators,e.ng.common)}(this,(function(e,t,r,n,o){"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var s=function s(){},a=function a(){},i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function p(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return a}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var c=function(){function e(e){var t=this;this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){t.headers=new Map,e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>0){var n=e.slice(0,r),o=n.toLowerCase(),s=e.slice(r+1).trim();t.maybeSetNormalizedName(n,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}}))}:function(){t.headers=new Map,Object.keys(e).forEach((function(r){var n=e[r],o=r.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(t.headers.set(o,n),t.maybeSetNormalizedName(r,o))}))}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(e){return t.applyUpdate(e)})),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach((function(r){t.headers.set(r,e.headers.get(r)),t.normalizedNames.set(r,e.normalizedNames.get(r))}))},e.prototype.clone=function(t){var r=new e;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);var n=("a"===e.op?this.headers.get(t):void 0)||[];n.push.apply(n,function o(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}(r)),this.headers.set(t,n);break;case"d":var s=e.value;if(s){var a=this.headers.get(t);if(!a)return;0===(a=a.filter((function(e){return-1===s.indexOf(e)}))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(r){return e(t.normalizedNames.get(r),t.headers.get(r))}))},e}(),l=function(){function e(){}return e.prototype.encodeKey=function(e){return d(e)},e.prototype.encodeValue=function(e){return d(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function d(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var h=function(){function e(e){var t=this;if(void 0===e&&(e={}),this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new l,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function r(e,t){var r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach((function(e){var n=e.indexOf("="),o=u(-1==n?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,n)),t.decodeValue(e.slice(n+1))],2),s=o[0],a=o[1],i=r.get(s)||[];i.push(a),r.set(s,i)})),r}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((function(r){var n=e.fromObject[r];t.map.set(r,Array.isArray(n)?n:[n])}))):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.appendAll=function(e){var t=[];return Object.keys(e).forEach((function(r){var n=e[r];Array.isArray(n)?n.forEach((function(e){t.push({param:r,value:e,op:"a"})})):t.push({param:r,value:n,op:"a"})})),this.clone(t)},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map((function(t){var r=e.encoder.encodeKey(t);return e.map.get(t).map((function(t){return r+"="+e.encoder.encodeValue(t)})).join("&")})).filter((function(e){return""!==e})).join("&")},e.prototype.clone=function(t){var r=new e({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(t){return e.map.set(t,e.cloneFrom.map.get(t))})),this.updates.forEach((function(t){switch(t.op){case"a":case"s":var r=("a"===t.op?e.map.get(t.param):void 0)||[];r.push(t.value),e.map.set(t.param,r);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var n=e.map.get(t.param)||[],o=n.indexOf(t.value);-1!==o&&n.splice(o,1),n.length>0?e.map.set(t.param,n):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)},e}();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function f(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function y(e){return"undefined"!=typeof Blob&&e instanceof Blob}function m(e){return"undefined"!=typeof FormData&&e instanceof FormData}var v,g=function(){function e(e,t,r,n){var o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function s(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==r?r:null,o=n):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new c),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=t;else{var i=t.indexOf("?");this.urlWithParams=t+(-1===i?"?":i<t.length-1?"&":"")+a}}else this.params=new h,this.urlWithParams=t}return e.prototype.serializeBody=function(){return null===this.body?null:f(this.body)||y(this.body)||m(this.body)||"string"==typeof this.body?this.body:this.body instanceof h?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},e.prototype.detectContentTypeHeader=function(){return null===this.body||m(this.body)?null:y(this.body)?this.body.type||null:f(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof h?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null},e.prototype.clone=function(t){void 0===t&&(t={});var r=t.method||this.method,n=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,i=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,p=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(p=Object.keys(t.setHeaders).reduce((function(e,r){return e.set(r,t.setHeaders[r])}),p)),t.setParams&&(u=Object.keys(t.setParams).reduce((function(e,r){return e.set(r,t.setParams[r])}),u)),new e(r,n,s,{params:u,headers:p,reportProgress:i,responseType:o,withCredentials:a})},e}();(v=e.HttpEventType||(e.HttpEventType={}))[v.Sent=0]="Sent",v[v.UploadProgress=1]="UploadProgress",v[v.ResponseHeader=2]="ResponseHeader",v[v.DownloadProgress=3]="DownloadProgress",v[v.Response=4]="Response",v[v.User=5]="User";var b,w=function(t){function r(r){void 0===r&&(r={});var n=t.call(this,r)||this;return n.type=e.HttpEventType.ResponseHeader,n}return p(r,t),r.prototype.clone=function(e){return void 0===e&&(e={}),new r({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},r}(b=function b(e,t,r){void 0===t&&(t=200),void 0===r&&(r="OK"),this.headers=e.headers||new c,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}),T=function(t){function r(r){void 0===r&&(r={});var n=t.call(this,r)||this;return n.type=e.HttpEventType.Response,n.body=void 0!==r.body?r.body:null,n}return p(r,t),r.prototype.clone=function(e){return void 0===e&&(e={}),new r({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})},r}(b),E=function(e){function t(t){var r=e.call(this,t,0,"Unknown Error")||this;return r.name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for "+(t.url||"(unknown url)")+": "+t.status+" "+t.statusText,r.error=t.error||null,r}return p(t,e),t}(b);
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function P(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var k=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,o){var s,a=this;if(void 0===o&&(o={}),e instanceof g)s=e;else{var i;i=o.headers instanceof c?o.headers:new c(o.headers);var p=void 0;o.params&&(p=o.params instanceof h?o.params:new h({fromObject:o.params})),s=new g(e,t,void 0!==o.body?o.body:null,{headers:i,params:p,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var u=r.of(s).pipe(n.concatMap((function(e){return a.handler.handle(e)})));if(e instanceof g||"events"===o.observe)return u;var l=u.pipe(n.filter((function(e){return e instanceof T})));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(n.map((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return l.pipe(n.map((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return l.pipe(n.map((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return l.pipe(n.map((function(e){return e.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+o.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new h).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,r){return void 0===r&&(r={}),this.request("PATCH",e,P(r,t))},e.prototype.post=function(e,t,r){return void 0===r&&(r={}),this.request("POST",e,P(r,t))},e.prototype.put=function(e,t,r){return void 0===r&&(r={}),this.request("PUT",e,P(r,t))},e}();k.decorators=[{type:t.Injectable}],k.ctorParameters=function(){return[{type:s}]};
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var C=function(){function e(e,t){this.next=e,this.interceptor=t}return e.prototype.handle=function(e){return this.interceptor.intercept(e,this.next)},e}(),x=new t.InjectionToken("HTTP_INTERCEPTORS"),N=function(){function e(){}return e.prototype.intercept=function(e,t){return t.handle(e)},e}();N.decorators=[{type:t.Injectable}];
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var _=0,j=function j(){},O=function(){function t(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+_++},t.prototype.handle=function(t){var n=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new r.Observable((function(r){var o=n.nextCallback(),s=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+o+"$1"),a=n.document.createElement("script");a.src=s;var i=null,p=!1,u=!1;n.callbackMap[o]=function(e){delete n.callbackMap[o],u||(i=e,p=!0)};var c=function(){a.parentNode&&a.parentNode.removeChild(a),delete n.callbackMap[o]},l=function(e){u||n.resolvedPromise.then((function(){c(),p?(r.next(new T({body:i,status:200,statusText:"OK",url:s})),r.complete()):r.error(new E({url:s,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))}))},d=function(e){u||(c(),r.error(new E({error:e,status:0,statusText:"JSONP Error",url:s})))};return a.addEventListener("load",l),a.addEventListener("error",d),n.document.body.appendChild(a),r.next({type:e.HttpEventType.Sent}),function(){u=!0,a.removeEventListener("load",l),a.removeEventListener("error",d),c()}}))},t}();O.decorators=[{type:t.Injectable}],O.ctorParameters=function(){return[{type:j},{type:void 0,decorators:[{type:t.Inject,args:[o.DOCUMENT]}]}]};var H=function(){function e(e){this.jsonp=e}return e.prototype.intercept=function(e,t){return"JSONP"===e.method?this.jsonp.handle(e):t.handle(e)},e}();H.decorators=[{type:t.Injectable}],H.ctorParameters=function(){return[{type:O}]};
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var S=/^\)\]\}',?\n/,R=function R(){},I=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}();I.decorators=[{type:t.Injectable}],I.ctorParameters=function(){return[]};var L=function(){function t(e){this.xhrFactory=e}return t.prototype.handle=function(t){var n=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.Observable((function(r){var o=n.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((function(e,t){return o.setRequestHeader(e,t.join(","))})),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var s=t.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(t.responseType){var a=t.responseType.toLowerCase();o.responseType="json"!==a?a:"text"}var i=t.serializeBody(),p=null,u=function(){if(null!==p)return p;var e=1223===o.status?204:o.status,r=o.statusText||"OK",n=new c(o.getAllResponseHeaders()),s=function a(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||t.url;return p=new w({headers:n,status:e,statusText:r,url:s})},l=function(){var e=u(),n=e.headers,s=e.status,a=e.statusText,i=e.url,p=null;204!==s&&(p=void 0===o.response?o.responseText:o.response),0===s&&(s=p?200:0);var c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof p){var l=p;p=p.replace(S,"");try{p=""!==p?JSON.parse(p):null}catch(e){p=l,c&&(c=!1,p={error:e,text:p})}}c?(r.next(new T({body:p,headers:n,status:s,statusText:a,url:i||void 0})),r.complete()):r.error(new E({error:p,headers:n,status:s,statusText:a,url:i||void 0}))},d=function(e){var t=u().url,n=new E({error:e,status:o.status||0,statusText:o.statusText||"Unknown Error",url:t||void 0});r.error(n)},h=!1,f=function(n){h||(r.next(u()),h=!0);var s={type:e.HttpEventType.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&o.responseText&&(s.partialText=o.responseText),r.next(s)},y=function(t){var n={type:e.HttpEventType.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),r.next(n)};return o.addEventListener("load",l),o.addEventListener("error",d),o.addEventListener("timeout",d),o.addEventListener("abort",d),t.reportProgress&&(o.addEventListener("progress",f),null!==i&&o.upload&&o.upload.addEventListener("progress",y)),o.send(i),r.next({type:e.HttpEventType.Sent}),function(){o.removeEventListener("error",d),o.removeEventListener("abort",d),o.removeEventListener("load",l),o.removeEventListener("timeout",d),t.reportProgress&&(o.removeEventListener("progress",f),null!==i&&o.upload&&o.upload.removeEventListener("progress",y)),o.readyState!==o.DONE&&o.abort()}}))},t}();L.decorators=[{type:t.Injectable}],L.ctorParameters=function(){return[{type:R}]};
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var A=new t.InjectionToken("XSRF_COOKIE_NAME"),z=new t.InjectionToken("XSRF_HEADER_NAME"),U=function U(){},M=function(){function e(e,t,r){this.doc=e,this.platform=t,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return e.prototype.getToken=function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=oparseCookieValue(e,this.cookieName),this.lastCookieString=e),this.lastToken},e}();M.decorators=[{type:t.Injectable}],M.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[o.DOCUMENT]}]},{type:String,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:String,decorators:[{type:t.Inject,args:[A]}]}]};var F=function(){function e(e,t){this.tokenService=e,this.headerName=t}return e.prototype.intercept=function(e,t){var r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return t.handle(e);var n=this.tokenService.getToken();return null===n||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,n)})),t.handle(e)},e}();F.decorators=[{type:t.Injectable}],F.ctorParameters=function(){return[{type:U},{type:String,decorators:[{type:t.Inject,args:[z]}]}]};
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var q=function(){function e(e,t){this.backend=e,this.injector=t,this.chain=null}return e.prototype.handle=function(e){if(null===this.chain){var t=this.injector.get(x,[]);this.chain=t.reduceRight((function(e,t){return new C(e,t)}),this.backend)}return this.chain.handle(e)},e}();function J(){return"object"==typeof window?window:{}}q.decorators=[{type:t.Injectable}],q.ctorParameters=function(){return[{type:a},{type:t.Injector}]};var B,D,K=function(){function e(){}return e.disable=function(){return{ngModule:e,providers:[{provide:F,useClass:N}]}},e.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:A,useValue:t.cookieName}:[],t.headerName?{provide:z,useValue:t.headerName}:[]]}},e}();K.decorators=[{type:t.NgModule,args:[{providers:[F,{provide:x,useExisting:F,multi:!0},{provide:U,useClass:M},{provide:A,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}]}],(B=function B(){}).decorators=[{type:t.NgModule,args:[{imports:[K.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[k,{provide:s,useClass:q},L,{provide:a,useExisting:L},I,{provide:R,useExisting:I}]}]}],(D=function D(){}).decorators=[{type:t.NgModule,args:[{providers:[O,{provide:j,useFactory:J},{provide:x,useClass:H,multi:!0}]}]}],
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
e.HTTP_INTERCEPTORS=x,e.HttpBackend=a,e.HttpClient=k,e.HttpClientJsonpModule=D,e.HttpClientModule=B,e.HttpClientXsrfModule=K,e.HttpErrorResponse=E,e.HttpHandler=s,e.HttpHeaderResponse=w,e.HttpHeaders=c,e.HttpParams=h,e.HttpRequest=g,e.HttpResponse=T,e.HttpResponseBase=b,e.HttpUrlEncodingCodec=l,e.HttpXhrBackend=L,e.HttpXsrfTokenExtractor=U,e.JsonpClientBackend=O,e.JsonpInterceptor=H,e.XhrFactory=R,eHttpInterceptingHandler=q,eangular_packages_common_http_http_a=N,eangular_packages_common_http_http_b=j,eangular_packages_common_http_http_c=J,eangular_packages_common_http_http_d=I,eangular_packages_common_http_http_e=A,eangular_packages_common_http_http_f=z,eangular_packages_common_http_http_g=M,eangular_packages_common_http_http_h=F,Object.defineProperty(e,"__esModule",{value:!0})}));