PageSourceSearch

https://charisma-1154.firebaseapp.com/main.6967113f2fb64e84.js

js charisma-1154.firebaseapp.com collected 2026-10-03 14:05:07 UTC 2,536,284 bytes, 1 lines download raw bytes

1var SC=Object.defineProperty,CC=Object.defineProperties,TC=Object.getOwnPropertyDescriptors,J0=Object.getOwnPropertySymbols,IC=Object.prototype.hasOwnProperty,DC=Object.prototype.propertyIsEnumerable,Qf=Math.pow,sy=(xe,q,c)=>q in xe?SC(xe,q,{enumerable:!0,configurable:!0,writable:!0,value:c}):xe[q]=c,Tl=(xe,q)=>{for(var c in q||(q={}))IC.call(q,c)&&sy(xe,c,q[c]);if(J0)for(var c of J0(q))DC.call(q,c)&&sy(xe,c,q[c]);return xe},hh=(xe,q)=>CC(xe,TC(q)),ys=(xe,q,c)=>(sy(xe,"symbol"!=typeof q?q+"":q,c),c),oy=(xe,q,c)=>{if(!q.has(xe))throw TypeError("Cannot "+c)},Fe=(xe,q,c)=>(oy(xe,q,"read from private field"),c?c.call(xe):q.get(xe)),dn=(xe,q,c)=>{if(q.has(xe))throw TypeError("Cannot add the same private member more than once");q instanceof WeakSet?q.add(xe):q.set(xe,c)},Vn=(xe,q,c,t)=>(oy(xe,q,"write to private field"),t?t.call(xe,c):q.set(xe,c),c),md=(xe,q,c,t)=>({set _(_){Vn(xe,q,_,c)},get _(){return Fe(xe,q,t)}}),bn=(xe,q,c)=>(oy(xe,q,"access private method"),c);(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{8047:(xe,q,c)=>{"use strict";c.d(q,{gw:()=>y,Ky:()=>We,Z4:()=>se,Wn:()=>ve,Vq:()=>oe,HU:()=>ee,Fx:()=>H,Dp:()=>I,ss:()=>z,pX:()=>He});var t=c(6435),_=c(9808),x=c(341),re=c(353),te=c(2916);let Q=1;const S=Promise.resolve(),W={};function P(ge){return ge in W&&(delete W[ge],!0)}const C={setImmediate(ge){const O=Q++;return W[O]=!0,S.then(()=>P(O)&&ge()),O},clearImmediate(ge){P(ge)}};var E=c(6686),v=c(2268);const M=new class R extends v.v{flush(O){this.active=!0,this.scheduled=void 0;const{actions:b}=this;let p,A=-1,N=b.length;O=O||b.shift();do{if(p=O.execute(O.state,O.delay))break}while(++A<N&&(O=b.shift()));if(this.active=!1,p){for(;++A<N&&(O=b.shift());)O.unsubscribe();throw p}}}(class m extends E.o{constructor(O,b){super(O,b),this.scheduler=O,this.work=b}requestAsyncId(O,b,p=0){return null!==p&&p>0?super.requestAsyncId(O,b,p):(O.actions.push(this),O.scheduled||(O.scheduled=C.setImmediate(O.flush.bind(O,null))))}recycleAsyncId(O,b,p=0){if(null!==p&&p>0||null===p&&this.delay>0)return super.recycleAsyncId(O,b,p);0===O.actions.length&&(C.clearImmediate(b),O.scheduled=void 0)}});var V=c(4241);class f extends te.y{constructor(O,b=0,p=M){super(),this.source=O,this.delayTime=b,this.scheduler=p,(!(0,V.k)(b)||b<0)&&(this.delayTime=0),(!p||"function"!=typeof p.schedule)&&(this.scheduler=M)}static create(O,b=0,p=M){return new f(O,b,p)}static dispatch(O){const{source:b,subscriber:p}=O;return this.add(b.subscribe(p))}_subscribe(O){return this.scheduler.schedule(f.dispatch,this.delayTime,{source:this.source,subscriber:O})}}class Z{constructor(O,b){this.scheduler=O,this.delay=b}call(O,b){return new f(b,this.delay,this.scheduler).subscribe(O)}}var G=c(2868),$=c(2102);const se=new t.InjectionToken("angularfire2.realtimeDatabaseURL"),y=se;function k(){}class I{constructor(O,b=x.N){this.zone=O,this.delegate=b}now(){return this.delegate.now()}schedule(O,b,p){const A=this.zone;return this.delegate.schedule(function(K){A.runGuarded(()=>{O.apply(this,[K])})},b,p)}}class H{constructor(O){this.zone=O,this.task=null}call(O,b){const p=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",k,{},k,k)),b.pipe((0,G.b)(p,p,p)).subscribe(O).add(p)}unscheduleTask(){null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)}}class ee{constructor(O){this.ngZone=O,this.outsideAngular=O.runOutsideAngular(()=>new I(Zone.current)),this.insideAngular=O.run(()=>new I(Zone.current,re.z))}}function z(ge,O){return function(p){return(0,_.isPlatformServer)(O)&&(p=p.lift(new H(ge.ngZone))),p.pipe(function T(ge,O=0){return function(p){return p.lift(new Z(ge,O))}}(ge.outsideAngular),(0,$.QV)(ge.insideAngular))}}const oe=ge=>O=>new te.y(b=>ge.runOutsideAngular(()=>{ve(ge)(O).subscribe(b)})),ve=ge=>O=>new te.y(b=>O.subscribe(p=>ge.run(()=>b.next(p)),p=>ge.run(()=>b.error(p)),()=>ge.run(()=>b.complete())));class We{constructor(O,b){this.zone=O,this.platformId=b}schedule(...O){return this.zone.runGuarded(function(){return x.N.schedule.apply(x.N,O)})}keepUnstableUntilFirst(O){return(0,_.isPlatformServer)(this.platformId)?new te.y(b=>{const p=()=>{},A=Zone.current.scheduleMacroTask("firebaseZoneBlock",p,{},p,p);O.subscribe(N=>{"scheduled"===A.state&&A.invoke(),b.next(N)},N=>{"scheduled"===A.state&&A.invoke(),b.error(N)},()=>{"scheduled"===A.state&&A.invoke(),b.complete()})}):O}runOutsideAngular(O){return new te.y(b=>this.zone.runOutsideAngular(()=>O.subscribe(p=>this.zone.run(()=>b.next(p)),p=>this.zone.run(()=>b.error(p)),()=>this.zone.run(()=>b.complete()))))}}const Re=["ngOnDestroy"],He=(ge,O,b)=>new Proxy(ge,{get:(p,A)=>b.runOutsideAngular(()=>{if(ge[A])return ge[A];if(Re.includes(A))return()=>{};let N=O.toPromise().then(K=>{const J=K&&K[A];return"function"==typeof J?J.bind(K):J&&J.then?J.then(ie=>b.run(()=>ie)):b.run(()=>J)});return new Proxy(()=>{},{get:(K,J)=>N[J],apply:(K,J,ie)=>N.then(he=>he&&he(...ie))})})})},4689:(xe,q,c)=>{"use strict";c.d(q,{RU:()=>W,sI:()=>P,Dh:()=>C,xv:()=>L,Ot:()=>E,q4:()=>m,Wy:()=>v,hO:()=>j});var S,t=c(6435),_=c(3029),x=c.n(_);const W=new t.InjectionToken("angularfire2.app.options"),P=new t.InjectionToken("angularfire2.app.nameOrConfig"),C=W,L=P;class E{}const m=new t.Version("5.4.2");function v(M,V,f){const Z="object"==typeof f&&f||{};return Z.name=Z.name||"string"==typeof f&&f||"[DEFAULT]",x().apps.filter($=>$&&$.name===Z.name)[0]||V.runOutsideAngular(()=>x().initializeApp(M,Z))}const R={provide:E,useFactory:v,deps:[C,t.NgZone,[new t.Optional,L]]};let j=S=class{constructor(V){x().registerVersion&&(x().registerVersion("angularfire",m.full,V.toString()),x().registerVersion("angular",t.VERSION.full))}static initializeApp(V,f){return{ngModule:S,providers:[{provide:C,useValue:V},{provide:L,useValue:f}]}}};var V;j.\u0275fac=function(V){return new(V||j)(t.\u0275\u0275inject(t.PLATFORM_ID))},j.\u0275mod=t.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=t.\u0275\u0275defineInjector({providers:[R]}),j=S=function(M,V,f,T){var $,Z=arguments.length,G=Z<3?V:null===T?T=Object.getOwnPropertyDescriptor(V,f):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(M,V,f,T);else for(var se=M.length-1;se>=0;se--)($=M[se])&&(G=(Z<3?$(G):Z>3?$(V,f,G):$(V,f))||G);return Z>3&&G&&Object.defineProperty(V,f,G),G}([(0,V=(0,t.Inject)(t.PLATFORM_ID),function(f,T){V(f,T,0)}),function(M,V){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",[Object])}()],j)},218:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{AngularFireModule:()=>_.hO,DATABASE_URL:()=>t.gw,FIREBASE_APP_NAME:()=>_.xv,FIREBASE_OPTIONS:()=>_.Dh,FirebaseApp:()=>_.Ot,FirebaseNameOrConfigToken:()=>_.sI,FirebaseOptionsToken:()=>_.RU,FirebaseZoneScheduler:()=>t.Ky,RealtimeDatabaseURL:()=>t.Z4,VERSION:()=>_.q4,_firebaseAppFactory:()=>_.Wy,runInZone:()=>t.Wn,runOutsideAngular:()=>t.Vq,\u0275AngularFireSchedulers:()=>
1t.HU,\u0275BlockUntilFirstOperator:()=>t.Fx,\u0275ZoneScheduler:()=>t.Dp,\u0275keepUnstableUntilFirstFactory:()=>t.ss,\u0275lazySDKProxy:()=>t.pX});var t=c(8047),_=c(4689)},1913:(xe,q,c)=>{"use strict";c.d(q,{y:()=>P});var t=c(5254),_=c(543),x=c(4850),re=c(2198),te=c(2014),Q=c(2102),S=c(1923),W=c(6341);class P{constructor(L,E){this.query=L,this.afs=E}stateChanges(L){return L&&0!==L.length?(0,W.XH)(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,(0,x.U)(E=>E.filter(m=>L.indexOf(m.type)>-1)),(0,re.h)(E=>E.length>0)):(0,W.XH)(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(L){return this.stateChanges(L).pipe((0,te.R)((E,m)=>[...E,...m],[]))}snapshotChanges(L){const E=(0,S.U)(L);return(0,W.Ns)(this.query,E,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return(0,_.m)(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,(0,x.U)(E=>E.payload.docs.map(m=>m.data())))}get(L){return(0,t.D)(this.query.get(L)).pipe((0,Q.QV)(this.afs.schedulers.insideAngular))}}},6341:(xe,q,c)=>{"use strict";c.d(q,{XH:()=>re,Ns:()=>te,ku:()=>Q,CD:()=>S});var t=c(543),_=c(4850),x=c(2014);function re(W,P){return(0,t.m)(W,P).pipe((0,_.U)(C=>C.payload.docChanges().map(L=>({type:L.type,payload:L}))))}function te(W,P,C){return(0,t.m)(W,C).pipe((0,_.U)(L=>L.payload.docChanges()),(0,x.R)((L,E)=>Q(L,E,P),[]),(0,_.U)(L=>L.map(E=>({type:E.type,payload:E}))))}function Q(W,P,C){return P.forEach(L=>{C.indexOf(L.type)>-1&&(W=S(W,L))}),W}function S(W,P){switch(P.type){case"added":W[P.newIndex]&&W[P.newIndex].doc.ref.isEqual(P.doc.ref)||W.splice(P.newIndex,0,P);break;case"modified":(null==W[P.oldIndex]||W[P.oldIndex].doc.ref.isEqual(P.doc.ref))&&(P.oldIndex!==P.newIndex?(W.splice(P.oldIndex,1),W.splice(P.newIndex,0,P)):W.splice(P.newIndex,1,P));break;case"removed":W[P.oldIndex]&&W[P.oldIndex].doc.ref.isEqual(P.doc.ref)&&W.splice(P.oldIndex,1)}return W}},1923:(xe,q,c)=>{"use strict";c.d(q,{U:()=>P,g:()=>C});var t=c(5254),_=c(543),x=c(4850),re=c(2198),te=c(2014),Q=c(2102),S=c(6341),W=c(893);function P(L){return(!L||0===L.length)&&(L=["added","removed","modified"]),L}class C{constructor(E,m,v){this.ref=E,this.query=m,this.afs=v}stateChanges(E){return E&&0!==E.length?(0,S.XH)(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,(0,x.U)(m=>m.filter(v=>E.indexOf(v.type)>-1)),(0,re.h)(m=>m.length>0)):(0,S.XH)(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(E){return this.stateChanges(E).pipe((0,te.R)((m,v)=>[...m,...v],[]))}snapshotChanges(E){const m=P(E);return(0,S.Ns)(this.query,m,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(E={}){return(0,_.m)(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst,(0,x.U)(m=>m.payload.docs.map(v=>E.idField?Object.assign({},v.data(),{[E.idField]:v.id}):v.data())))}get(E){return(0,t.D)(this.query.get(E)).pipe((0,Q.QV)(this.afs.schedulers.insideAngular))}add(E){return this.ref.add(E)}doc(E){return new W.O(this.ref.doc(E),this.afs)}}},893:(xe,q,c)=>{"use strict";c.d(q,{O:()=>S});var t=c(5254),_=c(543),x=c(4850),re=c(2102),te=c(3018),Q=c(1923);class S{constructor(P,C){this.ref=P,this.afs=C}set(P,C){return this.ref.set(P,C)}update(P){return this.ref.update(P)}delete(){return this.ref.delete()}collection(P,C){const L=this.ref.collection(P),{ref:E,query:m}=(0,te.jv)(L,C);return new Q.g(E,m,this.afs)}snapshotChanges(){return(0,_.KJ)(this.ref,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return this.snapshotChanges().pipe((0,x.U)(P=>P.payload.data()))}get(P){return(0,t.D)(this.ref.get(P)).pipe((0,re.QV)(this.afs.schedulers.insideAngular))}}},3018:(xe,q,c)=>{"use strict";c.d(q,{D5:()=>R,EJ:()=>j,Me:()=>M,Ip:()=>V,Mo:()=>f,L6:()=>T,kv:()=>$,jv:()=>se,ST:()=>y});var t=c(6435),_=c(5254),x=c(1086),re=c(893),te=c(1923),Q=c(1913),S=c(8047),W=c(4689),P=c(9808),C=c(3029),L=c.n(C),m=function(k,I){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,I)},v=function(k,I){return function(H,ee){I(H,ee,k)}};const R=new t.InjectionToken("angularfire2.enableFirestorePersistence"),j=new t.InjectionToken("angularfire2.firestore.persistenceSettings"),M=new t.InjectionToken("angularfire2.firestore.settings"),V=R,f=j,T=M,Z=parseInt(L().SDK_VERSION.split(".")[0]),G=parseInt(L().SDK_VERSION.split(".")[1]),$=Z<5||5==Z&&G<8?{timestampsInSnapshots:!0}:{};function se(k,I=(H=>H)){return{query:I(k),ref:k}}let y=(()=>{let k=class{constructor(H,ee,z,oe,ve,We,Re){this.schedulers=new S.HU(We),this.keepUnstableUntilFirst=(0,S.ss)(this.schedulers,ve),this.firestore=We.runOutsideAngular(()=>{const ge=(0,W.Wy)(H,We,ee).firestore();return ge.settings(oe||$),ge}),this.persistenceEnabled$=z&&!(0,P.isPlatformServer)(ve)?We.runOutsideAngular(()=>{try{return(0,_.D)(this.firestore.enablePersistence(Re||void 0).then(()=>!0,()=>!1))}catch(ge){return(0,x.of)(!1)}}):(0,x.of)(!1)}collection(H,ee){let z;z="string"==typeof H?this.firestore.collection(H):H;const{ref:oe,query:ve}=se(z,ee);return new te.g(oe,ve,this)}collectionGroup(H,ee){if(Z<6)throw"collection group queries require Firebase JS SDK >= 6.0";const z=ee||(We=>We),ve=this.firestore.collectionGroup(H);return new Q.y(z(ve),this)}
1doc(H){let ee;return ee="string"==typeof H?this.firestore.doc(H):H,new re.O(ee,this)}createId(){return this.firestore.collection("_").doc().id}};return k.\u0275fac=function(H){return new(H||k)(t.\u0275\u0275inject(W.Dh),t.\u0275\u0275inject(W.xv,8),t.\u0275\u0275inject(V,8),t.\u0275\u0275inject(T,8),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(f,8))},k.\u0275prov=t.\u0275\u0275defineInjectable({token:k,factory:function(I){return k.\u0275fac(I)}}),k=function(k,I,H,ee){var ve,z=arguments.length,oe=z<3?I:null===ee?ee=Object.getOwnPropertyDescriptor(I,H):ee;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)oe=Reflect.decorate(k,I,H,ee);else for(var We=k.length-1;We>=0;We--)(ve=k[We])&&(oe=(z<3?ve(oe):z>3?ve(I,H,oe):ve(I,H))||oe);return z>3&&oe&&Object.defineProperty(I,H,oe),oe}([v(0,(0,t.Inject)(W.Dh)),v(1,(0,t.Optional)()),v(1,(0,t.Inject)(W.xv)),v(2,(0,t.Optional)()),v(2,(0,t.Inject)(V)),v(3,(0,t.Optional)()),v(3,(0,t.Inject)(T)),v(4,(0,t.Inject)(t.PLATFORM_ID)),v(6,(0,t.Optional)()),v(6,(0,t.Inject)(f)),m("design:paramtypes",[Object,Object,Object,Object,Object,t.NgZone,Object])],k),k})()},6448:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{AngularFirestore:()=>t.ST,AngularFirestoreCollection:()=>S.g,AngularFirestoreCollectionGroup:()=>W.y,AngularFirestoreDocument:()=>P.O,AngularFirestoreModule:()=>Q,DefaultFirestoreSettings:()=>t.kv,ENABLE_PERSISTENCE:()=>t.Ip,EnablePersistenceToken:()=>t.D5,FirestoreSettingsToken:()=>t.Me,PERSISTENCE_SETTINGS:()=>t.Mo,PersistenceSettingsToken:()=>t.EJ,SETTINGS:()=>t.L6,associateQuery:()=>t.jv,combineChange:()=>C.CD,combineChanges:()=>C.ku,docChanges:()=>C.XH,fromCollectionRef:()=>L.m,fromDocRef:()=>L.KJ,fromRef:()=>L.ir,sortedChanges:()=>C.Ns,validateEventsArray:()=>S.U});var te,t=c(3018),_=c(6435);c(199);let Q=te=class{static enablePersistence(m){return{ngModule:te,providers:[{provide:t.D5,useValue:!0},{provide:t.EJ,useValue:m}]}}};Q.\u0275fac=function(m){return new(m||Q)},Q.\u0275mod=_.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=_.\u0275\u0275defineInjector({providers:[t.ST]});var S=c(1923),W=c(1913),P=c(893),C=c(6341),L=c(543)},543:(xe,q,c)=>{"use strict";c.d(q,{ir:()=>te,KJ:()=>Q,m:()=>S});var t=c(353),_=c(2916),x=c(4850);function te(W,P){return function re(W,P=t.z){return new _.y(C=>{let L;return null!=P?P.schedule(()=>{L=W.onSnapshot(C)}):L=W.onSnapshot(C),function(){null!=L&&L()}})}(W,P)}function Q(W,P){return te(W,P).pipe((0,x.U)(C=>({payload:C,type:"value"})))}function S(W,P){return te(W,P).pipe((0,x.U)(C=>({payload:C,type:"query"})))}},8732:(xe,q,c)=>{"use strict";c.d(q,{Q1:()=>R});var t=c(6435),_=c(2916),re=c(4850);function te(j){const M=function x(j){return new _.y(M=>(j.on("state_changed",Z=>M.next(Z),Z=>M.error(Z),()=>M.complete()),()=>j.cancel()))}(j);return{task:j,then:j.then.bind(j),catch:j.catch.bind(j),pause:j.pause.bind(j),cancel:j.cancel.bind(j),resume:j.resume.bind(j),snapshotChanges:()=>M,percentageChanges:()=>M.pipe((0,re.U)(V=>V.bytesTransferred/V.totalBytes*100))}}var Q=c(5254);function S(j,M,V){return{getDownloadURL:()=>(0,Q.D)(j.getDownloadURL(),M.outsideAngular).pipe(V),getMetadata:()=>(0,Q.D)(j.getMetadata()).pipe(V),delete:()=>(0,Q.D)(j.delete()),child:f=>S(j.child(f),M,V),updateMetatdata:f=>(0,Q.D)(j.updateMetadata(f)),updateMetadata:f=>(0,Q.D)(j.updateMetadata(f)),put:(f,T)=>te(j.put(f,T)),putString:(f,T,Z)=>te(j.putString(f,T,Z))}}var W=c(8047),P=c(4689),L=function(j,M){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(j,M)},E=function(j,M){return function(V,f){M(V,f,j)}};const v=new t.InjectionToken("angularfire2.storageBucket");let R=(()=>{let j=class{constructor(V,f,T,Z,G){this.schedulers=new W.HU(G),this.keepUnstableUntilFirst=(0,W.ss)(this.schedulers,Z),this.storage=G.runOutsideAngular(()=>(0,P.Wy)(V,G,f).storage(T||void 0))}ref(V){return S(this.storage.ref(V),this.schedulers,this.keepUnstableUntilFirst)}upload(V,f,T){return S(this.storage.ref(V),this.schedulers,this.keepUnstableUntilFirst).put(f,T)}};return j.\u0275fac=function(V){return new(V||j)(t.\u0275\u0275inject(P.Dh),t.\u0275\u0275inject(P.xv,8),t.\u0275\u0275inject(v,8),t.\u0275\u0275inject(t.PLATFORM_ID),t.\u0275\u0275inject(t.NgZone))},j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:function(M){return j.\u0275fac(M)}}),j=function(j,M,V,f){var G,T=arguments.length,Z=T<3?M:null===f?f=Object.getOwnPropertyDescriptor(M,V):f;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Z=Reflect.decorate(j,M,V,f);else for(var $=j.length-1;$>=0;$--)(G=j[$])&&(Z=(T<3?G(Z):T>3?G(M,V,Z):G(M,V))||Z);return T>3&&Z&&Object.defineProperty(M,V,Z),Z}([E(0,(0,t.Inject)(P.Dh)),E(1,(0,t.Optional)()),E(1,(0,t.Inject)(P.xv)),E(2,(0,t.Optional)()),E(2,(0,t.Inject)(v)),E(3,(0,t.Inject)(t.PLATFORM_ID)),L("design:paramtypes",[Object,Object,Object,Object,t.NgZone])],j),j})()},454:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{factory:()=>Sn,getGlobalVars:()=>vt,registerAnalytics:()=>jn,resetGlobalVars:()=>Un,settings:()=>tn});var x=function(){return x=Object.assign||function(hn){for(var Se,ae=1,we=arguments.length;ae<we;ae++)for(var Ce in Se=arguments[ae])Object.prototype.hasOwnProperty.call(Se,Ce)&&(hn[Ce]=Se[Ce]);return hn},x.apply(this,arguments)};function W(Tt,hn,Se,ae){return new(Se||(Se=Promise))(function(Ce,Ue){function st(vn){try{nn(ae.next(vn))}catch(wn){Ue(wn)}}function Ft(vn){try{nn(ae.throw(vn))}catch(wn){Ue(wn)}}function nn(vn){vn.done?Ce(vn.value):function we(Ce){return Ce instanceof Se?Ce:new Se(function(Ue){Ue(Ce)})}(vn.value).then(st,Ft)}nn((ae=ae.apply(Tt,hn||[])).next())})}function P(Tt,hn){var ae,we,Ce,Ue,Se={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]}
1,trys:[],ops:[]};return Ue={next:st(0),throw:st(1),return:st(2)},"function"==typeof Symbol&&(Ue[Symbol.iterator]=function(){return this}),Ue;function st(nn){return function(vn){return function Ft(nn){if(ae)throw new TypeError("Generator is already executing.");for(;Se;)try{if(ae=1,we&&(Ce=2&nn[0]?we.return:nn[0]?we.throw||((Ce=we.return)&&Ce.call(we),0):we.next)&&!(Ce=Ce.call(we,nn[1])).done)return Ce;switch(we=0,Ce&&(nn=[2&nn[0],Ce.value]),nn[0]){case 0:case 1:Ce=nn;break;case 4:return Se.label++,{value:nn[1],done:!1};case 5:Se.label++,we=nn[1],nn=[0];continue;case 7:nn=Se.ops.pop(),Se.trys.pop();continue;default:if(!(Ce=(Ce=Se.trys).length>0&&Ce[Ce.length-1])&&(6===nn[0]||2===nn[0])){Se=0;continue}if(3===nn[0]&&(!Ce||nn[1]>Ce[0]&&nn[1]<Ce[3])){Se.label=nn[1];break}if(6===nn[0]&&Se.label<Ce[1]){Se.label=Ce[1],Ce=nn;break}if(Ce&&Se.label<Ce[2]){Se.label=Ce[2],Se.ops.push(nn);break}Ce[2]&&Se.ops.pop(),Se.trys.pop();continue}nn=hn.call(Tt,Se)}catch(vn){nn=[6,vn],we=0}finally{ae=Ce=0}if(5&nn[0])throw nn[1];return{value:nn[0]?nn[1]:void 0,done:!0}}([nn,vn])}}}var y=c(9278),I=(c(8660),c(4003)),H=c(1270),ee=c(6355),Re="https://www.googletagmanager.com/gtag/js",He=(()=>{return(Tt=He||(He={})).EVENT="event",Tt.SET="set",Tt.CONFIG="config",He;var Tt})(),ge=(()=>{return(Tt=ge||(ge={})).ADD_SHIPPING_INFO="add_shipping_info",Tt.ADD_PAYMENT_INFO="add_payment_info",Tt.ADD_TO_CART="add_to_cart",Tt.ADD_TO_WISHLIST="add_to_wishlist",Tt.BEGIN_CHECKOUT="begin_checkout",Tt.CHECKOUT_PROGRESS="checkout_progress",Tt.EXCEPTION="exception",Tt.GENERATE_LEAD="generate_lead",Tt.LOGIN="login",Tt.PAGE_VIEW="page_view",Tt.PURCHASE="purchase",Tt.REFUND="refund",Tt.REMOVE_FROM_CART="remove_from_cart",Tt.SCREEN_VIEW="screen_view",Tt.SEARCH="search",Tt.SELECT_CONTENT="select_content",Tt.SELECT_ITEM="select_item",Tt.SELECT_PROMOTION="select_promotion",Tt.SET_CHECKOUT_OPTION="set_checkout_option",Tt.SHARE="share",Tt.SIGN_UP="sign_up",Tt.TIMING_COMPLETE="timing_complete",Tt.VIEW_CART="view_cart",Tt.VIEW_ITEM="view_item",Tt.VIEW_ITEM_LIST="view_item_list",Tt.VIEW_PROMOTION="view_promotion",Tt.VIEW_SEARCH_RESULTS="view_search_results",ge;var Tt})(),K=new I.Logger("@firebase/analytics");function he(Tt,hn,Se,ae,we,Ce){return W(this,void 0,void 0,function(){var Ue,st,Ft,nn;return P(this,function(vn){switch(vn.label){case 0:Ue=ae[we],vn.label=1;case 1:return vn.trys.push([1,7,,8]),Ue?[4,hn[Ue]]:[3,3];case 2:return vn.sent(),[3,6];case 3:return[4,Promise.all(Se)];case 4:return st=vn.sent(),(Ft=st.find(function(wn){return wn.measurementId===we}))?[4,hn[Ft.appId]]:[3,6];case 5:vn.sent(),vn.label=6;case 6:return[3,8];case 7:return nn=vn.sent(),K.error(nn),[3,8];case 8:return Tt(He.CONFIG,we,Ce),[2]}})})}function Oe(Tt,hn,Se,ae,we){return W(this,void 0,void 0,function(){var Ce,Ue,st,Ft,nn,vn,Gn;return P(this,function(ir){switch(ir.label){case 0:return ir.trys.push([0,4,,5]),Ce=[],we&&we.send_to?(Ue=we.send_to,Array.isArray(Ue)||(Ue=[Ue]),[4,Promise.all(Se)]):[3,2];case 1:for(st=ir.sent(),Ft=function(Wt){var jt=st.find(function(mn){return mn.measurementId===Wt}),on=jt&&hn[jt.appId];if(!on)return Ce=[],"break";Ce.push(on)},nn=0,vn=Ue;nn<vn.length&&"break"!==Ft(vn[nn]);nn++);ir.label=2;case 2:return 0===Ce.length&&(Ce=Object.values(hn)),[4,Promise.all(Ce)];case 3:return ir.sent(),Tt(He.EVENT,ae,we||{}),[3,5];case 4:return Gn=ir.sent(),K.error(Gn),[3,5];case 5:return[2]}})})}var Ct,Ot=((Ct={})["already-exists"]="A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.",Ct["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",Ct["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",Ct["invalid-analytics-context"]="Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Ct["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Ct["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",Ct["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",Ct["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',Ct["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',Ct),ln=new H.ErrorFactory("analytics","Analytics",Ot),it=ne
1w(function(){function Tt(hn,Se){void 0===hn&&(hn={}),void 0===Se&&(Se=1e3),this.throttleMetadata=hn,this.intervalMillis=Se}return Tt.prototype.getThrottleMetadata=function(hn){return this.throttleMetadata[hn]},Tt.prototype.setThrottleMetadata=function(hn,Se){this.throttleMetadata[hn]=Se},Tt.prototype.deleteThrottleMetadata=function(hn){delete this.throttleMetadata[hn]},Tt}());function _t(Tt){return new Headers({Accept:"application/json","x-goog-api-key":Tt})}function ut(Tt){var hn;return W(this,void 0,void 0,function(){var Se,we,Ce,Ue,st,Ft;return P(this,function(vn){switch(vn.label){case 0:return Se=Tt.appId,we={method:"GET",headers:_t(Tt.apiKey)},Ce="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",Se),[4,fetch(Ce,we)];case 1:if(200===(Ue=vn.sent()).status||304===Ue.status)return[3,6];st="",vn.label=2;case 2:return vn.trys.push([2,4,,5]),[4,Ue.json()];case 3:return Ft=vn.sent(),(null===(hn=Ft.error)||void 0===hn?void 0:hn.message)&&(st=Ft.error.message),[3,5];case 4:return vn.sent(),[3,5];case 5:throw ln.create("config-fetch-failed",{httpStatus:Ue.status,responseMessage:st});case 6:return[2,Ue.json()]}})})}function ht(Tt,hn,Se,ae){var we=hn.throttleEndTimeMillis,Ce=hn.backoffCount;return void 0===ae&&(ae=it),W(this,void 0,void 0,function(){var Ue,st,Ft,nn,vn,wn,$n;return P(this,function(Gn){switch(Gn.label){case 0:Ue=Tt.appId,st=Tt.measurementId,Gn.label=1;case 1:return Gn.trys.push([1,3,,4]),[4,ct(Se,we)];case 2:return Gn.sent(),[3,4];case 3:if(Ft=Gn.sent(),st)return K.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+st+' provided in the "measurementId" field in the local Firebase config. ['+Ft.message+"]"),[2,{appId:Ue,measurementId:st}];throw Ft;case 4:return Gn.trys.push([4,6,,7]),[4,ut(Tt)];case 5:return nn=Gn.sent(),ae.deleteThrottleMetadata(Ue),[2,nn];case 6:if(!function cn(Tt){if(!(Tt instanceof H.FirebaseError))return!1;var hn=Number(Tt.httpStatus);return 429===hn||500===hn||503===hn||504===hn}(vn=Gn.sent())){if(ae.deleteThrottleMetadata(Ue),st)return K.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+st+' provided in the "measurementId" field in the local Firebase config. ['+vn.message+"]"),[2,{appId:Ue,measurementId:st}];throw vn}return wn=503===Number(vn.httpStatus)?(0,H.calculateBackoffMillis)(Ce,ae.intervalMillis,30):(0,H.calculateBackoffMillis)(Ce,ae.intervalMillis),$n={throttleEndTimeMillis:Date.now()+wn,backoffCount:Ce+1},ae.setThrottleMetadata(Ue,$n),K.debug("Calling attemptFetch again in "+wn+" millis"),[2,ht(Tt,$n,Se,ae)];case 7:return[2]}})})}function ct(Tt,hn){return new Promise(function(Se,ae){var we=Math.max(hn-Date.now(),0),Ce=setTimeout(Se,we);Tt.addEventListener(function(){clearTimeout(Ce),ae(ln.create("fetch-throttle",{throttleEndTimeMillis:hn}))})})}var gt=function(){function Tt(){this.listeners=[]}return Tt.prototype.addEventListener=function(hn){this.listeners.push(hn)},Tt.prototype.abort=function(){this.listeners.forEach(function(hn){return hn()})},Tt}();var wt,bt,sn={},ze=[],nt={},mt="dataLayer",Nt="gtag",Kt=!1;function Un(Tt,hn,Se){void 0===Tt&&(Tt=!1),void 0===hn&&(hn={}),void 0===Se&&(Se=[]),Kt=Tt,sn=hn,ze=Se,mt="dataLayer",Nt="gtag"}function vt(){return{initializationPromisesMap:sn,dynamicConfigPromisesList:ze}}function tn(Tt){if(Kt)throw ln.create("already-initialized");Tt.dataLayerName&&(mt=Tt.dataLayerName),Tt.gtagName&&(Nt=Tt.gtagName)}function Sn(Tt,hn){!function Cn(){var Tt=[];if((0,H.isBrowserExtension)()&&Tt.push("This is a browser extension environment."),(0,H.areCookiesEnabled)()||Tt.push("Cookies are not available."),Tt.length>0){var hn=Tt.map(function(ae,we){return"("+(we+1)+") "+ae}).join(" "),Se=ln.create("invalid-analytics-context",{errorInfo:hn});K.warn(Se.message)}}();var Se=Tt.options.appId;if(!Se)throw ln.create("no-app-id");if(!Tt.options.apiKey){if(!Tt.options.measurementId)throw ln.create("no-api-key");K.warn('The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID '+Tt.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=sn[Se])throw ln.create("already-exists",{id:Se});if(!Kt){(function Qe(){for(var Tt=window.document.getElementsByTagName("script"),hn=0,Se=Object.values(Tt);hn<Se.length;hn++){var ae=Se[hn];if(ae.src&&ae.src.includes(Re))return ae}return null})()||function J(Tt){var hn=document.createElement("script");hn.src=Re+"?l="+Tt,hn.async=!0,document.head.appendChild(hn)}(mt),function ie(Tt){var hn=[];Array.isArray(window[Tt])?hn=window[Tt]:window[Tt]=hn}
1(mt);var ae=function Ye(Tt,hn,Se,ae,we){var Ce=function(){for(var Ue=[],st=0;st<arguments.length;st++)Ue[st]=arguments[st];window[ae].push(arguments)};return window[we]&&"function"==typeof window[we]&&(Ce=window[we]),window[we]=function Ne(Tt,hn,Se,ae){return function we(Ce,Ue,st){return W(this,void 0,void 0,function(){var Ft;return P(this,function(nn){switch(nn.label){case 0:return nn.trys.push([0,6,,7]),Ce!==He.EVENT?[3,2]:[4,Oe(Tt,hn,Se,Ue,st)];case 1:return nn.sent(),[3,5];case 2:return Ce!==He.CONFIG?[3,4]:[4,he(Tt,hn,Se,ae,Ue,st)];case 3:return nn.sent(),[3,5];case 4:Tt(He.SET,Ue),nn.label=5;case 5:return[3,7];case 6:return Ft=nn.sent(),K.error(Ft),[3,7];case 7:return[2]}})})}}(Ce,Tt,hn,Se),{gtagCore:Ce,wrappedGtag:window[we]}}(sn,ze,nt,mt,Nt);bt=ae.wrappedGtag,wt=ae.gtagCore,Kt=!0}sn[Se]=function St(Tt,hn,Se,ae,we){return W(this,void 0,void 0,function(){var Ce,Ue,st,Ft,nn,vn,wn;return P(this,function($n){switch($n.label){case 0:return Ce=function yt(Tt,hn,Se){return void 0===hn&&(hn=it),W(this,void 0,void 0,function(){var ae,we,Ce,Ue,st,Ft,nn=this;return P(this,function(vn){if(Ce=(ae=Tt.options).apiKey,Ue=ae.measurementId,!(we=ae.appId))throw ln.create("no-app-id");if(!Ce){if(Ue)return[2,{measurementId:Ue,appId:we}];throw ln.create("no-api-key")}return st=hn.getThrottleMetadata(we)||{backoffCount:0,throttleEndTimeMillis:Date.now()},Ft=new gt,setTimeout(function(){return W(nn,void 0,void 0,function(){return P(this,function(wn){return Ft.abort(),[2]})})},void 0!==Se?Se:6e4),[2,ht({appId:we,apiKey:Ce,measurementId:Ue},st,Ft,hn)]})})}(Tt),Ce.then(function(Gn){Se[Gn.measurementId]=Gn.appId,Tt.options.measurementId&&Gn.measurementId!==Tt.options.measurementId&&K.warn("The measurement ID in the local Firebase config ("+Tt.options.measurementId+") does not match the measurement ID fetched from the server ("+Gn.measurementId+"). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.")}).catch(function(Gn){return K.error(Gn)}),hn.push(Ce),Ue=function at(){return W(this,void 0,void 0,function(){var Tt;return P(this,function(hn){switch(hn.label){case 0:return(0,H.isIndexedDBAvailable)()?[3,1]:(K.warn(ln.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return hn.trys.push([1,3,,4]),[4,(0,H.validateIndexedDBOpenable)()];case 2:return hn.sent(),[3,4];case 3:return Tt=hn.sent(),K.warn(ln.create("indexeddb-unavailable",{errorInfo:Tt}).message),[2,!1];case 4:return[2,!0]}})})}().then(function(Gn){if(Gn)return ae.getId()}),[4,Promise.all([Ce,Ue])];case 1:return st=$n.sent(),Ft=st[0],nn=st[1],we("js",new Date),(wn={}).origin="firebase",wn.update=!0,vn=wn,null!=nn&&(vn.firebase_id=nn),we(He.CONFIG,Ft.measurementId,vn),[2,Ft.measurementId]}})})}(Tt,ze,nt,hn,wt);var Ue={app:Tt,logEvent:function(st,Ft,nn){(function O(Tt,hn,Se,ae,we){return W(this,void 0,void 0,function(){var Ce,Ue;return P(this,function(st){switch(st.label){case 0:return we&&we.global?(Tt(He.EVENT,Se,ae),[2]):[3,1];case 1:return[4,hn];case 2:Ce=st.sent(),Ue=x(x({},ae),{send_to:Ce}),Tt(He.EVENT,Se,Ue),st.label=3;case 3:return[2]}})})})(bt,sn[Se],st,Ft,nn).catch(function(vn){return K.error(vn)})},setCurrentScreen:function(st,Ft){(function b(Tt,hn,Se,ae){return W(this,void 0,void 0,function(){var we;return P(this,function(Ce){switch(Ce.label){case 0:return ae&&ae.global?(Tt(He.SET,{screen_name:Se}),[2,Promise.resolve()]):[3,1];case 1:return[4,hn];case 2:we=Ce.sent(),Tt(He.CONFIG,we,{update:!0,screen_name:Se}),Ce.label=3;case 3:return[2]}})})})(bt,sn[Se],st,Ft).catch(function(nn){return K.error(nn)})},setUserId:function(st,Ft){(function p(Tt,hn,Se,ae){return W(this,void 0,void 0,function(){var we;return P(this,function(Ce){switch(Ce.label){case 0:return ae&&ae.global?(Tt(He.SET,{user_id:Se}),[2,Promise.resolve()]):[3,1];case 1:return[4,hn];case 2:we=Ce.sent(),Tt(He.CONFIG,we,{update:!0,user_id:Se}),Ce.label=3;case 3:return[2]}})})})(bt,sn[Se],st,Ft).catch(function(nn){return K.error(nn)})},setUserProperties:function(st,Ft){(function A(Tt,hn,Se,ae){return W(this,void 0,void 0,function(){var we,Ce,Ue,st,Ft;return P(this,function(nn){switch(nn.label){case 0:if(!ae||!ae.global)return[3,1];for(we={},Ce=0,Ue=Object.keys(Se);Ce<Ue.length;Ce++)we["user_properties."+(st=Ue[Ce])]=Se[st];return Tt(He.SET,we),[2,Promise.resolve()];case 1:return[4,hn];case 2:Ft=nn.sent(),Tt(He.CONFIG,Ft,{update:!0,user_properties:Se}),nn.label=3;case 3:return[2]}})})})(bt,sn[Se],st,Ft).catch(function(nn){return K.error(nn)})},setAnalyticsCollectionEnabled:function(st){(function N(Tt,hn){return W(this,void 0,void 0,function(){var Se;return P(this,function(ae){switch(ae.label){case 0:return[4,Tt];case 1:return Se=ae.sent(),window["ga-disable-"+Se]=!hn,[2]}})})})(sn[Se],st).catch(function(Ft){return K.error(Ft)})},INTERNAL:{delete:function(){return delete sn[Se],Promise.resolve()}}};return Ue}var Fn="analytics";function jn(Tt){Tt.INTERNAL.registerComponent(new ee.Component(Fn,function(Se){return Sn(Se.getProvider("app").getImmediate(),Se.getProvider("installations").getImmediate())},"PUBLIC").setServiceProps({settings:tn,EventName:ge,isSupported:nr})),Tt.INTERNAL.registerComponent(new ee.Component("analytics-internal",function hn(Se){try{return{logEvent:Se.getProvider(Fn).getImmediate().logEvent}}catch(we){throw ln.create("interop-component-reg-failed",{reason:we})}},"PRIVATE")),Tt.registerVersion("@firebase/analytics","0.6.0")}function nr(){return W(this,void 0,void 0,function(){return P(this,function(Se){switch(Se.label){case 0:if((0,H.isBrowserExtension)())return[2,!1];if(!(0,H.areCookiesEnabled)())return[2,!1];if(!(0,H.isIndexedDBAvailable)())return[2,!1];Se.label=1;case 1:return Se.trys.push([1,3,,4]),[4,(0,H.validateIndexedDBOpenable)()];case 2:return[2,Se.sent()];case 3:return Se.sent(),[2,!1];case 4:return[2]}})})}jn(y.default)},9278:(xe,q,c)=>{"use strict";
1Object.defineProperty(q,"__esModule",{value:!0});var te,Z,t=c(9628),_=c(1270),x=c(6355),re=c(4003),Q=((te={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",te["bad-app-name"]="Illegal App name: '{$appName}",te["duplicate-app"]="Firebase App named '{$appName}' already exists",te["app-deleted"]="Firebase App named '{$appName}' already deleted",te["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",te["invalid-log-argument"]="First argument to `onLog` must be null or a function.",te),S=new _.ErrorFactory("app","Firebase",Q),W="@firebase/app",G="[DEFAULT]",$=((Z={})[W]="fire-core",Z["@firebase/analytics"]="fire-analytics",Z["@firebase/auth"]="fire-auth",Z["@firebase/database"]="fire-rtdb",Z["@firebase/functions"]="fire-fn",Z["@firebase/installations"]="fire-iid",Z["@firebase/messaging"]="fire-fcm",Z["@firebase/performance"]="fire-perf",Z["@firebase/remote-config"]="fire-rc",Z["@firebase/storage"]="fire-gcs",Z["@firebase/firestore"]="fire-fst",Z["fire-js"]="fire-js",Z["firebase-wrapper"]="fire-js-all",Z),se=new re.Logger("@firebase/app"),y=function(){function ge(O,b,p){var A,N,K=this;this.firebase_=p,this.isDeleted_=!1,this.name_=b.name,this.automaticDataCollectionEnabled_=b.automaticDataCollectionEnabled||!1,this.options_=_.deepCopy(O),this.container=new x.ComponentContainer(b.name),this._addComponent(new x.Component("app",function(){return K},"PUBLIC"));try{for(var J=t.__values(this.firebase_.INTERNAL.components.values()),ie=J.next();!ie.done;ie=J.next())this._addComponent(ie.value)}catch(Oe){A={error:Oe}}finally{try{ie&&!ie.done&&(N=J.return)&&N.call(J)}finally{if(A)throw A.error}}}return Object.defineProperty(ge.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(O){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=O},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),ge.prototype.delete=function(){var O=this;return new Promise(function(b){O.checkDestroyed_(),b()}).then(function(){return O.firebase_.INTERNAL.removeApp(O.name_),Promise.all(O.container.getProviders().map(function(b){return b.delete()}))}).then(function(){O.isDeleted_=!0})},ge.prototype._getService=function(O,b){return void 0===b&&(b=G),this.checkDestroyed_(),this.container.getProvider(O).getImmediate({identifier:b})},ge.prototype._removeServiceInstance=function(O,b){void 0===b&&(b=G),this.container.getProvider(O).clearInstance(b)},ge.prototype._addComponent=function(O){try{this.container.addComponent(O)}catch(b){se.debug("Component "+O.name+" failed to register with FirebaseApp "+this.name,b)}},ge.prototype._addOrOverwriteComponent=function(O){this.container.addOrOverwriteComponent(O)},ge.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw S.create("app-deleted",{appName:this.name_})},ge}();y.prototype.name&&y.prototype.options||y.prototype.delete||console.log("dc");var ee=function H(){var ge=function I(ge){var O={},b=new Map,p={__esModule:!0,initializeApp:function K(Ye,Qe){void 0===Qe&&(Qe={}),("object"!=typeof Qe||null===Qe)&&(Qe={name:Qe});var Ot=Qe;void 0===Ot.name&&(Ot.name=G);var ln=Ot.name;if("string"!=typeof ln||!ln)throw S.create("bad-app-name",{appName:String(ln)});if(_.contains(O,ln))throw S.create("duplicate-app",{appName:ln});var Lt=new ge(Ye,Ot,p);return O[ln]=Lt,Lt},app:N,registerVersion:function he(Ye,Qe,Ct){var Ot,ln=null!==(Ot=$[Ye])&&void 0!==Ot?Ot:Ye;Ct&&(ln+="-"+Ct);var Lt=ln.match(/\s|\//),Jt=Qe.match(/\s|\//);if(Lt||Jt){var Rt=['Unable to register library "'+ln+'" with version "'+Qe+'":'];return Lt&&Rt.push('library name "'+ln+'" contains illegal characters (whitespace or "/")'),Lt&&Jt&&Rt.push("and"),Jt&&Rt.push('version name "'+Qe+'" contains illegal characters (whitespace or "/")'),void se.warn(Rt.
1join(" "))}ie(new x.Component(ln+"-version",function(){return{library:ln,version:Qe}},"VERSION"))},setLogLevel:re.setLogLevel,onLog:function Oe(Ye,Qe){if(null!==Ye&&"function"!=typeof Ye)throw S.create("invalid-log-argument",{appName:name});re.setUserLogHandler(Ye,Qe)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:ie,removeApp:function A(Ye){delete O[Ye]},components:b,useAsService:function Ne(Ye,Qe){return"serverAuth"===Qe?null:Qe}}};function N(Ye){if(!_.contains(O,Ye=Ye||G))throw S.create("no-app",{appName:Ye});return O[Ye]}function ie(Ye){var Qe,Ct,Ot=Ye.name;if(b.has(Ot))return se.debug("There were multiple attempts to register component "+Ot+"."),"PUBLIC"===Ye.type?p[Ot]:null;if(b.set(Ot,Ye),"PUBLIC"===Ye.type){var ln=function(it){if(void 0===it&&(it=N()),"function"!=typeof it[Ot])throw S.create("invalid-app-argument",{appName:Ot});return it[Ot]()};void 0!==Ye.serviceProps&&_.deepExtend(ln,Ye.serviceProps),p[Ot]=ln,ge.prototype[Ot]=function(){for(var it=[],_t=0;_t<arguments.length;_t++)it[_t]=arguments[_t];return this._getService.bind(this,Ot).apply(this,Ye.multipleInstances?it:[])}}try{for(var Lt=t.__values(Object.keys(O)),Jt=Lt.next();!Jt.done;Jt=Lt.next())O[Jt.value]._addComponent(Ye)}catch(it){Qe={error:it}}finally{try{Jt&&!Jt.done&&(Ct=Lt.return)&&Ct.call(Lt)}finally{if(Qe)throw Qe.error}}return"PUBLIC"===Ye.type?p[Ot]:null}return p.default=p,Object.defineProperty(p,"apps",{get:function J(){return Object.keys(O).map(function(Ye){return O[Ye]})}}),N.App=ge,p}(y);return ge.INTERNAL=t.__assign(t.__assign({},ge.INTERNAL),{createFirebaseNamespace:H,extendNamespace:function O(b){_.deepExtend(ge,b)},createSubscribe:_.createSubscribe,ErrorFactory:_.ErrorFactory,deepExtend:_.deepExtend}),ge}(),z=function(){function ge(O){this.container=O}return ge.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(b){if(function oe(ge){var O=ge.getComponent();return"VERSION"===(null==O?void 0:O.type)}(b)){var p=b.getImmediate();return p.library+"/"+p.version}return null}).filter(function(b){return b}).join(" ")},ge}();if(_.isBrowser()&&void 0!==self.firebase){se.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var We=self.firebase.SDK_VERSION;We&&We.indexOf("LITE")>=0&&se.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var Re=ee.initializeApp;ee.initializeApp=function(){for(var ge=[],O=0;O<arguments.length;O++)ge[O]=arguments[O];return _.isNode()&&se.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),Re.apply(void 0,ge)};var He=ee;(function ve(ge,O){ge.INTERNAL.registerComponent(new x.Component("platform-logger",function(b){return new z(b)},"PRIVATE")),ge.registerVersion(W,"0.6.11",O),ge.registerVersion("fire-js","")})(He),q.default=He,q.firebase=He},2451:(xe,q,c)=>{(function(){var _,t=c(9278).default,x="function"==typeof Object.defineProperties?Object.defineProperty:function(e,u,U){e!=Array.prototype&&e!=Object.prototype&&(e[u]=U.value)},te=function re(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,e];for(var u=0;u<e.length;++u){var U=e[u];if(U&&U.Math==Math)return U}return globalThis}(this);function S(e){var u=0;return function(){return u<e.length?{done:!1,value:e[u++]}:{done:!0}}}function W(e){var u="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return u?u.call(e):{next:S(e)}}!function Q(e,u){if(u){var U=te;e=e.split(".");for(var pe=0;pe<e.length-1;pe++){var $e=e[pe];$e in U||(U[$e]={}),U=U[$e]}(u=u(pe=U[e=e[e.length-1]]))!=pe&&null!=u&&x(U,e,{configurable:!0,writable:!0,value:u})}}("Promise",function(e){function u(zt){this.b=0,this.c=void 0,this.a=[];var Pn=this.f();try{zt(Pn.resolve,Pn.reject)}catch(yr){Pn.reject(yr)}}function U(){this.a=null}function pe(zt){return zt instanceof u?zt:new u(function(Pn){Pn(zt)})}if(e)return e;U.prototype.b=function(zt){if(null==this.a){this.a=[];var Pn=this;this.c(function(){Pn.g()})}this.a.push(zt)};var $e=te.setTimeout;
1U.prototype.c=function(zt){$e(zt,0)},U.prototype.g=function(){for(;this.a&&this.a.length;){var zt=this.a;this.a=[];for(var Pn=0;Pn<zt.length;++Pn){var yr=zt[Pn];zt[Pn]=null;try{yr()}catch(Rr){this.f(Rr)}}}this.a=null},U.prototype.f=function(zt){this.c(function(){throw zt})},u.prototype.f=function(){function zt(Rr){return function(Si){yr||(yr=!0,Rr.call(Pn,Si))}}var Pn=this,yr=!1;return{resolve:zt(this.v),reject:zt(this.g)}},u.prototype.v=function(zt){if(zt===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(zt instanceof u)this.o(zt);else{e:switch(typeof zt){case"object":var Pn=null!=zt;break e;case"function":Pn=!0;break e;default:Pn=!1}Pn?this.m(zt):this.h(zt)}},u.prototype.m=function(zt){var Pn=void 0;try{Pn=zt.then}catch(yr){return void this.g(yr)}"function"==typeof Pn?this.u(Pn,zt):this.h(zt)},u.prototype.g=function(zt){this.i(2,zt)},u.prototype.h=function(zt){this.i(1,zt)},u.prototype.i=function(zt,Pn){if(0!=this.b)throw Error("Cannot settle("+zt+", "+Pn+"): Promise already settled in state"+this.b);this.b=zt,this.c=Pn,this.l()},u.prototype.l=function(){if(null!=this.a){for(var zt=0;zt<this.a.length;++zt)Dt.b(this.a[zt]);this.a=null}};var Dt=new U;return u.prototype.o=function(zt){var Pn=this.f();zt.Pa(Pn.resolve,Pn.reject)},u.prototype.u=function(zt,Pn){var yr=this.f();try{zt.call(Pn,yr.resolve,yr.reject)}catch(Rr){yr.reject(Rr)}},u.prototype.then=function(zt,Pn){function yr(us,_o){return"function"==typeof us?function(Ja){try{Rr(us(Ja))}catch(Nf){Si(Nf)}}:_o}var Rr,Si,Es=new u(function(us,_o){Rr=us,Si=_o});return this.Pa(yr(zt,Rr),yr(Pn,Si)),Es},u.prototype.catch=function(zt){return this.then(void 0,zt)},u.prototype.Pa=function(zt,Pn){function yr(){switch(Rr.b){case 1:zt(Rr.c);break;case 2:Pn(Rr.c);break;default:throw Error("Unexpected state: "+Rr.b)}}var Rr=this;null==this.a?Dt.b(yr):this.a.push(yr)},u.resolve=pe,u.reject=function(zt){return new u(function(Pn,yr){yr(zt)})},u.race=function(zt){return new u(function(Pn,yr){for(var Rr=W(zt),Si=Rr.next();!Si.done;Si=Rr.next())pe(Si.value).Pa(Pn,yr)})},u.all=function(zt){var Pn=W(zt),yr=Pn.next();return yr.done?pe([]):new u(function(Rr,Si){function Es(Ja){return function(Nf){us[Ja]=Nf,0==--_o&&Rr(us)}}var us=[],_o=0;do{us.push(void 0),_o++,pe(yr.value).Pa(Es(us.length-1),Si),yr=Pn.next()}while(!yr.done)})},u});var P=P||{},C=this||self,L=/^[\w+/_-]+[=]{0,2}$/,E=null;function m(){}function v(e){var u=typeof e;if("object"==u){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return u;var U=Object.prototype.toString.call(e);if("[object Window]"==U)return"object";if("[object Array]"==U||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==U||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==u&&void 0===e.call)return"object";return u}function R(e){var u=v(e);return"array"==u||"object"==u&&"number"==typeof e.length}function j(e){return"function"==v(e)}function M(e){var u=typeof e;return"object"==u&&null!=e||"function"==u}function V(e){return Object.prototype.hasOwnProperty.call(e,f)&&e[f]||(e[f]=++T)}var f="closure_uid_"+(1e9*Math.random()>>>0),T=0;function Z(e,u,U){return e.call.apply(e.bind,arguments)}function G(e,u,U){if(!e)throw Error();if(2<arguments.length){var pe=Array.prototype.slice.call(arguments,2);return function(){var $e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply($e,pe),e.apply(u,$e)}}return function(){return e.apply(u,arguments)}}function $(e,u,U){return($=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Z:G).apply(null,arguments)}function se(e,u){var U=Array.prototype.slice.call(arguments,1);return function(){var pe=U.slice();return pe.push.apply(pe,arguments),e.apply(this,pe)}}var y=Date.now||function(){return+new Date};function k(e,u){function U(){}U.prototype=u.prototype,e.$a=u.prototype,e.prototype=new U,e.prototype.constructor=e}function I(e,u,U){this.code=ee+e,this.message=u||z[e]||"",this.a=U||null}function H(e){var u=e&&e.code;return u?new I(u.substring(ee.length),e.message,e.serverResponse):null}k(I,Error),I.prototype.w=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},I.prototype.toJSON=function(){return this.w()};var We,ee="auth/",z={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
1ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
1d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},oe={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function ve(e){for(var u in oe)if(oe[u].id===e)return{firebaseEndpoint:(e=oe[u]).Sa,secureTokenEndpoint:e.Ya,identityPlatformEndpoint:e.Va};return null}function Re(e){if(!e)return!1;
1try{return!!e.$goog_Thenable}catch(u){return!1}}function He(e){if(Error.captureStackTrace)Error.captureStackTrace(this,He);else{var u=Error().stack;u&&(this.stack=u)}e&&(this.message=String(e))}function ge(e,u){for(var U="",pe=(e=e.split("%s")).length-1,$e=0;$e<pe;$e++)U+=e[$e]+($e<u.length?u[$e]:"%s");He.call(this,U+e[pe])}function O(e,u){throw new ge("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function b(e,u){this.c=e,this.f=u,this.b=0,this.a=null}function p(e,u){e.f(u),100>e.b&&(e.b++,u.next=e.a,e.a=u)}function A(){this.b=this.a=null}We=ve("__EID__")?"__EID__":void 0,k(He,Error),He.prototype.name="CustomError",k(ge,He),ge.prototype.name="AssertionError",b.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var N=new b(function(){return new J},function(e){e.reset()});function K(){var e=oi,u=null;return e.a&&(u=e.a,e.a=e.a.next,e.a||(e.b=null),u.next=null),u}function J(){this.next=this.b=this.a=null}A.prototype.add=function(e,u){var U=N.get();U.set(e,u),this.b?this.b.next=U:this.a=U,this.b=U},J.prototype.set=function(e,u){this.a=e,this.b=u,this.next=null},J.prototype.reset=function(){this.next=this.b=this.a=null};var ie=Array.prototype.indexOf?function(e,u){return Array.prototype.indexOf.call(e,u,void 0)}:function(e,u){if("string"==typeof e)return"string"!=typeof u||1!=u.length?-1:e.indexOf(u,0);for(var U=0;U<e.length;U++)if(U in e&&e[U]===u)return U;return-1},he=Array.prototype.forEach?function(e,u,U){Array.prototype.forEach.call(e,u,U)}:function(e,u,U){for(var pe=e.length,$e="string"==typeof e?e.split(""):e,Dt=0;Dt<pe;Dt++)Dt in $e&&u.call(U,$e[Dt],Dt,e)},Ne=Array.prototype.filter?function(e,u){return Array.prototype.filter.call(e,u,void 0)}:function(e,u){for(var U=e.length,pe=[],$e=0,Dt="string"==typeof e?e.split(""):e,zt=0;zt<U;zt++)if(zt in Dt){var Pn=Dt[zt];u.call(void 0,Pn,zt,e)&&(pe[$e++]=Pn)}return pe},Ye=Array.prototype.map?function(e,u){return Array.prototype.map.call(e,u,void 0)}:function(e,u){for(var U=e.length,pe=Array(U),$e="string"==typeof e?e.split(""):e,Dt=0;Dt<U;Dt++)Dt in $e&&(pe[Dt]=u.call(void 0,$e[Dt],Dt,e));return pe},Qe=Array.prototype.some?function(e,u){return Array.prototype.some.call(e,u,void 0)}:function(e,u){for(var U=e.length,pe="string"==typeof e?e.split(""):e,$e=0;$e<U;$e++)if($e in pe&&u.call(void 0,pe[$e],$e,e))return!0;return!1};function Ot(e,u){return 0<=ie(e,u)}function ln(e,u){var U;return(U=0<=(u=ie(e,u)))&&Array.prototype.splice.call(e,u,1),U}function Lt(e,u){!function Oe(e,u){for(var U="string"==typeof e?e.split(""):e,pe=e.length-1;0<=pe;--pe)pe in U&&u.call(void 0,U[pe],pe,e)}(e,function(pe,$e){u.call(void 0,pe,$e,e)&&Array.prototype.splice.call(e,$e,1)})}function Jt(e){return Array.prototype.concat.apply([],arguments)}function Rt(e){var u=e.length;if(0<u){for(var U=Array(u),pe=0;pe<u;pe++)U[pe]=e[pe];return U}return[]}var sn,it=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},_t=/&/g,ut=/</g,yt=/>/g,ht=/"/g,ct=/'/g,cn=/\x00/g,gt=/[\x00&<>"']/;function at(e,u){return-1!=e.indexOf(u)}function St(e,u){return e<u?-1:e>u?1:0}e:{var ze=C.navigator;if(ze){var nt=ze.userAgent;if(nt){sn=nt;break e}}sn=""}function mt(e){return at(sn,e)}function Nt(e,u){for(var U in e)u.call(void 0,e[U],U,e)}function wt(e){for(var u in e)return!1;return!0}function bt(e){var U,u={};for(U in e)u[U]=e[U];return u}var Kt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Un(e,u){for(var U,pe,$e=1;$e<arguments.length;$e++){for(U in pe=arguments[$e])e[U]=pe[U];for(var Dt=0;Dt<Kt.length;Dt++)U=Kt[Dt],Object.prototype.hasOwnProperty.call(pe,U)&&(e[U]=pe[U])}}function vt(e,u){e:{try{var U=e&&e.ownerDocument,pe=U&&(U.defaultView||U.parentWindow);if((pe=pe||C).Element&&pe.Location){var $e=pe;break e}}catch(zt){}$e=null}if($e&&void 0!==$e[u]&&(!e||!(e instanceof $e[u])&&(e instanceof $e.Location||e instanceof $e.Element))){if(M(e))try{var Dt=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(zt){Dt="<object could not be stringified>"}else Dt=void 0===e?"undefined":null===e?"null":typeof e;O("Argument is not a %s (or a non-Element, non-Location mock); got: %s",u,Dt)}}function tn(e,u){this.a=e===Nn&&u||"",this.b=Sn}function Cn(e){return e instanceof tn&&e.constructor===tn&&e.b===Sn?e.a:(O("expected object of type Const, got '"+e+"'"),"type_error:Const")}tn.prototype.sa=!0,tn.prototype.ra=function(){return this.a},tn.prototype.toString=function(){return"Const{"+this.a+"}"};var Sn={},Nn={},rr=new tn(Nn,"");function Fn(e,u){this.a=e===ae&&u||"",this.b=Se}function jn(e){return e instanceof Fn&&e.constructor===Fn&&e.b===Se?e.a:(O("expected object of type TrustedResourceUrl, got '"+e+"' of type "+v(e)),"type_error:TrustedResourceUrl")}function nr(e,u){var U=Cn(e);if(!hn.test(U))throw Error("Invalid TrustedResourceUrl format: "+U);return e=U.replace(Tt,function(pe,$e){if(!Object.prototype.hasOwnProperty.call(u,$e))throw Error('Found marker, "'+$e+'", in format str
1ing, "'+U+'", but no valid label mapping found in args: '+JSON.stringify(u));return(pe=u[$e])instanceof tn?Cn(pe):encodeURIComponent(String(pe))}),new Fn(ae,e)}Fn.prototype.sa=!0,Fn.prototype.ra=function(){return this.a.toString()},Fn.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Tt=/%{(\w+)}/g,hn=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Se={},ae={};function we(e,u){this.a=e===nn&&u||"",this.b=Ft}function Ce(e){return e instanceof we&&e.constructor===we&&e.b===Ft?e.a:(O("expected object of type SafeUrl, got '"+e+"' of type "+v(e)),"type_error:SafeUrl")}we.prototype.sa=!0,we.prototype.ra=function(){return this.a.toString()},we.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ue=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function st(e){return e instanceof we?e:(e="object"==typeof e&&e.sa?e.ra():String(e),Ue.test(e)||(e="about:invalid#zClosurez"),new we(nn,e))}var Ft={},nn={};function vn(){this.a="",this.b=$n}function wn(e){return e instanceof vn&&e.constructor===vn&&e.b===$n?e.a:(O("expected object of type SafeHtml, got '"+e+"' of type "+v(e)),"type_error:SafeHtml")}vn.prototype.sa=!0,vn.prototype.ra=function(){return this.a.toString()},vn.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var $n={};function Gn(e){var u=new vn;return u.a=e,u}Gn("<!DOCTYPE html>");var ir=Gn("");function on(e,u){for(var U=e.split("%s"),pe="",$e=Array.prototype.slice.call(arguments,1);$e.length&&1<U.length;)pe+=U.shift()+$e.shift();return pe+U.join("%s")}function mn(e){return gt.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(_t,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(ut,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(yt,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(ht,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(ct,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(cn,"&#0;"))),e}function Mt(e){return Mt[" "](e),e}Gn("<br>"),Mt[" "]=m;var Ar,e,At=mt("Opera"),Ht=mt("Trident")||mt("MSIE"),Yt=mt("Edge"),un=Yt||Ht,An=mt("Gecko")&&!(at(sn.toLowerCase(),"webkit")&&!mt("Edge"))&&!(mt("Trident")||mt("MSIE"))&&!mt("Edge"),sr=at(sn.toLowerCase(),"webkit")&&!mt("Edge");function fr(){var e=C.document;return e?e.documentMode:void 0}e:{var Dr="",dr=(e=sn,An?/rv:([^\);]+)(\)|;)/.exec(e):Yt?/Edge\/([\d\.]+)/.exec(e):Ht?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):sr?/WebKit\/(\S+)/.exec(e):At?/(?:Version)[ \/]?(\S+)/.exec(e):void 0);if(dr&&(Dr=dr?dr[1]:""),Ht){var Kr=fr();if(null!=Kr&&Kr>parseFloat(Dr)){Ar=String(Kr);break e}}Ar=Dr}var Lr,jr={};function Ur(e){return function ke(e,u){var U=jr;return Object.prototype.hasOwnProperty.call(U,e)?U[e]:U[e]=u(e)}(e,function(){for(var u=0,U=it(String(Ar)).split("."),pe=it(String(e)).split("."),$e=Math.max(U.length,pe.length),Dt=0;0==u&&Dt<$e;Dt++){var zt=U[Dt]||"",Pn=pe[Dt]||"";do{if(zt=/(\d*)(\D*)(.*)/.exec(zt)||["","","",""],Pn=/(\d*)(\D*)(.*)/.exec(Pn)||["","","",""],0==zt[0].length&&0==Pn[0].length)break;u=St(0==zt[1].length?0:parseInt(zt[1],10),0==Pn[1].length?0:parseInt(Pn[1],10))||St(0==zt[2].length,0==Pn[2].length)||St(zt[2],Pn[2]),zt=zt[3],Pn=Pn[3]}while(0==u)}return 0<=u})}Lr=C.document&&Ht?fr():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(e){}var _i=!Ht||9<=Number(Lr);function kt(e){var u=document;return"string"==typeof e?u.getElementById(e):e}function an(e,u){Nt(u,function(U,pe){U&&"object"==typeof U&&U.sa&&(U=U.ra()),"style"==pe?e.style.cssText=U:"class"==pe?e.className=U:"for"==pe?e.htmlFor=U:Dn.hasOwnProperty(pe)?e.setAttribute(Dn[pe],U):0==pe.lastIndexOf("aria-",0)||0==pe.lastIndexOf("data-",0)?e.setAttribute(pe,U):e[pe]=U})}var er,Nr,Dn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Yn(e,u,U){function pe(zt){zt&&u.appendChild("string"==typeof zt?e.createTextNode(zt):zt)}for(var $e=2;$e<U.length;$e++){var Dt=U[$e];!R(Dt)||M(Dt)&&0<Dt.nodeType?pe(Dt):he(En(Dt)?Rt(Dt):Dt,pe)}}function Qt(e,u){return u=String(u),"application/xhtml+xml"===e.contentType&&(u=u.toLowerCase()),e.createElement(u)}function En(e){if(e&&"number"==typeof e.length){if(M(e))return"function"==typeof e.item||"string"==typeof e.item;if(j(e))return"function"==typeof e.item}return!1}function Hn(e){C.setTimeout(function(){throw e},0)}function wr(e,u){Nr||function kr(){if(C.Promise&&C.Promise.resolve){var e=C.Promise.resolve(void 0);Nr=function(){e.then(ui)}}else Nr=function(){var u=ui;!j(C.setImmediate)||C.Window&&C.Window.prototype&&!mt("Edge")&&C.Window.prototype.setImmediate==C.setImmediate?(er||(er=function or(){var e=C.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!mt("Presto")&&(e=function(){var $e=Qt(document,"IFRAME");$e.style.display="none",function Wt(e){var u=new Fn(ae,Cn(rr));vt(e,"HTMLIFrameElement"),e.src=jn(u).toString()}($e),document.documentElement.appendChild($e);var Dt=$e.contentWindow;($e=Dt.document).open(),$e.write(wn(ir)),$e.close();var zt="callImmediate"+Math.random(),Pn="file:"==Dt.location.protocol?"*":Dt.location.protocol+"//"+Dt.location.host;$e=$(function(yr){("*"==Pn||yr.origin==Pn)&&yr.data==zt&&this.port1.onmessage()},this),Dt.addEventListener("message",$e,!1),this.port1={},this.port2={postMessage:function(){Dt.postMessage(zt,Pn)}}}),void 0!==e&&!mt("Trident")&&!mt("MSIE")){var u=new e,U={},pe=U;return u.port1.onmessage=function(){if(void 0!==U.next){var $e=(U=U.next).Fb;U.Fb=null,$e()}},function($e){pe.next={Fb:$e},pe=pe.next,u.port2.postMessage(0)}}return function($e){C.setTimeout($e,0)}}()),er(u)):C.setImmediate(u)}}(),ei||(Nr(),ei=!0),oi.add(e,u)}var ei=!1,oi=new A;function ui(){for(var e;e=K();){try{e.a.call(e.b)}catch(u){Hn(u)}p(N,e)}ei=!1}function Yr(e,u){if(this.a=Ci,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=m)try{var U=this;e.call(u,function(pe){Zi(U,Ji,pe)},function(pe){if(!(pe instanceof Ti))try{throw pe instanceof Error?pe:Error("Promise rejected.")}catch($e){}Zi(U,ci,pe)})}catch(pe){Zi(this,ci,pe)}}var Ci=0,Ji=2,ci=3;function Gi(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}Gi.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var rs=new b(function(){return new Gi},function(e){e.reset()});function Oi(e,u,U){var pe=rs.get();return pe.g=e,pe.b=u,pe.f=U,pe}function $r(e){if(e instanceof Yr)return e;var u=new Yr(m);return Zi(u,Ji,e),u}function si(e){return new Yr(function(u,U){U(e)})}function cs(e,u,U){zi(e,u,U,null)||wr(se(u,e))}function is(e){return new Yr(function(u){var U=e.length,pe=[];if(U)for(var $e=function(Pn,yr,Rr){U--,pe[Pn]=yr?{Ob:!0,value:Rr}:{Ob:!1,reason:Rr},0==U&&u(pe)},Dt=0;Dt<e.length;Dt++)cs(e[Dt],se($e,Dt,!0),se($e,Dt,!1));else u(pe)})}function $i(e,u){if(e.a==Ci)if(e.c){var U=e.c;if(U.b){for(var pe=0,$e=null,Dt=null,zt=U.b;zt&&(zt.c||(pe++,zt.a==e&&($e=zt),!($e&&1<pe)));zt=zt.next)$e||(Dt=zt);$e&&(U.a==Ci&&1==pe?$i(U,u):(Dt?((pe=Dt).next==U.f&&(U.f=pe),pe.next=pe.next.next):hs(U),fs(U,$e,ci,u)))}e.c=null}else Zi(e,ci,u)}function Hi(e,u){e.b||e.a!=Ji&&e.a!=ci||ss(e),e.f?e.f.next=u:e.b=u,e.f=u}function ai(e,u,U,pe){var $e=Oi(null,null,null);return $e.a=new Yr(function(Dt,zt){$e.g=u?function(Pn){try{var yr=u.call(pe,Pn);Dt(yr)}catch(Rr){zt(Rr)}}:Dt,$e.b=U?function(Pn){try{var yr=U.call(pe,Pn);void 0===yr&&Pn instanceof Ti?zt(Pn):Dt(yr)}catch(Rr){zt(Rr)}}:zt}),$e.a.c=e,Hi(e,$e),$e.a}
1function Zi(e,u,U){e.a==Ci&&(e===U&&(u=ci,U=new TypeError("Promise cannot resolve to itself")),e.a=1,zi(U,e.Zc,e.$c,e)||(e.i=U,e.a=u,e.c=null,ss(e),u!=ci||U instanceof Ti||function hi(e,u){e.g=!0,wr(function(){e.g&&Mi.call(null,u)})}(e,U)))}function zi(e,u,U,pe){if(e instanceof Yr)return Hi(e,Oi(u||m,U||null,pe)),!0;if(Re(e))return e.then(u,U,pe),!0;if(M(e))try{var $e=e.then;if(j($e))return function xi(e,u,U,pe,$e){function Dt(yr){Pn||(Pn=!0,pe.call($e,yr))}var Pn=!1;try{u.call(e,function zt(yr){Pn||(Pn=!0,U.call($e,yr))},Dt)}catch(yr){Dt(yr)}}(e,$e,u,U,pe),!0}catch(Dt){return U.call(pe,Dt),!0}return!1}function ss(e){e.h||(e.h=!0,wr(e.fc,e))}function hs(e){var u=null;return e.b&&(e.b=(u=e.b).next,u.next=null),e.b||(e.f=null),u}function fs(e,u,U,pe){if(U==ci&&u.b&&!u.c)for(;e&&e.g;e=e.c)e.g=!1;if(u.a)u.a.c=null,bs(u,U,pe);else try{u.c?u.g.call(u.f):bs(u,U,pe)}catch($e){Mi.call(null,$e)}p(rs,u)}function bs(e,u,U){u==Ji?e.g.call(e.f,U):e.b&&e.b.call(e.f,U)}Yr.prototype.then=function(e,u,U){return ai(this,j(e)?e:null,j(u)?u:null,U)},Yr.prototype.$goog_Thenable=!0,(_=Yr.prototype).na=function(e,u){return(e=Oi(e,e,u)).c=!0,Hi(this,e),this},_.s=function(e,u){return ai(this,null,e,u)},_.cancel=function(e){if(this.a==Ci){var u=new Ti(e);wr(function(){$i(this,u)},this)}},_.Zc=function(e){this.a=Ci,Zi(this,Ji,e)},_.$c=function(e){this.a=Ci,Zi(this,ci,e)},_.fc=function(){for(var e;e=hs(this);)fs(this,e,this.a,this.i);this.h=!1};var Mi=Hn;function Ti(e){He.call(this,e)}function os(){0!=Ii&&(tt[V(this)]=this),this.xa=this.xa,this.oa=this.oa}k(Ti,He),Ti.prototype.name="cancel";var Ii=0,tt={};function Xe(e){if(!e.xa&&(e.xa=!0,e.Da(),0!=Ii)){var u=V(e);if(0!=Ii&&e.oa&&0<e.oa.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete tt[u]}}os.prototype.xa=!1,os.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var Ut=Object.freeze||function(e){return e},gn=!Ht||9<=Number(Lr),_n=Ht&&!Ur("9"),Mn=function(){if(!C.addEventListener||!Object.defineProperty)return!1;var e=!1,u=Object.defineProperty({},"passive",{get:function(){e=!0}});try{C.addEventListener("test",m,u),C.removeEventListener("test",m,u)}catch(U){}return e}();function qn(e,u){this.type=e,this.b=this.target=u,this.defaultPrevented=!1}function cr(e,u){if(qn.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var U=this.type=e.type,pe=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=u,u=e.relatedTarget){if(An){e:{try{Mt(u.nodeName);var $e=!0;break e}catch(Dt){}$e=!1}$e||(u=null)}}else"mouseover"==U?u=e.fromElement:"mouseout"==U&&(u=e.toElement);this.relatedTarget=u,pe?(this.clientX=void 0!==pe.clientX?pe.clientX:pe.pageX,this.clientY=void 0!==pe.clientY?pe.clientY:pe.pageY,this.screenX=pe.screenX||0,this.screenY=pe.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:ur[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}qn.prototype.preventDefault=function(){this.defaultPrevented=!0},k(cr,qn);var ur=Ut({2:"touch",3:"pen",4:"mouse"});cr.prototype.preventDefault=function(){cr.$a.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,_n)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(u){}},cr.prototype.g=function(){return this.a};var _r="closure_listenable_"+(1e6*Math.random()|0),Mr=0;function Wr(e,u,U,pe,$e){this.listener=e,this.proxy=null,this.src=u,this.type=U,this.capture=!!pe,this.Ua=$e,this.key=++Mr,this.va=this.Oa=!1}
1function le(e){e.va=!0,e.listener=null,e.proxy=null,e.src=null,e.Ua=null}function Ae(e){this.src=e,this.a={},this.b=0}function be(e,u){var U=u.type;U in e.a&&ln(e.a[U],u)&&(le(u),0==e.a[U].length&&(delete e.a[U],e.b--))}function Me(e,u,U,pe){for(var $e=0;$e<e.length;++$e){var Dt=e[$e];if(!Dt.va&&Dt.listener==u&&Dt.capture==!!U&&Dt.Ua==pe)return $e}return-1}Ae.prototype.add=function(e,u,U,pe,$e){var Dt=e.toString();(e=this.a[Dt])||(e=this.a[Dt]=[],this.b++);var zt=Me(e,u,pe,$e);return-1<zt?(u=e[zt],U||(u.Oa=!1)):((u=new Wr(u,this.src,Dt,!!pe,$e)).Oa=U,e.push(u)),u};var dt="closure_lm_"+(1e6*Math.random()|0),rn={};function xn(e,u,U,pe,$e){if(pe&&pe.once)hr(e,u,U,pe,$e);else if(Array.isArray(u))for(var Dt=0;Dt<u.length;Dt++)xn(e,u[Dt],U,pe,$e);else U=Wn(U),e&&e[_r]?ue(e,u,U,M(pe)?!!pe.capture:!!pe,$e):Er(e,u,U,!1,pe,$e)}function Er(e,u,U,pe,$e,Dt){if(!u)throw Error("Invalid event type");var zt=M($e)?!!$e.capture:!!$e,Pn=Be(e);if(Pn||(e[dt]=Pn=new Ae(e)),!(U=Pn.add(u,U,pe,zt,Dt)).proxy)if(pe=function gr(){var e=Ve,u=gn?function(U){return e.call(u.src,u.listener,U)}:function(U){if(!(U=e.call(u.src,u.listener,U)))return U};return u}(),U.proxy=pe,pe.src=e,pe.listener=U,e.addEventListener)Mn||($e=zt),void 0===$e&&($e=!1),e.addEventListener(u.toString(),pe,$e);else if(e.attachEvent)e.attachEvent(ii(u.toString()),pe);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(pe)}}function hr(e,u,U,pe,$e){if(Array.isArray(u))for(var Dt=0;Dt<u.length;Dt++)hr(e,u[Dt],U,pe,$e);else U=Wn(U),e&&e[_r]?et(e,u,U,M(pe)?!!pe.capture:!!pe,$e):Er(e,u,U,!0,pe,$e)}function pr(e,u,U,pe,$e){if(Array.isArray(u))for(var Dt=0;Dt<u.length;Dt++)pr(e,u[Dt],U,pe,$e);else pe=M(pe)?!!pe.capture:!!pe,U=Wn(U),e&&e[_r]?(e=e.v,(u=String(u).toString())in e.a&&-1<(U=Me(Dt=e.a[u],U,pe,$e))&&(le(Dt[U]),Array.prototype.splice.call(Dt,U,1),0==Dt.length&&(delete e.a[u],e.b--))):e&&(e=Be(e))&&(u=e.a[u.toString()],e=-1,u&&(e=Me(u,U,pe,$e)),(U=-1<e?u[e]:null)&&zr(U))}function zr(e){if("number"!=typeof e&&e&&!e.va){var u=e.src;if(u&&u[_r])be(u.v,e);else{var U=e.type,pe=e.proxy;u.removeEventListener?u.removeEventListener(U,pe,e.capture):u.detachEvent?u.detachEvent(ii(U),pe):u.addListener&&u.removeListener&&u.removeListener(pe),
1(U=Be(u))?(be(U,e),0==U.b&&(U.src=null,u[dt]=null)):le(e)}}}function ii(e){return e in rn?rn[e]:rn[e]="on"+e}function Or(e,u,U,pe){var $e=!0;if((e=Be(e))&&(u=e.a[u.toString()]))for(u=u.concat(),e=0;e<u.length;e++){var Dt=u[e];Dt&&Dt.capture==U&&!Dt.va&&(Dt=Je(Dt,pe),$e=$e&&!1!==Dt)}return $e}function Je(e,u){var U=e.listener,pe=e.Ua||e.src;return e.Oa&&zr(e),U.call(pe,u)}function Ve(e,u){if(e.va)return!0;if(!gn){if(!u)e:{u=["window","event"];for(var U=C,pe=0;pe<u.length;pe++)if(null==(U=U[u[pe]])){u=null;break e}u=U}if(u=new cr(pe=u,this),U=!0,!(0>pe.keyCode||null!=pe.returnValue)){e:{var $e=!1;if(0==pe.keyCode)try{pe.keyCode=-1;break e}catch(zt){$e=!0}($e||null==pe.returnValue)&&(pe.returnValue=!0)}for(pe=[],$e=u.b;$e;$e=$e.parentNode)pe.push($e);for(e=e.type,$e=pe.length-1;0<=$e;$e--){u.b=pe[$e];var Dt=Or(pe[$e],e,!0,u);U=U&&Dt}for($e=0;$e<pe.length;$e++)u.b=pe[$e],Dt=Or(pe[$e],e,!1,u),U=U&&Dt}return U}return Je(e,new cr(u,this))}function Be(e){return(e=e[dt])instanceof Ae?e:null}var It="__closure_events_fn_"+(1e9*Math.random()>>>0);function Wn(e){return j(e)?e:(e[It]||(e[It]=function(u){return e.handleEvent(u)}),e[It])}function Sr(){os.call(this),this.v=new Ae(this),this.$b=this,this.fb=null}function ue(e,u,U,pe,$e){e.v.add(String(u),U,!1,pe,$e)}function et(e,u,U,pe,$e){e.v.add(String(u),U,!0,pe,$e)}function de(e,u,U,pe){if(!(u=e.v.a[String(u)]))return!0;u=u.concat();for(var $e=!0,Dt=0;Dt<u.length;++Dt){var zt=u[Dt];if(zt&&!zt.va&&zt.capture==U){var Pn=zt.listener,yr=zt.Ua||zt.src;zt.Oa&&be(e.v,zt),$e=!1!==Pn.call(yr,pe)&&$e}}return $e&&!pe.defaultPrevented}function Ze(e,u,U){if(j(e))U&&(e=$(e,U));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=$(e.handleEvent,e)}return 2147483647<Number(u)?-1:C.setTimeout(e,u||0)}function Xt(e){var u=null;return new Yr(function(U,pe){-1==(u=Ze(function(){U(void 0)},e))&&pe(Error("Failed to schedule timer."))}).s(function(U){throw C.clearTimeout(u),U})}function Jn(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"==typeof e)return e.split("");if(R(e)){for(var u=[],U=e.length,pe=0;pe<U;pe++)u.push(e[pe]);return u}for(pe in u=[],U=0,e)u[U++]=e[pe];return u}function Cr(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.V||"function"!=typeof e.V){if(R(e)||"string"==typeof e){var u=[];e=e.length;for(var U=0;U<e;U++)u.push(U);return u}for(var pe in u=[],U=0,e)u[U++]=pe;return u}}function Jr(e,u){this.b={},this.a=[],this.c=0;var U=arguments.length;if(1<U){if(U%2)throw Error("Uneven number of arguments");for(var pe=0;pe<U;pe+=2)this.set(arguments[pe],arguments[pe+1])}else if(e)if(e instanceof Jr)for(U=e.Y(),pe=0;pe<U.length;pe++)this.set(U[pe],e.get(U[pe]));else for(pe in e)this.set(pe,e[pe])}function Zn(e){if(e.c!=e.a.length){for(var u=0,U=0;u<e.a.length;){var pe=e.a[u];qr(e.b,pe)&&(e.a[U++]=pe),u++}e.a.length=U}if(e.c!=e.a.length){var $e={};for(U=u=0;u<e.a.length;)qr($e,pe=e.a[u])||(e.a[U++]=pe,$e[pe]=1),u++;e.a.length=U}}function qr(e,u){return Object.prototype.hasOwnProperty.call(e,u)}k(Sr,os),Sr.prototype[_r]=!0,Sr.prototype.addEventListener=function(e,u,U,pe){xn(this,e,u,U,pe)},Sr.prototype.removeEventListener=function(e,u,U,pe){pr(this,e,u,U,pe)},Sr.prototype.dispatchEvent=function(e){var u,U=this.fb;if(U)for(u=[];U;U=U.fb)u.push(U);U=this.$b;var pe=e.type||e;if("string"==typeof e)e=new qn(e,U);else if(e instanceof qn)e.target=e.target||U;else{var $e=e;Un(e=new qn(pe,U),$e)}if($e=!0,u)for(var Dt=u.length-1;0<=Dt;Dt--){var zt=e.b=u[Dt];$e=de(zt,pe,!0,e)&&$e}if($e=de(zt=e.b=U,pe,!0,e)&&$e,$e=de(zt,pe,!1,e)&&$e,u)for(Dt=0;Dt<u.length;Dt++)$e=de(zt=e.b=u[Dt],pe,!1,e)&&$e;return $e},Sr.prototype.Da=function(){if(Sr.$a.Da.call(this),this.v){var U,e=this.v;for(U in e.a){for(var pe=e.a[U],$e=0;$e<pe.length;$e++)le(pe[$e]);delete e.a[U],e.b--}}this.fb=null},(_=Jr.prototype).V=function(){Zn(this);for(var e=[],u=0;u<this.a.length;u++)e.push(this.b[this.a[u]]);return e},_.Y=function(){return Zn(this),this.a.concat()},_.clear=function(){this.b={},this.c=this.a.length=0},_.get=function(e,u){return qr(this.b,e)?this.b[e]:u},_.set=function(e,u){qr(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=u},_.forEach=function(e,u){for(var U=this.Y(),pe=0;pe<U.length;pe++){var $e=U[pe],Dt=this.get($e);e.call(u,Dt,$e,this)}};var Pi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function ji(e,u){var U;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,e instanceof ji?(this.i=void 0!==u?u:e.i,Ki(this,e.f),this.l=e.l,this.a=e.a,Ui(this,e.g),this.c=e.c,ps(this,xo(e.b)),this.h=e.h):e&&(U=String(e).match(Pi))?(this.i=!!u,Ki(this,U[1]||"",!0),this.l=Ms(U[2]||""),this.a=Ms(U[3]||"",!0),Ui(this,U[4]),this.c=Ms(U[5]||"",!0),ps(this,U[6]||"",!0),this.h=Ms(U[7]||"")):(this.i=!!u,this.b=new Js(null,this.i))}function Ki(e,u,U){e.f=U?Ms(u,!0):u,e.f&&(e.f=e.f.replace(/:$/,""))}function Ui(e,u){if(u){if(u=Number(u),isNaN(u)||0>u)throw Error("Bad port number "+u);e.g=u}else e.g=null}
1function ps(e,u,U){u instanceof Js?(e.b=u,function ki(e,u){u&&!e.f&&(js(e),e.c=null,e.a.forEach(function(U,pe){var $e=pe.toLowerCase();pe!=$e&&(Os(this,pe),Di(this,$e,U))},e)),e.f=u}(e.b,e.i)):(U||(u=as(u,Bs)),e.b=new Js(u,e.i))}function qi(e,u,U){e.b.set(u,U)}function Xi(e,u){return e.b.get(u)}function ws(e){return e instanceof ji?new ji(e):new ji(e,void 0)}function gs(e,u,U,pe){var $e=new ji(null,void 0);return e&&Ki($e,e),u&&($e.a=u),U&&Ui($e,U),pe&&($e.c=pe),$e}function Ms(e,u){return e?u?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function as(e,u,U){return"string"==typeof e?(e=encodeURI(e).replace(u,Ws),U&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Ws(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}ji.prototype.toString=function(){var e=[],u=this.f;u&&e.push(as(u,Ro,!0),":");var U=this.a;return(U||"file"==u)&&(e.push("//"),(u=this.l)&&e.push(as(u,Ro,!0),"@"),e.push(encodeURIComponent(String(U)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(U=this.g)&&e.push(":",String(U))),(U=this.c)&&(this.a&&"/"!=U.charAt(0)&&e.push("/"),e.push(as(U,"/"==U.charAt(0)?Gs:Qs,!0))),(U=this.b.toString())&&e.push("?",U),(U=this.h)&&e.push("#",as(U,Xs)),e.join("")},ji.prototype.resolve=function(e){var u=new ji(this),U=!!e.f;U?Ki(u,e.f):U=!!e.l,U?u.l=e.l:U=!!e.a,U?u.a=e.a:U=null!=e.g;var pe=e.c;if(U)Ui(u,e.g);else if(U=!!e.c){if("/"!=pe.charAt(0))if(this.a&&!this.c)pe="/"+pe;else{var $e=u.c.lastIndexOf("/");-1!=$e&&(pe=u.c.substr(0,$e+1)+pe)}if(".."==($e=pe)||"."==$e)pe="";else if(at($e,"./")||at($e,"/.")){pe=0==$e.lastIndexOf("/",0),$e=$e.split("/");for(var Dt=[],zt=0;zt<$e.length;){var Pn=$e[zt++];"."==Pn?pe&&zt==$e.length&&Dt.push(""):".."==Pn?((1<Dt.length||1==Dt.length&&""!=Dt[0])&&Dt.pop(),pe&&zt==$e.length&&Dt.push("")):(Dt.push(Pn),pe=!0)}pe=Dt.join("/")}else pe=$e}return U?u.c=pe:U=""!==e.b.toString(),U?ps(u,xo(e.b)):U=!!e.h,U&&(u.h=e.h),u};var Ro=/[#\/\?@]/g,Qs=/[#\?:]/g,Gs=/[#\?]/g,Bs=/[#\?@]/g,Xs=/#/g;function Js(e,u){this.b=this.a=null,this.c=e||null,this.f=!!u}function js(e){e.a||(e.a=new Jr,e.b=0,e.c&&function mi(e,u){if(e){e=e.split("&");for(var U=0;U<e.length;U++){var pe=e[U].indexOf("="),$e=null;if(0<=pe){var Dt=e[U].substring(0,pe);$e=e[U].substring(pe+1)}else Dt=e[U];u(Dt,$e?decodeURIComponent($e.replace(/\+/g," ")):"")}}}(e.c,function(u,U){e.add(decodeURIComponent(u.replace(/\+/g," ")),U)}))}function ao(e){var u=Cr(e);if(void 0===u)throw Error("Keys are undefined");var U=new Js(null,void 0);e=Jn(e);for(var pe=0;pe<u.length;pe++){var $e=u[pe],Dt=e[pe];Array.isArray(Dt)?Di(U,$e,Dt):U.add($e,Dt)}return U}function Os(e,u){js(e),u=Ir(e,u),qr(e.a.b,u)&&(e.c=null,e.b-=e.a.get(u).length,qr((e=e.a).b,u)&&(delete e.b[u],e.c--,e.a.length>2*e.c&&Zn(e)))}function mo(e,u){return js(e),u=Ir(e,u),qr(e.a.b,u)}function Di(e,u,U){Os(e,u),0<U.length&&(e.c=null,e.a.set(Ir(e,u),Rt(U)),e.b+=U.length)}function xo(e){var u=new Js;return u.c=e.c,e.a&&(u.a=new Jr(e.a),u.b=e.b),u}function Ir(e,u){return u=String(u),e.f&&(u=u.toLowerCase()),u}function Mo(e){var u=[];return Us(new Zs,e,u),u.join("")}function Zs(){}function Us(e,u,U){if(null==u)U.push("null");else{if("object"==typeof u){if(Array.isArray(u)){var pe=u;u=pe.length,U.push("[");for(var $e="",Dt=0;Dt<u;Dt++)U.push($e),Us(e,pe[Dt],U),$e=",";return void U.push("]")}if(!(u instanceof String||u instanceof Number||u instanceof Boolean)){for(pe in U.push("{"),$e="",u)Object.prototype.hasOwnProperty.call(u,pe)&&"function"!=typeof(Dt=u[pe])&&(U.push($e),uo(pe,U),U.push(":"),Us(e,Dt,U),$e=",");return void U.push("}")}u=u.valueOf()}switch(typeof u){case"string":uo(u,U);break;case"number":U.push(isFinite(u)&&!isNaN(u)?String(u):"null");break;case"boolean":U.push(String(u));break;case"function":U.push("null");break;default:throw Error("Unknown type: "+typeof u)}}}(_=Js.prototype).add=function(e,u){js(this),this.c=null,e=Ir(this,e);var U=this.a.get(e);return U||this.a.set(e,U=[]),U.push(u),this.b+=1,this},_.clear=function(){this.a=this.c=null,this.b=0},_.forEach=function(e,u){js(this),this.a.forEach(function(U,pe){he(U,function($e){e.call(u,$e,pe,this)},this)},this)},_.Y=function(){js(this);for(var e=this.a.V(),u=this.a.Y(),U=[],pe=0;pe<u.length;pe++)for(var $e=e[pe],Dt=0;Dt<$e.length;Dt++)U.push(u[pe]);return U},_.V=function(e){js(this);var u=[];
1if("string"==typeof e)mo(this,e)&&(u=Jt(u,this.a.get(Ir(this,e))));else{e=this.a.V();for(var U=0;U<e.length;U++)u=Jt(u,e[U])}return u},_.set=function(e,u){return js(this),this.c=null,mo(this,e=Ir(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[u]),this.b+=1,this},_.get=function(e,u){return e&&0<(e=this.V(e)).length?String(e[0]):u},_.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],u=this.a.Y(),U=0;U<u.length;U++){var pe=u[U],$e=encodeURIComponent(String(pe));pe=this.V(pe);for(var Dt=0;Dt<pe.length;Dt++){var zt=$e;""!==pe[Dt]&&(zt+="="+encodeURIComponent(String(pe[Dt]))),e.push(zt)}}return this.c=e.join("&")};var Ns={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},lo=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function uo(e,u){u.push('"',e.replace(lo,function(U){var pe=Ns[U];return pe||(pe="\\u"+(65536|U.charCodeAt(0)).toString(16).substr(1),Ns[U]=pe),pe}),'"')}function es(){var e=ce();return Ht&&!!Lr&&11==Lr||/Edge\/\d+/.test(e)}function Y(){return C.window&&C.window.location.href||self&&self.location&&self.location.href||""}function Le(e,u){u=u||C.window;var U="about:blank";e&&(U=Ce(st(e))),u.location.href=U}function lt(e,u){var pe,U=[];for(pe in e)pe in u?typeof e[pe]!=typeof u[pe]?U.push(pe):"object"==typeof e[pe]&&null!=e[pe]&&null!=u[pe]?0<lt(e[pe],u[pe]).length&&U.push(pe):e[pe]!==u[pe]&&U.push(pe):U.push(pe);for(pe in u)pe in e||U.push(pe);return U}function kn(e){return!!((e=(e||ce()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function Xn(e){e=e||C.window;try{e.close()}catch(u){}}function Hr(e,u,U){var pe=Math.floor(1e9*Math.random()).toString();u=u||500,U=U||600;var $e=(window.screen.availHeight-U)/2,Dt=(window.screen.availWidth-u)/2;for(zt in u={width:u,height:U,top:0<$e?$e:0,left:0<Dt?Dt:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},U=ce().toLowerCase(),pe&&(u.target=pe,at(U,"crios/")&&(u.target="_blank")),ho(ce())==Wo&&(e=e||"http://localhost",u.scrollbars=!0),U=e||"",(e=u)||(e={}),pe=window,u=U instanceof we?U:st(void 0!==U.href?U.href:String(U)),U=e.target||U.target,$e=[],e)switch(zt){case"width":case"height":case"top":case"left":$e.push(zt+"="+e[zt]);break;case"target":case"noopener":case"noreferrer":break;default:$e.push(zt+"="+(e[zt]?1:0))}var zt=$e.join(",");if((mt("iPhone")&&!mt("iPod")&&!mt("iPad")||mt("iPad")||mt("iPod"))&&pe.navigator&&pe.navigator.standalone&&U&&"_self"!=U?(vt(zt=Qt(document,"A"),"HTMLAnchorElement"),u instanceof we||u instanceof we||(u="object"==typeof u&&u.sa?u.ra():String(u),Ue.test(u)||(u="about:invalid#zClosurez"),u=new we(nn,u)),zt.href=Ce(u),zt.setAttribute("target",U),e.noreferrer&&zt.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,pe,1),zt.dispatchEvent(e),zt={}):e.noreferrer?(zt=pe.open("",U,zt),e=Ce(u),zt&&(un&&at(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),zt.opener=null,e=Gn('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+mn(e)+'">'),pe=zt.document)&&(pe.write(wn(e)),pe.close())):(zt=pe.open(Ce(u),U,zt))&&e.noopener&&(zt.opener=null),zt)try{zt.focus()}catch(Pn){}return zt}var vi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,ms=/^[^@]+@[^@]+$/;function Fi(){var e=null;return new Yr(function(u){"complete"==C.document.readyState?u():(e=function(){u()},hr(window,"load",e))}).s(function(u){throw pr(window,"load",e),u})}function Ys(e){return e=e||ce(),!("file:"!==l()&&"ionic:"!==l()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function Vs(){var e=C.window;try{return!(!e||e==e.top)}catch(u){return!1}}function Vi(){return void 0!==C.WorkerGlobalScope&&"function"==typeof C.importScripts}function wi(){return t.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":t.INTERNAL.hasOwnProperty("node")?"Node":Vi()?"Worker":"Browser"}function co(){var e=wi();return"ReactNative"===e||"Node"===e}var Wo="Firefox";function ho(e){var u=e.toLowerCase();return at(u,"opera/")||at(u,"opr/")||at(u,"opios/")?"Opera":at(u,"iemobile")?"IEMobile":at(u,"msie")||at(u,"trident/")?"IE":at(u,"edge/")?"Edge":at(u,"firefox/")?Wo:at(u,"silk/")?"Silk":at(u,"blackberry")?"Blackberry":at(u,"webos")?"Webos":!at(u,"safari/")||at(u,"chrome/")||at(u,"crios/")||at(u,"android")?!at(u,"chrome/")&&!at(u,"crios/")||at(u,"edge/")?at(u,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":"Chrome":"Safari"}var ha={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};function ot(e,u){u=u||[];var $e,U=[],pe={};for($e in ha)pe[ha[$e]]=!0;for($e=0;$e<u.length;$e++)void 0!==pe[u[$e]]&&(delete pe[u[$e]],U.push(u[$e]));return U.sort(),(u=U).length||(u=["FirebaseCore-web"]),"Browser"===(U=wi())?U=ho(pe=ce()):"Worker"===U&&(U=ho(pe=ce())+"-"+U),U+"/JsCore/"+e+"/"+u.join(",")}function ce(){return C.navigator&&C.navigator.userAgent||""}function ye(e,u){e=e.split("."),u=u||C;for(var U=0;U<e.length&&"object"==typeof u&&null!=u;U++)u=u[e[U]];return U!=e.length&&(u=void 0),u}function Ke(){try{var e=C.localStorage,u=rt();if(e)return e.setItem(u,"1"),e.removeItem(u),!es()||!!C.indexedDB}catch(U){return Vi()&&!!C.indexedDB}return!1}
1function xt(){return(w()||"chrome-extension:"===l()||Ys())&&!co()&&Ke()&&!Vi()}function w(){return"http:"===l()||"https:"===l()}function l(){return C.location&&C.location.protocol||null}function g(e){return!(kn(e=e||ce())||ho(e)==Wo)}function B(e){return void 0===e?null:Mo(e)}function fe(e){var U,u={};for(U in e)e.hasOwnProperty(U)&&null!=e[U]&&(u[U]=e[U]);return u}function De(e){if(null!==e)return JSON.parse(e)}function rt(e){return e||Math.floor(1e9*Math.random()).toString()}function Pt(e){return!("Safari"==ho(e=e||ce())||e.toLowerCase().match(/iphone|ipad|ipod/))}function qt(){var e=C.___jsl;if(e&&e.H)for(var u in e.H)if(e.H[u].r=e.H[u].r||[],e.H[u].L=e.H[u].L||[],e.H[u].r=e.H[u].L.concat(),e.CP)for(var U=0;U<e.CP.length;U++)e.CP[U]=null}function $t(e,u){if(e>u)throw Error("Short delay should be less than long delay!");this.a=e,this.c=u,e=ce(),u=wi(),this.b=kn(e)||"ReactNative"===u}function Tn(){var e=C.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function tr(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}function mr(e){try{var u=new Date(parseInt(e,10));if(!isNaN(u.getTime())&&!/[^0-9]/.test(e))return u.toUTCString()}catch(U){}return null}function Pr(){return!(!ye("fireauth.oauthhelper",C)&&!ye("fireauth.iframe",C))}$t.prototype.get=function(){var e=C.navigator;return!e||"boolean"!=typeof e.onLine||!w()&&"chrome-extension:"!==l()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var pt,_e={};function qe(e){_e[e]||(_e[e]=!0,tr(e))}try{var Vt={};Object.defineProperty(Vt,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Vt,"abcd",{configurable:!0,enumerable:!0,value:2}),pt=2==Vt.abcd}catch(e){pt=!1}function Zt(e,u,U){pt?Object.defineProperty(e,u,{configurable:!0,enumerable:!0,value:U}):e[u]=U}function In(e,u){if(u)for(var U in u)u.hasOwnProperty(U)&&Zt(e,U,u[U])}function ar(e){var u={};return In(u,e),u}function ri(e){var u=e;if("object"==typeof e&&null!=e)for(var U in u="length"in e?[]:{},e)Zt(u,U,ri(e[U]));return u}function xr(e){var u=e&&(e[eo]?"phone":null);if(!(u&&e&&e[ts]))throw new I("internal-error","Internal assert: invalid MultiFactorInfo object");Zt(this,"uid",e[ts]),Zt(this,"displayName",e[ti]||null);var U=null;e[fi]&&(U=new Date(e[fi]).toUTCString()),Zt(this,"enrollmentTime",U),Zt(this,"factorId",u)}function Fr(e){try{var u=new _s(e)}catch(U){u=null}return u}xr.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var ti="displayName",fi="enrolledAt",ts="mfaEnrollmentId",eo="phoneInfo";function _s(e){xr.call(this,e),Zt(this,"phoneNumber",e[eo])}function wo(e){var u={},U=e[Fs],pe=e[Co],$e=e[vo];if(e=Fr(e[Uo]),!$e||$e!=Ao&&$e!=So&&!U||$e==So&&!pe||$e==Ni&&!e)throw Error("Invalid checkActionCode response!");$e==So?(u[ds]=U||null,u[to]=U||null,u[qs]=pe):(u[ds]=pe||null,u[to]=pe||null,u[qs]=U||null),u[Ds]=e||null,Zt(this,yd,$e),Zt(this,tu,ri(u))}k(_s,xr),_s.prototype.w=function(){var e=_s.$a.w.call(this);return e.phoneNumber=this.phoneNumber,e};var Ni="REVERT_SECOND_FACTOR_ADDITION",Ao="EMAIL_SIGNIN",So="VERIFY_AND_CHANGE_EMAIL",Fs="email",Uo="mfaInfo",Co="newEmail",vo="requestType",qs="email",ds="fromEmail",Ds="multiFactorInfo",to="previousEmail",tu="data",yd="operation";function Rs(e){var u=Xi(e=ws(e),ea)||null,U=Xi(e,To)||null,pe=Xi(e,As)||null;if(pe=pe&&Vo[pe]||null,!u||!U||!pe)throw new I("argument-error",ea+", "+To+"and "+As+" are required in a valid action code URL.");In(this,{apiKey:u,operation:pe,code:U,continueUrl:Xi(e,Wi)||null,languageCode:Xi(e,Go)||null,tenantId:Xi(e,nu)||null})}var ea="apiKey",To="oobCode",Wi="continueUrl",Go="languageCode",As="mode",nu="tenantId",Vo={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:Ni,signIn:Ao,verifyAndChangeEmail:So,verifyEmail:"VERIFY_EMAIL"};function bd(e){try{return new Rs(e)}catch(u){return null}}function Pu(e){var u=e[Dl];if(void 0===u)throw new I("missing-continue-uri");if("string"!=typeof u||"string"==typeof u&&!u.length)throw new I("invalid-continue-uri");this.h=u,this.b=this.a=null,this.g=!1;var U=e[Oo];if(U&&"object"==typeof U){u=U[Mu];var pe=U[fa];if(U=U[xu],"string"==typeof u&&u.length){if(this.a=u,void 0!==pe&&"boolean"!=typeof pe)throw new I("argument-error",fa+" property must be a boolean when specified.");if(this.g=!!pe,void 0!==U&&("string"!=typeof U||"string"==typeof U&&!U.length))throw new I("argument-error",xu+" property must be a non empty string when specified.");this.b=U||null}else{if(void 0!==u)throw new I("argument-error",Mu+" property must be a non empty string when specified.");if(void 0!==pe||void 0!==U)throw new I("missing-android-pkg-name")}}else if(void 0!==U)throw new I("argument-error",Oo+" property must be a non null object when specified.");if(this.f=null,(u=e[da])&&"object"==typeof u){if("string"==typeof(u=u[zo])&&u.length)this.f=u;else if(void 0!==u)throw new I("argument-error",zo+" property must be a non empty string when specified.")}else if(void 0!==u)throw new I("argument-error",da+" property must be a non null object when specified.");if(void 0!==(u=e[Ru])&&"boolean"!=typeof u)throw new I("argument-error",Ru+" property must be a boolean when specified.");if(this.c=!!u,void 0!==(e=e[ko])&&("string"!=typeof e||"string"==typeof e&&!e.length))throw new I("argument-error",ko+" property must be a non empty string when specified.");this.i=e||null}var Oo="android",ko="dynamicLinkDomain",Ru="handleCodeInApp",da="iOS",Dl="url",fa="installApp",xu="minimumVersion",Mu="packageName",zo="bundleId";function Za(e){var u={};for(var U in u.continueUrl=e.h,u.canHandleCodeInApp=e.c,(u.androidPackageName=e.a)&&(u.androidMinimumVersion=e.b,u.androidInstallApp=e.g),u.
1iOSBundleId=e.f,u.dynamicLinkDomain=e.i,u)null===u[U]&&delete u[U];return u}var fo=null;function iu(e){var u=dh(e);if(!(u&&u.sub&&u.iss&&u.aud&&u.exp))throw Error("Invalid JWT");this.g=e,this.c=u.exp,this.h=u.sub,y(),this.a=u.provider_id||u.firebase&&u.firebase.sign_in_provider||null,this.f=u.firebase&&u.firebase.tenant||null,this.b=!!u.is_anonymous||"anonymous"==this.a}function su(e){try{return new iu(e)}catch(u){return null}}function dh(e){if(!e||3!=(e=e.split(".")).length)return null;for(var u=(4-(e=e[1]).length%4)%4,U=0;U<u;U++)e+=".";try{return JSON.parse(function Pl(e){var u="";return function ja(e,u){function U(yr){for(;pe<e.length;){var Rr=e.charAt(pe++),Si=fo[Rr];if(null!=Si)return Si;if(!/^[\s\xa0]*$/.test(Rr))throw Error("Unknown base64 encoding at char: "+Rr)}return yr}!function ip(){if(!fo){fo={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),u=["+/=","+/","-_=","-_.","-_"],U=0;5>U;U++)for(var pe=e.concat(u[U].split("")),$e=0;$e<pe.length;$e++){var Dt=pe[$e];void 0===fo[Dt]&&(fo[Dt]=$e)}}}();for(var pe=0;;){var $e=U(-1),Dt=U(0),zt=U(64),Pn=U(64);if(64===Pn&&-1===$e)break;u($e<<2|Dt>>4),64!=zt&&(u(Dt<<4&240|zt>>2),64!=Pn&&u(zt<<6&192|Pn))}}(e,function(U){u+=String.fromCharCode(U)}),u}(e))}catch(pe){}return null}iu.prototype.S=function(){return this.f},iu.prototype.i=function(){return this.b},iu.prototype.toString=function(){return this.g};var fh="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),el=["client_id","response_type","scope","redirect_uri","state"],Ua={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:el},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:el},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:el},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:fh},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function Va(e){for(var u in Ua)if(Ua[u].fa==e)return Ua[u];return null}function ou(e){var u={};u["facebook.com"]=Ls,u["google.com"]=bc,u["github.com"]=ph,u["twitter.com"]=gh;var U=e&&e[_d];try{if(U)return u[U]?new u[U](e):new No(e);if(void 0!==e[Rl])return new yo(e)}catch(pe){}return null}var Rl="idToken",_d="providerId";function yo(e){var u=e[_d];if(!u&&e[Rl]){var U=su(e[Rl]);U&&U.a&&(u=U.a)}if(!u)throw Error("Invalid additional user info!");("anonymous"==u||"custom"==u)&&(u=null),U=!1,void 0!==e.isNewUser?U=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(U=!0),Zt(this,"providerId",u),Zt(this,"isNewUser",U)}function No(e){yo.call(this,e),Zt(this,"profile",ri((e=De(e.rawUserInfo||"{}"))||{}))}function Ls(e){if(No.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function ph(e){if(No.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Zt(this,"username",this.profile&&this.profile.login||null)}function bc(e){if(No.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function gh(e){if(No.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Zt(this,"username",e.screenName||null)}function _c(e){var u=ws(e),U=Xi(u,"link"),pe=Xi(ws(U),"link");return u=Xi(u,"deep_link_id"),Xi(ws(u),"link")||u||pe||U||e}function Ou(e,u){if(!e&&!u)throw new I("internal-error","Internal assert: no raw session string available");if(e&&u)throw new I("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=u||null,this.type=this.a?pa:xl}k(No,yo),k(Ls,No),k(ph,No),k(bc,No),k(gh,No);var pa="enroll",xl="signin";function Ml(){}function ks(e,u){return e.then(function(U){if(U[Bo]){var pe=su(U[Bo]);if(!pe||u!=pe.h)throw new I("user-mismatch");return U}throw new I("user-mismatch")}).s(function(U){throw U&&U.code&&U.code==ee+"user-not-found"?new I("user-mismatch"):U})}function wa(e,u){if(!u)throw new I("internal-error","failed to construct a credential");this.a=u,Zt(this,"providerId",e),Zt(this,"signInMethod",e)}function ku(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function tl(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new wa(e.providerId,e.pendingToken)}catch(u){}return null}function no(e,u,U){if(this.a=null,u.idToken||u.accessToken)u.idToken&&Zt(this,"idToken",u.idToken),u.accessToken&&Zt(this,"accessToken",u.accessToken),u.nonce&&!u.pendingToken&&Zt(this,"nonce",u.nonce),u.pendingToken&&
1(this.a=u.pendingToken);else{if(!u.oauthToken||!u.oauthTokenSecret)throw new I("internal-error","failed to construct a credential");Zt(this,"accessToken",u.oauthToken),Zt(this,"secret",u.oauthTokenSecret)}Zt(this,"providerId",e),Zt(this,"signInMethod",U)}function Nu(e){var u={};return e.idToken&&(u.id_token=e.idToken),e.accessToken&&(u.access_token=e.accessToken),e.secret&&(u.oauth_token_secret=e.secret),u.providerId=e.providerId,e.nonce&&!e.a&&(u.nonce=e.nonce),u={postBody:ao(u).toString(),requestUri:"http://localhost"},e.a&&(delete u.postBody,u.pendingToken=e.a),u}function Fu(e){if(e&&e.providerId&&e.signInMethod){var u={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new no(e.providerId,u,e.signInMethod)}catch(U){}}return null}function ta(e,u){this.Pc=u||[],In(this,{providerId:e,isOAuthProvider:!0}),this.Hb={},this.ob=(Va(e)||{}).Ja||null,this.nb=null}function nl(e){if("string"!=typeof e||0!=e.indexOf("saml."))throw new I("argument-error",'SAML provider IDs must be prefixed with "saml."');ta.call(this,e,[])}function ro(e){ta.call(this,e,el),this.a=[]}function Ko(){ro.call(this,"facebook.com")}function Aa(e){if(!e)throw new I("argument-error","credential failed: expected 1 argument (the OAuth access token).");var u=e;return M(e)&&(u=e.accessToken),(new Ko).credential({accessToken:u})}function Io(){ro.call(this,"github.com")}function Lu(e){if(!e)throw new I("argument-error","credential failed: expected 1 argument (the OAuth access token).");var u=e;return M(e)&&(u=e.accessToken),(new Io).credential({accessToken:u})}function Sa(){ro.call(this,"google.com"),this.Ca("profile")}function au(e,u){var U=e;return M(e)&&(U=e.idToken,u=e.accessToken),(new Sa).credential({idToken:U,accessToken:u})}function rl(){ta.call(this,"twitter.com",fh)}function lu(e,u){var U=e;if(M(U)||(U={oauthToken:e,oauthTokenSecret:u}),!U.oauthToken||!U.oauthTokenSecret)throw new I("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new no("twitter.com",U,"twitter.com")}function ga(e,u,U){this.a=e,this.f=u,Zt(this,"providerId","password"),Zt(this,"signInMethod",U===po.EMAIL_LINK_SIGN_IN_METHOD?po.EMAIL_LINK_SIGN_IN_METHOD:po.EMAIL_PASSWORD_SIGN_IN_METHOD)}function na(e){return e&&e.email&&e.password?new ga(e.email,e.password,e.signInMethod):null}function po(){In(this,{providerId:"password",isOAuthProvider:!1})}function Ec(e,u){if(!(u=mh(u)))throw new I("argument-error","Invalid email link!");return new ga(e,u.code,po.EMAIL_LINK_SIGN_IN_METHOD)}function mh(e){return(e=bd(e=_c(e)))&&e.operation===Ao?e:null}function Ca(e){if(!(e.cb&&e.bb||e.La&&e.ea))throw new I("internal-error");this.a=e,Zt(this,"providerId","phone"),this.fa="phone",Zt(this,"signInMethod","phone")}function vh(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var u={};return he(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(U){e[U]&&(u[U]=e[U])}),new Ca(u)}return null}function Bu(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.cb,code:e.a.bb}}function ra(e){try{this.a=e||t.auth()}catch(u){throw new I("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}In(this,{providerId:"phone",isOAuthProvider:!1})}function il(e,u){if(!e)throw new I("missing-verification-id");if(!u)throw new I("missing-verification-code");return new Ca({cb:e,bb:u})}function ma(e){if(e.temporaryProof&&e.phoneNumber)return new Ca({La:e.temporaryProof,ea:e.phoneNumber});var u=e&&e.providerId;if(!u||"password"===u)return null;var U=e&&e.oauthAccessToken,pe=e&&e.oauthTokenSecret,$e=e&&e.nonce,Dt=e&&e.oauthIdToken,zt=e&&e.pendingToken;try{switch(u){case"google.com":return au(Dt,U);case"facebook.com":return Aa(U);case"github.com":return Lu(U);case"twitter.com":return lu(U,pe);default:return U||pe||Dt||zt?zt?0==u.indexOf("saml.")?new wa(u,zt):new no(u,{pendingToken:zt,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},u):new ro(u).credential({idToken:Dt,accessToken:U,rawNonce:$e}):null}}catch(Pn){return null}}function sl(e){if(!e.isOAuthProvider)throw new I("invalid-oauth-provider")}function Fo(e,u,U,pe,$e,Dt,zt){if(this.c=e,this.b=u||null,this.g=U||null,this.f=pe||null,this.i=Dt||null,this.h=zt||null,this.a=$e||null,!this.g&&!this.a)throw new I("invalid-auth-event");
1if(this.g&&this.a)throw new I("invalid-auth-event");if(this.g&&!this.f)throw new I("invalid-auth-event")}function $a(e){return(e=e||{}).type?new Fo(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&H(e.error),e.postBody,e.tenantId):null}function Ed(){this.b=null,this.a=[]}Ou.prototype.Ha=function(){return $r(this.a?this.a:this.b)},Ou.prototype.w=function(){return this.type==pa?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},Ml.prototype.ja=function(){},Ml.prototype.b=function(){},Ml.prototype.c=function(){},Ml.prototype.w=function(){},wa.prototype.ja=function(e){return Ju(e,ku(this))},wa.prototype.b=function(e,u){var U=ku(this);return U.idToken=u,fl(e,U)},wa.prototype.c=function(e,u){return ks(Ul(e,ku(this)),u)},wa.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},no.prototype.ja=function(e){return Ju(e,Nu(this))},no.prototype.b=function(e,u){var U=Nu(this);return U.idToken=u,fl(e,U)},no.prototype.c=function(e,u){return ks(Ul(e,Nu(this)),u)},no.prototype.w=function(){var e={providerId:this.providerId,sign
1InMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},ta.prototype.Ka=function(e){return this.Hb=bt(e),this},k(nl,ta),k(ro,ta),ro.prototype.Ca=function(e){return Ot(this.a,e)||this.a.push(e),this},ro.prototype.Pb=function(){return Rt(this.a)},ro.prototype.credential=function(e,u){var U;if(!(U=M(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:u||null}).idToken&&!U.accessToken)throw new I("argument-error","credential failed: must provide the ID token and/or the access token.");return new no(this.providerId,U,this.providerId)},k(Ko,ro),Zt(Ko,"PROVIDER_ID","facebook.com"),Zt(Ko,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),k(Io,ro),Zt(Io,"PROVIDER_ID","github.com"),Zt(Io,"GITHUB_SIGN_IN_METHOD","github.com"),k(Sa,ro),Zt(Sa,"PROVIDER_ID","google.com"),Zt(Sa,"GOOGLE_SIGN_IN_METHOD","google.com"),k(rl,ta),Zt(rl,"PROVIDER_ID","twitter.com"),Zt(rl,"TWITTER_SIGN_IN_METHOD","twitter.com"),ga.prototype.ja=function(e){return this.signInMethod==po.EMAIL_LINK_SIGN_IN_METHOD?Ai(e,ya,{email:this.a,oobCode:this.f}):Ai(e,bi,{email:this.a,password:this.f})},ga.prototype.b=function(e,u){return this.signInMethod==po.EMAIL_LINK_SIGN_IN_METHOD?Ai(e,Lc,{idToken:u,email:this.a,oobCode:this.f}):Ai(e,Rn,{idToken:u,email:this.a,password:this.f})},ga.prototype.c=function(e,u){return ks(this.ja(e),u)},ga.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},In(po,{PROVIDER_ID:"password"}),In(po,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),In(po,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ca.prototype.ja=function(e){return e.eb(Bu(this))},Ca.prototype.b=function(e,u){var U=Bu(this);return U.idToken=u,Ai(e,ls,U)},Ca.prototype.c=function(e,u){var U=Bu(this);return U.operation="REAUTH",ks(e=Ai(e,Cs,U),u)},Ca.prototype.w=function(){var e={providerId:"phone"};return this.a.cb&&(e.verificationId=this.a.cb),this.a.bb&&(e.verificationCode=this.a.bb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},ra.prototype.eb=function(e,u){var U=this.a.a;return $r(u.verify()).then(function(pe){if("string"!=typeof pe)throw new I("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===u.type){var zt,$e=M(e)?e.session:null,Dt=M(e)?e.phoneNumber:e;return zt=$e&&$e.type==pa?$e.Ha().then(function(Pn){return function dl(e,u){return Ai(e,Kn,u).then(function(U){return U.phoneSessionInfo.sessionInfo})}(U,{idToken:Pn,phoneEnrollmentInfo:{phoneNumber:Dt,recaptchaToken:pe}})}):$e&&$e.type==xl?$e.Ha().then(function(Pn){return function Ch(e,u){return Ai(e,lr,u).then(function(U){return U.phoneResponseInfo.sessionInfo})}(U,{mfaPendingCredential:Pn,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:pe}})}):function Sh(e,u){return Ai(e,Gt,u)}(U,{phoneNumber:Dt,recaptchaToken:pe}),zt.then(function(Pn){return"function"==typeof u.reset&&u.reset(),Pn},function(Pn){throw"function"==typeof u.reset&&u.reset(),Pn})}throw new I("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')})},In(ra,{PROVIDER_ID:"phone"}),In(ra,{PHONE_SIGN_IN_METHOD:"phone"}),Fo.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},Fo.prototype.S=function(){return this.h},Fo.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Ia,wc=null;function Ol(e){var u="unauthorized-domain",U=void 0,pe=ws(e);e=pe.a,"chrome-extension"==(pe=pe.f)?U=on("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==pe||"https"==pe?U=on("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):u="operation-not-supported-in-this-environment",I.call(this,u,U)}function Ta(e,u,U){I.call(this,e,U),(e=u||{}).Ib&&Zt(this,"email",e.Ib),e.ea&&Zt(this,"phoneNumber",e.ea),e.credential&&Zt(this,"credential",e.credential),e.Yb&&Zt(this,"tenantId",e.Yb)}function uu(e){if(e.code){var u=e.code||"";0==u.indexOf(ee)&&(u=u.substring(ee.length));var U={credential:ma(e),Yb:e.tenantId};if(e.email)U.Ib=e.email;
1else if(e.phoneNumber)U.ea=e.phoneNumber;else if(!U.credential)return new I(u,e.message||void 0);return new Ta(u,U,e.message)}return null}function ol(){}function Uu(){}function yh(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var u=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],U=0;U<u.length;U++){var pe=u[U];try{return new ActiveXObject(pe),e.f=pe}catch($e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function kl(){}function Vu(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=$(this.pc,this),this.a.onerror=$(this.Rb,this),this.a.onprogress=$(this.qc,this),this.a.ontimeout=$(this.uc,this)}function Ha(e,u){e.readyState=u,e.onreadystatechange&&e.onreadystatechange()}function Xo(e,u,U){this.reset(e,u,U,void 0,void 0)}function $u(e){this.f=e,this.b=this.c=this.a=null}function al(e,u){this.name=e,this.value=u}k(Ol,I),k(Ta,I),Ta.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var u=this.credential&&this.credential.w();return u&&Un(e,u),e},Ta.prototype.toJSON=function(){return this.w()},ol.prototype.c=null,k(Uu,ol),Uu.prototype.a=function(){var e=yh(this);return e?new ActiveXObject(e):new XMLHttpRequest},Uu.prototype.b=function(){var e={};return yh(this)&&(e[0]=!0,e[1]=!0),e},Ia=new Uu,k(kl,ol),kl.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Vu;throw Error("Unsupported browser")},kl.prototype.b=function(){return{}},(_=Vu.prototype).open=function(e,u,U){if(null!=U&&!U)throw Error("Only async requests are supported.");this.a.open(e,u)},_.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},_.abort=function(){this.a.abort()},_.setRequestHeader=function(){},_.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},_.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ha(this,4)},_.Rb=function(){this.status=500,this.response=this.responseText="",Ha(this,4)},_.uc=function(){this.Rb()},_.qc=function(){this.status=200,Ha(this,1)},_.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Xo.prototype.a=null,Xo.prototype.reset=function(e,u,U,pe,$e){pe||y(),delete this.a},al.prototype.toString=function(){return this.name};var Ga=new al("SEVERE",1e3),Ac=new al("WARNING",900),wd=new al("CONFIG",700),Ad=new al("FINE",500);function Sc(e){return e.c?e.c:e.a?Sc(e.a):(O("Root logger has no level set."),null)}$u.prototype.log=function(e,u,U){if(e.value>=Sc(this).value)for(j(u)&&(u=u()),e=new Xo(e,String(u),this.f),U&&(e.a=U),U=this;U;)U=U.a};var Cc={},cu=null;function Hu(e){var u;if(cu||(cu=new $u(""),Cc[""]=cu,cu.c=wd),!(u=Cc[e])){u=new $u(e);var U=e.lastIndexOf("."),pe=e.substr(U+1);(U=Hu(e.substr(0,U))).b||(U.b={}),U.b[pe]=u,u.a=U,Cc[e]=u}return u}function Yo(e,u){e&&e.log(Ad,u,void 0)}function Tc(e){this.f=e}function Ic(e){Sr.call(this),this.o=e,this.readyState=Da,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=Hu("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}k(Tc,ol),Tc.prototype.a=function(){return new Ic(this.f)},Tc.prototype.b=function(e){return function(){return e}}({}),k(Ic,Sr);var Da=0;function hu(e){e.c.read().then(e.oc.bind(e)).catch(e.Ta.bind(e))}function Lo(e,u){u&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,Pa(e)}function Pa(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Nl(e){Sr.call(this),this.headers=new Jr,this.O=e||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=Dc,this.u=this.R=!1}(_=Ic.prototype).open=function(e,u){if(this.readyState!=Da)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=u,this.readyState=1,Pa(this)},_.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var u={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
1e&&(u.body=e),this.o.fetch(new Request(this.g,u)).then(this.tc.bind(this),this.Ta.bind(this))},_.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Lo(this,!1)),this.readyState=Da},_.tc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,Pa(this)),this.a&&(this.readyState=3,Pa(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):void 0!==C.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,hu(this)):e.text().then(this.sc.bind(this),this.Ta.bind(this)))))},_.oc=function(e){if(this.a){var u=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});u&&(this.response=this.responseText+=u),e.done?Lo(this,!0):Pa(this),3==this.readyState&&hu(this)}},_.sc=function(e){this.a&&(this.response=this.responseText=e,Lo(this,!0))},_.rc=function(e){this.a&&(this.response=e,Lo(this,!0))},_.Ta=function(e){var u=this.h;u&&u.log(Ac,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&Lo(this,!0)},_.setRequestHeader=function(e,u){this.i.append(e,u)},_.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(Ac,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},_.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(Ac,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var u=this.b.entries(),U=u.next();!U.done;)e.push((U=U.value)[0]+": "+U[1]),U=u.next();return e.join("\r\n")},k(Nl,Sr);var Dc="";Nl.prototype.b=Hu("goog.net.XhrIo");var bh=/^https?$/i,op=["POST","PUT"];function Pc(e){return"content-type"==e.toLowerCase()}function Wu(e,u){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=u,Gu(e),Rc(e)}function Gu(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function _h(e){if(e.c&&void 0!==P)if(e.A[1]&&4==Fl(e)&&2==ll(e))Yo(e.b,qo(e,"Local request error detected and ignored"));else if(e.i&&4==Fl(e))Ze(e.Ub,0,e);else if(e.dispatchEvent("readystatechange"),4==Fl(e)){Yo(e.b,qo(e,"Request complete")),e.c=!1;try{var pe,u=ll(e);e:switch(u){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var U=!0;break e;default:U=!1}if(!(pe=U)){var $e;
1if($e=0===u){var Dt=String(e.l).match(Pi)[1]||null;if(!Dt&&C.self&&C.self.location){var zt=C.self.location.protocol;Dt=zt.substr(0,zt.length-1)}$e=!bh.test(Dt?Dt.toLowerCase():"")}pe=$e}if(pe)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var Pn=2<Fl(e)?e.a.statusText:""}catch(yr){Yo(e.b,"Can not get status: "+yr.message),Pn=""}e.h=Pn+" ["+ll(e)+"]",Gu(e)}}finally{Rc(e)}}}function Rc(e,u){if(e.a){du(e);var U=e.a,pe=e.A[0]?m:null;e.a=null,e.A=null,u||e.dispatchEvent("ready");try{U.onreadystatechange=pe}catch($e){(e=e.b)&&e.log(Ga,"Problem encountered resetting onreadystatechange: "+$e.message,void 0)}}}function du(e){e.a&&e.u&&(e.a.ontimeout=null),e.o&&(C.clearTimeout(e.o),e.o=null)}function Fl(e){return e.a?e.a.readyState:0}function ll(e){try{return 2<Fl(e)?e.a.status:-1}catch(u){return-1}}function qo(e,u){return u+" ["+e.P+" "+e.l+" "+ll(e)+"]"}function ia(e){var u=Cd;this.g=[],this.u=u,this.o=e||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function va(e,u,U){e.a=!0,e.c=U,e.f=!u,zu(e)}function sa(e){if(e.a){if(!e.m)throw new fu(e);e.m=!1}}function Ra(e,u,U,pe){e.g.push([u,U,pe]),e.a&&zu(e)}function Ss(e){return Qe(e.g,function(u){return j(u[1])})}function zu(e){if(e.h&&e.a&&Ss(e)){var u=e.h,U=pu[u];U&&(C.clearTimeout(U.a),delete pu[u]),e.h=0}e.b&&(e.b.l--,delete e.b),u=e.c;for(var pe=U=!1;e.g.length&&!e.i;){var $e=e.g.shift(),Dt=$e[0],zt=$e[1];if($e=$e[2],Dt=e.f?zt:Dt)try{var Pn=Dt.call($e||e.o,u);void 0!==Pn&&(e.f=e.f&&(Pn==u||Pn instanceof Error),e.c=u=Pn),(Re(u)||"function"==typeof C.Promise&&u instanceof C.Promise)&&(pe=!0,e.i=!0)}catch(yr){u=yr,e.f=!0,Ss(e)||(U=!0)}}e.c=u,pe&&(Pn=$(e.v,e,!0),pe=$(e.v,e,!1),u instanceof ia?(Ra(u,Pn,pe),u.A=!0):u.then(Pn,pe)),U&&(u=new Ku(u),pu[u.a]=u,e.h=u.a)}function fu(){He.call(this)}function ul(){He.call(this)}function Ku(e){this.a=C.setTimeout($(this.c,this),0),this.b=e}(_=Nl.prototype).Ma=function(){void 0!==P&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",Yo(this.b,qo(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},_.abort=function(){this.a&&this.c&&(Yo(this.b,qo(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rc(this))},_.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Rc(this,!0)),Nl.$a.Da.call(this)},_.Ub=function(){this.xa||(this.N||this.i||this.f?_h(this):this.Ic())},_.Ic=function(){_h(this)},_.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Dc:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(Ga,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(u){return Yo(this.b,"Can not get response: "+u.message),null}},ia.prototype.cancel=function(e){if(this.a)this.c instanceof ia&&this.c.cancel();else{if(this.b){var u=this.b;delete this.b,e?u.cancel(e):(u.l--,0>=u.l&&u.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(e=new ul(this),sa(this),va(this,!1,e))}},ia.prototype.v=function(e,u){this.i=!1,va(this,e,u)},ia.prototype.then=function(e,u,U){var pe,$e,Dt=new Yr(function(zt,Pn){pe=zt,$e=Pn});return Ra(this,pe,function(zt){zt instanceof ul?Dt.cancel():$e(zt)}),Dt.then(e,u,U)},ia.prototype.$goog_Thenable=!0,k(fu,He),fu.prototype.message="Deferred has already fired",fu.prototype.name="AlreadyCalledError",k(ul,He),ul.prototype.message="Deferred was canceled",ul.prototype.name="CanceledError",Ku.prototype.c=function(){throw delete pu[this.a],this.b};var pu={};function cl(e){var u={},U=u.document||document,pe=jn(e).toString(),$e=Qt(document,"SCRIPT"),Dt={Vb:$e,Ma:void 0},zt=new ia(Dt),Pn=null,yr=null!=u.timeout?u.timeout:5e3;return 0<yr&&(Pn=window.setTimeout(function(){xa($e,!0);var Rr=new za(Td,"Timeout reached for loading script "+pe);sa(zt),va(zt,!1,Rr)},yr),Dt.Ma=Pn),$e.onload=$e.onreadystatechange=function(){$e.readyState&&"loaded"!=$e.readyState&&"complete"!=$e.readyState||(xa($e,u.wd||!1,Pn),sa(zt),va(zt,!0,null))},$e.onerror=function(){xa($e,!0,Pn);var Rr=new za(up,"Error while loading script "+pe);sa(zt),va(zt,!1,Rr)},Un(Dt=u.attributes||{}
1,{type:"text/javascript",charset:"UTF-8"}),an($e,Dt),function jt(e,u){vt(e,"HTMLScriptElement"),e.src=jn(u),null===E&&(E=(u=(u=C.document).querySelector&&u.querySelector("script[nonce]"))&&(u=u.nonce||u.getAttribute("nonce"))&&L.test(u)?u:""),(u=E)&&e.setAttribute("nonce",u)}($e,e),function gu(e){var u;return(u=(e||document).getElementsByTagName("HEAD"))&&0!=u.length?u[0]:e.documentElement}(U).appendChild($e),zt}function Cd(){if(this&&this.Vb){var e=this.Vb;e&&"SCRIPT"==e.tagName&&xa(e,!0,this.Ma)}}function xa(e,u,U){null!=U&&C.clearTimeout(U),e.onload=m,e.onerror=m,e.onreadystatechange=m,u&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}var up=0,Td=1;function za(e,u){var U="Jsloader error (code #"+e+")";u&&(U+=": "+u),He.call(this,U),this.code=e}function zs(e){this.f=e}function $o(e,u,U){if(this.c=e,this.l=(e=u||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=e.secureTokenTimeout||io,this.g=bt(e.secureTokenHeaders||Bl),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=e.firebaseTimeout||Ma,this.a=bt(e.firebaseHeaders||Eh),U&&(this.a["X-Client-Version"]=U,this.g["X-Client-Version"]=U),U="Node"==wi(),!(U=C.XMLHttpRequest||U&&t.INTERNAL.node&&t.INTERNAL.node.XMLHttpRequest)&&!Vi())throw new I("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=Vi()?new Tc(self):co()?new zs(U):new kl,this.b=null}k(za,He),k(zs,ol),zs.prototype.a=function(){return new this.f},zs.prototype.b=function(){return{}};var Ll,Bo="idToken",io=new $t(3e4,6e4),Bl={"Content-Type":"application/x-www-form-urlencoded"},Ma=new $t(3e4,6e4),Eh={"Content-Type":"application/json"};function Mc(e,u){u?e.a["X-Firebase-Locale"]=u:delete e.a["X-Firebase-Locale"]}function Oa(e,u){u&&(e.l=hl("https://securetoken.googleapis.com/v1/token",u),e.h=hl("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",u),e.i=hl("https://identitytoolkit.googleapis.com/v2/",u))}function hl(e,u){return e=ws(e),u=ws(u.url),e.c=e.a+e.c,Ki(e,u.f),e.a=u.a,Ui(e,u.g),e.toString()}function mu(e,u){u?(e.a["X-Client-Version"]=u,e.g["X-Client-Version"]=u):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function Xu(e,u,U,pe,$e,Dt,zt){(function en(){var e=ce();return!((e="Chrome"!=ho(e)?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e||Ht&&Lr&&!(9<Lr))})()||Vi()?e=$(e.u,e):(Ll||(Ll=new Yr(function(Pn,yr){!function Id(e,u){((window.gapi||{}).client||{}).request?e():(C[wh]=function(){((window.gapi||{}).client||{}).request?e():u(Error("CORS_UNSUPPORTED"))},function xc(e,u){Ra(e,null,u,void 0)}(cl(nr(Oc,{onload:wh})),function(){u(Error("CORS_UNSUPPORTED"))}))}(Pn,yr)})),e=$(e.o,e)),e(u,U,pe,$e,Dt,zt)}$o.prototype.S=function(){return this.b},$o.prototype.u=function(e,u,U,pe,$e,Dt){if(Vi()&&(void 0===C.fetch||void 0===C.Headers||void 0===C.Request))throw new I("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var zt=new Nl(this.f);if(Dt){zt.g=Math.max(0,Dt);var Pn=setTimeout(function(){zt.dispatchEvent("timeout")},Dt)}ue(zt,"complete",function(){Pn&&clearTimeout(Pn);var yr=null;try{yr=JSON.parse(function Sd(e){try{return e.a?e.a.responseText:""}catch(u){return Yo(e.b,"Can not get responseText: "+u.message),""}}(this))||null}catch(Rr){yr=null}u&&u(yr)}),et(zt,"ready",function(){Pn&&clearTimeout(Pn),Xe(this)}),et(zt,"timeout",function(){Pn&&clearTimeout(Pn),Xe(this),u&&u(null)}),function ap(e,u,U,pe,$e){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+u);U=U?U.toUpperCase():"GET",e.l=u,e.h="",e.P=U,e.G=!1,e.c=!0,e.a=e.O?e.O.a():Ia.a(),e.A=function ju(e){return e.c||(e.c=e.b())}(e.O?e.O:Ia),e.a.onreadystatechange=$(e.Ub,e);try{Yo(e.b,qo(e,"Opening Xhr")),e.N=!0,e.a.open(U,String(u),!0),e.N=!1}catch(zt){return Yo(e.b,qo(e,"Error opening Xhr: "+zt.message)),void Wu(e,zt)}u=pe||"";var Dt=new Jr(e.headers);$e&&function Vr(e,u){if(e.forEach&&"function"==typeof e.forEach)e.forEach(u,void 0);else if(R(e)||"string"==typeof e)he(e,u,void 0);else for(var U=Cr(e),pe=Jn(e),$e=pe.length,Dt=0;Dt<$e;Dt++)u.call(void 0,pe[Dt],U&&U[Dt],e)}($e,function(zt,Pn){Dt.set(Pn,zt)}),$e=function Ct(e){e:{for(var u=Pc,U=e.length,pe="string"==typeof e?e.split(""):e,$e=0;$e<U;$e++)if($e in pe&&u.call(void 0,pe[$e],$e,e)){u=$e;break e}u=-1}return 0>u?null:"string"==typeof e?e.charAt(u):e[u]}(Dt.Y()),pe=C.FormData&&u instanceof C.FormData,!Ot(op,U)||$e||pe||Dt.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),Dt.forEach(function(zt,Pn){this.a.setRequestHeader(Pn,zt)},e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{du(e),0<e.g&&(e.u=function lp(e){return Ht&&Ur(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),Yo(e.b,qo(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=$(e.Ma,e)):e.o=Ze(e.Ma,e.g,e)),Yo(e.b,qo(e,"Sending request")),e.i=!0,e.a.send(u),e.i=!1}catch(zt){Yo(e.b,qo(e,"Send error: "+zt.message)),Wu(e,zt)}}(zt,e,U,pe,$e)};var Oc=new tn(Nn,"https://apis.google.com/js/client.js?onload=%{onload}"),wh="__fcb"+Math.floor(1e6*Math.random()).toString();function Ka(e){if("string"!=typeof(e=e.email)||!ms.test(e))throw new I("invalid-email")}function vu(e){"email"in e&&Ka(e)}function so(e){if(!e[Bo])throw e.mfaPendingCredential?new I("multi-factor-auth-required",null,bt(e)):new I("internal-error")}function yu(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new I("internal-error")}else{if(!e.sessionInfo)throw new I("missing-verification-id");if(!e.code)throw new I("missing-verification-code")}}$o.prototype.o=function(e,u,U,pe,$e){var Dt=this;Ll.then(function(){window.gapi.client.setApiKey(Dt.c);var zt=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:U,body:pe,headers:$e,authType:"none",callback:function(Pn){window.gapi.auth.setToken(zt),u&&u(Pn)}})}).s(function(zt){u&&u({error:{message:zt&&zt.message||"CORS_UNSUPPORTED"}})})},$o.prototype.yb=function(){return Ai(this,On,{})},$o.prototype.Ab=function(e,u){return Ai(this,pn,{idToken:e,email:u})},$o.prototype.Bb=function(e,u){return Ai(this,Rn,{idToken:e,password:u})};var ka={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function Yu(e){if(!e.phoneVerificationInfo)throw new I("internal-error");
1if(!e.phoneVerificationInfo.sessionInfo)throw new I("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new I("missing-verification-code")}function qu(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new I("internal-error")}function Qu(e,u){return u.oauthIdToken&&u.providerId&&0==u.providerId.indexOf("oidc.")&&!u.pendingToken&&(e.sessionId?u.nonce=e.sessionId:e.postBody&&mo(e=new Js(e.postBody),"nonce")&&(u.nonce=e.get("nonce"))),u}function Fc(e){var u=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",u=uu(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",u=uu(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",u=uu(e)):e.errorMessage&&(u=gl(e.errorMessage)),u)throw u;so(e)}function Ju(e,u){return u.returnIdpCredential=!0,Ai(e,vr,u)}function fl(e,u){return u.returnIdpCredential=!0,Ai(e,Qr,u)}function Ul(e,u){return u.returnIdpCredential=!0,u.autoCreate=!1,Ai(e,ni,u)}function pl(e){if(!e.oobCode)throw new I("invalid-action-code")}(_=$o.prototype).Cb=function(e,u){var U={idToken:e},pe=[];return Nt(ka,function($e,Dt){var zt=u[Dt];null===zt?pe.push($e):Dt in u&&(U[Dt]=zt)}),pe.length&&(U.deleteAttribute=pe),Ai(this,pn,U)},_.ub=function(e,u){return Un(e={requestType:"PASSWORD_RESET",email:e},u),Ai(this,ne,e)},_.vb=function(e,u){return Un(e={requestType:"EMAIL_SIGNIN",email:e},u),Ai(this,o,e)},_.tb=function(e,u){return Un(e={requestType:"VERIFY_EMAIL",idToken:e},u),Ai(this,d,e)},_.Db=function(e,u,U){return Un(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:u},U),Ai(this,F,e)},_.eb=function(e){return Ai(this,Bi,e)},_.mb=function(e,u){return Ai(this,ft,{oobCode:e,newPassword:u})},_.Qa=function(e){return Ai(this,oa,{oobCode:e})},_.ib=function(e){return Ai(this,Xa,{oobCode:e})};var Xa={endpoint:"setAccountInfo",B:pl,Z:"email",C:!0},oa={endpoint:"resetPassword",B:pl,F:function(e){var u=e.requestType;if(!u||!e.email&&"EMAIL_SIGNIN"!=u&&"VERIFY_AND_CHANGE_EMAIL"!=u)throw new I("internal-error")},C:!0},Pd={endpoint:"signupNewUser",B:function(e){if(Ka(e),!e.password)throw new I("weak-password")},F:so,U:!0,C:!0},Ya={endpoint:"createAuthUri",C:!0},Th={endpoint:"deleteAccount",M:["idToken"]},Ih={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(e){if("array"!=v(e.deleteProvider))throw new I("internal-error")}},ya={endpoint:"emailLinkSignin",M:["email","oobCode"],B:Ka,F:so,U:!0,C:!0},Lc={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:Ka,F:so,U:!0},Zu={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:Yu,F:so,C:!0,Na:!0},a={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:Yu,F:so,C:!0,Na:!0},i={endpoint:"getAccountInfo"},o={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new I("internal-error");Ka(e)},Z:"email",C:!0},d={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new I("internal-error")},Z:"email",C:!0},F={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new I("internal-error")},Z:"email",C:!0},ne={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("PASSWORD_RESET"!=e.requestType)throw new I("internal-error");Ka(e)},Z:"email",C:!0},Ee={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},je={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(e){if(!e.recaptchaSiteKey)throw new I("internal-error")}},ft={endpoint:"resetPassword",B:pl,Z:"email",C:!0},Gt={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},pn={endpoint:"setAccountInfo",M:["idToken"],B:vu,U:!0},Rn={endpoint:"setAccountInfo",M:["idToken"],B:function(e){if(vu(e),!e.password)throw new I("weak-password")},F:so,U:!0},On={endpoint:"signupNewUser",F:so,U:!0,C:!0},Kn={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(e){if(!e.phoneEnrollmentInfo)throw new I("internal-error");
1if(!e.phoneEnrollmentInfo.phoneNumber)throw new I("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new I("missing-app-credential")},F:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new I("internal-error")},C:!0,Na:!0},lr={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new I("missing-app-credential")},F:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new I("internal-error")},C:!0,Na:!0},vr={endpoint:"verifyAssertion",B:qu,Xa:Qu,F:Fc,U:!0,C:!0},ni={endpoint:"verifyAssertion",B:qu,Xa:Qu,F:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new I("user-not-found");if(e.errorMessage)throw gl(e.errorMessage);so(e)},U:!0,C:!0},Qr={endpoint:"verifyAssertion",B:function(e){if(qu(e),!e.idToken)throw new I("internal-error")},Xa:Qu,F:Fc,U:!0},di={endpoint:"verifyCustomToken",B:function(e){if(!e.token)throw new I("invalid-custom-token")},F:so,U:!0,C:!0},bi={endpoint:"verifyPassword",B:function(e){if(Ka(e),!e.password)throw new I("wrong-password")},F:so,U:!0,C:!0},Bi={endpoint:"verifyPhoneNumber",B:yu,F:so,C:!0},ls={endpoint:"verifyPhoneNumber",B:function(e){if(!e.idToken)throw new I("internal-error");yu(e)},F:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",uu(e);so(e)}},Cs={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:yu,F:so,C:!0},Qo={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(e){if(!!e[Bo]^!!e.refreshToken)throw new I("internal-error")},C:!0,Na:!0};function Ai(e,u,U){if(!function Ri(e,u){if(!u||!u.length)return!0;if(!e)return!1;for(var U=0;U<u.length;U++){var pe=e[u[U]];if(null==pe||""===pe)return!1}return!0}(U,u.M))return si(new I("internal-error"));var Dt,pe=!!u.Na,$e=u.Tb||"POST";return $r(U).then(u.B).then(function(){return u.U&&(U.returnSecureToken=!0),u.C&&e.b&&void 0===U.tenantId&&(U.tenantId=e.b),function jl(e,u,U,pe,$e,Dt,zt){var Pn=ws(u+U);qi(Pn,"key",e.c),zt&&qi(Pn,"cb",y().toString());var yr="GET"==pe;if(yr)for(var Rr in $e)$e.hasOwnProperty(Rr)&&qi(Pn,Rr,$e[Rr]);return new Yr(function(Si,Es){Xu(e,Pn.toString(),function(us){us?us.error?Es(ml(us,Dt||{})):Si(us):Es(new I("network-request-failed"))},pe,yr?void 0:Mo(fe($e)),e.a,e.m.get())})}(e,pe?e.i:e.h,u.endpoint,$e,U,u.Gb,u.kb||!1)}).then(function(zt){return Dt=zt,u.Xa?u.Xa(U,Dt):Dt}).then(u.F).then(function(){if(!u.Z)return Dt;if(!(u.Z in Dt))throw new I("internal-error");return Dt[u.Z]})}function gl(e){return ml({error:{errors:[{message:e}],code:400,message:e}})}function ml(e,u){var U=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",pe={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(U=pe[U]?new I(pe[U]):null)return U;for(var $e in U=e.error&&e.error.message||"",Un(pe={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
1NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},u||{}),u=(u=U.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<u.length?u[1]:void 0,pe)if(0===U.indexOf($e))return new I(pe[$e],u);return!u&&e&&(u=B(e)),new I("internal-error",u)}function Vl(e){this.b=e,this.a=null,this.qb=function Jo(e){return function cp(){return Bc||(Bc=new Yr(function(e,u){function U(){qt(),ye("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){qt(),u(Error("Network Error"))},timeout:jo.get()})}if(ye("gapi.iframes.Iframe"))e();else if(ye("gapi.load"))U();else{var pe="__iframefcb"+Math.floor(1e6*Math.random()).toString();C[pe]=function(){ye("gapi.load")?U():u(Error("Network Error"))},$r(cl(pe=nr(Rd,{onload:pe}))).s(function(){u(Error("Network Error"))})}}).s(function(e){throw Bc=null,e}))}().then(function(){return new Yr(function(u,U){ye("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:ye("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(pe){function $e(){clearTimeout(Dt),u()}e.a=pe,e.a.restyle({setHideOnLeave:!1});var Dt=setTimeout(function(){U(Error("Network Error"))},qa.get());pe.ping($e).then($e,function(){U(Error("Network Error"))})})})})}(this)}var Rd=new tn(Nn,"https://apis.google.com/js/api.js?onload=%{onload}"),jo=new $t(3e4,6e4),qa=new $t(5e3,15e3),Bc=null;function xd(e,u,U,pe){this.l=e,this.h=u,this.i=U,this.g=pe,this.f=null,e=this.g?gs((e=ws(this.g.url)).f,e.a,e.g,"/emulator/auth/iframe"):gs("https",this.l,null,"/__/auth/iframe"),this.a=e,qi(this.a,"apiKey",this.h),qi(this.a,"appName",this.i),this.b=null,this.c=[]}function jc(e,u,U,pe,$e,Dt){this.u=e,this.o=u,this.c=U,this.v=pe,this.m=Dt,this.i=this.g=this.l=null,this.a=$e,this.h=this.f=null}function Dh(e){try{return t.app(e).auth().Ga()}catch(u){return[]}}function Uc(e,u,U,pe,$e,Dt){this.o=e,this.g=u,this.b=U,this.f=Dt,this.c=pe||null,this.i=$e||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function Vc(e){var u=Y();return function Nc(e){return Ai(e,Ee,{}).then(function(u){return u.authorizedDomains||[]})}(e).then(function(U){e:{var pe=ws(u),$e=pe.f;pe=pe.a;for(var Dt=0;Dt<U.length;Dt++){var zt=U[Dt],Pn=pe,yr=$e;if(0==zt.indexOf("chrome-extension://")?Pn=ws(zt).a==Pn&&"chrome-extension"==yr:"http"!=yr&&"https"!=yr?Pn=!1:vi.test(zt)?Pn=Pn==zt:(zt=zt.split(".").join("\\."),Pn=new RegExp("^(.+\\."+zt+"|"+zt+")$","i").test(Pn)),Pn){U=!0;break e}}U=!1}if(!U)throw new Ol(Y())})}function Md(e){return e.v||(e.v=Fi().then(function(){if(!e.u){var u=e.c,U=e.i,pe=Dh(e.b),$e=new xd(e.o,e.g,e.b,e.f);$e.f=u,$e.b=U,$e.c=Rt(pe||[]),e.u=$e.toString()}e.m=new Vl(e.u),function Od(e){if(!e.m)throw Error("IfcHandler must be initialized!");!function tc(e,u){e.qb.then(function(){e.a.register("authEvent",u,ye("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(e.m,function(u){var U={};if(u&&u.authEvent){var pe=!1;for(u=$a(u.authEvent),U=0;U<e.h.length;U++)pe=e.h[U](u)||pe;return(U={}).status=pe?"ACK":"ERROR",$r(U)}return U.status="ERROR",$r(U)})}(e)})),e.v}function Ph(e){return e.l||(e.A=e.c?ot(e.c,Dh(e.b)):null,e.l=new $o(e.g,ve(e.i),e.A),e.f&&Oa(e.l,e.f)),e.l}function nc(e,u,U,pe,$e,Dt,zt,Pn,yr,Rr,Si,Es){return(e=new jc(e,u,U,pe,$e,Es)).l=Dt,e.g=zt,e.i=Pn,e.b=bt(yr||null),e.f=Rr,e.xb(Si).toString()}function hp(e){if(this.a=e||t.INTERNAL.reactNative&&t.INTERNAL.reactNative.AsyncStorage,!this.a)throw new I("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function kd(e){this.b=e,this.a={},this.f=$(this.c,this)}xd.prototype.toString=function(){return this.f?qi(this.a,"v",this.f):Os(this.a.b,"v"),this.b?qi(this.a,"eid",this.b):Os(this.a.b,"eid"),this.c.length?qi(this.a,"fw",this.c.join(",")):Os(this.a.b,"fw"),this.a.toString()},jc.prototype.xb=function(e){return this.h=e,this},jc.prototype.toString=function(){if(this.m){var e=ws(this.m.url);e=gs(e.f,e.a,e.g,"/emulator/auth/handler")}else e=gs("https",this.u,null,"/__/auth/handler");if(qi(e,"apiKey",this.o),qi(e,"appName",this.c),qi(e,"authType",this.v),this.a.isOAuthProvider){var u=this.a;try{var U=t.app(this.c).auth().ka()}catch(Pn){U=null}for(var pe in u.nb=U,qi(e,"providerId",this.a.providerId),u=fe((U=this.a).Hb))u[pe]=u[pe].toString();pe=U.Pc,u=bt(u);for(var $e=0;$e<pe.length;$e++){var Dt=pe[$e];Dt in u&&delete u[Dt]}U.ob&&U.nb&&!u[U.ob]&&(u[U.ob]=U.nb),wt(u)||qi(e,"customParameters",B(u))}if("function"==typeof this.a.Pb&&(U=this.a.Pb()).length&&qi(e,"scopes",U.join(",")),this.l?qi(e,"redirectUrl",this.l):Os(e.b,"redirectUrl"),this.g?qi(e,"eventId",this.g):Os(e.b,"eventId"),this.i?qi(e,"v",this.i):Os(e.b,"v"),this.b)for(var zt in this.b)this.b.hasOwnProperty(zt)&&!Xi(e,zt)&&qi(e,zt,this.b[zt]);return this.h?qi(e,"tid",this.h):Os(e.b,"tid"),this.f?qi(e,"eid",this.f):Os(e.b,"eid"),(zt=Dh(this.c)).length&&qi(e,"fw",zt.join(",")),e.toString()},(_=Uc.prototype).Nb=function(e,u,U){var pe=new I("popup-closed-by-user"),$e=new I("web-storage-unsupported"),Dt=this,zt=!1;return this.la().then(function(){(function $c(e){var u={type:"webStorageSupport"};return Md(e).then(function(){return function ec(e,u){return e.qb.then(function(){return new Yr(function(U){e.a.send(u.type,u,U,ye("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(e.m,u)}
1).then(function(U){if(U&&U.length&&void 0!==U[0].webStorageSupport)return U[0].webStorageSupport;throw Error()})})(Dt).then(function(Pn){Pn||(e&&Xn(e),u($e),zt=!0)})}).s(function(){}).then(function(){if(!zt)return function Ei(e){return new Yr(function(u){return function U(){Xt(2e3).then(function(){if(e&&!e.closed)return U();u()})}()})}(e)}).then(function(){if(!zt)return Xt(U).then(function(){u(pe)})})},_.Wb=function(){var e=ce();return!g(e)&&!Pt(e)},_.Sb=function(){return!1},_.Lb=function(e,u,U,pe,$e,Dt,zt,Pn){if(!e)return si(new I("popup-blocked"));if(zt&&!g())return this.la().s(function(Rr){Xn(e),$e(Rr)}),pe(),$r();this.a||(this.a=Vc(Ph(this)));var yr=this;return this.a.then(function(){var Rr=yr.la().s(function(Si){throw Xn(e),$e(Si),Si});return pe(),Rr}).then(function(){sl(U),zt||Le(nc(yr.o,yr.g,yr.b,u,U,null,Dt,yr.c,void 0,yr.i,Pn,yr.f),e)}).s(function(Rr){throw"auth/network-request-failed"==Rr.code&&(yr.a=null),Rr})},_.Mb=function(e,u,U,pe){this.a||(this.a=Vc(Ph(this)));var $e=this;return this.a.then(function(){sl(u),Le(nc($e.o,$e.g,$e.b,e,u,Y(),U,$e.c,void 0,$e.i,pe,$e.f))}).s(function(Dt){throw"auth/network-request-failed"==Dt.code&&($e.a=null),Dt})},_.la=function(){var e=this;return Md(this).then(function(){return e.m.qb}).s(function(){throw e.a=null,new I("network-request-failed")})},_.Zb=function(){return!0},_.Ea=function(e){this.h.push(e)},_.Ra=function(e){Lt(this.h,function(u){return u==e})},(_=hp.prototype).get=function(e){return $r(this.a.getItem(e)).then(function(u){return u&&De(u)})},_.set=function(e,u){return $r(this.a.setItem(e,B(u)))},_.T=function(e){return $r(this.a.removeItem(e))},_.ca=function(){},_.ia=function(){};var Mh,dp=[];function Nd(e,u,U){wt(e.a)&&e.b.addEventListener("message",e.f),void 0===e.a[u]&&(e.a[u]=[]),e.a[u].push(U)}function Rh(e){this.a=e}function Fd(e){this.c=e,this.b=!1,this.a=[]}function Hg(e,u,U,pe){var $e,zt,Pn,yr,Dt=U||{},Rr=null;if(e.b)return si(Error("connection_unavailable"));var Si=pe?800:50,Es="undefined"!=typeof MessageChannel?new MessageChannel:null;return new Yr(function(us,_o){Es?($e=Math.floor(Math.random()*Math.pow(10,20)).toString(),Es.port1.start(),Pn=setTimeout(function(){_o(Error("unsupported_event"))},Si),e.a.push(Rr={messageChannel:Es,onMessage:zt=function(Ja){Ja.data.eventId===$e&&("ack"===Ja.data.status?(clearTimeout(Pn),yr=setTimeout(function(){_o(Error("timeout"))},3e3)):"done"===Ja.data.status?(clearTimeout(yr),void 0!==Ja.data.response?us(Ja.data.response):_o(Error("unknown_error"))):(clearTimeout(Pn),clearTimeout(yr),_o(Error("invalid_response"))))}}),Es.port1.addEventListener("message",zt),e.c.postMessage({eventType:u,eventId:$e,data:Dt},[Es.port2])):_o(Error("connection_unavailable"))}).then(function(us){return xh(e,Rr),us}).s(function(us){throw xh(e,Rr),us})}function xh(e,u){if(u){var U=u.messageChannel;U&&(U.port1.removeEventListener("message",u.onMessage),U.port1.close()),Lt(e.a,function($e){return $e==u})}}function fp(){if(!Ld())throw new I("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=C.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var e=this;Vi()&&self?(this.l=function $g(){var e=Vi()?self:null;if(he(dp,function(U){U.b==e&&(u=U)}),!u){var u=new kd(e);dp.push(u)}return u}(),Nd(this.l,"keyChanged",function(u,U){return mp(e).then(function(pe){return 0<pe.length&&he(e.a,function($e){$e(pe)}),{keyProcessed:Ot(pe,U.key)}})}),Nd(this.l,"ping",function(){return $r(["keyChanged"])})):function Te(){var e=C.navigator;return e&&e.serviceWorker?$r().then(function(){return e.serviceWorker.ready}).then(function(u){return u.active||null}).s(function(){return null}):$r(null)}().then(function(u){(e.h=u)&&(e.g=new Fd(new Rh(u)),Hg(e.g,"ping",null,!0).then(function(U){U[0].fulfilled&&Ot(U[0].value,"keyChanged")&&(e.o=!0)}).s(function(){}))})}function pp(e){return new Yr(function(u,U){var pe=e.m.open("firebaseLocalStorageDb",1);pe.onerror=function($e){try{$e.preventDefault()}catch(Dt){}U(Error($e.target.error))},pe.onupgradeneeded=function($e){$e=$e.target.result;try{$e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(Dt){U(Dt)}},pe.onsuccess=function($e){($e=$e.target.result).objectStoreNames.contains("firebaseLocalStorage")?u($e):function Wg(e){return new Yr(function(u,U){var pe=e.m.deleteDatabase("firebaseLocalStorageDb");pe.onsuccess=function(){u()},pe.onerror=function($e){U(Error($e.target.error))}})}(e).then(function(){return pp(e)}).then(function(Dt){u(Dt)}
1).s(function(Dt){U(Dt)})}})}function Zo(e){return e.v||(e.v=pp(e)),e.v}function Ld(){try{return!!C.indexedDB}catch(e){return!1}}function rc(e){return e.objectStore("firebaseLocalStorage")}function Hc(e,u){return e.transaction(["firebaseLocalStorage"],u?"readwrite":"readonly")}function ic(e){return new Yr(function(u,U){e.onsuccess=function(pe){pe&&pe.target?u(pe.target.result):u()},e.onerror=function(pe){U(pe.target.error)}})}function gp(e,u){return e.g&&e.h&&function Ie(){var e=C.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Hg(e.g,"keyChanged",{key:u},e.o).then(function(){}).s(function(){}):$r()}function mp(e){return Zo(e).then(function(u){var U=rc(Hc(u,!1));return U.getAll?ic(U.getAll()):new Yr(function(pe,$e){var Dt=[],zt=U.openCursor();zt.onsuccess=function(Pn){(Pn=Pn.target.result)?(Dt.push(Pn.value),Pn.continue()):pe(Dt)},zt.onerror=function(Pn){$e(Pn.target.error)}})}).then(function(u){var U={},pe=[];if(0==e.b){for(pe=0;pe<u.length;pe++)U[u[pe].fbase_key]=u[pe].value;pe=lt(e.c,U),e.c=U}return pe})}function yp(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function bp(e){var u=this,U=null;this.a=[],this.type="indexedDB",this.c=e,this.b=$r().then(function(){if(Ld()){var pe=rt(),$e="__sak"+pe;return Mh||(Mh=new fp),(U=Mh).set($e,pe).then(function(){return U.get($e)}).then(function(Dt){if(Dt!==pe)throw Error("indexedDB not supported!");return U.T($e)}).then(function(){return U}).s(function(){return u.c})}return u.c}).then(function(pe){return u.type=pe.type,pe.ca(function($e){he(u.a,function(Dt){Dt($e)})}),pe})}function Wc(){this.a={},this.type="inMemory"}function yi(){if(!function _p(){var e="Node"==wi();if(!(e=Bd()||e&&t.INTERNAL.node&&t.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(u){return!1}}())throw"Node"==wi()?new I("internal-error","The LocalStorage compatibility library was not found."):new I("web-storage-unsupported");this.a=Bd()||t.INTERNAL.node.localStorage,this.type="localStorage"}function Bd(){try{var e=C.localStorage,u=rt();return e&&(e.setItem(u,"1"),e.removeItem(u)),e}catch(U){return null}}function Oh(){this.type="nullStorage"}function sc(){if(!function Ep(){var e="Node"==wi();if(!(e=ba()||e&&t.INTERNAL.node&&t.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(u){return!1}}())throw"Node"==wi()?new I("internal-error","The SessionStorage compatibility library was not found."):new I("web-storage-unsupported");this.a=ba()||t.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function ba(){try{var e=C.sessionStorage,u=rt();return e&&(e.setItem(u,"1"),e.removeItem(u)),e}catch(U){return null}}function Gg(){var e={};e.Browser=vl,e.Node=jd,e.ReactNative=wp,e.Worker=Ud,this.a=e[wi()]}kd.prototype.c=function(e){var u=e.data.eventType,U=e.data.eventId,pe=this.a[u];if(pe&&0<pe.length){e.ports[0].postMessage({status:"ack",eventId:U,eventType:u,response:null});var $e=[];he(pe,function(Dt){$e.push($r().then(function(){return Dt(e.origin,e.data.data)}))}),is($e).then(function(Dt){var zt=[];he(Dt,function(Pn){zt.push({fulfilled:Pn.Ob,value:Pn.value,reason:Pn.reason?Pn.reason.message:void 0})}),he(zt,function(Pn){for(var yr in Pn)void 0===Pn[yr]&&delete Pn[yr]}),e.ports[0].postMessage({status:"done",eventId:U,eventType:u,response:zt})})}},Rh.prototype.postMessage=function(e,u){this.a.postMessage(e,u)},Fd.prototype.close=function(){for(;0<this.a.length;)xh(this,this.a[0]);this.b=!0},(_=fp.prototype).set=function(e,u){var pe,U=!1,$e=this;return Zo(this).then(function(Dt){return ic((Dt=rc(Hc(pe=Dt,!0))).get(e))}).then(function(Dt){var zt=rc(Hc(pe,!0));return Dt?(Dt.value=u,ic(zt.put(Dt))):($e.b++,U=!0,(Dt={}).fbase_key=e,Dt.value=u,ic(zt.add(Dt)))}).then(function(){return $e.c[e]=u,gp($e,e)}).na(function(){U&&$e.b--})},_.get=function(e){return Zo(this).then(function(u){return ic(rc(Hc(u,!1)).get(e))}).then(function(u){return u&&u.value})},_.T=function(e){var u=!1,U=this;return Zo(this).then(function(pe){return u=!0,U.b++,ic(rc(Hc(pe,!0)).delete(e))}).then(function(){return delete U.c[e],gp(U,e)}).na(function(){u&&U.b--})},_.ca=function(e){0==this.a.length&&function vp(e){yp(e),function u(){e.f=setTimeout(function(){e.i=mp(e).then(function(U){0<U.length&&he(e.a,function(pe){pe(U)})}).then(function(){u()}).s(function(U){"STOP_EVENT"!=U.message&&u()})},800)}()}(this),this.a.push(e)},_.ia=function(e){Lt(this.a,function(u){return u==e}),0==this.a.length&&yp(this)},(_=bp.prototype).get=function(e){return this.b.then(function(u){return u.get(e)})},_.set=function(e,u){return this.b.then(function(U){return U.set(e,u)})},_.T=function(e){return this.b.then(function(u){return u.T(e)})},_.ca=function(e){this.a.push(e)},_.ia=function(e){Lt(this.a,function(u){return u==e})},(_=Wc.prototype).get=function(e){return $r(this.a[e])},_.set=function(e,u){return this.a[e]=u,$r()},_.T=function(e){return delete this.a[e],$r()},_.ca=function(){},_.ia=function(){},(_=yi.prototype).get=function(e){var u=this;return $r().then(function(){return De(u.a.getItem(e))})},_.set=function(e,u){var U=this;return $r().then(function(){var pe=B(u);null===pe?U.T(e):U.a.setItem(e,pe)})},_.T=function(e){var u=this;return $r().then(function(){u.a.removeItem(e)})},_.ca=function(e){C.window&&xn(C.window,"storage",e)},_.ia=function(e){C.window&&pr(C.window,"storage",e)},(_=Oh.prototype).get=function(){return $r(null)},_.set=function(){return $r()},_.T=function(){return $r()},_.ca=function(){},_.ia=function(){},(_=sc.prototype).get=function(e){var u=this;return $r().then(function(){return De(u.a.getItem(e))})},_.set=function(e,u){var U=this;return $r().then(function(){var pe=B(u);null===pe?U.T(e):U.a.setItem(e,pe)})},_.T=function(e){var u=this;return $r().then(function(){u.a.removeItem(e)})},_.ca=function(){},_.ia=function(){};var Gc,oc,vl={D:yi,ab:sc},jd={D:yi,ab:sc},wp={D:hp,ab:Oh},Ud={D:yi,ab:Oh},zc={qd:"local",NONE:"none",sd:"session"};function zg(){var e=!(Pt(ce())||!Vs()),u=g(),U=Ke();this.v=e,this.h=u,this.l=U,this.a={},Gc||(Gc=new Gg),e=Gc;try{this.g=!es()&&Pr()||!C.indexedDB?new e.a.D:new bp(Vi()?new Wc:new e.a.D)}catch(pe){this.g=new Wc,this.h=!0}try{this.i=new e.a.ab}catch(pe){this.i=new Wc}this.m=new Wc,this.f=$(this.Xb,this),this.b={}}function $l(){return oc||(oc=new zg),oc}function yl(e,u){switch(u){case"session":return e.i;case"none":return e.m;default:return e.g}}function Hl(e,u){return"firebase:"+e.name+(u?":"+u:"")}
1function Kc(e,u,U){return U=Hl(u,U),"local"==u.D&&(e.b[U]=null),yl(e,u.D).T(U)}function $d(e){e.c&&(clearInterval(e.c),e.c=null)}function Xg(e){this.a=e,this.b=$l()}(_=zg.prototype).get=function(e,u){return yl(this,e.D).get(Hl(e,u))},_.set=function(e,u,U){var pe=Hl(e,U),$e=this,Dt=yl(this,e.D);return Dt.set(pe,u).then(function(){return Dt.get(pe)}).then(function(zt){"local"==e.D&&($e.b[pe]=zt)})},_.addListener=function(e,u,U){e=Hl(e,u),this.l&&(this.b[e]=C.localStorage.getItem(e)),wt(this.a)&&(yl(this,"local").ca(this.f),this.h||(es()||!Pr())&&C.indexedDB||!this.l||function Kg(e){$d(e),e.c=setInterval(function(){for(var u in e.a){var U=C.localStorage.getItem(u),pe=e.b[u];U!=pe&&(e.b[u]=U,U=new cr({type:"storage",key:u,target:window,oldValue:pe,newValue:U,a:!0}),e.Xb(U))}},1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(U)},_.removeListener=function(e,u,U){e=Hl(e,u),this.a[e]&&(Lt(this.a[e],function(pe){return pe==U}),0==this.a[e].length&&delete this.a[e]),wt(this.a)&&(yl(this,"local").ia(this.f),$d(this))},_.Xb=function(e){if(e&&e.g){var u=e.a.key;if(null==u)for(var U in this.a){var pe=this.b[U];void 0===pe&&(pe=null);var $e=C.localStorage.getItem(U);$e!==pe&&(this.b[U]=$e,this.lb(U))}else if(0==u.indexOf("firebase:")&&this.a[u]){if(void 0!==e.a.a?yl(this,"local").ia(this.f):$d(this),this.v)if(U=C.localStorage.getItem(u),(pe=e.a.newValue)!==U)null!==pe?C.localStorage.setItem(u,pe):C.localStorage.removeItem(u);else if(this.b[u]===pe&&void 0===e.a.a)return;var Dt=this;U=function(){(void 0!==e.a.a||Dt.b[u]!==C.localStorage.getItem(u))&&(Dt.b[u]=C.localStorage.getItem(u),Dt.lb(u))},Ht&&Lr&&10==Lr&&C.localStorage.getItem(u)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(U,10):U()}}else he(e,$(this.lb,this))},_.lb=function(e){this.a[e]&&he(this.a[e],function(u){u()})};var Xc,Hd={name:"authEvent",D:"local"};function Sy(){this.a=$l()}function Wd(e,u){this.b=Gd,this.f=C.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=u,this.l=C.Int32Array?new Int32Array(64):Array(64),void 0===Xc&&(Xc=C.Int32Array?new Int32Array(Jg):Jg),this.reset()}k(Wd,function Yg(){this.b=-1});for(var Gd=64,qg=Gd-1,kh=[],Cp=0;Cp<qg;Cp++)kh[Cp]=0;var Qg=Jt(128,kh);function Tp(e){for(var u=e.f,U=e.l,pe=0,$e=0;$e<u.length;)U[pe++]=u[$e]<<24|u[$e+1]<<16|u[$e+2]<<8|u[$e+3],$e=4*pe;for(u=16;64>u;u++){var Dt=(0|U[u-16])+((($e=0|U[u-15])>>>7|$e<<25)^($e>>>18|$e<<14)^$e>>>3)|0,zt=(0|U[u-7])+(((pe=0|U[u-2])>>>17|pe<<15)^(pe>>>19|pe<<13)^pe>>>10)|0;U[u]=Dt+zt|0}pe=0|e.a[0],$e=0|e.a[1];var Pn=0|e.a[2],yr=0|e.a[3],Rr=0|e.a[4],Si=0|e.a[5],Es=0|e.a[6];for(Dt=0|e.a[7],u=0;64>u;u++){var us=((pe>>>2|pe<<30)^(pe>>>13|pe<<19)^(pe>>>22|pe<<10))+(pe&$e^pe&Pn^$e&Pn)|0;zt=(Dt=Dt+((Rr>>>6|Rr<<26)^(Rr>>>11|Rr<<21)^(Rr>>>25|Rr<<7))|0)+((zt=(zt=Rr&Si^~Rr&Es)+(0|Xc[u])|0)+(0|U[u])|0)|0,Dt=Es,Es=Si,Si=Rr,Rr=yr+zt|0,yr=Pn,Pn=$e,$e=pe,pe=zt+us|0}e.a[0]=e.a[0]+pe|0,e.a[1]=e.a[1]+$e|0,e.a[2]=e.a[2]+Pn|0,e.a[3]=e.a[3]+yr|0,e.a[4]=e.a[4]+Rr|0,e.a[5]=e.a[5]+Si|0,e.a[6]=e.a[6]+Es|0,e.a[7]=e.a[7]+Dt|0}function Ip(e,u,U){void 0===U&&(U=u.length);var pe=0,$e=e.c;if("string"==typeof u)for(;pe<U;)e.f[$e++]=u.charCodeAt(pe++),$e==e.b&&(Tp(e),$e=0);else{if(!R(u))throw Error("message must be string or array");for(;pe<U;){var Dt=u[pe++];if(!("number"==typeof Dt&&0<=Dt&&255>=Dt&&Dt==(0|Dt)))throw Error("message must be a byte array");e.f[$e++]=Dt,$e==e.b&&(Tp(e),$e=0)}}e.c=$e,e.g+=U}Wd.prototype.reset=function(){this.g=this.c=0,this.a=C.Int32Array?new Int32Array(this.h):Rt(this.h)};var Jg=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298];function Zg(){Wd.call(this,8,Cy)}k(Zg,Wd);var Cy=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function em(e,u,U,pe,$e,Dt){this.m=e,this.i=u,this.l=U,this.v=pe||null,this.u=$e||null,this.o=Dt,this.h=u+":"+U,this.A=new Sy,this.g=new Xg(this.h),this.f=null,this.b=[],this.a=this.c=null}function zd(e){return new I("invalid-cordova-configuration",e)}function Dp(e,u){for(var U=0;U<e.b.length;U++)try{e.b[U](u)}catch(pe){}}function Xd(e){return e.f||(e.f=e.la().then(function(){return new Yr(function(u){e.Ea(function U(pe){return u(pe),e.Ra(U),!1}),function Pp(e){function u(zt){pe=!0,$e&&$e.cancel(),Yc(e).then(function(Pn){var yr=U;if(Pn&&zt&&zt.url){var Rr=null;-1!=(yr=_c(zt.url)).indexOf("/__/auth/callback")&&(Rr=(Rr="object"==typeof(Rr=De(Xi(Rr=ws(yr),"firebaseError")||null))?H(Rr):null)?new Fo(Pn.c,Pn.b,null,null,Rr,null,Pn.S()):new Fo(Pn.c,Pn.b,yr,Pn.f,null,null,Pn.S())),yr=Rr||U}Dp(e,yr)})}var U=new Fo("unknown",null,null,null,new I("no-auth-event")),pe=!1,$e=Xt(500).then(function(){return Yc(e).then(function(){pe||Dp(e,U)})}),Dt=C.handleOpenURL;C.handleOpenURL=function(zt){if(0==zt.toLowerCase().indexOf(ye("BuildInfo.packageName",C).toLowerCase()+"://")&&u({url:zt}),"function"==typeof Dt)try{Dt(zt)}catch(Pn){console.error(Pn)}},wc||(wc=new Ed),function sp(e){var u=wc;u.a.push(e),u.b||(u.b=function(U){for(var pe=0;pe<u.a.length;pe++)u.a[pe](U)},"function"==typeof(e=ye("universalLinks.subscribe",C))&&e(null,u.b))}(u)}(e)})})),e.f}function Yc(e){var u=null;return function Sp(e){return e.b.get(Hd,e.a).then(function(u){return $a(u)})}(e.g).then(function(U){return u=U,Kc((U=e.g).b,Hd,U.a)}).then(function(){return u})}function Yd(e){this.a=e,this.b=$l()}(_=em.prototype).la=function(){return this.Ia?this.Ia:this.Ia=function vs(){return Ys(void 0)?Fi().then(function(){return new Yr(function(e,u){var U=C.document,pe=setTimeout(function(){u(Error("Cordova framework is not ready."))},1e3);U.addEventListener("deviceready",function(){clearTimeout(pe),e()},!1)})}):si(Error("Cordova must run in an Android or iOS file scheme."))}().then(function(){if("function"!=typeof ye("universalLinks.subscribe",C))throw zd("cordova-universal-links-plugin-fix is not installed");if(void 0===ye("BuildInfo.packageName",C))throw zd("cordova-plugin-buildinfo is not installed");if("function"!=typeof ye("cordova.plugins.browsertab.openUrl",C))throw zd("cordova-plugin-browsertab is not installed");if("function"!=typeof ye("cordova.InAppBrowser.open",C))throw zd("cordova-plugin-inappbrowser is not installed")},function(){throw new I("cordova-not-ready")})},_.Nb=function(e,u){return u(new I("operation-not-supported-in-this-environment")),$r()},_.Lb=function(){return si(new I("operation-not-supported-in-this-environment"))},_.Zb=function(){return!1},_.Wb=function(){return!0},_.Sb=function(){return!0},_.Mb=function(e,u,U,pe){if(this.c)return si(new I("redirect-operation-pending"));var $e=this,Dt=C.document,zt=null,Pn=null,yr=null,Rr=null;return this.c=$r().then(function(){return sl(u),Xd($e)}).then(function(){return function Kd(e,u,U,pe,$e){var Dt=function Ty(){for(var e=20,u=[];0<e;)u.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return u.join("")}(),zt=new Fo(u,pe,null,Dt,new I("no-auth-event"),null,$e),Pn=ye("BuildInfo.packageName",C);if("string"!=typeof Pn)throw new I("invalid-cordova-configuration");var yr=ye("BuildInfo.displayName",C),Rr={};if(ce().toLowerCase().match(/iphone|ipad|ipod/))Rr.ibi=Pn;else{if(!ce().toLowerCase().match(/android/))return si(new I("operation-not-supported-in-this-environment"));Rr.apn=Pn}yr&&(Rr.appDisplayName=yr),Dt=function Wl(e){var u=new Zg;Ip(u,e),e=[];var U=8*u.g;Ip(u,Qg,56>u.c?56-u.c:u.b-(u.c-56));for(var pe=63;56<=pe;pe--)u.f[pe]=255&U,U/=256;for(Tp(u),pe=U=0;pe<u.i;pe++)for(var $e=24;0<=$e;$e-=8)e[U++]=u.a[pe]>>$e&255;return function ru(e){return Ye(e,function(u){return 1<(u=u.toString(16)).length?u:"0"+u}).join("")}(e)}(Dt),Rr.sessionId=Dt;var Si=nc(e.m,e.i,e.l,u,U,null,pe,e.v,Rr,e.u,$e,e.o);return e.la().then(function(){var Es=e.h;return e.A.a.set(Hd,zt.w(),Es)}).then(function(){var Es=ye("cordova.plugins.browsertab.isAvailable",C);if("function"!=typeof Es)throw new I("invalid-cordova-configuration");var us=null;Es(function(_o){if(_o){if("function"!=typeof(us=ye("cordova.plugins.browsertab.openUrl",C)))throw new I("invalid-cordova-configuration");us(Si)}else{if("function"!=typeof(us=ye("cordova.InAppBrowser.open",C)))throw new I("invalid-cordova-configuration");_o=ce(),e.a=us(Si,_o.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||_o.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}($e,e,u,U,pe)}).then(function(){return new Yr(function(Si,Es){Pn=function(){var us=ye("cordova.plugins.browsertab.close",C);return Si(),"function"==typeof us&&us(),$e.a&&"function"==typeof $e.a.close&&($e.a.close(),$e.a=null),!1},$e.Ea(Pn),Rr=function(){Tn()&&yr()},Dt.addEventListener("resume",yr=function(){zt||(zt=Xt(2e3).then(function(){Es(new I("redirect-cancelled-by-user"))}))},!1),ce().toLowerCase().match(/android/)||Dt.addEventListener("visibilitychange",Rr,!1)}).s(function(Si){return Yc($e).then(function(){throw Si})})}).na(function(){yr&&Dt.removeEventListener("resume",yr,!1),Rr&&Dt.removeEventListener("visibilitychange",Rr,!1),zt&&zt.cancel(),Pn&&$e.Ra(Pn),$e.c=null})},_.Ea=function(e){this.b.push(e),Xd(this).s(function(u){"auth/invalid-cordova-configuration"===u.code&&(u=new Fo("unknown",null,null,null,new I("no-auth-event")),e(u))})},_.Ra=function(e){Lt(this.b,function(u){return u==e})};var qd={name:"pendingRedirect",D:"session"};function Nh(e){return Kc(e.b,qd,e.a)}function ac(e,u,U,pe){this.i={},this.u=0,this.O=e,this.m=u,this.v=U,this.G=pe,this.h=[],this.f=!1,this.l=$(this.o,this),this.b=new cc,this.A=new Np,this.g=new Yd(ef(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=Rp(this.O,this.m,this.v,We,this.G)}function Rp(e,u,U,pe,$e){var Dt=t.SDK_VERSION||null;return Ys()?new em(e,u,U,Dt,pe,$e):new Uc(e,u,U,Dt,pe,$e)}function Qd(e){e.f||(e.f=!0,e.a.Ea(e.l));var u=e.a;return e.a.la().s(function(U){throw e.a==u&&e.reset(),U})}function xp(e){e.a.Wb()&&Qd(e).s(function(u){var U=new Fo("unknown",null,null,null,new I("operation-not-supported-in-this-environment"));_u(u)&&e.o(U)}),e.a.Sb()||tf(e.b)}function Jd(e,u){Ot(e.h,u)||e.h.push(u),e.f||function tm(e){return e.b.get(qd,e.a).then(function(u){return"pending"==u})}(e.g).then(function(U){U?Nh(e.g).then(function(){Qd(e).s(function(pe){var $e=new Fo("unknown",null,null,null,new I("operation-not-supported-in-this-environment"));_u(pe)&&e.o($e)})}):xp(e)}).s(function(){xp(e)})}function lc(e,u){Lt(e.h,function(U){return U==u})}ac.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=Rp(this.O,this.m,this.v,null,this.G),this.i={}},ac.prototype.o=function(e){if(!e)throw new I("invalid-auth-event");
1if(6e5<=y()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var u=!1,U=0;U<this.h.length;U++){var pe=this.h[U];if(pe.Eb(e.c,e.b)){(u=this.c[e.c])&&(u.h(e,pe),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=y())),u=!0;break}}return tf(this.b),u};var uc=new $t(2e3,1e4),Zd=new $t(3e4,6e4);function bu(e,u,U,pe,$e,Dt,zt){return e.a.Lb(u,U,pe,function(){e.f||(e.f=!0,e.a.Ea(e.l))},function(){e.reset()},$e,Dt,zt)}function _u(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Eu(e,u,U,pe,$e){var Dt;return function Gl(e){return e.b.set(qd,"pending",e.a)}(e.g).then(function(){return e.a.Mb(u,U,pe,$e).s(function(zt){if(_u(zt))throw new I("operation-not-supported-in-this-environment");return Dt=zt,Nh(e.g).then(function(){throw Dt})}).then(function(){return e.a.Zb()?new Yr(function(){}):Nh(e.g).then(function(){return e.qa()}).then(function(){}).s(function(){})})})}function Mp(e,u,U,pe,$e){return e.a.Nb(pe,function(Dt){u.ma(U,null,Dt,$e)},uc.get())}ac.prototype.qa=function(){return this.b.qa()};var Fh={};function ef(e,u,U){return e=e+":"+u,U&&(e=e+":"+U.url),e}function Lh(e,u,U,pe){var $e=ef(u,U,pe);return Fh[$e]||(Fh[$e]=new ac(e,u,U,pe)),Fh[$e]}function cc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function tf(e){e.g||(e.g=!0,zl(e,!1,null,null))}function wu(e){e.g&&!e.i&&zl(e,!1,null,null)}function rm(e,u){if(e.b=function(){return $r(u)},e.f.length)for(var U=0;U<e.f.length;U++)e.f[U](u)}function zl(e,u,U,pe){u?pe?function Op(e,u){if(e.b=function(){return si(u)},e.c.length)for(var U=0;U<e.c.length;U++)e.c[U](u)}(e,pe):rm(e,U):rm(e,{user:null}),e.f=[],e.c=[]}function Np(){}function Lp(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(e){this.hb=e},enumerable:!1})}function nf(e,u){this.a=u,Zt(this,"verificationId",e)}function Ho(e,u,U,pe){return new ra(e).eb(u,U).then(function($e){return new nf($e,pe)})}function im(e){var u=dh(e);if(!(u&&u.exp&&u.auth_time&&u.iat))throw new I("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");In(this,{token:e,expirationTime:mr(1e3*u.exp),authTime:mr(1e3*u.auth_time),issuedAtTime:mr(1e3*u.iat),signInProvider:u.firebase&&u.firebase.sign_in_provider?u.firebase.sign_in_provider:null,signInSecondFactor:u.firebase&&u.firebase.sign_in_second_factor?u.firebase.sign_in_second_factor:null,claims:u})}function rf(e,u,U){var pe=u&&u[om];if(!pe)throw new I("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=bt(u),this.g=U,this.c=new Ou(null,pe),this.b=[];var $e=this;he(u[sm]||[],function(Dt){(Dt=Fr(Dt))&&$e.b.push(Dt)}),Zt(this,"auth",this.a),Zt(this,"session",this.c),Zt(this,"hints",this.b)}cc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},cc.prototype.h=function(e,u){if(e){this.reset(),this.g=!0;var U=e.c,pe=e.b,$e=e.a&&"auth/web-storage-unsupported"==e.a.code,Dt=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!$e&&!Dt),"unknown"!=U||$e||Dt?e.a?(zl(this,!0,null,e.a),$r()):u.Fa(U,pe)?function nm(e,u,U){U=U.Fa(u.c,u.b);var pe=u.g,$e=u.f,Dt=u.i,zt=u.S(),Pn=!!u.c.match(/Redirect$/);U(pe,$e,zt,Dt).then(function(yr){zl(e,Pn,yr,null)}).s(function(yr){zl(e,Pn,null,yr)})}(this,e,u):si(new I("invalid-auth-event")):(zl(this,!1,null,null),$r())}else si(new I("invalid-auth-event"))},cc.prototype.qa=function(){var e=this;return new Yr(function(u,U){e.b?e.b().then(u,U):(e.f.push(u),e.c.push(U),function kp(e){var u=new I("timeout");e.a&&e.a.cancel(),e.a=Xt(Zd.get()).then(function(){e.b||(e.g=!0,zl(e,!0,null,u))})}(e))})},Np.prototype.h=function(e,u){if(e){var U=e.c,pe=e.b;e.a?(u.ma(e.c,null,e.a,e.b),$r()):u.Fa(U,pe)?function Fp(e,u){var U=e.b,pe=e.c;u.Fa(pe,U)(e.g,e.f,e.S(),e.i).then(function($e){u.ma(pe,$e,null,U)}).s(function($e){u.ma(pe,null,$e,U)})}(e,u):si(new I("invalid-auth-event"))}else si(new I("invalid-auth-event"))},nf.prototype.confirm=function(e){return e=il(this.verificationId,e),this.a(e)};var sm="mfaInfo",om="mfaPendingCredential";function Bh(e,u,U,pe){I.call(this,"multi-factor-auth-required",pe,u),this.b=new rf(e,u,U),Zt(this,"resolver",this.b)}function am(e,u,U){if(e&&M(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new Bh(u,e.serverResponse,U,e.message)}catch(pe){}return null}function Bp(){}function of(e){Zt(this,"factorId",e.fa),this.a=e}function Up(e){if(of.call(this,e),this.a.fa!=ra.PROVIDER_ID)throw new I("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function hc(e,u){for(var U in qn.call(this,e),u)this[U]=u[U]}function jh(e,u){this.a=e,this.b=[],this.c=$(this.xc,this),xn(this.a,"userReloaded",this.c);var U=[];u&&u.multiFactor&&u.multiFactor.enrolledFactors&&he(u.multiFactor.enrolledFactors,function(pe){var $e=null,Dt={};
1if(pe){pe.uid&&(Dt[ts]=pe.uid),pe.displayName&&(Dt[ti]=pe.displayName),pe.enrollmentTime&&(Dt[fi]=new Date(pe.enrollmentTime).toISOString()),pe.phoneNumber&&(Dt[eo]=pe.phoneNumber);try{$e=new _s(Dt)}catch(zt){}pe=$e}else pe=null;pe&&U.push(pe)}),qc(this,U)}function qc(e,u){e.b=u,Zt(e,"enrolledFactors",u)}function af(e,u,U){if(this.h=e,this.i=u,this.g=U,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Uh(e,u){e.stop(),e.b=Xt(function um(e,u){return u?(e.a=e.c,e.g()):(u=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),u)}(e,u)).then(function(){return function zn(){var e=C.document,u=null;return Tn()||!e?$r():new Yr(function(U){u=function(){Tn()&&(e.removeEventListener("visibilitychange",u,!1),U())},e.addEventListener("visibilitychange",u,!1)}).s(function(U){throw e.removeEventListener("visibilitychange",u,!1),U})}()}).then(function(){return e.h()}).then(function(){Uh(e,!0)}).s(function(U){e.i(U)&&Uh(e,!1)})}function Vh(e){this.c=e,this.b=this.a=null}function lf(e){return e.b&&1e3*e.b.c||0}function Na(e,u){var U=u.refreshToken;e.b=su(u[Bo]||""),e.a=U}function $h(e,u){this.a=e||null,this.b=u||null,In(this,{lastSignInTime:mr(u||null),creationTime:mr(e||null)})}function Vp(e,u,U,pe,$e,Dt){In(this,{uid:e,displayName:pe||null,photoURL:$e||null,email:U||null,phoneNumber:Dt||null,providerId:u})}function aa(e,u,U){this.G=[],this.l=e.apiKey,this.m=e.appName,this.o=e.authDomain||null;var pe=t.SDK_VERSION?ot(t.SDK_VERSION):null;this.a=new $o(this.l,ve(We),pe),e.emulatorConfig&&Oa(this.a,e.emulatorConfig),this.b=new Vh(this.a),Qc(this,u[Bo]),Na(this.b,u),Zt(this,"refreshToken",this.b.a),$p(this,U||{}),Sr.call(this),this.P=!1,this.o&&xt()&&(this.i=Lh(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=function Hh(e){return new af(function(){return e.I(!0)},function(u){return!(!u||"auth/network-request-failed"!=u.code)},function(){var u=lf(e.b)-y()-3e5;return 0<u?u:0})}(this),this.$=$(this.gb,this);var $e=this;this.pa=null,this.Ba=function(Dt){$e.wa(Dt.h)},this.ba=null,this.za=function(Dt){Oa($e.a,Dt.c)},this.W=null,this.X=[],this.Aa=function(Dt){Au($e,Dt.f)},this.aa=null,this.N=new jh(this,U),Zt(this,"multiFactor",this.N)}function cf(e,u){e.ba&&pr(e.ba,"languageCodeChanged",e.Ba),(e.ba=u)&&xn(u,"languageCodeChanged",e.Ba)}function hf(e,u){e.W&&pr(e.W,"emulatorConfigChanged",e.za),(e.W=u)&&xn(u,"emulatorConfigChanged",e.za)}function Au(e,u){e.X=u,mu(e.a,t.SDK_VERSION?ot(t.SDK_VERSION,e.X):null)}function df(e,u){e.aa&&pr(e.aa,"frameworkChanged",e.Aa),(e.aa=u)&&xn(u,"frameworkChanged",e.Aa)}function ff(e){try{return t.app(e.m).auth()}catch(u){throw new I("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function Wh(e){e.A||e.u.b||(e.u.start(),pr(e,"tokenChanged",e.$),xn(e,"tokenChanged",e.$))}function pf(e){pr(e,"tokenChanged",e.$),e.u.stop()}function Qc(e,u){e.ya=u,Zt(e,"_lat",u)}function Kl(e){for(var u=[],U=0;U<e.R.length;U++)u.push(e.R[U](e));return is(u).then(function(){return e})}function Jc(e){e.i&&!e.P&&(e.P=!0,Jd(e.i,e))}function $p(e,u){In(e,{uid:u.uid,displayName:u.displayName||null,photoURL:u.photoURL||null,email:u.email||null,emailVerified:u.emailVerified||!1,phoneNumber:u.phoneNumber||null,isAnonymous:u.isAnonymous||!1,tenantId:u.tenantId||null,metadata:new $h(u.createdAt,u.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Gh(){}function Hp(e){return $r().then(function(){if(e.A)throw new I("app-deleted")})}function mf(e){return Ye(e.providerData,function(u){return u.providerId})}function zh(e,u){u&&(vf(e,u.providerId),e.providerData.push(u))}function vf(e,u){Lt(e.providerData,function(U){return U.providerId==u})}function bl(e,u,U){("uid"!=u||U)&&e.hasOwnProperty(u)&&Zt(e,u,U)}function Zc(e,u){e!=u&&(In(e,{uid:u.uid,displayName:u.displayName,photoURL:u.photoURL,email:u.email,emailVerified:u.emailVerified,phoneNumber:u.phoneNumber,isAnonymous:u.isAnonymous,tenantId:u.tenantId,providerData:[]}),Zt(e,"metadata",u.metadata?function Iy(e){return new $h(e.a,e.b)}(u.metadata):new $h),he(u.providerData,function(U){zh(e,U)}),function uf(e,u){e.b=u.b,e.a=u.a}(e.b,u.b),Zt(e,"refreshToken",e.b.a),qc(e.N,u.N.b))}function Kh(e){return e.I().then(function(u){var U=e.isAnonymous;return function Xh(e,u){return Ai(e.a,i,{idToken:u}).then($(e.Jc,e))}(e,u).then(function(){return U||bl(e,"isAnonymous",!1),u})})}function bo(e,u){u[Bo]&&e.ya!=u[Bo]&&(Na(e.b,u),e.dispatchEvent(new hc("tokenChanged")),Qc(e,u[Bo]),bl(e,"refreshToken",e.b.a))}function eh(e,u){return Kh(e).then(function(){if(Ot(mf(e),u))return Kl(e).then(function(){throw new I("provider-already-linked")})})}
1function Yh(e,u,U){return ar({user:e,credential:ma(u),additionalUserInfo:u=ou(u),operationType:U})}function th(e,u){return bo(e,u),e.reload().then(function(){return e})}function yf(e,u,U,pe,$e){if(!xt())return si(new I("operation-not-supported-in-this-environment"));if(e.f&&!$e)return si(e.f);var Dt=Va(U.providerId),zt=rt(e.uid+":::"),Pn=null;(!g()||Vs())&&e.o&&U.isOAuthProvider&&(Pn=nc(e.o,e.l,e.m,u,U,null,zt,t.SDK_VERSION||null,null,null,e.tenantId));var yr=Hr(Pn,Dt&&Dt.ua,Dt&&Dt.ta);return pe=pe().then(function(){if(dc(e),!$e)return e.I().then(function(){})}).then(function(){return bu(e.i,yr,u,U,zt,!!Pn,e.tenantId)}).then(function(){return new Yr(function(Rr,Si){e.ma(u,null,new I("cancelled-popup-request"),e.h||null),e.g=Rr,e.O=Si,e.h=zt,e.c=Mp(e.i,e,u,yr,zt)})}).then(function(Rr){return yr&&Xn(yr),Rr?ar(Rr):null}).s(function(Rr){throw yr&&Xn(yr),Rr}),go(e,pe,$e)}function qh(e,u,U,pe,$e){if(!xt())return si(new I("operation-not-supported-in-this-environment"));if(e.f&&!$e)return si(e.f);var Dt=null,zt=rt(e.uid+":::");return pe=pe().then(function(){if(dc(e),!$e)return e.I().then(function(){})}).then(function(){return e.ga=zt,Kl(e)}).then(function(Pn){return e.ha&&(Pn=(Pn=e.ha).b.set(nh,e.w(),Pn.a)),Pn}).then(function(){return Eu(e.i,u,U,zt,e.tenantId)}).s(function(Pn){if(Dt=Pn,e.ha)return zp(e.ha);throw Dt}).then(function(){if(Dt)throw Dt}),go(e,pe,$e)}function dc(e){if(!e.i||!e.P)throw new I(e.i&&!e.P?"internal-error":"auth-domain-config-required")}function go(e,u,U){var pe=function bf(e,u,U){return e.f&&!U?(u.cancel(),si(e.f)):u.s(function(pe){throw!pe||"auth/user-disabled"!=pe.code&&"auth/user-token-expired"!=pe.code||(e.f||e.dispatchEvent(new hc("userInvalidated")),e.f=pe),pe})}(e,u,U);return e.G.push(pe),pe.na(function(){ln(e.G,pe)}),pe.s(function($e){var Dt=null;throw $e&&"auth/multi-factor-auth-required"===$e.code&&(Dt=am($e.w(),ff(e),$(e.ic,e))),Dt||$e})}function _f(e){if(!e.apiKey)return null;var u={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName,emulatorConfig:e.emulatorConfig},U={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;U[Bo]=e.stsTokenManager.accessToken,U.refreshToken=e.stsTokenManager.refreshToken||null;var pe=new aa(u,U,e);return e.providerData&&he(e.providerData,function($e){$e&&zh(pe,ar($e))}),e.redirectEventId&&(pe.ga=e.redirectEventId),pe}function hm(e){this.a=e,this.b=$l()}rf.prototype.Qc=function(e){var u=this;return e.rb(this.a.a,this.c).then(function(U){var pe=bt(u.f);return delete pe[sm],delete pe[om],Un(pe,U),u.g(pe)})},k(Bh,I),Bp.prototype.rb=function(e,u,U){return u.type==pa?function sf(e,u,U,pe){return U.Ha().then(function($e){return $e={idToken:$e},void 0!==pe&&($e.displayName=pe),Un($e,{phoneVerificationInfo:Bu(e.a)}),Ai(u,Zu,$e)})}(this,e,u,U):function jp(e,u,U){return U.Ha().then(function(pe){return Un(pe={mfaPendingCredential:pe},{phoneVerificationInfo:Bu(e.a)}),Ai(u,a,pe)})}(this,e,u)},k(of,Bp),k(Up,of),k(hc,qn),(_=jh.prototype).xc=function(e){qc(this,function lm(e){var u=[];return he(e.mfaInfo||[],function(U){(U=Fr(U))&&u.push(U)}),u}(e.gd))},_.Qb=function(){return this.a.I().then(function(e){return new Ou(e,null)})},_.ec=function(e,u){var U=this,pe=this.a.a;return this.Qb().then(function($e){return e.rb(pe,$e,u)}).then(function($e){return bo(U.a,$e),U.a.reload()})},_.ad=function(e){var u=this,U="string"==typeof e?e:e.uid,pe=this.a.a;return this.a.I().then(function($e){return Ai(pe,Qo,{idToken:$e,mfaEnrollmentId:U})}).then(function($e){var Dt=Ne(u.b,function(zt){return zt.uid!=U});return qc(u,Dt),bo(u.a,$e),u.a.reload().s(function(zt){if("auth/user-token-expired"!=zt.code)throw zt})})},_.w=function(){return{multiFactor:{enrolledFactors:Ye(this.b,function(e){return e.w()})}}},af.prototype.start=function(){this.a=this.c,Uh(this,!0)},af.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Vh.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:lf(this)}},Vh.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?si(new I("user-token-expired")):e||!this.b||y()>lf(this)-3e4?this.a?function cm(e,u){return function kc(e,u){return new Yr(function(U,pe){"refresh_token"==u.grant_type&&u.refresh_token||"authorization_code"==u.grant_type&&u.code?Xu(e,e.l+"?key="+encodeURIComponent(e.c),function($e){$e?$e.error?pe(ml($e)):$e.access_token&&$e.refresh_token?U($e):pe(new I("internal-error")):pe(ne
1w I("network-request-failed"))},"POST",ao(u).toString(),e.g,e.v.get()):pe(new I("internal-error"))})}(e.c,u).then(function(U){return e.b=su(U.access_token),e.a=U.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}}).s(function(U){throw"auth/user-token-expired"==U.code&&(e.a=null),U})}(this,{grant_type:"refresh_token",refresh_token:this.a}):$r(null):$r({accessToken:this.b.toString(),refreshToken:this.a})},$h.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},k(aa,Sr),aa.prototype.wa=function(e){this.pa=e,Mc(this.a,e)},aa.prototype.ka=function(){return this.pa},aa.prototype.Ga=function(){return Rt(this.X)},aa.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},Zt(aa.prototype,"providerId","firebase"),(_=aa.prototype).reload=function(){var e=this;return go(this,Hp(this).then(function(){return Kh(e).then(function(){return Kl(e)}).then(Gh)}))},_.nc=function(e){return this.I(e).then(function(u){return new im(u)})},_.I=function(e){var u=this;return go(this,Hp(this).then(function(){return u.b.getToken(e)}).then(function(U){if(!U)throw new I("internal-error");return U.accessToken!=u.ya&&(Qc(u,U.accessToken),u.dispatchEvent(new hc("tokenChanged"))),bl(u,"refreshToken",U.refreshToken),U.accessToken}))},_.Jc=function(e){if(!(e=e.users)||!e.length)throw new I("internal-error");$p(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var u=function Wp(e){return(e=e.providerUserInfo)&&e.length?Ye(e,function(u){return new Vp(u.rawId,u.providerId,u.email,u.displayName,u.photoUrl,u.phoneNumber)}):[]}(e),U=0;U<u.length;U++)zh(this,u[U]);bl(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new hc("userReloaded",{gd:e}))},_.Kc=function(e){return qe("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(e)},_.sb=function(e){var u=this,U=null;return go(this,e.c(this.a,this.uid).then(function(pe){return bo(u,pe),U=Yh(u,pe,"reauthenticate"),u.f=null,u.reload()}).then(function(){return U}),!0)},_.Bc=function(e){return qe("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(e)},_.pb=function(e){var u=this,U=null;return go(this,eh(this,e.providerId).then(function(){return u.I()}).then(function(pe){return e.b(u.a,pe)}).then(function(pe){return U=Yh(u,pe,"link"),th(u,pe)}).then(function(){return U}))},_.Cc=function(e,u){var U=this;return go(this,eh(this,"phone").then(function(){return Ho(ff(U),e,u,$(U.pb,U))}))},_.Lc=function(e,u){var U=this;return go(this,$r().then(function(){return Ho(ff(U),e,u,$(U.sb,U))}),!0)},_.Ab=function(e){var u=this;return go(this,this.I().then(function(U){return u.a.Ab(U,e)}).then(function(U){return bo(u,U),u.reload()}))},_.dd=function(e){var u=this;return go(this,this.I().then(function(U){return e.b(u.a,U)}).then(function(U){return bo(u,U),u.reload()}))},_.Bb=function(e){var u=this;return go(this,this.I().then(function(U){return u.a.Bb(U,e)}).then(function(U){return bo(u,U),u.reload()}))},_.Cb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Hp(this);var u=this;return go(this,this.I().then(function(U){return u.a.Cb(U,{displayName:e.displayName,photoUrl:e.photoURL})}).then(function(U){return bo(u,U),bl(u,"displayName",U.displayName||null),bl(u,"photoURL",U.photoUrl||null),he(u.providerData,function(pe){"password"===pe.providerId&&(Zt(pe,"displayName",u.displayName),Zt(pe,"photoURL",u.photoURL))}),Kl(u)}).then(Gh))},_.bd=function(e){var u=this;return go(this,Kh(this).then(function(U){return Ot(mf(u),e)?function Dd(e,u,U){return Ai(e,Ih,{idToken:u,deleteProvider:U})}(u.a,U,[e]).then(function(pe){var $e={};return he(pe.providerUserInfo||[],function(Dt){$e[Dt.providerId]=!0}),he(mf(u),function(Dt){$e[Dt]||vf(u,Dt)}),$e[ra.PROVIDER_ID]||Zt(u,"phoneNumber",null),Kl(u)}):Kl(u).then(function(){throw new I("no-such-provider")})}))},_.delete=function(){var e=this;return go(this,this.I().then(function(u){return Ai(e.a,Th,{idToken:u})}).then(function(){e.dispatchEvent(new hc("userDeleted"))})).then(function(){for(var u=0;u<e.G.length;u++)e.G[u].cancel("app-deleted");cf(e,null),hf(e,null),df(e,null),e.G=[],e.A=!0,pf(e),Zt(e,"refreshToken",null),e.i&&lc(e.i,e)})},_.Eb=function(e,u){return!!("linkViaPopup"==e&&(this.h||null)==u&&this.g||"reauthViaPopup"==e&&(this.h||null)==u&&this.g||"linkViaRedirect"==e&&(this.ga||null)==u||"reauthViaRedirect"==e&&(this.ga||null)==u)},_.ma=function(e,u,U,pe){"linkViaPopup"!=e&&"reauthViaPopup"!=e||pe!=(this.h||null)||(U&&this.O?this.O(U):u&&!U&&this.g&&this.g(u),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},_.Fa=function(e,u){return"linkViaPopup"==e&&u==(this.h||null)?$(this.Jb,this):"reauthViaPopup"==e&&u==(this.h||null)?$(this.Kb,this):"linkViaRedirect"==e&&(this.ga||null)==u?$(this.Jb,this):"reauthViaRedirect"==e&&(this.ga||null)==u?$(this.Kb,this):null},_.Dc=function(e){var u=this;return yf(this,"linkViaPopup",e,function(){return eh(u,e.providerId).then(function(){return Kl(u)}
1)},!1)},_.Mc=function(e){return yf(this,"reauthViaPopup",e,function(){return $r()},!0)},_.Ec=function(e){var u=this;return qh(this,"linkViaRedirect",e,function(){return eh(u,e.providerId)},!1)},_.Nc=function(e){return qh(this,"reauthViaRedirect",e,function(){return $r()},!0)},_.Jb=function(e,u,U,pe){var $e=this;this.c&&(this.c.cancel(),this.c=null);var Dt=null;return go(this,this.I().then(function(zt){return fl($e.a,{requestUri:e,postBody:pe,sessionId:u,idToken:zt})}).then(function(zt){return Dt=Yh($e,zt,"link"),th($e,zt)}).then(function(){return Dt}))},_.Kb=function(e,u,U,pe){var $e=this;this.c&&(this.c.cancel(),this.c=null);var Dt=null;return go(this,$r().then(function(){return ks(Ul($e.a,{requestUri:e,sessionId:u,postBody:pe,tenantId:U}),$e.uid)}).then(function(Pn){return Dt=Yh($e,Pn,"reauthenticate"),bo($e,Pn),$e.f=null,$e.reload()}).then(function(){return Dt}),!0)},_.tb=function(e){var u=this,U=null;return go(this,this.I().then(function(pe){return U=pe,void 0===e||wt(e)?{}:Za(new Pu(e))}).then(function(pe){return u.a.tb(U,pe)}).then(function(pe){if(u.email!=pe)return u.reload()}).then(function(){}))},_.Db=function(e,u){var U=this,pe=null;return go(this,this.I().then(function($e){return pe=$e,void 0===u||wt(u)?{}:Za(new Pu(u))}).then(function($e){return U.a.Db(pe,e,$e)}).then(function($e){if(U.email!=$e)return U.reload()}).then(function(){}))},_.ic=function(e){var u=null,U=this;return go(this,e=ks($r(e),U.uid).then(function(pe){return u=Yh(U,pe,"reauthenticate"),bo(U,pe),U.f=null,U.reload()}).then(function(){return u}),!0)},_.toJSON=function(){return this.w()},_.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&Un(e,this.metadata.w()),he(this.providerData,function(u){e.providerData.push(function Gr(e){var U,u={};for(U in e)e.hasOwnProperty(U)&&(u[U]=e[U]);return u}(u))}),Un(e,this.N.w()),e};var nh={name:"redirectUser",D:"session"};function zp(e){return Kc(e.b,nh,e.a)}function Qh(e){this.a=e,this.b=$l(),this.c=null,this.f=function Kp(e){var u=Qa("local"),U=Qa("session"),pe=Qa("none");return function Vd(e,u,U){var pe=Hl(u,U),$e=yl(e,u.D);return e.get(u,U).then(function(Dt){var zt=null;try{zt=De(C.localStorage.getItem(pe))}catch(Pn){}if(zt&&!Dt)return C.localStorage.removeItem(pe),e.set(u,zt,U);zt&&Dt&&"localStorage"!=$e.type&&C.localStorage.removeItem(pe)})}(e.b,u,e.a).then(function(){return e.b.get(U,e.a)}).then(function($e){return $e?U:e.b.get(pe,e.a).then(function(Dt){return Dt?pe:e.b.get(u,e.a).then(function(zt){return zt?u:e.b.get(wf,e.a).then(function(Pn){return Pn?Qa(Pn):u})})})}).then(function($e){return e.c=$e,Xl(e,$e.D)}).s(function(){e.c||(e.c=u)})}(this),this.b.addListener(Qa("local"),this.a,$(this.g,this))}function Xl(e,u){var pe,U=[];for(pe in zc)zc[pe]!==u&&U.push(Kc(e.b,Qa(zc[pe]),e.a));return U.push(Kc(e.b,wf,e.a)),function Yi(e){return new Yr(function(u,U){var pe=e.length,$e=[];if(pe)for(var Dt=function(Rr,Si){pe--,$e[Rr]=Si,0==pe&&u($e)},zt=function(Rr){U(Rr)},Pn=0;Pn<e.length;Pn++)cs(e[Pn],se(Dt,Pn),zt);else u($e)})}(U)}Qh.prototype.g=function(){var e=this,u=Qa("local");pc(this,function(){return $r().then(function(){return e.c&&"local"!=e.c.D?e.b.get(u,e.a):null}).then(function(U){if(U)return Xl(e,"local").then(function(){e.c=u})})})};var wf={name:"persistence",D:"session"};function Qa(e){return{name:"authUser",D:e}}function Xp(e,u){return pc(e,function(){return e.b.set(e.c,u.w(),e.a)})}function Yp(e){return pc(e,function(){return Kc(e.b,e.c,e.a)})}function qp(e,u,U){return pc(e,function(){return e.b.get(e.c,e.a).then(function(pe){return pe&&u&&(pe.authDomain=u),pe&&U&&(pe.emulatorConfig=U),_f(pe||{})})})}function pc(e,u){return e.f=e.f.then(u,u),e.f}function Ks(e){if(this.m=!1,Zt(this,"settings",new Lp),Zt(this,"app",e),!Ps(this).options||!Ps(this).options.apiKey)throw new I("invalid-api-key");e=t.SDK_VERSION?ot(t.SDK_VERSION):null,this.a=new $o(Ps(this).options&&Ps(this).options.apiKey,ve(We),e),this.R=[],this.u=[],this.P=[],this.ac=t.INTERNAL.createSubscribe($(this.yc,this)),this.X=void 0,this.bc=t.INTERNAL.createSubscribe($(this.zc,this)),Yl(this,null),this.l=new Qh(Ps(this).options.apiKey+":"+Ps(this).name),this.G=new hm(Ps(this).options.apiKey+":"+Ps(this).name),this.$=$s(this,function tg(e){var u=Ps(e).options.authDomain,U=function Dy(e){var u=function dm(e,u){return e.b.get(nh,e.a).then(function(U){return U&&u&&(U.authDomain=u),_f(U||{})})}(e.G,Ps(e).options.authDomain).then(function(U){return(e.o=U)&&(U.ha=e.G),zp(e.G)});return $s(e,u)}(e).then(function(){return qp(e.l,u,e.f)}).then(function(pe){return pe?(pe.ha=e.G,e.o&&(e.o.ga||null)==(pe.ga||null)?pe:pe.reload().then(function(){return Xp(e.l,pe).then(function(){return pe})}).s(function($e){return"auth/network-request-failed"==$e.code?pe:Yp(e.l)})):null}).then(function(pe){Yl(e,pe||null)});return $s(e,U)}(this)),this.i=$s(this,function pm(e){return e.$.then(function(){return eg(e)}).s(function(){}).then(function(){if(!e.m)return e.pa()}).s(function(){}).then(function(){if(!e.m){e.ba=!0;var u=e.l;u.b.addListener(Qa("local"),u.a,e.pa)}})}(this)),this.ba=!1,this.pa=$(this.Yc,this),this.Ba=$(this.da,this),this.ya=$(this.kc,this),this.za=$(this.vc,this),this.Aa=$(this.wc,this),this.b=null,function Zp(e){var u=Ps(e).options.authDomain,U=Ps(e).options.apiKey;u&&xt()&&(e.gb=e.$.then(function(){if(!e.m){if(e.b=Lh(u,U,Ps(e).name,e.f),Jd(e.b,e),Li(e)&&Jc(Li(e)),e.o){Jc(e.o);var pe=e.o;
1pe.wa(e.ka()),cf(pe,e),Au(pe=e.o,e.N),df(pe,e),Oa((pe=e.o).a,e.f),hf(pe,e),e.o=null}return e.b}}))}(this),this.INTERNAL={},this.INTERNAL.delete=$(this.delete,this),this.INTERNAL.logFramework=$(this.Fc,this),this.A=0,Sr.call(this),function Jp(e){Object.defineProperty(e,"lc",{get:function(){return this.ka()},set:function(u){this.wa(u)},enumerable:!1}),e.aa=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(u){this.xb(u)},enumerable:!1}),e.W=null}(this),this.N=[],this.f=null}function Jh(e){qn.call(this,"languageCodeChanged"),this.h=e}function Af(e){qn.call(this,"emulatorConfigChanged"),this.c=e}function Sf(e){qn.call(this,"frameworkChanged"),this.f=e}function Cf(e){return e.gb||si(new I("auth-domain-config-required"))}function eg(e){if(!xt())return si(new I("operation-not-supported-in-this-environment"));var u=Cf(e).then(function(){return e.b.qa()}).then(function(U){return U?ar(U):null});return $s(e,u)}function Yl(e,u){Li(e)&&(function gf(e,u){Lt(e.R,function(U){return U==u})}(Li(e),e.Ba),pr(Li(e),"tokenChanged",e.ya),pr(Li(e),"userDeleted",e.za),pr(Li(e),"userInvalidated",e.Aa),pf(Li(e))),u&&(u.R.push(e.Ba),xn(u,"tokenChanged",e.ya),xn(u,"userDeleted",e.za),xn(u,"userInvalidated",e.Aa),0<e.A&&Wh(u)),Zt(e,"currentUser",u),u&&(u.wa(e.ka()),cf(u,e),Au(u,e.N),df(u,e),Oa(u.a,e.f),hf(u,e))}function Su(e,u){var U=null,pe=null;return $s(e,u.then(function($e){return U=ma($e),pe=ou($e),function fm(e,u){var U={};return U.apiKey=Ps(e).options.apiKey,U.authDomain=Ps(e).options.authDomain,U.appName=Ps(e).name,e.f&&(U.emulatorConfig=e.f),e.$.then(function(){return function Ef(e,u,U,pe){var $e=new aa(e,u);return U&&($e.ha=U),pe&&Au($e,pe),$e.reload().then(function(){return $e})}(U,u,e.G,e.Ga())}).then(function(pe){return Li(e)&&pe.uid==Li(e).uid?(Zc(Li(e),pe),e.da(pe)):(Yl(e,pe),Jc(pe),e.da(pe))}).then(function(){rh(e)})}(e,$e)},function($e){var Dt=null;throw $e&&"auth/multi-factor-auth-required"===$e.code&&(Dt=am($e.w(),e,$(e.jc,e))),Dt||$e}).then(function(){return ar({user:Li(e),credential:U,additionalUserInfo:pe,operationType:"signIn"})}))}function Ps(e){return e.app}function Li(e){return e.currentUser}function gc(e){return Li(e)&&Li(e)._lat||null}function rh(e){if(e.ba){for(var u=0;u<e.u.length;u++)e.u[u]&&e.u[u](gc(e));if(e.X!==e.getUid()&&e.P.length)for(e.X=e.getUid(),u=0;u<e.P.length;u++)e.P[u]&&e.P[u](gc(e))}}function $s(e,u){return e.R.push(u),u.na(function(){ln(e.R,u)}),u}function ih(){}function Do(){this.a={},this.b=1e12}Qh.prototype.wb=function(e){var u=null,U=this;return function Ap(e){var u=new I("invalid-persistence-type"),U=new I("unsupported-persistence-type");e:{for(pe in zc)if(zc[pe]==e){var pe=!0;break e}pe=!1}if(!pe||"string"!=typeof e)throw u;switch(wi()){case"ReactNative":if("session"===e)throw U;break;case"Node":if("none"!==e)throw U;break;case"Worker":if("session"===e||!Ld()&&"none"!==e)throw U;break;default:if(!Ke()&&"none"!==e)throw U}}(e),pc(this,function(){return e!=U.c.D?U.b.get(U.c,U.a).then(function(pe){return u=pe,Xl(U,e)}).then(function(){if(U.c=Qa(e),u)return U.b.set(U.c,u,U.a)}):$r()})},k(Ks,Sr),k(Jh,qn),k(Af,qn),k(Sf,qn),(_=Ks.prototype).wb=function(e){return $s(this,e=this.l.wb(e))},_.wa=function(e){this.aa===e||this.m||(this.aa=e,Mc(this.a,this.aa),this.dispatchEvent(new Jh(this.ka())))},_.ka=function(){return this.aa},_.ed=function(){var e=C.navigator;this.wa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},_.fd=function(e){if(!this.f){if(!/^https?:\/\//.test(e))throw new I("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function Qp(){tr("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),C.document&&Fi().then(function(){var e=C.document.createElement("div");e.innerText="Running in emulator mode. Do not use with production credentials.",e.style.position="fixed",e.style.width="100%",e.style.backgroundColor="#ffffff",e.style.border=".1em solid #000000",e.style.color="#ff0000",e.style.bottom="0px",e.style.left="0px",e.style.margin="0px",e.style.zIndex=1e4,e.style.textAlign="center",e.classList.add("firebase-emulator-warning"),C.document.body.appendChild(e)})})(),this.f={url:e},this.settings.hb=!0,Oa(this.a,this.f),this.dispatchEvent(new Af(this.f))}},_.Fc=function(e){this.N.push(e),mu(this.a,t.SDK_VERSION?ot(t.SDK_VERSION,this.N):null),this.dispatchEvent(new Sf(this.N))},_.Ga=function(){return Rt(this.N)},_.xb=function(e){this.W===e||this.m||(this.W=e,this.a.b=this.W)},_.S=function(){return this.W},_.toJSON=function(){return{apiKey:Ps(this).options.apiKey,authDomain:Ps(this).options.authDomain,appName:Ps(this).name,currentUser:Li(this)&&Li(this).w()}},_.Eb=function(e,u){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==u&&!!this.g;default:return!1}},_.ma=function(e,u,U,pe){"signInViaPopup"==e&&this.h==pe&&(U&&this.O?this.O(U):u&&!U&&this.g&&this.g(u),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},_.Fa=function(e,u){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.h==u&&this.g?$(this.hc,this):null},_.hc=function(e,u,U,pe){var $e=this,Dt={requestUri:e,postBody:pe,sessionId:u,tenantId:U};return this.c&&(this.c.cancel(),this.c=null),$e.$.then(function(){return Su($e,Ju($e.a,Dt))})},_.Wc=function(e){if(!xt())return si(new I("operation-not-supported-in-this-environment"));var u=this,U=Va(e.providerId),pe=rt(),$e=null;(!g()||Vs())&&Ps(this).options.authDomain&&e.isOAuthProvider&&($e=nc(Ps(this).options.authDomain,Ps(this).options.apiKey,Ps(this).name,"signInViaPopup",e,null,pe,t.SDK_VERSION||null,null,null,this.S(),this.f));var Dt=Hr($e,U&&U.ua,U&&U.ta);return $s(this,U=Cf(this).then(function(zt){return bu(zt,Dt,"signInViaPopup",e,pe,!!$e,u.S())}).then(function(){return new Yr(function(zt,Pn){u.ma("signInViaPopup",null,new I("cancelled-popup-request"),u.h),u.g=zt,u.O=Pn,u.h=pe,u.c=Mp(u.b,u,"signInViaPopup",Dt,pe)})}).then(function(zt){return Dt&&Xn(Dt),zt?ar(zt):null}).s(function(zt){throw Dt&&Xn(Dt),zt}))},_.Xc=function(e){if(!xt())return si(new I("operation-not-supported-in-this-environment"));var u=this,U=Cf(this).then(function(){return function fc(e){return pc(e,function(){return e.b.set(wf,e.c.D,e.a)})}(u.l)}).then(function(){return Eu(u.b,"signInViaRedirect",e,void 0,u.S())});return $s(this,U)},_.qa=function(){var e=this;return eg(this).then(function(u){return e.b&&wu(e.b.b),u}).s(function(u){throw e.b&&wu(e.b.b),u})},_.cd=function(e){if(!e)return si(new I("null-user"));if(this.W!=e.tenantId)return si(new I("tenant-id-mismatch"));var u=this,U={};U.apiKey=Ps(this).options.apiKey,U.authDomain=Ps(this).options.authDomain,U.appName=Ps(this).name;var pe=function Gp(e,u,U,pe){var $e=e.b,Dt={};return Dt[Bo]=$e.b&&$e.b.toString(),Dt.refreshToken=$e.a,u=new aa(u||{apiKey:e.l,authDomain:e.o,appName:e.m},Dt),U&&(u.ha=U),pe&&Au(u,pe),Zc(u,e),u}(e,U,u.G,u.Ga());return $s(this,this.i.then(function(){if(Ps(u).options.apiKey!=e.l)return pe.reload()}).then(function(){return Li(u)&&e.uid==Li(u).uid?(Zc(Li(u),e),u.da(e)):(Yl(u,pe),Jc(pe),u.da(pe))}).then(function(){rh(u)}))},_.zb=function(){var e=this;return $s(this,this.i.then(function(){return e.b&&wu(e.b.b),Li(e)?(Yl(e,null),Yp(e.l).then(function(){rh(e)})):$r()}))},_.Yc=function(){var e=this;return qp(this.l,Ps(this).options.authDomain).then(function(u){if(!e.m){var U;if(U=Li(e)&&u){U=Li(e).uid;var pe=u.uid;U=null!=U&&""!==U&&null!=pe&&""!==pe&&U==pe}if(U)return Zc(Li(e),u),Li(e).I();(Li(e)||u)&&(Yl(e,u),u&&(Jc(u),u.ha=e.G),e.b&&Jd(e.b,e),rh(e))}})},_.da=function(e){return Xp(this.l,e)},_.kc=function(){rh(this),this.da(Li(this))},_.vc=function(){this.zb()},_.wc=function(){this.zb()},_.jc=function(e){var u=this;return this.i.then(function(){return Su(u,$r(e))})},_.yc=function(e){var u=this;this.addAuthTokenListener(function(){e.next(Li(u))})},_.zc=function(e){var u=this;!function ng(e,u){e.P.push(u),$s(e,e.i.then(function(){!e.m&&Ot(e.P,u)&&e.X!==e.getUid()&&(e.X=e.getUid(),u(gc(e)))}))}(this,function(){e.next(Li(u))})},_.Hc=function(e,u,U){var pe=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof e?e(Li(pe)):"function"==typeof e.next&&e.next(Li(pe))}),this.ac(e,u,U)},_.Gc=function(e,u,U){var pe=this;return this.ba&&Promise.resolve().then(function(){pe.X=pe.getUid(),"function"==typeof e?e(Li(pe)):"function"==typeof e.next&&e.next(Li(pe))}),this.bc(e,u,U)},_.mc=function(e){var u=this;return $s(this,this.i.then(function(){return Li(u)?Li(u).I(e).then(function(pe){return{accessToken:pe}}):null}))},_.Sc=function(e){var u=this;return this.i.then(function(){return Su(u,Ai(u.a,di,{token:e}))}).then(function(U){var pe=U.user;return bl(pe,"isAnonymous",!1),u.da(pe),U})},_.Tc=function(e,u){var U=this;return this.i.then(function(){return Su(U,Ai(U.a,bi,{email:e,password:u}))})},_.dc=function(e,u){var U=this;return this.i.then(function(){return Su(U,Ai(U.a,Pd,{email:e,password:u}))})},_.Za=function(e){var u=this;return this.i.then(function(){return Su(u,e.ja(u.a))})},_.Rc=function(e){return qe("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(e)},_.yb=function(){var e=this;return this.i.then(function(){var u=Li(e);if(u&&u.isAnonymous){var U=ar({providerId:null,isNewUser:!1});return ar({user:u,credential:null,additionalUserInfo:U,operationType:"signIn"})}return Su(e,e.a.yb()).then(function(pe){var $e=pe.user;return bl($e,"isAnonymous",!0),e.da($e),pe})})},_.getUid=function(){return Li(this)&&Li(this).uid||null},_.cc=function(e){this.addAuthTokenListener(e),this.A++,0<this.A&&Li(this)&&Wh(Li(this))},_.Oc=function(e){var u=this;he(this.u,function(U){U==e&&u.A--}),0>this.A&&(this.A=0),0==this.A&&Li(this)&&pf(Li(this)),this.removeAuthTokenListener(e)},_.addAuthTokenListener=function(e){var u=this;this.u.push(e),$s(this,this.i.then(function(){u.m||Ot(u.u,e)&&e(gc(u))}))},_.removeAuthTokenListener=function(e){Lt(this.u,function(u){return u==e})},_.delete=function(){this.m=!0;for(var e=0;e<this.R.length;e++)this.R[e].cancel("app-deleted");return this.R=[],this.l&&(e=this.l).b.removeListener(Qa("local"),e.a,this.pa),this.b&&(lc(this.b,this),wu(this.b.b)),Promise.resolve()},_.gc=function(e){return $s(this,function Ah(e,u){return Ai(e,Ya,{identifier:u,continueUri:w()?Y():"http://localhost"}).then(function(U){return U.signinMethods||[]})}(this.a,e))},_.Ac=function(e){return!!mh(e)},_.vb=function(e,u){var U=this;return $s(this,$r().then(function(){var pe=new Pu(u);if(!pe.c)throw new I("argument-error",Ru+" must be true when sending sign in link to email");return Za(pe)}).then(function(pe){return U.a.vb(e,pe)}).then(function(){}))},_.hd=function(e){return this.Qa(e).then(function(u){return u.data.email})},_.mb=function(e,u){return $s(this,this.a.mb(e,u).then(function(){}))},_.Qa=function(e){return $s(this,this.a.Qa(e).then(function(u){return new wo(u)}))},_.ib=function(e){return $s(this,this.a.ib(e).then(function(){}))},_.ub=function(e,u){var U=this;return $s(this,$r().then(function(){return void 0===u||wt(u)?{}:Za(new Pu(u))}).then(function(pe){return U.a.ub(e,pe)}).then(function(){}))},_.Vc=function(e,u){return $s(this,Ho(this,e,u,$(this.Za,this)))},_.Uc=function(e,u){var U=this;return $s(this,$r().then(function(){var pe=u||Y(),$e=Ec(e,pe);if(!(pe=mh(pe)))throw new I("argument-error","Invalid email link!");if(pe.tenantId!==U.S())throw new I("tenant-id-mismatch");return U.Za($e)}))},ih.prototype.render=function(){},ih.prototype.reset=function(){},ih.prototype.getResponse=function(){},ih.prototype.execute=function(){};var rg=null;function Tf(e,u){return(u=If(u))&&e.a[u]||null}function If(e){return(e=void 0===e?1e12:e)?e.toString():null}function sh(e,u){this.g=!1,this.c=u,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=kt(e);var U=this;this.i=function(){U.execute()},this.h?this.execute():xn(this.f,"click",this.i)}function Zh(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function ed(){}function Df(){}Do.prototype.render=function(e,u){return this.a[this.b.toString()]=new sh(e,u),this.b++},Do.prototype.reset=function(e){var u=Tf(this,e);e=If(e),u&&e&&(u.delete(),delete this.a[e])},Do.prototype.getResponse=function(e){return(e=Tf(this,e))?e.getResponse():null},Do.prototype.execute=function(e){(e=Tf(this,e))&&e.execute()},sh.prototype.getResponse=function(){return Zh(this),this.b},sh.prototype.execute=function(){Zh(this);var e=this;this.a||(this.a=setTimeout(function(){e.b=function Ba(){for(var e=50,u=[];0<e;)u.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return u.join("")}();var u=e.c.callback,U=e.c["expired-callback"];if(u)try{u(e.b)}catch(pe){}e.a=setTimeout(function(){if(e.a=null,e.b=null,U)try{U()}catch(pe){}e.h&&e.execute()},6e4)},500))},sh.prototype.delete=function(){Zh(this),this.g=!0,clearTimeout(this.a),this.a=null,pr(this.f,"click",this.i)},Zt(ed,"FACTOR_ID","phone"),Df.prototype.g=function(){return rg||(rg=new Do),$r(rg)},Df.prototype.c=function(){};var td=null;function oh(){this.b=C.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}
1var gm=new tn(Nn,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Pf=new $t(3e4,6e4);oh.prototype.g=function(e){var u=this;return new Yr(function(U,pe){var $e=setTimeout(function(){pe(new I("network-request-failed"))},Pf.get());!C.grecaptcha||e!==u.f&&!u.b?(C[u.a]=function(){if(C.grecaptcha){u.f=e;var zt=C.grecaptcha.render;C.grecaptcha.render=function(Pn,yr){return Pn=zt(Pn,yr),u.b++,Pn},clearTimeout($e),U(C.grecaptcha)}else clearTimeout($e),pe(new I("internal-error"));delete C[u.a]},$r(cl(nr(gm,{onload:u.a,hl:e||""}))).s(function(){clearTimeout($e),pe(new I("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout($e),U(C.grecaptcha))})},oh.prototype.c=function(){this.b--};var Rf=null;function xf(e,u,U,pe,$e,Dt,zt){if(Zt(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=u,this.g=null,zt?(td||(td=new Df),zt=td):(Rf||(Rf=new oh),zt=Rf),this.v=zt,this.a=U||{theme:"light",type:"image"},this.h=[],this.a[og])throw new I("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[ag],!C.document)throw new I("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!kt(u)||!this.i&&kt(u).hasChildNodes())throw new I("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new $o(e,Dt||null,$e||null),this.u=pe||function(){return null};var Pn=this;this.l=[];var yr=this.a[ig];this.a[ig]=function(Si){if(ah(Pn,Si),"function"==typeof yr)yr(Si);else if("string"==typeof yr){var Es=ye(yr,C);"function"==typeof Es&&Es(Si)}};var Rr=this.a[sg];this.a[sg]=function(){if(ah(Pn,null),"function"==typeof Rr)Rr();else if("string"==typeof Rr){var Si=ye(Rr,C);"function"==typeof Si&&Si()}}}var ig="callback",sg="expired-callback",og="sitekey",ag="size";function ah(e,u){for(var U=0;U<e.l.length;U++)try{e.l[U](u)}catch(pe){}}function nd(e,u){return e.h.push(u),u.na(function(){ln(e.h,u)}),u}function ql(e){if(e.A)throw new I("internal-error","RecaptchaVerifier instance has been destroyed.")}function Mf(e,u,U){var pe=!1;try{this.b=U||t.app()}catch(zt){throw new I("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new I("invalid-api-key");U=this.b.options.apiKey;var $e=this,Dt=null;try{Dt=this.b.auth().Ga()}catch(zt){}try{pe=this.b.auth().settings.appVerificationDisabledForTesting}catch(zt){}Dt=t.SDK_VERSION?ot(t.SDK_VERSION,Dt):null,xf.call(this,U,e,u,function(){try{var zt=$e.b.auth().ka()}catch(Pn){zt=null}return zt},Dt,ve(We),pe)}function lg(e,u,U,pe){e:{U=Array.prototype.slice.call(U);for(var $e=0,Dt=!1,zt=0;zt<u.length;zt++)if(u[zt].optional)Dt=!0;else{if(Dt)throw new I("internal-error","Argument validator encountered a required argument after an optional argument.");$e++}if(Dt=u.length,U.length<$e||Dt<U.length)pe="Expected "+($e==Dt?1==$e?"1 argument":$e+" arguments":$e+"-"+Dt+" arguments")+" but got "+U.length+".";else{for($e=0;$e<U.length;$e++)if(Dt=u[$e].optional&&void 0===U[$e],!u[$e].K(U[$e])&&!Dt){if(u=u[$e],0>$e||$e>=rd.length)throw new I("internal-error","Argument validator received an unsupported number of arguments.");U=rd[$e],pe=(pe?"":U+" argument ")+(u.name?'"'+u.name+'" ':"")+"must be "+u.J+".";break e}pe=null}}if(pe)throw new I("argument-error",e+" failed: "+pe)}(_=xf.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=nd(this,$r().then(function(){if(w()&&!Vi())return Fi();throw new I("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.v.g(e.u())}).then(function(u){return e.g=u,Ai(e.o,je,{})}).then(function(u){e.a[og]=u.recaptchaSiteKey}).s(function(u){throw e.f=null,u}))},_.render=function(){ql(this);var e=this;return nd(this,this.Ia().then(function(){if(null===e.c){var u=e.m;if(!e.i){var U=kt(u);u=function Bn(e,u,U){var pe=arguments,$e=document,Dt=String(pe[0]),zt=pe[1];
1if(!_i&&zt&&(zt.name||zt.type)){if(Dt=["<",Dt],zt.name&&Dt.push(' name="',mn(zt.name),'"'),zt.type){Dt.push(' type="',mn(zt.type),'"');var Pn={};Un(Pn,zt),delete Pn.type,zt=Pn}Dt.push(">"),Dt=Dt.join("")}return Dt=Qt($e,Dt),zt&&("string"==typeof zt?Dt.className=zt:Array.isArray(zt)?Dt.className=zt.join(" "):an(Dt,zt)),2<pe.length&&Yn($e,Dt,pe),Dt}("DIV"),U.appendChild(u)}e.c=e.g.render(u,e.a)}return e.c}))},_.verify=function(){ql(this);var e=this;return nd(this,this.render().then(function(u){return new Yr(function(U){var pe=e.g.getResponse(u);if(pe)U(pe);else{var $e=function(Dt){Dt&&(function mc(e,u){Lt(e.l,function(U){return U==u})}(e,$e),U(Dt))};e.l.push($e),e.i&&e.g.execute(e.c)}})}))},_.reset=function(){ql(this),null!==this.c&&this.g.reset(this.c)},_.clear=function(){ql(this),this.A=!0,this.v.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=kt(this.m);for(var u;u=e.firstChild;)e.removeChild(u)}},k(Mf,xf);var rd="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Zr(e,u){return{name:e||"",J:"a valid string",optional:!!u,K:function(U){return"string"==typeof U}}}function Cu(e,u){return{name:e||"",J:"a boolean",optional:!!u,K:function(U){return"boolean"==typeof U}}}function ns(e,u){return{name:e||"",J:"a valid object",optional:!!u,K:M}}function _a(e,u){return{name:e||"",J:"a function",optional:!!u,K:function(U){return"function"==typeof U}}}function la(e,u){return{name:e||"",J:"null",optional:!!u,K:function(U){return null===U}}}function ua(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(u){return!!u&&!(!u.ja||e&&u.providerId!==e)}}}function Ql(e,u){return M(e)&&"string"==typeof e.type&&e.type===u&&"function"==typeof e.Ha}function Iu(e){return M(e)&&"string"==typeof e.uid}function xs(e,u,U,pe){return{name:U||"",J:e.J+" or "+u.J,optional:!!pe,K:function($e){return e.K($e)||u.K($e)}}}function Ts(e,u){for(var U in u){var pe=u[U].name;e[pe]=sd(pe,e[U],u[U].j)}}function id(e,u){for(var U in u){var pe=u[U].name;pe!==U&&Object.defineProperty(e,pe,{get:se(function($e){return this[$e]},U),set:se(function($e,Dt,zt,Pn){lg($e,[zt],[Pn],!0),this[Dt]=Pn},pe,U,u[U].jb),enumerable:!0})}}function Hs(e,u,U,pe){e[u]=sd(u,U,pe)}function sd(e,u,U){function pe(){var zt=Array.prototype.slice.call(arguments);return lg($e,U,zt),u.apply(this,zt)}if(!U)return u;var Dt,$e=function kf(e){return(e=e.split("."))[e.length-1]}(e);for(Dt in u)pe[Dt]=u[Dt];for(Dt in u.prototype)pe.prototype[Dt]=u.prototype[Dt];return pe}Ts(Ks.prototype,{ib:{name:"applyActionCode",j:[Zr("code")]},Qa:{name:"checkActionCode",j:[Zr("code")]},mb:{name:"confirmPasswordReset",j:[Zr("code"),Zr("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[Zr("email"),Zr("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[Zr("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[Zr("emailLink")]},Gc:{name:"onAuthStateChanged",j:[xs(ns(),_a(),"nextOrObserver"),_a("opt_error",!0),_a("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[xs(ns(),_a(),"nextOrObserver"),_a("opt_error",!0),_a("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[Zr("email"),xs(ns("opt_actionCodeSettings",!0),la(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[Zr("email"),ns("actionCodeSettings")]},wb:{name:"setPersistence",j:[Zr("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[ua()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[ua()]},Sc:{name:"signInWithCustomToken",j:[Zr("token")]},Tc:{name:"signInWithEmailAndPassword",j:[Zr("email"),Zr("password")]},Uc:{name:"signInWithEmailLink",j:[Zr("email"),Zr("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[Zr("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]},Wc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Xc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},cd:{name:"updateCurrentUser",j:[xs({name:"user",J:"an instance of Firebase User",optional:!1,K:function(u){return!!(u&&u instanceof aa)}},la(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Zr(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[Zr("url")]},hd:{name:"verifyPasswordResetCode",j:[Zr("code")]}}),id(Ks.prototype,{lc:{name:"languageCode",jb:xs(Zr(),la(),"languageCode")},ti:{name:"tenantId",jb:xs(Zr(),la(),"tenantId")}}),(Ks.Persistence=zc).LOCAL="local",Ks.Persistence.SESSION="session",Ks.Persistence.NONE="none",Ts(aa.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[Cu("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Cu("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[ua()]},pb:{name:"linkWithCredential",j:[ua()]},Cc:{name:"linkWithPhoneNumber",j:[Zr("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]},Dc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Ec:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[ua()]},sb:{name:"reauthenticateWithCredential",j:[ua()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[Zr("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]},Mc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[xs(ns("opt_actionCodeSettings",!0),la(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Zr(null,!0)]},bd:{name:"unlink",j:[Zr("provider")]},Ab:{name:"updateEmail",j:[Zr("email")]},Bb:{name:"updatePassword",j:[Zr("password")]},dd:{name:"updatePhoneNumber",j:[ua("phone")]},Cb:{name:"updateProfile",j:[ns("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[Zr("email"),xs(ns("opt_actionCodeSettings",!0),la(null,!0),"opt_actionCodeSettings",!0)]}}),Ts(Do.prototype,{execute:{name:"execute"},render:{name:"render"}
1,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Ts(ih.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Ts(Yr.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),id(Lp.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:Cu("appVerificationDisabledForTesting")}}),Ts(nf.prototype,{confirm:{name:"confirm",j:[Zr("verificationCode")]}}),Hs(Ml,"fromJSON",function(e){e="string"==typeof e?JSON.parse(e):e;for(var u,U=[Fu,na,vh,tl],pe=0;pe<U.length;pe++)if(u=U[pe](e))return u;return null},[xs(Zr(),ns(),"json")]),Hs(po,"credential",function(e,u){return new ga(e,u)},[Zr("email"),Zr("password")]),Ts(ga.prototype,{w:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(Ko.prototype,{Ca:{name:"addScope",j:[Zr("scope")]},Ka:{name:"setCustomParameters",j:[ns("customOAuthParameters")]}}),Hs(Ko,"credential",Aa,[xs(Zr(),ns(),"token")]),Hs(po,"credentialWithLink",Ec,[Zr("email"),Zr("emailLink")]),Ts(Io.prototype,{Ca:{name:"addScope",j:[Zr("scope")]},Ka:{name:"setCustomParameters",j:[ns("customOAuthParameters")]}}),Hs(Io,"credential",Lu,[xs(Zr(),ns(),"token")]),Ts(Sa.prototype,{Ca:{name:"addScope",j:[Zr("scope")]},Ka:{name:"setCustomParameters",j:[ns("customOAuthParameters")]}}),Hs(Sa,"credential",au,[xs(Zr(),xs(ns(),la()),"idToken"),xs(Zr(),la(),"accessToken",!0)]),Ts(rl.prototype,{Ka:{name:"setCustomParameters",j:[ns("customOAuthParameters")]}}),Hs(rl,"credential",lu,[xs(Zr(),ns(),"token"),Zr("secret",!0)]),Ts(ro.prototype,{Ca:{name:"addScope",j:[Zr("scope")]},credential:{name:"credential",j:[xs(Zr(),xs(ns(),la()),"optionsOrIdToken"),xs(Zr(),la(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[ns("customOAuthParameters")]}}),Ts(no.prototype,{w:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(wa.prototype,{w:{name:"toJSON",j:[Zr(null,!0)]}}),Hs(ra,"credential",il,[Zr("verificationId"),Zr("verificationCode")]),Ts(ra.prototype,{eb:{name:"verifyPhoneNumber",j:[xs(Zr(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(U){return!!U&&(U.session&&U.phoneNumber?Ql(U.session,pa)&&"string"==typeof U.phoneNumber:U.session&&U.multiFactorHint?Ql(U.session,xl)&&Iu(U.multiFactorHint):U.session&&U.multiFactorUid?Ql(U.session,xl)&&"string"==typeof U.multiFactorUid:!!U.phoneNumber&&"string"==typeof U.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!=typeof e.type||"function"!=typeof e.verify)}}]}}),Ts(Ca.prototype,{w:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(I.prototype,{toJSON:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(Ta.prototype,{toJSON:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(Ol.prototype,{toJSON:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(Bh.prototype,{toJSON:{name:"toJSON",j:[Zr(null,!0)]}}),Ts(rf.prototype,{Qc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}}]}}),Ts(jh.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}},Zr("displayName",!0)]},ad:{name:"unenroll",j:[xs({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Iu},Zr(),"multiFactorInfoIdentifier")]}}),Ts(Mf.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Hs(Rs,"parseLink",bd,[Zr("link")]),Hs(ed,"assertion",function(e){return new Up(e)},[ua("phone")]),function(){if(void 0===t||!t.INTERNAL||!t.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Ao,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:Ni,VERIFY_AND_CHANGE_EMAIL:So,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Ks,AuthCredential:Ml,Error:I};Hs(e,"EmailAuthProvider",po,[]),Hs(e,"FacebookAuthProvider",Ko,[]),Hs(e,"GithubAuthProvider",Io,[]),Hs(e,"GoogleAuthProvider",Sa,[]),Hs(e,"TwitterAuthProvider",rl,[]),Hs(e,"OAuthProvider",ro,[Zr("providerId")]),Hs(e,"SAMLAuthProvider",nl,[Zr("providerId")]),Hs(e,"PhoneAuthProvider",ra,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof Ks)}}]),Hs(e,"RecaptchaVerifier",Mf,[xs(Zr(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),ns("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof t.app.App)}}]),Hs(e,"ActionCodeURL",Rs,[]),Hs(e,"PhoneMultiFactorGenerator",ed,[]),t.INTERNAL.registerComponent({name:"auth",instanceFactory:function(u){return new Ks(u=u.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),t.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(u){return{getUid:$((u=u.getProvider("auth").getImmediate()).getUid,u),getToken:$(u.mc,u),addAuthTokenListener:$(u.cc,u),removeAuthTokenListener:$(u.Oc,u)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),t.registerVersion("@firebase/auth","0.15.0"),t.INTERNAL.extendNamespace({User:aa})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},6355:(xe,q,c)=>{"use strict";
1Object.defineProperty(q,"__esModule",{value:!0});var t=c(7754),_=c(1270),x=function(){function P(C,L,E){this.name=C,this.instanceFactory=L,this.type=E,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return P.prototype.setInstantiationMode=function(C){return this.instantiationMode=C,this},P.prototype.setMultipleInstances=function(C){return this.multipleInstances=C,this},P.prototype.setServiceProps=function(C){return this.serviceProps=C,this},P}(),re="[DEFAULT]",te=function(){function P(C,L){this.name=C,this.container=L,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return P.prototype.get=function(C){void 0===C&&(C=re);var L=this.normalizeInstanceIdentifier(C);if(!this.instancesDeferred.has(L)){var E=new _.Deferred;this.instancesDeferred.set(L,E);try{var m=this.getOrInitializeService(L);m&&E.resolve(m)}catch(v){}}return this.instancesDeferred.get(L).promise},P.prototype.getImmediate=function(C){var L=t.__assign({identifier:re,optional:!1},C),m=L.optional,v=this.normalizeInstanceIdentifier(L.identifier);try{var R=this.getOrInitializeService(v);if(!R){if(m)return null;throw Error("Service "+this.name+" is not available")}return R}catch(j){if(m)return null;throw j}},P.prototype.getComponent=function(){return this.component},P.prototype.setComponent=function(C){var L,E;if(C.name!==this.name)throw Error("Mismatching Component "+C.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=C,function S(P){return"EAGER"===P.instantiationMode}(C))try{this.getOrInitializeService(re)}catch(T){}try{for(var m=t.__values(this.instancesDeferred.entries()),v=m.next();!v.done;v=m.next()){var R=t.__read(v.value,2),M=R[1],V=this.normalizeInstanceIdentifier(R[0]);try{var f=this.getOrInitializeService(V);M.resolve(f)}catch(T){}}}catch(T){L={error:T}}finally{try{v&&!v.done&&(E=m.return)&&E.call(m)}finally{if(L)throw L.error}}},P.prototype.clearInstance=function(C){void 0===C&&(C=re),this.instancesDeferred.delete(C),this.instances.delete(C)},P.prototype.delete=function(){return t.__awaiter(this,void 0,void 0,function(){var C;return t.__generator(this,function(L){switch(L.label){case 0:return C=Array.from(this.instances.values()),[4,Promise.all(t.__spread(C.filter(function(E){return"INTERNAL"in E}).map(function(E){return E.INTERNAL.delete()}),C.filter(function(E){return"_delete"in E}).map(function(E){return E._delete()})))];case 1:return L.sent(),[2]}})})},P.prototype.isComponentSet=function(){return null!=this.component},P.prototype.getOrInitializeService=function(C){var L=this.instances.get(C);return!L&&this.component&&(L=this.component.instanceFactory(this.container,function Q(P){return P===re?void 0:P}(C)),this.instances.set(C,L)),L||null},P.prototype.normalizeInstanceIdentifier=function(C){return this.component?this.component.multipleInstances?C:re:C},P}(),W=function(){function P(C){this.name=C,this.providers=new Map}return P.prototype.addComponent=function(C){var L=this.getProvider(C.name);if(L.isComponentSet())throw new Error("Component "+C.name+" has already been registered with "+this.name);L.setComponent(C)},P.prototype.addOrOverwriteComponent=function(C){this.getProvider(C.name).isComponentSet()&&this.providers.delete(C.name),this.addComponent(C)},P.prototype.getProvider=function(C){if(this.providers.has(C))return this.providers.get(C);var L=new te(C,this);return this.providers.set(C,L),L},P.prototype.getProviders=function(){return Array.from(this.providers.values())},P}();q.Component=x,q.ComponentContainer=W,q.Provider=te},1925:(xe,q,c)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=c(9278),_=c(4255),x=c(1270),re=c(4003),te=c(6355);function Q(w){return w&&"object"==typeof w&&"default"in w?w:{default:w}}var w,S=Q(t),W=function(){function w(l){this.domStorage_=l,this.prefix_="firebase:"}return w.prototype.set=function(l,g){null==g?this.domStorage_.removeItem(this.prefixedName_(l)):this.domStorage_.setItem(this.prefixedName_(l),x.stringify(g))},w.prototype.get=function(l){var g=this.domStorage_.getItem(this.prefixedName_(l));return null==g?null:x.jsonEval(g)},w.prototype.remove=function(l){this.domStorage_.removeItem(this.prefixedName_(l))},w.prototype.prefixedName_=function(l){return this.prefix_+l},w.prototype.toString=function(){return this.domStorage_.toString()},w}(),P=function(){function w(){this.cache_={},this.isInMemoryStorage=!0}return w.prototype.set=function(l,g){null==g?delete this.cache_[l]:this.cache_[l]=g},w.prototype.get=function(l){return x.contains(this.cache_,l)?this.cache_[l]:null},w.prototype.remove=function(l){delete this.cache_[l]},w}(),C=function(w){try{if("undefined"!=typeof window&&void 0!==window[w]){var l=window[w];return l.setItem("firebase:sentinel","cache"),l.removeItem("firebase:sentinel"),new W(l)}}catch(g){}return new P},L=C("localStorage"),E=C("sessionStorage"),m=new re.Logger("@firebase/database"),v=(w=1,function(){return w++}
1),R=function(w){var l=x.stringToByteArray(w),g=new x.Sha1;g.update(l);var B=g.digest();return x.base64.encodeByteArray(B)},j=function(){for(var w=[],l=0;l<arguments.length;l++)w[l]=arguments[l];for(var g="",B=0;B<w.length;B++){var fe=w[B];Array.isArray(fe)||fe&&"object"==typeof fe&&"number"==typeof fe.length?g+=j.apply(null,fe):g+="object"==typeof fe?x.stringify(fe):fe,g+=" "}return g},M=null,V=!0,f=function(w,l){x.assert(!l||!0===w||!1===w,"Can't turn on custom loggers persistently."),!0===w?(m.logLevel=re.LogLevel.VERBOSE,M=m.log.bind(m),l&&E.set("logging_enabled",!0)):"function"==typeof w?M=w:(M=null,E.remove("logging_enabled"))},T=function(){for(var w=[],l=0;l<arguments.length;l++)w[l]=arguments[l];if(!0===V&&(V=!1,null===M&&!0===E.get("logging_enabled")&&f(!0)),M){var g=j.apply(null,w);M(g)}},Z=function(w){return function(){for(var l=[],g=0;g<arguments.length;g++)l[g]=arguments[g];T.apply(void 0,_.__spread([w],l))}},G=function(){for(var w=[],l=0;l<arguments.length;l++)w[l]=arguments[l];var g="FIREBASE INTERNAL ERROR: "+j.apply(void 0,_.__spread(w));m.error(g)},$=function(){for(var w=[],l=0;l<arguments.length;l++)w[l]=arguments[l];var g="FIREBASE FATAL ERROR: "+j.apply(void 0,_.__spread(w));throw m.error(g),new Error(g)},se=function(){for(var w=[],l=0;l<arguments.length;l++)w[l]=arguments[l];var g="FIREBASE WARNING: "+j.apply(void 0,_.__spread(w));m.warn(g)},k=function(w){return"number"==typeof w&&(w!=w||w===Number.POSITIVE_INFINITY||w===Number.NEGATIVE_INFINITY)},H="[MIN_NAME]",ee="[MAX_NAME]",z=function(w,l){if(w===l)return 0;if(w===H||l===ee)return-1;if(l===H||w===ee)return 1;var g=N(w),B=N(l);return null!==g?null!==B?g-B==0?w.length-l.length:g-B:-1:null!==B?1:w<l?-1:1},oe=function(w,l){return w===l?0:w<l?-1:1},ve=function(w,l){if(l&&w in l)return l[w];throw new Error("Missing required key ("+w+") in object: "+x.stringify(l))},We=function(w){if("object"!=typeof w||null===w)return x.stringify(w);var l=[];for(var g in w)l.push(g);l.sort();for(var B="{",fe=0;fe<l.length;fe++)0!==fe&&(B+=","),B+=x.stringify(l[fe]),B+=":",B+=We(w[l[fe]]);return B+"}"},Re=function(w,l){var g=w.length;if(g<=l)return[w];for(var B=[],fe=0;fe<g;fe+=l)B.push(w.substring(fe,fe+l>g?g:fe+l));return B};function He(w,l){for(var g in w)w.hasOwnProperty(g)&&l(g,w[g])}var Se,Ce,nn,wn,$n,un,ge=function(w){x.assert(!k(w),"Invalid JSON number");var fe,De,rt,Pt,qt,B=1023;0===w?(De=0,rt=0,fe=1/w==-1/0?1:0):(fe=w<0,(w=Math.abs(w))>=Math.pow(2,1-B)?(De=(Pt=Math.min(Math.floor(Math.log(w)/Math.LN2),B))+B,rt=Math.round(w*Math.pow(2,52-Pt)-Math.pow(2,52))):(De=0,rt=Math.round(w/Math.pow(2,-1074))));var $t=[];for(qt=52;qt;qt-=1)$t.push(rt%2?1:0),rt=Math.floor(rt/2);for(qt=11;qt;qt-=1)$t.push(De%2?1:0),De=Math.floor(De/2);$t.push(fe?1:0),$t.reverse();var Tn=$t.join(""),zn="";for(qt=0;qt<64;qt+=8){var tr=parseInt(Tn.substr(qt,8),2).toString(16);1===tr.length&&(tr="0"+tr),zn+=tr}return zn.toLowerCase()},A=new RegExp("^-?(0*)\\d{1,10}$"),N=function(w){if(A.test(w)){var l=Number(w);if(l>=-2147483648&&l<=2147483647)return l}return null},K=function(w){try{w()}catch(l){setTimeout(function(){throw se("Exception was thrown by user callback.",l.stack||""),l},Math.floor(0))}},ie=function(w,l){var g=setTimeout(w,l);return"object"==typeof g&&g.unref&&g.unref(),g},he=function(){function w(l,g){if(void 0===g){this.pieces_=l.split("/");for(var B=0,fe=0;fe<this.pieces_.length;fe++)this.pieces_[fe].length>0&&(this.pieces_[B]=this.pieces_[fe],B++);this.pieces_.length=B,this.pieceNum_=0}else this.pieces_=l,this.pieceNum_=g}return Object.defineProperty(w,"Empty",{get:function(){return new w("")},enumerable:!1,configurable:!0}),w.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},w.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},w.prototype.popFront=function(){var l=this.pieceNum_;return l<this.pieces_.length&&l++,new w(this.pieces_,l)},w.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},w.prototype.toString=function(){for(var l="",g=this.pieceNum_;g<this.pieces_.length;g++)""!==this.pieces_[g]&&(l+="/"+this.pieces_[g]);return l||"/"},w.prototype.toUrlEncodedString=function(){for(var l="",g=this.pieceNum_;g<this.pieces_.length;g++)""!==this.pieces_[g]&&(l+="/"+encodeURIComponent(String(this.pieces_[g])));return l||"/"},w.prototype.slice=function(l){return void 0===l&&(l=0),this.pieces_.slice(this.pieceNum_+l)},w.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var l=[],g=this.pieceNum_;g<this.pieces_.length-1;g++)l.push(this.pieces_[g]);return new w(l,0)},w.prototype.child=function(l){for(var g=[],B=this.pieceNum_;B<this.pieces_.length;B++)g.push(this.pieces_[B]);if(l instanceof w)for(B=l.pieceNum_;B<l.pieces_.length;B++)g.push(l.pieces_[B]);else{var fe=l.split("/");for(B=0;B<fe.length;B++)fe[B].length>0&&g.push(fe[B])}return new w(g,0)},w.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},w.relativePath=function(l,g){var B=l.getFront(),fe=g.getFront();if(null===B)return g;if(B===fe)return w.relativePath(l.popFront(),g.popFront());
1throw new Error("INTERNAL ERROR: innerPath ("+g+") is not within outerPath ("+l+")")},w.comparePaths=function(l,g){for(var B=l.slice(),fe=g.slice(),De=0;De<B.length&&De<fe.length;De++){var rt=z(B[De],fe[De]);if(0!==rt)return rt}return B.length===fe.length?0:B.length<fe.length?-1:1},w.prototype.equals=function(l){if(this.getLength()!==l.getLength())return!1;for(var g=this.pieceNum_,B=l.pieceNum_;g<=this.pieces_.length;g++,B++)if(this.pieces_[g]!==l.pieces_[B])return!1;return!0},w.prototype.contains=function(l){var g=this.pieceNum_,B=l.pieceNum_;if(this.getLength()>l.getLength())return!1;for(;g<this.pieces_.length;){if(this.pieces_[g]!==l.pieces_[B])return!1;++g,++B}return!0},w}(),Oe=function(){function w(l,g){this.errorPrefix_=g,this.parts_=l.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var B=0;B<this.parts_.length;B++)this.byteLength_+=x.stringLength(this.parts_[B]);this.checkValid_()}return Object.defineProperty(w,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!1,configurable:!0}),Object.defineProperty(w,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!1,configurable:!0}),w.prototype.push=function(l){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(l),this.byteLength_+=x.stringLength(l),this.checkValid_()},w.prototype.pop=function(){var l=this.parts_.pop();this.byteLength_-=x.stringLength(l),this.parts_.length>0&&(this.byteLength_-=1)},w.prototype.checkValid_=function(){if(this.byteLength_>w.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+w.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>w.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+w.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},w.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},w}(),ln="firebaseio.com",Rt="websocket",it="long_polling",_t=function(){function w(l,g,B,fe,De,rt,Pt){void 0===De&&(De=!1),void 0===rt&&(rt=""),void 0===Pt&&(Pt=!1),this.secure=g,this.namespace=B,this.webSocketOnly=fe,this.nodeAdmin=De,this.persistenceKey=rt,this.includeNamespaceInQueryParams=Pt,this.host=l.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=L.get("host:"+l)||this.host}return w.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},w.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},w.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},w.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},w.prototype.updateHost=function(l){l!==this.internalHost&&(this.internalHost=l,this.isCacheableHost()&&L.set("host:"+this.host,this.internalHost))},w.prototype.connectionURL=function(l,g){var B;if(x.assert("string"==typeof l,"typeof type must == string"),x.assert("object"==typeof g,"typeof params must == object"),l===Rt)B=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(l!==it)throw new Error("Unknown connection type: "+l);B=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(g.ns=this.namespace);var fe=[];return He(g,function(De,rt){fe.push(De+"="+rt)}),B+fe.join("&")},w.prototype.toString=function(){var l=this.toURLString();return this.persistenceKey&&(l+="<"+this.persistenceKey+">"),l},w.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},w}(),ht=function(w,l){var g=ct(w),B=g.namespace;return"firebase.com"===g.domain&&$(g.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!B||"undefined"===B)&&"localhost"!==g.domain&&$("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),g.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&se("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new _t(g.host,g.secure,B,l,"ws"===g.scheme||"wss"===g.scheme,"",B!==g.subdomain),path:new he(g.pathString)}},ct=function(w){var l="",g="",B="",fe="",De="",rt=!0,Pt="https",qt=443;if("string"==typeof w){var $t=w.indexOf("//");$t>=0&&(Pt=w.substring(0,$t-1),w=w.substring($t+2));var Tn=w.indexOf("/");-1===Tn&&(Tn=w.length);var zn=w.indexOf("?");-1===zn&&(zn=w.length),l=w.substring(0,Math.min(Tn,zn)),Tn<zn&&(fe=function ut(w){for(var l="",g=w.split("/"),B=0;B<g.length;B++)if(g[B].length>0){var fe=g[B];try{fe=decodeURIComponent(fe.replace(/\+/g," "))}catch(De){}l+="/"+fe}return l}(w.substring(Tn,zn)));var tr=function yt(w){var l,g,B={};"?"===w.charAt(0)&&(w=w.substring(1));try{for(var fe=_.__values(w.split("&")),De=fe.next();!De.done;De=fe.next()){var rt=De.value;if(0!==rt.length){var Pt=rt.split("=");2===Pt.length?B[decodeURIComponent(Pt[0])]=decodeURIComponent(Pt[1]):se("Invalid query segment '"+rt+"' in query '"+w+"'")}}}catch(qt){l={error:qt}}finally{try{De&&!De.done&&(g=fe.return)&&g.call(fe)}finally{if(l)throw l.error}}return B}(w.substring(Math.min(w.length,zn)));($t=l.indexOf(":"))>=0?(rt="https"===Pt||"wss"===Pt,qt=parseInt(l.substring($t+1),10)):$t=l.length;var mr=l.slice(0,$t);if("localhost"===mr.toLowerCase())g="localhost";else if(mr.split(".").length<=2)g=mr;else{var Pr=l.indexOf(".");B=l.substring(0,Pr).toLowerCase(),g=l.substring(Pr+1),De=B}"ns"in tr&&(De=tr.ns)}return{host:l,port:qt,domain:g,subdomain:B,secure:rt,scheme:Pt,pathString:fe,namespace:De}},cn=/[\[\].#$\/\u0000-\u001F\u007F]/,gt=/[\[\].#$\u0000-\u001F\u007F]/,at=10485760,St=function(w){return"string"==typeof w&&0!==w.length&&!cn.test(w)},sn=function(w){return"string"==typeof w&&0!==w.length&&!gt.test(w)},nt=function(w){return null===w||"string"==typeof w||"number"==typeof w&&!k(w)||w&&"object"==typeof w&&x.contains(w,".sv")},mt=function(w,l,g,B,fe){fe&&void 0===g||Nt(x.errorPrefix(w,l,fe),g,B)},Nt=function(w,l,g){var B=g instanceof he?new Oe(g,w):g;if(void 0===l)throw new Error(w+"contains undefined "+B.toErrorString());if("function"==typeof l)throw new Error(w+"contains a function "+B.toErrorString()+" with contents = "+l.toString());if(k(l))throw new Error(w+"contains "+l.toString()+" "+B.toErrorString());if("string"==typeof l&&l.length>at/3&&x.stringLength(l)>at)throw new Error(w+"contains a string greater than "+at+" utf8 bytes "+B.toErrorString()+" ('"+l.substring(0,50)+"...')");if(l&&"object"==typeof l){var fe=!1,De=!1;if(He(l,function(rt,Pt){if(".value"===rt)fe=!0;else if(".priority"!==rt&&".sv"!==rt&&(De=!0,!St(rt)))throw new Error(w+" contains an invali
1d key ("+rt+") "+B.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');B.push(rt),Nt(w,Pt,B),B.pop()}),fe&&De)throw new Error(w+' contains ".value" child '+B.toErrorString()+" in addition to actual children.")}},bt=function(w,l,g,B,fe){if(!fe||void 0!==g){var De=x.errorPrefix(w,l,fe);if(!g||"object"!=typeof g||Array.isArray(g))throw new Error(De+" must be an object containing the children to replace.");var rt=[];He(g,function(Pt,qt){var $t=new he(Pt);if(Nt(De,qt,B.child($t)),".priority"===$t.getBack()&&!nt(qt))throw new Error(De+"contains an invalid value for '"+$t.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");rt.push($t)}),function(w,l){var g,B;for(g=0;g<l.length;g++)for(var fe=(B=l[g]).slice(),De=0;De<fe.length;De++)if((".priority"!==fe[De]||De!==fe.length-1)&&!St(fe[De]))throw new Error(w+"contains an invalid key ("+fe[De]+") in path "+B.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');l.sort(he.comparePaths);var rt=null;for(g=0;g<l.length;g++){if(B=l[g],null!==rt&&rt.contains(B))throw new Error(w+"contains a path "+rt.toString()+" that is ancestor of another path "+B.toString());rt=B}}(De,rt)}},Kt=function(w,l,g,B){if(!B||void 0!==g){if(k(g))throw new Error(x.errorPrefix(w,l,B)+"is "+g.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!nt(g))throw new Error(x.errorPrefix(w,l,B)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},Un=function(w,l,g,B){if(!B||void 0!==g)switch(g){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(x.errorPrefix(w,l,B)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},vt=function(w,l,g,B){if(!(B&&void 0===g||St(g)))throw new Error(x.errorPrefix(w,l,B)+'was an invalid key = "'+g+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},tn=function(w,l,g,B){if(!(B&&void 0===g||sn(g)))throw new Error(x.errorPrefix(w,l,B)+'was an invalid path = "'+g+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Cn=function(w,l,g,B){g&&(g=g.replace(/^\/*\.info(\/|$)/,"/")),tn(w,l,g,B)},Sn=function(w,l){if(".info"===l.getFront())throw new Error(w+" failed = Can't modify data under /.info/")},Nn=function(w,l,g){var B=g.path.toString();if("string"!=typeof g.repoInfo.host||0===g.repoInfo.host.length||!St(g.repoInfo.namespace)&&"localhost"!==g.repoInfo.host.split(":")[0]||0!==B.length&&!function(w){return w&&(w=w.replace(/^\/*\.info(\/|$)/,"/")),sn(w)}(B))throw new Error(x.errorPrefix(w,l,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},rr=function(w,l,g,B){if((!B||void 0!==g)&&"boolean"!=typeof g)throw new Error(x.errorPrefix(w,l,B)+"must be a boolean.")},Fn=function(){function w(l,g){this.repo_=l,this.path_=g}return w.prototype.cancel=function(l){x.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),x.validateCallback("OnDisconnect.cancel",1,l,!0);var g=new x.Deferred;return this.repo_.onDisconnectCancel(this.path_,g.wrapCallback(l)),g.promise},w.prototype.remove=function(l){x.validateArgCount("OnDisconnect.remove",0,1,arguments.length),Sn("OnDisconnect.remove",this.path_),x.validateCallback("OnDisconnect.remove",1,l,!0);var g=new x.Deferred;return this.repo_.onDisconnectSet(this.path_,null,g.wrapCallback(l)),g.promise},w.prototype.set=function(l,g){x.validateArgCount("OnDisconnect.set",1,2,arguments.length),Sn("OnDisconnect.set",this.path_),mt("OnDisconnect.set",1,l,this.path_,!1),x.validateCallback("OnDisconnect.set",2,g,!0);var B=new x.Deferred;return this.repo_.onDisconnectSet(this.path_,l,B.wrapCallback(g)),B.promise},w.prototype.setWithPriority=function(l,g,B){x.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),Sn("OnDisconnect.setWithPriority",this.path_),mt("OnDisconnect.setWithPriority",1,l,this.path_,!1),Kt("OnDisconnect.setWithPriority",2,g,!1),x.validateCallback("OnDisconnect.setWithPriority",3,B,!0);var fe=new x.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,l,g,fe.wrapCallback(B)),fe.promise},w.prototype.update=function(l,g){if(x.validateArgCount("OnDisconnect.update",1,2,arguments.length),Sn("OnDisconnect.update",this.path_),Array.isArray(l)){for(var B={},fe=0;fe<l.length;++fe)B[""+fe]=l[fe];l=B,se("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}bt("OnDisconnect.update",1,l,this.path_,!1),x.validateCallback("OnDisconnect.update",2,g,!0);var De=new x.Deferred;return this.repo_.onDisconnectUpdate(this.path_,l,De.wrapCallback(g)),De.promise},w}(),jn=function(){function w(l,g){this.committed=l,this.snapshot=g}return w.prototype.toJSON=function(){return x.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},w}(),nr=function(){var w="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",l=0,g=[];return function(B){var fe=B===l;l=B;var De,rt=new Array(8);for(De=7;De>=0;De--)rt[De]=w.charAt(B%64),B=Math.floor(B/64);x.assert(0===B,"Cannot push at time == 0");var Pt=rt.join("");if(fe){for(De=11;De>=0&&63===g[De];De--)g[De]=0;g[De]++}else for(De=0;De<12;De++)g[De]=Math.floor(64*Math.random());for(De=0;De<12;De++)Pt+=w.charAt(g[De]);return x.assert(20===Pt.length,"nextPushId: Length should be 20."),Pt}}(),Tt=function(){function w(l,g){this.name=l,this.node=g}return w.Wrap=function(l,g){return new w(l,g)},w}(),hn=function(){function w(){}return w.prototype.getCompare=function(){return this.compare.bind(this)},w.prototype.indexedValueChanged=function(l,g){var B=new Tt(H,l),fe=new Tt(H,g);return 0!==this.compare(B,fe)},w.prototype.minPost=function(){return Tt.MIN},w}(),ae=function(w){function l(){return null!==w&&w.apply(this,arguments)||this}return _.__extends(l,w),Object.defineProperty(l,"__EMPTY_NODE",{get:function(){return Se},set:function(g){Se=g}
1,enumerable:!1,configurable:!0}),l.prototype.compare=function(g,B){return z(g.name,B.name)},l.prototype.isDefinedOn=function(g){throw x.assertionError("KeyIndex.isDefinedOn not expected to be called.")},l.prototype.indexedValueChanged=function(g,B){return!1},l.prototype.minPost=function(){return Tt.MIN},l.prototype.maxPost=function(){return new Tt(ee,Se)},l.prototype.makePost=function(g,B){return x.assert("string"==typeof g,"KeyIndex indexValue must always be a string."),new Tt(g,Se)},l.prototype.toString=function(){return".key"},l}(hn),we=new ae,st=function(w){return"number"==typeof w?"number:"+ge(w):"string:"+w},Ft=function(w){if(w.isLeafNode()){var l=w.val();x.assert("string"==typeof l||"number"==typeof l||"object"==typeof l&&x.contains(l,".sv"),"Priority must be a string or number.")}else x.assert(w===Ce||w.isEmpty(),"priority of unexpected type.");x.assert(w===Ce||w.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},vn=function(){function w(l,g){void 0===g&&(g=w.__childrenNodeConstructor.EMPTY_NODE),this.value_=l,this.priorityNode_=g,this.lazyHash_=null,x.assert(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),Ft(this.priorityNode_)}return Object.defineProperty(w,"__childrenNodeConstructor",{get:function(){return nn},set:function(l){nn=l},enumerable:!1,configurable:!0}),w.prototype.isLeafNode=function(){return!0},w.prototype.getPriority=function(){return this.priorityNode_},w.prototype.updatePriority=function(l){return new w(this.value_,l)},w.prototype.getImmediateChild=function(l){return".priority"===l?this.priorityNode_:w.__childrenNodeConstructor.EMPTY_NODE},w.prototype.getChild=function(l){return l.isEmpty()?this:".priority"===l.getFront()?this.priorityNode_:w.__childrenNodeConstructor.EMPTY_NODE},w.prototype.hasChild=function(){return!1},w.prototype.getPredecessorChildName=function(l,g){return null},w.prototype.updateImmediateChild=function(l,g){return".priority"===l?this.updatePriority(g):g.isEmpty()&&".priority"!==l?this:w.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(l,g).updatePriority(this.priorityNode_)},w.prototype.updateChild=function(l,g){var B=l.getFront();return null===B?g:g.isEmpty()&&".priority"!==B?this:(x.assert(".priority"!==B||1===l.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(B,w.__childrenNodeConstructor.EMPTY_NODE.updateChild(l.popFront(),g)))},w.prototype.isEmpty=function(){return!1},w.prototype.numChildren=function(){return 0},w.prototype.forEachChild=function(l,g){return!1},w.prototype.val=function(l){return l&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},w.prototype.hash=function(){if(null===this.lazyHash_){var l="";this.priorityNode_.isEmpty()||(l+="priority:"+st(this.priorityNode_.val())+":");var g=typeof this.value_;l+=g+":",l+="number"===g?ge(this.value_):this.value_,this.lazyHash_=R(l)}return this.lazyHash_},w.prototype.getValue=function(){return this.value_},w.prototype.compareTo=function(l){return l===w.__childrenNodeConstructor.EMPTY_NODE?1:l instanceof w.__childrenNodeConstructor?-1:(x.assert(l.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(l))},w.prototype.compareToLeafNode_=function(l){var g=typeof l.value_,B=typeof this.value_,fe=w.VALUE_TYPE_ORDER.indexOf(g),De=w.VALUE_TYPE_ORDER.indexOf(B);return x.assert(fe>=0,"Unknown leaf type: "+g),x.assert(De>=0,"Unknown leaf type: "+B),fe===De?"object"===B?0:this.value_<l.value_?-1:this.value_===l.value_?0:1:De-fe},w.prototype.withIndex=function(){return this},w.prototype.isIndexed=function(){return!0},w.prototype.equals=function(l){return l===this||!!l.isLeafNode()&&(this.value_===l.value_&&this.priorityNode_.equals(l.priorityNode_))},w.VALUE_TYPE_ORDER=["object","boolean","number","string"],w}(),Wt=function(w){function l(){return null!==w&&w.apply(this,arguments)||this}return _.__extends(l,w),l.prototype.compare=function(g,B){var fe=g.node.getPriority(),De=B.node.getPriority(),rt=fe.compareTo(De);return 0===rt?z(g.name,B.name):rt},l.prototype.isDefinedOn=function(g){return!g.getPriority().isEmpty()},l.prototype.indexedValueChanged=function(g,B){return!g.getPriority().equals(B.getPriority())},l.prototype.minPost=function(){return Tt.MIN},l.prototype.maxPost=function(){return new Tt(ee,new vn("[PRIORITY-POST]",$n))},l.prototype.makePost=function(g,B){var fe=wn(g);return new Tt(B,new vn("[PRIORITY-POST]",fe))},l.prototype.toString=function(){return".priority"},l}(hn),jt=new Wt,on=function(){function w(l,g,B,fe,De){void 0===De&&(De=null),this.isReverse_=fe,this.resultGenerator_=De,this.nodeStack_=[];for(var rt=1;!l.isEmpty();)if(l=l,rt=g?B(l.key,g):1,fe&&(rt*=-1),rt<0)l=this.isReverse_?l.left:l.right;else{if(0===rt){this.nodeStack_.push(l);break}this.nodeStack_.push(l),l=this.isReverse_?l.right:l.left}}return w.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var g,l=this.nodeStack_.pop();if(g=this.resultGenerator_?this.resultGenerator_(l.key,l.value):{key:l.key,value:l.value},this.isReverse_)for(l=l.left;!l.isEmpty();)this.nodeStack_.push(l),l=l.right;else for(l=l.right;!l.isEmpty();)this.nodeStack_.push(l),l=l.left;return g},w.prototype.hasNext=function(){return this.nodeStack_.length>0},w.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var l=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(l.key,l.value):{key:l.key,value:l.value}},w}(),mn=function(){function w(l,g,B,fe,De){this.key=l,this.value=g,this.color=null!=B?B:w.RED,this.left=null!=fe?fe:ke.EMPTY_NODE,this.right=null!=De?De:ke.EMPTY_NODE}return w.prototype.copy=function(l,g,B,fe,De){return new w(null!=l?l:this.key,null!=g?g:this.value,
1null!=B?B:this.color,null!=fe?fe:this.left,null!=De?De:this.right)},w.prototype.count=function(){return this.left.count()+1+this.right.count()},w.prototype.isEmpty=function(){return!1},w.prototype.inorderTraversal=function(l){return this.left.inorderTraversal(l)||!!l(this.key,this.value)||this.right.inorderTraversal(l)},w.prototype.reverseTraversal=function(l){return this.right.reverseTraversal(l)||l(this.key,this.value)||this.left.reverseTraversal(l)},w.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},w.prototype.minKey=function(){return this.min_().key},w.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},w.prototype.insert=function(l,g,B){var fe=this,De=B(l,fe.key);return(fe=De<0?fe.copy(null,null,null,fe.left.insert(l,g,B),null):0===De?fe.copy(null,g,null,null,null):fe.copy(null,null,null,null,fe.right.insert(l,g,B))).fixUp_()},w.prototype.removeMin_=function(){if(this.left.isEmpty())return ke.EMPTY_NODE;var l=this;return!l.left.isRed_()&&!l.left.left.isRed_()&&(l=l.moveRedLeft_()),(l=l.copy(null,null,null,l.left.removeMin_(),null)).fixUp_()},w.prototype.remove=function(l,g){var B,fe;if(g(l,(B=this).key)<0)!B.left.isEmpty()&&!B.left.isRed_()&&!B.left.left.isRed_()&&(B=B.moveRedLeft_()),B=B.copy(null,null,null,B.left.remove(l,g),null);else{if(B.left.isRed_()&&(B=B.rotateRight_()),!B.right.isEmpty()&&!B.right.isRed_()&&!B.right.left.isRed_()&&(B=B.moveRedRight_()),0===g(l,B.key)){if(B.right.isEmpty())return ke.EMPTY_NODE;fe=B.right.min_(),B=B.copy(fe.key,fe.value,null,null,B.right.removeMin_())}B=B.copy(null,null,null,null,B.right.remove(l,g))}return B.fixUp_()},w.prototype.isRed_=function(){return this.color},w.prototype.fixUp_=function(){var l=this;return l.right.isRed_()&&!l.left.isRed_()&&(l=l.rotateLeft_()),l.left.isRed_()&&l.left.left.isRed_()&&(l=l.rotateRight_()),l.left.isRed_()&&l.right.isRed_()&&(l=l.colorFlip_()),l},w.prototype.moveRedLeft_=function(){var l=this.colorFlip_();return l.right.left.isRed_()&&(l=(l=(l=l.copy(null,null,null,null,l.right.rotateRight_())).rotateLeft_()).colorFlip_()),l},w.prototype.moveRedRight_=function(){var l=this.colorFlip_();return l.left.left.isRed_()&&(l=(l=l.rotateRight_()).colorFlip_()),l},w.prototype.rotateLeft_=function(){var l=this.copy(null,null,w.RED,null,this.right.left);return this.right.copy(null,null,this.color,l,null)},w.prototype.rotateRight_=function(){var l=this.copy(null,null,w.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,l)},w.prototype.colorFlip_=function(){var l=this.left.copy(null,null,!this.left.color,null,null),g=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,l,g)},w.prototype.checkMaxDepth_=function(){var l=this.check_();return Math.pow(2,l)<=this.count()+1},w.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
1if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var l=this.left.check_();if(l!==this.right.check_())throw new Error("Black depths differ");return l+(this.isRed_()?0:1)},w.RED=!0,w.BLACK=!1,w}(),Mt=function(){function w(){}return w.prototype.copy=function(l,g,B,fe,De){return this},w.prototype.insert=function(l,g,B){return new mn(l,g,null)},w.prototype.remove=function(l,g){return this},w.prototype.count=function(){return 0},w.prototype.isEmpty=function(){return!0},w.prototype.inorderTraversal=function(l){return!1},w.prototype.reverseTraversal=function(l){return!1},w.prototype.minKey=function(){return null},w.prototype.maxKey=function(){return null},w.prototype.check_=function(){return 0},w.prototype.isRed_=function(){return!1},w}(),ke=function(){function w(l,g){void 0===g&&(g=w.EMPTY_NODE),this.comparator_=l,this.root_=g}return w.prototype.insert=function(l,g){return new w(this.comparator_,this.root_.insert(l,g,this.comparator_).copy(null,null,mn.BLACK,null,null))},w.prototype.remove=function(l){return new w(this.comparator_,this.root_.remove(l,this.comparator_).copy(null,null,mn.BLACK,null,null))},w.prototype.get=function(l){for(var g,B=this.root_;!B.isEmpty();){if(0===(g=this.comparator_(l,B.key)))return B.value;g<0?B=B.left:g>0&&(B=B.right)}return null},w.prototype.getPredecessorKey=function(l){for(var g,B=this.root_,fe=null;!B.isEmpty();){if(0===(g=this.comparator_(l,B.key))){if(B.left.isEmpty())return fe?fe.key:null;for(B=B.left;!B.right.isEmpty();)B=B.right;return B.key}g<0?B=B.left:g>0&&(fe=B,B=B.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},w.prototype.isEmpty=function(){return this.root_.isEmpty()},w.prototype.count=function(){return this.root_.count()},w.prototype.minKey=function(){return this.root_.minKey()},w.prototype.maxKey=function(){return this.root_.maxKey()},w.prototype.inorderTraversal=function(l){return this.root_.inorderTraversal(l)},w.prototype.reverseTraversal=function(l){return this.root_.reverseTraversal(l)},w.prototype.getIterator=function(l){return new on(this.root_,null,this.comparator_,!1,l)},w.prototype.getIteratorFrom=function(l,g){return new on(this.root_,l,this.comparator_,!1,g)},w.prototype.getReverseIteratorFrom=function(l,g){return new on(this.root_,l,this.comparator_,!0,g)},w.prototype.getReverseIterator=function(l){return new on(this.root_,null,this.comparator_,!0,l)},w.EMPTY_NODE=new Mt,w}(),At=Math.log(2),Ht=function(){function w(l){this.count=parseInt(Math.log(l+1)/At,10),this.current_=this.count-1;var fe=parseInt(Array(this.count+1).join("1"),2);this.bits_=l+1&fe}return w.prototype.nextBitIsOne=function(){var l=!(this.bits_&1<<this.current_);return this.current_--,l},w}(),Yt=function(w,l,g,B){w.sort(l);var fe=function(qt,$t){var zn,tr,Tn=$t-qt;if(0===Tn)return null;if(1===Tn)return zn=w[qt],tr=g?g(zn):zn,new mn(tr,zn.node,mn.BLACK,null,null);var mr=parseInt(Tn/2,10)+qt,Pr=fe(qt,mr),Ie=fe(mr+1,$t);return zn=w[mr],tr=g?g(zn):zn,new mn(tr,zn.node,mn.BLACK,Pr,Ie)},Pt=function(qt){for(var $t=null,Tn=null,zn=w.length,tr=function(_e,qe){var pt=zn-_e,Vt=zn;zn-=_e;var Zt=fe(pt+1,Vt),In=w[pt],ar=g?g(In):In;mr(new mn(ar,In.node,qe,null,Zt))},mr=function(_e){$t?($t.left=_e,$t=_e):(Tn=_e,$t=_e)},Pr=0;Pr<qt.count;++Pr){var Ie=qt.nextBitIsOne(),Te=Math.pow(2,qt.count-(Pr+1));Ie?tr(Te,mn.BLACK):(tr(Te,mn.BLACK),tr(Te,mn.RED))}return Tn}(new Ht(w.length));return new ke(B||l,Pt)},An={},sr=function(){function w(l,g){this.indexes_=l,this.indexSet_=g}return Object.defineProperty(w,"Default",{get:function(){return x.assert(An&&jt,"ChildrenNode.ts has not been loaded"),un=un||new w({".priority":An},{".priority":jt})},enumerable:!1,configurable:!0}),w.prototype.get=function(l){var g=x.safeGet(this.indexes_,l);if(!g)throw new Error("No index defined for "+l);return g instanceof ke?g:null},w.prototype.hasIndex=function(l){return x.contains(this.indexSet_,l.toString())},w.prototype.addIndex=function(l,g){x.assert(l!==we,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var B=[],fe=!1,De=g.getIterator(Tt.Wrap),rt=De.getNext();rt;
1)fe=fe||l.isDefinedOn(rt.node),B.push(rt),rt=De.getNext();var Pt;Pt=fe?Yt(B,l.getCompare()):An;var qt=l.toString(),$t=_.__assign({},this.indexSet_);$t[qt]=l;var Tn=_.__assign({},this.indexes_);return Tn[qt]=Pt,new w(Tn,$t)},w.prototype.addToIndexes=function(l,g){var B=this;return new w(x.map(this.indexes_,function(De,rt){var Pt=x.safeGet(B.indexSet_,rt);if(x.assert(Pt,"Missing index implementation for "+rt),De===An){if(Pt.isDefinedOn(l.node)){for(var qt=[],$t=g.getIterator(Tt.Wrap),Tn=$t.getNext();Tn;)Tn.name!==l.name&&qt.push(Tn),Tn=$t.getNext();return qt.push(l),Yt(qt,Pt.getCompare())}return An}var zn=g.get(l.name),tr=De;return zn&&(tr=tr.remove(new Tt(l.name,zn))),tr.insert(l,l.node)}),this.indexSet_)},w.prototype.removeFromIndexes=function(l,g){return new w(x.map(this.indexes_,function(fe){if(fe===An)return fe;var De=g.get(l.name);return De?fe.remove(new Tt(l.name,De)):fe}),this.indexSet_)},w}();function fr(w,l){return z(w.name,l.name)}function Ar(w,l){return z(w,l)}var Dr,dr=function(){function w(l,g,B){this.children_=l,this.priorityNode_=g,this.indexMap_=B,this.lazyHash_=null,this.priorityNode_&&Ft(this.priorityNode_),this.children_.isEmpty()&&x.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(w,"EMPTY_NODE",{get:function(){return Dr||(Dr=new w(new ke(Ar),null,sr.Default))},enumerable:!1,configurable:!0}),w.prototype.isLeafNode=function(){return!1},w.prototype.getPriority=function(){return this.priorityNode_||Dr},w.prototype.updatePriority=function(l){return this.children_.isEmpty()?this:new w(this.children_,l,this.indexMap_)},w.prototype.getImmediateChild=function(l){if(".priority"===l)return this.getPriority();var g=this.children_.get(l);return null===g?Dr:g},w.prototype.getChild=function(l){var g=l.getFront();return null===g?this:this.getImmediateChild(g).getChild(l.popFront())},w.prototype.hasChild=function(l){return null!==this.children_.get(l)},w.prototype.updateImmediateChild=function(l,g){if(x.assert(g,"We should always be passing snapshot nodes"),".priority"===l)return this.updatePriority(g);var B=new Tt(l,g),fe=void 0,De=void 0;g.isEmpty()?(fe=this.children_.remove(l),De=this.indexMap_.removeFromIndexes(B,this.children_)):(fe=this.children_.insert(l,g),De=this.indexMap_.addToIndexes(B,this.children_));var rt=fe.isEmpty()?Dr:this.priorityNode_;return new w(fe,rt,De)},w.prototype.updateChild=function(l,g){var B=l.getFront();if(null===B)return g;x.assert(".priority"!==l.getFront()||1===l.getLength(),".priority must be the last token in a path");var fe=this.getImmediateChild(B).updateChild(l.popFront(),g);return this.updateImmediateChild(B,fe)},w.prototype.isEmpty=function(){return this.children_.isEmpty()},w.prototype.numChildren=function(){return this.children_.count()},w.prototype.val=function(l){if(this.isEmpty())return null;var g={},B=0,fe=0,De=!0;if(this.forEachChild(jt,function(qt,$t){g[qt]=$t.val(l),B++,De&&w.INTEGER_REGEXP_.test(qt)?fe=Math.max(fe,Number(qt)):De=!1}),!l&&De&&fe<2*B){var rt=[];for(var Pt in g)rt[Pt]=g[Pt];return rt}return l&&!this.getPriority().isEmpty()&&(g[".priority"]=this.getPriority().val()),g},w.prototype.hash=function(){if(null===this.lazyHash_){var l="";this.getPriority().isEmpty()||(l+="priority:"+st(this.getPriority().val())+":"),this.forEachChild(jt,function(g,B){var fe=B.hash();""!==fe&&(l+=":"+g+":"+fe)}),this.lazyHash_=""===l?"":R(l)}return this.lazyHash_},w.prototype.getPredecessorChildName=function(l,g,B){var fe=this.resolveIndex_(B);if(fe){var De=fe.getPredecessorKey(new Tt(l,g));return De?De.name:null}return this.children_.getPredecessorKey(l)},w.prototype.getFirstChildName=function(l){var g=this.resolveIndex_(l);if(g){var B=g.minKey();return B&&B.name}return this.children_.minKey()},w.prototype.getFirstChild=function(l){var g=this.getFirstChildName(l);return g?new Tt(g,this.children_.get(g)):null},w.prototype.getLastChildName=function(l){var g=this.resolveIndex_(l);if(g){var B=g.maxKey();return B&&B.name}return this.children_.maxKey()},w.prototype.getLastChild=function(l){var g=this.getLastChildName(l);return g?new Tt(g,this.children_.get(g)):null},w.prototype.forEachChild=function(l,g){var B=this.resolveIndex_(l);return B?B.inorderTraversal(function(fe){return g(fe.name,fe.node)}):this.children_.inorderTraversal(g)},w.prototype.getIterator=function(l){return this.getIteratorFrom(l.minPost(),l)}
1,w.prototype.getIteratorFrom=function(l,g){var B=this.resolveIndex_(g);if(B)return B.getIteratorFrom(l,function(rt){return rt});for(var fe=this.children_.getIteratorFrom(l.name,Tt.Wrap),De=fe.peek();null!=De&&g.compare(De,l)<0;)fe.getNext(),De=fe.peek();return fe},w.prototype.getReverseIterator=function(l){return this.getReverseIteratorFrom(l.maxPost(),l)},w.prototype.getReverseIteratorFrom=function(l,g){var B=this.resolveIndex_(g);if(B)return B.getReverseIteratorFrom(l,function(rt){return rt});for(var fe=this.children_.getReverseIteratorFrom(l.name,Tt.Wrap),De=fe.peek();null!=De&&g.compare(De,l)>0;)fe.getNext(),De=fe.peek();return fe},w.prototype.compareTo=function(l){return this.isEmpty()?l.isEmpty()?0:-1:l.isLeafNode()||l.isEmpty()?1:l===jr?-1:0},w.prototype.withIndex=function(l){if(l===we||this.indexMap_.hasIndex(l))return this;var g=this.indexMap_.addIndex(l,this.children_);return new w(this.children_,this.priorityNode_,g)},w.prototype.isIndexed=function(l){return l===we||this.indexMap_.hasIndex(l)},w.prototype.equals=function(l){if(l===this)return!0;if(l.isLeafNode())return!1;var g=l;if(this.getPriority().equals(g.getPriority())){if(this.children_.count()===g.children_.count()){for(var B=this.getIterator(jt),fe=g.getIterator(jt),De=B.getNext(),rt=fe.getNext();De&&rt;){if(De.name!==rt.name||!De.node.equals(rt.node))return!1;De=B.getNext(),rt=fe.getNext()}return null===De&&null===rt}return!1}return!1},w.prototype.resolveIndex_=function(l){return l===we?null:this.indexMap_.get(l.toString())},w.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,w}(),Kr=function(w){function l(){return w.call(this,new ke(Ar),dr.EMPTY_NODE,sr.Default)||this}return _.__extends(l,w),l.prototype.compareTo=function(g){return g===this?0:1},l.prototype.equals=function(g){return g===this},l.prototype.getPriority=function(){return this},l.prototype.getImmediateChild=function(g){return dr.EMPTY_NODE},l.prototype.isEmpty=function(){return!1},l}(dr),jr=new Kr;function Lr(w,l){if(void 0===l&&(l=null),null===w)return dr.EMPTY_NODE;if("object"==typeof w&&".priority"in w&&(l=w[".priority"]),x.assert(null===l||"string"==typeof l||"number"==typeof l||"object"==typeof l&&".sv"in l,"Invalid priority type found: "+typeof l),"object"==typeof w&&".value"in w&&null!==w[".value"]&&(w=w[".value"]),"object"!=typeof w||".sv"in w)return new vn(w,Lr(l));if(w instanceof Array){var qt=dr.EMPTY_NODE;return He(w,function($t,Tn){if(x.contains(w,$t)&&"."!==$t.substring(0,1)){var zn=Lr(Tn);(zn.isLeafNode()||!zn.isEmpty())&&(qt=qt.updateImmediateChild($t,zn))}}),qt.updatePriority(Lr(l))}var B=[],fe=!1;if(He(w,function($t,Tn){if("."!==$t.substring(0,1)){var zn=Lr(Tn);zn.isEmpty()||(fe=fe||!zn.getPriority().isEmpty(),B.push(new Tt($t,zn)))}}),0===B.length)return dr.EMPTY_NODE;var rt=Yt(B,fr,function($t){return $t.name},Ar);if(fe){var Pt=Yt(B,jt.getCompare());return new dr(rt,Lr(l),new sr({".priority":Pt},{".priority":jt}))}return new dr(rt,Lr(l),sr.Default)}Object.defineProperties(Tt,{MIN:{value:new Tt(H,dr.EMPTY_NODE)},MAX:{value:new Tt(ee,jr)}}),ae.__EMPTY_NODE=dr.EMPTY_NODE,vn.__childrenNodeConstructor=dr,function Ue(w){Ce=w}(jr),function ir(w){$n=w}(jr),function Gn(w){wn=w}(Lr);var Hn,_i=function(w){function l(){return null!==w&&w.apply(this,arguments)||this}return _.__extends(l,w),l.prototype.compare=function(g,B){var fe=g.node.compareTo(B.node);return 0===fe?z(g.name,B.name):fe},l.prototype.isDefinedOn=function(g){return!0},l.prototype.indexedValueChanged=function(g,B){return!g.equals(B)},l.prototype.minPost=function(){return Tt.MIN},l.prototype.maxPost=function(){return Tt.MAX},l.prototype.makePost=function(g,B){var fe=Lr(g);return new Tt(B,fe)},l.prototype.toString=function(){return".value"},l}(hn),kt=new _i,an=function(w){function l(g){var B=w.call(this)||this;return B.indexPath_=g,x.assert(!g.isEmpty()&&".priority"!==g.getFront(),"Can't create PathIndex with empty path or .priority key"),B}return _.__extends(l,w),l.prototype.extractChild=function(g){return g.getChild(this.indexPath_)},l.prototype.isDefinedOn=function(g){return!g.getChild(this.indexPath_).isEmpty()},l.prototype.compare=function(g,B){var fe=this.extractChild(g.node),De=this.extractChild(B.node),rt=fe.compareTo(De);return 0===rt?z(g.name,B.name):rt},l.prototype.makePost=function(g,B){var fe=Lr(g),De=dr.EMPTY_NODE.updateChild(this.indexPath_,fe);return new Tt(B,De)},l.prototype.maxPost=function(){var g=dr.EMPTY_NODE.updateChild(this.indexPath_,jr);return new Tt(ee,g)},l.prototype.toString=function(){return this.indexPath_.slice().join("/")},l}(hn),Dn=function(){function w(l,g,B){this.node_=l,this.ref_=g,this.index_=B}return w.prototype.val=function(){return x.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()}
1,w.prototype.exportVal=function(){return x.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},w.prototype.toJSON=function(){return x.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},w.prototype.exists=function(){return x.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},w.prototype.child=function(l){x.validateArgCount("DataSnapshot.child",0,1,arguments.length),l=String(l),tn("DataSnapshot.child",1,l,!1);var g=new he(l),B=this.ref_.child(g);return new w(this.node_.getChild(g),B,jt)},w.prototype.hasChild=function(l){x.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),tn("DataSnapshot.hasChild",1,l,!1);var g=new he(l);return!this.node_.getChild(g).isEmpty()},w.prototype.getPriority=function(){return x.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},w.prototype.forEach=function(l){var g=this;if(x.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),x.validateCallback("DataSnapshot.forEach",1,l,!1),this.node_.isLeafNode())return!1;var B=this.node_;
1return!!B.forEachChild(this.index_,function(fe,De){return l(new w(De,g.ref_.child(fe),jt))})},w.prototype.hasChildren=function(){return x.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(w.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!1,configurable:!0}),w.prototype.numChildren=function(){return x.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},w.prototype.getRef=function(){return x.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(w.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),w}(),Bn=function(){function w(l,g,B,fe){this.eventType=l,this.eventRegistration=g,this.snapshot=B,this.prevName=fe}return w.prototype.getPath=function(){var l=this.snapshot.getRef();return"value"===this.eventType?l.path:l.getParent().path},w.prototype.getEventType=function(){return this.eventType},w.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},w.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+x.stringify(this.snapshot.exportVal())},w}(),Yn=function(){function w(l,g,B){this.eventRegistration=l,this.error=g,this.path=B}return w.prototype.getPath=function(){return this.path},w.prototype.getEventType=function(){return"cancel"},w.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},w.prototype.toString=function(){return this.path.toString()+":cancel"},w}(),Qt=function(){function w(l,g,B){this.callback_=l,this.cancelCallback_=g,this.context_=B}return w.prototype.respondsTo=function(l){return"value"===l},w.prototype.createEvent=function(l,g){var B=g.getQueryParams().getIndex();return new Bn("value",this,new Dn(l.snapshotNode,g.getRef(),B))},w.prototype.getEventRunner=function(l){var g=this.context_;if("cancel"===l.getEventType()){x.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var B=this.cancelCallback_;return function(){B.call(g,l.error)}}var fe=this.callback_;return function(){fe.call(g,l.snapshot)}},w.prototype.createCancelEvent=function(l,g){return this.cancelCallback_?new Yn(this,l,g):null},w.prototype.matches=function(l){return l instanceof w&&(!l.callback_||!this.callback_||l.callback_===this.callback_&&l.context_===this.context_)},w.prototype.hasAnyCallback=function(){return null!==this.callback_},w}(),En=function(){function w(l,g,B){this.callbacks_=l,this.cancelCallback_=g,this.context_=B}return w.prototype.respondsTo=function(l){var g="children_added"===l?"child_added":l;return x.contains(this.callbacks_,g="children_removed"===g?"child_removed":g)},w.prototype.createCancelEvent=function(l,g){return this.cancelCallback_?new Yn(this,l,g):null},w.prototype.createEvent=function(l,g){x.assert(null!=l.childName,"Child events should have a childName.");var B=g.getRef().child(l.childName),fe=g.getQueryParams().getIndex();return new Bn(l.type,this,new Dn(l.snapshotNode,B,fe),l.prevName)},w.prototype.getEventRunner=function(l){var g=this.context_;if("cancel"===l.getEventType()){x.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var B=this.cancelCallback_;return function(){B.call(g,l.error)}}var fe=this.callbacks_[l.eventType];return function(){fe.call(g,l.snapshot,l.prevName)}},w.prototype.matches=function(l){var g=this;if(l instanceof w){if(!this.callbacks_||!l.callbacks_)return!0;if(this.context_===l.context_){var B=Object.keys(l.callbacks_),fe=Object.keys(this.callbacks_),De=B.length;if(De===fe.length){if(1===De){var Pt=B[0],qt=fe[0];return!(qt!==Pt||l.callbacks_[Pt]&&this.callbacks_[qt]&&l.callbacks_[Pt]!==this.callbacks_[qt])}return fe.every(function($t){return l.callbacks_[$t]===g.callbacks_[$t]})}}}return!1},w.prototype.hasAnyCallback=function(){return null!==this.callbacks_},w}(),er=function(){function w(l,g,B,fe){this.repo=l,this.path=g,this.queryParams_=B,this.orderByCalled_=fe}return Object.defineProperty(w,"__referenceConstructor",{get:function(){return x.assert(Hn,"Reference.ts has not been loaded"),Hn},set:function(l){Hn=l}
1,enumerable:!1,configurable:!0}),w.validateQueryEndpoints_=function(l){var g=null,B=null;if(l.hasStart()&&(g=l.getIndexStartValue()),l.hasEnd()&&(B=l.getIndexEndValue()),l.getIndex()===we){var fe="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",De="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(l.hasStart()){if(l.getIndexStartName()!==H)throw new Error(fe);if("string"!=typeof g)throw new Error(De)}if(l.hasEnd()){if(l.getIndexEndName()!==ee)throw new Error(fe);if("string"!=typeof B)throw new Error(De)}}else if(l.getIndex()===jt){if(null!=g&&!nt(g)||null!=B&&!nt(B))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(x.assert(l.getIndex()instanceof an||l.getIndex()===kt,"unknown index type."),null!=g&&"object"==typeof g||null!=B&&"object"==typeof B)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},w.validateLimit_=function(l){if(l.hasStart()&&l.hasEnd()&&l.hasLimit()&&!l.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},w.prototype.validateNoPreviousOrderByCall_=function(l){if(!0===this.orderByCalled_)throw new Error(l+": You can't combine multiple orderBy calls.")},w.prototype.getQueryParams=function(){return this.queryParams_},w.prototype.getRef=function(){return x.validateArgCount("Query.ref",0,0,arguments.length),new w.__referenceConstructor(this.repo,this.path)},w.prototype.on=function(l,g,B,fe){x.validateArgCount("Query.on",2,4,arguments.length),Un("Query.on",1,l,!1),x.validateCallback("Query.on",2,g,!1);var De=w.getCancelAndContextArgs_("Query.on",B,fe);if("value"===l)this.onValueEvent(g,De.cancel,De.context);else{var rt={};rt[l]=g,this.onChildEvent(rt,De.cancel,De.context)}return g},w.prototype.onValueEvent=function(l,g,B){var fe=new Qt(l,g||null,B||null);this.repo.addEventCallbackForQuery(this,fe)},w.prototype.onChildEvent=function(l,g,B){var fe=new En(l,g,B);this.repo.addEventCallbackForQuery(this,fe)},w.prototype.off=function(l,g,B){x.validateArgCount("Query.off",0,3,arguments.length),Un("Query.off",1,l,!0),x.validateCallback("Query.off",2,g,!0),x.validateContextObject("Query.off",3,B,!0);var fe=null,De=null;if("value"===l){var rt=g||null;fe=new Qt(rt,null,B||null)}else l&&(g&&((De={})[l]=g),fe=new En(De,null,B||null));this.repo.removeEventCallbackForQuery(this,fe)},w.prototype.once=function(l,g,B,fe){var De=this;x.validateArgCount("Query.once",1,4,arguments.length),Un("Query.once",1,l,!1),x.validateCallback("Query.once",2,g,!0);var rt=w.getCancelAndContextArgs_("Query.once",B,fe),Pt=!0,qt=new x.Deferred;qt.promise.catch(function(){});var $t=function(Tn){Pt&&(Pt=!1,De.off(l,$t),g&&g.bind(rt.context)(Tn),qt.resolve(Tn))};return this.on(l,$t,function(Tn){De.off(l,$t),rt.cancel&&rt.cancel.bind(rt.context)(Tn),qt.reject(Tn)}),qt.promise},w.prototype.limitToFirst=function(l){if(x.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof l||Math.floor(l)!==l||l<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new w(this.repo,this.path,this.queryParams_.limitToFirst(l),this.orderByCalled_)},w.prototype.limitToLast=function(l){if(x.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof l||Math.floor(l)!==l||l<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new w(this.repo,this.path,this.queryParams_.limitToLast(l),this.orderByCalled_)},w.prototype.orderByChild=function(l){if(x.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===l)throw new Error('Query.orderByChild: "$key" is invali
1d.  Use Query.orderByKey() instead.');if("$priority"===l)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===l)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');tn("Query.orderByChild",1,l,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var g=new he(l);if(g.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var B=new an(g),fe=this.queryParams_.orderBy(B);return w.validateQueryEndpoints_(fe),new w(this.repo,this.path,fe,!0)},w.prototype.orderByKey=function(){x.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var l=this.queryParams_.orderBy(we);return w.validateQueryEndpoints_(l),new w(this.repo,this.path,l,!0)},w.prototype.orderByPriority=function(){x.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var l=this.queryParams_.orderBy(jt);return w.validateQueryEndpoints_(l),new w(this.repo,this.path,l,!0)},w.prototype.orderByValue=function(){x.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var l=this.queryParams_.orderBy(kt);return w.validateQueryEndpoints_(l),new w(this.repo,this.path,l,!0)},w.prototype.startAt=function(l,g){void 0===l&&(l=null),x.validateArgCount("Query.startAt",0,2,arguments.length),mt("Query.startAt",1,l,this.path,!0),vt("Query.startAt",2,g,!0);var B=this.queryParams_.startAt(l,g);if(w.validateLimit_(B),w.validateQueryEndpoints_(B),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===l&&(l=null,g=null),new w(this.repo,this.path,B,this.orderByCalled_)},w.prototype.endAt=function(l,g){void 0===l&&(l=null),x.validateArgCount("Query.endAt",0,2,arguments.length),mt("Query.endAt",1,l,this.path,!0),vt("Query.endAt",2,g,!0);var B=this.queryParams_.endAt(l,g);if(w.validateLimit_(B),w.validateQueryEndpoints_(B),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new w(this.repo,this.path,B,this.orderByCalled_)},w.prototype.equalTo=function(l,g){if(x.validateArgCount("Query.equalTo",1,2,arguments.length),mt("Query.equalTo",1,l,this.path,!1),vt("Query.equalTo",2,g,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(l,g).endAt(l,g)},w.prototype.toString=function(){return x.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},w.prototype.toJSON=function(){return x.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},w.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},w.prototype.queryIdentifier=function(){var l=this.queryObject(),g=We(l);return"{}"===g?"default":g},w.prototype.isEqual=function(l){if(x.validateArgCount("Query.isEqual",1,1,arguments.length),!(l instanceof w)){var g="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(g)}var B=this.repo===l.repo,fe=this.path.equals(l.path),De=this.queryIdentifier()===l.queryIdentifier();return B&&fe&&De},w.getCancelAndContextArgs_=function(l,g,B){var fe={cancel:null,context:null};if(g&&B)fe.cancel=g,x.validateCallback(l,3,fe.cancel,!0),fe.context=B,x.validateContextObject(l,4,fe.context,!0);else if(g)if("object"==typeof g&&null!==g)fe.context=g;else{if("function"!=typeof g)throw new Error(x.errorPrefix(l,3,!0)+" must either be a cancel callback or a context object.");fe.cancel=g}return fe},Object.defineProperty(w.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),w}(),or=function(){function w(l){this.node_=l}return w.prototype.getImmediateChild=function(l){return new w(this.node_.getImmediateChild(l))},w.prototype.node=function(){return this.node_},w}(),wr=function(){function w(l,g){this.syncTree_=l,this.path_=g}return w.prototype.getImmediateChild=function(l){var g=this.path_.child(l);return new w(this.syncTree_,g)},w.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},w}(),kr=function(w,l,g){return w&&"object"==typeof w?(x.assert(".sv"in w,"Unexpected leaf node or priority contents"),"string"==typeof w[".sv"]?ei(w[".sv"],l,g):"object"==typeof w[".sv"]?oi(w[".sv"],l):void x.assert(!1,"Unexpected server value: "+JSON.stringify(w,null,2))):w},ei=function(w,l,g){if("timestamp"===w)return g.timestamp;x.assert(!1,"Unexpected server value: "+w)},oi=function(w,l,g){w.hasOwnProperty("increment")||x.assert(!1,"Unexpected server value: "+JSON.stringify(w,null,2));var B=w.increment;"number"!=typeof B&&x.assert(!1,"Unexpected increment value: "+B);var fe=l.node();if(x.assert(null!=fe,"Expected ChildrenNode.EMPTY_NODE for nulls"),!fe.isLeafNode())return B;var rt=fe.getValue();return"number"!=typeof rt?B:rt+B}
1,ui=function(w,l,g,B){return Ci(l,new wr(g,w),B)},Yr=function(w,l,g){return Ci(w,new or(l),g)};function Ci(w,l,g){var De,B=w.getPriority().val(),fe=kr(B,l.getImmediateChild(".priority"),g);if(w.isLeafNode()){var rt=w,Pt=kr(rt.getValue(),l,g);return Pt!==rt.getValue()||fe!==rt.getPriority().val()?new vn(Pt,Lr(fe)):w}var qt=w;return De=qt,fe!==qt.getPriority().val()&&(De=De.updatePriority(new vn(fe))),qt.forEachChild(jt,function($t,Tn){var zn=Ci(Tn,l.getImmediateChild($t),g);zn!==Tn&&(De=De.updateImmediateChild($t,zn))}),De}var Oi,Ti,Ji=function(){function w(){this.value=null,this.children=new Map}return w.prototype.find=function(l){if(null!=this.value)return this.value.getChild(l);if(!l.isEmpty()&&this.children.size>0){var g=l.getFront();return l=l.popFront(),this.children.has(g)?this.children.get(g).find(l):null}return null},w.prototype.remember=function(l,g){if(l.isEmpty())this.value=g,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(l,g);else{var B=l.getFront();this.children.has(B)||this.children.set(B,new w);var fe=this.children.get(B);l=l.popFront(),fe.remember(l,g)}},w.prototype.forget=function(l){if(l.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var g=this.value;this.value=null;var B=this;return g.forEachChild(jt,function(rt,Pt){B.remember(new he(rt),Pt)}),this.forget(l)}if(this.children.size>0){var fe=l.getFront();return l=l.popFront(),this.children.has(fe)&&this.children.get(fe).forget(l)&&this.children.delete(fe),0===this.children.size}return!0},w.prototype.forEachTree=function(l,g){null!==this.value?g(l,this.value):this.forEachChild(function(B,fe){var De=new he(l.toString()+"/"+B);fe.forEachTree(De,g)})},w.prototype.forEachChild=function(l){this.children.forEach(function(g,B){l(B,g)})},w}(),ci=(()=>(function(w){w[w.OVERWRITE=0]="OVERWRITE",w[w.MERGE=1]="MERGE",w[w.ACK_USER_WRITE=2]="ACK_USER_WRITE",w[w.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(ci||(ci={})),ci))(),Gi=function(){function w(l,g,B,fe){this.fromUser=l,this.fromServer=g,this.queryId=B,this.tagged=fe,x.assert(!fe||g,"Tagged queries must be from server.")}return w.User=new w(!0,!1,null,!1),w.Server=new w(!1,!0,null,!1),w.forServerTaggedQuery=function(l){return new w(!1,!0,l,!0)},w}(),rs=function(){function w(l,g,B){this.path=l,this.affectedTree=g,this.revert=B,this.type=ci.ACK_USER_WRITE,this.source=Gi.User}return w.prototype.operationForChild=function(l){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return x.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var g=this.affectedTree.subtree(new he(l));return new w(he.Empty,g,this.revert)}return x.assert(this.path.getFront()===l,"operationForChild called for unrelated child."),new w(this.path.popFront(),this.affectedTree,this.revert)},w}(),si=function(){function w(l,g){void 0===g&&(Oi||(Oi=new ke(oe)),g=Oi),this.value=l,this.children=g}return w.fromObject=function(l){var g=w.Empty;return He(l,function(B,fe){g=g.set(new he(B),fe)}),g},w.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},w.prototype.findRootMostMatchingPathAndValue=function(l,g){if(null!=this.value&&g(this.value))return{path:he.Empty,value:this.value};if(l.isEmpty())return null;var B=l.getFront(),fe=this.children.get(B);if(null!==fe){var De=fe.findRootMostMatchingPathAndValue(l.popFront(),g);return null!=De?{path:new he(B).child(De.path),value:De.value}:null}return null},w.prototype.findRootMostValueAndPath=function(l){return this.findRootMostMatchingPathAndValue(l,function(){return!0})},w.prototype.subtree=function(l){if(l.isEmpty())return this;var g=l.getFront(),B=this.children.get(g);return null!==B?B.subtree(l.popFront()):w.Empty},w.prototype.set=function(l,g){if(l.isEmpty())return new w(g,this.children);var B=l.getFront(),De=(this.children.get(B)||w.Empty).set(l.popFront(),g),rt=this.children.insert(B,De);return new w(this.value,rt)},w.prototype.remove=function(l){if(l.isEmpty())return this.children.isEmpty()?w.Empty:new w(null,this.children);var g=l.getFront(),B=this.children.get(g);if(B){var fe=B.remove(l.popFront()),De=void 0;return De=fe.isEmpty()?this.children.remove(g):this.children.insert(g,fe),null===this.value&&De.isEmpty()?w.Empty:new w(this.value,De)}return this},w.prototype.get=function(l){if(l.isEmpty())return this.value;var g=l.getFront(),B=this.children.get(g);return B?B.get(l.popFront()):null},w.prototype.setTree=function(l,g){if(l.isEmpty())return g;var rt,B=l.getFront(),De=(this.children.get(B)||w.Empty).setTree(l.popFront(),g);
1return rt=De.isEmpty()?this.children.remove(B):this.children.insert(B,De),new w(this.value,rt)},w.prototype.fold=function(l){return this.fold_(he.Empty,l)},w.prototype.fold_=function(l,g){var B={};return this.children.inorderTraversal(function(fe,De){B[fe]=De.fold_(l.child(fe),g)}),g(l,this.value,B)},w.prototype.findOnPath=function(l,g){return this.findOnPath_(l,he.Empty,g)},w.prototype.findOnPath_=function(l,g,B){var fe=!!this.value&&B(g,this.value);if(fe)return fe;if(l.isEmpty())return null;var De=l.getFront(),rt=this.children.get(De);return rt?rt.findOnPath_(l.popFront(),g.child(De),B):null},w.prototype.foreachOnPath=function(l,g){return this.foreachOnPath_(l,he.Empty,g)},w.prototype.foreachOnPath_=function(l,g,B){if(l.isEmpty())return this;this.value&&B(g,this.value);var fe=l.getFront(),De=this.children.get(fe);return De?De.foreachOnPath_(l.popFront(),g.child(fe),B):w.Empty},w.prototype.foreach=function(l){this.foreach_(he.Empty,l)},w.prototype.foreach_=function(l,g){this.children.inorderTraversal(function(B,fe){fe.foreach_(l.child(B),g)}),this.value&&g(l,this.value)},w.prototype.foreachChild=function(l){this.children.inorderTraversal(function(g,B){B.value&&l(g,B.value)})},w.Empty=new w(null),w}(),cs=function(){function w(l,g){this.source=l,this.path=g,this.type=ci.LISTEN_COMPLETE}return w.prototype.operationForChild=function(l){return this.path.isEmpty()?new w(this.source,he.Empty):new w(this.source,this.path.popFront())},w}(),Yi=function(){function w(l,g,B){this.source=l,this.path=g,this.snap=B,this.type=ci.OVERWRITE}return w.prototype.operationForChild=function(l){return this.path.isEmpty()?new w(this.source,he.Empty,this.snap.getImmediateChild(l)):new w(this.source,this.path.popFront(),this.snap)},w}(),is=function(){function w(l,g,B){this.source=l,this.path=g,this.children=B,this.type=ci.MERGE}return w.prototype.operationForChild=function(l){if(this.path.isEmpty()){var g=this.children.subtree(new he(l));return g.isEmpty()?null:g.value?new Yi(this.source,he.Empty,g.value):new w(this.source,he.Empty,g)}return x.assert(this.path.getFront()===l,"Can't get a merge for a child not on the path of the operation"),new w(this.source,this.path.popFront(),this.children)},w.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},w}(),$i=function(){function w(l,g,B){this.node_=l,this.fullyInitialized_=g,this.filtered_=B}return w.prototype.isFullyInitialized=function(){return this.fullyInitialized_},w.prototype.isFiltered=function(){return this.filtered_},w.prototype.isCompleteForPath=function(l){if(l.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var g=l.getFront();return this.isCompleteForChild(g)},w.prototype.isCompleteForChild=function(l){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(l)},w.prototype.getNode=function(){return this.node_},w}(),Hi=function(){function w(l,g){this.eventCache_=l,this.serverCache_=g}return w.prototype.updateEventSnap=function(l,g,B){return new w(new $i(l,g,B),this.serverCache_)},w.prototype.updateServerSnap=function(l,g,B){return new w(this.eventCache_,new $i(l,g,B))},w.prototype.getEventCache=function(){return this.eventCache_},w.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},w.prototype.getServerCache=function(){return this.serverCache_},w.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},w.Empty=new w(new $i(dr.EMPTY_NODE,!1,!1),new $i(dr.EMPTY_NODE,!1,!1)),w}(),ai=function(){function w(l,g,B,fe,De){this.type=l,this.snapshotNode=g,this.childName=B,this.oldSnap=fe,this.prevName=De}return w.valueChange=function(l){return new w(w.VALUE,l)},w.childAddedChange=function(l,g){return new w(w.CHILD_ADDED,g,l)},w.childRemovedChange=function(l,g){return new w(w.CHILD_REMOVED,g,l)},w.childChangedChange=function(l,g,B){return new w(w.CHILD_CHANGED,g,l,B)},w.childMovedChange=function(l,g){return new w(w.CHILD_MOVED,g,l)},w.CHILD_ADDED="child_added",w.CHILD_REMOVED="child_removed",w.CHILD_CHANGED="child_changed",w.CHILD_MOVED="child_moved",w.VALUE="value",w}(),Zi=function(){function w(l){this.index_=l}return w.prototype.updateChild=function(l,g,B,fe,De,rt){x.assert(l.isIndexed(this.index_),"A node must be indexed if only a child is updated");var Pt=l.getImmediateChild(g);return Pt.getChild(fe).equals(B.getChild(fe))&&Pt.isEmpty()===B.isEmpty()||(null!=rt&&(B.isEmpty()?l.hasChild(g)?rt.trackChildChange(ai.childRemovedChange(g,Pt)):x.assert(l.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):Pt.isEmpty()?rt.trackChildChange(ai.childAddedChange(g,B)):rt.trackChildChange(ai.childCh
1angedChange(g,B,Pt))),l.isLeafNode()&&B.isEmpty())?l:l.updateImmediateChild(g,B).withIndex(this.index_)},w.prototype.updateFullNode=function(l,g,B){return null!=B&&(l.isLeafNode()||l.forEachChild(jt,function(fe,De){g.hasChild(fe)||B.trackChildChange(ai.childRemovedChange(fe,De))}),g.isLeafNode()||g.forEachChild(jt,function(fe,De){if(l.hasChild(fe)){var rt=l.getImmediateChild(fe);rt.equals(De)||B.trackChildChange(ai.childChangedChange(fe,De,rt))}else B.trackChildChange(ai.childAddedChange(fe,De))})),g.withIndex(this.index_)},w.prototype.updatePriority=function(l,g){return l.isEmpty()?dr.EMPTY_NODE:l.updatePriority(g)},w.prototype.filtersNodes=function(){return!1},w.prototype.getIndexedFilter=function(){return this},w.prototype.getIndex=function(){return this.index_},w}(),zi=function(){function w(){this.changeMap=new Map}return w.prototype.trackChildChange=function(l){var g=l.type,B=l.childName;x.assert(g===ai.CHILD_ADDED||g===ai.CHILD_CHANGED||g===ai.CHILD_REMOVED,"Only child changes supported for tracking"),x.assert(".priority"!==B,"Only non-priority child changes can be tracked.");var fe=this.changeMap.get(B);if(fe){var De=fe.type;if(g===ai.CHILD_ADDED&&De===ai.CHILD_REMOVED)this.changeMap.set(B,ai.childChangedChange(B,l.snapshotNode,fe.snapshotNode));else if(g===ai.CHILD_REMOVED&&De===ai.CHILD_ADDED)this.changeMap.delete(B);else if(g===ai.CHILD_REMOVED&&De===ai.CHILD_CHANGED)this.changeMap.set(B,ai.childRemovedChange(B,fe.oldSnap));else if(g===ai.CHILD_CHANGED&&De===ai.CHILD_ADDED)this.changeMap.set(B,ai.childAddedChange(B,l.snapshotNode));else{if(g!==ai.CHILD_CHANGED||De!==ai.CHILD_CHANGED)throw x.assertionError("Illegal combination of changes: "+l+" occurred after "+fe);this.changeMap.set(B,ai.childChangedChange(B,l.snapshotNode,fe.oldSnap))}}else this.changeMap.set(B,l)},w.prototype.getChanges=function(){return Array.from(this.changeMap.values())},w}(),xi=function(){function w(){}return w.prototype.getCompleteChild=function(l){return null},w.prototype.getChildAfterChild=function(l,g,B){return null},w}(),ss=new xi,hs=function(){function w(l,g,B){void 0===B&&(B=null),this.writes_=l,this.viewCache_=g,this.optCompleteServerCache_=B}return w.prototype.getCompleteChild=function(l){var g=this.viewCache_.getEventCache();if(g.isCompleteForChild(l))return g.getNode().getImmediateChild(l);var B=null!=this.optCompleteServerCache_?new $i(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(l,B)},w.prototype.getChildAfterChild=function(l,g,B){var fe=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),De=this.writes_.calcIndexedSlice(fe,g,1,B,l);return 0===De.length?null:De[0]},w}(),fs=function w(l,g){this.viewCache=l,this.changes=g},bs=function(){function w(l){this.filter_=l}return w.prototype.assertIndexed=function(l){x.assert(l.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),x.assert(l.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},w.prototype.applyOperation=function(l,g,B,fe){var rt,Pt,De=new zi;if(g.type===ci.OVERWRITE){var qt=g;qt.source.fromUser?rt=this.applyUserOverwrite_(l,qt.path,qt.snap,B,fe,De):(x.assert(qt.source.fromServer,"Unknown source."),Pt=qt.source.tagged||l.getServerCache().isFiltered()&&!qt.path.isEmpty(),rt=this.applyServerOverwrite_(l,qt.path,qt.snap,B,fe,Pt,De))}else if(g.type===ci.MERGE){var $t=g;$t.source.fromUser?rt=this.applyUserMerge_(l,$t.path,$t.children,B,fe,De):(x.assert($t.source.fromServer,"Unknown source."),Pt=$t.source.tagged||l.getServerCache().isFiltered(),rt=this.applyServerMerge_(l,$t.path,$t.children,B,fe,Pt,De))}else if(g.type===ci.ACK_USER_WRITE){var Tn=g;rt=Tn.revert?this.revertUserWrite_(l,Tn.path,B,fe,De):this.ackUserWrite_(l,Tn.path,Tn.affectedTree,B,fe,De)}else{if(g.type!==ci.LISTEN_COMPLETE)throw x.assertionError("Unknown operation type: "+g.type);rt=this.listenComplete_(l,g.path,B,De)}var zn=De.getChanges();return w.maybeAddValueEvent_(l,rt,zn),new fs(rt,zn)},w.maybeAddValueEvent_=function(l,g,B){var fe=g.getEventCache();if(fe.isFullyInitialized()){var De=fe.getNode().isLeafNode()||fe.getNode().isEmpty(),rt=l.getCompleteEventSnap();(B.length>0||!l.getEventCache().isFullyInitialized()||De&&!fe.getNode().equals(rt)||!fe.getNode().getPriority().equals(rt.getPriority()))&&B.push(ai.valueChange(g.getCompleteEventSnap()))}},w.prototype.generateEventCacheAfterServerEvent_=function(l,g,B,fe,De){var rt=l.getEventCache();if(null!=B.shadowingWrite(g))return l;var Pt=void 0,qt=void 0;if(g.isEmpty())if(x.assert(l.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),l.getServerCache().isFiltered()){var $t=l.getCompleteServerSnap(),zn=B.calcCompleteEventChildren($t instanceof dr?$t:dr.EMPTY_NODE);Pt=this.filter_.updateFullNode(l.getEventCache().getNode(),zn,De)}else{var tr=B.calcCompleteEventCache(l.getCompleteServerSnap());Pt=this.filter_.updateFullNode(l.getEventCache().getNode(),tr,De)}else{var mr=g.getFront();if(".priority"===mr){x.assert(1===g.getLength(),"Can't have a priority with additional path components");var Pr=rt.getNode();qt=l.getServerCache().getNode();var Ie=B.calcEventCacheAfterServerOverwrite(g,Pr,qt);Pt=null!=Ie?this.filter_.updatePriority(Pr,Ie):rt.getNode()}else{var Te=g.popFront(),_e=void 0;if(rt.isCompleteForChild(mr)){qt=l.getServerCache().getNode();var qe=B.calcEventCacheAfterServerOverwrite(g,rt.getNode(),qt);_e=null!=qe?rt.getNode().getImmediateChild(mr).updateChild(Te,qe):rt.getNode().getImmediateChild(mr)}else _e=B.calcCompleteChild(mr,l.getServerCache());Pt=null!=_e?this.filter_.updateChild(rt.getNode(),mr,_e,Te,fe,De):rt.getNode()}}return l.updateEventSnap(Pt,rt.isFullyInitialized()||g.isEmpty(),this.filter_.filtersNodes())},w.prototype.applyServerOverwrite_=function(l,g,B,fe,De,rt,Pt){var $t,qt=l.getServerCache(),Tn=rt?this.filter_:this.filter_.getIndexedFilter();if(g.isEmpty())$t=Tn.updateFullNode(qt.getNode(),B,null);else if(Tn.filtersNodes()&&!qt.isFiltered()){var zn=qt.getNode().updateChild(g,B);$t=Tn.updateFullNode(qt.getNode(),zn,null)}else{var tr=g.getFront();if(!qt.isCompleteForPath(g)&&g.getLength()>1)return l;var mr=g.popFront(),Ie=qt.getNode().getImmediateChild(tr).updateChild(mr,B);$t=".priority"===tr?Tn.updatePriority(qt.getNode(),Ie):Tn.updateChild(qt.getNode(),tr,Ie,mr,ss,null)}var Te=l.updateServerSnap($t,qt.isFullyInitialized()||g.isEmpty(),Tn.filtersNodes()),_e=new hs(fe,Te,De);return this.generateEventCacheAfterServerEvent_(Te,g,fe,_e,Pt)},w.prototype.applyUserOverwrite_=function(l,g,B,fe,De,rt){var qt,$t,Pt=l.getEventCache(),Tn=new hs(fe,l,De);if(g.isEmpty())$t=this.filter_.updateFullNode(l.getEventCache().getNode(),B,rt),qt=l.updateEventSnap($t,!0,this.filter_.filtersNodes());else{var zn=g.getFront();if(".priority"===zn)$t=this.filter_.updatePriority(l.getEventCache().getNode(),B),qt=l.updateEventSnap($t,Pt.isFullyInitialized(),Pt.isFiltered());else{var tr=g.popFront(),mr=Pt.getNode().getImmediateChild(zn),Pr=void 0;if(tr.isEmpty())Pr=B;else{var Ie=Tn.getCompleteChild(zn);Pr=null!=Ie?".priority"===tr.getBack()&&Ie.getChild(tr.parent()).isEmpty()?Ie:Ie.updateChild(tr,B):dr.EMPTY_NODE}if(mr.equals(Pr))qt=l;else{var Te=this.filter_.updateChild(Pt.getNode(),zn,Pr,tr,Tn,rt);qt=l.updateEventSnap(Te,Pt.isFullyInitialized(),this.filter_.filtersNodes())}}}return qt},w.cacheHasChild_=function(l,g){return l.getEventCache().isCompleteForChild(g)},w.prototype.applyUserMerge_=function(l,g,B,fe,De,rt){var Pt=this,qt=l;return B.foreach(function($t,Tn){var zn=g.child($t);
1w.cacheHasChild_(l,zn.getFront())&&(qt=Pt.applyUserOverwrite_(qt,zn,Tn,fe,De,rt))}),B.foreach(function($t,Tn){var zn=g.child($t);w.cacheHasChild_(l,zn.getFront())||(qt=Pt.applyUserOverwrite_(qt,zn,Tn,fe,De,rt))}),qt},w.prototype.applyMerge_=function(l,g){return g.foreach(function(B,fe){l=l.updateChild(B,fe)}),l},w.prototype.applyServerMerge_=function(l,g,B,fe,De,rt,Pt){var qt=this;if(l.getServerCache().getNode().isEmpty()&&!l.getServerCache().isFullyInitialized())return l;var Tn,$t=l;Tn=g.isEmpty()?B:si.Empty.setTree(g,B);var zn=l.getServerCache().getNode();return Tn.children.inorderTraversal(function(tr,mr){if(zn.hasChild(tr)){var Pr=l.getServerCache().getNode().getImmediateChild(tr),Ie=qt.applyMerge_(Pr,mr);$t=qt.applyServerOverwrite_($t,new he(tr),Ie,fe,De,rt,Pt)}}),Tn.children.inorderTraversal(function(tr,mr){var Pr=!l.getServerCache().isCompleteForChild(tr)&&null==mr.value;if(!zn.hasChild(tr)&&!Pr){var Ie=l.getServerCache().getNode().getImmediateChild(tr),Te=qt.applyMerge_(Ie,mr);$t=qt.applyServerOverwrite_($t,new he(tr),Te,fe,De,rt,Pt)}}),$t},w.prototype.ackUserWrite_=function(l,g,B,fe,De,rt){if(null!=fe.shadowingWrite(g))return l;var Pt=l.getServerCache().isFiltered(),qt=l.getServerCache();if(null!=B.value){if(g.isEmpty()&&qt.isFullyInitialized()||qt.isCompleteForPath(g))return this.applyServerOverwrite_(l,g,qt.getNode().getChild(g),fe,De,Pt,rt);if(g.isEmpty()){var $t=si.Empty;return qt.getNode().forEachChild(we,function(zn,tr){$t=$t.set(new he(zn),tr)}),this.applyServerMerge_(l,g,$t,fe,De,Pt,rt)}return l}var Tn=si.Empty;return B.foreach(function(zn,tr){var mr=g.child(zn);qt.isCompleteForPath(mr)&&(Tn=Tn.set(zn,qt.getNode().getChild(mr)))}),this.applyServerMerge_(l,g,Tn,fe,De,Pt,rt)},w.prototype.listenComplete_=function(l,g,B,fe){var De=l.getServerCache(),rt=l.updateServerSnap(De.getNode(),De.isFullyInitialized()||g.isEmpty(),De.isFiltered());return this.generateEventCacheAfterServerEvent_(rt,g,B,ss,fe)},w.prototype.revertUserWrite_=function(l,g,B,fe,De){var rt;if(null!=B.shadowingWrite(g))return l;var Pt=new hs(B,l,fe),qt=l.getEventCache().getNode(),$t=void 0;if(g.isEmpty()||".priority"===g.getFront()){var Tn=void 0;if(l.getServerCache().isFullyInitialized())Tn=B.calcCompleteEventCache(l.getCompleteServerSnap());else{var zn=l.getServerCache().getNode();x.assert(zn instanceof dr,"serverChildren would be complete if leaf node"),Tn=B.calcCompleteEventChildren(zn)}$t=this.filter_.updateFullNode(qt,Tn=Tn,De)}else{var tr=g.getFront(),mr=B.calcCompleteChild(tr,l.getServerCache());null==mr&&l.getServerCache().isCompleteForChild(tr)&&(mr=qt.getImmediateChild(tr)),($t=null!=mr?this.filter_.updateChild(qt,tr,mr,g.popFront(),Pt,De):l.getEventCache().getNode().hasChild(tr)?this.filter_.updateChild(qt,tr,dr.EMPTY_NODE,g.popFront(),Pt,De):qt).isEmpty()&&l.getServerCache().isFullyInitialized()&&(rt=B.calcCompleteEventCache(l.getCompleteServerSnap())).isLeafNode()&&($t=this.filter_.updateFullNode($t,rt,De))}return rt=l.getServerCache().isFullyInitialized()||null!=B.shadowingWrite(he.Empty),l.updateEventSnap($t,rt,this.filter_.filtersNodes())},w}(),hi=function(){function w(l){this.query_=l,this.index_=this.query_.getQueryParams().getIndex()}return w.prototype.generateEventsForChanges=function(l,g,B){var fe=this,De=[],rt=[];return l.forEach(function(Pt){Pt.type===ai.CHILD_CHANGED&&fe.index_.indexedValueChanged(Pt.oldSnap,Pt.snapshotNode)&&rt.push(ai.childMovedChange(Pt.childName,Pt.snapshotNode))}),this.generateEventsForType_(De,ai.CHILD_REMOVED,l,B,g),this.generateEventsForType_(De,ai.CHILD_ADDED,l,B,g),this.generateEventsForType_(De,ai.CHILD_MOVED,rt,B,g),this.generateEventsForType_(De,ai.CHILD_CHANGED,l,B,g),this.generateEventsForType_(De,ai.VALUE,l,B,g),De},w.prototype.generateEventsForType_=function(l,g,B,fe,De){var rt=this,Pt=B.filter(function(qt){return qt.type===g});Pt.sort(this.compareChanges_.bind(this)),Pt.forEach(function(qt){var $t=rt.materializeSingleChange_(qt,De);fe.forEach(function(Tn){Tn.respondsTo(qt.type)&&l.push(Tn.createEvent($t,rt.query_))})})},w.prototype.materializeSingleChange_=function(l,g){return"value"===l.type||"child_removed"===l.type||(l.prevName=g.getPredecessorChildName(l.childName,l.
1snapshotNode,this.index_)),l},w.prototype.compareChanges_=function(l,g){if(null==l.childName||null==g.childName)throw x.assertionError("Should only compare child_ events.");var B=new Tt(l.childName,l.snapshotNode),fe=new Tt(g.childName,g.snapshotNode);return this.index_.compare(B,fe)},w}(),Mi=function(){function w(l,g){this.query_=l,this.eventRegistrations_=[];var B=this.query_.getQueryParams(),fe=new Zi(B.getIndex()),De=B.getNodeFilter();this.processor_=new bs(De);var rt=g.getServerCache(),Pt=g.getEventCache(),qt=fe.updateFullNode(dr.EMPTY_NODE,rt.getNode(),null),$t=De.updateFullNode(dr.EMPTY_NODE,Pt.getNode(),null),Tn=new $i(qt,rt.isFullyInitialized(),fe.filtersNodes()),zn=new $i($t,Pt.isFullyInitialized(),De.filtersNodes());this.viewCache_=new Hi(zn,Tn),this.eventGenerator_=new hi(this.query_)}return w.prototype.getQuery=function(){return this.query_},w.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},w.prototype.getCompleteServerCache=function(l){var g=this.viewCache_.getCompleteServerSnap();return g&&(this.query_.getQueryParams().loadsAllData()||!l.isEmpty()&&!g.getImmediateChild(l.getFront()).isEmpty())?g.getChild(l):null},w.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},w.prototype.addEventRegistration=function(l){this.eventRegistrations_.push(l)},w.prototype.removeEventRegistration=function(l,g){var B=[];if(g){x.assert(null==l,"A cancel should cancel all event registrations.");var fe=this.query_.path;this.eventRegistrations_.forEach(function(qt){var $t=qt.createCancelEvent(g=g,fe);$t&&B.push($t)})}if(l){for(var De=[],rt=0;rt<this.eventRegistrations_.length;++rt){var Pt=this.eventRegistrations_[rt];if(Pt.matches(l)){if(l.hasAnyCallback()){De=De.concat(this.eventRegistrations_.slice(rt+1));break}}else De.push(Pt)}this.eventRegistrations_=De}else this.eventRegistrations_=[];return B},w.prototype.applyOperation=function(l,g,B){l.type===ci.MERGE&&null!==l.source.queryId&&(x.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),x.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var fe=this.viewCache_,De=this.processor_.applyOperation(fe,l,g,B);return this.processor_.assertIndexed(De.viewCache),x.assert(De.viewCache.getServerCache().isFullyInitialized()||!fe.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=De.viewCache,this.generateEventsForChanges_(De.changes,De.viewCache.getEventCache().getNode(),null)},w.prototype.getInitialEvents=function(l){var g=this.viewCache_.getEventCache(),B=[];return g.getNode().isLeafNode()||g.getNode().forEachChild(jt,function(De,rt){B.push(ai.childAddedChange(De,rt))}),g.isFullyInitialized()&&B.push(ai.valueChange(g.getNode())),this.generateEventsForChanges_(B,g.getNode(),l)},w.prototype.generateEventsForChanges_=function(l,g,B){return this.eventGenerator_.generateEventsForChanges(l,g,B?[B]:this.eventRegistrations_)},w}(),os=function(){function w(){this.views=new Map}return Object.defineProperty(w,"__referenceConstructor",{get:function(){return x.assert(Ti,"Reference.ts has not been loaded"),Ti},set:function(l){x.assert(!Ti,"__referenceConstructor has already been defined"),Ti=l},enumerable:!1,configurable:!0}),w.prototype.isEmpty=function(){return 0===this.views.size},w.prototype.applyOperation=function(l,g,B){var fe,De,rt=l.source.queryId;if(null!==rt){var Pt=this.views.get(rt);return x.assert(null!=Pt,"SyncTree gave us an op for an invalid query."),Pt.applyOperation(l,g,B)}var qt=[];try{for(var $t=_.__values(this.views.values()),Tn=$t.next();!Tn.done;Tn=$t.next())qt=qt.concat((Pt=Tn.value).applyOperation(l,g,B))}catch(zn){fe={error:zn}}finally{try{Tn&&!Tn.done&&(De=$t.return)&&De.call($t)}finally{if(fe)throw fe.error}}return qt},w.prototype.addEventRegistration=function(l,g,B,fe,De){var rt=l.queryIdentifier(),Pt=this.views.get(rt);
1if(!Pt){var qt=B.calcCompleteEventCache(De?fe:null),$t=!1;qt?$t=!0:fe instanceof dr?(qt=B.calcCompleteEventChildren(fe),$t=!1):(qt=dr.EMPTY_NODE,$t=!1);var Tn=new Hi(new $i(qt,$t,!1),new $i(fe,De,!1));Pt=new Mi(l,Tn),this.views.set(rt,Pt)}return Pt.addEventRegistration(g),Pt.getInitialEvents(g)},w.prototype.removeEventRegistration=function(l,g,B){var fe,De,rt=l.queryIdentifier(),Pt=[],qt=[],$t=this.hasCompleteView();if("default"===rt)try{for(var Tn=_.__values(this.views.entries()),zn=Tn.next();!zn.done;zn=Tn.next()){var Pr,tr=_.__read(zn.value,2),mr=tr[0];qt=qt.concat((Pr=tr[1]).removeEventRegistration(g,B)),Pr.isEmpty()&&(this.views.delete(mr),Pr.getQuery().getQueryParams().loadsAllData()||Pt.push(Pr.getQuery()))}}catch(Ie){fe={error:Ie}}finally{try{zn&&!zn.done&&(De=Tn.return)&&De.call(Tn)}finally{if(fe)throw fe.error}}else(Pr=this.views.get(rt))&&(qt=qt.concat(Pr.removeEventRegistration(g,B)),Pr.isEmpty()&&(this.views.delete(rt),Pr.getQuery().getQueryParams().loadsAllData()||Pt.push(Pr.getQuery())));return $t&&!this.hasCompleteView()&&Pt.push(new w.__referenceConstructor(l.repo,l.path)),{removed:Pt,events:qt}},w.prototype.getQueryViews=function(){var l,g,B=[];try{for(var fe=_.__values(this.views.values()),De=fe.next();!De.done;De=fe.next()){var rt=De.value;rt.getQuery().getQueryParams().loadsAllData()||B.push(rt)}}catch(Pt){l={error:Pt}}finally{try{De&&!De.done&&(g=fe.return)&&g.call(fe)}finally{if(l)throw l.error}}return B},w.prototype.getCompleteServerCache=function(l){var g,B,fe=null;try{for(var De=_.__values(this.views.values()),rt=De.next();!rt.done;rt=De.next())fe=fe||rt.value.getCompleteServerCache(l)}catch(qt){g={error:qt}}finally{try{rt&&!rt.done&&(B=De.return)&&B.call(De)}finally{if(g)throw g.error}}return fe},w.prototype.viewForQuery=function(l){if(l.getQueryParams().loadsAllData())return this.getCompleteView();var B=l.queryIdentifier();return this.views.get(B)},w.prototype.viewExistsForQuery=function(l){return null!=this.viewForQuery(l)},w.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},w.prototype.getCompleteView=function(){var l,g;try{for(var B=_.__values(this.views.values()),fe=B.next();!fe.done;fe=B.next()){var De=fe.value;if(De.getQuery().getQueryParams().loadsAllData())return De}}catch(rt){l={error:rt}}finally{try{fe&&!fe.done&&(g=B.return)&&g.call(B)}finally{if(l)throw l.error}}return null},w}(),Ii=function(){function w(l){this.writeTree_=l}return w.prototype.addWrite=function(l,g){if(l.isEmpty())return new w(new si(g));var B=this.writeTree_.findRootMostValueAndPath(l);if(null!=B){var fe=B.path,De=B.value,rt=he.relativePath(fe,l);return De=De.updateChild(rt,g),new w(this.writeTree_.set(fe,De))}var Pt=new si(g);return new w(this.writeTree_.setTree(l,Pt))},w.prototype.addWrites=function(l,g){var B=this;return He(g,function(fe,De){B=B.addWrite(l.child(fe),De)}),B},w.prototype.removeWrite=function(l){return l.isEmpty()?w.Empty:new w(this.writeTree_.setTree(l,si.Empty))},w.prototype.hasCompleteWrite=function(l){return null!=this.getCompleteNode(l)},w.prototype.getCompleteNode=function(l){var g=this.writeTree_.findRootMostValueAndPath(l);return null!=g?this.writeTree_.get(g.path).getChild(he.relativePath(g.path,l)):null},w.prototype.getCompleteChildren=function(){var l=[],g=this.writeTree_.value;return null!=g?g.isLeafNode()||g.forEachChild(jt,function(B,fe){l.push(new Tt(B,fe))}):this.writeTree_.children.inorderTraversal(function(B,fe){null!=fe.value&&l.push(new Tt(B,fe.value))}),l},w.prototype.childCompoundWrite=function(l){if(l.isEmpty())return this;var g=this.getCompleteNode(l);return new w(null!=g?new si(g):this.writeTree_.subtree(l))},w.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},w.prototype.apply=function(l){return tt(he.Empty,this.writeTree_,l)},w.Empty=new w(new si(null)),w}();function tt(w,l,g){if(null!=l.value)return g.updateChild(w,l.value);var B=null;return l.children.inorderTraversal(function(fe,De){".priority"===fe?(x.assert(null!==De.value,"Priority writes must always be leaf nodes"),B=De.value):g=tt(w.child(fe),De,g)}
1),!g.getChild(w).isEmpty()&&null!==B&&(g=g.updateChild(w.child(".priority"),B)),g}var Xe=function(){function w(){this.visibleWrites_=Ii.Empty,this.allWrites_=[],this.lastWriteId_=-1}return w.prototype.childWrites=function(l){return new Ut(l,this)},w.prototype.addOverwrite=function(l,g,B,fe){x.assert(B>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===fe&&(fe=!0),this.allWrites_.push({path:l,snap:g,writeId:B,visible:fe}),fe&&(this.visibleWrites_=this.visibleWrites_.addWrite(l,g)),this.lastWriteId_=B},w.prototype.addMerge=function(l,g,B){x.assert(B>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:l,children:g,writeId:B,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(l,g),this.lastWriteId_=B},w.prototype.getWrite=function(l){for(var g=0;g<this.allWrites_.length;g++){var B=this.allWrites_[g];if(B.writeId===l)return B}return null},w.prototype.removeWrite=function(l){var g=this,B=this.allWrites_.findIndex(function(Tn){return Tn.writeId===l});x.assert(B>=0,"removeWrite called with nonexistent writeId.");var fe=this.allWrites_[B];this.allWrites_.splice(B,1);for(var De=fe.visible,rt=!1,Pt=this.allWrites_.length-1;De&&Pt>=0;){var qt=this.allWrites_[Pt];qt.visible&&(Pt>=B&&this.recordContainsPath_(qt,fe.path)?De=!1:fe.path.contains(qt.path)&&(rt=!0)),Pt--}return!!De&&(rt?(this.resetTree_(),!0):(fe.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(fe.path):He(fe.children,function(Tn){g.visibleWrites_=g.visibleWrites_.removeWrite(fe.path.child(Tn))}),!0))},w.prototype.getCompleteWriteData=function(l){return this.visibleWrites_.getCompleteNode(l)},w.prototype.calcCompleteEventCache=function(l,g,B,fe){if(B||fe){var qt=this.visibleWrites_.childCompoundWrite(l);return!fe&&qt.isEmpty()?g:fe||null!=g||qt.hasCompleteWrite(he.Empty)?w.layerTree_(this.allWrites_,function(tr){return(tr.visible||fe)&&(!B||!~B.indexOf(tr.writeId))&&(tr.path.contains(l)||l.contains(tr.path))},l).apply(g||dr.EMPTY_NODE):null}var De=this.visibleWrites_.getCompleteNode(l);if(null!=De)return De;var rt=this.visibleWrites_.childCompoundWrite(l);return rt.isEmpty()?g:null!=g||rt.hasCompleteWrite(he.Empty)?rt.apply(g||dr.EMPTY_NODE):null},w.prototype.calcCompleteEventChildren=function(l,g){var B=dr.EMPTY_NODE,fe=this.visibleWrites_.getCompleteNode(l);if(fe)return fe.isLeafNode()||fe.forEachChild(jt,function(Pt,qt){B=B.updateImmediateChild(Pt,qt)}),B;if(g){var De=this.visibleWrites_.childCompoundWrite(l);return g.forEachChild(jt,function(Pt,qt){var $t=De.childCompoundWrite(new he(Pt)).apply(qt);B=B.updateImmediateChild(Pt,$t)}
1),De.getCompleteChildren().forEach(function(Pt){B=B.updateImmediateChild(Pt.name,Pt.node)}),B}return this.visibleWrites_.childCompoundWrite(l).getCompleteChildren().forEach(function(Pt){B=B.updateImmediateChild(Pt.name,Pt.node)}),B},w.prototype.calcEventCacheAfterServerOverwrite=function(l,g,B,fe){x.assert(B||fe,"Either existingEventSnap or existingServerSnap must exist");var De=l.child(g);if(this.visibleWrites_.hasCompleteWrite(De))return null;var rt=this.visibleWrites_.childCompoundWrite(De);return rt.isEmpty()?fe.getChild(g):rt.apply(fe.getChild(g))},w.prototype.calcCompleteChild=function(l,g,B){var fe=l.child(g),De=this.visibleWrites_.getCompleteNode(fe);return null!=De?De:B.isCompleteForChild(g)?this.visibleWrites_.childCompoundWrite(fe).apply(B.getNode().getImmediateChild(g)):null},w.prototype.shadowingWrite=function(l){return this.visibleWrites_.getCompleteNode(l)},w.prototype.calcIndexedSlice=function(l,g,B,fe,De,rt){var Pt,qt=this.visibleWrites_.childCompoundWrite(l),$t=qt.getCompleteNode(he.Empty);if(null!=$t)Pt=$t;else{if(null==g)return[];Pt=qt.apply(g)}if((Pt=Pt.withIndex(rt)).isEmpty()||Pt.isLeafNode())return[];for(var Tn=[],zn=rt.getCompare(),tr=De?Pt.getReverseIteratorFrom(B,rt):Pt.getIteratorFrom(B,rt),mr=tr.getNext();mr&&Tn.length<fe;)0!==zn(mr,B)&&Tn.push(mr),mr=tr.getNext();return Tn},w.prototype.recordContainsPath_=function(l,g){if(l.snap)return l.path.contains(g);for(var B in l.children)if(l.children.hasOwnProperty(B)&&l.path.child(B).contains(g))return!0;return!1},w.prototype.resetTree_=function(){this.visibleWrites_=w.layerTree_(this.allWrites_,w.DefaultFilter_,he.Empty),this.lastWriteId_=this.allWrites_.length>0?this.allWrites_[this.allWrites_.length-1].writeId:-1},w.DefaultFilter_=function(l){return l.visible},w.layerTree_=function(l,g,B){for(var fe=Ii.Empty,De=0;De<l.length;++De){var rt=l[De];if(g(rt)){var Pt=rt.path,qt=void 0;if(rt.snap)B.contains(Pt)?(qt=he.relativePath(B,Pt),fe=fe.addWrite(qt,rt.snap)):Pt.contains(B)&&(qt=he.relativePath(Pt,B),fe=fe.addWrite(he.Empty,rt.snap.getChild(qt)));else{if(!rt.children)throw x.assertionError("WriteRecord should have .snap or .children");if(B.contains(Pt))qt=he.relativePath(B,Pt),fe=fe.addWrites(qt,rt.children);else if(Pt.contains(B))if((qt=he.relativePath(Pt,B)).isEmpty())fe=fe.addWrites(he.Empty,rt.children);else{var $t=x.safeGet(rt.children,qt.getFront());if($t){var Tn=$t.getChild(qt.popFront());fe=fe.addWrite(he.Empty,Tn)}}}}}return fe},w}(),Ut=function(){function w(l,g){this.treePath_=l,this.writeTree_=g}return w.prototype.calcCompleteEventCache=function(l,g,B){return this.writeTree_.calcCompleteEventCache(this.treePath_,l,g,B)},w.prototype.calcCompleteEventChildren=function(l){return this.writeTree_.calcCompleteEventChildren(this.treePath_,l)},w.prototype.calcEventCacheAfterServerOverwrite=function(l,g,B){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,l,g,B)},w.prototype.shadowingWrite=function(l){return this.writeTree_.shadowingWrite(this.treePath_.child(l))},w.prototype.calcIndexedSlice=function(l,g,B,fe,De){return this.writeTree_.calcIndexedSlice(this.treePath_,l,g,B,fe,De)},w.prototype.calcCompleteChild=function(l,g){return this.writeTree_.calcCompleteChild(this.treePath_,l,g)},w.prototype.child=function(l){return new w(this.treePath_.child(l),this.writeTree_)},w}(),gn=function(){function w(l){this.listenProvider_=l,this.syncPointTree_=si.Empty,this.pendingWriteTree_=new Xe,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return w.prototype.applyUserOverwrite=function(l,g,B,fe){return this.pendingWriteTree_.addOverwrite(l,g,B,fe),fe?this.applyOperationToSyncPoints_(new Yi(Gi.User,l,g)):[]},w.prototype.applyUserMerge=function(l,g,B){this.pendingWriteTree_.addMerge(l,g,B);var fe=si.fromObject(g);return this.applyOperationToSyncPoints_(new is(Gi.User,l,fe))},w.prototype.ackUserWrite=function(l,g){void 0===g&&(g=!1);var B=this.pendingWriteTree_.getWrite(l);if(this.pendingWriteTree_.removeWrite(l)){var De=si.Empty;return null!=B.snap?De=De.set(he.Empty,!0):He(B.children,function(rt,Pt){De=De.set(new he(rt),Pt)}),this.applyOperationToSyncPoints_(new rs(B.path,De,g))}return[]},w.prototype.applyServerOverwrite=function(l,g){return this.applyOperationToSyncPoints_(new Yi(Gi.Server,l,g))},w.prototype.applyServerMerge=function(l,g){var B=si.fromObject(g);return this.applyOperationToSyncPoints_(new is(Gi.Server,l,B))},w.prototype.applyListenComplete=function(l){return this.applyOperationToSyncPoints_(new cs(Gi.Server,l))},w.prototype.applyTaggedQueryOverwrite=function(l,g,B){var fe=this.queryKeyForTag_(B);if(null!=fe){var De=w.parseQueryKey_(fe),rt=De.path,Pt=De.queryId,qt=he.relativePath(rt,l),$t=new Yi(Gi.forServerTaggedQuery(Pt),qt,g);return this.applyTaggedOperation_(rt,$t)}return[]},w.prototype.applyTaggedQueryMerge=function(l,g,B){var fe=this.queryKeyForTag_(B);if(fe){var De=w.parseQueryKey_(fe),rt=De.path,Pt=De.queryId,qt=he.relativePath(rt,l),$t=si.fromObject(g),Tn=new is(Gi.forServerTaggedQuery(Pt),qt,$t);return this.applyTaggedOperation_(rt,Tn)}return[]},w.prototype.applyTaggedListenComplete=function(l,g){var B=this.queryKeyForTag_(g);if(B){var fe=w.parseQueryKey_(B),De=fe.path,rt=fe.queryId,Pt=he.relativePath(De,l),qt=new cs(Gi.forServerTaggedQuery(rt),Pt);return this.applyTaggedOperation_(De,qt)}return[]},w.prototype.addEventRegistration=function(l,g){var B=l.path,fe=null,De=!1;this.syncPointTree_.foreachOnPath(B,function(Ie,Te){var _e=he.relativePath(Ie,B);fe=fe||Te.getCompleteServerCache(_e),De=De||Te.hasCompleteView()});var Pt,rt=this.syncPointTree_.get(B);
1rt?(De=De||rt.hasCompleteView(),fe=fe||rt.getCompleteServerCache(he.Empty)):(rt=new os,this.syncPointTree_=this.syncPointTree_.set(B,rt)),null!=fe?Pt=!0:(Pt=!1,fe=dr.EMPTY_NODE,this.syncPointTree_.subtree(B).foreachChild(function(Ie,Te){var _e=Te.getCompleteServerCache(he.Empty);_e&&(fe=fe.updateImmediateChild(Ie,_e))}));var $t=rt.viewExistsForQuery(l);if(!$t&&!l.getQueryParams().loadsAllData()){var Tn=w.makeQueryKey_(l);x.assert(!this.queryToTagMap.has(Tn),"View does not exist, but we have a tag");var zn=w.getNextQueryTag_();this.queryToTagMap.set(Tn,zn),this.tagToQueryMap.set(zn,Tn)}var tr=this.pendingWriteTree_.childWrites(B),mr=rt.addEventRegistration(l,g,tr,fe,Pt);if(!$t&&!De){var Pr=rt.viewForQuery(l);mr=mr.concat(this.setupListener_(l,Pr))}return mr},w.prototype.removeEventRegistration=function(l,g,B){var fe=this,De=l.path,rt=this.syncPointTree_.get(De),Pt=[];if(rt&&("default"===l.queryIdentifier()||rt.viewExistsForQuery(l))){var qt=rt.removeEventRegistration(l,g,B);rt.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(De));var $t=qt.removed;Pt=qt.events;var Tn=-1!==$t.findIndex(function(pt){return pt.getQueryParams().loadsAllData()}),zn=this.syncPointTree_.findOnPath(De,function(pt,Vt){return Vt.hasCompleteView()});if(Tn&&!zn){var tr=this.syncPointTree_.subtree(De);if(!tr.isEmpty())for(var mr=this.collectDistinctViewsForSubTree_(tr),Pr=0;Pr<mr.length;++Pr){var Ie=mr[Pr],Te=Ie.getQuery(),_e=this.createListenerForView_(Ie);this.listenProvider_.startListening(w.queryForListening_(Te),this.tagForQuery_(Te),_e.hashFn,_e.onComplete)}}!zn&&$t.length>0&&!B&&(Tn?this.listenProvider_.stopListening(w.queryForListening_(l),null):$t.forEach(function(pt){var Vt=fe.queryToTagMap.get(w.makeQueryKey_(pt));fe.listenProvider_.stopListening(w.queryForListening_(pt),Vt)})),this.removeTags_($t)}return Pt},w.prototype.calcCompleteEventCache=function(l,g){var fe=this.pendingWriteTree_,De=this.syncPointTree_.findOnPath(l,function(rt,Pt){var qt=he.relativePath(rt,l),$t=Pt.getCompleteServerCache(qt);if($t)return $t});return fe.calcCompleteEventCache(l,De,g,!0)},w.prototype.collectDistinctViewsForSubTree_=function(l){return l.fold(function(g,B,fe){if(B&&B.hasCompleteView())return[B.getCompleteView()];var rt=[];return B&&(rt=B.getQueryViews()),He(fe,function(Pt,qt){rt=rt.concat(qt)}),rt})},w.prototype.removeTags_=function(l){for(var g=0;g<l.length;++g){var B=l[g];if(!B.getQueryParams().loadsAllData()){var fe=w.makeQueryKey_(B),De=this.queryToTagMap.get(fe);this.queryToTagMap.delete(fe),this.tagToQueryMap.delete(De)}}},w.queryForListening_=function(l){return l.getQueryParams().loadsAllData()&&
1!l.getQueryParams().isDefault()?l.getRef():l},w.prototype.setupListener_=function(l,g){var B=l.path,fe=this.tagForQuery_(l),De=this.createListenerForView_(g),rt=this.listenProvider_.startListening(w.queryForListening_(l),fe,De.hashFn,De.onComplete),Pt=this.syncPointTree_.subtree(B);if(fe)x.assert(!Pt.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var qt=Pt.fold(function(zn,tr,mr){if(!zn.isEmpty()&&tr&&tr.hasCompleteView())return[tr.getCompleteView().getQuery()];var Pr=[];return tr&&(Pr=Pr.concat(tr.getQueryViews().map(function(Ie){return Ie.getQuery()}))),He(mr,function(Ie,Te){Pr=Pr.concat(Te)}),Pr}),$t=0;$t<qt.length;++$t){var Tn=qt[$t];this.listenProvider_.stopListening(w.queryForListening_(Tn),this.tagForQuery_(Tn))}return rt},w.prototype.createListenerForView_=function(l){var g=this,B=l.getQuery(),fe=this.tagForQuery_(B);return{hashFn:function(){return(l.getServerCache()||dr.EMPTY_NODE).hash()},onComplete:function(De){if("ok"===De)return fe?g.applyTaggedListenComplete(B.path,fe):g.applyListenComplete(B.path);var rt=function(w,l){var g="Unknown Error";"too_big"===w?g="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===w?g="Client doesn't have permission to access the desired data.":"unavailable"===w&&(g="The service is unavailable");var B=new Error(w+" at "+l.path.toString()+": "+g);return B.code=w.toUpperCase(),B}(De,B);return g.removeEventRegistration(B,null,rt)}}},w.makeQueryKey_=function(l){return l.path.toString()+"$"+l.queryIdentifier()},w.parseQueryKey_=function(l){var g=l.indexOf("$");return x.assert(-1!==g&&g<l.length-1,"Bad queryKey."),{queryId:l.substr(g+1),path:new he(l.substr(0,g))}},w.prototype.queryKeyForTag_=function(l){return this.tagToQueryMap.get(l)},w.prototype.tagForQuery_=function(l){var g=w.makeQueryKey_(l);return this.queryToTagMap.get(g)},w.getNextQueryTag_=function(){return w.nextQueryTag_++},w.prototype.applyTaggedOperation_=function(l,g){var B=this.syncPointTree_.get(l);x.assert(B,"Missing sync point for query tag that we're tracking");var fe=this.pendingWriteTree_.childWrites(l);return B.applyOperation(g,fe,null)},w.prototype.applyOperationToSyncPoints_=function(l){return this.applyOperationHelper_(l,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(he.Empty))},w.prototype.applyOperationHelper_=function(l,g,B,fe){if(l.path.isEmpty())return this.applyOperationDescendantsHelper_(l,g,B,fe);var De=g.get(he.Empty);null==B&&null!=De&&(B=De.getCompleteServerCache(he.Empty));var rt=[],Pt=l.path.getFront(),qt=l.operationForChild(Pt),$t=g.children.get(Pt);if($t&&qt){var Tn=B?B.getImmediateChild(Pt):null,zn=fe.child(Pt);rt=rt.concat(this.applyOperationHelper_(qt,$t,Tn,zn))}return De&&(rt=rt.concat(De.applyOperation(l,fe,B))),rt},w.prototype.applyOperationDescendantsHelper_=function(l,g,B,fe){var De=this,rt=g.get(he.Empty);null==B&&null!=rt&&(B=rt.getCompleteServerCache(he.Empty));var Pt=[];return g.children.inorderTraversal(function(qt,$t){var Tn=B?B.getImmediateChild(qt):null,zn=fe.child(qt),tr=l.operationForChild(qt);tr&&(Pt=Pt.concat(De.applyOperationDescendantsHelper_(tr,$t,Tn,zn)))}),rt&&(Pt=Pt.concat(rt.applyOperation(l,fe,B))),Pt},w.nextQueryTag_=1,w}(),_n=function(){function w(){this.rootNode_=dr.EMPTY_NODE}return w.prototype.getNode=function(l){return this.rootNode_.getChild(l)},w.prototype.updateSnapshot=function(l,g){this.rootNode_=this.rootNode_.updateChild(l,g)},w}(),Mn=function(){function w(){this.counters_={}}return w.prototype.incrementCounter=function(l,g){void 0===g&&(g=1),x.contains(this.counters_,l)||(this.counters_[l]=0),this.counters_[l]+=g},w.prototype.get=function(){return x.deepCopy(this.counters_)},w}(),qn=function(){function w(){}return w.getCollection=function(l){var g=l.toString();return this.collections_[g]||(this.collections_[g]=new Mn),this.collections_[g]},w.getOrCreateReporter=function(l,g){var B=l.toString();return this.reporters_[B]||(this.reporters_[B]=g()),this.reporters_[B]},w.collections_={},w.reporters_={},w}(),cr=function(){function w(l){this.collection_=l,this.last_=null}return w.prototype.get=function(){var l=this.collection_.get(),g=_.__assign({},l);return this.last_&&He(this.last_,function(B,fe){g[B]=g[B]-fe}),this.last_=l,g},w}(),Wr=function(){function w(l,g){this.server_=g,this.statsToReport_={},this.statsListener_=new cr(l);var B=1e4+2e4*Math.random();ie(this.reportStats_.bind(this),Math.floor(B))}return w.prototype.includeStat=function(l){this.statsToReport_[l]=!0},w.prototype.reportStats_=function(){var l=this,g=this.statsListener_.get(),B={},fe=!1;He(g,function(De,rt){rt>0&&x.contains(l.statsToReport_,De)&&(B[De]=rt,fe=!0)}),fe&&this.server_.reportStats(B),ie(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},w}(),le=function(){function w(){this.eventLists_=[],this.recursionDepth_=0}return w.prototype.queueEvents=function(l){for(var g=null,B=0;B<l.length;B++){var fe=l[B],De=fe.getPath();null!==g&&!De.equals(g.getPath())&&(this.eventLists_.push(g),g=null),null===g&&(g=new Ae(De)),g.add(fe)}g&&this.eventLists_.push(g)},w.prototype.raiseEventsAtPath=function(l,g){this.queueEvents(g),this.raiseQueuedEventsMatchingPredicate_(function(B){return B.equals(l)})},w.prototype.raiseEventsForChangedPath=function(l,g){this.queueEvents(g),this.raiseQueuedEventsMatchingPredicate_(function(B){return B.contains(l)||l.contains(B)})},w.prototype.raiseQueuedEventsMatchingPredicate_=function(l){this.recursionDepth_++;for(var g=!0,B=0;B<this.eventLists_.length;B++){var fe=this.eventLists_[B];fe&&(l(fe.getPath())?(this.eventLists_[B].raise(),this.eventLists_[B]=null):g=!1)}g&&(this.eventLists_=[]),this.recursionDepth_--},w}(),Ae=function(){function w(l){this.path_=l,this.events_=[]}
1return w.prototype.add=function(l){this.events_.push(l)},w.prototype.raise=function(){for(var l=0;l<this.events_.length;l++){var g=this.events_[l];if(null!==g){this.events_[l]=null;var B=g.getEventRunner();M&&T("event: "+g.toString()),K(B)}}},w.prototype.getPath=function(){return this.path_},w}(),be=function(){function w(l){this.allowedEvents_=l,this.listeners_={},x.assert(Array.isArray(l)&&l.length>0,"Requires a non-empty array")}return w.prototype.trigger=function(l){for(var g=[],B=1;B<arguments.length;B++)g[B-1]=arguments[B];if(Array.isArray(this.listeners_[l]))for(var fe=_.__spread(this.listeners_[l]),De=0;De<fe.length;De++)fe[De].callback.apply(fe[De].context,g)},w.prototype.on=function(l,g,B){this.validateEventType_(l),this.listeners_[l]=this.listeners_[l]||[],this.listeners_[l].push({callback:g,context:B});var fe=this.getInitialEvent(l);fe&&g.apply(B,fe)},w.prototype.off=function(l,g,B){this.validateEventType_(l);for(var fe=this.listeners_[l]||[],De=0;De<fe.length;De++)if(fe[De].callback===g&&(!B||B===fe[De].context))return void fe.splice(De,1)},w.prototype.validateEventType_=function(l){x.assert(this.allowedEvents_.find(function(g){return g===l}),"Unknown event: "+l)},w}(),Me=function(w){function l(){var B,fe,g=w.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(fe="visibilitychange",B="hidden"):void 0!==document.mozHidden?(fe="mozvisibilitychange",B="mozHidden"):void 0!==document.msHidden?(fe="msvisibilitychange",B="msHidden"):void 0!==document.webkitHidden&&(fe="webkitvisibilitychange",B="webkitHidden")),g.visible_=!0,fe&&document.addEventListener(fe,function(){var De=!document[B];De!==g.visible_&&(g.visible_=De,g.trigger("visible",De))},!1),g}return _.__extends(l,w),l.getInstance=function(){return new l},l.prototype.getInitialEvent=function(g){return x.assert("visible"===g,"Unknown event type: "+g),[this.visible_]},l}(be),dt=function(w){function l(){var g=w.call(this,["online"])||this;return g.online_=!0,"undefined"!=typeof window&&void 0!==window.addEventListener&&!x.isMobileCordova()&&(window.addEventListener("online",function(){g.online_||(g.online_=!0,g.trigger("online",!0))},!1),window.addEventListener("offline",function(){g.online_&&(g.online_=!1,g.trigger("online",!1))},!1)),g}return _.__extends(l,w),l.getInstance=function(){return new l},l.prototype.getInitialEvent=function(g){return x.assert("online"===g,"Unknown event type: "+g),[this.online_]},l.prototype.currentlyOnline=function(){return this.online_},l}(be),rn=function(){function w(l){this.onMessage_=l,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return w.prototype.closeAfter=function(l,g){this.closeAfterResponse=l,this.onClose=g,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},w.prototype.handleResponse=function(l,g){var B=this;this.pendingResponses[l]=g;for(var fe=function(){var Pt=De.pendingResponses[De.currentResponseNum];delete De.pendingResponses[De.currentResponseNum];for(var qt=function(Tn){Pt[Tn]&&K(function(){B.onMessage_(Pt[Tn])})},$t=0;$t<Pt.length;++$t)qt($t);if(De.currentResponseNum===De.closeAfterResponse)return De.onClose&&(De.onClose(),De.onClose=null),"break";De.currentResponseNum++},De=this;this.pendingResponses[this.currentResponseNum]&&"break"!==fe(););},w}(),de=function(){function w(l,g,B,fe,De){this.connId=l,this.repoInfo=g,this.applicationId=B,this.transportSessionId=fe,this.lastSessionId=De,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=Z(l),this.stats_=qn.getCollection(g),this.urlFn=function(rt){return g.connectionURL(it,rt)}}return w.prototype.open=function(l,g){var B=this;this.curSegmentNum=0,this.onDisconnect_=g,this.myPacketOrderer=new rn(l),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){B.log_("Timed out trying to connect."),B.onClosed_(),B.connectTimeoutTimer_=null},Math.floor(3e4)),function(w){if(x.isNodeSdk()||"complete"===document.readyState)w();else{var l=!1,g=function(){document.body?l||(l=!0,w()):setTimeout(g,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",g,!1),window.addEventListener("load",g,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&g()}),window.attachEvent("onload",g))}}(function(){if(!B.isClosed_){B.scriptTagHolder=new Ze(function(){for(var rt=[],Pt=0;Pt<arguments.length;Pt++)rt[Pt]=arguments[Pt];var qt=_.__read(rt,5),$t=qt[0],Tn=qt[1],zn=qt[2];if(B.incrementIncomingBytes_(rt),B.scriptTagHolder)if(B.connectTimeoutTimer_&&(clearTimeout(B.connectTimeoutTimer_),B.connectTimeoutTimer_=null),B.everConnected_=!0,"start"===$t)B.id=Tn,B.password=zn;else{if("close"!==$t)throw new Error("Unrecognized command received: "+$t);Tn?(B.scriptTagHolder.sendNewPolls=!1,B.myPacketOrderer.closeAfter(Tn,function(){B.onClosed_()})):B.onClosed_()}},function(){for(var rt=[],Pt=0;Pt<arguments.length;Pt++)rt[Pt]=arguments[Pt];var qt=_.__read(rt,2),$t=qt[0],Tn=qt[1];B.incrementIncomingBytes_(rt),B.myPacketOrderer.handleResponse($t,Tn)},function(){B.onClosed_()},B.urlFn);var fe={start:"t"};fe.ser=Math.floor(1e8*Math.random()),B.scriptTagHolder.uniqueCallbackIdentifier&&(fe.cb=B.scriptTagHolder.uniqueCallbackIdentifier),fe.v="5",B.transportSessionId&&(fe.s=B.transportSessionId),B.lastSessionId&&(fe.ls=B.lastSessionId),B.applicationId&&(fe.p=B.applicationId),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(ln)&&(fe.r="f");var De=B.urlFn(fe);B.log_("Connecting via long-poll to "+De),B.scriptTagHolder.addTag(De,function(){})}})},w.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},w.forceAllow=function(){w.forceAllow_=!0},w.forceDisallow=function(){w.forceDisallow_=!0},w.isAvailable=function(){return!(x.isNodeSdk()||!w.forceAllow_&&(w.forceDisallow_||"undefined"==typeof document||null==document.createElement||"object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href)||"object"==typeof Windows&&"object"==typeof Windows.UI))},w.prototype.markConnectionHealthy=function(){},w.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},w.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},w.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},w.prototype.send=function(l){var g=x.stringify(l);this.bytesSent+=g.length,this.stats_.incrementCounter("bytes_sent",g.length);for(var B=x.base64Encode(g),fe=Re(B,1840),De=0;De<fe.length;De++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,fe.length,fe[De]),this.curSegmentNum++},w.prototype.addDisconnectPingFrame=function(l,g){if(!x.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var B={dframe:"t"};B.id=l,B.pw=g,this.myDisconnFrame.src=this.urlFn(B),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},w.prototype.incrementIncomingBytes_=function(l){var g=x.stringify(l).length;this.bytesReceived+=g,this.stats_.incrementCounter("bytes_received",g)},w}(),Ze=function(){function w(l,g,B,fe){if(this.onDisconnect=B,this.urlFn=fe,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,x.isNodeSdk())this.commandCB=l,this.onMessageCB=g;else{this.uniqueCallbackIdentifier=v(),window["pLPCommand"+this.uniqueCallbackIdentifier]=l,window["pRTLPCB"+this.uniqueCallbackIdentifier]=g,this.myIFrame=w.createIFrame_();var De="";this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11)&&(De='<script>document.domain="'+document.domain+'";<\/script>');var Pt="<html><body>"+De+"</body></html>";
1try{this.myIFrame.doc.open(),this.myIFrame.doc.write(Pt),this.myIFrame.doc.close()}catch(qt){T("frame writing exception"),qt.stack&&T(qt.stack),T(qt)}}}return w.createIFrame_=function(){var l=document.createElement("iframe");if(l.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(l);try{l.contentWindow.document||T("No IE domain setting required")}catch(fe){var B=document.domain;l.src="javascript:void((function(){document.open();document.domain='"+B+"';document.close();})())"}return l.contentDocument?l.doc=l.contentDocument:l.contentWindow?l.doc=l.contentWindow.document:l.document&&(l.doc=l.document),l},w.prototype.close=function(){var l=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==l.myIFrame&&(document.body.removeChild(l.myIFrame),l.myIFrame=null)},Math.floor(0)));var g=this.onDisconnect;g&&(this.onDisconnect=null,g())},w.prototype.startLongPoll=function(l,g){for(this.myID=l,this.myPW=g,this.alive=!0;this.newRequest_(););},w.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var l={};l.id=this.myID,l.pw=this.myPW,l.ser=this.currentSerial;for(var g=this.urlFn(l),B="",fe=0;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+B.length<=1870;){var rt=this.pendingSegs.shift();B=B+"&seg"+fe+"="+rt.seg+"&ts"+fe+"="+rt.ts+"&d"+fe+"="+rt.d,fe++}return this.addLongPollTag_(g+=B,this.currentSerial),!0}return!1},w.prototype.enqueueSegment=function(l,g,B){this.pendingSegs.push({seg:l,ts:g,d:B}),this.alive&&this.newRequest_()},w.prototype.addLongPollTag_=function(l,g){var B=this;this.outstandingRequests.add(g);var fe=function(){B.outstandingRequests.delete(g),B.newRequest_()},De=setTimeout(fe,Math.floor(25e3));this.addTag(l,function(){clearTimeout(De),fe()})},w.prototype.addTag=function(l,g){var B=this;x.isNodeSdk()?this.doNodeLongPoll(l,g):setTimeout(function(){try{if(!B.sendNewPolls)return;var fe=B.myIFrame.doc.createElement("script");fe.type="text/javascript",fe.async=!0,fe.src=l,fe.onload=fe.onreadystatechange=function(){var De=fe.readyState;(!De||"loaded"===De||"complete"===De)&&(fe.onload=fe.onreadystatechange=null,fe.parentNode&&fe.parentNode.removeChild(fe),g())},fe.onerror=function(){T("Long-poll script failed to load: "+l),B.sendNewPolls=!1,B.close()},B.myIFrame.doc.body.appendChild(fe)}catch(De){}},Math.floor(1))},w}(),Xt="",Jr=null;"undefined"!=typeof MozWebSocket?Jr=MozWebSocket:"undefined"!=typeof WebSocket&&(Jr=WebSocket);var Zn=function(){function w(l,g,B,fe,De){this.connId=l,this.applicationId=B,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=Z(this.connId),this.stats_=qn.getCollection(g),this.connURL=w.connectionURL_(g,fe,De),this.nodeAdmin=g.nodeAdmin}return w.connectionURL_=function(l,g,B){var fe={v:"5"};return!x.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(ln)&&(fe.r="f"),g&&(fe.s=g),B&&(fe.ls=B),l.connectionURL(Rt,fe)},w.prototype.open=function(l,g){var B=this;this.onDisconnect=g,this.onMessage=l,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,L.set("previous_websocket_failure",!0);try{if(x.isNodeSdk()){var De={headers:{"User-Agent":"Firebase/5/"+Xt+"/"+process.platform+"/"+(this.nodeAdmin?"AdminNode":"Node"),"X-Firebase-GMPID":this.applicationId||""}},rt=process.env,Pt=0===this.connURL.indexOf("wss://")?rt.HTTPS_PROXY||rt.https_proxy:rt.HTTP_PROXY||rt.http_proxy;Pt&&(De.proxy={origin:Pt}),this.mySock=new Jr(this.connURL,[],De)}else this.mySock=new Jr(this.connURL,[],De={headers:{"X-Firebase-GMPID":this.applicationId||""}})}catch($t){this.log_("Error instantiating WebSocket.");var qt=$t.message||$t.data;return qt&&this.log_(qt),void this.onClosed_()}this.mySock.onopen=function(){B.log_("Websocket connected."),B.everConnected_=!0},this.mySock.onclose=function(){B.log_("Websocket connection was disconnected."),B.mySock=null,B.onClosed_()},this.mySock.onmessage=function($t){B.handleIncomingFrame($t)},this.mySock.onerror=function($t){B.log_("WebSocket error.  Closing connection.");var Tn=$t.message||$t.data;Tn&&B.log_(Tn),B.onClosed_()}},w.prototype.start=function(){},w.forceDisallow=function(){w.forceDisallow_=!0},w.isAvailable=function(){var l=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var B=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);B&&B.length>1&&parseFloat(B[1])<4.4&&(l=!0)}return!l&&null!==Jr&&!w.forceDisallow_},w.previouslyFailed=function(){return L.isInMemoryStorage||!0===L.get("previous_websocket_failure")},w.prototype.markConnectionHealthy=function(){L.remove("previous_websocket_failure")},w.prototype.appendFrame_=function(l){if(this.frames.push(l),this.frames.length===this.totalFrames){var g=this.frames.join("");this.frames=null;var B=x.jsonEval(g);this.onMessage(B)}},w.prototype.handleNewFrameCount_=function(l){this.totalFrames=l,this.frames=[]},w.prototype.extractFrameCount_=function(l){if(x.assert(null===this.frames,"We already have a frame buffer"),l.length<=6){var g=Number(l);if(!isNaN(g))return this.handleNewFrameCount_(g),null}return this.handleNewFrameCount_(1),l},w.prototype.handleIncomingFrame=function(l){if(null!==this.mySock){var g=l.data;if(this.bytesReceived+=g.length,this.stats_.incrementCounter("bytes_received",g.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(g);else{var B=this.extractFrameCount_(g);null!==B&&this.appendFrame_(B)}}},w.prototype.send=function(l){this.resetKeepAlive();var g=x.stringify(l);this.bytesSent+=g.length,this.stats_.incrementCounter("bytes_sent",g.length);var B=Re(g,16384);B.length>1&&this.sendString_(String(B.length));for(var fe=0;fe<B.length;fe++)this.sendString_(B[fe])},w.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},w.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},w.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},w.prototype.resetKeepAlive=function(){var l=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){l.mySock&&l.sendString_("0"),l.resetKeepAlive()},Math.floor(45e3))},w.prototype.sendString_=function(l){try{this.mySock.send(l)}catch(g){this.log_("Exception thrown from WebSocket.send():",g.message||g.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},w.responsesRequiredToBeHealthy=2,w.healthyTimeout=3e4,w}(),qr=function(){function w(l){this.initTransports_(l)}return Object.defineProperty(w,"ALL_TRANSPORTS",{get:function(){return[de,Zn]}
1,enumerable:!1,configurable:!0}),w.prototype.initTransports_=function(l){var g,B,fe=Zn&&Zn.isAvailable(),De=fe&&!Zn.previouslyFailed();if(l.webSocketOnly&&(fe||se("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),De=!0),De)this.transports_=[Zn];else{var rt=this.transports_=[];try{for(var Pt=_.__values(w.ALL_TRANSPORTS),qt=Pt.next();!qt.done;qt=Pt.next()){var $t=qt.value;$t&&$t.isAvailable()&&rt.push($t)}}catch(Tn){g={error:Tn}}finally{try{qt&&!qt.done&&(B=Pt.return)&&B.call(Pt)}finally{if(g)throw g.error}}}},w.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},w.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},w}(),Qs=function(){function w(l,g,B,fe,De,rt,Pt,qt){this.id=l,this.repoInfo_=g,this.applicationId_=B,this.onMessage_=fe,this.onReady_=De,this.onDisconnect_=rt,this.onKill_=Pt,this.lastSessionId=qt,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=Z("c:"+this.id+":"),this.transportManager_=new qr(g),this.log_("Connection created"),this.start_()}return w.prototype.start_=function(){var l=this,g=this.transportManager_.initialTransport();this.conn_=new g(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=g.responsesRequiredToBeHealthy||0;var B=this.connReceiver_(this.conn_),fe=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){l.conn_&&l.conn_.open(B,fe)},Math.floor(0));var De=g.healthyTimeout||0;De>0&&(this.healthyTimeout_=ie(function(){l.healthyTimeout_=null,l.isHealthy_||(l.conn_&&l.conn_.bytesReceived>102400?(l.log_("Connection exceeded healthy timeout but has received "+l.conn_.bytesReceived+" bytes.  Marking connection healthy."),l.isHealthy_=!0,l.conn_.markConnectionHealthy()):l.conn_&&l.conn_.bytesSent>10240?l.log_("Connection exceeded healthy timeout but has sent "+l.conn_.bytesSent+" bytes.  Leaving connection alive."):(l.log_("Closing unhealthy connection after timeout."),l.close()))},Math.floor(De)))},w.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},w.prototype.disconnReceiver_=function(l){var g=this;return function(B){l===g.conn_?g.onConnectionLost_(B):l===g.secondaryConn_?(g.log_("Secondary connection lost."),g.onSecondaryConnectionLost_()):g.log_("closing an old connection")}},w.prototype.connReceiver_=function(l){var g=this;return function(B){2!==g.state_&&(l===g.rx_?g.onPrimaryMessageReceived_(B):l===g.secondaryConn_?g.onSecondaryMessageReceived_(B):g.log_("message on old connection"))}},w.prototype.sendRequest=function(l){this.sendData_({t:"d",d:l})},w.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},w.prototype.onSecondaryControl_=function(l){if("t"in l){var g=l.t;"a"===g?this.upgradeIfSecondaryHealthy_():"r"===g?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):"o"===g&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},w.prototype.onSecondaryMessageReceived_=function(l){var g=ve("t",l),B=ve("d",l);if("c"===g)this.onSecondaryControl_(B);else{if("d"!==g)throw new Error("Unknown protocol layer: "+g);this.pendingDataMessages.push(B)}},w.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},w.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t
1:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},w.prototype.onPrimaryMessageReceived_=function(l){var g=ve("t",l),B=ve("d",l);"c"===g?this.onControl_(B):"d"===g&&this.onDataMessage_(B)},w.prototype.onDataMessage_=function(l){this.onPrimaryResponse_(),this.onMessage_(l)},w.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},w.prototype.onControl_=function(l){var g=ve("t",l);if("d"in l){var B=l.d;if("h"===g)this.onHandshake_(B);else if("n"===g){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var fe=0;fe<this.pendingDataMessages.length;++fe)this.onDataMessage_(this.pendingDataMessages[fe]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===g?this.onConnectionShutdown_(B):"r"===g?this.onReset_(B):"e"===g?G("Server Error: "+B):"o"===g?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):G("Unknown control packet command: "+g)}},w.prototype.onHandshake_=function(l){var g=l.ts,B=l.v,fe=l.h;this.sessionId=l.s,this.repoInfo_.updateHost(fe),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,g),"5"!==B&&se("Protocol version mismatch detected"),this.tryStartUpgrade_())},w.prototype.tryStartUpgrade_=function(){var l=this.transportManager_.upgradeTransport();l&&this.startUpgrade_(l)},w.prototype.startUpgrade_=function(l){var g=this;this.secondaryConn_=new l(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.sessionId),this.secondaryResponsesRequired_=l.responsesRequiredToBeHealthy||0;var B=this.connReceiver_(this.secondaryConn_),fe=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(B,fe),ie(function(){g.secondaryConn_&&(g.log_("Timed out trying to upgrade."),g.secondaryConn_.close())},Math.floor(6e4))},w.prototype.onReset_=function(l){this.log_("Reset packet received.  New host: "+l),this.repoInfo_.updateHost(l),1===this.state_?this.close():(this.closeConnections_(),this.start_())},w.prototype.onConnectionEstablished_=function(l,g){var B=this;this.log_("Realtime connection established."),this.conn_=l,this.state_=1,this.onReady_&&(this.onReady_(g,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):ie(function(){B.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))},w.prototype.sendPingOnPrimaryIfNecessary_=function(){!this.isHealthy_&&1===this.state_&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},w.prototype.onSecondaryConnectionLost_=function(){var l=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===l||this.rx_===l)&&this.close()},w.prototype.onConnectionLost_=function(l){this.conn_=null,l||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(L.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},w.prototype.onConnectionShutdown_=function(l){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(l),this.onKill_=null),this.onDisconnect_=null,this.close()},w.prototype.sendData_=function(l){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(l)},w.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},w.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},w}(),Gs=function(){function w(){}return w.prototype.put=function(l,g,B,fe){},w.prototype.merge=function(l,g,B,fe){},w.prototype.refreshAuthToken=function(l){},w.prototype.onDisconnectPut=function(l,g,B){},w.prototype.onDisconnectMerge=function(l,g,B){},w.prototype.onDisconnectCancel=function(l,g){},w.prototype.reportStats=function(l){},w}(),Bs=1e3,Di=function(w){function l(g,B,fe,De,rt,Pt,qt){var $t=w.call(this)||this;if($t.repoInfo_=g,$t.applicationId_=B,$t.onDataUpdate_=fe,$t.onConnectStatus_=De,$t.onServerInfoUpdate_=rt,$t.authTokenProvider_=Pt,$t.authOverride_=qt,$t.id=l.nextPersistentConnectionId_++,$t.log_=Z("p:"+$t.id+":"),$t.interruptReasons_={},$t.listens=new Map,$t.outstandingPuts_=[],$t.outstandingPutCount_=0,$t.onDisconnectRequestQueue_=[],$t.connected_=!1,$t.reconnectDelay_=Bs,$t.maxReconnectDelay_=3e5,$t.securityDebugCallback_=null,$t.lastSessionId=null,$t.establishConnectionTimer_=null,$t.visible_=!1,$t.requestCBHash_={},$t.requestNumber_=0,$t.realtime_=null,$t.authToken_=null,$t.forceTokenRefresh_=!1,$t.invalidAuthTokenCount_=0,$t.firstConnection_=!0,$t.last
1ConnectionAttemptTime_=null,$t.lastConnectionEstablishedTime_=null,qt&&!x.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return $t.scheduleConnect_(0),Me.getInstance().on("visible",$t.onVisible_,$t),-1===g.host.indexOf("fblocal")&&dt.getInstance().on("online",$t.onOnline_,$t),$t}return _.__extends(l,w),l.prototype.sendRequest=function(g,B,fe){var De=++this.requestNumber_,rt={r:De,a:g,b:B};this.log_(x.stringify(rt)),x.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(rt),fe&&(this.requestCBHash_[De]=fe)},l.prototype.listen=function(g,B,fe,De){var rt=g.queryIdentifier(),Pt=g.path.toString();this.log_("Listen called for "+Pt+" "+rt),this.listens.has(Pt)||this.listens.set(Pt,new Map),x.assert(g.getQueryParams().isDefault()||!g.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),x.assert(!this.listens.get(Pt).has(rt),"listen() called twice for same path/queryId.");var qt={onComplete:De,hashFn:B,query:g,tag:fe};this.listens.get(Pt).set(rt,qt),this.connected_&&this.sendListen_(qt)},l.prototype.sendListen_=function(g){var B=this,fe=g.query,De=fe.path.toString(),rt=fe.queryIdentifier();this.log_("Listen on "+De+" for "+rt);var Pt={p:De};g.tag&&(Pt.q=fe.queryObject(),Pt.t=g.tag),Pt.h=g.hashFn(),this.sendRequest("q",Pt,function($t){var Tn=$t.d,zn=$t.s;l.warnOnListenWarnings_(Tn,fe),(B.listens.get(De)&&B.listens.get(De).get(rt))===g&&(B.log_("listen response",$t),"ok"!==zn&&B.removeListen_(De,rt),g.onComplete&&g.onComplete(zn,Tn))})},l.warnOnListenWarnings_=function(g,B){if(g&&"object"==typeof g&&x.contains(g,"w")){var fe=x.safeGet(g,"w");if(Array.isArray(fe)&&~fe.indexOf("no_index")){var De='".indexOn": "'+B.getQueryParams().getIndex().toString()+'"',rt=B.path.toString();se("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+De+" at "+rt+" to your security rules for better performance.")}}},l.prototype.refreshAuthToken=function(g){this.authToken_=g,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(g)},l.prototype.reduceReconnectDelayIfAdminCredential_=function(g){(g&&40===g.length||x.isAdmin(g))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},l.prototype.tryAuth=function(){var g=this;if(this.connected_&&this.authToken_){var B=this.authToken_,fe=x.isValidFormat(B)?"auth":"gauth",De={cred:B};null===this.authOverride_?De.noauth=!0:"object"==typeof this.authOverride_&&(De.authvar=this.authOverride_),this.sendRequest(fe,De,function(rt){var Pt=rt.s,qt=rt.d||"error";g.authToken_===B&&("ok"===Pt?g.invalidAuthTokenCount_=0:g.onAuthRevoked_(Pt,qt))})}},l.prototype.unlisten=function(g,B){var fe=g.path.toString(),De=g.queryIdentifier();this.log_("Unlisten called for "+fe+" "+De),x.assert(g.getQueryParams().isDefault()||!g.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(fe,De)&&this.connected_&&this.sendUnlisten_(fe,De,g.queryObject(),B)},l.prototype.sendUnlisten_=function(g,B,fe,De){this.log_("Unlisten on "+g+" for "+B);var rt={p:g};De&&(rt.q=fe,rt.t=De),this.sendRequest("n",rt)},l.prototype.onDisconnectPut=function(g,B,fe){this.connected_?this.sendOnDisconnect_("o",g,B,fe):this.onDisconnectRequestQueue_.push({pathString:g,action:"o",data:B,onComplete:fe})},l.prototype.onDisconnectMerge=function(g,B,fe){this.connected_?this.sendOnDisconnect_("om",g,B,fe):this.onDisconnectRequestQueue_.push({pathString:g,action:"om",data:B,onComplete:fe})},l.prototype.onDisconnectCancel=function(g,B){this.connected_?this.sendOnDisconnect_("oc",g,null,B):this.onDisconnectRequestQueue_.push({pathString:g,action:"oc",data:null,onComplete:B})},l.prototype.sendOnDisconnect_=function(g,B,fe,De){var rt={p:B,d:fe};this.log_("onDisconnect "+g,rt),this.sendRequest(g,rt,function(Pt){De&&setTimeout(function(){De(Pt.s,Pt.d)},Math.floor(0))})},l.prototype.put=function(g,B,fe,De){this.putInternal("p",g,B,fe,De)},l.prototype.merge=function(g,B,fe,De){this.putInternal("m",g,B,fe,De)},l.prototype.putInternal=function(g,B,fe,De,rt){var Pt={p:B,d:fe};void 0!==rt&&(Pt.h=rt),this.outstandingPuts_.push({action:g,request:Pt,onComplete:De}),this.outstandingPutCount_++,this.connected_?this.sendPut_(this.outstandingPuts_.length-1):this.log_("Buffering put: "+B)},l.prototype.sendPut_=function(g){var B=this,fe=this.outstandingPuts_[g].action,De=this.outstandingPuts_[g].request,rt=this.outstandingPuts_[g].onComplete;this.outstandingPuts_[g].queued=this.connected_,this.sendRequest(fe,De,function(Pt){B.log_(fe+" response",Pt),delete B.outstandingPuts_[g],B.outstandingPutCount_--,0===B.outstandingPutCount_&&(B.outstandingPuts_=[]),rt&&rt(Pt.s,Pt.d)})},l.prototype.reportStats=function(g){var B=this;if(this.connected_){var fe={c:g};this.log_("reportStats",fe),this.sendRequest("s",fe,function(De){"ok"!==De.s&&B.log_("reportStats","Error sending stats: "+De.d)})}},l.prototype.onDataMessage_=function(g){if("r"in g){this.log_("from server: "+x.stringify(g));var B=g.r,fe=this.requestCBHash_[B];fe&&(delete this.requestCBHash_[B],fe(g.b))}else{if("error"in g)throw"A server-side error has occurred: "+g.error;"a"in g&&this.onDataPush_(g.a,g.b)}},l.prototype.onDataPush_=function(g,B){this.log_("handleServerMessage",g,B),"d"===g?this.onDataUpdate_(B.p,B.d,!1,B.t):"m"===g?this.onDataUpdate_(B.p,B.d,!0,B.t):"c"===g?this.onListenRevoked_(B.p,B.q):"ac"===g?this.onAuthRevoked_(B.s,B.d):"sd"===g?this.onSecurityDebugPacket_(B):G("Unrecognized action received from server: "+x.stringify(g)+"\nAre you using the latest client?")},l.prototype.onReady_=function(g,B){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(g),this.lastSessionId=B,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},l.prototype.scheduleConnect_=function(g){var B=this;x.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){B.establishConnectionTimer_=null,B.establishConnection_()},Math.floor(g))},l.prototype.onVisible_=function(g){g&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=Bs,this.realtime_||this.scheduleConnect_(0)),this.visible_=g},l.prototype.onOnline_=function(g){g?(this.log_("Browser went online."),this.reconnectDelay_=Bs,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},l.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&((new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=Bs),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());var B=(new Date).getTime()-this.lastConnectionAttemptTime_,fe=Math.max(0,this.reconnectDelay_-B);
1fe=Math.random()*fe,this.log_("Trying to reconnect in "+fe+"ms"),this.scheduleConnect_(fe),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},l.prototype.establishConnection_=function(){var g=this;if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var B=this.onDataMessage_.bind(this),fe=this.onReady_.bind(this),De=this.onRealtimeDisconnect_.bind(this),rt=this.id+":"+l.nextConnectionId_++,Pt=this,qt=this.lastSessionId,$t=!1,Tn=null,zn=function(){Tn?Tn.close():($t=!0,De())};this.realtime_={close:zn,sendRequest:function(Pr){x.assert(Tn,"sendRequest call when we're not connected not allowed."),Tn.sendRequest(Pr)}};var mr=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(mr).then(function(Pr){$t?T("getToken() completed but was canceled"):(T("getToken() completed. Creating connection."),Pt.authToken_=Pr&&Pr.accessToken,Tn=new Qs(rt,Pt.repoInfo_,Pt.applicationId_,B,fe,De,function(Ie){se(Ie+" ("+Pt.repoInfo_.toString()+")"),Pt.interrupt("server_kill")},qt))}).then(null,function(Pr){Pt.log_("Failed to get token: "+Pr),$t||(g.repoInfo_.nodeAdmin&&se(Pr),zn())})}},l.prototype.interrupt=function(g){T("Interrupting connection for reason: "+g),this.interruptReasons_[g]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},l.prototype.resume=function(g){T("Resuming connection for reason: "+g),delete this.interruptReasons_[g],x.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=Bs,this.realtime_||this.scheduleConnect_(0))},l.prototype.handleTimestamp_=function(g){var B=g-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:B})},l.prototype.cancelSentTransactions_=function(){for(var g=0;g<this.outstandingPuts_.length;g++){var B=this.outstandingPuts_[g];B&&"h"in B.request&&B.queued&&(B.onComplete&&B.onComplete("disconnect"),delete this.outstandingPuts_[g],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},l.prototype.onListenRevoked_=function(g,B){var fe;fe=B?B.map(function(rt){return We(rt)}).join("$"):"default";var De=this.removeListen_(g,fe);De&&De.onComplete&&De.onComplete("permission_denied")},l.prototype.removeListen_=function(g,B){var De,fe=new he(g).toString();if(this.listens.has(fe)){var rt=this.listens.get(fe);De=rt.get(B),rt.delete(B),0===rt.size&&this.listens.delete(fe)}else De=void 0;return De},l.prototype.onAuthRevoked_=function(g,B){T("Auth token revoked: "+g+"/"+B),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),("invalid_token"===g||"permission_denied"===g)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},l.prototype.onSecurityDebugPacket_=function(g){this.securityDebugCallback_?this.securityDebugCallback_(g):"msg"in g&&console.log("FIREBASE: "+g.msg.replace("\n","\nFIREBASE: "))},l.prototype.restoreState_=function(){var g,B,fe,De;this.tryAuth();try{for(var rt=_.__values(this.listens.values()),Pt=rt.next();!Pt.done;Pt=rt.next()){var qt=Pt.value;try{for(var $t=(fe=void 0,_.__values(qt.values())),Tn=$t.next();!Tn.done;Tn=$t.next())this.sendListen_(Tn.value)}catch(Pr){fe={error:Pr}}finally{try{Tn&&!Tn.done&&(De=$t.return)&&De.call($t)}finally{if(fe)throw fe.error}}}}catch(Pr){g={error:Pr}}finally{try{Pt&&!Pt.done&&(B=rt.return)&&B.call(rt)}finally{if(g)throw g.error}}for(var tr=0;tr<this.outstandingPuts_.length;tr++)this.outstandingPuts_[tr]&&this.sendPut_(tr);for(;this.onDisconnectRequestQueue_.length;){var mr=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(mr.action,mr.pathString,mr.data,mr.onComplete)}},l.prototype.sendConnectStats_=function(){var g={},B="js";x.isNodeSdk()&&(B=this.repoInfo_.nodeAdmin?"admin_node":"node"),g["sdk."+B+"."+Xt.replace(/\./g,"-")]=1,x.isMobileCordova()?g["framework.cordova"]=1:x.isReactNative()&&(g["framework.reactnative"]=1),this.reportStats(g)},l.prototype.shouldReconnect_=function(){var g=dt.getInstance().currentlyOnline();return x.isEmpty(this.interruptReasons_)&&g},l.nextPersistentConnectionId_=0,l.nextConnectionId_=0,l}(Gs),xo=function(w){function l(g,B,fe){var De=w.call(this)||this;return De.repoInfo_=g,De.onDataUpdate_=B,De.authTokenProvider_=fe,De.log_=Z("p:rest:"),De.listens_={},De}return _.__extends(l,w),l.prototype.reportStats=function(g){throw new Error("Method not implemented.")},l.getListenId_=function(g,B){return void 0!==B?"tag$"+B:(x.assert(g.getQueryParams().isDefault(),"should have a tag if it's not a default query."),g.path.toString())},l.prototype.listen=function(g,B,fe,De){var rt=this,Pt=g.path.toString();this.log_("Listen called for "+Pt+" "+g.queryIdentifier());var qt=l.getListenId_(g,fe),$t={};this.listens_[qt]=$t;var Tn=g.getQueryParams().toRestQueryStringParameters();this.restRequest_(Pt+".json",Tn,function(zn,tr){var mr=tr;404===zn&&(mr=null,zn=null),null===zn&&rt.onDataUpdate_(Pt,mr,!1,fe),x.safeGet(rt.listens_,qt)===$t&&De(zn?401===zn?"permission_denied":"rest_error:"+zn:"ok",
1null)})},l.prototype.unlisten=function(g,B){var fe=l.getListenId_(g,B);delete this.listens_[fe]},l.prototype.refreshAuthToken=function(g){},l.prototype.restRequest_=function(g,B,fe){var De=this;void 0===B&&(B={}),B.format="export",this.authTokenProvider_.getToken(!1).then(function(rt){var Pt=rt&&rt.accessToken;Pt&&(B.auth=Pt);var qt=(De.repoInfo_.secure?"https://":"http://")+De.repoInfo_.host+g+"?ns="+De.repoInfo_.namespace+x.querystring(B);De.log_("Sending REST request for "+qt);var $t=new XMLHttpRequest;$t.onreadystatechange=function(){if(fe&&4===$t.readyState){De.log_("REST Response for "+qt+" received. status:",$t.status,"response:",$t.responseText);var Tn=null;if($t.status>=200&&$t.status<300){try{Tn=x.jsonEval($t.responseText)}catch(zn){se("Failed to parse JSON response for "+qt+": "+$t.responseText)}fe(null,Tn)}else 401!==$t.status&&404!==$t.status&&se("Got unsuccessful REST response for "+qt+" Status: "+$t.status),fe($t.status);fe=null}},$t.open("GET",qt,!0),$t.send()})},l}(Gs),Ir="repo_interrupt",ki=function(){function w(l,g,B,fe){var De=this;if(this.repoInfo_=l,this.app=B,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new le,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new Ji,this.persistentConnection_=null,this.stats_=qn.getCollection(l),g||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new xo(this.repoInfo_,this.onDataUpdate_.bind(this),fe),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var rt=B.options.databaseAuthVariableOverride;if(null!=rt){if("object"!=typeof rt)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{x.stringify(rt)}catch(Pt){throw new Error("Invalid authOverride provided: "+Pt)}}this.persistentConnection_=new Di(this.repoInfo_,B.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),fe,rt),this.server_=this.persistentConnection_}fe.addTokenChangeListener(function(Pt){De.server_.refreshAuthToken(Pt)}),this.statsReporter_=qn.getOrCreateReporter(l,function(){return new Wr(De.stats_,De.server_)}),this.transactionsInit_(),this.infoData_=new _n,this.infoSyncTree_=new gn({startListening:function(Pt,qt,$t,Tn){var zn=[],tr=De.infoData_.getNode(Pt.path);return tr.isEmpty()||(zn=De.infoSyncTree_.applyServerOverwrite(Pt.path,tr),setTimeout(function(){Tn("ok")},0)),zn},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new gn({startListening:function(Pt,qt,$t,Tn){return De.server_.listen(Pt,$t,qt,function(zn,tr){var mr=Tn(zn,tr);De.eventQueue_.raiseEventsForChangedPath(Pt.path,mr)}),[]},stopListening:function(Pt,qt){De.server_.unlisten(Pt,qt)}})}return w.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},w.prototype.name=function(){return this.repoInfo_.namespace},w.prototype.serverTime=function(){var g=this.infoData_.getNode(new he(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+g},w.prototype.generateServerValues=function(){return function(w){return(w=w||{}).timestamp=w.timestamp||(new Date).getTime(),w}({timestamp:this.serverTime()})},w.prototype.onDataUpdate_=function(l,g,B,fe){this.dataUpdateCount++;var De=new he(l);g=this.interceptServerDataCallback_?this.interceptServerDataCallback_(l,g):g;var rt=[];if(fe)if(B){var Pt=x.map(g,function(tr){return Lr(tr)});rt=this.serverSyncTree_.applyTaggedQueryMerge(De,Pt,fe)}else{var qt=Lr(g);rt=this.serverSyncTree_.applyTaggedQueryOverwrite(De,qt,fe)}else if(B){var $t=x.map(g,function(tr){return Lr(tr)});rt=this.serverSyncTree_.applyServerMerge(De,$t)}else{var Tn=Lr(g);rt=this.serverSyncTree_.applyServerOverwrite(De,Tn)}var zn=De;rt.length>0&&(zn=this.rerunTransactions_(De)),this.eventQueue_.raiseEventsForChangedPath(zn,rt)},w.prototype.interceptServerData_=function(l){this.interceptServerDataCallback_=l},w.prototype.onConnectStatus_=function(l){this.updateInfo_("connected",l),!1===l&&this.runOnDisconnectEvents_()},w.prototype.onServerInfoUpdate_=function(l){var g=this;He(l,function(B,fe){g.updateInfo_(B,fe)})},w.prototype.updateInfo_=function(l,g){var B=new he("/.info/"+l),fe=Lr(g);this.infoData_.updateSnapshot(B,fe);var De=this.infoSyncTree_.applyServerOverwrite(B,fe);this.eventQueue_.raiseEventsForChangedPath(B,De)},w.prototype.getNextWriteId_=function(){return this.nextWriteId_++},w.prototype.setWithPriority=function(l,g,B,fe){var De=this;this.log_("set",{path:l.toString(),value:g,priority:B});var rt=this.generateServerValues(),Pt=Lr(g,B),qt=this.serverSyncTree_.calcCompleteEventCache(l),$t=Yr(Pt,qt,rt),Tn=this.getNextWriteId_(),zn=this.serverSyncTree_.applyUserOverwrite(l,$t,Tn,!0);this.eventQueue_.queueEvents(zn),this.server_.put(l.toString(),Pt.val(!0),function(mr,Pr){var Ie="ok"===mr;Ie||se("set at "+l+" failed: "+mr);var Te=De.serverSyncTree_.ackUserWrite(Tn,!Ie);De.eventQueue_.raiseEventsForChangedPath(l,Te),De.callOnCompleteCallback(fe,mr,Pr)});var tr=this.abortTransactions_(l);this.rerunTransactions_(tr),this.eventQueue_.raiseEventsForChangedPath(tr,[])},w.prototype.update=function(l,g,B){var fe=this;this.log_("update",{path:l.toString(),value:g});var De=!0,rt=this.generateServerValues(),Pt={};if(He(g,function(Tn,zn){De=!1,Pt[Tn]=ui(l.child(Tn),Lr(zn),fe.serverSyncTree_,rt)}),De)T("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(B,"ok");else{var qt=this.getNextWriteId_(),$t=this.serverSyncTree_.applyUserMerge(l,Pt,qt);this.eventQueue_.queueEvents($t),this.server_.merge(l.toString(),g,function(Tn,zn){var tr="ok"===Tn;tr||se("update at "+l+" failed: "+Tn);var mr=fe.serverSyncTree_.ackUserWrite(qt,!tr),Pr=mr.length>0?fe.rerunTransactions_(l):l;fe.eventQueue_.raiseEventsForChangedPath(Pr,mr),fe.callOnCompleteCallback(B,Tn,zn)}),He(g,function(Tn){var zn=fe.abortTransactions_(l.child(Tn));fe.rerunTransactions_(zn)}),this.eventQueue_.raiseEventsForChangedPath(l,[])}},w.prototype.runOnDisconnectEvents_=function(){var l=this;this.log_("onDisconnectEvents");var g=this.generateServerValues(),B=new Ji;this.onDisconnect_.forEachTree(he.Empty,function(De,rt){var Pt=ui(De,rt,l.serverSyncTree_,g);B.remember(De,Pt)});var fe=[];B.forEachTree(he.Empty,function(De,rt){fe=fe.concat(l.serverSyncTree_.applyServerOverwrite(De,rt));var Pt=l.abortTransactions_(De);l.rerunTransactions_(Pt)}),this.onDisconnect_=new Ji,this.eventQueue_.raiseEventsForChangedPath(he.Empty,fe)},w.prototype.onDisconnectCancel=function(l,g){var B=this;this.server_.onDisconnectCancel(l.toString(),function(fe,De){"ok"===fe&&B.onDisconnect_.forget(l),B.callOnCompleteCallback(g,fe,De)})},w.prototype.onDisconnectSet=function(l,g,B){var fe=this,De=Lr(g);this.server_.onDisconnectPut(l.toString(),De.val(!0),function(rt,Pt){"ok"===rt&&fe.onDisconnect_.remember(l,De),fe.callOnCompleteCallback(B,rt,Pt)})},w.prototype.onDisconnectSetWithPriority=function(l,g,B,fe){var De=this,rt=Lr(g,B);this.server_.onDisconnectPut(l.toString(),rt.val(!0),function(Pt,qt){"ok"===Pt&&De.onDisconnect_.remember(l,rt),De.callOnCompleteCallback(fe,Pt,qt)})},w.prototype.onDisconnectUpdate=function(l,g,B){var fe=this;if(x.isEmpty(g))return T("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(B,"ok");this.server_.onDisconnectMerge(l.toString(),g,function(De,rt){"ok"===De&&He(g,function(Pt,qt){var $t=Lr(qt);fe.onDisconnect_.remember(l.child(Pt),$t)}),fe.callOnCompleteCallback(B,De,rt)})},w.prototype.addEventCallbackForQuery=function(l,g){var B;B=".info"===l.path.getFront()?this.infoSyncTree_.addEventRegistration(l,g):this.serverSyncTree_.addEventRegistration(l,g),this.eventQueue_.raiseEventsAtPath(l.path,B)},w.prototype.removeEventCallbackForQuery=function(l,g){var B;B=".info"===l.path.getFront()?this.infoSyncTree_.removeEventRegistration(l,g):this.serverSyncTree_.removeEventRegistration(l,g),this.eventQueue_.raiseEventsAtPath(l.path,B)},w.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt(Ir)},w.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume(Ir)},w.prototype.stats=function(l){if(void 0===l&&(l=!1),"undefined"!=typeof console){var g;l?(this.statsListener_||(this.statsListener_=new cr(this.stats_)),g=this.statsListener_.get()):g=this.stats_.get();var B=Object.keys(g).reduce(function(fe,De){return Math.max(De.length,fe)},0);He(g,function(fe,De){for(var rt=fe,Pt=fe.length;Pt<B+2;Pt++)rt+=" ";console.log(rt+De)})}},w.prototype.statsIncrementCounter=function(l){this.stats_.incrementCounter(l),this.statsReporter_.includeStat(l)},w.prototype.log_=function(){for(var l=[],g=0;g<arguments.length;g++)l[g]=arguments[g];var B="";this.persistentConnection_&&(B=this.persistentConnection_.id+":"),T.apply(void 0,_.__spread([B],l))},w.prototype.callOnCompleteCallback=function(l,g,B){l&&K(function(){if("ok"===g)l(null);else{var fe=(g||"error").toUpperCase(),De=fe;B&&(De+=": "+B);var rt=new Error(De);rt.code=fe,l(rt)}})},Object.defineProperty(w.prototype,"database",{get:function(){return this.__database||(this.__database=new Xn(this))}
1,enumerable:!1,configurable:!0}),w}(),Mo=function(){function w(l){this.indexedFilter_=new Zi(l.getIndex()),this.index_=l.getIndex(),this.startPost_=w.getStartPost_(l),this.endPost_=w.getEndPost_(l)}return w.prototype.getStartPost=function(){return this.startPost_},w.prototype.getEndPost=function(){return this.endPost_},w.prototype.matches=function(l){return this.index_.compare(this.getStartPost(),l)<=0&&this.index_.compare(l,this.getEndPost())<=0},w.prototype.updateChild=function(l,g,B,fe,De,rt){return this.matches(new Tt(g,B))||(B=dr.EMPTY_NODE),this.indexedFilter_.updateChild(l,g,B,fe,De,rt)},w.prototype.updateFullNode=function(l,g,B){g.isLeafNode()&&(g=dr.EMPTY_NODE);var fe=g.withIndex(this.index_);fe=fe.updatePriority(dr.EMPTY_NODE);var De=this;return g.forEachChild(jt,function(rt,Pt){De.matches(new Tt(rt,Pt))||(fe=fe.updateImmediateChild(rt,dr.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(l,fe,B)},w.prototype.updatePriority=function(l,g){return l},w.prototype.filtersNodes=function(){return!0},w.prototype.getIndexedFilter=function(){return this.indexedFilter_},w.prototype.getIndex=function(){return this.index_},w.getStartPost_=function(l){if(l.hasStart()){var g=l.getIndexStartName();return l.getIndex().makePost(l.getIndexStartValue(),g)}return l.getIndex().minPost()},w.getEndPost_=function(l){if(l.hasEnd()){var g=l.getIndexEndName();return l.getIndex().makePost(l.getIndexEndValue(),g)}return l.getIndex().maxPost()},w}(),Zs=function(){function w(l){this.rangedFilter_=new Mo(l),this.index_=l.getIndex(),this.limit_=l.getLimit(),this.reverse_=!l.isViewFromLeft()}return w.prototype.updateChild=function(l,g,B,fe,De,rt){return this.rangedFilter_.matches(new Tt(g,B))||(B=dr.EMPTY_NODE),l.getImmediateChild(g).equals(B)?l:l.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(l,g,B,fe,De,rt):this.fullLimitUpdateChild_(l,g,B,De,rt)},w.prototype.updateFullNode=function(l,g,B){var fe;if(g.isLeafNode()||g.isEmpty())fe=dr.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<g.numChildren()&&g.isIndexed(this.index_)){fe=dr.EMPTY_NODE.withIndex(this.index_);var De=void 0;De=this.reverse_?g.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):g.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var rt=0;De.hasNext()&&rt<this.limit_;){var Pt=De.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),Pt)<=0:this.index_.compare(Pt,this.rangedFilter_.getEndPost())<=0))break;fe=fe.updateImmediateChild(Pt.name,Pt.node),rt++}}else{fe=(fe=g.withIndex(this.index_)).updatePriority(dr.EMPTY_NODE);var $t=void 0,Tn=void 0,zn=void 0;if(De=void 0,this.reverse_){De=fe.getReverseIterator(this.index_),$t=this.rangedFilter_.getEndPost(),Tn=this.rangedFilter_.getStartPost();var tr=this.index_.getCompare();zn=function(Te,_e){return tr(_e,Te)}}else De=fe.getIterator(this.index_),$t=this.rangedFilter_.getStartPost(),Tn=this.rangedFilter_.getEndPost(),zn=this.index_.getCompare();rt=0;for(var mr=!1;De.hasNext();)Pt=De.getNext(),!mr&&zn($t,Pt)<=0&&(mr=!0),mr&&rt<this.limit_&&zn(Pt,Tn)<=0?rt++:fe=fe.updateImmediateChild(Pt.name,dr.EMPTY_NODE)}return this.rangedFilter_.getIndexedFilter().updateFullNode(l,fe,B)},w.prototype.updatePriority=function(l,g){return l},w.prototype.filtersNodes=function(){return!0},w.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},w.prototype.getIndex=function(){return this.index_},w.prototype.fullLimitUpdateChild_=function(l,g,B,fe,De){var rt;if(this.reverse_){var Pt=this.index_.getCompare();rt=function(qe,pt){return Pt(pt,qe)}}else rt=this.index_.getCompare();var qt=l;x.assert(qt.numChildren()===this.limit_,"");var $t=new Tt(g,B),Tn=this.reverse_?qt.getFirstChild(this.index_):qt.getLastChild(this.index_),zn=this.rangedFilter_.matches($t);if(qt.hasChild(g)){for(var tr=qt.getImmediateChild(g),mr=fe.getChildAfterChild(this.index_,Tn,this.reverse_);null!=mr&&(mr.name===g||qt.hasChild(mr.name));)mr=fe.getChildAfterChild(this.index_,mr,this.reverse_);var Pr=null==mr?1:rt(mr,$t);if(zn&&!B.isEmpty()&&Pr>
1=0)return null!=De&&De.trackChildChange(ai.childChangedChange(g,B,tr)),qt.updateImmediateChild(g,B);null!=De&&De.trackChildChange(ai.childRemovedChange(g,tr));var Te=qt.updateImmediateChild(g,dr.EMPTY_NODE);return null!=mr&&this.rangedFilter_.matches(mr)?(null!=De&&De.trackChildChange(ai.childAddedChange(mr.name,mr.node)),Te.updateImmediateChild(mr.name,mr.node)):Te}return B.isEmpty()?l:zn&&rt(Tn,$t)>=0?(null!=De&&(De.trackChildChange(ai.childRemovedChange(Tn.name,Tn.node)),De.trackChildChange(ai.childAddedChange(g,B))),qt.updateImmediateChild(g,B).updateImmediateChild(Tn.name,dr.EMPTY_NODE)):l},w}(),Us=function(){function w(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=jt}return w.prototype.hasStart=function(){return this.startSet_},w.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===w.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},w.prototype.getIndexStartValue=function(){return x.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},w.prototype.getIndexStartName=function(){return x.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:H},w.prototype.hasEnd=function(){return this.endSet_},w.prototype.getIndexEndValue=function(){return x.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},w.prototype.getIndexEndName=function(){return x.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:ee},w.prototype.hasLimit=function(){return this.limitSet_},w.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},w.prototype.getLimit=function(){return x.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},w.prototype.getIndex=function(){return this.index_},w.prototype.copy_=function(){var l=new w;return l.limitSet_=this.limitSet_,l.limit_=this.limit_,l.startSet_=this.startSet_,l.indexStartValue_=this.indexStartValue_,l.startNameSet_=this.startNameSet_,l.indexStartName_=this.indexStartName_,l.endSet_=this.endSet_,l.indexEndValue_=this.indexEndValue_,l.endNameSet_=this.endNameSet_,l.indexEndName_=this.indexEndName_,l.index_=this.index_,l.viewFrom_=this.viewFrom_,l},w.prototype.limit=function(l){var g=this.copy_();return g.limitSet_=!0,g.limit_=l,g.viewFrom_="",g},w.prototype.limitToFirst=function(l){var g=this.copy_();return g.limitSet_=!0,g.limit_=l,g.viewFrom_=w.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,g},w.prototype.limitToLast=function(l){var g=this.copy_();return g.limitSet_=!0,g.limit_=l,g.viewFrom_=w.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,g},w.prototype.startAt=function(l,g){var B=this.copy_();return B.startSet_=!0,void 0===l&&(l=null),B.indexStartValue_=l,null!=g?(B.startNameSet_=!0,B.indexStartName_=g):(B.startNameSet_=!1,B.indexStartName_=""),B},w.prototype.endAt=function(l,g){var B=this.copy_();return B.endSet_=!0,void 0===l&&(l=null),B.indexEndValue_=l,void 0!==g?(B.endNameSet_=!0,B.indexEndName_=g):(B.endNameSet_=!1,B.indexEndName_=""),B},w.prototype.orderBy=function(l){var g=this.copy_();return g.index_=l,g},w.prototype.getQueryObject=function(){var l=w.WIRE_PROTOCOL_CONSTANTS_,g={};if(this.startSet_&&(g[l.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(g[l.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(g[l.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(g[l.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){g[l.LIMIT]=this.limit_;var B=this.viewFrom_;""===B&&(B=this.isViewFromLeft()?l.VIEW_FROM_LEFT:l.VIEW_FROM_RIGHT),g[l.VIEW_FROM]=B}return this.index_!==jt&&(g[l.INDEX]=this.index_.toString()),g},w.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},w.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===jt},w.prototype.getNodeFilter=function(){return this.loadsAllData()?new Zi(this.getIndex()):this.hasLimit()?new Zs(this):new Mo(this)},w.prototype.toRestQueryStringParameters=function(){var B,l=w.REST_QUERY_CONSTANTS_,g={};return this.isDefault()||(this.index_===jt?B=l.PRIORITY_INDEX:this.index_===kt?B=l.VALUE_INDEX:this.index_===we?B=l.KEY_INDEX:(x.assert(this.index_ instanceof an,"Unrecognized index type!"),B=this.index_.toString()),g[l.ORDER_BY]=x.stringify(B),this.startSet_&&(g[l.START_AT]=x.stringify(this.indexStartValue_),this.startNameSet_&&(g[l.START_AT]+=","+x.stringify(this.indexStartName_))),this.endSet_&&(g[l.END_AT]=x.stringify(this.indexEndValue_),this.endNameSet_&&(g[l.END_AT]+=","+x.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?g[l.LIMIT_TO_FIRST]=this.limit_:g[l.LIMIT_TO_LAST]=this.limit_)),g}
1,w.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},w.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},w.DEFAULT=new w,w}(),Ns=function(w){function l(g,B){if(!(g instanceof ki))throw new Error("new Reference() no longer supported - use app.database().");return w.call(this,g,B,Us.DEFAULT,!1)||this}return _.__extends(l,w),l.prototype.getKey=function(){return x.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},l.prototype.child=function(g){return x.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof g?g=String(g):g instanceof he||(null===this.path.getFront()?Cn("Reference.child",1,g,!1):tn("Reference.child",1,g,!1)),new l(this.repo,this.path.child(g))},l.prototype.getParent=function(){x.validateArgCount("Reference.parent",0,0,arguments.length);var g=this.path.parent();return null===g?null:new l(this.repo,g)},l.prototype.getRoot=function(){x.validateArgCount("Reference.root",0,0,arguments.length);for(var g=this;null!==g.getParent();)g=g.getParent();return g},l.prototype.databaseProp=function(){return this.repo.database},l.prototype.set=function(g,B){x.validateArgCount("Reference.set",1,2,arguments.length),Sn("Reference.set",this.path),mt("Reference.set",1,g,this.path,!1),x.validateCallback("Reference.set",2,B,!0);var fe=new x.Deferred;return this.repo.setWithPriority(this.path,g,null,fe.wrapCallback(B)),fe.promise},l.prototype.update=function(g,B){if(x.validateArgCount("Reference.update",1,2,arguments.length),Sn("Reference.update",this.path),Array.isArray(g)){for(var fe={},De=0;De<g.length;++De)fe[""+De]=g[De];
1g=fe,se("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}bt("Reference.update",1,g,this.path,!1),x.validateCallback("Reference.update",2,B,!0);var rt=new x.Deferred;return this.repo.update(this.path,g,rt.wrapCallback(B)),rt.promise},l.prototype.setWithPriority=function(g,B,fe){if(x.validateArgCount("Reference.setWithPriority",2,3,arguments.length),Sn("Reference.setWithPriority",this.path),mt("Reference.setWithPriority",1,g,this.path,!1),Kt("Reference.setWithPriority",2,B,!1),x.validateCallback("Reference.setWithPriority",3,fe,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var De=new x.Deferred;return this.repo.setWithPriority(this.path,g,B,De.wrapCallback(fe)),De.promise},l.prototype.remove=function(g){return x.validateArgCount("Reference.remove",0,1,arguments.length),Sn("Reference.remove",this.path),x.validateCallback("Reference.remove",1,g,!0),this.set(null,g)},l.prototype.transaction=function(g,B,fe){if(x.validateArgCount("Reference.transaction",1,3,arguments.length),Sn("Reference.transaction",this.path),x.validateCallback("Reference.transaction",1,g,!1),x.validateCallback("Reference.transaction",2,B,!0),rr("Reference.transaction",3,fe,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===fe&&(fe=!0);var De=new x.Deferred;"function"==typeof B&&De.promise.catch(function(){});var rt=function(Pt,qt,$t){Pt?De.reject(Pt):De.resolve(new jn(qt,$t)),"function"==typeof B&&B(Pt,qt,$t)};return this.repo.startTransaction(this.path,g,rt,fe),De.promise},l.prototype.setPriority=function(g,B){x.validateArgCount("Reference.setPriority",1,2,arguments.length),Sn("Reference.setPriority",this.path),Kt("Reference.setPriority",1,g,!1),x.validateCallback("Reference.setPriority",2,B,!0);var fe=new x.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),g,null,fe.wrapCallback(B)),fe.promise},l.prototype.push=function(g,B){x.validateArgCount("Reference.push",0,2,arguments.length),Sn("Reference.push",this.path),mt("Reference.push",1,g,this.path,!0),x.validateCallback("Reference.push",2,B,!0);var qt,fe=this.repo.serverTime(),De=nr(fe),rt=this.child(De),Pt=this.child(De);return qt=null!=g?rt.set(g,B).then(function(){return Pt}):Promise.resolve(Pt),rt.then=qt.then.bind(qt),rt.catch=qt.then.bind(qt,void 0),"function"==typeof B&&qt.catch(function(){}),rt},l.prototype.onDisconnect=function(){return Sn("Reference.onDisconnect",this.path),new Fn(this.repo,this.path)},Object.defineProperty(l.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),l}(er);er.__referenceConstructor=Ns,os.__referenceConstructor=Ns;var lo=function w(){this.children={},this.childCount=0,this.value=null},uo=function(){function w(l,g,B){void 0===l&&(l=""),void 0===g&&(g=null),void 0===B&&(B=new lo),this.name_=l,this.parent_=g,this.node_=B}return w.prototype.subTree=function(l){for(var g=l instanceof he?l:new he(l),B=this,fe=g.getFront();null!==fe;)B=new w(fe,B,x.safeGet(B.node_.children,fe)||new lo),fe=(g=g.popFront()).getFront();return B},w.prototype.getValue=function(){return this.node_.value},w.prototype.setValue=function(l){x.assert(void 0!==l,"Cannot set value to undefined"),this.node_.value=l,this.updateParents_()},w.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},w.prototype.hasChildren=function(){return this.node_.childCount>0},w.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},w.prototype.forEachChild=function(l){var g=this;He(this.node_.children,function(B,fe){l(new w(B,g,fe))})},w.prototype.forEachDescendant=function(l,g,B){g&&!B&&l(this),this.forEachChild(function(fe){fe.forEachDescendant(l,!0,B)}),g&&B&&l(this)},w.prototype.forEachAncestor=function(l,g){for(var B=g?this:this.parent();null!==B;){if(l(B))return!0;B=B.parent()}return!1},w.prototype.forEachImmediateDescendantWithValue=function(l){this.forEachChild(function(g){null!==g.getValue()?l(g):g.forEachImmediateDescendantWithValue(l)}
1)},w.prototype.path=function(){return new he(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},w.prototype.name=function(){return this.name_},w.prototype.parent=function(){return this.parent_},w.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},w.prototype.updateChild_=function(l,g){var B=g.isEmpty(),fe=x.contains(this.node_.children,l);B&&fe?(delete this.node_.children[l],this.node_.childCount--,this.updateParents_()):!B&&!fe&&(this.node_.children[l]=g.node_,this.node_.childCount++,this.updateParents_())},w}(),es=(()=>(function(w){w[w.RUN=0]="RUN",w[w.SENT=1]="SENT",w[w.COMPLETED=2]="COMPLETED",w[w.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",w[w.NEEDS_ABORT=4]="NEEDS_ABORT"}(es||(es={})),es))();ki.MAX_TRANSACTION_RETRIES_=25,ki.prototype.transactionsInit_=function(){this.transactionQueueTree_=new uo},ki.prototype.startTransaction=function(w,l,g,B){this.log_("transaction on "+w);var fe=function(){},De=new Ns(this,w);De.on("value",fe);var Pt={path:w,update:l,onComplete:g,status:null,order:v(),applyLocally:B,retryCount:0,unwatcher:function(){De.off("value",fe)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},qt=this.getLatestState_(w);Pt.currentInputSnapshot=qt;var $t=Pt.update(qt.val());if(void 0===$t){if(Pt.unwatcher(),Pt.currentOutputSnapshotRaw=null,Pt.currentOutputSnapshotResolved=null,Pt.onComplete){var Tn=new Dn(Pt.currentInputSnapshot,new Ns(this,Pt.path),jt);Pt.onComplete(null,!1,Tn)}}else{Nt("transaction failed: Data returned ",$t,Pt.path),Pt.status=es.RUN;var zn=this.transactionQueueTree_.subTree(w),tr=zn.getValue()||[];tr.push(Pt),zn.setValue(tr);var mr=void 0;"object"==typeof $t&&null!==$t&&x.contains($t,".priority")?(mr=x.safeGet($t,".priority"),x.assert(nt(mr),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):mr=(this.serverSyncTree_.calcCompleteEventCache(w)||dr.EMPTY_NODE).getPriority().val(),mr=mr;var Ie=this.generateServerValues(),Te=Lr($t,mr),_e=Yr(Te,qt,Ie);Pt.currentOutputSnapshotRaw=Te,Pt.currentOutputSnapshotResolved=_e,Pt.currentWriteId=this.getNextWriteId_();var qe=this.serverSyncTree_.applyUserOverwrite(w,_e,Pt.currentWriteId,Pt.applyLocally);this.eventQueue_.raiseEventsForChangedPath(w,qe),this.sendReadyTransactions_()}},ki.prototype.getLatestState_=function(w,l){return this.serverSyncTree_.calcCompleteEventCache(w,l)||dr.EMPTY_NODE},ki.prototype.sendReadyTransactions_=function(w){var l=this;if(void 0===w&&(w=this.transactionQueueTree_),w||this.pruneCompletedTransactionsBelowNode_(w),null!==w.getValue()){var g=this.buildTransactionQueue_(w);x.assert(g.length>0,"Sending zero length transaction queue"),g.every(function(fe){return fe.status===es.RUN})&&this.sendTransactionQueue_(w.path(),g)}else w.hasChildren()&&w.forEachChild(function(fe){l.sendReadyTransactions_(fe)})},ki.prototype.sendTransactionQueue_=function(w,l){for(var g=this,B=l.map(function(tr){return tr.currentWriteId}),fe=this.getLatestState_(w,B),De=fe,rt=fe.hash(),Pt=0;Pt<l.length;Pt++){var qt=l[Pt];x.assert(qt.status===es.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),qt.status=es.SENT,qt.retryCount++;var $t=he.relativePath(w,qt.path);De=De.updateChild($t,qt.currentOutputSnapshotRaw)}var Tn=De.val(!0),zn=w;this.server_.put(zn.toString(),Tn,function(tr){g.log_("transaction put response",{path:zn.toString(),status:tr});var mr=[];if("ok"===tr){for(var Pr=[],Ie=0;Ie<l.length;Ie++){if(l[Ie].status=es.COMPLETED,mr=mr.concat(g.serverSyncTree_.ackUserWrite(l[Ie].currentWriteId)),l[Ie].onComplete){var Te=l[Ie].currentOutputSnapshotResolved,_e=new Ns(g,l[Ie].path),qe=new Dn(Te,_e,jt);Pr.push(l[Ie].onComplete.bind(null,null,!0,qe))}l[Ie].unwatcher()}for(g.pruneCompletedTransactionsBelowNode_(g.transactionQueueTree_.subTree(w)),g.sendReadyTransactions_(),g.eventQueue_.raiseEventsForChangedPath(w,mr),Ie=0;Ie<Pr.length;Ie++)K(Pr[Ie])}else{if("datastale"===tr)for(Ie=0;Ie<l.length;Ie++)l[Ie].status=l[Ie].status===es.SENT_NEEDS_ABORT?es.NEEDS_ABORT:es.RUN;else for(se("transaction at "+zn.toString()+" failed: "+tr),Ie=0;Ie<l.length;Ie++)l[Ie].status=es.NEEDS_ABORT,l[Ie].abortReason=tr;g.rerunTransactions_(w)}},rt)},ki.prototype.rerunTransactions_=function(w){var l=this.getAncestorTransactionNode_(w),g=l.path(),B=this.buildTransactionQueue_(l);return this.rerunTransactionQueue_(B,g),g},ki.prototype.rerunTransactionQueue_=function(w,l){if(0!==w.length){for(var g=[],B=[],De=w.filter(function(Zt){return Zt.status===es.RUN}).map(function(Zt){return Zt.currentWriteId}),rt=0;rt<w.length;rt++){var Pt=w[rt],qt=he.relativePath(l,Pt.path),$t=!1,Tn=void 0;if(x.assert(null!==qt,"rerunTransactionsUnderNode_: relativePath should not be null."),Pt.status===es.NEEDS_ABORT)$t=!0,Tn=Pt.abortReason,B=B.concat(this.serverSyncTree_.ackUserWrite(Pt.currentWriteId,!0));else if(Pt.status===es.RUN)if(Pt.retryCount>=ki.MAX_TRANSACTION_RETRIES_)$t=!0,Tn="maxretry",B=B.concat(this.serverSyncTree_.ackUserWrite(Pt.currentWriteId,!0));else{var zn=this.getLatestState_(Pt.path,De);Pt.currentInputSnapshot=zn;var tr=w[rt].update(zn.val());if(void 0!==tr){Nt("transaction failed: Data returned ",tr,Pt.path);var mr=Lr(tr);"object"==typeof tr&&null!=tr&&x.contains(tr,".priority")||(mr=mr.updatePriority(zn.getPriority()));var Ie=Pt.currentWriteId,Te=this.generateServerValues(),_e=Yr(mr,zn,Te);Pt.currentOutputSnapshotRaw=mr,Pt.currentOutputSnapshotResolved=_e,Pt.currentWriteId=this.getNextWriteId_(),De.splice(De.indexOf(Ie),1),B=(B=B.concat(this.serverSyncTree_.applyUserOverwrite(Pt.path,_e,Pt.currentWriteId,Pt.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(Ie,!0))}
1else $t=!0,Tn="nodata",B=B.concat(this.serverSyncTree_.ackUserWrite(Pt.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(l,B),B=[],$t&&(w[rt].status=es.COMPLETED,setTimeout(w[rt].unwatcher,Math.floor(0)),w[rt].onComplete))if("nodata"===Tn){var qe=new Ns(this,w[rt].path),Vt=new Dn(w[rt].currentInputSnapshot,qe,jt);g.push(w[rt].onComplete.bind(null,null,!1,Vt))}else g.push(w[rt].onComplete.bind(null,new Error(Tn),!1,null))}for(this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_),rt=0;rt<g.length;rt++)K(g[rt]);this.sendReadyTransactions_()}},ki.prototype.getAncestorTransactionNode_=function(w){var l,g=this.transactionQueueTree_;for(l=w.getFront();null!==l&&null===g.getValue();)g=g.subTree(l),l=(w=w.popFront()).getFront();return g},ki.prototype.buildTransactionQueue_=function(w){var l=[];return this.aggregateTransactionQueuesForNode_(w,l),l.sort(function(g,B){return g.order-B.order}),l},ki.prototype.aggregateTransactionQueuesForNode_=function(w,l){var g=this,B=w.getValue();if(null!==B)for(var fe=0;fe<B.length;fe++)l.push(B[fe]);w.forEachChild(function(De){g.aggregateTransactionQueuesForNode_(De,l)})},ki.prototype.pruneCompletedTransactionsBelowNode_=function(w){var l=this,g=w.getValue();if(g){for(var B=0,fe=0;fe<g.length;fe++)g[fe].status!==es.COMPLETED&&(g[B]=g[fe],B++);g.length=B,w.setValue(g.length>
10?g:null)}w.forEachChild(function(De){l.pruneCompletedTransactionsBelowNode_(De)})},ki.prototype.abortTransactions_=function(w){var l=this,g=this.getAncestorTransactionNode_(w).path(),B=this.transactionQueueTree_.subTree(w);return B.forEachAncestor(function(fe){l.abortTransactionsOnNode_(fe)}),this.abortTransactionsOnNode_(B),B.forEachDescendant(function(fe){l.abortTransactionsOnNode_(fe)}),g},ki.prototype.abortTransactionsOnNode_=function(w){var l=w.getValue();if(null!==l){for(var g=[],B=[],fe=-1,De=0;De<l.length;De++)l[De].status!==es.SENT_NEEDS_ABORT&&(l[De].status===es.SENT?(x.assert(fe===De-1,"All SENT items should be at beginning of queue."),fe=De,l[De].status=es.SENT_NEEDS_ABORT,l[De].abortReason="set"):(x.assert(l[De].status===es.RUN,"Unexpected transaction status in abort"),l[De].unwatcher(),B=B.concat(this.serverSyncTree_.ackUserWrite(l[De].currentWriteId,!0)),l[De].onComplete&&g.push(l[De].onComplete.bind(null,new Error("set"),!1,null))));for(-1===fe?w.setValue(null):l.length=fe+1,this.eventQueue_.raiseEventsForChangedPath(w.path(),B),De=0;De<g.length;De++)K(g[De])}};var en,Y=function(){function w(l,g){var B=this;this.app_=l,this.authProvider_=g,this.auth_=null,this.auth_=g.getImmediate({optional:!0}),this.auth_||g.get().then(function(fe){return B.auth_=fe})}return w.prototype.getToken=function(l){return this.auth_?this.auth_.getToken(l).catch(function(g){return g&&"auth/token-not-initialized"===g.code?(T("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(g)}):Promise.resolve(null)},w.prototype.addTokenChangeListener=function(l){this.auth_?this.auth_.addAuthTokenListener(l):(setTimeout(function(){return l(null)},0),this.authProvider_.get().then(function(g){return g.addAuthTokenListener(l)}))},w.prototype.removeTokenChangeListener=function(l){this.authProvider_.get().then(function(g){return g.removeAuthTokenListener(l)})},w.prototype.notifyForInvalidToken=function(){var l='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';se(l+="credential"in this.app_.options?'Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?'Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':'Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.')},w}(),Le=function(){function w(){}return w.prototype.getToken=function(l){return Promise.resolve({accessToken:w.EMULATOR_AUTH_TOKEN})},w.prototype.addTokenChangeListener=function(l){l(w.EMULATOR_AUTH_TOKEN)},w.prototype.removeTokenChangeListener=function(l){},w.prototype.notifyForInvalidToken=function(){},w.EMULATOR_AUTH_TOKEN="owner",w}(),kn=function(){function w(){this.repos_={},this.useRestClient_=!1}return w.getInstance=function(){return en||(en=new w),en},w.prototype.interrupt=function(){var l,g,B,fe;try{for(var De=_.__values(Object.keys(this.repos_)),rt=De.next();!rt.done;rt=De.next()){var Pt=rt.value;try{for(var qt=(B=void 0,_.__values(Object.keys(this.repos_[Pt]))),$t=qt.next();!$t.done;$t=qt.next())this.repos_[Pt][$t.value].interrupt()}catch(zn){B={error:zn}}finally{try{$t&&!$t.done&&(fe=qt.return)&&fe.call(qt)}finally{if(B)throw B.error}}}}catch(zn){l={error:zn}}finally{try{rt&&!rt.done&&(g=De.return)&&g.call(De)}finally{if(l)throw l.error}}},w.prototype.resume=function(){var l,g,B,fe;try{for(var De=_.__values(Object.keys(this.repos_)),rt=De.next();!rt.done;rt=De.next()){var Pt=rt.value;try{for(var qt=(B=void 0,_.__values(Object.keys(this.repos_[Pt]))),$t=qt.next();!$t.done;$t=qt.next())this.repos_[Pt][$t.value].resume()}catch(zn){B={error:zn}}finally{try{$t&&!$t.done&&(fe=qt.return)&&fe.call(qt)}finally{if(B)throw B.error}}}}catch(zn){l={error:zn}}finally{try{rt&&!rt.done&&(g=De.return)&&g.call(De)}finally{if(l)throw l.error}}},w.prototype.databaseFromApp=function(l,g,B,fe){var De=B||l.options.databaseURL;
1void 0===De&&(l.options.projectId||$("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),T("Using default host for project ",l.options.projectId),De=l.options.projectId+"-default-rtdb.firebaseio.com");var qt,rt=ht(De,fe),Pt=rt.repoInfo,$t=void 0;"undefined"!=typeof process&&($t=process.env.FIREBASE_DATABASE_EMULATOR_HOST),$t?(qt=!0,Pt=(rt=ht(De="http://"+$t+"?ns="+Pt.namespace,fe)).repoInfo):qt=!rt.repoInfo.secure;var Tn=fe&&qt?new Le:new Y(l,g);return Nn("Invalid Firebase Database URL",1,rt),rt.path.isEmpty()||$("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(Pt,l,Tn).database},w.prototype.deleteRepo=function(l){var g=x.safeGet(this.repos_,l.app.name);(!g||x.safeGet(g,l.repoInfo_.toURLString())!==l)&&$("Database "+l.app.name+"("+l.repoInfo_+") has already been deleted."),l.interrupt(),delete g[l.repoInfo_.toURLString()]},w.prototype.createRepo=function(l,g,B){var fe=x.safeGet(this.repos_,g.name);fe||(this.repos_[g.name]=fe={});var De=x.safeGet(fe,l.toURLString());return De&&$("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),De=new ki(l,this.useRestClient_,g,B),fe[l.toURLString()]=De,De},w.prototype.forceRestClient=function(l){this.useRestClient_=l},w}(),Xn=function(){function w(l){this.repo_=l,l instanceof ki||$("Don't call new Database() directly - please use firebase.database()."),this.root_=new Ns(l,he.Empty),this.INTERNAL=new Hr(this)}return Object.defineProperty(w.prototype,"app",{get:function(){return this.repo_.app},enumerable:!1,configurable:!0}),w.prototype.ref=function(l){return this.checkDeleted_("ref"),x.validateArgCount("database.ref",0,1,arguments.length),l instanceof Ns?this.refFromURL(l.toString()):void 0!==l?this.root_.child(l):this.root_},w.prototype.refFromURL=function(l){var g="database.refFromURL";this.checkDeleted_(g),x.validateArgCount(g,1,1,arguments.length);var B=ht(l,this.repo_.repoInfo_.nodeAdmin);Nn(g,1,B);var fe=B.repoInfo;return fe.host!==this.repo_.repoInfo_.host&&$(g+": Host name does not match the current database: (found "+fe.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(B.path.toString())},w.prototype.checkDeleted_=function(l){null===this.repo_&&$("Cannot call "+l+" on a deleted database.")},w.prototype.goOffline=function(){x.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},w.prototype.goOnline=function(){x.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},w.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(l){return{".sv":{increment:l}}}},w}(),Hr=function(){function w(l){this.database=l}return w.prototype.delete=function(){return _.__awaiter(this,void 0,void 0,function(){return _.__generator(this,function(l){return this.database.checkDeleted_("delete"),kn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]})})},w}(),wi=Object.freeze({__proto__:null,forceLongPolling:function(){Zn.forceDisallow(),de.forceAllow()},forceWebSockets:function(){de.forceDisallow()},isWebSocketsAvailable:function(){return Zn.isAvailable()},setSecurityDebugCallback:function(w,l){w.repo.persistentConnection_.securityDebugCallback_=l},stats:function(w,l){w.repo.stats(l)},statsIncrementCounter:function(w,l){w.repo.statsIncrementCounter(l)},dataUpdateCount:function(w){return w.repo.dataUpdateCount},interceptServerData:function(w,l){return w.repo.interceptServerData_(l)}}),co=Di;Di.prototype.simpleListen=function(w,l){this.sendRequest("q",{p:w},l)},Di.prototype.echo=function(w,l){this.sendRequest("echo",{d:w},l)};var ot=Object.freeze({__proto__:null,DataConnection:co,RealTimeConnection:Qs,hijackHash:function(w){var l=Di.prototype.put;return Di.prototype.put=function(g,B,fe,De){void 0!==De&&(De=w()),l.call(this,g,B,fe,De)},function(){Di.prototype.put=l}},ConnectionTarget:_t,queryIdentifier:function(w){return w.queryIdentifier()},forceRestClient:function(w){kn.getInstance().forceRestClient(w)}}),Ke=Xn.ServerValue;function xt(w){!function Jn(w){Xt=w}(w.SDK_VERSION);var l=w.INTERNAL.registerComponent(new te.Component("database",function(g,B){var fe=g.getProvider("app").getImmediate(),De=g.getProvider("auth-internal");return kn.getInstance().databaseFromApp(fe,De,B)},"PUBLIC").setServiceProps({Reference:Ns,Query:er,Database:Xn,DataSnapshot:Dn,enableLogging:f,INTERNAL:wi,ServerValue:Ke,TEST_ACCESS:ot}).setMultipleInstances(!0));w.registerVersion("@firebase/database","0.6.13"),x.isNodeSdk()&&(xe.exports=l)}xt(S.default),q.DataSnapshot=Dn,q.Database=Xn,q.OnDisconnect=Fn,q.Query=er,q.Reference=Ns,q.ServerValue=Ke,q.enableLogging=f,q.registerDatabase=xt},199:(xe,q,c)=>{"use strict";
1Object.defineProperty(q,"__esModule",{value:!0});var t=c(617),_=c(9278),x=c(4003),re=c(1270),te=c(670),Q=c(6355),W=function S(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}(_),P={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},C=function(a){function i(o,d){var F=this;return(F=a.call(this,d)||this).code=o,F.message=d,F.name="FirebaseError",F.toString=function(){return F.name+": [code="+F.code+"]: "+F.message},F}return t.__extends(i,a),i}(Error),L=new x.Logger("@firebase/firestore");function E(){return L.logLevel}function m(a){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(L.logLevel<=x.LogLevel.DEBUG){var d=i.map(j);L.debug.apply(L,t.__spreadArrays(["Firestore (7.24.0): "+a],d))}}function v(a){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(L.logLevel<=x.LogLevel.ERROR){var d=i.map(j);L.error.apply(L,t.__spreadArrays(["Firestore (7.24.0): "+a],d))}}function R(a){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(L.logLevel<=x.LogLevel.WARN){var d=i.map(j);L.warn.apply(L,t.__spreadArrays(["Firestore (7.24.0): "+a],d))}}function j(a){if("string"==typeof a)return a;try{return JSON.stringify(a)}catch(o){return a}}function M(a){void 0===a&&(a="Unexpected state");var i="FIRESTORE (7.24.0) INTERNAL ASSERTION FAILED: "+a;throw v(i),new Error(i)}function V(a,i){a||M()}function f(a,i){return a}function T(a){var i=0;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&i++;return i}function Z(a,i){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&i(o,a[o])}function G(a){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i))return!1;return!0}var $=function(){function a(i,o,d){void 0===o?o=0:o>i.length&&M(),void 0===d?d=i.length-o:d>i.length-o&&M(),this.segments=i,this.offset=o,this.t=d}return Object.defineProperty(a.prototype,"length",{get:function(){return this.t},enumerable:!1,configurable:!0}),a.prototype.isEqual=function(i){return 0===a.i(this,i)},a.prototype.child=function(i){var o=this.segments.slice(this.offset,this.limit());return i instanceof a?i.forEach(function(d){o.push(d)}):o.push(i),this.o(o)},a.prototype.limit=function(){return this.offset+this.length},a.prototype.u=function(i){return this.o(this.segments,this.offset+(i=void 0===i?1:i),this.length-i)},a.prototype.h=function(){return this.o(this.segments,this.offset,this.length-1)},a.prototype.l=function(){return this.segments[this.offset]},a.prototype._=function(){return this.get(this.length-1)},a.prototype.get=function(i){return this.segments[this.offset+i]},a.prototype.m=function(){return 0===this.length},a.prototype.T=function(i){if(i.length<this.length)return!1;for(var o=0;o<this.length;o++)if(this.get(o)!==i.get(o))return!1;return!0},a.prototype.I=function(i){if(this.length+1!==i.length)return!1;for(var o=0;o<this.length;o++)if(this.get(o)!==i.get(o))return!1;return!0},a.prototype.forEach=function(i){for(var o=this.offset,d=this.limit();o<d;o++)i(this.segments[o])},a.prototype.A=function(){return this.segments.slice(this.offset,this.limit())},a.i=function(i,o){for(var d=Math.min(i.length,o.length),F=0;F<d;F++){var ne=i.get(F),Ee=o.get(F);if(ne<Ee)return-1;if(ne>Ee)return 1}return i.length<o.length?-1:i.length>o.length?1:0},a}(),se=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.o=function(o,d,F){return new i(o,d,F)},i.prototype.R=function(){return this.A().join("/")},i.prototype.toString=function(){return this.R()},i.g=function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];for(var F=[],ne=0,Ee=o;ne<Ee.length;ne++){var je=Ee[ne];if(je.indexOf("//")>=0)throw new C(P.INVALID_ARGUMENT,"Invalid segment ("+je+"). Paths must not contain // in them.");F.push.apply(F,je.split("/").filter(function(ft){return ft.length>0}))}return new i(F)},i.P=function(){return new i([])},i}($),y=/^[_a-zA-Z][_a-zA-Z0-9]*$/,k=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.o=function(o,d,F){return new i(o,d,F)},i.V=function(o){return y.test(o)},i.prototype.R=function(){return this.A().map(function(o){return o=o.replace("\\","\\\\").replace("`","\\`"),i.V(o)||(o="`"+o+"`"),o}).join(".")},i.prototype.toString=function(){return this.R()},i.prototype.p=function(){return 1===this.length&&"__name__"===this.get(0)},i.v=function(){return new i(["__name__"])},i.S=function(o){for(var d=[],F="",ne=0,Ee=function(){if(0===F.length)throw new C(P.INVALID_ARGUMENT,"Invalid field path ("+o+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");d.push(F),F=""},je=!1;ne<o.length;){var ft=o[ne];if("\\"===ft){if(ne+1===o.length)throw new C(P.INVALID_ARGUMENT,"Path has trailing escape character: "+o);var Gt=o[ne+1];if("\\"!==Gt&&"."!==Gt&&"`"!==Gt)throw new C(P.INVALID_ARGUMENT,"Path has invali
1d escape sequence: "+o);F+=Gt,ne+=2}else"`"===ft?(je=!je,ne++):"."!==ft||je?(F+=ft,ne++):(Ee(),ne++)}if(Ee(),je)throw new C(P.INVALID_ARGUMENT,"Unterminated ` in path: "+o);return new i(d)},i.P=function(){return new i([])},i}($),I=function(){function a(i){this.path=i}return a.D=function(i){return new a(se.g(i))},a.C=function(i){return new a(se.g(i).u(5))},a.prototype.N=function(i){return this.path.length>=2&&this.path.get(this.path.length-2)===i},a.prototype.isEqual=function(i){return null!==i&&0===se.i(this.path,i.path)},a.prototype.toString=function(){return this.path.toString()},a.i=function(i,o){return se.i(i.path,o.path)},a.F=function(i){return i.length%2==0},a.$=function(i){return new a(new se(i.slice()))},a}();function H(a,i){if(0!==i.length)throw new C(P.INVALID_ARGUMENT,"Function "+a+"() does not support arguments, but was called with "+Oe(i.length,"argument")+".")}function ee(a,i,o){if(i.length!==o)throw new C(P.INVALID_ARGUMENT,"Function "+a+"() requires "+Oe(o,"argument")+", but was called with "+Oe(i.length,"argument")+".")}function z(a,i,o){if(i.length<o)throw new C(P.INVALID_ARGUMENT,"Function "+a+"() requires at least "+Oe(o,"argument")+", but was called with "+Oe(i.length,"argument")+".")}function oe(a,i,o,d){if(i.length<o||i.length>d)throw new C(P.INVALID_ARGUMENT,"Function "+a+"() requires between "+o+" and "+d+" arguments, but was called with "+Oe(i.length,"argument")+".")}function ve(a,i,o,d){b(a,i,he(o)+" argument",d)}function We(a,i,o,d){void 0!==d&&ve(a,i,o,d)}function Re(a,i,o,d){b(a,i,o+" option",d)}function He(a,i,o,d){void 0!==d&&Re(a,i,o,d)}function ge(a,i,o,d,F){void 0!==d&&function(ne,Ee,je,ft,Gt){for(var pn=[],Rn=0,On=Gt;Rn<On.length;Rn++){var Kn=On[Rn];if(Kn===ft)return;pn.push(A(Kn))}var lr=A(ft);throw new C(P.INVALID_ARGUMENT,"Invalid value "+lr+" provided to function "+ne+'() for option "'+je+'". Acceptable values: '+pn.join(", "))}(a,0,o,d,F)}function O(a,i,o,d){if(!i.some(function(F){return F===d}))throw new C(P.INVALID_ARGUMENT,"Invalid value "+A(d)+" provided to function "+a+"() for its "+he(o)+" argument. Acceptable values: "+i.join(", "));return d}function b(a,i,o,d){if(!("object"===i?p(d):"non-empty string"===i?"string"==typeof d&&""!==d:typeof d===i)){var F=A(d);throw new C(P.INVALID_ARGUMENT,"Function "+a+"() requires its "+o+" to be of type "+i+", but it was: "+F)}}function p(a){return"object"==typeof a&&null!==a&&(Object.getPrototypeOf(a)===Object.prototype||null===Object.getPrototypeOf(a))}function A(a){if(void 0===a)return"undefined";if(null===a)return"null";if("string"==typeof a)return a.length>20&&(a=a.substring(0,20)+"..."),JSON.stringify(a);if("number"==typeof a||"boolean"==typeof a)return""+a;if("object"==typeof a){if(a instanceof Array)return"an array";var i=function(o){if(o.constructor){var d=/function\s+([^\s(]+)\s*\(/.exec(o.constructor.toString());if(d&&d.length>1)return d[1]}return null}(a);return i?"a custom "+i+" object":"an object"}return"function"==typeof a?"a function":M()}function N(a,i,o){if(void 0===o)throw new C(P.INVALID_ARGUMENT,"Function "+a+"() requires a valid "+he(i)+" argument, but it was undefined.")}function K(a,i,o){Z(i,function(d,F){if(o.indexOf(d)<0)throw new C(P.INVALID_ARGUMENT,"Unknown option '"+d+"' passed to function "+a+"(). Available options: "+o.join(", "))})}function J(a,i,o,d){var F=A(d);return new C(P.INVALID_ARGUMENT,"Function "+a+"() requires its "+he(o)+" argument to be a "+i+", but it was: "+F)}function ie(a,i,o){if(o<=0)throw new C(P.INVALID_ARGUMENT,"Function "+a+"() requires its "+he(i)+" argument to be a positive number, but it was: "+o+".")}function he(a){switch(a){case 1:return"first";
1case 2:return"second";case 3:return"third";default:return a+"th"}}function Oe(a,i){return a+" "+i+(1===a?"":"s")}function Ne(a){var i="undefined"!=typeof self&&(self.crypto||self.msCrypto),o=new Uint8Array(a);if(i&&"function"==typeof i.getRandomValues)i.getRandomValues(o);else for(var d=0;d<a;d++)o[d]=Math.floor(256*Math.random());return o}var Ye=function(){function a(){}return a.k=function(){for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=Math.floor(256/i.length)*i.length,d="";d.length<20;)for(var F=Ne(40),ne=0;ne<F.length;++ne)d.length<20&&F[ne]<o&&(d+=i.charAt(F[ne]%i.length));return d},a}();function Qe(a,i){return a<i?-1:a>i?1:0}function Ct(a,i,o){return a.length===i.length&&a.every(function(d,F){return o(d,i[F])})}function Ot(a){return a+"\0"}var ln=function(){function a(i){this.M=i}return a.fromBase64String=function(i){return new a(atob(i))},a.fromUint8Array=function(i){return new a(function(o){for(var d="",F=0;F<o.length;++F)d+=String.fromCharCode(o[F]);return d}(i))},a.prototype.toBase64=function(){return btoa(this.M)},a.prototype.toUint8Array=function(){return function(i){for(var o=new Uint8Array(i.length),d=0;d<i.length;d++)o[d]=i.charCodeAt(d);return o}(this.M)},a.prototype.O=function(){return 2*this.M.length},a.prototype.L=function(i){return Qe(this.M,i.M)},a.prototype.isEqual=function(i){return this.M===i.M},a}();ln.B=new ln("");var Lt=function(){function a(i){this.q=i}return a.fromBase64String=function(i){try{return new a(ln.fromBase64String(i))}catch(o){throw new C(P.INVALID_ARGUMENT,"Failed to construct Bytes from Base64 string: "+o)}},a.fromUint8Array=function(i){return new a(ln.fromUint8Array(i))},a.prototype.toBase64=function(){return this.q.toBase64()},a.prototype.toUint8Array=function(){return this.q.toUint8Array()},a.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},a.prototype.isEqual=function(i){return this.q.isEqual(i.q)},a}();function Jt(){if("undefined"==typeof Uint8Array)throw new C(P.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Rt(){if("undefined"==typeof atob)throw new C(P.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var it=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.fromBase64String=function(o){ee("Blob.fromBase64String",arguments,1),ve("Blob.fromBase64String","string",1,o),Rt();try{return new i(ln.fromBase64String(o))}catch(d){throw new C(P.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+d)}},i.fromUint8Array=function(o){if(ee("Blob.fromUint8Array",arguments,1),Jt(),!(o instanceof Uint8Array))throw J("Blob.fromUint8Array","Uint8Array",1,o);return new i(ln.fromUint8Array(o))},i.prototype.toBase64=function(){return ee("Blob.toBase64",arguments,0),Rt(),a.prototype.toBase64.call(this)},i.prototype.toUint8Array=function(){return ee("Blob.toUint8Array",arguments,0),Jt(),a.prototype.toUint8Array.call(this)},i.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},i}(Lt),_t=function(a,i,o,d,F,ne){this.U=a,this.persistenceKey=i,this.host=o,this.ssl=d,this.forceLongPolling=F,this.W=ne},ut=function(){function a(i,o){this.projectId=i,this.database=o||"(default)"}return Object.defineProperty(a.prototype,"j",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),a.prototype.isEqual=function(i){return i instanceof a&&i.projectId===this.projectId&&i.database===this.database},a.prototype.L=function(i){return Qe(this.projectId,i.projectId)||Qe(this.database,i.database)},a}(),yt=function(){function a(i,o){this.K=i,this.G=o,this.H={}}return a.prototype.get=function(i){var o=this.K(i),d=this.H[o];if(void 0!==d)for(var F=0,ne=d;F<ne.length;F++){var Ee=ne[F],ft=Ee[1];if(this.G(Ee[0],i))return ft}},a.prototype.has=function(i){return void 0!==this.get(i)},a.prototype.set=function(i,o){var d=this.K(i),F=this.H[d];if(void 0!==F){for(var ne=0;ne<F.length;ne++)if(this.G(F[ne][0],i))return void(F[ne]=[i,o]);F.push([i,o])}else this.H[d]=[[i,o]]},a.prototype.delete=function(i){var o=this.K(i),d=this.H[o];if(void 0===d)return!1;for(var F=0;F<d.length;F++)if(this.G(d[F][0],i))return 1===d.length?delete this.H[o]:d.splice(F,1),!0;return!1},a.prototype.forEach=function(i){Z(this.H,function(o,d){for(var F=0,ne=d;F<ne.length;F++){var Ee=ne[F];i(Ee[0],Ee[1])}})},a.prototype.m=function(){return G(this.H)},a}(),ht=function(){function a(i,o){if(this.seconds=i,this.nanoseconds=o,o<0)throw new C(P.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+o);if(o>=1e9)throw new C(P.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+o);if(i<-62135596800)throw new C(P.INVALID_ARGUMENT,"Timestamp seconds out of range: "+i);if(i>=253402300800)throw new C(P.INVALID_ARGUMENT,"Timestamp seconds out of range: "+i)}return a.now=function(){return a.fromMillis(Date.now())},a.fromDate=function(i){return a.fromMillis(i.getTime())},a.fromMillis=function(i){var o=Math.floor(i/1e3);return new a(o,1e6*(i-1e3*o))},a.prototype.toDate=function(){return new Date(this.toMillis())},a.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},a.prototype.Y=function(i){return this.seconds===i.seconds?Qe(this.nanoseconds,i.nanoseconds):Qe(this.seconds,i.seconds)},a.prototype.isEqual=function(i){return i.seconds===this.seconds&&i.nanoseconds===this.nanoseconds},a.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},a.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},a.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
1,a}(),ct=function(){function a(i){this.timestamp=i}return a.J=function(i){return new a(i)},a.min=function(){return new a(new ht(0,0))},a.prototype.L=function(i){return this.timestamp.Y(i.timestamp)},a.prototype.isEqual=function(i){return this.timestamp.isEqual(i.timestamp)},a.prototype.X=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},a.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},a.prototype.Z=function(){return this.timestamp},a}();function cn(a){return null==a}function gt(a){return 0===a&&1/a==-1/0}function at(a){return"number"==typeof a&&Number.isInteger(a)&&!gt(a)&&a<=Number.MAX_SAFE_INTEGER&&a>=Number.MIN_SAFE_INTEGER}var St=function(a,i,o,d,F,ne,Ee){void 0===i&&(i=null),void 0===o&&(o=[]),void 0===d&&(d=[]),void 0===F&&(F=null),void 0===ne&&(ne=null),void 0===Ee&&(Ee=null),this.path=a,this.collectionGroup=i,this.orderBy=o,this.filters=d,this.limit=F,this.startAt=ne,this.endAt=Ee,this.tt=null};function sn(a,i,o,d,F,ne,Ee){return void 0===i&&(i=null),void 0===o&&(o=[]),void 0===d&&(d=[]),void 0===F&&(F=null),void 0===ne&&(ne=null),void 0===Ee&&(Ee=null),new St(a,i,o,d,F,ne,Ee)}function ze(a){var i=f(a);if(null===i.tt){var o=i.path.R();null!==i.collectionGroup&&(o+="|cg:"+i.collectionGroup),o+="|f:",o+=i.filters.map(function(d){return(F=d).field.R()+F.op.toString()+Ar(F.value);var F}).join(","),o+="|ob:",o+=i.orderBy.map(function(d){return(F=d).field.R()+F.dir;var F}).join(","),cn(i.limit)||(o+="|l:",o+=i.limit),i.startAt&&(o+="|lb:",o+=Xs(i.startAt)),i.endAt&&(o+="|ub:",o+=Xs(i.endAt)),i.tt=o}return i.tt}function nt(a,i){if(a.limit!==i.limit||a.orderBy.length!==i.orderBy.length)return!1;for(var o=0;o<a.orderBy.length;o++)if(!mo(a.orderBy[o],i.orderBy[o]))return!1;if(a.filters.length!==i.filters.length)return!1;for(var d=0;d<a.filters.length;d++)if((F=a.filters[d]).op!==(ne=i.filters[d]).op||!F.field.isEqual(ne.field)||!un(F.value,ne.value))return!1;var F,ne;return a.collectionGroup===i.collectionGroup&&!!a.path.isEqual(i.path)&&!!js(a.startAt,i.startAt)&&js(a.endAt,i.endAt)}function mt(a){return I.F(a.path)&&null===a.collectionGroup&&0===a.filters.length}var Nt,wt,bt=function(){function a(i,o,d,F,ne,Ee,je){void 0===ne&&(ne=ct.min()),void 0===Ee&&(Ee=ct.min()),void 0===je&&(je=ln.B),this.target=i,this.targetId=o,this.et=d,this.sequenceNumber=F,this.nt=ne,this.lastLimboFreeSnapshotVersion=Ee,this.resumeToken=je}return a.prototype.st=function(i){return new a(this.target,this.targetId,this.et,i,this.nt,this.lastLimboFreeSnapshotVersion,this.resumeToken)},a.prototype.it=function(i,o){return new a(this.target,this.targetId,this.et,this.sequenceNumber,o,this.lastLimboFreeSnapshotVersion,i)},a.prototype.rt=function(i){return new a(this.target,this.targetId,this.et,this.sequenceNumber,this.nt,i,this.resumeToken)},a}(),Kt=function(a){this.count=a};function Un(a){switch(a){case P.OK:return M();case P.CANCELLED:case P.UNKNOWN:case P.DEADLINE_EXCEEDED:case P.RESOURCE_EXHAUSTED:case P.INTERNAL:case P.UNAVAILABLE:case P.UNAUTHENTICATED:return!1;case P.INVALID_ARGUMENT:case P.NOT_FOUND:case P.ALREADY_EXISTS:case P.PERMISSION_DENIED:case P.FAILED_PRECONDITION:case P.ABORTED:case P.OUT_OF_RANGE:case P.UNIMPLEMENTED:case P.DATA_LOSS:return!0;default:return M()}}function vt(a){if(void 0===a)return v("GRPC error has no .code"),P.UNKNOWN;switch(a){case Nt.OK:return P.OK;case Nt.CANCELLED:return P.CANCELLED;case Nt.UNKNOWN:return P.UNKNOWN;case Nt.DEADLINE_EXCEEDED:return P.DEADLINE_EXCEEDED;case Nt.RESOURCE_EXHAUSTED:return P.RESOURCE_EXHAUSTED;case Nt.INTERNAL:return P.INTERNAL;case Nt.UNAVAILABLE:return P.UNAVAILABLE;case Nt.UNAUTHENTICATED:return P.UNAUTHENTICATED;case Nt.INVALID_ARGUMENT:return P.INVALID_ARGUMENT;case Nt.NOT_FOUND:return P.NOT_FOUND;case Nt.ALREADY_EXISTS:return P.ALREADY_EXISTS;case Nt.PERMISSION_DENIED:return P.PERMISSION_DENIED;case Nt.FAILED_PRECONDITION:return P.FAILED_PRECONDITION;case Nt.ABORTED:return P.ABORTED;case Nt.OUT_OF_RANGE:return P.OUT_OF_RANGE;case Nt.UNIMPLEMENTED:return P.UNIMPLEMENTED;case Nt.DATA_LOSS:return P.DATA_LOSS;default:return M()}}(wt=Nt||(Nt={}))[wt.OK=0]="OK",wt[wt.CANCELLED=1]="CANCELLED",wt[wt.UNKNOWN=2]="UNKNOWN",wt[wt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",wt[wt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",wt[wt.NOT_FOUND=5]="NOT_FOUND",wt[wt.ALREADY_EXISTS=6]="ALREADY_EXISTS",wt[wt.PERMISSION_DENIED=7]="PERMISSION_DENIED",wt[wt.UNAUTHENTICATED=16]="UNAUTHENTICATED",wt[wt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",wt[wt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",wt[wt.ABORTED=10]="ABORTED",wt[wt.O
1UT_OF_RANGE=11]="OUT_OF_RANGE",wt[wt.UNIMPLEMENTED=12]="UNIMPLEMENTED",wt[wt.INTERNAL=13]="INTERNAL",wt[wt.UNAVAILABLE=14]="UNAVAILABLE",wt[wt.DATA_LOSS=15]="DATA_LOSS";var tn=function(){function a(i,o){this.i=i,this.root=o||Sn.EMPTY}return a.prototype.ot=function(i,o){return new a(this.i,this.root.ot(i,o,this.i).copy(null,null,Sn.at,null,null))},a.prototype.remove=function(i){return new a(this.i,this.root.remove(i,this.i).copy(null,null,Sn.at,null,null))},a.prototype.get=function(i){for(var o=this.root;!o.m();){var d=this.i(i,o.key);if(0===d)return o.value;d<0?o=o.left:d>0&&(o=o.right)}return null},a.prototype.indexOf=function(i){for(var o=0,d=this.root;!d.m();){var F=this.i(i,d.key);if(0===F)return o+d.left.size;F<0?d=d.left:(o+=d.left.size+1,d=d.right)}return-1},a.prototype.m=function(){return this.root.m()},Object.defineProperty(a.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),a.prototype.ct=function(){return this.root.ct()},a.prototype.ut=function(){return this.root.ut()},a.prototype.ht=function(i){return this.root.ht(i)},a.prototype.forEach=function(i){this.ht(function(o,d){return i(o,d),!1})},a.prototype.toString=function(){var i=[];return this.ht(function(o,d){return i.push(o+":"+d),!1}),"{"+i.join(", ")+"}"},a.prototype.lt=function(i){return this.root.lt(i)},a.prototype._t=function(){return new Cn(this.root,null,this.i,!1)},a.prototype.ft=function(i){return new Cn(this.root,i,this.i,!1)},a.prototype.dt=function(){return new Cn(this.root,null,this.i,!0)},a.prototype.wt=function(i){return new Cn(this.root,i,this.i,!0)},a}(),Cn=function(){function a(i,o,d,F){this.Tt=F,this.Et=[];for(var ne=1;!i.m();)if(ne=o?d(i.key,o):1,F&&(ne*=-1),ne<0)i=this.Tt?i.left:i.right;else{if(0===ne){this.Et.push(i);break}this.Et.push(i),i=this.Tt?i.right:i.left}}return a.prototype.It=function(){var i=this.Et.pop(),o={key:i.key,value:i.value};if(this.Tt)for(i=i.left;!i.m();)this.Et.push(i),i=i.right;else for(i=i.right;!i.m();)this.Et.push(i),i=i.left;return o},a.prototype.At=function(){return this.Et.length>0},a.prototype.Rt=function(){if(0===this.Et.length)return null;var i=this.Et[this.Et.length-1];return{key:i.key,value:i.value}},a}(),Sn=function(){function a(i,o,d,F,ne){this.key=i,this.value=o,this.color=null!=d?d:a.RED,this.left=null!=F?F:a.EMPTY,this.right=null!=ne?ne:a.EMPTY,this.size=this.left.size+1+this.right.size}return a.prototype.copy=function(i,o,d,F,ne){return new a(null!=i?i:this.key,null!=o?o:this.value,null!=d?d:this.color,null!=F?F:this.left,null!=ne?ne:this.right)},a.prototype.m=function(){return!1},a.prototype.ht=function(i){return this.left.ht(i)||i(this.key,this.value)||this.right.ht(i)},a.prototype.lt=function(i){return this.right.lt(i)||i(this.key,this.value)||this.left.lt(i)},a.prototype.min=function(){return this.left.m()?this:this.left.min()},a.prototype.ct=function(){return this.min().key},a.prototype.ut=function(){return this.right.m()?this.key:this.right.ut()},a.prototype.ot=function(i,o,d){var F=this,ne=d(i,F.key);return(F=ne<0?F.copy(null,null,null,F.left.ot(i,o,d),null):0===ne?F.copy(null,o,null,null,null):F.copy(null,null,null,null,F.right.ot(i,o,d))).gt()},a.prototype.Pt=function(){if(this.left.m())return a.EMPTY;var i=this;return i.left.yt()||i.left.left.yt()||(i=i.Vt()),(i=i.copy(null,null,null,i.left.Pt(),null)).gt()},a.prototype.remove=function(i,o){var d,F=this;if(o(i,F.key)<0)F.left.m()||F.left.yt()||F.left.left.yt()||(F=F.Vt()),F=F.copy(null,null,null,F.left.remove(i,o),null);else{if(F.left.yt()&&(F=F.bt()),F.right.m()||F.right.yt()||F.right.left.yt()||(F=F.vt()),0===o(i,F.key)){if(F.right.m())return a.EMPTY;d=F.right.min(),F=F.copy(d.key,d.value,null,null,F.right.Pt())}F=F.copy(null,null,null,null,F.right.remove(i,o))}return F.gt()},a.prototype.yt=function(){return this.color},a.prototype.gt=function(){var i=this;return i.right.yt()&&!i.left.yt()&&(i=i.St()),i.left.yt()&&i.left.left.yt()&&(i=i.bt()),i.left.yt()&&i.right.yt()&&(i=i.Dt()),i},a.prototype.Vt=function(){var i=this.Dt();return i.right.left.yt()&&(i=(i=(i=i.copy(null,null,null,null,i.right.bt())).St()).Dt()),i},a.prototype.vt=function(){var i=this.Dt();
1return i.left.left.yt()&&(i=(i=i.bt()).Dt()),i},a.prototype.St=function(){var i=this.copy(null,null,a.RED,null,this.right.left);return this.right.copy(null,null,this.color,i,null)},a.prototype.bt=function(){var i=this.copy(null,null,a.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,i)},a.prototype.Dt=function(){var i=this.left.copy(null,null,!this.left.color,null,null),o=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,i,o)},a.prototype.Ct=function(){var i=this.Nt();return Math.pow(2,i)<=this.size+1},a.prototype.Nt=function(){if(this.yt()&&this.left.yt()||this.right.yt())throw M();var i=this.left.Nt();if(i!==this.right.Nt())throw M();return i+(this.yt()?0:1)},a}();Sn.EMPTY=null,Sn.RED=!0,Sn.at=!1,Sn.EMPTY=new(function(){function a(){this.size=0}return Object.defineProperty(a.prototype,"key",{get:function(){throw M()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"value",{get:function(){throw M()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"color",{get:function(){throw M()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"left",{get:function(){throw M()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"right",{get:function(){throw M()},enumerable:!1,configurable:!0}),a.prototype.copy=function(i,o,d,F,ne){return this},a.prototype.ot=function(i,o,d){return new Sn(i,o)},a.prototype.remove=function(i,o){return this},a.prototype.m=function(){return!0},a.prototype.ht=function(i){return!1},a.prototype.lt=function(i){return!1},a.prototype.ct=function(){return null},a.prototype.ut=function(){return null},a.prototype.yt=function(){return!1},a.prototype.Ct=function(){return!0},a.prototype.Nt=function(){return 0},a}());var Nn=function(){function a(i){this.i=i,this.data=new tn(this.i)}return a.prototype.has=function(i){return null!==this.data.get(i)},a.prototype.first=function(){return this.data.ct()},a.prototype.last=function(){return this.data.ut()},Object.defineProperty(a.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),a.prototype.indexOf=function(i){return this.data.indexOf(i)},a.prototype.forEach=function(i){this.data.ht(function(o,d){return i(o),!1})},a.prototype.Ft=function(i,o){for(var d=this.data.ft(i[0]);d.At();){var F=d.It();if(this.i(F.key,i[1])>=0)return;o(F.key)}},a.prototype.xt=function(i,o){var d;for(d=void 0!==o?this.data.ft(o):this.data._t();d.At();)if(!i(d.It().key))return},a.prototype.$t=function(i){var o=this.data.ft(i);return o.At()?o.It().key:null},a.prototype._t=function(){return new rr(this.data._t())},a.prototype.ft=function(i){return new rr(this.data.ft(i))},a.prototype.add=function(i){return this.copy(this.data.remove(i).ot(i,!0))},a.prototype.delete=function(i){return this.has(i)?this.copy(this.data.remove(i)):this},a.prototype.m=function(){return this.data.m()},a.prototype.kt=function(i){var o=this;return o.size<i.size&&(o=i,i=this),i.forEach(function(d){o=o.add(d)}),o},a.prototype.isEqual=function(i){if(!(i instanceof a)||this.size!==i.size)return!1;for(var o=this.data._t(),d=i.data._t();o.At();){var F=o.It().key,ne=d.It().key;if(0!==this.i(F,ne))return!1}return!0},a.prototype.A=function(){var i=[];return this.forEach(function(o){i.push(o)}),i},a.prototype.toString=function(){var i=[];return this.forEach(function(o){return i.push(o)}),"SortedSet("+i.toString()+")"},a.prototype.copy=function(i){var o=new a(this.i);return o.data=i,o},a}(),rr=function(){function a(i){this.Mt=i}return a.prototype.It=function(){return this.Mt.It().key},a.prototype.At=function(){return this.Mt.At()},a}(),Fn=new tn(I.i);function jn(){return Fn}function nr(){return jn()}var Tt=new tn(I.i);function hn(){return Tt}var Se=new tn(I.i),ae=new Nn(I.i);function we(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var o=ae,d=0,F=a;d<F.length;d++){var ne=F[d];o=o.add(ne)}return o}var Ce=new Nn(Qe);function Ue(){return Ce}var st=function(){function a(i){this.i=i?function(o,d){return i(o,d)||I.i(o.key,d.key)}:function(o,d){return I.i(o.key,d.key)}
1,this.Ot=hn(),this.Lt=new tn(this.i)}return a.Bt=function(i){return new a(i.i)},a.prototype.has=function(i){return null!=this.Ot.get(i)},a.prototype.get=function(i){return this.Ot.get(i)},a.prototype.first=function(){return this.Lt.ct()},a.prototype.last=function(){return this.Lt.ut()},a.prototype.m=function(){return this.Lt.m()},a.prototype.indexOf=function(i){var o=this.Ot.get(i);return o?this.Lt.indexOf(o):-1},Object.defineProperty(a.prototype,"size",{get:function(){return this.Lt.size},enumerable:!1,configurable:!0}),a.prototype.forEach=function(i){this.Lt.ht(function(o,d){return i(o),!1})},a.prototype.add=function(i){var o=this.delete(i.key);return o.copy(o.Ot.ot(i.key,i),o.Lt.ot(i,null))},a.prototype.delete=function(i){var o=this.get(i);return o?this.copy(this.Ot.remove(i),this.Lt.remove(o)):this},a.prototype.isEqual=function(i){if(!(i instanceof a)||this.size!==i.size)return!1;for(var o=this.Lt._t(),d=i.Lt._t();o.At();){var F=o.It().key,ne=d.It().key;if(!F.isEqual(ne))return!1}return!0},a.prototype.toString=function(){var i=[];return this.forEach(function(o){i.push(o.toString())}),0===i.length?"DocumentSet ()":"DocumentSet (\n  "+i.join("  \n")+"\n)"},a.prototype.copy=function(i,o){var d=new a;return d.i=this.i,d.Ot=i,d.Lt=o,d},a}(),Ft=function(){function a(){this.qt=new tn(I.i)}return a.prototype.track=function(i){var o=i.doc.key,d=this.qt.get(o);d?0!==i.type&&3===d.type?this.qt=this.qt.ot(o,i):3===i.type&&1!==d.type?this.qt=this.qt.ot(o,{type:d.type,doc:i.doc}):2===i.type&&2===d.type?this.qt=this.qt.ot(o,{type:2,doc:i.doc}):2===i.type&&0===d.type?this.qt=this.qt.ot(o,{type:0,doc:i.doc}):1===i.type&&0===d.type?this.qt=this.qt.remove(o):1===i.type&&2===d.type?this.qt=this.qt.ot(o,{type:1,doc:d.doc}):0===i.type&&1===d.type?this.qt=this.qt.ot(o,{type:2,doc:i.doc}):M():this.qt=this.qt.ot(o,i)},a.prototype.Ut=function(){var i=[];return this.qt.ht(function(o,d){i.push(d)}),i},a}(),nn=function(){function a(i,o,d,F,ne,Ee,je,ft){this.query=i,this.docs=o,this.Qt=d,this.docChanges=F,this.Wt=ne,this.fromCache=Ee,this.jt=je,this.Kt=ft}return a.Gt=function(i,o,d,F){var ne=[];return o.forEach(function(Ee){ne.push({type:0,doc:Ee})}),new a(i,o,st.Bt(o),ne,d,F,!0,!1)},Object.defineProperty(a.prototype,"hasPendingWrites",{get:function(){return!this.Wt.m()},enumerable:!1,configurable:!0}),a.prototype.isEqual=function(i){if(!(this.fromCache===i.fromCache&&this.jt===i.jt&&this.Wt.isEqual(i.Wt)&&ji(this.query,i.query)&&this.docs.isEqual(i.docs)&&this.Qt.isEqual(i.Qt)))return!1;var o=this.docChanges,d=i.docChanges;if(o.length!==d.length)return!1;for(var F=0;F<o.length;F++)if(o[F].type!==d[F].type||!o[F].doc.isEqual(d[F].doc))return!1;return!0},a}(),vn=function(){function a(i,o,d,F,ne){this.nt=i,this.zt=o,this.Ht=d,this.Yt=F,this.Jt=ne}return a.Xt=function(i,o){var d=new Map;return d.set(i,wn.Zt(i,o)),new a(ct.min(),d,Ue(),jn(),we())},a}(),wn=function(){function a(i,o,d,F,ne){this.resumeToken=i,this.te=o,this.ee=d,this.ne=F,this.se=ne}return a.Zt=function(i,o){return new a(ln.B,o,we(),we(),we())},a}(),$n=function(a,i,o,d){this.ie=a,this.removedTargetIds=i,this.key=o,this.re=d},Gn=function(a,i){this.targetId=a,this.oe=i},ir=function(a,i,o,d){void 0===o&&(o=ln.B),void 0===d&&(d=null),this.state=a,this.targetIds=i,this.resumeToken=o,this.cause=d},Wt=function(){function a(){this.ae=0,this.ce=mn(),this.ue=ln.B,this.he=!1,this.le=!0}return Object.defineProperty(a.prototype,"te",{get:function(){return this.he},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"resumeToken",{get:function(){return this.ue},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"_e",{get:function(){return 0!==this.ae},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"fe",{get:function(){return this.le},enumerable:!1,configurable:!0}),a.prototype.de=function(i){i.O()>0&&(this.le=!0,this.ue=i)},a.prototype.we=function(){var i=we(),o=we(),d=we();return this.ce.forEach(function(F,ne){switch(ne){case 0:i=i.add(F);break;case 2:o=o.add(F);break;case 1:d=d.add(F);break;default:M()}}),new wn(this.ue,this.he,i,o,d)},a.prototype.me=function(){this.le=!1,this.ce=mn()},a.prototype.Te=function(i,o){this.le=!0,this.ce=this.ce.ot(i,o)},a.prototype.Ee=function(i){this.le=!0,this.ce=this.ce.remove(i)},a.prototype.Ie=function(){this.ae+=1},a.prototype.Ae=function(){this.ae-=1},a.prototype.Re=function(){this.le=!0,this.he=!0},a}(),jt=function(){function a(i){this.ge=i,this.Pe=new Map,this.ye=jn(),this.Ve=on(),this.pe=new Nn(Qe)}return a.prototype.be=function(i){for(var o=0,d=i.ie;o<d.length;o++){var F=d[o];i.re instanceof It?this.ve(F,i.re):i.re instanceof Wn&&this.Se(F,i.key,i.re)}for(var ne=0,Ee=i.removedTargetIds;ne<Ee.length;ne++)this.Se(Ee[ne],i.key,i.re)},a.prototype.De=function(i){var o=this;this.Ce(i,function(d){var F=o.Ne(d);switch(i.state){case 0:o.Fe(d)&&F.de(i.resumeToken);break;case 1:F.Ae(),F._e||F.me(),F.de(i.resumeToken);break;case 2:F.Ae(),F._e||o.removeTarget(d);break;case 3:o.Fe(d)&&(F.Re(),F.de(i.resumeToken));break;case 4:o.Fe(d)&&(o.xe(d),F.de(i.resumeToken));break;default:M()}})},a.prototype.Ce=function(i,o){var d=this;i.targetIds.length>0?i.targetIds.forEach(o):this.Pe.forEach(function(F,ne){d.Fe(ne)&&o(ne)})},a.prototype.$e=function(i){var o=i.targetId,d=i.oe.count,F=this.ke(o);if(F){var ne=F.target;if(mt(ne))if(0===d){var Ee=new I(ne.path);this.Se(o,Ee,new Wn(Ee,ct.min()))}else V(1===d);else this.Me(o)!==d&&(this.xe(o),this.pe=this.pe.add(o))}},a.prototype.Oe=function(i){var o=this,d=new Map;this.Pe.forEach(function(Ee,je){var ft=o.ke(je);if(ft){if(Ee.te&&mt(ft.target)){var Gt=new I(ft.target.path);null!==o.ye.get(Gt)||o.Le(je,Gt)||o.Se(je,Gt,new Wn(Gt,i))}Ee.fe&&(d.set(je,Ee.we()),Ee.me())}});var F=we();this.Ve.forEach(function(Ee,je){var ft=!0;je.xt(function(Gt){var pn=o.ke(Gt);return!pn||2===pn.et||(ft=!1,!1)}),ft&&(F=F.add(Ee))});var ne=new vn(i,d,this.pe,this.ye,F);return this.ye=jn(),this.Ve=on(),this.pe=new Nn(Qe),ne},a.prototype.ve=function(i,o){if(this.Fe(i)){var d=this.Le(i,o.key)?2:0;this.Ne(i).Te(o.key,d),this.ye=this.ye.ot(o.key,o),this.Ve=this.Ve.ot(o.key,this.Be(o.key).add(i))}},a.prototype.Se=function(i,o,d){if(this.Fe(i)){var F=this.Ne(i);this.Le(i,o)?F.Te(o,1):F.Ee(o),this.Ve=this.Ve.ot(o,this.Be(o).delete(i)),d&&(this.ye=this.ye.ot(o,d))}},a.prototype.removeTarget=function(i){this.Pe.delete(i)},a.prototype.Me=function(i){var o=this.Ne(i).we();return this.ge.qe(i).size+o.ee.size-o.se.size},a.prototype.Ie=function(i){this.Ne(i).Ie()},a.prototype.Ne=function(i){var o=this.Pe.get(i);return o||(o=new Wt,this.Pe.set(i,o)),o},a.prototype.Be=function(i){var o=this.Ve.get(i);return o||(o=new Nn(Qe),this.Ve=this.Ve.ot(i,o)),o},a.prototype.Fe=function(i){var o=null!==this.ke(i);return o||m("WatchChangeAggregator","Detected inactive target",i),o},a.prototype.ke=function(i){var o=this.Pe.get(i);return o&&o._e?null:this.ge.Ue(i)},a.prototype.xe=function(i){var o=this;
1this.Pe.set(i,new Wt),this.ge.qe(i).forEach(function(d){o.Se(i,d,null)})},a.prototype.Le=function(i,o){return this.ge.qe(i).has(o)},a}();function on(){return new tn(I.i)}function mn(){return new tn(I.i)}function Mt(a){var i,o;return"server_timestamp"===(null===(o=((null===(i=null==a?void 0:a.mapValue)||void 0===i?void 0:i.fields)||{}).__type__)||void 0===o?void 0:o.stringValue)}function ke(a){var i=a.mapValue.fields.__previous_value__;return Mt(i)?ke(i):i}function At(a){var i=dr(a.mapValue.fields.__local_write_time__.timestampValue);return new ht(i.seconds,i.nanos)}var Ht=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Yt(a){return"nullValue"in a?0:"booleanValue"in a?1:"integerValue"in a||"doubleValue"in a?2:"timestampValue"in a?3:"stringValue"in a?5:"bytesValue"in a?6:"referenceValue"in a?7:"geoPointValue"in a?8:"arrayValue"in a?9:"mapValue"in a?Mt(a)?4:10:M()}function un(a,i){var F,o=Yt(a);if(o!==Yt(i))return!1;switch(o){case 0:return!0;case 1:return a.booleanValue===i.booleanValue;case 4:return At(a).isEqual(At(i));case 3:return function(d,F){if("string"==typeof d.timestampValue&&"string"==typeof F.timestampValue&&d.timestampValue.length===F.timestampValue.length)return d.timestampValue===F.timestampValue;var ne=dr(d.timestampValue),Ee=dr(F.timestampValue);return ne.seconds===Ee.seconds&&ne.nanos===Ee.nanos}(a,i);case 5:return a.stringValue===i.stringValue;case 6:return F=i,jr(a.bytesValue).isEqual(jr(F.bytesValue));case 7:return a.referenceValue===i.referenceValue;case 8:return function(d,F){return Kr(d.geoPointValue.latitude)===Kr(F.geoPointValue.latitude)&&Kr(d.geoPointValue.longitude)===Kr(F.geoPointValue.longitude)}(a,i);case 2:return function(d,F){if("integerValue"in d&&"integerValue"in F)return Kr(d.integerValue)===Kr(F.integerValue);if("doubleValue"in d&&"doubleValue"in F){var ne=Kr(d.doubleValue),Ee=Kr(F.doubleValue);return ne===Ee?gt(ne)===gt(Ee):isNaN(ne)&&isNaN(Ee)}return!1}(a,i);case 9:return Ct(a.arrayValue.values||[],i.arrayValue.values||[],un);case 10:return function(d,F){var ne=d.mapValue.fields||{},Ee=F.mapValue.fields||{};if(T(ne)!==T(Ee))return!1;for(var je in ne)if(ne.hasOwnProperty(je)&&(void 0===Ee[je]||!un(ne[je],Ee[je])))return!1;return!0}(a,i);default:return M()}}function An(a,i){return void 0!==(a.values||[]).find(function(o){return un(o,i)})}function sr(a,i){var F,ne,Ee,je,o=Yt(a),d=Yt(i);if(o!==d)return Qe(o,d);switch(o){case 0:return 0;case 1:return Qe(a.booleanValue,i.booleanValue);case 2:return ne=i,(Ee=Kr((F=a).integerValue||F.doubleValue))<(je=Kr(ne.integerValue||ne.doubleValue))?-1:Ee>je?1:Ee===je?0:isNaN(Ee)?isNaN(je)?0:-1:1;case 3:return fr(a.timestampValue,i.timestampValue);case 4:return fr(At(a),At(i));case 5:return Qe(a.stringValue,i.stringValue);case 6:return function(F,ne){var Ee=jr(F),je=jr(ne);return Ee.L(je)}(a.bytesValue,i.bytesValue);case 7:return function(F,ne){for(var Ee=F.split("/"),je=ne.split("/"),ft=0;ft<Ee.length&&ft<je.length;ft++){var Gt=Qe(Ee[ft],je[ft]);if(0!==Gt)return Gt}return Qe(Ee.length,je.length)}(a.referenceValue,i.referenceValue);case 8:return function(F,ne){var Ee=Qe(Kr(F.latitude),Kr(ne.latitude));return 0!==Ee?Ee:Qe(Kr(F.longitude),Kr(ne.longitude))}(a.geoPointValue,i.geoPointValue);case 9:return function(F,ne){for(var Ee=F.values||[],je=ne.values||[],ft=0;ft<Ee.length&&ft<je.length;++ft){var Gt=sr(Ee[ft],je[ft]);if(Gt)return Gt}return Qe(Ee.length,je.length)}(a.arrayValue,i.arrayValue);case 10:return function(F,ne){var Ee=F.fields||{},je=Object.keys(Ee),ft=ne.fields||{},Gt=Object.keys(ft);je.sort(),Gt.sort();for(var pn=0;pn<je.length&&pn<Gt.length;++pn){var Rn=Qe(je[pn],Gt[pn]);if(0!==Rn)return Rn;var On=sr(Ee[je[pn]],ft[Gt[pn]]);if(0!==On)return On}return Qe(je.length,Gt.length)}(a.mapValue,i.mapValue);default:throw M()}}function fr(a,i){if("string"==typeof a&&"string"==typeof i&&a.length===i.length)return Qe(a,i);var o=dr(a),d=dr(i),F=Qe(o.seconds,d.seconds);return 0!==F?F:Qe(o.nanos,d.nanos)}function Ar(a){return Dr(a)}function Dr(a){return"nullValue"in a?"null":"booleanValue"in a?""+a.booleanValue:"integerValue"in a?""+a.integerValue:"doubleValue"in a?""+a.doubleValue:"timestampValue"in a?"time("+(F=dr(a.timestampValue)).seconds+","+F.nanos+")":"stringValue"in a?a.stringValue:"bytesValue"in a?jr(a.bytesValue).toBase64():"referenceValue"in a?I.C(a.referenceValue).toString():"geoPointValue"in a?"geo("+(i=a.geoPointValue).latitude+","+i.longitude+")":"arrayValue"in a?function(d){for(var F="[",ne=!0,Ee=0,je=d.values||[];Ee<je.length;Ee++)ne?ne=!1:F+=",",F+=Dr(je[Ee]);return F+"]"}(a.arrayValue):"mapValue"in a?function(d){for(var F="{",ne=!0,Ee=0,je=Object.keys(d.fields||{}).sort();Ee<je.length;Ee++){var ft=je[Ee];ne?ne=!1:F+=",",F+=ft+":"+Dr(d.fields[ft])}return F+"}"}(a.mapValue):M();var F,i}function dr(a){if(V(!!a),"string"==typeof a){var i=0,o=Ht.exec(a);if(V(!!o),o[1]){var d=o[1];d=(d+"000000000").substr(0,9),i=Number(d)}var F=new Date(a);return{seconds:Math.floor(F.getTime()/1e3),nanos:i}}
1return{seconds:Kr(a.seconds),nanos:Kr(a.nanos)}}function Kr(a){return"number"==typeof a?a:"string"==typeof a?Number(a):0}function jr(a){return"string"==typeof a?ln.fromBase64String(a):ln.fromUint8Array(a)}function Ur(a,i){return{referenceValue:"projects/"+a.projectId+"/databases/"+a.database+"/documents/"+i.path.R()}}function Lr(a){return!!a&&"integerValue"in a}function _i(a){return!!a&&"arrayValue"in a}function kt(a){return!!a&&"nullValue"in a}function an(a){return!!a&&"doubleValue"in a&&isNaN(Number(a.doubleValue))}function Dn(a){return!!a&&"mapValue"in a}var Bn={asc:"ASCENDING",desc:"DESCENDING"},Yn={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Qt=function(a,i){this.U=a,this.Qe=i};function En(a){return{integerValue:""+a}}function Hn(a,i){if(a.Qe){if(isNaN(i))return{doubleValue:"NaN"};if(i===1/0)return{doubleValue:"Infinity"};if(i===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:gt(i)?"-0":i}}function er(a,i){return at(i)?En(i):Hn(a,i)}function or(a,i){return a.Qe?new Date(1e3*i.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+i.nanoseconds).slice(-9)+"Z":{seconds:""+i.seconds,nanos:i.nanoseconds}}function wr(a,i){return a.Qe?i.toBase64():i.toUint8Array()}function Nr(a,i){return or(a,i.Z())}function kr(a){return V(!!a),ct.J((o=dr(a),new ht(o.seconds,o.nanos)));var o}function ei(a,i){return(o=a,new se(["projects",o.projectId,"databases",o.database])).child("documents").child(i).R();var o}function oi(a){var i=se.g(a);return V(bs(i)),i}function ui(a,i){return ei(a.U,i.path)}function Yr(a,i){var o=oi(i);return V(o.get(1)===a.U.projectId),V(!o.get(3)&&!a.U.database||o.get(3)===a.U.database),new I(Gi(o))}function Ci(a,i){return ei(a.U,i)}function Ji(a){var i=oi(a);return 4===i.length?se.P():Gi(i)}function ci(a){return new se(["projects",a.U.projectId,"databases",a.U.database]).R()}function Gi(a){return V(a.length>4&&"documents"===a.get(4)),a.u(5)}function rs(a,i,o){return{name:ui(a,i),fields:o.proto.mapValue.fields}}function Oi(a,i){var o,F;if(i instanceof fn)o={update:rs(a,i.key,i.value)};else if(i instanceof zr)o={delete:ui(a,i.key)};else if(i instanceof xn)o={update:rs(a,i.key,i.data),updateMask:fs(i.We)};else if(i instanceof gr)o={transform:{document:ui(a,i.key),fieldTransforms:i.fieldTransforms.map(function(d){return function(F,ne){var Ee=ne.transform;if(Ee instanceof Ii)return{fieldPath:ne.field.R(),setToServerValue:"REQUEST_TIME"};if(Ee instanceof tt)return{fieldPath:ne.field.R(),appendMissingElements:{values:Ee.elements}};if(Ee instanceof Ut)return{fieldPath:ne.field.R(),removeAllFromArray:{values:Ee.elements}};if(Ee instanceof _n)return{fieldPath:ne.field.R(),increment:Ee.je};throw M()}(0,d)})}};else{if(!(i instanceof ii))return M();o={verify:ui(a,i.key)}}return i.Ge.Ke||(o.currentDocument=void 0!==(F=i.Ge).updateTime?{updateTime:Nr(a,F.updateTime)}:void 0!==F.exists?{exists:F.exists}:M()),o}function $r(a,i){var pn,o=i.currentDocument?void 0!==(pn=i.currentDocument).updateTime?Mr.updateTime(kr(pn.updateTime)):void 0!==pn.exists?Mr.exists(pn.exists):Mr.ze():Mr.ze();if(i.update){var d=Yr(a,i.update.name),F=new Or({mapValue:{fields:i.update.fields}});if(i.updateMask){var ne=function(pn){return new cr((pn.fieldPaths||[]).map(function(On){return k.S(On)}))}(i.updateMask);return new xn(d,F,ne,o)}return new fn(d,F,o)}if(i.delete){var Ee=Yr(a,i.delete);return new zr(Ee,o)}if(i.transform){var je=Yr(a,i.transform.document),ft=i.transform.fieldTransforms.map(function(pn){return function(Rn,On){var Kn=null;"setToServerValue"in On?(V("REQUEST_TIME"===On.setToServerValue),Kn=new Ii):"appendMissingElements"in On?Kn=new tt(On.appendMissingElements.values||[]):"removeAllFromArray"in On?Kn=new Ut(On.removeAllFromArray.values||[]):"increment"in On?Kn=new _n(Rn,On.increment):M();var ni=k.S(On.fieldPath);return new ur(ni,Kn)}(a,pn)});return V(!0===o.exists),new gr(je,ft)}if(i.verify){var Gt=Yr(a,i.verify);return new ii(Gt,o)}return M()}function si(a,i){return{documents:[Ci(a,i.path)]}}function cs(a,i){var o={structuredQuery:{}},d=i.path;null!==i.collectionGroup?(o.parent=Ci(a,d),o.structuredQuery.from=[{collectionId:i.collectionGroup,allDescendants:!0}]):(o.parent=Ci(a,d.h()),o.structuredQuery.from=[{collectionId:d._()}]);var F=function(je){if(0!==je.length){var ft=je.map(function(Gt){return function(pn){if("=="===pn.op){if(an(pn.value))return{unaryFilter:{field:zi(pn.field),op:"IS_NAN"}};if(kt(pn.value))return{unaryFilter:{field:zi(pn.field),op:"IS_NULL"}}}else if("!="===pn.op){if(an(pn.value))return{unaryFilter:{field:zi(pn.field),op:"IS_NOT_NA
1N"}};if(kt(pn.value))return{unaryFilter:{field:zi(pn.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:zi(pn.field),op:Zi(pn.op),value:pn.value}}}(Gt)});return 1===ft.length?ft[0]:{compositeFilter:{op:"AND",filters:ft}}}}(i.filters);F&&(o.structuredQuery.where=F);var ne=function(je){if(0!==je.length)return je.map(function(ft){return{field:zi((Gt=ft).field),direction:ai(Gt.dir)};var Gt})}(i.orderBy);ne&&(o.structuredQuery.orderBy=ne);var ft,Ee=(ft=i.limit,a.Qe||cn(ft)?ft:{value:ft});return null!==Ee&&(o.structuredQuery.limit=Ee),i.startAt&&(o.structuredQuery.startAt=$i(i.startAt)),i.endAt&&(o.structuredQuery.endAt=$i(i.endAt)),o}function Yi(a){var i=Ji(a.parent),o=a.structuredQuery,d=o.from?o.from.length:0,F=null;if(d>0){V(1===d);var ne=o.from[0];ne.allDescendants?F=ne.collectionId:i=i.child(ne.collectionId)}var Ee=[];o.where&&(Ee=is(o.where));var je=[];o.orderBy&&(je=o.orderBy.map(function(Rn){return new ao(xi((On=Rn).field),function(Kn){switch(Kn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(On.direction));var On}));var Rn,On,ft=null;o.limit&&(ft=cn(On="object"==typeof(Rn=o.limit)?Rn.value:Rn)?null:On);var Gt=null;o.startAt&&(Gt=Hi(o.startAt));var pn=null;return o.endAt&&(pn=Hi(o.endAt)),Zn(et(i,F,je,Ee,ft,"F",Gt,pn))}function is(a){return a?void 0!==a.unaryFilter?[hs(a)]:void 0!==a.fieldFilter?[ss(a)]:void 0!==a.compositeFilter?a.compositeFilter.filters.map(function(i){return is(i)}).reduce(function(i,o){return i.concat(o)}):M():[]}function $i(a){return{before:a.before,values:a.position}}function Hi(a){return new Bs(a.values||[],!!a.before)}function ai(a){return Bn[a]}function Zi(a){return Yn[a]}function zi(a){return{fieldPath:a.R()}}function xi(a){return k.S(a.fieldPath)}function ss(a){return Xi.create(xi(a.fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return M()}}(a.fieldFilter.op),a.fieldFilter.value)}function hs(a){switch(a.unaryFilter.op){case"IS_NAN":var i=xi(a.unaryFilter.field);return Xi.create(i,"==",{doubleValue:NaN});case"IS_NULL":var o=xi(a.unaryFilter.field);return Xi.create(o,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var d=xi(a.unaryFilter.field);return Xi.create(d,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var F=xi(a.unaryFilter.field);return Xi.create(F,"!=",{nullValue:"NULL_VALUE"});default:return M()}}function fs(a){var i=[];return a.fields.forEach(function(o){return i.push(o.R())}),{fieldPaths:i}}function bs(a){return a.length>=4&&"projects"===a.get(0)&&"databases"===a.get(2)}var hi=function(){this.He=void 0};function Mi(a,i,o){return a instanceof Ii?(ne={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:(d=o).seconds,nanos:d.nanoseconds}}}},(F=i)&&(ne.fields.__previous_value__=F),{mapValue:ne}):a instanceof tt?Xe(a,i):a instanceof Ut?gn(a,i):function(d,F){var ne=os(d,F),Ee=Mn(ne)+Mn(d.je);return Lr(ne)&&Lr(d.je)?En(Ee):Hn(d.serializer,Ee)}(a,i);var d,F,ne}function Ti(a,i,o){return a instanceof tt?Xe(a,i):a instanceof Ut?gn(a,i):o}function os(a,i){return a instanceof _n?Lr(o=i)||(d=o)&&"doubleValue"in d?i:{integerValue:0}:null;var d,o}var Ii=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i}(hi),tt=function(a){function i(o){var d=this;return(d=a.call(this)||this).elements=o,d}return t.__extends(i,a),i}(hi);function Xe(a,i){for(var o=qn(i),d=function(Ee){o.some(function(je){return un(je,Ee)})||o.push(Ee)},F=0,ne=a.elements;F<ne.length;F++)d(ne[F]);return{arrayValue:{values:o}}}var Ut=function(a){function i(o){var d=this;return(d=a.call(this)||this).elements=o,d}return t.__extends(i,a),i}(hi);function gn(a,i){for(var o=qn(i),d=function(Ee){o=o.filter(function(je){return!un(je,Ee)})},F=0,ne=a.elements;F<ne.length;F++)d(ne[F]);return{arrayValue:{values:o}}}var _n=function(a){function i(o,d){var F=this;
1return(F=a.call(this)||this).serializer=o,F.je=d,F}return t.__extends(i,a),i}(hi);function Mn(a){return Kr(a.integerValue||a.doubleValue)}function qn(a){return _i(a)&&a.arrayValue.values?a.arrayValue.values.slice():[]}var cr=function(){function a(i){this.fields=i,i.sort(k.i)}return a.prototype.Ye=function(i){for(var o=0,d=this.fields;o<d.length;o++)if(d[o].T(i))return!0;return!1},a.prototype.isEqual=function(i){return Ct(this.fields,i.fields,function(o,d){return o.isEqual(d)})},a}(),ur=function(a,i){this.field=a,this.transform=i},_r=function(a,i){this.version=a,this.transformResults=i},Mr=function(){function a(i,o){this.updateTime=i,this.exists=o}return a.ze=function(){return new a},a.exists=function(i){return new a(void 0,i)},a.updateTime=function(i){return new a(i)},Object.defineProperty(a.prototype,"Ke",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),a.prototype.isEqual=function(i){return this.exists===i.exists&&(this.updateTime?!!i.updateTime&&this.updateTime.isEqual(i.updateTime):!i.updateTime)},a}();function Wr(a,i){return void 0!==a.updateTime?i instanceof It&&i.version.isEqual(a.updateTime):void 0===a.exists||a.exists===i instanceof It}var le=function(){};function Ae(a,i,o){return a instanceof fn?new It((d=a).key,o.version,d.value,{hasCommittedMutations:!0}):a instanceof xn?function(d,F,ne){if(!Wr(d.Ge,F))return new Sr(d.key,ne.version);var Ee=Er(d,F);return new It(d.key,ne.version,Ee,{hasCommittedMutations:!0})}(a,i,o):a instanceof gr?function(d,F,ne){if(V(null!=ne.transformResults),!Wr(d.Ge,F))return new Sr(d.key,ne.version);var Ee=hr(0,F),je=function(pn,Rn,On){var Kn=[];V(pn.length===On.length);for(var lr=0;lr<On.length;lr++){var vr=pn[lr],ni=vr.transform,Qr=null;Rn instanceof It&&(Qr=Rn.field(vr.field)),Kn.push(Ti(ni,Qr,On[lr]))}return Kn}(d.fieldTransforms,F,ne.transformResults),ft=ne.version,Gt=pr(d,Ee.data(),je);return new It(d.key,ft,Gt,{hasCommittedMutations:!0})}(a,i,o):function(d,F,ne){return new Wn(d.key,ne.version,{hasCommittedMutations:!0})}(a,0,o);var d}function be(a,i,o,d){return a instanceof fn?function(F,ne){if(!Wr(F.Ge,ne))return ne;var Ee=rn(ne);return new It(F.key,Ee,F.value,{Je:!0})}(a,i):a instanceof xn?function(F,ne){if(!Wr(F.Ge,ne))return ne;var Ee=rn(ne),je=Er(F,ne);return new It(F.key,Ee,je,{Je:!0})}(a,i):a instanceof gr?function(F,ne,Ee,je){if(!Wr(F.Ge,ne))return ne;var ft=hr(0,ne),Gt=function(Rn,On,Kn,lr){for(var vr=[],ni=0,Qr=Rn;ni<Qr.length;ni++){var di=Qr[ni],bi=di.transform,Bi=null;Kn instanceof It&&(Bi=Kn.field(di.field)),null===Bi&&lr instanceof It&&(Bi=lr.field(di.field)),vr.push(Mi(bi,Bi,On))}return vr}(F.fieldTransforms,Ee,ne,je),pn=pr(F,ft.data(),Gt);return new It(F.key,ft.version,pn,{Je:!0})}(a,i,d,o):Wr((F=a).Ge,ne=i)?new Wn(F.key,ct.min()):ne;var F,ne}function Me(a,i){return a instanceof gr?function(o,d){for(var F=null,ne=0,Ee=o.fieldTransforms;ne<Ee.length;ne++){var je=Ee[ne],ft=d instanceof It?d.field(je.field):void 0,Gt=os(je.transform,ft||null);null!=Gt&&(F=null==F?(new Je).set(je.field,Gt):F.set(je.field,Gt))}return F?F.Xe():null}(a,i):null}function dt(a,i){return a.type===i.type&&!!a.key.isEqual(i.key)&&!!a.Ge.isEqual(i.Ge)&&(0===a.type?a.value.isEqual(i.value):1===a.type?a.data.isEqual(i.data)&&a.We.isEqual(i.We):2!==a.type||Ct(a.fieldTransforms,a.fieldTransforms,function(o,d){return(F=o).field.isEqual((ne=d).field)&&(je=ne.transform,(Ee=F.transform)instanceof tt&&je instanceof tt||Ee instanceof Ut&&je instanceof Ut?Ct(Ee.elements,je.elements,un):Ee instanceof _n&&je instanceof _n?un(Ee.je,je.je):Ee instanceof Ii&&je instanceof Ii);var F,ne,Ee,je}))}function rn(a){return a instanceof It?a.version:ct.min()}var fn=function(a){function i(o,d,F){var ne=this;return(ne=a.call(this)||this).key=o,ne.value=d,ne.Ge=F,ne.type=0,ne}return t.__extends(i,a),i}(le),xn=function(a){function i(o,d,F,ne){var Ee=this;return(Ee=a.call(this)||this).key=o,Ee.data=d,Ee.We=F,Ee.Ge=ne,Ee.type=1,Ee}return t.__extends(i,a),i}(le);function Er(a,i){return o=a,d=i instanceof It?i.data():Or.empty(),F=new Je(d),o.We.fields.forEach(function(ne){if(!ne.m()){var Ee=o.data.field(ne);null!==Ee?F.set(ne,Ee):F.delete(ne)}}),F.Xe();var o,d,F}var gr=function(a){function i(o,d){var F=this;return(F=a.call(this)||this).key=o,F.fieldTransforms=d,F.type=2,F.Ge=Mr.exists(!0),F}return t.__extends(i,a),i}(le);function hr(a,i){return i}function pr(a,i,o){for(var d=new Je(i),F=0;F<a.fieldTransforms.length;F++)d.set(a.fieldTransforms[F].field,o[F]);return d.Xe()}var zr=function(a){function i(o,d){var F=this;return(F=a.call(this)||this).key=o,F.Ge=d,F.type=3,F}return t.__extends(i,a),i}(le),ii=function(a){function i(o,d){var F=this;return(F=a.call(this)||this).key=o,F.Ge=d,F.type=4,F}return t.__extends(i,a),i}(le),Or=function(){function a(i){this.proto=i}return a.empty=function(){return new a({mapValue:{}})},a.prototype.field=function(i){if(i.m())return this.proto;for(var o=this.proto,d=0;d<i.length-1;++d)if(!o.mapValue.fields||!Dn(o=o.mapValue.fields[i.get(d)]))return null;return(o=(o.mapValue.fields||{})[i._()])||null},a.prototype.isEqual=function(i){return un(this.proto,i.proto)},a}(),Je=function(){function a(i){void 0===i&&(i=Or.empty()),this.Ze=i,this.tn=new Map}return a.prototype.set=function(i,o){return this.en(i,o),this},a.prototype.delete=function(i){return this.en(i,null),this},a.prototype.en=function(i,o){for(var d=this.tn,F=0;F<i.length-1;++F){var ne=i.get(F),Ee=d.get(ne);Ee instanceof Map?d=Ee:Ee&&10===Yt(Ee)?(Ee=new Map(Object.entries(Ee.mapValue.fields||{})),d.set(ne,Ee),d=Ee):(d.set(ne,Ee=new Map),d=Ee)}d.set(i._(),o)},a.prototype.Xe=function(){var i=this.nn(k.P(),this.tn);return null!=i?new Or(i):this.Ze},a.prototype.nn=function(i,o){var d=this,F=!1,ne=this.Ze.field(i),Ee=Dn(ne)?Object.assign({},ne.mapValue.fields):{};return o.forEach(function(je,ft){if(je instanceof Map){var Gt=d.nn(i.child(ft),je);null!=Gt&&(Ee[ft]=Gt,F=!0)}else null!==je?(Ee[ft]=je,F=!0):Ee.hasOwnProperty(ft)&&(delete Ee[ft],F=!0)}),F?{mapValue:{fields:Ee}}:null},a}();function Ve(a){var i=[];return Z(a.fields||{},function(o,d){var F=new k([o]);if(Dn(d)){var ne=Ve(d.mapValue).fields;if(0===ne.length)i.push(F);else for(var Ee=0,je=ne;Ee<je.length;Ee++)i.push(F.child(je[Ee]))}else i.push(F)}),new cr(i)}var Be=function(a,i){this.key=a,this.version=i},It=function(a){function i(o,d,F,ne){var Ee=this;return(Ee=a.call(this,o,d)||this).sn=F,Ee.Je=!!ne.Je,Ee.hasCommittedMutations=!!ne.hasCommittedMutations,Ee}return t.__extends(i,a),i.prototype.field=function(o){return this.sn.field(o)},i.prototype.data=function(){return this.sn},i.prototype.rn=function(){return this.sn.proto},i.prototype.isEqual=function(o){return o instanceof i&&this.key.isEqual(o.key)&&this.version.isEqual(o.version)&&this.Je===o.Je&&this.hasCommittedMutations===o.hasCommittedMutations&&this.sn.isEqual(o.sn)},i.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.sn.toString()+", {hasLocalMutations: "+this.Je+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(i.prototype,"hasPendingWrites",{get:function(){return this.Je||this.hasCommittedMutations}
1,enumerable:!1,configurable:!0}),i}(Be),Wn=function(a){function i(o,d,F){var ne=this;return(ne=a.call(this,o,d)||this).hasCommittedMutations=!(!F||!F.hasCommittedMutations),ne}return t.__extends(i,a),i.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(i.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,configurable:!0}),i.prototype.isEqual=function(o){return o instanceof i&&o.hasCommittedMutations===this.hasCommittedMutations&&o.version.isEqual(this.version)&&o.key.isEqual(this.key)},i}(Be),Sr=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(i.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.isEqual=function(o){return o instanceof i&&o.version.isEqual(this.version)&&o.key.isEqual(this.key)},i}(Be),ue=function(a,i,o,d,F,ne,Ee,je){void 0===i&&(i=null),void 0===o&&(o=[]),void 0===d&&(d=[]),void 0===F&&(F=null),void 0===ne&&(ne="F"),void 0===Ee&&(Ee=null),void 0===je&&(je=null),this.path=a,this.collectionGroup=i,this.on=o,this.filters=d,this.limit=F,this.an=ne,this.startAt=Ee,this.endAt=je,this.cn=null,this.un=null};function et(a,i,o,d,F,ne,Ee,je){return new ue(a,i,o,d,F,ne,Ee,je)}function de(a){return new ue(a)}function Ze(a){return!cn(a.limit)&&"F"===a.an}function Xt(a){return!cn(a.limit)&&"L"===a.an}function Jn(a){return a.on.length>0?a.on[0].field:null}function Cr(a){for(var i=0,o=a.filters;i<o.length;i++){var d=o[i];if(d.hn())return d.field}return null}function Vr(a){return null!==a.collectionGroup}function Jr(a){var i=f(a);if(null===i.cn){i.cn=[];var o=Cr(i),d=Jn(i);if(null!==o&&null===d)o.p()||i.cn.push(new ao(o)),i.cn.push(new ao(k.v(),"asc"));else{for(var F=!1,ne=0,Ee=i.on;ne<Ee.length;ne++){var je=Ee[ne];i.cn.push(je),je.field.p()&&(F=!0)}if(!F){var ft=i.on.length>0?i.on[i.on.length-1].dir:"asc";i.cn.push(new ao(k.v(),ft))}}}return i.cn}function Zn(a){var i=f(a);if(!i.un)if("F"===i.an)i.un=sn(i.path,i.collectionGroup,Jr(i),i.filters,i.limit,i.startAt,i.endAt);else{for(var o=[],d=0,F=Jr(i);d<F.length;d++){var ne=F[d];o.push(new ao(ne.field,"desc"===ne.dir?"asc":"desc"))}var je=i.endAt?new Bs(i.endAt.position,!i.endAt.before):null,ft=i.startAt?new Bs(i.startAt.position,!i.startAt.before):null;i.un=sn(i.path,i.collectionGroup,o,i.filters,i.limit,je,ft)}return i.un}function qr(a,i,o){return new ue(a.path,a.collectionGroup,a.on.slice(),a.filters.slice(),i,o,a.startAt,a.endAt)}function Pi(a,i){return new ue(a.path,a.collectionGroup,a.on.slice(),a.filters.slice(),a.limit,a.an,i,a.endAt)}function mi(a,i){return new ue(a.path,a.collectionGroup,a.on.slice(),a.filters.slice(),a.limit,a.an,a.startAt,i)}function ji(a,i){return nt(Zn(a),Zn(i))&&a.an===i.an}function Ki(a){return ze(Zn(a))+"|lt:"+a.an}function Ui(a){return"Query(target="+(o=(i=Zn(a)).path.R(),null!==i.collectionGroup&&(o+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(o+=", filters: ["+i.filters.map(function(d){return(F=d).field.R()+" "+F.op+" "+Ar(F.value);var F}).join(", ")+"]"),cn(i.limit)||(o+=", limit: "+i.limit),i.orderBy.length>0&&(o+=", orderBy: ["+i.orderBy.map(function(d){return(F=d).field.R()+" ("+F.dir+")";var F}).join(", ")+"]"),i.startAt&&(o+=", startAt: "+Xs(i.startAt)),i.endAt&&(o+=", endAt: "+Xs(i.endAt)),"Target("+o+"); limitType=")+a.an+")";var i,o}function ps(a,i){return F=(d=i).key.path,(null!==(o=a).collectionGroup?d.key.N(o.collectionGroup)&&o.path.T(F):I.F(o.path)?o.path.isEqual(F):o.path.I(F))&&function(o,d){for(var F=0,ne=o.on;F<ne.length;F++){var Ee=ne[F];if(!Ee.field.p()&&null===d.field(Ee.field))return!1}return!0}(a,i)&&function(o,d){for(var F=0,ne=o.filters;F<ne.length;F++)if(!ne[F].matches(d))return!1;return!0}(a,i)&&function(o,d){return!(o.startAt&&!Js(o.startAt,Jr(o),d)||o.endAt&&Js(o.endAt,Jr(o),d))}(a,i);var o,d,F}function qi(a){return function(i,o){for(var d=!1,F=0,ne=Jr(a);F<ne.length;F++){var Ee=ne[F],je=Os(Ee,i,o);if(0!==je)return je;d=d||Ee.field.p()}return 0}}var Xi=function(a){function i(o,d,F){var ne=this;return(ne=a.call(this)||this).field=o,ne.op=d,ne.value=F,ne}return t.__extends(i,a),i.create=function(o,d,F){if(o.p())return"in"===d||"not-in"===d?this.ln(o,d,F):new ws(o,d,F);if(kt(F)){if("=="!==d&&"!="!==d)throw new C(P.INVALID_ARGUMENT,"Invalid query. Null only supports '==' and '!=' comparisons.");return new i(o,d,F)}
1if(an(F)){if("=="!==d&&"!="!==d)throw new C(P.INVALID_ARGUMENT,"Invalid query. NaN only supports '==' and '!=' comparisons.");return new i(o,d,F)}return"array-contains"===d?new Ws(o,F):"in"===d?new Ro(o,F):"not-in"===d?new Qs(o,F):"array-contains-any"===d?new Gs(o,F):new i(o,d,F)},i.ln=function(o,d,F){return"in"===d?new gs(o,F):new Ms(o,F)},i.prototype.matches=function(o){var d=o.field(this.field);return"!="===this.op?null!==d&&this._n(sr(d,this.value)):null!==d&&Yt(this.value)===Yt(d)&&this._n(sr(d,this.value))},i.prototype._n=function(o){switch(this.op){case"<":return o<0;case"<=":return o<=0;case"==":return 0===o;case"!=":return 0!==o;case">":return o>0;case">=":return o>=0;default:return M()}},i.prototype.hn=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},i}(function(){}),ws=function(a){function i(o,d,F){var ne=this;return(ne=a.call(this,o,d,F)||this).key=I.C(F.referenceValue),ne}return t.__extends(i,a),i.prototype.matches=function(o){var d=I.i(o.key,this.key);return this._n(d)},i}(Xi),gs=function(a){function i(o,d){var F=this;return(F=a.call(this,o,"in",d)||this).keys=as(0,d),F}return t.__extends(i,a),i.prototype.matches=function(o){return this.keys.some(function(d){return d.isEqual(o.key)})},i}(Xi),Ms=function(a){function i(o,d){var F=this;return(F=a.call(this,o,"not-in",d)||this).keys=as(0,d),F}return t.__extends(i,a),i.prototype.matches=function(o){return!this.keys.some(function(d){return d.isEqual(o.key)})},i}(Xi);function as(a,i){var o;return((null===(o=i.arrayValue)||void 0===o?void 0:o.values)||[]).map(function(d){return I.C(d.referenceValue)})}var Ws=function(a){function i(o,d){return a.call(this,o,"array-contains",d)||this}return t.__extends(i,a),i.prototype.matches=function(o){var d=o.field(this.field);return _i(d)&&An(d.arrayValue,this.value)},i}(Xi),Ro=function(a){function i(o,d){return a.call(this,o,"in",d)||this}return t.__extends(i,a),i.prototype.matches=function(o){var d=o.field(this.field);return null!==d&&An(this.value.arrayValue,d)},i}(Xi),Qs=function(a){function i(o,d){return a.call(this,o,"not-in",d)||this}return t.__extends(i,a),i.prototype.matches=function(o){if(An(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var d=o.field(this.field);return null!==d&&!An(this.value.arrayValue,d)},i}(Xi),Gs=function(a){function i(o,d){return a.call(this,o,"array-contains-any",d)||this}return t.__extends(i,a),i.prototype.matches=function(o){var d=this,F=o.field(this.field);return!(!_i(F)||!F.arrayValue.values)&&F.arrayValue.values.some(function(ne){return An(d.value.arrayValue,ne)})},i}(Xi),Bs=function(a,i){this.position=a,this.before=i};function Xs(a){return(a.before?"b":"a")+":"+a.position.map(function(i){return Ar(i)}).join(",")}function Js(a,i,o){for(var d=0,F=0;F<a.position.length;F++){var ne=i[F],Ee=a.position[F];if(d=ne.field.p()?I.i(I.C(Ee.referenceValue),o.key):sr(Ee,o.field(ne.field)),"desc"===ne.dir&&(d*=-1),0!==d)break}return a.before?d<=0:d<0}function js(a,i){if(null===a)return null===i;if(null===i||a.before!==i.before||a.position.length!==i.position.length)return!1;for(var o=0;o<a.position.length;o++)if(!un(a.position[o],i.position[o]))return!1;return!0}var ao=function(a,i){void 0===i&&(i="asc"),this.field=a,this.dir=i};function Os(a,i,o){var F,Ee,je,ft,d=a.field.p()?I.i(i.key,o.key):(Ee=o,je=i.field(F=a.field),ft=Ee.field(F),null!==je&&null!==ft?sr(je,ft):M());switch(a.dir){case"asc":return d;case"desc":return-1*d;default:return M()}}function mo(a,i){return a.dir===i.dir&&a.field.isEqual(i.field)}var Di=function(){var a=this;this.promise=new Promise(function(i,o){a.resolve=i,a.reject=o})},xo=function(){function a(i,o,d,F,ne){void 0===d&&(d=1e3),void 0===F&&(F=1.5),void 0===ne&&(ne=6e4),this.fn=i,this.dn=o,this.wn=d,this.mn=F,this.Tn=ne,this.En=0,this.In=null,this.An=Date.now(),this.reset()}return a.prototype.reset=function(){this.En=0},a.prototype.Rn=function(){this.En=this.Tn},a.prototype.gn=function(i){var o=this;this.cancel();var d=Math.floor(this.En+this.Pn()),F=Math.max(0,Date.now()-this.An),ne=Math.max(0,d-F);ne>0&&m("ExponentialBackoff","Backing off for "+ne+" ms (base delay: "+this.En+" ms, delay with 
1jitter: "+d+" ms, last attempt: "+F+" ms ago)"),this.In=this.fn.yn(this.dn,ne,function(){return o.An=Date.now(),i()}),this.En*=this.mn,this.En<this.wn&&(this.En=this.wn),this.En>this.Tn&&(this.En=this.Tn)},a.prototype.Vn=function(){null!==this.In&&(this.In.pn(),this.In=null)},a.prototype.cancel=function(){null!==this.In&&(this.In.cancel(),this.In=null)},a.prototype.Pn=function(){return(Math.random()-.5)*this.En},a}(),Ir=function(){function a(i){var o=this;this.bn=null,this.vn=null,this.result=void 0,this.error=void 0,this.Sn=!1,this.Dn=!1,i(function(d){o.Sn=!0,o.result=d,o.bn&&o.bn(d)},function(d){o.Sn=!0,o.error=d,o.vn&&o.vn(d)})}return a.prototype.catch=function(i){return this.next(void 0,i)},a.prototype.next=function(i,o){var d=this;return this.Dn&&M(),this.Dn=!0,this.Sn?this.error?this.Cn(o,this.error):this.Nn(i,this.result):new a(function(F,ne){d.bn=function(Ee){d.Nn(i,Ee).next(F,ne)},d.vn=function(Ee){d.Cn(o,Ee).next(F,ne)}})},a.prototype.Fn=function(){var i=this;return new Promise(function(o,d){i.next(o,d)})},a.prototype.xn=function(i){try{var o=i();return o instanceof a?o:a.resolve(o)}catch(d){return a.reject(d)}},a.prototype.Nn=function(i,o){return i?this.xn(function(){return i(o)}):a.resolve(o)},a.prototype.Cn=function(i,o){return i?this.xn(function(){return i(o)}):a.reject(o)},a.resolve=function(i){return new a(function(o,d){o(i)})},a.reject=function(i){return new a(function(o,d){d(i)})},a.$n=function(i){return new a(function(o,d){var F=0,ne=0,Ee=!1;i.forEach(function(je){++F,je.next(function(){++ne,Ee&&ne===F&&o()},function(ft){return d(ft)})}),Ee=!0,ne===F&&o()})},a.kn=function(i){for(var o=a.resolve(!1),d=function(Ee){o=o.next(function(je){return je?a.resolve(je):Ee()})},F=0,ne=i;F<ne.length;F++)d(ne[F]);return o},a.forEach=function(i,o){var d=this,F=[];return i.forEach(function(ne,Ee){F.push(o.call(d,ne,Ee))}),this.$n(F)},a}(),ki=function(){function a(i,o,d){this.name=i,this.version=o,this.Mn=d,12.2===a.On(re.getUA())&&v("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return a.delete=function(i){return m("SimpleDb","Removing database:",i),uo(window.indexedDB.deleteDatabase(i)).Fn()},a.Ln=function(){if("undefined"==typeof indexedDB)return!1;if(a.Bn())return!0;var i=re.getUA(),o=a.On(i),d=0<o&&o<10,F=a.qn(i),ne=0<F&&F<4.5;return!(i.indexOf("MSIE ")>0||i.indexOf("Trident/")>0||i.indexOf("Edge/")>0||d||ne)},a.Bn=function(){var i;return"undefined"!=typeof process&&"YES"===(null===(i=process.env)||void 0===i?void 0:i.Un)},a.Qn=function(i,o){return i.store(o)},a.On=function(i){var o=i.match(/i(?:phone|pad|pod) os ([\d_]+)/i),d=o?o[1].split("_").slice(0,2).join("."):"-1";return Number(d)},a.qn=function(i){var o=i.match(/Android ([\d.]+)/i),d=o?o[1].split(".").slice(0,2).join("."):"-1";return Number(d)},a.prototype.Wn=function(i){return t.__awaiter(this,void 0,void 0,function(){var o,d=this;return t.__generator(this,function(F){switch(F.label){case 0:return this.db?[3,2]:(m("SimpleDb","Opening database:",this.name),o=this,[4,new Promise(function(ne,Ee){var je=indexedDB.open(d.name,d.version);je.onsuccess=function(ft){ne(ft.target.result)},je.onblocked=function(){Ee(new Zs(i,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},je.onerror=function(ft){var Gt=ft.target.error;Ee("VersionError"===Gt.name?new C(P.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):new Zs(i,Gt))},je.onupgradeneeded=function(ft){m("SimpleDb",'Database "'+d.name+'" requires upgrade from version:',ft.oldVersion),d.Mn.createOrUpgrade(ft.target.result,je.transaction,ft.oldVersion,d.version).next(function(){m("SimpleDb","Database upgrade to version "+d.version+" complete")}
1)}})]);case 1:o.db=F.sent(),F.label=2;case 2:return[2,(this.jn&&(this.db.onversionchange=function(ne){return d.jn(ne)}),this.db)]}})})},a.prototype.Kn=function(i){this.jn=i,this.db&&(this.db.onversionchange=function(o){return i(o)})},a.prototype.runTransaction=function(i,o,d,F){return t.__awaiter(this,void 0,void 0,function(){var ne,Ee,je,ft,Gt;return t.__generator(this,function(pn){switch(pn.label){case 0:ne="readonly"===o,Ee=0,je=function(){var Rn,On,Kn,lr,vr;return t.__generator(this,function(ni){switch(ni.label){case 0:++Ee,ni.label=1;case 1:return ni.trys.push([1,4,,5]),[4,ft.Wn(i)];case 2:return ft.db=ni.sent(),Rn=Ns.open(ft.db,i,ne?"readonly":"readwrite",d),On=F(Rn).catch(function(Qr){return Rn.abort(Qr),Ir.reject(Qr)}).Fn(),Kn={},On.catch(function(){}),[4,Rn.Gn];case 3:return[2,(Kn.value=(ni.sent(),On),Kn)];case 4:return m("SimpleDb","Transaction failed with error:",(lr=ni.sent()).message,"Retrying:",vr="FirebaseError"!==lr.name&&Ee<3),ft.close(),vr?[3,5]:[2,{value:Promise.reject(lr)}];case 5:return[2]}})},ft=this,pn.label=1;case 1:return[5,je()];case 2:if("object"==typeof(Gt=pn.sent()))return[2,Gt.value];pn.label=3;case 3:return[3,1];case 4:return[2]}})})},a.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},a}(),Mo=function(){function a(i){this.zn=i,this.Hn=!1,this.Yn=null}return Object.defineProperty(a.prototype,"Sn",{get:function(){return this.Hn},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Jn",{get:function(){return this.Yn},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"cursor",{set:function(i){this.zn=i},enumerable:!1,configurable:!0}),a.prototype.done=function(){this.Hn=!0},a.prototype.Xn=function(i){this.Yn=i},a.prototype.delete=function(){return uo(this.zn.delete())},a}(),Zs=function(a){function i(o,d){var F=this;return(F=a.call(this,P.UNAVAILABLE,"IndexedDB transaction '"+o+"' failed: "+d)||this).name="IndexedDbTransactionError",F}return t.__extends(i,a),i}(C);function Us(a){return"IndexedDbTransactionError"===a.name}var Ns=function(){function a(i,o){var d=this;this.action=i,this.transaction=o,this.aborted=!1,this.Zn=new Di,this.transaction.oncomplete=function(){d.Zn.resolve()},this.transaction.onabort=function(){o.error?d.Zn.reject(new Zs(i,o.error)):d.Zn.resolve()},this.transaction.onerror=function(F){var ne=Y(F.target.error);d.Zn.reject(new Zs(i,ne))}}return a.open=function(i,o,d,F){try{return new a(o,i.transaction(F,d))}catch(ne){throw new Zs(o,ne)}},Object.defineProperty(a.prototype,"Gn",{get:function(){return this.Zn.promise},enumerable:!1,configurable:!0}),a.prototype.abort=function(i){i&&this.Zn.reject(i),this.aborted||(m("SimpleDb","Aborting transaction:",i?i.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},a.prototype.store=function(i){var o=this.transaction.objectStore(i);return new lo(o)},a}(),lo=function(){function a(i){this.store=i}return a.prototype.put=function(i,o){var d;return void 0!==o?(m("SimpleDb","PUT",this.store.name,i,o),d=this.store.put(o,i)):(m("SimpleDb","PUT",this.store.name,"<auto-key>",i),d=this.store.put(i)),uo(d)},a.prototype.add=function(i){return m("SimpleDb","ADD",this.store.name,i,i),uo(this.store.add(i))},a.prototype.get=function(i){var o=this;return uo(this.store.get(i)).next(function(d){return void 0===d&&(d=null),m("SimpleDb","GET",o.store.name,i,d),d})},a.prototype.delete=function(i){return m("SimpleDb","DELETE",this.store.name,i),uo(this.store.delete(i))},a.prototype.count=function(){return m("SimpleDb","COUNT",this.store.name),uo(this.store.count())},a.prototype.ts=function(i,o){var d=this.cursor(this.options(i,o)),F=[];return this.es(d,function(ne,Ee){F.push(Ee)}).next(function(){return F})},a.prototype.ns=function(i,o){m("SimpleDb","DELETE ALL",this.store.name);var d=this.options(i,o);d.ss=!1;var F=this.cursor(d);return this.es(F,function(ne,Ee,je){return je.delete()})},a.prototype.rs=function(i,o){var d;o?d=i:(d={},o=i);var F=this.cursor(d);return this.es(F,o)},a.prototype.os=function(i){var o=this.cursor({});return new Ir(function(d,F){o.onerror=function(ne){var Ee=Y(ne.target.error);F(Ee)},o.onsuccess=function(ne){var Ee=ne.target.result;Ee?i(Ee.primaryKey,Ee.value).next(function(je){je?Ee.continue():d()}):d()}})},a.prototype.es=function(i,o){var d=[];return new Ir(function(F,ne){i.onerror=function(Ee){ne(Ee.target.error)},i.onsuccess=function(Ee){var je=Ee.target.result;if(je){var ft=new Mo(je),Gt=o(je.primaryKey,je.value,ft);if(Gt instanceof Ir){var pn=Gt.catch(function(Rn){return ft.done(),Ir.reject(Rn)});d.push(pn)}ft.Sn?F():null===ft.Jn?je.continue():je.continue(ft.Jn)}else F()}}).next(function(){return Ir.$n(d)})},a.prototype.options=function(i,o){var d=void 0;return void 0!==i&&("string"==typeof i?d=i:o=i),{index:d,range:o}},a.prototype.cursor=function(i){var o="next";if(i.reverse&&(o="prev"),i.index){var d=this.store.index(i.index);return i.ss?d.openKeyCursor(i.range,o):d.openCursor(i.range,o)}return this.store.openCursor(i.range,o)},a}();function uo(a){return new Ir(function(i,o){a.onsuccess=function(d){i(d.target.result)},a.onerror=function(d){var F=Y(d.target.error);o(F)}})}var es=!1;function Y(a){var i=ki.On(re.getUA());if(i>=12.2&&i<13){var o="An internal error was encountered in the Indexed Database server";if(a.message.indexOf(o)>=0){var d=new C("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+o+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return es||(es=!0,setTimeout(function(){throw d},0)),d}}return a}function Le(){return"undefined"!=typeof window?window:null}function lt(){return"undefined"!=typeof document?document:null}var en=function(){function a(i,o,d,F,ne){this.cs=i,this.dn=o,this.us=d,this.op=F,this.hs=ne,this.ls=new Di,this.then=this.ls.promise.then.bind(this.ls.promise),this.ls.promise.catch(function(Ee){})}return a._s=function(i,o,d,F,ne){var Ee=new a(i,o,Date.now()+d,F,ne);return Ee.start(d),Ee},a.prototype.start=function(i){var o=this;this.fs=setTimeout(function(){return o.ds()},i)},a.prototype.pn=function(){return this.ds()},a.prototype.cancel=function(i){null!==this.fs&&(this.clearTimeout(),this.ls.reject(new C(P.CANCELLED,"Operation cancelled"+(i?": "+i:""))))},a.prototype.ds=function(){var i=this;this.cs.ws(function(){return null!==i.fs?(i.clearTimeout(),i.op().then(function(o){return i.ls.resolve(o)})):Promise.resolve()})},a.prototype.clearTimeout=function(){null!==this.fs&&(this.hs(this),clearTimeout(this.fs),this.fs=null)},a}(),kn=function(){function a(){var i=this;this.Ts=Promise.resolve(),this.Es=[],this.Is=!1,this.As=[],this.Rs=null,this.gs=!1,this.Ps=[],this.ys=new xo(this,"async_queue_retry"),this.Vs=function(){var d=lt();d&&m("AsyncQueue","Visibility state changed to  ",d.visibilityState),i.ys.Vn()};var o=lt();o&&"function"==typeof o.addEventListener&&o.addEventListener("visibilitychange",this.Vs)}return Object.defineProperty(a.prototype,"ps",{get:function(){return this.Is}
1,enumerable:!1,configurable:!0}),a.prototype.ws=function(i){this.enqueue(i)},a.prototype.bs=function(i){this.vs(),this.Ss(i)},a.prototype.Ds=function(){if(!this.Is){this.Is=!0;var i=lt();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.Vs)}},a.prototype.enqueue=function(i){return this.vs(),this.Is?new Promise(function(o){}):this.Ss(i)},a.prototype.Cs=function(i){var o=this;this.ws(function(){return o.Es.push(i),o.Ns()})},a.prototype.Ns=function(){return t.__awaiter(this,void 0,void 0,function(){var i,o=this;return t.__generator(this,function(d){switch(d.label){case 0:if(0===this.Es.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.Es[0]()];case 2:return d.sent(),this.Es.shift(),this.ys.reset(),[3,4];case 3:if(!Us(i=d.sent()))throw i;return m("AsyncQueue","Operation failed with retryable error: "+i),[3,4];case 4:this.Es.length>0&&this.ys.gn(function(){return o.Ns()}),d.label=5;case 5:return[2]}})})},a.prototype.Ss=function(i){var o=this,d=this.Ts.then(function(){return o.gs=!0,i().catch(function(F){throw o.Rs=F,o.gs=!1,v("INTERNAL UNHANDLED ERROR: ",(Ee=(ne=F).message||"",ne.stack&&(Ee=ne.stack.includes(ne.message)?ne.stack:ne.message+"\n"+ne.stack),Ee)),F;var ne,Ee}).then(function(F){return o.gs=!1,F})});return this.Ts=d,d},a.prototype.yn=function(i,o,d){var F=this;this.vs(),this.Ps.indexOf(i)>-1&&(o=0);var ne=en._s(this,i,o,d,function(Ee){return F.Fs(Ee)});return this.As.push(ne),ne},a.prototype.vs=function(){this.Rs&&M()},a.prototype.xs=function(){},a.prototype.$s=function(){return t.__awaiter(this,void 0,void 0,function(){var i;return t.__generator(this,function(o){switch(o.label){case 0:return[4,i=this.Ts];case 1:o.sent(),o.label=2;case 2:if(i!==this.Ts)return[3,0];o.label=3;case 3:return[2]}})})},a.prototype.ks=function(i){for(var o=0,d=this.As;o<d.length;o++)if(d[o].dn===i)return!0;return!1},a.prototype.Ms=function(i){var o=this;return this.$s().then(function(){o.As.sort(function(Ee,je){return Ee.us-je.us});for(var d=0,F=o.As;d<F.length;d++){var ne=F[d];if(ne.pn(),"all"!==i&&ne.dn===i)break}return o.$s()})},a.prototype.Os=function(i){this.Ps.push(i)},a.prototype.Fs=function(i){var o=this.As.indexOf(i);this.As.splice(o,1)},a}();function Xn(a,i){if(v("AsyncQueue",i+": "+a),Us(a))return new C(P.UNAVAILABLE,i+": "+a);throw a}var Hr=function(){this.Ls=void 0,this.listeners=[]},Ei=function(){this.Bs=new yt(function(a){return Ki(a)},ji),this.onlineState="Unknown",this.qs=new Set};function vi(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d,F,ne,Ee,je,ft;return t.__generator(this,function(Gt){switch(Gt.label){case 0:if(o=f(a),F=!1,(ne=o.Bs.get(d=i.query))||(F=!0,ne=new Hr),!F)return[3,4];Gt.label=1;case 1:return Gt.trys.push([1,3,,4]),Ee=ne,[4,o.Us(d)];case 2:return Ee.Ls=Gt.sent(),[3,4];case 3:return je=Gt.sent(),ft=Xn(je,"Initialization of query '"+Ui(i.query)+"' failed"),[2,void i.onError(ft)];case 4:return o.Bs.set(d,ne),ne.listeners.push(i),i.Qs(o.onlineState),ne.Ls&&i.Ws(ne.Ls)&&Ys(o),[2]}})})}function ms(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d,F,ne,Ee;return t.__generator(this,function(je){return o=f(a),F=!1,(ne=o.Bs.get(d=i.query))&&(Ee=ne.listeners.indexOf(i))>=0&&(ne.listeners.splice(Ee,1),F=0===ne.listeners.length),F?[2,(o.Bs.delete(d),o.js(d))]:[2]})})}function Fi(a,i){for(var o=f(a),d=!1,F=0,ne=i;F<ne.length;F++){var Ee=ne[F],ft=o.Bs.get(Ee.query);if(ft){for(var Gt=0,pn=ft.listeners;Gt<pn.length;Gt++)pn[Gt].Ws(Ee)&&(d=!0);ft.Ls=Ee}}d&&Ys(o)}function vs(a,i,o){var d=f(a),F=d.Bs.get(i);if(F)for(var ne=0,Ee=F.listeners;ne<Ee.length;ne++)Ee[ne].onError(o);d.Bs.delete(i)}function Ys(a){a.qs.forEach(function(i){i.next()})}var Vs=function(){function a(i,o,d){this.query=i,this.Ks=o,this.Gs=!1,this.zs=null,this.onlineState="Unknown",this.options=d||{}}return a.prototype.Ws=function(i){if(!this.options.includeMetadataChanges){for(var o=[],d=0,F=i.docChanges;d<F.length;d++){var ne=F[d];3!==ne.type&&o.push(ne)}i=new nn(i.query,i.docs,i.Qt,o,i.Wt,i.fromCache,i.jt,!0)}var Ee=!1;return this.Gs?this.Hs(i)&&(this.Ks.next(i),Ee=!0):this.Ys(i,this.onlineState)&&(this.Js(i),Ee=!0),this.zs=i,Ee},a.prototype.onError=function(i){this.Ks.error(i)},a.prototype.Qs=function(i){this.onlineState=i;var o=!1;return this.zs&&!this.Gs&&this.Ys(this.zs,i)&&(this.Js(this.zs),o=!0),o},a.prototype.Ys=function(i,o){return!i.fromCache||!(this.options.Xs&&"Offline"!==o||i.docs.m()&&"Offline"!==o)},a.prototype.Hs=function(i){return i.docChanges.length>0||!!(i.jt||this.zs&&this.zs.hasPendingWrites!==i.hasPendingWrites)&&!0===this.options.includeMetadataChanges},a.prototype.Js=function(i){i=nn.Gt(i.query,i.docs,i.Wt,i.fromCache),this.Gs=!0,this.Ks.next(i)},a}(),Vi=function(){function a(i){this.uid=i}return a.prototype.Zs=function(){return null!=this.uid},a.prototype.ti=function(){return this.Zs()?"uid:"+this.uid:"anonymous-user"},a.prototype.isEqual=function(i){return i.uid===this.uid},a}();Vi.UNAUTHENTICATED=new Vi(null),Vi.ei=new Vi("google-credentials-uid"),Vi.ni=new Vi("first-party-uid");var wi=function(){function a(i,o){var d=this;this.previousValue=i,o&&(o.si=function(F){return d.ii(F)},this.ri=function(F){return o.oi(F)})}return a.prototype.ii=function(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue},a.prototype.next=function(){var i=++this.previousValue;return this.ri&&this.ri(i),i},a}();function co(a,i){return"firestore_clients_"+a+"_"+i}function Ba(a,i,o){var d="firestore_mutations_"+a+"_"+o;return i.Zs()&&(d+="_"+i.uid),d}function Wo(a,i){return"firestore_targets_"+a+"_"+i}wi.ai=-1;var Eo=function(){function a(i,o,d,F){this.user=i,this.batchId=o,this.state=d,this.error=F}return a.ci=function(i,o,d){var F=JSON.parse(d),ne="object"==typeof F&&-1!==["pending","acknowledged","rejected"].indexOf(F.state)&&(void 0===F.error||"object"==typeof F.error),Ee=void 0;return ne&&F.error&&(ne="string"==typeof F.error.message&&"string"==typeof F.error.code)&&(Ee=new C(F.error.code,F.error.message)),ne?new a(i,o,F.state,Ee):(v("SharedCl
1ientState","Failed to parse mutation state for ID '"+o+"': "+d),null)},a.prototype.ui=function(){var i={state:this.state,updateTimeMs:Date.now()};return this.error&&(i.error={code:this.error.code,message:this.error.message}),JSON.stringify(i)},a}(),ho=function(){function a(i,o,d){this.targetId=i,this.state=o,this.error=d}return a.ci=function(i,o){var d=JSON.parse(o),F="object"==typeof d&&-1!==["not-current","current","rejected"].indexOf(d.state)&&(void 0===d.error||"object"==typeof d.error),ne=void 0;return F&&d.error&&(F="string"==typeof d.error.message&&"string"==typeof d.error.code)&&(ne=new C(d.error.code,d.error.message)),F?new a(i,d.state,ne):(v("SharedClientState","Failed to parse target state for ID '"+i+"': "+o),null)},a.prototype.ui=function(){var i={state:this.state,updateTimeMs:Date.now()};return this.error&&(i.error={code:this.error.code,message:this.error.message}),JSON.stringify(i)},a}(),ha=function(){function a(i,o){this.clientId=i,this.activeTargetIds=o}return a.ci=function(i,o){for(var d=JSON.parse(o),F="object"==typeof d&&d.activeTargetIds instanceof Array,ne=Ue(),Ee=0;F&&Ee<d.activeTargetIds.length;++Ee)F=at(d.activeTargetIds[Ee]),ne=ne.add(d.activeTargetIds[Ee]);return F?new a(i,ne):(v("SharedClientState","Failed to parse client data for instance '"+i+"': "+o),null)},a}(),ot=function(){function a(i,o){this.clientId=i,this.onlineState=o}return a.ci=function(i){var o=JSON.parse(i);return"object"==typeof o&&-1!==["Unknown","Online","Offline"].indexOf(o.onlineState)&&"string"==typeof o.clientId?new a(o.clientId,o.onlineState):(v("SharedClientState","Failed to parse online state: "+i),null)},a}(),ce=function(){function a(){this.activeTargetIds=Ue()}return a.prototype.hi=function(i){this.activeTargetIds=this.activeTargetIds.add(i)},a.prototype.li=function(i){this.activeTargetIds=this.activeTargetIds.delete(i)},a.prototype.ui=function(){var i={activeTargetIds:this.activeTargetIds.A(),updateTimeMs:Date.now()};return JSON.stringify(i)},a}(),ye=function(){function a(i,o,d,F,ne){this.window=i,this.fn=o,this.persistenceKey=d,this._i=F,this.fi=null,this.di=null,this.si=null,this.wi=this.mi.bind(this),this.Ti=new tn(Qe),this.Ei=!1,this.Ii=[];var Ee=d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=ne,this.Ai=co(this.persistenceKey,this._i),this.Ri="firestore_sequence_number_"+this.persistenceKey,this.Ti=this.Ti.ot(this._i,new ce),this.gi=new RegExp("^firestore_clients_"+Ee+"_([^_]*)$"),this.Pi=new RegExp("^firestore_mutations_"+Ee+"_(\\d+)(?:_(.*))?$"),this.yi=new RegExp("^firestore_targets_"+Ee+"_(\\d+)$"),this.Vi="firestore_online_state_"+this.persistenceKey,this.window.addEventListener("storage",this.wi)}return a.Ln=function(i){return!(!i||!i.localStorage)},a.prototype.start=function(){return t.__awaiter(this,void 0,void 0,function(){var i,o,d,F,ne,Ee,je,ft,Gt,pn,On=this;return t.__generator(this,function(Kn){switch(Kn.label){case 0:return[4,this.fi.pi()];case 1:for(i=Kn.sent(),o=0,d=i;o<d.length;o++)(F=d[o])!==this._i&&(ne=this.getItem(co(this.persistenceKey,F)))&&(Ee=ha.ci(F,ne))&&(this.Ti=this.Ti.ot(Ee.clientId,Ee));for(this.bi(),(je=this.storage.getItem(this.Vi))&&(ft=this.vi(je))&&this.Si(ft),Gt=0,pn=this.Ii;Gt<pn.length;Gt++)this.mi(pn[Gt]);return this.Ii=[],this.window.addEventListener("unload",function(){return On.Di()}),this.Ei=!0,[2]}})})},a.prototype.oi=function(i){this.setItem(this.Ri,JSON.stringify(i))},a.prototype.Ci=function(){return this.Ni(this.Ti)},a.prototype.Fi=function(i){var o=!1;return this.Ti.forEach(function(d,F){F.activeTargetIds.has(i)&&(o=!0)}),o},a.prototype.xi=function(i){this.$i(i,"pending")},a.prototype.ki=function(i,o,d){this.$i(i,o,d),this.Mi(i)},a.prototype.Oi=function(i){var o="not-current";if(this.Fi(i)){var d=this.storage.getItem(Wo(this.persistenceKey,i));if(d){var F=ho.ci(i,d);F&&(o=F.state)}}return this.Li.hi(i),this.bi(),o},a.prototype.Bi=function(i){this.Li.li(i),this.bi()},a.prototype.qi=function(i){return this.Li.activeTargetIds.has(i)},a.prototype.Ui=function(i){this.removeItem(Wo(this.persistenceKey,i))},a.prototype.Qi=function(i,o,d){this.Wi(i,o,d)},a.prototype.ji=function(i,o,d){var F=this;o.forEach(function(ne){F.Mi(ne)}),this.currentUser=i,d.forEach(function(ne){F.xi(ne)})},a.prototype.Ki=function(i){this.Gi(i)},a.prototype.Di=function(){this.Ei&&(this.window.removeEventListener("storage",this.wi),this.removeItem(this.Ai),this.Ei=!1)},a.prototype.getItem=function(i){var o=this.storage.getItem(i);
1return m("SharedClientState","READ",i,o),o},a.prototype.setItem=function(i,o){m("SharedClientState","SET",i,o),this.storage.setItem(i,o)},a.prototype.removeItem=function(i){m("SharedClientState","REMOVE",i),this.storage.removeItem(i)},a.prototype.mi=function(i){var o=this,d=i;if(d.storageArea===this.storage){if(m("SharedClientState","EVENT",d.key,d.newValue),d.key===this.Ai)return void v("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.fn.Cs(function(){return t.__awaiter(o,void 0,void 0,function(){var F,ne,Ee,je,ft,Gt;return t.__generator(this,function(pn){if(this.Ei){if(null!==d.key)if(this.gi.test(d.key)){if(null==d.newValue)return F=this.zi(d.key),[2,this.Hi(F,null)];if(ne=this.Yi(d.key,d.newValue))return[2,this.Hi(ne.clientId,ne)]}else if(this.Pi.test(d.key)){if(null!==d.newValue&&(Ee=this.Ji(d.key,d.newValue)))return[2,this.Xi(Ee)]}else if(this.yi.test(d.key)){if(null!==d.newValue&&(je=this.Zi(d.key,d.newValue)))return[2,this.tr(je)]}else if(d.key===this.Vi){if(null!==d.newValue&&(ft=this.vi(d.newValue)))return[2,this.Si(ft)]}else d.key===this.Ri&&(Gt=function(Rn){var On=wi.ai;if(null!=Rn)try{var Kn=JSON.parse(Rn);V("number"==typeof Kn),On=Kn}catch(lr){v("SharedClientState","Failed to read sequence number from WebStorage",lr)}return On}(d.newValue))!==wi.ai&&this.si(Gt)}else this.Ii.push(d);return[2]})})})}},Object.defineProperty(a.prototype,"Li",{get:function(){return this.Ti.get(this._i)},enumerable:!1,configurable:!0}),a.prototype.bi=function(){this.setItem(this.Ai,this.Li.ui())},a.prototype.$i=function(i,o,d){var F=new Eo(this.currentUser,i,o,d),ne=Ba(this.persistenceKey,this.currentUser,i);this.setItem(ne,F.ui())},a.prototype.Mi=function(i){var o=Ba(this.persistenceKey,this.currentUser,i);this.removeItem(o)},a.prototype.Gi=function(i){this.storage.setItem(this.Vi,JSON.stringify({clientId:this._i,onlineState:i}))},a.prototype.Wi=function(i,o,d){var F=Wo(this.persistenceKey,i),ne=new ho(i,o,d);this.setItem(F,ne.ui())},a.prototype.zi=function(i){var o=this.gi.exec(i);return o?o[1]:null},a.prototype.Yi=function(i,o){var d=this.zi(i);return ha.ci(d,o)},a.prototype.Ji=function(i,o){var d=this.Pi.exec(i),F=Number(d[1]);return Eo.ci(new Vi(void 0!==d[2]?d[2]:null),F,o)},a.prototype.Zi=function(i,o){var d=this.yi.exec(i),F=Number(d[1]);return ho.ci(F,o)},a.prototype.vi=function(i){return ot.ci(i)},a.prototype.Xi=function(i){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(o){return i.user.uid===this.currentUser.uid?[2,this.fi.er(i.batchId,i.state,i.error)]:(m("SharedClientState","Ignoring mutation for non-active user "+i.user.uid),[2])})})},a.prototype.tr=function(i){return this.fi.nr(i.targetId,i.state,i.error)},a.prototype.Hi=function(i,o){var d=this,F=o?this.Ti.ot(i,o):this.Ti.remove(i),ne=this.Ni(this.Ti),Ee=this.Ni(F),je=[],ft=[];return Ee.forEach(function(Gt){ne.has(Gt)||je.push(Gt)}),ne.forEach(function(Gt){Ee.has(Gt)||ft.push(Gt)}),this.fi.sr(je,ft).then(function(){d.Ti=F})},a.prototype.Si=function(i){this.Ti.get(i.clientId)&&this.di(i.onlineState)},a.prototype.Ni=function(i){var o=Ue();return i.forEach(function(d,F){o=o.kt(F.activeTargetIds)}),o},a}(),Ke=function(){function a(){this.ir=new ce,this.rr={},this.di=null,this.si=null}return a.prototype.xi=function(i){},a.prototype.ki=function(i,o,d){},a.prototype.Oi=function(i){return this.ir.hi(i),this.rr[i]||"not-current"},a.prototype.Qi=function(i,o,d){this.rr[i]=o},a.prototype.Bi=function(i){this.ir.li(i)},a.prototype.qi=function(i){return this.ir.activeTargetIds.has(i)},a.prototype.Ui=function(i){delete this.rr[i]},a.prototype.Ci=function(){return this.ir.activeTargetIds},a.prototype.Fi=function(i){return this.ir.activeTargetIds.has(i)},a.prototype.start=function(){return this.ir=new ce,Promise.resolve()},a.prototype.ji=function(i,o,d){},a.prototype.Ki=function(i){},a.prototype.Di=function(){},a.prototype.oi=function(i){},a}(),xt=function(){function a(i,o,d,F){this.batchId=i,this.ar=o,this.baseMutations=d,this.mutations=F}return a.prototype.cr=function(i,o,d){for(var F=d.ur,ne=0;ne<this.mutations.length;ne++){var Ee=this.mutations[ne];Ee.key.isEqual(i)&&(o=Ae(Ee,o,F[ne]))}return o},a.prototype.hr=function(i,o){for(var d=0,F=this.baseMutations;d<F.length;d++){var ne=F[d];ne.key.isEqual(i)&&(o=be(ne,o,o,this.ar))}for(var Ee=o,je=0,ft=this.mutations;je<ft.length;je++){var Gt=ft[je];Gt.key.isEqual(i)&&(o=be(Gt,o,Ee,this.ar))}return o},a.prototype.lr=function(i){var o=this,d=i;return this.mutations.forEach(function(F){var ne=o.hr(F.key,i.get(F.key));ne&&(d=d.ot(F.key,ne))}),d},a.prototype.keys=function(){return this.mutations.reduce(function(i,o){return i.add(o.key)},we())},a.prototype.isEqual=function(i){return this.batchId===i.batchId&&Ct(this.mutations,i.mutations,function(o,d){return dt(o,d)})&&Ct(this.baseMutations,i.baseMutations,function(o,d){return dt(o,d)})},a}(),w=function(){function a(i,o,d,F){this.batch=i,this._r=o,this.ur=d,this.dr=F}return a.from=function(i,o,d){V(i.mutations.length===d.length);for(var F=Se,ne=i.mutations,Ee=0;Ee<ne.length;Ee++)F=F.ot(ne[Ee].key,d[Ee].version);return new a(i,o,d,F)},a}(),l=function(){function a(){this.wr=new yt(function(i){return i.toString()},function(i,o){return i.isEqual(o)}),this.mr=!1}return Object.defineProperty(a.prototype,"readTime",{get:function(){return this.Tr},set:function(i){this.Tr=i}
1,enumerable:!1,configurable:!0}),a.prototype.Er=function(i,o){this.Ir(),this.readTime=o,this.wr.set(i.key,i)},a.prototype.Ar=function(i,o){this.Ir(),o&&(this.readTime=o),this.wr.set(i,null)},a.prototype.Rr=function(i,o){this.Ir();var d=this.wr.get(o);return void 0!==d?Ir.resolve(d):this.gr(i,o)},a.prototype.getEntries=function(i,o){return this.Pr(i,o)},a.prototype.apply=function(i){return this.Ir(),this.mr=!0,this.yr(i)},a.prototype.Ir=function(){},a}(),g="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",B=function(){function a(){this.Vr=[]}return a.prototype.pr=function(i){this.Vr.push(i)},a.prototype.br=function(){this.Vr.forEach(function(i){return i()})},a}(),fe=function(){function a(i,o,d){this.vr=i,this.Sr=o,this.Dr=d}return a.prototype.Cr=function(i,o){var d=this;return this.Sr.Nr(i,o).next(function(F){return d.Fr(i,o,F)})},a.prototype.Fr=function(i,o,d){return this.vr.Rr(i,o).next(function(F){for(var ne=0,Ee=d;ne<Ee.length;ne++)F=Ee[ne].hr(o,F);return F})},a.prototype.$r=function(i,o,d){var F=nr();return o.forEach(function(ne,Ee){for(var je=0,ft=d;je<ft.length;je++)Ee=ft[je].hr(ne,Ee);F=F.ot(ne,Ee)}),F},a.prototype.kr=function(i,o){var d=this;return this.vr.getEntries(i,o).next(function(F){return d.Mr(i,F)})},a.prototype.Mr=function(i,o){var d=this;return this.Sr.Or(i,o).next(function(F){var ne=d.$r(i,o,F),Ee=jn();return ne.forEach(function(je,ft){ft||(ft=new Wn(je,ct.min())),Ee=Ee.ot(je,ft)}),Ee})},a.prototype.Lr=function(i,o,d){return I.F((F=o).path)&&null===F.collectionGroup&&0===F.filters.length?this.Br(i,o.path):Vr(o)?this.qr(i,o,d):this.Ur(i,o,d);var F},a.prototype.Br=function(i,o){return this.Cr(i,new I(o)).next(function(d){var F=hn();return d instanceof It&&(F=F.ot(d.key,d)),F})},a.prototype.qr=function(i,o,d){var F=this,ne=o.collectionGroup,Ee=hn();return this.Dr.Qr(i,ne).next(function(je){return Ir.forEach(je,function(ft){var pn,Rn,Gt=(pn=o,Rn=ft.child(ne),new ue(Rn,null,pn.on.slice(),pn.filters.slice(),pn.limit,pn.an,pn.startAt,pn.endAt));return F.Ur(i,Gt,d).next(function(pn){pn.forEach(function(Rn,On){Ee=Ee.ot(Rn,On)})})}).next(function(){return Ee})})},a.prototype.Ur=function(i,o,d){var F,ne,Ee=this;return this.vr.Lr(i,o,d).next(function(je){return F=je,Ee.Sr.Wr(i,o)}).next(function(je){return Ee.jr(i,ne=je,F).next(function(ft){F=ft;for(var Gt=0,pn=ne;Gt<pn.length;Gt++)for(var Rn=pn[Gt],On=0,Kn=Rn.mutations;On<Kn.length;On++){var lr=Kn[On],vr=lr.key,ni=F.get(vr),Qr=be(lr,ni,ni,Rn.ar);F=Qr instanceof It?F.ot(vr,Qr):F.remove(vr)}})}).next(function(){return F.forEach(function(je,ft){ps(o,ft)||(F=F.remove(je))}),F})},a.prototype.jr=function(i,o,d){for(var F=we(),ne=0,Ee=o;ne<Ee.length;ne++)for(var je=0,ft=Ee[ne].mutations;je<ft.length;je++){var Gt=ft[je];Gt instanceof xn&&null===d.get(Gt.key)&&(F=F.add(Gt.key))}var pn=d;return this.vr.getEntries(i,F).next(function(Rn){return Rn.forEach(function(On,Kn){null!==Kn&&Kn instanceof It&&(pn=pn.ot(On,Kn))}),pn})},a}(),De=function(){function a(i,o,d,F){this.targetId=i,this.fromCache=o,this.Kr=d,this.Gr=F}return a.zr=function(i,o){for(var d=we(),F=we(),ne=0,Ee=o.docChanges;ne<Ee.length;ne++){var je=Ee[ne];switch(je.type){case 0:d=d.add(je.doc.key);break;case 1:F=F.add(je.doc.key)}}return new a(i,o.fromCache,d,F)},a}();function rt(a,i){var d=a[1],ne=i[1],Ee=Qe(a[0],i[0]);return 0===Ee?Qe(d,ne):Ee}var Pt=function(){function a(i){this.Hr=i,this.buffer=new Nn(rt),this.Yr=0}return a.prototype.Jr=function(){return++this.Yr},a.prototype.Xr=function(i){var o=[i,this.Jr()];if(this.buffer.size<this.Hr)this.buffer=this.buffer.add(o);else{var d=this.buffer.last();rt(o,d)<0&&(this.buffer=this.buffer.delete(d).add(o))}},Object.defineProperty(a.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),a}(),qt={Zr:!1,eo:0,no:0,so:0},$t=function(){function a(i,o,d){this.io=i,this.ro=o,this.oo=d}return a.ao=function(i){return new a(i,a.co,a.uo)},a}();$t.ho=-1,$t.lo=1048576,$t._o=41943040,$t.co=10,$t.uo=1e3,$t.fo=new $t($t._o,$t.co,$t.uo),$t.do=new $t($t.ho,0,0);var Tn=function(){function a(i,o){this.wo=i,this.cs=o,this.mo=!1,this.To=null}return a.prototype.start=function(i){this.wo.params.io!==$t.ho&&this.Eo(i)},a.prototype.stop=function(){this.To&&(this.To.cancel(),this.To=null)},Object.defineProperty(a.prototype,"Ei",{get:function(){return null!==this.To}
1,enumerable:!1,configurable:!0}),a.prototype.Eo=function(i){var o=this,d=this.mo?3e5:6e4;m("LruGarbageCollector","Garbage collection scheduled in "+d+"ms"),this.To=this.cs.yn("lru_garbage_collection",d,function(){return t.__awaiter(o,void 0,void 0,function(){var F;return t.__generator(this,function(ne){switch(ne.label){case 0:this.To=null,this.mo=!0,ne.label=1;case 1:return ne.trys.push([1,3,,7]),[4,i.Io(this.wo)];case 2:return ne.sent(),[3,7];case 3:return Us(F=ne.sent())?(m("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",F),[3,6]):[3,4];case 4:return[4,yo(F)];case 5:ne.sent(),ne.label=6;case 6:return[3,7];case 7:return[4,this.Eo(i)];case 8:return ne.sent(),[2]}})})})},a}(),zn=function(){function a(i,o){this.Ao=i,this.params=o}return a.prototype.Ro=function(i,o){return this.Ao.Po(i).next(function(d){return Math.floor(o/100*d)})},a.prototype.yo=function(i,o){var d=this;if(0===o)return Ir.resolve(wi.ai);var F=new Pt(o);return this.Ao.Ce(i,function(ne){return F.Xr(ne.sequenceNumber)}).next(function(){return d.Ao.Vo(i,function(ne){return F.Xr(ne)})}).next(function(){return F.maxValue})},a.prototype.po=function(i,o,d){return this.Ao.po(i,o,d)},a.prototype.bo=function(i,o){return this.Ao.bo(i,o)},a.prototype.vo=function(i,o){var d=this;return this.params.io===$t.ho?(m("LruGarbageCollector","Garbage collection skipped; disabled"),Ir.resolve(qt)):this.So(i).next(function(F){return F<d.params.io?(m("LruGarbageCollector","Garbage collection skipped; Cache size "+F+" is lower than threshold "+d.params.io),qt):d.Do(i,o)})},a.prototype.So=function(i){return this.Ao.So(i)},a.prototype.Do=function(i,o){var d,F,ne,Ee,je,ft,Gt,pn=this,Rn=Date.now();return this.Ro(i,this.params.ro).next(function(On){return On>pn.params.oo?(m("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+pn.params.oo+" from "+On),F=pn.params.oo):F=On,Ee=Date.now(),pn.yo(i,F)}).next(function(On){return d=On,je=Date.now(),pn.po(i,d,o)}).next(function(On){return ne=On,ft=Date.now(),pn.bo(i,d)}).next(function(On){return Gt=Date.now(),E()<=x.LogLevel.DEBUG&&m("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(Ee-Rn)+"ms\n\tDetermined least recently used "+F+" in "+(je-Ee)+"ms\n\tRemoved "+ne+" targets in "+(ft-je)+"ms\n\tRemoved "+On+" documents in "+(Gt-ft)+"ms\nTotal Duration: "+(Gt-Rn)+"ms"),Ir.resolve({Zr:!0,eo:F,no:ne,so:On})})},a}();function tr(a){for(var i="",o=0;o<a.length;o++)i.length>0&&(i=Pr(i)),i=mr(a.get(o),i);return Pr(i)}function mr(a,i){for(var o=i,d=a.length,F=0;F<d;F++){var ne=a.charAt(F);switch(ne){case"\0":o+="\x01\x10";break;case"\x01":o+="\x01\x11";break;default:o+=ne}}return o}function Pr(a){return a+"\x01\x01"}function Ie(a){var i=a.length;if(V(i>=2),2===i)return V("\x01"===a.charAt(0)&&"\x01"===a.charAt(1)),se.P();for(var o=i-2,d=[],F="",ne=0;ne<i;){var Ee=a.indexOf("\x01",ne);switch((Ee<0||Ee>o)&&M(),a.charAt(Ee+1)){case"\x01":var je=a.substring(ne,Ee),ft=void 0;0===F.length?ft=je:(ft=F+=je,F=""),d.push(ft);break;case"\x10":F+=a.substring(ne,Ee),F+="\0";break;case"\x11":F+=a.substring(ne,Ee+1);break;default:M()}ne=Ee+2}return new se(d)}var Te=function(a){this.Co=a};function _e(a,i){if(i.document)return ft=!!i.hasCommittedMutations,Gt=Yr(a.Co,(je=i.document).name),pn=kr(je.updateTime),Rn=new Or({mapValue:{fields:je.fields}}),new It(Gt,pn,Rn,{hasCommittedMutations:!!ft});var je,ft,Gt,pn,Rn;if(i.noDocument){var o=I.$(i.noDocument.path),d=In(i.noDocument.readTime);return new Wn(o,d,{hasCommittedMutations:!!i.hasCommittedMutations})}if(i.unknownDocument){var F=I.$(i.unknownDocument.path),ne=In(i.unknownDocument.version);return new Sr(F,ne)}return M()}function qe(a,i,o){var On,Kn,d=pt(o),F=i.key.path.h().A();if(i instanceof It){var ne={name:ui(On=a.Co,(Kn=i).key),fields:Kn.rn().mapValue.fields,updateTime:or(On,Kn.version.Z())};return new Rs(null,null,ne,i.hasCommittedMutations,d,F)}if(i instanceof Wn){var je=i.key.path.A(),ft=Zt(i.version),Gt=i.hasCommittedMutations;return new Rs(null,new tu(je,ft),null,Gt,d,F)}if(i instanceof Sr){var pn=i.key.path.A(),Rn=Zt(i.version);return new Rs(new yd(pn,Rn),null,null,!0,d,F)}return M()}function pt(a){var i=a.Z();return[i.seconds,i.nanoseconds]}function Vt(a){var i=new ht(a[0],a[1]);return ct.J(i)}function Zt(a){var i=a.Z();return new vo(i.seconds,i.nanoseconds)}function In(a){var i=new ht(a.seconds,a.nanoseconds);return ct.J(i)}function ar(a,i){var o=(i.baseMutations||[]).map(function(ne){return $r(a.Co,ne)}),d=i.mutations.map(function(ne){return $r(a.Co,ne)}),F=ht.fromMillis(i.localWriteTimeMs);return new xt(i.batchId,F,o,d)}function Gr(a){var i,o,d=In(a.readTime),F=void 0!==a.lastLimboFreeSnapshotVersion?In(a.lastLimboFreeSnapshotVersion):ct.min();return void 0!==a.query.documents?(V(1===(o=a.query).documents.length),i=Zn(de(Ji(o.documents[0])))):i=Yi(a.query),new bt(i,a.targetId,0,a.lastListenSequenceNumber,d,F,ln.fromBase64String(a.resumeToken))}function Ri(a,i){var o,d=Zt(i.nt),F=Zt(i.lastLimboFreeSnapshotVersion);o=mt(i.target)?si(a.Co,i.target):cs(a.Co,i.target);var ne=i.resumeToken.toBase64();return new To(i.targetId,ze(i.target),d,ne,i.sequenceNumber,F,o)}var ri=function(){function a(i,o,d,F){this.userId=i,this.serializer
1=o,this.Dr=d,this.No=F,this.Fo={}}return a.xo=function(i,o,d,F){return V(""!==i.uid),new a(i.Zs()?i.uid:"",o,d,F)},a.prototype.$o=function(i){var o=!0,d=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return ti(i).rs({index:Ds.userMutationsIndex,range:d},function(F,ne,Ee){o=!1,Ee.done()}).next(function(){return o})},a.prototype.ko=function(i,o,d,F){var ne=this,Ee=fi(i),je=ti(i);return je.add({}).next(function(ft){V("number"==typeof ft);for(var Gt=new xt(ft,o,d,F),pn=function(Qr,di,bi){var Bi=bi.baseMutations.map(function(Cs){return Oi(Qr.Co,Cs)}),ls=bi.mutations.map(function(Cs){return Oi(Qr.Co,Cs)});return new Ds(di,bi.batchId,bi.ar.toMillis(),Bi,ls)}(ne.serializer,ne.userId,Gt),Rn=[],On=new Nn(function(Qr,di){return Qe(Qr.R(),di.R())}),Kn=0,lr=F;Kn<lr.length;Kn++){var vr=lr[Kn],ni=to.key(ne.userId,vr.key.path,ft);On=On.add(vr.key.path.h()),Rn.push(je.put(pn)),Rn.push(Ee.put(ni,to.PLACEHOLDER))}return On.forEach(function(Qr){Rn.push(ne.Dr.Mo(i,Qr))}),i.pr(function(){ne.Fo[ft]=Gt.keys()}),Ir.$n(Rn).next(function(){return Gt})})},a.prototype.Oo=function(i,o){var d=this;return ti(i).get(o).next(function(F){return F?(V(F.userId===d.userId),ar(d.serializer,F)):null})},a.prototype.Lo=function(i,o){var d=this;return this.Fo[o]?Ir.resolve(this.Fo[o]):this.Oo(i,o).next(function(F){if(F){var ne=F.keys();return d.Fo[o]=ne,ne}return null})},a.prototype.Bo=function(i,o){var d=this,F=o+1,ne=IDBKeyRange.lowerBound([this.userId,F]),Ee=null;return ti(i).rs({index:Ds.userMutationsIndex,range:ne},function(je,ft,Gt){ft.userId===d.userId&&(V(ft.batchId>=F),Ee=ar(d.serializer,ft)),Gt.done()}).next(function(){return Ee})},a.prototype.qo=function(i){var o=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),d=-1;return ti(i).rs({index:Ds.userMutationsIndex,range:o,reverse:!0},function(F,ne,Ee){d=ne.batchId,Ee.done()}).next(function(){return d})},a.prototype.Uo=function(i){var o=this,d=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return ti(i).ts(Ds.userMutationsIndex,d).next(function(F){return F.map(function(ne){return ar(o.serializer,ne)})})},a.prototype.Nr=function(i,o){var d=this,F=to.prefixForPath(this.userId,o.path),ne=IDBKeyRange.lowerBound(F),Ee=[];return fi(i).rs({range:ne},function(je,ft,Gt){var pn=je[0],On=je[2],Kn=Ie(je[1]);if(pn===d.userId&&o.path.isEqual(Kn))return ti(i).get(On).next(function(lr){if(!lr)throw M();V(lr.userId===d.userId),Ee.push(ar(d.serializer,lr))});Gt.done()}).next(function(){return Ee})},a.prototype.Or=function(i,o){var d=this,F=new Nn(Qe),ne=[];return o.forEach(function(Ee){var je=to.prefixForPath(d.userId,Ee.path),ft=IDBKeyRange.lowerBound(je),Gt=fi(i).rs({range:ft},function(pn,Rn,On){var Kn=pn[0],vr=pn[2],ni=Ie(pn[1]);Kn===d.userId&&Ee.path.isEqual(ni)?F=F.add(vr):On.done()});ne.push(Gt)}),Ir.$n(ne).next(function(){return d.Qo(i,F)})},a.prototype.Wr=function(i,o){var d=this,F=o.path,ne=F.length+1,Ee=to.prefixForPath(this.userId,F),je=IDBKeyRange.lowerBound(Ee),ft=new Nn(Qe);return fi(i).rs({range:je},function(Gt,pn,Rn){var On=Gt[0],lr=Gt[2],vr=Ie(Gt[1]);On===d.userId&&F.T(vr)?vr.length===ne&&(ft=ft.add(lr)):Rn.done()}).next(function(){return d.Qo(i,ft)})},a.prototype.Qo=function(i,o){var d=this,F=[],ne=[];return o.forEach(function(Ee){ne.push(ti(i).get(Ee).next(function(je){if(null===je)throw M();V(je.userId===d.userId),F.push(ar(d.serializer,je))}))}),Ir.$n(ne).next(function(){return F})},a.prototype.Wo=function(i,o){var d=this;return Fr(i.jo,this.userId,o).next(function(F){return i.pr(function(){d.Ko(o.batchId)}),Ir.forEach(F,function(ne){return d.No.Go(i,ne)})})},a.prototype.Ko=function(i){delete this.Fo[i]},a.prototype.zo=function(i){var o=this;return this.$o(i).next(function(d){if(!d)return Ir.resolve();var F=IDBKeyRange.lowerBound(to.prefixForUser(o.userId)),ne=[];return fi(i).rs({range:F},function(Ee,je,ft){if(Ee[0]===o.userId){var Gt=Ie(Ee[1]);ne.push(Gt)}else ft.done()}).next(function(){V(0===ne.length)})})},a.prototype.Ho=function(i,o){return xr(i,this.userId,o)},a.prototype.Yo=function(i){var o=this;return ts(i).get(this.userId).next(function(d){return d||new ds(o.userId,-1,"")})},a}();function xr(a,i,o){var d=to.prefixForPath(i,o.path),F=d[1],ne=IDBKeyRange.lowerBound(d),Ee=!1;return fi(a).rs({range:ne,ss:!0},function(je,ft,Gt){je[0]===i&&je[1]===F&&(Ee=!0),Gt.done()}).next(function(){return Ee})}function Fr(a,i,o){var d=a.store(Ds.store),F=a.store(to.store),ne=[],Ee=IDBKeyRange.only(o.batchId),je=0,ft=d.rs({range:Ee},function(lr,vr,ni){return je++,ni.delete()});ne.push(ft.next(function(){V(1===je)}));for(var Gt=[],pn=0,Rn=o.mutations;pn<Rn.length;pn++){var On=Rn[pn],Kn=to.key(i,On.key.path,o.batchId);ne.push(F.delete(Kn)),Gt.push(On.key)}return Ir.$n(ne).next(function(){return Gt})}function ti(a){return zo.Qn(a,Ds.store)}function fi(a){return zo.Qn(a,to.store)}function ts(a){return zo.Qn(a,ds.store)}
1var eo=function(){function a(i,o){this.serializer=i,this.Dr=o}return a.prototype.Er=function(i,o,d){return Ni(i).put(Ao(o),d)},a.prototype.Ar=function(i,o){var d=Ni(i),F=Ao(o);return d.delete(F)},a.prototype.updateMetadata=function(i,o){var d=this;return this.getMetadata(i).next(function(F){return F.byteSize+=o,d.Jo(i,F)})},a.prototype.Rr=function(i,o){var d=this;return Ni(i).get(Ao(o)).next(function(F){return d.Xo(F)})},a.prototype.Zo=function(i,o){var d=this;return Ni(i).get(Ao(o)).next(function(F){var ne=d.Xo(F);return ne?{ta:ne,size:So(F)}:null})},a.prototype.getEntries=function(i,o){var d=this,F=nr();return this.ea(i,o,function(ne,Ee){var je=d.Xo(Ee);F=F.ot(ne,je)}).next(function(){return F})},a.prototype.na=function(i,o){var d=this,F=nr(),ne=new tn(I.i);return this.ea(i,o,function(Ee,je){var ft=d.Xo(je);ft?(F=F.ot(Ee,ft),ne=ne.ot(Ee,So(je))):(F=F.ot(Ee,null),ne=ne.ot(Ee,0))}).next(function(){return{sa:F,ia:ne}})},a.prototype.ea=function(i,o,d){if(o.m())return Ir.resolve();var F=IDBKeyRange.bound(o.first().path.A(),o.last().path.A()),ne=o._t(),Ee=ne.It();return Ni(i).rs({range:F},function(je,ft,Gt){for(var pn=I.$(je);Ee&&I.i(Ee,pn)<0;)d(Ee,null),Ee=ne.It();Ee&&Ee.isEqual(pn)&&(d(Ee,ft),Ee=ne.At()?ne.It():null),Ee?Gt.Xn(Ee.path.A()):Gt.done()}).next(function(){for(;Ee;)d(Ee,null),Ee=ne.At()?ne.It():null})},a.prototype.Lr=function(i,o,d){var F=this,ne=hn(),Ee=o.path.length+1,je={};if(d.isEqual(ct.min())){var ft=o.path.A();je.range=IDBKeyRange.lowerBound(ft)}else{var Gt=o.path.A(),pn=pt(d);je.range=IDBKeyRange.lowerBound([Gt,pn],!0),je.index=Rs.collectionReadTimeIndex}return Ni(i).rs(je,function(Rn,On,Kn){if(Rn.length===Ee){var lr=_e(F.serializer,On);o.path.T(lr.key.path)?lr instanceof It&&ps(o,lr)&&(ne=ne.ot(lr.key,lr)):Kn.done()}}).next(function(){return ne})},a.prototype.ra=function(i){return new _s(this,!!i&&i.oa)},a.prototype.aa=function(i){return this.getMetadata(i).next(function(o){return o.byteSize})},a.prototype.getMetadata=function(i){return wo(i).get(ea.key).next(function(o){return V(!!o),o})},a.prototype.Jo=function(i,o){return wo(i).put(ea.key,o)},a.prototype.Xo=function(i){if(i){var o=_e(this.serializer,i);return o instanceof Wn&&o.version.isEqual(ct.min())?null:o}return null},a}(),_s=function(a){function i(o,d){var F=this;return(F=a.call(this)||this).ca=o,F.oa=d,F.ua=new yt(function(ne){return ne.toString()},function(ne,Ee){return ne.isEqual(Ee)}),F}return t.__extends(i,a),i.prototype.yr=function(o){var d=this,F=[],ne=0,Ee=new Nn(function(je,ft){return Qe(je.R(),ft.R())});return this.wr.forEach(function(je,ft){var Gt=d.ua.get(je);if(ft){var pn=qe(d.ca.serializer,ft,d.readTime);Ee=Ee.add(je.path.h());var Rn=So(pn);ne+=Rn-Gt,F.push(d.ca.Er(o,je,pn))}else if(ne-=Gt,d.oa){var On=qe(d.ca.serializer,new Wn(je,ct.min()),d.readTime);F.push(d.ca.Er(o,je,On))}else F.push(d.ca.Ar(o,je))}),Ee.forEach(function(je){F.push(d.ca.Dr.Mo(o,je))}),F.push(this.ca.updateMetadata(o,ne)),Ir.$n(F)},i.prototype.gr=function(o,d){var F=this;return this.ca.Zo(o,d).next(function(ne){return null===ne?(F.ua.set(d,0),null):(F.ua.set(d,ne.size),ne.ta)})},i.prototype.Pr=function(o,d){var F=this;return this.ca.na(o,d).next(function(ne){var Ee=ne.sa;return ne.ia.forEach(function(je,ft){F.ua.set(je,ft)}),Ee})},i}(l);function wo(a){return zo.Qn(a,ea.store)}function Ni(a){return zo.Qn(a,Rs.store)}function Ao(a){return a.path.A()}function So(a){var i;if(a.document)i=a.document;else if(a.unknownDocument)i=a.unknownDocument;else{if(!a.noDocument)throw M();i=a.noDocument}return JSON.stringify(i).length}var Fs=function(){function a(){this.ha=new Uo}return a.prototype.Mo=function(i,o){return this.ha.add(o),Ir.resolve()},a.prototype.Qr=function(i,o){return Ir.resolve(this.ha.getEntries(o))},a}(),Uo=function(){function a(){this.index={}}return a.prototype.add=function(i){var o=i._(),d=i.h(),F=this.index[o]||new Nn(se.i),ne=!F.has(d);return this.index[o]=F.add(d),ne},a.prototype.has=function(i){var o=i._(),d=i.h(),F=this.index[o];return F&&F.has(d)},a.prototype.getEntries=function(i){return(this.index[i]||new Nn(se.i)).A()},a}
1(),Co=function(){function a(i){this.serializer=i}return a.prototype.createOrUpgrade=function(i,o,d,F){var ne=this;V(d<F&&d>=0&&F<=10);var ft,Ee=new Ns("createOrUpgrade",o);d<1&&F>=1&&(i.createObjectStore(qs.store),(ft=i).createObjectStore(ds.store,{keyPath:ds.keyPath}),ft.createObjectStore(Ds.store,{keyPath:Ds.keyPath,autoIncrement:!0}).createIndex(Ds.userMutationsIndex,Ds.userMutationsKeyPath,{unique:!0}),ft.createObjectStore(to.store),nu(i),function(ft){ft.createObjectStore(Rs.store)}(i));var je=Ir.resolve();return d<3&&F>=3&&(0!==d&&(function(ft){ft.deleteObjectStore(Wi.store),ft.deleteObjectStore(To.store),ft.deleteObjectStore(Go.store)}(i),nu(i)),je=je.next(function(){return function(ft){var Gt=ft.store(Go.store),pn=new Go(0,0,ct.min().Z(),0);return Gt.put(Go.key,pn)}(Ee)})),d<4&&F>=4&&(0!==d&&(je=je.next(function(){return function(ft,Gt){return Gt.store(Ds.store).ts().next(function(pn){ft.deleteObjectStore(Ds.store),ft.createObjectStore(Ds.store,{keyPath:Ds.keyPath,autoIncrement:!0}).createIndex(Ds.userMutationsIndex,Ds.userMutationsKeyPath,{unique:!0});var Rn=Gt.store(Ds.store),On=pn.map(function(Kn){return Rn.put(Kn)});return Ir.$n(On)})}(i,Ee)})),je=je.next(function(){!function(ft){ft.createObjectStore(Vo.store,{keyPath:Vo.keyPath})}(i)})),d<5&&F>=5&&(je=je.next(function(){return ne.removeAcknowledgedMutations(Ee)})),d<6&&F>=6&&(je=je.next(function(){return function(ft){ft.createObjectStore(ea.store)}(i),ne.addDocumentGlobal(Ee)})),d<7&&F>=7&&(je=je.next(function(){return ne.ensureSequenceNumbers(Ee)})),d<8&&F>=8&&(je=je.next(function(){return ne.createCollectionParentIndex(i,Ee)})),d<9&&F>=9&&(je=je.next(function(){(function(ft){ft.objectStoreNames.contains("remoteDocumentChanges")&&ft.deleteObjectStore("remoteDocumentChanges")})(i),function(ft){var Gt=ft.objectStore(Rs.store);Gt.createIndex(Rs.readTimeIndex,Rs.readTimeIndexPath,{unique:!1}),Gt.createIndex(Rs.collectionReadTimeIndex,Rs.collectionReadTimeIndexPath,{unique:!1})}(o)})),d<10&&F>=10&&(je=je.next(function(){return ne.rewriteCanonicalIds(Ee)})),je},a.prototype.addDocumentGlobal=function(i){var o=0;return i.store(Rs.store).rs(function(d,F){o+=So(F)}).next(function(){var d=new ea(o);return i.store(ea.store).put(ea.key,d)})},a.prototype.removeAcknowledgedMutations=function(i){var o=this,d=i.store(ds.store),F=i.store(Ds.store);return d.ts().next(function(ne){return Ir.forEach(ne,function(Ee){var je=IDBKeyRange.bound([Ee.userId,-1],[Ee.userId,Ee.lastAcknowledgedBatchId]);return F.ts(Ds.userMutationsIndex,je).next(function(ft){return Ir.forEach(ft,function(Gt){V(Gt.userId===Ee.userId);var pn=ar(o.serializer,Gt);return Fr(i,Ee.userId,pn).next(function(){})})})})})},a.prototype.ensureSequenceNumbers=function(i){var o=i.store(Wi.store),d=i.store(Rs.store);return i.store(Go.store).get(Go.key).next(function(F){var ne=[];return d.rs(function(Ee,je){var ft=new se(Ee),Gt=[0,tr(ft)];ne.push(o.get(Gt).next(function(pn){return pn?Ir.resolve():o.put(new Wi(0,tr(ft),F.highestListenSequenceNumber))}))}).next(function(){return Ir.$n(ne)})})},a.prototype.createCollectionParentIndex=function(i,o){i.createObjectStore(As.store,{keyPath:As.keyPath});var d=o.store(As.store),F=new Uo,ne=function(Ee){if(F.add(Ee)){var je=Ee._(),ft=Ee.h();return d.put({collectionId:je,parent:tr(ft)})}};return o.store(Rs.store).rs({ss:!0},function(Ee,je){var ft=new se(Ee);return ne(ft.h())}).next(function(){return o.store(to.store).rs({ss:!0},function(Ee,je){var Gt=Ie(Ee[1]);return ne(Gt.h())})})},a.prototype.rewriteCanonicalIds=function(i){var o=this,d=i.store(To.store);return d.rs(function(F,ne){var Ee=Gr(ne),je=Ri(o.serializer,Ee);return d.put(je)})},a}(),vo=function(a,i){this.seconds=a,this.nanoseconds=i},qs=function(a,i,o){this.ownerId=a,this.allowTabSynchronization=i,this.leaseTimestampMs=o};qs.store="owner",qs.key="owner";var ds=function(a,i,o){this.userId=a,this.lastAcknowledgedBatchId=i,this.lastStreamToken=o};ds.store="mutationQueues",ds.keyPath="userId";var Ds=function(a,i,o,d,F){this.userId=a,this.batchId=i,this.localWriteTimeMs=o,this.baseMutations=d,this.mutations=F};Ds.store="mutations",Ds.keyPath="batchId",Ds.userMutationsIndex="userMutationsIndex",Ds.userMutationsKeyPath=["userId","batchId"];var to=function(){function a(){}return a.prefixForUser=function(i){return[i]},a.prefixForPath=function(i,o){return[i,tr(o)]},a.key=function(i,o,d){return[i,tr(o),d]},a}();to.store="documentMutations",to.PLACEHOLDER=new to;var tu=function(a,i){this.path=a,this.readTime=i},yd=function(a,i){this.path=a,this.version=i},Rs=function(a,i,o,d,F,ne){this.unknownDocument=a,this.noDocument=i,this.document=o,this.hasCommittedMutations=d,this.readTime=F,this.parentPath=ne};Rs.store="remoteDocuments",Rs.readTimeIndex="readTimeIndex",Rs.readTimeIndexPath="readTime",Rs.collectionReadTimeIndex="collectionReadTimeIndex",Rs.collectionReadTimeIndexPath=["parentPath","readTime"];var ea=function(a){this.byteSize=a};ea.store="remoteDocumentGlobal",ea.key="remoteDocumentGlobalKey";var To=function(a,i,o,d,F,ne,Ee){this.targetId=a,this.canonicalId=i,this.readTime=o,this.resumeToken=d,this.lastListenSequenceNumber=F,this.lastLimboFreeSnapshotVersion=ne,this.query=Ee};To.store="targets",To.keyPath="targetId",To.queryTargetsIndexName="queryTargetsIndex",To.queryTargetsKeyPath=["canonicalId","targetId"];var Wi=function(a,i,o){this.targetId=a,this.path=i,this.sequenceNumber=o};Wi.store="targetDocuments",Wi.keyPath=["targetId","path"],Wi.documentTargetsIndex="documentTargetsIndex",Wi.documentTargetsKeyPath=["path","targetId"];var Go=function(a,i,o,d){this.highestTargetId=a,this.highestListenSequenceNumber=i,this.lastRemoteSnapshotVersion=o,this.targetCount=d};Go.key="targetGlobalKey",Go.store="targetGlobal";var As=function(a,i){this.collectionId=a,this.parent=i};function nu(a){a.createObjectStore(Wi.store,{keyPath:Wi.keyPath}).createIndex(Wi.documentTargetsIndex,Wi.documentTargetsKeyPath,{unique:!0}),a.createObjectStore(To.store,{keyPath:To.keyPath}).createIndex(To.queryTargetsIndexName,To.queryTargetsKeyPath,{unique:!0}),a.createObjectStore(Go.store)}As.store="collectionParents",As.keyPath=["collectionId","parent"];var Vo=function(a,i,o,d){this.clientId=a,this.updateTimeMs=i,this.networkEnabled=o,this.inForeground=d};Vo.store="clientMetadata",Vo.keyPath="clientId";var bd=t.__spreadArrays(t.__spreadArrays(t.__spreadArrays([ds.store,Ds.store,to.store,Rs.store,To.store,qs.store,Go.store,Wi.store],[Vo.store]),[ea.store]),[As.store]),Pu=function(){function a(){this.la=new Uo}return a.prototype.Mo=function(i,o){var d=this;if(!this.la.has(o)){var F=o._(),ne=o.h();i.pr(function(){d.la.add(o)});var Ee={collectionId:F,parent:tr(ne)};return Oo(i).put(Ee)}return Ir.resolve()},a.prototype.Qr=function(i,o){var d=[],F=IDBKeyRange.bound([o,""],[Ot(o),""],!1,!0);return Oo(i).ts(F).next(function(ne){for(var Ee=0,je=ne;Ee<je.length;Ee++){var ft=je[Ee];if(ft.collectionId!==o)break;d.push(Ie(ft.parent))}return d})},a}();function Oo(a){return zo.Qn(a,As.store)}var ko=function(){function a(i){this._a=i}return a.prototype.next=function(){return this._a+=2,this._a},a.fa=function(){return new a(0)},a.da=function(){return new a(-1)},a}
1(),Ru=function(){function a(i,o){this.No=i,this.serializer=o}return a.prototype.wa=function(i){var o=this;return this.ma(i).next(function(d){var F=new ko(d.highestTargetId);return d.highestTargetId=F.next(),o.Ta(i,d).next(function(){return d.highestTargetId})})},a.prototype.Ea=function(i){return this.ma(i).next(function(o){return ct.J(new ht(o.lastRemoteSnapshotVersion.seconds,o.lastRemoteSnapshotVersion.nanoseconds))})},a.prototype.Ia=function(i){return this.ma(i).next(function(o){return o.highestListenSequenceNumber})},a.prototype.Aa=function(i,o,d){var F=this;return this.ma(i).next(function(ne){return ne.highestListenSequenceNumber=o,d&&(ne.lastRemoteSnapshotVersion=d.Z()),o>ne.highestListenSequenceNumber&&(ne.highestListenSequenceNumber=o),F.Ta(i,ne)})},a.prototype.Ra=function(i,o){var d=this;return this.ga(i,o).next(function(){return d.ma(i).next(function(F){return F.targetCount+=1,d.Pa(o,F),d.Ta(i,F)})})},a.prototype.ya=function(i,o){return this.ga(i,o)},a.prototype.Va=function(i,o){var d=this;return this.pa(i,o.targetId).next(function(){return da(i).delete(o.targetId)}).next(function(){return d.ma(i)}).next(function(F){return V(F.targetCount>0),F.targetCount-=1,d.Ta(i,F)})},a.prototype.po=function(i,o,d){var F=this,ne=0,Ee=[];return da(i).rs(function(je,ft){var Gt=Gr(ft);Gt.sequenceNumber<=o&&null===d.get(Gt.targetId)&&(ne++,Ee.push(F.Va(i,Gt)))}).next(function(){return Ir.$n(Ee)}).next(function(){return ne})},a.prototype.Ce=function(i,o){return da(i).rs(function(d,F){var ne=Gr(F);o(ne)})},a.prototype.ma=function(i){return Dl(i).get(Go.key).next(function(o){return V(null!==o),o})},a.prototype.Ta=function(i,o){return Dl(i).put(Go.key,o)},a.prototype.ga=function(i,o){return da(i).put(Ri(this.serializer,o))},a.prototype.Pa=function(i,o){var d=!1;return i.targetId>o.highestTargetId&&(o.highestTargetId=i.targetId,d=!0),i.sequenceNumber>o.highestListenSequenceNumber&&(o.highestListenSequenceNumber=i.sequenceNumber,d=!0),d},a.prototype.ba=function(i){return this.ma(i).next(function(o){return o.targetCount})},a.prototype.va=function(i,o){var d=ze(o),F=IDBKeyRange.bound([d,Number.NEGATIVE_INFINITY],[d,Number.POSITIVE_INFINITY]),ne=null;return da(i).rs({range:F,index:To.queryTargetsIndexName},function(Ee,je,ft){var Gt=Gr(je);nt(o,Gt.target)&&(ne=Gt,ft.done())}).next(function(){return ne})},a.prototype.Sa=function(i,o,d){var F=this,ne=[],Ee=fa(i);return o.forEach(function(je){var ft=tr(je.path);ne.push(Ee.put(new Wi(d,ft))),ne.push(F.No.Da(i,d,je))}),Ir.$n(ne)},a.prototype.Ca=function(i,o,d){var F=this,ne=fa(i);return Ir.forEach(o,function(Ee){var je=tr(Ee.path);return Ir.$n([ne.delete([d,je]),F.No.Na(i,d,Ee)])})},a.prototype.pa=function(i,o){var d=fa(i),F=IDBKeyRange.bound([o],[o+1],!1,!0);return d.delete(F)},a.prototype.Fa=function(i,o){var d=IDBKeyRange.bound([o],[o+1],!1,!0),F=fa(i),ne=we();return F.rs({range:d,ss:!0},function(Ee,je,ft){var Gt=Ie(Ee[1]),pn=new I(Gt);ne=ne.add(pn)}).next(function(){return ne})},a.prototype.Ho=function(i,o){var d=tr(o.path),F=IDBKeyRange.bound([d],[Ot(d)],!1,!0),ne=0;return fa(i).rs({index:Wi.documentTargetsIndex,ss:!0,range:F},function(Ee,je,ft){0!==Ee[0]&&(ne++,ft.done())}).next(function(){return ne>0})},a.prototype.Ue=function(i,o){return da(i).get(o).next(function(d){return d?Gr(d):null})},a}();function da(a){return zo.Qn(a,To.store)}function Dl(a){return zo.Qn(a,Go.store)}function fa(a){return zo.Qn(a,Wi.store)}var xu="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Mu=function(a){function i(o,d){var F=this;return(F=a.call(this)||this).jo=o,F.xa=d,F}return t.__extends(i,a),i}(B),zo=function(){function a(i,o,d,F,ne,Ee,je,ft,Gt,pn){if(this.allowTabSynchronization=i,this.persistenceKey=o,this.clientId=d,this.fn=ne,this.window=Ee,this.document=je,this.$a=Gt,this.ka=pn,this.Ma=null,this.Oa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.La=null,this.inForeground=!1,this.Ba=null,this.qa=null,this.Ua=Number.NEGATIVE_INFINITY,this.Qa=function(Rn){return Promise.resolve()}
1,!a.Ln())throw new C(P.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.No=new fo(this,F),this.Wa=o+"main",this.serializer=new Te(ft),this.ja=new ki(this.Wa,10,new Co(this.serializer)),this.Ka=new Ru(this.No,this.serializer),this.Dr=new Pu,this.vr=new eo(this.serializer,this.Dr),this.window&&this.window.localStorage?this.Ga=this.window.localStorage:(this.Ga=null,!1===pn&&v("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return a.Qn=function(i,o){if(i instanceof Mu)return ki.Qn(i.jo,o);throw M()},a.prototype.start=function(){var i=this;return this.za().then(function(){if(!i.isPrimary&&!i.allowTabSynchronization)throw new C(P.FAILED_PRECONDITION,xu);return i.Ha(),i.Ya(),i.Ja(),i.runTransaction("getHighestListenSequenceNumber","readonly",function(o){return i.Ka.Ia(o)})}).then(function(o){i.Ma=new wi(o,i.$a)}).then(function(){i.Oa=!0}).catch(function(o){return i.ja&&i.ja.close(),Promise.reject(o)})},a.prototype.Xa=function(i){var o=this;return this.Qa=function(d){return t.__awaiter(o,void 0,void 0,function(){return t.__generator(this,function(F){return this.Ei?[2,i(d)]:[2]})})},i(this.isPrimary)},a.prototype.Za=function(i){var o=this;this.ja.Kn(function(d){return t.__awaiter(o,void 0,void 0,function(){return t.__generator(this,function(F){switch(F.label){case 0:return null===d.newVersion?[4,i()]:[3,2];case 1:F.sent(),F.label=2;case 2:return[2]}})})})},a.prototype.tc=function(i){var o=this;this.networkEnabled!==i&&(this.networkEnabled=i,this.fn.ws(function(){return t.__awaiter(o,void 0,void 0,function(){return t.__generator(this,function(d){switch(d.label){case 0:return this.Ei?[4,this.za()]:[3,2];case 1:d.sent(),d.label=2;case 2:return[2]}})})}))},a.prototype.za=function(){var i=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",function(o){return ru(o).put(new Vo(i.clientId,Date.now(),i.networkEnabled,i.inForeground)).next(function(){if(i.isPrimary)return i.ec(o).next(function(d){d||(i.isPrimary=!1,i.fn.Cs(function(){return i.Qa(!1)}))})}).next(function(){return i.nc(o)}).next(function(d){return i.isPrimary&&!d?i.sc(o).next(function(){return!1}):!!d&&i.ic(o).next(function(){return!0})})}).catch(function(o){if(Us(o))return m("IndexedDbPersistence","Failed to extend owner lease: ",o),i.isPrimary;if(!i.allowTabSynchronization)throw o;return m("IndexedDbPersistence","Releasing owner lease after error during lease refresh",o),!1}).then(function(o){i.isPrimary!==o&&i.fn.Cs(function(){return i.Qa(o)}),i.isPrimary=o})},a.prototype.ec=function(i){var o=this;return Za(i).get(qs.key).next(function(d){return Ir.resolve(o.rc(d))})},a.prototype.oc=function(i){return ru(i).delete(this.clientId)},a.prototype.ac=function(){return t.__awaiter(this,void 0,void 0,function(){var i,o,d,ne=this;return t.__generator(this,function(Ee){switch(Ee.label){case 0:return!this.isPrimary||this.cc(this.Ua,18e5)?[3,2]:(this.Ua=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",function(je){var ft=a.Qn(je,Vo.store);return ft.ts().next(function(Gt){var pn=ne.uc(Gt,18e5),Rn=Gt.filter(function(On){return-1===pn.indexOf(On)});return Ir.forEach(Rn,function(On){return ft.delete(On.clientId)}).next(function(){return Rn})})}).catch(function(){return[]})]);case 1:if(i=Ee.sent(),this.Ga)for(o=0,d=i;o<d.length;o++)this.Ga.removeItem(this.hc(d[o].clientId));Ee.label=2;case 2:return[2]}})})},a.prototype.Ja=function(){var i=this;this.qa=this.fn.yn("client_metadata_refresh",4e3,function(){return i.za().then(function(){return i.ac()}).then(function(){return i.Ja()})})},a.prototype.rc=function(i){return!!i&&i.ownerId===this.clientId},a.prototype.nc=function(i){var o=this;return this.ka?Ir.resolve(!0):Za(i).get(qs.key).next(function(d){if(null!==d&&o.cc(d.leaseTimestampMs,5e3)&&!o.lc(d.ownerId)){if(o.rc(d)&&o.networkEnabled)return!0;if(!o.rc(d)){if(!d.allowTabSynchronization)throw new C(P.FAILED_PRECONDITION,xu);return!1}}return!(!o.networkEnabled||!o.inForeground)||ru(i).ts().next(function(F){return void 0===o.uc(F,5e3).find(function(ne){return!(o.clientId===ne.clientId||!(!o.networkEnabled&&ne.networkEnabled||!o.inForeground&&ne.inForeground&&o.networkEnabled===ne.networkEnabled))})})}).next(function(d){return o.isPrimary!==d&&m("IndexedDbPersistence","Client "+(d?"
1is":"is not")+" eligible for a primary lease."),d})},a.prototype.Di=function(){return t.__awaiter(this,void 0,void 0,function(){var i=this;return t.__generator(this,function(o){switch(o.label){case 0:return this.Oa=!1,this._c(),this.qa&&(this.qa.cancel(),this.qa=null),this.fc(),this.dc(),[4,this.ja.runTransaction("shutdown","readwrite",[qs.store,Vo.store],function(d){var F=new Mu(d,wi.ai);return i.sc(F).next(function(){return i.oc(F)})})];case 1:return o.sent(),this.ja.close(),this.wc(),[2]}})})},a.prototype.uc=function(i,o){var d=this;return i.filter(function(F){return d.cc(F.updateTimeMs,o)&&!d.lc(F.clientId)})},a.prototype.pi=function(){var i=this;return this.runTransaction("getActiveClients","readonly",function(o){return ru(o).ts().next(function(d){return i.uc(d,18e5).map(function(F){return F.clientId})})})},Object.defineProperty(a.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),a.prototype.mc=function(i){return ri.xo(i,this.serializer,this.Dr,this.No)},a.prototype.Tc=function(){return this.Ka},a.prototype.Ec=function(){return this.vr},a.prototype.Ic=function(){return this.Dr},a.prototype.runTransaction=function(i,o,d){var ne,F=this;return m("IndexedDbPersistence","Starting transaction:",i),this.ja.runTransaction(i,"readonly"===o?"readonly":"readwrite",bd,function(je){return ne=new Mu(je,F.Ma?F.Ma.next():wi.ai),"readwrite-primary"===o?F.ec(ne).next(function(ft){return!!ft||F.nc(ne)}).next(function(ft){if(!ft)throw v("Failed to obtain primary lease for action '"+i+"'."),F.isPrimary=!1,F.fn.Cs(function(){return F.Qa(!1)}),new C(P.FAILED_PRECONDITION,g);return d(ne)}).next(function(ft){return F.ic(ne).next(function(){return ft})}):F.Ac(ne).next(function(){return d(ne)})}).then(function(je){return ne.br(),je})},a.prototype.Ac=function(i){var o=this;return Za(i).get(qs.key).next(function(d){if(null!==d&&o.cc(d.leaseTimestampMs,5e3)&&!o.lc(d.ownerId)&&!o.rc(d)&&!(o.ka||o.allowTabSynchronization&&d.allowTabSynchronization))throw new C(P.FAILED_PRECONDITION,xu)})},a.prototype.ic=function(i){var o=new qs(this.clientId,this.allowTabSynchronization,Date.now());return Za(i).put(qs.key,o)},a.Ln=function(){return ki.Ln()},a.prototype.sc=function(i){var o=this,d=Za(i);return d.get(qs.key).next(function(F){return o.rc(F)?(m("IndexedDbPersistence","Releasing primary lease."),d.delete(qs.key)):Ir.resolve()})},a.prototype.cc=function(i,o){var d=Date.now();return!(i<d-o||i>d&&(v("Detected an update time that is in the future: "+i+" > "+d),1))},a.prototype.Ha=function(){var i=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ba=function(){i.fn.ws(function(){return i.inForeground="visible"===i.document.visibilityState,i.za()})},this.document.addEventListener("visibilitychange",this.Ba),this.inForeground="visible"===this.document.visibilityState)},a.prototype.fc=function(){this.Ba&&(this.document.removeEventListener("visibilitychange",this.Ba),this.Ba=null)},a.prototype.Ya=function(){var i,o=this;"function"==typeof(null===(i=this.window)||void 0===i?void 0:i.addEventListener)&&(this.La=function(){o._c(),o.fn.ws(function(){return o.Di()})},this.window.addEventListener("unload",this.La))},a.prototype.dc=function(){this.La&&(this.window.removeEventListener("unload",this.La),this.La=null)},a.prototype.lc=function(i){var o;try{var d=null!==(null===(o=this.Ga)||void 0===o?void 0:o.getItem(this.hc(i)));return m("IndexedDbPersistence","Client '"+i+"' "+(d?"is":"is not")+" zombied in LocalStorage"),d}catch(F){return v("IndexedDbPersistence","Failed to get zombied client id.",F),!1}},a.prototype._c=function(){if(this.Ga)try{this.Ga.setItem(this.hc(this.clientId),String(Date.now()))}catch(i){v("Failed to set zombie client id.",i)}},a.prototype.wc=function(){if(this.Ga)try{this.Ga.removeItem(this.hc(this.clientId))}catch(i){}},a.prototype.hc=function(i){return"firestore_zombie_"+this.persistenceKey+"_"+i},a}();function Za(a){return zo.Qn(a,qs.store)}function ru(a){return zo.Qn(a,Vo.store)}var fo=function(){function a(i,o){this.db=i,this.wo=new zn(this,o)}return a.prototype.Po=function(i){var o=this.Rc(i);return this.db.Tc().ba(i).next(function(d){return o.next(function(F){return d+F})})},a.prototype.Rc=function(i){var o=0;return this.Vo(i,function(d){o++}).next(function(){return o}
1)},a.prototype.Ce=function(i,o){return this.db.Tc().Ce(i,o)},a.prototype.Vo=function(i,o){return this.gc(i,function(d,F){return o(F)})},a.prototype.Da=function(i,o,d){return Pl(i,d)},a.prototype.Na=function(i,o,d){return Pl(i,d)},a.prototype.po=function(i,o,d){return this.db.Tc().po(i,o,d)},a.prototype.Go=function(i,o){return Pl(i,o)},a.prototype.Pc=function(i,o){return F=o,ne=!1,ts(d=i).os(function(Ee){return xr(d,Ee,F).next(function(je){return je&&(ne=!0),Ir.resolve(!je)})}).next(function(){return ne});var d,F,ne},a.prototype.bo=function(i,o){var d=this,F=this.db.Ec().ra(),ne=[],Ee=0;return this.gc(i,function(je,ft){if(ft<=o){var Gt=d.Pc(i,je).next(function(pn){if(!pn)return Ee++,F.Rr(i,je).next(function(){return F.Ar(je),fa(i).delete([0,tr(je.path)])})});ne.push(Gt)}}).next(function(){return Ir.$n(ne)}).next(function(){return F.apply(i)}).next(function(){return Ee})},a.prototype.removeTarget=function(i,o){var d=o.st(i.xa);return this.db.Tc().ya(i,d)},a.prototype.yc=function(i,o){return Pl(i,o)},a.prototype.gc=function(i,o){var d,F=fa(i),ne=wi.ai;return F.rs({index:Wi.documentTargetsIndex},function(Ee,je){var Gt=je.path,pn=je.sequenceNumber;0===Ee[0]?(ne!==wi.ai&&o(new I(Ie(d)),ne),ne=pn,d=Gt):ne=wi.ai}).next(function(){ne!==wi.ai&&o(new I(Ie(d)),ne)})},a.prototype.So=function(i){return this.db.Ec().aa(i)},a}();function Pl(a,i){return fa(a).put((d=a.xa,new Wi(0,tr(i.path),d)));var d}function ja(a,i){var o=a.projectId;return a.j||(o+="."+a.database),"firestore/"+i+"/"+o+"/"}var ip=function(){function a(i,o,d){this.persistence=i,this.Vc=o,this.bc=new tn(Qe),this.vc=new yt(function(F){return ze(F)},nt),this.Sc=ct.min(),this.Sr=i.mc(d),this.Dc=i.Ec(),this.Ka=i.Tc(),this.Cc=new fe(this.Dc,this.Sr,this.persistence.Ic()),this.Vc.Nc(this.Cc)}return a.prototype.Io=function(i){var o=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",function(d){return i.vo(d,o.bc)})},a}();function iu(a,i){var o=f(a);return o.persistence.runTransaction("Acknowledge batch","readwrite-primary",function(d){var Ee,je,ft,Gt,pn,Rn,On,F=i.batch.keys(),ne=o.Dc.ra({oa:!0});return(Ee=o,je=d,ft=i,Gt=ne,pn=ft.batch,Rn=pn.keys(),On=Ir.resolve(),Rn.forEach(function(Kn){On=On.next(function(){return Gt.Rr(je,Kn)}).next(function(lr){var vr=lr,ni=ft.dr.get(Kn);V(null!==ni),(!vr||vr.version.L(ni)<0)&&(vr=pn.cr(Kn,vr,ft))&&Gt.Er(vr,ft._r)})}),On.next(function(){return Ee.Sr.Wo(je,pn)})).next(function(){return ne.apply(d)}).next(function(){return o.Sr.zo(d)}).next(function(){return o.Cc.kr(d,F)})})}function su(a){var i=f(a);return i.persistence.runTransaction("Get last remote snapshot version","readonly",function(o){return i.Ka.Ea(o)})}function dh(a,i){var o=f(a),d=i.nt,F=o.bc;return o.persistence.runTransaction("Apply remote event","readwrite-primary",function(ne){var Ee=o.Dc.ra({oa:!0});F=o.bc;var je=[];i.zt.forEach(function(Rn,On){var ni,Qr,di,Kn=F.get(On);if(Kn){je.push(o.Ka.Ca(ne,Rn.se,On).next(function(){return o.Ka.Sa(ne,Rn.ee,On)}));var lr=Rn.resumeToken;if(lr.O()>0){var vr=Kn.it(lr,d).st(ne.xa);F=F.ot(On,vr),ni=Kn,di=Rn,V((Qr=vr).resumeToken.O()>0),(0===ni.resumeToken.O()||Qr.nt.X()-ni.nt.X()>=3e8||di.ee.size+di.ne.size+di.se.size>0)&&je.push(o.Ka.ya(ne,vr))}}});var ft=jn(),Gt=we();if(i.Yt.forEach(function(Rn,On){Gt=Gt.add(Rn)}),je.push(Ee.getEntries(ne,Gt).next(function(Rn){i.Yt.forEach(function(On,Kn){var lr=Rn.get(On);Kn instanceof Wn&&Kn.version.isEqual(ct.min())?(Ee.Ar(On,d),ft=ft.ot(On,Kn)):null==lr||Kn.version.L(lr.version)>0||0===Kn.version.L(lr.version)&&lr.hasPendingWrites?(Ee.Er(Kn,d),ft=ft.ot(On,Kn)):m("LocalStore","Ignoring outdated watch update for ",On,". Current version:",lr.version," Watch version:",Kn.version),i.Jt.has(On)&&je.push(o.persistence.No.yc(ne,On))})})),!d.isEqual(ct.min())){var pn=o.Ka.Ea(ne).next(function(Rn){return o.Ka.Aa(ne,ne.xa,d)});je.push(pn)}return Ir.$n(je).next(function(){return Ee.apply(ne)}).next(function(){return o.Cc.Mr(ne,ft)})}).then(function(ne){return o.bc=F,ne})}function fh(a,i){var o=f(a);return o.persistence.runTransaction("Get next mutation batch","readonly",function(d){return void 0===i&&(i=-1),o.Sr.Bo(d,i)})}function el(a,i){var o=f(a);return o.persistence.runTransaction("Allocate target","readwrite",function(d){var F;return o.Ka.va(d,i).next(function(ne){return ne?Ir.resolve(F=ne):o.Ka.wa(d).next(function(Ee){return F=new bt(i,Ee,0,d.xa),o.Ka.Ra(d,F).next(function(){return F})})})}).then(function(d){var F=o.bc.get(d.targetId);return(null===F||d.nt.L(F.nt)>0)&&(o.bc=o.bc.ot(d.targetId,d),o.vc.set(i,d.targetId)),d})}function Ua(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F,ne,Ee;return t.__generator(this,function(je){switch(je.label){case 0:d=f(a),F=d.bc.get(i),ne=o?"readwrite":"readwrite-primary",je.label=1;case 1:return je.trys.push([1,4,,5]),o?[3,3]:[4,d.persistence.runTransaction("Release target",ne,function(ft){return d.persistence.No.removeTarget(ft,F)})];case 2:je.sent(),je.label=3;case 3:return[3,5];case 4:if(!Us(Ee=je.sent()))throw Ee;return m("LocalStore","Failed to update sequence numbers for target "+i+": "+Ee),[3,5];case 5:return d.bc=d.bc.remove(i),d.vc.delete(F.target),[2]}})})}function Va(a,i,o){var d=f(a),F=ct.min(),ne=we();
1return d.persistence.runTransaction("Execute query","readonly",function(Ee){return(je=d,ft=Ee,Gt=Zn(i),pn=f(je),Rn=pn.vc.get(Gt),void 0!==Rn?Ir.resolve(pn.bc.get(Rn)):pn.Ka.va(ft,Gt)).next(function(je){if(je)return F=je.lastLimboFreeSnapshotVersion,d.Ka.Fa(Ee,je.targetId).next(function(ft){ne=ft})}).next(function(){return d.Vc.Lr(Ee,i,o?F:ct.min(),o?ne:we())}).next(function(je){return{documents:je,Fc:ne}});var je,ft,Gt,pn,Rn})}function ou(a,i){var o=f(a),d=f(o.Ka),F=o.bc.get(i);return F?Promise.resolve(F.target):o.persistence.runTransaction("Get target data","readonly",function(ne){return d.Ue(ne,i).next(function(Ee){return Ee?Ee.target:null})})}function Rl(a){var i=f(a);return i.persistence.runTransaction("Get new document changes","readonly",function(o){return F=o,ne=i.Sc,Ee=f(i.Dc),je=jn(),ft=pt(ne),Gt=Ni(F),pn=IDBKeyRange.lowerBound(ft,!0),Gt.rs({index:Rs.readTimeIndex,range:pn},function(Rn,On){var Kn=_e(Ee.serializer,On);je=je.ot(Kn.key,Kn),ft=On.readTime}).next(function(){return{xc:je,readTime:Vt(ft)}});var F,ne,Ee,je,ft,Gt,pn}).then(function(o){var d=o.xc;return i.Sc=o.readTime,d})}function _d(a){return t.__awaiter(this,void 0,void 0,function(){var i;return t.__generator(this,function(o){return[2,(i=f(a)).persistence.runTransaction("Synchronize last document change read time","readonly",function(d){return ne=Ni(d),Ee=ct.min(),ne.rs({index:Rs.readTimeIndex,reverse:!0},function(je,ft,Gt){ft.readTime&&(Ee=Vt(ft.readTime)),Gt.done()}).next(function(){return Ee});var ne,Ee}).then(function(d){i.Sc=d})]})})}function yo(a){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(i){if(a.code!==P.FAILED_PRECONDITION||a.message!==g)throw a;return m("LocalStore","Unexpectedly lost primary lease"),[2]})})}var No=function(){function a(){this.$c=new Nn(Ls.kc),this.Mc=new Nn(Ls.Oc)}return a.prototype.m=function(){return this.$c.m()},a.prototype.Da=function(i,o){var d=new Ls(i,o);this.$c=this.$c.add(d),this.Mc=this.Mc.add(d)},a.prototype.Lc=function(i,o){var d=this;i.forEach(function(F){return d.Da(F,o)})},a.prototype.Na=function(i,o){this.Bc(new Ls(i,o))},a.prototype.qc=function(i,o){var d=this;i.forEach(function(F){return d.Na(F,o)})},a.prototype.Uc=function(i){var o=this,d=new I(new se([])),F=new Ls(d,i),ne=new Ls(d,i+1),Ee=[];return this.Mc.Ft([F,ne],function(je){o.Bc(je),Ee.push(je.key)}),Ee},a.prototype.Qc=function(){var i=this;this.$c.forEach(function(o){return i.Bc(o)})},a.prototype.Bc=function(i){this.$c=this.$c.delete(i),this.Mc=this.Mc.delete(i)},a.prototype.Wc=function(i){var o=new I(new se([])),d=new Ls(o,i),F=new Ls(o,i+1),ne=we();return this.Mc.Ft([d,F],function(Ee){ne=ne.add(Ee.key)}),ne},a.prototype.Ho=function(i){var o=new Ls(i,0),d=this.$c.$t(o);return null!==d&&i.isEqual(d.key)},a}(),Ls=function(){function a(i,o){this.key=i,this.jc=o}return a.kc=function(i,o){return I.i(i.key,o.key)||Qe(i.jc,o.jc)},a.Oc=function(i,o){return Qe(i.jc,o.jc)||I.i(i.key,o.key)},a}(),ph=function(a,i){this.user=i,this.type="OAuth",this.Kc={},this.Kc.Authorization="Bearer "+a},bc=function(){function a(){this.Gc=null}return a.prototype.getToken=function(){return Promise.resolve(null)},a.prototype.zc=function(){},a.prototype.Hc=function(i){this.Gc=i,i(Vi.UNAUTHENTICATED)},a.prototype.Yc=function(){this.Gc=null},a}(),gh=function(){function a(i){var o=this;this.Jc=null,this.currentUser=Vi.UNAUTHENTICATED,this.Xc=!1,this.Zc=0,this.Gc=null,this.forceRefresh=!1,this.Jc=function(){o.Zc++,o.currentUser=o.tu(),o.Xc=!0,o.Gc&&o.Gc(o.currentUser)},this.Zc=0,this.auth=i.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Jc):(this.Jc(null),i.get().then(function(d){o.auth=d,o.Jc&&o.auth.addAuthTokenListener(o.Jc)},function(){}))}return a.prototype.getToken=function(){var i=this,o=this.Zc,d=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(d).then(function(F){return i.Zc!==o?(m("FirebaseCredentialsProvider","getToken aborted due to token change."),i.getToken()):F?(V("string"==typeof F.accessToken),new ph(F.accessToken,i.currentUser)):null}):Promise.resolve(null)},a.prototype.zc=function(){this.forceRefresh=!0},a.prototype.Hc=function(i){this.Gc=i,this.Xc&&i(this.currentUser)},a.prototype.Yc=function(){this.auth&&this.auth.removeAuthTokenListener(this.Jc),this.Jc=null,this.Gc=null},a.prototype.tu=function(){var i=this.auth&&this.auth.getUid();return V(null===i||"string"==typeof i),new Vi(i)},a}(),_c=function(){function a(i,o){this.eu=i,this.nu=o,this.type="FirstParty",this.user=Vi.ni}return Object.defineProperty(a.prototype,"Kc",{get:function(){var i={"X-Goog-AuthUser":this.nu},o=this.eu.auth.getAuthHeaderValueForFirstParty([]);return o&&(i.Authorization=o),i}
1,enumerable:!1,configurable:!0}),a}(),Ou=function(){function a(i,o){this.eu=i,this.nu=o}return a.prototype.getToken=function(){return Promise.resolve(new _c(this.eu,this.nu))},a.prototype.Hc=function(i){i(Vi.ni)},a.prototype.Yc=function(){},a.prototype.zc=function(){},a}(),pa=function(){function a(i,o,d,F,ne,Ee){this.fn=i,this.su=d,this.iu=F,this.ru=ne,this.listener=Ee,this.state=0,this.ou=0,this.au=null,this.stream=null,this.ys=new xo(i,o)}return a.prototype.cu=function(){return 1===this.state||2===this.state||4===this.state},a.prototype.uu=function(){return 2===this.state},a.prototype.start=function(){3!==this.state?this.auth():this.hu()},a.prototype.stop=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(i){switch(i.label){case 0:return this.cu()?[4,this.close(0)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},a.prototype.lu=function(){this.state=0,this.ys.reset()},a.prototype._u=function(){var i=this;this.uu()&&null===this.au&&(this.au=this.fn.yn(this.su,6e4,function(){return i.fu()}))},a.prototype.du=function(i){this.wu(),this.stream.send(i)},a.prototype.fu=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(i){return this.uu()?[2,this.close(0)]:[2]})})},a.prototype.wu=function(){this.au&&(this.au.cancel(),this.au=null)},a.prototype.close=function(i,o){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(d){switch(d.label){case 0:return this.wu(),this.ys.cancel(),this.ou++,3!==i?this.ys.reset():o&&o.code===P.RESOURCE_EXHAUSTED?(v(o.toString()),v("Using maximum backoff delay to prevent overloading the backend."),this.ys.Rn()):o&&o.code===P.UNAUTHENTICATED&&this.ru.zc(),null!==this.stream&&(this.mu(),this.stream.close(),this.stream=null),this.state=i,[4,this.listener.Tu(o)];case 1:return d.sent(),[2]}})})},a.prototype.mu=function(){},a.prototype.auth=function(){var i=this;this.state=1;var o=this.Eu(this.ou),d=this.ou;this.ru.getToken().then(function(F){i.ou===d&&i.Iu(F)},function(F){o(function(){var ne=new C(P.UNKNOWN,"Fetching auth token failed: "+F.message);return i.Au(ne)})})},a.prototype.Iu=function(i){var o=this,d=this.Eu(this.ou);this.stream=this.Ru(i),this.stream.gu(function(){d(function(){return o.state=2,o.listener.gu()})}),this.stream.Tu(function(F){d(function(){return o.Au(F)})}),this.stream.onMessage(function(F){d(function(){return o.onMessage(F)})})},a.prototype.hu=function(){var i=this;this.state=4,this.ys.gn(function(){return t.__awaiter(i,void 0,void 0,function(){return t.__generator(this,function(o){return this.state=0,this.start(),[2]})})})},a.prototype.Au=function(i){return m("PersistentStream","close with error: "+i),this.stream=null,this.close(3,i)},a.prototype.Eu=function(i){var o=this;return function(d){o.fn.ws(function(){return o.ou===i?d():(m("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())})}},a}(),xl=function(a){function i(o,d,F,ne,Ee){var je=this;return(je=a.call(this,o,"listen_stream_connection_backoff","listen_stream_idle",d,F,Ee)||this).serializer=ne,je}return t.__extends(i,a),i.prototype.Ru=function(o){return this.iu.Pu("Listen",o)},i.prototype.onMessage=function(o){this.ys.reset();var d=function(ne,Ee){var je,jo;if("targetChange"in Ee){var ft="NO_CHANGE"===(jo=Ee.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===jo?1:"REMOVE"===jo?2:"CURRENT"===jo?3:"RESET"===jo?4:M(),Gt=Ee.targetChange.targetIds||[],pn=function(jo,qa){return jo.Qe?(V(void 0===qa||"string"==typeof qa),ln.fromBase64String(qa||"")):(V(void 0===qa||qa instanceof Uint8Array),ln.fromUint8Array(qa||new Uint8Array))}(ne,Ee.targetChange.resumeToken),Rn=Ee.targetChange.cause,On=Rn&&function(jo){var qa=void 0===jo.code?P.UNKNOWN:vt(jo.code);return new C(qa,jo.message||"")}(Rn);je=new ir(ft,Gt,pn,On||null)}else if("documentChange"in Ee){var Kn=Ee.documentChange,lr=Yr(ne,Kn.document.name),vr=kr(Kn.document.updateTime),ni=new Or({mapValue:{fields:Kn.document.fields}}),Qr=new It(lr,vr,ni,{});je=new $n(Kn.targetIds||[],Kn.removedTargetIds||[],Qr.key,Qr)}
1else if("documentDelete"in Ee){var Bi=Ee.documentDelete,ls=Yr(ne,Bi.document),Cs=Bi.readTime?kr(Bi.readTime):ct.min(),Qo=new Wn(ls,Cs);je=new $n([],Bi.removedTargetIds||[],Qo.key,Qo)}else if("documentRemove"in Ee){var gl=Ee.documentRemove,ml=Yr(ne,gl.document);je=new $n([],gl.removedTargetIds||[],ml,null)}else{if(!("filter"in Ee))return M();var Jo=Ee.filter,tc=new Kt(Jo.count||0);je=new Gn(Jo.targetId,tc)}return je}(this.serializer,o),F=function(ne){if(!("targetChange"in ne))return ct.min();var Ee=ne.targetChange;return Ee.targetIds&&Ee.targetIds.length?ct.min():Ee.readTime?kr(Ee.readTime):ct.min()}(o);return this.listener.yu(d,F)},i.prototype.Vu=function(o){var ne,Ee,je,ft,d={};d.database=ci(this.serializer),d.addTarget=(ne=this.serializer,(je=mt(ft=(Ee=o).target)?{documents:si(ne,ft)}:{query:cs(ne,ft)}).targetId=Ee.targetId,Ee.resumeToken.O()>0&&(je.resumeToken=wr(ne,Ee.resumeToken)),je);var F=function(ne,Ee){var je=function(ft,Gt){switch(Gt){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return M()}}(0,Ee.et);return null==je?null:{"goog-listen-tags":je}}(0,o);F&&(d.labels=F),this.du(d)},i.prototype.pu=function(o){var d={};d.database=ci(this.serializer),d.removeTarget=o,this.du(d)},i}(pa),Ml=function(a){function i(o,d,F,ne,Ee){var je=this;return(je=a.call(this,o,"write_stream_connection_backoff","write_stream_idle",d,F,Ee)||this).serializer=ne,je.bu=!1,je}return t.__extends(i,a),Object.defineProperty(i.prototype,"vu",{get:function(){return this.bu},enumerable:!1,configurable:!0}),i.prototype.start=function(){this.bu=!1,this.lastStreamToken=void 0,a.prototype.start.call(this)},i.prototype.mu=function(){this.bu&&this.Su([])},i.prototype.Ru=function(o){return this.iu.Pu("Write",o)},i.prototype.onMessage=function(o){if(V(!!o.streamToken),this.lastStreamToken=o.streamToken,this.bu){this.ys.reset();var d=(Ee=o.commitTime,(ne=o.writeResults)&&ne.length>0?(V(void 0!==Ee),ne.map(function(je){return function(ft,Gt){var pn=kr(ft.updateTime?ft.updateTime:Gt);pn.isEqual(ct.min())&&(pn=kr(Gt));var Rn=null;return ft.transformResults&&ft.transformResults.length>0&&(Rn=ft.transformResults),new _r(pn,Rn)}(je,Ee)})):[]),F=kr(o.commitTime);return this.listener.Du(F,d)}var ne,Ee;return V(!o.writeResults||0===o.writeResults.length),this.bu=!0,this.listener.Cu()},i.prototype.Nu=function(){var o={};o.database=ci(this.serializer),this.du(o)},i.prototype.Su=function(o){var d=this,F={streamToken:this.lastStreamToken,writes:o.map(function(ne){return Oi(d.serializer,ne)})};this.du(F)},i}(pa),ks=function(a){function i(o,d,F){var ne=this;return(ne=a.call(this)||this).credentials=o,ne.iu=d,ne.serializer=F,ne.Fu=!1,ne}return t.__extends(i,a),i.prototype.xu=function(){if(this.Fu)throw new C(P.FAILED_PRECONDITION,"The client has already been terminated.")},i.prototype.$u=function(o,d,F){var ne=this;return this.xu(),this.credentials.getToken().then(function(Ee){return ne.iu.$u(o,d,F,Ee)}).catch(function(Ee){throw Ee.code===P.UNAUTHENTICATED&&ne.credentials.zc(),Ee})},i.prototype.ku=function(o,d,F){var ne=this;return this.xu(),this.credentials.getToken().then(function(Ee){return ne.iu.ku(o,d,F,Ee)}).catch(function(Ee){throw Ee.code===P.UNAUTHENTICATED&&ne.credentials.zc(),Ee})},i.prototype.terminate=function(){this.Fu=!1},i}(function(){}),wa=function(){function a(i,o){this.cs=i,this.di=o,this.state="Unknown",this.Mu=0,this.Ou=null,this.Lu=!0}return a.prototype.Bu=function(){var i=this;0===this.Mu&&(this.qu("Unknown"),this.Ou=this.cs.yn("online_state_timeout",1e4,function(){return i.Ou=null,i.Uu("Backend didn't respond within 10 seconds."),i.qu("Offline"),Promise.resolve()}))},a.prototype.Qu=function(i){"Online"===this.state?this.qu("Unknown"):(this.Mu++,this.Mu>=1&&(this.Wu(),this.Uu("Connection failed 1 times. Most recent error: "+i.toString()),this.qu("Offline")))},a.prototype.set=function(i){this.Wu(),this.Mu=0,"Online"===i&&(this.Lu=!1),this.qu(i)},a.prototype.qu=function(i){i!==this.state&&(this.state=i,this.di(i))},a.prototype.Uu=function(i){var o="Could not reach Cloud Firestore backend. "+i+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Lu?(v(o),this.Lu=!1):m("OnlineStateTracker",o)},a.prototype.Wu=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},a}(),ku=function(a,i,o,d,F){var ne=this;this.ju=a,this.Ku=i,this.cs=o,this.Gu={},this.zu=[],this.Hu=new Map,this.Yu=new Set,this.Ju=[],this.Xu=F,this.Xu.Zu(function(Ee){o.ws(function(){return t.__awaiter(ne,void 0,void 0,function(){return t.__generator(this,function(je){switch(je.label){case 0:return Io(this)?(m("RemoteStore","Restarting streams for network reach
1ability change."),[4,function(ft){return t.__awaiter(this,void 0,void 0,function(){var Gt;return t.__generator(this,function(pn){switch(pn.label){case 0:return(Gt=f(ft)).Yu.add(4),[4,no(Gt)];case 1:return pn.sent(),Gt.th.set("Unknown"),Gt.Yu.delete(4),[4,tl(Gt)];case 2:return pn.sent(),[2]}})})}(this)]):[3,2];case 1:je.sent(),je.label=2;case 2:return[2]}})})})}),this.th=new wa(o,d)};function tl(a){return t.__awaiter(this,void 0,void 0,function(){var i,o;return t.__generator(this,function(d){switch(d.label){case 0:if(!Io(a))return[3,4];i=0,o=a.Ju,d.label=1;case 1:return i<o.length?[4,(0,o[i])(!0)]:[3,4];case 2:d.sent(),d.label=3;case 3:return i++,[3,1];case 4:return[2]}})})}function no(a){return t.__awaiter(this,void 0,void 0,function(){var i,o;return t.__generator(this,function(d){switch(d.label){case 0:i=0,o=a.Ju,d.label=1;case 1:return i<o.length?[4,(0,o[i])(!1)]:[3,4];case 2:d.sent(),d.label=3;case 3:return i++,[3,1];case 4:return[2]}})})}function Nu(a){return t.__awaiter(this,void 0,void 0,function(){var i;return t.__generator(this,function(o){switch(o.label){case 0:return i=f(a),m("RemoteStore","RemoteStore shutting down."),i.Yu.add(5),[4,no(i)];case 1:return o.sent(),i.Xu.Di(),i.th.set("Unknown"),[2]}})})}function Fu(a,i){var o=f(a);o.Hu.has(i.targetId)||(o.Hu.set(i.targetId,i),Aa(o)?Ko(o):il(o).uu()&&nl(o,i))}function ta(a,i){var o=f(a),d=il(o);o.Hu.delete(i),d.uu()&&ro(o,i),0===o.Hu.size&&(d.uu()?d._u():Io(o)&&o.th.set("Unknown"))}function nl(a,i){a.eh.Ie(i.targetId),il(a).Vu(i)}function ro(a,i){a.eh.Ie(i),il(a).pu(i)}function Ko(a){a.eh=new jt({qe:function(i){return a.Gu.qe(i)},Ue:function(i){return a.Hu.get(i)||null}}),il(a).start(),a.th.Bu()}function Aa(a){return Io(a)&&!il(a).cu()&&a.Hu.size>0}function Io(a){return 0===f(a).Yu.size}function Lu(a){a.eh=void 0}function Sa(a){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(i){return a.Hu.forEach(function(o,d){nl(a,o)}),[2]})})}function au(a,i){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(o){return Lu(a),Aa(a)?(a.th.Qu(i),Ko(a)):a.th.set("Unknown"),[2]})})}function rl(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F,ne;return t.__generator(this,function(Ee){switch(Ee.label){case 0:if(a.th.set("Online"),!(i instanceof ir&&2===i.state&&i.cause))return[3,6];Ee.label=1;case 1:return Ee.trys.push([1,3,,5]),[4,function(je,ft){return t.__awaiter(this,void 0,void 0,function(){var Gt,pn,Rn,On;return t.__generator(this,function(Kn){switch(Kn.label){case 0:Gt=ft.cause,pn=0,Rn=ft.targetIds,Kn.label=1;case 1:return pn<Rn.length?je.Hu.has(On=Rn[pn])?[4,je.Gu.nh(On,Gt)]:[3,3]:[3,5];case 2:Kn.sent(),je.Hu.delete(On),je.eh.removeTarget(On),Kn.label=3;case 3:Kn.label=4;case 4:return pn++,[3,1];case 5:return[2]}})})}(a,i)];case 2:return Ee.sent(),[3,5];case 3:return d=Ee.sent(),m("RemoteStore","Failed to remove targets %s: %s ",i.targetIds.join(","),d),[4,lu(a,d)];case 4:return Ee.sent(),[3,5];case 5:return[3,13];case 6:if(i instanceof $n?a.eh.be(i):i instanceof Gn?a.eh.$e(i):a.eh.De(i),o.isEqual(ct.min()))return[3,13];Ee.label=7;case 7:return Ee.trys.push([7,11,,13]),[4,su(a.ju)];case 8:return F=Ee.sent(),o.L(F)>=0?[4,(je=a,ft=o,Gt=je.eh.Oe(ft),Gt.zt.forEach(function(pn,Rn){if(pn.resumeToken.O()>0){var On=je.Hu.get(Rn);On&&je.Hu.set(Rn,On.it(pn.resumeToken,ft))}}),Gt.Ht.forEach(function(pn){var Rn=je.Hu.get(pn);if(Rn){je.Hu.set(pn,Rn.it(ln.B,Rn.nt)),ro(je,pn);var On=new bt(Rn.target,pn,1,Rn.sequenceNumber);nl(je,On)}}),je.Gu.sh(Gt))]:[3,10];case 9:Ee.sent(),Ee.label=10;case 10:return[3,13];case 11:return m("RemoteStore","Failed to raise snapshot:",ne=Ee.sent()),[4,lu(a,ne)];case 12:return Ee.sent(),[3,13];case 13:return[2]}var je,ft,Gt})})}function lu(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d=this;return t.__generator(this,function(F){switch(F.label){case 0:if(!Us(i))throw i;return a.Yu.add(1),[4,no(a)];case 1:return F.sent(),a.th.set("Offline"),o||(o=function(){return su(a.ju)}),a.cs.Cs(function(){return t.__awaiter(d,void 0,void 0,function(){return t.__generator(this,function(ne){switch(ne.label){case 0:return m("RemoteStore","Retrying IndexedDB access"),[4,o()];case 1:return ne.sent(),a.Yu.delete(1),[4,tl(a)];case 2:return ne.sent(),[2]}})})}),[2]}})})}function ga(a,i){return i().catch(function(o){return lu(a,o,i)})}function na(a){return t.__awaiter(this,void 0,void 0,function(){var i,o,d,F,ne;return t.__generator(this,function(Ee){switch(Ee.label){case 0:i=f(a),o=ma(i),d=i.zu.length>0?i.zu[i.zu.length-1].batchId:-1,Ee.label=1;case 1:if(!(Io(je=i)&&je.zu.length<10))return[3,7];Ee.label=2;case 2:return Ee.trys.push([2,4,,6]),[4,fh(i.ju,d)];
1case 3:return null===(F=Ee.sent())?(0===i.zu.length&&o._u(),[3,7]):(d=F.batchId,function(je,ft){je.zu.push(ft);var Gt=ma(je);Gt.uu()&&Gt.vu&&Gt.Su(ft.mutations)}(i,F),[3,6]);case 4:return ne=Ee.sent(),[4,lu(i,ne)];case 5:return Ee.sent(),[3,6];case 6:return[3,1];case 7:return po(i)&&Ec(i),[2]}var je})})}function po(a){return Io(a)&&!ma(a).cu()&&a.zu.length>0}function Ec(a){ma(a).start()}function mh(a){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(i){return ma(a).Nu(),[2]})})}function Ca(a){return t.__awaiter(this,void 0,void 0,function(){var i,o,d;return t.__generator(this,function(ne){for(i=ma(a),o=0,d=a.zu;o<d.length;o++)i.Su(d[o].mutations);return[2]})})}function vh(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F;return t.__generator(this,function(ne){switch(ne.label){case 0:return d=a.zu.shift(),F=w.from(d,i,o),[4,ga(a,function(){return a.Gu.ih(F)})];case 1:return ne.sent(),[4,na(a)];case 2:return ne.sent(),[2]}})})}function Bu(a,i){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(o){switch(o.label){case 0:return i&&ma(a).vu?[4,function(d,F){return t.__awaiter(this,void 0,void 0,function(){var ne,Ee;return t.__generator(this,function(je){switch(je.label){case 0:return Un(Ee=F.code)&&Ee!==P.ABORTED?(ne=d.zu.shift(),ma(d).lu(),[4,ga(d,function(){return d.Gu.rh(ne.batchId,F)})]):[3,3];case 1:return je.sent(),[4,na(d)];case 2:je.sent(),je.label=3;case 3:return[2]}})})}(a,i)]:[3,2];case 1:o.sent(),o.label=2;case 2:return po(a)&&Ec(a),[2]}})})}function ra(a,i){return t.__awaiter(this,void 0,void 0,function(){var o;return t.__generator(this,function(F){switch(F.label){case 0:return o=f(a),i?(o.Yu.delete(2),[4,tl(o)]):[3,2];case 1:return F.sent(),[3,5];case 2:return i?[3,4]:(o.Yu.add(2),[4,no(o)]);case 3:F.sent(),o.th.set("Unknown"),F.label=4;case 4:F.label=5;case 5:return[2]}})})}function il(a){var o,d,F,ne,i=this;return a.oh||(a.oh=(o=a.Ku,d=a.cs,F={gu:Sa.bind(null,a),Tu:au.bind(null,a),yu:rl.bind(null,a)},(ne=f(o)).xu(),new xl(d,ne.iu,ne.credentials,ne.serializer,F)),a.Ju.push(function(o){return t.__awaiter(i,void 0,void 0,function(){return t.__generator(this,function(d){switch(d.label){case 0:return o?(a.oh.lu(),Aa(a)?Ko(a):a.th.set("Unknown"),[3,3]):[3,1];case 1:return[4,a.oh.stop()];case 2:d.sent(),Lu(a),d.label=3;case 3:return[2]}})})})),a.oh}function ma(a){var o,d,F,ne,i=this;return a.ah||(a.ah=(o=a.Ku,d=a.cs,F={gu:mh.bind(null,a),Tu:Bu.bind(null,a),Cu:Ca.bind(null,a),Du:vh.bind(null,a)},(ne=f(o)).xu(),new Ml(d,ne.iu,ne.credentials,ne.serializer,F)),a.Ju.push(function(o){return t.__awaiter(i,void 0,void 0,function(){return t.__generator(this,function(d){switch(d.label){case 0:return o?(a.ah.lu(),[4,na(a)]):[3,2];case 1:return d.sent(),[3,4];case 2:return[4,a.ah.stop()];case 3:d.sent(),a.zu.length>0&&(m("RemoteStore","Stopping write stream with "+a.zu.length+" pending writes"),a.zu=[]),d.label=4;case 4:return[2]}})})})),a.ah}var sl=function(a){this.key=a},Fo=function(a){this.key=a},$a=function(){function a(i,o){this.query=i,this.uh=o,this.hh=null,this.te=!1,this.lh=we(),this.Wt=we(),this._h=qi(i),this.fh=new st(this._h)}return Object.defineProperty(a.prototype,"dh",{get:function(){return this.uh},enumerable:!1,configurable:!0}),a.prototype.wh=function(i,o){var d=this,F=o?o.mh:new Ft,ne=o?o.fh:this.fh,Ee=o?o.Wt:this.Wt,je=ne,ft=!1,Gt=Ze(this.query)&&ne.size===this.query.limit?ne.last():null,pn=Xt(this.query)&&ne.size===this.query.limit?ne.first():null;if(i.ht(function(On,Kn){var lr=ne.get(On),vr=Kn instanceof It?Kn:null;vr&&(vr=ps(d.query,vr)?vr:null);var ni=!!lr&&d.Wt.has(lr.key),Qr=!!vr&&(vr.Je||d.Wt.has(vr.key)&&vr.hasCommittedMutations),di=!1;lr&&vr?lr.data().isEqual(vr.data())?ni!==Qr&&(F.track({type:3,doc:vr}),di=!0):d.Th(lr,vr)||(F.track({type:2,doc:vr}),di=!0,(Gt&&d._h(vr,Gt)>0||pn&&d._h(vr,pn)<0)&&(ft=!0)):!lr&&vr?(F.track({type:0,doc:vr}),di=!0):lr&&!vr&&(F.track({type:1,doc:lr}),di=!0,(Gt||pn)&&(ft=!0)),di&&(vr?(je=je.add(vr),Ee=Qr?Ee.add(On):Ee.delete(On)):(je=je.delete(On),Ee=Ee.delete(On)))}),Ze(this.query)||Xt(this.query))for(;je.size>this.query.limit;){var Rn=Ze(this.query)?je.last():je.first();je=je.delete(Rn.key),Ee=Ee.delete(Rn.key),F.track({type:1,doc:Rn})}return{fh:je,mh:F,Eh:ft,Wt:Ee}},a.prototype.Th=function(i,o){return i.Je&&o.hasCommittedMutations&&!o.Je},a.prototype.yr=function(i,o,d){var F=this,ne=this.fh;this.fh=i.fh,this.Wt=i.Wt;var Ee=i.mh.Ut();Ee.sort(function(pn,Rn){return Kn=Rn.type,(lr=function(vr){switch(vr){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return M()}})(pn.type)-lr(Kn)||F._h(pn.doc,Rn.doc);var Kn,lr}),this.Ih(d);var je=o?this.Ah():[],ft=0===this.lh.size&&this.te?1:0,Gt=ft!==this.hh;return this.hh=ft,0!==Ee.length||Gt?{snapshot:new nn(this.query,i.fh,ne,Ee,i.Wt,0===ft,Gt,!1),Rh:je}:{Rh:je}},a.prototype.Qs=function(i){return this.te&&"Offline"===i?(this.te=!1,this.yr({fh:this.fh,mh:new Ft,Wt:this.Wt,Eh:!1},!1)):{Rh:[]}},a.prototype.gh=function(i){return!this.uh.has(i)&&!!this.fh.has(i)&&!this.fh.get(i).Je},a.prototype.Ih=function(i){var o=this;i&&(i.ee.forEach(function(d){return o.uh=o.uh.add(d)}),i.ne.forEach(function(d){}
1),i.se.forEach(function(d){return o.uh=o.uh.delete(d)}),this.te=i.te)},a.prototype.Ah=function(){var i=this;if(!this.te)return[];var o=this.lh;this.lh=we(),this.fh.forEach(function(F){i.gh(F.key)&&(i.lh=i.lh.add(F.key))});var d=[];return o.forEach(function(F){i.lh.has(F)||d.push(new Fo(F))}),this.lh.forEach(function(F){o.has(F)||d.push(new sl(F))}),d},a.prototype.Ph=function(i){this.uh=i.Fc,this.lh=we();var o=this.wh(i.documents);return this.yr(o,!0)},a.prototype.yh=function(){return nn.Gt(this.query,this.fh,this.Wt,0===this.hh)},a}(),Ed=function(a,i,o){this.query=a,this.targetId=i,this.view=o},wc=function(a){this.key=a,this.Vh=!1},sp=function(){function a(i,o,d,F,ne,Ee){this.ju=i,this.ph=o,this.bh=d,this.Sh=F,this.currentUser=ne,this.Dh=Ee,this.Ch={},this.Nh=new yt(function(je){return Ki(je)},ji),this.Fh=new Map,this.xh=[],this.$h=new tn(I.i),this.kh=new Map,this.Mh=new No,this.Oh={},this.Lh=new Map,this.Bh=ko.da(),this.onlineState="Unknown",this.qh=void 0}return Object.defineProperty(a.prototype,"Uh",{get:function(){return!0===this.qh},enumerable:!1,configurable:!0}),a}();function Ol(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,F,ne,Ee,je;return t.__generator(this,function(ft){switch(ft.label){case 0:return o=Da(a),(ne=o.Nh.get(i))?(o.Sh.Oi(ne.targetId),F=ne.view.yh(),[3,4]):[3,1];case 1:return[4,el(o.ju,Zn(i))];case 2:return Ee=ft.sent(),je=o.Sh.Oi(Ee.targetId),[4,Ta(o,i,Ee.targetId,"current"===je)];case 3:F=ft.sent(),o.Uh&&Fu(o.ph,Ee),ft.label=4;case 4:return[2,F]}})})}function Ta(a,i,o,d){return t.__awaiter(this,void 0,void 0,function(){var F,ne,Ee,je,ft,Gt;return t.__generator(this,function(pn){switch(pn.label){case 0:return a.Qh=function(Rn,On,Kn){return function(lr,vr,ni,Qr){return t.__awaiter(this,void 0,void 0,function(){var di,bi,Bi;return t.__generator(this,function(ls){switch(ls.label){case 0:return(di=vr.view.wh(ni)).Eh?[4,Va(lr.ju,vr.query,!1).then(function(Cs){return vr.view.wh(Cs.documents,di)})]:[3,2];case 1:di=ls.sent(),ls.label=2;case 2:return bi=Qr&&Qr.zt.get(vr.targetId),Bi=vr.view.yr(di,lr.Uh,bi),[2,(Wa(lr,vr.targetId,Bi.Rh),Bi.snapshot)]}})})}(a,Rn,On,Kn)},[4,Va(a.ju,i,!0)];case 1:return F=pn.sent(),ne=new $a(i,F.Fc),Ee=ne.wh(F.documents),je=wn.Zt(o,d&&"Offline"!==a.onlineState),ft=ne.yr(Ee,a.Uh,je),Wa(a,o,ft.Rh),Gt=new Ed(i,o,ne),[2,(a.Nh.set(i,Gt),a.Fh.has(o)?a.Fh.get(o).push(i):a.Fh.set(o,[i]),ft.snapshot)]}})})}function uu(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d,F;return t.__generator(this,function(ne){switch(ne.label){case 0:return o=f(a),d=o.Nh.get(i),(F=o.Fh.get(d.targetId)).length>1?[2,(o.Fh.set(d.targetId,F.filter(function(Ee){return!ji(Ee,i)})),void o.Nh.delete(i))]:o.Uh?(o.Sh.Bi(d.targetId),o.Sh.Fi(d.targetId)?[3,2]:[4,Ua(o.ju,d.targetId,!1).then(function(){o.Sh.Ui(d.targetId),ta(o.ph,d.targetId),Ha(o,d.targetId)}).catch(yo)]):[3,3];case 1:ne.sent(),ne.label=2;case 2:return[3,5];case 3:return Ha(o,d.targetId),[4,Ua(o.ju,d.targetId,!0)];case 4:ne.sent(),ne.label=5;case 5:return[2]}})})}function ol(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d;return t.__generator(this,function(F){switch(F.label){case 0:o=f(a),F.label=1;case 1:return F.trys.push([1,4,,6]),[4,dh(o.ju,i)];case 2:return d=F.sent(),i.zt.forEach(function(ne,Ee){var je=o.kh.get(Ee);je&&(V(ne.ee.size+ne.ne.size+ne.se.size<=1),ne.ee.size>0?je.Vh=!0:ne.ne.size>0?V(je.Vh):ne.se.size>0&&(V(je.Vh),je.Vh=!1))}),[4,Ga(o,d,i)];case 3:return F.sent(),[3,6];case 4:return[4,yo(F.sent())];case 5:return F.sent(),[3,6];case 6:return[2]}})})}function ju(a,i,o){var d=f(a);if(d.Uh&&0===o||!d.Uh&&1===o){var F=[];
1d.Nh.forEach(function(ne,Ee){var je=Ee.view.Qs(i);je.snapshot&&F.push(je.snapshot)}),function(ne,Ee){var je=f(ne);je.onlineState=Ee;var ft=!1;je.Bs.forEach(function(Gt,pn){for(var Rn=0,On=pn.listeners;Rn<On.length;Rn++)On[Rn].Qs(Ee)&&(ft=!0)}),ft&&Ys(je)}(d.bh,i),F.length&&d.Ch.yu(F),d.onlineState=i,d.Uh&&d.Sh.Ki(i)}}function Ia(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F,ne,Ee,je,ft;return t.__generator(this,function(Gt){switch(Gt.label){case 0:return(d=f(a)).Sh.Qi(i,"rejected",o),F=d.kh.get(i),(ne=F&&F.key)?(Ee=(Ee=new tn(I.i)).ot(ne,new Wn(ne,ct.min())),je=we().add(ne),ft=new vn(ct.min(),new Map,new Nn(Qe),Ee,je),[4,ol(d,ft)]):[3,2];case 1:return Gt.sent(),d.$h=d.$h.remove(ne),d.kh.delete(i),al(d),[3,4];case 2:return[4,Ua(d.ju,i,!1).then(function(){return Ha(d,i,o)}).catch(yo)];case 3:Gt.sent(),Gt.label=4;case 4:return[2]}})})}function Uu(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d,F;return t.__generator(this,function(ne){switch(ne.label){case 0:o=f(a),d=i.batch.batchId,ne.label=1;case 1:return ne.trys.push([1,4,,6]),[4,iu(o.ju,i)];case 2:return F=ne.sent(),Vu(o,d,null),kl(o,d),o.Sh.ki(d,"acknowledged"),[4,Ga(o,F)];case 3:return ne.sent(),[3,6];case 4:return[4,yo(ne.sent())];case 5:return ne.sent(),[3,6];case 6:return[2]}})})}function yh(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F;return t.__generator(this,function(ne){switch(ne.label){case 0:d=f(a),ne.label=1;case 1:return ne.trys.push([1,4,,6]),[4,(Ee=d.ju,je=i,ft=f(Ee),ft.persistence.runTransaction("Reject batch","readwrite-primary",function(Gt){var pn;return ft.Sr.Oo(Gt,je).next(function(Rn){return V(null!==Rn),pn=Rn.keys(),ft.Sr.Wo(Gt,Rn)}).next(function(){return ft.Sr.zo(Gt)}).next(function(){return ft.Cc.kr(Gt,pn)})}))];case 2:return F=ne.sent(),Vu(d,i,o),kl(d,i),d.Sh.ki(i,"rejected",o),[4,Ga(d,F)];case 3:return ne.sent(),[3,6];case 4:return[4,yo(ne.sent())];case 5:return ne.sent(),[3,6];case 6:return[2]}var Ee,je,ft})})}function kl(a,i){(a.Lh.get(i)||[]).forEach(function(o){o.resolve()}),a.Lh.delete(i)}function Vu(a,i,o){var d=f(a),F=d.Oh[d.currentUser.ti()];if(F){var ne=F.get(i);ne&&(o?ne.reject(o):ne.resolve(),F=F.remove(i)),d.Oh[d.currentUser.ti()]=F}}function Ha(a,i,o){void 0===o&&(o=null),a.Sh.Bi(i);for(var d=0,F=a.Fh.get(i);d<F.length;d++){var ne=F[d];a.Nh.delete(ne),o&&a.Ch.Wh(ne,o)}a.Fh.delete(i),a.Uh&&a.Mh.Uc(i).forEach(function(Ee){a.Mh.Ho(Ee)||Xo(a,Ee)})}function Xo(a,i){var o=a.$h.get(i);null!==o&&(ta(a.ph,o),a.$h=a.$h.remove(i),a.kh.delete(o),al(a))}function Wa(a,i,o){for(var d=0,F=o;d<F.length;d++){var ne=F[d];ne instanceof sl?(a.Mh.Da(ne.key,i),$u(a,ne)):ne instanceof Fo?(m("SyncEngine","Document no longer in limbo: "+ne.key),a.Mh.Na(ne.ke
1y,i),a.Mh.Ho(ne.key)||Xo(a,ne.key)):M()}}function $u(a,i){var o=i.key;a.$h.get(o)||(m("SyncEngine","New document in limbo: "+o),a.xh.push(o),al(a))}function al(a){for(;a.xh.length>0&&a.$h.size<a.Dh;){var i=a.xh.shift(),o=a.Bh.next();a.kh.set(o,new wc(i)),a.$h=a.$h.ot(i,o),Fu(a.ph,new bt(Zn(de(i.path)),o,2,wi.ai))}}function Ga(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F,ne,Ee;return t.__generator(this,function(je){switch(je.label){case 0:return d=f(a),F=[],ne=[],Ee=[],d.Nh.m()?[3,3]:(d.Nh.forEach(function(ft,Gt){Ee.push(d.Qh(Gt,i,o).then(function(pn){if(pn){d.Uh&&d.Sh.Qi(Gt.targetId,pn.fromCache?"not-current":"current"),F.push(pn);var Rn=De.zr(Gt.targetId,pn);ne.push(Rn)}}))}),[4,Promise.all(Ee)]);case 1:return je.sent(),d.Ch.yu(F),[4,function(ft,Gt){return t.__awaiter(this,void 0,void 0,function(){var pn,Rn,On,Kn,lr,vr,ni,di;return t.__generator(this,function(bi){switch(bi.label){case 0:pn=f(ft),bi.label=1;case 1:return bi.trys.push([1,3,,4]),[4,pn.persistence.runTransaction("notifyLocalViewChanges","readwrite",function(Bi){return Ir.forEach(Gt,function(ls){return Ir.forEach(ls.Kr,function(Cs){return pn.persistence.No.Da(Bi,ls.targetId,Cs)}).next(function(){return Ir.forEach(ls.Gr,function(Cs){return pn.persistence.No.Na(Bi,ls.targetId,Cs)})})})})];case 2:return bi.sent(),[3,4];case 3:if(!Us(Rn=bi.sent()))throw Rn;return m("LocalStore","Failed to update sequence numbers: "+Rn),[3,4];case 4:for(On=0,Kn=Gt;On<Kn.length;On++)vr=(lr=Kn[On]).targetId,lr.fromCache||(ni=pn.bc.get(vr),di=ni.rt(ni.nt),pn.bc=pn.bc.ot(vr,di));return[2]}})})}(d.ju,ne)];case 2:je.sent(),je.label=3;case 3:return[2]}})})}function Ac(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d;return t.__generator(this,function(F){switch(F.label){case 0:return(o=f(a)).currentUser.isEqual(i)?[3,3]:(m("SyncEngine","User change. New user:",i.ti()),[4,function(ne,Ee){return t.__awaiter(this,void 0,void 0,function(){var je,ft,Gt,pn;return t.__generator(this,function(Rn){switch(Rn.label){case 0:return je=f(ne),ft=je.Sr,Gt=je.Cc,[4,je.persistence.runTransaction("Handle user change","readonly",function(On){var Kn;return je.Sr.Uo(On).next(function(lr){return Kn=lr,ft=je.persistence.mc(Ee),Gt=new fe(je.Dc,ft,je.persistence.Ic()),ft.Uo(On)}).next(function(lr){for(var vr=[],ni=[],Qr=we(),di=0,bi=Kn;di<bi.length;di++){var Bi=bi[di];vr.push(Bi.batchId);for(var ls=0,Cs=Bi.mutations;ls<Cs.length;ls++)Qr=Qr.add(Cs[ls].key)}for(var Ai=0,gl=lr;Ai<gl.length;Ai++){var ml=gl[Ai];ni.push(ml.batchId);for(var Vl=0,Jo=ml.mutations;Vl<Jo.length;Vl++)Qr=Qr.add(Jo[Vl].key)}return Gt.kr(On,Qr).next(function(tc){return{jh:tc,Kh:vr,Gh:ni}})})})];case 1:return pn=Rn.sent(),[2,(je.Sr=ft,je.Cc=Gt,je.Vc.Nc(je.Cc),pn)]}})})}(o.ju,i)]);case 1:return d=F.sent(),o.currentUser=i,(ne=o).Lh.forEach(function(je){je.forEach(function(ft){ft.reject(new C(P.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),ne.Lh.clear(),o.Sh.ji(i,d.Kh,d.Gh),[4,Ga(o,d.jh)];case 2:F.sent(),F.label=3;case 3:return[2]}var ne})})}function wd(a,i){var o=f(a),d=o.kh.get(i);if(d&&d.Vh)return we().add(d.key);var F=we(),ne=o.Fh.get(i);if(!ne)return F;for(var Ee=0,je=ne;Ee<je.length;Ee++){var Gt=o.Nh.get(je[Ee]);F=F.kt(Gt.view.dh)}return F}function Ad(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d,F;return t.__generator(this,function(ne){switch(ne.label){case 0:return[4,Va((o=f(a)).ju,i.query,!0)];case 1:return d=ne.sent(),F=i.view.Ph(d),[2,(o.Uh&&Wa(o,i.targetId,F.Rh),F)]}})})}function Sc(a,i,o,d){return t.__awaiter(this,void 0,void 0,function(){var F,ne;return t.__generator(this,function(Ee){switch(Ee.label){case 0:return[4,(je=(F=f(a)).ju,ft=i,Gt=f(je),pn=f(Gt.Sr),Gt.persistence.runTransaction("Lookup mutation documents","readonly",function(Rn){return pn.Lo(Rn,ft).next(function(On){return On?Gt.Cc.kr(Rn,On):Ir.resolve(null)})}))];case 1:return null===(ne=Ee.sent())?[3,6]:"pending"!==o?[3,3]:[4,na(F.ph)];case 2:return Ee.sent(),[3,4];case 3:"acknowledged"===o||"rejected"===o?(Vu(F,i,d||null),kl(F,i),function(je,ft){f(f(je).Sr).Ko(ft)}(F.ju,i)):M(),Ee.label=4;case 4:return[4,Ga(F,ne)];case 5:return Ee.sent(),[3,7];case 6:m("SyncEngine","Cannot apply mutation batch with id: "+i),Ee.label=7;case 7:return[2]}var je,ft,Gt,pn})})}function Cc(a,i){return t.__awaiter(this,void 0,void 0,function(){var o,d,F,ne,Ee,ft,Gt;return t.__generator(this,function(pn){switch(pn.label){case 0:return Da(o=f(a)),hu(o),!0!==i||!0===o.qh?[3,3]:(d=o.Sh.Ci(),[4,cu(o,d.A())]);case 1:return F=pn.sent(),o.qh=!0,[4,ra(o.ph,!0)];case 2:for(pn.sent(),ne=0,Ee=F;ne<Ee.length;ne++)Fu(o.ph,Ee[ne]);return[3,7];case 3:return!1!==i||!1===o.qh?[3,7]:(ft=[],Gt=Promise.resolve(),o.F
1h.forEach(function(Rn,On){o.Sh.qi(On)?ft.push(On):Gt=Gt.then(function(){return Ha(o,On),Ua(o.ju,On,!0)}),ta(o.ph,On)}),[4,Gt]);case 4:return pn.sent(),[4,cu(o,ft)];case 5:return pn.sent(),(On=f(o)).kh.forEach(function(Kn,lr){ta(On.ph,lr)}),On.Mh.Qc(),On.kh=new Map,On.$h=new tn(I.i),o.qh=!1,[4,ra(o.ph,!1)];case 6:pn.sent(),pn.label=7;case 7:return[2]}var On})})}function cu(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F,ne,Ee,je,ft,Gt,pn,Rn,On,lr,vr,ni;return t.__generator(this,function(Qr){switch(Qr.label){case 0:d=f(a),F=[],ne=[],Ee=0,je=i,Qr.label=1;case 1:return Ee<je.length?(Gt=void 0,(pn=d.Fh.get(ft=je[Ee]))&&0!==pn.length?[4,el(d.ju,Zn(pn[0]))]:[3,7]):[3,13];case 2:Gt=Qr.sent(),Rn=0,On=pn,Qr.label=3;case 3:return Rn<On.length?(lr=d.Nh.get(On[Rn]),[4,Ad(d,lr)]):[3,6];case 4:(vr=Qr.sent()).snapshot&&ne.push(vr.snapshot),Qr.label=5;case 5:return Rn++,[3,3];case 6:return[3,11];case 7:return[4,ou(d.ju,ft)];case 8:return ni=Qr.sent(),[4,el(d.ju,ni)];case 9:return Gt=Qr.sent(),[4,Ta(d,Hu(ni),ft,!1)];case 10:Qr.sent(),Qr.label=11;case 11:F.push(Gt),Qr.label=12;case 12:return Ee++,[3,1];case 13:return[2,(d.Ch.yu(ne),F)]}})})}function Hu(a){return et(a.path,a.collectionGroup,a.orderBy,a.filters,a.limit,"F",a.startAt,a.endAt)}function Yo(a){var i=f(a);return f(f(i.ju).persistence).pi()}function Tc(a,i,o,d){return t.__awaiter(this,void 0,void 0,function(){var F,ne,Ee;return t.__generator(this,function(je){switch(je.label){case 0:return(F=f(a)).qh?(m("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!F.Fh.has(i))return[3,8];switch(o){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,Rl(F.ju)];case 3:return ne=je.sent(),Ee=vn.Xt(i,"current"===o),[4,Ga(F,ne,Ee)];case 4:return je.sent(),[3,8];case 5:return[4,Ua(F.ju,i,!0)];case 6:return je.sent(),Ha(F,i,d),[3,8];case 7:M(),je.label=8;case 8:return[2]}})})}function Ic(a,i,o){return t.__awaiter(this,void 0,void 0,function(){var d,F,ne,Ee,je,ft,Gt,pn,Rn;return t.__generator(this,function(Kn){switch(Kn.label){case 0:if(!(d=Da(a)).qh)return[3,10];F=0,ne=i,Kn.label=1;case 1:return F<ne.length?d.Fh.has(Ee=ne[F])?(m("SyncEngine","Adding an already active target "+Ee),[3,5]):[4,ou(d.ju,Ee)]:[3,6];case 2:return je=Kn.sent(),[4,el(d.ju,je)];case 3:return ft=Kn.sent(),[4,Ta(d,Hu(je),ft.targetId,!1)];case 4:Kn.sent(),Fu(d.ph,ft),Kn.label=5;case 5:return F++,[3,1];case 6:Gt=function(lr){return t.__generator(this,function(vr){switch(vr.label){case 0:return d.Fh.has(lr)?[4,Ua(d.ju,lr,!1).then(function(){ta(d.ph,lr),Ha(d,lr)}).catch(yo)]:[3,2];case 1:vr.sent(),vr.label=2;case 2:return[2]}})},pn=0,Rn=o,Kn.label=7;case 7:return pn<Rn.length?[5,Gt(Rn[pn])]:[3,10];case 8:Kn.sent(),Kn.label=9;case 9:return pn++,[3,7];case 10:return[2]}})})}function Da(a){var i=f(a);return i.ph.Gu.sh=ol.bind(null,i),i.ph.Gu.qe=wd.bind(null,i),i.ph.Gu.nh=Ia.bind(null,i),i.Ch.yu=Fi.bind(null,i.bh),i.Ch.Wh=vs.bind(null,i.bh),i}function hu(a){var i=f(a);return i.ph.Gu.ih=Uu.bind(null,i),i.ph.Gu.rh=yh.bind(null,i),i}var Lo=function(){function a(){}return a.prototype.Nc=function(i){this.zh=i},a.prototype.Lr=function(i,o,d,F){var Ee,ne=this;return 0===(Ee=o).filters.length&&null===Ee.limit&&null==Ee.startAt&&null==Ee.endAt&&(0===Ee.on.length||1===Ee.on.length&&Ee.on[0].field.p())||d.isEqual(ct.min())?this.Hh(i,o):this.zh.kr(i,F).next(function(Ee){var je=ne.Yh(o,Ee);return(Ze(o)||Xt(o))&&ne.Eh(o.an,je,F,d)?ne.Hh(i,o):(E()<=x.LogLevel.DEBUG&&m("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",d.toString(),Ui(o)),ne.zh.Lr(i,o,d).next(function(ft){return je.forEach(function(Gt){ft=ft.ot(Gt.key,Gt)}),ft}))})},a.prototype.Yh=function(i,o){var d=new Nn(qi(i));return o.forEach(function(F,ne){ne instanceof It&&ps(i,ne)&&(d=d.add(ne))}),d},a.prototype.Eh=function(i,o,d,F){if(d.size!==o.size)return!0;var ne="F"===i?o.last():o.first();return!!ne&&(ne.hasPendingWrites||ne.version.L(F)>0)},a.prototype.Hh=function(i,o){return E()<=x.LogLevel.DEBUG&&m("IndexFreeQueryEngine","Using full collection scan to execute query:",Ui(o)),this.zh.Lr(i,o,ct.min())},a}(),Pa=function(){function a(i,o){this.Dr=i,this.No=o,this.Sr=[],this.Jh=1,this.Xh=new Nn(Ls.kc)}return a.prototype.$o=function(i){return Ir.resolve(0===this.Sr.length)},a.prototype.ko=function(i,o,d,F){var ne=this.Jh;this.Jh++;var Ee=new xt(ne,o,d,F);this.Sr.push(Ee);for(var je=0,ft=F;je<ft.length;je++){var Gt=ft[je];this.Xh=this.Xh.add(new Ls(Gt.key,ne)),this.Dr.Mo(i,Gt.key.path.h())}return Ir.resolve(Ee)},a.prototype.Oo=function(i,o){return Ir.resolve(this.Zh(o))},a.prototype.Bo=function(i,o){var F=this.tl(o+1),ne=F<0?0:F;return Ir.resolve(this.Sr.length>ne?this.Sr[ne]:null)},a.prototype.qo=function(){return Ir.resolve(0===this.Sr.length?-1:this.Jh-1)},a.prototype.Uo=function(i){return Ir.resolve(this.Sr.slice())},a.prototype.Nr=function(i,o){var d=this,F=new Ls(o,0),ne=new Ls(o,Number.POSITIVE_INFINITY),Ee=[];return this.Xh.Ft([F,ne],function(je){var ft=d.Zh(je.jc);Ee.push(ft)}),Ir.resolve(Ee)},a.prototype.Or=function(i,o){var d=this,F=new Nn(Qe);return o.forEach(function(ne){var Ee=new Ls(ne,0),je=new Ls(ne,Number.POSITIVE_INFINITY);d.Xh.Ft([Ee,je],function(ft){F=F.add(ft.jc)})}),Ir.resolve(this.el(F))},a.prototype.Wr=function(i,o){var d=o.path,F=d.length+1,ne=d;I.F(ne)||(ne=ne.child(""));var Ee=new Ls(new I(ne),0),je=new Nn(Qe);return this.Xh.xt(function(ft){var Gt=ft.key.path;return!!d.T(Gt)&&(Gt.length===F&&(je=je.add(ft.jc)),!0)},Ee),Ir.resolve(this.el(je))},a.prototype.el=function(i){var o=this,d=[];
1return i.forEach(function(F){var ne=o.Zh(F);null!==ne&&d.push(ne)}),d},a.prototype.Wo=function(i,o){var d=this;V(0===this.nl(o.batchId,"removed")),this.Sr.shift();var F=this.Xh;return Ir.forEach(o.mutations,function(ne){var Ee=new Ls(ne.key,o.batchId);return F=F.delete(Ee),d.No.Go(i,ne.key)}).next(function(){d.Xh=F})},a.prototype.Ko=function(i){},a.prototype.Ho=function(i,o){var d=new Ls(o,0),F=this.Xh.$t(d);return Ir.resolve(o.isEqual(F&&F.key))},a.prototype.zo=function(i){return Ir.resolve()},a.prototype.nl=function(i,o){return this.tl(i)},a.prototype.tl=function(i){return 0===this.Sr.length?0:i-this.Sr[0].batchId},a.prototype.Zh=function(i){var o=this.tl(i);return o<0||o>=this.Sr.length?null:this.Sr[o]},a}(),Nl=function(){function a(i,o){this.Dr=i,this.sl=o,this.docs=new tn(I.i),this.size=0}return a.prototype.Er=function(i,o,d){var F=o.key,ne=this.docs.get(F),Ee=ne?ne.size:0,je=this.sl(o);return this.docs=this.docs.ot(F,{ta:o,size:je,readTime:d}),this.size+=je-Ee,this.Dr.Mo(i,F.path.h())},a.prototype.Ar=function(i){var o=this.docs.get(i);o&&(this.docs=this.docs.remove(i),this.size-=o.size)},a.prototype.Rr=function(i,o){var d=this.docs.get(o);return Ir.resolve(d?d.ta:null)},a.prototype.getEntries=function(i,o){var d=this,F=nr();return o.forEach(function(ne){var Ee=d.docs.get(ne);F=F.ot(ne,Ee?Ee.ta:null)}),Ir.resolve(F)},a.prototype.Lr=function(i,o,d){for(var F=hn(),ne=new I(o.path.child("")),Ee=this.docs.ft(ne);Ee.At();){var je=Ee.It(),Gt=je.value,pn=Gt.ta,Rn=Gt.readTime;if(!o.path.T(je.key.path))break;Rn.L(d)<=0||pn instanceof It&&ps(o,pn)&&(F=F.ot(pn.key,pn))}return Ir.resolve(F)},a.prototype.il=function(i,o){return Ir.forEach(this.docs,function(d){return o(d)})},a.prototype.ra=function(i){return new Dc(this)},a.prototype.aa=function(i){return Ir.resolve(this.size)},a}(),Dc=function(a){function i(o){var d=this;return(d=a.call(this)||this).ca=o,d}return t.__extends(i,a),i.prototype.yr=function(o){var d=this,F=[];return this.wr.forEach(function(ne,Ee){Ee?F.push(d.ca.Er(o,Ee,d.readTime)):d.ca.Ar(ne)}),Ir.$n(F)},i.prototype.gr=function(o,d){return this.ca.Rr(o,d)},i.prototype.Pr=function(o,d){return this.ca.getEntries(o,d)},i}(l),bh=function(){function a(i){this.persistence=i,this.rl=new yt(function(o){return ze(o)},nt),this.lastRemoteSnapshotVersion=ct.min(),this.highestTargetId=0,this.ol=0,this.al=new No,this.targetCount=0,this.cl=ko.fa()}return a.prototype.Ce=function(i,o){return this.rl.forEach(function(d,F){return o(F)}),Ir.resolve()},a.prototype.Ea=function(i){return Ir.resolve(this.lastRemoteSnapshotVersion)},a.prototype.Ia=function(i){return Ir.resolve(this.ol)},a.prototype.wa=function(i){return this.highestTargetId=this.cl.next(),Ir.resolve(this.highestTargetId)},a.prototype.Aa=function(i,o,d){return d&&(this.lastRemoteSnapshotVersion=d),o>this.ol&&(this.ol=o),Ir.resolve()},a.prototype.ga=function(i){this.rl.set(i.target,i);var o=i.targetId;o>this.highestTargetId&&(this.cl=new ko(o),this.highestTargetId=o),i.sequenceNumber>this.ol&&(this.ol=i.sequenceNumber)},a.prototype.Ra=function(i,o){return this.ga(o),this.targetCount+=1,Ir.resolve()},a.prototype.ya=function(i,o){return this.ga(o),Ir.resolve()},a.prototype.Va=function(i,o){return this.rl.delete(o.target),this.al.Uc(o.targetId),this.targetCount-=1,Ir.resolve()},a.prototype.po=function(i,o,d){var F=this,ne=0,Ee=[];return this.rl.forEach(function(je,ft){ft.sequenceNumber<=o&&null===d.get(ft.targetId)&&(F.rl.delete(je),Ee.push(F.pa(i,ft.targetId)),ne++)}),Ir.$n(Ee).next(function(){return ne})},a.prototype.ba=function(i){return Ir.resolve(this.targetCount)},a.prototype.va=function(i,o){var d=this.rl.get(o)||null;return Ir.resolve(d)},a.prototype.Sa=function(i,o,d){return this.al.Lc(o,d),Ir.resolve()},a.prototype.Ca=function(i,o,d){this.al.qc(o,d);var F=this.persistence.No,ne=[];return F&&o.forEach(function(Ee){ne.push(F.Go(i,Ee))}),Ir.$n(ne)},a.prototype.pa=function(i,o){return this.al.Uc(o),Ir.resolve()},a.prototype.Fa=function(i,o){var d=this.al.Wc(o);return Ir.resolve(d)},a.prototype.Ho=function(i,o){return Ir.resolve(this.al.Ho(o))},a}(),op=function(){function a(i){var o=this;this.ul={},this.Ma=new wi(0),this.Oa=!1,this.Oa=!0,this.No=i(this),this.Ka=new bh(this),this.Dr=new Fs,this.vr=new Nl(this.Dr,function(ne){return o.No.hl(ne)})}return a.prototype.start=function(){return Promise.resolve()},a.prototype.Di=function(){return this.Oa=!1,Promise.resolve()},Object.defineProperty(a.prototype,"Ei",{get:function(){return this.Oa}
1,enumerable:!1,configurable:!0}),a.prototype.Za=function(){},a.prototype.tc=function(){},a.prototype.Ic=function(){return this.Dr},a.prototype.mc=function(i){var o=this.ul[i.ti()];return o||(o=new Pa(this.Dr,this.No),this.ul[i.ti()]=o),o},a.prototype.Tc=function(){return this.Ka},a.prototype.Ec=function(){return this.vr},a.prototype.runTransaction=function(i,o,d){var F=this;m("MemoryPersistence","Starting transaction:",i);var ne=new ap(this.Ma.next());return this.No.ll(),d(ne).next(function(Ee){return F.No._l(ne).next(function(){return Ee})}).Fn().then(function(Ee){return ne.br(),Ee})},a.prototype.fl=function(i,o){return Ir.kn(Object.values(this.ul).map(function(d){return function(){return d.Ho(i,o)}}))},a}(),ap=function(a){function i(o){var d=this;return(d=a.call(this)||this).xa=o,d}return t.__extends(i,a),i}(B),lp=function(){function a(i){this.persistence=i,this.dl=new No,this.wl=null}return a.ml=function(i){return new a(i)},Object.defineProperty(a.prototype,"Tl",{get:function(){if(this.wl)return this.wl;throw M()},enumerable:!1,configurable:!0}),a.prototype.Da=function(i,o,d){return this.dl.Da(d,o),this.Tl.delete(d.toString()),Ir.resolve()},a.prototype.Na=function(i,o,d){return this.dl.Na(d,o),this.Tl.add(d.toString()),Ir.resolve()},a.prototype.Go=function(i,o){return this.Tl.add(o.toString()),Ir.resolve()},a.prototype.removeTarget=function(i,o){var d=this;this.dl.Uc(o.targetId).forEach(function(ne){return d.Tl.add(ne.toString())});var F=this.persistence.Tc();return F.Fa(i,o.targetId).next(function(ne){ne.forEach(function(Ee){return d.Tl.add(Ee.toString())})}).next(function(){return F.Va(i,o)})},a.prototype.ll=function(){this.wl=new Set},a.prototype._l=function(i){var o=this,d=this.persistence.Ec().ra();return Ir.forEach(this.Tl,function(F){var ne=I.D(F);return o.El(i,ne).next(function(Ee){Ee||d.Ar(ne)})}).next(function(){return o.wl=null,d.apply(i)})},a.prototype.yc=function(i,o){var d=this;return this.El(i,o).next(function(F){F?d.Tl.delete(o.toString()):d.Tl.add(o.toString())})},a.prototype.hl=function(i){return 0},a.prototype.El=function(i,o){var d=this;return Ir.kn([function(){return Ir.resolve(d.dl.Ho(o))},function(){return d.persistence.Tc().Ho(i,o)},function(){return d.persistence.fl(i,o)}])},a}(),Pc=function(){function a(i){this.Il=i.Il,this.Al=i.Al}return a.prototype.gu=function(i){this.Rl=i},a.prototype.Tu=function(i){this.gl=i},a.prototype.onMessage=function(i){this.Pl=i},a.prototype.close=function(){this.Al()},a.prototype.send=function(i){this.Il(i)},a.prototype.yl=function(){this.Rl()},a.prototype.Vl=function(i){this.gl(i)},a.prototype.pl=function(i){this.Pl(i)},a}(),Wu={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Gu=function(a){function i(o){var d=this;return(d=a.call(this,o)||this).forceLongPolling=o.forceLongPolling,d.W=o.W,d}return t.__extends(i,a),i.prototype.Nl=function(o,d,F,ne){return new Promise(function(Ee,je){var ft=new te.XhrIo;ft.listenOnce(te.EventType.COMPLETE,function(){try{switch(ft.getLastErrorCode()){case te.ErrorCode.NO_ERROR:var pn=ft.getResponseJson();m("Connection","XHR received:",JSON.stringify(pn)),Ee(pn);break;case te.ErrorCode.TIMEOUT:m("Connection",'RPC "'+o+'" timed out'),je(new C(P.DEADLINE_EXCEEDED,"Request time out"));break;case te.ErrorCode.HTTP_ERROR:var Rn=ft.getStatus();if(m("Connection",'RPC "'+o+'" failed with status:',Rn,"response text:",ft.getResponseText()),Rn>0){var On=ft.getResponseJson().error;if(On&&On.status&&On.message){var Kn=(vr=On.status.toLowerCase().replace("_","-"),Object.values(P).indexOf(vr)>=0?vr:P.UNKNOWN);je(new C(Kn,On.message))}else je(new C(P.UNKNOWN,"Server responded with status "+ft.getStatus()))}else je(new C(P.UNAVAILABLE,"Connection failed."));break;default:M()}}finally{m("Connection",'RPC "'+o+'" completed.')}var vr});var Gt=JSON.stringify(ne);ft.send(d,"POST",Gt,F,15)})},i.prototype.Pu=function(o,d){var F=[this.vl,"/","google.firestore.v1.Firestore","/",o,"/channel"],ne=te.createWebChannelTransport(),Ee={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.U.projectId+"/databases/"+this.U.database}
1,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.W};this.Cl(Ee.initMessageHeaders,d),re.isMobileCordova()||re.isReactNative()||re.isElectron()||re.isIE()||re.isUWP()||re.isBrowserExtension()||(Ee.httpHeadersOverwriteParam="$httpHeaders");var je=F.join("");m("Connection","Creating WebChannel: "+je,Ee);var ft=ne.createWebChannel(je,Ee),Gt=!1,pn=!1,Rn=new Pc({Il:function(Kn){pn?m("Connection","Not sending because WebChannel is closed:",Kn):(Gt||(m("Connection","Opening WebChannel transport."),ft.open(),Gt=!0),m("Connection","WebChannel sending:",Kn),ft.send(Kn))},Al:function(){return ft.close()}}),On=function(Kn,lr){ft.listen(Kn,function(vr){try{lr(vr)}catch(ni){setTimeout(function(){throw ni},0)}})};return On(te.WebChannel.EventType.OPEN,function(){pn||m("Connection","WebChannel transport opened.")}),On(te.WebChannel.EventType.CLOSE,function(){pn||(pn=!0,m("Connection","WebChannel transport closed"),Rn.Vl())}),On(te.WebChannel.EventType.ERROR,function(Kn){pn||(pn=!0,R("Connection","WebChannel transport errored:",Kn),Rn.Vl(new C(P.UNAVAILABLE,"The operation could not be completed")))}),On(te.WebChannel.EventType.MESSAGE,function(Kn){var lr;if(!pn){var vr=Kn.data[0];V(!!vr);var Qr=vr.error||(null===(lr=vr[0])||void 0===lr?void 0:lr.error);if(Qr){m("Connection","WebChannel received error:",Qr);var di=Qr.status,bi=function(ls){var Cs=Nt[ls];if(void 0!==Cs)return vt(Cs)}(di),Bi=Qr.message;void 0===bi&&(bi=P.INTERNAL,Bi="Unknown error status: "+di+" with message "+Qr.message),pn=!0,Rn.Vl(new C(bi,Bi)),ft.close()}else m("Connection","WebChannel received:",vr),Rn.pl(vr)}}),setTimeout(function(){Rn.yl()},0),Rn},i}(function(){function a(i){this.bl=i,this.U=i.U,this.vl=(i.ssl?"https":"http")+"://"+i.host,this.Sl="projects/"+this.U.projectId+"/databases/"+this.U.database+"/documents"}return a.prototype.$u=function(i,o,d,F){var ne=this.Dl(i,o);m("RestConnection","Sending: ",ne,d);var Ee={};return this.Cl(Ee,F),this.Nl(i,ne,Ee,d).then(function(je){return m("RestConnection","Received: ",je),je},function(je){throw R("RestConnection",i+" failed with error: ",je,"url: ",ne,"request:",d),je})},a.prototype.ku=function(i,o,d,F){return this.$u(i,o,d,F)},a.prototype.Cl=function(i,o){if(i["X-Goog-Api-Client"]="gl-js/ fire/7.24.0",i["Content-Type"]="text/plain",o)for(var d in o.Kc)o.Kc.hasOwnProperty(d)&&(i[d]=o.Kc[d])},a.prototype.Dl=function(i,o){return this.vl+"/v1/"+o+":"+Wu[i]},a}()),_h=function(){function a(){var i=this;this.Fl=function(){return i.xl()},this.$l=function(){return i.kl()},this.Ml=[],this.Ol()}return a.prototype.Zu=function(i){this.Ml.push(i)},a.prototype.Di=function(){window.removeEventListener("online",this.Fl),window.removeEventListener("offline",this.$l)},a.prototype.Ol=function(){window.addEventListener("online",this.Fl),window.addEventListener("offline",this.$l)},a.prototype.xl=function(){m("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var i=0,o=this.Ml;i<o.length;i++)(0,o[i])(0)},a.prototype.kl=function(){m("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var i=0,o=this.Ml;i<o.length;i++)(0,o[i])(1)},a.Ln=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},a}(),Rc=function(){function a(){}return a.prototype.Zu=function(i){},a.prototype.Di=function(){},a}();function du(a){return new Qt(a,!0)}var Fl="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",ll=function(){function a(){}return a.prototype.initialize=function(i){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(o){switch(o.label){case 0:return this.Sh=this.Ll(i),this.persistence=this.Bl(i),[4,this.persistence.start()];case 1:return o.sent(),this.ql=this.Ul(i),this.ju=this.Ql(i),[2]}})})},a.prototype.Ul=function(i){return null},a.prototype.Ql=function(i){return o=this.persistence,d=new Lo,new ip(o,d,i.Wl);var o,d},a.prototype.Bl=function(i){if(i.persistenceSettings.jl)throw new C(P.FAILED_PRECONDITION,Fl);return new op(lp.ml)},a.prototype.Ll=function(i){return new Ke},a.prototype.terminate=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(i){switch(i.label){case 0:return this.ql&&this.ql.stop(),[4,this.Sh.Di()];case 1:return i.sent(),[4,this.persistence.Di()];case 2:return i.sent(),[2]}})})},a.prototype.clearPersistence=function(i,o){throw new C(P.FAILED_PRECONDITION,Fl)},a}(),Sd=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.initialize=function(o){return t.__awaiter(this,void 0,void 0,function(){var d,F=this;return t.__generator(this,function(ne){switch(ne.label){case 0:return[4,a.prototype.initialize.call(this,o)];case 1:return ne.sent(),d=this.Kl.fi,this.Sh instanceof ye?(this.Sh.fi={er:Sc.bind(null,d),nr:Tc.bind(null,d),sr:Ic.bind(null,d),pi:Yo.bind(null,d)},[4,this.Sh.start()]):[3,3];case 2:ne.sent(),ne.label=3;case 3:return[4,this.persistence.Xa(function(Ee){return t.__awaiter(F,void 0,void 0,function(){return t.__generator(this,function(je){switch(je.label){case 0:return[4,Cc(this.Kl.fi,Ee)];case 1:return je.sent(),this.ql&&(Ee&&!this.ql.Ei?this.ql.start(this.ju):Ee||this.ql.stop()),[2]}})})})];case 4:return ne.sent(),[2]}})})}
1,i.prototype.Ll=function(o){if(o.persistenceSettings.jl&&o.persistenceSettings.synchronizeTabs){var d=Le();if(!ye.Ln(d))throw new C(P.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var F=ja(o.bl.U,o.bl.persistenceKey);return new ye(d,o.cs,F,o.clientId,o.Wl)}return new Ke},i}(function(a){function i(o){var d=this;return(d=a.call(this)||this).Kl=o,d}return t.__extends(i,a),i.prototype.initialize=function(o){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(d){switch(d.label){case 0:return[4,a.prototype.initialize.call(this,o)];case 1:return d.sent(),[4,_d(this.ju)];case 2:return d.sent(),[4,this.Kl.initialize(this,o)];case 3:return d.sent(),[4,hu(this.Kl.fi)];case 4:return d.sent(),[4,na(this.Kl.ph)];case 5:return d.sent(),[2]}})})},i.prototype.Ul=function(o){return new Tn(this.persistence.No.wo,o.cs)},i.prototype.Bl=function(o){var d=ja(o.bl.U,o.bl.persistenceKey),F=du(o.bl.U);return new zo(o.persistenceSettings.synchronizeTabs,d,o.clientId,$t.ao(o.persistenceSettings.cacheSizeBytes),o.cs,Le(),lt(),F,this.Sh,o.persistenceSettings.ka)},i.prototype.Ll=function(o){return new Ke},i.prototype.clearPersistence=function(o,d){return function(F){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(Ee){switch(Ee.label){case 0:return ki.Ln()?[4,ki.delete(F+"main")]:[2,Promise.resolve()];case 1:return Ee.sent(),[2]}})})}(ja(o,d))},i}(ll)),qo=function(){function a(){}return a.prototype.initialize=function(i,o){return t.__awaiter(this,void 0,void 0,function(){var d=this;return t.__generator(this,function(F){switch(F.label){case 0:return this.ju?[3,2]:(this.ju=i.ju,this.Sh=i.Sh,this.Ku=this.Gl(o),this.ph=this.zl(o),this.bh=this.Hl(o),this.fi=this.Yl(o),this.Sh.di=function(ne){return ju(d.fi,ne,1)},this.ph.Gu.Jl=Ac.bind(null,this.fi),[4,ra(this.ph,this.fi.Uh)]);case 1:F.sent(),F.label=2;case 2:return[2]}})})},a.prototype.Hl=function(i){return new Ei},a.prototype.Gl=function(i){var d=du(i.bl.U),F=new Gu(i.bl);return new ks(i.credentials,F,d)},a.prototype.zl=function(i){var o,d,F,ne,Ee,je=this;return o=this.ju,d=this.Ku,F=i.cs,ne=function(ft){return ju(je.fi,ft,0)},Ee=_h.Ln()?new _h:new Rc,new ku(o,d,F,ne,Ee)},a.prototype.Yl=function(i){return ft=!i.persistenceSettings.jl||!i.persistenceSettings.synchronizeTabs,Gt=new sp(this.ju,this.ph,this.bh,this.Sh,i.Wl,i.Dh),ft&&(Gt.qh=!0),Gt;var ft,Gt},a.prototype.terminate=function(){return Nu(this.ph)},a}(),ia=function(){function a(i){this.observer=i,this.muted=!1}return a.prototype.next=function(i){this.observer.next&&this.Xl(this.observer.next,i)},a.prototype.error=function(i){this.observer.error?this.Xl(this.observer.error,i):console.error("Uncaught Error in snapshot listener:",i)},a.prototype.Zl=function(){this.muted=!0},a.prototype.Xl=function(i,o){var d=this;this.muted||setTimeout(function(){d.muted||i(o)},0)},a}(),va=function(a){!function(o,d,F,ne){if(!(d instanceof Array)||d.length<1)throw new C(P.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Oe(1,"element")+".")}(0,a);for(var i=0;i<a.length;++i)if(ve("FieldPath","string",i,a[i]),0===a[i].length)throw new C(P.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.t_=new k(a)},sa=function(a){function i(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];return a.call(this,o)||this}return t.__extends(i,a),i.documentId=function(){return new i(k.v().R())},i.prototype.isEqual=function(o){if(!(o instanceof i))throw J("isEqual","FieldPath",1,o);return this.t_.isEqual(o.t_)},i}(va),xc=new RegExp("[~\\*/\\[\\]]"),Ra=function(a){this.e_=a},Ss=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.n_=function(o){if(2!==o.s_)throw o.i_(1===o.s_?this.e_+"() can only appear at the top level of your update data":this.e_+"() cannot be used with set() unless you pass {merge:true}");return o.We.push(o.path),null},i.prototype.isEqual=function(o){return o instanceof i},i}(Ra);function zu(a,i,o){return new zs({s_:3,r_:i.settings.r_,methodName:a.e_,o_:o},i.U,i.serializer,i.ignoreUndefinedProperties)}var fu=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.n_=function(o){return new ur(o.path,new Ii)},i.prototype.isEqual=function(o){return o instanceof i},i}(Ra),ul=function(a){function i(o,d){var F=this;return(F=a.call(this,o)||this).a_=d,F}return t.__extends(i,a),i.prototype.n_=function(o){var d=zu(this,o,!0),F=this.a_.map(function(Ee){return Ma(Ee,d)}),ne=new tt(F);return new ur(o.path,ne)},i.prototype.isEqual=function(o){return this===o},i}(Ra),Ku=function(a){function i(o,d){var F=this;return(F=a.call(this,o)||this).a_=d,F}return t.__extends(i,a),i.prototype.n_=function(o){var d=zu(this,o,!0),F=this.a_.map(function(Ee){return Ma(Ee,d)}),ne=new Ut(F);return new ur(o.path,ne)},i.prototype.isEqual=function(o){return this===o},i}(Ra),pu=function(a){function i(o,d){var F=this;return(F=a.call(this,o)||this).c_=d,F}return t.__extends(i,a),i.prototype.n_=function(o){var d=new _n(o.serializer,er(o.serializer,this.c_));return new ur(o.path,d)},i.prototype.isEqual=function(o){return this===o},i}(Ra),cl=function(){function a(i,o){if(ee("GeoPoint",arguments,2),ve("GeoPoint","number",1,i),ve("GeoPoint","number",2,o),!isFinite(i)||i<-90||i>90)throw new C(P.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+i);if(!isFinite(o)||o<-180||o>180)throw new C(P.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+o);this.u_=i,this.h_=o}return Object.defineProperty(a.prototype,"latitude",{get:function(){return this.u_}
1,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"longitude",{get:function(){return this.h_},enumerable:!1,configurable:!0}),a.prototype.isEqual=function(i){return this.u_===i.u_&&this.h_===i.h_},a.prototype.toJSON=function(){return{latitude:this.u_,longitude:this.h_}},a.prototype.Y=function(i){return Qe(this.u_,i.u_)||Qe(this.h_,i.h_)},a}(),gu=function(a){this.l_=a},Cd=/^__.*__$/,xa=function(a,i,o){this.__=a,this.f_=i,this.d_=o},up=function(){function a(i,o,d){this.data=i,this.We=o,this.fieldTransforms=d}return a.prototype.w_=function(i,o){var d=[];return d.push(null!==this.We?new xn(i,this.data,this.We,o):new fn(i,this.data,o)),this.fieldTransforms.length>0&&d.push(new gr(i,this.fieldTransforms)),d},a}(),Td=function(){function a(i,o,d){this.data=i,this.We=o,this.fieldTransforms=d}return a.prototype.w_=function(i,o){var d=[new xn(i,this.data,this.We,o)];return this.fieldTransforms.length>0&&d.push(new gr(i,this.fieldTransforms)),d},a}();function za(a){switch(a){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw M()}}var zs=function(){function a(i,o,d,F,ne,Ee){this.settings=i,this.U=o,this.serializer=d,this.ignoreUndefinedProperties=F,void 0===ne&&this.m_(),this.fieldTransforms=ne||[],this.We=Ee||[]}return Object.defineProperty(a.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"s_",{get:function(){return this.settings.s_},enumerable:!1,configurable:!0}),a.prototype.T_=function(i){return new a(Object.assign(Object.assign({},this.settings),i),this.U,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.We)},a.prototype.E_=function(i){var o,d=null===(o=this.path)||void 0===o?void 0:o.child(i),F=this.T_({path:d,o_:!1});return F.I_(i),F},a.prototype.A_=function(i){var o,d=null===(o=this.path)||void 0===o?void 0:o.child(i),F=this.T_({path:d,o_:!1});return F.m_(),F},a.prototype.R_=function(i){return this.T_({path:void 0,o_:!0})},a.prototype.i_=function(i){return Xu(i,this.settings.methodName,this.settings.g_||!1,this.path,this.settings.r_)},a.prototype.contains=function(i){return void 0!==this.We.find(function(o){return i.T(o)})||void 0!==this.fieldTransforms.find(function(o){return i.T(o.field)})},a.prototype.m_=function(){if(this.path)for(var i=0;i<this.path.length;i++)this.I_(this.path.get(i))},a.prototype.I_=function(i){if(0===i.length)throw this.i_("Document fields must not be empty");if(za(this.s_)&&Cd.test(i))throw this.i_('Document fields cannot begin and end with "__"')},a}(),$o=function(){function a(i,o,d){this.U=i,this.ignoreUndefinedProperties=o,this.serializer=d||du(i)}return a.prototype.P_=function(i,o,d,F){return void 0===F&&(F=!1),new zs({s_:i,methodName:o,r_:d,path:k.P(),o_:!1,g_:F},this.U,this.serializer,this.ignoreUndefinedProperties)},a}();function Ll(a,i,o,d,F,ne){void 0===ne&&(ne={});var Ee=a.P_(ne.merge||ne.mergeFields?2:0,i,o,F);Oa("Data must be an object, but it was:",Ee,d);var je,ft,Gt=Eh(d,Ee);if(ne.merge)je=new cr(Ee.We),ft=Ee.fieldTransforms;else if(ne.mergeFields){for(var pn=[],Rn=0,On=ne.mergeFields;Rn<On.length;Rn++){var Kn=On[Rn],lr=void 0;if(Kn instanceof va)lr=Kn.t_;else{if("string"!=typeof Kn)throw M();lr=mu(i,Kn,o)}if(!Ee.contains(lr))throw new C(P.INVALID_ARGUMENT,"Field '"+lr+"' is specified in your field mask but missing from your input data.");Oc(pn,lr)||pn.push(lr)}je=new cr(pn),ft=Ee.fieldTransforms.filter(function(vr){return je.Ye(vr.field)})}else je=null,ft=Ee.fieldTransforms;return new up(new Or(Gt),je,ft)}function Bo(a,i,o,d){var F=a.P_(1,i,o);Oa("Data must be an object, but it was:",F,d);var ne=[],Ee=new Je;Z(d,function(ft,Gt){var pn=mu(i,ft,o),Rn=F.A_(pn);if(Gt instanceof Ss||Gt instanceof gu&&Gt.l_ instanceof Ss)ne.push(pn);else{var On=Ma(Gt,Rn);null!=On&&(ne.push(pn),Ee.set(pn,On))}});var je=new cr(ne);return new Td(Ee.Xe(),je,F.fieldTransforms)}function io(a,i,o,d,F,ne){var Ee=a.P_(1,i,o),je=[hl(i,d,o)],ft=[F];if(ne.length%2!=0)throw new C(P.INVALID_ARGUMENT,"Function "+i+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var Gt=0;Gt<ne.length;Gt+=2)je.push(hl(i,ne[Gt])),ft.push(ne[Gt+1]);for(var pn=[],Rn=new Je,On=je.length-1;On>=0;--On)if(!Oc(pn,je[On])){var Kn=je[On],lr=ft[On],vr=Ee.A_(Kn);if(lr instanceof Ss||lr instanceof gu&&lr.l_ instanceof Ss)pn.push(Kn);else{var ni=Ma(lr,vr);null!=ni&&(pn.push(Kn),Rn.set(Kn,ni))}}var Qr=new cr(pn);return new Td(Rn.Xe(),Qr,Ee.fieldTransforms)}function Bl(a,i,o,d){return void 0===d&&(d=!1),Ma(o,a.P_(d?4:3,i))}function Ma(a,i){if(a instanceof gu&&(a=a.l_),Mc(a))return Oa("Unsupported field value:",i,a),Eh(a,i);if(a instanceof Ra)return function(o,d){if(!za(d.s_))throw d.i_(o.e_+"() can only be used with update(
1) and set()");if(!d.path)throw d.i_(o.e_+"() is not currently supported inside arrays");var F=o.n_(d);F&&d.fieldTransforms.push(F)}(a,i),null;if(i.path&&i.We.push(i.path),a instanceof Array){if(i.settings.o_&&4!==i.s_)throw i.i_("Nested arrays are not supported");return function(o,d){for(var F=[],ne=0,Ee=0,je=o;Ee<je.length;Ee++){var ft=Ma(je[Ee],d.R_(ne));null==ft&&(ft={nullValue:"NULL_VALUE"}),F.push(ft),ne++}return{arrayValue:{values:F}}}(a,i)}return function(o,d){if(null===o)return{nullValue:"NULL_VALUE"};if("number"==typeof o)return er(d.serializer,o);if("boolean"==typeof o)return{booleanValue:o};if("string"==typeof o)return{stringValue:o};if(o instanceof Date){var F=ht.fromDate(o);return{timestampValue:or(d.serializer,F)}}if(o instanceof ht){var ne=new ht(o.seconds,1e3*Math.floor(o.nanoseconds/1e3));return{timestampValue:or(d.serializer,ne)}}if(o instanceof cl)return{geoPointValue:{latitude:o.latitude,longitude:o.longitude}};if(o instanceof Lt)return{bytesValue:wr(d.serializer,o.q)};if(o instanceof xa){var Ee=d.U,je=o.__;if(!je.isEqual(Ee))throw d.i_("Document reference is for database "+je.projectId+"/"+je.database+" but should be for database "+Ee.projectId+"/"+Ee.database);return{referenceValue:ei(o.__||d.U,o.f_.path)}}if(void 0===o&&d.ignoreUndefinedProperties)return null;throw d.i_("Unsupported field value: "+A(o))}(a,i)}function Eh(a,i){var o={};return G(a)?i.path&&i.path.length>0&&i.We.push(i.path):Z(a,function(d,F){var ne=Ma(F,i.E_(d));null!=ne&&(o[d]=ne)}),{mapValue:{fields:o}}}function Mc(a){return!("object"!=typeof a||null===a||a instanceof Array||a instanceof Date||a instanceof ht||a instanceof cl||a instanceof Lt||a instanceof xa||a instanceof Ra)}function Oa(a,i,o){if(!Mc(o)||!p(o)){var d=A(o);throw i.i_("an object"===d?a+" a custom object":a+" "+d)}}function hl(a,i,o){if(i instanceof va)return i.t_;if("string"==typeof i)return mu(a,i);throw Xu("Field path arguments must be of type string or FieldPath.",a,!1,void 0,o)}function mu(a,i,o){try{return function(F){if(F.search(xc)>=0)throw new C(P.INVALID_ARGUMENT,"Invalid field path ("+F+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(sa.bind.apply(sa,t.__spreadArrays([void 0],F.split("."))))}catch(ne){throw new C(P.INVALID_ARGUMENT,"Invalid field path ("+F+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(i).t_}catch(F){throw Xu((d=F)instanceof Error?d.message:d.toString(),a,!1,void 0,o)}var d}function Xu(a,i,o,d,F){var ne=d&&!d.m(),Ee=void 0!==F,je="Function "+i+"() called with invalid data";o&&(je+=" (via `toFirestore()`)");var ft="";return(ne||Ee)&&(ft+=" (found",ne&&(ft+=" in field "+d),Ee&&(ft+=" in document "+F),ft+=")"),new C(P.INVALID_ARGUMENT,(je+=". ")+a+ft)}function Oc(a,i){return a.some(function(o){return o.isEqual(i)})}var wh=function(){function a(i){this.Ku=i,this.y_=new Map,this.mutations=[],this.V_=!1,this.p_=null,this.b_=new Set}return a.prototype.v_=function(i){return t.__awaiter(this,void 0,void 0,function(){var o,d=this;return t.__generator(this,function(F){switch(F.label){case 0:if(this.S_(),this.mutations.length>0)throw new C(P.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(ne,Ee){return t.__awaiter(this,void 0,void 0,function(){var je,ft,Gt,pn,Rn,On;return t.__generator(this,function(Kn){switch(Kn.label){case 0:return je=f(ne),ft=ci(je.serializer)+"/documents",Gt={documents:Ee.map(function(lr){return ui(je.serializer,lr)})},[4,je.ku("BatchGetDocuments",ft,Gt)];case 1:return pn=Kn.sent(),Rn=new Map,pn.forEach(function(lr){var ni,Qr,vr=(ni=je.serializer,"found"in(Qr=lr)?function(di,bi){V(!!bi.found);var Bi=Yr(di,bi.found.name),ls=kr(bi.found.updateTime),Cs=new Or({mapValue:{fields:bi.found.fields}});return new It(Bi,ls,Cs,{})}(ni,Qr):"missing"in Qr?function(di,bi){V(!!bi.missing),V(!!bi.readTime);var Bi=Yr(di,bi.missing),ls=kr(bi.readTime);return new Wn(Bi,ls)}(ni,Qr):M());Rn.set(vr.key.toString(),vr)}),On=[],[2,(Ee.forEach(function(lr){var vr=Rn.get(lr.toString());V(!!vr),On.push(vr)}),On)]}})})}(this.Ku,i)];
1case 1:return[2,((o=F.sent()).forEach(function(ne){ne instanceof Wn||ne instanceof It?d.D_(ne):M()}),o)]}})})},a.prototype.set=function(i,o){this.write(o.w_(i,this.Ge(i))),this.b_.add(i.toString())},a.prototype.update=function(i,o){try{this.write(o.w_(i,this.C_(i)))}catch(d){this.p_=d}this.b_.add(i.toString())},a.prototype.delete=function(i){this.write([new zr(i,this.Ge(i))]),this.b_.add(i.toString())},a.prototype.commit=function(){return t.__awaiter(this,void 0,void 0,function(){var i,o=this;return t.__generator(this,function(d){switch(d.label){case 0:if(this.S_(),this.p_)throw this.p_;return i=this.y_,this.mutations.forEach(function(F){i.delete(F.key.toString())}),i.forEach(function(F,ne){var Ee=I.D(ne);o.mutations.push(new ii(Ee,o.Ge(Ee)))}),[4,function(F,ne){return t.__awaiter(this,void 0,void 0,function(){var Ee,je,ft;return t.__generator(this,function(Gt){switch(Gt.label){case 0:return Ee=f(F),je=ci(Ee.serializer)+"/documents",ft={writes:ne.map(function(pn){return Oi(Ee.serializer,pn)})},[4,Ee.$u("Commit",je,ft)];case 1:return Gt.sent(),[2]}})})}(this.Ku,this.mutations)];case 1:return d.sent(),this.V_=!0,[2]}})})},a.prototype.D_=function(i){var o;if(i instanceof It)o=i.version;else{if(!(i instanceof Wn))throw M();o=ct.min()}var d=this.y_.get(i.key.toString());if(d){if(!o.isEqual(d))throw new C(P.ABORTED,"Document version changed between two reads.")}else this.y_.set(i.key.toString(),o)},a.prototype.Ge=function(i){var o=this.y_.get(i.toString());return!this.b_.has(i.toString())&&o?Mr.updateTime(o):Mr.ze()},a.prototype.C_=function(i){var o=this.y_.get(i.toString());if(!this.b_.has(i.toString())&&o){if(o.isEqual(ct.min()))throw new C(P.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Mr.updateTime(o)}return Mr.exists(!0)},a.prototype.write=function(i){this.S_(),this.mutations=this.mutations.concat(i)},a.prototype.S_=function(){},a}(),Id=function(){function a(i,o,d,F){this.cs=i,this.Ku=o,this.updateFunction=d,this.ls=F,this.N_=5,this.ys=new xo(this.cs,"transaction_retry")}return a.prototype.run=function(){this.F_()},a.prototype.F_=function(){var i=this;this.ys.gn(function(){return t.__awaiter(i,void 0,void 0,function(){var o,d,F=this;return t.__generator(this,function(ne){return o=new wh(this.Ku),(d=this.x_(o))&&d.then(function(Ee){F.cs.ws(function(){return o.commit().then(function(){F.ls.resolve(Ee)}).catch(function(je){F.k_(je)})})}).catch(function(Ee){F.k_(Ee)}),[2]})})})},a.prototype.x_=function(i){try{var o=this.updateFunction(i);return!cn(o)&&o.catch&&o.then?o:(this.ls.reject(Error("Transaction callback must return a Promise")),null)}catch(d){return this.ls.reject(d),null}},a.prototype.k_=function(i){var o=this;this.N_>0&&this.M_(i)?(this.N_-=1,this.cs.ws(function(){return o.F_(),Promise.resolve()})):this.ls.reject(i)},a.prototype.M_=function(i){if("FirebaseError"===i.name){var o=i.code;return"aborted"===o||"failed-precondition"===o||!Un(o)}return!1},a}(),kc=function(){function a(i,o){this.credentials=i,this.cs=o,this.clientId=Ye.k(),this.O_=new Di}return a.prototype.start=function(i,o,d,F){var ne=this;this.L_(),this.bl=i;var Ee=new Di,je=!1;return this.credentials.Hc(function(ft){if(!je)return je=!0,m("FirestoreClient","Initializing. user=",ft.uid),ne.B_(o,d,F,ft,Ee).then(ne.O_.resolve,ne.O_.reject);ne.cs.Cs(function(){return function(Gt,pn){return t.__awaiter(this,void 0,void 0,function(){var Rn,On;return t.__generator(this,function(Kn){switch(Kn.label){case 0:return(Rn=f(Gt)).cs.xs(),m("RemoteStore","RemoteStore received new credentials"),On=Io(Rn),Rn.Yu.add(3),[4,no(Rn)];case 1:return Kn.sent(),On&&Rn.th.set("Unknown"),[4,Rn.Gu.Jl(pn)];case 2:return Kn.sent(),Rn.Yu.delete(3),[4,tl(Rn)];case 3:return Kn.sent(),[2]}})})}(ne.ph,ft)})}),this.cs.ws(function(){return ne.O_.promise}),Ee.promise},a.prototype.enableNetwork=function(){var i=this;return this.L_(),this.cs.enqueue(function(){return i.persistence.tc(!0),(d=f(i.ph)).Yu.delete(0),tl(d);var d})},a.prototype.B_=function(i,o,d,F,ne){return t.__awaiter(this,void 0,void 0,function(){var Ee,je,ft=this;return t.__generator(this,function(Gt){switch(Gt.label){case 0:return Gt.trys.push([0,3,,4]),[4,i.initialize(Ee={cs:this.cs,bl:this.bl,clientId:this.clientId,credentials:this.credentials,Wl:F,Dh:100,persistenceSettings:d})];case 1:return Gt.sent(),[4,o.initialize(i,Ee)];case 2:return Gt.sent(),this.persistence=i.persistence,this.Sh=i.Sh,this.ju=i.ju,this.ql=i.ql,this.Ku=o.Ku,this.ph=o.ph,this.fi=o.fi,this.q_=o.bh,this.q_.Us=Ol.bind(null,this.fi),this.q_.js=uu.bind(null,this.fi),this.persistence.Za(function(){return t.__awaiter(ft,void 0,void 0,function(){return t.__generator(this,function(pn){switch(pn.label){case 0:return[4,this.terminate()];case 1:return pn.sent(),[2]}})})}),ne.resolve(),[3,4];case 3:if(je=Gt.sent(),ne.reject(je),!this.U_(je))throw je;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+je),this.B_(new ll,new qo,{jl:!1},F,ne))];case 4:return[2]}})})},a.prototype.U_=function(i){return"FirebaseError"===i.name?i.code===P.FAILED_PRECONDITION||i.code===P.UNIMPLEMENT
1ED:!("undefined"!=typeof DOMException&&i instanceof DOMException)||22===i.code||20===i.code||11===i.code},a.prototype.L_=function(){if(this.cs.ps)throw new C(P.FAILED_PRECONDITION,"The client has already been terminated.")},a.prototype.disableNetwork=function(){var i=this;return this.L_(),this.cs.enqueue(function(){return i.persistence.tc(!1),function(o){return t.__awaiter(this,void 0,void 0,function(){var d;return t.__generator(this,function(F){switch(F.label){case 0:return(d=f(o)).Yu.add(0),[4,no(d)];case 1:return F.sent(),d.th.set("Offline"),[2]}})})}(i.ph)})},a.prototype.terminate=function(){var i=this;this.cs.Ds();var o=new Di;return this.cs.bs(function(){return t.__awaiter(i,void 0,void 0,function(){var d,F;return t.__generator(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,4,,5]),this.ql&&this.ql.stop(),[4,Nu(this.ph)];case 1:return ne.sent(),[4,this.Sh.Di()];case 2:return ne.sent(),[4,this.persistence.Di()];case 3:return ne.sent(),this.credentials.Yc(),o.resolve(),[3,5];case 4:return d=ne.sent(),F=Xn(d,"Failed to shutdown persistence"),o.reject(F),[3,5];case 5:return[2]}})})}),o.promise},a.prototype.waitForPendingWrites=function(){var i=this;this.L_();var o=new Di;return this.cs.ws(function(){return function(d,F){return t.__awaiter(this,void 0,void 0,function(){var ne,Ee,je,ft,Gt;return t.__generator(this,function(pn){switch(pn.label){case 0:Io((ne=f(d)).ph)||m("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),pn.label=1;case 1:return pn.trys.push([1,3,,4]),[4,(Rn=ne.ju,On=f(Rn),On.persistence.runTransaction("Get highest unacknowledged batch id","readonly",function(Kn){return On.Sr.qo(Kn)}))];case 2:return-1===(Ee=pn.sent())?[2,void F.resolve()]:((je=ne.Lh.get(Ee)||[]).push(F),ne.Lh.set(Ee,je),[3,4]);case 3:return ft=pn.sent(),Gt=Xn(ft,"Initialization of waitForPendingWrites() operation failed"),F.reject(Gt),[3,4];case 4:return[2]}var Rn,On})})}(i.fi,o)}),o.promise},a.prototype.listen=function(i,o,d){var F=this;this.L_();var ne=new ia(d),Ee=new Vs(i,ne,o);return this.cs.ws(function(){return vi(F.q_,Ee)}),function(){ne.Zl(),F.cs.ws(function(){return ms(F.q_,Ee)})}},a.prototype.Q_=function(i){return t.__awaiter(this,void 0,void 0,function(){var o,d=this;return t.__generator(this,function(F){switch(F.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return F.sent(),o=new Di,[2,(this.cs.ws(function(){return function(ne,Ee,je){return t.__awaiter(this,void 0,void 0,function(){var ft,Gt,pn;return t.__generator(this,function(Rn){switch(Rn.label){case 0:return Rn.trys.push([0,2,,3]),[4,(On=ne,Kn=Ee,lr=f(On),lr.persistence.runTransaction("read document","readonly",function(vr){return lr.Cc.Cr(vr,Kn)}))];case 1:return(ft=Rn.sent())instanceof It?je.resolve(ft):ft instanceof Wn?je.resolve(null):je.reject(new C(P.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return Gt=Rn.sent(),pn=Xn(Gt,"Failed to get document '"+Ee+" from cache"),je.reject(pn),[3,3];case 3:return[2]}var On,Kn,lr})})}(d.ju,i,o)}),o.promise)]}})})},a.prototype.W_=function(i,o){return void 0===o&&(o={}),t.__awaiter(this,void 0,void 0,function(){var d,F=this;return t.__generator(this,function(ne){switch(ne.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return ne.sent(),d=new Di,[2,(this.cs.ws(function(){return Ee=F.q_,je=F.cs,ft=i,Gt=o,pn=d,Rn=new ia({next:function(Kn){je.ws(function(){return ms(Ee,On)});var lr=Kn.docs.has(ft);!lr&&Kn.fromCache?pn.reject(new C(P.UNAVAILABLE,"Failed to get document because the client is offline.")):lr&&Kn.fromCache&&Gt&&"server"===Gt.source?pn.reject(new C(P.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):pn.resolve(Kn)},error:function(Kn){return pn.reject(Kn)}}),On=new Vs(de(ft.path),Rn,{includeMetadataChanges:!0,Xs:!0}),vi(Ee,On);var Ee,je,ft,Gt,pn,Rn,On}),d.promise)]}})})},a.prototype.j_=function(i){return t.__awaiter(this,void 0,void 0,function(){var o,d=this;return t.__generator(this,function(F){switch(F.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return F.sent(),o=new Di,[2,(this.cs.ws(function(){return function(ne,Ee,je){return t.__awaiter(this,void 0,void 0,function(){var ft,Gt,pn,Rn,On,Kn;return t.__generator(this,function(lr){switch(lr.label){case 0:return lr.trys.push([0,2,,3]),[4,Va(ne,Ee,!0)];case 1:return ft=lr.sent(),Gt=new $a(Ee,ft.Fc),pn=Gt.wh(ft.documents),Rn=Gt.yr(pn,!1),je.resolve(Rn.snapshot),[3,3];case 2:return On=lr.sent(),Kn=Xn(On,"Failed to execute query '"+Ee+" against cache"),je.reject(Kn),[3,3];case 3:return[2]}})})}(d.ju,i,o)}),o.promise)]}})})},a.prototype.K_=function(i,o){return void 0===o&&(o={}),t.__awaiter(this,void 0,void 0,function(){var d,F=this;return t.__generator(this,function(ne){switch(ne.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return ne.sent(),d=new Di,[2,(this.cs.ws(function(){return Ee=F.q_,je=F.cs,ft=i,Gt=o,pn=d,Rn=new ia({next:function(Kn){je.ws(function(){return ms(Ee,On)}),Kn.fromCache&&"server"===Gt.source?pn.reject(new C(P.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):pn.resolve(Kn)},error:function(Kn){return pn.reject(Kn)}}),On=new Vs(ft,Rn,{includeMetadataChanges:!0,Xs:!0}),vi(Ee,On);var Ee,je,ft,Gt,pn,Rn,On}),d.promise)]}})})},a.prototype.write=function(i){var o=this;this.L_();var d=new Di;return this.cs.ws(function(){return function(F,ne,Ee){return t.__awaiter(this,void 0,void 0,function(){var je,ft,Gt,pn;return t.__generator(this,function(Rn){switch(Rn.label){case 0:je=hu(F),Rn.label=1;case 1:return Rn.trys.push([1,5,,6]),[4,(On=je.ju,Kn=ne,vr=f(On),ni=ht.now(),Qr=Kn.reduce(function(di,bi){return di.add(bi.key)},we()),vr.persistence.runTransaction("Locally write mutations","readwrite",function(di){return vr.Cc.kr(di,Qr).next(function(bi){lr=bi;for(var Bi=[],ls=0,Cs=Kn;ls<Cs.length;ls++){var Qo=Cs[ls],Ai=Me(Qo,lr.get(Qo.key));null!=Ai&&Bi.push(new xn(Qo.key,Ai,Ve(Ai.proto.mapValue),Mr.exists(!0)))}return vr.Sr.ko(di,ni,Bi,Kn)})}).then(function(di){var bi=di.lr(lr);return{batchId:di.batchId,wr:bi}}))];case 2:return ft=Rn.sent(),je.Sh.xi(ft.batchId),function(On,Kn,lr){var vr=On.Oh[On.currentUser.ti()];vr||(vr=new tn(Qe)),vr=vr.ot(Kn,lr),On.Oh[On.currentUser.ti()]=vr}(je,ft.batchId,Ee),[4,Ga(je,ft.wr)];case 3:return Rn.sent(),[4,na(je.ph)];case 4:return Rn.sent(),[3,6];case 5:return Gt=Rn.sent(),pn=Xn(Gt,"Failed to persist write"),Ee.reject(pn),[3,6];case 6:return[2]}var On,Kn,lr,vr,ni,Qr})})}(o.fi,i,d)}),d.promise},a.prototype.U=function(){return this.bl.U},a.prototype.G_=function(i){var o=this;this.L_();var d=new ia(i);return this.cs.ws(function(){return t.__awaiter(o,void 0,void 0,function(){return t.__generator(this,function(F){return[2,(ne=this.q_,Ee=d,f(ne).qs.add(Ee),void Ee.next())];var ne,Ee})})}),function(){d.Zl(),o.cs.ws(function(){return t.__awaiter(o,void 0,void 0,function(){return t.__generator(this,function(F){return[2,(ne=this.q_,Ee=d,void f(ne).qs.delete(Ee))];var ne,Ee})})})}},Object.defineProperty(a.prototype,"z_",{get:function(){return this.cs.ps}
1,enumerable:!1,configurable:!0}),a.prototype.transaction=function(i){var o=this;this.L_();var d=new Di;return this.cs.ws(function(){return new Id(o.cs,o.Ku,i,d).run(),Promise.resolve()}),d.promise},a}();function jl(a){return function(i,o){if("object"!=typeof i||null===i)return!1;for(var d=i,F=0,ne=["next","error","complete"];F<ne.length;F++){var Ee=ne[F];if(Ee in d&&"function"==typeof d[Ee])return!0}return!1}(a)}var Ka=function(){function a(i,o,d,F,ne){this.U=i,this.timestampsInSnapshots=o,this.H_=d,this.Y_=F,this.J_=ne}return a.prototype.X_=function(i){switch(Yt(i)){case 0:return null;case 1:return i.booleanValue;case 2:return Kr(i.integerValue||i.doubleValue);case 3:return this.Z_(i.timestampValue);case 4:return this.tf(i);case 5:return i.stringValue;case 6:return this.J_(jr(i.bytesValue));case 7:return this.ef(i.referenceValue);case 8:return this.nf(i.geoPointValue);case 9:return this.sf(i.arrayValue);case 10:return this.if(i.mapValue);default:throw M()}},a.prototype.if=function(i){var o=this,d={};return Z(i.fields||{},function(F,ne){d[F]=o.X_(ne)}),d},a.prototype.nf=function(i){return new cl(Kr(i.latitude),Kr(i.longitude))},a.prototype.sf=function(i){var o=this;return(i.values||[]).map(function(d){return o.X_(d)})},a.prototype.tf=function(i){switch(this.H_){case"previous":var o=ke(i);return null==o?null:this.X_(o);case"estimate":return this.Z_(At(i));default:return null}},a.prototype.Z_=function(i){var o=dr(i),d=new ht(o.seconds,o.nanos);return this.timestampsInSnapshots?d:d.toDate()},a.prototype.ef=function(i){var o=se.g(i);V(bs(o));var d=new ut(o.get(1),o.get(3)),F=new I(o.u(5));return d.isEqual(this.U)||v("Document "+F+" contains a document reference within a different database ("+d.projectId+"/"+d.database+") which is not supported. It will be treated as a reference in the current database ("+this.U.projectId+"/"+this.U.database+") instead."),this.Y_(F)},a}(),vu=$t.ho,Ah=function(){function a(i){var o,d,F,ne,Ee;if(void 0===i.host){if(void 0!==i.ssl)throw new C(P.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else Re("settings","non-empty string","host",i.host),this.host=i.host,He("settings","boolean","ssl",i.ssl),this.ssl=null===(o=i.ssl)||void 0===o||o;if(K("settings",i,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","experimentalAutoDetectLongPolling","ignoreUndefinedProperties"]),He("settings","object","credentials",i.credentials),this.credentials=i.credentials,He("settings","boolean","timestampsInSnapshots",i.timestampsInSnapshots),He("settings","boolean","ignoreUndefinedProperties",i.ignoreUndefinedProperties),!0===i.timestampsInSnapshots?v("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===i.timestampsInSnapshots&&v("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(d=i.timestampsInSnapshots)||void 0===d||d,this.ignoreUndefinedProperties=null!==(F=i.ignoreUndefinedProperties)&&void 0!==F&&F,He("settings","number","cacheSizeBytes",i.cacheSizeBytes),void 0===i.cacheSizeBytes)this.cacheSizeBytes=$t._o;else{if(i.cacheSizeBytes!==vu&&i.cacheSizeBytes<$t.lo)throw new C(P.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+$t.lo);this.cacheSizeBytes=i.cacheSizeBytes}He("settings","boolean","experimentalForceLongPolling",i.experimentalForceLongPolling),this.experimentalForceLongPolling=null!==(ne=i.experimentalForceLongPolling)&&void 0!==ne&&ne,He("settings","boolean","experimentalAutoDetectLongPolling",i.experimentalAutoDetectLongPolling),this.experimentalAutoDetectLongPolling=null!==(Ee=i.experimentalAutoDetectLongPolling)&&void 0!==Ee&&Ee,function(je,ft,Gt,pn){if(!0===ft&&!0===pn)throw new C(P.INVALID_ARGUMENT,"experimentalForceLongPolling and experimentalAutoDetectLongPolling cannot be used together.")}(0,i.experimentalForceLongPolling,0,i.experimentalAutoDetectLongPolling)}return a.prototype.isEqual=function(i){return this.host===i.host&&this.ssl===i.ssl&&this.timestampsInSnapshots===i.timestampsInSnapshots&&this.credentials===i.credentials&&this.cacheSizeBytes===i.cacheSizeBytes&&this.experimentalForceLongPolling===i.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===i.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===i.ignoreUndefinedProperties},a}(),Nc=function(){function a(i,o,d,F){var ne=this;if(void 0===d&&(d=new ll),void 0===F&&(F=new qo),this.rf=d,this.af=F,this.cf=null,this.uf=new kn,this.INTERNAL={delete:function(){return t.__awaiter(ne,void 0,void 0,function(){return t.__generator(this,function(ft){switch(ft.label){case 0:return this.hf(),[4,this.lf.terminate()];case 1:return ft.sent(),[2]}})})}},"object"==typeof i.options){var Ee=i;this.cf=Ee,this.__=a._f(Ee),this.ff=Ee.name,this.df=new gh(o)}else{var je=i;if(!je.projectId)throw new C(P.INVALID_ARGUMENT,"Must provide projectId");this.__=new ut(je.projectId,je.database),this.ff="[DEFAULT]",this.df=new bc}this.wf=new Ah({})}return Object.defineProperty(a.prototype,"mf",{get:function(){return this.Tf||(this.Tf=new $o(this.__,this.wf.ignoreUndefinedProperties)),this.Tf}
1,enumerable:!1,configurable:!0}),a.prototype.settings=function(i){ee("Firestore.settings",arguments,1),ve("Firestore.settings","object",1,i),i.merge&&delete(i=Object.assign(Object.assign({},this.wf),i)).merge;var o=new Ah(i);if(this.lf&&!this.wf.isEqual(o))throw new C(P.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.wf=o,void 0!==o.credentials&&(this.df=function(d){if(!d)return new bc;switch(d.type){case"gapi":var F=d.client;return V(!("object"!=typeof F||null===F||!F.auth||!F.auth.getAuthHeaderValueForFirstParty)),new Ou(F,d.sessionIndex||"0");case"provider":return d.client;default:throw new C(P.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(o.credentials))},a.prototype.enableNetwork=function(){return this.hf(),this.lf.enableNetwork()},a.prototype.disableNetwork=function(){return this.hf(),this.lf.disableNetwork()},a.prototype.enablePersistence=function(i){var o,d;if(this.lf)throw new C(P.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var F=!1,ne=!1;if(i&&(void 0!==i.experimentalTabSynchronization&&v("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),F=null!==(d=null!==(o=i.synchronizeTabs)&&void 0!==o?o:i.experimentalTabSynchronization)&&void 0!==d&&d,ne=!!i.experimentalForceOwningTab&&i.experimentalForceOwningTab,F&&ne))throw new C(P.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Ef(this.rf,this.af,{jl:!0,cacheSizeBytes:this.wf.cacheSizeBytes,synchronizeTabs:F,ka:ne})},a.prototype.clearPersistence=function(){return t.__awaiter(this,void 0,void 0,function(){var i,o=this;return t.__generator(this,function(d){if(void 0!==this.lf&&!this.lf.z_)throw new C(P.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return i=new Di,[2,(this.uf.bs(function(){return t.__awaiter(o,void 0,void 0,function(){var F;return t.__generator(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,,3]),[4,this.rf.clearPersistence(this.__,this.ff)];case 1:return ne.sent(),i.resolve(),[3,3];case 2:return F=ne.sent(),i.reject(F),[3,3];case 3:return[2]}})})}),i.promise)]})})},a.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(a.prototype,"If",{get:function(){return this.hf(),this.lf.z_},enumerable:!1,configurable:!0}),a.prototype.waitForPendingWrites=function(){return this.hf(),this.lf.waitForPendingWrites()},a.prototype.onSnapshotsInSync=function(i){return this.hf(),jl(i)?this.lf.G_(i):(ve("Firestore.onSnapshotsInSync","function",1,i),this.lf.G_({next:i}))},a.prototype.hf=function(){return this.lf||this.Ef(new ll,new qo,{jl:!1}),this.lf},a.prototype.Af=function(){return new _t(this.__,this.ff,this.wf.host,this.wf.ssl,this.wf.experimentalForceLongPolling,this.wf.experimentalAutoDetectLongPolling)},a.prototype.Ef=function(i,o,d){var F=this.Af();return this.lf=new kc(this.df,this.uf),this.lf.start(F,i,o,d)},a._f=function(i){if(!Object.prototype.hasOwnProperty.call(i.options,"projectId"))throw new C(P.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var d=i.options.projectId;if(!d||"string"!=typeof d)throw new C(P.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new ut(d)},Object.defineProperty(a.prototype,"app",{get:function(){if(!this.cf)throw new C(P.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.cf},enumerable:!1,configurable:!0}),a.prototype.collection=function(i){return ee("Firestore.collection",arguments,1),ve("Firestore.collection","non-empty string",1,i),this.hf(),new pl(se.g(i),this,null)},a.prototype.doc=function(i){return ee("Firestore.doc",arguments,1
1),ve("Firestore.doc","non-empty string",1,i),this.hf(),ka.Rf(se.g(i),this,null)},a.prototype.collectionGroup=function(i){if(ee("Firestore.collectionGroup",arguments,1),ve("Firestore.collectionGroup","non-empty string",1,i),i.indexOf("/")>=0)throw new C(P.INVALID_ARGUMENT,"Invalid collection ID '"+i+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.hf(),new fl((o=i,new ue(se.P(),o)),this,null);var o},a.prototype.runTransaction=function(i){var o=this;return ee("Firestore.runTransaction",arguments,1),ve("Firestore.runTransaction","function",1,i),this.hf().transaction(function(d){return i(new so(o,d))})},a.prototype.batch=function(){return this.hf(),new yu(this)},Object.defineProperty(a,"logLevel",{get:function(){switch(E()){case x.LogLevel.DEBUG:return"debug";case x.LogLevel.ERROR:return"error";case x.LogLevel.SILENT:return"silent";case x.LogLevel.WARN:return"warn";case x.LogLevel.INFO:return"info";case x.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),a.setLogLevel=function(i){ee("Firestore.setLogLevel",arguments,1),O("setLogLevel",["debug","error","silent","warn","info","verbose"],1,i),L.setLogLevel(i)},a.prototype.gf=function(){return this.wf.timestampsInSnapshots},a.prototype.Pf=function(){return this.wf},a}(),so=function(){function a(i,o){this.yf=i,this.Vf=o}return a.prototype.get=function(i){var o=this;ee("Transaction.get",arguments,1);var d=Ya("Transaction.get",i,this.yf);return this.Vf.v_([d.f_]).then(function(F){if(!F||1!==F.length)return M();var ne=F[0];if(ne instanceof Wn)return new dl(o.yf,d.f_,null,!1,!1,d.d_);if(ne instanceof It)return new dl(o.yf,d.f_,ne,!1,!1,d.d_);throw M()})},a.prototype.set=function(i,o,d){oe("Transaction.set",arguments,2,3);var F=Ya("Transaction.set",i,this.yf);d=Xa("Transaction.set",d);var ne=Ih(F.d_,o,d),Ee=Ll(this.yf.mf,"Transaction.set",F.f_,ne,null!==F.d_,d);return this.Vf.set(F.f_,Ee),this},a.prototype.update=function(i,o,d){for(var F,ne,Ee=[],je=3;je<arguments.length;je++)Ee[je-3]=arguments[je];return"string"==typeof o||o instanceof sa?(z("Transaction.update",arguments,3),F=Ya("Transaction.update",i,this.yf),ne=io(this.yf.mf,"Transaction.update",F.f_,o,d,Ee)):(ee("Transaction.update",arguments,2),F=Ya("Transaction.update",i,this.yf),ne=Bo(this.yf.mf,"Transaction.update",F.f_,o)),this.Vf.update(F.f_,ne),this},a.prototype.delete=function(i){ee("Transaction.delete",arguments,1);var o=Ya("Transaction.delete",i,this.yf);return this.Vf.delete(o.f_),this},a}(),yu=function(){function a(i){this.yf=i,this.pf=[],this.bf=!1}return a.prototype.set=function(i,o,d){oe("WriteBatch.set",arguments,2,3),this.vf();var F=Ya("WriteBatch.set",i,this.yf);d=Xa("WriteBatch.set",d);var ne=Ih(F.d_,o,d),Ee=Ll(this.yf.mf,"WriteBatch.set",F.f_,ne,null!==F.d_,d);return this.pf=this.pf.concat(Ee.w_(F.f_,Mr.ze())),this},a.prototype.update=function(i,o,d){for(var F,ne,Ee=[],je=3;je<arguments.length;je++)Ee[je-3]=arguments[je];return this.vf(),"string"==typeof o||o instanceof sa?(z("WriteBatch.update",arguments,3),F=Ya("WriteBatch.update",i,this.yf),ne=io(this.yf.mf,"WriteBatch.update",F.f_,o,d,Ee)):(ee("WriteBatch.update",arguments,2),F=Ya("WriteBatch.update",i,this.yf),ne=Bo(this.yf.mf,"WriteBatch.update",F.f_,o)),this.pf=this.pf.concat(ne.w_(F.f_,Mr.exists(!0))),this},a.prototype.delete=function(i){ee("WriteBatch.delete",arguments,1),this.vf();var o=Ya("WriteBatch.delete",i,this.yf);return this.pf=this.pf.concat(new zr(o.f_,Mr.ze())),this},a.prototype.commit=function(){return this.vf(),this.bf=!0,this.pf.length>0?this.yf.hf().write(this.pf):Promise.resolve()},a.prototype.vf=function(){if(this.bf)throw new C(P.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},a}(),ka=function(a){function i(o,d,F){var ne=this;return(ne=a.call(this,d.__,o,F)||this).f_=o,ne.firestore=d,ne.d_=F,ne.lf=ne.firestore.hf(),ne}return t.__extends(i,a),i.Rf=function(o,d,F){if(o.length%2!=0)throw new C(P.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+o.R()+" has "+o.length);return new i(new I(o),d,F)},Object.defineProperty(i.prototype,"id",{get:function(){return this.f_.path._()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"parent",{get:function(){return new pl(this.f_.path.h(),this.firestore,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.f_.path.R()},enumerable:!1,configurable:!0}),i.prototype.collection=function(o){if(ee("DocumentReference.collection",arguments,1),ve("DocumentReference.collection","non-empty string",1,o),!o)throw new C(P.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var d=se.g(o);return new pl(this.f_.path.child(d),this.firestore,null)},i.prototype.isEqual=function(o){if(!(o instanceof i))throw J("isEqual","DocumentReference",1,o);return this.firestore===o.firestore&&this.f_.isEqual(o.f_)&&this.d_===o.d_},i.prototype.set=function(o,d){oe("DocumentReference.set",arguments,1,2),d=Xa("DocumentReference.set",d);var F=Ih(this.d_,o,d),ne=Ll(this.firestore.mf,"DocumentReference.set",this.f_,F,null!==this.d_,d);return this.lf.write(ne.w_(this.f_,Mr.ze()))},i.prototype.update=function(o,d){for(var F,ne=[],Ee=2;Ee<arguments.length;Ee++)ne[Ee-2]=arguments[Ee];return"string"==typeof o||o instanceof sa?(z("DocumentReference.update",arguments,2),F=io(this.firestore.mf,"DocumentReference.update",this.f_,o,d,ne)):(ee("DocumentReference.update",arguments,1),F=Bo(this.firestore.mf,"DocumentReference.update",this.f_,o)),this.lf.write(F.w_(this.f_,Mr.exists(!0)))},i.prototype.delete=function(){return ee("DocumentReference.delete",arguments,0),this.lf.write([new zr(this.f_,Mr.ze())])},i.prototype.onSnapshot=function(){for(var o,d,F,ne=this,Ee=[],je=0;je<arguments.length;je++)Ee[je]=arguments[je];oe("DocumentReference.onSnapshot",arguments,1,4);var ft={includeMetadataChanges:!1},Gt=0;"object"!=typeof Ee[Gt]||jl(Ee[Gt])||(K("DocumentReference.onSnapshot",ft=Ee[Gt],["includeMetadataChanges"]),He("DocumentReference.onSnapshot","boolean","includeMetadataChanges",ft.includeMetadataChanges),Gt++);var pn={includeMetadataChanges:ft.includeMetadataChanges};if(jl(Ee[Gt])){var Rn=Ee[Gt];Ee[Gt]=null===(o=Rn.next)||void 0===o?void 0:o.bind(Rn),Ee[Gt+1]=null===(d=Rn.error)||void 0===d?void 0:d.bind(Rn),Ee[Gt+2]=null===(F=Rn.complete)||void 0===F?void 0:F.bind(Rn)}else ve("DocumentReference.onSnapshot","function",Gt,Ee[Gt]),We("DocumentReference.onSnapshot","function",Gt+1,Ee[Gt+1]),We("DocumentReference.onSnapshot","function",Gt+2,Ee[Gt+2]);var On={next:function(Kn){Ee[Gt]&&Ee[Gt](ne.Sf(Kn))},error:Ee[Gt+1],complete:Ee[Gt+2]};return this.lf.listen(de(this.f_.path),pn,On)},i.prototype.get=function(o){var d=this;oe("DocumentReference.get",arguments,0,1),Pd("DocumentReference.get",o);var F=this.firestore.hf();return o&&"cache"===o.source?F.Q_(this.f_).then(function(ne){return new dl(d.firestore,d.f_,ne,!0,ne instanceof It&&ne.Je,d.d_)}):F.W_(this.f_,o).then(function(ne){return d.Sf(ne)})},i.prototype.withConverter=function(o){return new i(this.f_,this.firestore,o)},i.prototype.Sf=function(o){var d=o.docs.get(this.f_);return new dl(this.firestore,this.f_,d,o.fromCache,o.hasPendingWrites,this.d_)},i}(xa),Sh=function(){function a(i,o){this.hasPendingWrites=i,this.fromCache=o}return a.prototype.isEqual=function(i){return this.hasPendingWrites===i.hasPendingWrites&&this.fromCache===i.fromCache},a}(),dl=function(){function a(i,o,d,F,ne,Ee){this.yf=i,this.f_=o,this.Df=d,this.Cf=F,this.Nf=ne,this.d_=Ee}return a.prototype.data=function(i){var o=this;if(oe("DocumentSnapshot.data",arguments,0,1),i=oa("DocumentSnapshot.data",i),this.Df){if(this.d_){var d=new Yu(this.yf,this.f_,this.Df,this.Cf,this.Nf,null);return this.d_.fromFirestore(d,i)}return new Ka(this.yf.__,this.yf.gf(),i.serverTimestamps||"none",function(F){return new ka(F,o.yf,null)},function(F){return new it(F)}).X_(this.Df.rn())}},a.prototype.get=function(i,o){var d=this;if(oe("DocumentSnapshot.get",arguments,1,2),o=oa("DocumentSnapshot.get",o),this.Df){var F=this.Df.data().field(hl("DocumentSnapshot.get",i,this.f_));if(null!==F)return new Ka(this.yf.__,this.yf.gf(),o.serverTimestamps||"none",function(ne){return new ka(ne,d.yf,d.d_)},function(ne){return new it(ne)}).X_(F)}},Object.defineProperty(a.prototype,"id",{get:function(){return this.f_.path._()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ref",{get:function(){return new ka(this.f_,this.yf,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"exists",{get:function(){return null!==this.Df},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"metadata",{get:function(){return new Sh(this.Nf,this.Cf)},enumerable:!1,configurable:!0}),a.prototype.isEqual=function(i){if(!(i instanceof a))throw J("isEqual","DocumentSnapshot",1,i);return this.yf===i.yf&&this.Cf===i.Cf&&this.f_.isEqual(i.f_)&&(null===this.Df?null===i.Df:this.Df.isEqual(i.Df))&&this.d_===i.d_},a}(),Yu=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.prototype.data=function(o){return a.prototype.data.call(this,o)},i}(dl);function Ch(a,i,o,d,F,ne,Ee){var je;if(F.p()){if("array-contains"===ne||"array-contains-any"===ne)throw new C(P.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+ne+"' queries on FieldPath.documentId().");if("in"===ne||"not-in"===ne){Qu(Ee,ne);for(var ft=[],Gt=0,pn=Ee;Gt<pn.length;Gt++)ft.push(qu(d,a,pn[Gt]));je={arrayValue:{values:ft}}}else je=qu(d,a,Ee)}else"in"!==ne&&"not-in"!==ne&&"array-contains-any"!==ne||Qu(Ee,ne),je=Bl(o,i,Ee,"in"===ne||"not-in"===ne);var On=Xi.create(F,ne,je);return function(Kn,lr){if(lr.hn()){var vr=Cr(Kn);if(null!==vr&&!vr.isEqual(lr.field))throw new C(P.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+vr.toString()+"' and '"+lr.field.toString()+"'");var ni=Jn(Kn);null!==ni&&Fc(0,lr.field,ni)}var Qr=function(di,bi){for(var Bi=0,ls=di.filters;Bi<ls.length;Bi++){var Cs=ls[Bi];if(bi.indexOf(Cs.op)>=0)return Cs.op}return null}(Kn,function(di){switch(di){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(lr.op));if(null!==Qr)throw new C(P.INVALID_ARGUMENT,Qr===lr.op?"Invalid query. You cannot use more than one '"+lr.op.toString()+"' filter.":"Invalid query. You cannot use '"+lr.op.toString()+"' filters with '"+Qr.toString()+"' filters.")}(a,On),On}function Dd(a,i,o){if(null!==a.startAt)throw new C(P.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==a.endAt)throw new C(P.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var d=new ao(i,o);return function(F,ne){if(null===Jn(F)){var Ee=Cr(F);null!==Ee&&Fc(0,Ee,ne.field)}}(a,d),d}function qu(a,i,o){if("string"==typeof o){if(""===o)throw new C(P.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Vr(i)&&-1!==o.indexOf("/"))throw new C(P.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+o+"' contains a '/' character.");var d=i.path.child(se.g(o));if(!I.F(d))throw new C(P.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+d+"' is not because it has an odd number of segments ("+d.length+").");return Ur(a,new I(d))}if(o instanceof xa)return Ur(a,o.f_);throw new C(P.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+A(o)+".")}function Qu(a,i){if(!Array.isArray(a)||0===a.length)throw new C(P.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+i.toString()+"' filters.");if(a.length>10)throw new C(P.INVALID_ARGUMENT,"Invalid Query. '"+i.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===i||"array-contains-any"===i){if(a.indexOf(null)>=0)throw new C(P.INVALID_ARGUMENT,"Invalid Query. '"+i.toString()+"' filters cannot contain 'null' in the value array.");if(a.filter(function(o){return Number.isNaN(o)}).length>0)throw new C(P.INVALID_ARGUMENT,"Invalid Query. '"+i.toString()+"' filters cannot contain 'NaN' in the value array.")}}function Fc(a,i,o){if(!o.isEqual(i))throw new C(P.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+i.toString()+"' and so you must also use '"+i.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+o.toString()+"' instead.")}function Ju(a){if(Xt(a)&&0===a.on.length)throw new C(P.UNIMPLEMENT
1ED,"limitToLast() queries require specifying at least one orderBy() clause")}var fl=function(){function a(i,o,d){this.Ff=i,this.firestore=o,this.d_=d}return a.prototype.where=function(i,o,d){ee("Query.where",arguments,3),N("Query.where",3,d);var je,Gt,F=O("Query.where",["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],2,o),ne=hl("Query.where",i),Ee=Ch(this.Ff,"Query.where",this.firestore.mf,this.firestore.__,ne,F,d);return new a((Gt=(je=this.Ff).filters.concat([Ee]),new ue(je.path,je.collectionGroup,je.on.slice(),Gt,je.limit,je.an,je.startAt,je.endAt)),this.firestore,this.d_)},a.prototype.orderBy=function(i,o){var d;if(oe("Query.orderBy",arguments,1,2),We("Query.orderBy","non-empty string",2,o),void 0===o||"asc"===o)d="asc";else{if("desc"!==o)throw new C(P.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+o+"', expected 'asc' or 'desc'.");d="desc"}var Ee,ft,F=hl("Query.orderBy",i),ne=Dd(this.Ff,F,d);return new a((ft=(Ee=this.Ff).on.concat([ne]),new ue(Ee.path,Ee.collectionGroup,ft,Ee.filters.slice(),Ee.limit,Ee.an,Ee.startAt,Ee.endAt)),this.firestore,this.d_)},a.prototype.limit=function(i){return ee("Query.limit",arguments,1),ve("Query.limit","number",1,i),ie("Query.limit",1,i),new a(qr(this.Ff,i,"F"),this.firestore,this.d_)},a.prototype.limitToLast=function(i){return ee("Query.limitToLast",arguments,1),ve("Query.limitToLast","number",1,i),ie("Query.limitToLast",1,i),new a(qr(this.Ff,i,"L"),this.firestore,this.d_)},a.prototype.startAt=function(i){for(var o=[],d=1;d<arguments.length;d++)o[d-1]=arguments[d];z("Query.startAt",arguments,1);var F=this.xf("Query.startAt",i,o,!0);return new a(Pi(this.Ff,F),this.firestore,this.d_)},a.prototype.startAfter=function(i){for(var o=[],d=1;d<arguments.length;d++)o[d-1]=arguments[d];z("Query.startAfter",arguments,1);var F=this.xf("Query.startAfter",i,o,!1);return new a(Pi(this.Ff,F),this.firestore,this.d_)},a.prototype.endBefore=function(i){for(var o=[],d=1;d<arguments.length;d++)o[d-1]=arguments[d];z("Query.endBefore",arguments,1);var F=this.xf("Query.endBefore",i,o,!0);return new a(mi(this.Ff,F),this.firestore,this.d_)},a.prototype.endAt=function(i){for(var o=[],d=1;d<arguments.length;d++)o[d-1]=arguments[d];z("Query.endAt",arguments,1);var F=this.xf("Query.endAt",i,o,!1);return new a(mi(this.Ff,F),this.firestore,this.d_)},a.prototype.isEqual=function(i){if(!(i instanceof a))throw J("isEqual","Query",1,i);return this.firestore===i.firestore&&ji(this.Ff,i.Ff)&&this.d_===i.d_},a.prototype.withConverter=function(i){return new a(this.Ff,this.firestore,i)},a.prototype.xf=function(i,o,d,F){if(N(i,1,o),o instanceof dl)return ee(i,t.__spreadArrays([o],d),1),function(Ee,je,ft,Gt,pn){if(!Gt)throw new C(P.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+ft+"().");for(var Rn=[],On=0,Kn=Jr(Ee);On<Kn.length;On++){var lr=Kn[On];if(lr.field.p())Rn.push(Ur(je,Gt.key));else{var vr=Gt.field(lr.field);if(Mt(vr))throw new C(P.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+lr.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===vr){var ni=lr.field.R();throw new C(P.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+ni+"' (used as the orderBy) does not exist.")}Rn.push(vr)}}return new Bs(Rn,pn)}(this.Ff,this.firestore.__,i,o.Df,F);var ne=[o].concat(d);return function(Ee,je,ft,Gt,pn,Rn){var On=Ee.on;if(pn.length>On.length)throw new C(P.INVALID_ARGUMENT,"Too many arguments provided to "+Gt+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var Kn=[],lr=0;lr<pn.length;lr++){var vr=pn[lr];if(On[lr].field.p()){if("string"!=typeof vr)throw new C(P.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+Gt+"(), but got a "+typeof vr);if(!Vr(Ee)&&-1!==vr.indexOf("/"))throw new C(P.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+Gt+"() must be a plain document ID, but '"+vr+"' contains a slash.");var ni=Ee.path.child(se.g(vr));if(!I.F(ni))throw new C(P.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+Gt+"() must result in a valid document path, but '"+ni+"' is not because it c
1ontains an odd number of segments.");var Qr=new I(ni);Kn.push(Ur(je,Qr))}else{var di=Bl(ft,Gt,vr);Kn.push(di)}}return new Bs(Kn,Rn)}(this.Ff,this.firestore.__,this.firestore.mf,i,ne,F)},a.prototype.onSnapshot=function(){for(var i,o,d,F=this,ne=[],Ee=0;Ee<arguments.length;Ee++)ne[Ee]=arguments[Ee];oe("Query.onSnapshot",arguments,1,4);var je={},ft=0;if("object"!=typeof ne[ft]||jl(ne[ft])||(K("Query.onSnapshot",je=ne[ft],["includeMetadataChanges"]),He("Query.onSnapshot","boolean","includeMetadataChanges",je.includeMetadataChanges),ft++),jl(ne[ft])){var Gt=ne[ft];ne[ft]=null===(i=Gt.next)||void 0===i?void 0:i.bind(Gt),ne[ft+1]=null===(o=Gt.error)||void 0===o?void 0:o.bind(Gt),ne[ft+2]=null===(d=Gt.complete)||void 0===d?void 0:d.bind(Gt)}else ve("Query.onSnapshot","function",ft,ne[ft]),We("Query.onSnapshot","function",ft+1,ne[ft+1]),We("Query.onSnapshot","function",ft+2,ne[ft+2]);var pn={next:function(Rn){ne[ft]&&ne[ft](new Ul(F.firestore,F.Ff,Rn,F.d_))},error:ne[ft+1],complete:ne[ft+2]};return Ju(this.Ff),this.firestore.hf().listen(this.Ff,je,pn)},a.prototype.get=function(i){var o=this;oe("Query.get",arguments,0,1),Pd("Query.get",i),Ju(this.Ff);var d=this.firestore.hf();return(i&&"cache"===i.source?d.j_(this.Ff):d.K_(this.Ff,i)).then(function(F){return new Ul(o.firestore,o.Ff,F,o.d_)})},a}(),Ul=function(){function a(i,o,d,F){this.yf=i,this.$f=o,this.kf=d,this.d_=F,this.Mf=null,this.Of=null,this.metadata=new Sh(d.hasPendingWrites,d.fromCache)}return Object.defineProperty(a.prototype,"docs",{get:function(){var i=[];return this.forEach(function(o){return i.push(o)}),i},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"empty",{get:function(){return this.kf.docs.m()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"size",{get:function(){return this.kf.docs.size},enumerable:!1,configurable:!0}),a.prototype.forEach=function(i,o){var d=this;oe("QuerySnapshot.forEach",arguments,1,2),ve("QuerySnapshot.forEach","function",1,i),this.kf.docs.forEach(function(F){i.call(o,d.Lf(F,d.metadata.fromCache,d.kf.Wt.has(F.key)))})},Object.defineProperty(a.prototype,"query",{get:function(){return new fl(this.$f,this.yf,this.d_)},enumerable:!1,configurable:!0}),a.prototype.docChanges=function(i){i&&(K("QuerySnapshot.docChanges",i,["includeMetadataChanges"]),He("QuerySnapshot.docChanges","boolean","includeMetadataChanges",i.includeMetadataChanges));var o=!(!i||!i.includeMetadataChanges);if(o&&this.kf.Kt)throw new C(P.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Mf&&this.Of===o||(this.Mf=function(d,F,ne){if(d.Qt.m()){var Ee=0;return d.docChanges.map(function(ft){return{type:"added",doc:ne(ft.doc,d.fromCache,d.Wt.has(ft.doc.key)),oldIndex:-1,newIndex:Ee++}})}var je=d.Qt;return d.docChanges.filter(function(ft){return F||3!==ft.type}).map(function(ft){var Gt=ne(ft.doc,d.fromCache,d.Wt.has(ft.doc.key)),pn=-1,Rn=-1;return 0!==ft.type&&(pn=je.indexOf(ft.doc.key),je=je.delete(ft.doc.key)),1!==ft.type&&(Rn=(je=je.add(ft.doc)).indexOf(ft.doc.key)),{type:Th(ft.type),doc:Gt,oldIndex:pn,newIndex:Rn}})}(this.kf,o,this.Lf.bind(this)),this.Of=o),this.Mf},a.prototype.isEqual=function(i){if(!(i instanceof a))throw J("isEqual","QuerySnapshot",1,i);return this.yf===i.yf&&ji(this.$f,i.$f)&&this.kf.isEqual(i.kf)&&this.d_===i.d_},a.prototype.Lf=function(i,o,d){return new Yu(this.yf,i.key,i,o,d,this.d_)},a}(),pl=function(a){function i(o,d,F){var ne=this;if((ne=a.call(this,de(o),d,F)||this).Bf=o,o.length%2!=1)throw new C(P.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+o.R()+" has "+o.length);return ne}return t.__extends(i,a),Object.defineProperty(i.prototype,"id",{get:function(){return this.Ff.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"parent",{get:function(){var o=this.Ff.path.h();return o.m()?null:new ka(new I(o),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.Ff.path.R()}
1,enumerable:!1,configurable:!0}),i.prototype.doc=function(o){oe("CollectionReference.doc",arguments,0,1),0===arguments.length&&(o=Ye.k()),ve("CollectionReference.doc","non-empty string",1,o);var d=se.g(o);return ka.Rf(this.Ff.path.child(d),this.firestore,this.d_)},i.prototype.add=function(o){ee("CollectionReference.add",arguments,1);var d=this.d_?this.d_.toFirestore(o):o;ve("CollectionReference.add","object",1,d);var F=this.doc();return new ka(F.f_,this.firestore,null).set(d).then(function(){return F})},i.prototype.withConverter=function(o){return new i(this.Bf,this.firestore,o)},i}(fl);function Xa(a,i){if(void 0===i)return{merge:!1};if(K(a,i,["merge","mergeFields"]),He(a,"boolean","merge",i.merge),void 0!==(ne=i.mergeFields)&&function(je,ft,Gt,pn,Rn){if(!(pn instanceof Array))throw new C(P.INVALID_ARGUMENT,"Function "+je+"() requires its "+ft+" option to be an array, but it was: "+A(pn));for(var On=0;On<pn.length;++On)if(!Rn(pn[On]))throw new C(P.INVALID_ARGUMENT,"Function "+je+"() requires all "+ft+" elements to be a string or a FieldPath, but the value at index "+On+" was: "+A(pn[On]))}(a,"mergeFields",0,ne,function(o){return"string"==typeof o||o instanceof sa}),void 0!==i.mergeFields&&void 0!==i.merge)throw new C(P.INVALID_ARGUMENT,"Invalid options passed to function "+a+'(): You cannot specify both "merge" and "mergeFields".');var ne;return i}function oa(a,i){return void 0===i?{}:(K(a,i,["serverTimestamps"]),ge(a,0,"serverTimestamps",i.serverTimestamps,["estimate","previous","none"]),i)}function Pd(a,i){We(a,"object",1,i),i&&(K(a,i,["source"]),ge(a,0,"source",i.source,["default","server","cache"]))}function Ya(a,i,o){if(i instanceof xa){if(i.firestore!==o)throw new C(P.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return i}throw J(a,"DocumentReference",1,i)}function Th(a){switch(a){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return M()}}function Ih(a,i,o){return a?o&&(o.merge||o.mergeFields)?a.toFirestore(i,o):a.toFirestore(i):i}var ya=function(a){function i(){return null!==a&&a.apply(this,arguments)||this}return t.__extends(i,a),i.serverTimestamp=function(){H("FieldValue.serverTimestamp",arguments);var o=new fu("serverTimestamp");return o.e_="FieldValue.serverTimestamp",new i(o)},i.delete=function(){H("FieldValue.delete",arguments);var o=new Ss("deleteField");return o.e_="FieldValue.delete",new i(o)},i.arrayUnion=function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];z("FieldValue.arrayUnion",arguments,1);var F=function(){for(var ne=[],Ee=0;Ee<arguments.length;Ee++)ne[Ee]=arguments[Ee];return z("arrayUnion()",arguments,1),new ul("arrayUnion",ne)}.apply(void 0,o);return F.e_="FieldValue.arrayUnion",new i(F)},i.arrayRemove=function(){for(var o=[],d=0;d<arguments.length;d++)o[d]=arguments[d];z("FieldValue.arrayRemove",arguments,1);var F=function(){for(var ne=[],Ee=0;Ee<arguments.length;Ee++)ne[Ee]=arguments[Ee];return z("arrayRemove()",arguments,1),new Ku("arrayRemove",ne)}.apply(void 0,o);return F.e_="FieldValue.arrayRemove",new i(F)},i.increment=function(o){ve("FieldValue.increment","number",1,o),ee("FieldValue.increment",arguments,1);var d=new pu("increment",o);return d.e_="FieldValue.increment",new i(d)},i.prototype.isEqual=function(o){return this.l_.isEqual(o.l_)},i}(gu),Lc={Firestore:Nc,GeoPoint:cl,Timestamp:ht,Blob:it,Transaction:so,WriteBatch:yu,DocumentReference:ka,DocumentSnapshot:dl,Query:fl,QueryDocumentSnapshot:Yu,QuerySnapshot:Ul,CollectionReference:pl,FieldPath:sa,FieldValue:ya,setLogLevel:Nc.setLogLevel,CACHE_SIZE_UNLIMITED:vu};function Zu(a){a.INTERNAL.registerComponent(new Q.Component("firestore",function(d){return F=d.getProvider("app").getImmediate(),ne=d.getProvider("auth-internal"),Ee=new qo,je=new Sd(Ee),new Nc(F,ne,je,Ee);var F,ne,Ee,je},"PUBLIC").setServiceProps(Object.assign({},Lc))),a.registerVersion("@firebase/firestore","1.18.0")}Zu(W.default),q.__PRIVATE_registerFirestore=Zu},5011:(xe,q,c)=>{"use strict";var t=c(9278),_=c(2472),x=c(6355);function re(G){return G&&"object"==typeof G&&"default"in G?G:{default:G}}var te=re(t),Q={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},S=function(G){function $(se,y,k){var I=G.call(this,y)||this;return Object.setPrototypeOf(I,$.prototype),I.code=se,I.details=k,I}return _.__extends($,G),$}(Error),C=function(){function G($,se){var y=this;this.auth=null,this.messaging=null,this.auth=$.getImmediate({optional:!0}),this.messaging=se.getImmediate({optional:!0}),this.auth||$.get().then(function(k){return y.auth=k},function(){}),this.messaging||se.get().then(function(k){return y.messaging=k},function(){})}return G.prototype.getAuthToken=function(){return _.__awaiter(this,void 0,void 0,function(){var $;return _.__generator(this,function(y){switch(y.label){case 0:if(!this.auth)return[2,void 0];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return($=y.sent())?[2,$.accessToken]:[2,void 0];case 3:return y.sent(),[2,void 0];case 4:return[2]}})})},G.prototype.getInstanceIdToken=function(){return _.__awaiter(this,void 0,void 0,function(){return _.__generator(this,function($){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(se){return[2,void 0]}return[2]})})},G.prototype.getContext=function(){return _.__awaiter(this,void 0,void 0,function(){var $,se;return _.__generator(this,function(y){switch(y.label){case 0:return[4,this.getAuthToken()];case 1:return $=y.sent(),[4,this.getInstanceIdToken()];case 2:return se=y.sent(),[2,{authToken:$,instanceIdToken:se}]}})})},G}();function m(G,$){var se={};for(var y in G)G.hasOwnProperty(y)&&(se[y]=$(G[y]));return se}var v=function(){function G(){}return G.prototype.encode=function($){var se=this;if(null==$)return null;if($ instanceof Number&&($=$.valueOf()),"number"==typeof $&&isFinite($)||!0===$||!1===$||"[object String]"===Object.prototype.toString.call($))return $;if(Array.isArray($))return $.map(function(y){return se.encode(y)});if("function"==typeof $||"object"==typeof $)return m($,function(y){return se.encode(y)});throw new Error("Data cannot be encoded in JSON: "+$)},G.prototype.decode=function($){var se=this;if(null==$)return $;if($["@type"])switch($["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var y=Number($.value);if(isNaN(y))throw new Error("Data cannot be decoded from JSON: "+$);return y;default:throw new Error("Data cannot be decoded from JSON: "+$)}return Array.isArray($)?$.map(function(k){return se.decode(k)}):"function"==typeof $||"object"==typeof $?m($,function(k){return se.decode(k)}):$},G}(),j=function(){function G($,se,y,k,I){var H=this;void 0===k&&(k="us-central1"),this.app_=$,this.fetchImpl=I,this.serializer=new v,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(H.deleteService())}},this.contextProvider=new C(se,y),this.cancelAllRequests=new Promise(function(z){H.deleteService=function(){return z()}});try{var ee=new URL(k);this.customDomain=ee.origin,this.region="us-central1"}catch(z){this.customDomain=null,this.region=k}}return Object.defineProperty(G.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),G.prototype._url=function($){var se=this.app_.options.projectId;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+se+"/"+this.region+"/"+$:null!==this.customDomain?this.customDomain+"/"+$:"https://"+this.region+"-"+se+".cloudfunctions.net/"+$},G.prototype.useFunctionsEmulator=function($){this.emulatorOrigin=$},G.prototype.httpsCallable=function($,se){var y=this;return function(k){return y.call($,k,se||{})}},G.prototype.postJSON=function($,se,y){return _.__awaiter(this,void 0,void 0,function(){var k,H;return _.__generator(this,function(z){switch(z.label){case 0:y["Content-Type"]="application/json",z.label=1;case 1:return z.trys.push([1,3,,4]),[4,this.fetchImpl($,{method:"POST",body:JSON.stringify(se),headers:y})];case 2:return k=z.sent(),[3,4];case 3:return z.sent(),[2,{status:0,json:null}];case 4:H=null,z.label=5;case 5:return z.trys.push([5,7,,8]),[4,k.json()];case 6:return H=z.sent(),[3,8];case 7:return z.sent(),[3,8];case 8:return[2,{status:k.status,json:H}]}})})},G.prototype.call=function($,se,y){return _.__awaiter(this,void 0,void 0,function(){var k,I,H,ee,oe,ve,We,Re,He,ge;return _.__generator(this,function(b){switch(b.label){case 0:return k=this._url($),se=this.serializer.encode(se),I={data:se},H={},[4,this.contextProvider.getContext()];case 1:return(ee=b.sent()).authToken&&(H.Authorization="Bearer "+ee.authToken),ee.instanceIdToken&&(H["Firebase-Instance-ID-Token"]=ee.instanceIdToken),oe=function R(G){var $,se=new Promise(function(y,k){$=setTimeout(function(){k(new S("deadline-exceeded","deadline-exceeded"))},G)});return{timer:$,promise:se}}(y.timeout||7e4),ve=oe.timer,We=oe.promise,[4,Promise.race([M(ve,this.postJSON(k,I,H)),We,M(ve,this.cancelAllRequests)])];
1case 2:if(!(Re=b.sent()))throw new S("cancelled","Firebase Functions instance was deleted.");if(He=function P(G,$,se){var y=function W(G){if(G>=200&&G<300)return"ok";switch(G){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(G),k=y,I=void 0;try{var H=$&&$.error;if(H){var ee=H.status;if("string"==typeof ee){if(!Q[ee])return new S("internal","internal");y=Q[ee],k=ee}var z=H.message;"string"==typeof z&&(k=z),void 0!==(I=H.details)&&(I=se.decode(I))}}catch(oe){}return"ok"===y?null:new S(y,k,I)}(Re.status,Re.json,this.serializer),He)throw He;if(!Re.json)throw new S("internal","Response is not valid JSON object.");if(void 0===(ge=Re.json.data)&&(ge=Re.json.result),void 0===ge)throw new S("internal","Response is missing data field.");return[2,{data:this.serializer.decode(ge)}]}})})},G}();function M(G,$){return _.__awaiter(this,void 0,void 0,function(){var se;return _.__generator(this,function(y){switch(y.label){case 0:return[4,$];case 1:return se=y.sent(),clearTimeout(G),[2,se]}})})}(function f(G,$){var se={Functions:j};G.INTERNAL.registerComponent(new x.Component("functions",function y(k,I){var H=k.getProvider("app").getImmediate(),ee=k.getProvider("auth-internal"),z=k.getProvider("messaging");return new j(H,ee,z,I,$)},"PUBLIC").setServiceProps(se).setMultipleInstances(!0))})(te.default,fetch.bind(self)),te.default.registerVersion("@firebase/functions","0.5.1")},8660:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{registerInstallations:()=>Mt});var t=c(9278),_=c(6355),te=function(){return te=Object.assign||function(At){for(var Ht,Yt=1,un=arguments.length;Yt<un;Yt++)for(var An in Ht=arguments[Yt])Object.prototype.hasOwnProperty.call(Ht,An)&&(At[An]=Ht[An]);return At},te.apply(this,arguments)};function C(ke,At,Ht,Yt){return new(Ht||(Ht=Promise))(function(An,sr){function fr(dr){try{Dr(Yt.next(dr))}catch(Kr){sr(Kr)}}function Ar(dr){try{Dr(Yt.throw(dr))}catch(Kr){sr(Kr)}}function Dr(dr){dr.done?An(dr.value):function un(An){return An instanceof Ht?An:new Ht(function(sr){sr(An)})}(dr.value).then(fr,Ar)}Dr((Yt=Yt.apply(ke,At||[])).next())})}function L(ke,At){var Yt,un,An,sr,Ht={label:0,sent:function(){if(1&An[0])throw An[1];return An[1]},trys:[],ops:[]};return sr={next:fr(0),throw:fr(1),return:fr(2)},"function"==typeof Symbol&&(sr[Symbol.iterator]=function(){return this}),sr;function fr(Dr){return function(dr){return function Ar(Dr){if(Yt)throw new TypeError("Generator is already executing.");for(;Ht;)try{if(Yt=1,un&&(An=2&Dr[0]?un.return:Dr[0]?un.throw||((An=un.return)&&An.call(un),0):un.next)&&!(An=An.call(un,Dr[1])).done)return An;switch(un=0,An&&(Dr=[2&Dr[0],An.value]),Dr[0]){case 0:case 1:An=Dr;break;case 4:return Ht.label++,{value:Dr[1],done:!1};case 5:Ht.label++,un=Dr[1],Dr=[0];continue;case 7:Dr=Ht.ops.pop(),Ht.trys.pop();continue;default:if(!(An=(An=Ht.trys).length>0&&An[An.length-1])&&(6===Dr[0]||2===Dr[0])){Ht=0;continue}if(3===Dr[0]&&(!An||Dr[1]>An[0]&&Dr[1]<An[3])){Ht.label=Dr[1];break}if(6===Dr[0]&&Ht.label<An[1]){Ht.label=An[1],An=Dr;break}if(An&&Ht.label<An[2]){Ht.label=An[2],Ht.ops.push(Dr);break}An[2]&&Ht.ops.pop(),Ht.trys.pop();continue}Dr=At.call(ke,Ht)}catch(dr){Dr=[6,dr],un=0}finally{Yt=An=0}if(5&Dr[0])throw Dr[1];return{value:Dr[0]?Dr[1]:void 0,done:!0}}([Dr,dr])}}}function v(ke){var At="function"==typeof Symbol&&Symbol.iterator,Ht=At&&ke[At],Yt=0;if(Ht)return Ht.call(ke);if(ke&&"number"==typeof ke.length)return{next:function(){return ke&&Yt>=ke.length&&(ke=void 0),{value:ke&&ke[Yt++],done:!ke}}};throw new TypeError(At?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(ke,At){var Ht="function"==typeof Symbol&&ke[Symbol.iterator];if(!Ht)return ke;var un,sr,Yt=Ht.call(ke),An=[];try{for(;(void 0===At||At-- >0)&&!(un=Yt.next()).done;)An.push(un.value)}catch(fr){sr={error:fr}}finally{try{un&&!un.done&&(Ht=Yt.return)&&Ht.call(Yt)}finally{if(sr)throw sr.error}}return An}var b,I=c(1270),H=c(2940),z="0.4.17",ve="w:"+z,p=((b={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',b["not-registered"]="Firebase Installation is not registered.",b["installation-not-found"]="Firebase Installation not found.",b["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',b["app-offline"]="Could not process request. Application offline.",b["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",b),A=new I.ErrorFactory("installations","Installations",p);function N(ke){return ke instanceof I.FirebaseError&&ke.code.includes("request-failed")}function K(ke){return"https://firebaseinstallations.googleapis.com/v1/projects/"+ke.projectId+"/installations"}
1function J(ke){return{token:ke.token,requestStatus:2,expiresIn:Ye(ke.expiresIn),creationTime:Date.now()}}function ie(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt;return L(this,function(un){switch(un.label){case 0:return[4,At.json()];case 1:return Ht=un.sent(),[2,A.create("request-failed",{requestName:ke,serverCode:(Yt=Ht.error).code,serverMessage:Yt.message,serverStatus:Yt.status})]}})})}function he(ke){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":ke.apiKey})}function Oe(ke,At){var Ht=At.refreshToken,Yt=he(ke);return Yt.append("Authorization",function Qe(ke){return"FIS_v2 "+ke}(Ht)),Yt}function Ne(ke){return C(this,void 0,void 0,function(){var At;return L(this,function(Ht){switch(Ht.label){case 0:return[4,ke()];case 1:return(At=Ht.sent()).status>=500&&At.status<600?[2,ke()]:[2,At]}})})}function Ye(ke){return Number(ke.replace("s","000"))}function Ct(ke,At){var Ht=At.fid;return C(this,void 0,void 0,function(){var Yt,un,sr,fr,Ar;return L(this,function(dr){switch(dr.label){case 0:return Yt=K(ke),un=he(ke),sr={method:"POST",headers:un,body:JSON.stringify({fid:Ht,authVersion:"FIS_v2",appId:ke.appId,sdkVersion:ve})},[4,Ne(function(){return fetch(Yt,sr)})];case 1:return(fr=dr.sent()).ok?[4,fr.json()]:[3,3];case 2:return[2,{fid:(Ar=dr.sent()).fid||Ht,registrationStatus:2,refreshToken:Ar.refreshToken,authToken:J(Ar.authToken)}];case 3:return[4,ie("Create Installation",fr)];case 4:throw dr.sent()}})})}function Ot(ke){return new Promise(function(At){setTimeout(At,ke)})}var Lt=/^[cdef][\w-]{21}$/;function Rt(){try{var ke=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(ke),ke[0]=112+ke[0]%16;var Ht=function it(ke){return function ln(ke){var At=btoa(String.fromCharCode.apply(String,function j(){for(var ke=[],At=0;At<arguments.length;At++)ke=ke.concat(R(arguments[At]));return ke}(ke)));return At.replace(/\+/g,"-").replace(/\//g,"_")}(ke).substr(0,22)}(ke);return Lt.test(Ht)?Ht:""}catch(Yt){return""}}function _t(ke){return ke.appName+"!"+ke.appId}var ut=new Map;function yt(ke,At){var Ht=_t(ke);cn(Ht,At),function gt(ke,At){var Ht=St();Ht&&Ht.postMessage({key:ke,fid:At}),sn()}(Ht,At)}function cn(ke,At){var Ht,Yt,un=ut.get(ke);if(un)try{for(var An=v(un),sr=An.next();!sr.done;sr=An.next())(0,sr.value)(At)}catch(Ar){Ht={error:Ar}}finally{try{sr&&!sr.done&&(Yt=An.return)&&Yt.call(An)}finally{if(Ht)throw Ht.error}}}var at=null;function St(){return!at&&"BroadcastChannel"in self&&((at=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(ke){cn(ke.data.key,ke.data.fid)}),at}function sn(){0===ut.size&&at&&(at.close(),at=null)}var mt="firebase-installations-store",Nt=null;function wt(){return Nt||(Nt=(0,H.openDb)("firebase-installations-database",1,function(ke){0===ke.oldVersion&&ke.createObjectStore(mt)})),Nt}function bt(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt,un,An,sr;return L(this,function(fr){switch(fr.label){case 0:return Ht=_t(ke),[4,wt()];case 1:return Yt=fr.sent(),un=Yt.transaction(mt,"readwrite"),[4,(An=un.objectStore(mt)).get(Ht)];case 2:return sr=fr.sent(),[4,An.put(At,Ht)];case 3:return fr.sent(),[4,un.complete];case 4:return fr.sent(),(!sr||sr.fid!==At.fid)&&yt(ke,At.fid),[2,At]}})})}function Kt(ke){return C(this,void 0,void 0,function(){var At,Ht,Yt;return L(this,function(un){switch(un.label){case 0:return At=_t(ke),[4,wt()];case 1:return Ht=un.sent(),[4,(Yt=Ht.transaction(mt,"readwrite")).objectStore(mt).delete(At)];case 2:return un.sent(),[4,Yt.complete];case 3:return un.sent(),[2]}})})}function Un(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt,un,An,sr,fr;return L(this,function(Ar){switch(Ar.label){case 0:return Ht=_t(ke),[4,wt()];case 1:return Yt=Ar.sent(),un=Yt.transaction(mt,"readwrite"),[4,(An=un.objectStore(mt)).get(Ht)];case 2:return sr=Ar.sent(),void 0!==(fr=At(sr))?[3,4]:[4,An.delete(Ht)];case 3:return Ar.sent(),[3,6];case 4:return[4,An.put(fr,Ht)];case 5:Ar.sent(),Ar.label=6;case 6:return[4,un.complete];case 7:return Ar.sent(),fr&&(!sr||sr.fid!==fr.fid)&&yt(ke,fr.fid),[2,fr]}})})}function vt(ke){return C(this,void 0,void 0,function(){var At,Ht,Yt;return L(this,function(un){switch(un.label){case 0:return[4,Un(ke,function(An){var sr=function tn(ke){return Fn(ke||{fid:Rt(),registrationStatus:0})}(An),fr=function Cn(ke,At){if(0===At.registrationStatus){if(!navigator.onLine)return{installationEntry:At,registrationPromise:Promise.reject(A.create("app-offline"))};var Yt={fid:At.fid,registrationStatus:1,registrationTime:Date.now()},un=function Sn(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt;return L(this,function(un){switch(un.label){case 0:return un.trys.push([0,2,,7]),[4,Ct(ke,At)];case 1:return Ht=un.sent(),[2,bt(ke,Ht)];case 2:return N(Yt=un.sent())&&409===Yt.serverCode?[4,Kt(ke)]:[3,4];case 3:return un.sent(),[3,6];case 4:return[4,bt(ke,{fid:At.fid,registrationStatus:0})];case 5:un.sent(),un.label=6;case 6:throw Yt;case 7:return[2]}})})}(ke,Yt);return{installationEntry:Yt,registrationPromise:un}}return 1===At.registrationStatus?{installationEntry:At,registrationPromise:Nn(ke)}:{installationEntry:At}}(ke,sr);return At=fr.registrationPromise,fr.installationEntry})];case 1:return""!==(Ht=un.sent()).fid?[3,3]:(Yt={},[4,At]);case 2:return[2,(Yt.installationEntry=un.sent(),Yt)];case 3:return[2,{installationEntry:Ht,registrationPromise:At}]}})})}function Nn(ke){return C(this,void 0,void 0,function(){var At,Ht,Yt,un;return L(this,function(An){switch(An.label){case 0:return[4,rr(ke)];case 1:At=An.sent(),An.label=2;case 2:return 1!==At.registrationStatus?[3,5]:[4,Ot(100)];case 3:return An.sent(),[4,rr(ke)];case 4:return At=An.sent(),[3,2];case 5:return 0!==At.registrationStatus?[3,7]:[4,vt(ke)];case 6:return Ht=An.sent(),Yt=Ht.installationEntry,(un=Ht.registrationPromise)?[2,un]:[2,Yt];case 7:return[2,At]}})})}function rr(ke){return Un(ke,function(At){if(!At)throw A.create("installation-not-found");return Fn(At)})}function Fn(ke){return function jn(ke){return 1===ke.registrationStatus&&ke.registrationTime+1e4<Date.now()}(ke)?{fid:ke.fid,registrationStatus:0}:ke}function nr(ke,At){var Ht=ke.appConfig,Yt=ke.platformLoggerProvider;return C(this,void 0,void 0,function(){var un,An,sr,Ar,Dr;return L(this,function(jr){switch(jr.label){case 0:return un=function Tt(ke,At){var Ht=At.fid;return K(ke)+"/"+Ht+"/authTokens:generate"}(Ht,At),An=Oe(Ht,At),(sr=Yt.getImmediate({optional:!0}))&&An.append("x-firebase-client",sr.getPlatformInfoString()),Ar={method:"POST",headers:An,body:JSON.stringify({installation:{sdkVersion:ve}})},[4,Ne(function(){return fetch(un,Ar)})];case 1:return(Dr=jr.sent()).ok?[4,Dr.json()]:[3,3];case 2:return[2,J(jr.sent())];case 3:return[4,ie("Generate Auth Token",Dr)];case 4:throw jr.sent()}})})}function hn(ke,At){return void 0===At&&(At=!1),C(this,void 0,void 0,function(){var Ht,Yt,An;return L(this,function(sr){switch(sr.label){case 0:return[4,Un(ke.appConfig,function(fr){if(!Ce(fr))throw A.create("not-registered");var Ar=fr.authToken;if(!At&&function Ue(ke){return 2===ke.requestStatus&&!function st(ke){var At=Date.now();
1return At<ke.creationTime||ke.creationTime+ke.expiresIn<At+36e5}(ke)}(Ar))return fr;if(1===Ar.requestStatus)return Ht=function Se(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt;return L(this,function(un){switch(un.label){case 0:return[4,ae(ke.appConfig)];case 1:Ht=un.sent(),un.label=2;case 2:return 1!==Ht.authToken.requestStatus?[3,5]:[4,Ot(100)];case 3:return un.sent(),[4,ae(ke.appConfig)];case 4:return Ht=un.sent(),[3,2];case 5:return 0===(Yt=Ht.authToken).requestStatus?[2,hn(ke,At)]:[2,Yt]}})})}(ke,At),fr;if(!navigator.onLine)throw A.create("app-offline");var Dr=function Ft(ke){var At={requestStatus:1,requestTime:Date.now()};return te(te({},ke),{authToken:At})}(fr);return Ht=function we(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt,un;return L(this,function(An){switch(An.label){case 0:return An.trys.push([0,3,,8]),[4,nr(ke,At)];case 1:return Ht=An.sent(),un=te(te({},At),{authToken:Ht}),[4,bt(ke.appConfig,un)];case 2:return An.sent(),[2,Ht];case 3:return!N(Yt=An.sent())||401!==Yt.serverCode&&404!==Yt.serverCode?[3,5]:[4,Kt(ke.appConfig)];case 4:return An.sent(),[3,7];case 5:return un=te(te({},At),{authToken:{requestStatus:0}}),[4,bt(ke.appConfig,un)];case 6:An.sent(),An.label=7;case 7:throw Yt;case 8:return[2]}})})}(ke,Dr),Dr})];case 1:return Yt=sr.sent(),Ht?[4,Ht]:[3,3];case 2:return An=sr.sent(),[3,4];case 3:An=Yt.authToken,sr.label=4;case 4:return[2,An]}})})}function ae(ke){return Un(ke,function(At){if(!Ce(At))throw A.create("not-registered");return function nn(ke){return 1===ke.requestStatus&&ke.requestTime+1e4<Date.now()}(At.authToken)?te(te({},At),{authToken:{requestStatus:0}}):At})}function Ce(ke){return void 0!==ke&&2===ke.registrationStatus}function $n(ke){return C(this,void 0,void 0,function(){var At;return L(this,function(Ht){switch(Ht.label){case 0:return[4,vt(ke)];case 1:return(At=Ht.sent().registrationPromise)?[4,At]:[3,3];case 2:Ht.sent(),Ht.label=3;case 3:return[2]}})})}function Gn(ke,At){return C(this,void 0,void 0,function(){var Ht,Yt,un,An;return L(this,function(sr){switch(sr.label){case 0:return Ht=function ir(ke,At){var Ht=At.fid;return K(ke)+"/"+Ht}(ke,At),Yt=Oe(ke,At),un={method:"DELETE",headers:Yt},[4,Ne(function(){return fetch(Ht,un)})];case 1:return(An=sr.sent()).ok?[3,3]:[4,ie("Delete Installation",An)];case 2:throw sr.sent();case 3:return[2]}})})}function mn(ke){return A.create("missing-app-config-values",{valueName:ke})}function Mt(ke){ke.INTERNAL.registerComponent(new _.Component("installations",function(Ht){var Yt=Ht.getProvider("app").getImmediate(),un=function on(ke){var At,Ht;if(!ke||!ke.options)throw mn("App Configuration");if(!ke.name)throw mn("App Name");try{for(var un=v(["projectId","apiKey","appId"]),An=un.next();!An.done;An=un.next()){var sr=An.value;if(!ke.options[sr])throw mn(sr)}}catch(fr){At={error:fr}}finally{try{An&&!An.done&&(Ht=un.return)&&Ht.call(un)}finally{if(At)throw At.error}}return{appName:ke.name,projectId:ke.options.projectId,apiKey:ke.options.apiKey,appId:ke.options.appId}}(Yt),sr={appConfig:un,platformLoggerProvider:Ht.getProvider("platform-logger")},fr={app:Yt,getId:function(){return function vn(ke){return C(this,void 0,void 0,function(){var At,Ht,Yt;return L(this,function(un){switch(un.label){case 0:return[4,vt(ke.appConfig)];case 1:return At=un.sent(),Ht=At.installationEntry,(Yt=At.registrationPromise)?Yt.catch(console.error):hn(ke).catch(console.error),[2,Ht.fid]}})})}(sr)},getToken:function(Ar){return function wn(ke,At){return void 0===At&&(At=!1),C(this,void 0,void 0,function(){return L(this,function(Yt){switch(Yt.label){case 0:return[4,$n(ke.appConfig)];case 1:return Yt.sent(),[4,hn(ke,At)];case 2:return[2,Yt.sent().token]}})})}(sr,Ar)},delete:function(){return function Wt(ke){return C(this,void 0,void 0,function(){var At,Ht;return L(this,function(Yt){switch(Yt.label){case 0:return[4,Un(At=ke.appConfig,function(un){if(!un||0!==un.registrationStatus)return un})];case 1:if(!(Ht=Yt.sent()))return[3,6];if(1!==Ht.registrationStatus)return[3,2];throw A.create("delete-pending-registration");case 2:if(2!==Ht.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw A.create("app-offline");case 3:return[4,Gn(At,Ht)];case 4:return Yt.sent(),[4,Kt(At)];case 5:Yt.sent(),Yt.label=6;case 6:return[2]}})})}(sr)},onIdChange:function(Ar){return function jt(ke,At){var Ht=ke.appConfig;return function ht(ke,At){St();var Ht=_t(ke),Yt=ut.get(Ht);Yt||ut.set(Ht,Yt=new Set),Yt.add(At)}(Ht,At),function(){!function ct(ke,At){var Ht=_t(ke),Yt=ut.get(Ht);!Yt||(Yt.delete(At),0===Yt.size&&ut.delete(Ht),sn())}(Ht,At)}}(sr,Ar)}};return fr},"PUBLIC")),ke.registerVersion("@firebase/installations",z)}Mt(t.default)},4003:(xe,q,c)=>{"use strict";function t(){for(var E=0,m=0,v=arguments.length;m<v;m++)E+=arguments[m].length;var R=Array(E),j=0;for(m=0;m<v;m++)for(var M=arguments[m],V=0,f=M.length;V<f;V++,j++)R[j]=M[V];return R}c.r(q),c.d(q,{LogLevel:()=>re,Logger:()=>P,setLogLevel:()=>C,setUserLogHandler:()=>L});var _,x=[],re=(()=>{return(E=re||(re={}))[E.DEBUG=0]="DEBUG",E[E.VERBOSE=1]="VERBOSE",E[E.INFO=2]="INFO",E[E.WARN=3]="WARN",E[E.ERROR=4]="ERROR",E[E.SILENT=5]="SILENT",re;var E})(),te={debug:re.DEBUG,verbose:re.VERBOSE,info:re.INFO,warn:re.WARN,error:re.ERROR,silent:re.SILENT},Q=re.INFO,S=((_={})[re.DEBUG]="log",_[re.VERBOSE]="log",_[re.INFO]="info",_[re.WARN]="warn",_[re.ERROR]="error",_),W=function(E,m){for(var v=[],R=2;R<arguments.length;R++)v[R-2]=arguments[R];if(!(m<E.logLevel)){var j=(new Date).toISOString(),M=S[m];if(!M)throw new Error("Attempted to log a message with an invali
1d logType (value: "+m+")");console[M].apply(console,t(["["+j+"]  "+E.name+":"],v))}},P=function(){function E(m){this.name=m,this._logLevel=Q,this._logHandler=W,this._userLogHandler=null,x.push(this)}return Object.defineProperty(E.prototype,"logLevel",{get:function(){return this._logLevel},set:function(m){if(!(m in re))throw new TypeError('Invalid value "'+m+'" assigned to `logLevel`');this._logLevel=m},enumerable:!1,configurable:!0}),E.prototype.setLogLevel=function(m){this._logLevel="string"==typeof m?te[m]:m},Object.defineProperty(E.prototype,"logHandler",{get:function(){return this._logHandler},set:function(m){if("function"!=typeof m)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=m},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(m){this._userLogHandler=m},enumerable:!1,configurable:!0}),E.prototype.debug=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];this._userLogHandler&&this._userLogHandler.apply(this,t([this,re.DEBUG],m)),this._logHandler.apply(this,t([this,re.DEBUG],m))},E.prototype.log=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];this._userLogHandler&&this._userLogHandler.apply(this,t([this,re.VERBOSE],m)),this._logHandler.apply(this,t([this,re.VERBOSE],m))},E.prototype.info=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];this._userLogHandler&&this._userLogHandler.apply(this,t([this,re.INFO],m)),this._logHandler.apply(this,t([this,re.INFO],m))},E.prototype.warn=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];this._userLogHandler&&this._userLogHandler.apply(this,t([this,re.WARN],m)),this._logHandler.apply(this,t([this,re.WARN],m))},E.prototype.error=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];this._userLogHandler&&this._userLogHandler.apply(this,t([this,re.ERROR],m)),this._logHandler.apply(this,t([this,re.ERROR],m))},E}();function C(E){x.forEach(function(m){m.setLogLevel(E)})}function L(E,m){for(var v=function(V){var f=null;m&&m.level&&(f=te[m.level]),V.userLogHandler=null===E?null:function(T,Z){for(var G=[],$=2;$<arguments.length;$++)G[$-2]=arguments[$];var se=G.map(function(y){if(null==y)return null;if("string"==typeof y)return y;if("number"==typeof y||"boolean"==typeof y)return y.toString();if(y instanceof Error)return y.message;try{return JSON.stringify(y)}catch(k){return null}}).filter(function(y){return y}).join(" ");Z>=(null!=f?f:T.logLevel)&&E({level:re[Z].toLowerCase(),message:se,args:G,type:T.name})}},R=0,j=x;R<j.length;R++)v(j[R])}},6101:(xe,q,c)=>{"use strict";c.r(q),c(8660);var _=c(6355),x=c(1270),Q=function(){return Q=Object.assign||function(jt){for(var on,mn=1,Mt=arguments.length;mn<Mt;mn++)for(var ke in on=arguments[mn])Object.prototype.hasOwnProperty.call(on,ke)&&(jt[ke]=on[ke]);return jt},Q.apply(this,arguments)};function L(Wt,jt,on,mn){return new(on||(on=Promise))(function(ke,At){function Ht(An){try{un(mn.next(An))}catch(sr){At(sr)}}function Yt(An){try{un(mn.throw(An))}catch(sr){At(sr)}}function un(An){An.done?ke(An.value):function Mt(ke){return ke instanceof on?ke:new on(function(At){At(ke)})}(An.value).then(Ht,Yt)}un((mn=mn.apply(Wt,jt||[])).next())})}function E(Wt,jt){var mn,Mt,ke,At,on={label:0,sent:function(){if(1&ke[0])throw ke[1];return ke[1]},trys:[],ops:[]};return At={next:Ht(0),throw:Ht(1),return:Ht(2)},"function"==typeof Symbol&&(At[Symbol.iterator]=function(){return this}),At;function Ht(un){return function(An){return function Yt(un){if(mn)throw new TypeError("Generator is already executing.");for(;on;)try{if(mn=1,Mt&&(ke=2&un[0]?Mt.return:un[0]?Mt.throw||((ke=Mt.return)&&ke.call(Mt),0):Mt.next)&&!(ke=ke.call(Mt,un[1])).done)return ke;switch(Mt=0,ke&&(un=[2&un[0],ke.value]),un[0]){case 0:case 1:ke=un;break;case 4:return on.label++,{value:un[1],done:!1};case 5:on.label++,Mt=un[1],un=[0];continue;case 7:un=on.ops.pop(),on.trys.pop();continue;default:if(!(ke=(ke=on.trys).length>0&&ke[ke.length-1])&&(6===un[0]||2===un[0])){on=0;continue}if(3===un[0]&&(!ke||un[1]>ke[0]&&un[1]<ke[3])){on.label=un[1];break}
1if(6===un[0]&&on.label<ke[1]){on.label=ke[1],ke=un;break}if(ke&&on.label<ke[2]){on.label=ke[2],on.ops.push(un);break}ke[2]&&on.ops.pop(),on.trys.pop();continue}un=jt.call(Wt,on)}catch(An){un=[6,An],Mt=0}finally{mn=ke=0}if(5&un[0])throw un[1];return{value:un[0]?un[1]:void 0,done:!0}}([un,An])}}}function R(Wt){var jt="function"==typeof Symbol&&Symbol.iterator,on=jt&&Wt[jt],mn=0;if(on)return on.call(Wt);if(Wt&&"number"==typeof Wt.length)return{next:function(){return Wt&&mn>=Wt.length&&(Wt=void 0),{value:Wt&&Wt[mn++],done:!Wt}}};throw new TypeError(jt?"Object is not iterable.":"Symbol.iterator is not defined.")}function j(Wt,jt){var on="function"==typeof Symbol&&Wt[Symbol.iterator];if(!on)return Wt;var Mt,At,mn=on.call(Wt),ke=[];try{for(;(void 0===jt||jt-- >0)&&!(Mt=mn.next()).done;)ke.push(Mt.value)}catch(Ht){At={error:Ht}}finally{try{Mt&&!Mt.done&&(on=mn.return)&&on.call(mn)}finally{if(At)throw At.error}}return ke}var z,H=c(2940),ee=c(9278),oe=((z={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',z["only-available-in-window"]="This method is available in a Window context.",z["only-available-in-sw"]="This method is available in a service worker context.",z["permission-default"]="The notification permission was not granted and dismissed instead.",z["permission-blocked"]="The notification permission was not granted and blocked instead.",z["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",z["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",z["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",z["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",z["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",z["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",z["token-update-no-token"]="FCM returned no token when updating the user to push.",z["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",z["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",z["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",z["invalid-vapid-key"]="The public VAPID key must be a string.",z["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",z),ve=new x.ErrorFactory("messaging","Messaging",oe),He="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",O="FCM_MSG",b="google.c.a.c_id",J=(()=>{return(Wt=J||(J={})).PUSH_RECEIVED="push-received",Wt.NOTIFICATION_CLICKED="notification-clicked",J;var Wt})();function ie(Wt){var jt=new Uint8Array(Wt),on=btoa(String.fromCharCode.apply(String,function M(){for(var Wt=[],jt=0;jt<arguments.length;jt++)Wt=Wt.concat(j(arguments[jt]));return Wt}(jt)));return on.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function he(Wt){for(var on=(Wt+"=".repeat((4-Wt.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),mn=atob(on),Mt=new Uint8Array(mn.length),ke=0;ke<mn.length;
1++ke)Mt[ke]=mn.charCodeAt(ke);return Mt}var Oe="fcm_token_details_db",Ye="fcm_token_object_Store";function Qe(Wt){return L(this,void 0,void 0,function(){var mn,ke=this;return E(this,function(At){switch(At.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(!At.sent().map(function(Ht){return Ht.name}).includes(Oe))return[2,null];At.label=2;case 2:return mn=null,[4,(0,H.openDb)(Oe,5,function(Ht){return L(ke,void 0,void 0,function(){var Yt,un,An,sr;return E(this,function(fr){switch(fr.label){case 0:return Ht.oldVersion<2?[2]:Ht.objectStoreNames.contains(Ye)?[4,(Yt=Ht.transaction.objectStore(Ye)).index("fcmSenderId").get(Wt)]:[2];case 1:return un=fr.sent(),[4,Yt.clear()];case 2:if(fr.sent(),!un)return[2];if(2===Ht.oldVersion){if(!(An=un).auth||!An.p256dh||!An.endpoint)return[2];mn={token:An.fcmToken,createTime:null!==(sr=An.createTime)&&void 0!==sr?sr:Date.now(),subscriptionOptions:{auth:An.auth,p256dh:An.p256dh,endpoint:An.endpoint,swScope:An.swScope,vapidKey:"string"==typeof An.vapidKey?An.vapidKey:ie(An.vapidKey)}}}else(3===Ht.oldVersion||4===Ht.oldVersion)&&(mn={token:(An=un).fcmToken,createTime:An.createTime,subscriptionOptions:{auth:ie(An.auth),p256dh:ie(An.p256dh),endpoint:An.endpoint,swScope:An.swScope,vapidKey:ie(An.vapidKey)}});return[2]}})})})];case 3:return At.sent().close(),[4,(0,H.deleteDb)(Oe)];case 4:return At.sent(),[4,(0,H.deleteDb)("fcm_vapid_details_db")];case 5:return At.sent(),[4,(0,H.deleteDb)("undefined")];case 6:return At.sent(),[2,Ct(mn)?mn:null]}})})}function Ct(Wt){if(!Wt||!Wt.subscriptionOptions)return!1;var jt=Wt.subscriptionOptions;return"number"==typeof Wt.createTime&&Wt.createTime>0&&"string"==typeof Wt.token&&Wt.token.length>0&&"string"==typeof jt.auth&&jt.auth.length>0&&"string"==typeof jt.p256dh&&jt.p256dh.length>0&&"string"==typeof jt.endpoint&&jt.endpoint.length>0&&"string"==typeof jt.swScope&&jt.swScope.length>0&&"string"==typeof jt.vapidKey&&jt.vapidKey.length>0}var Lt="firebase-messaging-store",Jt=null;function Rt(){return Jt||(Jt=(0,H.openDb)("firebase-messaging-database",1,function(Wt){0===Wt.oldVersion&&Wt.createObjectStore(Lt)})),Jt}function it(Wt){return L(this,void 0,void 0,function(){var jt,mn,Mt;return E(this,function(ke){switch(ke.label){case 0:return jt=yt(Wt),[4,Rt()];case 1:return[4,ke.sent().transaction(Lt).objectStore(Lt).get(jt)];case 2:return(mn=ke.sent())?[2,mn]:[3,3];case 3:return[4,Qe(Wt.appConfig.senderId)];case 4:return(Mt=ke.sent())?[4,_t(Wt,Mt)]:[3,6];case 5:return ke.sent(),[2,Mt];case 6:return[2]}})})}function _t(Wt,jt){return L(this,void 0,void 0,function(){var on,mn,Mt;return E(this,function(ke){switch(ke.label){case 0:return on=yt(Wt),[4,Rt()];case 1:return mn=ke.sent(),[4,(Mt=mn.transaction(Lt,"readwrite")).objectStore(Lt).put(jt,on)];case 2:return ke.sent(),[4,Mt.complete];case 3:return ke.sent(),[2,jt]}})})}function ut(Wt){return L(this,void 0,void 0,function(){var jt,on,mn;return E(this,function(Mt){switch(Mt.label){case 0:return jt=yt(Wt),[4,Rt()];case 1:return on=Mt.sent(),[4,(mn=on.transaction(Lt,"readwrite")).objectStore(Lt).delete(jt)];case 2:return Mt.sent(),[4,mn.complete];case 3:return Mt.sent(),[2]}})})}function yt(Wt){return Wt.appConfig.appId}function ht(Wt,jt){return L(this,void 0,void 0,function(){var on,mn,Mt,ke,Ht;return E(this,function(un){switch(un.label){case 0:return[4,at(Wt)];case 1:on=un.sent(),mn=St(jt),Mt={method:"POST",headers:on,body:JSON.stringify(mn)},un.label=2;case 2:return un.trys.push([2,5,,6]),[4,fetch(gt(Wt.appConfig),Mt)];case 3:return[4,un.sent().json()];case 4:return ke=un.sent(),[3,6];case 5:throw Ht=un.sent(),ve.create("token-subscribe-failed",{errorInfo:Ht});case 6:if(ke.error)throw ve.create("token-subscribe-failed",{errorInfo:ke.error.message});if(!ke.token)throw ve.create("token-subscribe-no-token");return[2,ke.token]}})})}function ct(Wt,jt){return L(this,void 0,void 0,function(){var on,mn,Mt,ke,Ht;return E(this,function(un){switch(un.label){case 0:return[4,at(Wt)];case 1:on=un.sent(),mn=St(jt.subscriptionOptions),Mt={method:"PATCH",headers:on,body:JSON.stringify(mn)},un.label=2;case 2:return un.trys.push([2,5,,6]),[4,fetch(gt(Wt.appConfig)+"/"+jt.token,Mt)];case 3:return[4,un.sent().json()];case 4:return ke=un.sent(),[3,6];case 5:throw Ht=un.sent(),ve.create("token-update-failed",{errorInfo:Ht});case 6:if(ke.error)throw ve.create("token-update-failed",{errorInfo:ke.error.message});if(!ke.token)throw ve.create("token-update-no-token");return[2,ke.token]}})})}function cn(Wt,jt){return L(this,void 0,void 0,function(){var on,mn,ke,Ht;return E(this,function(Yt){switch(Yt.label){case 0:return[4,at(Wt)];case 1:on=Yt.sent(),mn={method:"DELETE",headers:on},Yt.label=2;case 2:return Yt.trys.push([2,5,,6]),[4,fetch(gt(Wt.appConfig)+"/"+jt,mn)];case 3:return[4,Yt.sent().json()];case 4:if((ke=Yt.sent()).error)throw ve.create("token-unsubscribe-failed",{errorInfo:ke.error.message});return[3,6];case 5:throw Ht=Yt.sent(),ve.create("token-unsubscribe-failed",{errorInfo:Ht});case 6:return[2]}})})}function gt(Wt){return"https://fcmregistrations.googleapis.com/v1/projects/"+Wt.projectId+"/registrations"}function at(Wt){var jt=Wt.appConfig,on=Wt.installations;return L(this,void 0,void 0,function(){var mn;return E(this,function(Mt){switch(Mt.label){case 0:return[4,on.getToken()];case 1:return mn=Mt.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":jt.apiKey,"x-goog-firebase-installations-auth":"FIS "+mn})]}})})}function St(Wt){var Mt=Wt.vapidKey,ke={web:{endpoint:Wt.endpoint,auth:Wt.auth,p256dh:Wt.p256dh}};return Mt!==He&&(ke.web.applicationPubKey=Mt),ke}function ze(Wt,jt,on){return L(this,void 0,void 0,function(){var mn,Mt,ke,At;return E(this,function(Ht){switch(Ht.label){case 0:if("granted"!==Notification.permission)throw ve.create("permission-blocked");return[4,wt(jt,on)];case 1:return mn=Ht.sent(),[4,it(Wt)];case 2:return Mt=Ht.sent(),ke={vapidKey:on,swScope:jt.scope,endpoint:mn.endpoint,auth:ie(mn.getKey("auth")),p256dh:ie(mn.getKey("p256dh"))},Mt?[3,3]:[2,Nt(Wt,ke)];case 3:if(function bt(Wt,jt){return jt.vapidKey===Wt.vapidKey&&jt.endpoint===Wt.endpoint&&jt.auth===Wt.auth&&jt.p256dh===Wt.p256dh}(Mt.subscriptionOptions,ke))return[3,8];Ht.label=4;case 4:return Ht.trys.push([4,6,,7]),[4,cn(Wt,Mt.token)];case 5:return Ht.sent(),[3,7];case 6:return At=Ht.sent(),console.warn(At),[3,7];case 7:return[2,Nt(Wt,ke)];case 8:return Date.now()>=Mt.createTime+6048e5?[2,mt({token:Mt.token,createTime:Date.now(),subscriptionOptions:ke},Wt,jt)]:[2,Mt.token];case 9:return[2]}})})}function nt(Wt,jt){return L(this,void 0,void 0,function(){var on,mn;return E(this,function(Mt){switch(Mt.label){case 0:return[4,it(Wt)];
1case 1:return(on=Mt.sent())?[4,cn(Wt,on.token)]:[3,4];case 2:return Mt.sent(),[4,ut(Wt)];case 3:Mt.sent(),Mt.label=4;case 4:return[4,jt.pushManager.getSubscription()];case 5:return(mn=Mt.sent())?[2,mn.unsubscribe()]:[2,!0]}})})}function mt(Wt,jt,on){return L(this,void 0,void 0,function(){var mn,Mt,ke;return E(this,function(At){switch(At.label){case 0:return At.trys.push([0,3,,5]),[4,ct(jt,Wt)];case 1:return mn=At.sent(),Mt=Q(Q({},Wt),{token:mn,createTime:Date.now()}),[4,_t(jt,Mt)];case 2:return At.sent(),[2,mn];case 3:return ke=At.sent(),[4,nt(jt,on)];case 4:throw At.sent(),ke;case 5:return[2]}})})}function Nt(Wt,jt){return L(this,void 0,void 0,function(){var on,mn;return E(this,function(Mt){switch(Mt.label){case 0:return[4,ht(Wt,jt)];case 1:return on=Mt.sent(),mn={token:on,createTime:Date.now(),subscriptionOptions:jt},[4,_t(Wt,mn)];case 2:return Mt.sent(),[2,mn.token]}})})}function wt(Wt,jt){return L(this,void 0,void 0,function(){var on;return E(this,function(mn){switch(mn.label){case 0:return[4,Wt.pushManager.getSubscription()];case 1:return(on=mn.sent())?[2,on]:[2,Wt.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:he(jt)})]}})})}function Cn(Wt){return"object"==typeof Wt&&!!Wt&&b in Wt}function Sn(Wt){return new Promise(function(jt){setTimeout(jt,Wt)})}var Nn=function(){function Wt(jt){var on=this;this.firebaseDependencies=jt,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(mn){mn.waitUntil(on.onPush(mn))}),self.addEventListener("pushsubscriptionchange",function(mn){mn.waitUntil(on.onSubChange(mn))}),self.addEventListener("notificationclick",function(mn){mn.waitUntil(on.onNotificationClick(mn))})}return Object.defineProperty(Wt.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),Wt.prototype.setBackgroundMessageHandler=function(jt){if(this.isOnBackgroundMessageUsed=!1,!jt||"function"!=typeof jt)throw ve.create("invalid-bg-handler");this.bgMessageHandler=jt},Wt.prototype.onBackgroundMessage=function(jt){var on=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=jt,function(){on.bgMessageHandler=null}},Wt.prototype.getToken=function(){var jt,on;return L(this,void 0,void 0,function(){var mn;return E(this,function(Mt){switch(Mt.label){case 0:return this.vapidKey?[3,2]:[4,it(this.firebaseDependencies)];case 1:mn=Mt.sent(),this.vapidKey=null!==(on=null===(jt=null==mn?void 0:mn.subscriptionOptions)||void 0===jt?void 0:jt.vapidKey)&&void 0!==on?on:He,Mt.label=2;case 2:return[2,ze(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},Wt.prototype.deleteToken=function(){return nt(this.firebaseDependencies,self.registration)},Wt.prototype.requestPermission=function(){throw ve.create("only-available-in-window")},Wt.prototype.usePublicVapidKey=function(jt){if(null!==this.vapidKey)throw ve.create("use-vapid-key-after-get-token");if("string"!=typeof jt||0===jt.length)throw ve.create("invalid-vapid-key");this.vapidKey=jt},Wt.prototype.useServiceWorker=function(){throw ve.create("only-available-in-window")},Wt.prototype.onMessage=function(){throw ve.create("only-available-in-window")},Wt.prototype.onTokenRefresh=function(){throw ve.create("only-available-in-window")},Wt.prototype.onPush=function(jt){return L(this,void 0,void 0,function(){var on,mn,Mt,ke;return E(this,function(At){switch(At.label){case 0:return on=function Fn(Wt){var jt=Wt.data;if(!jt)return null;try{return jt.json()}catch(on){return null}}(jt),on?[4,hn()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function nr(Wt){return Wt.some(function(jt){return"visible"===jt.visibilityState&&!jt.url.startsWith("chrome-extension://")})}(mn=At.sent())?[2,Tt(mn,on)]:(Mt=!1,on.notification?[4,Se(rr(on))]:[3,3]);case 2:At.sent(),Mt=!0,At.label=3;case 3:return!0===Mt&&!1===this.isOnBackgroundMessageUsed||this.bgMessageHandler&&(ke=function Kt(Wt){var jt={from:Wt.from,collapseKey:Wt.collapse_key};return function Un(Wt,jt){if(jt.notification){Wt.notification={};var on=jt.notification.title;on&&(Wt.notification.title=on);var mn=jt.notification.body;mn&&(Wt.notification.body=mn);var Mt=jt.notification.image;Mt&&(Wt.notification.image=Mt)}}(jt,Wt),function vt(Wt,jt){!jt.data||(Wt.data=jt.data)}(jt,Wt),function tn(Wt,jt){if(jt.fcmOptions){Wt.fcmOptions={};var on=jt.fcmOptions.link;on&&(Wt.fcmOptions.link=on);var mn=jt.fcmOptions.analytics_label;
1mn&&(Wt.fcmOptions.analyticsLabel=mn)}}(jt,Wt),jt}(on),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(ke):this.bgMessageHandler.next(ke)),[2]}})})},Wt.prototype.onSubChange=function(jt){var on,mn;return L(this,void 0,void 0,function(){var ke;return E(this,function(At){switch(At.label){case 0:return jt.newSubscription?[3,2]:[4,nt(this.firebaseDependencies,self.registration)];case 1:case 5:return At.sent(),[2];case 2:return[4,it(this.firebaseDependencies)];case 3:return ke=At.sent(),[4,nt(this.firebaseDependencies,self.registration)];case 4:return At.sent(),[4,ze(this.firebaseDependencies,self.registration,null!==(mn=null===(on=null==ke?void 0:ke.subscriptionOptions)||void 0===on?void 0:on.vapidKey)&&void 0!==mn?mn:He)]}})})},Wt.prototype.onNotificationClick=function(jt){var on,mn;return L(this,void 0,void 0,function(){var Mt,ke,At,Ht,Yt;return E(this,function(un){switch(un.label){case 0:return(Mt=null===(mn=null===(on=jt.notification)||void 0===on?void 0:on.data)||void 0===mn?void 0:mn[O])?jt.action?[2]:(jt.stopImmediatePropagation(),jt.notification.close(),ke=function ae(Wt){var jt,on,mn;return(null!==(on=null===(jt=Wt.fcmOptions)||void 0===jt?void 0:jt.link)&&void 0!==on?on:null===(mn=Wt.notification)||void 0===mn?void 0:mn.click_action)||(Cn(Wt.data)?self.location.origin:null)}(Mt),ke?(At=new URL(ke,self.location.href),Ht=new URL(self.location.origin),At.host!==Ht.host?[2]:[4,jn(At)]):[2]):[2];case 1:return(Yt=un.sent())?[3,4]:[4,self.clients.openWindow(ke)];case 2:return Yt=un.sent(),[4,Sn(3e3)];case 3:return un.sent(),[3,6];case 4:return[4,Yt.focus()];case 5:Yt=un.sent(),un.label=6;case 6:return Yt?(Mt.messageType=J.NOTIFICATION_CLICKED,Mt.isFirebaseMessaging=!0,[2,Yt.postMessage(Mt)]):[2]}})})},Wt}();function rr(Wt){var jt,on=Q({},Wt.notification);return on.data=((jt={})[O]=Wt,jt),on}function jn(Wt){return L(this,void 0,void 0,function(){var jt,on,mn,Mt,ke,At,Ht;return E(this,function(Yt){switch(Yt.label){case 0:return[4,hn()];case 1:jt=Yt.sent();try{for(on=R(jt),mn=on.next();!mn.done;mn=on.next())if(Mt=mn.value,ke=new URL(Mt.url,self.location.href),Wt.host===ke.host)return[2,Mt]}catch(un){At={error:un}}finally{try{mn&&!mn.done&&(Ht=on.return)&&Ht.call(on)}finally{if(At)throw At.error}}return[2,null]}})})}function Tt(Wt,jt){var on,mn;jt.isFirebaseMessaging=!0,jt.messageType=J.PUSH_RECEIVED;try{for(var Mt=R(Wt),ke=Mt.next();!ke.done;ke=Mt.next())ke.value.postMessage(jt)}catch(Ht){on={error:Ht}}finally{try{ke&&!ke.done&&(mn=Mt.return)&&mn.call(Mt)}finally{if(on)throw on.error}}}function hn(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Se(Wt){var jt,on=Wt.actions,mn=Notification.maxActions;return on&&mn&&on.length>mn&&console.warn("This browser only supports "+mn+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(jt=Wt.title)&&void 0!==jt?jt:"",Wt)}var we=function(){function Wt(jt){var on=this;this.firebaseDependencies=jt,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(mn){return on.messageEventListener(mn)})}return Object.defineProperty(Wt.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),Wt.prototype.messageEventListener=function(jt){return L(this,void 0,void 0,function(){var on,mn;return E(this,function(Mt){switch(Mt.label){case 0:return(on=jt.data).isFirebaseMessaging?(this.onMessageCallback&&on.messageType===J.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function Ue(Wt){return delete Wt.messageType,delete Wt.isFirebaseMessaging,Wt}(Object.assign({},on))):this.onMessageCallback.next(Object.assign({},on))),Cn(mn=on.data)&&"1"===mn["google.c.a.e"]?[4,this.logEvent(on.messageType,mn)]:[3,2]):[2];case 1:Mt.sent(),Mt.label=2;case 2:return[2]}})})},Wt.prototype.getVapidKey=function(){return this.vapidKey},Wt.prototype.getSwReg=function(){return this.swRegistration},Wt.prototype.getToken=function(jt){return L(this,void 0,void 0,function(){return E(this,function(on){switch(on.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:on.sent(),on.label=2;case 2:if("granted"!==Notification.permission)throw ve.create("permission-blocked");
1return[4,this.updateVapidKey(null==jt?void 0:jt.vapidKey)];case 3:return on.sent(),[4,this.updateSwReg(null==jt?void 0:jt.serviceWorkerRegistration)];case 4:return on.sent(),[2,ze(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},Wt.prototype.updateVapidKey=function(jt){return L(this,void 0,void 0,function(){return E(this,function(on){return jt?this.vapidKey=jt:this.vapidKey||(this.vapidKey=He),[2]})})},Wt.prototype.updateSwReg=function(jt){return L(this,void 0,void 0,function(){return E(this,function(on){switch(on.label){case 0:return jt||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:on.sent(),on.label=2;case 2:if(!jt&&this.swRegistration)return[2];if(!(jt instanceof ServiceWorkerRegistration))throw ve.create("invalid-sw-registration");return this.swRegistration=jt,[2]}})})},Wt.prototype.registerDefaultSw=function(){return L(this,void 0,void 0,function(){var jt,on;return E(this,function(mn){switch(mn.label){case 0:return mn.trys.push([0,2,,3]),jt=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return jt.swRegistration=mn.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw on=mn.sent(),ve.create("failed-service-worker-registration",{browserErrorMessage:on.message});case 3:return[2]}})})},Wt.prototype.deleteToken=function(){return L(this,void 0,void 0,function(){return E(this,function(jt){switch(jt.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:jt.sent(),jt.label=2;case 2:return[2,nt(this.firebaseDependencies,this.swRegistration)]}})})},Wt.prototype.requestPermission=function(){return L(this,void 0,void 0,function(){var jt;return E(this,function(on){switch(on.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(jt=on.sent()))return[2];throw ve.create("denied"===jt?"permission-blocked":"permission-default")}})})},Wt.prototype.usePublicVapidKey=function(jt){if(null!==this.vapidKey)throw ve.create("use-vapid-key-after-get-token");if("string"!=typeof jt||0===jt.length)throw ve.create("invalid-vapid-key");this.vapidKey=jt},Wt.prototype.useServiceWorker=function(jt){if(!(jt instanceof ServiceWorkerRegistration))throw ve.create("invalid-sw-registration");if(this.swRegistration)throw ve.create("use-sw-after-get-token");this.swRegistration=jt},Wt.prototype.onMessage=function(jt){var on=this;return this.onMessageCallback=jt,function(){on.onMessageCallback=null}},Wt.prototype.setBackgroundMessageHandler=function(){throw ve.create("only-available-in-sw")},Wt.prototype.onBackgroundMessage=function(){throw ve.create("only-available-in-sw")},Wt.prototype.onTokenRefresh=function(){return function(){}},Wt.prototype.logEvent=function(jt,on){return L(this,void 0,void 0,function(){var mn;return E(this,function(ke){switch(ke.label){case 0:return mn=function Ce(Wt){switch(Wt){case J.NOTIFICATION_CLICKED:return"notification_open";case J.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(jt),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return ke.sent().logEvent(mn,{message_id:on[b],message_name:on["google.c.a.c_l"],message_time:on["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},Wt}();function Ft(Wt){return ve.create("missing-app-config-values",{valueName:Wt})}var wn={isSupported:$n};function $n(){return self&&"ServiceWorkerGlobalScope"in self?function ir(){return"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}():function Gn(){return"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}()}ee.default.INTERNAL.registerComponent(new _.Component("messaging",function vn(Wt){var jt=Wt.getProvider("app").getImmediate(),on=function st(Wt){var jt,on;if(!Wt||!Wt.options)throw Ft("App Configuration Object");
1if(!Wt.name)throw Ft("App Name");var Mt=Wt.options;try{for(var ke=R(["projectId","apiKey","appId","messagingSenderId"]),At=ke.next();!At.done;At=ke.next()){var Ht=At.value;if(!Mt[Ht])throw Ft(Ht)}}catch(Yt){jt={error:Yt}}finally{try{At&&!At.done&&(on=ke.return)&&on.call(ke)}finally{if(jt)throw jt.error}}return{appName:Wt.name,projectId:Mt.projectId,apiKey:Mt.apiKey,appId:Mt.appId,senderId:Mt.messagingSenderId}}(jt),ke={app:jt,appConfig:on,installations:Wt.getProvider("installations").getImmediate(),analyticsProvider:Wt.getProvider("analytics-internal")};if(!$n())throw ve.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new Nn(ke):new we(ke)},"PUBLIC").setServiceProps(wn))},2517:(xe,q,c)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=c(9278);c(8660);var _=c(1175),x=c(1270),re=c(4003),te=c(6355);function Q(Mt){return Mt&&"object"==typeof Mt&&"default"in Mt?Mt:{default:Mt}}var G,S=Q(t),P="0.4.2",C=P,m="FB-PERF-TRACE-MEASURE",v="_wt_",j="_fcp",M="_fid",V="@firebase/performance/config",f="@firebase/performance/configexpire",Z="Performance",$=((G={})["trace started"]="Trace {$traceName} was started before.",G["trace stopped"]="Trace {$traceName} is not running.",G["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",G["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",G["no window"]="Window is not available.",G["no app id"]="App id is not available.",G["no project id"]="Project id is not available.",G["no api key"]="Api key is not available.",G["invalid cc log"]="Attempted to queue invalid cc event",G["FB not default"]="Performance can only start when Firebase app instance is the default one.",G["RC response not ok"]="RC response is not ok",G["invalid attribute name"]="Attribute name {$attributeName} is invalid.",G["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",G["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",G["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",G),se=new x.ErrorFactory("performance",Z,$),y=new re.Logger(Z);y.logLevel=re.LogLevel.INFO;var k,I,H=function(){function Mt(ke){if(this.window=ke,!ke)throw se.create("no window");this.performance=ke.performance,this.PerformanceObserver=ke.PerformanceObserver,this.windowLocation=ke.location,this.navigator=ke.navigator,this.document=ke.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=ke.localStorage),ke.perfMetrics&&ke.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=ke.perfMetrics.onFirstInputDelay)}return Mt.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},Mt.prototype.mark=function(ke){!this.performance||!this.performance.mark||this.performance.mark(ke)},Mt.prototype.measure=function(ke,At,Ht){!this.performance||!this.performance.measure||this.performance.measure(ke,At,Ht)},Mt.prototype.getEntriesByType=function(ke){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(ke):[]},Mt.prototype.getEntriesByName=function(ke){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(ke):[]},Mt.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},Mt.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?!!x.isIndexedDBAvailable()||(y.info("IndexedDB is not supported by current browswer"),!1):(y.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},Mt.prototype.setupObserver=function(ke,At){this.PerformanceObserver&&new this.PerformanceObserver(function(Yt){for(var un=0,An=Yt.getEntries();un<An.length;un++)At(An[un])}).observe({entryTypes:[ke]})},Mt.getInstance=function(){return void 0===k&&(k=new Mt(I)),k},Mt}();function z(Mt,ke){var At=Mt.length-ke.length;if(At<0||At>1)throw se.create("invalid String merger input");for(var Ht=[],Yt=0;Yt<Mt.length;
1Yt++)Ht.push(Mt.charAt(Yt)),ke.length>Yt&&Ht.push(ke.charAt(Yt));return Ht.join("")}var oe,We,ve=function(){function Mt(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=z("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=z("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return Mt.prototype.getAppId=function(){var ke=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!ke)throw se.create("no app id");return ke},Mt.prototype.getProjectId=function(){var ke=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!ke)throw se.create("no project id");return ke},Mt.prototype.getApiKey=function(){var ke=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!ke)throw se.create("no api key");return ke},Mt.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},Mt.getInstance=function(){return void 0===oe&&(oe=new Mt),oe},Mt}();function He(){return We}var O=(()=>{return(Mt=O||(O={}))[Mt.UNKNOWN=0]="UNKNOWN",Mt[Mt.VISIBLE=1]="VISIBLE",Mt[Mt.HIDDEN=2]="HIDDEN",O;var Mt})(),b=["firebase_","google_","ga_"],p=new RegExp("^[a-zA-Z]\\w*$");function J(){switch(H.getInstance().document.visibilityState){case"visible":return O.VISIBLE;case"hidden":return O.HIDDEN;default:return O.UNKNOWN}}function ie(){var ke=H.getInstance().navigator.connection;switch(ke&&ke.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var Lt="Could not fetch config, will use default configs";function Rt(Mt){if(!Mt)return Mt;var ke=ve.getInstance(),At=Mt.entries||{};return ke.loggingEnabled=void 0===At.fpr_enabled||"true"===String(At.fpr_enabled),At.fpr_log_source&&(ke.logSource=Number(At.fpr_log_source)),At.fpr_log_endpoint_url&&(ke.logEndPointUrl=At.fpr_log_endpoint_url),At.fpr_log_transport_key&&(ke.transportKey=At.fpr_log_transport_key),void 0!==At.fpr_vc_network_request_sampling_rate&&(ke.networkRequestsSamplingRate=Number(At.fpr_vc_network_request_sampling_rate)),void 0!==At.fpr_vc_trace_sampling_rate&&(ke.tracesSamplingRate=Number(At.fpr_vc_trace_sampling_rate)),ke.logTraceAfterSampling=_t(ke.tracesSamplingRate),ke.logNetworkAfterSampling=_t(ke.networkRequestsSamplingRate),Mt}function _t(Mt){return Math.random()<=Mt}var yt,ut=1;function ht(){return ut=2,yt=yt||function cn(){return function gt(){var Mt=H.getInstance().document;return new Promise(function(ke){if(Mt&&"complete"!==Mt.readyState){var At=function(){"complete"===Mt.readyState&&(Mt.removeEventListener("readystatechange",At),ke())};Mt.addEventListener("readystatechange",At)}else ke()})}().then(function(){return function Re(){var Mt=ve.getInstance().installationsService.getId();return Mt.then(function(ke){We=ke}),Mt}()}).then(function(Mt){return function Ct(Mt){var ke=function Ot(){var Mt=H.getInstance().localStorage;if(Mt){var ke=Mt.getItem(f);if(ke&&function it(Mt){return Number(Mt)>Date.now()}(ke)){var At=Mt.getItem(V);if(At)try{return JSON.parse(At)}catch(Yt){return}}}}();return ke?(Rt(ke),Promise.resolve()):function Jt(Mt){return function ge(){var Mt=ve.getInstance().installationsService.getToken();return Mt.then(function(ke){}),Mt}().then(function(ke){var Ht="https://firebaseremoteconfig.googleapis.com/v1/projects/"+ve.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+ve.getInstance().getApiKey(),Yt=new Request(Ht,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+ke},body:JSON.stringify({app_instance_id:Mt,app_instance_id_token:ke,app_id:ve.getInstance().getAppId(),app_version:C,sdk_version:"0.0.1"})});return fetch(Yt).then(function(un){if(un.ok)return un.json();throw se.create("RC response not ok")})}).catch(function(){y.info(Lt)})}(Mt).then(Rt).then(function(At){return function ln(Mt){var ke=H.getInstance().localStorage;!Mt||!ke||(ke.setItem(V,JSON.stringify(Mt)),ke.setItem(f,String(Date.now()+60*ve.getInstance().configTimeToLive*60*1e3)))}(At)},function(){})}(Mt)}).then(function(){return at()},function(){return at()})}()}function at(){ut=3}var Sn,nt=3,mt=[],Nt=!1;function bt(Mt){setTimeout(function(){if(0!==nt){if(!mt.length)return bt(1e4);!function Kt(){var Mt=_.__spreadArrays(mt);mt=[];var ke=Mt.map(function(Ht){return{source_extension_json_proto3:Ht.message,event_time_ms:String(Ht.eventTime)}});(function Un(Mt,ke){return function vt(Mt){var ke=ve.getInstance().getFlTransportFullUrl();return fetch(ke,{method:"POST",body:JSON.stringify(Mt)})}(Mt).then(function(At){return At.ok||y.info("Call to Firebase backend failed."),At.json()}).then(function(At){var Ht=Number(At.nextRequestWaitMillis),Yt=1e4;isNaN(Ht)||(Yt=Math.max(Ht,Yt));var un=At.logResponseDetails;Array.isArray(un)&&un.length>0&&"RETRY_REQUEST_LATER"===un[0].responseAction&&(mt=_.__spreadArrays(ke,mt),y.info("Retry transport request later.")),nt=3,bt(Yt)})})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:ve.getInstance().logSource,log_event:ke},Mt).catch(function(){mt=_.__spreadArrays(Mt,mt),nt--,y.info("Tries left: "+nt
1+"."),bt(1e4)})}()}},Mt)}function tn(Mt){if(!Mt.eventTime||!Mt.message)throw se.create("invalid cc log");mt=_.__spreadArrays(mt,[Mt])}function Nn(Mt,ke){Sn||(Sn=function Cn(Mt){return function(){for(var ke=[],At=0;At<arguments.length;At++)ke[At]=arguments[At];tn({message:Mt.apply(void 0,ke),eventTime:Date.now()})}}(nr)),Sn(Mt,ke)}function rr(Mt){var ke=ve.getInstance();!ke.instrumentationEnabled&&Mt.isAuto||!ke.dataCollectionEnabled&&!Mt.isAuto||!H.getInstance().requiredApisAvailable()||Mt.isAuto&&J()!==O.VISIBLE||(function ct(){return 3===ut}()?Fn(Mt):ht().then(function(){return Fn(Mt)},function(){return Fn(Mt)}))}function Fn(Mt){if(He()){var ke=ve.getInstance();!ke.loggingEnabled||!ke.logTraceAfterSampling||setTimeout(function(){return Nn(Mt,1)},0)}}function nr(Mt,ke){return 0===ke?function Tt(Mt){var ke={url:Mt.url,http_method:Mt.httpMethod||0,http_response_code:200,response_payload_bytes:Mt.responsePayloadBytes,client_start_time_us:Mt.startTimeUs,time_to_response_initiated_us:Mt.timeToResponseInitiatedUs,time_to_response_completed_us:Mt.timeToResponseCompletedUs},At={application_info:Se(),network_request_metric:ke};return JSON.stringify(At)}(Mt):function hn(Mt){var ke={name:Mt.name,is_auto:Mt.isAuto,client_start_time_us:Mt.startTimeUs,duration_us:Mt.durationUs};0!==Object.keys(Mt.counters).length&&(ke.counters=Mt.counters);var At=Mt.getAttributes();0!==Object.keys(At).length&&(ke.custom_attributes=At);var Ht={application_info:Se(),trace_metric:ke};return JSON.stringify(Ht)}(Mt)}function Se(){return{google_app_id:ve.getInstance().getAppId(),app_instance_id:He(),web_app_info:{sdk_version:C,page_url:H.getInstance().getUrl(),service_worker_status:(Mt=H.getInstance().navigator,"serviceWorker"in Mt?Mt.serviceWorker.controller?2:3:1),visibility_state:J(),effective_connection_type:ie()},application_process_state:0};var Mt}var Ce=["_fp",j,M],Ft=function(){function Mt(ke,At,Ht){void 0===At&&(At=!1),this.name=ke,this.isAuto=At,this.state=1,this.customAttributes={},this.counters={},this.api=H.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=Ht||m+"-"+this.randomId+"-"+this.name,Ht&&this.calculateTraceMetrics())}return Mt.prototype.start=function(){if(1!==this.state)throw se.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},Mt.prototype.stop=function(){if(2!==this.state)throw se.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),rr(this)},Mt.prototype.record=function(ke,At,Ht){if(ke<=0)throw se.create("nonpositive trace startTime",{traceName:this.name});if(At<=0)throw se.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*At),this.startTimeUs=Math.floor(1e3*ke),Ht&&Ht.attributes&&(this.customAttributes=_.__assign({},Ht.attributes)),Ht&&Ht.metrics)for(var Yt=0,un=Object.keys(Ht.metrics);Yt<un.length;Yt++){var An=un[Yt];isNaN(Number(Ht.metrics[An]))||(this.counters[An]=Number(Math.floor(Ht.metrics[An])))}rr(this)},Mt.prototype.incrementMetric=function(ke,At){void 0===At&&(At=1),this.putMetric(ke,void 0===this.counters[ke]?At:this.counters[ke]+At)},Mt.prototype.putMetric=function(ke,At){if(!function Ue(Mt,ke){return!(0===Mt.length||Mt.length>100)&&(ke&&ke.startsWith(v)&&Ce.indexOf(Mt)>-1||!Mt.startsWith("_"))}(ke,this.name))throw se.create("invalid custom metric name",{customMetricName:ke});this.counters[ke]=function st(Mt){var ke=Math.floor(Mt);return ke<Mt&&y.info("Metric value should be an Integer, setting the value as : "+ke+"."),ke}(At)},Mt.prototype.getMetric=function(ke){return this.counters[ke]||0},Mt.prototype.putAttribute=function(ke,At){var Ht=function he(Mt){return!(0===Mt.length||Mt.length>40||b.some(function(At){return Mt.startsWith(At)})||!Mt.match(p))}(ke),Yt=function Oe(Mt){return 0!==Mt.length&&Mt.length<=100}(At);if(Ht&&Yt)this.customAttributes[ke]=At;else{if(!Ht)throw se.create("invalid attribute name",{attributeName:ke});if(!Yt)throw se.create("invalid attribute value",{attributeValue:At})}},Mt.prototype.getAttribute=function(ke){return this.customAttributes[ke]},Mt.prototype.removeAttribute=function(ke){void 0!==this.customAttributes[ke]&&delete this.customAttributes[ke]},Mt.prototype.getAttributes=function(){return _.__assign({},this.customAttributes)},Mt.prototype.setStartTime=function(ke){this.startTimeUs=ke},Mt.prototype.setDuration=function(ke){this.durationUs=ke},Mt.prototype.calculateTraceMetrics=function(){var ke=this.api.getEntriesByName(this.traceMeasure),At=ke&&ke[0];At&&(this.durationUs=Math.floor(1e3*At.duration),this.startTimeUs=Math.floor(1e3*(At.startTime+this.api.getTimeOrigin())))},Mt.createOobTrace=function(ke,At,Ht){var Yt=H.getInstance().getUrl();if(Yt){var un=new Mt(v+Yt,!0),An=Math.floor(1e3*H.getInstance().getTimeOrigin());if(un.setStartTime(An),ke&&ke[0]&&(un.setDuration(Math.floor(1e3*ke[0].duration)),un.putMetric("domInteractive",Math.floor(1e3*ke[0].domInteractive)),un.putMetric("domContentLoadedEventEnd",Math.floor(1e3*ke[0].domContentLoadedEventEnd)),un.putMetric("loadEventEnd",Math.floor(1e3*ke[0].loadEventEnd))),At){var Ar=At.find(function(dr){return"first-paint"===dr.name});Ar&&Ar.startTime&&un.putMetric("_fp",Math.floor(1e3*Ar.startTime));var Dr=At.find(function(dr){return"first-contentful-paint"===dr.name});Dr&&Dr.startTime&&un.putMetric(j,Math.floor(1e3*Dr.startTime)),Ht&&un.putMetric(M,Math.floor(1e3*Ht))}rr(un)}},Mt.createUserTimingTrace=function(ke){rr(new Mt(ke,!1,ke))},Mt}();function nn(Mt){var ke=Mt;if(ke&&void 0!==ke.responseStart){var At=H.getInstance().getTimeOrigin(),Ht=Math.floor(1e3*(ke.startTime+At)),Yt=ke.responseStart?Math.floor(1e3*(ke.responseStart-ke.startTime)):void 0,un=Math.floor(1e3*(ke.responseEnd-ke.startTime));!function jn(Mt){var ke=ve.getInstance();if(ke.instrumentationEnabled){var At=Mt.url,Ht=ke.logEndPointUrl.split("?")[0],Yt=ke.flTransportEndpointUrl.split("?")[0];At===Ht||At===Yt||!ke.loggingEnabled||!ke.logNetworkAfterSampling||setTimeout(function(){return Nn(Mt,0)},0)}}({url:ke.name&&ke.name.split("?")[0],responsePayloadBytes:ke.transferSize,startTimeUs:Ht,timeToResponseInitiatedUs:Yt,timeToResponseCompletedUs:un})}}
1function wn(){!He()||(setTimeout(function(){return function Gn(){var Mt=H.getInstance(),ke=Mt.getEntriesByType("navigation"),At=Mt.getEntriesByType("paint");if(Mt.onFirstInputDelay){var Ht=setTimeout(function(){Ft.createOobTrace(ke,At),Ht=void 0},5e3);Mt.onFirstInputDelay(function(Yt){Ht&&(clearTimeout(Ht),Ft.createOobTrace(ke,At,Yt))})}else Ft.createOobTrace(ke,At)}()},0),setTimeout(function(){return function $n(){for(var Mt=H.getInstance(),At=0,Ht=Mt.getEntriesByType("resource");At<Ht.length;At++)nn(Ht[At]);Mt.setupObserver("resource",nn)}()},0),setTimeout(function(){return function ir(){for(var Mt=H.getInstance(),At=0,Ht=Mt.getEntriesByType("measure");At<Ht.length;At++)Wt(Ht[At]);Mt.setupObserver("measure",Wt)}()},0))}function Wt(Mt){var ke=Mt.name;ke.substring(0,m.length)!==m&&Ft.createUserTimingTrace(ke)}var jt=function(){function Mt(ke){this.app=ke,H.getInstance().requiredApisAvailable()&&x.validateIndexedDBOpenable().then(function(At){At&&(function wt(){Nt||(bt(5500),Nt=!0)}(),ht().then(wn,wn))}).catch(function(At){y.info("Environment doesn't support IndexedDB: "+At)})}return Mt.prototype.trace=function(ke){return new Ft(ke)},Object.defineProperty(Mt.prototype,"instrumentationEnabled",{get:function(){return ve.getInstance().instrumentationEnabled},set:function(ke){ve.getInstance().instrumentationEnabled=ke},enumerable:!1,configurable:!0}),Object.defineProperty(Mt.prototype,"dataCollectionEnabled",{get:function(){return ve.getInstance().dataCollectionEnabled},set:function(ke){ve.getInstance().dataCollectionEnabled=ke},enumerable:!1,configurable:!0}),Mt}();function mn(Mt){Mt.INTERNAL.registerComponent(new te.Component("performance",function(At){return function(At,Ht){if("[DEFAULT]"!==At.name)throw se.create("FB not default");if("undefined"==typeof window)throw se.create("no window");return function ee(Mt){I=Mt}(window),ve.getInstance().firebaseAppInstance=At,ve.getInstance().installationsService=Ht,new jt(At)}(At.getProvider("app").getImmediate(),At.getProvider("installations").getImmediate())},"PUBLIC")),Mt.registerVersion("@firebase/performance",P)}mn(S.default),q.registerPerformance=mn},8072:(xe,q,c)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=c(9278);c(8660);var _=c(2027),x=c(1270),re=c(4003),te=c(6355);function Q(b){return b&&"object"==typeof b&&"default"in b?b:{default:b}}var P,S=Q(t),W=function(){function b(p,A,N,K){this.client=p,this.storage=A,this.storageCache=N,this.logger=K}return b.prototype.isCachedDataFresh=function(p,A){if(!A)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var N=Date.now()-A,K=N<=p;return this.logger.debug("Config fetch cache check. Cache age millis: "+N+". Cache max age millis (minimumFetchIntervalMillis setting): "+p+". Is cache hit: "+K+"."),K},b.prototype.fetch=function(p){return _.__awaiter(this,void 0,void 0,function(){var A,N,K,J,ie;return _.__generator(this,function(he){switch(he.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return A=he.sent(),N=A[0],(K=A[1])&&this.isCachedDataFresh(p.cacheMaxAgeMillis,N)?[2,K]:(p.eTag=K&&K.eTag,[4,this.client.fetch(p)]);case 2:return J=he.sent(),ie=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===J.status&&ie.push(this.storage.setLastSuccessfulFetchResponse(J)),[4,Promise.all(ie)];case 3:return he.sent(),[2,J]}})})},b}(),C=((P={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",P["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",P["registration-api-key"]="Undefined API key. Check Firebase app initialization.",P["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",P["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",P["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",P["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",P["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",P["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",P["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',P["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',P["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",P["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",P),L=new x.ErrorFactory("remoteconfig","Remote Config",C);function m(b){return void 0===b&&(b=navigator),b.languages&&b.languages[0]||b.language}var v=function(){function b(p,A,N,K,J,ie){this.firebaseInstallations=p,this.sdkVersion=A,this.namespace=N,this.projectId=K,this.apiKey=J,this.appId=ie}return b.prototype.fetch=function(p){return _.__awaiter(this,void 0,void 0,function(){var A,J,ie,he,Oe,Ne,Ye,Qe,Ct,Ot,ln,Lt,Jt,Rt,it,_t,ut;return _.__generator(this,function(yt){switch(yt.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:A=yt.sent(),J=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",ie=J+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?ke
1y="+this.apiKey,he={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":p.eTag||"*"},Oe={sdk_version:this.sdkVersion,app_instance_id:A[0],app_instance_id_token:A[1],app_id:this.appId,language_code:m()},Ne={method:"POST",headers:he,body:JSON.stringify(Oe)},Ye=fetch(ie,Ne),Qe=new Promise(function(ht,ct){p.signal.addEventListener(function(){var cn=new Error("The operation was aborted.");cn.name="AbortError",ct(cn)})}),yt.label=2;case 2:return yt.trys.push([2,5,,6]),[4,Promise.race([Ye,Qe])];case 3:return yt.sent(),[4,Ye];case 4:return Ct=yt.sent(),[3,6];case 5:throw Ot=yt.sent(),ln="fetch-client-network","AbortError"===Ot.name&&(ln="fetch-timeout"),L.create(ln,{originalErrorMessage:Ot.message});case 6:if(Lt=Ct.status,Jt=Ct.headers.get("ETag")||void 0,200!==Ct.status)return[3,11];_t=void 0,yt.label=7;case 7:return yt.trys.push([7,9,,10]),[4,Ct.json()];case 8:return _t=yt.sent(),[3,10];case 9:throw ut=yt.sent(),L.create("fetch-client-parse",{originalErrorMessage:ut.message});case 10:Rt=_t.entries,it=_t.state,yt.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===it?Lt=500:"NO_CHANGE"===it?Lt=304:("NO_TEMPLATE"===it||"EMPTY_CONFIG"===it)&&(Rt={}),304!==Lt&&200!==Lt)throw L.create("fetch-status",{httpStatus:Lt});return[2,{status:Lt,eTag:Jt,config:Rt}]}})})},b}(),R=function(){function b(){this.listeners=[]}return b.prototype.addEventListener=function(p){this.listeners.push(p)},b.prototype.abort=function(){this.listeners.forEach(function(p){return p()})},b}(),f=["1","true","t","yes","y","on"],T=function(){function b(p,A){void 0===A&&(A=""),this._source=p,this._value=A}return b.prototype.asString=function(){return this._value},b.prototype.asBoolean=function(){return"static"!==this._source&&f.indexOf(this._value.toLowerCase())>=0},b.prototype.asNumber=function(){if("static"===this._source)return 0;var p=Number(this._value);return isNaN(p)&&(p=0),p},b.prototype.getSource=function(){return this._source},b}(),$=function(){function b(p,A,N,K,J){this.app=p,this._client=A,this._storageCache=N,this._storage=K,this._logger=J,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return b.prototype.setLogLevel=function(p){switch(p){case"debug":this._logger.logLevel=re.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=re.LogLevel.SILENT;break;default:this._logger.logLevel=re.LogLevel.ERROR}},Object.defineProperty(b.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),b.prototype.activate=function(){return _.__awaiter(this,void 0,void 0,function(){var p,A,N;return _.__generator(this,function(K){switch(K.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return p=K.sent(),N=p[1],(A=p[0])&&A.config&&A.eTag&&A.eTag!==N?[4,Promise.all([this._storageCache.setActiveConfig(A.config),this._storage.setActiveConfigEtag(A.eTag)])]:[2,!1];case 2:return K.sent(),[2,!0]}})})},b.prototype.ensureInitialized=function(){var p=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then(function(){p._isInitializationComplete=!0})),this._initializePromise},b.prototype.fetch=function(){return _.__awaiter(this,void 0,void 0,function(){var p,A,N,K=this;return _.__generator(this,function(J){switch(J.label){case 0:p=new R,setTimeout(function(){return _.__awaiter(K,void 0,void 0,function(){return _.__generator(this,function(ie){return p.abort(),[2]})})},this.settings.fetchTimeoutMillis),J.label=1;case 1:return J.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:p})];case 2:return J.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return J.sent(),[3,6];case 4:return A=J.sent(),N=function E(b,p){return b instanceof x.FirebaseError&&-1!==b.code.indexOf(p)}(A,"fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(N)];case 5:throw J.sent(),A;case 6:return[2]}})})},b.prototype.fetchAndActivate=function(){return _.__awaiter(this,void 0,void 0,function(){return _.__generator(this,function(p){switch(p.label){case 0:return[4,this.fetch()];case 1:return p.sent(),[2,this.activate()]}})})},b.prototype.getAll=function(){var p=this;return function se(b,p){return void 0===b&&(b={}),void 0===p&&(p={}),Object.keys(_.__assign(_.__assign({},b),p))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce(function(A,N){return A[N]=p.getValue(N),A},{})},b.prototype.getBoolean=function(p){return this.getValue(p).asBoolean()},b.prototype.getNumber=function(p){return this.getValue(p).asNumber()},b.prototype.getString=function(p){return this.getValue(p).asString()},b.prototype.getValue=function(p){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+p+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var A=this._storageCache.getActiveConfig();return A&&void 0!==A[p]?new T("remote",A[p]):this.defaultConfig&&void 0!==this.defaultConfig[p]?new T("default",String(this.defaultConfig[p])):(this._logger.debug('Returning static value for key "'+p+'". Define a default or remote value if this is unintentional.'),new T("static"))},b}();function y(b,p){var A=b.target.error||void 0;return L.create(p,{originalErrorMessage:A&&A.message})}var k="app_namespace_store",z=function(){function b(p,A,N,K){void 0===K&&(K=function ee(){return new Promise(function(b,p){var A=indexedDB.open("firebase_remote_config",1);A.onerror=function(N){p(y(N,"storage-open"))},A.onsuccess=function(N){b(N.target.result)},A.onupgradeneeded=function(N){0===N.oldVersion&&N.target.result.createObjectStore(k,{keyPath:"compositeKey"})}})}()),this.appId=p,this.appName=A,this.namespace=N,this.openDbPromise=K}return b.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},b.prototype.setLastFetchStatus=function(p){return this.set("last_fetch_status",p)},b.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},b.prototype.setLastSuccessfulFetchTimestampMillis=function(p){return this.set("last_successful_fetch_timestamp_millis",p)},b.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},b.prototype.setLastSuccessfulFetchResponse=function(p){return this.set("last_successful_fetch_response",p)},b.prototype.getActiveConfig=function(){return this.get("active_config")},b.prototype.setActiveConfig=function(p){return this.set("active_config",p)},b.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},b.prototype.setActiveConfigEtag=function(p){return this.set("active_config_etag",p)},b.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},b.prototype.setThrottleMetadata=function(p){return this.set("throttle_metadata",p)},b.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},b.prototype.get=function(p){return _.__awaiter(this,void 0,void 0,function(){var A,N=this;return _.__generator(this,function(K){switch(K.label){case 0:return[4,this.openDbPromise];case 1:return A=K.sent(),[2,new Promise(function(J,ie){var Oe=A.transaction([k],"readonly").objectStore(k),Ne=N.createCompositeKey(p);try{var Ye=Oe.get(Ne);Ye.onerror=function(Qe){ie(y(Qe,"storage-get"))},Ye.onsuccess=function(Qe){var Ct=Qe.target.result;J(Ct?Ct.value:void 0)}}catch(Qe){ie(L.create("storage-get",{originalErrorMessage:Qe&&Qe.message}))}})]}})})},b.prototype.set=function(p,A){return _.__awaiter(this,void 0,void 0,function(){var N,K=this;return _.__generator(this,function(J){switch(J.label){case 0:return[4,this.openDbPromise];case 1:return N=J.sent(),[2,new Promise(function(ie,he){var Ne=N.transaction([k],"readwrite").objectStore(k),Ye=K.createCompositeKey(p);try{var Qe=Ne.put({compositeKey:Ye,value:A});Qe.onerror=function(Ct){he(y(Ct,"storage-set"))},Qe.onsuccess=function(){ie()}}catch(Ct){he(L.create("storage-set",{originalErrorMessage:Ct&&Ct.message}))}})]}})})},b.prototype.delete=function(p){return _.__awaiter(this,void 0,void 0,function(){var A,N=this;return _.__generator(this,function(K){switch(K.label){case 0:return[4,this.openDbPromise];case 1:return A=K.sent(),[2,new Promise(function(J,ie){var Oe=A.transaction([k],"readwrite").objectStore(k),Ne=N.createCompositeKey(p);try{var Ye=Oe.delete(Ne);Ye.onerror=function(Qe){ie(y(Qe,"storage-delete"))},Ye.onsuccess=function(){J()}}catch(Qe){ie(L.create("storage-delete",{originalErrorMessage:Qe&&Qe.message}))}})]}})})},b.prototype.createCompositeKey=function(p){return[this.appId,this.appName,this.namespace,p].join()},b}(),oe=function(){function b(p){this.storage=p}return b.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},b.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},b.prototype.getActiveConfig=function(){return this.activeConfig},b.prototype.loadFromStorage=function(){return _.__awaiter(this,void 0,void 0,function(){var p,A,N,K,J,ie;return _.__generator(this,function(he){switch(he.label){case 0:return p=this.storage.getLastFetchStatus(),A=this.storage.getLastSuccessfulFetchTimestampMillis(),N=this.storage.getActiveConfig(),[4,p];case 1:return(K=he.sent())&&(this.lastFetchStatus=K),[4,A];case 2:return(J=he.sent())&&(this.lastSuccessfulFetchTimestampMillis=J),[4,N];case 3:return(ie=he.sent())&&(this.activeConfig=ie),[2]}})})},b.prototype.setLastFetchStatus=function(p){return this.lastFetchStatus=p,this.storage.setLastFetchStatus(p)},b.prototype.setLastSuccessfulFetchTimestampMillis=function(p){return this.lastSuccessfulFetchTimestampMillis=p,this.storage.setLastSuccessfulFetchTimestampMillis(p)},b.prototype.setActiveConfig=function(p){return this.activeConfig=p,this.storage.setActiveConfig(p)},b}();function ve(b,p){return new Promise(function(A,N){var K=Math.max(p-Date.now(),0),J=setTimeout(A,K);b.addEventListener(function(){clearTimeout(J),N(L.create("fetch-throttle",{throttleEndTimeMillis:p}))})})}var Re=function(){function b(p,A){this.client=p,this.storage=A}return b.prototype.fetch=function(p){return _.__awaiter(this,void 0,void 0,function(){var A;return _.__generator(this,function(N){switch(N.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return A=N.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(p,A)]}})})},b.prototype.attemptFetch=function(p,A){var N=A.throttleEndTimeMillis,K=A.backoffCount;return _.__awaiter(this,void 0,void 0,function(){var J,ie,he;return _.__generator(this,function(Oe){switch(Oe.label){case 0:return[4,ve(p.signal,N)];case 1:Oe.sent(),Oe.label=2;case 2:return Oe.trys.push([2,5,,7]),[4,this.client.fetch(p)];case 3:return J=Oe.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return Oe.sent(),[2,J];case 5:if(!function We(b){if(!(b instanceof x.FirebaseError))return!1;var p=Number(b.httpStatus);return 429===p||500===p||503===p||504===p}(ie=Oe.sent()))throw ie;return he={throttleEndTimeMillis:Date.now()+x.calculateBackoffMillis(K),backoffCount:K+1},[4,this.storage.setThrottleMetadata(he)];case 6:return Oe.sent(),[2,this.attemptFetch(p,he)];case 7:return[2]}})})},b}(),He="@firebase/remote-config";function O(b){b.INTERNAL.registerComponent(new te.Component("remoteConfig",function p(A,N){var K=A.getProvider("app").getImmediate(),J=A.getProvider("installations").getImmediate();if("undefined"==typeof window)throw L.create("registration-window");var ie=K.options,he=ie.projectId,Oe=ie.apiKey,Ne=ie.appId;if(!he)throw L.create("registration-project-id");if(!Oe)throw L.create("registration-api-key");if(!Ne)throw L.create("registration-app-id");var Ye=new z(Ne,K.name,N=N||"firebase"),Qe=new oe(Ye),Ct=new re.Logger(He);Ct.logLevel=re.LogLevel.ERROR;
1var Ot=new v(J,b.SDK_VERSION,N,he,Oe,Ne),ln=new Re(Ot,Ye),Lt=new W(ln,Ye,Qe,Ct),Jt=new $(K,Lt,Qe,Ye,Ct);return Jt.ensureInitialized(),Jt},"PUBLIC").setMultipleInstances(!0)),b.registerVersion(He,"0.1.28")}O(S.default),q.registerRemoteConfig=O},2684:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{registerStorage:()=>Ii});var t=c(9278);function P(tt,Xe,Ut,gn){return new(Ut||(Ut=Promise))(function(Mn,qn){function cr(Mr){try{_r(gn.next(Mr))}catch(Wr){qn(Wr)}}function ur(Mr){try{_r(gn.throw(Mr))}catch(Wr){qn(Wr)}}function _r(Mr){Mr.done?Mn(Mr.value):function _n(Mn){return Mn instanceof Ut?Mn:new Ut(function(qn){qn(Mn)})}(Mr.value).then(cr,ur)}_r((gn=gn.apply(tt,Xe||[])).next())})}function C(tt,Xe){var gn,_n,Mn,qn,Ut={label:0,sent:function(){if(1&Mn[0])throw Mn[1];return Mn[1]},trys:[],ops:[]};return qn={next:cr(0),throw:cr(1),return:cr(2)},"function"==typeof Symbol&&(qn[Symbol.iterator]=function(){return this}),qn;function cr(_r){return function(Mr){return function ur(_r){if(gn)throw new TypeError("Generator is already executing.");for(;Ut;)try{if(gn=1,_n&&(Mn=2&_r[0]?_n.return:_r[0]?_n.throw||((Mn=_n.return)&&Mn.call(_n),0):_n.next)&&!(Mn=Mn.call(_n,_r[1])).done)return Mn;switch(_n=0,Mn&&(_r=[2&_r[0],Mn.value]),_r[0]){case 0:case 1:Mn=_r;break;case 4:return Ut.label++,{value:_r[1],done:!1};case 5:Ut.label++,_n=_r[1],_r=[0];continue;case 7:_r=Ut.ops.pop(),Ut.trys.pop();continue;default:if(!(Mn=(Mn=Ut.trys).length>0&&Mn[Mn.length-1])&&(6===_r[0]||2===_r[0])){Ut=0;continue}if(3===_r[0]&&(!Mn||_r[1]>Mn[0]&&_r[1]<Mn[3])){Ut.label=_r[1];break}if(6===_r[0]&&Ut.label<Mn[1]){Ut.label=Mn[1],Mn=_r;break}if(Mn&&Ut.label<Mn[2]){Ut.label=Mn[2],Ut.ops.push(_r);break}Mn[2]&&Ut.ops.pop(),Ut.trys.pop();continue}_r=Xe.call(tt,Ut)}catch(Mr){_r=[6,Mr],_n=0}finally{gn=Mn=0}if(5&_r[0])throw _r[1];return{value:_r[0]?_r[1]:void 0,done:!0}}([_r,Mr])}}}function j(){for(var tt=0,Xe=0,Ut=arguments.length;Xe<Ut;Xe++)tt+=arguments[Xe].length;var gn=Array(tt),_n=0;for(Xe=0;Xe<Ut;Xe++)for(var Mn=arguments[Xe],qn=0,cr=Mn.length;qn<cr;qn++,_n++)gn[_n]=Mn[qn];return gn}var k=c(6355),I="firebasestorage.googleapis.com",oe=function(){function tt(Xe,Ut){this.code_=We(Xe),this.message_="Firebase Storage: "+Ut,this.serverResponse_=null,this.name_="FirebaseError"}return tt.prototype.codeProp=function(){return this.code},tt.prototype.codeEquals=function(Xe){return We(Xe)===this.codeProp()},tt.prototype.serverResponseProp=function(){return this.serverResponse_},tt.prototype.setServerResponseProp=function(Xe){this.serverResponse_=Xe},Object.defineProperty(tt.prototype,"name",{get:function(){return this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"code",{get:function(){return this.code_},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),tt}();function We(tt){return"storage/"+tt}function Re(){return new oe("unknown","An unknown error occurred, please check the error payload for server response.")}function A(){return new oe("canceled","User canceled the upload/download.")}function J(){return new oe("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function he(){return new oe("no-download-url","The given file does not have any download URLs.")}function Oe(tt,Xe,Ut){return new oe("invalid-argument","Invalid argument in `"+Xe+"` at index "+tt+": "+Ut)}function Ye(){return new oe("app-deleted","The Firebase app was deleted.")}function Ct(tt,Xe){return new oe("invalid-format","String does not match format '"+tt+"': "+Xe)}function Ot(tt){throw new oe("internal-error","Internal error: "+tt)}var ln={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function Lt(tt){switch(tt){case ln.RAW:case ln.BASE64:case ln.BASE64URL:case ln.DATA_URL:return;default:throw"Expected one of the event types: ["+ln.RAW+", "+ln.BASE64+", "+ln.BASE64URL+", "+ln.DATA_URL+"]."}}var Jt=function tt(Xe,Ut){this.data=Xe,this.contentType=Ut||null};function Rt(tt,Xe){switch(tt){case ln.RAW:return new Jt(it(Xe));case ln.BASE64:case ln.BASE64URL:return new Jt(ut(tt,Xe));case ln.DATA_URL:return new Jt(function ht(tt){var Xe=new yt(tt);return Xe.base64?ut(ln.BASE64,Xe.rest):function _t(tt){var Xe;try{Xe=decodeURIComponent(tt)}catch(Ut){throw Ct(ln.DATA_URL,"Malformed data URL.")}return it(Xe)}(Xe.rest)}(Xe),function ct(tt){return new yt(tt).contentType}(Xe))}throw Re()}function it(tt){for(var Xe=[],Ut=0;Ut<tt.length;Ut++){var gn=tt.charCodeAt(Ut);
1if(gn<=127)Xe.push(gn);else if(gn<=2047)Xe.push(192|gn>>6,128|63&gn);else if(55296==(64512&gn))if(Ut<tt.length-1&&56320==(64512&tt.charCodeAt(Ut+1))){var Mn=gn,qn=tt.charCodeAt(++Ut);Xe.push(240|(gn=65536|(1023&Mn)<<10|1023&qn)>>18,128|gn>>12&63,128|gn>>6&63,128|63&gn)}else Xe.push(239,191,189);else 56320==(64512&gn)?Xe.push(239,191,189):Xe.push(224|gn>>12,128|gn>>6&63,128|63&gn)}return new Uint8Array(Xe)}function ut(tt,Xe){switch(tt){case ln.BASE64:var Ut=-1!==Xe.indexOf("-"),gn=-1!==Xe.indexOf("_");if(Ut||gn)throw Ct(tt,"Invalid character '"+(Ut?"-":"_")+"' found: is it base64url encoded?");break;case ln.BASE64URL:var Mn=-1!==Xe.indexOf("+"),qn=-1!==Xe.indexOf("/");if(Mn||qn)throw Ct(tt,"Invalid character '"+(Mn?"+":"/")+"' found: is it base64 encoded?");Xe=Xe.replace(/-/g,"+").replace(/_/g,"/")}var cr;try{cr=atob(Xe)}catch(Mr){throw Ct(tt,"Invalid character found")}for(var ur=new Uint8Array(cr.length),_r=0;_r<cr.length;_r++)ur[_r]=cr.charCodeAt(_r);return ur}var yt=function tt(Xe){this.base64=!1,this.contentType=null;var Ut=Xe.match(/^data:([^,]+)?,/);if(null===Ut)throw Ct(ln.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var gn=Ut[1]||null;null!=gn&&(this.base64=function cn(tt,Xe){return tt.length>=Xe.length&&tt.substring(tt.length-Xe.length)===Xe}(gn,";base64"),this.contentType=this.base64?gn.substring(0,gn.length-7):gn),this.rest=Xe.substring(Xe.indexOf(",")+1)},gt={STATE_CHANGED:"state_changed"},St={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function sn(tt){switch(tt){case"running":case"pausing":case"canceling":return St.RUNNING;case"paused":return St.PAUSED;case"success":return St.SUCCESS;case"canceled":return St.CANCELED;default:return St.ERROR}}function ze(tt){return null!=tt}function nt(tt){return void 0!==tt}function mt(tt){return"function"==typeof tt}function Nt(tt){return"object"==typeof tt}function wt(tt){return Nt(tt)&&null!==tt}function Kt(tt){return"string"==typeof tt||tt instanceof String}function Un(tt){return vt(tt)&&Number.isInteger(tt)}function vt(tt){return"number"==typeof tt||tt instanceof Number}function tn(tt){return Cn()&&tt instanceof Blob}function Cn(){return"undefined"!=typeof Blob}var Sn=(()=>{return(tt=Sn||(Sn={}))[tt.NO_ERROR=0]="NO_ERROR",tt[tt.NETWORK_ERROR=1]="NETWORK_ERROR",tt[tt.ABORT=2]="ABORT",Sn;var tt})(),Nn=function(){function tt(){var Xe=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=Sn.NO_ERROR,this.sendPromise_=new Promise(function(Ut){Xe.xhr_.addEventListener("abort",function(){Xe.errorCode_=Sn.ABORT,Ut(Xe)}),Xe.xhr_.addEventListener("error",function(){Xe.errorCode_=Sn.NETWORK_ERROR,Ut(Xe)}),Xe.xhr_.addEventListener("load",function(){Ut(Xe)})})}return tt.prototype.send=function(Xe,Ut,gn,_n){if(this.sent_)throw Ot("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(Ut,Xe,!0),ze(_n))for(var Mn in _n)_n.hasOwnProperty(Mn)&&this.xhr_.setRequestHeader(Mn,_n[Mn].toString());return ze(gn)?this.xhr_.send(gn):this.xhr_.send(),this.sendPromise_},tt.prototype.getErrorCode=function(){if(!this.sent_)throw Ot("cannot .getErrorCode() before sending");return this.errorCode_},tt.prototype.getStatus=function(){if(!this.sent_)throw Ot("cannot .getStatus() before sending");try{return this.xhr_.status}catch(Xe){return-1}},tt.prototype.getResponseText=function(){if(!this.sent_)throw Ot("cannot .getResponseText() before sending");return this.xhr_.responseText},tt.prototype.abort=function(){this.xhr_.abort()},tt.prototype.getResponseHeader=function(Xe){return this.xhr_.getResponseHeader(Xe)},tt.prototype.addUploadProgressListener=function(Xe){ze(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",Xe)},tt.prototype.removeUploadProgressListener=function(Xe){ze(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",Xe)},tt}(),rr=function(){function tt(){}return tt.prototype.createXhrIo=function(){return new Nn},tt}();function Fn(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function jn(){for(var tt=[],Xe=0;Xe<arguments.length;Xe++)tt[Xe]=arguments[Xe];var Ut=Fn();if(void 0!==Ut){for(var gn=new Ut,_n=0;_n<tt.length;_n++)gn.append(tt[_n]);return gn.getBlob()}if(Cn())return new Blob(tt);
1throw Error("This browser doesn't seem to support creating Blobs")}var Tt=function(){function tt(Xe,Ut){var gn=0,_n="";tn(Xe)?(this.data_=Xe,gn=Xe.size,_n=Xe.type):Xe instanceof ArrayBuffer?(Ut?this.data_=new Uint8Array(Xe):(this.data_=new Uint8Array(Xe.byteLength),this.data_.set(new Uint8Array(Xe))),gn=this.data_.length):Xe instanceof Uint8Array&&(Ut?this.data_=Xe:(this.data_=new Uint8Array(Xe.length),this.data_.set(Xe)),gn=Xe.length),this.size_=gn,this.type_=_n}return tt.prototype.size=function(){return this.size_},tt.prototype.type=function(){return this.type_},tt.prototype.slice=function(Xe,Ut){if(tn(this.data_)){var _n=function nr(tt,Xe,Ut){return tt.webkitSlice?tt.webkitSlice(Xe,Ut):tt.mozSlice?tt.mozSlice(Xe,Ut):tt.slice?tt.slice(Xe,Ut):null}(this.data_,Xe,Ut);return null===_n?null:new tt(_n)}return new tt(new Uint8Array(this.data_.buffer,Xe,Ut-Xe),!0)},tt.getBlob=function(){for(var Xe=[],Ut=0;Ut<arguments.length;Ut++)Xe[Ut]=arguments[Ut];if(Cn()){var gn=Xe.map(function(ur){return ur instanceof tt?ur.data_:ur});return new tt(jn.apply(null,gn))}var _n=Xe.map(function(ur){return Kt(ur)?Rt(ln.RAW,ur).data:ur.data_}),Mn=0;_n.forEach(function(ur){Mn+=ur.byteLength});var qn=new Uint8Array(Mn),cr=0;return _n.forEach(function(ur){for(var _r=0;_r<ur.length;_r++)qn[cr++]=ur[_r]}),new tt(qn,!0)},tt.prototype.uploadData=function(){return this.data_},tt}(),hn=function(){function tt(Xe,Ut){this.bucket=Xe,this.path_=Ut}return Object.defineProperty(tt.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),tt.prototype.fullServerUrl=function(){var Xe=encodeURIComponent;return"/b/"+Xe(this.bucket)+"/o/"+Xe(this.path)},tt.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},tt.makeFromBucketSpec=function(Xe){var Ut;try{Ut=tt.makeFromUrl(Xe)}catch(gn){return new tt(Xe,"")}if(""===Ut.path)return Ut;throw function K(tt){return new oe("invalid-default-bucket","Invalid default bucket '"+tt+"'.")}(Xe)},tt.makeFromUrl=function(Xe){var Ut=null,gn="([A-Za-z0-9.\\-_]+)",qn=new RegExp("^gs://"+gn+"(/(.*))?$","i");function ur(zr){zr.path_=decodeURIComponent(zr.path)}for(var Mr=I.replace(/[.]/g,"\\."),fn=[{regex:qn,indices:{bucket:1,path:3},postModify:function _n(zr){"/"===zr.path.charAt(zr.path.length-1)&&(zr.path_=zr.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+Mr+"/v[A-Za-z0-9_]+/b/"+gn+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:ur},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/"+gn+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:ur}],xn=0;xn<fn.length;xn++){var Er=fn[xn],gr=Er.regex.exec(Xe);if(gr){var pr=gr[Er.indices.path];pr||(pr=""),Ut=new tt(gr[Er.indices.bucket],pr),Er.postModify(Ut);break}}if(null==Ut)throw function N(tt){return new oe("invalid-url","Invalid URL '"+tt+"'.")}(Xe);return Ut},tt}();function Se(tt){var Xe;try{Xe=JSON.parse(tt)}catch(Ut){return null}return function bt(tt){return Nt(tt)&&!Array.isArray(tt)}(Xe)?Xe:null}function we(tt,Xe){var Ut=Xe.split("/").filter(function(gn){return gn.length>0}).join("/");return 0===tt.length?Ut:tt+"/"+Ut}function Ce(tt){var Xe=tt.lastIndexOf("/",tt.length-2);return-1===Xe?tt:tt.slice(Xe+1)}function Ue(tt){return"https://"+I+"/v0"+tt}function st(tt){var Xe=encodeURIComponent,Ut="?";for(var gn in tt)tt.hasOwnProperty(gn)&&(Ut=Ut+(Xe(gn)+"=")+Xe(tt[gn])+"&");return Ut.slice(0,-1)}function Ft(tt,Xe){return Xe}var nn=function tt(Xe,Ut,gn,_n){this.server=Xe,this.local=Ut||Xe,this.writable=!!gn,this.xform=_n||Ft},vn=null;function Wt(tt,Xe,Ut){var gn=Se(Xe);return null===gn?null:function ir(tt,Xe,Ut){for(var gn={type:"file"},_n=Ut.length,Mn=0;Mn<_n;Mn++){var qn=Ut[Mn];gn[qn.local]=qn.xform(gn,Xe[qn.server])}return function Gn(tt,Xe){Object.defineProperty(tt,"ref",{get:function Ut(){var Mn=new hn(tt.bucket,tt.fullPath);return Xe.makeStorageReference(Mn)}})}(gn,tt),gn}(tt,gn,Ut)}function on(tt,Xe){for(var Ut={},gn=Xe.length,_n=0;_n<gn;_n++){var Mn=Xe[_n];Mn.writable&&(Ut[Mn.server]=tt[Mn.local])}return JSON.stringify(Ut)}function mn(tt){if(!Nt(tt)||!tt)throw"Expected Metadata object.";for(var Xe in tt)if(tt.hasOwnProperty(Xe)){var Ut=tt[Xe];if("customMetadata"===Xe){if(!Nt(Ut))throw"Expected object for 'customMetadata' mapping."}else if(wt(Ut))throw"Mapping for '"+Xe+"' cannot be an object."}}var Mt="maxResults",At="pageToken",Ht="prefixes";function sr(tt){if(!Nt(tt)||!tt)throw"Expected ListOptions object.";for(var Xe in tt)if(Xe===Mt){if(!Un(tt[Mt])||tt[Mt]<=0)throw"Expected maxResults to be a positive number.";if(tt[Mt]>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if(Xe!==At)throw"Unknown option: "+Xe;if(tt[At]&&!Kt(tt[At]))throw"Expected pageToken to be string."}}var fr=function tt(Xe,Ut,gn,_n){this.url=Xe,this.method=Ut,this.handler=gn,this.timeout=_n,this.urlParam
1s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Ar(tt){if(!tt)throw Re()}function Dr(tt,Xe){return function Ut(gn,_n){var Mn=Wt(tt,_n,Xe);return Ar(null!==Mn),Mn}}function jr(tt){return function Xe(Ut,gn){var _n;return _n=401===Ut.getStatus()?function O(){return new oe("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again.")}():402===Ut.getStatus()?function ge(tt){return new oe("quota-exceeded","Quota for bucket '"+tt+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}(tt.bucket):403===Ut.getStatus()?function b(tt){return new oe("unauthorized","User does not have permission to access '"+tt+"'.")}(tt.path):gn,_n.setServerResponseProp(gn.serverResponseProp()),_n}}function Ur(tt){var Xe=jr(tt);return function Ut(gn,_n){var Mn=Xe(gn,_n);return 404===gn.getStatus()&&(Mn=function He(tt){return new oe("object-not-found","Object '"+tt+"' does not exist.")}(tt.path)),Mn.setServerResponseProp(_n.serverResponseProp()),Mn}}function Lr(tt,Xe,Ut){var _n=Ue(Xe.fullServerUrl()),qn=tt.maxOperationRetryTime,cr=new fr(_n,"GET",Dr(tt,Ut),qn);return cr.errorHandler=Ur(Xe),cr}function _i(tt,Xe,Ut,gn,_n){var Mn={};Mn.prefix=Xe.isRoot?"":Xe.path+"/",Ut&&Ut.length>0&&(Mn.delimiter=Ut),gn&&(Mn.pageToken=gn),_n&&(Mn.maxResults=_n);var cr=Ue(Xe.bucketOnlyServerUrl()),_r=tt.maxOperationRetryTime,Mr=new fr(cr,"GET",function dr(tt,Xe){return function Ut(gn,_n){var Mn=function An(tt,Xe,Ut){var gn=Se(Ut);return null===gn?null:function un(tt,Xe,Ut){var gn={prefixes:[],items:[],nextPageToken:Ut.nextPageToken};if(Ut[Ht])for(var _n=0,Mn=Ut[Ht];_n<Mn.length;_n++){var cr=Mn[_n].replace(/\/$/,""),ur=tt.makeStorageReference(new hn(Xe,cr));gn.prefixes.push(ur)}if(Ut.items)for(var _r=0,Mr=Ut.items;_r<Mr.length;_r++)ur=tt.makeStorageReference(new hn(Xe,Mr[_r].name)),gn.items.push(ur);return gn}(tt,Xe,gn)}(tt,Xe,_n);return Ar(null!==Mn),Mn}}(tt,Xe.bucket),_r);return Mr.urlParams=Mn,Mr.errorHandler=jr(Xe),Mr}function kt(tt,Xe,Ut){var _n=Ue(Xe.fullServerUrl()),qn=tt.maxOperationRetryTime,cr=new fr(_n,"GET",function Kr(tt,Xe){return function Ut(gn,_n){var Mn=Wt(tt,_n,Xe);return Ar(null!==Mn),function jt(tt,Xe){var Ut=Se(Xe);if(null===Ut||!Kt(Ut.downloadTokens))return null;var gn=Ut.downloadTokens;if(0===gn.length)return null;var _n=encodeURIComponent;return gn.split(",").map(function(cr){var _r=tt.fullPath;return Ue("/b/"+_n(tt.bucket)+"/o/"+_n(_r))+st({alt:"media",token:cr})})[0]}(Mn,_n)}}(tt,Ut),qn);return cr.errorHandler=Ur(Xe),cr}function an(tt,Xe,Ut,gn){var Mn=Ue(Xe.fullServerUrl()),cr=on(Ut,gn),_r=tt.maxOperationRetryTime,Mr=new fr(Mn,"PATCH",Dr(tt,gn),_r);return Mr.headers={"Content-Type":"application/json; charset=utf-8"},Mr.body=cr,Mr.errorHandler=Ur(Xe),Mr}function Dn(tt,Xe){var gn=Ue(Xe.fullServerUrl()),cr=new fr(gn,"DELETE",function qn(ur,_r){},tt.maxOperationRetryTime);return cr.successCodes=[200,204],cr.errorHandler=Ur(Xe),cr}function Yn(tt,Xe,Ut){var gn=Object.assign({},Ut);return gn.fullPath=tt.path,gn.size=Xe.size(),gn.contentType||(gn.contentType=function Bn(tt,Xe){return tt&&tt.contentType||Xe&&Xe.type()||"application/octet-stream"}(null,Xe)),gn}var En=function tt(Xe,Ut,gn,_n){this.current=Xe,this.total=Ut,this.finalized=!!gn,this.metadata=_n||null};function Hn(tt,Xe){var Ut=null;try{Ut=tt.getResponseHeader("X-Goog-Upload-Status")}catch(_n){Ar(!1)}return Ar(!!Ut&&-1!==(Xe||["active"]).indexOf(Ut)),Ut}var kr=function tt(Xe,Ut,gn){if(mt(Xe)||ze(Ut)||ze(gn))this.next=Xe,this.error=Ut||null,this.complete=gn||null;else{var Mn=Xe;this.next=Mn.next||null,this.error=Mn.error||null,this.complete=Mn.complete||null}},ei=function tt(Xe,Ut,gn,_n,Mn,qn){this.bytesTransferred=Xe,this.totalBytes=Ut,this.state=gn,this.metadata=_n,this.task=Mn,this.ref=qn};function oi(tt,Xe,Ut){for(var gn=Xe.length,_n=Xe.length,Mn=0;Mn<Xe.length;Mn++)if(Xe[Mn].optional){gn=Mn;break}if(!(gn<=Ut.length&&Ut.length<=_n))throw function Ne(tt,Xe,Ut,gn){var _n,Mn;return tt===Xe?(_n=tt,Mn=1===tt?"argument":"arguments"):(_n="between "+tt+" and "+Xe,Mn="arguments"),new oe("invalid-argument-count","Invalid argument count in `"+Ut+"`: Expected "+_n+" "+Mn+", received "+gn+".")}(gn,_n,tt,Ut.length);for(Mn=0;Mn<Ut.length;Mn++)try{Xe[Mn].validator(Ut[Mn])}catch(ur){throw ur instanceof Error?Oe(Mn,tt,ur.message):Oe(Mn,tt,ur)}}var ui=function tt(Xe,Ut){var gn=this;this.validator=function(_n){gn.optional&&!nt(_n)||Xe(_n)},this.optional=!!Ut};function Ci(tt,Xe){function Ut(_n){if(!Kt(_n))throw"Expected string."}var gn;return gn=tt?function Yr(tt,Xe){return function(Ut){tt(Ut),Xe(Ut)}}(Ut,tt):Ut,new ui(gn,Xe)}function Ji(){return new ui(function tt(Xe){if(!(Xe instanceof Uint8Array||Xe instanceof ArrayBuffer||Cn()&&Xe instanceof Blob))throw"Expected Blob or File."})}function ci(tt){return new ui(mn,tt)}function Gi(tt){return new ui(sr,tt)}function rs(){return new ui(function tt(Xe){if(!(vt(Xe)&&Xe>=0))throw"Expected a number 0 or greater."})}function Oi(tt,Xe){return new ui(function Ut(gn){if(!(null===gn||ze(gn)&&gn instanceof Object))throw"Expected an Object.";null!=tt&&tt(gn)},Xe)}function $r(tt){return new ui(function Xe(Ut){if(null!==Ut&&!mt(Ut))throw"Expected a Function."},tt)}function si(tt){return function(){for(var Xe=[],Ut=0;Ut<arguments.length;Ut++)Xe[Ut]=arguments[Ut];Promise.resolve().then(function(){return tt.apply(void 0,Xe)})}}var cs=function(){function tt(Xe,Ut,gn,_n,Mn,qn){var cr=this;void 0===qn&&(qn=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=Xe,this.service_=Ut,this.location_=gn,this.blob_=Mn,this.metadata_=qn,this.mappings_=_n,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_="running",this.errorHandler_=function(ur){cr.request_=null,cr.chunkMultiplier_=1,ur.codeEquals("canceled")?(cr.needToFetchStatus_=!0,cr.completeTransitions_()):(cr.error_=ur,cr.transition_("error"))},this.metadataErrorHandler_=function(ur){cr.request_=null,ur.codeEquals("canceled")?cr.completeTransitions_():(cr.error_=ur,cr.transition_("error"))},this.promise_=new Promise(function(ur,_r){cr.resolve_=ur,cr.reject_=_r,cr.start_()}),this.promise_.then(null,function(){})}return tt.prototype.makeProgressCallback_=function(){var Xe=this,Ut=this.transferred_;return function(gn){return Xe.updateProgress_(Ut+gn)}},tt.prototype.shouldDoResumable_=function(Xe){return Xe.size()>262144},tt.prototype.start_=function(){"running"===this.state_&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},tt.prototype.resolveToken_=function(Xe){var Ut=this;this.service_.getAuthToken().then(function(gn){switch(Ut.state_){case"running":Xe(gn);break;case"canceling":Ut.transition_("canceled");break;case"pausing":Ut.transition_("paused")}})},tt.prototype.createResumable_=function(){var Xe=this;this.resolveToken_(function(Ut){var gn=function er(tt,Xe,Ut,gn,_n){var Mn=Xe.bucketOnlyServerUrl(),qn=Yn(Xe,gn,_n),cr={name:qn.fullPath},ur=Ue(Mn),Mr={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":gn.size(),"X-Goog-Upload-Header-Content-Type":qn.contentType,"Content-Type":"application/json; charset=utf-8"},Wr=on(qn,Ut),be=new fr(ur,"POST",function Ae(Me){var dt;Hn(Me);try{dt=Me.getResponseHeader("X-Goog-Upload-URL")}catch(rn){Ar(!1)}return Ar(Kt(dt)),dt},tt.maxUploadRetryTime);
1return be.urlParams=cr,be.headers=Mr,be.body=Wr,be.errorHandler=jr(Xe),be}(Xe.service_,Xe.location_,Xe.mappings_,Xe.blob_,Xe.metadata_),_n=Xe.service_.makeRequest(gn,Ut);Xe.request_=_n,_n.getPromise().then(function(Mn){Xe.request_=null,Xe.uploadUrl_=Mn,Xe.needToFetchStatus_=!1,Xe.completeTransitions_()},Xe.errorHandler_)})},tt.prototype.fetchStatus_=function(){var Xe=this,Ut=this.uploadUrl_;this.resolveToken_(function(gn){var _n=function or(tt,Xe,Ut,gn){var ur=new fr(Ut,"POST",function Mn(_r){var Mr=Hn(_r,["active","final"]),Wr=null;try{Wr=_r.getResponseHeader("X-Goog-Upload-Size-Received")}catch(Ae){Ar(!1)}Wr||Ar(!1);var le=Number(Wr);return Ar(!isNaN(le)),new En(le,gn.size(),"final"===Mr)},tt.maxUploadRetryTime);return ur.headers={"X-Goog-Upload-Command":"query"},ur.errorHandler=jr(Xe),ur}(Xe.service_,Xe.location_,Ut,Xe.blob_),Mn=Xe.service_.makeRequest(_n,gn);Xe.request_=Mn,Mn.getPromise().then(function(qn){qn=qn,Xe.request_=null,Xe.updateProgress_(qn.current),Xe.needToFetchStatus_=!1,qn.finalized&&(Xe.needToFetchMetadata_=!0),Xe.completeTransitions_()},Xe.errorHandler_)})},tt.prototype.continueUpload_=function(){var Xe=this,Ut=262144*this.chunkMultiplier_,gn=new En(this.transferred_,this.blob_.size()),_n=this.uploadUrl_;this.resolveToken_(function(Mn){var qn;try{qn=function Nr(tt,Xe,Ut,gn,_n,Mn,qn,cr){var ur=new En(0,0);if(qn?(ur.current=qn.current,ur.total=qn.total):(ur.current=0,ur.total=gn.size()),gn.size()!==ur.total)throw function ie(){return new oe("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.")}();var _r=ur.total-ur.current,Mr=_r;_n>0&&(Mr=Math.min(Mr,_n));var Wr=ur.current,be={"X-Goog-Upload-Command":Mr===_r?"upload, finalize":"upload","X-Goog-Upload-Offset":ur.current},Me=gn.slice(Wr,Wr+Mr);if(null===Me)throw J();var xn=new fr(Ut,"POST",function dt(Er,gr){var ii,hr=Hn(Er,["active","final"]),pr=ur.current+Mr,zr=gn.size();return ii="final"===hr?Dr(Xe,Mn)(Er,gr):null,new En(pr,zr,"final"===hr,ii)},Xe.maxUploadRetryTime);return xn.headers=be,xn.body=Me.uploadData(),xn.progressCallback=cr||null,xn.errorHandler=jr(tt),xn}(Xe.location_,Xe.service_,_n,Xe.blob_,Ut,Xe.mappings_,gn,Xe.makeProgressCallback_())}catch(ur){return Xe.error_=ur,void Xe.transition_("error")}var cr=Xe.service_.makeRequest(qn,Mn);Xe.request_=cr,cr.getPromise().then(function(ur){Xe.increaseMultiplier_(),Xe.request_=null,Xe.updateProgress_(ur.current),ur.finalized?(Xe.metadata_=ur.metadata,Xe.transition_("success")):Xe.completeTransitions_()},Xe.errorHandler_)})},tt.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},tt.prototype.fetchMetadata_=function(){var Xe=this;this.resolveToken_(function(Ut){var gn=Lr(Xe.service_,Xe.location_,Xe.mappings_),_n=Xe.service_.makeRequest(gn,Ut);Xe.request_=_n,_n.getPromise().then(function(Mn){Xe.request_=null,Xe.metadata_=Mn,Xe.transition_("success")},Xe.metadataErrorHandler_)})},tt.prototype.oneShotUpload_=function(){var Xe=this;this.resolveToken_(function(Ut){var gn=function Qt(tt,Xe,Ut,gn,_n){var Mn=Xe.bucketOnlyServerUrl(),qn={"X-Goog-Upload-Protocol":"multipart"},ur=function cr(){for(var xn="",Er=0;Er<2;Er++)xn+=Math.random().toString().slice(2);return xn}();qn["Content-Type"]="multipart/related; boundary="+ur;var _r=Yn(Xe,gn,_n),Mr=on(_r,Ut),Ae=Tt.getBlob("--"+ur+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Mr+"\r\n--"+ur+"\r\nContent-Type: "+_r.contentType+"\r\n\r\n",gn,"\r\n--"+ur+"--");if(null===Ae)throw J();var be={name:_r.fullPath},Me=Ue(Mn),rn=tt.maxUploadRetryTime,fn=new fr(Me,"POST",Dr(tt,Ut),rn);return fn.urlParams=be,fn.headers=qn,fn.body=Ae.uploadData(),fn.errorHandler=jr(Xe),fn}(Xe.service_,Xe.location_,Xe.mappings_,Xe.blob_,Xe.metadata_),_n=Xe.service_.makeRequest(gn,Ut);Xe.request_=_n,_n.getPromise().then(function(Mn){Xe.request_=null,Xe.metadata_=Mn,Xe.updateProgress_(Xe.blob_.size()),Xe.transition_("success")},Xe.errorHandler_)})},tt.prototype.updateProgress_=function(Xe){var Ut=this.transferred_;this.transferred_=Xe,this.transferred_!==Ut&&this.notifyObservers_()},tt.prototype.transition_=function(Xe){if(this.state_!==Xe)switch(Xe){case"canceling":case"pausing":this.state_=Xe,null!==this.request_&&this.request_.cancel();break;case"running":var Ut="paused"===this.state_;this.state_=Xe,Ut&&(this.notifyObservers_(),this.start_());break;case"paused":case"error":case"success":this.state_=Xe,this.notifyObservers_();break;case"canceled":this.error_=A(),this.state_=Xe,this.notifyObservers_()}},tt.prototype.completeTransitions_=function(){switch(this.state_){case"pausing":this.transition_("paused");break;case"canceling":this.transition_("canceled");break;case"running":this.start_()}},Object.defineProperty(tt.prototype,"snapshot",{get:function(){var Xe=sn(this.state_);return new ei(this.transferred_,this.blob_.size(),Xe,this.metadata_,this,this.ref_)}
1,enumerable:!1,configurable:!0}),tt.prototype.on=function(Xe,Ut,gn,_n){function Mn(){if(Xe!==gt.STATE_CHANGED)throw"Expected one of the event types: ["+gt.STATE_CHANGED+"]."}var qn="Expected a function or an Object with one of `next`, `error`, `complete` properties.",cr=$r(!0).validator,ur=Oi(null,!0).validator;function _r(dt){try{return void cr(dt)}catch(fn){}try{if(ur(dt),!(nt(dt.next)||nt(dt.error)||nt(dt.complete)))throw"";return}catch(fn){throw qn}}var Mr=[Ci(Mn),Oi(_r,!0),$r(!0),$r(!0)];oi("on",Mr,arguments);var Wr=this;function le(dt){return function rn(fn,xn,Er){null!==dt&&oi("on",dt,arguments);var gr=new kr(fn,xn,_n);return Wr.addObserver_(gr),function(){Wr.removeObserver_(gr)}}}function Ae(dt){if(null===dt)throw qn;_r(dt)}var be=[Oi(Ae),$r(!0),$r(!0)],Me=!(nt(Ut)||nt(gn)||nt(_n));return Me?le(be):le(null)(Ut,gn,_n)},tt.prototype.then=function(Xe,Ut){return this.promise_.then(Xe,Ut)},tt.prototype.catch=function(Xe){return this.then(null,Xe)},tt.prototype.addObserver_=function(Xe){this.observers_.push(Xe),this.notifyObserver_(Xe)},tt.prototype.removeObserver_=function(Xe){var Ut=this.observers_.indexOf(Xe);-1!==Ut&&this.observers_.splice(Ut,1)},tt.prototype.notifyObservers_=function(){var Xe=this;this.finishPromise_(),this.observers_.slice().forEach(function(gn){Xe.notifyObserver_(gn)})},tt.prototype.finishPromise_=function(){if(null!==this.resolve_){var Xe=!0;switch(sn(this.state_)){case St.SUCCESS:si(this.resolve_.bind(null,this.snapshot))();break;case St.CANCELED:case St.ERROR:si(this.reject_.bind(null,this.error_))();break;default:Xe=!1}Xe&&(this.resolve_=null,this.reject_=null)}},tt.prototype.notifyObserver_=function(Xe){switch(sn(this.state_)){case St.RUNNING:case St.PAUSED:Xe.next&&si(Xe.next.bind(Xe,this.snapshot))();break;case St.SUCCESS:Xe.complete&&si(Xe.complete.bind(Xe))();break;default:Xe.error&&si(Xe.error.bind(Xe,this.error_))()}},tt.prototype.resume=function(){oi("resume",[],arguments);var Xe="paused"===this.state_||"pausing"===this.state_;return Xe&&this.transition_("running"),Xe},tt.prototype.pause=function(){oi("pause",[],arguments);var Xe="running"===this.state_;return Xe&&this.transition_("pausing"),Xe},tt.prototype.cancel=function(){oi("cancel",[],arguments);var Xe="running"===this.state_||"pausing"===this.state_;return Xe&&this.transition_("canceling"),Xe},tt}(),Yi=function(){function tt(Xe,Ut){this.service=Xe,this.location=Ut instanceof hn?Ut:hn.makeFromUrl(Ut)}return tt.prototype.toString=function(){return oi("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},tt.prototype.newRef=function(Xe,Ut){return new tt(Xe,Ut)},tt.prototype.mappings=function(){return function $n(){if(vn)return vn;var tt=[];tt.push(new nn("bucket")),tt.push(new nn("generation")),tt.push(new nn("metageneration")),tt.push(new nn("name","fullPath",!0));var Ut=new nn("name");Ut.xform=function Xe(Mn,qn){return function wn(tt){return!Kt(tt)||tt.length<2?tt:Ce(tt)}(qn)},tt.push(Ut);var _n=new nn("size");return _n.xform=function gn(Mn,qn){return ze(qn)?Number(qn):qn},tt.push(_n),tt.push(new nn("timeCreated")),tt.push(new nn("updated")),tt.push(new nn("md5Hash",null,!0)),tt.push(new nn("cacheControl",null,!0)),tt.push(new nn("contentDisposition",null,!0)),tt.push(new nn("contentEncoding",null,!0)),tt.push(new nn("contentLanguage",null,!0)),tt.push(new nn("contentType",null,!0)),tt.push(new nn("metadata","customMetadata",!0)),vn=tt}()},tt.prototype.child=function(Xe){oi("child",[Ci()],arguments);var Ut=we(this.location.path,Xe),gn=new hn(this.location.bucket,Ut);return this.newRef(this.service,gn)},Object.defineProperty(tt.prototype,"parent",{get:function(){var Xe=function ae(tt){if(0===tt.length)return null;var Xe=tt.lastIndexOf("/");return-1===Xe?"":tt.slice(0,Xe)}(this.location.path);if(null===Xe)return null;var Ut=new hn(this.location.bucket,Xe);return this.newRef(this.service,Ut)},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"root",{get:function(){var Xe=new hn(this.location.bucket,"");return this.newRef(this.service,Xe)},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"bucket",{get:function(){return this.location.bucket}
1,enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"name",{get:function(){return Ce(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),tt.prototype.put=function(Xe,Ut){return void 0===Ut&&(Ut=null),oi("put",[Ji(),ci(!0)],arguments),this.throwIfRoot_("put"),new cs(this,this.service,this.location,this.mappings(),new Tt(Xe),Ut)},tt.prototype.putString=function(Xe,Ut,gn){void 0===Ut&&(Ut=ln.RAW),oi("putString",[Ci(),Ci(Lt,!0),ci(!0)],arguments),this.throwIfRoot_("putString");var _n=Rt(Ut,Xe),Mn=Object.assign({},gn);return!ze(Mn.contentType)&&ze(_n.contentType)&&(Mn.contentType=_n.contentType),new cs(this,this.service,this.location,this.mappings(),new Tt(_n.data,!0),Mn)},tt.prototype.delete=function(){var Xe=this;return oi("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then(function(Ut){var gn=Dn(Xe.service,Xe.location);return Xe.service.makeRequest(gn,Ut).getPromise()})},tt.prototype.listAll=function(){oi("listAll",[],arguments);var Xe={prefixes:[],items:[]};return this.listAllHelper(Xe).then(function(){return Xe})},tt.prototype.listAllHelper=function(Xe,Ut){return P(this,void 0,void 0,function(){var _n,Mn,qn;return C(this,function(cr){switch(cr.label){case 0:return[4,this.list({pageToken:Ut})];case 1:return _n=cr.sent(),(Mn=Xe.prefixes).push.apply(Mn,_n.prefixes),(qn=Xe.items).push.apply(qn,_n.items),null==_n.nextPageToken?[3,3]:[4,this.listAllHelper(Xe,_n.nextPageToken)];case 2:cr.sent(),cr.label=3;case 3:return[2]}})})},tt.prototype.list=function(Xe){oi("list",[Gi(!0)],arguments);var Ut=this;return this.service.getAuthToken().then(function(gn){var _n=Xe||{},Mn=_i(Ut.service,Ut.location,"/",_n.pageToken,_n.maxResults);return Ut.service.makeRequest(Mn,gn).getPromise()})},tt.prototype.getMetadata=function(){var Xe=this;return oi("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then(function(Ut){var gn=Lr(Xe.service,Xe.location,Xe.mappings());return Xe.service.makeRequest(gn,Ut).getPromise()})},tt.prototype.updateMetadata=function(Xe){var Ut=this;return oi("updateMetadata",[ci()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then(function(gn){var _n=an(Ut.service,Ut.location,Xe,Ut.mappings());return Ut.service.makeRequest(_n,gn).getPromise()})},tt.prototype.getDownloadURL=function(){var Xe=this;return oi("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then(function(Ut){var gn=kt(Xe.service,Xe.location,Xe.mappings());return Xe.service.makeRequest(gn,Ut).getPromise().then(function(_n){if(null===_n)throw he();return _n})})},tt.prototype.throwIfRoot_=function(Xe){if(""===this.location.path)throw function Qe(tt){return new oe("invalid-root-operation","The operation '"+tt+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(Xe)},tt}(),is=function(){function tt(Xe){this.promise_=Promise.reject(Xe)}return tt.prototype.getPromise=function(){return this.promise_},tt.prototype.cancel=function(Xe){},tt}(),ai=function(){function tt(Xe,Ut,gn,_n,Mn,qn,cr,ur,_r,Mr,Wr){var le=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=Xe,this.method_=Ut,this.headers_=gn,this.body_=_n,this.successCodes_=Mn.slice(),this.additionalRetryCodes_=qn.slice(),this.callback_=cr,this.errorCallback_=ur,this.progressCallback_=Mr,this.timeout_=_r,this.pool_=Wr,this.promise_=new Promise(function(Ae,be){le.resolve_=Ae,le.reject_=be,le.start_()})}return tt.prototype.start_=function(){var Xe=this;function gn(_n,Mn){var qn=Xe.resolve_,cr=Xe.reject_,ur=Mn.xhr;if(Mn.wasSuccessCode)try{var _r=Xe.callback_(ur,ur.getResponseText());nt(_r)?qn(_r):qn()}catch(Wr){cr(Wr)}else if(null!==ur)(Mr=Re()).setServerResponseProp(ur.getResponseText()),cr(Xe.errorCallback_?Xe.errorCallback_(ur,Mr):Mr);
1else if(Mn.canceled)cr(Mr=Xe.appDelete_?Ye():A());else{var Mr;cr(Mr=function p(){return new oe("retry-limit-exceeded","Max retry time for operation exceeded, please try again.")}())}}this.canceled_?gn(0,new Zi(!1,null,!0)):this.backoffId_=function $i(tt,Xe,Ut){var gn=1,_n=null,Mn=!1,qn=0;function cr(){return 2===qn}var ur=!1;function _r(){for(var be=[],Me=0;Me<arguments.length;Me++)be[Me]=arguments[Me];ur||(ur=!0,Xe.apply(null,be))}function Mr(be){_n=setTimeout(function(){_n=null,tt(Wr,cr())},be)}function Wr(be){for(var Me=[],dt=1;dt<arguments.length;dt++)Me[dt-1]=arguments[dt];if(!ur){if(be)return void _r.call.apply(_r,j([null,be],Me));var fn;if(cr()||Mn)return void _r.call.apply(_r,j([null,be],Me));gn<64&&(gn*=2),1===qn?(qn=2,fn=0):fn=1e3*(gn+Math.random()),Mr(fn)}}var le=!1;function Ae(be){le||(le=!0,!ur&&(null!==_n?(be||(qn=2),clearTimeout(_n),Mr(0)):be||(qn=1)))}return Mr(0),setTimeout(function(){Mn=!0,Ae(!0)},Ut),Ae}(function Ut(_n,Mn){if(Mn)_n(!1,new Zi(!1,null,!0));else{var qn=Xe.pool_.createXhrIo();Xe.pendingXhr_=qn,null!==Xe.progressCallback_&&qn.addUploadProgressListener(cr),qn.send(Xe.url_,Xe.method_,Xe.body_,Xe.headers_).then(function(ur){null!==Xe.progressCallback_&&ur.removeUploadProgressListener(cr),Xe.pendingXhr_=null;var _r=(ur=ur).getErrorCode()===Sn.NO_ERROR,Mr=ur.getStatus();if(_r&&!Xe.isRetryStatusCode_(Mr)){var le=-1!==Xe.successCodes_.indexOf(Mr);_n(!0,new Zi(le,ur))}else{var Wr=ur.getErrorCode()===Sn.ABORT;_n(!1,new Zi(!1,null,Wr))}})}function cr(ur){null!==Xe.progressCallback_&&Xe.progressCallback_(ur.loaded,ur.lengthComputable?ur.total:-1)}},gn,this.timeout_)},tt.prototype.getPromise=function(){return this.promise_},tt.prototype.cancel=function(Xe){this.canceled_=!0,this.appDelete_=Xe||!1,null!==this.backoffId_&&function Hi(tt){tt(!1)}(this.backoffId_),null!==this.pendingXhr_&&this.pendingXhr_.abort()},tt.prototype.isRetryStatusCode_=function(Xe){var Ut=Xe>=500&&Xe<600,_n=-1!==[408,429].indexOf(Xe),Mn=-1!==this.additionalRetryCodes_.indexOf(Xe);return Ut||_n||Mn},tt}(),Zi=function tt(Xe,Ut,gn){this.wasSuccessCode=Xe,this.xhr=Ut,this.canceled=!!gn};var fs=function(){function tt(Xe,Ut,gn,_n){var Mn;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=Xe,this.authProvider_=Ut,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=gn,this.bucket_=null!=_n?hn.makeFromBucketSpec(_n):tt.extractBucket_(null===(Mn=this.app_)||void 0===Mn?void 0:Mn.options),this.internals_=new bs(this)}return tt.extractBucket_=function(Xe){var Ut=null==Xe?void 0:Xe.storageBucket;return null==Ut?null:hn.makeFromBucketSpec(Ut)},tt.prototype.getAuthToken=function(){return P(this,void 0,void 0,function(){var Xe,Ut;return C(this,function(gn){switch(gn.label){case 0:return(Xe=this.authProvider_.getImmediate({optional:!0}))?[4,Xe.getToken()]:[3,2];case 1:if(null!==(Ut=gn.sent()))return[2,Ut.accessToken];gn.label=2;case 2:return[2,null]}})})},tt.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach(function(Xe){return Xe.cancel()}),this.requests_.clear()},tt.prototype.makeStorageReference=function(Xe){return new Yi(this,Xe)},tt.prototype.makeRequest=function(Xe,Ut){var gn=this;if(this.deleted_)return new is(Ye());var _n=function hs(tt,Xe,Ut,gn){var _n=st(tt.urlParams),Mn=tt.url+_n,qn=Object.assign({},tt.headers);return function ss(tt,Xe){Xe&&(tt["X-Firebase-GMPID"]=Xe)}(qn,Xe),function zi(tt,Xe){null!==Xe&&Xe.length>0&&(tt.Authorization="Firebase "+Xe)}(qn,Ut),function xi(tt){tt["X-Firebase-Storage-Version"]="webjs/"+(void 0!==t.default?t.default.SDK_VERSION:"AppManager")}(qn),new ai(Mn,tt.method,qn,tt.body,tt.successCodes,tt.additionalRetryCodes,tt.handler,tt.errorHandler,tt.timeout,tt.progressCallback,gn)}(Xe,this.appId_,Ut,this.pool_);return this.requests_.add(_n),_n.getPromise().then(function(){return gn.requests_.delete(_n)},function(){return gn.requests_.delete(_n)}),_n},tt.prototype.ref=function(Xe){function Ut(_n){if("string"!=typeof _n)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(_n))throw"Expected child path but got a URL, use refFromURL instead."}if(oi("ref",[Ci(Ut,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var gn=new Yi(this,this.bucket_);return null!=Xe?gn.child(Xe):gn},tt.prototype.refFromURL=function(Xe){function Ut(gn){if("string"!=typeof gn)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(gn))throw"Expected full URL but got a child path, use ref instead.";try{hn.makeFromUrl(gn)}
1catch(_n){throw"Expected valid full URL but got an invalid one."}}return oi("refFromURL",[Ci(Ut,!1)],arguments),new Yi(this,Xe)},Object.defineProperty(tt.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),tt.prototype.setMaxUploadRetryTime=function(Xe){oi("setMaxUploadRetryTime",[rs()],arguments),this.maxUploadRetryTime_=Xe},Object.defineProperty(tt.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),tt.prototype.setMaxOperationRetryTime=function(Xe){oi("setMaxOperationRetryTime",[rs()],arguments),this.maxOperationRetryTime_=Xe},Object.defineProperty(tt.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(tt.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),tt}(),bs=function(){function tt(Xe){this.service_=Xe}return tt.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},tt}();function os(tt,Xe){var Ut=tt.getProvider("app").getImmediate(),gn=tt.getProvider("auth-internal");return new fs(Ut,gn,new rr,Xe)}function Ii(tt){var Xe={TaskState:St,TaskEvent:gt,StringFormat:ln,Storage:fs,Reference:Yi};tt.INTERNAL.registerComponent(new k.Component("storage",os,"PUBLIC").setServiceProps(Xe).setMultipleInstances(!0)),tt.registerVersion("@firebase/storage","0.3.43")}Ii(t.default)},1270:(xe,q,c)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var t=c(8713),_={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},x=function(gt,at){if(!gt)throw re(at)},re=function(gt){return new Error("Firebase Database ("+_.SDK_VERSION+") INTERNAL ASSERT FAILED: "+gt)},te=function(gt){for(var at=[],St=0,sn=0;sn<gt.length;sn++){var ze=gt.charCodeAt(sn);ze<128?at[St++]=ze:ze<2048?(at[St++]=ze>>6|192,at[St++]=63&ze|128):55296==(64512&ze)&&sn+1<gt.length&&56320==(64512&gt.charCodeAt(sn+1))?(ze=65536+((1023&ze)<<10)+(1023&gt.charCodeAt(++sn)),at[St++]=ze>>18|240,at[St++]=ze>>12&63|128,at[St++]=ze>>6&63|128,at[St++]=63&ze|128):(at[St++]=ze>>12|224,at[St++]=ze>>6&63|128,at[St++]=63&ze|128)}return at},S={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(gt,at){if(!Array.isArray(gt))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var St=at?this.byteToCharMapWebSafe_:this.byteToCharMap_,sn=[],ze=0;ze<gt.length;ze+=3){var nt=gt[ze],mt=ze+1<gt.length,Nt=mt?gt[ze+1]:0,wt=ze+2<gt.length,bt=wt?gt[ze+2]:0,vt=(15&Nt)<<2|bt>>6,tn=63&bt;wt||(tn=64,mt||(vt=64)),sn.push(St[nt>>2],St[(3&nt)<<4|Nt>>4],St[vt],St[tn])}return sn.join("")},encodeString:function(gt,at){return this.HAS_NATIVE_SUPPORT&&!at?btoa(gt):this.encodeByteArray(te(gt),at)},decodeString:function(gt,at){return this.HAS_NATIVE_SUPPORT&&!at?atob(gt):function(gt){for(var at=[],St=0,sn=0;St<gt.length;){var ze=gt[St++];if(ze<128)at[sn++]=String.fromCharCode(ze);else if(ze>191&&ze<224){var nt=gt[St++];at[sn++]=String.fromCharCode((31&ze)<<6|63&nt)}else if(ze>239&&ze<365){var wt=((7&ze)<<18|(63&(nt=gt[St++]))<<12|(63&(mt=gt[St++]))<<6|63&gt[St++])-65536;at[sn++]=String.fromCharCode(55296+(wt>>10)),at[sn++]=String.fromCharCode(56320+(1023&wt))}else{nt=gt[St++];var mt=gt[St++];at[sn++]=String.fromCharCode((15&ze)<<12|(63&nt)<<6|63&mt)}}return at.join("")}(this.decodeStringToByteArray(gt,at))},decodeStringToByteArray:function(gt,at){this.init_();for(var St=at?this.charToByteMapWebSafe_:this.charToByteMap_,sn=[],ze=0;ze<gt.length;){var nt=St[gt.charAt(ze++)],Nt=ze<gt.length?St[gt.charAt(ze)]:0,bt=++ze<gt.length?St[gt.charAt(ze)]:64,Un=++ze<gt.length?St[gt.charAt(ze)]:64;if(++ze,null==nt||null==Nt||null==bt||null==Un)throw Error();sn.push(nt<<2|Nt>>4),64!==bt&&(sn.push(Nt<<4&240|bt>>2),64!==Un&&sn.push(bt<<6&192|Un))}return sn},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var gt=0;gt<this.ENCODED_VALS.length;gt++)this.byteToCharMap_[gt]=this.ENCODED_VALS.charAt(gt),this.charToByteMap_[this.byteToCharMap_[gt]]=gt,this.byteToCharMapWebSafe_[gt]=this.ENCODED_VALS_WEBSAFE.charAt(gt),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[gt]]=gt,gt>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(gt)]=gt,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(gt)]=gt)}}},P=function(gt){try{return S.decodeString(gt,!0)}catch(at){console.error("base64Decode failed: ",at)}return null};function L(gt,at){if(!(at instanceof Object))return at;switch(at.constructor){case Date:return new Date(at.getTime());case Object:void 0===gt&&(gt={});break;case Array:gt=[];break;default:return at}for(var sn in at)!at.hasOwnProperty(sn)||(gt[sn]=L(gt[sn],at[sn]));return gt}var E=function(){function gt(){var at=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(St,sn){at.resolve=St,at.reject=sn})}return gt.prototype.wrapCallback=function(at){var St=this;return function(sn,ze){sn?St.reject(sn):St.resolve(ze),"function"==typeof at&&(St.promise.catch(function(){}),1===at.length?at(sn):at(sn,ze))}},gt}();function m(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function R(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(gt){return!1}}var H=function(gt){function at(St,sn){var ze=gt.call(this,sn)||this;return ze.code=St,ze.name="FirebaseError",Object.setPrototypeOf(ze,at.prototype),Error.captureStackTrace&&Error.captureStackTrace(ze,ee.prototype.create),ze}return t.__extends(at,gt),at}(Error),ee=function(){function gt(at,St,sn){this.service=at,this.serviceName=St,this.errors=sn}return gt.prototype.create=function(at){for(var St=[],sn=1;sn<arguments.length;sn++)St[sn-1]=arguments[sn];for(var ze=St[0]||{},nt=this.service+"/"+at,mt=this.errors[at],Nt=mt?z(mt,ze):"Error",wt=this.serviceName+": "+Nt+" ("+nt+").",bt=new H(nt,wt),Kt=0,Un=Object.keys(ze);Kt<Un.length;Kt++){var vt=Un[Kt];"_"!==vt.slice(-1)&&(vt in bt&&console.warn('Overwriting FirebaseError base field "'+vt+'" can cause unexpected behavior.'),bt[vt]=ze[vt])}return bt},gt}();function z(gt,at){return gt.replace(oe,function(St,sn){var ze=at[sn];return null!=ze?String(ze):"<"+sn+"?>"})}var oe=/\{\$([^}]+)}/g;function ve(gt){return JSON.parse(gt)}var Re=function(gt){var at={},St={},sn={},ze="";try{var nt=gt.split(".");at=ve(P(nt[0])||""),St=ve(P(nt[1])||""),ze=nt[2],sn=St.d||{},delete St.d}catch(mt){}return{header:at,claims:St,data:sn,signature:ze}},he=function(){function gt(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var at=1;at<this.blockSize;++at)this.pad_[at]=0;this.reset()}return gt.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},gt.prototype.compress_=function(at,St){St||(St=0);var sn=this.W_;if("string"==typeof at)for(var ze=0;ze<16;ze++)sn[ze]=at.charCodeAt(St)<<24|at.charCodeAt(St+1)<<16|at.charCodeAt(St+2)<<8|at.charCodeAt(St+3),St+=4;else for(ze=0;ze<16;ze++)sn[ze]=at[St]<<24|at[St+1]<<16|at[St+2]<<8|at[St+3],St+=4;for(ze=16;ze<80;ze++)sn[ze]=4294967295&((nt=sn[ze-3]^sn[ze-8]^sn[ze-14]^sn[ze-16])<<1|nt>>>31);var Un,vt,mt=this.chain_[0],Nt=this.chain_[1],wt=this.chain_[2],bt=this.chain_[3],Kt=this.chain_[4];for(ze=0;ze<80;ze++){ze<40?ze<20?(Un=bt^Nt&(wt^bt),vt=1518500249):(Un=Nt^wt^bt,vt=1859775393):ze<60?(Un=Nt&wt|bt&(Nt|wt),vt=2400959708):(Un=Nt^wt^bt,vt=3395469782);var nt=(mt<<5|mt>>>27)+Un+Kt+vt+sn[ze]&4294967295;Kt=bt,bt=wt,wt=4294967295&(Nt<<30|Nt>>>2),Nt=mt,mt=nt}this.chain_[0]=this.chain_[0]+mt&4294967295,this.chain_[1]=this.chain_[1]+Nt&4294967295,this.chain_[2]=this.chain_[2]+wt&4294967295,this.chain_[3]=this.chain_[3]+bt&4294967295,this.chain_[4]=this.chain_[4]+Kt&4294967295},gt.prototype.update=function(at,St){if(null!=at){void 0===St&&(St=at.length);for(var sn=St-this.blockSize,ze=0,nt=this.buf_,mt=this.inbuf_;ze<St;){if(0===mt)for(;ze<=sn;)this.compress_(at,ze),ze+=this.blockSize;if("string"==typeof at){for(;ze<St;)if(nt[mt]=at.charCodeAt(ze),++ze,++mt===this.blockSize){this.compress_(nt),mt=0;break}}else for(;ze<St;)if(nt[mt]=at[ze],++ze,++mt===this.blockSize){this.compress_(nt),mt=0;break}}this.inbuf_=mt,this.total_+=St}},gt.prototype.digest=function(){var at=[],St=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var sn=this.blockSize-1;sn>=56;sn--)this.buf_[sn]=255&St,St/=256;this.compress_(this.buf_);var ze=0;for(sn=0;sn<5;sn++)for(var nt=24;nt>=0;nt-=8)at[ze]=this.chain_[sn]>>nt&255,++ze;return at},gt}(),Ne=function(){function gt(at,St){var sn=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.resolve(),this.finalized=!1,this.onNoObservers=St,this.task.then(function(){at(sn)}).catch(function(ze){sn.error(ze)})}return gt.prototype.next=function(at){this.forEachObserver(function(St){St.next(at)})},gt.prototype.error=function(at){this.forEachObserver(function(St){St.error(at)}),this.close(at)},gt.prototype.complete=function(){this.forEachObserver(function(at){at.complete()}),this.close()},gt.prototype.subscribe=function(at,St,sn){var nt,ze=this;if(void 0===at&&void 0===St&&void 0===sn)throw new Error("Missing Observer.");nt=function Qe(gt,at){if("object"!=typeof gt||null===gt)return!1;for(var St=0,sn=at;St<sn.length;St++){var ze=sn[St];if(ze in gt&&"function"==typeof gt[ze])return!0}return!1}(at,["next","error","complete"])?at:{next:at,error:St,complete:sn},void 0===nt.next&&(nt.next=Ct),void 0===nt.error&&(nt.error=Ct),void 0===nt.complete&&(nt.complete=Ct);var mt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{ze.finalError?nt.error(ze.finalError):nt.complete()}catch(Nt){}}),this.observers.push(nt),mt},gt.prototype.unsubscribeOne=function(at){void 0===this.observers||void 0===this.observers[at]||(delete this.observers[at],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},gt.prototype.forEachObserver=function(at){if(!this.finalized)for(var St=0;St<this.observers.length;St++)this.sendOne(St,at)},gt.prototype.sendOne=function(at,St){var sn=this;this.task.then(function(){if(void 0!==sn.observers&&void 0!==sn.observers[at])try{St(sn.observers[at])}catch(ze){"undefined"!=typeof console&&console.error&&console.error(ze)}})},gt.prototype.close=function(at){var St=this;this.finalized||(this.finalized=!0,void 0!==at&&(this.finalError=at),this.task.then(function(){St.observers=void 0,St.onNoObservers=void 0}))},gt}();function Ct(){}function ln(gt,at,St){var sn="";switch(at){case 1:sn=St?"first":"First";break;case 2:sn=St?"second":"Second";break;case 3:sn=St?"third":"Third";break;case 4:sn=St?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}return gt+" failed: "+(sn+" argument ")}q.CONSTANTS=_,q.Deferred=E,q.ErrorFactory=ee,q.FirebaseError=H,q.MAX_VALUE_MILLIS=144e5,q.RANDOM_FACTOR=.5,q.Sha1=he,q.areCookiesEnabled=function k(){return!(!navigator||!navigator.cookieEnabled)},q.assert=x,q.assertionError=re,q.async=function Ye(gt,at){return function(){for(var St=[],sn=0;sn<arguments.length;sn++)St[sn]=arguments[sn];Promise.resolve(!0).then(function(){gt.apply(void 0,St)}).catch(function(ze){at&&at(ze)})}},q.base64=S,q.base64Decode=P,q.base64Encode=function(gt){var at=te(gt);return S.encodeByteArray(at,!0)},q.calculateBackoffMillis=function cn(gt,at,St){void 0===at&&(at=1e3),void 0===St&&(St=2);var sn=at*Math.pow(St,gt),ze=Math.round(.5*sn*(Math.random()-.5)*2);return Math.min(144e5,sn+ze)},q.contains=function p(gt,at){return Object.prototype.hasOwnProperty.call(gt,at)},q.createSubscribe=function Oe(gt,at){var St=new Ne(gt,at);return St.subscribe.bind(St)},q.decode=Re,q.deepCopy=function C(gt){return L(void 0,gt)},q.deepExtend=L,q.errorPrefix=ln,q.getUA=m,q.isAdmin=function(gt){var at=Re(gt).claims;return"object"==typeof at&&!0===at.admin},q.isBrowser=function j(){return"object"==typeof self&&self.self===self},q.isBrowserExtension=function M(){var gt="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof gt&&void 0!==gt.id},q.isElectron=function f(){return m().indexOf("Electron/")>=0},q.isEmpty=function N(gt){for(var at in gt)if(Object.prototype.hasOwnProperty.call(gt,at))return!1;return!0},q.isIE=function T(){var gt=m();return gt.indexOf("MSIE ")>=0||gt.indexOf("Trident/")>=0},q.isIndexedDBAvailable=function se(){return"indexedDB"in self&&null!=indexedDB},q.isMobileCordova=function v(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(m())},q.isNode=R,q.isNodeSdk=function G(){return!0===_.NODE_CLIENT||!0===_.NODE_ADMIN},q.isReactNative=function V(){return"object"==typeof navigator&&"ReactNative"===navigator.product},q.isSafari=function $(){return!R()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},q.isUWP=function Z(){return m().indexOf("MSAppHost/")>=0},q.isValidFormat=function(gt){var St=Re(gt).claims;return!!St&&"object"==typeof St&&St.hasOwnProperty("iat")},q.isValidTimestamp=function(gt){var at=Re(gt).claims,St=Math.floor((new Date).getTime()/1e3),sn=0,ze=0;return"object"==typeof at&&(at.hasOwnProperty("nbf")?sn=at.nbf:at.hasOwnProperty("iat")&&(sn=at.iat),ze=at.hasOwnProperty("exp")?at.exp:sn+86400),!!St&&!!sn&&!!ze&&St>=sn&&St<=ze},q.issuedAtTime=function(gt){var at=Re(gt).claims;return"object"==typeof at&&at.hasOwnProperty("iat")?at.iat:null},q.jsonEval=ve,q.map=function K(gt,at,St){var sn={};for(var ze in gt)Object.prototype.hasOwnProperty.call(gt,ze)&&(sn[ze]=at.call(St,gt[ze],ze,gt));return sn},q.querystring=function J(gt){for(var at=[],St=function(wt,bt){Array.isArray(bt)?bt.forEach(function(Kt){at.push(encodeURIComponent(wt)+"="+encodeURIComponent(Kt))}):at.push(encodeURIComponent(wt)+"="+encodeURIComponent(bt))},sn=0,ze=Object.entries(gt);sn<ze.length;sn++){var nt=ze[sn];St(nt[0],nt[1])}return at.length?"&"+at.join("&"):""},q.querystringDecode=function ie(gt){var at={};return gt.replace(/^\?/,"").split("&").forEach(function(sn){if(sn){var ze=sn.split("=");at[ze[0]]=ze[1]}}),at},q.safeGet=function A(gt,at){if(Object.prototype.hasOwnProperty.call(gt,at))return gt[at]},q.stringLength=function(gt){for(var at=0,St=0;St<gt.length;St++){var sn=gt.charCodeAt(St);sn<128?at++:sn<2048?at+=2:sn>=55296&&sn<=56319?(at+=4,St++):at+=3}return at},q.stringToByteArray=function(gt){for(var at=[],St=0,sn=0;sn<gt.length;sn++){var ze=gt.charCodeAt(sn);if(ze>=55296&&ze<=56319){var nt=ze-55296;sn++,x(sn<gt.length,"Surrogate pair missing trail surrogate."),ze=65536+(nt<<10)+(gt.charCodeAt(sn)-56320)}ze<128?at[St++]=ze:ze<2048?(at[St++]=ze>>6|192,at[St++]=63&ze|128):ze<65536?(at[St++]=ze>>12|224,at[St++]=ze>>6&63|128,at[St++]=63&ze|128):(at[St++]=ze>>18|240,at[St++]=ze>>12&63|128,at[St++]=ze>>6&63|128,at[St++]=63&ze|128)}return at},q.stringify=function We(gt){return JSON.stringify(gt)},q.validateArgCount=function(gt,at,St,sn){var ze;if(sn<at?ze="at least "+at:sn>St&&(ze=0===St?"none":"no more than "+St),ze)throw new Error(gt+" failed: Was called with "+sn+(1===sn?" argument.":" arguments.")+" Expects "+ze+".")},q.validateCallback=function Jt(gt,at,St,sn){if((!sn||St)&&"function"!=typeof St)throw new Error(ln(gt,at,sn)+"must be a valid function.")},q.validateContextObject=function Rt(gt,at,St,sn){if((!sn||St)&&("object"!=typeof St||null===St))throw new Error(ln(gt,at,sn)+"must be a valid context object.")},q.validateIndexedDBOpenable=function y(){return new Promise(function(gt,at){try{var St=!0,sn="validate-browser-context-for-indexeddb-analytics-module",ze=window.indexedDB.open(sn);ze.onsuccess=function(){ze.result.close(),St||window.indexedDB.deleteDatabase(sn),gt(!0)},ze.onupgradeneeded=function(){St=!1},ze.onerror=function(){var nt;at((null===(nt=ze.error)||void 0===nt?void 0:nt.message)||"")}}catch(nt){at(nt)}})},q.validateNamespace=function Lt(gt,at,St,sn){if((!sn||St)&&"string"!=typeof St)throw new Error(ln(gt,at,sn)+"must be a valid firebase namespace.")}},670:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{default:()=>es,ErrorCode:()=>Zs,EventType:()=>Us,WebChannel:()=>Ns,XhrIo:()=>lo,createWebChannelTransport:()=>Mo});var t=function(Y,Le){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(lt,en){lt.__proto__=en}||function(lt,en){for(var kn in en)Object.prototype.hasOwnProperty.call(en,kn)&&(lt[kn]=en[kn])})(Y,Le)};function x(Y){var Le="function"==typeof Symbol&&Symbol.iterator,lt=Le&&Y[Le],en=0;if(lt)return lt.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&en>=Y.length&&(Y=void 0),{value:Y&&Y[en++],done:!Y}}};throw new TypeError(Le?"Object is not iterable.":"Symbol.iterator is not defined.")}var te,re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Q=Q||{},S=re||self;function W(){}function P(Y){var Le=typeof Y;return"object"!=Le?Le:Y?Array.isArray(Y)?"array":Le:"null"}function C(Y){var Le=P(Y);return"array"==Le||"object"==Le&&"number"==typeof Y.length}function L(Y){var Le=typeof Y;return"object"==Le&&null!=Y||"function"==Le}var m="closure_uid_"+(1e9*Math.random()>>>0),v=0;function R(Y,Le,lt){return Y.call.apply(Y.bind,arguments)}function j(Y,Le,lt){if(!Y)throw Error();if(2<arguments.length){var en=Array.prototype.slice.call(arguments,2);return function(){var kn=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(kn,en),Y.apply(Le,kn)}}return function(){return Y.apply(Le,arguments)}}function M(Y,Le,lt){return(M=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?R:j).apply(null,arguments)}
1function V(Y,Le){var lt=Array.prototype.slice.call(arguments,1);return function(){var en=lt.slice();return en.push.apply(en,arguments),Y.apply(this,en)}}var f=Date.now;function T(Y,Le){function lt(){}lt.prototype=Le.prototype,Y.S=Le.prototype,Y.prototype=new lt,Y.prototype.constructor=Y}function Z(){this.j=this.j,this.i=this.i}Z.prototype.j=!1,Z.prototype.ja=function(){!this.j&&(this.j=!0,this.G(),0)&&function E(Y){Object.prototype.hasOwnProperty.call(Y,m)&&Y[m]||(Y[m]=++v)}(this)},Z.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var $=Array.prototype.indexOf?function(Y,Le){return Array.prototype.indexOf.call(Y,Le,void 0)}:function(Y,Le){if("string"==typeof Y)return"string"!=typeof Le||1!=Le.length?-1:Y.indexOf(Le,0);for(var lt=0;lt<Y.length;lt++)if(lt in Y&&Y[lt]===Le)return lt;return-1},se=Array.prototype.forEach?function(Y,Le,lt){Array.prototype.forEach.call(Y,Le,lt)}:function(Y,Le,lt){for(var en=Y.length,kn="string"==typeof Y?Y.split(""):Y,Xn=0;Xn<en;Xn++)Xn in kn&&Le.call(lt,kn[Xn],Xn,Y)};function k(Y){return Array.prototype.concat.apply([],arguments)}function I(Y){var Le=Y.length;if(0<Le){for(var lt=Array(Le),en=0;en<Le;en++)lt[en]=Y[en];return lt}return[]}function H(Y){return/^[\s\xa0]*$/.test(Y)}var ve,ee=String.prototype.trim?function(Y){return Y.trim()}:function(Y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Y)[1]};function z(Y,Le){return-1!=Y.indexOf(Le)}function oe(Y,Le){return Y<Le?-1:Y>Le?1:0}e:{var We=S.navigator;if(We){var Re=We.userAgent;if(Re){ve=Re;break e}}ve=""}function He(Y,Le,lt){for(var en in Y)Le.call(lt,Y[en],en,Y)}function ge(Y){var Le={};for(var lt in Y)Le[lt]=Y[lt];return Le}var O="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function b(Y,Le){for(var lt,en,kn=1;kn<arguments.length;kn++){for(lt in en=arguments[kn])Y[lt]=en[lt];for(var Xn=0;Xn<O.length;Xn++)lt=O[Xn],Object.prototype.hasOwnProperty.call(en,lt)&&(Y[lt]=en[lt])}}function p(Y){return p[" "](Y),Y}p[" "]=W;var Ye,Y,N=z(ve,"Opera"),K=z(ve,"Trident")||z(ve,"MSIE"),J=z(ve,"Edge"),ie=J||K,he=z(ve,"Gecko")&&!(z(ve.toLowerCase(),"webkit")&&!z(ve,"Edge"))&&!(z(ve,"Trident")||z(ve,"MSIE"))&&!z(ve,"Edge"),Oe=z(ve.toLowerCase(),"webkit")&&!z(ve,"Edge");function Ne(){var Y=S.document;return Y?Y.documentMode:void 0}e:{var Qe="",Ct=(Y=ve,he?/rv:([^\);]+)(\)|;)/.exec(Y):J?/Edge\/([\d\.]+)/.exec(Y):K?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Y):Oe?/WebKit\/(\S+)/.exec(Y):N?/(?:Version)[ \/]?(\S+)/.exec(Y):void 0);if(Ct&&(Qe=Ct?Ct[1]:""),K){var Ot=Ne();if(null!=Ot&&Ot>parseFloat(Qe)){Ye=String(Ot);break e}}Ye=Qe}var ln={};function Lt(Y){return function A(Y,Le){var lt=ln;return Object.prototype.hasOwnProperty.call(lt,Y)?lt[Y]:lt[Y]=Le(Y)}(Y,function(){for(var Le=0,lt=ee(String(Ye)).split("."),en=ee(String(Y)).split("."),kn=Math.max(lt.length,en.length),Xn=0;0==Le&&Xn<kn;Xn++){var Hr=lt[Xn]||"",Ei=en[Xn]||"";do{if(Hr=/(\d*)(\D*)(.*)/.exec(Hr)||["","","",""],Ei=/(\d*)(\D*)(.*)/.exec(Ei)||["","","",""],0==Hr[0].length&&0==Ei[0].length)break;Le=oe(0==Hr[1].length?0:parseInt(Hr[1],10),0==Ei[1].length?0:parseInt(Ei[1],10))||oe(0==Hr[2].length,0==Ei[2].length)||oe(Hr[2],Ei[2]),Hr=Hr[3],Ei=Ei[3]}while(0==Le)}return 0<=Le})}var it=S.document&&K&&(Ne()||parseInt(Ye,10))||void 0,_t=!K||9<=Number(it),ut=K&&!Lt("9"),yt=function(){if(!S.addEventListener||!Object.defineProperty)return!1;var Y=!1,Le=Object.defineProperty({},"passive",{get:function(){Y=!0}});try{S.addEventListener("test",W,Le),S.removeEventListener("test",W,Le)}catch(lt){}return Y}();function ht(Y,Le){this.type=Y,this.a=this.target=Le,this.defaultPrevented=!1}function ct(Y,Le){if(ht.call(this,Y?Y.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,Y){var lt=this.type=Y.type,en=Y.changedTouches&&Y.changedTouches.length?Y.changedTouches[0]:null;if(this.target=Y.target||Y.srcElement,this.a=Le,Le=Y.relatedTarget){if(he){e:{try{p(Le.nodeName);var kn=!0;break e}catch(Xn){}kn=!1}kn||(Le=null)}}
1else"mouseover"==lt?Le=Y.fromElement:"mouseout"==lt&&(Le=Y.toElement);this.relatedTarget=Le,en?(this.clientX=void 0!==en.clientX?en.clientX:en.pageX,this.clientY=void 0!==en.clientY?en.clientY:en.pageY,this.screenX=en.screenX||0,this.screenY=en.screenY||0):(this.clientX=void 0!==Y.clientX?Y.clientX:Y.pageX,this.clientY=void 0!==Y.clientY?Y.clientY:Y.pageY,this.screenX=Y.screenX||0,this.screenY=Y.screenY||0),this.button=Y.button,this.key=Y.key||"",this.ctrlKey=Y.ctrlKey,this.altKey=Y.altKey,this.shiftKey=Y.shiftKey,this.metaKey=Y.metaKey,this.pointerId=Y.pointerId||0,this.pointerType="string"==typeof Y.pointerType?Y.pointerType:cn[Y.pointerType]||"",this.c=Y,Y.defaultPrevented&&this.b()}}ht.prototype.b=function(){this.defaultPrevented=!0},T(ct,ht);var cn={2:"touch",3:"pen",4:"mouse"};ct.prototype.b=function(){ct.S.b.call(this);var Y=this.c;if(Y.preventDefault)Y.preventDefault();else if(Y.returnValue=!1,ut)try{(Y.ctrlKey||112<=Y.keyCode&&123>=Y.keyCode)&&(Y.keyCode=-1)}catch(Le){}};var gt="closure_listenable_"+(1e6*Math.random()|0),at=0;function St(Y,Le,lt,en,kn){this.listener=Y,this.proxy=null,this.src=Le,this.type=lt,this.capture=!!en,this.ca=kn,this.key=++at,this.Y=this.Z=!1}function sn(Y){Y.Y=!0,Y.listener=null,Y.proxy=null,Y.src=null,Y.ca=null}function ze(Y){this.src=Y,this.a={},this.b=0}function nt(Y,Le){var lt=Le.type;if(lt in Y.a){var Xn,en=Y.a[lt],kn=$(en,Le);(Xn=0<=kn)&&Array.prototype.splice.call(en,kn,1),Xn&&(sn(Le),0==Y.a[lt].length&&(delete Y.a[lt],Y.b--))}}function mt(Y,Le,lt,en){for(var kn=0;kn<Y.length;++kn){var Xn=Y[kn];if(!Xn.Y&&Xn.listener==Le&&Xn.capture==!!lt&&Xn.ca==en)return kn}return-1}ze.prototype.add=function(Y,Le,lt,en,kn){var Xn=Y.toString();(Y=this.a[Xn])||(Y=this.a[Xn]=[],this.b++);var Hr=mt(Y,Le,en,kn);return-1<Hr?(Le=Y[Hr],lt||(Le.Z=!1)):((Le=new St(Le,this.src,Xn,!!en,kn)).Z=lt,Y.push(Le)),Le};var Nt="closure_lm_"+(1e6*Math.random()|0),wt={};function bt(Y,Le,lt,en,kn){if(en&&en.once)return vt(Y,Le,lt,en,kn);if(Array.isArray(Le)){for(var Xn=0;Xn<Le.length;Xn++)bt(Y,Le[Xn],lt,en,kn);return null}return lt=nr(lt),Y&&Y[gt]?Y.va(Le,lt,L(en)?!!en.capture:!!en,kn):Kt(Y,Le,lt,!1,en,kn)}function Kt(Y,Le,lt,en,kn,Xn){if(!Le)throw Error("Invalid event type");var Hr=L(kn)?!!kn.capture:!!kn;if(Hr&&!_t)return null;var Ei=Fn(Y);if(Ei||(Y[Nt]=Ei=new ze(Y)),(lt=Ei.add(Le,lt,en,Hr,Xn)).proxy)return lt;if(en=function Un(){var Y=rr,Le=_t?function(lt){return Y.call(Le.src,Le.listener,lt)}:function(lt){if(!(lt=Y.call(Le.src,Le.listener,lt)))return lt};return Le}(),lt.proxy=en,en.src=Y,en.listener=lt,Y.addEventListener)yt||(kn=Hr),void 0===kn&&(kn=!1),Y.addEventListener(Le.toString(),en,kn);else if(Y.attachEvent)Y.attachEvent(Sn(Le.toString()),en);else{if(!Y.addListener||!Y.removeListener)throw Error("addEventListener and attachEvent are unavailable.");Y.addListener(en)}return lt}function vt(Y,Le,lt,en,kn){if(Array.isArray(Le)){for(var Xn=0;Xn<Le.length;Xn++)vt(Y,Le[Xn],lt,en,kn);return null}return lt=nr(lt),Y&&Y[gt]?Y.wa(Le,lt,L(en)?!!en.capture:!!en,kn):Kt(Y,Le,lt,!0,en,kn)}function tn(Y,Le,lt,en,kn){if(Array.isArray(Le))for(var Xn=0;Xn<Le.length;Xn++)tn(Y,Le[Xn],lt,en,kn);else en=L(en)?!!en.capture:!!en,lt=nr(lt),Y&&Y[gt]?(Y=Y.c,(Le=String(Le).toString())in Y.a&&-1<(lt=mt(Xn=Y.a[Le],lt,en,kn))&&(sn(Xn[lt]),Array.prototype.splice.call(Xn,lt,1),0==Xn.length&&(delete Y.a[Le],Y.b--))):Y&&(Y=Fn(Y))&&(Le=Y.a[Le.toString()],Y=-1,Le&&(Y=mt(Le,lt,en,kn)),(lt=-1<Y?Le[Y]:null)&&Cn(lt))}function Cn(Y){if("number"!=typeof Y&&Y&&!Y.Y){var Le=Y.src;if(Le&&Le[gt])nt(Le.c,Y);else{var lt=Y.type,en=Y.proxy;Le.removeEventListener?Le.removeEventListener(lt,en,Y.capture):Le.detachEvent?Le.detachEvent(Sn(lt),en):Le.addListener&&Le.removeListener&&Le.removeListener(en),(lt=Fn(Le))?(nt(lt,Y),0==lt.b&&(lt.src=null,Le[Nt]=null)):sn(Y)}}}function Sn(Y){return Y in wt?wt[Y]:wt[Y]="on"+Y}function Nn(Y,Le){var lt=Y.listener,en=Y.ca||Y.src;return Y.Z&&Cn(Y),lt.call(en,Le)}function rr(Y,Le){if(Y.Y)return!0;if(!_t){if(!Le)e:{Le=["window","event"];for(var lt=S,en=0;en<Le.length;en++)if(null==(lt=lt[Le[en]])){Le=null;break e}Le=lt}return Nn(Y,Le=new ct(Le,this))}return Nn(Y,new ct(Le,this))}function Fn(Y){return(Y=Y[Nt])instanceof ze?Y:null}var jn="__closure_events_fn_"+(1e9*Math.random()>>>0);
1function nr(Y){return"function"==P(Y)?Y:(Y[jn]||(Y[jn]=function(Le){return Y.handleEvent(Le)}),Y[jn])}function Tt(){Z.call(this),this.c=new ze(this),this.J=this,this.C=null}function hn(Y,Le,lt,en){if(!(Le=Y.c.a[String(Le)]))return!0;Le=Le.concat();for(var kn=!0,Xn=0;Xn<Le.length;++Xn){var Hr=Le[Xn];if(Hr&&!Hr.Y&&Hr.capture==lt){var Ei=Hr.listener,vi=Hr.ca||Hr.src;Hr.Z&&nt(Y.c,Hr),kn=!1!==Ei.call(vi,en)&&kn}}return kn&&!en.defaultPrevented}T(Tt,Z),Tt.prototype[gt]=!0,(te=Tt.prototype).addEventListener=function(Y,Le,lt,en){bt(this,Y,Le,lt,en)},te.removeEventListener=function(Y,Le,lt,en){tn(this,Y,Le,lt,en)},te.dispatchEvent=function(Y){var Le,lt=this.C;if(lt)for(Le=[];lt;lt=lt.C)Le.push(lt);lt=this.J;var en=Y.type||Y;if("string"==typeof Y)Y=new ht(Y,lt);else if(Y instanceof ht)Y.target=Y.target||lt;else{var kn=Y;b(Y=new ht(en,lt),kn)}if(kn=!0,Le)for(var Xn=Le.length-1;0<=Xn;Xn--){var Hr=Y.a=Le[Xn];kn=hn(Hr,en,!0,Y)&&kn}if(kn=hn(Hr=Y.a=lt,en,!0,Y)&&kn,kn=hn(Hr,en,!1,Y)&&kn,Le)for(Xn=0;Xn<Le.length;Xn++)kn=hn(Hr=Y.a=Le[Xn],en,!1,Y)&&kn;return kn},te.G=function(){if(Tt.S.G.call(this),this.c){var Le,Y=this.c;for(Le in Y.a){for(var lt=Y.a[Le],en=0;en<lt.length;en++)sn(lt[en]);delete Y.a[Le],Y.b--}}this.C=null},te.va=function(Y,Le,lt,en){return this.c.add(String(Y),Le,!1,lt,en)},te.wa=function(Y,Le,lt,en){return this.c.add(String(Y),Le,!0,lt,en)};var Se=S.JSON.stringify;function ae(){this.b=this.a=null}var nn,we=new(function(){function Y(Le,lt,en){this.f=en,this.c=Le,this.g=lt,this.b=0,this.a=null}return Y.prototype.get=function(){var Le;return 0<this.b?(this.b--,this.a=(Le=this.a).next,Le.next=null):Le=this.c(),Le},Y}())(function(){return new Ue},function(Y){Y.reset()},100);function Ce(){var Y=$n,Le=null;return Y.a&&(Le=Y.a,Y.a=Y.a.next,Y.a||(Y.b=null),Le.next=null),Le}function Ue(){this.next=this.b=this.a=null}function st(Y){S.setTimeout(function(){throw Y},0)}function Ft(Y,Le){nn||function vn(){var Y=S.Promise.resolve(void 0);nn=function(){Y.then(Gn)}}(),wn||(nn(),wn=!0),$n.add(Y,Le)}ae.prototype.add=function(Y,Le){var lt=we.get();lt.set(Y,Le),this.b?this.b.next=lt:this.a=lt,this.b=lt},Ue.prototype.set=function(Y,Le){this.a=Y,this.b=Le,this.next=null},Ue.prototype.reset=function(){this.next=this.b=this.a=null};var wn=!1,$n=new ae;function Gn(){for(var Y;Y=Ce();){try{Y.a.call(Y.b)}catch(lt){st(lt)}var Le=we;Le.g(Y),Le.b<Le.f&&(Le.b++,Y.next=Le.a,Le.a=Y)}wn=!1}function ir(Y,Le){Tt.call(this),this.b=Y||1,this.a=Le||S,this.f=M(this.Ya,this),this.g=f()}function Wt(Y){Y.aa=!1,Y.M&&(Y.a.clearTimeout(Y.M),Y.M=null)}function jt(Y,Le,lt){if("function"==P(Y))lt&&(Y=M(Y,lt));else{if(!Y||"function"!=typeof Y.handleEvent)throw Error("Invalid listener argument");Y=M(Y.handleEvent,Y)}return 2147483647<Number(Le)?-1:S.setTimeout(Y,Le||0)}function on(Y){Y.a=jt(function(){Y.a=null,Y.c&&(Y.c=!1,on(Y))},Y.h);var Le=Y.b;Y.b=null,Y.g.apply(null,Le)}T(ir,Tt),(te=ir.prototype).aa=!1,te.M=null,te.Ya=function(){if(this.aa){var Y=f()-this.g;0<Y&&Y<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-Y):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(Wt(this),this.start()))}},te.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=f())},te.G=function(){ir.S.G.call(this),Wt(this),delete this.a};var mn=function(Y){function Le(lt,en,kn){var Xn=Y.call(this)||this;return Xn.g=null!=kn?lt.bind(kn):lt,Xn.h=en,Xn.b=null,Xn.c=!1,Xn.a=null,Xn}return function _(Y,Le){function lt(){this.constructor=Y}t(Y,Le),Y.prototype=null===Le?Object.create(Le):(lt.prototype=Le.prototype,new lt)}(Le,Y),Le.prototype.f=function(lt){this.b=arguments,this.a?this.c=!0:on(this)},Le.prototype.G=function(){Y.prototype.G.call(this),this.a&&(S.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},Le}(Z);function Mt(Y){Z.call(this),this.b=Y,this.a={}}T(Mt,Z);var ke=[];function At(Y,Le,lt,en){Array.isArray(lt)||(lt&&(ke[0]=lt.toString()),lt=ke);for(var kn=0;kn<lt.length;kn++){var Xn=bt(Le,lt[kn],en||Y.handleEvent,!1,Y.b||Y);if(!Xn)break;Y.a[Xn.key]=Xn}}function Ht(Y){He(Y.a,function(Le,lt){this.a.hasOwnProperty(lt)&&Cn(Le)},Y),Y.a={}}function Yt(){this.a=!0}function sr(Y,Le,lt,en){Y.info(function(){return"XMLHTTP TEXT ("+Le+"): "+function Ar(Y,Le){if(!Y.a)return Le;if(!Le)return null;try{var lt=JSON.parse(Le);if(lt)for(Y=0;Y<lt.length;Y++)if(Array.isArray(lt[Y])){var en=lt[Y];if(!(2>en.length)){var kn=en[1];if(Array.isArray(kn)&&!(1>kn.length)){var Xn=kn[0];if("noop"!=Xn&&"stop"!=Xn&&"close"!=Xn)for(var Hr=1;Hr<kn.length;Hr++)kn[Hr]=""}}}return Se(lt)}catch(Ei){return Le}}(Y,lt)+(en?" "+en:"")})}Mt.prototype.G=function(){Mt.S.G.call(this),Ht(this)},Mt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Yt.prototype.info=function(){};var Dr=null;function dr(){return Dr=Dr||new Tt}function Kr(Y){ht.call(this,"serverreachability",Y)}function jr(Y){var Le=dr();
1Le.dispatchEvent(new Kr(Le,Y))}function Ur(Y){ht.call(this,"statevent",Y)}function Lr(Y){var Le=dr();Le.dispatchEvent(new Ur(Le,Y))}function _i(Y){ht.call(this,"timingevent",Y)}function kt(Y,Le){if("function"!=P(Y))throw Error("Fn must not be null and must be a function");return S.setTimeout(function(){Y()},Le)}T(Kr,ht),T(Ur,ht),T(_i,ht);var an={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},Dn={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function Bn(){}function Qt(){}Bn.prototype.a=null;var or,En={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function Hn(){ht.call(this,"d")}function er(){ht.call(this,"c")}function wr(){}function Nr(Y,Le,lt,en){this.g=Y,this.c=Le,this.f=lt,this.T=en||1,this.J=new Mt(this),this.P=kr,this.R=new ir(Y=ie?125:void 0),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}T(Hn,ht),T(er,ht),T(wr,Bn),or=new wr;var kr=45e3,ei={},oi={};function ui(Y,Le,lt){Y.H=1,Y.i=Mi(xi(Le)),Y.j=lt,Y.I=!0,Yr(Y,null)}function Yr(Y,Le){Y.u=f(),ci(Y),Y.l=xi(Y.i);var lt=Y.l,en=Y.T;Array.isArray(en)||(en=[String(en)]),Wr(lt.b,"t",en),Y.D=0,Y.a=ao(Y.g,Y.g.C?Le:null),0<Y.O&&(Y.F=new mn(M(Y.Ca,Y,Y.a),Y.O)),At(Y.J,Y.a,"readystatechange",Y.Wa),Le=Y.B?ge(Y.B):{},Y.j?(Y.m||(Y.m="POST"),Le["Content-Type"]="application/x-www-form-urlencoded",Y.a.ba(Y.l,Y.m,Y.j,Le)):(Y.m="GET",Y.a.ba(Y.l,Y.m,null,Le)),jr(1),function un(Y,Le,lt,en,kn,Xn){Y.info(function(){if(Y.a)if(Xn)for(var Hr="",Ei=Xn.split("&"),vi=0;vi<Ei.length;vi++){var ms=Ei[vi].split("=");if(1<ms.length){var Fi=ms[0];ms=ms[1];var vs=Fi.split("_");Hr=2<=vs.length&&"type"==vs[1]?Hr+(Fi+"=")+ms+"&":Hr+(Fi+"=redacted&")}}else Hr=null;else Hr=Xn;return"XMLHTTP REQ ("+en+") [attempt "+kn+"]: "+Le+"\n"+lt+"\n"+Hr})}(Y.c,Y.m,Y.l,Y.f,Y.T,Y.j)}function Ci(Y,Le,lt){for(var en=!0;!Y.A&&Y.D<lt.length;){var kn=Ji(Y,lt);if(kn==oi){4==Le&&(Y.h=4,Lr(14),en=!1),sr(Y.c,Y.f,null,"[Incomplete Response]");break}if(kn==ei){Y.h=4,Lr(15),sr(Y.c,Y.f,lt,"[Invalid Chunk]"),en=!1;break}sr(Y.c,Y.f,kn,null),si(Y,kn)}4==Le&&0==lt.length&&(Y.h=1,Lr(16),en=!1),Y.b=Y.b&&en,en?0<lt.length&&!Y.W&&(Y.W=!0,(Le=Y.g).a==Y&&Le.V&&!Le.F&&(Le.c.info("Great, no buffering proxy detected. Bytes received: "+lt.length),Ws(Le),Le.F=!0)):(sr(Y.c,Y.f,lt,"[Invalid Chunked Response]"),$r(Y),Oi(Y))}function Ji(Y,Le){var lt=Y.D,en=Le.indexOf("\n",lt);return-1==en?oi:(lt=Number(Le.substring(lt,en)),isNaN(lt)?ei:(en+=1)+lt>Le.length?oi:(Le=Le.substr(en,lt),Y.D=en+lt,Le))}function ci(Y){Y.U=f()+Y.P,Gi(Y,Y.P)}function Gi(Y,Le){if(null!=Y.o)throw Error("WatchDog timer not null");Y.o=kt(M(Y.Ua,Y),Le)}function rs(Y){Y.o&&(S.clearTimeout(Y.o),Y.o=null)}function Oi(Y){0==Y.g.v||Y.A||Gs(Y.g,Y)}function $r(Y){rs(Y);var Le=Y.F;Le&&"function"==typeof Le.ja&&Le.ja(),Y.F=null,Wt(Y.R),Ht(Y.J),Y.a&&(Le=Y.a,Y.a=null,Le.abort(),Le.ja())}function si(Y,Le){try{var lt=Y.g;if(0!=lt.v&&(lt.a==Y||xn(lt.b,Y)))if(lt.I=Y.N,!Y.C&&xn(lt.b,Y)&&3==lt.v){try{var en=lt.ka.a.parse(Le)}catch(co){en=null}if(Array.isArray(en)&&3==en.length){var kn=en;if(0==kn[0])e:if(lt.j)lt.oa=kn[1],0<lt.oa-lt.P&&37500>kn[2]&&lt.H&&0==lt.o&&!lt.m&&(lt.m=kt(M(lt.Ra,lt),6e3));else{if(lt.a){if(!(lt.a.u+3e3<Y.u))break e;Qs(lt),ji(lt)}as(lt),Lr(18)}if(1>=fn(lt.b)&&lt.ea){try{lt.ea()}catch(co){}lt.ea=void 0}}else Xs(lt,11)}else if((Y.C||lt.a==Y)&&Qs(lt),!H(Le))for(Le=en=lt.ka.a.parse(Le),en=0;en<Le.length;en++)if(lt.P=(kn=Le[en])[0],kn=kn[1],2==lt.v)if("c"==kn[0]){lt.J=kn[1],lt.ga=kn[2];var Xn=kn[3];null!=Xn&&(lt.ha=Xn,lt.c.info("VER="+lt.ha));var Hr=kn[4];null!=Hr&&(lt.pa=Hr,lt.c.info("SVER="+lt.pa));var Ei=kn[5];if(null!=Ei&&"number"==typeof Ei&&0<Ei){var vi=1.5*Ei;lt.D=vi,lt.c.info("backChannelRequestTimeoutMs_="+vi)}vi=lt;var ms=Y.a;if(ms){var Fi=ms.a?ms.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(Fi){var vs=vi.b;!vs.a&&(z(Fi,"spdy")||z(Fi,"quic")||z(Fi,"h2"))&&(vs.f=vs.g,vs.a=new Set,vs.b&&(Er(vs,vs.b),vs.b=null))}if(vi.A){var Ys=ms.a?ms.a.getResponseHeader("X-HTTP-Session-Id"):null;Ys&&(vi.na=Ys,hi(vi.B,vi.A,Ys))}}lt.v=3,lt.f&&lt.f.ta(),lt.V&&(lt.N=f()-Y.u,lt.c.info("Handshake RTT: "+lt.N+"ms"));var Vs=Y;if((vi=lt).la=js(vi,vi.C?vi.ga:null,vi.fa),Vs.C){gr(vi.b,Vs);var Vi=Vs,wi=vi.D;wi&&Vi.setTimeout(wi),Vi.o&&(rs(Vi),ci(Vi)),vi.a=Vs}else Ms(vi);0<lt.g.length&&ps(lt)}else"stop"!=kn[0]&&"close"!=kn[0]||Xs(lt,7);else 3==lt.v&&("stop"==kn[0]||"close"==kn[0]?"stop"==kn[0]?Xs(lt,7):mi(lt):"noop"!=kn[0]&&lt.f&&lt.f.sa(kn),lt.o=0);jr(4)}catch(co){}}function Yi(Y,Le){if(Y.forEach&&"function"==typeof Y.forEach)Y.forEach(Le,void 0);else if(C(Y)||"string"==typeof Y)se(Y,Le,void 0);else{if(Y.L&&"function"==typeof Y.L)var lt=Y.L();else if(Y.K&&"function"==typeof Y.K)lt=void 0;else if(C(Y)||"string"==typeof Y){lt=[];for(var en=Y.length,kn=0;kn<en;kn++)lt.push(kn)}else for(kn in lt=[],en=0,Y)lt[en++]=kn;en=function cs(Y){if(Y.K&&"function"==typeof Y.K)return Y.K();if("string"==typeof Y)return Y.split("");
vendor: 5,063 bytes, line 1
1if(C(Y)){for(var Le=[],lt=Y.length,en=0;en<lt;en++)Le.push(Y[en]);return Le}for(en in Le=[],lt=0,Y)Le[lt++]=Y[en];return Le}(Y),kn=en.length;for(var Xn=0;Xn<kn;Xn++)Le.call(void 0,en[Xn],lt&&lt[Xn],Y)}}function is(Y,Le){this.b={},this.a=[],this.c=0;var lt=arguments.length;if(1<lt){if(lt%2)throw Error("Uneven number of arguments");for(var en=0;en<lt;en+=2)this.set(arguments[en],arguments[en+1])}else if(Y)if(Y instanceof is)for(lt=Y.L(),en=0;en<lt.length;en++)this.set(lt[en],Y.get(lt[en]));else for(en in Y)this.set(en,Y[en])}function $i(Y){if(Y.c!=Y.a.length){for(var Le=0,lt=0;Le<Y.a.length;){var en=Y.a[Le];Hi(Y.b,en)&&(Y.a[lt++]=en),Le++}Y.a.length=lt}if(Y.c!=Y.a.length){var kn={};for(lt=Le=0;Le<Y.a.length;)Hi(kn,en=Y.a[Le])||(Y.a[lt++]=en,kn[en]=1),Le++;Y.a.length=lt}}function Hi(Y,Le){return Object.prototype.hasOwnProperty.call(Y,Le)}(te=Nr.prototype).setTimeout=function(Y){this.P=Y},te.Wa=function(Y){Y=Y.target;var Le=this.F;Le&&3==Vr(Y)?Le.f():this.Ca(Y)},te.Ca=function(Y){try{if(Y==this.a)e:{var Le=Vr(this.a),lt=this.a.ua(),en=this.a.X();if(!(3>Le||3==Le&&!ie&&!this.a.$())){this.A||4!=Le||7==lt||jr(8==lt||0>=en?3:2),rs(this);var kn=this.a.X();this.N=kn;var Xn=this.a.$();if(this.b=200==kn,function An(Y,Le,lt,en,kn,Xn,Hr){Y.info(function(){return"XMLHTTP RESP ("+en+") [ attempt "+kn+"]: "+Le+"\n"+lt+"\n"+Xn+" "+Hr})}(this.c,this.m,this.l,this.f,this.T,Le,kn),this.b){if(this.V&&!this.C){t:{if(this.a){var Hr,Ei=this.a;if((Hr=Ei.a?Ei.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!H(Hr)){var vi=Hr;break t}}vi=null}if(!vi){this.b=!1,this.h=3,Lr(12),$r(this),Oi(this);break e}sr(this.c,this.f,vi,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,si(this,vi)}this.I?(Ci(this,Le,Xn),ie&&this.b&&3==Le&&(At(this.J,this.R,"tick",this.Va),this.R.start())):(sr(this.c,this.f,Xn,null),si(this,Xn)),4==Le&&$r(this),this.b&&!this.A&&(4==Le?Gs(this.g,this):(this.b=!1,ci(this)))}else 400==kn&&0<Xn.indexOf("Unknown SID")?(this.h=3,Lr(12)):(this.h=0,Lr(13)),$r(this),Oi(this)}}}catch(ms){}},te.Va=function(){if(this.a){var Y=Vr(this.a),Le=this.a.$();this.D<Le.length&&(rs(this),Ci(this,Y,Le),this.b&&4!=Y&&ci(this))}},te.cancel=function(){this.A=!0,$r(this)},te.Ua=function(){this.o=null;var Y=f();0<=Y-this.U?(function fr(Y,Le){Y.info(function(){return"TIMEOUT: "+Le})}(this.c,this.l),2!=this.H&&(jr(3),Lr(17)),$r(this),this.h=2,Oi(this)):Gi(this,this.U-Y)},(te=is.prototype).K=function(){$i(this);for(var Y=[],Le=0;Le<this.a.length;Le++)Y.push(this.b[this.a[Le]]);return Y},te.L=function(){return $i(this),this.a.concat()},te.get=function(Y,Le){return Hi(this.b,Y)?this.b[Y]:Le},te.set=function(Y,Le){Hi(this.b,Y)||(this.c++,this.a.push(Y)),this.b[Y]=Le},te.forEach=function(Y,Le){for(var lt=this.L(),en=0;en<lt.length;en++){var kn=lt[en],Xn=this.get(kn);Y.call(Le,Xn,kn,this)}};var ai=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function zi(Y,Le){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,Y instanceof zi){this.a=void 0!==Le?Le:Y.a,ss(this,Y.f),this.j=Y.j,hs(this,Y.c),fs(this,Y.h),this.g=Y.g,Le=Y.b;var lt=new cr;lt.c=Le.c,Le.a&&(lt.a=new is(Le.a),lt.b=Le.b),bs(this,lt),this.i=Y.i}else Y&&(lt=String(Y).match(ai))?(this.a=!!Le,ss(this,lt[1]||"",!0),this.j=Ii(lt[2]||""),hs(this,lt[3]||"",!0),fs(this,lt[4]),this.g=Ii(lt[5]||"",!0),bs(this,lt[6]||"",!0),this.i=Ii(lt[7]||"")):(this.a=!!Le,this.b=new cr(null,this.a))}function xi(Y){return new zi(Y)}function ss(Y,Le,lt){Y.f=lt?Ii(Le,!0):Le,Y.f&&(Y.f=Y.f.replace(/:$/,""))}function hs(Y,Le,lt){Y.c=lt?Ii(Le,!0):Le}function fs(Y,Le){if(Le){if(Le=Number(Le),isNaN(Le)||0>Le)throw Error("Bad port number "+Le);Y.h=Le}else Y.h=null}function bs(Y,Le,lt){Le instanceof cr?(Y.b=Le,function Ae(Y,Le){Le&&!Y.f&&(ur(Y),Y.c=null,Y.a.forEach(function(lt,en){var kn=en.toLowerCase();en!=kn&&(_r(this,en),Wr(this,kn,lt))},Y)),Y.f=Le}(Y.b,Y.a)):(lt||(Le=tt(Le,Mn)),Y.b=new cr(Le,Y.a))}function hi(Y,Le,lt){Y.b.set(Le,lt)}function Mi(Y){return hi(Y,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^f()).toString(36)),Y}function Ii(Y,Le){return Y?Le?decodeURI(Y.replace(/%25/g,"%2525")):decodeURIComponent(Y):""}function tt(Y,Le,lt){return"string"==typeof Y?(Y=encodeURI(Y).replace(Le,Xe),lt&&(Y=Y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y):null}function Xe(Y){return"%"+((Y=Y.charCodeAt(0))>>4&15).toString(16)+(15&Y).toString(16)}zi.prototype.toString=function(){var Y=[],Le=this.f;Le&&Y.push(tt(Le,Ut,!0),":");var lt=this.c;return(lt||"file"==Le)&&(Y.push("//"),(Le=this.j)&&Y.push(tt(Le,Ut,!0),"@"),Y.push(encodeURIComponent(String(lt)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(lt=this.h)&&Y.push(":",String(lt))),(lt=this.g)&&(this.c&&"/"!=lt.charAt(0)&&Y.push("/"),Y.push(tt(lt,"/"==lt.charAt(0)?_n:gn,!0))),(lt=this.b.toString())&&Y.push("?",lt),(lt=this.i)&&Y.push("#",tt(lt,qn)),Y.join("")};var Ut=/[#\/\?@]/g,gn=/[#\?:]/g,_n=/[#\?]/g,Mn=/[#\?@]/g,qn=/#/g;function cr(Y,Le){this.b=this.a=null,this.c=Y||null,this.f=!!Le}
1function ur(Y){Y.a||(Y.a=new is,Y.b=0,Y.c&&function Zi(Y,Le){if(Y){Y=Y.split("&");for(var lt=0;lt<Y.length;lt++){var en=Y[lt].indexOf("="),kn=null;if(0<=en){var Xn=Y[lt].substring(0,en);kn=Y[lt].substring(en+1)}else Xn=Y[lt];Le(Xn,kn?decodeURIComponent(kn.replace(/\+/g," ")):"")}}}(Y.c,function(Le,lt){Y.add(decodeURIComponent(Le.replace(/\+/g," ")),lt)}))}function _r(Y,Le){ur(Y),Le=le(Y,Le),Hi(Y.a.b,Le)&&(Y.c=null,Y.b-=Y.a.get(Le).length,Hi((Y=Y.a).b,Le)&&(delete Y.b[Le],Y.c--,Y.a.length>2*Y.c&&$i(Y)))}function Mr(Y,Le){return ur(Y),Le=le(Y,Le),Hi(Y.a.b,Le)}function Wr(Y,Le,lt){_r(Y,Le),0<lt.length&&(Y.c=null,Y.a.set(le(Y,Le),I(lt)),Y.b+=lt.length)}function le(Y,Le){return Le=String(Le),Y.f&&(Le=Le.toLowerCase()),Le}function be(Y,Le){this.b=Y,this.a=Le}function Me(Y){this.g=Y||dt,Y=S.PerformanceNavigationTiming?0<(Y=S.performance.getEntriesByType("navigation")).length&&("hq"==Y[0].nextHopProtocol||"h2"==Y[0].nextHopProtocol):!!(S.ia&&S.ia.ya&&S.ia.ya()&&S.ia.ya().qb),this.f=Y?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(te=cr.prototype).add=function(Y,Le){ur(this),this.c=null,Y=le(this,Y);var lt=this.a.get(Y);return lt||this.a.set(Y,lt=[]),lt.push(Le),this.b+=1,this},te.forEach=function(Y,Le){ur(this),this.a.forEach(function(lt,en){se(lt,function(kn){Y.call(Le,kn,en,this)},this)},this)},te.L=function(){ur(this);for(var Y=this.a.K(),Le=this.a.L(),lt=[],en=0;en<Le.length;en++)for(var kn=Y[en],Xn=0;Xn<kn.length;Xn++)lt.push(Le[en]);return lt},te.K=function(Y){ur(this);var Le=[];if("string"==typeof Y)Mr(this,Y)&&(Le=k(Le,this.a.get(le(this,Y))));else{Y=this.a.K();for(var lt=0;lt<Y.length;lt++)Le=k(Le,Y[lt])}return Le},te.set=function(Y,Le){return ur(this),this.c=null,Mr(this,Y=le(this,Y))&&(this.b-=this.a.get(Y).length),this.a.set(Y,[Le]),this.b+=1,this},te.get=function(Y,Le){return Y&&0<(Y=this.K(Y)).length?String(Y[0]):Le},te.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var Y=[],Le=this.a.L(),lt=0;lt<Le.length;lt++){var en=Le[lt],kn=encodeURIComponent(String(en));en=this.K(en);for(var Xn=0;Xn<en.length;Xn++){var Hr=kn;""!==en[Xn]&&(Hr+="="+encodeURIComponent(String(en[Xn]))),Y.push(Hr)}}return this.c=Y.join("&")};var dt=10;function rn(Y){return!!Y.b||!!Y.a&&Y.a.size>=Y.f}function fn(Y){return Y.b?1:Y.a?Y.a.size:0}function xn(Y,Le){return Y.b?Y.b==Le:!!Y.a&&Y.a.has(Le)}function Er(Y,Le){Y.a?Y.a.add(Le):Y.b=Le}function gr(Y,Le){Y.b&&Y.b==Le?Y.b=null:Y.a&&Y.a.has(Le)&&Y.a.delete(Le)}function hr(Y){var Le,lt;if(null!=Y.b)return Y.c.concat(Y.b.s);if(null!=Y.a&&0!==Y.a.size){var en=Y.c;try{for(var kn=x(Y.a.values()),Xn=kn.next();!Xn.done;Xn=kn.next())en=en.concat(Xn.value.s)}catch(Ei){Le={error:Ei}}finally{try{Xn&&!Xn.done&&(lt=kn.return)&&lt.call(kn)}finally{if(Le)throw Le.error}}return en}return I(Y.c)}function pr(){}function zr(){this.a=new pr}function ii(Y,Le,lt){var en=lt||"";try{Yi(Y,function(kn,Xn){var Hr=kn;L(kn)&&(Hr=Se(kn)),Le.push(en+Xn+"="+encodeURIComponent(Hr))})}catch(kn){throw Le.push(en+"type="+encodeURIComponent("_badmap")),kn}}function Je(Y,Le,lt,en,kn){try{Le.onload=null,Le.onerror=null,Le.onabort=null,Le.ontimeout=null,kn(en)}catch(Xn){}}Me.prototype.cancel=function(){var Y,Le;if(this.c=hr(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var lt=x(this.a.values()),en=lt.next();!en.done;en=lt.next())en.value.cancel()}catch(Xn){Y={error:Xn}}finally{try{en&&!en.done&&(Le=lt.return)&&Le.call(lt)}finally{if(Y)throw Y.error}}this.a.clear()}},pr.prototype.stringify=function(Y){return S.JSON.stringify(Y,void 0)},pr.prototype.parse=function(Y){return S.JSON.parse(Y,void 0)};var Ve=S.JSON.parse;function Be(Y){Tt.call(this),this.headers=new is,this.H=Y||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=It,this.D=this.F=!1}T(Be,Tt);var It="",Wn=/^https?$/i,Sr=["POST","PUT"];function et(Y){return"content-type"==Y.toLowerCase()}function de(Y,Le){Y.b=!1,Y.a&&(Y.g=!0,Y.a.abort(),Y.g=!1),Y.f=Le,Y.h=5,Ze(Y),Jn(Y)}function Ze(Y){Y.u||(Y.u=!0,Y.dispatchEvent("complete"),Y.dispatchEvent("error"))}function Xt(Y){if(Y.b&&void 0!==Q&&(!Y.s[1]||4!=Vr(Y)||2!=Y.X()))if(Y.l&&4==Vr(Y))jt(Y.za,0,Y);else if(Y.dispatchEvent("readystatechange"),4==Vr(Y)){Y.b=!1;try{var en,Le=Y.X();e:switch(Le){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var lt=!0;break e;default:lt=!1}if(!(en=lt)){var kn;if(kn=0===Le){var Xn=String(Y.B).match(ai)[1]||null;if(!Xn&&S.self&&S.self.location){var Hr=S.self.location.protocol;Xn=Hr.substr(0,Hr.length-1)}kn=!Wn.test(Xn?Xn.toLowerCase():"")}en=kn}if(en)Y.dispatchEvent("complete"),Y.dispatchEvent("success");else{Y.h=6;try{var Ei=2<Vr(Y)?Y.a.statusText:""}catch(vi){Ei=""}Y.f=Ei+" ["+Y.X()+"]",Ze(Y)}}finally{Jn(Y)}}}function Jn(Y,Le){if(Y.a){Cr(Y);var lt=Y.a,en=Y.s[0]?W:null;Y.a=null,Y.s=null,Le||Y.dispatchEvent("ready");try{lt.onreadystatechange=en}catch(kn){}}}function Cr(Y){Y.a&&Y.D&&(Y.a.ontimeout=null),Y.m&&(S.clearTimeout(Y.m),Y.m=null)}function Vr(Y){return Y.a?Y.a.readyState:0}function Zn(Y,Le,lt){e:{for(en in lt){var en=!1;break e}en=!0}en||(lt=function Jr(Y){var Le="";return He(Y,function(lt,en){Le+=en,Le+=":",Le+=lt,Le+="\r\n"}),Le}(lt),"string"==typeof Y?null!=lt&&encodeURIComponent(String(lt)):hi(Y,Le,lt))}
1function qr(Y,Le,lt){return lt&&lt.internalChannelParams&&lt.internalChannelParams[Y]||Le}function Pi(Y){this.pa=0,this.g=[],this.c=new Yt,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=qr("failFast",!1,Y),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=qr("baseRetryDelayMs",5e3,Y),this.Ma=qr("retryDelaySeedMs",1e4,Y),this.Ja=qr("forwardChannelMaxRetries",2,Y),this.ma=qr("forwardChannelRequestTimeoutMs",2e4,Y),this.Ka=Y&&Y.g||void 0,this.D=void 0,this.C=Y&&Y.supportsCrossDomainXhr||!1,this.J="",this.b=new Me(Y&&Y.concurrentRequestLimit),this.ka=new zr,this.da=Y&&Y.fastHandshake||!1,this.Ga=Y&&Y.b||!1,Y&&Y.f&&(this.c.a=!1),Y&&Y.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&Y&&Y.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function mi(Y){if(Ki(Y),3==Y.v){var Le=Y.R++,lt=xi(Y.B);hi(lt,"SID",Y.J),hi(lt,"RID",Le),hi(lt,"TYPE","terminate"),ws(Y,lt),(Le=new Nr(Y,Y.c,Le,void 0)).H=2,Le.i=Mi(xi(lt)),lt=!1,S.navigator&&S.navigator.sendBeacon&&(lt=S.navigator.sendBeacon(Le.i.toString(),"")),!lt&&S.Image&&((new Image).src=Le.i,lt=!0),lt||(Le.a=ao(Le.g,null),Le.a.ba(Le.i)),Le.u=f(),ci(Le)}Js(Y)}function ji(Y){Y.a&&(Ws(Y),Y.a.cancel(),Y.a=null)}function Ki(Y){ji(Y),Y.j&&(S.clearTimeout(Y.j),Y.j=null),Qs(Y),Y.b.cancel(),Y.h&&("number"==typeof Y.h&&S.clearTimeout(Y.h),Y.h=null)}function Ui(Y,Le){Y.g.push(new be(Y.La++,Le)),3==Y.v&&ps(Y)}function ps(Y){rn(Y.b)||Y.h||(Y.h=!0,Ft(Y.Ba,Y),Y.u=0)}function Xi(Y,Le){var lt;lt=Le?Le.f:Y.R++;var en=xi(Y.B);hi(en,"SID",Y.J),hi(en,"RID",lt),hi(en,"AID",Y.P),ws(Y,en),Y.i&&Y.l&&Zn(en,Y.i,Y.l),lt=new Nr(Y,Y.c,lt,Y.u+1),null===Y.i&&(lt.B=Y.l),Le&&(Y.g=Le.s.concat(Y.g)),Le=gs(Y,lt,1e3),lt.setTimeout(Math.round(.5*Y.ma)+Math.round(.5*Y.ma*Math.random())),Er(Y.b,lt),ui(lt,en,Le)}function ws(Y,Le){Y.f&&Yi({},function(lt,en){hi(Le,en,lt)})}function gs(Y,Le,lt){lt=Math.min(Y.g.length,lt);var en=Y.f?M(Y.f.Ha,Y.f,Y):null;e:for(var kn=Y.g,Xn=-1;;){var Hr=["count="+lt];-1==Xn?0<lt?Hr.push("ofs="+(Xn=kn[0].b)):Xn=0:Hr.push("ofs="+Xn);for(var Ei=!0,vi=0;vi<lt;vi++){var ms=kn[vi].b,Fi=kn[vi].a;if(0>(ms-=Xn))Xn=Math.max(0,kn[vi].b-100),Ei=!1;else try{ii(Fi,Hr,"req"+ms+"_")}catch(vs){en&&en(Fi)}}if(Ei){en=Hr.join("&");break e}}return Y=Y.g.splice(0,lt),Le.s=Y,en}function Ms(Y){Y.a||Y.j||(Y.U=1,Ft(Y.Aa,Y),Y.o=0)}function as(Y){return!(Y.a||Y.j||3<=Y.o||(Y.U++,Y.j=kt(M(Y.Aa,Y),Bs(Y,Y.o)),Y.o++,0))}function Ws(Y){null!=Y.s&&(S.clearTimeout(Y.s),Y.s=null)}function Ro(Y){Y.a=new Nr(Y,Y.c,"rpc",Y.U),null===Y.i&&(Y.a.B=Y.l),Y.a.O=0;var Le=xi(Y.la);hi(Le,"RID","rpc"),hi(Le,"SID",Y.J),hi(Le,"CI",Y.H?"0":"1"),hi(Le,"AID",Y.P),ws(Y,Le),hi(Le,"TYPE","xmlhttp"),Y.i&&Y.l&&Zn(Le,Y.i,Y.l),Y.D&&Y.a.setTimeout(Y.D);var lt=Y.a;Y=Y.ga,lt.H=1,lt.i=Mi(xi(Le)),lt.j=null,lt.I=!0,Yr(lt,Y)}function Qs(Y){null!=Y.m&&(S.clearTimeout(Y.m),Y.m=null)}function Gs(Y,Le){var lt=null;if(Y.a==Le){Qs(Y),Ws(Y),Y.a=null;var en=2}else{if(!xn(Y.b,Le))return;lt=Le.s,gr(Y.b,Le),en=1}if(Y.I=Le.N,0!=Y.v)if(Le.b)if(1==en){lt=Le.j?Le.j.length:0,Le=f()-Le.u;var kn=Y.u;(en=dr()).dispatchEvent(new _i(en,lt,Le,kn)),ps(Y)}else Ms(Y);else if(3==(kn=Le.h)||0==kn&&0<Y.I||!(1==en&&function qi(Y,Le){return!(fn(Y.b)>=Y.b.f-(Y.h?1:0)||(Y.h?(Y.g=Le.s.concat(Y.g),0):1==Y.v||2==Y.v||Y.u>=(Y.Ia?0:Y.Ja)||(Y.h=kt(M(Y.Ba,Y,Le),Bs(Y,Y.u)),Y.u++,0)))}(Y,Le)||2==en&&as(Y)))switch(lt&&0<lt.length&&(Le=Y.b,Le.c=Le.c.concat(lt)),kn){case 1:Xs(Y,5);break;case 4:Xs(Y,10);break;case 3:Xs(Y,6);break;default:Xs(Y,2)}}function Bs(Y,Le){var lt=Y.Fa+Math.floor(Math.random()*Y.Ma);return Y.f||(lt*=2),lt*Le}function Xs(Y,Le){if(Y.c.info("Error code "+Le),2==Le){var lt=null;Y.f&&(lt=null);var en=M(Y.Xa,Y);lt||(lt=new zi("//www.google.com/images/cleardot.gif"),S.location&&"http"==S.location.protocol||ss(lt,"https"),Mi(lt)),function Or(Y,Le){var lt=new Yt;if(S.Image){var en=new Image;en.onload=V(Je,lt,en,"TestLoadImage: loaded",!0,Le),en.onerror=V(Je,lt,en,"TestLoadImage: error",!1,Le),en.onabort=V(Je,lt,en,"TestLoadImage: abort",!1,Le),en.ontimeout=V(Je,lt,en,"TestLoadImage: timeout",!1,Le),S.setTimeout(function(){en.ontimeout&&en.ontimeout()},1e4),en.src=Y}else Le(!1)}(lt.toString(),en)}else Lr(2);Y.v=0,Y.f&&Y.f.ra(Le),Js(Y),Ki(Y)}function Js(Y){Y.v=0,Y.I=-1,Y.f&&((0!=hr(Y.b).length||0!=Y.g.length)&&(Y.b.c.length=0,I(Y.g),Y.g.length=0),Y.f.qa())}function js(Y,Le,lt){var en=function Ti(Y){return Y instanceof zi?xi(Y):new zi(Y,void 0)}(lt);if(""!=en.c)Le&&hs(en,Le+"."+en.c),fs(en,en.h);else{var kn=S.location;en=function os(Y,Le,lt,en){var kn=new zi(null,void 0);
1return Y&&ss(kn,Y),Le&&hs(kn,Le),lt&&fs(kn,lt),en&&(kn.g=en),kn}(kn.protocol,Le?Le+"."+kn.hostname:kn.hostname,+kn.port,lt)}return Y.W&&He(Y.W,function(Xn,Hr){hi(en,Hr,Xn)}),lt=Y.na,(Le=Y.A)&&lt&&hi(en,Le,lt),hi(en,"VER",Y.ha),ws(Y,en),en}function ao(Y,Le){if(Le&&!Y.C)throw Error("Can't create secondary domain capable XhrIo object.");return(Le=new Be(Y.Ka)).F=Y.C,Le}function Os(){}function mo(){if(K&&!(10<=Number(it)))throw Error("Environmental error: no available transport.")}function Di(Y,Le){Tt.call(this),this.a=new Pi(Le),this.l=Y,this.b=Le&&Le.messageUrlParams||null,Y=Le&&Le.messageHeaders||null,Le&&Le.clientProtocolHeaderRequired&&(Y?Y["X-Client-Protocol"]="webchannel":Y={"X-Client-Protocol":"webchannel"}),this.a.l=Y,Y=Le&&Le.initMessageHeaders||null,Le&&Le.messageContentType&&(Y?Y["X-WebChannel-Content-Type"]=Le.messageContentType:Y={"X-WebChannel-Content-Type":Le.messageContentType}),Le&&Le.a&&(Y?Y["X-WebChannel-Client-Profile"]=Le.a:Y={"X-WebChannel-Client-Profile":Le.a}),this.a.O=Y,(Y=Le&&Le.httpHeadersOverwriteParam)&&!H(Y)&&(this.a.i=Y),this.h=Le&&Le.supportsCrossDomainXhr||!1,this.g=Le&&Le.sendRawJson||!1,(Le=Le&&Le.httpSessionIdParam)&&!H(Le)&&(this.a.A=Le,null!==(Y=this.b)&&Le in Y&&Le in(Y=this.b)&&delete Y[Le]),this.f=new ki(this)}function xo(Y){Hn.call(this);var Le=Y.__sm__;if(Le){e:{for(var lt in Le){Y=lt;break e}Y=void 0}(this.c=Y)?(Y=this.c,this.data=null!==Le&&Y in Le?Le[Y]:void 0):this.data=Le}else this.data=Y}function Ir(){er.call(this),this.status=1}function ki(Y){this.a=Y}(te=Be.prototype).ba=function(Y,Le,lt,en){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+Y);Le=Le?Le.toUpperCase():"GET",this.B=Y,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=function Yn(Y){var Le;return(Le=Y.a)||(Le=Y.a={}),Le}(this.H?this.H:or),this.a.onreadystatechange=M(this.za,this);try{this.A=!0,this.a.open(Le,String(Y),!0),this.A=!1}catch(Xn){return void de(this,Xn)}Y=lt||"";var kn=new is(this.headers);en&&Yi(en,function(Xn,Hr){kn.set(Hr,Xn)}),en=function y(Y){e:{for(var Le=et,lt=Y.length,en="string"==typeof Y?Y.split(""):Y,kn=0;kn<lt;kn++)if(kn in en&&Le.call(void 0,en[kn],kn,Y)){Le=kn;break e}Le=-1}return 0>Le?null:"string"==typeof Y?Y.charAt(Le):Y[Le]}(kn.L()),lt=S.FormData&&Y instanceof S.FormData,!(0<=$(Sr,Le))||en||lt||kn.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),kn.forEach(function(Xn,Hr){this.a.setRequestHeader(Hr,Xn)},this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Cr(this),0<this.o&&((this.D=function ue(Y){return K&&Lt(9)&&"number"==typeof Y.timeout&&void 0!==Y.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=M(this.xa,this)):this.m=jt(this.xa,this.o,this)),this.l=!0,this.a.send(Y),this.l=!1}catch(Xn){de(this,Xn)}},te.xa=function(){void 0!==Q&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},te.abort=function(Y){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=Y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Jn(this))},te.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),Jn(this,!0)),Be.S.G.call(this)},te.za=function(){this.j||(this.A||this.l||this.g?Xt(this):this.Ta())},te.Ta=function(){Xt(this)},te.X=function(){try{return 2<Vr(this)?this.a.status:-1}catch(Y){return-1}},te.$=function(){try{return this.a?this.a.responseText:""}catch(Y){return""}},te.Na=function(Y){if(this.a){var Le=this.a.responseText;return Y&&0==Le.indexOf(Y)&&(Le=Le.substring(Y.length)),Ve(Le)}},te.ua=function(){return this.h},te.Qa=function(){return"string"==typeof this.f?this.f:String(this.f)},(te=Pi.prototype).ha=8,te.v=1,te.Ba=function(Y){if(this.h)if(this.h=null,1==this.v){if(!Y){this.R=Math.floor(1e5*Math.random()),Y=this.R++;var en,Le=new Nr(this,this.c,Y,void 0),lt=this.l;if(this.O&&(lt?b(lt=ge(lt),this.O):lt=this.O),null===this.i&&(Le.B=lt),this.da)e:{for(var kn=en=0;kn<this.g.length;kn++){var Xn=this.g[kn];if(void 0===(Xn="__data__"in Xn.a&&"string"==typeof(Xn=Xn.a.__data__)?Xn.length:void 0))break;if(4096<(en+=Xn)){en=kn;break e}
1if(4096===en||kn===this.g.length-1){en=kn+1;break e}}en=1e3}else en=1e3;en=gs(this,Le,en),hi(kn=xi(this.B),"RID",Y),hi(kn,"CVER",22),this.A&&hi(kn,"X-HTTP-Session-Id",this.A),ws(this,kn),this.i&&lt&&Zn(kn,this.i,lt),Er(this.b,Le),this.Ga&&hi(kn,"TYPE","init"),this.da?(hi(kn,"$req",en),hi(kn,"SID","null"),Le.V=!0,ui(Le,kn,null)):ui(Le,kn,en),this.v=2}}else 3==this.v&&(Y?Xi(this,Y):0==this.g.length||rn(this.b)||Xi(this))},te.Aa=function(){if(this.j=null,Ro(this),this.V&&!(this.F||null==this.a||0>=this.N)){var Y=2*this.N;this.c.info("BP detection timer enabled: "+Y),this.s=kt(M(this.Sa,this),Y)}},te.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,ji(this),Ro(this))},te.Ra=function(){null!=this.m&&(this.m=null,ji(this),as(this),Lr(19))},te.Xa=function(Y){Y?(this.c.info("Successfully pinged google.com"),Lr(2)):(this.c.info("Failed to ping google.com"),Lr(1))},(te=Os.prototype).ta=function(){},te.sa=function(){},te.ra=function(){},te.qa=function(){},te.Ha=function(){},mo.prototype.a=function(Y,Le){return new Di(Y,Le)},T(Di,Tt),(te=Di.prototype).addEventListener=function(Y,Le,lt,en){Di.S.addEventListener.call(this,Y,Le,lt,en)},te.removeEventListener=function(Y,Le,lt,en){Di.S.removeEventListener.call(this,Y,Le,lt,en)},te.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var Y=this.a,Le=this.l,lt=this.b||void 0;Lr(0),Y.fa=Le,Y.W=lt||{},Y.H=Y.T,Y.B=js(Y,null,Y.fa),ps(Y)},te.close=function(){mi(this.a)},te.Pa=function(Y){if("string"==typeof Y){var Le={};Le.__data__=Y,Ui(this.a,Le)}else this.g?((Le={}).__data__=Se(Y),Ui(this.a,Le)):Ui(this.a,Y)},te.G=function(){this.a.f=null,delete this.f,mi(this.a),delete this.a,Di.S.G.call(this)},T(xo,Hn),T(Ir,er),T(ki,Os),ki.prototype.ta=function(){this.a.dispatchEvent("a")},ki.prototype.sa=function(Y){this.a.dispatchEvent(new xo(Y))},ki.prototype.ra=function(Y){this.a.dispatchEvent(new Ir(Y))},ki.prototype.qa=function(){this.a.dispatchEvent("b")},mo.prototype.createWebChannel=mo.prototype.a,Di.prototype.send=Di.prototype.Pa,Di.prototype.open=Di.prototype.Oa,Di.prototype.close=Di.prototype.close,an.NO_ERROR=0,an.TIMEOUT=8,an.HTTP_ERROR=6,Dn.COMPLETE="complete",Qt.EventType=En,En.OPEN="a",En.CLOSE="b",En.ERROR="c",En.MESSAGE="d",Tt.prototype.listen=Tt.prototype.va,Be.prototype.listenOnce=Be.prototype.wa,Be.prototype.getLastError=Be.prototype.Qa,Be.prototype.getLastErrorCode=Be.prototype.ua,Be.prototype.getStatus=Be.prototype.X,Be.prototype.getResponseJson=Be.prototype.Na,Be.prototype.getResponseText=Be.prototype.$,Be.prototype.send=Be.prototype.ba;var Mo=function(){return new mo},Zs=an,Us=Dn,Ns=Qt,lo=Be;const es={createWebChannelTransport:Mo,ErrorCode:an,EventType:Dn,WebChannel:Qt,XhrIo:Be}},393:(xe,q,c)=>{"use strict";c.d(q,{N1:()=>He});var t=c(7582),x=c(2916),re=c(3753),te={error:"cordova_not_available"},Q={error:"plugin_not_installed"};function S(ge){if("undefined"!=typeof window&&window.angular){var b=window.document,p=window.angular.element(b.querySelector("[ng-app]")||b.body).injector();if(p)return p.get("$q")(function(N,K){ge(N,K)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(N,K){ge(N,K)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function W(ge,O,b,p){void 0===p&&(p={});var A,N,K=S(function(J,ie){A=p.destruct?R(ge,O,b,p,function(){for(var he=[],Oe=0;Oe<arguments.length;Oe++)he[Oe]=arguments[Oe];return J(he)},function(){for(var he=[],Oe=0;Oe<arguments.length;Oe++)he[Oe]=arguments[Oe];return ie(he)}):R(ge,O,b,p,J,ie),N=ie});return A&&A.error&&(K.catch(function(){}),"function"==typeof N&&N(A.error)),K}function P(ge,O,b,p){return void 0===p&&(p={}),S(function(A,N){var K=R(ge,O,b,p);K?K.error?N(K.error):K.then&&K.then(A).catch(N):N({error:"unexpected_error"})})}function C(ge,O,b,p){return void 0===p&&(p={}),new x.y(function(A){var N;return N=p.destruct?R(ge,O,b,p,function(){for(var K=[],J=0;J<arguments.length;J++)K[J]=arguments[J];return A.next(K)},function(){for(var K=[],J=0;J<arguments.length;J++)K[J]=arguments[J];return A.error(K)}):R(ge,O,b,p,A.next.bind(A),A.error.bind(A)),N&&N.error&&(A.error(N.error),A.complete()),function(){try{if(p.clearFunction)return p.clearWithArgs?R(ge,p.clearFunction,b,p,A.next.bind(A),A.error.bind(A)):R(ge,p.clearFunction,[])}catch(K){console.warn("Unable to clear the previous observable watch for",ge.constructor.getPluginName(),O),console.warn(K)}}})}function L(ge,O){return O="undefined"!=typeof window&&O?V(window,O):O||("undefined"!=typeof window?window:{}),(0,re.R)(O,ge)}function E(ge,O,b){var p,A,N;return"string"==typeof ge?p=ge:(p=ge.constructor.getPluginRef(),b=ge.constructor.getPluginName(),N=ge.constructor.getPluginInstallName()),!(!(A=M(p))||O&&void 0===A[O])||("undefined"!=typeof window&&window.cordova?(function f(ge,O,b){console.warn(b?"Native: tried calling "+ge+"."+b+", but the "+ge+" plugin is not installed.":"Native: tried accessing the "+ge+" plugin but it's not installed."),O&&console.warn("Install the "+ge+" plugin: 'ionic cordova plugin add "+O+"'")}(b,N,O),Q):(function T(ge,O){"undefined"==typeof process&&console.warn(O?"Native: tried calling "+ge+"."+O+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+ge+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}(b,O),te))}function R(ge,O,b,p,A,N){void 0===p&&(p={}),b=function v(ge,O,b,p){if(void 0===O&&(O={}),O.sync)return ge;if("reverse"===O.callbackOrder)ge.unshift(p),ge.unshift(b);else if("node"===O.callbackStyle)ge.push(function(J,ie){J?p(J):b(ie)});else if("object"===O.callbackStyle&&O.successName&&O.errorName){var A={};A[O.successName]=b,A[O.errorName]=p,ge.push(A)}else if(void 0!==O.successIndex||void 0!==O.errorIndex){var N=function(){O.successIndex>ge.length?ge[O.successIndex]=b:ge.splice(O.successIndex,0,b)},K=function(){O.errorIndex>ge.length?ge[O.errorIndex]=p:ge.splice(O.errorIndex,0,p)};O.successIndex>O.errorIndex?(K(),N()):(N(),K())}else ge.push(b),ge.push(p);return ge}(b,p,A,N);var K=E(ge,O);
1if(!0===K){var J=M(ge.constructor.getPluginRef());return J[O].apply(J,b)}return K}function M(ge){return"undefined"!=typeof window?V(window,ge):null}function V(ge,O){for(var b=O.split("."),p=ge,A=0;A<b.length;A++){if(!p)return null;p=p[b[A]]}return p}var y=function(){function ge(){}return ge.installed=function(){return!0===E(this.pluginRef)},ge.getPlugin=function(){return"undefined"!=typeof window?function $(ge,O){for(var b=O.split("."),p=ge,A=0;A<b.length;A++){if(!p)return null;p=p[b[A]]}return p}(window,this.pluginRef):null},ge.getPluginName=function(){return this.pluginName},ge.getPluginRef=function(){return this.pluginRef},ge.getPluginInstallName=function(){return this.plugin},ge.getSupportedPlatforms=function(){return this.platforms},ge.pluginName="",ge.pluginRef="",ge.plugin="",ge.repo="",ge.platforms=[],ge.install="",ge}();function k(ge,O,b,p){return function(ge,O,b){return void 0===b&&(b={}),function(){for(var p=[],A=0;A<arguments.length;A++)p[A]=arguments[A];return b.sync?R(ge,O,p,b):b.observable?C(ge,O,p,b):b.eventObservable&&b.event?L(b.event,b.element):b.otherPromise?P(ge,O,p,b):W(ge,O,p,b)}}(ge,O,b).apply(this,p)}!function _(){if("undefined"==typeof process){var ge="undefined"!=typeof window?window:{},b=Date.now(),p=!1;ge.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-b)+" ms"),p=!0}),setTimeout(function(){!p&&ge.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}();var ve=c(6435),He=function(ge){function O(){return null!==ge&&ge.apply(this,arguments)||this}return(0,t.ZT)(O,ge),O.prototype.hideFormAccessoryBar=function(b){return k(this,"hideFormAccessoryBar",{sync:!0,platforms:["iOS"]},arguments)},O.prototype.hide=function(){return k(this,"hide",{sync:!0,platforms:["iOS","Android"]},arguments)},O.prototype.show=function(){return k(this,"show",{sync:!0,platforms:["Android"]},arguments)},O.prototype.setResizeMode=function(b){return k(this,"setResizeMode",{sync:!0,platforms:["iOS"]},arguments)},O.prototype.setKeyboardStyle=function(b){return k(this,"setKeyboardStyle",{sync:!0,platforms:["iOS"]},arguments)},O.prototype.disableScroll=function(b){return k(this,"disableScroll",{sync:!0,platforms:["iOS"]},arguments)},O.prototype.onKeyboardShow=function(){return k(this,"onKeyboardShow",{eventObservable:!0,event:"native.keyboardshow",platforms:["iOS","Android"]},arguments)},O.prototype.onKeyboardWillShow=function(){return k(this,"onKeyboardWillShow",{eventObservable:!0,event:"keyboardWillShow",platforms:["iOS","Android"]},arguments)},O.prototype.onKeyboardDidShow=function(){return k(this,"onKeyboardDidShow",{eventObservable:!0,event:"keyboardDidShow",platforms:["iOS","Android"]},arguments)},O.prototype.onKeyboardHide=function(){return k(this,"onKeyboardHide",{eventObservable:!0,event:"native.keyboardhide",platforms:["iOS","Android"]},arguments)},O.prototype.onKeyboardWillHide=function(){return k(this,"onKeyboardWillHide",{eventObservable:!0,event:"keyboardWillHide",platforms:["iOS","Android"]},arguments)},O.prototype.onKeyboardDidHide=function(){return k(this,"onKeyboardDidHide",{eventObservable:!0,event:"keyboardDidHide",platforms:["iOS","Android"]},arguments)},Object.defineProperty(O.prototype,"isVisible",{get:function(){return function z(ge,O){return!0===E(ge,O)?M(ge.constructor.getPluginRef())[O]:null}(this,"isVisible")},set:function(b){!function oe(ge,O,b){!0===E(ge,O)&&(M(ge.constructor.getPluginRef())[O]=b)}(this,"isVisible",b)},enumerable:!1,configurable:!0}),O.pluginName="Keyboard",O.plugin="cordova-plugin-ionic-keyboard",O.pluginRef="window.Keyboard",O.repo="https://github.com/ionic-team/cordova-plugin-ionic-keyboard",O.platforms=["Android","iOS"],O.\u0275fac=function(){var b;return function(A){return(b||(b=ve.\u0275\u0275getInheritedFactory(O)))(A||O)}}(),O.\u0275prov=ve.\u0275\u0275defineInjectable({token:O,factory:function(b){return O.\u0275fac(b)}}),O}(y)},603:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{ActionSheetController:()=>Me,AlertController:()=>dt,AngularDelegate:()=>ei,AnimationController:()=>Or,BooleanValueAccessor:()=>Oe,Config:()=>xi,DomController:()=>zr,GestureController:()=>Je,IonAccordion:()=>it,IonAccordionGroup:()=>_t,IonApp:()=>ut,IonAvatar:()=>yt,IonBackButton:()=>ht,IonBackButtonDelegate:()=>gn,IonBackdrop:()=>ct,IonBadge:()=>cn,IonBreadcrumb:()=>gt,IonBreadcrumbs:()=>at,IonButton:()=>St,IonButtons:()=>sn,IonCard:()=>ze,IonCardContent:()=>nt,IonCardHeader:()=>mt,IonCardSubtitle:()=>Nt,IonCardTitle:()=>wt,IonCheckbox:()=>bt,IonChip:()=>Kt,IonCol:()=>Un,IonContent:()=>vt,IonDatetime:()=>tn,IonDatetimeButton:()=>Cn,IonFab:()=>Sn,IonFabButton:()=>Nn,IonFabList:()=>rr,IonFooter:()=>Fn,IonGrid:()=>jn,IonHeader:()=>nr,IonIcon:()=>Tt,IonImg:()=>hn,IonInfiniteScroll:()=>Se,IonInfiniteScrollContent:()=>
1ae,IonInput:()=>we,IonItem:()=>Ce,IonItemDivider:()=>Ue,IonItemGroup:()=>st,IonItemOption:()=>Ft,IonItemOptions:()=>nn,IonItemSliding:()=>vn,IonLabel:()=>wn,IonList:()=>$n,IonListHeader:()=>Gn,IonMenu:()=>ir,IonMenuButton:()=>Wt,IonMenuToggle:()=>jt,IonModal:()=>le,IonNav:()=>on,IonNavLink:()=>mn,IonNote:()=>Mt,IonPopover:()=>Ae,IonProgressBar:()=>ke,IonRadio:()=>At,IonRadioGroup:()=>Ht,IonRange:()=>Yt,IonRefresher:()=>un,IonRefresherContent:()=>An,IonReorder:()=>sr,IonReorderGroup:()=>fr,IonRippleEffect:()=>Ar,IonRouterOutlet:()=>tt,IonRow:()=>Dr,IonSearchbar:()=>dr,IonSegment:()=>Kr,IonSegmentButton:()=>jr,IonSelect:()=>Ur,IonSelectOption:()=>Lr,IonSkeletonText:()=>_i,IonSlide:()=>kt,IonSlides:()=>an,IonSpinner:()=>Dn,IonSplitPane:()=>Bn,IonTabBar:()=>Yn,IonTabButton:()=>Qt,IonTabs:()=>Ut,IonText:()=>En,IonTextarea:()=>Hn,IonThumbnail:()=>er,IonTitle:()=>or,IonToggle:()=>wr,IonToolbar:()=>Nr,IonVirtualScroll:()=>Mr,IonicModule:()=>Sr,IonicRouteStrategy:()=>Ve,IonicSafeString:()=>R.I,IonicSlides:()=>se,IonicSwiper:()=>$,LoadingController:()=>rn,MenuController:()=>fn,ModalController:()=>gr,NavController:()=>Mi,NavDelegate:()=>_n,NavParams:()=>kr,NumericValueAccessor:()=>Ne,PickerController:()=>xn,Platform:()=>fs,PopoverController:()=>hr,RadioValueAccessor:()=>Ye,RouterLinkDelegate:()=>Mn,RouterLinkWithHrefDelegate:()=>qn,SelectValueAccessor:()=>Qe,TextValueAccessor:()=>Ct,ToastController:()=>pr,VirtualFooter:()=>cr,VirtualHeader:()=>ur,VirtualItem:()=>_r,createAnimation:()=>W.c,createGesture:()=>E.createGesture,getPlatforms:()=>m.g,getTimeGivenProgression:()=>L.g,iosTransitionAnimation:()=>P.iosTransitionAnimation,isPlatform:()=>m.a,mdTransitionAnimation:()=>C.mdTransitionAnimation});var t=c(6435),_=c(3075),x=c(7582),re=c(3753),te=c(8929),Q=c(591),S=c(909),W=c(181),P=c(6439),C=c(7838),L=c(2225),E=c(1898),m=c(5179),v=c(5730),R=c(5820),j=c(1843),M=c(6369),V=c(3539),Z=(c(3457),c(4349),c(1308));const G=(ue,et=!0)=>{if("undefined"==typeof window)return;const de=ue.el,Ze=de.closest(".ion-page");if(!Ze){if(et){const Cr=de.getRootNode();if("DIV"===Cr.tagName){const Vr=new MutationObserver(Jr=>{const qr=null===Jr[0].oldValue,Pi=Cr.classList.contains("ion-page");qr&&Pi&&(Vr.disconnect(),G(ue,!1))});Vr.observe(Cr,{attributeFilter:["class"],attributeOldValue:!0})}}return}const Xt=de.closest("ion-modal, ion-popover");if(Xt){const Cr="ION-MODAL"===Xt.tagName?"ionModalWillPresent":"ionPopoverWillPresent",Vr=()=>{(0,v.r)(()=>{de.swiper.update(),(0,v.b)(Xt,Cr,Vr)})};(0,v.a)(Xt,Cr,Vr)}else new MutationObserver(Vr=>{var Jr;const qr=null===(Jr=Vr[0].oldValue)||void 0===Jr?void 0:Jr.includes("ion-page-invisible"),Pi=Ze.classList.contains("ion-page-invisible");!Pi&&Pi!==qr&&de.swiper.update()}).observe(Ze,{attributeFilter:["class"],attributeOldValue:!0});const Jn=()=>{de.swiper.update(),(0,v.b)(window,"appload",Jn)};(0,v.a)(window,"appload",Jn)},$={name:"ionic",on:{afterInit(ue){console.warn("[Deprecation Warning]: The IonicSwiper module has been deprecated in favor of the IonSlides module. This change was made to better support the Swiper 7 release. The IonicSwiper module will be removed in Ionic 7.0. See https://ionicframework.com/docs/api/slides#migration for revised migration steps."),G(ue)}}},se=ue=>{const{swiper:et,extendParams:de}=ue,Ze={effect:void 0,direction:"horizontal",initialSlide:0,loop:!1,parallax:!1,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,zoom:{maxRatio:3,minRatio:1,toggle:!1},touchRatio:1,touchAngle:45,simulateTouch:!0,touchStartPreventDefault:!1,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loopAdditionalSlides:0,noSwiping:!0,runCallbacksOnInit:!0,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flipEffect:{slideShadows:!0,limitRotation:!0},cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:!1},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};et.pagination&&(Ze.pagination={type:"bullets",clickable:!1,hideOnClick:!1}),et.scrollbar&&(Ze.scrollbar={hide:!0}),de(Ze)};var y=c(2198),k=c(7545),I=c(5778),H=c(9808);const z=m.i,We=["*"],Re=["outlet"],He=[[["","slot","top"]],"*"],ge=["[slot=top]","*"];function O(ue,et){if(1&ue&&(t.\u0275\u0275elementStart(0,"div",1),t.\u0275\u0275elementContainer(1,2),t.\u0275\u0275elementEnd()),2&ue){const de=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",de.template)}}function b(ue,et){if(1&ue&&t.\u0275\u0275elementContainer(0,1),2&ue){const de=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngTemplateOutlet",de.template)}}const p=ue=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ue):"function"==typeof requestAnimationFrame?requestAnimationFrame(ue):setTimeout(ue),A=ue=>
1!!ue.resolveComponentFactory;let N=(()=>{class ue{constructor(de,Ze){this.injector=de,this.el=Ze,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(de){this.el.nativeElement.value=this.lastValue=null==de?"":de,K(this.el)}handleChangeEvent(de,Ze){de===this.el.nativeElement&&(Ze!==this.lastValue&&(this.lastValue=Ze,this.onChange(Ze)),K(this.el))}_handleBlurEvent(de){de===this.el.nativeElement&&(this.onTouched(),K(this.el))}registerOnChange(de){this.onChange=de}registerOnTouched(de){this.onTouched=de}setDisabledState(de){this.el.nativeElement.disabled=de}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let de;try{de=this.injector.get(_.NgControl)}catch(Xt){}if(!de)return;de.statusChanges&&(this.statusChanges=de.statusChanges.subscribe(()=>K(this.el)));const Ze=de.control;Ze&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Jn=>{if(void 0!==Ze[Jn]){const Cr=Ze[Jn].bind(Ze);Ze[Jn]=(...Vr)=>{Cr(...Vr),K(this.el)}}})}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionBlur",function(Jn){return Ze._handleBlurEvent(Jn.target)})}}),ue})();const K=ue=>{p(()=>{const et=ue.nativeElement,de=null!=et.value&&et.value.toString().length>0,Ze=J(et);ie(et,Ze);const Xt=et.closest("ion-item");Xt&&ie(Xt,de?[...Ze,"item-has-value"]:Ze)})},J=ue=>{const et=ue.classList,de=[];for(let Ze=0;Ze<et.length;Ze++){const Xt=et.item(Ze);null!==Xt&&he(Xt,"ng-")&&de.push(`ion-${Xt.substring(3)}`)}return de},ie=(ue,et)=>{const de=ue.classList;de.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),de.add(...et)},he=(ue,et)=>ue.substring(0,et.length)===et;let Oe=(()=>{class ue extends N{constructor(de,Ze){super(de,Ze)}writeValue(de){this.el.nativeElement.checked=this.lastValue=null!=de&&de,K(this.el)}_handleIonChange(de){this.handleChangeEvent(de,de.checked)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionChange",function(Jn){return Ze._handleIonChange(Jn.target)})},features:[t.\u0275\u0275ProvidersFeature([{provide:_.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0}]),t.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ne=(()=>{class ue extends N{constructor(de,Ze){super(de,Ze)}_handleIonChange(de){this.handleChangeEvent(de,de.value)}registerOnChange(de){super.registerOnChange(Ze=>{de(""===Ze?null:parseFloat(Ze))})}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-input","type","number"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionChange",function(Jn){return Ze._handleIonChange(Jn.target)})},features:[t.\u0275\u0275ProvidersFeature([{provide:_.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0}]),t.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ye=(()=>{class ue extends N{constructor(de,Ze){super(de,Ze)}_handleIonSelect(de){this.handleChangeEvent(de,de.checked)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-radio"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionSelect",function(Jn){return Ze._handleIonSelect(Jn.target)})},features:[t.\u0275\u0275ProvidersFeature([{provide:_.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0}]),t.\u0275\u0275InheritDefinitionFeature]}),ue})(),Qe=(()=>{class ue extends N{constructor(de,Ze){super(de,Ze)}_handleChangeEvent(de){this.handleChangeEvent(de,de.value)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionChange",function(Jn){return Ze._handleChangeEvent(Jn.target)})},features:[t.\u0275\u0275ProvidersFeature([{provide:_.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0}]),t.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ct=(()=>{class ue extends N{constructor(de,Ze){super(de,Ze)}_handleInputEvent(de){this.handleChangeEvent(de,de.value)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionChange",function(Jn){return Ze._handleInputEvent(Jn.target)})},features:[t.\u0275\u0275ProvidersFeature([{provide:_.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0}]),t.\u0275\u0275InheritDefinitionFeature]}),ue})();const Ot=(ue,et)=>{const de=ue.prototype;et.forEach(Ze=>{Object.defineProperty(de,Ze,{get(){return this.el[Ze]},set(Xt){this.z.runOutsideAngular(()=>this.el[Ze]=Xt)}})})},ln=(ue,et)=>{const de=ue.prototype;et.forEach(Ze=>{de[Ze]=function(){const Xt=arguments;return this.z.runOutsideAngular(()=>this.el[Ze].apply(this.el,Xt))}})},Lt=(ue,et,de)=>{de.forEach(Ze=>ue[Ze]=(0,re.R)(et,Ze))};function Rt(ue){return function(de){const{defineCustomElementFn:Ze,inputs:Xt,methods:Jn}=ue;return void 0!==Ze&&Ze(),Xt&&Ot(de,Xt),Jn&&ln(de,Jn),de}}let it=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-accordion"]],inputs:{disabled:"disabled",mode:"mode",readonly:"readonly",toggleIcon:"toggleIcon",toggleIconSlot:"toggleIconSlot",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled","mode","readonly","toggleIcon","toggleIconSlot","value"]})],ue),ue})(),_t=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-accordion-group"]],inputs:{animated:"animated",disabled:"disabled",expand:"expand",mode:"mode",multiple:"multiple",readonly:"readonly",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["animated","disabled","expand","mode","multiple","readonly","value"]})],ue),ue})(),ut=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-app"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),yt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-avatar"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),ht=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],ue),ue})(),ct=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionBackdropTap"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-backdrop"]],inputs:{stopPropagation:"stopPropagation",ta
1ppable:"tappable",visible:"visible"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["stopPropagation","tappable","visible"]})],ue),ue})(),cn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode"]})],ue),ue})(),gt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-breadcrumb"]],inputs:{active:"active",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",separator:"separator",target:"target"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["active","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","separator","target"]})],ue),ue})(),at=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionCollapsedClick"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-breadcrumbs"]],inputs:{color:"color",itemsAfterCollapse:"itemsAfterCollapse",itemsBeforeCollapse:"itemsBeforeCollapse",maxItems:"maxItems",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","itemsAfterCollapse","itemsBeforeCollapse","maxItems","mode"]})],ue),ue})(),St=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],ue),ue})(),sn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["collapse"]})],ue),ue})(),ze=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],ue),ue})(),nt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["mode"]})],ue),ue})(),mt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode","translucent"]})],ue),ue})(),Nt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode"]})],ue),ue})(),wt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode"]})],ue),ue}
1)(),bt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange","ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],ue),ue})(),Kt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","disabled","mode","outline"]})],ue),ue})(),Un=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],ue),ue})(),vt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],ue),ue})(),tn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-datetime"]],inputs:{cancelText:"cancelText",clearText:"clearText",color:"color",dayValues:"dayValues",disabled:"disabled",doneText:"doneText",firstDayOfWeek:"firstDayOfWeek",highlightedDates:"highlightedDates",hourCycle:"hourCycle",hourValues:"hourValues",isDateEnabled:"isDateEnabled",locale:"locale",max:"max",min:"min",minuteValues:"minuteValues",mode:"mode",monthValues:"monthValues",multiple:"multiple",name:"name",preferWheel:"preferWheel",presentation:"presentation",readonly:"readonly",showClearButton:"showClearButton",showDefaultButtons:"showDefaultButtons",showDefaultTimeLabel:"showDefaultTimeLabel",showDefaultTitle:"showDefaultTitle",size:"size",titleSelectedDatesFormatter:"titleSelectedDatesFormatter",value:"value",yearValues:"yearValues"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["cancelText","clearText","color","dayValues","disabled","doneText","firstDayOfWeek","highlightedDates","hourCycle","hourValues","isDateEnabled","locale","max","min","minuteValues","mode","monthValues","multiple","name","preferWheel","presentation","readonly","showClearButton","showDefaultButtons","showDefaultTimeLabel","showDefaultTitle","size","titleSelectedDatesFormatter","value","yearValues"],methods:["confirm","reset","cancel"]})],ue),ue})(),Cn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-datetime-button"]],inputs:{color:"color",datetime:"datetime",disabled:"disabled",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","datetime","disabled","mode"]})],ue),ue})(),Sn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],ue),ue})(),Nn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],ue),ue})(),rr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["activated","side"]})],ue),ue})(),Fn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],ue),ue})(),jn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["fixed"]})],ue),ue})(),nr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],ue),ue})(),Tt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],ue),ue})(),hn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["alt","src"]})],ue),ue})(),Se=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionInfinite"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled","position","threshold"],methods:["complete"]})],ue),ue})(),ae=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["loadingSpinner","loadingText"]})],ue),ue})(),we=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getIn
1putElement"]})],ue),ue})(),Ce=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],ue),ue})(),Ue=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode","sticky"]})],ue),ue})(),st=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-item-group"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),Ft=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],ue),ue})(),nn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionSwipe"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["side"]})],ue),ue})(),vn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionDrag"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],ue),ue})(),wn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode","position"]})],ue),ue})(),$n=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],ue),ue})(),Gn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","lines","mode"]})],ue),ue})(),ir=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],ue),ue})(),Wt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["autoHide","color","disabled","menu","mode","type"]})],ue),ue})(),jt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["autoHide","menu"]}
1)],ue),ue})(),on=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionNavWillChange","ionNavDidChange"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-nav"]],inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],ue),ue})(),mn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-nav-link"]],inputs:{component:"component",componentProps:"componentProps",routerAnimation:"routerAnimation",routerDirection:"routerDirection"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["component","componentProps","routerAnimation","routerDirection"]})],ue),ue})(),Mt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode"]})],ue),ue})(),ke=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-progress-bar"]],inputs:{buffer:"buffer",color:"color",mode:"mode",reversed:"reversed",type:"type",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["buffer","color","mode","reversed","type","value"]})],ue),ue})(),At=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","disabled","mode","name","value"]})],ue),ue})(),Ht=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["allowEmptySelection","name","value"]})],ue),ue})(),Yt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange","ionFocus","ionBlur","ionKnobMoveStart","ionKnobMoveEnd"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-range"]],inputs:{activeBarStart:"activeBarStart",color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",pinFormatter:"pinFormatter",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["activeBarStart","color","debounce","disabled","dualKnobs","max","min","mode","name","pin","pinFormatter","snaps","step","ticks","value"]})],ue),ue})(),un=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionRefresh","ionPull","ionStart"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],ue),ue})(),An=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],ue),ue})(),sr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-reorder"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),fr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionItemReorder"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-reorder-group"]],inputs:{disabled:"disabled"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled"],methods:["complete"]})],ue),ue})(),Ar=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-ripple-effect"]],inputs:{type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["type"],methods:["addRipple"]})],ue),ue})(),Dr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-row"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),dr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionInput","ionChange","ionCancel","ionClear","
1ionBlur","ionFocus"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],ue),ue})(),Kr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],ue),ue})(),jr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled","layout","mode","type","value"]})],ue),ue})(),Ur=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],ue),ue})(),Lr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled","value"]})],ue),ue})(),_i=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-skeleton-text"]],inputs:{animated:"animated"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["animated"]})],ue),ue})(),kt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-slide"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),an=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],ue),ue})(),Dn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","duration","name","paused"]})],ue),ue})(),Bn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionSplitPaneVisible"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["contentId","disabled","when"]})],ue),ue})(),Yn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode","selectedTab","translucent"]})],ue),ue})(),Qt=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],ue),ue})(),En=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode"]})],ue),ue})(),Hn=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getIn
1putElement"]})],ue),ue})(),er=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-thumbnail"]],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0})],ue),ue})(),or=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","size"]})],ue),ue})(),wr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement,Lt(this,this.el,["ionChange","ionFocus","ionBlur"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",enableOnOffLabels:"enableOnOffLabels",mode:"mode",name:"name",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["checked","color","disabled","enableOnOffLabels","mode","name","value"]})],ue),ue})(),Nr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,de.detach(),this.el=Ze.nativeElement}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({defineCustomElementFn:void 0,inputs:["color","mode"]})],ue),ue})();class kr{constructor(et={}){this.data=et}get(et){return this.data[et]}}let ei=(()=>{class ue{constructor(de,Ze){this.zone=de,this.appRef=Ze}create(de,Ze,Xt,Jn){return new oi(de,Ze,Xt,this.appRef,this.zone,Jn)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(t.ApplicationRef))},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();class oi{constructor(et,de,Ze,Xt,Jn,Cr){this.resolverOrInjector=et,this.injector=de,this.location=Ze,this.appRef=Xt,this.zone=Jn,this.elementReferenceKey=Cr,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(et,de,Ze,Xt){return this.zone.run(()=>new Promise(Jn=>{const Cr=Object.assign({},Ze);void 0!==this.elementReferenceKey&&(Cr[this.elementReferenceKey]=et),Jn(ui(this.zone,this.resolverOrInjector,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,et,de,Cr,Xt))}))}removeViewFromDom(et,de){return this.zone.run(()=>new Promise(Ze=>{const Xt=this.elRefMap.get(de);if(Xt){Xt.destroy(),this.elRefMap.delete(de);const Jn=this.elEventsMap.get(de);Jn&&(Jn(),this.elEventsMap.delete(de))}Ze()}))}}const ui=(ue,et,de,Ze,Xt,Jn,Cr,Vr,Jr,Zn,qr)=>{let Pi;const mi=t.Injector.create({providers:ci(Zn),parent:de});if(et&&A(et)){const ps=et.resolveComponentFactory(Jr);Pi=Ze?Ze.createComponent(ps,Ze.length,mi):ps.create(mi)}else{if(!Ze)return null;Pi=Ze.createComponent(Jr,{index:Ze.indexOf,injector:mi,environmentInjector:et})}const ji=Pi.instance,Ki=Pi.location.nativeElement;if(Zn&&Object.assign(ji,Zn),qr)for(const ps of qr)Ki.classList.add(ps);const Ui=Ci(ue,ji,Ki);return Vr.appendChild(Ki),Ze||Xt.attachView(Pi.hostView),Pi.changeDetectorRef.reattach(),Jn.set(Ki,Pi),Cr.set(Ki,Ui),Ki},Yr=[j.L,j.a,j.b,j.c,j.d],Ci=(ue,et,de)=>ue.run(()=>{const Ze=Yr.filter(Xt=>"function"==typeof et[Xt]).map(Xt=>{const Jn=Cr=>et[Xt](Cr.detail);return de.addEventListener(Xt,Jn),()=>de.removeEventListener(Xt,Jn)});return()=>Ze.forEach(Xt=>Xt())}),Ji=new t.InjectionToken("NavParamsToken"),ci=ue=>[{provide:Ji,useValue:ue},{provide:kr,useFactory:Gi,deps:[Ji]}],Gi=ue=>new kr(ue),Oi=(ue,et)=>((ue=ue.filter(de=>de.stackId!==et.stackId)).push(et),ue),cs=(ue,et)=>{const de=ue.createUrlTree(["."],{relativeTo:et});return ue.serializeUrl(de)},is=(ue,et)=>{if(!ue)return;const de=$i(et);for(let Ze=0;Ze<de.length;Ze++){if(Ze>=ue.length)return de[Ze];if(de[Ze]!==ue[Ze])return}},$i=ue=>ue.split("/").map(et=>et.trim()).filter(et=>""!==et),Hi=ue=>{ue&&(ue.ref.destroy(),ue.unlistenEvents())};class ai{constructor(et,de,Ze,Xt,Jn,Cr){this.containerEl=de,this.router=Ze,this.navCtrl=Xt,this.zone=Jn,this.location=Cr,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==et?$i(et):void 0}createView(et,de){var Ze;const Xt=cs(this.router,de),Jn=null===(Ze=null==et?void 0:et.location)||void 0===Ze?void 0:Ze.nativeElement,Cr=Ci(this.zone,et.instance,Jn);return{id:this.nextId++,stackId:is(this.tabsPrefix,Xt),unlistenEvents:Cr,element:Jn,ref:et,url:Xt}}getExistingView(et){const de=cs(this.router,et),Ze=this.views.find(Xt=>Xt.url===de);return Ze&&Ze.ref.changeDetectorRef.reattach(),Ze}setActive(et){var de,Ze;const Xt=this.navCtrl.consumeTransition();let{direction:Jn,animation:Cr,animationBuilder:Vr}=Xt;const Jr=this.activeView,Zn=((ue,et)=>!et||ue.stackId!==et.stackId)(et,Jr);Zn&&(Jn="back",Cr=void 0);const qr=this.views.slice();let Pi;const mi=this.router;mi.getCurrentNavigation?Pi=mi.getCurrentNavigation():(null===(de=mi.navigations)||void 0===de?void 0:de.value)&&(Pi=mi.navigations.value),(null===(Ze=null==Pi?void 0:Pi.extras)||void 0===Ze?void 0:Ze.replaceUrl)&&this.views.length>0&&this.views.splice(-1,1);const ji=this.views.includes(et),Ki=this.insertView(et,Jn);ji||et.ref.changeDetectorRef.detectChanges();const Ui=et.animationBuilder;return void 0===Vr&&"back"===Jn&&!Zn&&void 0!==Ui&&(Vr=Ui),Jr&&(Jr.animationBuilder=Vr),this.zone.runOutsideAngular(()=>this.wait(()=>(Jr&&Jr.ref.changeDetectorRef.detach(),et.ref.changeDetectorRef.reattach(),this.transition(et,Jr,Cr,this.canGoBack(1),!1,Vr).then(()=>Zi(et,Ki,qr,this.location,this.zone)).then(()=>({enteringView:et,direction:Jn,animation:Cr,tabSwitch:Zn})))))}
1canGoBack(et,de=this.getActiveStackId()){return this.getStack(de).length>et}pop(et,de=this.getActiveStackId()){return this.zone.run(()=>{var Ze,Xt;const Jn=this.getStack(de);if(Jn.length<=et)return Promise.resolve(!1);const Cr=Jn[Jn.length-et-1];let Vr=Cr.url;const Jr=Cr.savedData;if(Jr){const qr=Jr.get("primary");(null===(Xt=null===(Ze=null==qr?void 0:qr.route)||void 0===Ze?void 0:Ze._routerState)||void 0===Xt?void 0:Xt.snapshot.url)&&(Vr=qr.route._routerState.snapshot.url)}const{animationBuilder:Zn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Vr,Object.assign(Object.assign({},Cr.savedExtras),{animation:Zn})).then(()=>!0)})}startBackTransition(){const et=this.activeView;if(et){const de=this.getStack(et.stackId),Ze=de[de.length-2],Xt=Ze.animationBuilder;return this.wait(()=>this.transition(Ze,et,"back",this.canGoBack(2),!0,Xt))}return Promise.resolve()}endBackTransition(et){et?(this.skipTransition=!0,this.pop(1)):this.activeView&&zi(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(et){const de=this.getStack(et);return de.length>0?de[de.length-1]:void 0}getRootUrl(et){const de=this.getStack(et);return de.length>0?de[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(Hi),this.activeView=void 0,this.views=[]}getStack(et){return this.views.filter(de=>de.stackId===et)}insertView(et,de){return this.activeView=et,this.views=((ue,et,de)=>"root"===de?Oi(ue,et):"forward"===de?((ue,et)=>(ue.indexOf(et)>=0?ue=ue.filter(Ze=>Ze.stackId!==et.stackId||Ze.id<=et.id):ue.push(et),ue))(ue,et):((ue,et)=>ue.indexOf(et)>=0?ue.filter(Ze=>Ze.stackId!==et.stackId||Ze.id<=et.id):Oi(ue,et))(ue,et))(this.views,et,de),this.views.slice()}transition(et,de,Ze,Xt,Jn,Cr){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(de===et)return Promise.resolve(!1);const Vr=et?et.element:void 0,Jr=de?de.element:void 0,Zn=this.containerEl;return Vr&&Vr!==Jr&&(Vr.classList.add("ion-page"),Vr.classList.add("ion-page-invisible"),Vr.parentElement!==Zn&&Zn.appendChild(Vr),Zn.commit)?Zn.commit(Vr,Jr,{deepWait:!0,duration:void 0===Ze?0:void 0,direction:Ze,showGoBack:Xt,progressAnimation:Jn,animationBuilder:Cr}):Promise.resolve(!1)}wait(et){return(0,x.mG)(this,void 0,void 0,function*(){void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0);const de=this.runningTask=et();return de.finally(()=>this.runningTask=void 0),de})}}const Zi=(ue,et,de,Ze,Xt)=>"function"==typeof requestAnimationFrame?new Promise(Jn=>{requestAnimationFrame(()=>{zi(ue,et,de,Ze,Xt),Jn()})}):Promise.resolve(),zi=(ue,et,de,Ze,Xt)=>{Xt.run(()=>de.filter(Jn=>!et.includes(Jn)).forEach(Hi)),et.forEach(Jn=>{const Vr=Ze.path().split("?")[0].split("#")[0];if(Jn!==ue&&Jn.url!==Vr){const Jr=Jn.element;Jr.setAttribute("aria-hidden","true"),Jr.classList.add("ion-page-hidden"),Jn.ref.changeDetectorRef.detach()}})};let xi=(()=>{class ue{get(de,Ze){const Xt=hs();return Xt?Xt.get(de,Ze):null}getBoolean(de,Ze){const Xt=hs();return!!Xt&&Xt.getBoolean(de,Ze)}getNumber(de,Ze){const Xt=hs();return Xt?Xt.getNumber(de,Ze):0}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const ss=new t.InjectionToken("USERCONFIG"),hs=()=>{if("undefined"!=typeof window){const ue=window.Ionic;if(null==ue?void 0:ue.config)return ue.config}return null};let fs=(()=>{class ue{constructor(de,Ze){this.doc=de,this.backButton=new te.xQ,this.keyboardDidShow=new te.xQ,this.keyboardDidHide=new te.xQ,this.pause=new te.xQ,this.resume=new te.xQ,this.resize=new te.xQ,Ze.run(()=>{var Xt;let Jn;this.win=de.defaultView,this.backButton.subscribeWithPriority=function(Cr,Vr){return this.subscribe(Jr=>Jr.register(Cr,Zn=>Ze.run(()=>Vr(Zn))))},hi(this.pause,de,"pause"),hi(this.resume,de,"resume"),hi(this.backButton,de,"ionBackButton"),hi(this.resize,this.win,"resize"),hi(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),hi(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(Cr=>{Jn=Cr}),(null===(Xt=this.win)||void 0===Xt?void 0:Xt.cordova)?de.addEventListener("deviceready",()=>{Jn("cordova")},{once:!0}):Jn("dom")})}is(de){return(0,m.a)(this.win,de)}platforms(){return(0,m.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(de){return bs(this.win.location.href,de)}isLandscape(){return!this.isPortrait()}isPortrait(){var de,Ze;return null===(Ze=(de=this.win).matchMedia)||void 0===Ze?void 0:Ze.call(de,"(orientation: portrait)").matches}testUserAgent(de){const Ze=this.win.navigator;return!!((null==Ze?void 0:Ze.userAgent)&&Ze.userAgent.indexOf(de)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275inject(H.DOCUMENT),t.\u0275\u0275inject(t.NgZone))},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const bs=(ue,et)=>{et=et.replace(/[[\]\\]/g,"\\$&");const Ze=new RegExp("[\\?&]"+et+"=([^&#]*)").exec(ue);return Ze?decodeURIComponent(Ze[1].replace(/\+/g," ")):null},hi=(ue,et,de)=>{et&&et.addEventListener(de,Ze=>{ue.next(null!=Ze?Ze.detail:void 0)})};let Mi=(()=>{class ue{constructor(de,Ze,Xt,Jn){this.location=Ze,this.serializer
1=Xt,this.router=Jn,this.direction=os,this.animated=Ii,this.guessDirection="forward",this.lastNavId=-1,Jn&&Jn.events.subscribe(Cr=>{if(Cr instanceof S.OD){const Vr=Cr.restoredState?Cr.restoredState.navigationId:Cr.id;this.guessDirection=Vr<this.lastNavId?"back":"forward",this.guessAnimation=Cr.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?Cr.id:Vr}}),de.backButton.subscribeWithPriority(0,Cr=>{this.pop(),Cr()})}navigateForward(de,Ze={}){return this.setDirection("forward",Ze.animated,Ze.animationDirection,Ze.animation),this.navigate(de,Ze)}navigateBack(de,Ze={}){return this.setDirection("back",Ze.animated,Ze.animationDirection,Ze.animation),this.navigate(de,Ze)}navigateRoot(de,Ze={}){return this.setDirection("root",Ze.animated,Ze.animationDirection,Ze.animation),this.navigate(de,Ze)}back(de={animated:!0,animationDirection:"back"}){return this.setDirection("back",de.animated,de.animationDirection,de.animation),this.location.back()}pop(){return(0,x.mG)(this,void 0,void 0,function*(){let de=this.topOutlet;for(;de&&!(yield de.pop());)de=de.parentOutlet})}setDirection(de,Ze,Xt,Jn){this.direction=de,this.animated=Ti(de,Ze,Xt),this.animationBuilder=Jn}setTopOutlet(de){this.topOutlet=de}consumeTransition(){let Ze,de="root";const Xt=this.animationBuilder;return"auto"===this.direction?(de=this.guessDirection,Ze=this.guessAnimation):(Ze=this.animated,de=this.direction),this.direction=os,this.animated=Ii,this.animationBuilder=void 0,{direction:de,animation:Ze,animationBuilder:Xt}}navigate(de,Ze){if(Array.isArray(de))return this.router.navigate(de,Ze);{const Xt=this.serializer.parse(de.toString());return void 0!==Ze.queryParams&&(Xt.queryParams=Object.assign({},Ze.queryParams)),void 0!==Ze.fragment&&(Xt.fragment=Ze.fragment),this.router.navigateByUrl(Xt,Ze)}}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275inject(fs),t.\u0275\u0275inject(H.Location),t.\u0275\u0275inject(S.Hx),t.\u0275\u0275inject(S.F0,8))},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const Ti=(ue,et,de)=>{if(!1!==et){if(void 0!==de)return de;if("forward"===ue||"back"===ue)return ue;if("root"===ue&&!0===et)return"forward"}},os="auto",Ii=void 0;let tt=(()=>{class ue{constructor(de,Ze,Xt,Jn,Cr,Vr,Jr,Zn,qr,Pi,mi,ji,Ki){this.parentContexts=de,this.location=Ze,this.config=Cr,this.navCtrl=Vr,this.componentFactoryResolver=Jr,this.parentOutlet=Ki,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Q.X(null),this.stackEvents=new t.EventEmitter,this.activateEvents=new t.EventEmitter,this.deactivateEvents=new t.EventEmitter,this.nativeEl=qr.nativeElement,this.name=Xt||S.eC,this.tabsPrefix="true"===Jn?cs(Pi,ji):void 0,this.stackCtrl=new ai(this.tabsPrefix,this.nativeEl,Pi,Vr,mi,Zn),de.onChildOutletCreated(this.name,this)}set animation(de){this.nativeEl.animation=de}set animated(de){this.nativeEl.animated=de}set swipeGesture(de){this._swipeGesture=de,this.nativeEl.swipeHandler=de?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:Ze=>this.stackCtrl.endBackTransition(Ze)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const de=this.getContext();(null==de?void 0:de.route)&&this.activateWith(de.route,de.resolver||null)}new Promise(de=>(0,v.c)(this.nativeEl,de)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(de,Ze){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const Ze=this.getContext();this.activatedView.savedData=new Map(Ze.children.contexts);const Xt=this.activatedView.savedData.get("primary");if(Xt&&Ze.route&&(Xt.route=Object.assign({},Ze.route)),this.activatedView.savedExtras={},Ze.route){const Jn=Ze.route.snapshot;this.activatedView.savedExtras.queryParams=Jn.queryParams,this.activatedView.savedExtras.fragment=Jn.fragment}}const de=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(de)}}activateWith(de,Ze){var Xt;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=de;let Jn,Cr=this.stackCtrl.getExistingView(de);if(Cr){Jn=this.activated=Cr.ref;const Vr=Cr.savedData;Vr&&(this.getContext().children.contexts=Vr),this.updateActivatedRouteProxy(Jn.instance,de)}else{const Vr=de._futureSnapshot;if(null==Vr.routeConfig.component&&null==this.environmentInjector)return void console.warn('[Ionic Warning]: You must supply an environmentInjector to use standalone components with routing:\n\nIn your component class, add:\n\n   import { EnvironmentInjector } from \'@angular/core\';\n   constructor(public environmentInjector: EnvironmentInjector) {}\n\nIn your router outlet template, add:\n\n   <ion-router-outlet [environmentInjector]="environmentInjector"></ion-router-outlet>\n\nAlternatively, if you are routing within ion-tabs:\n\n   <ion-tabs [environmentInjector]="environmentInjector"></ion-tabs>');const Jr=this.parentContexts.getOrCreateContext(this.name).children,Zn=new Q.X(null),qr=this.createActivatedRouteProxy(Zn,de),Pi=new Xe(qr,Jr,this.location.injector),mi=null!==(Xt=Vr.routeConfig.component)&&void 0!==Xt?Xt:Vr.component;if((Ze=Ze||this.componentFactoryResolver)&&A(Ze)){const ji=Ze.resolve
1ComponentFactory(mi);Jn=this.activated=this.location.createComponent(ji,this.location.length,Pi)}else Jn=this.activated=this.location.createComponent(mi,{index:this.location.length,injector:Pi,environmentInjector:null!=Ze?Ze:this.environmentInjector});Zn.next(Jn.instance),Cr=this.stackCtrl.createView(this.activated,de),this.proxyMap.set(Jn.instance,qr),this.currentActivatedRoute$.next({component:Jn.instance,activatedRoute:de})}this.activatedView=Cr,this.navCtrl.setTopOutlet(this),this.stackCtrl.setActive(Cr).then(Vr=>{this.activateEvents.emit(Jn.instance),this.stackEvents.emit(Vr)})}canGoBack(de=1,Ze){return this.stackCtrl.canGoBack(de,Ze)}pop(de=1,Ze){return this.stackCtrl.pop(de,Ze)}getLastUrl(de){const Ze=this.stackCtrl.getLastUrl(de);return Ze?Ze.url:void 0}getLastRouteView(de){return this.stackCtrl.getLastUrl(de)}getRootView(de){return this.stackCtrl.getRootUrl(de)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(de,Ze){const Xt=new S.gz;return Xt._futureSnapshot=Ze._futureSnapshot,Xt._routerState=Ze._routerState,Xt.snapshot=Ze.snapshot,Xt.outlet=Ze.outlet,Xt.component=Ze.component,Xt._paramMap=this.proxyObservable(de,"paramMap"),Xt._queryParamMap=this.proxyObservable(de,"queryParamMap"),Xt.url=this.proxyObservable(de,"url"),Xt.params=this.proxyObservable(de,"params"),Xt.queryParams=this.proxyObservable(de,"queryParams"),Xt.fragment=this.proxyObservable(de,"fragment"),Xt.data=this.proxyObservable(de,"data"),Xt}proxyObservable(de,Ze){return de.pipe((0,y.h)(Xt=>!!Xt),(0,k.w)(Xt=>this.currentActivatedRoute$.pipe((0,y.h)(Jn=>null!==Jn&&Jn.component===Xt),(0,k.w)(Jn=>Jn&&Jn.activatedRoute[Ze]),(0,I.x)())))}updateActivatedRouteProxy(de,Ze){const Xt=this.proxyMap.get(de);if(!Xt)throw new Error("Could not find activated route proxy for view");Xt._futureSnapshot=Ze._futureSnapshot,Xt._routerState=Ze._routerState,Xt.snapshot=Ze.snapshot,Xt.outlet=Ze.outlet,Xt.component=Ze.component,this.currentActivatedRoute$.next({component:de,activatedRoute:Ze})}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(S.y6),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275injectAttribute("name"),t.\u0275\u0275injectAttribute("tabs"),t.\u0275\u0275directiveInject(xi),t.\u0275\u0275directiveInject(Mi),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver,8),t.\u0275\u0275directiveInject(H.Location),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(S.F0),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(S.gz),t.\u0275\u0275directiveInject(ue,12))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",environmentInjector:"environmentInjector"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),ue})();class Xe{constructor(et,de,Ze){this.route=et,this.childContexts=de,this.parent=Ze}get(et,de){return et===S.gz?this.route:et===S.y6?this.childContexts:this.parent.get(et,de)}}let Ut=(()=>{class ue{constructor(de){this.navCtrl=de,this.ionTabsWillChange=new t.EventEmitter,this.ionTabsDidChange=new t.EventEmitter}onPageSelected(de){const Ze=de.enteringView.stackId;de.tabSwitch&&void 0!==Ze&&(this.ionTabsWillChange.emit({tab:Ze}),this.tabBar&&(this.tabBar.selectedTab=Ze),this.ionTabsDidChange.emit({tab:Ze}))}
1select(de){const Ze="string"==typeof de,Xt=Ze?de:de.detail.tab,Jn=this.outlet.getActiveStackId()===Xt,Cr=`${this.outlet.tabsPrefix}/${Xt}`;if(Ze||de.stopPropagation(),Jn){const Vr=this.outlet.getActiveStackId(),Jr=this.outlet.getLastRouteView(Vr);if((null==Jr?void 0:Jr.url)===Cr)return;const Zn=this.outlet.getRootView(Xt);return this.navCtrl.navigateRoot(Cr,Object.assign(Object.assign({},Zn&&Cr===Zn.url&&Zn.savedExtras),{animated:!0,animationDirection:"back"}))}{const Vr=this.outlet.getLastRouteView(Xt);return this.navCtrl.navigateRoot((null==Vr?void 0:Vr.url)||Cr,Object.assign(Object.assign({},null==Vr?void 0:Vr.savedExtras),{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(Mi))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-tabs"]],contentQueries:function(de,Ze,Xt){if(1&de&&t.\u0275\u0275contentQuery(Xt,Yn,5),2&de){let Jn;t.\u0275\u0275queryRefresh(Jn=t.\u0275\u0275loadQuery())&&(Ze.tabBar=Jn.first)}},viewQuery:function(de,Ze){if(1&de&&t.\u0275\u0275viewQuery(Re,5,tt),2&de){let Xt;t.\u0275\u0275queryRefresh(Xt=t.\u0275\u0275loadQuery())&&(Ze.outlet=Xt.first)}},hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("ionTabButtonClick",function(Jn){return Ze.select(Jn)})},inputs:{environmentInjector:"environmentInjector"},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"},ngContentSelectors:ge,decls:5,vars:1,consts:[[1,"tabs-inner"],["tabs","true",3,"environmentInjector","stackEvents"],["outlet",""]],template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(He),t.\u0275\u0275projection(0),t.\u0275\u0275elementStart(1,"div",0)(2,"ion-router-outlet",1,2),t.\u0275\u0275listener("stackEvents",function(Jn){return Ze.onPageSelected(Jn)}),t.\u0275\u0275elementEnd()(),t.\u0275\u0275projection(4,1)),2&de&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("environmentInjector",Ze.environmentInjector))},directives:[tt],styles:["[_nghost-%COMP%] {\n        display: flex;\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n\n        flex-direction: column;\n\n        width: 100%;\n        height: 100%;\n\n        contain: layout size style;\n        z-index: $z-index-page-container;\n      }\n      .tabs-inner[_ngcontent-%COMP%] {\n        position: relative;\n\n        flex: 1;\n\n        contain: layout size style;\n      }"]}),ue})(),gn=(()=>{class ue{constructor(de,Ze,Xt){this.routerOutlet=de,this.navCtrl=Ze,this.config=Xt}onClick(de){var Ze;const Xt=this.defaultHref||this.config.get("backButtonDefaultHref");(null===(Ze=this.routerOutlet)||void 0===Ze?void 0:Ze.canGoBack())?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),de.preventDefault()):null!=Xt&&(this.navCtrl.navigateBack(Xt,{animation:this.routerAnimation}),de.preventDefault())}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(tt,8),t.\u0275\u0275directiveInject(Mi),t.\u0275\u0275directiveInject(xi))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-back-button"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("click",function(Jn){return Ze.onClick(Jn)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),ue})(),_n=(()=>{let ue=class{constructor(de,Ze,Xt,Jn,Cr){this.el=de.nativeElement,de.nativeElement.delegate=Jn.create(Ze,Xt,Cr),Lt(this,this.el,["ionNavDidChange","ionNavWillChange"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(ei),t.\u0275\u0275directiveInject(t.ViewContainerRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["ion-nav"]]}),ue=(0,x.gn)([Rt({inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],ue),ue})(),Mn=(()=>{class ue{constructor(de,Ze,Xt,Jn,Cr){this.locationStrategy=de,this.navCtrl=Ze,this.elementRef=Xt,this.router=Jn,this.routerLink=Cr,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var de;if(null===(de=this.routerLink)||void 0===de?void 0:de.urlTree){const Ze=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Ze}}onClick(de){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),de.preventDefault()}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(H.LocationStrategy),t.\u0275\u0275directiveInject(Mi),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(S.F0),t.\u0275\u0275directiveInject(S.rH,8))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("click",function(Jn){return Ze.onClick(Jn)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[t.\u0275\u0275NgOnChangesFeature]}),ue})(),qn=(()=>{class ue{constructor(de,Ze,Xt,Jn,Cr){this.locationStrategy=de,this.navCtrl=Ze,this.elementRef=Xt,this.router=Jn,this.routerLink=Cr,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var de;if(null===(de=this.routerLink)||void 0===de?void 0:de.urlTree){const Ze=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Ze}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(H.LocationStrategy),t.\u0275\u0275directiveInject(Mi),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(S.F0),t.\u0275\u0275directiveInject(S.rH,8))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(de,Ze){1&de&&t.\u0275\u0275listener("click",function(){return Ze.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[t.\u0275\u0275NgOnChangesFeature]}),ue})(),cr=(()=>{class ue{constructor(de){this.templateRef=de}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.TemplateRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["","virtualFooter",""]]}),ue})(),ur=(()=>{class ue{constructor(de){this.templateRef=de}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.TemplateRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["","virtualHeader",""]]}),ue})(),_r=(()=>{class ue{constructor(de,Ze){this.templateRef=de,this.viewContainer=Ze}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef))},ue.\u0275dir=t.\u0275\u0275defineDirective({type:ue,selectors:[["","virtualItem",""]]}),ue})(),Mr=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=de,this.iterableDiffers=Ze,this.refMap=new WeakMap,this.el=Xt.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(de){if(this.trackBy&&"items"in de){const Ze=de.items.currentValue;if(void 0===this.differ&&null!=Ze)try{this.differ=this.iterableDiffers.find(Ze).create(this.trackBy)}catch(Xt){throw new Error(`Cannot find a differ supporting object '${Ze}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(de,Ze,Xt){return this.z.run(()=>{let Jn;if(de){Jn=this.refMap.get(de);const Cr=Jn.context;Cr.$implicit=Ze.value,Cr.index=Ze.index}else Jn=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(Ze.type),{$implicit:Ze.value,index:Xt},Xt),de=Wr(Jn),this.refMap.set(de,Jn);return Jn.detectChanges(),de})}getComponent(de){switch(de){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef;default:throw new Error("template for virtual item was not provided")}}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(t.ElementRef))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-virtual-scroll"]],contentQueries:function(de,Ze,Xt){if(1&de&&(t.\u0275\u0275contentQuery(Xt,_r,5),t.\u0275\u0275contentQuery(Xt,ur,5),t.\u0275\u0275contentQuery(Xt,cr,5)),2&de){let Jn;t.\u0275\u0275queryRefresh(Jn=t.\u0275\u0275loadQuery())&&(Ze.itmTmp=Jn.first),t.\u0275\u0275queryRefresh(Jn=t.\u0275\u0275loadQuery())&&(Ze.hdrTmp=Jn.first),t.\u0275\u0275queryRefresh(Jn=t.\u0275\u0275loadQuery())&&(Ze.ftrTmp=Jn.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[t.\u0275\u0275NgOnChangesFeature],ngContentSelectors:We,decls:1,vars:0,template:function(de,Ze){1&de&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],ue),ue})();const Wr=ue=>{const et=ue.rootNodes;for(let de=0;de<et.length;de++)if(1===et[de].nodeType)return et[de];throw new Error("virtual element was not created")};let le=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,this.isCmpOpen=!1,this.el=Ze.nativeElement,this.el.addEventListener("willPresent",()=>{this.isCmpOpen=!0,de.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,de.detectChanges()}),Lt(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-modal"]],contentQueries:function(de,Ze,Xt){if(1&de&&t.\u0275\u0275contentQuery(Xt,t.TemplateRef,5),2&de){let Jn;t.\u0275\u0275queryRefresh(Jn=t.\u0275\u0275loadQuery())&&(Ze.template=Jn.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakp
1oint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",swipeToClose:"swipeToClose",translucent:"translucent",trigger:"trigger"},decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(de,Ze){1&de&&t.\u0275\u0275template(0,O,2,1,"div",0),2&de&&t.\u0275\u0275property("ngIf",Ze.isCmpOpen||Ze.keepContentsMounted)},directives:[H.NgIf,H.NgTemplateOutlet],encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({inputs:["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","swipeToClose","translucent","trigger"],methods:["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"]})],ue),ue})(),Ae=(()=>{let ue=class{constructor(de,Ze,Xt){this.z=Xt,this.isCmpOpen=!1,this.el=Ze.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,de.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,de.detectChanges()}),Lt(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}};return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},ue.\u0275cmp=t.\u0275\u0275defineComponent({type:ue,selectors:[["ion-popover"]],contentQueries:function(de,Ze,Xt){if(1&de&&t.\u0275\u0275contentQuery(Xt,t.TemplateRef,5),2&de){let Jn;t.\u0275\u0275queryRefresh(Jn=t.\u0275\u0275loadQuery())&&(Ze.template=Jn.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"},decls:1,vars:1,consts:[[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(de,Ze){1&de&&t.\u0275\u0275template(0,b,1,1,"ng-container",0),2&de&&t.\u0275\u0275property("ngIf",Ze.isCmpOpen||Ze.keepContentsMounted)},directives:[H.NgIf,H.NgTemplateOutlet],encapsulation:2,changeDetection:0}),ue=(0,x.gn)([Rt({inputs:["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],methods:["present","dismiss","onDidDismiss","onWillDismiss"]})],ue),ue})();class be{constructor(et){this.ctrl=et}create(et){return this.ctrl.create(et||{})}dismiss(et,de,Ze){return this.ctrl.dismiss(et,de,Ze)}getTop(){return this.ctrl.getTop()}}let Me=(()=>{class ue extends be{constructor(){super(V.b)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),dt=(()=>{class ue extends be{constructor(){super(V.a)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),rn=(()=>{class ue extends be{constructor(){super(V.l)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),fn=(()=>{class ue{open(de){return M.m.open(de)}close(de){return M.m.close(de)}toggle(de){return M.m.toggle(de)}enable(de,Ze){return M.m.enable(de,Ze)}swipeGesture(de,Ze){return M.m.swipeGesture(de,Ze)}
1isOpen(de){return M.m.isOpen(de)}isEnabled(de){return M.m.isEnabled(de)}get(de){return M.m.get(de)}getOpen(){return M.m.getOpen()}getMenus(){return M.m.getMenus()}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),xn=(()=>{class ue extends be{constructor(){super(V.p)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();class Er{}let gr=(()=>{class ue extends be{constructor(de,Ze,Xt,Jn){super(V.m),this.angularDelegate=de,this.resolver=Ze,this.injector=Xt,this.environmentInjector=Jn}create(de){var Ze;return super.create(Object.assign(Object.assign({},de),{delegate:this.angularDelegate.create(null!==(Ze=this.resolver)&&void 0!==Ze?Ze:this.environmentInjector,this.injector,void 0,"modal")}))}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275inject(ei),t.\u0275\u0275inject(t.ComponentFactoryResolver),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(Er,8))},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),hr=(()=>{class ue extends be{constructor(de,Ze,Xt,Jn){super(V.c),this.angularDelegate=de,this.resolver=Ze,this.injector=Xt,this.environmentInjector=Jn}create(de){var Ze;return super.create(Object.assign(Object.assign({},de),{delegate:this.angularDelegate.create(null!==(Ze=this.resolver)&&void 0!==Ze?Ze:this.environmentInjector,this.injector,void 0,"popover")}))}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275inject(ei),t.\u0275\u0275inject(t.ComponentFactoryResolver),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(Er,8))},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),pr=(()=>{class ue extends be{constructor(){super(V.t)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),zr=(()=>{class ue{read(de){ii().read(de)}write(de){ii().write(de)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const ii=()=>{const ue="undefined"!=typeof window?window:null;if(null!=ue){const et=ue.Ionic;return(null==et?void 0:et.queue)?et.queue:{read:de=>ue.requestAnimationFrame(de),write:de=>ue.requestAnimationFrame(de)}}return{read:et=>et(),write:et=>et()}};let Or=(()=>{class ue{create(de){return(0,W.c)(de)}easingTime(de,Ze,Xt,Jn,Cr){return(0,L.g)(de,Ze,Xt,Jn,Cr)}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),Je=(()=>{class ue{constructor(de){this.zone=de}create(de,Ze=!1){return Ze&&Object.getOwnPropertyNames(de).forEach(Xt=>{if("function"==typeof de[Xt]){const Jn=de[Xt];de[Xt]=(...Cr)=>this.zone.run(()=>Jn(...Cr))}}),(0,E.createGesture)(de)}}return ue.\u0275fac=function(de){return new(de||ue)(t.\u0275\u0275inject(t.NgZone))},ue.\u0275prov=t.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();class Ve{shouldDetach(et){return!1}shouldAttach(et){return!1}store(et,de){}retrieve(et){return null}shouldReuseRoute(et,de){if(et.routeConfig!==de.routeConfig)return!1;const Ze=et.params,Xt=de.params,Jn=Object.keys(Ze),Cr=Object.keys(Xt);if(Jn.length!==Cr.length)return!1;for(const Vr of Jn)if(Xt[Vr]!==Ze[Vr])return!1;return!0}}const Be=(ue,et,de)=>()=>{if(et.defaultView&&"undefined"!=typeof window){(0,R.s)(Object.assign(Object.assign({},ue),{_zoneGate:Jn=>de.run(Jn)}));const Xt="__zone_symbol__addEventListener"in et.body?"__zone_symbol__addEventListener":"addEventListener";return function ee(){var ue=[];if("undefined"!=typeof window){var et=window;(!et.customElements||et.Element&&(!et.Element.prototype.closest||!et.Element.prototype.matches||!et.Element.prototype.remove||!et.Element.prototype.getRootNode))&&ue.push(c.e(6748).then(c.t.bind(c,723,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||et.NodeList&&!et.NodeList.prototype.forEach||!et.fetch||!function(){try{var Ze=new 
1URL("b","http://a");return Ze.pathname="c%20d","http://a/c%20d"===Ze.href&&Ze.searchParams}catch(Xt){return!1}}()||"undefined"==typeof WeakMap)&&ue.push(c.e(2214).then(c.t.bind(c,4144,23)))}return Promise.all(ue)}().then(()=>((ue,et)=>"undefined"==typeof window?Promise.resolve():(0,Z.p)().then(()=>(z(),(0,Z.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]}
1,[[0,"keydown","onKeyDown"]]]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[
11],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"n
1ame":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}]]],["ion-select_3",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroun
1dElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}]]]]'),et))))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:p,jmp:Jn=>de.runOutsideAngular(Jn),ael(Jn,Cr,Vr,Jr){Jn[Xt](Cr,Vr,Jr)},rel(Jn,Cr,Vr,Jr){Jn.removeEventListener(Cr,Vr,Jr)}}))}};let Sr=(()=>{class ue{static forRoot(de){return{ngModule:ue,providers:[{provide:ss,useValue:de},{provide:t.APP_INITIALIZER,useFactory:Be,multi:!0,deps:[ss,H.DOCUMENT,t.NgZone]}]}}}return ue.\u0275fac=function(de){return new(de||ue)},ue.\u0275mod=t.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=t.\u0275\u0275defineInjector({providers:[ei,gr,hr],imports:[[H.CommonModule]]}),ue})()},181:(xe,q,c)=>{"use strict";c.d(q,{c:()=>j});var t=c(5730),_=c(3457);let x;const te=M=>M.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Q=M=>{if(void 0===x){const f=void 0!==M.style.webkitAnimationName;x=void 0===M.style.animationName&&f?"-webkit-":""}return x},S=(M,V,f)=>{const T=V.startsWith("animation")?Q(M):"";M.style.setProperty(T+V,f)},W=(M,V)=>{const f=V.startsWith("animation")?Q(M):"";M.style.removeProperty(f+V)},L=[],R=(M=[],V)=>{if(void 0!==V){const f=Array.isArray(V)?V:[V];return[...M,...f]}return M},j=M=>{let V,f,T,Z,G,$,H,ge,O,b,p,J,ie,se=[],y=[],k=[],I=!1,ee={},z=[],oe=[],ve={},We=0,Re=!1,He=!1,A=!0,N=!1,K=!0,he=!1;const Oe=M,Ne=[],Ye=[],Qe=[],Ct=[],Ot=[],ln=[],Lt=[],Jt=[],Rt=[],it=[],_t="function"==typeof AnimationEffect||void 0!==_.w&&"function"==typeof _.w.AnimationEffect,ut="function"==typeof Element&&"function"==typeof Element.prototype.animate&&_t,ht=()=>it,St=(Qt,En)=>(((null==En?void 0:En.oneTimeCallback)?Ye:Ne).push({c:Qt,o:En}),ie),ze=()=>{if(ut)it.forEach(Qt=>{Qt.cancel()}),it.length=0;else{const Qt=Qe.slice();(0,t.r)(()=>{Qt.forEach(En=>{W(En,"animation-name"),W(En,"animation-duration"),W(En,"animation-timing-function"),W(En,"animation-iteration-count"),W(En,"animation-delay"),W(En,"animation-play-state"),W(En,"animation-fill-mode"),W(En,"animation-direction")})})}},nt=()=>{Ot.forEach(Qt=>{(null==Qt?void 0:Qt.parentNode)&&Qt.parentNode.removeChild(Qt)}),Ot.length=0},Fn=()=>void 0!==G?G:H?H.getFill():"both",jn=()=>void 0!==O?O:void 0!==$?$:H?H.getDirection():"normal",nr=()=>Re?"linear":void 0!==T?T:H?H.getEasing():"linear",Tt=()=>He?0:void 0!==b?b:void 0!==f?f:H?H.getDuration():0,hn=()=>void 0!==Z?Z:H?H.getIterations():1,Se=()=>void 0!==p?p:void 0!==V?V:H?H.getDelay():0,on=()=>{0!==We&&(We--,0===We&&((()=>{Kr(),Jt.forEach(or=>or()),Rt.forEach(or=>or());const Qt=A?1:0,En=z,Hn=oe,er=ve;Qe.forEach(or=>{const wr=or.classList;En.forEach(Nr=>wr.add(Nr)),Hn.forEach(Nr=>wr.remove(Nr));for(const Nr in er)er.hasOwnProperty(Nr)&&S(or,Nr,er[Nr])}),Ne.forEach(or=>or.c(Qt,ie)),Ye.forEach(or=>or.c(Qt,ie)),Ye.length=0,K=!0,A&&(N=!0),A=!0})(),H&&H.animationFinish()))},mn=(Qt=!0)=>{nt();const En=(M=>
1(M.forEach(V=>{for(const f in V)if(V.hasOwnProperty(f)){const T=V[f];if("easing"===f)V["animation-timing-function"]=T,delete V[f];else{const Z=te(f);Z!==f&&(V[Z]=T,delete V[f])}}}),M))(se);Qe.forEach(Hn=>{if(En.length>0){const er=((M=[])=>M.map(V=>{const f=V.offset,T=[];for(const Z in V)V.hasOwnProperty(Z)&&"offset"!==Z&&T.push(`${Z}: ${V[Z]};`);return`${100*f}% { ${T.join(" ")} }`}).join(" "))(En);J=void 0!==M?M:(M=>{let V=L.indexOf(M);return V<0&&(V=L.push(M)-1),`ion-animation-${V}`})(er);const or=((M,V,f)=>{var T;const Z=(M=>{const V=void 0!==M.getRootNode?M.getRootNode():M;return V.head||V})(f),G=Q(f),$=Z.querySelector("#"+M);if($)return $;const se=(null!==(T=f.ownerDocument)&&void 0!==T?T:document).createElement("style");return se.id=M,se.textContent=`@${G}keyframes ${M} { ${V} } @${G}keyframes ${M}-alt { ${V} }`,Z.appendChild(se),se})(J,er,Hn);Ot.push(or),S(Hn,"animation-duration",`${Tt()}ms`),S(Hn,"animation-timing-function",nr()),S(Hn,"animation-delay",`${Se()}ms`),S(Hn,"animation-fill-mode",Fn()),S(Hn,"animation-direction",jn());const wr=hn()===1/0?"infinite":hn().toString();S(Hn,"animation-iteration-count",wr),S(Hn,"animation-play-state","paused"),Qt&&S(Hn,"animation-name",`${or.id}-alt`),(0,t.r)(()=>{S(Hn,"animation-name",or.id||null)})}})},ke=(Qt=!0)=>{(()=>{ln.forEach(er=>er()),Lt.forEach(er=>er());const Qt=y,En=k,Hn=ee;Qe.forEach(er=>{const or=er.classList;Qt.forEach(wr=>or.add(wr)),En.forEach(wr=>or.remove(wr));for(const wr in Hn)Hn.hasOwnProperty(wr)&&S(er,wr,Hn[wr])})})(),se.length>0&&(ut?(Qe.forEach(Qt=>{const En=Qt.animate(se,{id:Oe,delay:Se(),duration:Tt(),easing:nr(),iterations:hn(),fill:Fn(),direction:jn()});En.pause(),it.push(En)}),it.length>0&&(it[0].onfinish=()=>{on()})):mn(Qt)),I=!0},At=Qt=>{if(Qt=Math.min(Math.max(Qt,0),.9999),ut)it.forEach(En=>{En.currentTime=En.effect.getComputedTiming().delay+Tt()*Qt,En.pause()});else{const En=`-${Tt()*Qt}ms`;Qe.forEach(Hn=>{se.length>0&&(S(Hn,"animation-delay",En),S(Hn,"animation-play-state","paused"))})}},Ht=Qt=>{it.forEach(En=>{En.effect.updateTiming({delay:Se(),duration:Tt(),easing:nr(),iterations:hn(),fill:Fn(),direction:jn()})}),void 0!==Qt&&At(Qt)},Yt=(Qt=!0,En)=>{(0,t.r)(()=>{Qe.forEach(Hn=>{S(Hn,"animation-name",J||null),S(Hn,"animation-duration",`${Tt()}ms`),S(Hn,"animation-timing-function",nr()),S(Hn,"animation-delay",void 0!==En?`-${En*Tt()}ms`:`${Se()}ms`),S(Hn,"animation-fill-mode",Fn()||null),S(Hn,"animation-direction",jn()||null);const er=hn()===1/0?"infinite":hn().toString();S(Hn,"animation-iteration-count",er),Qt&&S(Hn,"animation-name",`${J}-alt`),(0,t.r)(()=>{S(Hn,"animation-name",J||null)})})})},un=(Qt=!1,En=!0,Hn)=>(Qt&&Ct.forEach(er=>{er.update(Qt,En,Hn)}),ut?Ht(Hn):Yt(En,Hn),ie),Ar=()=>{I&&(ut?it.forEach(Qt=>{Qt.pause()}):Qe.forEach(Qt=>{S(Qt,"animation-play-state","paused")}),he=!0)},dr=()=>{ge=void 0,on()},Kr=()=>{ge&&clearTimeout(ge)},kt=Qt=>new Promise(En=>{(null==Qt?void 0:Qt.sync)&&(He=!0,St(()=>He=!1,{oneTimeCallback:!0})),I||ke(),N&&(ut?(At(0),Ht()):Yt(),N=!1),K&&(We=Ct.length+1,K=!1),St(()=>En(),{oneTimeCallback:!0}),Ct.forEach(Hn=>{Hn.play()}),ut?(it.forEach(Qt=>{Qt.play()}),(0===se.length||0===Qe.length)&&on()):(()=>{if(Kr(),(0,t.r)(()=>{Qe.forEach(Qt=>{se.length>0&&S(Qt,"animation-play-state","running")})}),0===se.length||0===Qe.length)on();else{const Qt=Se()||0,En=Tt()||0,Hn=hn()||1;isFinite(Hn)&&(ge=setTimeout(dr,Qt+En*Hn+100)),((M,V)=>{let f;const T={passive:!0},G=$=>{M===$.target&&(f&&f(),Kr(),(0,t.r)(()=>{Qe.forEach(Qt=>{W(Qt,"animation-duration"),W(Qt,"animation-delay"),W(Qt,"animation-play-state")}),(0,t.r)(on)}))};M&&(M.addEventListener("webkitAnimationEnd",G,T),M.addEventListener("animationend",G,T),f=()=>{M.removeEventListener("webkitAnimationEnd",G,T),M.removeEventListener("animationend",G,T)})})(Qe[0])}})(),he=!1}),Dn=(Qt,En)=>{const Hn=se[0];return void 0===Hn||void 0!==Hn.offset&&0!==Hn.offset?se=[{offset:0,[Qt]:En},...se]:Hn[Qt]=En,ie};return ie={parentAnimation:H,elements:Qe,childAnimations:Ct,id:Oe,animationFinish:on,from:Dn,to:(Qt,En)=>{const Hn=se[se.length-1];return void 0===Hn||void 0!==Hn.offset&&1!==Hn.offset?se=[...se,{offset:1,[Qt]:En}]:Hn[Qt]=En,ie},fromTo:(Qt,En,Hn)=>
1Dn(Qt,En).to(Qt,Hn),parent:Qt=>(H=Qt,ie),play:kt,pause:()=>(Ct.forEach(Qt=>{Qt.pause()}),Ar(),ie),stop:()=>{Ct.forEach(Qt=>{Qt.stop()}),I&&(ze(),I=!1),Re=!1,He=!1,K=!0,O=void 0,b=void 0,p=void 0,We=0,N=!1,A=!0,he=!1},destroy:Qt=>(Ct.forEach(En=>{En.destroy(Qt)}),(Qt=>{ze(),Qt&&nt()})(Qt),Qe.length=0,Ct.length=0,se.length=0,Ne.length=0,Ye.length=0,I=!1,K=!0,ie),keyframes:Qt=>{const En=se!==Qt;return se=Qt,En&&(Qt=>{ut?ht().forEach(En=>{if(En.effect.setKeyframes)En.effect.setKeyframes(Qt);else{const Hn=new KeyframeEffect(En.effect.target,Qt,En.effect.getTiming());En.effect=Hn}}):mn()})(se),ie},addAnimation:Qt=>{if(null!=Qt)if(Array.isArray(Qt))for(const En of Qt)En.parent(ie),Ct.push(En);else Qt.parent(ie),Ct.push(Qt);return ie},addElement:Qt=>{if(null!=Qt)if(1===Qt.nodeType)Qe.push(Qt);else if(Qt.length>=0)for(let En=0;En<Qt.length;En++)Qe.push(Qt[En]);else console.error("Invalid addElement value");return ie},update:un,fill:Qt=>(G=Qt,un(!0),ie),direction:Qt=>($=Qt,un(!0),ie),iterations:Qt=>(Z=Qt,un(!0),ie),duration:Qt=>(!ut&&0===Qt&&(Qt=1),f=Qt,un(!0),ie),easing:Qt=>(T=Qt,un(!0),ie),delay:Qt=>(V=Qt,un(!0),ie),getWebAnimations:ht,getKeyframes:()=>se,getFill:Fn,getDirection:jn,getDelay:Se,getIterations:hn,getEasing:nr,getDuration:Tt,afterAddRead:Qt=>(Jt.push(Qt),ie),afterAddWrite:Qt=>(Rt.push(Qt),ie),afterClearStyles:(Qt=[])=>{for(const En of Qt)ve[En]="";return ie},afterStyles:(Qt={})=>(ve=Qt,ie),afterRemoveClass:Qt=>(oe=R(oe,Qt),ie),afterAddClass:Qt=>(z=R(z,Qt),ie),beforeAddRead:Qt=>(ln.push(Qt),ie),beforeAddWrite:Qt=>(Lt.push(Qt),ie),beforeClearStyles:(Qt=[])=>{for(const En of Qt)ee[En]="";return ie},beforeStyles:(Qt={})=>(ee=Qt,ie),beforeRemoveClass:Qt=>(k=R(k,Qt),ie),beforeAddClass:Qt=>(y=R(y,Qt),ie),onFinish:St,isRunning:()=>0!==We&&!he,progressStart:(Qt=!1,En)=>(Ct.forEach(Hn=>{Hn.progressStart(Qt,En)}),Ar(),Re=Qt,I||ke(),un(!1,!0,En),ie),progressStep:Qt=>(Ct.forEach(En=>{En.progressStep(Qt)}),At(Qt),ie),progressEnd:(Qt,En,Hn)=>(Re=!1,Ct.forEach(er=>{er.progressEnd(Qt,En,Hn)}),void 0!==Hn&&(b=Hn),N=!1,A=!0,0===Qt?(O="reverse"===jn()?"normal":"reverse","reverse"===O&&(A=!1),ut?(un(),At(1-En)):(p=(1-En)*Tt()*-1,un(!1,!1))):1===Qt&&(ut?(un(),At(En)):(p=En*Tt()*-1,un(!1,!1))),void 0!==Qt&&(St(()=>{b=void 0,O=void 0,p=void 0},{oneTimeCallback:!0}),H||kt()),ie)}}},5820:(xe,q,c)=>{"use strict";c.d(q,{E:()=>C,I:()=>S,a:()=>t,s:()=>W});const t=L=>{try{if(L instanceof S)return L.value;if(!re()||"string"!=typeof L||""===L)return L;if(L.includes("onload="))return"";const E=document.createDocumentFragment(),m=document.createElement("div");E.appendChild(m),m.innerHTML=L,Q.forEach(M=>{const V=E.querySelectorAll(M);for(let f=V.length-1;f>=0;f--){const T=V[f];T.parentNode?T.parentNode.removeChild(T):E.removeChild(T);const Z=x(T);for(let G=0;G<Z.length;G++)_(Z[G])}});const v=x(E);for(let M=0;M<v.length;M++)_(v[M]);const R=document.createElement("div");R.appendChild(E);const j=R.querySelector("div");return null!==j?j.innerHTML:R.innerHTML}catch(E){return console.error(E),""}},_=L=>{if(L.nodeType&&1!==L.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(L.attributes instanceof NamedNodeMap))return void L.remove();for(let m=L.attributes.length-1;m>=0;m--){const v=L.attributes.item(m),R=v.name;if(!te.includes(R.toLowerCase())){L.removeAttribute(R);continue}const j=v.value,M=L[R];(null!=j&&j.toLowerCase().includes("javascript:")||null!=M&&M.toLowerCase().includes("javascript:"))&&L.removeAttribute(R)}const E=x(L);for(let m=0;m<E.length;m++)_(E[m])},x=L=>null!=L.children?L.children:L.childNodes,re=()=>{var L;const E=window,m=null===(L=null==E?void 0:E.Ionic)||void 0===L?void 0:L.config;return!m||(m.get?m.get("sanitizerEnabled",!0):!0===m.sanitizerEnabled||void 0===m.sanitizerEnabled)},te=["class","id","href","src","name","slot"],Q=["script","style","iframe","meta","link","object","embed"];class S{constructor(E){this.value=E}}const W=L=>{const E=window,m=E.Ionic;if(!m||!m.config||"Object"===m.config.constructor.name)return E.Ionic=E.Ionic||{},E.Ionic.config=Object.assign(Object.assign({},E.Ionic.config),L),E.Ionic.config},C=!0},2225:(xe,q,c)=>{"use strict";c.d(q,{g:()=>t});const t=(Q,S,W,P,C)=>x(Q[1],S[1],W[1],P[1],C).map(L=>_(Q[0],S[0],W[0],P[0],L)),_=(Q,S,W,P,C)=>C*(3*S*Math.pow(C-1,2)+C*(-3*W*C+3*W+P*C))-Q*Math.pow(C-1,3),x=(Q,S,W,P,C)=>te((P-=C)-3*(W-=C)+3*(S-=C)-(Q-=C),3*W-6*S+3*Q,3*S-3*Q,Q).filter(E=>E>=0&&E<=1),te=(Q,S,W,P)=>{if(0===Q)return((Q,S,W)=>{const P=S*S-4*Q*W;return P<0?[]:[(-S+Math.sqrt(P))/(2*Q),(-S-Math.sqrt(P))/(2*Q)]})(S,W,P);const C=(3*(W/=Q)-(S/=Q)*S)/3,L=(2*S*S*S-9*S*W+27*(P/=Q))/27;
1if(0===C)return[Math.pow(-L,1/3)];if(0===L)return[Math.sqrt(-C),-Math.sqrt(-C)];const E=Math.pow(L/2,2)+Math.pow(C/3,3);if(0===E)return[Math.pow(L/2,.5)-S/3];if(E>0)return[Math.pow(-L/2+Math.sqrt(E),1/3)-Math.pow(L/2+Math.sqrt(E),1/3)-S/3];const m=Math.sqrt(Math.pow(-C/3,3)),v=Math.acos(-L/(2*Math.sqrt(Math.pow(-C/3,3)))),R=2*Math.pow(m,1/3);return[R*Math.cos(v/3)-S/3,R*Math.cos((v+2*Math.PI)/3)-S/3,R*Math.cos((v+4*Math.PI)/3)-S/3]}},4349:(xe,q,c)=>{"use strict";c.d(q,{G:()=>te});class _{constructor(S,W,P,C,L){this.id=W,this.name=P,this.disableScroll=L,this.priority=1e6*C+W,this.ctrl=S}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const S=this.ctrl.capture(this.name,this.id,this.priority);return S&&this.disableScroll&&this.ctrl.disableScroll(this.id),S}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class x{constructor(S,W,P,C){this.id=W,this.disable=P,this.disableScroll=C,this.ctrl=S}block(){if(this.ctrl){if(this.disable)for(const S of this.disable)this.ctrl.disableGesture(S,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const S of this.disable)this.ctrl.enableGesture(S,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const re="backdrop-no-scroll",te=new class t{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(S){var W;return new _(this,this.newID(),S.name,null!==(W=S.priority)&&void 0!==W?W:0,!!S.disableScroll)}createBlocker(S={}){return new x(this,this.newID(),S.disable,!!S.disableScroll)}start(S,W,P){return this.canStart(S)?(this.requestedStart.set(W,P),!0):(this.requestedStart.delete(W),!1)}capture(S,W,P){if(!this.start(S,W,P))return!1;const C=this.requestedStart;let L=-1e4;if(C.forEach(E=>{L=Math.max(L,E)}),L===P){this.capturedId=W,C.clear();const E=new CustomEvent("ionGestureCaptured",{detail:{gestureName:S}});return document.dispatchEvent(E),!0}return C.delete(W),!1}release(S){this.requestedStart.delete(S),this.capturedId===S&&(this.capturedId=void 0)}disableGesture(S,W){let P=this.disabledGestures.get(S);void 0===P&&(P=new Set,this.disabledGestures.set(S,P)),P.add(W)}enableGesture(S,W){const P=this.disabledGestures.get(S);void 0!==P&&P.delete(W)}disableScroll(S){this.disabledScroll.add(S),1===this.disabledScroll.size&&document.body.classList.add(re)}enableScroll(S){this.disabledScroll.delete(S),0===this.disabledScroll.size&&document.body.classList.remove(re)}canStart(S){return!(void 0!==this.capturedId||this.isDisabled(S))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(S){const W=this.disabledGestures.get(S);return!!(W&&W.size>0)}newID(){return this.gestureId++,this.gestureId}}},7593:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{MENU_BACK_BUTTON_PRIORITY:()=>te,OVERLAY_BACK_BUTTON_PRIORITY:()=>re,blockHardwareBackButton:()=>_,startHardwareBackButton:()=>x});var t=c(5861);const _=()=>{document.addEventListener("backbutton",()=>{})},x=()=>{const Q=document;let S=!1;Q.addEventListener("backbutton",()=>{if(S)return;let W=0,P=[];const C=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(m,v){P.push({priority:m,handler:v,id:W++})}}});Q.dispatchEvent(C);const L=function(){var m=(0,t.Z)(function*(v){try{if(null==v?void 0:v.handler){const R=v.handler(E);null!=R&&(yield R)}}catch(R){console.error(R)}});return function(R){return m.apply(this,arguments)}}(),E=()=>{if(P.length>0){let m={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};P.forEach(v=>{v.priority>=m.priority&&(m=v)}),S=!0,P=P.filter(v=>v.id!==m.id),L(m).then(()=>S=!1)}};E()})},re=100,te=99},5730:(xe,q,c)=>{"use strict";c.d(q,{a:()=>S,b:()=>W,c:()=>x,d:()=>v,e:()=>R,f:()=>m,g:()=>P,h:()=>Z,i:()=>Q,j:()=>re,k:()=>E,l:()=>j,m:()=>L,n:()=>M,o:()=>T,p:()=>f,q:()=>G,r:()=>C,s:()=>$,t:()=>t,u:()=>V});const t=(se,y=0)=>new Promise(k=>{_(se,y,k)}),_=(se,y=0,k)=>{let I,H;const ee={passive:!0},oe=()=>{I&&I()},ve=We=>{(void 0===We||se===We.target)&&(oe(),k(We))};return se&&(se.addEventListener("webkitTransitionEnd",ve,ee),se.addEventListener("transitionend",ve,ee),H=setTimeout(ve,y+500),I=()=>{H&&(clearTimeout(H),H=void 0),se.removeEventListener("webkitTransitionEnd",ve,ee),se.removeEventListener("transitionend",ve,ee)}),oe},x=(se,y)=>{se.componentOnReady?se.componentOnReady().then(k=>y(k)):C(()=>y(se))},re=(se,y=[])=>{const k={};
1return y.forEach(I=>{se.hasAttribute(I)&&(null!==se.getAttribute(I)&&(k[I]=se.getAttribute(I)),se.removeAttribute(I))}),k},te=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Q=(se,y)=>{let k=te;return y&&y.length>0&&(k=k.filter(I=>!y.includes(I))),re(se,k)},S=(se,y,k,I)=>{var H;if("undefined"!=typeof window){const ee=window,z=null===(H=null==ee?void 0:ee.Ionic)||void 0===H?void 0:H.config;if(z){const oe=z.get("_ael");if(oe)return oe(se,y,k,I);if(z._ael)return z._ael(se,y,k,I)}}return se.addEventListener(y,k,I)},W=(se,y,k,I)=>{var H;if("undefined"!=typeof window){const ee=window,z=null===(H=null==ee?void 0:ee.Ionic)||void 0===H?void 0:H.config;if(z){const oe=z.get("_rel");if(oe)return oe(se,y,k,I);if(z._rel)return z._rel(se,y,k,I)}}return se.removeEventListener(y,k,I)},P=(se,y=se)=>se.shadowRoot||y,C=se=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(se):"function"==typeof requestAnimationFrame?requestAnimationFrame(se):setTimeout(se),L=se=>!!se.shadowRoot&&!!se.attachShadow,E=se=>{const y=se.closest("ion-item");return y?y.querySelector("ion-label"):null},m=se=>{if(se.focus(),se.classList.contains("ion-focusable")){const y=se.closest("ion-app");y&&y.setFocus([se])}},v=(se,y)=>{let k;const I=se.getAttribute("aria-labelledby"),H=se.id;let ee=null!==I&&""!==I.trim()?I:y+"-lbl",z=null!==I&&""!==I.trim()?document.getElementById(I):E(se);return z?(null===I&&(z.id=ee),k=z.textContent,z.setAttribute("aria-hidden","true")):""!==H.trim()&&(z=document.querySelector(`label[for="${H}"]`),z&&(""!==z.id?ee=z.id:z.id=ee=`${H}-lbl`,k=z.textContent)),{label:z,labelId:ee,labelText:k}},R=(se,y,k,I,H)=>{if(se||L(y)){let ee=y.querySelector("input.aux-input");ee||(ee=y.ownerDocument.createElement("input"),ee.type="hidden",ee.classList.add("aux-input"),y.appendChild(ee)),ee.disabled=H,ee.name=k,ee.value=I||""}},j=(se,y,k)=>Math.max(se,Math.min(y,k)),M=(se,y)=>{if(!se){const k="ASSERT: "+y;throw console.error(k),new Error(k)}},V=se=>se.timeStamp||Date.now(),f=se=>{if(se){const y=se.changedTouches;if(y&&y.length>0){const k=y[0];return{x:k.clientX,y:k.clientY}}if(void 0!==se.pageX)return{x:se.pageX,y:se.pageY}}return{x:0,y:0}},T=se=>{const y="rtl"===document.dir;switch(se){case"start":return y;case"end":return!y;default:throw new Error(`"${se}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Z=(se,y)=>{const k=se._original||se;return{_original:se,emit:G(k.emit.bind(k),y)}},G=(se,y=0)=>{let k;return(...I)=>{clearTimeout(k),k=setTimeout(se,y,...I)}},$=(se,y)=>{if(null!=se||(se={}),null!=y||(y={}),se===y)return!0;const k=Object.keys(se);if(k.length!==Object.keys(y).length)return!1;for(const I of k)if(!(I in y)||se[I]!==y[I])return!1;return!0}},1843:(xe,q,c)=>{"use strict";c.d(q,{L:()=>re,a:()=>te,b:()=>Q,c:()=>S,d:()=>W,e:()=>y,g:()=>H,l:()=>$,s:()=>k,t:()=>L});var t=c(5861),_=c(1308),x=c(5730);const re="ionViewWillEnter",te="ionViewDidEnter",Q="ionViewWillLeave",S="ionViewDidLeave",W="ionViewWillUnload",L=ee=>new Promise((z,oe)=>{(0,_.c)(()=>{E(ee),m(ee).then(ve=>{ve.animation&&ve.animation.destroy(),v(ee),z(ve)},ve=>{v(ee),oe(ve)})})}),E=ee=>{const z=ee.enteringEl,oe=ee.leavingEl;I(z,oe,ee.direction),ee.showGoBack?z.classList.add("can-go-back"):z.classList.remove("can-go-back"),k(z,!1),z.style.setProperty("pointer-events","none"),oe&&(k(oe,!1),oe.style.setProperty("pointer-events","none"))},m=function(){var ee=(0,t.Z)(function*(z){const oe=yield R(z);return oe&&_.B.isBrowser?j(oe,z):M(z)});return function(oe){return ee.apply(this,arguments)}}(),v=ee=>{const z=ee.enteringEl,oe=ee.leavingEl;z.classList.remove("ion-page-invisible"),z.style.removeProperty("pointer-events"),void 0!==oe&&(oe.classList.remove("ion-page-invisible"),oe.style.removeProperty("pointer-events"))},R=function(){var ee=(0,t.Z)(function*(z){return z.leavingEl&&z.animated&&0!==z.duration?z.animationBuilder?z.animationBuilder:"ios"===z.mode?(yield Promise.resolve().then(c.bind(c,6439))).iosTransitionAnimation:(yield Promise.resolve().then(c.bind(c,7838))).mdTransitionAnimation:void 0});return function(oe){return ee.apply(this,arguments)}}
1(),j=function(){var ee=(0,t.Z)(function*(z,oe){yield V(oe,!0);const ve=z(oe.baseEl,oe);Z(oe.enteringEl,oe.leavingEl);const We=yield T(ve,oe);return oe.progressCallback&&oe.progressCallback(void 0),We&&G(oe.enteringEl,oe.leavingEl),{hasCompleted:We,animation:ve}});return function(oe,ve){return ee.apply(this,arguments)}}(),M=function(){var ee=(0,t.Z)(function*(z){const oe=z.enteringEl,ve=z.leavingEl;return yield V(z,!1),Z(oe,ve),G(oe,ve),{hasCompleted:!0}});return function(oe){return ee.apply(this,arguments)}}(),V=function(){var ee=(0,t.Z)(function*(z,oe){const We=(void 0!==z.deepWait?z.deepWait:oe)?[y(z.enteringEl),y(z.leavingEl)]:[se(z.enteringEl),se(z.leavingEl)];yield Promise.all(We),yield f(z.viewIsReady,z.enteringEl)});return function(oe,ve){return ee.apply(this,arguments)}}(),f=function(){var ee=(0,t.Z)(function*(z,oe){z&&(yield z(oe))});return function(oe,ve){return ee.apply(this,arguments)}}(),T=(ee,z)=>{const oe=z.progressCallback,ve=new Promise(We=>{ee.onFinish(Re=>We(1===Re))});return oe?(ee.progressStart(!0),oe(ee)):ee.play(),ve},Z=(ee,z)=>{$(z,Q),$(ee,re)},G=(ee,z)=>{$(ee,te),$(z,S)},$=(ee,z)=>{if(ee){const oe=new CustomEvent(z,{bubbles:!1,cancelable:!1});ee.dispatchEvent(oe)}},se=ee=>ee?new Promise(z=>(0,x.c)(ee,z)):Promise.resolve(),y=function(){var ee=(0,t.Z)(function*(z){const oe=z;if(oe){if(null!=oe.componentOnReady){if(null!=(yield oe.componentOnReady()))return}else if(null!=oe.__registerHost)return void(yield new Promise(We=>(0,x.r)(We)));yield Promise.all(Array.from(oe.children).map(y))}});return function(oe){return ee.apply(this,arguments)}}(),k=(ee,z)=>{z?(ee.setAttribute("aria-hidden","true"),ee.classList.add("ion-page-hidden")):(ee.hidden=!1,ee.removeAttribute("aria-hidden"),ee.classList.remove("ion-page-hidden"))},I=(ee,z,oe)=>{void 0!==ee&&(ee.style.zIndex="back"===oe?"99":"101"),void 0!==z&&(z.
1style.zIndex="100")},H=ee=>ee.classList.contains("ion-page")?ee:ee.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||ee},6369:(xe,q,c)=>{"use strict";c.d(q,{m:()=>L});var t=c(5861),_=c(7593),x=c(5730),re=c(5179),te=c(181);const Q=E=>(0,te.c)().duration(E?400:300),S=E=>{let m,v;const R=E.width+8,j=(0,te.c)(),M=(0,te.c)();E.isEndSide?(m=R+"px",v="0px"):(m=-R+"px",v="0px"),j.addElement(E.menuInnerEl).fromTo("transform",`translateX(${m})`,`translateX(${v})`);const f="ios"===(0,re.b)(E),T=f?.2:.25;return M.addElement(E.backdropEl).fromTo("opacity",.01,T),Q(f).addAnimation([j,M])},W=E=>{let m,v;const R=(0,re.b)(E),j=E.width;E.isEndSide?(m=-j+"px",v=j+"px"):(m=j+"px",v=-j+"px");const M=(0,te.c)().addElement(E.menuInnerEl).fromTo("transform",`translateX(${v})`,"translateX(0px)"),V=(0,te.c)().addElement(E.contentEl).fromTo("transform","translateX(0px)",`translateX(${m})`),f=(0,te.c)().addElement(E.backdropEl).fromTo("opacity",.01,.32);return Q("ios"===R).addAnimation([M,V,f])},P=E=>{const m=(0,re.b)(E),v=E.width*(E.isEndSide?-1:1)+"px",R=(0,te.c)().addElement(E.contentEl).fromTo("transform","translateX(0px)",`translateX(${v})`);return Q("ios"===m).addAnimation(R)},L=(()=>{const E=new Map,m=[],v=function(){var ge=(0,t.Z)(function*(O){const b=yield Z(O);return!!b&&b.open()});return function(b){return ge.apply(this,arguments)}}(),R=function(){var ge=(0,t.Z)(function*(O){const b=yield void 0!==O?Z(O):G();return void 0!==b&&b.close()});return function(b){return ge.apply(this,arguments)}}(),j=function(){var ge=(0,t.Z)(function*(O){const b=yield Z(O);return!!b&&b.toggle()});return function(b){return ge.apply(this,arguments)}}(),M=function(){var ge=(0,t.Z)(function*(O,b){const p=yield Z(b);return p&&(p.disabled=!O),p});return function(b,p){return ge.apply(this,arguments)}}(),V=function(){var ge=(0,t.Z)(function*(O,b){const p=yield Z(b);return p&&(p.swipeGesture=O),p});return function(b,p){return ge.apply(this,arguments)}}(),f=function(){var ge=(0,t.Z)(function*(O){if(null!=O){const b=yield Z(O);return void 0!==b&&b.isOpen()}return void 0!==(yield G())});return function(b){return ge.apply(this,arguments)}}(),T=function(){var ge=(0,t.Z)(function*(O){const b=yield Z(O);return!!b&&!b.disabled});return function(b){return ge.apply(this,arguments)}}(),Z=function(){var ge=(0,t.Z)(function*(O){return yield He(),"start"===O||"end"===O?Re(A=>A.side===O&&!A.disabled)||Re(A=>A.side===O):null!=O?Re(p=>p.menuId===O):Re(p=>!p.disabled)||(m.length>0?m[0].el:void 0)});return function(b){return ge.apply(this,arguments)}}(),G=function(){var ge=(0,t.Z)(function*(){return yield He(),oe()});return function(){return ge.apply(this,arguments)}}(),$=function(){var ge=(0,t.Z)(function*(){return yield He(),ve()});return function(){return ge.apply(this,arguments)}}(),se=function(){var ge=(0,t.Z)(function*(){return yield He(),We()});return function(){return ge.apply(this,arguments)}}(),y=(ge,O)=>{E.set(ge,O)},H=ge=>{const O=ge.side;m.filter(b=>b.side===O&&b!==ge).forEach(b=>b.disabled=!0)},ee=function(){var ge=(0,t.Z)(function*(O,b,p){if(We())return!1;if(b){const A=yield G();A&&O.el!==A&&(yield A.setOpen(!1,!1))}return O._setOpen(b,p)});return function(b,p,A){return ge.apply(this,arguments)}}(),oe=()=>Re(ge=>ge._isOpen),ve=()=>m.map(ge=>ge.el),We=()=>m.some(ge=>ge.isAnimating),Re=ge=>{const O=m.find(ge);if(void 0!==O)return O.el},He=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(ge=>new Promise(O=>(0,x.c)(ge,O))));return y("reveal",P),y("push",W),y("overlay",S),"undefined"!=typeof document&&document.addEventListener("ionBackButton",ge=>{const O=oe();O&&ge.detail.register(_.MENU_BACK_BUTTON_PRIORITY,()=>O.close())}),{registerAnimation:y,get:Z,getMenus:$,getOpen:G,isEnabled:T,swipeGesture:V,isAnimating:se,isOpen:f,enable:M,toggle:j,close:R,open:v,_getOpenSync:oe,_createAnimation:(ge,O)=>{const b=E.get(ge);if(!b)throw new Error("animation not registered");return b(O)},_register:ge=>{m.indexOf(ge)<0&&(ge.disabled||H(ge),m.push(ge))},_unregister:ge=>{const O=m.indexOf(ge);O>-1&&m.splice(O,1)},_setOpen:ee,_setActiveMenu:H}})()},3457:(xe,q,c)=>{"use strict";c.d(q,{w:()=>t});const t="undefined"!=typeof window?window:void 0},1898:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{GESTURE_CONTROLLER:()=>t.G,createGesture:()=>P});var t=c(4349);const _=(m,v,R,j)=>{const M=x(m)?{capture:!!j.capture,passive:!!j.passive}:!!j.capture;let V,f;return m.__zone_symbol__addEventListener?(V="__zone_symbol__addEventListener",f="__zone_symbol__removeEventListener"):(V="addEventListener",f="removeEventListener"),m[V](v,R,M),()=>{m[f](v,R,M)}},x=m=>{if(void 0===re)try{const v=Object.defineProperty({},"passive",{get:()=>{re=!0}});m.addEventListener("optsTest",()=>{},v)}catch(v){re=!1}return!!re};let re;
1const S=m=>m instanceof Document?m:m.ownerDocument,P=m=>{let v=!1,R=!1,j=!0,M=!1;const V=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},m),f=V.canStart,T=V.onWillStart,Z=V.onStart,G=V.onEnd,$=V.notCaptured,se=V.onMove,y=V.threshold,k=V.passive,I=V.blurOnStart,H={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},ee=((m,v,R)=>{const j=R*(Math.PI/180),M="x"===m,V=Math.cos(j),f=v*v;let T=0,Z=0,G=!1,$=0;return{start(se,y){T=se,Z=y,$=0,G=!0},detect(se,y){if(!G)return!1;const k=se-T,I=y-Z,H=k*k+I*I;if(H<f)return!1;const ee=Math.sqrt(H),z=(M?k:I)/ee;return $=z>V?1:z<-V?-1:0,G=!1,!0},isGesture:()=>0!==$,getDirection:()=>$}})(V.direction,V.threshold,V.maxAngle),z=t.G.createGesture({name:m.gestureName,priority:m.gesturePriority,disableScroll:m.disableScroll}),We=()=>{!v||(M=!1,se&&se(H))},Re=()=>!!z.capture()&&(v=!0,j=!1,H.startX=H.currentX,H.startY=H.currentY,H.startTime=H.currentTime,T?T(H).then(ge):ge(),!0),ge=()=>{I&&(()=>{if("undefined"!=typeof document){const N=document.activeElement;(null==N?void 0:N.blur)&&N.blur()}})(),Z&&Z(H),j=!0},O=()=>{v=!1,R=!1,M=!1,j=!0,z.release()},b=N=>{const K=v,J=j;if(O(),J){if(C(H,N),K)return void(G&&G(H));$&&$(H)}},p=((m,v,R,j,M)=>{let V,f,T,Z,G,$,se,y=0;const k=He=>{y=Date.now()+2e3,v(He)&&(!f&&R&&(f=_(m,"touchmove",R,M)),T||(T=_(He.target,"touchend",H,M)),Z||(Z=_(He.target,"touchcancel",H,M)))},I=He=>{y>Date.now()||!v(He)||(!$&&R&&($=_(S(m),"mousemove",R,M)),se||(se=_(S(m),"mouseup",ee,M)))},H=He=>{z(),j&&j(He)},ee=He=>{oe(),j&&j(He)},z=()=>{f&&f(),T&&T(),Z&&Z(),f=T=Z=void 0},oe=()=>{$&&$(),se&&se(),$=se=void 0},ve=()=>{z(),oe()},We=(He=!0)=>{He?(V||(V=_(m,"touchstart",k,M)),G||(G=_(m,"mousedown",I,M))):(V&&V(),G&&G(),V=G=void 0,ve())};return{enable:We,stop:ve,destroy:()=>{We(!1),j=R=v=void 0}}})(V.el,N=>{const K=E(N);return!(R||!j||(L(N,H),H.startX=H.currentX,H.startY=H.currentY,H.startTime=H.currentTime=K,H.velocityX=H.velocityY=H.deltaX=H.deltaY=0,H.event=N,f&&!1===f(H))||(z.release(),!z.start()))&&(R=!0,0===y?Re():(ee.start(H.startX,H.startY),!0))},N=>{v?!M&&j&&(M=!0,C(H,N),requestAnimationFrame(We)):(C(H,N),ee.detect(H.currentX,H.currentY)&&(!ee.isGesture()||!Re())&&A())},b,{capture:!1,passive:k}),A=()=>{O(),p.stop(),$&&$(H)};return{enable(N=!0){N||(v&&b(void 0),O()),p.enable(N)},destroy(){z.destroy(),p.destroy()}}},C=(m,v)=>{if(!v)return;const R=m.currentX,j=m.currentY,M=m.currentTime;L(v,m);const V=m.currentX,f=m.currentY,Z=(m.currentTime=E(v))-M;if(Z>0&&Z<100){const $=(f-j)/Z;m.velocityX=(V-R)/Z*.7+.3*m.velocityX,m.velocityY=.7*$+.3*m.velocityY}m.deltaX=V-m.startX,m.deltaY=f-m.startY,m.event=v},L=(m,v)=>{let R=0,j=0;if(m){const M=m.changedTouches;if(M&&M.length>0){const V=M[0];R=V.clientX,j=V.clientY}else void 0!==m.pageX&&(R=m.pageX,j=m.pageY)}v.currentX=R,v.currentY=j},E=m=>m.timeStamp||Date.now()},1308:(xe,q,c)=>{"use strict";c.d(q,{B:()=>_i,H:()=>Qe,a:()=>A,b:()=>Wt,c:()=>Lr,e:()=>Un,f:()=>Ur,g:()=>N,h:()=>Ne,i:()=>Kt,j:()=>jn,k:()=>jt,p:()=>j,r:()=>Mt,s:()=>v});var t=c(5861);let x,re,te,Q=!1,S=!1,W=!1,P=!1,C=!1;const L="undefined"!=typeof window?window:{},E=L.document||{head:{}},m={$flags$:0,$resourcesUrl$:"",jmp:kt=>kt(),raf:kt=>requestAnimationFrame(kt),ael:(kt,an,Dn,Bn)=>kt.addEventListener(an,Dn,Bn),rel:(kt,an,Dn,Bn)=>kt.removeEventListener(an,Dn,Bn),ce:(kt,an)=>new CustomEvent(kt,an)},v=kt=>{Object.assign(m,kt)},j=kt=>Promise.resolve(kt),M=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(kt){}return!1})(),V=(kt,an,Dn,Bn)=>{Dn&&Dn.map(([Yn,Qt,En])=>{const Hn=T(kt,Yn),er=f(an,En),or=Z(Yn);m.ael(Hn,Qt,er,or),(an.$rmListeners$=an.$rmListeners$||[]).push(()=>m.rel(Hn,Qt,er,or))})},f=(kt,an)=>Dn=>{try{256&kt.$flags$?kt.$lazyInstance$[an](Dn):(kt.$queuedListeners$=kt.$queuedListeners$||[]).push([an,Dn])}catch(Bn){Ht(Bn)}},T=(kt,an)=>4&an?E:8&an?L:16&an?E.body:kt,Z=kt=>0!=(2&kt),k="s-id",I="sty-id",H="c-id",z="http://www.w3.org/1999/xlink",We=new WeakMap,Re=(kt,an,Dn)=>{let Bn=An.get(kt);M&&Dn?(Bn=Bn||new CSSStyleSheet,"string"==typeof Bn?Bn=an:Bn.replaceSync(an)):Bn=an,An.set(kt,Bn)},He=(kt,an,Dn,Bn)=>{let Yn=O(an,Dn);const Qt=An.get(Yn);if(kt=11===kt.nodeType?kt:E,Qt)if("string"==typeof Qt){let Hn,En=We.get(kt=kt.head||kt);En||We.set(kt,En=new Set),En.has(Yn)||(kt.host&&(Hn=kt.querySelector(`[${I}="${Yn}
1"]`))?Hn.innerHTML=Qt:(Hn=E.createElement("style"),Hn.innerHTML=Qt,kt.insertBefore(Hn,kt.querySelector("link"))),En&&En.add(Yn))}else kt.adoptedStyleSheets.includes(Qt)||(kt.adoptedStyleSheets=[...kt.adoptedStyleSheets,Qt]);return Yn},O=(kt,an)=>"sc-"+(an&&32&kt.$flags$?kt.$tagName$+"-"+an:kt.$tagName$),b=kt=>kt.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),A=kt=>sr.push(kt),N=kt=>mn(kt).$modeName$,K={},Oe=kt=>"object"==(kt=typeof kt)||"function"===kt,Ne=(kt,an,...Dn)=>{let Bn=null,Yn=null,Qt=null,En=!1,Hn=!1;const er=[],or=Nr=>{for(let kr=0;kr<Nr.length;kr++)Bn=Nr[kr],Array.isArray(Bn)?or(Bn):null!=Bn&&"boolean"!=typeof Bn&&((En="function"!=typeof kt&&!Oe(Bn))&&(Bn=String(Bn)),En&&Hn?er[er.length-1].$text$+=Bn:er.push(En?Ye(null,Bn):Bn),Hn=En)};if(or(Dn),an){an.key&&(Yn=an.key),an.name&&(Qt=an.name);{const Nr=an.className||an.class;Nr&&(an.class="object"!=typeof Nr?Nr:Object.keys(Nr).filter(kr=>Nr[kr]).join(" "))}}if("function"==typeof kt)return kt(null===an?{}:an,er,Ot);const wr=Ye(kt,null);return wr.$attrs$=an,er.length>0&&(wr.$children$=er),wr.$key$=Yn,wr.$name$=Qt,wr},Ye=(kt,an)=>({$flags$:0,$tag$:kt,$text$:an,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Qe={},Ot={forEach:(kt,an)=>kt.map(ln).forEach(an),map:(kt,an)=>kt.map(ln).map(an).map(Lt)},ln=kt=>({vattrs:kt.$attrs$,vchildren:kt.$children$,vkey:kt.$key$,vname:kt.$name$,vtag:kt.$tag$,vtext:kt.$text$}),Lt=kt=>{if("function"==typeof kt.vtag){const Dn=Object.assign({},kt.vattrs);return kt.vkey&&(Dn.key=kt.vkey),kt.vname&&(Dn.name=kt.vname),Ne(kt.vtag,Dn,...kt.vchildren||[])}const an=Ye(kt.vtag,kt.vtext);return an.$attrs$=kt.vattrs,an.$children$=kt.vchildren,an.$key$=kt.vkey,an.$name$=kt.vname,an},Jt=(kt,an,Dn,Bn,Yn,Qt)=>{if(Dn!==Bn){let En=At(kt,an),Hn=an.toLowerCase();if("class"===an){const er=kt.classList,or=it(Dn),wr=it(Bn);er.remove(...or.filter(Nr=>Nr&&!wr.includes(Nr))),er.add(...wr.filter(Nr=>Nr&&!or.includes(Nr)))}else if("style"===an){for(const er in Dn)(!Bn||null==Bn[er])&&(er.includes("-")?kt.style.removeProperty(er):kt.style[er]="");for(const er in Bn)(!Dn||Bn[er]!==Dn[er])&&(er.includes("-")?kt.style.setProperty(er,Bn[er]):kt.style[er]=Bn[er])}else if("key"!==an)if("ref"===an)Bn&&Bn(kt);else if(En||"o"!==an[0]||"n"!==an[1]){const er=Oe(Bn);if((En||er&&null!==Bn)&&!Yn)try{if(kt.tagName.includes("-"))kt[an]=Bn;else{const wr=null==Bn?"":Bn;"list"===an?En=!1:(null==Dn||kt[an]!=wr)&&(kt[an]=wr)}}catch(wr){}let or=!1;Hn!==(Hn=Hn.replace(/^xlink\:?/,""))&&(an=Hn,or=!0),null==Bn||!1===Bn?(!1!==Bn||""===kt.getAttribute(an))&&(or?kt.removeAttributeNS(z,an):kt.removeAttribute(an)):(!En||4&Qt||Yn)&&!er&&(Bn=!0===Bn?"":Bn,or?kt.setAttributeNS(z,an,Bn):kt.setAttribute(an,Bn))}else an="-"===an[2]?an.slice(3):At(L,Hn)?Hn.slice(2):Hn[2]+an.slice(3),Dn&&m.rel(kt,an,Dn,!1),Bn&&m.ael(kt,an,Bn,!1)}},Rt=/\s/,it=kt=>kt?kt.split(Rt):[],_t=(kt,an,Dn,Bn)=>{const Yn=11===an.$elm$.nodeType&&an.$elm$.host?an.$elm$.host:an.$elm$,Qt=kt&&kt.$attrs$||K,En=an.$attrs$||K;for(Bn in Qt)Bn in En||Jt(Yn,Bn,Qt[Bn],void 0,Dn,an.$flags$);for(Bn in En)Jt(Yn,Bn,Qt[Bn],En[Bn],Dn,an.$flags$)},ut=(kt,an,Dn,Bn)=>{const Yn=an.$children$[Dn];let En,Hn,er,Qt=0;if(Q||(W=!0,"slot"===Yn.$tag$&&(x&&Bn.classList.add(x+"-s"),Yn.$flags$|=Yn.$children$?2:1)),null!==Yn.$text$)En=Yn.$elm$=E.createTextNode(Yn.$text$);else if(1&Yn.$flags$)En=Yn.$elm$=E.createTextNode("");else{if(P||(P="svg"===Yn.$tag$),En=Yn.$elm$=E.createElementNS(P?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Yn.$flags$?"slot-fb":Yn.$tag$),P&&"foreignObject"===Yn.$tag$&&(P=!1),_t(null,Yn,P),(kt=>null!=kt)(x)&&En["s-si"]!==x&&En.classList.add(En["s-si"]=x),Yn.$children$)for(Qt=0;Qt<Yn.$children$.length;++Qt)Hn=ut(kt,Yn,Qt,En),Hn&&En.appendChild(Hn);"svg"===Yn.$tag$?P=!1:"foreignObject"===En.tagName&&(P=!0)}return En["s-hn"]=te,3&Yn.$flags$&&(En["s-sr"]=!0,En["s-cr"]=re,En["s-sn"]=Yn.$name$||"",er=kt&&kt.$children$&&kt.$children$[Dn],er&&er.$tag$===Yn.$tag$&&kt.$elm$&&yt(kt.$elm$,!1)),En},yt=(kt,an)=>{m.$flags$|=1;const Dn=kt.childNodes;for(let Bn=Dn.length-1;Bn>=0;Bn--){const Yn=Dn[Bn];Yn["s-hn"]!==te&&Yn["s-ol"]&&(St(Yn).insertBefore(Yn,at(Yn)),Yn["s-ol"].remove(),Yn["s-ol"]=void 0,W=!0),an&&yt(Yn,an)}m.$flags$&=-2},ht=(kt,an,Dn,Bn,Yn,Qt)=>{let Hn,En=kt["s-cr"]&&kt["s-cr"].parentNode||kt;for(En.shadowRoot&&En.tagName===te&&(En=En.shadowRoot);Yn<=Qt;++Yn)Bn[Yn]&&(Hn=ut(null,Dn,Yn,kt),Hn&&(Bn[Yn].$elm$=Hn,En.insertBefore(Hn,at(an))))},ct=(kt,an,Dn,Bn,Yn)=>{for(;an<=Dn;++an)(Bn=kt[an])&&(Yn=Bn.$elm$,wt(Bn),S=!0,Yn["s-ol"]?Yn["s-ol"].remove():yt(Yn,!0),Yn.remove())},gt=(kt,an)=>kt.$tag$===an.$tag$&&("slot"===kt.$tag$?kt.$name$===an.$name$:kt.$key$===an.$key$),at=kt=>kt&&kt["s-ol"]||kt,St=kt=>(kt["s-ol"]?kt["s-ol"]:kt).parentNode,sn=(kt,an)=>{const Dn=an.$elm$=kt.$elm$,Bn=kt.$children$,Yn=an.$children$,Qt=an.$tag$,En=an.$text$;let Hn;null===En?(P="svg"===Qt||"foreignObject"!==Qt&&P,"slot"===Qt||_t(kt,an,P),null!==Bn&&null!==Yn?((kt,an,Dn,Bn)=>{let oi,ui,Yn=0,Qt=0,En=0,Hn=0,er=an.length-1,or=an[0],wr=an[er],Nr=Bn.length-1,kr=Bn[0],ei=Bn[Nr];for(;Yn<=er&&Qt<=Nr;)if(null==or)or=an[++Yn];else if(null==wr)wr=an[--er];else if(null==kr)kr=Bn[++Qt];else if(null==ei)ei=Bn[--Nr];else if(gt(or,kr))sn(or,kr),or=an[++Yn],kr=Bn[++Qt];else if(gt(wr,ei))sn(wr,ei),wr=an[--er],ei=Bn[--Nr];else if(gt(or,ei))("slot"===or.$tag$||"slot"===ei.$tag$)&&yt(or.$elm$.parentNode,!1),sn(or,ei),kt.insertBefore(or.$elm$,wr.$elm$.nextSibling),or=an[++Yn],ei=Bn[--Nr];else if(gt(wr,kr))("slot"===or.$tag$||"slot"===ei.$tag$)&&yt(wr.$elm$.parentNode,!1),sn(wr,kr),kt.insertBefore(wr.$elm$,or.$elm$),wr=an[--er],kr=Bn[++Qt];else{for(En=-1,Hn=Yn;Hn<=er;++Hn)if(an[Hn]&&null!==an[Hn].$key$&&an[Hn].$key$===kr.$key$){En=
1Hn;break}En>=0?(ui=an[En],ui.$tag$!==kr.$tag$?oi=ut(an&&an[Qt],Dn,En,kt):(sn(ui,kr),an[En]=void 0,oi=ui.$elm$),kr=Bn[++Qt]):(oi=ut(an&&an[Qt],Dn,Qt,kt),kr=Bn[++Qt]),oi&&St(or.$elm$).insertBefore(oi,at(or.$elm$))}Yn>er?ht(kt,null==Bn[Nr+1]?null:Bn[Nr+1].$elm$,Dn,Bn,Qt,Nr):Qt>Nr&&ct(an,Yn,er)})(Dn,Bn,an,Yn):null!==Yn?(null!==kt.$text$&&(Dn.textContent=""),ht(Dn,null,an,Yn,0,Yn.length-1)):null!==Bn&&ct(Bn,0,Bn.length-1),P&&"svg"===Qt&&(P=!1)):(Hn=Dn["s-cr"])?Hn.parentNode.textContent=En:kt.$text$!==En&&(Dn.data=En)},ze=kt=>{const an=kt.childNodes;let Dn,Bn,Yn,Qt,En,Hn;for(Bn=0,Yn=an.length;Bn<Yn;Bn++)if(Dn=an[Bn],1===Dn.nodeType){if(Dn["s-sr"])for(En=Dn["s-sn"],Dn.hidden=!1,Qt=0;Qt<Yn;Qt++)if(Hn=an[Qt].nodeType,an[Qt]["s-hn"]!==Dn["s-hn"]||""!==En){if(1===Hn&&En===an[Qt].getAttribute("slot")){Dn.hidden=!0;break}}else if(1===Hn||3===Hn&&""!==an[Qt].textContent.trim()){Dn.hidden=!0;break}ze(Dn)}},nt=[],mt=kt=>{let an,Dn,Bn,Yn,Qt,En,Hn=0;const er=kt.childNodes,or=er.length;for(;Hn<or;Hn++){if(an=er[Hn],an["s-sr"]&&(Dn=an["s-cr"])&&Dn.parentNode)for(Bn=Dn.parentNode.childNodes,Yn=an["s-sn"],En=Bn.length-1;En>=0;En--)Dn=Bn[En],!Dn["s-cn"]&&!Dn["s-nr"]&&Dn["s-hn"]!==an["s-hn"]&&(Nt(Dn,Yn)?(Qt=nt.find(wr=>wr.$nodeToRelocate$===Dn),S=!0,Dn["s-sn"]=Dn["s-sn"]||Yn,Qt?Qt.$slotRefNode$=an:nt.push({$slotRefNode$:an,$nodeToRelocate$:Dn}),Dn["s-sr"]&&nt.map(wr=>{Nt(wr.$nodeToRelocate$,Dn["s-sn"])&&(Qt=nt.find(Nr=>Nr.$nodeToRelocate$===Dn),Qt&&!wr.$slotRefNode$&&(wr.$slotRefNode$=Qt.$slotRefNode$))})):nt.some(wr=>wr.$nodeToRelocate$===Dn)||nt.push({$nodeToRelocate$:Dn}));1===an.nodeType&&mt(an)}},Nt=(kt,an)=>1===kt.nodeType?null===kt.getAttribute("slot")&&""===an||kt.getAttribute("slot")===an:kt["s-sn"]===an||""===an,wt=kt=>{kt.$attrs$&&kt.$attrs$.ref&&kt.$attrs$.ref(null),kt.$children$&&kt.$children$.map(wt)},Kt=kt=>mn(kt).$hostElement$,Un=(kt,an,Dn)=>{const Bn=Kt(kt);return{emit:Yn=>vt(Bn,an,{bubbles:!!(4&Dn),composed:!!(2&Dn),cancelable:!!(1&Dn),detail:Yn})}},vt=(kt,an,Dn)=>{const Bn=m.ce(an,Dn);return kt.dispatchEvent(Bn),Bn},tn=(kt,an)=>{an&&!kt.$onRenderResolve$&&an["s-p"]&&an["s-p"].push(new Promise(Dn=>kt.$onRenderResolve$=Dn))},Cn=(kt,an)=>{if(kt.$flags$|=16,!(4&kt.$flags$))return tn(kt,kt.$ancestorComponent$),Lr(()=>Sn(kt,an));kt.$flags$|=512},Sn=(kt,an)=>{const Bn=kt.$lazyInstance$;let Yn;return an&&(kt.$flags$|=256,kt.$queuedListeners$&&(kt.$queuedListeners$.map(([Qt,En])=>Tt(Bn,Qt,En)),kt.$queuedListeners$=null),Yn=Tt(Bn,"componentWillLoad")),Yn=hn(Yn,()=>Tt(Bn,"componentWillRender")),hn(Yn,()=>Nn(kt,Bn,an))},Nn=function(){var kt=(0,t.Z)(function*(an,Dn,Bn){const Yn=an.$hostElement$,En=Yn["s-rc"];Bn&&(kt=>{const an=kt.$cmpMeta$,Dn=kt.$hostElement$,Bn=an.$flags$,Qt=He(Dn.shadowRoot?Dn.shadowRoot:Dn.getRootNode(),an,kt.$modeName$);10&Bn&&(Dn["s-sc"]=Qt,Dn.classList.add(Qt+"-h"),2&Bn&&Dn.classList.add(Qt+"-s"))})(an);rr(an,Dn),En&&(En.map(er=>er()),Yn["s-rc"]=void 0);{const er=Yn["s-p"],or=()=>Fn(an);0===er.length?or():(Promise.all(er).then(or),an.$flags$|=4,er.length=0)}});return function(Dn,Bn,Yn){return kt.apply(this,arguments)}}(),rr=(kt,an,Dn)=>{try{an=an.render&&an.render(),kt.$flags$&=-17,kt.$flags$|=2,((kt,an)=>{const Dn=kt.$hostElement$,Bn=kt.$cmpMeta$,Yn=kt.$vnode$||Ye(null,null),Qt=(kt=>kt&&kt.$tag$===Qe)(an)?an:Ne(null,null,an);if(te=Dn.tagName,Bn.$attrsToReflect$&&(Qt.$attrs$=Qt.$attrs$||{},Bn.$attrsToReflect$.map(([En,Hn])=>Qt.$attrs$[Hn]=Dn[En])),Qt.$tag$=null,Qt.$flags$|=4,kt.$vnode$=Qt,Qt.$elm$=Yn.$elm$=Dn.shadowRoot||Dn,x=Dn["s-sc"],re=Dn["s-cr"],Q=0!=(1&Bn.$flags$),S=!1,sn(Yn,Qt),m.$flags$|=1,W){mt(Qt.$elm$);let En,Hn,er,or,wr,Nr,kr=0;for(;kr<nt.length;kr++)En=nt[kr],Hn=En.$nodeToRelocate$,Hn["s-ol"]||(er=E.createTextNode(""),er["s-nr"]=Hn,Hn.parentNode.insertBefore(Hn["s-ol"]=er,Hn));for(kr=0;kr<nt.length;kr++)if(En=nt[kr],Hn=En.$nodeToRelocate$,En.$slotRefNode$){for(or=En.$slotRefNode$.parentNode,wr=En.$slotRefNode$.nextSibling,er=Hn["s-ol"];er=er.previousSibling;)if(Nr=er["s-nr"],Nr&&Nr["s-sn"]===Hn["s-sn"]&&or===Nr.parentNode&&(Nr=Nr.nextSibling,!Nr||!Nr["s-nr"])){wr=Nr;break}(!wr&&or!==Hn.parentNode||Hn.nextSibling!==wr)&&Hn!==wr&&(!Hn["s-hn"]&&Hn["s-ol"]&&(Hn["s-hn"]=Hn["s-ol"].parentNode.nodeName),or.insertBefore(Hn,wr))}else 1===Hn.nodeType&&(Hn.hidden=!0)}S&&ze(Qt.$elm$),m.$flags$&=-2,nt.length=0})(kt,an)}catch(Bn){Ht(Bn,kt.$hostElement$)}return null},Fn=kt=>{const Dn=kt.$hostElement$,Yn=kt.$lazyInstance$,Qt=kt.$ancestorComponent$;Tt(Yn,"componentDidRender"),64&kt.$flags$?Tt(Yn,"componentDidUpdate"):(kt.$flags$|=64,Se(Dn),Tt(Yn,"componentDidLoad"),kt.$onReadyResolve$(Dn),Qt||nr()),kt.$onInstanceResolve$(Dn),kt.$onRenderResolve$&&(kt.$onRenderResolve$(),kt.$onRenderResolve$=void 0),512&kt.$flags$&&jr(()=>Cn(kt,!1)),kt.$flags$&=-517},jn=kt=>{{const an=mn(kt),Dn=an.$hostElement$.isConnected;return Dn&&2==(18&an.$flags$)&&Cn(an,!1),Dn}},nr=kt=>{Se(E.documentElement),jr(()=>vt(L,"appload",{detail:{namespace:"ionic"}}))},Tt=(kt,an,Dn)=>{if(kt&&kt[an])try{return kt[an](Dn)}catch(Bn){Ht(Bn)}},hn=(kt,an)=>kt&&kt.then?kt.then(an):an(),Se=kt=>kt.classList.add("hydrated"),we=(kt,an,Dn,Bn,Yn,Qt,En)=>{let Hn,er,or,wr;if(1===Qt.nodeType){for(Hn=Qt.getAttribute(H),Hn&&(er=Hn.split("."),(er[0]===En||"0"===er[0])&&(or={$flags$:0,$hostId$:er[0],$nodeId$:er[1],$depth$:er[2],$index$:er[3],$tag$:Qt.tagName.toLowerCase(),$elm$:Qt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},an.push(or),Qt.removeAttribute(H),kt.$children$||(kt.$children$=[]),kt.$children$[or.$index$]=or,kt=or,Bn&&"0"===or.$depth$&&(Bn[or.$index$]=or.$elm$))),wr=Qt.childNodes.length-1;wr>=0;wr--)we(kt,an,Dn,Bn,Yn,Qt.childNodes[wr],En);if(Qt.shadowRoot)for(wr=Qt.shadowRoot.childNodes.length-1;wr>=0;wr--)we(kt,an,Dn,Bn,Yn,Qt.shadowRoot.childNodes[wr],En)}else if(8===Qt.nodeType)er=Qt.nodeValue.split("."),(er[1]===En||"0"===er[1])&&(Hn=er[0],or={$flags$:0,$hostId$:er[1],$nodeId$:er[2],$depth$:er[3],$index$:er[4],$elm$:Qt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Hn?(or.$elm$=Qt.nextSibling,or.$elm$&&3===or.$elm$.nodeType&&(or.$text$=or.$elm$.textContent,an.push(or),Qt.remove(),kt.$children$||(kt.$children$=[]),kt.$children$[or.$index$]=or,Bn&&"0"===or.$depth$&&(Bn[or.$index$]=or.$elm$))):or.$hostId$===En&&("s"===Hn?(or.$tag$="slot",Qt["s-sn"]=er[5]?or.$name$=er[5]:"",Qt["s-sr"]=!0,Bn&&(or.$elm$=E.createElement(or.$tag$),or.$name$&&or.$elm$.setAttribute("name",or.$name$),Qt.parentNode.insertBefore(or.$elm$,Qt),Qt.remove(),"0"===or.$depth$&&(Bn[or.$index$]=or.$elm$)),Dn.push(or),kt.$children$||(kt.$children$=[]),kt.$children$[or.$index$]=or):"r"===Hn&&(Bn?Qt.remove():(Yn["s-cr"]=Qt,Qt["s-cn"]=!0))));else if(kt&&"style"===kt.$tag$){const Nr=Ye(null,Qt.textContent);Nr.$elm$=Qt,Nr.$index$="0",kt.$children$=[Nr]}},Ce=(kt,an)=>{if(1===kt.nodeType){let Dn=0;for(;Dn<kt.childNodes.length;Dn++)Ce(kt.childNodes[Dn],an);if(kt.shadowRoot)for(Dn=0;Dn<kt.shadowRoot.childNodes.length;Dn++)Ce(kt.shadowRoot.childNodes[Dn],an)}else if(8===kt.nodeType){const Dn=kt.nodeValue.split(".");"o"===Dn[0]&&(an.set(Dn[1]+"."+Dn[2],kt),kt.nodeValue="",kt["s-en"]=Dn[3])}},nn=(kt,an,Dn)=>{if(an.$members$){kt.watchers&&(an.$watchers$=kt.watchers);const Bn=Object.entries(an.$members$),Yn=kt.prototype;if(Bn.map(([Qt,[En]])=>{31&En||2&Dn&&32&En?Object.defineProperty(Yn,Qt,{get(){return((kt,an)=>mn(this).$instanceValues$.get(an))(0,Qt)},set(Hn){((kt,an,Dn,Bn)=>{const Yn=mn(kt),Qt=Yn.$hostElement$,En=Yn.$instanceValues$.get(an),Hn=Yn.$flags$,er=Yn.$lazyInstance$;Dn=((kt,an)=>
1null==kt||Oe(kt)?kt:4&an?"false"!==kt&&(""===kt||!!kt):2&an?parseFloat(kt):1&an?String(kt):kt)(Dn,Bn.$members$[an][0]);const or=Number.isNaN(En)&&Number.isNaN(Dn);if((!(8&Hn)||void 0===En)&&Dn!==En&&!or&&(Yn.$instanceValues$.set(an,Dn),er)){if(Bn.$watchers$&&128&Hn){const Nr=Bn.$watchers$[an];Nr&&Nr.map(kr=>{try{er[kr](Dn,En,an)}catch(ei){Ht(ei,Qt)}})}2==(18&Hn)&&Cn(Yn,!1)}})(this,Qt,Hn,an)},configurable:!0,enumerable:!0}):1&Dn&&64&En&&Object.defineProperty(Yn,Qt,{value(...Hn){const er=mn(this);return er.$onInstancePromise$.then(()=>er.$lazyInstance$[Qt](...Hn))}})}),1&Dn){const Qt=new Map;Yn.attributeChangedCallback=function(En,Hn,er){m.jmp(()=>{const or=Qt.get(En);if(this.hasOwnProperty(or))er=this[or],delete this[or];else if(Yn.hasOwnProperty(or)&&"number"==typeof this[or]&&this[or]==er)return;this[or]=(null!==er||"boolean"!=typeof this[or])&&er})},kt.observedAttributes=Bn.filter(([En,Hn])=>15&Hn[0]).map(([En,Hn])=>{const er=Hn[1]||En;return Qt.set(er,En),512&Hn[0]&&an.$attrsToReflect$.push([En,er]),er})}}return kt},vn=function(){var kt=(0,t.Z)(function*(an,Dn,Bn,Yn,Qt){if(0==(32&Dn.$flags$)){{if(Dn.$flags$|=32,(Qt=un(Bn)).then){const or=()=>{};Qt=yield Qt,or()}
1Qt.isProxied||(Bn.$watchers$=Qt.watchers,nn(Qt,Bn,2),Qt.isProxied=!0);const er=()=>{};Dn.$flags$|=8;try{new Qt(Dn)}catch(or){Ht(or)}Dn.$flags$&=-9,Dn.$flags$|=128,er(),wn(Dn.$lazyInstance$)}if(Qt.style){let er=Qt.style;"string"!=typeof er&&(er=er[Dn.$modeName$=(kt=>sr.map(an=>an(kt)).find(an=>!!an))(an)]);const or=O(Bn,Dn.$modeName$);if(!An.has(or)){const wr=()=>{};Re(or,er,!!(1&Bn.$flags$)),wr()}}}const En=Dn.$ancestorComponent$,Hn=()=>Cn(Dn,!0);En&&En["s-rc"]?En["s-rc"].push(Hn):Hn()});return function(Dn,Bn,Yn,Qt,En){return kt.apply(this,arguments)}}(),wn=kt=>{Tt(kt,"connectedCallback")},Gn=kt=>{const an=kt["s-cr"]=E.createComment("");an["s-cn"]=!0,kt.insertBefore(an,kt.firstChild)},Wt=(kt,an={})=>{const Bn=[],Yn=an.exclude||[],Qt=L.customElements,En=E.head,Hn=En.querySelector("meta[charset]"),er=E.createElement("style"),or=[],wr=E.querySelectorAll(`[${I}]`);let Nr,kr=!0,ei=0;for(Object.assign(m,an),m.$resourcesUrl$=new URL(an.resourcesUrl||"./",E.baseURI).href,m.$flags$|=2;ei<wr.length;ei++)Re(wr[ei].getAttribute(I),b(wr[ei].innerHTML),!0);kt.map(oi=>{oi[1].map(ui=>{const Yr={$flags$:ui[0],$tagName$:ui[1],$members$:ui[2],$listeners$:ui[3]};Yr.$members$=ui[2],Yr.$listeners$=ui[3],Yr.$attrsToReflect$=[],Yr.$watchers$={};const Ci=Yr.$tagName$,Ji=class extends HTMLElement{constructor(ci){super(ci),ke(ci=this,Yr),1&Yr.$flags$&&ci.attachShadow({mode:"open",delegatesFocus:!!(16&Yr.$flags$)})}connectedCallback(){Nr&&(clearTimeout(Nr),Nr=null),kr?or.push(this):m.jmp(()=>(kt=>{if(0==(1&m.$flags$)){const an=mn(kt),Dn=an.$cmpMeta$,Bn=()=>{};if(1&an.$flags$)V(kt,an,Dn.$listeners$),wn(an.$lazyInstance$);else{let Yn;if(an.$flags$|=1,Yn=kt.getAttribute(k),Yn){if(1&Dn.$flags$){const Qt=He(kt.shadowRoot,Dn,kt.getAttribute("s-mode"));kt.classList.remove(Qt+"-h",Qt+"-s")}((kt,an,Dn,Bn)=>{const Qt=kt.shadowRoot,En=[],er=Qt?[]:null,or=Bn.$vnode$=Ye(an,null);m.$orgLocNodes$||Ce(E.body,m.$orgLocNodes$=new Map),kt[k]=Dn,kt.removeAttribute(k),we(or,En,[],er,kt,kt,Dn),En.map(wr=>{const Nr=wr.$hostId$+"."+wr.$nodeId$,kr=m.$orgLocNodes$.get(Nr),ei=wr.$elm$;kr&&""===kr["s-en"]&&kr.parentNode.insertBefore(ei,kr.nextSibling),Qt||(ei["s-hn"]=an,kr&&(ei["s-ol"]=kr,ei["s-ol"]["s-nr"]=ei)),m.$orgLocNodes$.delete(Nr)}),Qt&&er.map(wr=>{wr&&Qt.appendChild(wr)})})(kt,Dn.$tagName$,Yn,an)}Yn||12&Dn.$flags$&&Gn(kt);{let Qt=kt;for(;Qt=Qt.parentNode||Qt.host;)if(1===Qt.nodeType&&Qt.hasAttribute("s-id")&&Qt["s-p"]||Qt["s-p"]){tn(an,an.$ancestorComponent$=Qt);break}}Dn.$members$&&Object.entries(Dn.$members$).map(([Qt,[En]])=>{if(31&En&&kt.hasOwnProperty(Qt)){const Hn=kt[Qt];delete kt[Qt],kt[Qt]=Hn}}),jr(()=>vn(kt,an,Dn))}Bn()}})(this))}disconnectedCallback(){m.jmp(()=>(kt=>{if(0==(1&m.$flags$)){const an=mn(this),Dn=an.$lazyInstance$;an.$rmListeners$&&(an.$rmListeners$.map(Bn=>Bn()),an.$rmListeners$=void 0),Tt(Dn,"disconnectedCallback")}})())}componentOnReady(){return mn(this).$onReadyPromise$}};Yr.$lazyBundleId$=oi[0],!Yn.includes(Ci)&&!Qt.get(Ci)&&(Bn.push(Ci),Qt.define(Ci,nn(Ji,Yr,1)))})}),er.innerHTML=Bn+"{visibility:hidden}.hydrated{visibility:inherit}",er.setAttribute("data-styles",""),En.insertBefore(er,Hn?Hn.nextSibling:En.firstChild),kr=!1,or.length?or.map(oi=>oi.connectedCallback()):m.jmp(()=>Nr=setTimeout(nr,30))},jt=kt=>{const an=new URL(kt,m.$resourcesUrl$);return an.origin!==L.location.origin?an.href:an.pathname},on=new WeakMap,mn=kt=>on.get(kt),Mt=(kt,an)=>on.set(an.$lazyInstance$=kt,an),ke=(kt,an)=>{const Dn={$flags$:0,$hostElement$:kt,$cmpMeta$:an,$instanceValues$:new Map};return Dn.$onInstancePromise$=new Promise(Bn=>Dn.$onInstanceResolve$=Bn),Dn.$onReadyPromise$=new Promise(Bn=>Dn.$onReadyResolve$=Bn),kt["s-p"]=[],kt["s-rc"]=[],V(kt,Dn,an.$listeners$),on.set(kt,Dn)},At=(kt,an)=>an in kt,Ht=(kt,an)=>(0,console.error)(kt,an),Yt=new Map,un=(kt,an,Dn)=>{const Bn=kt.$tagName$.replace(/-/g,"_"),Yn=kt.$lazyBundleId$,Qt=Yt.get(Yn);return Qt?Qt[Bn]:c(863)(`./${Yn}.entry.js`).then(En=>(Yt.set(Yn,En),En[Bn]),Ht)},An=new Map,sr=[],fr=[],Ar=[],Dr=(kt,an)=>Dn=>{kt.push(Dn),C||(C=!0,an&&4&m.$flags$?jr(Kr):m.raf(Kr))},dr=kt=>{for(let an=0;an<kt.length;an++)try{kt[an](performance.now())}catch(Dn){Ht(Dn)}kt.length=0},Kr=()=>{dr(fr),dr(Ar),(C=fr.length>0)&&m.raf(Kr)},jr=kt=>j().then(kt),Ur=Dr(fr,!1),Lr=Dr(Ar,!0),_i={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},5179:(xe,q,c)=>{"use strict";c.d(q,{a:()=>L,b:()=>We,c:()=>x,g:()=>C,i:()=>Re});var t=c(1308);class _{constructor(){this.m=new Map}reset(ge){this.m=new Map(Object.entries(ge))}get(ge,O){const b=this.m.get(ge);return void 0!==b?b:O}getBoolean(ge,O=!1){const b=this.m.get(ge);
1return void 0===b?O:"string"==typeof b?"true"===b:!!b}getNumber(ge,O){const b=parseFloat(this.m.get(ge));return isNaN(b)?void 0!==O?O:NaN:b}set(ge,O){this.m.set(ge,O)}}const x=new _,W="ionic:",P="ionic-persist-config",C=He=>E(He),L=(He,ge)=>("string"==typeof He&&(ge=He,He=void 0),C(He).includes(ge)),E=(He=window)=>{if(void 0===He)return[];He.Ionic=He.Ionic||{};let ge=He.Ionic.platforms;return null==ge&&(ge=He.Ionic.platforms=m(He),ge.forEach(O=>He.document.documentElement.classList.add(`plt-${O}`))),ge},m=He=>{const ge=x.get("platform");return Object.keys(oe).filter(O=>{const b=null==ge?void 0:ge[O];return"function"==typeof b?b(He):oe[O](He)})},R=He=>!!(ee(He,/iPad/i)||ee(He,/Macintosh/i)&&G(He)),V=He=>ee(He,/android|sink/i),G=He=>z(He,"(any-pointer:coarse)"),se=He=>y(He)||k(He),y=He=>!!(He.cordova||He.phonegap||He.PhoneGap),k=He=>{const ge=He.Capacitor;return!!(null==ge?void 0:ge.isNative)},ee=(He,ge)=>ge.test(He.navigator.userAgent),z=(He,ge)=>{var O;return null===(O=He.matchMedia)||void 0===O?void 0:O.call(He,ge).matches},oe={ipad:R,iphone:He=>ee(He,/iPhone/i),ios:He=>ee(He,/iPhone|iPod/i)||R(He),android:V,phablet:He=>{const ge=He.innerWidth,O=He.innerHeight,b=Math.min(ge,O),p=Math.max(ge,O);return b>390&&b<520&&p>620&&p<800},tablet:He=>{const ge=He.innerWidth,O=He.innerHeight,b=Math.min(ge,O),p=Math.max(ge,O);return R(He)||(He=>V(He)&&!ee(He,/mobile/i))(He)||b>460&&b<820&&p>780&&p<1400},cordova:y,capacitor:k,electron:He=>ee(He,/electron/i),pwa:He=>{var ge;return!(!(null===(ge=He.matchMedia)||void 0===ge?void 0:ge.call(He,"(display-mode: standalone)").matches)&&!He.navigator.standalone)},mobile:G,mobileweb:He=>G(He)&&!se(He),desktop:He=>!G(He),hybrid:se};let ve;const We=He=>He&&(0,t.g)(He)||ve,Re=(He={})=>{if("undefined"==typeof window)return;const ge=window.document,O=window,b=O.Ionic=O.Ionic||{},p={};He._ael&&(p.ael=He._ael),He._rel&&(p.rel=He._rel),He._ce&&(p.ce=He._ce),(0,t.s)(p);const A=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(He=>{try{const ge=He.sessionStorage.getItem(P);return null!==ge?JSON.parse(ge):{}}catch(ge){return{}}})(O)),{persistConfig:!1}),b.config),(He=>{const ge={};return He.location.search.slice(1).split("&").map(O=>O.split("=")).map(([O,b])=>[decodeURIComponent(O),decodeURIComponent(b)]).filter(([O])=>((He,ge)=>He.substr(0,ge.length)===ge)(O,W)).map(([O,b])=>[O.slice(W.length),b]).forEach(([O,b])=>{ge[O]=b}),ge})(O)),He);x.reset(A),x.getBoolean("persistConfig")&&((He,ge)=>{try{He.sessionStorage.setItem(P,JSON.stringify(ge))}catch(O){return}})(O,A),E(O),b.config=x,b.mode=ve=x.get("mode",ge.documentElement.getAttribute("mode")||(L(O,"ios")?"ios":"md")),x.set("mode",ve),ge.documentElement.setAttribute("mode",ve),ge.documentElement.classList.add(ve),x.getBoolean("_testing")&&x.set("animated",!1);const N=J=>{var ie;return null===(ie=J.tagName)||void 0===ie?void 0:ie.startsWith("ION-")},K=J=>["ios","md"].includes(J);(0,t.a)(J=>{for(;J;){const ie=J.mode||J.getAttribute("mode");if(ie){if(K(ie))return ie;N(J)&&console.warn('Invalid ionic mode: "'+ie+'", expected: "ios" or "md"')}J=J.parentElement}return ve})}},6439:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{iosTransitionAnimation:()=>m,shadow:()=>S});var t=c(181),_=c(1843);c(3457),c(1308);const Q=v=>document.querySelector(`${v}.ion-cloned-element`),S=v=>v.shadowRoot||v,W=v=>{const R="ION-TABS"===v.tagName?v:v.querySelector("ion-tabs"),j="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=R){const M=R.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=M?M.querySelector(j):null}return v.querySelector(j)},P=(v,R)=>{const j="ION-TABS"===v.tagName?v:v.querySelector("ion-tabs");let M=[];if(null!=j){const V=j.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=V&&(M=V.querySelectorAll("ion-buttons"))}else M=v.querySelectorAll("ion-buttons");for(const V of M){const f=V.closest("ion-header"),T=f&&!f.classList.contains("header-collapse-condense-inactive"),Z=V.querySelector("ion-back-button"),G=V.classList.contains("buttons-collapse"),$="start"===V.slot||""===V.slot;if(null!==Z&&$&&(G&&T&&R||!G))return Z}return null},L=(v,R,j,M,V,f)=>{const T=R?`calc(100% - ${f.right+4}
1px)`:f.left-4+"px",Z=R?"7px":"-7px",G=R?"-4px":"4px",$=R?"-4px":"4px",se=R?"right":"left",y=R?"left":"right",H=j?[{offset:0,opacity:1,transform:`translate3d(${G}, ${f.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Z}, ${V.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${Z}, ${V.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${G}, ${f.top-46}px, 0) scale(1)`}],oe=j?[{offset:0,opacity:1,transform:`translate3d(${$}, ${f.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${$}, ${f.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${$}, ${f.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${$}, ${f.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${$}, ${f.top-46}px, 0) scale(1)`}],ve=(0,t.c)(),We=(0,t.c)(),Re=Q("ion-back-button"),He=S(Re).querySelector(".button-text"),ge=S(Re).querySelector("ion-icon");Re.text=M.text,Re.mode=M.mode,Re.icon=M.icon,Re.color=M.color,Re.disabled=M.disabled,Re.style.setProperty("display","block"),Re.style.setProperty("position","fixed"),We.addElement(ge),ve.addElement(He),ve.beforeStyles({"transform-origin":`${se} center`}).beforeAddWrite(()=>{M.style.setProperty("display","none"),Re.style.setProperty(se,T)}).afterAddWrite(()=>{M.style.setProperty("display",""),Re.style.setProperty("display","none"),Re.style.removeProperty(se)}).keyframes(H),We.beforeStyles({"transform-origin":`${y} center`}).keyframes(oe),v.addAnimation([ve,We])},E=(v,R,j,M,V,f)=>{const T=R?`calc(100% - ${V.right}px)`:`${V.left}px`,Z=R?"-18px":"18px",G=R?"right":"left",y=j?[{offset:0,opacity:0,transform:`translate3d(${Z}, ${f.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${V.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${V.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Z}, ${f.top-4}px, 0) scale(0.5)`}],k=Q("ion-title"),I=(0,t.c)();k.innerText=M.innerText,k.size=M.size,k.color=M.color,I.addElement(k),I.beforeStyles({"transform-origin":`${G} center`,height:"46px",display:"",position:"relative",[G]:T}).beforeAddWrite(()=>{M.style.setProperty("display","none")}).afterAddWrite(()=>{M.style.setProperty("display",""),k.style.setProperty("display","none")}).keyframes(y),v.addAnimation(I)},m=(v,R)=>{var j;try{const M="cubic-bezier(0.32,0.72,0,1)",V="opacity",f="transform",T="0%",G="rtl"===v.ownerDocument.dir,$=G?"-99.5%":"99.5%",se=G?"33%":"-33%",y=R.enteringEl,k=R.leavingEl,I="back"===R.direction,H=y.querySelector(":scope > ion-content"),ee=y.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),z=y.querySelectorAll(":scope > ion-header > ion-toolbar"),oe=(0,t.c)(),ve=(0,t.c)();if(oe.addElement(y).duration((null!==(j=R.duration)&&void 0!==j?j:0)||540).easing(R.easing||M).fill("both").beforeRemoveClass("ion-page-invisible"),k&&null!=v){const ge=(0,t.c)();ge.addElement(v),oe.addAnimation(ge)}if(H||0!==z.length||0!==ee.length?(ve.addElement(H),ve.addElement(ee)):ve.addElement(y.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),oe.addAnimation(ve),I?ve.beforeClearStyles([V]).fromTo("transform",`translateX(${se})`,`translateX(${T})`).fromTo(V,.8,1):ve.beforeClearStyles([V]).fromTo("transform",`translateX(${$})`,`translateX(${T})`),H){const ge=S(H).querySelector(".transition-effect");if(ge){const O=ge.querySelector(".transition-cover"),b=ge.querySelector(".transition-shadow"),p=(0,t.c)(),A=(0,t.c)(),N=(0,t.c)();p.addElement(ge).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),A.addElement(O).beforeClearStyles([V]).fromTo(V,0,.1),N.addElement(b).beforeClearStyles([V]).fromTo(V,.03,.7),p.addAnimation([A,N]),ve.addAnimation([p])}}const We=y.querySelector("ion-header.header-collapse-condense"),{forward:Re,backward:He}=((v,R,j,M,V)=>{const f=P(M,j),T=W(V),Z=W(M),G=P(V,j),$=null!==f&&null!==T&&!j,se=null!==Z&&null!==G&&j;if($){const y=T.getBoundingClientRect(),k=f.getBoundingClientRect();E(v,R,j,T,y,k),L(v,R,j,f,y,k)}else if(se){const y=Z.getBoundingClientRect(),k=G.getBoundingClientRect();E(v,R,j,Z,y,k),L(v,R,j,G,y,k)}return{forward:$,backward:se}}
1)(oe,G,I,y,k);if(z.forEach(ge=>{const O=(0,t.c)();O.addElement(ge),oe.addAnimation(O);const b=(0,t.c)();b.addElement(ge.querySelector("ion-title"));const p=(0,t.c)(),A=Array.from(ge.querySelectorAll("ion-buttons,[menuToggle]")),N=ge.closest("ion-header"),K=null==N?void 0:N.classList.contains("header-collapse-condense-inactive");let J;J=A.filter(I?Ye=>{const Qe=Ye.classList.contains("buttons-collapse");return Qe&&!K||!Qe}:Ye=>!Ye.classList.contains("buttons-collapse")),p.addElement(J);const ie=(0,t.c)();ie.addElement(ge.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const he=(0,t.c)();he.addElement(S(ge).querySelector(".toolbar-background"));const Oe=(0,t.c)(),Ne=ge.querySelector("ion-back-button");if(Ne&&Oe.addElement(Ne),O.addAnimation([b,p,ie,he,Oe]),p.fromTo(V,.01,1),ie.fromTo(V,.01,1),I)K||b.fromTo("transform",`translateX(${se})`,`translateX(${T})`).fromTo(V,.01,1),ie.fromTo("transform",`translateX(${se})`,`translateX(${T})`),Oe.fromTo(V,.01,1);else if(We||b.fromTo("transform",`translateX(${$})`,`translateX(${T})`).fromTo(V,.01,1),ie.fromTo("transform",`translateX(${$})`,`translateX(${T})`),he.beforeClearStyles([V,"transform"]),(null==N?void 0:N.translucent)?he.fromTo("transform",G?"translateX(-100%)":"translateX(100%)","translateX(0px)"):he.fromTo(V,.01,"var(--opacity)"),Re||Oe.fromTo(V,.01,1),Ne&&!Re){const Qe=(0,t.c)();Qe.addElement(S(Ne).querySelector(".button-text")).fromTo("transform",G?"translateX(-100px)":"translateX(100px)","translateX(0px)"),O.addAnimation(Qe)}}),k){const ge=(0,t.c)(),O=k.querySelector(":scope > ion-content"),b=k.querySelectorAll(":scope > ion-header > ion-toolbar"),p=k.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(O||0!==b.length||0!==p.length?(ge.addElement(O),ge.addElement(p)):ge.addElement(k.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),oe.addAnimation(ge),I){ge.beforeClearStyles([V]).fromTo("transform",`translateX(${T})`,G?"translateX(-100%)":"translateX(100%)");const A=(0,_.g)(k);oe.afterAddWrite(()=>{"normal"===oe.getDirection()&&A.style.setProperty("display","none")})}else ge.fromTo("transform",`translateX(${T})`,`translateX(${se})`).fromTo(V,1,.8);if(O){const A=S(O).querySelector(".transition-effect");if(A){const N=A.querySelector(".transition-cover"),K=A.querySelector(".transition-shadow"),J=(0,t.c)(),ie=(0,t.c)(),he=(0,t.c)();J.addElement(A).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),ie.addElement(N).beforeClearStyles([V]).fromTo(V,.1,0),he.addElement(K).beforeClearStyles([V]).fromTo(V,.7,.03),J.addAnimation([ie,he]),ge.addAnimation([J])}}b.forEach(A=>{const N=(0,t.c)();N.addElement(A);const K=(0,t.c)();K.addElement(A.querySelector("ion-title"));const J=(0,t.c)(),ie=A.querySelectorAll("ion-buttons,[menuToggle]"),he=A.closest("ion-header"),Oe=null==he?void 0:he.classList.contains("header-collapse-condense-inactive"),Ne=Array.from(ie).filter(Lt=>{const Jt=Lt.classList.contains("buttons-collapse");return Jt&&!Oe||!Jt});J.addElement(Ne);const Ye=(0,t.c)(),Qe=A.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");Qe.length>0&&Ye.addElement(Qe);const Ct=(0,t.c)();Ct.addElement(S(A).querySelector(".toolbar-background"));const Ot=(0,t.c)(),ln=A.querySelector("ion-back-button");if(ln&&Ot.addElement(ln),N.addAnimation([K,J,Ye,Ot,Ct]),oe.addAnimation(N),Ot.fromTo(V,.99,0),J.fromTo(V,.99,0),Ye.fromTo(V,.99,0),I){if(Oe||K.fromTo("transform",`translateX(${T})`,G?"translateX(-100%)":"translateX(100%)").fromTo(V,.99,0),Ye.fromTo("transform",`translateX(${T})`,G?"translateX(-100%)":"translateX(100%)"),Ct.beforeClearStyles([V,"transform"]),(null==he?void 0:he.translucent)?Ct.fromTo("transform","translateX(0px)",G?"translateX(-100%)":"translateX(100%)"):Ct.fromTo(V,"var(--opacity)",0),ln&&!He){const Jt=(0,t.c)();Jt.addElement(S(ln).querySelector(".button-text")).fromTo("transform",`translateX(${T})`,`translateX(${(G?-124:124)+"px"})`),N.addAnimation(Jt)}}else Oe||K.fromTo("transform",`translateX(${T})`,`translateX(${se})`).fromTo(V,.99,0).afterClearStyles([f,V]),Ye.fromTo("transform",`translateX(${T})`,`translateX(${se})`).afterClearStyles([f,V]),Ot.afterClearStyles([V]),K.afterClearStyles([V]),J.afterClearStyles([V])})}return oe}catch(M){throw M}}},7838:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{mdTransitionAnimation:()=>te});var t=c(181),_=c(1843);c(3457),c(1308);const te=(Q,S)=>{var W,P,C;
1const m="back"===S.direction,R=S.leavingEl,j=(0,_.g)(S.enteringEl),M=j.querySelector("ion-toolbar"),V=(0,t.c)();if(V.addElement(j).fill("both").beforeRemoveClass("ion-page-invisible"),m?V.duration((null!==(W=S.duration)&&void 0!==W?W:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):V.duration((null!==(P=S.duration)&&void 0!==P?P:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),M){const f=(0,t.c)();f.addElement(M),V.addAnimation(f)}if(R&&m){V.duration((null!==(C=S.duration)&&void 0!==C?C:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const f=(0,t.c)();f.addElement((0,_.g)(R)).onFinish(T=>{1===T&&f.elements.length>0&&f.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),V.addAnimation(f)}return V}},3539:(xe,q,c)=>{"use strict";c.d(q,{B:()=>O,G:()=>b,a:()=>W,b:()=>P,c:()=>m,d:()=>I,e:()=>R,f:()=>ee,g:()=>ve,h:()=>Q,i:()=>Re,j:()=>V,k:()=>y,l:()=>C,m:()=>L,p:()=>E,s:()=>ge,t:()=>v});var t=c(5861),_=c(5179),x=c(7593),re=c(5730);let te=0;const Q=new WeakMap,S=p=>({create:A=>j(p,A),dismiss:(A,N,K)=>$(document,A,N,p,K),getTop:()=>(0,t.Z)(function*(){return y(document,p)})()}),W=S("ion-alert"),P=S("ion-action-sheet"),C=S("ion-loading"),L=S("ion-modal"),E=S("ion-picker"),m=S("ion-popover"),v=S("ion-toast"),R=p=>{"undefined"!=typeof document&&G(document);const A=te++;p.overlayIndex=A,p.hasAttribute("id")||(p.id=`ion-overlay-${A}`)},j=(p,A)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(p).then(()=>{const N=document.createElement(p);return N.classList.add("overlay-hidden"),Object.assign(N,Object.assign(Object.assign({},A),{hasController:!0})),z(document).appendChild(N),new Promise(K=>(0,re.c)(N,K))}):Promise.resolve(),M='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',V=(p,A)=>{let N=p.querySelector(M);const K=null==N?void 0:N.shadowRoot;K&&(N=K.querySelector(M)||N),N?(0,re.f)(N):A.focus()},T=(p,A)=>{const N=Array.from(p.querySelectorAll(M));let K=N.length>0?N[N.length-1]:null;const J=null==K?void 0:K.shadowRoot;J&&(K=J.querySelector(M)||K),K?K.focus():A.focus()},G=p=>{0===te&&(te=1,p.addEventListener("focus",A=>{((p,A)=>{const N=y(A,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),K=p.target;N&&K&&!N.classList.contains("ion-disable-focus-trap")&&(N.shadowRoot?(()=>{if(N.contains(K))N.lastFocus=K;else{const he=N.lastFocus;V(N,N),he===A.activeElement&&T(N,N),N.lastFocus=A.activeElement}})():(()=>{if(N===K)N.lastFocus=void 0;else{const he=(0,re.g)(N);if(!he.contains(K))return;const Oe=he.querySelector(".ion-overlay-wrapper");if(!Oe)return;if(Oe.contains(K))N.lastFocus=K;else{const Ne=N.lastFocus;V(Oe,N),Ne===A.activeElement&&T(Oe,N),N.lastFocus=A.activeElement}}})())})(A,p)},!0),p.addEventListener("ionBackButton",A=>{const N=y(p);(null==N?void 0:N.backdropDismiss)&&A.detail.register(x.OVERLAY_BACK_BUTTON_PRIORITY,()=>N.dismiss(void 0,O))}),p.addEventListener("keyup",A=>{if("Escape"===A.key){const N=y(p);(null==N?void 0:N.backdropDismiss)&&N.dismiss(void 0,O)}}))},$=(p,A,N,K,J)=>{const ie=y(p,K,J);return ie?ie.dismiss(A,N):Promise.reject("overlay does not exist")},y=(p,A,N)=>{const K=((p,A)=>(void 0===A&&(A="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(p.querySelectorAll(A)).filter(N=>N.overlayIndex>0)))(p,A).filter(J=>!(p=>p.classList.contains("overlay-hidden"))(J));return void 0===N?K[K.length-1]:K.find(J=>J.id===N)},k=(p=!1)=>{const N=z(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");!N||(p?N.setAttribute("aria-hidden","true"):N.removeAttribute("aria-hidden"))},I=function(){var p=(0,t.Z)(function*(A,N,K,J,ie){var he,Oe;if(A.presented)return;k(!0),A.presented=!0,A.willPresent.emit(),null===(he=A.willPresentShorthand)||void 0===he||he.emit();const Ne=(0,_.b)(A),Ye=A.enterAnimation?A.enterAnimation:_.c.get(N,"ios"===Ne?K:J);(yield oe(A,Ye,A.el,ie))&&(A.didPresent.emit(),null===(Oe=A.didPresentShorthand)||void 0===Oe||Oe.emit()),"ION-TOAST"!==A.el.tagName&&H(A.el),A.keyboardClose&&(null===document.activeElement||!A.el.contains(document.activeElement))&&A.el.focus()});return function(N,K,J,ie,he){return p.apply(this,arguments)}}(),H=function(){var p=(0,t.Z)(function*(A){let N=document.activeElement;if(!N)return;const K=null==N?void 0:N.shadowRoot;
1K&&(N=K.querySelector(M)||N),yield A.onDidDismiss(),N.focus()});return function(N){return p.apply(this,arguments)}}(),ee=function(){var p=(0,t.Z)(function*(A,N,K,J,ie,he,Oe){var Ne,Ye;if(!A.presented)return!1;k(!1),A.presented=!1;try{A.el.style.setProperty("pointer-events","none"),A.willDismiss.emit({data:N,role:K}),null===(Ne=A.willDismissShorthand)||void 0===Ne||Ne.emit({data:N,role:K});const Qe=(0,_.b)(A),Ct=A.leaveAnimation?A.leaveAnimation:_.c.get(J,"ios"===Qe?ie:he);K!==b&&(yield oe(A,Ct,A.el,Oe)),A.didDismiss.emit({data:N,role:K}),null===(Ye=A.didDismissShorthand)||void 0===Ye||Ye.emit({data:N,role:K}),Q.delete(A),A.el.classList.add("overlay-hidden"),A.el.style.removeProperty("pointer-events"),void 0!==A.el.lastFocus&&(A.el.lastFocus=void 0)}catch(Qe){console.error(Qe)}return A.el.remove(),!0});return function(N,K,J,ie,he,Oe,Ne){return p.apply(this,arguments)}}(),z=p=>p.querySelector("ion-app")||p.body,oe=function(){var p=(0,t.Z)(function*(A,N,K,J){K.classList.remove("overlay-hidden");const he=N(A.el,J);(!A.animated||!_.c.getBoolean("animated",!0))&&he.duration(0),A.keyboardClose&&he.beforeAddWrite(()=>{const Ne=K.ownerDocument.activeElement;(null==Ne?void 0:Ne.matches("input,ion-input, ion-textarea"))&&Ne.blur()});const Oe=Q.get(A)||[];return Q.set(A,[...Oe,he]),yield he.play(),!0});return function(N,K,J,ie){return p.apply(this,arguments)}}(),ve=(p,A)=>{let N;const K=new Promise(J=>N=J);return We(p,A,J=>{N(J.detail)}),K},We=(p,A,N)=>{const K=J=>{(0,re.b)(p,A,K),N(J)};(0,re.a)(p,A,K)},Re=p=>"cancel"===p||p===O,He=p=>p(),ge=(p,A)=>{if("function"==typeof p)return _.c.get("_zoneGate",He)(()=>{try{return p(A)}catch(K){throw K}})},O="backdrop",b="gesture"},772:(xe,q,c)=>{"use strict";c.d(q,{H:()=>V,b:()=>yt,c:()=>G,f:()=>Qe,g:()=>Z,h:()=>j,p:()=>Cn,r:()=>ze});var t=c(5861);let x,re,te=!1,Q=!1;const C={},v=Se=>"object"==(Se=typeof Se)||"function"===Se;function R(Se){var ae,we,Ce;return null!==(Ce=null===(we=null===(ae=Se.head)||void 0===ae?void 0:ae.querySelector('meta[name="csp-nonce"]'))||void 0===we?void 0:we.getAttribute("content"))&&void 0!==Ce?Ce:void 0}const j=(Se,ae,...we)=>{let Ce=null,Ue=!1,st=!1;const Ft=[],nn=wn=>{for(let $n=0;$n<wn.length;$n++)Ce=wn[$n],Array.isArray(Ce)?nn(Ce):null!=Ce&&"boolean"!=typeof Ce&&((Ue="function"!=typeof Se&&!v(Ce))&&(Ce=String(Ce)),Ue&&st?Ft[Ft.length-1].$text$+=Ce:Ft.push(Ue?M(null,Ce):Ce),st=Ue)};if(nn(we),ae){const wn=ae.className||ae.class;wn&&(ae.class="object"!=typeof wn?wn:Object.keys(wn).filter($n=>wn[$n]).join(" "))}const vn=M(Se,null);return vn.$attrs$=ae,Ft.length>0&&(vn.$children$=Ft),vn},M=(Se,ae)=>({$flags$:0,$tag$:Se,$text$:ae,$elm$:null,$children$:null,$attrs$:null}),V={},Z=Se=>sn(Se).$hostElement$,G=(Se,ae,we)=>{const Ce=Z(Se);return{emit:Ue=>$(Ce,ae,{bubbles:!!(4&we),composed:!!(2&we),cancelable:!!(1&we),detail:Ue})}},$=(Se,ae,we)=>{const Ce=tn.ce(ae,we);return Se.dispatchEvent(Ce),Ce},se=new WeakMap,H=(Se,ae)=>"sc-"+Se.$tagName$,ee=(Se,ae,we,Ce,Ue,st)=>{if(we!==Ce){let Ft=mt(Se,ae),nn=ae.toLowerCase();if("class"===ae){const vn=Se.classList,wn=oe(we),$n=oe(Ce);vn.remove(...wn.filter(Gn=>Gn&&!$n.includes(Gn))),vn.add(...$n.filter(Gn=>Gn&&!wn.includes(Gn)))}else if("style"===ae){for(const vn in we)(!Ce||null==Ce[vn])&&(vn.includes("-")?Se.style.removeProperty(vn):Se.style[vn]="");for(const vn in Ce)(!we||Ce[vn]!==we[vn])&&(vn.includes("-")?Se.style.setProperty(vn,Ce[vn]):Se.style[vn]=Ce[vn])}else if("ref"===ae)Ce&&Ce(Se);else if(Ft||"o"!==ae[0]||"n"!==ae[1]){const vn=v(Ce);if((Ft||vn&&null!==Ce)&&!Ue)try{if(Se.tagName.includes("-"))Se[ae]=Ce;else{const wn=null==Ce?"":Ce;"list"===ae?Ft=!1:(null==we||Se[ae]!=wn)&&(Se[ae]=wn)}}catch(wn){}null==Ce||!1===Ce?(!1!==Ce||""===Se.getAttribute(ae))&&Se.removeAttribute(ae):(!Ft||4&st||Ue)&&!vn&&Se.setAttribute(ae,Ce=!0===Ce?"":Ce)}else ae="-"===ae[2]?ae.slice(3):mt(Un,nn)?nn.slice(2):nn[2]+ae.slice(3),we&&tn.rel(Se,ae,we,!1),Ce&&tn.ael(Se,ae,Ce,!1)}},z=/\s/,oe=Se=>Se?Se.split(z):[],ve=(Se,ae,we,Ce)=>{const Ue=11===ae.$elm$.nodeType&&ae.$elm$.host?ae.$elm$.host:ae.$elm$,st=Se&&Se.$attrs$||C,Ft=ae.$attrs$||C;for(Ce in st)Ce in Ft||ee(Ue,Ce,st[Ce],void 0,we,ae.$flags$);for(Ce in Ft)ee(Ue,Ce,st[Ce],Ft[Ce],we,ae.$flags$)},We=(Se,ae,we,Ce)=>{const Ue=ae.$children$[we];let Ft,nn,st=0;if(null!==Ue.$text$)Ft=Ue.$elm$=vt.createTextNode(Ue.$text$);else{if(te||(te="svg"===Ue.$tag$),Ft=Ue.$elm$=vt.createElementNS(te?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",Ue.$tag$),te&&"foreignObject"===Ue.$tag$&&(te=!1),ve(null,Ue,te),(Se=>null!=Se)(x)&&Ft["s-si"]!==x&&Ft.classList.add(Ft["s-si"]=x),Ue.$children$)for(st=0;st<Ue.$children$.length;
vendor: 1,763 bytes, line 1
1++st)nn=We(Se,Ue,st),nn&&Ft.appendChild(nn);"svg"===Ue.$tag$?te=!1:"foreignObject"===Ft.tagName&&(te=!0)}return Ft},Re=(Se,ae,we,Ce,Ue,st)=>{let nn,Ft=Se;for(Ft.shadowRoot&&Ft.tagName===re&&(Ft=Ft.shadowRoot);Ue<=st;++Ue)Ce[Ue]&&(nn=We(null,we,Ue),nn&&(Ce[Ue].$elm$=nn,Ft.insertBefore(nn,ae)))},He=(Se,ae,we)=>{for(let Ce=ae;Ce<=we;++Ce){const Ue=Se[Ce];if(Ue){const st=Ue.$elm$;p(Ue),st&&st.remove()}}},O=(Se,ae)=>Se.$tag$===ae.$tag$,b=(Se,ae)=>{const we=ae.$elm$=Se.$elm$,Ce=Se.$children$,Ue=ae.$children$,st=ae.$tag$,Ft=ae.$text$;null===Ft?(te="svg"===st||"foreignObject"!==st&&te,ve(Se,ae,te),null!==Ce&&null!==Ue?((Se,ae,we,Ce)=>{let ir,Ue=0,st=0,Ft=ae.length-1,nn=ae[0],vn=ae[Ft],wn=Ce.length-1,$n=Ce[0],Gn=Ce[wn];for(;Ue<=Ft&&st<=wn;)null==nn?nn=ae[++Ue]:null==vn?vn=ae[--Ft]:null==$n?$n=Ce[++st]:null==Gn?Gn=Ce[--wn]:O(nn,$n)?(b(nn,$n),nn=ae[++Ue],$n=Ce[++st]):O(vn,Gn)?(b(vn,Gn),vn=ae[--Ft],Gn=Ce[--wn]):O(nn,Gn)?(b(nn,Gn),Se.insertBefore(nn.$elm$,vn.$elm$.nextSibling),nn=ae[++Ue],Gn=Ce[--wn]):O(vn,$n)?(b(vn,$n),Se.insertBefore(vn.$elm$,nn.$elm$),vn=ae[--Ft],$n=Ce[++st]):(ir=We(ae&&ae[st],we,st),$n=Ce[++st],ir&&nn.$elm$.parentNode.insertBefore(ir,nn.$elm$));Ue>Ft?Re(Se,null==Ce[wn+1]?null:Ce[wn+1].$elm$,we,Ce,st,wn):st>wn&&He(ae,Ue,Ft)})(we,Ce,ae,Ue):null!==Ue?(null!==Se.$text$&&(we.textContent=""),Re(we,null,ae,Ue,0,Ue.length-1)):null!==Ce&&He(Ce,0,Ce.length-1),te&&"svg"===st&&(te=!1)):Se.$text$!==Ft&&(we.data=Ft)},p=Se=>{Se.$attrs$&&Se.$attrs$.ref&&Se.$attrs$.ref(null),Se.$children$&&Se.$children$.map(p)},N=(Se,ae)=>{ae&&!Se.$onRenderResolve$&&ae["s-p"]&&ae["s-p"].push(new Promise(we=>Se.$onRenderResolve$=we))},K=(Se,ae)=>{if(Se.$flags$|=16,!(4&Se.$flags$))return N(Se,Se.$ancestorComponent$),hn(()=>J(Se,ae));Se.$flags$|=512},J=(Se,ae)=>
1{const Ce=Se.$lazyInstance$;return ae&&(Se.$flags$|=256,Se.$queuedListeners$&&(Se.$queuedListeners$.map(([st,Ft])=>Ot(Ce,st,Ft)),Se.$queuedListeners$=void 0)),ie(void 0,()=>Oe(Se,Ce,ae))},ie=(Se,ae)=>he(Se)?Se.then(ae):ae(),he=Se=>Se instanceof Promise||Se&&Se.then&&"function"==typeof Se.then,Oe=function(){var Se=(0,t.Z)(function*(ae,we,Ce){var Ue;const st=ae.$hostElement$,nn=st["s-rc"];Ce&&(Se=>{const ae=Se.$cmpMeta$,we=Se.$hostElement$,Ce=ae.$flags$,st=((Se,ae,we,Ce)=>{var Ue;let st=H(ae);const Ft=Kt.get(st);if(Se=11===Se.nodeType?Se:vt,Ft)if("string"==typeof Ft){let vn,nn=se.get(Se=Se.head||Se);if(nn||se.set(Se,nn=new Set),!nn.has(st)){{vn=vt.createElement("style"),vn.innerHTML=Ft;const wn=null!==(Ue=tn.$nonce$)&&void 0!==Ue?Ue:R(vt);null!=wn&&vn.setAttribute("nonce",wn),Se.insertBefore(vn,Se.querySelector("link"))}nn&&nn.add(st)}}else Se.adoptedStyleSheets.includes(Ft)||(Se.adoptedStyleSheets=[...Se.adoptedStyleSheets,Ft]);return st})(we.shadowRoot?we.shadowRoot:we.getRootNode(),ae);10&Ce&&(we["s-sc"]=st,we.classList.add(st+"-h"))})(ae);Ne(ae,we),nn&&(nn.map(wn=>wn()),st["s-rc"]=void 0);{const wn=null!==(Ue=st["s-p"])&&void 0!==Ue?Ue:[],$n=()=>Ye(ae);0===wn.length?$n():(Promise.all(wn).then($n),ae.$flags$|=4,wn.length=0)}});return function(we,Ce,Ue){return Se.apply(this,arguments)}}(),Ne=(Se,ae,we)=>{try{ae=ae.render(),Se.$flags$&=-17,Se.$flags$|=2,((Se,ae)=>{const we=Se.$hostElement$,Ce=Se.$vnode$||M(null,null),Ue=(Se=>Se&&Se.$tag$===V)(ae)?ae:j(null,null,ae);re=we.tagName,Ue.$tag$=null,Ue.$flags$|=4,Se.$vnode$=Ue,Ue.$elm$=Ce.$elm$=we.shadowRoot||we,x=we["s-sc"],b(Ce,Ue)})(Se,ae)}catch(Ce){Nt(Ce,Se.$hostElement$)}return null},Ye=Se=>{const we=Se.$hostElement$,Ue=Se.$lazyInstance$,st=Se.$ancestorComponent$;64&Se.$flags$||(Se.$flags$|=64,ln(we),Ot(Ue,"componentDidLoad"),Se.$onReadyResolve$(we),st||Ct()),Se.$onInstanceResolve$(we),Se.$onRenderResolve$&&(Se.$onRenderResolve$(),Se.$onRenderResolve$=void 0),512&Se.$flags$&&Tt(()=>K(Se,!1)),Se.$flags$&=-517},Qe=Se=>{{const ae=sn(Se),we=ae.$hostElement$.isConnected;return we&&2==(18&ae.$flags$)&&K(ae,!1),we}},Ct=Se=>{ln(vt.documentElement),Tt(()=>$(Un,"appload",{detail:{namespace:"ionicpwaelements"}}))},Ot=(Se,ae,we)=>{if(Se&&Se[ae])try{return Se[ae](we)}catch(Ce){Nt(Ce)}},ln=Se=>Se.classList.add("hydrated"),Rt=(Se,ae,we)=>{if(ae.$members$){const Ce=Object.entries(ae.$members$),Ue=Se.prototype;if(Ce.map(([st,[Ft]])=>{31&Ft||2&we&&32&Ft?Object.defineProperty(Ue,st,{get(){return((Se,ae)=>sn(this).$instanceValues$.get(ae))(0,st)},set(nn){((Se,ae,we,Ce)=>{const Ue=sn(Se),st=Ue.$instanceValues$.get(ae),Ft=Ue.$flags$,nn=Ue.$lazyInstance$;we=((Se,ae)=>null==Se||v(Se)?Se:4&ae?"false"!==Se&&(""===Se||!!Se):2&ae?parseFloat(Se):1&ae?String(Se):Se)(we,Ce.$members$[ae][0]);const vn=Number.isNaN(st)&&Number.isNaN(we);(!(8&Ft)||void 0===st)&&we!==st&&!vn&&(Ue.$instanceValues$.set(ae,we),nn&&2==(18&Ft)&&K(Ue,!1))})(this,st,nn,ae)},configurable:!0,enumerable:!0}):1&we&&64&Ft&&Object.defineProperty(Ue,st,{value(...nn){const vn=sn(this);return vn.$onInstancePromise$.then(()=>vn.$lazyInstance$[st](...nn))}})}),1&we){const st=new Map;Ue.attributeChangedCallback=function(Ft,nn,vn){tn.jmp(()=>{const wn=st.get(Ft);if(this.hasOwnProperty(wn))vn=this[wn],delete this[wn];else if(Ue.hasOwnProperty(wn)&&"number"==typeof this[wn]&&this[wn]==vn)return;this[wn]=(null!==vn||"boolean"!=typeof this[wn])&&vn})},Se.observedAttributes=Ce.filter(([Ft,nn])=>15&nn[0]).map(([Ft,nn])=>{const vn=nn[1]||Ft;return st.set(vn,Ft),vn})}}return Se},it=function(){var Se=(0,t.Z)(function*(ae,we,Ce,Ue,st){if(0==(32&we.$flags$)){we.$flags$|=32;{if((st=bt(Ce)).then){const wn=()=>{};st=yield st,wn()}st.isProxied||(Rt(st,Ce,2),st.isProxied=!0);const vn=()=>{};we.$flags$|=8;try{new st(we)}catch(wn){Nt(wn)}we.$flags$&=-9,vn()}if(st.style){let vn=st.style;const wn=H(Ce);if(!Kt.has(wn)){const $n=()=>{};((Se,ae,we)=>{let Ce=Kt.get(Se);Sn&&we?(Ce=Ce||new CSSStyleSheet,"string"==typeof Ce?Ce=ae:Ce.replaceSync(ae)):Ce=ae,Kt.set(Se,Ce)})(wn,vn,!!(1&Ce.$flags$)),$n()}}}const Ft=we.$ancestorComponent$,nn=()=>K(we,!0);Ft&&Ft["s-rc"]?Ft["s-rc"].push(nn):nn()});return function(we,Ce,Ue,st,Ft){return Se.apply(this,arguments)}}(),yt=(Se,ae={})=>{var we;const Ue=[],st=ae.exclude||[],Ft=Un.customElements,nn=vt.head,vn=nn.querySelector("meta[charset]"),wn=vt.createElement("style"),$n=[];let Gn,ir=!0;Object.assign(tn,ae),tn.$resourcesUrl$=new URL(ae.resourcesUrl||"./",vt.baseURI).href,Se.map(Wt=>{Wt[1].map(jt=>{const on={$flags$:jt[0],$tagName$:jt[1],$members$:jt[2],$listeners$:jt[3]};on.$members$=jt[2],on.$listeners$=jt[3];const mn=on.$tagName$,Mt=class extends HTMLElement{constructor(ke){super(ke),nt(ke=this,on),1&on.$flags$&&ke.attachShadow({mode:"open"})}connectedCallback(){Gn&&(clearTimeout(Gn),Gn=null),ir?$n.push(this):tn.jmp(()=>(Se=>{if(0==(1&tn.$flags$)){const ae=sn(Se),we=ae.$cmpMeta$,Ce=()=>{};if(1&ae.$flags$)ht(Se,ae,we.$listeners$);else{ae.$flags$|=1;{let Ue=Se;for(;Ue=Ue.parentNode||Ue.host;)if(Ue["s-p"]){N(ae,ae.$ancestorComponent$=Ue);break}}we.$members$&&Object.entries(we.$members$).map(([Ue,[st]])=>{if(31&st&&Se.hasOwnProperty(Ue)){const Ft=Se[Ue];delete Se[Ue],Se[Ue]=Ft}}),it(Se,ae,we)}Ce()}})(this))}disconnectedCallback(){tn.jmp(()=>(Se=>{if(0==(1&tn.$flags$)){const ae=sn(this),we=ae.$lazyInstance$;ae.$rmListeners$&&(ae.$rmListeners$.map(Ce=>Ce()),ae.$rmListeners$=void 0),Ot(we,"disconnectedCallback")}})())}componentOnReady(){return sn(this).$onReadyPromise$}};on.$lazyBundleId$=Wt[0],!st.includes(mn)&&!Ft.get(mn)&&(Ue.push(mn),Ft.define(mn,Rt(Mt,on,1)))})});{wn.innerHTML=Ue+"{visibility:hidden}.hydrated{visibility:inherit}",wn.setAttribute("data-styles","");const Wt=null!==(we=tn.$nonce$)&&void 0!==we?we:R(vt);null!=Wt&&wn.setAttribute("nonce",Wt),nn.insertBefore(wn,vn?vn.nextSibling:nn.firstChild)}ir=!1,$n.length?$n.map(Wt=>Wt.connectedCallback()):tn.jmp(()=>Gn=setTimeout(Ct,30))},ht=(Se,ae,we,Ce)=>{we&&we.map(([Ue,st,Ft])=>{const nn=cn(Se,Ue),vn=ct(ae,Ft),wn=gt(Ue);tn.ael(nn,st,vn,wn),(ae.$rmListeners$=ae.$rmListeners$||[]).push(()=>tn.rel(nn,st,vn,wn))})},ct=(Se,ae)=>
1we=>{try{256&Se.$flags$?Se.$lazyInstance$[ae](we):(Se.$queuedListeners$=Se.$queuedListeners$||[]).push([ae,we])}catch(Ce){Nt(Ce)}},cn=(Se,ae)=>16&ae?vt.body:Se,gt=Se=>0!=(2&Se),St=new WeakMap,sn=Se=>St.get(Se),ze=(Se,ae)=>St.set(ae.$lazyInstance$=Se,ae),nt=(Se,ae)=>{const we={$flags$:0,$hostElement$:Se,$cmpMeta$:ae,$instanceValues$:new Map};return we.$onInstancePromise$=new Promise(Ce=>we.$onInstanceResolve$=Ce),we.$onReadyPromise$=new Promise(Ce=>we.$onReadyResolve$=Ce),Se["s-p"]=[],Se["s-rc"]=[],ht(Se,we,ae.$listeners$),St.set(Se,we)},mt=(Se,ae)=>ae in Se,Nt=(Se,ae)=>(0,console.error)(Se,ae),wt=new Map,bt=(Se,ae,we)=>{const Ce=Se.$tagName$.replace(/-/g,"_"),Ue=Se.$lazyBundleId$,st=wt.get(Ue);if(st)return st[Ce];if(!we||!BUILD.hotModuleReplacement){const Ft=nn=>(wt.set(Ue,nn),nn[Ce]);switch(Ue){case"pwa-action-sheet":return c.e(2987).then(c.bind(c,2987)).then(Ft,Nt);case"pwa-camera-modal":return c.e(7839).then(c.bind(c,7839)).then(Ft,Nt);case"pwa-toast":return c.e(3822).then(c.bind(c,3822)).then(Ft,Nt);case"pwa-camera-modal-instance":return c.e(3527).then(c.bind(c,3527)).then(Ft,Nt);case"pwa-camera":return c.e(7943).then(c.bind(c,7943)).then(Ft,Nt)}}return c(5899)(`./${Ue}.entry.js`).then(Ft=>(wt.set(Ue,Ft),Ft[Ce]),Nt)},Kt=new Map,Un="undefined"!=typeof window?window:{},vt=Un.document||{head:{}},tn={$flags$:0,$resourcesUrl$:"",jmp:Se=>Se(),raf:Se=>requestAnimationFrame(Se),ael:(Se,ae,we,Ce)=>Se.addEventListener(ae,we,Ce),rel:(Se,ae,we,Ce)=>Se.removeEventListener(ae,we,Ce),ce:(Se,ae)=>new CustomEvent(Se,ae)},Cn=Se=>Promise.resolve(Se),Sn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(Se){}return!1})(),Nn=[],rr=[],Fn=(Se,ae)=>we=>{Se.push(we),Q||(Q=!0,ae&&4&tn.$flags$?Tt(nr):tn.raf(nr))},jn=Se=>{for(let ae=0;ae<Se.length;ae++)try{Se[ae](performance.now())}catch(we){Nt(we)}Se.length=0},nr=()=>{jn(Nn),jn(rr),(Q=Nn.length>0)&&tn.raf(nr)},Tt=Se=>Cn().then(Se),hn=Fn(rr,!0)},3462:(xe,q,c)=>{"use strict";c.d(q,{h:()=>_});var t=c(6435);let _=(()=>{class x{constructor(){this.applicantId="",this.firstName="",this.lastName="",this.birthName="",this.street="",this.houseNumber="",this.zipCode="",this.placeOfResidence="",this.country="",this.countryOfBirth="",this.nationality="",this.email="",this.phoneNumber="",this.mobileNumber="",this.applicantFiles=[],this.cvFile="",this.languageChosen="",this.logs=[]}setApplicantId(te){null!=te&&(this.applicantId=te)}setCv(te){null!=te&&(this.cvFile=te)}setApplicantFiles(te){null!=te&&(this.applicantFiles=te)}setFirstName(te){null!=te&&(this.firstName=te)}setLastName(te){null!=te&&(this.lastName=te)}setBirthName(te){null!=te&&(this.birthName=te)}setStreet(te){null!=te&&(this.street=te)}setHouseNumber(te){null!=te&&(this.houseNumber=te)}setZipCode(te){null!=te&&(this.zipCode=te)}setPlaceOfResidence(te){null!=te&&(this.placeOfResidence=te)}setCountry(te){null!=te&&(this.country=te)}setCountryOfBirth(te){null!=te&&(this.countryOfBirth=te)}setNationality(te){null!=te&&(this.nationality=te)}setEMail(te){null!=te&&(this.email=te)}setPhoneNumber(te){null!=te&&(this.phoneNumber=te)}setMobileNumber(te){null!=te&&(this.mobileNumber=te)}setUserId(te){null!=te&&(this.userId=te)}setLanguageChosen(te){null!=te&&(this.languageChosen=te)}setLogs(te){null!=te&&(this.logs=te)}getApplicantId(){return this.applicantId}getCv(){return this.cvFile}getApplicantFiles(){return this.applicantFiles}getMobileNumber(){return this.mobileNumber}getPhoneNumber(){return this.phoneNumber}getEMail(){return this.email}getLastName(){return this.lastName}getFirstName(){return this.firstName}getZipCode(){return this.zipCode}getPlaceOfResidence(){return this.placeOfResidence}getStreet(){return this.street}getHouseNumber(){return this.houseNumber}getCountry(){return this.country}getNationality(){return this.nationality}getCountryOfBirth(){return this.countryOfBirth}getBirthName(){return this.birthName}getUserId(){return this.userId}getLanguageChosen(){return this.languageChosen}getLogs(){return this.logs}}return x.\u0275fac=function(te){return new(te||x)},x.\u0275prov=t.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})()},9945:(xe,q,c)=>{"use strict";var t;c.d(q,{g:()=>_});class _{}t=_,_.CLICK_ON_LINK="click on link",_.SKIP_CV_UPLOAD="CV uploading skipped",_.LANGUEAG
1E_CHOSEN="choose language: ",_.CV_UPLOADED="Lebenslauf hochgeladen",_.DOCUMENT_UPLOADED="Dokument hochgeladen",_.SKIP_DOCUMENT_UPLOADED="Skipped Dokument hochladen",_.SIGNATURE_UPLOADED="Saved signature",_.SKIP_SIGNATURE_UPLOADED="Skipped signature",_.IMPORT_LC="import",_.EMAIL_LC="email",_.EMAIL_ADRESS_LC="email adresse",_.VORNAME_LC="vorname",_.NACHNAME_LC="nachname",_.TELEFON_LC="telefonnummer",_.HANDY_LC="handynummer",_.NUMMER_LC="nummer",_.SPRACHE_LC="sprache",_.STRASSE_LC="stra\xdfe",_.PLZ_LC="postleitzahl",_.WOHNORT_LC="wohnort",_.HAUSNUMMER_LC="hausnummer",_.LAND_LC="land",_.NATIONALITAET_LC="nationalit\xe4t",_.GEBURTSLAND_LC="geburtsland",_.VORNAME="Vorname",_.NACHNAME="Nachname",_.GEBURTSNAME="Geburtsname",_.STRASSE="Stra\xdfe",_.HAUSNUMMER="Hausnummer",_.PLZ="Postleitzahl",_.WOHNORT="Wohnort",_.LAND="Land",_.GEBURTSLAND="Geburtsland",_.NATIONALITAET="Nationalit\xe4t",_.EMAIL="EMail",_.TELEFONNUMMER="Telefonnummer",_.HANDYNUMMER="Handynummer",_.TELEFON="Telefon",_.HANDY="Handy",_.NUMMER="Nummer",_.SPRACHE="Sprache",_.GERMAN="deutsch",_.GENERATE_CONTRACT='Ihr Vertrag wird gerade generiert. Dies kann bis zu 30 Sekunden dauern. Sobald dieser fertig ist wird der Knopf "Weiter zum Vertrag" gr\xfcn. Bitte klicken Sie dann auf den Knopf.',_.WUNDERBAR="Wunderbar",_.CV_UPLOAD_SUCCESS="Dein Lebenslauf wurde erfolgreich hochgeladen.",_.DOCUMENT_UPLOAD_SUCCESS="Dein Dokument wurde erfolgreich hochgeladen.",_.WEITER="weiter",_.JA="Ja",_.NEIN="Nein",_.DATENSCHUTZ_MESSAGE="Die Datenschutzrichtlinien sind unter \u201eDatenschutz\u201c verf\xfcgbar.",_.INTRODUCTION_TO_AI_MESSAGE="introAINodeMessage",_.JOB_OFFER_STANDARD_QUESTION_KEYWORDS=[t.VORNAME,t.NACHNAME,t.GEBURTSNAME,t.STRASSE,t.HAUSNUMMER,t.PLZ,t.WOHNORT,t.LAND,t.GEBURTSLAND,t.NATIONALITAET,t.EMAIL,t.TELEFONNUMMER,t.HANDYNUMMER,t.TELEFON,t.HANDY,t.NUMMER,t.SPRACHE]},1745:(xe,q,c)=>{"use strict";c.d(q,{B:()=>t});let t=(()=>{class _{}return _.APPLICANTS="applicants",_.VORLAGEN="vorlagen",_.TEXT_DEUTSCH="textDeutsch",_.TEXT="text",_.BRANDING="branding",_})()},3392:(xe,q,c)=>{"use strict";c.d(q,{K:()=>x});var t=c(4991),_=c(6435);let x=(()=>{class re{checkIsDeutschVisuallySelected(Q){return this.isDeutschVisuallySelected||(Q=Q.filter(S=>"deutsch"!==S.language)),Q}setApplicants(Q){this.applicants=Q}setIsCvAnalysis(Q){this.isCvAnalysis=Q}setIsAutomaticRecruitmentTest(Q){this.isAutomaticRecruitmentTest=Q}setIsQandAllowed(Q){this.isQandAAllowed=Q}setIsForcedLanguage(Q){this.isForcedLanguage=Q}setDfcxAgentPath(Q){this.dfcxAgentPath=Q}setCodingChallenge(Q){this.codingChallenge=Q}setAvatarId(Q){this.avatarId=Q}setLanguages(Q){const S=t.l.getLanguageList(),W=Q.filter(P=>void 0!==S.find(C=>C===P.language));this.languages=this.checkIsDeutschVisuallySelected(W)}setContract(Q){this.contract=Q}setJobTitle(Q){this.jobTitle=Q}setIsAutomaticApplication(Q){this.isAutomaticApplication=Q}setIsAutomaticContract(Q){this.isAutomaticContract=Q}setIsAutomaticCv(Q){this.isAutomaticCV=Q}setJobOfferId(Q){this.jobOfferId=Q}setJobOfferMessages(Q){this.jobOfferMessages=Q}setIsAutomaticVoice(Q){this.isAutomaticVoice=Q}setIsFeedback(Q){this.isFeedback=Q}setIntroduction(Q){this.introduction=Q}setTasks(Q){this.tasks=Q}setQualifications(Q){this.qualifications=Q}setDeutschVisuallySelected(Q){this.isDeutschVisuallySelected=!1!==Q}getApplicants(){return this.applicants}getIsCvAnalysis(){return this.isCvAnalysis}getIsAutomaticRecruitmentTest(){return this.isAutomaticRecruitmentTest||!1}getIsQandAAllowed(){return this.isQandAAllowed}getIsForcedLanguage(){return this.isForcedLanguage}getDfcxAgentPath(){return this.dfcxAgentPath}getCodingChallenge(){return this.codingChallenge}getAvatarId(){return this.avatarId}getLanguages(){return this.languages}getContract(){return this.contract}getJobTitle(){return this.jobTitle||""}getIsAutomaticApplication(){return this.isAutomaticApplication}getIsAutomaticContract(){return this.isAutomaticContract}getIsAutomaticCv(){return this.isAutomaticCV}getJobOfferId(){return this.jobOfferId}getIsAutomaticVoice(){return this.isAutomaticVoice}getJobOfferMessages(){return this.jobOfferMessages}getIsFeedback(){return this.isFeedback}getIntroduction(){return this.introduction||""}getTasks(){return this.tasks||""}
1getQualifications(){return this.qualifications||""}generateGenericMessage(){return{checked:!0,isCalendarInputMessage:!1,isDateRangeCalendarInputMessage:!1,isInfoMessage:!1,isInput:!1,isManuallyUpdated:!1,isMultiMessage:!1,isMultiSingleMessage:!1,isRangeCalendarInputMessage:!1,isSingleDateCalendarInputMessage:!1,isSingleMessage:!1,isUploadDocument:!1,isVoiceInputMessage:!1,isYesNo:!1,language:"",messagesAnswers:[],required:!0,text:"",textDeutsch:"",value:""}}}return re.\u0275fac=function(Q){return new(Q||re)},re.\u0275prov=_.\u0275\u0275defineInjectable({token:re,factory:re.\u0275fac}),re})()},9720:(xe,q,c)=>{"use strict";c.d(q,{A:()=>_});var t=c(6435);let _=(()=>{class x{constructor(){this.languageLocales=new Map,this.languageLocales.set("englisch","en-US"),this.languageLocales.set("franz\xf6sisch","fr-FR"),this.languageLocales.set("deutsch","de-DE"),this.languageLocales.set("bulgarisch","bg-BG"),this.languageLocales.set("russisch","ru-RU"),this.languageLocales.set("d\xe4nisch","da-DK"),this.languageLocales.set("schwedisch","sv-SE"),this.languageLocales.set("chinesisch","zh-CN"),this.languageLocales.set("spanisch","es-ES"),this.languageLocales.set("italienisch","it-IT"),this.languageLocales.set("portugiesisch","pt-PT"),this.languageLocales.set("holl\xe4ndisch","nl-NL"),this.languageLocales.set("kroatisch","hr-HR"),this.languageLocales.set("serbisch","sr-RS"),this.languageLocales.set("kasachisch","kk-KZ"),this.languageLocales.set("albanisch","sq-AL"),this.languageLocales.set("slowakisch","sk-SK"),this.languageLocales.set("ungarisch","hu-HU"),this.languageLocales.set("tschechisch","cs-CZ"),this.languageLocales.set("arabisch","ar-SA"),this.languageLocales.set("ukrainisch","uk-UA"),this.languageLocales.set("t\xfcrkisch","tr-TR"),this.languageLocales.set("rum\xe4nisch","ro-RO"),this.languageLocales.set("polnisch","pl-PL"),this.languageLocales.set("indonesisch","id-ID"),this.languageLocales.set("litauisch","lt-LT"),this.languageLocales.set("estnisch","et-EE"),this.languageLocales.set("afrikaans","af-ZA"),this.languageLocales.set("hindi","hi-IN"),this.languageLocales.set("malayalam","ml-IN")}getLocale(te){return this.languageLocales.get(te)}}return x.\u0275fac=function(te){return new(te||x)},x.\u0275prov=t.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})()},4991:(xe,q,c)=>{"use strict";c.d(q,{l:()=>t});let t=(()=>{class _{static getLanguageList(){let re=[];return _.LANGUAGES.forEach(te=>{te.forEach(Q=>{re.push(Q.language)})}),re}}return _.LANGUAGES=[[{language:"deutsch",translated:"deutsch",src:"../assets/flags/germany.png"},{language:"franz\xf6sisch",translated:"fran\xe7ais",src:"../assets/flags/france.png"},{language:"bulgarisch",translated:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",src:"../assets/flags/bulgaria.png"},{language:"englisch",translated:"english",src:"../assets/flags/english.png"}],[{language:"ukrainisch",translated:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",src:"../assets/flags/ukraine.png"},{language:"t\xfcrkisch",translated:"t\xfcrk",src:"../assets/flags/turkey.png"},{language:"rum\xe4nisch",translated:"rom\xe2n\u0103",src:"../assets/flags/romania.png"},{language:"polnisch",translated:"polski",src:"../assets/flags/poland.png"}],[{language:"slowakisch",translated:"slovensk\xfd",src:"../assets/flags/slowakei.png"},{language:"arabisch",translated:"\u0639\u0631\u0628\u0649",src:"../assets/flags/arab.png"},{language:"ungarisch",translated:"magyar",src:"../assets/flags/hungary.png"},{language:"tschechisch",translated:"\u010de\u0161tina",src:"../assets/flags/tschechien.png"}],[{language:"portugiesisch",translated:"portugu\xeas",src:"../assets/flags/portuguese.png"},{language:"italienisch",translated:"italiano",src:"../assets/flags/italy.png"},{language:"holl\xe4ndisch",translated:"nederlands",src:"../assets/flags/netherlands.png"},{language:"spanisch",translated:"espa\xf1ol",src:"../assets/flags/spain.png"}],[{language:"russisch",translated:"\u0440\u043e\u0441\u0441\u0438\u044f",src:"../assets/flags/russia.png"},{language:"d\xe4nisch",translated:"dansk",src:"../assets/flags/denmark.png"},{language:"schwedisch",translated:"svenska",src:"../assets/flags/sweden.png"},{language:"chinesisch",translated:"\u4e2d\u6587",src:"../assets/flags/china.png"}],[{language:"kroatisch",translated:"Hrvatski",src:"../assets/flags/croatia.png"},{language:"serbisch",translated:"\u0421\u0440\u043f\u0441\u043a\u0438",src:"../assets/flags/serbian.png"},{language:"albanisch",translated:"shqiptare",src:"../assets/flags/albania.png"},{language:"kasachisch",translated:"\u049b\u0430\u0437\u0430\u049b",src:"../assets/flags/kazakh.png"}],[{language:"indonesisch",translated:"Bahasa Indonesia",src:"../assets/flags/indonesian.png"},{language:"litauisch",translated:"lietuvi\u0173 kalba",src:"../assets/flags/lithuanian.png"},{language:"estnisch",translated:"eesti keel",src:"../assets/flags/estonian.png"},{language:"afrikaans",translated:"afrikaans",src:"../assets/flags/south_african.png"}],[{language:"malayalam",translated:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",src:"../assets/flags/india.png"},{language:"hindi",translated:"\u0939\u093f\u0928\u094d\u0926\u0940",src:"../assets/flags/india.png"}]],_})()},3421:(xe,q,c)=>{"use strict";c.d(q,{w:()=>t});let t=(()=>{class _{}return _.TRANSLATION_OBJECT={ja:"ja",chooselanguage:"Sprache ausw\xe4hlen",nein:"nein",weiter:"weiter",auswaehlen:"ausw\xe4hlen",send:"Bewerbung abschicken",Frage:"Frage",Feedback:"R\xfcckmeldung",vertragAnzeigen:"Vertrag anzeigen",weiterZumVertrag:"Weiter zum Vertrag",weiterZumEinstellungstest:"Weiter zum Einstellungstest",uploadCv:"Lebenslauf hochladen (nur als pdf, docx, jpg, jpeg, png, gif):",takePhoto:"machen Sie ein Foto",skip:"\xdcberspringen",signContract:"Vertrag unterschreiben",resetSignature:"Unterschrift zur\xfccksetzen",saveAndSend:"Speichern und Abschicken",skipAndSend:"\xdcberspringen",signatureSaved:"Unterschrift gespeichert. Sie k\xf6nnen das Fenster jetzt schlie\xdfen.",signatureSkipped:"Sind Sie sicher, dass Sie die Unterschrift \xfcberspringen m\xf6chten?",allowAccessMicrophone:"Bitte erlauben Sie den Zugriff auf das Mikrofon in Ihren Browsereinstellungen, um diese Funktion nutzen zu k\xf6nnen.",Wunderbar:"Wunderbar",generateContract:'Ihr Vertrag wird gerade generiert. Dies kann bis zu 30 Sekunden dauern. Sobald dieser fertig ist wird der Knopf "Weiter zum Vertrag" gr\xfcn. Bitte klicken Sie dann auf den Knopf.',searchMatchedJobMessage:"Bitte warten Sie, w\xe4hrend wir nach aktiven Jobs suchen, die Ihrem Profil entsprechen. Dies kann bis zu 30 Sekunden dauern.",congratulations:"Herzlichen Gl\xfcckwunsch!",generatedContractMessage:"Passender Job gefunden. Ihr Vertrag ist nun generiert. Klicken Sie bitte auf die Schaltfl\xe4che \u201eWeiter zum Vertrag\u201c, um den Vertrag zu lesen und zu unterzeichnen.",textField:"Textfeld",showMore:"Mehr anzeigen",showLess:"Weniger anzeigen",abbrechen:"Abbrechen",pleaseSelect:"bitte ausw\xe4hlen",Weiter:"Weiter",Senden:"Senden",Gesendet:"Gesendet",q1:"Wie einfach fandest du den Prozess?",q2:"Wie schnell war der Prozess?",q3:"Wie zufrieden bist du mit dem Prozess?",abschicken:"Abschicken",chooseFile:"Datei ausw\xe4hlen",fileValue:"Keine ausgew\xe4hlt",cvAnalysingMessage:"Ihr Lebenslauf wird gerade analysiert. Dies kann 1-2 Minuten dauern.",thanksForApplyingMessage:"Vielen Dank f\xfcr ihre Bewerbung",pressandHoldToSpeak:"Gedr\xfcckt halten zum Sprechen",voiceInput:"Spracheingabe",videoRecording:"Videoaufnahme",cvUploadSuccess:"Der Lebenslauf wurde erfolgreich hochgeladen.",cvUploadFailedHeader:"Daten k\xf6nnen nicht analysiert werden",cvUploadFailed:"Ihre hochgeladene Datei kann nicht analysiert werden, um bereits beantwortete Fragen zu \xfcberspringen. Bitte versuchen Sie den Upload erneut oder fahren Sie mit der n\xe4chsten Frage fort.",retry:"Wiederholen",unsupportedFileHeader:"Die hochgeladene Datei wird nicht unterst\xfctzt",unsupportedFile:"Der von Ihnen hochgeladene Dateityp wird nicht unterst\xfctzt. Bitte laden Sie einen dieser unterst\xfctzten Dateitypen hoch: PDF, JPG, JPEG, PNG, GIF, DOCX.",uploadDocument:"Dokument hochladen",documentsGettingUploaded:"Dokumente werden hochgeladen",documentUploadSuccess:"Dokumente erfolgreich hochgeladen",ShowMoreLanguages:"Mehr Sprachen anzeigen",Mehranzeigen:"Mehr anzeigen",Wenigeranzeigen:"Weniger anzeigen",ThankYouCanClose:"Wir danken Ihnen f\xfcr Ihr Feedback. Sie k\xf6nnen diesen Tab jetzt schlie\xdfen.",DoneCanClose:"Sie sind nun mit dem Bewerbungsprozess fertig. Sie k\xf6nnen diesen Tab jetzt schlie\xdfen.",start:"Start",continue:"weiter",ok:"Ok",uploadAgain:"erneut hochladen",feedback:"R\xfcckmeldung",showMoreLanguages:"Mehr Sprachen anzeigen",transcriptionUnavilable:"Audio-Transkription nicht verf\xfcgbar",audioRecordSuccessWithoutTranscriptionContinue:"Wir haben Ihre Audioaufnahme erfolgreich gespeichert, k\xf6nnen sie derzeit aber nicht in Text transkribieren. Sie k\xf6nnen ohne Transkription fortfahren, und Ihre Audioaufnahme wird als Ihre Antwort gespeichert, oder Sie k\xf6nnen zur Texteingabe wechseln.",useAudio:"Audio verwenden",typeResponse:"Antwort eingeben",audioRecordingNotAvailable:"Audioaufnahme nicht verf\xfcgbar",unableToRecordMessage:"Wir k\xf6nnen Ihre Stimme derzeit nicht aufnehmen. Bitte geben Sie Ihre Antwort in das Textfeld ein",resetTextPermission:"Aufnahme aktualisieren?",resetPermissionWarning:"Eine fr\xfchere Transkription/Aufnahme existiert bereits. M\xf6chtest du fortfahren?",microphoneAccessDenied:"Mikrofonzugriff verweigert",selectDate:"Datum ausw\xe4hlen",selectDateRange:"Datumsbereich ausw\xe4hlen",permissionRequired:"Erlaubnis erforderlich",permissionRequiredMessage:"Bitte w\xe4hlen Sie die Browserberechtigung aus, um fortzufahren.",permissionDenied:"Zugriff verweigert",permissionDeniedMessage:"Bitte erlauben Sie den Kamerazugriff in Ihren Browsereinstellungen, um diese Funktion nutzen zu k\xf6nnen.",permissionDeniedMessageMicrophone:"Bitte erlauben Sie den Mikrofonzugriff in Ihren Browsereinstellungen, um diese Funktion nutzen zu k\xf6nnen.",voiceRetry:"Beim Starten der Spracherkennung ist ein Problem aufgetreten. Bitte versuchen Sie es erneut.",endTheInterview:"Interview beenden",errorCreatingAI:"Beim Erstellen der Frage ist ein Fehler aufgetreten.",introAINodeMessage:"M\xf6chten Sie am KI-gest\xfctzten Vorstellungsgespr\xe4ch teilnehmen, um uns mehr Informationen \xfcber Ihre F\xe4higkeiten zu geben?",monaIsThinking:"Mona denkt nach",unsupportedImageCVType:"Der hochgeladene Bildtyp wird nicht unterst\xfctzt. Bitte laden Sie einen der folgenden unter
1st\xfctzten Bildtypen hoch: JPG, JPEG, PNG, GIF.",unsupportedImageType:"Der hochgeladene Bildtyp wird nicht unterst\xfctzt. Bitte laden Sie einen der folgenden unterst\xfctzten Bildtypen hoch: JPG, JPEG, PNG, GIF, TIFF, TIF, WEBP, SVG.",emptyCVHeader:"Leeres CV erkannt",emptyCVMessage:"Ihr Lebenslauf ist leer, daher k\xf6nnen wir keine Daten lesen. M\xf6chten Sie versuchen, eine andere Datei hochzuladen?"},_})()},229:(xe,q,c)=>{"use strict";c.d(q,{M:()=>_});var t=c(2340);class _{static log(...re){t.N.production||console.log(...re)}static warn(...re){t.N.production||console.warn(...re)}static error(...re){console.error(...re)}static info(...re){t.N.production||console.info(...re)}static debug(...re){t.N.production||console.debug(...re)}static table(...re){t.N.production||console.table(...re)}static group(...re){t.N.production||console.group(...re)}static groupEnd(){t.N.production||console.groupEnd()}static time(re){t.N.production||console.time(re)}static timeEnd(re){t.N.production||console.timeEnd(re)}}t.N.production&&(window.console={log:()=>{},warn:()=>{},info:()=>{},debug:()=>{},table:()=>{},group:()=>{},groupEnd:()=>{},time:()=>{},timeEnd:()=>{},error:console.error})},7592:(xe,q,c)=>{"use strict";c.d(q,{O:()=>j});var t=c(7582),_=c(6435),x=c(9446),re=c(3421),te=c(591),Q=c(9945),S=c(229),W=c(6175),C=c(3462),L=c(3392),E=c(520),m=c(603);c(5908);const R=c(7362);let j=(()=>{class M{constructor(f,T,Z,G,$,se){this.firebase=f,this.applicantDP=T,this.jobOfferDP=Z,this.http=G,this.loadingCtrl=$,this.alertCtrl=se,this.cvSrc="",this.parseCVStatus=new te.X(!1),this.parseCVStatus$=this.parseCVStatus.asObservable(),this.isImageInfoParsed=new te.X(!1),this.isImageInfoParsed$=this.isImageInfoParsed.asObservable(),this.isParseFailed=new _.EventEmitter,this.continueUploadCv=new _.EventEmitter,this.cvUploadResponse=new te.X(null),this.alertShown=!1,this.translationObject=re.w.TRANSLATION_OBJECT}uploadImage(f,T,Z="png"){return(0,t.mG)(this,void 0,void 0,function*(){const G=this.applicantDP.getApplicantId();if(S.M.log("\u{1f50d} [IMAGE UPLOAD] Starting upload with applicantId:",G),S.M.log("\u{1f50d} [IMAGE UPLOAD] Image extension:",Z),!G)throw S.M.error("\u274c [IMAGE UPLOAD] No applicantId found - upload will fail"),new Error("Applicant ID not set - please ensure authentication is complete");const $=`filesStorage/${G}/image_${(new Date).getTime()}.${Z}`;S.M.log("\u{1f50d} [IMAGE UPLOAD] Upload path:",$);const se=`image_${(new Date).getTime()}.${Z}`,y=this.firebase.getImageRef($),I=yield(yield fetch(f)).blob();yield y.put(I);const ee=yield y.getDownloadURL().toPromise();this.cvUploadResponse.next(ee);let z={name:se,downloadURL:ee,createdISO:(new Date).toISOString(),isUploadedInInterview:!0};this.fileToBeAdded=z,this.cvSrc=ee,1==T?yield this.readCV(se,ee,!0):this.fileStorage(z)})}uploadCV(f,T){return(0,t.mG)(this,void 0,void 0,function*(){this.parseCVStatus.next(!0),yield this.doUploadCV(f,T)})}doUploadCV(f,T){return(0,t.mG)(this,void 0,void 0,function*(){console.log("\u{1f50d} [CV SERVICE] doUploadCV called - Security enhanced version");const Z=this.applicantDP.getApplicantId();if(S.M.log("\u{1f50d} [CV UPLOAD] Starting upload with applicantId:",Z),S.M.log("\u{1f50d} [CV UPLOAD] File name:",f.name),!Z)throw S.M.error("\u274c [CV UPLOAD] No applicantId found - upload will fail"),new Error("Applicant ID not set - please ensure authentication is complete");let G=`filesStorage/${Z}/${(new Date).getTime()}_${f.name}`;S.M.log("\u{1f50d} [CV UPLOAD] Upload path:",G);let $=this.firebase.getImageRef(G),se=this.firebase.getUploadTask(G,f);try{S.M.log("\u{1f504} [CV UPLOAD] Starting Firebase Storage upload..."),yield se.catch(H=>console.log(H)),S.M.log("\u2705 [CV UPLOAD] Upload to storage completed successfully"),S.M.log("\u{1f517} [CV UPLOAD] Getting download URL...");let k=yield $.getDownloadURL().toPromise();S.M.log("\u2705 [CV UPLOAD] Download URL retrieved:",k),this.cvUploadResponse.next(k);let I={name:f.name,downloadURL:k,createdISO:(new Date).toISOString(),isUploadedInInterview:!0};this.fileToBeAdded=I,this.cvSrc=k,T?yield this.readCV(f.name,k):this.fileStorage(I)}catch(y){S.M.error("\u274c [CV UPLOAD] Upload failed with error:",y),S.M.error("\u274c [CV UPLOAD] Error details:",{name:y.name,code:y.code,message:y.message,serverResponse:y.serverResponse}),this.parseCVStatus.next(!1),yield this.setUnsupportedFileAlert(),this.deletePreviousFile(),this.deleteApplicantCV(),this.isParseFailed.emit(!0)}})}updateApplicantCV(f){this.firebase.updateApplicantCV(this.applicantDP.getApplicantId(),f)}deleteApplicantCV(){this.firebase.deleteApplicantCV(this.applicantDP.getApplicantId())}deletePreviousFile(){return(0,t.mG)(this,void 0,void 0,function*(){if(this.cvSrc)try{yield this.firebase.deleteApplicantCVBySrcUrl(this.cvSrc,this.applicantDP.getApplicantId()),this.cvSrc="",this.setPersonalDataFromCV(void 0)}catch(f){}})}fileStorage(f){this.firebase.storeFilesFirebase(f,this.applicantDP.getApplicantId())}readCV(f,T,Z=!1){return(0,t.mG)(this,void 0,void 0,function*(){this.loading=yield this.loadingCtrl.create({message:this.translationObject.cvAnalysingMessage}),this.loading.present();try{var G=yield this.getTextFromAnyDoc(T,"dok.pdf"),$="";S.M.log("Document extraction completed"),S.M.log("Extraction result structure:",G?Object.keys(G):"null"),null!=G&&null!=G.extractedText&&null!=G.extractedText&&""!=G.extractedText&&S.M.log("Extracted text length:",($=null!=G.extractedText.Blutwerte&&null!=G.extractedText.Blutwerte&&""!=G.extractedText.Blutwerte?G.extractedText.Blutwerte:G.extractedText).length),yield this.processCVItems($,!0)}catch(se){S.M.error("Error while extracting text:",se),yield this.presentAlertRetryOrSkip()}finally{this.loading&&(yield this.loading.dismiss())}})}getTextFromAnyDoc(f,T){return(0,t.mG)(this,void 0,void 0,function*(){return new Promise((Z,G)=>(0,t.mG)(this,void 0,void 0,function*(){try{const y=W.auth().currentUser;if(!y)throw new Error("User not authenticated");const k=yield y.getIdToken(!0);var $={uid:y.uid,fileUrl:f,fileName:T};console.log("data",$);var se={method:"post",url:"https://api.mona-ai.cloud/parsing/AnyDocumentToText",headers:{"Content-Type":"application/json",Authorization:`Bearer ${k}`},data:$};const I=yield R(se);Z(I.data)}catch(y){S.M.error("Error in extracting Text:",y),this.parseCVStatus.next(!1),G(y)}}))})}getCVContent(f,T){return(0,t.mG)(this,void 0,void 0,function*(){const Z=yield this.doc.getPage(T),G={pageNumber:T,pageContent:yield Z.getTextContent()};return this.contentArray.push(G),yield Z.getTextContent()})}getCVItems(f,T){return(0,t.mG)(this,void 0,void 0,function*(){const G=(yield this.getCVContent(f,T)).items;this.cvItemsArray.push({pageNumber:T,items:G})})}getPersonalDataFromCv(){return this.JSONFeedback}setPersonalDataFromCV(f){this.JSONFeedback=f,this.setApplicantDataFromCV(f)}processCVItems(f,T=!1){return(0,t.mG)(this,void 0,void 0,function*(){const Z=[],G=this.getCVFeedback(f);Z.push(G),yield Promise.all(Z).then($=>(0,t.mG)(this,void 0,void 0,function*(){S.M.log("Raw values from AI service received"),S.M.log("values[0] type:",typeof $[0]),S.M.log("values[0] isArray:",Array.isArray($[0])),$[0]&&Array.isArray($[0])&&(S.M.log("values[0][0] type:",typeof $[0][0]),S.M.log("values[0][0] has text property:",$[0][0]&&$[0][0].text?"yes":"no"));try{let se,y;if($[0]&&Array.isArray($[0]))if("string"==typeof $[0][0])se=$[0][0],S.M.log("Using str
1ing from array");else{if(!$[0][0]||!$[0][0].text)throw new Error("Unexpected response format from AI service");se=$[0][0].text,S.M.log("Using text property from object in array")}else if($[0]&&"string"==typeof $[0])se=$[0],S.M.log("Using direct string response");else{if(!$[0]||!$[0].text)throw S.M.error("Unexpected response format:",$),new Error("Invalid response format from AI service");se=$[0].text,S.M.log("Using text from object")}S.M.log("Final parsed feedback received - length:",se.length);try{y=JSON.parse(se)}catch(k){S.M.error("Failed to parse JSON:",k),S.M.error("Raw feedback that failed to parse - length:",se.length);const I=se.match(/\{[\s\S]*\}/);if(!I)throw new Error("No valid JSON found in AI response");try{y=JSON.parse(I[0]),S.M.log("Successfully extracted JSON from mixed response")}catch(H){throw S.M.error("Failed to extract JSON from response:",H),new Error("Invalid JSON format in AI response")}}S.M.log("Parsed JSON feedback - structure detected with fields:",Object.keys(y)),y.parsed?(S.M.log("Using parsed field from response"),this.setPersonalDataFromCV(y.parsed)):(S.M.log("Using direct object structure"),this.setPersonalDataFromCV(y))}catch(se){this.isImageInfoParsed.next(!1),yield this.presentAlertRetryOrSkip(),S.M.error("Unable to parse feedback as JSON",se)}}))})}presentAlertRetryOrSkip(){var f,T;return(0,t.mG)(this,void 0,void 0,function*(){this.alertShown?S.M.log("Alert already shown, skipping duplicate"):(this.alertShown=!0,this.loading.dismiss(),this.isParseFailed.emit(!0),yield(yield this.alertCtrl.create({header:this.translationObject.cvUploadFailedHeader,message:this.translationObject.cvUploadFailed,backdropDismiss:!1,buttons:[{text:null!==(f=this.translationObject.retry)&&void 0!==f?f:"Retry",role:null!==(T=this.translationObject.cancel)&&void 0!==T?T:"Cancel",handler:()=>{S.M.log("User pressed Retry button"),this.alertShown=!1,this.parseCVStatus.next(!1),this.isParseFailed.emit(!1),this.deleteApplicantCV(),this.deletePreviousFile(),this.loading.dismiss()}},{text:this.translationObject.continue?this.translationObject.continue:"Continue",role:"continue",handler:()=>{S.M.log("User pressed Continue button"),this.alertShown=!1,this.parseCVStatus.next(!1),this.isParseFailed.emit(!1),this.loading.dismiss(),this.continueUploadCv.emit(),this.fileStorage(this.fileToBeAdded),this.updateApplicantCV(this.cvSrc)}}]})).present())})}setUnsupportedFileAlert(){var f,T;return(0,t.mG)(this,void 0,void 0,function*(){this.loading.dismiss(),yield(yield this.alertCtrl.create({header:this.translationObject.unsupportedFileHeader,message:this.translationObject.unsupportedFile,backdropDismiss:!1,buttons:[{text:null!==(f=this.translationObject.ok)&&void 0!==f?f:"Ok",role:null!==(T=this.translationObject.cancel)&&void 0!==T?T:"Cancel",handler:()=>{this.loading.dismiss()}}]})).present()})}presentEmptyCVAlert(){var f,T,Z,G;return(0,t.mG)(this,void 0,void 0,function*(){this.loading.dismiss(),this.isParseFailed.emit(!0),yield(yield this.alertCtrl.create({header:null!==(f=this.translationObject.emptyCVHeader)&&void 0!==f?f:"Empty CV Detected",message:null!==(T=this.translationObject.emptyCVMessage)&&void 0!==T?T:"The CV appears to be empty or contains no relevant information. Would you like to retry parsing or continue without parsing?",backdropDismiss:!1,buttons:[{text:null!==(Z=this.translationObject.retry)&&void 0!==Z?Z:"Retry",role:null!==(G=this.translationObject.cancel)&&void 0!==G?G:"Cancel",handler:()=>{S.M.log("User pressed Retry button for empty CV"),this.parseCVStatus.next(!1),this.isParseFailed.emit(!1),this.deleteApplicantCV(),this.deletePreviousFile(),this.loading.dismiss()}},{text:this.translationObject.continue?this.translationObject.continue:"Continue",role:"continue",handler:()=>{S.M.log("User pressed Continue button for empty CV"),this.parseCVStatus.next(!1),this.isParseFailed.emit(!1),this.loading.dismiss(),this.continueUploadCv.emit(),this.fileStorage(this.fileToBeAdded),this.updateApplicantCV(this.cvSrc)}}]})).present()})}setApplicantDataFromCV(f){return(0,t.mG)(this,void 0,void 0,function*(){null!=f&&(S.M.log("setApplicantDataFromCV called - data structure detected"),void 0!==f.vorname||void 0!==f.nachname||void 0!==f.email?(S.M.log("Detected new structure, calling processNewStructure"),yield this.processNewStructure(f)):f.answersArray?(S.M.log("Detected legacy structure, calling processLegacyStructure"),this.processLegacyStructure(f.answersArray)):S.M.warn("Unknown response structure:",f))})}processNewStructure(f){return(0,t.mG)(this,void 0,void 0,function*(){S.M.log("Processing new structure data - fields available:",Object.keys(f));const T=!(f.vorname&&""!==f.vorname||f.nachname&&""!==f.nachname||f.geburtsname&&""!==f.geburtsname||f.strasse&&""!==f.strasse||f.hausnummer&&""!==f.hausnummer||f.postleitzahl&&""!==f.postleitzahl||f.wohnort&&""!==f.wohnort||f.land&&""!==f.land||f.geburtsland&&""!==f.geburtsland||f.nationalitaet&&""!==f.nationalitaet||f.telefon&&""!==f.telefon||f.handy&&""!==f.handy||f.email&&""!==f.email),Z=[f.vorname,f.nachname,f.geburtsname,f.strasse,f.hausnummer,f.postleitzahl,f.wohnort,f.land,f.geburtsland,f.nationalitaet,f.telefon,f.handy,f.email].filter(G=>G&&""!==G).length;if(S.M.log("CV Analysis - All fields empty:",T),S.M.log("CV Analysis - Non-empty fields count:",Z),T||0===Z)return S.M.log("CV Analysis - All fields are empty, showing empty CV alert"),void(yield this.presentEmptyCVAlert());S.M.log("CV Analysis - Processing fields with data, fields populated:",Z),f.vorname&&""!==f.vorname&&(this.applicantDP.setFirstName(f.vorname),this.firebase.updateApplicantFirstName(this.applicantDP.getApplicantId(),f.vorname)),f.nachname&&""!==f.nachname&&(this.applicantDP.setLastName(f.nachname),this.firebase.updateApplicantLastName(this.applicantDP.getApplicantId(),f.nachname)),f.geburtsname&&""!==f.geburtsname&&(this.applicantDP.setBirthName(f.geburtsname),this.firebase.updateApplicantBirthName(this.applicantDP.getApplicantId(),f.geburtsname)),f.strasse&&""!==f.strasse&&(this.applicantDP.setStreet(f.strasse),this.firebase.updateApplicantStreet(this.applicantDP.getApplicantId(),f.strasse)),f.hausnummer&&""!==f.hausnummer&&(this.applicantDP.setHouseNumber(f.hausnummer),this.firebase.updateApplicantHousenumber(this.applicantDP.getApplicantId(),f.hausnummer)),f.postleitzahl&&""!==f.postleitzahl&&(this.applicantDP.setZipCode(f.postleitzahl),this.firebase.updateApplicantZipCode(this.applicantDP.getApplicantId(),f.postleitzahl)),f.wohnort&&""!==f.wohnort&&(this.applicantDP.setPlaceOfResidence(f.wohnort),this.firebase.updateApplicantCity(this.applicantDP.getApplicantId(),f.wohnort)),f.land&&""!==f.land&&(this.applicantDP.setCountry(f.land),this.firebase.updateApplicantCountry(this.applicantDP.getApplicantId(),f.land)),f.geburtsland&&""!==f.geburtsland&&(this.applicantDP.setCountryOfBirth(f.geburtsland),this.firebase.updateApplicantCountryOfBirth(this.applicantDP.getApplicantId(),f.geburtsland)),f.nationalitaet&&""!==f.nationalitaet&&(this.applicantDP.setNationality(f.nationalitaet),this.firebase.updateApplicantNationality(this.applicantDP.getApplicantId(),f.nationalitaet)),f.telefon&&""!==f.telefon?(this.applicantDP.setMobileNumber(f.telefon),this.firebase.updateApplicantMobilnummer(this.applicantDP.getApplicantId(),f.telefon)):f.handy&&""!==f.handy&&(this.applicantDP.setMobileNumber(f.handy),this.firebase.updateApplicantMobilnummer(this.applicantDP.getApplicantId(),f.handy)),f.email&&""!==f.email&&(this.applicantDP.setEMail(f.email),this.firebase.updateApplicantEmail(this.applicantDP.getApplicantId(),f.email)),this.parseCVStatus.next(!1),this.isImageInfoParsed.next(!0),this.loading.dismiss(),this.fileStorage(this.fileToBeAdded),this.updateApplicantCV(this.cvSrc)})}processLegacyStructure(f){for(const T of f)switch(T.param){case Q.g.VORNAME:this.applicantDP.setFirstName(T.answer),this.firebase.updateApplicantFirstName(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.NACHNAME:this.applicantDP.setLastName(T.answer),this.firebase.updateApplicantLastName(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.GEBURTSNAME:this.applicantDP.setBirthName(T.answer),this.firebase.updateApplicantBirthName(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.STRASSE:this.applicantDP.setStreet(T.answer),this.firebase.updateApplicantStreet(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.HAUSNUMMER:this.applicantDP.setHouseNumber(T.answer),this.firebase.updateApplicantHousenumber(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.PLZ:this.applicantDP.setZipCode(T.answer),this.firebase.updateApplicantZipCode(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.WOHNORT:this.applicantDP.setPlaceOfResidence(T.answer),this.firebase.updateApplicantCity(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.LAND:this.applicantDP.setCountry(T.answer),this.firebase.updateApplicantCountry(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.GEBURTSLAND:this.applicantDP.setCountryOfBirth(T.answer),this.firebase.updateApplicantCountryOfBirth(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.NATIONALITAET:this.applicantDP.setNationality(T.answer),this.firebase.updateApplicantNationality(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.TELEFONNUMMER:this.applicantDP.setPhoneNumber(T.answer),this.firebase.updateApplicantTelefonnummer(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.HANDYNUMMER:this.applicantDP.setMobileNumber(T.answer),this.firebase.updateApplicantMobilnummer(this.applicantDP.getApplicantId(),T.answer);break;case Q.g.EMAIL:this.applicantDP.setEMail(T.answer),this.firebase.updateApplicantEmail(this.applicantDP.getApplicantId(),T.answer)}this.parseCVStatus.next(!1),this.isImageInfoParsed.next(!0),this.loading.dismiss(),this.fileStorage(this.fileToBeAdded),this.updateApplicantCV(this.cvSrc)}resetPersonalDataFromCV(){this.applicantDP.setFirstName(""),this.applicantDP.setLastName(""),this.applicantDP.setEMail(""),this.applicantDP.setPhoneNumber(""),this.applicantDP.setMobileNumber(""),this.applicantDP.setZipCode(""),this.applicantDP.setPlaceOfResidence(""),this.applicantDP.setStreet(""),this.applicantDP.setCountry(""),this.applicantDP.setNationality("")}getCurrentProjectId(){return this.firebase.getProjectId()}getCVFeedback(f){return(0,t.mG)(this,void 0,void 0,function*(){S.M.log("\u{1f510} [CV PARSE] Starting secure CV parsing...");const T=this.applicantDP.getApplicantId();if(console.log("applicantId",T),!T)throw new Error("Applicant ID not available - authentication required");const Z=W.auth().currentUser;if(!Z)throw new Error("User not authenticated");const G=yield Z.getIdToken(!0);f.length>2500&&(f=f.substring(0,2500)+".");const $=this.jobOfferDP.getJobOfferMessages().filter(y=>!y.textDeutsch.includes(this.translationObject.thanksForApplyingMessage)),se={applicantId:T,rawCvText:f,jobOfferMessages:$,customerProjectId:this.getCurrentProjectId(),timestamp:Date.now(),targetLang:"de"};S.M.log("\u{1f510} [CV PARSE] Sending secure request to load balancer - applicantId:",T),S.M.log("\u{1f510} [CV PARSE] CV text length:",f.length),S.M.log("\u{1f510} [CV PARSE] Job offer messages count:",$.length);try{const y=yield this.http.post("https://api.mona-ai.cloud/parsing/parseApplicantCV",se,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${G}`}}).toPromise();return S.M.log("\u2705 [CV PARSE] CV parsed successfully"),y}catch(y){throw S.M.error("\u274c [CV PARSE] Error parsing CV:",y),429===y.status?new Error("CV parsing limit exceeded. Each applicant can only parse their CV once."):403===y.status?new Error("Unauthorized: You can only parse your own CV."):new Error("CV parsing failed. Please try again later.")}})}}return M.\u0275fac=function(f){return new(f||M)(_.\u0275\u0275inject(x.O),_.\u0275\u0275inject(C.h),_.\u0275\u0275inject(L.K),_.\u0275\u0275inject(E.eN),_.\u0275\u0275inject(m.LoadingController),_.\u0275\u0275inject(m.AlertController))},M.\u0275prov=_.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})()},5617:(xe,q,c)=>{"use strict";c.d(q,{VR:()=>te,t2:()=>Q,Vh:()=>S,SP:()=>W,Zd:()=>P,Mk:()=>C});var t=c(8416),x=c(2340),re=c(6435);let te=(()=>{class L extends t.AngularFirestore{}return L.\u0275fac=function(){let E;
1return function(v){return(E||(E=re.\u0275\u0275getInheritedFactory(L)))(v||L)}}(),L.\u0275prov=re.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac}),L})();function Q(L,E){return new t.AngularFirestore(x.N.coolstore,"coolstore",!1,null,L,E,null)}class S extends t.AngularFirestore{}function W(L,E){return new t.AngularFirestore(x.N.perfectstore,"perfectstore",!1,null,L,E,null)}class P extends t.AngularFirestore{}function C(L,E){return new t.AngularFirestore(x.N.videoStore,"videoStore",!1,null,L,E,null)}},9446:(xe,q,c)=>{"use strict";c.d(q,{O:()=>E});var t=c(7582),_=c(6175),re=c(1745),te=c(2340),Q=c(5617),S=c(229),W=c(6435),P=c(8732),C=c(3018),L=c(909);let E=(()=>{class m{constructor(R,j,M,V){this.storage=R,this.database=j,this.videoStore=M,this.route=V,this.locked=!0,this.imageUrl=[],this.defaultDate="1987-06-30",this.kendoDate=new Date(null),this.igxdate=new Date,this.dateianzeigen=!1,this.currentApplicantData=void 0,this.actionArray=[],this.isApplicantFromEmail=!1,this.newVideoGen=!1,this.uploadToStorage=f=>{this.getBlob(f,T=>{_.storage().ref().put(T).then(Z=>{})})},this.getBlob=function(f,T){let Z=new XMLHttpRequest;Z.open("GET",f),Z.responseType="blob",Z.addEventListener("load",()=>{T(Z.response)}),Z.send()}}setFirebase(R){this._firestore=R?_.firestore().collection("accounts").doc(R):_.firestore(),this.bewerber=this._firestore.collection("bewerber"),this.bewerberVertraegeColl=this._firestore.collection("bewerberVertraege"),this.jobOffers=this._firestore.collection("joboffers"),this.applicants=this._firestore.collection("applicants"),this.codingapplicants=this._firestore.collection("codingapplicants"),this.workflows=this._firestore.collection("workflows"),this.recruitmentTests=this._firestore.collection("einstellungstests"),this.isNewVideoGen()}reinitializeFirebase(R){}getFlowcharts(R,j){return(0,t.mG)(this,void 0,void 0,function*(){const M=[];try{return yield(yield this.database.collection("joboffers").doc(j).collection("flowcharts").get()).forEach(T=>(0,t.mG)(this,void 0,void 0,function*(){yield T.docs.forEach(Z=>(0,t.mG)(this,void 0,void 0,function*(){const G=yield Z.data();G&&M.push(G)}))})),0===M.length?R.flowcharts:M}catch(V){return console.error("Fehler beim Abrufen der Flowcharts:",V),R.flowcharts}})}getProjectId(){return te.N.firebase.projectId}saveUnsubscribeEmail(R){return this.database.collection("unsubscribe").doc(R).set({email:R,unsubscribed:!0,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE")})}bewerberVertraege(R,j){return this.bewerberVertraegeColl.doc(j).set({id:j,file:R,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE")})}getWorkflows(){return this.workflows}getBewerber(){return this.bewerber}getBewerberDetail(R){return this.bewerber.doc(R)}getDatabaseCredentials(R){return this._firestore.collection(R).doc("database")}updateBewerberFragebogen(R,j){return this.bewerber.doc(R).update({fragebogen:j})}getVideo(R,j){return this.storage.ref(j+R).getDownloadURL().toPromise()}getJobOffers(){return this.jobOffers}getJobOffer(R){return this.jobOffers.doc(R)}getContract(R){return _.storage().refFromURL(R)}getContractByDocId(R){return this._firestore.collection(re.B.VORLAGEN).doc(R)}getAllVideos(){return this.getVideos()}getVideos(){return this.newVideoGen?_.firestore().collection("videos"):this._firestore.collection("videos")}getVideosRendered(){return this.newVideoGen?this.videoStore.firestore.collection("videosRendered"):this._firestore.collection("videos")}isNewVideoGen(){return(0,t.mG)(this,void 0,void 0,function*(){let j=(yield this._firestore.collection(re.B.BRANDING).get()).docs;if(j.length>0){let V=j[0].data();if(V)return this.newVideoGen=V.newVideoGen}})}createNewApplicant(R,j,M){return(0,t.mG)(this,void 0,void 0,function*(){return this.applicant=yield this.applicants.add({anonymousId:R,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE"),createdISO:(new Date).toISOString(),jobOfferId:j||"",jobTitle:M||"",quelle:"MONA",origin:"MONA",isCvUploaded:!1}),this.applicant})}createNewRecruitmentTestApplicant(R){return this.applicants.add({anonymousId:R,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE"),quelle:"MONA",origin:"MONA"})}updateJobOffer(R,j){this.jobOffers.doc(R).update({applicants:j})}trackBrowser(R,j){this.applicants.doc(R).update({browser:j})}trackIsMobile(R,j){this.applicants.doc(R).update({mobile:j})}trackUserDevice(R,j){this.applicants.doc(R).update({userDevice:j})}updateApplicantFinishedContract(R,j){this.applicants.doc(R).update({finishedContract:j})}updateWorkflowActivation(R,j){this.applicants.doc(R).update({workflowArray:j||[]})}updateApplicantCalendlyLink(R,j,M,V,f,T){this.applicants.doc(R).update({calendlyLink:j||"",nl:M,emailnl:V,telefonnl:f,calendlyLinkBool:!0,calendlyWorkflowId:T})}updateApplicantPostleitzahl(R,j){this.applicants.doc(R).update({postleitzahl:j||"",postleitzahlBool:!0})}updateApplicantWohnort(R,j){this.applicants.doc(R).update({wohnort:j,wohnortBool:!0})}updateApplicantMobilnummer(R,j){this.applicants.doc(R).update({mobilnummer:j||"",mobilnummerBool:!0})}updateApplicantZipCode(R,j){this.applicants.doc(R).get().then(M=>{M.exists&&M.data().Wohnort&&(M.data().Wohnort.postleitzahl=j||"")}),this.applicants.doc(R).update({postleitzahl:j||"",postleitzahlBool:!0})}updateApplicantCity(R,j){this.applicants.doc(R).get().then(M=>{M.exists&&M.data().Wohnort&&(M.data().Wohnort.city=j||"")}),this.applicants.doc(R).update({wohnort:j||"",wohnortBool:!0})}updateApplicantHousenumber(R,j){this.applicants.doc(R).get().then(M=>{M.exists&&M.data().Wohnort&&(M.data().Wohnort.hausnummer=j||"")}),this.applicants.doc(R).update({hausnummer:j||"",hausnummerBool:!0})}updateApplicantStreet(R,j){this.applicants.doc(R).get().then(M=>{M.exists&&M.data().Wohnort&&void 0===M.Cf&&(M.data().Wohnort.strasse=j||"")}),this.applicants.doc(R).update({strasse:j||"",strasseBool:!0})}updateApplicantBirthday(R,j){this.applicants.doc(R).update({birthday:j||""})}updateApplicantBirthName(R,j){this.applicants.doc(R).update({birthName:j||""})}updateApplicantBirthPlace(R,j){this.applicants.doc(R).update({placeOfBirth:j||""})}updateApplicantLastName(R,j){this.applicants.doc(R).update({nachname:j||""})}updateApplicantFirstName(R,j){this.applicants.doc(R).update({vorname:j||""})}updateApplicantCountry(R,j){this.applicants.doc(R).update({country:j||""})}updateApplicantCountryOfBirth(R,j){this.applicants.doc(R).update({countryOfBirth:j||""})}updateApplicantNationality(R,j){this.applicants.doc(R).update({nationality:j||""})}updateApplicantEmailviaUrl(R,j){this.applicants.doc(R).update({email:j||"",emailBool:!0,emailBoolString:"true"})}
1updateApplicantCodingChallenge(R,j,M){j.forEach(V=>{if(V.checked)return this.applicants.doc(R).update({codingChallenge:V,codingChallengeURL:V.url,codingChallengeBool:!0}),void this.codingapplicants.add({codingChallenge:V,codingChallengeURL:V.url,codingChallengeBool:!0,email:M,emailBool:!0,emailBoolString:"true",created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE")})})}updateApplicantTelefonnummer(R,j){this.applicants.doc(R).update({telefonnummer:j||"",telefonnummerBool:!0})}updateApplicantEmail(R,j){this.applicants.doc(R).update({email:j||"",emailBool:!0,emailBoolString:"true"})}updateApplicant(R,j){return(0,t.mG)(this,void 0,void 0,function*(){return yield this.applicants.doc(R).update({language:j.language||"",form:j.form,logs:j.logs||[]})})}updateApplicantUserid(R,j){this.applicants.doc(R).update({anonymousId:j})}getApplicants(){return this.applicants}getApplicant(R){return this.applicants.doc(R)}getCurrentUser(){return _.auth().currentUser}getCurrentUserEmail(){return this.getCurrentUser().email}addFeedbackToApplicant(R,j){this.applicants.doc(R).update({feedback:j})}getCustomerBranding(){return this._firestore.collection("branding")}getApplicantData(){return this.currentApplicantData}trackUserAction(R,j,M,V){return(0,t.mG)(this,void 0,void 0,function*(){if(null!=R&&""!=R&&null!=R)return new Promise((f,T)=>(0,t.mG)(this,void 0,void 0,function*(){if(1==M)this.getApplicant(R).get().then($=>{var se=$.data();if(null!=se&&null!=se){this.actionArray=se.action||[],this.currentApplicantData=se,this.isApplicantFromEmail="email"==this.currentApplicantData.quelle&&null!=this.currentApplicantData.jobOfferId;var y={action:j,context:V||"",action_id:M,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE")};this.actionArray.push(y),this.applicants.doc(R).update({action:this.actionArray}),f(this.currentApplicantData)}else f(void 0)}).catch($=>{f(void 0)});else{var Z=this.currentApplicantData;if(null==Z){var G={action:j,context:V||"",action_id:M,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE"),createdISO:(new Date).toISOString()};this.actionArray.push(G),this.applicants.doc(R).update({action:this.actionArray}),f(this.currentApplicantData)}else this.currentApplicantData=Z,this.isApplicantFromEmail="email"==this.currentApplicantData.quelle&&null!=this.currentApplicantData.jobOfferId,G={action:j,context:V||"",action_id:M,created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE"),createdISO:(new Date).toISOString()},this.actionArray.push(G),this.applicants.doc(R).update({action:this.actionArray}),f(this.currentApplicantData)}}))})}uploadMp3File(R,j,M){return(0,t.mG)(this,void 0,void 0,function*(){if(S.M.log("\u{1f50d} [MP3 UPLOAD] Starting upload with applicantId:",j),S.M.log("\u{1f50d} [MP3 UPLOAD] Filename:",M),!j)throw S.M.error("\u274c [MP3 UPLOAD] No applicantId provided - upload will fail"),new Error("Applicant ID not provided for MP3 upload");const f=yield(yield fetch(R)).blob(),T=`filesStorage/${j}/${(new Date).getTime()}_${M}.mp3`;S.M.log("\u{1f50d} [MP3 UPLOAD] Upload path:",T);const Z=this.getImageRefBlob(T),G=this.getUploadTaskBlob(T,f);try{yield G;const $=yield Z.getDownloadURL().toPromise(),se={name:`${M}.mp3`,downloadURL:$,createdISO:(new Date).toISOString(),isUploadedInInterview:!0};return this.fileStorage(se,j),$}catch($){throw S.M.error("\u274c [MP3 UPLOAD] Upload failed:",$),$}})}fileStorage(R,j){this.storeFilesFirebase(R,j)}getImageRefBlob(R){return this.storage.ref(R)}getUploadTaskBlob(R,j){return this.storage.upload(R,j,{contentType:"audio/mpeg"})}getImageRef(R){return this.storage.ref(R)}getUploadTask(R,j){return this.storage.upload(R,j)}setApplicantData(R){this.currentApplicantData=R}storeFilesFirebase(R,j){return(0,t.mG)(this,void 0,void 0,function*(){let M,V,f={createdISO:R.createdISO,name:R.name,downloadURL:R.downloadURL,isUploadedInInterview:R.isUploadedInInterview||!1};try{let T=!1;for(;0==T;){const Z=yield this.getApplicant(j).get();if(Z.exists&&(T=!0,M=Z.data(),M)){V=M.files;break}}}catch(T){}null!=V?(V.push(f),M.files=V,this.applicants.doc(j).update({files:V})):this.applicants.doc(j).update({files:[f]})})}getRecruitmentTests(){return this.recruitmentTests}updateRecruitmentTest(R,j,M,V){const f={};for(const[T,Z]of j)f[T]=Z;this.applicants.doc(R).update({recruitmentTests:f})}updateRecruitmentTestStatus(R){this.applicants.doc(R).get().then(j=>{let V=j.data().action;if(null!=V){let f={action:"recruitment test finished",action_id:7,context:"",created:new Date,createdGerman:(new Date).toLocaleDateString("de-DE")};V.push(f),this.applicants.doc(R).update({action:V})}})}saveSignature(R,j){this.applicants.doc(j).update({signature:R,signedOn:new Date})}updateApplicantCV(R,j){this.applicants.doc(R).update({cv:j})}deleteApplicantCV(R){this.applicants.doc(R).update({cv:_.firestore.FieldValue.delete()})}deleteApplicantCVBySrcUrl(R,j){return(0,t.mG)(this,void 0,void 0,function*(){if(R)try{let V;if(yield _.storage().refFromURL(R).delete(),yield this.getApplicant(j).get().then(f=>{let T=f.data();T&&(V=T.files)}),null!=V){let f=V.filter(T=>T.downloadURL!=R);yield this.applicants.doc(j).update({files:f})}}catch(M){}})}setApplicantClaim(R){return(0,t.mG)(this,void 0,void 0,function*(){const j=_.auth().currentUser;if(j&&R)try{yield j.getIdToken(!0)}catch(M){S.M.error("Error setting applicant claim:",M)}})}}return m.\u0275fac=function(R){return new(R||m)(W.\u0275\u0275inject(P.Q1),W.\u0275\u0275inject(C.ST),W.\u0275\u0275inject(Q.Zd),W.\u0275\u0275inject(L.gz))},m.\u0275prov=W.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},6899:(xe,q,c)=>{"use strict";c.d(q,{C:()=>Q});var t=c(7582),_=c(9446),x=c(8929),re=c(6435),te=c(603);let Q=(()=>{class S{constructor(P,C,L){this.alertCtrl=P,this.firebase=C,this.loadingCtrl=L,this.signalSource=new x.xQ,this.videos=[],this.VIDEOS_KEY="videos",this.lastVideoAnswer={name:0,downloadURL:"",created:new Date},this.chunks=[],this.signal=this.signalSource.asObservable(),this.isRecordingCompleted=!1,this.isRecording=!1}recordVideo(P){return(0,t.mG)(this,void 0,void 0,function*(){const C=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!0});P.srcObject=C,this.mediaRecorder=new MediaRecorder(C,{mimeType:"video/webm"}),this.mediaRecorder.ondataavailable=E=>{E.data&&E.data.size>0&&this.chunks.push(E.data)},this.mediaRecorder.start(100),this.isRecording=!0,this.isRecordingCompleted=!1})}getVideoAlert(){return this.saveVideoAlert}stopRecord(P,C){return(0,t.mG)(this,void 0,void 0,function*(){return this.mediaRecorder.stop(),this.mediaRecorder.onstop=L=>(0,t.mG)(this,void 0,void 0,function*(){const E=new Blob(this.chunks,{type:"video/webm"});this.videoBuffer=E,this.saveVideoAlert=yield this.alertCtrl.create({header:" Willst du das Video speichern oder neu aufnehmen?",buttons:[{text:"Speichern",handler:()=>(0,t.mG)(this,void 0,void 0,function*(){if(this.loading=yield this.loadingCtrl.create(),yield this.loading.present(),null!=this.videoBuffer){var m=(new Date).getTime();const v=`videos/${m}`,R=this.firebase.getImageRef(v);this.firebase.getUploadTask(v,E).then(j=>{R.getDownloadURL().subscribe(V=>{var f=[],T={name:m,downloadURL:V,created:new Date};this.lastAnswerVideo=T,this.lastAnswerVideo=null,this.firebase.getApplicant(P).get().then(
1Z=>{null!=Z.data().answerVideos?((f=Z.data().answerVideos).push(T),this.firebase.getApplicant(P).update({answerVideos:f}),this.loading.dismiss(),this.isRecordingCompleted||(this.sendSignal("VideoRecordingCompleted"),this.isRecordingCompleted=!0)):(f.push(T),this.firebase.getApplicant(P).update({answerVideos:f}),this.loading.dismiss(),this.isRecordingCompleted||(this.sendSignal("VideoRecordingCompleted"),this.isRecordingCompleted=!0))})})})}})},{text:"Neu Aufnehmen",handler:()=>{this.saveVideoAlert.dismiss("restart"),this.chunks=[],this.isRecordingCompleted=!1,this.sendSignal("canceled")}}],backdropDismiss:!1}),yield this.saveVideoAlert.present(),this.mediaRecorder=null,C.srcObject=null})})}sendSignal(P){this.signalSource.next(P)}}return S.\u0275fac=function(P){return new(P||S)(re.\u0275\u0275inject(te.AlertController),re.\u0275\u0275inject(_.O),re.\u0275\u0275inject(te.LoadingController))},S.\u0275prov=re.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac}),S})()},2340:(xe,q,c)=>{"use strict";c.d(q,{N:()=>t});const t={production:!0,server:"https://85.215.122.109:8598.stratoserver.net:8599",firebase:{apiKey:"AIzaSyCfYNu9SJhi2YK6lDrxrF3ETWjJPEgi_lk",authDomain:"charisma-1154.firebaseapp.com",projectId:"charisma-1154",storageBucket:"charisma-1154.firebasestorage.app",messagingSenderId:"469295086282",appId:"1:469295086282:web:06d8a56f920e4c2496d233"},videoStore:{apiKey:"AIzaSyAsXi2FeUKqS7STDl3UtfFlSy8m8RDXjRA",authDomain:"mona-videos-ccd72.firebaseapp.com",projectId:"mona-videos-ccd72",storageBucket:"mona-videos-ccd72.appspot.com",messagingSenderId:"786401769141",appId:"1:786401769141:web:535f64199eb07be438b0fc"},coolstore:{apiKey:"AIzaSyDj9-imxQz-cI4WGi-NJq2jZDprXnhk9eE",authDomain:"mona-plattform.firebaseapp.com",projectId:"mona-plattform",storageBucket:"mona-plattform.appspot.com",messagingSenderId:"922760807427",appId:"1:922760807427:web:c21e0d18244fa96dbf3a36",measurementId:"G-2TZK54JBJD"},perfectstore:{apiKey:"AIzaSyDj9-imxQz-cI4WGi-NJq2jZDprXnhk9eE",authDomain:"mona-plattform.firebaseapp.com",projectId:"mona-plattform",storageBucket:"mona-plattform.appspot.com",messagingSenderId:"922760807427",appId:"1:922760807427:web:c21e0d18244fa96dbf3a36",measurementId:"G-2TZK54JBJD"}}},423:(xe,q,c)=>{"use strict";var t=c(2313),_=c(6435),x=c(909),re=c(603);let te=(()=>{class ot{constructor(){}}return ot.\u0275fac=function(ye){return new(ye||ot)},ot.\u0275cmp=_.\u0275\u0275defineComponent({type:ot,selectors:[["app-root"]],decls:2,vars:0,consts:[[2,"background-color","#cfd5da"]],template:function(ye,Ke){1&ye&&(_.\u0275\u0275elementStart(0,"ion-app",0),_.\u0275\u0275element(1,"ion-router-outlet",0),_.\u0275\u0275elementEnd())},directives:[re.IonApp,re.IonRouterOutlet],styles:[""]}),ot})();const Q=[{path:"",redirectTo:"/interaction/6tm6pvo8bL40iWQ2W8Xp/zNocy8OACOja0oEK7yOw",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)},{path:":accountId/interaction",children:[{path:"",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)},{path:":url",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)},{path:":url/:myid",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)}]},{path:"interaction",children:[{path:"",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)},{path:":url",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)},{path:":url/:myid",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)}]},{path:"explain",children:[{path:"",loadChildren:()=>Promise.all([c.e(5439),c.e(219)]).then(c.bind(c,219)).then(ot=>ot.ExplainPageModule)},{path:"video",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)},{path:"video/:[id,url]",loadChildren:()=>Promise.all([c.e(5439),c.e(7556),c.e(2556)]).then(c.bind(c,2556)).then(ot=>ot.InteractionPageModule)}]},{path:"prepare",loadChildren:()=>c.e(9050).then(c.bind(c,9050)).then(ot=>ot.PreparePageModule)},{path:"recruitment-test/:applicantId",loadChildren:()=>Promise.all([c.e(7556),c.e(4191)]).then(c.bind(c,4191)).then(ot=>ot.RecruitmentTestPageModule)},{path:"stopEmail/:id",loadChildren:()=>c.e(8166).then(c.bind(c,8166)).then(ot=>ot.StopEmailPageModule)}];let S=(()=>{class ot{}return ot.\u0275fac=function(ye){return new(ye||ot)},ot.\u0275mod=_.\u0275\u0275defineNgModule({type:ot}),ot.\u0275inj=_.\u0275\u0275defineInjector({imports:[[x.Bz.forRoot(Q,{preloadingStrategy:x.wm})],x.Bz]}),ot})();var W=c(520),P=c(2340),C=c(1659);class L{constructor(ce,ye="/assets/i18n/",Ke=".json"){this.http=ce,this.prefix=ye,this.suffix=Ke}getTranslation(ce){return this.http.get(`${this.prefix}${ce}${this.suffix}`)}}var E=c(2490),m=c(8732);c(2684);let j=(()=>{let ot=class{};return ot.\u0275fac=function(ye){return new(ye||ot)},ot.\u0275mod=_.\u0275\u0275defineNgModule({type:ot}),ot.\u0275inj=_.\u0275\u0275defineInjector({providers:[m.Q1]}),ot})();var M=c(3475),V=c(8416);class f{}const Z="*";function y(ot,ce=null){return{type:2,steps:ot,options:ce}}function k(ot){return{type:6,styles:ot,offset:null}}function He(ot){Promise.resolve(null).then(ot)}class ge{constructor(ce=0,ye=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ce+ye}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}onStart(ce){this._onStartFns.push(ce)}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){He(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ce=>ce()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ce){this._position=this.totalTime?ce*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ce){const ye="start"==ce?this._onStartFns:this._onDoneFns;ye.forEach(Ke=>Ke()),ye.length=0}}class O{constructor(ce){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ce;let ye=0,Ke=0,xt=0;const w=this.players.length;0==w?He(()=>
1this._onFinish()):this.players.forEach(l=>{l.onDone(()=>{++ye==w&&this._onFinish()}),l.onDestroy(()=>{++Ke==w&&this._onDestroy()}),l.onStart(()=>{++xt==w&&this._onStart()})}),this.totalTime=this.players.reduce((l,g)=>Math.max(l,g.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}init(){this.players.forEach(ce=>ce.init())}onStart(ce){this._onStartFns.push(ce)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ce=>ce()),this._onStartFns=[])}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ce=>ce.play())}pause(){this.players.forEach(ce=>ce.pause())}restart(){this.players.forEach(ce=>ce.restart())}finish(){this._onFinish(),this.players.forEach(ce=>ce.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ce=>ce.destroy()),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this.players.forEach(ce=>ce.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ce){const ye=ce*this.totalTime;this.players.forEach(Ke=>{const xt=Ke.totalTime?Math.min(1,ye/Ke.totalTime):1;Ke.setPosition(xt)})}getPosition(){const ce=this.players.reduce((ye,Ke)=>null===ye||Ke.totalTime>ye.totalTime?Ke:ye,null);return null!=ce?ce.getPosition():0}beforeDestroy(){this.players.forEach(ce=>{ce.beforeDestroy&&ce.beforeDestroy()})}triggerCallback(ce){const ye="start"==ce?this._onStartFns:this._onDoneFns;ye.forEach(Ke=>Ke()),ye.length=0}}const p=!1;function N(ot){return new _.\u0275RuntimeError(3e3,p)}function Cn(){return"undefined"!=typeof window&&void 0!==window.document}function Sn(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nn(ot){switch(ot.length){case 0:return new ge;case 1:return ot[0];default:return new O(ot)}}function rr(ot,ce,ye,Ke,xt={},w={}){const l=[],g=[];let B=-1,fe=null;if(Ke.forEach(De=>{const rt=De.offset,Pt=rt==B,qt=Pt&&fe||{};Object.keys(De).forEach($t=>{let Tn=$t,zn=De[$t];if("offset"!==$t)switch(Tn=ce.normalizePropertyName(Tn,l),zn){case"!":zn=xt[$t];break;case Z:zn=w[$t];break;default:zn=ce.normalizeStyleValue($t,Tn,zn,l)}qt[Tn]=zn}),Pt||g.push(qt),fe=qt,B=rt}),l.length)throw function St(ot){return new _.\u0275RuntimeError(3502,p)}();return g}function Fn(ot,ce,ye,Ke){switch(ce){case"start":ot.onStart(()=>Ke(ye&&jn(ye,"start",ot)));break;case"done":ot.onDone(()=>Ke(ye&&jn(ye,"done",ot)));break;case"destroy":ot.onDestroy(()=>Ke(ye&&jn(ye,"destroy",ot)))}}function jn(ot,ce,ye){const Ke=ye.totalTime,w=nr(ot.element,ot.triggerName,ot.fromState,ot.toState,ce||ot.phaseName,null==Ke?ot.totalTime:Ke,!!ye.disabled),l=ot._data;return null!=l&&(w._data=l),w}function nr(ot,ce,ye,Ke,xt="",w=0,l){return{element:ot,triggerName:ce,fromState:ye,toState:Ke,phaseName:xt,totalTime:w,disabled:!!l}}function Tt(ot,ce,ye){let Ke;return ot instanceof Map?(Ke=ot.get(ce),Ke||ot.set(ce,Ke=ye)):(Ke=ot[ce],Ke||(Ke=ot[ce]=ye)),Ke}function hn(ot){const ce=ot.indexOf(":");return[ot.substring(1,ce),ot.substr(ce+1)]}let Se=(ot,ce)=>!1,ae=(ot,ce,ye)=>[],we=null;function Ce(ot){const ce=ot.parentNode||ot.host;return ce===we?null:ce}(Sn()||"undefined"!=typeof Element)&&(Cn()?(we=(()=>document.documentElement)(),Se=(ot,ce)=>{for(;ce;){if(ce===ot)return!0;ce=Ce(ce)}return!1}):Se=(ot,ce)=>ot.contains(ce),ae=(ot,ce,ye)=>{if(ye)return Array.from(ot.querySelectorAll(ce));const Ke=ot.querySelector(ce);return Ke?[Ke]:[]});let Ft=null,nn=!1;function vn(ot){Ft||(Ft=function wn(){return"undefined"!=typeof document?document.body:null}()||{},nn=!!Ft.style&&"WebkitAppearance"in Ft.style);let ce=!0;return Ft.style&&!function st(ot){return"ebkit"==ot.substring(1,6)}(ot)&&(ce=ot in Ft.style,!ce&&nn&&(ce="Webkit"+ot.charAt(0).toUpperCase()+ot.substr(1)in Ft.style)),ce}const $n=Se,Gn=ae;let Wt=(()=>{class ot{validateStyleProperty(ye){return vn(ye)}matchesElement(ye,Ke){return!1}containsElement(ye,Ke){return $n(ye,Ke)}getParentElement(ye){return Ce(ye)}query(ye,Ke,xt){return Gn(ye,Ke,xt)}computeStyle(ye,Ke,xt){return xt||""}animate(ye,Ke,xt,w,l,g=[],B){return new ge(xt,w)}}return ot.\u0275fac=function(ye){return new(ye||ot)},ot.\u0275prov=_.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})(),jt=(()=>{class ot{}return ot.NOOP=new Wt,ot})();const ke="ng-enter",At="ng-leave",Ht="ng-trigger",Yt=".ng-trigger",un="ng-animating",An=".ng-animating";function sr(ot){if("number"==typeof ot)return ot;const ce=ot.match(/^(-?[\.\d]+)(m?s)/);return!ce||ce.length<2?0:fr(parseFloat(ce[1]),ce[2])}function fr(ot,ce){return"s"===ce?1e3*ot:ot}function Ar(ot,ce,ye){return ot.hasOwnProperty("duration")?ot:function Dr(ot,ce,ye){let xt,w=0,l="";if("string"==typeof ot){const g=ot.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===g)return ce.push(N()),{duration:0,delay:0,easing:""};xt=fr(parseFloat(g[1]),g[2]);const B=g[3];null!=B&&(w=fr(parseFloat(B),g[4]));const fe=g[5];fe&&(l=fe)}else xt=ot;if(!ye){let g=!1,B=ce.length;xt<0&&(ce.push(function K(){return new _.\u0275RuntimeError(3100,p)}()),g=!0),w<0&&(ce.push(function J(){return new _.\u0275RuntimeError(3101,p)}()),g=!0),g&&ce.splice(B,0,N())}return{duration:xt,delay:w,easing:l}}(ot,ce,ye)}function dr(ot,ce={}){return Object.keys(ot).forEach(ye=>{ce[ye]=ot[ye]}),ce}function jr(ot,ce,ye={}){if(ce)for(let Ke in ot)ye[Ke]=ot[Ke];else dr(ot,ye);return ye}function Ur(ot,ce,ye){return ye?ce+":"+ye+";":""}function Lr(ot){let ce="";for(let ye=0;ye<ot.style.length;ye++){const Ke=ot.style.item(ye);ce+=Ur(0,Ke,ot.style.getPropertyValue(Ke))}
1for(const ye in ot.style)ot.style.hasOwnProperty(ye)&&!ye.startsWith("_")&&(ce+=Ur(0,or(ye),ot.style[ye]));ot.setAttribute("style",ce)}function _i(ot,ce,ye){ot.style&&(Object.keys(ce).forEach(Ke=>{const xt=er(Ke);ye&&!ye.hasOwnProperty(Ke)&&(ye[Ke]=ot.style[xt]),ot.style[xt]=ce[Ke]}),Sn()&&Lr(ot))}function kt(ot,ce){ot.style&&(Object.keys(ce).forEach(ye=>{const Ke=er(ye);ot.style[Ke]=""}),Sn()&&Lr(ot))}function an(ot){return Array.isArray(ot)?1==ot.length?ot[0]:y(ot):ot}const Bn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Yn(ot){let ce=[];if("string"==typeof ot){let ye;for(;ye=Bn.exec(ot);)ce.push(ye[1]);Bn.lastIndex=0}return ce}function Qt(ot,ce,ye){const Ke=ot.toString(),xt=Ke.replace(Bn,(w,l)=>{let g=ce[l];return ce.hasOwnProperty(l)||(ye.push(function he(ot){return new _.\u0275RuntimeError(3003,p)}()),g=""),g.toString()});return xt==Ke?ot:xt}function En(ot){const ce=[];let ye=ot.next();for(;!ye.done;)ce.push(ye.value),ye=ot.next();return ce}const Hn=/-+([a-z0-9])/g;function er(ot){return ot.replace(Hn,(...ce)=>ce[1].toUpperCase())}function or(ot){return ot.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function kr(ot,ce,ye){switch(ce.type){case 7:return ot.visitTrigger(ce,ye);case 0:return ot.visitState(ce,ye);case 1:return ot.visitTransition(ce,ye);case 2:return ot.visitSequence(ce,ye);case 3:return ot.visitGroup(ce,ye);case 4:return ot.visitAnimate(ce,ye);case 5:return ot.visitKeyframes(ce,ye);case 6:return ot.visitStyle(ce,ye);case 8:return ot.visitReference(ce,ye);case 9:return ot.visitAnimateChild(ce,ye);case 10:return ot.visitAnimateRef(ce,ye);case 11:return ot.visitQuery(ce,ye);case 12:return ot.visitStagger(ce,ye);default:throw function Oe(ot){return new _.\u0275RuntimeError(3004,p)}()}}function ei(ot,ce){return window.getComputedStyle(ot)[ce]}function Oi(ot,ce){const ye=[];return"string"==typeof ot?ot.split(/\s*,\s*/).forEach(Ke=>function $r(ot,ce,ye){if(":"==ot[0]){const B=function si(ot,ce){switch(ot){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(ye,Ke)=>parseFloat(Ke)>parseFloat(ye);case":decrement":return(ye,Ke)=>parseFloat(Ke)<parseFloat(ye);default:return ce.push(function ct(ot){return new _.\u0275RuntimeError(3016,p)}()),"* => *"}}(ot,ye);if("function"==typeof B)return void ce.push(B);ot=B}const Ke=ot.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ke||Ke.length<4)return ye.push(function ht(ot){return new _.\u0275RuntimeError(3015,p)}()),ce;const xt=Ke[1],w=Ke[2],l=Ke[3];ce.push(is(xt,l));"<"==w[0]&&!("*"==xt&&"*"==l)&&ce.push(is(l,xt))}(Ke,ye,ce)):ye.push(ot),ye}const cs=new Set(["true","1"]),Yi=new Set(["false","0"]);function is(ot,ce){const ye=cs.has(ot)||Yi.has(ot),Ke=cs.has(ce)||Yi.has(ce);return(xt,w)=>{let l="*"==ot||ot==xt,g="*"==ce||ce==w;return!l&&ye&&"boolean"==typeof xt&&(l=xt?cs.has(ot):Yi.has(ot)),!g&&Ke&&"boolean"==typeof w&&(g=w?cs.has(ce):Yi.has(ce)),l&&g}}const Hi=new RegExp("s*:selfs*,?","g");function ai(ot,ce,ye,Ke){return new zi(ot).build(ce,ye,Ke)}class zi{constructor(ce){this._driver=ce}build(ce,ye,Ke){const xt=new hs(ye);this._resetContextStyleTimingState(xt);const w=kr(this,an(ce),xt);return xt.unsupportedCSSPropertiesFound.size&&xt.unsupportedCSSPropertiesFound.keys(),w}_resetContextStyleTimingState(ce){ce.currentQuerySelector="",ce.collectedStyles={},ce.collectedStyles[""]={},ce.currentTime=0}visitTrigger(ce,ye){let Ke=ye.queryCount=0,xt=ye.depCount=0;const w=[],l=[];return"@"==ce.name.charAt(0)&&ye.errors.push(function Ye(){return new _.\u0275RuntimeError(3006,p)}()),ce.definitions.forEach(g=>{if(this._resetContextStyleTimingState(ye),0==g.type){const B=g,fe=B.name;fe.toString().split(/\s*,\s*/).forEach(De=>{B.name=De,w.push(this.visitState(B,ye))}),B.name=fe}else if(1==g.type){const B=this.visitTransition(g,ye);Ke+=B.queryCount,xt+=B.depCount,l.push(B)}else ye.errors.push(function Qe(){return new _.\u0275RuntimeError(3007,p)}())}),{type:7,name:ce.name,states:w,transitions:l,queryCount:Ke,depCount:xt,options:null}}visitState(ce,ye){const Ke=this.visitStyle(ce.styles,ye),xt=ce.options&&ce.options.params||null;if(Ke.containsDynamicStyles){const w=new Set,l=xt||{};
1Ke.styles.forEach(g=>{if(bs(g)){const B=g;Object.keys(B).forEach(fe=>{Yn(B[fe]).forEach(De=>{l.hasOwnProperty(De)||w.add(De)})})}}),w.size&&(En(w.values()),ye.errors.push(function Ct(ot,ce){return new _.\u0275RuntimeError(3008,p)}()))}return{type:0,name:ce.name,style:Ke,options:xt?{params:xt}:null}}visitTransition(ce,ye){ye.queryCount=0,ye.depCount=0;const Ke=kr(this,an(ce.animation),ye);return{type:1,matchers:Oi(ce.expr,ye.errors),animation:Ke,queryCount:ye.queryCount,depCount:ye.depCount,options:Mi(ce.options)}}visitSequence(ce,ye){return{type:2,steps:ce.steps.map(Ke=>kr(this,Ke,ye)),options:Mi(ce.options)}}visitGroup(ce,ye){const Ke=ye.currentTime;let xt=0;const w=ce.steps.map(l=>{ye.currentTime=Ke;const g=kr(this,l,ye);return xt=Math.max(xt,ye.currentTime),g});return ye.currentTime=xt,{type:3,steps:w,options:Mi(ce.options)}}visitAnimate(ce,ye){const Ke=function hi(ot,ce){if(ot.hasOwnProperty("duration"))return ot;if("number"==typeof ot)return Ti(Ar(ot,ce).duration,0,"");const ye=ot;if(ye.split(/\s+/).some(w=>"{"==w.charAt(0)&&"{"==w.charAt(1))){const w=Ti(0,0,"");return w.dynamic=!0,w.strValue=ye,w}const xt=Ar(ye,ce);return Ti(xt.duration,xt.delay,xt.easing)}(ce.timings,ye.errors);ye.currentAnimateTimings=Ke;let xt,w=ce.styles?ce.styles:k({});if(5==w.type)xt=this.visitKeyframes(w,ye);else{let l=ce.styles,g=!1;if(!l){g=!0;const fe={};Ke.easing&&(fe.easing=Ke.easing),l=k(fe)}ye.currentTime+=Ke.duration+Ke.delay;const B=this.visitStyle(l,ye);B.isEmptyStep=g,xt=B}return ye.currentAnimateTimings=null,{type:4,timings:Ke,style:xt,options:null}}visitStyle(ce,ye){const Ke=this._makeStyleAst(ce,ye);return this._validateStyleAst(Ke,ye),Ke}_makeStyleAst(ce,ye){const Ke=[];Array.isArray(ce.styles)?ce.styles.forEach(l=>{"string"==typeof l?l==Z?Ke.push(l):ye.errors.push(function Ot(ot){return new _.\u0275RuntimeError(3002,p)}()):Ke.push(l)}):Ke.push(ce.styles);let xt=!1,w=null;return Ke.forEach(l=>{if(bs(l)){const g=l,B=g.easing;if(B&&(w=B,delete g.easing),!xt)for(let fe in g)if(g[fe].toString().indexOf("{{")>=0){xt=!0;break}}}),{type:6,styles:Ke,easing:w,offset:ce.offset,containsDynamicStyles:xt,options:null}}_validateStyleAst(ce,ye){const Ke=ye.currentAnimateTimings;let xt=ye.currentTime,w=ye.currentTime;Ke&&w>0&&(w-=Ke.duration+Ke.delay),ce.styles.forEach(l=>{"string"!=typeof l&&Object.keys(l).forEach(g=>{if(!this._driver.validateStyleProperty(g))return delete l[g],void ye.unsupportedCSSPropertiesFound.add(g);const B=ye.collectedStyles[ye.currentQuerySelector],fe=B[g];let De=!0;fe&&(w!=xt&&w>=fe.startTime&&xt<=fe.endTime&&(ye.errors.push(function Lt(ot,ce,ye,Ke,xt){return new _.\u0275RuntimeError(3010,p)}()),De=!1),w=fe.startTime),De&&(B[g]={startTime:w,endTime:xt}),ye.options&&function Dn(ot,ce,ye){const Ke=ce.params||{},xt=Yn(ot);xt.length&&xt.forEach(w=>{Ke.hasOwnProperty(w)||ye.push(function ie(ot){return new _.\u0275RuntimeError(3001,p)}())})}(l[g],ye.options,ye.errors)})})}visitKeyframes(ce,ye){const Ke={type:5,styles:[],options:null};if(!ye.currentAnimateTimings)return ye.errors.push(function Jt(){return new _.\u0275RuntimeError(3011,p)}()),Ke;let w=0;const l=[];let g=!1,B=!1,fe=0;const De=ce.steps.map(tr=>{const mr=this._makeStyleAst(tr,ye);let Pr=null!=mr.offset?mr.offset:function fs(ot){if("string"==typeof ot)return null;let ce=null;if(Array.isArray(ot))ot.forEach(ye=>{if(bs(ye)&&ye.hasOwnProperty("offset")){const Ke=ye;ce=parseFloat(Ke.offset),delete Ke.offset}});else if(bs(ot)&&ot.hasOwnProperty("offset")){const ye=ot;ce=parseFloat(ye.offset),delete ye.offset}return ce}(mr.styles),Ie=0;return null!=Pr&&(w++,Ie=mr.offset=Pr),B=B||Ie<0||Ie>1,g=g||Ie<fe,fe=Ie,l.push(Ie),mr});B&&ye.errors.push(function Rt(){return new _.\u0275RuntimeError(3012,p)}()),g&&ye.errors.push(function it(){return new _.\u0275RuntimeError(3200,p)}());const rt=ce.steps.length;let Pt=0;w>0&&w<rt?ye.errors.push(function _t(){return new _.\u0275RuntimeError(3202,p)}()):0==w&&(Pt=1/(rt-1));const qt=rt-1,$t=ye.currentTime,Tn=ye.currentAnimateTimings,zn=Tn.duration;return De.forEach((tr,mr)=>{const Pr=Pt>0?mr==qt?1:Pt*mr:l[mr],Ie=Pr*zn;
vendor: 9,392 bytes, line 1
1ye.currentTime=$t+Tn.delay+Ie,Tn.duration=Ie,this._validateStyleAst(tr,ye),tr.offset=Pr,Ke.styles.push(tr)}),Ke}visitReference(ce,ye){return{type:8,animation:kr(this,an(ce.animation),ye),options:Mi(ce.options)}}visitAnimateChild(ce,ye){return ye.depCount++,{type:9,options:Mi(ce.options)}}visitAnimateRef(ce,ye){return{type:10,animation:this.visitReference(ce.animation,ye),options:Mi(ce.options)}}visitQuery(ce,ye){const Ke=ye.currentQuerySelector,xt=ce.options||{};ye.queryCount++,ye.currentQuery=ce;const[w,l]=function xi(ot){const ce=!!ot.split(/\s*,\s*/).find(ye=>":self"==ye);return ce&&(ot=ot.replace(Hi,"")),ot=ot.replace(/@\*/g,Yt).replace(/@\w+/g,ye=>Yt+"-"+ye.substr(1)).replace(/:animating/g,An),[ot,ce]}(ce.selector);ye.currentQuerySelector=Ke.length?Ke+" "+w:w,Tt(ye.collectedStyles,ye.currentQuerySelector,{});const g=kr(this,an(ce.animation),ye);return ye.currentQuery=null,ye.currentQuerySelector=Ke,{type:11,selector:w,limit:xt.limit||0,optional:!!xt.optional,includeSelf:l,animation:g,originalSelector:ce.selector,options:Mi(ce.options)}}visitStagger(ce,ye){ye.currentQuery||ye.errors.push(function ut(){return new _.\u0275RuntimeError(3013,p)}());const Ke="full"===ce.timings?{duration:0,delay:0,easing:"full"}:Ar(ce.timings,ye.errors,!0);return{type:12,animation:kr(this,an(ce.animation),ye),timings:Ke,options:null}}}class hs{constructor(ce){this.errors=ce,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function bs(ot){return!Array.isArray(ot)&&"object"==typeof ot}function Mi(ot){return ot?(ot=dr(ot)).params&&(ot.params=function ss(ot){return ot?dr(ot):null}(ot.params)):ot={},ot}function Ti(ot,ce,ye){return{duration:ot,delay:ce,easing:ye}}function os(ot,ce,ye,Ke,xt,w,l=null,g=!1){return{type:1,element:ot,keyframes:ce,preStyleProps:ye,postStyleProps:Ke,duration:xt,delay:w,totalTime:xt+w,easing:l,subTimeline:g}}class Ii{constructor(){this._map=new Map}get(ce){return this._map.get(ce)||[]}append(ce,ye){let Ke=this._map.get(ce);Ke||this._map.set(ce,Ke=[]),Ke.push(...ye)}has(ce){return this._map.has(ce)}clear(){this._map.clear()}}const Ut=new RegExp(":enter","g"),_n=new RegExp(":leave","g");function Mn(ot,ce,ye,Ke,xt,w={},l={},g,B,fe=[]){return(new qn).buildKeyframes(ot,ce,ye,Ke,xt,w,l,g,B,fe)}class qn{buildKeyframes(ce,ye,Ke,xt,w,l,g,B,fe,De=[]){fe=fe||new Ii;const rt=new ur(ce,ye,fe,xt,w,De,[]);rt.options=B,rt.currentTimeline.setStyles([l],null,rt.errors,B),kr(this,Ke,rt);const Pt=rt.timelines.filter(qt=>qt.containsAnimation());if(Object.keys(g).length){let qt;for(let $t=Pt.length-1;$t>=0;$t--){const Tn=Pt[$t];if(Tn.element===ye){qt=Tn;break}}qt&&!qt.allowOnlyTimelineStyles()&&qt.setStyles([g],null,rt.errors,B)}return Pt.length?Pt.map(qt=>qt.buildKeyframes()):[os(ye,[],[],[],0,0,"",!1)]}visitTrigger(ce,ye){}visitState(ce,ye){}visitTransition(ce,ye){}visitAnimateChild(ce,ye){const Ke=ye.subInstructions.get(ye.element);if(Ke){const xt=ye.createSubContext(ce.options),w=ye.currentTimeline.currentTime,l=this._visitSubInstructions(Ke,xt,xt.options);w!=l&&ye.transformIntoNewTimeline(l)}ye.previousNode=ce}visitAnimateRef(ce,ye){const Ke=ye.createSubContext(ce.options);Ke.transformIntoNewTimeline(),this.visitReference(ce.animation,Ke),ye.transformIntoNewTimeline(Ke.currentTimeline.currentTime),ye.previousNode=ce}_visitSubInstructions(ce,ye,Ke){let w=ye.currentTimeline.currentTime;const l=null!=Ke.duration?sr(Ke.duration):null,g=null!=Ke.delay?sr(Ke.delay):null;return 0!==l&&ce.forEach(B=>{const fe=ye.appendInstructionToTimeline(B,l,g);w=Math.max(w,fe.duration+fe.delay)}),w}visitReference(ce,ye){ye.updateOptions(ce.options,!0),kr(this,ce.animation,ye),ye.previousNode=ce}visitSequence(ce,ye){const Ke=ye.subContextCount;let xt=ye;const w=ce.options;if(w&&(w.params||w.delay)&&(xt=ye.createSubContext(w),xt.transformIntoNewTimeline(),null!=w.delay)){6==xt.previousNode.type&&(xt.currentTimeline.snapshotCurrentStyles(),xt.previousNode=cr);const l=sr(w.delay);xt.delayNextStep(l)}ce.steps.length&&(ce.steps.forEach(l=>kr(this,l,xt)),xt.currentTimeline.applyStylesToKeyframe(),xt.subContextCount>Ke&&xt.transformIntoNewTimeline()),ye.previousNode=ce}visitGroup(ce,ye){const Ke=[];let xt=ye.currentTimeline.currentTime;const w=ce.options&&ce.options.delay?sr(ce.options.delay):0;ce.steps.forEach(l=>{const g=ye.createSubContext(ce.options);w&&g.delayNextStep(w),kr(this,l,g),xt=Math.max(xt,g.currentTimeline.currentTime),Ke.push(g.currentTimeline)}),Ke.forEach(l=>ye.currentTimeline.mergeTimelineCollectedStyles(l)),ye.transformIntoNewTimeline(xt),ye.previousNode=ce}_visitTiming(ce,ye){if(ce.dynamic){const Ke=ce.strValue;return Ar(ye.params?Qt(Ke,ye.params,ye.errors):Ke,ye.errors)}return{duration:ce.duration,delay:ce.delay,easing:ce.easing}}visitAnimate(ce,ye){const Ke=ye.currentAnimateTimings=this._visitTiming(ce.timings,ye),xt=ye.currentTimeline;Ke.delay&&(ye.incrementTime(Ke.delay),xt.snapshotCurrentStyles());const w=ce.style;5==w.type?this.visitKeyframes(w,ye):(ye.incrementTime(Ke.duration),this.visitStyle(w,ye),xt.applyStylesToKeyframe()),ye.currentAnimateTimings=null,ye.previousNode=ce}visitStyle(ce,ye){const Ke=ye.currentTimeline,xt=ye.currentAnimateTimings;!xt&&Ke.getCurrentStyleProperties().length&&Ke.forwardFrame();const w=xt&&xt.easing||ce.easing;ce.isEmptyStep?Ke.applyEmptyStep(w):Ke.setStyles(ce.styles,w,ye.errors,ye.options),ye.previousNode=ce}visitKeyframes(ce,ye){const Ke=ye.currentAnimateTimings,xt=ye.currentTimeline.duration,w=Ke.duration,g=ye.createSubContext().currentTimeline;g.easing=Ke.easing,ce.styles.forEach(B=>{g.forwardTime((B.offset||0)*w),g.setStyles(B.styles,B.easing,ye.errors,ye.options),g.applyStylesToKeyframe()}),ye.currentTimeline.mergeTimelineCollectedStyles(g),ye.transformIntoNewTimeline(xt+w),ye.previousNode=ce}visitQuery(ce,ye){const Ke=ye.currentTimeline.currentTime,xt=ce.options||{},w=xt.delay?sr(xt.delay):0;w&&(6===ye.previousNode.type||0==Ke&&ye.currentTimeline.getCurrentStyleProperties().length)&&(ye.currentTimeline.snapshotCurrentStyles(),ye.previousNode=cr);let l=Ke;const g=ye.invokeQuery(ce.selector,ce.originalSelector,ce.limit,ce.includeSelf,!!xt.optional,ye.errors);ye.currentQueryTotal=g.length;let B=null;g.forEach((fe,De)=>{ye.currentQueryIndex=De;const rt=ye.createSubContext(ce.options,fe);w&&rt.delayNextStep(w),fe===ye.element&&(B=rt.currentTimeline),kr(this,ce.animation,rt),rt.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,rt.currentTimeline.currentTime)}),ye.currentQueryIndex=0,ye.currentQueryTotal=0,ye.transformIntoNewTimeline(l),B&&(ye.currentTimeline.mergeTimelineCollectedStyles(B),ye.currentTimeline.snapshotCurrentStyles()),ye.previousNode=ce}visitStagger(ce,ye){const Ke=ye.parentContext,xt=ye.currentTimeline,w=ce.timings,l=Math.abs(w.duration),g=l*(ye.currentQueryTotal-1);let B=l*ye.currentQueryIndex;switch(w.duration<0?"reverse":w.easing){case"reverse":B=g-B;break;case"full":B=Ke.currentStaggerTime}const De=ye.currentTimeline;B&&De.delayNextStep(B);const rt=De.currentTime;kr(this,ce.animation,ye),ye.previousNode=ce,Ke.currentStaggerTime=xt.currentTime-rt+(xt.startTime-Ke.currentTimeline.startTime)}}const cr={};class ur{constructor(ce,ye,Ke,xt,w,l,g,B){this._driver=ce,this.element=ye,this.subInstructions=Ke,this._enterClassName=xt,this._leaveClassName=w,this.errors=l,this.timelines=g,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=B||new _r(this._driver,ye,0),g.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(ce,ye){if(!ce)return;const Ke=ce;let xt=this.options;null!=Ke.duration&&(xt.duration=sr(Ke.duration)),null!=Ke.delay&&(xt.delay=sr(Ke.delay));const w=Ke.params;if(w){let l=xt.params;l||(l=this.options.params={}),Object.keys(w).forEach(g=>{(!ye||!l.hasOwnProperty(g))&&(l[g]=Qt(w[g],l,this.errors))})}}_copyOptions(){const ce={};if(this.options){const ye=this.options.params;if(ye){const Ke=ce.params={};Object.keys(ye).forEach(xt=>{Ke[xt]=ye[xt]})}}return ce}createSubContext(ce=null,ye,Ke){const xt=ye||this.element,w=new ur(this._driver,xt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(xt,Ke||0));return w.previousNode=this.previousNode,w.currentAnimateTimings=this.currentAnimateTimings,w.options=this._copyOptions(),w.updateOptions(ce),w.currentQueryIndex=this.currentQueryIndex,w.currentQueryTotal=this.currentQueryTotal,w.parentContext=this,this.subContextCount++,w}transformIntoNewTimeline(ce){return this.previousNode=cr,this.currentTimeline=this.currentTimeline.fork(this.element,ce),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(ce,ye,Ke){const xt={duration:null!=ye?ye:ce.duration,delay:this.currentTimeline.currentTime+(null!=Ke?Ke:0)+ce.delay,easing:""},w=new Mr(this._driver,ce.element,ce.keyframes,ce.preStyleProps,ce.postStyleProps,xt,ce.stretchStartingKeyframe);return this.timelines.push(w),xt}incrementTime(ce){this.currentTimeline.forwardTime(this.currentTimeline.duration+ce)}delayNextStep(ce){ce>0&&this.currentTimeline.delayNextStep(ce)}invokeQuery(ce,ye,Ke,xt,w,l){let g=[];
1if(xt&&g.push(this.element),ce.length>0){ce=(ce=ce.replace(Ut,"."+this._enterClassName)).replace(_n,"."+this._leaveClassName);let fe=this._driver.query(this.element,ce,1!=Ke);0!==Ke&&(fe=Ke<0?fe.slice(fe.length+Ke,fe.length):fe.slice(0,Ke)),g.push(...fe)}return!w&&0==g.length&&l.push(function yt(ot){return new _.\u0275RuntimeError(3014,p)}()),g}}class _r{constructor(ce,ye,Ke,xt){this._driver=ce,this.element=ye,this.startTime=Ke,this._elementTimelineStylesLookup=xt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ye),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ye,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(ce){const ye=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||ye?(this.forwardTime(this.currentTime+ce),ye&&this.snapshotCurrentStyles()):this.startTime+=ce}fork(ce,ye){return this.applyStylesToKeyframe(),new _r(this._driver,ce,ye||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(ce){this.applyStylesToKeyframe(),this.duration=ce,this._loadKeyframe()}_updateStyle(ce,ye){this._localTimelineStyles[ce]=ye,this._globalTimelineStyles[ce]=ye,this._styleSummary[ce]={time:this.currentTime,value:ye}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(ce){ce&&(this._previousKeyframe.easing=ce),Object.keys(this._globalTimelineStyles).forEach(ye=>{this._backFill[ye]=this._globalTimelineStyles[ye]||Z,this._currentKeyframe[ye]=Z}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(ce,ye,Ke,xt){ye&&(this._previousKeyframe.easing=ye);const w=xt&&xt.params||{},l=function le(ot,ce){const ye={};let Ke;return ot.forEach(xt=>{"*"===xt?(Ke=Ke||Object.keys(ce),Ke.forEach(w=>{ye[w]=Z})):jr(xt,!1,ye)}),ye}(ce,this._globalTimelineStyles);Object.keys(l).forEach(g=>{const B=Qt(l[g],w,Ke);this._pendingStyles[g]=B,this._localTimelineStyles.hasOwnProperty(g)||(this._backFill[g]=this._globalTimelineStyles.hasOwnProperty(g)?this._globalTimelineStyles[g]:Z),this._updateStyle(g,B)})}applyStylesToKeyframe(){const ce=this._pendingStyles,ye=Object.keys(ce);0!=ye.length&&(this._pendingStyles={},ye.forEach(Ke=>{this._currentKeyframe[Ke]=ce[Ke]}),Object.keys(this._localTimelineStyles).forEach(Ke=>{this._currentKeyframe.hasOwnProperty(Ke)||(this._currentKeyframe[Ke]=this._localTimelineStyles[Ke])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(ce=>{const ye=this._localTimelineStyles[ce];this._pendingStyles[ce]=ye,this._updateStyle(ce,ye)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const ce=[];for(let ye in this._currentKeyframe)ce.push(ye);return ce}mergeTimelineCollectedStyles(ce){Object.keys(ce._styleSummary).forEach(ye=>{const Ke=this._styleSummary[ye],xt=ce._styleSummary[ye];(!Ke||xt.time>Ke.time)&&this._updateStyle(ye,xt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const ce=new Set,ye=new Set,Ke=1===this._keyframes.size&&0===this.duration;let xt=[];this._keyframes.forEach((g,B)=>{const fe=jr(g,!0);Object.keys(fe).forEach(De=>{const rt=fe[De];"!"==rt?ce.add(De):rt==Z&&ye.add(De)}),Ke||(fe.offset=B/this.duration),xt.push(fe)});const w=ce.size?En(ce.values()):[],l=ye.size?En(ye.values()):[];if(Ke){const g=xt[0],B=dr(g);g.offset=0,B.offset=1,xt=[g,B]}return os(this.element,xt,w,l,this.duration,this.startTime,this.easing,!1)}}class Mr extends _r{constructor(ce,ye,Ke,xt,w,l,g=!1){super(ce,ye,l.delay),this.keyframes=Ke,this.preStyleProps=xt,this.postStyleProps=w,this._stretchStartingKeyframe=g,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let ce=this.keyframes,{delay:ye,duration:Ke,easing:xt}=this.timings;if(this._stretchStartingKeyframe&&ye){const w=[],l=Ke+ye,g=ye/l,B=jr(ce[0],!1);B.offset=0,w.push(B);const fe=jr(ce[0],!1);fe.offset=Wr(g),w.push(fe);const De=ce.length-1;for(let rt=1;rt<=De;rt++){let Pt=jr(ce[rt],!1);Pt.offset=Wr((ye+Pt.offset*Ke)/l),w.push(Pt)}Ke=l,ye=0,xt="",ce=w}return os(this.element,ce,this.preStyleProps,this.postStyleProps,Ke,ye,xt,!0)}}function Wr(ot,ce=3){const ye=Math.pow(10,ce-1);return Math.round(ot*ye)/ye}class be{}class dt extends be{normalizePropertyName(ce,ye){return er(ce)}normalizeStyleValue(ce,ye,Ke,xt){let w="";const l=Ke.toString().trim();if(rn[ye]&&0!==Ke&&"0"!==Ke)if("number"==typeof Ke)w="px";else{const g=Ke.match(/^[+-]?[\d\.]+([a-z]*)$/);g&&0==g[1].length&&xt.push(function Ne(ot,ce){return new _.\u0275RuntimeError(3005,p)}())}return l+w}}const rn=(()=>function fn(ot){const ce={};return ot.forEach(ye=>ce[ye]=!0),ce}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function xn(ot,ce,ye,Ke,xt,w,l,g,B,fe,De,rt,Pt){return{type:0,element:ot,triggerName:ce,isRemovalTransition:xt,fromState:ye,fromStyles:w,toState:Ke,toStyles:l,timelines:g,queriedElements:B,preStyleProps:fe,postStyleProps:De,totalTime:rt,errors:Pt}}const Er={};class gr{constructor(ce,ye,Ke){this._triggerName=ce,this.ast=ye,this._stateStyles=Ke}match(ce,ye,Ke,xt){return function hr(ot,ce,ye,Ke,xt){return ot.some(w=>w(ce,ye,Ke,xt))}(this.ast.matchers,ce,ye,Ke,xt)}buildStyles(ce,ye,Ke){const xt=this._stateStyles["*"],w=this._stateStyles[ce],l=xt?xt.buildStyles(ye,Ke):{};return w?w.buildStyles(ye,Ke):l}build(ce,ye,Ke,xt,w,l,g,B,fe,De){const rt=[],Pt=this.ast.options&&this.ast.options.params||Er,$t=this.buildStyles(Ke,g&&g.params||Er,rt),Tn=B&&B.params||Er,zn=this.buildStyles(xt,Tn,rt),tr=new Set,mr=new Map,Pr=new Map,Ie="void"===xt,Te={params:Object.assign(Object.assign({},Pt),Tn)},_e=De?[]:Mn(ce,ye,this.ast.animation,w,l,$t,zn,Te,fe,rt);let qe=0;if(_e.forEach(Vt=>{qe=Math.max(Vt.duration+Vt.delay,qe)}),rt.length)return xn(ye,this._triggerName,Ke,xt,Ie,$t,zn,[],[],mr,Pr,qe,rt);_e.forEach(Vt=>{const Zt=Vt.element,In=Tt(mr,Zt,{});Vt.preStyleProps.forEach(Gr=>In[Gr]=!0);const ar=Tt(Pr,Zt,{});Vt.postStyleProps.forEach(Gr=>ar[Gr]=!0),Zt!==ye&&tr.add(Zt)});const pt=En(tr.values());return xn(ye,this._triggerName,Ke,xt,Ie,$t,zn,_e,pt,mr,Pr,qe)}}class pr{constructor(ce,ye,Ke){this.styles=ce,this.defaultParams=ye,this.normalizer=Ke}buildStyles(ce,ye){const Ke={},xt=dr(this.defaultParams);return Object.keys(ce).forEach(w=>{const l=ce[w];null!=l&&(xt[w]=l)}
1),this.styles.styles.forEach(w=>{if("string"!=typeof w){const l=w;Object.keys(l).forEach(g=>{let B=l[g];B.length>1&&(B=Qt(B,xt,ye));const fe=this.normalizer.normalizePropertyName(g,ye);B=this.normalizer.normalizeStyleValue(g,fe,B,ye),Ke[fe]=B})}}),Ke}}class ii{constructor(ce,ye,Ke){this.name=ce,this.ast=ye,this._normalizer=Ke,this.transitionFactories=[],this.states={},ye.states.forEach(xt=>{this.states[xt.name]=new pr(xt.style,xt.options&&xt.options.params||{},Ke)}),Je(this.states,"true","1"),Je(this.states,"false","0"),ye.transitions.forEach(xt=>{this.transitionFactories.push(new gr(ce,xt,this.states))}),this.fallbackTransition=function Or(ot,ce,ye){return new gr(ot,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,g)=>!0],options:null,queryCount:0,depCount:0},ce)}(ce,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(ce,ye,Ke,xt){return this.transitionFactories.find(l=>l.match(ce,ye,Ke,xt))||null}matchStyles(ce,ye,Ke){return this.fallbackTransition.buildStyles(ce,ye,Ke)}}function Je(ot,ce,ye){ot.hasOwnProperty(ce)?ot.hasOwnProperty(ye)||(ot[ye]=ot[ce]):ot.hasOwnProperty(ye)&&(ot[ce]=ot[ye])}const Ve=new Ii;class Be{constructor(ce,ye,Ke){this.bodyNode=ce,this._driver=ye,this._normalizer=Ke,this._animations={},this._playersById={},this.players=[]}register(ce,ye){const Ke=[],w=ai(this._driver,ye,Ke,[]);if(Ke.length)throw function sn(ot){return new _.\u0275RuntimeError(3503,p)}();this._animations[ce]=w}_buildPlayer(ce,ye,Ke){const xt=ce.element,w=rr(0,this._normalizer,0,ce.keyframes,ye,Ke);return this._driver.animate(xt,w,ce.duration,ce.delay,ce.easing,[],!0)}create(ce,ye,Ke={}){const xt=[],w=this._animations[ce];let l;const g=new Map;if(w?(l=Mn(this._driver,ye,w,ke,At,{},{},Ke,Ve,xt),l.forEach(De=>{const rt=Tt(g,De.element,{});De.postStyleProps.forEach(Pt=>rt[Pt]=null)})):(xt.push(function ze(){return new _.\u0275RuntimeError(3300,p)}()),l=[]),xt.length)throw function nt(ot){return new _.\u0275RuntimeError(3504,p)}();g.forEach((De,rt)=>{Object.keys(De).forEach(Pt=>{De[Pt]=this._driver.computeStyle(rt,Pt,Z)})});const fe=Nn(l.map(De=>{const rt=g.get(De.element);return this._buildPlayer(De,{},rt)}));return this._playersById[ce]=fe,fe.onDestroy(()=>this.destroy(ce)),this.players.push(fe),fe}destroy(ce){const ye=this._getPlayer(ce);ye.destroy(),delete this._playersById[ce];const Ke=this.players.indexOf(ye);Ke>=0&&this.players.splice(Ke,1)}_getPlayer(ce){const ye=this._playersById[ce];if(!ye)throw function mt(ot){return new _.\u0275RuntimeError(3301,p)}();return ye}listen(ce,ye,Ke,xt){const w=nr(ye,"","","");return Fn(this._getPlayer(ce),Ke,w,xt),()=>{}}command(ce,ye,Ke,xt){if("register"==Ke)return void this.register(ce,xt[0]);if("create"==Ke)return void this.create(ce,ye,xt[0]||{});const w=this._getPlayer(ce);switch(Ke){case"play":w.play();break;case"pause":w.pause();break;case"reset":w.reset();break;case"restart":w.restart();break;case"finish":w.finish();break;case"init":w.init();break;case"setPosition":w.setPosition(parseFloat(xt[0]));break;case"destroy":this.destroy(ce)}}}const It="ng-animate-queued",Sr="ng-animate-disabled",Ze=[],Xt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Jn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cr="__ng_removed";class Vr{constructor(ce,ye=""){this.namespaceId=ye;const Ke=ce&&ce.hasOwnProperty("value");if(this.value=function Ki(ot){return null!=ot?ot:null}(Ke?ce.value:ce),Ke){const w=dr(ce);delete w.value,this.options=w}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(ce){const ye=ce.params;if(ye){const Ke=this.options.params;Object.keys(ye).forEach(xt=>{null==Ke[xt]&&(Ke[xt]=ye[xt])})}}}const Jr="void",Zn=new Vr(Jr);class qr{constructor(ce,ye,Ke){this.id=ce,this.hostElement=ye,this._engine=Ke,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+ce,gs(ye,this._hostClassName)}listen(ce,ye,Ke,xt){if(!this._triggers.hasOwnProperty(ye))throw function Nt(ot,ce){return new _.\u0275RuntimeError(3302,p)}();if(null==Ke||0==Ke.length)throw function wt(ot){return new _.\u0275RuntimeError(3303,p)}();if(!function ps(ot){return"start"==ot||"done"==ot}(Ke))throw function bt(ot,ce){return new _.\u0275RuntimeError(3400,p)}();const w=Tt(this._elementListeners,ce,[]),l={name:ye,phase:Ke,callback:xt};w.push(l);const g=Tt(this._engine.statesByElement,ce,{});return g.hasOwnProperty(ye)||(gs(ce,Ht),gs(ce,Ht+"-"+ye),g[ye]=Zn),()=>{this._engine.afterFlush(()=>{const B=w.indexOf(l);B>=0&&w.splice(B,1),this._triggers[ye]||delete g[ye]})}}register(ce,ye){return!this._triggers[ce]&&(this._triggers[ce]=ye,!0)}_getTrigger(ce){const ye=this._triggers[ce];if(!ye)throw function Kt(ot){return new _.\u0275RuntimeError(3401,p)}();return ye}trigger(ce,ye,Ke,xt=!0){const w=this._getTrigger(ye),l=new mi(this.id,ye,ce);let g=this._engine.statesByElement.get(ce);g||(gs(ce,Ht),gs(ce,Ht+"-"+ye),this._engine.statesByElement.set(ce,g={}));let B=g[ye];const fe=new Vr(Ke,this.id);if(!(Ke&&Ke.hasOwnProperty("value"))&&B&&fe.absorbOptions(B.options),g[ye]=fe,B||(B=Zn),fe.value!==Jr&&B.value===fe.value){if(!function Qs(ot,ce){const ye=Object.keys(ot),Ke=Object.keys(ce);if(ye.length!=Ke.length)return!1;for(let xt=0;xt<ye.length;xt++){const w=ye[xt];if(!ce.hasOwnProperty(w)||ot[w]!==ce[w])return!1}return!0}(B.params,fe.params)){const Tn=[],zn=w.matchStyles(B.value,B.params,Tn),tr=w.matchStyles(fe.value,fe.params,Tn);Tn.length?this._engine.reportError(Tn):this._engine.afterFlush(()=>{kt(ce,zn),_i(ce,tr)})}return}const Pt=Tt(this._engine.playersByElement,ce,[]);Pt.forEach(Tn=>{Tn.namespaceId==this.id&&Tn.triggerName==ye&&Tn.queued&&Tn.destroy()});let qt=w.matchTransition(B.value,fe.value,ce,fe.params),$t=!1;if(!qt){if(!xt)return;qt=w.fallbackTransition,$t=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ce,triggerName:ye,transition:qt,fromState:B,toState:fe,player:l,isFallbackTransition:$t}),$t||(gs(ce,It),l.onStart(()=>{Ms(ce,It)})),l.onDone(()=>{let Tn=this.players.indexOf(l);Tn>=0&&this.players.splice(Tn,1);const zn=this._engine.playersByElement.get(ce);if(zn){let tr=zn.indexOf(l);tr>=0&&zn.splice(tr,1)}}),this.players.push(l),Pt.push(l),l}deregister(ce){delete this._triggers[ce],this._engine.statesByElement.forEach((ye,Ke)=>{delete ye[ce]}),this._elementListeners.forEach((ye,Ke)=>{this._elementListeners.set(Ke,ye.filter(xt=>xt.name!=ce))})}clearElementCache(ce){this._engine.statesByElement.delete(ce),this._elementListeners.delete(ce);const ye=this._engine.playersByElement.get(ce);ye&&(ye.forEach(Ke=>Ke.destroy()),this._engine.playersByElement.delete(ce))}_signalRemovalForInnerTriggers(ce,ye){const Ke=this._engine.driver.query(ce,Yt,!0);Ke.forEach(xt=>{if(xt[Cr])return;const w=this._engine.fetchNamespacesByElement(xt);w.size?w.forEach(l=>l.triggerLeaveAnimation(xt,ye,!1,!0)):this.clearElementCache(xt)}),this._engine.afterFlushAnimationsDone(()=>Ke.forEach(xt=>this.clearElementCache(xt)))}triggerLeaveAnimation(ce,ye,Ke,xt){const w=this._engine.statesByElement.get(ce),l=new Map;if(w){const g=[];
1if(Object.keys(w).forEach(B=>{if(l.set(B,w[B].value),this._triggers[B]){const fe=this.trigger(ce,B,Jr,xt);fe&&g.push(fe)}}),g.length)return this._engine.markElementAsRemoved(this.id,ce,!0,ye,l),Ke&&Nn(g).onDone(()=>this._engine.processLeaveNode(ce)),!0}return!1}prepareLeaveAnimationListeners(ce){const ye=this._elementListeners.get(ce),Ke=this._engine.statesByElement.get(ce);if(ye&&Ke){const xt=new Set;ye.forEach(w=>{const l=w.name;if(xt.has(l))return;xt.add(l);const B=this._triggers[l].fallbackTransition,fe=Ke[l]||Zn,De=new Vr(Jr),rt=new mi(this.id,l,ce);this._engine.totalQueuedPlayers++,this._queue.push({element:ce,triggerName:l,transition:B,fromState:fe,toState:De,player:rt,isFallbackTransition:!0})})}}removeNode(ce,ye){const Ke=this._engine;if(ce.childElementCount&&this._signalRemovalForInnerTriggers(ce,ye),this.triggerLeaveAnimation(ce,ye,!0))return;let xt=!1;if(Ke.totalAnimations){const w=Ke.players.length?Ke.playersByQueriedElement.get(ce):[];if(w&&w.length)xt=!0;else{let l=ce;for(;l=l.parentNode;)if(Ke.statesByElement.get(l)){xt=!0;break}}}if(this.prepareLeaveAnimationListeners(ce),xt)Ke.markElementAsRemoved(this.id,ce,!1,ye);else{const w=ce[Cr];(!w||w===Xt)&&(Ke.afterFlush(()=>this.clearElementCache(ce)),Ke.destroyInnerAnimations(ce),Ke._onRemovalComplete(ce,ye))}}insertNode(ce,ye){gs(ce,this._hostClassName)}drainQueuedTransitions(ce){const ye=[];return this._queue.forEach(Ke=>{const xt=Ke.player;if(xt.destroyed)return;const w=Ke.element,l=this._elementListeners.get(w);l&&l.forEach(g=>{if(g.name==Ke.triggerName){const B=nr(w,Ke.triggerName,Ke.fromState.value,Ke.toState.value);B._data=ce,Fn(Ke.player,g.phase,B,g.callback)}}),xt.markedForDestroy?this._engine.afterFlush(()=>{xt.destroy()}):ye.push(Ke)}),this._queue=[],ye.sort((Ke,xt)=>{const w=Ke.transition.ast.depCount,l=xt.transition.ast.depCount;return 0==w||0==l?w-l:this._engine.driver.containsElement(Ke.element,xt.element)?1:-1})}destroy(ce){this.players.forEach(ye=>ye.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,ce)}elementContainsData(ce){let ye=!1;return this._elementListeners.has(ce)&&(ye=!0),ye=!!this._queue.find(Ke=>Ke.element===ce)||ye,ye}}class Pi{constructor(ce,ye,Ke){this.bodyNode=ce,this.driver=ye,this._normalizer=Ke,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(xt,w)=>{}}_onRemovalComplete(ce,ye){this.onRemovalComplete(ce,ye)}get queuedPlayers(){const ce=[];return this._namespaceList.forEach(ye=>{ye.players.forEach(Ke=>{Ke.queued&&ce.push(Ke)})}),ce}createNamespace(ce,ye){const Ke=new qr(ce,ye,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,ye)?this._balanceNamespaceList(Ke,ye):(this.newHostElements.set(ye,Ke),this.collectEnterElement(ye)),this._namespaceLookup[ce]=Ke}_balanceNamespaceList(ce,ye){const Ke=this._namespaceList,xt=this.namespacesByHostElement,w=Ke.length-1;if(w>=0){let l=!1;if(void 0!==this.driver.getParentElement){let g=this.driver.getParentElement(ye);for(;g;){const B=xt.get(g);if(B){const fe=Ke.indexOf(B);Ke.splice(fe+1,0,ce),l=!0;break}g=this.driver.getParentElement(g)}}else for(let g=w;g>=0;g--)if(this.driver.containsElement(Ke[g].hostElement,ye)){Ke.splice(g+1,0,ce),l=!0;break}l||Ke.unshift(ce)}else Ke.push(ce);return xt.set(ye,ce),ce}register(ce,ye){let Ke=this._namespaceLookup[ce];return Ke||(Ke=this.createNamespace(ce,ye)),Ke}registerTrigger(ce,ye,Ke){let xt=this._namespaceLookup[ce];xt&&xt.register(ye,Ke)&&this.totalAnimations++}destroy(ce,ye){if(!ce)return;const Ke=this._fetchNamespace(ce);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ke.hostElement),delete this._namespaceLookup[ce];const xt=this._namespaceList.indexOf(Ke);xt>=0&&this._namespaceList.splice(xt,1)}),this.afterFlushAnimationsDone(()=>Ke.destroy(ye))}_fetchNamespace(ce){return this._namespaceLookup[ce]}fetchNamespacesByElement(ce){const ye=new Set,Ke=this.statesByElement.get(ce);if(Ke){const xt=Object.keys(Ke);for(let w=0;w<xt.length;w++){const l=Ke[xt[w]].namespaceId;if(l){const g=this._fetchNamespace(l);g&&ye.add(g)}}}return ye}trigger(ce,ye,Ke,xt){if(Ui(ye)){const w=this._fetchNamespace(ce);if(w)return w.trigger(ye,Ke,xt),!0}return!1}insertNode(ce,ye,Ke,xt){if(!Ui(ye))return;const w=ye[Cr];if(w&&w.setForRemoval){w.setForRemoval=!1,w.setForMove=!0;const l=this.collectedLeaveElements.indexOf(ye);l>=0&&this.collectedLeaveElements.splice(l,1)}if(ce){const l=this._fetchNamespace(ce);
vendor: 10,484 bytes, line 1
1l&&l.insertNode(ye,Ke)}xt&&this.collectEnterElement(ye)}collectEnterElement(ce){this.collectedEnterElements.push(ce)}markElementAsDisabled(ce,ye){ye?this.disabledNodes.has(ce)||(this.disabledNodes.add(ce),gs(ce,Sr)):this.disabledNodes.has(ce)&&(this.disabledNodes.delete(ce),Ms(ce,Sr))}removeNode(ce,ye,Ke,xt){if(Ui(ye)){const w=ce?this._fetchNamespace(ce):null;if(w?w.removeNode(ye,xt):this.markElementAsRemoved(ce,ye,!1,xt),Ke){const l=this.namespacesByHostElement.get(ye);l&&l.id!==ce&&l.removeNode(ye,xt)}}else this._onRemovalComplete(ye,xt)}markElementAsRemoved(ce,ye,Ke,xt,w){this.collectedLeaveElements.push(ye),ye[Cr]={namespaceId:ce,setForRemoval:xt,hasAnimation:Ke,removedBeforeQueried:!1,previousTriggersValues:w}}listen(ce,ye,Ke,xt,w){return Ui(ye)?this._fetchNamespace(ce).listen(ye,Ke,xt,w):()=>{}}_buildInstruction(ce,ye,Ke,xt,w){return ce.transition.build(this.driver,ce.element,ce.fromState.value,ce.toState.value,Ke,xt,ce.fromState.options,ce.toState.options,ye,w)}destroyInnerAnimations(ce){let ye=this.driver.query(ce,Yt,!0);ye.forEach(Ke=>this.destroyActiveAnimationsForElement(Ke)),0!=this.playersByQueriedElement.size&&(ye=this.driver.query(ce,An,!0),ye.forEach(Ke=>this.finishActiveQueriedAnimationOnElement(Ke)))}destroyActiveAnimationsForElement(ce){const ye=this.playersByElement.get(ce);ye&&ye.forEach(Ke=>{Ke.queued?Ke.markedForDestroy=!0:Ke.destroy()})}finishActiveQueriedAnimationOnElement(ce){const ye=this.playersByQueriedElement.get(ce);ye&&ye.forEach(Ke=>Ke.finish())}whenRenderingDone(){return new Promise(ce=>{if(this.players.length)return Nn(this.players).onDone(()=>ce());ce()})}processLeaveNode(ce){var ye;const Ke=ce[Cr];if(Ke&&Ke.setForRemoval){if(ce[Cr]=Xt,Ke.namespaceId){this.destroyInnerAnimations(ce);const xt=this._fetchNamespace(Ke.namespaceId);xt&&xt.clearElementCache(ce)}this._onRemovalComplete(ce,Ke.setForRemoval)}(null===(ye=ce.classList)||void 0===ye?void 0:ye.contains(Sr))&&this.markElementAsDisabled(ce,!1),this.driver.query(ce,".ng-animate-disabled",!0).forEach(xt=>{this.markElementAsDisabled(xt,!1)})}flush(ce=-1){let ye=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ke,xt)=>this._balanceNamespaceList(Ke,xt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ke=0;Ke<this.collectedEnterElements.length;Ke++)gs(this.collectedEnterElements[Ke],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Ke=[];try{ye=this._flushAnimations(Ke,ce)}finally{for(let xt=0;xt<Ke.length;xt++)Ke[xt]()}}else for(let Ke=0;Ke<this.collectedLeaveElements.length;Ke++)this.processLeaveNode(this.collectedLeaveElements[Ke]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Ke=>Ke()),this._flushFns=[],this._whenQuietFns.length){const Ke=this._whenQuietFns;this._whenQuietFns=[],ye.length?Nn(ye).onDone(()=>{Ke.forEach(xt=>xt())}):Ke.forEach(xt=>xt())}}reportError(ce){throw function Un(ot){return new _.\u0275RuntimeError(3402,p)}()}_flushAnimations(ce,ye){const Ke=new Ii,xt=[],w=new Map,l=[],g=new Map,B=new Map,fe=new Map,De=new Set;this.disabledNodes.forEach(xr=>{De.add(xr);const Fr=this.driver.query(xr,".ng-animate-queued",!0);for(let ti=0;ti<Fr.length;ti++)De.add(Fr[ti])});const rt=this.bodyNode,Pt=Array.from(this.statesByElement.keys()),qt=ws(Pt,this.collectedEnterElements),$t=new Map;let Tn=0;qt.forEach((xr,Fr)=>{const ti=ke+Tn++;$t.set(Fr,ti),xr.forEach(fi=>gs(fi,ti))});const zn=[],tr=new Set,mr=new Set;for(let xr=0;xr<this.collectedLeaveElements.length;xr++){const Fr=this.collectedLeaveElements[xr],ti=Fr[Cr];ti&&ti.setForRemoval&&(zn.push(Fr),tr.add(Fr),ti.hasAnimation?this.driver.query(Fr,".ng-star-inserted",!0).forEach(fi=>tr.add(fi)):mr.add(Fr))}const Pr=new Map,Ie=ws(Pt,Array.from(tr));Ie.forEach((xr,Fr)=>{const ti=At+Tn++;Pr.set(Fr,ti),xr.forEach(fi=>gs(fi,ti))}),ce.push(()=>{qt.forEach((xr,Fr)=>{const ti=$t.get(Fr);xr.forEach(fi=>Ms(fi,ti))}),Ie.forEach((xr,Fr)=>{const ti=Pr.get(Fr);xr.forEach(fi=>Ms(fi,ti))}),zn.forEach(xr=>{this.processLeaveNode(xr)})});const Te=[],_e=[];for(let xr=this._namespaceList.length-1;xr>=0;xr--)this._namespaceList[xr].drainQueuedTransitions(ye).forEach(ti=>{const fi=ti.player,ts=ti.element;if(Te.push(fi),this.collectedEnterElements.length){const Fs=ts[Cr];if(Fs&&Fs.setForMove){if(Fs.previousTriggersValues&&Fs.previousTriggersValues.has(ti.triggerName)){const Uo=Fs.previousTriggersValues.get(ti.triggerName),Co=this.statesByElement.get(ti.element);Co&&Co[ti.triggerName]&&(Co[ti.triggerName].value=Uo)}return void fi.destroy()}}const eo=!rt||!this.driver.containsElement(rt,ts),_s=Pr.get(ts),wo=$t.get(ts),Ni=this._buildInstruction(ti,Ke,wo,_s,eo);if(Ni.errors&&Ni.errors.length)return void _e.push(Ni);if(eo)return fi.onStart(()=>kt(ts,Ni.fromStyles)),fi.onDestroy(()=>_i(ts,Ni.toStyles)),void xt.push(fi);if(ti.isFallbackTransition)return fi.onStart(()=>kt(ts,Ni.fromStyles)),fi.onDestroy(()=>_i(ts,Ni.toStyles)),void xt.push(fi);const Ao=[];Ni.timelines.forEach(Fs=>{Fs.stretchStartingKeyframe=!0,this.disabledNodes.has(Fs.element)||Ao.push(Fs)}),Ni.timelines=Ao,Ke.append(ts,Ni.timelines),l.push({instruction:Ni,player:fi,element:ts}),Ni.queriedElements.forEach(Fs=>Tt(g,Fs,[]).push(fi)),Ni.preStyleProps.forEach((Fs,Uo)=>{const Co=Object.keys(Fs);if(Co.length){let vo=B.get(Uo);vo||B.set(Uo,vo=new Set),Co.forEach(qs=>vo.add(qs))}}),Ni.postStyleProps.forEach((Fs,Uo)=>{const Co=Object.keys(Fs);let vo=fe.get(Uo);vo||fe.set(Uo,vo=new Set),Co.forEach(qs=>vo.add(qs))})});if(_e.length){const xr=[];_e.forEach(Fr=>{xr.push(function tn(ot,ce){return new _.\u0275RuntimeError(3505,p)}())}),Te.forEach(Fr=>Fr.destroy()),this.reportError(xr)}const qe=new Map,pt=new Map;l.forEach(xr=>{const Fr=xr.element;Ke.has(Fr)&&(pt.set(Fr,Fr),this._beforeAnimationBuild(xr.player.namespaceId,xr.instruction,qe))}),xt.forEach(xr=>{const Fr=xr.element;this._getPreviousPlayers(Fr,!1,xr.namespaceId,xr.triggerName,null).forEach(fi=>{Tt(qe,Fr,[]).push(fi),fi.destroy()})});const Vt=zn.filter(xr=>Gs(xr,B,fe)),Zt=new Map;Xi(Zt,this.driver,mr,fe,Z).forEach(xr=>{Gs(xr,B,fe)&&Vt.push(xr)});const ar=new Map;qt.forEach((xr,Fr)=>{Xi(ar,this.driver,new Set(xr),B,"!")}),Vt.forEach(xr=>{const Fr=Zt.get(xr),ti=ar.get(xr);Zt.set(xr,Object.assign(Object.assign({},Fr),ti))});const Gr=[],Ri=[],ri={};l.forEach(xr=>{const{element:Fr,player:ti,instruction:fi}=xr;if(Ke.has(Fr)){if(De.has(Fr))return ti.onDestroy(()=>_i(Fr,fi.toStyles)),ti.disabled=!0,ti.overrideTotalTime(fi.totalTime),void xt.push(ti);let ts=ri;if(pt.size>1){let _s=Fr;const wo=[];for(;_s=_s.parentNode;){const Ni=pt.get(_s);if(Ni){ts=Ni;break}wo.push(_s)}wo.forEach(Ni=>pt.set(Ni,ts))}const eo=this._buildAnimation(ti.namespaceId,fi,qe,w,ar,Zt);if(ti.setRealPlayer(eo),ts===ri)Gr.push(ti);else{const _s=this.playersByElement.get(ts);_s&&_s.length&&(ti.parentPlayer=Nn(_s)),xt.push(ti)}}else kt(Fr,fi.fromStyles),ti.onDestroy(()=>_i(Fr,fi.toStyles)),Ri.push(ti),De.has(Fr)&&xt.push(ti)}),Ri.forEach(xr=>{const Fr=w.get(xr.element);if(Fr&&Fr.length){const ti=Nn(Fr);xr.setRealPlayer(ti)}}),xt.forEach(xr=>{xr.parentPlayer?xr.syncPlayerEvents(xr.parentPlayer):xr.destroy()});for(let xr=0;xr<zn.length;xr++){const Fr=zn[xr],ti=Fr[Cr];if(Ms(Fr,At),ti&&ti.hasAnimation)continue;let fi=[];if(g.size){let eo=g.get(Fr);eo&&eo.length&&fi.push(...eo);let _s=this.driver.query(Fr,An,!0);for(let wo=0;wo<_s.length;wo++){let Ni=g.get(_s[wo]);Ni&&Ni.length&&fi.push(...Ni)}}const ts=fi.filter(eo=>!eo.destroyed);ts.length?as(this,Fr,ts):this.processLeaveNode(Fr)}return zn.length=0,Gr.forEach(xr=>{this.players.push(xr),xr.onDone(()=>{xr.destroy();const Fr=this.players.indexOf(xr);this.players.splice(Fr,1)}),xr.play()}),Gr}elementContainsData(ce,ye){let Ke=!1;const xt=ye[Cr];return xt&&xt.setForRemoval&&(Ke=!0),this.playersByElement.has(ye)&&(Ke=!0),this.playersByQueriedElement.has(ye)&&(Ke=!0),this.statesByElement.has(ye)&&(Ke=!0),this._fetchNamespace(ce).elementContainsData(ye)||Ke}afterFlush(ce){this._flushFns.push(ce)}afterFlushAnimationsDone(ce){this._whenQuietFns.push(ce)}_getPreviousPlayers(ce,ye,Ke,xt,w){let l=[];if(ye){const g=this.playersByQueriedElement.get(ce);g&&(l=g)}else{const g=this.playersByElement.get(ce);if(g){const B=!w||w==Jr;g.forEach(fe=>{fe.queued||!B&&fe.triggerName!=xt||l.push(fe)})}}return(Ke||xt)&&(l=l.filter(g=>!(Ke&&Ke!=g.namespaceId||xt&&xt!=g.triggerName))),l}_beforeAnimationBuild(ce,ye,Ke){const w=ye.element,l=ye.isRemovalTransition?void 0:ce,g=ye.isRemovalTransition?void 0:ye.triggerName;for(const B of ye.timelines){const fe=B.element,De=fe!==w,rt=Tt(Ke,fe,[]);this._getPreviousPlayers(fe,De,l,g,ye.toState).forEach(qt=>{const $t=qt.getRealPlayer();$t.beforeDestroy&&$t.beforeDestroy(),qt.destroy(),rt.push(qt)})}kt(w,ye.fromStyles)}_buildAnimation(ce,ye,Ke,xt,w,l){const g=ye.triggerName,B=ye.element,fe=[],De=new Set,rt=new Set,Pt=ye.timelines.map($t=>{const Tn=$t.element;De.add(Tn);const zn=Tn[Cr];if(zn&&zn.removedBeforeQueried)return new ge($t.duration,$t.delay);const tr=Tn!==B,mr=function Ws(ot){const ce=[];return Ro(ot,ce),ce}((Ke.get(Tn)||Ze).map(qe=>qe.getRealPlayer())).filter(qe=>!!qe.element&&qe.element===Tn),Pr=w.get(Tn),Ie=l.get(Tn),Te=rr(0,this._normalizer,0,$t.keyframes,Pr,Ie),_e=this._buildPlayer($t,Te,mr);if($t.subTimeline&&xt&&rt.add(Tn),tr){const qe=new mi(ce,g,Tn);qe.setRealPlayer(_e),fe.push(qe)}return _e});fe.forEach($t=>{Tt(this.playersByQueriedElement,$t.element,[]).push($t),$t.onDone(()=>function ji(ot,ce,ye){let Ke;if(ot instanceof Map){if(Ke=ot.get(ce),Ke){if(Ke.length){const xt=Ke.indexOf(ye);Ke.splice(xt,1)}0==Ke.length&&ot.delete(ce)}}else if(Ke=ot[ce],Ke){if(Ke.length){const xt=Ke.indexOf(ye);Ke.splice(xt,1)}0==Ke.length&&delete ot[ce]}return Ke}(this.playersByQueriedElement,$t.element,$t))}),De.forEach($t=>gs($t,un));const qt=Nn(Pt);return qt.onDestroy(()=>{De.forEach($t=>Ms($t,un)),_i(B,ye.toStyles)}),rt.forEach($t=>{Tt(xt,$t,[]).push(qt)}),qt}_buildPlayer(ce,ye,Ke){return ye.length>0?this.driver.animate(ce.element,ye,ce.duration,ce.delay,ce.easing,Ke):new ge(ce.duration,ce.delay)}}class mi{constructor(ce,ye,Ke){this.namespaceId=ce,this.triggerName=ye,this.element=Ke,this._player=new ge,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(ce){this._containsRealPlayer||(this._player=ce,Object.keys(this._queuedCallbacks).forEac
1h(ye=>{this._queuedCallbacks[ye].forEach(Ke=>Fn(ce,ye,void 0,Ke))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ce.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(ce){this.totalTime=ce}syncPlayerEvents(ce){const ye=this._player;ye.triggerCallback&&ce.onStart(()=>ye.triggerCallback("start")),ce.onDone(()=>this.finish()),ce.onDestroy(()=>this.destroy())}_queueEvent(ce,ye){Tt(this._queuedCallbacks,ce,[]).push(ye)}onDone(ce){this.queued&&this._queueEvent("done",ce),this._player.onDone(ce)}onStart(ce){this.queued&&this._queueEvent("start",ce),this._player.onStart(ce)}onDestroy(ce){this.queued&&this._queueEvent("destroy",ce),this._player.onDestroy(ce)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(ce){this.queued||this._player.setPosition(ce)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(ce){const ye=this._player;ye.triggerCallback&&ye.triggerCallback(ce)}}function Ui(ot){return ot&&1===ot.nodeType}function qi(ot,ce){const ye=ot.style.display;return ot.style.display=null!=ce?ce:"none",ye}function Xi(ot,ce,ye,Ke,xt){const w=[];ye.forEach(B=>w.push(qi(B)));const l=[];Ke.forEach((B,fe)=>{const De={};B.forEach(rt=>{const Pt=De[rt]=ce.computeStyle(fe,rt,xt);(!Pt||0==Pt.length)&&(fe[Cr]=Jn,l.push(fe))}),ot.set(fe,De)});let g=0;return ye.forEach(B=>qi(B,w[g++])),l}function ws(ot,ce){const ye=new Map;if(ot.forEach(g=>ye.set(g,[])),0==ce.length)return ye;const xt=new Set(ce),w=new Map;function l(g){if(!g)return 1;let B=w.get(g);if(B)return B;const fe=g.parentNode;return B=ye.has(fe)?fe:xt.has(fe)?1:l(fe),w.set(g,B),B}return ce.forEach(g=>{const B=l(g);1!==B&&ye.get(B).push(g)}),ye}function gs(ot,ce){var ye;null===(ye=ot.classList)||void 0===ye||ye.add(ce)}function Ms(ot,ce){var ye;null===(ye=ot.classList)||void 0===ye||ye.remove(ce)}function as(ot,ce,ye){Nn(ye).onDone(()=>ot.processLeaveNode(ce))}function Ro(ot,ce){for(let ye=0;ye<ot.length;ye++){const Ke=ot[ye];Ke instanceof O?Ro(Ke.players,ce):ce.push(Ke)}}function Gs(ot,ce,ye){const Ke=ye.get(ot);if(!Ke)return!1;let xt=ce.get(ot);return xt?Ke.forEach(w=>xt.add(w)):ce.set(ot,Ke),ye.delete(ot),!0}class Bs{constructor(ce,ye,Ke){this.bodyNode=ce,this._driver=ye,this._normalizer=Ke,this._triggerCache={},this.onRemovalComplete=(xt,w)=>{},this._transitionEngine=new Pi(ce,ye,Ke),this._timelineEngine=new Be(ce,ye,Ke),this._transitionEngine.onRemovalComplete=(xt,w)=>this.onRemovalComplete(xt,w)}registerTrigger(ce,ye,Ke,xt,w){const l=ce+"-"+xt;let g=this._triggerCache[l];if(!g){const B=[],De=ai(this._driver,w,B,[]);if(B.length)throw function at(ot,ce){return new _.\u0275RuntimeError(3404,p)}();g=function zr(ot,ce,ye){return new ii(ot,ce,ye)}(xt,De,this._normalizer),this._triggerCache[l]=g}this._transitionEngine.registerTrigger(ye,xt,g)}register(ce,ye){this._transitionEngine.register(ce,ye)}destroy(ce,ye){this._transitionEngine.destroy(ce,ye)}onInsert(ce,ye,Ke,xt){this._transitionEngine.insertNode(ce,ye,Ke,xt)}onRemove(ce,ye,Ke,xt){this._transitionEngine.removeNode(ce,ye,xt||!1,Ke)}disableAnimations(ce,ye){this._transitionEngine.markElementAsDisabled(ce,ye)}process(ce,ye,Ke,xt){if("@"==Ke.charAt(0)){const[w,l]=hn(Ke);this._timelineEngine.command(w,ye,l,xt)}else this._transitionEngine.trigger(ce,ye,Ke,xt)}listen(ce,ye,Ke,xt,w){if("@"==Ke.charAt(0)){const[l,g]=hn(Ke);return this._timelineEngine.listen(l,ye,g,w)}return this._transitionEngine.listen(ce,ye,Ke,xt,w)}flush(ce=-1){this._transitionEngine.flush(ce)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Js=(()=>{class ot{constructor(ye,Ke,xt){this._element=ye,this._startStyles=Ke,this._endStyles=xt,this._state=0;let w=ot.initialStylesByElement.get(ye);w||ot.initialStylesByElement.set(ye,w={}),this._initialStyles=w}start(){this._state<1&&(this._startStyles&&_i(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_i(this._element,this._initialStyles),this._endStyles&&(_i(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ot.initialStylesByElement.delete(this._element),this._startStyles&&(kt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(kt(this._element,this._endStyles),this._endStyles=null),_i(this._element,this._initialStyles),this._state=3)}}return ot.initialStylesByElement=new WeakMap,ot})();function js(ot){let ce=null;const ye=Object.keys(ot);for(let Ke=0;Ke<ye.length;Ke++){const xt=ye[Ke];ao(xt)&&(ce=ce||{},ce[xt]=ot[xt])}return ce}function ao(ot){return"display"===ot||"position"===ot}class Os{constructor(ce,ye,Ke,xt){this.element=ce,this.keyframes=ye,this.options=Ke,this._specialStyles=xt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=Ke.duration,this._delay=Ke.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const ce=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ce,this.options),this._finalKeyframe=ce.length?ce[ce.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(ce,ye,Ke){return ce.animate(ye,Ke)}onStart(ce){this._onStartFns.push(ce)}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(ce=>ce()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}setPosition(ce){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ce*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const ce={};if(this.hasStarted()){const ye=this._finalKeyframe;Object.keys(ye).forEach(Ke=>{"offset"!=Ke&&(ce[Ke]=this._finished?ye[Ke]:ei(this.element,Ke))})}this.currentSnapshot=ce}triggerCallback(ce){const ye="start"==ce?this._onStartFns:this._onDoneFns;ye.forEach(Ke=>Ke()),ye.length=0}}class mo{validateStyleProperty(ce){return vn(ce)}matchesElement(ce,ye){return!1}containsElement(ce,ye){return $n(ce,ye)}getParentElement(ce){return Ce(ce)}query(ce,ye,Ke){return Gn(ce,ye,Ke)}computeStyle(ce,ye,Ke){return window.getComputedStyle(ce)[ye]}animate(ce,ye,Ke,xt,w,l=[]){const B={duration:Ke,delay:xt,fill:0==xt?"both":"forwards"};w&&(B.easing=w);const fe={},De=l.filter(Pt=>Pt instanceof Os);(function wr(ot,ce){return 0===ot||0===ce})(Ke,xt)&&De.forEach(Pt=>{let qt=Pt.currentSnapshot;Object.keys(qt).forEach($t=>fe[$t]=qt[$t])}),ye=function Nr(ot,ce,ye){const Ke=Object.keys(ye);if(Ke.length&&ce.length){let w=ce[0],l=[];
1if(Ke.forEach(g=>{w.hasOwnProperty(g)||l.push(g),w[g]=ye[g]}),l.length)for(var xt=1;xt<ce.length;xt++){let g=ce[xt];l.forEach(function(B){g[B]=ei(ot,B)})}}return ce}(ce,ye=ye.map(Pt=>jr(Pt,!1)),fe);const rt=function Xs(ot,ce){let ye=null,Ke=null;return Array.isArray(ce)&&ce.length?(ye=js(ce[0]),ce.length>1&&(Ke=js(ce[ce.length-1]))):ce&&(ye=js(ce)),ye||Ke?new Js(ot,ye,Ke):null}(ce,ye);return new Os(ce,ye,B,rt)}}var Di=c(9808);let xo=(()=>{class ot extends f{constructor(ye,Ke){super(),this._nextAnimationId=0,this._renderer=ye.createRenderer(Ke.body,{id:"0",encapsulation:_.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(ye){const Ke=this._nextAnimationId.toString();this._nextAnimationId++;const xt=Array.isArray(ye)?y(ye):ye;return Mo(this._renderer,null,Ke,"register",[xt]),new Ir(Ke,this._renderer)}}return ot.\u0275fac=function(ye){return new(ye||ot)(_.\u0275\u0275inject(_.RendererFactory2),_.\u0275\u0275inject(Di.DOCUMENT))},ot.\u0275prov=_.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})();class Ir extends class T{}{constructor(ce,ye){super(),this._id=ce,this._renderer=ye}create(ce,ye){return new ki(this._id,ce,ye||{},this._renderer)}}class ki{constructor(ce,ye,Ke,xt){this.id=ce,this.element=ye,this._renderer=xt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ke)}_listen(ce,ye){return this._renderer.listen(this.element,`@@${this.id}:${ce}`,ye)}_command(ce,...ye){return Mo(this._renderer,this.element,this.id,ce,ye)}onDone(ce){this._listen("done",ce)}onStart(ce){this._listen("start",ce)}onDestroy(ce){this._listen("destroy",ce)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(ce){this._command("setPosition",ce)}getPosition(){var ce,ye;return null!==(ye=null===(ce=this._renderer.engine.players[+this.id])||void 0===ce?void 0:ce.getPosition())&&void 0!==ye?ye:0}}function Mo(ot,ce,ye,Ke,xt){return ot.setProperty(ce,`@@${ye}:${Ke}`,xt)}const Us="@.disabled";let Ns=(()=>{class ot{constructor(ye,Ke,xt){this.delegate=ye,this.engine=Ke,this._zone=xt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ke.onRemovalComplete=(w,l)=>{const g=null==l?void 0:l.parentNode(w);g&&l.removeChild(g,w)}}createRenderer(ye,Ke){const w=this.delegate.createRenderer(ye,Ke);
1if(!(ye&&Ke&&Ke.data&&Ke.data.animation)){let De=this._rendererCache.get(w);return De||(De=new lo("",w,this.engine),this._rendererCache.set(w,De)),De}const l=Ke.id,g=Ke.id+"-"+this._currentId;this._currentId++,this.engine.register(g,ye);const B=De=>{Array.isArray(De)?De.forEach(B):this.engine.registerTrigger(l,g,ye,De.name,De)};return Ke.data.animation.forEach(B),new uo(this,g,w,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(ye,Ke,xt){ye>=0&&ye<this._microtaskId?this._zone.run(()=>Ke(xt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(w=>{const[l,g]=w;l(g)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ke,xt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return ot.\u0275fac=function(ye){return new(ye||ot)(_.\u0275\u0275inject(_.RendererFactory2),_.\u0275\u0275inject(Bs),_.\u0275\u0275inject(_.NgZone))},ot.\u0275prov=_.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})();class lo{constructor(ce,ye,Ke){this.namespaceId=ce,this.delegate=ye,this.engine=Ke,this.destroyNode=this.delegate.destroyNode?xt=>ye.destroyNode(xt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(ce,ye){return this.delegate.createElement(ce,ye)}createComment(ce){return this.delegate.createComment(ce)}createText(ce){return this.delegate.createText(ce)}appendChild(ce,ye){this.delegate.appendChild(ce,ye),this.engine.onInsert(this.namespaceId,ye,ce,!1)}insertBefore(ce,ye,Ke,xt=!0){this.delegate.insertBefore(ce,ye,Ke),this.engine.onInsert(this.namespaceId,ye,ce,xt)}removeChild(ce,ye,Ke){this.engine.onRemove(this.namespaceId,ye,this.delegate,Ke)}selectRootElement(ce,ye){return this.delegate.selectRootElement(ce,ye)}parentNode(ce){return this.delegate.parentNode(ce)}nextSibling(ce){return this.delegate.nextSibling(ce)}setAttribute(ce,ye,Ke,xt){this.delegate.setAttribute(ce,ye,Ke,xt)}removeAttribute(ce,ye,Ke){this.delegate.removeAttribute(ce,ye,Ke)}addClass(ce,ye){this.delegate.addClass(ce,ye)}removeClass(ce,ye){this.delegate.removeClass(ce,ye)}setStyle(ce,ye,Ke,xt){this.delegate.setStyle(ce,ye,Ke,xt)}removeStyle(ce,ye,Ke){this.delegate.removeStyle(ce,ye,Ke)}setProperty(ce,ye,Ke){"@"==ye.charAt(0)&&ye==Us?this.disableAnimations(ce,!!Ke):this.delegate.setProperty(ce,ye,Ke)}setValue(ce,ye){this.delegate.setValue(ce,ye)}listen(ce,ye,Ke){return this.delegate.listen(ce,ye,Ke)}disableAnimations(ce,ye){this.engine.disableAnimations(ce,ye)}}class uo extends lo{constructor(ce,ye,Ke,xt){super(ye,Ke,xt),this.factory=ce,this.namespaceId=ye}setProperty(ce,ye,Ke){"@"==ye.charAt(0)?"."==ye.charAt(1)&&ye==Us?this.disableAnimations(ce,Ke=void 0===Ke||!!Ke):this.engine.process(this.namespaceId,ce,ye.substr(1),Ke):this.delegate.setProperty(ce,ye,Ke)}listen(ce,ye,Ke){if("@"==ye.charAt(0)){const xt=function es(ot){switch(ot){case"body":return document.body;case"document":return document;case"window":return window;default:return ot}}(ce);let w=ye.substr(1),l="";return"@"!=w.charAt(0)&&([w,l]=function Y(ot){const ce=ot.indexOf(".");return[ot.substring(0,ce),ot.substr(ce+1)]}(w)),this.engine.listen(this.namespaceId,xt,w,l,g=>{this.factory.scheduleListenerCallback(g._data||-1,Ke,g)})}return this.delegate.listen(ce,ye,Ke)}}let Le=(()=>{class ot extends Bs{constructor(ye,Ke,xt){super(ye.body,Ke,xt)}ngOnDestroy(){this.flush()}}return ot.\u0275fac=function(ye){return new(ye||ot)(_.\u0275\u0275inject(Di.DOCUMENT),_.\u0275\u0275inject(jt),_.\u0275\u0275inject(be))},ot.\u0275prov=_.\u0275\u0275defineInjectable({token:ot,factory:ot.\u0275fac}),ot})();const kn=new _.InjectionToken("AnimationModuleType"),Xn=[{provide:f,useClass:xo},{provide:be,useFactory:function lt(){return new dt}},{provide:Bs,useClass:Le},{provide:_.RendererFactory2,useFactory:function en(ot,ce,ye){return new Ns(ot,ce,ye)},deps:[t.se,Bs,_.NgZone]}],Hr=[{provide:jt,useFactory:()=>new mo},{provide:kn,useValue:"BrowserAnimations"},...Xn],Ei=[{provide:jt,useClass:Wt},{provide:kn,useValue:"NoopAnimations"},...Xn];let vi=(()=>{class ot{static withConfig(ye){return{ngModule:ot,providers:ye.disableAnimations?Ei:Hr}}}return ot.\u0275fac=function(ye){return new(ye||ot)},ot.\u0275mod=_.\u0275\u0275defineNgModule({type:ot}),ot.\u0275inj=_.\u0275\u0275defineInjector({providers:Hr,imports:[t.b2]}),ot})();var Fi=c(393),vs=c(5617),Ys=c(3392),Vs=c(3462),Vi=c(7592),wi=c(6899),co=c(9720);function Ba(ot){return new L(ot,"./assets/i18n/",".json")}let Wo=(()=>{class ot{}return ot.\u0275fac=function(ye){return new(ye||ot)},ot.\u0275mod=_.\u0275\u0275defineNgModule({type:ot,bootstrap:[te]}),ot.\u0275inj=_.\u0275\u0275defineInjector({providers:[{provide:x.wN,useClass:re.IonicRouteStrategy},{provide:vs.VR,deps:[_.PLATFORM_ID,_.NgZone],useFactory:vs.t2},{provide:vs.Vh,deps:[_.PLATFORM_ID,_.NgZone],useFactory:vs.SP},{provide:vs.Zd,deps:[_.PLATFORM_ID,_.NgZone],useFactory:vs.Mk},{provide:Ys.K,useClass:Ys.K},{provide:Vs.h,useClass:Vs.h},{provide:Vi.O,useClass:Vi.O},{provide:wi.C,useClass:wi.C},{provide:co.A,useClass:co.A},Fi.N1],imports:[[W.JF,C.aw.forRoot({loader:{provide:C.Zw,useFactory:Ba,deps:[W.eN]}}),t.b2,vi,re.IonicModule.forRoot({scrollAssist:!1}),S,M.AngularFireModule.initializeApp(P.N.firebase),V.AngularFirestoreModule,j,E.xC]]}),ot})();var Eo=c(772);P.N.production&&(0,_.enableProdMode)(),t.q6().bootstrapModule(Wo).catch(ot=>console.log(ot)),window,"undefined"==typeof window?Promise.resolve():(0,Eo.p)().then(()=>(0,Eo.b)([["pwa-camera-modal",[[1,"pwa-camera-modal",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],present:[64],dismiss:[64]}]]],["pwa-action-sheet",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["pwa-toast",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["pwa-camera",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],handlePhoto:[16],hidePicker:[4,"hide-picker"],handleNoDeviceError:[16],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32],hasCamera:[32],rotation:[32],deviceError:[32]}]]],["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",{facingMode:[1,"facing-mode"],hidePicker:[4,"hide-picker"],noDevicesText:[1,"no-devices-text"],noDevicesButtonText:[1,"no-devices-button-text"]},[[16,"keyup","handleBackdropKeyUp"]]]]]],undefined))},8416:(xe,q,c)=>{"use strict";
1Object.defineProperty(q,"__esModule",{value:!0}),function t(_){for(var x in _)q.hasOwnProperty(x)||(q[x]=_[x])}(c(6448))},3475:(xe,q,c)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0}),function t(_){for(var x in _)q.hasOwnProperty(x)||(q[x]=_[x])}(c(218))},3029:(xe,q,c)=>{"use strict";function _(Q){return Q&&"object"==typeof Q&&"default"in Q?Q:{default:Q}}var x=_(c(9278));x.default.registerVersion("firebase","7.24.0","app"),xe.exports=x.default},6175:(xe,q,c)=>{"use strict";var t=c(9278);function _(W){return W&&"object"==typeof W&&"default"in W?W:{default:W}}c(2451),c(1925),c(199),c(5011),c(6101),c(2684),c(2517),c(454),c(8072);var x=_(t);x.default.registerVersion("firebase","7.24.0","app"),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),x.default.registerVersion("firebase","7.24.0"),xe.exports=x.default},2940:function(xe,q){!function(c){"use strict";function t(M){return Array.prototype.slice.call(M)}function _(M){return new Promise(function(V,f){M.onsuccess=function(){V(M.result)},M.onerror=function(){f(M.error)}})}function x(M,V,f){var T,Z=new Promise(function(G,$){_(T=M[V].apply(M,f)).then(G,$)});return Z.request=T,Z}function re(M,V,f){var T=x(M,V,f);return T.then(function(Z){if(Z)return new C(Z,T.request)})}function te(M,V,f){f.forEach(function(T){Object.defineProperty(M.prototype,T,{get:function(){return this[V][T]},set:function(Z){this[V][T]=Z}})})}function Q(M,V,f,T){T.forEach(function(Z){Z in f.prototype&&(M.prototype[Z]=function(){return x(this[V],Z,arguments)})})}function S(M,V,f,T){T.forEach(function(Z){Z in f.prototype&&(M.prototype[Z]=function(){return this[V][Z].apply(this[V],arguments)})})}function W(M,V,f,T){T.forEach(function(Z){Z in f.prototype&&(M.prototype[Z]=function(){return re(this[V],Z,arguments)})})}function P(M){this._index=M}function C(M,V){this._cursor=M,this._request=V}function L(M){this._store=M}function E(M){this._tx=M,this.complete=new Promise(function(V,f){M.oncomplete=function(){V()},M.onerror=function(){f(M.error)},M.onabort=function(){f(M.error)}})}function m(M,V,f){this._db=M,this.oldVersion=V,this.transaction=new E(f)}function v(M){this._db=M}te(P,"_index",["name","keyPath","multiEntry","unique"]),Q(P,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),W(P,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),te(C,"_cursor",["direction","key","primaryKey","value"]),Q(C,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(M){M in IDBCursor.prototype&&(C.prototype[M]=function(){var V=this,f=arguments;return Promise.resolve().then(function(){return V._cursor[M].apply(V._cursor,f),_(V._request).then(function(T){if(T)return new C(T,V._request)})})})}),L.prototype.createIndex=function(){return new P(this._store.createIndex.apply(this._store,arguments))},L.prototype.index=function(){return new P(this._store.index.apply(this._store,arguments))},te(L,"_store",["name","keyPath","indexNames","autoIncrement"]),Q(L,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),W(L,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),S(L,"_store",IDBObjectStore,["deleteIndex"]),E.prototype.objectStore=function(){return new L(this._tx.objectStore.apply(this._tx,arguments))},te(E,"_tx",["objectStoreNames","mode"]),S(E,"_tx",IDBTransaction,["abort"]),m.prototype.createObjectStore=function(){return new L(this._db.createObjectStore.apply(this._db,arguments))},te(m,"_db",["name","version","objectStoreNames"]),S(m,"_db",IDBDatabase,["deleteObjectStore","close"]),v.prototype.transaction=function(){return new E(this._db.transaction.apply(this._db,arguments))},te(v,"_db",["name","version","objectStoreNames"]),S(v,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(M){[L,P].forEach(function(V){M in V.prototype&&(V.prototype[M.replace("open","iterate")]=function(){var f=t(arguments),T=f[f.length-1],Z=this._store||this._index,G=Z[M].apply(Z,f.slice(0,-1));G.onsuccess=function(){T(G.result)}})})}),[P,L].forEach(function(M){M.prototype.getAll||(M.prototype.getAll=function(V,f){var T=this,Z=[];return new Promise(function(G){T.iterateCursor(V,function($){$?(Z.push($.value),void 0===f||Z.length!=f?$.continue():G(Z)):G(Z)})})})}),c.openDb=function R(M,V,f){var T=x(indexedDB,"open",[M,V]),Z=T.request;return Z&&(Z.onupgradeneeded=function(G){f&&f(new m(Z.result,G.oldVersion,Z.transaction))}),T.then(function(G){return new v(G)})},c.deleteDb=function j(M){return x(indexedDB,"deleteDatabase",[M])},Object.defineProperty(c,"__esModule",{value:!0})}(q)},5943:function(module,__unused_webpack_exports,__webpack_require__){var _asyncToGenerator=__webpack_require__(8926).default,c;c=()=>(()=>{"use strict";var __webpack_modules__=[,(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.VerbosityLevel=q.Util=q.UnknownErrorException=q.UnexpectedResponseException=q.UNSUPPORTED_FEATURES=q.TextRenderingMode=q.StreamType=q.RenderingIntentFlag=q.PermissionFlag=q.PasswordResponses=q.PasswordException=q.PageActionEventType=q.OPS=q.MissingPDFException=q.InvalidPDFException=q.ImageKind=q.IDENTITY_MATRIX=q.FormatError=q.FontType=q.FeatureTest=q.FONT_IDENTITY_MATRIX=q.DocumentActionEventType=q.CMapCompressionType=q.BaseException=q.AnnotationType=q.AnnotationStateModelType=q.AnnotationReviewState=q.AnnotationReplyType=q.AnnotationMode=q.AnnotationMarkedState=q.AnnotationFlag=q.AnnotationFieldFlag=q.AnnotationBorderStyleType=q.AnnotationActionEventType=q.AbortException=void 0,q.arrayByteLength=Oe,q.arraysToBytes=function Ne(ze){const nt=ze.length;if(1===nt&&ze[0]instanceof Uint8Array)return ze[0];let mt=0;for(let bt=0;bt<nt;bt++)mt+=Oe(ze[bt]);let Nt=0;const wt=new Uint8Array(mt);for(let bt=0;bt<nt;bt++){let Kt=ze[bt];Kt instanceof Uint8Array||(Kt="string"==typeof Kt?he(Kt):new Uint8Array(Kt));const Un=Kt.byteLength;wt.set(Kt,Nt),Nt+=Un}return wt},q.assert=function ve(ze,nt){ze||oe(nt)},q.bytesToString=function ie(ze){("object"!=typeof ze||null===ze||void 0===ze.length)&&oe("Invalid argument for bytesToString");const nt=ze.length;if(nt<8192)return String.fromCharCode.apply(null,ze);const Nt=[];for(let wt=0;wt<nt;wt+=8192){const bt=Math.min(wt+8192,nt),Kt=ze.subarray(wt,bt);Nt.push(String.fromCharCode.apply(null,Kt))}return Nt.join("")},q.createPromiseCapability=function sn(){const ze=Object.create(null);let nt=!1;return Object.defineProperty(ze,"settled",{get:()=>nt}),ze.promise=new Promise(function(mt,Nt){ze.resolve=function(wt){nt=!0,mt(wt)},ze.reject=function(wt){nt=!0,Nt(wt)}}),ze},q.createValidAbsoluteUrl=function Re(ze,nt=null,mt=null){if(!ze)return null;try{if(mt&&"string"==typeof ze){if(mt.addDefaultProtocol&&ze.startsWith("www.")){const wt=ze.match(/\./g);wt&&wt.length>=2&&(ze=`http://${ze}`)}if(mt.tryConvertEncoding)try{ze=ct(ze)}catch(wt){}}const Nt=nt?new URL(ze,nt):new URL(ze);if(function We(ze){if(!ze)return!1;switch(ze.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(Nt))return Nt}catch(Nt){}return null},q.escapeString=function ut(ze){return ze.replace(/([()\\\n\r])/g,nt=>"\n"===nt?"\\n":"\r"===nt?"\\r":`\\${nt}`)},q.getModificationDate=function St(ze=new Date){return[ze.getUTCFullYear().toString(),(ze.getUTCMonth()+1).toString().padStart(2,"0"),ze.getUTCDate().toString().padStart(2,"0"),ze.getUTCHours().toString().padStart(2,"0"),ze.getUTCMinutes().toString().padStart(2,"0"),ze.getUTCSeconds().toString().padStart(2,"0")].join("")},q.getVerbosityLevel=function H(){return k},q.info=function ee(ze){k>=Z.INFOS&&console.log(`Info: ${ze}`)},q.isArrayBuffer=function gt(ze){return"object"==typeof ze&&null!==ze&&void 0!==ze.byteLength},q.isArrayEqual=function at(ze,nt){if(ze.length!==nt.length)return!1;for(let mt=0,Nt=ze.length;mt<Nt;mt++)if(ze[mt]!==nt[mt])return!1;return!0},q.isAscii=function yt(ze){return/^[\x00-\x7F]*$/.test(ze)},q.objectFromMap=function Ct(ze){const nt=Object.create(null);for(const[mt,Nt]of ze)nt[mt]=Nt;return nt},q.objectSize=function Qe(ze){return Object.keys(ze).length},q.setVerbosityLevel=function I(ze){Number.isInteger(ze)&&(k=ze)},q.shadow=He,q.string32=function Ye(ze){return String.fromCharCode(ze>>24&255,ze>>16&255,ze>>8&255,255&ze)},q.stringToBytes=he,q.stringToPDFString=function _t(ze){if(ze[0]>="\xef"){let mt;if("\xfe"===ze[0]&&"\xff"===ze[1]?mt="utf-16be":"\xff"===ze[0]&&"\xfe"===ze[1]?mt="utf-16le":"\xef"===ze[0]&&"\xbb"===ze[1]&&"\xbf"===ze[2]&&(mt="utf-8"),mt)try{const Nt=ne
vendor: 37,782 bytes, line 1
1w TextDecoder(mt,{fatal:!0}),wt=he(ze);return Nt.decode(wt)}catch(Nt){z(`stringToPDFString: "${Nt}".`)}}const nt=[];for(let mt=0,Nt=ze.length;mt<Nt;mt++){const wt=it[ze.charCodeAt(mt)];nt.push(wt?String.fromCharCode(wt):ze.charAt(mt))}return nt.join("")},q.stringToUTF16BEString=function ht(ze){const nt=["\xfe\xff"];for(let mt=0,Nt=ze.length;mt<Nt;mt++){const wt=ze.charCodeAt(mt);nt.push(String.fromCharCode(wt>>8&255),String.fromCharCode(255&wt))}return nt.join("")},q.stringToUTF8String=ct,q.unreachable=oe,q.utf8StringToString=function cn(ze){return unescape(encodeURIComponent(ze))},q.warn=z,c(2),q.IDENTITY_MATRIX=[1,0,0,1,0,0],q.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],q.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},q.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},q.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},q.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},q.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},q.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},q.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},q.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},q.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},q.AnnotationReplyType={GROUP:"Group",REPLY:"R"},q.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},q.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},q.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},q.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},q.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},q.PageActionEventType={O:"PageOpen",C:"PageClose"},q.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},q.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const Z={ERRORS:0,WARNINGS:1,INFOS:5};q.VerbosityLevel=Z,q.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},q.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},q.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},q.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let k=Z.WARNINGS;function z(ze){k>=Z.WARNINGS&&console.log(`Warning: ${ze}`)}function oe(ze){throw new Error(ze)}function He(ze,nt,mt){return Object.defineProperty(ze,nt,{value:mt,enumerable:!0,configurable:!0,writable:!1}),mt}const ge=function(){function nt(mt,Nt){this.constructor===nt&&oe("Cannot initialize BaseException."),this.message=mt,this.name=Nt}return nt.prototype=new Error,nt.constructor=nt,nt}();function he(ze){"string"!=typeof ze&&oe("Invalid argument for stringToBytes");const nt=ze.length,mt=new Uint8Array(nt);for(let Nt=0;Nt<nt;++Nt)mt[Nt]=255&ze.charCodeAt(Nt);return mt}function Oe(ze){return void 0!==ze.length?ze.length:void 0!==ze.byteLength?ze.byteLength:void oe("Invalid argument for arrayByteLength")}q.BaseException=ge,q.PasswordException=class O extends ge{constructor(nt,mt){super(nt,"PasswordException"),this.code=mt}},q.UnknownErrorException=class b extends ge{constructor(nt,mt){super(nt,"UnknownErrorException"),this.details=mt}},q.InvalidPDFException=class p extends ge{constructor(nt){super(nt,"InvalidPDFException")}},q.MissingPDFException=class A extends ge{constructor(nt){super(nt,"MissingPDFException")}},q.UnexpectedResponseException=class N extends ge{constructor(nt,mt){super(nt,"UnexpectedResponseException"),this.status=mt}},q.FormatError=class K extends ge{constructor(nt){super(nt,"FormatError")}},q.AbortException=class J extends ge{constructor(nt){super(nt,"AbortException")}},q.FeatureTest=class Lt{static get isLittleEndian(){return He(this,"isLittleEndian",function Ot(){const ze=new Uint8Array(4);return ze[0]=1,1===new Uint32Array(ze.buffer,0,1)[0]}())}static get isEvalSupported(){return He(this,"isEvalSupported",function ln(){try{return new Function(""),!0}catch(ze){return!1}}())}static get isOffscreenCanvasSupported(){return He(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}};const Jt=[...Array(256).keys()].map(ze=>ze.toString(16).padStart(2,"0"));class Rt{static makeHexColor(nt,mt,Nt){return`#${Jt[nt]}${Jt[mt]}${Jt[Nt]}`}static scaleMinMax(nt,mt){let Nt;nt[0]?(nt[0]<0&&(Nt=mt[0],mt[0]=mt[1],mt[1]=Nt),mt[0]*=nt[0],mt[1]*=nt[0],nt[3]<0&&(Nt=mt[2],mt[2]=mt[3],mt[3]=Nt),mt[2]*=nt[3],mt[3]*=nt[3]):(Nt=mt[0],mt[0]=mt[2],mt[2]=Nt,Nt=mt[1],mt[1]=mt[3],mt[3]=Nt,nt[1]<0&&(Nt=mt[2],mt[2]=mt[3],mt[3]=Nt),mt[2]*=nt[1],mt[3]*=nt[1],nt[2]<0&&(Nt=mt[0],mt[0]=mt[1],mt[1]=Nt),mt[0]*=nt[2],mt[1]*=nt[2]),mt[0]+=nt[4],mt[1]+=nt[4],mt[2]+=nt[5],mt[3]+=nt[5]}static transform(nt,mt){return[nt[0]*mt[0]+nt[2]*mt[1],nt[1]*mt[0]+nt[3]*mt[1],nt[0]*mt[2]+nt[2]*mt[3],nt[1]*mt[2]+nt[3]*mt[3],nt[0]*mt[4]+nt[2]*mt[5]+nt[4],nt[1]*mt[4]+nt[3]*mt[5]+nt[5]]}static applyTransform(nt,mt){return[nt[0]*mt[0]+nt[1]*mt[2]+mt[4],nt[0]*mt[1]+nt[1]*mt[3]+mt[5]]}static applyInverseTransform(nt,mt){const Nt=mt[0]*mt[3]-mt[1]*mt[2];return[(nt[0]*mt[3]-nt[1]*mt[2]+mt[2]*mt[5]-mt[4]*mt[3])/Nt,(-nt[0]*mt[1]+nt[1]*mt[0]+mt[4]*mt[1]-mt[5]*mt[0])/Nt]}static getAxialAlignedBoundingBox(nt,mt){const Nt=Rt.applyTransform(nt,mt),wt=Rt.applyTransform(nt.slice(2,4),mt),bt=Rt.applyTransform([nt[0],nt[3]],mt),Kt=Rt.applyTransform([nt[2],nt[1]],mt);return[Math.min(Nt[0],wt[0],bt[0],Kt[0]),Math.min(Nt[1],wt[1],bt[1],Kt[1]),Math.max(Nt[0],wt[0],bt[0],Kt[0]),Math.max(Nt[1],wt[1],bt[1],Kt[1])]}static inverseTransform(nt){const mt=nt[0]*nt[3]-nt[1]*nt[2];return[nt[3]/mt,-nt[1]/mt,-nt[2]/mt,nt[0]/mt,(nt[2]*nt[5]-nt[4]*nt[3])/mt,(nt[4]*nt[1]-nt[5]*nt[0])/mt]}static apply3dTransform(nt,mt){return[nt[0]*mt[0]+nt[1]*mt[1]+nt[2]*mt[2],nt[3]*mt[0]+nt[4]*mt[1]+nt[5]*mt[2],nt[6]*mt[0]+nt[7]*mt[1]+nt[8]*mt[2]]}static singularValueDecompose2dScale(nt){const mt=[nt[0],nt[2],nt[1],nt[3]],Nt=nt[0]*mt[0]+nt[1]*mt[2],wt=nt[0]*mt[1]+nt[1]*mt[3],bt=nt[2]*mt[0]+nt[3]*mt[2],Kt=nt[2]*mt[1]+nt[3]*mt[3],Un=(Nt+Kt)/2,vt=Math.sqrt(Qf(Nt+Kt,2)-4*(Nt*Kt-bt*wt))/2,Cn=Un-vt||1;return[Math.sqrt(Un+vt||1),Math.sqrt(Cn)]}static normalizeRect(nt){const mt=nt.slice(0);return nt[0]>nt[2]&&(mt[0]=nt[2],mt[2]=nt[0]),nt[1]>nt[3]&&(mt[1]=nt[3],mt[3]=nt[1]),mt}static intersect(nt,mt){const Nt=Math.max(Math.min(nt[0],nt[2]),Math.min(mt[0],mt[2])),wt=Math.min(Math.max(nt[0],nt[2]),Math.max(mt[0],mt[2]));if(Nt>wt)return null;const bt=Math.max(Math.min(nt[1],nt[3]),Math.min(mt[1],mt[3])),Kt=Math.min(Math.max(nt[1],nt[3]),Math.max(mt[1],mt[3]));return bt>Kt?null:[Nt,bt,wt,Kt]}static bezierBoundingBox(nt,mt,Nt,wt,bt,Kt,Un,vt){const tn=[],Cn=[[],[]];let Sn,Nn,rr,Fn,jn,nr,Tt,hn;for(let Ce=0;Ce<2;++Ce)if(0===Ce?(Nn=6*nt-12*Nt+6*bt,Sn=-3*nt+9*Nt-9*bt+3*Un,rr=3*Nt-3*nt):(Nn=6*mt-12*wt+6*Kt,Sn=-3*mt+9*wt-9*Kt+3*vt,rr=3*wt-3*mt),Math.abs(Sn)<1e-12){if(Math.abs(Nn)<1e-12)continue;Fn=-rr/Nn,0<Fn&&Fn<1&&tn.push(Fn)}else Tt=Nn*Nn-4*rr*Sn,hn=Math.sqrt(Tt),!(Tt<0)&&(jn=(-Nn+hn)/(2*Sn),0<jn&&jn<1&&tn.push(jn),nr=(-Nn-hn)/(2*Sn),0<nr&&nr<1&&tn.push(nr));let ae,Se=tn.length;const we=Se;for(;Se--;)Fn=tn[Se],ae=1-Fn,Cn[0][Se]=ae*ae*ae*nt+3*ae*ae*Fn*Nt+3*ae*Fn*Fn*bt+Fn*Fn*Fn*Un,Cn[1][Se]=ae*ae*ae*mt+3*ae*ae*Fn*wt+3*ae*Fn*Fn*Kt+Fn*Fn*Fn*vt;return Cn[0][we]=nt,Cn[1][we]=mt,Cn[0][we+1]=Un,Cn[1][we+1]=vt,Cn[0].length=Cn[1].length=we+2,[Math.min(...Cn[0]),Math.min(...Cn[1]),Math.max(...Cn[0]),Math.max(...Cn[1])]}}q.Util=Rt;const it=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function ct(ze){return decodeURIComponent(escape(ze))}},(xe,q,c)=>{c(3)},(xe,q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.isNodeJS=void 0;const c=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);q.isNodeJS=c},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var xe,c,t,_,x,re,te,Q,S,Z0,P;Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(13),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(14),_metadata=__w_pdfjs_require__(15),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_xfa_text=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:L,NodeCMapReaderFactory:E,NodeStandardFontDataFactory:m}=__w_pdfjs_require__(19);exports.DefaultCanvasFactory=DefaultCanvasFactory=L,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=E,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=m}function setPDFNetworkStreamFactory(L){createPDFNetworkStream=L}function getDocument(L){const E=new PDFDocumentLoadingTask;let m;if("string"==typeof L||L instanceof URL)m={url:L};else if((0,_util.isArrayBuffer)(L))m={data:L};else if(L instanceof PDFDataRangeTransport)m={range:L};else{if("object"!=typeof L)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!L.url&&!L.data&&!L.range)throw new Error("Invalid parameter object: need either .data, .range or .url");m=L}const v=Object.create(null);let R=null,j=null;for(const V in m){const f=m[V];switch(V){case"url":if("undefined"!=typeof window)try{v[V]=new URL(f,window.location).href;continue}catch(T){(0,_util.warn)(`Cannot create valid URL: "${T}".`)}else if("string"==typeof f||f instanceof URL){v[V]=f.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":R=f;continue;case"worker":j=f;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&f instanceof Buffer)v[V]=new Uint8Array(f);else{if(f instanceof Uint8Array)break;if("string"==typeof f)v[V]=(0,_util.stringToBytes)(f);else if("object"!=typeof f||null===f||isNaN(f.length)){if(!(0,_util.isArrayBuffer)(f))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");v[V]=new Uint8Array(f)}else v[V]=new Uint8Array(f)}continue}v[V]=f}if(v.CMapReaderFactory=v.CMapReaderFactory||DefaultCMapReaderFactory,v.StandardFontDataFactory=v.StandardFontDataFactory||DefaultStandardFontDataFactory,v.ignoreErrors=!0!==v.stopAtErrors,v.fontExtraProperties=!0===v.fontExtraProperties,v.pdfBug=!0===v.pdfBug,v.enableXfa=!0===v.enableXfa,(!Number.isInteger(v.rangeChunkSize)||v.rangeChunkSize<1)&&(v.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof v.docBaseUrl||(0,_display_utils.isDataScheme)(v.docBaseUrl))&&(v.docBaseUrl=null),(!Number.isInteger(v.maxImageSize)||v.maxImageSize<-1)&&(v.maxImageSize=-1),"string"!=typeof v.cMapUrl&&(v.cMapUrl=null),"string"!=typeof v.standardFontDataUrl&&(v.standardFontDataUrl=null),"boolean"!=typeof v.useWorkerFetch&&(v.useWorkerFetch=v.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&v.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof v.isEvalSupported&&(v.isEvalSupported=!0),"boolean"!=typeof v.disableFontFace&&(v.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof v.useSystemFonts&&(v.useSystemFonts=!_is_node.isNodeJS&&!v.disableFontFace),("object"!=typeof v.ownerDocument||null===v.ownerDocument)&&(v.ownerDocument=globalThis.document),"boolean"!=typeof v.disableRange&&(v.disableRange=!1),"boolean"!=typeof v.disableStream&&(v.disableStream=!1),"boolean"!=typeof v.disableAutoFetch&&(v.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(v.verbosity),!j){const V={verbosity:v.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};j=V.port?PDFWorker.fromPort(V):new PDFWorker(V),E._worker=j}const M=E.docId;return j.promise.then(function(){if(E.destroyed)throw new Error("Loading aborted");const V=_fetchDocument(j,v,R,M),f=new Promise(function(T){let Z;R?Z=new _transport_stream.PDFDataTransportStream({length:v.length,initialData:v.initialData,progressiveDone:v.progressiveDone,contentDispositionFilename:v.contentDispositionFilename,disableRange:v.disableRange,disableStream:v.disableStream},R):v.data||(Z=createPDFNetworkStream({url:v.url,length:v.length,httpHeaders:v.httpHeaders,withCredentials:v.withCredentials,rangeChunkSize:v.rangeChunkSize,disableRange:v.disableRange,disableStream:v.disableStream})),T(Z)});return Promise.all([V,f]).then(function([T,Z]){if(E.destroyed)throw new Error("Loading aborted");const G=new _message_handler.MessageHandler(M,T,j.port),$=new WorkerTransport(G,E,Z,v);E._transport=$,G.send("Ready",null)})}).catch(E._capability.reject),E}function _fetchDocument(L,E,m,v){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(function*(L,E,m,v){if(L.destroyed)throw new Error("Worker was destroyed");m&&(E.length=m.length,E.initialData=m.initialData,E.progressiveDone=m.progressiveDone,E.contentDispositionFilename=m.contentDispositionFilename);const R=yield L.messageHandler.sendWithPromise("GetDocRequest",{docId:v,apiVersion:"2.14.305",source:{data:E.data,url:E.url,password:E.password,disableAutoFetch:E.disableAutoFetch,rangeChunkSize:E.rangeChunkSize,length:E.length},maxImageSize:E.maxImageSize,disableFontFace:E.disableFontFace,docBaseUrl:E.docBaseUrl,ignoreErrors:E.ignoreErrors,isEvalSupported:E.isEvalSupported,fontExtraProperties:E.fontExtraProperties,enableXfa:E.enableXfa,useSystemFonts:E.useSystemFonts,cMapUrl:E.useWorkerFetch?E.cMapUrl:null,standardFontDataUrl:E.useWorkerFetch?E.standardFontDataUrl:null});if(L.destroyed)throw new Error("Worker was destroyed");return R})).apply(this,arguments)}const q=class{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+md(q,xe)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}destroy(){var E=this;return _asyncToGenerator(function*(){var m;E.destroyed=!0,yield null==(m=E._transport)?void 0:m.destroy(),E._transport=null,E._worker&&(E._worker.destroy(),E._worker=null)})()}};let PDFDocumentLoadingTask=q;xe=new WeakMap,dn(PDFDocumentLoadingTask,xe,0),exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(E,m,v=!1,R=null){this.length=E,this.initialData=m,this.progressiveDone=v,this.contentDispositionFilename=R,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(E){this._rangeListeners.push(E)}addProgressListener(E){this._progressListeners.push(E)}addProgressiveReadListener(E){this._progressiveReadListeners.push(E)}addProgressiveDoneListener(E){this._progressiveDoneListeners.push(E)}onDataRange(E,m){for(const v of this._rangeListeners)v(E,m)}onDataProgress(E,m){this._readyCapability.promise.then(()=>{for(const v of this._progressListeners)v(E,m)})}onDataProgressiveRead(E){this._readyCapability.promise.then(()=>{for(const m of this._progressiveReadListeners)m(E)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const E of this._progressiveDoneListeners)E()})}transportReady(){this._readyCapability.resolve()}requestDataRange(E,m){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(E,m){var R,v=this;this._pdfInfo=E,this._transport=m,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:(R=_asyncToGenerator(function*(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),v.stats||{streamTypes:{},fontTypes:{}}}),function(){return R.apply(this,arguments)})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(E){return this._transport.getPage(E)}getPageIndex(E){return this._transport.getPageIndex(E)}getDestinations(){return this._transport.getDestinations()}getDestination(E){return this._transport.getDestination(E)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(E=!1){return this._transport.startCleanup(E||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(E,m,v,R,j=!1){this._pageIndex=E,this._pageInfo=m,this._ownerDocument=R,this._transport=v,this._stats=j?new _display_utils.StatTimer:null,this._pdfBug=j,this.commonObjs=v.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:E,rotation:m=this.rotate,offsetX:v=0,offsetY:R=0,dontFlip:j=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:E,rotation:m,offsetX:v,offsetY:R,dontFlip:j})}getAnnotations({intent:E="display"}={}){const m=this._transport.getRenderingIntent(E);let v=this._annotationPromises.get(m.cacheKey);return v||(v=this._transport.getAnnotations(this._pageIndex,m.renderingIntent),this._annotationPromises.set(m.cacheKey,v),v=v.then(R=>{for(const j of R)void 0!==j.titleObj&&Object.defineProperty(j,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),j.titleObj.str)}),void 0!==j.contentsObj&&Object.defineProperty(j,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),j.contentsObj.str)});return R})),v}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}getXfa(){var E=this;return _asyncToGenerator(function*(){var m;return(null==(m=E._transport._htmlForXfa)?void 0:m.children[E._pageIndex])||null})()}render({canvasContext:E,viewport:m,intent:v="display",annotationMode:R=_util.AnnotationMode.ENABLE,transform:j=null,imageLayer:M=null,canvasFactory:V=null,background:f=null,optionalContentConfigPromise:T=null,annotationCanvasMap:Z=null,pageColors:G=null}){var z,oe;void 0!==(null==(z=arguments[0])?void 0:z.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&R===_util.AnnotationMode.ENABLE&&(R=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null==(oe=arguments[0])?void 0:oe.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&R===_util.AnnotationMode.ENABLE&&(R=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const $=this._transport.getRenderingIntent(v,R);this.pendingCleanup=!1,T||(T=this._transport.getOptionalContentConfig());let se=this._intentStates.get($.cacheKey);se||(se=Object.create(null),this._intentStates.set($.cacheKey,se)),se.streamReaderCancelTimeout&&(clearTimeout(se.streamReaderCancelTimeout),se.streamReaderCancelTimeout=null);const y=V||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),k=!!($.renderingIntent&_util.RenderingIntentFlag.PRINT);se.displayReadyCapability||(se.displayReadyCapability=(0,_util.createPromiseCapability)(),se.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList($));const I=ve=>{se.renderTasks.delete(H),(this.cleanupAfterRender||k)&&(this.pendingCleanup=!0),this._tryCleanup(),ve?(H.capability.reject(ve),this._abortOperatorList({intentState:se,reason:ve instanceof Error?ve:new Error(ve)})):H.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},H=new InternalRenderTask({callback:I,params:{canvasContext:E,viewport:m,transform:j,imageLayer:M,background:f},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:Z,operatorList:se.operatorList,pageIndex:this._pageIndex,canvasFactory:y,useRequestAnimationFrame:!k,pdfBug:this._pdfBug,pageColors:G});(se.renderTasks||(se.renderTasks=new Set)).add(H);const ee=H.task;return Promise.all([se.displayReadyCapability.promise,T]).then(([ve,We])=>{this.pendingCleanup?I():(this._stats&&this._stats.time("Rendering"),H.initializeGraphics({transparency:ve,optionalContentConfig:We}),H.operatorListChanged())}).catch(I),ee}getOperatorList({intent:E="display",annotationMode:m=_util.AnnotationMode.ENABLE}={}){const R=this._transport.getRenderingIntent(E,m,!0);let M,j=this._intentStates.get(R.cacheKey);return j||(j=Object.create(null),this._intentStates.set(R.cacheKey,j)),j.opListReadCapability||(M=Object.create(null),M.operatorListChanged=function v(){j.operatorList.lastChunk&&(j.opListReadCapability.resolve(j.operatorList),j.renderTasks.delete(M))},j.opListReadCapability=(0,_util.createPromiseCapability)(),(j.renderTasks||(j.renderTasks=new Set)).add(M),j.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(R)),j.opListReadCapability.promise}streamTextContent({disableCombineTextItems:E=!1,includeMarkedContent:m=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==E,includeMarkedContent:!0===m},{highWaterMark:100,size:R=>R.items.length})}getTextContent(E={}){if(this._transport._htmlForXfa)return this.getXfa().then(v=>_xfa_text.XfaText.textContent(v));const m=this.streamTextContent(E);return new Promise(function(v,R){const M=m.getReader(),V={items:[],styles:Object.create(null)};!function j(){M.read().then(function({value:f,done:T}){T?v(V):(Object.assign(V.styles,f.styles),V.items.push(...f.items),j())},R)}()})}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const E=[];for(const m of this._intentStates.values())if(this._abortOperatorList({intentState:m,reason:new Error("Page was destroyed."),force:!0}),!m.opListReadCapability)for(const v of m.renderTasks)E.push(v.completed),v.cancel();this.objs.clear();for(const m of this._bitmaps)m.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(E)}cleanup(E=!1){return this.pendingCleanup=!0,this._tryCleanup(E)}_tryCleanup(E=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:m,operatorList:v}of this._intentStates.values())if(m.size>0||!v.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,E&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const m of this._bitmaps)m.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(E,m){const v=this._intentStates.get(m);!v||(this._stats&&this._stats.timeEnd("Page Request"),v.displayReadyCapability&&v.displayReadyCapability.resolve(E))}_renderPageChunk(E,m){for(let v=0,R=E.length;v<R;v++)m.operatorList.fnArray.push(E.fnArray[v]),m.operatorList.argsArray.push(E.argsArray[v]);m.operatorList.lastChunk=E.lastChunk;for(const v of m.renderTasks)v.operatorListChanged();E.lastChunk&&this._tryCleanup()}_pumpOperatorList({renderingIntent:E,cacheKey:m}){const R=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:E,cacheKey:m,annotationStorage:E&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}).getReader(),j=this._intentStates.get(m);j.streamReader=R;const M=()=>{R.read().then(({value:V,done:f})=>{f?j.streamReader=null:this._transport.destroyed||(this._renderPageChunk(V,j),M())},V=>{if(j.streamReader=null,!this._transport.destroyed){if(j.operatorList){j.operatorList.lastChunk=!0;for(const f of j.renderTasks)f.operatorListChanged();this._tryCleanup()}if(j.displayReadyCapability)j.displayReadyCapability.reject(V);else{if(!j.opListReadCapability)throw V;j.opListReadCapability.reject(V)}}})};M()}_abortOperatorList({intentState:E,reason:m,force:v=!1}){if(E.streamReader){if(!v){if(E.renderTasks.size>0)return;if(m instanceof _display_utils.RenderingCancelledException)return void(E.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:E,reason:m,force:!0}),E.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(E.streamReader.cancel(new _util.AbortException(m.message)).catch(()=>{}),E.streamReader=null,!this._transport.destroyed){for(const[R,j]of this._intentStates)if(j===E){this._intentStates.delete(R);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(E,m){const v={data:structuredClone(E,m)};this._deferred.then(()=>{for(const R of this._listeners)R.call(this,v)})}addEventListener(E,m){this._listeners.push(m)}removeEventListener(E,m){const v=this._listeners.indexOf(m);this._listeners.splice(v,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const L=null==(c=null==document?void 0:document.currentScript)?void 0:c.src;L&&(PDFWorkerUtil.fallbackWorkerSrc=L.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(L,E){let m;try{if(m=new URL(L),!m.origin||"null"===m.origin)return!1}catch(R){return!1}const v=new URL(E,m);return m.origin===v.origin},PDFWorkerUtil.createCDNWrapper=function(L){return URL.createObjectURL(new Blob([`importScripts("${L}");`]))};const _PDFWorker=class{constructor({name:L=null,port:E=null,verbosity:m=(0,_util.getVerbosityLevel)()}={}){if(E&&Fe(_PDFWorker,t).has(E))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=L,this.destroyed=!1,this.verbosity=m,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,E)return Fe(_PDFWorker,t).set(E,this),void this._initializeFromPort(E);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(L){this._port=L,this._messageHandler=new _message_handler.MessageHandler("main","worker",L),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let L=_PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,L)||(L=PDFWorkerUtil.createCDNWrapper(new URL(L,window.location).href));const E=new Worker(L),m=new _message_handler.MessageHandler("main","worker",E),v=()=>{E.removeEventListener("error",R),m.destroy(),E.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},R=()=>{this._webWorker||v()};E.addEventListener("error",R),m.on("test",M=>{E.removeEventListener("error",R),this.destroyed?v():M?(this._messageHandler=m,this._port=E,this._webWorker=E,this._readyCapability.resolve(),m.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),m.destroy(),E.terminate())}),m.on("ready",M=>{if(E.removeEventListener("error",R),this.destroyed)v();else try{j()}catch(V){this._setupFakeWorker()}});const j=()=>{const M=new Uint8Array;m.send("test",M,[M.buffer])};return void j()}catch(E){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(L=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const E=new LoopbackPort;this._port=E;const m="fake"+PDFWorkerUtil.fakeWorkerId++,v=new _message_handler.MessageHandler(m+"_worker",m,E);L.setup(v,E);const R=new _message_handler.MessageHandler(m,m+"_worker",E);this._messageHandler=R,this._readyCapability.resolve(),R.send("configure",{verbosity:this.verbosity})}).catch(L=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${L.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),Fe(_PDFWorker,t).delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(L){if(!(null==L?void 0:L.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return Fe(this,t).has(L.port)?Fe(this,t).get(L.port):new _PDFWorker(L)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var L;try{return(null==(L=globalThis.pdfjsWorker)?void 0:L.WorkerMessageHandler)||null}catch(E){return null}}static get _setupFakeWorkerGlobal(){var _this4=this;const loader=function(){var _ref2=_asyncToGenerator(function*(){const mainWorkerMessageHandler=_this4._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(_this4.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this4.workerSrc),window.pdfjsWorker.WorkerMessageHandler});return function L(){return _ref2.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};let PDFWorker=_PDFWorker;t=new WeakMap,dn(PDFWorker,t,new WeakMap),exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{constructor(E,m,v,R){dn(this,_,null),dn(this,x,new Map),dn(this,re,new Map),dn(this,te,null),this.messageHandler=E,this.loadingTask=m,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:m.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:R.ownerDocument,styleElement:R.styleElement}),this._params=R,R.useWorkerFetch||(this.CMapReaderFactory=new R.CMapReaderFactory({baseUrl:R.cMapUrl,isCompressed:R.cMapPacked}),this.StandardFontDataFactory=new R.StandardFontDataFactory({baseUrl:R.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=v,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return Fe(this,_)}
1getRenderingIntent(E,m=_util.AnnotationMode.ENABLE,v=!1){let R=_util.RenderingIntentFlag.DISPLAY,j="";switch(E){case"any":R=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":R=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${E}`)}switch(m){case _util.AnnotationMode.DISABLE:R+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:R+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:R+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,j=this.annotationStorage.hash;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${m}`)}return v&&(R+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:R,cacheKey:`${R}_${j}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const E=[];for(const v of Fe(this,x).values())E.push(v._destroy());Fe(this,x).clear(),Fe(this,re).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const m=this.messageHandler.sendWithPromise("Terminate",null);return E.push(m),Promise.all(E).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),Vn(this,te,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:E,loadingTask:m}=this;E.on("GetReader",(v,R)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=j=>{this._lastProgress={loaded:j.loaded,total:j.total}},R.onPull=()=>{this._fullReader.read().then(function({value:j,done:M}){M?R.close():((0,_util.assert)((0,_util.isArrayBuffer)(j),"GetReader - expected an ArrayBuffer."),R.enqueue(new Uint8Array(j),1,[j]))}).catch(j=>{R.error(j)})},R.onCancel=j=>{this._fullReader.cancel(j),R.ready.catch(M=>{if(!this.destroyed)throw M})}}),E.on("ReaderHeadersReady",v=>{const R=(0,_util.createPromiseCapability)(),j=this._fullReader;return j.headersReady.then(()=>{var M;(!j.isStreamingSupported||!j.isRangeSupported)&&(this._lastProgress&&(null==(M=m.onProgress)||M.call(m,this._lastProgress)),j.onProgress=V=>{var f;null==(f=m.onProgress)||f.call(m,{loaded:V.loaded,total:V.total})}),R.resolve({isStreamingSupported:j.isStreamingSupported,isRangeSupported:j.isRangeSupported,contentLength:j.contentLength})},R.reject),R.promise}),E.on("GetRangeReader",(v,R)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const j=this._networkStream.getRangeReader(v.begin,v.end);j?(R.onPull=()=>{j.read().then(function({value:M,done:V}){V?R.close():((0,_util.assert)((0,_util.isArrayBuffer)(M),"GetRangeReader - expected an ArrayBuffer."),R.enqueue(new Uint8Array(M),1,[M]))}).catch(M=>{R.error(M)})},R.onCancel=M=>{j.cancel(M),R.ready.catch(V=>{if(!this.destroyed)throw V})}):R.close()}),E.on("GetDoc",({pdfInfo:v})=>{this._numPages=v.numPages,this._htmlForXfa=v.htmlForXfa,delete v.htmlForXfa,m._capability.resolve(new PDFDocumentProxy(v,this))}),E.on("DocException",function(v){let R;switch(v.name){case"PasswordException":R=new _util.PasswordException(v.message,v.code);break;case"InvalidPDFException":R=new _util.InvalidPDFException(v.message);break;case"MissingPDFException":R=new _util.MissingPDFException(v.message);break;case"UnexpectedResponseException":R=new _util.UnexpectedResponseException(v.message,v.status);break;case"UnknownErrorException":R=new _util.UnknownErrorException(v.message,v.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}m._capability.reject(R)}),E.on("PasswordRequest",v=>
1{if(this._passwordCapability=(0,_util.createPromiseCapability)(),m.onPassword){const R=j=>{j instanceof Error?this._passwordCapability.reject(j):this._passwordCapability.resolve({password:j})};try{m.onPassword(R,v.code)}catch(j){this._passwordCapability.reject(j)}}else this._passwordCapability.reject(new _util.PasswordException(v.message,v.code));return this._passwordCapability.promise}),E.on("DataLoaded",v=>{var R;null==(R=m.onProgress)||R.call(m,{loaded:v.length,total:v.length}),this.downloadInfoCapability.resolve(v)}),E.on("StartRenderPage",v=>{this.destroyed||Fe(this,x).get(v.pageIndex)._startRenderPage(v.transparency,v.cacheKey)}),E.on("commonobj",([v,R,j])=>{var M;if(!this.destroyed&&!this.commonObjs.has(v))switch(R){case"Font":const V=this._params;if("error"in j){const Z=j.error;(0,_util.warn)(`Error during font loading: ${Z}`),this.commonObjs.resolve(v,Z);break}let f=null;V.pdfBug&&(null==(M=globalThis.FontInspector)?void 0:M.enabled)&&(f={registerFont(Z,G){globalThis.FontInspector.fontAdded(Z,G)}});const T=new _font_loader.FontFaceObject(j,{isEvalSupported:V.isEvalSupported,disableFontFace:V.disableFontFace,ignoreErrors:V.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:f});this.fontLoader.bind(T).catch(Z=>E.sendWithPromise("FontFallback",{id:v})).finally(()=>{!V.fontExtraProperties&&T.data&&(T.data=null),this.commonObjs.resolve(v,T)});break;case"FontPath":case"Image":this.commonObjs.resolve(v,j);break;default:throw new Error(`Got unknown common object type ${R}`)}}),E.on("obj",([v,R,j,M])=>{var f;if(this.destroyed)return;const V=Fe(this,x).get(R);if(!V.objs.has(v))switch(j){case"Image":V.objs.resolve(v,M);const T=8e6;if(M){let Z;if(M.bitmap){const{bitmap:G,width:$,height:se}=M;Z=$*se*4,V._bitmaps.add(G)}else Z=(null==(f=M.data)?void 0:f.length)||0;Z>T&&(V.cleanupAfterRender=!0)}break;case"Pattern":V.objs.resolve(v,M);break;default:throw new Error(`Got unknown object type ${j}`)}}),E.on("DocProgress",v=>{var R;this.destroyed||null==(R=m.onProgress)||R.call(m,{loaded:v.loaded,total:v.total})}),E.on("DocStats",v=>{this.destroyed||Vn(this,_,Object.freeze({streamTypes:Object.freeze(v.streamTypes),fontTypes:Object.freeze(v.fontTypes)}))}),E.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),E.on("FetchBuiltInCMap",v=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(v):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),E.on("FetchStandardFontData",v=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(v):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature({featureId:E}){var m,v;this.destroyed||null==(v=(m=this.loadingTask).onUnsupportedFeature)||v.call(m,E)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(E){if(!Number.isInteger(E)||E<=0||E>this._numPages)return Promise.reject(new Error("Invalid page request."));const m=E-1,v=Fe(this,re).get(m);if(v)return v;const R=this.messageHandler.sendWithPromise("GetPage",{pageIndex:m}).then(j=>{if(this.destroyed)throw new Error("Transport destroyed");const M=new PDFPageProxy(m,j,this,this._params.ownerDocument,this._params.pdfBug);return Fe(this,x).set(m,M),M});return Fe(this,re).set(m,R),R}getPageIndex(E){return"object"!=typeof E||null===E||!Number.isInteger(E.num)||E.num<0||!Number.isInteger(E.gen)||E.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:E.num,gen:E.gen})}getAnnotations(E,m){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:E,intent:m})}saveDocument(){var E,m;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!=(m=null==(E=this._fullReader)?void 0:E.filename)?m:null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithProm
1ise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(E){return"string"!=typeof E?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:E})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(E){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:E})}getStructTree(E){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:E})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(E=>new _optional_content_config.OptionalContentConfig(E))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return Fe(this,te)||Vn(this,te,this.messageHandler.sendWithPromise("GetMetadata",null).then(E=>{var m,v,R,j;return{info:E[0],metadata:E[1]?new _metadata.Metadata(E[1]):null,contentDispositionFilename:null!=(v=null==(m=this._fullReader)?void 0:m.filename)?v:null,contentLength:null!=(j=null==(R=this._fullReader)?void 0:R.contentLength)?j:null}}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(){var E=this;return _asyncToGenerator(function*(m=!1){if(yield E.messageHandler.sendWithPromise("Cleanup",null),!E.destroyed){for(const v of Fe(E,x).values())if(!v.cleanup())throw new Error(`startCleanup: Page ${v.pageNumber} is currently rendering.`);E.commonObjs.clear(),m||E.fontLoader.clear(),Vn(E,te,null),E._getFieldObjectsPromise=null,E._hasJSActionsPromise=null}}).apply(this,arguments)}get loadingParams(){const E=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:E.disableAutoFetch,enableXfa:E.enableXfa})}}_=new WeakMap,x=new WeakMap,re=new WeakMap,te=new WeakMap;class PDFObjects{constructor(){dn(this,S),dn(this,Q,Object.create(null))}get(E,m=null){if(m){const R=bn(this,S,Z0).call(this,E);return R.capability.promise.then(()=>m(R.data)),null}const v=Fe(this,Q)[E];if(!(null==v?void 0:v.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${E}.`);return v.data}has(E){const m=Fe(this,Q)[E];return(null==m?void 0:m.capability.settled)||!1}resolve(E,m=null){const v=bn(this,S,Z0).call(this,E);v.data=m,v.capability.resolve()}clear(){Vn(this,Q,Object.create(null))}}Q=new WeakMap,S=new WeakSet,Z0=function(E){return Fe(this,Q)[E]||(Fe(this,Q)[E]={capability:(0,_util.createPromiseCapability)(),data:null})};class RenderTask{constructor(E){this._internalRenderTask=E,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;const C=class{constructor({callback:E,params:m,objs:v,commonObjs:R,annotationCanvasMap:j,operatorList:M,pageIndex:V,canvasFactory:f,useRequestAnimationFrame:T=!1,pdfBug:Z=!1,pageColors:G=null}){this.callback=E,this.params=m,this.objs=v,this.commonObjs=R,this.annotationCanvasMap=j,this.operatorListIdx=null,this.operatorList=M,this._pageIndex=V,this.canvasFactory=f,this._pdfBug=Z,this.pageColors=G,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===T&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=m.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:E=!1,optionalContentConfig:m}){var f;if(this.cancelled)return;
vendor: 19,565 bytes, line 1
1if(this._canvas){if(Fe(C,P).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Fe(C,P).add(this._canvas)}this._pdfBug&&(null==(f=globalThis.StepperManager)?void 0:f.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:v,viewport:R,transform:j,imageLayer:M,background:V}=this.params;this.gfx=new _canvas.CanvasGraphics(v,this.commonObjs,this.objs,this.canvasFactory,M,m,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:j,viewport:R,transparency:E,background:V}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(E=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&Fe(C,P).delete(this._canvas),this.callback(E||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var E=this;return _asyncToGenerator(function*(){E.cancelled||(E.operatorListIdx=E.gfx.executeOperatorList(E.operatorList,E.operatorListIdx,E._continueBound,E.stepper),E.operatorListIdx===E.operatorList.argsArray.length&&(E.running=!1,E.operatorList.lastChunk&&(E.gfx.endDrawing(),E._canvas&&Fe(C,P).delete(E._canvas),E.callback())))})()}};let InternalRenderTask=C;P=new WeakMap,dn(InternalRenderTask,P,new WeakSet);const version="2.14.305";exports.version=version;const build="eaaa8b4ad";exports.build=build},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.StatTimer=q.RenderingCancelledException=q.PixelsPerInch=q.PageViewport=q.PDFDateString=q.DOMStandardFontDataFactory=q.DOMSVGFactory=q.DOMCanvasFactory=q.DOMCMapReaderFactory=void 0,q.deprecated=function T(y){console.log("Deprecated API usage: "+y)},q.getFilenameFromUrl=function R(y){const k=y.indexOf("#"),I=y.indexOf("?"),H=Math.min(k>0?k:y.length,I>0?I:y.length);return y.substring(y.lastIndexOf("/",H)+1,H)},q.getPdfFilenameFromUrl=function j(y,k="document.pdf"){if("string"!=typeof y)return k;if(m(y))return(0,_.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),k;const H=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,ee=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(y);let z=H.exec(ee[1])||H.exec(ee[2])||H.exec(ee[3]);if(z&&(z=z[0],z.includes("%")))try{z=H.exec(decodeURIComponent(z))[0]}catch(oe){}return z||k},q.getXfaPageViewport=function $(y,{scale:k=1,rotation:I=0}){const{width:H,height:ee}=y.attributes.style,z=[0,0,parseInt(H),parseInt(ee)];return new L({viewBox:z,scale:k,rotation:I})},q.isDataScheme=m,q.isPdfFile=function v(y){return"string"==typeof y&&/\.pdf$/i.test(y)},q.isValidFetchUrl=V,q.loadScript=function f(y,k=!1){return new Promise((I,H)=>{const ee=document.createElement("script");ee.src=y,ee.onload=function(z){k&&ee.remove(),I(z)},ee.onerror=function(){H(new Error(`Cannot load script at: ${ee.src}`))},(document.head||document.documentElement).appendChild(ee)})};var t=c(6),_=c(1);const se=class{};let Z,re=se;function Q(y){return S.apply(this,arguments)}function S(){return(S=_asyncToGenerator(function*(y,k=!1){if(V(y,document.baseURI)){const I=yield fetch(y);if(!I.ok)throw new Error(I.statusText);return k?new Uint8Array(yield I.arrayBuffer()):(0,_.stringToBytes)(yield I.text())}return new Promise((I,H)=>{const ee=new XMLHttpRequest;ee.open("GET",y,!0),k&&(ee.responseType="arraybuffer"),ee.onreadystatechange=()=>{if(ee.readyState===XMLHttpRequest.DONE){if(200===ee.status||0===ee.status){let z;if(k&&ee.response?z=new Uint8Array(ee.response):!k&&ee.responseText&&(z=(0,_.stringToBytes)(ee.responseText)),z)return void I(z)}H(new Error(ee.statusText))}},ee.send(null)})})).apply(this,arguments)}ys(re,"CSS",96),ys(re,"PDF",72),ys(re,"PDF_TO_CSS_UNITS",se.CSS/se.PDF),q.PixelsPerInch=re,q.DOMCanvasFactory=class te extends t.BaseCanvasFactory{constructor({ownerDocument:k=globalThis.document}={}){super(),this._document=k}_createCanvas(k,I){const H=this._document.createElement("canvas");return H.width=k,H.height=I,H}},q.DOMCMapReaderFactory=class W extends t.BaseCMapReaderFactory{_fetchData(k,I){return Q(k,this.isCompressed).then(H=>({cMapData:H,compressionType:I}))}},q.DOMStandardFontDataFactory=class P extends t.BaseStandardFontDataFactory{_fetchData(k){return Q(k,!0)}},q.DOMSVGFactory=class C extends t.BaseSVGFactory{_createSVG(k){return document.createElementNS("http://www.w3.org/2000/svg",k)}};class L{constructor({viewBox:k,scale:I,rotation:H,offsetX:ee=0,offsetY:z=0,dontFlip:oe=!1}){this.viewBox=k,this.scale=I,this.rotation=H,this.offsetX=ee,this.offsetY=z;const ve=(k[2]+k[0])/2,We=(k[3]+k[1])/2;let Re,He,ge,O,b,p,A,N;switch((H%=360)<0&&(H+=360),H){case 180:Re=-1,He=0,ge=0,O=1;break;case 90:Re=0,He=1,ge=1,O=0;break;case 270:Re=0,He=-1,ge=-1,O=0;break;case 0:Re=1,He=0,ge=0,O=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}oe&&(ge=-ge,O=-O),0===Re?(b=Math.abs(We-k[1])*I+ee,p=Math.abs(ve-k[0])*I+z,A=Math.abs(k[3]-k[1])*I,N=Math.abs(k[2]-k[0])*I):(b=Math.abs(ve-k[0])*I+ee,p=Math.abs(We-k[1])*I+z,A=Math.abs(k[2]-k[0])*I,N=Math.abs(k[3]-k[1])*I),this.transform=[Re*I,He*I,ge*I,O*I,b-Re*I*ve-ge*I*We,p-He*I*ve-O*I*We],this.width=A,this.height=N}clone({scale:k=this.scale,rotation:I=this.rotation,offsetX:H=this.offsetX,offsetY:ee=this.offsetY,dontFlip:z=!1}={}){return new L({viewBox:this.viewBox.slice(),scale:k,rotation:I,offsetX:H,offsetY:ee,dontFlip:z})}convertToViewportPoint(k,I){return _.Util.applyTransform([k,I],this.transform)}convertToViewportRectangle(k){const I=_.Util.applyTransform([k[0],k[1]],this.transform),H=_.Util.applyTransform([k[2],k[3]],this.transform);return[I[0],I[1],H[0],H[1]]}convertToPdfPoint(k,I){return _.Util.applyInverseTransform([k,I],this.transform)}}function m(y){const k=y.length;let I=0;for(;I<k&&""===y[I].trim();)I++;return"data:"===y.substring(I,I+5).toLowerCase()}function V(y,k){try{const{protocol:I}=k?new URL(y,k):new URL(y);return"http:"===I||"https:"===I}catch(I){return!1}}q.PageViewport=L,q.RenderingCancelledException=class E extends _.BaseException{constructor(k,I){super(k,"RenderingCancelledException"),this.type=I}},q.StatTimer=class M{constructor(){this.started=Object.create(null),this.times=[]}time(k){k in this.started&&(0,_.warn)(`Timer is already running for ${k}`),this.started[k]=Date.now()}timeEnd(k){k in this.started||(0,_.warn)(`Timer has not been started for ${k}`),this.times.push({name:k,start:this.started[k],end:Date.now()}),delete this.started[k]}toString(){const k=[];let I=0;for(const H of this.times){const ee=H.name;ee.length>I&&(I=ee.length)}for(const H of this.times){const ee=H.end-H.start;k.push(`${H.name.padEnd(I)} ${ee}ms\n`)}return k.join("")}},q.PDFDateString=class G{static toDateObject(k){if(!k||"string"!=typeof k)return null;Z||(Z=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const I=Z.exec(k);if(!I)return null;const H=parseInt(I[1],10);let ee=parseInt(I[2],10);ee=ee>=1&&ee<=12?ee-1:0;let z=parseInt(I[3],10);z=z>=1&&z<=31?z:1;let oe=parseInt(I[4],10);oe=oe>=0&&oe<=23?oe:0;let ve=parseInt(I[5],10);ve=ve>=0&&ve<=59?ve:0;let We=parseInt(I[6],10);We=We>=0&&We<=59?We:0;const Re=I[7]||"Z";let He=parseInt(I[8],10);He=He>=0&&He<=23?He:0;let ge=parseInt(I[9],10)||0;return ge=ge>=0&&ge<=59?ge:0,"-"===Re?(oe+=He,ve+=ge):"+"===Re&&(oe-=He,ve-=ge),new Date(Date.UTC(H,ee,z,oe,ve,We))}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.BaseStandardFontDataFactory=q.BaseSVGFactory=q.BaseCanvasFactory=q.BaseCMapReaderFactory=void 0;var t=c(1);class _{constructor(){this.constructor===_&&(0,t.unreachable)("Cannot initialize BaseCanvasFactory.")}create(S,W){if(S<=0||W<=0)throw new Error("Invalid canvas size");const P=this._createCanvas(S,W);return{canvas:P,context:P.getContext("2d")}}reset(S,W,P){if(!S.canvas)throw new Error("Canvas is not specified");if(W<=0||P<=0)throw new Error("Invalid canvas size");S.canvas.width=W,S.canvas.height=P}destroy(S){if(!S.canvas)throw new Error("Canvas is not specified");S.canvas.width=0,S.canvas.height=0,S.canvas=null,S.context=null}_createCanvas(S,W){(0,t.unreachable)("Abstract method `_createCanvas` called.")}}q.BaseCanvasFactory=_;class x{constructor({baseUrl:S=null,isCompressed:W=!1}){this.constructor===x&&(0,t.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=S,this.isCompressed=W}fetch(S){var W=this;return _asyncToGenerator(function*({name:P}){if(!W.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!P)throw new Error("CMap name must be specified.");const C=W.baseUrl+P+(W.isCompressed?".bcmap":"");return W._fetchData(C,W.isCompressed?t.CMapCompressionType.BINARY:t.CMapCompressionType.NONE).catch(E=>{throw new Error(`Unable to load ${W.isCompressed?"binary ":""}CMap at: ${C}`)})}).apply(this,arguments)}_fetchData(S,W){(0,t.unreachable)("Abstract method `_fetchData` called.")}}q.BaseCMapReaderFactory=x;class re{constructor({baseUrl:S=null}){this.constructor===re&&(0,t.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=S}fetch(S){var W=this;return _asyncToGenerator(function*({filename:P}){if(!W.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!P)throw new Error("Font filename must be specified.");const C=`${W.baseUrl}${P}`;return W._fetchData(C).catch(L=>{throw new Error(`Unable to load font data at: ${C}`)})}).apply(this,arguments)}_fetchData(S){(0,t.unreachable)("Abstract method `_fetchData` called.")}}q.BaseStandardFontDataFactory=re;class te{constructor(){this.constructor===te&&(0,t.unreachable)("Cannot initialize BaseSVGFactory.")}create(S,W){if(S<=0||W<=0)throw new Error("Invalid SVG dimensions");const P=this._createSVG("svg:svg");return P.setAttribute("version","1.1"),P.setAttribute("width",`${S}px`),P.setAttribute("height",`${W}px`),P.setAttribute("preserveAspectRatio","none"),P.setAttribute("viewBox",`0 0 ${S} ${W}`),P}createElement(S){if("string"!=typeof S)throw new Error("Invalid SVG element type");return this._createSVG(S)}_createSVG(S){(0,t.unreachable)("Abstract method `_createSVG` called.")}}q.BaseSVGFactory=te},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.FontLoader=q.FontFaceObject=void 0;var t=c(1);class _{constructor({docId:Q,onUnsupportedFeature:S,ownerDocument:W=globalThis.document,styleElement:P=null}){this.constructor===_&&(0,t.unreachable)("Cannot initialize BaseFontLoader."),this.docId=Q,this._onUnsupportedFeature=S,this._document=W,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(Q){this.nativeFontFaces.push(Q),this._document.fonts.add(Q)}insertRule(Q){let S=this.styleElement;S||(S=this.styleElement=this._document.createElement("style"),S.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(S));const W=S.sheet;W.insertRule(Q,W.cssRules.length)}clear(){for(const Q of this.nativeFontFaces)this._document.fonts.delete(Q);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}bind(Q){var S=this;return _asyncToGenerator(function*(){if(Q.attached||Q.missingFile)return;if(Q.attached=!0,S.isFontLoadingAPISupported){const P=Q.createNativeFontFace();if(P){S.addNativeFontFace(P);try{yield P.loaded}catch(C){throw S._onUnsupportedFeature({featureId:t.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,t.warn)(`Failed to load font '${P.family}': '${C}'.`),Q.disableFontFace=!0,C}}return}const W=Q.createFontFaceRule();if(W){if(S.insertRule(W),S.isSyncFontLoadingSupported)return;yield new Promise(P=>{const C=S._queueLoadingCallback(P);S._prepareFontLoadEvent([W],[Q],C)})}})()}_queueLoadingCallback(Q){(0,t.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var S;const Q=!!(null==(S=this._document)?void 0:S.fonts);return(0,t.shadow)(this,"isFontLoadingAPISupported",Q)}get isSyncFontLoadingSupported(){(0,t.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,t.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(Q,S,W){(0,t.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let x;q.FontLoader=x,q.FontLoader=x=class extends _{constructor(Q){super(Q),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let Q=!1;if("undefined"==typeof navigator)Q=!0;else{const S=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null==S?void 0:S[1])>=14&&(Q=!0)}return(0,t.shadow)(this,"isSyncFontLoadingSupported",Q)}_queueLoadingCallback(Q){const W=this.loadingContext,P={id:"pdfjs-font-loading-"+W.nextRequestId++,done:!1,complete:function S(){for((0,t.assert)(!P.done,"completeRequest() cannot be called twice."),P.done=!0;W.requests.length>0&&W.requests[0].done;){const C=W.requests.shift();setTimeout(C.callback,0)}},callback:Q};return W.requests.push(P),P}get _loadTestFont(){return(0,t.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(Q,S,W){function P(I,H){return I.charCodeAt(H)<<24|I.charCodeAt(H+1)<<16|I.charCodeAt(H+2)<<8|255&I.charCodeAt(H+3)}function C(I,H,ee,z){return I.substring(0,H)+z+I.substring(H+ee)}let L,E;const m=this._document.createElement("canvas");m.width=1,m.height=1;const v=m.getContext("2d");let R=0;const M=`lt${Date.now()}${this.loadTestFontId++}`;let V=this._loadTestFont;V=C(V,976,M.length,M);const Z=1482184792;let G=P(V,16);for(L=0,E=M.length-3;L<E;L+=4)G=G-Z+P(M,L)|0;L<M.length&&(G=G-Z+P(M+"XXX",L)|0),V=C(V,16,4,(0,t.string32)(G));const $=`url(data:font/opentype;base64,${btoa(V)});`;this.insertRule(`@font-face {font-family:"${M}";src:${$}}`);const y=[];for(const I of S)y.push(I.loadedName);y.push(M);const k=this._document.createElement("div");k.style.visibility="hidden",k.style.width=k.style.height="10px",k.style.position="absolute",k.style.top=k.style.left="0px";for(const I of y){const H=this._document.createElement("span");H.textContent="Hi",H.style.fontFamily=I,k.appendChild(H)}this._document.body.appendChild(k),function j(I,H){if(R++,R>30)return(0,t.warn)("Load test font never loaded."),void H();v.font="30px "+I,v.fillText(".",0,20),v.getImageData(0,0,1,1).data[3]>0?H():setTimeout(j.bind(null,I,H))}(M,()=>{k.remove(),W.complete()})}},q.FontFaceObject=class re{constructor(Q,{isEvalSupported:S=!0,disableFontFace:W=!1,ignoreErrors:P=!1,onUnsupportedFeature:C,fontRegistry:L=null}){this.compiledGlyphs=Object.create(null);for(const E in Q)this[E]=Q[E];this.isEvalSupported=!1!==S,this.disableFontFace=!0===W,this.ignoreErrors=!0===P,this._onUnsupportedFeature=C,this.fontRegistry=L}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let Q;if(this.cssFontInfo){const S={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(S.style=`oblique ${this.cssFontInfo.italicAngle}deg`),Q=new FontFace(this.cssFontInfo.fontFamily,this.data,S)}else Q=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),Q}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const Q=(0,t.bytesToString)(this.data),S=`url(data:${this.mimetype};base64,${btoa(Q)});`;let W;if(this.cssFontInfo){let P=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(P+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),W=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${P}src:${S}}`}else W=`@font-face {font-family:"${this.loadedName}";src:${S}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,S),W}getPathGenerator(Q,S){if(void 0!==this.compiledGlyphs[S])return this.compiledGlyphs[S];let W;try{W=Q.get(this.loadedName+"_path_"+S)}catch(P){if(!this.ignoreErrors)throw P;return this._onUnsupportedFeature({featureId:t.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,t.warn)(`getPathGenerator - ignoring character: "${P}".`),this.compiledGlyphs[S]=function(C,L){}}if(this.isEvalSupported&&t.FeatureTest.isEvalSupported){const P=[];for(const C of W){const L=void 0!==C.args?C.args.join(","):"";P.push("c.",C.cmd,"(",L,");\n")}return this.compiledGlyphs[S]=new Function("c","size",P.join(""))}return this.compiledGlyphs[S]=function(P,C){for(const L of W)"scale"===L.cmd&&(L.args=[C,-C]),P[L.cmd].apply(P,L.args)}}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.AnnotationStorage=void 0;var t=c(9),_=c(1);q.AnnotationStorage=class x{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(te,Q){const S=this._storage.get(te);return void 0===S?Q:Object.assign(Q,S)}getRawValue(te){return this._storage.get(te)}setValue(te,Q){const S=this._storage.get(te);let W=!1;if(void 0!==S)for(const[P,C]of Object.entries(Q))S[P]!==C&&(W=!0,S[P]=C);else W=!0,this._storage.set(te,Q);W&&this._setModified()}getAll(){return this._storage.size>0?(0,_.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get hash(){const te=new t.MurmurHash3_64;
1for(const[Q,S]of this._storage)te.update(`${Q}:${JSON.stringify(S)}`);return te.hexdigest()}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.MurmurHash3_64=void 0;var t=c(1);const _=3285377520,x=4294901760,re=65535;q.MurmurHash3_64=class te{constructor(S){this.h1=S?4294967295&S:_,this.h2=S?4294967295&S:_}update(S){let W,P;if("string"==typeof S){W=new Uint8Array(2*S.length),P=0;for(let Z=0,G=S.length;Z<G;Z++){const $=S.charCodeAt(Z);$<=255?W[P++]=$:(W[P++]=$>>>8,W[P++]=255&$)}}else{if(!(0,t.isArrayBuffer)(S))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");W=S.slice(),P=W.byteLength}const C=P>>2,L=P-4*C,E=new Uint32Array(W.buffer,0,C);let m=0,v=0,R=this.h1,j=this.h2;const M=3432918353,V=461845907,f=M&re,T=V&re;for(let Z=0;Z<C;Z++)1&Z?(m=E[Z],m=m*M&x|m*f&re,m=m<<15|m>>>17,m=m*V&x|m*T&re,R^=m,R=R<<13|R>>>19,R=5*R+3864292196):(v=E[Z],v=v*M&x|v*f&re,v=v<<15|v>>>17,v=v*V&x|v*T&re,j^=v,j=j<<13|j>>>19,j=5*j+3864292196);switch(m=0,L){case 3:m^=W[4*C+2]<<16;case 2:m^=W[4*C+1]<<8;case 1:m^=W[4*C],m=m*M&x|m*f&re,m=m<<15|m>>>17,m=m*V&x|m*T&re,1&C?R^=m:j^=m}this.h1=R,this.h2=j}hexdigest(){let S=this.h1,W=this.h2;S^=W>>>1,S=3981806797*S&x|36045*S&re,W=4283543511*W&x|(2950163797*(W<<16|S>>>16)&x)>>>16,S^=W>>>1,S=444984403*S&x|60499*S&re,W=3301882366*W&x|(3120437893*(W<<16|S>>>16)&x)>>>16,S^=W>>>1;const P=(S>>>0).toString(16),C=(W>>>0).toString(16);return P.padStart(8,"0")+C.padStart(8,"0")}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.CanvasGraphics=void 0;var t=c(1),_=c(11),x=c(12),re=c(3),te=c(5);const W=4096,m=16;function j(ge){if(ge._transformStack&&(ge._transformStack=[]),!ge.mozCurrentTransform){ge._originalSave=ge.save,ge._originalRestore=ge.restore,ge._originalRotate=ge.rotate,ge._originalScale=ge.scale,ge._originalTranslate=ge.translate,ge._originalTransform=ge.transform,ge._originalSetTransform=ge.setTransform,ge._originalResetTransform=ge.resetTransform,ge._transformMatrix=ge._transformMatrix||[1,0,0,1,0,0],ge._transformStack=[];try{const O=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(ge),"lineWidth");ge._setLineWidth=O.set,ge._getLineWidth=O.get,Object.defineProperty(ge,"lineWidth",{set:function(p){this._setLineWidth(1.000001*p)},get:function(){return this._getLineWidth()}})}catch(O){}Object.defineProperty(ge,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(ge,"mozCurrentTransformInverse",{get:function(){const[b,p,A,N,K,J]=this._transformMatrix,ie=b*N-p*A,he=p*A-b*N;return[N/ie,p/he,A/he,b/ie,(N*K-A*J)/he,(p*K-b*J)/ie]}}),ge.save=function(){const b=this._transformMatrix;this._transformStack.push(b),this._transformMatrix=b.slice(0,6),this._originalSave()},ge.restore=function(){0===this._transformStack.length&&(0,t.warn)("Tried to restore a ctx when the stack was already empty.");const b=this._transformStack.pop();b&&(this._transformMatrix=b,this._originalRestore())},ge.translate=function(b,p){const A=this._transformMatrix;A[4]=A[0]*b+A[2]*p+A[4],A[5]=A[1]*b+A[3]*p+A[5],this._originalTranslate(b,p)},ge.scale=function(b,p){const A=this._transformMatrix;A[0]*=b,A[1]*=b,A[2]*=p,A[3]*=p,this._originalScale(b,p)},ge.transform=function(b,p,A,N,K,J){const ie=this._transformMatrix;this._transformMatrix=[ie[0]*b+ie[2]*p,ie[1]*b+ie[3]*p,ie[0]*A+ie[2]*N,ie[1]*A+ie[3]*N,ie[0]*K+ie[2]*J+ie[4],ie[1]*K+ie[3]*J+ie[5]],ge._originalTransform(b,p,A,N,K,J)},ge.setTransform=function(b,p,A,N,K,J){this._transformMatrix=[b,p,A,N,K,J],ge._originalSetTransform(b,p,A,N,K,J)},ge.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],ge._originalResetTransform()},ge.rotate=function(b){const p=Math.cos(b),A=Math.sin(b),N=this._transformMatrix;this._transformMatrix=[N[0]*p+N[2]*A,N[1]*p+N[3]*A,N[0]*-A+N[2]*p,N[1]*-A+N[3]*p,N[4],N[5]],this._originalRotate(b)}}}class M{constructor(O){this.canvasFactory=O,this.cache=Object.create(null)}getCanvas(O,b,p,A){let N;return void 0!==this.cache[O]?(N=this.cache[O],this.canvasFactory.reset(N,b,p),N.context.setTransform(1,0,0,1,0,0)):(N=this.canvasFactory.create(b,p),this.cache[O]=N),A&&j(N.context),N}delete(O){delete this.cache[O]}clear(){for(const O in this.cache)this.canvasFactory.destroy(this.cache[O]),delete this.cache[O]}}function V(ge,O,b,p,A,N,K,J,ie,he){const[Oe,Ne,Ye,Qe,Ct,Ot]=ge.mozCurrentTransform;if(0===Ne&&0===Ye){const Rt=Math.round(K*Oe+Ct),_t=Math.round(J*Qe+Ot),yt=Math.abs(Math.round((K+ie)*Oe+Ct)-Rt)||1,ct=Math.abs(Math.round((J+he)*Qe+Ot)-_t)||1;return ge.setTransform(Math.sign(Oe),0,0,Math.sign(Qe),Rt,_t),ge.drawImage(O,b,p,A,N,0,0,yt,ct),ge.setTransform(Oe,Ne,Ye,Qe,Ct,Ot),[yt,ct]}if(0===Oe&&0===Qe){const Rt=Math.round(J*Ye+Ct),_t=Math.round(K*Ne+Ot),yt=Math.abs(Math.round((J+he)*Ye+Ct)-Rt)||1,ct=Math.abs(Math.round((K+ie)*Ne+Ot)-_t)||1;return ge.setTransform(0,Math.sign(Ne),Math.sign(Ye),0,Rt,_t),ge.drawImage(O,b,p,A,N,0,0,ct,yt),ge.setTransform(Oe,Ne,Ye,Qe,Ct,Ot),[ct,yt]}return ge.drawImage(O,b,p,A,N,K,J,ie,he),[Math.hypot(Oe,Ne)*ie,Math.hypot(Ye,Qe)*he]}class T{constructor(O,b){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=t.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=t.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=t.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,O,b])}clone(){const O=Object.create(this);return O.clipBox=this.clipBox.slice(),O}setCurrentPoint(O,b){this.x=O,this.y=b}updatePathMinMax(O,b,p){[b,p]=t.Util.applyTransform([b,p],O),this.minX=Math.min(this.minX,b),this.minY=Math.min(this.minY,p),this.maxX=Math.max(this.maxX,b),this.maxY=Math.max(this.maxY,p)}updateRectMinMax(O,b){const p=t.Util.applyTransform(b,O),A=t.Util.applyTransform(b.slice(2),O);this.minX=Math.min(this.minX,p[0],A[0]),this.minY=Math.min(this.minY,p[1],A[1]),this.maxX=Math.max(this.maxX,p[0],A[0]),this.maxY=Math.max(this.maxY,p[1],A[1])}updateScalingPathMinMax(O,b){t.Util.scaleMinMax(O,b),this.minX=Math.min(this.minX,b[0]),this.maxX=Math.max(this.maxX,b[1]),this.minY=Math.min(this.minY,b[2]),this.maxY=Math.max(this.maxY,b[3])}updateCurvePathMinMax(O,b,p,A,N,K,J,ie,he,Oe){const Ne=t.Util.bezierBoundingBox(b,p,A,N,K,J,ie,he);if(Oe)return Oe[0]=Math.min(Oe[0],Ne[0],Ne[2]),Oe[1]=Math.max(Oe[1],Ne[0],Ne[2]),Oe[2]=Math.min(Oe[2],Ne[1],Ne[3]),void(Oe[3]=Math.max(Oe[3],Ne[1],Ne[3]));this.updateRectMinMax(O,Ne)}getPathBoundingBox(O=_.PathType.FILL,b=null){const p=[this.minX,this.minY,this.maxX,this.maxY];if(O===_.PathType.STROKE){b||(0,t.unreachable)("Stroke bounding box must include transform.");const A=t.Util.singularValueDecompose2dScale(b),N=A[0]*this.lineWidth/2,K=A[1]*this.lineWidth/2;p[0]-=N,p[1]-=K,p[2]+=N,p[3]+=K}return p}updateClipFromPath(){const O=t.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(O||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(O){this.clipBox=O,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(O=_.PathType.FILL,b=null){return t.Util.intersect(this.clipBox,this.getPathBoundingBox(O,b))}}function Z(ge,O,b=null){if("undefined"!=typeof ImageData&&O instanceof ImageData)return void ge.putImageData(O,0,0);const p=O.height,A=O.width,N=p%m,K=(p-N)/m,J=0===N?K:K+1,ie=ge.createImageData(A,m);let Oe,he=0;const Ne=O.data,Ye=ie.data;let Qe,Ct,Ot,ln,Lt,Jt,Rt,it;if(b)switch(b.length){case 1:Lt=b[0],Jt=b[0],Rt=b[0],it=b[0];break;case 4:Lt=b[0],Jt=b[1],Rt=b[2],it=b[3]}if(O.kind===t.ImageKind.GRAYSCALE_1BPP){const _t=Ne.byteLength,ut=new Uint32Array(Ye.buffer,0,Ye.byteLength>>2),yt=ut.length,ht=A+7>>3;let ct=4294967295,cn=t.FeatureTest.isLittleEndian?4278190080:255;for(it&&255===it[0]&&0===it[255]&&([ct,cn]=[cn,ct]),Qe=0;Qe<J;Qe++){for(Ot=Qe<K?m:N,Oe=0,Ct=0;Ct<Ot;Ct++){const gt=_t-he;let at=0;const St=gt>ht?A:8*gt-7,sn=-8&St;let ze=0,nt=0;for(;at<sn;at+=8)nt=Ne[he++],ut[Oe++]=128&nt?ct:cn,ut[Oe++]=64&nt?ct:cn,ut[Oe++]=32&nt?ct:cn,ut[Oe++]=16&nt?ct:cn,ut[Oe++]=8&nt?ct:cn,ut[Oe++]=4&nt?ct:cn,ut[Oe++]=2&nt?ct:cn,ut[Oe++]=1&nt?ct:cn;for(;at<St;
vendor: 26,526 bytes, line 1
1at++)0===ze&&(nt=Ne[he++],ze=128),ut[Oe++]=nt&ze?ct:cn,ze>>=1}for(;Oe<yt;)ut[Oe++]=0;ge.putImageData(ie,0,Qe*m)}}else if(O.kind===t.ImageKind.RGBA_32BPP){const _t=!!(Lt||Jt||Rt);for(Ct=0,ln=A*m*4,Qe=0;Qe<K;Qe++){if(Ye.set(Ne.subarray(he,he+ln)),he+=ln,_t)for(let ut=0;ut<ln;ut+=4)Lt&&(Ye[ut+0]=Lt[Ye[ut+0]]),Jt&&(Ye[ut+1]=Jt[Ye[ut+1]]),Rt&&(Ye[ut+2]=Rt[Ye[ut+2]]);ge.putImageData(ie,0,Ct),Ct+=m}if(Qe<J){if(ln=A*N*4,Ye.set(Ne.subarray(he,he+ln)),_t)for(let ut=0;ut<ln;ut+=4)Lt&&(Ye[ut+0]=Lt[Ye[ut+0]]),Jt&&(Ye[ut+1]=Jt[Ye[ut+1]]),Rt&&(Ye[ut+2]=Rt[Ye[ut+2]]);ge.putImageData(ie,0,Ct)}}else{if(O.kind!==t.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${O.kind}`);{const _t=!!(Lt||Jt||Rt);for(Ot=m,ln=A*Ot,Qe=0;Qe<J;Qe++){for(Qe>=K&&(Ot=N,ln=A*Ot),Oe=0,Ct=ln;Ct--;)Ye[Oe++]=Ne[he++],Ye[Oe++]=Ne[he++],Ye[Oe++]=Ne[he++],Ye[Oe++]=255;if(_t)for(let ut=0;ut<Oe;ut+=4)Lt&&(Ye[ut+0]=Lt[Ye[ut+0]]),Jt&&(Ye[ut+1]=Jt[Ye[ut+1]]),Rt&&(Ye[ut+2]=Rt[Ye[ut+2]]);ge.putImageData(ie,0,Qe*m)}}}}function G(ge,O){if(O.bitmap)return void ge.drawImage(O.bitmap,0,0);const b=O.height,p=O.width,A=b%m,N=(b-A)/m,K=0===A?N:N+1,J=ge.createImageData(p,m);let ie=0;const he=O.data,Oe=J.data;for(let Ne=0;Ne<K;Ne++){const Ye=Ne<N?m:A;({srcPos:ie}=(0,x.applyMaskImageData)({src:he,srcPos:ie,dest:Oe,width:p,height:Ye})),ge.putImageData(J,0,Ne*m)}}function $(ge,O){const b=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(let p=0,A=b.length;p<A;p++){const N=b[p];void 0!==ge[N]&&(O[N]=ge[N])}void 0!==ge.setLineDash&&(O.setLineDash(ge.getLineDash()),O.lineDashOffset=ge.lineDashOffset)}function se(ge,O){ge.strokeStyle=ge.fillStyle=O||"#000000",ge.fillRule="nonzero",ge.globalAlpha=1,ge.lineWidth=1,ge.lineCap="butt",ge.lineJoin="miter",ge.miterLimit=10,ge.globalCompositeOperation="source-over",ge.font="10px sans-serif",void 0!==ge.setLineDash&&(ge.setLineDash([]),ge.lineDashOffset=0)}function y(ge,O,b,p){const A=ge.length;for(let N=3;N<A;N+=4){const K=ge[N];if(0===K)ge[N-3]=O,ge[N-2]=b,ge[N-1]=p;else if(K<255){const J=255-K;ge[N-3]=ge[N-3]*K+O*J>>8,ge[N-2]=ge[N-2]*K+b*J>>8,ge[N-1]=ge[N-1]*K+p*J>>8}}}function k(ge,O,b){const p=ge.length;for(let N=3;N<p;N+=4)O[N]=O[N]*(b?b[ge[N]]:ge[N])*.00392156862745098|0}function I(ge,O,b){const p=ge.length;for(let A=3;A<p;A+=4){const N=77*ge[A-3]+152*ge[A-2]+28*ge[A-1];O[A]=b?O[A]*b[N>>8]>>8:O[A]*N>>16}}function z(ge,O){const b=t.Util.singularValueDecompose2dScale(ge);b[0]=Math.fround(b[0]),b[1]=Math.fround(b[1]);const p=Math.fround((globalThis.devicePixelRatio||1)*te.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==O?O:b[0]<=p||b[1]<=p}const oe=["butt","round","square"],ve=["miter","round","bevel"],We={},Re={};class He{constructor(O,b,p,A,N,K,J,ie){this.ctx=O,this.current=new T(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=b,this.objs=p,this.canvasFactory=A,this.imageLayer=N,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=K,this.cachedCanvases=new M(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=J,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=(null==ie?void 0:ie.background)||null,this.foregroundColor=(null==ie?void 0:ie.foreground)||null,O&&j(O),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(O,b=null){return"string"==typeof O?O.startsWith("g_")?this.commonObjs.get(O):this.objs.get(O):b}beginDrawing({transform:O,viewport:b,transparency:p=!1,background:A=null}){const N=this.ctx.canvas.width,K=this.ctx.canvas.height,J=A||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const ie=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const he=this.backgroundColor=this.ctx.fillStyle;let Oe=!0,Ne=J;if(this.ctx.fillStyle=J,Ne=this.ctx.fillStyle,Oe="string"==typeof Ne&&/^#[0-9A-Fa-f]{6}$/.test(Ne),"#000000"===ie&&"#ffffff"===he||ie===he||!Oe)this.foregroundColor=this.backgroundColor=null;else{const Ye=parseInt(Ne.slice(1),16),Ct=(Ye&&65280)>>8,Ot=Ye&&255,ln=Jt=>(Jt/=255)<=.03928?Jt/12.92:Qf((Jt+.055)/1.055,2.4),Lt=Math.round(.2126*ln((Ye&&16711680)>>16)+.7152*ln(Ct)+.0722*ln(Ot));this.selectColor=(Jt,Rt,it)=>{const _t=.2126*ln(Jt)+.7152*ln(Rt)+.0722*ln(it);return Math.round(_t)===Lt?he:ie}}}if(this.ctx.fillStyle=this.backgroundColor||J,this.ctx.fillRect(0,0,N,K),this.ctx.restore(),p){const ie=this.cachedCanvases.getCanvas("transparent",N,K,!0);this.compositeCtx=this.ctx,this.transparentCanvas=ie.canvas,this.ctx=ie.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),se(this.ctx,this.foregroundColor),O&&(this.ctx.transform.apply(this.ctx,O),this.outputScaleX=O[0],this.outputScaleY=O[0]),this.ctx.transform.apply(this.ctx,b.transform),this.viewportScale=b.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(O,b,p,A){const N=O.argsArray,K=O.fnArray;let J=b||0;const ie=N.length;if(ie===J)return J;const he=ie-J>10&&"function"==typeof p,Oe=he?Date.now()+15:0;let Ne=0;const Ye=this.commonObjs,Qe=this.objs;let Ct;for(;;){if(void 0!==A&&J===A.nextBreakPoint)return A.breakIt(J,p),J;if(Ct=K[J],Ct!==t.OPS.dependency)this[Ct].apply(this,N[J]);else for(const Ot of N[J]){const ln=Ot.startsWith("g_")?Ye:Qe;if(!ln.has(Ot))return ln.get(Ot,p),J}if(J++,J===ie)return J;if(he&&++Ne>10){if(Date.now()>Oe)return p(),J;Ne=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const O of this._cachedBitmapsMap.values()){for(const b of O.values())"undefined"!=typeof HTMLCanvasElement&&b instanceof HTMLCanvasElement&&(b.width=b.height=0);O.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(O,b){const p=O.width,A=O.height;let Oe,Ne,N=Math.max(Math.hypot(b[0],b[1]),1),K=Math.max(Math.hypot(b[2],b[3]),1),J=p,ie=A,he="prescale1";for(;N>2&&J>1||K>2&&ie>1;){let Ye=J,Qe=ie;N>2&&J>1&&(Ye=Math.ceil(J/2),N/=J/Ye),K>2&&ie>1&&(Qe=Math.ceil(ie/2),K/=ie/Qe),Oe=this.cachedCanvases.getCanvas(he,Ye,Qe,!1),Ne=Oe.context,Ne.clearRect(0,0,Ye,Qe),Ne.drawImage(O,0,0,J,ie,0,0,Ye,Qe),O=Oe.canvas,J=Ye,ie=Qe,he="prescale1"===he?"prescale2":"prescale1"}return{img:O,paintWidth:J,paintHeight:ie}}_createMaskCanvas(O){const b=this.ctx,{width:p,height:A}=O,N=this.current.fillColor,K=this.current.patternFill,J=b.mozCurrentTransform;let ie,he,Oe,Ne;if((O.bitmap||O.data)&&O.count>1){const yt=O.bitmap||O.data.buffer,ht=J.slice(0,4);he=JSON.stringify(K?ht:[ht,N]),ie=this._cachedBitmapsMap.get(yt),ie||(ie=new Map,this._cachedBitmapsMap.set(yt,ie));const ct=ie.get(he);if(ct&&!K)return{canvas:ct,offsetX:Math.round(Math.min(J[0],J[2])+J[4]),offsetY:Math.round(Math.min(J[1],J[3])+J[5])};Oe=ct}Oe||(Ne=this.cachedCanvases.getCanvas("maskCanvas",p,A,!1),G(Ne.context,O));let Ye=t.Util.transform(J,[1/p,0,0,-1/A,0,0]);Ye=t.Util.transform(Ye,[1,0,0,1,0,-A]);const Qe=t.Util.applyTransform([0,0],Ye),Ct=t.Util.applyTransform([p,A],Ye),Ot=t.Util.normalizeRect([Qe[0],Qe[1],Ct[0],Ct[1]]),ln=Math.round(Ot[2]-Ot[0])||1,Lt=Math.round(Ot[3]-Ot[1])||1,Jt=this.cachedCanvases.getCanvas("fillCanvas",ln,Lt,!0),Rt=Jt.context,it=Math.min(Qe[0],Ct[0]),_t=Math.min(Qe[1],Ct[1]);Rt.translate(-it,-_t),Rt.transform.apply(Rt,Ye),Oe||(Oe=this._scaleImage(Ne.canvas,Rt.mozCurrentTransformInverse),Oe=Oe.img,ie&&K&&ie.set(he,Oe)),Rt.imageSmoothingEnabled=z(Rt.mozCurrentTransform,O.interpolate),V(Rt,Oe,0,0,Oe.width,Oe.height,0,0,p,A),Rt.globalCompositeOperation="source-in";const ut=t.Util.transform(Rt.mozCurrentTransformInverse,[1,0,0,1,-it,-_t]);return Rt.fillStyle=K?N.getPattern(b,this,ut,_.PathType.FILL):N,Rt.fillRect(0,0,p,A),ie&&!K&&(this.cachedCanvases.delete("fillCanvas"),ie.set(he,Jt.canvas)),{canvas:Jt.canvas,offsetX:Math.round(it),offsetY:Math.round(_t)}}setLineWidth(O){O!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=O,this.ctx.lineWidth=O}setLineCap(O){this.ctx.lineCap=oe[O]}setLineJoin(O){this.ctx.lineJoin=ve[O]}setMiterLimit(O){this.ctx.miterLimit=O}setDash(O,b){const p=this.ctx;void 0!==p.setLineDash&&(p.setLineDash(O),p.lineDashOffset=b)}setRenderingIntent(O){}setFlatness(O){}setGState(O){for(let b=0,p=O.length;b<p;b++){const A=O[b],K=A[1];switch(A[0]){case"LW":this.setLineWidth(K);break;case"LC":this.setLineCap(K);break;case"LJ":this.setLineJoin(K);break;case"ML":this.setMiterLimit(K);break;case"D":this.setDash(K[0],K[1]);break;case"RI":this.setRenderingIntent(K);break;case"FL":this.setFlatness(K);break;case"Font":this.setFont(K[0],K[1]);break;case"CA":this.current.strokeAlpha=A[1];break;case"ca":this.current.fillAlpha=A[1],this.ctx.globalAlpha=A[1];break;case"BM":this.ctx.globalCompositeOperation=K;break;case"SMask":this.current.activeSMask=K?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=K}}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const O=this.inSMaskMode;this.current.activeSMask&&!O?this.beginSMaskMode():!this.current.activeSMask&&O&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const A=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,this.ctx.canvas.width,this.ctx.canvas.height,!0);this.suspendedCtx=this.ctx,this.ctx=A.context;const N=this.ctx;N.setTransform.apply(N,this.suspendedCtx.mozCurrentTransform),$(this.suspendedCtx,N),function R(ge,O){if(ge._removeMirroring)throw new Error("Context is already forwarding operations.");ge.__originalSave=ge.save,ge.__originalRestore=ge.restore,ge.__originalRotate=ge.rotate,ge.__originalScale=ge.scale,ge.__originalTranslate=ge.translate,ge.__originalTransform=ge.transform,ge.__originalSetTransform=ge.setTransform,ge.__originalResetTransform=ge.resetTransform,ge.__originalClip=ge.clip,ge.__originalMoveTo=ge.moveTo,ge.__originalLineTo=ge.lineTo,ge.__originalBezierCurveTo=ge.bezierCurveTo,ge.__originalRect=ge.rect,ge.__originalClosePath=ge.closePath,ge.__originalBeginPath=ge.beginPath,ge._removeMirroring=()=>{ge.save=ge.__originalSave,ge.restore=ge.__originalRestore,ge.rotate=ge.__originalRotate,ge.scale=ge.__originalScale,ge.translate=ge.__originalTranslate,ge.transform=ge.__originalTransform,ge.setTransform=ge.__originalSetTransform,ge.resetTransform=ge.__originalResetTransform,ge.clip=ge.__originalClip,ge.moveTo=ge.__originalMoveTo,ge.lineTo=ge.__originalLineTo,ge.bezierCurveTo=ge.__originalBezierCurveTo,ge.rect=ge.__originalRect,ge.closePath=ge.__originalClosePath,ge.beginPath=ge.__originalBeginPath,delete ge._removeMirroring},ge.save=function(){O.save(),this.__originalSave()},ge.restore=function(){O.restore(),this.__originalRestore()},ge.translate=function(p,A){O.translate(p,A),this.__originalTranslate(p,A)},ge.scale=function(p,A){O.scale(p,A),this.__originalScale(p,A)},ge.transform=function(p,A,N,K,J,ie){O.transform(p,A,N,K,J,ie),this.__originalTransform(p,A,N,K,J,ie)},ge.setTransform=function(p,A,N,K,J,ie){O.setTransform(p,A,N,K,J,ie),this.__originalSetTransform(p,A,N,K,J,ie)},ge.resetTransform=function(){O.resetTransform(),this.__originalResetTransform()},ge.rotate=function(p){O.rotate(p),this.__originalRotate(p)},ge.clip=function(p){O.clip(p),this.__originalClip(p)},ge.moveTo=function(b,p){O.moveTo(b,p),this.__originalMoveTo(b,p)},ge.lineTo=function(b,p){O.lineTo(b,p),this.__originalLineTo(b,p)},ge.bezierCurveTo=function(b,p,A,N,K,J){O.bezierCurveTo(b,p,A,N,K,J),this.__originalBezierCurveTo(b,p,A,N,K,J)},ge.rect=function(b,p,A,N){O.rect(b,p,A,N),this.__originalRect(b,p,A,N)},ge.closePath=function(){O.closePath(),this.__originalClosePath()},ge.beginPath=function(){O.beginPath(),this.__originalBeginPath()}}(N,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),$(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(O){this.current.activeSMask&&(O?(O[0]=Math.floor(O[0]),O[1]=Math.floor(O[1]),O[2]=Math.ceil(O[2]),O[3]=Math.ceil(O[3])):O=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],function ee(ge,O,b,p){const A=p[0],N=p[1],K=p[2]-A,J=p[3]-N;0===K||0===J||(function H(ge,O,b,p,A,N,K,J,ie,he,Oe){const Ne=!!N,Ye=Ne?N[0]:0,Qe=Ne?N[1]:0,Ct=Ne?N[2]:0;let Ot;Ot="Luminosity"===A?I:k;const Lt=Math.min(p,Math.ceil(1048576/b));for(let Jt=0;Jt<p;Jt+=Lt){const Rt=Math.min(Lt,p-Jt),it=ge.getImageData(J-he,Jt+(ie-Oe),b,Rt),_t=O.getImageData(J,Jt+ie,b,Rt);Ne&&y(it.data,Ye,Qe,Ct),Ot(it.data,_t.data,K),O.putImageData(_t,J,Jt+ie)}}(O.context,b,K,J,O.subtype,O.backdrop,O.transferMap,A,N,O.offsetX,O.offsetY),ge.save(),ge.globalAlpha=1,ge.globalCompositeOperation="source-over",ge.setTransform(1,0,0,1,0,0),ge.drawImage(b.canvas,0,0),ge.restore())}(this.suspendedCtx,this.current.activeSMask,this.ctx,O),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}save(){this.inSMaskMode?($(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const O=this.current;this.stateStack.push(O),this.current=O.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),$(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null)}transform(O,b,p,A,N,K){this.ctx.transform(O,b,p,A,N,K),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null}constructPath(O,b,p){const A=this.ctx,N=this.current;let ie,he,K=N.x,J=N.y;const Oe=A.mozCurrentTransform,Ne=0===Oe[0]&&0===Oe[3]||0===Oe[1]&&0===Oe[2],Ye=Ne?p.slice(0):null;for(let Qe=0,Ct=0,Ot=O.length;Qe<Ot;Qe++)switch(0|O[Qe]){case t.OPS.rectangle:K=b[Ct++],J=b[Ct++];const ln=b[Ct++],Lt=b[Ct++],Jt=K+ln,Rt=J+Lt;A.moveTo(K,J),0===ln||0===Lt?A.lineTo(Jt,Rt):(A.lineTo(Jt,J),A.lineTo(Jt,Rt),A.lineTo(K,Rt)),Ne||N.updateRectMinMax(Oe,[K,J,Jt,Rt]),A.closePath();break;case t.OPS.moveTo:K=b[Ct++],J=b[Ct++],A.moveTo(K,J),Ne||N.updatePathMinMax(Oe,K,J);break;case t.OPS.lineTo:K=b[Ct++],J=b[Ct++],A.lineTo(K,J),Ne||N.updatePathMinMax(Oe,K,J);break;case t.OPS.curveTo:ie=K,he=J,K=b[Ct+4],J=b[Ct+5],A.bezierCurveTo(b[Ct],b[Ct+1],b[Ct+2],b[Ct+3],K,J),N.updateCurvePathMinMax(Oe,ie,he,b[Ct],b[Ct+1],b[Ct+2],b[Ct+3],K,J,Ye),Ct+=6;break;case t.OPS.curveTo2:ie=K,he=J,A.bezierCurveTo(K,J,b[Ct],b[Ct+1],b[Ct+2],b[Ct+3]),N.updateCurvePathMinMax(Oe,ie,he,K,J,b[Ct],b[Ct+1],b[Ct+2],b[Ct+3],Ye),K=b[Ct+2],J=b[Ct+3],Ct+=4;break;case t.OPS.curveTo3:ie=K,he=J,K=b[Ct+2],J=b[Ct+3],A.bezierCurveTo(b[Ct],b[Ct+1],K,J,K,J),N.updateCurvePathMinMax(Oe,ie,he,b[Ct],b[Ct+1],K,J,K,J,Ye),Ct+=4;break;case t.OPS.closePath:A.closePath()}Ne&&N.updateScalingPathMinMax(Oe,Ye),N.setCurrentPoint(K,J)}closePath(){this.ctx.closePath()}stroke(O){O=void 0===O||O;const b=this.ctx,p=this.current.strokeColor;b.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof p&&(null==p?void 0:p.getPattern)?(b.save(),b.strokeStyle=p.getPattern(b,this,b.mozCurrentTransformInverse,_.PathType.STROKE),this.rescaleAndStroke(!1),b.restore()):this.rescaleAndStroke(!0)),O&&this.consumePath(this.current.getClippedPathBoundingBox()),b.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(O){O=void 0===O||O;const b=this.ctx,p=this.current.fillColor;let N=!1;this.current.patternFill&&(b.save(),b.fillStyle=p.getPattern(b,this,b.mozCurrentTransformInverse,_.PathType.FILL),N=!0);const K=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==K&&(this.pendingEOFill?(b.fill("evenodd"),this.pendingEOFill=!1):b.fill()),N&&b.restore(),O&&this.consumePath(K)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=We}eoClip(){this.pendingClip=Re}beginText(){this.current.textMatrix=t.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const O=this.pendingTextPaths,b=this.ctx;if(void 0!==O){b.save(),b.beginPath();for(let p=0;p<O.length;p++){const A=O[p];b.setTransform.apply(b,A.transform),b.translate(A.x,A.y),A.addToPath(b,A.fontSize)}b.restore(),b.clip(),b.beginPath(),delete this.pendingTextPaths}else b.beginPath()}setCharSpacing(O){this.current.charSpacing=O}setWordSpacing(O){this.current.wordSpacing=O}setHScale(O){this.current.textHScale=O/100}setLeading(O){this.current.leading=-O}setFont(O,b){const p=this.commonObjs.get(O),A=this.current;if(!p)throw new Error(`Can't find font for ${O}`);if(A.fontMatrix=p.fontMatrix||t.FONT_IDENTITY_MATRIX,(0===A.fontMatrix[0]||0===A.fontMatrix[3])&&(0,t.warn)("Invalid font matrix for font "+O),b<0?(b=-b,A.fontDirection=-1):A.fontDirection=1,this.current.font=p,this.current.fontSize=b,p.isType3Font)return;let K="normal";p.black?K="900":p.bold&&(K="bold");const J=p.italic?"italic":"normal",ie=`"${p.loadedName||"sans-serif"}", ${p.fallbackName}`;let he=b;b<16?he=16:b>100&&(he=100),this.current.fontSizeScale=b/he,this.ctx.font=`${J} ${K} ${he}px ${ie}`}setTextRenderingMode(O){this.current.textRenderingMode=O}setTextRise(O){this.current.textRise=O}moveText(O,b){this.current.x=this.current.lineX+=O,this.current.y=this.current.lineY+=b}setLeadingMoveText(O,b){this.setLeading(-b),this.moveText(O,b)}setTextMatrix(O,b,p,A,N,K){this.current.textMatrix=[O,b,p,A,N,K],this.current.textMatrixScale=Math.hypot(O,b),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(O,b,p,A){const N=this.ctx,K=this.current,J=K.font,ie=K.textRenderingMode,he=K.fontSize/K.fontSizeScale,Oe=ie&t.TextRenderingMode.FILL_STROKE_MASK,Ne=!!(ie&t.TextRenderingMode.ADD_TO_PATH_FLAG),Ye=K.patternFill&&!J.missingFile;let Qe;(J.disableFontFace||Ne||Ye)&&(Qe=J.getPathGenerator(this.commonObjs,O)),J.disableFontFace||Ye?(N.save(),N.translate(b,p),N.beginPath(),Qe(N,he),A&&N.setTransform.apply(N,A),(Oe===t.TextRenderingMode.FILL||Oe===t.TextRenderingMode.FILL_STROKE)&&N.fill(),(Oe===t.TextRenderingMode.STROKE||Oe===t.TextRenderingMode.FILL_STROKE)&&N.stroke(),N.restore()):((Oe===t.TextRenderingMode.FILL||Oe===t.TextRenderingMode.FILL_STROKE)&&N.fillText(O,b,p),(Oe===t.TextRenderingMode.STROKE||Oe===t.TextRenderingMode.FILL_STROKE)&&N.strokeText(O,b,p)),Ne&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:N.mozCurrentTransform,x:b,y:p,fontSize:he,addToPath:Qe})}get isFontSubpixelAAEnabled(){const{context:O}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);O.scale(1.5,1),O.fillText("I",0,10);const b=O.getImageData(0,0,10,10).data;let p=!1;for(let A=3;A<b.length;A+=4)if(b[A]>0&&b[A]<255){p=!0;break}return(0,t.shadow)(this,"isFontSubpixelAAEnabled",p)}showText(O){const b=this.current,p=b.font;if(p.isType3Font)return this.showType3Text(O);const A=b.fontSize;if(0===A)return;const N=this.ctx,K=b.fontSizeScale,J=b.charSpacing,ie=b.wordSpacing,he=b.fontDirection,Oe=b.textHScale*he,Ne=O.length,Ye=p.vertical,Qe=Ye?1:-1,Ct=p.defaultVMetrics,Ot=A*b.fontMatrix[0],ln=b.textRenderingMode===t.TextRenderingMode.FILL&&!p.disableFontFace&&!b.patternFill;let Lt;if(N.save(),N.transform.apply(N,b.textMatrix),N.translate(b.x,b.y+b.textRise),N.scale(Oe,he>0?-1:1),b.patternFill){N.save();const ut=b.fillColor.getPattern(N,this,N.mozCurrentTransformInverse,_.PathType.FILL);Lt=N.mozCurrentTransform,N.restore(),N.fillStyle=ut}let Jt=b.lineWidth;const Rt=b.textMatrixScale;if(0===Rt||0===Jt){const ut=b.textRenderingMode&t.TextRenderingMode.FILL_STROKE_MASK;(ut===t.TextRenderingMode.STROKE||ut===t.TextRenderingMode.FILL_STROKE)&&(Jt=this.getSinglePixelWidth())}else Jt/=Rt;1!==K&&(N.scale(K,K),Jt/=K),N.lineWidth=Jt;let _t,it=0;for(_t=0;_t<Ne;++_t){const ut=O[_t];if("number"==typeof ut){it+=Qe*ut*A/1e3;continue}let yt=!1;const ht=(ut.isSpace?ie:0)+J,ct=ut.fontChar,cn=ut.accent;let gt,at,sn,St=ut.width;if(Ye){const ze=ut.vmetric||Ct,nt=-(ut.vmetric?ze[1]:.5*St)*Ot;St=ze?-ze[0]:St,gt=nt/K,at=(it+ze[2]*Ot)/K}else gt=it/K,at=0;if(p.remeasure&&St>0){const ze=1e3*N.measureText(ct).width/A*K;if(St<ze&&this.isFontSubpixelAAEnabled){const nt=St/ze;yt=!0,N.save(),N.scale(nt,1),gt/=nt}else St!==ze&&(gt+=(St-ze)/2e3*A/K)}this.contentVisible&&(ut.isInFont||p.missingFile)&&(ln&&!cn?N.fillText(ct,gt,at):(this.paintChar(ct,gt,at,Lt),cn&&this.paintChar(cn.fontChar,gt+A*cn.offset.x/K,at-A*cn.offset.y/K,Lt))),sn=Ye?St*Ot-ht*he:St*Ot+ht*he,it+=sn,yt&&N.restore()}Ye?b.y-=it:b.x+=it*Oe,N.restore(),this.compose()}showType3Text(O){const b=this.ctx,p=this.current,A=p.font,N=p.fontSize,K=p.fontDirection,J=A.vertical?1:-1,ie=p.charSpacing,he=p.wordSpacing,Oe=p.textHScale*K,Ne=p.fontMatrix||t.FONT_IDENTITY_MATRIX,Ye=O.length;let Ct,Ot,ln,Lt;if(p.textRenderingMode!==t.TextRenderingMode.INVISIBLE&&0!==N){for(this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,b.save(),b.transform.apply(b,p.textMatrix),b.translate(p.x,p.y),b.scale(Oe,K),Ct=0;Ct<Ye;++Ct){if(Ot=O[Ct],"number"==typeof Ot){Lt=J*Ot*N/1e3,this.ctx.translate(Lt,0),p.x+=Lt*Oe;continue}const Jt=(Ot.isSpace?he:0)+ie,Rt=A.charProcOperatorList[Ot.operatorListId];Rt?(this.contentVisible&&(this.processingType3=Ot,this.save(),b.scale(N,N),b.transform.apply(b,Ne),this.executeOperatorList(Rt),this.restore()),ln=t.Util.applyTransform([Ot.width,0],Ne)[0]*N+Jt,b.translate(ln,0),p.x+=ln*Oe):(0,t.warn)(`Type3 character "${Ot.operatorListId}" is not available.`)}b.restore(),this.processingType3=null}}setCharWidth(O,b){}setCharWidthAndBounds(O,b,p,A,N,K){this.ctx.rect(p,A,N-p,K-A),this.ctx.clip(),this.endPath()}getColorN_Pattern(O){let b;if("TilingPattern"===O[0]){const p=O[1],A=this.baseTransform||this.ctx.mozCurrentTransform.slice();b=new _.TilingPattern(O,p,this.ctx,{createCanvasGraphics:K=>new He(K,this.commonObjs,this.objs,this.canvasFactory)},A)}else b=this._getPattern(O[1],O[2]);return b}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(O,b,p){var N;const A=(null==(N=this.selectColor)?void 0:N.call(this,O,b,p))||t.Util.makeHexColor(O,b,p);this.ctx.strokeStyle=A,this.current.strokeColor=A}setFillRGBColor(O,b,p){var N;const A=(null==(N=this.selectColor)?void 0:N.call(this,O,b,p))||t.Util.makeHexColor(O,b,p);this.ctx.fillStyle=A,this.current.fillColor=A,this.current.patternFill=!1}_getPattern(O,b=null){let p;return this.cachedPatterns.has(O)?p=this.cachedPatterns.get(O):(p=(0,_.getShadingPattern)(this.objs.get(O)),this.cachedPatterns.set(O,p)),b&&(p.matrix=b),p}shadingFill(O){if(!this.contentVisible)return;const b=this.ctx;this.save();const p=this._getPattern(O);b.fillStyle=p.getPattern(b,this,b.mozCurrentTransformInverse,_.PathType.SHADING);const A=b.mozCurrentTransformInverse;if(A){const N=b.canvas,K=N.width,J=N.height,ie=t.Util.applyTransform([0,0],A),he=t.Util.applyTransform([0,J],A),Oe=t.Util.applyTransform([K,0],A),Ne=t.Util.applyTransform([K,J],A),Ye=Math.min(ie[0],he[0],Oe[0],Ne[0]),Qe=Math.min(ie[1],he[1],Oe[1],Ne[1]),Ct=Math.max(ie[0],he[0],Oe[0],Ne[0]),Ot=Math.max(ie[1],he[1],Oe[1],Ne[1]);this.ctx.fillRect(Ye,Qe,Ct-Ye,Ot-Qe)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,t.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,t.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(O,b){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(O)&&6===O.length&&this.transform.apply(this,O),this.baseTransform=this.ctx.mozCurrentTransform,b)&&(this.ctx.rect(b[0],b[1],b[2]-b[0],b[3]-b[1]),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,b),this.clip(),this.endPath())}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(O){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const b=this.ctx;O.isolated||(0,t.info)("TODO: Support non-isolated groups."),O.knockout&&(0,t.warn)("Knockout groups not supported.");const p=b.mozCurrentTransform;if(O.matrix&&b.transform.apply(b,O.matrix),!O.bbox)throw new Error("Bounding box is required.");let A=t.Util.getAxialAlignedBoundingBox(O.bbox,b.mozCurrentTransform);A=t.Util.intersect(A,[0,0,b.canvas.width,b.canvas.height])||[0,0,0,0];const K=Math.floor(A[0]),J=Math.floor(A[1]);let ie=Math.max(Math.ceil(A[2])-K,1),he=Math.max(Math.ceil(A[3])-J,1),Oe=1,Ne=1;ie>W&&(Oe=ie/W,ie=W),he>W&&(Ne=he/W,he=W),this.current.startNewPathAndClipBox([0,0,ie,he]);let Ye="groupAt"+this.groupLevel;O.smask&&(Ye+="_smask_"+this.smaskCounter++%2);const Qe=this.cachedCanvases.getCanvas(Ye,ie,he,!0),Ct=Qe.context;Ct.scale(1/Oe,1/Ne),Ct.translate(-K,-J),Ct.transform.apply(Ct,p),O.smask?this.smaskStack.push({canvas:Qe.canvas,context:Ct,offsetX:K,offsetY:J,scaleX:Oe,scaleY:Ne,subtype:O.smask.subtype,backdrop:O.smask.backdrop,transferMap:O.smask.transferMap||null,startTransformInverse:null}):(b.setTransform(1,0,0,1,0,0),b.translate(K,J),b.scale(Oe,Ne),b.save()),$(b,Ct),this.ctx=Ct,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(b),this.groupLevel++}endGroup(O){if(!this.contentVisible)return;this.groupLevel--;const b=this.ctx,p=this.groupStack.pop();if(this.ctx=p,this.ctx.imageSmoothingEnabled=!1,O.smask)this.tempSMask=this.smaskStack.pop(),this.restore(
1);else{this.ctx.restore();const A=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,A);const N=t.Util.getAxialAlignedBoundingBox([0,0,b.canvas.width,b.canvas.height],A);this.ctx.drawImage(b.canvas,0,0),this.ctx.restore(),this.compose(N)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(O,b,p,A,N){if(this.save(),Array.isArray(b)&&4===b.length){const K=b[2]-b[0],J=b[3]-b[1];if(N&&this.annotationCanvasMap){(p=p.slice())[4]-=b[0],p[5]-=b[1],(b=b.slice())[0]=b[1]=0,b[2]=K,b[3]=J;const[ie,he]=t.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:Oe}=this,Ne=Math.ceil(K*this.outputScaleX*Oe),Ye=Math.ceil(J*this.outputScaleY*Oe);this.annotationCanvas=this.canvasFactory.create(Ne,Ye);const{canvas:Qe,context:Ct}=this.annotationCanvas,Ot=`var(--zoom-factor) * ${te.PixelsPerInch.PDF_TO_CSS_UNITS}`;Qe.style.width=`calc(${K}px * ${Ot})`,Qe.style.height=`calc(${J}px * ${Ot})`,this.annotationCanvasMap.set(O,Qe),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Ct,this.ctx.setTransform(ie,0,0,-he,0,J*he),j(this.ctx),se(this.ctx,this.foregroundColor)}else se(this.ctx,this.foregroundColor),this.ctx.rect(b[0],b[1],K,J),this.ctx.clip(),this.endPath()}this.current=new T(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,p),this.transform.apply(this,A)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(O){if(!this.contentVisible)return;const b=O.count;(O=this.getObject(O.data,O)).count=b;const p=this.ctx,A=this.processingType3;if(A&&(void 0===A.compiled&&(A.compiled=function f(ge){const{width:O,height:b}=ge;if(O>1e3||b>1e3)return null;const A=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),N=O+1;let J,ie,he,K=new Uint8Array(N*(b+1));const Oe=O+7&-8;let Ne=new Uint8Array(Oe*b),Ye=0;for(const Rt of ge.data){let it=128;for(;it>0;)Ne[Ye++]=Rt&it?0:255,it>>=1}let Qe=0;for(Ye=0,0!==Ne[Ye]&&(K[0]=1,++Qe),ie=1;ie<O;ie++)Ne[Ye]!==Ne[Ye+1]&&(K[ie]=Ne[Ye]?2:1,++Qe),Ye++;for(0!==Ne[Ye]&&(K[ie]=2,++Qe),J=1;J<b;J++){Ye=J*Oe,he=J*N,Ne[Ye-Oe]!==Ne[Ye]&&(K[he]=Ne[Ye]?1:8,++Qe);let Rt=(Ne[Ye]?4:0)+(Ne[Ye-Oe]?8:0);for(ie=1;ie<O;ie++)Rt=(Rt>>2)+(Ne[Ye+1]?4:0)+(Ne[Ye-Oe+1]?8:0),A[Rt]&&(K[he+ie]=A[Rt],++Qe),Ye++;if(Ne[Ye-Oe]!==Ne[Ye]&&(K[he+ie]=Ne[Ye]?2:4,++Qe),Qe>1e3)return null}for(Ye=Oe*(b-1),he=J*N,0!==Ne[Ye]&&(K[he]=8,++Qe),ie=1;ie<O;ie++)Ne[Ye]!==Ne[Ye+1]&&(K[he+ie]=Ne[Ye]?4:8,++Qe),Ye++;if(0!==Ne[Ye]&&(K[he+ie]=4,++Qe),Qe>1e3)return null;const Ct=new Int32Array([0,N,-1,0,-N,0,0,0,1]);let Ot,ln,Lt;for(re.isNodeJS?ln=[]:Ot=new Path2D,J=0;Qe&&J<=b;J++){let Rt=J*N;const it=Rt+O;for(;Rt<it&&!K[Rt];)Rt++;if(Rt===it)continue;Ot?Ot.moveTo(Rt%N,J):Lt=[Rt%N,J];const _t=Rt;let ut=K[Rt];do{const yt=Ct[ut];do{Rt+=yt}while(!K[Rt]);const ht=K[Rt];5!==ht&&10!==ht?(ut=ht,K[Rt]=0):(ut=ht&51*ut>>4,K[Rt]&=ut>>2|ut<<2),Ot?Ot.lineTo(Rt%N,Rt/N|0):Lt.push(Rt%N,Rt/N|0),K[Rt]||--Qe}while(_t!==Rt);Ot||ln.push(Lt),--J}return Ne=null,K=null,function(Rt){if(Rt.save(),Rt.scale(1/O,-1/b),Rt.translate(0,-b),Ot)Rt.fill(Ot);else{Rt.beginPath();for(const it of ln){Rt.moveTo(it[0],it[1]);for(let _t=2,ut=it.length;_t<ut;_t+=2)Rt.lineTo(it[_t],it[_t+1])}Rt.fill()}Rt.beginPath(),Rt.restore()}}(O)),A.compiled))return void A.compiled(p);const N=this._createMaskCanvas(O),K=N.canvas;p.save(),p.setTransform(1,0,0,1,0,0),p.drawImage(K,N.offsetX,N.offsetY),p.restore(
vendor: 16,926 bytes, line 1
1),this.compose()}paintImageMaskXObjectRepeat(O,b,p=0,A=0,N,K){if(!this.contentVisible)return;O=this.getObject(O.data,O);const J=this.ctx;J.save();const ie=J.mozCurrentTransform;J.transform(b,p,A,N,0,0);const he=this._createMaskCanvas(O);J.setTransform(1,0,0,1,0,0);for(let Oe=0,Ne=K.length;Oe<Ne;Oe+=2){const Ye=t.Util.transform(ie,[b,p,A,N,K[Oe],K[Oe+1]]),[Qe,Ct]=t.Util.applyTransform([0,0],Ye);J.drawImage(he.canvas,Qe,Ct)}J.restore(),this.compose()}paintImageMaskXObjectGroup(O){if(!this.contentVisible)return;const b=this.ctx,p=this.current.fillColor,A=this.current.patternFill;for(let N=0,K=O.length;N<K;N++){const J=O[N],ie=J.width,he=J.height,Oe=this.cachedCanvases.getCanvas("maskCanvas",ie,he,!1),Ne=Oe.context;Ne.save(),G(Ne,J),Ne.globalCompositeOperation="source-in",Ne.fillStyle=A?p.getPattern(Ne,this,b.mozCurrentTransformInverse,_.PathType.FILL):p,Ne.fillRect(0,0,ie,he),Ne.restore(),b.save(),b.transform.apply(b,J.transform),b.scale(1,-1),V(b,Oe.canvas,0,0,ie,he,0,-1,1,1),b.restore()}this.compose()}paintImageXObject(O){if(!this.contentVisible)return;const b=this.getObject(O);b?this.paintInlineImageXObject(b):(0,t.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(O,b,p,A){if(!this.contentVisible)return;const N=this.getObject(O);if(!N)return void(0,t.warn)("Dependent image isn't ready yet");const K=N.width,J=N.height,ie=[];for(let he=0,Oe=A.length;he<Oe;he+=2)ie.push({transform:[b,0,0,p,A[he],A[he+1]],x:0,y:0,w:K,h:J});this.paintInlineImageXObjectGroup(N,ie)}paintInlineImageXObject(O){if(!this.contentVisible)return;const b=O.width,p=O.height,A=this.ctx;let N;if(this.save(),A.scale(1/b,-1/p),"function"==typeof HTMLElement&&O instanceof HTMLElement||!O.data)N=O;else{const he=this.cachedCanvases.getCanvas("inlineImage",b,p,!1);Z(he.context,O,this.current.transferMaps),N=he.canvas}const K=this._scaleImage(N,A.mozCurrentTransformInverse);A.imageSmoothingEnabled=z(A.mozCurrentTransform,O.interpolate);const[J,ie]=V(A,K.img,0,0,K.paintWidth,K.paintHeight,0,-p,b,p);if(this.imageLayer){const he=this.getCanvasPosition(0,-p);this.imageLayer.appendImage({imgData:O,left:he[0],top:he[1],width:J,height:ie})}this.compose(),this.restore()}paintInlineImageXObjectGroup(O,b){if(!this.contentVisible)return;const p=this.ctx,A=O.width,N=O.height,K=this.cachedCanvases.getCanvas("inlineImage",A,N,!1);Z(K.context,O,this.current.transferMaps);for(let ie=0,he=b.length;ie<he;ie++){const Oe=b[ie];if(p.save(),p.transform.apply(p,Oe.transform),p.scale(1,-1),V(p,K.canvas,Oe.x,Oe.y,Oe.w,Oe.h,0,-1,1,1),this.imageLayer){const Ne=this.getCanvasPosition(Oe.x,Oe.y);this.imageLayer.appendImage({imgData:O,left:Ne[0],top:Ne[1],width:A,height:N})}p.restore()}this.compose()}paintSolidColorImageMask(){!this.contentVisible||(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(O){}markPointProps(O,b){}beginMarkedContent(O){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(O,b){this.markedContentStack.push("OC"===O?{visible:this.optionalContentConfig.isVisible(b)}:{visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(O){const b=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(O);const p=this.ctx;this.pendingClip&&(b||(this.pendingClip===Re?p.clip("evenodd"):p.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),p.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const O=this.ctx.mozCurrentTransform;if(0===O[1]&&0===O[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(O[0]),Math.abs(O[3]));else{const b=Math.abs(O[0]*O[3]-O[2]*O[1]),p=Math.hypot(O[0],O[2]),A=Math.hypot(O[1],O[3]);this._cachedGetSinglePixelWidth=Math.max(p,A)/b}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(!this._cachedScaleForStroking){const{lineWidth:O}=this.current,b=this.ctx.mozCurrentTransform;let p,A;if(0===b[1]&&0===b[2]){const N=Math.abs(b[0]),K=Math.abs(b[3]);if(0===O)p=1/N,A=1/K;else{const J=N*O,ie=K*O;p=J<1?1/J:1,A=ie<1?1/ie:1}}else{const N=Math.abs(b[0]*b[3]-b[2]*b[1]),K=Math.hypot(b[0],b[1]),J=Math.hypot(b[2],b[3]);if(0===O)p=J/N,A=K/N;else{const ie=O*N;p=J>ie?J/ie:1,A=K>ie?K/ie:1}}this._cachedScaleForStroking=[p,A]}return this._cachedScaleForStroking}rescaleAndStroke(O){const{ctx:b}=this,{lineWidth:p}=this.current,[A,N]=this.getScaleForStroking();if(b.lineWidth=p||1,1===A&&1===N)return void b.stroke();let K,J,ie;O&&(K=b.mozCurrentTransform.slice(),J=b.getLineDash().slice(),ie=b.lineDashOffset),b.scale(A,N);const he=Math.max(A,N);b.setLineDash(b.getLineDash().map(Oe=>Oe/he)),b.lineDashOffset/=he,b.stroke(),O&&(b.setTransform(...K),b.setLineDash(J),b.lineDashOffset=ie)}getCanvasPosition(O,b){const p=this.ctx.mozCurrentTransform;return[p[0]*O+p[2]*b+p[4],p[1]*O+p[3]*b+p[5]]}isContentVisible(){for(let O=this.markedContentStack.length-1;O>=0;O--)if(!this.markedContentStack[O].visible)return!1;return!0}}q.CanvasGraphics=He;for(const ge in t.OPS)void 0!==He.prototype[ge]&&(He.prototype[t.OPS[ge]]=He.prototype[ge])},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.TilingPattern=q.PathType=void 0,q.getShadingPattern=function L(v){switch(v[0]){case"RadialAxial":return new Q(v);case"Mesh":return new P(v);case"Dummy":return new C}throw new Error(`Unknown IR type: ${v[0]}`)};var t=c(1),_=c(3);const x={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function re(v,R){if(!R||_.isNodeJS)return;const j=R[2]-R[0],M=R[3]-R[1],V=new Path2D;V.rect(R[0],R[1],j,M),v.clip(V)}q.PathType=x;class te{constructor(){this.constructor===te&&(0,t.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,t.unreachable)("Abstract method `getPattern` called.")}}class Q extends te{constructor(R){super(),this._type=R[1],this._bbox=R[2],this._colorStops=R[3],this._p0=R[4],this._p1=R[5],this._r0=R[6],this._r1=R[7],this.matrix=null}_createGradient(R){let j;"axial"===this._type?j=R.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(j=R.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const M of this._colorStops)j.addColorStop(M[0],M[1]);return j}getPattern(R,j,M,V){let f;if(V===x.STROKE||V===x.FILL){const T=j.current.getClippedPathBoundingBox(V,R.mozCurrentTransform)||[0,0,0,0],Z=Math.ceil(T[2]-T[0])||1,G=Math.ceil(T[3]-T[1])||1,$=j.cachedCanvases.getCanvas("pattern",Z,G,!0),se=$.context;se.clearRect(0,0,se.canvas.width,se.canvas.height),se.beginPath(),se.rect(0,0,se.canvas.width,se.canvas.height),se.translate(-T[0],-T[1]),M=t.Util.transform(M,[1,0,0,1,T[0],T[1]]),se.transform.apply(se,j.baseTransform),this.matrix&&se.transform.apply(se,this.matrix),re(se,this._bbox),se.fillStyle=this._createGradient(se),se.fill(),f=R.createPattern($.canvas,"no-repeat");const y=new DOMMatrix(M);try{f.setTransform(y)}catch(k){(0,t.warn)(`RadialAxialShadingPattern.getPattern: "${null==k?void 0:k.message}".`)}}else re(R,this._bbox),f=this._createGradient(R);return f}}function S(v,R,j,M,V,f,T,Z){const G=R.coords,$=R.colors,se=v.data,y=4*v.width;let k;G[j+1]>G[M+1]&&(k=j,j=M,M=k,k=f,f=T,T=k),G[M+1]>G[V+1]&&(k=M,M=V,V=k,k=T,T=Z,Z=k),G[j+1]>G[M+1]&&(k=j,j=M,M=k,k=f,f=T,T=k);const I=(G[j]+R.offsetX)*R.scaleX,H=(G[j+1]+R.offsetY)*R.scaleY,ee=(G[M]+R.offsetX)*R.scaleX,z=(G[M+1]+R.offsetY)*R.scaleY,oe=(G[V]+R.offsetX)*R.scaleX,ve=(G[V+1]+R.offsetY)*R.scaleY;if(H>=ve)return;const We=$[f],Re=$[f+1],He=$[f+2],ge=$[T],O=$[T+1],b=$[T+2],p=$[Z],A=$[Z+1],N=$[Z+2],K=Math.round(H),J=Math.round(ve);let ie,he,Oe,Ne,Ye,Qe,Ct,Ot;for(let ln=K;ln<=J;ln++){if(ln<z){let _t;_t=ln<H?0:(H-ln)/(H-z),ie=I-(I-ee)*_t,he=We-(We-ge)*_t,Oe=Re-(Re-O)*_t,Ne=He-(He-b)*_t}else{let _t;_t=ln>ve?1:z===ve?0:(z-ln)/(z-ve),ie=ee-(ee-oe)*_t,he=ge-(ge-p)*_t,Oe=O-(O-A)*_t,Ne=b-(b-N)*_t}let Lt;Lt=ln<H?0:ln>ve?1:(H-ln)/(H-ve),Ye=I-(I-oe)*Lt,Qe=We-(We-p)*Lt,Ct=Re-(Re-A)*Lt,Ot=He-(He-N)*Lt;const Jt=Math.round(Math.min(ie,Ye)),Rt=Math.round(Math.max(ie,Ye));let it=y*ln+4*Jt;for(let _t=Jt;_t<=Rt;_t++)Lt=(ie-_t)/(ie-Ye),Lt<0?Lt=0:Lt>1&&(Lt=1),se[it++]=he-(he-Qe)*Lt|0,se[it++]=Oe-(Oe-Ct)*Lt|0,se[it++]=Ne-(Ne-Ot)*Lt|0,se[it++]=255}}function W(v,R,j){const M=R.coords,V=R.colors;let f,T;switch(R.type){case"lattice":const Z=R.verticesPerRow,G=Math.floor(M.length/Z)-1,$=Z-1;for(f=0;f<G;f++){let se=f*Z;for(let y=0;y<$;y++,se++)S(v,j,M[se],M[se+1],M[se+Z],V[se],V[se+1],V[se+Z]),S(v,j,M[se+Z+1],M[se+1],M[se+Z],V[se+Z+1],V[se+1],V[se+Z])}break;case"triangles":for(f=0,T=M.length;f<T;f+=3)S(v,j,M[f],M[f+1],M[f+2],V[f],V[f+1],V[f+2]);break;default:throw new Error("illegal figure")}}class P extends te{constructor(R){super(),this._coords=R[2],this._colors=R[3],this._figures=R[4],this._bounds=R[5],this._bbox=R[7],this._background=R[8],this.matrix=null}_createMeshCanvas(R,j,M){const Z=Math.floor(this._bounds[0]),G=Math.floor(this._bounds[1]),$=Math.ceil(this._bounds[2])-Z,se=Math.ceil(this._bounds[3])-G,y=Math.min(Math.ceil(Math.abs($*R[0]*1.1)),3e3),k=Math.min(Math.ceil(Math.abs(se*R[1]*1.1)),3e3),I=$/y,H=se/k,ee={coords:this._coords,colors:this._colors,offsetX:-Z,offsetY:-G,scaleX:1/I,scaleY:1/H},ve=M.getCanvas("mesh",y+4,k+4,!1),We=ve.context,Re=We.createImageData(y,k);if(j){const ge=Re.data;for(let O=0,b=ge.length;O<b;O+=4)ge[O]=j[0],ge[O+1]=j[1],ge[O+2]=j[2],ge[O+3]=255}for(const ge of this._figures)W(Re,ge,ee);return We.putImageData(Re,2,2),{canvas:ve.canvas,offsetX:Z-2*I,offsetY:G-2*H,scaleX:I,scaleY:H}}getPattern(R,j,M,V){let f;if(re(R,this._bbox),V===x.SHADING)f=t.Util.singularValueDecompose2dScale(R.mozCurrentTransform);else if(f=t.Util.singularValueDecompose2dScale(j.baseTransform),this.matrix){const Z=t.Util.singularValueDecompose2dScale(this.matrix);f=[f[0]*Z[0],f[1]*Z[1]]}const T=this._createMeshCanvas(f,V===x.SHADING?null:this._background,j.cachedCanvases);return V!==x.SHADING&&(R.setTransform.apply(R,j.baseTransform),this.matrix&&R.transform.apply(R,this.matrix)),R.translate(T.offsetX,T.offsetY),R.scale(T.scaleX,T.scaleY),R.createPattern(T.canvas,"no-repeat")}}class C extends te{getPattern(){return"hotpink"}}class m{static get MAX_PATTERN_SIZE(){return(0,t.shadow)(this,"MAX_PATTERN_SIZE",3e3)}constructor(R,j,M,V,f){this.operatorList=R[2],this.matrix=R[3]||[1,0,0,1,0,0],this.bbox=R[4],this.xstep=R[5],this.ystep=R[6],this.paintType=R[7],this.tilingType=R[8],this.color=j,this.ctx=M,this.canvasGraphicsFactory=V,this.baseTransform=f}createPatternCanvas(R){const j=this.operatorList,M=this.bbox,V=this.xstep,f=this.ystep,T=this.paintType,G=this.color,$=this.canvasGraphicsFactory;(0,t.info)("TilingType: "+this.tilingType);const se=M[0],y=M[1],k=M[2],I=M[3],H=t.Util.singularValueDecompose2dScale(this.matrix),ee=t.Util.singularValueDecompose2dScale(this.baseTransform),z=[H[0]*ee[0],H[1]*ee[1]],oe=this.getSizeAndScale(V,this.ctx.canvas.width,z[0]),ve=this.getSizeAndScale(f,this.ctx.canvas.height,z[1]),We=R.cachedCanvases.getCanvas("pattern",oe.size,ve.size,!0),Re=We.context,He=$.createCanvasGraphics(Re);He.groupLevel=R.groupLevel,this.setFillAndStrokeStyleToContext(He,T,G);let ge=se,O=y,b=k,p=I;return se<0&&(ge=0,b+=Math.abs(se)),y<0&&(O=0,p+=Math.abs(y)),Re.translate(-oe.scale*ge,-ve.scale*O),He.transform(oe.scale,0,0,ve.scale,0,0),Re.save(),this.clipBbox(He,ge,O,b,p),He.baseTransform=He.ctx.mozCurrentTransform.slice(),He.executeOperatorList(j),He.endDrawing(),{canvas:We.canvas,scaleX:oe.scale,scaleY:ve.scale,offsetX:ge,offsetY:O}}getSizeAndScale(R,j,M){R=Math.abs(R);const V=Math.max(m.MAX_PATTERN_SIZE,j);let f=Math.ceil(R*M);return f>=V?f=V:M=f/R,{scale:M,size:f}}clipBbox(R,j,M,V,f){R.ctx.rect(j,M,V-j,f-M),R.current.updateRectMinMax(R.ctx.mozCurrentTransform,[j,M,V,f]),R.clip(),R.endPath()}setFillAndStrokeStyleToContext(R,j,M){const V=R.ctx,f=R.current;switch(j){case 1:const T=this.ctx;V.fillStyle=T.fillStyle,V.strokeStyle=T.strokeStyle,f.fillColor=T.fillStyle,f.strokeColor=T.strokeStyle;break;case 2:const Z=t.Util.makeHexColor(M[0],M[1],M[2]);V.fillStyle=Z,V.strokeStyle=Z,f.fillColor=Z,f.strokeColor=Z;break;default:throw new t.FormatError(`Unsupported paint type: ${j}`)}}getPattern(R,j,M,V){let f=M;V!==x.SHADING&&(f=t.Util.transform(f,j.baseTransform),this.matrix&&(f=t.Util.transform(f,this.matrix)));const T=this.createPatternCanvas(j);let Z=new DOMMatrix(f);Z=Z.translate(T.offsetX,T.offsetY),Z=Z.scale(1/T.scaleX,1/T.scaleY);const G=R.createPattern(T.canvas,"repeat");try{G.setTransform(Z)}catch($){(0,t.warn)(`TilingPattern.getPattern: "${null==$?void 0:$.message}".`)}return G}}q.TilingPattern=m},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.applyMaskImageData=function _({src:x,srcPos:re=0,dest:te,destPos:Q=0,width:S,height:W,inverseDecode:P=!1}){const C=t.FeatureTest.isLittleEndian?4278190080:255,[L,E]=P?[0,C]:[C,0],m=S>>3,v=7&S,R=x.length;te=new Uint32Array(te.buffer);for(let j=0;j<W;j++){for(const V=re+m;re<V;re++){const f=re<R?x[re]:255;te[Q++]=128&f?E:L,te[Q++]=64&f?E:L,te[Q++]=32&f?E:L,te[Q++]=16&f?E:L,te[Q++]=8&f?E:L,te[Q++]=4&f?E:L,te[Q++]=2&f?E:L,te[Q++]=1&f?E:L}if(0===v)continue;const M=re<R?x[re++]:255;for(let V=0;V<v;V++)te[Q++]=M&1<<7-V?E:L}return{srcPos:re,destPos:Q}};var t=c(1)},(xe,q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.GlobalWorkerOptions=void 0;const c=Object.create(null);q.GlobalWorkerOptions=c,c.workerPort=void 0===c.workerPort?null:c.workerPort,c.workerSrc=void 0===c.workerSrc?"":c.workerSrc},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.MessageHandler=void 0;var t=c(1);function re(Q){switch(Q instanceof Error||"object"==typeof Q&&null!==Q||(0,t.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),Q.name){case"AbortException":return new t.AbortException(Q.message);case"MissingPDFException":return new t.MissingPDFException(Q.message);case"PasswordException":return new t.PasswordException(Q.message,Q.code);case"UnexpectedResponseException":return new t.UnexpectedResponseException(Q.message,Q.status);case"UnknownErrorException":return new t.UnknownErrorException(Q.message,Q.details);default:return new t.UnknownErrorException(Q.message,Q.toString())}}q.MessageHandler=class te{constructor(S,W,P){this.sourceName=S,this.targetName=W,this.comObj=P,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=C=>{const L=C.data;if(L.targetName!==this.sourceName)return;if(L.stream)return void this._processStreamMessage(L);if(L.callback){const m=L.callbackId,v=this.callbackCapabilities[m];if(!v)throw new Error(`Cannot resolve callback ${m}`);if(delete this.callbackCapabilities[m],1===L.callback)v.resolve(L.data);else{if(2!==L.callback)throw new Error("Unexpected callback case");v.reject(re(L.reason))}return}const E=this.actionHandler[L.action];if(!E)throw new Error(`Unknown action from worker: ${L.action}`);if(L.callbackId){const m=this.sourceName,v=L.sourceName;new Promise(function(R){R(E(L.data))}).then(function(R){P.postMessage({sourceName:m,targetName:v,callback:1,callbackId:L.callbackId,data:R})},function(R){P.postMessage({sourceName:m,targetName:v,callback:2,callbackId:L.callbackId,reason:re(R)})})}else L.streamId?this._createStreamSink(L):E(L.data)},P.addEventListener("message",this._onComObjOnMessage)}on(S,W){const P=this.actionHandler;if(P[S])throw new Error(`There is already an actionName called "${S}"`);P[S]=W}send(S,W,P){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:S,data:W},P)}sendWithPromise(S,W,P){const C=this.callbackId++,L=(0,t.createPromiseCapability)();this.callbackCapabilities[C]=L;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:S,callbackId:C,data:W},P)}catch(E){L.reject(E)}return L.promise}sendWithStream(S,W,P,C){const L=this.streamId++,E=this.sourceName,m=this.targetName,v=this.comObj;return new ReadableStream({start:R=>{const j=(0,t.createPromiseCapability)();return this.streamControllers[L]={controller:R,startCall:j,pullCall:null,cancelCall:null,isClosed:!1},v.postMessage({sourceName:E,targetName:m,action:S,streamId:L,data:W,desiredSize:R.desiredSize},C),j.promise},pull:R=>{const j=(0,t.createPromiseCapability)();return this.streamControllers[L].pullCall=j,v.postMessage({sourceName:E,targetName:m,stream:6,streamId:L,desiredSize:R.desiredSize}),j.promise},cancel:R=>{(0,t.assert)(R instanceof Error,"cancel must have a valid reason");const j=(0,t.createPromiseCapability)();return this.streamControllers[L].cancelCall=j,this.streamControllers[L].isClosed=!0,v.postMessage({sourceName:E,targetName:m,stream:1,streamId:L,reason:re(R)}),j.promise}},P)}_createStreamSink(S){const W=S.streamId,P=this.sourceName,C=S.sourceName,L=this.comObj,E=this,m=this.actionHandler[S.action],v={enqueue(R,j=1,M){if(this.isCancelled)return;const V=this.desiredSize;
1this.desiredSize-=j,V>0&&this.desiredSize<=0&&(this.sinkCapability=(0,t.createPromiseCapability)(),this.ready=this.sinkCapability.promise),L.postMessage({sourceName:P,targetName:C,stream:4,streamId:W,chunk:R},M)},close(){this.isCancelled||(this.isCancelled=!0,L.postMessage({sourceName:P,targetName:C,stream:3,streamId:W}),delete E.streamSinks[W])},error(R){(0,t.assert)(R instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,L.postMessage({sourceName:P,targetName:C,stream:5,streamId:W,reason:re(R)}))},sinkCapability:(0,t.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:S.desiredSize,ready:null};v.sinkCapability.resolve(),v.ready=v.sinkCapability.promise,this.streamSinks[W]=v,new Promise(function(R){R(m(S.data,v))}).then(function(){L.postMessage({sourceName:P,targetName:C,stream:8,streamId:W,success:!0})},function(R){L.postMessage({sourceName:P,targetName:C,stream:8,streamId:W,reason:re(R)})})}_processStreamMessage(S){const W=S.streamId,P=this.sourceName,C=S.sourceName,L=this.comObj,E=this.streamControllers[W],m=this.streamSinks[W];switch(S.stream){case 8:S.success?E.startCall.resolve():E.startCall.reject(re(S.reason));break;case 7:S.success?E.pullCall.resolve():E.pullCall.reject(re(S.reason));break;case 6:if(!m){L.postMessage({sourceName:P,targetName:C,stream:7,streamId:W,success:!0});break}m.desiredSize<=0&&S.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=S.desiredSize,new Promise(function(v){v(m.onPull&&m.onPull())}).then(function(){L.postMessage({sourceName:P,targetName:C,stream:7,streamId:W,success:!0})},function(v){L.postMessage({sourceName:P,targetName:C,stream:7,streamId:W,reason:re(v)})});break;case 4:if((0,t.assert)(E,"enqueue should have stream controller"),E.isClosed)break;E.controller.enqueue(S.chunk);break;case 3:if((0,t.assert)(E,"close should have stream controller"),E.isClosed)break;E.isClosed=!0,E.controller.close(),this._deleteStreamController(E,W);break;case 5:(0,t.assert)(E,"error should have stream controller"),E.controller.error(re(S.reason)),this._deleteStreamController(E,W);break;case 2:S.success?E.cancelCall.resolve():E.cancelCall.reject(re(S.reason)),this._deleteStreamController(E,W);break;case 1:if(!m)break;new Promise(function(v){v(m.onCancel&&m.onCancel(re(S.reason)))}).then(function(){L.postMessage({sourceName:P,targetName:C,stream:2,streamId:W,success:!0})},function(v){L.postMessage({sourceName:P,targetName:C,stream:2,streamId:W,reason:re(v)})}),m.sinkCapability.reject(re(S.reason)),m.isCancelled=!0,delete this.streamSinks[W];break;default:throw new Error("Unexpected stream case")}}_deleteStreamController(S,W){var P=this;return _asyncToGenerator(function*(){yield Promise.allSettled([S.startCall&&S.startCall.promise,S.pullCall&&S.pullCall.promise,S.cancelCall&&S.cancelCall.promise]),delete P.streamControllers[W]})()}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(xe,q,c)=>{var x,re;Object.defineProperty(q,"__esModule",{value:!0}),q.Metadata=void 0;var t=c(1);x=new WeakMap,re=new WeakMap,q.Metadata=class _{constructor({parsedData:Q,rawData:S}){dn(this,x,void 0),dn(this,re,void 0),Vn(this,x,Q),Vn(this,re,S)}getRaw(){return Fe(this,re)}get(Q){var S;return null!=(S=Fe(this,x).get(Q))?S:null}getAll(){return(0,t.objectFromMap)(Fe(this,x))}has(Q){return Fe(this,x).has(Q)}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.OptionalContentConfig=void 0;var t=c(1);class _{constructor(te,Q){this.visible=!0,this.name=te,this.intent=Q}}q.OptionalContentConfig=class x{constructor(te){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==te){this.name=te.name,this.creator=te.creator,this._order=te.order;for(const Q of te.groups)this._groups.set(Q.id,new _(Q.name,Q.intent));if("OFF"===te.baseState)for(const Q of this._groups)Q.visible=!1;for(const Q of te.on)this._groups.get(Q).visible=!0;for(const Q of te.off)this._groups.get(Q).visible=!1}}_evaluateVisibilityExpression(te){const Q=te.length;if(Q<2)return!0;const S=te[0];for(let W=1;W<Q;W++){const P=te[W];let C;if(Array.isArray(P))C=this._evaluateVisibilityExpression(P);else{if(!this._groups.has(P))return(0,t.warn)(`Optional content group not found: ${P}`),!0;C=this._groups.get(P).visible}switch(S){case"And":if(!C)return!1;break;case"Or":if(C)return!0;break;case"Not":return!C;default:return!0}}return"And"===S}isVisible(te){if(0===this._groups.size)return!0;
1if(!te)return(0,t.warn)("Optional content group not defined."),!0;if("OCG"===te.type)return this._groups.has(te.id)?this._groups.get(te.id).visible:((0,t.warn)(`Optional content group not found: ${te.id}`),!0);if("OCMD"===te.type){if(te.expression)return this._evaluateVisibilityExpression(te.expression);if(!te.policy||"AnyOn"===te.policy){for(const Q of te.ids){if(!this._groups.has(Q))return(0,t.warn)(`Optional content group not found: ${Q}`),!0;if(this._groups.get(Q).visible)return!0}return!1}if("AllOn"===te.policy){for(const Q of te.ids){if(!this._groups.has(Q))return(0,t.warn)(`Optional content group not found: ${Q}`),!0;if(!this._groups.get(Q).visible)return!1}return!0}if("AnyOff"===te.policy){for(const Q of te.ids){if(!this._groups.has(Q))return(0,t.warn)(`Optional content group not found: ${Q}`),!0;if(!this._groups.get(Q).visible)return!0}return!1}if("AllOff"===te.policy){for(const Q of te.ids){if(!this._groups.has(Q))return(0,t.warn)(`Optional content group not found: ${Q}`),!0;if(this._groups.get(Q).visible)return!1}return!0}return(0,t.warn)(`Unknown optional content policy ${te.policy}.`),!0}return(0,t.warn)(`Unknown group type ${te.type}.`),!0}setVisibility(te,Q=!0){this._groups.has(te)?this._groups.get(te).visible=!!Q:(0,t.warn)(`Optional content group not found: ${te}`)}getOrder(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){return this._groups.size>0?(0,t.objectFromMap)(this._groups):null}getGroup(te){return this._groups.get(te)||null}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFDataTransportStream=void 0;var t=c(1),_=c(5);q.PDFDataTransportStream=class x{constructor(S,W){(0,t.assert)(W,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=S.progressiveDone||!1,this._contentDispositionFilename=S.contentDispositionFilename||null;const P=S.initialData;if((null==P?void 0:P.length)>0){const C=new Uint8Array(P).buffer;this._queuedChunks.push(C)}this._pdfDataRangeTransport=W,this._isStreamingSupported=!S.disableStream,this._isRangeSupported=!S.disableRange,this._contentLength=S.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((C,L)=>{this._onReceiveData({begin:C,chunk:L})}),this._pdfDataRangeTransport.addProgressListener((C,L)=>{this._onProgress({loaded:C,total:L})}),this._pdfDataRangeTransport.addProgressiveReadListener(C=>{this._onReceiveData({chunk:C})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(S){const W=new Uint8Array(S.chunk).buffer;if(void 0===S.begin)this._fullRequestReader?this._fullRequestReader._enqueue(W):this._queuedChunks.push(W);else{const P=this._rangeReaders.some(function(C){return C._begin===S.begin&&(C._enqueue(W),!0)});(0,t.assert)(P,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var S,W;return null!=(W=null==(S=this._fullRequestReader)?void 0:S._loaded)?W:0}_onProgress(S){if(void 0===S.total){const W=this._rangeReaders[0];(null==W?void 0:W.onProgress)&&W.onProgress({loaded:S.loaded})}else{const W=this._fullRequestReader;(null==W?void 0:W.onProgress)&&W.onProgress({loaded:S.loaded,total:S.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(S){const W=this._rangeReaders.indexOf(S);W>=0&&this._rangeReaders.splice(W,1)}getFullReader(){(0,t.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const S=this._queuedChunks;return this._queuedChunks=null,new re(this,S,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(S,W){if(W<=this._progressiveDataLength)return null;const P=new te(this,S,W);return this._pdfDataRangeTransport.requestDataRange(S,W),this._rangeReaders.push(P),P}cancelAllRequests(S){this._fullRequestReader&&this._fullRequestReader.cancel(S);for(const W of this._rangeReaders.slice(0))W.cancel(S);this._pdfDataRangeTransport.abort()}};class re{constructor(S,W,P=!1,C=null){this._stream=S,this._done=P||!1,this._filename=(0,_.isPdfFile)(C)?C:null,this._queuedChunks=W||[],this._loaded=0;for(const L of this._queuedChunks)this._loaded+=L.byteLength;
vendor: 4,410 bytes, line 1
1this._requests=[],this._headersReady=Promise.resolve(),S._fullRequestReader=this,this.onProgress=null}_enqueue(S){this._done||(this._requests.length>0?this._requests.shift().resolve({value:S,done:!1}):this._queuedChunks.push(S),this._loaded+=S.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var S=this;return _asyncToGenerator(function*(){if(S._queuedChunks.length>0)return{value:S._queuedChunks.shift(),done:!1};if(S._done)return{value:void 0,done:!0};const W=(0,t.createPromiseCapability)();return S._requests.push(W),W.promise})()}cancel(S){this._done=!0;for(const W of this._requests)W.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class te{constructor(S,W,P){this._stream=S,this._begin=W,this._end=P,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(S){if(!this._done){if(0===this._requests.length)this._queuedChunk=S;else{this._requests.shift().resolve({value:S,done:!1});for(const P of this._requests)P.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var S=this;return _asyncToGenerator(function*(){if(S._queuedChunk){const P=S._queuedChunk;return S._queuedChunk=null,{value:P,done:!1}}if(S._done)return{value:void 0,done:!0};const W=(0,t.createPromiseCapability)();return S._requests.push(W),W.promise})()}cancel(S){this._done=!0;for(const W of this._requests)W.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(xe,q)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.XfaText=void 0;class c{static textContent(_){const x=[],re={items:x,styles:Object.create(null)};return function te(Q){var P;if(!Q)return;let S=null;const W=Q.name;if("#text"===W)S=Q.value;else{if(!c.shouldBuildText(W))return;(null==(P=null==Q?void 0:Q.attributes)?void 0:P.textContent)?S=Q.attributes.textContent:Q.value&&(S=Q.value)}if(null!==S&&x.push({str:S}),Q.children)for(const C of Q.children)te(C)}(_),re}static shouldBuildText(_){return!("textarea"===_||"input"===_||"option"===_||"select"===_)}}q.XfaText=c},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.NodeStandardFontDataFactory=q.NodeCanvasFactory=q.NodeCMapReaderFactory=void 0;var t=c(6);const _=function(Q){return new Promise((S,W)=>{__webpack_require__(2339).readFile(Q,(C,L)=>{!C&&L?S(new Uint8Array(L)):W(new Error(C))})})};q.NodeCanvasFactory=class x extends t.BaseCanvasFactory{_createCanvas(S,W){return __webpack_require__(4069).createCanvas(S,W)}},q.NodeCMapReaderFactory=class re extends t.BaseCMapReaderFactory{_fetchData(S,W){return _(S).then(P=>({cMapData:P,compressionType:W}))}},q.NodeStandardFontDataFactory=class te extends t.BaseStandardFontDataFactory{_fetchData(S){return _(S)}}},(xe,q,c)=>{var ge,eE;Object.defineProperty(q,"__esModule",{value:!0}),q.AnnotationLayer=void 0;var t=c(1),_=c(5),x=c(8),re=c(21),te=c(22);const Q=1e3,S=new WeakSet;function W(b){return{width:b[2]-b[0],height:b[3]-b[1]}}class P{static create(p){switch(p.data.annotationType){case t.AnnotationType.LINK:return new L(p);case t.AnnotationType.TEXT:return new E(p);case t.AnnotationType.WIDGET:switch(p.data.fieldType){case"Tx":return new v(p);case"Btn":return p.data.radioButton?new j(p):p.data.checkBox?new R(p):new M(p);case"Ch":return new V(p)}return new m(p);case t.AnnotationType.POPUP:return new f(p);case t.AnnotationType.FREETEXT:return new Z(p);case t.AnnotationType.LINE:return new G(p);case t.AnnotationType.SQUARE:return new $(p);case t.AnnotationType.CIRCLE:return new se(p);case t.AnnotationType.POLYLINE:return new y(p);case t.AnnotationType.CARET:return new I(p);case t.AnnotationType.INK:return new H(p);case t.AnnotationType.POLYGON:return new k(p);case t.AnnotationType.HIGHLIGHT:return new ee(p);case t.AnnotationType.UNDERLINE:return new z(p);case t.AnnotationType.SQUIGGLY:return new oe(p);case t.AnnotationType.STRIKEOUT:return new ve(p);case t.AnnotationType.STAMP:return new We(p);case t.AnnotationType.FILEATTACHMENT:return new Re(p);default:return new C(p)}}}class C{constructor(p,{isRenderable:A=!1,ignoreBorder:N=!1,createQuadrilaterals:K=!1}
1={}){this.isRenderable=A,this.data=p.data,this.layer=p.layer,this.page=p.page,this.viewport=p.viewport,this.linkService=p.linkService,this.downloadManager=p.downloadManager,this.imageResourcesPath=p.imageResourcesPath,this.renderForms=p.renderForms,this.svgFactory=p.svgFactory,this.annotationStorage=p.annotationStorage,this.enableScripting=p.enableScripting,this.hasJSActions=p.hasJSActions,this._fieldObjects=p.fieldObjects,this._mouseState=p.mouseState,A&&(this.container=this._createContainer(N)),K&&(this.quadrilaterals=this._createQuadrilaterals(N))}_createContainer(p=!1){const A=this.data,N=this.page,K=this.viewport,J=document.createElement("section");let{width:ie,height:he}=W(A.rect);J.setAttribute("data-annotation-id",A.id);const Oe=t.Util.normalizeRect([A.rect[0],N.view[3]-A.rect[1]+N.view[1],A.rect[2],N.view[3]-A.rect[3]+N.view[1]]);if(A.hasOwnCanvas){const Ne=K.transform.slice(),[Ye,Qe]=t.Util.singularValueDecompose2dScale(Ne);ie=Math.ceil(ie*Ye),he=Math.ceil(he*Qe),Oe[0]*=Ye,Oe[1]*=Qe;for(let Ct=0;Ct<4;Ct++)Ne[Ct]=Math.sign(Ne[Ct]);J.style.transform=`matrix(${Ne.join(",")})`}else J.style.transform=`matrix(${K.transform.join(",")})`;if(J.style.transformOrigin=`${-Oe[0]}px ${-Oe[1]}px`,!p&&A.borderStyle.width>0){J.style.borderWidth=`${A.borderStyle.width}px`,A.borderStyle.style!==t.AnnotationBorderStyleType.UNDERLINE&&(ie-=2*A.borderStyle.width,he-=2*A.borderStyle.width);const Ne=A.borderStyle.horizontalCornerRadius,Ye=A.borderStyle.verticalCornerRadius;switch((Ne>0||Ye>0)&&(J.style.borderRadius=`${Ne}px / ${Ye}px`),A.borderStyle.style){case t.AnnotationBorderStyleType.SOLID:J.style.borderStyle="solid";break;case t.AnnotationBorderStyleType.DASHED:J.style.borderStyle="dashed";break;case t.AnnotationBorderStyleType.BEVELED:(0,t.warn)("Unimplemented border style: beveled");break;case t.AnnotationBorderStyleType.INSET:(0,t.warn)("Unimplemented border style: inset");break;case t.AnnotationBorderStyleType.UNDERLINE:J.style.borderBottomStyle="solid"}A.borderColor||A.color?J.style.borderColor=t.Util.makeHexColor(0|A.color[0],0|A.color[1],0|A.color[2]):J.style.borderWidth=0}return J.style.left=`${Oe[0]}px`,J.style.top=`${Oe[1]}px`,A.hasOwnCanvas?J.style.width=J.style.height="auto":(J.style.width=`${ie}px`,J.style.height=`${he}px`),J}get _commonActions(){const p=(A,N,K)=>{const J=K.detail[A];K.target.style[N]=re.ColorConverters[`${J[0]}_HTML`](J.slice(1))};return(0,t.shadow)(this,"_commonActions",{display:A=>{const N=A.detail.display%2==1;A.target.style.visibility=N?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:N,print:0===A.detail.display||3===A.detail.display})},print:A=>{this.annotationStorage.setValue(this.data.id,{print:A.detail.print})},hidden:A=>{A.target.style.visibility=A.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:A.detail.hidden})},focus:A=>{setTimeout(()=>A.target.focus({preventScroll:!1}),0)},userName:A=>{A.target.title=A.detail.userName},readonly:A=>{A.detail.readonly?A.target.setAttribute("readonly",""):A.target.removeAttribute("readonly")},required:A=>{A.detail.required?A.target.setAttribute("required",""):A.target.removeAttribute("required")},bgColor:A=>{p("bgColor","backgroundColor",A)},fillColor:A=>{p("fillColor","backgroundColor",A)},fgColor:A=>{p("fgColor","color",A)},textColor:A=>{p("textColor","color",A)},borderColor:A=>{p("borderColor","borderColor",A)},strokeColor:A=>{p("strokeColor","borderColor",A)}})}_dispatchEventFromSandbox(p,A){const N=this._commonActions;for(const K of Object.keys(A.detail)){const J=p[K]||N[K];J&&J(A)}}_setDefaultPropertiesFromJS(p){if(!this.enableScripting)return;const A=this.annotationStorage.getRawValue(this.data.id);if(!A)return;const N=this._commonActions;for(const[K,J]of Object.entries(A)){const ie=N[K];ie&&(ie({detail:J,target:p}),delete A[K])}}_createQuadrilaterals(p=!1){if(!this.data.quadPoints)return null;const A=[],N=this.data.rect;for(const K of this.data.quadPoints)this.data.rect=[K[2].x,K[2].y,K[1].x,K[1].y],A.push(this._createContainer(p));return this.data.rect=N,A}_createPopup(p,A){let N=this.container;this.quadrilaterals&&(p=p||this.quadrilaterals,N=this.quadrilaterals[0]),p||((p=document.createElement("div")).style.height=N.style.height,p.style.width=N.style.width,N.appendChild(p));const J=new T({container:N,trigger:p,color:A.color,titleObj:A.titleObj,modificationDate:A.modificationDate,contentsObj:A.contentsObj,richText:A.richText,hideWrapper:!0}).render();J.style.left=N.style.width,N.appendChild(J)}_renderQuadrilaterals(p){for(const A of this.quadrilaterals)A.className=p;return this.quadrilaterals}render(){(0,t.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(p,A=null){const N=[];if(this._fieldObjects){const K=this._fieldObjects[p];
1if(K)for(const{page:J,id:ie,exportValues:he}of K){if(-1===J||ie===A)continue;const Oe="string"==typeof he?he:null,Ne=document.getElementById(ie);!Ne||S.has(Ne)?N.push({id:ie,exportValue:Oe,domElement:Ne}):(0,t.warn)(`_getElementsByName - element not allowed: ${ie}`)}return N}for(const K of document.getElementsByName(p)){const{id:J,exportValue:ie}=K;J!==A&&(!S.has(K)||N.push({id:J,exportValue:ie,domElement:K}))}return N}static get platform(){const p="undefined"!=typeof navigator?navigator.platform:"";return(0,t.shadow)(this,"platform",{isWin:p.includes("Win"),isMac:p.includes("Mac")})}}class L extends C{constructor(p,A=null){super(p,{isRenderable:!!(p.data.url||p.data.dest||p.data.action||p.data.isTooltipOnly||p.data.resetForm||p.data.actions&&(p.data.actions.Action||p.data.actions["Mouse Up"]||p.data.actions["Mouse Down"])),ignoreBorder:!!(null==A?void 0:A.ignoreBorder),createQuadrilaterals:!0})}render(){const{data:p,linkService:A}=this,N=document.createElement("a");if(p.url)A.addLinkAttributes(N,p.url,p.newWindow);else if(p.action)this._bindNamedAction(N,p.action);else if(p.dest)this._bindLink(N,p.dest);else{let K=!1;p.actions&&(p.actions.Action||p.actions["Mouse Up"]||p.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(K=!0,this._bindJSAction(N,p)),p.resetForm?this._bindResetFormAction(N,p.resetForm):K||this._bindLink(N,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((K,J)=>{const ie=0===J?N:N.cloneNode();return K.appendChild(ie),K}):(this.container.className="linkAnnotation",this.container.appendChild(N),this.container)}_bindLink(p,A){p.href=this.linkService.getDestinationHash(A),p.onclick=()=>(A&&this.linkService.goToDestination(A),!1),(A||""===A)&&(p.className="internalLink")}_bindNamedAction(p,A){p.href=this.linkService.getAnchorUrl(""),p.onclick=()=>(this.linkService.executeNamedAction(A),!1),p.className="internalLink"}_bindJSAction(p,A){p.href=this.linkService.getAnchorUrl("");const N=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const K of Object.keys(A.actions)){const J=N.get(K);!J||(p[J]=()=>{var ie;return null==(ie=this.linkService.eventBus)||ie.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A.id,name:K}}),!1})}p.onclick||(p.onclick=()=>!1),p.className="internalLink"}_bindResetFormAction(p,A){const N=p.onclick;if(N||(p.href=this.linkService.getAnchorUrl("")),p.className="internalLink",!this._fieldObjects)return(0,t.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(N||(p.onclick=()=>!1));p.onclick=()=>{var Ye;N&&N();const{fields:K,refs:J,include:ie}=A,he=[];if(0!==K.length||0!==J.length){const Qe=new Set(J);for(const Ct of K){const Ot=this._fieldObjects[Ct]||[];for(const{id:ln}of Ot)Qe.add(ln)}for(const Ct of Object.values(this._fieldObjects))for(const Ot of Ct)Qe.has(Ot.id)===ie&&he.push(Ot)}else for(const Qe of Object.values(this._fieldObjects))he.push(...Qe);const Oe=this.annotationStorage,Ne=[];for(const Qe of he){const{id:Ct}=Qe;switch(Ne.push(Ct),Qe.type){case"text":case"combobox":case"listbox":Oe.setValue(Ct,{value:Qe.defaultValue||""});break;case"checkbox":case"radiobutton":Oe.setValue(Ct,{value:Qe.defaultValue===Qe.exportValues});break;default:continue}const Ot=document.getElementById(Ct);!Ot||!S.has(Ot)||Ot.dispatchEvent(new Event("resetform"))}return this.enableScripting&&(null==(Ye=this.linkService.eventBus)||Ye.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Ne,name:"ResetForm"}})),!1}}}class E extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str))})}render(){this.container.className="textAnnotation";const p=document.createElement("img");return p.style.height=this.container.style.height,p.style.width=this.container.style.width,p.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",p.alt="[{{type}} Annotation]",p.dataset.l10nId="text_annotation_type",p.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(p,this.data),this.container.appendChild(p),this.container}}
1class m extends C{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(p){const{isWin:A,isMac:N}=C.platform;return A&&p.ctrlKey||N&&p.metaKey}_setEventListener(p,A,N,K){A.includes("mouse")?p.addEventListener(A,J=>{var ie;null==(ie=this.linkService.eventBus)||ie.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:N,value:K(J),shift:J.shiftKey,modifier:this._getKeyModifier(J)}})}):p.addEventListener(A,J=>{var ie;null==(ie=this.linkService.eventBus)||ie.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:N,value:K(J)}})})}_setEventListeners(p,A,N){var K;for(const[J,ie]of A)("Action"===ie||(null==(K=this.data.actions)?void 0:K[ie]))&&this._setEventListener(p,J,ie,N)}_setBackgroundColor(p){const A=this.data.backgroundColor||null;p.style.backgroundColor=null===A?"transparent":t.Util.makeHexColor(A[0],A[1],A[2])}}class v extends m{constructor(p){super(p,{isRenderable:p.renderForms||!p.data.hasAppearance&&!!p.data.fieldValue})}setPropertyOnSiblings(p,A,N,K){const J=this.annotationStorage;
1for(const ie of this._getElementsByName(p.name,p.id))ie.domElement&&(ie.domElement[A]=N),J.setValue(ie.id,{[K]:N})}render(){var K;const p=this.annotationStorage,A=this.data.id;this.container.className="textWidgetAnnotation";let N=null;if(this.renderForms){const J=p.getValue(A,{value:this.data.fieldValue}),ie=J.formattedValue||J.value||"",he={userValue:null,formattedValue:null,valueOnFocus:""};this.data.multiLine?(N=document.createElement("textarea"),N.textContent=ie):(N=document.createElement("input"),N.type="text",N.setAttribute("value",ie)),S.add(N),N.disabled=this.data.readOnly,N.name=this.data.fieldName,N.tabIndex=Q,he.userValue=ie,N.setAttribute("id",A),N.addEventListener("input",Ne=>{p.setValue(A,{value:Ne.target.value}),this.setPropertyOnSiblings(N,"value",Ne.target.value,"value")}),N.addEventListener("resetform",Ne=>{var Qe;const Ye=null!=(Qe=this.data.defaultFieldValue)?Qe:"";N.value=he.userValue=Ye,he.formattedValue=null});let Oe=Ne=>{const{formattedValue:Ye}=he;null!=Ye&&(Ne.target.value=Ye),Ne.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){N.addEventListener("focus",Ye=>{he.userValue&&(Ye.target.value=he.userValue),he.valueOnFocus=Ye.target.value}),N.addEventListener("updatefromsandbox",Ye=>{this._dispatchEventFromSandbox({value(Ct){var Ot;he.userValue=null!=(Ot=Ct.detail.value)?Ot:"",p.setValue(A,{value:he.userValue.toString()}),Ct.target.value=he.userValue},formattedValue(Ct){const{formattedValue:Ot}=Ct.detail;he.formattedValue=Ot,null!=Ot&&Ct.target!==document.activeElement&&(Ct.target.value=Ot),p.setValue(A,{formattedValue:Ot})},selRange(Ct){Ct.target.setSelectionRange(...Ct.detail.selRange)}},Ye)}),N.addEventListener("keydown",Ye=>{var Ot;let Qe=-1;if("Escape"===Ye.key?Qe=0:"Enter"===Ye.key?Qe=2:"Tab"===Ye.key&&(Qe=3),-1===Qe)return;const{value:Ct}=Ye.target;he.valueOnFocus!==Ct&&(he.userValue=Ct,null==(Ot=this.linkService.eventBus)||Ot.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Ct,willCommit:!0,commitKey:Qe,selStart:Ye.target.selectionStart,selEnd:Ye.target.selectionEnd}}))});const Ne=Oe;Oe=null,N.addEventListener("blur",Ye=>{var Ct;const{value:Qe}=Ye.target;he.userValue=Qe,this._mouseState.isDown&&he.valueOnFocus!==Qe&&(null==(Ct=this.linkService.eventBus)||Ct.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Qe,willCommit:!0,commitKey:1,selStart:Ye.target.selectionStart,selEnd:Ye.target.selectionEnd}})),Ne(Ye)}),(null==(K=this.data.actions)?void 0:K.Keystroke)&&N.addEventListener("beforeinput",Ye=>{var it;const{data:Qe,target:Ct}=Ye,{value:Ot,selectionStart:ln,selectionEnd:Lt}=Ct;let Jt=ln,Rt=Lt;switch(Ye.inputType){case"deleteWordBackward":{const _t=Ot.substring(0,ln).match(/\w*[^\w]*$/);_t&&(Jt-=_t[0].length);break}
vendor: 4,171 bytes, line 1
1case"deleteWordForward":{const _t=Ot.substring(ln).match(/^[^\w]*\w*/);_t&&(Rt+=_t[0].length);break}case"deleteContentBackward":ln===Lt&&(Jt-=1);break;case"deleteContentForward":ln===Lt&&(Rt+=1)}Ye.preventDefault(),null==(it=this.linkService.eventBus)||it.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Ot,change:Qe||"",willCommit:!1,selStart:Jt,selEnd:Rt}})}),this._setEventListeners(N,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ye=>Ye.target.value)}if(Oe&&N.addEventListener("blur",Oe),null!==this.data.maxLen&&(N.maxLength=this.data.maxLen),this.data.comb){const Ye=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;N.classList.add("comb"),N.style.letterSpacing=`calc(${Ye}px - 1ch)`}}else N=document.createElement("div"),N.textContent=this.data.fieldValue,N.style.verticalAlign="middle",N.style.display="table-cell";return this._setTextStyle(N),this._setBackgroundColor(N),this._setDefaultPropertiesFromJS(N),this.container.appendChild(N),this.container}_setTextStyle(p){const{fontSize:N,fontColor:K}=this.data.defaultAppearanceData,J=p.style;N&&(J.fontSize=`${N}px`),J.color=t.Util.makeHexColor(K[0],K[1],K[2]),null!==this.data.textAlignment&&(J.textAlign=["left","center","right"][this.data.textAlignment])}}class R extends m{constructor(p){super(p,{isRenderable:p.renderForms})}render(){const p=this.annotationStorage,A=this.data,N=A.id;let K=p.getValue(N,{value:A.exportValue===A.fieldValue}).value;"string"==typeof K&&(K="Off"!==K,p.setValue(N,{value:K})),this.container.className="buttonWidgetAnnotation checkBox";const J=document.createElement("input");return S.add(J),J.disabled=A.readOnly,J.type="checkbox",J.name=A.fieldName,K&&J.setAttribute("checked",!0),J.setAttribute("id",N),J.setAttribute("exportValue",A.exportValue),J.tabIndex=Q,J.addEventListener("change",ie=>{const{name:he,checked:Oe}=ie.target;for(const Ne of this._getElementsByName(he,N)){const Ye=Oe&&Ne.exportValue===A.exportValue;Ne.domElement&&(Ne.domElement.checked=Ye),p.setValue(Ne.id,{value:Ye})}p.setValue(N,{value:Oe})}),J.addEventListener("resetform",ie=>{ie.target.checked=(A.defaultFieldValue||"Off")===A.exportValue}),this.enableScripting&&this.hasJSActions&&(J.addEventListener("updatefromsandbox",ie=>{this._dispatchEventFromSandbox({value(Oe){Oe.target.checked="Off"!==Oe.detail.value,p.setValue(N,{value:Oe.target.checked})}},ie)}),this._setEventListeners(J,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ie=>ie.target.checked)),this._setBackgroundColor(J),this._setDefaultPropertiesFromJS(J),this.container.appendChild(J),this.container}}class j extends m{constructor(p){super(p,{isRenderable:p.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const p=this.annotationStorage,A=this.data,N=A.id;let K=p.getValue(N,{value:A.fieldValue===A.buttonValue}).value;"string"==typeof K&&(K=K!==A.buttonValue,p.setValue(N,{value:K}));const J=document.createElement("input");if(S.add(J),J.disabled=A.readOnly,J.type="radio",J.name=A.fieldName,K&&J.setAttribute("checked",!0),J.setAttribute("id",N),J.tabIndex=Q,J.addEventListener("change",ie=>{const{name:he,checked:Oe}=ie.target;for(const Ne of this._getElementsByName(he,N))p.setValue(Ne.id,{value:!1});p.setValue(N,{value:Oe})}),J.addEventListener("resetform",ie=>{const he=A.defaultFieldValue;ie.target.checked=null!=he&&he===A.buttonValue}),this.enableScripting&&this.hasJSActions){const ie=A.buttonValue;J.addEventListener("updatefromsandbox",he=>{this._dispatchEventFromSandbox({value:Ne=>{const Ye=ie===Ne.detail.value;for(const Qe of this._getElementsByName(Ne.target.name)){const Ct=Ye&&Qe.id===N;Qe.domElement&&(Qe.domElement.checked=Ct),p.setValue(Qe.id,{value:Ct})}}},he)}),this._setEventListeners(J,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],he=>he.target.checked)}
1return this._setBackgroundColor(J),this._setDefaultPropertiesFromJS(J),this.container.appendChild(J),this.container}}class M extends L{constructor(p){super(p,{ignoreBorder:p.data.hasAppearance})}render(){const p=super.render();return p.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(p.title=this.data.alternativeText),this._setDefaultPropertiesFromJS(p),p}}class V extends m{constructor(p){super(p,{isRenderable:p.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const p=this.annotationStorage,A=this.data.id,N=p.getValue(A,{value:this.data.fieldValue});let{fontSize:K}=this.data.defaultAppearanceData;K||(K=9);const J=`calc(${K}px * var(--zoom-factor))`,ie=document.createElement("select");S.add(ie),ie.disabled=this.data.readOnly,ie.name=this.data.fieldName,ie.setAttribute("id",A),ie.tabIndex=Q,ie.style.fontSize=`${K}px`,this.data.combo||(ie.size=this.data.options.length,this.data.multiSelect&&(ie.multiple=!0)),ie.addEventListener("resetform",Ne=>{const Ye=this.data.defaultFieldValue;for(const Qe of ie.options)Qe.selected=Qe.value===Ye});for(const Ne of this.data.options){const Ye=document.createElement("option");Ye.textContent=Ne.displayValue,Ye.value=Ne.exportValue,this.data.combo&&(Ye.style.fontSize=J),N.value.includes(Ne.exportValue)&&Ye.setAttribute("selected",!0),ie.appendChild(Ye)}const he=(Ne,Ye)=>{const Qe=Ye?"value":"textContent",Ct=Ne.target.options;return Ne.target.multiple?Array.prototype.filter.call(Ct,Ot=>Ot.selected).map(Ot=>Ot[Qe]):-1===Ct.selectedIndex?null:Ct[Ct.selectedIndex][Qe]},Oe=Ne=>Array.prototype.map.call(Ne.target.options,Qe=>({displayValue:Qe.textContent,exportValue:Qe.value}));return this.enableScripting&&this.hasJSActions?(ie.addEventListener("updatefromsandbox",Ne=>{this._dispatchEventFromSandbox({value(Qe){const Ct=Qe.detail.value,Ot=new Set(Array.isArray(Ct)?Ct:[Ct]);for(const ln of ie.options)ln.selected=Ot.has(ln.value);p.setValue(A,{value:he(Qe,!0)})},multipleSelection(Qe){ie.multiple=!0},remove(Qe){const Ct=ie.options,Ot=Qe.detail.remove;Ct[Ot].selected=!1,ie.remove(Ot),Ct.length>0&&-1===Array.prototype.findIndex.call(Ct,Lt=>Lt.selected)&&(Ct[0].selected=!0),p.setValue(A,{value:he(Qe,!0),items:Oe(Qe)})},clear(Qe){for(;0!==ie.length;)ie.remove(0);p.setValue(A,{value:null,items:[]})},insert(Qe){const{index:Ct,displayValue:Ot,exportValue:ln}=Qe.detail.insert,Lt=document.createElement("option");Lt.textContent=Ot,Lt.value=ln,ie.insertBefore(Lt,ie.children[Ct]),p.setValue(A,{value:he(Qe,!0),items:Oe(Qe)})},items(Qe){const{items:Ct}=Qe.detail;for(;0!==ie.length;)ie.remove(0);for(const Ot of Ct){const{displayValue:ln,exportValue:Lt}=Ot,Jt=document.createElement("option");Jt.textContent=ln,Jt.value=Lt,ie.appendChild(Jt)}ie.options.length>0&&(ie.options[0].selected=!0),p.setValue(A,{value:he(Qe,!0),items:Oe(Qe)})},indices(Qe){const Ct=new Set(Qe.detail.indices);for(const Ot of Qe.target.options)Ot.selected=Ct.has(Ot.index);p.setValue(A,{value:he(Qe,!0)})},editable(Qe){Qe.target.disabled=!Qe.detail.editable}},Ne)}),ie.addEventListener("input",Ne=>{var Ct;const Ye=he(Ne,!0),Qe=he(Ne,!1);p.setValue(A,{value:Ye}),null==(Ct=this.linkService.eventBus)||Ct.dispatch("dispatcheventinsandbox",{source:this,detail:{id:A,name:"Keystroke",value:Qe,changeEx:Ye,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(ie,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],Ne=>Ne.target.checked)):ie.addEventListener("input",function(Ne){p.setValue(A,{value:he(Ne,!0)})}),this._setBackgroundColor(ie),this._setDefaultPropertiesFromJS(ie),this.container.appendChild(ie),this.container}}class f extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!((null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str))})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const N=this.layer.querySelectorAll(`[data-annotation-id="${this.data.parentId}"]`);if(0===N.length)return this.container;const K=new T({container:this.container,trigger:Array.from(N),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),J=this.page,ie=t.Util.normalizeRect([this.data.parentRect[0],J.view[3]-this.data.parentRect[1]+J.view[
vendor: 1,055 bytes, line 1
11],this.data.parentRect[2],J.view[3]-this.data.parentRect[3]+J.view[1]]),he=ie[0]+this.data.parentRect[2]-this.data.parentRect[0],Oe=ie[1];return this.container.style.transformOrigin=`${-he}px ${-Oe}px`,this.container.style.left=`${he}px`,this.container.style.top=`${Oe}px`,this.container.appendChild(K.render()),this.container}}class T{constructor(p){this.container=p.container,this.trigger=p.trigger,this.color=p.color,this.titleObj=p.titleObj,this.modificationDate=p.modificationDate,this.contentsObj=p.contentsObj,this.richText=p.richText,this.hideWrapper=p.hideWrapper||!1,this.pinned=!1}render(){var he,Oe;const A=document.createElement("div");A.className="popupWrapper",this.hideElement=this.hideWrapper?A:this.container,this.hideElement.hidden=!0;const N=document.createElement("div");N.className="popup";const K=this.color;K&&(N.style.backgroundColor=t.Util.makeHexColor(0|.7*(255-K[0])+K[0],0|.7*(255-K[1])+K[1],0|.7*(255-K[2])+K[2]));const J=document.createElement("h1");J.dir=this.titleObj.dir,J.textContent=this.titleObj.str,N.appendChild(J);
1const ie=_.PDFDateString.toDateObject(this.modificationDate);if(ie){const Ne=document.createElement("span");Ne.className="popupDate",Ne.textContent="{{date}}, {{time}}",Ne.dataset.l10nId="annotation_date_string",Ne.dataset.l10nArgs=JSON.stringify({date:ie.toLocaleDateString(),time:ie.toLocaleTimeString()}),N.appendChild(Ne)}if(!(null==(he=this.richText)?void 0:he.str)||(null==(Oe=this.contentsObj)?void 0:Oe.str)&&this.contentsObj.str!==this.richText.str){const Ne=this._formatContents(this.contentsObj);N.appendChild(Ne)}else te.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:N}),N.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const Ne of this.trigger)Ne.addEventListener("click",this._toggle.bind(this)),Ne.addEventListener("mouseover",this._show.bind(this,!1)),Ne.addEventListener("mouseout",this._hide.bind(this,!1));return N.addEventListener("click",this._hide.bind(this,!0)),A.appendChild(N),A}_formatContents({str:p,dir:A}){const N=document.createElement("p");N.className="popupContent",N.dir=A;const K=p.split(/(?:\r\n?|\n)/);for(let J=0,ie=K.length;J<ie;++J)N.appendChild(document.createTextNode(K[J])),J<ie-1&&N.appendChild(document.createElement("br"));return N}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(p=!1){p&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(p=!0){p&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}class Z extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0})}render(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class G extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const p=this.data,{width:A,height:N}=W(p.rect),K=this.svgFactory.create(A,N),J=this.svgFactory.createElement("svg:line");return J.setAttribute("x1",p.rect[2]-p.lineCoordinates[0]),J.setAttribute("y1",p.rect[3]-p.lineCoordinates[1]),J.setAttribute("x2",p.rect[2]-p.lineCoordinates[2]),J.setAttribute("y2",p.rect[3]-p.lineCoordinates[3]),J.setAttribute("stroke-width",p.borderStyle.width||1),J.setAttribute("stroke","transparent"),J.setAttribute("fill","transparent"),K.appendChild(J),this.container.append(K),this._createPopup(J,p),this.container}}class $ extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const p=this.data,{width:A,height:N}=W(p.rect),K=this.svgFactory.create(A,N),J=p.borderStyle.width,ie=this.svgFactory.createElement("svg:rect");return ie.setAttribute("x",J/2),ie.setAttribute("y",J/2),ie.setAttribute("width",A-J),ie.setAttribute("height",N-J),ie.setAttribute("stroke-width",J||1),ie.setAttribute("stroke","transparent"),ie.setAttribute("fill","transparent"),K.appendChild(ie),this.container.append(K),this._createPopup(ie,p),this.container}}class se extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const p=this.data,{width:A,height:N}=W(p.rect),K=this.svgFactory.create(A,N),J=p.borderStyle.width,ie=this.svgFactory.createElement("svg:ellipse");return ie.setAttribute("cx",A/2),ie.setAttribute("cy",N/2),ie.setAttribute("rx",A/2-J/2),ie.setAttribute("ry",N/2-J/2),ie.setAttribute("stroke-width",J||1),ie.setAttribute("stroke","transparent"),ie.setAttribute("fill","transparent"),K.appendChild(ie),this.container.append(K),this._createPopup(ie,p),this.container}}
1class y extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const p=this.data,{width:A,height:N}=W(p.rect),K=this.svgFactory.create(A,N);let J=[];for(const he of p.vertices)J.push(he.x-p.rect[0]+","+(p.rect[3]-he.y));J=J.join(" ");const ie=this.svgFactory.createElement(this.svgElementName);return ie.setAttribute("points",J),ie.setAttribute("stroke-width",p.borderStyle.width||1),ie.setAttribute("stroke","transparent"),ie.setAttribute("fill","transparent"),K.appendChild(ie),this.container.append(K),this._createPopup(ie,p),this.container}}class k extends y{constructor(p){super(p),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class I extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class H extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const p=this.data,{width:A,height:N}=W(p.rect),K=this.svgFactory.create(A,N);for(const J of p.inkLists){let ie=[];for(const Oe of J)ie.push(`${Oe.x-p.rect[0]},${p.rect[3]-Oe.y}`);ie=ie.join(" ");const he=this.svgFactory.createElement(this.svgElementName);he.setAttribute("points",ie),he.setAttribute("stroke-width",p.borderStyle.width||1),he.setAttribute("stroke","transparent"),he.setAttribute("fill","transparent"),this._createPopup(he,p),K.appendChild(he)}return this.container.append(K),this.container}}class ee extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class z extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class oe extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class ve extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class We extends C{constructor(p){var N,K,J;super(p,{isRenderable:!!(p.data.hasPopup||(null==(N=p.data.titleObj)?void 0:N.str)||(null==(K=p.data.contentsObj)?void 0:K.str)||(null==(J=p.data.richText)?void 0:J.str)),ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}
1class Re extends C{constructor(p){var K;super(p,{isRenderable:!0});const{filename:A,content:N}=this.data.file;this.filename=(0,_.getFilenameFromUrl)(A),this.content=N,null==(K=this.linkService.eventBus)||K.dispatch("fileattachmentannotation",{source:this,filename:A,content:N})}render(){var A,N;this.container.className="fileAttachmentAnnotation";const p=document.createElement("div");return p.style.height=this.container.style.height,p.style.width=this.container.style.width,p.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((null==(A=this.data.titleObj)?void 0:A.str)||(null==(N=this.data.contentsObj)?void 0:N.str)||this.data.richText)&&this._createPopup(p,this.data),this.container.appendChild(p),this.container}_download(){var p;null==(p=this.downloadManager)||p.openOrDownloadData(this.container,this.content,this.filename)}}class He{static render(p){const A=[],N=[];for(const J of p.annotations){if(!J)continue;const{width:ie,height:he}=W(J.rect);if(!(ie<=0||he<=0)){if(J.annotationType===t.AnnotationType.POPUP){N.push(J);continue}A.push(J)}}N.length&&A.push(...N);const K=p.div;for(const J of A){const ie=P.create({data:J,layer:K,page:p.page,viewport:p.viewport,linkService:p.linkService,downloadManager:p.downloadManager,imageResourcesPath:p.imageResourcesPath||"",renderForms:!1!==p.renderForms,svgFactory:new _.DOMSVGFactory,annotationStorage:p.annotationStorage||new x.AnnotationStorage,enableScripting:p.enableScripting,hasJSActions:p.hasJSActions,fieldObjects:p.fieldObjects,mouseState:p.mouseState||{isDown:!1}});if(ie.isRenderable){const he=ie.render();if(J.hidden&&(he.style.visibility="hidden"),Array.isArray(he))for(const Oe of he)K.appendChild(Oe);else ie instanceof f?K.prepend(he):K.appendChild(he)}}bn(this,ge,eE).call(this,K,p.annotationCanvasMap)}static update(p){const{page:A,viewport:N,annotations:K,annotationCanvasMap:J,div:ie}=p,he=N.transform,Oe=`matrix(${he.join(",")})`;let Ne,Ye;for(const Qe of K){const Ct=ie.querySelectorAll(`[data-annotation-id="${Qe.id}"]`);if(Ct)for(const Ot of Ct)if(Qe.hasOwnCanvas){const ln=t.Util.normalizeRect([Qe.rect[0],A.view[3]-Qe.rect[1]+A.view[1],Qe.rect[2],A.view[3]-Qe.rect[3]+A.view[1]]);if(!Ye){Ne=Math.abs(he[0]||he[1]);const Rt=he.slice();for(let it=0;it<4;it++)Rt[it]=Math.sign(Rt[it]);Ye=`matrix(${Rt.join(",")})`}const Lt=ln[0]*Ne,Jt=ln[1]*Ne;Ot.style.left=`${Lt}px`,Ot.style.top=`${Jt}px`,Ot.style.transformOrigin=`${-Lt}px ${-Jt}px`,Ot.style.transform=Ye}else Ot.style.transform=Oe}bn(this,ge,eE).call(this,ie,J),ie.hidden=!1}}ge=new WeakSet,eE=function(p,A){if(A){for(const[N,K]of A){const J=p.querySelector(`[data-annotation-id="${N}"]`);if(!J)continue;const{firstChild:ie}=J;"CANVAS"===ie.nodeName?J.replaceChild(K,ie):J.insertBefore(K,ie)}A.clear()}},dn(He,ge),q.AnnotationLayer=He},(xe,q)=>{function c(_){return Math.floor(255*Math.max(0,Math.min(1,_))).toString(16).padStart(2,"0")}Object.defineProperty(q,"__esModule",{value:!0}),q.ColorConverters=void 0,q.ColorConverters=class t{static CMYK_G([x,re,te,Q]){return["G",1-Math.min(1,.3*x+.59*te+.11*re+Q)]}static G_CMYK([x]){return["CMYK",0,0,0,1-x]}static G_RGB([x]){return["RGB",x,x,x]}static G_HTML([x]){const re=c(x);return`#${re}${re}${re}`}static RGB_G([x,re,te]){return["G",.3*x+.59*re+.11*te]}static RGB_HTML([x,re,te]){return`#${c(x)}${c(re)}${c(te)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([x,re,te,Q]){return["RGB",1-Math.min(1,x+Q),1-Math.min(1,te+Q),1-Math.min(1,re+Q)]}static CMYK_HTML(x){return this.RGB_HTML(this.CMYK_RGB(x))}static RGB_CMYK([x,re,te]){const Q=1-x,S=1-re,W=1-te;return["CMYK",Q,S,W,Math.min(Q,S,W)]}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.XfaLayer=void 0;var t=c(18);q.XfaLayer=class _{static setupStorage(re,te,Q,S,W){const P=S.getValue(te,{value:null});switch(Q.name){case"textarea":if(null!==P.value&&(re.textContent=P.value),"print"===W)break;re.addEventListener("input",C=>{S.setValue(te,{value:C.target.value})});break;case"input":if("radio"===Q.attributes.type||"checkbox"===Q.attributes.type){if(P.value===Q.attributes.xfaOn?re.setAttribute("checked",!0):P.value===Q.attributes.xfaOff&&re.removeAttribute("checked"),"print"===W)break;re.addEventListener("change",C=>{S.setValue(te,{value:C.target.getAttribute(C.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==P.value&&re.setAttribute("value",P.value),"print"===W)break;re.addEventListener("input",C=>{S.setValue(te,{value:C.target.value})})}break;case"select":if(null!==P.value)for(const C of Q.children)C.attributes.value===P.value&&(C.attributes.selected=!0);re.addEventListener("input",C=>{const L=C.target.options;S.setValue(te,{value:-1===L.selectedIndex?"":L[L.selectedIndex].value})})}}static setAttributes({html:re,element:te,storage:Q=null,intent:S,linkService:W}){const{attributes:P}=te,C=re instanceof HTMLAnchorElement;"radio"===P.type&&(P.name=`${P.name}-${S}`);for(const[L,E]of Object.entries(P))if(null!=E&&"dataId"!==L)if("style"!==L)if("textContent"===L)re.textContent=E;else if("class"===L)E.length&&re.setAttribute(L,E.join(" "));else{if(C&&("href"===L||"newWindow"===L))continue;re.setAttribute(L,E)}else Object.assign(re.style,E);C&&W.addLinkAttributes(re,P.href,P.newWindow),Q&&P.dataId&&this.setupStorage(re,P.dataId,te,Q)}static render(re){var m;const te=re.annotationStorage,Q=re.linkService,S=re.xfaHtml,W=re.intent||"display",P=document.createElement(S.name);S.attributes&&this.setAttributes({html:P,element:S,intent:W,linkService:Q});const C=[[S,-1,P]],L=re.div;if(L.appendChild(P),re.viewport){const v=`matrix(${re.viewport.transform.join(",")})`;L.style.transform=v}"richText"!==W&&L.setAttribute("class","xfaLayer xfaFont");const E=[];for(;C.length>0;){const[v,R,j]=C[C.length-1];if(R+1===v.children.length){C.pop();continue}const M=v.children[++C[C.length-1][1]];if(null===M)continue;const{name:V}=M;if("#text"===V){const T=document.createTextNode(M.value);E.push(T),j.appendChild(T);continue}let f;if(f=(null==(m=null==M?void 0:M.attributes)?void 0:m.xmlns)?document.createElementNS(M.attributes.xmlns,V):document.createElement(V),j.appendChild(f),M.attributes&&this.setAttributes({html:f,element:M,storage:te,intent:W,linkService:Q}),M.children&&M.children.length>0)C.push([M,-1,f]);else if(M.value){const T=document.createTextNode(M.value);t.XfaText.shouldBuildText(V)&&E.push(T),f.appendChild(T)}}for(const v of L.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))v.setAttribute("readOnly",!0);return{textDivs:E}}static update(re){const te=`matrix(${re.viewport.transform.join(",")})`;re.div.style.transform=te,re.div.hidden=!1}}},(xe,q,c)=>
vendor: 55,287 bytes, line 1
1{Object.defineProperty(q,"__esModule",{value:!0}),q.renderTextLayer=function R(j){const M=new v({textContent:j.textContent,textContentStream:j.textContentStream,container:j.container,viewport:j.viewport,textDivs:j.textDivs,textContentItemsStr:j.textContentItemsStr,enhanceTextSelection:j.enhanceTextSelection});return M._render(j.timeout),M};var t=c(1);const x=30,te=new Map,Q=/^\s+$/g;function W(j,M,V,f){const T=document.createElement("span"),Z=j._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==M.str,hasEOL:M.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==M.str,hasEOL:M.hasEOL};j._textDivs.push(T);const G=t.Util.transform(j._viewport.transform,M.transform);let $=Math.atan2(G[1],G[0]);const se=V[M.fontName];se.vertical&&($+=Math.PI/2);const y=Math.hypot(G[2],G[3]),k=y*function S(j,M){const V=te.get(j);if(V)return V;M.save(),M.font=`30px ${j}`;const f=M.measureText("");let T=f.fontBoundingBoxAscent,Z=Math.abs(f.fontBoundingBoxDescent);if(T){M.restore();const $=T/(T+Z);return te.set(j,$),$}M.strokeStyle="red",M.clearRect(0,0,x,x),M.strokeText("g",0,0);let G=M.getImageData(0,0,x,x).data;Z=0;for(let $=G.length-1-3;$>=0;$-=4)if(G[$]>0){Z=Math.ceil($/4/x);break}M.clearRect(0,0,x,x),M.strokeText("A",0,x),G=M.getImageData(0,0,x,x).data,T=0;for(let $=0,se=G.length;$<se;$+=4)if(G[$]>0){T=x-Math.floor($/4/x);break}if(M.restore(),T){const $=T/(T+Z);return te.set(j,$),$}return te.set(j,.8),.8}(se.fontFamily,f);let I,H;0===$?(I=G[4],H=G[5]-k):(I=G[4]+k*Math.sin($),H=G[5]-k*Math.cos($)),T.style.left=`${I}px`,T.style.top=`${H}px`,T.style.fontSize=`${y}px`,T.style.fontFamily=se.fontFamily,T.setAttribute("role","presentation"),T.textContent=M.str,T.dir=M.dir,j._fontInspectorEnabled&&(T.dataset.fontName=M.fontName),0!==$&&(Z.angle=$*(180/Math.PI));let ee=!1;if(M.str.length>1||j._enhanceTextSelection&&Q.test(M.str))ee=!0;else if(" "!==M.str&&M.transform[0]!==M.transform[3]){const z=Math.abs(M.transform[0]),oe=Math.abs(M.transform[3]);z!==oe&&Math.max(z,oe)/Math.min(z,oe)>1.5&&(ee=!0)}if(ee&&(Z.canvasWidth=se.vertical?M.height*j._viewport.scale:M.width*j._viewport.scale),j._textDivProperties.set(T,Z),j._textContentStream&&j._layoutText(T),j._enhanceTextSelection&&Z.hasText){let z=1,oe=0;0!==$&&(z=Math.cos($),oe=Math.sin($));const ve=(se.vertical?M.height:M.width)*j._viewport.scale,We=y;let Re,He;0!==$?(Re=[z,oe,-oe,z,I,H],He=t.Util.getAxialAlignedBoundingBox([0,0,ve,We],Re)):He=[I,H,I+ve,H+We],j._bounds.push({left:He[0],top:He[1],right:He[2],bottom:He[3],div:T,size:[ve,We],m:Re})}}function P(j){if(j._canceled)return;const M=j._textDivs,V=j._capability,f=M.length;if(f>1e5)return j._renderingDone=!0,void V.resolve();if(!j._textContentStream)for(let T=0;T<f;T++)j._layoutText(M[T]);j._renderingDone=!0,V.resolve()}function C(j,M,V){let f=0;for(let T=0;T<V;T++){const Z=j[M++];Z>0&&(f=f?Math.min(Z,f):Z)}return f}function m(j,M){M.sort(function(T,Z){return T.x1-Z.x1||T.index-Z.index});const f=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const T of M){let Z=0;for(;Z<f.length&&f[Z].end<=T.y1;)Z++;let G=f.length-1;for(;G>=0&&f[G].start>=T.y2;)G--;let $,se,y,k,I=-1/0;for(y=Z;y<=G;y++){let z;$=f[y],se=$.boundary,z=se.x2>T.x1?se.index>T.index?se.x1New:T.x1:void 0===se.x2New?(se.x2+T.x1)/2:se.x2New,z>I&&(I=z)}for(T.x1New=I,y=Z;y<=G;y++)$=f[y],se=$.boundary,void 0===se.x2New?se.x2>T.x1?se.index>T.index&&(se.x2New=se.x2):se.x2New=I:se.x2New>I&&(se.x2New=Math.max(I,se.x2));const H=[];let ee=null;for(y=Z;y<=G;y++){$=f[y],se=$.boundary;const z=se.x2>T.x2?se:T;ee===z?H[H.length-1].end=$.end:(H.push({start:$.start,end:$.end,boundary:z}),ee=z)}for(f[Z].start<T.y1&&(H[0].start=T.y1,H.unshift({start:f[Z].start,end:T.y1,boundary:f[Z].boundary})),T.y2<f[G].end&&(H[H.length-1].end=T.y2,H.push({start:T.y2,end:f[G].end,boundary:f[G].boundary})),y=Z;y<=G;y++){if($=f[y],se=$.boundary,void 0!==se.x2New)continue;let z=!1;for(k=Z-1;!z&&k>=0&&f[k].start>=se.y1;k--)z=f[k].boundary===se;for(k=G+1;!z&&k<f.length&&f[k].end<=se.y2;k++)z=f[k].boundary===se;for(k=0;!z&&k<H.length;k++)z=H[k].boundary===se;z||(se.x2New=I)}Array.prototype.splice.apply(f,[Z,G-Z+1].concat(H))}for(const T of f){const Z=T.boundary;void 0===Z.x2New&&(Z.x2New=Math.max(j,Z.x2))}}class v{constructor({textContent:M,textContentStream:V,container:f,viewport:T,textDivs:Z,textContentItemsStr:G,enhanceTextSelection:$}){var se;this._textContent=M,this._textContentStream=V,this._container=f,this._document=f.ownerDocument,this._viewport=T,this._textDivs=Z||[],this._textContentItemsStr=G||[],this._enhanceTextSelection=!!$,this._fontInspectorEnabled=!!(null==(se=globalThis.FontInspector)?void 0:se.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,t.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(()=>{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new t.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(M,V){for(let f=0,T=M.length;f<T;f++)if(void 0!==M[f].str)this._textContentItemsStr.push(M[f].str),W(this,M[f],V,this._layoutTextCtx);else if("beginMarkedContentProps"===M[f].type||"beginMarkedContent"===M[f].type){const Z=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==M[f].id&&this._container.setAttribute("id",`${M[f].id}`),Z.appendChild(this._container)}else"endMarkedContent"===M[f].type&&(this._container=this._container.parentNode)}_layoutText(M){const V=this._textDivProperties.get(M);let f="";if(0!==V.canvasWidth&&V.hasText){const{fontSize:T,fontFamily:Z}=M.style;(T!==this._layoutTextLastFontSize||Z!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font=`${T} ${Z}`,this._layoutTextLastFontSize=T,this._layoutTextLastFontFamily=Z);const{width:G}=this._layoutTextCtx.measureText(M.textContent);if(G>0){const $=V.canvasWidth/G;this._enhanceTextSelection&&(V.scale=$),f=`scaleX(${$})`}}if(0!==V.angle&&(f=`rotate(${V.angle}deg) ${f}`),f.length>0&&(this._enhanceTextSelection&&(V.originalTransform=f),M.style.transform=f),V.hasText&&this._container.appendChild(M),V.hasEOL){const T=document.createElement("br");T.setAttribute("role","presentation"),this._container.appendChild(T)}}_render(M=0){const V=(0,t.createPromiseCapability)();let f=Object.create(null);const T=this._document.createElement("canvas");if(T.height=T.width=x,this._layoutTextCtx=T.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),V.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const Z=()=>{this._reader.read().then(({value:G,done:$})=>{$?V.resolve():(Object.assign(f,G.styles),this._processItems(G.items,f),Z())},V.reject)};this._reader=this._textContentStream.getReader(),Z()}}V.promise.then(()=>{f=null,M?this._renderTimer=setTimeout(()=>{P(this),this._renderTimer=null},M):P(this)},this._capability.reject)}expandTextDivs(M=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function L(j){const M=j._bounds,V=j._viewport,f=function E(j,M,V){const f=V.map(function(Z,G){return{x1:Z.left,y1:Z.top,x2:Z.right,y2:Z.bottom,index:G,x1New:void 0,x2New:void 0}});m(j,f);const T=new Array(V.length);for(const Z of f)T[Z.index]={left:Z.x1New,top:0,right:Z.x2New,bottom:0};V.map(function(Z,G){const $=T[G],se=f[G];se.x1=Z.top,se.y1=j-$.right,se.x2=Z.bottom,se.y2=j-$.left,se.index=G,se.x1New=void 0,se.x2New=void 0}),m(M,f);for(const Z of f){const G=Z.index;T[G].top=Z.x1New,T[G].bottom=Z.x2New}return T}(V.width,V.height,M);for(let T=0;T<f.length;T++){const Z=M[T].div,G=j._textDivProperties.get(Z);if(0===G.angle){G.paddingLeft=M[T].left-f[T].left,G.paddingTop=M[T].top-f[T].top,G.paddingRight=f[T].right-M[T].right,G.paddingBottom=f[T].bottom-M[T].bottom,j._textDivProperties.set(Z,G);continue}const $=f[T],se=M[T],y=se.m,k=y[0],I=y[1],H=[[0,0],[0,se.size[1]],[se.size[0],0],se.size],ee=new Float64Array(64);for(let oe=0,ve=H.length;oe<ve;oe++){const We=t.Util.applyTransform(H[oe],y);ee[oe+0]=k&&($.left-We[0])/k,ee[oe+4]=I&&($.top-We[1])/I,ee[oe+8]=k&&($.right-We[0])/k,ee[oe+12]=I&&($.bottom-We[1])/I,ee[oe+16]=I&&($.left-We[0])/-I,ee[oe+20]=k&&($.top-We[1])/k,ee[oe+24]=I&&($.right-We[0])/-I,ee[oe+28]=k&&($.bottom-We[1])/k,ee[oe+32]=k&&($.left-We[0])/-k,ee[oe+36]=I&&($.top-We[1])/-I,ee[oe+40]=k&&($.right-We[0])/-k,ee[oe+44]=I&&($.bottom-We[1])/-I,ee[oe+48]=I&&($.left-We[0])/I,ee[oe+52]=k&&($.top-We[1])/-k,ee[oe+56]=I&&($.right-We[0])/I,ee[oe+60]=k&&($.bottom-We[1])/-k}const z=1+Math.min(Math.abs(k),Math.abs(I));G.paddingLeft=C(ee,32,16)/z,G.paddingTop=C(ee,48,16)/z,G.paddingRight=C(ee,0,16)/z,G.paddingBottom=C(ee,16,16)/z,j._textDivProperties.set(Z,G)}}(this),this._bounds=null);const V=[],f=[];for(let T=0,Z=this._textDivs.length;T<Z;T++){const G=this._textDivs[T],$=this._textDivProperties.get(G);!$.hasText||(M?(V.length=0,f.length=0,$.originalTransform&&V.push($.originalTransform),$.paddingTop>0?(f.push(`${$.paddingTop}px`),V.push(`translateY(${-$.paddingTop}px)`)):f.push(0),f.push($.paddingRight>0?$.paddingRight/$.scale+"px":0),f.push($.paddingBottom>0?`${$.paddingBottom}px`:0),$.paddingLeft>0?(f.push($.paddingLeft/$.scale+"px"),V.push(`translateX(${-$.paddingLeft/$.scale}px)`)):f.push(0),G.style.padding=f.join(" "),V.length&&(G.style.transform=V.join(" "))):(G.style.padding=null,G.style.transform=$.originalTransform))}}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.SVGGraphics=void 0;var t=c(1),_=c(5),x=c(3);let re=class{constructor(){(0,t.unreachable)("Not implemented: SVGGraphics")}};q.SVGGraphics=re;{let m=function(f){let T=[];const Z=[];for(const G of f)"save"!==G.fn?"restore"===G.fn?T=Z.pop():T.push(G):(T.push({fnId:92,fn:"group",items:[]}),Z.push(T),T=T[T.length-1].items);return T},v=function(f){if(Number.isInteger(f))return f.toString();const T=f.toFixed(10);let Z=T.length-1;if("0"!==T[Z])return T;do{Z--}while("0"===T[Z]);return T.substring(0,"."===T[Z]?Z:Z+1)},R=function(f){if(0===f[4]&&0===f[5]){if(0===f[1]&&0===f[2])return 1===f[0]&&1===f[3]?"":`scale(${v(f[0])} ${v(f[3])})`;if(f[0]===f[3]&&f[1]===-f[2]){const T=180*Math.acos(f[0])/Math.PI;return`rotate(${v(T)})`}}else if(1===f[0]&&0===f[1]&&0===f[2]&&1===f[3])return`translate(${v(f[4])} ${v(f[5])})`;return`matrix(${v(f[0])} ${v(f[1])} ${v(f[2])} ${v(f[3])} ${v(f[4])} ${v(f[5])})`};const te={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},Q="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/1999/xlink",W=["butt","round","square"],P=["miter","round","bevel"],C=function(f,T="",Z=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!Z)return URL.createObjectURL(new Blob([f],{type:T}));const G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let $=`data:${T};base64,`;for(let se=0,y=f.length;se<y;se+=3){const k=255&f[se],I=255&f[se+1],H=255&f[se+2];$+=G[k>>2]+G[(3&k)<<4|I>>4]+G[se+1<y?(15&I)<<2|H>>6:64]+G[se+2<y?63&H:64]}return $},L=function(){const f=new Uint8Array([137,80,78,71,13,10,26,10]),Z=new Int32Array(256);for(let H=0;H<256;H++){let ee=H;for(let z=0;z<8;z++)ee=1&ee?3988292384^ee>>1&2147483647:ee>>1&2147483647;Z[H]=ee}function $(H,ee,z,oe){let ve=oe;const We=ee.length;z[ve]=We>>24&255,z[ve+1]=We>>16&255,z[ve+2]=We>>8&255,z[ve+3]=255&We,ve+=4,z[ve]=255&H.charCodeAt(0),z[ve+1]=255&H.charCodeAt(1),z[ve+2]=255&H.charCodeAt(2),z[ve+3]=255&H.charCodeAt(3),ve+=4,z.set(ee,ve),ve+=ee.length;const Re=function G(H,ee,z){let oe=-1;for(let ve=ee;ve<z;ve++)oe=oe>>>8^Z[255&(oe^H[ve])];return-1^oe}(z,oe+4,ve);z[ve]=Re>>24&255,z[ve+1]=Re>>16&255,z[ve+2]=Re>>8&255,z[ve+3]=255&Re}function k(H){let ee=H.length;const z=65535,oe=Math.ceil(ee/z),ve=new Uint8Array(2+ee+5*oe+4);let We=0;ve[We++]=120,ve[We++]=156;let Re=0;for(;ee>z;)ve[We++]=0,ve[We++]=255,ve[We++]=255,ve[We++]=0,ve[We++]=0,ve.set(H.subarray(Re,Re+z),We),We+=z,Re+=z,ee-=z;ve[We++]=1,ve[We++]=255&ee,ve[We++]=ee>>8&255,ve[We++]=255&~ee,ve[We++]=(65535&~ee)>>8&255,ve.set(H.subarray(Re),We),We+=H.length-Re;const He=function se(H,ee,z){let oe=1,ve=0;for(let We=ee;We<z;++We)oe=(oe+(255&H[We]))%65521,ve=(ve+oe)%65521;return ve<<16|oe}(H,0,H.length);return ve[We++]=He>>24&255,ve[We++]=He>>16&255,ve[We++]=He>>8&255,ve[We++]=255&He,ve}return function(ee,z,oe){return function I(H,ee,z,oe){const ve=H.width,We=H.height;let Re,He,ge;const O=H.data;switch(ee){case t.ImageKind.GRAYSCALE_1BPP:He=0,Re=1,ge=ve+7>>3;break;case t.ImageKind.RGB_24BPP:He=2,Re=8,ge=3*ve;break;case t.ImageKind.RGBA_32BPP:He=6,Re=8,ge=4*ve;break;default:throw new Error("invalid format")}const b=new Uint8Array((1+ge)*We);let p=0,A=0;for(let Oe=0;Oe<We;++Oe)b[p++]=0,b.set(O.subarray(A,A+ge),p),A+=ge,p+=ge;if(ee===t.ImageKind.GRAYSCALE_1BPP&&oe){p=0;for(let Oe=0;Oe<We;Oe++){p++;for(let Ne=0;Ne<ge;Ne++)b[p++]^=255}}const N=new Uint8Array([ve>>24&255,ve>>16&255,ve>>8&255,255&ve,We>>24&255,We>>16&255,We>>8&255,255&We,Re,He,0,0,0]),K=function y(H){if(!x.isNodeJS)return k(H);try{let ee;ee=parseInt(process.versions.node)>=8?H:Buffer.from(H);const z=__webpack_require__(372).deflateSync(ee,{level:9});return z instanceof Uint8Array?z:new Uint8Array(z)}catch(ee){(0,t.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+ee)}return k(H)}(b),ie=new Uint8Array(f.length+36+N.length+K.length);let he=0;return ie.set(f,he),he+=f.length,$("IHDR",N,ie,he),he+=12+N.length,$("IDATA",K,ie,he),he+=12+K.length,$("IEND",new Uint8Array(0),ie,he),C(ie,"image/png",z)}(ee,void 0===ee.kind?t.ImageKind.GRAYSCALE_1BPP:ee.kind,z,oe)}}();class E{constructor(){this.fontSizeScale=1,this.fontWeight=te.fontWeight,this.fontSize=0,this.textMatrix=t.IDENTITY_MATRIX,this.fontMatrix=t.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=t.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=te.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(T,Z){this.x=T,this.y=Z}}let j=0,M=0,V=0;q.SVGGraphics=re=class{constructor(f,T,Z=!1){this.svgFactory=new _.DOMSVGFactory,this.current=new E,this.transformMatrix=t.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=f,this.objs=T,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!Z,this._operatorIdMapping=[];for(const G in t.OPS)this._operatorIdMapping[t.OPS[G]]=G}save(){this.transformStack.push(this.transformMatrix);const f=this.current;this.extraStack.push(f),this.current=f.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(f){this.save(),this.executeOpTree(f),this.restore()}loadDependencies(f){const T=f.fnArray,Z=f.argsArray;for(let G=0,$=T.length;G<$;G++)if(T[G]===t.OPS.dependency)for(const se of Z[G]){const y=se.startsWith("g_")?this.commonObjs:this.objs,k=new Promise(I=>{y.get(se,I)});this.current.dependencies.push(k)}return Promise.all(this.current.dependencies)}transform(f,T,Z,G,$,se){this.transformMatrix=t.Util.transform(this.transformMatrix,[f,T,Z,G,$,se]),this.tgrp=null}getSVG(f,T){this.viewport=T;const Z=this._initialize(T);return this.loadDependencies(f).then(()=>(this.transformMatrix=t.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(f)),Z))}convertOpList(f){const T=this._operatorIdMapping,Z=f.argsArray,G=f.fnArray,$=[];for(let se=0,y=G.length;se<y;se++){const k=G[se];$.push({fnId:k,fn:T[k],args:Z[se]})}return m($)}executeOpTree(f){for(const T of f){const Z=T.fn,$=T.args;switch(0|T.fnId){case t.OPS.beginText:this.beginText();break;case t.OPS.dependency:break;case t.OPS.setLeading:this.setLeading($);break;case t.OPS.setLeadingMoveText:this.setLeadingMoveText($[0],$[1]);break;case t.OPS.setFont:this.setFont($);break;case t.OPS.showText:case t.OPS.showSpacedText:this.showText($[0]);break;case t.OPS.endText:this.endText();break;case t.OPS.moveText:this.moveText($[0],$[1]);break;case t.OPS.setCharSpacing:this.setCharSpacing($[0]);break;case t.OPS.setWordSpacing:this.setWordSpacing($[0]);break;case t.OPS.setHScale:this.setHScale($[0]);break;case t.OPS.setTextMatrix:this.setTextMatrix($[0],$[1],$[2],$[3],$[4],$[5]);break;case t.OPS.setTextRise:this.setTextRise($[0]);break;case t.OPS.setTextRenderingMode:this.setTextRenderingMode($[0]);break;case t.OPS.setLineWidth:this.setLineWidth($[0]);break;case t.OPS.setLineJoin:this.setLineJoin($[0]);break;case t.OPS.setLineCap:this.setLineCap($[0]);break;case t.OPS.setMiterLimit:this.setMiterLimit($[0]);break;case t.OPS.setFillRGBColor:this.setFillRGBColor($[0],$[1],$[2]);break;case t.OPS.setStrokeRGBColor:this.setStrokeRGBColor($[0],$[1],$[2]);break;case t.OPS.setStrokeColorN:this.setStrokeColorN($);break;case t.OPS.setFillColorN:this.setFillColorN($);break;case t.OPS.shadingFill:this.shadingFill($[0]);break;case t.OPS.setDash:this.setDash($[0],$[1]);break;case t.OPS.setRenderingIntent:this.setRenderingIntent($[0]);break;case t.OPS.setFlatness:this.setFlatness($[0]);break;case t.OPS.setGState:this.setGState($[0]);break;case t.OPS.fill:this.fill();break;case t.OPS.eoFill:this.eoFill();break;case t.OPS.stroke:this.stroke();break;case t.OPS.fillStroke:this.fillStroke();break;case t.OPS.eoFillStroke:this.eoFillStroke();break;case t.OPS.clip:this.clip("nonzero");break;case t.OPS.eoClip:this.clip("evenodd");break;case t.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case t.OPS.paintImageXObject:this.paintImageXObject($[0]);break;case t.OPS.paintInlineImageXObject:this.paintInlineImageXObject($[0]);break;case t.OPS.paintImageMaskXObject:this.paintImageMaskXObject($[0]);break;case t.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin($[0],$[1]);break;case t.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case t.OPS.closePath:this.closePath();break;case t.OPS.closeStroke:this.closeStroke();break;case t.OPS.closeFillStroke:this.closeFillStroke();break;case t.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case t.OPS.nextLine:this.nextLine();break;case t.OPS.transform:this.transform($[0],$[1],$[2],$[3],$[4],$[5]);break;case t.OPS.constructPath:this.constructPath($[0],$[1]);break;case t.OPS.endPath:this.endPath();break;case 92:this.group(T.items);break;default:(0,t.warn)(`Unimplemented operator ${Z}`)}}}setWordSpacing(f){this.current.wordSpacing=f}setCharSpacing(f){this.current.charSpacing=f}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(f,T,Z,G,$,se){const y=this.current;y.textMatrix=y.lineMatrix=[f,T,Z,G,$,se],y.textMatrixScale=Math.hypot(f,T),y.x=y.lineX=0,y.y=y.lineY=0,y.xcoords=[],y.ycoords=[],y.tspan=this.svgFactory.createElement("svg:tspan"),y.tspan.setAttributeNS(null,"font-family",y.fontFamily),y.tspan.setAttributeNS(null,"font-size",`${v(y.fontSize)}px`),y.tspan.setAttributeNS(null,"y",v(-y.y)),y.txtElement=this.svgFactory.createElement("svg:text"),y.txtElement.appendChild(y.tspan)}beginText(){const f=this.current;f.x=f.lineX=0,f.y=f.lineY=0,f.textMatrix=t.IDENTITY_MATRIX,f.lineMatrix=t.IDENTITY_MATRIX,f.textMatrixScale=1,f.tspan=this.svgFactory.createElement("svg:tspan"),f.txtElement=this.svgFactory.createElement("svg:text"),f.txtgrp=this.svgFactory.createElement("svg:g"),f.xcoords=[],f.ycoords=[]}moveText(f,T){const Z=this.current;Z.x=Z.lineX+=f,Z.y=Z.lineY+=T,Z.xcoords=[],Z.ycoords=[],Z.tspan=this.svgFactory.createElement("svg:tspan"),Z.tspan.setAttributeNS(null,"font-family",Z.fontFamily),Z.tspan.setAttributeNS(null,"font-size",`${v(Z.fontSize)}px`),Z.tspan.setAttributeNS(null,"y",v(-Z.y))}showText(f){const T=this.current,Z=T.font,G=T.fontSize;if(0===G)return;const $=T.fontSizeScale,se=T.charSpacing,y=T.wordSpacing,k=T.fontDirection,I=T.textHScale*k,H=Z.vertical,ee=H?1:-1,z=Z.defaultVMetrics,oe=G*T.fontMatrix[0];let ve=0;for(const He of f){if(null===He){ve+=k*y;continue}if("number"==typeof He){ve+=ee*He*G/1e3;continue}const ge=(He.isSpace?y:0)+se,O=He.fontChar;let b,p,N,A=He.width;if(H){let K;const J=He.vmetric||z;K=He.vmetric?J[1]:.5*A,K=-K*oe,A=J?-J[0]:A,b=K/$,p=(ve+J[2]*oe)/$}else b=ve/$,p=0;(He.isInFont||Z.missingFile)&&(T.xcoords.push(T.x+b),H&&T.ycoords.push(-T.y+p),T.tspan.textContent+=O),N=H?A*oe-ge*k:A*oe+ge*k,ve+=N}T.tspan.setAttributeNS(null,"x",T.xcoords.map(v).join(" ")),T.tspan.setAttributeNS(null,"y",H?T.ycoords.map(v).join(" "):v(-T.y)),H?T.y-=ve:T.x+=ve*I,T.tspan.setAttributeNS(null,"font-family",T.fontFamily),T.tspan.setAttributeNS(null,"font-size",`${v(T.fontSize)}px`),T.fontStyle!==te.fontStyle&&T.tspan.setAttributeNS(null,"font-style",T.fontStyle),T.fontWeight!==te.fontWeight&&T.tspan.setAttributeNS(null,"font-weight",T.fontWeight);const We=T.textRenderingMode&t.TextRenderingMode.FILL_STROKE_MASK;We===t.TextRenderingMode.FILL||We===t.TextRenderingMode.FILL_STROKE?(T.fillColor!==te.fillColor&&T.tspan.setAttributeNS(null,"fill",T.fillColor),T.fillAlpha<1&&T.tspan.setAttributeNS(null,"fill-opacity",T.fillAlpha)):T.tspan.setAttributeNS(null,"fill",T.textRenderingMode===t.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(We===t.TextRenderingMode.STROKE||We===t.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(T.tspan,1/(T.textMatrixScale||1));let Re=T.textMatrix;0!==T.textRise&&(Re=Re.slice(),Re[5]+=T.textRise),T.txtElement.setAttributeNS(null,"transform",`${R(Re)} scale(${v(I)}, -1)`),T.txtElement.setAttributeNS(Q,"xml:space","preserve"),T.txtElement.appendChild(T.tspan),T.txtgrp.appendChild(T.txtElement),this._ensureTransformGroup().appendChild(T.txtElement)}setLeadingMoveText(f,T){this.setLeading(-T),this.moveText(f,T)}addFontStyle(f){if(!f.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));const T=C(f.data,f.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${f.loadedName}"; src: url(${T}); }\n`}setFont(f){const T=this.current,Z=this.commonObjs.get(f[0]);let G=f[1];T.font=Z,this.embedFonts&&!Z.missingFile&&!this.embeddedFonts[Z.loadedName]&&(this.addFontStyle(Z),this.embeddedFonts[Z.loadedName]=Z),T.fontMatrix=Z.fontMatrix||t.FONT_IDENTITY_MATRIX;let $="normal";Z.black?$="900":Z.bold&&($="bold");const se=Z.italic?"italic":"normal";G<0?(G=-G,T.fontDirection=-1):T.fontDirection=1,T.fontSize=G,T.fontFamily=Z.loadedName,T.fontWeight=$,T.fontStyle=se,T.tspan=this.svgFactory.createElement("svg:tspan"),T.tspan.setAttributeNS(null,"y",v(-T.y)),T.xcoords=[],T.ycoords=[]}endText(){var T;const f=this.current;f.textRenderingMode&t.TextRenderingMode.ADD_TO_PATH_FLAG&&(null==(T=f.txtElement)?void 0:T.hasChildNodes())&&(f.element=f.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(f){f>0&&(this.current.lineWidth=f)}setLineCap(f){this.current.lineCap=W[f]}setLineJoin(f){this.current.lineJoin=P[f]}setMiterLimit(f){this.current.miterLimit=f}setStrokeAlpha(f){this.current.strokeAlpha=f}setStrokeRGBColor(f,T,Z){this.current.strokeColor=t.Util.makeHexColor(f,T,Z)}setFillAlpha(f){this.current.fillAlpha=f}setFillRGBColor(f,T,Z){this.current.fillColor=t.Util.makeHexColor(f,T,Z),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(f){this.current.strokeColor=this._makeColorN_Pattern(f)}setFillColorN(f){this.current.fillColor=this._makeColorN_Pattern(f)}shadingFill(f){const T=this.viewport.width,Z=this.viewport.height,G=t.Util.inverseTransform(this.transformMatrix),$=t.Util.applyTransform([0,0],G),se=t.Util.applyTransform([0,Z],G),y=t.Util.applyTransform([T,0],G),k=t.Util.applyTransform([T,Z],G),I=Math.min($[0],se[0],y[0],k[0]),H=Math.min($[1],se[1],y[1],k[1]),ee=Math.max($[0],se[0],y[0],k[0]),z=Math.max($[1],se[1],y[1],k[1]),oe=this.svgFactory.createElement("svg:rect");oe.setAttributeNS(null,"x",I),oe.setAttributeNS(null,"y",H),oe.setAttributeNS(null,"width",ee-I),oe.setAttributeNS(null,"height",z-H),oe.setAttributeNS(null,"fill",this._makeShadingPattern(f)),this.current.fillAlpha<1&&oe.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(oe)}_makeColorN_Pattern(f){return"TilingPattern"===f[0]?this._makeTilingPattern(f):this._makeShadingPattern(f)}_makeTilingPattern(f){const T=f[1],Z=f[2],G=f[3]||t.IDENTITY_MATRIX,[$,se,y,k]=f[4],I=f[5],H=f[6],ee=f[7],z="shading"+V++,[oe,ve,We,Re]=t.Util.normalizeRect([...t.Util.applyTransform([$,se],G),...t.Util.applyTransform([y,k],G)]),[He,ge]=t.Util.singularValueDecompose2dScale(G),O=I*He,b=H*ge,p=this.svgFactory.createElement("svg:pattern");p.setAttributeNS(null,"id",z),p.setAttributeNS(null,"patternUnits","userSpaceOnUse"),p.setAttributeNS(null,"width",O),p.setAttributeNS(null,"height",b),p.setAttributeNS(null,"x",`${oe}`),p.setAttributeNS(null,"y",`${ve}`);const A=this.svg,N=this.transformMatrix,K=this.current.fillColor,J=this.current.strokeColor,ie=this.svgFactory.create(We-oe,Re-ve);if(this.svg=ie,this.transformMatrix=G,2===ee){const he=t.Util.makeHexColor(...T);this.current.fillColor=he,this.current.strokeColor=he}return this.executeOpTree(this.convertOpList(Z)),this.svg=A,this.transformMatrix=N,this.current.fillColor=K,this.current.strokeColor=J,p.appendChild(ie.childNodes[0]),this.defs.appendChild(p),`url(#${z})`}_makeShadingPattern(f){switch("string"==typeof f&&(f=this.objs.get(f)),f[0]){case"RadialAxial":const T="shading"+V++,Z=f[3];let G;switch(f[1]){case"axial":const $=f[4],se=f[5];G=this.svgFactory.createElement("svg:linearGradient"),G.setAttributeNS(null,"id",T),G.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),G.setAttributeNS(null,"x1",$[0]),G.setAttributeNS(null,"y1",$[1]),G.setAttributeNS(null,"x2",se[0]),G.setAttributeNS(null,"y2",se[1]);break;case"radial":const y=f[4],k=f[5],I=f[6],H=f[7];G=this.svgFactory.createElement("svg:radialGradient"),G.setAttributeNS(null,"id",T),G.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),G.setAttributeNS(null,"cx",k[0]),G.setAttributeNS(null,"cy",k[1]),G.setAttributeNS(null,"r",H),G.setAttributeNS(null,"fx",y[0]),G.setAttributeNS(null,"fy",y[1]),G.setAttributeNS(null,"fr",I);break;default:throw new Error(`Unknown RadialAxial type: ${f[1]}`)}for(const $ of Z){const se=this.svgFactory.createElement("svg:stop");se.setAttributeNS(null,"offset",$[0]),se.setAttributeNS(null,"stop-color",$[1]),G.appendChild(se)}return this.defs.appendChild(G),`url(#${T})`;case"Mesh":return(0,t.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${f[0]}`)}}setDash(f,T){this.current.dashArray=f,this.current.dashPhase=T}constructPath(f,T){const Z=this.current;let G=Z.x,$=Z.y,se=[],y=0;for(const k of f)switch(0|k){case t.OPS.rectangle:G=T[y++],$=T[y++];const ee=G+T[y++],z=$+T[y++];se.push("M",v(G),v($),"L",v(ee),v($),"L",v(ee),v(z),"L",v(G),v(z),"Z");break;case t.OPS.moveTo:G=T[y++],$=T[y++],se.push("M",v(G),v($));break;case t.OPS.lineTo:G=T[y++],$=T[y++],se.push("L",v(G),v($));break;case t.OPS.curveTo:G=T[y+4],$=T[y+5],se.push("C",v(T[y]),v(T[y+1]),v(T[y+2]),v(T[y+3]),v(G),v($)),y+=6;break;case t.OPS.curveTo2:se.push("C",v(G),v($),v(T[y]),v(T[y+1]),v(T[y+2]),v(T[y+3])),G=T[y+2],$=T[y+3],y+=4;break;case t.OPS.curveTo3:G=T[y+2],$=T[y+3],se.push("C",v(T[y]),v(T[y+1]),v(G),v($),v(G),v($)),y+=4;break;case t.OPS.closePath:se.push("Z")}se=se.join(" "),Z.path&&f.length>0&&f[0]!==t.OPS.rectangle&&f[0]!==t.OPS.moveTo?se=Z.path.getAttributeNS(null,"d")+se:(Z.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(Z.path)),Z.path.setAttributeNS(null,"d",se),Z.path.setAttributeNS(null,"fill","none"),Z.element=Z.path,Z.setCurrentPoint(G,$)}endPath(){const f=this.current;if(f.path=null,!this.pendingClip)return;if(!f.element)return void(this.pendingClip=null);const T="clippath"+j++,Z=this.svgFactory.createElement("svg:clipPath");Z.setAttributeNS(null,"id",T),Z.setAttributeNS(null,"transform",R(this.transformMatrix));const G=f.element.cloneNode(!0);if(G.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,Z.appendChild(G),this.defs.appendChild(Z),f.activeClipUrl){f.clipGroup=null;for(const $ of this.extraStack)$.clipGroup=null;Z.setAttributeNS(null,"clip-path",f.activeClipUrl)}f.activeClipUrl=`url(#${T})`,this.tgrp=null}clip(f){this.pendingClip=f}closePath(){const f=this.current;if(f.path){const T=`${f.path.getAttributeNS(null,"d")}Z`;f.path.setAttributeNS(null,"d",T)}}setLeading(f){this.current.leading=-f}setTextRise(f){this.current.textRise=f}setTextRenderingMode(f){this.current.textRenderingMode=f}setHScale(f){this.current.textHScale=f/100}setRenderingIntent(f){}setFlatness(f){}setGState(f){for(const[T,Z]of f)switch(T){case"LW":this.setLineWidth(Z);break;case"LC":this.setLineCap(Z);break;case"LJ":this.setLineJoin(Z);break;case"ML":this.setMiterLimit(Z);break;case"D":this.setDash(Z[0],Z[1]);break;case"RI":this.setRenderingIntent(Z);break;case"FL":this.setFlatness(Z);break;case"Font":this.setFont(Z);break;case"CA":this.setStrokeAlpha(Z);break;case"ca":this.setFillAlpha(Z);break;default:(0,t.warn)(`Unimplemented graphic state operator ${T}`)}}fill(){const f=this.current;f.element&&(f.element.setAttributeNS(null,"fill",f.fillColor),f.element.setAttributeNS(null,"fill-opacity",f.fillAlpha),this.endPath())}stroke(){const f=this.current;f.element&&(this._setStrokeAttributes(f.element),f.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(f,T=1){const Z=this.current;let G=Z.dashArray;1!==T&&G.length>0&&(G=G.map(function($){return T*$})),f.setAttributeNS(null,"stroke",Z.strokeColor),f.setAttributeNS(null,"stroke-opacity",Z.strokeAlpha),f.setAttributeNS(null,"stroke-miterlimit",v(Z.miterLimit)),f.setAttributeNS(null,"stroke-linecap",Z.lineCap),f.setAttributeNS(null,"stroke-linejoin",Z.lineJoin),f.setAttributeNS(null,"stroke-width",v(T*Z.lineWidth)+"px"),f.setAttributeNS(null,"stroke-dasharray",G.map(v).join(" ")),f.setAttributeNS(null,"stroke-dashoffset",v(T*Z.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x","0"),f.setAttributeNS(null,"y","0"),f.setAttributeNS(null,"width","1px"),f.setAttributeNS(null,"height","1px"),f.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(f)}paintImageXObject(f){const T=f.startsWith("g_")?this.commonObjs.get(f):this.objs.get(f);T?this.paintInlineImageXObject(T):(0,t.warn)(`Dependent image with object ID ${f} is not ready yet`)}paintInlineImageXObject(f,T){const Z=f.width,G=f.height,$=L(f,this.forceDataSchema,!!T),se=this.svgFactory.createElement("svg:rect");se.setAttributeNS(null,"x","0"),se.setAttributeNS(null,"y","0"),se.setAttributeNS(null,"width",v(Z)),se.setAttributeNS(null,"height",v(G)),this.current.element=se,this.clip("nonzero");const y=this.svgFactory.createElement("svg:image");y.setAttributeNS(S,"xlink:href",$),y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y",v(-G)),y.setAttributeNS(null,"width",v(Z)+"px"),y.setAttributeNS(null,"height",v(G)+"px"),y.setAttributeNS(null,"transform",`scale(${v(1/Z)} ${v(-1/G)})`),T?T.appendChild(y):this._ensureTransformGroup().appendChild(y)}paintImageMaskXObject(f){const T=this.current,Z=f.width,G=f.height,$=T.fillColor;T.maskId="mask"+M++;const se=this.svgFactory.createElement("svg:mask");se.setAttributeNS(null,"id",T.maskId);const y=this.svgFactory.createElement("svg:rect");y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y","0"),y.setAttributeNS(null,"width",v(Z)),y.setAttributeNS(null,"height",v(G)),y.setAttributeNS(null,"fill",$),y.setAttributeNS(null,"mask",`url(#${T.maskId})`),this.defs.appendChild(se),this._ensureTransformGroup().appendChild(y),this.paintInlineImageXObject(f,se)}paintFormXObjectBegin(f,T){if(Array.isArray(f)&&6===f.length&&this.transform(f[0],f[1],f[2],f[3],f[4],f[5]),T){const Z=T[2]-T[0],G=T[3]-T[1],$=this.svgFactory.createElement("svg:rect");$.setAttributeNS(null,"x",T[0]),$.setAttributeNS(null,"y",T[1]),$.setAttributeNS(null,"width",v(Z)),$.setAttributeNS(null,"height",v(G)),this.current.element=$,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(f){const T=this.svgFactory.create(f.width,f.height),Z=this.svgFactory.createElement("svg:defs");T.appendChild(Z),this.defs=Z;const G=this.svgFactory.createElement("svg:g");return G.setAttributeNS(null,"transform",R(f.transform)),T.appendChild(G),this.svg=G,T}_ensureClipGroup(){if(!this.current.clipGroup){const f=this.svgFactory.createElement("svg:g");f.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(f),this.current.clipGroup=f}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",R(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFNodeStream=void 0;var t=c(1),_=c(26);const x=__webpack_require__(2339),re=__webpack_require__(4828),te=__webpack_require__(7915),Q=__webpack_require__(5598),S=/^file:\/\/\/[a-zA-Z]:\//;q.PDFNodeStream=class P{constructor(V){this.source=V,this.url=function W(M){const V=Q.parse(M);return"file:"===V.protocol||V.host?V:/^[a-z]:[/\\]/i.test(M)?Q.parse(`file:///${M}`):(V.host||(V.protocol="file:"),V)}(V.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&V.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var V,f;return null!=(f=null==(V=this._fullRequestReader)?void 0:V._loaded)?f:0}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new R(this):new m(this),this._fullRequestReader}getRangeReader(V,f){if(f<=this._progressiveDataLength)return null;const T=this.isFsUrl?new j(this,V,f):new v(this,V,f);return this._rangeRequestReaders.push(T),T}cancelAllRequests(V){this._fullRequestReader&&this._fullRequestReader.cancel(V);for(const f of this._rangeRequestReaders.slice(0))f.cancel(V)}};class C{constructor(V){this._url=V.url,this._done=!1,this._storedError=null,this.onProgress=null;const f=V.source;this._contentLength=f.length,this._loaded=0,this._filename=null,this._disableRange=f.disableRange||!1,this._rangeChunkSize=f.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!f.disableStream,this._isRangeSupported=!f.disableRange,this._readableStream=null,this._readCapability=(0,t.createPromiseCapability)(),this._headersCapability=(0,t.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var V=this;return _asyncToGenerator(function*(){if(yield V._readCapability.promise,V._done)return{value:void 0,done:!0};if(V._storedError)throw V._storedError;const f=V._readableStream.read();return null===f?(V._readCapability=(0,t.createPromiseCapability)(),V.read()):(V._loaded+=f.length,V.onProgress&&V.onProgress({loaded:V._loaded,total:V._contentLength}),{value:new Uint8Array(f).buffer,done:!1})})()}cancel(V){this._readableStream?this._readableStream.destroy(V):this._error(V)}_error(V){this._storedError=V,this._readCapability.resolve()}_setReadableStream(V){this._readableStream=V,V.on("readable",()=>{this._readCapability.resolve()}),V.on("end",()=>{V.destroy(),this._done=!0,this._readCapability.resolve()}),V.on("error",f=>{this._error(f)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new t.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class L{constructor(V){this._url=V.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,t.createPromiseCapability)(),this._isStreamingSupported=!V.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var V=this;return _asyncToGenerator(function*(){if(yield V._readCapability.promise,V._done)return{value:void 0,done:!0};if(V._storedError)throw V._storedError;const f=V._readableStream.read();return null===f?(V._readCapability=(0,t.createPromiseCapability)(),V.read()):(V._loaded+=f.length,V.onProgress&&V.onProgress({loaded:V._loaded}),{value:new Uint8Array(f).buffer,done:!1})})()}cancel(V){this._readableStream?this._readableStream.destroy(V):this._error(V)}_error(V){this._storedError=V,this._readCapability.resolve()}_setReadableStream(V){this._readableStream=V,V.on("readable",()=>{this._readCapability.resolve()}),V.on("end",()=>{V.destroy(),this._done=!0,this._readCapability.resolve()}),V.on("error",f=>{this._error(f)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function E(M,V){return{protocol:M.protocol,auth:M.auth,host:M.hostname,port:M.port,path:M.path,method:"GET",headers:V}}class m extends C{constructor(V){super(V);const f=T=>{if(404===T.statusCode){const se=new t.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=se,void this._headersCapability.reject(se)}this._headersCapability.resolve(),this._setReadableStream(T);const Z=se=>this._readableStream.headers[se.toLowerCase()],{allowRangeRequests:G,suggestedLength:$}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:Z,isHttp:V.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=G,this._contentLength=$||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(Z)};this._request=null,this._request="http:"===this._url.protocol?re.request(E(this._url,V.httpHeaders),f):te.request(E(this._url,V.httpHeaders),f),this._request.on("error",T=>{this._storedError=T,this._headersCapability.reject(T)}),this._request.end()}}class v extends L{constructor(V,f,T){super(V),this._httpHeaders={};for(const G in V.httpHeaders){const $=V.httpHeaders[G];void 0!==$&&(this._httpHeaders[G]=$)}this._httpHeaders.Range=`bytes=${f}-${T-1}`;const Z=G=>{if(404!==G.statusCode)this._setReadableStream(G);else{const $=new t.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=$}};this._request=null,this._request="http:"===this._url.protocol?re.request(E(this._url,this._httpHeaders),Z):te.request(E(this._url,this._httpHeaders),Z),this._request.on("error",G=>{this._storedError=G}),this._request.end()}}class R extends C{constructor(V){super(V);let f=decodeURIComponent(this._url.path);S.test(this._url.href)&&(f=f.replace(/^\//,"")),x.lstat(f,(T,Z)=>{if(T)return"ENOENT"===T.code&&(T=new t.MissingPDFException(`Missing PDF "${f}".`)),this._storedError=T,void this._headersCapability.reject(T);this._contentLength=Z.size,this._setReadableStream(x.createReadStream(f)),this._headersCapability.resolve()})}}class j extends L{constructor(V,f,T){super(V);let Z=decodeURIComponent(this._url.path);S.test(this._url.href)&&(Z=Z.replace(/^\//,"")),this._setReadableStream(x.createReadStream(Z,{start:f,end:T-1}))}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.createResponseStatusError=function Q(W,P){return 404===W||0===W&&P.startsWith("file:")?new t.MissingPDFException('Missing PDF "'+P+'".'):new t.UnexpectedResponseException(`Unexpected server response (${W}) while retrieving PDF "${P}".`,W)},q.extractFilenameFromHeader=function te(W){const P=W("Content-Disposition");if(P){let C=(0,_.getFilenameFromContentDispositionHeader)(P);if(C.includes("%"))try{C=decodeURIComponent(C)}catch(L){}if((0,x.isPdfFile)(C))return C}return null},q.validateRangeRequestCapabilities=function re({getResponseHeader:W,isHttp:P,rangeChunkSize:C,disableRange:L}){const E={allowRangeRequests:!1,suggestedLength:void 0},m=parseInt(W("Content-Length"),10);return!Number.isInteger(m)||(E.suggestedLength=m,m<=2*C)||L||!P||"bytes"!==W("Accept-Ranges")||"identity"!==(W("Content-Encoding")||"identity")||(E.allowRangeRequests=!0),E},q.validateResponseStatus=function S(W){return 200===W||206===W};var t=c(1),_=c(27),x=c(5)},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.getFilenameFromContentDispositionHeader=function _(x){let re=!0,te=Q("filename\\*","i").exec(x);if(te){te=te[1];let m=C(te);return m=unescape(m),m=L(m),m=E(m),W(m)}if(te=function P(m){const v=[];let R;const j=Q("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(R=j.exec(m));){let[,V,f,T]=R;if(V=parseInt(V,10),V in v){if(0===V)break}else v[V]=[f,T]}const M=[];for(let V=0;V<v.length&&V in v;++V){let[f,T]=v[V];T=C(T),f&&(T=unescape(T),0===V&&(T=L(T))),M.push(T)}return M.join("")}(x),te)return W(E(te));if(te=Q("filename","i").exec(x),te){te=te[1];let m=C(te);return m=E(m),W(m)}function Q(m,v){return new RegExp("(?:^|;)\\s*"+m+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',v)}function S(m,v){if(m){if(!/^[\x00-\xFF]+$/.test(v))return v;try{const R=new TextDecoder(m,{fatal:!0}),j=(0,t.stringToBytes)(v);v=R.decode(j),re=!1}catch(R){}}return v}function W(m){return re&&/[\x80-\xff]/.test(m)&&(m=S("utf-8",m),re&&(m=S("iso-8859-1",m))),m}function C(m){if(m.startsWith('"')){const v=m.slice(1).split('\\"');for(let R=0;R<v.length;++R){const j=v[R].indexOf('"');-1!==j&&(v[R]=v[R].slice(0,j),v.length=R+1),v[R]=v[R].replace(/\\(.)/g,"$1")}m=v.join('"')}return m}function L(m){const v=m.indexOf("'");return-1===v?m:S(m.slice(0,v),m.slice(v+1).replace(/^[^']*'/,""))}function E(m){return!m.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(m)?m:m.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(v,R,j,M){if("q"===j||"Q"===j)return S(R,M=(M=M.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(V,f){return String.fromCharCode(parseInt(f,16))}));try{M=atob(M)}catch(V){}return S(R,M)})}return""};var t=c(1)},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFNetworkStream=void 0;var t=c(1),_=c(26);class Q{constructor(L,E={}){this.url=L,this.isHttp=/^https?:/i.test(L),this.httpHeaders=this.isHttp&&E.httpHeaders||Object.create(null),this.withCredentials=E.withCredentials||!1,this.getXhr=E.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(L,E,m){const v={begin:L,end:E};for(const R in m)v[R]=m[R];return this.request(v)}requestFull(L){return this.request(L)}request(L){const E=this.getXhr(),m=this.currXhrId++,v=this.pendingRequests[m]={xhr:E};E.open("GET",this.url),E.withCredentials=this.withCredentials;for(const R in this.httpHeaders){const j=this.httpHeaders[R];void 0!==j&&E.setRequestHeader(R,j)}return this.isHttp&&"begin"in L&&"end"in L?(E.setRequestHeader("Range",`bytes=${L.begin}-${L.end-1}`),v.expectedStatus=206):v.expectedStatus=200,E.responseType="arraybuffer",L.onError&&(E.onerror=function(R){L.onError(E.status)}),E.onreadystatechange=this.onStateChange.bind(this,m),E.onprogress=this.onProgress.bind(this,m),v.onHeadersReceived=L.onHeadersReceived,v.onDone=L.onDone,v.onError=L.onError,v.onProgress=L.onProgress,E.send(null),m}onProgress(L,E){var v;const m=this.pendingRequests[L];!m||null==(v=m.onProgress)||v.call(m,E)}onStateChange(L,E){var V,f,T;const m=this.pendingRequests[L];if(!m)return;const v=m.xhr;if(v.readyState>=2&&m.onHeadersReceived&&(m.onHeadersReceived(),delete m.onHeadersReceived),4!==v.readyState||!(L in this.pendingRequests))return;if(delete this.pendingRequests[L],0===v.status&&this.isHttp)return void(null==(V=m.onError)||V.call(m,v.status));const R=v.status||200;if((200!==R||206!==m.expectedStatus)&&R!==m.expectedStatus)return void(null==(f=m.onError)||f.call(m,v.status));const M=function te(C){const L=C.response;return"string"!=typeof L?L:(0,t.stringToBytes)(L).buffer}(v);if(206===R){const Z=v.getResponseHeader("Content-Range"),G=/bytes (\d+)-(\d+)\/(\d+)/.exec(Z);m.onDone({begin:parseInt(G[1],10),chunk:M})}else M?m.onDone({begin:0,chunk:M}):null==(T=m.onError)||T.call(m,v.status)}getRequestXhr(L){return this.pendingRequests[L].xhr}isPendingRequest(L){return L in this.pendingRequests}abortRequest(L){const E=this.pendingRequests[L].xhr;delete this.pendingRequests[L],E.abort()}}q.PDFNetworkStream=class S{constructor(L){this._source=L,this._manager=new Q(L.url,{httpHeaders:L.httpHeaders,withCredentials:L.withCredentials}),this._rangeChunkSize=L.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(L){const E=this._rangeRequestReaders.indexOf(L);E>=0&&this._rangeRequestReaders.splice(E,1)}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new W(this._manager,this._source),this._fullRequestReader}getRangeReader(L,E){const m=new P(this._manager,L,E);return m.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(m),m}cancelAllRequests(L){var E;null==(E=this._fullRequestReader)||E.cancel(L);for(const m of this._rangeRequestReaders.slice(0))m.cancel(L)}};class W{constructor(L,E){this._manager=L;const m={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=E.url,this._fullRequestId=L.requestFull(m),this._headersReceivedCapability=(0,t.createPromiseCapability)(),this._disableRange=E.disableRange||!1,this._contentLength=E.length,this._rangeChunkSize=E.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const L=this._fullRequestId,E=this._manager.getRequestXhr(L),m=j=>E.getResponseHeader(j),{allowRangeRequests:v,suggestedLength:R}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:m,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});v&&(this._isRangeSupported=!0),this._contentLength=R||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(m),this._isRangeSupported&&this._manager.abortRequest(L),this._headersReceivedCapability.resolve()}_onDone(L){if(L&&(this._requests.length>0?this._requests.shift().resolve({value:L.chunk,done:!1}):this._cachedChunks.push(L.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const E of this._requests)E.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(L){this._storedError=(0,_.createResponseStatusError)(L,this._url),this._headersReceivedCapability.reject(this._storedError);for(const E of this._requests)E.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(L){var E;null==(E=this.onProgress)||E.call(this,{loaded:L.loaded,total:L.lengthComputable?L.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var L=this;return _asyncToGenerator(function*(){if(L._storedError)throw L._storedError;if(L._cachedChunks.length>0)return{value:L._cachedChunks.shift(),done:!1};if(L._done)return{value:void 0,done:!0};const E=(0,t.createPromiseCapability)();return L._requests.push(E),E.promise})()}cancel(L){this._done=!0,this._headersReceivedCapability.reject(L);for(const E of this._requests)E.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class P{constructor(L,E,m){this._manager=L;const v={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=L.url,this._requestId=L.requestRange(E,m,v),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var L;null==(L=this.onClosed)||L.call(this,this)}_onDone(L){const E=L.chunk;this._requests.length>0?this._requests.shift().resolve({value:E,done:!1}):this._queuedChunk=E,this._done=!0;for(const m of this._requests)m.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(L){this._storedError=(0,_.createResponseStatusError)(L,this._url);for(const E of this._requests)E.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(L){var E;this.isStreamingSupported||null==(E=this.onProgress)||E.call(this,{loaded:L.loaded})}get isStreamingSupported(){return!1}read(){var L=this;return _asyncToGenerator(function*(){if(L._storedError)throw L._storedError;if(null!==L._queuedChunk){const m=L._queuedChunk;return L._queuedChunk=null,{value:m,done:!1}}if(L._done)return{value:void 0,done:!0};const E=(0,t.createPromiseCapability)();return L._requests.push(E),E.promise})()}cancel(L){this._done=!0;for(const E of this._requests)E.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFFetchStream=void 0;var t=c(1),_=c(26);function x(W,P,C){return{method:"GET",headers:W,signal:null==C?void 0:C.signal,mode:"cors",credentials:P?"include":"same-origin",redirect:"follow"}}function re(W){const P=new Headers;for(const C in W){const L=W[C];void 0!==L&&P.append(C,L)}return P}q.PDFFetchStream=class te{constructor(P){this.source=P,this.isHttp=/^https?:/i.test(P.url),this.httpHeaders=this.isHttp&&P.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var P,C;return null!=(C=null==(P=this._fullRequestReader)?void 0:P._loaded)?C:0}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Q(this),this._fullRequestReader}getRangeReader(P,C){if(C<=this._progressiveDataLength)return null;const L=new S(this,P,C);return this._rangeRequestReaders.push(L),L}cancelAllRequests(P){this._fullRequestReader&&this._fullRequestReader.cancel(P);for(const C of this._rangeRequestReaders.slice(0))C.cancel(P)}};class Q{constructor(P){this._stream=P,this._reader=null,this._loaded=0,this._filename=null;const C=P.source;this._withCredentials=C.withCredentials||!1,this._contentLength=C.length,this._headersCapability=(0,t.createPromiseCapability)(),this._disableRange=C.disableRange||!1,this._rangeChunkSize=C.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!C.disableStream,this._isRangeSupported=!C.disableRange,this._headers=re(this._stream.httpHeaders);const L=C.url;fetch(L,x(this._headers,this._withCredentials,this._abortController)).then(E=>{if(!(0,_.validateResponseStatus)(E.status))throw(0,_.createResponseStatusError)(E.status,L);this._reader=E.body.getReader(),this._headersCapability.resolve();const m=j=>E.headers.get(j),{allowRangeRequests:v,suggestedLength:R}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:m,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=v,this._contentLength=R||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(m),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new t.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var P=this;return _asyncToGenerator(function*(){yield P._headersCapability.promise;const{value:C,done:L}=yield P._reader.read();return L?{value:C,done:L}:(P._loaded+=C.byteLength,P.onProgress&&P.onProgress({loaded:P._loaded,total:P._contentLength}),{value:new Uint8Array(C).buffer,done:!1})})()}cancel(P){this._reader&&this._reader.cancel(P),this._abortController&&this._abortController.abort()}}class S{constructor(P,C,L){this._stream=P,this._reader=null,this._loaded=0;const E=P.source;this._withCredentials=E.withCredentials||!1,this._readCapability=(0,t.createPromiseCapability)(),this._isStreamingSupported=!E.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=re(this._stream.httpHeaders),this._headers.append("Range",`bytes=${C}-${L-1}`);const m=E.url;fetch(m,x(this._headers,this._withCredentials,this._abortController)).then(v=>{if(!(0,_.validateResponseStatus)(v.status))throw(0,_.createResponseStatusError)(v.status,m);this._readCapability.resolve(),this._reader=v.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var P=this;return _asyncToGenerator(function*(){yield P._readCapability.promise;const{value:C,done:L}=yield P._reader.read();return L?{value:C,done:L}:(P._loaded+=C.byteLength,P.onProgress&&P.onProgress({loaded:P._loaded}),{value:new Uint8Array(C).buffer,done:!1})})()}cancel(P){this._reader&&this._reader.cancel(P),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(xe){var q=__webpack_module_cache__[xe];if(void 0!==q)return q.exports;var c=__webpack_module_cache__[xe]={exports:{}};return __webpack_modules__[xe](c,c.exports,__w_pdfjs_require__),c.exports}var __webpack_exports__={};return(()=>{var xe=__webpack_exports__;
1Object.defineProperty(xe,"__esModule",{value:!0}),Object.defineProperty(xe,"AnnotationLayer",{enumerable:!0,get:function(){return _.AnnotationLayer}}),Object.defineProperty(xe,"AnnotationMode",{enumerable:!0,get:function(){return q.AnnotationMode}}),Object.defineProperty(xe,"CMapCompressionType",{enumerable:!0,get:function(){return q.CMapCompressionType}}),Object.defineProperty(xe,"GlobalWorkerOptions",{enumerable:!0,get:function(){return x.GlobalWorkerOptions}}),Object.defineProperty(xe,"InvalidPDFException",{enumerable:!0,get:function(){return q.InvalidPDFException}}),Object.defineProperty(xe,"LoopbackPort",{enumerable:!0,get:function(){return c.LoopbackPort}}),Object.defineProperty(xe,"MissingPDFException",{enumerable:!0,get:function(){return q.MissingPDFException}}),Object.defineProperty(xe,"OPS",{enumerable:!0,get:function(){return q.OPS}}),Object.defineProperty(xe,"PDFDataRangeTransport",{enumerable:!0,get:function(){return c.PDFDataRangeTransport}}),Object.defineProperty(xe,"PDFDateString",{enumerable:!0,get:function(){return t.PDFDateString}}),Object.defineProperty(xe,"PDFWorker",{enumerable:!0,get:function(){return c.PDFWorker}}),Object.defineProperty(xe,"PasswordResponses",{enumerable:!0,get:function(){return q.PasswordResponses}}),Object.defineProperty(xe,"PermissionFlag",{enumerable:!0,get:function(){return q.PermissionFlag}}),Object.defineProperty(xe,"PixelsPerInch",{enumerable:!0,get:function(){return t.PixelsPerInch}}),Object.defineProperty(xe,"RenderingCancelledException",{enumerable:!0,get:function(){return t.RenderingCancelledException}}),Object.defineProperty(xe,"SVGGraphics",{enumerable:!0,get:function(){return Q.SVGGraphics}}),Object.defineProperty(xe,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return q.UNSUPPORTED_FEATURES}}),Object.defineProperty(xe,"UnexpectedResponseException",{enumerable:!0,get:function(){return q.UnexpectedResponseException}}),Object.defineProperty(xe,"Util",{enumerable:!0,get:function(){return q.Util}}),Object.defineProperty(xe,"VerbosityLevel",{enumerable:!0,get:function(){return q.VerbosityLevel}}),Object.defineProperty(xe,"XfaLayer",{enumerable:!0,get:function(){return S.XfaLayer}}),Object.defineProperty(xe,"build",{enumerable:!0,get:function(){return c.build}}),Object.defineProperty(xe,"createPromiseCapability",{enumerable:!0,get:function(){return q.createPromiseCapability}}),Object.defineProperty(xe,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return q.createValidAbsoluteUrl}}),Object.defineProperty(xe,"getDocument",{enumerable:!0,get:function(){return c.getDocument}}),Object.defineProperty(xe,"getFilenameFromUrl",{enumerable:!0,get:function(){return t.getFilenameFromUrl}}),Object.defineProperty(xe,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return t.getPdfFilenameFromUrl}}),Object.defineProperty(xe,"getXfaPageViewport",{enumerable:!0,get:function(){return t.getXfaPageViewport}}),Object.defineProperty(xe,"isPdfFile",{enumerable:!0,get:function(){return t.isPdfFile}}),Object.defineProperty(xe,"loadScript",{enumerable:!0,get:function(){return t.loadScript}}),Object.defineProperty(xe,"renderTextLayer",{enumerable:!0,get:function(){return te.renderTextLayer}}),Object.defineProperty(xe,"shadow",{enumerable:!0,get:function(){return q.shadow}}),Object.defineProperty(xe,"version",{enumerable:!0,get:function(){return c.version}});var q=__w_pdfjs_require__(1),c=__w_pdfjs_require__(4),t=__w_pdfjs_require__(5),_=__w_pdfjs_require__(20),x=__w_pdfjs_require__(13),re=__w_pdfjs_require__(3),te=__w_pdfjs_require__(23),Q=__w_pdfjs_require__(24),S=__w_pdfjs_require__(22);if(re.isNodeJS){const{PDFNodeStream:C}=__w_pdfjs_require__(25);(0,c.setPDFNetworkStreamFactory)(L=>new C(L))}else{const{PDFNetworkStream:C}=__w_pdfjs_require__(28),{PDFFetchStream:L}=__w_pdfjs_require__(29);(0,c.setPDFNetworkStreamFactory)(E=>(0,t.isValidFetchUrl)(E.url)?new L(E):new C(E))}})(),__webpack_exports__})(),module.exports=c()},5178:function(xe,q,c){var re,t=c(8926).default;re=()=>(()=>{"use strict";var _=[,(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.DefaultXfaLayerFactory=S.DefaultTextLayerFactory=S.DefaultStructTreeLayerFactory=S.DefaultAnnotationLayerFactory=void 0;var P=W(2),C=W(4),L=W(5),E=W(7),m=W(8),v=W(9);S.DefaultAnnotationLayerFactory=class R{createAnnotationLayerBuilder(T,Z,G=null,$="",se=!0,y=C.NullL10n,k=!1,I=null,H=null,ee=null,z=null){return new P.AnnotationLayerBuilder({pageDiv:T,pdfPage:Z,imageResourcesPath:$,renderForms:se,linkService:new L.SimpleLinkService,l10n:y,annotationStorage:G,enableScripting:k,hasJSActionsProm
1ise:I,fieldObjectsPromise:ee,mouseState:H,annotationCanvasMap:z})}},S.DefaultStructTreeLayerFactory=class j{createStructTreeLayerBuilder(T){return new E.StructTreeLayerBuilder({pdfPage:T})}},S.DefaultTextLayerFactory=class M{createTextLayerBuilder(T,Z,G,$=!1,se,y){return new m.TextLayerBuilder({textLayerDiv:T,pageIndex:Z,viewport:G,enhanceTextSelection:$,eventBus:se,highlighter:y})}},S.DefaultXfaLayerFactory=class V{createXfaLayerBuilder(T,Z,G=null,$=null){return new v.XfaLayerBuilder({pageDiv:T,pdfPage:Z,annotationStorage:G,linkService:new L.SimpleLinkService,xfaHtml:$})}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.AnnotationLayerBuilder=void 0;var P=W(3),C=W(4);S.AnnotationLayerBuilder=class L{constructor({pageDiv:m,pdfPage:v,linkService:R,downloadManager:j,annotationStorage:M=null,imageResourcesPath:V="",renderForms:f=!0,l10n:T=C.NullL10n,enableScripting:Z=!1,hasJSActionsPromise:G=null,fieldObjectsPromise:$=null,mouseState:se=null,annotationCanvasMap:y=null}){this.pageDiv=m,this.pdfPage=v,this.linkService=R,this.downloadManager=j,this.imageResourcesPath=V,this.renderForms=f,this.l10n=T,this.annotationStorage=M,this.enableScripting=Z,this._hasJSActionsPromise=G,this._fieldObjectsPromise=$,this._mouseState=se,this._annotationCanvasMap=y,this.div=null,this._cancelled=!1}render(m){var v=this;return t(function*(R,j="display"){const[M,V=!1,f=null]=yield Promise.all([v.pdfPage.getAnnotations({intent:j}),v._hasJSActionsPromise,v._fieldObjectsPromise]);if(v._cancelled||0===M.length)return;const T={viewport:R.clone({dontFlip:!0}),div:v.div,annotations:M,page:v.pdfPage,imageResourcesPath:v.imageResourcesPath,renderForms:v.renderForms,linkService:v.linkService,downloadManager:v.downloadManager,annotationStorage:v.annotationStorage,enableScripting:v.enableScripting,hasJSActions:V,fieldObjects:f,mouseState:v._mouseState,annotationCanvasMap:v._annotationCanvasMap};v.div?P.AnnotationLayer.update(T):(v.div=document.createElement("div"),v.div.className="annotationLayer",v.pageDiv.appendChild(v.div),T.div=v.div,P.AnnotationLayer.render(T),v.l10n.translate(v.div))}).apply(this,arguments)}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},Q=>{let S;S="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:c(5943),Q.exports=S},(Q,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.NullL10n=void 0,S.fixupLangCode=function L(v){return C[null==v?void 0:v.toLowerCase()]||v},S.getL10nFallback=P;const W={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading\u2026",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function P(v,R){switch(v){case"find_match_count":v=`find_match_count[${1===R.total?"one":"other"}]`;break;case"find_match_count_limit":v=`find_match_count_limit[${1===R.limit?"one"
1:"other"}]`}return W[v]||""}const C={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"},m={getLanguage:()=>t(function*(){return"en-us"})(),getDirection:()=>t(function*(){return"ltr"})(),get(v){return t(function*(R,j=null,M=P(R,j)){return function E(v,R){return R?v.replace(/\{\{\s*(\w+)\s*\}\}/g,(j,M)=>M in R?R[M]:"{{"+M+"}}"):v}(M,j)}).apply(this,arguments)},translate:v=>t(function*(){})()};S.NullL10n=m},(Q,S,W)=>{var R,j,tE,V,PC;Object.defineProperty(S,"__esModule",{value:!0}),S.SimpleLinkService=S.PDFLinkService=S.LinkTarget=void 0;var P=W(6);const L={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function E(Z,{url:G,target:$,rel:se,enabled:y=!0}={}){if(!G||"string"!=typeof G)throw new Error('A valid "url" parameter must provided.');const k=(0,P.removeNullCharacters)(G);y?Z.href=Z.title=k:(Z.href="",Z.title=`Disabled: ${k}`,Z.onclick=()=>!1);let I="";switch($){case L.NONE:break;case L.SELF:I="_self";break;case L.BLANK:I="_blank";break;case L.PARENT:I="_parent";break;case L.TOP:I="_top"}Z.target=I,Z.rel="string"==typeof se?se:"noopener noreferrer nofollow"}S.LinkTarget=L;const T=class{constructor({eventBus:G,externalLinkTarget:$=null,externalLinkRel:se=null,ignoreDestinationZoom:y=!1}={}){dn(this,j),dn(this,R,new Map),this.eventBus=G,this.externalLinkTarget=$,this.externalLinkRel=se,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=y,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(G,$=null){this.baseUrl=$,this.pdfDocument=G,Fe(this,R).clear()}setViewer(G){this.pdfViewer=G}setHistory(G){this.pdfHistory=G}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(G){this.pdfViewer.currentPageNumber=G}get rotation(){return this.pdfViewer.pagesRotation}set rotation(G){this.pdfViewer.pagesRotation=G}goToDestination(G){var $=this;return t(function*(){var k;if(!$.pdfDocument)return;let se,y;"string"==typeof G?(se=G,y=yield $.pdfDocument.getDestination(G)):(se=null,y=yield G),Array.isArray(y)?bn(k=$,j,tE).call(k,G,se,y):console.error(`PDFLinkService.goToDestination: "${y}" is not a valid destination array, for dest="${G}".`)})()}goToPage(G){if(!this.pdfDocument)return;const $="string"==typeof G&&this.pdfViewer.pageLabelToPageNumber(G)||0|G;Number.isInteger($)&&$>0&&$<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage($)),this.pdfViewer.scrollPageIntoView({pageNumber:$})):console.error(`PDFLinkService.goToPage: "${G}" is not a valid page.`)}addLinkAttributes(G,$,se=!1){E(G,{url:$,target:se?L.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(G){if("string"==typeof G){if(G.length>0)return this.getAnchorUrl("#"+escape(G))}else if(Array.isArray(G)){const $=JSON.stringify(G);if($.length>0)return this.getAnchorUrl("#"+escape($))}return this.getAnchorUrl("")}getAnchorUrl(G){return(this.baseUrl||"")+G}setHash(G){var y;if(!this.pdfDocument)return;let $,se;if(G.includes("=")){const k=(0,P.parseQueryString)(G);if(k.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:k.get("search").replace(/"/g,""),phraseSearch:"true"===k.get("phrase")}),k.has("page")&&($=0|k.get("page")||1),k.has("zoom")){const I=k.get("zoom").split(","),H=I[0],ee=parseFloat(H);H.includes("Fit")?"Fit"===H||"FitB"===H?se=[null,{name:H}]:"FitH"===H||"FitBH"===H||"FitV"===H||"FitBV"===H?se=[null,{name:H},I.length>1?0|I[1]:null]:"FitR"===H?5!==I.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):se=[null,{name:H},0|I[1],0|I[2],0|I[3],0|I[4]]:console.error(`PDFLinkService.setHash: "${H}" is not a valid zoom value.`):se=[null,{name:"XYZ"},I.length>1?0|I[1]:null,I.length>2?0|I[2]:null,ee?ee/100:H]}se?this.pdfViewer.scrollPageIntoView({pageNumber:$||this.page,destArray:se,allowNegativeOffset:!0}):$&&(this.page=$),k.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:k.get("pagemode")}),k.has("nameddest")&&this.goToDestination(k.get("nameddest"))}else{se=unescape(G);
1try{se=JSON.parse(se),Array.isArray(se)||(se=se.toString())}catch(k){}if("string"==typeof se||bn(y=T,V,PC).call(y,se))return void this.goToDestination(se);console.error(`PDFLinkService.setHash: "${unescape(G)}" is not a valid destination.`)}}executeNamedAction(G){var $,se;switch(G){case"GoBack":null==($=this.pdfHistory)||$.back();break;case"GoForward":null==(se=this.pdfHistory)||se.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:G})}cachePageRef(G,$){if(!$)return;const se=0===$.gen?`${$.num}R`:`${$.num}R${$.gen}`;Fe(this,R).set(se,G)}_cachedPageNumber(G){if(!G)return null;const $=0===G.gen?`${G.num}R`:`${G.num}R${G.gen}`;return Fe(this,R).get($)||null}isPageVisible(G){return this.pdfViewer.isPageVisible(G)}isPageCached(G){return this.pdfViewer.isPageCached(G)}};let m=T;R=new WeakMap,j=new WeakSet,tE=function(G,$=null,se){const y=se[0];let k;if("object"==typeof y&&null!==y){if(k=this._cachedPageNumber(y),!k)return void this.pdfDocument.getPageIndex(y).then(I=>{this.cachePageRef(I+1,y),bn(this,j,tE).call(this,G,$,se)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${y}" is not a valid page reference, for dest="${G}".`)})}else{if(!Number.isInteger(y))return void console.error(`PDFLinkService.#goToDestinationHelper: "${y}" is not a valid destination reference, for dest="${G}".`);k=y+1}!k||k<1||k>this.pagesCount?console.error(`PDFLinkService.#goToDestinationHelper: "${k}" is not a valid page number, for dest="${G}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:$,explicitDest:se,pageNumber:k})),this.pdfViewer.scrollPageIntoView({pageNumber:k,destArray:se,ignoreDestinationZoom:this._ignoreDestinationZoom}))},V=new WeakSet,PC=function(G){if(!Array.isArray(G))return!1;const $=G.length;if($<2)return!1;const se=G[0];if(!("object"==typeof se&&Number.isInteger(se.num)&&Number.isInteger(se.gen)||Number.isInteger(se)&&se>=0))return!1;const y=G[1];if("object"!=typeof y||"string"!=typeof y.name)return!1;let k=!0;switch(y.name){case"XYZ":if(5!==$)return!1;break;case"Fit":case"FitB":return 2===$;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==$)return!1;break;case"FitR":if(6!==$)return!1;k=!1;break;default:return!1}for(let I=2;I<$;I++){const H=G[I];if(!("number"==typeof H||k&&null===H))return!1}return!0},dn(m,V),S.PDFLinkService=m,S.SimpleLinkService=class v{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(G){}get rotation(){return 0}set rotation(G){}goToDestination(G){return t(function*(){})()}goToPage(G){}addLinkAttributes(G,$,se=!1){E(G,{url:$,enabled:this.externalLinkEnabled})}getDestinationHash(G){return"#"}getAnchorUrl(G){return"#"}setHash(G){}executeNamedAction(G){}cachePageRef(G,$){}isPageVisible(G){return!0}isPageCached(G){return!0}}},(Q,S)=>{var Ot,RC;Object.defineProperty(S,"__esModule",{value:!0}),S.animationStarted=S.VERTICAL_PADDING=S.UNKNOWN_SCALE=S.TextLayerMode=S.SpreadMode=S.SidebarView=S.ScrollMode=S.SCROLLBAR_PADDING=S.RenderingStates=S.RendererType=S.ProgressBar=S.PresentationModeState=S.OutputScale=S.MIN_SCALE=S.MAX_SCALE=S.MAX_AUTO_SCALE=S.DEFAULT_SCALE_VALUE=S.DEFAULT_SCALE_DELTA=S.DEFAULT_SCALE=S.AutoPrintRegExp=void 0,S.apiPageLayoutToViewerModes=function Qe(Lt){let Jt=G.VERTICAL,Rt=$.NONE;switch(Lt){case"SinglePage":Jt=G.PAGE;break;case"OneColumn":break;case"TwoPageLeft":Jt=G.PAGE;case"TwoColumnLeft":Rt=$.ODD;break;case"TwoPageRight":Jt=G.PAGE;case"TwoColumnRight":Rt=$.EVEN}return{scrollMode:Jt,spreadMode:Rt}},S.apiPageModeToSidebarView=function Ct(Lt){switch(Lt){case"UseNone":return f.NONE;case"UseThumbs":return f.THUMBS;case"UseOutlines":return f.OUTLINE;case"UseAttachments":return f.ATTACHMENTS;case"UseOC":return f.LAYERS}return f.NONE},S.approximateFraction=function We(Lt){if(Math.floor(Lt)===Lt)return[Lt,1];const Jt=1/Lt;if(Jt>8)return[1,8];if(Math.floor(Jt)===Jt)return[1,Jt];const it=Lt>1?Jt:Lt;let ct,_t=0,ut=1,yt=1,ht=1;for(;;){const cn=_t+yt,gt=ut+ht;if(gt>8)break;it<=cn/gt?(yt=cn,ht=gt):(_t=cn,ut=gt)}return ct=it-_t/ut<yt/ht-it?it===Lt?[_t,ut]:[ut,_t]:it===Lt?[yt,ht]:[ht,yt],ct},S.backtrackBeforeAllVisibleElements=ge,S.binarySearchFirstItem=ve,S.getActiveOrFocusedElement=function Ye(){let Lt=document,Jt=Lt.activeElement||Lt.querySelector(":focus");for(;null==Jt?void 0:Jt.shadowRoot;)Lt=Jt.shadowRoot,Jt=Lt.activeElement||Lt.querySelector(":focus");return Jt},S.getPageSizeInches=function He({view:Lt,userUnit:Jt,rotate:Rt}){const[it,_t,ut,yt]=Lt,ht=Rt%180!=0,ct=(ut-it)/72*Jt,cn=(yt-_t)/72*Jt;return{width:ht?cn:ct,height:ht?ct:cn}},S.getVisibleElements=function O({scrollEl:Lt,views:Jt,sortByVisibility:Rt=!1,horizontal:it=!1,rtl:_t=!1}){const ut=Lt.scrollTop,yt=ut+Lt.clientHeight,ht=Lt.scrollLeft,ct=ht+Lt.clientWidth,at=[],St=new Set,sn=Jt.length;let ze=ve(Jt,it?function gt(wt){const bt=wt.div,Kt=bt.offsetLeft+bt.clientLeft;return _t?Kt<ct:Kt+bt.clientWidth>ht}:function cn(wt){const bt=wt.div;return bt.offsetTop+bt.clientTop+bt.clientHeight>ut});ze>0&&ze<sn&&!it&&(ze=ge(ze,Jt,ut));let nt=it?ct:-1;for(let wt=ze;wt<sn;wt++){const bt=Jt[wt],Kt=bt.div,Un=Kt.offsetLeft+Kt.clientLeft,vt=Kt.offsetTop+Kt.clientTop,tn=Kt.clientWidth,Cn=Kt.clientHeight,Sn=Un+tn,Nn=vt+Cn;if(-1===nt)Nn>=yt&&(nt=Nn);else if((it?Un:vt)>nt)break;
vendor: 9,275 bytes, line 1
1if(Nn<=ut||vt>=yt||Sn<=ht||Un>=ct)continue;const rr=Math.max(0,ut-vt)+Math.max(0,Nn-yt),nr=(tn-(Math.max(0,ht-Un)+Math.max(0,Sn-ct)))/tn;at.push({id:bt.id,x:Un,y:vt,view:bt,percent:(Cn-rr)/Cn*nr*100|0,widthPercent:100*nr|0}),St.add(bt.id)}const mt=at[0],Nt=at[at.length-1];return Rt&&at.sort(function(wt,bt){const Kt=wt.percent-bt.percent;return Math.abs(Kt)>.001?-Kt:wt.id-bt.id}),{first:mt,last:Nt,views:at,ids:St}},S.isPortraitOrientation=function ie(Lt){return Lt.width<=Lt.height},S.isValidRotation=function N(Lt){return Number.isInteger(Lt)&&Lt%90==0},S.isValidScrollMode=function K(Lt){return Number.isInteger(Lt)&&Object.values(G).includes(Lt)&&Lt!==G.UNKNOWN},S.isValidSpreadMode=function J(Lt){return Number.isInteger(Lt)&&Object.values($).includes(Lt)&&Lt!==$.UNKNOWN},S.noContextMenuHandler=function b(Lt){Lt.preventDefault()},S.normalizeWheelEventDelta=function A(Lt){let Jt=p(Lt);return 0===Lt.deltaMode?Jt/=900:1===Lt.deltaMode&&(Jt/=30),Jt},S.normalizeWheelEventDirection=p,S.parseQueryString=function H(Lt){const Jt=new Map;for(const[Rt,it]of new URLSearchParams(Lt))Jt.set(Rt.toLowerCase(),it);return Jt},S.removeNullCharacters=function oe(Lt,Jt=!1){return"string"!=typeof Lt?(console.error("The argument must be a string."),Lt):(Jt&&(Lt=Lt.replace(z," ")),Lt.replace(ee,""))},S.roundToDivide=function Re(Lt,Jt){const Rt=Lt%Jt;return 0===Rt?Lt:Math.round(Lt-Rt+Jt)},S.scrollIntoView=function k(Lt,Jt,Rt=!1){let it=Lt.offsetParent;if(!it)return void console.error("offsetParent is not set -- cannot scroll");let _t=Lt.offsetTop+Lt.clientTop,ut=Lt.offsetLeft+Lt.clientLeft;for(;it.clientHeight===it.scrollHeight&&it.clientWidth===it.scrollWidth||Rt&&(it.classList.contains("markedContent")||"hidden"===getComputedStyle(it).overflow);)if(_t+=it.offsetTop,ut+=it.offsetLeft,it=it.offsetParent,!it)return;Jt&&(void 0!==Jt.top&&(_t+=Jt.top),void 0!==Jt.left&&(ut+=Jt.left,it.scrollLeft=ut)),it.scrollTop=_t},S.watchScroll=function I(Lt,Jt){const Rt=function(ut){_t||(_t=window.requestAnimationFrame(function(){_t=null;const ht=Lt.scrollLeft,ct=it.lastX;ht!==ct&&(it.right=ht>ct),it.lastX=ht;const cn=Lt.scrollTop,gt=it.lastY;cn!==gt&&(it.down=cn>gt),it.lastY=cn,Jt(it)}))},it={right:!0,down:!0,lastX:Lt.scrollLeft,lastY:Lt.scrollTop,_eventHandler:Rt};let _t=null;return Lt.addEventListener("scroll",Rt,!0),it},S.DEFAULT_SCALE_VALUE="auto",S.DEFAULT_SCALE=1,S.DEFAULT_SCALE_DELTA=1.1,S.MIN_SCALE=.1,S.MAX_SCALE=10,S.UNKNOWN_SCALE=0,S.MAX_AUTO_SCALE=1.25,S.SCROLLBAR_PADDING=40,S.VERTICAL_PADDING=5,S.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},S.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const f={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};S.SidebarView=f,S.RendererType={CANVAS:"canvas",SVG:"svg"},S.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const G={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};S.ScrollMode=G;const $={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};S.SpreadMode=$,S.AutoPrintRegExp=/\bprint\s*\(/,S.OutputScale=class y{constructor(){const Jt=window.devicePixelRatio||1;this.sx=Jt,this.sy=Jt}get scaled(){return 1!==this.sx||1!==this.sy}};const ee=/\x00/g,z=/[\x01-\x1F]/g;function ve(Lt,Jt,Rt=0){let it=Rt,_t=Lt.length-1;if(_t<0||!Jt(Lt[_t]))return Lt.length;if(Jt(Lt[it]))return it;for(;it<_t;){const ut=it+_t>>1;Jt(Lt[ut])?_t=ut:it=ut+1}return it}function ge(Lt,Jt,Rt){if(Lt<2)return Lt;let it=Jt[Lt].div,_t=it.offsetTop+it.clientTop;_t>=Rt&&(it=Jt[Lt-1].div,_t=it.offsetTop+it.clientTop);for(let ut=Lt-2;ut>=0&&(it=Jt[ut].div,!(it.offsetTop+it.clientTop+it.clientHeight<=_t));--ut)Lt=ut;return Lt}function p(Lt){let Jt=Math.hypot(Lt.deltaX,Lt.deltaY);const Rt=Math.atan2(Lt.deltaY,Lt.deltaX);return-.25*Math.PI<Rt&&Rt<.75*Math.PI&&(Jt=-Jt),Jt}const he=new Promise(function(Lt){window.requestAnimationFrame(Lt)});S.animationStarted=he,Ot=new WeakSet,RC=function(){this._indeterminate?this.div.classList.add("indeterminate"):(this.div.classList.remove("indeterminate"),document.documentElement.style.setProperty("--progressBar-percent",`${this._percent}%`))},S.ProgressBar=class Ne{constructor(Jt){if(dn(this,Ot),arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");this.visible=!0,this.div=document.querySelector(Jt+" .progress"),this.bar=this.div.parentNode,this.percent=0}get percent(){return this._percent}set percent(Jt){this._indeterminate=isNaN(Jt),this._percent=function Oe(Lt,Jt,Rt){return Math.min(Math.max(Lt,Jt),Rt)}(Jt,0,100),bn(this,Ot,RC).call(this)}setWidth(Jt){if(!Jt)return;const it=Jt.parentNode.offsetWidth-Jt.offsetWidth;it>0&&document.documentElement.style.setProperty("--progressBar-end-offset",`${it}px`)}hide(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"))}show(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}},(Q,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.StructTreeLayerBuilder=void 0;const W={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},P=/^H(\d+)$/;S.StructTreeLayerBuilder=class C{constructor({pdfPage:E}){this.pdfPage=E}render(E){return this._walk(E)}_setAttributes(E,m){void 0!==E.alt&&m.setAttribute("aria-label",E.alt),void 0!==E.id&&m.setAttribute("aria-owns",E.id),void 0!==E.lang&&m.setAttribute("lang",E.lang)}_walk(E){if(!E)return null;const m=document.createElement("span");if("role"in E){const{role:v}=E,R=v.match(P);R?(m.setAttribute("role","heading"),m.setAttribute("aria-level",R[1])):W[v]&&m.setAttribute("role",W[v])}if(this._setAttributes(E,m),E.children)if(1===E.children.length&&"id"in E.children[0])this._setAttributes(E.children[0],m);else for(const v of E.children)m.appendChild(this._walk(v));return m}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.TextLayerBuilder=void 0;var P=W(3);S.TextLayerBuilder=class L{constructor({textLayerDiv:m,eventBus:v,pageIndex:R,viewport:j,highlighter:M=null,enhanceTextSelection:V=!1}){this.textLayerDiv=m,this.eventBus=v,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=R+1,this.viewport=j,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=M,this.enhanceTextSelection=V,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const m=document.createElement("div");m.className="endOfContent",this.textLayerDiv.appendChild(m)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(m=0){var R;if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,null==(R=this.highlighter)||R.setTextMapping(this.textDivs,this.textContentItemsStr);const v=document.createDocumentFragment();this.textLayerRenderTask=(0,P.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:v,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:m,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{var j;this.textLayerDiv.appendChild(v),this._finishRendering(),null==(j=this.highlighter)||j.enable()},function(j){})}cancel(){var m;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),null==(m=this.highlighter)||m.disable()}setTextContentStream(m){this.cancel(),this.textContentStream=m}setTextContent(m){this.cancel(),this.textContent=m}_bindMouse(){const m=this.textLayerDiv;let v=null;m.addEventListener("mousedown",R=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(v&&(clearTimeout(v),v=null));const j=m.querySelector(".endOfContent");if(!j)return;let M=R.target!==m;if(M=M&&"none"!==window.getComputedStyle(j).getPropertyValue("-moz-user-select"),M){const V=m.getBoundingClientRect(),f=Math.max(0,(R.pageY-V.top)/V.height);j.style.top=(100*f).toFixed(2)+"%"}j.classList.add("active")}),m.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(v=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),v=null},300));const R=m.querySelector(".endOfContent");!R||(R.style.top="",R.classList.remove("active"))})}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.XfaLayerBuilder=void 0;var P=W(3);S.XfaLayerBuilder=class C{constructor({pageDiv:E,pdfPage:m,annotationStorage:v=null,linkService:R,xfaHtml:j=null}){this.pageDiv=E,this.pdfPage=m,this.annotationStorage=v,this.linkService=R,this.xfaHtml=j,this.div=null,this._cancelled=!1}render(E,m="display"){if("print"===m){const v={viewport:E.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:m},R=document.createElement("div");
1this.pageDiv.appendChild(R),v.div=R;const j=P.XfaLayer.render(v);return Promise.resolve(j)}return this.pdfPage.getXfa().then(v=>{if(this._cancelled||!v)return{textDivs:[]};const R={viewport:E.clone({dontFlip:!0}),div:this.div,xfaHtml:v,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:m};return this.div?P.XfaLayer.update(R):(this.div=document.createElement("div"),this.pageDiv.appendChild(this.div),R.div=this.div,P.XfaLayer.render(R))}).catch(v=>{console.error(v)})}cancel(){this._cancelled=!0}hide(){!this.div||(this.div.hidden=!0)}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.PDFViewer=S.PDFSinglePageViewer=void 0;var P=W(6),C=W(11);S.PDFViewer=class L extends C.BaseViewer{},S.PDFSinglePageViewer=class E extends C.BaseViewer{_resetView(){super._resetView(),this._scrollMode=P.ScrollMode.PAGE,this._spreadMode=P.SpreadMode.NONE}set scrollMode(v){}_updateScrollMode(){}set spreadMode(v){}_updateSpreadMode(){}}},(Q,S,W)=>{var y,k,I,nE,ee,z,oe,ve,We,Re,He,ge,xC,b,MC,A,Mg,K,ay,ie,OC,Oe,rE,Ye,kC,Ct,NC,ln,FC;Object.defineProperty(S,"__esModule",{value:!0}),S.PagesCountLimit=S.PDFPageViewBuffer=S.BaseViewer=void 0;var P=W(3),C=W(6),L=W(2),E=W(4),m=W(12),v=W(14),R=W(5),j=W(7),M=W(15),V=W(8),f=W(9);const Z="enablePermissions",G={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};S.PagesCountLimit=G;class ${constructor(it){dn(this,I),dn(this,y,new Set),dn(this,k,0),Vn(this,k,it)}push(it){const _t=Fe(this,y);_t.has(it)&&_t.delete(it),_t.add(it),_t.size>Fe(this,k)&&bn(this,I,nE).call(this)}resize(it,_t=null){Vn(this,k,it);const ut=Fe(this,y);if(_t){const yt=ut.size;let ht=1;for(const ct of ut)if(_t.has(ct.id)&&(ut.delete(ct),ut.add(ct)),++ht>yt)break}for(;ut.size>Fe(this,k);)bn(this,I,nE).call(this)}has(it){return Fe(this,y).has(it)}[Symbol.iterator](){return Fe(this,y).keys()}}y=new WeakMap,k=new WeakMap,I=new WeakSet,nE=function(){const it=Fe(this,y).keys().next().value;null==it||it.destroy(),Fe(this,y).delete(it)},S.PDFPageViewBuffer=$;const Jt=class{constructor(it){var ut,yt,ht,ct;if(dn(this,ge),dn(this,b),dn(this,A),dn(this,K),dn(this,ie),dn(this,Oe),dn(this,Ye),dn(this,Ct),dn(this,ln),dn(this,ee,null),dn(this,z,P.AnnotationMode.ENABLE_FORMS),dn(this,oe,null),dn(this,ve,!1),dn(this,We,0),dn(this,Re,null),dn(this,He,null),this.constructor===Jt)throw new Error("Cannot initialize BaseViewer.");const _t="2.14.305";if(P.version!==_t)throw new Error(`The API version "${P.version}" does not match the Viewer version "${_t}".`);if(this.container=it.container,this.viewer=it.viewer||it.container.firstElementChild,"DIV"!==(null==(ut=this.container)?void 0:ut.tagName.toUpperCase())||"DIV"!==(null==(yt=this.viewer)?void 0:yt.tagName.toUpperCase()))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=it.eventBus,this.linkService=it.linkService||new R.SimpleLinkService,this.downloadManager=it.downloadManager||null,this.findController=it.findController||null,this._scriptingManager=it.scriptingManager||null,this.removePageBorders=it.removePageBorders||!1,this.textLayerMode=null!=(ht=it.textLayerMode)?ht:C.TextLayerMode.ENABLE,Vn(this,z,null!=(ct=it.annotationMode)?ct:P.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=it.imageResourcesPath||"",this.enablePrintAutoRotate=it.enablePrintAutoRotate||!1,this.renderer=it.renderer||C.RendererType.CANVAS,this.useOnlyCssZoom=it.useOnlyCssZoom||!1,this.maxCanvasPixels=it.maxCanvasPixels,this.l10n=it.l10n||E.NullL10n,Vn(this,ve,it.enablePermissions||!1),this.pageColors=it.pageColors||null,it.pageColors&&(!CSS.supports("color",it.pageColors.background)||!CSS.supports("color",it.pageColors.foreground))&&((it.pageColors.background||it.pageColors.foreground)&&console.warn("Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!it.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new v.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=it.renderingQueue,this._doc=document.documentElement,this.scroll=(0,C.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=C.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeight
1Css(),Promise.resolve().then(()=>{this.eventBus.dispatch("baseviewerinit",{source:this})})}get pagesCount(){return this._pages.length}getPageView(it){return this._pages[it]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every(function(it){return null==it?void 0:it.pdfPage})}get renderForms(){return Fe(this,z)===P.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(it){if(!Number.isInteger(it))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(it,!0)||console.error(`currentPageNumber: "${it}" is not a valid page.`)}_setCurrentPageNumber(it,_t=!1){var yt,ht;if(this._currentPageNumber===it)return _t&&bn(this,Oe,rE).call(this),!0;if(!(0<it&&it<=this.pagesCount))return!1;const ut=this._currentPageNumber;return this._currentPageNumber=it,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:it,pageLabel:null!=(ht=null==(yt=this._pageLabels)?void 0:yt[it-1])?ht:null,previous:ut}),_t&&bn(this,Oe,rE).call(this),!0}get currentPageLabel(){var it,_t;return null!=(_t=null==(it=this._pageLabels)?void 0:it[this._currentPageNumber-1])?_t:null}set currentPageLabel(it){if(!this.pdfDocument)return;let _t=0|it;if(this._pageLabels){const ut=this._pageLabels.indexOf(it);ut>=0&&(_t=ut+1)}this._setCurrentPageNumber(_t,!0)||console.error(`currentPageLabel: "${it}" is not a valid page.`)}get currentScale(){return this._currentScale!==C.UNKNOWN_SCALE?this._currentScale:C.DEFAULT_SCALE}set currentScale(it){if(isNaN(it))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(it,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(it){!this.pdfDocument||this._setScale(it,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(it){if(!(0,C.isValidRotation)(it))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||((it%=360)<0&&(it+=360),this._pagesRotation===it))return;this._pagesRotation=it;const _t=this._currentPageNumber,ut={rotation:it};for(const yt of this._pages)yt.update(ut);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:it,pageNumber:_t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}setDocument(it){var _t=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=it,!it)return;const ut=it.isPureXfa,yt=it.numPages,ht=it.getPage(1),ct=it.getOptionalContentConfig(),cn=Fe(this,ve)?it.getPermissions():Promise.resolve();if(yt>G.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const gt=this._scrollMode=C.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:gt})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:yt})},()=>{}),this._onBeforeDraw=gt=>{const at=this._pages[gt.pageNumber-1];!at||Fe(this,ee).push(at)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=gt=>{gt.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:gt.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,Fe(this,He)&&(document.removeEventListener("visibilitychange",Fe(this,He)),Vn(this,He,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([ht,cn]).then(([gt,at])=>{if(it!==this.pdfDocument)return;this._firstPageCapability.resolve(gt),this._optionalContentConfigPromise=ct,bn(this,ge,xC).call(this,at);const St=this._scrollMode===C.ScrollMode.PAGE?null:this.viewer,sn=this.currentScale,ze=gt.getViewport({scale:sn*P.PixelsPerInch.PDF_TO_CSS_UNITS}),nt=this.textLayerMode===C.TextLayerMode.DISABLE||ut?null:this,mt=Fe(this,z)!==P.AnnotationMode.DISABLE?this:null,Nt=ut?this:null;for(let bt=1;bt<=yt;
1++bt){const Kt=new m.PDFPageView({container:St,eventBus:this.eventBus,id:bt,scale:sn,defaultViewport:ze.clone(),optionalContentConfigPromise:ct,renderingQueue:this.renderingQueue,textLayerFactory:nt,textLayerMode:this.textLayerMode,annotationLayerFactory:mt,annotationMode:Fe(this,z),xfaLayerFactory:Nt,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(Kt)}const wt=this._pages[0];wt&&(wt.setPdfPage(gt),this.linkService.cachePageRef(1,gt.ref)),this._scrollMode===C.ScrollMode.PAGE?bn(this,A,Mg).call(this):this._spreadMode!==C.SpreadMode.NONE&&this._updateSpreadMode(),bn(this,b,MC).call(this).then(t(function*(){if(_t.findController&&_t.findController.setDocument(it),_t._scriptingManager&&_t._scriptingManager.setDocument(it),it.loadingParams.disableAutoFetch||yt>G.FORCE_LAZY_PAGE_INIT)return void _t._pagesCapability.resolve();let bt=yt-1;if(bt<=0)_t._pagesCapability.resolve();else for(let Kt=2;Kt<=yt;++Kt){const Un=it.getPage(Kt).then(vt=>{const tn=_t._pages[Kt-1];tn.pdfPage||tn.setPdfPage(vt),_t.linkService.cachePageRef(Kt,vt.ref),0==--bt&&_t._pagesCapability.resolve()},vt=>{console.error(`Unable to get page ${Kt} to initialize viewer`,vt),0==--bt&&_t._pagesCapability.resolve()});Kt%G.PAUSE_EAGER_PAGE_INIT==0&&(yield Un)}})),this.eventBus.dispatch("pagesinit",{source:this}),it.getMetadata().then(({info:bt})=>{it===this.pdfDocument&&bt.Language&&(this.viewer.lang=bt.Language)}),this.defaultRenderingQueue&&this.update()}).catch(gt=>{console.error("Unable to initialize viewer",gt),this._pagesCapability.reject(gt)})}setPageLabels(it){var _t,ut;if(this.pdfDocument){it?Array.isArray(it)&&this.pdfDocument.numPages===it.length?this._pageLabels=it:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let yt=0,ht=this._pages.length;yt<ht;yt++)this._pages[yt].setPageLabel(null!=(ut=null==(_t=this._pageLabels)?void 0:_t[yt])?ut:null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=C.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,Vn(this,ee,new $(10)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,P.createPromiseCapability)(),this._onePageRenderedCapability=(0,P.createPromiseCapability)(),this._pagesCapability=(0,P.createPromiseCapability)(),this._scrollMode=C.ScrollMode.VERTICAL,this._previousScrollMode=C.ScrollMode.UNKNOWN,this._spreadMode=C.SpreadMode.NONE,Vn(this,Re,{previousPageNumber:1,scrollDown:!0,pages:[]}),this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),Fe(this,He)&&(document.removeEventListener("visibilitychange",Fe(this,He)),Vn(this,He,null)),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(Z),null!==Fe(this,oe)&&(Vn(this,z,Fe(this,oe)),Vn(this,oe,null))}_scrollUpdate(){0!==this.pagesCount&&this.update()}_setScaleUpdatePages(it,_t,ut=!1,yt=!1){if(this._currentScaleValue=_t.toString(),bn(this,ie,OC).call(this,it))return void(yt&&this.eventBus.dispatch("scalechanging",{source:this,scale:it,presetValue:_t}));this._doc.style.setProperty("--zoom-factor",it);const ht={scale:it};for(const ct of this._pages)ct.update(ht);if(this._currentScale=it,!ut){let cn,ct=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(ct=this._location.pageNumber,cn=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:ct,destArray:cn,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:it,presetValue:yt?_t:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==C.SpreadMode.NONE&&this._scrollMode!==C.ScrollMode.HORIZONTAL?2:1}_setScale(it,_t=!1){let ut=parseFloat(it);if(ut>0)this._setScaleUpdatePages(ut,it,_t,!1);else{const yt=this._pages[this._currentPageNumber-1];if(!yt)return;let ht=C.SCROLLBAR_PADDING,ct=C.VERTICAL_PADDING;this.isInPresentationMode?ht=ct=4:this.removePageBorders?ht=ct=0:this._scrollMode===C.ScrollMode.HORIZONTAL&&([ht,ct]=[ct,ht]);const cn=(this.container.clientWidth-ht)/yt.width*yt.scale/this._pageWidthScaleFactor,gt=(this.container.clientHeight-ct)/yt.height*yt.scale;switch(it){case"page-actual":ut=1;break;case"page-width":ut=cn;break;case"page-height":ut=gt;break;case"page-fit":ut=Math.min(cn,gt);break;case"auto":const at=(0,C.isPortraitOrientation)(yt)?cn:Math.min(gt,cn);ut=Math.min(C.MAX_AUTO_SCALE,at);break;default:return void console.error(`_setScale: "${it}" is an unknown zoom value.`)}this._setScaleUpdatePages(ut,it,_t,!0)}}pageLabelToPageNumber(it){if(!this._pageLabels)return null;const _t=this._pageLabels.indexOf(it);return _t<0?null:_t+1}
vendor: 4,174 bytes, line 1
1scrollPageIntoView({pageNumber:it,destArray:_t=null,allowNegativeOffset:ut=!1,ignoreDestinationZoom:yt=!1}){if(!this.pdfDocument)return;const ht=Number.isInteger(it)&&this._pages[it-1];if(!ht)return void console.error(`scrollPageIntoView: "${it}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!_t)return void this._setCurrentPageNumber(it,!0);let St,sn,ct=0,cn=0,gt=0,at=0;const ze=ht.rotation%180!=0,nt=(ze?ht.height:ht.width)/ht.scale/P.PixelsPerInch.PDF_TO_CSS_UNITS,mt=(ze?ht.width:ht.height)/ht.scale/P.PixelsPerInch.PDF_TO_CSS_UNITS;let Nt=0;switch(_t[1].name){case"XYZ":ct=_t[2],cn=_t[3],Nt=_t[4],ct=null!==ct?ct:0,cn=null!==cn?cn:mt;break;case"Fit":case"FitB":Nt="page-fit";break;case"FitH":case"FitBH":cn=_t[2],Nt="page-width",null===cn&&this._location?(ct=this._location.left,cn=this._location.top):("number"!=typeof cn||cn<0)&&(cn=mt);break;case"FitV":case"FitBV":ct=_t[2],gt=nt,at=mt,Nt="page-height";break;case"FitR":ct=_t[2],cn=_t[3],gt=_t[4]-ct,at=_t[5]-cn,St=(this.container.clientWidth-(this.removePageBorders?0:C.SCROLLBAR_PADDING))/gt/P.PixelsPerInch.PDF_TO_CSS_UNITS,sn=(this.container.clientHeight-(this.removePageBorders?0:C.VERTICAL_PADDING))/at/P.PixelsPerInch.PDF_TO_CSS_UNITS,Nt=Math.min(Math.abs(St),Math.abs(sn));break;default:return void console.error(`scrollPageIntoView: "${_t[1].name}" is not a valid destination type.`)}if(yt||(Nt&&Nt!==this._currentScale?this.currentScaleValue=Nt:this._currentScale===C.UNKNOWN_SCALE&&(this.currentScaleValue=C.DEFAULT_SCALE_VALUE)),"page-fit"===Nt&&!_t[4])return void bn(this,K,ay).call(this,ht);const wt=[ht.viewport.convertToViewportPoint(ct,cn),ht.viewport.convertToViewportPoint(ct+gt,cn+at)];let bt=Math.min(wt[0][0],wt[1][0]),Kt=Math.min(wt[0][1],wt[1][1]);ut||(bt=Math.max(bt,0),Kt=Math.max(Kt,0)),bn(this,K,ay).call(this,ht,{left:bt,top:Kt})}_updateLocation(it){const _t=this._currentScale,ut=this._currentScaleValue,yt=parseFloat(ut)===_t?Math.round(1e4*_t)/100:ut,ht=it.id,cn=this.container,gt=this._pages[ht-1].getPagePoint(cn.scrollLeft-it.x,cn.scrollTop-it.y),at=Math.round(gt[0]),St=Math.round(gt[1]);let sn=`#page=${ht}`;this.isInPresentationMode||(sn+=`&zoom=${yt},${at},${St}`),this._location={pageNumber:ht,scale:yt,top:St,left:at,rotation:this._pagesRotation,pdfOpenParams:sn}}update(){const it=this._getVisiblePages(),_t=it.views,ut=_t.length;if(0===ut)return;const yt=Math.max(10,2*ut+1);Fe(this,ee).resize(yt,it.ids),this.renderingQueue.renderHighestPriority(it);const ht=this._spreadMode===C.SpreadMode.NONE&&(this._scrollMode===C.ScrollMode.PAGE||this._scrollMode===C.ScrollMode.VERTICAL),ct=this._currentPageNumber;let cn=!1;for(const gt of _t){if(gt.percent<100)break;if(gt.id===ct&&ht){cn=!0;break}}this._setCurrentPageNumber(cn?ct:_t[0].id),this._updateLocation(it.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(it){return this.container.contains(it)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===C.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===C.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const it=this._scrollMode===C.ScrollMode.PAGE?Fe(this,Re).pages:this._pages,_t=this._scrollMode===C.ScrollMode.HORIZONTAL;return(0,C.getVisibleElements)({scrollEl:this.container,views:it,sortByVisibility:!0,horizontal:_t,rtl:_t&&this._isContainerRtl})}isPageVisible(it){return!!this.pdfDocument&&(Number.isInteger(it)&&it>0&&it<=this.pagesCount?this._getVisiblePages().ids.has(it):(console.error(`isPageVisible: "${it}" is not a valid page.`),!1))}isPageCached(it){if(!this.pdfDocument)return!1;if(!(Number.isInteger(it)&&it>0&&it<=this.pagesCount))return console.error(`isPageCached: "${it}" is not a valid page.`),!1;const _t=this._pages[it-1];return Fe(this,ee).has(_t)}
1cleanup(){for(const it of this._pages)it.renderingState!==C.RenderingStates.FINISHED&&it.reset()}_cancelRendering(){for(const it of this._pages)it.cancelRendering()}forceRendering(it){const _t=it||this._getVisiblePages(),ut=bn(this,Ct,NC).call(this,_t),ht=this.renderingQueue.getHighestPriority(_t,this._pages,ut,this._spreadMode!==C.SpreadMode.NONE&&this._scrollMode!==C.ScrollMode.HORIZONTAL);return bn(this,ln,FC).call(this,_t.ids),!!ht&&(bn(this,Ye,kC).call(this,ht).then(()=>{this.renderingQueue.renderView(ht)}),!0)}createTextLayerBuilder(it,_t,ut,yt=!1,ht,ct){return new V.TextLayerBuilder({textLayerDiv:it,eventBus:ht,pageIndex:_t,viewport:ut,enhanceTextSelection:!this.isInPresentationMode&&yt,highlighter:ct})}createTextHighlighter(it,_t){return new M.TextHighlighter({eventBus:_t,pageIndex:it,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(it,_t,ut=null,yt="",ht=!0,ct=E.NullL10n,cn=null,gt=null,at=null,St=null,sn=null){var ze,nt,mt,Nt;return new L.AnnotationLayerBuilder({pageDiv:it,pdfPage:_t,annotationStorage:ut||(null==(ze=this.pdfDocument)?void 0:ze.annotationStorage),imageResourcesPath:yt,renderForms:ht,linkService:this.linkService,downloadManager:this.downloadManager,l10n:ct,enableScripting:null!=cn?cn:this.enableScripting,hasJSActionsPromise:gt||(null==(nt=this.pdfDocument)?void 0:nt.hasJSActions()),fieldObjectsPromise:St||(null==(mt=this.pdfDocument)?void 0:mt.getFieldObjects()),mouseState:at||(null==(Nt=this._scriptingManager)?void 0:Nt.mouseState),annotationCanvasMap:sn})}createXfaLayerBuilder(it,_t,ut=null){var yt;return new f.XfaLayerBuilder({pageDiv:it,pdfPage:_t,annotationStorage:ut||(null==(yt=this.pdfDocument)?void 0:yt.annotationStorage),linkService:this.linkService})}createStructTreeLayerBuilder(it){return new j.StructTreeLayerBuilder({pdfPage:it})}get hasEqualPageSizes(){const it=this._pages[0];for(let _t=1,ut=this._pages.length;_t<ut;++_t){const yt=this._pages[_t];if(yt.width!==it.width||yt.height!==it.height)return!1}return!0}getPagesOverview(){return this._pages.map(it=>{const _t=it.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,C.isPortraitOrientation)(_t)?{width:_t.width,height:_t.height,rotation:_t.rotation}:{width:_t.height,height:_t.width,rotation:(_t.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)}set optionalContentConfigPromise(it){if(!(it instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${it}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=it;const _t={optionalContentConfigPromise:it};for(const ut of this._pages)ut.update(_t);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:it})}get scrollMode(){return this._scrollMode}set scrollMode(it){if(this._scrollMode!==it){if(!(0,C.isValidScrollMode)(it))throw new Error(`Invalid scroll mode: ${it}`);this.pagesCount>G.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=it,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:it}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(it=null){const _t=this._scrollMode,ut=this.viewer;ut.classList.toggle("scrollHorizontal",_t===C.ScrollMode.HORIZONTAL),ut.classList.toggle("scrollWrapped",_t===C.ScrollMode.WRAPPED),this.pdfDocument&&it&&(_t===C.ScrollMode.PAGE?bn(this,A,Mg).call(this):this._previousScrollMode===C.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(it,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(it){if(this._spreadMode!==it){if(!(0,C.isValidSpreadMode)(it))throw new Error(`Invalid spread mode: ${it}`);this._spreadMode=it,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:it}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(it=null){if(!this.pdfDocument)return;const _t=this.viewer,ut=this._pages;if(this._scrollMode===C.ScrollMode.PAGE)bn(this,A,Mg).call(this);else if(_t.textContent="",this._spreadMode===C.SpreadMode.NONE)for(const yt of this._pages)_t.appendChild(yt.div);else{const yt=this._spreadMode-1;let ht=null;for(let ct=0,cn=ut.length;ct<cn;++ct)null===ht?(ht=document.createElement("div"),ht.className="spread",_t.appendChild(ht)):ct%2===yt&&(ht=ht.cloneNode(!1),_t.appendChild(ht)),ht.appendChild(ut[ct].div)}!it||(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(it,!0),this.update())}_getPageAdvance(it,_t=!1){switch(this._scrollMode){case C.ScrollMode.WRAPPED:{const{views:ut}=this._getVisiblePages(),yt=new Map;for(const{id:ht,y:ct,percent:cn,widthPercent:gt}of ut){if(0===cn||gt<100)continue;let at=yt.get(ct);at||yt.set(ct,at||(at=[])),at.push(ht)}for(const ht of yt.values()){const ct=ht.indexOf(it);if(-1===ct)continue;const cn=ht.length;if(1===cn)break;if(_t)for(let gt=ct-1,at=0;gt>=at;gt--){const sn=ht[gt+1]-1;if(ht[gt]<sn)return it-sn}else for(let gt=ct+1,at=cn;gt<at;gt++){const sn=ht[gt-1]+1;if(ht[gt]>sn)return sn-it}if(_t){const gt=ht[0];if(gt<it)return it-gt+1}else{const gt=ht[cn-1];if(gt>it)return gt-it+1}break}break}case C.ScrollMode.HORIZONTAL:break;case C.ScrollMode.PAGE:case C.ScrollMode.VERTICAL:{if(this._spreadMode===C.SpreadMode.NONE)break;const ut=this._spreadMode-1;if(_t&&it%2!==ut)break;if(!_t&&it%2===ut)break;const{views:yt}=this._getVisiblePages(),ht=_t?it-1:it+1;for(const{id:ct,percent:cn,widthPercent:gt}of yt)if(ct===ht){if(cn>0&&100===gt)return 2;break}break}}return 1}nextPage(){const it=this._currentPageNumber,_t=this.pagesCount;if(it>=_t)return!1;const ut=this._getPageAdvance(it,!1)||1;return this.currentPageNumber=Math.min(it+ut,_t),!0}previousPage(){const it=this._currentPageNumber;if(it<=1)return!1;const _t=this._getPageAdvance(it,!0)||1;return this.currentPageNumber=Math.max(it-_t,1),!0}increaseScale(it=1){let _t=this._currentScale;do{_t=(_t*C.DEFAULT_SCALE_DELTA).toFixed(2),_t=Math.ceil(10*_t)/10,_t=Math.min(C.MAX_SCALE,_t)}while(--it>0&&_t<C.MAX_SCALE);this.currentScaleValue=_t}decreaseScale(it=1){let _t=this._currentScale;do{_t=(_t/C.DEFAULT_SCALE_DELTA).toFixed(2),_t=Math.floor(10*_t)/10,_t=Math.max(C.MIN_SCALE,_t)}while(--it>0&&_t>C.MIN_SCALE);this.currentScaleValue=_t}
1updateContainerHeightCss(){const it=this.container.clientHeight;it!==Fe(this,We)&&(Vn(this,We,it),this._doc.style.setProperty("--viewer-container-height",`${it}px`))}};let se=Jt;ee=new WeakMap,z=new WeakMap,oe=new WeakMap,ve=new WeakMap,We=new WeakMap,Re=new WeakMap,He=new WeakMap,ge=new WeakSet,xC=function(it){!it||(it.includes(P.PermissionFlag.COPY)||this.viewer.classList.add(Z),!it.includes(P.PermissionFlag.MODIFY_ANNOTATIONS)&&!it.includes(P.PermissionFlag.FILL_INTERACTIVE_FORMS)&&Fe(this,z)===P.AnnotationMode.ENABLE_FORMS&&(Vn(this,oe,Fe(this,z)),Vn(this,z,P.AnnotationMode.ENABLE)))},b=new WeakSet,MC=function(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const it=new Promise(_t=>{Vn(this,He,()=>{"hidden"===document.visibilityState&&(_t(),document.removeEventListener("visibilitychange",Fe(this,He)),Vn(this,He,null))}),document.addEventListener("visibilitychange",Fe(this,He))});return Promise.race([this._onePageRenderedCapability.promise,it])},A=new WeakSet,Mg=function(){if(this._scrollMode!==C.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const it=this._currentPageNumber,_t=Fe(this,Re),ut=this.viewer;if(ut.textContent="",_t.pages.length=0,this._spreadMode!==C.SpreadMode.NONE||this.isInPresentationMode){const yt=new Set,ht=this._spreadMode-1;-1===ht?yt.add(it-1):it%2!==ht?(yt.add(it-1),yt.add(it)):(yt.add(it-2),yt.add(it-1));const ct=document.createElement("div");if(ct.className="spread",this.isInPresentationMode){const cn=document.createElement("div");cn.className="dummyPage",ct.appendChild(cn)}for(const cn of yt){const gt=this._pages[cn];!gt||(ct.appendChild(gt.div),_t.pages.push(gt))}ut.appendChild(ct)}else{const yt=this._pages[it-1];ut.appendChild(yt.div),_t.pages.push(yt)}_t.scrollDown=it>=_t.previousPageNumber,_t.previousPageNumber=it},K=new WeakSet,ay=function(it,_t=null){const{div:ut,id:yt}=it;if(this._scrollMode===C.ScrollMode.PAGE&&(this._setCurrentPageNumber(yt),bn(this,A,Mg).call(this),this.update()),!_t&&!this.isInPresentationMode){const ht=ut.offsetLeft+ut.clientLeft,ct=ht+ut.clientWidth,{scrollLeft:cn,clientWidth:gt}=this.container;(this._scrollMode===C.ScrollMode.HORIZONTAL||ht<cn||ct>cn+gt)&&(_t={left:0,top:0})}(0,C.scrollIntoView)(ut,_t)},ie=new WeakSet,OC=function(it){return it===this._currentScale||Math.abs(it-this._currentScale)<1e-15},Oe=new WeakSet,rE=function(){const it=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),bn(this,K,ay).call(this,it)},Ye=new WeakSet,kC=function(it){var _t=this;return t(function*(){var ut,yt;if(it.pdfPage)return it.pdfPage;try{const ht=yield _t.pdfDocument.getPage(it.id);return it.pdfPage||it.setPdfPage(ht),(null==(yt=(ut=_t.linkService)._cachedPageNumber)?void 0:yt.call(ut,ht.ref))||_t.linkService.cachePageRef(it.id,ht.ref),ht}catch(ht){return console.error("Unable to get page for page view",ht),null}})()},Ct=new WeakSet,NC=function(it){var _t,ut;if(1===(null==(_t=it.first)?void 0:_t.id))return!0;if((null==(ut=it.last)?void 0:ut.id)===this.pagesCount)return!1;switch(this._scrollMode){case C.ScrollMode.PAGE:return Fe(this,Re).scrollDown;case C.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down},ln=new WeakSet,FC=function(it){for(const _t of it){const ut=this._pages[_t-1];null==ut||ut.toggleLoadingIconSpinner(!0)}for(const _t of Fe(this,ee))it.has(_t.id)||_t.toggleLoadingIconSpinner(!1)},S.BaseViewer=se},(Q,S,W)=>{var R;Object.defineProperty(S,"__esModule",{value:!0}),S.PDFPageView=void 0;var P=W(3),C=W(6),L=W(13),E=W(4);const m=L.compatibilityParams.maxCanvasPixels||16777216;R=new WeakMap,S.PDFPageView=class v{constructor(M){var Z,G,$,se;dn(this,R,P.AnnotationMode.ENABLE_FORMS);const V=M.container,f=M.defaultViewport;this.id=M.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=M.scale||C.DEFAULT_SCALE,this.viewport=f,this.pdfPageRotate=f.rotation,this._optionalContentConfigPromise=M.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=null!=(Z=M.textLayerMode)?Z:C.TextLayerMode.ENABLE,Vn(this,R,null!=(G=M.annotationMode)?G:P.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=M.imageResourcesPath||"",this.useOnlyCssZoom=M.useOnlyCssZoom||!1,this.maxCanvasPixels=M.maxCanvasPixels||m,this.pageColors=M.pageColors||null,this.eventBus=M.eventBus,this.renderingQueue=M.renderingQueue,this.textLayerFactory=M.textLayerFactory,this.annotationLayerFactory=M.annotationLayerFactory,this.xfaLayerFactory=M.xfaLayerFactory,this.textHighlighter=null==($=M.textHighlighterFactory)?void 0:$.createTextHighlighter(this.id-1,this.eventBus),this.structTreeLayerFactory=M.structTreeLayerFactory,this.renderer=M.renderer||C.RendererType.CANVAS,this.l10n=M.l10n||E.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=C.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!(null==(se=this.renderingQueue)?void 0:se.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.textLayer=null,this.zoomL
vendor: 6,194 bytes, line 1
1ayer=null,this.xfaLayer=null,this.structTreeLayer=null;const T=document.createElement("div");T.className="page",T.style.width=Math.floor(this.viewport.width)+"px",T.style.height=Math.floor(this.viewport.height)+"px",T.setAttribute("data-page-number",this.id),T.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(y=>{T.setAttribute("aria-label",y)}),this.div=T,null==V||V.appendChild(T)}setPdfPage(M){this.pdfPage=M,this.pdfPageRotate=M.rotate,this.viewport=M.getViewport({scale:this.scale*P.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}_renderAnnotationLayer(){var M=this;return t(function*(){let V=null;try{yield M.annotationLayer.render(M.viewport,"display")}catch(f){V=f}finally{M.eventBus.dispatch("annotationlayerrendered",{source:M,pageNumber:M.id,error:V})}})()}_renderXfaLayer(){var M=this;return t(function*(){let V=null;try{const f=yield M.xfaLayer.render(M.viewport,"display");M.textHighlighter&&M._buildXfaTextContentItems(f.textDivs)}catch(f){V=f}finally{M.eventBus.dispatch("xfalayerrendered",{source:M,pageNumber:M.id,error:V})}})()}_buildXfaTextContentItems(M){var V=this;return t(function*(){const f=yield V.pdfPage.getTextContent(),T=[];for(const Z of f.items)T.push(Z.str);V.textHighlighter.setTextMapping(M,T),V.textHighlighter.enable()})()}_resetZoomLayer(M=!1){if(!this.zoomLayer)return;const V=this.zoomLayer.firstChild;this.paintedViewportMap.delete(V),V.width=0,V.height=0,M&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:M=!1,keepAnnotationLayer:V=!1,keepXfaLayer:f=!1}={}){var y,k;this.cancelRendering({keepAnnotationLayer:V,keepXfaLayer:f}),this.renderingState=C.RenderingStates.INITIAL;const T=this.div;T.style.width=Math.floor(this.viewport.width)+"px",T.style.height=Math.floor(this.viewport.height)+"px";const Z=T.childNodes,G=M&&this.zoomLayer||null,$=V&&(null==(y=this.annotationLayer)?void 0:y.div)||null,se=f&&(null==(k=this.xfaLayer)?void 0:k.div)||null;for(let I=Z.length-1;I>=0;I--){const H=Z[I];switch(H){case G:case $:case se:continue}H.remove()}T.removeAttribute("data-loaded"),$&&this.annotationLayer.hide(),se&&this.xfaLayer.hide(),G||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(I=>{var H;null==(H=this.loadingIconDiv)||H.setAttribute("aria-label",I)}),T.appendChild(this.loadingIconDiv)}update({scale:M=0,rotation:V=null,optionalContentConfigPromise:f=null}){if(this.scale=M||this.scale,"number"==typeof V&&(this.rotation=V),f instanceof Promise&&(this._optionalContentConfigPromise=f),this.viewport=this.viewport.clone({scale:this.scale*P.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this._isStandalone){const{style:G}=document.documentElement;G.setProperty("--zoom-factor",this.scale)}if(this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let Z=!1;if(this.canvas&&this.maxCanvasPixels>0){const G=this.outputScale;(Math.floor(this.viewport.width)*G.sx|0)*(Math.floor(this.viewport.height)*G.sy|0)>this.maxCanvasPixels&&(Z=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&Z)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:M=!1,keepXfaLayer:V=!1}={}){var f;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!M||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.xfaLayer&&(!V||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,null==(f=this.textHighlighter)||f.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:M,redrawAnnotationLayer:V=!1,redrawXfaLayer:f=!1}){const T=this.viewport.width,Z=this.viewport.height,G=this.div;M.style.width=M.parentNode.style.width=G.style.width=Math.floor(T)+"px",M.style.height=M.parentNode.style.height=G.style.height=Math.floor(Z)+"px";const $=this.viewport.rotation-this.paintedViewportMap.get(M).rotation,se=Math.abs($);let y=1,k=1;if((90===se||270===se)&&(y=Z/T,k=T/Z),M.style.transform=`rotate(${$}deg) scale(${y}, ${k})`,this.textLayer){const I=this.textLayer.viewport,ee=Math.abs(this.viewport.rotation-I.rotation);let z=T/I.width;(90===ee||270===ee)&&(z=T/I.height);const oe=this.textLayer.textLayerDiv;let ve,We;switch(ee){case 0:ve=We=0;break;case 90:ve=0,We="-"+oe.style.height;break;case 180:ve="-"+oe.style.width,We="-"+oe.style.height;break;case 270:ve="-"+oe.style.width,We=0;break;default:console.error("Bad rotation value.")}oe.style.transform=`rotate(${ee}deg) scale(${z}) translate(${ve}, ${We})`,oe.style.transformOrigin="0% 0%"}V&&this.annotationLayer&&this._renderAnnotationLayer(),f&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(M,V){return this.viewport.convertToPdfPoint(M,V)}toggleLoadingIconSpinner(M=!1){var V;null==(V=this.loadingIconDiv)||V.classList.toggle("notVisible",!M)}draw(){var k,I,H,M=this;
1this.renderingState!==C.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:V,pdfPage:f}=this;if(!f)return this.renderingState=C.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=C.RenderingStates.RUNNING;const T=document.createElement("div");T.style.width=V.style.width,T.style.height=V.style.height,T.classList.add("canvasWrapper"),(null==(k=this.annotationLayer)?void 0:k.div)?V.insertBefore(T,this.annotationLayer.div):V.appendChild(T);let Z=null;if(this.textLayerMode!==C.TextLayerMode.DISABLE&&this.textLayerFactory){const ee=document.createElement("div");ee.className="textLayer",ee.style.width=T.style.width,ee.style.height=T.style.height,(null==(I=this.annotationLayer)?void 0:I.div)?V.insertBefore(ee,this.annotationLayer.div):V.appendChild(ee),Z=this.textLayerFactory.createTextLayerBuilder(ee,this.id-1,this.viewport,this.textLayerMode===C.TextLayerMode.ENABLE_ENHANCE,this.eventBus,this.textHighlighter)}this.textLayer=Z,Fe(this,R)!==P.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(V,f,null,this.imageResourcesPath,Fe(this,R)===P.AnnotationMode.ENABLE_FORMS,this.l10n,null,null,null,null,this._annotationCanvasMap))),(null==(H=this.xfaLayer)?void 0:H.div)&&V.appendChild(this.xfaLayer.div);let G=null;this.renderingQueue&&(G=ee=>
vendor: 5,277 bytes, line 1
1{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=C.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=C.RenderingStates.RUNNING,ee()});ee()});const $=function(){var ee=t(function*(z=null){if(se===M.paintTask&&(M.paintTask=null),z instanceof P.RenderingCancelledException)M._renderError=null;else if(M._renderError=z,M.renderingState=C.RenderingStates.FINISHED,M.loadingIconDiv&&(M.loadingIconDiv.remove(),delete M.loadingIconDiv),M._resetZoomLayer(!0),M.eventBus.dispatch("pagerendered",{source:M,pageNumber:M.id,cssTransform:!1,timestamp:performance.now(),error:M._renderError}),z)throw z});return function(){return ee.apply(this,arguments)}}(),se=this.renderer===C.RendererType.SVG?this.paintOnSvg(T):this.paintOnCanvas(T);se.onRenderContinue=G,this.paintTask=se;const y=se.promise.then(()=>$(null).then(()=>{if(Z){const ee=f.streamTextContent({includeMarkedContent:!0});Z.setTextContentStream(ee),Z.render()}this.annotationLayer&&this._renderAnnotationLayer()}),function(ee){return $(ee)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder(V,f,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=ee=>{ee.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(z=>{if(!z||!this.canvas)return;const oe=this.structTreeLayer.render(z);oe.classList.add("structTree"),this.canvas.appendChild(oe)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(f)),V.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),y}paintOnCanvas(M){const V=(0,P.createPromiseCapability)(),f={promise:V.promise,onRenderContinue(oe){oe()},cancel(){z.cancel()}},T=this.viewport,Z=document.createElement("canvas");Z.hidden=!0;let G=!0;const $=function(){G&&(Z.hidden=!1,G=!1)};M.appendChild(Z),this.canvas=Z;const se=Z.getContext("2d",{alpha:!1}),y=this.outputScale=new C.OutputScale;if(this.useOnlyCssZoom){const oe=T.clone({scale:P.PixelsPerInch.PDF_TO_CSS_UNITS});y.sx*=oe.width/T.width,y.sy*=oe.height/T.height}if(this.maxCanvasPixels>0){const ve=Math.sqrt(this.maxCanvasPixels/(T.width*T.height));y.sx>ve||y.sy>ve?(y.sx=ve,y.sy=ve,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const k=(0,C.approximateFraction)(y.sx),I=(0,C.approximateFraction)(y.sy);Z.width=(0,C.roundToDivide)(T.width*y.sx,k[0]),Z.height=(0,C.roundToDivide)(T.height*y.sy,I[0]),Z.style.width=(0,C.roundToDivide)(T.width,k[1])+"px",Z.style.height=(0,C.roundToDivide)(T.height,I[1])+"px",this.paintedViewportMap.set(Z,T);const ee={canvasContext:se,transform:y.scaled?[y.sx,0,0,y.sy,0,0]:null,viewport:this.viewport,annotationMode:Fe(this,R),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},z=this.pdfPage.render(ee);return z.onContinue=function(oe){$(),f.onRenderContinue?f.onRenderContinue(oe):oe()},z.promise.then(function(){$(),V.resolve()},function(oe){$(),V.reject(oe)}),f}paintOnSvg(M){let V=!1;const f=()=>{if(V)throw new P.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},T=this.pdfPage,Z=this.viewport.clone({scale:P.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:T.getOperatorList({annotationMode:Fe(this,R)}).then($=>(f(),new P.SVGGraphics(T.commonObjs,T.objs).getSVG($,Z).then(y=>{f(),this.svg=y,this.paintedViewportMap.set(y,Z),y.style.width=M.style.width,y.style.height=M.style.height,this.renderingState=C.RenderingStates.FINISHED,M.appendChild(y)}))),onRenderContinue($){$()},cancel(){V=!0}}}setPageLabel(M){this.pageLabel="string"==typeof M?M:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}},(Q,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.compatibilityParams=S.OptionKind=S.AppOptions=void 0;const W=Object.create(null);S.compatibilityParams=W;{const m=navigator.userAgent||"",v=navigator.platform||"",R=navigator.maxTouchPoints||1,j=/Android/.test(m);(/\b(iPad|iPhone|iPod)(?=;)/.test(m)||"MacIntel"===v&&R>1||j)&&(W.maxCanvasPixels=5242880)}const P={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};S.OptionKind=P;const C={annotationMode:{value:2,kind:P.VIEWER+P.PREFERENCE},cursorToolOnLoad:{value:0,kind:P.VIEWER+P.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:P.VIEWER},defaultZoomValue:{value:"",kind:P.VIEWER+P.PREFERENCE},disableHistory:{value:!1,kind:P.VIEWER},disablePageLabels:{value:!1,kind:P.VIEWER+P.PREFERENCE},enablePermissions:{value:!1,kind:P.VIEWER+P.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:P.VIEWER+P.PREFERENCE},enableScripting:{value:!0,kind:P.VIEWER+P.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:P.VIEWER},externalLinkTarget:{value:0,kind:P.VIEWER+P.PREFERENCE},historyUpdateUrl:{value:!1,kind:P.VIEWER+P.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:P.VIEWER+P.PREFERENCE},imageResourcesPath:{value:"./images/",kind:P.VIEWER},maxCanvasPixels:{value:16777216,compatibility:W.maxCanvasPixels,kind:P.VIEWER}
1,pageColorsBackground:{value:"Canvas",kind:P.VIEWER+P.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:P.VIEWER+P.PREFERENCE},pdfBugEnabled:{value:!1,kind:P.VIEWER+P.PREFERENCE},printResolution:{value:150,kind:P.VIEWER},renderer:{value:"canvas",kind:P.VIEWER},sidebarViewOnLoad:{value:-1,kind:P.VIEWER+P.PREFERENCE},scrollModeOnLoad:{value:-1,kind:P.VIEWER+P.PREFERENCE},spreadModeOnLoad:{value:-1,kind:P.VIEWER+P.PREFERENCE},textLayerMode:{value:1,kind:P.VIEWER+P.PREFERENCE},useOnlyCssZoom:{value:!1,kind:P.VIEWER+P.PREFERENCE},viewerCssTheme:{value:0,kind:P.VIEWER+P.PREFERENCE},viewOnLoad:{value:0,kind:P.VIEWER+P.PREFERENCE},cMapPacked:{value:!0,kind:P.API},cMapUrl:{value:"../web/cmaps/",kind:P.API},disableAutoFetch:{value:!1,kind:P.API+P.PREFERENCE},disableFontFace:{value:!1,kind:P.API+P.PREFERENCE},disableRange:{value:!1,kind:P.API+P.PREFERENCE},disableStream:{value:!1,kind:P.API+P.PREFERENCE},docBaseUrl:{value:"",kind:P.API},enableXfa:{value:!0,kind:P.API+P.PREFERENCE},fontExtraProperties:{value:!1,kind:P.API},isEvalSupported:{value:!0,kind:P.API},maxImageSize:{value:-1,kind:P.API},pdfBug:{value:!1,kind:P.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:P.API},verbosity:{value:1,kind:P.API},workerPort:{value:null,kind:P.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:P.WORKER}};C.disablePreferences={value:!1,kind:P.VIEWER},C.locale={value:navigator.language||"en-US",kind:P.VIEWER},C.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:P.VIEWER},C.renderer.kind+=P.PREFERENCE;const L=Object.create(null);S.AppOptions=class E{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(v){var M;const R=L[v];if(void 0!==R)return R;const j=C[v];return void 0!==j?null!=(M=j.compatibility)?M:j.value:void 0}static getAll(v=null){var j;const R=Object.create(null);for(const M in C){const V=C[M];if(v){if(0==(v&V.kind))continue;if(v===P.PREFERENCE){const T=V.value,Z=typeof T;if("boolean"===Z||"string"===Z||"number"===Z&&Number.isInteger(T)){R[M]=T;continue}throw new Error(`Invalid type for preference: ${M}`)}}const f=L[M];R[M]=void 0!==f?f:null!=(j=V.compatibility)?j:V.value}return R}static set(v,R){L[v]=R}static setAll(v){for(const R in v)L[R]=v[R]}static remove(v){delete L[v]}static _hasUserOptions(){return Object.keys(L).length>0}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.PDFRenderingQueue=void 0;var P=W(3),C=W(6);S.PDFRenderingQueue=class E{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(v){this.pdfViewer=v}setThumbnailViewer(v){this.pdfThumbnailViewer=v}isHighestPriority(v){return this.highestPriorityPage===v.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(v){var R;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(v)&&(this.isThumbnailViewEnabled&&(null==(R=this.pdfThumbnailViewer)?void 0:R.forceRendering())||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(v,R,j,M=!1){const V=v.views,f=V.length;if(0===f)return null;for(let se=0;se<f;se++){const y=V[se].view;if(!this.isViewFinished(y))return y}const T=v.first.id,Z=v.last.id;if(Z-T+1>f){const se=v.ids;for(let y=1,k=Z-T;y<k;y++){const I=j?T+y:Z-y;if(se.has(I))continue;const H=R[I-1];if(!this.isViewFinished(H))return H}}let G=j?Z:T-2,$=R[G];return $&&!this.isViewFinished($)||M&&(G+=j?1:-1,$=R[G],$&&!this.isViewFinished($))?$:null}isViewFinished(v){return v.renderingState===C.RenderingStates.FINISHED}renderView(v){switch(v.renderingState){case C.RenderingStates.FINISHED:return!1;case C.RenderingStates.PAUSED:this.highestPriorityPage=v.renderingId,v.resume();break;case C.RenderingStates.RUNNING:this.highestPriorityPage=v.renderingId;break;case C.RenderingStates.INITIAL:this.highestPriorityPage=v.renderingId,v.draw().finally(()=>{this.renderHighestPriority()}).catch(R=>{R instanceof P.RenderingCancelledException||console.error(`renderView: "${R}"`)})}return!0}}},(Q,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.TextHighlighter=void 0,S.TextHighlighter=class W{constructor({findController:C,eventBus:L,pageIndex:E}){this.findController=C,this.matches=[],this.eventBus=L,this.pageIdx=E,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(C,L){this.textDivs=C,this.textContentItemsStr=L}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");
vendor: 15,990 bytes, line 1
1this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=C=>{(C.pageIndex===this.pageIdx||-1===C.pageIndex)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){!this.enabled||(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(C,L){if(!C)return[];const{textContentItemsStr:E}=this;let m=0,v=0;const R=E.length-1,j=[];for(let M=0,V=C.length;M<V;M++){let f=C[M];for(;m!==R&&f>=v+E[m].length;)v+=E[m].length,m++;m===E.length&&console.error("Could not find a matching mapping");const T={begin:{divIdx:m,offset:f-v}};for(f+=L[M];m!==R&&f>v+E[m].length;)v+=E[m].length,m++;T.end={divIdx:m,offset:f-v},j.push(T)}return j}_renderMatches(C){if(0===C.length)return;const{findController:L,pageIdx:E}=this,{textContentItemsStr:m,textDivs:v}=this,R=E===L.selected.pageIdx,j=L.selected.matchIdx;let V=null;function T(se,y){const k=se.divIdx;return v[k].textContent="",Z(k,0,se.offset,y)}function Z(se,y,k,I){let H=v[se];if(H.nodeType===Node.TEXT_NODE){const oe=document.createElement("span");H.parentNode.insertBefore(oe,H),oe.appendChild(H),v[se]=oe,H=oe}const ee=m[se].substring(y,k),z=document.createTextNode(ee);if(I){const oe=document.createElement("span");return oe.className=`${I} appended`,oe.appendChild(z),H.appendChild(oe),I.includes("selected")?oe.offsetLeft:0}return H.appendChild(z),0}let G=j,$=G+1;if(L.state.highlightAll)G=0,$=C.length;else if(!R)return;for(let se=G;se<$;se++){const y=C[se],k=y.begin,I=y.end,H=R&&se===j,ee=H?" selected":"";let z=0;if(V&&k.divIdx===V.divIdx?Z(V.divIdx,V.offset,k.offset):(null!==V&&Z(V.divIdx,V.offset,undefined),T(k)),k.divIdx===I.divIdx)z=Z(k.divIdx,k.offset,I.offset,"highlight"+ee);else{z=Z(k.divIdx,k.offset,undefined,"highlight begin"+ee);for(let oe=k.divIdx+1,ve=I.divIdx;oe<ve;oe++)v[oe].className="highlight middle"+ee;T(I,"highlight end"+ee)}V=I,H&&L.scrollMatchIntoView({element:v[k.divIdx],selectedLeft:z,pageIndex:E,matchIndex:j})}V&&Z(V.divIdx,V.offset,undefined)}_updateMatches(){if(!this.enabled)return;const{findController:C,matches:L,pageIdx:E}=this,{textContentItemsStr:m,textDivs:v}=this;let R=-1;for(let V=0,f=L.length;V<f;V++){const T=L[V];for(let G=Math.max(R,T.begin.divIdx),$=T.end.divIdx;G<=$;G++){const se=v[G];se.textContent=m[G],se.className=""}R=T.end.divIdx+1}(null==C?void 0:C.highlightMatches)&&(this.matches=this._convertMatches(C.pageMatches[E]||null,C.pageMatchesLength[E]||null),this._renderMatches(this.matches))}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.DownloadManager=void 0;var P=W(3);function C(E,m){const v=document.createElement("a");if(!v.click)throw new Error('DownloadManager: "a.click()" is not supported.');v.href=E,v.target="_parent","download"in v&&(v.download=m),(document.body||document.documentElement).appendChild(v),v.click(),v.remove()}S.DownloadManager=class L{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(m,v){(0,P.createValidAbsoluteUrl)(m,"http://example.com")?C(m+"#pdfjs.action=download",v):console.error(`downloadUrl - not a valid URL: ${m}`)}downloadData(m,v,R){C(URL.createObjectURL(new Blob([m],{type:R})),v)}openOrDownloadData(m,v,R){const j=(0,P.isPdfFile)(R),M=j?"application/pdf":"";if(j){let f,V=this._openBlobUrls.get(m);V||(V=URL.createObjectURL(new Blob([v],{type:M})),this._openBlobUrls.set(m,V)),f="?file="+encodeURIComponent(V+"#"+R);try{return window.open(f),!0}catch(T){console.error(`openOrDownloadData: ${T}`),URL.revokeObjectURL(V),this._openBlobUrls.delete(m)}}return this.downloadData(v,R,M),!1}download(m,v,R,j="download"){C(URL.createObjectURL(m),R)}}},(Q,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.WaitOnType=S.EventBus=S.AutomationEventBus=void 0,S.waitOnEventOrTimeout=function P({target:E,name:m,delay:v=0}){return new Promise(function(R,j){if("object"!=typeof E||!m||"string"!=typeof m||!(Number.isInteger(v)&&v>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function M(Z){E instanceof C?E._off(m,V):E.removeEventListener(m,V),T&&clearTimeout(T),R(Z)}const V=M.bind(null,W.EVENT);E instanceof C?E._on(m,V):E.addEventListener(m,V);const f=M.bind(null,W.TIMEOUT),T=setTimeout(f,v)})};const W={EVENT:"event",TIMEOUT:"timeout"};S.WaitOnType=W;class C{constructor(){this._listeners=Object.create(null)}on(m,v,R=null){this._on(m,v,{external:!0,once:null==R?void 0:R.once})}off(m,v,R=null){this._off(m,v,{external:!0,once:null==R?void 0:R.once})}dispatch(m,v){const R=this._listeners[m];if(!R||0===R.length)return;let j;for(const{listener:M,external:V,once:f}of R.slice(0))f&&this._off(m,M),V?(j||(j=[])).push(M):M(v);if(j){for(const M of j)M(v);j=null}}_on(m,v,R=null){var M;((M=this._listeners)[m]||(M[m]=[])).push({listener:v,external:!0===(null==R?void 0:R.external),once:!0===(null==R?void 0:R.once)})}_off(m,v,R=null){const j=this._listeners[m];if(j)for(let M=0,V=j.length;M<V;M++)if(j[M].listener===v)return void j.splice(M,1)}}S.EventBus=C,S.AutomationEventBus=class L extends C{dispatch(m,v){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.GenericL10n=void 0,W(19);var P=W(4);const C=document.webL10n;S.GenericL10n=class L{constructor(m){this._lang=m,this._ready=new Promise((v,R)=>{C.setLanguage((0,P.fixupLangCode)(m),()=>{v(C)})})}getLanguage(){var m=this;return t(function*(){return(yield m._ready).getLanguage()})()}getDirection(){var m=this;return t(function*(){return(yield m._ready).getDirection()})()}get(m){var v=this;return t(function*(R,j=null,M=(0,P.getL10nFallback)(R,j)){return(yield v._ready).get(R,j,M)}).apply(this,arguments)}translate(m){var v=this;return t(function*(){return(yield v._ready).translate(m)})()}}},()=>{document.webL10n=function(Q,S,W){var P={},C="",L="textContent",E="",m={},v="loading";function T(oe,ve,We){ve=ve||function(ge){},We=We||function(){};var Re=new XMLHttpRequest;Re.open("GET",oe,!0),Re.overrideMimeType&&Re.overrideMimeType("text/plain; charset=utf-8"),Re.onreadystatechange=function(){4==Re.readyState&&(200==Re.status||0===Re.status?ve(Re.responseText):We())},Re.onerror=We,Re.ontimeout=We;try{Re.send(null)}catch(He){We()}}function G(oe,ve){oe&&(oe=oe.toLowerCase()),ve=ve||function(){},function $(){P={},C="",E=""}(),E=oe;var We=function j(){return S.querySelectorAll('link[type="application/l10n"]')}(),Re=We.length;if(0!==Re){var b,p=0;b=function(){++p>=Re&&(ve(),v="complete")};for(var N=0;N<Re;N++)new A(We[N]).load(oe,b)}else{var He=function M(){var oe=S.querySelector('script[type="application/l10n"]');return oe?JSON.parse(oe.innerHTML):null}();if(He&&He.locales&&He.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(P=He.locales[oe])){var ge=He.default_locale.toLowerCase();for(var O in He.locales){if((O=O.toLowerCase())===oe){P=He.locales[oe];break}O===ge&&(P=He.locales[ge])}}ve()}else console.log("no resource to load, early way out");v="complete"}function A(J){var ie=J.href;this.load=function(he,Oe){!function Z(oe,ve,We,Re){var He=oe.replace(/[^\/]*$/,"")||"./";function ge(b){return b.lastIndexOf("\\")<0?b:b.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}T(oe,function(b){C+=b,function O(b,p){var A={},N=/^\s*|\s*$/,K=/^\s*#|^\s*$/,J=/^\s*\[(.*)\]\s*$/,ie=/^\s*@import\s+url\((.*)\)\s*$/i,he=/^([^=\s]*)\s*=\s*(.+)$/;function Oe(Ye,Qe,Ct){var Ot=Ye.replace(N,"").split(/[\r\n]+/),ln="*",Lt=ve.split("-",1)[0],Jt=!1,Rt="";!function it(){for(;;){if(!Ot.length)return void Ct();var _t=Ot.shift();if(!K.test(_t)){if(Qe){if(Rt=J.exec(_t)){ln=Rt[1].toLowerCase(),Jt="*"!==ln&&ln!==ve&&ln!==Lt;continue}if(Jt)continue;if(Rt=ie.exec(_t))return void Ne(He+Rt[1],it)}var ut=_t.match(he);ut&&3==ut.length&&(A[ut[1]]=ge(ut[2]))}}}()}function Ne(Ye,Qe){T(Ye,function(Ct){Oe(Ct,!1,Qe)},function(){console.warn(Ye+" not found."),Qe()})}Oe(b,!0,function(){p(A)})}(b,function(p){for(var A in p){var N,K,J=A.lastIndexOf(".");J>0?(N=A.substring(0,J),K=A.substring(J+1)):(N=A,K=L),P[N]||(P[N]={}),P[N][K]=p[A]}We&&We()})},Re)}(ie,he,Oe,function(){console.warn(ie+" not found."),console.warn('"'+he+'" resource not found'),E="",Oe()})}}}function y(oe,ve,We){var Re=P[oe];if(!Re){if(console.warn("#"+oe+" is undefined."),!We)return null;Re=We}var He={};for(var ge in Re){var O=Re[ge];O=I(O=k(O,ve,oe,ge),ve,oe),He[ge]=O}return He}function k(oe,ve,We,Re){var ge=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(oe);if(!ge||!ge.length)return oe;var p,O=ge[1],b=ge[2];return ve&&b in ve?p=ve[b]:b in P&&(p=P[b]),O in m&&(oe=(0,m[O])(oe,p,We,Re)),oe}function I(oe,ve,We){return oe.replace(/\{\{\s*(.+?)\s*\}\}/g,function(He,ge){return ve&&ge in ve?ve[ge]:ge in P?P[ge]:(console.log("argument {{"+ge+"}} for #"+We+" is undefined."),He)})}function H(oe){var ve=function f(oe){if(!oe)return{};var ve=oe.getAttribute("data-l10n-id"),We=oe.getAttribute("data-l10n-args"),Re={};if(We)try{Re=JSON.parse(We)}catch(He){console.warn("could not parse arguments for #"+ve)}return{id:ve,args:Re}}(oe);if(ve.id){var We=y(ve.id,ve.args);if(!We)return void console.warn("#"+ve.id+" is undefined.");if(We[L]){if(0===function ee(oe){if(oe.children)return oe.children.length;if(void 0!==oe.childElementCount)return oe.childElementCount;for(var ve=0,We=0;We<oe.childNodes.length;We++)ve+=1===oe.nodeType?1:0;return ve}(oe))oe[L]=We[L];else{for(var Re=oe.childNodes,He=!1,ge=0,O=Re.length;ge<O;ge++)3===Re[ge].nodeType&&/\S/.test(Re[ge].nodeValue)&&(He?Re[ge].nodeValue="":(Re[ge].nodeValue=We[L],He=!0));if(!He){var b=S.createTextNode(We[L]);oe.insertBefore(b,oe.firstChild)}}delete We[L]}for(var p in We)oe[p]=We[p]}}return m.plural=function(oe,ve,We,Re){var He=parseFloat(ve);if(isNaN(He)||Re!=L)return oe;m._pluralRules||(m._pluralRules=function se(oe){function We(O,b){return-1!==b.indexOf(O)}function Re(O,b,p){return b<=O&&O<=p}var He={0:function(O){return"other"},1:function(O){return Re(O%100,3,10)?"few":0===O?"zero":Re(O%100,11,99)?"many":2==O?"two":1==O?"one":"other"},2:function(O){return 0!==O&&O%10==0?"many":2==O?"two":1==O?"one":"other"},3:function(O){return 1==O?"one":"other"},4:function(O){return Re(O,0,1)?"one":"other"},5:function(O){return Re(O,0,2)&&2!=O?"one":"other"},6:function(O){return 0===O?"zero":O%10==1&&O%100!=11?"one":"other"},7:function(O){return 2==O?"two":1==O?"one":"other"},8:function(O){return Re(O,3,6)?"few":Re(O,7,10)?"many":2==O?"two":1==O?"one":"other"},9:function(O){return 0===O||1!=O&&Re(O%100,1,19)?"few":1==O?"one":"other"},10:function(O){return Re(O%10,2,9)&&!Re(O%100,11,19)?"few":O%10!=1||Re(O%100,11,19)?"other":"one"},11:function(O){return Re(O%10,2,4)&&!Re(O%100,12,14)?"few":O%10==0||Re(O%10,5,9)||Re(O%100,11,14)?"many":O%10==1&&O%100!=11?"one":"other"},12:function(O){return Re(O,2,4)?"few":1==O?"one":"other"},13:function(O){return Re(O%10,2,4)&&!Re(O%100,12,14)?"few":1!=O&&Re(O%10,0,1)||Re(O%10,5,9)||Re(O%100,12,14)?"many":1==O?"one":"other"},14:function(O){return Re(O%100,3,4)?"few":O%100==2?"two":O%100==1?"one":"other"},15:function(O){return 0===O||Re(O%100,2,10)?"few":Re(O%100,11,19)?"many":1==O?"one":"other"},16:function(O){return O%10==1&&11!=O?"one":"other"},17:function(O){return 3==O?"few":0===O?"zero":6==O?"many":2==O?"two":1==O?"one":"other"},18:function(O){return 0===O?"zero":Re(O,0,2)&&0!==O&&2!=O?"one":"other"},19:function(O){return Re(O,2,10)?"few":Re(O,0,1)?"one":"other"},20:function(O){return!Re(O%10,3,4)&&O%10!=9||Re(O%100,10,19)||Re(O%100,70,79)||Re(O%100,90,99)?O%1e6==0&&0!==O?"many":O%10!=2||We(O%100,[12,72,92])?O%10!=1||We(O%100,[11,71,91])?"other":"one":"two":"few"},21:function(O){return 0===O?"zero":1==O?"one":"other"},22:function(O){return Re(O,0,1)||Re(O,11,99)?"one":"other"},23:function(O){return Re(O%10,1,2)||O%20==0?"one":"other"},24:function(O){return Re(O,3,10)||Re(O,13,19)?"few":We(O,[2,12])?"two":We(O,[1,11])?"one":"other"}},ge={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[oe.replace(/-.*$/,"")];return ge in He?He[ge]:(console.warn("plural form unknown for ["+oe+"]"),function(){return"other"})}(E));var ge="["+m._pluralRules(He)+"]";return 0===He&&We+"[zero]"in P?oe=P[We+"[zero]"][Re]:1==He&&We+"[one]"in P?oe=P[We+"[one]"][Re]:2==He&&We+"[two]"in P?oe=P[We+"[two]"][Re]:We+ge in P?oe=P[We+ge][Re]:We+"[other]"in P&&(oe=P[We+"[other]"][Re]),oe},{get:function(oe,ve,We){var ge,Re=oe.lastIndexOf("."),He=L;Re>0&&(He=oe.substring(Re+1),oe=oe.substring(0,Re)),We&&((ge={})[He]=We);var O=y(oe,ve,ge);return O&&He in O?O[He]:"{{"+oe+"}}"},getData:function(){return P},getText:function(){return C},getLanguage:function(){return E},setLanguage:function(oe,ve){G(oe,function(){ve&&ve()})},getDirection:function(){var ve=E.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(ve)>=0?"rtl":"ltr"},translate:function z(oe){for(var ve=function V(oe){return oe?oe.querySelectorAll("*[data-l10n-id]"):[]}(oe=oe||S.documentElement),We=ve.length,Re=0;Re<We;Re++)H(ve[Re]);H(oe)},getReadyState:function(){return v},ready:function(oe){oe&&("complete"==v||"interactive"==v?Q.setTimeout(function(){oe()}):S.addEventListener&&S.addEventListener("localized",function ve(){S.removeEventListener("localized",ve),oe()}))}}}(window,document)},(Q,S,W)=>{var I,LC,ee,iE,oe,sE,We,BC,He,jC,O,UC,p,oE,N,VC,J,$C,he,ly,Ne,Og,Qe,Jf,Ot,HC,Lt,aE,Rt,lE,_t,uy,yt,WC,ct,uE,gt,GC,St,kg;Object.defineProperty(S,"__esModule",{value:!0}),S.PDFFindController=S.FindState=void 0;var P=W(6),C=W(3),L=W(21);const E={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};S.FindState=E;const j={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},M=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),V=[...M.values()].map(ze=>String.fromCharCode(ze)).join(""),f=/\p{M}+/gu,T=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,Z=/([^\p{M}])\p{M}*$/u,G=/^\p{M}*([^\p{M}])/u;let $=null;function se(ze){if(!$){const Cn=Object.keys(j).join("");$=new RegExp(`([${Cn}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`,"gum")}const nt=[];let mt;for(;null!==(mt=f.exec(ze));)nt.push([mt[0].length,mt.index]);let Nt=ze.normalize("NFD");const wt=[[0,0]];let bt=0,Kt=0,Un=0,vt=0,tn=!1;return Nt=Nt.replace($,(Cn,Sn,Nn,rr,Fn,jn)=>{var nr;if(jn-=Un,Sn){const Tt=j[Cn],hn=Tt.length;for(let Se=1;Se<hn;Se++)wt.push([jn-Kt+Se,Kt-Se]);return Kt-=hn-1,Tt}if(Nn){const Tt=Nn.endsWith("\n"),hn=Tt?Nn.length-2:Nn.length;tn=!0;let Se=hn;jn+vt===(null==(nr=nt[bt])?void 0:nr[1])&&(Se-=nt[bt][0],++bt);for(let ae=1;ae<Se+1;ae++)wt.push([jn-1-Kt+ae,Kt-ae]);return Kt-=Se,Un+=Se,Tt?(wt.push([(jn+=hn-1)-Kt+1,1+Kt]),Kt+=1,Un+=1,vt+=1,Nn.slice(0,hn)):Nn}return rr?(wt.push([jn-Kt+1,1+Kt]),Kt+=1,Un+=1,vt+=1,rr.charAt(0)):(wt.push([jn-Kt+1,Kt-1]),Kt-=1,Un+=1,vt+=1," ")}
1),wt.push([Nt.length,Kt]),[Nt,wt,tn]}function y(ze,nt,mt){if(!ze)return[nt,mt];const Nt=nt,wt=nt+mt;let bt=(0,P.binarySearchFirstItem)(ze,Un=>Un[0]>=Nt);ze[bt][0]>Nt&&--bt;let Kt=(0,P.binarySearchFirstItem)(ze,Un=>Un[0]>=wt,bt);return ze[Kt][0]>wt&&--Kt,[Nt+ze[bt][1],mt+ze[Kt][1]-ze[bt][1]]}I=new WeakSet,LC=function(nt){if(!nt)return;const mt=this._pdfDocument,{type:Nt}=nt;(null===this._state||bn(this,We,BC).call(this,nt))&&(this._dirtyMatch=!0),this._state=nt,"highlightallchange"!==Nt&&bn(this,St,kg).call(this,E.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||mt&&this._pdfDocument!==mt)return;bn(this,J,$C).call(this);const wt=!this._highlightMatches,bt=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),Nt?this._dirtyMatch?bn(this,Qe,Jf).call(this):"again"===Nt?(bn(this,Qe,Jf).call(this),wt&&this._state.highlightAll&&bn(this,Ne,Og).call(this)):"highlightallchange"===Nt?(bt?bn(this,Qe,Jf).call(this):this._highlightMatches=!0,bn(this,Ne,Og).call(this)):bn(this,Qe,Jf).call(this):this._findTimeout=setTimeout(()=>{bn(this,Qe,Jf).call(this),this._findTimeout=null},250)})},ee=new WeakSet,iE=function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,C.createPromiseCapability)()},oe=new WeakSet,sE=function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=se(this._state.query)),this._normalizedQuery},We=new WeakSet,BC=function(nt){if(nt.query!==this._state.query)return!0;switch(nt.type){case"again":const mt=this._selected.pageIdx+1,Nt=this._linkService;return mt>=1&&mt<=Nt.pagesCount&&mt!==Nt.page&&!Nt.isPageVisible(mt);case"highlightallchange":return!1}return!0},He=new WeakSet,jC=function(nt,mt,Nt){let wt=nt.slice(0,mt).match(Z);if(wt){const bt=nt.charCodeAt(mt),Kt=wt[1].charCodeAt(0);if((0,L.getCharacterType)(bt)===(0,L.getCharacterType)(Kt))return!1}if(wt=nt.slice(mt+Nt).match(G),wt){const bt=nt.charCodeAt(mt+Nt-1),Kt=wt[1].charCodeAt(0);if((0,L.getCharacterType)(bt)===(0,L.getCharacterType)(Kt))return!1}return!0},O=new WeakSet,UC=function(nt,mt,Nt,wt){const bt=[],Kt=[],Un=this._pageDiffs[Nt];let vt;for(;null!==(vt=nt.exec(wt));){if(mt&&!bn(this,He,jC).call(this,wt,vt.index,vt[0].length))continue;const[tn,Cn]=y(Un,vt.index,vt[0].length);Cn&&(bt.push(tn),Kt.push(Cn))}this._pageMatches[Nt]=bt,this._pageMatchesLength[Nt]=Kt},p=new WeakSet,oE=function(nt,mt){const{matchDiacritics:Nt}=this._state;let wt=!1;return(nt=nt.replace(T,(Kt,Un,vt,tn,Cn,Sn)=>Un?`[ ]*\\${Un}[ ]*`:vt?`[ ]*${vt}[ ]*`:tn?"[ ]+":Nt?Cn||Sn:Cn?M.has(Cn.charCodeAt(0))?Cn:"":mt?(wt=!0,`${Sn}\\p{M}*`):Sn)).endsWith("[ ]*")&&(nt=nt.slice(0,nt.length-"[ ]*".length)),Nt&&mt&&(wt=!0,nt=`${nt}(?=[${V}]|[^\\p{M}]|$)`),[wt,nt]},N=new WeakSet,VC=function(nt){let mt=Fe(this,oe,sE);if(0===mt.length)return;const{caseSensitive:Nt,entireWord:wt,phraseSearch:bt}=this._state,Kt=this._pageContents[nt],Un=this._hasDiacritics[nt];let vt=!1;if(bt)[vt,mt]=bn(this,p,oE).call(this,mt,Un);else{const Sn=mt.match(/\S+/g);Sn&&(mt=Sn.sort().reverse().map(Nn=>{const[rr,Fn]=bn(this,p,oE).call(this,Nn,Un);return vt||(vt=rr),`(${Fn})`}).join("|"))}mt=new RegExp(mt,`g${vt?"u":""}${Nt?"":"i"}`),bn(this,O,UC).call(this,mt,wt,nt,Kt),this._state.highlightAll&&bn(this,he,ly).call(this,nt),this._resumePageIdx===nt&&(this._resumePageIdx=null,bn(this,Lt,aE).call(this));const Cn=this._pageMatches[nt].length;Cn>0&&(this._matchesCountTotal+=Cn,bn(this,gt,GC).call(this))},J=new WeakSet,$C=function(){if(this._extractTextPromises.length>0)return;let nt=Promise.resolve();for(let mt=0,Nt=this._linkService.pagesCount;mt<Nt;mt++){const wt=(0,C.createPromiseCapability)();this._extractTextPromises[mt]=wt.promise,nt=nt.then(()=>this._pdfDocument.getPage(mt+1).then(bt=>bt.getTextContent()).then(bt=>{const Kt=[];for(const Un of bt.items)Kt.push(Un.str),Un.hasEOL&&Kt.push("\n");[this._pageContents[mt],this._pageDiffs[mt],this._hasDiacritics[mt]]=se(Kt.join("")),wt.resolve()},bt=>{console.error(`Unable to get text content for page ${mt+1}`,bt),this._pageContents[mt]="",this._pageDiffs[mt]=null,this._hasDiacritics[mt]=!1,wt.resolve()}))}},he=new WeakSet,ly=function(nt){this._scrollMatches&&this._selected.pageIdx===nt&&(this._linkService.page=nt+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:nt})},Ne=new WeakSet,Og=function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})},Qe=new WeakSet,Jf=function(){const nt=this._state.findPrevious,mt=this._linkService.page-1,Nt=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=mt,this._offset.matchI
1dx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,bn(this,Ne,Og).call(this);for(let bt=0;bt<Nt;bt++)this._pendingFindMatches.has(bt)||(this._pendingFindMatches.add(bt),this._extractTextPromises[bt].then(()=>{this._pendingFindMatches.delete(bt),bn(this,N,VC).call(this,bt)}))}if(""===Fe(this,oe,sE))return void bn(this,St,kg).call(this,E.FOUND);if(this._resumePageIdx)return;const wt=this._offset;if(this._pagesToSearch=Nt,null!==wt.matchIdx){const bt=this._pageMatches[wt.pageIdx].length;if(!nt&&wt.matchIdx+1<bt||nt&&wt.matchIdx>0)return wt.matchIdx=nt?wt.matchIdx-1:wt.matchIdx+1,void bn(this,_t,uy).call(this,!0);bn(this,Rt,lE).call(this,nt)}bn(this,Lt,aE).call(this)},Ot=new WeakSet,HC=function(nt){const mt=this._offset,Nt=nt.length,wt=this._state.findPrevious;return Nt?(mt.matchIdx=wt?Nt-1:0,bn(this,_t,uy).call(this,!0),!0):(bn(this,Rt,lE).call(this,wt),!!(mt.wrapped&&(mt.matchIdx=null,this._pagesToSearch<0))&&(bn(this,_t,uy).call(this,!1),!0))},Lt=new WeakSet,aE=function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let nt=null;do{const mt=this._offset.pageIdx;if(nt=this._pageMatches[mt],!nt){this._resumePageIdx=mt;break}}while(!bn(this,Ot,HC).call(this,nt))},Rt=new WeakSet,lE=function(nt){const mt=this._offset,Nt=this._linkService.pagesCount;
1mt.pageIdx=nt?mt.pageIdx-1:mt.pageIdx+1,mt.matchIdx=null,this._pagesToSearch--,(mt.pageIdx>=Nt||mt.pageIdx<0)&&(mt.pageIdx=nt?Nt-1:0,mt.wrapped=!0)},_t=new WeakSet,uy=function(nt=!1){let mt=E.NOT_FOUND;const Nt=this._offset.wrapped;if(this._offset.wrapped=!1,nt){const wt=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,mt=Nt?E.WRAPPED:E.FOUND,-1!==wt&&wt!==this._selected.pageIdx&&bn(this,he,ly).call(this,wt)}bn(this,St,kg).call(this,mt,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,bn(this,he,ly).call(this,this._selected.pageIdx))},yt=new WeakSet,WC=function(nt){const mt=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||mt&&this._pdfDocument!==mt||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),bn(this,St,kg).call(this,E.FOUND),this._highlightMatches=!1,bn(this,Ne,Og).call(this))})},ct=new WeakSet,uE=function(){var bt;const{pageIdx:nt,matchIdx:mt}=this._selected;let Nt=0,wt=this._matchesCountTotal;if(-1!==mt){for(let Kt=0;Kt<nt;Kt++)Nt+=(null==(bt=this._pageMatches[Kt])?void 0:bt.length)||0;Nt+=mt+1}return(Nt<1||Nt>wt)&&(Nt=wt=0),{current:Nt,total:wt}},gt=new WeakSet,GC=function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:bn(this,ct,uE).call(this)})},St=new WeakSet,kg=function(nt,mt=!1){var Nt,wt;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:nt,previous:mt,matchesCount:bn(this,ct,uE).call(this),rawQuery:null!=(wt=null==(Nt=this._state)?void 0:Nt.query)?wt:null})},S.PDFFindController=class k{constructor({linkService:nt,eventBus:mt}){dn(this,I),dn(this,ee),dn(this,oe),dn(this,We),dn(this,He),dn(this,O),dn(this,p),dn(this,N),dn(this,J),dn(this,he),dn(this,Ne),dn(this,Qe),dn(this,Ot),dn(this,Lt),dn(this,Rt),dn(this,_t),dn(this,yt),dn(this,ct),dn(this,gt),dn(this,St),this._linkService=nt,this._eventBus=mt,bn(this,ee,iE).call(this),mt._on("find",bn(this,I,LC).bind(this)),mt._on("findbarclose",bn(this,yt,WC).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(nt){this._pdfDocument&&bn(this,ee,iE).call(this),nt&&(this._pdfDocument=nt,this._firstPageCapability.resolve())}scrollMatchIntoView({element:nt=null,selectedLeft:mt=0,pageIndex:Nt=-1,matchIndex:wt=-1}){this._scrollMatches&&nt&&-1!==wt&&wt===this._selected.matchIdx&&-1!==Nt&&Nt===this._selected.pageIdx&&(this._scrollMatches=!1,(0,P.scrollIntoView)(nt,{top:-50,left:mt+-400},!0))}}},(Q,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.CharacterType=void 0,S.getCharacterType=function f(T){return function P(T){return T<11904}(T)?function C(T){return 0==(65408&T)}(T)?function m(T){return 32===T||9===T||13===T||10===T}(T)?W.SPACE:function L(T){return T>=97&&T<=122||T>=65&&T<=90}(T)||function E(T){return T>=48&&T<=57}(T)||95===T?W.ALPHA_LETTER:W.PUNCT:function V(T){return 3584==(65408&T)}(T)?W.THAI_LETTER:160===T?W.SPACE:W.ALPHA_LETTER:function v(T){return T>=13312&&T<=40959||T>=63744&&T<=64255}(T)?W.HAN_LETTER:function R(T){return T>=12448&&T<=12543}(T)?W.KATAKANA_LETTER:function j(T){return T>=12352&&T<=12447}(T)?W.HIRAGANA_LETTER:function M(T){return T>=65376&&T<=65439}
vendor: 11,873 bytes, line 1
1(T)?W.HALFWIDTH_KATAKANA_LETTER:W.ALPHA_LETTER};const W={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};S.CharacterType=W},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.PDFHistory=void 0,S.isDestArraysEqual=M,S.isDestHashesEqual=j;var P=W(6),C=W(17);function v(){return document.location.hash}function j(V,f){return"string"==typeof V&&"string"==typeof f&&(V===f||(0,P.parseQueryString)(V).get("nameddest")===f)}function M(V,f){function T(Z,G){if(typeof Z!=typeof G||Array.isArray(Z)||Array.isArray(G))return!1;if(null!==Z&&"object"==typeof Z&&null!==G){if(Object.keys(Z).length!==Object.keys(G).length)return!1;for(const $ in Z)if(!T(Z[$],G[$]))return!1;return!0}return Z===G||Number.isNaN(Z)&&Number.isNaN(G)}if(!Array.isArray(V)||!Array.isArray(f)||V.length!==f.length)return!1;for(let Z=0,G=V.length;Z<G;Z++)if(!T(V[Z],f[Z]))return!1;return!0}S.PDFHistory=class R{constructor({linkService:f,eventBus:T}){this.linkService=f,this.eventBus=T,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",Z=>{this._isPagesLoaded=!!Z.pagesCount},{once:!0})})}initialize({fingerprint:f,resetHistory:T=!1,updateUrl:Z=!1}){if(!f||"string"!=typeof f)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const G=""!==this._fingerprint&&this._fingerprint!==f;this._fingerprint=f,this._updateUrl=!0===Z,this._initialized=!0,this._bindEvents();const $=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=v(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState($,!0)||T){const{hash:y,page:k,rotation:I}=this._parseCurrentHash(!0);return!y||G||T?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:y,page:k,rotation:I},!0)}const se=$.destination;this._updateInternalState(se,$.uid,!0),void 0!==se.rotation&&(this._initialRotation=se.rotation),se.dest?(this._initialBookmark=JSON.stringify(se.dest),this._destination.page=null):se.hash?this._initialBookmark=se.hash:se.page&&(this._initialBookmark=`page=${se.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:f=null,explicitDest:T,pageNumber:Z}){if(!this._initialized)return;if(f&&"string"!=typeof f)return void console.error(`PDFHistory.push: "${f}" is not a valid namedDest parameter.`);if(!Array.isArray(T))return void console.error(`PDFHistory.push: "${T}" is not a valid explicitDest parameter.`);if(!this._isValidPage(Z)&&(null!==Z||this._destination))return void console.error(`PDFHistory.push: "${Z}" is not a valid pageNumber parameter.`);const G=f||JSON.stringify(T);if(!G)return;let $=!1;if(this._destination&&(j(this._destination.hash,G)||M(this._destination.dest,T))){if(this._destination.page)return;$=!0}this._popStateInProgress&&!$||(this._pushOrReplaceState({dest:T,hash:G,page:Z,rotation:this.linkService.rotation},$),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(f){var T;if(this._initialized){if(!this._isValidPage(f))return void console.error(`PDFHistory.pushPage: "${f}" is not a valid page number.`);(null==(T=this._destination)?void 0:T.page)!==f&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${f}`,page:f,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const f=window.history.state;this._isValidState(f)&&f.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const f=window.history.state;this._isValidState(f)&&f.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(f,T=!1){const Z=T||!this._destination,G={fingerprint:this._fingerprint,uid:Z?this._uid:this._uid+1,destination:f};let $;if(this._updateInternalState(f,G.uid),this._updateUrl&&(null==f?void 0:f.hash)){const se=document.location.href.split("#")[0];se.startsWith("file://")||($=`${se}#${f.hash}`)}Z?window.history.replaceState(G,"",$):window.history.pushState(G,"",$)}_tryPushCurrentPosition(f=!1){if(!this._position)return;let T=this._position;if(f&&(T=Object.assign(Object.create(null),this._position),T.temporary=!0),!this._destination)return void this._pushOrReplaceState(T);if(this._destination.temporary)return void this._pushOrReplaceState(T,!0);if(this._destination.hash===T.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let Z=!1;if(this._destination.page>=T.first&&this._destination.page<=T.page){if(void 0!==this._destination.dest||!this._destination.first)return;Z=!0}this._pushOrReplaceState(T,Z)}_isValidPage(f){return Number.isInteger(f)&&f>0&&f<=this.linkService.pagesCount}_isValidState(f,T=!1){if(!f)return!1;if(f.fingerprint!==this._fingerprint){if(!T)return!1;{if("string"!=typeof f.fingerprint||f.fingerprint.length!==this._fingerprint.length)return!1;const[Z]=performance.getEntriesByType("navigation");if("reload"!==(null==Z?void 0:Z.type))return!1}}return!(!Number.isInteger(f.uid)||f.uid<0||null===f.destination||"object"!=typeof f.destination)}_updateInternalState(f,T,Z=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),Z&&(null==f?void 0:f.temporary)&&delete f.temporary,this._destination=f,this._uid=T,this._maxUid=Math.max(this._maxUid,T),this._numPositionUpdates=0}_parseCurrentHash(f=!1){const T=unescape(v()).substring(1),Z=(0,P.parseQueryString)(T),G=Z.get("nameddest")||"";let $=0|Z.get("page");return(!this._isValidPage($)||f&&G.length>0)&&($=null),{hash:T,page:$,rotation:this.linkService.rotation}}_updateViewarea({location:f}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:f.pdfOpenParams.substring(1),page:this.linkService.page,first:f.pageNumber,rotation:f.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},1e3))}_popState({state:f}){const T=v(),Z=this._currentHash!==T;if(this._currentHash=T,!f){this._uid++;const{hash:$,page:se,rotation:y}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:$,page:se,rotation:y},!0)}if(!this._isValidState(f))return;this._popStateInProgress=!0,Z&&(this._blockHashChange++,(0,C.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const G=f.destination;this._updateInternalState(G,f.uid,!0),(0,P.isValidRotation)(G.rotation)&&(this.linkService.rotation=G.rotation),G.dest?this.linkService.goToDestination(G.dest):G.hash?this.linkService.setHash(G.hash):G.page&&(this.linkService.page=G.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.PDFScriptingManager=void 0;var P=W(6),C=W(3);S.PDFScriptingManager=class L{constructor({eventBus:m,sandboxBundleSrc:v=null,scriptingFactory:R=null,docPropertiesLookup:j=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=m,this._sandboxBundleSrc=v,this._scriptingFactory=R,this._docPropertiesLookup=j,this._scriptingFactory||window.addEventListener("updatefromsandbox",M=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:M.detail})})}setViewer(m){this._pdfViewer=m}setDocument(m){var v=this;return t(function*(){var V;if(v._pdfDocument&&(yield v._destroyScripting()),v._pdfDocument=m,!m)return;const[R,j,M]=yield Promise.all([m.getFieldObjects(),m.getCalculationOrderIds(),m.getJSActions()]);if(R||M){if(m===v._pdfDocument){try{v._scripting=v._createScripting()}catch(f){return console.error(`PDFScriptingManager.setDocument: "${null==f?void 0:f.message}".`),void(yield v._destroyScripting())}v._internalEvents.set("updatefromsandbox",f=>{(null==f?void 0:f.source)===window&&v._updateFromSandbox(f.detail)}),v._internalEvents.set("dispatcheventinsandbox",f=>{var T;null==(T=v._scripting)||T.dispatchEventInSandbox(f.detail)}),v._internalEvents.set("pagechanging",({pageNumber:f,previous:T})=>{f!==T&&(v._dispatchPageClose(T),v._dispatchPageOpen(f))}),v._internalEvents.set("pagerendered",({pageNumber:f})=>{!v._pageOpenPending.has(f)||f===v._pdfViewer.currentPageNumber&&v._dispatchPageOpen(f)}),v._internalEvents.set("pagesdestroy",function(){var f=t(function*(T){var Z,G;yield v._dispatchPageClose(v._pdfViewer.currentPageNumber),yield null==(Z=v._scripting)?void 0:Z.dispatchEventInSandbox({id:"doc",name:"WillClose"}),null==(G=v._closeCapability)||G.resolve()});return function(T){return f.apply(this,arguments)}}()),v._domEvents.set("mousedown",f=>{v._mouseState.isDown=!0}),v._domEvents.set("mouseup",f=>{v._mouseState.isDown=!1});for(const[f,T]of v._internalEvents)v._eventBus._on(f,T);for(const[f,T]of v._domEvents)window.addEventListener(f,T,!0);try{const f=yield v._getDocProperties();if(m!==v._pdfDocument)return;yield v._scripting.createSandbox({objects:R,calculationOrder:j,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:hh(Tl({},f),{actions:M})}),v._eventBus.dispatch("sandboxcreated",{source:v})}catch(f){return console.error(`PDFScriptingManager.setDocument: "${null==f?void 0:f.message}".`),void(yield v._destroyScripting())}yield null==(V=v._scripting)?void 0:V.dispatchEventInSandbox({id:"doc",name:"Open"}),yield v._dispatchPageOpen(v._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{m===v._pdfDocument&&(v._ready=!0)})}}else yield v._destroyScripting()})()}dispatchWillSave(m){var v=this;return t(function*(){var R;return null==(R=v._scripting)?void 0:R.dispatchEventInSandbox({id:"doc",name:"WillSave"})})()}dispatchDidSave(m){var v=this;return t(function*(){var R;return null==(R=v._scripting)?void 0:R.dispatchEventInSandbox({id:"doc",name:"DidSave"})})()}dispatchWillPrint(m){var v=this;return t(function*(){var R;return null==(R=v._scripting)?void 0:R.dispatchEventInSandbox({id:"doc",name:"WillPrint"})})()}dispatchDidPrint(m){var v=this;return t(function*(){var R;return null==(R=v._scripting)?void 0:R.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})()}
1get mouseState(){return this._mouseState}get destroyPromise(){var m;return(null==(m=this._destroyCapability)?void 0:m.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,C.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,C.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,C.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,C.shadow)(this,"_visitedPages",new Map)}_updateFromSandbox(m){var v=this;return t(function*(){var Z;const R=v._pdfViewer.isInPresentationMode||v._pdfViewer.isChangingPresentationMode,{id:j,siblings:M,command:V,value:f}=m;if(!j){switch(V){case"clear":console.clear();break;case"error":console.error(f);break;case"layout":if(R)return;const G=(0,P.apiPageLayoutToViewerModes)(f);v._pdfViewer.spreadMode=G.spreadMode;break;case"page-num":v._pdfViewer.currentPageNumber=f+1;break;case"print":yield v._pdfViewer.pagesPromise,v._eventBus.dispatch("print",{source:v});break;case"println":console.log(f);break;case"zoom":if(R)return;v._pdfViewer.currentScaleValue=f;break;case"SaveAs":v._eventBus.dispatch("save",{source:v});break;case"FirstPage":v._pdfViewer.currentPageNumber=1;break;case"LastPage":v._pdfViewer.currentPageNumber=v._pdfViewer.pagesCount;break;case"NextPage":v._pdfViewer.nextPage();break;case"PrevPage":v._pdfViewer.previousPage();break;case"ZoomViewIn":if(R)return;v._pdfViewer.increaseScale();break;case"ZoomViewOut":if(R)return;v._pdfViewer.decreaseScale()}return}if(R&&m.focus)return;delete m.id,delete m.siblings;const T=M?[j,...M]:[j];for(const G of T){const $=document.getElementById(G);$?$.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:m})):null==(Z=v._pdfDocument)||Z.annotationStorage.setValue(G,m)}})()}_dispatchPageOpen(m){var v=this;return t(function*(R,j=!1){const M=v._pdfDocument,V=v._visitedPages;if(j&&(v._closeCapability=(0,C.createPromiseCapability)()),!v._closeCapability)return;const f=v._pdfViewer.getPageView(R-1);if((null==f?void 0:f.renderingState)!==P.RenderingStates.FINISHED)return void v._pageOpenPending.add(R);v._pageOpenPending.delete(R);const T=t(function*(){var G,$;const Z=yield V.has(R)?null:null==(G=f.pdfPage)?void 0:G.getJSActions();M===v._pdfDocument&&(yield null==($=v._scripting)?void 0:$.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:R,actions:Z}))})();V.set(R,T)}).apply(this,arguments)}_dispatchPageClose(m){var v=this;return t(function*(){var V;const R=v._pdfDocument,j=v._visitedPages;if(!v._closeCapability||v._pageOpenPending.has(m))return;const M=j.get(m);!M||(j.set(m,null),yield M,R===v._pdfDocument&&(yield null==(V=v._scripting)?void 0:V.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:m})))})()}_getDocProperties(){var m=this;return t(function*(){if(m._docPropertiesLookup)return m._docPropertiesLookup(m._pdfDocument);const{docPropertiesLookup:v}=W(24);return v(m._pdfDocument)})()}_createScripting(){if(this._destroyCapability=(0,C.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:m}=W(24);return new m(this._sandboxBundleSrc)}_destroyScripting(){var m=this;return t(function*(){var v,R;if(!m._scripting)return m._pdfDocument=null,void(null==(v=m._destroyCapability)||v.resolve());m._closeCapability&&(yield Promise.race([m._closeCapability.promise,new Promise(j=>{setTimeout(j,1e3)})]).catch(j=>{}),m._closeCapability=null),m._pdfDocument=null;try{yield m._scripting.destroySandbox()}catch(j){}for(const[j,M]of m._internalEvents)m._eventBus._off(j,M);m._internalEvents.clear();for(const[j,M]of m._domEvents)window.removeEventListener(j,M,!0);m._domEvents.clear(),m._pageOpenPending.clear(),m._visitedPages.clear(),m._scripting=null,delete m._mouseState.isDown,m._ready=!1,null==(R=m._destroyCapability)||R.resolve()})()}}},(Q,S,W)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.GenericScripting=void 0,S.docPropertiesLookup=function C(m){return L.apply(this,arguments)};var P=W(3);function L(){return(L=t(function*(m){const R="".split("#")[0];let{info:j,metadata:M,contentDispositionFilename:V,contentLength:f}=yield m.getMetadata();if(!f){const{length:T}=yield m.getDownloadInfo();f=T}return hh(Tl({},j),{baseURL:R,filesize:f,filename:V||(0,P.getPdfFilenameFromUrl)(""),metadata:null==M?void 0:M.getRaw(),authors:null==M?void 0:M.get("dc:creator"),numPages:m.numPages,URL:""})})).apply(this,arguments)}S.GenericScripting=class E{constructor(v){this._ready=(0,P.loadScript)(v,!0).then(()=>
1window.pdfjsSandbox.QuickJSSandbox())}createSandbox(v){var R=this;return t(function*(){(yield R._ready).create(v)})()}dispatchEventInSandbox(v){var R=this;return t(function*(){const j=yield R._ready;setTimeout(()=>j.dispatchEvent(v),0)})()}destroySandbox(){var v=this;return t(function*(){(yield v._ready).nukeSandbox()})()}}}],x={};function re(Q){var S=x[Q];if(void 0!==S)return S.exports;var W=x[Q]={exports:{}};return _[Q](W,W.exports,re),W.exports}var te={};return(()=>{var Q=te;Object.defineProperty(Q,"__esModule",{value:!0}),Object.defineProperty(Q,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return L.AnnotationLayerBuilder}}),Object.defineProperty(Q,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return S.DefaultAnnotationLayerFactory}}),Object.defineProperty(Q,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return S.DefaultStructTreeLayerFactory}}),Object.defineProperty(Q,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return S.DefaultTextLayerFactory}}),Object.defineProperty(Q,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return S.DefaultXfaLayerFactory}}),Object.defineProperty(Q,"DownloadManager",{enumerable:!0,get:function(){return E.DownloadManager}}),Object.defineProperty(Q,"EventBus",{enumerable:!0,get:function(){return m.EventBus}}),Object.defineProperty(Q,"GenericL10n",{enumerable:!0,get:function(){return v.GenericL10n}}),Object.defineProperty(Q,"LinkTarget",{enumerable:!0,get:function(){return W.LinkTarget}}),Object.defineProperty(Q,"NullL10n",{enumerable:!0,get:function(){return R.NullL10n}}),Object.defineProperty(Q,"PDFFindController",{enumerable:!0,get:function(){return j.PDFFindController}}),Object.defineProperty(Q,"PDFHistory",{enumerable:!0,get:function(){return M.PDFHistory}}),Object.defineProperty(Q,"PDFLinkService",{enumerable:!0,get:function(){return W.PDFLinkService}}),Object.defineProperty(Q,"PDFPageView",{enumerable:!0,get:function(){return V.PDFPageView}}),Object.defineProperty(Q,"PDFScriptingManager",{enumerable:!0,get:function(){return f.PDFScriptingManager}}),Object.defineProperty(Q,"PDFSinglePageViewer",{enumerable:!0,get:function(){return C.PDFSinglePageViewer}}),Object.defineProperty(Q,"PDFViewer",{enumerable:!0,get:function(){return C.PDFViewer}}),Object.defineProperty(Q,"ProgressBar",{enumerable:!0,get:function(){return P.ProgressBar}}),Object.defineProperty(Q,"SimpleLinkService",{enumerable:!0,get:function(){return W.SimpleLinkService}}),Object.defineProperty(Q,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return T.StructTreeLayerBuilder}}),Object.defineProperty(Q,"TextLayerBuilder",{enumerable:!0,get:function(){return Z.TextLayerBuilder}}),Object.defineProperty(Q,"XfaLayerBuilder",{enumerable:!0,get:function(){return G.XfaLayerBuilder}}),Object.defineProperty(Q,"parseQueryString",{enumerable:!0,get:function(){return P.parseQueryString}});var S=re(1),W=re(5),P=re(6),C=re(10),L=re(2),E=re(16),m=re(17),v=re(18),R=re(4),j=re(20),M=re(22),V=re(12),f=re(23),T=re(7),Z=re(8),G=re(9)})(),te})(),xe.exports=re()},4492:()=>{function xe(E,m,v){if(v||2===arguments.length)for(var M,R=0,j=m.length;R<j;R++)(M||!(R in m))&&(M||(M=Array.prototype.slice.call(m,0,R)),M[R]=m[R]);return E.concat(M||Array.prototype.slice.call(m))}var q={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},c=/([astvzqmhlc])([^astvzqmhlc]*)/gi,t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function re(E,m){var v=E.x*Math.cos(m)-E.y*Math.sin(m),R=E.y*Math.cos(m)+E.x*Math.sin(m);E.x=v,E.y=R}function te(E,m,v){E.x+=m,E.y+=v}function Q(E,m){E.x*=m,E.y*=m}var S=function(){function E(m){var v;this.commands=[],m&&m instanceof E?(v=this.commands).push.apply(v,m.commands):m&&(this.commands=function x(E){var m=[],v=String(E).trim();return"M"!==v[0]&&"m"!==v[0]||v.replace(c,function(R,j,M){var V=function _(E){var m=E.match(t);return m?m.map(Number):[]}(M),f=j.toLowerCase(),T=j;if("m"===f&&V.length>2&&(m.push(xe([T],V.splice(0,2),!0)),f="l",T="m"===T?"l":"L"),V.length<q[f])return"";for(m.push(xe([T],V.splice(0,q[f]),!0));V.length>=q[f]&&V.length&&q[f];)m.push(xe([T],V.splice(0,q[f]),!0));return""}),m}(m))}return E.prototype.addPath=function(m){var v;m&&m instanceof E&&(v=this.commands).push.apply(v,m.commands)},E.prototype.moveTo=function(m,v){this.commands.push(["M",m,v])},E.prototype.lineTo=function(m,v){this.commands.push(["L",m,v])},E.prototype.arc=function(m,v,R,j,M,V){this.commands.push(["AC",m,v,R,j,M,!!V])},E.prototype.arcTo=function(m,v,R,j,M){this.commands.push(["AT",m,v,R,j,M])},E.prototype.ellipse=function(m,v,R,j,M,V,f,T){this.commands.push(["E",m,v,R,j,M,V,f,!!T])},E.prototype.closePath=function(){this.commands.push(["Z"])},E.prototype.bezierCurveTo=function(m,v,R,j,M,V){this.commands.push(["C",m,v,R,j,M,V])},E.prototype.quadraticCurveTo=function(m,v,R,j){this.commands.push(["Q",m,v,R,j])},E.prototype.rect=function(m,v,R,j){this.commands.push(["R",m,v,R,j])},E.prototype.roundRect=function(m,v,R,j,M){this.commands.push(void 0===M?["RR",m,v,R,j,0]:["RR",m,v,R,j,M])},E}();function W(E,m){var j,M,V,f,T,Z,G,$,se,y,ee,z,We,Re,He,v=0,R=0,O=null,b=null,p=null,A=null,N=null,K=null;E.beginPath();for(var J=0;J<m.length;++J){"S"!==(We=m[J][0])&&"s"!==We&&"C"!==We&&"c"!==We&&(O=null,b=null),"T"!==We&&"t"!==We&&"Q"!==We&&"q"!==We&&(p=null,A=null);var ie=void 0;switch(We){case"m":case"M":ie=m[J],"m"===We?(v+=ie[1],R+=ie[2]):(v=ie[1],R=ie[2]),("M"===We||!N)&&(N={x:v,y:R}),E.moveTo(v,R);break;case"l":E.lineTo(v+=(ie=m[J])[1],R+=ie[2]);break;case"L":E.lineTo(v=(ie=m[J])[1],R=ie[2]);break;case"H":E.lineTo(v=(ie=m[J])[1],R);break;case"h":E.lineTo(v+=(ie=m[J])[1],R);break;case"V":E.lineTo(v,R=(ie=m[J])[1]);break;case"v":E.lineTo(v,R+=(ie=m[J])[1]);break;case"a":case"A":if(ie=m[J],null===K)throw new Error("This should never happen");"a"===We?(v+=ie[6],R+=ie[7]):(v=ie[6],R=ie[7]),ee=ie[1],z=ie[2],G=ie[3]*Math.PI/180,V=!!ie[4],f=!!ie[5],re(Z={x:(K.x-(T={x:v,y:R}
1).x)/2,y:(K.y-T.y)/2},-G),($=Z.x*Z.x/(ee*ee)+Z.y*Z.y/(z*z))>1&&(ee*=$=Math.sqrt($),z*=$),se=ee*ee*z*z,y=ee*ee*Z.y*Z.y+z*z*Z.x*Z.x,Q(Re={x:ee*Z.y/z,y:-z*Z.x/ee},f!==V?Math.sqrt((se-y)/y)||0:-Math.sqrt((se-y)/y)||0),M=Math.atan2((Z.y-Re.y)/z,(Z.x-Re.x)/ee),j=Math.atan2(-(Z.y+Re.y)/z,-(Z.x+Re.x)/ee),re(Re,G),te(Re,(T.x+K.x)/2,(T.y+K.y)/2),E.save(),E.translate(Re.x,Re.y),E.rotate(G),E.scale(ee,z),E.arc(0,0,1,M,j,!f),E.restore();break;case"C":E.bezierCurveTo((ie=m[J])[1],ie[2],O=ie[3],b=ie[4],v=ie[5],R=ie[6]);break;case"c":E.bezierCurveTo((ie=m[J])[1]+v,ie[2]+R,ie[3]+v,ie[4]+R,ie[5]+v,ie[6]+R),O=ie[3]+v,b=ie[4]+R,v+=ie[5],R+=ie[6];break;case"S":(null===O||null===b)&&(O=v,b=R),E.bezierCurveTo(2*v-O,2*R-b,(ie=m[J])[1],ie[2],ie[3],ie[4]),O=ie[1],b=ie[2],v=ie[3],R=ie[4];break;case"s":(null===O||null===b)&&(O=v,b=R),E.bezierCurveTo(2*v-O,2*R-b,(ie=m[J])[1]+v,ie[2]+R,ie[3]+v,ie[4]+R),O=ie[1]+v,b=ie[2]+R,v+=ie[3],R+=ie[4];break;case"Q":E.quadraticCurveTo(p=(ie=m[J])[1],A=ie[2],v=ie[3],R=ie[4]);break;case"q":E.quadraticCurveTo(p=(ie=m[J])[1]+v,A=ie[2]+R,v+=ie[3],R+=ie[4]);break;case"T":(null===p||null===A)&&(p=v,A=R),E.quadraticCurveTo(p=2*v-p,A=2*R-A,v=(ie=m[J])[1],R=ie[2]);break;case"t":(null===p||null===A)&&(p=v,A=R),E.quadraticCurveTo(p=2*v-p,A=2*R-A,v+=(ie=m[J])[1],R+=ie[2]);break;case"z":case"Z":N&&(v=N.x,R=N.y),N=null,E.closePath();break;case"AC":E.arc(v=(ie=m[J])[1],R=ie[2],ie[3],M=ie[4],j=ie[5],He=ie[6]);break;case"AT":E.arcTo((ie=m[J])[1],ie[2],v=ie[3],R=ie[4],ie[5]);break;case"E":v=(ie=m[J])[1],R=ie[2],ee=ie[3],z=ie[4],G=ie[5],M=ie[6],j=ie[7],He=ie[8],E.save(),E.translate(v,R),E.rotate(G),E.scale(ee,z),E.arc(0,0,1,M,j,He),E.restore();break;case"R":N={x:v=(ie=m[J])[1],y:R=ie[2]},E.rect(v,R,ie[3],ie[4]);break;case"RR":N={x:v=(ie=m[J])[1],y:R=ie[2]},E.roundRect(v,R,ie[3],ie[4],ie[5])}K?(K.x=v,K.y=R):K={x:v,y:R}}}function C(E,m,v,R,j){var M=this;if(void 0===j&&(j=0),"number"==typeof j&&(j=[j]),Array.isArray(j)){if(0===j.length||j.length>4)throw new RangeError("Failed to execute 'roundRect' on '".concat(this.constructor.name,"': ").concat(j.length," radii provided. Between one and four radii are necessary."));if(j.forEach(function($){if($<0)throw new RangeError("Failed to execute 'roundRect' on '".concat(M.constructor.name,"': Radius value ").concat($," is negative."))}),1===j.length&&0===j[0])return this.rect(E,m,v,R);var f,T,Z,V=Math.min(v,R)/2,G=f=T=Z=Math.min(V,j[0]);2===j.length&&(f=Z=Math.min(V,j[1])),3===j.length&&(f=Z=Math.min(V,j[1]),T=Math.min(V,j[2])),4===j.length&&(f=Math.min(V,j[1]),T=Math.min(V,j[2]),Z=Math.min(V,j[3])),this.moveTo(E,m
1+R-Z),this.arcTo(E,m,E+G,m,G),this.arcTo(E+v,m,E+v,m+f,f),this.arcTo(E+v,m+R,E+v-T,m+R,T),this.arcTo(E,m+R,E,m+R-Z,Z),this.moveTo(E,m)}}(function P(E){if(E&&E.CanvasRenderingContext2D&&!E.Path2D){var m=E.CanvasRenderingContext2D,v=m.prototype.fill,R=m.prototype.stroke,j=m.prototype.isPointInPath;m.prototype.fill=function(){for(var V=[],f=0;f<arguments.length;f++)V[f]=arguments[f];if(!(V[0]instanceof S))return v.apply(this,[Z=V[0]||"nonzero"]);var T=V[0],Z=V[1]||"nonzero";W(this,T.commands),v.apply(this,[Z])},m.prototype.stroke=function(V){V&&W(this,V.commands),R.apply(this)},m.prototype.isPointInPath=function(){for(var V=[],f=0;f<arguments.length;f++)V[f]=arguments[f];if(V[0]instanceof S){var T=V[0],Z=V[1],G=V[2],$=V[3]||"nonzero";return W(this,T.commands),j.apply(this,[Z,G,$])}return j.apply(this,V)},E.Path2D=S}})(window),function L(E){if(E&&E.CanvasRenderingContext2D){var m=E.CanvasRenderingContext2D,v=E.Path2D;m&&!m.prototype.roundRect&&(m.prototype.roundRect=C),v&&!v.prototype.roundRect&&(v.prototype.roundRect=C)}}(window)},5908:(module,__unused_webpack_exports,__webpack_require__)=>{var _asyncToGenerator=__webpack_require__(8926).default,q,c;q=globalThis,c=()=>(()=>{"use strict";var __webpack_modules__=[,(xe,q,c)=>{var mt;Object.defineProperty(q,"__esModule",{value:!0}),q.VerbosityLevel=q.Util=q.UnknownErrorException=q.UnexpectedResponseException=q.TextRenderingMode=q.RenderingIntentFlag=q.PromiseCapability=q.PermissionFlag=q.PasswordResponses=q.PasswordException=q.PageActionEventType=q.OPS=q.MissingPDFException=q.MAX_IMAGE_SIZE_TO_CACHE=q.LINE_FACTOR=q.LINE_DESCENT_FACTOR=q.InvalidPDFException=q.ImageKind=q.IDENTITY_MATRIX=q.FormatError=q.FeatureTest=q.FONT_IDENTITY_MATRIX=q.DocumentActionEventType=q.CMapCompressionType=q.BaseException=q.BASELINE_FACTOR=q.AnnotationType=q.AnnotationReplyType=q.AnnotationPrefix=q.AnnotationMode=q.AnnotationFlag=q.AnnotationFieldFlag=q.AnnotationEditorType=q.AnnotationEditorPrefix=q.AnnotationEditorParamsType=q.AnnotationBorderStyleType=q.AnnotationActionEventType=q.AbortException=void 0,q.assert=function Re(Nt,wt){Nt||We(wt)},q.bytesToString=Oe,q.createValidAbsoluteUrl=function ge(Nt){let wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Nt)return null;try{if(bt&&"string"==typeof Nt){if(bt.addDefaultProtocol&&Nt.startsWith("www.")){const Un=Nt.match(/\./g);(null==Un?void 0:Un.length)>=2&&(Nt=`http://${Nt}`)}if(bt.tryConvertEncoding)try{Nt=ut(Nt)}catch(Un){}}const Kt=wt?new URL(Nt,wt):new URL(Nt);if(He(Kt))return Kt}catch(Kt){}return null},q.getModificationDate=function cn(){let Nt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[Nt.getUTCFullYear().toString(),(Nt.getUTCMonth()+1).toString().padStart(2,"0"),Nt.getUTCDate().toString().padStart(2,"0"),Nt.getUTCHours().toString().padStart(2,"0"),Nt.getUTCMinutes().toString().padStart(2,"0"),Nt.getUTCSeconds().toString().padStart(2,"0")].join("")},q.getUuid=function ze(){if("undefined"!=typeof crypto&&"function"==typeof(null==crypto?void 0:crypto.randomUUID))return crypto.randomUUID();const Nt=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof(null==crypto?void 0:crypto.getRandomValues))crypto.getRandomValues(Nt);else for(let wt=0;wt<32;wt++)Nt[wt]=Math.floor(255*Math.random());return Oe(Nt)},q.getVerbosityLevel=function z(){return H},q.info=function oe(Nt){H>=se.INFOS&&console.log(`Info: ${Nt}`)},q.isArrayBuffer=function ht(Nt){return"object"==typeof Nt&&void 0!==(null==Nt?void 0:Nt.byteLength)},q.isArrayEqual=function ct(Nt,wt){if(Nt.length!==wt.length)return!1;for(let bt=0,Kt=Nt.length;bt<Kt;bt++)if(Nt[bt]!==wt[bt])return!1;return!0},q.isNodeJS=void 0,q.normalizeUnicode=function sn(Nt){return at||(at=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,St=new Map([["\ufb05","\u017ft"]])),Nt.replaceAll(at,(wt,bt,Kt)=>bt?bt.normalize("NFKC"):St.get(Kt))},q.objectFromMap=function Ct(Nt){const wt=Object.create(null);for(const[bt,Kt]of Nt)wt[bt]=Kt;return wt},q.objectSize=function Qe(Nt){return Object.keys(Nt).length},q.setVerbosityLevel=function ee(Nt){Number.isInteger(Nt)&&(H=Nt)},q.shadow=O,q.string32=function Ye(Nt){return String.fromCharCode(Nt>>24&255,Nt>>16&255,Nt>>8&255,255&Nt)},q.stringToBytes=Ne,q.stringToPDFString=function _t(Nt){if(Nt[0]>="\xef"){let bt;if("\xfe"===Nt[0]&&"\xff"===Nt[1]?bt="utf-16be":"\xff"===Nt[0]&&"\xfe"===Nt[1]?bt="utf-16le":"\xef"===Nt[0]&&"\xbb"===Nt[1]&&"\xbf"===Nt[2]&&(bt="utf-8"),bt)try{const Kt=ne
1w TextDecoder(bt,{fatal:!0}),Un=Ne(Nt);return Kt.decode(Un)}catch(Kt){ve(`stringToPDFString: "${Kt}".`)}}const wt=[];for(let bt=0,Kt=Nt.length;bt<Kt;bt++){const Un=it[Nt.charCodeAt(bt)];wt.push(Un?String.fromCharCode(Un):Nt.charAt(bt))}return wt.join("")},q.stringToUTF8String=ut,q.unreachable=We,q.utf8StringToString=function yt(Nt){return unescape(encodeURIComponent(Nt))},q.warn=ve,c(2),c(84),c(86),c(87),c(89),c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123);const t=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);q.isNodeJS=t,q.IDENTITY_MATRIX=[1,0,0,1,0,0],q.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],q.MAX_IMAGE_SIZE_TO_CACHE=1e7,q.LINE_FACTOR=1.35,q.LINE_DESCENT_FACTOR=.35,q.BASELINE_FACTOR=.25925925925925924,q.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},q.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},q.AnnotationEditorPrefix="pdfjs_internal_editor_",q.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15},q.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23},q.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},q.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},q.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},q.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},q.AnnotationReplyType={GROUP:"Group",REPLY:"R"},q.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},q.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},q.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},q.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},q.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},q.PageActionEventType={O:"PageOpen",C:"PageClose"};const se={ERRORS:0,WARNINGS:1,INFOS:5};q.VerbosityLevel=se,q.CMapCompressionType={NONE:0,BINARY:1},q.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},q.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let H=se.WARNINGS;function ve(Nt){H>=se.WARNINGS&&console.log(`Warning: ${Nt}`)}function We(Nt){throw new Error(Nt)}function He(Nt){switch(null==Nt?void 0:Nt.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function O(Nt,wt,bt){let Kt=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(Nt,wt,{value:bt,enumerable:!Kt,configurable:!0,writable:!1}),bt}const b=function(){function wt(bt,Kt){this.constructor===wt&&We("Cannot initialize BaseException."),this.message=bt,this.name=Kt}return wt.prototype=new Error,wt.constructor=wt,wt}();function Oe(Nt){("object"!=typeof Nt||void 0===(null==Nt?void 0:Nt.length))&&We("Invalid argument for bytesToString");const wt=Nt.length;if(wt<8192)return String.fromCharCode.apply(null,Nt);const Kt=[];for(let Un=0;Un<wt;Un+=8192){const vt=Math.min(Un+8192,wt),tn=Nt.subarray(Un,vt);Kt.push(String.fromCharCode.apply(null,tn))}return Kt.join("")}function Ne(Nt){"string"!=typeof Nt&&We("Invalid argument for stringToBytes");
1const wt=Nt.length,bt=new Uint8Array(wt);for(let Kt=0;Kt<wt;++Kt)bt[Kt]=255&Nt.charCodeAt(Kt);return bt}q.BaseException=b,q.PasswordException=class p extends b{constructor(wt,bt){super(wt,"PasswordException"),this.code=bt}},q.UnknownErrorException=class A extends b{constructor(wt,bt){super(wt,"UnknownErrorException"),this.details=bt}},q.InvalidPDFException=class N extends b{constructor(wt){super(wt,"InvalidPDFException")}},q.MissingPDFException=class K extends b{constructor(wt){super(wt,"MissingPDFException")}},q.UnexpectedResponseException=class J extends b{constructor(wt,bt){super(wt,"UnexpectedResponseException"),this.status=bt}},q.FormatError=class ie extends b{constructor(wt){super(wt,"FormatError")}},q.AbortException=class he extends b{constructor(wt){super(wt,"AbortException")}},q.FeatureTest=class Lt{static get isLittleEndian(){return O(this,"isLittleEndian",function Ot(){const Nt=new Uint8Array(4);return Nt[0]=1,1===new Uint32Array(Nt.buffer,0,1)[0]}())}static get isEvalSupported(){return O(this,"isEvalSupported",function ln(){try{return new Function(""),!0}catch(Nt){return!1}}())}static get isOffscreenCanvasSupported(){return O(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get platform(){return"undefined"==typeof navigator?O(this,"platform",{isWin:!1,isMac:!1}):O(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var wt,bt;return O(this,"isCSSRoundSupported",null==(bt=null==(wt=globalThis.CSS)?void 0:wt.supports)?void 0:bt.call(wt,"width: round(1.5px, 1px)"))}};const Jt=[...Array(256).keys()].map(Nt=>Nt.toString(16).padStart(2,"0"));q.Util=class Rt{static makeHexColor(wt,bt,Kt){return`#${Jt[wt]}${Jt[bt]}${Jt[Kt]}`}static scaleMinMax(wt,bt){let Kt;wt[0]?(wt[0]<0&&(Kt=bt[0],bt[0]=bt[1],bt[1]=Kt),bt[0]*=wt[0],bt[1]*=wt[0],wt[3]<0&&(Kt=bt[2],bt[2]=bt[3],bt[3]=Kt),bt[2]*=wt[3],bt[3]*=wt[3]):(Kt=bt[0],bt[0]=bt[2],bt[2]=Kt,Kt=bt[1],bt[1]=bt[3],bt[3]=Kt,wt[1]<0&&(Kt=bt[2],bt[2]=bt[3],bt[3]=Kt),bt[2]*=wt[1],bt[3]*=wt[1],wt[2]<0&&(Kt=bt[0],bt[0]=bt[1],bt[1]=Kt),bt[0]*=wt[2],bt[1]*=wt[2]),bt[0]+=wt[4],bt[1]+=wt[4],bt[2]+=wt[5],bt[3]+=wt[5]}static transform(wt,bt){return[wt[0]*bt[0]+wt[2]*bt[1],wt[1]*bt[0]+wt[3]*bt[1],wt[0]*bt[2]+wt[2]*bt[3],wt[1]*bt[2]+wt[3]*bt[3],wt[0]*bt[4]+wt[2]*bt[5]+wt[4],wt[1]*bt[4]+wt[3]*bt[5]+wt[5]]}static applyTransform(wt,bt){return[wt[0]*bt[0]+wt[1]*bt[2]+bt[4],wt[0]*bt[1]+wt[1]*bt[3]+bt[5]]}static applyInverseTransform(wt,bt){const Kt=bt[0]*bt[3]-bt[1]*bt[2];return[(wt[0]*bt[3]-wt[1]*bt[2]+bt[2]*bt[5]-bt[4]*bt[3])/Kt,(-wt[0]*bt[1]+wt[1]*bt[0]+bt[4]*bt[1]-bt[5]*bt[0])/Kt]}static getAxialAlignedBoundingBox(wt,bt){const Kt=this.applyTransform(wt,bt),Un=this.applyTransform(wt.slice(2,4),bt),vt=this.applyTransform([wt[0],wt[3]],bt),tn=this.applyTransform([wt[2],wt[1]],bt);return[Math.min(Kt[0],Un[0],vt[0],tn[0]),Math.min(Kt[1],Un[1],vt[1],tn[1]),Math.max(Kt[0],Un[0],vt[0],tn[0]),Math.max(Kt[1],Un[1],vt[1],tn[1])]}static inverseTransform(wt){const bt=wt[0]*wt[3]-wt[1]*wt[2];return[wt[3]/bt,-wt[1]/bt,-wt[2]/bt,wt[0]/bt,(wt[2]*wt[5]-wt[4]*wt[3])/bt,(wt[4]*wt[1]-wt[5]*wt[0])/bt]}static singularValueDecompose2dScale(wt){const bt=[wt[0],wt[2],wt[1],wt[3]],Kt=wt[0]*bt[0]+wt[1]*bt[2],Un=wt[0]*bt[1]+wt[1]*bt[3],vt=wt[2]*bt[0]+wt[3]*bt[2],tn=wt[2]*bt[1]+wt[3]*bt[3],Cn=(Kt+tn)/2,Sn=Math.sqrt(Qf(Kt+tn,2)-4*(Kt*tn-vt*Un))/2,rr=Cn-Sn||1;return[Math.sqrt(Cn+Sn||1),Math.sqrt(rr)]}static normalizeRect(wt){const bt=wt.slice(0);return wt[0]>wt[2]&&(bt[0]=wt[2],bt[2]=wt[0]),wt[1]>wt[3]&&(bt[1]=wt[3],bt[3]=wt[1]),bt}static intersect(wt,bt){const Kt=Math.max(Math.min(wt[0],wt[2]),Math.min(bt[0],bt[2])),Un=Math.min(Math.max(wt[0],wt[2]),Math.max(bt[0],bt[2]));if(Kt>Un)return null;const vt=Math.max(Math.min(wt[1],wt[3]),Math.min(bt[1],bt[3])),tn=Math.min(Math.max(wt[1],wt[3]),Math.max(bt[1],bt[3]));return vt>tn?null:[Kt,vt,Un,tn]}static bezierBoundingBox(wt,bt,Kt,Un,vt,tn,Cn,Sn){const Nn=[],rr=[[],[]];let Fn,jn,nr,Tt,hn,Se,ae,we;for(let Ft=0;Ft<2;++Ft)if(0===Ft?(jn=6*wt-12*Kt+6*vt,Fn=-3*wt+9*Kt-9*vt+3*Cn,nr=3*Kt-3*wt):(jn=6*bt-12*Un+6*tn,Fn=-3*bt+9*Un-9*tn+3*Sn,nr=3*Un-3*bt),Math.abs(Fn)<1e-12){if(Math.abs(jn)<1e-12)continue;Tt=-nr/jn,0<Tt&&Tt<1&&Nn.push(Tt)}else ae=jn*jn-4*nr*Fn,we=Math.sqrt(ae),!(ae<0)&&(hn=(-jn+we)/(2*Fn),0<hn&&hn<1&&Nn.push(hn),Se=(-jn-we)/(2*Fn),0<Se&&Se<1&&Nn.push(Se));let Ue,Ce=Nn.length;const st=Ce;for(;Ce--;)Tt=Nn[Ce],Ue=1-Tt,rr[0][Ce]=Ue*Ue*Ue*wt+3*Ue*Ue*Tt*Kt+3*Ue*Tt*Tt*vt+Tt*Tt*Tt*Cn,rr[1][Ce]=Ue*Ue*Ue*bt+3*Ue*Ue*Tt*Un+3*Ue*Tt*Tt*tn+Tt*Tt*Tt*Sn;return rr[0][st]=wt,rr[1][st]=bt,rr[0][st+1]=Cn,rr[1][st+1]=Sn,rr[0].length=rr[1].length=st+2,[Math.min(...rr[0]),Math.min(...rr[1]),Math.max(...rr[0]),Math.max(...rr[1])]}};const it=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function ut(Nt){return decodeURIComponent(escape(Nt))}mt=new WeakMap,q.PromiseCapability=class gt{constructor(){dn(this,mt,!1),this.promise=new Promise((wt,bt)=>{this.resolve=Kt=>{Vn(this,mt,!0),wt(Kt)},this.reject=Kt=>{Vn(this,mt,!0),bt(Kt)}})}get settled(){return Fe(this,mt)}};let at=null,St=null;q.AnnotationPrefix="pdfjs_internal_id_"},(xe,q,c)=>{var t=c(3),_=c(4),x=c(69),re=c(70),te="WebAssembly",Q=_[te],S=7!==Error("e",{cause:7}).cause,W=function(C,L){var E={};E[C]=re(C,L,S),t({global:!0,constructor:!0,arity:1,forced:S},E)}
1,P=function(C,L){if(Q&&Q[C]){var E={};E[C]=re(te+"."+C,L,S),t({target:te,stat:!0,constructor:!0,arity:1,forced:S},E)}};W("Error",function(C){return function(E){return x(C,this,arguments)}}),W("EvalError",function(C){return function(E){return x(C,this,arguments)}}),W("RangeError",function(C){return function(E){return x(C,this,arguments)}}),W("ReferenceError",function(C){return function(E){return x(C,this,arguments)}}),W("SyntaxError",function(C){return function(E){return x(C,this,arguments)}}),W("TypeError",function(C){return function(E){return x(C,this,arguments)}}),W("URIError",function(C){return function(E){return x(C,this,arguments)}}),P("CompileError",function(C){return function(E){return x(C,this,arguments)}}),P("LinkError",function(C){return function(E){return x(C,this,arguments)}}),P("RuntimeError",function(C){return function(E){return x(C,this,arguments)}})},(xe,q,c)=>{var t=c(4),_=c(5).f,x=c(44),re=c(48),te=c(38),Q=c(56),S=c(68);xe.exports=function(W,P){var v,R,j,M,V,C=W.target,L=W.global,E=W.stat;if(v=L?t:E?t[C]||te(C,{}):(t[C]||{}).prototype)for(R in P){if(M=P[R],j=W.dontCallGetSet?(V=_(v,R))&&V.value:v[R],!S(L?R:C+(E?".":"#")+R,W.forced)&&void 0!==j){if(typeof M==typeof j)continue;Q(M,j)}(W.sham||j&&j.sham)&&x(M,"sham",!0),re(v,R,M,W)}}},function(xe){var q=function(c){return c&&c.Math===Math&&c};xe.exports=q("object"==typeof globalThis&&globalThis)||q("object"==typeof window&&window)||q("object"==typeof self&&self)||q("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},(xe,q,c)=>{var t=c(6),_=c(8),x=c(10),re=c(11),te=c(12),Q=c(18),S=c(39),W=c(42),P=Object.getOwnPropertyDescriptor;q.f=t?P:function(L,E){if(L=te(L),E=Q(E),W)try{return P(L,E)}catch(m){}if(S(L,E))return re(!_(x.f,L,E),L[E])}},(xe,q,c)=>{var t=c(7);xe.exports=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},xe=>{xe.exports=function(q){try{return!!q()}catch(c){return!0}}},(xe,q,c)=>{var t=c(9),_=Function.prototype.call;xe.exports=t?_.bind(_):function(){return _.apply(_,arguments)}},(xe,q,c)=>{var t=c(7);xe.exports=!t(function(){var _=function(){}.bind();return"function"!=typeof _||_.hasOwnProperty("prototype")})},(xe,q)=>{var c={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,_=t&&!c.call({1:2},1);q.f=_?function(re){var te=t(this,re);return!!te&&te.enumerable}:c},xe=>{xe.exports=function(q,c){return{enumerable:!(1&q),configurable:!(2&q),writable:!(4&q),value:c}}},(xe,q,c)=>{var t=c(13),_=c(16);xe.exports=function(x){return t(_(x))}},(xe,q,c)=>{var t=c(14),_=c(7),x=c(15),re=Object,te=t("".split);xe.exports=_(function(){return!re("z").propertyIsEnumerable(0)})?function(Q){return"String"===x(Q)?te(Q,""):re(Q)}:re},(xe,q,c)=>{var t=c(9),_=Function.prototype,x=_.call,re=t&&_.bind.bind(x,x);xe.exports=t?re:function(te){return function(){return x.apply(te,arguments)}}},(xe,q,c)=>{var t=c(14),_=t({}.toString),x=t("".slice);xe.exports=function(re){return x(_(re),8,-1)}},(xe,q,c)=>{var t=c(17),_=TypeError;xe.exports=function(x){if(t(x))throw _("Can't call method on "+x);return x}},xe=>{xe.exports=function(q){return null==q}},(xe,q,c)=>{var t=c(19),_=c(23);xe.exports=function(x){var re=t(x,"string");return _(re)?re:re+""}},(xe,q,c)=>{var t=c(8),_=c(20),x=c(23),re=c(30),te=c(33),Q=c(34),S=TypeError,W=Q("toPrimitive");xe.exports=function(P,C){if(!_(P)||x(P))return P;var E,L=re(P,W);if(L){if(void 0===C&&(C="default"),E=t(L,P,C),!_(E)||x(E))return E;throw S("Can't convert object to primitive value")}return void 0===C&&(C="number"),te(P,C)}},(xe,q,c)=>{var t=c(21),_=c(22),x=_.all;xe.exports=_.IS_HTMLDDA?function(re){return"object"==typeof re?null!==re:t(re)||re===x}:function(re){return"object"==typeof re?null!==re:t(re)}},(xe,q,c)=>{var t=c(22),_=t.all;xe.exports=t.IS_HTMLDDA?function(x){return"function"==typeof x||x===_}:function(x){return"function"==typeof x}},xe=>{var q="object"==typeof document&&document.all;xe.exports={all:q,IS_HTMLDDA:void 0===q&&void 0!==q}},(xe,q,c)=>{var t=c(24),_=c(21),x=c(25),re=c(26),te=Object;xe.exports=re?function(Q){return"symbol"==typeof Q}:function(Q){var S=t("Symbol");return _(S)&&x(S.prototype,te(Q))}},(xe,q,c)=>{var t=c(4),_=c(21),x=function(re){return _(re)?re:void 0};xe.exports=function(re,te){return arguments.length<2?x(t[re]):t[re]&&t[re][te]}},(xe,q,c)=>{var t=c(14);xe.exports=t({}.isPrototypeOf)},(xe,q,c)=>{var t=c(27);xe.exports=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(xe,q,c)=>{var t=c(28),_=c(7),re=c(4).String;xe.exports=!!Object.getOwnPropertySymbols&&!_(function(){var te=Symbol("symbol detection");return!re(te)||!(Object(te)instanceof Symbol)||!Symbol.sham&&t&&t<41})},(xe,q,c)=>{var S,W,t=c(4),_=c(29),x=t.process,re=t.Deno,te=x&&x.versions||re&&re.version,Q=te&&te.v8;Q&&(W=(S=Q.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!W&&_&&(!(S=_.match(/Edge\/(\d+)/))||S[1]>
vendor: 6,331 bytes, line 1
1=74)&&(S=_.match(/Chrome\/(\d+)/))&&(W=+S[1]),xe.exports=W},xe=>{xe.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(xe,q,c)=>{var t=c(31),_=c(17);xe.exports=function(x,re){var te=x[re];return _(te)?void 0:t(te)}},(xe,q,c)=>{var t=c(21),_=c(32),x=TypeError;xe.exports=function(re){if(t(re))return re;throw x(_(re)+" is not a function")}},xe=>{var q=String;xe.exports=function(c){try{return q(c)}catch(t){return"Object"}}},(xe,q,c)=>{var t=c(8),_=c(21),x=c(20),re=TypeError;xe.exports=function(te,Q){var S,W;if("string"===Q&&_(S=te.toString)&&!x(W=t(S,te))||_(S=te.valueOf)&&!x(W=t(S,te))||"string"!==Q&&_(S=te.toString)&&!x(W=t(S,te)))return W;throw re("Can't convert object to primitive value")}},(xe,q,c)=>{var t=c(4),_=c(35),x=c(39),re=c(41),te=c(27),Q=c(26),S=t.Symbol,W=_("wks"),P=Q?S.for||S:S&&S.withoutSetter||re;xe.exports=function(C){return x(W,C)||(W[C]=te&&x(S,C)?S[C]:P("Symbol."+C)),W[C]}},(xe,q,c)=>{var t=c(36),_=c(37);(xe.exports=function(x,re){return _[x]||(_[x]=void 0!==re?re:{})})("versions",[]).push({version:"3.32.2",mode:t?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},xe=>{xe.exports=!1},(xe,q,c)=>{var t=c(4),_=c(38),x="__core-js_shared__",re=t[x]||_(x,{});xe.exports=re},(xe,q,c)=>{var t=c(4),_=Object.defineProperty;xe.exports=function(x,re){try{_(t,x,{value:re,configurable:!0,writable:!0})}catch(te){t[x]=re}return re}},(xe,q,c)=>{var t=c(14),_=c(40),x=t({}.hasOwnProperty);xe.exports=Object.hasOwn||function(te,Q){return x(_(te),Q)}},(xe,q,c)=>{var t=c(16),_=Object;xe.exports=function(x){return _(t(x))}},(xe,q,c)=>{var t=c(14),_=0,x=Math.random(),re=t(1..toString);xe.exports=function(te){return"Symbol("+(void 0===te?"":te)+")_"+re(++_+x,36)}},(xe,q,c)=>{var t=c(6),_=c(7),x=c(43);xe.exports=!t&&!_(function(){return 7!==Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})},(xe,q,c)=>{var t=c(4),_=c(20),x=t.document,re=_(x)&&_(x.createElement);xe.exports=function(te){return re?x.createElement(te):{}}},(xe,q,c)=>{var t=c(6),_=c(45),x=c(11);xe.exports=t?function(re,te,Q){return _.f(re,te,x(1,Q))}:function(re,te,Q){return re[te]=Q,re}},(xe,q,c)=>{var t=c(6),_=c(42),x=c(46),re=c(47),te=c(18),Q=TypeError,S=Object.defineProperty,W=Object.getOwnPropertyDescriptor,P="enumerable",C="configurable",L="writable";q.f=t?x?function(m,v,R){if(re(m),v=te(v),re(R),"function"==typeof m&&"prototype"===v&&"value"in R&&L in R&&!R[L]){var j=W(m,v);j&&j[L]&&(m[v]=R.value,R={configurable:C in R?R[C]:j[C],enumerable:P in R?R[P]:j[P],writable:!1})}return S(m,v,R)}:S:function(m,v,R){if(re(m),v=te(v),re(R),_)try{return S(m,v,R)}catch(j){}if("get"in R||"set"in R)throw Q("Accessors not supported");return"value"in R&&(m[v]=R.value),m}},(xe,q,c)=>{var t=c(6),_=c(7);xe.exports=t&&_(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(xe,q,c)=>{var t=c(20),_=String,x=TypeError;xe.exports=function(re){if(t(re))return re;throw x(_(re)+" is not an object")}},(xe,q,c)=>{var t=c(21),_=c(45),x=c(49),re=c(38);xe.exports=function(te,Q,S,W){W||(W={});var P=W.enumerable,C=void 0!==W.name?W.name:Q;if(t(S)&&x(S,C,W),W.global)P?te[Q]=S:re(Q,S);else{try{W.unsafe?te[Q]&&(P=!0):delete te[Q]}catch(L){}P?te[Q]=S:_.f(te,Q,{value:S,enumerable:!1,configurable:!W.nonConfigurable,writable:!W.nonWritable})}return te}},(xe,q,c)=>{var t=c(14),_=c(7),x=c(21),re=c(39),te=c(6),Q=c(50).CONFIGURABLE,S=c(51),W=c(52),P=W.enforce,C=W.get,L=String,E=Object.defineProperty,m=t("".slice),v=t("".replace),R=t([].join),j=te&&!_(function(){return 8!==E(function(){},"length",{value:8}).length}),M=String(String).split("String"),V=xe.exports=function(f,T,Z){"Symbol("===m(L(T),0,7)&&(T="["+v(L(T),/^Symbol\(([^)]*)\)/,"$1")+"]"),Z&&Z.getter&&(T="get "+T),Z&&Z.setter&&(T="set "+T),(!re(f,"name")||Q&&f.name!==T)&&(te?E(f,"name",{value:T,configurable:!0}):f.name=T),j&&Z&&re(Z,"arity")&&f.length!==Z.arity&&E(f,"length",{value:Z.arity});try{Z&&re(Z,"constructor")&&Z.constructor?te&&E(f,"prototype",{writable:!1}):f.prototype&&(f.prototype=void 0)}catch($){}var G=P(f);return re(G,"source")||(G.source=R(M,"string"==typeof T?T:"")),f};Function.prototype.toString=V(function(){return x(this)&&C(this).source||S(this)},"toString")},(xe,q,c)=>{var t=c(6),_=c(39),x=Function.prototype,re=t&&Object.getOwnPropertyDescriptor,te=_(x,"name"),Q=te&&"something"===function(){}.name,S=te&&(!t||t&&re(x,"name").configurable);xe.exports={EXISTS:te,PROPER:Q,CONFIGURABLE:S}},(xe,q,c)=>{var t=c(14),_=c(21),x=c(37),re=t(Function.toString);_(x.inspectSource)||(x.inspectSource=function(te){return re(te)}),xe.exports=x.inspectSource},(xe,q,c)=>{var E,m,v,t=c(53),_=c(4),x=c(20),re=c(44),te=c(39),Q=c(37),S=c(54),W=c(55),P="Object already initialized",C=_.TypeError;if(t||Q.state){var M=Q.state||(Q.state=new(0,_.WeakMap));M.get=M.get,M.has=M.has,M.set=M.set,E=function(f,T){if(M.has(f))throw C(P);return T.facade=f,M.set(f,T),T},m=function(f){return M.get(f)||{}},v=function(f){return M.has(f)}}else{var V=S("state");W[V]=!0,E=function(f,T){if(te(f,V))throw C(P);return T.facade=f,re(f,V,T),T},m=function(f){return te(f,V)?f[V]:{}},v=function(f){return te(f,V)}}xe.exports={set:E,get:m,has:v,enforce:function(f){return v(f)?m(f):E(f,{})},getterFor:function(f){return function(T){var Z;if(!x(T)||(Z=m(T)).type!==f)throw C("Incompatible receiver, "+f+" required");return Z}}}},(xe,q,c)=>{var t=c(4),_=c(21),x=t.WeakMap;xe.exports=_(x)&&/native code/.test(String(x))},(xe,q,c)=>{var t=c(35),_=c(41),x=t("keys");xe.exports=function(re){return x[re]||(x[re]=_(re))}},xe=>{xe.exports={}},(xe,q,c)=>{var t=c(39),_=c(57),x=c(5),re=c(45);xe.exports=function(te,Q,S){for(var W=_(Q),P=re.f,C=x.f,L=0;L<W.length;L++){var E=W[L];!t(te,E)&&(!S||!t(S,E))&&P(te,E,C(Q,E))}}},(xe,q,c)=>{var t=c(24),_=c(14),x=c(58),re=c(67),te=c(47),Q=_([].concat);xe.exports=t("Reflect","ownKeys")||function(W){var P=x.f(te(W)),C=re.f;return C?Q(P,C(W)):P}},(xe,q,c)=>{var t=c(59),x=c(66).concat("length","prototype");q.f=Object.getOwnPropertyNames||function(te){return t(te,x)}},(xe,q,c)=>{var t=c(14),_=c(39),x=c(12),re=c(60).indexOf,te=c(55),Q=t([].push);xe.exports=function(S,W){var E,P=x(S),C=0,L=[];for(E in P)!_(te,E)&&_(P,E)&&Q(L,E);for(;W.length>C;
1)_(P,E=W[C++])&&(~re(L,E)||Q(L,E));return L}},(xe,q,c)=>{var t=c(12),_=c(61),x=c(64),re=function(te){return function(Q,S,W){var E,P=t(Q),C=x(P),L=_(W,C);if(te&&S!=S){for(;C>L;)if((E=P[L++])!=E)return!0}else for(;C>L;L++)if((te||L in P)&&P[L]===S)return te||L||0;return!te&&-1}};xe.exports={includes:re(!0),indexOf:re(!1)}},(xe,q,c)=>{var t=c(62),_=Math.max,x=Math.min;xe.exports=function(re,te){var Q=t(re);return Q<0?_(Q+te,0):x(Q,te)}},(xe,q,c)=>{var t=c(63);xe.exports=function(_){var x=+_;return x!=x||0===x?0:t(x)}},xe=>{var q=Math.ceil,c=Math.floor;xe.exports=Math.trunc||function(_){var x=+_;return(x>0?c:q)(x)}},(xe,q,c)=>{var t=c(65);xe.exports=function(_){return t(_.length)}},(xe,q,c)=>{var t=c(62),_=Math.min;xe.exports=function(x){return x>0?_(t(x),9007199254740991):0}},xe=>{xe.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(xe,q)=>{q.f=Object.getOwnPropertySymbols},(xe,q,c)=>{var t=c(7),_=c(21),x=/#|\.prototype\./,re=function(P,C){var L=Q[te(P)];return L===W||L!==S&&(_(C)?t(C):!!C)},te=re.normalize=function(P){return String(P).replace(x,".").toLowerCase()},Q=re.data={},S=re.NATIVE="N",W=re.POLYFILL="P";xe.exports=re},(xe,q,c)=>{var t=c(9),_=Function.prototype,x=_.apply,re=_.call;xe.exports="object"==typeof Reflect&&Reflect.apply||(t?re.bind(x):function(){return re.apply(x,arguments)})},(xe,q,c)=>{var t=c(24),_=c(39),x=c(44),re=c(25),te=c(71),Q=c(56),S=c(74),W=c(75),P=c(76),C=c(80),L=c(81),E=c(6),m=c(36);xe.exports=function(v,R,j,M){var V="stackTraceLimit",f=M?2:1,T=v.split("."),Z=T[T.length-1],G=t.apply(null,T);if(G){var $=G.prototype;if(!m&&_($,"cause")&&delete $.cause,!j)return G;var se=t("Error"),y=R(function(k,I){var H=P(M?I:k,void 0),ee=M?new G(k):new G;return void 0!==H&&x(ee,"message",H),L(ee,y,ee.stack,2),this&&re($,this)&&W(ee,this,y),arguments.length>f&&C(ee,arguments[f]),ee});if(y.prototype=$,"Error"!==Z?te?te(y,se):Q(y,se,{name:!0}):E&&V in G&&(S(y,G,V),S(y,G,"prepareStackTrace")),Q(y,G),!m)try{$.name!==Z&&x($,"name",Z),$.constructor=y}catch(k){}return y}}},(xe,q,c)=>{var t=c(72),_=c(47),x=c(73);
1xe.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Q,re=!1,te={};try{(Q=t(Object.prototype,"__proto__","set"))(te,[]),re=te instanceof Array}catch(S){}return function(W,P){return _(W),x(P),re?Q(W,P):W.__proto__=P,W}}():void 0)},(xe,q,c)=>{var t=c(14),_=c(31);xe.exports=function(x,re,te){try{return t(_(Object.getOwnPropertyDescriptor(x,re)[te]))}catch(Q){}}},(xe,q,c)=>{var t=c(21),_=String,x=TypeError;xe.exports=function(re){if("object"==typeof re||t(re))return re;throw x("Can't set "+_(re)+" as a prototype")}},(xe,q,c)=>{var t=c(45).f;xe.exports=function(_,x,re){re in _||t(_,re,{configurable:!0,get:function(){return x[re]},set:function(te){x[re]=te}})}},(xe,q,c)=>{var t=c(21),_=c(20),x=c(71);xe.exports=function(re,te,Q){var S,W;return x&&t(S=te.constructor)&&S!==Q&&_(W=S.prototype)&&W!==Q.prototype&&x(re,W),re}},(xe,q,c)=>{var t=c(77);xe.exports=function(_,x){return void 0===_?arguments.length<2?"":x:t(_)}},(xe,q,c)=>{var t=c(78),_=String;xe.exports=function(x){if("Symbol"===t(x))throw TypeError("Cannot convert a Symbol value to a string");return _(x)}},(xe,q,c)=>{var t=c(79),_=c(21),x=c(15),te=c(34)("toStringTag"),Q=Object,S="Arguments"===x(function(){return arguments}());xe.exports=t?x:function(P){var C,L,E;return void 0===P?"Undefined":null===P?"Null":"string"==typeof(L=function(P,C){try{return P[C]}catch(L){}}(C=Q(P),te))?L:S?x(C):"Object"===(E=x(C))&&_(C.callee)?"Arguments":E}},(xe,q,c)=>{var x={};x[c(34)("toStringTag")]="z",xe.exports="[object z]"===String(x)},(xe,q,c)=>{var t=c(20),_=c(44);xe.exports=function(x,re){t(re)&&"cause"in re&&_(x,"cause",re.cause)}},(xe,q,c)=>{var t=c(44),_=c(82),x=c(83),re=Error.captureStackTrace;xe.exports=function(te,Q,S,W){x&&(re?re(te,Q):t(te,"stack",_(S,W)))}},(xe,q,c)=>{var t=c(14),_=Error,x=t("".replace),re=String(_("zxcasd").stack),te=/\n\s*at [^:]*:[^\n]*/,Q=te.test(re);xe.exports=function(S,W){if(Q&&"string"==typeof S&&!_.prepareStackTrace)for(;W--;)S=x(S,te,"");return S}},(xe,q,c)=>{var t=c(7),_=c(11);xe.exports=!t(function(){var x=Error("a");return!("stack"in x)||(Object.defineProperty(x,"stack",_(1,7)),7!==x.stack)})},(xe,q,c)=>{var t=c(48),_=c(14),x=c(77),re=c(85),te=URLSearchParams,Q=te.prototype,S=_(Q.append),W=_(Q.delete),P=_(Q.forEach),C=_([].push),L=new te("a=1&a=2&b=3");L.delete("a",1),L.delete("b",void 0),L+""!="a=2"&&t(Q,"delete",function(E){var m=arguments.length,v=m<2?void 0:arguments[1];if(m&&void 0===v)return W(this,E);var R=[];P(this,function($,se){C(R,{key:se,value:$})}),re(m,1);for(var G,j=x(E),M=x(v),V=0,f=0,T=!1,Z=R.length;V<Z;)G=R[V++],T||G.key===j?(T=!0,W(this,G.key)):f++;for(;f<Z;)(G=R[f++]).key===j&&G.value===M||S(this,G.key,G.value)},{enumerable:!0,unsafe:!0})},xe=>{var q=TypeError;xe.exports=function(c,t){if(c<t)throw q("Not enough arguments");return c}},(xe,q,c)=>{var t=c(48),_=c(14),x=c(77),re=c(85),te=URLSearchParams,Q=te.prototype,S=_(Q.getAll),W=_(Q.has),P=new te("a=1");(P.has("a",2)||!P.has("a",void 0))&&t(Q,"has",function(L){var E=arguments.length,m=E<2?void 0:arguments[1];if(E&&void 0===m)return W(this,L);var v=S(this,L);re(E,1);for(var R=x(m),j=0;j<v.length;)if(v[j++]===R)return!0;return!1},{enumerable:!0,unsafe:!0})},(xe,q,c)=>{var t=c(6),_=c(14),x=c(88),re=URLSearchParams.prototype,te=_(re.forEach);t&&!("size"in re)&&x(re,"size",{get:function(){var S=0;return te(this,function(){S++}),S},configurable:!0,enumerable:!0})},(xe,q,c)=>{var t=c(49),_=c(45);xe.exports=function(x,re,te){return te.get&&t(te.get,re,{getter:!0}),te.set&&t(te.set,re,{setter:!0}),_.f(x,re,te)}},(xe,q,c)=>{var t=c(3),_=c(40),x=c(64),re=c(90),te=c(92);t({target:"Array",proto:!0,arity:1,forced:c(7)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(C){return C instanceof TypeError}}()},{push:function(L){var E=_(this),m=x(E),v=arguments.length;te(m+v);for(var R=0;R<v;R++)E[m]=arguments[R],m++;return re(E,m),m}})},(xe,q,c)=>{var t=c(6),_=c(91),x=TypeError,re=Object.getOwnPropertyDescriptor,te=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(Q){return Q instanceof TypeError}}();
1xe.exports=te?function(Q,S){if(_(Q)&&!re(Q,"length").writable)throw x("Cannot set read only .length");return Q.length=S}:function(Q,S){return Q.length=S}},(xe,q,c)=>{var t=c(15);xe.exports=Array.isArray||function(x){return"Array"===t(x)}},xe=>{var q=TypeError;xe.exports=function(t){if(t>9007199254740991)throw q("Maximum allowed index exceeded");return t}},(xe,q,c)=>{var t=c(94),_=c(98).findLast,x=t.aTypedArray;(0,t.exportTypedArrayMethod)("findLast",function(Q){return _(x(this),Q,arguments.length>1?arguments[1]:void 0)})},(xe,q,c)=>{var We,Re,He,t=c(95),_=c(6),x=c(4),re=c(21),te=c(20),Q=c(39),S=c(78),W=c(32),P=c(44),C=c(48),L=c(88),E=c(25),m=c(96),v=c(71),R=c(34),j=c(41),M=c(52),V=M.enforce,f=M.get,T=x.Int8Array,Z=T&&T.prototype,G=x.Uint8ClampedArray,$=G&&G.prototype,se=T&&m(T),y=Z&&m(Z),k=Object.prototype,I=x.TypeError,H=R("toStringTag"),ee=j("TYPED_ARRAY_TAG"),z="TypedArrayConstructor",oe=t&&!!v&&"Opera"!==S(x.opera),ve=!1,ge={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O={BigInt64Array:8,BigUint64Array:8},p=function(he){var Oe=m(he);if(te(Oe)){var Ne=f(Oe);return Ne&&Q(Ne,z)?Ne[z]:p(Oe)}},A=function(he){if(!te(he))return!1;var Oe=S(he);return Q(ge,Oe)||Q(O,Oe)};for(We in ge)(He=(Re=x[We])&&Re.prototype)?V(He)[z]=Re:oe=!1;for(We in O)(He=(Re=x[We])&&Re.prototype)&&(V(He)[z]=Re);if((!oe||!re(se)||se===Function.prototype)&&(se=function(){throw I("Incorrect invocation")},oe))for(We in ge)x[We]&&v(x[We],se);if((!oe||!y||y===k)&&(y=se.prototype,oe))for(We in ge)x[We]&&v(x[We].prototype,y);if(oe&&m($)!==y&&v($,y),_&&!Q(y,H))for(We in ve=!0,L(y,H,{configurable:!0,get:function(){return te(this)?this[ee]:void 0}}),ge)x[We]&&P(x[We],ee,We);xe.exports={NATIVE_ARRAY_BUFFER_VIEWS:oe,TYPED_ARRAY_TAG:ve&&ee,aTypedArray:function(he){if(A(he))return he;throw I("Target is not a typed array")},aTypedArrayConstructor:function(he){if(re(he)&&(!v||E(se,he)))return he;throw I(W(he)+" is not a typed array constructor")},exportTypedArrayMethod:function(he,Oe,Ne,Ye){if(_){if(Ne)for(var Qe in ge){var Ct=x[Qe];if(Ct&&Q(Ct.prototype,he))try{delete Ct.prototype[he]}catch(Ot){try{Ct.prototype[he]=Oe}catch(ln){}}}(!y[he]||Ne)&&C(y,he,Ne?Oe:oe&&Z[he]||Oe,Ye)}},exportTypedArrayStaticMethod:function(he,Oe,Ne){var Ye,Qe;if(_){if(v){if(Ne)for(Ye in ge)if((Qe=x[Ye])&&Q(Qe,he))try{delete Qe[he]}catch(Ct){}if(se[he]&&!Ne)return;try{return C(se,he,Ne?Oe:oe&&se[he]||Oe)}catch(Ct){}}for(Ye in ge)(Qe=x[Ye])&&(!Qe[he]||Ne)&&C(Qe,he,Oe)}},getTypedArrayConstructor:p,isView:function(Oe){if(!te(Oe))return!1;var Ne=S(Oe);return"DataView"===Ne||Q(ge,Ne)||Q(O,Ne)},isTypedArray:A,TypedArray:se,TypedArrayPrototype:y}},xe=>{xe.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(xe,q,c)=>{var t=c(39),_=c(21),x=c(40),re=c(54),te=c(97),Q=re("IE_PROTO"),S=Object,W=S.prototype;xe.exports=te?S.getPrototypeOf:function(P){var C=x(P);if(t(C,Q))return C[Q];var L=C.constructor;return _(L)&&C instanceof L?L.prototype:C instanceof S?W:null}},(xe,q,c)=>{var t=c(7);xe.exports=!t(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},(xe,q,c)=>{var t=c(99),_=c(13),x=c(40),re=c(64),te=function(Q){var S=1===Q;return function(W,P,C){for(var R,L=x(W),E=_(L),m=t(P,C),v=re(E);v-- >0;)if(m(R=E[v],v,L))switch(Q){case 0:return R;case 1:return v}return S?-1:void 0}};xe.exports={findLast:te(0),findLastIndex:te(1)}},(xe,q,c)=>{var t=c(100),_=c(31),x=c(9),re=t(t.bind);xe.exports=function(te,Q){return _(te),void 0===Q?te:x?re(te,Q):function(){return te.apply(Q,arguments)}}},(xe,q,c)=>{var t=c(15),_=c(14);xe.exports=function(x){if("Function"===t(x))return _(x)}},(xe,q,c)=>{var t=c(94),_=c(98).findLastIndex,x=t.aTypedArray;(0,t.exportTypedArrayMethod)("findLastIndex",function(Q){return _(x(this),Q,arguments.length>1?arguments[1]:void 0)})},(xe,q,c)=>{var t=c(4),_=c(8),x=c(94),re=c(64),te=c(103),Q=c(40),S=c(7),W=t.RangeError,P=t.Int8Array,C=P&&P.prototype,L=C&&C.set,E=x.aTypedArray,m=x.exportTypedArrayMethod,v=!S(function(){var j=new Uint8ClampedArray(2);return _(L,j,{length:1,0:3},1),3!==j[1]}),R=v&&x.NATIVE_ARRAY_BUFFER_VIEWS&&S(function(){var j=new P(2);return j.set(1),j.set("2",1),0!==j[0]||2!==j[1]});m("set",function(M){E(this);var V=te(arguments.length>
11?arguments[1]:void 0,1),f=Q(M);if(v)return _(L,this,f,V);var T=this.length,Z=re(f),G=0;if(Z+V>T)throw W("Wrong length");for(;G<Z;)this[V+G]=f[G++]},!v||R)},(xe,q,c)=>{var t=c(104),_=RangeError;xe.exports=function(x,re){var te=t(x);if(te%re)throw _("Wrong offset");return te}},(xe,q,c)=>{var t=c(62),_=RangeError;xe.exports=function(x){var re=t(x);if(re<0)throw _("The argument can't be less than 0");return re}},(xe,q,c)=>{var t=c(106),_=c(94),x=_.aTypedArray,te=_.getTypedArrayConstructor;(0,_.exportTypedArrayMethod)("toReversed",function(){return t(x(this),te(this))})},(xe,q,c)=>{var t=c(64);xe.exports=function(_,x){for(var re=t(_),te=new x(re),Q=0;Q<re;Q++)te[Q]=_[re-Q-1];return te}},(xe,q,c)=>{var t=c(94),_=c(14),x=c(31),re=c(108),te=t.aTypedArray,Q=t.getTypedArrayConstructor,S=t.exportTypedArrayMethod,W=_(t.TypedArrayPrototype.sort);S("toSorted",function(C){void 0!==C&&x(C);var L=te(this),E=re(Q(L),L);return W(E,C)})},(xe,q,c)=>{var t=c(64);xe.exports=function(_,x){for(var re=0,te=t(x),Q=new _(te);te>re;)Q[re]=x[re++];return Q}},(xe,q,c)=>{var t=c(110),_=c(94),x=c(111),re=c(62),te=c(112),Q=_.aTypedArray,S=_.getTypedArrayConstructor;(0,_.exportTypedArrayMethod)("with",function(C,L){var E=Q(this),m=re(C),v=x(E)?te(L):+L;return t(E,S(E),m,v)},!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(C){return 8===C}}())},(xe,q,c)=>{var t=c(64),_=c(62),x=RangeError;xe.exports=function(re,te,Q,S){var W=t(re),P=_(Q),C=P<0?W+P:P;if(C>=W||C<0)throw x("Incorrect index");for(var L=new te(W),E=0;E<W;E++)L[E]=E===C?S:re[E];return L}},(xe,q,c)=>{var t=c(78);xe.exports=function(_){var x=t(_);return"BigInt64Array"===x||"BigUint64Array"===x}},(xe,q,c)=>{var t=c(19),_=TypeError;xe.exports=function(x){var re=t(x,"number");if("number"==typeof re)throw _("Can't convert number to bigint");return BigInt(re)}},(xe,q,c)=>{var t=c(6),_=c(88),x=c(114),re=ArrayBuffer.prototype;t&&!("detached"in re)&&_(re,"detached",{configurable:!0,get:function(){return x(this)}})},(xe,q,c)=>{var t=c(14),_=c(115),x=t(ArrayBuffer.prototype.slice);xe.exports=function(re){if(0!==_(re))return!1;try{return x(re,0,0),!1}catch(te){return!0}}},(xe,q,c)=>{var t=c(72),_=c(15),x=TypeError;xe.exports=t(ArrayBuffer.prototype,"byteLength","get")||function(re){if("ArrayBuffer"!==_(re))throw x("ArrayBuffer expected");return re.byteLength}},(xe,q,c)=>{var t=c(3),_=c(117);_&&t({target:"ArrayBuffer",proto:!0},{transfer:function(){return _(this,arguments.length?arguments[0]:void 0,!0)}})},(xe,q,c)=>{var t=c(4),_=c(14),x=c(72),re=c(118),te=c(114),Q=c(115),S=c(119),W=t.TypeError,P=t.structuredClone,C=t.ArrayBuffer,L=t.DataView,E=Math.min,m=C.prototype,v=L.prototype,R=_(m.slice),j=x(m,"resizable","get"),M=x(m,"maxByteLength","get"),V=_(v.getInt8),f=_(v.setInt8);xe.exports=S&&function(T,Z,G){var $=Q(T),se=void 0===Z?$:re(Z),y=!j||!j(T);if(te(T))throw W("ArrayBuffer is detached");var k=P(T,{transfer:[T]});if($===se&&(G||y))return k;if($>=se&&(!G||y))return R(k,0,se);for(var I=G&&!y&&M?{maxByteLength:M(k)}:void 0,H=new C(se,I),ee=new L(k),z=new L(H),oe=E(se,$),ve=0;ve<oe;ve++)f(z,ve,V(ee,ve));return H}},(xe,q,c)=>{var t=c(62),_=c(65),x=RangeError;xe.exports=function(re){if(void 0===re)return 0;var te=t(re),Q=_(te);if(te!==Q)throw x("Wrong length or index");return Q}},(xe,q,c)=>{var t=c(4),_=c(7),x=c(28),re=c(120),te=c(121),Q=c(122),S=t.structuredClone;xe.exports=!!S&&!_(function(){if(te&&x>92||Q&&x>94||re&&x>97)return!1;var W=new ArrayBuffer(8),P=S(W,{transfer:[W]});return 0!==W.byteLength||8!==P.byteLength})},(xe,q,c)=>{var t=c(121),_=c(122);xe.exports=!t&&!_&&"object"==typeof window&&"object"==typeof document},xe=>{xe.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},(xe,q,c)=>{var t=c(4),_=c(15);xe.exports="process"===_(t.process)},(xe,q,c)=>{var t=c(3),_=c(117);_&&t({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return _(this,arguments.length?arguments[0]:void 0,!1)}})},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var xe,c,t,_,Zf,re,cy,Q,S,W,P,C,L,E,m,v,hy,j,M,cE,f,T;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0,__w_pdfjs_require__(84),__w_pdfjs_require__(86),__w_pdfjs_require__(87),__w_pdfjs_require__(2),__w_pdfjs_require__(93),__w_pdfjs_require__(101),__w_pdfjs_require__(102),__w_pdfjs_require__(105),__w_pdfjs_require__(107),__w_pdfjs_require__(109),__w_pdfjs_require__(113),__w_pdfjs_require__(116),__w_pdfjs_require__(123),__w_pdfjs_require__(89),__w_pdfjs_require__(125),__w_pdfjs_require__(136),__w_pdfjs_require__(138),__w_pdfjs_require__(141),__w_pdfjs_require__(143),__w_pdfjs_require__(145),__w_pdfjs_require__(147),__w_pdfjs_require__(149),__w_pdfjs_require__(152);var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(163),_display_utils=__w_pdfjs_require__(168),_font_loader=__w_pdfjs_require__(171),_displayNode_utils=__w_pdfjs_require__(172),_canvas=__w_pdfjs_require__(173),_worker_options=__w_pdfjs_require__(176),_message_handler=__w_pdfjs_require__(177),_metadata=__w_pdfjs_require__(178),_optional_content_config=__w_pdfjs_require__(179),_transport_stream=__w_pdfjs_require__(180),_displayFetch_stream=__w_pdfjs_require__(181),_displayNetwork=__w_pdfjs_require__(184),_displayNode_stream=__w_pdfjs_require__(185),_displaySvg=__w_pdfjs_require__(186),_xfa_text=__w_pdfjs_require__(194);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(G){var cn,gt;if("string"==typeof G||G instanceof URL?G={url:G}:(0,_util.isArrayBuffer)(G)&&(G={data:G}),"object"!=typeof G)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!G.url&&!G.data&&!G.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const $=new PDFDocumentLoadingTask,{docId:se}=$,y=G.url?getUrlProp(G.url):null,k=G.data?getDataProp(G.data):null,I=G.httpHeaders||null,H=!0===G.withCredentials,ee=null!=(cn=G.password)?cn:null,z=G.range instanceof PDFDataRangeTransport?G.range:null,oe=Number.isInteger(G.rangeChunkSize)&&G.rangeChunkSize>0?G.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let ve=G.worker instanceof PDFWorker?G.worker:null;const We=G.verbosity,Re="string"!=typeof G.docBaseUrl||(0,_display_utils.isDataScheme)(G.docBaseUrl)?null:G.docBaseUrl,He="string"==typeof G.cMapUrl?G.cMapUrl:null,ge=!1!==G.cMapPacked,O=G.CMapReaderFactory||DefaultCMapReaderFactory,b="string"==typeof G.standardFontDataUrl?G.standardFontDataUrl:null,p=G.StandardFontDataFactory||DefaultStandardFontDataFactory,A=!0!==G.stopAtErrors,N=Number.isInteger(G.maxImageSize)&&G.maxImageSize>-1?G.maxImageSize:-1,K=!1!==G.isEvalSupported,J="boolean"==typeof G.isOffscreenCanvasSupported?G.isOffscreenCanvasSupported:!_util.isNodeJS,ie=Number.isInteger(G.canvasMaxAreaInBytes)?G.canvasMaxAreaInBytes:-1,he="boolean"==typeof G.disableFontFace?G.disableFontFace:_util.isNodeJS,Oe=!0===G.fontE
1xtraProperties,Ne=!0===G.enableXfa,Ye=G.ownerDocument||globalThis.document,Qe=!0===G.disableRange,Ct=!0===G.disableStream,Ot=!0===G.disableAutoFetch,ln=!0===G.pdfBug,Lt=z?z.length:null!=(gt=G.length)?gt:NaN,Jt="boolean"==typeof G.useSystemFonts?G.useSystemFonts:!_util.isNodeJS&&!he,Rt="boolean"==typeof G.useWorkerFetch?G.useWorkerFetch:O===_display_utils.DOMCMapReaderFactory&&p===_display_utils.DOMStandardFontDataFactory&&He&&b&&(0,_display_utils.isValidFetchUrl)(He,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(b,document.baseURI),it=G.canvasFactory||new DefaultCanvasFactory({ownerDocument:Ye}),_t=G.filterFactory||new DefaultFilterFactory({docId:se,ownerDocument:Ye});(0,_util.setVerbosityLevel)(We);const yt={canvasFactory:it,filterFactory:_t};if(Rt||(yt.cMapReaderFactory=new O({baseUrl:He,isCompressed:ge}),yt.standardFontDataFactory=new p({baseUrl:b})),!ve){const at={verbosity:We,port:_worker_options.GlobalWorkerOptions.workerPort};ve=at.port?PDFWorker.fromPort(at):new PDFWorker(at),$._worker=ve}const ht={docId:se,apiVersion:"3.11.174",data:k,password:ee,disableAutoFetch:Ot,rangeChunkSize:oe,length:Lt,docBaseUrl:Re,enableXfa:Ne,evaluatorOptions:{maxImageSize:N,disableFontFace:he,ignoreErrors:A,isEvalSupported:K,isOffscreenCanvasSupported:J,canvasMaxAreaInBytes:ie,fontExtraProperties:Oe,useSystemFonts:Jt,cMapUrl:Rt?He:null,standardFontDataUrl:Rt?b:null}},ct={ignoreErrors:A,isEvalSupported:K,disableFontFace:he,fontExtraProperties:Oe,enableXfa:Ne,ownerDocument:Ye,disableAutoFetch:Ot,pdfBug:ln,styleElement:null};return ve.promise.then(function(){if($.destroyed)throw new Error("Loading aborted");const at=_fetchDocument(ve,ht),St=new Promise(function(sn){let ze;var mt;z?ze=new _transport_stream.PDFDataTransportStream({length:Lt,initialData:z.initialData,progressiveDone:z.progressiveDone,contentDispositionFilename:z.contentDispositionFilename,disableRange:Qe,disableStream:Ct},z):k||(mt={url:y,length:Lt,httpHeaders:I,withCredentials:H,rangeChunkSize:oe,disableRange:Qe,disableStream:Ct},ze=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(mt):(0,_display_utils.isValidFetchUrl)(mt.url)?new _displayFetch_stream.PDFFetchStream(mt):new _displayNetwork.PDFNetworkStream(mt)),sn(ze)});return Promise.all([at,St]).then(function(sn){let[ze,nt]=sn;if($.destroyed)throw new Error("Loading aborted");const mt=new _message_handler.MessageHandler(se,ze,ve.port),Nt=new WorkerTransport(mt,$,nt,ct,yt);$._transport=Nt,mt.send("Ready",null)})}).catch($._capability.reject),$}function _fetchDocument(G,$){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(function*(G,$){if(G.destroyed)throw new Error("Worker was destroyed");const se=yield G.messageHandler.sendWithPromise("GetDocRequest",$,$.data?[$.data.buffer]:null);if(G.destroyed)throw new Error("Worker was destroyed");return se})).apply(this,arguments)}function getUrlProp(G){if(G instanceof URL)return G.href;try{return new URL(G,window.location).href}catch($){if(_util.isNodeJS&&"string"==typeof G)return G}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(G){if(_util.isNodeJS&&"undefined"!=typeof Buffer&&G instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(G instanceof Uint8Array&&G.byteLength===G.buffer.byteLength)return G;if("string"==typeof G)return(0,_util.stringToBytes)(G);if("object"==typeof G&&!isNaN(null==G?void 0:G.length)||(0,_util.isArrayBuffer)(G))return new Uint8Array(G);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;const q=class{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d"+md(q,xe)._++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}destroy(){var $=this;return _asyncToGenerator(function*(){var se,y,k;$.destroyed=!0;try{(null==(se=$._worker)?void 0:se.port)&&($._worker._pendingDestroy=!0),yield null==(y=$._transport)?void 0:y.destroy()}catch(I){throw(null==(k=$._worker)?void 0:k.port)&&delete $._worker._pendingDestroy,I}$._transport=null,$._worker&&($._worker.destroy(),$._worker=null)})()}};let PDFDocumentLoadingTask=q;xe=new WeakMap,dn(PDFDocumentLoadingTask,xe,0),exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor($,se){let y=arguments.length>2&&void 0!==arguments[2]&&arguments[2],k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.length=$,this.initialData=se,this.progressiveDone=y,this.contentDispositionFilename=k,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener($){this._rangeListeners.push($)}addProgressListener($){this._progressListeners.push($)}addProgressiveReadListener($){this._progressiveReadListeners.push($)}addProgressiveDoneListener($){this._progressiveDoneListeners.push($)}onDataRange($,se){for(const y of this._rangeListeners)y($,se)}onDataProgress($,se){this._readyCapability.promise.then(()=>{for(const y of this._progressListeners)y($,se)})}onDataProgressiveRead($){this._readyCapability.promise.then(()=>{for(const se of this._progressiveReadListeners)se($)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const $ of this._progressiveDoneListeners)$()})}transportReady(){this._readyCapability.resolve()}requestDataRange($,se){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor($,se){this._pdfInfo=$,this._transport=se,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(y=>{if(!y)return y;const k=[];for(const I in y)k.push(...y[I]);return k}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage($){return this._transport.getPage($)}getPageIndex($){return this._transport.getPageIndex($)}getDestinations(){return this._transport.getDestinations()}getDestination($){return this._transport.getDestination($)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){return this._transport.startCleanup(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor($,se,y){dn(this,_),dn(this,re),dn(this,c,null),dn(this,t,!1);let k=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._pageIndex=$,this._pageInfo=se,this._transport=y,this._stats=k?new _display_utils.StatTimer:null,this._pdfBug=k,this.commonObjs=y.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:$,rotation:se=this.rotate,offsetX:y=0,offsetY:k=0,dontFlip:I=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:$,rotation:se,offsetX:y,offsetY:k,dontFlip:I})}getAnnotations(){let{intent:$="display"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1const se=this._transport.getRenderingIntent($);return this._transport.getAnnotations(this._pageIndex,se.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}getXfa(){var $=this;return _asyncToGenerator(function*(){var se;return(null==(se=$._transport._htmlForXfa)?void 0:se.children[$._pageIndex])||null})()}render($){var A,N;let{canvasContext:se,viewport:y,intent:k="display",annotationMode:I=_util.AnnotationMode.ENABLE,transform:H=null,background:ee=null,optionalContentConfigPromise:z=null,annotationCanvasMap:oe=null,pageColors:ve=null,printAnnotationStorage:We=null}=$;null==(A=this._stats)||A.time("Overall");const Re=this._transport.getRenderingIntent(k,I,We);Vn(this,t,!1),bn(this,re,cy).call(this),z||(z=this._transport.getOptionalContentConfig());let He=this._intentStates.get(Re.cacheKey);He||(He=Object.create(null),this._intentStates.set(Re.cacheKey,He)),He.streamReaderCancelTimeout&&(clearTimeout(He.streamReaderCancelTimeout),He.streamReaderCancelTimeout=null);const ge=!!(Re.renderingIntent&_util.RenderingIntentFlag.PRINT);He.displayReadyCapability||(He.displayReadyCapability=new _util.PromiseCapability,He.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null==(N=this._stats)||N.time("Page Request"),this._pumpOperatorList(Re));const O=K=>{var J,ie;He.renderTasks.delete(b),(this._maybeCleanupAfterRender||ge)&&Vn(this,t,!0),bn(this,_,Zf).call(this,!ge),K?(b.capability.reject(K),this._abortOperatorList({intentState:He,reason:K instanceof Error?K:new Error(K)})):b.capability.resolve(),null==(J=this._stats)||J.timeEnd("Rendering"),null==(ie=this._stats)||ie.timeEnd("Overall")},b=new InternalRenderTask({callback:O,params:{canvasContext:se,viewport:y,transform:H,background:ee},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:oe,operatorList:He.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!ge,pdfBug:this._pdfBug,pageColors:ve});(He.renderTasks||(He.renderTasks=new Set)).add(b);const p=b.task;return Promise.all([He.displayReadyCapability.promise,z]).then(K=>{var he;let[J,ie]=K;this.destroyed?O():(null==(he=this._stats)||he.time("Rendering"),b.initializeGraphics({transparency:J,optionalContentConfig:ie}),b.operatorListChanged())}).catch(O),p}getOperatorList(){var z;let{intent:$="display",annotationMode:se=_util.AnnotationMode.ENABLE,printAnnotationStorage:y=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const I=this._transport.getRenderingIntent($,se,y,!0);let ee,H=this._intentStates.get(I.cacheKey);return H||(H=Object.create(null),this._intentStates.set(I.cacheKey,H)),H.opListReadCapability||(ee=Object.create(null),ee.operatorListChanged=function k(){H.operatorList.lastChunk&&(H.opListReadCapability.resolve(H.operatorList),H.renderTasks.delete(ee))},H.opListReadCapability=new _util.PromiseCapability,(H.renderTasks||(H.renderTasks=new Set)).add(ee),H.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},null==(z=this._stats)||z.time("Page Request"),this._pumpOperatorList(I)),H.opListReadCapability.promise}streamTextContent(){let{includeMarkedContent:$=!1,disableNormalization:se=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===$,disableNormalization:!0===se},{highWaterMark:100,size:k=>k.items.length})}getTextContent(){let $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(y=>_xfa_text.XfaText.textContent(y));const se=this.streamTextContent($);return new Promise(function(y,k){const H=se.getReader(),ee={items:[],styles:Object.create(null)};!function I(){H.read().then(function(z){let{value:oe,done:ve}=z;ve?y(ee):(Object.assign(ee.styles,oe.styles),ee.items.push(...oe.items),I())},k)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const $=[];for(const se of this._intentStates.values())if(this._abortOperatorList({intentState:se,reason:new Error("Page was destroyed."),force:!0}),!se.opListReadCapability)for(const y of se.renderTasks)$.push(y.completed),y.cancel();return this.objs.clear(),Vn(this,t,!1),bn(this,re,cy).call(this),Promise.all($)}cleanup(){let $=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Vn(this,t,!0);const se=bn(this,_,Zf).call(this,!1);return $&&se&&this._stats&&(this._stats=new _display_utils.StatTimer),se}_startRenderPage($,se){var k,I;const y=this._intentStates.get(se);!y||(null==(k=this._stats)||k.timeEnd("Page Request"),null==(I=y.displayReadyCapability)||I.resolve($))}_renderPageChunk($,se){for(let y=0,k=$.length;y<k;y++)se.operatorList.fnArray.push($.fnArray[y]),se.operatorList.argsArray.push($.argsArray[y]);se.operatorList.lastChunk=$.lastChunk,se.operatorList.separateAnnots=$.separateAnnots;for(const y of se.renderTasks)y.operatorListChanged();
1$.lastChunk&&bn(this,_,Zf).call(this,!0)}_pumpOperatorList($){let{renderingIntent:se,cacheKey:y,annotationStorageSerializable:k}=$;const{map:I,transfers:H}=k,z=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:se,cacheKey:y,annotationStorage:I},H).getReader(),oe=this._intentStates.get(y);oe.streamReader=z;const ve=()=>{z.read().then(We=>{let{value:Re,done:He}=We;He?oe.streamReader=null:this._transport.destroyed||(this._renderPageChunk(Re,oe),ve())},We=>{if(oe.streamReader=null,!this._transport.destroyed){if(oe.operatorList){oe.operatorList.lastChunk=!0;for(const Re of oe.renderTasks)Re.operatorListChanged();bn(this,_,Zf).call(this,!0)}if(oe.displayReadyCapability)oe.displayReadyCapability.reject(We);else{if(!oe.opListReadCapability)throw We;oe.opListReadCapability.reject(We)}}})};ve()}_abortOperatorList($){let{intentState:se,reason:y,force:k=!1}=$;if(se.streamReader){if(se.streamReaderCancelTimeout&&(clearTimeout(se.streamReaderCancelTimeout),se.streamReaderCancelTimeout=null),!k){if(se.renderTasks.size>0)return;if(y instanceof _display_utils.RenderingCancelledException){let I=RENDERING_CANCELLED_TIMEOUT;return y.extraDelay>0&&y.extraDelay<1e3&&(I+=y.extraDelay),void(se.streamReaderCancelTimeout=setTimeout(()=>{se.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:se,reason:y,force:!0})},I))}}if(se.streamReader.cancel(new _util.AbortException(y.message)).catch(()=>{}),se.streamReader=null,!this._transport.destroyed){for(const[I,H]of this._intentStates)if(H===se){this._intentStates.delete(I);break}this.cleanup()}}}get stats(){return this._stats}}c=new WeakMap,t=new WeakMap,_=new WeakSet,Zf=function(){let $=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(bn(this,re,cy).call(this),!Fe(this,t)||this.destroyed)return!1;if($)return Vn(this,c,setTimeout(()=>{Vn(this,c,null),bn(this,_,Zf).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:se,operatorList:y}of this._intentStates.values())if(se.size>0||!y.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),Vn(this,t,!1),!0},re=new WeakSet,cy=function(){Fe(this,c)&&(clearTimeout(Fe(this,c)),Vn(this,c,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){dn(this,Q,new Set),dn(this,S,Promise.resolve())}postMessage($,se){const y={data:structuredClone($,null)};Fe(this,S).then(()=>{for(const k of Fe(this,Q))k.call(this,y)})}addEventListener($,se){Fe(this,Q).add(se)}removeEventListener($,se){Fe(this,Q).delete(se)}terminate(){Fe(this,Q).clear()}}Q=new WeakMap,S=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const G=null==(W=null==document?void 0:document.currentScript)?void 0:W.src;G&&(PDFWorkerUtil.fallbackWorkerSrc=G.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(G,$){let se;try{if(se=new URL(G),!se.origin||"null"===se.origin)return!1}catch(k){return!1}const y=new URL($,se);return se.origin===y.origin},PDFWorkerUtil.createCDNWrapper=function(G){return URL.createObjectURL(new Blob([`importScripts("${G}");`]))};const _PDFWorker=class{constructor(){var y;let{name:G=null,port:$=null,verbosity:se=(0,_util.getVerbosityLevel)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.name=G,this.destroyed=!1,this.verbosity=se,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,$){if(null==(y=Fe(_PDFWorker,P))?void 0:y.has($))throw new Error("Cannot use more than one PDFWorker per port.");return(Fe(_PDFWorker,P)||Vn(_PDFWorker,P,new WeakMap)).set($,this),void this._initializeFromPort($)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(G){this._port=G,this._messageHandler=new _message_handler.MessageHandler("main","worker",G),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:G}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,G)||(G=PDFWorkerUtil.createCDNWrapper(new URL(G,window.location).href));const $=new Worker(G),se=new _message_handler.MessageHandler("main","worker",$),y=()=>{$.removeEventListener("error",k),se.destroy(),$.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},k=()=>{this._webWorker||y()};$.addEventListener("error",k),se.on("test",H=>{$.removeEventListener("error",k),this.destroyed?y():H?(this._messageHandler=se,this._port=$,this._webWorker=$,this._readyCapability.resolve(),se.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),se.destroy(),$.terminate())}),se.on("ready",H=>{if($.removeEventListener("error",k),this.destroyed)y();else try{I()}catch(ee){this._setupFakeWorker()}});const I=()=>{const H=new Uint8Array;se.send("test",H,[H.buffer])};return void I()}catch($){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(G=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const $=new LoopbackPort;this._port=$;const se="fake"+PDFWorkerUtil.fakeWorkerId++,y=new _message_handler.MessageHandler(se+"_worker",se,$);G.setup(y,$);const k=new _message_handler.MessageHandler(se,se+"_worker",$);this._messageHandler=k,this._readyCapability.resolve(),k.send("configure",{verbosity:this.verbosity})}).catch(G=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${G.message}".`))})}destroy(){var G;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),null==(G=Fe(_PDFWorker,P))||G.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(G){var se;if(!(null==G?void 0:G.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const $=null==(se=Fe(this,P))?void 0:se.get(G.port);
1if($){if($._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return $}return new _PDFWorker(G)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var G;try{return(null==(G=globalThis.pdfjsWorker)?void 0:G.WorkerMessageHandler)||null}catch($){return null}}static get _setupFakeWorkerGlobal(){var _this3=this;const loader=function(){var _ref0=_asyncToGenerator(function*(){const mainWorkerMessageHandler=_this3._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){const worker=eval("require")(_this3.workerSrc);return worker.WorkerMessageHandler}return yield(0,_display_utils.loadScript)(_this3.workerSrc),window.pdfjsWorker.WorkerMessageHandler});return function G(){return _ref0.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};let PDFWorker=_PDFWorker;P=new WeakMap,dn(PDFWorker,P,void 0),exports.PDFWorker=PDFWorker;class WorkerTransport{constructor($,se,y,k,I){dn(this,v),dn(this,C,new Map),dn(this,L,new Map),dn(this,E,new Map),dn(this,m,null),this.messageHandler=$,this.loadingTask=se,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:k.ownerDocument,styleElement:k.styleElement}),this._params=k,this.canvasFactory=I.canvasFactory,this.filterFactory=I.filterFactory,this.cMapReaderFactory=I.cMapReaderFactory,this.standardFontDataFactory=I.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=y,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent($){let se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,k=arguments.length>3&&void 0!==arguments[3]&&arguments[3],I=_util.RenderingIntentFlag.DISPLAY,H=_annotation_storage.SerializableEmpty;switch($){case"any":I=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":I=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${$}`)}switch(se){case _util.AnnotationMode.DISABLE:I+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:I+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:I+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,H=(I&_util.RenderingIntentFlag.PRINT&&y instanceof _annotation_storage.PrintAnnotationStorage?y:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${se}`)}return k&&(I+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:I,cacheKey:`${I}_${H.hash}`,annotationStorageSerializable:H}}destroy(){var y;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,null==(y=Fe(this,m))||y.reject(new Error("Worker was destroyed during onPassword callback"));const $=[];for(const k of Fe(this,L).values())$.push(k._destroy());Fe(this,L).clear(),Fe(this,E).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const se=this.messageHandler.sendWithPromise("Terminate",null);return $.push(se),Promise.all($).then(()=>{var k;this.commonObjs.clear(),this.fontLoader.clear(),Fe(this,C).clear(),this.filterFactory.destroy(),null==(k=this._networkStream)||k.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:$,loadingTask:se}=this;$.on("GetReader",(y,k)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=I=>{this._lastProgress={loaded:I.loaded,total:I.total}},k.onPull=()=>{this._fullReader.read().then(function(I){let{value:H,done:ee}=I;ee?k.close():((0,_util.assert)(H instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),k.enqueue(new Uint8Array(H),1,[H]))}).catch(I=>{k.error(I)})},k.onCancel=I=>{this._fullReader.cancel(I),k.ready.catch(H=>{if(!this.destroyed)throw H})}}),$.on("ReaderHeadersReady",y=>{const k=new _util.PromiseCapability,I=this._fullReader;return I.headersReady.then(()=>{var H;(!I.isStreamingSupported||!I.isRangeSupported)&&(this._lastProgress&&(null==(H=se.onProgress)||H.call(se,this._lastProgress)),I.onProgress=ee=>{var z;null==(z=se.onProgress)||z.call(se,{loaded:ee.loaded,total:ee.total})}),k.resolve({isStreamingSupported:I.isStreamingSupported,isRangeSupported:I.isRangeSupported,contentLength:I.contentLength})},k.reject),k.promise}),$.on("GetRangeReader",(y,k)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const I=this._networkStream.getRangeReader(y.begin,y.end);I?(k.onPull=()=>{I.read().then(function(H){let{value:ee,done:z}=H;z?k.close():((0,_util.assert)(ee instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),k.enqueue(new Uint8Array(ee),1,[ee]))}).catch(H=>{k.error(H)})},k.onCancel=H=>{I.cancel(H),k.ready.catch(ee=>{if(!this.destroyed)throw ee})}):k.close()}),$.on("GetDoc",y=>{let{pdfInfo:k}=y;this._numPages=k.numPages,this._htmlForXfa=k.htmlForXfa,delete k.htmlForXfa,se._capability.resolve(new PDFDocumentProxy(k,this))}),$.on("DocException",function(y){let k;switch(y.name){case"PasswordException":k=new _util.PasswordException(y.message,y.code);break;case"InvalidPDFException":k=new _util.InvalidPDFException(y.message);break;case"MissingPDFException":k=new _util.MissingPDFException(y.message);break;case"UnexpectedResponseException":k=new _util.UnexpectedResponseException(y.message,y.status);break;case"UnknownErrorException":k=new _util.UnknownErrorException(y.message,y.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}se._capability.reject(k)}),$.on("PasswordRequest",y=>{if(Vn(this,m,new _util.PromiseCapability),se.onPassword){const k=I=>{I instanceof Error?Fe(this,m).reject(I):Fe(this,m).resolve({password:I})};try{se.onPassword(k,y.code)}catch(I){Fe(this,m).reject(I)}}else Fe(this,m).reject(new _util.PasswordException(y.message,y.code));return Fe(this,m).promise}),$.on("DataLoaded",y=>{var k;null==(k=se.onProgress)||k.call(se,{loaded:y.length,total:y.length}),this.downloadInfoCapability.resolve(y)}),$.on("StartRenderPage",y=>{this.destroyed||Fe(this,L).get(y.pageIndex)._startRenderPage(y.transparency,y.cacheKey)}),$.on("commonobj",y=>{var ee;let[k,I,H]=y;if(!this.destroyed&&!this.commonObjs.has(k))switch(I){case"Font":const z=this._params;if("error"in H){const We=H.error;(0,_util.warn)(`Error during font loading: ${We}`),this.commonObjs.resolve(k,We);break}const oe=z.pdfBug&&(null==(ee=globalThis.FontInspector)?void 0:ee.enabled)?(We,Re)=>globalThis.FontInspector.fontAdded(We,Re):null,ve=new _font_loader.FontFaceObject(H,{isEvalSupported:z.isEvalSupported,disableFontFace:z.disableFontFace,ignoreErrors:z.ignoreErrors,inspectFont:oe});this.fontLoader.bind(ve).catch(We=>
1$.sendWithPromise("FontFallback",{id:k})).finally(()=>{!z.fontExtraProperties&&ve.data&&(ve.data=null),this.commonObjs.resolve(k,ve)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(k,H);break;default:throw new Error(`Got unknown common object type ${I}`)}}),$.on("obj",y=>{var oe;let[k,I,H,ee]=y;if(this.destroyed)return;const z=Fe(this,L).get(I);if(!z.objs.has(k))switch(H){case"Image":if(z.objs.resolve(k,ee),ee){let ve;if(ee.bitmap){const{width:We,height:Re}=ee;ve=We*Re*4}else ve=(null==(oe=ee.data)?void 0:oe.length)||0;ve>_util.MAX_IMAGE_SIZE_TO_CACHE&&(z._maybeCleanupAfterRender=!0)}break;case"Pattern":z.objs.resolve(k,ee);break;default:throw new Error(`Got unknown object type ${H}`)}}),$.on("DocProgress",y=>{var k;this.destroyed||null==(k=se.onProgress)||k.call(se,{loaded:y.loaded,total:y.total})}),$.on("FetchBuiltInCMap",y=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(y):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),$.on("FetchStandardFontData",y=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(y):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var y,k;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:$,transfers:se}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:$,filename:null!=(k=null==(y=this._fullReader)?void 0:y.filename)?k:null},se).finally(()=>{this.annotationStorage.resetModified()})}getPage($){if(!Number.isInteger($)||$<=0||$>this._numPages)return Promise.reject(new Error("Invalid page request."));const se=$-1,y=Fe(this,E).get(se);if(y)return y;const k=this.messageHandler.sendWithPromise("GetPage",{pageIndex:se}).then(I=>{if(this.destroyed)throw new Error("Transport destroyed");const H=new PDFPageProxy(se,I,this,this._params.pdfBug);return Fe(this,L).set(se,H),H});return Fe(this,E).set(se,k),k}getPageIndex($){return"object"!=typeof $||null===$||!Number.isInteger($.num)||$.num<0||!Number.isInteger($.gen)||$.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:$.num,gen:$.gen})}getAnnotations($,se){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:$,intent:se})}getFieldObjects(){return bn(this,v,hy).call(this,"GetFieldObjects")}hasJSActions(){return bn(this,v,hy).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination($){return"string"!=typeof $?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:$})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return bn(this,v,hy).call(this,"GetDocJSActions")}getPageJSActions($){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:$})}getStructTree($){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:$})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then($=>new _optional_content_config.OptionalContentConfig($))}
1getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const $="GetMetadata",se=Fe(this,C).get($);if(se)return se;const y=this.messageHandler.sendWithPromise($,null).then(k=>{var I,H,ee,z;return{info:k[0],metadata:k[1]?new _metadata.Metadata(k[1]):null,contentDispositionFilename:null!=(H=null==(I=this._fullReader)?void 0:I.filename)?H:null,contentLength:null!=(z=null==(ee=this._fullReader)?void 0:ee.contentLength)?z:null}});return Fe(this,C).set($,y),y}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(){var $=arguments,se=this;return _asyncToGenerator(function*(){let y=$.length>0&&void 0!==$[0]&&$[0];if(!se.destroyed){yield se.messageHandler.sendWithPromise("Cleanup",null);for(const k of Fe(se,L).values())if(!k.cleanup())throw new Error(`startCleanup: Page ${k.pageNumber} is currently rendering.`);se.commonObjs.clear(),y||se.fontLoader.clear(),Fe(se,C).clear(),se.filterFactory.destroy(!0)}})()}get loadingParams(){const{disableAutoFetch:$,enableXfa:se}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:$,enableXfa:se})}}C=new WeakMap,L=new WeakMap,E=new WeakMap,m=new WeakMap,v=new WeakSet,hy=function($){let se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const y=Fe(this,C).get($);if(y)return y;const k=this.messageHandler.sendWithPromise($,se);return Fe(this,C).set($,k),k};class PDFObjects{constructor(){dn(this,M),dn(this,j,Object.create(null))}get($){let se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(se){const k=bn(this,M,cE).call(this,$);return k.capability.promise.then(()=>se(k.data)),null}const y=Fe(this,j)[$];if(!(null==y?void 0:y.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${$}.`);return y.data}has($){const se=Fe(this,j)[$];return(null==se?void 0:se.capability.settled)||!1}resolve($){let se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const y=bn(this,M,cE).call(this,$);y.data=se,y.capability.resolve()}clear(){var $;for(const se in Fe(this,j)){const{data:y}=Fe(this,j)[se];null==($=null==y?void 0:y.bitmap)||$.close()}Vn(this,j,Object.create(null))}}j=new WeakMap,M=new WeakSet,cE=function($){var se;return(se=Fe(this,j))[$]||(se[$]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor($){dn(this,f,null),Vn(this,f,$),this.onContinue=null}get promise(){return Fe(this,f).capability.promise}cancel(){let $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;Fe(this,f).cancel(null,$)}get separateAnnots(){const{separateAnnots:$}=Fe(this,f).operatorList;if(!$)return!1;const{annotationCanvasMap:se}=Fe(this,f);return $.form||$.canvas&&(null==se?void 0:se.size)>0}}f=new WeakMap,exports.RenderTask=RenderTask;const Z=class{constructor($){let{callback:se,params:y,objs:k,commonObjs:I,annotationCanvasMap:H,operatorList:ee,pageIndex:z,canvasFactory:oe,filterFactory:ve,useRequestAnimationFrame:We=!1,pdfBug:Re=!1,pageColors:He=null}=$;this.callback=se,this.params=y,this.objs=k,this.commonObjs=I,this.annotationCanvasMap=H,this.operatorListIdx=null,this.operatorList=ee,this._pageIndex=z,this.canvasFactory=oe,this.filterFactory=ve,this._pdfBug=Re,this.pageColors=He,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===We&&"undefined"!=typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=y.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics($){var z,oe;let{transparency:se=!1,optionalContentConfig:y}=$;if(this.cancelled)return;if(this._canvas){if(Fe(Z,T).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Fe(Z,T).add(this._canvas)}this._pdfBug&&(null==(z=globalThis.StepperManager)?void 0:z.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:k,viewport:I,transform:H,background:ee}=this.params;this.gfx=new _canvas.CanvasGraphics(k,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:y},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:H,viewport:I,transparency:se,background:ee}),this.operatorListIdx=0,this.graphicsReady=!0,null==(oe=this.graphicsReadyCallback)||oe.call(this)}cancel(){var y;let $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.running=!1,this.cancelled=!0,null==(y=this.gfx)||y.endDrawing(),Fe(Z,T).delete(this._canvas),this.callback($||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,se))}operatorListChanged(){var $;this.graphicsReady?(null==($=this.stepper)||$.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}
1):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){var $=this;return _asyncToGenerator(function*(){$.cancelled||($.operatorListIdx=$.gfx.executeOperatorList($.operatorList,$.operatorListIdx,$._continueBound,$.stepper),$.operatorListIdx===$.operatorList.argsArray.length&&($.running=!1,$.operatorList.lastChunk&&($.gfx.endDrawing(),Fe(Z,T).delete($._canvas),$.callback())))})()}};let InternalRenderTask=Z;T=new WeakMap,dn(InternalRenderTask,T,new WeakSet);const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(xe,q,c)=>{var t=c(3),_=c(126);t({target:"Set",proto:!0,real:!0,forced:!c(135)("difference")},{difference:_})},(xe,q,c)=>{var t=c(127),_=c(128),x=c(129),re=c(132),te=c(133),Q=c(130),S=c(131),W=_.has,P=_.remove;xe.exports=function(L){var E=t(this),m=te(L),v=x(E);return re(E)<=m.size?Q(E,function(R){m.includes(R)&&P(v,R)}):S(m.getIterator(),function(R){W(E,R)&&P(v,R)}),v}},(xe,q,c)=>{var t=c(128).has;xe.exports=function(_){return t(_),_}},(xe,q,c)=>{var t=c(14),_=Set.prototype;xe.exports={Set,add:t(_.add),has:t(_.has),remove:t(_.delete),proto:_}},(xe,q,c)=>{var t=c(128),_=c(130),x=t.Set,re=t.add;xe.exports=function(te){var Q=new x;return _(te,function(S){re(Q,S)}),Q}},(xe,q,c)=>{var t=c(14),_=c(131),x=c(128),re=x.Set,te=x.proto,Q=t(te.forEach),S=t(te.keys),W=S(new re).next;xe.exports=function(P,C,L){return L?_({iterator:S(P),next:W},C):Q(P,C)}},(xe,q,c)=>{var t=c(8);xe.exports=function(_,x,re){for(var S,W,te=re?_:_.iterator,Q=_.next;!(S=t(Q,te)).done;)if(void 0!==(W=x(S.value)))return W}},(xe,q,c)=>{var t=c(72),_=c(128);xe.exports=t(_.proto,"size","get")||function(x){return x.size}},(xe,q,c)=>{var t=c(31),_=c(47),x=c(8),re=c(62),te=c(134),Q="Invalid size",S=RangeError,W=TypeError,P=Math.max,C=function(L,E,m,v){this.set=L,this.size=E,this.has=m,this.keys=v};C.prototype={getIterator:function(){return te(_(x(this.keys,this.set)))},includes:function(L){return x(this.has,this.set,L)}},xe.exports=function(L){_(L);var E=+L.size;if(E!=E)throw W(Q);var m=re(E);if(m<0)throw S(Q);return new C(L,P(m,0),t(L.has),t(L.keys))}},xe=>{xe.exports=function(q){return{iterator:q,next:q.next,done:!1}}},(xe,q,c)=>{var t=c(24),_=function(x){return{size:x,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};xe.exports=function(x){var re=t("Set");try{(new re)[x](_(0));try{return(new re)[x](_(-1)),!1}catch(te){return!0}}catch(te){return!1}}},(xe,q,c)=>{var t=c(3),_=c(7),x=c(137);t({target:"Set",proto:!0,real:!0,forced:!c(135)("intersection")||_(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:x})},(xe,q,c)=>{var t=c(127),_=c(128),x=c(132),re=c(133),te=c(130),Q=c(131),S=_.Set,W=_.add,P=_.has;xe.exports=function(L){var E=t(this),m=re(L),v=new S;return x(E)>m.size?Q(m.getIterator(),function(R){P(E,R)&&W(v,R)}):te(E,function(R){m.includes(R)&&W(v,R)}),v}},(xe,q,c)=>{var t=c(3),_=c(139);t({target:"Set",proto:!0,real:!0,forced:!c(135)("isDisjointFrom")},{isDisjointFrom:_})},(xe,q,c)=>{var t=c(127),_=c(128).has,x=c(132),re=c(133),te=c(130),Q=c(131),S=c(140);xe.exports=function(P){var C=t(this),L=re(P);if(x(C)<=L.size)return!1!==te(C,function(m){if(L.includes(m))return!1},!0);var E=L.getIterator();return!1!==Q(E,function(m){if(_(C,m))return S(E,"normal",!1)})}},(xe,q,c)=>{var t=c(8),_=c(47),x=c(30);xe.exports=function(re,te,Q){var S,W;_(re);try{if(!(S=x(re,"return"))){if("throw"===te)throw Q;return Q}S=t(S,re)}catch(P){W=!0,S=P}if("throw"===te)throw Q;if(W)throw S;return _(S),Q}},(xe,q,c)=>{var t=c(3),_=c(142);t({target:"Set",proto:!0,real:!0,forced:!c(135)("isSubsetOf")},{isSubsetOf:_})},(xe,q,c)=>{var t=c(127),_=c(132),x=c(130),re=c(133);xe.exports=function(Q){var S=t(this),W=re(Q);return!(_(S)>W.size)&&!1!==x(S,function(P){if(!W.includes(P))return!1},!0)}},(xe,q,c)=>{var t=c(3),_=c(144);t({target:"Set",proto:!0,real:!0,forced:!c(135)("isSupersetOf")},{isSupersetOf:_})},(xe,q,c)=>{var t=c(127),_=c(128).has,x=c(132),re=c(133),te=c(131),Q=c(140);xe.exports=function(W){var P=t(this),C=re(W);if(x(P)<C.size)return!1;var L=C.getIterator();return!1!==te(L,function(E){if(!_(P,E))return Q(L,"normal",!1)})}},(xe,q,c)=>{var t=c(3),_=c(146);t({target:"Set",proto:!0,real:!0,forced:!c(135)("symmetricDifference")},{symmetricDifference:_})},(xe,q,c)=>{var t=c(127),_=c(128),x=c(129),re=c(133),te=c(131),Q=_.add,S=_.has,W=_.remove;xe.exports=function(C){var L=t(this),E=re(C).getIterator(),m=x(L);return te(E,function(v){S(L,v)?W(m,v):Q(m,v)}),m}},(xe,q,c)=>{var t=c(3),_=c(148);t({target:"Set",proto:!0,real:!0,forced:!c(135)("union")},{union:_})},(xe,q,c)=>{var t=c(127),_=c(128).add,x=c(129),re=c(133),te=c(131);xe.exports=function(S){var W=t(this),P=re(S).getIterator(),C=x(W);return te(P,function(L){_(C,L)}),C}},(xe,q,c)=>{var t=c(3),_=c(4),x=c(24),re=c(11),te=c(45).f,Q=c(39),S=c(150),W=c(75),P=c(76),C=c(151),L=c(82),E=c(6),m=c(36),v="DOMException",R=x("Error"),j=x(v),M=function(){S(this,V);var z=arguments.length,oe=P(z<1?void 0:arguments[0]),ve=P(z<2?void 0:arguments[1],"Error"),We=new j(oe,ve),Re=R(oe);
1return Re.name=v,te(We,"stack",re(1,L(Re.stack,1))),W(We,this,M),We},V=M.prototype=j.prototype,f="stack"in R(v),T="stack"in new j(1,2),Z=j&&E&&Object.getOwnPropertyDescriptor(_,v),$=f&&!!(!Z||Z.writable&&Z.configurable)&&!T;t({global:!0,constructor:!0,forced:m||$},{DOMException:$?M:j});var se=x(v),y=se.prototype;if(y.constructor!==se)for(var k in m||te(y,"constructor",re(1,se)),C)if(Q(C,k)){var I=C[k],H=I.s;Q(se,H)||te(se,H,re(6,I.c))}},(xe,q,c)=>{var t=c(25),_=TypeError;xe.exports=function(x,re){if(t(re,x))return x;throw _("Incorrect invocation")}},xe=>{xe.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1}
1,InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},(xe,q,c)=>{var vt,t=c(36),_=c(3),x=c(4),re=c(24),te=c(14),Q=c(7),S=c(41),W=c(21),P=c(153),C=c(17),L=c(20),E=c(23),m=c(154),v=c(47),R=c(78),j=c(39),M=c(159),V=c(44),f=c(64),T=c(85),Z=c(160),G=c(162),$=c(128),se=c(83),y=c(119),k=x.Object,I=x.Array,H=x.Date,ee=x.Error,z=x.EvalError,oe=x.RangeError,ve=x.ReferenceError,We=x.SyntaxError,Re=x.TypeError,He=x.URIError,ge=x.PerformanceMark,O=x.WebAssembly,b=O&&O.CompileError||ee,p=O&&O.LinkError||ee,A=O&&O.RuntimeError||ee,N=re("DOMException"),K=G.Map,J=G.has,ie=G.get,he=G.set,Oe=$.Set,Ne=$.add,Ye=re("Object","keys"),Qe=te([].push),Ct=te((!0).valueOf),Ot=te(1..valueOf),ln=te("".valueOf),Lt=te(H.prototype.getTime),Jt=S("structuredClone"),Rt="DataCloneError",it="Transferring",_t=function(vt){return!Q(function(){var tn=new x.Set([7]),Cn=vt(tn),Sn=vt(k(7));return Cn===tn||!Cn.has(7)||"object"!=typeof Sn||7!=+Sn})&&vt},ut=function(vt,tn){return!Q(function(){var Cn=new tn,Sn=vt({a:Cn,b:Cn});return!(Sn&&Sn.a===Sn.b&&Sn.a instanceof tn&&Sn.a.stack===Cn.stack)})},ht=x.structuredClone,ct=t||!ut(ht,ee)||!ut(ht,N)||(vt=ht,!!Q(function(){var tn=vt(new x.AggregateError([1],Jt,{cause:3}));return"AggregateError"!==tn.name||1!==tn.errors[0]||tn.message!==Jt||3!==tn.cause})),cn=!ht&&_t(function(vt){return new ge(Jt,{detail:vt}).detail}),gt=_t(ht)||cn,at=function(vt){throw new N("Uncloneable type: "+vt,Rt)},St=function(vt,tn){throw new N((tn||"Cloning")+" of "+vt+" cannot be properly polyfilled in this engine",Rt)},sn=function(vt,tn){return gt||St(tn),gt(vt)},nt=function(vt,tn,Cn){if(J(tn,vt))return ie(tn,vt);var Nn,rr,jn,nr,Tt;if("SharedArrayBuffer"===(Cn||R(vt)))Nn=gt?gt(vt):vt;else{var hn=x.DataView;!hn&&"function"!=typeof vt.slice&&St("ArrayBuffer");try{if("function"!=typeof vt.slice||vt.resizable)for((rr=vt.byteLength,Nn=new ArrayBuffer(rr,"maxByteLength"in vt?{maxByteLength:vt.maxByteLength}:void 0),jn=new hn(vt),nr=new hn(Nn),Tt=0);Tt<rr;Tt++)nr.setUint8(Tt,jn.getUint8(Tt));else Nn=vt.slice(0)}catch(Se){throw new N("ArrayBuffer is detached",Rt)}}return he(tn,vt,Nn),Nn},mt=function(vt,tn,Cn,Sn,Nn){var rr=x[tn];return L(rr)||St(tn),new rr(nt(vt.buffer,Nn),Cn,Sn)},Nt=function(vt,tn,Cn){this.object=vt,this.type=tn,this.metadata=Cn},wt=function(vt,tn,Cn){if(E(vt)&&at("Symbol"),!L(vt))return vt;if(tn){if(J(tn,vt))return ie(tn,vt)}else tn=new K;var Nn,rr,Fn,jn,nr,Tt,hn,Se,Sn=R(vt);switch(Sn){case"Array":Fn=I(f(vt));break;case"Object":Fn={};break;case"Map":Fn=new K;break;case"Set":Fn=new Oe;break;case"RegExp":Fn=new RegExp(vt.source,Z(vt));break;case"Error":switch(rr=vt.name){case"AggregateError":Fn=re("AggregateError")([]);break;case"EvalError":Fn=z();break;case"RangeError":Fn=oe();break;case"ReferenceError":Fn=ve();break;case"SyntaxError":Fn=We();break;case"TypeError":Fn=Re();break;case"URIError":Fn=He();break;case"CompileError":Fn=b();break;case"LinkError":Fn=p();break;case"RuntimeError":Fn=A();break;default:Fn=ee()}break;case"DOMException":Fn=new N(vt.message,vt.name);break;case"ArrayBuffer":case"SharedArrayBuffer":Fn=Cn?new Nt(vt,Sn):nt(vt,tn,Sn);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":Tt="DataView"===Sn?vt.byteLength:vt.length,Fn=Cn?new Nt(vt,Sn,{offset:vt.byteOffset,length:Tt}):mt(vt,Sn,vt.byteOffset,Tt,tn);break;case"DOMQuad":try{Fn=new DOMQuad(wt(vt.p1,tn,Cn),wt(vt.p2,tn,Cn),wt(vt.p3,tn,Cn),wt(vt.p4,tn,Cn))}catch(ae){Fn=sn(vt,Sn)}break;case"File":if(gt)try{Fn=gt(vt),R(Fn)!==Sn&&(Fn=void 0)}catch(ae){}if(!Fn)try{Fn=new File([vt],vt.name,vt)}catch(ae){}Fn||St(Sn);break;case"FileList":if(jn=function(){var vt;try{vt=new x.DataTransfer}catch(tn){try{vt=new x.ClipboardEvent("").clipboardData}catch(Cn){}}return vt&&vt.items&&vt.files?vt:null}(),jn){for(nr=0,Tt=f(vt);nr<Tt;nr++)jn.items.add(wt(vt[nr],tn,Cn));Fn=jn.files}else Fn=sn(vt,Sn);break;case"ImageData":try{Fn=new ImageData(wt(vt.data,tn,Cn),vt.width,vt.height,{colorSpace:vt.colorSpace})}catch(ae){Fn=sn(vt,Sn)}break;default:if(gt)Fn=gt(vt);else switch(Sn){case"BigInt":Fn=k(vt.valueOf());break;case"Boolean":Fn=k(Ct(vt));break;case"Number":Fn=k(Ot(vt));break;case"String":Fn=k(ln(vt));break;case"Date":Fn=new H(Lt(vt));break;case"Blob":try{Fn=vt.slice(0,vt.size,vt.type)}catch(ae){St(Sn)}break;case"DOMPoint":case"DOMPointReadOnly":Nn=x[Sn];try{Fn=Nn.fromPoint?Nn.fromPoint(vt):new Nn(vt.x,vt.y,vt.z,vt.w)}catch(ae){St(Sn)}break;case"DOMRect":case"DOMRectReadOnly":Nn=x[Sn];try{Fn=Nn.fromRect?Nn.fromRect(vt):new Nn(vt.x,vt.y,vt.width,vt.height)}catch(ae){St(Sn)}break;case"DOMMatrix":case"DOMMatrixReadOnly":Nn=x[Sn];try{Fn=Nn.fromMatrix?Nn.fromMatrix(vt):new Nn(vt)}catch(ae){St(Sn)}break;case"AudioData":case"VideoFrame":W(vt.clone)||St(Sn);try{Fn=vt.clone()}catch(ae){at(Sn)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":St(Sn);default:at(Sn)}}switch(he(tn,vt,Fn),Sn){case"Array":case"Object":for(hn=Ye(vt),nr=0,Tt=f(hn);nr<Tt;nr++)M(Fn,Se=hn[nr],wt(vt[Se],tn,Cn));break;case"Map":vt.forEach(function(ae,we){he(Fn,wt(we,tn,Cn),wt(ae,tn,Cn))});break;case"Set":vt.forEach(function(ae){Ne(Fn,wt(ae,tn,Cn))});break;case"Error":V(Fn,"message",wt(vt.message,tn,Cn)),j(vt,"cause")&&V(Fn,"cause",wt(vt.cause,tn,Cn)),"AggregateError"===rr&&(Fn.errors=wt(vt.errors,tn,Cn));case"DOMException":se&&V(Fn,"stack",wt(vt.stack,tn,Cn))}return Fn},bt=function(vt,tn){if(!L(vt))return vt;if(J(tn,vt))return ie(tn,vt);var Cn,Sn,Nn,rr,Fn,jn,nr,Tt;if(vt instanceof Nt)switch(Cn=vt.type,Sn=vt.object,Cn){case"ArrayBuffer":case"SharedArrayBuffer":Tt=nt(Sn,tn,Cn);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":Tt=mt(Sn,Cn,(Nn=vt.metadata).offset,Nn.length,tn)}else switch(R(vt)){case"Array":case"Object":for(jn=Ye(vt),rr=0,Fn=f(jn);rr<Fn;rr++)vt[nr=jn[rr]]=bt(vt[nr],tn);break;case"Map":Tt=new K,vt.forEach(function(hn,Se){he(Tt,bt(Se,tn),bt(hn,tn))});break;case"Set":Tt=new Oe,vt.forEach(function(hn){Ne(Tt,bt(hn,tn))});break;case"Error":vt.message=bt(vt.message,tn),j(vt,"cause")&&(vt.cause=bt(vt.cause,tn)),"AggregateError"===vt.name&&(vt.errors=bt(vt.errors,tn));case"DOMException":se&&(vt.stack=bt(vt.stack,tn))}return he(tn,vt,Tt||vt),Tt||vt},Kt=function(vt,tn){if(!L(vt))throw Re("Transfer option cannot be converted to a sequence");var Cn=[];m(vt,function(ae){Qe(Cn,v(ae))});for(var Fn,jn,nr,Tt,hn,Sn=0,Nn=f(Cn),rr=[];Sn<Nn;)if(Fn=Cn[Sn++],"ArrayBuffer"!==(jn=R(Fn))){if(J(tn,Fn))throw new N("Duplicate transferable",Rt);if(y)Tt=ht(Fn,{transfer:[Fn]});else switch(jn){case"ImageBitmap":P(nr=x.OffscreenCanvas)||St(jn,it);try{(hn=new nr(Fn.width,Fn.height)).getContext("bitmaprenderer").transferFromImageBitmap(Fn),Tt=hn.transferToImageBitmap()}catch(ae){}break;case"AudioData":case"VideoFrame":(!W(Fn.clone)||!W(Fn.close))&&St(jn,it);try{Tt=Fn.clone(),Fn.close()}catch(ae){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":St(jn,it)}if(void 0===Tt)throw new N("This object cannot be transferred: "+jn,Rt);he(tn,Fn,Tt)}else Qe(rr,Fn);return rr},Un=function(vt,tn){for(var Nn,rr,Cn=0,Sn=f(vt);Cn<Sn;){if(Nn=vt[Cn++],J(tn,Nn))throw new N("Duplicate transferable",Rt);y?rr=ht(Nn,{transfer:[Nn]}
1):(W(Nn.transfer)||St("ArrayBuffer",it),rr=Nn.transfer()),he(tn,Nn,rr)}};_({global:!0,enumerable:!0,sham:!y,forced:ct},{structuredClone:function(tn){var rr,Fn,Cn=T(arguments.length,1)>1&&!C(arguments[1])?v(arguments[1]):void 0,Sn=Cn?Cn.transfer:void 0,Nn=!1;void 0!==Sn&&(rr=new K,Fn=Kt(Sn,rr),Nn=!!f(Fn));var jn=wt(tn,rr,Nn);return Nn&&(rr=new K,Un(Sn,rr),jn=bt(jn,rr)),jn}})},(xe,q,c)=>{var t=c(14),_=c(7),x=c(21),re=c(78),te=c(24),Q=c(51),S=function(){},W=[],P=te("Reflect","construct"),C=/^\s*(?:class|function)\b/,L=t(C.exec),E=!C.exec(S),m=function(j){if(!x(j))return!1;try{return P(S,W,j),!0}catch(M){return!1}},v=function(j){if(!x(j))return!1;switch(re(j)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return E||!!L(C,Q(j))}catch(M){return!0}};v.sham=!0,xe.exports=!P||_(function(){var R;return m(m.call)||!m(Object)||!m(function(){R=!0})||R})?v:m},(xe,q,c)=>{var t=c(99),_=c(8),x=c(47),re=c(32),te=c(155),Q=c(64),S=c(25),W=c(157),P=c(158),C=c(140),L=TypeError,E=function(v,R){this.stopped=v,this.result=R},m=E.prototype;xe.exports=function(v,R,j){var $,se,y,k,I,H,ee,V=!(!j||!j.AS_ENTRIES),f=!(!j||!j.IS_RECORD),T=!(!j||!j.IS_ITERATOR),Z=!(!j||!j.INTERRUPTED),G=t(R,j&&j.that),z=function(ve){return $&&C($,"normal",ve),new E(!0,ve)},oe=function(ve){return V?(x(ve),Z?G(ve[0],ve[1],z):G(ve[0],ve[1])):Z?G(ve,z):G(ve)};if(f)$=v.iterator;else if(T)$=v;else{if(!(se=P(v)))throw L(re(v)+" is not iterable");if(te(se)){for(y=0,k=Q(v);k>y;y++)if((I=oe(v[y]))&&S(m,I))return I;return new E(!1)}$=W(v,se)}for(H=f?v.next:$.next;!(ee=_(H,$)).done;){try{I=oe(ee.value)}catch(ve){C($,"throw",ve)}if("object"==typeof I&&I&&S(m,I))return I}return new E(!1)}},(xe,q,c)=>{var t=c(34),_=c(156),x=t("iterator"),re=Array.prototype;xe.exports=function(te){return void 0!==te&&(_.Array===te||re[x]===te)}},xe=>{xe.exports={}},(xe,q,c)=>{var t=c(8),_=c(31),x=c(47),re=c(32),te=c(158),Q=TypeError;xe.exports=function(S,W){var P=arguments.length<2?te(S):W;if(_(P))return x(t(P,S));throw Q(re(S)+" is not iterable")}},(xe,q,c)=>{var t=c(78),_=c(30),x=c(17),re=c(156),Q=c(34)("iterator");xe.exports=function(S){if(!x(S))return _(S,Q)||_(S,"@@iterator")||re[t(S)]}},(xe,q,c)=>{var t=c(18),_=c(45),x=c(11);xe.exports=function(re,te,Q){var S=t(te);S in re?_.f(re,S,x(0,Q)):re[S]=Q}},(xe,q,c)=>{var t=c(8),_=c(39),x=c(25),re=c(161),te=RegExp.prototype;xe.exports=function(Q){var S=Q.flags;return void 0!==S||"flags"in te||_(Q,"flags")||!x(te,Q)?S:t(re,Q)}},(xe,q,c)=>{var t=c(47);xe.exports=function(){var _=t(this),x="";return _.hasIndices&&(x+="d"),_.global&&(x+="g"),_.ignoreCase&&(x+="i"),_.multiline&&(x+="m"),_.dotAll&&(x+="s"),_.unicode&&(x+="u"),_.unicodeSets&&(x+="v"),_.sticky&&(x+="y"),x}},(xe,q,c)=>{var t=c(14),_=Map.prototype;xe.exports={Map,set:t(_.set),get:t(_.get),has:t(_.has),remove:t(_.delete),proto:_}},(xe,q,c)=>{var S,W,P,zC,L;Object.defineProperty(q,"__esModule",{value:!0}),q.SerializableEmpty=q.PrintAnnotationStorage=q.AnnotationStorage=void 0,c(89),c(149),c(152);var t=c(1),_=c(164),x=c(170);const re=Object.freeze({map:null,hash:"",transfers:void 0});q.SerializableEmpty=re;class te{constructor(){dn(this,P),dn(this,S,!1),dn(this,W,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(m,v){const R=Fe(this,W).get(m);return void 0===R?v:Object.assign(v,R)}getRawValue(m){return Fe(this,W).get(m)}remove(m){if(Fe(this,W).delete(m),0===Fe(this,W).size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const v of Fe(this,W).values())if(v instanceof _.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(m,v){const R=Fe(this,W).get(m);let j=!1;if(void 0!==R)for(const[M,V]of Object.entries(v))R[M]!==V&&(j=!0,R[M]=V);else j=!0,Fe(this,W).set(m,v);j&&bn(this,P,zC).call(this),v instanceof _.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(v.constructor._type)}has(m){return Fe(this,W).has(m)}getAll(){return Fe(this,W).size>0?(0,t.objectFromMap)(Fe(this,W)):null}setAll(m){for(const[v,R]of Object.entries(m))this.setValue(v,R)}get size(){return Fe(this,W).size}resetModified(){Fe(this,S)&&(Vn(this,S,!1),"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new Q(this)}get serializable(){if(0===Fe(this,W).size)return re;const m=new Map,v=new x.MurmurHash3_64,R=[],j=Object.create(null);let M=!1;for(const[V,f]of Fe(this,W)){const T=f instanceof _.AnnotationEditor?f.serialize(!1,j):f;T&&(m.set(V,T),v.update(`${V}:${JSON.stringify(T)}`),M||(M=!!T.bitmap))}if(M)for(const V of m.values())V.bitmap&&R.push(V.bitmap);return m.size>0?{map:m,hash:v.hexdigest(),transfers:R}:re}}S=new WeakMap,W=new WeakMap,P=new WeakSet,zC=function(){Fe(this,S)||(Vn(this,S,!0),"function"==typeof this.onSetModified&&this.onSetModified())},q.AnnotationStorage=te;class Q extends te{constructor(m){super(),dn(this,L,void 0);const{map:v,hash:R,transfers:j}
1=m.serializable,M=structuredClone(v,null);Vn(this,L,{map:M,hash:R,transfers:j})}get print(){(0,t.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return Fe(this,L)}}L=new WeakMap,q.PrintAnnotationStorage=Q},(xe,q,c)=>{var Q,S,W,P,C,L,E,m,v,R,j,M,V,f,T,hE,G,dE,se,fE,k,pE,H,KC,z,XC,ve,YC,Re,gE,ge,qC;Object.defineProperty(q,"__esModule",{value:!0}),q.AnnotationEditor=void 0,c(89),c(2);var t=c(165),_=c(1),x=c(168);const b=class{constructor(A){dn(this,T),dn(this,G),dn(this,k),dn(this,H),dn(this,z),dn(this,ve),dn(this,Re),dn(this,ge),dn(this,Q,""),dn(this,S,!1),dn(this,W,null),dn(this,P,null),dn(this,C,null),dn(this,L,!1),dn(this,E,null),dn(this,m,this.focusin.bind(this)),dn(this,v,this.focusout.bind(this)),dn(this,R,!1),dn(this,j,!1),dn(this,M,!1),ys(this,"_initialOptions",Object.create(null)),ys(this,"_uiManager",null),ys(this,"_focusEventsAllowed",!0),ys(this,"_l10nPromise",null),dn(this,V,!1),dn(this,f,b._zIndex++),this.constructor===b&&(0,_.unreachable)("Cannot initialize AnnotationEditor."),this.parent=A.parent,this.id=A.id,this.width=this.height=null,this.pageIndex=A.parent.pageIndex,this.name=A.name,this.div=null,this._uiManager=A.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=A.isCentered,this._structTreeParentId=null;const{rotation:N,rawDims:{pageWidth:K,pageHeight:J,pageX:ie,pageY:he}}=this.parent.viewport;this.rotation=N,this.pageRotation=(360+N-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[K,J],this.pageTranslation=[ie,he];const[Oe,Ne]=this.parentDimensions;this.x=A.x/Oe,this.y=A.y/Ne,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,_.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(A){const N=new te({id:A.parent.getNextId(),parent:A.parent,uiManager:A._uiManager});N.annotationElementId=A.annotationElementId,N.deleted=!0,N._uiManager.addToAnnotationStorage(N)}static initialize(A){let N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(b._l10nPromise||(b._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(J=>[J,A.get(J)]))),null==N?void 0:N.strings)for(const J of N.strings)b._l10nPromise.set(J,A.get(J));if(-1!==b._borderLineWidth)return;const K=getComputedStyle(document.documentElement);b._borderLineWidth=parseFloat(K.getPropertyValue("--outline-width"))||0}static updateDefaultParams(A,N){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(A){return!1}static paste(A,N){(0,_.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return Fe(this,V)}set _isDraggable(A){var N;Vn(this,V,A),null==(N=this.div)||N.classList.toggle("draggable",A)}center(){const[A,N]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*N/(2*A),this.y+=this.width*A/(2*N);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*N/(2*A),this.y-=this.width*A/(2*N);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(A){this._uiManager.addCommands(A)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=Fe(this,f)}setParent(A){null!==A&&(this.pageIndex=A.pageIndex,this.pageDimensions=A.pageDimensions),this.parent=A}focusin(A){!this._focusEventsAllowed||(Fe(this,R)?Vn(this,R,!1):this.parent.setSelected(this))}focusout(A){var K;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const N=A.relatedTarget;(null==N?void 0:N.closest(`#${this.id}`))||(A.preventDefault(),(null==(K=this.parent)?void 0:K.isMultipleSelection)||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(A,N,K,J){const[ie,he]=this.parentDimensions;[K,J]=this.screenToPageTranslation(K,J),this.x=(A+K)/ie,this.y=(N+J)/he,this.fixAndSetPosition()}translate(A,N){bn(this,T,hE).call(this,this.parentDimensions,A,N)}translateInPage(A,N){bn(this,T,hE).call(this,this.pageDimensions,A,N),this.div.scrollIntoView({block:"nearest"})}drag(A,N){const[K,J]=this.parentDimensions;
1if(this.x+=A/K,this.y+=N/J,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:Ye,y:Qe}=this.div.getBoundingClientRect();this.parent.findNewParent(this,Ye,Qe)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:ie,y:he}=this;const[Oe,Ne]=bn(this,G,dE).call(this);ie+=Oe,he+=Ne,this.div.style.left=`${(100*ie).toFixed(2)}%`,this.div.style.top=`${(100*he).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[A,N]=this.pageDimensions;let{x:K,y:J,width:ie,height:he}=this;switch(ie*=A,he*=N,K*=A,J*=N,this.rotation){case 0:K=Math.max(0,Math.min(A-ie,K)),J=Math.max(0,Math.min(N-he,J));break;case 90:K=Math.max(0,Math.min(A-he,K)),J=Math.min(N,Math.max(ie,J));break;case 180:K=Math.min(A,Math.max(ie,K)),J=Math.min(N,Math.max(he,J));break;case 270:K=Math.min(A,Math.max(he,K)),J=Math.max(0,Math.min(N-ie,J))}this.x=K/=A,this.y=J/=N;const[Oe,Ne]=bn(this,G,dE).call(this);K+=Oe,J+=Ne;const{style:Ye}=this.div;Ye.left=`${(100*K).toFixed(2)}%`,Ye.top=`${(100*J).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(A,N){var K;return bn(K=b,se,fE).call(K,A,N,this.parentRotation)}pageTranslationToScreen(A,N){var K;return bn(K=b,se,fE).call(K,A,N,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:A,pageDimensions:[N,K]}=this,J=N*A,ie=K*A;return _.FeatureTest.isCSSRoundSupported?[Math.round(J),Math.round(ie)]:[J,ie]}setDims(A,N){var ie;const[K,J]=this.parentDimensions;this.div.style.width=`${(100*A/K).toFixed(2)}%`,Fe(this,L)||(this.div.style.height=`${(100*N/J).toFixed(2)}%`),null==(ie=Fe(this,W))||ie.classList.toggle("small",A<b.SMALL_EDITOR_SIZE||N<b.SMALL_EDITOR_SIZE)}fixDims(){const{style:A}=this.div,{height:N,width:K}=A,J=K.endsWith("%"),ie=!Fe(this,L)&&N.endsWith("%");if(J&&ie)return;const[he,Oe]=this.parentDimensions;J||(A.width=`${(100*parseFloat(K)/he).toFixed(2)}%`),!Fe(this,L)&&!ie&&(A.height=`${(100*parseFloat(N)/Oe).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}addAltTextButton(){var A=this;return _asyncToGenerator(function*(){var J;if(Fe(A,W))return;const N=Vn(A,W,document.createElement("button"));N.className="altText";const K=yield b._l10nPromise.get("editor_alt_text_button_label");N.textContent=K,N.setAttribute("aria-label",K),N.tabIndex="0",N.addEventListener("contextmenu",x.noContextMenu),N.addEventListener("pointerdown",ie=>ie.stopPropagation()),N.addEventListener("click",ie=>{ie.preventDefault(),A._uiManager.editAltText(A)},{capture:!0}),N.addEventListener("keydown",ie=>{ie.target===N&&"Enter"===ie.key&&(ie.preventDefault(),A._uiManager.editAltText(A))}),bn(J=A,Re,gE).call(J),A.div.append(N),b.SMALL_EDITOR_SIZE||(b.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*N.getBoundingClientRect().width)))})()}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:Fe(this,Q),decorative:Fe(this,S)}}set altTextData(A){let{altText:N,decorative:K}=A;Fe(this,Q)===N&&Fe(this,S)===K||(Vn(this,Q,N),Vn(this,S,K),bn(this,Re,gE).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",Fe(this,m)),this.div.addEventListener("focusout",Fe(this,v));const[A,N]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*N/A).toFixed(2)}%`,this.div.style.maxHeight=`${(100*A/N).toFixed(2)}%`);const[K,J]=this.getInitialTranslation();return this.translate(K,J),(0,t.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(A){const{isMac:N}=_.FeatureTest.platform;0!==A.button||A.ctrlKey&&N?A.preventDefault():(Vn(this,R,!0),bn(this,ge,qC).call(this,A))}moveInDOM(){var A;null==(A=this.parent)||A.moveEditorInDOM(this)}_setParentAndPosition(A,N,K){A.changeParent(this),this.x=N,this.y=K,this.fixAndSetPosition()}getRect(A,N){const K=this.parentScale,[J,ie]=this.pageDimensions,[he,Oe]=this.pageTranslation,Ne=A/K,Ye=N/K,Qe=this.x*J,Ct=this.y*ie,Ot=this.width*J,ln=this.height*ie;switch(this.rotation){case 0:return[Qe+Ne+he,ie-Ct-Ye-ln+Oe,Qe+Ne+Ot+he,ie-Ct-Ye+Oe];
1case 90:return[Qe+Ye+he,ie-Ct+Ne+Oe,Qe+Ye+ln+he,ie-Ct+Ne+Ot+Oe];case 180:return[Qe-Ne-Ot+he,ie-Ct+Ye+Oe,Qe-Ne+he,ie-Ct+Ye+ln+Oe];case 270:return[Qe-Ye-ln+he,ie-Ct-Ne-Ot+Oe,Qe-Ye+he,ie-Ct-Ne+Oe];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(A,N){const[K,J,ie,he]=A,Oe=ie-K,Ne=he-J;switch(this.rotation){case 0:return[K,N-he,Oe,Ne];case 90:return[K,N-J,Ne,Oe];case 180:return[ie,N-J,Oe,Ne];case 270:return[ie,N-he,Ne,Oe];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){Vn(this,M,!0)}disableEditMode(){Vn(this,M,!1)}isInEditMode(){return Fe(this,M)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var A,N;null==(A=this.div)||A.addEventListener("focusin",Fe(this,m)),null==(N=this.div)||N.addEventListener("focusout",Fe(this,v))}serialize(){(0,_.unreachable)("An editor must be serializable")}static deserialize(A,N,K){const J=new this.prototype.constructor({parent:N,id:N.getNextId(),uiManager:K});J.rotation=A.rotation;const[ie,he]=J.pageDimensions,[Oe,Ne,Ye,Qe]=J.getRectInCurrentCoords(A.rect,he);return J.x=Oe/ie,J.y=Ne/he,J.width=Ye/ie,J.height=Qe/he,J}remove(){var A;this.div.removeEventListener("focusin",Fe(this,m)),this.div.removeEventListener("focusout",Fe(this,v)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),null==(A=Fe(this,W))||A.remove(),Vn(this,W,null),Vn(this,P,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(bn(this,H,KC).call(this),Fe(this,E).classList.remove("hidden"))}select(){var A;this.makeResizable(),null==(A=this.div)||A.classList.add("selectedEditor")}unselect(){var A,N,K;null==(A=Fe(this,E))||A.classList.add("hidden"),null==(N=this.div)||N.classList.remove("selectedEditor"),(null==(K=this.div)?void 0:K.contains(document.activeElement))&&this._uiManager.currentLayer.div.focus()}updateParams(A,N){}disableEditing(){Fe(this,W)&&(Fe(this,W).hidden=!0)}enableEditing(){Fe(this,W)&&(Fe(this,W).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return Fe(this,j)}set isEditing(A){Vn(this,j,A),this.parent&&(A?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(A,N){Vn(this,L,!0);const K=A/N,{style:J}=this.div;J.aspectRatio=K,J.height="auto"}static get MIN_SIZE(){return 16}};let re=b;Q=new WeakMap,S=new WeakMap,W=new WeakMap,P=new WeakMap,C=new WeakMap,L=new WeakMap,E=new WeakMap,m=new WeakMap,v=new WeakMap,R=new WeakMap,j=new WeakMap,M=new WeakMap,V=new WeakMap,f=new WeakMap,T=new WeakSet,hE=function(A,N,K){let[J,ie]=A;[N,K]=this.screenToPageTranslation(N,K),this.x+=N/J,this.y+=K/ie,this.fixAndSetPosition()},G=new WeakSet,dE=function(){const[A,N]=this.parentDimensions,{_borderLineWidth:K}=b,J=K/A,ie=K/N;switch(this.rotation){case 90:return[-J,ie];case 180:return[J,ie];case 270:return[J,-ie];default:return[-J,-ie]}},se=new WeakSet,fE=function(A,N,K){switch(K){case 90:return[N,-A];case 180:return[-A,-N];case 270:return[-N,A];default:return[A,N]}},k=new WeakSet,pE=function(A){switch(A){case 90:{const[N,K]=this.pageDimensions;return[0,-N/K,K/N,0]}case 180:return[-1,0,0,-1];case 270:{const[N,K]=this.pageDimensions;return[0,N/K,-K/N,0]}default:return[1,0,0,1]}},H=new WeakSet,KC=function(){if(Fe(this,E))return;Vn(this,E,document.createElement("div")),Fe(this,E).classList.add("resizers");const A=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||A.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const N of A){const K=document.createElement("div");Fe(this,E).append(K),K.classList.add("resizer",N),K.addEventListener("pointerdown",bn(this,z,XC).bind(this,N)),K.addEventListener("contextmenu",x.noContextMenu)}this.div.prepend(Fe(this,E))},z=new WeakSet,XC=function(A,N){N.preventDefault();const{isMac:K}=_.FeatureTest.platform;if(0!==N.button||N.ctrlKey&&K)return;const J=bn(this,ve,YC).bind(this,A),ie=this._isDraggable;this._isDraggable=!1;const he={passive:!0,capture:!0};window.addEventListener("pointermove",J,he);const Oe=this.x,Ne=this.y,Ye=this.width,Qe=this.height,Ct=this.parent.div.style.cursor,Ot=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(N.target).cursor;const ln=()=>{this._isDraggable=ie,window.removeEventListener("pointerup",ln),window.removeEventListener("blur",ln),window.removeEventListener("pointermove",J,he),this.parent.div.style.cursor=Ct,this.div.style.cursor=Ot;
1const Lt=this.x,Jt=this.y,Rt=this.width,it=this.height;Lt===Oe&&Jt===Ne&&Rt===Ye&&it===Qe||this.addCommands({cmd:()=>{this.width=Rt,this.height=it,this.x=Lt,this.y=Jt;const[_t,ut]=this.parentDimensions;this.setDims(_t*Rt,ut*it),this.fixAndSetPosition()},undo:()=>{this.width=Ye,this.height=Qe,this.x=Oe,this.y=Ne;const[_t,ut]=this.parentDimensions;this.setDims(_t*Ye,ut*Qe),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",ln),window.addEventListener("blur",ln)},ve=new WeakSet,YC=function(A,N){const[K,J]=this.parentDimensions,ie=this.x,he=this.y,Oe=this.width,Ne=this.height,Ye=b.MIN_SIZE/K,Qe=b.MIN_SIZE/J,Ct=bt=>Math.round(1e4*bt)/1e4,Ot=bn(this,k,pE).call(this,this.rotation),ln=(bt,Kt)=>[Ot[0]*bt+Ot[2]*Kt,Ot[1]*bt+Ot[3]*Kt],Lt=bn(this,k,pE).call(this,360-this.rotation);let Rt,it,_t=!1,ut=!1;switch(A){case"topLeft":_t=!0,Rt=(bt,Kt)=>[0,0],it=(bt,Kt)=>[bt,Kt];break;case"topMiddle":Rt=(bt,Kt)=>[bt/2,0],it=(bt,Kt)=>[bt/2,Kt];break;case"topRight":_t=!0,Rt=(bt,Kt)=>[bt,0],it=(bt,Kt)=>[0,Kt];break;case"middleRight":ut=!0,Rt=(bt,Kt)=>[bt,Kt/2],it=(bt,Kt)=>[0,Kt/2];break;case"bottomRight":_t=!0,Rt=(bt,Kt)=>[bt,Kt],it=(bt,Kt)=>[0,0];break;case"bottomMiddle":Rt=(bt,Kt)=>[bt/2,Kt],it=(bt,Kt)=>[bt/2,0];break;case"bottomLeft":_t=!0,Rt=(bt,Kt)=>[0,Kt],it=(bt,Kt)=>[bt,0];break;case"middleLeft":ut=!0,Rt=(bt,Kt)=>[0,Kt/2],it=(bt,Kt)=>[bt,Kt/2]}const yt=Rt(Oe,Ne),ht=it(Oe,Ne);let ct=ln(...ht);const cn=Ct(ie+ct[0]),gt=Ct(he+ct[1]);let at=1,St=1,[sn,ze]=this.screenToPageTranslation(N.movementX,N.movementY);if([sn,ze]=[Lt[0]*(bt=sn/K)+Lt[2]*(Kt=ze/J),Lt[1]*bt+Lt[3]*Kt],_t){const bt=Math.hypot(Oe,Ne);at=St=Math.max(Math.min(Math.hypot(ht[0]-yt[0]-sn,ht[1]-yt[1]-ze)/bt,1/Oe,1/Ne),Ye/Oe,Qe/Ne)}else ut?at=Math.max(Ye,Math.min(1,Math.abs(ht[0]-yt[0]-sn)))/Oe:St=Math.max(Qe,Math.min(1,Math.abs(ht[1]-yt[1]-ze)))/Ne;var bt,Kt;const nt=Ct(Oe*at),mt=Ct(Ne*St);ct=ln(...it(nt,mt));const Nt=cn-ct[0],wt=gt-ct[1];this.width=nt,this.height=mt,this.x=Nt,this.y=wt,this.setDims(K*nt,J*mt),this.fixAndSetPosition()},Re=new WeakSet,gE=function(){var A=this;return _asyncToGenerator(function*(){var J;const N=Fe(A,W);if(!N)return;if(!Fe(A,Q)&&!Fe(A,S))return N.classList.remove("done"),void(null==(J=Fe(A,P))||J.remove());b._l10nPromise.get("editor_alt_text_edit_button_label").then(ie=>{N.setAttribute("aria-label",ie)});let K=Fe(A,P);
1if(!K){Vn(A,P,K=document.createElement("span")),K.className="tooltip",K.setAttribute("role","tooltip");const ie=K.id=`alt-text-tooltip-${A.id}`;N.setAttribute("aria-describedby",ie);const he=100;N.addEventListener("mouseenter",()=>{Vn(A,C,setTimeout(()=>{Vn(A,C,null),Fe(A,P).classList.add("show"),A._uiManager._eventBus.dispatch("reporttelemetry",{source:A,details:{type:"editing",subtype:A.editorType,data:{action:"alt_text_tooltip"}}})},he))}),N.addEventListener("mouseleave",()=>{var Oe;clearTimeout(Fe(A,C)),Vn(A,C,null),null==(Oe=Fe(A,P))||Oe.classList.remove("show")})}N.classList.add("done"),K.innerText=Fe(A,S)?yield b._l10nPromise.get("editor_alt_text_decorative_tooltip"):Fe(A,Q),K.parentNode||N.append(K)})()},ge=new WeakSet,qC=function(A){if(!this._isDraggable)return;const N=this._uiManager.isSelected(this);let K,J;this._uiManager.setUpDragSession(),N&&(K={passive:!0,capture:!0},J=he=>{const[Oe,Ne]=this.screenToPageTranslation(he.movementX,he.movementY);this._uiManager.dragSelectedEditors(Oe,Ne)},window.addEventListener("pointermove",J,K));const ie=()=>{if(window.removeEventListener("pointerup",ie),window.removeEventListener("blur",ie),N&&window.removeEventListener("pointermove",J,K),Vn(this,R,!1),!this._uiManager.endDragSession()){const{isMac:he}=_.FeatureTest.platform;A.ctrlKey&&!he||A.shiftKey||A.metaKey&&he?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",ie),window.addEventListener("blur",ie)},dn(re,se),ys(re,"_borderLineWidth",-1),ys(re,"_colorManager",new t.ColorManager),ys(re,"_zIndex",1),ys(re,"SMALL_EDITOR_SIZE",0),q.AnnotationEditor=re;class te extends re{constructor(A){super(A),this.annotationElementId=A.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(xe,q,c)=>{var L,E,m,v,R,mE,V,f,T,Z,G,QC,y,k,I,H,ee,z,oe,ve,We,Re,He,ge,O,b,p,A,N,K,J,ie,he,Oe,Ne,Ye,Qe,Ct,Ot,ln,Lt,Jt,Rt,it,_t,ut,yt,JC,ct,vE,gt,yE,St,dy,ze,bE,mt,_E,wt,Il,Kt,Ng,vt,ZC,Cn,eT,Nn,EE,Fn,Fg,nr,wE;Object.defineProperty(q,"__esModule",{value:!0}),q.KeyboardManager=q.CommandManager=q.ColorManager=q.AnnotationEditorUIManager=void 0,q.bindEvents=function x(Se,ae,we){for(const Ce of we)ae.addEventListener(Ce,Se[Ce].bind(Se))},q.opacityToHex=function re(Se){return Math.round(Math.min(255,Math.max(1,255*Se))).toString(16).padStart(2,"0")},c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(2),c(89),c(125),c(136),c(138),c(141),c(143),c(145),c(147),c(166);var t=c(1),_=c(168);class te{constructor(){dn(this,L,0)}getId(){return`${t.AnnotationEditorPrefix}${md(this,L)._++}`}}L=new WeakMap;const M=class{constructor(){dn(this,R),dn(this,E,(0,t.getUuid)()),dn(this,m,0),dn(this,v,null)}static get _isSVGFittingCanvas(){const Ce=new OffscreenCanvas(1,3).getContext("2d"),Ue=new Image;Ue.src='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>';const st=Ue.decode().then(()=>(Ce.drawImage(Ue,0,0,1,1,0,0,1,3),0===new Uint32Array(Ce.getImageData(0,0,1,1).data.buffer)[0]));return(0,t.shadow)(this,"_isSVGFittingCanvas",st)}getFromFile(ae){var we=this;return _asyncToGenerator(function*(){var nn;const{lastModified:Ce,name:Ue,size:st,type:Ft}=ae;return bn(nn=we,R,mE).call(nn,`${Ce}_${Ue}_${st}_${Ft}`,ae)})()}getFromUrl(ae){var we=this;return _asyncToGenerator(function*(){var Ce;return bn(Ce=we,R,mE).call(Ce,ae,ae)})()}getFromId(ae){var we=this;return _asyncToGenerator(function*(){Fe(we,v)||Vn(we,v,new Map);const Ce=Fe(we,v).get(ae);return Ce?Ce.bitmap?(Ce.refCounter+=1,Ce):Ce.file?we.getFromFile(Ce.file):we.getFromUrl(Ce.url):null})()}getSvgUrl(ae){const we=Fe(this,v).get(ae);return(null==we?void 0:we.isSvg)?we.svgUrl:null}deleteId(ae){Fe(this,v)||Vn(this,v,new Map);const we=Fe(this,v).get(ae);!we||(we.refCounter-=1,0===we.refCounter&&(we.bitmap=null))}isValidId(ae){return ae.startsWith(`image_${Fe(this,E)}_`)}};let Q=M;E=new WeakMap,m=new WeakMap,v=new WeakMap,R=new WeakSet,mE=function(ae,we){var Ce=this;return _asyncToGenerator(function*(){Fe(Ce,v)||Vn(Ce,v,new Map);let Ue=Fe(Ce,v).get(ae);if(null===Ue)return null;if(null==Ue?void 0:Ue.bitmap)return Ue.refCounter+=1,Ue;try{let st;if(Ue||(Ue={bitmap:null,id:`image_${Fe(Ce,E)}_${md(Ce,m)._++}`,refCounter:0,isSvg:!1}),"string"==typeof we){Ue.url=we;const Ft=yield fetch(we);if(!Ft.ok)throw new Error(Ft.statusText);st=yield Ft.blob()}else st=Ue.file=we;if("image/svg+xml"===st.type){const Ft=M._isSVGFittingCanvas,nn=new FileReader,vn=new Image,wn=new Promise(($n,Gn)=>{vn.onload=()=>{Ue.bitmap=vn,Ue.isSvg=!0,$n()},nn.onload=_asyncToGenerator(function*(){const ir=Ue.svgUrl=nn.result;vn.src=(yield Ft)?`${ir}#svgView(preserveAspectRatio(none))`:ir}),vn.onerror=nn.onerror=Gn});nn.readAsDataURL(st),yield wn}else Ue.bitmap=yield createImageBitmap(st);Ue.refCounter=1}catch(st){console.error(st),Ue=null}return Fe(Ce,v).set(ae,Ue),Ue&&Fe(Ce,v).set(Ue.id,Ue),Ue})()};class S{constructor(){dn(this,V,[]),dn(this,f,!1),dn(this,T,void 0),dn(this,Z,-1),Vn(this,T,arguments.length>0&&void 0!==arguments[0]?arguments[0]:128)}add(ae){let{cmd:we,undo:Ce,mustExec:Ue,type:st=NaN,overwriteIfSameType:Ft=!1,keepUndo:nn=!1}=ae;if(Ue&&we(),Fe(this,f))return;const vn={cmd:we,undo:Ce,type:st};if(-1===Fe(this,Z))return Fe(this,V).length>0&&(Fe(this,V).length=0),Vn(this,Z,0),void Fe(this,V).push(vn);if(Ft&&Fe(this,V)[Fe(this,Z)].type===st)return nn&&(vn.undo=Fe(this,V)[Fe(this,Z)].und
1o),void(Fe(this,V)[Fe(this,Z)]=vn);const wn=Fe(this,Z)+1;wn===Fe(this,T)?Fe(this,V).splice(0,1):(Vn(this,Z,wn),wn<Fe(this,V).length&&Fe(this,V).splice(wn)),Fe(this,V).push(vn)}undo(){-1!==Fe(this,Z)&&(Vn(this,f,!0),Fe(this,V)[Fe(this,Z)].undo(),Vn(this,f,!1),Vn(this,Z,Fe(this,Z)-1))}redo(){Fe(this,Z)<Fe(this,V).length-1&&(Vn(this,Z,Fe(this,Z)+1),Vn(this,f,!0),Fe(this,V)[Fe(this,Z)].cmd(),Vn(this,f,!1))}hasSomethingToUndo(){return-1!==Fe(this,Z)}hasSomethingToRedo(){return Fe(this,Z)<Fe(this,V).length-1}destroy(){Vn(this,V,null)}}V=new WeakMap,f=new WeakMap,T=new WeakMap,Z=new WeakMap,q.CommandManager=S;class W{constructor(ae){dn(this,G),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:we}=t.FeatureTest.platform;for(const[Ce,Ue,st={}]of ae)for(const Ft of Ce){const nn=Ft.startsWith("mac+");we&&nn?(this.callbacks.set(Ft.slice(4),{callback:Ue,options:st}),this.allKeys.add(Ft.split("+").at(-1))):!we&&!nn&&(this.callbacks.set(Ft,{callback:Ue,options:st}),this.allKeys.add(Ft.split("+").at(-1)))}}exec(ae,we){if(!this.allKeys.has(we.key))return;const Ce=this.callbacks.get(bn(this,G,QC).call(this,we));if(!Ce)return;const{callback:Ue,options:{bubbles:st=!1,args:Ft=[],checker:nn=null}}=Ce;nn&&!nn(ae,we)||(Ue.bind(ae,...Ft)(),st||(we.stopPropagation(),we.preventDefault()))}}
1G=new WeakSet,QC=function(ae){ae.altKey&&this.buffer.push("alt"),ae.ctrlKey&&this.buffer.push("ctrl"),ae.metaKey&&this.buffer.push("meta"),ae.shiftKey&&this.buffer.push("shift"),this.buffer.push(ae.key);const we=this.buffer.join("+");return this.buffer.length=0,we},q.KeyboardManager=W;const se=class{get _colors(){const ae=new Map([["CanvasText",null],["Canvas",null]]);return(0,_.getColorValues)(ae),(0,t.shadow)(this,"_colors",ae)}convert(ae){const we=(0,_.getRGB)(ae);if(!window.matchMedia("(forced-colors: active)").matches)return we;for(const[Ce,Ue]of this._colors)if(Ue.every((st,Ft)=>st===we[Ft]))return se._colorsMapping.get(Ce);return we}getHexCode(ae){const we=this._colors.get(ae);return we?t.Util.makeHexColor(...we):ae}};let P=se;ys(P,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]])),q.ColorManager=P;const hn=class{constructor(ae,we,Ce,Ue,st,Ft){dn(this,yt),dn(this,ct),dn(this,gt),dn(this,St),dn(this,ze),dn(this,mt),dn(this,wt),dn(this,Kt),dn(this,vt),dn(this,Cn),dn(this,Nn),dn(this,Fn),dn(this,nr),dn(this,y,null),dn(this,k,new Map),dn(this,I,new Map),dn(this,H,null),dn(this,ee,null),dn(this,z,new S),dn(this,oe,0),dn(this,ve,new Set),dn(this,We,null),dn(this,Re,null),dn(this,He,new Set),dn(this,ge,null),dn(this,O,new te),dn(this,b,!1),dn(this,p,!1),dn(this,A,null),dn(this,N,t.AnnotationEditorType.NONE),dn(this,K,new Set),dn(this,J,null),dn(this,ie,this.blur.bind(this)),dn(this,he,this.focus.bind(this)),dn(this,Oe,this.copy.bind(this)),dn(this,Ne,this.cut.bind(this)),dn(this,Ye,this.paste.bind(this)),dn(this,Qe,this.keydown.bind(this)),dn(this,Ct,this.onEditingAction.bind(this)),dn(this,Ot,this.onPageChanging.bind(this)),dn(this,ln,this.onScaleChanging.bind(this)),dn(this,Lt,this.onRotationChanging.bind(this)),dn(this,Jt,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}),dn(this,Rt,[0,0]),dn(this,it,null),dn(this,_t,null),dn(this,ut,null),Vn(this,_t,ae),Vn(this,ut,we),Vn(this,H,Ce),this._eventBus=Ue,this._eventBus._on("editingaction",Fe(this,Ct)),this._eventBus._on("pagechanging",Fe(this,Ot)),this._eventBus._on("scalechanging",Fe(this,ln)),this._eventBus._on("rotationchanging",Fe(this,Lt)),Vn(this,ee,st.annotationStorage),Vn(this,ge,st.filterFactory),Vn(this,J,Ft),this.viewParameters={realScale:_.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const ae=hn.prototype,we=st=>{const{activeElement:Ft}=document;return Ft&&Fe(st,_t).contains(Ft)&&st.hasSomethingToControl()},Ce=this.TRANSLATE_SMALL,Ue=this.TRANSLATE_BIG;return(0,t.shadow)(this,"_keyboardManager",new W([[["ctrl+a","mac+meta+a"],ae.selectAll],[["ctrl+z","mac+meta+z"],ae.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],ae.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],ae.delete],[["Escape","mac+Escape"],ae.unselectAll],[["ArrowLeft","mac+ArrowLeft"],ae.translateSelectedEditors,{args:[-Ce,0],checker:we}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],ae.translateSelectedEditors,{args:[-Ue,0],checker:we}],[["ArrowRight","mac+ArrowRight"],ae.translateSelectedEditors,{args:[Ce,0],checker:we}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],ae.translateSelectedEditors,{args:[Ue,0],checker:we}],[["ArrowUp","mac+ArrowUp"],ae.translateSelectedEditors,{args:[0,-Ce],checker:we}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],ae.translateSelectedEditors,{args:[0,-Ue],checker:we}],[["ArrowDown","mac+ArrowDown"],ae.translateSelectedEditors,{args:[0,Ce],checker:we}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],ae.translateSelectedEditors,{args:[0,Ue],checker:we}]]))}destroy(){bn(this,St,dy).call(this),bn(this,ct,vE).call(this),this._eventBus._off("editingaction",Fe(this,Ct)),this._eventBus._off("pagechanging",Fe(this,Ot)),this._eventBus._off("scalechanging",Fe(this,ln)),this._eventBus._off("rotationchanging",Fe(this,Lt));for(const ae of Fe(this,I).values())ae.destroy();Fe(this,I).clear(),Fe(this,k).clear(),Fe(this,He).clear(),Vn(this,y,null),Fe(this,K).clear(),Fe(this,z).destroy(),Fe(this,H).destroy()}get hcmFilter(){return(0,t.shadow)(this,"hcmFilter",Fe(this,J)?Fe(this,ge).addHCMFilter(Fe(this,J).foreground,Fe(this,J).background):"none")}get direction(){return(0,t.shadow)(this,"direction",getComputedStyle(Fe(this,_t)).direction)}editAltText(ae){var we;null==(we=Fe(this,H))||we.editAltText(this,ae)}onPageChanging(ae){let{pageNumber:we}=ae;Vn(this,oe,we-1)}focusMainContainer(){Fe(this,_t).focus()}findParent(ae,we){for(const Ce of Fe(this,I).values()){const{x:Ue,y:st,width:Ft,height:nn}=Ce.div.getBoundingClientRect();if(ae>=Ue&&ae<=Ue+Ft&&we>=st&&we<=st+nn)return Ce}return null}disableUserSelect(){let ae=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Fe(this,ut).classList.toggle("noUserSelect",ae)}addShouldRescale(ae){Fe(this,He).add(ae)}removeShouldRescale(ae){Fe(this,He).delete(ae)}onScaleChanging(ae){let{scale:we}=ae;this.commitOrRemove(),this.viewParameters.realScale=we*_.PixelsPerInch.PDF_TO_CSS_UNITS;for(const Ce of Fe(this,He))Ce.onScaleChanging()}onRotationChanging(ae){let{pagesRotation:we}=ae;this.commitOrRemove(),this.viewParameters.rotation=we}addToAnnotationStorage(ae){!ae.isEmpty()&&Fe(this,ee)&&!Fe(this,ee).has(ae.id)&&Fe(this,ee).setValue(ae.id,ae)}blur(){if(!this.hasSelection)return;const{activeElement:ae}=document;for(const we of Fe(this,K))if(we.div.contains(ae)){Vn(this,A,[we,ae]),we._focusEventsAllowed=!1;break}}focus(){if(!Fe(this,A))return;const[ae,we]=Fe(this,A);Vn(this,A,null),we.addEventListener("focusin",()=>{ae._focusEventsAllowed=!0},{once:!0}
1),we.focus()}addEditListeners(){bn(this,gt,yE).call(this),bn(this,ze,bE).call(this)}removeEditListeners(){bn(this,St,dy).call(this),bn(this,mt,_E).call(this)}copy(ae){var Ce;if(ae.preventDefault(),null==(Ce=Fe(this,y))||Ce.commitOrRemove(),!this.hasSelection)return;const we=[];for(const Ue of Fe(this,K)){const st=Ue.serialize(!0);st&&we.push(st)}0!==we.length&&ae.clipboardData.setData("application/pdfjs",JSON.stringify(we))}cut(ae){this.copy(ae),this.delete()}paste(ae){ae.preventDefault();const{clipboardData:we}=ae;for(const st of we.items)for(const Ft of Fe(this,Re))if(Ft.isHandlingMimeForPasting(st.type))return void Ft.paste(st,this.currentLayer);let Ce=we.getData("application/pdfjs");if(!Ce)return;try{Ce=JSON.parse(Ce)}catch(st){return void(0,t.warn)(`paste: "${st.message}".`)}if(!Array.isArray(Ce))return;this.unselectAll();const Ue=this.currentLayer;try{const st=[];for(const vn of Ce){const wn=Ue.deserialize(vn);if(!wn)return;st.push(wn)}this.addCommands({cmd:()=>{for(const vn of st)bn(this,Nn,EE).call(this,vn);bn(this,nr,wE).call(this,st)},undo:()=>{for(const vn of st)vn.remove()},mustExec:!0})}catch(st){(0,t.warn)(`paste: "${st.message}".`)}}keydown(ae){var we;(null==(we=this.getActive())?void 0:we.shouldGetKeyboardEvents())||hn._keyboardManager.exec(this,ae)}onEditingAction(ae){["undo","redo","delete","selectAll"].includes(ae.name)&&this[ae.name]()}setEditingState(ae){ae?(bn(this,yt,JC).call(this),bn(this,gt,yE).call(this),bn(this,ze,bE).call(this),bn(this,wt,Il).call(this,{isEditing:Fe(this,N)!==t.AnnotationEditorType.NONE,isEmpty:bn(this,Fn,Fg).call(this),hasSomethingToUndo:Fe(this,z).hasSomethingToUndo(),hasSomethingToRedo:Fe(this,z).hasSomethingToRedo(),hasSelectedEditor:!1})):(bn(this,ct,vE).call(this),bn(this,St,dy).call(this),bn(this,mt,_E).call(this),bn(this,wt,Il).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(ae){if(!Fe(this,Re)){Vn(this,Re,ae);for(const we of Fe(this,Re))bn(this,Kt,Ng).call(this,we.defaultPropertiesToUpdate)}}getId(){return Fe(this,O).getId()}get currentLayer(){return Fe(this,I).get(Fe(this,oe))}getLayer(ae){return Fe(this,I).get(ae)}get currentPageIndex(){return Fe(this,oe)}addLayer(ae){Fe(this,I).set(ae.pageIndex,ae),Fe(this,b)?ae.enable():ae.disable()}removeLayer(ae){Fe(this,I).delete(ae.pageIndex)}updateMode(ae){let we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Fe(this,N)!==ae){if(Vn(this,N,ae),ae===t.AnnotationEditorType.NONE)return this.setEditingState(!1),void bn(this,Cn,eT).call(this);this.setEditingState(!0),bn(this,vt,ZC).call(this),this.unselectAll();for(const Ce of Fe(this,I).values())Ce.updateMode(ae);if(we)for(const Ce of Fe(this,k).values())if(Ce.annotationElementId===we){this.setSelected(Ce),Ce.enterInEditMode();break}}}updateToolbar(ae){ae!==Fe(this,N)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:ae})}updateParams(ae,we){if(Fe(this,Re)){if(ae===t.AnnotationEditorParamsType.CREATE)return void this.currentLayer.addNewEditor(ae);for(const Ce of Fe(this,K))Ce.updateParams(ae,we);for(const Ce of Fe(this,Re))Ce.updateDefaultParams(ae,we)}}enableWaiting(){let ae=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Fe(this,p)!==ae){Vn(this,p,ae);for(const we of Fe(this,I).values())ae?we.disableClick():we.enableClick(),we.div.classList.toggle("waiting",ae)}}getEditors(ae){const we=[];for(const Ce of Fe(this,k).values())Ce.pageIndex===ae&&we.push(Ce);return we}getEditor(ae){return Fe(this,k).get(ae)}addEditor(ae){Fe(this,k).set(ae.id,ae)}removeEditor(ae){var we;Fe(this,k).delete(ae.id),this.unselect(ae),(!ae.annotationElementId||!Fe(this,ve).has(ae.annotationElementId))&&(null==(we=Fe(this,ee))||we.remove(ae.id))}addDeletedAnnotationElement(ae){Fe(this,ve).add(ae.annotationElementId),ae.deleted=!0}isDeletedAnnotationElement(ae){return Fe(this,ve).has(ae)}removeDeletedAnnotationElement(ae){Fe(this,ve).delete(ae.annotationElementId),ae.deleted=!1}setActiveEditor(ae){Fe(this,y)!==ae&&(Vn(this,y,ae),ae&&bn(this,Kt,Ng).call(this,ae.propertiesToUpdate))}toggleSelected(ae){if(Fe(this,K).has(ae))return Fe(this,K).delete(ae),ae.unselect(),void bn(this,wt,Il).call(this,{hasSelectedEditor:this.hasSelection});Fe(this,K).add(ae),ae.select(),bn(this,Kt,Ng).call(this,ae.propertiesToUpdate),bn(this,wt,Il).call(this,{hasSelectedEditor:!0})}setSelected(ae){for(const we of Fe(this,K))we!==ae&&we.unselect();Fe(this,K).clear(),Fe(this,K).add(ae),ae.select(),bn(this,Kt,Ng).call(this,ae.propertiesToUpdate),bn(this,wt,Il).call(this,{hasSelectedEditor:!0})}isSelected(ae){return Fe(this,K).has(ae)}unselect(ae){ae.unselect(),Fe(this,K).delete(ae),bn(this,wt,Il).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==Fe(this,K).size}undo(){Fe(this,z).undo(),bn(this,wt,Il).call(this,{hasSomethingToUndo:Fe(this,z).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:bn(this,Fn,Fg).call(this)})}redo(){Fe(this,z).redo(),bn(this,wt,Il).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:Fe(this,z).hasSomethingToRedo(),isEmpty:bn(this,Fn,Fg).call(this)})}addCommands(ae){Fe(this,z).add(ae),bn(this,wt,Il).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:bn(this,Fn,Fg).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const ae=[...Fe(this,K)];this.addCommands({cmd:()=>{for(const Ue of ae)Ue.remove()},undo:()=>{for(const Ue of ae)bn(this,Nn,EE).call(this,Ue)},mustExec:!0})}commitOrRemove(){var ae;null==(ae=Fe(this,y))||ae.commitOrRemove()}hasSomethingToControl(){return Fe(this,y)||this.hasSelection}selectAll(){for(const ae of Fe(this,K))ae.commit();bn(this,nr,wE).call(this,Fe(this,k).values())}unselectAll(){if(Fe(this,y))Fe(this,y).commitOrRemove();else if(this.hasSelection){for(const ae of Fe(this,K))ae.unselect();Fe(this,K).clear(),bn(this,wt,Il).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(ae,we){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||this.commitOrRemove(),!this.hasSelection)return;Fe(this,Rt)[0]+=ae,Fe(this,Rt)[1]+=we;const[Ue,st]=Fe(this,Rt),Ft=[...Fe(this,K)];Fe(this,it)&&clearTimeout(Fe(this,it)),Vn(this,it,setTimeout(()=>{Vn(this,it,null),Fe(this,Rt)[0]=Fe(this,Rt)[1]=0,this.addCommands({cmd:()=>{for(const vn of Ft)Fe(this,k).has(vn.id)&&vn.translateInPage(Ue,st)}
1,undo:()=>{for(const vn of Ft)Fe(this,k).has(vn.id)&&vn.translateInPage(-Ue,-st)},mustExec:!1})},1e3));for(const vn of Ft)vn.translateInPage(ae,we)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),Vn(this,We,new Map);for(const ae of Fe(this,K))Fe(this,We).set(ae,{savedX:ae.x,savedY:ae.y,savedPageIndex:ae.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!Fe(this,We))return!1;this.disableUserSelect(!1);const ae=Fe(this,We);Vn(this,We,null);let we=!1;for(const[{x:Ue,y:st,pageIndex:Ft},nn]of ae)nn.newX=Ue,nn.newY=st,nn.newPageIndex=Ft,we||(we=Ue!==nn.savedX||st!==nn.savedY||Ft!==nn.savedPageIndex);if(!we)return!1;const Ce=(Ue,st,Ft,nn)=>{if(Fe(this,k).has(Ue.id)){const vn=Fe(this,I).get(nn);vn?Ue._setParentAndPosition(vn,st,Ft):(Ue.pageIndex=nn,Ue.x=st,Ue.y=Ft)}};return this.addCommands({cmd:()=>{for(const[Ue,{newX:st,newY:Ft,newPageIndex:nn}]of ae)Ce(Ue,st,Ft,nn)},undo:()=>{for(const[Ue,{savedX:st,savedY:Ft,savedPageIndex:nn}]of ae)Ce(Ue,st,Ft,nn)},mustExec:!0}),!0}dragSelectedEditors(ae,we){if(Fe(this,We))for(const Ce of Fe(this,We).keys())Ce.drag(ae,we)}rebuild(ae){if(null===ae.parent){const we=this.getLayer(ae.pageIndex);we?(we.changeParent(ae),we.addOrRebuild(ae)):(this.addEditor(ae),this.addToAnnotationStorage(ae),ae.rebuild())}else ae.parent.addOrRebuild(ae)}isActive(ae){return Fe(this,y)===ae}getActive(){return Fe(this,y)}getMode(){return Fe(this,N)}get imageManager(){return(0,t.shadow)(this,"imageManager",new Q)}};let C=hn;y=new WeakMap,k=new WeakMap,I=new WeakMap,H=new WeakMap,ee=new WeakMap,z=new WeakMap,oe=new WeakMap,ve=new WeakMap,We=new WeakMap,Re=new WeakMap,He=new WeakMap,ge=new WeakMap,O=new WeakMap,b=new WeakMap,p=new WeakMap,A=new WeakMap,N=new WeakMap,K=new WeakMap,J=new WeakMap,ie=new WeakMap,he=new WeakMap,Oe=new WeakMap,Ne=new WeakMap,Ye=new WeakMap,Qe=new WeakMap,Ct=new WeakMap,Ot=new WeakMap,ln=new WeakMap,Lt=new WeakMap,Jt=new WeakMap,Rt=new WeakMap,it=new WeakMap,_t=new WeakMap,ut=new WeakMap,yt=new WeakSet,JC=function(){window.addEventListener("focus",Fe(this,he)),window.addEventListener("blur",Fe(this,ie))},ct=new WeakSet,vE=function(){window.removeEventListener("focus",Fe(this,he)),window.removeEventListener("blur",Fe(this,ie))},gt=new WeakSet,yE=function(){window.addEventListener("keydown",Fe(this,Qe),{capture:!0})},St=new WeakSet,dy=function(){window.removeEventListener("keydown",Fe(this,Qe),{capture:!0})},ze=new WeakSet,bE=function(){document.addEventListener("copy",Fe(this,Oe)),document.addEventListener("cut",Fe(this,Ne)),document.addEventListener("paste",Fe(this,Ye))},mt=new WeakSet,_E=function(){document.removeEventListener("copy",Fe(this,Oe)),document.removeEventListener("cut",Fe(this,Ne)),document.removeEventListener("paste",Fe(this,Ye))},wt=new WeakSet,Il=function(ae){Object.entries(ae).some(Ce=>{let[Ue,st]=Ce;return Fe(this,Jt)[Ue]!==st})&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(Fe(this,Jt),ae)})},Kt=new WeakSet,Ng=function(ae){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:ae})},vt=new WeakSet,ZC=function(){if(!Fe(this,b)){Vn(this,b,!0);for(const ae of Fe(this,I).values())ae.enable()}},Cn=new WeakSet,eT=function(){if(this.unselectAll(),Fe(this,b)){Vn(this,b,!1);for(const ae of Fe(this,I).values())ae.disable()}},Nn=new WeakSet,EE=function(ae){const we=Fe(this,I).get(ae.pageIndex);we?we.addOrRebuild(ae):this.addEditor(ae)},Fn=new WeakSet,Fg=function(){if(0===Fe(this,k).size)return!0;if(1===Fe(this,k).size)for(const ae of Fe(this,k).values())return ae.isEmpty();return!1},nr=new WeakSet,wE=function(ae){Fe(this,K).clear();for(const we of ae)we.isEmpty()||(Fe(this,K).add(we),we.select());bn(this,wt,Il).call(this,{hasSelectedEditor:!0})},ys(C,"TRANSLATE_SMALL",1),ys(C,"TRANSLATE_BIG",10),q.AnnotationEditorUIManager=C},(xe,q,c)=>{var t=c(3),_=c(6),x=c(4),re=c(24),te=c(14),Q=c(8),S=c(21),W=c(20),P=c(91),C=c(39),L=c(77),E=c(64),m=c(159),v=c(7),R=c(167),j=c(27),M=x.JSON,V=x.Number,f=x.SyntaxError,T=M&&M.parse,Z=re("Object","keys"),G=Object.getOwnPropertyDescriptor,$=te("".charAt),se=te("".slice),y=te(/./.exec),k=te([].push),I=/^\d$/,H=/^[1-9]$/,ee=/^(?:-|\d)$/,z=/^[\t\n\r ]$/,Re=function(A,N,K,J){var Ne,Ye,Qe,Ct,Ot,ie=A[N],he=J&&ie===J.value,Oe=he&&"string"==typeof J.source?{source:J.source}:{};if(W(ie)){var ln=P(ie),Lt=he?J.nodes:ln?[]:{};if(ln)for(Ne=Lt.length,Qe=E(ie),Ct=0;Ct<Qe;Ct++)He(ie,Ct,Re(ie,""+Ct,K,Ct<Ne?Lt[Ct]:void 0));else for(Ye=Z(ie),Qe=E(Ye),Ct=0;Ct<Qe;Ct++)He(ie,Ot=Ye[Ct],Re(ie,Ot,K,C(Lt,Ot)?Lt[Ot]:void 0))}return Q(K,A,N,ie,Oe)}
1,He=function(A,N,K){if(_){var J=G(A,N);if(J&&!J.configurable)return}void 0===K?delete A[N]:m(A,N,K)},ge=function(A,N,K,J){this.value=A,this.end=N,this.source=K,this.nodes=J},O=function(A,N){this.source=A,this.index=N};O.prototype={fork:function(A){return new O(this.source,A)},parse:function(){var A=this.source,N=this.skip(z,this.index),K=this.fork(N),J=$(A,N);if(y(ee,J))return K.number();switch(J){case"{":return K.object();case"[":return K.array();case'"':return K.string();case"t":return K.keyword(!0);case"f":return K.keyword(!1);case"n":return K.keyword(null)}throw f('Unexpected character: "'+J+'" at: '+N)},node:function(A,N,K,J,ie){return new ge(N,J,A?null:se(this.source,K,J),ie)},object:function(){for(var A=this.source,N=this.index+1,K=!1,J={},ie={};N<A.length;){if(N=this.until(['"',"}"],N),"}"===$(A,N)&&!K){N++;break}var he=this.fork(N).string(),Oe=he.value;N=this.until([":"],N=he.end)+1,N=this.skip(z,N),he=this.fork(N).parse(),m(ie,Oe,he),m(J,Oe,he.value),N=this.until([",","}"],he.end);var Ne=$(A,N);if(","===Ne)K=!0,N++;else if("}"===Ne){N++;break}}return this.node(1,J,this.index,N,ie)},array:function(){for(var A=this.source,N=this.index+1,K=!1,J=[],ie=[];N<A.length;){if(N=this.skip(z,N),"]"===$(A,N)&&!K){N++;break}var he=this.fork(N).parse();if(k(ie,he),k(J,he.value),N=this.until([",","]"],he.end),","===$(A,N))K=!0,N++;else if("]"===$(A,N)){N++;break}}return this.node(1,J,this.index,N,ie)},string:function(){var A=this.index,N=R(this.source,this.index+1);return this.node(0,N.value,A,N.end)},number:function(){var A=this.source,N=this.index,K=N;if("-"===$(A,K)&&K++,"0"===$(A,K))K++;else{if(!y(H,$(A,K)))throw f("Failed to parse number at: "+K);K=this.skip(I,++K)}if("."===$(A,K)&&(K=this.skip(I,++K)),("e"===$(A,K)||"E"===$(A,K))&&(K++,("+"===$(A,K)||"-"===$(A,K))&&K++,K===(K=this.skip(I,K))))throw f("Failed to parse number's exponent value at: "+K);return this.node(0,V(se(A,N,K)),N,K)},keyword:function(A){var N=""+A,K=this.index,J=K+N.length;if(se(this.source,K,J)!==N)throw f("Failed to parse value at: "+K);return this.node(0,A,K,J)},skip:function(A,N){for(var K=this.source;N<K.length&&y(A,$(K,N));N++);return N},until:function(A,N){N=this.skip(z,N);for(var K=$(this.source,N),J=0;J<A.length;J++)if(A[J]===K)return N;throw f('Unexpected character: "'+K+'" at: '+N)}};var b=v(function(){var N,A="9007199254740993";return T(A,function(K,J,ie){N=ie.source}),N!==A}),p=j&&!v(function(){return 1/T("-0 \t")!=-1/0});t({target:"JSON",stat:!0,forced:b},{parse:function(N,K){return p&&!S(K)?T(N):function(A,N){A=L(A);var K=new O(A,0,""),J=K.parse(),ie=J.value,he=K.skip(z,J.end);if(he<A.length)throw f('Unexpected extra character: "'+$(A,he)+'" after the parsed data at: '+he);return S(N)?Re({"":ie},"",N,J):ie}(N,K)}})},(xe,q,c)=>{var t=c(14),_=c(39),x=SyntaxError,re=parseInt,te=String.fromCharCode,Q=t("".charAt),S=t("".slice),W=t(/./.exec),P={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},C=/^[\da-f]{4}$/i,L=/^[\u0000-\u001F]$/;xe.exports=function(E,m){for(var v=!0,R="";m<E.length;){var j=Q(E,m);if("\\"===j){var M=S(E,m,m+2);if(_(P,M))R+=P[M],m+=2;else{if("\\u"!==M)throw x('Unknown escape sequence: "'+M+'"');var V=S(E,m+=2,m+4);if(!W(C,V))throw x("Bad Unicode escape at: "+m);R+=te(re(V,16)),m+=4}}else{if('"'===j){v=!1,m++;break}if(W(L,j))throw x("Bad control character in string literal at: "+m);R+=j,m++}}if(v)throw x("Unterminated string at: "+m);return{value:R,end:m}}},(xe,q,c)=>{var ve,We,Re,He,ge,O,b,p,A,N,K,J,ep,he,tp,Ne,AE,Qe,fy,Ot,py,Lt,Lg,Rt,Bg;Object.defineProperty(q,"__esModule",{value:!0}),q.StatTimer=q.RenderingCancelledException=q.PixelsPerInch=q.PageViewport=q.PDFDateString=q.DOMStandardFontDataFactory=q.DOMSVGFactory=q.DOMFilterFactory=q.DOMCanvasFactory=q.DOMCMapReaderFactory=void 0,q.deprecated=function G(_t){console.log("Deprecated API usage: "+_t)},q.getColorValues=function I(_t){const ut=document.createElement("span");ut.style.visibility="hidden",document.body.append(ut);for(const yt of _t.keys()){ut.style.color=yt;const ht=window.getComputedStyle(ut).color;_t.set(yt,k(ht))}ut.remove()},q.getCurrentTransform=function H(_t){const{a:ut,b:yt,c:ht,d:ct,e:cn,f:gt}=_t.getTransform();return[ut,yt,ht,ct,cn,gt]},q.getCurrentTransformInverse=function ee(_t){const{a:ut,b:yt,c:ht,d:ct,e:cn,f:gt}=_t.getTransform().invertSelf();return[ut,yt,ht,ct,cn,gt]},q.getFilenameFromUrl=function j(_t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||([_t]=_t.split(/[#?]/,1)),_t.substring(_t.lastIndexOf("/")+1)},q.getPdfFilenameFromUrl=function M(_t){let ut=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof _t)return ut;if(v(_t))return(0,_.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),ut;const yt=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,ht=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,ct=yt.exec(_t);let cn=ht.exec(ct[1])||ht.exec(ct[2])||ht.exec(ct[3]);if(cn&&(cn=cn[0],cn.includes("%")))try{cn=ht.exec(decodeURIComponent(cn))[0]}catch(gt){}return cn||ut},q.getRGB=k,q.getXfaPageViewport=function y(_t,ut){let{scale:yt=1,rotation:ht=0}=ut;const{width:ct,height:cn}=_t.attributes.style,gt=[0,0,parseInt(ct),parseInt(cn)];return new E({viewBox:gt,scale:yt,rotation:ht})},q.isDataScheme=v,q.isPdfFile=function R(_t){return"string"==typeof _t&&/\.pdf$/i.test(_t)},q.isValidFetchUrl=f,q.loadScript=function Z(_t){let ut=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((yt,ht)=>{const ct=document.createElement("script");ct.src=_t,ct.onload=function(cn){ut&&ct.remove(),yt(cn)},ct.onerror=function(){ht(new Error(`Cannot load script at: ${ct.src}`))},(document.head||document.documentElement).append(ct)})},q.noContextMenu=function T(_t){_t.preventDefault()},q.setLayerDimensions=function z(_t,ut){let yt=arguments.length>2&&void 0!==arguments[2]&&arguments[2],ht=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(ut instanceof E){const{pageWidth:ct,pageHeight:cn}=ut.rawDims,{style:gt}=_t,at=_.FeatureTest.isCSSRoundSupported,St=`var(--scale-factor) * ${ct}px`,sn=`var(--scale-factor) * ${cn}px`,ze=at?`round(${St}, 1px)`:`calc(${St})`,nt=at?`round(${sn}, 1px)`:`calc(${sn})`;yt&&ut.rotation%180!=0?(gt.width=nt,gt.height=ze):(gt.width=ze,gt.height=nt)}ht&&_t.setAttribute("data-main-rotation",ut.rotation)},c(2),c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(89),
1c(84),c(86),c(87);var t=c(169),_=c(1);const x="http://www.w3.org/2000/svg",oe=class{};let $,re=oe;function S(_t){return W.apply(this,arguments)}function W(){return W=_asyncToGenerator(function*(_t){let ut=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(f(_t,document.baseURI)){const yt=yield fetch(_t);if(!yt.ok)throw new Error(yt.statusText);return ut?new Uint8Array(yield yt.arrayBuffer()):(0,_.stringToBytes)(yield yt.text())}return new Promise((yt,ht)=>{const ct=new XMLHttpRequest;ct.open("GET",_t,!0),ut&&(ct.responseType="arraybuffer"),ct.onreadystatechange=()=>{if(ct.readyState===XMLHttpRequest.DONE){if(200===ct.status||0===ct.status){let cn;if(ut&&ct.response?cn=new Uint8Array(ct.response):!ut&&ct.responseText&&(cn=(0,_.stringToBytes)(ct.responseText)),cn)return void yt(cn)}ht(new Error(ct.statusText))}},ct.send(null)})}),W.apply(this,arguments)}ys(re,"CSS",96),ys(re,"PDF",72),ys(re,"PDF_TO_CSS_UNITS",oe.CSS/oe.PDF),q.PixelsPerInch=re,ve=new WeakMap,We=new WeakMap,Re=new WeakMap,He=new WeakMap,ge=new WeakMap,O=new WeakMap,b=new WeakMap,p=new WeakMap,A=new WeakMap,N=new WeakMap,K=new WeakMap,J=new WeakSet,ep=function(){return Fe(this,ve)||Vn(this,ve,new Map)},he=new WeakSet,tp=function(){if(!Fe(this,We)){const ut=Fe(this,He).createElement("div"),{style:yt}=ut;yt.visibility="hidden",yt.contain="strict",yt.width=yt.height=0,yt.position="absolute",yt.top=yt.left=0,yt.zIndex=-1;const ht=Fe(this,He).createElementNS(x,"svg");ht.setAttribute("width",0),ht.setAttribute("height",0),Vn(this,We,Fe(this,He).createElementNS(x,"defs")),ut.append(ht),ht.append(Fe(this,We)),Fe(this,He).body.append(ut)}return Fe(this,We)},Ne=new WeakSet,AE=function(ut){const yt=Fe(this,He).createElementNS(x,"feColorMatrix");yt.setAttribute("type","matrix"),yt.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),ut.append(yt)},Qe=new WeakSet,fy=function(ut){const yt=Fe(this,He).createElementNS(x,"filter");return yt.setAttribute("color-interpolation-filters","sRGB"),yt.setAttribute("id",ut),Fe(this,he,tp).append(yt),yt},Ot=new WeakSet,py=function(ut,yt,ht){const ct=Fe(this,He).createElementNS(x,yt);ct.setAttribute("type","discrete"),ct.setAttribute("tableValues",ht),ut.append(ct)},Lt=new WeakSet,Lg=function(ut,yt,ht,ct){const cn=Fe(this,He).createElementNS(x,"feComponentTransfer");ct.append(cn),bn(this,Ot,py).call(this,cn,"feFuncR",ut),bn(this,Ot,py).call(this,cn,"feFuncG",yt),bn(this,Ot,py).call(this,cn,"feFuncB",ht)},Rt=new WeakSet,Bg=function(ut){return Fe(this,he,tp).style.color=ut,k(getComputedStyle(Fe(this,he,tp)).getPropertyValue("color"))},q.DOMFilterFactory=class te extends t.BaseFilterFactory{constructor(){let{docId:ut,ownerDocument:yt=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),dn(this,J),dn(this,he),dn(this,Ne),dn(this,Qe),dn(this,Ot),dn(this,Lt),dn(this,Rt),dn(this,ve,void 0),dn(this,We,void 0),dn(this,Re,void 0),dn(this,He,void 0),dn(this,ge,void 0),dn(this,O,void 0),dn(this,b,void 0),dn(this,p,void 0),dn(this,A,void 0),dn(this,N,void 0),dn(this,K,0),Vn(this,Re,ut),Vn(this,He,yt)}addFilter(ut){if(!ut)return"none";let ht,ct,cn,gt,yt=Fe(this,J,ep).get(ut);if(yt)return yt;if(1===ut.length){const ze=ut[0],nt=new Array(256);for(let mt=0;mt<256;mt++)nt[mt]=ze[mt]/255;gt=ht=ct=cn=nt.join(",")}else{const[ze,nt,mt]=ut,Nt=new Array(256),wt=new Array(256),bt=new Array(256);for(let Kt=0;Kt<256;Kt++)Nt[Kt]=ze[Kt]/255,wt[Kt]=nt[Kt]/255,bt[Kt]=mt[Kt]/255;ht=Nt.join(","),ct=wt.join(","),cn=bt.join(","),gt=`${ht}${ct}${cn}`}if(yt=Fe(this,J,ep).get(gt),yt)return Fe(this,J,ep).set(ut,yt),yt;const at=`g_${Fe(this,Re)}_transfer_map_${md(this,K)._++}`,St=`url(#${at})`;Fe(this,J,ep).set(ut,St),Fe(this,J,ep).set(gt,St);const sn=bn(this,Qe,fy).call(this,at);return bn(this,Lt,Lg).call(this,ht,ct,cn,sn),St}addHCMFilter(ut,yt){var nt;const ht=`${ut}-${yt}`;if(Fe(this,O)===ht)return Fe(this,b);if(Vn(this,O,ht),Vn(this,b,"none"),null==(nt=Fe(this,ge))||nt.remove(),!ut||!yt)return Fe(this,b);const ct=bn(this,Rt,Bg).call(this,ut);ut=_.Util.makeHexColor(...ct);const cn=bn(this,Rt,Bg).call(this,yt);if(yt=_.Util.makeHexColor(...cn),Fe(this,he,tp).style.color="","#000000"===ut&&"#ffffff"===yt||ut===yt)return Fe(this,b);const gt=new Array(256);for(let mt=0;mt<=255;mt++){const Nt=mt/255;gt[mt]=Nt<=.03928?Nt/12.92:Qf((Nt+.055)/1.055,2.4)}const at=gt.join(","),St=`g_${Fe(this,Re)}_hcm_filter`,sn=Vn(this,p,bn(this,Qe,fy).call(this,St));bn(this,Lt,Lg).call(this,at,at,at,sn),bn(this,Ne,AE).call(this,sn);const ze=(mt,Nt)=>{const wt=ct[mt]/255,bt=cn[mt]/255,Kt=new Array(Nt+1);for(let Un=0;Un<=Nt;Un++)Kt[Un]=wt+Un/Nt*(bt-wt);return Kt.join(",")};return bn(this,Lt,Lg).call(this,ze(0,5),ze(1,5),ze(2,5),sn),Vn(this,b,`url(#${St})`),Fe(this,b)}addHighlightHCMFilter(ut,yt,ht,ct){var bt;const cn=`${ut}-${yt}-${ht}-${ct}`;if(Fe(this,A)===cn)return Fe(this,N);if(Vn(this,A,cn),Vn(this,N,"none"),null==(bt=Fe(this,p))||bt.remove(),!ut||!yt)return Fe(this,N);const[gt,at]=[ut,yt].map(bn(this,Rt,Bg).bind(this));
1let St=Math.round(.2126*gt[0]+.7152*gt[1]+.0722*gt[2]),sn=Math.round(.2126*at[0]+.7152*at[1]+.0722*at[2]),[ze,nt]=[ht,ct].map(bn(this,Rt,Bg).bind(this));sn<St&&([St,sn,ze,nt]=[sn,St,nt,ze]),Fe(this,he,tp).style.color="";const mt=(Kt,Un,vt)=>{const tn=new Array(256),Cn=(sn-St)/vt,Sn=Kt/255,Nn=(Un-Kt)/(255*vt);let rr=0;for(let Fn=0;Fn<=vt;Fn++){const jn=Math.round(St+Fn*Cn),nr=Sn+Fn*Nn;for(let Tt=rr;Tt<=jn;Tt++)tn[Tt]=nr;rr=jn+1}for(let Fn=rr;Fn<256;Fn++)tn[Fn]=tn[rr-1];return tn.join(",")},Nt=`g_${Fe(this,Re)}_hcm_highlight_filter`,wt=Vn(this,p,bn(this,Qe,fy).call(this,Nt));return bn(this,Ne,AE).call(this,wt),bn(this,Lt,Lg).call(this,mt(ze[0],nt[0],5),mt(ze[1],nt[1],5),mt(ze[2],nt[2],5),wt),Vn(this,N,`url(#${Nt})`),Fe(this,N)}destroy(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(Fe(this,b)||Fe(this,N))||(Fe(this,We)&&(Fe(this,We).parentNode.parentNode.remove(),Vn(this,We,null)),Fe(this,ve)&&(Fe(this,ve).clear(),Vn(this,ve,null)),Vn(this,K,0))}},q.DOMCanvasFactory=class Q extends t.BaseCanvasFactory{constructor(){let{ownerDocument:ut=globalThis.document}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this._document=ut}_createCanvas(ut,yt){const ht=this._document.createElement("canvas");return ht.width=ut,ht.height=yt,ht}},q.DOMCMapReaderFactory=class P extends t.BaseCMapReaderFactory{_fetchData(ut,yt){return S(ut,this.isCompressed).then(ht=>({cMapData:ht,compressionType:yt}))}},q.DOMStandardFontDataFactory=class C extends t.BaseStandardFontDataFactory{_fetchData(ut){return S(ut,!0)}},q.DOMSVGFactory=class L extends t.BaseSVGFactory{_createSVG(ut){return document.createElementNS(x,ut)}};class E{constructor(ut){let{viewBox:yt,scale:ht,rotation:ct,offsetX:cn=0,offsetY:gt=0,dontFlip:at=!1}=ut;this.viewBox=yt,this.scale=ht,this.rotation=ct,this.offsetX=cn,this.offsetY=gt;const St=(yt[2]+yt[0])/2,sn=(yt[3]+yt[1])/2;let ze,nt,mt,Nt,wt,bt,Kt,Un;switch(ct%=360,ct<0&&(ct+=360),ct){case 180:ze=-1,nt=0,mt=0,Nt=1;break;case 90:ze=0,nt=1,mt=1,Nt=0;break;case 270:ze=0,nt=-1,mt=-1,Nt=0;break;case 0:ze=1,nt=0,mt=0,Nt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}at&&(mt=-mt,Nt=-Nt),0===ze?(wt=Math.abs(sn-yt[1])*ht+cn,bt=Math.abs(St-yt[0])*ht+gt,Kt=(yt[3]-yt[1])*ht,Un=(yt[2]-yt[0])*ht):(wt=Math.abs(St-yt[0])*ht+cn,bt=Math.abs(sn-yt[1])*ht+gt,Kt=(yt[2]-yt[0])*ht,Un=(yt[3]-yt[1])*ht),this.transform=[ze*ht,nt*ht,mt*ht,Nt*ht,wt-ze*ht*St-mt*ht*sn,bt-nt*ht*St-Nt*ht*sn],this.width=Kt,this.height=Un}get rawDims(){const{viewBox:ut}=this;return(0,_.shadow)(this,"rawDims",{pageWidth:ut[2]-ut[0],pageHeight:ut[3]-ut[1],pageX:ut[0],pageY:ut[1]})}clone(){let{scale:ut=this.scale,rotation:yt=this.rotation,offsetX:ht=this.offsetX,offsetY:ct=this.offsetY,dontFlip:cn=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new E({viewBox:this.viewBox.slice(),scale:ut,rotation:yt,offsetX:ht,offsetY:ct,dontFlip:cn})}convertToViewportPoint(ut,yt){return _.Util.applyTransform([ut,yt],this.transform)}convertToViewportRectangle(ut){const yt=_.Util.applyTransform([ut[0],ut[1]],this.transform),ht=_.Util.applyTransform([ut[2],ut[3]],this.transform);return[yt[0],yt[1],ht[0],ht[1]]}convertToPdfPoint(ut,yt){return _.Util.applyInverseTransform([ut,yt],this.transform)}}function v(_t){const ut=_t.length;let yt=0;for(;yt<ut&&""===_t[yt].trim();)yt++;return"data:"===_t.substring(yt,yt+5).toLowerCase()}function f(_t,ut){try{const{protocol:yt}=ut?new URL(_t,ut):new URL(_t);return"http:"===yt||"https:"===yt}catch(yt){return!1}}function k(_t){if(_t.startsWith("#")){const ut=parseInt(_t.slice(1),16);return[(16711680&ut)>>16,(65280&ut)>>8,255&ut]}return _t.startsWith("rgb(")?_t.slice(4,-1).split(",").map(ut=>parseInt(ut)):_t.startsWith("rgba(")?_t.slice(5,-1).split(",").map(ut=>parseInt(ut)).slice(0,3):((0,_.warn)(`Not a valid color format: "${_t}"`),[0,0,0])}q.PageViewport=E,q.RenderingCancelledException=class m extends _.BaseException{constructor(ut){let yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;super(ut,"RenderingCancelledException"),this.extraDelay=yt}},q.StatTimer=class V{constructor(){ys(this,"started",Object.create(null)),ys(this,"times",[])}time(ut){ut in this.started&&(0,_.warn)(`Timer is already running for ${ut}`),this.started[ut]=Date.now()}timeEnd(ut){ut in this.started||(0,_.warn)(`Timer has not been started for ${ut}`),this.times.push({name:ut,start:this.started[ut],end:Date.now()}),delete this.started[ut]}toString(){const ut=[];let yt=0;for(const{name:ht}of this.times)yt=Math.max(ht.length,yt);for(const{name:ht,start:ct,end:cn}of this.times)ut.push(`${ht.padEnd(yt)} ${cn-ct}ms\n`);return ut.join("")}},q.PDFDateString=class se{static toDateObject(ut){if(!ut||"string"!=typeof ut)return null;$||($=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const yt=$.exec(ut);if(!yt)return null;const ht=parseInt(yt[1],10);let ct=parseInt(yt[2],10);ct=ct>=1&&ct<=12?ct-1:0;let cn=parseInt(yt[3],10);cn=cn>=1&&cn<=31?cn:1;let gt=parseInt(yt[4],10);gt=gt>=0&&gt<=23?gt:0;let at=parseInt(yt[5],10);at=at>=0&&at<=59?at:0;let St=parseInt(yt[6],10);St=St>=0&&St<=59?St:0;const sn=yt[7]||"Z";let ze=parseInt(yt[8],10);ze=ze>
1=0&&ze<=23?ze:0;let nt=parseInt(yt[9],10)||0;return nt=nt>=0&&nt<=59?nt:0,"-"===sn?(gt+=ze,at+=nt):"+"===sn&&(gt-=ze,at-=nt),new Date(Date.UTC(ht,ct,cn,gt,at,St))}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.BaseStandardFontDataFactory=q.BaseSVGFactory=q.BaseFilterFactory=q.BaseCanvasFactory=q.BaseCMapReaderFactory=void 0,c(2);var t=c(1);class _{constructor(){this.constructor===_&&(0,t.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(W){return"none"}addHCMFilter(W,P){return"none"}addHighlightHCMFilter(W,P,C,L){return"none"}destroy(){}}q.BaseFilterFactory=_;class x{constructor(){this.constructor===x&&(0,t.unreachable)("Cannot initialize BaseCanvasFactory.")}create(W,P){if(W<=0||P<=0)throw new Error("Invalid canvas size");const C=this._createCanvas(W,P);return{canvas:C,context:C.getContext("2d")}}reset(W,P,C){if(!W.canvas)throw new Error("Canvas is not specified");if(P<=0||C<=0)throw new Error("Invalid canvas size");W.canvas.width=P,W.canvas.height=C}destroy(W){if(!W.canvas)throw new Error("Canvas is not specified");W.canvas.width=0,W.canvas.height=0,W.canvas=null,W.context=null}_createCanvas(W,P){(0,t.unreachable)("Abstract method `_createCanvas` called.")}}q.BaseCanvasFactory=x;class re{constructor(W){let{baseUrl:P=null,isCompressed:C=!0}=W;this.constructor===re&&(0,t.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=P,this.isCompressed=C}fetch(W){var P=this;return _asyncToGenerator(function*(){let{name:C}=W;if(!P.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!C)throw new Error("CMap name must be specified.");const L=P.baseUrl+C+(P.isCompressed?".bcmap":"");return P._fetchData(L,P.isCompressed?t.CMapCompressionType.BINARY:t.CMapCompressionType.NONE).catch(m=>{throw new Error(`Unable to load ${P.isCompressed?"binary ":""}CMap at: ${L}`)})})()}_fetchData(W,P){(0,t.unreachable)("Abstract method `_fetchData` called.")}}q.BaseCMapReaderFactory=re;class te{constructor(W){let{baseUrl:P=null}=W;this.constructor===te&&(0,t.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=P}fetch(W){var P=this;return _asyncToGenerator(function*(){let{filename:C}=W;if(!P.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!C)throw new Error("Font filename must be specified.");const L=`${P.baseUrl}${C}`;return P._fetchData(L).catch(E=>{throw new Error(`Unable to load font data at: ${L}`)})})()}_fetchData(W){(0,t.unreachable)("Abstract method `_fetchData` called.")}}q.BaseStandardFontDataFactory=te;class Q{constructor(){this.constructor===Q&&(0,t.unreachable)("Cannot initialize BaseSVGFactory.")}create(W,P){let C=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(W<=0||P<=0)throw new Error("Invalid SVG dimensions");const L=this._createSVG("svg:svg");return L.setAttribute("version","1.1"),C||(L.setAttribute("width",`${W}px`),L.setAttribute("height",`${P}px`)),L.setAttribute("preserveAspectRatio","none"),L.setAttribute("viewBox",`0 0 ${W} ${P}`),L}createElement(W){if("string"!=typeof W)throw new Error("Invalid SVG element type");return this._createSVG(W)}_createSVG(W){(0,t.unreachable)("Abstract method `_createSVG` called.")}}q.BaseSVGFactory=Q},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.MurmurHash3_64=void 0,c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(2);var t=c(1);const _=3285377520,x=4294901760,re=65535;q.MurmurHash3_64=class te{constructor(S){this.h1=S?4294967295&S:_,this.h2=S?4294967295&S:_}update(S){let W,P;if("string"==typeof S){W=new Uint8Array(2*S.length),P=0;for(let Z=0,G=S.length;Z<G;Z++){const $=S.charCodeAt(Z);$<=255?W[P++]=$:(W[P++]=$>>>8,W[P++]=255&$)}}else{if(!(0,t.isArrayBuffer)(S))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");W=S.slice(),P=W.byteLength}const C=P>>2,L=P-4*C,E=new Uint32Array(W.buffer,0,C);let m=0,v=0,R=this.h1,j=this.h2;const M=3432918353,V=461845907,f=M&re,T=V&re;for(let Z=0;Z<C;Z++)1&Z?(m=E[Z],m=m*M&x|m*f&re,m=m<<15|m>>>17,m=m*V&x|m*T&re,R^=m,R=R<<13|R>>>19,R=5*R+3864292196):(v=E[Z],v=v*M&x|v*f&re,v=v<<15|v>>>17,v=v*V&x|v*T&re,j^=v,j=j<<13|j>>>19,j=5*j+3864292196);switch(m=0,L){case 3:m^=W[4*C+2]<<16;case 2:m^=W[4*C+1]<<8;case 1:m^=W[4*C],m=m*M&x|m*f&re,m=m<<15|m>>>17,m=m*V&x|m*T&re,1&C?R^=m:j^=m}this.h1=R,this.h2=j}hexdigest(){let S=this.h1,W=this.h2;return S^=W>>>1,S=3981806797*S&x|36045*S&re,W=4283543511*W&x|(2950163797*(W<<16|S>>>16)&x)>>>16,S^=W>>>1,S=444984403*S&x|60499*S&re,W=3301882366*W&x|(3120437893*(W<<16|S>>>16)&x)>>>16,S^=W>>>1,(S>>>0).toString(16).padStart(8,"0")+(W>>>0).toString(16).padStart(8,"0")}}},(xe,q,c)=>{var re;
1Object.defineProperty(q,"__esModule",{value:!0}),q.FontLoader=q.FontFaceObject=void 0,c(125),c(136),c(138),c(141),c(143),c(145),c(147),c(89),c(149);var t=c(1);re=new WeakMap,q.FontLoader=class _{constructor(Q){dn(this,re,new Set);let{ownerDocument:S=globalThis.document,styleElement:W=null}=Q;this._document=S,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(Q){this.nativeFontFaces.add(Q),this._document.fonts.add(Q)}removeNativeFontFace(Q){this.nativeFontFaces.delete(Q),this._document.fonts.delete(Q)}insertRule(Q){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const S=this.styleElement.sheet;S.insertRule(Q,S.cssRules.length)}clear(){for(const Q of this.nativeFontFaces)this._document.fonts.delete(Q);this.nativeFontFaces.clear(),Fe(this,re).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}loadSystemFont(Q){var S=this;return _asyncToGenerator(function*(){if(Q&&!Fe(S,re).has(Q.loadedName)){if((0,t.assert)(!S.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),S.isFontLoadingAPISupported){const{loadedName:W,src:P,style:C}=Q,L=new FontFace(W,P,C);S.addNativeFontFace(L);try{yield L.load(),Fe(S,re).add(W)}catch(E){(0,t.warn)(`Cannot load system font: ${Q.baseFontName}, installing it could help to improve PDF rendering.`),S.removeNativeFontFace(L)}return}(0,t.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}})()}bind(Q){var S=this;return _asyncToGenerator(function*(){if(Q.attached||Q.missingFile&&!Q.systemFontInfo)return;if(Q.attached=!0,Q.systemFontInfo)return void(yield S.loadSystemFont(Q.systemFontInfo));if(S.isFontLoadingAPISupported){const P=Q.createNativeFontFace();if(P){S.addNativeFontFace(P);try{yield P.loaded}catch(C){throw(0,t.warn)(`Failed to load font '${P.family}': '${C}'.`),Q.disableFontFace=!0,C}}return}const W=Q.createFontFaceRule();if(W){if(S.insertRule(W),S.isSyncFontLoadingSupported)return;yield new Promise(P=>{const C=S._queueLoadingCallback(P);S._prepareFontLoadEvent(Q,C)})}})()}get isFontLoadingAPISupported(){var S;const Q=!!(null==(S=this._document)?void 0:S.fonts);return(0,t.shadow)(this,"isFontLoadingAPISupported",Q)}get isSyncFontLoadingSupported(){let Q=!1;return(t.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(Q=!0),(0,t.shadow)(this,"isSyncFontLoadingSupported",Q)}_queueLoadingCallback(Q){const{loadingRequests:W}=this,P={done:!1,complete:function S(){for((0,t.assert)(!P.done,"completeRequest() cannot be called twice."),P.done=!0;W.length>0&&W[0].done;){const C=W.shift();setTimeout(C.callback,0)}},callback:Q};return W.push(P),P}get _loadTestFont(){const Q=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,t.shadow)(this,"_loadTestFont",Q)}
vendor: 9,534 bytes, line 1
1_prepareFontLoadEvent(Q,S){function W(y,k){return y.charCodeAt(k)<<24|y.charCodeAt(k+1)<<16|y.charCodeAt(k+2)<<8|255&y.charCodeAt(k+3)}function P(y,k,I,H){return y.substring(0,k)+H+y.substring(k+I)}let C,L;const E=this._document.createElement("canvas");E.width=1,E.height=1;const m=E.getContext("2d");let v=0;const j=`lt${Date.now()}${this.loadTestFontId++}`;let M=this._loadTestFont;M=P(M,976,j.length,j);const T=1482184792;let Z=W(M,16);for(C=0,L=j.length-3;C<L;C+=4)Z=Z-T+W(j,C)|0;C<j.length&&(Z=Z-T+W(j+"XXX",C)|0),M=P(M,16,4,(0,t.string32)(Z));const G=`url(data:font/opentype;base64,${btoa(M)});`;this.insertRule(`@font-face {font-family:"${j}";src:${G}}`);const se=this._document.createElement("div");se.style.visibility="hidden",se.style.width=se.style.height="10px",se.style.position="absolute",se.style.top=se.style.left="0px";for(const y of[Q.loadedName,j]){const k=this._document.createElement("span");k.textContent="Hi",k.style.fontFamily=y,se.append(k)}this._document.body.append(se),function R(y,k){if(++v>30)return(0,t.warn)("Load test font never loaded."),void k();m.font="30px "+y,m.fillText(".",0,20),m.getImageData(0,0,1,1).data[3]>0?k():setTimeout(R.bind(null,y,k))}(j,()=>{se.remove(),S.complete()})}},q.FontFaceObject=class x{constructor(Q,S){let{isEvalSupported:W=!0,disableFontFace:P=!1,ignoreErrors:C=!1,inspectFont:L=null}=S;this.compiledGlyphs=Object.create(null);for(const E in Q)this[E]=Q[E];this.isEvalSupported=!1!==W,this.disableFontFace=!0===P,this.ignoreErrors=!0===C,this._inspectFont=L}createNativeFontFace(){var S;if(!this.data||this.disableFontFace)return null;let Q;if(this.cssFontInfo){const W={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(W.style=`oblique ${this.cssFontInfo.italicAngle}deg`),Q=new FontFace(this.cssFontInfo.fontFamily,this.data,W)}else Q=new FontFace(this.loadedName,this.data,{});return null==(S=this._inspectFont)||S.call(this,this),Q}createFontFaceRule(){var P;if(!this.data||this.disableFontFace)return null;const Q=(0,t.bytesToString)(this.data),S=`url(data:${this.mimetype};base64,${btoa(Q)});`;let W;if(this.cssFontInfo){let C=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(C+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),W=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${C}src:${S}}`}else W=`@font-face {font-family:"${this.loadedName}";src:${S}}`;return null==(P=this._inspectFont)||P.call(this,this,S),W}getPathGenerator(Q,S){if(void 0!==this.compiledGlyphs[S])return this.compiledGlyphs[S];let W;try{W=Q.get(this.loadedName+"_path_"+S)}catch(P){if(!this.ignoreErrors)throw P;return(0,t.warn)(`getPathGenerator - ignoring character: "${P}".`),this.compiledGlyphs[S]=function(C,L){}}if(this.isEvalSupported&&t.FeatureTest.isEvalSupported){const P=[];for(const C of W){const L=void 0!==C.args?C.args.join(","):"";P.push("c.",C.cmd,"(",L,");\n")}return this.compiledGlyphs[S]=new Function("c","size",P.join(""))}return this.compiledGlyphs[S]=function(P,C){for(const L of W)"scale"===L.cmd&&(L.args=[C,-C]),P[L.cmd].apply(P,L.args)}}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.NodeStandardFontDataFactory=q.NodeFilterFactory=q.NodeCanvasFactory=q.NodeCMapReaderFactory=void 0,c(2),c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123);var t=c(169),_=c(1);(function(){if(!globalThis.DOMMatrix&&_.isNodeJS)try{globalThis.DOMMatrix=__webpack_require__(4601).DOMMatrix}catch(P){(0,_.warn)(`Cannot polyfill \`DOMMatrix\`, rendering may be broken: "${P}".`)}})(),function(){if(!globalThis.Path2D&&_.isNodeJS)try{const{CanvasRenderingContext2D:P}=__webpack_require__(4601),{polyfillPath2D:C}=__webpack_require__(4492);globalThis.CanvasRenderingContext2D=P,C(globalThis)}catch(P){(0,_.warn)(`Cannot polyfill \`Path2D\`, rendering may be broken: "${P}".`)}}();const x=function(W){return new Promise((P,C)=>{__webpack_require__(2767).readFile(W,(E,m)=>{!E&&m?P(new Uint8Array(m)):C(new Error(E))})})};q.NodeFilterFactory=class re extends t.BaseFilterFactory{},q.NodeCanvasFactory=class te extends t.BaseCanvasFactory{_createCanvas(P,C){return __webpack_require__(4601).createCanvas(P,C)}},q.NodeCMapReaderFactory=class Q extends t.BaseCMapReaderFactory{_fetchData(P,C){return x(P).then(L=>({cMapData:L,compressionType:C}))}},q.NodeStandardFontDataFactory=class S extends t.BaseStandardFontDataFactory{_fetchData(P){return x(P)}}},(xe,q,c)=>{var ve,SE,Re,CE;Object.defineProperty(q,"__esModule",{value:!0}),q.CanvasGraphics=void 0,c(2),c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(89);var t=c(1),_=c(168),x=c(174),re=c(175);const S=4096,L=16;class m{constructor(b){this.canvasFactory=b,this.cache=Object.create(null)}getCanvas(b,p,A){let N;return void 0!==this.cache[b]?(N=this.cache[b],this.canvasFactory.reset(N,p,A)):(N=this.canvasFactory.create(p,A),this.cache[b]=N),N}delete(b){delete this.cache[b]}clear(){for(const b in this.cache)this.canvasFactory.destroy(this.cache[b]),delete this.cache[b]}}function v(O,b,p,A,N,K,J,ie,he,Oe){const[Ne,Ye,Qe,Ct,Ot,ln]=(0,_.getCurrentTransform)(O);if(0===Ye&&0===Qe){const it=Math.round(J*Ne+Ot),ut=Math.round(ie*Ct+ln),ht=Math.abs(Math.round((J+he)*Ne+Ot)-it)||1,cn=Math.abs(Math.round((ie+Oe)*Ct+ln)-ut)||1;return O.setTransform(Math.sign(Ne),0,0,Math.sign(Ct),it,ut),O.drawImage(b,p,A,N,K,0,0,ht,cn),O.setTransform(Ne,Ye,Qe,Ct,Ot,ln),[ht,cn]}if(0===Ne&&0===Ct){const it=Math.round(ie*Qe+Ot),ut=Math.round(J*Ye+ln),ht=Math.abs(Math.round((ie+Oe)*Qe+Ot)-it)||1,cn=Math.abs(Math.round((J+he)*Ye+ln)-ut)||1;return O.setTransform(0,Math.sign(Ye),Math.sign(Qe),0,it,ut),O.drawImage(b,p,A,N,K,0,0,cn,ht),O.setTransform(Ne,Ye,Qe,Ct,Ot,ln),[cn,ht]}return O.drawImage(b,p,A,N,K,J,ie,he,Oe),[Math.hypot(Ne,Ye)*he,Math.hypot(Qe,Ct)*Oe]}class j{constructor(b,p){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=t.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=t.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=t.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,b,p])}clone(){const b=Object.create(this);return b.clipBox=this.clipBox.slice(),b}setCurrentPoint(b,p){this.x=b,this.y=p}updatePathMinMax(b,p,A){[p,A]=t.Util.applyTransform([p,A],b),this.minX=Math.min(this.minX,p),this.minY=Math.min(this.minY,A),this.maxX=Math.max(this.maxX,p),this.maxY=Math.max(this.maxY,A)}updateRectMinMax(b,p){const A=t.Util.applyTransform(p,b),N=t.Util.applyTransform(p.slice(2),b);this.minX=Math.min(this.minX,A[0],N[0]),this.minY=Math.min(this.minY,A[1],N[1]),this.maxX=Math.max(this.maxX,A[0],N[0]),this.maxY=Math.max(this.maxY,A[1],N[1])}updateScalingPathMinMax(b,p){t.Util.scaleMinMax(b,p),this.minX=Math.min(this.minX,p[0]),this.maxX=Math.max(this.maxX,p[1]),this.minY=Math.min(this.minY,p[2]),this.maxY=Math.max(this.maxY,p[3])}updateCurvePathMinMax(b,p,A,N,K,J,ie,he,Oe,Ne){const Ye=t.Util.bezierBoundingBox(p,A,N,K,J,ie,he,Oe);if(Ne)return Ne[0]=Math.min(Ne[0],Ye[0],Ye[2]),Ne[1]=Math.max(Ne[1],Ye[0],Ye[2]),Ne[2]=Math.min(Ne[2],Ye[1],Ye[3]),void(Ne[3]=Math.max(Ne[3],Ye[1],Ye[3]));this.updateRectMinMax(b,Ye)}getPathBoundingBox(){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const A=[this.minX,this.minY,this.maxX,this.maxY];if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.PathType.FILL)===x.PathType.STROKE){p||(0,t.unreachable)("Stroke bounding box must include transform.");const N=t.Util.singularValueDecompose2dScale(p),K=N[0]*this.lineWidth/2,J=N[1]*this.lineWidth/2;A[0]-=K,A[1]-=J,A[2]+=K,A[3]+=J}return A}updateClipFromPath(){const b=t.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(b||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(b){this.clipBox=b,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){return t.Util.intersect(this.clipBox,this.getPathBoundingBox(arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.PathType.FILL,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null))}}function M(O,b){if("undefined"!=typeof ImageData&&b instanceof ImageData)return void O.putImageData(b,0,0);const p=b.height,A=b.width,N=p%L,K=(p-N)/L,J=0===N?K:K+1,ie=O.createImageData(A,L);let Oe,he=0;const Ne=b.data,Ye=ie.data;let Qe,Ct,Ot,ln;if(b.kind===t.ImageKind.GRAYSCALE_1BPP){const Lt=Ne.byteLength,Jt=new Uint32Array(Ye.buffer,0,Ye.byteLength>>2),Rt=Jt.length,it=A+7>>3,_t=4294967295,ut=t.FeatureTest.isLittleEndian?4278190080:255;for(Qe=0;Qe<J;Qe++){for(Ot=Qe<K?L:N,Oe=0,Ct=0;Ct<Ot;Ct++){const yt=Lt-he;let ht=0;const ct=yt>it?A:8*yt-7,cn=-8&ct;let gt=0,at=0;for(;ht<cn;ht+=8)at=Ne[he++],Jt[Oe++]=128&at?_t:ut,Jt[Oe++]=64&at?_t:ut,Jt[Oe++]=32&at?_t:ut,Jt[Oe++]=16&at?_t:ut,Jt[Oe++]=8&at?_t:ut,Jt[Oe++]=4&at?_t:ut,Jt[Oe++]=2&at?_t:ut,Jt[Oe++]=1&at?_t:ut;for(;ht<ct;ht++)0===gt&&(at=Ne[he++],gt=128),Jt[Oe++]=at&gt?_t:ut,gt>>=1}for(;Oe<Rt;)Jt[Oe++]=0;O.putImageData(ie,0,Qe*L)}}else if(b.kind===t.ImageKind.RGBA_32BPP){for(Ct=0,ln=A*L*4,Qe=0;Qe<K;Qe++)Ye.set(Ne.subarray(he,he+ln)),he+=ln,O.putImageData(ie,0,Ct),Ct+=L;Qe<J&&(ln=A*N*4,Ye.set(Ne.subarray(he,he+ln)),O.putImageData(ie,0,Ct))}else{if(b.kind!==t.ImageKind.RGB_24BPP)throw new Error(`bad image kind: ${b.kind}`);for(Ot=L,ln=A*Ot,Qe=0;Qe<J;Qe++){for(Qe>=K&&(Ot=N,ln=A*Ot),Oe=0,Ct=ln;Ct--;
1)Ye[Oe++]=Ne[he++],Ye[Oe++]=Ne[he++],Ye[Oe++]=Ne[he++],Ye[Oe++]=255;O.putImageData(ie,0,Qe*L)}}}function V(O,b){if(b.bitmap)return void O.drawImage(b.bitmap,0,0);const p=b.height,A=b.width,N=p%L,K=(p-N)/L,J=0===N?K:K+1,ie=O.createImageData(A,L);let he=0;const Oe=b.data,Ne=ie.data;for(let Ye=0;Ye<J;Ye++){const Qe=Ye<K?L:N;({srcPos:he}=(0,re.convertBlackAndWhiteToRGBA)({src:Oe,srcPos:he,dest:Ne,width:A,height:Qe,nonBlackColor:0})),O.putImageData(ie,0,Ye*L)}}function f(O,b){const p=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const A of p)void 0!==O[A]&&(b[A]=O[A]);void 0!==O.setLineDash&&(b.setLineDash(O.getLineDash()),b.lineDashOffset=O.lineDashOffset)}function T(O){if(O.strokeStyle=O.fillStyle="#000000",O.fillRule="nonzero",O.globalAlpha=1,O.lineWidth=1,O.lineCap="butt",O.lineJoin="miter",O.miterLimit=10,O.globalCompositeOperation="source-over",O.font="10px sans-serif",void 0!==O.setLineDash&&(O.setLineDash([]),O.lineDashOffset=0),!t.isNodeJS){const{filter:b}=O;"none"!==b&&""!==b&&(O.filter="none")}}function Z(O,b,p,A){const N=O.length;for(let K=3;K<N;K+=4){const J=O[K];if(0===J)O[K-3]=b,O[K-2]=p,O[K-1]=A;else if(J<255){const ie=255-J;O[K-3]=O[K-3]*J+b*ie>>8,O[K-2]=O[K-2]*J+p*ie>>8,O[K-1]=O[K-1]*J+A*ie>>8}}}function G(O,b,p){const A=O.length;for(let K=3;K<A;K+=4)b[K]=b[K]*(p?p[O[K]]:O[K])*.00392156862745098|0}function $(O,b,p){const A=O.length;for(let N=3;N<A;N+=4){const K=77*O[N-3]+152*O[N-2]+28*O[N-1];b[N]=p?b[N]*p[K>>8]>>8:b[N]*K>>16}}function k(O,b){const p=t.Util.singularValueDecompose2dScale(O);p[0]=Math.fround(p[0]),p[1]=Math.fround(p[1]);const A=Math.fround((globalThis.devicePixelRatio||1)*_.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==b?b:p[0]<=A||p[1]<=A}const I=["butt","round","square"],H=["miter","round","bevel"],ee={},z={},ge=class{constructor(b,p,A,N,K,J,ie,he){dn(this,ve),dn(this,Re);let{optionalContentConfig:Oe,markedContentStack:Ne=null}=J;this.ctx=b,this.current=new j(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=p,this.objs=A,this.canvasFactory=N,this.filterFactory=K,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=Ne||[],this.optionalContentConfig=Oe,this.cachedCanvases=new m(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=ie,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=he,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(b){let p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof b?b.startsWith("g_")?this.commonObjs.get(b):this.objs.get(b):p}beginDrawing(b){let{transform:p,viewport:A,transparency:N=!1,background:K=null}=b;const J=this.ctx.canvas.width,ie=this.ctx.canvas.height,he=this.ctx.fillStyle;if(this.ctx.fillStyle=K||"#ffffff",this.ctx.fillRect(0,0,J,ie),this.ctx.fillStyle=he,N){const Oe=this.cachedCanvases.getCanvas("transparent",J,ie);this.compositeCtx=this.ctx,this.transparentCanvas=Oe.canvas,this.ctx=Oe.context,this.ctx.save(),this.ctx.transform(...(0,_.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),T(this.ctx),p&&(this.ctx.transform(...p),this.outputScaleX=p[0],this.outputScaleY=p[0]),this.ctx.transform(...A.transform),this.viewportScale=A.scale,this.baseTransform=(0,_.getCurrentTransform)(this.ctx)}executeOperatorList(b,p,A,N){const K=b.argsArray,J=b.fnArray;let ie=p||0;const he=K.length;if(he===ie)return ie;const Oe=he-ie>10&&"function"==typeof A,Ne=Oe?Date.now()+15:0;let Ye=0;const Qe=this.commonObjs,Ct=this.objs;let Ot;for(;;){if(void 0!==N&&ie===N.nextBreakPoint)return N.breakIt(ie,A),ie;if(Ot=J[ie],Ot!==t.OPS.dependency)this[Ot].apply(this,K[ie]);else for(const ln of K[ie]){const Lt=ln.startsWith("g_")?Qe:Ct;if(!Lt.has(ln))return Lt.get(ln,A),ie}if(ie++,ie===he)return ie;if(Oe&&++Ye>10){if(Date.now()>Ne)return A(),ie;Ye=0}}}endDrawing(){bn(this,ve,SE).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const b of this._cachedBitmapsMap.values()){for(const p of b.values())"undefined"!=typeof HTMLCanvasElement&&p instanceof HTMLCanvasElement&&(p.width=p.height=0);b.clear()}this._cachedBitmapsMap.clear(),bn(this,Re,CE).call(this)}_scaleImage(b,p){const A=b.width,N=b.height;let Ne,Ye,K=Math.max(Math.hypot(p[0],p[1]),1),J=Math.max(Math.hypot(p[2],p[3]),1),ie=A,he=N,Oe="prescale1";for(;K>2&&ie>1||J>2&&he>1;){let Qe=ie,Ct=he;K>2&&ie>1&&(Qe=ie>=16384?Math.floor(ie/2)-1||1:Math.ceil(ie/2),K/=ie/Qe),J>2&&he>1&&(Ct=he>=16384?Math.floor(he/2)-1||1:Math.ceil(he)/2,J/=he/Ct),Ne=this.cachedCanvases.getCanvas(Oe,Qe,Ct),Ye=Ne.context,Ye.clearRect(0,0,Qe,Ct),Ye.drawImage(b,0,0,ie,he,0,0,Qe,Ct),b=Ne.canvas,ie=Qe,he=Ct,Oe="prescale1"===Oe?"prescale2":"prescale1"}return{img:b,paintWidth:ie,paintHeight:he}}_createMaskCanvas(b){const p=this.ctx,{width:A,height:N}=b,K=this.current.fillColor,J=this.current.patternFill,ie=(0,_.getCurrentTransform)(p);let he,Oe,Ne,Ye;if((b.bitmap||b.data)&&b.count>1){const ht=b.bitmap||b.data.buffer;Oe=JSON.stringify(J?ie:[ie.slice(0,4),K]),he=this._cachedBitmapsMap.get(ht),he||(he=new Map,this._cachedBitmapsMap.set(ht,he));const ct=he.get(Oe);if(ct&&!J)return{canvas:ct,offsetX:Math.round(Math.min(ie[0],ie[2])+ie[4]),offsetY:Math.round(Math.min(ie[1],ie[3])+ie[5])};Ne=ct}Ne||(Ye=this.cachedCanvases.getCanvas("maskCanvas",A,N),V(Ye.context,b));
vendor: 21,948 bytes, line 1
1let Qe=t.Util.transform(ie,[1/A,0,0,-1/N,0,0]);Qe=t.Util.transform(Qe,[1,0,0,1,0,-N]);const Ct=t.Util.applyTransform([0,0],Qe),Ot=t.Util.applyTransform([A,N],Qe),ln=t.Util.normalizeRect([Ct[0],Ct[1],Ot[0],Ot[1]]),Lt=Math.round(ln[2]-ln[0])||1,Jt=Math.round(ln[3]-ln[1])||1,Rt=this.cachedCanvases.getCanvas("fillCanvas",Lt,Jt),it=Rt.context,_t=Math.min(Ct[0],Ot[0]),ut=Math.min(Ct[1],Ot[1]);it.translate(-_t,-ut),it.transform(...Qe),Ne||(Ne=this._scaleImage(Ye.canvas,(0,_.getCurrentTransformInverse)(it)),Ne=Ne.img,he&&J&&he.set(Oe,Ne)),it.imageSmoothingEnabled=k((0,_.getCurrentTransform)(it),b.interpolate),v(it,Ne,0,0,Ne.width,Ne.height,0,0,A,N),it.globalCompositeOperation="source-in";const yt=t.Util.transform((0,_.getCurrentTransformInverse)(it),[1,0,0,1,-_t,-ut]);return it.fillStyle=J?K.getPattern(p,this,yt,x.PathType.FILL):K,it.fillRect(0,0,A,N),he&&!J&&(this.cachedCanvases.delete("fillCanvas"),he.set(Oe,Rt.canvas)),{canvas:Rt.canvas,offsetX:Math.round(_t),offsetY:Math.round(ut)}}setLineWidth(b){b!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=b,this.ctx.lineWidth=b}setLineCap(b){this.ctx.lineCap=I[b]}setLineJoin(b){this.ctx.lineJoin=H[b]}setMiterLimit(b){this.ctx.miterLimit=b}setDash(b,p){const A=this.ctx;void 0!==A.setLineDash&&(A.setLineDash(b),A.lineDashOffset=p)}setRenderingIntent(b){}setFlatness(b){}setGState(b){for(const[p,A]of b)switch(p){case"LW":this.setLineWidth(A);break;case"LC":this.setLineCap(A);break;case"LJ":this.setLineJoin(A);break;case"ML":this.setMiterLimit(A);break;case"D":this.setDash(A[0],A[1]);break;case"RI":this.setRenderingIntent(A);break;case"FL":this.setFlatness(A);break;case"Font":this.setFont(A[0],A[1]);break;case"CA":this.current.strokeAlpha=A;break;case"ca":this.current.fillAlpha=A,this.ctx.globalAlpha=A;break;case"BM":this.ctx.globalCompositeOperation=A;break;case"SMask":this.current.activeSMask=A?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(A)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const b=this.inSMaskMode;this.current.activeSMask&&!b?this.beginSMaskMode():!this.current.activeSMask&&b&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const N=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,this.ctx.canvas.width,this.ctx.canvas.height);this.suspendedCtx=this.ctx,this.ctx=N.context;const K=this.ctx;K.setTransform(...(0,_.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,K),function E(O,b){if(O._removeMirroring)throw new Error("Context is already forwarding operations.");O.__originalSave=O.save,O.__originalRestore=O.restore,O.__originalRotate=O.rotate,O.__originalScale=O.scale,O.__originalTranslate=O.translate,O.__originalTransform=O.transform,O.__originalSetTransform=O.setTransform,O.__originalResetTransform=O.resetTransform,O.__originalClip=O.clip,O.__originalMoveTo=O.moveTo,O.__originalLineTo=O.lineTo,O.__originalBezierCurveTo=O.bezierCurveTo,O.__originalRect=O.rect,O.__originalClosePath=O.closePath,O.__originalBeginPath=O.beginPath,O._removeMirroring=()=>{O.save=O.__originalSave,O.restore=O.__originalRestore,O.rotate=O.__originalRotate,O.scale=O.__originalScale,O.translate=O.__originalTranslate,O.transform=O.__originalTransform,O.setTransform=O.__originalSetTransform,O.resetTransform=O.__originalResetTransform,O.clip=O.__originalClip,O.moveTo=O.__originalMoveTo,O.lineTo=O.__originalLineTo,O.bezierCurveTo=O.__originalBezierCurveTo,O.rect=O.__originalRect,O.closePath=O.__originalClosePath,O.beginPath=O.__originalBeginPath,delete O._removeMirroring},O.save=function(){b.save(),this.__originalSave()},O.restore=function(){b.restore(),this.__originalRestore()},O.translate=function(A,N){b.translate(A,N),this.__originalTranslate(A,N)},O.scale=function(A,N){b.scale(A,N),this.__originalScale(A,N)},O.transform=function(A,N,K,J,ie,he){b.transform(A,N,K,J,ie,he),this.__originalTransform(A,N,K,J,ie,he)},O.setTransform=function(A,N,K,J,ie,he){b.setTransform(A,N,K,J,ie,he),this.__originalSetTransform(A,N,K,J,ie,he)},O.resetTransform=function(){b.resetTransform(),this.__originalResetTransform()},O.rotate=function(A){b.rotate(A),this.__originalRotate(A)},O.clip=function(A){b.clip(A),this.__originalClip(A)},O.moveTo=function(p,A){b.moveTo(p,A),this.__originalMoveTo(p,A)},O.lineTo=function(p,A){b.lineTo(p,A),this.__originalLineTo(p,A)},O.bezierCurveTo=function(p,A,N,K,J,ie){b.bezierCurveTo(p,A,N,K,J,ie),this.__originalBezierCurveTo(p,A,N,K,J,ie)},O.rect=function(p,A,N,K){b.rect(p,A,N,K),this.__originalRect(p,A,N,K)},O.closePath=function(){b.closePath(),this.__originalClosePath()},O.beginPath=function(){b.beginPath(),this.__originalBeginPath()}}(K,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(b){this.current.activeSMask&&(b?(b[0]=Math.floor(b[0]),b[1]=Math.floor(b[1]),b[2]=Math.ceil(b[2]),b[3]=Math.ceil(b[3])):b=[0,0,this.ctx.canvas.width,this.ctx.canvas.height],function y(O,b,p,A){const N=A[0],K=A[1],J=A[2]-N,ie=A[3]-K;0===J||0===ie||(function se(O,b,p,A,N,K,J,ie,he,Oe,Ne){const Ye=!!K,Qe=Ye?K[0]:0,Ct=Ye?K[1]:0,Ot=Ye?K[2]:0,ln="Luminosity"===N?$:G,Jt=Math.min(A,Math.ceil(1048576/p));for(let Rt=0;Rt<A;Rt+=Jt){const it=Math.min(Jt,A-Rt),_t=O.getImageData(ie-Oe,Rt+(he-Ne),p,it),ut=b.getImageData(ie,Rt+he,p,it);Ye&&Z(_t.data,Qe,Ct,Ot),ln(_t.data,ut.data,J),b.putImageData(ut,ie,Rt+he)}}(b.context,p,J,ie,b.subtype,b.backdrop,b.transferMap,N,K,b.offsetX,b.offsetY),O.save(),O.globalAlpha=1,O.globalCompositeOperation="source-over",O.setTransform(1,0,0,1,0,0),O.drawImage(p.canvas,0,0),O.restore())}(this.suspendedCtx,this.current.activeSMask,this.ctx,b),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore())}save(){this.inSMaskMode?(f(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const b=this.current;this.stateStack.push(b),this.current=b.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(b,p,A,N,K,J){this.ctx.transform(b,p,A,N,K,J),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(b,p,A){const N=this.ctx,K=this.current;let he,Oe,J=K.x,ie=K.y;const Ne=(0,_.getCurrentTransform)(N),Ye=0===Ne[0]&&0===Ne[3]||0===Ne[1]&&0===Ne[2],Qe=Ye?A.slice(0):null;for(let Ct=0,Ot=0,ln=b.length;Ct<ln;Ct++)switch(0|b[Ct]){case t.OPS.rectangle:J=p[Ot++],ie=p[Ot++];const Lt=p[Ot++],Jt=p[Ot++],Rt=J+Lt,it=ie+Jt;N.moveTo(J,ie),0===Lt||0===Jt?N.lineTo(Rt,it):(N.lineTo(Rt,ie),N.lineTo(Rt,it),N.lineTo(J,it)),Ye||K.updateRectMinMax(Ne,[J,ie,Rt,it]),N.closePath();break;case t.OPS.moveTo:J=p[Ot++],ie=p[Ot++],N.moveTo(J,ie),Ye||K.updatePathMinMax(Ne,J,ie);break;case t.OPS.lineTo:J=p[Ot++],ie=p[Ot++],N.lineTo(J,ie),Ye||K.updatePathMinMax(Ne,J,ie);break;case t.OPS.curveTo:he=J,Oe=ie,J=p[Ot+4],ie=p[Ot+5],N.bezierCurveTo(p[Ot],p[Ot+1],p[Ot+2],p[Ot+3],J,ie),K.updateCurvePathMinMax(Ne,he,Oe,p[Ot],p[Ot+1],p[Ot+2],p[Ot+3],J,ie,Qe),Ot+=6;break;case t.OPS.curveTo2:he=J,Oe=ie,N.bezierCurveTo(J,ie,p[Ot],p[Ot+1],p[Ot+2],p[Ot+3]),K.updateCurvePathMinMax(Ne,he,Oe,J,ie,p[Ot],p[Ot+1],p[Ot+2],p[Ot+3],Qe),J=p[Ot+2],ie=p[Ot+3],Ot+=4;break;case t.OPS.curveTo3:he=J,Oe=ie,J=p[Ot+2],ie=p[Ot+3],N.bezierCurveTo(p[Ot],p[Ot+1],J,ie,J,ie),K.updateCurvePathMinMax(Ne,he,Oe,p[Ot],p[Ot+1],J,ie,J,ie,Qe),Ot+=4;break;case t.OPS.closePath:N.closePath()}Ye&&K.updateScalingPathMinMax(Ne,Qe),K.setCurrentPoint(J,ie)}closePath(){this.ctx.closePath()}stroke(){let b=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const p=this.ctx,A=this.current.strokeColor;p.globalAlpha=this.current.strokeAlpha,this.contentVisible&&("object"==typeof A&&(null==A?void 0:A.getPattern)?(p.save(),p.strokeStyle=A.getPattern(p,this,(0,_.getCurrentTransformInverse)(p),x.PathType.STROKE),this.rescaleAndStroke(!1),p.restore()):this.rescaleAndStroke(!0)),b&&this.consumePath(this.current.getClippedPathBoundingBox()),p.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(){let b=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const p=this.ctx,A=this.current.fillColor;let K=!1;this.current.patternFill&&(p.save(),p.fillStyle=A.getPattern(p,this,(0,_.getCurrentTransformInverse)(p),x.PathType.FILL),K=!0);const J=this.current.getClippedPathBoundingBox();this.contentVisible&&null!==J&&(this.pendingEOFill?(p.fill("evenodd"),this.pendingEOFill=!1):p.fill()),K&&p.restore(),b&&this.consumePath(J)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=ee}eoClip(){this.pendingClip=z}beginText(){this.current.textMatrix=t.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const b=this.pendingTextPaths,p=this.ctx;if(void 0!==b){p.save(),p.beginPath();for(const A of b)p.setTransform(...A.transform),p.translate(A.x,A.y),A.addToPath(p,A.fontSize);p.restore(),p.clip(),p.beginPath(),delete this.pendingTextPaths}else p.beginPath()}setCharSpacing(b){this.current.charSpacing=b}setWordSpacing(b){this.current.wordSpacing=b}setHScale(b){this.current.textHScale=b/100}setLeading(b){this.current.leading=-b}setFont(b,p){var Ne;const A=this.commonObjs.get(b),N=this.current;if(!A)throw new Error(`Can't find font for ${b}`);if(N.fontMatrix=A.fontMatrix||t.FONT_IDENTITY_MATRIX,(0===N.fontMatrix[0]||0===N.fontMatrix[3])&&(0,t.warn)("Invalid font matrix for font "+b),p<0?(p=-p,N.fontDirection=-1):N.fontDirection=1,this.current.font=A,this.current.fontSize=p,A.isType3Font)return;const J=(null==(Ne=A.systemFontInfo)?void 0:Ne.css)||`"${A.loadedName||"sans-serif"}", ${A.fallbackName}`;let ie="normal";A.black?ie="900":A.bold&&(ie="bold");const he=A.italic?"italic":"normal";let Oe=p;p<16?Oe=16:p>100&&(Oe=100),this.current.fontSizeScale=p/Oe,this.ctx.font=`${he} ${ie} ${Oe}px ${J}`}setTextRenderingMode(b){this.current.textRenderingMode=b}setTextRise(b){this.current.textRise=b}moveText(b,p){this.current.x=this.current.lineX+=b,this.current.y=this.current.lineY+=p}setLeadingMoveText(b,p){this.setLeading(-p),this.moveText(b,p)}setTextMatrix(b,p,A,N,K,J){this.current.textMatrix=[b,p,A,N,K,J],this.current.textMatrixScale=Math.hypot(b,p),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(b,p,A,N){const K=this.ctx,J=this.current,ie=J.font,he=J.textRenderingMode,Oe=J.fontSize/J.fontSizeScale,Ne=he&t.TextRenderingMode.FILL_STROKE_MASK,Ye=!!(he&t.TextRenderingMode.ADD_TO_PATH_FLAG),Qe=J.patternFill&&!ie.missingFile;let Ct;(ie.disableFontFace||Ye||Qe)&&(Ct=ie.getPathGenerator(this.commonObjs,b)),ie.disableFontFace||Qe?(K.save(),K.translate(p,A),K.beginPath(),Ct(K,Oe),N&&K.setTransform(...N),(Ne===t.TextRenderingMode.FILL||Ne===t.TextRenderingMode.FILL_STROKE)&&K.fill(),(Ne===t.TextRenderingMode.STROKE||Ne===t.TextRenderingMode.FILL_STROKE)&&K.stroke(),K.restore()):((Ne===t.TextRenderingMode.FILL||Ne===t.TextRenderingMode.FILL_STROKE)&&K.fillText(b,p,A),(Ne===t.TextRenderingMode.STROKE||Ne===t.TextRenderingMode.FILL_STROKE)&&K.strokeText(b,p,A)),Ye&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,_.getCurrentTransform)(K),x:p,y:A,fontSize:Oe,addToPath:Ct})}get isFontSubpixelAAEnabled(){const{context:b}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);b.scale(1.5,1),b.fillText("I",0,10);const p=b.getImageData(0,0,10,10).data;let A=!1;for(let N=3;N<p.length;N+=4)if(p[N]>0&&p[N]<255){A=!0;break}return(0,t.shadow)(this,"isFontSubpixelAAEnabled",A)}showText(b){const p=this.current,A=p.font;if(A.isType3Font)return this.showType3Text(b);const N=p.fontSize;if(0===N)return;const K=this.ctx,J=p.fontSizeScale,ie=p.charSpacing,he=p.wordSpacing,Oe=p.fontDirection,Ne=p.textHScale*Oe,Ye=b.length,Qe=A.vertical,Ct=Qe?1:-1,Ot=A.defaultVMetrics,ln=N*p.fontMatrix[0],Lt=p.textRenderingMode===t.TextRenderingMode.FILL&&!A.disableFontFace&&!p.patternFill;let Jt;if(K.save(),K.transform(...p.textMatrix),K.translate(p.x,p.y+p.textRise),K.scale(Ne,Oe>0?-1:1),p.patternFill){K.save();const yt=p.fillColor.getPattern(K,this,(0,_.getCurrentTransformInverse)(K),x.PathType.FILL);Jt=(0,_.getCurrentTransform)(K),K.restore(),K.fillStyle=yt}let Rt=p.lineWidth;const it=p.textMatrixScale;if(0===it||0===Rt){const yt=p.textRenderingMode&t.TextRenderingMode.FILL_STROKE_MASK;(yt===t.TextRenderingMode.STROKE||yt===t.TextRenderingMode.FILL_STROKE)&&(Rt=this.getSinglePixelWidth())}else Rt/=it;if(1!==J&&(K.scale(J,J),Rt/=J),K.lineWidth=Rt,A.isInvalidPDFjsFont){const yt=[];let ht=0;for(const ct of b)yt.push(ct.unicode),ht+=ct.width;return K.fillText(yt.join(""),0,0),p.x+=ht*ln*Ne,K.restore(),void this.compose()}let ut,_t=0;for(ut=0;ut<Ye;++ut){const yt=b[ut];if("number"==typeof yt){_t+=Ct*yt*N/1e3;continue}let ht=!1;const ct=(yt.isSpace?he:0)+ie,cn=yt.fontChar,gt=yt.accent;let at,St,sn=yt.width;if(Qe){const nt=yt.vmetric||Ot,mt=-(yt.vmetric?nt[1]:.5*sn)*ln;sn=nt?-nt[0]:sn,at=mt/J,St=(_t+nt[2]*ln)/J}else at=_t/J,St=0;if(A.remeasure&&sn>0){const nt=1e3*K.measureText(cn).width/N*J;if(sn<nt&&this.isFontSubpixelAAEnabled){const mt=sn/nt;ht=!0,K.save(),K.scale(mt,1),at/=mt}else sn!==nt&&(at+=(sn-nt)/2e3*N/J)}this.contentVisible&&(yt.isInFont||A.missingFile)&&(Lt&&!gt?K.fillText(cn,at,St):(this.paintChar(cn,at,St,Jt),gt&&this.paintChar(gt.fontChar,at+N*gt.offset.x/J,St-N*gt.offset.y/J,Jt))),_t+=Qe?sn*ln-ct*Oe:sn*ln+ct*Oe,ht&&K.restore()}Qe?p.y-=_t:p.x+=_t*Ne,K.restore(),this.compose()}showType3Text(b){const p=this.ctx,A=this.current,N=A.font,K=A.fontSize,J=A.fontDirection,ie=N.vertical?1:-1,he=A.charSpacing,Oe=A.wordSpacing,Ne=A.textHScale*J,Ye=A.fontMatrix||t.FONT_IDENTITY_MATRIX,Qe=b.length;let Ot,ln,Lt,Jt;if(A.textRenderingMode!==t.TextRenderingMode.INVISIBLE&&0!==K){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,p.save(),p.transform(...A.textMatrix),p.translate(A.x,A.y),p.scale(Ne,J),Ot=0;Ot<Qe;++Ot){if(ln=b[Ot],"number"==typeof ln){Jt=ie*ln*K/1e3,this.ctx.translate(Jt,0),A.x+=Jt*Ne;continue}const Rt=(ln.isSpace?Oe:0)+he,it=N.charProcOperatorList[ln.operatorListId];it?(this.contentVisible&&(this.processingType3=ln,this.save(),p.scale(K,K),p.transform(...Ye),this.executeOperatorList(it),this.restore()),Lt=t.Util.applyTransform([ln.width,0],Ye)[0]*K+Rt,p.translate(Lt,0),A.x+=Lt*Ne):(0,t.warn)(`Type3 character "${ln.operatorListId}" is not available.`)}p.restore(),this.processingType3=null}}setCharWidth(b,p){}setCharWidthAndBounds(b,p,A,N,K,J){this.ctx.rect(A,N,K-A,J-N),this.ctx.clip(),this.endPath()}getColorN_Pattern(b){let p;if("TilingPattern"===b[0]){const A=b[1],N=this.baseTransform||(0,_.getCurrentTransform)(this.ctx);p=new x.TilingPattern(b,A,this.ctx,{createCanvasGraphics:J=>new ge(J,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})},N)}else p=this._getPattern(b[1],b[2]);return p}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(b,p,A){const N=t.Util.makeHexColor(b,p,A);this.ctx.strokeStyle=N,this.current.strokeColor=N}setFillRGBColor(b,p,A){const N=t.Util.makeHexColor(b,p,A);this.ctx.fillStyle=N,this.current.fillColor=N,this.current.patternFill=!1}_getPattern(b){let A,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(b)?A=this.cachedPatterns.get(b):(A=(0,x.getShadingPattern)(this.getObject(b)),this.cachedPatterns.set(b,A)),p&&(A.matrix=p),A}shadingFill(b){if(!this.contentVisible)return;const p=this.ctx;this.save();const A=this._getPattern(b);p.fillStyle=A.getPattern(p,this,(0,_.getCurrentTransformInverse)(p),x.PathType.SHADING);const N=(0,_.getCurrentTransformInverse)(p);if(N){const{width:K,height:J}=p.canvas,[ie,he,Oe,Ne]=t.Util.getAxialAlignedBoundingBox([0,0,K,J],N);this.ctx.fillRect(ie,he,Oe-ie,Ne-he)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,t.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,t.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(b,p){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(b)&&6===b.length&&this.transform(...b),this.baseTransform=(0,_.getCurrentTransform)(this.ctx),p)&&(this.ctx.rect(p[0],p[1],p[2]-p[0],p[3]-p[1]),this.current.updateRectMinMax((0,_.getCurrentTransform)(this.ctx),p),this.clip(),this.endPath())}paintFormXObjectEnd(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(b){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const p=this.ctx;b.isolated||(0,t.info)("TODO: Support non-isolated groups."),b.knockout&&(0,t.warn)("Knockout groups not supported.");const A=(0,_.getCurrentTransform)(p);if(b.matrix&&p.transform(...b.matrix),!b.bbox)throw new Error("Bounding box is required.");let N=t.Util.getAxialAlignedBoundingBox(b.bbox,(0,_.getCurrentTransform)(p));N=t.Util.intersect(N,[0,0,p.canvas.width,p.canvas.height])||[0,0,0,0];const J=Math.floor(N[0]),ie=Math.floor(N[1]);let he=Math.max(Math.ceil(N[2])-J,1),Oe=Math.max(Math.ceil(N[3])-ie,1),Ne=1,Ye=1;he>S&&(Ne=he/S,he=S),Oe>S&&(Ye=Oe/S,Oe=S),this.current.startNewPathAndClipBox([0,0,he,Oe]);let Qe="groupAt"+this.groupLevel;b.smask&&(Qe+="_smask_"+this.smaskCounter++%2);const Ct=this.cachedCanvases.getCanvas(Qe,he,Oe),Ot=Ct.context;Ot.scale(1/Ne,1/Ye),Ot.translate(-J,-ie),Ot.transform(...A),b.smask?this.smaskStack.push({canvas:Ct.canvas,context:Ot,offsetX:J,offsetY:ie,scaleX:Ne,scaleY:Ye,subtype:b.smask.subtype,backdrop:b.smask.backdrop,transferMap:b.smask.transferMap||null,startTransformInverse:null}):(p.setTransform(1,0,0,1,0,0),p.translate(J,ie),p.scale(Ne,Ye),p.save()),f(p,Ot),this.ctx=Ot,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(p),this.groupLevel++}endGroup(b){if(!this.contentVisible)return;this.groupLevel--;const p=this.ctx,A=this.groupStack.pop();if(this.ctx=A,this.ctx.imageSmoothingEnabled=!1,b.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const N=(0,_.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...N);const K=t.Util.getAxialAlignedBoundingBox([0,0,p.canvas.width,p.canvas.height],N);this.ctx.drawImage(p.canvas,0,0),this.ctx.restore(),this.compose(K)}}beginAnnotation(b,p,A,N,K){if(bn(this,ve,SE).call(this),T(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(p)&&4===p.length){const J=p[2]-p[0],ie=p[3]-p[1];if(K&&this.annotationCanvasMap){(A=A.slice())[4]-=p[0],A[5]-=p[1],(p=p.slice())[0]=p[1]=0,p[2]=J,p[3]=ie;const[he,Oe]=t.Util.singularValueDecompose2dScale((0,_.getCurrentTransform)(this.ctx)),{viewportScale:Ne}=this,Ye=Math.ceil(J*this.outputScaleX*Ne),Qe=Math.ceil(ie*this.outputScaleY*Ne);this.annotationCanvas=this.canvasFactory.create(Ye,Qe);const{canvas:Ct,context:Ot}=this.annotationCanvas;this.annotationCanvasMap.set(b,Ct),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Ot,this.ctx.save(),this.ctx.setTransform(he,0,0,-Oe,0,ie*Oe),T(this.ctx)}else T(this.ctx),this.ctx.rect(p[0],p[1],J,ie),this.ctx.clip(),this.endPath()}this.current=new j(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...A),this.transform(...N)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),bn(this,Re,CE).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(b){if(!this.contentVisible)return;const p=b.count;(b=this.getObject(b.data,b)).count=p;const A=this.ctx,N=this.processingType3;if(N&&(void 0===N.compiled&&(N.compiled=function R(O){const{width:b,height:p}=O;if(b>1e3||p>1e3)return null;const N=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),K=b+1;let ie,he,Oe,J=new Uint8Array(K*(p+1));const Ne=b+7&-8;let Ye=new Uint8Array(Ne*p),Qe=0;for(const Jt of O.data){let Rt=128;for(;Rt>0;)Ye[Qe++]=Jt&Rt?0:255,Rt>>=1}let Ct=0;for(Qe=0,0!==Ye[Qe]&&(J[0]=1,++Ct),he=1;he<b;he++)Ye[Qe]!==Ye[Qe+1]&&(J[he]=Ye[Qe]?2:1,++Ct),Qe++;for(0!==Ye[Qe]&&(J[he]=2,++Ct),ie=1;ie<p;ie++){Qe=ie*Ne,Oe=ie*K,Ye[Qe-Ne]!==Ye[Qe]&&(J[Oe]=Ye[Qe]?1:8,++Ct);let Jt=(Ye[Qe]?4:0)+(Ye[Qe-Ne]?8:0);for(he=1;he<b;he++)Jt=(Jt>>2)+(Ye[Qe+1]?4:0)+(Ye[Qe-Ne+1]?8:0),N[Jt]&&(J[Oe+he]=N[Jt],++Ct),Qe++;if(Ye[Qe-Ne]!==Ye[Qe]&&(J[Oe+he]=Ye[Qe]?2:4,++Ct),Ct>1e3)return null}for(Qe=Ne*(p-1),Oe=ie*K,0!==Ye[Qe]&&(J[Oe]=8,++Ct),he=1;he<b;he++)Ye[Qe]!==Ye[Qe+1]&&(J[Oe+he]=Ye[Qe]?4:8,++Ct),Qe++;if(0!==Ye[Qe]&&(J[Oe+he]=4,++Ct),Ct>1e3)return null;const Ot=new Int32Array([0,K,-1,0,-K,0,0,0,1]),ln=new Path2D;for(ie=0;Ct&&ie<=p;ie++){let Jt=ie*K;const Rt=Jt+b;for(;Jt<Rt&&!J[Jt];)Jt++;if(Jt===Rt)continue;ln.moveTo(Jt%K,ie);const it=Jt;let _t=J[Jt];do{const ut=Ot[_t];do{Jt+=ut}while(!J[Jt]);const yt=J[Jt];5!==yt&&10!==yt?(_t=yt,J[Jt]=0):(_t=yt&51*_t>>
14,J[Jt]&=_t>>2|_t<<2),ln.lineTo(Jt%K,Jt/K|0),J[Jt]||--Ct}while(it!==Jt);--ie}return Ye=null,J=null,function(Jt){Jt.save(),Jt.scale(1/b,-1/p),Jt.translate(0,-p),Jt.fill(ln),Jt.beginPath(),Jt.restore()}}(b)),N.compiled))return void N.compiled(A);const K=this._createMaskCanvas(b),J=K.canvas;A.save(),A.setTransform(1,0,0,1,0,0),A.drawImage(J,K.offsetX,K.offsetY),A.restore(),this.compose()}paintImageMaskXObjectRepeat(b,p){let A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,N=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,K=arguments.length>4?arguments[4]:void 0,J=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;b=this.getObject(b.data,b);const ie=this.ctx;ie.save();const he=(0,_.getCurrentTransform)(ie);ie.transform(p,A,N,K,0,0);const Oe=this._createMaskCanvas(b);ie.setTransform(1,0,0,1,Oe.offsetX-he[4],Oe.offsetY-he[5]);for(let Ne=0,Ye=J.length;Ne<Ye;Ne+=2){const Qe=t.Util.transform(he,[p,A,N,K,J[Ne],J[Ne+1]]),[Ct,Ot]=t.Util.applyTransform([0,0],Qe);ie.drawImage(Oe.canvas,Ct,Ot)}ie.restore(),this.compose()}paintImageMaskXObjectGroup(b){if(!this.contentVisible)return;const p=this.ctx,A=this.current.fillColor,N=this.current.patternFill;for(const K of b){const{data:J,width:ie,height:he,transform:Oe}=K,Ne=this.cachedCanvases.getCanvas("maskCanvas",ie,he),Ye=Ne.context;Ye.save(),V(Ye,this.getObject(J,K)),Ye.globalCompositeOperation="source-in",Ye.fillStyle=N?A.getPattern(Ye,this,(0,_.getCurrentTransformInverse)(p),x.PathType.FILL):A,Ye.fillRect(0,0,ie,he),Ye.restore(),p.save(),p.transform(...Oe),p.scale(1,-1),v(p,Ne.canvas,0,0,ie,he,0,-1,1,1),p.restore()}this.compose()}paintImageXObject(b){if(!this.contentVisible)return;const p=this.getObject(b);p?this.paintInlineImageXObject(p):(0,t.warn)("Dependent image isn't ready yet")}paintImageXObjectRepeat(b,p,A,N){if(!this.contentVisible)return;const K=this.getObject(b);if(!K)return void(0,t.warn)("Dependent image isn't ready yet");const J=K.width,ie=K.height,he=[];for(let Oe=0,Ne=N.length;Oe<Ne;Oe+=2)he.push({transform:[p,0,0,A,N[Oe],N[Oe+1]],x:0,y:0,w:J,h:ie});this.paintInlineImageXObjectGroup(K,he)}applyTransferMapsToCanvas(b){return"none"!==this.current.transferMaps&&(b.filter=this.current.transferMaps,b.drawImage(b.canvas,0,0),b.filter="none"),b.canvas}applyTransferMapsToBitmap(b){if("none"===this.current.transferMaps)return b.bitmap;const{bitmap:p,width:A,height:N}=b,K=this.cachedCanvases.getCanvas("inlineImage",A,N),J=K.context;return J.filter=this.current.transferMaps,J.drawImage(p,0,0),J.filter="none",K.canvas}paintInlineImageXObject(b){if(!this.contentVisible)return;const p=b.width,A=b.height,N=this.ctx;if(this.save(),!t.isNodeJS){const{filter:ie}=N;"none"!==ie&&""!==ie&&(N.filter="none")}let K;if(N.scale(1/p,-1/A),b.bitmap)K=this.applyTransferMapsToBitmap(b);else if("function"==typeof HTMLElement&&b instanceof HTMLElement||!b.data)K=b;else{const he=this.cachedCanvases.getCanvas("inlineImage",p,A).context;M(he,b),K=this.applyTransferMapsToCanvas(he)}const J=this._scaleImage(K,(0,_.getCurrentTransformInverse)(N));N.imageSmoothingEnabled=k((0,_.getCurrentTransform)(N),b.interpolate),v(N,J.img,0,0,J.paintWidth,J.paintHeight,0,-A,p,A),this.compose(),this.restore()}paintInlineImageXObjectGroup(b,p){if(!this.contentVisible)return;const A=this.ctx;let N;if(b.bitmap)N=b.bitmap;else{const he=this.cachedCanvases.getCanvas("inlineImage",b.width,b.height).context;M(he,b),N=this.applyTransferMapsToCanvas(he)}for(const K of p)A.save(),A.transform(...K.transform),A.scale(1,-1),v(A,N,K.x,K.y,K.w,K.h,0,-1,1,1),A.restore();this.compose()}paintSolidColorImageMask(){!this.contentVisible||(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(b){}markPointProps(b,p){}beginMarkedContent(b){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(b,p){this.markedContentStack.push("OC"===b?{visible:this.optionalContentConfig.isVisible(p)}:{visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(b){const p=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(b);const A=this.ctx;this.pendingClip&&(p||(this.pendingClip===z?A.clip("evenodd"):A.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),A.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const b=(0,_.getCurrentTransform)(this.ctx);if(0===b[1]&&0===b[2])this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(b[0]),Math.abs(b[3]));else{const p=Math.abs(b[0]*b[3]-b[2]*b[1]),A=Math.hypot(b[0],b[2]),N=Math.hypot(b[1],b[3]);this._cachedGetSinglePixelWidth=Math.max(A,N)/p}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(-1===this._cachedScaleForStroking[0]){const{lineWidth:b}=this.current,{a:p,b:A,c:N,d:K}=this.ctx.getTransform();let J,ie;if(0===A&&0===N){const he=Math.abs(p),Oe=Math.abs(K);if(he===Oe)if(0===b)J=ie=1/he;else{const Ne=he*b;J=ie=Ne<1?1/Ne:1}else if(0===b)J=1/he,ie=1/Oe;else{const Ne=he*b,Ye=Oe*b;J=Ne<1?1/Ne:1,ie=Ye<1?1/Ye:1}}else{const he=Math.abs(p*K-A*N),Oe=Math.hypot(p,A),Ne=Math.hypot(N,K);if(0===b)J=Ne/he,ie=Oe/he;else{const Ye=b*he;J=Ne>Ye?Ne/Ye:1,ie=Oe>Ye?Oe/Ye:1}}this._cachedScaleForStroking[0]=J,this._cachedScaleForStroking[1]=ie}return this._cachedScaleForStroking}rescaleAndStroke(b){const{ctx:p}=this,{lineWidth:A}=this.current,[N,K]=this.getScaleForStroking();if(p.lineWidth=A||1,1===N&&1===K)return void p.stroke();const J=p.getLineDash();if(b&&p.save(),p.scale(N,K),J.length>0){const ie=Math.max(N,K);p.setLineDash(J.map(he=>he/ie)),p.lineDashOffset/=ie}
vendor: 4,899 bytes, line 1
1p.stroke(),b&&p.restore()}isContentVisible(){for(let b=this.markedContentStack.length-1;b>=0;b--)if(!this.markedContentStack[b].visible)return!1;return!0}};let oe=ge;ve=new WeakSet,SE=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},Re=new WeakSet,CE=function(){if(this.pageColors){const b=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==b){const p=this.ctx.filter;this.ctx.filter=b,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=p}}},q.CanvasGraphics=oe;for(const O in t.OPS)void 0!==oe.prototype[O]&&(oe.prototype[t.OPS[O]]=oe.prototype[O])},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.TilingPattern=q.PathType=void 0,q.getShadingPattern=function L(R){switch(R[0]){case"RadialAxial":return new Q(R);case"Mesh":return new P(R);case"Dummy":return new C}throw new Error(`Unknown IR type: ${R[0]}`)},c(2);var t=c(1),_=c(168);const x={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function re(R,j){if(!j)return;const M=j[2]-j[0],V=j[3]-j[1],f=new Path2D;f.rect(j[0],j[1],M,V),R.clip(f)}q.PathType=x;class te{constructor(){this.constructor===te&&(0,t.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,t.unreachable)("Abstract method `getPattern` called.")}}class Q extends te{constructor(j){super(),this._type=j[1],this._bbox=j[2],this._colorStops=j[3],this._p0=j[4],this._p1=j[5],this._r0=j[6],this._r1=j[7],this.matrix=null}_createGradient(j){let M;"axial"===this._type?M=j.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(M=j.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const V of this._colorStops)M.addColorStop(V[0],V[1]);return M}getPattern(j,M,V,f){let T;if(f===x.STROKE||f===x.FILL){const Z=M.current.getClippedPathBoundingBox(f,(0,_.getCurrentTransform)(j))||[0,0,0,0],G=Math.ceil(Z[2]-Z[0])||1,$=Math.ceil(Z[3]-Z[1])||1,se=M.cachedCanvases.getCanvas("pattern",G,$,!0),y=se.context;y.clearRect(0,0,y.canvas.width,y.canvas.height),y.beginPath(),y.rect(0,0,y.canvas.width,y.canvas.height),y.translate(-Z[0],-Z[1]),V=t.Util.transform(V,[1,0,0,1,Z[0],Z[1]]),y.transform(...M.baseTransform),this.matrix&&y.transform(...this.matrix),re(y,this._bbox),y.fillStyle=this._createGradient(y),y.fill(),T=j.createPattern(se.canvas,"no-repeat");const k=new DOMMatrix(V);T.setTransform(k)}else re(j,this._bbox),T=this._createGradient(j);return T}}function S(R,j,M,V,f,T,Z,G){const $=j.coords,se=j.colors,y=R.data,k=4*R.width;let I;$[M+1]>$[V+1]&&(I=M,M=V,V=I,I=T,T=Z,Z=I),$[V+1]>$[f+1]&&(I=V,V=f,f=I,I=Z,Z=G,G=I),$[M+1]>$[V+1]&&(I=M,M=V,V=I,I=T,T=Z,Z=I);const H=($[M]+j.offsetX)*j.scaleX,ee=($[M+1]+j.offsetY)*j.scaleY,z=($[V]+j.offsetX)*j.scaleX,oe=($[V+1]+j.offsetY)*j.scaleY,ve=($[f]+j.offsetX)*j.scaleX,We=($[f+1]+j.offsetY)*j.scaleY;if(ee>=We)return;const Re=se[T],He=se[T+1],ge=se[T+2],O=se[Z],b=se[Z+1],p=se[Z+2],A=se[G],N=se[G+1],K=se[G+2],J=Math.round(ee),ie=Math.round(We);let he,Oe,Ne,Ye,Qe,Ct,Ot,ln;for(let Lt=J;Lt<=ie;Lt++){if(Lt<oe){const ut=Lt<ee?0:(ee-Lt)/(ee-oe);he=H-(H-z)*ut,Oe=Re-(Re-O)*ut,Ne=He-(He-b)*ut,Ye=ge-(ge-p)*ut}else{let ut;ut=Lt>We?1:oe===We?0:(oe-Lt)/(oe-We),he=z-(z-ve)*ut,Oe=O-(O-A)*ut,Ne=b-(b-N)*ut,Ye=p-(p-K)*ut}let Jt;Jt=Lt<ee?0:Lt>We?1:(ee-Lt)/(ee-We),Qe=H-(H-ve)*Jt,Ct=Re-(Re-A)*Jt,Ot=He-(He-N)*Jt,ln=ge-(ge-K)*Jt;const Rt=Math.round(Math.min(he,Qe)),it=Math.round(Math.max(he,Qe));let _t=k*Lt+4*Rt;for(let ut=Rt;ut<=it;ut++)Jt=(he-ut)/(he-Qe),Jt<0?Jt=0:Jt>1&&(Jt=1),y[_t++]=Oe-(Oe-Ct)*Jt|0,y[_t++]=Ne-(Ne-Ot)*Jt|0,y[_t++]=Ye-(Ye-ln)*Jt|0,y[_t++]=255}}function W(R,j,M){const V=j.coords,f=j.colors;let T,Z;switch(j.type){case"lattice":const G=j.verticesPerRow,$=Math.floor(V.length/G)-1,se=G-1;for(T=0;T<$;T++){let y=T*G;for(let k=0;k<se;k++,y++)S(R,M,V[y],V[y+1],V[y+G],f[y],f[y+1],f[y+G]),S(R,M,V[y+G+1],V[y+1],V[y+G],f[y+G+1],f[y+1],f[y+G])}break;case"triangles":for(T=0,Z=V.length;T<Z;T+=3)S(R,M,V[T],V[T+1],V[T+2],f[T],f[T+1],f[T+2]);break;default:throw new Error("illegal figure")}}class P extends te{constructor(j){super(),this._coords=j[2],this._colors=j[3],this._figures=j[4],this._bounds=j[5],this._bbox=j[7],this._background=j[8],this.matrix=null}_createMeshCanvas(j,M,V){const G=Math.floor(this._bounds[0]),$=Math.floor(this._bounds[1]),se=Math.ceil(this._bounds[2])-G,y=Math.ceil(this._bounds[3])-$,k=Math.min(Math.ceil(Math.abs(se*j[0]*1.1)),3e3),I=Math.min(Math.ceil(Math.abs(y*j[1]*1.1)),3e3),H=se/k,ee=y/I,z={coords:this._coords,colors:this._colors,offsetX:-G,offsetY:-$,scaleX:1/H,scaleY:1/ee},We=V.getCanvas("mesh",k+4,I+4,!1),Re=We.context,He=Re.createImageData(k,I);if(M){const O=He.data;for(let b=0,p=O.length;b<p;
1b+=4)O[b]=M[0],O[b+1]=M[1],O[b+2]=M[2],O[b+3]=255}for(const O of this._figures)W(He,O,z);return Re.putImageData(He,2,2),{canvas:We.canvas,offsetX:G-2*H,offsetY:$-2*ee,scaleX:H,scaleY:ee}}getPattern(j,M,V,f){let T;if(re(j,this._bbox),f===x.SHADING)T=t.Util.singularValueDecompose2dScale((0,_.getCurrentTransform)(j));else if(T=t.Util.singularValueDecompose2dScale(M.baseTransform),this.matrix){const G=t.Util.singularValueDecompose2dScale(this.matrix);T=[T[0]*G[0],T[1]*G[1]]}const Z=this._createMeshCanvas(T,f===x.SHADING?null:this._background,M.cachedCanvases);return f!==x.SHADING&&(j.setTransform(...M.baseTransform),this.matrix&&j.transform(...this.matrix)),j.translate(Z.offsetX,Z.offsetY),j.scale(Z.scaleX,Z.scaleY),j.createPattern(Z.canvas,"no-repeat")}}class C extends te{getPattern(){return"hotpink"}}const v=class{constructor(j,M,V,f,T){this.operatorList=j[2],this.matrix=j[3]||[1,0,0,1,0,0],this.bbox=j[4],this.xstep=j[5],this.ystep=j[6],this.paintType=j[7],this.tilingType=j[8],this.color=M,this.ctx=V,this.canvasGraphicsFactory=f,this.baseTransform=T}createPatternCanvas(j){const M=this.operatorList,V=this.bbox,f=this.xstep,T=this.ystep,Z=this.paintType,$=this.color,se=this.canvasGraphicsFactory;(0,t.info)("TilingType: "+this.tilingType);const y=V[0],k=V[1],I=V[2],H=V[3],ee=t.Util.singularValueDecompose2dScale(this.matrix),z=t.Util.singularValueDecompose2dScale(this.baseTransform),oe=[ee[0]*z[0],ee[1]*z[1]],ve=this.getSizeAndScale(f,this.ctx.canvas.width,oe[0]),We=this.getSizeAndScale(T,this.ctx.canvas.height,oe[1]),Re=j.cachedCanvases.getCanvas("pattern",ve.size,We.size,!0),He=Re.context,ge=se.createCanvasGraphics(He);ge.groupLevel=j.groupLevel,this.setFillAndStrokeStyleToContext(ge,Z,$);let O=y,b=k,p=I,A=H;return y<0&&(O=0,p+=Math.abs(y)),k<0&&(b=0,A+=Math.abs(k)),He.translate(-ve.scale*O,-We.scale*b),ge.transform(ve.scale,0,0,We.scale,0,0),He.save(),this.clipBbox(ge,O,b,p,A),ge.baseTransform=(0,_.getCurrentTransform)(ge.ctx),ge.executeOperatorList(M),ge.endDrawing(),{canvas:Re.canvas,scaleX:ve.scale,scaleY:We.scale,offsetX:O,offsetY:b}}getSizeAndScale(j,M,V){j=Math.abs(j);const f=Math.max(v.MAX_PATTERN_SIZE,M);let T=Math.ceil(j*V);return T>=f?T=f:V=T/j,{scale:V,size:T}}clipBbox(j,M,V,f,T){j.ctx.rect(M,V,f-M,T-V),j.current.updateRectMinMax((0,_.getCurrentTransform)(j.ctx),[M,V,f,T]),j.clip(),j.endPath()}setFillAndStrokeStyleToContext(j,M,V){const f=j.ctx,T=j.current;switch(M){case 1:const Z=this.ctx;f.fillStyle=Z.fillStyle,f.strokeStyle=Z.strokeStyle,T.fillColor=Z.fillStyle,T.strokeColor=Z.strokeStyle;break;case 2:const G=t.Util.makeHexColor(V[0],V[1],V[2]);f.fillStyle=G,f.strokeStyle=G,T.fillColor=G,T.strokeColor=G;break;default:throw new t.FormatError(`Unsupported paint type: ${M}`)}}getPattern(j,M,V,f){let T=V;f!==x.SHADING&&(T=t.Util.transform(T,M.baseTransform),this.matrix&&(T=t.Util.transform(T,this.matrix)));const Z=this.createPatternCanvas(M);let G=new DOMMatrix(T);G=G.translate(Z.offsetX,Z.offsetY),G=G.scale(1/Z.scaleX,1/Z.scaleY);const $=j.createPattern(Z.canvas,"repeat");return $.setTransform(G),$}};let m=v;ys(m,"MAX_PATTERN_SIZE",3e3),q.TilingPattern=m},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.convertBlackAndWhiteToRGBA=x,q.convertToRGBA=function _(Q){switch(Q.kind){case t.ImageKind.GRAYSCALE_1BPP:return x(Q);case t.ImageKind.RGB_24BPP:return function re(Q){let{src:S,srcPos:W=0,dest:P,destPos:C=0}=Q,m=0;const v=S.length>>2,R=new Uint32Array(S.buffer,W,v);if(t.FeatureTest.isLittleEndian){for(;m<v-2;m+=3,C+=4){const j=R[m],M=R[m+1],V=R[m+2];P[C]=4278190080|j,P[C+1]=j>>>24|M<<8|4278190080,P[C+2]=M>>>16|V<<16|4278190080,P[C+3]=V>>>8|4278190080}for(let j=4*m,M=S.length;j<M;j+=3)P[C++]=S[j]|S[j+1]<<8|S[j+2]<<16|4278190080}else{for(;m<v-2;m+=3,C+=4){const j=R[m],M=R[m+1],V=R[m+2];P[C]=255|j,P[C+1]=j<<24|M>>>8|255,P[C+2]=M<<16|V>>>16|255,P[C+3]=V<<8|255}for(let j=4*m,M=S.length;j<M;j+=3)P[C++]=S[j]<<24|S[j+1]<<16|S[j+2]<<8|255}return{srcPos:W,destPos:C}}(Q)}return null},q.grayToRGBA=function te(Q,S){if(t.FeatureTest.isLittleEndian)for(let W=0,P=Q.length;W<P;W++)S[W]=65793*Q[W]|4278190080;else for(let W=0,P=Q.length;W<P;W++)S[W]=16843008*Q[W]|255},c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123);var t=c(1);function x(Q){let{src:S,srcPos:W=0,dest:P,width:C,height:L,nonBlackColor:E=4294967295,inverseDecode:m=!1}=Q;const v=t.FeatureTest.isLittleEndian?4278190080:255,[R,j]=m?[E,v]:[v,E],M=C>>3,V=7&C,f=S.length;P=new Uint32Array(P.buffer);let T=0;for(let Z=0;Z<L;Z++){for(const $=W+M;W<$;W++){const se=W<f?S[W]:255;P[T++]=128&se?j:R,P[T++]=64&se?j:R,P[T++]=32&se?j:R,P[T++]=16&se?j:R,P[T++]=8&se?j:R,P[T++]=4&se?j:R,P[T++]=2&se?j:R,P[T++]=1&se?j:R}if(0===V)continue;const G=W<f?S[W++]:255;for(let $=0;$<V;$++)P[T++]=G&1<<7-$?j:R}return{srcPos:W,destPos:T}}},(xe,q)=>
1{Object.defineProperty(q,"__esModule",{value:!0}),q.GlobalWorkerOptions=void 0;const c=Object.create(null);q.GlobalWorkerOptions=c,c.workerPort=null,c.workerSrc=""},(xe,q,c)=>{var Q,tT,W,nT,C,gy;Object.defineProperty(q,"__esModule",{value:!0}),q.MessageHandler=void 0,c(2);var t=c(1);function re(E){switch(E instanceof Error||"object"==typeof E&&null!==E||(0,t.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),E.name){case"AbortException":return new t.AbortException(E.message);case"MissingPDFException":return new t.MissingPDFException(E.message);case"PasswordException":return new t.PasswordException(E.message,E.code);case"UnexpectedResponseException":return new t.UnexpectedResponseException(E.message,E.status);case"UnknownErrorException":return new t.UnknownErrorException(E.message,E.details);default:return new t.UnknownErrorException(E.message,E.toString())}}Q=new WeakSet,tT=function(m){const v=m.streamId,R=this.sourceName,j=m.sourceName,M=this.comObj,V=this,f=this.actionHandler[m.action],T={enqueue(Z){let $=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const se=this.desiredSize;this.desiredSize-=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,se>0&&this.desiredSize<=0&&(this.sinkCapability=new t.PromiseCapability,this.ready=this.sinkCapability.promise),M.postMessage({sourceName:R,targetName:j,stream:4,streamId:v,chunk:Z},$)},close(){this.isCancelled||(this.isCancelled=!0,M.postMessage({sourceName:R,targetName:j,stream:3,streamId:v}),delete V.streamSinks[v])},error(Z){(0,t.assert)(Z instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,M.postMessage({sourceName:R,targetName:j,stream:5,streamId:v,reason:re(Z)}))},sinkCapability:new t.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:m.desiredSize,ready:null};T.sinkCapability.resolve(),T.ready=T.sinkCapability.promise,this.streamSinks[v]=T,new Promise(function(Z){Z(f(m.data,T))}).then(function(){M.postMessage({sourceName:R,targetName:j,stream:8,streamId:v,success:!0})},function(Z){M.postMessage({sourceName:R,targetName:j,stream:8,streamId:v,reason:re(Z)})})},W=new WeakSet,nT=function(m){const v=m.streamId,R=this.sourceName,j=m.sourceName,M=this.comObj,V=this.streamControllers[v],f=this.streamSinks[v];switch(m.stream){case 8:m.success?V.startCall.resolve():V.startCall.reject(re(m.reason));break;case 7:m.success?V.pullCall.resolve():V.pullCall.reject(re(m.reason));break;case 6:if(!f){M.postMessage({sourceName:R,targetName:j,stream:7,streamId:v,success:!0});break}f.desiredSize<=0&&m.desiredSize>0&&f.sinkCapability.resolve(),f.desiredSize=m.desiredSize,new Promise(function(T){var Z;T(null==(Z=f.onPull)?void 0:Z.call(f))}).then(function(){M.postMessage({sourceName:R,targetName:j,stream:7,streamId:v,success:!0})},function(T){M.postMessage({sourceName:R,targetName:j,stream:7,streamId:v,reason:re(T)})});break;case 4:if((0,t.assert)(V,"enqueue should have stream controller"),V.isClosed)break;V.controller.enqueue(m.chunk);break;case 3:if((0,t.assert)(V,"close should have stream controller"),V.isClosed)break;V.isClosed=!0,V.controller.close(),bn(this,C,gy).call(this,V,v);break;case 5:(0,t.assert)(V,"error should have stream controller"),V.controller.error(re(m.reason)),bn(this,C,gy).call(this,V,v);break;case 2:m.success?V.cancelCall.resolve():V.cancelCall.reject(re(m.reason)),bn(this,C,gy).call(this,V,v);break;case 1:if(!f)break;new Promise(function(T){var Z;T(null==(Z=f.onCancel)?void 0:Z.call(f,re(m.reason)))}).then(function(){M.postMessage({sourceName:R,targetName:j,stream:2,streamId:v,success:!0})},function(T){M.postMessage({sourceName:R,targetName:j,stream:2,streamId:v,reason:re(T)})}),f.sinkCapability.reject(re(m.reason)),f.isCancelled=!0,delete this.streamSinks[v];break;default:throw new Error("Unexpected stream case")}},C=new WeakSet,gy=function(m,v){var R=this;return _asyncToGenerator(function*(){var j,M,V;yield Promise.allSettled([null==(j=m.startCall)?void 0:j.promise,null==(M=m.pullCall)?void 0:M.promise,null==(V=m.cancelCall)?void 0:V.promise]),delete R.streamControllers[v]})()},q.MessageHandler=class te{constructor(m,v,R){dn(this,Q),dn(this,W),dn(this,C),this.sourceName=m,this.targetName=v,this.comObj=R,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=j=>{const M=j.data;if(M.targetName!==this.sourceName)return;if(M.stream)return void bn(this,W,nT).call(this,M);if(M.callback){const f=M.callbackId,T=this.callbackCapabilities[f];if(!T)throw new Error(`Cannot resolve callback ${f}`);if(delete this.callbackCapabilities[f],1===M.callback)T.resolve(M.data);else{if(2!==M.callback)throw new Error("Unexpected callback case");T.reject(re(M.reason))}return}const V=this.actionHandler[M.action];if(!V)throw new Error(`Unknown action from worker: ${M.action}`);if(M.callbackId){const f=this.sourceName,T=M.sourceName;new Promise(function(Z){Z(V(M.data))}).then(function(Z){R.postMessage({sourceName:f,targetName:T,callback:1,callbackId:M.callbackId,data:Z})},function(Z){R.postMessage({sourceName:f,targetName:T,callback:2,callbackId:M.callbackId,reason:re(Z)})})}else M.streamId?bn(this,Q,tT).call(this,M):V(M.data)},R.addEventListener("message",this._onComObjOnMessage)}on(m,v){const R=this.actionHandler;
1if(R[m])throw new Error(`There is already an actionName called "${m}"`);R[m]=v}send(m,v,R){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:m,data:v},R)}sendWithPromise(m,v,R){const j=this.callbackId++,M=new t.PromiseCapability;this.callbackCapabilities[j]=M;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:m,callbackId:j,data:v},R)}catch(V){M.reject(V)}return M.promise}sendWithStream(m,v,R,j){const M=this.streamId++,V=this.sourceName,f=this.targetName,T=this.comObj;return new ReadableStream({start:Z=>{const G=new t.PromiseCapability;return this.streamControllers[M]={controller:Z,startCall:G,pullCall:null,cancelCall:null,isClosed:!1},T.postMessage({sourceName:V,targetName:f,action:m,streamId:M,data:v,desiredSize:Z.desiredSize},j),G.promise},pull:Z=>{const G=new t.PromiseCapability;return this.streamControllers[M].pullCall=G,T.postMessage({sourceName:V,targetName:f,stream:6,streamId:M,desiredSize:Z.desiredSize}),G.promise},cancel:Z=>{(0,t.assert)(Z instanceof Error,"cancel must have a valid reason");const G=new t.PromiseCapability;return this.streamControllers[M].cancelCall=G,this.streamControllers[M].isClosed=!0,T.postMessage({sourceName:V,targetName:f,stream
1:1,streamId:M,reason:re(Z)}),G.promise}},R)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(xe,q,c)=>{var x,re;Object.defineProperty(q,"__esModule",{value:!0}),q.Metadata=void 0;var t=c(1);x=new WeakMap,re=new WeakMap,q.Metadata=class _{constructor(Q){dn(this,x,void 0),dn(this,re,void 0);let{parsedData:S,rawData:W}=Q;Vn(this,x,S),Vn(this,re,W)}getRaw(){return Fe(this,re)}get(Q){var S;return null!=(S=Fe(this,x).get(Q))?S:null}getAll(){return(0,t.objectFromMap)(Fe(this,x))}has(Q){return Fe(this,x).has(Q)}}},(xe,q,c)=>{var Q,S,W,P,C,L,TE;Object.defineProperty(q,"__esModule",{value:!0}),q.OptionalContentConfig=void 0;var t=c(1),_=c(170);const x=Symbol("INTERNAL");class re{constructor(v,R){dn(this,Q,!0),this.name=v,this.intent=R}get visible(){return Fe(this,Q)}_setVisible(v,R){v!==x&&(0,t.unreachable)("Internal method `_setVisible` called."),Vn(this,Q,R)}}Q=new WeakMap,S=new WeakMap,W=new WeakMap,P=new WeakMap,C=new WeakMap,L=new WeakSet,TE=function(v){const R=v.length;if(R<2)return!0;const j=v[0];for(let M=1;M<R;M++){const V=v[M];let f;if(Array.isArray(V))f=bn(this,L,TE).call(this,V);else{if(!Fe(this,W).has(V))return(0,t.warn)(`Optional content group not found: ${V}`),!0;f=Fe(this,W).get(V).visible}switch(j){case"And":if(!f)return!1;break;case"Or":if(f)return!0;break;case"Not":return!f;default:return!0}}return"And"===j},q.OptionalContentConfig=class te{constructor(v){if(dn(this,L),dn(this,S,null),dn(this,W,new Map),dn(this,P,null),dn(this,C,null),this.name=null,this.creator=null,null!==v){this.name=v.name,this.creator=v.creator,Vn(this,C,v.order);for(const R of v.groups)Fe(this,W).set(R.id,new re(R.name,R.intent));if("OFF"===v.baseState)for(const R of Fe(this,W).values())R._setVisible(x,!1);for(const R of v.on)Fe(this,W).get(R)._setVisible(x,!0);for(const R of v.off)Fe(this,W).get(R)._setVisible(x,!1);Vn(this,P,this.getHash())}}isVisible(v){if(0===Fe(this,W).size)return!0;if(!v)return(0,t.warn)("Optional content group not defined."),!0;if("OCG"===v.type)return Fe(this,W).has(v.id)?Fe(this,W).get(v.id).visible:((0,t.warn)(`Optional content group not found: ${v.id}`),!0);if("OCMD"===v.type){if(v.expression)return bn(this,L,TE).call(this,v.expression);if(!v.policy||"AnyOn"===v.policy){for(const R of v.ids){if(!Fe(this,W).has(R))return(0,t.warn)(`Optional content group not found: ${R}`),!0;if(Fe(this,W).get(R).visible)return!0}return!1}if("AllOn"===v.policy){for(const R of v.ids){if(!Fe(this,W).has(R))return(0,t.warn)(`Optional content group not found: ${R}`),!0;if(!Fe(this,W).get(R).visible)return!1}return!0}if("AnyOff"===v.policy){for(const R of v.ids){if(!Fe(this,W).has(R))return(0,t.warn)(`Optional content group not found: ${R}`),!0;if(!Fe(this,W).get(R).visible)return!0}return!1}if("AllOff"===v.policy){for(const R of v.ids){if(!Fe(this,W).has(R))return(0,t.warn)(`Optional content group not found: ${R}`),!0;if(Fe(this,W).get(R).visible)return!1}return!0}return(0,t.warn)(`Unknown optional content policy ${v.policy}.`),!0}return(0,t.warn)(`Unknown group type ${v.type}.`),!0}setVisibility(v){let R=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Fe(this,W).has(v)?(Fe(this,W).get(v)._setVisible(x,!!R),Vn(this,S,null)):(0,t.warn)(`Optional content group not found: ${v}`)}get hasInitialVisibility(){return null===Fe(this,P)||this.getHash()===Fe(this,P)}getOrder(){return Fe(this,W).size?Fe(this,C)?Fe(this,C).slice():[...Fe(this,W).keys()]:null}getGroups(){return Fe(this,W).size>0?(0,t.objectFromMap)(Fe(this,W)):null}getGroup(v){return Fe(this,W).get(v)||null}getHash(){if(null!==Fe(this,S))return Fe(this,S);const v=new _.MurmurHash3_64;for(const[R,j]of Fe(this,W))v.update(`${R}:${j.visible}`);return Vn(this,S,v.hexdigest())}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFDataTransportStream=void 0,c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(89);var t=c(1),_=c(168);q.PDFDataTransportStream=class x{constructor(S,W){let{length:P,initialData:C,progressiveDone:L=!1,contentDispositionFilename:E=null,disableRange:m=!1,disableStream:v=!1}=S;if((0,t.assert)(W,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=L,this._contentDispositionFilename=E,(null==C?void 0:C.length)>0){const R=C instanceof Uint8Array&&C.byteLength===C.buffer.byteLength?C.buffer:new Uint8Array(C).buffer;this._queuedChunks.push(R)}this._pdfDataRangeTransport=W,this._isStreamingSupported=!v,this._isRangeSupported=!m,this._contentLength=P,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((R,j)=>{this._onReceiveData({begin:R,chunk:j})}),this._pdfDataRangeTransport.addProgressListener((R,j)=>{this._onProgress({loaded:R,total:j}
1)}),this._pdfDataRangeTransport.addProgressiveReadListener(R=>{this._onReceiveData({chunk:R})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(S){let{begin:W,chunk:P}=S;const C=P instanceof Uint8Array&&P.byteLength===P.buffer.byteLength?P.buffer:new Uint8Array(P).buffer;if(void 0===W)this._fullRequestReader?this._fullRequestReader._enqueue(C):this._queuedChunks.push(C);else{const L=this._rangeReaders.some(function(E){return E._begin===W&&(E._enqueue(C),!0)});(0,t.assert)(L,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var S,W;return null!=(W=null==(S=this._fullRequestReader)?void 0:S._loaded)?W:0}_onProgress(S){var W,P,C,L;void 0===S.total?null==(P=null==(W=this._rangeReaders[0])?void 0:W.onProgress)||P.call(W,{loaded:S.loaded}):null==(L=null==(C=this._fullRequestReader)?void 0:C.onProgress)||L.call(C,{loaded:S.loaded,total:S.total})}_onProgressiveDone(){var S;null==(S=this._fullRequestReader)||S.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(S){const W=this._rangeReaders.indexOf(S);W>=0&&this._rangeReaders.splice(W,1)}getFullReader(){(0,t.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const S=this._queuedChunks;return this._queuedChunks=null,new re(this,S,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(S,W){if(W<=this._progressiveDataLength)return null;const P=new te(this,S,W);return this._pdfDataRangeTransport.requestDataRange(S,W),this._rangeReaders.push(P),P}cancelAllRequests(S){var W;null==(W=this._fullRequestReader)||W.cancel(S);for(const P of this._rangeReaders.slice(0))P.cancel(S);this._pdfDataRangeTransport.abort()}};class re{constructor(S,W){let P=arguments.length>2&&void 0!==arguments[2]&&arguments[2],C=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this._stream=S,this._done=P||!1,this._filename=(0,_.isPdfFile)(C)?C:null,this._queuedChunks=W||[],this._loaded=0;for(const L of this._queuedChunks)this._loaded+=L.byteLength;this._requests=[],this._headersReady=Promise.resolve(),S._fullRequestReader=this,this.onProgress=null}_enqueue(S){this._done||(this._requests.length>0?this._requests.shift().resolve({value:S,done:!1}):this._queuedChunks.push(S),this._loaded+=S.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){var S=this;return _asyncToGenerator(function*(){if(S._queuedChunks.length>0)return{value:S._queuedChunks.shift(),done:!1};if(S._done)return{value:void 0,done:!0};const W=new t.PromiseCapability;return S._requests.push(W),W.promise})()}cancel(S){this._done=!0;for(const W of this._requests)W.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class te{constructor(S,W,P){this._stream=S,this._begin=W,this._end=P,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(S){if(!this._done){if(0===this._requests.length)this._queuedChunk=S;else{this._requests.shift().resolve({value:S,done:!1});for(const P of this._requests)P.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){var S=this;return _asyncToGenerator(function*(){if(S._queuedChunk){const P=S._queuedChunk;return S._queuedChunk=null,{value:P,done:!1}}if(S._done)return{value:void 0,done:!0};const W=new t.PromiseCapability;return S._requests.push(W),W.promise})()}cancel(S){this._done=!0;for(const W of this._requests)W.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFFetchStream=void 0,c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(89);var t=c(1),_=c(182);function x(P,C,L){return{method:"GET",headers:P,signal:L.signal,mode:"cors",credentials:C?"include":"same-origin",redirect:"follow"}}function re(P){const C=new Headers;for(const L in P){const E=P[L];void 0!==E&&C.append(L,E)}return C}function te(P){return P instanceof Uint8Array?P.buffer:P instanceof ArrayBuffer?P:((0,t.warn)(`getArrayBuffer - unexpected data format: ${P}`),new Uint8Array(P).buffer)}q.PDFFetchStream=class Q{constructor(C){this.source=C,this.isHttp=/^https?:/i.test(C.url),this.httpHeaders=this.isHttp&&C.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var C,L;return null!=(L=null==(C=this._fullRequestReader)?void 0:C._loaded)?L:0}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new S(this),this._fullRequestReader}getRangeReader(C,L){if(L<=this._progressiveDataLength)return null;const E=new W(this,C,L);return this._rangeRequestReaders.push(E),E}cancelAllRequests(C){var L;null==(L=this._fullRequestReader)||L.cancel(C);for(const E of this._rangeRequestReaders.slice(0))E.cancel(C)}};class S{constructor(C){this._stream=C,this._reader=null,this._loaded=0,this._filename=null;const L=C.source;this._withCredentials=L.withCredentials||!1,this._contentLength=L.length,this._headersCapability=new t.PromiseCapability,this._disableRange=L.disableRange||!1,this._rangeChunkSize=L.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!L.disableStream,this._isRangeSupported=!L.disableRange,this._headers=re(this._stream.httpHeaders);const E=L.url;fetch(E,x(this._headers,this._withCredentials,this._abortController)).then(m=>{if(!(0,_.validateResponseStatus)(m.status))throw(0,_.createResponseStatusError)(m.status,E);this._reader=m.body.getReader(),this._headersCapability.resolve();const v=M=>m.headers.get(M),{allowRangeRequests:R,suggestedLength:j}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:v,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=R,this._contentLength=j||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(v),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new t.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var C=this;return _asyncToGenerator(function*(){var m;yield C._headersCapability.promise;const{value:L,done:E}=yield C._reader.read();return E?{value:L,done:E}
vendor: 9,818 bytes, line 1
1:(C._loaded+=L.byteLength,null==(m=C.onProgress)||m.call(C,{loaded:C._loaded,total:C._contentLength}),{value:te(L),done:!1})})()}cancel(C){var L;null==(L=this._reader)||L.cancel(C),this._abortController.abort()}}class W{constructor(C,L,E){this._stream=C,this._reader=null,this._loaded=0;const m=C.source;this._withCredentials=m.withCredentials||!1,this._readCapability=new t.PromiseCapability,this._isStreamingSupported=!m.disableStream,this._abortController=new AbortController,this._headers=re(this._stream.httpHeaders),this._headers.append("Range",`bytes=${L}-${E-1}`);const v=m.url;fetch(v,x(this._headers,this._withCredentials,this._abortController)).then(R=>{if(!(0,_.validateResponseStatus)(R.status))throw(0,_.createResponseStatusError)(R.status,v);this._readCapability.resolve(),this._reader=R.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){var C=this;return _asyncToGenerator(function*(){var m;yield C._readCapability.promise;const{value:L,done:E}=yield C._reader.read();return E?{value:L,done:E}:(C._loaded+=L.byteLength,null==(m=C.onProgress)||m.call(C,{loaded:C._loaded}),{value:te(L),done:!1})})()}cancel(C){var L;null==(L=this._reader)||L.cancel(C),this._abortController.abort()}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.createResponseStatusError=function Q(W,P){return 404===W||0===W&&P.startsWith("file:")?new t.MissingPDFException('Missing PDF "'+P+'".'):new t.UnexpectedResponseException(`Unexpected server response (${W}) while retrieving PDF "${P}".`,W)},q.extractFilenameFromHeader=function te(W){const P=W("Content-Disposition");if(P){let C=(0,_.getFilenameFromContentDispositionHeader)(P);if(C.includes("%"))try{C=decodeURIComponent(C)}catch(L){}if((0,x.isPdfFile)(C))return C}return null},q.validateRangeRequestCapabilities=function re(W){let{getResponseHeader:P,isHttp:C,rangeChunkSize:L,disableRange:E}=W;const m={allowRangeRequests:!1,suggestedLength:void 0},v=parseInt(P("Content-Length"),10);return!Number.isInteger(v)||(m.suggestedLength=v,v<=2*L)||E||!C||"bytes"!==P("Accept-Ranges")||"identity"!==(P("Content-Encoding")||"identity")||(m.allowRangeRequests=!0),m},q.validateResponseStatus=function S(W){return 200===W||206===W};var t=c(1),_=c(183),x=c(168)},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.getFilenameFromContentDispositionHeader=function _(x){let re=!0,te=Q("filename\\*","i").exec(x);if(te){te=te[1];let m=C(te);return m=unescape(m),m=L(m),m=E(m),W(m)}if(te=function P(m){const v=[];let R;const j=Q("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(R=j.exec(m));){let[,V,f,T]=R;if(V=parseInt(V,10),V in v){if(0===V)break}else v[V]=[f,T]}const M=[];for(let V=0;V<v.length&&V in v;++V){let[f,T]=v[V];T=C(T),f&&(T=unescape(T),0===V&&(T=L(T))),M.push(T)}return M.join("")}(x),te)return W(E(te));if(te=Q("filename","i").exec(x),te){te=te[1];let m=C(te);return m=E(m),W(m)}function Q(m,v){return new RegExp("(?:^|;)\\s*"+m+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',v)}function S(m,v){if(m){if(!/^[\x00-\xFF]+$/.test(v))return v;try{const R=new TextDecoder(m,{fatal:!0}),j=(0,t.stringToBytes)(v);v=R.decode(j),re=!1}catch(R){}}return v}function W(m){return re&&/[\x80-\xff]/.test(m)&&(m=S("utf-8",m),re&&(m=S("iso-8859-1",m))),m}function C(m){if(m.startsWith('"')){const v=m.slice(1).split('\\"');for(let R=0;R<v.length;++R){const j=v[R].indexOf('"');-1!==j&&(v[R]=v[R].slice(0,j),v.length=R+1),v[R]=v[R].replaceAll(/\\(.)/g,"$1")}m=v.join('"')}return m}function L(m){const v=m.indexOf("'");return-1===v?m:S(m.slice(0,v),m.slice(v+1).replace(/^[^']*'/,""))}function E(m){return!m.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(m)?m:m.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(v,R,j,M){if("q"===j||"Q"===j)return S(R,M=(M=M.replaceAll("_"," ")).replaceAll(/=([0-9a-fA-F]{2})/g,function(V,f){return String.fromCharCode(parseInt(f,16))}));try{M=atob(M)}catch(V){}return S(R,M)})}return""},c(89),c(149);var t=c(1)},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFNetworkStream=void 0,c(89);var t=c(1),_=c(182);class Q{constructor(L){let E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=L,this.isHttp=/^https?:/i.test(L),this.httpHeaders=this.isHttp&&E.httpHeaders||Object.create(null),this.withCredentials=E.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(L,E,m){const v={begin:L,end:E};for(const R in m)v[R]=m[R];return this.request(v)}requestFull(L){return this.request(L)}request(L){const E=new XMLHttpRequest,m=this.currXhrId++,v=this.pendingRequests[m]={xhr:E};E.open("GET",this.url),E.withCredentials=this.withCredentials;for(const R in this.httpHeaders){const j=this.httpHeaders[R];void 0!==j&&E.setRequestHeader(R,j)}return this.isHttp&&"begin"in L&&"end"in L?(E.setRequestHeader("Range",`bytes=${L.begin}-${L.end-1}`),v.expectedStatus=206):v.expectedStatus=200,E.responseType="arraybuffer",L.onError&&(E.onerror=function(R){L.onError(E.status)}),E.onreadystatechange=this.onStateChange.bind(this,m),E.onprogress=this.onProgress.bind(this,m),v.onHeadersReceived=L.onHeadersReceived,v.onDone=L.onDone,v.onError=L.onError,v.onProgress=L.onProgress,E.send(null),m}onProgress(L,E){var v;const m=this.pendingRequests[L];!m||null==(v=m.onProgress)||v.call(m,E)}onStateChange(L,E){var V,f,T;const m=this.pendingRequests[L];if(!m)return;const v=m.xhr;if(v.readyState>=2&&m.onHeadersReceived&&(m.onHeadersReceived(),delete m.onHeadersReceived),4!==v.readyState||!(L in this.pendingRequests))return;if(delete this.pendingRequests[L],0===v.status&&this.isHttp)return void(null==(V=m.onError)||V.call(m,v.status));const R=v.status||200;if((200!==R||206!==m.expectedStatus)&&R!==m.expectedStatus)return void(null==(f=m.onError)||f.call(m,v.status));const M=function te(C){const L=C.response;return"string"!=typeof L?L:(0,t.stringToBytes)(L).buffer}(v);if(206===R){const Z=v.getResponseHeader("Content-Range"),G=/bytes (\d+)-(\d+)\/(\d+)/.exec(Z);m.onDone({begin:parseInt(G[1],10),chunk:M})}else M?m.onDone({begin:0,chunk:M}):null==(T=m.onError)||T.call(m,v.status)}getRequestXhr(L){return this.pendingRequests[L].xhr}isPendingRequest(L){return L in this.pendingRequests}abortRequest(L){const E=this.pendingRequests[L].xhr;delete this.pendingRequests[L],E.abort()}}q.PDFNetworkStream=class S{constructor(L){this._source=L,this._manager=new Q(L.url,{httpHeaders:L.httpHeaders,withCredentials:L.withCredentials}),this._rangeChunkSize=L.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(L){const E=this._rangeRequestReaders.indexOf(L);E>=0&&this._rangeRequestReaders.splice(E,1)}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new W(this._manager,this._source),this._fullRequestReader}getRangeReader(L,E){const m=new P(this._manager,L,E);return m.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(m),m}cancelAllRequests(L){var E;null==(E=this._fullRequestReader)||E.cancel(L);for(const m of this._rangeRequestReaders.slice(0))m.cancel(L)}};class W{constructor(L,E){this._manager=L;const m={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=E.url,this._fullRequestId=L.requestFull(m),this._headersReceivedCapability=new t.PromiseCapability,this._disableRange=E.disableRange||!1,this._contentLength=E.length,this._rangeChunkSize=E.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const L=this._fullRequestId,E=this._manager.getRequestXhr(L),m=j=>E.getResponseHeader(j),{allowRangeRequests:v,suggestedLength:R}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:m,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});v&&(this._isRangeSupported=!0),this._contentLength=R||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(m),this._isRangeSupported&&this._manager.abortRequest(L),this._headersReceivedCapability.resolve()}_onDone(L){if(L&&(this._requests.length>0?this._requests.shift().resolve({value:L.chunk,done:!1}):this._cachedChunks.push(L.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const E of this._requests)E.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(L){this._storedError=(0,_.createResponseStatusError)(L,this._url),this._headersReceivedCapability.reject(this._storedError);for(const E of this._requests)E.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(L){var E;null==(E=this.onProgress)||E.call(this,{loaded:L.loaded,total:L.lengthComputable?L.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){var L=this;return _asyncToGenerator(function*(){if(L._storedError)throw L._storedError;if(L._cachedChunks.length>0)return{value:L._cachedChunks.shift(),done:!1};if(L._done)return{value:void 0,done:!0};const E=new t.PromiseCapability;return L._requests.push(E),E.promise})()}cancel(L){this._done=!0,this._headersReceivedCapability.reject(L);for(const E of this._requests)E.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest
1(this._fullRequestId),this._fullRequestReader=null}}class P{constructor(L,E,m){this._manager=L;const v={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=L.url,this._requestId=L.requestRange(E,m,v),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var L;null==(L=this.onClosed)||L.call(this,this)}_onDone(L){const E=L.chunk;this._requests.length>0?this._requests.shift().resolve({value:E,done:!1}):this._queuedChunk=E,this._done=!0;for(const m of this._requests)m.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(L){this._storedError=(0,_.createResponseStatusError)(L,this._url);for(const E of this._requests)E.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(L){var E;this.isStreamingSupported||null==(E=this.onProgress)||E.call(this,{loaded:L.loaded})}get isStreamingSupported(){return!1}read(){var L=this;return _asyncToGenerator(function*(){if(L._storedError)throw L._storedError;if(null!==L._queuedChunk){const m=L._queuedChunk;return L._queuedChunk=null,{value:m,done:!1}}if(L._done)return{value:void 0,done:!0};const E=new t.PromiseCapability;return L._requests.push(E),E.promise})()}cancel(L){this._done=!0;for(const E of this._requests)E.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.PDFNodeStream=void 0,c(89),c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123);var t=c(1),_=c(182);const x=/^file:\/\/\/[a-zA-Z]:\//;q.PDFNodeStream=class te{constructor(v){this.source=v,this.url=function re(m){const v=__webpack_require__(1543),R=v.parse(m);return"file:"===R.protocol||R.host?R:/^[a-z]:[/\\]/i.test(m)?v.parse(`file:///${m}`):(R.host||(R.protocol="file:"),R)}(v.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&v.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var v,R;return null!=(R=null==(v=this._fullRequestReader)?void 0:v._loaded)?R:0}getFullReader(){return(0,t.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new L(this):new P(this),this._fullRequestReader}getRangeReader(v,R){if(R<=this._progressiveDataLength)return null;const j=this.isFsUrl?new E(this,v,R):new C(this,v,R);return this._rangeRequestReaders.push(j),j}cancelAllRequests(v){var R;null==(R=this._fullRequestReader)||R.cancel(v);for(const j of this._rangeRequestReaders.slice(0))j.cancel(v)}};class Q{constructor(v){this._url=v.url,this._done=!1,this._storedError=null,this.onProgress=null;const R=v.source;this._contentLength=R.length,this._loaded=0,this._filename=null,this._disableRange=R.disableRange||!1,this._rangeChunkSize=R.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!R.disableStream,this._isRangeSupported=!R.disableRange,this._readableStream=null,this._readCapability=new t.PromiseCapability,this._headersCapability=new t.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){var v=this;return _asyncToGenerator(function*(){var M;if(yield v._readCapability.promise,v._done)return{value:void 0,done:!0};if(v._storedError)throw v._storedError;const R=v._readableStream.read();return null===R?(v._readCapability=new t.PromiseCapability,v.read()):(v._loaded+=R.length,null==(M=v.onProgress)||M.call(v,{loaded:v._loaded,total:v._contentLength}),{value:new Uint8Array(R).buffer,done:!1})})()}cancel(v){this._readableStream?this._readableStream.destroy(v):this._error(v)}_error(v){this._storedError=v,this._readCapability.resolve()}_setReadableStream(v){this._readableStream=v,v.on("readable",()=>{this._readCapability.resolve()}),v.on("end",()=>{v.destroy(),this._done=!0,this._readCapability.resolve()}),v.on("error",R=>{this._error(R)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new t.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class S{constructor(v){this._url=v.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new t.PromiseCapability,this._isStreamingSupported=!v.source.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){var v=this;return _asyncToGenerator(function*(){var M;if(yield v._readCapability.promise,v._done)return{value:void 0,done:!0};if(v._storedError)throw v._storedError;const R=v._readableStream.read();return null===R?(v._readCapability=new t.PromiseCapability,v.read()):(v._loaded+=R.length,null==(M=v.onProgress)||M.call(v,{loaded:v._loaded}),{value:new Uint8Array(R).buffer,done:!1})})()}cancel(v){this._readableStream?this._readableStream.destroy(v):this._error(v)}_error(v){this._storedError=v,this._readCapability.resolve()}_setReadableStream(v){this._readableStream=v,v.on("readable",()=>{this._readCapability.resolve()}),v.on("end",()=>{v.destroy(),this._done=!0,this._readCapability.resolve()}),v.on("error",R=>{this._error(R)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function W(m,v){return{protocol:m.protocol,auth:m.auth,host:m.hostname,port:m.port,path:m.path,method:"GET",headers:v}}class P extends Q{constructor(v){super(v);const R=j=>{if(404===j.statusCode){const T=new t.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=T,void this._headersCapability.reject(T)}this._headersCapability.resolve(),this._setReadableStream(j);const M=T=>this._readableStream.headers[T.toLowerCase()],{allowRangeRequests:V,suggestedLength:f}=(0,_.validateRangeRequestCapabilities)({getResponseHeader:M,isHttp:v.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=V,this._contentLength=f||this._contentLength,this._filename=(0,_.extractFilenameFromHeader)(M)};if(this._request=null,"http:"===this._url.protocol){const j=__webpack_require__(8251);this._request=j.request(W(this._url,v.httpHeaders),R)}else{const j=__webpack_require__(7677);this._request=j.request(W(this._url,v.httpHeaders),R)}this._request.on("error",j=>{this._storedError=j,this._headersCapability.reject(j)}),this._request.end()}}class C extends S{constructor(v,R,j){super(v),this._httpHeaders={};for(const V in v.httpHeaders){const f=v.httpHeaders[V];void 0!==f&&(this._httpHeaders[V]=f)}this._httpHeaders.Range=`bytes=${R}-${j-1}`;const M=V=>{if(404!==V.statusCode)this._setReadableStream(V);else{const f=new t.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=f}};if(this._request=null,"http:"===this._url.protocol){const V=__webpack_require__(8251);this._request=V.request(W(this._url,this._httpHeaders),M)}else{const V=__webpack_require__(7677);this._request=V.request(W(this._url,this._httpHeaders),M)}this._request.on("error",V=>{this._storedError=V}),this._request.end()}}class L extends Q{constructor(v){super(v);let R=decodeURIComponent(this._url.path);x.test(this._url.href)&&(R=R.replace(/^\//,""));const j=__webpack_require__(2767);j.lstat(R,(M,V)=>{if(M)return"ENOENT"===M.code&&(M=new t.MissingPDFException(`Missing PDF "${R}".`)),this._storedError=M,void this._headersCapability.reject(M);this._contentLength=V.size,this._setReadableStream(j.createReadStream(R)),this._headersCapability.resolve()})}}class E extends S{constructor(v,R,j){super(v);let M=decodeURIComponent(this._url.path);x.test(this._url.href)&&(M=M.replace(/^\//,""));const V=__webpack_require__(2767);this._setReadableStream(V.createReadStream(M,{start:R,end:j-1}))}}},(xe,q,c)=>
vendor: 19,455 bytes, line 1
1{Object.defineProperty(q,"__esModule",{value:!0}),q.SVGGraphics=void 0,c(84),c(86),c(87),c(93),c(101),c(102),c(105),c(107),c(109),c(113),c(116),c(123),c(2),c(89),c(187);var t=c(168),_=c(1);const Q=["butt","round","square"],S=["miter","round","bevel"],W=function(V){let f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",T=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&"undefined"!=typeof Blob&&!T)return URL.createObjectURL(new Blob([V],{type:f}));const Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let G=`data:${f};base64,`;for(let $=0,se=V.length;$<se;$+=3){const y=255&V[$],k=255&V[$+1],I=255&V[$+2];G+=Z[y>>2]+Z[(3&y)<<4|k>>4]+Z[$+1<se?(15&k)<<2|I>>6:64]+Z[$+2<se?63&I:64]}return G},P=function(){const V=new Uint8Array([137,80,78,71,13,10,26,10]),T=new Int32Array(256);for(let I=0;I<256;I++){let H=I;for(let ee=0;ee<8;ee++)H=1&H?3988292384^H>>1&2147483647:H>>1&2147483647;T[I]=H}function G(I,H,ee,z){let oe=z;const ve=H.length;ee[oe]=ve>>24&255,ee[oe+1]=ve>>16&255,ee[oe+2]=ve>>8&255,ee[oe+3]=255&ve,oe+=4,ee[oe]=255&I.charCodeAt(0),ee[oe+1]=255&I.charCodeAt(1),ee[oe+2]=255&I.charCodeAt(2),ee[oe+3]=255&I.charCodeAt(3),oe+=4,ee.set(H,oe),oe+=H.length;const We=function Z(I,H,ee){let z=-1;for(let oe=H;oe<ee;oe++)z=z>>>8^T[255&(z^I[oe])];return-1^z}(ee,z+4,oe);ee[oe]=We>>24&255,ee[oe+1]=We>>16&255,ee[oe+2]=We>>8&255,ee[oe+3]=255&We}function y(I){let H=I.length;const ee=65535,z=Math.ceil(H/ee),oe=new Uint8Array(2+H+5*z+4);let ve=0;oe[ve++]=120,oe[ve++]=156;let We=0;for(;H>ee;)oe[ve++]=0,oe[ve++]=255,oe[ve++]=255,oe[ve++]=0,oe[ve++]=0,oe.set(I.subarray(We,We+ee),ve),ve+=ee,We+=ee,H-=ee;oe[ve++]=1,oe[ve++]=255&H,oe[ve++]=H>>8&255,oe[ve++]=255&~H,oe[ve++]=(65535&~H)>>8&255,oe.set(I.subarray(We),ve),ve+=I.length-We;const Re=function $(I,H,ee){let z=1,oe=0;for(let ve=H;ve<ee;++ve)z=(z+(255&I[ve]))%65521,oe=(oe+z)%65521;return oe<<16|z}(I,0,I.length);return oe[ve++]=Re>>24&255,oe[ve++]=Re>>16&255,oe[ve++]=Re>>8&255,oe[ve++]=255&Re,oe}return function(H,ee,z){return function k(I,H,ee,z){const oe=I.width,ve=I.height;let We,Re,He;const ge=I.data;switch(H){case _.ImageKind.GRAYSCALE_1BPP:Re=0,We=1,He=oe+7>>3;break;case _.ImageKind.RGB_24BPP:Re=2,We=8,He=3*oe;break;case _.ImageKind.RGBA_32BPP:Re=6,We=8,He=4*oe;break;default:throw new Error("invalid format")}const O=new Uint8Array((1+He)*ve);let b=0,p=0;for(let he=0;he<ve;++he)O[b++]=0,O.set(ge.subarray(p,p+He),b),p+=He,b+=He;if(H===_.ImageKind.GRAYSCALE_1BPP&&z){b=0;for(let he=0;he<ve;he++){b++;for(let Oe=0;Oe<He;Oe++)O[b++]^=255}}const A=new Uint8Array([oe>>24&255,oe>>16&255,oe>>8&255,255&oe,ve>>24&255,ve>>16&255,ve>>8&255,255&ve,We,Re,0,0,0]),N=function se(I){if(!_.isNodeJS)return y(I);try{const H=parseInt(process.versions.node)>=8?I:Buffer.from(I),ee=__webpack_require__(7324).deflateSync(H,{level:9});return ee instanceof Uint8Array?ee:new Uint8Array(ee)}catch(H){(0,_.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+H)}return y(I)}(O),J=new Uint8Array(V.length+36+A.length+N.length);let ie=0;return J.set(V,ie),ie+=V.length,G("IHDR",A,J,ie),ie+=12+A.length,G("IDATA",N,J,ie),ie+=12+N.length,G("IEND",new Uint8Array(0),J,ie),W(J,"image/png",ee)}(H,void 0===H.kind?_.ImageKind.GRAYSCALE_1BPP:H.kind,ee,z)}}();class C{constructor(){this.fontSizeScale=1,this.fontWeight="normal",this.fontSize=0,this.textMatrix=_.IDENTITY_MATRIX,this.fontMatrix=_.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=_.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(f,T){this.x=f,this.y=T}}function E(V){if(Number.isInteger(V))return V.toString();const f=V.toFixed(10);let T=f.length-1;if("0"!==f[T])return f;do{T--}while("0"===f[T]);return f.substring(0,"."===f[T]?T:T+1)}function m(V){if(0===V[4]&&0===V[5]){if(0===V[1]&&0===V[2])return 1===V[0]&&1===V[3]?"":`scale(${E(V[0])} ${E(V[3])})`;if(V[0]===V[3]&&V[1]===-V[2])return`rotate(${E(180*Math.acos(V[0])/Math.PI)})`}else if(1===V[0]&&0===V[1]&&0===V[2]&&1===V[3])return`translate(${E(V[4])} ${E(V[5])})`;return`matrix(${E(V[0])} ${E(V[1])} ${E(V[2])} ${E(V[3])} ${E(V[4])} ${E(V[5])})`}let v=0,R=0,j=0;q.SVGGraphics=class M{constructor(f,T){let Z=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,t.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new t.DOMSVGFactory,this.current=new C,this.transformMatrix=_.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=f,this.objs=T,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!Z,this._operatorIdMapping=[];for(const G in _.OPS)this._operatorIdMapping[_.OPS[G]]=G}getObject(f){let T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof f?f.startsWith("g_")?this.commonObjs.get(f):this.objs.get(f):T}save(){this.transformStack.push(this.transformMatrix);const f=this.current;this.extraStack.push(f),this.current=f.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(f){this.save(),this.executeOpTree(f),this.restore()}loadDependencies(f){const T=f.fnArray,Z=f.argsArray;for(let G=0,$=T.length;G<$;G++)if(T[G]===_.OPS.dependency)for(const se of Z[G]){const y=se.startsWith("g_")?this.commonObjs:this.objs,k=new Promise(I=>{y.get(se,I)});this.current.dependencies.push(k)}return Promise.all(this.current.dependencies)}transform(f,T,Z,G,$,se){this.transformMatrix=_.Util.transform(this.transformMatrix,[f,T,Z,G,$,se]),this.tgrp=null}getSVG(f,T){this.viewport=T;const Z=this._initialize(T);return this.loadDependencies(f).then(()=>(this.transformMatrix=_.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(f)),Z))}convertOpList(f){const T=this._operatorIdMapping,Z=f.argsArray,G=f.fnArray,$=[];for(let se=0,y=G.length;se<y;se++){const k=G[se];$.push({fnId:k,fn:T[k],args:Z[se]})}return function L(V){let f=[];const T=[];for(const Z of V)"save"!==Z.fn?"restore"===Z.fn?f=T.pop():f.push(Z):(f.push({fnId:92,fn:"group",items:[]}),T.push(f),f=f.at(-1).items);return f}($)}executeOpTree(f){for(const T of f){const Z=T.fn,$=T.args;switch(0|T.fnId){case _.OPS.beginText:this.beginText();break;case _.OPS.dependency:break;case _.OPS.setLeading:this.setLeading($);break;case _.OPS.setLeadingMoveText:this.setLeadingMoveText($[0],$[1]);break;case _.OPS.setFont:this.setFont($);break;case _.OPS.showText:case _.OPS.showSpacedText:this.showText($[0]);break;case _.OPS.endText:this.endText();break;case _.OPS.moveText:this.moveText($[0],$[1]);break;case _.OPS.setCharSpacing:this.setCharSpacing($[0]);break;case _.OPS.setWordSpacing:this.setWordSpacing($[0]);break;case _.OPS.setHScale:this.setHScale($[0]);break;case _.OPS.setTextMatrix:this.setTextMatrix($[0],$[1],$[2],$[3],$[4],$[5]);break;case _.OPS.setTextRise:this.setTextRise($[0]);break;case _.OPS.setTextRenderingMode:this.setTextRenderingMode($[0]);break;case _.OPS.setLineWidth:this.setLineWidth($[0]);break;case _.OPS.setLineJoin:this.setLineJoin($[0]);break;case _.OPS.setLineCap:this.setLineCap($[0]);break;case _.OPS.setMiterLimit:this.setMiterLimit($[0]);break;case _.OPS.setFillRGBColor:this.setFillRGBColor($[0],$[1],$[2]);break;case _.OPS.setStrokeRGBColor:this.setStrokeRGBColor($[0],$[1],$[2]);break;case _.OPS.setStrokeColorN:this.setStrokeColorN($);break;case _.OPS.setFillColorN:this.setFillColorN($);break;case _.OPS.shadingFill:this.shadingFill($[0]);break;case _.OPS.setDash:this.setDash($[0],$[1]);break;case _.OPS.setRenderingIntent:this.setRenderingIntent($[0]);break;case _.OPS.setFlatness:this.setFlatness($[0]);break;case _.OPS.setGState:this.setGState($[0]);break;case _.OPS.fill:this.fill();break;case _.OPS.eoFill:this.eoFill();break;case _.OPS.stroke:this.stroke();break;case _.OPS.fillStroke:this.fillStroke();break;case _.OPS.eoFillStroke:this.eoFillStroke();break;case _.OPS.clip:this.clip("nonzero");break;case _.OPS.eoClip:this.clip("evenodd");break;case _.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case _.OPS.paintImageXObject:this.paintImageXObject($[0]);break;case _.OPS.paintInlineImageXObject:this.paintInlineImageXObject($[0]);break;case _.OPS.paintImageMaskXObject:this.paintImageMaskXObject($[0]);break;case _.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin($[0],$[1]);break;case _.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case _.OPS.closePath:this.closePath();break;case _.OPS.closeStroke:this.closeStroke();break;case _.OPS.closeFillStroke:this.closeFillStroke();break;case _.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case _.OPS.nextLine:this.nextLine();break;case _.OPS.transform:this.transform($[0],$[1],$[2],$[3],$[4],$[5]);break;case _.OPS.constructPath:this.constructPath($[0],$[1]);break;case _.OPS.endPath:this.endPath();break;case 92:this.group(T.items);break;default:(0,_.warn)(`Unimplemented operator ${Z}`)}}}setWordSpacing(f){this.current.wordSpacing=f}setCharSpacing(f){this.current.charSpacing=f}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(f,T,Z,G,$,se){const y=this.current;y.textMatrix=y.lineMatrix=[f,T,Z,G,$,se],y.textMatrixScale=Math.hypot(f,T),y.x=y.lineX=0,y.y=y.lineY=0,y.xcoords=[],y.ycoords=[],y.tspan=this.svgFactory.createElement("svg:tspan"),y.tspan.setAttributeNS(null,"font-family",y.fontFamily),y.tspan.setAttributeNS(null,"font-size",`${E(y.fontSize)}px`),y.tspan.setAttributeNS(null,"y",E(-y.y)),y.txtElement=this.svgFactory.createElement("svg:text"),y.txtElement.append(y.tspan)}beginText(){const f=this.current;f.x=f.lineX=0,f.y=f.lineY=0,f.textMatrix=_.IDENTITY_MATRIX,f.lineMatrix=_.IDENTITY_MATRIX,f.textMatrixScale=1,f.tspan=this.svgFactory.createElement("svg:tspan"),f.txtElement=this.svgFactory.createElement("svg:text"),f.txtgrp=this.svgFactory.createElement("svg:g"),f.xcoords=[],f.ycoords=[]}moveText(f,T){const Z=this.current;Z.x=Z.lineX+=f,Z.y=Z.lineY+=T,Z.xcoords=[],Z.ycoords=[],Z.tspan=this.svgFactory.createElement("svg:tspan"),Z.tspan.setAttributeNS(null,"font-family",Z.fontFamily),Z.tspan.setAttributeNS(null,"font-size",`${E(Z.fontSize)}px`),Z.tspan.setAttributeNS(null,"y",E(-Z.y))}showText(f){const T=this.current,Z=T.font,G=T.fontSize;if(0===G)return;const $=T.fontSizeScale,se=T.charSpacing,y=T.wordSpacing,k=T.fontDirection,I=T.textHScale*k,H=Z.vertical,ee=H?1:-1,z=Z.defaultVMetrics,oe=G*T.fontMatrix[0];let ve=0;for(const He of f){if(null===He){ve+=k*y;continue}if("number"==typeof He){ve+=ee*He*G/1e3;continue}const ge=(He.isSpace?y:0)+se,O=He.fontChar;let b,p,A=He.width;if(H){let K;const J=He.vmetric||z;K=He.vmetric?J[1]:.5*A,K=-K*oe,A=J?-J[0]:A,b=K/$,p=(ve+J[2]*oe)/$}else b=ve/$,p=0;(He.isInFont||Z.missingFile)&&(T.xcoords.push(T.x+b),H&&T.ycoords.push(-T.y+p),T.tspan.textContent+=O),ve+=H?A*oe-ge*k:A*oe+ge*k}T.tspan.setAttributeNS(null,"x",T.xcoords.map(E).join(" ")),T.tspan.setAttributeNS(null,"y",H?T.ycoords.map(E).join(" "):E(-T.y)),H?T.y-=ve:T.x+=ve*I,T.tspan.setAttributeNS(null,"font-family",T.fontFamily),T.tspan.setAttributeNS(null,"font-size",`${E(T.fontSize)}px`),"normal"!==T.fontStyle&&T.tspan.setAttributeNS(null,"font-style",T.fontStyle),"normal"!==T.fontWeight&&T.tspan.setAttributeNS(null,"font-weight",T.fontWeight);const We=T.textRenderingMode&_.TextRenderingMode.FILL_STROKE_MASK;We===_.TextRenderingMode.FILL||We===_.TextRenderingMode.FILL_STROKE?("#000000"!==T.fillColor&&T.tspan.setAttributeNS(null,"fill",T.fillColor),T.fillAlpha<1&&T.tspan.setAttributeNS(null,"fill-opacity",T.fillAlpha)):T.tspan.setAttributeNS(null,"fill",T.textRenderingMode===_.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(We===_.TextRenderingMode.STROKE||We===_.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(T.tspan,1/(T.textMatrixScale||1));let Re=T.textMatrix;0!==T.textRise&&(Re=Re.slice(),Re[5]+=T.textRise),T.txtElement.setAttributeNS(null,"transform",`${m(Re)} scale(${E(I)}, -1)`),T.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),T.txtElement.append(T.tspan),T.txtgrp.append(T.txtElement),this._ensureTransformGroup().append(T.txtElement)}setLeadingMoveText(f,T){this.setLeading(-T),this.moveText(f,T)}addFontStyle(f){if(!f.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const T=W(f.data,f.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${f.loadedName}"; src: url(${T}); }\n`}setFont(f){const T=this.current,Z=this.commonObjs.get(f[0]);let G=f[1];T.font=Z,this.embedFonts&&!Z.missingFile&&!this.embeddedFonts[Z.loadedName]&&(this.addFontStyle(Z),this.embeddedFonts[Z.loadedName]=Z),T.fontMatrix=Z.fontMatrix||_.FONT_IDENTITY_MATRIX;let $="normal";Z.black?$="900":Z.bold&&($="bold");const se=Z.italic?"italic":"normal";G<0?(G=-G,T.fontDirection=-1):T.fontDirection=1,T.fontSize=G,T.fontFamily=Z.loadedName,T.fontWeight=$,T.fontStyle=se,T.tspan=this.svgFactory.createElement("svg:tspan"),T.tspan.setAttributeNS(null,"y",E(-T.y)),T.xcoords=[],T.ycoords=[]}endText(){var T;const f=this.current;f.textRenderingMode&_.TextRenderingMode.ADD_TO_PATH_FLAG&&(null==(T=f.txtElement)?void 0:T.hasChildNodes())&&(f.element=f.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(f){f>0&&(this.current.lineWidth=f)}setLineCap(f){this.current.lineCap=Q[f]}setLineJoin(f){this.current.lineJoin=S[f]}setMiterLimit(f){this.current.miterLimit=f}setStrokeAlpha(f){this.current.strokeAlpha=f}setStrokeRGBColor(f,T,Z){this.current.strokeColor=_.Util.makeHexColor(f,T,Z)}setFillAlpha(f){this.current.fillAlpha=f}setFillRGBColor(f,T,Z){this.current.fillColor=_.Util.makeHexColor(f,T,Z),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(f){this.current.strokeColor=this._makeColorN_Pattern(f)}setFillColorN(f){this.current.fillColor=this._makeColorN_Pattern(f)}shadingFill(f){const{width:T,height:Z}=this.viewport,G=_.Util.inverseTransform(this.transformMatrix),[$,se,y,k]=_.Util.getAxialAlignedBoundingBox([0,0,T,Z],G),I=this.svgFactory.createElement("svg:rect");I.setAttributeNS(null,"x",$),I.setAttributeNS(null,"y",se),I.setAttributeNS(null,"width",y-$),I.setAttributeNS(null,"height",k-se),I.setAttributeNS(null,"fill",this._makeShadingPattern(f)),this.current.fillAlpha<1&&I.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(I)}_makeColorN_Pattern(f){return"TilingPattern"===f[0]?this._makeTilingPattern(f):this._makeShadingPattern(f)}_makeTilingPattern(f){const T=f[1],Z=f[2],G=f[3]||_.IDENTITY_MATRIX,[$,se,y,k]=f[4],I=f[5],H=f[6],ee=f[7],z="shading"+j++,[oe,ve,We,Re]=_.Util.normalizeRect([..._.Util.applyTransform([$,se],G),..._.Util.applyTransform([y,k],G)]),[He,ge]=_.Util.singularValueDecompose2dScale(G),O=I*He,b=H*ge,p=this.svgFactory.createElement("svg:pattern");p.setAttributeNS(null,"id",z),p.setAttributeNS(null,"patternUnits","userSpaceOnUse"),p.setAttributeNS(null,"width",O),p.setAttributeNS(null,"height",b),p.setAttributeNS(null,"x",`${oe}`),p.setAttributeNS(null,"y",`${ve}`);const A=this.svg,N=this.transformMatrix,K=this.current.fillColor,J=this.current.strokeColor,ie=this.svgFactory.create(We-oe,Re-ve);if(this.svg=ie,this.transformMatrix=G,2===ee){const he=_.Util.makeHexColor(...T);this.current.fillColor=he,this.current.strokeColor=he}return this.executeOpTree(this.convertOpList(Z)),this.svg=A,this.transformMatrix=N,this.current.fillColor=K,this.current.strokeColor=J,p.append(ie.childNodes[0]),this.defs.append(p),`url(#${z})`}_makeShadingPattern(f){switch("string"==typeof f&&(f=this.objs.get(f)),f[0]){case"RadialAxial":const T="shading"+j++,Z=f[3];let G;switch(f[1]){case"axial":const $=f[4],se=f[5];G=this.svgFactory.createElement("svg:linearGradient"),G.setAttributeNS(null,"id",T),G.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),G.setAttributeNS(null,"x1",$[0]),G.setAttributeNS(null,"y1",$[1]),G.setAttributeNS(null,"x2",se[0]),G.setAttributeNS(null,"y2",se[1]);break;case"radial":const y=f[4],k=f[5],I=f[6],H=f[7];G=this.svgFactory.createElement("svg:radialGradient"),G.setAttributeNS(null,"id",T),G.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),G.setAttributeNS(null,"cx",k[0]),G.setAttributeNS(null,"cy",k[1]),G.setAttributeNS(null,"r",H),G.setAttributeNS(null,"fx",y[0]),G.setAttributeNS(null,"fy",y[1]),G.setAttributeNS(null,"fr",I);break;default:throw new Error(`Unknown RadialAxial type: ${f[1]}`)}for(const $ of Z){const se=this.svgFactory.createElement("svg:stop");se.setAttributeNS(null,"offset",$[0]),se.setAttributeNS(null,"stop-color",$[1]),G.append(se)}return this.defs.append(G),`url(#${T})`;case"Mesh":return(0,_.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${f[0]}`)}}setDash(f,T){this.current.dashArray=f,this.current.dashPhase=T}constructPath(f,T){const Z=this.current;let G=Z.x,$=Z.y,se=[],y=0;for(const k of f)switch(0|k){case _.OPS.rectangle:G=T[y++],$=T[y++];const ee=G+T[y++],z=$+T[y++];se.push("M",E(G),E($),"L",E(ee),E($),"L",E(ee),E(z),"L",E(G),E(z),"Z");break;case _.OPS.moveTo:G=T[y++],$=T[y++],se.push("M",E(G),E($));break;case _.OPS.lineTo:G=T[y++],$=T[y++],se.push("L",E(G),E($));break;case _.OPS.curveTo:G=T[y+4],$=T[y+5],se.push("C",E(T[y]),E(T[y+1]),E(T[y+2]),E(T[y+3]),E(G),E($)),y+=6;break;case _.OPS.curveTo2:se.push("C",E(G),E($),E(T[y]),E(T[y+1]),E(T[y+2]),E(T[y+3])),G=T[y+2],$=T[y+3],y+=4;break;case _.OPS.curveTo3:G=T[y+2],$=T[y+3],se.push("C",E(T[y]),E(T[y+1]),E(G),E($),E(G),E($)),y+=4;break;case _.OPS.closePath:se.push("Z")}se=se.join(" "),Z.path&&f.length>0&&f[0]!==_.OPS.rectangle&&f[0]!==_.OPS.moveTo?se=Z.path.getAttributeNS(null,"d")+se:(Z.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(Z.path)),Z.path.setAttributeNS(null,"d",se),Z.path.setAttributeNS(null,"fill","none"),Z.element=Z.path,Z.setCurrentPoint(G,$)}endPath(){const f=this.current;if(f.path=null,!this.pendingClip)return;if(!f.element)return void(this.pendingClip=null);const T="clippath"+v++,Z=this.svgFactory.createElement("svg:clipPath");Z.setAttributeNS(null,"id",T),Z.setAttributeNS(null,"transform",m(this.transformMatrix));const G=f.element.cloneNode(!0);if(G.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,Z.append(G),this.defs.append(Z),f.activeClipUrl){f.clipGroup=null;for(const $ of this.extraStack)$.clipGroup=null;Z.setAttributeNS(null,"clip-path",f.activeClipUrl)}f.activeClipUrl=`url(#${T})`,this.tgrp=null}clip(f){this.pendingClip=f}closePath(){const f=this.current;if(f.path){const T=`${f.path.getAttributeNS(null,"d")}Z`;f.path.setAttributeNS(null,"d",T)}}setLeading(f){this.current.leading=-f}setTextRise(f){this.current.textRise=f}setTextRenderingMode(f){this.current.textRenderingMode=f}setHScale(f){this.current.textHScale=f/100}
1setRenderingIntent(f){}setFlatness(f){}setGState(f){for(const[T,Z]of f)switch(T){case"LW":this.setLineWidth(Z);break;case"LC":this.setLineCap(Z);break;case"LJ":this.setLineJoin(Z);break;case"ML":this.setMiterLimit(Z);break;case"D":this.setDash(Z[0],Z[1]);break;case"RI":this.setRenderingIntent(Z);break;case"FL":this.setFlatness(Z);break;case"Font":this.setFont(Z);break;case"CA":this.setStrokeAlpha(Z);break;case"ca":this.setFillAlpha(Z);break;default:(0,_.warn)(`Unimplemented graphic state operator ${T}`)}}fill(){const f=this.current;f.element&&(f.element.setAttributeNS(null,"fill",f.fillColor),f.element.setAttributeNS(null,"fill-opacity",f.fillAlpha),this.endPath())}stroke(){const f=this.current;f.element&&(this._setStrokeAttributes(f.element),f.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(f){let T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Z=this.current;let G=Z.dashArray;1!==T&&G.length>0&&(G=G.map(function($){return T*$})),f.setAttributeNS(null,"stroke",Z.strokeColor),f.setAttributeNS(null,"stroke-opacity",Z.strokeAlpha),f.setAttributeNS(null,"stroke-miterlimit",E(Z.miterLimit)),f.setAttributeNS(null,"stroke-linecap",Z.lineCap),f.setAttributeNS(null,"stroke-linejoin",Z.lineJoin),f.setAttributeNS(null,"stroke-width",E(T*Z.lineWidth)+"px"),f.setAttributeNS(null,"stroke-dasharray",G.map(E).join(" ")),f.setAttributeNS(null,"stroke-dashoffset",E(T*Z.dashPhase)+"px")}eoFill(){var f;null==(f=this.current.element)||f.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var f;null==(f=this.current.element)||f.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x","0"),f.setAttributeNS(null,"y","0"),f.setAttributeNS(null,"width","1px"),f.setAttributeNS(null,"height","1px"),f.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(f)}paintImageXObject(f){const T=this.getObject(f);T?this.paintInlineImageXObject(T):(0,_.warn)(`Dependent image with object ID ${f} is not ready yet`)}paintInlineImageXObject(f,T){const Z=f.width,G=f.height,$=P(f,this.forceDataSchema,!!T),se=this.svgFactory.createElement("svg:rect");se.setAttributeNS(null,"x","0"),se.setAttributeNS(null,"y","0"),se.setAttributeNS(null,"width",E(Z)),se.setAttributeNS(null,"height",E(G)),this.current.element=se,this.clip("nonzero");const y=this.svgFactory.createElement("svg:image");y.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",$),y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y",E(-G)),y.setAttributeNS(null,"width",E(Z)+"px"),y.setAttributeNS(null,"height",E(G)+"px"),y.setAttributeNS(null,"transform",`scale(${E(1/Z)} ${E(-1/G)})`),T?T.append(y):this._ensureTransformGroup().append(y)}paintImageMaskXObject(f){const T=this.getObject(f.data,f);if(T.bitmap)return void(0,_.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");const Z=this.current,G=T.width,$=T.height,se=Z.fillColor;Z.maskId="mask"+R++;const y=this.svgFactory.createElement("svg:mask");y.setAttributeNS(null,"id",Z.maskId);const k=this.svgFactory.createElement("svg:rect");k.setAttributeNS(null,"x","0"),k.setAttributeNS(null,"y","0"),k.setAttributeNS(null,"width",E(G)),k.setAttributeNS(null,"height",E($)),k.setAttributeNS(null,"fill",se),k.setAttributeNS(null,"mask",`url(#${Z.maskId})`),this.defs.append(y),this._ensureTransformGroup().append(k),this.paintInlineImageXObject(T,y)}paintFormXObjectBegin(f,T){if(Array.isArray(f)&&6===f.length&&this.transform(f[0],f[1],f[2],f[3],f[4],f[5]),T){const Z=T[2]-T[0],G=T[3]-T[1],$=this.svgFactory.createElement("svg:rect");$.setAttributeNS(null,"x",T[0]),$.setAttributeNS(null,"y",T[1]),$.setAttributeNS(null,"width",E(Z)),$.setAttributeNS(null,"height",E(G)),this.current.element=$,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(f){const T=this.svgFactory.create(f.width,f.height),Z=this.svgFactory.createElement("svg:defs");T.append(Z),this.defs=Z;const G=this.svgFactory.createElement("svg:g");return G.setAttributeNS(null,"transform",m(f.transform)),T.append(G),this.svg=G,T}_ensureClipGroup(){if(!this.current.clipGroup){const f=this.svgFactory.createElement("svg:g");f.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(f),this.current.clipGroup=f}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",m(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(xe,q,c)=>{var t=c(3),_=c(188),x=c(193);t({target:"Array",proto:!0},{group:function(te){var Q=arguments.length>1?arguments[1]:void 0;return _(this,te,Q)}}),x("group")},(xe,q,c)=>{var t=c(99),_=c(14),x=c(13),re=c(40),te=c(18),Q=c(64),S=c(189),W=c(108),P=Array,C=_([].push);xe.exports=function(L,E,m,v){for(var Z,G,$,R=re(L),j=x(R),M=t(E,m),V=S(null),f=Q(j),T=0;f>T;T++)(G=te(M($=j[T],T,R)))in V?C(V[G],$):V[G]=[$];if(v&&(Z=v(R))!==P)for(G in V)V[G]=W(Z,V[G]);return V}},(xe,q,c)=>{var M,t=c(47),_=c(190),x=c(66),re=c(55),te=c(192),Q=c(43),S=c(54),C="prototype",L="script",E=S("IE_PROTO"),m=function(){},v=function(f){return"<"+L+">"+f+"</"+L+">"},R=function(f){f.write(v("")),f.close();var T=f.parentWindow.Object;return f=null,T},V=function(){try{M=new ActiveXObject("htmlfile")}catch(T){}V="undefined"!=typeof document?document.domain&&M?R(M):function(){var Z,f=Q("iframe");return f.style.display="none",te.appendChild(f),f.src=String("javascript:"),(Z=f.contentWindow.document).open(),Z.write(v("document.F=Object")),Z.close(),Z.F}():R(M);for(var f=x.length;f--;)delete V[C][x[f]];return V()};re[E]=!0,xe.exports=Object.create||function(T,Z){var G;return null!==T?(m[C]=t(T),G=new m,m[C]=null,G[E]=T):G=V(),void 0===Z?G:_.f(G,Z)}},(xe,q,c)=>{var t=c(6),_=c(46),x=c(45),re=c(47),te=c(12),Q=c(191);q.f=t&&!_?Object.defineProperties:function(W,P){re(W);for(var v,C=te(P),L=Q(P),E=L.length,m=0;E>m;)x.f(W,v=L[m++],C[v]);return W}},(xe,q,c)=>{var t=c(59),_=c(66);xe.exports=Object.keys||function(re){return t(re,_)}},(xe,q,c)=>{var t=c(24);xe.exports=t("document","documentElement")},(xe,q,c)=>{var t=c(34),_=c(189),x=c(45).f,re=t("unscopables"),te=Array.prototype;void 0===te[re]&&x(te,re,{configurable:!0,value:_(null)}),xe.exports=function(Q){te[re][Q]=!0}},(xe,q,c)=>
1{Object.defineProperty(q,"__esModule",{value:!0}),q.XfaText=void 0,c(89);class t{static textContent(x){const re=[],te={items:re,styles:Object.create(null)};return function Q(S){var C;if(!S)return;let W=null;const P=S.name;if("#text"===P)W=S.value;else{if(!t.shouldBuildText(P))return;(null==(C=null==S?void 0:S.attributes)?void 0:C.textContent)?W=S.attributes.textContent:S.value&&(W=S.value)}if(null!==W&&re.push({str:W}),S.children)for(const L of S.children)Q(L)}(x),te}static shouldBuildText(x){return!("textarea"===x||"input"===x||"option"===x||"select"===x)}}q.XfaText=t},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.TextLayerRenderTask=void 0,q.renderTextLayer=function m(R){!R.textContentSource&&(R.textContent||R.textContentStream)&&((0,_.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),R.textContentSource=R.textContent||R.textContentStream);const{container:j,viewport:M}=R,V=getComputedStyle(j),f=V.getPropertyValue("visibility"),T=parseFloat(V.getPropertyValue("--scale-factor"));"visible"===f&&(!T||Math.abs(T-M.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const Z=new E(R);return Z._render(),Z},q.updateTextLayer=function v(R){let{container:j,viewport:M,textDivs:V,textDivProperties:f,isOffscreenCanvasSupported:T,mustRotate:Z=!0,mustRescale:G=!0}=R;if(Z&&(0,_.setLayerDimensions)(j,{rotation:M.rotation}),G){const $=S(0,T),y={prevFontSize:null,prevFontFamily:null,div:null,scale:M.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:$};for(const k of V)y.properties=f.get(k),y.div=k,C(y)}},c(89),c(2);var t=c(1),_=c(168);const Q=new Map;function S(R,j){let M;if(j&&t.FeatureTest.isOffscreenCanvasSupported)M=new OffscreenCanvas(R,R).getContext("2d",{alpha:!1});else{const V=document.createElement("canvas");V.width=V.height=R,M=V.getContext("2d",{alpha:!1})}return M}function P(R,j,M){const V=document.createElement("span"),f={angle:0,canvasWidth:0,hasText:""!==j.str,hasEOL:j.hasEOL,fontSize:0};R._textDivs.push(V);const T=t.Util.transform(R._transform,j.transform);let Z=Math.atan2(T[1],T[0]);const G=M[j.fontName];G.vertical&&(Z+=Math.PI/2);const $=Math.hypot(T[2],T[3]),se=$*function W(R,j){const M=Q.get(R);if(M)return M;const V=S(30,j);V.font=`30px ${R}`;const f=V.measureText("");let T=f.fontBoundingBoxAscent,Z=Math.abs(f.fontBoundingBoxDescent);if(T){const $=T/(T+Z);return Q.set(R,$),V.canvas.width=V.canvas.height=0,$}V.strokeStyle="red",V.clearRect(0,0,30,30),V.strokeText("g",0,0);let G=V.getImageData(0,0,30,30).data;Z=0;for(let $=G.length-1-3;$>=0;$-=4)if(G[$]>0){Z=Math.ceil($/4/30);break}V.clearRect(0,0,30,30),V.strokeText("A",0,30),G=V.getImageData(0,0,30,30).data,T=0;for(let $=0,se=G.length;$<se;$+=4)if(G[$]>0){T=30-Math.floor($/4/30);break}if(V.canvas.width=V.canvas.height=0,T){const $=T/(T+Z);return Q.set(R,$),$}return Q.set(R,.8),.8}(G.fontFamily,R._isOffscreenCanvasSupported);let y,k;0===Z?(y=T[4],k=T[5]-se):(y=T[4]+se*Math.sin(Z),k=T[5]-se*Math.cos(Z));const I="calc(var(--scale-factor)*",H=V.style;R._container===R._rootContainer?(H.left=`${(100*y/R._pageWidth).toFixed(2)}%`,H.top=`${(100*k/R._pageHeight).toFixed(2)}%`):(H.left=`${I}${y.toFixed(2)}px)`,H.top=`${I}${k.toFixed(2)}px)`),H.fontSize=`${I}${$.toFixed(2)}px)`,H.fontFamily=G.fontFamily,f.fontSize=$,V.setAttribute("role","presentation"),V.textContent=j.str,V.dir=j.dir,R._fontInspectorEnabled&&(V.dataset.fontName=j.fontName),0!==Z&&(f.angle=Z*(180/Math.PI));let ee=!1;if(j.str.length>1)ee=!0;else if(" "!==j.str&&j.transform[0]!==j.transform[3]){const z=Math.abs(j.transform[0]),oe=Math.abs(j.transform[3]);z!==oe&&Math.max(z,oe)/Math.min(z,oe)>1.5&&(ee=!0)}ee&&(f.canvasWidth=G.vertical?j.height:j.width),R._textDivProperties.set(V,f),R._isReadableStream&&R._layoutText(V)}function C(R){const{div:j,scale:M,properties:V,ctx:f,prevFontSize:T,prevFontFamily:Z}=R,{style:G}=j;let $="";if(0!==V.canvasWidth&&V.hasText){const{fontFamily:se}=G,{canvasWidth:y,fontSize:k}=V;(T!==k||Z!==se)&&(f.font=`${k*M}px ${se}`,R.prevFontSize=k,R.prevFontFamily=se);const{width:I}=f.measureText(j.textContent);I>0&&($=`scaleX(${y*M/I})`)}0!==V.angle&&($=`rotate(${V.angle}deg) ${$}`),$.length>0&&(G.transform=$)}class E{constructor(j){var H;let{textContentSource:M,container:V,viewport:f,textDivs:T,textDivProperties:Z,textContentItemsStr:G,isOffscreenCanvasSupported:$}=j;this._textContentSource=M,this._isReadableStream=M instanceof ReadableStream,this._container=this._rootContainer=V,this._textDivs=T||[],this._textContentItemsStr=G||[],this._isOffscreenCanvasSupported=$,this._fontInspectorEnabled=!!(null==(H=globalThis.FontInspector)?void 0:H.enabled),this._reader=null,this._textDivProperties=Z||new WeakMap,this._canceled=!1,this._capability=new t.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:f.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:S(0,$)};const{pageWidth:se,pageHeight:y,pageX:k,pageY:I}=f.rawDims;this._transform=[1,0,0,-1,-k,I+y],this._pageWidth=se,this._pageHeight=y,(0,_.setLayerDimensions)(V,f),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new t.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new t.AbortException("TextLayer task cancelled."))}_processItems(j,M){for(const V of j)if(void 0!==V.str)this._textContentItemsStr.push(V.str),P(this,V,M);else if("beginMarkedContentProps"===V.type||"beginMarkedContent"===V.type){const f=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==V.id&&this._container.setAttribute("id",`${V.id}`),f.append(this._container)}else"endMarkedContent"===V.type&&(this._container=this._container.parentNode)}_layoutText(j){const M=this._layoutTextParams.properties=this._textDivProperties.get(j);if(this._layoutTextParams.div=j,C(this._layoutTextParams),M.hasText&&this._container.append(j),M.hasEOL){const V=document.createElement("br");V.setAttribute("role","presentation"),this._container.append(V)}}_render(){const j=new t.PromiseCapability;let M=Object.create(null);if(this._isReadableStream){const V=()=>{this._reader.read().then(f=>{let{value:T,done:Z}=f;Z?j.resolve():(Object.assign(M,T.styles),this._processItems(T.items,M),V())},j.reject)};this._reader=this._textContentSource.getReader(),V()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:V,styles:f}=this._textContentSource;this._processItems(V,f),j.resolve()}}j.promise.then(()=>{M=null,function L(R){if(R._canceled)return;const j=R._textDivs,M=R._capability;if(j.length>1e5)M.resolve();else{if(!R._isReadableStream)for(const f of j)R._layoutText(f);M.resolve()}}(this)},this._capability.reject)}}q.TextLayerRenderTask=E},(xe,q,c)=>{var W,P,C,L,E,m,v,R,j,M,V,IE,T,my,G,DE,se,PE;
1Object.defineProperty(q,"__esModule",{value:!0}),q.AnnotationEditorLayer=void 0,c(125),c(136),c(138),c(141),c(143),c(145),c(147);var t=c(1),_=c(164),x=c(197),re=c(202),te=c(168),Q=c(203);const k=class{constructor(H){dn(this,V),dn(this,T),dn(this,G),dn(this,se),dn(this,W,void 0),dn(this,P,!1),dn(this,C,null),dn(this,L,this.pointerup.bind(this)),dn(this,E,this.pointerdown.bind(this)),dn(this,m,new Map),dn(this,v,!1),dn(this,R,!1),dn(this,j,!1),dn(this,M,void 0);let{uiManager:ee,pageIndex:z,div:oe,accessibilityManager:ve,annotationLayer:We,viewport:Re,l10n:He}=H;const ge=[x.FreeTextEditor,re.InkEditor,Q.StampEditor];if(!k._initialized){k._initialized=!0;for(const O of ge)O.initialize(He)}ee.registerEditorTypes(ge),Vn(this,M,ee),this.pageIndex=z,this.div=oe,Vn(this,W,ve),Vn(this,C,We),this.viewport=Re,Fe(this,M).addLayer(this)}get isEmpty(){return 0===Fe(this,m).size}updateToolbar(H){Fe(this,M).updateToolbar(H)}updateMode(){let H=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe(this,M).getMode();bn(this,se,PE).call(this),H===t.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),H!==t.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",H===t.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",H===t.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",H===t.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(H){if(H||Fe(this,M).getMode()===t.AnnotationEditorType.INK){if(!H)for(const z of Fe(this,m).values())if(z.isEmpty())return void z.setInBackground();bn(this,T,my).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(H){Fe(this,M).setEditingState(H)}addCommands(H){Fe(this,M).addCommands(H)}enable(){this.div.style.pointerEvents="auto";const H=new Set;for(const z of Fe(this,m).values())z.enableEditing(),z.annotationElementId&&H.add(z.annotationElementId);if(!Fe(this,C))return;const ee=Fe(this,C).getEditableAnnotations();for(const z of ee){if(z.hide(),Fe(this,M).isDeletedAnnotationElement(z.data.id)||H.has(z.data.id))continue;const oe=this.deserialize(z);!oe||(this.addOrRebuild(oe),oe.enableEditing())}}disable(){var ee;Vn(this,j,!0),this.div.style.pointerEvents="none";const H=new Set;for(const z of Fe(this,m).values())z.disableEditing(),z.annotationElementId&&null===z.serialize()?(null==(ee=this.getEditableAnnotation(z.annotationElementId))||ee.show(),z.remove()):H.add(z.annotationElementId);if(Fe(this,C)){const z=Fe(this,C).getEditableAnnotations();for(const oe of z){const{id:ve}=oe.data;H.has(ve)||Fe(this,M).isDeletedAnnotationElement(ve)||oe.show()}}bn(this,se,PE).call(this),this.isEmpty&&(this.div.hidden=!0),Vn(this,j,!1)}getEditableAnnotation(H){var ee;return(null==(ee=Fe(this,C))?void 0:ee.getEditableAnnotation(H))||null}setActiveEditor(H){Fe(this,M).getActive()!==H&&Fe(this,M).setActiveEditor(H)}enableClick(){this.div.addEventListener("pointerdown",Fe(this,E)),this.div.addEventListener("pointerup",Fe(this,L))}disableClick(){this.div.removeEventListener("pointerdown",Fe(this,E)),this.div.removeEventListener("pointerup",Fe(this,L))}attach(H){Fe(this,m).set(H.id,H);const{annotationElementId:ee}=H;ee&&Fe(this,M).isDeletedAnnotationElement(ee)&&Fe(this,M).removeDeletedAnnotationElement(H)}detach(H){var ee;Fe(this,m).delete(H.id),null==(ee=Fe(this,W))||ee.removePointerInTextLayer(H.contentDiv),!Fe(this,j)&&H.annotationElementId&&Fe(this,M).addDeletedAnnotationElement(H)}remove(H){this.detach(H),Fe(this,M).removeEditor(H),H.div.contains(document.activeElement)&&setTimeout(()=>{Fe(this,M).focusMainContainer()},0),H.div.remove(),H.isAttachedToDOM=!1,Fe(this,R)||this.addInkEditorIfNeeded(!1)}changeParent(H){var ee;H.parent!==this&&(H.annotationElementId&&(Fe(this,M).addDeletedAnnotationElement(H.annotationElementId),_.AnnotationEditor.deleteAnnotationElement(H),H.annotationElementId=null),this.attach(H),null==(ee=H.parent)||ee.detach(H),H.setParent(this),H.div&&H.isAttachedToDOM&&(H.div.remove(),this.div.append(H.div)))}add(H){if(this.changeParent(H),Fe(this,M).addEditor(H),this.attach(H),!H.isAttachedToDOM){const ee=H.render();this.div.append(ee),H.isAttachedToDOM=!0}H.fixAndSetPosition(),H.onceAdded(),Fe(this,M).addToAnnotationStorage(H)}moveEditorInDOM(H){var z;if(!H.isAttachedToDOM)return;const{activeElement:ee}=document;H.div.contains(ee)&&(H._focusEventsAllowed=!1,setTimeout(()=>{H.div.contains(document.activeElement)?H._focusEventsAllowed=!0:(H.div.addEventListener("focusin",()=>{H._focusEventsAllowed=!0},{once:!0}),ee.focus())},0)),H._structTreeParentId=null==(z=Fe(this,W))?void 0:z.moveElementInDOM(this.div,H.div,H.contentDiv,!0)}addOrRebuild(H){H.needsToBeRebuilt()?H.rebuild():this.add(H)}addUndoableEditor(H){this.addCommands({cmd:()=>
1H._uiManager.rebuild(H),undo:()=>{H.remove()},mustExec:!1})}getNextId(){return Fe(this,M).getId()}pasteEditor(H,ee){Fe(this,M).updateToolbar(H),Fe(this,M).updateMode(H);const{offsetX:z,offsetY:oe}=bn(this,G,DE).call(this),ve=this.getNextId(),We=bn(this,V,IE).call(this,Tl({parent:this,id:ve,x:z,y:oe,uiManager:Fe(this,M),isCentered:!0},ee));We&&this.add(We)}deserialize(H){var ee;switch(null!=(ee=H.annotationType)?ee:H.annotationEditorType){case t.AnnotationEditorType.FREETEXT:return x.FreeTextEditor.deserialize(H,this,Fe(this,M));case t.AnnotationEditorType.INK:return re.InkEditor.deserialize(H,this,Fe(this,M));case t.AnnotationEditorType.STAMP:return Q.StampEditor.deserialize(H,this,Fe(this,M))}return null}addNewEditor(){bn(this,T,my).call(this,bn(this,G,DE).call(this),!0)}setSelected(H){Fe(this,M).setSelected(H)}toggleSelected(H){Fe(this,M).toggleSelected(H)}isSelected(H){return Fe(this,M).isSelected(H)}unselect(H){Fe(this,M).unselect(H)}pointerup(H){const{isMac:ee}=t.FeatureTest.platform;if(!(0!==H.button||H.ctrlKey&&ee)&&H.target===this.div&&Fe(this,v)){if(Vn(this,v,!1),!Fe(this,P))return void Vn(this,P,!0);if(Fe(this,M).getMode()===t.AnnotationEditorType.STAMP)return void Fe(this,M).unselectAll();bn(this,T,my).call(this,H,!1)}}pointerdown(H){if(Fe(this,v))return void Vn(this,v,!1);const{isMac:ee}=t.FeatureTest.platform;if(0!==H.button||H.ctrlKey&&ee||H.target!==this.div)return;Vn(this,v,!0);const z=Fe(this,M).getActive();Vn(this,P,!z||z.isEmpty())}findNewParent(H,ee,z){const oe=Fe(this,M).findParent(ee,z);return null!==oe&&oe!==this&&(oe.changeParent(H),!0)}destroy(){var H,ee;(null==(H=Fe(this,M).getActive())?void 0:H.parent)===this&&(Fe(this,M).commitOrRemove(),Fe(this,M).setActiveEditor(null));for(const z of Fe(this,m).values())null==(ee=Fe(this,W))||ee.removePointerInTextLayer(z.contentDiv),z.setParent(null),z.isAttachedToDOM=!1,z.div.remove();this.div=null,Fe(this,m).clear(),Fe(this,M).removeLayer(this)}render(H){let{viewport:ee}=H;this.viewport=ee,(0,te.setLayerDimensions)(this.div,ee);for(const z of Fe(this,M).getEditors(this.pageIndex))this.add(z);this.updateMode()}update(H){let{viewport:ee}=H;Fe(this,M).commitOrRemove(),this.viewport=ee,(0,te.setLayerDimensions)(this.div,{rotation:ee.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:H,pageHeight:ee}=this.viewport.rawDims;return[H,ee]}};let S=k;W=new WeakMap,P=new WeakMap,C=new WeakMap,L=new WeakMap,E=new WeakMap,m=new WeakMap,v=new WeakMap,R=new WeakMap,j=new WeakMap,M=new WeakMap,V=new WeakSet,IE=function(H){switch(Fe(this,M).getMode()){case t.AnnotationEditorType.FREETEXT:return new x.FreeTextEditor(H);case t.AnnotationEditorType.INK:return new re.InkEditor(H);case t.AnnotationEditorType.STAMP:return new Q.StampEditor(H)}return null},T=new WeakSet,my=function(H,ee){const z=this.getNextId(),oe=bn(this,V,IE).call(this,{parent:this,id:z,x:H.offsetX,y:H.offsetY,uiManager:Fe(this,M),isCentered:ee});return oe&&this.add(oe),oe},G=new WeakSet,DE=function(){const{x:H,y:ee,width:z,height:oe}=this.div.getBoundingClientRect(),ve=Math.max(0,H),We=Math.max(0,ee),ge=(ve+Math.min(window.innerWidth,H+z))/2-H,O=(We+Math.min(window.innerHeight,ee+oe))/2-ee,[b,p]=this.viewport.rotation%180==0?[ge,O]:[O,ge];return{offsetX:b,offsetY:p}},se=new WeakSet,PE=function(){Vn(this,R,!0);for(const H of Fe(this,m).values())H.isEmpty()&&H.remove();Vn(this,R,!1)},ys(S,"_initialized",!1),q.AnnotationEditorLayer=S},(xe,q,c)=>{var Q,S,W,P,C,L,E,m,v,R,rT,M,iT,f,sT,Z,jg,$,RE,y,oT,I,xE;Object.defineProperty(q,"__esModule",{value:!0}),q.FreeTextEditor=void 0,c(89);var t=c(1),_=c(165),x=c(164),re=c(198);const ee=class extends x.AnnotationEditor{constructor(oe){super(hh(Tl({},oe),{name:"freeTextEditor"})),dn(this,R),dn(this,M),dn(this,f),dn(this,Z),dn(this,$),dn(this,y),dn(this,I),dn(this,Q,this.editorDivBlur.bind(this)),dn(this,S,this.editorDivFocus.bind(this)),dn(this,W,this.editorDivInput.bind(this)),dn(this,P,this.editorDivKeydown.bind(this)),dn(this,C,void 0),dn(this,L,""),dn(this,E,`${this.id}-editor`),dn(this,m,void 0),dn(this,v,null),Vn(this,C,oe.color||ee._defaultColor||x.AnnotationEditor._defaultLineColor),Vn(this,m,oe.fontSize||ee._defaultFontSize)}static get _keyboardManager(){const oe=ee.prototype,ve=He=>He.isEmpty(),We=_.AnnotationEditorUIManager.TRANSLATE_SMALL,Re=_.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,t.shadow)(this,"_keyboardManager",new _.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],oe.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],oe.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],oe._translateEmpty,{args:[-We,0],checker:ve}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],oe._translateEmpty,{args:[-Re,0],checker:ve}],[["ArrowRight","mac+ArrowRight"],oe._translateEmpty,{args:[We,0],checker:ve}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],oe._translateEmpty,{args:[Re,0],checker:ve}],[["ArrowUp","mac+ArrowUp"],oe._translateEmpty,{args:[0,-We],checker:ve}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],oe._translateEmpty,{args:[0,-Re],checker:ve}],[["ArrowDown","mac+ArrowDown"],oe._translateEmpty,{args:[0,We],checker:ve}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],oe._translateEmpty,{args:[0,Re],checker:ve}]]))}static initialize(oe){x.AnnotationEditor.initialize(oe,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const ve=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(ve.getPropertyValue("--freetext-padding"))}static updateDefaultParams(oe,ve){switch(oe){case t.AnnotationEditorParamsType.FREETEXT_S
1IZE:ee._defaultFontSize=ve;break;case t.AnnotationEditorParamsType.FREETEXT_COLOR:ee._defaultColor=ve}}updateParams(oe,ve){switch(oe){case t.AnnotationEditorParamsType.FREETEXT_SIZE:bn(this,R,rT).call(this,ve);break;case t.AnnotationEditorParamsType.FREETEXT_COLOR:bn(this,M,iT).call(this,ve)}}static get defaultPropertiesToUpdate(){return[[t.AnnotationEditorParamsType.FREETEXT_SIZE,ee._defaultFontSize],[t.AnnotationEditorParamsType.FREETEXT_COLOR,ee._defaultColor||x.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[t.AnnotationEditorParamsType.FREETEXT_SIZE,Fe(this,m)],[t.AnnotationEditorParamsType.FREETEXT_COLOR,Fe(this,C)]]}_translateEmpty(oe,ve){this._uiManager.translateSelectedEditors(oe,ve,!0)}getInitialTranslation(){const oe=this.parentScale;return[-ee._internalPadding*oe,-(ee._internalPadding+Fe(this,m))*oe]}rebuild(){!this.parent||(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(t.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",Fe(this,P)),this.editorDiv.addEventListener("focus",Fe(this,S)),this.editorDiv.addEventListener("blur",Fe(this,Q)),this.editorDiv.addEventListener("input",Fe(this,W)))}disableEditMode(){!this.isInEditMode()||(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",Fe(this,E)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",Fe(this,P)),this.editorDiv.removeEventListener("focus",Fe(this,S)),this.editorDiv.removeEventListener("blur",Fe(this,Q)),this.editorDiv.removeEventListener("input",Fe(this,W)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(oe){!this._focusEventsAllowed||(super.focusin(oe),oe.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var oe;this.width?bn(this,I,xE).call(this):(this.enableEditMode(),this.editorDiv.focus(),(null==(oe=this._initialOptions)?void 0:oe.isCentered)&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const oe=Fe(this,L),ve=Vn(this,L,bn(this,f,sT).call(this).trimEnd());if(oe===ve)return;const We=Re=>{Vn(this,L,Re),Re?(bn(this,$,RE).call(this),this._uiManager.rebuild(this),bn(this,Z,jg).call(this)):this.remove()};this.addCommands({cmd:()=>{We(ve)},undo:()=>{We(oe)},mustExec:!1}),bn(this,Z,jg).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(oe){this.enterInEditMode()}keydown(oe){oe.target===this.div&&"Enter"===oe.key&&(this.enterInEditMode(),oe.preventDefault())}editorDivKeydown(oe){ee._keyboardManager.exec(this,oe)}editorDivFocus(oe){this.isEditing=!0}editorDivBlur(oe){this.isEditing=!1}editorDivInput(oe){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let oe,ve;this.width&&(oe=this.x,ve=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",Fe(this,E)),this.enableEditing(),x.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(Re=>{var He;return null==(He=this.editorDiv)?void 0:He.setAttribute("aria-label",Re)}),x.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(Re=>{var He;return null==(He=this.editorDiv)?void 0:He.setAttribute("default-content",Re)}),this.editorDiv.contentEditable=!0;const{style:We}=this.editorDiv;if(We.fontSize=`calc(${Fe(this,m)}px * var(--scale-factor))`,We.color=Fe(this,C),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,_.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[Re,He]=this.parentDimensions;
1if(this.annotationElementId){const{position:ge}=Fe(this,v);let[O,b]=this.getInitialTranslation();[O,b]=this.pageTranslationToScreen(O,b);const[p,A]=this.pageDimensions,[N,K]=this.pageTranslation;let J,ie;switch(this.rotation){case 0:J=oe+(ge[0]-N)/p,ie=ve+this.height-(ge[1]-K)/A;break;case 90:J=oe+(ge[0]-N)/p,ie=ve-(ge[1]-K)/A,[O,b]=[b,-O];break;case 180:J=oe-this.width+(ge[0]-N)/p,ie=ve-(ge[1]-K)/A,[O,b]=[-O,-b];break;case 270:J=oe+(ge[0]-N-this.height*A)/p,ie=ve+(ge[1]-K-this.width*p)/A,[O,b]=[-b,O]}this.setAt(J*Re,ie*He,O,b)}else this.setAt(oe*Re,ve*He,this.width*Re,this.height*He);bn(this,$,RE).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(oe,ve,We){let Re=null;if(oe instanceof re.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:ge,fontColor:O},rect:b,rotation:p,id:A},textContent:N,textPosition:K,parent:{page:{pageNumber:J}}}=oe;if(!N||0===N.length)return null;Re=oe={annotationType:t.AnnotationEditorType.FREETEXT,color:Array.from(O),fontSize:ge,value:N.join("\n"),position:K,pageIndex:J-1,rect:b,rotation:p,id:A,deleted:!1}}const He=super.deserialize(oe,ve,We);return Vn(He,m,oe.fontSize),Vn(He,C,t.Util.makeHexColor(...oe.color)),Vn(He,L,oe.value),He.annotationElementId=oe.id||null,Vn(He,v,Re),He}serialize(){let oe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const ve=ee._internalPadding*this.parentScale,We=this.getRect(ve,ve),Re=x.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:Fe(this,C)),He={annotationType:t.AnnotationEditorType.FREETEXT,color:Re,fontSize:Fe(this,m),value:Fe(this,L),pageIndex:this.pageIndex,rect:We,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return oe?He:this.annotationElementId&&!bn(this,y,oT).call(this,He)?null:(He.id=this.annotationElementId,He)}};let te=ee;Q=new WeakMap,S=new WeakMap,W=new WeakMap,P=new WeakMap,C=new WeakMap,L=new WeakMap,E=new WeakMap,m=new WeakMap,v=new WeakMap,R=new WeakSet,rT=function(oe){const ve=Re=>{this.editorDiv.style.fontSize=`calc(${Re}px * var(--scale-factor))`,this.translate(0,-(Re-Fe(this,m))*this.parentScale),Vn(this,m,Re),bn(this,Z,jg).call(this)},We=Fe(this,m);this.addCommands({cmd:()=>{ve(oe)},undo:()=>{ve(We)},mustExec:!0,type:t.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},M=new WeakSet,iT=function(oe){const ve=Fe(this,C);this.addCommands({cmd:()=>{Vn(this,C,this.editorDiv.style.color=oe)},undo:()=>{Vn(this,C,this.editorDiv.style.color=ve)},mustExec:!0,type:t.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},f=new WeakSet,sT=function(){const oe=this.editorDiv.getElementsByTagName("div");if(0===oe.length)return this.editorDiv.innerText;const ve=[];for(const We of oe)ve.push(We.innerText.replace(/\r\n?|\n/,""));return ve.join("\n")},Z=new WeakSet,jg=function(){const[oe,ve]=this.parentDimensions;let We;if(this.isAttachedToDOM)We=this.div.getBoundingClientRect();else{const{currentLayer:Re,div:He}=this,ge=He.style.display;He.style.display="hidden",Re.div.append(this.div),We=He.getBoundingClientRect(),He.remove(),He.style.display=ge}this.rotation%180==this.parentRotation%180?(this.width=We.width/oe,this.height=We.height/ve):(this.width=We.height/oe,this.height=We.width/ve),this.fixAndSetPosition()},$=new WeakSet,RE=function(){if(this.editorDiv.replaceChildren(),Fe(this,L))for(const oe of Fe(this,L).split("\n")){const ve=document.createElement("div");ve.append(oe?document.createTextNode(oe):document.createElement("br")),this.editorDiv.append(ve)}},y=new WeakSet,oT=function(oe){const{value:ve,fontSize:We,color:Re,rect:He,pageIndex:ge}=Fe(this,v);return oe.value!==ve||oe.fontSize!==We||oe.rect.some((O,b)=>Math.abs(O-He[b])>=1)||oe.color.some((O,b)=>O!==Re[b])||oe.pageIndex!==ge},I=new WeakSet,xE=function(){let oe=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.annotationElementId)return;if(bn(this,Z,jg).call(this),!oe&&(0===this.width||0===this.height))return void setTimeout(()=>bn(this,I,xE).call(this,!0),0);const ve=ee._internalPadding*this.parentScale;Fe(this,v).rect=this.getRect(ve,ve)},ys(te,"_freeTextDefaultContent",""),ys(te,"_internalPadding",0),ys(te,"_defaultColor",null),ys(te,"_defaultFontSize",10),ys(te,"_type","freetext"),q.FreeTextEditor=te},(xe,q,c)=>{var p,N,vd,J,aT,he,Oe,Ne,Ye,Qe,Ct,Ot,ln,Lt,Jt,Rt,it,_t,ut,yt,ht,ct,cn,lT,at,vy,sn,ME,nt,OE,Nt,
1wt,bt,Kt,Un,vt,tn,kE,Sn,Nn,rr,Fn,uT,nr,NE;Object.defineProperty(q,"__esModule",{value:!0}),q.StampAnnotationElement=q.InkAnnotationElement=q.FreeTextAnnotationElement=q.AnnotationLayer=void 0,c(89),c(125),c(136),c(138),c(141),c(143),c(145),c(147);var t=c(1),_=c(168),x=c(163),re=c(199),te=c(200),Q=c(201);const S=1e3,P=new WeakSet;function C(hn){return{width:hn[2]-hn[0],height:hn[3]-hn[1]}}class L{static create(Se){switch(Se.data.annotationType){case t.AnnotationType.LINK:return new m(Se);case t.AnnotationType.TEXT:return new v(Se);case t.AnnotationType.WIDGET:switch(Se.data.fieldType){case"Tx":return new j(Se);case"Btn":return Se.data.radioButton?new f(Se):Se.data.checkBox?new V(Se):new T(Se);case"Ch":return new Z(Se);case"Sig":return new M(Se)}return new R(Se);case t.AnnotationType.POPUP:return new G(Se);case t.AnnotationType.FREETEXT:return new se(Se);case t.AnnotationType.LINE:return new y(Se);case t.AnnotationType.SQUARE:return new k(Se);case t.AnnotationType.CIRCLE:return new I(Se);case t.AnnotationType.POLYLINE:return new H(Se);case t.AnnotationType.CARET:return new z(Se);case t.AnnotationType.INK:return new oe(Se);case t.AnnotationType.POLYGON:return new ee(Se);case t.AnnotationType.HIGHLIGHT:return new ve(Se);case t.AnnotationType.UNDERLINE:return new We(Se);case t.AnnotationType.SQUIGGLY:return new Re(Se);case t.AnnotationType.STRIKEOUT:return new He(Se);case t.AnnotationType.STAMP:return new ge(Se);case t.AnnotationType.FILEATTACHMENT:return new O(Se);default:return new E(Se)}}}const A=class{constructor(Se){dn(this,p,!1);let{isRenderable:ae=!1,ignoreBorder:we=!1,createQuadrilaterals:Ce=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isRenderable=ae,this.data=Se.data,this.layer=Se.layer,this.linkService=Se.linkService,this.downloadManager=Se.downloadManager,this.imageResourcesPath=Se.imageResourcesPath,this.renderForms=Se.renderForms,this.svgFactory=Se.svgFactory,this.annotationStorage=Se.annotationStorage,this.enableScripting=Se.enableScripting,this.hasJSActions=Se.hasJSActions,this._fieldObjects=Se.fieldObjects,this.parent=Se.parent,ae&&(this.container=this._createContainer(we)),Ce&&this._createQuadrilaterals()}static _hasPopupData(Se){let{titleObj:ae,contentsObj:we,richText:Ce}=Se;return!!((null==ae?void 0:ae.str)||(null==we?void 0:we.str)||(null==Ce?void 0:Ce.str))}get hasPopupData(){return A._hasPopupData(this.data)}_createContainer(Se){const{data:ae,parent:{page:we,viewport:Ce}}=this,Ue=document.createElement("section");Ue.setAttribute("data-annotation-id",ae.id),this instanceof R||(Ue.tabIndex=S),Ue.style.zIndex=this.parent.zIndex++,this.data.popupRef&&Ue.setAttribute("aria-haspopup","dialog"),ae.noRotate&&Ue.classList.add("norotate");const{pageWidth:st,pageHeight:Ft,pageX:nn,pageY:vn}=Ce.rawDims;if(!ae.rect||this instanceof G){const{rotation:Wt}=ae;return!ae.hasOwnCanvas&&0!==Wt&&this.setRotation(Wt,Ue),Ue}const{width:wn,height:$n}=C(ae.rect),Gn=t.Util.normalizeRect([ae.rect[0],we.view[3]-ae.rect[1]+we.view[1],ae.rect[2],we.view[3]-ae.rect[3]+we.view[1]]);if(!Se&&ae.borderStyle.width>0){Ue.style.borderWidth=`${ae.borderStyle.width}px`;const Wt=ae.borderStyle.horizontalCornerRadius,jt=ae.borderStyle.verticalCornerRadius;switch(Wt>0||jt>0?Ue.style.borderRadius=`calc(${Wt}px * var(--scale-factor)) / calc(${jt}px * var(--scale-factor))`:this instanceof f&&(Ue.style.borderRadius=`calc(${wn}px * var(--scale-factor)) / calc(${$n}px * var(--scale-factor))`),ae.borderStyle.style){case t.AnnotationBorderStyleType.SOLID:Ue.style.borderStyle="solid";break;case t.AnnotationBorderStyleType.DASHED:Ue.style.borderStyle="dashed";break;case t.AnnotationBorderStyleType.BEVELED:(0,t.warn)("Unimplemented border style: beveled");break;case t.AnnotationBorderStyleType.INSET:(0,t.warn)("Unimplemented border style: inset");break;case t.AnnotationBorderStyleType.UNDERLINE:Ue.style.borderBottomStyle="solid"}const on=ae.borderColor||null;on?(Vn(this,p,!0),Ue.style.borderColor=t.Util.makeHexColor(0|on[0],0|on[1],0|on[2])):Ue.style.borderWidth=0}Ue.style.left=100*(Gn[0]-nn)/st+"%",Ue.style.top=100*(Gn[1]-vn)/Ft+"%";const{rotation:ir}=ae;return ae.hasOwnCanvas||0===ir?(Ue.style.width=100*wn/st+"%",Ue.style.height=100*$n/Ft+"%"):this.setRotation(ir,Ue),Ue}setRotation(Se){let ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;if(!this.data.rect)return;const{pageWidth:we,pageHeight:Ce}=this.parent.viewport.rawDims,{width:Ue,height:st}=C(this.data.rect);let Ft,nn;Se%180==0?(Ft=100*Ue/we,nn=100*st/Ce):(Ft=100*st/we,nn=100*Ue/Ce),ae.style.width=`${Ft}%`,ae.style.height=`${nn}%`,ae.setAttribute("data-main-rotation",(360-Se)%360)}get _commonActions(){const Se=(ae,we,Ce)=>{const Ue=Ce.detail[ae],st=Ue[0],Ft=Ue.slice(1);Ce.target.style[we]=re.ColorConverters[`${st}_HTML`](Ft),this.annotationStorage.setValue(this.data.id,{[we]:re.ColorConverters[`${st}_rgb`](Ft)})};return(0,t.shadow)(this,"_commonActions",{display:ae=>{const{display:we}=ae.detail,Ce=we%2==1;this.container.style.visibility=Ce?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:Ce,noPrint:1===we||2===we})},print:ae=>{this.annotationStorage.setValue(this.data.id,{noPrint:!ae.detail.print})},hidden:ae=>{const{hidden:we}=ae.detail;this.container.style.visibility=we?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:we,noView:we})},focus:ae=>{setTimeout(()=>
vendor: 1,040 bytes, line 1
1ae.target.focus({preventScroll:!1}),0)},userName:ae=>{ae.target.title=ae.detail.userName},readonly:ae=>{ae.target.disabled=ae.detail.readonly},required:ae=>{this._setRequired(ae.target,ae.detail.required)},bgColor:ae=>{Se("bgColor","backgroundColor",ae)},fillColor:ae=>{Se("fillColor","backgroundColor",ae)},fgColor:ae=>{Se("fgColor","color",ae)},textColor:ae=>{Se("textColor","color",ae)},borderColor:ae=>{Se("borderColor","borderColor",ae)},strokeColor:ae=>{Se("strokeColor","borderColor",ae)},rotation:ae=>{const we=ae.detail.rotation;this.setRotation(we),this.annotationStorage.setValue(this.data.id,{rotation:we})}})}_dispatchEventFromSandbox(Se,ae){const we=this._commonActions;for(const Ce of Object.keys(ae.detail)){const Ue=Se[Ce]||we[Ce];null==Ue||Ue(ae)}}_setDefaultPropertiesFromJS(Se){if(!this.enableScripting)return;const ae=this.annotationStorage.getRawValue(this.data.id);if(!ae)return;const we=this._commonActions;for(const[Ce,Ue]of Object.entries(ae)){const st=we[Ce];st&&(st({detail:{[Ce]:Ue},target:Se}),delete ae[Ce])}}
1_createQuadrilaterals(){if(!this.container)return;const{quadPoints:Se}=this.data;if(!Se)return;const[ae,we,Ce,Ue]=this.data.rect;if(1===Se.length){const[,{x:jt,y:on},{x:mn,y:Mt}]=Se[0];if(Ce===jt&&Ue===on&&ae===mn&&we===Mt)return}const{style:st}=this.container;let Ft;if(Fe(this,p)){const{borderColor:jt,borderWidth:on}=st;st.borderWidth=0,Ft=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${jt}" stroke-width="${on}">`],this.container.classList.add("hasBorder")}const nn=Ce-ae,vn=Ue-we,{svgFactory:wn}=this,$n=wn.createElement("svg");$n.classList.add("quadrilateralsContainer"),$n.setAttribute("width",0),$n.setAttribute("height",0);const Gn=wn.createElement("defs");$n.append(Gn);const ir=wn.createElement("clipPath"),Wt=`clippath_${this.data.id}`;ir.setAttribute("id",Wt),ir.setAttribute("clipPathUnits","objectBoundingBox"),Gn.append(ir);for(const[,{x:jt,y:on},{x:mn,y:Mt}]of Se){const ke=wn.createElement("rect"),At=(mn-ae)/nn,Ht=(Ue-on)/vn,Yt=(jt-mn)/nn,un=(on-Mt)/vn;ke.setAttribute("x",At),ke.setAttribute("y",Ht),ke.setAttribute("width",Yt),ke.setAttribute("height",un),ir.append(ke),null==Ft||Ft.push(`<rect vector-effect="non-scaling-stroke" x="${At}" y="${Ht}" width="${Yt}" height="${un}"/>`)}Fe(this,p)&&(Ft.push("</g></svg>')"),st.backgroundImage=Ft.join("")),this.container.append($n),this.container.style.clipPath=`url(#${Wt})`}_createPopup(){const{container:Se,data:ae}=this;Se.setAttribute("aria-haspopup","dialog");const we=new G({data:{color:ae.color,titleObj:ae.titleObj,modificationDate:ae.modificationDate,contentsObj:ae.contentsObj,richText:ae.richText,parentRect:ae.rect,borderStyle:0,id:`popup_${ae.id}`,rotation:ae.rotation},parent:this.parent,elements:[this]});this.parent.div.append(we.render())}render(){(0,t.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(Se){let ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const we=[];if(this._fieldObjects){const Ce=this._fieldObjects[Se];if(Ce)for(const{page:Ue,id:st,exportValues:Ft}of Ce){if(-1===Ue||st===ae)continue;const nn="string"==typeof Ft?Ft:null,vn=document.querySelector(`[data-element-id="${st}"]`);!vn||P.has(vn)?we.push({id:st,exportValue:nn,domElement:vn}):(0,t.warn)(`_getElementsByName - element not allowed: ${st}`)}return we}for(const Ce of document.getElementsByName(Se)){const{exportValue:Ue}=Ce,st=Ce.getAttribute("data-element-id");st!==ae&&(!P.has(Ce)||we.push({id:st,exportValue:Ue,domElement:Ce}))}return we}show(){var Se;this.container&&(this.container.hidden=!1),null==(Se=this.popup)||Se.maybeShow()}hide(){var Se;this.container&&(this.container.hidden=!0),null==(Se=this.popup)||Se.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const Se=this.getElementsToTriggerPopup();if(Array.isArray(Se))for(const ae of Se)ae.classList.add("highlightArea");else Se.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:Se,data:{id:ae}}=this;this.container.addEventListener("dblclick",()=>{var we;null==(we=this.linkService.eventBus)||we.dispatch("switchannotationeditormode",{source:this,mode:Se,editId:ae})})}};let E=A;p=new WeakMap;class m extends E{constructor(Se){let ae=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(Se,{isRenderable:!0,ignoreBorder:!!(null==ae?void 0:ae.ignoreBorder),createQuadrilaterals:!0}),dn(this,N),dn(this,J),this.isTooltipOnly=Se.data.isTooltipOnly}render(){const{data:Se,linkService:ae}=this,we=document.createElement("a");we.setAttribute("data-element-id",Se.id);let Ce=!1;return Se.url?(ae.addLinkAttributes(we,Se.url,Se.newWindow),Ce=!0):Se.action?(this._bindNamedAction(we,Se.action),Ce=!0):Se.attachment?(this._bindAttachment(we,Se.attachment),Ce=!0):Se.setOCGState?(bn(this,J,aT).call(this,we,Se.setOCGState),Ce=!0):Se.dest?(this._bindLink(we,Se.dest),Ce=!0):(Se.actions&&(Se.actions.Action||Se.actions["Mouse Up"]||Se.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(we,Se),Ce=!0),Se.resetForm?(this._bindResetFormAction(we,Se.resetForm),Ce=!0):this.isTooltipOnly&&!Ce&&(this._bindLink(we,""),Ce=!0)),this.container.classList.add("linkA
1nnotation"),Ce&&this.container.append(we),this.container}_bindLink(Se,ae){Se.href=this.linkService.getDestinationHash(ae),Se.onclick=()=>(ae&&this.linkService.goToDestination(ae),!1),(ae||""===ae)&&bn(this,N,vd).call(this)}_bindNamedAction(Se,ae){Se.href=this.linkService.getAnchorUrl(""),Se.onclick=()=>(this.linkService.executeNamedAction(ae),!1),bn(this,N,vd).call(this)}_bindAttachment(Se,ae){Se.href=this.linkService.getAnchorUrl(""),Se.onclick=()=>{var we;return null==(we=this.downloadManager)||we.openOrDownloadData(this.container,ae.content,ae.filename),!1},bn(this,N,vd).call(this)}_bindJSAction(Se,ae){Se.href=this.linkService.getAnchorUrl("");const we=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const Ce of Object.keys(ae.actions)){const Ue=we.get(Ce);!Ue||(Se[Ue]=()=>{var st;return null==(st=this.linkService.eventBus)||st.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ae.id,name:Ce}}),!1})}Se.onclick||(Se.onclick=()=>!1),bn(this,N,vd).call(this)}_bindResetFormAction(Se,ae){const we=Se.onclick;if(we||(Se.href=this.linkService.getAnchorUrl("")),bn(this,N,vd).call(this),!this._fieldObjects)return(0,t.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(we||(Se.onclick=()=>!1));Se.onclick=()=>{var wn;null==we||we();const{fields:Ce,refs:Ue,include:st}=ae,Ft=[];if(0!==Ce.length||0!==Ue.length){const $n=new Set(Ue);for(const Gn of Ce){const ir=this._fieldObjects[Gn]||[];for(const{id:Wt}of ir)$n.add(Wt)}for(const Gn of Object.values(this._fieldObjects))for(const ir of Gn)$n.has(ir.id)===st&&Ft.push(ir)}else for(const $n of Object.values(this._fieldObjects))Ft.push(...$n);const nn=this.annotationStorage,vn=[];for(const $n of Ft){const{id:Gn}=$n;switch(vn.push(Gn),$n.type){case"text":case"combobox":case"listbox":nn.setValue(Gn,{value:$n.defaultValue||""});break;case"checkbox":case"radiobutton":nn.setValue(Gn,{value:$n.defaultValue===$n.exportValues});break;default:continue}const ir=document.querySelector(`[data-element-id="${Gn}"]`);ir&&(P.has(ir)?ir.dispatchEvent(new Event("resetform")):(0,t.warn)(`_bindResetFormAction - element not allowed: ${Gn}`))}return this.enableScripting&&(null==(wn=this.linkService.eventBus)||wn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:vn,name:"ResetForm"}})),!1}}}N=new WeakSet,vd=function(){this.container.setAttribute("data-internal-link","")},J=new WeakSet,aT=function(Se,ae){Se.href=this.linkService.getAnchorUrl(""),Se.onclick=()=>(this.linkService.executeSetOCGState(ae),!1),bn(this,N,vd).call(this)};class v extends E{constructor(Se){super(Se,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const Se=document.createElement("img");return Se.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",Se.alt="[{{type}} Annotation]",Se.dataset.l10nId="text_annotation_type",Se.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(Se),this.container}}class R extends E{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(Se){var ae;this.data.hasOwnCanvas&&("CANVAS"===(null==(ae=Se.previousSibling)?void 0:ae.nodeName)&&(Se.previousSibling.hidden=!0),Se.hidden=!1)}_getKeyModifier(Se){const{isWin:ae,isMac:we}=t.FeatureTest.platform;return ae&&Se.ctrlKey||we&&Se.metaKey}_setEventListener(Se,ae,we,Ce,Ue){we.includes("mouse")?Se.addEventListener(we,st=>{var Ft;null==(Ft=this.linkService.eventBus)||Ft.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Ce,value:Ue(st),shift:st.shiftKey,modifier:this._getKeyModifier(st)}})}):Se.addEventListener(we,st=>{var Ft;if("blur"===we){if(!ae.focused||!st.relatedTarget)return;ae.focused=!1}else if("focus"===we){if(ae.focused)return;ae.focused=!0}!Ue||null==(Ft=this.linkService.eventBus)||Ft.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:Ce,value:Ue(st)}})})}_setEventListeners(Se,ae,we,Ce){var Ue,st,Ft;for(const[nn,vn]of we)("Action"===vn||(null==(Ue=this.data.actions)?void 0:Ue[vn]))&&(("Focus"===vn||"Blur"===vn)&&(ae||(ae={focused:!1})),this._setEventListener(Se,ae,nn,vn,Ce),"Focus"!==vn||(null==(st=this.data.actions)?void 0:st.Blur)?"Blur"===vn&&!(null==(Ft=this.data.actions)?void 0:Ft.Focus)&&this._setEventListener(Se,ae,"focus","Focus",null):this._setEventListener(Se,ae,"blur","Blur",null))}
1_setBackgroundColor(Se){const ae=this.data.backgroundColor||null;Se.style.backgroundColor=null===ae?"transparent":t.Util.makeHexColor(ae[0],ae[1],ae[2])}_setTextStyle(Se){const{fontColor:we}=this.data.defaultAppearanceData,Ce=this.data.defaultAppearanceData.fontSize||9,Ue=Se.style;let st;const nn=vn=>Math.round(10*vn)/10;if(this.data.multiLine){const vn=Math.abs(this.data.rect[3]-this.data.rect[1]-2),wn=Math.round(vn/(t.LINE_FACTOR*Ce))||1;st=Math.min(Ce,nn(vn/wn/t.LINE_FACTOR))}else{const vn=Math.abs(this.data.rect[3]-this.data.rect[1]-2);st=Math.min(Ce,nn(vn/t.LINE_FACTOR))}Ue.fontSize=`calc(${st}px * var(--scale-factor))`,Ue.color=t.Util.makeHexColor(we[0],we[1],we[2]),null!==this.data.textAlignment&&(Ue.textAlign=["left","center","right"][this.data.textAlignment])}_setRequired(Se,ae){ae?Se.setAttribute("required",!0):Se.removeAttribute("required"),Se.setAttribute("aria-required",ae)}}class j extends R{constructor(Se){super(Se,{isRenderable:Se.renderForms||!Se.data.hasAppearance&&!!Se.data.fieldValue})}setPropertyOnSiblings(Se,ae,we,Ce){const Ue=this.annotationStorage;
1for(const st of this._getElementsByName(Se.name,Se.id))st.domElement&&(st.domElement[ae]=we),Ue.setValue(st.id,{[Ce]:we})}render(){var Ce,Ue;const Se=this.annotationStorage,ae=this.data.id;this.container.classList.add("textWidgetAnnotation");let we=null;if(this.renderForms){const st=Se.getValue(ae,{value:this.data.fieldValue});let Ft=st.value||"";const nn=Se.getValue(ae,{charLimit:this.data.maxLen}).charLimit;nn&&Ft.length>nn&&(Ft=Ft.slice(0,nn));let vn=st.formattedValue||(null==(Ce=this.data.textContent)?void 0:Ce.join("\n"))||null;vn&&this.data.comb&&(vn=vn.replaceAll(/\s+/g,""));const wn={userValue:Ft,formattedValue:vn,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(we=document.createElement("textarea"),we.textContent=null!=vn?vn:Ft,this.data.doNotScroll&&(we.style.overflowY="hidden")):(we=document.createElement("input"),we.type="text",we.setAttribute("value",null!=vn?vn:Ft),this.data.doNotScroll&&(we.style.overflowX="hidden")),this.data.hasOwnCanvas&&(we.hidden=!0),P.add(we),we.setAttribute("data-element-id",ae),we.disabled=this.data.readOnly,we.name=this.data.fieldName,we.tabIndex=S,this._setRequired(we,this.data.required),nn&&(we.maxLength=nn),we.addEventListener("input",Gn=>{Se.setValue(ae,{value:Gn.target.value}),this.setPropertyOnSiblings(we,"value",Gn.target.value,"value"),wn.formattedValue=null}),we.addEventListener("resetform",Gn=>{var Wt;const ir=null!=(Wt=this.data.defaultFieldValue)?Wt:"";we.value=wn.userValue=ir,wn.formattedValue=null});let $n=Gn=>{const{formattedValue:ir}=wn;null!=ir&&(Gn.target.value=ir),Gn.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){we.addEventListener("focus",ir=>{if(wn.focused)return;const{target:Wt}=ir;wn.userValue&&(Wt.value=wn.userValue),wn.lastCommittedValue=Wt.value,wn.commitKey=1,wn.focused=!0}),we.addEventListener("updatefromsandbox",ir=>{this.showElementAndHideCanvas(ir.target),this._dispatchEventFromSandbox({value(jt){var on;wn.userValue=null!=(on=jt.detail.value)?on:"",Se.setValue(ae,{value:wn.userValue.toString()}),jt.target.value=wn.userValue},formattedValue(jt){const{formattedValue:on}=jt.detail;wn.formattedValue=on,null!=on&&jt.target!==document.activeElement&&(jt.target.value=on),Se.setValue(ae,{formattedValue:on})},selRange(jt){jt.target.setSelectionRange(...jt.detail.selRange)},charLimit:jt=>{var ke;const{charLimit:on}=jt.detail,{target:mn}=jt;if(0===on)return void mn.removeAttribute("maxLength");mn.setAttribute("maxLength",on);let Mt=wn.userValue;
1!Mt||Mt.length<=on||(Mt=Mt.slice(0,on),mn.value=wn.userValue=Mt,Se.setValue(ae,{value:Mt}),null==(ke=this.linkService.eventBus)||ke.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ae,name:"Keystroke",value:Mt,willCommit:!0,commitKey:1,selStart:mn.selectionStart,selEnd:mn.selectionEnd}}))}},ir)}),we.addEventListener("keydown",ir=>{var on;wn.commitKey=1;let Wt=-1;if("Escape"===ir.key?Wt=0:"Enter"!==ir.key||this.data.multiLine?"Tab"===ir.key&&(wn.commitKey=3):Wt=2,-1===Wt)return;const{value:jt}=ir.target;wn.lastCommittedValue!==jt&&(wn.lastCommittedValue=jt,wn.userValue=jt,null==(on=this.linkService.eventBus)||on.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ae,name:"Keystroke",value:jt,willCommit:!0,commitKey:Wt,selStart:ir.target.selectionStart,selEnd:ir.target.selectionEnd}}))});const Gn=$n;$n=null,we.addEventListener("blur",ir=>{var jt;if(!wn.focused||!ir.relatedTarget)return;wn.focused=!1;const{value:Wt}=ir.target;wn.userValue=Wt,wn.lastCommittedValue!==Wt&&(null==(jt=this.linkService.eventBus)||jt.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ae,name:"Keystroke",value:Wt,willCommit:!0,commitKey:wn.commitKey,selStart:ir.target.selectionStart,selEnd:ir.target.selectionEnd}})),Gn(ir)}),(null==(Ue=this.data.actions)?void 0:Ue.Keystroke)&&we.addEventListener("beforeinput",ir=>{var Ht;wn.lastCommittedValue=null;const{data:Wt,target:jt}=ir,{value:on,selectionStart:mn,selectionEnd:Mt}=jt;let ke=mn,At=Mt;switch(ir.inputType){case"deleteWordBackward":{const Yt=on.substring(0,mn).match(/\w*[^\w]*$/);Yt&&(ke-=Yt[0].length);break}
vendor: 1,930 bytes, line 1
1case"deleteWordForward":{const Yt=on.substring(mn).match(/^[^\w]*\w*/);Yt&&(At+=Yt[0].length);break}case"deleteContentBackward":mn===Mt&&(ke-=1);break;case"deleteContentForward":mn===Mt&&(At+=1)}ir.preventDefault(),null==(Ht=this.linkService.eventBus)||Ht.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ae,name:"Keystroke",value:on,change:Wt||"",willCommit:!1,selStart:ke,selEnd:At}})}),this._setEventListeners(we,wn,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],ir=>ir.target.value)}if($n&&we.addEventListener("blur",$n),this.data.comb){const ir=(this.data.rect[2]-this.data.rect[0])/nn;we.classList.add("comb"),we.style.letterSpacing=`calc(${ir}px * var(--scale-factor) - 1ch)`}}else we=document.createElement("div"),we.textContent=this.data.fieldValue,we.style.verticalAlign="middle",we.style.display="table-cell";return this._setTextStyle(we),this._setBackgroundColor(we),this._setDefaultPropertiesFromJS(we),this.container.append(we),this.container}}class M extends R{constructor(Se){super(Se,{isRenderable:!!Se.data.hasOwnCanvas})}}class V extends R{constructor(Se){super(Se,{isRenderable:Se.renderForms})}render(){const Se=this.annotationStorage,ae=this.data,we=ae.id;let Ce=Se.getValue(we,{value:ae.exportValue===ae.fieldValue}).value;"string"==typeof Ce&&(Ce="Off"!==Ce,Se.setValue(we,{value:Ce})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const Ue=document.createElement("input");return P.add(Ue),Ue.setAttribute("data-element-id",we),Ue.disabled=ae.readOnly,this._setRequired(Ue,this.data.required),Ue.type="checkbox",Ue.name=ae.fieldName,Ce&&Ue.setAttribute("checked",!0),Ue.setAttribute("exportValue",ae.exportValue),Ue.tabIndex=S,Ue.addEventListener("change",st=>{const{name:Ft,checked:nn}=st.target;for(const vn of this._getElementsByName(Ft,we)){const wn=nn&&vn.exportValue===ae.exp
vendor: 6,339 bytes, line 1
1ortValue;vn.domElement&&(vn.domElement.checked=wn),Se.setValue(vn.id,{value:wn})}Se.setValue(we,{value:nn})}),Ue.addEventListener("resetform",st=>{st.target.checked=(ae.defaultFieldValue||"Off")===ae.exportValue}),this.enableScripting&&this.hasJSActions&&(Ue.addEventListener("updatefromsandbox",st=>{this._dispatchEventFromSandbox({value(nn){nn.target.checked="Off"!==nn.detail.value,Se.setValue(we,{value:nn.target.checked})}},st)}),this._setEventListeners(Ue,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],st=>st.target.checked)),this._setBackgroundColor(Ue),this._setDefaultPropertiesFromJS(Ue),this.container.append(Ue),this.container}}class f extends R{constructor(Se){super(Se,{isRenderable:Se.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const Se=this.annotationStorage,ae=this.data,we=ae.id;let Ce=Se.getValue(we,{value:ae.fieldValue===ae.buttonValue}).value;"string"==typeof Ce&&(Ce=Ce!==ae.buttonValue,Se.setValue(we,{value:Ce}));const Ue=document.createElement("input");if(P.add(Ue),Ue.setAttribute("data-element-id",we),Ue.disabled=ae.readOnly,this._setRequired(Ue,this.data.required),Ue.type="radio",Ue.name=ae.fieldName,Ce&&Ue.setAttribute("checked",!0),Ue.tabIndex=S,Ue.addEventListener("change",st=>{const{name:Ft,checked:nn}=st.target;for(const vn of this._getElementsByName(Ft,we))Se.setValue(vn.id,{value:!1});Se.setValue(we,{value:nn})}),Ue.addEventListener("resetform",st=>{const Ft=ae.defaultFieldValue;st.target.checked=null!=Ft&&Ft===ae.buttonValue}),this.enableScripting&&this.hasJSActions){const st=ae.buttonValue;Ue.addEventListener("updatefromsandbox",Ft=>{this._dispatchEventFromSandbox({value:vn=>{const wn=st===vn.detail.value;for(const $n of this._getElementsByName(vn.target.name)){const Gn=wn&&$n.id===we;$n.domElement&&($n.domElement.checked=Gn),Se.setValue($n.id,{value:Gn})}}},Ft)}),this._setEventListeners(Ue,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ft=>Ft.target.checked)}return this._setBackgroundColor(Ue),this._setDefaultPropertiesFromJS(Ue),this.container.append(Ue),this.container}}class T extends m{constructor(Se){super(Se,{ignoreBorder:Se.data.hasAppearance})}render(){const Se=super.render();Se.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(Se.title=this.data.alternativeText);const ae=Se.lastChild;return this.enableScripting&&this.hasJSActions&&ae&&(this._setDefaultPropertiesFromJS(ae),ae.addEventListener("updatefromsandbox",we=>{this._dispatchEventFromSandbox({},we)})),Se}}class Z extends R{constructor(Se){super(Se,{isRenderable:Se.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const Se=this.annotationStorage,ae=this.data.id,we=Se.getValue(ae,{value:this.data.fieldValue}),Ce=document.createElement("select");P.add(Ce),Ce.setAttribute("data-element-id",ae),Ce.disabled=this.data.readOnly,this._setRequired(Ce,this.data.required),Ce.name=this.data.fieldName,Ce.tabIndex=S;let Ue=this.data.combo&&this.data.options.length>0;this.data.combo||(Ce.size=this.data.options.length,this.data.multiSelect&&(Ce.multiple=!0)),Ce.addEventListener("resetform",wn=>{const $n=this.data.defaultFieldValue;for(const Gn of Ce.options)Gn.selected=Gn.value===$n});for(const wn of this.data.options){const $n=document.createElement("option");$n.textContent=wn.displayValue,$n.value=wn.exportValue,we.value.includes(wn.exportValue)&&($n.setAttribute("selected",!0),Ue=!1),Ce.append($n)}let st=null;if(Ue){const wn=document.createElement("option");wn.value=" ",wn.setAttribute("hidden",!0),wn.setAttribute("selected",!0),Ce.prepend(wn),st=()=>{wn.remove(),Ce.removeEventListener("input",st),st=null},Ce.addEventListener("input",st)}const Ft=wn=>{const $n=wn?"value":"textContent",{options:Gn,multiple:ir}=Ce;return ir?Array.prototype.filter.call(Gn,Wt=>Wt.selected).map(Wt=>Wt[$n]):-1===Gn.selectedIndex?null:Gn[Gn.selectedIndex][$n]};let nn=Ft(!1);const vn=wn=>Array.prototype.map.call(wn.target.options,Gn=>({displayValue:Gn.textContent,exportValue:Gn.value}));return this.enableScripting&&this.hasJSActions?(Ce.addEventListener("updatefromsandbox",wn=>{this._dispatchEventFromSandbox({value(Gn){null==st||st();const ir=Gn.detail.value,Wt=new Set(Array.isArray(ir)?ir:[ir]);for(const jt of Ce.options)jt.selected=Wt.has(jt.value);Se.setValue(ae,{value:Ft(!0)}),nn=Ft(!1)},multipleSelection(Gn){Ce.multiple=!0},remove(Gn){const ir=Ce.options,Wt=Gn.detail.remove;ir[Wt].selected=!1,Ce.remove(Wt),ir.length>0&&-1===Array.prototype.findIndex.call(ir,on=>on.selected)&&(ir[0].selected=!0),Se.setValue(ae,{value:Ft(!0),items:vn(Gn)}),nn=Ft(!1)},clear(Gn){for(;0!==Ce.length;)Ce.remove(0);Se.setValue(ae,{value:null,items:[]}),nn=Ft(!1)},insert(Gn){const{index:ir,displayValue:Wt,exportValue:jt}=Gn.detail.insert,on=Ce.children[ir],mn=document.createElement("option");mn.textContent=Wt,mn.value=jt,on?on.before(mn):Ce.append(mn),Se.setValue(ae,{value:Ft(!0),items:vn(Gn)}),nn=Ft(!1)},items(Gn){const{items:ir}=Gn.detail;for(;0!==Ce.length;)Ce.remove(0);for(const Wt of ir){const{displayValue:jt,exportValue:on}=Wt,mn=document.createElement("option");mn.textContent=jt,mn.value=on,Ce.append(mn)}Ce.options.length>0&&(Ce.options[0].selected=!0),Se.setValue(ae,{value:Ft(!0),items:vn(Gn)}),nn=Ft(!1)},indices(Gn){const ir=new Set(Gn.detail.indices);for(const Wt of Gn.target.options)Wt.selected=ir.has(Wt.index);Se.setValue(ae,{value:Ft(!0)}),nn=Ft(!1)},editable(Gn){Gn.target.disabled=!Gn.detail.editable}},wn)}),Ce.addEventListener("input",wn=>{var Gn;const $n=Ft(!0);Se.setValue(ae,{value:$n}),wn.preventDefault(),null==(Gn=this.linkService.eventBus)||Gn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:ae,name:"Keystroke",value:nn,changeEx:$n,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(Ce,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],wn=>wn.target.value)):Ce.addEventListener("input",function(wn){Se.setValue(ae,{value:Ft(!0)})}
1),this.data.combo&&this._setTextStyle(Ce),this._setBackgroundColor(Ce),this._setDefaultPropertiesFromJS(Ce),this.container.append(Ce),this.container}}class G extends E{constructor(Se){const{data:ae,elements:we}=Se;super(Se,{isRenderable:E._hasPopupData(ae)}),this.elements=we}render(){this.container.classList.add("popupAnnotation");const Se=new $({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),ae=[];for(const we of this.elements)we.popup=Se,ae.push(we.data.id),we.addHighlightArea();return this.container.setAttribute("aria-controls",ae.map(we=>`${t.AnnotationPrefix}${we}`).join(",")),this.container}}class ${constructor(Se){var Wt;dn(this,cn),dn(this,at),dn(this,sn),dn(this,nt),dn(this,he,null),dn(this,Oe,bn(this,cn,lT).bind(this)),dn(this,Ne,bn(this,nt,OE).bind(this)),dn(this,Ye,bn(this,sn,ME).bind(this)),dn(this,Qe,bn(this,at,vy).bind(this)),dn(this,Ct,null),dn(this,Ot,null),dn(this,ln,null),dn(this,Lt,null),dn(this,Jt,null),dn(this,Rt,null),dn(this,it,!1),dn(this,_t,null),dn(this,ut,null),dn(this,yt,null),dn(this,ht,null),dn(this,ct,!1);let{container:ae,color:we,elements:Ce,titleObj:Ue,modificationDate:st,contentsObj:Ft,richText:nn,parent:vn,rect:wn,parentRect:$n,open:Gn}=Se;Vn(this,Ot,ae),Vn(this,ht,Ue),Vn(this,ln,Ft),Vn(this,yt,nn),Vn(this,Jt,vn),Vn(this,Ct,we),Vn(this,ut,wn),Vn(this,Rt,$n),Vn(this,Lt,Ce);const ir=_.PDFDateString.toDateObject(st);ir&&Vn(this,he,vn.l10n.get("annotation_date_string",{date:ir.toLocaleDateString(),time:ir.toLocaleTimeString()})),this.trigger=Ce.flatMap(jt=>jt.getElementsToTriggerPopup());for(const jt of this.trigger)jt.addEventListener("click",Fe(this,Qe)),jt.addEventListener("mouseenter",Fe(this,Ye)),jt.addEventListener("mouseleave",Fe(this,Ne)),jt.classList.add("popupTriggerArea");for(const jt of Ce)null==(Wt=jt.container)||Wt.addEventListener("keydown",Fe(this,Oe));Fe(this,Ot).hidden=!0,Gn&&bn(this,at,vy).call(this)}render(){if(Fe(this,_t))return;const{page:{view:Se},viewport:{rawDims:{pageWidth:ae,pageHeight:we,pageX:Ce,pageY:Ue}}}=Fe(this,Jt),st=Vn(this,_t,document.createElement("div"));if(st.className="popup",Fe(this,Ct)){const ke=st.style.outlineColor=t.Util.makeHexColor(...Fe(this,Ct));st.style.backgroundColor=CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?`color-mix(in srgb, ${ke} 30%, white)`:t.Util.makeHexColor(...Fe(this,Ct).map(Ht=>Math.floor(.7*(255-Ht)+Ht)))}
1const Ft=document.createElement("span");Ft.className="header";const nn=document.createElement("h1");if(Ft.append(nn),({dir:nn.dir,str:nn.textContent}=Fe(this,ht)),st.append(Ft),Fe(this,he)){const ke=document.createElement("span");ke.classList.add("popupDate"),Fe(this,he).then(At=>{ke.textContent=At}),Ft.append(ke)}const vn=Fe(this,ln),wn=Fe(this,yt);if(!(null==wn?void 0:wn.str)||(null==vn?void 0:vn.str)&&vn.str!==wn.str){const ke=this._formatContents(vn);st.append(ke)}else Q.XfaLayer.render({xfaHtml:wn.html,intent:"richText",div:st}),st.lastChild.classList.add("richText","popupContent");let $n=!!Fe(this,Rt),Gn=Fe(this,$n?Rt:ut);for(const ke of Fe(this,Lt))if(!Gn||null!==t.Util.intersect(ke.data.rect,Gn)){Gn=ke.data.rect,$n=!0;break}const ir=t.Util.normalizeRect([Gn[0],Se[3]-Gn[1]+Se[1],Gn[2],Se[3]-Gn[3]+Se[1]]),on=ir[0]+($n?Gn[2]-Gn[0]+5:0),mn=ir[1],{style:Mt}=Fe(this,Ot);Mt.left=100*(on-Ce)/ae+"%",Mt.top=100*(mn-Ue)/we+"%",Fe(this,Ot).append(st)}_formatContents(Se){let{str:ae,dir:we}=Se;const Ce=document.createElement("p");Ce.classList.add("popupContent"),Ce.dir=we;const Ue=ae.split(/(?:\r\n?|\n)/);for(let st=0,Ft=Ue.length;st<Ft;++st)Ce.append(document.createTextNode(Ue[st])),st<Ft-1&&Ce.append(document.createElement("br"));return Ce}forceHide(){Vn(this,ct,this.isVisible),Fe(this,ct)&&(Fe(this,Ot).hidden=!0)}maybeShow(){!Fe(this,ct)||(Vn(this,ct,!1),Fe(this,Ot).hidden=!1)}get isVisible(){return!1===Fe(this,Ot).hidden}}he=new WeakMap,Oe=new WeakMap,Ne=new WeakMap,Ye=new WeakMap,Qe=new WeakMap,Ct=new WeakMap,Ot=new WeakMap,ln=new WeakMap,Lt=new WeakMap,Jt=new WeakMap,Rt=new WeakMap,it=new WeakMap,_t=new WeakMap,ut=new WeakMap,yt=new WeakMap,ht=new WeakMap,ct=new WeakMap,cn=new WeakSet,lT=function(Se){Se.altKey||Se.shiftKey||Se.ctrlKey||Se.metaKey||("Enter"===Se.key||"Escape"===Se.key&&Fe(this,it))&&bn(this,at,vy).call(this)},at=new WeakSet,vy=function(){Vn(this,it,!Fe(this,it)),Fe(this,it)?(bn(this,sn,ME).call(this),Fe(this,Ot).addEventListener("click",Fe(this,Qe)),Fe(this,Ot).addEventListener("keydown",Fe(this,Oe))):(bn(this,nt,OE).call(this),Fe(this,Ot).removeEventListener("click",Fe(this,Qe)),Fe(this,Ot).removeEventListener("keydown",Fe(this,Oe)))},sn=new WeakSet,ME=function(){Fe(this,_t)||this.render(),this.isVisible?Fe(this,it)&&Fe(this,Ot).classList.add("focused"):(Fe(this,Ot).hidden=!1,Fe(this,Ot).style.zIndex=parseInt(Fe(this,Ot).style.zIndex)+1e3)},nt=new WeakSet,OE=function(){Fe(this,Ot).classList.remove("focused"),!Fe(this,it)&&this.isVisible&&(Fe(this,Ot).hidden=!0,Fe(this,Ot).style.zIndex=parseInt(Fe(this,Ot).style.zIndex)-1e3)};class se extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0}),this.textContent=Se.data.textContent,this.textPosition=Se.data.textPosition,this.annotationEditorType=t.AnnotationEditorType.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const Se=document.createElement("div");Se.classList.add("annotationTextContent"),Se.setAttribute("role","comment");for(const ae of this.textContent){const we=document.createElement("span");we.textContent=ae,Se.append(we)}this.container.append(Se)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}q.FreeTextAnnotationElement=se;class y extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0}),dn(this,Nt,null)}render(){this.container.classList.add("lineAnnotation");const Se=this.data,{width:ae,height:we}=C(Se.rect),Ce=this.svgFactory.create(ae,we,!0),Ue=Vn(this,Nt,this.svgFactory.createElement("svg:line"));return Ue.setAttribute("x1",Se.rect[2]-Se.lineCoordinates[0]),Ue.setAttribute("y1",Se.rect[3]-Se.lineCoordinates[1]),Ue.setAttribute("x2",Se.rect[2]-Se.lineCoordinates[2]),Ue.setAttribute("y2",Se.rect[3]-Se.lineCoordinates[3]),Ue.setAttribute("stroke-width",Se.borderStyle.width||1),Ue.setAttribute("stroke","transparent"),Ue.setAttribute("fill","transparent"),Ce.append(Ue),this.container.append(Ce),!Se.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Fe(this,Nt)}addHighlightArea(){this.container.classList.add("highlightArea")}}Nt=new WeakMap;
1class k extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0}),dn(this,wt,null)}render(){this.container.classList.add("squareAnnotation");const Se=this.data,{width:ae,height:we}=C(Se.rect),Ce=this.svgFactory.create(ae,we,!0),Ue=Se.borderStyle.width,st=Vn(this,wt,this.svgFactory.createElement("svg:rect"));return st.setAttribute("x",Ue/2),st.setAttribute("y",Ue/2),st.setAttribute("width",ae-Ue),st.setAttribute("height",we-Ue),st.setAttribute("stroke-width",Ue||1),st.setAttribute("stroke","transparent"),st.setAttribute("fill","transparent"),Ce.append(st),this.container.append(Ce),!Se.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Fe(this,wt)}addHighlightArea(){this.container.classList.add("highlightArea")}}wt=new WeakMap;class I extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0}),dn(this,bt,null)}render(){this.container.classList.add("circleAnnotation");const Se=this.data,{width:ae,height:we}=C(Se.rect),Ce=this.svgFactory.create(ae,we,!0),Ue=Se.borderStyle.width,st=Vn(this,bt,this.svgFactory.createElement("svg:ellipse"));return st.setAttribute("cx",ae/2),st.setAttribute("cy",we/2),st.setAttribute("rx",ae/2-Ue/2),st.
1setAttribute("ry",we/2-Ue/2),st.setAttribute("stroke-width",Ue||1),st.setAttribute("stroke","transparent"),st.setAttribute("fill","transparent"),Ce.append(st),this.container.append(Ce),!Se.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Fe(this,bt)}addHighlightArea(){this.container.classList.add("highlightArea")}}bt=new WeakMap;class H extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0}),dn(this,Kt,null),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const Se=this.data,{width:ae,height:we}=C(Se.rect),Ce=this.svgFactory.create(ae,we,!0);let Ue=[];for(const Ft of Se.vertices)Ue.push(Ft.x-Se.rect[0]+","+(Se.rect[3]-Ft.y));Ue=Ue.join(" ");const st=Vn(this,Kt,this.svgFactory.createElement(this.svgElementName));return st.setAttribute("points",Ue),st.setAttribute("stroke-width",Se.borderStyle.width||1),st.setAttribute("stroke","transparent"),st.setAttribute("fill","transparent"),Ce.append(st),this.container.append(Ce),!Se.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Fe(this,Kt)}addHighlightArea(){this.container.classList.add("highlightArea")}}Kt=new WeakMap;class ee extends H{constructor(Se){super(Se),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class z extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class oe extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0}),dn(this,Un,[]),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=t.AnnotationEditorType.INK}render(){this.container.classList.add(this.containerClassName);const Se=this.data,{width:ae,height:we}=C(Se.rect),Ce=this.svgFactory.create(ae,we,!0);for(const Ue of Se.inkLists){let st=[];for(const nn of Ue)st.push(`${nn.x-Se.rect[0]},${Se.rect[3]-nn.y}`);st=st.join(" ");const Ft=this.svgFactory.createElement(this.svgElementName);Fe(this,Un).push(Ft),Ft.setAttribute("points",st),Ft.setAttribute("stroke-width",Se.borderStyle.width||1),Ft.setAttribute("stroke","transparent"),Ft.setAttribute("fill","transparent"),!Se.popupRef&&this.hasPopupData&&this._createPopup(),Ce.append(Ft)}return this.container.append(Ce),this.container}getElementsToTriggerPopup(){return Fe(this,Un)}addHighlightArea(){this.container.classList.add("highlightArea")}}Un=new WeakMap,q.InkAnnotationElement=oe;class ve extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class We extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class Re extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class He extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class ge extends E{constructor(Se){super(Se,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}q.StampAnnotationElement=ge;class O extends E{constructor(Se){var Ce;super(Se,{isRenderable:!0}),dn(this,tn),dn(this,vt,null);const{filename:ae,content:we}=this.data.file;this.filename=(0,_.getFilenameFromUrl)(ae,!0),this.content=we,null==(Ce=this.linkService.eventBus)||Ce.dis
1patch("fileattachmentannotation",{source:this,filename:ae,content:we})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:Se,data:ae}=this;let we;ae.hasAppearance||0===ae.fillAlpha?we=document.createElement("div"):(we=document.createElement("img"),we.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(ae.name)?"paperclip":"pushpin"}.svg`,ae.fillAlpha&&ae.fillAlpha<1&&(we.style=`filter: opacity(${Math.round(100*ae.fillAlpha)}%);`)),we.addEventListener("dblclick",bn(this,tn,kE).bind(this)),Vn(this,vt,we);const{isMac:Ce}=t.FeatureTest.platform;return Se.addEventListener("keydown",Ue=>{"Enter"===Ue.key&&(Ce?Ue.metaKey:Ue.ctrlKey)&&bn(this,tn,kE).call(this)}),!ae.popupRef&&this.hasPopupData?this._createPopup():we.classList.add("popupTriggerArea"),Se.append(we),Se}getElementsToTriggerPopup(){return Fe(this,vt)}addHighlightArea(){this.container.classList.add("highlightArea")}}vt=new WeakMap,tn=new WeakSet,kE=function(){var Se;null==(Se=this.downloadManager)||Se.openOrDownloadData(this.container,this.content,this.filename)},Sn=new WeakMap,Nn=new WeakMap,rr=new WeakMap,Fn=new WeakSet,uT=function(Se,ae){var Ce;const we=Se.firstChild||Se;we.id=`${t.AnnotationPrefix}${ae}`,this.div.append(Se),null==(Ce=Fe(this,Sn))||Ce.moveElementInDOM(this.div,Se,we,!1)},nr=new WeakSet,NE=function(){if(!Fe(this,Nn))return;const Se=this.div;for(const[ae,we]of Fe(this,Nn)){const Ce=Se.querySelector(`[data-annotation-id="${ae}"]`);if(!Ce)continue;const{firstChild:Ue}=Ce;Ue?"CANVAS"===Ue.nodeName?Ue.replaceWith(we):Ue.before(we):Ce.append(we)}Fe(this,Nn).clear()},q.AnnotationLayer=class b{constructor(Se){dn(this,Fn),dn(this,nr),dn(this,Sn,null),dn(this,Nn,null),dn(this,rr,new Map);let{div:ae,accessibilityManager:we,annotationCanvasMap:Ce,l10n:Ue,page:st,viewport:Ft}=Se;this.div=ae,Vn(this,Sn,we),Vn(this,Nn,Ce),this.l10n=Ue,this.page=st,this.viewport=Ft,this.zIndex=0,this.l10n||(this.l10n=te.NullL10n)}render(Se){var ae=this;return _asyncToGenerator(function*(){var Ft,nn;const{annotations:we}=Se,Ce=ae.div;(0,_.setLayerDimensions)(Ce,ae.viewport);const Ue=new Map,st={data:null,layer:Ce,linkService:Se.linkService,downloadManager:Se.downloadManager,imageResourcesPath:Se.imageResourcesPath||"",renderForms:!1!==Se.renderForms,svgFactory:new _.DOMSVGFactory,annotationStorage:Se.annotationStorage||new x.AnnotationStorage,enableScripting:!0===Se.enableScripting,hasJSActions:Se.hasJSActions,fieldObjects:Se.fieldObjects,parent:ae,elements:null};for(const vn of we){if(vn.noHTML)continue;const wn=vn.annotationType===t.AnnotationType.POPUP;if(wn){const ir=Ue.get(vn.id);if(!ir)continue;st.elements=ir}else{const{width:ir,height:Wt}=C(vn.rect);if(ir<=0||Wt<=0)continue}st.data=vn;const $n=L.create(st);if(!$n.isRenderable)continue;if(!wn&&vn.popupRef){const ir=Ue.get(vn.popupRef);ir?ir.push($n):Ue.set(vn.popupRef,[$n])}$n.annotationEditorType>0&&Fe(ae,rr).set($n.data.id,$n);const Gn=$n.render();vn.hidden&&(Gn.style.visibility="hidden"),bn(Ft=ae,Fn,uT).call(Ft,Gn,vn.id)}bn(nn=ae,nr,NE).call(nn),yield ae.l10n.translate(Ce)})()}update(Se){let{viewport:ae}=Se;const we=this.div;this.viewport=ae,(0,_.setLayerDimensions)(we,{rotation:ae.rotation}),bn(this,nr,NE).call(this),we.hidden=!1}getEditableAnnotations(){return Array.from(Fe(this,rr).values())}getEditableAnnotation(Se){return Fe(this,rr).get(Se)}}},(xe,q)=>{function c(x){return Math.floor(255*Math.max(0,Math.min(1,x))).toString(16).padStart(2,"0")}function t(x){return Math.max(0,Math.min(255,255*x))}Object.defineProperty(q,"__esModule",{value:!0}),q.ColorConverters=void 0,q.ColorConverters=class _{static CMYK_G(re){let[te,Q,S,W]=re;return["G",1-Math.min(1,.3*te+.59*S+.11*Q+W)]}static G_CMYK(re){let[te]=re;return["CMYK",0,0,0,1-te]}static G_RGB(re){let[te]=re;return["RGB",te,te,te]}static G_rgb(re){let[te]=re;return te=t(te),[te,te,te]}static G_HTML(re){let[te]=re;const Q=c(te);return`#${Q}${Q}${Q}`}static RGB_G(re){let[te,Q,S]=re;return["G",.3*te+.59*Q+.11*S]}static RGB_rgb(re){return re.map(t)}static RGB_HTML(re){return`#${re.map(c).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(re){let[te,Q,S,W]=re;return["RGB",1-Math.min(1,te+W),1-Math.min(1,S+W),1-Math.min(1,Q+W)]}static CMYK_rgb(re){let[te,Q,S,W]=re;return[t(1-Math.min(1,te+W)),t(1-Math.min(1,S+W)),t(1-Math.min(1,Q+W))]}static CMYK_HTML(re){const te=this.CMYK_RGB(re).slice(1);return this.RGB_HTML(te)}static RGB_CMYK(re){let[te,Q,S]=re;const W=1-te,P=1-Q,C=1-S;return["CMYK",W,P,C,Math.min(W,P,C)]}}},(xe,q)=>
1{Object.defineProperty(q,"__esModule",{value:!0}),q.NullL10n=void 0,q.getL10nFallback=t;const c={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing\u2026",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function t(re,te){switch(re){case"find_match_count":re=`find_match_count[${1===te.total?"one":"other"}]`;break;case"find_match_count_limit":re=`find_match_count_limit[${1===te.limit?"one":"other"}]`}return c[re]||""}c.print_progress_percent="{{progress}}%",q.NullL10n={getLanguage:()=>_asyncToGenerator(function*(){return"en-us"})(),getDirection:()=>_asyncToGenerator(function*(){return"ltr"})(),get(re){var te=arguments;return _asyncToGenerator(function*(){let Q=te.length>1&&void 0!==te[1]?te[1]:null;return function _(re,te){return te?re.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(Q,S)=>S in te?te[S]:"{{"+S+"}}"):re}(te.length>2&&void 0!==te[2]?te[2]:t(re,Q),Q)})()},translate:re=>_asyncToGenerator(function*(){})()}},(xe,q,c)=>{Object.defineProperty(q,"__esModule",{value:!0}),q.XfaLayer=void 0,c(89);var t=c(194);q.XfaLayer=class _{static setupStorage(re,te,Q,S,W){const P=S.getValue(te,{value:null});switch(Q.name){case"textarea":if(null!==P.value&&(re.textContent=P.value),"print"===W)break;re.addEventListener("input",C=>{S.setValue(te,{value:C.target.value})});break;case"input":if("radio"===Q.attributes.type||"checkbox"===Q.attributes.type){if(P.value===Q.attributes.xfaOn?re.setAttribute("checked",!0):P.value===Q.attributes.xfaOff&&re.removeAttribute("checked"),"print"===W)break;re.addEventListener("change",C=>{S.setValue(te,{value:C.target.getAttribute(C.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==P.value&&re.setAttribute("value",P.value),"print"===W)break;re.addEventListener("input",C=>{S.setValue(te,{value:C.target.value})})}break;case"select":if(null!==P.value){re.setAttribute("value",P.value);for(const C of Q.children)C.attributes.value===P.value?C.attributes.selected=!0:C.attributes.hasOwnProperty("selected")&&delete C.attributes.selected}re.addEventListener("input",C=>{const L=C.target.options;S.setValue(te,{value:-1===L.selectedIndex?"":L[L.selectedIndex].value})})}}static setAttributes(re){let{html:te,element:Q,storage:S=null,intent:W,linkService:P}=re;const{attributes:C}=Q,L=te instanceof HTMLAnchorElement;"radio"===C.type&&(C.name=`${C.name}-${W}`);for(const[E,m]of Object.entries(C))if(null!=m)switch(E){case"class":m.length&&te.setAttribute(E,m.join(" "));break;case"dataId":break;case"id":te.setAttribute("data-element-id",m);break;case"style":Object.assign(te.style,m);break;case"textContent":te.textContent=m;break;default:(!L||"href"!==E&&"newWindow"!==E)&&te.setAttribute(E,m)}L&&P.addLinkAttributes(te,C.href,C.newWindow),S&&C.dataId&&this.setupStorage(te,C.dataId,Q,S)}static render(re){var m;const te=re.annotationStorage,Q=re.linkService,S=re.xfaHtml,W=re.intent||"display",P=document.createElement(S.name);S.attributes&&this.setAttributes({html:P,element:S,intent:W,linkService:Q});const C=[[S,-1,P]],L=re.div;if(L.append(P),re.viewport){const v=`matrix(${re.viewport.transform.join(",")})`;L.style.transform=v}"richText"!==W&&L.setAttribute("class","xfaLayer xfaFont");const E=[];for(;C.length>0;){const[v,R,j]=C.at(-1);if(R+1===v.children.length){C.pop();continue}const M=v.children[++C.at(-1)[1]];if(null===M)continue;const{name:V}=M;if("#text"===V){const T=document.createTextNode(M.value);E.push(T),j.append(T);continue}const f=(null==(m=null==M?void 0:M.attributes)?void 0:m.xmlns)?document.createElementNS(M.attributes.xmlns,V):document.createElement(V);if(j.append(f),M.attributes&&this.setAttributes({html:f,element:M,storage:te,intent:W,linkService:Q}),M.children&&M.children.length>0)C.push([M,-1,f]);else if(M.value){const T=document.createTextNode(M.value);t.XfaText.shouldBuildText(V)&&E.push(T),f.append(T)}}for(const v of L.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))v.setAttribute("readOnly",!0);return{textDivs:E}}static update(re){const te=`matrix(${re.viewport.transform.join(",")})`;re.div.style.transform=te,re.div.hidden=!1}}},(xe,q,c)=>{var S,W,P,C,L,E,m,v,R,j,M,V,f,T,Z,cT,$,hT,y,dT,I,fT,ee,FE,oe,pT,We,LE,He,gT,O,mT,p,vT,N,yT,J,bT,he,yc,Ne,BE,Qe,yy,Ot,by,Lt,np,Rt,jE,_t,_y,yt,_T,ct,UE,gt,ET,St,wT,ze,VE,mt,Ey,wt,rp;
1Object.defineProperty(q,"__esModule",{value:!0}),q.InkEditor=void 0,c(89),c(2);var t=c(1),_=c(164),x=c(198),re=c(168),te=c(165);const Kt=class extends _.AnnotationEditor{constructor(vt){super(hh(Tl({},vt),{name:"inkEditor"})),dn(this,Z),dn(this,$),dn(this,y),dn(this,I),dn(this,ee),dn(this,oe),dn(this,We),dn(this,He),dn(this,O),dn(this,p),dn(this,N),dn(this,J),dn(this,he),dn(this,Ne),dn(this,Qe),dn(this,Ot),dn(this,Lt),dn(this,Rt),dn(this,_t),dn(this,St),dn(this,ze),dn(this,mt),dn(this,wt),dn(this,S,0),dn(this,W,0),dn(this,P,this.canvasPointermove.bind(this)),dn(this,C,this.canvasPointerleave.bind(this)),dn(this,L,this.canvasPointerup.bind(this)),dn(this,E,this.canvasPointerdown.bind(this)),dn(this,m,new Path2D),dn(this,v,!1),dn(this,R,!1),dn(this,j,!1),dn(this,M,null),dn(this,V,0),dn(this,f,0),dn(this,T,null),this.color=vt.color||null,this.thickness=vt.thickness||null,this.opacity=vt.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(vt){_.AnnotationEditor.initialize(vt,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(vt,tn){switch(vt){case t.AnnotationEditorParamsType.INK_THICKNESS:Kt._defaultThickness=tn;break;case t.AnnotationEditorParamsType.INK_COLOR:Kt._defaultColor=tn;break;case t.AnnotationEditorParamsType.INK_OPACITY:Kt._defaultOpacity=tn/100}}updateParams(vt,tn){switch(vt){case t.AnnotationEditorParamsType.INK_THICKNESS:bn(this,Z,cT).call(this,tn);break;case t.AnnotationEditorParamsType.INK_COLOR:bn(this,$,hT).call(this,tn);break;case t.AnnotationEditorParamsType.INK_OPACITY:bn(this,y,dT).call(this,tn)}}static get defaultPropertiesToUpdate(){return[[t.AnnotationEditorParamsType.INK_THICKNESS,Kt._defaultThickness],[t.AnnotationEditorParamsType.INK_COLOR,Kt._defaultColor||_.AnnotationEditor._defaultLineColor],[t.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*Kt._defaultOpacity)]]}get propertiesToUpdate(){var vt;return[[t.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||Kt._defaultThickness],[t.AnnotationEditorParamsType.INK_COLOR,this.color||Kt._defaultColor||_.AnnotationEditor._defaultLineColor],[t.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(null!=(vt=this.opacity)?vt:Kt._defaultOpacity))]]}rebuild(){!this.parent||(super.rebuild(),null!==this.div&&(this.canvas||(bn(this,Qe,yy).call(this),bn(this,Ot,by).call(this)),this.isAttachedToDOM||(this.parent.add(this),bn(this,Lt,np).call(this)),bn(this,wt,rp).call(this)))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,Fe(this,M).disconnect(),Vn(this,M,null),super.remove())}setParent(vt){!this.parent&&vt?this._uiManager.removeShouldRescale(this):this.parent&&null===vt&&this._uiManager.addShouldRescale(this),super.setParent(vt)}onScaleChanging(){const[vt,tn]=this.parentDimensions;this.setDimensions(this.width*vt,this.height*tn)}enableEditMode(){Fe(this,v)||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",Fe(this,E)))}disableEditMode(){!this.isInEditMode()||null===this.canvas||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",Fe(this,E)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}commit(){Fe(this,v)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),Vn(this,v,!0),this.div.classList.add("disabled"),bn(this,wt,rp).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(vt){!this._focusEventsAllowed||(super.focusin(vt),this.enableEditMode())}canvasPointerdown(vt){0!==vt.button||!this.isInEditMode()||Fe(this,v)||(this.setInForeground(),vt.preventDefault(),"mouse"!==vt.type&&this.div.focus(),bn(this,oe,pT).call(this,vt.offsetX,vt.offsetY))}canvasPointermove(vt){vt.preventDefault(),bn(this,We,LE).call(this,vt.offsetX,vt.offsetY)}canvasPointerup(vt){vt.preventDefault(),bn(this,Ne,BE).call(this,vt)}canvasPointerleave(vt){bn(this,Ne,BE).call(this,vt)}get isResizable(){return!this.isEmpty()&&Fe(this,v)}
1render(){if(this.div)return this.div;let vt,tn;this.width&&(vt=this.x,tn=this.y),super.render(),_.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Fn=>{var jn;return null==(jn=this.div)?void 0:jn.setAttribute("aria-label",Fn)});const[Cn,Sn,Nn,rr]=bn(this,I,fT).call(this);if(this.setAt(Cn,Sn,0,0),this.setDims(Nn,rr),bn(this,Qe,yy).call(this),this.width){const[Fn,jn]=this.parentDimensions;this.setAspectRatio(this.width*Fn,this.height*jn),this.setAt(vt*Fn,tn*jn,this.width*Fn,this.height*jn),Vn(this,j,!0),bn(this,Lt,np).call(this),this.setDims(this.width*Fn,this.height*jn),bn(this,he,yc).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return bn(this,Ot,by).call(this),this.div}setDimensions(vt,tn){const Cn=Math.round(vt),Sn=Math.round(tn);if(Fe(this,V)===Cn&&Fe(this,f)===Sn)return;Vn(this,V,Cn),Vn(this,f,Sn),this.canvas.style.visibility="hidden";const[Nn,rr]=this.parentDimensions;this.width=vt/Nn,this.height=tn/rr,this.fixAndSetPosition(),Fe(this,v)&&bn(this,Rt,jE).call(this,vt,tn),bn(this,Lt,np).call(this),bn(this,he,yc).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(vt,tn,Cn){var Ce,Ue,st;if(vt instanceof x.InkAnnotationElement)return null;const Sn=super.deserialize(vt,tn,Cn);Sn.thickness=vt.thickness,Sn.color=t.Util.makeHexColor(...vt.color),Sn.opacity=vt.opacity;const[Nn,rr]=Sn.pageDimensions,Fn=Sn.width*Nn,jn=Sn.height*rr,nr=Sn.parentScale,Tt=vt.thickness/2;Vn(Sn,v,!0),Vn(Sn,V,Math.round(Fn)),Vn(Sn,f,Math.round(jn));const{paths:hn,rect:Se,rotation:ae}=vt;for(let{bezier:Ft}of hn){Ft=bn(Ce=Kt,gt,ET).call(Ce,Ft,Se,ae);const nn=[];Sn.paths.push(nn);let vn=nr*(Ft[0]-Tt),wn=nr*(Ft[1]-Tt);for(let Gn=2,ir=Ft.length;Gn<ir;Gn+=6){const Mt=nr*(Ft[Gn+4]-Tt),ke=nr*(Ft[Gn+5]-Tt);nn.push([[vn,wn],[nr*(Ft[Gn]-Tt),nr*(Ft[Gn+1]-Tt)],[nr*(Ft[Gn+2]-Tt),nr*(Ft[Gn+3]-Tt)],[Mt,ke]]),vn=Mt,wn=ke}const $n=bn(this,yt,_T).call(this,nn);Sn.bezierPath2D.push($n)}const we=bn(Ue=Sn,ze,VE).call(Ue);return Vn(Sn,W,Math.max(_.AnnotationEditor.MIN_SIZE,we[2]-we[0])),Vn(Sn,S,Math.max(_.AnnotationEditor.MIN_SIZE,we[3]-we[1])),bn(st=Sn,Rt,jE).call(st,Fn,jn),Sn}serialize(){if(this.isEmpty())return null;const vt=this.getRect(0,0),tn=_.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:t.AnnotationEditorType.INK,color:tn,thickness:this.thickness,opacity:this.opacity,paths:bn(this,St,wT).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,vt),pageIndex:this.pageIndex,rect:vt,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}};let Q=Kt;S=new WeakMap,W=new WeakMap,P=new WeakMap,C=new WeakMap,L=new WeakMap,E=new WeakMap,m=new WeakMap,v=new WeakMap,R=new WeakMap,j=new WeakMap,M=new WeakMap,V=new WeakMap,f=new WeakMap,T=new WeakMap,Z=new WeakSet,cT=function(vt){const tn=this.thickness;this.addCommands({cmd:()=>{this.thickness=vt,bn(this,wt,rp).call(this)},undo:()=>{this.thickness=tn,bn(this,wt,rp).call(this)},mustExec:!0,type:t.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},$=new WeakSet,hT=function(vt){const tn=this.color;this.addCommands({cmd:()=>{this.color=vt,bn(this,he,yc).call(this)},undo:()=>{this.color=tn,bn(this,he,yc).call(this)},mustExec:!0,type:t.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},y=new WeakSet,dT=function(vt){vt/=100;const tn=this.opacity;this.addCommands({cmd:()=>{this.opacity=vt,bn(this,he,yc).call(this)},undo:()=>{this.opacity=tn,bn(this,he,yc).call(this)},mustExec:!0,type:t.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},I=new WeakSet,fT=function(){const{parentRotation:vt,parentDimensions:[tn,Cn]}=this;switch(vt){case 90:return[0,Cn,Cn,tn];case 180:return[tn,Cn,tn,Cn];case 270:return[tn,0,Cn,tn];default:return[0,0,tn,Cn]}},ee=new WeakSet,FE=function(){const{ctx:vt,color:tn,opacity:Cn,thickness:Sn,parentScale:Nn,scaleFactor:rr}=this;vt.lineWidth=Sn*Nn/rr,vt.lineCap="round",vt.lineJoin="round",vt.miterLimit=10,vt.strokeStyle=`${tn}${(0,te.opacityToHex)(Cn)}`},oe=new WeakSet,pT=function(vt,tn){this.canvas.addEventListener("contextmenu",re.noContextMenu),this.canvas.addEventListener("pointerleave",Fe(this,C)),this.canvas.addEventListener("pointermove",Fe(this,P)),this.canvas.addEventListener("pointerup",Fe(this,L)),this.canvas.removeEventListener("pointerdown",Fe(this,E)),this.isEditing=!0,Fe(this,j)||(Vn(this,j,!0),bn(this,Lt,np).call(this),this.thickness||(this.thickness=Kt._defaultThickness),this.color||(this.color=Kt._defaultColor||_.AnnotationEditor._defaultLineColor),null!=this.opacity||(this.opacity=Kt._defaultOpacity)),this.currentPath.push([vt,tn]),Vn(this,R,!1),bn(this,ee,FE).call(this),Vn(this,T,()=>{bn(this,p,vT).call(this),Fe(this,T)&&window.requestAnimationFrame(Fe(this,T))}),window.requestAnimationFrame(Fe(this,T))},We=new WeakSet,LE=function(vt,tn){const[Cn,Sn]=this.currentPath.at(-1);if(this.currentPath.length>1&&vt===Cn&&tn===Sn)return;const Nn=this.currentPath;let rr=Fe(this,m);if(Nn.push([vt,tn]),Vn(this,R,!0),Nn.length<=2)return rr.moveTo(...Nn[0]),void rr.lineTo(vt,tn);3===Nn.length&&(Vn(this,m,rr=new Path2D),rr.moveTo(...Nn[0])),bn(this,N,yT).call(this,rr,...Nn.at(-3),...Nn.at(-2),vt,tn)},He=new WeakSet,gT=function(){if(0===this.currentPath.length)return;const vt=this.currentPath.at(-1);Fe(this,m).lineTo(...vt)},O=new WeakSet,mT=function(vt,tn){let Cn;if(Vn(this,T,null),vt=Math.min(Math.max(vt,0),this.canvas.width),tn=Math.min(Math.max(tn,0
1),this.canvas.height),bn(this,We,LE).call(this,vt,tn),bn(this,He,gT).call(this),1!==this.currentPath.length)Cn=bn(this,J,bT).call(this);else{const jn=[vt,tn];Cn=[[jn,jn.slice(),jn.slice(),jn]]}const Sn=Fe(this,m),Nn=this.currentPath;this.currentPath=[],Vn(this,m,new Path2D),this.addCommands({cmd:()=>{this.allRawPaths.push(Nn),this.paths.push(Cn),this.bezierPath2D.push(Sn),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(bn(this,Qe,yy).call(this),bn(this,Ot,by).call(this)),bn(this,wt,rp).call(this))},mustExec:!0})},p=new WeakSet,vT=function(){if(!Fe(this,R))return;Vn(this,R,!1),Math.ceil(this.thickness*this.parentScale);const tn=this.currentPath.slice(-3),Cn=tn.map(Tt=>Tt[0]),Sn=tn.map(Tt=>Tt[1]),{ctx:nr}=(Math.min(...Cn),Math.max(...Cn),Math.min(...Sn),Math.max(...Sn),this);nr.save(),nr.clearRect(0,0,this.canvas.width,this.canvas.height);for(const Tt of this.bezierPath2D)nr.stroke(Tt);nr.stroke(Fe(this,m)),nr.restore()},N=new WeakSet,yT=function(vt,tn,Cn,Sn,Nn,rr,Fn){const jn=(tn+Sn)/2,nr=(Cn+Nn)/2,Tt=(Sn+rr)/2,hn=(Nn+Fn)/2;vt.bezierCurveTo(jn+2*(Sn-jn)/3,nr+2*(Nn-nr)/3,Tt+2*(Sn-Tt)/3,hn+2*(Nn-hn)/3,Tt,hn)},J=new WeakSet,bT=function(){const vt=this.currentPath;if(vt.length<=2)return[[vt[0],vt[0],vt.at(-1),vt.at(-1)]];const tn=[];let Cn,[Sn,Nn]=vt[0];for(Cn=1;Cn<vt.length-2;Cn++){const[Se,ae]=vt[Cn],[we,Ce]=vt[Cn+1],Ue=(Se+we)/2,st=(ae+Ce)/2;tn.push([[Sn,Nn],[Sn+2*(Se-Sn)/3,Nn+2*(ae-Nn)/3],[Ue+2*(Se-Ue)/3,st+2*(ae-st)/3],[Ue,st]]),[Sn,Nn]=[Ue,st]}const[rr,Fn]=vt[Cn],[jn,nr]=vt[Cn+1];return tn.push([[Sn,Nn],[Sn+2*(rr-Sn)/3,Nn+2*(Fn-Nn)/3],[jn+2*(rr-jn)/3,nr+2*(Fn-nr)/3],[jn,nr]]),tn},he=new WeakSet,yc=function(){if(this.isEmpty())return void bn(this,_t,_y).call(this);bn(this,ee,FE).call(this);const{canvas:vt,ctx:tn}=this;tn.setTransform(1,0,0,1,0,0),tn.clearRect(0,0,vt.width,vt.height),bn(this,_t,_y).call(this);for(const Cn of this.bezierPath2D)tn.stroke(Cn)},Ne=new WeakSet,BE=function(vt){this.canvas.removeEventListener("pointerleave",Fe(this,C)),this.canvas.removeEventListener("pointermove",Fe(this,P)),this.canvas.removeEventListener("pointerup",Fe(this,L)),this.canvas.addEventListener("pointerdown",Fe(this,E)),setTimeout(()=>{this.canvas.removeEventListener("contextmenu",re.noContextMenu)},10),bn(this,O,mT).call(this,vt.offsetX,vt.offsetY),this.addToAnnotationStorage(),this.setInBackground()},Qe=new WeakSet,yy=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",_.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(vt=>{var tn;return null==(tn=this.canvas)?void 0:tn.setAttribute("aria-label",vt)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Ot=new WeakSet,by=function(){Vn(this,M,new ResizeObserver(vt=>{const tn=vt[0].contentRect;tn.width&&tn.height&&this.setDimensions(tn.width,tn.height)})),Fe(this,M).observe(this.div)},Lt=new WeakSet,np=function(){if(!Fe(this,j))return;const[vt,tn]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*vt),this.canvas.height=Math.ceil(this.height*tn),bn(this,_t,_y).call(this)},Rt=new WeakSet,jE=function(vt,tn){const Cn=bn(this,mt,Ey).call(this),Sn=(vt-Cn)/Fe(this,W),Nn=(tn-Cn)/Fe(this,S);this.scaleFactor=Math.min(Sn,Nn)},_t=new WeakSet,_y=function(){const vt=bn(this,mt,Ey).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+vt,this.translationY*this.scaleFactor+vt)},yt=new WeakSet,_T=function(vt){const tn=new Path2D;for(let Cn=0,Sn=vt.length;Cn<Sn;Cn++){const[Nn,rr,Fn,jn]=vt[Cn];0===Cn&&tn.moveTo(...Nn),tn.bezierCurveTo(rr[0],rr[1],Fn[0],Fn[1],jn[0],jn[1])}return tn},ct=new WeakSet,UE=function(vt,tn,Cn){const[Sn,Nn,rr,Fn]=tn;switch(Cn){case 0:for(let jn=0,nr=vt.length;jn<nr;jn+=2)vt[jn]+=Sn,vt[jn+1]=Fn-vt[jn+1];break;case 90:for(let jn=0,nr=vt.length;jn<nr;jn+=2){const Tt=vt[jn];vt[jn]=vt[jn+1]+Sn,vt[jn+1]=Tt+Nn}break;case 180:for(let jn=0,nr=vt.length;jn<nr;jn+=2)vt[jn]=rr-vt[jn],vt[jn+1]+=Nn;break;case 270:for(let jn=0,nr=vt.length;jn<nr;jn+=2){const Tt=vt[jn];vt[jn]=rr-vt[jn+1],vt[jn+1]=Fn-Tt}break;default:throw new Error("Invalid rotation")}return vt},gt=new WeakSet,ET=function(vt,tn,Cn){const[Sn,Nn,rr,Fn]=tn;switch(Cn){case 0:for(let jn=0,nr=vt.length;jn<nr;
1jn+=2)vt[jn]-=Sn,vt[jn+1]=Fn-vt[jn+1];break;case 90:for(let jn=0,nr=vt.length;jn<nr;jn+=2){const Tt=vt[jn];vt[jn]=vt[jn+1]-Nn,vt[jn+1]=Tt-Sn}break;case 180:for(let jn=0,nr=vt.length;jn<nr;jn+=2)vt[jn]=rr-vt[jn],vt[jn+1]-=Nn;break;case 270:for(let jn=0,nr=vt.length;jn<nr;jn+=2){const Tt=vt[jn];vt[jn]=Fn-vt[jn+1],vt[jn+1]=rr-Tt}break;default:throw new Error("Invalid rotation")}return vt},St=new WeakSet,wT=function(vt,tn,Cn,Sn){var nr,Tt;const Nn=[],rr=this.thickness/2,Fn=vt*tn+rr,jn=vt*Cn+rr;for(const hn of this.paths){const Se=[],ae=[];for(let we=0,Ce=hn.length;we<Ce;we++){const[Ue,st,Ft,nn]=hn[we],vn=vt*Ue[0]+Fn,wn=vt*Ue[1]+jn,$n=vt*st[0]+Fn,Gn=vt*st[1]+jn,ir=vt*Ft[0]+Fn,Wt=vt*Ft[1]+jn,jt=vt*nn[0]+Fn,on=vt*nn[1]+jn;0===we&&(Se.push(vn,wn),ae.push(vn,wn)),Se.push($n,Gn,ir,Wt,jt,on),ae.push($n,Gn),we===Ce-1&&ae.push(jt,on)}Nn.push({bezier:bn(nr=Kt,ct,UE).call(nr,Se,Sn,this.rotation),points:bn(Tt=Kt,ct,UE).call(Tt,ae,Sn,this.rotation)})}return Nn},ze=new WeakSet,VE=function(){let vt=1/0,tn=-1/0,Cn=1/0,Sn=-1/0;for(const Nn of this.paths)for(const[rr,Fn,jn,nr]of Nn){const Tt=t.Util.bezierBoundingBox(...rr,...Fn,...jn,...nr);vt=Math.min(vt,Tt[0]),Cn=Math.min(Cn,Tt[1]),tn=Math.max(tn,Tt[2]),Sn=Math.max(Sn,Tt[3])}return[vt,Cn,tn,Sn]},mt=new WeakSet,Ey=function(){return Fe(this,v)?Math.ceil(this.thickness*this.parentScale):0},wt=new WeakSet,rp=function(){let vt=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty())return;if(!Fe(this,v))return void bn(this,he,yc).call(this);const tn=bn(this,ze,VE).call(this),Cn=bn(this,mt,Ey).call(this);Vn(this,W,Math.max(_.AnnotationEditor.MIN_SIZE,tn[2]-tn[0])),Vn(this,S,Math.max(_.AnnotationEditor.MIN_SIZE,tn[3]-tn[1]));const Sn=Math.ceil(Cn+Fe(this,W)*this.scaleFactor),Nn=Math.ceil(Cn+Fe(this,S)*this.scaleFactor),[rr,Fn]=this.parentDimensions;this.width=Sn/rr,this.height=Nn/Fn,this.setAspectRatio(Sn,Nn);const jn=this.translationX,nr=this.translationY;this.translationX=-tn[0],this.translationY=-tn[1],bn(this,Lt,np).call(this),bn(this,he,yc).call(this),Vn(this,V,Sn),Vn(this,f,Nn),this.setDims(Sn,Nn);const Tt=vt?Cn/this.scaleFactor/2:0;this.translate(jn-this.translationX-Tt,nr-this.translationY-Tt)},dn(Q,yt),dn(Q,ct),dn(Q,gt),ys(Q,"_defaultColor",null),ys(Q,"_defaultOpacity",1),ys(Q,"_defaultThickness",1),ys(Q,"_type","ink"),q.InkEditor=Q},(xe,q,c)=>{var Q,S,W,P,C,L,E,m,v,R,j,Ug,V,Vg,T,wy,G,$E,se,AT,k,ST,H,HE,z,Ay,ve,CT;Object.defineProperty(q,"__esModule",{value:!0}),q.StampEditor=void 0,c(149),c(152);var t=c(1),_=c(164),x=c(168),re=c(198);const Re=class extends _.AnnotationEditor{constructor(ge){super(hh(Tl({},ge),{name:"stampEditor"})),dn(this,j),dn(this,V),dn(this,T),dn(this,G),dn(this,se),dn(this,k),dn(this,H),dn(this,z),dn(this,ve),dn(this,Q,null),dn(this,S,null),dn(this,W,null),dn(this,P,null),dn(this,C,null),dn(this,L,null),dn(this,E,null),dn(this,m,null),dn(this,v,!1),dn(this,R,!1),Vn(this,P,ge.bitmapUrl),Vn(this,C,ge.bitmapFile)}static initialize(ge){_.AnnotationEditor.initialize(ge)}static get supportedTypes(){return(0,t.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(O=>`image/${O}`))}static get supportedTypesStr(){return(0,t.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(ge){return this.supportedTypes.includes(ge)}static paste(ge,O){O.pasteEditor(t.AnnotationEditorType.STAMP,{bitmapFile:ge.getAsFile()})}remove(){var ge,O;Fe(this,S)&&(Vn(this,Q,null),this._uiManager.imageManager.deleteId(Fe(this,S)),null==(ge=Fe(this,L))||ge.remove(),Vn(this,L,null),null==(O=Fe(this,E))||O.disconnect(),Vn(this,E,null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(Fe(this,S)&&bn(this,T,wy).call(this),this.isAttachedToDOM||this.parent.add(this))):Fe(this,S)&&bn(this,T,wy).call(this)}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(Fe(this,W)||Fe(this,Q)||Fe(this,P)||Fe(this,C))}get isResizable(){return!0}render(){if(this.div)return this.div;let ge,O;if(this.width&&(ge=this.x,O=this.y),super.render(),this.div.hidden=!0,Fe(this,Q)?bn(this,G,$E).c
1all(this):bn(this,T,wy).call(this),this.width){const[b,p]=this.parentDimensions;this.setAt(ge*b,O*p,this.width*b,this.height*p)}return this.div}static deserialize(ge,O,b){if(ge instanceof re.StampAnnotationElement)return null;const p=super.deserialize(ge,O,b),{rect:A,bitmapUrl:N,bitmapId:K,isSvg:J,accessibilityData:ie}=ge;K&&b.imageManager.isValidId(K)?Vn(p,S,K):Vn(p,P,N),Vn(p,v,J);const[he,Oe]=p.pageDimensions;return p.width=(A[2]-A[0])/he,p.height=(A[3]-A[1])/Oe,ie&&(p.altTextData=ie),p}serialize(){let ge=arguments.length>0&&void 0!==arguments[0]&&arguments[0],O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.isEmpty())return null;const b={annotationType:t.AnnotationEditorType.STAMP,bitmapId:Fe(this,S),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:Fe(this,v),structTreeParentId:this._structTreeParentId};if(ge)return b.bitmapUrl=bn(this,z,Ay).call(this,!0),b.accessibilityData=this.altTextData,b;const{decorative:p,altText:A}=this.altTextData;if(!p&&A&&(b.accessibilityData={type:"Figure",alt:A}),null===O)return b;O.stamps||(O.stamps=new Map);const N=Fe(this,v)?(b.rect[2]-b.rect[0])*(b.rect[3]-b.rect[1]):null;if(O.stamps.has(Fe(this,S))){if(Fe(this,v)){const K=O.stamps.get(Fe(this,S));N>K.area&&(K.area=N,K.serialized.bitmap.close(),K.serialized.bitmap=bn(this,z,Ay).call(this,!1))}}else O.stamps.set(Fe(this,S),{area:N,serialized:b}),b.bitmap=bn(this,z,Ay).call(this,!1);return b}};let te=Re;Q=new WeakMap,S=new WeakMap,W=new WeakMap,P=new WeakMap,C=new WeakMap,L=new WeakMap,E=new WeakMap,m=new WeakMap,v=new WeakMap,R=new WeakMap,j=new WeakSet,Ug=function(ge){let O=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ge?(Vn(this,Q,ge.bitmap),O||(Vn(this,S,ge.id),Vn(this,v,ge.isSvg)),bn(this,G,$E).call(this)):this.remove()},V=new WeakSet,Vg=function(){Vn(this,W,null),this._uiManager.enableWaiting(!1),Fe(this,L)&&this.div.focus()},T=new WeakSet,wy=function(){var ge=this;if(Fe(this,S))return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(Fe(this,S)).then(b=>bn(this,j,Ug).call(this,b,!0)).finally(()=>bn(this,V,Vg).call(this));if(Fe(this,P)){const b=Fe(this,P);return Vn(this,P,null),this._uiManager.enableWaiting(!0),void Vn(this,W,this._uiManager.imageManager.getFromUrl(b).then(p=>bn(this,j,Ug).call(this,p)).finally(()=>bn(this,V,Vg).call(this)))}if(Fe(this,C)){const b=Fe(this,C);return Vn(this,C,null),this._uiManager.enableWaiting(!0),void Vn(this,W,this._uiManager.imageManager.getFromFile(b).then(p=>bn(this,j,Ug).call(this,p)).finally(()=>bn(this,V,Vg).call(this)))}const O=document.createElement("input");O.type="file",O.accept=Re.supportedTypesStr,Vn(this,W,new Promise(b=>{O.addEventListener("change",_asyncToGenerator(function*(){var p;if(O.files&&0!==O.files.length){ge._uiManager.enableWaiting(!0);const A=yield ge._uiManager.imageManager.getFromFile(O.files[0]);bn(p=ge,j,Ug).call(p,A)}else ge.remove();b()})),O.addEventListener("cancel",()=>{this.remove(),b()})}).finally(()=>bn(this,V,Vg).call(this))),O.click()},G=new WeakSet,$E=function(){const{div:ge}=this;let{width:O,height:b}=Fe(this,Q);const[p,A]=this.pageDimensions,N=.75;if(this.width)O=this.width*p,b=this.height*A;else if(O>N*p||b>N*A){const he=Math.min(N*p/O,N*A/b);O*=he,b*=he}const[K,J]=this.parentDimensions;this.setDims(O*K/p,b*J/A),this._uiManager.enableWaiting(!1);const ie=Vn(this,L,document.createElement("canvas"));ge.append(ie),ge.hidden=!1,bn(this,H,HE).call(this,O,b),bn(this,ve,CT).call(this),Fe(this,R)||(this.parent.addUndoableEditor(this),Vn(this,R,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},se=new WeakSet,AT=function(ge,O){var N;const[b,p]=this.parentDimensions;this.width=ge/b,this.height=O/p,this.setDims(ge,O),(null==(N=this._initialOptions)?void 0:N.isCentered)?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==Fe(this,m)&&clearTimeout(Fe(this,m)),Vn(this,m,setTimeout(()=>{Vn(this,m,null),bn(this,H,HE).call(this,ge,O)},200))},k=new WeakSet,ST=function(ge,O){const{width:b,height:p}=Fe(this,Q);let A=b,N=p,K=Fe(this,Q);for(;A>2*ge||N>2*O;){const J=A,ie=N;A>2*ge&&(A=A>=16384?Math.floor(A/2)-1:Math.ceil(A/2)),N>2*O&&(N=N>=16384?Math.floor(N/2)-1:Math.ceil(N/2));const he=new OffscreenCanvas(A,N);he.getContext("2d").drawImage(K,0,0,J,ie,0,0,A,N),K=he.transferToImageBitmap()}return K},H=new WeakSet,HE=function(ge,O){ge=Math.ceil(ge),O=Math.ceil(O);const b=Fe(this,L);if(!b||b.width===ge&&b.height===O)return;b.width=ge,b.height=O;const p=Fe(this,v)?Fe(this,Q):bn(this,k,ST).call(this,ge,O),A=b.getContext("2d");A.filter=this._uiManager.hcmFilter,A.drawImage(p,0,0,p.width,p.height,0,0,ge,O)},z=new WeakSet,Ay=function(ge){if(ge){if(Fe(this,v)){const p=this._uiManager.imageManager.getSvgUrl(Fe(this,S));if(p)return p}const O=document.createElement("canvas");return({width:O.width,height:O.height}=Fe(this,Q)),O.getContext("2d").drawImage(Fe(this,Q),0,0),O.toDataURL()}if(Fe(this,v)){const[O,b]=this.pageDimensions,p=Math.round(this.width*O*x.PixelsPerInch.PDF_TO_CSS_UNITS),A=Math.round(this.height*b*x.PixelsPerInch.PDF_TO_CSS_UNITS),N=new OffscreenCanvas(p,A);return N.getContext("2d").drawImage(Fe(this,Q),0,0,Fe(this,Q).width,Fe(this,Q).height,0,0,p,A),N.transferToImageBitmap()}return structuredClone(Fe(this,Q))},ve=new WeakSet,CT=function(){Vn(this,E,new ResizeObserver(ge=>{const O=ge[0].contentRect;O.width&&O.height&&bn(this,se,AT).call(this,O.width,O.height)})),Fe(this,E).observe(this.div)},ys(te,"_type","stamp"),q.StampEditor=te}],__webpack_module_cache__={};function __w_pdfjs_require__(xe){var q=__webpack_module_cache__[xe];if(void 0!==q)return q.exports;var c=__webpack_module_cache__[xe]={exports:{}};return __webpack_modules__[xe].call(c.exports,c,c.exports,__w_pdfjs_require__),c.exports}var __webpack_exports__={};return(()=>{var xe=__webpack_exports__;
1Object.defineProperty(xe,"__esModule",{value:!0}),Object.defineProperty(xe,"AbortException",{enumerable:!0,get:function(){return q.AbortException}}),Object.defineProperty(xe,"AnnotationEditorLayer",{enumerable:!0,get:function(){return x.AnnotationEditorLayer}}),Object.defineProperty(xe,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return q.AnnotationEditorParamsType}}),Object.defineProperty(xe,"AnnotationEditorType",{enumerable:!0,get:function(){return q.AnnotationEditorType}}),Object.defineProperty(xe,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return re.AnnotationEditorUIManager}}),Object.defineProperty(xe,"AnnotationLayer",{enumerable:!0,get:function(){return te.AnnotationLayer}}),Object.defineProperty(xe,"AnnotationMode",{enumerable:!0,get:function(){return q.AnnotationMode}}),Object.defineProperty(xe,"CMapCompressionType",{enumerable:!0,get:function(){return q.CMapCompressionType}}),Object.defineProperty(xe,"DOMSVGFactory",{enumerable:!0,get:function(){return t.DOMSVGFactory}}),Object.defineProperty(xe,"FeatureTest",{enumerable:!0,get:function(){return q.FeatureTest}}),Object.defineProperty(xe,"GlobalWorkerOptions",{enumerable:!0,get:function(){return Q.GlobalWorkerOptions}}),Object.defineProperty(xe,"ImageKind",{enumerable:!0,get:function(){return q.ImageKind}}),Object.defineProperty(xe,"InvalidPDFException",{enumerable:!0,get:function(){return q.InvalidPDFException}}),Object.defineProperty(xe,"MissingPDFException",{enumerable:!0,get:function(){return q.MissingPDFException}}),Object.defineProperty(xe,"OPS",{enumerable:!0,get:function(){return q.OPS}}),Object.defineProperty(xe,"PDFDataRangeTransport",{enumerable:!0,get:function(){return c.PDFDataRangeTransport}}),Object.defineProperty(xe,"PDFDateString",{enumerable:!0,get:function(){return t.PDFDateString}}),Object.defineProperty(xe,"PDFWorker",{enumerable:!0,get:function(){return c.PDFWorker}}),Object.defineProperty(xe,"PasswordResponses",{enumerable:!0,get:function(){return q.PasswordResponses}}),Object.defineProperty(xe,"PermissionFlag",{enumerable:!0,get:function(){return q.PermissionFlag}}),Object.defineProperty(xe,"PixelsPerInch",{enumerable:!0,get:function(){return t.PixelsPerInch}}),Object.defineProperty(xe,"PromiseCapability",{enumerable:!0,get:function(){return q.PromiseCapability}}),Object.defineProperty(xe,"RenderingCancelledException",{enumerable:!0,get:function(){return t.RenderingCancelledException}}),Object.defineProperty(xe,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}}),Object.defineProperty(xe,"UnexpectedResponseException",{enumerable:!0,get:function(){return q.UnexpectedResponseException}}),Object.defineProperty(xe,"Util",{enumerable:!0,get:function(){return q.Util}}),Object.defineProperty(xe,"VerbosityLevel",{enumerable:!0,get:function(){return q.VerbosityLevel}}),Object.defineProperty(xe,"XfaLayer",{enumerable:!0,get:function(){return S.XfaLayer}}),Object.defineProperty(xe,"build",{enumerable:!0,get:function(){return c.build}}),Object.defineProperty(xe,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return q.createValidAbsoluteUrl}}),Object.defineProperty(xe,"getDocument",{enumerable:!0,get:function(){return c.getDocument}}),Object.defineProperty(xe,"getFilenameFromUrl",{enumerable:!0,get:function(){return t.getFilenameFromUrl}}),Object.defineProperty(xe,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return t.getPdfFilenameFromUrl}}),Object.defineProperty(xe,"getXfaPageViewport",{enumerable:!0,get:function(){return t.getXfaPageViewport}}),Object.defineProperty(xe,"isDataScheme",{enumerable:!0,get:function(){return t.isDataScheme}}),Object.defineProperty(xe,"isPdfFile",{enumerable:!0,get:function(){return t.isPdfFile}}),Object.defineProperty(xe,"loadScript",{enumerable:!0,get:function(){return t.loadScript}}),Object.defineProperty(xe,"noContextMenu",{enumerable:!0,get:function(){return t.noContextMenu}}),Object.defineProperty(xe,"normalizeUnicode",{enumerable:!0,get:function(){return q.normalizeUnicode}}),Object.defineProperty(xe,"renderTextLayer",{enumerable:!0,get:function(){return _.renderTextLayer}}),Object.defineProperty(xe,"setLayerDimensions",{enumerable:!0,get:function(){return t.setLayerDimensions}}),Object.defineProperty(xe,"shadow",{enumerable:!0,get:function(){return q.shadow}}),Object.defineProperty(xe,"updateTextLayer",{enumerable:!0,get:function(){return _.updateTextLayer}}
1),Object.defineProperty(xe,"version",{enumerable:!0,get:function(){return c.version}});var q=__w_pdfjs_require__(1),c=__w_pdfjs_require__(124),t=__w_pdfjs_require__(168),_=__w_pdfjs_require__(195),x=__w_pdfjs_require__(196),re=__w_pdfjs_require__(165),te=__w_pdfjs_require__(198),Q=__w_pdfjs_require__(176),S=__w_pdfjs_require__(201)})(),__webpack_exports__})(),module.exports=q.pdfjsLib=c()},591:(xe,q,c)=>{"use strict";c.d(q,{X:()=>x});var t=c(8929),_=c(5279);class x extends t.xQ{constructor(te){super(),this._value=te}get value(){return this.getValue()}_subscribe(te){const Q=super._subscribe(te);return Q&&!Q.closed&&te.next(this._value),Q}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _.N;return this._value}next(te){super.next(this._value=te)}}},2916:(xe,q,c)=>{"use strict";c.d(q,{y:()=>L});var t=c(3489),x=c(7668),re=c(3292),Q=c(3821),S=c(5379);var C=c(2830);let L=(()=>{class m{constructor(R){this._isScalar=!1,R&&(this._subscribe=R)}lift(R){const j=new m;return j.source=this,j.operator=R,j}subscribe(R,j,M){const{operator:V}=this,f=function te(m,v,R){if(m){if(m instanceof t.L)return m;if(m[x.b])return m[x.b]()}return m||v||R?new t.L(m,v,R):new t.L(re.c)}(R,j,M);if(f.add(V?V.call(f,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!f.syncErrorThrowable?this._subscribe(f):this._trySubscribe(f)),C.v.useDeprecatedSynchronousErrorHandling&&f.syncErrorThrowable&&(f.syncErrorThrowable=!1,f.syncErrorThrown))throw f.syncErrorValue;return f}_trySubscribe(R){try{return this._subscribe(R)}catch(j){C.v.useDeprecatedSynchronousErrorHandling&&(R.syncErrorThrown=!0,R.syncErrorValue=j),function _(m){for(;m;){const{closed:v,destination:R,isStopped:j}=m;if(v||j)return!1;m=R&&R instanceof t.L?R:null}return!0}(R)?R.error(j):console.warn(j)}}forEach(R,j){return new(j=E(j))((M,V)=>{let f;f=this.subscribe(T=>{try{R(T)}catch(Z){V(Z),f&&f.unsubscribe()}},V,M)})}_subscribe(R){const{source:j}=this;return j&&j.subscribe(R)}[Q.L](){return this}pipe(...R){return 0===R.length?this:function P(m){return 0===m.length?S.y:1===m.length?m[0]:function(R){return m.reduce((j,M)=>M(j),R)}}(R)(this)}toPromise(R){return new(R=E(R))((j,M)=>{let V;this.subscribe(f=>V=f,f=>M(f),()=>j(V))})}}return m.create=v=>new m(v),m})();function E(m){if(m||(m=C.v.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},3292:(xe,q,c)=>{"use strict";c.d(q,{c:()=>x});var t=c(2830),_=c(2782);const x={closed:!0,next(re){},error(re){if(t.v.useDeprecatedSynchronousErrorHandling)throw re;(0,_.z)(re)},complete(){}}},8929:(xe,q,c)=>{"use strict";c.d(q,{Yc:()=>S,xQ:()=>W});var t=c(2916),_=c(3489),x=c(2654),re=c(5279),te=c(5283),Q=c(7668);class S extends _.L{constructor(L){super(L),this.destination=L}}let W=(()=>{class C extends t.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Q.b](){return new S(this)}lift(E){const m=new P(this,this);return m.operator=E,m}next(E){if(this.closed)throw new re.N;if(!this.isStopped){const{observers:m}=this,v=m.length,R=m.slice();for(let j=0;j<v;j++)R[j].next(E)}}error(E){if(this.closed)throw new re.N;this.hasError=!0,this.thrownError=E,this.isStopped=!0;const{observers:m}=this,v=m.length,R=m.slice();for(let j=0;j<v;j++)R[j].error(E);this.observers.length=0}complete(){if(this.closed)throw new re.N;this.isStopped=!0;const{observers:E}=this,m=E.length,v=E.slice();for(let R=0;R<m;R++)v[R].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(E){if(this.closed)throw new re.N;return super._trySubscribe(E)}_subscribe(E){if(this.closed)throw new re.N;return this.hasError?(E.error(this.thrownError),x.w.EMPTY):this.isStopped?(E.complete(),x.w.EMPTY):(this.observers.push(E),new te.W(this,E))}asObservable(){const E=new t.y;return E.source=this,E}}return C.create=(L,E)=>new P(L,E),C})();class P extends W{constructor(L,E){super(),this.destination=L,this.source=E}next(L){const{destination:E}=this;E&&E.next&&E.next(L)}error(L){const{destination:E}=this;E&&E.error&&this.destination.error(L)}complete(){const{destination:L}=this;L&&L.complete&&this.destination.complete()}_subscribe(L){const{source:E}=this;return E?this.source.subscribe(L):x.w.EMPTY}}},5283:(xe,q,c)=>{"use strict";c.d(q,{W:()=>_});var t=c(2654);class _ extends t.w{constructor(re,te){super(),this.subject=re,this.subscriber=te,this.closed=!1}
1unsubscribe(){if(this.closed)return;this.closed=!0;const re=this.subject,te=re.observers;if(this.subject=null,!te||0===te.length||re.isStopped||re.closed)return;const Q=te.indexOf(this.subscriber);-1!==Q&&te.splice(Q,1)}}},3489:(xe,q,c)=>{"use strict";c.d(q,{L:()=>S});var t=c(7043),_=c(3292),x=c(2654),re=c(7668),te=c(2830),Q=c(2782);class S extends x.w{constructor(C,L,E){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=_.c;break;case 1:if(!C){this.destination=_.c;break}if("object"==typeof C){C instanceof S?(this.syncErrorThrowable=C.syncErrorThrowable,this.destination=C,C.add(this)):(this.syncErrorThrowable=!0,this.destination=new W(this,C));break}default:this.syncErrorThrowable=!0,this.destination=new W(this,C,L,E)}}[re.b](){return this}static create(C,L,E){const m=new S(C,L,E);return m.syncErrorThrowable=!1,m}next(C){this.isStopped||this._next(C)}error(C){this.isStopped||(this.isStopped=!0,this._error(C))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(C){this.destination.next(C)}_error(C){this.destination.error(C),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:C}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=C,this}}class W extends S{constructor(C,L,E,m){super(),this._parentSubscriber=C;let v,R=this;(0,t.m)(L)?v=L:L&&(v=L.next,E=L.error,m=L.complete,L!==_.c&&(R=Object.create(L),(0,t.m)(R.unsubscribe)&&this.add(R.unsubscribe.bind(R)),R.unsubscribe=this.unsubscribe.bind(this))),this._context=R,this._next=v,this._error=E,this._complete=m}next(C){if(!this.isStopped&&this._next){const{_parentSubscriber:L}=this;te.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,C)&&this.unsubscribe():this.__tryOrUnsub(this._next,C)}}error(C){if(!this.isStopped){const{_parentSubscriber:L}=this,{useDeprecatedSynchronousErrorHandling:E}=te.v;if(this._error)E&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,C),this.unsubscribe()):(this.__tryOrUnsub(this._error,C),this.unsubscribe());else if(L.syncErrorThrowable)E?(L.syncErrorValue=C,L.syncErrorThrown=!0):(0,Q.z)(C),this.unsubscribe();else{if(this.unsubscribe(),E)throw C;(0,Q.z)(C)}}}complete(){if(!this.isStopped){const{_parentSubscriber:C}=this;if(this._complete){const L=()=>this._complete.call(this._context);te.v.useDeprecatedSynchronousErrorHandling&&C.syncErrorThrowable?(this.__tryOrSetError(C,L),this.unsubscribe()):(this.__tryOrUnsub(L),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(C,L){try{C.call(this._context,L)}catch(E){if(this.unsubscribe(),te.v.useDeprecatedSynchronousErrorHandling)throw E;(0,Q.z)(E)}}__tryOrSetError(C,L,E){if(!te.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,E)}catch(m){return te.v.useDeprecatedSynchronousErrorHandling?(C.syncErrorValue=m,C.syncErrorThrown=!0,!0):((0,Q.z)(m),!0)}return!1}_unsubscribe(){const{_parentSubscriber:C}=this;this._context=null,this._parentSubscriber=null,C.unsubscribe()}}},2654:(xe,q,c)=>{"use strict";c.d(q,{w:()=>Q});var t=c(6688),_=c(7830),x=c(7043);const te=(()=>{function W(P){return Error.call(this),this.message=P?`${P.length} errors occurred during unsubscription:\n${P.map((C,L)=>`${L+1}) ${C.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=P,this}return W.prototype=Object.create(Error.prototype),W})();class Q{constructor(P){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,P&&(this._ctorUnsubscribe=!0,this._unsubscribe=P)}unsubscribe(){let P;if(this.closed)return;let{_parentOrParents:C,_ctorUnsubscribe:L,_unsubscribe:E,_subscriptions:m}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,C instanceof Q)C.remove(this);else if(null!==C)for(let v=0;v<C.length;++v)C[v].remove(this);if((0,x.m)(E)){L&&(this._unsubscribe=void 0);try{E.call(this)}catch(v){P=v instanceof te?S(v.errors):[v]}}if((0,t.k)(m)){let v=-1,R=m.length;for(;++v<R;){const j=m[v];
1if((0,_.K)(j))try{j.unsubscribe()}catch(M){P=P||[],M instanceof te?P=P.concat(S(M.errors)):P.push(M)}}}if(P)throw new te(P)}add(P){let C=P;if(!P)return Q.EMPTY;switch(typeof P){case"function":C=new Q(P);case"object":if(C===this||C.closed||"function"!=typeof C.unsubscribe)return C;if(this.closed)return C.unsubscribe(),C;if(!(C instanceof Q)){const m=C;C=new Q,C._subscriptions=[m]}break;default:throw new Error("unrecognized teardown "+P+" added to Subscription.")}let{_parentOrParents:L}=C;if(null===L)C._parentOrParents=this;else if(L instanceof Q){if(L===this)return C;C._parentOrParents=[L,this]}else{if(-1!==L.indexOf(this))return C;L.push(this)}const E=this._subscriptions;return null===E?this._subscriptions=[C]:E.push(C),C}remove(P){const C=this._subscriptions;if(C){const L=C.indexOf(P);-1!==L&&C.splice(L,1)}}}var W;function S(W){return W.reduce((P,C)=>P.concat(C instanceof te?C.errors:C),[])}Q.EMPTY=((W=new Q).closed=!0,W)},2830:(xe,q,c)=>{"use strict";c.d(q,{v:()=>_});let t=!1;const _={Promise:void 0,set useDeprecatedSynchronousErrorHandling(x){if(x){const re=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+re.stack)}else t&&console.log("RxJS: Back to a better error behavior. Thank you. <3");t=x},get useDeprecatedSynchronousErrorHandling(){return t}}},1177:(xe,q,c)=>{"use strict";c.d(q,{IY:()=>re,Ds:()=>Q,ft:()=>W});var t=c(3489),_=c(2916),x=c(9249);class re extends t.L{constructor(C){super(),this.parent=C}_next(C){this.parent.notifyNext(C)}_error(C){this.parent.notifyError(C),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Q extends t.L{notifyNext(C){this.destination.next(C)}notifyError(C){this.destination.error(C)}notifyComplete(){this.destination.complete()}}function W(P,C){if(C.closed)return;if(P instanceof _.y)return P.subscribe(C);let L;try{L=(0,x.s)(P)(C)}catch(E){C.error(E)}return L}},1762:(xe,q,c)=>{"use strict";c.d(q,{c:()=>te,N:()=>Q});var t=c(8929),_=c(2916),x=c(2654),re=c(4327);class te extends _.y{constructor(L,E){super(),this.source=L,this.subjectFactory=E,this._refCount=0,this._isComplete=!1}_subscribe(L){return this.getSubject().subscribe(L)}getSubject(){const L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let L=this._connection;return L||(this._isComplete=!1,L=this._connection=new x.w,L.add(this.source.subscribe(new S(this.getSubject(),this))),L.closed&&(this._connection=null,L=x.w.EMPTY)),L}refCount(){return(0,re.x)()(this)}}const Q=(()=>{const C=te.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:C._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}}})();class S extends t.Yc{constructor(L,E){super(L),this.connectable=E}_error(L){this._unsubscribe(),super._error(L)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const L=this.connectable;if(L){this.connectable=null;const E=L._connection;L._refCount=0,L._subject=null,L._connection=null,E&&E.unsubscribe()}}}},3426:(xe,q,c)=>{"use strict";c.d(q,{aj:()=>L});var t=c(2866),_=c(6688),x=c(3489);class re extends x.L{notifyNext(R,j,M,V,f){this.destination.next(j)}notifyError(R,j){this.destination.error(R)}notifyComplete(R){this.destination.complete()}}class te extends x.L{constructor(R,j,M){super(),this.parent=R,this.outerValue=j,this.outerIndex=M,this.index=0}_next(R){this.parent.notifyNext(this.outerValue,R,this.outerIndex,this.index++,this)}_error(R){this.parent.notifyError(R,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Q=c(9249),S=c(2916);function W(v,R,j,M,V=new te(v,j,M)){if(!V.closed)return R instanceof S.y?R.subscribe(V):(0,Q.s)(R)(V)}var P=c(3009);const C={};function L(...v){let R,j;return(0,t.K)(v[v.length-1])&&(j=v.pop()),"function"==typeof v[v.length-1]&&(R=v.pop()),1===v.length&&(0,_.k)(v[0])&&(v=v[0]),(0,P.n)(v,j).lift(new E(R))}class E{constructor(R){this.resultSelector=R}call(R,j){return j.subscribe(new m(R,this.resultSelector))}}class m extends re{constructor(R,j){super(R),this.resultSelector=j,this.active=0,this.values=[],this.observables=[]}_next(R){this.values.push(C),this.observables.push(R)}_complete(){const R=this.observables,j=R.length;if(0===j)this.destination.complete();else{this.active=j,this.toRespond=j;for(let M=0;M<j;M++)this.add(W(this,R[M],void 0,M))}}notifyComplete(R){0==(this.active-=1)&&this.destination.complete()}notifyNext(R,j,M){const V=this.values,T=this.toRespond?V[M]===C?--this.toRespond:this.toRespond:0;V[M]=j,0===T&&(this.resultSelector?this._tryResultSelector(V):this.destination.next(V.slice()))}_tryResultSelector(R){let j;try{j=this.resultSelector.apply(this,R)}catch(M){return void this.destination.error(M)}this.destination.next(j)}}},1221:(xe,q,c)=>{"use strict";c.d(q,{z:()=>re});var t=c(1086),_=c(9146);function re(...te){return function x(){return(0,_.J)(1)}()((0,t.of)(...te))}},8514:(xe,q,c)=>{"use strict";c.d(q,{P:()=>re});var t=c(2916),_=c(5254),x=c(8896);function re(te){return new t.y(Q=>{let S;try{S=te()}catch(P){return void Q.error(P)}return(S?(0,_.D)(S):(0,x.c)()).subscribe(Q)})}},8896:(xe,q,c)=>{"use strict";c.d(q,{E:()=>_,c:()=>x});var t=c(2916);
1const _=new t.y(te=>te.complete());function x(te){return te?function re(te){return new t.y(Q=>te.schedule(()=>Q.complete()))}(te):_}},567:(xe,q,c)=>{"use strict";c.d(q,{D:()=>Q});var t=c(2916),_=c(6688),x=c(4850),re=c(7830),te=c(5254);function Q(...W){if(1===W.length){const P=W[0];if((0,_.k)(P))return S(P,null);if((0,re.K)(P)&&Object.getPrototypeOf(P)===Object.prototype){const C=Object.keys(P);return S(C.map(L=>P[L]),C)}}if("function"==typeof W[W.length-1]){const P=W.pop();return S(W=1===W.length&&(0,_.k)(W[0])?W[0]:W,null).pipe((0,x.U)(C=>P(...C)))}return S(W,null)}function S(W,P){return new t.y(C=>{const L=W.length;if(0===L)return void C.complete();const E=new Array(L);let m=0,v=0;for(let R=0;R<L;R++){const j=(0,te.D)(W[R]);let M=!1;C.add(j.subscribe({next:V=>{M||(M=!0,v++),E[R]=V},error:V=>C.error(V),complete:()=>{m++,(m===L||!M)&&(v===L&&C.next(P?P.reduce((V,f,T)=>(V[f]=E[T],V),{}):E),C.complete())}}))}})}},5254:(xe,q,c)=>{"use strict";c.d(q,{D:()=>R});var t=c(2916),_=c(9249),x=c(2654),re=c(3821),S=c(6454),W=c(5430),L=c(8955),E=c(8515);function R(j,M){return M?function v(j,M){if(null!=j){if(function C(j){return j&&"function"==typeof j[re.L]}(j))return function te(j,M){return new t.y(V=>{const f=new x.w;return f.add(M.schedule(()=>{const T=j[re.L]();f.add(T.subscribe({next(Z){f.add(M.schedule(()=>V.next(Z)))},error(Z){f.add(M.schedule(()=>V.error(Z)))},complete(){f.add(M.schedule(()=>V.complete()))}}))})),f})}(j,M);if((0,L.t)(j))return function Q(j,M){return new t.y(V=>{const f=new x.w;return f.add(M.schedule(()=>j.then(T=>{f.add(M.schedule(()=>{V.next(T),f.add(M.schedule(()=>V.complete()))}))},T=>{f.add(M.schedule(()=>V.error(T)))}))),f})}(j,M);if((0,E.z)(j))return(0,S.r)(j,M);if(function m(j){return j&&"function"==typeof j[W.hZ]}(j)||"string"==typeof j)return function P(j,M){if(!j)throw new Error("Iterable cannot be null");return new t.y(V=>{const f=new x.w;let T;return f.add(()=>{T&&"function"==typeof T.return&&T.return()}),f.add(M.schedule(()=>{T=j[W.hZ](),f.add(M.schedule(function(){if(V.closed)return;let Z,G;try{const $=T.next();Z=$.value,G=$.done}catch($){return void V.error($)}G?V.complete():(V.next(Z),this.schedule())}))})),f})}(j,M)}throw new TypeError((null!==j&&typeof j||j)+" is not observable")}(j,M):j instanceof t.y?j:new t.y((0,_.s)(j))}},3009:(xe,q,c)=>{"use strict";c.d(q,{n:()=>re});var t=c(2916),_=c(3650),x=c(6454);function re(te,Q){return Q?(0,x.r)(te,Q):new t.y((0,_.V)(te))}},3753:(xe,q,c)=>{"use strict";c.d(q,{R:()=>Q});var t=c(2916),_=c(6688),x=c(7043),re=c(4850);function Q(L,E,m,v){return(0,x.m)(m)&&(v=m,m=void 0),v?Q(L,E,m).pipe((0,re.U)(R=>(0,_.k)(R)?v(...R):v(R))):new t.y(R=>{S(L,E,function j(M){R.next(arguments.length>1?Array.prototype.slice.call(arguments):M)},R,m)})}function S(L,E,m,v,R){let j;if(function C(L){return L&&"function"==typeof L.addEventListener&&"function"==typeof L.removeEventListener}(L)){const M=L;L.addEventListener(E,m,R),j=()=>M.removeEventListener(E,m,R)}else if(function P(L){return L&&"function"==typeof L.on&&"function"==typeof L.off}(L)){const M=L;L.on(E,m),j=()=>M.off(E,m)}else if(function W(L){return L&&"function"==typeof L.addListener&&"function"==typeof L.removeListener}(L)){const M=L;L.addListener(E,m),j=()=>M.removeListener(E,m)}else{if(!L||!L.length)throw new TypeError("Invalid event target");for(let M=0,V=L.length;M<V;M++)S(L[M],E,m,v,R)}v.add(j)}},6787:(xe,q,c)=>{"use strict";c.d(q,{T:()=>te});var t=c(2916),_=c(2866),x=c(9146),re=c(3009);function te(...Q){let S=Number.POSITIVE_INFINITY,W=null,P=Q[Q.length-1];return(0,_.K)(P)?(W=Q.pop(),Q.length>1&&"number"==typeof Q[Q.length-1]&&(S=Q.pop())):"number"==typeof P&&(S=Q.pop()),null===W&&1===Q.length&&Q[0]instanceof t.y?Q[0]:(0,x.J)(S)((0,re.n)(Q,W))}},1086:(xe,q,c)=>{"use strict";c.d(q,{of:()=>re});var t=c(2866),_=c(3009),x=c(6454);function re(...te){let Q=te[te.length-1];return(0,t.K)(Q)?(te.pop(),(0,x.r)(te,Q)):(0,_.n)(te)}},1737:(xe,q,c)=>{"use strict";c.d(q,{_:()=>_});var t=c(2916);function _(re,te){return new t.y(te?Q=>te.schedule(x,0,{error:re,subscriber:Q}):Q=>Q.error(re))}function x({error:re,subscriber:te}){te.error(re)}},1406:(xe,q,c)=>{"use strict";c.d(q,{b:()=>_});var t=c(1709);function _(x,re){return(0,t.zg)(x,re,1)}},13:(xe,q,c)=>{"use strict";c.d(q,{b:()=>x});var t=c(3489),_=c(353);function x(S,W=_.P){return P=>P.lift(new re(S,W))}
1class re{constructor(W,P){this.dueTime=W,this.scheduler=P}call(W,P){return P.subscribe(new te(W,this.dueTime,this.scheduler))}}class te extends t.L{constructor(W,P,C){super(W),this.dueTime=P,this.scheduler=C,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(W){this.clearDebounce(),this.lastValue=W,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Q,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:W}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(W)}}clearDebounce(){const W=this.debouncedSubscription;null!==W&&(this.remove(W),W.unsubscribe(),this.debouncedSubscription=null)}}function Q(S){S.debouncedNext()}},5778:(xe,q,c)=>{"use strict";c.d(q,{x:()=>_});var t=c(3489);function _(te,Q){return S=>S.lift(new x(te,Q))}class x{constructor(Q,S){this.compare=Q,this.keySelector=S}call(Q,S){return S.subscribe(new re(Q,this.compare,this.keySelector))}}class re extends t.L{constructor(Q,S,W){super(Q),this.keySelector=W,this.hasKey=!1,"function"==typeof S&&(this.compare=S)}compare(Q,S){return Q===S}_next(Q){let S;try{const{keySelector:P}=this;S=P?P(Q):Q}catch(P){return this.destination.error(P)}let W=!1;if(this.hasKey)try{const{compare:P}=this;W=P(this.key,S)}catch(P){return this.destination.error(P)}else this.hasKey=!0;W||(this.key=S,this.destination.next(Q))}}},2198:(xe,q,c)=>{"use strict";c.d(q,{h:()=>_});var t=c(3489);function _(te,Q){return function(W){return W.lift(new x(te,Q))}}class x{constructor(Q,S){this.predicate=Q,this.thisArg=S}call(Q,S){return S.subscribe(new re(Q,this.predicate,this.thisArg))}}class re extends t.L{constructor(Q,S,W){super(Q),this.predicate=S,this.thisArg=W,this.count=0}_next(Q){let S;try{S=this.predicate.call(this.thisArg,Q,this.count++)}catch(W){return void this.destination.error(W)}S&&this.destination.next(Q)}}},537:(xe,q,c)=>{"use strict";c.d(q,{x:()=>x});var t=c(3489),_=c(2654);function x(Q){return S=>S.lift(new re(Q))}class re{constructor(S){this.callback=S}call(S,W){return W.subscribe(new te(S,this.callback))}}class te extends t.L{constructor(S,W){super(S),this.add(new _.w(W))}}},4850:(xe,q,c)=>{"use strict";c.d(q,{U:()=>_});var t=c(3489);function _(te,Q){return function(W){if("function"!=typeof te)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return W.lift(new x(te,Q))}}class x{constructor(Q,S){this.project=Q,this.thisArg=S}call(Q,S){return S.subscribe(new re(Q,this.project,this.thisArg))}}class re extends t.L{constructor(Q,S,W){super(Q),this.project=S,this.count=0,this.thisArg=W||this}_next(Q){let S;try{S=this.project.call(this.thisArg,Q,this.count++)}catch(W){return void this.destination.error(W)}this.destination.next(S)}}},9146:(xe,q,c)=>{"use strict";c.d(q,{J:()=>x});var t=c(1709),_=c(5379);function x(re=Number.POSITIVE_INFINITY){return(0,t.zg)(_.y,re)}},1709:(xe,q,c)=>{"use strict";c.d(q,{zg:()=>re});var t=c(4850),_=c(5254),x=c(1177);function re(W,P,C=Number.POSITIVE_INFINITY){return"function"==typeof P?L=>L.pipe(re((E,m)=>(0,_.D)(W(E,m)).pipe((0,t.U)((v,R)=>P(E,v,m,R))),C)):("number"==typeof P&&(C=P),L=>L.lift(new te(W,C)))}class te{constructor(P,C=Number.POSITIVE_INFINITY){this.project=P,this.concurrent=C}call(P,C){return C.subscribe(new Q(P,this.project,this.concurrent))}}class Q extends x.Ds{constructor(P,C,L=Number.POSITIVE_INFINITY){super(P),this.project=C,this.concurrent=L,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(P){this.active<this.concurrent?this._tryNext(P):this.buffer.push(P)}_tryNext(P){let C;const L=this.index++;try{C=this.project(P,L)}catch(E){return void this.destination.error(E)}this.active++,this._innerSub(C)}_innerSub(P){const C=new x.IY(this),L=this.destination;L.add(C);const E=(0,x.ft)(P,C);E!==C&&L.add(E)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(P){this.destination.next(P)}notifyComplete(){const P=this.buffer;this.active--,P.length>0?this._next(P.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2102:(xe,q,c)=>{"use strict";c.d(q,{ht:()=>P,QV:()=>S});var t=c(3489),_=c(8896),x=c(1086),re=c(1737);class Q{constructor(E,m,v){this.kind=E,this.value=m,this.error=v,this.hasValue="N"===E}observe(E){switch(this.kind){case"N":return E.next&&E.next(this.value);case"E":return E.error&&E.error(this.error);case"C":return E.complete&&E.complete()}}do(E,m,v){switch(this.kind){case"N":return E&&E(this.value);case"E":return m&&m(this.error);case"C":return v&&v()}}accept(E,m,v){return E&&"function"==typeof E.next?this.observe(E):this.do(E,m,v)}toObservable(){switch(this.kind){case"N":return(0,x.of)(this.value);case"E":return(0,re._)(this.error);case"C":return(0,_.c)()}throw new Error("unexpected notification kind value")}static createNext(E){return void 0!==E?new Q("N",E):Q.undefinedValueNotification}static createError(E){return new Q("E",void 0,E)}static createComplete(){return Q.completeNotification}}function S(L,E=0){return function(v){return v.lift(new W(L,E))}}Q.completeNotification=new Q("C"),Q.undefinedValueNotification=new Q("N",void 0);
1class W{constructor(E,m=0){this.scheduler=E,this.delay=m}call(E,m){return m.subscribe(new P(E,this.scheduler,this.delay))}}class P extends t.L{constructor(E,m,v=0){super(E),this.scheduler=m,this.delay=v}static dispatch(E){const{notification:m,destination:v}=E;m.observe(v),this.unsubscribe()}scheduleMessage(E){this.destination.add(this.scheduler.schedule(P.dispatch,this.delay,new C(E,this.destination)))}_next(E){this.scheduleMessage(Q.createNext(E))}_error(E){this.scheduleMessage(Q.createError(E)),this.unsubscribe()}_complete(){this.scheduleMessage(Q.createComplete()),this.unsubscribe()}}class C{constructor(E,m){this.notification=E,this.destination=m}}},4327:(xe,q,c)=>{"use strict";c.d(q,{x:()=>_});var t=c(3489);function _(){return function(Q){return Q.lift(new x(Q))}}class x{constructor(Q){this.connectable=Q}call(Q,S){const{connectable:W}=this;W._refCount++;const P=new re(Q,W),C=S.subscribe(P);return P.closed||(P.connection=W.connect()),C}}class re extends t.L{constructor(Q,S){super(Q),this.connectable=S}_unsubscribe(){const{connectable:Q}=this;if(!Q)return void(this.connection=null);this.connectable=null;const S=Q._refCount;if(S<=0)return void(this.connection=null);if(Q._refCount=S-1,S>1)return void(this.connection=null);const{connection:W}=this,P=Q._connection;this.connection=null,P&&(!W||P===W)&&P.unsubscribe()}}},2014:(xe,q,c)=>{"use strict";c.d(q,{R:()=>_});var t=c(3489);function _(te,Q){let S=!1;return arguments.length>=2&&(S=!0),function(P){return P.lift(new x(te,Q,S))}}class x{constructor(Q,S,W=!1){this.accumulator=Q,this.seed=S,this.hasSeed=W}call(Q,S){return S.subscribe(new re(Q,this.accumulator,this.seed,this.hasSeed))}}class re extends t.L{constructor(Q,S,W,P){super(Q),this.accumulator=S,this._seed=W,this.hasSeed=P,this.index=0}get seed(){return this._seed}set seed(Q){this.hasSeed=!0,this._seed=Q}_next(Q){if(this.hasSeed)return this._tryNext(Q);this.seed=Q,this.destination.next(Q)}_tryNext(Q){const S=this.index++;let W;try{W=this.accumulator(this.seed,Q,S)}catch(P){this.destination.error(P)}this.seed=W,this.destination.next(W)}}},7545:(xe,q,c)=>{"use strict";c.d(q,{w:()=>re});var t=c(4850),_=c(5254),x=c(1177);function re(S,W){return"function"==typeof W?P=>P.pipe(re((C,L)=>(0,_.D)(S(C,L)).pipe((0,t.U)((E,m)=>W(C,E,L,m))))):P=>P.lift(new te(S))}class te{constructor(W){this.project=W}call(W,P){return P.subscribe(new Q(W,this.project))}}class Q extends x.Ds{constructor(W,P){super(W),this.project=P,this.index=0}_next(W){let P;const C=this.index++;try{P=this.project(W,C)}catch(L){return void this.destination.error(L)}this._innerSub(P)}_innerSub(W){const P=this.innerSubscription;P&&P.unsubscribe();const C=new x.IY(this),L=this.destination;L.add(C),this.innerSubscription=(0,x.ft)(W,C),this.innerSubscription!==C&&L.add(this.innerSubscription)}_complete(){const{innerSubscription:W}=this;(!W||W.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(W){this.destination.next(W)}}},2986:(xe,q,c)=>{"use strict";c.d(q,{q:()=>re});var t=c(3489),_=c(4231),x=c(8896);function re(S){return W=>0===S?(0,x.c)():W.lift(new te(S))}class te{constructor(W){if(this.total=W,this.total<0)throw new _.W}call(W,P){return P.subscribe(new Q(W,this.total))}}class Q extends t.L{constructor(W,P){super(W),this.total=P,this.count=0}_next(W){const P=this.total,C=++this.count;C<=P&&(this.destination.next(W),C===P&&(this.destination.complete(),this.unsubscribe()))}}},7625:(xe,q,c)=>{"use strict";c.d(q,{R:()=>_});var t=c(1177);function _(te){return Q=>Q.lift(new x(te))}class x{constructor(Q){this.notifier=Q}call(Q,S){const W=new re(Q),P=(0,t.ft)(this.notifier,new t.IY(W));return P&&!W.seenValue?(W.add(P),S.subscribe(W)):W}}class re extends t.Ds{constructor(Q){super(Q),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2868:(xe,q,c)=>{"use strict";c.d(q,{b:()=>re});var t=c(3489);function _(){}var x=c(7043);function re(S,W,P){return function(L){return L.lift(new te(S,W,P))}}class te{constructor(W,P,C){this.nextOrObserver=W,this.error=P,this.complete=C}call(W,P){return P.subscribe(new Q(W,this.nextOrObserver,this.error,this.complete))}}class Q extends t.L{constructor(W,P,C,L){super(W),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=C||_,this._tapComplete=L||_,(0,x.m)(P)?(this._context=this,this._tapNext=P):P&&(this._context=P,this._tapNext=P.next||_,this._tapError=P.error||_,this._tapComplete=P.complete||_)}_next(W){try{this._tapNext.call(this._context,W)}catch(P){return void this.destination.error(P)}this.destination.next(W)}_error(W){try{this._tapError.call(this._context,W)}catch(P){return void this.destination.error(P)}this.destination.error(W)}_complete(){try{this._tapComplete.call(this._context)}catch(W){return void this.destination.error(W)}return this.destination.complete()}}},6454:(xe,q,c)=>{"use strict";c.d(q,{r:()=>x});var t=c(2916),_=c(2654);function x(re,te){return new t.y(Q=>{const S=new _.w;let W=0;return S.add(te.schedule(function(){W!==re.length?(Q.next(re[W++]),Q.closed||S.add(this.schedule())):Q.complete()}
1)),S})}},6686:(xe,q,c)=>{"use strict";c.d(q,{o:()=>x});var t=c(2654);class _ extends t.w{constructor(te,Q){super()}schedule(te,Q=0){return this}}class x extends _{constructor(te,Q){super(te,Q),this.scheduler=te,this.work=Q,this.pending=!1}schedule(te,Q=0){if(this.closed)return this;this.state=te;const S=this.id,W=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(W,S,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId(W,this.id,Q),this}requestAsyncId(te,Q,S=0){return setInterval(te.flush.bind(te,this),S)}recycleAsyncId(te,Q,S=0){if(null!==S&&this.delay===S&&!1===this.pending)return Q;clearInterval(Q)}execute(te,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(te,Q);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(te,Q){let W,S=!1;try{this.work(te)}catch(P){S=!0,W=!!P&&P||new Error(P)}if(S)return this.unsubscribe(),W}_unsubscribe(){const te=this.id,Q=this.scheduler,S=Q.actions,W=S.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==W&&S.splice(W,1),null!=te&&(this.id=this.recycleAsyncId(Q,te,null)),this.delay=null}}},2268:(xe,q,c)=>{"use strict";c.d(q,{v:()=>_});let t=(()=>{class x{constructor(te,Q=x.now){this.SchedulerAction=te,this.now=Q}schedule(te,Q=0,S){return new this.SchedulerAction(this,te).schedule(S,Q)}}return x.now=()=>Date.now(),x})();class _ extends t{constructor(re,te=t.now){super(re,()=>_.delegate&&_.delegate!==this?_.delegate.now():te()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(re,te=0,Q){return _.delegate&&_.delegate!==this?_.delegate.schedule(re,te,Q):super.schedule(re,te,Q)}flush(re){const{actions:te}=this;if(this.active)return void te.push(re);let Q;this.active=!0;do{if(Q=re.execute(re.state,re.delay))break}while(re=te.shift());if(this.active=!1,Q){for(;re=te.shift();)re.unsubscribe();throw Q}}}},353:(xe,q,c)=>{"use strict";c.d(q,{z:()=>x,P:()=>re});var t=c(6686);const x=new(c(2268).v)(t.o),re=x},341:(xe,q,c)=>{"use strict";c.d(q,{c:()=>Q,N:()=>te});var t=c(6686),x=c(2268);const te=new class re extends x.v{}(class _ extends t.o{constructor(W,P){super(W,P),this.scheduler=W,this.work=P}schedule(W,P=0){return P>0?super.schedule(W,P):(this.delay=P,this.state=W,this.scheduler.flush(this),this)}execute(W,P){return P>0||this.closed?super.execute(W,P):this._execute(W,P)}requestAsyncId(W,P,C=0){return null!==C&&C>0||null===C&&this.delay>0?super.requestAsyncId(W,P,C):W.flush(this)}}),Q=te},5430:(xe,q,c)=>{"use strict";c.d(q,{hZ:()=>_});const _=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(xe,q,c)=>{"use strict";c.d(q,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(xe,q,c)=>{"use strict";c.d(q,{b:()=>t});const t="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(xe,q,c)=>{"use strict";c.d(q,{W:()=>_});const _=(()=>{function x(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return x.prototype=Object.create(Error.prototype),x})()},5279:(xe,q,c)=>{"use strict";c.d(q,{N:()=>_});const _=(()=>{function x(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return x.prototype=Object.create(Error.prototype),x})()},2782:(xe,q,c)=>{"use strict";function t(_){setTimeout(()=>{throw _},0)}c.d(q,{z:()=>t})},5379:(xe,q,c)=>{"use strict";function t(_){return _}c.d(q,{y:()=>t})},6688:(xe,q,c)=>{"use strict";c.d(q,{k:()=>t});const t=Array.isArray||(_=>_&&"number"==typeof _.length)},8515:(xe,q,c)=>{"use strict";c.d(q,{z:()=>t});const t=_=>_&&"number"==typeof _.length&&"function"!=typeof _},7043:(xe,q,c)=>{"use strict";function t(_){return"function"==typeof _}c.d(q,{m:()=>t})},4241:(xe,q,c)=>{"use strict";c.d(q,{k:()=>_});var t=c(6688);function _(x){return!(0,t.k)(x)&&x-parseFloat(x)+1>=0}},7830:(xe,q,c)=>{"use strict";function t(_){return null!==_&&"object"==typeof _}c.d(q,{K:()=>t})},8955:(xe,q,c)=>{"use strict";function t(_){return!!_&&"function"!=typeof _.subscribe&&"function"==typeof _.then}c.d(q,{t:()=>t})},2866:(xe,q,c)=>{"use strict";function t(_){return _&&"function"==typeof _.schedule}c.d(q,{K:()=>t})},9249:(xe,q,c)=>{"use strict";c.d(q,{s:()=>L});var t=c(3650),_=c(2782),re=c(5430),Q=c(3821),W=c(8515),P=c(8955),C=c(7830);const L=E=>{if(E&&"function"==typeof E[Q.L])return(E=>m=>{const v=E[Q.L]();if("function"!=typeof v.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return v.subscribe(m)})(E);if((0,W.z)(E))return(0,t.V)(E);if((0,P.t)(E))return(E=>m=>(E.then(v=>{m.closed||(m.next(v),m.complete())},v=>m.error(v)).then(null,_.z),m))(E);if(E&&"function"==typeof E[re.hZ])return(E=>m=>{const v=E[re.hZ]();for(;;){let R;try{R=v.next()}catch(j){return m.error(j),m}if(R.done){m.complete();break}if(m.next(R.value),m.closed)break}return"function"==typeof v.return&&m.add(()=>{v.return&&v.return()}),m})(E);
1{const v=`You provided ${(0,C.K)(E)?"an invalid object":`'${E}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(v)}}},3650:(xe,q,c)=>{"use strict";c.d(q,{V:()=>t});const t=_=>x=>{for(let re=0,te=_.length;re<te&&!x.closed;re++)x.next(_[re]);x.complete()}},1050:(xe,q,c)=>{var t=c(4117);function _(x){var re,te;function S(P,C){try{var L=x[P](C),E=L.value,m=E instanceof t;Promise.resolve(m?E.wrapped:E).then(function(v){m?S("return"===P?"return":"next",v):W(L.done?"return":"normal",v)},function(v){S("throw",v)})}catch(v){W("throw",v)}}function W(P,C){switch(P){case"return":re.resolve({value:C,done:!0});break;case"throw":re.reject(C);break;default:re.resolve({value:C,done:!1})}(re=re.next)?S(re.key,re.arg):te=null}this._invoke=function Q(P,C){return new Promise(function(L,E){var m={key:P,arg:C,resolve:L,reject:E,next:null};te?te=te.next=m:(re=te=m,S(P,C))})},"function"!=typeof x.return&&(this.return=void 0)}_.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},_.prototype.next=function(x){return this._invoke("next",x)},_.prototype.throw=function(x){return this._invoke("throw",x)},_.prototype.return=function(x){return this._invoke("return",x)},xe.exports=_,xe.exports.__esModule=!0,xe.exports.default=xe.exports},4117:xe=>{xe.exports=function q(c){this.wrapped=c},xe.exports.__esModule=!0,xe.exports.default=xe.exports},83:xe=>{xe.exports=function q(c,t){var _={},x=!1;function re(te,Q){return x=!0,Q=new Promise(function(S){S(c[te](Q))}),{done:!1,value:t(Q)}}return _["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},_.next=function(te){return x?(x=!1,te):re("next",te)},"function"==typeof c.throw&&(_.throw=function(te){if(x)throw x=!1,te;return re("throw",te)}),"function"==typeof c.return&&(_.return=function(te){return x?(x=!1,te):re("return",te)}),_},xe.exports.__esModule=!0,xe.exports.default=xe.exports},7003:xe=>{function c(t){function _(x){if(Object(x)!==x)return Promise.reject(new TypeError(x+" is not an object."));var re=x.done;return Promise.resolve(x.value).then(function(te){return{value:te,done:re}})}return(c=function(re){this.s=re,this.n=re.next}).prototype={s:null,n:null,next:function(){return _(this.n.apply(this.s,arguments))},return:function(re){var te=this.s.return;return void 0===te?Promise.resolve({value:re,done:!0}):_(te.apply(this.s,arguments))},throw:function(re){var te=this.s.return;return void 0===te?Promise.reject(re):_(te.apply(this.s,arguments))}},new c(t)}xe.exports=function q(t){var _,x,re,te=2;for("undefined"!=typeof Symbol&&(x=Symbol.asyncIterator,re=Symbol.iterator);te--;){if(x&&null!=(_=t[x]))return _.call(t);if(re&&null!=(_=t[re]))return new c(_.call(t));x="@@asyncIterator",re="@@iterator"}throw new TypeError("Object is not async iterable")},xe.exports.__esModule=!0,xe.exports.default=xe.exports},8926:xe=>{function q(t,_,x,re,te,Q,S){try{var W=t[Q](S),P=W.value}catch(C){return void x(C)}W.done?_(P):Promise.resolve(P).then(re,te)}xe.exports=function c(t){return function(){var _=this,x=arguments;return new Promise(function(re,te){var Q=t.apply(_,x);function S(P){q(Q,re,te,S,W,"next",P)}function W(P){q(Q,re,te,S,W,"throw",P)}S(void 0)})}},xe.exports.__esModule=!0,xe.exports.default=xe.exports},5486:(xe,q,c)=>{var t=c(4117);xe.exports=function _(x){return new t(x)},xe.exports.__esModule=!0,xe.exports.default=xe.exports},551:(xe,q,c)=>{var t=c(1050);xe.exports=function _(x){return function(){return new t(x.apply(this,arguments))}},xe.exports.__esModule=!0,xe.exports.default=xe.exports},9628:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>
1f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},7754:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},4255:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},617:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},2472:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},1175:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},2027:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},8713:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{__extends:()=>_,__assign:()=>x,__rest:()=>re,__decorate:()=>te,__param:()=>Q,__metadata:()=>S,__awaiter:()=>W,__generator:()=>P,__createBinding:()=>C,__exportStar:()=>L,__values:()=>E,__read:()=>m,__spread:()=>v,__spreadArrays:()=>R,__await:()=>j,__asyncGenerator:()=>M,__asyncDelegator:()=>V,__asyncValues:()=>f,__makeTemplateObject:()=>T,__importStar:()=>Z,__importDefault:()=>G,__classPrivateFieldGet:()=>$,__classPrivateFieldSet:()=>se});var t=function(y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,H){I.__proto__=H}||function(I,H){for(var ee in H)H.hasOwnProperty(ee)&&(I[ee]=H[ee])})(y,k)};function _(y,k){function I(){this.constructor=y}t(y,k),y.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}var x=function(){return x=Object.assign||function(k){for(var I,H=1,ee=arguments.length;H<ee;H++)for(var z in I=arguments[H])Object.prototype.hasOwnProperty.call(I,z)&&(k[z]=I[z]);return k},x.apply(this,arguments)};function re(y,k){var I={};for(var H in y)Object.prototype.hasOwnProperty.call(y,H)&&k.indexOf(H)<0&&(I[H]=y[H]);if(null!=y&&"function"==typeof Object.getOwnPropertySymbols){var ee=0;for(H=Object.getOwnPropertySymbols(y);ee<H.length;ee++)k.indexOf(H[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,H[ee])&&(I[H[ee]]=y[H[ee]])}return I}function te(y,k,I,H){var oe,ee=arguments.length,z=ee<3?k:null===H?H=Object.getOwnPropertyDescriptor(k,I):H;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)z=Reflect.decorate(y,k,I,H);else for(var ve=y.length-1;ve>=0;ve--)(oe=y[ve])&&(z=(ee<3?oe(z):ee>3?oe(k,I,z):oe(k,I))||z);return ee>3&&z&&Object.defineProperty(k,I,z),z}function Q(y,k){return function(I,H){k(I,H,y)}}function S(y,k){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(y,k)}function W(y,k,I,H){return new(I||(I=Promise))(function(z,oe){function ve(He){try{Re(H.next(He))}catch(ge){oe(ge)}}function We(He){try{Re(H.throw(He))}catch(ge){oe(ge)}}function Re(He){He.done?z(He.value):function ee(z){return z instanceof I?z:new I(function(oe){oe(z)})}(He.value).then(ve,We)}Re((H=H.apply(y,k||[])).next())})}function P(y,k){var H,ee,z,oe,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return oe={next:ve(0),throw:ve(1),return:ve(2)},"function"==typeof Symbol&&(oe[Symbol.iterator]=function(){return this}),oe;function ve(Re){return function(He){return function We(Re){if(H)throw new TypeError("Generator is already executing.");for(;I;)try{if(H=1,ee&&(z=2&Re[0]?ee.return:Re[0]?ee.throw||((z=ee.return)&&z.call(ee),0):ee.next)&&!(z=z.call(ee,Re[1])).done)return z;switch(ee=0,z&&(Re=[2&Re[0],z.value]),Re[0]){case 0:case 1:z=Re;break;case 4:return I.label++,{value:Re[1],done:!1};case 5:I.label++,ee=Re[1],Re=[0];continue;case 7:Re=I.ops.pop(),I.trys.pop();continue;default:if(!(z=(z=I.trys).length>0&&z[z.length-1])&&(6===Re[0]||2===Re[0])){I=0;continue}if(3===Re[0]&&(!z||Re[1]>z[0]&&Re[1]<z[3])){I.label=Re[1];break}if(6===Re[0]&&I.label<z[1]){I.label=z[1],z=Re;break}if(z&&I.label<z[2]){I.label=z[2],I.ops.push(Re);break}z[2]&&I.ops.pop(),I.trys.pop();continue}Re=k.call(y,I)}catch(He){Re=[6,He],ee=0}finally{H=z=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([Re,He])}}}function C(y,k,I,H){void 0===H&&(H=I),y[H]=k[I]}function L(y,k){for(var I in y)"default"!==I&&!k.hasOwnProperty(I)&&(k[I]=y[I])}function E(y){var k="function"==typeof Symbol&&Symbol.iterator,I=k&&y[k],H=0;if(I)return I.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&H>=y.length&&(y=void 0),{value:y&&y[H++],done:!y}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(y,k){var I="function"==typeof Symbol&&y[Symbol.iterator];if(!I)return y;var ee,oe,H=I.call(y),z=[];try{for(;(void 0===k||k-- >0)&&!(ee=H.next()).done;)z.push(ee.value)}catch(ve){oe={error:ve}}finally{try{ee&&!ee.done&&(I=H.return)&&I.call(H)}finally{if(oe)throw oe.error}}return z}function v(){for(var y=[],k=0;k<arguments.length;k++)y=y.concat(m(arguments[k]));return y}function R(){for(var y=0,k=0,I=arguments.length;k<I;k++)y+=arguments[k].length;var H=Array(y),ee=0;for(k=0;k<I;k++)for(var z=arguments[k],oe=0,ve=z.length;oe<ve;oe++,ee++)H[ee]=z[oe];return H}function j(y){return this instanceof j?(this.v=y,this):new j(y)}function M(y,k,I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ee,H=I.apply(y,k||[]),z=[];return ee={},oe("next"),oe("throw"),oe("return"),ee[Symbol.asyncIterator]=function(){return this},ee;function oe(O){H[O]&&(ee[O]=function(b){return new Promise(function(p,A){z.push([O,b,p,A])>1||ve(O,b)})})}function ve(O,b){try{!function We(O){O.value instanceof j?Promise.resolve(O.value.v).then(Re,He):ge(z[0][2],O)}(H[O](b))}catch(p){ge(z[0][3],p)}}function Re(O){ve("next",O)}function He(O){ve("throw",O)}function ge(O,b){O(b),z.shift(),z.length&&ve(z[0][0],z[0][1])}}function V(y){var k,I;return k={},H("next"),H("throw",function(ee){throw ee}),H("return"),k[Symbol.iterator]=function(){return this},k;function H(ee,z){k[ee]=y[ee]?function(oe){return(I=!I)?{value:j(y[ee](oe)),done:"return"===ee}:z?z(oe):oe}:z}}function f(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var I,k=y[Symbol.asyncIterator];return k?k.call(y):(y=E(y),I={},H("next"),H("throw"),H("return"),I[Symbol.asyncIterator]=function(){return this},I);function H(z){I[z]=y[z]&&function(oe){return new Promise(function(ve,We){!function ee(z,oe,ve,We){Promise.resolve(We).then(function(Re){z({value:Re,done:ve})},oe)}(ve,We,(oe=y[z](oe)).done,oe.value)})}}}function T(y,k){return Object.defineProperty?Object.defineProperty(y,"raw",{value:k}):y.raw=k,y}function Z(y){if(y&&y.__esModule)return y;var k={};if(null!=y)for(var I in y)Object.hasOwnProperty.call(y,I)&&(k[I]=y[I]);return k.default=y,k}function G(y){return y&&y.__esModule?y:{default:y}}function $(y,k){if(!k.has(y))throw new TypeError("attempted to get private field on non-instance");return k.get(y)}function se(y,k,I){if(!k.has(y))throw new TypeError("attempted to set private field on non-instance");return k.set(y,I),I}
1},863:(xe,q,c)=>{var t={"./ion-accordion_2.entry.js":[9654,8592,9654],"./ion-action-sheet.entry.js":[3648,8592,3648],"./ion-alert.entry.js":[1118,8592,1118],"./ion-app_8.entry.js":[53,8592,3236],"./ion-avatar_3.entry.js":[4753,4753],"./ion-back-button.entry.js":[2073,8592,2073],"./ion-backdrop.entry.js":[8939,8939],"./ion-breadcrumb_2.entry.js":[7544,8592,7544],"./ion-button_2.entry.js":[5652,5652],"./ion-card_5.entry.js":[388,388],"./ion-checkbox.entry.js":[9922,9922],"./ion-chip.entry.js":[657,657],"./ion-col_3.entry.js":[9824,9824],"./ion-datetime-button.entry.js":[9230,7206,9230],"./ion-datetime_3.entry.js":[4959,7206,8592,4959],"./ion-fab_3.entry.js":[5836,8592,5836],"./ion-img.entry.js":[1033,1033],"./ion-infinite-scroll_2.entry.js":[8034,8592,5817],"./ion-input.entry.js":[1217,8592,1217],"./ion-item-option_3.entry.js":[2933,8592,4651],"./ion-item_8.entry.js":[4711,8592,4711],"./ion-loading.entry.js":[9434,9434],"./ion-menu_3.entry.js":[8136,8592,8136],"./ion-modal.entry.js":[7066,8592,2349],"./ion-nav_2.entry.js":[5349,8592,5349],"./ion-picker-column-internal.entry.js":[7602,8592,7602],"./ion-picker-internal.entry.js":[9016,9016],"./ion-popover.entry.js":[3804,8592,3804],"./ion-progress-bar.entry.js":[4174,4174],"./ion-radio_2.entry.js":[4432,4432],"./ion-range.entry.js":[3545,8592,1709],"./ion-refresher_2.entry.js":[3326,8592,2175],"./ion-reorder_2.entry.js":[3583,8592,1186],"./ion-ripple-effect.entry.js":[9958,9958],"./ion-route_4.entry.js":[4330,4330],"./ion-searchbar.entry.js":[8628,8592,8628],"./ion-segment_2.entry.js":[9325,8592,9325],"./ion-select_3.entry.js":[2773,2773],"./ion-slide_2.entry.js":[1650,1650],"./ion-spinner.entry.js":[4908,8592,4908],"./ion-split-pane.entry.js":[9536,9536],"./ion-tab-bar_2.entry.js":[438,8592,438],"./ion-tab_2.entry.js":[1536,8592,1536],"./ion-text.entry.js":[4376,4376],"./ion-textarea.entry.js":[6560,6560],"./ion-toast.entry.js":[6120,6120],"./ion-toggle.entry.js":[5168,8592,5168],"./ion-virtual-scroll.entry.js":[2289,2289]};function _(x){if(!c.o(t,x))return Promise.resolve().then(()=>{var Q=new Error("Cannot find module '"+x+"'");throw Q.code="MODULE_NOT_FOUND",Q});var re=t[x],te=re[0];return Promise.all(re.slice(1).map(c.e)).then(()=>c(te))}_.keys=()=>Object.keys(t),_.id=863,xe.exports=_},5899:(xe,q,c)=>{var t={"./pwa-action-sheet.entry.js":[2987,2987],"./pwa-camera-modal-instance.entry.js":[3527,3527],"./pwa-camera-modal.entry.js":[7839,7839],"./pwa-camera.entry.js":[7943,7943],"./pwa-toast.entry.js":[3822,3822]};function _(x){if(!c.o(t,x))return Promise.resolve().then(()=>{var Q=new Error("Cannot find module '"+x+"'");throw Q.code="MODULE_NOT_FOUND",Q});var re=t[x],te=re[0];return c.e(re[1]).then(()=>c(te))}_.keys=()=>Object.keys(t),_.id=5899,xe.exports=_},4069:()=>{},2339:()=>{},4828:()=>{},7915:()=>{},5598:()=>{},372:()=>{},4601:()=>{},2767:()=>{},8251:()=>{},7677:()=>{},1543:()=>{},7324:()=>{},7362:(xe,q,c)=>{"use strict";var t=c(8926).default,_=c(551).default,x=c(5486).default,re=c(83).default,te=c(7003).default;function Q(le,Ae){return function(){return le.apply(Ae,arguments)}}const{toString:S}=Object.prototype,{getPrototypeOf:W}=Object,{iterator:P,toStringTag:C}=Symbol,L=(le=Object.create(null),Ae=>{const be=S.call(Ae);return le[be]||(le[be]=be.slice(8,-1).toLowerCase())}),E=le=>(le=le.toLowerCase(),Ae=>L(Ae)===le),m=le=>Ae=>typeof Ae===le,{isArray:v}=Array,R=m("undefined");var le;const M=E("ArrayBuffer"),f=m("string"),T=m("function"),Z=m("number"),G=le=>null!==le&&"object"==typeof le,se=le=>{if("object"!==L(le))return!1;const Ae=W(le);return!(null!==Ae&&Ae!==Object.prototype&&null!==Object.getPrototypeOf(Ae)||C in le||P in le)},y=E("Date"),k=E("File"),I=E("Blob"),H=E("FileList"),oe=E("URLSearchParams"),[ve,We,Re,He]=["ReadableStream","Request","Response","Headers"].map(E);function O(le,Ae,{allOwnKeys:be=!1}={}){if(null==le)return;let Me,dt;if("object"!=typeof le&&(le=[le]),v(le))for(Me=0,dt=le.length;Me<dt;Me++)Ae.call(null,le[Me],Me,le);else{const rn=be?Object.getOwnPropertyNames(le):Object.keys(le),fn=rn.length;let xn;for(Me=0;Me<fn;Me++)xn=rn[Me],Ae.call(null,le[xn],xn,le)}}function b(le,Ae){Ae=Ae.toLowerCase();const be=Object.keys(le);let dt,Me=be.length;for(;Me-- >0;)if(dt=be[Me],Ae===dt.toLowerCase())return dt;return null}const p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,A=le=>!R(le)&&le!==p,Ye=(le=>Ae=>le&&Ae instanceof le)("undefined"!=typeof Uint8Array&&W(Uint8Array)),Ot=E("HTMLFormElement"),Lt=(({hasOwnProperty:le})=>(Ae,be)=>le.call(Ae,be))(Object.prototype),Jt=E("RegExp"),Rt=(le,Ae)=>{const be=Object.getOwnPropertyDescriptors(le),Me={};O(be,(dt,rn)=>{let fn;!1!==(fn=Ae(dt,rn,le))&&(Me[rn]=fn||dt)}),Object.defineProperties(le,Me)},cn=E("AsyncFunction"),at=((le,Ae)=>{return le?setImmediate:Ae?(be=`axios@${Math.random()}
1`,Me=[],p.addEventListener("message",({source:dt,data:rn})=>{dt===p&&rn===be&&Me.length&&Me.shift()()},!1),dt=>{Me.push(dt),p.postMessage(be,"*")}):be=>setTimeout(be);var be,Me})("function"==typeof setImmediate,T(p.postMessage)),St="undefined"!=typeof queueMicrotask?queueMicrotask.bind(p):"undefined"!=typeof process&&process.nextTick||at;var ze={isArray:v,isArrayBuffer:M,isBuffer:function j(le){return null!==le&&!R(le)&&null!==le.constructor&&!R(le.constructor)&&T(le.constructor.isBuffer)&&le.constructor.isBuffer(le)},isFormData:le=>{let Ae;return le&&("function"==typeof FormData&&le instanceof FormData||T(le.append)&&("formdata"===(Ae=L(le))||"object"===Ae&&T(le.toString)&&"[object FormData]"===le.toString()))},isArrayBufferView:function V(le){let Ae;return Ae="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(le):le&&le.buffer&&M(le.buffer),Ae},isString:f,isNumber:Z,isBoolean:le=>!0===le||!1===le,isObject:G,isPlainObject:se,isReadableStream:ve,isRequest:We,isResponse:Re,isHeaders:He,isUndefined:R,isDate:y,isFile:k,isBlob:I,isRegExp:Jt,isFunction:T,isStream:le=>G(le)&&T(le.pipe),isURLSearchParams:oe,isTypedArray:Ye,isFileList:H,forEach:O,merge:function N(){const{caseless:le}=A(this)&&this||{},Ae={},be=(Me,dt)=>{const rn=le&&b(Ae,dt)||dt;Ae[rn]=se(Ae[rn])&&se(Me)?N(Ae[rn],Me):se(Me)?N({},Me):v(Me)?Me.slice():Me};for(let Me=0,dt=arguments.length;Me<dt;Me++)arguments[Me]&&O(arguments[Me],be);return Ae},extend:(le,Ae,be,{allOwnKeys:Me}={})=>(O(Ae,(dt,rn)=>{le[rn]=be&&T(dt)?Q(dt,be):dt},{allOwnKeys:Me}),le),trim:le=>le.trim?le.trim():le.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:le=>(65279===le.charCodeAt(0)&&(le=le.slice(1)),le),inherits:(le,Ae,be,Me)=>{le.prototype=Object.create(Ae.prototype,Me),le.prototype.constructor=le,Object.defineProperty(le,"super",{value:Ae.prototype}),be&&Object.assign(le.prototype,be)},toFlatObject:(le,Ae,be,Me)=>{let dt,rn,fn;const xn={};if(Ae=Ae||{},null==le)return Ae;do{for(dt=Object.getOwnPropertyNames(le),rn=dt.length;rn-- >0;)fn=dt[rn],(!Me||Me(fn,le,Ae))&&!xn[fn]&&(Ae[fn]=le[fn],xn[fn]=!0);le=!1!==be&&W(le)}while(le&&(!be||be(le,Ae))&&le!==Object.prototype);return Ae},kindOf:L,kindOfTest:E,endsWith:(le,Ae,be)=>{le=String(le),(void 0===be||be>le.length)&&(be=le.length);const Me=le.indexOf(Ae,be-=Ae.length);return-1!==Me&&Me===be},toArray:le=>{if(!le)return null;if(v(le))return le;let Ae=le.length;if(!Z(Ae))return null;const be=new Array(Ae);for(;Ae-- >0;)be[Ae]=le[Ae];return be},forEachEntry:(le,Ae)=>{const Me=(le&&le[P]).call(le);let dt;for(;(dt=Me.next())&&!dt.done;){const rn=dt.value;Ae.call(le,rn[0],rn[1])}},matchAll:(le,Ae)=>{let be;const Me=[];for(;null!==(be=le.exec(Ae));)Me.push(be);return Me},isHTMLForm:Ot,hasOwnProperty:Lt,hasOwnProp:Lt,reduceDescriptors:Rt,freezeMethods:le=>{Rt(le,(Ae,be)=>{if(T(le)&&-1!==["arguments","caller","callee"].indexOf(be))return!1;if(T(le[be])){if(Ae.enumerable=!1,"writable"in Ae)return void(Ae.writable=!1);Ae.set||(Ae.set=()=>{throw Error("Can not rewrite read-only method '"+be+"'")})}})},toObjectSet:(le,Ae)=>{const be={},Me=dt=>{dt.forEach(rn=>{be[rn]=!0})};return v(le)?Me(le):Me(String(le).split(Ae)),be},toCamelCase:le=>le.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(be,Me,dt){return Me.toUpperCase()+dt}),noop:()=>{},toFiniteNumber:(le,Ae)=>null!=le&&Number.isFinite(le=+le)?le:Ae,findKey:b,global:p,isContextDefined:A,isSpecCompliantForm:function ht(le){return!!(le&&T(le.append)&&"FormData"===le[C]&&le[P])},toJSONObject:le=>{const Ae=new Array(10),be=(Me,dt)=>{if(G(Me)){if(Ae.indexOf(Me)>=0)return;if(!("toJSON"in Me)){Ae[dt]=Me;const rn=v(Me)?[]:{};return O(Me,(fn,xn)=>{const Er=be(fn,dt+1);!R(Er)&&(rn[xn]=Er)}),Ae[dt]=void 0,rn}}return Me};return be(le,0)},isAsyncFn:cn,isThenable:le=>le&&(G(le)||T(le))&&T(le.then)&&T(le.catch),setImmediate:at,asap:St,isIterable:le=>null!=le&&T(le[P])};function nt(le,Ae,be,Me,dt){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=le,this.name="AxiosError",Ae&&(this.code=Ae),be&&(this.config=be),Me&&(this.request=Me),dt&&(this.response=dt,this.status=dt.status?dt.status:null)}ze.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ze.toJSONObject(this.config),code:this.code,status:this.status}}});const mt=nt.prototype,Nt={};function bt(le){return ze.isPlainObject(le)||ze.isArray(le)}function Kt(le){return ze.endsWith(le,"[]")?le.slice(0,-2):le}function Un(le,Ae,be){return le?le.concat(Ae).map(function(dt,rn){return dt=Kt(dt),!be&&rn?"["+dt+"]":dt}).join(be?".":""):Ae}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
1RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(le=>{Nt[le]={value:le}}),Object.defineProperties(nt,Nt),Object.defineProperty(mt,"isAxiosError",{value:!0}),nt.from=(le,Ae,be,Me,dt,rn)=>{const fn=Object.create(mt);return ze.toFlatObject(le,fn,function(Er){return Er!==Error.prototype},xn=>"isAxiosError"!==xn),nt.call(fn,le.message,Ae,be,Me,dt),fn.cause=le,fn.name=le.name,rn&&Object.assign(fn,rn),fn};const tn=ze.toFlatObject(ze,{},null,function(Ae){return/^is[A-Z]/.test(Ae)});function Cn(le,Ae,be){if(!ze.isObject(le))throw new TypeError("target must be an object");Ae=Ae||new FormData;const Me=(be=ze.toFlatObject(be,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Je,Ve){return!ze.isUndefined(Ve[Je])})).metaTokens,dt=be.visitor||hr,rn=be.dots,fn=be.indexes,Er=(be.Blob||"undefined"!=typeof Blob&&Blob)&&ze.isSpecCompliantForm(Ae);if(!ze.isFunction(dt))throw new TypeError("visitor must be a function");function gr(Or){if(null===Or)return"";if(ze.isDate(Or))return Or.toISOString();if(ze.isBoolean(Or))return Or.toString();if(!Er&&ze.isBlob(Or))throw new nt("Blob is not supported. Use a Buffer instead.");return ze.isArrayBuffer(Or)||ze.isTypedArray(Or)?Er&&"function"==typeof Blob?new Blob([Or]):Buffer.from(Or):Or}function hr(Or,Je,Ve){let Be=Or;if(Or&&!Ve&&"object"==typeof Or)if(ze.endsWith(Je,"{}"))Je=Me?Je:Je.slice(0,-2),Or=JSON.stringify(Or);else if(ze.isArray(Or)&&function vt(le){return ze.isArray(le)&&!le.some(bt)}(Or)||(ze.isFileList(Or)||ze.endsWith(Je,"[]"))&&(Be=ze.toArray(Or)))return Je=Kt(Je),Be.forEach(function(Wn,Sr){!ze.isUndefined(Wn)&&null!==Wn&&Ae.append(!0===fn?Un([Je],Sr,rn):null===fn?Je:Je+"[]",gr(Wn))}),!1;return!!bt(Or)||(Ae.append(Un(Ve,Je,rn),gr(Or)),!1)}const pr=[],zr=Object.assign(tn,{defaultVisitor:hr,convertValue:gr,isVisitable:bt});if(!ze.isObject(le))throw new TypeError("data must be an object");return function ii(Or,Je){if(!ze.isUndefined(Or)){if(-1!==pr.indexOf(Or))throw Error("Circular reference detected in "+Je.join("."));pr.push(Or),ze.forEach(Or,function(Be,It){!0===(!(ze.isUndefined(Be)||null===Be)&&dt.call(Ae,Be,ze.isString(It)?It.trim():It,Je,zr))&&ii(Be,Je?Je.concat(It):[It])}),pr.pop()}}(le),Ae}
1function Sn(le){const Ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(le).replace(/[!'()~]|%20|%00/g,function(Me){return Ae[Me]})}function Nn(le,Ae){this._pairs=[],le&&Cn(le,this,Ae)}const rr=Nn.prototype;function Fn(le){return encodeURIComponent(le).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jn(le,Ae,be){if(!Ae)return le;const Me=be&&be.encode||Fn;ze.isFunction(be)&&(be={serialize:be});const dt=be&&be.serialize;let rn;if(rn=dt?dt(Ae,be):ze.isURLSearchParams(Ae)?Ae.toString():new Nn(Ae,be).toString(Me),rn){const fn=le.indexOf("#");-1!==fn&&(le=le.slice(0,fn)),le+=(-1===le.indexOf("?")?"?":"&")+rn}return le}rr.append=function(Ae,be){this._pairs.push([Ae,be])},rr.toString=function(Ae){const be=Ae?function(Me){return Ae.call(this,Me,Sn)}:Sn;return this._pairs.map(function(dt){return be(dt[0])+"="+be(dt[1])},"").join("&")};var Tt=class nr{constructor(){this.handlers=[]}use(Ae,be,Me){return this.handlers.push({fulfilled:Ae,rejected:be,synchronous:!!Me&&Me.synchronous,runWhen:Me?Me.runWhen:null}),this.handlers.length-1}eject(Ae){this.handlers[Ae]&&(this.handlers[Ae]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(Ae){ze.forEach(this.handlers,function(Me){null!==Me&&Ae(Me)})}},hn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Nn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ue="undefined"!=typeof window&&"undefined"!=typeof document,st="object"==typeof navigator&&navigator||void 0,Ft=Ue&&(!st||["ReactNative","NativeScript","NS"].indexOf(st.product)<0),nn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,vn=Ue&&window.location.href||"http://localhost";var $n=Tl(Tl({},Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserWebWorkerEnv:nn,hasStandardBrowserEnv:Ft,navigator:st,origin:vn})),Ce);function jt(le){function Ae(be,Me,dt,rn){let fn=be[rn++];if("__proto__"===fn)return!0;const xn=Number.isFinite(+fn),Er=rn>=be.length;return fn=!fn&&ze.isArray(dt)?dt.length:fn,Er?(dt[fn]=ze.hasOwnProp(dt,fn)?[dt[fn],Me]:Me,!xn):((!dt[fn]||!ze.isObject(dt[fn]))&&(dt[fn]=[]),Ae(be,Me,dt[fn],rn)&&ze.isArray(dt[fn])&&(dt[fn]=function Wt(le){const Ae={},be=Object.keys(le);let Me;const dt=be.length;let rn;for(Me=0;Me<dt;Me++)rn=be[Me],Ae[rn]=le[rn];return Ae}(dt[fn])),!xn)}if(ze.isFormData(le)&&ze.isFunction(le.entries)){const be={};return ze.forEachEntry(le,(Me,dt)=>{Ae(function ir(le){return ze.matchAll(/\w+|\[(\w*)]/g,le).map(Ae=>"[]"===Ae[0]?"":Ae[1]||Ae[0])}(Me),dt,be,0)}),be}return null}const mn={transitional:hn,adapter:["xhr","http","fetch"],transformRequest:[function(Ae,be){const Me=be.getContentType()||"",dt=Me.indexOf("application/json")>-1,rn=ze.isObject(Ae);if(rn&&ze.isHTMLForm(Ae)&&(Ae=new FormData(Ae)),ze.isFormData(Ae))return dt?JSON.stringify(jt(Ae)):Ae;if(ze.isArrayBuffer(Ae)||ze.isBuffer(Ae)||ze.isStream(Ae)||ze.isFile(Ae)||ze.isBlob(Ae)||ze.isReadableStream(Ae))return Ae;if(ze.isArrayBufferView(Ae))return Ae.buffer;if(ze.isURLSearchParams(Ae))return be.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Ae.toString();let xn;if(rn){if(Me.indexOf("application/x-www-form-urlencoded")>-1)return function Gn(le,Ae){return Cn(le,new $n.classes.URLSearchParams,Object.assign({visitor:function(be,Me,dt,rn){return $n.isNode&&ze.isBuffer(be)?(this.append(Me,be.toString("base64")),!1):rn.defaultVisitor.apply(this,arguments)}},Ae))}(Ae,this.formSerializer).toString();if((xn=ze.isFileList(Ae))||Me.indexOf("multipart/form-data")>-1){const Er=this.env&&this.env.FormData;return Cn(xn?{"files[]":Ae}:Ae,Er&&new Er,this.formSerializer)}}return rn||dt?(be.setContentType("application/json",!1),function on(le,Ae,be){if(ze.isString(le))try{return(Ae||JSON.parse)(le),ze.trim(le)}
vendor: 4,965 bytes, line 1
1catch(Me){if("SyntaxError"!==Me.name)throw Me}return(be||JSON.stringify)(le)}(Ae)):Ae}],transformResponse:[function(Ae){const be=this.transitional||mn.transitional,Me=be&&be.forcedJSONParsing,dt="json"===this.responseType;if(ze.isResponse(Ae)||ze.isReadableStream(Ae))return Ae;if(Ae&&ze.isString(Ae)&&(Me&&!this.responseType||dt)){const fn=!(be&&be.silentJSONParsing)&&dt;try{return JSON.parse(Ae)}catch(xn){if(fn)throw"SyntaxError"===xn.name?nt.from(xn,nt.ERR_BAD_RESPONSE,this,null,this.response):xn}}return Ae}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$n.classes.FormData,Blob:$n.classes.Blob},validateStatus:function(Ae){return Ae>=200&&Ae<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ze.forEach(["delete","get","head","post","put","patch"],le=>{mn.headers[le]={}});var Mt=mn;const ke=ze.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ht=Symbol("internals");function Yt(le){return le&&String(le).trim().toLowerCase()}function un(le){return!1===le||null==le?le:ze.isArray(le)?le.map(un):String(le)}function fr(le,Ae,be,Me,dt){if(ze.isFunction(Me))return Me.call(this,Ae,be);if(dt&&(Ae=be),ze.isString(Ae)){if(ze.isString(Me))return-1!==Ae.indexOf(Me);if(ze.isRegExp(Me))return Me.test(Ae)}}class dr{constructor(Ae){Ae&&this.set(Ae)}set(Ae,be,Me){const dt=this;function rn(xn,Er,gr){const hr=Yt(Er);if(!hr)throw new Error("header name must be a non-empty string");const pr=ze.findKey(dt,hr);(!pr||void 0===dt[pr]||!0===gr||void 0===gr&&!1!==dt[pr])&&(dt[pr||Er]=un(xn))}const fn=(xn,Er)=>ze.forEach(xn,(gr,hr)=>rn(gr,hr,Er));if(ze.isPlainObject(Ae)||Ae instanceof this.constructor)fn(Ae,be);else if(ze.isString(Ae)&&(Ae=Ae.trim())&&!(le=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(le.trim()))(Ae))fn((le=>{const Ae={};let be,Me,dt;return le&&le.split("\n").forEach(function(fn){dt=fn.indexOf(":"),be=fn.substring(0,dt).trim().toLowerCase(),Me=fn.substring(dt+1).trim(),!(!be||Ae[be]&&ke[be])&&("set-cookie"===be?Ae[be]?Ae[be].push(Me):Ae[be]=[Me]:Ae[be]=Ae[be]?Ae[be]+", "+Me:Me)}),Ae})(Ae),be);else if(ze.isObject(Ae)&&ze.isIterable(Ae)){let Er,gr,xn={};for(const hr of Ae){if(!ze.isArray(hr))throw TypeError("Object iterator must return a key-value pair");xn[gr=hr[0]]=(Er=xn[gr])?ze.isArray(Er)?[...Er,hr[1]]:[Er,hr[1]]:hr[1]}fn(xn,be)}else null!=Ae&&rn(be,Ae,Me);return this}get(Ae,be){if(Ae=Yt(Ae)){const Me=ze.findKey(this,Ae);if(Me){const dt=this[Me];if(!be)return dt;if(!0===be)return function An(le){const Ae=Object.create(null),be=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let Me;for(;Me=be.exec(le);)Ae[Me[1]]=Me[2];return Ae}(dt);if(ze.isFunction(be))return be.call(this,dt,Me);if(ze.isRegExp(be))return be.exec(dt);throw new TypeError("parser must be boolean|regexp|function")}}}has(Ae,be){if(Ae=Yt(Ae)){const Me=ze.findKey(this,Ae);return!(!Me||void 0===this[Me]||be&&!fr(0,this[Me],Me,be))}return!1}delete(Ae,be){const Me=this;let dt=!1;function rn(fn){if(fn=Yt(fn)){const xn=ze.findKey(Me,fn);xn&&(!be||fr(0,Me[xn],xn,be))&&(delete Me[xn],dt=!0)}}return ze.isArray(Ae)?Ae.forEach(rn):rn(Ae),dt}clear(Ae){const be=Object.keys(this);let Me=be.length,dt=!1;for(;Me--;){const rn=be[Me];(!Ae||fr(0,this[rn],rn,Ae,!0))&&(delete this[rn],dt=!0)}return dt}normalize(Ae){const be=this,Me={};return ze.forEach(this,(dt,rn)=>{const fn=ze.findKey(Me,rn);if(fn)return be[fn]=un(dt),void delete be[rn];const xn=Ae?function Ar(le){return le.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Ae,be,Me)=>be.toUpperCase()+Me)}(rn):String(rn).trim();xn!==rn&&delete be[rn],be[xn]=un(dt),Me[xn]=!0}),this}concat(...Ae){return this.constructor.concat(this,...Ae)}toJSON(Ae){const be=Object.create(null);return ze.forEach(this,(Me,dt)=>{null!=Me&&!1!==Me&&(be[dt]=Ae&&ze.isArray(Me)?Me.join(", "):Me)}),be}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Ae,be])=>Ae+": "+be).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Ae){return Ae instanceof this?Ae:new this(Ae)}static concat(Ae,...be){const Me=new this(Ae);return be.forEach(dt=>Me.set(dt)),Me}static accessor(Ae){const Me=(this[Ht]=this[Ht]={accessors:{}}).accessors,dt=this.prototype;function rn(fn){const xn=Yt(fn);Me[xn]||(function Dr(le,Ae){const be=ze.toCamelCase(" "+Ae);["get","set","has"].forEach(Me=>{Object.defineProperty(le,Me+be,{value:function(dt,rn,fn){return this[Me].call(this,Ae,dt,rn,fn)},configurable:!0})})}(dt,fn),Me[xn]=!0)}return ze.isArray(Ae)?Ae.forEach(rn):rn(Ae),this}}dr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ze.reduceDescriptors(dr.prototype,({value:le},Ae)=>
vendor: 4,593 bytes, line 1
1{let be=Ae[0].toUpperCase()+Ae.slice(1);return{get:()=>le,set(Me){this[be]=Me}}}),ze.freezeMethods(dr);var Kr=dr;function jr(le,Ae){const be=this||Mt,Me=Ae||be,dt=Kr.from(Me.headers);let rn=Me.data;return ze.forEach(le,function(xn){rn=xn.call(be,rn,dt.normalize(),Ae?Ae.status:void 0)}),dt.normalize(),rn}function Ur(le){return!(!le||!le.__CANCEL__)}function Lr(le,Ae,be){nt.call(this,null==le?"canceled":le,nt.ERR_CANCELED,Ae,be),this.name="CanceledError"}function _i(le,Ae,be){const Me=be.config.validateStatus;be.status&&Me&&!Me(be.status)?Ae(new nt("Request failed with status code "+be.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(be.status/100)-4],be.config,be.request,be)):le(be)}ze.inherits(Lr,nt,{__CANCEL__:!0});const Bn=(le,Ae,be=3)=>{let Me=0;const dt=function an(le,Ae){le=le||10;const be=new Array(le),Me=new Array(le);let fn,dt=0,rn=0;return Ae=void 0!==Ae?Ae:1e3,function(Er){const gr=Date.now(),hr=Me[rn];fn||(fn=gr),be[dt]=Er,Me[dt]=gr;let pr=rn,zr=0;for(;pr!==dt;)zr+=be[pr++],pr%=le;if(dt=(dt+1)%le,dt===rn&&(rn=(rn+1)%le),gr-fn<Ae)return;const ii=hr&&gr-hr;return ii?Math.round(1e3*zr/ii):void 0}}(50,250);return function Dn(le,Ae){let dt,rn,be=0,Me=1e3/Ae;const fn=(gr,hr=Date.now())=>{be=hr,dt=null,rn&&(clearTimeout(rn),rn=null),le.apply(null,gr)};return[(...gr)=>{const hr=Date.now(),pr=hr-be;pr>=Me?fn(gr,hr):(dt=gr,rn||(rn=setTimeout(()=>{rn=null,fn(dt)},Me-pr)))},()=>dt&&fn(dt)]}(rn=>{const fn=rn.loaded,xn=rn.lengthComputable?rn.total:void 0,Er=fn-Me,gr=dt(Er);Me=fn,le({loaded:fn,total:xn,progress:xn?fn/xn:void 0,bytes:Er,rate:gr||void 0,estimated:gr&&xn&&fn<=xn?(xn-fn)/gr:void 0,event:rn,lengthComputable:null!=xn,[Ae?"download":"upload"]:!0})},be)},Yn=(le,Ae)=>{const be=null!=le;return[Me=>Ae[0]({lengthComputable:be,total:le,loaded:Me}),Ae[1]]},Qt=le=>(...Ae)=>ze.asap(()=>le(...Ae));var En=$n.hasStandardBrowserEnv?((le,Ae)=>be=>(be=new URL(be,$n.origin),le.protocol===be.protocol&&le.host===be.host&&(Ae||le.port===be.port)))(new URL($n.origin),$n.navigator&&/(msie|trident)/i.test($n.navigator.userAgent)):()=>!0,Hn=$n.hasStandardBrowserEnv?{write(le,Ae,be,Me,dt,rn){const fn=[le+"="+encodeURIComponent(Ae)];ze.isNumber(be)&&fn.push("expires="+new Date(be).toGMTString()),ze.isString(Me)&&fn.push("path="+Me),ze.isString(dt)&&fn.push("domain="+dt),!0===rn&&fn.push("secure"),document.cookie=fn.join("; ")},read(le){const Ae=document.cookie.match(new RegExp("(^|;\\s*)("+le+")=([^;]*)"));return Ae?decodeURIComponent(Ae[3]):null},remove(le){this.write(le,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function wr(le,Ae,be){let Me=!function er(le){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(le)}(Ae);return le&&(Me||0==be)?function or(le,Ae){return Ae?le.replace(/\/?\/$/,"")+"/"+Ae.replace(/^\/+/,""):le}(le,Ae):Ae}const Nr=le=>le instanceof Kr?Tl({},le):le;function kr(le,Ae){Ae=Ae||{};const be={};function Me(gr,hr,pr,zr){return ze.isPlainObject(gr)&&ze.isPlainObject(hr)?ze.merge.call({caseless:zr},gr,hr):ze.isPlainObject(hr)?ze.merge({},hr):ze.isArray(hr)?hr.slice():hr}function dt(gr,hr,pr,zr){return ze.isUndefined(hr)?ze.isUndefined(gr)?void 0:Me(void 0,gr,0,zr):Me(gr,hr,0,zr)}function rn(gr,hr){if(!ze.isUndefined(hr))return Me(void 0,hr)}function fn(gr,hr){return ze.isUndefined(hr)?ze.isUndefined(gr)?void 0:Me(void 0,gr):Me(void 0,hr)}function xn(gr,hr,pr){return pr in Ae?Me(gr,hr):pr in le?Me(void 0,gr):void 0}const Er={url:rn,method:rn,data:rn,baseURL:fn,transformRequest:fn,transformResponse:fn,paramsSerializer:fn,timeout:fn,timeoutMessage:fn,withCredentials:fn,withXSRFToken:fn,adapter:fn,responseType:fn,xsrfCookieName:fn,xsrfHeaderName:fn,onUploadProgress:fn,onDownloadProgress:fn,decompress:fn,maxContentLength:fn,maxBodyLength:fn,beforeRedirect:fn,transport:fn,httpAgent:fn,httpsAgent:fn,cancelToken:fn,socketPath:fn,responseEncoding:fn,validateStatus:xn,headers:(gr,hr,pr)=>dt(Nr(gr),Nr(hr),0,!0)};return ze.forEach(Object.keys(Object.assign({},le,Ae)),function(hr){const pr=Er[hr]||dt,zr=pr(le[hr],Ae[hr],hr);ze.isUndefined(zr)&&pr!==xn||(be[hr]=zr)}),be}var ei=le=>{const Ae=kr({},le);let Er,{data:be,withXSRFToken:Me,xsrfHeaderName:dt,xsrfCookieName:rn,headers:fn,auth:xn}=Ae;if(Ae.headers=fn=Kr.from(fn),Ae.url=jn(wr(Ae.baseURL,Ae.url,Ae.allowAbsoluteUrls),le.params,le.paramsSerializer),xn&&fn.set("Authorization","Basic "+btoa((xn.username||"")+":"+(xn.password?unescape(encodeURIComponent(xn.password)):""))),ze.isFormData(be))if($n.hasStandardBrowserEnv||$n.hasStandardBrowserWebWorkerEnv)fn.setContentType(void 0);else if(!1!==(Er=fn.getContentType())){const[gr,...hr]=Er?Er.split(";").map(pr=>
1pr.trim()).filter(Boolean):[];fn.setContentType([gr||"multipart/form-data",...hr].join("; "))}if($n.hasStandardBrowserEnv&&(Me&&ze.isFunction(Me)&&(Me=Me(Ae)),Me||!1!==Me&&En(Ae.url))){const gr=dt&&rn&&Hn.read(rn);gr&&fn.set(dt,gr)}return Ae},ui="undefined"!=typeof XMLHttpRequest&&function(le){return new Promise(function(be,Me){const dt=ei(le);let rn=dt.data;const fn=Kr.from(dt.headers).normalize();let hr,pr,zr,ii,Or,{responseType:xn,onUploadProgress:Er,onDownloadProgress:gr}=dt;function Je(){ii&&ii(),Or&&Or(),dt.cancelToken&&dt.cancelToken.unsubscribe(hr),dt.signal&&dt.signal.removeEventListener("abort",hr)}let Ve=new XMLHttpRequest;function Be(){if(!Ve)return;const Wn=Kr.from("getAllResponseHeaders"in Ve&&Ve.getAllResponseHeaders());_i(function(de){be(de),Je()},function(de){Me(de),Je()},{data:xn&&"text"!==xn&&"json"!==xn?Ve.response:Ve.responseText,status:Ve.status,statusText:Ve.statusText,headers:Wn,config:le,request:Ve}),Ve=null}Ve.open(dt.method.toUpperCase(),dt.url,!0),Ve.timeout=dt.timeout,"onloadend"in Ve?Ve.onloadend=Be:Ve.onreadystatechange=function(){!Ve||4!==Ve.readyState||0===Ve.status&&(!Ve.responseURL||0!==Ve.responseURL.indexOf("file:"))||setTimeout(Be)},Ve.onabort=function(){!Ve||(Me(new nt("Request aborted",nt.ECONNABORTED,le,Ve)),Ve=null)}
1,Ve.onerror=function(){Me(new nt("Network Error",nt.ERR_NETWORK,le,Ve)),Ve=null},Ve.ontimeout=function(){let Sr=dt.timeout?"timeout of "+dt.timeout+"ms exceeded":"timeout exceeded";dt.timeoutErrorMessage&&(Sr=dt.timeoutErrorMessage),Me(new nt(Sr,(dt.transitional||hn).clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,le,Ve)),Ve=null},void 0===rn&&fn.setContentType(null),"setRequestHeader"in Ve&&ze.forEach(fn.toJSON(),function(Sr,ue){Ve.setRequestHeader(ue,Sr)}),ze.isUndefined(dt.withCredentials)||(Ve.withCredentials=!!dt.withCredentials),xn&&"json"!==xn&&(Ve.responseType=dt.responseType),gr&&([zr,Or]=Bn(gr,!0),Ve.addEventListener("progress",zr)),Er&&Ve.upload&&([pr,ii]=Bn(Er),Ve.upload.addEventListener("progress",pr),Ve.upload.addEventListener("loadend",ii)),(dt.cancelToken||dt.signal)&&(hr=Wn=>{!Ve||(Me(!Wn||Wn.type?new Lr(null,le,Ve):Wn),Ve.abort(),Ve=null)},dt.cancelToken&&dt.cancelToken.subscribe(hr),dt.signal&&(dt.signal.aborted?hr():dt.signal.addEventListener("abort",hr)));const It=function kt(le){const Ae=/^([-+\w]{1,25})(:?\/\/|:)/.exec(le);return Ae&&Ae[1]||""}(dt.url);It&&-1===$n.protocols.indexOf(It)?Me(new nt("Unsupported protocol "+It+":",nt.ERR_BAD_REQUEST,le)):Ve.send(rn||null)})},Ci=(le,Ae)=>{const{length:be}=le=le?le.filter(Boolean):[];if(Ae||be){let dt,Me=new AbortController;const rn=function(gr){if(!dt){dt=!0,xn();const hr=gr instanceof Error?gr:this.reason;Me.abort(hr instanceof nt?hr:new Lr(hr instanceof Error?hr.message:hr))}};let fn=Ae&&setTimeout(()=>{fn=null,rn(new nt(`timeout ${Ae} of ms exceeded`,nt.ETIMEDOUT))},Ae);const xn=()=>{le&&(fn&&clearTimeout(fn),fn=null,le.forEach(gr=>{gr.unsubscribe?gr.unsubscribe(rn):gr.removeEventListener("abort",rn)}),le=null)};le.forEach(gr=>gr.addEventListener("abort",rn));const{signal:Er}=Me;return Er.unsubscribe=()=>ze.asap(xn),Er}};const Ji=function*(le,Ae){let be=le.byteLength;if(!Ae||be<Ae)return void(yield le);let dt,Me=0;for(;Me<be;)dt=Me+Ae,yield le.slice(Me,dt),Me=dt},ci=function(){var le=_(function*(Ae,be){var rn,Me=!1,dt=!1;try{for(var xn,fn=te(Gi(Ae));Me=!(xn=yield x(fn.next())).done;Me=!1){const Er=xn.value;yield*re(te(Ji(Er,be)),x)}}catch(Er){dt=!0,rn=Er}
1finally{try{Me&&null!=fn.return&&(yield x(fn.return()))}finally{if(dt)throw rn}}});return function(be,Me){return le.apply(this,arguments)}}(),Gi=function(){var le=_(function*(Ae){if(Ae[Symbol.asyncIterator])return void(yield*re(te(Ae),x));const be=Ae.getReader();try{for(;;){const{done:Me,value:dt}=yield x(be.read());if(Me)break;yield dt}}finally{yield x(be.cancel())}});return function(be){return le.apply(this,arguments)}}(),rs=(le,Ae,be,Me)=>{const dt=ci(le,Ae);let fn,rn=0,xn=Er=>{fn||(fn=!0,Me&&Me(Er))};return new ReadableStream({pull:Er=>t(function*(){try{const{done:gr,value:hr}=yield dt.next();if(gr)return xn(),void Er.close();let pr=hr.byteLength;if(be){let zr=rn+=pr;be(zr)}Er.enqueue(new Uint8Array(hr))}catch(gr){throw xn(gr),gr}})(),cancel:Er=>(xn(Er),dt.return())},{highWaterMark:2})},Oi="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$r=Oi&&"function"==typeof ReadableStream,si=Oi&&("function"==typeof TextEncoder?(le=>Ae=>le.encode(Ae))(new TextEncoder):function(){var le=t(function*(Ae){return new Uint8Array(yield new Response(Ae).arrayBuffer())});return function(Ae){return le.apply(this,arguments)}}()),cs=(le,...Ae)=>{try{return!!le(...Ae)}catch(be){return!1}},Yi=$r&&cs(()=>{let le=!1;const Ae=new Request($n.origin,{body:new ReadableStream,method:"POST",get duplex(){return le=!0,"half"}}).headers.has("Content-Type");return le&&!Ae}),$i=$r&&cs(()=>ze.isReadableStream(new Response("").body)),Hi={stream:$i&&(le=>le.body)};Oi&&(le=>{["text","arrayBuffer","blob","formData","stream"].forEach(Ae=>{!Hi[Ae]&&(Hi[Ae]=ze.isFunction(le[Ae])?be=>be[Ae]():(be,Me)=>{throw new nt(`Response type '${Ae}' is not supported`,nt.ERR_NOT_SUPPORT,Me)})})})(new Response);const ai=function(){var le=t(function*(Ae){return null==Ae?0:ze.isBlob(Ae)?Ae.size:ze.isSpecCompliantForm(Ae)?(yield new Request($n.origin,{method:"POST",body:Ae}).arrayBuffer()).byteLength:ze.isArrayBufferView(Ae)||ze.isArrayBuffer(Ae)?Ae.byteLength:(ze.isURLSearchParams(Ae)&&(Ae+=""),ze.isString(Ae)?(yield si(Ae)).byteLength:void 0)});return function(be){return le.apply(this,arguments)}}(),Zi=function(){var le=t(function*(Ae,be){const Me=ze.toFiniteNumber(Ae.getContentLength());return null==Me?ai(be):Me});return function(be,Me){return le.apply(this,arguments)}}();var zi=Oi&&function(){var le=t(function*(Ae){let{url:be,method:Me,data:dt,signal:rn,cancelToken:fn,timeout:xn,onDownloadProgress:Er,onUploadProgress:gr,responseType:hr,headers:pr,withCredentials:zr="same-origin",fetchOptions:ii}=ei(Ae);hr=hr?(hr+"").toLowerCase():"text";let Je,Or=Ci([rn,fn&&fn.toAbortSignal()],xn);const Ve=Or&&Or.unsubscribe&&(()=>{Or.unsubscribe()});let Be;try{if(gr&&Yi&&"get"!==Me&&"head"!==Me&&0!==(Be=yield Zi(pr,dt))){let de,et=new Request(be,{method:"POST",body:dt,duplex:"half"});if(ze.isFormData(dt)&&(de=et.headers.get("content-type"))&&pr.setContentType(de),et.body){const[Ze,Xt]=Yn(Be,Bn(Qt(gr)));dt=rs(et.body,65536,Ze,Xt)}}ze.isString(zr)||(zr=zr?"include":"omit");const It="credentials"in Request.prototype;Je=new Request(be,hh(Tl({},ii),{signal:Or,method:Me.toUpperCase(),headers:pr.normalize().toJSON(),body:dt,duplex:"half",credentials:It?zr:void 0}));let Wn=yield fetch(Je,ii);const Sr=$i&&("stream"===hr||"response"===hr);if($i&&(Er||Sr&&Ve)){const et={};["status","statusText","headers"].forEach(Jn=>{et[Jn]=Wn[Jn]});const de=ze.toFiniteNumber(Wn.headers.get("content-length")),[Ze,Xt]=Er&&Yn(de,Bn(Qt(Er),!0))||[];Wn=new Response(rs(Wn.body,65536,Ze,()=>{Xt&&Xt(),Ve&&Ve()}),et)}hr=hr||"text";let ue=yield Hi[ze.findKey(Hi,hr)||"text"](Wn,Ae);return!Sr&&Ve&&Ve(),yield new Promise((et,de)=>{_i(et,de,{data:ue,headers:Kr.from(Wn.headers),status:Wn.status,statusText:Wn.statusText,config:Ae,request:Je})})}catch(It){throw Ve&&Ve(),It&&"TypeError"===It.name&&/Load failed|fetch/i.test(It.message)?Object.assign(new nt("Network Error",nt.E
1RR_NETWORK,Ae,Je),{cause:It.cause||It}):nt.from(It,It&&It.code,Ae,Je)}});return function(Ae){return le.apply(this,arguments)}}();const xi={http:null,xhr:ui,fetch:zi};ze.forEach(xi,(le,Ae)=>{if(le){try{Object.defineProperty(le,"name",{value:Ae})}catch(be){}Object.defineProperty(le,"adapterName",{value:Ae})}});const ss=le=>`- ${le}`,hs=le=>ze.isFunction(le)||null===le||!1===le;var fs_getAdapter=le=>{le=ze.isArray(le)?le:[le];const{length:Ae}=le;let be,Me;const dt={};for(let rn=0;rn<Ae;rn++){let fn;if(be=le[rn],Me=be,!hs(be)&&(Me=xi[(fn=String(be)).toLowerCase()],void 0===Me))throw new nt(`Unknown adapter '${fn}'`);if(Me)break;dt[fn||"#"+rn]=Me}if(!Me){const rn=Object.entries(dt).map(([xn,Er])=>`adapter ${xn} `+(!1===Er?"is not supported by the environment":"is not available in the build"));throw new nt("There is no suitable adapter to dispatch the request "+(Ae?rn.length>1?"since :\n"+rn.map(ss).join("\n"):" "+ss(rn[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return Me};function bs(le){if(le.cancelToken&&le.cancelToken.throwIfRequested(),le.signal&&le.signal.aborted)throw new Lr(null,le)}function hi(le){return bs(le),le.headers=Kr.from(le.headers),le.data=jr.call(le,le.transformRequest),-1!==["post","put","patch"].indexOf(le.method)&&le.headers.setContentType("application/x-www-form-urlencoded",!1),fs_getAdapter(le.adapter||Mt.adapter)(le).then(function(Me){return bs(le),Me.data=jr.call(le,le.transformResponse,Me),Me.headers=Kr.from(Me.headers),Me},function(Me){return Ur(Me)||(bs(le),Me&&Me.response&&(Me.response.data=jr.call(le,le.transformResponse,Me.response),Me.response.headers=Kr.from(Me.response.headers))),Promise.reject(Me)})}const Ti={};["object","boolean","number","function","string","symbol"].forEach((le,Ae)=>{Ti[le]=function(Me){return typeof Me===le||"a"+(Ae<1?"n ":" ")+le}});const os={};Ti.transitional=function(Ae,be,Me){function dt(rn,fn){return"[Axios v1.10.0] Transitional option '"+rn+"'"+fn+(Me?". "+Me:"")}return(rn,fn,xn)=>{if(!1===Ae)throw new nt(dt(fn," has been removed"+(be?" in "+be:"")),nt.ERR_DEPRECATED);return be&&!os[fn]&&(os[fn]=!0,console.warn(dt(fn," has been deprecated since v"+be+" and will be removed in the near future"))),!Ae||Ae(rn,fn,xn)}},Ti.spelling=function(Ae){return(be,Me)=>(console.warn(`${Me} is likely a misspelling of ${Ae}`),!0)};var tt={assertOptions:function Ii(le,Ae,be){if("object"!=typeof le)throw new nt("options must be an object",nt.E
vendor: 4,178 bytes, line 1
1RR_BAD_OPTION_VALUE);const Me=Object.keys(le);let dt=Me.length;for(;dt-- >0;){const rn=Me[dt],fn=Ae[rn];if(fn){const xn=le[rn],Er=void 0===xn||fn(xn,rn,le);if(!0!==Er)throw new nt("option "+rn+" must be "+Er,nt.ERR_BAD_OPTION_VALUE)}else if(!0!==be)throw new nt("Unknown option "+rn,nt.ERR_BAD_OPTION)}},validators:Ti};const Xe=tt.validators;class Ut{constructor(Ae){this.defaults=Ae||{},this.interceptors={request:new Tt,response:new Tt}}request(Ae,be){var Me=this;return t(function*(){try{return yield Me._request(Ae,be)}catch(dt){if(dt instanceof Error){let rn={};Error.captureStackTrace?Error.captureStackTrace(rn):rn=new Error;const fn=rn.stack?rn.stack.replace(/^.+\n/,""):"";try{dt.stack?fn&&!String(dt.stack).endsWith(fn.replace(/^.+\n.+\n/,""))&&(dt.stack+="\n"+fn):dt.stack=fn}catch(xn){}}throw dt}})()}_request(Ae,be){"string"==typeof Ae?(be=be||{}).url=Ae:be=Ae||{},be=kr(this.defaults,be);const{transitional:Me,paramsSerializer:dt,headers:rn}=be;void 0!==Me&&tt.assertOptions(Me,{silentJSONParsing:Xe.transitional(Xe.boolean),forcedJSONParsing:Xe.transitional(Xe.boolean),clarifyTimeoutError:Xe.transitional(Xe.boolean)},!1),null!=dt&&(ze.isFunction(dt)?be.paramsSerializer={serialize:dt}:tt.assertOptions(dt,{encode:Xe.function,serialize:Xe.function},!0)),void 0!==be.allowAbsoluteUrls||(be.allowAbsoluteUrls=void 0===this.defaults.allowAbsoluteUrls||this.defaults.allowAbsoluteUrls),tt.assertOptions(be,{baseUrl:Xe.spelling("baseURL"),withXsrfToken:Xe.spelling("withXSRFToken")},!0),be.method=(be.method||this.defaults.method||"get").toLowerCase();let fn=rn&&ze.merge(rn.common,rn[be.method]);rn&&ze.forEach(["delete","get","head","post","put","patch","common"],Or=>{delete rn[Or]}),be.headers=Kr.concat(fn,rn);const xn=[];let Er=!0;this.interceptors.request.forEach(function(Je){"function"==typeof Je.runWhen&&!1===Je.runWhen(be)||(Er=Er&&Je.synchronous,xn.unshift(Je.fulfilled,Je.rejected))});const gr=[];this.interceptors.response.forEach(function(Je){gr.push(Je.fulfilled,Je.rejected)});let hr,zr,pr=0;if(!Er){const Or=[hi.bind(this),void 0];for(Or.unshift.apply(Or,xn),Or.push.apply(Or,gr),zr=Or.length,hr=Promise.resolve(be);pr<zr;)hr=hr.then(Or[pr++],Or[pr++]);return hr}zr=xn.length;let ii=be;for(pr=0;pr<zr;){const Or=xn[pr++],Je=xn[pr++];try{ii=Or(ii)}catch(Ve){Je.call(this,Ve);break}}try{hr=hi.call(this,ii)}catch(Or){return Promise.reject(Or)}for(pr=0,zr=gr.length;pr<zr;)hr=hr.then(gr[pr++],gr[pr++]);return hr}getUri(Ae){return jn(wr((Ae=kr(this.defaults,Ae)).baseURL,Ae.url,Ae.allowAbsoluteUrls),Ae.params,Ae.paramsSerializer)}}ze.forEach(["delete","get","head","options"],function(Ae){Ut.prototype[Ae]=function(be,Me){return this.request(kr(Me||{},{method:Ae,url:be,data:(Me||{}).data}))}}),ze.forEach(["post","put","patch"],function(Ae){function be(Me){return function(rn,fn,xn){return this.request(kr(xn||{},{method:Ae,headers:Me?{"Content-Type":"multipart/form-data"}:{},url:rn,data:fn}))}}Ut.prototype[Ae]=be(),Ut.prototype[Ae+"Form"]=be(!0)});var gn=Ut;class _n{constructor(Ae){if("function"!=typeof Ae)throw new TypeError("executor must be a function.");let be;this.promise=new Promise(function(rn){be=rn});const Me=this;this.promise.then(dt=>{if(!Me._listeners)return;let rn=Me._listeners.length;for(;rn-- >0;)Me._listeners[rn](dt);Me._listeners=null}),this.promise.then=dt=>{let rn;const fn=new Promise(xn=>{Me.subscribe(xn),rn=xn}).then(dt);return fn.cancel=function(){Me.unsubscribe(rn)},fn},Ae(function(rn,fn,xn){Me.reason||(Me.reason=new Lr(rn,fn,xn),be(Me.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Ae){this.reason?Ae(this.reason):this._listeners?this._listeners.push(Ae):this._listeners=[Ae]}unsubscribe(Ae){if(!this._listeners)return;const be=this._listeners.indexOf(Ae);-1!==be&&this._listeners.splice(be,1)}toAbortSignal(){const Ae=new AbortController,be=Me=>{Ae.abort(Me)};return this.subscribe(be),Ae.signal.unsubscribe=()=>this.unsubscribe(be),Ae.signal}static source(){let Ae;return{token:new _n(function(dt){Ae=dt}),cancel:Ae}}}var Mn=_n;const ur={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
1setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ur).forEach(([le,Ae])=>{ur[Ae]=le});var _r=ur;const Wr=function Mr(le){const Ae=new gn(le),be=Q(gn.prototype.request,Ae);return ze.extend(be,gn.prototype,Ae,{allOwnKeys:!0}),ze.extend(be,Ae,null,{allOwnKeys:!0}),be.create=function(dt){return Mr(kr(le,dt))},be}(Mt);Wr.Axios=gn,Wr.CanceledError=Lr,Wr.CancelToken=Mn,Wr.isCancel=Ur,Wr.VERSION="1.10.0",Wr.toFormData=Cn,Wr.AxiosError=nt,Wr.Cancel=Wr.CanceledError,Wr.all=function(Ae){return Promise.all(Ae)},Wr.spread=function qn(le){return function(be){return le.apply(null,be)}},Wr.isAxiosError=function cr(le){return ze.isObject(le)&&!0===le.isAxiosError},Wr.mergeConfig=kr,Wr.AxiosHeaders=Kr,Wr.formToJSON=le=>jt(ze.isHTMLForm(le)?new FormData(le):le),Wr.getAdapter=fs_getAdapter,Wr.HttpStatusCode=_r,Wr.default=Wr,xe.exports=Wr},9808:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{APP_BASE_HREF:()=>f,AsyncPipe:()=>Ji,CommonModule:()=>Mi,CurrencyPipe:()=>ss,DATE_PIPE_DEFAULT_TIMEZONE:()=>$r,DOCUMENT:()=>S,DatePipe:()=>si,DecimalPipe:()=>zi,FormStyle:()=>ee,FormatWidth:()=>oe,HashLocationStrategy:()=>Z,I18nPluralPipe:()=>Yi,I18nSelectPipe:()=>is,JsonPipe:()=>$i,KeyValuePipe:()=>ai,LOCATION_INITIALIZED:()=>C,Location:()=>G,LocationStrategy:()=>M,LowerCasePipe:()=>ci,NgClass:()=>dr,NgComponentOutlet:()=>Kr,NgForOf:()=>Ur,NgForOfContext:()=>jr,NgIf:()=>kt,NgIfContext:()=>an,NgLocaleLocalization:()=>fr,NgLocalization:()=>An,NgPlural:()=>er,NgPluralCase:()=>or,NgStyle:()=>wr,NgSwitch:()=>Yn,NgSwitchCase:()=>Qt,NgSwitchDefault:()=>En,NgTemplateOutlet:()=>Nr,NumberFormatStyle:()=>I,NumberSymbol:()=>ve,PathLocationStrategy:()=>T,PercentPipe:()=>xi,PlatformLocation:()=>W,Plural:()=>H,SlicePipe:()=>bs,TitleCasePipe:()=>rs,TranslationWidth:()=>z,UpperCasePipe:()=>Oi,VERSION:()=>Mn,ViewportScroller:()=>qn,WeekDay:()=>We,XhrFactory:()=>Wr,formatCurrency:()=>on,formatDate:()=>sn,formatNumber:()=>Mt,formatPercent:()=>mn,getCurrencySymbol:()=>_t,getLocaleCurrencyCode:()=>Ye,getLocaleCurrencyName:()=>Ne,getLocaleCurrencySymbol:()=>Oe,getLocaleDateFormat:()=>N,getLocaleDateTimeFormat:()=>J,getLocaleDayNames:()=>ge,getLocaleDayPeriods:()=>He,getLocaleDirection:()=>Jt,getLocaleEraNames:()=>b,getLocaleExtraDayPeriodRules:()=>ln,getLocaleExtraDayPeriods:()=>Lt,getLocaleFirstDayOfWeek:()=>p,getLocaleId:()=>Re,getLocaleMonthNames:()=>O,getLocaleNumberFormat:()=>he,getLocaleNumberSymbol:()=>ie,getLocalePluralCase:()=>Ct,getLocaleTimeFormat:()=>K,getLocaleWeekEndRange:()=>A,getNumberOfCurrencyDigits:()=>yt,isPlatformBrowser:()=>Xe,isPlatformServer:()=>Ut,isPlatformWorkerApp:()=>gn,isPlatformWorkerUi:()=>_n,registerLocaleData:()=>Ar,\u0275BrowserPlatformLocation:()=>L,\u0275DomAdapter:()=>Q,\u0275NullViewportScroller:()=>Mr,\u0275PLATFORM_BROWSER_ID:()=>Ti,\u0275PLATFORM_SERVER_ID:()=>os,\u0275PLATFORM_WORKER_APP_ID:()=>Ii,\u0275PLATFORM_WORKER_UI_ID:()=>tt,\u0275getDOM:()=>x,\u0275parseCookieValue:()=>Dr,\u0275setRootDomAdapter:()=>te});var t=c(6435);let _=null;function x(){return _}function te(le){_||(_=le)}class Q{}const S=new t.InjectionToken("DocumentToken");let W=(()=>{class le{historyGo(be){throw new Error("Not implemented")}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:function(){return function P(){return(0,t.\u0275\u0275inject)(L)}()},providedIn:"platform"}),le})();const C=new t.InjectionToken("Location Initialized");let L=(()=>{class le extends W{constructor(be){super(),this._doc=be,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return x().getBaseHref(this._doc)}onPopState(be){const Me=x().getGlobalEventTarget(this._doc,"window");return Me.addEventListener("popstate",be,!1),()=>Me.removeEventListener("popstate",be)}onHashChange(be){const Me=x().getGlobalEventTarget(this._doc,"window");return Me.addEventListener("hashchange",be,!1),()=>Me.removeEventListener("hashchange",be)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(be){this.location.pathname=be}pushState(be,Me,dt){E()?this._history.pushState(be,Me,dt):this.location.hash=dt}replaceState(be,Me,dt){E()?this._history.replaceState(be,Me,dt):this.location.hash=dt}forward(){this._history.forward()}back(){this._history.back()}historyGo(be=0){this._history.go(be)}getState(){return this._history.state}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275inject(S))},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:function(){return function m(){return new L((0,t.\u0275\u0275inject)(S))}()},providedIn:"platform"}),le})();function E(){return!!window.history.pushState}function v(le,Ae){if(0==le.length)return Ae;if(0==Ae.length)return le;let be=0;return le.endsWith("/")&&be++,Ae.startsWith("/")&&be++,2==be?le+Ae.substring(1):1==be?le+Ae:le+"/"+Ae}function R(le){const Ae=le.match(/#|\?|$/),be=Ae&&Ae.index||le.length;return le.slice(0,be-("/"===le[be-1]?1:0))+le.slice(be)}function j(le){return le&&"?"!==le[0]?"?"+le:le}let M=(()=>{class le{historyGo(be){throw new Error("Not implemented")}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:function(){return function V(le){const Ae=(0,t.\u0275\u0275inject)(S).location;return new T((0,t.\u0275\u0275inject)(W),Ae&&Ae.origin||"")}()},providedIn:"root"}),le})();const f=new t.InjectionToken("appBaseHref");let T=(()=>{class le extends M{constructor(be,Me){if(super(),this._platformLocation=be,this._removeListenerFns=[],null==Me&&(Me=this._platformLocation.getBaseHrefFromDOM()),null==Me)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Me}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(be){this._removeListenerFns.push(this._platformLocation.onPopState(be),this._platformLocation.on
1HashChange(be))}getBaseHref(){return this._baseHref}prepareExternalUrl(be){return v(this._baseHref,be)}path(be=!1){const Me=this._platformLocation.pathname+j(this._platformLocation.search),dt=this._platformLocation.hash;return dt&&be?`${Me}${dt}`:Me}pushState(be,Me,dt,rn){const fn=this.prepareExternalUrl(dt+j(rn));this._platformLocation.pushState(be,Me,fn)}replaceState(be,Me,dt,rn){const fn=this.prepareExternalUrl(dt+j(rn));this._platformLocation.replaceState(be,Me,fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(be=0){var Me,dt;null===(dt=(Me=this._platformLocation).historyGo)||void 0===dt||dt.call(Me,be)}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275inject(W),t.\u0275\u0275inject(f,8))},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac}),le})(),Z=(()=>{class le extends M{constructor(be,Me){super(),this._platformLocation=be,this._baseHref="",this._removeListenerFns=[],null!=Me&&(this._baseHref=Me)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(be){this._removeListenerFns.push(this._platformLocation.onPopState(be),this._platformLocation.onHashChange(be))}getBaseHref(){return this._baseHref}path(be=!1){let Me=this._platformLocation.hash;return null==Me&&(Me="#"),Me.length>0?Me.substring(1):Me}prepareExternalUrl(be){const Me=v(this._baseHref,be);return Me.length>0?"#"+Me:Me}pushState(be,Me,dt,rn){let fn=this.prepareExternalUrl(dt+j(rn));0==fn.length&&(fn=this._platformLocation.pathname),this._platformLocation.pushState(be,Me,fn)}replaceState(be,Me,dt,rn){let fn=this.prepareExternalUrl(dt+j(rn));0==fn.length&&(fn=this._platformLocation.pathname),this._platformLocation.replaceState(be,Me,fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(be=0){var Me,dt;null===(dt=(Me=this._platformLocation).historyGo)||void 0===dt||dt.call(Me,be)}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275inject(W),t.\u0275\u0275inject(f,8))},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac}),le})(),G=(()=>{class le{constructor(be,Me){this._subject=new t.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=be;const dt=this._platformStrategy.getBaseHref();this._platformLocation=Me,this._baseHref=R(y(dt)),this._platformStrategy.onPopState(rn=>{this._subject.emit({url:this.path(!0),pop:!0,state:rn.state,type:rn.type})})}path(be=!1){return this.normalize(this._platformStrategy.path(be))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(be,Me=""){return this.path()==this.normalize(be+j(Me))}normalize(be){return le.stripTrailingSlash(function se(le,Ae){return le&&Ae.startsWith(le)?Ae.substring(le.length):Ae}(this._baseHref,y(be)))}prepareExternalUrl(be){return be&&"/"!==be[0]&&(be="/"+be),this._platformStrategy.prepareExternalUrl(be)}go(be,Me="",dt=null){this._platformStrategy.pushState(dt,"",be,Me),this._notifyUrlChangeListeners(this.prepareExternalUrl(be+j(Me)),dt)}replaceState(be,Me="",dt=null){this._platformStrategy.replaceState(dt,"",be,Me),this._notifyUrlChangeListeners(this.prepareExternalUrl(be+j(Me)),dt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(be=0){var Me,dt;null===(dt=(Me=this._platformStrategy).historyGo)||void 0===dt||dt.call(Me,be)}onUrlChange(be){this._urlChangeListeners.push(be),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Me=>{this._notifyUrlChangeListeners(Me.url,Me.state)}))}_notifyUrlChangeListeners(be="",Me){this._urlChangeListeners.forEach(dt=>dt(be,Me))}subscribe(be,Me,dt){return this._subject.subscribe({next:be,error:Me,complete:dt})}}return le.normalizeQueryParams=j,le.joinWithSlash=v,le.stripTrailingSlash=R,le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275inject(M),t.\u0275\u0275inject(W))},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:function(){return function $(){return new G((0,t.\u0275\u0275inject)(M),(0,t.\u0275\u0275inject)(W))}()},providedIn:"root"}),le})();function y(le){return le.replace(/\/index.html$/,"")}const k={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var I=(()=>((I=I||{})[I.Decimal=0]="Decimal",I[I.Percent=1]="Percent",I[I.Currency=2]="Currency",I[I.Scientific=3]="Scientific",I))(),H=(()=>((H=H||{})[H.Zero=0]="Zero",H[H.One=1]="One",H[H.Two=2]="Two",H[H.Few=3]="Few",H[H.Many=4]="Many",H[H.Other=5]="Other",H))(),ee=(()=>((ee=ee||{})[ee.Format=0]="Format",ee[ee.Standalone=1]="Standalone",ee))(),z=(()=>((z=z||{})[z.Narrow=0]="Narrow",z[z.Abbreviated=1]="Abbreviated",z[z.Wide=2]="Wide",z[z.Short=3]="Short",z))(),oe=(()=>((oe=oe||{})[oe.Short=0]="Short",oe[oe.Medium=1]="Medium",oe[oe.Long=2]="Long",oe[oe.Full=3]="Full",oe))(),ve=(()=>((ve=ve||{})[ve.Decimal=0]="Decimal",ve[ve.Group=1]="Group",ve[ve.List=2]="List",ve[ve.PercentSign=3]="PercentSign",ve[ve.PlusSign=4]="PlusSign",ve[ve.MinusSign=5]="MinusSign",ve[ve.Exponential=6]="Exponential",ve[ve.SuperscriptingExponent=7]="SuperscriptingExponent",ve[ve.PerMille=8]="PerMille",ve[ve.Infinity=9]="Infinity",ve[ve.NaN=10]="NaN",ve[ve.TimeSeparator=11]="TimeSeparator",ve[ve.CurrencyDecimal=12]="CurrencyDecimal",ve[ve.CurrencyGroup=13]="CurrencyGroup",ve))(),We=(()=>((We=We||{})[We.Sunday=0]="Sunday",We[We.Monday=1]="Monday",We[We.Tuesday=2]="Tuesday",We[We.Wednesday=3]="Wednesday",We[We.Thursday=4]="Thursday",We[We.Frid
1ay=5]="Friday",We[We.Saturday=6]="Saturday",We))();function Re(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.LocaleId]}function He(le,Ae,be){const Me=(0,t.\u0275findLocaleData)(le),rn=Rt([Me[t.\u0275LocaleDataIndex.DayPeriodsFormat],Me[t.\u0275LocaleDataIndex.DayPeriodsStandalone]],Ae);return Rt(rn,be)}function ge(le,Ae,be){const Me=(0,t.\u0275findLocaleData)(le),rn=Rt([Me[t.\u0275LocaleDataIndex.DaysFormat],Me[t.\u0275LocaleDataIndex.DaysStandalone]],Ae);return Rt(rn,be)}function O(le,Ae,be){const Me=(0,t.\u0275findLocaleData)(le),rn=Rt([Me[t.\u0275LocaleDataIndex.MonthsFormat],Me[t.\u0275LocaleDataIndex.MonthsStandalone]],Ae);return Rt(rn,be)}function b(le,Ae){return Rt((0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.Eras],Ae)}function p(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.FirstDayOfWeek]}function A(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.WeekendRange]}function N(le,Ae){return Rt((0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.DateFormat],Ae)}function K(le,Ae){return Rt((0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.TimeFormat],Ae)}function J(le,Ae){return Rt((0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.DateTimeFormat],Ae)}function ie(le,Ae){const be=(0,t.\u0275findLocaleData)(le),Me=be[t.\u0275LocaleDataIndex.NumberSymbols][Ae];if(void 0===Me){if(Ae===ve.CurrencyDecimal)return be[t.\u0275LocaleDataIndex.NumberSymbols][ve.Decimal];if(Ae===ve.CurrencyGroup)return be[t.\u0275LocaleDataIndex.NumberSymbols][ve.Group]}return Me}function he(le,Ae){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.NumberFormats][Ae]}function Oe(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.CurrencySymbol]||null}function Ne(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.CurrencyName]||null}function Ye(le){return(0,t.\u0275getLocaleCurrencyCode)(le)}const Ct=t.\u0275getLocalePluralCase;function Ot(le){if(!le[t.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${le[t.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ln(le){const Ae=(0,t.\u0275findLocaleData)(le);return Ot(Ae),(Ae[t.\u0275LocaleDataIndex.ExtraData][2]||[]).map(Me=>"string"==typeof Me?it(Me):[it(Me[0]),it(Me[1])])}function Lt(le,Ae,be){const Me=(0,t.\u0275findLocaleData)(le);Ot(Me);const rn=Rt([Me[t.\u0275LocaleDataIndex.ExtraData][0],Me[t.\u0275LocaleDataIndex.ExtraData][1]],Ae)||[];return Rt(rn,be)||[]}function Jt(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.Directionality]}function Rt(le,Ae){for(let be=Ae;be>-1;be--)if(void 0!==le[be])return le[be];throw new Error("Locale data API: locale data undefined")}function it(le){const[Ae,be]=le.split(":");return{hours:+Ae,minutes:+be}}function _t(le,Ae,be="en"){const Me=function Qe(le){return(0,t.\u0275findLocaleData)(le)[t.\u0275LocaleDataIndex.Currencies]}(be)[le]||k[le]||[],dt=Me[1];return"narrow"===Ae&&"string"==typeof dt?dt:Me[0]||le}function yt(le){let Ae;const be=k[le];return be&&(Ae=be[2]),"number"==typeof Ae?Ae:2}const ht=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ct={},cn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var gt=(()=>((gt=gt||{})[gt.Short=0]="Short",gt[gt.ShortGMT=1]="ShortGMT",gt[gt.Long=2]="Long",gt[gt.Extended=3]="Extended",gt))(),at=(()=>((at=at||{})[at.FullYear=0]="FullYear",at[at.Month=1]="Month",at[at.Date=2]="Date",at[at.Hours=3]="Hours",at[at.Minutes=4]="Minutes",at[at.Seconds=5]="Seconds",at[at.FractionalSeconds=6]="FractionalSeconds",at[at.Day=7]="Day",at))(),St=(()=>((St=St||{})[St.DayPeriods=0]="DayPeriods",St[St.Days=1]="Days",St[St.Months=2]="Months",St[St.Eras=3]="Eras",St))();function sn(le,Ae,be,Me){let dt=function we(le){if(Ue(le))return le;if("number"==typeof le&&!isNaN(le))return new Date(le);if("string"==typeof le){if(le=le.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(le)){const[dt,rn=1,fn=1]=le.split("-").map(xn=>+xn);
vendor: 4,626 bytes, line 1
1return ze(dt,rn-1,fn)}const be=parseFloat(le);if(!isNaN(le-be))return new Date(be);let Me;if(Me=le.match(ht))return function Ce(le){const Ae=new Date(0);let be=0,Me=0;const dt=le[8]?Ae.setUTCFullYear:Ae.setFullYear,rn=le[8]?Ae.setUTCHours:Ae.setHours;le[9]&&(be=Number(le[9]+le[10]),Me=Number(le[9]+le[11])),dt.call(Ae,Number(le[1]),Number(le[2])-1,Number(le[3]));const fn=Number(le[4]||0)-be,xn=Number(le[5]||0)-Me,Er=Number(le[6]||0),gr=Math.floor(1e3*parseFloat("0."+(le[7]||0)));return rn.call(Ae,fn,xn,Er,gr),Ae}(Me)}const Ae=new Date(le);if(!Ue(Ae))throw new Error(`Unable to convert "${le}" into a date`);return Ae}(le);Ae=nt(be,Ae)||Ae;let xn,fn=[];for(;Ae;){if(xn=cn.exec(Ae),!xn){fn.push(Ae);break}{fn=fn.concat(xn.slice(1));const hr=fn.pop();if(!hr)break;Ae=hr}}let Er=dt.getTimezoneOffset();Me&&(Er=hn(Me,Er),dt=function ae(le,Ae,be){const Me=be?-1:1,dt=le.getTimezoneOffset();return function Se(le,Ae){return(le=new Date(le.getTime())).setMinutes(le.getMinutes()+Ae),le}(le,Me*(hn(Ae,dt)-dt))}(dt,Me,!0));let gr="";return fn.forEach(hr=>{const pr=function Tt(le){if(nr[le])return nr[le];let Ae;switch(le){case"G":case"GG":case"GGG":Ae=Un(St.Eras,z.Abbreviated);break;case"GGGG":Ae=Un(St.Eras,z.Wide);break;case"GGGGG":Ae=Un(St.Eras,z.Narrow);break;case"y":Ae=bt(at.FullYear,1,0,!1,!0);break;case"yy":Ae=bt(at.FullYear,2,0,!0,!0);break;case"yyy":Ae=bt(at.FullYear,3,0,!1,!0);break;case"yyyy":Ae=bt(at.FullYear,4,0,!1,!0);break;case"Y":Ae=jn(1);break;case"YY":Ae=jn(2,!0);break;case"YYY":Ae=jn(3);break;case"YYYY":Ae=jn(4);break;case"M":case"L":Ae=bt(at.Month,1,1);break;case"MM":case"LL":Ae=bt(at.Month,2,1);break;case"MMM":Ae=Un(St.Months,z.Abbreviated);break;case"MMMM":Ae=Un(St.Months,z.Wide);break;case"MMMMM":Ae=Un(St.Months,z.Narrow);break;case"LLL":Ae=Un(St.Months,z.Abbreviated,ee.Standalone);break;case"LLLL":Ae=Un(St.Months,z.Wide,ee.Standalone);break;case"LLLLL":Ae=Un(St.Months,z.Narrow,ee.Standalone);break;case"w":Ae=Fn(1);break;case"ww":Ae=Fn(2);break;case"W":Ae=Fn(1,!0);break;case"d":Ae=bt(at.Date,1);break;case"dd":Ae=bt(at.Date,2);break;case"c":case"cc":Ae=bt(at.Day,1);break;case"ccc":Ae=Un(St.Days,z.Abbreviated,ee.Standalone);break;case"cccc":Ae=Un(St.Days,z.Wide,ee.Standalone);break;case"ccccc":Ae=Un(St.Days,z.Narrow,ee.Standalone);break;case"cccccc":Ae=Un(St.Days,z.Short,ee.Standalone);break;case"E":case"EE":case"EEE":Ae=Un(St.Days,z.Abbreviated);break;case"EEEE":Ae=Un(St.Days,z.Wide);break;case"EEEEE":Ae=Un(St.Days,z.Narrow);break;case"EEEEEE":Ae=Un(St.Days,z.Short);break;case"a":case"aa":case"aaa":Ae=Un(St.DayPeriods,z.Abbreviated);break;case"aaaa":Ae=Un(St.DayPeriods,z.Wide);break;case"aaaaa":Ae=Un(St.DayPeriods,z.Narrow);break;case"b":case"bb":case"bbb":Ae=Un(St.DayPeriods,z.Abbreviated,ee.Standalone,!0);break;case"bbbb":Ae=Un(St.DayPeriods,z.Wide,ee.Standalone,!0);break;case"bbbbb":Ae=Un(St.DayPeriods,z.Narrow,ee.Standalone,!0);break;case"B":case"BB":case"BBB":Ae=Un(St.DayPeriods,z.Abbreviated,ee.Format,!0);break;case"BBBB":Ae=Un(St.DayPeriods,z.Wide,ee.Format,!0);break;case"BBBBB":Ae=Un(St.DayPeriods,z.Narrow,ee.Format,!0);break;case"h":Ae=bt(at.Hours,1,-12);break;case"hh":Ae=bt(at.Hours,2,-12);break;case"H":Ae=bt(at.Hours,1);break;case"HH":Ae=bt(at.Hours,2);break;case"m":Ae=bt(at.Minutes,1);break;case"mm":Ae=bt(at.Minutes,2);break;case"s":Ae=bt(at.Seconds,1);break;case"ss":Ae=bt(at.Seconds,2);break;case"S":Ae=bt(at.FractionalSeconds,1);break;case"SS":Ae=bt(at.FractionalSeconds,2);break;case"SSS":Ae=bt(at.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ae=tn(gt.Short);break;case"ZZZZZ":Ae=tn(gt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ae=tn(gt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ae=tn(gt.Long);break;default:return null}return nr[le]=Ae,Ae}(hr);gr+=pr?pr(dt,be,Er):"''"===hr?"'":hr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),gr}function ze(le,Ae,be){const Me=new Date(0);return Me.setFullYear(le,Ae,be),Me.setHours(0,0,0),Me}function nt(le,Ae){const be=Re(le);if(ct[be]=ct[be]||{},ct[be][Ae])return ct[be][Ae];let Me="";switch(Ae){case"shortDate":Me=N(le,oe.Short);break;case"mediumDate":Me=N(le,oe.Medium);break;case"longDate":Me=N(le,oe.Long);break;case"fullDate":Me=N(le,oe.Full);break;case"shortTime":Me=K(le,oe.Short);break;case"mediumTime":Me=K(le,oe.Medium);break;case"longTime":Me=K(le,oe.Long);break;case"fullTime":Me=K(le,oe.Full);break;case"short":const dt=nt(le,"shortTime"),rn=nt(le,"shortDate");Me=mt(J(le,oe.Short),[dt,rn]);break;case"medium":const fn=nt(le,"mediumTime"),xn=nt(le,"mediumDate");Me=mt(J(le,oe.Medium),[fn,xn]);break;case"long":const Er=nt(le,"longTime"),gr=nt(le,"longDate");
vendor: 6,845 bytes, line 1
1Me=mt(J(le,oe.Long),[Er,gr]);break;case"full":const hr=nt(le,"fullTime"),pr=nt(le,"fullDate");Me=mt(J(le,oe.Full),[hr,pr])}return Me&&(ct[be][Ae]=Me),Me}function mt(le,Ae){return Ae&&(le=le.replace(/\{([^}]+)}/g,function(be,Me){return null!=Ae&&Me in Ae?Ae[Me]:be})),le}function Nt(le,Ae,be="-",Me,dt){let rn="";(le<0||dt&&le<=0)&&(dt?le=1-le:(le=-le,rn=be));let fn=String(le);for(;fn.length<Ae;)fn="0"+fn;return Me&&(fn=fn.substr(fn.length-Ae)),rn+fn}function bt(le,Ae,be=0,Me=!1,dt=!1){return function(rn,fn){let xn=function Kt(le,Ae){switch(le){case at.FullYear:return Ae.getFullYear();case at.Month:return Ae.getMonth();case at.Date:return Ae.getDate();case at.Hours:return Ae.getHours();case at.Minutes:return Ae.getMinutes();case at.Seconds:return Ae.getSeconds();case at.FractionalSeconds:return Ae.getMilliseconds();case at.Day:return Ae.getDay();default:throw new Error(`Unknown DateType value "${le}".`)}}(le,rn);if((be>0||xn>-be)&&(xn+=be),le===at.Hours)0===xn&&-12===be&&(xn=12);else if(le===at.FractionalSeconds)return function wt(le,Ae){return Nt(le,3).substr(0,Ae)}(xn,Ae);const Er=ie(fn,ve.MinusSign);return Nt(xn,Ae,Er,Me,dt)}}function Un(le,Ae,be=ee.Format,Me=!1){return function(dt,rn){return function vt(le,Ae,be,Me,dt,rn){switch(be){case St.Months:return O(Ae,dt,Me)[le.getMonth()];case St.Days:return ge(Ae,dt,Me)[le.getDay()];case St.DayPeriods:const fn=le.getHours(),xn=le.getMinutes();if(rn){const gr=ln(Ae),hr=Lt(Ae,dt,Me),pr=gr.findIndex(zr=>{if(Array.isArray(zr)){const[ii,Or]=zr,Je=fn>=ii.hours&&xn>=ii.minutes,Ve=fn<Or.hours||fn===Or.hours&&xn<Or.minutes;if(ii.hours<Or.hours){if(Je&&Ve)return!0}else if(Je||Ve)return!0}else if(zr.hours===fn&&zr.minutes===xn)return!0;return!1});if(-1!==pr)return hr[pr]}return He(Ae,dt,Me)[fn<12?0:1];case St.Eras:return b(Ae,Me)[le.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${be}`)}}(dt,rn,le,Ae,be,Me)}}function tn(le){return function(Ae,be,Me){const dt=-1*Me,rn=ie(be,ve.MinusSign),fn=dt>0?Math.floor(dt/60):Math.ceil(dt/60);switch(le){case gt.Short:return(dt>=0?"+":"")+Nt(fn,2,rn)+Nt(Math.abs(dt%60),2,rn);case gt.ShortGMT:return"GMT"+(dt>=0?"+":"")+Nt(fn,1,rn);case gt.Long:return"GMT"+(dt>=0?"+":"")+Nt(fn,2,rn)+":"+Nt(Math.abs(dt%60),2,rn);case gt.Extended:return 0===Me?"Z":(dt>=0?"+":"")+Nt(fn,2,rn)+":"+Nt(Math.abs(dt%60),2,rn);default:throw new Error(`Unknown zone width "${le}"`)}}}function rr(le){return ze(le.getFullYear(),le.getMonth(),le.getDate()+(4-le.getDay()))}function Fn(le,Ae=!1){return function(be,Me){let dt;if(Ae){const rn=new Date(be.getFullYear(),be.getMonth(),1).getDay()-1,fn=be.getDate();dt=1+Math.floor((fn+rn)/7)}else{const rn=rr(be),fn=function Nn(le){const Ae=ze(le,0,1).getDay();return ze(le,0,1+(Ae<=4?4:11)-Ae)}(rn.getFullYear()),xn=rn.getTime()-fn.getTime();dt=1+Math.round(xn/6048e5)}return Nt(dt,le,ie(Me,ve.MinusSign))}}function jn(le,Ae=!1){return function(be,Me){return Nt(rr(be).getFullYear(),le,ie(Me,ve.MinusSign),Ae)}}const nr={};function hn(le,Ae){le=le.replace(/:/g,"");const be=Date.parse("Jan 01, 1970 00:00:00 "+le)/6e4;return isNaN(be)?Ae:be}function Ue(le){return le instanceof Date&&!isNaN(le.valueOf())}const st=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function jt(le,Ae,be,Me,dt,rn,fn=!1){let xn="",Er=!1;if(isFinite(le)){let gr=function Ht(le){let Me,dt,rn,fn,xn,Ae=Math.abs(le)+"",be=0;for((dt=Ae.indexOf("."))>-1&&(Ae=Ae.replace(".","")),(rn=Ae.search(/e/i))>0?(dt<0&&(dt=rn),dt+=+Ae.slice(rn+1),Ae=Ae.substring(0,rn)):dt<0&&(dt=Ae.length),rn=0;"0"===Ae.charAt(rn);rn++);if(rn===(xn=Ae.length))Me=[0],dt=1;else{for(xn--;"0"===Ae.charAt(xn);)xn--;for(dt-=rn,Me=[],fn=0;rn<=xn;rn++,fn++)Me[fn]=Number(Ae.charAt(rn))}return dt>22&&(Me=Me.splice(0,21),be=dt-1,dt=1),{digits:Me,exponent:be,integerLen:dt}}(le);fn&&(gr=function At(le){if(0===le.digits[0])return le;const Ae=le.digits.length-le.integerLen;return le.exponent?le.exponent+=2:(0===Ae?le.digits.push(0,0):1===Ae&&le.digits.push(0),le.integerLen+=2),le}(gr));let hr=Ae.minInt,pr=Ae.minFrac,zr=Ae.maxFrac;if(rn){const It=rn.match(st);if(null===It)throw new Error(`${rn} is not a valid digit info`);const Wn=It[1],Sr=It[3],ue=It[5];null!=Wn&&(hr=un(Wn)),null!=Sr&&(pr=un(Sr)),null!=ue?zr=un(ue):null!=Sr&&pr>zr&&(zr=pr)}!function Yt(le,Ae,be){if(Ae>be)throw new Error(`The minimum number of digits after fraction (${Ae}) is higher than the maximum (${be}).`);let Me=le.digits,dt=Me.length-le.integerLen;const rn=Math.min(Math.max(Ae,dt),be);let fn=rn+le.integerLen,xn=Me[fn];if(fn>0){Me.splice(Math.max(le.integerLen,fn));for(let pr=fn;pr<Me.length;pr++)Me[pr]=0}else{dt=Math.max(0,dt),le.integerLen=1,Me.length=Math.max(1,fn=rn+1),Me[0]=0;for(let pr=1;pr<fn;pr++)Me[pr]=0}if(xn>=5)if(fn-1<0){for(let pr=0;pr>fn;pr--)Me.unshift(0),le.integerLen++;Me.unshift(1),le.integerLen++}else Me[fn-1]++;for(;dt<Math.max(0,rn);dt++)Me.push(0);let Er=0!==rn;const gr=Ae+le.integerLen,hr=Me.reduceRight(function(pr,zr,ii,Or){return Or[ii]=(zr+=pr)<10?zr:zr-10,Er&&(0===Or[ii]&&ii>=gr?Or.pop():Er=!1),zr>=10?1:0},0);hr&&(Me.unshift(hr),le.integerLen++)}(gr,pr,zr);let ii=gr.digits,Or=gr.integerLen;const Je=gr.exponent;let Ve=[];for(Er=ii.every(It=>!It);Or<hr;Or++)ii.unshift(0);for(;Or<0;Or++)ii.unshift(0);Or>0?Ve=ii.splice(Or,ii.length):(Ve=ii,ii=[0]);const Be=[];for(ii.length>=Ae.lgSize&&Be.unshift(ii.splice(-Ae.lgSize,ii.length).join(""));ii.length>Ae.gSize;)Be.unshift(ii.splice(-Ae.gSize,ii.length).join(""));ii.length&&Be.unshift(ii.join("")),xn=Be.join(ie(be,Me)),Ve.length&&(xn+=ie(be,dt)+Ve.join("")),Je&&(xn+=ie(be,ve.Exponential)+"+"+Je)}else xn=ie(be,ve.Infinity);return xn=le<0&&!Er?Ae.negPre+xn+Ae.negSuf:Ae.posPre+xn+Ae.posSuf,xn}function on(le,Ae,be,Me,dt){const fn=ke(he(Ae,I.Currency),ie(Ae,ve.MinusSign));return fn.minFrac=yt(Me),fn.maxFrac=fn.minFrac,jt(le,fn,Ae,ve.CurrencyGroup,ve.CurrencyDecimal,dt).replace("\xa4",be).replace("\xa4","").trim()}function mn(le,Ae,be){return jt(le,ke(he(Ae,I.Percent),ie(Ae,ve.MinusSign)),Ae,ve.Group,ve.Decimal,be,!0).replace(new RegExp("%","g"),ie(Ae,ve.PercentSign))}function Mt(le,Ae,be){return jt(le,ke(he(Ae,I.Decimal),ie(Ae,ve.MinusSign)),Ae,ve.Group,ve.Decimal,be)}function ke(le,Ae="-"){const be={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Me=le.split(";"),dt=Me[0],rn=Me[1],fn=-1!==dt.indexOf(".")?dt.split("."):[dt.substring(0,dt.lastIndexOf("0")+1),dt.substring(dt.lastIndexOf("0")+1)],xn=fn[0],Er=fn[1]||"";be.posPre=xn.substr(0,xn.indexOf("#"));for(let hr=0;hr<Er.length;hr++){const pr=Er.charAt(hr);"0"===pr?be.minFrac=be.maxFrac=hr+1:"#"===pr?be.maxFrac=hr+1:be.posSuf+=pr}const gr=xn.split(",");if(be.gSize=gr[1]?gr[1].length:0,be.lgSize=gr[2]||gr[1]?(gr[2]||gr[1]).length:0,rn){const hr=dt.length-be.posPre.length-be.posSuf.length,pr=rn.indexOf("#");be.negPre=rn.substr(0,pr).replace(/'/g,""),be.negSuf=rn.substr(pr+hr).replace(/'/g,"")}
1else be.negPre=Ae+be.posPre,be.negSuf=be.posSuf;return be}function un(le){const Ae=parseInt(le);if(isNaN(Ae))throw new Error("Invalid integer literal when parsing "+le);return Ae}let An=(()=>{class le{}return le.\u0275fac=function(be){return new(be||le)},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:function(be){let Me=null;return be?Me=new be:(dt=t.\u0275\u0275inject(t.LOCALE_ID),Me=new fr(dt)),Me;var dt},providedIn:"root"}),le})();function sr(le,Ae,be,Me){let dt=`=${le}`;if(Ae.indexOf(dt)>-1||(dt=be.getPluralCategory(le,Me),Ae.indexOf(dt)>-1))return dt;if(Ae.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${le}"`)}let fr=(()=>{class le extends An{constructor(be){super(),this.locale=be}getPluralCategory(be,Me){switch(Ct(Me||this.locale)(be)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275inject(t.LOCALE_ID))},le.\u0275prov=t.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac}),le})();function Ar(le,Ae,be){return(0,t.\u0275registerLocaleData)(le,Ae,be)}function Dr(le,Ae){Ae=encodeURIComponent(Ae);for(const be of le.split(";")){const Me=be.indexOf("="),[dt,rn]=-1==Me?[be,""]:[be.slice(0,Me),be.slice(Me+1)];if(dt.trim()===Ae)return decodeURIComponent(rn)}return null}let dr=(()=>{class le{constructor(be,Me,dt,rn){this._iterableDiffers=be,this._keyValueDiffers=Me,this._ngEl=dt,this._renderer=rn,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(be){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof be?be.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(be){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof be?be.split(/\s+/):be,this._rawClass&&((0,t.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const be=this._iterableDiffer.diff(this._rawClass);be&&this._applyIterableChanges(be)}else if(this._keyValueDiffer){const be=this._keyValueDiffer.diff(this._rawClass);be&&this._applyKeyValueChanges(be)}}_applyKeyValueChanges(be){be.forEachAddedItem(Me=>this._toggleClass(Me.key,Me.currentValue)),be.forEachChangedItem(Me=>this._toggleClass(Me.key,Me.currentValue)),be.forEachRemovedItem(Me=>{Me.previousValue&&this._toggleClass(Me.key,!1)})}_applyIterableChanges(be){be.forEachAddedItem(Me=>{if("string"!=typeof Me.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.\u0275stringify)(Me.item)}`);this._toggleClass(Me.item,!0)}),be.forEachRemovedItem(Me=>this._toggleClass(Me.item,!1))}_applyClasses(be){be&&(Array.isArray(be)||be instanceof Set?be.forEach(Me=>this._toggleClass(Me,!0)):Object.keys(be).forEach(Me=>this._toggleClass(Me,!!be[Me])))}_removeClasses(be){be&&(Array.isArray(be)||be instanceof Set?be.forEach(Me=>this._toggleClass(Me,!1)):Object.keys(be).forEach(Me=>
1this._toggleClass(Me,!1)))}_toggleClass(be,Me){(be=be.trim())&&be.split(/\s+/g).forEach(dt=>{Me?this._renderer.addClass(this._ngEl.nativeElement,dt):this._renderer.removeClass(this._ngEl.nativeElement,dt)})}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(t.KeyValueDiffers),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),le})(),Kr=(()=>{class le{constructor(be){this._viewContainerRef=be,this._componentRef=null,this._moduleRef=null}ngOnChanges(be){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const Me=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(be.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const fn=Me.get(t.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(fn.injector)}else this._moduleRef=null;const rn=(this._moduleRef?this._moduleRef.componentFactoryResolver:Me.get(t.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(rn,this._viewContainerRef.length,Me,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[t.\u0275\u0275NgOnChangesFeature]}),le})();class jr{constructor(Ae,be,Me,dt){this.$implicit=Ae,this.ngForOf=be,this.index=Me,this.count=dt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ur=(()=>{class le{constructor(be,Me,dt){this._viewContainer=be,this._template=Me,this._differs=dt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(be){this._ngForOf=be,this._ngForOfDirty=!0}set ngForTrackBy(be){this._trackByFn=be}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(be){be&&(this._template=be)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const be=this._ngForOf;!this._differ&&be&&(this._differ=this._differs.find(be).create(this.ngForTrackBy))}if(this._differ){const be=this._differ.diff(this._ngForOf);be&&this._applyChanges(be)}}_applyChanges(be){const Me=this._viewContainer;be.forEachOperation((dt,rn,fn)=>{if(null==dt.previousIndex)Me.createEmbeddedView(this._template,new jr(dt.item,this._ngForOf,-1,-1),null===fn?void 0:fn);else if(null==fn)Me.remove(null===rn?void 0:rn);else if(null!==rn){const xn=Me.get(rn);Me.move(xn,fn),Lr(xn,dt)}});for(let dt=0,rn=Me.length;dt<rn;dt++){const xn=Me.get(dt).context;xn.index=dt,xn.count=rn,xn.ngForOf=this._ngForOf}be.forEachIdentityChange(dt=>{Lr(Me.get(dt.currentIndex),dt)})}static ngTemplateContextGuard(be,Me){return!0}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),le})();function Lr(le,Ae){le.context.$implicit=Ae.item}let kt=(()=>{class le{constructor(be,Me){this._viewContainer=be,this._context=new an,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Me}set ngIf(be){this._context.$implicit=this._context.ngIf=be,this._updateView()}set ngIfThen(be){Dn("ngIfThen",be),this._thenTemplateRef=be,this._thenView
1Ref=null,this._updateView()}set ngIfElse(be){Dn("ngIfElse",be),this._elseTemplateRef=be,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(be,Me){return!0}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),le})();class an{constructor(){this.$implicit=null,this.ngIf=null}}function Dn(le,Ae){if(Ae&&!Ae.createEmbeddedView)throw new Error(`${le} must be a TemplateRef, but received '${(0,t.\u0275stringify)(Ae)}'.`)}class Bn{constructor(Ae,be){this._viewContainerRef=Ae,this._templateRef=be,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ae){Ae&&!this._created?this.create():!Ae&&this._created&&this.destroy()}}let Yn=(()=>{class le{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(be){this._ngSwitch=be,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(be){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(be)}_matchCase(be){const Me=be==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Me,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Me}_updateDefaultCases(be){if(this._defaultViews&&be!==this._defaultUsed){this._defaultUsed=be;for(let Me=0;Me<this._defaultViews.length;Me++)this._defaultViews[Me].enforceState(be)}}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),le})(),Qt=(()=>{class le{constructor(be,Me,dt){this.ngSwitch=dt,dt._addCase(),this._view=new Bn(be,Me)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(Yn,9))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),le})(),En=(()=>{class le{constructor(be,Me,dt){dt._addDefault(new Bn(be,Me))}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(Yn,9))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngSwitchDefault",""]]}),le})(),er=(()=>{class le{constructor(be){this._localization=be,this._caseViews={}}set ngPlural(be){this._switchValue=be,this._updateView()}addCase(be,Me){this._caseViews[be]=Me}_updateView(){this._clearViews();const be=Object.keys(this._caseViews),Me=sr(this._switchValue,be,this._localization);this._activateView(this._caseViews[Me])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(be){be&&(this._activeView=be,this._activeView.create())}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(An))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),le})(),or=(()=>{class le{constructor(be,Me,dt,rn){this.value=be;const fn=!isNaN(Number(be));rn.addCase(fn?`=${be}`:be,new Bn(dt,Me))}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275injectAttribute("ngPluralCase"),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(er,1))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngPluralCase",""]]}),le})(),wr=(()=>{class le{constructor(be,Me,dt){this._ngEl=be,this._differs=Me,this._renderer=dt,this._ngStyle=null,this._differ=null}set ngStyle(be){this._ngStyle=be,!this._differ&&be&&(this._differ=this._differs.find(be).create())}ngDoCheck(){if(this._differ){const be=this._differ.diff(this._ngStyle);be&&this._applyChanges(be)}}_setStyle(be,Me){const[dt,rn]=be.split(".");null!=(Me=null!=Me&&rn?`${Me}${rn}`:Me)?this._renderer.setStyle(this._ngEl.nativeElement,dt,Me):this._renderer.removeStyle(this._ngEl.nativeElement,dt)}_applyChanges(be){be.forEachRemovedItem(Me=>this._setStyle(Me.key,null)),be.forEachAddedItem(Me=>this._setStyle(Me.key,Me.currentValue)),be.forEachChangedItem(Me=>this._setStyle(Me.key,Me.currentValue))}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.KeyValueDiffers),t.\u0275\u0275directiveInject(t.Renderer2))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),le})(),Nr=(()=>{class le{constructor(be){this._viewContainerRef=be,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(be){if(be.ngTemplateOutlet){const Me=this._viewContainerRef;this._viewRef&&Me.remove(Me.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Me.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&be.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},le.\u0275dir=t.\u0275\u0275defineDirective({type:le,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.\u0275\u0275NgOnChangesFeature]}),le})();function ei(le,Ae){return new t.\u0275RuntimeError(2100,"")}class oi{createSubscription(Ae,be){return Ae.subscribe({next:be,error:Me=>{throw Me}})}dispose(Ae){Ae.unsubscribe()}onDestroy(Ae){Ae.unsubscribe()}}class ui{createSubscription(Ae,be){return Ae.then(be,Me=>{throw Me})}dispose(Ae){}onDestroy(Ae){}}const Yr=new ui,Ci=new oi;let Ji=(()=>{class le{constructor(be){this._ref=be,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(be){return this._obj?be!==this._obj?(this._dispose(),this.transform(be)):this._latestValue:(be&&this._subscribe(be),this._latestValue)}_subscribe(be){this._obj=be,this._strategy=this._selectStrategy(be),this._subscription=this._strategy.createSubscription(be,Me=>this._updateLatestValue(be,Me))}_selectStrategy(be){if((0,t.\u0275isPromise)(be))return Yr;if((0,t.\u0275isSubscribable)(be))return Ci;throw ei()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(be,Me){be===this._obj&&(this._latestValue=Me,this._ref.markForCheck())}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"async",type:le,pure:!1}),le})(),ci=(()=>{class le{transform(be){if(null==be)return null;if("string"!=typeof be)throw ei();return be.toLowerCase()}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275pipe=t.\u0275\u0275definePipe({name:"lowercase",type:le,pure:!0}),le})();const Gi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let rs=(()=>{class le{transform(be){if(null==be)return null;if("string"!=typeof be)throw ei();return be.replace(Gi,Me=>Me[0].toUpperCase()+Me.substr(1).toLowerCase())}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275pipe=t.\u0275\u0275definePipe({name:"titlecase",type:le,pure:!0}),le})(),Oi=(()=>{class le{transform(be){if(null==be)return null;if("string"!=typeof be)throw ei();return be.toUpperCase()}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275pipe=t.\u0275\u0275definePipe({name:"uppercase",type:le,pure:!0}),le})();const $r=new t.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let si=(()=>{class le{constructor(be,Me){this.locale=be,this.defaultTimezone=Me}transform(be,Me="mediumDate",dt,rn){var fn;if(null==be||""===be||be!=be)return null;try{return sn(be,Me,rn||this.locale,null!==(fn=null!=dt?dt:this.defaultTimezone)&&void 0!==fn?fn:void 0)}catch(xn){throw ei()}}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject($r,24))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"date",type:le,pure:!0}),le})();const cs=/#/g;let Yi=(()=>{class le{constructor(be){this._localization=be}transform(be,Me,dt){if(null==be)return"";if("object"!=typeof Me||null===Me)throw ei();return Me[sr(be,Object.keys(Me),this._localization,dt)].replace(cs,be.toString())}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(An,16))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"i18nPlural",type:le,pure:!0}),le})(),is=(()=>{class le{transform(be,Me){if(null==be)return"";if("object"!=typeof Me||"string"!=typeof be)throw ei();return Me.hasOwnProperty(be)?Me[be]:Me.hasOwnProperty("other")?Me.other:""}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275pipe=t.\u0275\u0275definePipe({name:"i18nSelect",type:le,pure:!0}),le})(),$i=(()=>{class le{transform(be){return JSON.stringify(be,null,2)}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275pipe=t.\u0275\u0275definePipe({name:"json",type:le,pure:!1}),le})(),ai=(()=>{class le{constructor(be){this.differs=be,this.keyValues=[],this.compareFn=Zi}transform(be,Me=Zi){if(!be||!(be instanceof Map)&&"object"!=typeof be)return null;this.differ||(this.differ=this.differs.find(be).create());const dt=this.differ.diff(be),rn=Me!==this.compareFn;return dt&&(this.keyValues=[],dt.forEachItem(fn=>{this.keyValues.push(function Hi(le,Ae){return{key:le,value:Ae}}(fn.key,fn.currentValue))}
1)),(dt||rn)&&(this.keyValues.sort(Me),this.compareFn=Me),this.keyValues}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.KeyValueDiffers,16))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"keyvalue",type:le,pure:!1}),le})();function Zi(le,Ae){const be=le.key,Me=Ae.key;if(be===Me)return 0;if(void 0===be)return 1;if(void 0===Me)return-1;if(null===be)return 1;if(null===Me)return-1;if("string"==typeof be&&"string"==typeof Me)return be<Me?-1:1;if("number"==typeof be&&"number"==typeof Me)return be-Me;if("boolean"==typeof be&&"boolean"==typeof Me)return be<Me?-1:1;const dt=String(be),rn=String(Me);return dt==rn?0:dt<rn?-1:1}let zi=(()=>{class le{constructor(be){this._locale=be}transform(be,Me,dt){if(!hs(be))return null;dt=dt||this._locale;try{return Mt(fs(be),dt,Me)}catch(rn){throw ei()}}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"number",type:le,pure:!0}),le})(),xi=(()=>{class le{constructor(be){this._locale=be}transform(be,Me,dt){if(!hs(be))return null;dt=dt||this._locale;try{return mn(fs(be),dt,Me)}catch(rn){throw ei()}}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"percent",type:le,pure:!0}),le})(),ss=(()=>{class le{constructor(be,Me="USD"){this._locale=be,this._defaultCurrencyCode=Me}transform(be,Me=this._defaultCurrencyCode,dt="symbol",rn,fn){if(!hs(be))return null;fn=fn||this._locale,"boolean"==typeof dt&&(dt=dt?"symbol":"code");let xn=Me||this._defaultCurrencyCode;"code"!==dt&&(xn="symbol"===dt||"symbol-narrow"===dt?_t(xn,"symbol"===dt?"wide":"narrow",fn):dt);try{return on(fs(be),fn,xn,Me,rn)}catch(Er){throw ei()}}}return le.\u0275fac=function(be){return new(be||le)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject(t.DEFAULT_CURRENCY_CODE,16))},le.\u0275pipe=t.\u0275\u0275definePipe({name:"currency",type:le,pure:!0}),le})();function hs(le){return!(null==le||""===le||le!=le)}function fs(le){if("string"==typeof le&&!isNaN(Number(le)-parseFloat(le)))return Number(le);if("number"!=typeof le)throw new Error(`${le} is not a number`);return le}let bs=(()=>{class le{transform(be,Me,dt){if(null==be)return null;if(!this.supports(be))throw ei();return be.slice(Me,dt)}supports(be){return"string"==typeof be||Array.isArray(be)}}return le.\u0275fac=function(be){return new(be||le)},le.\u0275pipe=t.\u0275\u0275definePipe({name:"slice",type:le,pure:!1}),le})(),Mi=(()=>{class le{}return le.\u0275fac=function(be){return new(be||le)},le.\u0275mod=t.\u0275\u0275defineNgModule({type:le}),le.\u0275inj=t.\u0275\u0275defineInjector({}),le})();const Ti="browser",os="server",Ii="browserWorkerApp",tt="browserWorkerUi";function Xe(le){return le===Ti}function Ut(le){return le===os}function gn(le){return le===Ii}function _n(le){return le===tt}const Mn=new t.Version("13.2.7");let qn=(()=>{class le{}return le.\u0275prov=(0,t.\u0275\u0275defineInjectable)({token:le,providedIn:"root",factory:()=>new cr((0,t.\u0275\u0275inject)(S),window)}),le})();class cr{constructor(Ae,be){this.document=Ae,this.window=be,this.offset=()=>[0,0]}setOffset(Ae){this.offset=Array.isArray(Ae)?()=>Ae:Ae}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ae){this.supportsScrolling()&&this.window.scrollTo(Ae[0],Ae[1])}scrollToAnchor(Ae){if(!this.supportsScrolling())return;const be=function _r(le,Ae){const be=le.getElementById(Ae)||le.getElementsByName(Ae)[0];if(be)return be;if("function"==typeof le.createTreeWalker&&le.body&&(le.body.createShadowRoot||le.body.attachShadow)){const Me=le.createTreeWalker(le.body,NodeFilter.SHOW_ELEMENT);let dt=Me.currentNode;for(;dt;){const rn=dt.shadowRoot;if(rn){const fn=rn.getElementById(Ae)||rn.querySelector(`[name="${Ae}"]`);if(fn)return fn}dt=Me.nextNode()}}return null}(this.document,Ae);be&&(this.scrollToElement(be),be.focus())}setHistoryScrollRestoration(Ae){if(this.supportScrollRestoration()){const be=this.window.history;be&&be.scrollRestoration&&(be.scrollRestoration=Ae)}}scrollToElement(Ae){const be=Ae.getBoundingClientRect(),Me=be.left+this.window.pageXOffset,dt=be.top+this.window.pageYOffset,rn=this.offset();this.window.scrollTo(Me-rn[0],dt-rn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ae=ur(this.window.history)||ur(Object.getPrototypeOf(this.window.history));return!(!Ae||!Ae.writable&&!Ae.set)}catch(Ae){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Ae){return!1}}}function ur(le){return Object.getOwnPropertyDescriptor(le,"scrollRestoration")}class Mr{setOffset(Ae){}getScrollPosition(){return[0,0]}scrollToPosition(Ae){}scrollToAnchor(Ae){}setHistoryScrollRestoration(Ae){}}class Wr{}},520:(xe,q,c)=>{"use strict";c.d(q,{eN:()=>ve,JF:()=>it});var t=c(9808),_=c(6435),x=c(1086),re=c(2916),te=c(1406),Q=c(2198),S=c(4850);class W{}class P{}class C{constructor(ht){this.normalizedNames=new Map,this.lazyUpdate=null,ht?this.lazyInit="string"==typeof ht?()=>{this.headers=new Map,ht.split("\n").forEach(ct=>{const cn=ct.indexOf(":");if(cn>0){const gt=ct.slice(0,cn),at=gt.toLowerCase(),St=ct.slice(cn+1).trim();this.maybeSetNormalizedName(gt,at),this.headers.has(at)?this.headers.get(at).push(St):this.headers.set(at,[St])}})}:()=>{this.headers=new Map,Object.keys(ht).forEach(ct=>{let cn=ht[ct];const gt=ct.toLowerCase();"string"==typeof cn&&(cn=[cn]),cn.length>0&&(this.headers.set(gt,cn),this.maybeSetNormalizedName(ct,gt))})}:this.headers=new Map}has(ht){return this.init(),this.headers.has(ht.toLowerCase())}get(ht){this.init();const ct=this.headers.get(ht.toLowerCase());return ct&&ct.length>0?ct[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ht){return this.init(),this.headers.get(ht.toLowerCase())||null}append(ht,ct){return this.clone({name:ht,value:ct,op:"a"})}set(ht,ct){return this.clone({name:ht,value:ct,op:"s"})}delete(ht,ct){return this.clone({name:ht,value:ct,op:"d"})}maybeSetNormalizedName(ht,ct){this.normalizedNames.has(ct)||this.normalizedNames.set(ct,ht)}init(){this.lazyInit&&(this.lazyInit instanceof C?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ht=>this.applyUpdate(ht)),this.lazyUpdate=null))}
vendor: 10,690 bytes, line 1
1copyFrom(ht){ht.init(),Array.from(ht.headers.keys()).forEach(ct=>{this.headers.set(ct,ht.headers.get(ct)),this.normalizedNames.set(ct,ht.normalizedNames.get(ct))})}clone(ht){const ct=new C;return ct.lazyInit=this.lazyInit&&this.lazyInit instanceof C?this.lazyInit:this,ct.lazyUpdate=(this.lazyUpdate||[]).concat([ht]),ct}applyUpdate(ht){const ct=ht.name.toLowerCase();switch(ht.op){case"a":case"s":let cn=ht.value;if("string"==typeof cn&&(cn=[cn]),0===cn.length)return;this.maybeSetNormalizedName(ht.name,ct);const gt=("a"===ht.op?this.headers.get(ct):void 0)||[];gt.push(...cn),this.headers.set(ct,gt);break;case"d":const at=ht.value;if(at){let St=this.headers.get(ct);if(!St)return;St=St.filter(sn=>-1===at.indexOf(sn)),0===St.length?(this.headers.delete(ct),this.normalizedNames.delete(ct)):this.headers.set(ct,St)}else this.headers.delete(ct),this.normalizedNames.delete(ct)}}forEach(ht){this.init(),Array.from(this.normalizedNames.keys()).forEach(ct=>ht(this.normalizedNames.get(ct),this.headers.get(ct)))}}class L{encodeKey(ht){return R(ht)}encodeValue(ht){return R(ht)}decodeKey(ht){return decodeURIComponent(ht)}decodeValue(ht){return decodeURIComponent(ht)}}const m=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function R(yt){return encodeURIComponent(yt).replace(m,(ht,ct)=>{var cn;return null!==(cn=v[ct])&&void 0!==cn?cn:ht})}function j(yt){return`${yt}`}class M{constructor(ht={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ht.encoder||new L,ht.fromString){if(ht.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function E(yt,ht){const ct=new Map;return yt.length>0&&yt.replace(/^\?/,"").split("&").forEach(gt=>{const at=gt.indexOf("="),[St,sn]=-1==at?[ht.decodeKey(gt),""]:[ht.decodeKey(gt.slice(0,at)),ht.decodeValue(gt.slice(at+1))],ze=ct.get(St)||[];ze.push(sn),ct.set(St,ze)}),ct}(ht.fromString,this.encoder)}else ht.fromObject?(this.map=new Map,Object.keys(ht.fromObject).forEach(ct=>{const cn=ht.fromObject[ct];this.map.set(ct,Array.isArray(cn)?cn:[cn])})):this.map=null}has(ht){return this.init(),this.map.has(ht)}get(ht){this.init();const ct=this.map.get(ht);return ct?ct[0]:null}getAll(ht){return this.init(),this.map.get(ht)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ht,ct){return this.clone({param:ht,value:ct,op:"a"})}appendAll(ht){const ct=[];return Object.keys(ht).forEach(cn=>{const gt=ht[cn];Array.isArray(gt)?gt.forEach(at=>{ct.push({param:cn,value:at,op:"a"})}):ct.push({param:cn,value:gt,op:"a"})}),this.clone(ct)}set(ht,ct){return this.clone({param:ht,value:ct,op:"s"})}delete(ht,ct){return this.clone({param:ht,value:ct,op:"d"})}toString(){return this.init(),this.keys().map(ht=>{const ct=this.encoder.encodeKey(ht);return this.map.get(ht).map(cn=>ct+"="+this.encoder.encodeValue(cn)).join("&")}).filter(ht=>""!==ht).join("&")}clone(ht){const ct=new M({encoder:this.encoder});return ct.cloneFrom=this.cloneFrom||this,ct.updates=(this.updates||[]).concat(ht),ct}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ht=>this.map.set(ht,this.cloneFrom.map.get(ht))),this.updates.forEach(ht=>{switch(ht.op){case"a":case"s":const ct=("a"===ht.op?this.map.get(ht.param):void 0)||[];ct.push(j(ht.value)),this.map.set(ht.param,ct);break;case"d":if(void 0===ht.value){this.map.delete(ht.param);break}{let cn=this.map.get(ht.param)||[];const gt=cn.indexOf(j(ht.value));-1!==gt&&cn.splice(gt,1),cn.length>0?this.map.set(ht.param,cn):this.map.delete(ht.param)}}}),this.cloneFrom=this.updates=null)}}class f{constructor(){this.map=new Map}set(ht,ct){return this.map.set(ht,ct),this}get(ht){return this.map.has(ht)||this.map.set(ht,ht.defaultValue()),this.map.get(ht)}delete(ht){return this.map.delete(ht),this}has(ht){return this.map.has(ht)}keys(){return this.map.keys()}}function Z(yt){return"undefined"!=typeof ArrayBuffer&&yt instanceof ArrayBuffer}function G(yt){return"undefined"!=typeof Blob&&yt instanceof Blob}function $(yt){return"undefined"!=typeof FormData&&yt instanceof FormData}class y{constructor(ht,ct,cn,gt){let at;if(this.url=ct,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ht.toUpperCase(),function T(yt){switch(yt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||gt?(this.body=void 0!==cn?cn:null,at=gt):at=cn,at&&(this.reportProgress=!!at.reportProgress,this.withCredentials=!!at.withCredentials,at.responseType&&(this.responseType=at.responseType),at.headers&&(this.headers=at.headers),at.context&&(this.context=at.context),at.params&&(this.params=at.params)),this.headers||(this.headers=new C),this.context||(this.context=new f),this.params){const St=this.params.toString();if(0===St.length)this.urlWithParams=ct;else{const sn=ct.indexOf("?");this.urlWithParams=ct+(-1===sn?"?":sn<ct.length-1?"&":"")+St}}else this.params=new M,this.urlWithParams=ct}serializeBody(){return null===this.body?null:Z(this.body)||G(this.body)||$(this.body)||function se(yt){return"undefined"!=typeof URLSearchParams&&yt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof M?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||$(this.body)?null:G(this.body)?this.body.type||null:Z(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof M?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ht={}){var ct;const cn=ht.method||this.method,gt=ht.url||this.url,at=ht.responseType||this.responseType,St=void 0!==ht.body?ht.body:this.body,sn=void 0!==ht.withCredentials?ht.withCredentials:this.withCredentials,ze=void 0!==ht.reportProgress?ht.reportProgress:this.reportProgress;let nt=ht.headers||this.headers,mt=ht.params||this.params;const Nt=null!==(ct=ht.context)&&void 0!==ct?ct:this.context;return void 0!==ht.setHeaders&&(nt=Object.keys(ht.setHeaders).reduce((wt,bt)=>wt.set(bt,ht.setHeaders[bt]),nt)),ht.setParams&&(mt=Object.keys(ht.setParams).reduce((wt,bt)=>wt.set(bt,ht.setParams[bt]),mt)),new y(cn,gt,St,{params:mt,headers:nt,context:Nt,reportProgress:ze,responseType:at,withCredentials:sn})}}var k=(()=>((k=k||{})[k.Sent=0]="Sent",k[k.UploadProgress=1]="UploadProgress",k[k.ResponseHeader=2]="ResponseHeader",k[k.DownloadProgress=3]="DownloadProgress",k[k.Response=4]="Response",k[k.User=5]="User",k))();class I{constructor(ht,ct=200,cn="OK"){this.headers=ht.headers||new C,this.status=void 0!==ht.status?ht.status:ct,this.statusText=ht.statusText||cn,this.url=ht.url||null,this.ok=this.status>=200&&this.status<300}}class H extends I{constructor(ht={}){super(ht),this.type=k.ResponseHeader}clone(ht={}){return new H({headers:ht.headers||this.headers,status:void 0!==ht.status?ht.status:this.status,statusText:ht.statusText||this.statusText,url:ht.url||this.url||void 0})}}class ee extends I{constructor(ht={}){super(ht),this.type=k.Response,this.body=void 0!==ht.body?ht.body:null}clone(ht={}){return new ee({body:void 0!==ht.body?ht.body:this.body,headers:ht.headers||this.headers,status:void 0!==ht.status?ht.status:this.status,statusText:ht.statusText||this.statusText,url:ht.url||this.url||void 0})}}class z extends I{constructor(ht){super(ht,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ht.url||"(unknown url)"}`:`Http failure response for ${ht.url||"(unknown url)"}: ${ht.status} ${ht.statusText}`,this.error=ht.error||null}}function oe(yt,ht){return{body:ht,headers:yt.headers,context:yt.context,observe:yt.observe,params:yt.params,reportProgress:yt.reportProgress,responseType:yt.responseType,withCredentials:yt.withCredentials}}let ve=(()=>{class yt{constructor(ct){this.handler=ct}request(ct,cn,gt={}){let at;if(ct instanceof y)at=ct;else{let ze,nt;ze=gt.headers instanceof C?gt.headers:new C(gt.headers),gt.params&&(nt=gt.params instanceof M?gt.params:new M({fromObject:gt.params})),at=new y(ct,cn,void 0!==gt.body?gt.body:null,{headers:ze,context:gt.context,params:nt,reportProgress:gt.reportProgress,responseType:gt.responseType||"json",withCredentials:gt.withCredentials})}const St=(0,x.of)(at).pipe((0,te.b)(ze=>this.handler.handle(ze)));if(ct instanceof y||"events"===gt.observe)return St;const sn=St.pipe((0,Q.h)(ze=>ze instanceof ee));switch(gt.observe||"body"){case"body":switch(at.responseType){case"arraybuffer":return sn.pipe((0,S.U)(ze=>{if(null!==ze.body&&!(ze.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ze.body}));case"blob":return sn.pipe((0,S.U)(ze=>{if(null!==ze.body&&!(ze.body instanceof Blob))throw new Error("Response is not a Blob.");return ze.body}));case"text":return sn.pipe((0,S.U)(ze=>{if(null!==ze.body&&"string"!=typeof ze.body)throw new Error("Response is not a string.");return ze.body}));default:return sn.pipe((0,S.U)(ze=>ze.body))}case"response":return sn;default:throw new Error(`Unreachable: unhandled observe type ${gt.observe}}`)}}delete(ct,cn={}){return this.request("DELETE",ct,cn)}get(ct,cn={}){return this.request("GET",ct,cn)}head(ct,cn={}){return this.request("HEAD",ct,cn)}jsonp(ct,cn){return this.request("JSONP",ct,{params:(new M).append(cn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ct,cn={}){return this.request("OPTIONS",ct,cn)}patch(ct,cn,gt={}){return this.request("PATCH",ct,oe(gt,cn))}post(ct,cn,gt={}){return this.request("POST",ct,oe(gt,cn))}put(ct,cn,gt={}){return this.request("PUT",ct,oe(gt,cn))}}return yt.\u0275fac=function(ct){return new(ct||yt)(_.\u0275\u0275inject(W))},yt.\u0275prov=_.\u0275\u0275defineInjectable({token:yt,factory:yt.\u0275fac}),yt})();class We{constructor(ht,ct){this.next=ht,this.interceptor=ct}handle(ht){return this.interceptor.intercept(ht,this.next)}}const Re=new _.InjectionToken("HTTP_INTERCEPTORS");let He=(()=>{class yt{intercept(ct,cn){return cn.handle(ct)}}return yt.\u0275fac=function(ct){return new(ct||yt)},yt.\u0275prov=_.\u0275\u0275defineInjectable({token:yt,factory:yt.\u0275fac}),yt})();const ie=/^\)\]\}',?\n/;let Oe=(()=>{class yt{constructor(ct){this.xhrFactory=ct}handle(ct){if("JSONP"===ct.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new re.y(cn=>{const gt=this.xhrFactory.build();if(gt.open(ct.method,ct.urlWithParams),ct.withCredentials&&(gt.withCredentials=!0),ct.headers.forEac
vendor: 4,856 bytes, line 1
1h((bt,Kt)=>gt.setRequestHeader(bt,Kt.join(","))),ct.headers.has("Accept")||gt.setRequestHeader("Accept","application/json, text/plain, */*"),!ct.headers.has("Content-Type")){const bt=ct.detectContentTypeHeader();null!==bt&&gt.setRequestHeader("Content-Type",bt)}if(ct.responseType){const bt=ct.responseType.toLowerCase();gt.responseType="json"!==bt?bt:"text"}const at=ct.serializeBody();let St=null;const sn=()=>{if(null!==St)return St;const bt=gt.statusText||"OK",Kt=new C(gt.getAllResponseHeaders()),Un=function he(yt){return"responseURL"in yt&&yt.responseURL?yt.responseURL:/^X-Request-URL:/m.test(yt.getAllResponseHeaders())?yt.getResponseHeader("X-Request-URL"):null}(gt)||ct.url;return St=new H({headers:Kt,status:gt.status,statusText:bt,url:Un}),St},ze=()=>{let{headers:bt,status:Kt,statusText:Un,url:vt}=sn(),tn=null;204!==Kt&&(tn=void 0===gt.response?gt.responseText:gt.response),0===Kt&&(Kt=tn?200:0);let Cn=Kt>=200&&Kt<300;if("json"===ct.responseType&&"string"==typeof tn){const Sn=tn;tn=tn.replace(ie,"");try{tn=""!==tn?JSON.parse(tn):null}catch(Nn){tn=Sn,Cn&&(Cn=!1,tn={error:Nn,text:tn})}}Cn?(cn.next(new ee({body:tn,headers:bt,status:Kt,statusText:Un,url:vt||void 0})),cn.complete()):cn.error(new z({error:tn,headers:bt,status:Kt,statusText:Un,url:vt||void 0}))},nt=bt=>{const{url:Kt}=sn(),Un=new z({error:bt,status:gt.status||0,statusText:gt.statusText||"Unknown Error",url:Kt||void 0});cn.error(Un)};let mt=!1;const Nt=bt=>{mt||(cn.next(sn()),mt=!0);let Kt={type:k.DownloadProgress,loaded:bt.loaded};bt.lengthComputable&&(Kt.total=bt.total),"text"===ct.responseType&&!!gt.responseText&&(Kt.partialText=gt.responseText),cn.next(Kt)},wt=bt=>{let Kt={type:k.UploadProgress,loaded:bt.loaded};bt.lengthComputable&&(Kt.total=bt.total),cn.next(Kt)};return gt.addEventListener("load",ze),gt.addEventListener("error",nt),gt.addEventListener("timeout",nt),gt.addEventListener("abort",nt),ct.reportProgress&&(gt.addEventListener("progress",Nt),null!==at&&gt.upload&&gt.upload.addEventListener("progress",wt)),gt.send(at),cn.next({type:k.Sent}),()=>{gt.removeEventListener("error",nt),gt.removeEventListener("abort",nt),gt.removeEventListener("load",ze),gt.removeEventListener("timeout",nt),ct.reportProgress&&(gt.removeEventListener("progress",Nt),null!==at&&gt.upload&&gt.upload.removeEventListener("progress",wt)),gt.readyState!==gt.DONE&&gt.abort()}})}}return yt.\u0275fac=function(ct){return new(ct||yt)(_.\u0275\u0275inject(t.XhrFactory))},yt.\u0275prov=_.\u0275\u0275defineInjectable({token:yt,factory:yt.\u0275fac}),yt})();const Ne=new _.InjectionToken("XSRF_COOKIE_NAME"),Ye=new _.InjectionToken("XSRF_HEADER_NAME");class Qe{}let Ct=(()=>{class yt{constructor(ct,cn,gt){this.doc=ct,this.platform=cn,this.cookieName=gt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ct=this.doc.cookie||"";return ct!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.\u0275parseCookieValue)(ct,this.cookieName),this.lastCookieString=ct),this.lastToken}}return yt.\u0275fac=function(ct){return new(ct||yt)(_.\u0275\u0275inject(t.DOCUMENT),_.\u0275\u0275inject(_.PLATFORM_ID),_.\u0275\u0275inject(Ne))},yt.\u0275prov=_.\u0275\u0275defineInjectable({token:yt,factory:yt.\u0275fac}),yt})(),Ot=(()=>{class yt{constructor(ct,cn){this.tokenService=ct,this.headerName=cn}intercept(ct,cn){const gt=ct.url.toLowerCase();if("GET"===ct.method||"HEAD"===ct.method||gt.startsWith("http://")||gt.startsWith("https://"))return cn.handle(ct);const at=this.tokenService.getToken();return null!==at&&!ct.headers.has(this.headerName)&&(ct=ct.clone({headers:ct.headers.set(this.headerName,at)})),cn.handle(ct)}}return yt.\u0275fac=function(ct){return new(ct||yt)(_.\u0275\u0275inject(Qe),_.\u0275\u0275inject(Ye))},yt.\u0275prov=_.\u0275\u0275defineInjectable({token:yt,factory:yt.\u0275fac}),yt})(),ln=(()=>{class yt{constructor(ct,cn){this.backend=ct,this.injector=cn,this.chain=null}handle(ct){if(null===this.chain){const cn=this.injector.get(Re,[]);this.chain=cn.reduceRight((gt,at)=>new We(gt,at),this.backend)}return this.chain.handle(ct)}}return yt.\u0275fac=function(ct){return new(ct||yt)(_.\u0275\u0275inject(P),_.\u0275\u0275inject(_.Injector))},yt.\u0275prov=_.\u0275\u0275defineInjectable({token:yt,factory:yt.\u0275fac}),yt})(),Rt=(()=>{class yt{static disable(){return{ngModule:yt,providers:[{provide:Ot,useClass:He}]}}static withOptions(ct={}){return{ngModule:yt,providers:[ct.cookieName?{provide:Ne,useValue:ct.cookieName}:[],ct.headerName?{provide:Ye,useValue:ct.headerName}:[]]}}}return yt.\u0275fac=function(ct){return new(ct||yt)},yt.\u0275mod=_.\u0275\u0275defineNgModule({type:yt}),yt.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ot,{provide:Re,useExisting:Ot,multi:!0},{provide:Qe,useClass:Ct},{provide:Ne,useValue:"XSRF-TOKEN"},{provide:Ye,useValue:"X-XSRF-TOKEN"}
1]}),yt})(),it=(()=>{class yt{}return yt.\u0275fac=function(ct){return new(ct||yt)},yt.\u0275mod=_.\u0275\u0275defineNgModule({type:yt}),yt.\u0275inj=_.\u0275\u0275defineInjector({providers:[ve,{provide:W,useClass:ln},Oe,{provide:P,useExisting:Oe}],imports:[[Rt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),yt})()},6435:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Ds,APP_BOOTSTRAP_LISTENER:()=>w0,APP_ID:()=>y0,APP_INITIALIZER:()=>v0,ApplicationInitStatus:()=>Rv,ApplicationModule:()=>fC,ApplicationRef:()=>Vv,Attribute:()=>qs,COMPILER_OPTIONS:()=>C0,CUSTOM_ELEMENTS_SCHEMA:()=>yu,ChangeDetectionStrategy:()=>St,ChangeDetectorRef:()=>U0,Compiler:()=>xS,CompilerFactory:()=>MS,Component:()=>yS,ComponentFactory:()=>Eg,ComponentFactoryResolver:()=>wg,ComponentRef:()=>t_,ContentChild:()=>Rs,ContentChildren:()=>yd,DEFAULT_CURRENCY_CODE:()=>DS,DebugElement:()=>qf,DebugEventListener:()=>QS,DebugNode:()=>Hv,DefaultIterableDiffer:()=>z0,Directive:()=>m0,ElementRef:()=>Wf,EmbeddedViewRef:()=>qS,ErrorHandler:()=>so,EventEmitter:()=>Zl,Host:()=>Io,HostBinding:()=>wS,HostListener:()=>AS,INJECTOR:()=>th,Inject:()=>nl,InjectFlags:()=>ut,Injectable:()=>GE,InjectionToken:()=>ds,Injector:()=>Ks,Input:()=>_S,IterableDiffers:()=>Xv,KeyValueDiffers:()=>Yv,LOCALE_ID:()=>Mv,MissingTranslationStrategy:()=>eu,ModuleWithComponentFactories:()=>S0,NO_ERRORS_SCHEMA:()=>ka,NgModule:()=>SS,NgModuleFactory:()=>h_,NgModuleRef:()=>dd,NgProbeToken:()=>US,NgZone:()=>Sl,Optional:()=>ro,Output:()=>ES,PACKAGE_ROOT_URL:()=>TS,PLATFORM_ID:()=>E0,PLATFORM_INITIALIZER:()=>_0,Pipe:()=>bS,PlatformRef:()=>Uv,Query:()=>tu,QueryList:()=>Ig,ReflectiveInjector:()=>od,ReflectiveKey:()=>Du,Renderer2:()=>kA,RendererFactory2:()=>r_,RendererStyleFlags2:()=>ya,ResolvedReflectiveFactory:()=>Oy,Sanitizer:()=>i_,SecurityContext:()=>Ss,Self:()=>Ko,SimpleChange:()=>Mi,SkipSelf:()=>Aa,TRANSLATIONS:()=>PS,TRANSLATIONS_FORMAT:()=>RS,TemplateRef:()=>Kf,Testability:()=>P0,TestabilityRegistry:()=>Fv,Type:()=>nu,VERSION:()=>o_,Version:()=>s_,ViewChild:()=>To,ViewChildren:()=>ea,ViewContainerRef:()=>Pg,ViewEncapsulation:()=>nt,ViewRef:()=>$0,asNativeElements:()=>JS,assertPlatform:()=>k0,createNgModuleRef:()=>VA,createPlatform:()=>M0,createPlatformFactory:()=>O0,defineInjectable:()=>Ne,destroyPlatform:()=>VS,enableProdMode:()=>zS,forwardRef:()=>j,getDebugNode:()=>gd,getModuleFactory:()=>KS,getNgModuleById:()=>XS,getPlatform:()=>jv,inject:()=>ku,isDevMode:()=>GS,platformCore:()=>dC,resolveForwardRef:()=>M,setTestabilityGetter:()=>jS,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Bv,\u0275APP_ID_RANDOM_PROVIDER:()=>CS,\u0275ChangeDetectorStatus:()=>sn,\u0275ComponentFactory:()=>Eg,\u0275Console:()=>A0,\u0275DEFAULT_LOCALE_ID:()=>jf,\u0275INJECTOR_SCOPE:()=>qh,\u0275LifecycleHooksFeature:()=>ed,\u0275LocaleDataIndex:()=>gi,\u0275NG_COMP_DEF:()=>Sn,\u0275NG_DIR_DEF:()=>Nn,\u0275NG_ELEMENT_ID:()=>nr,\u0275NG_INJ_DEF:()=>Rt,\u0275NG_MOD_DEF:()=>Fn,\u0275NG_PIPE_DEF:()=>rr,\u0275NG_PROV_DEF:()=>Jt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Ag,\u0275NO_CHANGE:()=>yi,\u0275NgModuleFactory:()=>Tg,\u0275NoopNgZone:()=>D0,\u0275ReflectionCapabilities:()=>Va,\u0275Render3ComponentFactory:()=>Cg,\u0275Render3ComponentRef:()=>u_,\u0275Render3NgModuleRef:()=>gv,\u0275RuntimeError:()=>T,\u0275ViewRef:()=>hd,\u0275_sanitizeHtml:()=>sa,\u0275_sanitizeUrl:()=>Da,\u0275allowSanitizationBypassAndThrow:()=>Wa,\u0275bypassSanitizationTrustHtml:()=>al,\u0275bypassSanitizationTrustResourceUrl:()=>Ad,\u0275bypassSanitizationTrustScript:()=>Ac,\u0275bypassSanitizationTrustStyle:()=>Ga,\u0275bypassSanitizationTrustUrl:()=>wd,\u0275clearResolutionOfComponentResourcesQueue:()=>vh,\u0275compileComponent:()=>r0,\u0275compileDirective:()=>Pv,\u0275compileNgModule:()=>Q_,\u0275compileNgModuleDefs:()=>J_,\u0275compileNgModuleFactory:()=>R0,\u0275compilePipe:()=>p0,\u0275createInjector:()=>Ef,\u0275defaultIterableDiffers:()=>cC,\u0275defaultKeyValueDiffers:()=>hC,\u0275detectChanges:()=>Wp,\u0275devModeEqual:()=>nd,\u0275findLocaleData:()=>sv,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Y_,\u0275getDebugNode:()=>gd,\u0275getDebugNodeR2:()=>nC,\u0275getDirectives:()=>Zp,\u0275getHostElement:()=>Yl,\u0275getInjectableDef:()=>Qe,\u0275getLContext:()=>zs,\u0275getLocaleCurrencyCode:()=>kw,\u0275getLocalePluralCase:()=>Cb,\u0275getSanitizationBypassType:()=>$u,\u0275global:()=>Kt,\u0275injectChangeDetectorRef:()=>V0,\u0275isBoundToModule:()=>x0,\u0275isDefaultChangeDetectionStrategy:()=>ze,\u0275isListLikeIterable:()=>ql,\u0275isObservable:()=>
vendor: 7,223 bytes, line 1
1Uy,\u0275isPromise:()=>Am,\u0275isSubscribable:()=>jy,\u0275ivyEnabled:()=>pC,\u0275makeDecorator:()=>Fs,\u0275markDirty:()=>eh,\u0275noSideEffects:()=>at,\u0275patchComponentDefWithScope:()=>Tv,\u0275publishDefaultGlobalUtils:()=>ih,\u0275publishGlobalUtil:()=>Do,\u0275registerLocaleData:()=>Ow,\u0275registerNgModuleType:()=>f_,\u0275renderComponent:()=>Tf,\u0275resetCompiledComponents:()=>lS,\u0275resetJitOptions:()=>oS,\u0275resolveComponentResources:()=>ga,\u0275setClassMetadata:()=>c_,\u0275setCurrentInjector:()=>xl,\u0275setDocument:()=>Ae,\u0275setLocaleId:()=>Db,\u0275store:()=>Pn,\u0275stringify:()=>m,\u0275transitiveScopesFor:()=>Yf,\u0275unregisterLocaleData:()=>Nw,\u0275unwrapSafeValue:()=>Xo,\u0275whenRendered:()=>Df,\u0275\u0275CopyDefinitionFeature:()=>ag,\u0275\u0275FactoryTarget:()=>Wi,\u0275\u0275InheritDefinitionFeature:()=>oh,\u0275\u0275NgOnChangesFeature:()=>Ti,\u0275\u0275ProvidersFeature:()=>e_,\u0275\u0275advance:()=>Bd,\u0275\u0275attribute:()=>Of,\u0275\u0275attributeInterpolate1:()=>id,\u0275\u0275attributeInterpolate2:()=>Hs,\u0275\u0275attributeInterpolate3:()=>sd,\u0275\u0275attributeInterpolate4:()=>kf,\u0275\u0275attributeInterpolate5:()=>e,\u0275\u0275attributeInterpolate6:()=>u,\u0275\u0275attributeInterpolate7:()=>U,\u0275\u0275attributeInterpolate8:()=>pe,\u0275\u0275attributeInterpolateV:()=>$e,\u0275\u0275classMap:()=>Zy,\u0275\u0275classMapInterpolate1:()=>ab,\u0275\u0275classMapInterpolate2:()=>lb,\u0275\u0275classMapInterpolate3:()=>ub,\u0275\u0275classMapInterpolate4:()=>cb,\u0275\u0275classMapInterpolate5:()=>hb,\u0275\u0275classMapInterpolate6:()=>db,\u0275\u0275classMapInterpolate7:()=>fb,\u0275\u0275classMapInterpolate8:()=>pb,\u0275\u0275classMapInterpolateV:()=>gb,\u0275\u0275classProp:()=>Lm,\u0275\u0275contentQuery:()=>H_,\u0275\u0275defineComponent:()=>hn,\u0275\u0275defineDirective:()=>nn,\u0275\u0275defineInjectable:()=>Oe,\u0275\u0275defineInjector:()=>Ye,\u0275\u0275defineNgModule:()=>Ue,\u0275\u0275definePipe:()=>vn,\u0275\u0275directiveInject:()=>Lf,\u0275\u0275disableBindings:()=>Jr,\u0275\u0275element:()=>Em,\u0275\u0275elementContainer:()=>wm,\u0275\u0275elementContainerEnd:()=>fg,\u0275\u0275elementContainerStart:()=>dg,\u0275\u0275elementEnd:()=>hg,\u0275\u0275elementStart:()=>cg,\u0275\u0275enableBindings:()=>Vr,\u0275\u0275getCurrentView:()=>By,\u0275\u0275getInheritedFactory:()=>eo,\u0275\u0275hostProperty:()=>rv,\u0275\u0275i18n:()=>Yb,\u0275\u0275i18nApply:()=>Qb,\u0275\u0275i18nAttributes:()=>qb,\u0275\u0275i18nEnd:()=>uv,\u0275\u0275i18nExp:()=>cv,\u0275\u0275i18nPostprocess:()=>Jb,\u0275\u0275i18nStart:()=>lv,\u0275\u0275inject:()=>ks,\u0275\u0275injectAttribute:()=>wo,\u0275\u0275invalidFactory:()=>Ly,\u0275\u0275invalidFactoryDep:()=>wa,\u0275\u0275listener:()=>Sm,\u0275\u0275loadQuery:()=>W_,\u0275\u0275namespaceHTML:()=>Xn,\u0275\u0275namespaceMathML:()=>kn,\u0275\u0275namespaceSVG:()=>en,\u0275\u0275nextContext:()=>Hy,\u0275\u0275ngDeclareClassMetadata:()=>mC,\u0275\u0275ngDeclareComponent:()=>vC,\u0275\u0275ngDeclareDirective:()=>gC,\u0275\u0275ngDeclareFactory:()=>yC,\u0275\u0275ngDeclareInjectable:()=>_C,\u0275\u0275ngDeclareInjector:()=>EC,\u0275\u0275ngDeclareNgModule:()=>wC,\u0275\u0275ngDeclarePipe:()=>AC,\u0275\u0275pipe:()=>R_,\u0275\u0275pipeBind1:()=>x_,\u0275\u0275pipeBind2:()=>M_,\u0275\u0275pipeBind3:()=>O_,\u0275\u0275pipeBind4:()=>k_,\u0275\u0275pipeBindV:()=>N_,\u0275\u0275projection:()=>Gy,\u0275\u0275projectionDef:()=>Wy,\u0275\u0275property:()=>bm,\u0275\u0275propertyInterpolate:()=>Im,\u0275\u0275propertyInterpolate1:()=>pg,\u0275\u0275propertyInterpolate2:()=>Dm,\u0275\u0275propertyInterpolate3:()=>Pm,\u0275\u0275propertyInterpolate4:()=>Rm,\u0275\u0275propertyInterpolate5:()=>xm,\u0275\u0275propertyInterpolate6:()=>Mm,\u0275\u0275propertyInterpolate7:()=>Om,\u0275\u0275propertyInterpolate8:()=>km,\u0275\u0275propertyInterpolateV:()=>Nm,\u0275\u0275pureFunction0:()=>g_,\u0275\u0275pureFunction1:()=>m_,\u0275\u0275pureFunction2:()=>v_,\u0275\u0275pureFunction3:()=>y_,\u0275\u0275pureFunction4:()=>b_,\u0275\u0275pureFunction5:()=>__,\u0275\u0275pureFunction6:()=>E_,\u0275\u0275pureFunction7:()=>w_,\u0275\u0275pureFunction8:()=>A_,\u0275\u0275pureFunctionV:()=>S_,\u0275\u0275queryRefresh:()=>V_,\u0275\u0275reference:()=>yr,\u0275\u0275resolveBody:()=>pl,\u0275\u0275resolveDocument:()=>Ul,\u0275\u0275resolveWindow:()=>fl,\u0275\u0275restoreView:()=>Pi,\u0275\u0275sanitizeHtml:()=>zu,\u0275\u0275sanitizeResourceUrl:()=>Ku,\u0275\u0275sanitizeScript:()=>pu,\u0275\u0275sanitizeStyle:()=>fu,\u0275\u0275sanitizeUrl:()=>ul,\u0275\u0275sanitizeUrlOrResourceUrl:()=>xa,\u0275\u0275setComponentScope:()=>Se,\u0275\u0275setNgModuleScope:()=>st,\u0275\u0275styleMap:()=>El,\u0275\u0275styleMapInterpolate1:()=>mb,\u0275\u0275styleMapInterpolate2:()=>vb,\u0275\u0275styleMapInterpolate3:()=>yb,\u0275\u0275styleMapInterpolate4:()=>bb,\u0275\u0275styleMapInterpolate5:()=>_b,\u0275\u0275styleMapInterpolate6:()=>Eb,\u0275\u0275styleMapInterpolate7:()=>wb,\u0275\u0275styleMapInterpolate8:()=>Ab,\u0275\u0275styleMapInterpolateV:()=>Sb,\u0275\u0275styleProp:()=>Fm,\u0275\u0275stylePropInterpolate1:()=>Xm,\u0275\u0275stylePropInterpolate2:()=>Ym,\u0275\u0275stylePropInterpolate3:()=>qm,\u0275\u0275stylePropInterpolate4:()=>Qm,\u0275\u0275stylePropInterpolate5:()=>Jm,\u0275\u0275stylePropInterpolate6:()=>Zm,\u0275\u0275stylePropInterpolate7:()=>ev,\u0275\u0275stylePropInterpolate8:()=>tv,\u0275\u0275stylePropInterpolateV:()=>nv,\u0275\u0275syntheticHostListener:()=>Cm,\u0275\u0275syntheticHostProperty:()=>iv,\u0275\u0275template:()=>zt,\u0275\u0275templateRefExtractor:()=>X_,\u0275\u0275text:()=>ob,\u0275\u0275textInterpolate:()=>jm,\u0275\u0275textInterpolate1:()=>mg,\u0275\u0275textInterpolate2:()=>Um,\u0275\u0275textInterpolate3:()=>Vm,\u0275\u0275textInterpolate4:()=>$m,\u0275\u0275textInterpolate5:()=>Hm,\u0275\u0275textInterpolate6:()=>Wm,\u0275\u0275textInterpolate7:()=>Gm,\u0275\u0275textInterpolate8:()=>zm,\u0275\u0275textInterpolateV:()=>Km,\u0275\u0275trustConstantHtml:()=>cl,\u0275\u0275trustConstantResourceUrl:()=>gu,\u0275\u0275viewQuery:()=>$_});var t=c(8929),_=c(2654),x=c(2916),re=c(6787),te=c(1762);class S{constructor(r,s){this.subjectFactory=r,this.selector=s}call(r,s){const{selector:h}=this,D=this.subjectFactory(),X=h(D).subscribe(r);return X.add(s.subscribe(D)),X}}var W=c(4327);function P(){return new t.xQ}function L(n){for(let r in n)if(n[r]===L)return r;throw Error("Could not find renamed property on target object.")}function E(n,r){for(const s in r)r.hasOwnProperty(s)&&!n.hasOwnProperty(s)&&(n[s]=r[s])}function m(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(m).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const r=n.toString();if(null==r)return""+r;const s=r.indexOf("\n");return-1===s?r:r.substring(0,s)}function v(n,r){return null==n||""===n?null===r?"":r:null==r||""===r?n:n+" "+r}const R=L({__forward_ref__:L});function j(n){return n.__forward_ref__=j,n.toString=function(){return m(this())},n}function M(n){return V(n)?n():n}function V(n){return"function"==typeof n&&n.hasOwnProperty(R)&&n.__forward_ref__===j}
1class T extends Error{constructor(r,s){super(function Z(n,r){return`NG0${Math.abs(n)}${r?": "+r:""}`}(r,s)),this.code=r}}function G(n){return"string"==typeof n?n:null==n?"":String(n)}function $(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():G(n)}function I(n,r){const s=r?` in ${r}`:"";throw new T(-201,`No provider for ${$(n)} found${s}`)}function K(n,r,s,h){throw new Error(`ASSERTION ERROR: ${n}`+(null==h?"":` [Expected=> ${s} ${h} ${r} <=Actual]`))}function Oe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}const Ne=Oe;function Ye(n){return{providers:n.providers||[],imports:n.imports||[]}}function Qe(n){return Ct(n,Jt)||Ct(n,it)}function Ct(n,r){return n.hasOwnProperty(r)?n[r]:null}function Lt(n){return n&&(n.hasOwnProperty(Rt)||n.hasOwnProperty(_t))?n[Rt]:null}const Jt=L({\u0275prov:L}),Rt=L({\u0275inj:L}),it=L({ngInjectableDef:L}),_t=L({ngInjectorDef:L});var ut=(()=>((ut=ut||{})[ut.Default=0]="Default",ut[ut.Host=1]="Host",ut[ut.Self=2]="Self",ut[ut.SkipSelf=4]="SkipSelf",ut[ut.Optional=8]="Optional",ut))();let yt;function ct(n){const r=yt;return yt=n,r}function cn(n,r,s){const h=Qe(n);return h&&"root"==h.providedIn?void 0===h.value?h.value=h.factory():h.value:s&ut.Optional?null:void 0!==r?r:void I(m(n),"Injector")}function at(n){return{toString:n}.toString()}var St=(()=>((St=St||{})[St.OnPush=0]="OnPush",St[St.Default=1]="Default",St))(),sn=(()=>((sn=sn||{})[sn.CheckOnce=0]="CheckOnce",sn[sn.Checked=1]="Checked",sn[sn.CheckAlways=2]="CheckAlways",sn[sn.Detached=3]="Detached",sn[sn.Errored=4]="Errored",sn[sn.Destroyed=5]="Destroyed",sn))();function ze(n){return null==n||n===St.Default}var nt=(()=>{return(n=nt||(nt={}
1))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",nt;var n})();const mt="undefined"!=typeof globalThis&&globalThis,Nt="undefined"!=typeof window&&window,wt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt=mt||"undefined"!=typeof global&&global||Nt||wt,tn={},Cn=[],Sn=L({\u0275cmp:L}),Nn=L({\u0275dir:L}),rr=L({\u0275pipe:L}),Fn=L({\u0275mod:L}),jn=L({\u0275fac:L}),nr=L({__NG_ELEMENT_ID__:L});let Tt=0;function hn(n){return at(()=>{const s={},h={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:s,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===St.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||Cn,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||nt.Emulated,id:"c",styles:n.styles||Cn,_:null,setInput:null,schemas:n.schemas||null,tView:null},D=n.directives,X=n.features,me=n.pipes;return h.id+=Tt++,h.inputs=Ft(n.inputs,s),h.outputs=Ft(n.outputs),X&&X.forEach(Pe=>Pe(h)),h.directiveDefs=D?()=>("function"==typeof D?D():D).map(ae):null,h.pipeDefs=me?()=>("function"==typeof me?me():me).map(we):null,h})}function Se(n,r,s){const h=n.\u0275cmp;h.directiveDefs=()=>r.map(ae),h.pipeDefs=()=>s.map(we)}function ae(n){return wn(n)||$n(n)}function we(n){return Gn(n)}const Ce={};function Ue(n){return at(()=>{const r={type:n.type,bootstrap:n.bootstrap||Cn,declarations:n.declarations||Cn,imports:n.imports||Cn,exports:n.exports||Cn,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Ce[n.id]=n.type),r})}function st(n,r){return at(()=>{const s=ir(n,!0);s.declarations=r.declarations||Cn,s.imports=r.imports||Cn,s.exports=r.exports||Cn})}function Ft(n,r){if(null==n)return tn;const s={};for(const h in n)if(n.hasOwnProperty(h)){let D=n[h],X=D;Array.isArray(D)&&(X=D[1],D=D[0]),s[D]=h,r&&(r[D]=X)}return s}const nn=hn;function vn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function wn(n){return n[Sn]||null}function $n(n){return n[Nn]||null}function Gn(n){return n[rr]||null}function ir(n,r){const s=n[Fn]||null;if(!s&&!0===r)throw new Error(`Type ${m(n)} does not have '\u0275mod' property.`);return s}function or(n){return Array.isArray(n)&&"object"==typeof n[1]}function wr(n){return Array.isArray(n)&&!0===n[1]}function Nr(n){return 0!=(8&n.flags)}function kr(n){return 2==(2&n.flags)}function ei(n){return 1==(1&n.flags)}function oi(n){return null!==n.template}function ui(n){return 0!=(512&n[2])}function hi(n,r){return n.hasOwnProperty(jn)?n[jn]:null}class Mi{constructor(r,s,h){this.previousValue=r,this.currentValue=s,this.firstChange=h}isFirstChange(){return this.firstChange}}function Ti(){return os}function os(n){return n.type.prototype.ngOnChanges&&(n.setInput=tt),Ii}function Ii(){const n=Ut(this),r=null==n?void 0:n.current;if(r){const s=n.previous;if(s===tn)n.previous=r;else for(let h in r)s[h]=r[h];n.current=null,this.ngOnChanges(r)}}function tt(n,r,s,h){const D=Ut(n)||function gn(n,r){return n[Xe]=r}(n,{previous:tn,current:null}),X=D.current||(D.current={}),me=D.previous,Pe=this.declaredInputs[s],Ge=me[Pe];X[Pe]=new Mi(Ge&&Ge.currentValue,r,me===tn),n[h]=r}Ti.ngInherit=!0;const Xe="__ngSimpleChanges__";function Ut(n){return n[Xe]||null}let _n=null;const Mn=n=>{_n=n},qn=function(n,r,s){null!=_n&&_n(n,r,s)},_r="math";let le;function Ae(n){le=n}function be(){return void 0!==le?le:"undefined"!=typeof document?document:void 0}function dt(n){return!!n.listen}const rn={createRenderer:(n,r)=>be()};function xn(n){for(;Array.isArray(n);)n=n[0];return n}function hr(n,r){return xn(r[n])}function pr(n,r){return xn(r[n.index])}function ii(n,r){return n.data[r]}function Or(n,r){return n[r]}function Je(n,r){const s=r[n];return or(s)?s:s[0]}function Ve(n){return 4==(4&n[2])}function Be(n){return 128==(128&n[2])}function Wn(n,r){return null==r?null:n[r]}function Sr(n){n[18]=0}function ue(n,r){n[5]+=r;let s=n,h=n[3];for(;null!==h&&(1===r&&1===s[5]||-1===r&&0===s[5]);)h[5]+=r,s=h,h=h[3]}const et={lFrame:Zs(null),bindingsEnabled:!0,isInCheckNoChangesMo
vendor: 5,000 bytes, line 1
1de:!1};function Cr(){return et.bindingsEnabled}function Vr(){et.bindingsEnabled=!0}function Jr(){et.bindingsEnabled=!1}function Zn(){return et.lFrame.lView}function qr(){return et.lFrame.tView}function Pi(n){return et.lFrame.contextLView=n,n[8]}function mi(){let n=ji();for(;null!==n&&64===n.type;)n=n.parent;return n}function ji(){return et.lFrame.currentTNode}function Ki(){const n=et.lFrame,r=n.currentTNode;return n.isParent?r:r.parent}function Ui(n,r){const s=et.lFrame;s.currentTNode=n,s.isParent=r}function ps(){return et.lFrame.isParent}function qi(){et.lFrame.isParent=!1}function gs(){return et.isInCheckNoChangesMode}function Ms(n){et.isInCheckNoChangesMode=n}function as(){const n=et.lFrame;let r=n.bindingRootIndex;return-1===r&&(r=n.bindingRootIndex=n.tView.bindingStartIndex),r}function Ws(){return et.lFrame.bindingIndex}function Ro(n){return et.lFrame.bindingIndex=n}function Qs(){return et.lFrame.bindingIndex++}function Gs(n){const r=et.lFrame,s=r.bindingIndex;return r.bindingIndex=r.bindingIndex+n,s}function Xs(n){et.lFrame.inI18n=n}function Js(n,r){const s=et.lFrame;s.bindingIndex=s.bindingRootIndex=n,ao(r)}function ao(n){et.lFrame.currentDirectiveIndex=n}function Os(n){const r=et.lFrame.currentDirectiveIndex;return-1===r?null:n[r]}function mo(){return et.lFrame.currentQueryIndex}function Di(n){et.lFrame.currentQueryIndex=n}function xo(n){const r=n[1];return 2===r.type?r.declTNode:1===r.type?n[6]:null}function Ir(n,r,s){if(s&ut.SkipSelf){let D=r,X=n;for(;!(D=D.parent,null!==D||s&ut.Host||(D=xo(X),null===D||(X=X[15],10&D.type))););if(null===D)return!1;r=D,n=X}const h=et.lFrame=Mo();return h.currentTNode=r,h.lView=n,!0}function ki(n){const r=Mo(),s=n[1];et.lFrame=r,r.currentTNode=s.firstChild,r.lView=n,r.tView=s,r.contextLView=n,r.bindingIndex=s.bindingStartIndex,r.inI18n=!1}function Mo(){const n=et.lFrame,r=null===n?null:n.child;return null===r?Zs(n):r}function Zs(n){const r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=r),r}function Us(){const n=et.lFrame;return et.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ns=Us;function lo(){const n=Us();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Y(){return et.lFrame.selectedIndex}function Le(n){et.lFrame.selectedIndex=n}function lt(){const n=et.lFrame;return ii(n.tView,n.selectedIndex)}function en(){et.lFrame.currentNamespace="svg"}function kn(){et.lFrame.currentNamespace=_r}function Xn(){!function Hr(){et.lFrame.currentNamespace=null}()}function ms(n,r){for(let s=r.directiveStart,h=r.directiveEnd;s<h;s++){const X=n.data[s].type.prototype,{ngAfterContentInit:me,ngAfterContentChecked:Pe,ngAfterViewInit:Ge,ngAfterViewChecked:Et,ngOnDestroy:Bt}=X;me&&(n.contentHooks||(n.contentHooks=[])).push(-s,me),Pe&&((n.contentHooks||(n.contentHooks=[])).push(s,Pe),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(s,Pe)),Ge&&(n.viewHooks||(n.viewHooks=[])).push(-s,Ge),Et&&((n.viewHooks||(n.viewHooks=[])).push(s,Et),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(s,Et)),null!=Bt&&(n.destroyHooks||(n.destroyHooks=[])).push(s,Bt)}}function Fi(n,r,s){Vs(n,r,3,s)}function vs(n,r,s,h){(3&n[2])===s&&Vs(n,r,s,h)}function Ys(n,r){let s=n[2];(3&s)===r&&(s&=2047,s+=1,n[2]=s)}function Vs(n,r,s,h){const X=null!=h?h:-1,me=r.length-1;let Pe=0;for(let Ge=void 0!==h?65535&n[18]:0;Ge<me;Ge++)if("number"==typeof r[Ge+1]){if(Pe=r[Ge],null!=h&&Pe>=h)break}else r[Ge]<0&&(n[18]+=65536),(Pe<X||-1==X)&&(Vi(n,s,r,Ge),n[18]=(4294901760&n[18])+Ge+2),Ge++}function Vi(n,r,s,h){const D=s[h]<0,X=s[h+1],Pe=n[D?-s[h]:s[h]];if(D){if(n[2]>>11<n[18]>>16&&(3&n[2])===r){n[2]+=2048,qn(4,Pe,X);try{X.call(Pe)}finally{qn(5,Pe,X)}}}else{qn(4,Pe,X);try{X.call(Pe)}finally{qn(5,Pe,X)}}}class co{constructor(r,s,h){this.factory=r,this.resolving=!1,this.canSeeViewProviders=s,this.injectImpl=h}}function Ke(n,r,s){const h=dt(n);let D=0;for(;D<s.length;){const X=s[D];if("number"==typeof X){if(0!==X)break;D++;const me=s[D++],Pe=s[D++],Ge=s[D++];h?n.setAttribute(r,Pe,Ge,me):r.setAttributeNS(me,Pe,Ge)}else{const me=X,Pe=s[++D];w(me)?h&&n.setProperty(r,me,Pe):h?n.setAttribute(r,me,Pe):r.setAttribute(me,Pe),D++}}return D}function xt(n){return 3===n||4===n||6===n}function w(n){return 64===n.charCodeAt(0)}function l(n,r){if(null!==r&&0!==r.length)if(null===n||0===n.length)n=r.slice();else{let s=-1;for(let h=0;h<r.length;h++){const D=r[h];"number"==typeof D?s=D:0===s||g(n,s,D,null,-1===s||2===s?r[++h]:null)}}return n}function g(n,r,s,h,D){let X=0,me=n.length;if(-1===r)me=-1;else for(;X<n.length;){const Pe=n[X++];if("number"==typeof Pe){if(Pe===r){me=-1;break}if(Pe>r){me=X-1;break}}}for(;X<n.length;){const Pe=n[X];if("number"==typeof Pe)break;
1if(Pe===s){if(null===h)return void(null!==D&&(n[X+1]=D));if(h===n[X+1])return void(n[X+2]=D)}X++,null!==h&&X++,null!==D&&X++}-1!==me&&(n.splice(me,0,r),X=me+1),n.splice(X++,0,s),null!==h&&n.splice(X++,0,h),null!==D&&n.splice(X++,0,D)}function B(n){return-1!==n}function fe(n){return 32767&n}function rt(n,r){let s=function De(n){return n>>16}(n),h=r;for(;s>0;)h=h[15],s--;return h}let Pt=!0;function qt(n){const r=Pt;return Pt=n,r}let tr=0;function Pr(n,r){const s=Te(n,r);if(-1!==s)return s;const h=r[1];h.firstCreatePass&&(n.injectorIndex=r.length,Ie(h.data,n),Ie(r,null),Ie(h.blueprint,null));const D=_e(n,r),X=n.injectorIndex;if(B(D)){const me=fe(D),Pe=rt(D,r),Ge=Pe[1].data;for(let Et=0;Et<8;Et++)r[X+Et]=Pe[me+Et]|Ge[me+Et]}return r[X+8]=D,X}function Ie(n,r){n.push(0,0,0,0,0,0,0,0,r)}function Te(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function _e(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let s=0,h=null,D=r;for(;null!==D;){const X=D[1],me=X.type;if(h=2===me?X.declTNode:1===me?D[6]:null,null===h)return-1;if(s++,D=D[15],-1!==h.injectorIndex)return h.injectorIndex|s<<16}return-1}function qe(n,r,s){!function mr(n,r,s){let h;"string"==typeof s?h=s.charCodeAt(0)||0:s.hasOwnProperty(nr)&&(h=s[nr]),null==h&&(h=s[nr]=tr++);const D=255&h;r.data[n+(D>>5)]|=1<<D}(n,r,s)}function Vt(n,r,s){if(s&ut.Optional)return n;I(r,"NodeInjector")}function Zt(n,r,s,h){if(s&ut.Optional&&void 0===h&&(h=null),0==(s&(ut.Self|ut.Host))){const D=n[9],X=ct(void 0);try{return D?D.get(r,h,s&ut.Optional):cn(r,h,s&ut.Optional)}finally{ct(X)}}return Vt(h,r,s)}function In(n,r,s,h=ut.Default,D){if(null!==n){const X=function Fr(n){if("string"==typeof n)return n.charCodeAt(0)||0;const r=n.hasOwnProperty(nr)?n[nr]:void 0;return"number"==typeof r?r>=0?255&r:Gr:r}(s);if("function"==typeof X){if(!Ir(r,n,h))return h&ut.Host?Vt(D,s,h):Zt(r,s,h,D);try{const me=X(h);if(null!=me||h&ut.Optional)return me;I(s)}finally{Ns()}}else if("number"==typeof X){let me=null,Pe=Te(n,r),Ge=-1,Et=h&ut.Host?r[16][6]:null;for((-1===Pe||h&ut.SkipSelf)&&(Ge=-1===Pe?_e(n,r):r[Pe+8],-1!==Ge&&fi(h,!1)?(me=r[1],Pe=fe(Ge),r=rt(Ge,r)):Pe=-1);-1!==Pe;){const Bt=r[1];if(ti(X,Pe,Bt.data)){const yn=Ri(Pe,r,s,me,h,Et);if(yn!==ar)return yn}Ge=r[Pe+8],-1!==Ge&&fi(h,r[1].data[Pe+8]===Et)&&ti(X,Pe,r)?(me=Bt,Pe=fe(Ge),r=rt(Ge,r)):Pe=-1}}}return Zt(r,s,h,D)}const ar={};function Gr(){return new ts(mi(),Zn())}function Ri(n,r,s,h,D,X){const me=r[1],Pe=me.data[n+8],Bt=ri(Pe,me,s,null==h?kr(Pe)&&Pt:h!=me&&0!=(3&Pe.type),D&ut.Host&&X===Pe);return null!==Bt?xr(r,me,Bt,Pe):ar}function ri(n,r,s,h,D){const X=n.providerIndexes,me=r.data,Pe=1048575&X,Ge=n.directiveStart,Bt=X>>20,Ln=D?Pe+Bt:n.directiveEnd;for(let Qn=h?Pe:Pe+Bt;Qn<Ln;Qn++){const br=me[Qn];if(Qn<Ge&&s===br||Qn>=Ge&&br.type===s)return Qn}if(D){const Qn=me[Ge];if(Qn&&oi(Qn)&&Qn.type===s)return Ge}return null}function xr(n,r,s,h){let D=n[s];const X=r.data;if(function Ba(n){return n instanceof co}(D)){const me=D;me.resolving&&function se(n,r){const s=r?`. Dependency path: ${r.join(" > ")} > ${n}`:"";throw new T(-200,`Circular dependency in DI detected for ${n}${s}`)}($(X[s]));const Pe=qt(me.canSeeViewProviders);me.resolving=!0;const Ge=me.injectImpl?ct(me.injectImpl):null;Ir(n,h,ut.Default);try{D=n[s]=me.factory(void 0,X,n,h),r.firstCreatePass&&s>=h.directiveStart&&function vi(n,r,s){const{ngOnChanges:h,ngOnInit:D,ngDoCheck:X}=r.type.prototype;if(h){const me=os(r);(s.preOrderHooks||(s.preOrderHooks=[])).push(n,me),(s.preOrderCheckHooks||(s.preOrderCheckHooks=[])).push(n,me)}D&&(s.preOrderHooks||(s.preOrderHooks=[])).push(0-n,D),X&&((s.preOrderHooks||(s.preOrderHooks=[])).push(n,X),(s.preOrderCheckHooks||(s.preOrderCheckHooks=[])).push(n,X))}(s,X[s],r)}finally{null!==Ge&&ct(Ge),qt(Pe),me.resolving=!1,Ns()}}return D}function ti(n,r,s){return!!(s[r+(n>>5)]&1<<n)}function fi(n,r){return!(n&ut.Self||n&ut.Host&&r)}class ts{constructor(r,s){this._tNode=r,this._lView=s}get(r,s,h){return In(this._tNode,this._lView,r,h,s)}}function eo(n){return at(()=>{const r=n.prototype.constructor,s=r[jn]||_s(r),h=Object.prototype;let D=Object.getPrototypeOf(n.prototype).constructor;for(;D&&D!==h;){const X=D[jn]||_s(D);if(X&&X!==s)return X;D=Object.getPrototypeOf(D)}return X=>new X})}function _s(n){return V(n)?()=>{const r=_s(M(n));return r&&r()}:hi(n)}function wo(n){return function pt(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const s=n.attrs;if(s){const h=s.length;let D=0;for(;D<h;){const X=s[D];if(xt(X))break;if(0===X)D+=2;else if("number"==typeof X)for(D++;D<h&&"string"==typeof s[D];)D++;else{if(X===r)return s[D+1];D+=2}}}return null}(mi(),n)}const Ni="__annotations__",Ao="__parameters__",So="__prop__metadata__";function Fs(n,r,s,h,D){return at(()=>{const X=Uo(r);function me(...Pe){if(this instanceof me)return X.call(this,...Pe),this;const Ge=new me(...Pe);return function(Bt){return D&&D(Bt,...Pe),(Bt.hasOwnProperty(Ni)?Bt[Ni]:Object.defineProperty(Bt,Ni,{value:[]})[Ni]).push(Ge),h&&h(Bt),Bt}}return s&&(me.prototype=Object.create(s.prototype)),me.prototype.ngMetadataName=n,me.annotationCls=me,me})}function Uo(n){return function(...s){if(n){const h=n(...s);for(const D in h)this[D]=h[D]}}}function Co(n,r,s){return at(()=>{const h=Uo(r);function D(...X){if(this instanceof D)return h.apply(this,X),this;const me=new D(...X);return Pe.annotation=me,Pe;function Pe(Ge,Et,Bt){const yn=Ge.hasOwnProperty(Ao)?Ge[Ao]:Object.defineProperty(Ge,Ao,{value:[]})[Ao];for(;yn.length<=Bt;)yn.push(null);return(yn[Bt]=yn[Bt]||[]).push(me),Ge}}return s&&(D.prototype=Object.create(s.prototype)),D.prototype.ngMetadataName=n,D.annotationCls=D,D})}function vo(n,r,s,h){return at(()=>{const D=Uo(r);function X(...me){if(this instanceof X)return D.apply(this,me),this;const Pe=new X(...me);return function Ge(Et,Bt){const yn=Et.constructor,Ln=yn.hasOwnProperty(So)?yn[So]:Object.defineProperty(yn,So,{value:{}})[So];Ln[Bt]=Ln.hasOwnProperty(Bt)&&Ln[Bt]||[],Ln[Bt].unshift(Pe),h&&h(Et,Bt,...me)}}return s&&(X.prototype=Object.create(s.prototype)),X.prototype.ngMetadataName=n,X.annotationCls=X,X})}const qs=Co("Attribute",n=>({attributeName:n,__NG_ELEMENT_ID__:()=>wo(n)}));class ds{constructor(r,s){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof s?this.__NG_ELEMENT_ID__=s:void 0!==s&&(this.\u0275prov=Oe({token:this,providedIn:s.providedIn||"root",factory:s.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ds=new ds("AnalyzeForEntryComponents");class tu{}const yd=vo("ContentChildren",(n,r={})=>Object.assign({selector:n,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},r),tu),Rs=vo("ContentChild",(n,r={})=>Object.assign({selector:n,first:!0,isViewQuery:!1,descendants:!0},r),tu),ea=vo("ViewChildren",(n,r={})=>Object.assign({selector:n,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},r),tu),To=vo("ViewChild",(n,r)=>Object.assign({selector:n,first:!0,isViewQuery:!0,descendants:!0},r),tu);var Wi=(()=>((Wi=Wi||{}
1)[Wi.Directive=0]="Directive",Wi[Wi.Component=1]="Component",Wi[Wi.Injectable=2]="Injectable",Wi[Wi.Pipe=3]="Pipe",Wi[Wi.NgModule=4]="NgModule",Wi))();function As(n){const r=Kt.ng;if(r&&r.\u0275compilerFacade)return r.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const nu=Function;function Vo(n){return"function"==typeof n}function Oo(n,r){void 0===r&&(r=n);for(let s=0;s<n.length;s++){let h=n[s];Array.isArray(h)?(r===n&&(r=n.slice(0,s)),Oo(h,r)):r!==n&&r.push(h)}return r}function ko(n,r){n.forEach(s=>Array.isArray(s)?ko(s,r):r(s))}function Ru(n,r,s){r>=n.length?n.push(s):n.splice(r,0,s)}function da(n,r){return r>=n.length-1?n.pop():n.splice(r,1)[0]}function Dl(n,r){const s=[];for(let h=0;h<n;h++)s.push(r);return s}function fo(n,r,s){let h=ja(n,r);return h>=0?n[1|h]=s:(h=~h,function Mu(n,r,s,h){let D=n.length;if(D==r)n.push(s,h);else if(1===D)n.push(h,n[0]),n[0]=s;else{for(D--,n.push(n[D-1],n[D]);D>r;)n[D]=n[D-2],D--;n[r]=s,n[r+1]=h}}(n,h,r,s)),h}function Pl(n,r){const s=ja(n,r);if(s>=0)return n[1|s]}function ja(n,r){return function iu(n,r,s){let h=0,D=n.length>>s;for(;D!==h;){const X=h+(D-h>>1),me=n[X<<s];if(r===me)return X<<s;me>r?D=X:h=X+1}return~(D<<s)}(n,r,1)}const su=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,dh=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,fh=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,el=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Va{constructor(r){this._reflect=r||Kt.Reflect}isReflectionEnabled(){return!0}factory(r){return(...s)=>new r(...s)}_zipTypesAndAnnotations(r,s){let h;h=Dl(void 0===r?s.length:r.length);for(let D=0;D<h.length;D++)h[D]=void 0===r?[]:r[D]&&r[D]!=Object?[r[D]]:[],s&&null!=s[D]&&(h[D]=h[D].concat(s[D]));return h}_ownParameters(r,s){if(function Ua(n){return su.test(n)||el.test(n)||dh.test(n)&&!fh.test(n)}(r.toString()))return null;if(r.parameters&&r.parameters!==s.parameters)return r.parameters;const D=r.ctorParameters;if(D&&D!==s.ctorParameters){const Pe="function"==typeof D?D():D,Ge=Pe.map(Bt=>Bt&&Bt.type),Et=Pe.map(Bt=>Bt&&ou(Bt.decorators));return this._zipTypesAndAnnotations(Ge,Et)}const X=r.hasOwnProperty(Ao)&&r[Ao],me=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",r);return me||X?this._zipTypesAndAnnotations(me,X):Dl(r.length)}parameters(r){if(!Vo(r))return[];const s=Rl(r);let h=this._ownParameters(r,s);return!h&&s!==Object&&(h=this.parameters(s)),h||[]}_ownAnnotations(r,s){if(r.annotations&&r.annotations!==s.annotations){let h=r.annotations;return"function"==typeof h&&h.annotations&&(h=h.annotations),h}return r.decorators&&r.decorators!==s.decorators?ou(r.decorators):r.hasOwnProperty(Ni)?r[Ni]:null}annotations(r){if(!Vo(r))return[];const s=Rl(r),h=this._ownAnnotations(r,s)||[];return(s!==Object?this.annotations(s):[]).concat(h)}_ownPropMetadata(r,s){if(r.propMetadata&&r.propMetadata!==s.propMetadata){let h=r.propMetadata;return"function"==typeof h&&h.propMetadata&&(h=h.propMetadata),h}if(r.propDecorators&&r.propDecorators!==s.propDecorators){const h=r.propDecorators,D={};return Object.keys(h).forEach(X=>{D[X]=ou(h[X])}),D}return r.hasOwnProperty(So)?r[So]:null}propMetadata(r){if(!Vo(r))return{};const s=Rl(r),h={};if(s!==Object){const X=this.propMetadata(s);Object.keys(X).forEach(me=>{h[me]=X[me]})}const D=this._ownPropMetadata(r,s);return D&&Object.keys(D).forEach(X=>{const me=[];h.hasOwnProperty(X)&&me.push(...h[X]),me.push(...D[X]),h[X]=me}),h}ownPropMetadata(r){return Vo(r)&&this._ownPropMetadata(r,Rl(r))||{}}hasLifecycleHook(r,s){return r instanceof nu&&s in r.prototype}guards(r){return{}}getter(r){return new Function("o","return o."+r+";")}setter(r){return new Function("o","v","return o."+r+" = v;")}method(r){return new Function("o","args",`if (!o.${r}) throw new Error('"${r}" is undefined');\n        return o.${r}.apply(o, args);`)}importUri(r){return"object"==typeof r&&r.filePath?r.filePath:`./${m(r)}`}resourceUri(r){return`./${m(r)}`}resolveIdentifier(r,s,h,D){return D}resolveEnum(r,s){return r[s]}}function ou(n){return n?n.map(r=>new(0,r.type.annotationCls)(...r.args?r.args:[])):[]}function Rl(n){const r=n.prototype?Object.getPrototypeOf(n.prototype):null;return(r?r.constructor:null)||Object}const yo={},No="__NG_DI_FLAG__",Ls="ngTempTokenPath",bc=/\n/gm,_c="__source",Ou=L({provide:String,useValue:L});let pa;function xl(n){const r=pa;return pa=n,r}function Ml(n,r=ut.Default){if(void 0===pa)throw new T(203,"");return null===pa?cn(n,void 0,r):pa.get(n,r&ut.Optional?null:void 0,r)}function ks(n,r=ut.Default){return(function ht(){return yt}()||Ml)(M(n),r)}function wa(n){throw new Error("invalid")}const ku=ks;function tl(n){const r=[];for(let s=0;s<n.length;s++){const h=M(n[s]);if(Array.isArray(h)){if(0===h.length)throw new T(900,"");let D,X=ut.Default;for(let me=0;me<h.length;me++){const Pe=h[me],Ge=Nu(Pe);"number"==typeof Ge?-1===Ge?D=Pe.token:X|=Ge:D=Pe}r.push(ks(D,X))}else r.push(ks(h))}return r}function no(n,r){return n[No]=r,n.prototype[No]=r,n}function Nu(n){return n[No]}const nl=no(Co("Inject",n=>({token:n})),-1),ro=no(Co("Optional"),8),Ko=no(Co("Self"),2),Aa=no(Co("SkipSelf"),4),Io=no(Co("Host"),1);let Lu=null;function Sa(){return Lu=Lu||new Va}function au(n){return rl(Sa().parameters(n))}function rl(n){return n.map(r=>function lu(n){const r={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let s=0;s<n.length;s++){const h=n[s];if(void 0===h)continue;const D=Object.getPrototypeOf(h);if(h instanceof ro||"Optional"===D.ngMetadataName)r.optional=!0;else if(h instanceof Aa||"SkipSelf"===D.ngMetadataName)r.skipSelf=!0;else if(h instanceof Ko||"Self"===D.ngMetadataName)r.self=!0;else if(h instanceof Io||"Host"===D.ngMetadataName)r.host=!0;else if(h instanceof nl)r.token=h.token;
1else if(h instanceof qs){if(void 0===h.attributeName)throw new Error("Attribute name must be defined.");r.attribute=h.attributeName}else r.token=h}else r.token=void 0===n||Array.isArray(n)&&0===n.length?null:n;return r}(r))}function ga(n){const r=[],s=new Map;function h(D){let X=s.get(D);if(!X){const me=n(D);s.set(D,X=me.then(il))}return X}return na.forEach((D,X)=>{const me=[];D.templateUrl&&me.push(h(D.templateUrl).then(yn=>{D.template=yn}));const Pe=D.styleUrls,Ge=D.styles||(D.styles=[]),Et=D.styles.length;Pe&&Pe.forEach((yn,Ln)=>{Ge.push(""),me.push(h(yn).then(Qn=>{Ge[Et+Ln]=Qn,Pe.splice(Pe.indexOf(yn),1),0==Pe.length&&(D.styleUrls=void 0)}))});const Bt=Promise.all(me).then(()=>function ma(n){po.delete(n)}(X));r.push(Bt)}),vh(),Promise.all(r).then(()=>{})}let na=new Map;const po=new Set;function Ca(n){return!!(n.templateUrl&&!n.hasOwnProperty("template")||n.styleUrls&&n.styleUrls.length)}function vh(){const n=na;return na=new Map,n}function il(n){return"string"==typeof n?n:n.text()}let sl,Ol;function Fo(){if(void 0===sl&&(sl=null,Kt.trustedTypes))try{sl=Kt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return sl}function $a(n){var r;return(null===(r=Fo())||void 0===r?void 0:r.createHTML(n))||n}function Ta(){if(void 0===Ol&&(Ol=null,Kt.trustedTypes))try{Ol=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ol}function uu(n){var r;return(null===(r=Ta())||void 0===r?void 0:r.createHTML(n))||n}function ol(n){var r;return(null===(r=Ta())||void 0===r?void 0:r.createScript(n))||n}function ju(n){var r;return(null===(r=Ta())||void 0===r?void 0:r.createScriptURL(n))||n}class Ia{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Uu extends Ia{getTypeName(){return"HTML"}}class yh extends Ia{getTypeName(){return"Style"}}class kl extends Ia{getTypeName(){return"Script"}}class Vu extends Ia{getTypeName(){return"URL"}}class Ha extends Ia{getTypeName(){return"ResourceURL"}}function Xo(n){return n instanceof Ia?n.changingThisBreaksApplicationSecurity:n}function Wa(n,r){const s=$u(n);if(null!=s&&s!==r){if("ResourceURL"===s&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${s} (see https://g.co/ng/security#xss)`)}return s===r}function $u(n){return n instanceof Ia&&n.getTypeName()||null}function al(n){return new Uu(n)}function Ga(n){return new yh(n)}function Ac(n){return new kl(n)}function wd(n){return new Vu(n)}function Ad(n){return new Ha(n)}function Sc(n){const r=new cu(n);return function Hu(){try{return!!(new window.DOMParser).parseFromString($a(""),"text/html")}catch(n){return!1}}()?new Cc(r):r}class Cc{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r="<body><remove></remove>"+r;try{const s=(new window.DOMParser).parseFromString($a(r),"text/html").body;return null===s?this.inertDocumentHelper.getInertBodyElement(r):(s.removeChild(s.firstChild),s)}catch(s){return null}}}class cu{constructor(r){if(this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const s=this.inertDocument.createElement("html");this.inertDocument.appendChild(s);const h=this.inertDocument.createElement("body");s.appendChild(h)}}getInertBodyElement(r){const s=this.inertDocument.createElement("template");if("content"in s)return s.innerHTML=$a(r),s;const h=this.inertDocument.createElement("body");return h.innerHTML=$a(r),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(h),h}stripCustomNsAttrs(r){const s=r.attributes;for(let D=s.length-1;0<D;D--){const me=s.item(D).name;("xmlns:ns1"===me||0===me.indexOf("ns1:"))&&r.removeAttribute(me)}let h=r.firstChild;for(;h;)h.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(h),h=h.nextSibling}}const Yo=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Ic=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Da(n){return(n=String(n)).match(Yo)||n.match(Ic)?n:"unsafe:"+n}function hu(n){return(n=String(n)).split(",").map(r=>Da(r.trim())).join(", ")}function Lo(n){const r={};for(const s of n.split(","))r[s]=!0;return r}function Pa(...n){const r={};for(const s of n)for(const h in s)s.hasOwnProperty(h)&&(r[h]=!0);return r}const Nl=Lo("area,br,col,hr,img,wbr"),Dc=Lo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bh=Lo("rp,rt"),Pc=Pa(Nl,Pa(Dc,Lo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Pa(bh,Lo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pa(bh,Dc)),Wu=Lo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gu=Lo("srcset"),du=Pa(Wu,Gu,Lo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Lo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Fl=Lo("script,style,template");class ll{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(r){let s=r.firstChild,h=!0;for(;s;)if(s.nodeType===Node.ELEMENT_NODE?h=this.startElement(s):s.nodeType===Node.TEXT_NODE?this.chars(s.nodeValue):this.sanitizedSomething=!0,h&&s.firstChild)s=s.firstChild;else for(;s;){s.nodeType===Node.ELEMENT_NODE&&this.endElement(s);let D=this.checkClobberedElement(s,s.nextSibling);if(D){s=D;break}s=this.checkClobberedElement(s,s.parentNode)}return this.buf.join("")}startElement(r){const s=r.nodeName.toLowerCase();if(!Pc.hasOwnProperty(s))return this.sanitizedSomething=!0,!Fl.hasOwnProperty(s);this.buf.push("<"),this.buf.push(s);const h=r.attributes;for(let D=0;D<h.length;D++){const X=h.item(D),me=X.name,Pe=me.toLowerCase();if(!du.hasOwnProperty(Pe)){this.sanitizedSomething=!0;continue}let Ge=X.value;Wu[Pe]&&(Ge=Da(Ge)),Gu[Pe]&&(Ge=hu(Ge)),this.buf.push(" ",me,'="',ia(Ge),'"')}return this.buf.push(">"),!0}endElement(r){const s=r.nodeName.toLowerCase();Pc.hasOwnProperty(s)&&!Nl.hasOwnProperty(s)&&(this.buf.push("</"),this.buf.push(s),this.buf.push(">"))}chars(r){this.buf.push(ia(r))}checkClobberedElement(r,s){if(s&&(r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`);return s}}const Sd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qo=/([^\#-~ |!])/g;function ia(n){return n.replace(/&/g,"&amp;").replace(Sd,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(qo,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let va;function sa(n,r){let s=null;try{va=va||Sc(n);let h=r?String(r):"";s=va.getInertBodyElement(h);let D=5,X=h;do{if(0===D)throw new Error("Failed to sanitize html because the input is unstable");D--,h=X,X=s.innerHTML,s=va.getInertBodyElement(h)}while(h!==X);return $a((new ll).sanitizeChildren(xc(s)||s))}finally{if(s){const h=xc(s)||s;for(;h.firstChild;)h.removeChild(h.firstChild)}}}function xc(n){return"content"in n&&function Ra(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ss=(()=>((Ss=Ss||{})[Ss.NONE=0]="NONE",Ss[Ss.HTML=1]="HTML",Ss[Ss.STYLE=2]="STYLE",Ss[Ss.SCRIPT=3]="SCRIPT",Ss[Ss.URL=4]="URL",Ss[Ss.RESOURCE_URL=5]="RESOURCE_URL",Ss))();function zu(n){const r=za();return r?uu(r.sanitize(Ss.HTML,n)||""):Wa(n,"HTML")?uu(Xo(n)):sa(be(),G(n))}function fu(n){const r=za();return r?r.sanitize(Ss.STYLE,n)||"":Wa(n,"Style")?Xo(n):G(n)}function ul(n){const r=za();return r?r.sanitize(Ss.URL,n)||"":Wa(n,"URL")?Xo(n):Da(G(n))}function Ku(n){const r=za();if(r)return ju(r.sanitize(Ss.RESOURCE_URL,n)||"");if(Wa(n,"ResourceURL"))return ju(Xo(n));throw new T(904,"")}function pu(n){const r=za();if(r)return ol(r.sanitize(Ss.SCRIPT,n)||"");if(Wa(n,"Script"))return ol(Xo(n));throw new T(905,"")}function cl(n){return $a(n[0])}function gu(n){return function wc(n){var r;return(null===(r=Fo())||void 0===r?void 0:r.createScriptURL(n))||n}(n[0])}function xa(n,r,s){return function Cd(n,r){return"src"===r&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===r&&("base"===n||"link"===n)?Ku:ul}(r,s)(n)}function za(){const n=Zn();return n&&n[12]}function zs(n){let r=Bl(n);if(r){if(Array.isArray(r)){const s=r;let h,D,X;if(function Eh(n){return n&&n.constructor&&n.constructor.\u0275cmp}(n)){if(h=mu(s,n),-1==h)throw new Error("The provided component was not found in the application");D=n}else if(function Mc(n){return n&&n.constructor&&n.constructor.\u0275dir}(n)){if(h=function Xu(n,r){let s=n[1].firstChild;for(;s;){const D=s.directiveEnd;for(let X=s.directiveStart;X<D;X++)if(n[X]===r)return s.index;s=hl(s)}return-1}(s,n),-1==h)throw new Error("The provided directive was not found in the application");X=Oc(h,s,!1)}else if(h=Oa(s,n),-1==h)return null;const me=xn(s[h]),Pe=Bl(me),Ge=Pe&&!Array.isArray(Pe)?Pe:$o(s,h,me);
1if(D&&void 0===Ge.component&&(Ge.component=D,io(Ge.component,Ge)),X&&void 0===Ge.directives){Ge.directives=X;for(let Et=0;Et<X.length;Et++)io(X[Et],Ge)}io(Ge.native,Ge),r=Ge}}else{const s=n;let h=s;for(;h=h.parentNode;){const D=Bl(h);if(D){let X;if(X=Array.isArray(D)?D:D.lView,!X)return null;const me=Oa(X,s);if(me>=0){const Pe=xn(X[me]),Ge=$o(X,me,Pe);io(Pe,Ge),r=Ge;break}}}}return r||null}function $o(n,r,s){return{lView:n,nodeIndex:r,native:s,component:void 0,directives:void 0,localRefs:void 0}}function Ll(n){let s,r=Bl(n);if(Array.isArray(r)){const h=mu(r,n);s=Je(h,r);const D=$o(r,h,s[0]);D.component=n,io(n,D),io(D.native,D)}else s=Je(r.nodeIndex,r.lView);return s}const Bo="__ngContext__";function io(n,r){n[Bo]=r}function Bl(n){return n[Bo]||null}function Ma(n){const r=Bl(n);return r?Array.isArray(r)?r:r.lView:null}function Oa(n,r){const s=n[1];for(let h=20;h<s.bindingStartIndex;h++)if(xn(n[h])===r)return h;return-1}function hl(n){if(n.child)return n.child;if(n.next)return n.next;for(;n.parent&&!n.parent.next;)n=n.parent;return n.parent&&n.parent.next}function mu(n,r){const s=n[1].components;if(s)for(let h=0;h<s.length;h++){const D=s[h];if(Je(D,n)[8]===r)return D}else if(Je(20,n)[8]===r)return 20;return-1}function Oc(n,r,s){const h=r[1].data[n];let D=h.directiveStart;return 0==D?Cn:(!s&&2&h.flags&&D++,r.slice(D,h.directiveEnd))}const kc="ngOriginalError";function vu(n){return n[kc]}function Nc(n,...r){n.error(...r)}class so{constructor(){this._console=console}handleError(r){const s=this._findOriginalError(r),h=function Ah(n){return n&&n.ngErrorLogger||Nc}(r);h(this._console,"ERROR",r),s&&h(this._console,"ORIGINAL ERROR",s)}_findOriginalError(r){let s=r&&vu(r);for(;s&&vu(s);)s=vu(s);return s||null}}const yu={name:"custom-elements"},ka={name:"no-errors-schema"},Sh=/^>|^->|<!--|-->|--!>|<!-$/g,dl=/(<|>)/;const Ju=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Kt))();function fl(n){return n.ownerDocument.defaultView}function Ul(n){return n.ownerDocument}function pl(n){return n.ownerDocument.body}function oa(n){return n instanceof Function?n():n}var ya=(()=>((ya=ya||{})[ya.Important=1]="Important",ya[ya.DashCase=2]="DashCase",ya))();let Lc;function Zu(n,r){return Lc(n,r)}function o(n){const r=n[3];return wr(r)?r[3]:r}function F(n){return function d(n){let r=or(n)?n:Ma(n);for(;r&&!(512&r[2]);)r=o(r);return r}(n)[8]}function ne(n){return je(n[13])}function Ee(n){return je(n[4])}function je(n){for(;null!==n&&!wr(n);)n=n[4];return n}function Gt(n,r,s,h,D){if(null!=h){let X,me=!1;wr(h)?X=h:or(h)&&(me=!0,h=h[0]);const Pe=xn(h);0===n&&null!==s?null==D?ec(r,s,Pe):Jo(r,s,Pe,D||null,!0):1===n&&null!==s?Jo(r,s,Pe,D||null,!0):2===n?nc(r,Pe,me):3===n&&r.destroyNode(Pe),null!=X&&function dp(n,r,s,h,D){const X=s[7];X!==xn(s)&&Gt(r,n,h,X,D);for(let Pe=10;Pe<s.length;Pe++){const Ge=s[Pe];$c(Ge[1],Ge,n,r,h,X)}}(r,n,X,s,D)}}function pn(n,r){return dt(n)?n.createText(r):n.createTextNode(r)}function Rn(n,r,s){dt(n)?n.setValue(r,s):r.textContent=s}function On(n,r){return n.createComment(function Ch(n){return n.replace(Sh,r=>r.replace(dl,"\u200b$1\u200b"))}(r))}function Kn(n,r,s){if(dt(n))return n.createElement(r,s);{const h=null!==s?function Wr(n){const r=n.toLowerCase();return"svg"===r?"http://www.w3.org/2000/svg":r===_r?"http://www.w3.org/1998/MathML/":null}(s):null;return null===h?n.createElement(r):n.createElementNS(h,r)}}function Bi(n,r){const s=n[9],h=s.indexOf(r),D=r[3];1024&r[2]&&(r[2]&=-1025,ue(D,-1)),s.splice(h,1)}function ls(n,r){if(n.length<=10)return;const s=10+r,h=n[s];if(h){const D=h[17];null!==D&&D!==n&&Bi(D,h),r>0&&(n[s-1][4]=h[4]);const X=da(n,10+r);!function lr(n,r){$c(n,r,r[11],2,null,null),r[0]=null,r[6]=null}(h[1],h);const me=X[19];null!==me&&me.detachView(X[1]),h[3]=null,h[4]=null,h[2]&=-129}return h}function Cs(n,r){if(!(256&r[2])){const s=r[11];dt(s)&&s.destroyNode&&$c(n,r,s,3,null,null),function Qr(n){let r=n[13];if(!r)return Qo(n[1],n);for(;r;){let s=null;if(or(r))s=r[13];else{const h=r[10];h&&(s=h)}if(!s){for(;r&&!r[4]&&r!==n;)or(r)&&Qo(r[1],r),r=r[3];null===r&&(r=n),or(r)&&Qo(r[1],r),s=r&&r[4]}r=s}}(r)}}function Qo(n,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function gl(n,r){let s;if(null!=n&&null!=(s=n.destroyHooks))for(let h=0;h<s.length;h+=2){const D=r[s[h]];if(!(D instanceof co)){const X=s[h+1];if(Array.isArray(X))for(let me=0;me<X.length;me+=2){const Pe=D[X[me]],Ge=X[me+1];qn(4,Pe,Ge);try{Ge.call(Pe)}finally{qn(5,Pe,Ge)}}else{qn(4,D,X);try{X.call(D)}finally{qn(5,D,X)}}}}}(n,r),function Ai(n,r){const s=n.cleanup,h=r[7];let D=-1;if(null!==s)for(let X=0;X<s.length-1;X+=2)if("string"==typeof s[X]){const me=s[X+1],Pe="function"==typeof me?me(r):xn(r[me]),Ge=h[D=s[X+2]],Et=s[X+3];"boolean"==typeof Et?Pe.removeEventListener(s[X],Ge,Et):Et>=0?h[D=Et]():h[D=-Et].unsubscribe(),X+=2}else{const me=h[D=s[X+1]];s[X].call(me)}if(null!==h){for(let X=D+1;X<h.length;X++)h[X]();r[7]=null}}(n,r),1===r[1].type&&dt(r[11])&&r[11].destroy();const s=r[17];if(null!==s&&wr(r[3])){s!==r[3]&&Bi(s,r);const h=r[19];null!==h&&h.detachView(n)}}}function ml(n,r,s){return Vl(n,r.parent,s)}function Vl(n,r,s){let h=r;for(;null!==h&&40&h.type;)h=(r=h).parent;if(null===h)return s[0];if(2&h.flags){const D=n.data[h.directiveStart].encapsulation;if(D===nt.None||D===nt.Emulated)return null}return pr(h,s)}
vendor: 10,196 bytes, line 1
1function Jo(n,r,s,h,D){dt(n)?n.insertBefore(r,s,h,D):r.insertBefore(s,h,D)}function ec(n,r,s){dt(n)?n.appendChild(r,s):r.appendChild(s)}function tc(n,r,s,h,D){null!==h?Jo(n,r,s,h,D):ec(n,r,s)}function jo(n,r){return dt(n)?n.parentNode(r):r.parentNode}function Bc(n,r,s){return xd(n,r,s)}function cp(n,r,s){return 40&n.type?pr(n,s):null}let jc,xd=cp;function Dh(n,r){xd=n,jc=r}function Uc(n,r,s,h){const D=ml(n,h,r),X=r[11],Pe=Bc(h.parent||r[6],h,r);if(null!=D)if(Array.isArray(s))for(let Ge=0;Ge<s.length;Ge++)tc(X,D,s[Ge],Pe,!1);else tc(X,D,s,Pe,!1);void 0!==jc&&jc(X,h,r,s,D)}function Vc(n,r){if(null!==r){const s=r.type;if(3&s)return pr(r,n);if(4&s)return Ph(-1,n[r.index]);if(8&s){const h=r.child;if(null!==h)return Vc(n,h);{const D=n[r.index];return wr(D)?Ph(-1,D):xn(D)}}if(32&s)return Zu(r,n)()||xn(n[r.index]);{const h=Md(n,r);return null!==h?Array.isArray(h)?h[0]:Vc(o(n[16]),h):Vc(n,r.next)}}return null}function Md(n,r){return null!==r?n[16][6].projection[r.projection]:null}function Ph(n,r){const s=10+n+1;if(s<r.length){const h=r[s],D=h[1].firstChild;if(null!==D)return Vc(h,D)}return r[7]}function nc(n,r,s){const h=jo(n,r);h&&function Rd(n,r,s,h){dt(n)?n.removeChild(r,s,h):r.removeChild(s)}(n,h,r,s)}function Od(n,r,s,h,D,X,me){for(;null!=s;){const Pe=h[s.index],Ge=s.type;if(me&&0===r&&(Pe&&io(xn(Pe),h),s.flags|=4),64!=(64&s.flags))if(8&Ge)Od(n,r,s.child,h,D,X,!1),Gt(r,n,D,Pe,X);else if(32&Ge){const Et=Zu(s,h);let Bt;for(;Bt=Et();)Gt(r,n,D,Bt,X);Gt(r,n,D,Pe,X)}else 16&Ge?kd(n,r,h,s,D,X):Gt(r,n,D,Pe,X);s=me?s.projectionNext:s.next}}function $c(n,r,s,h,D,X){Od(s,h,n.firstChild,r,D,X,!1)}function kd(n,r,s,h,D,X){const me=s[16],Ge=me[6].projection[h.projection];if(Array.isArray(Ge))for(let Et=0;Et<Ge.length;Et++)Gt(r,n,D,Ge[Et],X);else Od(n,r,Ge,me[3],D,X,!0)}function Nd(n,r,s){dt(n)?n.setAttribute(r,"style",s):r.style.cssText=s}function Rh(n,r,s){dt(n)?""===s?n.removeAttribute(r,"class"):n.setAttribute(r,"class",s):r.className=s}function Fd(n,r,s){let h=n.length;for(;;){const D=n.indexOf(r,s);if(-1===D)return D;if(0===D||n.charCodeAt(D-1)<=32){const X=r.length;if(D+X===h||n.charCodeAt(D+X)<=32)return D}s=D+1}}const xh="ng-template";function fp(n,r,s){let h=0;for(;h<n.length;){let D=n[h++];if(s&&"class"===D){if(D=n[h],-1!==Fd(D.toLowerCase(),r,0))return!0}else if(1===D){for(;h<n.length&&"string"==typeof(D=n[h++]);)if(D.toLowerCase()===r)return!0;return!1}}return!1}function Mh(n){return 4===n.type&&n.value!==xh}function Wg(n,r,s){return r===(4!==n.type||s?n.value:xh)}function pp(n,r,s){let h=4;const D=n.attrs||[],X=function ic(n){for(let r=0;r<n.length;r++)if(xt(n[r]))return r;return n.length}(D);let me=!1;for(let Pe=0;Pe<r.length;Pe++){const Ge=r[Pe];if("number"!=typeof Ge){if(!me)if(4&h){if(h=2|1&h,""!==Ge&&!Wg(n,Ge,s)||""===Ge&&1===r.length){if(Zo(h))return!1;me=!0}}else{const Et=8&h?Ge:r[++Pe];if(8&h&&null!==n.attrs){if(!fp(n.attrs,Et,s)){if(Zo(h))return!1;me=!0}continue}const yn=Ld(8&h?"class":Ge,D,Mh(n),s);if(-1===yn){if(Zo(h))return!1;me=!0;continue}if(""!==Et){let Ln;Ln=yn>X?"":D[yn+1].toLowerCase();const Qn=8&h?Ln:null;if(Qn&&-1!==Fd(Qn,Et,0)||2&h&&Et!==Ln){if(Zo(h))return!1;me=!0}}}}else{if(!me&&!Zo(h)&&!Zo(Ge))return!1;if(me&&Zo(Ge))continue;me=!1,h=Ge|1&h}}return Zo(h)||me}function Zo(n){return 0==(1&n)}function Ld(n,r,s,h){if(null===r)return-1;let D=0;if(h||!s){let X=!1;for(;D<r.length;){const me=r[D];if(me===n)return D;if(3===me||6===me)X=!0;else{if(1===me||2===me){let Pe=r[++D];for(;"string"==typeof Pe;)Pe=r[++D];continue}if(4===me)break;if(0===me){D+=4;continue}}D+=X?1:2}return-1}return function gp(n,r){let s=n.indexOf(4);if(s>-1)for(s++;s<n.length;){const h=n[s];if("number"==typeof h)return-1;if(h===r)return s;s++}return-1}(r,n)}function rc(n,r,s=!1){for(let h=0;h<r.length;h++)if(pp(n,r[h],s))return!0;return!1}function mp(n,r){e:for(let s=0;s<r.length;s++){const h=r[s];if(n.length===h.length){for(let D=0;D<n.length;D++)if(n[D]!==h[D])continue e;return!0}}return!1}function vp(n,r){return n?":not("+r.trim()+")":r}function yp(n){let r=n[0],s=1,h=2,D="",X=!1;for(;s<n.length;){let me=n[s];if("string"==typeof me)if(2&h){const Pe=n[++s];D+="["+me+(Pe.length>0?'="'+Pe+'"':"")+"]"}else 8&h?D+="."+me:4&h&&(D+=" "+me);else""!==D&&!Zo(me)&&(r+=vp(X,D),D=""),h=me,X=X||!Zo(h);s++}return""!==D&&(r+=vp(X,D)),r}const yi={};function Bd(n){_p(qr(),Zn(),Y()+n,gs())}function _p(n,r,s,h){if(!h)if(3==(3&r[2])){const X=n.preOrderCheckHooks;null!==X&&Fi(r,X,s)}else{const X=n.preOrderHooks;null!==X&&vs(r,X,0,s)}Le(s)}function sc(n,r){return n<<17|r<<2}function ba(n){return n>>17&32767}function Gc(n){return 2|n}function vl(n){return(131068&n)>>2}function jd(n,r){return-131069&n|r<<2}function Ud(n){return 1|n}const ac=(()=>Promise.resolve(null))();function Qd(n,r){const s=n.contentQueries;if(null!==s)for(let h=0;h<s.length;h+=2){const D=s[h],X=s[h+1];if(-1!==X){const me=n.data[X];Di(D),me.contentQueries(2,r[X],X)}}}function lc(n,r,s,h,D,X,me,Pe,Ge,Et){const Bt=r.blueprint.slice();return Bt[0]=D,Bt[2]=140|h,Sr(Bt),Bt[3]=Bt[15]=n,Bt[8]=s,Bt[10]=me||n&&n[10],Bt[11]=Pe||n&&n[11],Bt[12]=Ge||n&&n[12]||null,Bt[9]=Et||n&&n[9]||null,Bt[6]=X,Bt[16]=2==r.type?n[16]:Bt,Bt}function uc(n,r,s,h,D){let X=n.data[r];if(null===X)X=Zd(n,r,s,h,D),function Bs(){return et.lFrame.inI18n}()&&(X.flags|=64);else if(64&X.type){X.type=s,X.value=h,X.attrs=D;const me=Ki();X.injectorIndex=null===me?-1:me.injectorIndex}return Ui(X,!0),X}function Zd(n,r,s,h,D){const X=ji(),me=ps(),Ge=n.data[r]=function Np(n,r,s,h,D,X){return{type:s,index:h,insertBeforeIndex:null,injectorIndex:r?r.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:D,attrs:X,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,me?X:X&&X.parent,s,r,h,D);return null===n.firstChild&&(n.firstChild=Ge),null!==X&&(me?null==X.child&&null!==Ge.parent&&(X.child=Ge):null===X.next&&(X.next=Ge)),Ge}function bu(n,r,s,h){if(0===s)return-1;const D=r.length;for(let X=0;X<s;X++)r.push(h),n.blueprint.push(h),n.data.push(null);return D}function _u(n,r,s){ki(r);try{const h=n.viewQuery;null!==h&&Gh(1,h,s);const D=n.template;null!==D&&Fh(n,r,D,1,s),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Qd(n,r),n.staticViewQueries&&Gh(2,n.viewQuery,s);const X=n.components;null!==X&&function Jd(n,r){for(let s=0;s<r.length;s++)df(n,r[s])}(r,X)}catch(h){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),h}finally{r[2]&=-5,lo()}}function Eu(n,r,s,h){const D=r[2];if(256==(256&D))return;ki(r);const X=gs();try{Sr(r),Ro(n.bindingStartIndex),null!==s&&Fh(n,r,s,2,h);const me=3==(3&D);if(!X)if(me){const Et=n.preOrderCheckHooks;null!==Et&&Fi(r,Et,null)}else{const Et=n.preOrderHooks;null!==Et&&vs(r,Et,0,null),Ys(r,0)}if(function cf(n){for(let r=ne(n);null!==r;r=Ee(r)){if(!r[2])continue;const s=r[9];for(let h=0;h<s.length;h++){const D=s[h],X=D[3];0==(1024&D[2])&&ue(X,1),D[2]|=1024}}}(r),function aa(n){for(let r=ne(n);null!==r;r=Ee(r))for(let s=10;s<r.length;s++){const h=r[s],D=h[1];Be(h)&&Eu(D,h,D.template,h[8])}}(r),null!==n.contentQueries&&Qd(n,r),!X)if(me){const Et=n.contentCheckHooks;null!==Et&&Fi(r,Et)}else{const Et=n.contentHooks;null!==Et&&vs(r,Et,1),Ys(r,1)}!function Rp(n,r){const s=n.hostBindingOpCodes;if(null!==s)try{for(let h=0;h<s.length;h++){const D=s[h];if(D<0)Le(~D);else{const X=D,me=s[++h],Pe=s[++h];Js(me,X),Pe(2,r[X])}}}finally{Le(-1)}}(n,r);const Pe=n.components;null!==Pe&&function xp(n,r){for(let s=0;s<r.length;s++)hf(n,r[s])}(r,Pe);const Ge=n.viewQuery;if(null!==Ge&&Gh(2,Ge,h),!X)if(me){const Et=n.viewCheckHooks;null!==Et&&Fi(r,Et)}else{const Et=n.viewHooks;null!==Et&&vs(r,Et,2),Ys(r,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),X||(r[2]&=-73),1024&r[2]&&(r[2]&=-1025,ue(r[3],-1))}finally{lo()}}function Mp(n,r,s,h){const D=r[10],X=!gs(),me=Ve(r);try{X&&!me&&D.begin&&D.begin(),me&&_u(n,r,h),Eu(n,r,s,h)}finally{X&&!me&&D.end&&D.end()}}function Fh(n,r,s,h,D){const X=Y(),me=2&h;try{Le(-1),me&&r.length>20&&_p(n,r,20,gs()),qn(me?2:0,D),s(h,D)}finally{Le(X),qn(me?3:1,D)}}function ef(n,r,s){if(Nr(r)){const D=r.directiveEnd;for(let X=r.directiveStart;X<D;X++){const me=n.data[X];me.contentQueries&&me.contentQueries(1,s[X],X)}}}function Lh(n,r,s){!Cr()||(function Up(n,r,s,h){const D=s.directiveStart,X=s.directiveEnd;n.firstCreatePass||Pr(s,r),io(h,r);const me=s.initialInputs;for(let Pe=D;Pe<X;Pe++){const Ge=n.data[Pe],Et=oi(Ge);Et&&lf(r,s,Ge);const Bt=xr(r,n,Pe,s);io(Bt,r),null!==me&&cm(0,Pe-D,Bt,Ge,0,me),Et&&(Je(s.index,r)[8]=Bt)}}(n,r,s,pr(s,r)),128==(128&s.flags)&&function hc(n,r,s){const h=s.directiveStart,D=s.directiveEnd,me=s.index,Pe=function js(){return et.lFrame.currentDirectiveIndex}();try{Le(me);for(let Ge=h;Ge<D;Ge++){const Et=n.data[Ge],Bt=r[Ge];ao(Ge),(null!==Et.hostBindings||0!==Et.hostVars||null!==Et.hostAttrs)&&jh(Et,Bt)}}finally{Le(-1),ao(Pe)}}(n,r,s))}function cc(n,r,s=pr){const h=r.localNames;if(null!==h){let D=r.index+1;for(let X=0;X<h.length;X+=2){const me=h[X+1],Pe=-1===me?s(r,n):n[me];n[D++]=Pe}}}function tf(n){const r=n.tView;return null===r||r.incompleteFirstPass?n.tView=wu(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):r}function wu(n,r,s,h,D,X,me,Pe,Ge,Et){const Bt=20+h,yn=Bt+D,Ln=function nm(n,r){const s=[];for(let h=0;h<r;h++)s.push(h<n?null:yi);return s}(Bt,yn),Qn="function"==typeof Et?Et():Et;return Ln[1]={type:n,blueprint:Ln,template:s,queries:null,viewQuery:Pe,declTNode:r,data:Ln.slice().fill(null,Bt),bindingStartIndex:Bt,expandoStartIndex:yn,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof X?X():X,pipeRegistry:"function"==typeof me?me():me,firstChild:null,schemas:Ge,consts:Qn,incompleteFirstPass:!1}
1}function zl(n,r,s){if(dt(n))return n.selectRootElement(r,s===nt.ShadowDom);let h="string"==typeof r?n.querySelector(r):r;return h.textContent="",h}function kp(n,r,s,h){const D=zh(r);null===s?D.push(h):(D.push(s),n.firstCreatePass&&vf(n).push(h,D.length-1))}function Fp(n,r,s){for(let h in n)if(n.hasOwnProperty(h)){const D=n[h];(s=null===s?{}:s).hasOwnProperty(h)?s[h].push(r,D):s[h]=[r,D]}return s}function Ho(n,r,s,h,D,X,me,Pe){const Ge=pr(r,s);let Bt,Et=r.inputs;!Pe&&null!=Et&&(Bt=Et[h])?(Kh(n,s,Bt,h,D),kr(r)&&function im(n,r){const s=Je(r,n);16&s[2]||(s[2]|=64)}(s,r.index)):3&r.type&&(h=function nf(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(h),D=null!=me?me(D,r.value||"",h):D,dt(X)?X.setProperty(Ge,h,D):w(h)||(Ge.setProperty?Ge.setProperty(h,D):Ge[h]=D))}function sf(n,r,s,h){let D=!1;if(Cr()){const X=function lm(n,r,s){const h=n.directiveRegistry;let D=null;if(h)for(let X=0;X<h.length;X++){const me=h[X];
vendor: 1,935 bytes, line 1
1rc(s,me.selectors,!1)&&(D||(D=[]),qe(Pr(s,r),n,me.type),oi(me)?(qc(n,s),D.unshift(me)):D.push(me))}return D}(n,r,s),me=null===h?null:{"":-1};if(null!==X){D=!0,Uh(s,n.data.length,X.length);for(let Bt=0;Bt<X.length;Bt++){const yn=X[Bt];yn.providersResolver&&yn.providersResolver(yn)}let Pe=!1,Ge=!1,Et=bu(n,r,X.length,null);for(let Bt=0;Bt<X.length;Bt++){const yn=X[Bt];s.mergedAttrs=l(s.mergedAttrs,yn.hostAttrs),Vh(n,s,r,Et,yn),um(Et,yn,me),null!==yn.contentQueries&&(s.flags|=8),(null!==yn.hostBindings||null!==yn.hostAttrs||0!==yn.hostVars)&&(s.flags|=128);const Ln=yn.type.prototype;!Pe&&(Ln.ngOnChanges||Ln.ngOnInit||Ln.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(s.index),Pe=!0),!Ge&&(Ln.ngOnChanges||Ln.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(s.index),Ge=!0),Et++}!function Lp(n,r){const h=r.directiveEnd,D=n.data,X=r.attrs,me=[];let Pe=null,Ge=null;for(let Et=r.directiveStart;Et<h;Et++){const Bt=D[Et],yn=Bt.inputs,Ln=null===X||Mh(r)?null:$h(yn,X);me.push(Ln),Pe=Fp(yn,Et,Pe),Ge=Fp(Bt.outputs,Et,Ge)}null!==Pe&&(Pe.hasOwnProperty("class")&&(r.flags|=16),Pe.hasOwnProperty("style")&&(r.flags|=32)),r.initialInputs=me,r.inputs=Pe,r.outputs=Ge}(n,s)}me&&function af(n,r,s){if(r){const h=n.localNames=[];for(let D=0;D<r.length;D+=2){const X=s[r[D+1]];if(null==X)throw new T(-301,!1);h.push(r[D],X)}}}(s,h,me)}return s.mergedAttrs=l(s.mergedAttrs,s.attrs),D}function jp(n,r,s,h,D,X){const me=X.hostBindings;if(me){let Pe=n.hostBindingOpCodes;null===Pe&&(Pe=n.hostBindingOpCodes=[]);const Ge=~r.index;(function of(n){let r=n.length;for(;r>0;){const s=n[--r];if("number"==typeof s&&s<0)return s}return 0})(Pe)!=Ge&&Pe.push(Ge),Pe.push(h,D,me)}}function jh(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function qc(n,r){r.flags|=2,(n.components||(n.components=[])).push(r.index)}function um(n,r,s){if(s){if(r.exportAs)for(let h=0;h<r.exportAs.length;h++)s[r.exportAs[h]]=n;oi(r)&&(s[""]=n)}}
1function Uh(n,r,s){n.flags|=1,n.directiveStart=r,n.directiveEnd=r+s,n.providerIndexes=r}function Vh(n,r,s,h,D){n.data[h]=D;const X=D.factory||(D.factory=hi(D.type)),me=new co(X,oi(D),null);n.blueprint[h]=me,s[h]=me,jp(n,r,0,h,bu(n,s,D.hostVars,yi),D)}function lf(n,r,s){const h=pr(r,n),D=tf(s),X=n[10],me=Hh(n,lc(n,D,null,s.onPush?64:16,h,r,X,X.createRenderer(h,s),null,null));n[r.index]=me}function Na(n,r,s,h,D,X){const me=pr(n,r);uf(r[11],me,X,n.value,s,h,D)}function uf(n,r,s,h,D,X,me){if(null==X)dt(n)?n.removeAttribute(r,D,s):r.removeAttribute(D);else{const Pe=null==me?G(X):me(X,h||"",D);dt(n)?n.setAttribute(r,D,Pe,s):s?r.setAttributeNS(s,D,Pe):r.setAttribute(D,Pe)}}function cm(n,r,s,h,D,X){const me=X[r];if(null!==me){const Pe=h.setInput;for(let Ge=0;Ge<me.length;){const Et=me[Ge++],Bt=me[Ge++],yn=me[Ge++];null!==Pe?h.setInput(s,yn,Et,Bt):s[Bt]=yn}}}function $h(n,r){let s=null,h=0;for(;h<r.length;){const D=r[h];if(0!==D)if(5!==D){if("number"==typeof D)break;n.hasOwnProperty(D)&&(null===s&&(s=[]),s.push(D,n[D],r[h+1])),h+=2}else h+=2;else h+=4}return s}function Vp(n,r,s,h){return new Array(n,!0,!1,r,null,0,h,s,null,null)}function hf(n,r){const s=Je(r,n);if(Be(s)){const h=s[1];80&s[2]?Eu(h,s,h.template,s[8]):s[5]>0&&Au(s)}}function Au(n){for(let h=ne(n);null!==h;h=Ee(h))for(let D=10;D<h.length;D++){const X=h[D];if(1024&X[2]){const me=X[1];Eu(me,X,me.template,X[8])}else X[5]>0&&Au(X)}const s=n[1].components;if(null!==s)for(let h=0;h<s.length;h++){const D=Je(s[h],n);Be(D)&&D[5]>0&&Au(D)}}function df(n,r){const s=Je(r,n),h=s[1];(function ff(n,r){for(let s=r.length;s<n.blueprint.length;s++)r.push(n.blueprint[s])})(h,s),_u(h,s,s[8])}function Hh(n,r){return n[13]?n[14][4]=r:n[13]=r,n[14]=r,r}function Wh(n){for(;n;){n[2]|=64;const r=o(n);if(ui(n)&&!r)return n;n=r}return null}function Qc(n){for(let r=0;r<n.components.length;r++){const s=n.components[r],h=Ma(s),D=h[1];Mp(D,h,D.template,s)}}function gf(n,r,s){const h=r[10];h.begin&&h.begin();try{Eu(n,r,n.template,s)}catch(D){throw Zc(r,D),D}finally{h.end&&h.end()}}function Kl(n){Qc(n[8])}function Gh(n,r,s){Di(0),r(n,s)}const mf=ac;function zh(n){return n[7]||(n[7]=[])}function vf(n){return n.cleanup||(n.cleanup=[])}function bl(n,r,s){return(null===n||oi(n))&&(s=function Er(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(s[r.index])),s[11]}function Zc(n,r){const s=n[9],h=s?s.get(so,null):null;h&&h.handleError(r)}function Kh(n,r,s,h,D){for(let X=0;X<s.length;){const me=s[X++],Pe=s[X++],Ge=r[me],Et=n.data[me];null!==Et.setInput?Et.setInput(Ge,D,h,Pe):Ge[Pe]=D}}function bo(n,r,s){const h=hr(r,n);Rn(n[11],h,s)}function Xh(n,r,s){let h=s?n.styles:null,D=s?n.classes:null,X=0;if(null!==r)for(let me=0;me<r.length;me++){const Pe=r[me];"number"==typeof Pe?X=Pe:1==X?D=v(D,Pe):2==X&&(h=v(h,Pe+": "+r[++me]+";"))}s?n.styles=h:n.stylesWithoutHost=h,s?n.classes=D:n.classesWithoutHost=D}function Wp(n){const r=Ll(n);gf(r[1],r,n)}function eh(n){!function pf(n,r){if(0===n.flags&&n.clean==ac){let h;n.flags|=r,n.clean=new Promise(D=>h=D),n.scheduler(()=>{if(1&n.flags&&(n.flags&=-2,Qc(n)),2&n.flags){n.flags&=-3;const D=n.playerHandler;D&&D.flushPlayers()}n.clean=ac,h(null)})}}(Wh(Ll(n))[8],1)}const th=new ds("INJECTOR",-1);class yf{get(r,s=yo){if(s===yo){const h=new Error(`NullInjectorError: No provider for ${m(r)}!`);throw h.name="NullInjectorError",h}return s}}const qh=new ds("Set Injector scope."),dc={},go={};let bf;function _f(){return void 0===bf&&(bf=new yf),bf}function Ef(n,r=null,s=null,h){const D=Gp(n,r,s,h);return D._resolveInjectorDefTypes(),D}function Gp(n,r=null,s=null,h){return new hm(n,s,r||_f(),h)}class hm{constructor(r,s,h,D=null){this.parent=h,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const X=[];s&&ko(s,Pe=>this.processProvider(Pe,r,s)),ko([r],Pe=>this.processInjectorType(Pe,[],X)),this.records.set(th,Xl(void 0,this));const me=this.records.get(qh);this.scope=null!=me?me.value:null,this.source=D||("object"==typeof r?null:m(r))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(r=>r.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(r,s=yo,h=ut.Default){this.assertNotDestroyed();const D=xl(this),X=ct(void 0);try{if(!(h&ut.SkipSelf)){let Pe=this.records.get(r);if(void 0===Pe){const Ge=function pc(n){return"function"==typeof n||"object"==typeof n&&n instanceof ds}(r)&&Qe(r);Pe=Ge&&this.injectableDefInScope(Ge)?Xl(nh(r),dc):null,this.records.set(r,Pe)}if(null!=Pe)return this.hydrate(r,Pe)}return(h&ut.Self?_f():this.parent).get(r,s=h&ut.Optional&&s===yo?null:s)}catch(me){if("NullInjectorError"===me.name){if((me[Ls]=me[Ls]||[]).unshift(m(r)),D)throw me;return function Fu(n,r,s,h){const D=n[Ls];throw r[_c]&&D.unshift(r[_c]),n.message=function ta(n,r,s,h=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let D=m(r);
1if(Array.isArray(r))D=r.map(m).join(" -> ");else if("object"==typeof r){let X=[];for(let me in r)if(r.hasOwnProperty(me)){let Pe=r[me];X.push(me+":"+("string"==typeof Pe?JSON.stringify(Pe):m(Pe)))}D=`{${X.join(", ")}}`}return`${s}${h?"("+h+")":""}[${D}]: ${n.replace(bc,"\n  ")}`}("\n"+n.message,D,s,h),n.ngTokenPath=D,n[Ls]=null,n}(me,r,"R3InjectorError",this.source)}throw me}finally{ct(X),xl(D)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(r=>this.get(r))}toString(){const r=[];return this.records.forEach((h,D)=>r.push(m(D))),`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new T(205,!1)}processInjectorType(r,s,h){if(!(r=M(r)))return!1;let D=Lt(r);const X=null==D&&r.ngModule||void 0,me=void 0===X?r:X,Pe=-1!==h.indexOf(me);if(void 0!==X&&(D=Lt(X)),null==D)return!1;if(null!=D.imports&&!Pe){let Bt;h.push(me);try{ko(D.imports,yn=>{this.processInjectorType(yn,s,h)&&(void 0===Bt&&(Bt=[]),Bt.push(yn))})}finally{}if(void 0!==Bt)for(let yn=0;yn<Bt.length;yn++){const{ngModule:Ln,providers:Qn}=Bt[yn];ko(Qn,br=>this.processProvider(br,Ln,Qn||Cn))}}this.injectorDefTypes.add(me);const Ge=hi(me)||(()=>new me);this.records.set(me,Xl(Ge,dc));const Et=D.providers;if(null!=Et&&!Pe){const Bt=r;ko(Et,yn=>this.processProvider(yn,Bt,Et))}return void 0!==X&&void 0!==r.providers}processProvider(r,s,h){let D=fc(r=M(r))?r:M(r&&r.provide);const X=function dm(n,r,s){return Kp(n)?Xl(void 0,n.useValue):Xl(Qh(n),dc)}(r);if(fc(r)||!0!==r.multi)this.records.get(D);else{let me=this.records.get(D);me||(me=Xl(void 0,dc,!0),me.factory=()=>tl(me.multi),this.records.set(D,me)),D=r,me.multi.push(r)}this.records.set(D,X)}hydrate(r,s){return s.value===dc&&(s.value=go,s.value=s.factory()),"object"==typeof s.value&&s.value&&function qp(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(s.value)&&this.onDestroy.add(s.value),s.value}injectableDefInScope(r){if(!r.providedIn)return!1;const s=M(r.providedIn);return"string"==typeof s?"any"===s||s===this.scope:this.injectorDefTypes.has(s)}}function nh(n){const r=Qe(n),s=null!==r?r.factory:hi(n);if(null!==s)return s;if(n instanceof ds)throw new T(204,!1);if(n instanceof Function)return function zp(n){const r=n.length;if(r>0)throw Dl(r,"?"),new T(204,!1);const s=function Ot(n){const r=n&&(n[Jt]||n[it]);if(r){const s=function ln(n){if(n.hasOwnProperty("name"))return n.name;const r=(""+n).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${s}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${s}" class.`),r}return null}(n);return null!==s?()=>s.factory(n):()=>new n}(n);throw new T(204,!1)}function Qh(n,r,s){let h;if(fc(n)){const D=M(n);return hi(D)||nh(D)}if(Kp(n))h=()=>M(n.useValue);else if(function Qa(n){return!(!n||!n.useFactory)}(n))h=()=>n.useFactory(...tl(n.deps||[]));else if(function wf(n){return!(!n||!n.useExisting)}(n))h=()=>ks(M(n.useExisting));else{const D=M(n&&(n.useClass||n.provide));if(!function Yp(n){return!!n.deps}(n))return hi(D)||nh(D);h=()=>new D(...tl(n.deps))}return h}function Xl(n,r,s=!1){return{factory:n,value:r,multi:s?[]:void 0}}function Kp(n){return null!==n&&"object"==typeof n&&Ou in n}function fc(n){return"function"==typeof n}let Ks=(()=>{class n{static create(s,h){var D;if(Array.isArray(s))return Ef({name:""},h,s,"");{const X=null!==(D=s.name)&&void 0!==D?D:"";return Ef({name:X},s.parent,s.providers,X)}}}return n.THROW_IF_NOT_FOUND=yo,n.NULL=new yf,n.\u0275prov=Oe({token:n,providedIn:"any",factory:()=>ks(th)}),n.__NG_ELEMENT_ID__=-1,n})();function Jh(n){gc(n);const r=zs(n);return null===r?null:(void 0===r.component&&(r.component=function wh(n,r){const s=r[1].data[n];return 2&s.flags?r[s.directiveStart]:null}(r.nodeIndex,r.lView)),r.component)}function Af(n){gc(n);const r=zs(n);return null===r?null:r.lView[8]}function Sf(n){const r=zs(n);if(null===r)return null;let h,s=r.lView;for(;2===s[1].type&&(h=o(s));)s=h;return 512&s[2]?null:s[8]}function Qp(n){return[...F(n).components]}function Jp(n){const r=zs(n);
1return null===r?Ks.NULL:new ts(r.lView[1].data[r.nodeIndex],r.lView)}function Zp(n){if(n instanceof Text)return[];const r=zs(n);if(null===r)return[];const s=r.lView,h=s[1],D=r.nodeIndex;return(null==h?void 0:h.data[D])?(void 0===r.directives&&(r.directives=Oc(D,s,!1)),null===r.directives?[]:[...r.directives]):[]}function eg(n){const{constructor:r}=n;if(!r)throw new Error("Unable to find the instance constructor");const s=wn(r);if(s)return{inputs:s.inputs,outputs:s.outputs,encapsulation:s.encapsulation,changeDetection:s.onPush?St.OnPush:St.Default};const h=$n(r);return h?{inputs:h.inputs,outputs:h.outputs}:null}function Yl(n){return zs(n).native}function tg(n){gc(n);const r=zs(n);if(null===r)return[];const s=r.lView,D=s[7],X=s[1].cleanup,me=[];if(X&&D)for(let Pe=0;Pe<X.length;){const Ge=X[Pe++],Et=X[Pe++];if("string"==typeof Ge){const Bt=Ge,yn=xn(s[Et]),Ln=D[X[Pe++]],Qn=X[Pe++],br="boolean"==typeof Qn||Qn>=0?"dom":"output",Br="boolean"==typeof Qn&&Qn;n==yn&&me.push({element:n,name:Bt,callback:Ln,useCapture:Br,type:br})}}return me.sort(pm),me}function pm(n,r){return n.name==r.name?0:n.name<r.name?-1:1}function Su(n){return void 0!==n.type&&void 0!==n.template&&void 0!==n.declaredInputs}function gc(n){if("undefined"!=typeof Element&&!(n instanceof Element))throw new Error("Expecting instance of DOM Element")}function rh(n){eh(n),Qp(n).forEach(r=>Wp(r))}let $s=!1;function ih(){$s||($s=!0,Do("\u0275setProfiler",Mn),Do("getDirectiveMetadata",eg),Do("getComponent",Jh),Do("getContext",Af),Do("getListeners",tg),Do("getOwningComponent",Sf),Do("getHostElement",Yl),Do("getInjector",Jp),Do("getRootComponents",Qp),Do("getDirectives",Zp),Do("applyChanges",rh))}function Do(n,r){if("undefined"==typeof COMPILED||!COMPILED){const s=Kt;if(s){let h=s.ng;h||(h=s.ng={}),h[n]=r}}}function Tf(n,r={}){const s=r.rendererFactory||rn,h=r.sanitizer||null,D=wn(n);D.type!=n&&(D.type=n);const X=D.selectors[0][0],Pe=zl(s.createRenderer(null,null),r.host||X,D.encapsulation),Ge=D.onPush?576:528,Et=Zh(r.scheduler,r.playerHandler),Bt=s.createRenderer(Pe,D),yn=wu(0,null,null,1,0,null,null,null,null,null),Ln=lc(null,yn,Et,Ge,null,null,s,Bt,null,r.injector||null);let Qn;ki(Ln);try{s.begin&&s.begin(),Qn=sh(If(Pe,D,Ln,s,Bt,h),D,Ln,Et,r.hostFeatures||null),_u(yn,Ln,null),Eu(yn,Ln,null,null)}finally{lo(),s.end&&s.end()}return Qn}function If(n,r,s,h,D,X){const me=s[1];s[20]=n;const Ge=uc(me,20,2,"#host",null),Et=Ge.mergedAttrs=r.hostAttrs;null!==Et&&(Xh(Ge,Et,!0),null!==n&&(Ke(D,n,Et),null!==Ge.classes&&Rh(D,n,Ge.classes),null!==Ge.styles&&Nd(D,n,Ge.styles)));const Bt=h.createRenderer(n,r),yn=lc(s,tf(r),null,r.onPush?64:16,s[20],Ge,h,Bt,X||null,null);return me.firstCreatePass&&(qe(Pr(Ge,s),me,r.type),qc(me,Ge),Uh(Ge,s.length,1)),Hh(s,yn),s[20]=yn}function sh(n,r,s,h,D){const X=s[1],me=function Bp(n,r,s){const h=mi();n.firstCreatePass&&(s.providersResolver&&s.providersResolver(s),Vh(n,h,r,bu(n,r,1,null),s));const D=xr(r,n,h.directiveStart,h);io(D,r);const X=pr(h,r);return X&&io(X,r),D}(X,s,r);if(h.components.push(me),n[8]=me,D&&D.forEach(Ge=>Ge(me,r)),r.contentQueries){const Ge=mi();r.contentQueries(1,me,Ge.directiveStart)}const Pe=mi();return!X.firstCreatePass||null===r.hostBindings&&null===r.hostAttrs||(Le(Pe.index),jp(s[1],Pe,0,Pe.directiveStart,Pe.directiveEnd,r),jh(r,me)),me}function Zh(n,r){return{components:[],scheduler:n||Ju,clean:mf,playerHandler:r||null,flags:0}}function ed(n,r){ms(Ma(n)[1],mi())}function Df(n){return F(n).clean}function td(n){return Object.getPrototypeOf(n.prototype).constructor}function oh(n){let r=td(n.type),s=!0;const h=[n];for(;r;){let D;if(oi(n))D=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new T(903,"");D=r.\u0275dir}if(D){if(s){h.push(D);const me=n;me.inputs=Pf(n.inputs),me.declaredInputs=Pf(n.declaredInputs),me.outputs=Pf(n.outputs);const Pe=D.hostBindings;Pe&&ig(n,Pe);const Ge=D.viewQuery,Et=D.contentQueries;if(Ge&&Rf(n,Ge),Et&&xf(n,Et),E(n.inputs,D.inputs),E(n.declaredInputs,D.declaredInputs),E(n.outputs,D.outputs),oi(D)&&D.data.animation){const Bt=n.data;Bt.animation=(Bt.animation||[]).concat(D.data.animation)}}const X=D.features;if(X)for(let me=0;me<X.length;me++){const Pe=X[me];Pe&&Pe.ngInherit&&Pe(n),Pe===oh&&(s=!1)}}r=Object.getPrototypeOf(r)}!function gm(n){let r=0,s=null;for(let h=n.length-1;h>=0;h--){const D=n[h];D.hostVars=r+=D.hostVars,D.hostAttrs=l(D.hostAttrs,s=l(s,D.hostAttrs))}}(h)}function Pf(n){return n===tn?{}:n===Cn?[]:n}function Rf(n,r){const s=n.viewQuery;n.viewQuery=s?(h,D)=>{r(h,D),s(h,D)}:r}function xf(n,r){const s=n.contentQueries;n.contentQueries=s?(h,D,X)=>{r(h,D,X),s(h,D,X)}:r}function ig(n,r){const s=n.hostBindings;n.hostBindings=s?(h,D)=>{r(h,D),s(h,D)}:r}const sg=["providersResolver"],og=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function ag(n){let s,r=td(n.type);s=oi(n)?r.\u0275cmp:r.\u0275dir;const h=n;for(const D of sg)h[D]=s[D];if(oi(s))for(const D of og)h[D]=s[D]}let ah=null;
1function mc(){if(!ah){const n=Kt.Symbol;if(n&&n.iterator)ah=n.iterator;else{const r=Object.getOwnPropertyNames(Map.prototype);for(let s=0;s<r.length;++s){const h=r[s];"entries"!==h&&"size"!==h&&Map.prototype[h]===Map.prototype.entries&&(ah=h)}}}return ah}function nd(n,r){const s=ql(n),h=ql(r);return s&&h?function Mf(n,r,s){const h=n[mc()](),D=r[mc()]();for(;;){const X=h.next(),me=D.next();if(X.done&&me.done)return!0;if(X.done||me.done||!s(X.value,me.value))return!1}}(n,r,nd):!(s||!n||"object"!=typeof n&&"function"!=typeof n||h||!r||"object"!=typeof r&&"function"!=typeof r)||Object.is(n,r)}function ql(n){return!!rd(n)&&(Array.isArray(n)||!(n instanceof Map)&&mc()in n)}function rd(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Zr(n,r,s){return n[r]=s}function Cu(n,r){return n[r]}function ns(n,r,s){return!Object.is(n[r],s)&&(n[r]=s,!0)}function _a(n,r,s,h){const D=ns(n,r,s);return ns(n,r+1,h)||D}function la(n,r,s,h,D){const X=_a(n,r,s,h);return ns(n,r+2,D)||X}function Ea(n,r,s,h,D,X){const me=_a(n,r,s,h);return _a(n,r+2,D,X)||me}function Of(n,r,s,h){const D=Zn();return ns(D,Qs(),r)&&(qr(),Na(lt(),D,n,r,s,h)),Of}function vc(n,r){let s=!1,h=Ws();for(let X=1;X<r.length;X+=2)s=ns(n,h++,r[X])||s;if(Ro(h),!s)return yi;let D=r[0];for(let X=1;X<r.length;X+=2)D+=G(r[X])+r[X+1];return D}function ua(n,r,s,h){return ns(n,Qs(),s)?r+G(s)+h:yi}function Tu(n,r,s,h,D,X){const Pe=_a(n,Ws(),s,D);return Gs(2),Pe?r+G(s)+h+G(D)+X:yi}function Fa(n,r,s,h,D,X,me,Pe){const Et=la(n,Ws(),s,D,me);return Gs(3),Et?r+G(s)+h+G(D)+X+G(me)+Pe:yi}function Ql(n,r,s,h,D,X,me,Pe,Ge,Et){const yn=Ea(n,Ws(),s,D,me,Ge);return Gs(4),yn?r+G(s)+h+G(D)+X+G(me)+Pe+G(Ge)+Et:yi}function Iu(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn){const Ln=Ws();let Qn=Ea(n,Ln,s,D,me,Ge);return Qn=ns(n,Ln+4,Bt)||Qn,Gs(5),Qn?r+G(s)+h+G(D)+X+G(me)+Pe+G(Ge)+Et+G(Bt)+yn:yi}function _l(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn){const br=Ws();let Br=Ea(n,br,s,D,me,Ge);return Br=_a(n,br+4,Bt,Ln)||Br,Gs(6),Br?r+G(s)+h+G(D)+X+G(me)+Pe+G(Ge)+Et+G(Bt)+yn+G(Ln)+Qn:yi}function xs(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br){const Xr=Ws();let li=Ea(n,Xr,s,D,me,Ge);return li=la(n,Xr+4,Bt,Ln,br)||li,Gs(7),li?r+G(s)+h+G(D)+X+G(me)+Pe+G(Ge)+Et+G(Bt)+yn+G(Ln)+Qn+G(br)+Br:yi}function Ts(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li){const Tr=Ws();let pi=Ea(n,Tr,s,D,me,Ge);return pi=Ea(n,Tr+4,Bt,Ln,br,Xr)||pi,Gs(8),pi?r+G(s)+h+G(D)+X+G(me)+Pe+G(Ge)+Et+G(Bt)+yn+G(Ln)+Qn+G(br)+Br+G(Xr)+li:yi}function id(n,r,s,h,D,X){const me=Zn(),Pe=ua(me,r,s,h);return Pe!==yi&&Na(lt(),me,n,Pe,D,X),id}function Hs(n,r,s,h,D,X,me,Pe){const Ge=Zn(),Et=Tu(Ge,r,s,h,D,X);return Et!==yi&&Na(lt(),Ge,n,Et,me,Pe),Hs}function sd(n,r,s,h,D,X,me,Pe,Ge,Et){const Bt=Zn(),yn=Fa(Bt,r,s,h,D,X,me,Pe);return yn!==yi&&Na(lt(),Bt,n,yn,Ge,Et),sd}function kf(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn){const Ln=Zn(),Qn=Ql(Ln,r,s,h,D,X,me,Pe,Ge,Et);return Qn!==yi&&Na(lt(),Ln,n,Qn,Bt,yn),kf}function e(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn){const br=Zn(),Br=Iu(br,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn);return Br!==yi&&Na(lt(),br,n,Br,Ln,Qn),e}function u(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br){const Xr=Zn(),li=_l(Xr,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn);return li!==yi&&Na(lt(),Xr,n,li,br,Br),u}function U(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li){const Tr=Zn(),pi=xs(Tr,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br);return pi!==yi&&Na(lt(),Tr,n,pi,Xr,li),U}function pe(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li,Tr,pi){const Qi=Zn(),Is=Ts(Qi,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li);return Is!==yi&&Na(lt(),Qi,n,Is,Tr,pi),pe}function $e(n,r,s,h){const D=Zn(),X=vc(D,r);return X!==yi&&Na(lt(),D,n,X,s,h),$e}function zt(n,r,s,h,D,X,me,Pe){const Ge=Zn(),Et=qr(),Bt=n+20,yn=Et.firstCreatePass?function Dt(n,r,s,h,D,X,me,Pe,Ge){const Et=r.consts,Bt=uc(r,n,4,me||null,Wn(Et,Pe));sf(r,s,Bt,Wn(Et,Ge)),ms(r,Bt);const yn=Bt.tViews=wu(2,Bt,h,D,X,r.directiveRegistry,r.pipeRegistry,null,r.schemas,Et);return null!==r.queries&&(r.queries.template(r,Bt),yn.queries=r.queries.embeddedTView(Bt)),Bt}(Bt,Et,Ge,r,s,h,D,X,me):Et.data[Bt];Ui(yn,!1);const Ln=Ge[11].createComment("");Uc(Et,Ge,Ln,yn),io(Ln,Ge),Hh(Ge,Ge[Bt]=Vp(Ln,Ge,Ln,yn)),ei(yn)&&Lh(Et,Ge,yn),null!=me&&cc(Ge,yn,Pe)}function Pn(n,r,s,h){s>=n.data.length&&(n.data[s]=null,n.blueprint[s]=null),r[s]=h}function yr(n){return Or(function ws(){return et.lFrame.contextLView}(),20+n)}const Rr={\u0275\u0275defineInjectable:Oe,\u0275\u0275defineInjector:Ye,\u0275\u0275inject:ks,\u
10275\u0275invalidFactoryDep:wa,resolveForwardRef:M};const Es=L({provide:String,useValue:L});function us(n){return void 0!==n.useClass}function Ja(n){return void 0!==n.useFactory}const GE=Fs("Injectable",void 0,void 0,void 0,(n,r)=>function Si(n,r){let s=null,h=null;n.hasOwnProperty(Jt)||Object.defineProperty(n,Jt,{get:()=>(null===s&&(s=As().compileInjectable(Rr,`ng:///${n.name}/\u0275prov.js`,function WE(n,r){const s=r||{providedIn:null},h={name:n.name,type:n,typeArgumentCount:0,providedIn:s.providedIn};return(us(s)||Ja(s))&&void 0!==s.deps&&(h.deps=rl(s.deps)),us(s)?h.useClass=s.useClass:function _o(n){return Es in n}(s)?h.useValue=s.useValue:Ja(s)?h.useFactory=s.useFactory:function Nf(n){return void 0!==n.useExisting}(s)&&(h.useExisting=s.useExisting),h}(n,r))),s)}),n.hasOwnProperty(jn)||Object.defineProperty(n,jn,{get:()=>{if(null===h){const D=As();h=D.compileFactory(Rr,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:au(n),target:D.FactoryTarget.Injectable})}return h},configurable:!0})}(n,r));function mm(n){return n.length>1?" ("+function zE(n){const r=[];for(let s=0;s<n.length;++s){if(r.indexOf(n[s])>-1)return r.push(n[s]),r;r.push(n[s])}return r}(n.slice().reverse()).map(h=>m(h.token)).join(" -> ")+")":""}function vm(n,r,s,h){const D=[r],X=s(D),me=h?function Ka(n,r){const s=`${n} caused by: ${r instanceof Error?r.message:r}`,h=Error(s);return h[kc]=r,h}(X,h):Error(X);return me.addKey=KE,me.keys=D,me.injectors=[n],me.constructResolvingMessage=s,me[kc]=h,me}function KE(n,r){this.injectors.push(n),this.keys.push(r),this.message=this.constructResolvingMessage(this.keys)}function Py(n,r){const s=[];for(let h=0,D=r.length;h<D;h++){const X=r[h];s.push(X&&0!=X.length?X.map(m).join(" "):"?")}return Error("Cannot resolve all parameters for '"+m(n)+"'("+s.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+m(n)+"' is decorated with Injectable.")}function ZE(n,r){return Error(`Cannot mix multi providers and regular providers, got: ${n} ${r}`)}class Du{constructor(r,s){if(this.token=r,this.id=s,!r)throw new Error("Token must be defined!");this.displayName=m(this.token)}static get(r){return Ry.get(M(r))}static get numberOfKeys(){return Ry.numberOfKeys}}class ew{constructor(){this._allKeys=new Map}get(r){if(r instanceof Du)return r;if(this._allKeys.has(r))return this._allKeys.get(r);const s=new Du(r,Du.numberOfKeys);return this._allKeys.set(r,s),s}get numberOfKeys(){return this._allKeys.size}}const Ry=new ew;class tw{constructor(r){this.reflectionCapabilities=r}updateCapabilities(r){this.reflectionCapabilities=r}factory(r){return this.reflectionCapabilities.factory(r)}parameters(r){return this.reflectionCapabilities.parameters(r)}annotations(r){return this.reflectionCapabilities.annotations(r)}propMetadata(r){return this.reflectionCapabilities.propMetadata(r)}hasLifecycleHook(r,s){return this.reflectionCapabilities.hasLifecycleHook(r,s)}getter(r){return this.reflectionCapabilities.getter(r)}setter(r){return this.reflectionCapabilities.setter(r)}method(r){return this.reflectionCapabilities.method(r)}importUri(r){return this.reflectionCapabilities.importUri(r)}resourceUri(r){return this.reflectionCapabilities.resourceUri(r)}resolveIdentifier(r,s,h,D){return this.reflectionCapabilities.resolveIdentifier(r,s,h,D)}resolveEnum(r,s){return this.reflectionCapabilities.resolveEnum(r,s)}}const xy=new tw(new Va);class ug{constructor(r,s,h){this.key=r,this.optional=s,this.visibility=h}static fromKey(r){return new ug(r,!1,null)}}const nw=[];class My{constructor(r,s,h){this.key=r,this.resolvedFactories=s,this.multiProvider=h,this.resolvedFactory=this.resolvedFactories[0]}}class Oy{constructor(r,s){this.factory=r,this.dependencies=s}}function rw(n){let r,s;if(n.useClass){const h=M(n.useClass);r=xy.factory(h),s=Ny(h)}else n.useExisting?(r=h=>h,s=[ug.fromKey(Du.get(n.useExisting))]):n.useFactory?(r=n.useFactory,s=function aw(n,r){if(r){const s=r.map(h=>[h]);return r.map(h=>Fy(n,h,s))}return Ny(n)}(n.useFactory,n.deps)):(r=()=>n.useValue,s=nw);return new Oy(r,s)}function iw(n){return new My(Du.get(n.provide),[rw(n)],n.multi||!1)}function sw(n){const h=function ow(n,r){for(let s=0;s<n.length;s++){const h=n[s],D=r.get(h.key.id);if(D){if(h.multiProvider!==D.multiProvider)throw ZE(D,h);if(h.multiProvider)for(let X=0;X<h.resolvedFactories.length;X++)D.resolvedFactories.push(h.resolvedFactories[X]);else r.set(h.key.id,h)}else{let X;X=h.multiProvider?new My(h.key,h.resolvedFactories.slice(),h.multiProvider):h,r.set(h.key.id,X)}}return r}(ky(n,[]).map(iw),new Map);return Array.from(h.values())}
1function ky(n,r){return n.forEach(s=>{if(s instanceof nu)r.push({provide:s,useClass:s});else if(s&&"object"==typeof s&&void 0!==s.provide)r.push(s);else{if(!Array.isArray(s))throw function QE(n){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${n}`)}(s);ky(s,r)}}),r}function Ny(n){const r=xy.parameters(n);if(!r)return[];if(r.some(s=>null==s))throw Py(n,r);return r.map(s=>Fy(n,s,r))}function Fy(n,r,s){let h=null,D=!1;if(!Array.isArray(r))return ym(r instanceof nl?r.token:r,D,null);let X=null;for(let me=0;me<r.length;++me){const Pe=r[me];Pe instanceof nu?h=Pe:Pe instanceof nl?h=Pe.token:Pe instanceof ro?D=!0:Pe instanceof Ko||Pe instanceof Aa?X=Pe:Pe instanceof ds&&(h=Pe)}if(h=M(h),null!=h)return ym(h,D,X);throw Py(n,s)}function ym(n,r,s){return new ug(Du.get(n),r,s)}const Ff={};class od{static resolve(r){return sw(r)}static resolveAndCreate(r,s){const h=od.resolve(r);return od.fromResolvedProviders(h,s)}static fromResolvedProviders(r,s){return new lw(r,s)}}let lw=(()=>{class n{constructor(s,h){this._constructionCounter=0,this._providers=s,this.parent=h||null;const D=s.length;this.keyIds=[],this.objs=[];for(let X=0;X<D;X++)this.keyIds[X]=s[X].key.id,this.objs[X]=Ff}get(s,h=yo){return this._getByKey(Du.get(s),null,h)}resolveAndCreateChild(s){const h=od.resolve(s);return this.createChildFromResolved(h)}createChildFromResolved(s){const h=new n(s);return h.parent=this,h}resolveAndInstantiate(s){return this.instantiateResolved(od.resolve([s])[0])}instantiateResolved(s){return this._instantiateProvider(s)}getProviderAtIndex(s){if(s<0||s>=this._providers.length)throw function JE(n){return Error(`Index ${n} is out-of-bounds.`)}(s);return this._providers[s]}_new(s){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function YE(n,r){return vm(n,r,function(s){return`Cannot instantiate cyclic dependency!${mm(s)}`})}(this,s.key);return this._instantiateProvider(s)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(s){if(s.multiProvider){const h=[];for(let D=0;D<s.resolvedFactories.length;++D)h[D]=this._instantiate(s,s.resolvedFactories[D]);return h}return this._instantiate(s,s.resolvedFactories[0])}_instantiate(s,h){const D=h.factory;let X,me;try{X=h.dependencies.map(Pe=>this._getByReflectiveDependency(Pe))}catch(Pe){throw Pe.addKey&&Pe.addKey(this,s.key),Pe}try{me=D(...X)}catch(Pe){throw function qE(n,r,s,h){return vm(n,h,function(D){const X=m(D[0].token);return`${r.message}: Error during instantiation of ${X}!${mm(D)}.`},r)}(this,Pe,0,s.key)}return me}_getByReflectiveDependency(s){return this._getByKey(s.key,s.visibility,s.optional?null:yo)}_getByKey(s,h,D){return s===n.INJECTOR_KEY?this:h instanceof Ko?this._getByKeySelf(s,D):this._getByKeyDefault(s,D,h)}_getObjByKeyId(s){for(let h=0;h<this.keyIds.length;h++)if(this.keyIds[h]===s)return this.objs[h]===Ff&&(this.objs[h]=this._new(this._providers[h])),this.objs[h];return Ff}_throwOrNull(s,h){if(h!==yo)return h;throw function XE(n,r){return vm(n,r,function(s){return`No provider for ${m(s[0].token)}!${mm(s)}`})}(this,s)}_getByKeySelf(s,h){const D=this._getObjByKeyId(s.id);return D!==Ff?D:this._throwOrNull(s,h)}_getByKeyDefault(s,h,D){let X;for(X=D instanceof Aa?this.parent:this;X instanceof n;){const me=X,Pe=me._getObjByKeyId(s.id);if(Pe!==Ff)return Pe;X=me.parent}return null!==X?X.get(s.token,h):this._throwOrNull(s,h)}get displayName(){return`ReflectiveInjector(providers: [${function uw(n,r){const s=[];for(let h=0;h<n._providers.length;++h)s[h]=r(n.getProviderAtIndex(h));return s}(this,h=>' "'+h.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return n.INJECTOR_KEY=Du.get(Ks),n})();function Lf(n,r=ut.Default){const s=Zn();return null===s?ks(n,r):In(mi(),s,M(n),r)}function Ly(){throw new Error("invalid")}function bm(n,r,s){const h=Zn();return ns(h,Qs(),r)&&Ho(qr(),lt(),h,n,r,h[11],s,!1),bm}function _m(n,r,s,h,D){const me=D?"class":"style";Kh(n,s,r.inputs[me],me,h)}function cg(n,r,s,h){const D=Zn(),X=qr(),me=20+n,Pe=D[11],Ge=D[me]=Kn(Pe,r,function Ei(){return et.lFrame.currentNamespace}()),Et=X.firstCreatePass?function cw(n,r,s,h,D,X,me){const Pe=r.consts,Et=uc(r,n,2,D,Wn(Pe,X));return sf(r,s,Et,Wn(Pe,me)),null!==Et.attrs&&Xh(Et,Et.attrs,!1),null!==Et.mergedAttrs&&Xh(Et,Et.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,Et),Et}(me,X,D,0,r,s,h):X.data[me];Ui(Et,!0);const Bt=Et.mergedAttrs;null!==Bt&&Ke(Pe,Ge,Bt);const yn=Et.classes;null!==yn&&Rh(Pe,Ge,yn);const Ln=Et.styles;return null!==Ln&&Nd(Pe,Ge,Ln),64!=(64&Et.flags)&&Uc(X,D,Ge,Et),0===function Ze(){return et.lFrame.elementDepthCount}()&&io(Ge,D),function Xt(){et.lFrame.elementDepthCount++}(),ei(Et)&&(Lh(X,D,Et),ef(X,Et,D)),null!==h&&cc(D,Et),cg}function hg(){let n=mi();ps()?qi():(n=n.parent,Ui(n,!1));const r=n;!function Jn(){et.lFrame.elementDepthCount--}();const s=qr();return s.firstCreatePass&&(ms(s,n),Nr(n)&&s.queries.elementEnd(n)),null!=r.classesWithoutHost&&function ha(n){return 0!=(16&n.flags)}(r)&&_m(s,r,Zn(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function ot(n){return 0!=(32&n.flags)}(r)&&_m(s,r,Zn(),r.stylesWithoutHost,!1),hg}function Em(n,r,s,h){return cg(n,r,s,h),hg(),Em}function dg(n,r,s){const h=Zn(),D=qr(),X=n+20,me=D.firstCreatePass?function hw(n,r,s,h,D){const X=r.consts,me=Wn(X,h),Pe=uc(r,n,8,"ng-container",me);return null!==me&&Xh(Pe,me,!0),sf(r,s,Pe,Wn(X,D)),null!==r.queries&&r.queries.elementStart(r,Pe),Pe}(X,D,h,r,s):D.data[X];Ui(me,!0);const Pe=h[X]=h[11].createComment("");return Uc(D,h,Pe,me),io(Pe,h),ei(me)&&(Lh(D,h,me),ef(D,me,h)),null!=s&&cc(h,me),dg}function fg(){let n=mi();const r=qr();return ps()?qi():(n=n.parent,Ui(n,!1)),r.firstCreatePass&&(ms(r,n),Nr(n)&&r.queries.elementEnd(n)),fg}function wm(n,r,s){return dg(n,r,s),fg(),wm}function By(){return Zn()}function Am(n){return!!n&&"function"==typeof n.then}function jy(n){return!!n&&"function"==typeof n.subscribe}const Uy=jy;function Sm(n,r,s,h){const D=Zn(),X=qr(),me=mi();return Vy(X,D,D[11],me,n,r,!!s,h),Sm}function Cm(n,r){const s=mi(),h=Zn(),D=qr();return Vy(D,h,bl(Os(D.data),s,h),s,n,r,!1),Cm}function Vy(n,r,s,h,D,X,me,Pe){const Ge=ei(h),Bt=n.firstCreatePass&&vf(n),yn=r[8],Ln=zh(r);let Qn=!0;if(3&h.type||Pe){const Xr=pr(h,r),li=Pe?Pe(Xr):Xr,Tr=Ln.length,pi=Pe?Qi=>Pe(xn(Qi[h.index])):h.index;if(dt(s)){let Qi=null;if(!Pe&&Ge&&(Qi=function dw(n,r,s,h){const D=n.cleanup;if(null!=D)for(let X=0;X<D.length-1;X+=2){const me=D[X];if(me===s&&D[X+1]===h){const Pe=r[7],Ge=D[X+2];return Pe.length>Ge?Pe[Ge]:null}"string"==typeof me&&(X+=2)}return null}(n,r,D,h.index)),null!==Qi)(Qi.__ngLastListenerFn__||Qi).__ngNextListenerFn__=X,Qi.__ngLastListenerFn__=X,Qn=!1;else{X=Tm(h,r,yn,X,!1);const Is=s.listen(li,D,X);Ln.push(X,Is),Bt&&Bt.push(D,pi,Tr,Tr+1)}}
1else X=Tm(h,r,yn,X,!0),li.addEventListener(D,X,me),Ln.push(X),Bt&&Bt.push(D,pi,Tr,me)}else X=Tm(h,r,yn,X,!1);const br=h.outputs;let Br;if(Qn&&null!==br&&(Br=br[D])){const Xr=Br.length;if(Xr)for(let li=0;li<Xr;li+=2){const La=r[Br[li]][Br[li+1]].subscribe(X),ch=Ln.length;Ln.push(X,La),Bt&&Bt.push(D,h.index,ch,-(ch+1))}}}function $y(n,r,s,h){try{return qn(6,r,s),!1!==s(h)}catch(D){return Zc(n,D),!1}finally{qn(7,r,s)}}function Tm(n,r,s,h,D){return function X(me){if(me===Function)return h;const Pe=2&n.flags?Je(n.index,r):r;0==(32&r[2])&&Wh(Pe);let Ge=$y(r,s,h,me),Et=X.__ngNextListenerFn__;for(;Et;)Ge=$y(r,s,Et,me)&&Ge,Et=Et.__ngNextListenerFn__;return D&&!1===Ge&&(me.preventDefault(),me.returnValue=!1),Ge}}function Hy(n=1){return function uo(n){return(et.lFrame.contextLView=function es(n,r){for(;n>0;)r=r[15],n--;return r}(n,et.lFrame.contextLView))[8]}(n)}function fw(n,r){let s=null;const h=function Hc(n){const r=n.attrs;if(null!=r){const s=r.indexOf(5);if(0==(1&s))return r[s+1]}return null}(n);for(let D=0;D<r.length;D++){const X=r[D];if("*"!==X){if(null===h?rc(n,X,!0):mp(h,X))return D}else s=D}return s}function Wy(n){const r=Zn()[16][6];if(!r.projection){const h=r.projection=Dl(n?n.length:1,null),D=h.slice();let X=r.child;for(;null!==X;){const me=n?fw(X,n):0;null!==me&&(D[me]?D[me].projectionNext=X:h[me]=X,D[me]=X),X=X.next}}}function Gy(n,r=0,s){const h=Zn(),D=qr(),X=uc(D,20+n,16,null,s||null);null===X.projection&&(X.projection=r),qi(),64!=(64&X.flags)&&function hp(n,r,s){kd(r[11],0,r,s,ml(n,s,r),Bc(s.parent||r[6],s,r))}(D,h,X)}function Im(n,r,s){return pg(n,"",r,"",s),Im}function pg(n,r,s,h,D){const X=Zn(),me=ua(X,r,s,h);return me!==yi&&Ho(qr(),lt(),X,n,me,X[11],D,!1),pg}function Dm(n,r,s,h,D,X,me){const Pe=Zn(),Ge=Tu(Pe,r,s,h,D,X);return Ge!==yi&&Ho(qr(),lt(),Pe,n,Ge,Pe[11],me,!1),Dm}function Pm(n,r,s,h,D,X,me,Pe,Ge){const Et=Zn(),Bt=Fa(Et,r,s,h,D,X,me,Pe);return Bt!==yi&&Ho(qr(),lt(),Et,n,Bt,Et[11],Ge,!1),Pm}function Rm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){const yn=Zn(),Ln=Ql(yn,r,s,h,D,X,me,Pe,Ge,Et);return Ln!==yi&&Ho(qr(),lt(),yn,n,Ln,yn[11],Bt,!1),Rm}function xm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln){const Qn=Zn(),br=Iu(Qn,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn);return br!==yi&&Ho(qr(),lt(),Qn,n,br,Qn[11],Ln,!1),xm}function Mm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br){const Br=Zn(),Xr=_l(Br,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn);return Xr!==yi&&Ho(qr(),lt(),Br,n,Xr,Br[11],br,!1),Mm}function Om(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr){const li=Zn(),Tr=xs(li,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br);return Tr!==yi&&Ho(qr(),lt(),li,n,Tr,li[11],Xr,!1),Om}function km(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li,Tr){const pi=Zn(),Qi=Ts(pi,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li);return Qi!==yi&&Ho(qr(),lt(),pi,n,Qi,pi[11],Tr,!1),km}function Nm(n,r,s){const h=Zn(),D=vc(h,r);return D!==yi&&Ho(qr(),lt(),h,n,D,h[11],s,!1),Nm}function zy(n,r,s,h,D){const X=n[s+1],me=null===r;let Pe=h?ba(X):vl(X),Ge=!1;for(;0!==Pe&&(!1===Ge||me);){const Bt=n[Pe+1];mw(n[Pe],r)&&(Ge=!0,n[Pe+1]=h?Ud(Bt):Gc(Bt)),Pe=h?ba(Bt):vl(Bt)}Ge&&(n[s+1]=h?Gc(X):Ud(X))}function mw(n,r){return null===n||null==r||(Array.isArray(n)?n[1]:n)===r||!(!Array.isArray(n)||"string"!=typeof r)&&ja(n,r)>=0}const Po={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ky(n){return n.substring(Po.key,Po.keyEnd)}function vw(n){return n.substring(Po.value,Po.valueEnd)}function Xy(n,r){const s=Po.textEnd;return s===r?-1:(r=Po.keyEnd=function _w(n,r,s){for(;r<s&&n.charCodeAt(r)>32;)r++;return r}(n,Po.key=r,s),ad(n,r,s))}function Yy(n,r){const s=Po.textEnd;let h=Po.key=ad(n,r,s);return s===h?-1:(h=Po.keyEnd=function Ew(n,r,s){let h;for(;r<s&&(45===(h=n.charCodeAt(r))||95===h||(-33&h)>=65&&(-33&h)<=90||h>=48&&h<=57);)r++;return r}(n,h,s),h=Qy(n,h,s),h=Po.value=ad(n,h,s),h=Po.valueEnd=function ww(n,r,s){let h=-1,D=-1,X=-1,me=r,Pe=me;for(;me<s;){const Ge=n.charCodeAt(me++);if(59===Ge)return Pe;34===Ge||39===Ge?Pe=me=Jy(n,Ge,me,s):r===me-4&&85===X&&82===D&&76===h&&40===Ge?Pe=me=Jy(n,41,me,s):Ge>32&&(Pe=me),X=D,D=h,h=-33&Ge}return Pe}(n,h,s),Qy(n,h,s))}function qy(n){Po.key=0,Po.keyEnd=0,Po.value=0,Po.valueEnd=0,Po.textEnd=n.length}function ad(n,r,s){for(;
vendor: 4,971 bytes, line 1
1r<s&&n.charCodeAt(r)<=32;)r++;return r}function Qy(n,r,s,h){return(r=ad(n,r,s))<s&&r++,r}function Jy(n,r,s,h){let D=-1,X=s;for(;X<h;){const me=n.charCodeAt(X++);if(me==r&&92!==D)return X;D=92==me&&92===D?0:me}throw new Error}function Fm(n,r,s){return wl(n,r,s,!1),Fm}function Lm(n,r){return wl(n,r,null,!0),Lm}function El(n){Al(nb,Aw,n,!1)}function Aw(n,r){for(let s=function bw(n){return qy(n),Yy(n,ad(n,0,Po.textEnd))}(r);s>=0;s=Yy(r,s))nb(n,Ky(r),vw(r))}function Zy(n){Al(fo,Jl,n,!0)}function Jl(n,r){for(let s=function yw(n){return qy(n),Xy(n,ad(n,0,Po.textEnd))}(r);s>=0;s=Xy(r,s))fo(n,Ky(r),!0)}function wl(n,r,s,h){const D=Zn(),X=qr(),me=Gs(2);X.firstUpdatePass&&tb(X,n,me,h),r!==yi&&ns(D,me,r)&&rb(X,X.data[Y()],D,D[11],n,D[me+1]=function Rw(n,r){return null==n||("string"==typeof r?n+=r:"object"==typeof n&&(n=m(Xo(n)))),n}(r,s),h,me)}function Al(n,r,s,h){const D=qr(),X=Gs(2);D.firstUpdatePass&&tb(D,null,X,h);const me=Zn();if(s!==yi&&ns(me,X,s)){const Pe=D.data[Y()];if(sb(Pe,h)&&!eb(D,X)){let Ge=h?Pe.classesWithoutHost:Pe.stylesWithoutHost;null!==Ge&&(s=v(Ge,s||"")),_m(D,Pe,me,s,h)}else!function Pw(n,r,s,h,D,X,me,Pe){D===yi&&(D=Cn);let Ge=0,Et=0,Bt=0<D.length?D[0]:null,yn=0<X.length?X[0]:null;for(;null!==Bt||null!==yn;){const Ln=Ge<D.length?D[Ge+1]:void 0,Qn=Et<X.length?X[Et+1]:void 0;let Br,br=null;Bt===yn?(Ge+=2,Et+=2,Ln!==Qn&&(br=yn,Br=Qn)):null===yn||null!==Bt&&Bt<yn?(Ge+=2,br=Bt):(Et+=2,br=yn,Br=Qn),null!==br&&rb(n,r,s,h,br,Br,me,Pe),Bt=Ge<D.length?D[Ge]:null,yn=Et<X.length?X[Et]:null}}(D,Pe,me,me[11],me[X+1],me[X+1]=function Dw(n,r,s){if(null==s||""===s)return Cn;const h=[],D=Xo(s);if(Array.isArray(D))for(let X=0;X<D.length;X++)n(h,D[X],!0);else if("object"==typeof D)for(const X in D)D.hasOwnProperty(X)&&n(h,X,D[X]);else"string"==typeof D&&r(h,D);return h}(n,r,s),h,X)}}function eb(n,r){return r>=n.expandoStartIndex}function tb(n,r,s,h){const D=n.data;if(null===D[s+1]){const X=D[Y()],me=eb(n,s);sb(X,h)&&null===r&&!me&&(r=!1),r=function Sw(n,r,s,h){const D=Os(n);let X=h?r.residualClasses:r.residualStyles;if(null===D)0===(h?r.classBindings:r.styleBindings)&&(s=Bf(s=Bm(null,n,r,s,h),r.attrs,h),X=null);else{const me=r.directiveStylingLast;if(-1===me||n[me]!==D)if(s=Bm(D,n,r,s,h),null===X){let Ge=function Cw(n,r,s){const h=s?r.classBindings:r.styleBindings;if(0!==vl(h))return n[ba(h)]}(n,r,h);void 0!==Ge&&Array.isArray(Ge)&&(Ge=Bm(null,n,r,Ge[1],h),Ge=Bf(Ge,r.attrs,h),function Tw(n,r,s,h){n[ba(s?r.classBindings:r.styleBindings)]=h}(n,r,h,Ge))}else X=function Iw(n,r,s){let h;const D=r.directiveEnd;for(let X=1+r.directiveStylingLast;X<D;X++)h=Bf(h,n[X].hostAttrs,s);return Bf(h,r.attrs,s)}(n,r,h)}return void 0!==X&&(h?r.residualClasses=X:r.residualStyles=X),s}(D,X,r,h),function pw(n,r,s,h,D,X){let me=X?r.classBindings:r.styleBindings,Pe=ba(me),Ge=vl(me);n[h]=s;let Bt,Et=!1;if(Array.isArray(s)){const yn=s;Bt=yn[1],(null===Bt||ja(yn,Bt)>0)&&(Et=!0)}else Bt=s;if(D)if(0!==Ge){const Ln=ba(n[Pe+1]);n[h+1]=sc(Ln,Pe),0!==Ln&&(n[Ln+1]=jd(n[Ln+1],h)),n[Pe+1]=function Gg(n,r){return 131071&n|r<<17}(n[Pe+1],h)}else n[h+1]=sc(Pe,0),0!==Pe&&(n[Pe+1]=jd(n[Pe+1],h)),Pe=h;else n[h+1]=sc(Ge,0),0===Pe?Pe=h:n[Ge+1]=jd(n[Ge+1],h),Ge=h;Et&&(n[h+1]=Gc(n[h+1])),zy(n,Bt,h,!0),zy(n,Bt,h,!1),function gw(n,r,s,h,D){const X=D?n.residualClasses:n.residualStyles;null!=X&&"string"==typeof r&&ja(X,r)>=0&&(s[h+1]=Ud(s[h+1]))}(r,Bt,n,h,X),me=sc(Pe,Ge),X?r.classBindings=me:r.styleBindings=me}(D,X,r,s,me,h)}}function Bm(n,r,s,h,D){let X=null;const me=s.directiveEnd;let Pe=s.directiveStylingLast;for(-1===Pe?Pe=s.directiveStart:Pe++;Pe<me&&(X=r[Pe],h=Bf(h,X.hostAttrs,D),X!==n);)Pe++;return null!==n&&(s.directiveStylingLast=Pe),h}function Bf(n,r,s){const h=s?1:2;let D=-1;if(null!==r)for(let X=0;X<r.length;X++){const me=r[X];"number"==typeof me?D=me:D===h&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),fo(n,me,!!s||r[++X]))}return void 0===n?null:n}function nb(n,r,s){fo(n,r,Xo(s))}function rb(n,r,s,h,D,X,me,Pe){if(!(3&r.type))return;const Ge=n.data,Et=Ge[Pe+1];gg(function wp(n){return 1==(1&n)}(Et)?ib(Ge,r,s,D,vl(Et),me):void 0)||(gg(X)||function Ep(n){return 2==(2&n)}(Et)&&(X=ib(Ge,null,s,D,Pe,me)),function $g(n,r,s,h,D){const X=dt(n);if(r)D?X?n.addClass(s,h):s.classList.add(h):X?n.removeClass(s,h):s.classList.remove(h);else{let me=-1===h.indexOf("-")?void 0:ya.DashCase;if(null==D)X?n.removeStyle(s,h,me):s.style.removeProperty(h);else{const Pe="string"==typeof D&&D.endsWith("!important");Pe&&(D=D.slice(0,-10),me|=ya.Important),X?n.setStyle(s,h,D,me):s.style.setProperty(h,D,Pe?"important":"")}}}(h,me,hr(Y(),s),D,X))}function ib(n,r,s,h,D,X){const me=null===r;let Pe;for(;D>0;){const Ge=n[D],Et=Array.isArray(Ge),Bt=Et?Ge[1]:Ge,yn=null===Bt;let Ln=s[D+1];Ln===yi&&(Ln=yn?Cn:void 0);let Qn=yn?Pl(Ln,h):Bt===h?Ln:void 0;if(Et&&!gg(Qn)&&(Qn=Pl(Ge,h)),gg(Qn)&&(Pe=Qn,me))return Pe;const br=n[D+1];D=me?ba(br):vl(br)}if(null!==r){let Ge=X?r.residualClasses:r.residualStyles;null!=Ge&&(Pe=Pl(Ge,h))}return Pe}function gg(n){return void 0!==n}
1function sb(n,r){return 0!=(n.flags&(r?16:32))}function ob(n,r=""){const s=Zn(),h=qr(),D=n+20,X=h.firstCreatePass?uc(h,D,1,r,null):h.data[D],me=s[D]=pn(s[11],r);Uc(h,s,me,X),Ui(X,!1)}function jm(n){return mg("",n,""),jm}function mg(n,r,s){const h=Zn(),D=ua(h,n,r,s);return D!==yi&&bo(h,Y(),D),mg}function Um(n,r,s,h,D){const X=Zn(),me=Tu(X,n,r,s,h,D);return me!==yi&&bo(X,Y(),me),Um}function Vm(n,r,s,h,D,X,me){const Pe=Zn(),Ge=Fa(Pe,n,r,s,h,D,X,me);return Ge!==yi&&bo(Pe,Y(),Ge),Vm}function $m(n,r,s,h,D,X,me,Pe,Ge){const Et=Zn(),Bt=Ql(Et,n,r,s,h,D,X,me,Pe,Ge);return Bt!==yi&&bo(Et,Y(),Bt),$m}function Hm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){const yn=Zn(),Ln=Iu(yn,n,r,s,h,D,X,me,Pe,Ge,Et,Bt);return Ln!==yi&&bo(yn,Y(),Ln),Hm}function Wm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln){const Qn=Zn(),br=_l(Qn,n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln);return br!==yi&&bo(Qn,Y(),br),Wm}function Gm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br){const Br=Zn(),Xr=xs(Br,n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br);return Xr!==yi&&bo(Br,Y(),Xr),Gm}function zm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr){const li=Zn(),Tr=Ts(li,n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr);return Tr!==yi&&bo(li,Y(),Tr),zm}function Km(n){const r=Zn(),s=vc(r,n);return s!==yi&&bo(r,Y(),s),Km}function ab(n,r,s){Al(fo,Jl,ua(Zn(),n,r,s),!0)}function lb(n,r,s,h,D){Al(fo,Jl,Tu(Zn(),n,r,s,h,D),!0)}function ub(n,r,s,h,D,X,me){Al(fo,Jl,Fa(Zn(),n,r,s,h,D,X,me),!0)}function cb(n,r,s,h,D,X,me,Pe,Ge){Al(fo,Jl,Ql(Zn(),n,r,s,h,D,X,me,Pe,Ge),!0)}function hb(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){Al(fo,Jl,Iu(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt),!0)}function db(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln){Al(fo,Jl,_l(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln),!0)}function fb(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br){Al(fo,Jl,xs(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br),!0)}function pb(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr){Al(fo,Jl,Ts(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr),!0)}function gb(n){Al(fo,Jl,vc(Zn(),n),!0)}function mb(n,r,s){El(ua(Zn(),n,r,s))}function vb(n,r,s,h,D){El(Tu(Zn(),n,r,s,h,D))}function yb(n,r,s,h,D,X,me){El(Fa(Zn(),n,r,s,h,D,X,me))}function bb(n,r,s,h,D,X,me,Pe,Ge){El(Ql(Zn(),n,r,s,h,D,X,me,Pe,Ge))}function _b(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){El(Iu(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt))}function Eb(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln){El(_l(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln))}function wb(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br){El(xs(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br))}function Ab(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr){El(Ts(Zn(),n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr))}function Sb(n){El(vc(Zn(),n))}function Xm(n,r,s,h,D){return wl(n,ua(Zn(),r,s,h),D,!1),Xm}function Ym(n,r,s,h,D,X,me){return wl(n,Tu(Zn(),r,s,h,D,X),me,!1),Ym}function qm(n,r,s,h,D,X,me,Pe,Ge){return wl(n,Fa(Zn(),r,s,h,D,X,me,Pe),Ge,!1),qm}function Qm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){return wl(n,Ql(Zn(),r,s,h,D,X,me,Pe,Ge,Et),Bt,!1),Qm}function Jm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln){return wl(n,Iu(Zn(),r,s,h,D,X,me,Pe,Ge,Et,Bt,yn),Ln,!1),Jm}function Zm(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br){return wl(n,_l(Zn(),r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn),br,!1),Zm}function ev(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr){return wl(n,xs(Zn(),r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br),Xr,!1),ev}function tv(n,r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li,Tr){return wl(n,Ts(Zn(),r,s,h,D,X,me,Pe,Ge,Et,Bt,yn,Ln,Qn,br,Br,Xr,li),Tr,!1),tv}function nv(n,r,s){return wl(n,vc(Zn(),r),s,!1),nv}function rv(n,r,s){const h=Zn();return ns(h,Qs(),r)&&Ho(qr(),lt(),h,n,r,h[11],s,!0),rv}function iv(n,r,s){const h=Zn();if(ns(h,Qs(),r)){const X=qr(),me=lt();Ho(X,me,h,n,r,bl(Os(X.data),me,h),s,!0)}return iv}const lh=void 0;var Mw=["en",[["a","p"],["AM","PM"],lh],[["AM","PM"],lh,lh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],lh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],lh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}
1, {0}",lh,"{1} 'at' {0}",lh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function xw(n){const s=Math.floor(Math.abs(n)),h=n.toString().replace(/^[^.]*\.?/,"").length;return 1===s&&0===h?1:5}];let ld={};function Ow(n,r,s){"string"!=typeof r&&(s=r,r=n[gi.LocaleId]),r=r.toLowerCase().replace(/_/g,"-"),ld[r]=n,s&&(ld[r][gi.ExtraData]=s)}function sv(n){const r=function Fw(n){return n.toLowerCase().replace(/_/g,"-")}(n);let s=Tb(r);if(s)return s;const h=r.split("-")[0];if(s=Tb(h),s)return s;if("en"===h)return Mw;throw new Error(`Missing locale data for the locale "${n}".`)}function kw(n){return sv(n)[gi.CurrencyCode]||null}function Cb(n){return sv(n)[gi.PluralCase]}function Tb(n){return n in ld||(ld[n]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[n]),ld[n]}function Nw(){ld={}}var gi=(()=>((gi=gi||{})[gi.LocaleId=0]="LocaleId",gi[gi.DayPeriodsFormat=1]="DayPeriodsFormat",gi[gi.DayPeriodsStandalone=2]="DayPeriodsStandalone",gi[gi.DaysFormat=3]="DaysFormat",gi[gi.DaysStandalone=4]="DaysStandalone",gi[gi.MonthsFormat=5]="MonthsFormat",gi[gi.MonthsStandalone=6]="MonthsStandalone",gi[gi.Eras=7]="Eras",gi[gi.FirstDayOfWeek=8]="FirstDayOfWeek",gi[gi.WeekendRange=9]="WeekendRange",gi[gi.DateFormat=10]="DateFormat",gi[gi.TimeFormat=11]="TimeFormat",gi[gi.DateTimeFormat=12]="DateTimeFormat",gi[gi.NumberSymbols=13]="NumberSymbols",gi[gi.NumberFormats=14]="NumberFormats",gi[gi.CurrencyCode=15]="CurrencyCode",gi[gi.CurrencySymbol=16]="CurrencySymbol",gi[gi.CurrencyName=17]="CurrencyName",gi[gi.Currencies=18]="Currencies",gi[gi.Directionality=19]="Directionality",gi[gi.PluralCase=20]="PluralCase",gi[gi.ExtraData=21]="ExtraData",gi))();const Lw=["zero","one","two","few","many"],jf="en-US",vg={marker:"element"},yg={marker:"ICU"};var oo=(()=>((oo=oo||{})[oo.SHIFT=2]="SHIFT",oo[oo.APPEND_EAGERLY=1]="APPEND_EAGERLY",oo[oo.COMMENT=2]="COMMENT",oo))();let Ib=jf;function Db(n){(function N(n,r){null==n&&K(r,n,null,"!=")})(n,"Expected localeId to be defined"),"string"==typeof n&&(Ib=n.toLowerCase().replace(/_/g,"-"))}function Pb(n,r,s){const h=r.insertBeforeIndex,D=Array.isArray(h)?h[0]:h;return null===D?cp(n,0,s):xn(s[D])}function Rb(n,r,s,h,D){const X=r.insertBeforeIndex;if(Array.isArray(X)){let me=h,Pe=null;if(3&r.type||(Pe=me,me=D),null!==me&&0==(2&r.flags))for(let Ge=1;Ge<X.length;Ge++)Jo(n,me,s[X[Ge]],Pe,!1)}}function xb(n,r){if(n.push(r),n.length>1)for(let s=n.length-2;s>=0;s--){const h=n[s];Mb(h)||Vw(h,r)&&null===$w(h)&&Hw(h,r.index)}}function Mb(n){return!(64&n.type)}function Vw(n,r){return Mb(r)||n.index>r.index}function $w(n){const r=n.insertBeforeIndex;return Array.isArray(r)?r[0]:r}function Hw(n,r){const s=n.insertBeforeIndex;Array.isArray(s)?s[0]=r:(Dh(Pb,Rb),n.insertBeforeIndex=r)}function Uf(n,r){const s=n.data[r];return null===s||"string"==typeof s?null:s.hasOwnProperty("currentCaseLViewIndex")?s:s.value}function zw(n,r,s){const h=Zd(n,s,64,null,null);return xb(r,h),h}function bg(n,r){const s=r[n.currentCaseLViewIndex];return null===s?s:s<0?~s:s}function Ob(n){return n>>>17}function kb(n){return(131070&n)>>>1}let Vf=0,$f=0;function Fb(n,r,s,h){const D=s[11];let me,X=null;for(let Pe=0;Pe<r.length;Pe++){const Ge=r[Pe];if("string"==typeof Ge){const Et=r[++Pe];null===s[Et]&&(s[Et]=pn(D,Ge))}else if("number"==typeof Ge)switch(1&Ge){case 0:const Et=Ob(Ge);let Bt,yn;if(null===X&&(X=Et,me=jo(D,h)),Et===X?(Bt=h,yn=me):(Bt=null,yn=xn(s[Et])),null!==yn){const Br=kb(Ge);Jo(D,yn,s[Br],Bt,!1);const li=Uf(n,Br);if(null!==li&&"object"==typeof li){const Tr=bg(li,s);null!==Tr&&Fb(n,li.create[Tr],s,s[li.anchorIdx])}}break;case 1:const Qn=r[++Pe],br=r[++Pe];uf(D,hr(Ge>>>1,s),null,null,Qn,br,null)}else switch(Ge){case yg:const Et=r[++Pe],Bt=r[++Pe];null===s[Bt]&&io(s[Bt]=On(D,Et),s);break;case vg:const yn=r[++Pe],Ln=r[++Pe];null===s[Ln]&&io(s[Ln]=Kn(D,yn,null),s)}}}function Lb(n,r,s,h,D){for(let X=0;X<s.length;X++){const me=s[X],Pe=s[++X];if(me&D){let Ge="";for(let Et=X+1;Et<=X+Pe;Et++){const Bt=s[Et];if("string"==typeof Bt)Ge+=Bt;else if("number"==typeof Bt)if(Bt<0)Ge+=G(r[h-Bt]);else{const yn=Bt>>>2;switch(3&Bt){case 1:const Ln=s[++Et],Qn=s[++Et],br=n.data[yn];"string"==typeof br?uf(r[11],r[yn],null,br,Ln,Ge,Qn):Ho(n,br,r,Ln,Ge,r[11],Qn,!1);break;case 0:const Br=r[yn];null!==Br&&Rn(r[11],Br,Ge);break;case 2:Qw(n,Uf(n,yn),r,Ge);break;case 3:Bb(n,Uf(n,yn),h,r)}}}}else{const Ge=s[X+1];if(Ge>0&&3==(3&Ge)){const Bt=Uf(n,Ge>>>2);r[Bt.currentCaseLViewIndex]<0&&Bb(n,Bt,h,r)}}X+=Pe}}function Bb(n,r,s,h){let D=h[r.currentCaseLViewIndex];if(null!==D){let X=Vf;D<0&&(D=h[r.currentCaseLViewIndex]=~D,X=-1),Lb(n,h,r.update[D],s,X)}}function Qw(n,r,s,h){const D=function Jw(n,r){let s=n.cases.indexOf(r);if(-1===s)switch(n.type){case 1:{const h=function Bw(n,r){const s=Cb(r)(parseInt(n,10)),h=Lw[s];return void 0!==h?h:"other"}(r,function Uw(){return Ib}());
1s=n.cases.indexOf(h),-1===s&&"other"!==h&&(s=n.cases.indexOf("other"));break}case 0:s=n.cases.indexOf("other")}return-1===s?null:s}(r,h);if(bg(r,s)!==D&&(jb(n,r,s),s[r.currentCaseLViewIndex]=null===D?null:~D,null!==D)){const me=s[r.anchorIdx];me&&Fb(n,r.create[D],s,me)}}function jb(n,r,s){let h=bg(r,s);if(null!==h){const D=r.remove[h];for(let X=0;X<D.length;X++){const me=D[X];if(me>0){const Pe=hr(me,s);null!==Pe&&nc(s[11],Pe)}else jb(n,Uf(n,~me),s)}}}function Zw(){const n=[];let s,h,r=-1;function X(Pe,Ge){r=0;const Et=bg(Pe,Ge);h=null!==Et?Pe.remove[Et]:Cn}function me(){if(r<h.length){const Pe=h[r++];return Pe>0?s[Pe]:(n.push(r,h),X(s[1].data[~Pe],s),me())}return 0===n.length?null:(h=n.pop(),r=n.pop(),me())}return function D(Pe,Ge){for(s=Ge;n.length;)n.pop();return X(Pe.value,Ge),me}}const _g=/\ufffd(\d+):?\d*\ufffd/gi,eA=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,tA=/\ufffd(\d+)\ufffd/,Vb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,nA=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,rA=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,iA=/\uE500/g;function $b(n,r,s,h,D,X,me){const Pe=bu(n,h,1,null);let Ge=Pe<<oo.SHIFT,Et=Ki();r===Et&&(Et=null),null===Et&&(Ge|=oo.APPEND_EAGERLY),me&&(Ge|=oo.COMMENT,function a(n){void 0===Lc&&(Lc=n())}(Zw)),D.push(Ge,null===X?"":X);const Bt=Zd(n,Pe,me?32:1,null===X?"":X,null);xb(s,Bt);const yn=Bt.index;return Ui(Bt,!1),null!==Et&&r!==Et&&function Gw(n,r){let s=n.insertBeforeIndex;null===s?(Dh(Pb,Rb),s=n.insertBeforeIndex=[null,r]):(function ve(n,r,s){n!=r&&K(s,n,r,"==")}(Array.isArray(s),!0,"Expecting array here"),s.push(r))}(Et,yn),Bt}function aA(n,r,s,h,D,X,me){const Pe=me.match(_g),Ge=$b(n,r,s,X,h,Pe?null:me,!1);Pe&&ud(D,me,Ge.index,null,0,null)}function ud(n,r,s,h,D,X){const me=n.length,Pe=me+1;n.push(null,null);const Ge=me+2,Et=r.split(_g);let Bt=0;for(let yn=0;yn<Et.length;yn++){const Ln=Et[yn];if(1&yn){const Qn=D+parseInt(Ln,10);n.push(-1-Qn),Bt|=Hb(Qn)}else""!==Ln&&n.push(Ln)}return n.push(s<<2|(h?1:0)),h&&n.push(h,X),n[me]=Bt,n[Pe]=n.length-Ge,Bt}function uA(n){let r=0;for(let s=0;s<n.length;s++){const h=n[s];"number"==typeof h&&h<0&&r++}return r}function Hb(n){return 1<<Math.min(n,31)}function Wb(n){let r,X,s="",h=0,D=!1;for(;null!==(r=nA.exec(n));)D?r[0]===`\ufffd/*${X}\ufffd`&&(h=r.index,D=!1):(s+=n.substring(h,r.index+r[0].length),X=r[1],D=!0);return s+=n.substr(h),s}function Gb(n,r,s,h,D,X){let me=0;const Pe={type:D.type,currentCaseLViewIndex:bu(n,r,1,null),anchorIdx:X,cases:[],create:[],remove:[],update:[]};(function gA(n,r,s){n.push(Hb(r.mainBinding),2,-1-r.mainBinding,s<<2|2)})(s,D,X),function Ww(n,r,s){const h=n.data[r];null===h?n.data[r]=s:h.value=s}(n,X,Pe);const Ge=D.values;for(let Et=0;Et<Ge.length;Et++){const Bt=Ge[Et],yn=[];for(let Ln=0;Ln<Bt.length;Ln++){const Qn=Bt[Ln];if("string"!=typeof Qn){const br=yn.push(Qn)-1;Bt[Ln]=`\x3c!--\ufffd${br}\ufffd--\x3e`}}me=fA(n,Pe,r,s,h,D.cases[Et],Bt.join(""),yn)|me}me&&function mA(n,r,s){n.push(r,1,s<<2|3)}(s,me,X)}function dA(n){const r=[],s=[];let h=1,D=0;const X=ov(n=n.replace(Vb,function(me,Pe,Ge){return h="select"===Ge?0:1,D=parseInt(Pe.substr(1),10),""}));for(let me=0;me<X.length;){let Pe=X[me++].trim();1===h&&(Pe=Pe.replace(/\s*(?:=)?(\w+)\s*/,"$1")),Pe.length&&r.push(Pe);const Ge=ov(X[me++]);r.length>s.length&&s.push(Ge)}return{type:h,mainBinding:D,cases:r,values:s}}function ov(n){if(!n)return[];let r=0;const s=[],h=[],D=/[{}]/g;let X;for(D.lastIndex=0;X=D.exec(n);){const Pe=X.index;if("}"==X[0]){if(s.pop(),0==s.length){const Ge=n.substring(r,Pe);Vb.test(Ge)?h.push(dA(Ge)):h.push(Ge),r=Pe+1}}else{if(0==s.length){const Ge=n.substring(r,Pe);h.push(Ge),r=Pe+1}s.push("{")}}const me=n.substring(r);return h.push(me),h}function fA(n,r,s,h,D,X,me,Pe){const Ge=[],Et=[],Bt=[];r.cases.push(X),r.create.push(Ge),r.remove.push(Et),r.update.push(Bt);const Ln=Sc(be()).getInertBodyElement(me),Qn=xc(Ln)||Ln;return Qn?zb(n,r,s,h,Ge,Et,Bt,Qn,D,Pe,0):0}function zb(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){let yn=0,Ln=Pe.firstChild;for(;Ln;){const Qn=bu(n,s,1,null);switch(Ln.nodeType){case Node.ELEMENT_NODE:const br=Ln,Br=br.tagName.toLowerCase();if(Pc.hasOwnProperty(Br)){av(D,vg,Br,Ge,Qn),n.data[Qn]=Br;const pi=br.attributes;for(let Qi=0;Qi<pi.length;Qi++){const Is=pi.item(Qi),La=Is.name.toLowerCase();Is.value.match(_g)?du.hasOwnProperty(La)&&ud(me,Is.value,Qn,Is.name,0,Wu[La]?Da:Gu[La]?hu:null):vA(D,Qn,Is)}yn=zb(n,r,s,h,D,X,me,Ln,Qn,Et,Bt+1)|yn,Kb(X,Qn,Bt)}break;case Node.TEXT_NODE:const Xr=Ln.textContent||"",li=Xr.match(_g);av(D,null,li?"":Xr,Ge,Qn),Kb(X,Qn,Bt),li&&(yn=ud(me,Xr,Qn,null,0,null)|yn);break;case Node.COMMENT_NODE:const Tr=tA.exec(Ln.textContent||"");if(Tr){const Qi=Et[parseInt(Tr[1],10)];av(D,yg,"",Ge,Qn),Gb(n,s,h,Ge,Qi,Qn),pA(X,Qn,Bt)}}Ln=Ln.nextSibling}return yn}function Kb(n,r,s){0===s&&n.push(r)}function pA(n,r,s){0===s&&(n.push(~r),n.push(r))}function av(n,r,s,h,D){null!==r&&n.push(r),n.push(s,D,function Kw(n,r,s){return n|r<<17|s<<1}(0,h,D))}function vA(n,r,s){n.push(r<<1|1,s.name,s.value)}const yA=/\[(\ufffd.+?\ufffd?)\]/,bA=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,_A=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,EA=/{([A-Z0-9_]+)}
1/g,wA=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,AA=/\/\*/,SA=/\d+\:(\d+)/;function lv(n,r,s=-1){const h=qr(),D=Zn(),X=20+n,me=Wn(h.consts,r),Pe=Ki();h.firstCreatePass&&function oA(n,r,s,h,D,X){const me=Ki(),Pe=[],Ge=[],Et=[[]];D=function hA(n,r){if(function cA(n){return-1===n}(r))return Wb(n);{const s=n.indexOf(`:${r}\ufffd`)+2+r.toString().length,h=n.search(new RegExp(`\ufffd\\/\\*\\d+:${r}\ufffd`));return Wb(n.substring(s,h))}}(D,X);const Bt=function sA(n){return n.replace(iA," ")}(D).split(rA);for(let yn=0;yn<Bt.length;yn++){let Ln=Bt[yn];if(0==(1&yn)){const Qn=ov(Ln);for(let br=0;br<Qn.length;br++){let Br=Qn[br];if(0==(1&br)){const Xr=Br;""!==Xr&&aA(n,me,Et[0],Pe,Ge,s,Xr)}else{const Xr=Br;if("object"!=typeof Xr)throw new Error(`Unable to parse ICU expression in "${D}" message.`);Gb(n,s,Ge,r,Xr,$b(n,me,Et[0],s,Pe,"",!0).index)}}}else{const Qn=47===Ln.charCodeAt(0),Br=(Ln.charCodeAt(Qn?1:0),20+Number.parseInt(Ln.substring(Qn?2:1)));if(Qn)Et.shift(),Ui(Ki(),!1);else{const Xr=zw(n,Et[0],Br);Et.unshift([]),Ui(Xr,!0)}}}n.data[h]={create:Pe,update:Ge}}(h,null===Pe?0:Pe.index,D,X,me,s);const Ge=h.data[X],Bt=Vl(h,Pe===D[6]?null:Pe,D);(function qw(n,r,s,h){const D=n[11];for(let X=0;X<r.length;X++){const me=r[X++],Pe=r[X],Ge=(me&oo.COMMENT)===oo.COMMENT,Et=(me&oo.APPEND_EAGERLY)===oo.APPEND_EAGERLY,Bt=me>>>oo.SHIFT;let yn=n[Bt];null===yn&&(yn=n[Bt]=Ge?D.createComment(Pe):pn(D,Pe)),Et&&null!==s&&Jo(D,s,yn,h,!1)}})(D,Ge.create,Bt,Pe&&8&Pe.type?D[Pe.index]:null),Xs(!0)}function uv(){Xs(!1)}function Yb(n,r,s){lv(n,r,s),uv()}function qb(n,r){const s=qr();!function lA(n,r,s){const D=mi().index,X=[];if(n.firstCreatePass&&null===n.data[r]){for(let me=0;me<s.length;me+=2){const Pe=s[me],Ge=s[me+1];if(""!==Ge){if(eA.test(Ge))throw new Error(`ICU expressions are not supported in attributes. Message: "${Ge}".`);ud(X,Ge,D,Pe,uA(X),null)}}n.data[r]=X}}(s,n+20,Wn(s.consts,r))}function cv(n){return function Xw(n){n&&(Vf|=1<<Math.min($f,31)),$f++}(ns(Zn(),Qs(),n)),cv}function Qb(n){!function Yw(n,r,s){if($f>0){const h=n.data[s];Lb(n,r,Array.isArray(h)?h:h.update,Ws()-$f-1,Vf)}Vf=0,$f=0}(qr(),Zn(),n+20)}function Jb(n,r={}){return function CA(n,r={}){let s=n;if(yA.test(n)){const h={},D=[0];s=s.replace(bA,(X,me,Pe)=>{const Ge=me||Pe,Et=h[Ge]||[];if(Et.length||(Ge.split("|").forEach(Br=>{const Xr=Br.match(SA),li=Xr?parseInt(Xr[1],10):0,Tr=AA.test(Br);Et.push([li,Tr,Br])}),h[Ge]=Et),!Et.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ge}`);const Bt=D[D.length-1];let yn=0;for(let Br=0;Br<Et.length;Br++)if(Et[Br][0]===Bt){yn=Br;break}const[Ln,Qn,br]=Et[yn];return Qn?D.pop():Bt!==Ln&&D.push(Ln),Et.splice(yn,1),br})}return Object.keys(r).length&&(s=s.replace(_A,(h,D,X,me,Pe,Ge)=>r.hasOwnProperty(X)?`${D}${r[X]}${Ge}`:h),s=s.replace(EA,(h,D)=>r.hasOwnProperty(D)?r[D]:h),s=s.replace(wA,(h,D)=>
vendor: 4,331 bytes, line 1
1{if(r.hasOwnProperty(D)){const X=r[D];if(!X.length)throw new Error(`i18n postprocess: unmatched ICU - ${h} with key: ${D}`);return X.shift()}return h})),s}(n,r)}function hv(n,r,s,h,D){if(n=M(n),Array.isArray(n))for(let X=0;X<n.length;X++)hv(n[X],r,s,h,D);else{const X=qr(),me=Zn();let Pe=fc(n)?n:M(n.provide),Ge=Qh(n);const Et=mi(),Bt=1048575&Et.providerIndexes,yn=Et.directiveStart,Ln=Et.providerIndexes>>20;if(fc(n)||!n.multi){const Qn=new co(Ge,D,Lf),br=fv(Pe,r,D?Bt:Bt+Ln,yn);-1===br?(qe(Pr(Et,me),X,Pe),dv(X,n,r.length),r.push(Pe),Et.directiveStart++,Et.directiveEnd++,D&&(Et.providerIndexes+=1048576),s.push(Qn),me.push(Qn)):(s[br]=Qn,me[br]=Qn)}else{const Qn=fv(Pe,r,Bt+Ln,yn),br=fv(Pe,r,Bt,Bt+Ln),Br=Qn>=0&&s[Qn],Xr=br>=0&&s[br];if(D&&!Xr||!D&&!Br){qe(Pr(Et,me),X,Pe);const li=function PA(n,r,s,h,D){const X=new co(n,s,Lf);return X.multi=[],X.index=r,X.componentProviders=0,Zb(X,D,h&&!s),X}(D?DA:IA,s.length,D,h,Ge);!D&&Xr&&(s[br].providerFactory=li),dv(X,n,r.length,0),r.push(Pe),Et.directiveStart++,Et.directiveEnd++,D&&(Et.providerIndexes+=1048576),s.push(li),me.push(li)}else dv(X,n,Qn>-1?Qn:br,Zb(s[D?br:Qn],Ge,!D&&h));!D&&h&&Xr&&s[br].componentProviders++}}}function dv(n,r,s,h){const D=fc(r),X=function Xp(n){return!!n.useClass}(r);if(D||X){const Ge=(X?M(r.useClass):r).prototype.ngOnDestroy;if(Ge){const Et=n.destroyHooks||(n.destroyHooks=[]);if(!D&&r.multi){const Bt=Et.indexOf(s);-1===Bt?Et.push(s,[h,Ge]):Et[Bt+1].push(h,Ge)}else Et.push(s,Ge)}}}function Zb(n,r,s){return s&&n.componentProviders++,n.multi.push(r)-1}function fv(n,r,s,h){for(let D=s;D<h;D++)if(r[D]===n)return D;return-1}function IA(n,r,s,h){return pv(this.multi,[])}function DA(n,r,s,h){const D=this.multi;let X;if(this.providerFactory){const me=this.providerFactory.componentProviders,Pe=xr(s,s[1],this.providerFactory.index,h);X=Pe.slice(0,me),pv(D,X);for(let Ge=me;Ge<Pe.length;Ge++)X.push(Pe[Ge])}else X=[],pv(D,X);return X}function pv(n,r){for(let s=0;s<n.length;s++)r.push((0,n[s])());return r}function e_(n,r=[]){return s=>{s.providersResolver=(h,D)=>function TA(n,r,s){const h=qr();if(h.firstCreatePass){const D=oi(n);hv(s,h.data,h.blueprint,D,!0),hv(r,h.data,h.blueprint,D,!1)}}(h,D?D(n):n,r)}}class t_{}class Eg{}class xA{resolveComponentFactory(r){throw function RA(n){const r=Error(`No component factory found for ${m(n)}. Did you add it to @NgModule.entryComponents?`);return r.ngComponent=n,r}(r)}}let wg=(()=>{class n{}return n.NULL=new xA,n})();function MA(){return cd(mi(),Zn())}function cd(n,r){return new Wf(pr(n,r))}let Wf=(()=>{class n{constructor(s){this.nativeElement=s}}return n.__NG_ELEMENT_ID__=MA,n})();function OA(n){return n instanceof Wf?n.nativeElement:n}class r_{}let kA=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function FA(){const n=Zn(),s=Je(mi().index,n);return function NA(n){return n[11]}(or(s)?s:n)}(),n})(),i_=(()=>{class n{}return n.\u0275prov=Oe({token:n,providedIn:"root",factory:()=>null}),n})();class s_{constructor(r){this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}}const o_=new s_("13.2.7"),Ag={};function Sg(n,r,s,h,D=!1){for(;null!==s;){const X=r[s.index];if(null!==X&&h.push(xn(X)),wr(X))for(let Pe=10;Pe<X.length;Pe++){const Ge=X[Pe],Et=Ge[1].firstChild;null!==Et&&Sg(Ge[1],Ge,Et,h)}const me=s.type;if(8&me)Sg(n,r,s.child,h);else if(32&me){const Pe=Zu(s,r);let Ge;for(;Ge=Pe();)h.push(Ge)}else if(16&me){const Pe=Md(r,s);if(Array.isArray(Pe))h.push(...Pe);else{const Ge=o(r[16]);Sg(Ge[1],Ge,Pe,h,!0)}}s=D?s.projectionNext:s.next}return h}class hd{constructor(r,s){this._lView=r,this._cdRefInjectingView=s,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const r=this._lView,s=r[1];return Sg(s,r,s.firstChild,[])}get context(){return this._lView[8]}set context(r){this._lView[8]=r}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[3];if(wr(r)){const s=r[8],h=s?s.indexOf(this):-1;h>-1&&(ls(r,h),da(s,h))}this._attachedToViewContainer=!1}Cs(this._lView[1],this._lView)}onDestroy(r){kp(this._lView[1],this._lView,null,r)}markForCheck(){Wh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){gf(this._lView[1],this._lView,this.context)}
1checkNoChanges(){!function Jc(n,r,s){Ms(!0);try{gf(n,r,s)}finally{Ms(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new T(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ni(n,r){$c(n,r,r[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new T(902,"");this._appRef=r}}class LA extends hd{constructor(r){super(r),this._view=r}detectChanges(){Kl(this._view)}checkNoChanges(){!function $p(n){Ms(!0);try{Kl(n)}finally{Ms(!1)}}(this._view)}get context(){return null}}class a_ extends wg{constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const s=wn(r);return new Cg(s,this.ngModule)}}function l_(n){const r=[];for(let s in n)n.hasOwnProperty(s)&&r.push({propName:n[s],templateName:s});return r}class Cg extends Eg{constructor(r,s){super(),this.componentDef=r,this.ngModule=s,this.componentType=r.type,this.selector=function bp(n){return n.map(yp).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],this.isBoundToModule=!!s}get inputs(){return l_(this.componentDef.inputs)}get outputs(){return l_(this.componentDef.outputs)}create(r,s,h,D){const X=(D=D||this.ngModule)?function jA(n,r){return{get:(s,h,D)=>{const X=n.get(s,Ag,D);return X!==Ag||h===Ag?X:r.get(s,h,D)}}}(r,D.injector):r,me=X.get(r_,rn),Pe=X.get(i_,null),Ge=me.createRenderer(null,this.componentDef),Et=this.componentDef.selectors[0][0]||"div",Bt=h?zl(Ge,h,this.componentDef.encapsulation):Kn(me.createRenderer(null,this.componentDef),Et,function BA(n){const r=n.toLowerCase();return"svg"===r?"svg":"math"===r?_r:null}(Et)),yn=this.componentDef.onPush?576:528,Ln=Zh(),Qn=wu(0,null,null,1,0,null,null,null,null,null),br=lc(null,Qn,Ln,yn,null,null,me,Ge,Pe,X);let Br,Xr;ki(br);try{const li=If(Bt,this.componentDef,br,me,Ge);if(Bt)if(h)Ke(Ge,Bt,["ng-version",o_.full]);else{const{attrs:Tr,classes:pi}=function Wc(n){const r=[],s=[];let h=1,D=2;for(;h<n.length;){let X=n[h];if("string"==typeof X)2===D?""!==X&&r.push(X,n[++h]):8===D&&s.push(X);else{if(!Zo(D))break;D=X}h++}return{attrs:r,classes:s}}(this.componentDef.selectors[0]);Tr&&Ke(Ge,Bt,Tr),pi&&pi.length>0&&Rh(Ge,Bt,pi.join(" "))}if(Xr=ii(Qn,20),void 0!==s){const Tr=Xr.projection=[];for(let pi=0;pi<this.ngContentSelectors.length;pi++){const Qi=s[pi];Tr.push(null!=Qi?Array.from(Qi):null)}}Br=sh(li,this.componentDef,br,Ln,[ed]),_u(Qn,br,null)}finally{lo()}return new u_(this.componentType,Br,cd(Xr,br),br,Xr)}}class u_ extends t_{constructor(r,s,h,D,X){super(),this.location=h,this._rootLView=D,this._tNode=X,this.instance=s,this.hostView=this.changeDetectorRef=new LA(D),this.componentType=r}get injector(){return new ts(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(r){this.hostView.onDestroy(r)}}function c_(n,r,s,h){return at(()=>{const D=n;null!==r&&(D.hasOwnProperty("decorators")&&void 0!==D.decorators?D.decorators.push(...r):D.decorators=r),null!==s&&(D.ctorParameters=s),null!==h&&(D.propDecorators=D.hasOwnProperty("propDecorators")&&void 0!==D.propDecorators?Object.assign(Object.assign({},D.propDecorators),h):h)})}class dd{}class h_{}const fd=new Map;function f_(n){const r=new Set;!function s(h){const D=ir(h,!0),X=D.id;if(null!==X){(function d_(n,r,s){if(r&&r!==s)throw new Error(`Duplicate module registered for ${n} - ${m(r)} vs ${m(r.name)}`)})(X,fd.get(X),h),fd.set(X,h)}const me=oa(D.imports);for(const Pe of me)r.has(Pe)||(r.add(Pe),s(Pe))}(n)}function p_(n){return fd.get(n)||Ce[n]}function VA(n,r){return new gv(n,null!=r?r:null)}class gv extends dd{constructor(r,s){super(),this._parent=s,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new a_(this);const h=ir(r);this._bootstrapComponents=oa(h.bootstrap),this._r3Injector=Gp(r,s,[{provide:dd,useValue:this},{provide:wg,useValue:this.componentFactoryResolver}],m(r)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(r)}get(r,s=Ks.THROW_IF_NOT_FOUND,h=ut.Default){return r===Ks||r===dd||r===th?this:this._r3Injector.get(r,s,h)}destroy(){const r=this._r3Injector;
1!r.destroyed&&r.destroy(),this.destroyCbs.forEach(s=>s()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class Tg extends h_{constructor(r){super(),this.moduleType=r,null!==ir(r)&&f_(r)}create(r){return new gv(this.moduleType,r)}}function g_(n,r,s){const h=as()+n,D=Zn();return D[h]===yi?Zr(D,h,s?r.call(s):r()):Cu(D,h)}function m_(n,r,s,h){return C_(Zn(),as(),n,r,s,h)}function v_(n,r,s,h,D){return T_(Zn(),as(),n,r,s,h,D)}function y_(n,r,s,h,D,X){return I_(Zn(),as(),n,r,s,h,D,X)}function b_(n,r,s,h,D,X,me){return D_(Zn(),as(),n,r,s,h,D,X,me)}function __(n,r,s,h,D,X,me,Pe){const Ge=as()+n,Et=Zn(),Bt=Ea(Et,Ge,s,h,D,X);return ns(Et,Ge+4,me)||Bt?Zr(Et,Ge+5,Pe?r.call(Pe,s,h,D,X,me):r(s,h,D,X,me)):Cu(Et,Ge+5)}function E_(n,r,s,h,D,X,me,Pe,Ge){const Et=as()+n,Bt=Zn(),yn=Ea(Bt,Et,s,h,D,X);return _a(Bt,Et+4,me,Pe)||yn?Zr(Bt,Et+6,Ge?r.call(Ge,s,h,D,X,me,Pe):r(s,h,D,X,me,Pe)):Cu(Bt,Et+6)}function w_(n,r,s,h,D,X,me,Pe,Ge,Et){const Bt=as()+n,yn=Zn();let Ln=Ea(yn,Bt,s,h,D,X);return la(yn,Bt+4,me,Pe,Ge)||Ln?Zr(yn,Bt+7,Et?r.call(Et,s,h,D,X,me,Pe,Ge):r(s,h,D,X,me,Pe,Ge)):Cu(yn,Bt+7)}function A_(n,r,s,h,D,X,me,Pe,Ge,Et,Bt){const yn=as()+n,Ln=Zn(),Qn=Ea(Ln,yn,s,h,D,X);return Ea(Ln,yn+4,me,Pe,Ge,Et)||Qn?Zr(Ln,yn+8,Bt?r.call(Bt,s,h,D,X,me,Pe,Ge,Et):r(s,h,D,X,me,Pe,Ge,Et)):Cu(Ln,yn+8)}function S_(n,r,s,h){return P_(Zn(),as(),n,r,s,h)}function Gf(n,r){const s=n[r];return s===yi?void 0:s}function C_(n,r,s,h,D,X){const me=r+s;return ns(n,me,D)?Zr(n,me+1,X?h.call(X,D):h(D)):Gf(n,me+1)}function T_(n,r,s,h,D,X,me){const Pe=r+s;return _a(n,Pe,D,X)?Zr(n,Pe+2,me?h.call(me,D,X):h(D,X)):Gf(n,Pe+2)}function I_(n,r,s,h,D,X,me,Pe){const Ge=r+s;return la(n,Ge,D,X,me)?Zr(n,Ge+3,Pe?h.call(Pe,D,X,me):h(D,X,me)):Gf(n,Ge+3)}function D_(n,r,s,h,D,X,me,Pe,Ge){const Et=r+s;return Ea(n,Et,D,X,me,Pe)?Zr(n,Et+4,Ge?h.call(Ge,D,X,me,Pe):h(D,X,me,Pe)):Gf(n,Et+4)}function P_(n,r,s,h,D,X){let me=r+s,Pe=!1;for(let Ge=0;Ge<D.length;Ge++)ns(n,me++,D[Ge])&&(Pe=!0);return Pe?Zr(n,me,h.apply(X,D)):Gf(n,me)}function R_(n,r){const s=qr();let h;const D=n+20;s.firstCreatePass?(h=function $A(n,r){if(r)for(let s=r.length-1;s>=0;s--){const h=r[s];if(n===h.name)return h}}(r,s.pipeRegistry),s.data[D]=h,h.onDestroy&&(s.destroyHooks||(s.destroyHooks=[])).push(D,h.onDestroy)):h=s.data[D];const X=h.factory||(h.factory=hi(h.type)),me=ct(Lf);try{const Pe=qt(!1),Ge=X();return qt(Pe),Pn(s,Zn(),D,Ge),Ge}finally{ct(me)}}function x_(n,r,s){const h=n+20,D=Zn(),X=Or(D,h);return zf(D,h)?C_(D,as(),r,X.transform,s,X):X.transform(s)}function M_(n,r,s,h){const D=n+20,X=Zn(),me=Or(X,D);return zf(X,D)?T_(X,as(),r,me.transform,s,h,me):me.transform(s,h)}function O_(n,r,s,h,D){const X=n+20,me=Zn(),Pe=Or(me,X);return zf(me,X)?I_(me,as(),r,Pe.transform,s,h,D,Pe):Pe.transform(s,h,D)}function k_(n,r,s,h,D,X){const me=n+20,Pe=Zn(),Ge=Or(Pe,me);return zf(Pe,me)?D_(Pe,as(),r,Ge.transform,s,h,D,X,Ge):Ge.transform(s,h,D,X)}function N_(n,r,s){const h=n+20,D=Zn(),X=Or(D,h);return zf(D,h)?P_(D,as(),r,X.transform,s,X):X.transform.apply(X,s)}function zf(n,r){return n[1].data[r].pure}function mv(n){return r=>{setTimeout(n,void 0,r)}}const Zl=class HA extends t.xQ{constructor(r=!1){super(),this.__isAsync=r}emit(r){super.next(r)}subscribe(r,s,h){var D,X,me;let Pe=r,Ge=s||(()=>null),Et=h;if(r&&"object"==typeof r){const yn=r;Pe=null===(D=yn.next)||void 0===D?void 0:D.bind(yn),Ge=null===(X=yn.error)||void 0===X?void 0:X.bind(yn),Et=null===(me=yn.complete)||void 0===me?void 0:me.bind(yn)}this.__isAsync&&(Ge=mv(Ge),Pe&&(Pe=mv(Pe)),Et&&(Et=mv(Et)));const Bt=super.subscribe({next:Pe,error:Ge,complete:Et});return r instanceof _.w&&r.add(Bt),Bt}};function WA(){return this._results[mc()]()}class Ig{constructor(r=!1){this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const s=mc(),h=Ig.prototype;h[s]||(h[s]=WA)}get changes(){return this._changes||(this._changes=new Zl)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,s){return this._results.reduce(r,s)}
1forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,s){const h=this;h.dirty=!1;const D=Oo(r);(this._changesDetected=!function Pu(n,r,s){if(n.length!==r.length)return!1;for(let h=0;h<n.length;h++){let D=n[h],X=r[h];if(s&&(D=s(D),X=s(X)),X!==D)return!1}return!0}(h._results,D,s))&&(h._results=D,h.length=D.length,h.last=D[this.length-1],h.first=D[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Kf=(()=>{class n{}return n.__NG_ELEMENT_ID__=KA,n})();const GA=Kf,zA=class extends GA{constructor(r,s,h){super(),this._declarationLView=r,this._declarationTContainer=s,this.elementRef=h}createEmbeddedView(r){const s=this._declarationTContainer.tViews,h=lc(this._declarationLView,s,r,16,null,s.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];const X=this._declarationLView[19];return null!==X&&(h[19]=X.createEmbeddedView(s)),_u(s,h,r),new hd(h)}};function KA(){return Dg(mi(),Zn())}function Dg(n,r){return 4&n.type?new zA(r,n,cd(n,r)):null}let Pg=(()=>{class n{}return n.__NG_ELEMENT_ID__=XA,n})();function XA(){return B_(mi(),Zn())}const YA=Pg,F_=class extends YA{constructor(r,s,h){super(),this._lContainer=r,this._hostTNode=s,this._hostLView=h}get element(){return cd(this._hostTNode,this._hostLView)}get injector(){return new ts(this._hostTNode,this._hostLView)}get parentInjector(){const r=_e(this._hostTNode,this._hostLView);if(B(r)){const s=rt(r,this._hostLView),h=fe(r);return new ts(s[1].data[h+8],s)}return new ts(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const s=L_(this._lContainer);return null!==s&&s[r]||null}get length(){return this._lContainer.length-10}createEmbeddedView(r,s,h){const D=r.createEmbeddedView(s||{});return this.insert(D,h),D}createComponent(r,s,h,D,X){const me=r&&!Vo(r);let Pe;if(me)Pe=s;else{const yn=s||{};Pe=yn.index,h=yn.injector,D=yn.projectableNodes,X=yn.ngModuleRef}const Ge=me?r:new Cg(wn(r)),Et=h||this.parentInjector;if(!X&&null==Ge.ngModule){const Ln=(me?Et:this.parentInjector).get(dd,null);Ln&&(X=Ln)}const Bt=Ge.create(Et,D,void 0,X);return this.insert(Bt.hostView,Pe),Bt}insert(r,s){const h=r._lView,D=h[1];if(function It(n){return wr(n[3])}(h)){const Bt=this.indexOf(r);if(-1!==Bt)this.detach(Bt);else{const yn=h[3],Ln=new F_(yn,yn[6],yn[3]);Ln.detach(Ln.indexOf(r))}}const X=this._adjustIndex(s),me=this._lContainer;!function di(n,r,s,h){const D=10+h,X=s.length;h>0&&(s[D-1][4]=r),h<X-10?(r[4]=s[D],Ru(s,10+h,r)):(s.push(r),r[4]=null),r[3]=s;const me=r[17];null!==me&&s!==me&&function bi(n,r){const s=n[9];
vendor: 6,343 bytes, line 1
1r[16]!==r[3][3][16]&&(n[2]=!0),null===s?n[9]=[r]:s.push(r)}(me,r);const Pe=r[19];null!==Pe&&Pe.insertView(n),r[2]|=128}(D,h,me,X);const Pe=Ph(X,me),Ge=h[11],Et=jo(Ge,me[7]);return null!==Et&&function vr(n,r,s,h,D,X){h[0]=D,h[6]=r,$c(n,h,s,1,D,X)}(D,me[6],Ge,h,Et,Pe),r.attachToViewContainerRef(),Ru(vv(me),X,r),r}move(r,s){return this.insert(r,s)}indexOf(r){const s=L_(this._lContainer);return null!==s?s.indexOf(r):-1}remove(r){const s=this._adjustIndex(r,-1),h=ls(this._lContainer,s);h&&(da(vv(this._lContainer),s),Cs(h[1],h))}detach(r){const s=this._adjustIndex(r,-1),h=ls(this._lContainer,s);return h&&null!=da(vv(this._lContainer),s)?new hd(h):null}_adjustIndex(r,s=0){return null==r?this.length+s:r}};function L_(n){return n[8]}function vv(n){return n[8]||(n[8]=[])}function B_(n,r){let s;const h=r[n.index];if(wr(h))s=h;else{let D;if(8&n.type)D=xn(h);else{const X=r[11];D=X.createComment("");const me=pr(n,r);Jo(X,jo(X,me),D,function qa(n,r){return dt(n)?n.nextSibling(r):r.nextSibling}(X,me),!1)}r[n.index]=s=Vp(h,r,D,n),Hh(r,s)}return new F_(s,n,r)}class yv{constructor(r){this.queryList=r,this.matches=null}clone(){return new yv(this.queryList)}setDirty(){this.queryList.setDirty()}}class bv{constructor(r=[]){this.queries=r}createEmbeddedView(r){const s=r.queries;if(null!==s){const h=null!==r.contentQueries?r.contentQueries[0]:s.length,D=[];for(let X=0;X<h;X++){const me=s.getByIndex(X);D.push(this.queries[me.indexInDeclarationView].clone())}return new bv(D)}return null}insertView(r){this.dirtyQueriesWithMatches(r)}detachView(r){this.dirtyQueriesWithMatches(r)}dirtyQueriesWithMatches(r){for(let s=0;s<this.queries.length;s++)null!==K_(r,s).matches&&this.queries[s].setDirty()}}class j_{constructor(r,s,h=null){this.predicate=r,this.flags=s,this.read=h}}class _v{constructor(r=[]){this.queries=r}elementStart(r,s){for(let h=0;h<this.queries.length;h++)this.queries[h].elementStart(r,s)}elementEnd(r){for(let s=0;s<this.queries.length;s++)this.queries[s].elementEnd(r)}embeddedTView(r){let s=null;for(let h=0;h<this.length;h++){const D=null!==s?s.length:0,X=this.getByIndex(h).embeddedTView(r,D);X&&(X.indexInDeclarationView=h,null!==s?s.push(X):s=[X])}return null!==s?new _v(s):null}template(r,s){for(let h=0;h<this.queries.length;h++)this.queries[h].template(r,s)}getByIndex(r){return this.queries[r]}get length(){return this.queries.length}track(r){this.queries.push(r)}}class Ev{constructor(r,s=-1){this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=s}elementStart(r,s){this.isApplyingToNode(s)&&this.matchTNode(r,s)}elementEnd(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}template(r,s){this.elementStart(r,s)}embeddedTView(r,s){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,s),new Ev(this.metadata)):null}isApplyingToNode(r){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const s=this._declarationNodeIndex;let h=r.parent;for(;null!==h&&8&h.type&&h.index!==s;)h=h.parent;return s===(null!==h?h.index:-1)}return this._appliesToNextNode}matchTNode(r,s){const h=this.metadata.predicate;if(Array.isArray(h))for(let D=0;D<h.length;D++){const X=h[D];this.matchTNodeWithReadOption(r,s,JA(s,X)),this.matchTNodeWithReadOption(r,s,ri(s,r,X,!1,!1))}else h===Kf?4&s.type&&this.matchTNodeWithReadOption(r,s,-1):this.matchTNodeWithReadOption(r,s,ri(s,r,h,!1,!1))}matchTNodeWithReadOption(r,s,h){if(null!==h){const D=this.metadata.read;if(null!==D)if(D===Wf||D===Pg||D===Kf&&4&s.type)this.addMatch(s.index,-2);else{const X=ri(s,r,D,!1,!1);null!==X&&this.addMatch(s.index,X)}else this.addMatch(s.index,h)}}addMatch(r,s){null===this.matches?this.matches=[r,s]:this.matches.push(r,s)}}function JA(n,r){const s=n.localNames;if(null!==s)for(let h=0;h<s.length;h+=2)if(s[h]===r)return s[h+1];return null}function eS(n,r,s,h){return-1===s?function ZA(n,r){return 11&n.type?cd(n,r):4&n.type?Dg(n,r):null}(r,n):-2===s?function tS(n,r,s){return s===Wf?cd(r,n):s===Kf?Dg(r,n):s===Pg?B_(r,n):void 0}(n,r,h):xr(n,n[1],s,r)}function U_(n,r,s,h){const D=r[19].queries[h];if(null===D.matches){const X=n.data,me=s.matches,Pe=[];for(let Ge=0;Ge<me.length;Ge+=2){const Et=me[Ge];Pe.push(Et<0?null:eS(r,X[Et],me[Ge+1],s.metadata.read))}D.matches=Pe}return D.matches}function wv(n,r,s,h){const D=n.queries.getByIndex(s),X=D.matches;if(null!==X){const me=U_(n,r,D,s);for(let Pe=0;Pe<X.length;Pe+=2){const Ge=X[Pe];if(Ge>0)h.push(me[Pe/2]);else{const Et=X[Pe+1],Bt=r[-Ge];for(let yn=10;yn<Bt.length;yn++){const Ln=Bt[yn];Ln[17]===Ln[3]&&wv(Ln[1],Ln,Et,h)}if(null!==Bt[9]){const yn=Bt[9];for(let Ln=0;Ln<yn.length;Ln++){const Qn=yn[Ln];wv(Qn[1],Qn,Et,h)}}}}}return h}function V_(n){const r=Zn(),s=qr(),h=mo();Di(h+1);const D=K_(s,h);if(n.dirty&&Ve(r)===(2==(2&D.metadata.flags))){if(null===D.matches)n.reset([]);else{const X=D.crossesNgTemplate?wv(s,r,h,[]):U_(s,r,D,h);n.reset(X,OA),n.notifyOnChanges()}return!0}return!1}function $_(n,r,s){const h=qr();h.firstCreatePass&&(z_(h,new j_(n,r,s),-1),2==(2&r)&&(h.staticViewQueries=!0)),G_(h,Zn(),r)}function H_(n,r,s,h){const D=qr();if(D.firstCreatePass){const X=mi();z_(D,new j_(r,s,h),X.index),function rS(n,r){const s=n.contentQueries||(n.contentQueries=[]);r!==(s.length?s[s.length-1]:-1)&&s.push(n.queries.length-1,r)}(D,n),2==(2&s)&&(D.staticContentQueries=!0)}G_(D,Zn(),s)}function W_(){return function nS(n,r){return n[19].queries[r].queryList}(Zn(),mo())}function G_(n,r,s){const h=new Ig(4==(4&s));kp(n,r,h,h.destroy),null===r[19]&&(r[19]=new bv),r[19].queries.push(new yv(h))}function z_(n,r,s){null===n.queries&&(n.queries=new _v),n.queries.track(new Ev(r,s))}function K_(n,r){return n.queries.getByIndex(r)}function X_(n,r){return Dg(n,r)}const ca=(()=>({\u0275\u0275attribute:Of,\u0275\u0275attributeInterpolate1:id,\u0275\u0275attributeInterpolate2:Hs,\u0275\u0275attributeInterpolate3:sd,\u0275\u0275attributeInterpolate4:kf,\u0275\u0275attributeInterpolate5:e,\u0275\u0275attributeInterpolate6:u,\u0275\u0275attributeInterpolate7:U,\u0275\u0275attributeInterpolate8:pe,\u0275\u0275attributeInterpolateV:$e,\u0275\u0275defineComponent:hn,\u0275\u0275defineDirective:nn,\u0275\u0275defineInjectable:Oe,\u0275\u0275defineInjector:Ye,\u0275\u0275defineNgModule:Ue,\u0275\u0275definePipe:vn,\u0275\u0275directiveInject:Lf,\u0275\u0275getIn
1heritedFactory:eo,\u0275\u0275inject:ks,\u0275\u0275injectAttribute:wo,\u0275\u0275invalidFactory:Ly,\u0275\u0275invalidFactoryDep:wa,\u0275\u0275templateRefExtractor:X_,\u0275\u0275NgOnChangesFeature:Ti,\u0275\u0275ProvidersFeature:e_,\u0275\u0275CopyDefinitionFeature:ag,\u0275\u0275InheritDefinitionFeature:oh,\u0275\u0275nextContext:Hy,\u0275\u0275namespaceHTML:Xn,\u0275\u0275namespaceMathML:kn,\u0275\u0275namespaceSVG:en,\u0275\u0275enableBindings:Vr,\u0275\u0275disableBindings:Jr,\u0275\u0275elementStart:cg,\u0275\u0275elementEnd:hg,\u0275\u0275element:Em,\u0275\u0275elementContainerStart:dg,\u0275\u0275elementContainerEnd:fg,\u0275\u0275elementContainer:wm,\u0275\u0275pureFunction0:g_,\u0275\u0275pureFunction1:m_,\u0275\u0275pureFunction2:v_,\u0275\u0275pureFunction3:y_,\u0275\u0275pureFunction4:b_,\u0275\u0275pureFunction5:__,\u0275\u0275pureFunction6:E_,\u0275\u0275pureFunction7:w_,\u0275\u0275pureFunction8:A_,\u0275\u0275pureFunctionV:S_,\u0275\u0275getCurrentView:By,\u0275\u0275restoreView:Pi,\u0275\u0275listener:Sm,\u0275\u0275projection:Gy,\u0275\u0275syntheticHostProperty:iv,\u0275\u0275syntheticHostListener:Cm,\u0275\u0275pipeBind1:x_,\u0275\u0275pipeBind2:M_,\u0275\u0275pipeBind3:O_,\u0275\u0275pipeBind4:k_,\u0275\u0275pipeBindV:N_,\u0275\u0275projectionDef:Wy,\u0275\u0275hostProperty:rv,\u0275\u0275property:bm,\u0275\u0275propertyInterpolate:Im,\u0275\u0275propertyInterpolate1:pg,\u0275\u0275propertyInterpolate2:Dm,\u0275\u0275propertyInterpolate3:Pm,\u0275\u0275propertyInterpolate4:Rm,\u0275\u0275propertyInterpolate5:xm,\u0275\u0275propertyInterpolate6:Mm,\u0275\u0275propertyInterpolate7:Om,\u0275\u0275propertyInterpolate8:km,\u0275\u0275propertyInterpolateV:Nm,\u0275\u0275pipe:R_,\u0275\u0275queryRefresh:V_,\u0275\u0275viewQuery:$_,\u0275\u0275loadQuery:W_,\u0275\u0275contentQuery:H_,\u0275\u0275reference:yr,\u0275\u0275classMap:Zy,\u0275\u0275classMapInterpolate1:ab,\u0275\u0275classMapInterpolate2:lb,\u0275\u0275classMapInterpolate3:ub,\u0275\u0275classMapInterpolate4:cb,\u0275\u0275classMapInterpolate5:hb,\u0275\u0275classMapInterpolate6:db,\u0275\u0275classMapInterpolate7:fb,\u0275\u0275classMapInterpolate8:pb,\u0275\u0275classMapInterpolateV:gb,\u0275\u0275styleMap:El,\u0275\u0275styleMapInterpolate1:mb,\u0275\u0275styleMapInterpolate2:vb,\u0275\u0275styleMapInterpolate3:yb,\u0275\u0275styleMapInterpolate4:bb,\u0275\u0275styleMapInterpolate5:_b,\u0275\u0275styleMapInterpolate6:Eb,\u0275\u0275styleMapInterpolate7:wb,\u0275\u0275styleMapInterpolate8:Ab,\u0275\u0275styleMapInterpolateV:Sb,\u0275\u0275styleProp:Fm,\u0275\u0275stylePropInterpolate1:Xm,\u0275\u0275stylePropInterpolate2:Ym,\u0275\u0275stylePropInterpolate3:qm,\u0275\u0275stylePropInterpolate4:Qm,\u0275\u0275stylePropInterpolate5:Jm,\u0275\u0275stylePropInterpolate6:Zm,\u0275\u0275stylePropInterpolate7:ev,\u0275\u0275stylePropInterpolate8:tv,\u0275\u0275stylePropInterpolateV:nv,\u0275\u0275classProp:Lm,\u0275\u0275advance:Bd,\u0275\u0275template:zt,\u0275\u0275text:ob,\u0275\u0275textInterpolate:jm,\u0275\u0275textInterpolate1:mg,\u0275\u0275textInterpolate2:Um,\u0275\u0275textInterpolate3:Vm,\u0275\u0275textInterpolate4:$m,\u0275\u0275textInterpolate5:Hm,\u0275\u0275textInterpolate6:Wm,\u0275\u0275textInterpolate7:Gm,\u0275\u0275textInterpolate8:zm,\u0275\u0275textInterpolateV:Km,\u0275\u0275i18n:Yb,\u0275\u0275i18nAttributes:qb,\u0275\u0275i18nExp:cv,\u0275\u0275i18nStart:lv,\u0275\u0275i18nEnd:uv,\u0275\u0275i18nApply:Qb,\u0275\u0275i18nPostprocess:Jb,\u0275\u0275resolveWindow:fl,\u0275\u0275resolveDocument:Ul,\u0275\u0275resolveBody:pl,\u0275\u0275setComponentScope:Se,\u0275\u0275setNgModuleScope:st,\u0275\u0275sanitizeHtml:zu,\u0275\u0275sanitizeStyle:fu,\u0275\u0275sanitizeResourceUrl:Ku,\u0275\u0275sanitizeScript:pu,\u0275\u0275sanitizeUrl:ul,\u0275\u0275sanitizeUrlOrResourceUrl:xa,\u0275\u0275trustConstantHtml:cl,\u0275\u0275trustConstantResourceUrl:gu,forwardRef:j,resolveForwardRef:M}))();let pd=null;function oS(){pd=null}const Xf=[];let Av=!1;function Y_(){if(!Av){Av=!0;try{for(let n=Xf.length-1;n>=0;n--){const{moduleType:r,ngModule:s}=Xf[n];s.declarations&&s.declarations.every(q_)&&(Xf.splice(n,1),uS(r,s))}}finally{Av=!1}}}function q_(n){return Array.isArray(n)?n.every(q_):!!M(n)}function Q_(n,r={}){J_(n,r),function aS(n,r){Xf.push({moduleType:n,ngModule:r})}(n,r)}function J_(n,r,s=!1){const h=Oo(r.declarations||Cn);let D=null;Object.defineProperty(n,Fn,{configurable:!0,get:()=>(null===D&&(D=As().compileNgModule(ca,`ng:///${n.name}/\u0275mod.js`,{type:n,bootstrap:Oo(r.bootstrap||Cn).map(M),declarations:h.map(M),imports:Oo(r.imports||Cn).map(M).map(n0),exports:Oo(r.exports||Cn).map(M).map(n0),schemas:r.schemas?Oo(r.schemas):null,id:r.id||null}),D.schemas||(D.schemas=[])),D)});let X=null;Object.defineProperty(n,jn,{get:()=>{if(null===X){const Pe=As();X=Pe.compileFactory(ca,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,deps:au(n),target:Pe.FactoryTarget.NgModule,typeArgumentCount:0})}return X},configurable:!1});let me=null;Object.defineProperty(n,Rt,{get:()=>{if(null===me){const Pe={name:n.name,type:n,providers:r.providers||Cn,imports:[(r.imports||Cn).map(M),(r.exports||Cn).map(M)]};me=As().compileInjector(ca,`ng:///${n.name}/\u0275inj.js`,Pe)}return me},configurable:!1})}let Rg=new WeakMap,Cv=new WeakMap;function lS(){Rg=new WeakMap,Cv=new WeakMap,Xf.length=0}function uS(n,r){const s=Oo(r.declarations||Cn),h=Yf(n);
1s.forEach(D=>{D.hasOwnProperty(Sn)?Tv(wn(D),h):!D.hasOwnProperty(Nn)&&!D.hasOwnProperty(rr)&&(D.ngSelectorScope=n)})}function Tv(n,r){n.directiveDefs=()=>Array.from(r.compilation.directives).map(s=>s.hasOwnProperty(Sn)?wn(s):$n(s)).filter(s=>!!s),n.pipeDefs=()=>Array.from(r.compilation.pipes).map(s=>Gn(s)),n.schemas=r.schemas,n.tView=null}function Yf(n){if(!Iv(n))throw new Error(`${n.name} does not have a module def (\u0275mod property)`);const r=ir(n);if(null!==r.transitiveCompileScopes)return r.transitiveCompileScopes;const s={schemas:r.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return oa(r.imports).forEach(h=>{const D=h;if(!Iv(D))throw new Error(`Importing ${D.name} which does not have a \u0275mod property`);const X=Yf(D);X.exported.directives.forEach(me=>s.compilation.directives.add(me)),X.exported.pipes.forEach(me=>s.compilation.pipes.add(me))}),oa(r.declarations).forEach(h=>{Gn(h)?s.compilation.pipes.add(h):s.compilation.directives.add(h)}),oa(r.exports).forEach(h=>{const D=h;if(Iv(D)){const X=Yf(D);X.exported.directives.forEach(me=>{s.compilation.directives.add(me),s.exported.directives.add(me)}),X.exported.pipes.forEach(me=>{s.compilation.pipes.add(me),s.exported.pipes.add(me)})}else Gn(D)?s.exported.pipes.add(D):s.exported.directives.add(D)}),r.transitiveCompileScopes=s,s}function n0(n){return function cS(n){return void 0!==n.ngModule}(n)?n.ngModule:n}function Iv(n){return!!ir(n)}let Dv=0;function r0(n,r){let s=null;(function Ec(n,r){Ca(r)&&(na.set(n,r),po.add(n))})(n,r),o0(n,r),Object.defineProperty(n,Sn,{get:()=>{if(null===s){const h=As();if(Ca(r)){const Et=[`Component '${n.name}' is not resolved:`];throw r.templateUrl&&Et.push(` - templateUrl: ${r.templateUrl}`),r.styleUrls&&r.styleUrls.length&&Et.push(` - styleUrls: ${JSON.stringify(r.styleUrls)}`),Et.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(Et.join("\n"))}const D=function sS(){return pd}();let X=r.preserveWhitespaces;void 0===X&&(X=null!==D&&void 0!==D.preserveWhitespaces&&D.preserveWhitespaces);let me=r.encapsulation;void 0===me&&(me=null!==D&&void 0!==D.defaultEncapsulation?D.defaultEncapsulation:nt.Emulated);const Pe=r.templateUrl||`ng:///${n.name}/template.html`,Ge=Object.assign(Object.assign({},a0(n,r)),{typeSourceSpan:h.createParseSourceSpan("Component",n.name,Pe),template:r.template||"",preserveWhitespaces:X,styles:r.styles||Cn,animations:r.animations,directives:[],changeDetection:r.changeDetection,pipes:new Map,encapsulation:me,interpolation:r.interpolation,viewProviders:r.viewProviders||null});Dv++;try{Ge.usesInheritance&&l0(n),s=h.compileComponent(ca,Pe,Ge)}finally{Dv--}if(0===Dv&&Y_(),function hS(n){return void 0!==n.ngSelectorScope}(n)){const Et=Yf(n.ngSelectorScope);Tv(s,Et)}}return s},configurable:!1})}function Pv(n,r){let s=null;o0(n,r||{}),Object.defineProperty(n,Nn,{get:()=>{if(null===s){const h=s0(n,r||{});s=As().compileDirective(ca,h.sourceMapUrl,h.metadata)}return s},configurable:!1})}function s0(n,r){const s=n&&n.name,h=`ng:///${s}/\u0275dir.js`,D=As(),X=a0(n,r);return X.typeSourceSpan=D.createParseSourceSpan("Directive",s,h),X.usesInheritance&&l0(n),{metadata:X,sourceMapUrl:h}}function o0(n,r){let s=null;Object.defineProperty(n,jn,{get:()=>{if(null===s){const h=s0(n,r),D=As();s=D.compileFactory(ca,`ng:///${n.name}/\u0275fac.js`,{name:h.metadata.name,type:h.metadata.type,typeArgumentCount:0,deps:au(n),target:D.FactoryTarget.Directive})}return s},configurable:!1})}function dS(n){return Object.getPrototypeOf(n.prototype)===Object.prototype}function a0(n,r){const s=Sa(),h=s.ownPropMetadata(n);return{name:n.name,type:n,selector:void 0!==r.selector?r.selector:null,host:r.host||tn,propMetadata:h,inputs:r.inputs||Cn,outputs:r.outputs||Cn,queries:u0(n,h,c0),lifecycle:{usesOnChanges:s.hasLifecycleHook(n,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!dS(n),exportAs:gS(r.exportAs),providers:r.providers||null,viewQueries:u0(n,h,h0)}}function l0(n){const r=Object.prototype;let s=Object.getPrototypeOf(n.prototype).constructor;for(;s&&s!==r;)!$n(s)&&!wn(s)&&vS(s)&&Pv(s,null),s=Object.getPrototypeOf(s)}function fS(n){return"string"==typeof n?f0(n):M(n)}function pS(n,r){return{propertyName:n,predicate:fS(r.selector),descendants:r.descendants,first:r.first,read:r.read?r.read:null,static:!!r.static,emitDistinctChangesOnly:!!r.emitDistinctChangesOnly}}function u0(n,r,s){const h=[];for(const D in r)if(r.hasOwnProperty(D)){const X=r[D];
1X.forEach(me=>{if(s(me)){if(!me.selector)throw new Error(`Can't construct a query for the property "${D}" of "${$(n)}" since the query selector wasn't defined.`);if(X.some(d0))throw new Error("Cannot combine @Input decorators with query decorators");h.push(pS(D,me))}})}return h}function gS(n){return void 0===n?null:f0(n)}function c0(n){const r=n.ngMetadataName;return"ContentChild"===r||"ContentChildren"===r}function h0(n){const r=n.ngMetadataName;return"ViewChild"===r||"ViewChildren"===r}function d0(n){return"Input"===n.ngMetadataName}function f0(n){return n.split(",").map(r=>r.trim())}const mS=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function vS(n){const r=Sa();if(mS.some(h=>r.hasLifecycleHook(n,h)))return!0;const s=r.propMetadata(n);for(const h in s){const D=s[h];for(let X=0;X<D.length;X++){const me=D[X],Pe=me.ngMetadataName;if(d0(me)||c0(me)||h0(me)||"Output"===Pe||"HostBinding"===Pe||"HostListener"===Pe)return!0}}return!1}function p0(n,r){let s=null,h=null;Object.defineProperty(n,jn,{get:()=>{if(null===h){const D=g0(n,r),X=As();h=X.compileFactory(ca,`ng:///${D.name}/\u0275fac.js`,{name:D.name,type:D.type,typeArgumentCount:0,deps:au(n),target:X.FactoryTarget.Pipe})}return h},configurable:!1}),Object.defineProperty(n,rr,{get:()=>{if(null===s){const D=g0(n,r);s=As().compilePipe(ca,`ng:///${D.name}/\u0275pipe.js`,D)}return s},configurable:!1})}function g0(n,r){return{type:n,name:n.name,pipeName:r.name,pure:void 0===r.pure||r.pure}}const m0=Fs("Directive",(n={})=>n,void 0,void 0,(n,r)=>Pv(n,r)),yS=Fs("Component",(n={})=>Object.assign({changeDetection:St.Default},n),m0,void 0,(n,r)=>r0(n,r)),bS=Fs("Pipe",n=>Object.assign({pure:!0},n),void 0,void 0,(n,r)=>p0(n,r)),_S=vo("Input",n=>({bindingPropertyName:n})),ES=vo("Output",n=>({bindingPropertyName:n})),wS=vo("HostBinding",n=>({hostPropertyName:n})),AS=vo("HostListener",(n,r)=>({eventName:n,args:r})),SS=Fs("NgModule",n=>n,void 0,void 0,(n,r)=>Q_(n,r));function xg(...n){}const v0=new ds("Application Initializer");let Rv=(()=>{class n{constructor(s){this.appInits=s,this.resolve=xg,this.reject=xg,this.initialized=!1,this.done=!1,this.donePromise=new Promise((h,D)=>{this.resolve=h,this.reject=D})}runInitializers(){if(this.initialized)return;const s=[],h=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let D=0;D<this.appInits.length;D++){const X=this.appInits[D]();if(Am(X))s.push(X);else if(Uy(X)){const me=new Promise((Pe,Ge)=>{X.subscribe({complete:Pe,error:Ge})});s.push(me)}}Promise.all(s).then(()=>{h()}).catch(D=>{this.reject(D)}),0===s.length&&h(),this.initialized=!0}}return n.\u0275fac=function(s){return new(s||n)(ks(v0,8))},n.\u0275prov=Oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y0=new ds("AppId",{providedIn:"root",factory:b0});function b0(){return`${xv()}${xv()}${xv()}`}const CS={provide:y0,useFactory:b0,deps:[]};function xv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _0=new ds("Platform Initializer"),E0=new ds("Platform ID"),w0=new ds("appBootstrapListener"),TS=new ds("Application Packages Root URL");let A0=(()=>{class n{log(s){console.log(s)}warn(s){console.warn(s)}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=Oe({token:n,factory:n.\u0275fac}),n})();const Mv=new ds("LocaleId",{providedIn:"root",factory:()=>ku(Mv,ut.Optional|ut.SkipSelf)||function IS(){return"undefined"!=typeof $localize&&$localize.locale||jf}()}),DS=new ds("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),PS=new ds("Translations"),RS=new ds("TranslationsFormat");var eu=(()=>((eu=eu||{})[eu.Error=0]="Error",eu[eu.Warning=1]="Warning",eu[eu.Ignore=2]="Ignore",eu))();class S0{constructor(r,s){this.ngModuleFactory=r,this.componentFactories=s}}let xS=(()=>{class n{compileModuleSync(s){return new Tg(s)}compileModuleAsync(s){return Promise.resolve(this.compileModuleSync(s))}compileModuleAndAllComponentsSync(s){const h=this.compileModuleSync(s),X=oa(ir(s).declarations).reduce((me,Pe)=>{const Ge=wn(Pe);return Ge&&me.push(new Cg(Ge)),me},[]);return new S0(h,X)}compileModuleAndAllComponentsAsync(s){return Promise.resolve(this.compileModuleAndAllComponentsSync(s))}clearCache(){}clearCacheFor(s){}getModuleId(s){}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=Oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const C0=new ds("compilerOptions");class MS{}const OS=(()=>Promise.resolve(0))();function Ov(n){"undefined"==typeof Zone?OS.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Sl{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:s=!1,shouldCoalesceRunChangeDetection:h=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=ne
1w Zl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const D=this;D._nesting=0,D._outer=D._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(D._inner=D._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(D._inner=D._inner.fork(Zone.longStackTraceZoneSpec)),D.shouldCoalesceEventChangeDetection=!h&&s,D.shouldCoalesceRunChangeDetection=h,D.lastRequestAnimationFrameId=-1,D.nativeRequestAnimationFrame=function kS(){let n=Kt.requestAnimationFrame,r=Kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&r){const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s);const h=r[Zone.__symbol__("OriginalDelegate")];h&&(r=h)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function LS(n){const r=()=>{!function FS(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Kt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Nv(n),n.isCheckStableRunning=!0,kv(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Nv(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(s,h,D,X,me,Pe)=>{try{return T0(n),s.invokeTask(D,X,me,Pe)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===X.type||n.shouldCoalesceRunChangeDetection)&&r(),I0(n)}},onInvoke:(s,h,D,X,me,Pe,Ge)=>{try{return T0(n),s.invoke(D,X,me,Pe,Ge)}finally{n.shouldCoalesceRunChangeDetection&&r(),I0(n)}},onHasTask:(s,h,D,X)=>{s.hasTask(D,X),h===D&&("microTask"==X.change?(n._hasPendingMicrotasks=X.microTask,Nv(n),kv(n)):"macroTask"==X.change&&(n.hasPendingMacrotasks=X.macroTask))},onHandleError:(s,h,D,X)=>(s.handleError(D,X),n.runOutsideAngular(()=>n.onError.emit(X)),!1)})}(D)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Sl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Sl.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(r,s,h){return this._inner.run(r,s,h)}runTask(r,s,h,D){const X=this._inner,me=X.scheduleEventTask("NgZoneEvent: "+D,r,NS,xg,xg);try{return X.runTask(me,s,h)}finally{X.cancelTask(me)}}runGuarded(r,s,h){return this._inner.runGuarded(r,s,h)}runOutsideAngular(r){return this._outer.run(r)}}const NS={};function kv(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Nv(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function T0(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function I0(n){n._nesting--,kv(n)}class D0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zl,this.onMicrotaskEmpty=new Zl,this.onStable=new Zl,this.onError=new Zl}run(r,s,h){return r.apply(s,h)}runGuarded(r,s,h){return r.apply(s,h)}runOutsideAngular(r){return r()}runTask(r,s,h,D){return r.apply(s,h)}}let P0=(()=>{class n{constructor(s){this._ngZone=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),s.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Sl.assertNotInAngularZone(),Ov(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}
1decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ov(()=>{for(;0!==this._callbacks.length;){let s=this._callbacks.pop();clearTimeout(s.timeoutId),s.doneCb(this._didWork)}this._didWork=!1});else{let s=this.getPendingTasks();this._callbacks=this._callbacks.filter(h=>!h.updateCb||!h.updateCb(s)||(clearTimeout(h.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(s=>({source:s.source,creationLocation:s.creationLocation,data:s.data})):[]}addCallback(s,h,D){let X=-1;h&&h>0&&(X=setTimeout(()=>{this._callbacks=this._callbacks.filter(me=>me.timeoutId!==X),s(this._didWork,this.getPendingTasks())},h)),this._callbacks.push({doneCb:s,timeoutId:X,updateCb:D})}whenStable(s,h,D){if(D&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(s,h,D),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(s,h,D){return[]}}return n.\u0275fac=function(s){return new(s||n)(ks(Sl))},n.\u0275prov=Oe({token:n,factory:n.\u0275fac}),n})(),Fv=(()=>{class n{constructor(){this._applications=new Map,Lv.addToWindow(this)}registerApplication(s,h){this._applications.set(s,h)}unregisterApplication(s){this._applications.delete(s)}unregisterAllApplications(){this._applications.clear()}getTestability(s){return this._applications.get(s)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(s,h=!0){return Lv.findTestabilityInTree(this,s,h)}}return n.\u0275fac=function(s){return new(s||n)},n.\u0275prov=Oe({token:n,factory:n.\u0275fac}),n})();class BS{addToWindow(r){}findTestabilityInTree(r,s,h){return null}}function jS(n){Lv=n}let Cl,Lv=new BS;function R0(n,r,s){const h=new Tg(s);return Promise.resolve(h)}function x0(n){return n.isBoundToModule}const Bv=new ds("AllowMultipleToken");class US{constructor(r,s){this.name=r,this.token=s}}function M0(n){if(Cl&&!Cl.destroyed&&!Cl.injector.get(Bv,!1))throw new T(400,"");Cl=n.get(Uv);const r=n.get(_0,null);return r&&r.forEach(s=>s()),Cl}function O0(n,r,s=[]){const h=`Platform: ${r}`,D=new ds(h);return(X=[])=>{let me=jv();if(!me||me.injector.get(Bv,!1))if(n)n(s.concat(X).concat({provide:D,useValue:!0}));else{const Pe=s.concat(X).concat({provide:D,useValue:!0},{provide:qh,useValue:"platform"});M0(Ks.create({providers:Pe,name:h}))}return k0()}}function k0(n){const r=jv();if(!r)throw new T(401,"");return r}function VS(){Cl&&!Cl.destroyed&&Cl.destroy()}function jv(){return Cl&&!Cl.destroyed?Cl:null}let Uv=(()=>{class n{constructor(s){this._injector=s,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(s,h){const Pe=function $S(n,r){let s;return s="noop"===n?new D0:("zone.js"===n?void 0:n)||new Sl({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)}),s}(h?h.ngZone:void 0,{ngZoneEventCoalescing:h&&h.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:h&&h.ngZoneRunCoalescing||!1}),Ge=[{provide:Sl,useValue:Pe}];return Pe.run(()=>{const Et=Ks.create({providers:Ge,parent:this.injector,name:s.moduleType.name}),Bt=s.create(Et),yn=Bt.injector.get(so,null);if(!yn)throw new T(402,"");return Pe.runOutsideAngular(()=>{const Ln=Pe.onError.subscribe({next:Qn=>{yn.handleError(Qn)}});Bt.onDestroy(()=>{$v(this._modules,Bt),Ln.unsubscribe()})}),function HS(n,r,s){try{const h=s();return Am(h)?h.catch(D=>{throw r.runOutsideAngular(()=>n.handleError(D)),D}):h}catch(h){throw r.runOutsideAngular(()=>n.handleError(h)),h}}(yn,Pe,()=>{const Ln=Bt.injector.get(Rv);return Ln.runInitializers(),Ln.donePromise.then(()=>(Db(Bt.injector.get(Mv,jf)||jf),this._moduleDoBootstrap(Bt),Bt))})})}bootstrapModule(s,h=[]){const D=N0({},h);
1return R0(0,0,s).then(X=>this.bootstrapModuleFactory(X,D))}_moduleDoBootstrap(s){const h=s.injector.get(Vv);if(s._bootstrapComponents.length>0)s._bootstrapComponents.forEach(D=>h.bootstrap(D));else{if(!s.instance.ngDoBootstrap)throw new T(403,"");s.instance.ngDoBootstrap(h)}this._modules.push(s)}onDestroy(s){this._destroyListeners.push(s)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new T(404,"");this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(s){return new(s||n)(ks(Ks))},n.\u0275prov=Oe({token:n,factory:n.\u0275fac}),n})();function N0(n,r){return Array.isArray(r)?r.reduce(N0,n):Object.assign(Object.assign({},n),r)}let Vv=(()=>{class n{constructor(s,h,D,X,me){this._zone=s,this._injector=h,this._exceptionHandler=D,this._componentFactoryResolver=X,this._initStatus=me,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Pe=new x.y(Et=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Et.next(this._stable),Et.complete()})}),Ge=new x.y(Et=>{let Bt;this._zone.runOutsideAngular(()=>{Bt=this._zone.onStable.subscribe(()=>{Sl.assertNotInAngularZone(),Ov(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Et.next(!0))})})});const yn=this._zone.onUnstable.subscribe(()=>{Sl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Et.next(!1)}))});return()=>{Bt.unsubscribe(),yn.unsubscribe()}});this.isStable=(0,re.T)(Pe,Ge.pipe(function C(){return n=>(0,W.x)()(function Q(n,r){return function(h){let D;if(D="function"==typeof n?n:function(){return n},"function"==typeof r)return h.lift(new S(D,r));const X=Object.create(h,te.N);return X.source=h,X.subjectFactory=D,X}}(P)(n))}()))}bootstrap(s,h){if(!this._initStatus.done)throw new T(405,"");let D;D=s instanceof Eg?s:this._componentFactoryResolver.resolveComponentFactory(s),this.componentTypes.push(D.componentType);const X=x0(D)?void 0:this._injector.get(dd),Pe=D.create(Ks.NULL,[],h||D.selector,X),Ge=Pe.location.nativeElement,Et=Pe.injector.get(P0,null),Bt=Et&&Pe.injector.get(Fv);return Et&&Bt&&Bt.registerApplication(Ge,Et),Pe.onDestroy(()=>{this.detachView(Pe.hostView),$v(this.components,Pe),Bt&&Bt.unregisterApplication(Ge)}),this._loadComponent(Pe),Pe}tick(){if(this._runningTick)throw new T(101,"");try{this._runningTick=!0;for(let s of this._views)s.detectChanges()}catch(s){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(s))}finally{this._runningTick=!1}}attachView(s){const h=s;this._views.push(h),h.attachToAppRef(this)}detachView(s){const h=s;$v(this._views,h),h.detachFromAppRef()}_loadComponent(s){this.attachView(s.hostView),this.tick(),this.components.push(s),this._injector.get(w0,[]).concat(this._bootstrapListeners).forEach(D=>D(s))}ngOnDestroy(){this._views.slice().forEach(s=>s.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(s){return new(s||n)(ks(Sl),ks(Ks),ks(so),ks(wg),ks(Rv))},n.\u0275prov=Oe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $v(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}let L0=!0,B0=!1;function GS(){return B0=!0,L0}function zS(){if(B0)throw new Error("Cannot enable prod mode after platform setup.");L0=!1}function KS(n){const r=p_(n);if(!r)throw j0(n);return new Tg(r)}function XS(n){const r=p_(n);if(!r)throw j0(n);return r}function j0(n){return new Error(`No module with ID ${n} loaded`)}let U0=(()=>{class n{}return n.__NG_ELEMENT_ID__=V0,n})();function V0(n){return function YS(n,r,s){if(kr(n)&&!s){const h=Je(n.index,r);return new hd(h,h)}return 47&n.type?new hd(r[16],r):null}(mi(),Zn(),16==(16&n))}class $0 extends U0{}class qS extends $0{}class QS{constructor(r,s){this.name=r,this.callback=s}}function JS(n){return n.map(r=>r.nativeElement)}class Hv{constructor(r){this.nativeNode=r}get parent(){const r=this.nativeNode.parentNode;return r?new qf(r):null}get injector(){return Jp(this.nativeNode)}get componentInstance(){const r=this.nativeNode;return r&&(Jh(r)||Sf(r))}get context(){return Jh(this.nativeNode)||Af(this.nativeNode)}get listeners(){return tg(this.nativeNode).filter(r=>"dom"===r.type)}get references(){return function fm(n){const r=zs(n);return null===r?{}:(void 0===r.localRefs&&(r.localRefs=function Id(n,r){const s=n[1].data[r];if(s&&s.localNames){const h={};let D=s.index+1;for(let X=0;X<s.localNames.length;X+=2)h[s.localNames[X]]=n[D],D++;return h}return null}(r.lView,r.nodeIndex)),r.localRefs||{})}(this.nativeNode)}get providerTokens(){return function Cf(n){const r=zs(n);if(null===r)return[];
1const h=r.lView[1],D=h.data[r.nodeIndex],X=[],Pe=D.directiveEnd;for(let Ge=1048575&D.providerIndexes;Ge<Pe;Ge++){let Et=h.data[Ge];Su(Et)&&(Et=Et.type),X.push(Et)}return X}(this.nativeNode)}}class qf extends Hv{constructor(r){super(r)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const r=zs(this.nativeNode);return null!==r?r.lView[1].data[r.nodeIndex].value:this.nativeNode.nodeName}get properties(){const r=zs(this.nativeNode);if(null===r)return{};const s=r.lView,h=s[1].data,D=h[r.nodeIndex],X={};return function ZS(n,r){if(n){let s=Object.getPrototypeOf(n);const h=Node.prototype;for(;null!==s&&s!==h;){const D=Object.getOwnPropertyDescriptors(s);for(let X in D)if(!X.startsWith("__")&&!X.startsWith("on")){const me=n[X];eC(me)&&(r[X]=me)}s=Object.getPrototypeOf(s)}}}(this.nativeElement,X),function tC(n,r,s,h){let D=r.propertyBindings;if(null!==D)for(let X=0;X<D.length;X++){const me=D[X],Ge=h[me].split("\ufffd"),Et=Ge[0];if(Ge.length>1){let Bt=Ge[1];for(let yn=1;yn<Ge.length-1;yn++)Bt+=G(s[me+yn-1])+Ge[yn+1];n[Et]=Bt}else n[Et]=s[me]}}(X,D,s,h),X}get attributes(){const r={},s=this.nativeElement;if(!s)return r;const h=zs(s);if(null===h)return{};const X=h.lView[1].data[h.nodeIndex].attrs,me=[];if(X){let Ge=0;for(;Ge<X.length;){const Et=X[Ge];if("string"!=typeof Et)break;r[Et]=X[Ge+1],me.push(Et.toLowerCase()),Ge+=2}}const Pe=s.attributes;for(let Ge=0;Ge<Pe.length;Ge++){const Et=Pe[Ge],Bt=Et.name.toLowerCase();-1===me.indexOf(Bt)&&(r[Bt]=Et.value)}return r}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const r={},h=this.nativeElement.className;return("string"!=typeof h?h.baseVal.split(" "):h.split(" ")).forEach(X=>r[X]=!0),r}get childNodes(){const r=this.nativeNode.childNodes,s=[];for(let h=0;h<r.length;h++)s.push(gd(r[h]));return s}get children(){const r=this.nativeElement;if(!r)return[];const s=r.children,h=[];for(let D=0;D<s.length;D++)h.push(gd(s[D]));return h}query(r){return this.queryAll(r)[0]||null}queryAll(r){const s=[];return H0(this,r,s,!0),s}queryAllNodes(r){const s=[];return H0(this,r,s,!1),s}triggerEventHandler(r,s){const h=this.nativeNode,D=[];this.listeners.forEach(X=>{if(X.name===r){const me=X.callback;me.call(h,s),D.push(me)}}),"function"==typeof h.eventListeners&&h.eventListeners(r).forEach(X=>{if(-1!==X.toString().indexOf("__ngUnwrap__")){const me=X("__ngUnwrap__");return-1===D.indexOf(me)&&me.call(h,s)}})}}function eC(n){return"string"==typeof n||"boolean"==typeof n||"number"==typeof n||null===n}function H0(n,r,s,h){const D=zs(n.nativeNode);null!==D?uh(D.lView[1].data[D.nodeIndex],D.lView,r,s,h,n.nativeNode):Gv(n.nativeNode,r,s,h)}function uh(n,r,s,h,D,X){const me=function zr(n,r){const s=null===n?-1:n.index;return-1!==s?xn(r[s]):null}(n,r);if(11&n.type){if(Wv(me,s,h,D,X),kr(n)){const Ge=Je(n.index,r);Ge&&Ge[1].firstChild&&uh(Ge[1].firstChild,Ge,s,h,D,X)}else n.child&&uh(n.child,r,s,h,D,X),me&&Gv(me,s,h,D);const Pe=r[n.index];wr(Pe)&&W0(Pe,s,h,D,X)}else if(4&n.type){const Pe=r[n.index];Wv(Pe[7],s,h,D,X),W0(Pe,s,h,D,X)}else if(16&n.type){const Pe=r[16],Et=Pe[6].projection[n.projection];if(Array.isArray(Et))for(let Bt of Et)Wv(Bt,s,h,D,X);else if(Et){const Bt=Pe[3];uh(Bt[1].data[Et.index],Bt,s,h,D,X)}}else n.child&&uh(n.child,r,s,h,D,X);if(X!==me){const Pe=4&n.flags?n.projectionNext:n.next;Pe&&uh(Pe,r,s,h,D,X)}}function W0(n,r,s,h,D){for(let X=10;X<n.length;X++){const me=n[X],Pe=me[1].firstChild;Pe&&uh(Pe,me,r,s,h,D)}}function Wv(n,r,s,h,D){if(D!==n){const X=gd(n);if(!X)return;
vendor: 8,361 bytes, line 1
1(h&&X instanceof qf&&r(X)&&-1===s.indexOf(X)||!h&&r(X)&&-1===s.indexOf(X))&&s.push(X)}}function Gv(n,r,s,h){const D=n.childNodes,X=D.length;for(let me=0;me<X;me++){const Pe=D[me],Ge=gd(Pe);Ge&&((h&&Ge instanceof qf&&r(Ge)&&-1===s.indexOf(Ge)||!h&&r(Ge)&&-1===s.indexOf(Ge))&&s.push(Ge),Gv(Pe,r,s,h))}}const Kv="__ng_debug__";function gd(n){return n instanceof Node?(n.hasOwnProperty(Kv)||(n[Kv]=n.nodeType==Node.ELEMENT_NODE?new qf(n):new Hv(n)),n[Kv]):null}function nC(n){return null}class G0{constructor(){}supports(r){return ql(r)}create(r){return new z0(r)}}const rC=(n,r)=>r;class z0{constructor(r){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||rC}forEachItem(r){let s;for(s=this._itHead;null!==s;s=s._next)r(s)}forEachOperation(r){let s=this._itHead,h=this._removalsHead,D=0,X=null;for(;s||h;){const me=!h||s&&s.currentIndex<X0(h,D,X)?s:h,Pe=X0(me,D,X),Ge=me.currentIndex;if(me===h)D--,h=h._nextRemoved;else if(s=s._next,null==me.previousIndex)D++;else{X||(X=[]);const Et=Pe-D,Bt=Ge-D;if(Et!=Bt){for(let Ln=0;Ln<Et;Ln++){const Qn=Ln<X.length?X[Ln]:X[Ln]=0,br=Qn+Ln;Bt<=br&&br<Et&&(X[Ln]=Qn+1)}X[me.previousIndex]=Bt-Et}}Pe!==Ge&&r(me,Pe,Ge)}}forEachPreviousItem(r){let s;for(s=this._previousItHead;null!==s;s=s._nextPrevious)r(s)}forEachAddedItem(r){let s;for(s=this._additionsHead;null!==s;s=s._nextAdded)r(s)}forEachMovedItem(r){let s;for(s=this._movesHead;null!==s;s=s._nextMoved)r(s)}forEachRemovedItem(r){let s;for(s=this._removalsHead;null!==s;s=s._nextRemoved)r(s)}forEachIdentityChange(r){let s;for(s=this._identityChangesHead;null!==s;s=s._nextIdentityChange)r(s)}diff(r){if(null==r&&(r=[]),!ql(r))throw new T(900,"");return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let D,X,me,s=this._itHead,h=!1;if(Array.isArray(r)){this.length=r.length;for(let Pe=0;Pe<this.length;Pe++)X=r[Pe],me=this._trackByFn(Pe,X),null!==s&&Object.is(s.trackById,me)?(h&&(s=this._verifyReinsertion(s,X,me,Pe)),Object.is(s.item,X)||this._addIdentityChange(s,X)):(s=this._mismatch(s,X,me,Pe),h=!0),s=s._next}else D=0,function lg(n,r){if(Array.isArray(n))for(let s=0;s<n.length;s++)r(n[s]);else{const s=n[mc()]();let h;for(;!(h=s.next()).done;)r(h.value)}}(r,Pe=>{me=this._trackByFn(D,Pe),null!==s&&Object.is(s.trackById,me)?(h&&(s=this._verifyReinsertion(s,Pe,me,D)),Object.is(s.item,Pe)||this._addIdentityChange(s,Pe)):(s=this._mismatch(s,Pe,me,D),h=!0),s=s._next,D++}),this.length=D;return this._truncate(s),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,s,h,D){let X;return null===r?X=this._itTail:(X=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(h,null))?(Object.is(r.item,s)||this._addIdentityChange(r,s),this._reinsertAfter(r,X,D)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(h,D))?(Object.is(r.item,s)||this._addIdentityChange(r,s),this._moveAfter(r,X,D)):r=this._addAfter(new iC(s,h),X,D),r}_verifyReinsertion(r,s,h,D){let X=null===this._unlinkedRecords?null:this._unlinkedRecords.get(h,null);return null!==X?r=this._reinsertAfter(X,r._prev,D):r.currentIndex!=D&&(r.currentIndex=D,this._addToMoves(r,D)),r}_truncate(r){for(;null!==r;){const s=r._next;this._addToRemovals(this._unlink(r)),r=s}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(r,s,h){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const D=r._prevRemoved,X=r._nextRemoved;return null===D?this._removalsHead=X:D._nextRemoved=X,null===X?this._removalsTail=D:X._prevRemoved=D,this._insertAfter(r,s,h),this._addToMoves(r,h),r}_moveAfter(r,s,h){return this._unlink(r),this._insertAfter(r,s,h),this._addToMoves(r,h),r}_addAfter(r,s,h){return this._insertAfter(r,s,h),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,s,h){const D=null===s?this._itHead:s._next;return r._next=D,r._prev=s,null===D?this._itTail=r:D._prev=r,null===s?this._itHead=r:s._next=r,null===this._linkedRecords&&(this._linkedRecords=new K0),this._linkedRecords.put(r),r.currentIndex=h,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const s=r._prev,h=r._next;return null===s?this._itHead=h:s._next=h,null===h?this._itTail=s:h._prev=s,r}_addToMoves(r,s){return r.previousIndex===s||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new K0),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,s){return r.item=s,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class iC{constructor(r,s){this.item=r,this.trackById=s,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class sC{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,s){let h;for(h=this._head;null!==h;h=h._nextDup)if((null===s||s<=h.currentIndex)&&Object.is(h.trackById,r))return h;return null}remove(r){const s=r._prevDup,h=r._nextDup;return null===s?this._head=h:s._nextDup=h,null===h?this._tail=s:h._prevDup=s,null===this._head}}class K0{constructor(){this.map=new Map}put(r){const s=r.trackById;let h=this.map.get(s);h||(h=new sC,this.map.set(s,h)),h.add(r)}get(r,s){const D=this.map.get(r);return D?D.get(r,s):null}remove(r){const s=r.trackById;return this.map.get(s).remove(r)&&this.map.delete(s),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function X0(n,r,s){const h=n.previousIndex;if(null===h)return h;let D=0;return s&&h<s.length&&(D=s[h]),h+r+D}class Y0{constructor(){}supports(r){return r instanceof Map||rd(r)}create(){return new oC}}class oC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(r){let s;for(s=this._mapHead;null!==s;s=s._next)r(s)}forEachPreviousItem(r){let s;for(s=this._previousMapHead;null!==s;s=s._nextPrevious)r(s)}forEachChangedItem(r){let s;for(s=this._changesHead;null!==s;s=s._nextChanged)r(s)}forEachAddedItem(r){let s;for(s=this._additionsHead;null!==s;s=s._nextAdded)r(s)}forEachRemovedItem(r){let s;for(s=this._removalsHead;null!==s;s=s._nextRemoved)r(s)}diff(r){if(r){if(!(r instanceof Map||rd(r)))throw new T(900,"")}else r=new Map;return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let s=this._mapHead;
1if(this._appendAfter=null,this._forEach(r,(h,D)=>{if(s&&s.key===D)this._maybeAddToChanges(s,h),this._appendAfter=s,s=s._next;else{const X=this._getOrCreateRecordForKey(D,h);s=this._insertBeforeOrAppend(s,X)}}),s){s._prev&&(s._prev._next=null),this._removalsHead=s;for(let h=s;null!==h;h=h._nextRemoved)h===this._mapHead&&(this._mapHead=null),this._records.delete(h.key),h._nextRemoved=h._next,h.previousValue=h.currentValue,h.currentValue=null,h._prev=null,h._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(r,s){if(r){const h=r._prev;return s._next=r,s._prev=h,r._prev=s,h&&(h._next=s),r===this._mapHead&&(this._mapHead=s),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=s,s._prev=this._appendAfter):this._mapHead=s,this._appendAfter=s,null}_getOrCreateRecordForKey(r,s){if(this._records.has(r)){const D=this._records.get(r);this._maybeAddToChanges(D,s);const X=D._prev,me=D._next;return X&&(X._next=me),me&&(me._prev=X),D._next=null,D._prev=null,D}const h=new aC(r);return this._records.set(r,h),h.currentValue=s,this._addToAdditions(h),h}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,s){Object.is(s,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=s,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,s){r instanceof Map?r.forEach(s):Object.keys(r).forEach(h=>s(r[h],h))}}class aC{constructor(r){this.key=r,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function q0(){return new Xv([new G0])}let Xv=(()=>{class n{constructor(s){this.factories=s}static create(s,h){if(null!=h){const D=h.factories.slice();s=s.concat(D)}return new n(s)}static extend(s){return{provide:n,useFactory:h=>n.create(s,h||q0()),deps:[[n,new Aa,new ro]]}}find(s){const h=this.factories.find(D=>D.supports(s));if(null!=h)return h;throw new T(901,"")}}return n.\u0275prov=Oe({token:n,providedIn:"root",factory:q0}),n})();function Q0(){return new Yv([new Y0])}let Yv=(()=>{class n{constructor(s){this.factories=s}static create(s,h){if(h){const D=h.factories.slice();s=s.concat(D)}return new n(s)}static extend(s){return{provide:n,useFactory:h=>n.create(s,h||Q0()),deps:[[n,new Aa,new ro]]}}find(s){const h=this.factories.find(X=>X.supports(s));if(h)return h;throw new T(901,"")}}return n.\u0275prov=Oe({token:n,providedIn:"root",factory:Q0}),n})();const lC=[new Y0],cC=new Xv([new G0]),hC=new Yv(lC),dC=O0(null,"core",[{provide:E0,useValue:"unknown"},{provide:Uv,deps:[Ks]},{provide:Fv,deps:[]},{provide:A0,deps:[]}]);let fC=(()=>{class n{constructor(s){}}return n.\u0275fac=function(s){return new(s||n)(ks(Vv))},n.\u0275mod=Ue({type:n}),n.\u0275inj=Ye({}),n})();const pC=!0;function gC(n){return As().compileDirectiveDeclaration(ca,`ng:///${n.type.name}/\u0275fac.js`,n)}function mC(n){var r,s;c_(n.type,n.decorators,null!==(r=n.ctorParameters)&&void 0!==r?r:null,null!==(s=n.propDecorators)&&void 0!==s?s:null)}function vC(n){return As().compileComponentDeclaration(ca,`ng:///${n.type.name}/\u0275cmp.js`,n)}function yC(n){return As(function bC(n){switch(n){case Wi.Directive:return"directive";case Wi.Component:return"component";case Wi.Injectable:return"injectable";case Wi.Pipe:return"pipe";case Wi.NgModule:return"NgModule"}}(n.target)).compileFactoryDeclaration(ca,`ng:///${n.type.name}/\u0275fac.js`,n)}function _C(n){return As().compileInjectableDeclaration(ca,`ng:///${n.type.name}/\u0275prov.js`,n)}function EC(n){return As().compileInjectorDeclaration(ca,`ng:///${n.type.name}/\u0275inj.js`,n)}function wC(n){return As().compileNgModuleDeclaration(ca,`ng:///${n.type.name}/\u0275mod.js`,n)}function AC(n){return As().compilePipeDeclaration(ca,`ng:///${n.type.name}/\u0275pipe.js`,n)}},3075:(xe,q,c)=>{"use strict";c.r(q),c.d(q,{AbstractControl:()=>fr,AbstractControlDirective:()=>Ne,AbstractFormGroupDirective:()=>Lr,COMPOSITION_BUFFER_MODE:()=>m,CheckboxControlValueAccessor:()=>C,CheckboxRequiredValidator:()=>_r,ControlContainer:()=>Qe,DefaultValueAccessor:()=>v,EmailValidator:()=>Wr,FormArray:()=>dr,FormArrayName:()=>Yi,FormBuilder:()=>ii,FormControl:()=>Ar,FormControlDirective:()=>Gi,FormControlName:()=>Hi,FormGroup:()=>Dr,FormGroupDirective:()=>Oi,FormGroupName:()=>si,FormsModule:()=>hr,MaxLengthValidator:()=>Me,MaxValidator:()=>gn,MinLengthValidator:()=>Ae,MinValidator:()=>Mn,NG_ASYNC_VALIDATORS:()=>V,NG_VALIDATORS:()=>M,NG_VALUE_ACCESSOR:()=>W,NgControl:()=>Ye,NgControlStatus:()=>Lt,NgControlStatusGroup:()=>Jt,NgForm:()=>Ur,NgModel:()=>Hn,NgModelGroup:()=>Yn,NgSelectOption:()=>ss,NumberValueAccessor:()=>wr,PatternValidator:()=>rn,RadioControlValueAccessor:()=>ui,RangeValueAccessor:()=>Ci,ReactiveFormsModule:()=>pr,RequiredValidator:()=>ur,SelectControlValueAccessor:()=>xi,SelectMultipleControlValueAccessor:()=>Mi,VERSION:()=>Or,Validators:()=>T,\u0275InternalFormsSharedModule:()=>gr,\u0275NgNoValidate:()=>er,\u0275NgSelectMultipleOption:()=>Ti});var t=c(6435),_=c(9808),x=c(5254),re=c(567),te=c(4850);let Q=(()=>{class Je{constructor(Be,It){this._renderer=Be,this._elementRef=It,this.onChange=Wn=>{},this.onTouched=()=>{}}setProperty(Be,It){this._renderer.setProperty(this._elementRef.nativeElement,Be,It)}registerOnTouched(Be){this.onTouched=Be}registerOnChange(Be){this.onChange=Be}setDisabledState(Be){this.setProperty("disabled",Be)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je}),Je})(),S=(()=>{class Je extends Q{}return Je.\u0275fac=function(){let Ve;
1return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,features:[t.\u0275\u0275InheritDefinitionFeature]}),Je})();const W=new t.InjectionToken("NgValueAccessor"),P={provide:W,useExisting:(0,t.forwardRef)(()=>C),multi:!0};let C=(()=>{class Je extends S{writeValue(Be){this.setProperty("checked",Be)}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("change",function(Sr){return It.onChange(Sr.target.checked)})("blur",function(){return It.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([P]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const L={provide:W,useExisting:(0,t.forwardRef)(()=>v),multi:!0},m=new t.InjectionToken("CompositionEventMode");let v=(()=>{class Je extends Q{constructor(Be,It,Wn){super(Be,It),this._compositionMode=Wn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function E(){const Je=(0,_.\u0275getDOM)()?(0,_.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(Je.toLowerCase())}())}writeValue(Be){this.setProperty("value",null==Be?"":Be)}_handleInput(Be){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Be)}_compositionStart(){this._composing=!0}_compositionEnd(Be){this._composing=!1,this._compositionMode&&this.onChange(Be)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(m,8))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("input",function(Sr){return It._handleInput(Sr.target.value)})("blur",function(){return It.onTouched()})("compositionstart",function(){return It._compositionStart()})("compositionend",function(Sr){return It._compositionEnd(Sr.target.value)})},features:[t.\u0275\u0275ProvidersFeature([L]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();function R(Je){return null==Je||0===Je.length}function j(Je){return null!=Je&&"number"==typeof Je.length}const M=new t.InjectionToken("NgValidators"),V=new t.InjectionToken("NgAsyncValidators"),f=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class T{static min(Ve){return Z(Ve)}static max(Ve){return G(Ve)}static required(Ve){return $(Ve)}static requiredTrue(Ve){return se(Ve)}static email(Ve){return y(Ve)}static minLength(Ve){return k(Ve)}static maxLength(Ve){return I(Ve)}static pattern(Ve){return H(Ve)}static nullValidator(Ve){return null}static compose(Ve){return ge(Ve)}static composeAsync(Ve){return b(Ve)}}function Z(Je){return Ve=>{if(R(Ve.value)||R(Je))return null;const Be=parseFloat(Ve.value);return!isNaN(Be)&&Be<Je?{min:{min:Je,actual:Ve.value}}:null}}function G(Je){return Ve=>{if(R(Ve.value)||R(Je))return null;const Be=parseFloat(Ve.value);return!isNaN(Be)&&Be>Je?{max:{max:Je,actual:Ve.value}}:null}}function $(Je){return R(Je.value)?{required:!0}:null}function se(Je){return!0===Je.value?null:{required:!0}}function y(Je){return R(Je.value)||f.test(Je.value)?null:{email:!0}}function k(Je){return Ve=>R(Ve.value)||!j(Ve.value)?null:Ve.value.length<Je?{minlength:{requiredLength:Je,actualLength:Ve.value.length}}:null}function I(Je){return Ve=>j(Ve.value)&&Ve.value.length>Je?{maxlength:{requiredLength:Je,actualLength:Ve.value.length}}:null}function H(Je){if(!Je)return ee;let Ve,Be;return"string"==typeof Je?(Be="","^"!==Je.charAt(0)&&(Be+="^"),Be+=Je,"$"!==Je.charAt(Je.length-1)&&(Be+="$"),Ve=new RegExp(Be)):(Be=Je.toString(),Ve=Je),It=>{if(R(It.value))return null;const Wn=It.value;return Ve.test(Wn)?null:{pattern:{requiredPattern:Be,actualValue:Wn}}}}function ee(Je){return null}function z(Je){return null!=Je}
1function oe(Je){const Ve=(0,t.\u0275isPromise)(Je)?(0,x.D)(Je):Je;return(0,t.\u0275isObservable)(Ve),Ve}function ve(Je){let Ve={};return Je.forEach(Be=>{Ve=null!=Be?Object.assign(Object.assign({},Ve),Be):Ve}),0===Object.keys(Ve).length?null:Ve}function We(Je,Ve){return Ve.map(Be=>Be(Je))}function He(Je){return Je.map(Ve=>function Re(Je){return!Je.validate}(Ve)?Ve:Be=>Ve.validate(Be))}function ge(Je){if(!Je)return null;const Ve=Je.filter(z);return 0==Ve.length?null:function(Be){return ve(We(Be,Ve))}}function O(Je){return null!=Je?ge(He(Je)):null}function b(Je){if(!Je)return null;const Ve=Je.filter(z);return 0==Ve.length?null:function(Be){const It=We(Be,Ve).map(oe);return(0,re.D)(It).pipe((0,te.U)(ve))}}function p(Je){return null!=Je?b(He(Je)):null}function A(Je,Ve){return null===Je?[Ve]:Array.isArray(Je)?[...Je,Ve]:[Je,Ve]}function N(Je){return Je._rawValidators}function K(Je){return Je._rawAsyncValidators}function J(Je){return Je?Array.isArray(Je)?Je:[Je]:[]}function ie(Je,Ve){return Array.isArray(Je)?Je.includes(Ve):Je===Ve}function he(Je,Ve){const Be=J(Ve);return J(Je).forEach(Wn=>{ie(Be,Wn)||Be.push(Wn)}),Be}function Oe(Je,Ve){return J(Ve).filter(Be=>!ie(Je,Be))}class Ne{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Ve){this._rawValidators=Ve||[],this._composedValidatorFn=O(this._rawValidators)}_setAsyncValidators(Ve){this._rawAsyncValidators=Ve||[],this._composedAsyncValidatorFn=p(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ve){this._onDestroyCallbacks.push(Ve)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ve=>Ve()),this._onDestroyCallbacks=[]}reset(Ve){this.control&&this.control.reset(Ve)}hasError(Ve,Be){return!!this.control&&this.control.hasError(Ve,Be)}getError(Ve,Be){return this.control?this.control.getError(Ve,Be):null}}class Ye extends Ne{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Qe extends Ne{get formDirective(){return null}get path(){return null}}class Ct{constructor(Ve){this._cd=Ve}is(Ve){var Be,It,Wn;return"submitted"===Ve?!!(null===(Be=this._cd)||void 0===Be?void 0:Be.submitted):!!(null===(Wn=null===(It=this._cd)||void 0===It?void 0:It.control)||void 0===Wn?void 0:Wn[Ve])}}let Lt=(()=>{class Je extends Ct{constructor(Be){super(Be)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Ye,2))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275classProp("ng-untouched",It.is("untouched"))("ng-touched",It.is("touched"))("ng-pristine",It.is("pristine"))("ng-dirty",It.is("dirty"))("ng-valid",It.is("valid"))("ng-invalid",It.is("invalid"))("ng-pending",It.is("pending"))},features:[t.\u0275\u0275InheritDefinitionFeature]}),Je})(),Jt=(()=>{class Je extends Ct{constructor(Be){super(Be)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Qe,10))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275classProp("ng-untouched",It.is("untouched"))("ng-touched",It.is("touched"))("ng-pristine",It.is("pristine"))("ng-dirty",It.is("dirty"))("ng-valid",It.is("valid"))("ng-invalid",It.is("invalid"))("ng-pending",It.is("pending"))("ng-submitted",It.is("submitted"))},features:[t.\u0275\u0275InheritDefinitionFeature]}),Je})();function wt(Je,Ve){return[...Ve.path,Je]}function bt(Je,Ve){tn(Je,Ve),Ve.valueAccessor.writeValue(Je.value),function Sn(Je,Ve){Ve.valueAccessor.registerOnChange(Be=>{Je._pendingValue=Be,Je._pendingChange=!0,Je._pendingDirty=!0,"change"===Je.updateOn&&rr(Je,Ve)})}(Je,Ve),function Fn(Je,Ve){const Be=(It,Wn)=>{Ve.valueAccessor.writeValue(It),Wn&&Ve.viewToModelUpdate(It)};
1Je.registerOnChange(Be),Ve._registerOnDestroy(()=>{Je._unregisterOnChange(Be)})}(Je,Ve),function Nn(Je,Ve){Ve.valueAccessor.registerOnTouched(()=>{Je._pendingTouched=!0,"blur"===Je.updateOn&&Je._pendingChange&&rr(Je,Ve),"submit"!==Je.updateOn&&Je.markAsTouched()})}(Je,Ve),function vt(Je,Ve){if(Ve.valueAccessor.setDisabledState){const Be=It=>{Ve.valueAccessor.setDisabledState(It)};Je.registerOnDisabledChange(Be),Ve._registerOnDestroy(()=>{Je._unregisterOnDisabledChange(Be)})}}(Je,Ve)}function Kt(Je,Ve,Be=!0){const It=()=>{};Ve.valueAccessor&&(Ve.valueAccessor.registerOnChange(It),Ve.valueAccessor.registerOnTouched(It)),Cn(Je,Ve),Je&&(Ve._invokeOnDestroyCallbacks(),Je._registerOnCollectionChange(()=>{}))}function Un(Je,Ve){Je.forEach(Be=>{Be.registerOnValidatorChange&&Be.registerOnValidatorChange(Ve)})}function tn(Je,Ve){const Be=N(Je);null!==Ve.validator?Je.setValidators(A(Be,Ve.validator)):"function"==typeof Be&&Je.setValidators([Be]);const It=K(Je);null!==Ve.asyncValidator?Je.setAsyncValidators(A(It,Ve.asyncValidator)):"function"==typeof It&&Je.setAsyncValidators([It]);const Wn=()=>Je.updateValueAndValidity();Un(Ve._rawValidators,Wn),Un(Ve._rawAsyncValidators,Wn)}function Cn(Je,Ve){let Be=!1;if(null!==Je){if(null!==Ve.validator){const Wn=N(Je);if(Array.isArray(Wn)&&Wn.length>0){const Sr=Wn.filter(ue=>ue!==Ve.validator);Sr.length!==Wn.length&&(Be=!0,Je.setValidators(Sr))}}if(null!==Ve.asyncValidator){const Wn=K(Je);if(Array.isArray(Wn)&&Wn.length>0){const Sr=Wn.filter(ue=>ue!==Ve.asyncValidator);Sr.length!==Wn.length&&(Be=!0,Je.setAsyncValidators(Sr))}}}const It=()=>{};return Un(Ve._rawValidators,It),Un(Ve._rawAsyncValidators,It),Be}function rr(Je,Ve){Je._pendingDirty&&Je.markAsDirty(),Je.setValue(Je._pendingValue,{emitModelToViewChange:!1}),Ve.viewToModelUpdate(Je._pendingValue),Je._pendingChange=!1}function jn(Je,Ve){tn(Je,Ve)}function we(Je,Ve){if(!Je.hasOwnProperty("model"))return!1;const Be=Je.model;return!!Be.isFirstChange()||!Object.is(Ve,Be.currentValue)}function Ue(Je,Ve){Je._syncPendingControls(),Ve.forEach(Be=>{const It=Be.control;"submit"===It.updateOn&&It._pendingChange&&(Be.viewToModelUpdate(It._pendingValue),It._pendingChange=!1)})}function st(Je,Ve){if(!Ve)return null;let Be,It,Wn;return Array.isArray(Ve),Ve.forEach(Sr=>{Sr.constructor===v?Be=Sr:function Ce(Je){return Object.getPrototypeOf(Je.constructor)===S}(Sr)?It=Sr:Wn=Sr}),Wn||It||Be||null}function Ft(Je,Ve){const Be=Je.indexOf(Ve);Be>-1&&Je.splice(Be,1)}const wn="VALID",$n="INVALID",Gn="PENDING",ir="DISABLED";function jt(Je){return(ke(Je)?Je.validators:Je)||null}function on(Je){return Array.isArray(Je)?O(Je):Je||null}function mn(Je,Ve){return(ke(Ve)?Ve.asyncValidators:Je)||null}function Mt(Je){return Array.isArray(Je)?p(Je):Je||null}function ke(Je){return null!=Je&&!Array.isArray(Je)&&"object"==typeof Je}const At=Je=>Je instanceof Ar,Ht=Je=>Je instanceof Dr,Yt=Je=>Je instanceof dr;function un(Je){return At(Je)?Je.value:Je.getRawValue()}function An(Je,Ve){const Be=Ht(Je),It=Je.controls;if(!(Be?Object.keys(It):It).length)throw new t.\u0275RuntimeError(1e3,"");if(!It[Ve])throw new t.\u0275RuntimeError(1001,"")}function sr(Je,Ve){Ht(Je),Je._forEachChild((It,Wn)=>{if(void 0===Ve[Wn])throw new t.\u0275RuntimeError(1002,"")})}class fr{constructor(Ve,Be){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Ve,this._rawAsyncValidators=Be,this._composedValidatorFn=on(this._rawValidators),this._composedAsyncValidatorFn=Mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Ve){this._rawValidators=this._composedValidatorFn=Ve}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ve){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ve}get parent(){return this._parent}get valid(){return this.status===wn}get invalid(){return this.status===$n}get pending(){return this.status==Gn}get disabled(){return this.status===ir}get enabled(){return this.status!==ir}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ve){this._rawValidators=Ve,this._composedValidatorFn=on(Ve)}setAsyncValidators(Ve){this._rawAsyncValidators=Ve,this._composedAsyncValidatorFn=Mt(Ve)}addValidators(Ve){this.setValidators(he(Ve,this._rawValidators))}addAsyncValidators(Ve){this.setAsyncValidators(he(Ve,this._rawAsyncValidators))}removeValidators(Ve){this.setValidators(Oe(Ve,this._rawValidators))}removeAsyncValidators(Ve){this.setAsyncValidators(Oe(Ve,this._rawAsyncValidators))}hasValidator(Ve){return ie(this._rawValidators,Ve)}hasAsyncValidator(Ve){return ie(this._rawAsyncValidators,Ve)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ve={}){this.touched=!0,this._parent&&!Ve.onlySelf&&this._parent.markAsTouched(Ve)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}
1),this._forEachChild(Ve=>Ve.markAllAsTouched())}markAsUntouched(Ve={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Be=>{Be.markAsUntouched({onlySelf:!0})}),this._parent&&!Ve.onlySelf&&this._parent._updateTouched(Ve)}markAsDirty(Ve={}){this.pristine=!1,this._parent&&!Ve.onlySelf&&this._parent.markAsDirty(Ve)}markAsPristine(Ve={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Be=>{Be.markAsPristine({onlySelf:!0})}),this._parent&&!Ve.onlySelf&&this._parent._updatePristine(Ve)}markAsPending(Ve={}){this.status=Gn,!1!==Ve.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ve.onlySelf&&this._parent.markAsPending(Ve)}disable(Ve={}){const Be=this._parentMarkedDirty(Ve.onlySelf);this.status=ir,this.errors=null,this._forEachChild(It=>{It.disable(Object.assign(Object.assign({},Ve),{onlySelf:!0}))}),this._updateValue(),!1!==Ve.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Ve),{skipPristineCheck:Be})),this._onDisabledChange.forEach(It=>It(!0))}enable(Ve={}){const Be=this._parentMarkedDirty(Ve.onlySelf);this.status=wn,this._forEachChild(It=>{It.enable(Object.assign(Object.assign({},Ve),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ve.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Ve),{skipPristineCheck:Be})),this._onDisabledChange.forEach(It=>It(!1))}_updateAncestors(Ve){this._parent&&!Ve.onlySelf&&(this._parent.updateValueAndValidity(Ve),Ve.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ve){this._parent=Ve}updateValueAndValidity(Ve={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wn||this.status===Gn)&&this._runAsyncValidator(Ve.emitEvent)),!1!==Ve.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ve.onlySelf&&this._parent.updateValueAndValidity(Ve)}_updateTreeValidity(Ve={emitEvent:!0}){this._forEachChild(Be=>Be._updateTreeValidity(Ve)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ve.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ir:wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ve){if(this.asyncValidator){this.status=Gn,this._hasOwnPendingAsyncValidator=!0;const Be=oe(this.asyncValidator(this));this._asyncValidationSubscription=Be.subscribe(It=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(It,{emitEvent:Ve})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ve,Be={}){this.errors=Ve,this._updateControlsErrors(!1!==Be.emitEvent)}get(Ve){return function Wt(Je,Ve,Be){if(null==Ve||(Array.isArray(Ve)||(Ve=Ve.split(Be)),Array.isArray(Ve)&&0===Ve.length))return null;let It=Je;return Ve.forEach(Wn=>{It=Ht(It)?It.controls.hasOwnProperty(Wn)?It.controls[Wn]:null:Yt(It)&&It.at(Wn)||null}),It}(this,Ve,".")}getError(Ve,Be){const It=Be?this.get(Be):this;return It&&It.errors?It.errors[Ve]:null}hasError(Ve,Be){return!!this.getError(Ve,Be)}get root(){let Ve=this;for(;Ve._parent;)Ve=Ve._parent;return Ve}_updateControlsErrors(Ve){this.status=this._calculateStatus(),Ve&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ve)}_initObservables(){this.valueChanges=new t.EventEmitter,this.statusChanges=new t.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?ir:this.errors?$n:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Gn)?Gn:this._anyControlsHaveStatus($n)?$n:wn}_anyControlsHaveStatus(Ve){return this._anyControls(Be=>Be.status===Ve)}_anyControlsDirty(){return this._anyControls(Ve=>Ve.dirty)}_anyControlsTouched(){return this._anyControls(Ve=>Ve.touched)}_updatePristine(Ve={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ve.onlySelf&&this._parent._updatePristine(Ve)}_updateTouched(Ve={}){this.touched=this._anyControlsTouched(),this._parent&&!Ve.onlySelf&&this._parent._updateTouched(Ve)}_isBoxedValue(Ve){return"object"==typeof Ve&&null!==Ve&&2===Object.keys(Ve).length&&"value"in Ve&&"disabled"in Ve}_registerOnCollectionChange(Ve){this._onCollectionChange=Ve}_setUpdateStrategy(Ve){ke(Ve)&&null!=Ve.updateOn&&(this._updateOn=Ve.updateOn)}_parentMarkedDirty(Ve){return!Ve&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ar extends fr{constructor(Ve=null,Be,It){super(jt(Be),mn(It,Be)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ve),this._setUpdateStrategy(Be),this._initOb
1servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ke(Be)&&Be.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Ve)?Ve.value:Ve)}setValue(Ve,Be={}){this.value=this._pendingValue=Ve,this._onChange.length&&!1!==Be.emitModelToViewChange&&this._onChange.forEach(It=>It(this.value,!1!==Be.emitViewToModelChange)),this.updateValueAndValidity(Be)}patchValue(Ve,Be={}){this.setValue(Ve,Be)}reset(Ve=this.defaultValue,Be={}){this._applyFormState(Ve),this.markAsPristine(Be),this.markAsUntouched(Be),this.setValue(this.value,Be),this._pendingChange=!1}_updateValue(){}_anyControls(Ve){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ve){this._onChange.push(Ve)}_unregisterOnChange(Ve){Ft(this._onChange,Ve)}registerOnDisabledChange(Ve){this._onDisabledChange.push(Ve)}_unregisterOnDisabledChange(Ve){Ft(this._onDisabledChange,Ve)}_forEachChild(Ve){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Ve){this._isBoxedValue(Ve)?(this.value=this._pendingValue=Ve.value,Ve.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ve}}class Dr extends fr{constructor(Ve,Be,It){super(jt(Be),mn(It,Be)),this.controls=Ve,this._initObservables(),this._setUpdateStrategy(Be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ve,Be){return this.controls[Ve]?this.controls[Ve]:(this.controls[Ve]=Be,Be.setParent(this),Be._registerOnCollectionChange(this._onCollectionChange),Be)}addControl(Ve,Be,It={}){this.registerControl(Ve,Be),this.updateValueAndValidity({emitEvent:It.emitEvent}),this._onCollectionChange()}removeControl(Ve,Be={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),delete this.controls[Ve],this.updateValueAndValidity({emitEvent:Be.emitEvent}),this._onCollectionChange()}setControl(Ve,Be,It={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),delete this.controls[Ve],Be&&this.registerControl(Ve,Be),this.updateValueAndValidity({emitEvent:It.emitEvent}),this._onCollectionChange()}contains(Ve){return this.controls.hasOwnProperty(Ve)&&this.controls[Ve].enabled}setValue(Ve,Be={}){sr(this,Ve),Object.keys(Ve).forEach(It=>{An(this,It),this.controls[It].setValue(Ve[It],{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be)}patchValue(Ve,Be={}){null!=Ve&&(Object.keys(Ve).forEach(It=>{this.controls[It]&&this.controls[It].patchValue(Ve[It],{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be))}reset(Ve={},Be={}){this._forEachChild((It,Wn)=>{It.reset(Ve[Wn],{onlySelf:!0,emitEvent:Be.emitEvent})}),this._updatePristine(Be),this._updateTouched(Be),this.updateValueAndValidity(Be)}getRawValue(){return this._reduceChildren({},(Ve,Be,It)=>(Ve[It]=un(Be),Ve))}_syncPendingControls(){let Ve=this._reduceChildren(!1,(Be,It)=>!!It._syncPendingControls()||Be);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}_forEachChild(Ve){Object.keys(this.controls).forEach(Be=>{const It=this.controls[Be];It&&Ve(It,Be)})}_setUpControls(){this._forEachChild(Ve=>{Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ve){for(const Be of Object.keys(this.controls)){const It=this.controls[Be];if(this.contains(Be)&&Ve(It))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Ve,Be,It)=>((Be.enabled||this.disabled)&&(Ve[It]=Be.value),Ve))}_reduceChildren(Ve,Be){let It=Ve;return this._forEachChild((Wn,Sr)=>{It=Be(It,Wn,Sr)}),It}_allControlsDisabled(){for(const Ve of Object.keys(this.controls))if(this.controls[Ve].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class dr extends fr{constructor(Ve,Be,It){super(jt(Be),mn(It,Be)),this.controls=Ve,this._initObservables(),this._setUpdateStrategy(Be),this._setUpControl
1s(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ve){return this.controls[Ve]}push(Ve,Be={}){this.controls.push(Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:Be.emitEvent}),this._onCollectionChange()}insert(Ve,Be,It={}){this.controls.splice(Ve,0,Be),this._registerControl(Be),this.updateValueAndValidity({emitEvent:It.emitEvent})}removeAt(Ve,Be={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),this.controls.splice(Ve,1),this.updateValueAndValidity({emitEvent:Be.emitEvent})}setControl(Ve,Be,It={}){this.controls[Ve]&&this.controls[Ve]._registerOnCollectionChange(()=>{}),this.controls.splice(Ve,1),Be&&(this.controls.splice(Ve,0,Be),this._registerControl(Be)),this.updateValueAndValidity({emitEvent:It.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ve,Be={}){sr(this,Ve),Ve.forEach((It,Wn)=>{An(this,Wn),this.at(Wn).setValue(It,{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be)}patchValue(Ve,Be={}){null!=Ve&&(Ve.forEach((It,Wn)=>{this.at(Wn)&&this.at(Wn).patchValue(It,{onlySelf:!0,emitEvent:Be.emitEvent})}),this.updateValueAndValidity(Be))}reset(Ve=[],Be={}){this._forEachChild((It,Wn)=>{It.reset(Ve[Wn],{onlySelf:!0,emitEvent:Be.emitEvent})}),this._updatePristine(Be),this._updateTouched(Be),this.updateValueAndValidity(Be)}getRawValue(){return this.controls.map(Ve=>un(Ve))}clear(Ve={}){this.controls.length<1||(this._forEachChild(Be=>Be._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ve.emitEvent}))}_syncPendingControls(){let Ve=this.controls.reduce((Be,It)=>!!It._syncPendingControls()||Be,!1);return Ve&&this.updateValueAndValidity({onlySelf:!0}),Ve}_forEachChild(Ve){this.controls.forEach((Be,It)=>{Ve(Be,It)})}_updateValue(){this.value=this.controls.filter(Ve=>Ve.enabled||this.disabled).map(Ve=>Ve.value)}_anyControls(Ve){return this.controls.some(Be=>Be.enabled&&Ve(Be))}_setUpControls(){this._forEachChild(Ve=>this._registerControl(Ve))}_allControlsDisabled(){for(const Ve of this.controls)if(Ve.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ve){Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange)}}const Kr={provide:Qe,useExisting:(0,t.forwardRef)(()=>Ur)},jr=(()=>Promise.resolve(null))();let Ur=(()=>{class Je extends Qe{constructor(Be,It){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.EventEmitter,this.form=new Dr({},O(Be),p(It))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Be){jr.then(()=>{const It=this._findContainer(Be.path);Be.control=It.registerControl(Be.name,Be.control),bt(Be.control,Be),Be.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Be)})}getControl(Be){return this.form.get(Be.path)}
1removeControl(Be){jr.then(()=>{const It=this._findContainer(Be.path);It&&It.removeControl(Be.name),this._directives.delete(Be)})}addFormGroup(Be){jr.then(()=>{const It=this._findContainer(Be.path),Wn=new Dr({});jn(Wn,Be),It.registerControl(Be.name,Wn),Wn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Be){jr.then(()=>{const It=this._findContainer(Be.path);It&&It.removeControl(Be.name)})}getFormGroup(Be){return this.form.get(Be.path)}updateModel(Be,It){jr.then(()=>{this.form.get(Be.path).setValue(It)})}setValue(Be){this.control.setValue(Be)}onSubmit(Be){return this.submitted=!0,Ue(this.form,this._directives),this.ngSubmit.emit(Be),!1}onReset(){this.resetForm()}resetForm(Be){this.form.reset(Be),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Be){return Be.pop(),Be.length?this.form.get(Be):this.form}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("submit",function(Sr){return It.onSubmit(Sr)})("reset",function(){return It.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Kr]),t.\u0275\u0275InheritDefinitionFeature]}),Je})(),Lr=(()=>{class Je extends Qe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,features:[t.\u0275\u0275InheritDefinitionFeature]}),Je})();const Bn={provide:Qe,useExisting:(0,t.forwardRef)(()=>Yn)};let Yn=(()=>{class Je extends Lr{constructor(Be,It,Wn){super(),this._parent=Be,this._setValidators(It),this._setAsyncValidators(Wn)}_checkParentType(){}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Qe,5),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[t.\u0275\u0275ProvidersFeature([Bn]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const Qt={provide:Ye,useExisting:(0,t.forwardRef)(()=>Hn)},En=(()=>Promise.resolve(null))();let Hn=(()=>{class Je extends Ye{constructor(Be,It,Wn,Sr,ue){super(),this._changeDetectorRef=ue,this.control=new Ar,this._registered=!1,this.update=new t.EventEmitter,this._parent=Be,this._setValidators(It),this._setAsyncValidators(Wn),this.valueAccessor=st(0,Sr)}ngOnChanges(Be){if(this._checkForErrors(),!this._registered||"name"in Be){if(this._registered&&(this._checkName(),this.formDirective)){const It=Be.name.previousValue;this.formDirective.removeControl({name:It,path:this._getPath(It)})}this._setUpControl()}"isDisabled"in Be&&this._updateDisabled(Be),we(Be,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Be){this.viewModel=Be,this.update.emit(Be)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Be){En.then(()=>{var It;this.control.setValue(Be,{emitViewToModelChange:!1}),null===(It=this._changeDetectorRef)||void 0===It||It.markForCheck()})}_updateDisabled(Be){const It=Be.isDisabled.currentValue,Wn=""===It||It&&"false"!==It;En.then(()=>{var Sr;Wn&&!this.control.disabled?this.control.disable():!Wn&&this.control.disabled&&this.control.enable(),null===(Sr=this._changeDetectorRef)||void 0===Sr||Sr.markForCheck()})}_getPath(Be){return this._parent?wt(Be,this._parent):[Be]}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Qe,9),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10),t.\u0275\u0275directiveInject(W,10),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,8))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.\u0275\u0275ProvidersFeature([Qt]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),Je})(),er=(()=>{class Je{}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Je})();const or={provide:W,useExisting:(0,t.forwardRef)(()=>wr),multi:!0};let wr=(()=>{class Je extends S{writeValue(Be){this.setProperty("value",null==Be?"":Be)}registerOnChange(Be){this.onChange=It=>{Be(""==It?null:parseFloat(It))}}}return Je.\u0275fac=function(){let Ve;
1return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("input",function(Sr){return It.onChange(Sr.target.value)})("blur",function(){return It.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([or]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const Nr={provide:W,useExisting:(0,t.forwardRef)(()=>ui),multi:!0};let ei=(()=>{class Je{}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275mod=t.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=t.\u0275\u0275defineInjector({}),Je})(),oi=(()=>{class Je{constructor(){this._accessors=[]}add(Be,It){this._accessors.push([Be,It])}remove(Be){for(let It=this._accessors.length-1;It>=0;--It)if(this._accessors[It][1]===Be)return void this._accessors.splice(It,1)}select(Be){this._accessors.forEach(It=>{this._isSameGroup(It,Be)&&It[1]!==Be&&It[1].fireUncheck(Be.value)})}_isSameGroup(Be,It){return!!Be[0].control&&Be[0]._parent===It._control._parent&&Be[1].name===It.name}}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275prov=t.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:ei}),Je})(),ui=(()=>{class Je extends S{constructor(Be,It,Wn,Sr){super(Be,It),this._registry=Wn,this._injector=Sr,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Ye),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(Be){this._state=Be===this.value,this.setProperty("checked",this._state)}registerOnChange(Be){this._fn=Be,this.onChange=()=>{Be(this.value),this._registry.select(this)}}fireUncheck(Be){this.writeValue(Be)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(oi),t.\u0275\u0275directiveInject(t.Injector))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("change",function(){return It.onChange()})("blur",function(){return It.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t.\u0275\u0275ProvidersFeature([Nr]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const Yr={provide:W,useExisting:(0,t.forwardRef)(()=>Ci),multi:!0};let Ci=(()=>{class Je extends S{writeValue(Be){this.setProperty("value",parseFloat(Be))}registerOnChange(Be){this.onChange=It=>{Be(""==It?null:parseFloat(It))}}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("change",function(Sr){return It.onChange(Sr.target.value)})("input",function(Sr){return It.onChange(Sr.target.value)})("blur",function(){return It.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([Yr]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const Ji=new t.InjectionToken("NgModelWithFormControlWarning"),ci={provide:Ye,useExisting:(0,t.forwardRef)(()=>Gi)};let Gi=(()=>{class Je extends Ye{constructor(Be,It,Wn,Sr){super(),this._ngModelWarningConfig=Sr,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(Be),this._setAsyncValidators(It),this.valueAccessor=st(0,Wn)}set isDisabled(Be){}ngOnChanges(Be){if(this._isControlChanged(Be)){const It=Be.form.previousValue;It&&Kt(It,this,!1),bt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}we(Be,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}
1ngOnDestroy(){this.form&&Kt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Be){this.viewModel=Be,this.update.emit(Be)}_isControlChanged(Be){return Be.hasOwnProperty("form")}}return Je._ngModelWarningSentOnce=!1,Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10),t.\u0275\u0275directiveInject(W,10),t.\u0275\u0275directiveInject(Ji,8))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([ci]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),Je})();const rs={provide:Qe,useExisting:(0,t.forwardRef)(()=>Oi)};let Oi=(()=>{class Je extends Qe{constructor(Be,It){super(),this.validators=Be,this.asyncValidators=It,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.EventEmitter,this._setValidators(Be),this._setAsyncValidators(It)}ngOnChanges(Be){this._checkFormPresent(),Be.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Be){const It=this.form.get(Be.path);return bt(It,Be),It.updateValueAndValidity({emitEvent:!1}),this.directives.push(Be),It}getControl(Be){return this.form.get(Be.path)}
1removeControl(Be){Kt(Be.control||null,Be,!1),Ft(this.directives,Be)}addFormGroup(Be){this._setUpFormContainer(Be)}removeFormGroup(Be){this._cleanUpFormContainer(Be)}getFormGroup(Be){return this.form.get(Be.path)}addFormArray(Be){this._setUpFormContainer(Be)}removeFormArray(Be){this._cleanUpFormContainer(Be)}getFormArray(Be){return this.form.get(Be.path)}updateModel(Be,It){this.form.get(Be.path).setValue(It)}onSubmit(Be){return this.submitted=!0,Ue(this.form,this.directives),this.ngSubmit.emit(Be),!1}onReset(){this.resetForm()}resetForm(Be){this.form.reset(Be),this.submitted=!1}_updateDomValue(){this.directives.forEach(Be=>{const It=Be.control,Wn=this.form.get(Be.path);It!==Wn&&(Kt(It||null,Be),At(Wn)&&(bt(Wn,Be),Be.control=Wn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Be){const It=this.form.get(Be.path);jn(It,Be),It.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Be){if(this.form){const It=this.form.get(Be.path);It&&function nr(Je,Ve){return Cn(Je,Ve)}(It,Be)&&It.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){tn(this.form,this),this._oldForm&&Cn(this._oldForm,this)}_checkFormPresent(){}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formGroup",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("submit",function(Sr){return It.onSubmit(Sr)})("reset",function(){return It.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([rs]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),Je})();const $r={provide:Qe,useExisting:(0,t.forwardRef)(()=>si)};let si=(()=>{class Je extends Lr{constructor(Be,It,Wn){super(),this._parent=Be,this._setValidators(It),this._setAsyncValidators(Wn)}_checkParentType(){is(this._parent)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Qe,13),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[t.\u0275\u0275ProvidersFeature([$r]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const cs={provide:Qe,useExisting:(0,t.forwardRef)(()=>Yi)};let Yi=(()=>{class Je extends Qe{constructor(Be,It,Wn){super(),this._parent=Be,this._setValidators(It),this._setAsyncValidators(Wn)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){is(this._parent)}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Qe,13),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[t.\u0275\u0275ProvidersFeature([cs]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();function is(Je){return!(Je instanceof si||Je instanceof Oi||Je instanceof Yi)}const $i={provide:Ye,useExisting:(0,t.forwardRef)(()=>Hi)};let Hi=(()=>{class Je extends Ye{constructor(Be,It,Wn,Sr,ue){super(),this._ngModelWarningConfig=ue,this._added=!1,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._parent=Be,this._setValidators(It),this._setAsyncValidators(Wn),this.valueAccessor=st(0,Sr)}set isDisabled(Be){}ngOnChanges(Be){this._added||this._setUpControl(),we(Be,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Be){this.viewModel=Be,this.update.emit(Be)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Je._ngModelWarningSentOnce=!1,Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(Qe,13),t.\u0275\u0275directiveInject(M,10),t.\u0275\u0275directiveInject(V,10),t.\u0275\u0275directiveInject(W,10),t.\u0275\u0275directiveInject(Ji,8))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.\u0275\u0275ProvidersFeature([$i]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),Je})();const ai={provide:W,useExisting:(0,t.forwardRef)(()=>xi),multi:!0};function Zi(Je,Ve){return null==Je?`${Ve}`:(Ve&&"object"==typeof Ve&&(Ve="Object"),`${Je}: ${Ve}`.slice(0,50))}let xi=(()=>{class Je extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Be){this._compareWith=Be}writeValue(Be){this.value=Be;const Wn=Zi(this._getOptionId(Be),Be);this.setProperty("value",Wn)}registerOnChange(Be){this.onChange=It=>{this.value=this._getOptionValue(It),Be(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Be){for(const It of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(It),Be))return It;return null}_getOptionValue(Be){const It=function zi(Je){return Je.split(":")[0]}(Be);return this._optionMap.has(It)?this._optionMap.get(It):Be}}return Je.\u0275fac=function(){let Ve;
1return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("change",function(Sr){return It.onChange(Sr.target.value)})("blur",function(){return It.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([ai]),t.\u0275\u0275InheritDefinitionFeature]}),Je})(),ss=(()=>{class Je{constructor(Be,It,Wn){this._element=Be,this._renderer=It,this._select=Wn,this._select&&(this.id=this._select._registerOption())}set ngValue(Be){null!=this._select&&(this._select._optionMap.set(this.id,Be),this._setElementValue(Zi(this.id,Be)),this._select.writeValue(this._select.value))}set value(Be){this._setElementValue(Be),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Be){this._renderer.setProperty(this._element.nativeElement,"value",Be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(xi,9))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Je})();const hs={provide:W,useExisting:(0,t.forwardRef)(()=>Mi),multi:!0};function fs(Je,Ve){return null==Je?`${Ve}`:("string"==typeof Ve&&(Ve=`'${Ve}'`),Ve&&"object"==typeof Ve&&(Ve="Object"),`${Je}: ${Ve}`.slice(0,50))}let Mi=(()=>{class Je extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Be){this._compareWith=Be}writeValue(Be){let It;if(this.value=Be,Array.isArray(Be)){const Wn=Be.map(Sr=>this._getOptionId(Sr));It=(Sr,ue)=>{Sr._setSelected(Wn.indexOf(ue.toString())>-1)}}else It=(Wn,Sr)=>{Wn._setSelected(!1)};this._optionMap.forEach(It)}registerOnChange(Be){this.onChange=It=>{const Wn=[],Sr=It.selectedOptions;if(void 0!==Sr){const ue=Sr;for(let et=0;et<ue.length;et++){const Ze=this._getOptionValue(ue[et].value);Wn.push(Ze)}}else{const ue=It.options;for(let et=0;et<ue.length;et++){const de=ue[et];if(de.selected){const Ze=this._getOptionValue(de.value);Wn.push(Ze)}}}this.value=Wn,Be(Wn)}}_registerOption(Be){const It=(this._idCounter++).toString();return this._optionMap.set(It,Be),It}_getOptionId(Be){for(const It of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(It)._value,Be))return It;return null}_getOptionValue(Be){const It=function bs(Je){return Je.split(":")[0]}(Be);return this._optionMap.has(It)?this._optionMap.get(It)._value:Be}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Be,It){1&Be&&t.\u0275\u0275listener("change",function(Sr){return It.onChange(Sr.target)})("blur",function(){return It.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([hs]),t.\u0275\u0275InheritDefinitionFeature]}),Je})(),Ti=(()=>{class Je{constructor(Be,It,Wn){this._element=Be,this._renderer=It,this._select=Wn,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Be){null!=this._select&&(this._value=Be,this._setElementValue(fs(this.id,Be)),this._select.writeValue(this._select.value))}set value(Be){this._select?(this._value=Be,this._setElementValue(fs(this.id,Be)),this._select.writeValue(this._select.value)):this._setElementValue(Be)}_setElementValue(Be){this._renderer.setProperty(this._element.nativeElement,"value",Be)}_setSelected(Be){this._renderer.setProperty(this._element.nativeElement,"selected",Be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}}return Je.\u0275fac=function(Be){return new(Be||Je)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(Mi,9))},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Je})();function os(Je){return"number"==typeof Je?Je:parseInt(Je,10)}function tt(Je){return"number"==typeof Je?Je:parseFloat(Je)}let Xe=(()=>{class Je{constructor(){this._validator=ee}ngOnChanges(Be){if(this.inputName in Be){const It=this.normalizeInput(Be[this.inputName].currentValue);this._enabled=this.enabled(It),this._validator=this._enabled?this.createValidator(It):ee,this._onChange&&this._onChange()}}validate(Be){return this._validator(Be)}registerOnValidatorChange(Be){this._onChange=Be}enabled(Be){return null!=Be}}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,features:[t.\u0275\u0275NgOnChangesFeature]}),Je})();const Ut={provide:M,useExisting:(0,t.forwardRef)(()=>gn),multi:!0};let gn=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Be=>tt(Be),this.createValidator=Be=>G(Be)}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("max",It._enabled?It.max:null)},inputs:{max:"max"},features:[t.\u0275\u0275ProvidersFeature([Ut]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const _n={provide:M,useExisting:(0,t.forwardRef)(()=>Mn),multi:!0};let Mn=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Be=>tt(Be),this.createValidator=Be=>Z(Be)}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("min",It._enabled?It.min:null)},inputs:{min:"min"},features:[t.\u0275\u0275ProvidersFeature([_n]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const qn={provide:M,useExisting:(0,t.forwardRef)(()=>ur),multi:!0},cr={provide:M,useExisting:(0,t.forwardRef)(()=>_r),multi:!0};let ur=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Be=>function Ii(Je){return null!=Je&&!1!==Je&&"false"!=`${Je}`}(Be),this.createValidator=Be=>$}enabled(Be){return Be}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("required",It._enabled?"":null)},inputs:{required:"required"},features:[t.\u0275\u0275ProvidersFeature([qn]),t.\u0275\u0275InheritDefinitionFeature]}),Je})(),_r=(()=>{class Je extends ur{constructor(){super(...arguments),this.createValidator=Be=>se}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("required",It._enabled?"":null)},features:[t.\u0275\u0275ProvidersFeature([cr]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const Mr={provide:M,useExisting:(0,t.forwardRef)(()=>Wr),multi:!0};let Wr=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=Be=>""===Be||!0===Be||"true"===Be,this.createValidator=Be=>y}enabled(Be){return Be}}return Je.\u0275fac=function(){let Ve;
1return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[t.\u0275\u0275ProvidersFeature([Mr]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const le={provide:M,useExisting:(0,t.forwardRef)(()=>Ae),multi:!0};let Ae=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=Be=>os(Be),this.createValidator=Be=>k(Be)}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("minlength",It._enabled?It.minlength:null)},inputs:{minlength:"minlength"},features:[t.\u0275\u0275ProvidersFeature([le]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const be={provide:M,useExisting:(0,t.forwardRef)(()=>Me),multi:!0};let Me=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=Be=>os(Be),this.createValidator=Be=>I(Be)}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("maxlength",It._enabled?It.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t.\u0275\u0275ProvidersFeature([be]),t.\u0275\u0275InheritDefinitionFeature]}),Je})();const dt={provide:M,useExisting:(0,t.forwardRef)(()=>rn),multi:!0};let rn=(()=>{class Je extends Xe{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Be=>Be,this.createValidator=Be=>H(Be)}}return Je.\u0275fac=function(){let Ve;return function(It){return(Ve||(Ve=t.\u0275\u0275getInheritedFactory(Je)))(It||Je)}}(),Je.\u0275dir=t.\u0275\u0275defineDirective({type:Je,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Be,It){2&Be&&t.\u0275\u0275attribute("pattern",It._enabled?It.pattern:null)},inputs:{pattern:"pattern"},features:[t.\u0275\u0275ProvidersFeature([dt]),t.\u0275\u0275InheritDefinitionFeature]}),Je})(),gr=(()=>{class Je{}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275mod=t.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=t.\u0275\u0275defineInjector({imports:[[ei]]}),Je})(),hr=(()=>{class Je{}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275mod=t.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=t.\u0275\u0275defineInjector({imports:[gr]}),Je})(),pr=(()=>{class Je{static withConfig(Be){return{ngModule:Je,providers:[{provide:Ji,useValue:Be.warnOnNgModelWithFormControl}]}}}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275mod=t.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=t.\u0275\u0275defineInjector({imports:[gr]}),Je})(),ii=(()=>{class Je{group(Be,It=null){const Wn=this._reduceControls(Be);let et,Sr=null,ue=null;return null!=It&&(function zr(Je){return void 0!==Je.asyncValidators||void 0!==Je.validators||void 0!==Je.updateOn}(It)?(Sr=null!=It.validators?It.validators:null,ue=null!=It.asyncValidators?It.asyncValidators:null,et=null!=It.updateOn?It.updateOn:void 0):(Sr=null!=It.validator?It.validator:null,ue=null!=It.asyncValidator?It.asyncValidator:null)),new Dr(Wn,{asyncValidators:ue,updateOn:et,validators:Sr})}control(Be,It,Wn){return new Ar(Be,It,Wn)}array(Be,It,Wn){const Sr=Be.map(ue=>this._createControl(ue));return new dr(Sr,It,Wn)}_reduceControls(Be){const It={};return Object.keys(Be).forEach(Wn=>{It[Wn]=this._createControl(Be[Wn])}),It}_createControl(Be){return At(Be)||Ht(Be)||Yt(Be)?Be:Array.isArray(Be)?this.control(Be[0],Be.length>1?Be[1]:null,Be.length>2?Be[2]:null):this.control(Be)}}return Je.\u0275fac=function(Be){return new(Be||Je)},Je.\u0275prov=t.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:pr}),Je})();const Or=new t.Version("13.2.7")},2313:(xe,q,c)=>{"use strict";c.d(q,{b2:()=>Ot,H7:()=>nr,Dx:()=>it,q6:()=>Qe,se:()=>oe});var t=c(9808),_=c(6435);class x extends t.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class re extends x{static makeCurrent(){(0,t.\u0275setRootDomAdapter)(new re)}onAndCancel(we,Ce,Ue){return we.addEventListener(Ce,Ue,!1),()=>{we.removeEventListener(Ce,Ue,!1)}}
1dispatchEvent(we,Ce){we.dispatchEvent(Ce)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,Ce){return(Ce=Ce||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,Ce){return"window"===Ce?window:"document"===Ce?we:"body"===Ce?we.body:null}getBaseHref(we){const Ce=function Q(){return te=te||document.querySelector("base"),te?te.getAttribute("href"):null}();return null==Ce?null:function W(ae){S=S||document.createElement("a"),S.setAttribute("href",ae);const we=S.pathname;return"/"===we.charAt(0)?we:`/${we}`}(Ce)}resetBaseElement(){te=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,t.\u0275parseCookieValue)(document.cookie,we)}}let S,te=null;const P=new _.InjectionToken("TRANSITION_ID"),L=[{provide:_.APP_INITIALIZER,useFactory:function C(ae,we,Ce){return()=>{Ce.get(_.ApplicationInitStatus).donePromise.then(()=>{const Ue=(0,t.\u0275getDOM)(),st=we.querySelectorAll(`style[ng-transition="${ae}"]`);for(let Ft=0;Ft<st.length;Ft++)Ue.remove(st[Ft])})}},deps:[P,t.DOCUMENT,_.Injector],multi:!0}];class E{static init(){(0,_.setTestabilityGetter)(new E)}addToWindow(we){_.\u0275global.getAngularTestability=(Ue,st=!0)=>{const Ft=we.findTestabilityInTree(Ue,st);if(null==Ft)throw new Error("Could not find testability for element.");return Ft},_.\u0275global.getAllAngularTestabilities=()=>we.getAllTestabilities(),_.\u0275global.getAllAngularRootElements=()=>we.getAllRootElements(),_.\u0275global.frameworkStabilizers||(_.\u0275global.frameworkStabilizers=[]),_.\u0275global.frameworkStabilizers.push(Ue=>{const st=_.\u0275global.getAllAngularTestabilities();let Ft=st.length,nn=!1;const vn=function(wn){nn=nn||wn,Ft--,0==Ft&&Ue(nn)};st.forEach(function(wn){wn.whenStable(vn)})})}findTestabilityInTree(we,Ce,Ue){if(null==Ce)return null;const st=we.getTestability(Ce);return null!=st?st:Ue?(0,t.\u0275getDOM)().isShadowRoot(Ce)?this.findTestabilityInTree(we,Ce.host,!0):this.findTestabilityInTree(we,Ce.parentElement,!0):null}}let m=(()=>{class ae{build(){return new XMLHttpRequest}}return ae.\u0275fac=function(Ce){return new(Ce||ae)},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})();const v=new _.InjectionToken("EventManagerPlugins");let R=(()=>{class ae{constructor(Ce,Ue){this._zone=Ue,this._eventNameToPlugin=new Map,Ce.forEach(st=>st.manager=this),this._plugins=Ce.slice().reverse()}addEventListener(Ce,Ue,st){return this._findPluginFor(Ue).addEventListener(Ce,Ue,st)}addGlobalEventListener(Ce,Ue,st){return this._findPluginFor(Ue).addGlobalEventListener(Ce,Ue,st)}getZone(){return this._zone}_findPluginFor(Ce){const Ue=this._eventNameToPlugin.get(Ce);if(Ue)return Ue;const st=this._plugins;for(let Ft=0;Ft<st.length;Ft++){const nn=st[Ft];if(nn.supports(Ce))return this._eventNameToPlugin.set(Ce,nn),nn}throw new Error(`No event manager plugin found for event ${Ce}`)}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(v),_.\u0275\u0275inject(_.NgZone))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})();class j{constructor(we){this._doc=we}addGlobalEventListener(we,Ce,Ue){const st=(0,t.\u0275getDOM)().getGlobalEventTarget(this._doc,we);if(!st)throw new Error(`Unsupported event target ${st} for event ${Ce}`);return this.addEventListener(st,Ce,Ue)}}let M=(()=>{class ae{constructor(){this._stylesSet=new Set}addStyles(Ce){const Ue=new Set;Ce.forEach(st=>{this._stylesSet.has(st)||(this._stylesSet.add(st),Ue.add(st))}),this.onStylesAdded(Ue)}onStylesAdded(Ce){}getAllStyles(){return Array.from(this._stylesSet)}}return ae.\u0275fac=function(Ce){return new(Ce||ae)},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})(),V=(()=>{class ae extends M{constructor(Ce){super(),this._doc=Ce,this._hostNodes=new Map,this._hostNodes.set(Ce.head,[])}_addStylesToHost(Ce,Ue,st){Ce.forEach(Ft=>{const nn=this._doc.createElement("style");nn.textContent=Ft,st.push(Ue.appendChild(nn))})}addHost(Ce){const Ue=[];this._addStylesToHost(this._stylesSet,Ce,Ue),this._hostNodes.set(Ce,Ue)}removeHost(Ce){const Ue=this._hostNodes.get(Ce);Ue&&Ue.forEach(f),this._hostNodes.delete(Ce)}
vendor: 6,673 bytes, line 1
1onStylesAdded(Ce){this._hostNodes.forEach((Ue,st)=>{this._addStylesToHost(Ce,st,Ue)})}ngOnDestroy(){this._hostNodes.forEach(Ce=>Ce.forEach(f))}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(t.DOCUMENT))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})();function f(ae){(0,t.\u0275getDOM)().remove(ae)}const T={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Z=/%COMP%/g,$="%COMP%",se=`_nghost-${$}`,y=`_ngcontent-${$}`;function H(ae,we,Ce){for(let Ue=0;Ue<we.length;Ue++){let st=we[Ue];Array.isArray(st)?H(ae,st,Ce):(st=st.replace(Z,ae),Ce.push(st))}return Ce}function ee(ae){return we=>{if("__ngUnwrap__"===we)return ae;!1===ae(we)&&(we.preventDefault(),we.returnValue=!1)}}let oe=(()=>{class ae{constructor(Ce,Ue,st){this.eventManager=Ce,this.sharedStylesHost=Ue,this.appId=st,this.rendererByCompId=new Map,this.defaultRenderer=new ve(Ce)}createRenderer(Ce,Ue){if(!Ce||!Ue)return this.defaultRenderer;switch(Ue.encapsulation){case _.ViewEncapsulation.Emulated:{let st=this.rendererByCompId.get(Ue.id);return st||(st=new He(this.eventManager,this.sharedStylesHost,Ue,this.appId),this.rendererByCompId.set(Ue.id,st)),st.applyToHost(Ce),st}case 1:case _.ViewEncapsulation.ShadowDom:return new ge(this.eventManager,this.sharedStylesHost,Ce,Ue);default:if(!this.rendererByCompId.has(Ue.id)){const st=H(Ue.id,Ue.styles,[]);this.sharedStylesHost.addStyles(st),this.rendererByCompId.set(Ue.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(R),_.\u0275\u0275inject(V),_.\u0275\u0275inject(_.APP_ID))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})();class ve{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,Ce){return Ce?document.createElementNS(T[Ce]||Ce,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,Ce){we.appendChild(Ce)}insertBefore(we,Ce,Ue){we&&we.insertBefore(Ce,Ue)}removeChild(we,Ce){we&&we.removeChild(Ce)}selectRootElement(we,Ce){let Ue="string"==typeof we?document.querySelector(we):we;if(!Ue)throw new Error(`The selector "${we}" did not match any elements`);return Ce||(Ue.textContent=""),Ue}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,Ce,Ue,st){if(st){Ce=st+":"+Ce;const Ft=T[st];Ft?we.setAttributeNS(Ft,Ce,Ue):we.setAttribute(Ce,Ue)}else we.setAttribute(Ce,Ue)}removeAttribute(we,Ce,Ue){if(Ue){const st=T[Ue];st?we.removeAttributeNS(st,Ce):we.removeAttribute(`${Ue}:${Ce}`)}else we.removeAttribute(Ce)}addClass(we,Ce){we.classList.add(Ce)}removeClass(we,Ce){we.classList.remove(Ce)}setStyle(we,Ce,Ue,st){st&(_.RendererStyleFlags2.DashCase|_.RendererStyleFlags2.Important)?we.style.setProperty(Ce,Ue,st&_.RendererStyleFlags2.Important?"important":""):we.style[Ce]=Ue}removeStyle(we,Ce,Ue){Ue&_.RendererStyleFlags2.DashCase?we.style.removeProperty(Ce):we.style[Ce]=""}setProperty(we,Ce,Ue){we[Ce]=Ue}setValue(we,Ce){we.nodeValue=Ce}listen(we,Ce,Ue){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,Ce,ee(Ue)):this.eventManager.addEventListener(we,Ce,ee(Ue))}}class He extends ve{constructor(we,Ce,Ue,st){super(we),this.component=Ue;const Ft=H(st+"-"+Ue.id,Ue.styles,[]);Ce.addStyles(Ft),this.contentAttr=function k(ae){return y.replace(Z,ae)}(st+"-"+Ue.id),this.hostAttr=function I(ae){return se.replace(Z,ae)}(st+"-"+Ue.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,Ce){const Ue=super.createElement(we,Ce);return super.setAttribute(Ue,this.contentAttr,""),Ue}}class ge extends ve{constructor(we,Ce,Ue,st){super(we),this.sharedStylesHost=Ce,this.hostEl=Ue,this.shadowRoot=Ue.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ft=H(st.id,st.styles,[]);for(let nn=0;nn<Ft.length;nn++){const vn=document.createElement("style");vn.textContent=Ft[nn],this.shadowRoot.appendChild(vn)}}nodeOrShadowRoot(we){return we===this.hostEl?this.shadowRoot:we}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(we,Ce){return super.appendChild(this.nodeOrShadowRoot(we),Ce)}insertBefore(we,Ce,Ue){return super.insertBefore(this.nodeOrShadowRoot(we),Ce,Ue)}removeChild(we,Ce){return super.removeChild(this.nodeOrShadowRoot(we),Ce)}parentNode(we){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(we)))}}let O=(()=>{class ae extends j{constructor(Ce){super(Ce)}supports(Ce){return!0}addEventListener(Ce,Ue,st){return Ce.addEventListener(Ue,st,!1),()=>this.removeEventListener(Ce,Ue,st)}removeEventListener(Ce,Ue,st){return Ce.removeEventListener(Ue,st)}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(t.DOCUMENT))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})();const b=["alt","control","meta","shift"],A={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},N={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},K={alt:ae=>ae.altKey,control:ae=>ae.ctrlKey,meta:ae=>ae.metaKey,shift:ae=>ae.shiftKey};let J=(()=>{class ae extends j{constructor(Ce){super(Ce)}supports(Ce){return null!=ae.parseEventName(Ce)}addEventListener(Ce,Ue,st){const Ft=ae.parseEventName(Ue),nn=ae.eventCallback(Ft.fullKey,st,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.\u0275getDOM)().onAndCancel(Ce,Ft.domEventName,nn))}static parseEventName(Ce){const Ue=Ce.toLowerCase().split("."),st=Ue.shift();if(0===Ue.length||"keydown"!==st&&"keyup"!==st)return null;const Ft=ae._normalizeKey(Ue.pop());let nn="";if(b.forEach(wn=>{const $n=Ue.indexOf(wn);$n>-1&&(Ue.splice($n,1),nn+=wn+".")}),nn+=Ft,0!=Ue.length||0===Ft.length)return null;const vn={};return vn.domEventName=st,vn.fullKey=nn,vn}static getEventFullKey(Ce){let Ue="",st=function ie(ae){let we=ae.key;if(null==we){if(we=ae.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===ae.location&&N.hasOwnProperty(we)&&(we=N[we]))}return A[we]||we}(Ce);return st=st.toLowerCase()," "===st?st="space":"."===st&&(st="dot"),b.forEach(Ft=>{Ft!=st&&K[Ft](Ce)&&(Ue+=Ft+".")}),Ue+=st,Ue}
1static eventCallback(Ce,Ue,st){return Ft=>{ae.getEventFullKey(Ft)===Ce&&st.runGuarded(()=>Ue(Ft))}}static _normalizeKey(Ce){return"esc"===Ce?"escape":Ce}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(t.DOCUMENT))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac}),ae})();const Qe=(0,_.createPlatformFactory)(_.platformCore,"browser",[{provide:_.PLATFORM_ID,useValue:t.\u0275PLATFORM_BROWSER_ID},{provide:_.PLATFORM_INITIALIZER,useValue:function he(){re.makeCurrent(),E.init()},multi:!0},{provide:t.DOCUMENT,useFactory:function Ne(){return(0,_.\u0275setDocument)(document),document},deps:[]}]),Ct=[{provide:_.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:_.ErrorHandler,useFactory:function Oe(){return new _.ErrorHandler},deps:[]},{provide:v,useClass:O,multi:!0,deps:[t.DOCUMENT,_.NgZone,_.PLATFORM_ID]},{provide:v,useClass:J,multi:!0,deps:[t.DOCUMENT]},{provide:oe,useClass:oe,deps:[R,V,_.APP_ID]},{provide:_.RendererFactory2,useExisting:oe},{provide:M,useExisting:V},{provide:V,useClass:V,deps:[t.DOCUMENT]},{provide:_.Testability,useClass:_.Testability,deps:[_.NgZone]},{provide:R,useClass:R,deps:[v,_.NgZone]},{provide:t.XhrFactory,useClass:m,deps:[]}];let Ot=(()=>{class ae{constructor(Ce){if(Ce)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(Ce){return{ngModule:ae,providers:[{provide:_.APP_ID,useValue:Ce.appId},{provide:P,useExisting:_.APP_ID},L]}}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(ae,12))},ae.\u0275mod=_.\u0275\u0275defineNgModule({type:ae}),ae.\u0275inj=_.\u0275\u0275defineInjector({providers:Ct,imports:[t.CommonModule,_.ApplicationModule]}),ae})(),it=(()=>{class ae{constructor(Ce){this._doc=Ce}getTitle(){return this._doc.title}setTitle(Ce){this._doc.title=Ce||""}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(t.DOCUMENT))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:function(Ce){let Ue=null;return Ue=Ce?new Ce:function Rt(){return new it((0,_.\u0275\u0275inject)(t.DOCUMENT))}(),Ue},providedIn:"root"}),ae})();"undefined"!=typeof window&&window;let nr=(()=>{class ae{}return ae.\u0275fac=function(Ce){return new(Ce||ae)},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:function(Ce){let Ue=null;return Ue=Ce?new(Ce||ae):_.\u0275\u0275inject(hn),Ue},providedIn:"root"}),ae})(),hn=(()=>{class ae extends nr{constructor(Ce){super(),this._doc=Ce}sanitize(Ce,Ue){if(null==Ue)return null;switch(Ce){case _.SecurityContext.NONE:return Ue;case _.SecurityContext.HTML:return(0,_.\u0275allowSanitizationBypassAndThrow)(Ue,"HTML")?(0,_.\u0275unwrapSafeValue)(Ue):(0,_.\u0275_sanitizeHtml)(this._doc,String(Ue)).toString();case _.SecurityContext.STYLE:return(0,_.\u0275allowSanitizationBypassAndThrow)(Ue,"Style")?(0,_.\u0275unwrapSafeValue)(Ue):Ue;case _.SecurityContext.SCRIPT:if((0,_.\u0275allowSanitizationBypassAndThrow)(Ue,"Script"))return(0,_.\u0275unwrapSafeValue)(Ue);throw new Error("unsafe value used in a script context");case _.SecurityContext.URL:return(0,_.\u0275getSanitizationBypassType)(Ue),(0,_.\u0275allowSanitizationBypassAndThrow)(Ue,"URL")?(0,_.\u0275unwrapSafeValue)(Ue):(0,_.\u0275_sanitizeUrl)(String(Ue));case _.SecurityContext.RESOURCE_URL:if((0,_.\u0275allowSanitizationBypassAndThrow)(Ue,"ResourceURL"))return(0,_.\u0275unwrapSafeValue)(Ue);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ce} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ce){return(0,_.\u0275bypassSanitizationTrustHtml)(Ce)}bypassSecurityTrustStyle(Ce){return(0,_.\u0275bypassSanitizationTrustStyle)(Ce)}bypassSecurityTrustScript(Ce){return(0,_.\u0275bypassSanitizationTrustScript)(Ce)}bypassSecurityTrustUrl(Ce){return(0,_.\u0275bypassSanitizationTrustUrl)(Ce)}bypassSecurityTrustResourceUrl(Ce){return(0,_.\u0275bypassSanitizationTrustResourceUrl)(Ce)}}return ae.\u0275fac=function(Ce){return new(Ce||ae)(_.\u0275\u0275inject(t.DOCUMENT))},ae.\u0275prov=_.\u0275\u0275defineInjectable({token:ae,factory:function(Ce){let Ue=null;return Ue=Ce?new Ce:function Tt(ae){return new hn(ae.get(t.DOCUMENT))}(_.\u0275\u0275inject(_.Injector)),Ue},providedIn:"root"}),ae})()},909:(xe,q,c)=>{"use strict";c.d(q,{gz:()=>Qt,y6:()=>cr,OD:()=>Qe,eC:()=>St,wm:()=>Eo,wN:()=>uo,F0:()=>Fi,rH:()=>Vs,Bz:()=>l,Hx:()=>$n});var t=c(6435);const x=(()=>{function Ie(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return Ie.prototype=Object.create(Error.prototype),Ie})();var re=c(5254),te=c(1086),Q=c(591),S=c(3426),W=c(1737),P=c(1221),C=c(8514),L=c(2916),E=c(8896),m=c(1762),v=c(8929),R=c(2866),M=c(1177);function V(Ie){return function(_e){const qe=new f(Ie),pt=_e.lift(qe);return qe.caught=pt}}class f{constructor(Te){this.selector=Te}call(Te,_e){return _e.subscribe(new T(Te,this.selector,this.caught))}}class T extends M.Ds{constructor(Te,_e,qe){super(Te),this.selector=_e,this.caught=qe}error(Te){if(!this.isStopped){let _e;try{_e=this.selector(Te,this.caught)}catch(Vt){return void super.error(Vt)}this._unsubscribeAndRecycle();const qe=new M.IY(this);this.add(qe);const pt=(0,M.ft)(_e,qe);pt!==qe&&this.add(pt)}}}var Z=c(2198),G=c(3489),$=c(4231);function se(Ie){return function(_e){return 0===Ie?(0,E.c)():_e.lift(new y(Ie))}}class y{constructor(Te){if(this.total=Te,this.total<0)throw new $.W}call(Te,_e){return _e.subscribe(new k(Te,this.total))}}class k extends G.L{constructor(Te,_e){super(Te),this.total=_e,this.ring=new Array,this.count=0}_next(Te){const _e=this.ring,qe=this.total,pt=this.count++;_e.length<qe?_e.push(Te):_e[pt%qe]=Te}_complete(){const Te=this.destination;let _e=this.count;if(_e>0){const qe=this.count>=this.total?this.total:this.count,pt=this.ring;for(let Vt=0;Vt<qe;Vt++){const Zt=_e++%qe;Te.next(pt[Zt])}}Te.complete()}}function I(Ie=z){return Te=>Te.lift(new H(Ie))}class H{constructor(Te){this.errorFactory=Te}
1call(Te,_e){return _e.subscribe(new ee(Te,this.errorFactory))}}class ee extends G.L{constructor(Te,_e){super(Te),this.errorFactory=_e,this.hasValue=!1}_next(Te){this.hasValue=!0,this.destination.next(Te)}_complete(){if(this.hasValue)return this.destination.complete();{let Te;try{Te=this.errorFactory()}catch(_e){Te=_e}this.destination.error(Te)}}}function z(){return new x}function oe(Ie=null){return Te=>Te.lift(new ve(Ie))}class ve{constructor(Te){this.defaultValue=Te}call(Te,_e){return _e.subscribe(new We(Te,this.defaultValue))}}class We extends G.L{constructor(Te,_e){super(Te),this.defaultValue=_e,this.isEmpty=!0}_next(Te){this.isEmpty=!1,this.destination.next(Te)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Re=c(5379),ge=c(2986);function O(Ie,Te){const _e=arguments.length>=2;return qe=>qe.pipe(Ie?(0,Z.h)((pt,Vt)=>Ie(pt,Vt,qe)):Re.y,(0,ge.q)(1),_e?oe(Te):I(()=>new x))}var b=c(4850),p=c(7545),A=c(2014),N=c(1406),K=c(1709),J=c(2868),ie=c(4327),he=c(537),Oe=c(9146),Ne=c(9808);class Ye{constructor(Te,_e){this.id=Te,this.url=_e}}class Qe extends Ye{constructor(Te,_e,qe="imperative",pt=null){super(Te,_e),this.navigationTrigger=qe,this.restoredState=pt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ct extends Ye{constructor(Te,_e,qe){super(Te,_e),this.urlAfterRedirects=qe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ot extends Ye{constructor(Te,_e,qe){super(Te,_e),this.reason=qe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ln extends Ye{constructor(Te,_e,qe){super(Te,_e),this.error=qe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Lt extends Ye{constructor(Te,_e,qe,pt){super(Te,_e),this.urlAfterRedirects=qe,this.state=pt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jt extends Ye{constructor(Te,_e,qe,pt){super(Te,_e),this.urlAfterRedirects=qe,this.state=pt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rt extends Ye{constructor(Te,_e,qe,pt,Vt){super(Te,_e),this.urlAfterRedirects=qe,this.state=pt,this.shouldActivate=Vt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class it extends Ye{constructor(Te,_e,qe,pt){super(Te,_e),this.urlAfterRedirects=qe,this.state=pt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _t extends Ye{constructor(Te,_e,qe,pt){super(Te,_e),this.urlAfterRedirects=qe,this.state=pt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ut{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yt{constructor(Te){this.route=Te}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ht{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(Te){this.snapshot=Te}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cn{constructor(Te){this.snapshot=Te}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gt{constructor(Te){this.snapshot=Te}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(Te,_e,qe){this.routerEvent=Te,this.position=_e,this.anchor=qe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const St="primary";class sn{constructor(Te){this.params=Te||{}}has(Te){return Object.prototype.hasOwnProperty.call(this.params,Te)}get(Te){if(this.has(Te)){const _e=this.params[Te];return Array.isArray(_e)?_e[0]:_e}return null}getAll(Te){if(this.has(Te)){const _e=this.params[Te];return Array.isArray(_e)?_e:[_e]}return[]}get keys(){return Object.keys(this.params)}}function ze(Ie){return new sn(Ie)}const nt="ngNavigationCancelingError";function mt(Ie){const Te=Error("NavigationCancelingError: "+Ie);return Te[nt]=!0,Te}function wt(Ie,Te,_e){const qe=_e.path.split("/");if(qe.length>Ie.length||"full"===_e.pathMatch&&(Te.hasChildren()||qe.length<Ie.length))return null;const pt={};for(let Vt=0;Vt<qe.length;Vt++){const Zt=qe[Vt],In=Ie[Vt];if(Zt.startsWith(":"))pt[Zt.substring(1)]=In;else if(Zt!==In.path)return null}return{consumed:Ie.slice(0,qe.length),posParams:pt}}function Kt(Ie,Te){const _e=Ie?Object.keys(Ie):void 0,qe=Te?Object.keys(Te):void 0;if(!_e||!qe||_e.length!=qe.length)return!1;let pt;for(let Vt=0;Vt<_e.length;Vt++)if(pt=_e[Vt],!Un(Ie[pt],Te[pt]))return!1;return!0}function Un(Ie,Te){if(Array.isArray(Ie)&&Array.isArray(Te)){if(Ie.length!==Te.length)return!1;const _e=[...Ie].sort(),qe=[...Te].sort();return _e.every((pt,Vt)=>qe[Vt]===pt)}return Ie===Te}function vt(Ie){return Array.prototype.concat.apply([],Ie)}function tn(Ie){return Ie.length>0?Ie[Ie.length-1]:null}function Sn(Ie,Te){for(const _e in Ie)Ie.hasOwnProperty(_e)&&Te(Ie[_e],_e)}function Nn(Ie){return(0,t.\u0275isObservable)(Ie)?Ie:(0,t.\u0275isProm
1ise)(Ie)?(0,re.D)(Promise.resolve(Ie)):(0,te.of)(Ie)}const Fn={exact:function hn(Ie,Te,_e){if(!vn(Ie.segments,Te.segments)||!Ce(Ie.segments,Te.segments,_e)||Ie.numberOfChildren!==Te.numberOfChildren)return!1;for(const qe in Te.children)if(!Ie.children[qe]||!hn(Ie.children[qe],Te.children[qe],_e))return!1;return!0},subset:ae},jn={exact:function Tt(Ie,Te){return Kt(Ie,Te)},subset:function Se(Ie,Te){return Object.keys(Te).length<=Object.keys(Ie).length&&Object.keys(Te).every(_e=>Un(Ie[_e],Te[_e]))},ignored:()=>!0};function nr(Ie,Te,_e){return Fn[_e.paths](Ie.root,Te.root,_e.matrixParams)&&jn[_e.queryParams](Ie.queryParams,Te.queryParams)&&!("exact"===_e.fragment&&Ie.fragment!==Te.fragment)}function ae(Ie,Te,_e){return we(Ie,Te,Te.segments,_e)}function we(Ie,Te,_e,qe){if(Ie.segments.length>_e.length){const pt=Ie.segments.slice(0,_e.length);return!(!vn(pt,_e)||Te.hasChildren()||!Ce(pt,_e,qe))}if(Ie.segments.length===_e.length){if(!vn(Ie.segments,_e)||!Ce(Ie.segments,_e,qe))return!1;for(const pt in Te.children)if(!Ie.children[pt]||!ae(Ie.children[pt],Te.children[pt],qe))return!1;return!0}{const pt=_e.slice(0,Ie.segments.length),Vt=_e.slice(Ie.segments.length);return!!(vn(Ie.segments,pt)&&Ce(Ie.segments,pt,qe)&&Ie.children[St])&&we(Ie.children[St],Te,Vt,qe)}}function Ce(Ie,Te,_e){return Te.every((qe,pt)=>jn[_e](Ie[pt].parameters,qe.parameters))}class Ue{constructor(Te,_e,qe){this.root=Te,this.queryParams=_e,this.fragment=qe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ze(this.queryParams)),this._queryParamMap}toString(){return ir.serialize(this)}}class st{constructor(Te,_e){this.segments=Te,this.children=_e,this.parent=null,Sn(_e,(qe,pt)=>qe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Wt(this)}}class Ft{constructor(Te,_e){this.path=Te,this.parameters=_e}get parameterMap(){return this._parameterMap||(this._parameterMap=ze(this.parameters)),this._parameterMap}toString(){return Yt(this)}}function vn(Ie,Te){return Ie.length===Te.length&&Ie.every((_e,qe)=>_e.path===Te[qe].path)}class $n{}class Gn{parse(Te){const _e=new jr(Te);return new Ue(_e.parseRootSegment(),_e.parseQueryParams(),_e.parseFragment())}serialize(Te){const _e=`/${jt(Te.root,!0)}`,qe=function An(Ie){const Te=Object.keys(Ie).map(_e=>{const qe=Ie[_e];return Array.isArray(qe)?qe.map(pt=>`${mn(_e)}=${mn(pt)}`).join("&"):`${mn(_e)}=${mn(qe)}`}).filter(_e=>!!_e);return Te.length?`?${Te.join("&")}`:""}(Te.queryParams);return`${_e}${qe}${"string"==typeof Te.fragment?`#${function Mt(Ie){return encodeURI(Ie)}(Te.fragment)}`:""}`}}const ir=new Gn;function Wt(Ie){return Ie.segments.map(Te=>Yt(Te)).join("/")}function jt(Ie,Te){if(!Ie.hasChildren())return Wt(Ie);if(Te){const _e=Ie.children[St]?jt(Ie.children[St],!1):"",qe=[];return Sn(Ie.children,(pt,Vt)=>{Vt!==St&&qe.push(`${Vt}:${jt(pt,!1)}`)}),qe.length>0?`${_e}(${qe.join("//")})`:_e}{const _e=function wn(Ie,Te){let _e=[];return Sn(Ie.children,(qe,pt)=>{pt===St&&(_e=_e.concat(Te(qe,pt)))}),Sn(Ie.children,(qe,pt)=>{pt!==St&&(_e=_e.concat(Te(qe,pt)))}),_e}(Ie,(qe,pt)=>pt===St?[jt(Ie.children[St],!1)]:[`${pt}:${jt(qe,!1)}`]);return 1===Object.keys(Ie.children).length&&null!=Ie.children[St]?`${Wt(Ie)}/${_e[0]}`:`${Wt(Ie)}/(${_e.join("//")})`}}function on(Ie){return encodeURIComponent(Ie).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mn(Ie){return on(Ie).replace(/%3B/gi,";")}function ke(Ie){return on(Ie).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(Ie){return decodeURIComponent(Ie)}function Ht(Ie){return At(Ie.replace(/\+/g,"%20"))}function Yt(Ie){return`${ke(Ie.path)}${function un(Ie){return Object.keys(Ie).map(Te=>`;${ke(Te)}=${ke(Ie[Te])}`).join("")}(Ie.parameters)}`}const sr=/^[^\/()?;=#]+/;function fr(Ie){const Te=Ie.match(sr);return Te?Te[0]:""}const Ar=/^[^=?&#]+/,dr=/^[^&#]+/;class jr{constructor(Te){this.url=Te,this.remaining=Te}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new st([],{}):new st([],this.parseChildren())}parseQueryParams(){const Te={};if(this.consumeOptional("?"))do{this.parseQueryParam(Te)}while(this.consumeOptional("&"));return Te}
vendor: 5,947 bytes, line 1
1parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Te=[];for(this.peekStartsWith("(")||Te.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Te.push(this.parseSegment());let _e={};this.peekStartsWith("/(")&&(this.capture("/"),_e=this.parseParens(!0));let qe={};return this.peekStartsWith("(")&&(qe=this.parseParens(!1)),(Te.length>0||Object.keys(_e).length>0)&&(qe[St]=new st(Te,_e)),qe}parseSegment(){const Te=fr(this.remaining);if(""===Te&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Te),new Ft(At(Te),this.parseMatrixParams())}parseMatrixParams(){const Te={};for(;this.consumeOptional(";");)this.parseParam(Te);return Te}parseParam(Te){const _e=fr(this.remaining);if(!_e)return;this.capture(_e);let qe="";if(this.consumeOptional("=")){const pt=fr(this.remaining);pt&&(qe=pt,this.capture(qe))}Te[At(_e)]=At(qe)}parseQueryParam(Te){const _e=function Dr(Ie){const Te=Ie.match(Ar);return Te?Te[0]:""}(this.remaining);if(!_e)return;this.capture(_e);let qe="";if(this.consumeOptional("=")){const Zt=function Kr(Ie){const Te=Ie.match(dr);return Te?Te[0]:""}(this.remaining);Zt&&(qe=Zt,this.capture(qe))}const pt=Ht(_e),Vt=Ht(qe);if(Te.hasOwnProperty(pt)){let Zt=Te[pt];Array.isArray(Zt)||(Zt=[Zt],Te[pt]=Zt),Zt.push(Vt)}else Te[pt]=Vt}parseParens(Te){const _e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const qe=fr(this.remaining),pt=this.remaining[qe.length];if("/"!==pt&&")"!==pt&&";"!==pt)throw new Error(`Cannot parse url '${this.url}'`);let Vt;qe.indexOf(":")>-1?(Vt=qe.substr(0,qe.indexOf(":")),this.capture(Vt),this.capture(":")):Te&&(Vt=St);const Zt=this.parseChildren();_e[Vt]=1===Object.keys(Zt).length?Zt[St]:new st([],Zt),this.consumeOptional("//")}return _e}peekStartsWith(Te){return this.remaining.startsWith(Te)}consumeOptional(Te){return!!this.peekStartsWith(Te)&&(this.remaining=this.remaining.substring(Te.length),!0)}capture(Te){if(!this.consumeOptional(Te))throw new Error(`Expected "${Te}".`)}}class Ur{constructor(Te){this._root=Te}get root(){return this._root.value}parent(Te){const _e=this.pathFromRoot(Te);return _e.length>1?_e[_e.length-2]:null}children(Te){const _e=Lr(Te,this._root);return _e?_e.children.map(qe=>qe.value):[]}firstChild(Te){const _e=Lr(Te,this._root);return _e&&_e.children.length>0?_e.children[0].value:null}siblings(Te){const _e=_i(Te,this._root);return _e.length<2?[]:_e[_e.length-2].children.map(pt=>pt.value).filter(pt=>pt!==Te)}pathFromRoot(Te){return _i(Te,this._root).map(_e=>_e.value)}}function Lr(Ie,Te){if(Ie===Te.value)return Te;for(const _e of Te.children){const qe=Lr(Ie,_e);if(qe)return qe}return null}function _i(Ie,Te){if(Ie===Te.value)return[Te];for(const _e of Te.children){const qe=_i(Ie,_e);if(qe.length)return qe.unshift(Te),qe}return[]}class kt{constructor(Te,_e){this.value=Te,this.children=_e}toString(){return`TreeNode(${this.value})`}}function an(Ie){const Te={};return Ie&&Ie.children.forEach(_e=>Te[_e.value.outlet]=_e),Te}class Dn extends Ur{constructor(Te,_e){super(Te),this.snapshot=_e,wr(this,Te)}toString(){return this.snapshot.toString()}}function Bn(Ie,Te){const _e=function Yn(Ie,Te){const Zt=new er([],{},{},"",{},St,Te,null,Ie.root,-1,{});return new or("",new kt(Zt,[]))}(Ie,Te),qe=new Q.X([new Ft("",{})]),pt=new Q.X({}),Vt=new Q.X({}),Zt=new Q.X({}),In=new Q.X(""),ar=new Qt(qe,pt,Zt,In,Vt,St,Te,_e.root);return ar.snapshot=_e.root,new Dn(new kt(ar,[]),_e)}class Qt{constructor(Te,_e,qe,pt,Vt,Zt,In,ar){this.url=Te,this.params=_e,this.queryParams=qe,this.fragment=pt,this.data=Vt,this.outlet=Zt,this.component=In,this._futureSnapshot=ar}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,b.U)(Te=>ze(Te)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,b.U)(Te=>ze(Te)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function En(Ie,Te="emptyOnly"){const _e=Ie.pathFromRoot;let qe=0;if("always"!==Te)for(qe=_e.length-1;qe>=1;){const pt=_e[qe],Vt=_e[qe-1];if(pt.routeConfig&&""===pt.routeConfig.path)qe--;else{if(Vt.component)break;qe--}}return function Hn(Ie){return Ie.reduce((Te,_e)=>({params:Object.assign(Object.assign({},Te.params),_e.params),data:Object.assign(Object.assign({},Te.data),_e.data),resolve:Object.assign(Object.assign({},Te.resolve),_e._resolvedData)}),{params:{},data:{},resolve:{}})}(_e.slice(qe))}class er{constructor(Te,_e,qe,pt,Vt,Zt,In,ar,Gr,Ri,ri){this.url=Te,this.params=_e,this.queryParams=qe,this.fragment=pt,this.data=Vt,this.outlet=Zt,this.component=In,this.routeConfig=ar,this._urlSegment=Gr,this._lastPathIndex=Ri,this._resolve=ri}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ze(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ze(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(qe=>qe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class or extends Ur{constructor(Te,_e){super(_e),this.url=Te,wr(this,_e)}toString(){return Nr(this._root)}}
1function wr(Ie,Te){Te.value._routerState=Ie,Te.children.forEach(_e=>wr(Ie,_e))}function Nr(Ie){const Te=Ie.children.length>0?` { ${Ie.children.map(Nr).join(", ")} } `:"";return`${Ie.value}${Te}`}function kr(Ie){if(Ie.snapshot){const Te=Ie.snapshot,_e=Ie._futureSnapshot;Ie.snapshot=_e,Kt(Te.queryParams,_e.queryParams)||Ie.queryParams.next(_e.queryParams),Te.fragment!==_e.fragment&&Ie.fragment.next(_e.fragment),Kt(Te.params,_e.params)||Ie.params.next(_e.params),function bt(Ie,Te){if(Ie.length!==Te.length)return!1;for(let _e=0;_e<Ie.length;++_e)if(!Kt(Ie[_e],Te[_e]))return!1;return!0}(Te.url,_e.url)||Ie.url.next(_e.url),Kt(Te.data,_e.data)||Ie.data.next(_e.data)}else Ie.snapshot=Ie._futureSnapshot,Ie.data.next(Ie._futureSnapshot.data)}function ei(Ie,Te){const _e=Kt(Ie.params,Te.params)&&function nn(Ie,Te){return vn(Ie,Te)&&Ie.every((_e,qe)=>Kt(_e.parameters,Te[qe].parameters))}(Ie.url,Te.url);return _e&&!(!Ie.parent!=!Te.parent)&&(!Ie.parent||ei(Ie.parent,Te.parent))}function ui(Ie,Te,_e){if(_e&&Ie.shouldReuseRoute(Te.value,_e.value.snapshot)){const qe=_e.value;qe._futureSnapshot=Te.value;const pt=function Yr(Ie,Te,_e){return Te.children.map(qe=>{for(const pt of _e.children)if(Ie.shouldReuseRoute(qe.value,pt.value.snapshot))return ui(Ie,qe,pt);return ui(Ie,qe)})}(Ie,Te,_e);return new kt(qe,pt)}{if(Ie.shouldAttach(Te.value)){const Vt=Ie.retrieve(Te.value);if(null!==Vt){const Zt=Vt.route;return Zt.value._futureSnapshot=Te.value,Zt.children=Te.children.map(In=>ui(Ie,In)),Zt}}const qe=function Ci(Ie){return new Qt(new Q.X(Ie.url),new Q.X(Ie.params),new Q.X(Ie.queryParams),new Q.X(Ie.fragment),new Q.X(Ie.data),Ie.outlet,Ie.component,Ie)}(Te.value),pt=Te.children.map(Vt=>ui(Ie,Vt));return new kt(qe,pt)}}function ci(Ie){return"object"==typeof Ie&&null!=Ie&&!Ie.outlets&&!Ie.segmentPath}function Gi(Ie){return"object"==typeof Ie&&null!=Ie&&Ie.outlets}function rs(Ie,Te,_e,qe,pt){let Vt={};if(qe&&Sn(qe,(In,ar)=>{Vt[ar]=Array.isArray(In)?In.map(Gr=>`${Gr}`):`${In}`}),Ie===Te)return new Ue(_e,Vt,pt);const Zt=Oi(Ie,Te,_e);return new Ue(Zt,Vt,pt)}function Oi(Ie,Te,_e){const qe={};return Sn(Ie.children,(pt,Vt)=>{qe[Vt]=pt===Te?_e:Oi(pt,Te,_e)}),new st(Ie.segments,qe)}class $r{constructor(Te,_e,qe){if(this.isAbsolute=Te,this.numberOfDoubleDots=_e,this.commands=qe,Te&&qe.length>0&&ci(qe[0]))throw new Error("Root segment cannot have matrix parameters");const pt=qe.find(Gi);if(pt&&pt!==tn(qe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cs{constructor(Te,_e,qe){this.segmentGroup=Te,this.processChildren=_e,this.index=qe}}function Hi(Ie,Te,_e){if(Ie||(Ie=new st([],{})),0===Ie.segments.length&&Ie.hasChildren())return ai(Ie,Te,_e);const qe=function Zi(Ie,Te,_e){let qe=0,pt=Te;const Vt={match:!1,pathIndex:0,commandIndex:0};for(;pt<Ie.segments.length;){if(qe>=_e.length)return Vt;const Zt=Ie.segments[pt],In=_e[qe];if(Gi(In))break;const ar=`${In}`,Gr=qe<_e.length-1?_e[qe+1]:null;if(pt>0&&void 0===ar)break;if(ar&&Gr&&"object"==typeof Gr&&void 0===Gr.outlets){if(!hs(ar,Gr,Zt))return Vt;qe+=2}else{if(!hs(ar,{},Zt))return Vt;qe++}pt++}return{match:!0,pathIndex:pt,commandIndex:qe}}(Ie,Te,_e),pt=_e.slice(qe.commandIndex);if(qe.match&&qe.pathIndex<Ie.segments.length){const Vt=new st(Ie.segments.slice(0,qe.pathIndex),{});return Vt.children[St]=new st(Ie.segments.slice(qe.pathIndex),Ie.children),ai(Vt,0,pt)}return qe.match&&0===pt.length?new st(Ie.segments,{}):qe.match&&!Ie.hasChildren()?zi(Ie,Te,_e):qe.match?ai(Ie,0,pt):zi(Ie,Te,_e)}function ai(Ie,Te,_e){if(0===_e.length)return new st(Ie.segments,{});{const qe=function $i(Ie){return Gi(Ie[0])?Ie[0].outlets:{[St]:Ie}}(_e),pt={};return Sn(qe,(Vt,Zt)=>{"string"==typeof Vt&&(Vt=[Vt]),null!==Vt&&(pt[Zt]=Hi(Ie.children[Zt],Te,Vt))}),Sn(Ie.children,(Vt,Zt)=>{void 0===qe[Zt]&&(pt[Zt]=Vt)}),new st(Ie.segments,pt)}}function zi(Ie,Te,_e){const qe=Ie.segments.slice(0,Te);let pt=0;for(;pt<_e.length;){const Vt=_e[pt];if(Gi(Vt)){const ar=xi(Vt.outlets);return new st(qe,ar)}if(0===pt&&ci(_e[0])){qe.push(new Ft(Ie.segments[Te].path,ss(_e[0]))),pt++;continue}const Zt=Gi(Vt)?Vt.outlets[St]:`${Vt}`,In=pt<_e.length-1?_e[pt+1]:null;Zt&&In&&ci(In)?(qe.push(new Ft(Zt,ss(In))),pt+=2):(qe.push(new Ft(Zt,{})),pt++)}return new st(qe,{})}function xi(Ie){const Te={};return Sn(Ie,(_e,qe)=>{"string"==typeof _e&&(_e=[_e]),null!==_e&&(Te[qe]=zi(new st([],{}),0,_e))}),Te}function ss(Ie){const Te={};return Sn(Ie,(_e,qe)=>Te[qe]=`${_e}`),Te}function hs(Ie,Te,_e){return Ie==_e.path&&Kt(Te,_e.parameters)}class bs{constructor(Te,_e,qe,pt){this.routeReuseStrategy=Te,this.futureState=_e,this.currState=qe,this.forwardEvent=pt}activate(Te){const _e=this.futureState._root,qe=this.currState?this.currState._root:null;this.deactivateChildRoutes(_e,qe,Te),kr(this.futureState.root),this.activateChildRoutes(_e,qe,Te)}deactivateChildRoutes(Te,_e,qe){const pt=an(_e);
1Te.children.forEach(Vt=>{const Zt=Vt.value.outlet;this.deactivateRoutes(Vt,pt[Zt],qe),delete pt[Zt]}),Sn(pt,(Vt,Zt)=>{this.deactivateRouteAndItsChildren(Vt,qe)})}deactivateRoutes(Te,_e,qe){const pt=Te.value,Vt=_e?_e.value:null;if(pt===Vt)if(pt.component){const Zt=qe.getContext(pt.outlet);Zt&&this.deactivateChildRoutes(Te,_e,Zt.children)}else this.deactivateChildRoutes(Te,_e,qe);else Vt&&this.deactivateRouteAndItsChildren(_e,qe)}deactivateRouteAndItsChildren(Te,_e){Te.value.component&&this.routeReuseStrategy.shouldDetach(Te.value.snapshot)?this.detachAndStoreRouteSubtree(Te,_e):this.deactivateRouteAndOutlet(Te,_e)}detachAndStoreRouteSubtree(Te,_e){const qe=_e.getContext(Te.value.outlet),pt=qe&&Te.value.component?qe.children:_e,Vt=an(Te);for(const Zt of Object.keys(Vt))this.deactivateRouteAndItsChildren(Vt[Zt],pt);if(qe&&qe.outlet){const Zt=qe.outlet.detach(),In=qe.children.onOutletDeactivated();this.routeReuseStrategy.store(Te.value.snapshot,{componentRef:Zt,route:Te,contexts:In})}}deactivateRouteAndOutlet(Te,_e){const qe=_e.getContext(Te.value.outlet),pt=qe&&Te.value.component?qe.children:_e,Vt=an(Te);for(const Zt of Object.keys(Vt))this.deactivateRouteAndItsChildren(Vt[Zt],pt);qe&&qe.outlet&&(qe.outlet.deactivate(),qe.children.onOutletDeactivated(),qe.attachRef=null,qe.resolver=null,qe.route=null)}activateChildRoutes(Te,_e,qe){const pt=an(_e);Te.children.forEach(Vt=>{this.activateRoutes(Vt,pt[Vt.value.outlet],qe),this.forwardEvent(new gt(Vt.value.snapshot))}),Te.children.length&&this.forwardEvent(new ct(Te.value.snapshot))}activateRoutes(Te,_e,qe){const pt=Te.value,Vt=_e?_e.value:null;if(kr(pt),pt===Vt)if(pt.component){const Zt=qe.getOrCreateContext(pt.outlet);this.activateChildRoutes(Te,_e,Zt.children)}else this.activateChildRoutes(Te,_e,qe);else if(pt.component){const Zt=qe.getOrCreateContext(pt.outlet);if(this.routeReuseStrategy.shouldAttach(pt.snapshot)){const In=this.routeReuseStrategy.retrieve(pt.snapshot);this.routeReuseStrategy.store(pt.snapshot,null),Zt.children.onOutletReAttached(In.contexts),Zt.attachRef=In.componentRef,Zt.route=In.route.value,Zt.outlet&&Zt.outlet.attach(In.componentRef,In.route.value),kr(In.route.value),this.activateChildRoutes(Te,null,Zt.children)}else{const In=function hi(Ie){for(let Te=Ie.parent;Te;Te=Te.parent){const _e=Te.routeConfig;if(_e&&_e._loadedConfig)return _e._loadedConfig;if(_e&&_e.component)return null}return null}(pt.snapshot),ar=In?In.module.componentFactoryResolver:null;Zt.attachRef=null,Zt.route=pt,Zt.resolver=ar,Zt.outlet&&Zt.outlet.activateWith(pt,ar),this.activateChildRoutes(Te,null,Zt.children)}}else this.activateChildRoutes(Te,null,qe)}}class Mi{constructor(Te,_e){this.routes=Te,this.module=_e}}function Ti(Ie){return"function"==typeof Ie}function Ii(Ie){return Ie instanceof Ue}const _n=Symbol("INITIAL_VALUE");function Mn(){return(0,p.w)(Ie=>(0,S.aj)(Ie.map(Te=>Te.pipe((0,ge.q)(1),function j(...Ie){const Te=Ie[Ie.length-1];return(0,R.K)(Te)?(Ie.pop(),_e=>(0,P.z)(Ie,_e,Te)):_e=>(0,P.z)(Ie,_e)}(_n)))).pipe((0,A.R)((Te,_e)=>{let qe=!1;return _e.reduce((pt,Vt,Zt)=>pt!==_n?pt:(Vt===_n&&(qe=!0),qe||!1!==Vt&&Zt!==_e.length-1&&!Ii(Vt)?pt:Vt),Te)},_n),(0,Z.h)(Te=>Te!==_n),(0,b.U)(Te=>Ii(Te)?Te:!0===Te),(0,ge.q)(1)))}class qn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new cr,this.attachRef=null}}class cr{constructor(){this.contexts=new Map}onChildOutletCreated(Te,_e){const qe=this.getOrCreateContext(Te);qe.outlet=_e,this.contexts.set(Te,qe)}onChildOutletDestroyed(Te){const _e=this.getContext(Te);_e&&(_e.outlet=null,_e.attachRef=null)}onOutletDeactivated(){const Te=this.contexts;return this.contexts=new Map,Te}onOutletReAttached(Te){this.contexts=Te}getOrCreateContext(Te){let _e=this.getContext(Te);return _e||(_e=new qn,this.contexts.set(Te,_e)),_e}getContext(Te){return this.contexts.get(Te)||null}}let ur=(()=>{class Ie{constructor(_e,qe,pt,Vt,Zt){this.parentContexts=_e,this.location=qe,this.resolver=pt,this.changeDetector=Zt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.EventEmitter,this.deactivateEvents=new t.EventEmitter,this.attachEvents=new t.EventEmitter,this.detachEvents=new t.EventEmitter,this.name=Vt||St,_e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const _e=this.parentContexts.getContext(this.name);_e&&_e.route&&(_e.attachRef?this.attach(_e.attachRef,_e.route):this.activateWith(_e.route,_e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const _e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_e.instance),_e}attach(_e,qe){this.activated=_e,this._activatedRoute=qe,this.location.insert(_e.hostView),this.attachEvents.emit(_e.instance)}deactivate(){if(this.activated){const _e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_e)}}activateWith(_e,qe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=_e;const Zt=(qe=qe||this.resolver).resolveComponentFactory(_e._futureSnapshot.routeConfig.component),In=this.parentContexts.getOrCreateContext(this.name).children,ar=new _r(_e,In,this.location.injector);this.activated=this.location.createComponent(Zt,this.location.length,ar),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ie.\u0275fac=function(_e){return new(_e||Ie)(t.\u0275\u0275directiveInject(cr),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275injectAttribute("name"),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},Ie.\u0275dir=t.\u0275\u0275defineDirective({type:Ie,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ie})();class _r{constructor(Te,_e,qe){this.route=Te,this.childContexts=_e,this.parent=qe}get(Te,_e){return Te===Qt?this.route:Te===cr?this.childContexts:this.parent.get(Te,_e)}}let Mr=(()=>{class Ie{}return Ie.\u0275fac=function(_e){return new(_e||Ie)},Ie.\u0275cmp=t.\u0275\u0275defineComponent({type:Ie,selectors:[["ng-component"]],decls:1,vars:0,template:function(_e,qe){1&_e&&t.\u0275\u0275element(0,"router-outlet")},directives:[ur],encapsulation:2}),Ie})();function Wr(Ie,Te=""){for(let _e=0;_e<Ie.length;_e++){const qe=Ie[_e];le(qe,Ae(Te,qe))}}function le(Ie,Te){Ie.children&&Wr(Ie.children,Te)}function Ae(Ie,Te){return Te?Ie||Te.path?Ie&&!Te.path?`${Ie}/`:!Ie&&Te.path?Te.path:`${Ie}/${Te.path}`:"":Ie}function be(Ie){const Te=Ie.children&&Ie.children.map(be),_e=Te?Object.assign(Object.assign({},Ie),{children:Te}):Object.assign({},Ie);return!_e.component&&(Te||_e.loadChildren)&&_e.outlet&&_e.outlet!==St&&(_e.component=Mr),_e}function Me(Ie){return Ie.outlet||St}function dt(Ie,Te){const _e=Ie.filter(qe=>Me(qe)===Te);return _e.push(...Ie.filter(qe=>Me(qe)!==Te)),_e}const rn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fn(Ie,Te,_e){var qe;if(""===Te.path)return"full"===Te.pathMatch&&(Ie.hasChildren()||_e.length>0)?Object.assign({},rn):{matched:!0,consumedSegments:[],remainingSegments:_e,parameters:{},positionalParamSegments:{}};const Vt=(Te.matcher||wt)(_e,Ie,Te);if(!Vt)return Object.assign({},rn);const Zt={};Sn(Vt.posParams,(ar,Gr)=>{Zt[Gr]=ar.path});const In=Vt.consumed.length>0?Object.assign(Object.assign({},Zt),Vt.consumed[Vt.consumed.length-1].parameters):Zt;return{matched:!0,consumedSegments:Vt.consumed,remainingSegments:_e.
1slice(Vt.consumed.length),parameters:In,positionalParamSegments:null!==(qe=Vt.posParams)&&void 0!==qe?qe:{}}}function xn(Ie,Te,_e,qe,pt="corrected"){if(_e.length>0&&function hr(Ie,Te,_e){return _e.some(qe=>zr(Ie,Te,qe)&&Me(qe)!==St)}(Ie,_e,qe)){const Zt=new st(Te,function gr(Ie,Te,_e,qe){const pt={};pt[St]=qe,qe._sourceSegment=Ie,qe._segmentIndexShift=Te.length;for(const Vt of _e)if(""===Vt.path&&Me(Vt)!==St){const Zt=new st([],{});Zt._sourceSegment=Ie,Zt._segmentIndexShift=Te.length,pt[Me(Vt)]=Zt}return pt}(Ie,Te,qe,new st(_e,Ie.children)));return Zt._sourceSegment=Ie,Zt._segmentIndexShift=Te.length,{segmentGroup:Zt,slicedSegments:[]}}if(0===_e.length&&function pr(Ie,Te,_e){return _e.some(qe=>zr(Ie,Te,qe))}(Ie,_e,qe)){const Zt=new st(Ie.segments,function Er(Ie,Te,_e,qe,pt,Vt){const Zt={};for(const In of qe)if(zr(Ie,_e,In)&&!pt[Me(In)]){const ar=new st([],{});ar._sourceSegment=Ie,ar._segmentIndexShift="legacy"===Vt?Ie.segments.length:Te.length,Zt[Me(In)]=ar}return Object.assign(Object.assign({},pt),Zt)}(Ie,Te,_e,qe,Ie.children,pt));return Zt._sourceSegment=Ie,Zt._segmentIndexShift=Te.length,{segmentGroup:Zt,slicedSegments:_e}}const Vt=new st(Ie.segments,Ie.children);return Vt._sourceSegment=Ie,Vt._segmentIndexShift=Te.length,{segmentGroup:Vt,slicedSegments:_e}}function zr(Ie,Te,_e){return(!(Ie.hasChildren()||Te.length>0)||"full"!==_e.pathMatch)&&""===_e.path}function ii(Ie,Te,_e,qe){return!!(Me(Ie)===qe||qe!==St&&zr(Te,_e,Ie))&&("**"===Ie.path||fn(Te,Ie,_e).matched)}function Or(Ie,Te,_e){return 0===Te.length&&!Ie.children[_e]}class Je{constructor(Te){this.segmentGroup=Te||null}}class Ve{constructor(Te){this.urlTree=Te}}function Be(Ie){return(0,W._)(new Je(Ie))}function It(Ie){return(0,W._)(new Ve(Ie))}class et{constructor(Te,_e,qe,pt,Vt){this.configLoader=_e,this.urlSerializer=qe,this.urlTree=pt,this.config=Vt,this.allowRedirects=!0,this.ngModule=Te.get(t.NgModuleRef)}apply(){const Te=xn(this.urlTree.root,[],[],this.config).segmentGroup,_e=new st(Te.segments,Te.children);return this.expandSegmentGroup(this.ngModule,this.config,_e,St).pipe((0,b.U)(Vt=>this.createUrlTree(Ze(Vt),this.urlTree.queryParams,this.urlTree.fragment))).pipe(V(Vt=>{if(Vt instanceof Ve)return this.allowRedirects=!1,this.match(Vt.urlTree);throw Vt instanceof Je?this.noMatchError(Vt):Vt}))}match(Te){return this.expandSegmentGroup(this.ngModule,this.config,Te.root,St).pipe((0,b.U)(pt=>this.createUrlTree(Ze(pt),Te.queryParams,Te.fragment))).pipe(V(pt=>{throw pt instanceof Je?this.noMatchError(pt):pt}))}noMatchError(Te){return new Error(`Cannot match any routes. URL Segment: '${Te.segmentGroup}'`)}createUrlTree(Te,_e,qe){const pt=Te.segments.length>0?new st([],{[St]:Te}):Te;return new Ue(pt,_e,qe)}expandSegmentGroup(Te,_e,qe,pt){return 0===qe.segments.length&&qe.hasChildren()?this.expandChildren(Te,_e,qe).pipe((0,b.U)(Vt=>new st([],Vt))):this.expandSegment(Te,qe,_e,qe.segments,pt,!0)}expandChildren(Te,_e,qe){const pt=[];for(const Vt of Object.keys(qe.children))"primary"===Vt?pt.unshift(Vt):pt.push(Vt);return(0,re.D)(pt).pipe((0,N.b)(Vt=>{const Zt=qe.children[Vt],In=dt(_e,Vt);return this.expandSegmentGroup(Te,In,Zt,Vt).pipe((0,b.U)(ar=>({segment:ar,outlet:Vt})))}),(0,A.R)((Vt,Zt)=>(Vt[Zt.outlet]=Zt.segment,Vt),{}),function He(Ie,Te){const _e=arguments.length>=2;return qe=>qe.pipe(Ie?(0,Z.h)((pt,Vt)=>Ie(pt,Vt,qe)):Re.y,se(1),_e?oe(Te):I(()=>new x))}())}expandSegment(Te,_e,qe,pt,Vt,Zt){return(0,re.D)(qe).pipe((0,N.b)(In=>this.expandSegmentAgainstRoute(Te,_e,qe,In,pt,Vt,Zt).pipe(V(Gr=>{if(Gr instanceof Je)return(0,te.of)(null);throw Gr}))),O(In=>!!In),V((In,ar)=>{if(In instanceof x||"EmptyError"===In.name)return Or(_e,pt,Vt)?(0,te.of)(new st([],{})):Be(_e);throw In}))}expandSegmentAgainstRoute(Te,_e,qe,pt,Vt,Zt,In){return ii(pt,_e,Vt,Zt)?void 0===pt.redirectTo?this.matchSegmentAgainstRoute(Te,_e,pt,Vt,Zt):In&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Te,_e,qe,pt,Vt,Zt):Be(_e):Be(_e)}expandSegmentAgainstRouteUsingRedirect(Te,_e,qe,pt,Vt,Zt){return"**"===pt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Te,qe,pt,Zt):this.expandRegularSegmentAgainstRouteUsingRedirect(Te,_e,qe,pt,Vt,Zt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Te,_e,qe,pt){const Vt=this.applyRedirectCommands([],qe.redirectTo,{});return qe.redirectTo.startsWith("/")?It(Vt):this.lineralizeSegments(qe,Vt).pipe((0,K.zg)(Zt=>{const In=new st(Zt,{});return this.expandSegment(Te,In,_e,Zt,pt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Te,_e,qe,pt,Vt,Zt){const{matched:In,consumedSegments:ar,remainingSegments:Gr,positionalParamSegments:Ri}=fn(_e,pt,Vt);if(!In)return Be(_e);const ri=this.applyRedirectCommands(ar,pt.redirectTo,Ri);return pt.redirectTo.startsWith("/")?It(ri):this.lineralizeSegments(pt,ri).pipe((0,K.zg)(xr=>this.expandSegment(Te,_e,qe,xr.concat(Gr),Zt,!1)))}matchSegmentAgainstRoute(Te,_e,qe,pt,Vt){if("**"===qe.path)return qe.loadChildren?(qe._loadedConfig?(0,te.of)(qe._loadedConfig):this.configLoader.load(Te.injector,qe)).pipe((0,b.U)(ri=>(qe._loadedConfig=ri,new st(pt,{}
1)))):(0,te.of)(new st(pt,{}));const{matched:Zt,consumedSegments:In,remainingSegments:ar}=fn(_e,qe,pt);return Zt?this.getChildConfig(Te,qe,pt).pipe((0,K.zg)(Ri=>{const ri=Ri.module,xr=Ri.routes,{segmentGroup:Fr,slicedSegments:ti}=xn(_e,In,ar,xr),fi=new st(Fr.segments,Fr.children);if(0===ti.length&&fi.hasChildren())return this.expandChildren(ri,xr,fi).pipe((0,b.U)(wo=>new st(In,wo)));if(0===xr.length&&0===ti.length)return(0,te.of)(new st(In,{}));const ts=Me(qe)===Vt;return this.expandSegment(ri,fi,xr,ti,ts?St:Vt,!0).pipe((0,b.U)(_s=>new st(In.concat(_s.segments),_s.children)))})):Be(_e)}getChildConfig(Te,_e,qe){return _e.children?(0,te.of)(new Mi(_e.children,Te)):_e.loadChildren?void 0!==_e._loadedConfig?(0,te.of)(_e._loadedConfig):this.runCanLoadGuards(Te.injector,_e,qe).pipe((0,K.zg)(pt=>pt?this.configLoader.load(Te.injector,_e).pipe((0,b.U)(Vt=>(_e._loadedConfig=Vt,Vt))):function Sr(Ie){return(0,W._)(mt(`Cannot load children because the guard of the route "path: '${Ie.path}'" returned false`))}(_e))):(0,te.of)(new Mi([],Te))}runCanLoadGuards(Te,_e,qe){const pt=_e.canLoad;if(!pt||0===pt.length)return(0,te.of)(!0);const Vt=pt.map(Zt=>{const In=Te.get(Zt);let ar;if(function tt(Ie){return Ie&&Ti(Ie.canLoad)}(In))ar=In.canLoad(_e,qe);else{if(!Ti(In))throw new Error("Invalid CanLoad guard");ar=In(_e,qe)}return Nn(ar)});return(0,te.of)(Vt).pipe(Mn(),(0,J.b)(Zt=>{if(!Ii(Zt))return;const In=mt(`Redirecting to "${this.urlSerializer.serialize(Zt)}"`);throw In.url=Zt,In}),(0,b.U)(Zt=>!0===Zt))}lineralizeSegments(Te,_e){let qe=[],pt=_e.root;for(;;){if(qe=qe.concat(pt.segments),0===pt.numberOfChildren)return(0,te.of)(qe);if(pt.numberOfChildren>1||!pt.children[St])return(0,W._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Te.redirectTo}'`));pt=pt.children[St]}}applyRedirectCommands(Te,_e,qe){return this.applyRedirectCreatreUrlTree(_e,this.urlSerializer.parse(_e),Te,qe)}applyRedirectCreatreUrlTree(Te,_e,qe,pt){const Vt=this.createSegmentGroup(Te,_e.root,qe,pt);return new Ue(Vt,this.createQueryParams(_e.queryParams,this.urlTree.queryParams),_e.fragment)}createQueryParams(Te,_e){const qe={};return Sn(Te,(pt,Vt)=>{if("string"==typeof pt&&pt.startsWith(":")){const In=pt.substring(1);qe[Vt]=_e[In]}else qe[Vt]=pt}),qe}createSegmentGroup(Te,_e,qe,pt){const Vt=this.createSegments(Te,_e.segments,qe,pt);let Zt={};return Sn(_e.children,(In,ar)=>{Zt[ar]=this.createSegmentGroup(Te,In,qe,pt)}),new st(Vt,Zt)}createSegments(Te,_e,qe,pt){return _e.map(Vt=>Vt.path.startsWith(":")?this.findPosParam(Te,Vt,pt):this.findOrReturn(Vt,qe))}findPosParam(Te,_e,qe){const pt=qe[_e.path.substring(1)];if(!pt)throw new Error(`Cannot redirect to '${Te}'. Cannot find '${_e.path}'.`);return pt}findOrReturn(Te,_e){let qe=0;for(const pt of _e){if(pt.path===Te.path)return _e.splice(qe),pt;qe++}return Te}}function Ze(Ie){const Te={};for(const qe of Object.keys(Ie.children)){const Vt=Ze(Ie.children[qe]);(Vt.segments.length>0||Vt.hasChildren())&&(Te[qe]=Vt)}return function de(Ie){if(1===Ie.numberOfChildren&&Ie.children[St]){const Te=Ie.children[St];return new st(Ie.segments.concat(Te.segments),Te.children)}return Ie}(new st(Ie.segments,Te))}class Jn{constructor(Te){this.path=Te,this.route=this.path[this.path.length-1]}}class Cr{constructor(Te,_e){this.component=Te,this.route=_e}}function Vr(Ie,Te,_e){const qe=Ie._root;return Pi(qe,Te?Te._root:null,_e,[qe.value])}function Zn(Ie,Te,_e){const qe=function qr(Ie){if(!Ie)return null;for(let Te=Ie.parent;Te;Te=Te.parent){const _e=Te.routeConfig;if(_e&&_e._loadedConfig)return _e._loadedConfig}return null}(Te);return(qe?qe.module.injector:_e).get(Ie)}function Pi(Ie,Te,_e,qe,pt={canDeactivateChecks:[],canActivateChecks:[]}){const Vt=an(Te);return Ie.children.forEach(Zt=>{(function mi(Ie,Te,_e,qe,pt={canDeactivateChecks:[],canActivateChecks:[]}){const Vt=Ie.value,Zt=Te?Te.value:null,In=_e?_e.getContext(Ie.value.outlet):null;if(Zt&&Vt.routeConfig===Zt.routeConfig){const ar=function ji(Ie,Te,_e){if("function"==typeof _e)return _e(Ie,Te);switch(_e){case"pathParamsChange":return!vn(Ie.url,Te.url);case"pathParamsOrQueryParamsChange":return!vn(Ie.url,Te.url)||!Kt(Ie.queryParams,Te.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ei(Ie,Te)||!Kt(Ie.queryParams,Te.queryParams);default:return!ei(Ie,Te)}}(Zt,Vt,Vt.routeConfig.runGuardsAndResolvers);ar?pt.canActivateChecks.push(new Jn(qe)):(Vt.data=Zt.data,Vt._resolvedData=Zt._resolvedData),Pi(Ie,Te,Vt.component?In?In.children:null:_e,qe,pt),ar&&In&&In.outlet&&In.outlet.isActivated&&pt.canDeactivateChecks.push(new Cr(In.outlet.component,Zt))}else Zt&&Ki(Te,In,pt),pt.canActivateChecks.push(new Jn(qe)),Pi(Ie,null,Vt.component?In?In.children:null:_e,qe,pt)})(Zt,Vt[Zt.value.outlet],_e,qe.concat([Zt.value]),pt),delete Vt[Zt.value.outlet]}),Sn(Vt,(Zt,In)=>Ki(Zt,_e.getContext(In),pt)),pt}function Ki(Ie,Te,_e){const qe=an(Ie),pt=Ie.value;Sn(qe,(Vt,Zt)=>{Ki(Vt,pt.component?Te?Te.children.getContext(Zt):null:Te,_e)}),_e.canDeactivateChecks.push(new Cr(pt.component&&Te&&Te.outlet&&Te.outlet.isActivated?Te.outlet.component:null,pt))}class Ws{}function Ro(Ie){return new L.y(Te=>Te.error(Ie))}class Gs{constructor(Te,_e,qe,pt,Vt,Zt){this.rootComponentType=Te,this.config=_e,this.urlTree=qe,this.url=pt,this.paramsInheritanceStrategy=Vt,this.relativeLinkResolution=Zt}recognize(){const Te=xn(this.urlTree.root,[],[],this.config.filter(Zt=>void 0===Zt.redirectTo),this.relativeLinkResolution).segmentGroup,_e=this.processSegmentGroup(this.config,Te,St);if(null===_e)return null;const qe=new er([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},St,this.rootComponentType,null,this.urlTree.root,-1,{}),pt=new kt(qe,_e),Vt=new or(this.url,pt);return this.inheritParamsAndData(Vt._root),Vt}inheritParamsAndData(Te){const _e=Te.value,qe=En(_e,this.paramsInheritanceStrategy);_e.params=Object.freeze(qe.params),_e.data=Object.freeze(qe.data),Te.children.forEac
1h(pt=>this.inheritParamsAndData(pt))}processSegmentGroup(Te,_e,qe){return 0===_e.segments.length&&_e.hasChildren()?this.processChildren(Te,_e):this.processSegment(Te,_e,_e.segments,qe)}processChildren(Te,_e){const qe=[];for(const Vt of Object.keys(_e.children)){const Zt=_e.children[Vt],In=dt(Te,Vt),ar=this.processSegmentGroup(In,Zt,Vt);if(null===ar)return null;qe.push(...ar)}const pt=js(qe);return function Bs(Ie){Ie.sort((Te,_e)=>Te.value.outlet===St?-1:_e.value.outlet===St?1:Te.value.outlet.localeCompare(_e.value.outlet))}(pt),pt}processSegment(Te,_e,qe,pt){for(const Vt of Te){const Zt=this.processSegmentAgainstRoute(Vt,_e,qe,pt);if(null!==Zt)return Zt}return Or(_e,qe,pt)?[]:null}processSegmentAgainstRoute(Te,_e,qe,pt){if(Te.redirectTo||!ii(Te,_e,qe,pt))return null;let Vt,Zt=[],In=[];if("**"===Te.path){const Fr=qe.length>0?tn(qe).parameters:{};Vt=new er(qe,Fr,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Di(Te),Me(Te),Te.component,Te,Os(_e),mo(_e)+qe.length,xo(Te))}else{const Fr=fn(_e,Te,qe);if(!Fr.matched)return null;Zt=Fr.consumedSegments,In=Fr.remainingSegments,Vt=new er(Zt,Fr.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Di(Te),Me(Te),Te.component,Te,Os(_e),mo(_e)+Zt.length,xo(Te))}const ar=function Xs(Ie){return Ie.children?Ie.children:Ie.loadChildren?Ie._loadedConfig.routes:[]}(Te),{segmentGroup:Gr,slicedSegments:Ri}=xn(_e,Zt,In,ar.filter(Fr=>void 0===Fr.redirectTo),this.relativeLinkResolution);if(0===Ri.length&&Gr.hasChildren()){const Fr=this.processChildren(ar,Gr);return null===Fr?null:[new kt(Vt,Fr)]}if(0===ar.length&&0===Ri.length)return[new kt(Vt,[])];const ri=Me(Te)===pt,xr=this.processSegment(ar,Gr,Ri,ri?St:pt);return null===xr?null:[new kt(Vt,xr)]}}function Js(Ie){const Te=Ie.value.routeConfig;return Te&&""===Te.path&&void 0===Te.redirectTo}function js(Ie){const Te=[],_e=new Set;for(const qe of Ie){if(!Js(qe)){Te.push(qe);continue}const pt=Te.find(Vt=>qe.value.routeConfig===Vt.value.routeConfig);void 0!==pt?(pt.children.push(...qe.children),_e.add(pt)):Te.push(qe)}for(const qe of _e){const pt=js(qe.children);Te.push(new kt(qe.value,pt))}return Te.filter(qe=>!_e.has(qe))}function Os(Ie){let Te=Ie;for(;Te._sourceSegment;)Te=Te._sourceSegment;return Te}function mo(Ie){let Te=Ie,_e=Te._segmentIndexShift?Te._segmentIndexShift:0;for(;Te._sourceSegment;)Te=Te._sourceSegment,_e+=Te._segmentIndexShift?Te._segmentIndexShift:0;return _e-1}function Di(Ie){return Ie.data||{}}function xo(Ie){return Ie.resolve||{}}function Us(Ie){return[...Object.keys(Ie),...Object.getOwnPropertySymbols(Ie)]}function lo(Ie){return(0,p.w)(Te=>{const _e=Ie(Te);return _e?(0,re.D)(_e).pipe((0,b.U)(()=>Te)):(0,te.of)(Te)})}class uo{}class Y extends class es{shouldDetach(Te){return!1}store(Te,_e){}shouldAttach(Te){return!1}retrieve(Te){return null}shouldReuseRoute(Te,_e){return Te.routeConfig===_e.routeConfig}}{}const Le=new t.InjectionToken("ROUTES");class lt{constructor(Te,_e,qe,pt){this.injector=Te,this.compiler=_e,this.onLoadStartListener=qe,this.onLoadEndListener=pt}load(Te,_e){if(_e._loader$)return _e._loader$;this.onLoadStartListener&&this.onLoadStartListener(_e);const pt=this.loadModuleFactory(_e.loadChildren).pipe((0,b.U)(Vt=>{this.onLoadEndListener&&this.onLoadEndListener(_e);const Zt=Vt.create(Te);return new Mi(vt(Zt.injector.get(Le,void 0,t.InjectFlags.Self|t.InjectFlags.Optional)).map(be),Zt)}),V(Vt=>{throw _e._loader$=void 0,Vt}));return _e._loader$=new m.c(pt,()=>new v.xQ).pipe((0,ie.x)()),_e._loader$}loadModuleFactory(Te){return Nn(Te()).pipe((0,K.zg)(_e=>_e instanceof t.NgModuleFactory?(0,te.of)(_e):(0,re.D)(this.compiler.compileModuleAsync(_e))))}}class kn{shouldProcessUrl(Te){return!0}extract(Te){return Te}merge(Te,_e){return Te}}function Xn(Ie){throw Ie}function Hr(Ie,Te,_e){return Te.parse("/")}function Ei(Ie,Te){return(0,te.of)(null)}const vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ms={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Fi=(()=>{class Ie{constructor(_e,qe,pt,Vt,Zt,In,ar){this.rootComponentType=_e,this.urlSerializer
1=qe,this.rootContexts=pt,this.location=Vt,this.config=ar,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Xn,this.malformedUriErrorHandler=Hr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ei,afterPreactivation:Ei},this.urlHandlingStrategy=new kn,this.routeReuseStrategy=new Y,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Zt.get(t.NgModuleRef),this.console=Zt.get(t.\u0275Console);const ri=Zt.get(t.NgZone);this.isNgZoneEnabled=ri instanceof t.NgZone&&t.NgZone.isInAngularZone(),this.resetConfig(ar),this.currentUrlTree=function rr(){return new Ue(new st([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new lt(Zt,In,xr=>this.triggerEvent(new ut(xr)),xr=>this.triggerEvent(new yt(xr))),this.routerState=Bn(this.currentUrlTree,this.rootComponentType),this.transitions=new Q.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var _e;return null===(_e=this.location.getState())||void 0===_e?void 0:_e.\u0275routerPageId}setupNavigations(_e){const qe=this.events;return _e.pipe((0,Z.h)(pt=>0!==pt.id),(0,b.U)(pt=>Object.assign(Object.assign({},pt),{extractedUrl:this.urlHandlingStrategy.extract(pt.rawUrl)})),(0,p.w)(pt=>{let Vt=!1,Zt=!1;return(0,te.of)(pt).pipe((0,J.b)(In=>{this.currentNavigation={id:In.id,initialUrl:In.currentRawUrl,extractedUrl:In.extractedUrl,trigger:In.source,extras:In.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,p.w)(In=>{const ar=this.browserUrlTree.toString(),Gr=!this.navigated||In.extractedUrl.toString()!==ar||ar!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Gr)&&this.urlHandlingStrategy.shouldProcessUrl(In.rawUrl))return Ys(In.source)&&(this.browserUrlTree=In.extractedUrl),(0,te.of)(In).pipe((0,p.w)(ri=>{const xr=this.transitions.getValue();return qe.next(new Qe(ri.id,this.serializeUrl(ri.extractedUrl),ri.source,ri.restoredState)),xr!==this.transitions.getValue()?E.E:Promise.resolve(ri)}),function Xt(Ie,Te,_e,qe){return(0,p.w)(pt=>function ue(Ie,Te,_e,qe,pt){return new et(Ie,Te,_e,qe,pt).apply()}(Ie,Te,_e,pt.extractedUrl,qe).pipe((0,b.U)(Vt=>Object.assign(Object.assign({},pt),{urlAfterRedirects:Vt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,J.b)(ri=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:ri.urlAfterRedirects})}),function Ir(Ie,Te,_e,qe,pt){return(0,K.zg)(Vt=>function Qs(Ie,Te,_e,qe,pt="emptyOnly",Vt="legacy"){try{const Zt=new Gs(Ie,Te,_e,qe,pt,Vt).recognize();return null===Zt?Ro(new Ws):(0,te.of)(Zt)}catch(Zt){return Ro(Zt)}}(Ie,Te,Vt.urlAfterRedirects,_e(Vt.urlAfterRedirects),qe,pt).pipe((0,b.U)(Zt=>Object.assign(Object.assign({},Vt),{targetSnapshot:Zt}))))}(this.rootComponentType,this.config,ri=>this.serializeUrl(ri),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,J.b)(ri=>{if("eager"===this.urlUpdateStrategy){if(!ri.extras.skipLocationChange){const Fr=this.urlHandlingStrategy.merge(ri.urlAfterRedirects,ri.rawUrl);this.setBrowserUrl(Fr,ri)}this.browserUrlTree=ri.urlAfterRedirects}const xr=new Lt(ri.id,this.serializeUrl(ri.extractedUrl),this.serializeUrl(ri.urlAfterRedirects),ri.targetSnapshot);qe.next(xr)}));if(Gr&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:Fr,source:ti,restoredState:fi,extras:ts}=In,eo=new Qe(xr,this.serializeUrl(Fr),ti,fi);qe.next(eo);const _s=Bn(Fr,this.rootComponentType).snapshot;return(0,te.of)(Object.assign(Object.assign({},In),{targetSnapshot:_s,urlAfterRedirects:Fr,extras:Object.assign(Object.assign({},ts),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=In.rawUrl,In.resolve(null),E.E}),lo(In=>{const{targetSnapshot:ar,id:Gr,extractedUrl:Ri,rawUrl:ri,extras:{skipLocationChange:xr,replaceUrl:Fr}}=In;return this.hooks.beforePreactivation(ar,{navigationId:Gr,appliedUrlTree:Ri,rawUrlTree:ri,skipLocationChange:!!xr,replaceUrl:!!Fr})}),(0,J.b)(In=>{const ar=new Jt(In.id,this.serializeUrl(In.extractedUrl),this.serializeUrl(In.urlAfterRedirects),In.targetSnapshot);this.triggerEvent(ar)}),(0,b.U)(In=>Object.assign(Object.assign({},In),{guards:Vr(In.targetSnapshot,In.currentSnapshot,this.rootContexts)})),function Ui(Ie,Te){return(0,K.zg)(_e=>{const{targetSnapshot:qe,currentSnapshot:pt,guards:{canActivateChecks:Vt,canDeactivateChecks:Zt}}=_e;return 0===Zt.length&&0===Vt.length?(0,te.of)(Object.assign(Object.assign({},_e),{guardsResult:!0})):function ps(Ie,Te,_e,qe){return(0,re.D)(Ie).pipe((0,K.zg)(pt=>function as(Ie,Te,_e,qe,pt){const Vt=Te&&Te.routeConfig?Te.routeConfig.canDeactivate:null;if(!Vt||0===Vt.length)return(0,te.of)(!0);const Zt=Vt.map(In=>{const ar=Zn(In,Te,pt);let Gr;if(function gn(Ie){return Ie&&Ti(Ie.canDeactivate)}(ar))Gr=Nn(ar.canDeactivate(Ie,Te,_e,qe));else{if(!Ti(ar))throw new Error("Invalid CanDeactivate guard");Gr=Nn(ar(Ie,Te,_e,qe))}return Gr.pipe(O())});return(0,te.of)(Zt).pipe(Mn())}(pt.component,pt.route,_e,Te,qe)),O(pt=>!0!==pt,!0))}(Zt,qe,pt,Ie).pipe((0,K.zg)(In=>In&&function os(Ie){return"boolean"==typeof Ie}(In)?function qi(Ie,Te,_e,qe){return(0,re.D)(Te).pipe((0,N.b)(pt=>(0,P.z)(function ws(Ie,Te){return null!==Ie&&Te&&Te(new ht(Ie)),(0,te.of)(!0)}(pt.route.parent,qe),function Xi(Ie,Te){return null!==Ie&&Te&&Te(new cn(Ie)),(0,te.of)(!0)}(pt.route,qe),function Ms(Ie,Te,_e){const qe=Te[Te.length-1],Vt=Te.slice(0,Te.length-1).reverse().map(Zt=>function Jr(Ie){const Te=Ie.routeConfig?Ie.routeConfig.canActivateChild:null;return Te&&0!==Te.length?{node:Ie,guards:Te}:null}(Zt)).filter(Zt=>null!==Zt).map(Zt=>(0,C.P)(()=>{const In=Zt.guards.map(ar=>{const Gr=Zn(ar,Zt.node,_e);let Ri;if(function Ut(Ie){return Ie&&Ti(Ie.canActivateChild)}(Gr))Ri=Nn(Gr.canActivateChild(qe,Ie));else{if(!Ti(Gr))throw new Error("Invalid CanActivateChild guard");Ri=Nn(Gr(qe,Ie))}return Ri.pipe(O())});return(0,te.of)(In).pipe(Mn())}));return(0,te.of)(Vt).pipe(Mn())}(Ie,pt.path,_e),function gs(Ie,Te,_e){const qe=Te.routeConfig?Te.routeConfig.canActivate:null;if(!qe||0===qe.length)return(0,te.of)(!0);const pt=qe.map(Vt=>(0,C.P)(()=>{const Zt=Zn(Vt,Te,_e);let In;if(function Xe(Ie){return Ie&&Ti(Ie.canActivate)}(Zt))In=Nn(Zt.canActivate(Te,Ie));else{if(!Ti(Zt))throw new Error("Invalid CanActivate guard");In=Nn(Zt(Te,Ie))}return In.pipe(O())}));return(0,te.of)(pt).pipe(Mn())}(Ie,pt.route,_e))),O(pt=>!0!==pt,!0))}(qe,Vt,Ie,Te):(0,te.of)(In)),(0,b.U)(In=>Object.assign(Object.assign({},_e),{guardsResult:In})))})}(this.ngModule.injector,In=>this.triggerEvent(In)),(0,J.b)(In=>{if(Ii(In.guardsResult)){const Gr=mt(`Redirecting to "${this.serializeUrl(In.guardsResult)}"`);throw Gr.url=In.guardsResult,Gr}const ar=new Rt(In.id,this.serializeUrl(In.extractedUrl),this.serializeUrl(In.urlAfterRedirects),In.targetSnapshot,!!In.guardsResult);this.triggerEvent(ar)}),(0,Z.h)(In=>!!In.guardsResult||(this.restoreHistory(In),this.cancelNavigationTransition(In,""),!1)),lo(In=>{if(In.guards.canActivateChecks.length)return(0,te.of)(In).pipe((0,J.b)(ar=>{const Gr=new it(ar.id,this.serializeUrl(ar.extractedUrl),this.serializeUrl(ar.urlAfterRedirects),ar.targetSnapshot);this.triggerEvent(Gr)}),(0,p.w)(ar=>{let Gr=!1;return(0,te.of)(ar).pipe(function ki(Ie,Te){return(0,K.zg)(_e=>{const{targetSnapshot:qe,guards:{canActivateChecks:pt}}=_e;if(!pt.length)return(0,te.of)(_e);let Vt=0;return(0,re.D)(pt).pipe((0,N.b)(Zt=>function Mo(Ie,Te,_e,qe){return function Zs(Ie,Te,_e,qe){const pt=Us(Ie);if(0===pt.length)return(0,te.of)({});const Vt={};return(0,re.D)(pt).pipe((0,K.zg)(Zt=>function Ns(Ie,Te,_e,qe){const pt=Zn(Ie,Te,qe);return Nn(pt.resolve?pt.resolve(Te,_e):pt(Te,_e))}(Ie[Zt],Te,_e,qe).pipe((0,J.b)(In=>{Vt[Zt]=In}))),se(1),(0,K.zg)(()=>Us(Vt).length===pt.length?(0,te.of)(Vt):E.E))}(Ie._resolve,Ie,Te,qe).pipe((0,b.U)(Vt=>(Ie._resolvedData=Vt,Ie.data=Object.assign(Object.assign({},Ie.data),En(Ie,_e).resolve),null)))}(Zt.route,qe,Ie,Te)),(0,J.b)(()=>Vt++),se(1),(0,K.zg)(Zt=>Vt===pt.length?(0,te.of)(_e):E.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,J.b)({next:()=>Gr=!0,complete:()=>{Gr||(this.restoreHistory(ar),this.cancelNavigationTransition(ar,"At least one route resolver didn't emit any value."))}}))}),(0,J.b)(ar=>{const Gr=new _t(ar.id,this.serializeUrl(ar.extractedUrl),this.serializeUrl(ar.urlAfterRedirects),ar.targetSnapshot);this.triggerEvent(Gr)}))}),lo(In=>{const{targetSnapshot:ar,id:Gr,extractedUrl:Ri,rawUrl:ri,extras:{skipLocationChange:xr,replaceUrl:Fr}}=In;return this.hooks.afterPreactivation(ar,{navigationId:Gr,appliedUrlTree:Ri,rawUrlTree:ri,skipLocationChange:!!xr,replaceUrl:!!Fr})}),(0,b.U)(In=>{const ar=function oi(Ie,Te,_e){const qe=ui(Ie,Te._root,_e?_e._root:void 0);return new Dn(qe,Te)}(this.routeReuseStrategy,In.targetSnapshot,In.currentRouterState);return Object.assign(Object.assign({},In),{targetRouterState:ar})}),(0,J.b)(In=>{this.currentUrlTree=In.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(In.urlAfterRedirects,In.rawUrl),this.routerState=In.targetRouterState,"deferred"===this.urlUpdateStrategy&&(In.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,In),this.browserUrlTree=In.urlAfterRedirects)}),((Ie,Te,_e)=>(0,b.U)(qe=>(new bs(Te,qe.targetRouterState,qe.currentRouterState,_e).activate(Ie),qe)))(this.rootContexts,this.routeReuseStrategy,In=>this.triggerEvent(In)),(0,J.b)({next(){Vt=!0},complete(){Vt=!0}}),(0,he.x)(()=>{var In;Vt||Zt||this.cancelNavigationTransition(pt,`Navigation ID ${pt.id} is not equal to the current navigation id ${this.navigationId}`),(null===(In=this.currentNavigation)||void 0===In?void 0:In.id)===pt.id&&(this.currentNavigation=null)}),V(In=>{if(Zt=!0,function Nt(Ie){return Ie&&Ie[nt]}(In)){const ar=Ii(In.url);ar||(this.navigated=!0,this.restoreHistory(pt,!0));const Gr=new Ot(pt.id,this.serializeUrl(pt.extractedUrl),In.message);qe.next(Gr),ar?setTimeout(()=>{const Ri=this.urlHandlingStrategy.merge(In.url,this.rawUrlTree),ri={skipLocationChange:pt.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ys(pt.source)};this.scheduleNavigation(Ri,"imperative",null,ri,{resolve:pt.resolve,reject:pt.reject,promise:pt.promise})},0):pt.resolve(!1)}else{this.restoreHistory(pt,!0);const ar=new ln(pt.id,this.serializeUrl(pt.extractedUrl),In);qe.next(ar);try{pt.resolve(this.errorHandler(In))}catch(Gr){pt.reject(Gr)}}return E.E}))}))}resetRootComponentType(_e){this.rootComponentType=_e,this.routerState.root.component=this.rootComponentType}setTransition(_e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),_e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(_e=>{const qe="popstate"===_e.type?"popstate":"hashchange";"popstate"===qe&&setTimeout(()=>{var pt;const Vt={replaceUrl:!0},Zt=(null===(pt=_e.state)||void 0===pt?void 0:pt.navigationId)?_e.state:null;if(Zt){const ar=Object.assign({},Zt);delete ar.navigationId,delete ar.\u0275routerPageId,0!==Object.keys(ar).length&&(Vt.state=ar)}const In=this.parseUrl(_e.url);this.scheduleNavigation(In,qe,Zt,Vt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(_e){this.events.next(_e)}resetConfig(_e){Wr(_e),this.config=_e.map(be),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(_e,qe={}){const{relativeTo:pt,queryParams:Vt,fragment:Zt,queryParamsHandling:In,preserveFragment:ar}=qe,Gr=pt||this.routerState.root,Ri=ar?this.currentUrlTree.fragment:Zt;let ri=null;switch(In){case"merge":ri=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Vt);break;case"preserve":ri=this.currentUrlTree.queryParams;break;default:ri=Vt||null}return null!==ri&&(ri=this.removeEmptyProps(ri)),function Ji(Ie,Te,_e,qe,pt){if(0===_e.length)return rs(Te.root,Te.root,Te.root,qe,pt);const Vt=function si(Ie){if("string"==typeof Ie[0]&&1===Ie.length&&"/"===Ie[0])return new $r(!0,0,Ie);let Te=0,_e=!1;const qe=Ie.reduce((pt,Vt,Zt)=>{if("object"==typeof Vt&&null!=Vt){if(Vt.outlets){const In={};return Sn(Vt.outlets,(ar,Gr)=>{In[Gr]="string"==typeof ar?ar.split("/"):ar}),[...pt,{outlets:In}]}if(Vt.segmentPath)return[...pt,Vt.segmentPath]}return"string"!=typeof Vt?[...pt,Vt]:0===Zt?(Vt.split("/").forEach((In,ar)=>{0==ar&&"."===In||(0==ar&&""===In?_e=!0:".."===In?Te++:""!=In&&pt.push(In))}),pt):[...pt,Vt]},[]);return new $r(_e,Te,qe)}(_e);if(Vt.toRoot())return rs(Te.root,Te.root,new st([],{}),qe,pt);const Zt=function Yi(Ie,Te,_e){if(Ie.isAbsolute)return new cs(Te.root,!0,0);if(-1===_e.snapshot._lastPathIndex){const Vt=_e.snapshot._urlSegment;return new cs(Vt,Vt===Te.root,0)}const qe=ci(Ie.commands[0])?0:1;return function is(Ie,Te,_e){let qe=Ie,pt=Te,Vt=_e;for(;Vt>pt;){if(Vt-=pt,qe=qe.parent,!qe)throw new Error("Invalid number of '../'");pt=qe.segments.length}return new cs(qe,!1,pt-Vt)}(_e.snapshot._urlSegment,_e.snapshot._lastPathIndex+qe,Ie.numberOfDoubleDots)}(Vt,Te,Ie),In=Zt.processChildren?ai(Zt.segmentGroup,Zt.index,Vt.commands):Hi(Zt.segmentGroup,Zt.index,Vt.commands);return rs(Te.root,Zt.segmentGroup,In,qe,pt)}(Gr,this.currentUrlTree,_e,ri,null!=Ri?Ri:null)}navigateByUrl(_e,qe={skipLocationChange:!1}){const pt=Ii(_e)?_e:this.parseUrl(_e),Vt=this.urlHandlingStrategy.merge(pt,this.rawUrlTree);return this.scheduleNavigation(Vt,"imperative",null,qe)}navigate(_e,qe={skipLocationChange:!1}){return function vs(Ie){for(let Te=0;Te<Ie.length;Te++){const _e=Ie[Te];if(null==_e)throw new Error(`The requested path contains ${_e} segment at index ${Te}`)}}(_e),this.navigateByUrl(this.createUrlTree(_e,qe),qe)}serializeUrl(_e){return this.urlSerializer.serialize(_e)}parseUrl(_e){let qe;try{qe=this.urlSerializer.parse(_e)}catch(pt){qe=this.malformedUriErrorHandler(pt,this.urlSerializer,_e)}return qe}isActive(_e,qe){let pt;if(pt=!0===qe?Object.assign({},vi):!1===qe?Object.assign({},ms):qe,Ii(_e))return nr(this.currentUrlTree,_e,pt);const Vt=this.parseUrl(_e);return nr(this.currentUrlTree,Vt,pt)}removeEmptyProps(_e){return Object.keys(_e).reduce((qe,pt)=>{const Vt=_e[pt];return null!=Vt&&(qe[pt]=Vt),qe},{})}processNavigations(){this.navigations.subscribe(_e=>{this.navigated=!0,this.lastSuccessfulId=_e.id,this.currentPageId=_e.targetPageId,this.events.next(new Ct
1(_e.id,this.serializeUrl(_e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,_e.resolve(!0)},_e=>{this.console.warn(`Unhandled Navigation Error: ${_e}`)})}scheduleNavigation(_e,qe,pt,Vt,Zt){var In,ar;if(this.disposed)return Promise.resolve(!1);let Gr,Ri,ri;Zt?(Gr=Zt.resolve,Ri=Zt.reject,ri=Zt.promise):ri=new Promise((ti,fi)=>{Gr=ti,Ri=fi});const xr=++this.navigationId;let Fr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(pt=this.location.getState()),Fr=pt&&pt.\u0275routerPageId?pt.\u0275routerPageId:Vt.replaceUrl||Vt.skipLocationChange?null!==(In=this.browserPageId)&&void 0!==In?In:0:(null!==(ar=this.browserPageId)&&void 0!==ar?ar:0)+1):Fr=0,this.setTransition({id:xr,targetPageId:Fr,source:qe,restoredState:pt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:_e,extras:Vt,resolve:Gr,reject:Ri,promise:ri,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ri.catch(ti=>Promise.reject(ti))}setBrowserUrl(_e,qe){const pt=this.urlSerializer.serialize(_e),Vt=Object.assign(Object.assign({},qe.extras.state),this.generateNgRouterState(qe.id,qe.targetPageId));this.location.isCurrentPathEqualTo(pt)||qe.extras.replaceUrl?this.location.replaceState(pt,"",Vt):this.location.go(pt,"",Vt)}restoreHistory(_e,qe=!1){var pt,Vt;if("computed"===this.canceledNavigationResolution){const Zt=this.currentPageId-_e.targetPageId;"popstate"!==_e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(pt=this.currentNavigation)||void 0===pt?void 0:pt.finalUrl)||0===Zt?this.currentUrlTree===(null===(Vt=this.currentNavigation)||void 0===Vt?void 0:Vt.finalUrl)&&0===Zt&&(this.resetState(_e),this.browserUrlTree=_e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Zt)}else"replace"===this.canceledNavigationResolution&&(qe&&this.resetState(_e),this.resetUrlToCurrentUrlTree())}resetState(_e){this.routerState=_e.currentRouterState,this.currentUrlTree=_e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(_e,qe){const pt=new Ot(_e.id,this.serializeUrl(_e.extractedUrl),qe);this.triggerEvent(pt),_e.resolve(!1)}generateNgRouterState(_e,qe){return"computed"===this.canceledNavigationResolution?{navigationId:_e,\u0275routerPageId:qe}:{navigationId:_e}}}return Ie.\u0275fac=function(_e){t.\u0275\u0275invalidFactory()},Ie.\u0275prov=t.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac}),Ie})();function Ys(Ie){return"imperative"!==Ie}let Vs=(()=>{class Ie{constructor(_e,qe,pt,Vt,Zt){this.router=_e,this.route=qe,this.tabIndexAttribute=pt,this.renderer=Vt,this.el=Zt,this.commands=null,this.onChanges=new v.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(_e){if(null!=this.tabIndexAttribute)return;const qe=this.renderer,pt=this.el.nativeElement;null!==_e?qe.setAttribute(pt,"tabindex",_e):qe.removeAttribute(pt,"tabindex")}ngOnChanges(_e){this.onChanges.next(this)}set routerLink(_e){null!=_e?(this.commands=Array.isArray(_e)?_e:[_e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const _e={skipLocationChange:wi(this.skipLocationChange),replaceUrl:wi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,_e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wi(this.preserveFragment)})}}return Ie.\u0275fac=function(_e){return new(_e||Ie)(t.\u0275\u0275directiveInject(Fi),t.\u0275\u0275directiveInject(Qt),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef))},Ie.\u0275dir=t.\u0275\u0275defineDirective({type:Ie,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(_e,qe){1&_e&&t.\u0275\u0275listener("click",function(){return qe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.\u0275\u0275NgOnChangesFeature]}),Ie})();function wi(Ie){return""===Ie||!!Ie}class Wo{}class Eo{preload(Te,_e){return _e().pipe(V(()=>(0,te.of)(null)))}}class ho{preload(Te,_e){return(0,te.of)(null)}}let ha=(()=>{class Ie{constructor(_e,qe,pt,Vt){this.router=_e,this.injector=pt,this.preloadingStrategy=Vt,this.loader=new lt(pt,qe,ar=>_e.triggerEvent(new ut(ar)),ar=>_e.triggerEvent(new yt(ar)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Z.h)(_e=>_e instanceof Ct),(0,N.b)(()=>this.preload())).subscribe(()=>{})}preload(){const _e=this.injector.get(t.NgModuleRef);return this.processRoutes(_e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_e,qe){const pt=[];for(const Vt of qe)if(Vt.loadChildren&&!Vt.canLoad&&Vt._loadedConfig){const Zt=Vt._loadedConfig;pt.push(this.processRoutes(Zt.module,Zt.routes))}else Vt.loadChildren&&!Vt.canLoad?pt.push(this.preloadConfig(_e,Vt)):Vt.children&&pt.push(this.processRoutes(_e,Vt.children));return(0,re.D)(pt).pipe((0,Oe.J)(),(0,b.U)(Vt=>{}))}preloadConfig(_e,qe){return this.preloadingStrategy.preload(qe,()=>(qe._loadedConfig?(0,te.of)(qe._loadedConfig):this.loader.load(_e.injector,qe)).pipe((0,K.zg)(Vt=>(qe._loadedConfig=Vt,this.processRoutes(Vt.module,Vt.routes)))))}}return Ie.\u0275fac=function(_e){return new(_e||Ie)(t.\u0275\u0275inject(Fi),t.\u0275\u0275inject(t.Compiler),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(Wo))},Ie.\u0275prov=t.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac}),Ie})(),ot=(()=>{class Ie{constructor(_e,qe,pt={}){this.router=_e,this.viewportScroller=qe,this.options=pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},pt.scrollPositionRestoration=pt.scrollPositionRestoration||"disabled",pt.anchorScrolling=pt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(_e=>{_e instanceof Qe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_e.navigationTrigger,this.restoredId=_e.restoredState?_e.restoredState.navigationId:0):_e instanceof Ct&&(this.lastId=_e.id,this.scheduleScrollEvent(_e,this.router.parseUrl(_e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(_e=>{_e instanceof at&&(_e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_e.position):_e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_e,qe){this.router.triggerEvent(new at(_e,"popstate"===this.lastSource?this.store[this.restoredId]:null,qe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ie.\u0275fac=function(_e){t.\u0275\u0275invalidFactory()},Ie.\u0275prov=t.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac}),Ie})();const ye=new t.InjectionToken("ROUTER_CONFIGURATION"),Ke=new t.InjectionToken("ROUTER_FORROOT_GUARD"),xt=[Ne.Location,{provide:$n,useClass:Gn},{provide:Fi,useFactory:function rt(Ie,Te,_e,qe,pt,Vt,Zt={},In,ar){const Gr=new Fi(null,Ie,Te,_e,qe,pt,vt(Vt));return In&&(Gr.urlHandlingStrategy=In),ar&&(Gr.routeReuseStrategy=ar),function Pt(Ie,Te){Ie.errorHandler&&(Te.errorHandler=Ie.errorHandler),Ie.malformedUriErrorHandler&&(Te.malformedUriErrorHandler=Ie.malformedUriErrorHandler),Ie.onSameUrlNavigation&&(Te.onSameUrlNavigation=Ie.onSameUrlNavigation),Ie.paramsInheritanceStrategy&&(Te.paramsInheritanceStrategy=Ie.paramsInheritanceStrategy),Ie.relativeLinkResolution&&(Te.relativeLinkResolution=Ie.relativeLinkResolution),Ie.urlUpdateStrategy&&(Te.urlUpdateStrategy=Ie.urlUpdateStrategy),Ie.canceledNavigationResolution&&(Te.canceledNavigationResolution=Ie.canceledNavigationResolution)}(Zt,Gr),Zt.enableTracing&&Gr.events.subscribe(Ri=>{var ri,xr;null===(ri=console.group)||void 0===ri||ri.call(console,`Router Event: ${Ri.constructor.name}`),console.log(Ri.toString()),console.log(Ri),null===(xr=console.groupEnd)||void 0===xr||xr.call(console)}
1),Gr},deps:[$n,cr,Ne.Location,t.Injector,t.Compiler,Le,ye,[class en{},new t.Optional],[uo,new t.Optional]]},cr,{provide:Qt,useFactory:function qt(Ie){return Ie.routerState.root},deps:[Fi]},ha,ho,Eo,{provide:ye,useValue:{enableTracing:!1}}];function w(){return new t.NgProbeToken("Router",Fi)}let l=(()=>{class Ie{constructor(_e,qe){}static forRoot(_e,qe){return{ngModule:Ie,providers:[xt,De(_e),{provide:Ke,useFactory:fe,deps:[[Fi,new t.Optional,new t.SkipSelf]]},{provide:ye,useValue:qe||{}},{provide:Ne.LocationStrategy,useFactory:B,deps:[Ne.PlatformLocation,[new t.Inject(Ne.APP_BASE_HREF),new t.Optional],ye]},{provide:ot,useFactory:g,deps:[Fi,Ne.ViewportScroller,ye]},{provide:Wo,useExisting:qe&&qe.preloadingStrategy?qe.preloadingStrategy:ho},{provide:t.NgProbeToken,multi:!0,useFactory:w},[$t,{provide:t.APP_INITIALIZER,multi:!0,useFactory:Tn,deps:[$t]},{provide:tr,useFactory:zn,deps:[$t]},{provide:t.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:tr}]]}}static forChild(_e){return{ngModule:Ie,providers:[De(_e)]}}}return Ie.\u0275fac=function(_e){return new(_e||Ie)(t.\u0275\u0275inject(Ke,8),t.\u0275\u0275inject(Fi,8))},Ie.\u0275mod=t.\u0275\u0275defineNgModule({type:Ie}),Ie.\u0275inj=t.\u0275\u0275defineInjector({}),Ie})();function g(Ie,Te,_e){return _e.scrollOffset&&Te.setOffset(_e.scrollOffset),new ot(Ie,Te,_e)}function B(Ie,Te,_e={}){return _e.useHash?new Ne.HashLocationStrategy(Ie,Te):new Ne.PathLocationStrategy(Ie,Te)}function fe(Ie){return"guarded"}function De(Ie){return[{provide:t.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:Ie},{provide:Le,multi:!0,useValue:Ie}]}let $t=(()=>{class Ie{constructor(_e){this.injector=_e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}appInitializer(){return this.injector.get(Ne.LOCATION_INITIALIZED,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let qe=null;const pt=new Promise(In=>qe=In),Vt=this.injector.get(Fi),Zt=this.injector.get(ye);return"disabled"===Zt.initialNavigation?(Vt.setUpLocationChangeListener(),qe(!0)):"enabled"===Zt.initialNavigation||"enabledBlocking"===Zt.initialNavigation?(Vt.hooks.afterPreactivation=()=>this.initNavigation?(0,te.of)(null):(this.initNavigation=!0,qe(!0),this.resultOfPreactivationDone),Vt.initialNavigation()):qe(!0),pt})}bootstrapListener(_e){const qe=this.injector.get(ye),pt=this.injector.get(ha),Vt=this.injector.get(ot),Zt=this.injector.get(Fi),In=this.injector.get(t.ApplicationRef);_e===In.components[0]&&(("enabledNonBlocking"===qe.initialNavigation||void 0===qe.initialNavigation)&&Zt.initialNavigation(),pt.setUpPreloading(),Vt.init(),Zt.resetRootComponentType(In.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ie.\u0275fac=function(_e){return new(_e||Ie)(t.\u0275\u0275inject(t.Injector))},Ie.\u0275prov=t.\u0275\u0275defineInjectable({token:Ie,factory:Ie.\u0275fac}),Ie})();function Tn(Ie){return Ie.appInitializer.bind(Ie)}function zn(Ie){return Ie.bootstrapListener.bind(Ie)}const tr=new t.InjectionToken("Router Initializer")},1659:(xe,q,c)=>{"use strict";c.d(q,{Zw:()=>G,aw:()=>K,sK:()=>p});var t=c(6435),_=c(2916);function x(J){return!!J&&(J instanceof _.y||"function"==typeof J.lift&&"function"==typeof J.subscribe)}var re=c(1086),te=c(567),Q=c(1221),S=c(8514),W=c(8929),P=c(341),C=c(2654),L=c(2102),E=c(5279),m=c(5283);class v extends W.xQ{constructor(ie=Number.POSITIVE_INFINITY,he=Number.POSITIVE_INFINITY,Oe){super(),this.scheduler=Oe,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=ie<1?1:ie,this._windowTime=he<1?1:he,he===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(ie){if(!this.isStopped){const he=this._events;he.push(ie),he.length>this._bufferSize&&he.shift()}super.next(ie)}nextTimeWindow(ie){this.isStopped||(this._events.push(new R(this._getNow(),ie)),this._trimBufferThenGetEvents()),super.next(ie)}_subscribe(ie){const he=this._infiniteTimeWindow,Oe=he?this._events:this._trimBufferThenGetEvents(),Ne=this.scheduler,Ye=Oe.length;let Qe;if(this.closed)throw new E.N;if(this.isStopped||this.hasError?Qe=C.w.EMPTY:(this.observers.push(ie),Qe=new m.W(this,ie)),Ne&&ie.add(ie=new L.ht(ie,Ne)),he)for(let Ct=0;Ct<Ye&&!ie.closed;Ct++)ie.next(Oe[Ct]);else for(let Ct=0;Ct<Ye&&!ie.closed;Ct++)ie.next(Oe[Ct].value);return this.hasError?ie.error(this.thrownError):this.isStopped&&ie.complete(),Qe}_getNow(){return(this.scheduler||P.c).now()}_trimBufferThenGetEvents(){const ie=this._getNow(),he=this._bufferSize,Oe=this._windowTime,Ne=this._events,Ye=Ne.length;let Qe=0;for(;Qe<Ye&&!(ie-Ne[Qe].time<Oe);)Qe++;return Ye>he&&(Qe=Math.max(Qe,Ye-he)),Qe>0&&Ne.splice(0,Qe),Ne}}class R{constructor(ie,he){this.time=ie,this.value=he}}function j(J,ie,he){let Oe;return Oe=J&&"object"==typeof J?J:{bufferSize:J,windowTime:ie,refCount:!1,scheduler:he},Ne=>Ne.lift(function M({bufferSize:J=Number.POSITIVE_INFINITY,windowTime:ie=Number.POSITIVE_INFINITY,refCount:he,scheduler:Oe}){let Ne,Qe,Ye=0,Ct=!1,Ot=!1;return function(Lt){let Jt;Ye++,!Ne||Ct?(Ct=!1,Ne=new v(J,ie,Oe),Jt=Ne.subscribe(this),Qe=Lt.subscribe({next(Rt){Ne.next(Rt)},error(Rt){Ct=!0,Ne.error(Rt)},complete(){Ot=!0,Qe=void 0,Ne.complete()}}),Ot&&(Qe=void 0)):Jt=Ne.subscribe(this),this.add(()=>{Ye--,Jt.unsubscribe(),Jt=void 0,Qe&&!Ot&&he&&0===Ye&&(Qe.unsubscribe(),Qe=void 0,Ne=void 0)})}}(Oe))}var V=c(2986),f=c(4850),T=c(1406),Z=c(7545);class G{}let $=(()=>{class J extends G{getTranslation(he){return(0,re.of)({})}}return J.\u0275fac=function(){let ie;
1return function(Oe){return(ie||(ie=t.\u0275\u0275getInheritedFactory(J)))(Oe||J)}}(),J.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();class se{}let y=(()=>{class J{handle(he){return he.key}}return J.\u0275fac=function(he){return new(he||J)},J.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();function I(J){return null!=J}function H(J){return J&&"object"==typeof J&&!Array.isArray(J)}function ee(J,ie){let he=Object.assign({},J);return H(J)&&H(ie)&&Object.keys(ie).forEach(Oe=>{H(ie[Oe])?Oe in J?he[Oe]=ee(J[Oe],ie[Oe]):Object.assign(he,{[Oe]:ie[Oe]}):Object.assign(he,{[Oe]:ie[Oe]})}),he}class z{}let oe=(()=>{class J extends z{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(he,Oe){let Ne;return Ne="string"==typeof he?this.interpolateString(he,Oe):"function"==typeof he?this.interpolateFunction(he,Oe):he,Ne}getValue(he,Oe){let Ne="string"==typeof Oe?Oe.split("."):[Oe];Oe="";do{Oe+=Ne.shift(),!I(he)||!I(he[Oe])||"object"!=typeof he[Oe]&&Ne.length?Ne.length?Oe+=".":he=void 0:(he=he[Oe],Oe="")}while(Ne.length);return he}interpolateFunction(he,Oe){return he(Oe)}interpolateString(he,Oe){return Oe?he.replace(this.templateMatcher,(Ne,Ye)=>{let Qe=this.getValue(Oe,Ye);return I(Qe)?Qe:Ne}):he}}return J.\u0275fac=function(){let ie;return function(Oe){return(ie||(ie=t.\u0275\u0275getInheritedFactory(J)))(Oe||J)}}(),J.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();class ve{}let We=(()=>{class J extends ve{compile(he,Oe){return he}compileTranslations(he,Oe){return he}}return J.\u0275fac=function(){let ie;return function(Oe){return(ie||(ie=t.\u0275\u0275getInheritedFactory(J)))(Oe||J)}}(),J.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})();class Re{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new t.EventEmitter,this.onLangChange=new t.EventEmitter,this.onDefaultLangChange=new t.EventEmitter}}const He=new t.InjectionToken("USE_STORE"),ge=new t.InjectionToken("USE_DEFAULT_LANG"),O=new t.InjectionToken("DEFAULT_LANGUAGE"),b=new t.InjectionToken("USE_EXTEND");let p=(()=>{class J{constructor(he,Oe,Ne,Ye,Qe,Ct=!0,Ot=!1,ln=!1,Lt){this.store=he,this.currentLoader=Oe,this.compiler=Ne,this.parser=Ye,this.missingTranslationHandler=Qe,this.useDefaultLang=Ct,this.isolate=Ot,this.extend=ln,this.pending=!1,this._onTranslationChange=new t.EventEmitter,this._onLangChange=new t.EventEmitter,this._onDefaultLangChange=new t.EventEmitter,this._langs=[],this._translations={},this._translationRequests={},Lt&&this.setDefaultLang(Lt)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(he){this.isolate?this._defaultLang=he:this.store.defaultLang=he}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(he){this.isolate?this._currentLang=he:this.store.currentLang=he}get langs(){return this.isolate?this._langs:this.store.langs}set langs(he){this.isolate?this._langs=he:this.store.langs=he}get translations(){return this.isolate?this._translations:this.store.translations}set translations(he){this.isolate?this._translations=he:this.store.translations=he}setDefaultLang(he){if(he===this.defaultLang)return;let Oe=this.retrieveTranslations(he);void 0!==Oe?(null==this.defaultLang&&(this.defaultLang=he),Oe.pipe((0,V.q)(1)).subscribe(Ne=>{this.changeDefaultLang(he)})):this.changeDefaultLang(he)}getDefaultLang(){return this.defaultLang}use(he){if(he===this.currentLang)return(0,re.of)(this.translations[he]);let Oe=this.retrieveTranslations(he);return void 0!==Oe?(this.currentLang||(this.currentLang=he),Oe.pipe((0,V.q)(1)).subscribe(Ne=>{this.changeLang(he)}),Oe):(this.changeLang(he),(0,re.of)(this.translations[he]))}retrieveTranslations(he){let Oe;return(void 0===this.translations[he]||this.extend)&&(this._translationRequests[he]=this._translationRequests[he]||this.getTranslation(he),Oe=this._translationRequests[he]),Oe}getTranslation(he){this.pending=!0;
1const Oe=this.currentLoader.getTranslation(he).pipe(j(1),(0,V.q)(1));return this.loadingTranslations=Oe.pipe((0,f.U)(Ne=>this.compiler.compileTranslations(Ne,he)),j(1),(0,V.q)(1)),this.loadingTranslations.subscribe({next:Ne=>{this.translations[he]=this.extend&&this.translations[he]?Object.assign(Object.assign({},Ne),this.translations[he]):Ne,this.updateLangs(),this.pending=!1},error:Ne=>{this.pending=!1}}),Oe}setTranslation(he,Oe,Ne=!1){Oe=this.compiler.compileTranslations(Oe,he),this.translations[he]=(Ne||this.extend)&&this.translations[he]?ee(this.translations[he],Oe):Oe,this.updateLangs(),this.onTranslationChange.emit({lang:he,translations:this.translations[he]})}getLangs(){return this.langs}addLangs(he){he.forEach(Oe=>{-1===this.langs.indexOf(Oe)&&this.langs.push(Oe)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(he,Oe,Ne){let Ye;if(Oe instanceof Array){let Qe={},Ct=!1;for(let Ot of Oe)Qe[Ot]=this.getParsedResult(he,Ot,Ne),x(Qe[Ot])&&(Ct=!0);if(Ct){const Ot=Oe.map(ln=>x(Qe[ln])?Qe[ln]:(0,re.of)(Qe[ln]));return(0,te.D)(Ot).pipe((0,f.U)(ln=>{let Lt={};return ln.forEach((Jt,Rt)=>{Lt[Oe[Rt]]=Jt}),Lt}))}return Qe}if(he&&(Ye=this.parser.interpolate(this.parser.getValue(he,Oe),Ne)),void 0===Ye&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Ye=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Oe),Ne)),void 0===Ye){let Qe={key:Oe,translateService:this};void 0!==Ne&&(Qe.interpolateParams=Ne),Ye=this.missingTranslationHandler.handle(Qe)}return void 0!==Ye?Ye:Oe}get(he,Oe){if(!I(he)||!he.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,T.b)(Ne=>x(Ne=this.getParsedResult(Ne,he,Oe))?Ne:(0,re.of)(Ne)));{let Ne=this.getParsedResult(this.translations[this.currentLang],he,Oe);return x(Ne)?Ne:(0,re.of)(Ne)}}getStreamOnTranslationChange(he,Oe){if(!I(he)||!he.length)throw new Error('Parameter "key" required');return(0,Q.z)((0,S.P)(()=>this.get(he,Oe)),this.onTranslationChange.pipe((0,Z.w)(Ne=>{const Ye=this.getParsedResult(Ne.translations,he,Oe);return"function"==typeof Ye.subscribe?Ye:(0,re.of)(Ye)})))}stream(he,Oe){if(!I(he)||!he.length)throw new Error('Parameter "key" required');return(0,Q.z)((0,S.P)(()=>this.get(he,Oe)),this.onLangChange.pipe((0,Z.w)(Ne=>{const Ye=this.getParsedResult(Ne.translations,he,Oe);return x(Ye)?Ye:(0,re.of)(Ye)})))}instant(he,Oe){if(!I(he)||!he.length)throw new Error('Parameter "key" required');let Ne=this.getParsedResult(this.translations[this.currentLang],he,Oe);if(x(Ne)){if(he instanceof Array){let Ye={};return he.forEach((Qe,Ct)=>{Ye[he[Ct]]=he[Ct]}),Ye}return he}return Ne}set(he,Oe,Ne=this.currentLang){this.translations[Ne][he]=this.compiler.compile(Oe,Ne),this.updateLangs(),this.onTranslationChange.emit({lang:Ne,translations:this.translations[Ne]})}changeLang(he){this.currentLang=he,this.onLangChange.emit({lang:he,translations:this.translations[he]}),null==this.defaultLang&&this.changeDefaultLang(he)}changeDefaultLang(he){this.defaultLang=he,this.onDefaultLangChange.emit({lang:he,translations:this.translations[he]})}reloadLang(he){return this.resetLang(he),this.getTranslation(he)}resetLang(he){this._translationRequests[he]=void 0,this.translations[he]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let he=window.navigator.languages?window.navigator.languages[0]:null;return he=he||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==he?(-1!==he.indexOf("-")&&(he=he.split("-")[0]),-1!==he.indexOf("_")&&(he=he.split("_")[0]),he):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let he=window.navigator.languages?window.navigator.languages[0]:null;return he=he||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,he}}return J.\u0275fac=function(he){return new(he||J)(t.\u0275\u0275inject(Re),t.\u0275\u0275inject(G),t.\u0275\u0275inject(ve),t.\u0275\u0275inject(z),t.\u0275\u0275inject(se),t.\u0275\u0275inject(ge),t.\u0275\u0275inject(He),t.\u0275\u0275inject(b),t.\u0275\u0275inject(O))},J.\u0275prov=t.\u0275\u0275defineInjectable({token:J,factory:J.\u0275fac}),J})(),K=(()=>{class J{static forRoot(he={}){return{ngModule:J,providers:[he.loader||{provide:G,useClass:$},he.compiler||{provide:ve,useClass:We},he.parser||{provide:z,useClass:oe},he.missingTranslationHandler||{provide:se,useClass:y},Re,{provide:He,useValue:he.isolate},{provide:ge,useValue:he.useDefaultLang},{provide:b,useValue:he.extend},{provide:O,useValue:he.defaultLanguage},p]}}static forChild(he={}){return{ngModule:J,providers:[he.loader||{provide:G,useClass:$},he.compiler||{provide:ve,useClass:We},he.parser||{provide:z,useClass:oe},he.missingTranslationHandler||{provide:se,useClass:y},{provide:He,useValue:he.isolate},{provide:ge,useValue:he.useDefaultLang},{provide:b,useValue:he.extend},{provide:O,useValue:he.defaultLanguage},p]}}}return J.\u0275fac=function(he){return new(he||J)},J.\u0275mod=t.\u0275\u0275defineNgModule({type:J}),J.\u0275inj=t.\u0275\u0275defineInjector({}),J})()},2490:(xe,q,c)=>{"use strict";var t,_;c.d(q,{rQ:()=>V,xC:()=>f});var x=c(6435),re=c(3753),te=c(8929),Q=c(5254),S=c(7625),W=c(13),P=c(2198),C=c(5943),L=c(5178);const E=["pdfViewerContainer"];function R(T,Z,G){T[Z]=G}function j(){return"undefined"==typeof window}j()||R(t||(t=c.t(C,2)),"verbosity",C.VerbosityLevel.INFOS);var M=(()=>{return(T=M||(M={}))[T.DISABLED=0]="DISABLED",T[T.ENABLED=1]="ENABLED",T[T.ENHANCED=2]="ENHANCED",M;var T})();let V=(()=>{class T{constructor(G,$){if(this.element=G,this.ngZone=$,this.isVisible=!1,this._cMapsUrl=void 0!==(t||(t=c.t(C,2)))?`https://unpkg.com/pdfjs-dist@${C.version}/cmaps/`:null,this._imageResourcesPath=void 0!==(t||(t=c.t(C,2)))?`https://unpkg.com/pdfjs-dist@${C.version}/web/images/`:null,this._renderText=!0,this._renderTextMode=M.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new te.xQ,this.afterLoadComplete=new x.EventEmitter,this.pageRendered=new x.EventEmitter,this.pageInitialized=new x.EventEmitter,this.textLayerRendered=new x.EventEmitter,this.onError=ne
1w x.EventEmitter,this.onProgress=new x.EventEmitter,this.pageChange=new x.EventEmitter(!0),j())return;let se;const y=C.version;se=window[`pdfWorkerSrc${y}`]||(window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${y}/legacy/build/pdf.worker.min.js`),R(C.GlobalWorkerOptions,"workerSrc",se)}set cMapsUrl(G){this._cMapsUrl=G}set page(G){const $=G=parseInt(G,10)||1;this._pdf&&(G=this.getValidPageNumber(G)),this._page=G,$!==G&&this.pageChange.emit(G)}set renderText(G){this._renderText=G}set renderTextMode(G){this._renderTextMode=G}set originalSize(G){this._originalSize=G}set showAll(G){this._showAll=G}set stickToPage(G){this._stickToPage=G}set zoom(G){G<=0||(this._zoom=G)}get zoom(){return this._zoom}set zoomScale(G){this._zoomScale=G}get zoomScale(){return this._zoomScale}set rotation(G){"number"==typeof G&&G%90==0?this._rotation=G:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(G){this._externalLinkTarget=G}set autoresize(G){this._canAutoResize=Boolean(G)}set fitToPage(G){this._fitToPage=Boolean(G)}set showBorders(G){this._showBorders=Boolean(G)}static getLinkTarget(G){switch(G){case"blank":return L.LinkTarget.BLANK;case"none":return L.LinkTarget.NONE;case"self":return L.LinkTarget.SELF;case"parent":return L.LinkTarget.PARENT;case"top":return L.LinkTarget.TOP}return null}ngAfterViewChecked(){if(this.isInitialized)return;const G=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=G?!1===this.isVisible&&null!=G&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}ngOnChanges(G){if(!j()&&this.isVisible)if("src"in G)this.loadPDF();else if(this._pdf){if("renderText"in G?(this.pdfViewer.textLayerMode=this._renderText?this._renderTextMode:M.DISABLED,this.resetPdfDocument()):"showAll"in G&&(this.setupViewer(),this.resetPdfDocument()),"page"in G){const{page:$}=G;if($.currentValue===this._latestScrolledPage)return;this.pdfViewer.scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){(0,Q.D)(this._pdf.getPage(this.pdfViewer.currentPageNumber)).pipe((0,S.R)(this.destroy$)).subscribe({next:G=>{const $=this._rotation+G.rotate,se=G.getViewport({scale:this._zoom,rotation:$}).width*T.CSS_UNITS;let y=this._zoom,k=!0;if(!this._originalSize||this._fitToPage&&se>this.pdfViewerContainer.nativeElement.clientWidth){const I=G.getViewport({scale:1,rotation:$});y=this.getScale(I.width,I.height),k=!this._stickToPage}this.pdfViewer._setScale(y,k)}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._latestScrolledPage=0,this._pdf.destroy(),this._pdf=null,this.pdfViewer.setDocument(null),this.pdfLinkService.setDocument(null,null),this.pdfFindController.setDocument(null))}getPDFLinkServiceConfig(){const G=T.getLinkTarget(this._externalLinkTarget);return G?{externalLinkTarget:G}:{}}initEventBus(){this.eventBus=function m(T,Z){const G=new T.EventBus;return function v(T,Z){(0,re.R)(T,"documentload").pipe((0,S.R)(Z)).subscribe(()=>{const G=document.createEvent("CustomEvent");G.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(G)}),(0,re.R)(T,"pagerendered").pipe((0,S.R)(Z)).subscribe(({pageNumber:G,cssTransform:$,source:se})=>{const y=document.createEvent("CustomEvent");y.initCustomEvent("pagerendered",!0,!0,{pageNumber:G,cssTransform:$}),se.div.dispatchEvent(y)}),(0,re.R)(T,"textlayerrendered").pipe((0,S.R)(Z)).subscribe(({pageNumber:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:G}),$.textLayerDiv.dispatchEvent(se)}),(0,re.R)(T,"pagechanging").pipe((0,S.R)(Z)).subscribe(({pageNumber:G,source:$})=>{const se=document.createEvent("UIEvents");se.initEvent("pagechanging",!0,!0),se.pageNumber=G,$.container.dispatchEvent(se)}),(0,re.R)(T,"pagesinit").pipe((0,S.R)(Z)).subscribe(({source:G})=>{const $=document.createEvent("CustomEvent");
1$.initCustomEvent("pagesinit",!0,!0,null),G.container.dispatchEvent($)}),(0,re.R)(T,"pagesloaded").pipe((0,S.R)(Z)).subscribe(({pagesCount:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("pagesloaded",!0,!0,{pagesCount:G}),$.container.dispatchEvent(se)}),(0,re.R)(T,"scalechange").pipe((0,S.R)(Z)).subscribe(({scale:G,presetValue:$,source:se})=>{const y=document.createEvent("UIEvents");y.initEvent("scalechange",!0,!0),y.scale=G,y.presetValue=$,se.container.dispatchEvent(y)}),(0,re.R)(T,"updateviewarea").pipe((0,S.R)(Z)).subscribe(({location:G,source:$})=>{const se=document.createEvent("UIEvents");se.initEvent("updateviewarea",!0,!0),se.location=G,$.container.dispatchEvent(se)}),(0,re.R)(T,"find").pipe((0,S.R)(Z)).subscribe(({source:G,type:$,query:se,phraseSearch:y,caseSensitive:k,highlightAll:I,findPrevious:H})=>{if(G===window)return;const ee=document.createEvent("CustomEvent");ee.initCustomEvent("find"+$,!0,!0,{query:se,phraseSearch:y,caseSensitive:k,highlightAll:I,findPrevious:H}),window.dispatchEvent(ee)}),(0,re.R)(T,"attachmentsloaded").pipe((0,S.R)(Z)).subscribe(({attachmentsCount:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:G}),$.container.dispatchEvent(se)}),(0,re.R)(T,"sidebarviewchanged").pipe((0,S.R)(Z)).subscribe(({view:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("sidebarviewchanged",!0,!0,{view:G}),$.outerContainer.dispatchEvent(se)}),(0,re.R)(T,"pagemode").pipe((0,S.R)(Z)).subscribe(({mode:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("pagemode",!0,!0,{mode:G}),$.pdfViewer.container.dispatchEvent(se)}),(0,re.R)(T,"namedaction").pipe((0,S.R)(Z)).subscribe(({action:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("namedaction",!0,!0,{action:G}),$.pdfViewer.container.dispatchEvent(se)}),(0,re.R)(T,"presentationmodechanged").pipe((0,S.R)(Z)).subscribe(({active:G,switchInProgress:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("presentationmodechanged",!0,!0,{active:G,switchInProgress:$}),window.dispatchEvent(se)}),(0,re.R)(T,"outlineloaded").pipe((0,S.R)(Z)).subscribe(({outlineCount:G,source:$})=>{const se=document.createEvent("CustomEvent");se.initCustomEvent("outlineloaded",!0,!0,{outlineCount:G}),$.container.dispatchEvent(se)})}(G,Z),G}(_||(_=c.t(L,2)),this.destroy$),(0,re.R)(this.eventBus,"pagerendered").pipe((0,S.R)(this.destroy$)).subscribe(G=>{this.pageRendered.emit(G)}),(0,re.R)(this.eventBus,"pagesinit").pipe((0,S.R)(this.destroy$)).subscribe(G=>{this.pageInitialized.emit(G)}),(0,re.R)(this.eventBus,"pagechanging").pipe((0,S.R)(this.destroy$)).subscribe(({pageNumber:G})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=G,this.pageChange.emit(G)},100)}),(0,re.R)(this.eventBus,"textlayerrendered").pipe((0,S.R)(this.destroy$)).subscribe(G=>{this.textLayerRendered.emit(G)})}initPDFServices(){this.pdfLinkService=new L.PDFLinkService(Object.assign({eventBus:this.eventBus},this.getPDFLinkServiceConfig())),this.pdfFindController=new L.PDFFindController({eventBus:this.eventBus,linkService:this.pdfLinkService})}getPDFOptions(){return{eventBus:this.eventBus,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfLinkService,textLayerMode:this._renderText?this._renderTextMode:M.DISABLED,findController:this.pdfFindController,renderer:"canvas",l10n:void 0,imageResourcesPath:this._imageResourcesPath}}setupViewer(){R(t||(t=c.t(C,2)),"disableTextLayer",!this._renderText),this.initPDFServices(),this.pdfViewer=this._showAll?new L.PDFViewer(this.getPDFOptions()):new L.PDFSinglePageViewer(this.getPDFOptions()),this.pdfLinkService.setViewer(this.pdfViewer),this.pdfViewer._currentPageNumber=this._page}getValidPageNumber(G){return G<1?1:G>this._pdf.numPages?this._pdf.numPages:G}getDocumentParams(){const G=typeof this.src;if(!this._cMapsUrl)return this.src;const $={cMapUrl:this._cMapsUrl,cMapPacked:!0,enableXfa:!0};return"string"===G?$.url=this.src:"object"===G&&(void 0!==this.src.byteLength?$.data=this.src:Object.assign($,this.src
1)),$}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.setupViewer(),this.loadingTask=C.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=$=>{this.onProgress.emit($)};const G=this.src;(0,Q.D)(this.loadingTask.promise).pipe((0,S.R)(this.destroy$)).subscribe({next:$=>{this._pdf=$,this.lastLoaded=G,this.afterLoadComplete.emit($),this.resetPdfDocument(),this.update()},error:$=>{this.lastLoaded=null,this.onError.emit($)}})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page),(0!==this._rotation||this.pdfViewer.pagesRotation!==this._rotation)&&setTimeout(()=>{this.pdfViewer.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{this.pdfViewer.currentPageNumber=this._page}),this.updateSize()}getScale(G,$){const se=this._showBorders?2*T.BORDER_WIDTH:0,y=this.pdfViewerContainer.nativeElement.clientWidth-se,k=this.pdfViewerContainer.nativeElement.clientHeight-se;if(0===k||0===$||0===y||0===G)return 1;let I=1;switch(this._zoomScale){case"page-fit":I=Math.min(k/$,y/G);break;case"page-height":I=k/$;break;default:I=y/G}return this._zoom*I/T.CSS_UNITS}resetPdfDocument(){this.pdfLinkService.setDocument(this._pdf,null),this.pdfFindController.setDocument(this._pdf),this.pdfViewer.setDocument(this._pdf)}initialize(){j()||!this.isVisible||(this.isInitialized=!0,this.initEventBus(),this.setupViewer())}setupResizeListener(){j()||this.ngZone.runOutsideAngular(()=>{(0,re.R)(window,"resize").pipe((0,W.b)(100),(0,P.h)(()=>this._canAutoResize&&!!this._pdf),(0,S.R)(this.destroy$)).subscribe(()=>{this.updateSize()})})}}return T.CSS_UNITS=96/72,T.BORDER_WIDTH=9,T.\u0275fac=function(G){return new(G||T)(x.\u0275\u0275directiveInject(x.ElementRef),x.\u0275\u0275directiveInject(x.NgZone))},T.\u0275cmp=x.\u0275\u0275defineComponent({type:T,selectors:[["pdf-viewer"]],viewQuery:function(G,$){if(1&G&&x.\u0275\u0275viewQuery(E,5),2&G){let se;x.\u0275\u0275queryRefresh(se=x.\u0275\u0275loadQuery())&&($.pdfViewerContainer=se.first)}},inputs:{src:"src",cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[x.\u0275\u0275NgOnChangesFeature],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(G,$){1&G&&(x.\u0275\u0275elementStart(0,"div",0,1),x.\u0275\u0275element(2,"div",2),x.\u0275\u0275elementEnd())},styles:[".ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%]    {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--zoom-factor: 1;--viewport-scale-factor: 1;--shadow: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=);--viewer-container-height: 0;--annotation-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-unfocused-field-background: url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\")}@media screen and (forced-colors: active){[_nghost-%COMP%]    {--pdfViewer-padding-bottom: 9px;--page-margin: 9px auto 0;--page-border: none;--spreadHorizontalWrapped-margin-LR: 4.5px}}[_nghost-%COMP%]     .textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}[_nghost-%COMP%]     .textLayer span, [_nghost-%COMP%]     .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%]     .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%]     .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%]     .textLayer .highlight.appended{position:initial}[_nghost-%COMP%]     .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%]     .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%]     .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%]     .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%]     .textLayer ::selection{background:blue}[_nghost-%COMP%]     .textLayer br::selection{background:transparent}[_nghost-%COMP%]     .textLayer .endOfContent{display:block;position:absolute;
1left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]     .textLayer .endOfContent.active{top:0}[_nghost-%COMP%]     .annotationLayer section{position:absolute;text-align:initial}[_nghost-%COMP%]     .annotationLayer .linkAnnotation>a, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{position:relative;top:0;left:0;z-index:-1}[_nghost-%COMP%]     .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:yellow;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%]     .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%]     .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%]     .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%]     .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%]     .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid black}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%]     .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%]     .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%]     .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%]     .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%]     .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%]     .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}[_nghost-%COMP%]     .annotationLayer .popup>*{font-size:9px}
1[_nghost-%COMP%]     .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%]     .annotationLayer .popupDate{display:inline-block;margin-left:5px}[_nghost-%COMP%]     .annotationLayer .popupContent{border-top:1px solid #333333;margin-top:2px;padding-top:2px}[_nghost-%COMP%]     .annotationLayer .richText>*{white-space:pre-wrap}[_nghost-%COMP%]     .annotationLayer .highlightAnnotation, [_nghost-%COMP%]     .annotationLayer .underlineAnnotation, [_nghost-%COMP%]     .annotationLayer .squigglyAnnotation, [_nghost-%COMP%]     .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%]     .annotationLayer .freeTextAnnotation, [_nghost-%COMP%]     .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%]     .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%]     .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%]     .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%]     .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%]     .annotationLayer .caretAnnotation, [_nghost-%COMP%]     .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%]     .annotationLayer .stampAnnotation, [_nghost-%COMP%]     .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%]     .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%]     .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%]     .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%]     .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%]     .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%]     .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%]     .xfaLayer ::selection{background:blue}[_nghost-%COMP%]     .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%]     .xfaContentarea{position:absolute}[_nghost-%COMP%]     .xfaPrintOnly{display:none}[_nghost-%COMP%]     .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%]     .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-feature-settings:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%]     .xfaLayer div{pointer-events:none}[_nghost-%COMP%]     .xfaLayer svg{pointer-events:none}[_nghost-%COMP%]     .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%]     .xfaLayer a{color:#00f}[_nghost-%COMP%]     .xfaRich li{margin-left:3em}[_nghost-%COMP%]     .xfaFont{color:#000;font-weight:400;font-feature-settings:\"kern\" off;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%]     .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%]     .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%]     .xfaLabel{height:100%;width:100%}[_nghost-%COMP%]     .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%]     .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%]     .xfaLeft>.xfaCaption, [_nghost-%COMP%]     .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%]     .xfaRight>.xfaCaption, [_nghost-%COMP%]     .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%]     .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%]     .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%]     .xfaTop>.xfaCaption, [_nghost-%COMP%]     .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%]     .xfaBottom>.xfaCaption, [_nghost-%COMP%]     .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%]     .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%]     .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%]     .xfaTextfield:focus, [_nghost-%COMP%]     .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%]     .xfaCheckbox:focus, [_nghost-%COMP%]     .xfaRadio:focus{outline:auto}[_nghost-%COMP%]     .xfaTextfield, [_nghost-%COMP%]     .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%]     .xfaTop>.xfaTextfield, [_nghost-%COMP%]     .xfaTop>.xfaSelect, [_nghost-%COMP%]     .xfaBottom>.xfaTextfield, [_nghost-%COMP%]     .xfaBottom>.xfaSelect{flex:0 1 auto}
1[_nghost-%COMP%]     .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%]     .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%]     .xfaCheckbox, [_nghost-%COMP%]     .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%]     .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%]     .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%]     .xfaLrTb, [_nghost-%COMP%]     .xfaRlTb, [_nghost-%COMP%]     .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%]     .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%]     .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%]     .xfaTb>div{justify-content:left}[_nghost-%COMP%]     .xfaPosition{position:relative}[_nghost-%COMP%]     .xfaArea{position:relative}[_nghost-%COMP%]     .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%]     .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%]     .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%]     .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%]     .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%]     .xfaNonInteractive input, [_nghost-%COMP%]     .xfaNonInteractive textarea, [_nghost-%COMP%]     .xfaDisabled input, [_nghost-%COMP%]     .xfaDisabled textarea, [_nghost-%COMP%]     .xfaReadOnly input, [_nghost-%COMP%]     .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%]     .xfaTextfield, [_nghost-%COMP%]     .xfaSelect{background:transparent}[_nghost-%COMP%]     .xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}[_nghost-%COMP%]     .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%]     .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%]     .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;border-image:var(--shadow) 9 9 repeat;background-color:#fff}[_nghost-%COMP%]     .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%]     .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%]     .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%]     .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%]     .pdfViewer.scrollHorizontal, [_nghost-%COMP%]     .pdfViewer.scrollWrapped, [_nghost-%COMP%]     .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%]     .pdfViewer.scrollHorizontal, [_nghost-%COMP%]     .spread{white-space:nowrap}[_nghost-%COMP%]     .pdfViewer.removePageBorders, [_nghost-%COMP%]     .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%]     .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%]     .spread .page, [_nghost-%COMP%]     .spread .dummyPage, [_nghost-%COMP%]     .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%]     .pdfViewer.scrollWrapped .page, [_nghost-%COMP%]     .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%]     .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%]     .spread .page, [_nghost-%COMP%]     .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%]     .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%]     .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%]     .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%]     .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%]     .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%]     .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%]     .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAF
1FgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%]     .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%]     .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%]     .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%]     .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%]     .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}"]}),T})(),f=(()=>{class T{}return T.\u0275fac=function(G){return new(G||T)},T.\u0275mod=x.\u0275\u0275defineNgModule({type:T}),T.\u0275inj=x.\u0275\u0275defineInjector({}),T})()},5861:(xe,q,c)=>{"use strict";function t(x,re,te,Q,S,W,P){try{var C=x[W](P),L=C.value}catch(E){return void te(E)}C.done?re(L):Promise.resolve(L).then(Q,S)}function _(x){return function(){var re=this,te=arguments;return new Promise(function(Q,S){var W=x.apply(re,te);function P(L){t(W,Q,S,P,C,"next",L)}function C(L){t(W,Q,S,P,C,"throw",L)}P(void 0)})}}c.d(q,{Z:()=>_})},7582:(xe,q,c)=>{"use strict";c.d(q,{ZT:()=>_,gn:()=>te,mG:()=>E});var t=function(b,p){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,N){A.__proto__=N}||function(A,N){for(var K in N)Object.prototype.hasOwnProperty.call(N,K)&&(A[K]=N[K])})(b,p)};function _(b,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function A(){this.constructor=b}t(b,p),b.prototype=null===p?Object.create(p):(A.prototype=p.prototype,new A)}function te(b,p,A,N){var ie,K=arguments.length,J=K<3?p:null===N?N=Object.getOwnPropertyDescriptor(p,A):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)J=Reflect.decorate(b,p,A,N);else for(var he=b.length-1;he>=0;he--)(ie=b[he])&&(J=(K<3?ie(J):K>3?ie(p,A,J):ie(p,A))||J);return K>3&&J&&Object.defineProperty(p,A,J),J}function E(b,p,A,N){return new(A||(A=Promise))(function(J,ie){function he(Ye){try{Ne(N.next(Ye))}catch(Qe){ie(Qe)}}function Oe(Ye){try{Ne(N.throw(Ye))}catch(Qe){ie(Qe)}}function Ne(Ye){Ye.done?J(Ye.value):function K(J){return J instanceof A?J:new A(function(ie){ie(J)})}(Ye.value).then(he,Oe)}Ne((N=N.apply(b,p||[])).next())})}"function"==typeof SuppressedError&&SuppressedError}},xe=>{xe(xe.s=423)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.