Socket
Socket
Sign inDemoInstall

@esm-bundle/angular__common

Package Overview
Dependencies
Maintainers
6
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esm-bundle/angular__common - npm Package Compare versions

Comparing version 16.0.3 to 16.0.4

4

es2022/ivy/angular-http.min.js

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/common/http@16.0.3 - Ivy - es format - es2022 - 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 */
import*as e from"@angular/core";import{Injectable as t,InjectionToken as s,Inject as r,ɵRuntimeError as n,PLATFORM_ID as o,NgModule as a,inject as i,makeEnvironmentProviders as c,ɵENABLED_SSR_FEATURES as u,TransferState as h,APP_BOOTSTRAP_LISTENER as l,ApplicationRef as d,ɵInitialRenderPendingTasks as p,makeStateKey as f}from"@angular/core";import{of as m,Observable as y,from as b}from"rxjs";import{concatMap as v,filter as w,map as g,switchMap as T,first as E,tap as x}from"rxjs/operators";import*as C from"@angular/common";import{DOCUMENT as j,ɵparseCookieValue as k}from"@angular/common";class N{}class P{}class S{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach((e=>{const t=e.indexOf(":");if(t>0){const s=e.slice(0,t),r=s.toLowerCase(),n=e.slice(t+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}}))}:()=>{this.headers=new Map,Object.entries(e).forEach((([e,t])=>{let s;if(s="string"==typeof t?[t]:"number"==typeof t?[t.toString()]:t.map((e=>e.toString())),s.length>0){const t=e.toLowerCase();this.headers.set(t,s),this.maybeSetNormalizedName(e,t)}}))}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof S?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((e=>this.applyUpdate(e))),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach((t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))}))}clone(e){const t=new S;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof S?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let s=e.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...s),this.headers.set(t,r);break;case"d":const n=e.value;if(n){let e=this.headers.get(t);if(!e)return;e=e.filter((e=>-1===n.indexOf(e))),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach((t=>e(this.normalizedNames.get(t),this.headers.get(t))))}}class O{encodeKey(e){return A(e)}encodeValue(e){return A(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const I=/%(\d[a-f0-9])/gi,L={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function A(e){return encodeURIComponent(e).replace(I,((e,t)=>L[t]??e))}function R(e){return`${e}`}class z{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new O,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const s=new Map;e.length>0&&e.replace(/^\?/,"").split("&").forEach((e=>{const r=e.indexOf("="),[n,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],a=s.get(n)||[];a.push(o),s.set(n,a)}));return s}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((t=>{const s=e.fromObject[t],r=Array.isArray(s)?s.map(R):[R(s)];this.map.set(t,r)}))):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach((s=>{const r=e[s];Array.isArray(r)?r.forEach((e=>{t.push({param:s,value:e,op:"a"})})):t.push({param:s,value:r,op:"a"})})),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map((e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map((e=>t+"="+this.encoder.encodeValue(e))).join("&")})).filter((e=>""!==e)).join("&")}clone(e){const t=new z({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((e=>this.map.set(e,this.cloneFrom.map.get(e)))),this.updates.forEach((e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(R(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const s=t.indexOf(R(e.value));-1!==s&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}})),this.cloneFrom=this.updates=null)}}class F{constructor(e){this.defaultValue=e}}class H{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function U(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function M(e){return"undefined"!=typeof Blob&&e instanceof Blob}function q(e){return"undefined"!=typeof FormData&&e instanceof FormData}class J{constructor(e,t,s,r){let n;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,n=r):n=s,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params)),this.headers||(this.headers=new S),this.context||(this.context=new H),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const s=t.indexOf("?"),r=-1===s?"?":s<t.length-1?"&":"";this.urlWithParams=t+r+e}}else this.params=new z,this.urlWithParams=t}serializeBody(){return null===this.body?null:U(this.body)||M(this.body)||q(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof z?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();var e}detectContentTypeHeader(){return null===this.body||q(this.body)?null:M(this.body)?this.body.type||null:U(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof z?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,s=e.url||this.url,r=e.responseType||this.responseType,n=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let i=e.headers||this.headers,c=e.params||this.params;const u=e.context??this.context;return void 0!==e.setHeaders&&(i=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),i)),e.setParams&&(c=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),c)),new J(t,s,n,{params:c,headers:i,context:u,reportProgress:a,responseType:r,withCredentials:o})}}var V;!function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(V||(V={}));class D{constructor(e,t=200,s="OK"){this.headers=e.headers||new S,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||s,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class B extends D{constructor(e={}){super(e),this.type=V.ResponseHeader}clone(e={}){return new B({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})}}class X extends D{constructor(e={}){super(e),this.type=V.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new X({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})}}class K extends D{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function $(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class _{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof J)r=e;else{let n,o;n=s.headers instanceof S?s.headers:new S(s.headers),s.params&&(o=s.params instanceof z?s.params:new z({fromObject:s.params})),r=new J(e,t,void 0!==s.body?s.body:null,{headers:n,context:s.context,params:o,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const n=m(r).pipe(v((e=>this.handler.handle(e))));if(e instanceof J||"events"===s.observe)return n;const o=n.pipe(w((e=>e instanceof X)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(g((e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return o.pipe(g((e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return o.pipe(g((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(g((e=>e.body)))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new z).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,s={}){return this.request("PATCH",e,$(s,t))}post(e,t,s={}){return this.request("POST",e,$(s,t))}put(e,t,s={}){return this.request("PUT",e,$(s,t))}static{this.ɵfac=function(t){return new(t||_)(e.ɵɵinject(N))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:_,factory:_.ɵfac})}}function W(e,t){return t(e)}function G(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}const Z=new s(""),Y=new s(""),Q=new s("");function ee(){let e=null;return(t,s)=>{if(null===e){const t=i(Z,{optional:!0})??[];e=t.reduceRight(G,W)}return e(t,s)}}class te extends N{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=Array.from(new Set([...this.injector.get(Y),...this.injector.get(Q,[])]));this.chain=e.reduceRight(((e,t)=>function(e,t,s){return(r,n)=>s.runInContext((()=>t(r,(t=>e(t,n)))))}(e,t,this.injector)),W)}return this.chain(e,(e=>this.backend.handle(e)))}static{this.ɵfac=function(t){return new(t||te)(e.ɵɵinject(P),e.ɵɵinject(e.EnvironmentInjector))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:te,factory:te.ɵfac})}}let se,re=0;class ne{}function oe(){return"object"==typeof window?window:{}}class ae{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+re++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");if(e.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new y((t=>{const s=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${s}$1`),n=this.document.createElement("script");n.src=r;let o=null,a=!1;this.callbackMap[s]=e=>{delete this.callbackMap[s],o=e,a=!0};const i=()=>{n.parentNode&&n.parentNode.removeChild(n),delete this.callbackMap[s]};return n.addEventListener("load",(e=>{this.resolvedPromise.then((()=>{i(),a?(t.next(new X({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new K({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))}))})),n.addEventListener("error",(e=>{i(),t.error(new K({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:V.Sent}),()=>{a||this.removeListeners(n),i()}}))}removeListeners(e){se||(se=this.document.implementation.createHTMLDocument()),se.adoptNode(e)}static{this.ɵfac=function(t){return new(t||ae)(e.ɵɵinject(ne),e.ɵɵinject(j))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:ae,factory:ae.ɵfac})}}function ie(e,t){return"JSONP"===e.method?i(ae).handle(e):t(e)}class ce{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ie(e,(e=>t.handle(e)))))}static{this.ɵfac=function(t){return new(t||ce)(e.ɵɵinject(e.EnvironmentInjector))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:ce,factory:ce.ɵfac})}}const ue=/^\)\]\}',?\n/;class he{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new n(-2800,!1);const t=function(){const e=()=>{};if("undefined"!=typeof Zone){const t=Zone.current,s=t.scheduleMacroTask("httpMacroTask",e,void 0,e,e);return()=>t.cancelTask(s)}return e}(),s=this.xhrFactory;return(s.ɵloadImpl?b(s.ɵloadImpl()):m(null)).pipe(T((()=>new y((r=>{const n=s.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach(((e,t)=>n.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const o=e.serializeBody();let a=null;const i=()=>{if(null!==a)return a;const t=n.statusText||"OK",s=new S(n.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return a=new B({headers:s,status:n.status,statusText:t,url:r}),a},c=()=>{let{headers:t,status:s,statusText:o,url:a}=i(),c=null;204!==s&&(c=void 0===n.response?n.responseText:n.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(ue,"");try{c=""!==c?JSON.parse(c):null}catch(t){c=e,u&&(u=!1,c={error:t,text:c})}}u?(r.next(new X({body:c,headers:t,status:s,statusText:o,url:a||void 0})),r.complete()):r.error(new K({error:c,headers:t,status:s,statusText:o,url:a||void 0}))},u=e=>{const{url:s}=i(),o=new K({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});r.error(o),t()};let h=!1;const l=t=>{h||(r.next(i()),h=!0);let s={type:V.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(s.total=t.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),r.next(s)},d=e=>{let t={type:V.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),r.next(t)};n.addEventListener("load",c),n.addEventListener("error",u),n.addEventListener("timeout",u),n.addEventListener("abort",u),e.reportProgress&&(n.addEventListener("progress",l),null!==o&&n.upload&&n.upload.addEventListener("progress",d));const p=()=>t();n.addEventListener("loadend",p);try{n.send(o)}catch(e){u(e)}return r.next({type:V.Sent}),()=>{n.removeEventListener("loadend",p),n.removeEventListener("error",u),n.removeEventListener("abort",u),n.removeEventListener("load",c),n.removeEventListener("timeout",u),t(),e.reportProgress&&(n.removeEventListener("progress",l),null!==o&&n.upload&&n.upload.removeEventListener("progress",d)),n.readyState!==n.DONE&&n.abort()}})))))}static{this.ɵfac=function(t){return new(t||he)(e.ɵɵinject(C.XhrFactory))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:he,factory:he.ɵfac})}}const le=new s("XSRF_ENABLED"),de="XSRF-TOKEN",pe=new s("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>de}),fe="X-XSRF-TOKEN",me=new s("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>fe});class ye{}class be{constructor(e,t,s){this.doc=e,this.platform=t,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=k(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.ɵfac=function(t){return new(t||be)(e.ɵɵinject(j),e.ɵɵinject(o),e.ɵɵinject(pe))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:be,factory:be.ɵfac})}}function ve(e,t){const s=e.url.toLowerCase();if(!i(le)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const r=i(ye).getToken(),n=i(me);return null==r||e.headers.has(n)||(e=e.clone({headers:e.headers.set(n,r)})),t(e)}class we{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ve(e,(e=>t.handle(e)))))}static{this.ɵfac=function(t){return new(t||we)(e.ɵɵinject(e.EnvironmentInjector))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:we,factory:we.ɵfac})}}var ge;function Te(e,t){return{ɵkind:e,ɵproviders:t}}function Ee(...e){const t=[_,he,te,{provide:N,useExisting:te},{provide:P,useExisting:he},{provide:Y,useValue:ve,multi:!0},{provide:le,useValue:!0},{provide:ye,useClass:be}];for(const s of e)t.push(...s.ɵproviders);return c(t)}function xe(e){return Te(ge.Interceptors,e.map((e=>({provide:Y,useValue:e,multi:!0}))))}!function(e){e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent"}(ge||(ge={}));const Ce=new s("LEGACY_INTERCEPTOR_FN");function je(){return Te(ge.LegacyInterceptors,[{provide:Ce,useFactory:ee},{provide:Y,useExisting:Ce,multi:!0}])}function ke({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:pe,useValue:e}),void 0!==t&&s.push({provide:me,useValue:t}),Te(ge.CustomXsrfConfiguration,s)}function Ne(){return Te(ge.NoXsrfProtection,[{provide:le,useValue:!1}])}function Pe(){return Te(ge.JsonpSupport,[ae,{provide:ne,useFactory:oe},{provide:Y,useValue:ie,multi:!0}])}function Se(){return Te(ge.RequestsMadeViaParent,[{provide:P,useFactory:()=>{const e=i(N,{skipSelf:!0,optional:!0});return e}}])}class Oe{static disable(){return{ngModule:Oe,providers:[Ne().ɵproviders]}}static withOptions(e={}){return{ngModule:Oe,providers:ke(e).ɵproviders}}static{this.ɵfac=function(e){return new(e||Oe)}}static{this.ɵmod=e.ɵɵdefineNgModule({type:Oe})}static{this.ɵinj=e.ɵɵdefineInjector({providers:[we,{provide:Z,useExisting:we,multi:!0},{provide:ye,useClass:be},ke({cookieName:de,headerName:fe}).ɵproviders,{provide:le,useValue:!0}]})}}class Ie{static{this.ɵfac=function(e){return new(e||Ie)}}static{this.ɵmod=e.ɵɵdefineNgModule({type:Ie})}static{this.ɵinj=e.ɵɵdefineInjector({providers:[Ee(je())]})}}class Le{static{this.ɵfac=function(e){return new(e||Le)}}static{this.ɵmod=e.ɵɵdefineNgModule({type:Le})}static{this.ɵinj=e.ɵɵdefineInjector({providers:[Pe().ɵproviders]})}}const Ae=new s(""),Re=["GET","HEAD"];function ze(e,t){const{isCacheActive:s}=i(Ae);if(!s||!Re.includes(e.method))return t(e);const r=i(h),n=function(e){const{params:t,method:s,responseType:r,url:n}=e,o=t.keys().sort().map((e=>`${e}=${t.getAll(e)}`)).join("&"),a=function(e){let t=0;for(const s of e)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,t.toString()}(s+"."+r+"."+n+"?"+o);return f(a)}(e),o=r.get(n,null);if(o){let e=o.body;switch(o.responseType){case"arraybuffer":e=(new TextEncoder).encode(o.body).buffer;break;case"blob":e=new Blob([o.body])}return m(new X({body:e,headers:new S(o.headers),status:o.status,statusText:o.statusText,url:o.url}))}return t(e).pipe(x((t=>{t instanceof X&&r.set(n,{body:t.body,headers:Fe(t.headers),status:t.status,statusText:t.statusText,url:t.url||"",responseType:e.responseType})})))}function Fe(e){const t={};for(const s of e.keys()){const r=e.getAll(s);null!==r&&(t[s]=r)}return t}function He(){return[{provide:Ae,useFactory:()=>(i(u).add("httpcache"),{isCacheActive:!0})},{provide:Q,useValue:ze,multi:!0,deps:[h,Ae]},{provide:l,multi:!0,useFactory:()=>{const e=i(d),t=i(Ae),s=i(p);return()=>{e.isStable.pipe(E((e=>e))).toPromise().then((()=>s.whenAllTasksComplete)).then((()=>{t.isCacheActive=!1}))}},deps:[d,Ae,p]}]}export{Z as HTTP_INTERCEPTORS,P as HttpBackend,_ as HttpClient,Le as HttpClientJsonpModule,Ie as HttpClientModule,Oe as HttpClientXsrfModule,H as HttpContext,F as HttpContextToken,K as HttpErrorResponse,V as HttpEventType,ge as HttpFeatureKind,N as HttpHandler,B as HttpHeaderResponse,S as HttpHeaders,z as HttpParams,J as HttpRequest,X as HttpResponse,D as HttpResponseBase,O as HttpUrlEncodingCodec,he as HttpXhrBackend,ye as HttpXsrfTokenExtractor,ae as JsonpClientBackend,ce as JsonpInterceptor,Ee as provideHttpClient,xe as withInterceptors,je as withInterceptorsFromDi,Pe as withJsonpSupport,Ne as withNoXsrfProtection,Se as withRequestsMadeViaParent,ke as withXsrfConfiguration,te as ɵHttpInterceptingHandler,te as ɵHttpInterceptorHandler,He as ɵwithHttpTransferCache};
/* esm-bundle - @angular/common/http@16.0.4 - Ivy - es format - es2022 - 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 */
import*as e from"@angular/core";import{Injectable as t,InjectionToken as s,inject as r,ɵInitialRenderPendingTasks as n,Inject as o,ɵRuntimeError as i,PLATFORM_ID as a,NgModule as c,makeEnvironmentProviders as u,ɵENABLED_SSR_FEATURES as h,TransferState as l,APP_BOOTSTRAP_LISTENER as d,ApplicationRef as p,makeStateKey as f}from"@angular/core";import{of as m,Observable as y,from as b}from"rxjs";import{concatMap as v,filter as g,map as w,finalize as T,switchMap as x,first as E,tap as j}from"rxjs/operators";import*as C from"@angular/common";import{DOCUMENT as k,ɵparseCookieValue as N}from"@angular/common";class P{}class S{}class O{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach((e=>{const t=e.indexOf(":");if(t>0){const s=e.slice(0,t),r=s.toLowerCase(),n=e.slice(t+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}}))}:()=>{this.headers=new Map,Object.entries(e).forEach((([e,t])=>{let s;if(s="string"==typeof t?[t]:"number"==typeof t?[t.toString()]:t.map((e=>e.toString())),s.length>0){const t=e.toLowerCase();this.headers.set(t,s),this.maybeSetNormalizedName(e,t)}}))}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((e=>this.applyUpdate(e))),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach((t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))}))}clone(e){const t=new O;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let s=e.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...s),this.headers.set(t,r);break;case"d":const n=e.value;if(n){let e=this.headers.get(t);if(!e)return;e=e.filter((e=>-1===n.indexOf(e))),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach((t=>e(this.normalizedNames.get(t),this.headers.get(t))))}}class I{encodeKey(e){return R(e)}encodeValue(e){return R(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const A=/%(\d[a-f0-9])/gi,L={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function R(e){return encodeURIComponent(e).replace(A,((e,t)=>L[t]??e))}function z(e){return`${e}`}class F{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new I,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const s=new Map;e.length>0&&e.replace(/^\?/,"").split("&").forEach((e=>{const r=e.indexOf("="),[n,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],i=s.get(n)||[];i.push(o),s.set(n,i)}));return s}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((t=>{const s=e.fromObject[t],r=Array.isArray(s)?s.map(z):[z(s)];this.map.set(t,r)}))):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach((s=>{const r=e[s];Array.isArray(r)?r.forEach((e=>{t.push({param:s,value:e,op:"a"})})):t.push({param:s,value:r,op:"a"})})),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map((e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map((e=>t+"="+this.encoder.encodeValue(e))).join("&")})).filter((e=>""!==e)).join("&")}clone(e){const t=new F({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((e=>this.map.set(e,this.cloneFrom.map.get(e)))),this.updates.forEach((e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(z(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const s=t.indexOf(z(e.value));-1!==s&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}})),this.cloneFrom=this.updates=null)}}class H{constructor(e){this.defaultValue=e}}class U{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function M(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function q(e){return"undefined"!=typeof Blob&&e instanceof Blob}function J(e){return"undefined"!=typeof FormData&&e instanceof FormData}class V{constructor(e,t,s,r){let n;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,n=r):n=s,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params)),this.headers||(this.headers=new O),this.context||(this.context=new U),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const s=t.indexOf("?"),r=-1===s?"?":s<t.length-1?"&":"";this.urlWithParams=t+r+e}}else this.params=new F,this.urlWithParams=t}serializeBody(){return null===this.body?null:M(this.body)||q(this.body)||J(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof F?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();var e}detectContentTypeHeader(){return null===this.body||J(this.body)?null:q(this.body)?this.body.type||null:M(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof F?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,s=e.url||this.url,r=e.responseType||this.responseType,n=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,i=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,c=e.params||this.params;const u=e.context??this.context;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),a)),e.setParams&&(c=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),c)),new V(t,s,n,{params:c,headers:a,context:u,reportProgress:i,responseType:r,withCredentials:o})}}var D;!function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(D||(D={}));class B{constructor(e,t=200,s="OK"){this.headers=e.headers||new O,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||s,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class X extends B{constructor(e={}){super(e),this.type=D.ResponseHeader}clone(e={}){return new X({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})}}class K extends B{constructor(e={}){super(e),this.type=D.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new K({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})}}class $ extends B{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function _(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class W{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof V)r=e;else{let n,o;n=s.headers instanceof O?s.headers:new O(s.headers),s.params&&(o=s.params instanceof F?s.params:new F({fromObject:s.params})),r=new V(e,t,void 0!==s.body?s.body:null,{headers:n,context:s.context,params:o,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const n=m(r).pipe(v((e=>this.handler.handle(e))));if(e instanceof V||"events"===s.observe)return n;const o=n.pipe(g((e=>e instanceof K)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(w((e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return o.pipe(w((e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return o.pipe(w((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(w((e=>e.body)))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new F).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,s={}){return this.request("PATCH",e,_(s,t))}post(e,t,s={}){return this.request("POST",e,_(s,t))}put(e,t,s={}){return this.request("PUT",e,_(s,t))}static{this.ɵfac=function(t){return new(t||W)(e.ɵɵinject(P))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:W,factory:W.ɵfac})}}function G(e,t){return t(e)}function Y(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}const Q=new s(""),Z=new s(""),ee=new s("");function te(){let e=null;return(t,s)=>{if(null===e){const t=r(Q,{optional:!0})??[];e=t.reduceRight(Y,G)}const o=r(n),i=o.add();return e(t,s).pipe(T((()=>o.remove(i))))}}class se extends P{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=r(n)}handle(e){if(null===this.chain){const e=Array.from(new Set([...this.injector.get(Z),...this.injector.get(ee,[])]));this.chain=e.reduceRight(((e,t)=>function(e,t,s){return(r,n)=>s.runInContext((()=>t(r,(t=>e(t,n)))))}(e,t,this.injector)),G)}const t=this.pendingTasks.add();return this.chain(e,(e=>this.backend.handle(e))).pipe(T((()=>this.pendingTasks.remove(t))))}static{this.ɵfac=function(t){return new(t||se)(e.ɵɵinject(S),e.ɵɵinject(e.EnvironmentInjector))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:se,factory:se.ɵfac})}}let re,ne=0;class oe{}function ie(){return"object"==typeof window?window:{}}class ae{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ne++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");if(e.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new y((t=>{const s=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${s}$1`),n=this.document.createElement("script");n.src=r;let o=null,i=!1;this.callbackMap[s]=e=>{delete this.callbackMap[s],o=e,i=!0};const a=()=>{n.parentNode&&n.parentNode.removeChild(n),delete this.callbackMap[s]};return n.addEventListener("load",(e=>{this.resolvedPromise.then((()=>{a(),i?(t.next(new K({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new $({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))}))})),n.addEventListener("error",(e=>{a(),t.error(new $({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:D.Sent}),()=>{i||this.removeListeners(n),a()}}))}removeListeners(e){re||(re=this.document.implementation.createHTMLDocument()),re.adoptNode(e)}static{this.ɵfac=function(t){return new(t||ae)(e.ɵɵinject(oe),e.ɵɵinject(k))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:ae,factory:ae.ɵfac})}}function ce(e,t){return"JSONP"===e.method?r(ae).handle(e):t(e)}class ue{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ce(e,(e=>t.handle(e)))))}static{this.ɵfac=function(t){return new(t||ue)(e.ɵɵinject(e.EnvironmentInjector))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:ue,factory:ue.ɵfac})}}const he=/^\)\]\}',?\n/;class le{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new i(-2800,!1);const t=this.xhrFactory;return(t.ɵloadImpl?b(t.ɵloadImpl()):m(null)).pipe(x((()=>new y((s=>{const r=t.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(((e,t)=>r.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&r.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();r.responseType="json"!==t?t:"text"}const n=e.serializeBody();let o=null;const i=()=>{if(null!==o)return o;const t=r.statusText||"OK",s=new O(r.getAllResponseHeaders()),n=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new X({headers:s,status:r.status,statusText:t,url:n}),o},a=()=>{let{headers:t,status:n,statusText:o,url:a}=i(),c=null;204!==n&&(c=void 0===r.response?r.responseText:r.response),0===n&&(n=c?200:0);let u=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(he,"");try{c=""!==c?JSON.parse(c):null}catch(t){c=e,u&&(u=!1,c={error:t,text:c})}}u?(s.next(new K({body:c,headers:t,status:n,statusText:o,url:a||void 0})),s.complete()):s.error(new $({error:c,headers:t,status:n,statusText:o,url:a||void 0}))},c=e=>{const{url:t}=i(),n=new $({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});s.error(n)};let u=!1;const h=t=>{u||(s.next(i()),u=!0);let n={type:D.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),"text"===e.responseType&&r.responseText&&(n.partialText=r.responseText),s.next(n)},l=e=>{let t={type:D.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),s.next(t)};return r.addEventListener("load",a),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",h),null!==n&&r.upload&&r.upload.addEventListener("progress",l)),r.send(n),s.next({type:D.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",a),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==n&&r.upload&&r.upload.removeEventListener("progress",l)),r.readyState!==r.DONE&&r.abort()}})))))}static{this.ɵfac=function(t){return new(t||le)(e.ɵɵinject(C.XhrFactory))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:le,factory:le.ɵfac})}}const de=new s("XSRF_ENABLED"),pe="XSRF-TOKEN",fe=new s("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>pe}),me="X-XSRF-TOKEN",ye=new s("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>me});class be{}class ve{constructor(e,t,s){this.doc=e,this.platform=t,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=N(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.ɵfac=function(t){return new(t||ve)(e.ɵɵinject(k),e.ɵɵinject(a),e.ɵɵinject(fe))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:ve,factory:ve.ɵfac})}}function ge(e,t){const s=e.url.toLowerCase();if(!r(de)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const n=r(be).getToken(),o=r(ye);return null==n||e.headers.has(o)||(e=e.clone({headers:e.headers.set(o,n)})),t(e)}class we{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ge(e,(e=>t.handle(e)))))}static{this.ɵfac=function(t){return new(t||we)(e.ɵɵinject(e.EnvironmentInjector))}}static{this.ɵprov=e.ɵɵdefineInjectable({token:we,factory:we.ɵfac})}}var Te;function xe(e,t){return{ɵkind:e,ɵproviders:t}}function Ee(...e){const t=[W,le,se,{provide:P,useExisting:se},{provide:S,useExisting:le},{provide:Z,useValue:ge,multi:!0},{provide:de,useValue:!0},{provide:be,useClass:ve}];for(const s of e)t.push(...s.ɵproviders);return u(t)}function je(e){return xe(Te.Interceptors,e.map((e=>({provide:Z,useValue:e,multi:!0}))))}!function(e){e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent"}(Te||(Te={}));const Ce=new s("LEGACY_INTERCEPTOR_FN");function ke(){return xe(Te.LegacyInterceptors,[{provide:Ce,useFactory:te},{provide:Z,useExisting:Ce,multi:!0}])}function Ne({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:fe,useValue:e}),void 0!==t&&s.push({provide:ye,useValue:t}),xe(Te.CustomXsrfConfiguration,s)}function Pe(){return xe(Te.NoXsrfProtection,[{provide:de,useValue:!1}])}function Se(){return xe(Te.JsonpSupport,[ae,{provide:oe,useFactory:ie},{provide:Z,useValue:ce,multi:!0}])}function Oe(){return xe(Te.RequestsMadeViaParent,[{provide:S,useFactory:()=>{const e=r(P,{skipSelf:!0,optional:!0});return e}}])}class Ie{static disable(){return{ngModule:Ie,providers:[Pe().ɵproviders]}}static withOptions(e={}){return{ngModule:Ie,providers:Ne(e).ɵproviders}}static{this.ɵfac=function(e){return new(e||Ie)}}static{this.ɵmod=e.ɵɵdefineNgModule({type:Ie})}static{this.ɵinj=e.ɵɵdefineInjector({providers:[we,{provide:Q,useExisting:we,multi:!0},{provide:be,useClass:ve},Ne({cookieName:pe,headerName:me}).ɵproviders,{provide:de,useValue:!0}]})}}class Ae{static{this.ɵfac=function(e){return new(e||Ae)}}static{this.ɵmod=e.ɵɵdefineNgModule({type:Ae})}static{this.ɵinj=e.ɵɵdefineInjector({providers:[Ee(ke())]})}}class Le{static{this.ɵfac=function(e){return new(e||Le)}}static{this.ɵmod=e.ɵɵdefineNgModule({type:Le})}static{this.ɵinj=e.ɵɵdefineInjector({providers:[Se().ɵproviders]})}}const Re=new s(""),ze=["GET","HEAD"];function Fe(e,t){const{isCacheActive:s}=r(Re);if(!s||!ze.includes(e.method))return t(e);const n=r(l),o=function(e){const{params:t,method:s,responseType:r,url:n}=e,o=t.keys().sort().map((e=>`${e}=${t.getAll(e)}`)).join("&"),i=function(e){let t=0;for(const s of e)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,t.toString()}(s+"."+r+"."+n+"?"+o);return f(i)}(e),i=n.get(o,null);if(i){let e=i.body;switch(i.responseType){case"arraybuffer":e=(new TextEncoder).encode(i.body).buffer;break;case"blob":e=new Blob([i.body])}return m(new K({body:e,headers:new O(i.headers),status:i.status,statusText:i.statusText,url:i.url}))}return t(e).pipe(j((t=>{t instanceof K&&n.set(o,{body:t.body,headers:He(t.headers),status:t.status,statusText:t.statusText,url:t.url||"",responseType:e.responseType})})))}function He(e){const t={};for(const s of e.keys()){const r=e.getAll(s);null!==r&&(t[s]=r)}return t}function Ue(){return[{provide:Re,useFactory:()=>(r(h).add("httpcache"),{isCacheActive:!0})},{provide:ee,useValue:Fe,multi:!0,deps:[l,Re]},{provide:d,multi:!0,useFactory:()=>{const e=r(p),t=r(Re);return()=>{e.isStable.pipe(E((e=>e))).toPromise().then((()=>{t.isCacheActive=!1}))}}}]}export{Q as HTTP_INTERCEPTORS,S as HttpBackend,W as HttpClient,Le as HttpClientJsonpModule,Ae as HttpClientModule,Ie as HttpClientXsrfModule,U as HttpContext,H as HttpContextToken,$ as HttpErrorResponse,D as HttpEventType,Te as HttpFeatureKind,P as HttpHandler,X as HttpHeaderResponse,O as HttpHeaders,F as HttpParams,V as HttpRequest,K as HttpResponse,B as HttpResponseBase,I as HttpUrlEncodingCodec,le as HttpXhrBackend,be as HttpXsrfTokenExtractor,ae as JsonpClientBackend,ue as JsonpInterceptor,Ee as provideHttpClient,je as withInterceptors,ke as withInterceptorsFromDi,Se as withJsonpSupport,Pe as withNoXsrfProtection,Oe as withRequestsMadeViaParent,Ne as withXsrfConfiguration,se as ɵHttpInterceptingHandler,se as ɵHttpInterceptorHandler,Ue as ɵwithHttpTransferCache};
//# sourceMappingURL=angular-http.min.js.map

@@ -1,2 +0,2 @@

/* esm-bundle - @angular/common/upgrade@16.0.3 - Ivy - es format - es2022 - 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 */
/* esm-bundle - @angular/common/upgrade@16.0.4 - Ivy - es format - es2022 - 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 */
import * as i0 from '@angular/core';

@@ -9,3 +9,3 @@ import { InjectionToken, Inject, Optional, NgModule, ɵisPromise } from '@angular/core';

/**
* @license Angular v16.0.3
* @license Angular v16.0.4
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -12,0 +12,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/common/upgrade@16.0.3 - Ivy - es format - es2022 - 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 */
/* esm-bundle - @angular/common/upgrade@16.0.4 - Ivy - es format - es2022 - 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 */
import*as t from"@angular/core";import{InjectionToken as e,Inject as r,Optional as s,NgModule as i,ɵisPromise as a}from"@angular/core";import{ReplaySubject as h}from"rxjs";import{Location as o,PlatformLocation as n,LocationStrategy as c,APP_BASE_HREF as l,CommonModule as $,HashLocationStrategy as p,PathLocationStrategy as u}from"@angular/common";import{UpgradeModule as d}from"@angular/upgrade/static";const g=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,f=/^\s*[\\/]{2,}/,w=/^\s*(javascript|mailto):/i,S={"http:":80,"https:":443,"ftp:":21};class U{constructor(t,e,r,s,i){this.location=e,this.platformLocation=r,this.urlCodec=s,this.locationStrategy=i,this.initializing=!0,this.updateBrowser=!1,this.$$absUrl="",this.$$url="",this.$$host="",this.$$replace=!1,this.$$path="",this.$$search="",this.$$hash="",this.$$changeListeners=[],this.cachedState=null,this.urlChanges=new h(1),this.lastBrowserUrl="",this.lastCachedState=null;const o=this.browserUrl();let n=this.urlCodec.parse(o);if("string"==typeof n)throw"Invalid URL";this.$$protocol=n.protocol,this.$$host=n.hostname,this.$$port=parseInt(n.port)||S[n.protocol]||null,this.$$parseLinkUrl(o,o),this.cacheState(),this.$$state=this.browserState(),this.location.onUrlChange(((t,e)=>{this.urlChanges.next({newUrl:t,newState:e})})),a(t)?t.then((t=>this.initialize(t))):this.initialize(t)}initialize(t){const e=t.get("$rootScope"),r=t.get("$rootElement");r.on("click",(t=>{if(t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let s=t.target;for(;s&&"a"!==s.nodeName.toLowerCase();)if(s===r[0]||!(s=s.parentNode))return;if(void 0===s.href)return;const i=s.href,a=s.getAttribute("href");w.test(i)||!i||s.getAttribute("target")||t.isDefaultPrevented()||this.$$parseLinkUrl(i,a)&&(t.preventDefault(),this.absUrl()!==this.browserUrl()&&e.$apply())})),this.urlChanges.subscribe((({newUrl:t,newState:r})=>{const s=this.absUrl(),i=this.$$state;this.$$parse(t),t=this.absUrl(),this.$$state=r;const a=e.$broadcast("$locationChangeStart",t,s,r,i).defaultPrevented;this.absUrl()===t&&(a?(this.$$parse(s),this.state(i),this.setBrowserUrlWithFallback(s,!1,i),this.$$notifyChangeListeners(this.url(),this.$$state,s,i)):(this.initializing=!1,e.$broadcast("$locationChangeSuccess",t,s,r,i),this.resetBrowserUpdate()),e.$$phase||e.$digest())})),e.$watch((()=>{if(this.initializing||this.updateBrowser){this.updateBrowser=!1;const t=this.browserUrl(),r=this.absUrl(),s=this.browserState();let i=this.$$replace;const a=!this.urlCodec.areEqual(t,r)||s!==this.$$state;(this.initializing||a)&&(this.initializing=!1,e.$evalAsync((()=>{const r=this.absUrl(),h=e.$broadcast("$locationChangeStart",r,t,this.$$state,s).defaultPrevented;this.absUrl()===r&&(h?(this.$$parse(t),this.$$state=s):(a&&(this.setBrowserUrlWithFallback(r,i,s===this.$$state?null:this.$$state),this.$$replace=!1),e.$broadcast("$locationChangeSuccess",r,t,this.$$state,s),a&&this.$$notifyChangeListeners(this.url(),this.$$state,t,s)))})))}this.$$replace=!1}))}resetBrowserUpdate(){this.$$replace=!1,this.$$state=this.browserState(),this.updateBrowser=!1,this.lastBrowserUrl=this.browserUrl()}browserUrl(t,e,r){if(void 0===r&&(r=null),t){let s=this.lastHistoryState===r;return t=this.urlCodec.parse(t).href,this.lastBrowserUrl===t&&s?this:(this.lastBrowserUrl=t,this.lastHistoryState=r,t=this.stripBaseUrl(this.getServerBase(),t)||t,e?this.locationStrategy.replaceState(r,"",t,""):this.locationStrategy.pushState(r,"",t,""),this.cacheState(),this)}return this.platformLocation.href}cacheState(){this.cachedState=this.platformLocation.getState(),void 0===this.cachedState&&(this.cachedState=null),function(t,e){if(t===e)return!0;if(!t||!e)return!1;try{return!(t.prototype!==e.prototype||Array.isArray(t)&&Array.isArray(e))&&JSON.stringify(t)===JSON.stringify(e)}catch(t){return!1}}(this.cachedState,this.lastCachedState)&&(this.cachedState=this.lastCachedState),this.lastCachedState=this.cachedState,this.lastHistoryState=this.cachedState}browserState(){return this.cachedState}stripBaseUrl(t,e){if(e.startsWith(t))return e.slice(t.length)}getServerBase(){const{protocol:t,hostname:e,port:r}=this.platformLocation;let s=`${t}//${e}${r?":"+r:""}${this.locationStrategy.getBaseHref()||"/"}`;return s.endsWith("/")?s:s+"/"}parseAppUrl(t){if(f.test(t))throw new Error(`Bad Path - URL cannot start with double slashes: ${t}`);let e="/"!==t.charAt(0);e&&(t="/"+t);let r=this.urlCodec.parse(t,this.getServerBase());if("string"==typeof r)throw new Error(`Bad URL - Cannot parse URL: ${t}`);let s=e&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;this.$$path=this.urlCodec.decodePath(s),this.$$search=this.urlCodec.decodeSearch(r.search),this.$$hash=this.urlCodec.decodeHash(r.hash),this.$$path&&"/"!==this.$$path.charAt(0)&&(this.$$path="/"+this.$$path)}onChange(t,e=(t=>{})){this.$$changeListeners.push([t,e])}$$notifyChangeListeners(t="",e,r="",s){this.$$changeListeners.forEach((([i,a])=>{try{i(t,e,r,s)}catch(t){a(t)}}))}$$parse(t){let e;if(e=t.startsWith("/")?t:this.stripBaseUrl(this.getServerBase(),t),void 0===e)throw new Error(`Invalid url "${t}", missing path prefix "${this.getServerBase()}".`);this.parseAppUrl(e),this.$$path||(this.$$path="/"),this.composeUrls()}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let r,s=this.stripBaseUrl(this.getServerBase(),t);return void 0!==s?r=this.getServerBase()+s:this.getServerBase()===t+"/"&&(r=this.getServerBase()),r&&this.$$parse(r),!!r}setBrowserUrlWithFallback(t,e,r){const s=this.url(),i=this.$$state;try{this.browserUrl(t,e,r),this.$$state=this.browserState()}catch(t){throw this.url(s),this.$$state=i,t}}composeUrls(){this.$$url=this.urlCodec.normalize(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.getServerBase()+this.$$url.slice(1),this.updateBrowser=!0}absUrl(){return this.$$absUrl}url(t){if("string"==typeof t){t.length||(t="/");const e=g.exec(t);return e?((e[1]||""===t)&&this.path(this.urlCodec.decodePath(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this):this}return this.$$url}protocol(){return this.$$protocol}host(){return this.$$host}port(){return this.$$port}path(t){return void 0===t?this.$$path:(t="/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t,this.$$path=t,this.composeUrls(),this)}search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if("string"==typeof t||"number"==typeof t)this.$$search=this.urlCodec.decodeSearch(t.toString());else{if("object"!=typeof t||null===t)throw new Error("LocationProvider.search(): First argument must be a string or an object.");t={...t};for(const e in t)null==t[e]&&delete t[e];this.$$search=t}break;default:if("string"==typeof t){const r=this.search();return null==e?(delete r[t],this.search(r)):(r[t]=e,this.search(r))}}return this.composeUrls(),this}hash(t){return void 0===t?this.$$hash:(this.$$hash=null!==t?t.toString():"",this.composeUrls(),this)}replace(){return this.$$replace=!0,this}state(t){return void 0===t?this.$$state:(this.$$state=t,this)}}class m{constructor(t,e,r,s,i){this.ngUpgrade=t,this.location=e,this.platformLocation=r,this.urlCodec=s,this.locationStrategy=i}$get(){return new U(this.ngUpgrade.$injector,this.location,this.platformLocation,this.urlCodec,this.locationStrategy)}hashPrefix(t){throw new Error("Configure LocationUpgrade through LocationUpgradeModule.config method.")}html5Mode(t){throw new Error("Configure LocationUpgrade through LocationUpgradeModule.config method.")}}class y{}class b{encodePath(t){const e=t.split("/");let r=e.length;for(;r--;)e[r]=B(e[r].replace(/%2F/g,"/"));return t=e.join("/"),((t&&"/"!==t[0]?"/":"")+t).replace(/\/index.html$/,"")}encodeSearch(t){return"string"==typeof t&&(t=v(t)),(t=function(t){const e=[];for(const r in t){let s=t[r];Array.isArray(s)?s.forEach((t=>{e.push(L(r,!0)+(!0===t?"":"="+L(t,!0)))})):e.push(L(r,!0)+(!0===s?"":"="+L(s,!0)))}return e.length?e.join("&"):""}(t))?"?"+t:""}encodeHash(t){return(t=B(t))?"#"+t:""}decodePath(t,e=!0){const r=t.split("/");let s=r.length;for(;s--;)r[s]=decodeURIComponent(r[s]),e&&(r[s]=r[s].replace(/\//g,"%2F"));return r.join("/")}decodeSearch(t){return v(t)}decodeHash(t){return"#"===(t=decodeURIComponent(t))[0]?t.substring(1):t}normalize(t,e,r,s){if(1===arguments.length){const e=this.parse(t,s);if("string"==typeof e)return e;const r=`${e.protocol}://${e.hostname}${e.port?":"+e.port:""}`;return this.normalize(this.decodePath(e.pathname),this.decodeSearch(e.search),this.decodeHash(e.hash),r)}{const i=this.encodePath(t),a=e&&this.encodeSearch(e)||"",h=r&&this.encodeHash(r)||"";let o=(s||"")+i;return o.length&&"/"===o[0]||(o="/"+o),o+a+h}}areEqual(t,e){return this.normalize(t)===this.normalize(e)}parse(t,e){try{const r=e?new URL(t,e):new URL(t);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}catch(r){throw new Error(`Invalid URL (${t}) with base (${e})`)}}}function C(t){try{return decodeURIComponent(t)}catch(t){return}}function v(t){const e={};return(t||"").split("&").forEach((t=>{let r,s,i;t&&(s=t=t.replace(/\+/g,"%20"),r=t.indexOf("="),-1!==r&&(s=t.substring(0,r),i=t.substring(r+1)),s=C(s),void 0!==s&&(i=void 0===i||C(i),e.hasOwnProperty(s)?Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]:e[s]=i))})),e}function B(t){return L(t,!0).replace(/%26/g,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function L(t,e=!1){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const A=new e("LOCATION_UPGRADE_CONFIGURATION"),E=new e("APP_BASE_HREF_RESOLVED");class P{static config(t){return{ngModule:P,providers:[o,{provide:U,useFactory:F,deps:[d,o,n,y,c]},{provide:A,useValue:t||{}},{provide:y,useFactory:z,deps:[A]},{provide:E,useFactory:R,deps:[A,[new r(l),new s]]},{provide:c,useFactory:H,deps:[n,E,A]}]}}static{this.ɵfac=function(t){return new(t||P)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:P})}static{this.ɵinj=t.ɵɵdefineInjector({imports:[$]})}}function R(t,e){return t&&null!=t.appBaseHref?t.appBaseHref:null!=e?e:""}function z(t){return new(t&&t.urlCodec||b)}function H(t,e,r={}){return r.useHash?new p(t,e):new u(t,e)}function F(t,e,r,s,i){return new m(t,e,r,s,i).$get()}export{U as $locationShim,m as $locationShimProvider,b as AngularJSUrlCodec,A as LOCATION_UPGRADE_CONFIGURATION,P as LocationUpgradeModule,y as UrlCodec};
//# sourceMappingURL=angular-upgrade.min.js.map
{
"name": "@esm-bundle/angular__common",
"version": "16.0.3",
"version": "16.0.4",
"description": "Repo to test esm-bundle's automatic publishing",

@@ -48,5 +48,5 @@ "exports": {

"devDependencies": {
"@angular/common": "16.0.3",
"@angular/compiler": "16.0.3",
"@angular/compiler-cli": "16.0.3",
"@angular/common": "16.0.4",
"@angular/compiler": "16.0.4",
"@angular/compiler-cli": "16.0.4",
"@angular/core": "13.3.0",

@@ -53,0 +53,0 @@ "@rollup/plugin-babel": "6.0.3",

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/common/http@16.0.3 - Ivy - system format - es2022 - 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 */
System.register(["@angular/core","rxjs","rxjs/operators","@angular/common"],(function(e){"use strict";var t,s,r,n,o,i,a,c,u,l,h,d,p,f,m,y,b,v,w,g,T,E,x,C;return{setters:[function(e){t=e,e.Injectable,s=e.InjectionToken,e.Inject,r=e["ɵRuntimeError"],n=e.PLATFORM_ID,e.NgModule,o=e.inject,i=e.makeEnvironmentProviders,a=e["ɵENABLED_SSR_FEATURES"],c=e.TransferState,u=e.APP_BOOTSTRAP_LISTENER,l=e.ApplicationRef,h=e["ɵInitialRenderPendingTasks"],d=e.makeStateKey},function(e){p=e.of,f=e.Observable,m=e.from},function(e){y=e.concatMap,b=e.filter,v=e.map,w=e.switchMap,g=e.first,T=e.tap},function(e){E=e.DOCUMENT,x=e,C=e["ɵparseCookieValue"]}],execute:function(){e({provideHttpClient:we,withInterceptors:function(e){return ve(be.Interceptors,e.map((e=>({provide:W,useValue:e,multi:!0}))))},withInterceptorsFromDi:Te,withJsonpSupport:Ce,withNoXsrfProtection:xe,withRequestsMadeViaParent:function(){return ve(be.RequestsMadeViaParent,[{provide:j,useFactory:()=>{const e=o(k,{skipSelf:!0,optional:!0});return e}}])},withXsrfConfiguration:Ee,ɵwithHttpTransferCache:function(){return[{provide:Ne,useFactory:()=>(o(a).add("httpcache"),{isCacheActive:!0})},{provide:G,useValue:Re,multi:!0,deps:[c,Ne]},{provide:u,multi:!0,useFactory:()=>{const e=o(l),t=o(Ne),s=o(h);return()=>{e.isStable.pipe(g((e=>e))).toPromise().then((()=>s.whenAllTasksComplete)).then((()=>{t.isCacheActive=!1}))}},deps:[l,Ne,h]}]}});class k{}e("HttpHandler",k);class j{}e("HttpBackend",j);class P{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach((e=>{const t=e.indexOf(":");if(t>0){const s=e.slice(0,t),r=s.toLowerCase(),n=e.slice(t+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}}))}:()=>{this.headers=new Map,Object.entries(e).forEach((([e,t])=>{let s;if(s="string"==typeof t?[t]:"number"==typeof t?[t.toString()]:t.map((e=>e.toString())),s.length>0){const t=e.toLowerCase();this.headers.set(t,s),this.maybeSetNormalizedName(e,t)}}))}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof P?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((e=>this.applyUpdate(e))),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach((t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))}))}clone(e){const t=new P;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof P?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let s=e.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...s),this.headers.set(t,r);break;case"d":const n=e.value;if(n){let e=this.headers.get(t);if(!e)return;e=e.filter((e=>-1===n.indexOf(e))),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach((t=>e(this.normalizedNames.get(t),this.headers.get(t))))}}e("HttpHeaders",P);class N{encodeKey(e){return H(e)}encodeValue(e){return H(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}e("HttpUrlEncodingCodec",N);const S=/%(\d[a-f0-9])/gi,R={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function H(e){return encodeURIComponent(e).replace(S,((e,t)=>R[t]??e))}function I(e){return`${e}`}class O{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new N,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const s=new Map;e.length>0&&e.replace(/^\?/,"").split("&").forEach((e=>{const r=e.indexOf("="),[n,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],i=s.get(n)||[];i.push(o),s.set(n,i)}));return s}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((t=>{const s=e.fromObject[t],r=Array.isArray(s)?s.map(I):[I(s)];this.map.set(t,r)}))):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach((s=>{const r=e[s];Array.isArray(r)?r.forEach((e=>{t.push({param:s,value:e,op:"a"})})):t.push({param:s,value:r,op:"a"})})),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map((e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map((e=>t+"="+this.encoder.encodeValue(e))).join("&")})).filter((e=>""!==e)).join("&")}clone(e){const t=new O({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((e=>this.map.set(e,this.cloneFrom.map.get(e)))),this.updates.forEach((e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(I(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const s=t.indexOf(I(e.value));-1!==s&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}})),this.cloneFrom=this.updates=null)}}e("HttpParams",O);e("HttpContextToken",class{constructor(e){this.defaultValue=e}});class A{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function L(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function M(e){return"undefined"!=typeof Blob&&e instanceof Blob}function F(e){return"undefined"!=typeof FormData&&e instanceof FormData}e("HttpContext",A);class z{constructor(e,t,s,r){let n;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,n=r):n=s,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params)),this.headers||(this.headers=new P),this.context||(this.context=new A),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const s=t.indexOf("?"),r=-1===s?"?":s<t.length-1?"&":"";this.urlWithParams=t+r+e}}else this.params=new O,this.urlWithParams=t}serializeBody(){return null===this.body?null:L(this.body)||M(this.body)||F(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof O?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();var e}detectContentTypeHeader(){return null===this.body||F(this.body)?null:M(this.body)?this.body.type||null:L(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof O?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,s=e.url||this.url,r=e.responseType||this.responseType,n=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,i=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,c=e.params||this.params;const u=e.context??this.context;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),a)),e.setParams&&(c=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),c)),new z(t,s,n,{params:c,headers:a,context:u,reportProgress:i,responseType:r,withCredentials:o})}}var U;e("HttpRequest",z),e("HttpEventType",U),function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(U||e("HttpEventType",U={}));class J{constructor(e,t=200,s="OK"){this.headers=e.headers||new P,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||s,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}e("HttpResponseBase",J);class q extends J{constructor(e={}){super(e),this.type=U.ResponseHeader}clone(e={}){return new q({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})}}e("HttpHeaderResponse",q);class B extends J{constructor(e={}){super(e),this.type=U.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new B({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})}}e("HttpResponse",B);class D extends J{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function V(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}e("HttpErrorResponse",D);class X{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof z)r=e;else{let n,o;n=s.headers instanceof P?s.headers:new P(s.headers),s.params&&(o=s.params instanceof O?s.params:new O({fromObject:s.params})),r=new z(e,t,void 0!==s.body?s.body:null,{headers:n,context:s.context,params:o,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const n=p(r).pipe(y((e=>this.handler.handle(e))));if(e instanceof z||"events"===s.observe)return n;const o=n.pipe(b((e=>e instanceof B)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(v((e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return o.pipe(v((e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return o.pipe(v((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(v((e=>e.body)))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new O).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,s={}){return this.request("PATCH",e,V(s,t))}post(e,t,s={}){return this.request("POST",e,V(s,t))}put(e,t,s={}){return this.request("PUT",e,V(s,t))}static{this.ɵfac=function(e){return new(e||X)(t.ɵɵinject(k))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:X,factory:X.ɵfac})}}function _(e,t){return t(e)}function K(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}e("HttpClient",X);const $=e("HTTP_INTERCEPTORS",new s("")),W=new s(""),G=new s("");function Z(){let e=null;return(t,s)=>{if(null===e){const t=o($,{optional:!0})??[];e=t.reduceRight(K,_)}return e(t,s)}}class Y extends k{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=Array.from(new Set([...this.injector.get(W),...this.injector.get(G,[])]));this.chain=e.reduceRight(((e,t)=>function(e,t,s){return(r,n)=>s.runInContext((()=>t(r,(t=>e(t,n)))))}(e,t,this.injector)),_)}return this.chain(e,(e=>this.backend.handle(e)))}static{this.ɵfac=function(e){return new(e||Y)(t.ɵɵinject(j),t.ɵɵinject(t.EnvironmentInjector))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:Y,factory:Y.ɵfac})}}e({ɵHttpInterceptingHandler:Y,ɵHttpInterceptorHandler:Y});let Q,ee=0;class te{}function se(){return"object"==typeof window?window:{}}class re{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ee++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");if(e.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new f((t=>{const s=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${s}$1`),n=this.document.createElement("script");n.src=r;let o=null,i=!1;this.callbackMap[s]=e=>{delete this.callbackMap[s],o=e,i=!0};const a=()=>{n.parentNode&&n.parentNode.removeChild(n),delete this.callbackMap[s]};return n.addEventListener("load",(e=>{this.resolvedPromise.then((()=>{a(),i?(t.next(new B({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new D({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))}))})),n.addEventListener("error",(e=>{a(),t.error(new D({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:U.Sent}),()=>{i||this.removeListeners(n),a()}}))}removeListeners(e){Q||(Q=this.document.implementation.createHTMLDocument()),Q.adoptNode(e)}static{this.ɵfac=function(e){return new(e||re)(t.ɵɵinject(te),t.ɵɵinject(E))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:re,factory:re.ɵfac})}}function ne(e,t){return"JSONP"===e.method?o(re).handle(e):t(e)}e("JsonpClientBackend",re);class oe{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ne(e,(e=>t.handle(e)))))}static{this.ɵfac=function(e){return new(e||oe)(t.ɵɵinject(t.EnvironmentInjector))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:oe,factory:oe.ɵfac})}}e("JsonpInterceptor",oe);const ie=/^\)\]\}',?\n/;class ae{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new r(-2800,!1);const t=function(){const e=()=>{};if("undefined"!=typeof Zone){const t=Zone.current,s=t.scheduleMacroTask("httpMacroTask",e,void 0,e,e);return()=>t.cancelTask(s)}return e}(),s=this.xhrFactory;return(s.ɵloadImpl?m(s.ɵloadImpl()):p(null)).pipe(w((()=>new f((r=>{const n=s.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach(((e,t)=>n.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const o=e.serializeBody();let i=null;const a=()=>{if(null!==i)return i;const t=n.statusText||"OK",s=new P(n.getAllResponseHeaders()),r=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new q({headers:s,status:n.status,statusText:t,url:r}),i},c=()=>{let{headers:t,status:s,statusText:o,url:i}=a(),c=null;204!==s&&(c=void 0===n.response?n.responseText:n.response),0===s&&(s=c?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(ie,"");try{c=""!==c?JSON.parse(c):null}catch(t){c=e,u&&(u=!1,c={error:t,text:c})}}u?(r.next(new B({body:c,headers:t,status:s,statusText:o,url:i||void 0})),r.complete()):r.error(new D({error:c,headers:t,status:s,statusText:o,url:i||void 0}))},u=e=>{const{url:s}=a(),o=new D({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});r.error(o),t()};let l=!1;const h=t=>{l||(r.next(a()),l=!0);let s={type:U.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(s.total=t.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),r.next(s)},d=e=>{let t={type:U.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),r.next(t)};n.addEventListener("load",c),n.addEventListener("error",u),n.addEventListener("timeout",u),n.addEventListener("abort",u),e.reportProgress&&(n.addEventListener("progress",h),null!==o&&n.upload&&n.upload.addEventListener("progress",d));const p=()=>t();n.addEventListener("loadend",p);try{n.send(o)}catch(e){u(e)}return r.next({type:U.Sent}),()=>{n.removeEventListener("loadend",p),n.removeEventListener("error",u),n.removeEventListener("abort",u),n.removeEventListener("load",c),n.removeEventListener("timeout",u),t(),e.reportProgress&&(n.removeEventListener("progress",h),null!==o&&n.upload&&n.upload.removeEventListener("progress",d)),n.readyState!==n.DONE&&n.abort()}})))))}static{this.ɵfac=function(e){return new(e||ae)(t.ɵɵinject(x.XhrFactory))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:ae,factory:ae.ɵfac})}}e("HttpXhrBackend",ae);const ce=new s("XSRF_ENABLED"),ue="XSRF-TOKEN",le=new s("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ue}),he="X-XSRF-TOKEN",de=new s("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>he});class pe{}e("HttpXsrfTokenExtractor",pe);class fe{constructor(e,t,s){this.doc=e,this.platform=t,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=C(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.ɵfac=function(e){return new(e||fe)(t.ɵɵinject(E),t.ɵɵinject(n),t.ɵɵinject(le))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:fe,factory:fe.ɵfac})}}function me(e,t){const s=e.url.toLowerCase();if(!o(ce)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const r=o(pe).getToken(),n=o(de);return null==r||e.headers.has(n)||(e=e.clone({headers:e.headers.set(n,r)})),t(e)}class ye{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>me(e,(e=>t.handle(e)))))}static{this.ɵfac=function(e){return new(e||ye)(t.ɵɵinject(t.EnvironmentInjector))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:ye,factory:ye.ɵfac})}}var be;function ve(e,t){return{ɵkind:e,ɵproviders:t}}function we(...e){const t=[X,ae,Y,{provide:k,useExisting:Y},{provide:j,useExisting:ae},{provide:W,useValue:me,multi:!0},{provide:ce,useValue:!0},{provide:pe,useClass:fe}];for(const s of e)t.push(...s.ɵproviders);return i(t)}e("HttpFeatureKind",be),function(e){e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent"}(be||e("HttpFeatureKind",be={}));const ge=new s("LEGACY_INTERCEPTOR_FN");function Te(){return ve(be.LegacyInterceptors,[{provide:ge,useFactory:Z},{provide:W,useExisting:ge,multi:!0}])}function Ee({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:le,useValue:e}),void 0!==t&&s.push({provide:de,useValue:t}),ve(be.CustomXsrfConfiguration,s)}function xe(){return ve(be.NoXsrfProtection,[{provide:ce,useValue:!1}])}function Ce(){return ve(be.JsonpSupport,[re,{provide:te,useFactory:se},{provide:W,useValue:ne,multi:!0}])}class ke{static disable(){return{ngModule:ke,providers:[xe().ɵproviders]}}static withOptions(e={}){return{ngModule:ke,providers:Ee(e).ɵproviders}}static{this.ɵfac=function(e){return new(e||ke)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:ke})}static{this.ɵinj=t.ɵɵdefineInjector({providers:[ye,{provide:$,useExisting:ye,multi:!0},{provide:pe,useClass:fe},Ee({cookieName:ue,headerName:he}).ɵproviders,{provide:ce,useValue:!0}]})}}e("HttpClientXsrfModule",ke);class je{static{this.ɵfac=function(e){return new(e||je)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:je})}static{this.ɵinj=t.ɵɵdefineInjector({providers:[we(Te())]})}}e("HttpClientModule",je);class Pe{static{this.ɵfac=function(e){return new(e||Pe)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:Pe})}static{this.ɵinj=t.ɵɵdefineInjector({providers:[Ce().ɵproviders]})}}e("HttpClientJsonpModule",Pe);const Ne=new s(""),Se=["GET","HEAD"];function Re(e,t){const{isCacheActive:s}=o(Ne);if(!s||!Se.includes(e.method))return t(e);const r=o(c),n=function(e){const{params:t,method:s,responseType:r,url:n}=e,o=t.keys().sort().map((e=>`${e}=${t.getAll(e)}`)).join("&"),i=function(e){let t=0;for(const s of e)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,t.toString()}(s+"."+r+"."+n+"?"+o);return d(i)}(e),i=r.get(n,null);if(i){let e=i.body;switch(i.responseType){case"arraybuffer":e=(new TextEncoder).encode(i.body).buffer;break;case"blob":e=new Blob([i.body])}return p(new B({body:e,headers:new P(i.headers),status:i.status,statusText:i.statusText,url:i.url}))}return t(e).pipe(T((t=>{t instanceof B&&r.set(n,{body:t.body,headers:He(t.headers),status:t.status,statusText:t.statusText,url:t.url||"",responseType:e.responseType})})))}function He(e){const t={};for(const s of e.keys()){const r=e.getAll(s);null!==r&&(t[s]=r)}return t}}}}));
/* esm-bundle - @angular/common/http@16.0.4 - Ivy - system format - es2022 - 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 */
System.register(["@angular/core","rxjs","rxjs/operators","@angular/common"],(function(e){"use strict";var t,s,r,n,o,i,a,c,u,h,l,d,p,f,m,y,b,v,w,g,T,E,x,C,k;return{setters:[function(e){t=e,e.Injectable,s=e.InjectionToken,r=e.inject,n=e["ɵInitialRenderPendingTasks"],e.Inject,o=e["ɵRuntimeError"],i=e.PLATFORM_ID,e.NgModule,a=e.makeEnvironmentProviders,c=e["ɵENABLED_SSR_FEATURES"],u=e.TransferState,h=e.APP_BOOTSTRAP_LISTENER,l=e.ApplicationRef,d=e.makeStateKey},function(e){p=e.of,f=e.Observable,m=e.from},function(e){y=e.concatMap,b=e.filter,v=e.map,w=e.finalize,g=e.switchMap,T=e.first,E=e.tap},function(e){x=e.DOCUMENT,C=e,k=e["ɵparseCookieValue"]}],execute:function(){e({provideHttpClient:ge,withInterceptors:function(e){return we(ve.Interceptors,e.map((e=>({provide:G,useValue:e,multi:!0}))))},withInterceptorsFromDi:Ee,withJsonpSupport:ke,withNoXsrfProtection:Ce,withRequestsMadeViaParent:function(){return we(ve.RequestsMadeViaParent,[{provide:P,useFactory:()=>{const e=r(j,{skipSelf:!0,optional:!0});return e}}])},withXsrfConfiguration:xe,ɵwithHttpTransferCache:function(){return[{provide:Se,useFactory:()=>(r(c).add("httpcache"),{isCacheActive:!0})},{provide:Y,useValue:He,multi:!0,deps:[u,Se]},{provide:h,multi:!0,useFactory:()=>{const e=r(l),t=r(Se);return()=>{e.isStable.pipe(T((e=>e))).toPromise().then((()=>{t.isCacheActive=!1}))}}}]}});class j{}e("HttpHandler",j);class P{}e("HttpBackend",P);class N{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach((e=>{const t=e.indexOf(":");if(t>0){const s=e.slice(0,t),r=s.toLowerCase(),n=e.slice(t+1).trim();this.maybeSetNormalizedName(s,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}}))}:()=>{this.headers=new Map,Object.entries(e).forEach((([e,t])=>{let s;if(s="string"==typeof t?[t]:"number"==typeof t?[t.toString()]:t.map((e=>e.toString())),s.length>0){const t=e.toLowerCase();this.headers.set(t,s),this.maybeSetNormalizedName(e,t)}}))}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof N?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((e=>this.applyUpdate(e))),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach((t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))}))}clone(e){const t=new N;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof N?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let s=e.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...s),this.headers.set(t,r);break;case"d":const n=e.value;if(n){let e=this.headers.get(t);if(!e)return;e=e.filter((e=>-1===n.indexOf(e))),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach((t=>e(this.normalizedNames.get(t),this.headers.get(t))))}}e("HttpHeaders",N);class S{encodeKey(e){return I(e)}encodeValue(e){return I(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}e("HttpUrlEncodingCodec",S);const R=/%(\d[a-f0-9])/gi,H={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function I(e){return encodeURIComponent(e).replace(R,((e,t)=>H[t]??e))}function O(e){return`${e}`}class A{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new S,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const s=new Map;e.length>0&&e.replace(/^\?/,"").split("&").forEach((e=>{const r=e.indexOf("="),[n,o]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],i=s.get(n)||[];i.push(o),s.set(n,i)}));return s}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach((t=>{const s=e.fromObject[t],r=Array.isArray(s)?s.map(O):[O(s)];this.map.set(t,r)}))):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach((s=>{const r=e[s];Array.isArray(r)?r.forEach((e=>{t.push({param:s,value:e,op:"a"})})):t.push({param:s,value:r,op:"a"})})),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map((e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map((e=>t+"="+this.encoder.encodeValue(e))).join("&")})).filter((e=>""!==e)).join("&")}clone(e){const t=new A({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((e=>this.map.set(e,this.cloneFrom.map.get(e)))),this.updates.forEach((e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(O(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const s=t.indexOf(O(e.value));-1!==s&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}})),this.cloneFrom=this.updates=null)}}e("HttpParams",A);e("HttpContextToken",class{constructor(e){this.defaultValue=e}});class L{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function F(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function z(e){return"undefined"!=typeof Blob&&e instanceof Blob}function M(e){return"undefined"!=typeof FormData&&e instanceof FormData}e("HttpContext",L);class U{constructor(e,t,s,r){let n;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,n=r):n=s,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params)),this.headers||(this.headers=new N),this.context||(this.context=new L),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const s=t.indexOf("?"),r=-1===s?"?":s<t.length-1?"&":"";this.urlWithParams=t+r+e}}else this.params=new A,this.urlWithParams=t}serializeBody(){return null===this.body?null:F(this.body)||z(this.body)||M(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof A?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString();var e}detectContentTypeHeader(){return null===this.body||M(this.body)?null:z(this.body)?this.body.type||null:F(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof A?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const t=e.method||this.method,s=e.url||this.url,r=e.responseType||this.responseType,n=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,i=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,c=e.params||this.params;const u=e.context??this.context;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),a)),e.setParams&&(c=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),c)),new U(t,s,n,{params:c,headers:a,context:u,reportProgress:i,responseType:r,withCredentials:o})}}var J;e("HttpRequest",U),e("HttpEventType",J),function(e){e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User"}(J||e("HttpEventType",J={}));class q{constructor(e,t=200,s="OK"){this.headers=e.headers||new N,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||s,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}e("HttpResponseBase",q);class B extends q{constructor(e={}){super(e),this.type=J.ResponseHeader}clone(e={}){return new B({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})}}e("HttpHeaderResponse",B);class D extends q{constructor(e={}){super(e),this.type=J.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new D({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})}}e("HttpResponse",D);class V extends q{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function X(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}e("HttpErrorResponse",V);class _{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof U)r=e;else{let n,o;n=s.headers instanceof N?s.headers:new N(s.headers),s.params&&(o=s.params instanceof A?s.params:new A({fromObject:s.params})),r=new U(e,t,void 0!==s.body?s.body:null,{headers:n,context:s.context,params:o,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const n=p(r).pipe(y((e=>this.handler.handle(e))));if(e instanceof U||"events"===s.observe)return n;const o=n.pipe(b((e=>e instanceof D)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(v((e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return o.pipe(v((e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return o.pipe(v((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(v((e=>e.body)))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new A).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,s={}){return this.request("PATCH",e,X(s,t))}post(e,t,s={}){return this.request("POST",e,X(s,t))}put(e,t,s={}){return this.request("PUT",e,X(s,t))}static{this.ɵfac=function(e){return new(e||_)(t.ɵɵinject(j))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:_,factory:_.ɵfac})}}function K(e,t){return t(e)}function $(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}e("HttpClient",_);const W=e("HTTP_INTERCEPTORS",new s("")),G=new s(""),Y=new s("");function Q(){let e=null;return(t,s)=>{if(null===e){const t=r(W,{optional:!0})??[];e=t.reduceRight($,K)}const o=r(n),i=o.add();return e(t,s).pipe(w((()=>o.remove(i))))}}class Z extends j{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=r(n)}handle(e){if(null===this.chain){const e=Array.from(new Set([...this.injector.get(G),...this.injector.get(Y,[])]));this.chain=e.reduceRight(((e,t)=>function(e,t,s){return(r,n)=>s.runInContext((()=>t(r,(t=>e(t,n)))))}(e,t,this.injector)),K)}const t=this.pendingTasks.add();return this.chain(e,(e=>this.backend.handle(e))).pipe(w((()=>this.pendingTasks.remove(t))))}static{this.ɵfac=function(e){return new(e||Z)(t.ɵɵinject(P),t.ɵɵinject(t.EnvironmentInjector))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:Z,factory:Z.ɵfac})}}e({ɵHttpInterceptingHandler:Z,ɵHttpInterceptorHandler:Z});let ee,te=0;class se{}function re(){return"object"==typeof window?window:{}}class ne{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+te++}handle(e){if("JSONP"!==e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==e.responseType)throw new Error("JSONP requests must use Json response type.");if(e.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new f((t=>{const s=this.nextCallback(),r=e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${s}$1`),n=this.document.createElement("script");n.src=r;let o=null,i=!1;this.callbackMap[s]=e=>{delete this.callbackMap[s],o=e,i=!0};const a=()=>{n.parentNode&&n.parentNode.removeChild(n),delete this.callbackMap[s]};return n.addEventListener("load",(e=>{this.resolvedPromise.then((()=>{a(),i?(t.next(new D({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new V({url:r,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))}))})),n.addEventListener("error",(e=>{a(),t.error(new V({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:J.Sent}),()=>{i||this.removeListeners(n),a()}}))}removeListeners(e){ee||(ee=this.document.implementation.createHTMLDocument()),ee.adoptNode(e)}static{this.ɵfac=function(e){return new(e||ne)(t.ɵɵinject(se),t.ɵɵinject(x))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:ne,factory:ne.ɵfac})}}function oe(e,t){return"JSONP"===e.method?r(ne).handle(e):t(e)}e("JsonpClientBackend",ne);class ie{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>oe(e,(e=>t.handle(e)))))}static{this.ɵfac=function(e){return new(e||ie)(t.ɵɵinject(t.EnvironmentInjector))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:ie,factory:ie.ɵfac})}}e("JsonpInterceptor",ie);const ae=/^\)\]\}',?\n/;class ce{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new o(-2800,!1);const t=this.xhrFactory;return(t.ɵloadImpl?m(t.ɵloadImpl()):p(null)).pipe(g((()=>new f((s=>{const r=t.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach(((e,t)=>r.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&r.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();r.responseType="json"!==t?t:"text"}const n=e.serializeBody();let o=null;const i=()=>{if(null!==o)return o;const t=r.statusText||"OK",s=new N(r.getAllResponseHeaders()),n=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new B({headers:s,status:r.status,statusText:t,url:n}),o},a=()=>{let{headers:t,status:n,statusText:o,url:a}=i(),c=null;204!==n&&(c=void 0===r.response?r.responseText:r.response),0===n&&(n=c?200:0);let u=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(ae,"");try{c=""!==c?JSON.parse(c):null}catch(t){c=e,u&&(u=!1,c={error:t,text:c})}}u?(s.next(new D({body:c,headers:t,status:n,statusText:o,url:a||void 0})),s.complete()):s.error(new V({error:c,headers:t,status:n,statusText:o,url:a||void 0}))},c=e=>{const{url:t}=i(),n=new V({error:e,status:r.status||0,statusText:r.statusText||"Unknown Error",url:t||void 0});s.error(n)};let u=!1;const h=t=>{u||(s.next(i()),u=!0);let n={type:J.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),"text"===e.responseType&&r.responseText&&(n.partialText=r.responseText),s.next(n)},l=e=>{let t={type:J.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),s.next(t)};return r.addEventListener("load",a),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",h),null!==n&&r.upload&&r.upload.addEventListener("progress",l)),r.send(n),s.next({type:J.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",a),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",h),null!==n&&r.upload&&r.upload.removeEventListener("progress",l)),r.readyState!==r.DONE&&r.abort()}})))))}static{this.ɵfac=function(e){return new(e||ce)(t.ɵɵinject(C.XhrFactory))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:ce,factory:ce.ɵfac})}}e("HttpXhrBackend",ce);const ue=new s("XSRF_ENABLED"),he="XSRF-TOKEN",le=new s("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>he}),de="X-XSRF-TOKEN",pe=new s("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>de});class fe{}e("HttpXsrfTokenExtractor",fe);class me{constructor(e,t,s){this.doc=e,this.platform=t,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=k(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.ɵfac=function(e){return new(e||me)(t.ɵɵinject(x),t.ɵɵinject(i),t.ɵɵinject(le))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:me,factory:me.ɵfac})}}function ye(e,t){const s=e.url.toLowerCase();if(!r(ue)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const n=r(fe).getToken(),o=r(pe);return null==n||e.headers.has(o)||(e=e.clone({headers:e.headers.set(o,n)})),t(e)}class be{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ye(e,(e=>t.handle(e)))))}static{this.ɵfac=function(e){return new(e||be)(t.ɵɵinject(t.EnvironmentInjector))}}static{this.ɵprov=t.ɵɵdefineInjectable({token:be,factory:be.ɵfac})}}var ve;function we(e,t){return{ɵkind:e,ɵproviders:t}}function ge(...e){const t=[_,ce,Z,{provide:j,useExisting:Z},{provide:P,useExisting:ce},{provide:G,useValue:ye,multi:!0},{provide:ue,useValue:!0},{provide:fe,useClass:me}];for(const s of e)t.push(...s.ɵproviders);return a(t)}e("HttpFeatureKind",ve),function(e){e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent"}(ve||e("HttpFeatureKind",ve={}));const Te=new s("LEGACY_INTERCEPTOR_FN");function Ee(){return we(ve.LegacyInterceptors,[{provide:Te,useFactory:Q},{provide:G,useExisting:Te,multi:!0}])}function xe({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:le,useValue:e}),void 0!==t&&s.push({provide:pe,useValue:t}),we(ve.CustomXsrfConfiguration,s)}function Ce(){return we(ve.NoXsrfProtection,[{provide:ue,useValue:!1}])}function ke(){return we(ve.JsonpSupport,[ne,{provide:se,useFactory:re},{provide:G,useValue:oe,multi:!0}])}class je{static disable(){return{ngModule:je,providers:[Ce().ɵproviders]}}static withOptions(e={}){return{ngModule:je,providers:xe(e).ɵproviders}}static{this.ɵfac=function(e){return new(e||je)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:je})}static{this.ɵinj=t.ɵɵdefineInjector({providers:[be,{provide:W,useExisting:be,multi:!0},{provide:fe,useClass:me},xe({cookieName:he,headerName:de}).ɵproviders,{provide:ue,useValue:!0}]})}}e("HttpClientXsrfModule",je);class Pe{static{this.ɵfac=function(e){return new(e||Pe)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:Pe})}static{this.ɵinj=t.ɵɵdefineInjector({providers:[ge(Ee())]})}}e("HttpClientModule",Pe);class Ne{static{this.ɵfac=function(e){return new(e||Ne)}}static{this.ɵmod=t.ɵɵdefineNgModule({type:Ne})}static{this.ɵinj=t.ɵɵdefineInjector({providers:[ke().ɵproviders]})}}e("HttpClientJsonpModule",Ne);const Se=new s(""),Re=["GET","HEAD"];function He(e,t){const{isCacheActive:s}=r(Se);if(!s||!Re.includes(e.method))return t(e);const n=r(u),o=function(e){const{params:t,method:s,responseType:r,url:n}=e,o=t.keys().sort().map((e=>`${e}=${t.getAll(e)}`)).join("&"),i=function(e){let t=0;for(const s of e)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,t.toString()}(s+"."+r+"."+n+"?"+o);return d(i)}(e),i=n.get(o,null);if(i){let e=i.body;switch(i.responseType){case"arraybuffer":e=(new TextEncoder).encode(i.body).buffer;break;case"blob":e=new Blob([i.body])}return p(new D({body:e,headers:new N(i.headers),status:i.status,statusText:i.statusText,url:i.url}))}return t(e).pipe(E((t=>{t instanceof D&&n.set(o,{body:t.body,headers:Ie(t.headers),status:t.status,statusText:t.statusText,url:t.url||"",responseType:e.responseType})})))}function Ie(e){const t={};for(const s of e.keys()){const r=e.getAll(s);null!==r&&(t[s]=r)}return t}}}}));
//# sourceMappingURL=angular-http.min.js.map

@@ -1,2 +0,2 @@

/* esm-bundle - @angular/common/upgrade@16.0.3 - Ivy - system format - es2022 - 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 */
/* esm-bundle - @angular/common/upgrade@16.0.4 - Ivy - system format - es2022 - 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 */
System.register(['@angular/core', 'rxjs', '@angular/common', '@angular/upgrade/static'], (function (exports) {

@@ -29,3 +29,3 @@ 'use strict';

/**
* @license Angular v16.0.3
* @license Angular v16.0.4
* (c) 2010-2022 Google LLC. https://angular.io/

@@ -32,0 +32,0 @@ * License: MIT

@@ -1,3 +0,3 @@

/* esm-bundle - @angular/common/upgrade@16.0.3 - Ivy - system format - es2022 - 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 */
/* esm-bundle - @angular/common/upgrade@16.0.4 - Ivy - system format - es2022 - 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 */
System.register(["@angular/core","rxjs","@angular/common","@angular/upgrade/static"],(function(t){"use strict";var e,r,s,i,a,h,o,n,c,l,$,p,u,d;return{setters:[function(t){e=t.InjectionToken,r=t.Inject,s=t.Optional,i=t,t.NgModule,a=t["ɵisPromise"]},function(t){h=t.ReplaySubject},function(t){o=t.Location,n=t.PlatformLocation,c=t.LocationStrategy,l=t.APP_BASE_HREF,$=t.CommonModule,p=t.HashLocationStrategy,u=t.PathLocationStrategy},function(t){d=t.UpgradeModule}],execute:function(){const g=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,f=/^\s*[\\/]{2,}/,S=/^\s*(javascript|mailto):/i,U={"http:":80,"https:":443,"ftp:":21};class w{constructor(t,e,r,s,i){this.location=e,this.platformLocation=r,this.urlCodec=s,this.locationStrategy=i,this.initializing=!0,this.updateBrowser=!1,this.$$absUrl="",this.$$url="",this.$$host="",this.$$replace=!1,this.$$path="",this.$$search="",this.$$hash="",this.$$changeListeners=[],this.cachedState=null,this.urlChanges=new h(1),this.lastBrowserUrl="",this.lastCachedState=null;const o=this.browserUrl();let n=this.urlCodec.parse(o);if("string"==typeof n)throw"Invalid URL";this.$$protocol=n.protocol,this.$$host=n.hostname,this.$$port=parseInt(n.port)||U[n.protocol]||null,this.$$parseLinkUrl(o,o),this.cacheState(),this.$$state=this.browserState(),this.location.onUrlChange(((t,e)=>{this.urlChanges.next({newUrl:t,newState:e})})),a(t)?t.then((t=>this.initialize(t))):this.initialize(t)}initialize(t){const e=t.get("$rootScope"),r=t.get("$rootElement");r.on("click",(t=>{if(t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let s=t.target;for(;s&&"a"!==s.nodeName.toLowerCase();)if(s===r[0]||!(s=s.parentNode))return;if(void 0===s.href)return;const i=s.href,a=s.getAttribute("href");S.test(i)||!i||s.getAttribute("target")||t.isDefaultPrevented()||this.$$parseLinkUrl(i,a)&&(t.preventDefault(),this.absUrl()!==this.browserUrl()&&e.$apply())})),this.urlChanges.subscribe((({newUrl:t,newState:r})=>{const s=this.absUrl(),i=this.$$state;this.$$parse(t),t=this.absUrl(),this.$$state=r;const a=e.$broadcast("$locationChangeStart",t,s,r,i).defaultPrevented;this.absUrl()===t&&(a?(this.$$parse(s),this.state(i),this.setBrowserUrlWithFallback(s,!1,i),this.$$notifyChangeListeners(this.url(),this.$$state,s,i)):(this.initializing=!1,e.$broadcast("$locationChangeSuccess",t,s,r,i),this.resetBrowserUpdate()),e.$$phase||e.$digest())})),e.$watch((()=>{if(this.initializing||this.updateBrowser){this.updateBrowser=!1;const t=this.browserUrl(),r=this.absUrl(),s=this.browserState();let i=this.$$replace;const a=!this.urlCodec.areEqual(t,r)||s!==this.$$state;(this.initializing||a)&&(this.initializing=!1,e.$evalAsync((()=>{const r=this.absUrl(),h=e.$broadcast("$locationChangeStart",r,t,this.$$state,s).defaultPrevented;this.absUrl()===r&&(h?(this.$$parse(t),this.$$state=s):(a&&(this.setBrowserUrlWithFallback(r,i,s===this.$$state?null:this.$$state),this.$$replace=!1),e.$broadcast("$locationChangeSuccess",r,t,this.$$state,s),a&&this.$$notifyChangeListeners(this.url(),this.$$state,t,s)))})))}this.$$replace=!1}))}resetBrowserUpdate(){this.$$replace=!1,this.$$state=this.browserState(),this.updateBrowser=!1,this.lastBrowserUrl=this.browserUrl()}browserUrl(t,e,r){if(void 0===r&&(r=null),t){let s=this.lastHistoryState===r;return t=this.urlCodec.parse(t).href,this.lastBrowserUrl===t&&s?this:(this.lastBrowserUrl=t,this.lastHistoryState=r,t=this.stripBaseUrl(this.getServerBase(),t)||t,e?this.locationStrategy.replaceState(r,"",t,""):this.locationStrategy.pushState(r,"",t,""),this.cacheState(),this)}return this.platformLocation.href}cacheState(){this.cachedState=this.platformLocation.getState(),void 0===this.cachedState&&(this.cachedState=null),function(t,e){if(t===e)return!0;if(!t||!e)return!1;try{return!(t.prototype!==e.prototype||Array.isArray(t)&&Array.isArray(e))&&JSON.stringify(t)===JSON.stringify(e)}catch(t){return!1}}(this.cachedState,this.lastCachedState)&&(this.cachedState=this.lastCachedState),this.lastCachedState=this.cachedState,this.lastHistoryState=this.cachedState}browserState(){return this.cachedState}stripBaseUrl(t,e){if(e.startsWith(t))return e.slice(t.length)}getServerBase(){const{protocol:t,hostname:e,port:r}=this.platformLocation;let s=`${t}//${e}${r?":"+r:""}${this.locationStrategy.getBaseHref()||"/"}`;return s.endsWith("/")?s:s+"/"}parseAppUrl(t){if(f.test(t))throw new Error(`Bad Path - URL cannot start with double slashes: ${t}`);let e="/"!==t.charAt(0);e&&(t="/"+t);let r=this.urlCodec.parse(t,this.getServerBase());if("string"==typeof r)throw new Error(`Bad URL - Cannot parse URL: ${t}`);let s=e&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;this.$$path=this.urlCodec.decodePath(s),this.$$search=this.urlCodec.decodeSearch(r.search),this.$$hash=this.urlCodec.decodeHash(r.hash),this.$$path&&"/"!==this.$$path.charAt(0)&&(this.$$path="/"+this.$$path)}onChange(t,e=(t=>{})){this.$$changeListeners.push([t,e])}$$notifyChangeListeners(t="",e,r="",s){this.$$changeListeners.forEach((([i,a])=>{try{i(t,e,r,s)}catch(t){a(t)}}))}$$parse(t){let e;if(e=t.startsWith("/")?t:this.stripBaseUrl(this.getServerBase(),t),void 0===e)throw new Error(`Invalid url "${t}", missing path prefix "${this.getServerBase()}".`);this.parseAppUrl(e),this.$$path||(this.$$path="/"),this.composeUrls()}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let r,s=this.stripBaseUrl(this.getServerBase(),t);return void 0!==s?r=this.getServerBase()+s:this.getServerBase()===t+"/"&&(r=this.getServerBase()),r&&this.$$parse(r),!!r}setBrowserUrlWithFallback(t,e,r){const s=this.url(),i=this.$$state;try{this.browserUrl(t,e,r),this.$$state=this.browserState()}catch(t){throw this.url(s),this.$$state=i,t}}composeUrls(){this.$$url=this.urlCodec.normalize(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.getServerBase()+this.$$url.slice(1),this.updateBrowser=!0}absUrl(){return this.$$absUrl}url(t){if("string"==typeof t){t.length||(t="/");const e=g.exec(t);return e?((e[1]||""===t)&&this.path(this.urlCodec.decodePath(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this):this}return this.$$url}protocol(){return this.$$protocol}host(){return this.$$host}port(){return this.$$port}path(t){return void 0===t?this.$$path:(t="/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t,this.$$path=t,this.composeUrls(),this)}search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if("string"==typeof t||"number"==typeof t)this.$$search=this.urlCodec.decodeSearch(t.toString());else{if("object"!=typeof t||null===t)throw new Error("LocationProvider.search(): First argument must be a string or an object.");t={...t};for(const e in t)null==t[e]&&delete t[e];this.$$search=t}break;default:if("string"==typeof t){const r=this.search();return null==e?(delete r[t],this.search(r)):(r[t]=e,this.search(r))}}return this.composeUrls(),this}hash(t){return void 0===t?this.$$hash:(this.$$hash=null!==t?t.toString():"",this.composeUrls(),this)}replace(){return this.$$replace=!0,this}state(t){return void 0===t?this.$$state:(this.$$state=t,this)}}t("$locationShim",w);class m{constructor(t,e,r,s,i){this.ngUpgrade=t,this.location=e,this.platformLocation=r,this.urlCodec=s,this.locationStrategy=i}$get(){return new w(this.ngUpgrade.$injector,this.location,this.platformLocation,this.urlCodec,this.locationStrategy)}hashPrefix(t){throw new Error("Configure LocationUpgrade through LocationUpgradeModule.config method.")}html5Mode(t){throw new Error("Configure LocationUpgrade through LocationUpgradeModule.config method.")}}t("$locationShimProvider",m);class y{}t("UrlCodec",y);class b{encodePath(t){const e=t.split("/");let r=e.length;for(;r--;)e[r]=B(e[r].replace(/%2F/g,"/"));return t=e.join("/"),((t&&"/"!==t[0]?"/":"")+t).replace(/\/index.html$/,"")}encodeSearch(t){return"string"==typeof t&&(t=v(t)),(t=function(t){const e=[];for(const r in t){let s=t[r];Array.isArray(s)?s.forEach((t=>{e.push(L(r,!0)+(!0===t?"":"="+L(t,!0)))})):e.push(L(r,!0)+(!0===s?"":"="+L(s,!0)))}return e.length?e.join("&"):""}(t))?"?"+t:""}encodeHash(t){return(t=B(t))?"#"+t:""}decodePath(t,e=!0){const r=t.split("/");let s=r.length;for(;s--;)r[s]=decodeURIComponent(r[s]),e&&(r[s]=r[s].replace(/\//g,"%2F"));return r.join("/")}decodeSearch(t){return v(t)}decodeHash(t){return"#"===(t=decodeURIComponent(t))[0]?t.substring(1):t}normalize(t,e,r,s){if(1===arguments.length){const e=this.parse(t,s);if("string"==typeof e)return e;const r=`${e.protocol}://${e.hostname}${e.port?":"+e.port:""}`;return this.normalize(this.decodePath(e.pathname),this.decodeSearch(e.search),this.decodeHash(e.hash),r)}{const i=this.encodePath(t),a=e&&this.encodeSearch(e)||"",h=r&&this.encodeHash(r)||"";let o=(s||"")+i;return o.length&&"/"===o[0]||(o="/"+o),o+a+h}}areEqual(t,e){return this.normalize(t)===this.normalize(e)}parse(t,e){try{const r=e?new URL(t,e):new URL(t);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}catch(r){throw new Error(`Invalid URL (${t}) with base (${e})`)}}}function C(t){try{return decodeURIComponent(t)}catch(t){return}}function v(t){const e={};return(t||"").split("&").forEach((t=>{let r,s,i;t&&(s=t=t.replace(/\+/g,"%20"),r=t.indexOf("="),-1!==r&&(s=t.substring(0,r),i=t.substring(r+1)),s=C(s),void 0!==s&&(i=void 0===i||C(i),e.hasOwnProperty(s)?Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]:e[s]=i))})),e}function B(t){return L(t,!0).replace(/%26/g,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function L(t,e=!1){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}t("AngularJSUrlCodec",b);const A=t("LOCATION_UPGRADE_CONFIGURATION",new e("LOCATION_UPGRADE_CONFIGURATION")),P=new e("APP_BASE_HREF_RESOLVED");class E{static config(t){return{ngModule:E,providers:[o,{provide:w,useFactory:F,deps:[d,o,n,y,c]},{provide:A,useValue:t||{}},{provide:y,useFactory:I,deps:[A]},{provide:P,useFactory:R,deps:[A,[new r(l),new s]]},{provide:c,useFactory:H,deps:[n,P,A]}]}}static{this.ɵfac=function(t){return new(t||E)}}static{this.ɵmod=i.ɵɵdefineNgModule({type:E})}static{this.ɵinj=i.ɵɵdefineInjector({imports:[$]})}}function R(t,e){return t&&null!=t.appBaseHref?t.appBaseHref:null!=e?e:""}function I(t){return new(t&&t.urlCodec||b)}function H(t,e,r={}){return r.useHash?new p(t,e):new u(t,e)}function F(t,e,r,s,i){return new m(t,e,r,s,i).$get()}t("LocationUpgradeModule",E)}}}));
//# sourceMappingURL=angular-upgrade.min.js.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc