@esm-bundle/angular__common
Advanced tools
Comparing version 15.0.3 to 15.0.4
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/common/http@15.0.3 - Ivy - es format - es2015 - 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/http@15.0.4 - Ivy - es format - es2015 - 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/common";import{DOCUMENT as t,ɵparseCookieValue as s,XhrFactory as r}from"@angular/common";import*as n from"@angular/core";import{Injectable as o,InjectionToken as a,Inject as i,PLATFORM_ID as u,NgModule as l,makeEnvironmentProviders as h,inject as c}from"@angular/core";import{of as d,Observable as p}from"rxjs";import{concatMap as m,filter as f,map as y}from"rxjs/operators";class v{}class b{}class g{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.keys(e).forEach((t=>{let s=e[t];const r=t.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(t,r))}))}: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 g?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 g;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof g?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 w{encodeKey(e){return x(e)}encodeValue(e){return x(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const E=/%(\d[a-f0-9])/gi,T={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function x(e){return encodeURIComponent(e).replace(E,((e,t)=>{var s;return null!==(s=T[t])&&void 0!==s?s:e}))}function N(e){return`${e}`}class j{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new w,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(N):[N(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 j({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(N(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(N(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 C{constructor(e){this.defaultValue=e}}class P{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 k(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function S(e){return"undefined"!=typeof Blob&&e instanceof Blob}function O(e){return"undefined"!=typeof FormData&&e instanceof FormData}class R{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 g),this.context||(this.context=new P),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 j,this.urlWithParams=t}serializeBody(){return null===this.body?null:k(this.body)||S(this.body)||O(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof j?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||O(this.body)?null:S(this.body)?this.body.type||null:k(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof j?"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={}){var t;const s=e.method||this.method,r=e.url||this.url,n=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,i=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let u=e.headers||this.headers,l=e.params||this.params;const h=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),u)),e.setParams&&(l=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),l)),new R(s,r,o,{params:l,headers:u,context:h,reportProgress:i,responseType:n,withCredentials:a})}}var I;!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"}(I||(I={}));class L{constructor(e,t=200,s="OK"){this.headers=e.headers||new g,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 A extends L{constructor(e={}){super(e),this.type=I.ResponseHeader}clone(e={}){return new A({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 F extends L{constructor(e={}){super(e),this.type=I.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new F({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 z extends L{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 H(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 U{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof R)r=e;else{let n,o;n=s.headers instanceof g?s.headers:new g(s.headers),s.params&&(o=s.params instanceof j?s.params:new j({fromObject:s.params})),r=new R(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=d(r).pipe(m((e=>this.handler.handle(e))));if(e instanceof R||"events"===s.observe)return n;const o=n.pipe(f((e=>e instanceof F)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(y((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(y((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(y((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(y((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 j).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,H(s,t))}post(e,t,s={}){return this.request("POST",e,H(s,t))}put(e,t,s={}){return this.request("PUT",e,H(s,t))}}function M(e,t){return t(e)}function q(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}U.ɵfac=function(e){return new(e||U)(n.ɵɵinject(v))},U.ɵprov=n.ɵɵdefineInjectable({token:U,factory:U.ɵfac});const J=new a("HTTP_INTERCEPTORS"),X=new a("HTTP_INTERCEPTOR_FNS");function K(){let e=null;return(t,s)=>{var r;if(null===e){const t=null!==(r=c(J,{optional:!0}))&&void 0!==r?r:[];e=t.reduceRight(q,M)}return e(t,s)}}class V extends v{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(X)));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)),M)}return this.chain(e,(e=>this.backend.handle(e)))}}V.ɵfac=function(e){return new(e||V)(n.ɵɵinject(b),n.ɵɵinject(n.EnvironmentInjector))},V.ɵprov=n.ɵɵdefineInjectable({token:V,factory:V.ɵfac});let D,_=0;class B{}function $(){return"object"==typeof window?window:{}}class W{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+_++}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 p((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 F({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new z({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 z({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:I.Sent}),()=>{a||this.removeListeners(n),i()}}))}removeListeners(e){D||(D=this.document.implementation.createHTMLDocument()),D.adoptNode(e)}}function G(e,t){return"JSONP"===e.method?c(W).handle(e):t(e)}W.ɵfac=function(e){return new(e||W)(n.ɵɵinject(B),n.ɵɵinject(t))},W.ɵprov=n.ɵɵdefineInjectable({token:W,factory:W.ɵfac});class Y{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>G(e,(e=>t.handle(e)))))}}Y.ɵfac=function(e){return new(e||Y)(n.ɵɵinject(n.EnvironmentInjector))},Y.ɵprov=n.ɵɵdefineInjectable({token:Y,factory:Y.ɵfac});const Q=/^\)\]\}',?\n/;class Z{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new p((t=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach(((e,t)=>s.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&s.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();s.responseType="json"!==t?t:"text"}const r=e.serializeBody();let n=null;const o=()=>{if(null!==n)return n;const t=s.statusText||"OK",r=new g(s.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||e.url;return n=new A({headers:r,status:s.status,statusText:t,url:o}),n},a=()=>{let{headers:r,status:n,statusText:a,url:i}=o(),u=null;204!==n&&(u=void 0===s.response?s.responseText:s.response),0===n&&(n=u?200:0);let l=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof u){const e=u;u=u.replace(Q,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=e,l&&(l=!1,u={error:t,text:u})}}l?(t.next(new F({body:u,headers:r,status:n,statusText:a,url:i||void 0})),t.complete()):t.error(new z({error:u,headers:r,status:n,statusText:a,url:i||void 0}))},i=e=>{const{url:r}=o(),n=new z({error:e,status:s.status||0,statusText:s.statusText||"Unknown Error",url:r||void 0});t.error(n)};let u=!1;const l=r=>{u||(t.next(o()),u=!0);let n={type:I.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(n.total=r.total),"text"===e.responseType&&s.responseText&&(n.partialText=s.responseText),t.next(n)},h=e=>{let s={type:I.UploadProgress,loaded:e.loaded};e.lengthComputable&&(s.total=e.total),t.next(s)};return s.addEventListener("load",a),s.addEventListener("error",i),s.addEventListener("timeout",i),s.addEventListener("abort",i),e.reportProgress&&(s.addEventListener("progress",l),null!==r&&s.upload&&s.upload.addEventListener("progress",h)),s.send(r),t.next({type:I.Sent}),()=>{s.removeEventListener("error",i),s.removeEventListener("abort",i),s.removeEventListener("load",a),s.removeEventListener("timeout",i),e.reportProgress&&(s.removeEventListener("progress",l),null!==r&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}}))}}Z.ɵfac=function(t){return new(t||Z)(n.ɵɵinject(e.XhrFactory))},Z.ɵprov=n.ɵɵdefineInjectable({token:Z,factory:Z.ɵfac});const ee=new a("XSRF_ENABLED"),te=new a("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),se=new a("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class re{}class ne{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=s(e,this.cookieName),this.lastCookieString=e),this.lastToken}}function oe(e,t){const s=e.url.toLowerCase();if(!c(ee)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const r=c(re).getToken(),n=c(se);return null==r||e.headers.has(n)||(e=e.clone({headers:e.headers.set(n,r)})),t(e)}ne.ɵfac=function(e){return new(e||ne)(n.ɵɵinject(t),n.ɵɵinject(u),n.ɵɵinject(te))},ne.ɵprov=n.ɵɵdefineInjectable({token:ne,factory:ne.ɵfac});class ae{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>oe(e,(e=>t.handle(e)))))}}var ie;function ue(e,t){return{ɵkind:e,ɵproviders:t}}function le(...e){const t=[U,Z,V,{provide:v,useExisting:V},{provide:b,useExisting:Z},{provide:X,useValue:oe,multi:!0},{provide:ee,useValue:!0},{provide:re,useClass:ne}];for(const s of e)t.push(...s.ɵproviders);return h(t)}function he(e){return ue(ie.Interceptors,e.map((e=>({provide:X,useValue:e,multi:!0}))))}ae.ɵfac=function(e){return new(e||ae)(n.ɵɵinject(n.EnvironmentInjector))},ae.ɵprov=n.ɵɵdefineInjectable({token:ae,factory:ae.ɵfac}),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"}(ie||(ie={}));const ce=new a("LEGACY_INTERCEPTOR_FN");function de(){return ue(ie.LegacyInterceptors,[{provide:ce,useFactory:K},{provide:X,useExisting:ce,multi:!0}])}function pe({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:te,useValue:e}),void 0!==t&&s.push({provide:se,useValue:t}),ue(ie.CustomXsrfConfiguration,s)}function me(){return ue(ie.NoXsrfProtection,[{provide:ee,useValue:!1}])}function fe(){return ue(ie.JsonpSupport,[W,{provide:B,useFactory:$},{provide:X,useValue:G,multi:!0}])}function ye(){return ue(ie.RequestsMadeViaParent,[{provide:b,useFactory:()=>{const e=c(v,{skipSelf:!0,optional:!0});return e}}])}class ve{static disable(){return{ngModule:ve,providers:[me().ɵproviders]}}static withOptions(e={}){return{ngModule:ve,providers:pe(e).ɵproviders}}}ve.ɵfac=function(e){return new(e||ve)},ve.ɵmod=n.ɵɵdefineNgModule({type:ve}),ve.ɵinj=n.ɵɵdefineInjector({providers:[ae,{provide:J,useExisting:ae,multi:!0},{provide:re,useClass:ne},pe({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"}).ɵproviders,{provide:ee,useValue:!0}]});class be{}be.ɵfac=function(e){return new(e||be)},be.ɵmod=n.ɵɵdefineNgModule({type:be}),be.ɵinj=n.ɵɵdefineInjector({providers:[le(de(),pe({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"}))]});class ge{}ge.ɵfac=function(e){return new(e||ge)},ge.ɵmod=n.ɵɵdefineNgModule({type:ge}),ge.ɵinj=n.ɵɵdefineInjector({providers:[fe().ɵproviders]});const we=r;export{J as HTTP_INTERCEPTORS,b as HttpBackend,U as HttpClient,ge as HttpClientJsonpModule,be as HttpClientModule,ve as HttpClientXsrfModule,P as HttpContext,C as HttpContextToken,z as HttpErrorResponse,I as HttpEventType,ie as HttpFeatureKind,v as HttpHandler,A as HttpHeaderResponse,g as HttpHeaders,j as HttpParams,R as HttpRequest,F as HttpResponse,L as HttpResponseBase,w as HttpUrlEncodingCodec,Z as HttpXhrBackend,re as HttpXsrfTokenExtractor,W as JsonpClientBackend,Y as JsonpInterceptor,we as XhrFactory,le as provideHttpClient,he as withInterceptors,de as withInterceptorsFromDi,fe as withJsonpSupport,me as withNoXsrfProtection,ye as withRequestsMadeViaParent,pe as withXsrfConfiguration,V as ɵHttpInterceptingHandler,V as ɵHttpInterceptorHandler}; | ||
//# sourceMappingURL=angular-http.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/common/upgrade@15.0.3 - Ivy - es format - es2015 - 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@15.0.4 - Ivy - es format - es2015 - 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 { ReplaySubject } from 'rxjs'; | ||
@@ -9,3 +9,3 @@ import { CommonModule, Location, PlatformLocation, LocationStrategy, APP_BASE_HREF, HashLocationStrategy, PathLocationStrategy } from '@angular/common'; | ||
/** | ||
* @license Angular v15.0.3 | ||
* @license Angular v15.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@15.0.3 - Ivy - es format - es2015 - 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@15.0.4 - Ivy - es format - es2015 - 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{ReplaySubject as t}from"rxjs";import{CommonModule as e,Location as r,PlatformLocation as s,LocationStrategy as i,APP_BASE_HREF as a,HashLocationStrategy as h,PathLocationStrategy as o}from"@angular/common";import*as n from"@angular/core";import{InjectionToken as c,NgModule as l,Inject as $,Optional as p}from"@angular/core";import{UpgradeModule as u}from"@angular/upgrade/static";const d=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,g=/^\s*[\\/]{2,}/,f=/^\s*(javascript|mailto):/i,w={"http:":80,"https:":443,"ftp:":21};class S{constructor(e,r,s,i,a){this.location=r,this.platformLocation=s,this.urlCodec=i,this.locationStrategy=a,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 t(1),this.lastBrowserUrl="",this.lastCachedState=null;const h=this.browserUrl();let o=this.urlCodec.parse(h);if("string"==typeof o)throw"Invalid URL";var n;this.$$protocol=o.protocol,this.$$host=o.hostname,this.$$port=parseInt(o.port)||w[o.protocol]||null,this.$$parseLinkUrl(h,h),this.cacheState(),this.$$state=this.browserState(),this.location.onUrlChange(((t,e)=>{this.urlChanges.next({newUrl:t,newState:e})})),(n=e)&&"function"==typeof n.then?e.then((t=>this.initialize(t))):this.initialize(e)}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");f.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(g.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=d.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=Object.assign({},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 U{constructor(t,e,r,s,i){this.ngUpgrade=t,this.location=e,this.platformLocation=r,this.urlCodec=s,this.locationStrategy=i}$get(){return new S(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 m{}class y{encodePath(t){const e=t.split("/");let r=e.length;for(;r--;)e[r]=v(e[r].replace(/%2F/g,"/"));return t=e.join("/"),((t&&"/"!==t[0]?"/":"")+t).replace(/\/index.html$/,"")}encodeSearch(t){return"string"==typeof t&&(t=C(t)),(t=function(t){const e=[];for(const r in t){let s=t[r];Array.isArray(s)?s.forEach((t=>{e.push(B(r,!0)+(!0===t?"":"="+B(t,!0)))})):e.push(B(r,!0)+(!0===s?"":"="+B(s,!0)))}return e.length?e.join("&"):""}(t))?"?"+t:""}encodeHash(t){return(t=v(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 C(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 b(t){try{return decodeURIComponent(t)}catch(t){return}}function C(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=b(s),void 0!==s&&(i=void 0===i||b(i),e.hasOwnProperty(s)?Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]:e[s]=i))})),e}function v(t){return B(t,!0).replace(/%26/g,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function B(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 L=new c("LOCATION_UPGRADE_CONFIGURATION"),A=new c("APP_BASE_HREF_RESOLVED");class E{static config(t){return{ngModule:E,providers:[r,{provide:S,useFactory:H,deps:[u,r,s,m,i]},{provide:L,useValue:t||{}},{provide:m,useFactory:R,deps:[L]},{provide:A,useFactory:P,deps:[L,[new $(a),new p]]},{provide:i,useFactory:z,deps:[s,A,L]}]}}}function P(t,e){return t&&null!=t.appBaseHref?t.appBaseHref:null!=e?e:""}function R(t){return new(t&&t.urlCodec||y)}function z(t,e,r={}){return r.useHash?new h(t,e):new o(t,e)}function H(t,e,r,s,i){return new U(t,e,r,s,i).$get()}E.ɵfac=function(t){return new(t||E)},E.ɵmod=n.ɵɵdefineNgModule({type:E}),E.ɵinj=n.ɵɵdefineInjector({imports:[e]});export{S as $locationShim,U as $locationShimProvider,y as AngularJSUrlCodec,L as LOCATION_UPGRADE_CONFIGURATION,E as LocationUpgradeModule,m as UrlCodec}; | ||
//# sourceMappingURL=angular-upgrade.min.js.map |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/common/http@15.0.3 - Ivy - es format - es2020 - 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/http@15.0.4 - Ivy - es format - es2020 - 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/common";import{DOCUMENT as t,ɵparseCookieValue as s,XhrFactory as r}from"@angular/common";import*as n from"@angular/core";import{Injectable as o,InjectionToken as a,Inject as i,PLATFORM_ID as u,NgModule as l,makeEnvironmentProviders as h,inject as c}from"@angular/core";import{of as d,Observable as p}from"rxjs";import{concatMap as m,filter as f,map as y}from"rxjs/operators";class b{}class v{}class g{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.keys(e).forEach((t=>{let s=e[t];const r=t.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(t,r))}))}: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 g?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 g;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof g?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 w{encodeKey(e){return x(e)}encodeValue(e){return x(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const E=/%(\d[a-f0-9])/gi,T={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function x(e){return encodeURIComponent(e).replace(E,((e,t)=>T[t]??e))}function N(e){return`${e}`}class j{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new w,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(N):[N(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 j({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(N(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(N(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 C{constructor(e){this.defaultValue=e}}class P{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 k(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function S(e){return"undefined"!=typeof Blob&&e instanceof Blob}function O(e){return"undefined"!=typeof FormData&&e instanceof FormData}class R{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 g),this.context||(this.context=new P),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 j,this.urlWithParams=t}serializeBody(){return null===this.body?null:k(this.body)||S(this.body)||O(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof j?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||O(this.body)?null:S(this.body)?this.body.type||null:k(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof j?"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,u=e.params||this.params;const l=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&&(u=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),u)),new R(t,s,n,{params:u,headers:i,context:l,reportProgress:a,responseType:r,withCredentials:o})}}var I;!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"}(I||(I={}));class L{constructor(e,t=200,s="OK"){this.headers=e.headers||new g,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 A extends L{constructor(e={}){super(e),this.type=I.ResponseHeader}clone(e={}){return new A({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 F extends L{constructor(e={}){super(e),this.type=I.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new F({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 z extends L{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 H(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 U{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof R)r=e;else{let n,o;n=s.headers instanceof g?s.headers:new g(s.headers),s.params&&(o=s.params instanceof j?s.params:new j({fromObject:s.params})),r=new R(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=d(r).pipe(m((e=>this.handler.handle(e))));if(e instanceof R||"events"===s.observe)return n;const o=n.pipe(f((e=>e instanceof F)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(y((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(y((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(y((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(y((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 j).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,H(s,t))}post(e,t,s={}){return this.request("POST",e,H(s,t))}put(e,t,s={}){return this.request("PUT",e,H(s,t))}}function M(e,t){return t(e)}function q(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}U.ɵfac=function(e){return new(e||U)(n.ɵɵinject(b))},U.ɵprov=n.ɵɵdefineInjectable({token:U,factory:U.ɵfac});const J=new a("HTTP_INTERCEPTORS"),X=new a("HTTP_INTERCEPTOR_FNS");function K(){let e=null;return(t,s)=>{if(null===e){const t=c(J,{optional:!0})??[];e=t.reduceRight(q,M)}return e(t,s)}}class V extends b{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(X)));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)),M)}return this.chain(e,(e=>this.backend.handle(e)))}}V.ɵfac=function(e){return new(e||V)(n.ɵɵinject(v),n.ɵɵinject(n.EnvironmentInjector))},V.ɵprov=n.ɵɵdefineInjectable({token:V,factory:V.ɵfac});let D,_=0;class B{}function $(){return"object"==typeof window?window:{}}class W{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+_++}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 p((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 F({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new z({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 z({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:I.Sent}),()=>{a||this.removeListeners(n),i()}}))}removeListeners(e){D||(D=this.document.implementation.createHTMLDocument()),D.adoptNode(e)}}function G(e,t){return"JSONP"===e.method?c(W).handle(e):t(e)}W.ɵfac=function(e){return new(e||W)(n.ɵɵinject(B),n.ɵɵinject(t))},W.ɵprov=n.ɵɵdefineInjectable({token:W,factory:W.ɵfac});class Y{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>G(e,(e=>t.handle(e)))))}}Y.ɵfac=function(e){return new(e||Y)(n.ɵɵinject(n.EnvironmentInjector))},Y.ɵprov=n.ɵɵdefineInjectable({token:Y,factory:Y.ɵfac});const Q=/^\)\]\}',?\n/;class Z{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new p((t=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach(((e,t)=>s.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&s.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();s.responseType="json"!==t?t:"text"}const r=e.serializeBody();let n=null;const o=()=>{if(null!==n)return n;const t=s.statusText||"OK",r=new g(s.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||e.url;return n=new A({headers:r,status:s.status,statusText:t,url:o}),n},a=()=>{let{headers:r,status:n,statusText:a,url:i}=o(),u=null;204!==n&&(u=void 0===s.response?s.responseText:s.response),0===n&&(n=u?200:0);let l=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof u){const e=u;u=u.replace(Q,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=e,l&&(l=!1,u={error:t,text:u})}}l?(t.next(new F({body:u,headers:r,status:n,statusText:a,url:i||void 0})),t.complete()):t.error(new z({error:u,headers:r,status:n,statusText:a,url:i||void 0}))},i=e=>{const{url:r}=o(),n=new z({error:e,status:s.status||0,statusText:s.statusText||"Unknown Error",url:r||void 0});t.error(n)};let u=!1;const l=r=>{u||(t.next(o()),u=!0);let n={type:I.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(n.total=r.total),"text"===e.responseType&&s.responseText&&(n.partialText=s.responseText),t.next(n)},h=e=>{let s={type:I.UploadProgress,loaded:e.loaded};e.lengthComputable&&(s.total=e.total),t.next(s)};return s.addEventListener("load",a),s.addEventListener("error",i),s.addEventListener("timeout",i),s.addEventListener("abort",i),e.reportProgress&&(s.addEventListener("progress",l),null!==r&&s.upload&&s.upload.addEventListener("progress",h)),s.send(r),t.next({type:I.Sent}),()=>{s.removeEventListener("error",i),s.removeEventListener("abort",i),s.removeEventListener("load",a),s.removeEventListener("timeout",i),e.reportProgress&&(s.removeEventListener("progress",l),null!==r&&s.upload&&s.upload.removeEventListener("progress",h)),s.readyState!==s.DONE&&s.abort()}}))}}Z.ɵfac=function(t){return new(t||Z)(n.ɵɵinject(e.XhrFactory))},Z.ɵprov=n.ɵɵdefineInjectable({token:Z,factory:Z.ɵfac});const ee=new a("XSRF_ENABLED"),te=new a("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),se=new a("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class re{}class ne{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=s(e,this.cookieName),this.lastCookieString=e),this.lastToken}}function oe(e,t){const s=e.url.toLowerCase();if(!c(ee)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const r=c(re).getToken(),n=c(se);return null==r||e.headers.has(n)||(e=e.clone({headers:e.headers.set(n,r)})),t(e)}ne.ɵfac=function(e){return new(e||ne)(n.ɵɵinject(t),n.ɵɵinject(u),n.ɵɵinject(te))},ne.ɵprov=n.ɵɵdefineInjectable({token:ne,factory:ne.ɵfac});class ae{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>oe(e,(e=>t.handle(e)))))}}var ie;function ue(e,t){return{ɵkind:e,ɵproviders:t}}function le(...e){const t=[U,Z,V,{provide:b,useExisting:V},{provide:v,useExisting:Z},{provide:X,useValue:oe,multi:!0},{provide:ee,useValue:!0},{provide:re,useClass:ne}];for(const s of e)t.push(...s.ɵproviders);return h(t)}function he(e){return ue(ie.Interceptors,e.map((e=>({provide:X,useValue:e,multi:!0}))))}ae.ɵfac=function(e){return new(e||ae)(n.ɵɵinject(n.EnvironmentInjector))},ae.ɵprov=n.ɵɵdefineInjectable({token:ae,factory:ae.ɵfac}),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"}(ie||(ie={}));const ce=new a("LEGACY_INTERCEPTOR_FN");function de(){return ue(ie.LegacyInterceptors,[{provide:ce,useFactory:K},{provide:X,useExisting:ce,multi:!0}])}function pe({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:te,useValue:e}),void 0!==t&&s.push({provide:se,useValue:t}),ue(ie.CustomXsrfConfiguration,s)}function me(){return ue(ie.NoXsrfProtection,[{provide:ee,useValue:!1}])}function fe(){return ue(ie.JsonpSupport,[W,{provide:B,useFactory:$},{provide:X,useValue:G,multi:!0}])}function ye(){return ue(ie.RequestsMadeViaParent,[{provide:v,useFactory:()=>{const e=c(b,{skipSelf:!0,optional:!0});return e}}])}class be{static disable(){return{ngModule:be,providers:[me().ɵproviders]}}static withOptions(e={}){return{ngModule:be,providers:pe(e).ɵproviders}}}be.ɵfac=function(e){return new(e||be)},be.ɵmod=n.ɵɵdefineNgModule({type:be}),be.ɵinj=n.ɵɵdefineInjector({providers:[ae,{provide:J,useExisting:ae,multi:!0},{provide:re,useClass:ne},pe({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"}).ɵproviders,{provide:ee,useValue:!0}]});class ve{}ve.ɵfac=function(e){return new(e||ve)},ve.ɵmod=n.ɵɵdefineNgModule({type:ve}),ve.ɵinj=n.ɵɵdefineInjector({providers:[le(de(),pe({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"}))]});class ge{}ge.ɵfac=function(e){return new(e||ge)},ge.ɵmod=n.ɵɵdefineNgModule({type:ge}),ge.ɵinj=n.ɵɵdefineInjector({providers:[fe().ɵproviders]});const we=r;export{J as HTTP_INTERCEPTORS,v as HttpBackend,U as HttpClient,ge as HttpClientJsonpModule,ve as HttpClientModule,be as HttpClientXsrfModule,P as HttpContext,C as HttpContextToken,z as HttpErrorResponse,I as HttpEventType,ie as HttpFeatureKind,b as HttpHandler,A as HttpHeaderResponse,g as HttpHeaders,j as HttpParams,R as HttpRequest,F as HttpResponse,L as HttpResponseBase,w as HttpUrlEncodingCodec,Z as HttpXhrBackend,re as HttpXsrfTokenExtractor,W as JsonpClientBackend,Y as JsonpInterceptor,we as XhrFactory,le as provideHttpClient,he as withInterceptors,de as withInterceptorsFromDi,fe as withJsonpSupport,me as withNoXsrfProtection,ye as withRequestsMadeViaParent,pe as withXsrfConfiguration,V as ɵHttpInterceptingHandler,V as ɵHttpInterceptorHandler}; | ||
//# sourceMappingURL=angular-http.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/common/upgrade@15.0.3 - Ivy - es format - es2020 - 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@15.0.4 - Ivy - es format - es2020 - 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 { ReplaySubject } from 'rxjs'; | ||
@@ -9,3 +9,3 @@ import { CommonModule, Location, PlatformLocation, LocationStrategy, APP_BASE_HREF, HashLocationStrategy, PathLocationStrategy } from '@angular/common'; | ||
/** | ||
* @license Angular v15.0.3 | ||
* @license Angular v15.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@15.0.3 - Ivy - es format - es2020 - 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@15.0.4 - Ivy - es format - es2020 - 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{ReplaySubject as t}from"rxjs";import{CommonModule as e,Location as r,PlatformLocation as s,LocationStrategy as i,APP_BASE_HREF as a,HashLocationStrategy as h,PathLocationStrategy as o}from"@angular/common";import*as n from"@angular/core";import{InjectionToken as c,NgModule as l,Inject as $,Optional as p}from"@angular/core";import{UpgradeModule as u}from"@angular/upgrade/static";const d=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,g=/^\s*[\\/]{2,}/,f=/^\s*(javascript|mailto):/i,w={"http:":80,"https:":443,"ftp:":21};class S{constructor(e,r,s,i,a){this.location=r,this.platformLocation=s,this.urlCodec=i,this.locationStrategy=a,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 t(1),this.lastBrowserUrl="",this.lastCachedState=null;const h=this.browserUrl();let o=this.urlCodec.parse(h);if("string"==typeof o)throw"Invalid URL";var n;this.$$protocol=o.protocol,this.$$host=o.hostname,this.$$port=parseInt(o.port)||w[o.protocol]||null,this.$$parseLinkUrl(h,h),this.cacheState(),this.$$state=this.browserState(),this.location.onUrlChange(((t,e)=>{this.urlChanges.next({newUrl:t,newState:e})})),(n=e)&&"function"==typeof n.then?e.then((t=>this.initialize(t))):this.initialize(e)}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");f.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(g.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=d.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 U{constructor(t,e,r,s,i){this.ngUpgrade=t,this.location=e,this.platformLocation=r,this.urlCodec=s,this.locationStrategy=i}$get(){return new S(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 m{}class y{encodePath(t){const e=t.split("/");let r=e.length;for(;r--;)e[r]=v(e[r].replace(/%2F/g,"/"));return t=e.join("/"),((t&&"/"!==t[0]?"/":"")+t).replace(/\/index.html$/,"")}encodeSearch(t){return"string"==typeof t&&(t=C(t)),(t=function(t){const e=[];for(const r in t){let s=t[r];Array.isArray(s)?s.forEach((t=>{e.push(B(r,!0)+(!0===t?"":"="+B(t,!0)))})):e.push(B(r,!0)+(!0===s?"":"="+B(s,!0)))}return e.length?e.join("&"):""}(t))?"?"+t:""}encodeHash(t){return(t=v(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 C(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 b(t){try{return decodeURIComponent(t)}catch(t){return}}function C(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=b(s),void 0!==s&&(i=void 0===i||b(i),e.hasOwnProperty(s)?Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]:e[s]=i))})),e}function v(t){return B(t,!0).replace(/%26/g,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function B(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 L=new c("LOCATION_UPGRADE_CONFIGURATION"),A=new c("APP_BASE_HREF_RESOLVED");class E{static config(t){return{ngModule:E,providers:[r,{provide:S,useFactory:H,deps:[u,r,s,m,i]},{provide:L,useValue:t||{}},{provide:m,useFactory:R,deps:[L]},{provide:A,useFactory:P,deps:[L,[new $(a),new p]]},{provide:i,useFactory:z,deps:[s,A,L]}]}}}function P(t,e){return t&&null!=t.appBaseHref?t.appBaseHref:null!=e?e:""}function R(t){return new(t&&t.urlCodec||y)}function z(t,e,r={}){return r.useHash?new h(t,e):new o(t,e)}function H(t,e,r,s,i){return new U(t,e,r,s,i).$get()}E.ɵfac=function(t){return new(t||E)},E.ɵmod=n.ɵɵdefineNgModule({type:E}),E.ɵinj=n.ɵɵdefineInjector({imports:[e]});export{S as $locationShim,U as $locationShimProvider,y as AngularJSUrlCodec,L as LOCATION_UPGRADE_CONFIGURATION,E as LocationUpgradeModule,m as UrlCodec}; | ||
//# sourceMappingURL=angular-upgrade.min.js.map |
{ | ||
"name": "@esm-bundle/angular__common", | ||
"version": "15.0.3", | ||
"version": "15.0.4", | ||
"description": "Repo to test esm-bundle's automatic publishing", | ||
@@ -51,5 +51,5 @@ "exports": { | ||
"devDependencies": { | ||
"@angular/common": "15.0.3", | ||
"@angular/compiler": "15.0.3", | ||
"@angular/compiler-cli": "15.0.3", | ||
"@angular/common": "15.0.4", | ||
"@angular/compiler": "15.0.4", | ||
"@angular/compiler-cli": "15.0.4", | ||
"@angular/core": "13.3.0", | ||
@@ -72,4 +72,4 @@ "@rollup/plugin-babel": "6.0.3", | ||
"rxjs": "7.6.0", | ||
"typescript": "4.9.3" | ||
"typescript": "4.9.4" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/common/http@15.0.3 - Ivy - system format - es2015 - 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/http@15.0.4 - Ivy - system format - es2015 - 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/common","@angular/core","rxjs","rxjs/operators"],(function(e){"use strict";var t,s,r,n,o,a,i,u,l,c,d,h,p,f;return{setters:[function(e){t=e.DOCUMENT,s=e,r=e["ɵparseCookieValue"],n=e.XhrFactory},function(e){o=e,e.Injectable,a=e.InjectionToken,e.Inject,i=e.PLATFORM_ID,e.NgModule,u=e.makeEnvironmentProviders,l=e.inject},function(e){c=e.of,d=e.Observable},function(e){h=e.concatMap,p=e.filter,f=e.map}],execute:function(){e({provideHttpClient:ue,withInterceptors:function(e){return ie(ae.Interceptors,e.map((e=>({provide:U,useValue:e,multi:!0}))))},withInterceptorsFromDi:ce,withJsonpSupport:pe,withNoXsrfProtection:he,withRequestsMadeViaParent:function(){return ie(ae.RequestsMadeViaParent,[{provide:y,useFactory:()=>{const e=l(m,{skipSelf:!0,optional:!0});return e}}])},withXsrfConfiguration:de});class m{}e("HttpHandler",m);class y{}e("HttpBackend",y);class v{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.keys(e).forEach((t=>{let s=e[t];const r=t.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(t,r))}))}: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 v?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 v;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof v?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",v);class b{encodeKey(e){return E(e)}encodeValue(e){return E(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}e("HttpUrlEncodingCodec",b);const w=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E(e){return encodeURIComponent(e).replace(w,((e,t)=>{var s;return null!==(s=g[t])&&void 0!==s?s:e}))}function T(e){return`${e}`}class C{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new b,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(T):[T(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 C({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(T(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(T(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",C);e("HttpContextToken",class{constructor(e){this.defaultValue=e}});class x{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 P(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function j(e){return"undefined"!=typeof Blob&&e instanceof Blob}function N(e){return"undefined"!=typeof FormData&&e instanceof FormData}e("HttpContext",x);class k{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 v),this.context||(this.context=new x),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 C,this.urlWithParams=t}serializeBody(){return null===this.body?null:P(this.body)||j(this.body)||N(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof C?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||N(this.body)?null:j(this.body)?this.body.type||null:P(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof C?"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={}){var t;const s=e.method||this.method,r=e.url||this.url,n=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,i=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let u=e.headers||this.headers,l=e.params||this.params;const c=null!==(t=e.context)&&void 0!==t?t:this.context;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(((t,s)=>t.set(s,e.setHeaders[s])),u)),e.setParams&&(l=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),l)),new k(s,r,o,{params:l,headers:u,context:c,reportProgress:i,responseType:n,withCredentials:a})}}var H;e("HttpRequest",k),e("HttpEventType",H),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"}(H||e("HttpEventType",H={}));class S{constructor(e,t=200,s="OK"){this.headers=e.headers||new v,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",S);class R extends S{constructor(e={}){super(e),this.type=H.ResponseHeader}clone(e={}){return new R({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}e("HttpHeaderResponse",R);class I extends S{constructor(e={}){super(e),this.type=H.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new I({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",I);class O extends S{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 L(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",O);class A{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof k)r=e;else{let n,o;n=s.headers instanceof v?s.headers:new v(s.headers),s.params&&(o=s.params instanceof C?s.params:new C({fromObject:s.params})),r=new k(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=c(r).pipe(h((e=>this.handler.handle(e))));if(e instanceof k||"events"===s.observe)return n;const o=n.pipe(p((e=>e instanceof I)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(f((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(f((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(f((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(f((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 C).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,L(s,t))}post(e,t,s={}){return this.request("POST",e,L(s,t))}put(e,t,s={}){return this.request("PUT",e,L(s,t))}}function F(e,t){return t(e)}function z(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}e("HttpClient",A),A.ɵfac=function(e){return new(e||A)(o.ɵɵinject(m))},A.ɵprov=o.ɵɵdefineInjectable({token:A,factory:A.ɵfac});const M=e("HTTP_INTERCEPTORS",new a("HTTP_INTERCEPTORS")),U=new a("HTTP_INTERCEPTOR_FNS");function J(){let e=null;return(t,s)=>{var r;if(null===e){const t=null!==(r=l(M,{optional:!0}))&&void 0!==r?r:[];e=t.reduceRight(z,F)}return e(t,s)}}class q extends m{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(U)));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)),F)}return this.chain(e,(e=>this.backend.handle(e)))}}e({ɵHttpInterceptingHandler:q,ɵHttpInterceptorHandler:q}),q.ɵfac=function(e){return new(e||q)(o.ɵɵinject(y),o.ɵɵinject(o.EnvironmentInjector))},q.ɵprov=o.ɵɵdefineInjectable({token:q,factory:q.ɵfac});let X,V=0;class B{}function D(){return"object"==typeof window?window:{}}class _{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+V++}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 d((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 I({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new O({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 O({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:H.Sent}),()=>{a||this.removeListeners(n),i()}}))}removeListeners(e){X||(X=this.document.implementation.createHTMLDocument()),X.adoptNode(e)}}function K(e,t){return"JSONP"===e.method?l(_).handle(e):t(e)}e("JsonpClientBackend",_),_.ɵfac=function(e){return new(e||_)(o.ɵɵinject(B),o.ɵɵinject(t))},_.ɵprov=o.ɵɵdefineInjectable({token:_,factory:_.ɵfac});class ${constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>K(e,(e=>t.handle(e)))))}}e("JsonpInterceptor",$),$.ɵfac=function(e){return new(e||$)(o.ɵɵinject(o.EnvironmentInjector))},$.ɵprov=o.ɵɵdefineInjectable({token:$,factory:$.ɵfac});const W=/^\)\]\}',?\n/;class G{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new d((t=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach(((e,t)=>s.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&s.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();s.responseType="json"!==t?t:"text"}const r=e.serializeBody();let n=null;const o=()=>{if(null!==n)return n;const t=s.statusText||"OK",r=new v(s.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||e.url;return n=new R({headers:r,status:s.status,statusText:t,url:o}),n},a=()=>{let{headers:r,status:n,statusText:a,url:i}=o(),u=null;204!==n&&(u=void 0===s.response?s.responseText:s.response),0===n&&(n=u?200:0);let l=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof u){const e=u;u=u.replace(W,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=e,l&&(l=!1,u={error:t,text:u})}}l?(t.next(new I({body:u,headers:r,status:n,statusText:a,url:i||void 0})),t.complete()):t.error(new O({error:u,headers:r,status:n,statusText:a,url:i||void 0}))},i=e=>{const{url:r}=o(),n=new O({error:e,status:s.status||0,statusText:s.statusText||"Unknown Error",url:r||void 0});t.error(n)};let u=!1;const l=r=>{u||(t.next(o()),u=!0);let n={type:H.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(n.total=r.total),"text"===e.responseType&&s.responseText&&(n.partialText=s.responseText),t.next(n)},c=e=>{let s={type:H.UploadProgress,loaded:e.loaded};e.lengthComputable&&(s.total=e.total),t.next(s)};return s.addEventListener("load",a),s.addEventListener("error",i),s.addEventListener("timeout",i),s.addEventListener("abort",i),e.reportProgress&&(s.addEventListener("progress",l),null!==r&&s.upload&&s.upload.addEventListener("progress",c)),s.send(r),t.next({type:H.Sent}),()=>{s.removeEventListener("error",i),s.removeEventListener("abort",i),s.removeEventListener("load",a),s.removeEventListener("timeout",i),e.reportProgress&&(s.removeEventListener("progress",l),null!==r&&s.upload&&s.upload.removeEventListener("progress",c)),s.readyState!==s.DONE&&s.abort()}}))}}e("HttpXhrBackend",G),G.ɵfac=function(e){return new(e||G)(o.ɵɵinject(s.XhrFactory))},G.ɵprov=o.ɵɵdefineInjectable({token:G,factory:G.ɵfac});const Y=new a("XSRF_ENABLED"),Q="XSRF-TOKEN",Z=new a("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>Q}),ee="X-XSRF-TOKEN",te=new a("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>ee});class se{}e("HttpXsrfTokenExtractor",se);class re{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=r(e,this.cookieName),this.lastCookieString=e),this.lastToken}}function ne(e,t){const s=e.url.toLowerCase();if(!l(Y)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const r=l(se).getToken(),n=l(te);return null==r||e.headers.has(n)||(e=e.clone({headers:e.headers.set(n,r)})),t(e)}re.ɵfac=function(e){return new(e||re)(o.ɵɵinject(t),o.ɵɵinject(i),o.ɵɵinject(Z))},re.ɵprov=o.ɵɵdefineInjectable({token:re,factory:re.ɵfac});class oe{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ne(e,(e=>t.handle(e)))))}}var ae;function ie(e,t){return{ɵkind:e,ɵproviders:t}}function ue(...e){const t=[A,G,q,{provide:m,useExisting:q},{provide:y,useExisting:G},{provide:U,useValue:ne,multi:!0},{provide:Y,useValue:!0},{provide:se,useClass:re}];for(const s of e)t.push(...s.ɵproviders);return u(t)}oe.ɵfac=function(e){return new(e||oe)(o.ɵɵinject(o.EnvironmentInjector))},oe.ɵprov=o.ɵɵdefineInjectable({token:oe,factory:oe.ɵfac}),e("HttpFeatureKind",ae),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"}(ae||e("HttpFeatureKind",ae={}));const le=new a("LEGACY_INTERCEPTOR_FN");function ce(){return ie(ae.LegacyInterceptors,[{provide:le,useFactory:J},{provide:U,useExisting:le,multi:!0}])}function de({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:Z,useValue:e}),void 0!==t&&s.push({provide:te,useValue:t}),ie(ae.CustomXsrfConfiguration,s)}function he(){return ie(ae.NoXsrfProtection,[{provide:Y,useValue:!1}])}function pe(){return ie(ae.JsonpSupport,[_,{provide:B,useFactory:D},{provide:U,useValue:K,multi:!0}])}class fe{static disable(){return{ngModule:fe,providers:[he().ɵproviders]}}static withOptions(e={}){return{ngModule:fe,providers:de(e).ɵproviders}}}e("HttpClientXsrfModule",fe),fe.ɵfac=function(e){return new(e||fe)},fe.ɵmod=o.ɵɵdefineNgModule({type:fe}),fe.ɵinj=o.ɵɵdefineInjector({providers:[oe,{provide:M,useExisting:oe,multi:!0},{provide:se,useClass:re},de({cookieName:Q,headerName:ee}).ɵproviders,{provide:Y,useValue:!0}]});class me{}e("HttpClientModule",me),me.ɵfac=function(e){return new(e||me)},me.ɵmod=o.ɵɵdefineNgModule({type:me}),me.ɵinj=o.ɵɵdefineInjector({providers:[ue(ce(),de({cookieName:Q,headerName:ee}))]});class ye{}e("HttpClientJsonpModule",ye),ye.ɵfac=function(e){return new(e||ye)},ye.ɵmod=o.ɵɵdefineNgModule({type:ye}),ye.ɵinj=o.ɵɵdefineInjector({providers:[pe().ɵproviders]});e("XhrFactory",n)}}})); | ||
//# sourceMappingURL=angular-http.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/common/upgrade@15.0.3 - Ivy - system format - es2015 - 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@15.0.4 - Ivy - system format - es2015 - 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(['rxjs', '@angular/common', '@angular/core', '@angular/upgrade/static'], (function (exports) { | ||
@@ -28,3 +28,3 @@ 'use strict'; | ||
/** | ||
* @license Angular v15.0.3 | ||
* @license Angular v15.0.4 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -31,0 +31,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/common/upgrade@15.0.3 - Ivy - system format - es2015 - 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@15.0.4 - Ivy - system format - es2015 - 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(["rxjs","@angular/common","@angular/core","@angular/upgrade/static"],(function(t){"use strict";var e,r,s,i,a,h,o,n,c,l,$,p,u;return{setters:[function(t){e=t.ReplaySubject},function(t){r=t.CommonModule,s=t.Location,i=t.PlatformLocation,a=t.LocationStrategy,h=t.APP_BASE_HREF,o=t.HashLocationStrategy,n=t.PathLocationStrategy},function(t){c=t.InjectionToken,l=t,t.NgModule,$=t.Inject,p=t.Optional},function(t){u=t.UpgradeModule}],execute:function(){const d=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,g=/^\s*[\\/]{2,}/,f=/^\s*(javascript|mailto):/i,S={"http:":80,"https:":443,"ftp:":21};class U{constructor(t,r,s,i,a){this.location=r,this.platformLocation=s,this.urlCodec=i,this.locationStrategy=a,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 e(1),this.lastBrowserUrl="",this.lastCachedState=null;const h=this.browserUrl();let o=this.urlCodec.parse(h);if("string"==typeof o)throw"Invalid URL";var n;this.$$protocol=o.protocol,this.$$host=o.hostname,this.$$port=parseInt(o.port)||S[o.protocol]||null,this.$$parseLinkUrl(h,h),this.cacheState(),this.$$state=this.browserState(),this.location.onUrlChange(((t,e)=>{this.urlChanges.next({newUrl:t,newState:e})})),(n=t)&&"function"==typeof n.then?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");f.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(g.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=d.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=Object.assign({},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",U);class w{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.")}}t("$locationShimProvider",w);class m{}t("UrlCodec",m);class y{encodePath(t){const e=t.split("/");let r=e.length;for(;r--;)e[r]=v(e[r].replace(/%2F/g,"/"));return t=e.join("/"),((t&&"/"!==t[0]?"/":"")+t).replace(/\/index.html$/,"")}encodeSearch(t){return"string"==typeof t&&(t=C(t)),(t=function(t){const e=[];for(const r in t){let s=t[r];Array.isArray(s)?s.forEach((t=>{e.push(B(r,!0)+(!0===t?"":"="+B(t,!0)))})):e.push(B(r,!0)+(!0===s?"":"="+B(s,!0)))}return e.length?e.join("&"):""}(t))?"?"+t:""}encodeHash(t){return(t=v(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 C(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 b(t){try{return decodeURIComponent(t)}catch(t){return}}function C(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=b(s),void 0!==s&&(i=void 0===i||b(i),e.hasOwnProperty(s)?Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]:e[s]=i))})),e}function v(t){return B(t,!0).replace(/%26/g,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function B(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",y);const L=t("LOCATION_UPGRADE_CONFIGURATION",new c("LOCATION_UPGRADE_CONFIGURATION")),A=new c("APP_BASE_HREF_RESOLVED");class P{static config(t){return{ngModule:P,providers:[s,{provide:U,useFactory:H,deps:[u,s,i,m,a]},{provide:L,useValue:t||{}},{provide:m,useFactory:R,deps:[L]},{provide:A,useFactory:E,deps:[L,[new $(h),new p]]},{provide:a,useFactory:I,deps:[i,A,L]}]}}}function E(t,e){return t&&null!=t.appBaseHref?t.appBaseHref:null!=e?e:""}function R(t){return new(t&&t.urlCodec||y)}function I(t,e,r={}){return r.useHash?new o(t,e):new n(t,e)}function H(t,e,r,s,i){return new w(t,e,r,s,i).$get()}t("LocationUpgradeModule",P),P.ɵfac=function(t){return new(t||P)},P.ɵmod=l.ɵɵdefineNgModule({type:P}),P.ɵinj=l.ɵɵdefineInjector({imports:[r]})}}})); | ||
//# sourceMappingURL=angular-upgrade.min.js.map |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/common/http@15.0.3 - Ivy - system format - es2020 - 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/http@15.0.4 - Ivy - system format - es2020 - 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/common","@angular/core","rxjs","rxjs/operators"],(function(e){"use strict";var t,s,r,n,o,a,i,u,l,c,d,h,p,f;return{setters:[function(e){t=e.DOCUMENT,s=e,r=e["ɵparseCookieValue"],n=e.XhrFactory},function(e){o=e,e.Injectable,a=e.InjectionToken,e.Inject,i=e.PLATFORM_ID,e.NgModule,u=e.makeEnvironmentProviders,l=e.inject},function(e){c=e.of,d=e.Observable},function(e){h=e.concatMap,p=e.filter,f=e.map}],execute:function(){e({provideHttpClient:ue,withInterceptors:function(e){return ie(ae.Interceptors,e.map((e=>({provide:U,useValue:e,multi:!0}))))},withInterceptorsFromDi:ce,withJsonpSupport:pe,withNoXsrfProtection:he,withRequestsMadeViaParent:function(){return ie(ae.RequestsMadeViaParent,[{provide:y,useFactory:()=>{const e=l(m,{skipSelf:!0,optional:!0});return e}}])},withXsrfConfiguration:de});class m{}e("HttpHandler",m);class y{}e("HttpBackend",y);class b{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.keys(e).forEach((t=>{let s=e[t];const r=t.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(t,r))}))}: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 b?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 b;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof b?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",b);class v{encodeKey(e){return E(e)}encodeValue(e){return E(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}e("HttpUrlEncodingCodec",v);const w=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E(e){return encodeURIComponent(e).replace(w,((e,t)=>g[t]??e))}function T(e){return`${e}`}class C{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new v,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(T):[T(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 C({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(T(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(T(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",C);e("HttpContextToken",class{constructor(e){this.defaultValue=e}});class x{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 P(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function j(e){return"undefined"!=typeof Blob&&e instanceof Blob}function N(e){return"undefined"!=typeof FormData&&e instanceof FormData}e("HttpContext",x);class k{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 b),this.context||(this.context=new x),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 C,this.urlWithParams=t}serializeBody(){return null===this.body?null:P(this.body)||j(this.body)||N(this.body)||(e=this.body,"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams)||"string"==typeof this.body?this.body:this.body instanceof C?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||N(this.body)?null:j(this.body)?this.body.type||null:P(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof C?"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,u=e.params||this.params;const l=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&&(u=Object.keys(e.setParams).reduce(((t,s)=>t.set(s,e.setParams[s])),u)),new k(t,s,n,{params:u,headers:i,context:l,reportProgress:a,responseType:r,withCredentials:o})}}var H;e("HttpRequest",k),e("HttpEventType",H),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"}(H||e("HttpEventType",H={}));class S{constructor(e,t=200,s="OK"){this.headers=e.headers||new b,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",S);class R extends S{constructor(e={}){super(e),this.type=H.ResponseHeader}clone(e={}){return new R({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}e("HttpHeaderResponse",R);class I extends S{constructor(e={}){super(e),this.type=H.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new I({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",I);class O extends S{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 L(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",O);class A{constructor(e){this.handler=e}request(e,t,s={}){let r;if(e instanceof k)r=e;else{let n,o;n=s.headers instanceof b?s.headers:new b(s.headers),s.params&&(o=s.params instanceof C?s.params:new C({fromObject:s.params})),r=new k(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=c(r).pipe(h((e=>this.handler.handle(e))));if(e instanceof k||"events"===s.observe)return n;const o=n.pipe(p((e=>e instanceof I)));switch(s.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(f((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(f((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(f((e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));default:return o.pipe(f((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 C).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,L(s,t))}post(e,t,s={}){return this.request("POST",e,L(s,t))}put(e,t,s={}){return this.request("PUT",e,L(s,t))}}function F(e,t){return t(e)}function z(e,t){return(s,r)=>t.intercept(s,{handle:t=>e(t,r)})}e("HttpClient",A),A.ɵfac=function(e){return new(e||A)(o.ɵɵinject(m))},A.ɵprov=o.ɵɵdefineInjectable({token:A,factory:A.ɵfac});const M=e("HTTP_INTERCEPTORS",new a("HTTP_INTERCEPTORS")),U=new a("HTTP_INTERCEPTOR_FNS");function J(){let e=null;return(t,s)=>{if(null===e){const t=l(M,{optional:!0})??[];e=t.reduceRight(z,F)}return e(t,s)}}class q extends m{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(U)));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)),F)}return this.chain(e,(e=>this.backend.handle(e)))}}e({ɵHttpInterceptingHandler:q,ɵHttpInterceptorHandler:q}),q.ɵfac=function(e){return new(e||q)(o.ɵɵinject(y),o.ɵɵinject(o.EnvironmentInjector))},q.ɵprov=o.ɵɵdefineInjectable({token:q,factory:q.ɵfac});let X,V=0;class B{}function D(){return"object"==typeof window?window:{}}class _{constructor(e,t){this.callbackMap=e,this.document=t,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+V++}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 d((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 I({body:o,status:200,statusText:"OK",url:r})),t.complete()):t.error(new O({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 O({error:e,status:0,statusText:"JSONP Error",url:r}))})),this.document.body.appendChild(n),t.next({type:H.Sent}),()=>{a||this.removeListeners(n),i()}}))}removeListeners(e){X||(X=this.document.implementation.createHTMLDocument()),X.adoptNode(e)}}function K(e,t){return"JSONP"===e.method?l(_).handle(e):t(e)}e("JsonpClientBackend",_),_.ɵfac=function(e){return new(e||_)(o.ɵɵinject(B),o.ɵɵinject(t))},_.ɵprov=o.ɵɵdefineInjectable({token:_,factory:_.ɵfac});class ${constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>K(e,(e=>t.handle(e)))))}}e("JsonpInterceptor",$),$.ɵfac=function(e){return new(e||$)(o.ɵɵinject(o.EnvironmentInjector))},$.ɵprov=o.ɵɵdefineInjectable({token:$,factory:$.ɵfac});const W=/^\)\]\}',?\n/;class G{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new d((t=>{const s=this.xhrFactory.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach(((e,t)=>s.setRequestHeader(e,t.join(",")))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&s.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();s.responseType="json"!==t?t:"text"}const r=e.serializeBody();let n=null;const o=()=>{if(null!==n)return n;const t=s.statusText||"OK",r=new b(s.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||e.url;return n=new R({headers:r,status:s.status,statusText:t,url:o}),n},a=()=>{let{headers:r,status:n,statusText:a,url:i}=o(),u=null;204!==n&&(u=void 0===s.response?s.responseText:s.response),0===n&&(n=u?200:0);let l=n>=200&&n<300;if("json"===e.responseType&&"string"==typeof u){const e=u;u=u.replace(W,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=e,l&&(l=!1,u={error:t,text:u})}}l?(t.next(new I({body:u,headers:r,status:n,statusText:a,url:i||void 0})),t.complete()):t.error(new O({error:u,headers:r,status:n,statusText:a,url:i||void 0}))},i=e=>{const{url:r}=o(),n=new O({error:e,status:s.status||0,statusText:s.statusText||"Unknown Error",url:r||void 0});t.error(n)};let u=!1;const l=r=>{u||(t.next(o()),u=!0);let n={type:H.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(n.total=r.total),"text"===e.responseType&&s.responseText&&(n.partialText=s.responseText),t.next(n)},c=e=>{let s={type:H.UploadProgress,loaded:e.loaded};e.lengthComputable&&(s.total=e.total),t.next(s)};return s.addEventListener("load",a),s.addEventListener("error",i),s.addEventListener("timeout",i),s.addEventListener("abort",i),e.reportProgress&&(s.addEventListener("progress",l),null!==r&&s.upload&&s.upload.addEventListener("progress",c)),s.send(r),t.next({type:H.Sent}),()=>{s.removeEventListener("error",i),s.removeEventListener("abort",i),s.removeEventListener("load",a),s.removeEventListener("timeout",i),e.reportProgress&&(s.removeEventListener("progress",l),null!==r&&s.upload&&s.upload.removeEventListener("progress",c)),s.readyState!==s.DONE&&s.abort()}}))}}e("HttpXhrBackend",G),G.ɵfac=function(e){return new(e||G)(o.ɵɵinject(s.XhrFactory))},G.ɵprov=o.ɵɵdefineInjectable({token:G,factory:G.ɵfac});const Y=new a("XSRF_ENABLED"),Q="XSRF-TOKEN",Z=new a("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>Q}),ee="X-XSRF-TOKEN",te=new a("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>ee});class se{}e("HttpXsrfTokenExtractor",se);class re{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=r(e,this.cookieName),this.lastCookieString=e),this.lastToken}}function ne(e,t){const s=e.url.toLowerCase();if(!l(Y)||"GET"===e.method||"HEAD"===e.method||s.startsWith("http://")||s.startsWith("https://"))return t(e);const r=l(se).getToken(),n=l(te);return null==r||e.headers.has(n)||(e=e.clone({headers:e.headers.set(n,r)})),t(e)}re.ɵfac=function(e){return new(e||re)(o.ɵɵinject(t),o.ɵɵinject(i),o.ɵɵinject(Z))},re.ɵprov=o.ɵɵdefineInjectable({token:re,factory:re.ɵfac});class oe{constructor(e){this.injector=e}intercept(e,t){return this.injector.runInContext((()=>ne(e,(e=>t.handle(e)))))}}var ae;function ie(e,t){return{ɵkind:e,ɵproviders:t}}function ue(...e){const t=[A,G,q,{provide:m,useExisting:q},{provide:y,useExisting:G},{provide:U,useValue:ne,multi:!0},{provide:Y,useValue:!0},{provide:se,useClass:re}];for(const s of e)t.push(...s.ɵproviders);return u(t)}oe.ɵfac=function(e){return new(e||oe)(o.ɵɵinject(o.EnvironmentInjector))},oe.ɵprov=o.ɵɵdefineInjectable({token:oe,factory:oe.ɵfac}),e("HttpFeatureKind",ae),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"}(ae||e("HttpFeatureKind",ae={}));const le=new a("LEGACY_INTERCEPTOR_FN");function ce(){return ie(ae.LegacyInterceptors,[{provide:le,useFactory:J},{provide:U,useExisting:le,multi:!0}])}function de({cookieName:e,headerName:t}){const s=[];return void 0!==e&&s.push({provide:Z,useValue:e}),void 0!==t&&s.push({provide:te,useValue:t}),ie(ae.CustomXsrfConfiguration,s)}function he(){return ie(ae.NoXsrfProtection,[{provide:Y,useValue:!1}])}function pe(){return ie(ae.JsonpSupport,[_,{provide:B,useFactory:D},{provide:U,useValue:K,multi:!0}])}class fe{static disable(){return{ngModule:fe,providers:[he().ɵproviders]}}static withOptions(e={}){return{ngModule:fe,providers:de(e).ɵproviders}}}e("HttpClientXsrfModule",fe),fe.ɵfac=function(e){return new(e||fe)},fe.ɵmod=o.ɵɵdefineNgModule({type:fe}),fe.ɵinj=o.ɵɵdefineInjector({providers:[oe,{provide:M,useExisting:oe,multi:!0},{provide:se,useClass:re},de({cookieName:Q,headerName:ee}).ɵproviders,{provide:Y,useValue:!0}]});class me{}e("HttpClientModule",me),me.ɵfac=function(e){return new(e||me)},me.ɵmod=o.ɵɵdefineNgModule({type:me}),me.ɵinj=o.ɵɵdefineInjector({providers:[ue(ce(),de({cookieName:Q,headerName:ee}))]});class ye{}e("HttpClientJsonpModule",ye),ye.ɵfac=function(e){return new(e||ye)},ye.ɵmod=o.ɵɵdefineNgModule({type:ye}),ye.ɵinj=o.ɵɵdefineInjector({providers:[pe().ɵproviders]});e("XhrFactory",n)}}})); | ||
//# sourceMappingURL=angular-http.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/common/upgrade@15.0.3 - Ivy - system format - es2020 - 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@15.0.4 - Ivy - system format - es2020 - 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(['rxjs', '@angular/common', '@angular/core', '@angular/upgrade/static'], (function (exports) { | ||
@@ -28,3 +28,3 @@ 'use strict'; | ||
/** | ||
* @license Angular v15.0.3 | ||
* @license Angular v15.0.4 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -31,0 +31,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/common/upgrade@15.0.3 - Ivy - system format - es2020 - 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@15.0.4 - Ivy - system format - es2020 - 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(["rxjs","@angular/common","@angular/core","@angular/upgrade/static"],(function(t){"use strict";var e,r,s,i,a,h,o,n,c,l,$,p,u;return{setters:[function(t){e=t.ReplaySubject},function(t){r=t.CommonModule,s=t.Location,i=t.PlatformLocation,a=t.LocationStrategy,h=t.APP_BASE_HREF,o=t.HashLocationStrategy,n=t.PathLocationStrategy},function(t){c=t.InjectionToken,l=t,t.NgModule,$=t.Inject,p=t.Optional},function(t){u=t.UpgradeModule}],execute:function(){const d=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,g=/^\s*[\\/]{2,}/,f=/^\s*(javascript|mailto):/i,S={"http:":80,"https:":443,"ftp:":21};class U{constructor(t,r,s,i,a){this.location=r,this.platformLocation=s,this.urlCodec=i,this.locationStrategy=a,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 e(1),this.lastBrowserUrl="",this.lastCachedState=null;const h=this.browserUrl();let o=this.urlCodec.parse(h);if("string"==typeof o)throw"Invalid URL";var n;this.$$protocol=o.protocol,this.$$host=o.hostname,this.$$port=parseInt(o.port)||S[o.protocol]||null,this.$$parseLinkUrl(h,h),this.cacheState(),this.$$state=this.browserState(),this.location.onUrlChange(((t,e)=>{this.urlChanges.next({newUrl:t,newState:e})})),(n=t)&&"function"==typeof n.then?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");f.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(g.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=d.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",U);class w{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.")}}t("$locationShimProvider",w);class m{}t("UrlCodec",m);class y{encodePath(t){const e=t.split("/");let r=e.length;for(;r--;)e[r]=v(e[r].replace(/%2F/g,"/"));return t=e.join("/"),((t&&"/"!==t[0]?"/":"")+t).replace(/\/index.html$/,"")}encodeSearch(t){return"string"==typeof t&&(t=C(t)),(t=function(t){const e=[];for(const r in t){let s=t[r];Array.isArray(s)?s.forEach((t=>{e.push(B(r,!0)+(!0===t?"":"="+B(t,!0)))})):e.push(B(r,!0)+(!0===s?"":"="+B(s,!0)))}return e.length?e.join("&"):""}(t))?"?"+t:""}encodeHash(t){return(t=v(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 C(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 b(t){try{return decodeURIComponent(t)}catch(t){return}}function C(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=b(s),void 0!==s&&(i=void 0===i||b(i),e.hasOwnProperty(s)?Array.isArray(e[s])?e[s].push(i):e[s]=[e[s],i]:e[s]=i))})),e}function v(t){return B(t,!0).replace(/%26/g,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function B(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",y);const L=t("LOCATION_UPGRADE_CONFIGURATION",new c("LOCATION_UPGRADE_CONFIGURATION")),A=new c("APP_BASE_HREF_RESOLVED");class P{static config(t){return{ngModule:P,providers:[s,{provide:U,useFactory:H,deps:[u,s,i,m,a]},{provide:L,useValue:t||{}},{provide:m,useFactory:R,deps:[L]},{provide:A,useFactory:E,deps:[L,[new $(h),new p]]},{provide:a,useFactory:I,deps:[i,A,L]}]}}}function E(t,e){return t&&null!=t.appBaseHref?t.appBaseHref:null!=e?e:""}function R(t){return new(t&&t.urlCodec||y)}function I(t,e,r={}){return r.useHash?new o(t,e):new n(t,e)}function H(t,e,r,s,i){return new w(t,e,r,s,i).$get()}t("LocationUpgradeModule",P),P.ɵfac=function(t){return new(t||P)},P.ɵmod=l.ɵɵdefineNgModule({type:P}),P.ɵinj=l.ɵɵdefineInjector({imports:[r]})}}})); | ||
//# 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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
5973812
45252