import{a as nn}from"./chunk-FK6H3RFT.js";import{a as K,b as Re,c as L5,d as rd,g as O5,h as Dh}from"./chunk-KRVUSFHP.js";function k5(e,t){return Object.is(e,t)}var Wn=null,Ch=!1,xh=1,as=Symbol("SIGNAL");function Et(e){let t=Wn;return Wn=e,t}function R5(){return Wn}var od={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function By(e){if(Ch)throw new Error("");if(Wn===null)return;Wn.consumerOnSignalRead(e);let t=Wn.nextProducerIndex++;if(Eh(Wn),t<Wn.producerNode.length&&Wn.producerNode[t]!==e&&id(Wn)){let n=Wn.producerNode[t];_h(n,Wn.producerIndexOfThis[t])}Wn.producerNode[t]!==e&&(Wn.producerNode[t]=e,Wn.producerIndexOfThis[t]=id(Wn)?V5(e,Wn,t):0),Wn.producerLastReadVersion[t]=e.version}function pM(){xh++}function F5(e){if(!(id(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===xh)){if(!e.producerMustRecompute(e)&&!Uy(e)){e.dirty=!1,e.lastCleanEpoch=xh;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=xh}}function j5(e){if(e.liveConsumerNode===void 0)return;let t=Ch;Ch=!0;try{for(let n of e.liveConsumerNode)n.dirty||mM(n)}finally{Ch=t}}function B5(){return Wn?.consumerAllowSignalWrites!==!1}function mM(e){e.dirty=!0,j5(e),e.consumerMarkedDirty?.(e)}function Sh(e){return e&&(e.nextProducerIndex=0),Et(e)}function Vy(e,t){if(Et(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(id(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)_h(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Uy(e){Eh(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(F5(n),r!==n.version))return!0}return!1}function Hy(e){if(Eh(e),id(e))for(let t=0;t<e.producerNode.length;t++)_h(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function V5(e,t,n){if(U5(e),e.liveConsumerNode.length===0&&H5(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=V5(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function _h(e,t){if(U5(e),e.liveConsumerNode.length===1&&H5(e))for(let r=0;r<e.producerNode.length;r++)_h(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Eh(i),i.producerIndexOfThis[r]=t}}function id(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Eh(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function U5(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function H5(e){return e.producerNode!==void 0}function $5(e){let t=Object.create(gM);t.computation=e;let n=()=>{if(F5(t),By(t),t.value===Ih)throw t.error;return t.value};return n[as]=t,n}var Fy=Symbol("UNSET"),jy=Symbol("COMPUTING"),Ih=Symbol("ERRORED"),gM=Re(K({},od),{value:Fy,dirty:!0,error:null,equal:k5,producerMustRecompute(e){return e.value===Fy||e.value===jy},producerRecomputeValue(e){if(e.value===jy)throw new Error("Detected cycle in computations.");let t=e.value;e.value=jy;let n=Sh(e),r;try{r=e.computation()}catch(i){r=Ih,e.error=i}finally{Vy(e,n)}if(t!==Fy&&t!==Ih&&r!==Ih&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function vM(){throw new Error}var z5=vM;function q5(){z5()}function W5(e){z5=e}var yM=null;function G5(e){let t=Object.create(Z5);t.value=e;let n=()=>(By(t),t.value);return n[as]=t,n}function $y(e,t){B5()||q5(),e.equal(e.value,t)||(e.value=t,bM(e))}function Y5(e,t){B5()||q5(),$y(e,t(e.value))}var Z5=Re(K({},od),{equal:k5,value:void 0});function bM(e){e.version++,pM(),j5(e),yM?.()}function Xe(e){return typeof e=="function"}function nc(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ah=nc(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function qa(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _n=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(Xe(r))try{r()}catch(o){t=o instanceof Ah?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Q5(o)}catch(s){t=t??[],s instanceof Ah?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ah(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Q5(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&qa(n,t)}remove(t){let{_finalizers:n}=this;n&&qa(n,t),t instanceof e&&t._removeParent(this)}};_n.EMPTY=(()=>{let e=new _n;return e.closed=!0,e})();var zy=_n.EMPTY;function Nh(e){return e instanceof _n||e&&"closed"in e&&Xe(e.remove)&&Xe(e.add)&&Xe(e.unsubscribe)}function Q5(e){Xe(e)?e():e.unsubscribe()}var Qi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var rc={setTimeout(e,t,...n){let{delegate:r}=rc;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=rc;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mh(e){rc.setTimeout(()=>{let{onUnhandledError:t}=Qi;if(t)t(e);else throw e})}function us(){}var K5=qy("C",void 0,void 0);function J5(e){return qy("E",void 0,e)}function X5(e){return qy("N",e,void 0)}function qy(e,t,n){return{kind:e,value:t,error:n}}var Wa=null;function ic(e){if(Qi.useDeprecatedSynchronousErrorHandling){let t=!Wa;if(t&&(Wa={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Wa;if(Wa=null,n)throw r}}else e()}function eD(e){Qi.useDeprecatedSynchronousErrorHandling&&Wa&&(Wa.errorThrown=!0,Wa.error=e)}var Ga=class extends _n{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Nh(t)&&t.add(this)):this.destination=CM}static create(t,n,r){return new Ki(t,n,r)}next(t){this.isStopped?Gy(X5(t),this):this._next(t)}error(t){this.isStopped?Gy(J5(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Gy(K5,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},wM=Function.prototype.bind;function Wy(e,t){return wM.call(e,t)}var Yy=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Th(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Th(r)}else Th(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Th(n)}}},Ki=class extends Ga{constructor(t,n,r){super();let i;if(Xe(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Qi.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Wy(t.next,o),error:t.error&&Wy(t.error,o),complete:t.complete&&Wy(t.complete,o)}):i=t}this.destination=new Yy(i)}};function Th(e){Qi.useDeprecatedSynchronousErrorHandling?eD(e):Mh(e)}function DM(e){throw e}function Gy(e,t){let{onStoppedNotification:n}=Qi;n&&rc.setTimeout(()=>n(e,t))}var CM={closed:!0,next:us,error:DM,complete:us};var oc=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ar(e){return e}function sd(...e){return Zy(e)}function Zy(e){return e.length===0?ar:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var It=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=IM(n)?n:new Ki(n,r,i);return ic(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=tD(r),new r((i,o)=>{let s=new Ki({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[oc](){return this}pipe(...n){return Zy(n)(this)}toPromise(n){return n=tD(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function tD(e){var t;return(t=e??Qi.Promise)!==null&&t!==void 0?t:Promise}function xM(e){return e&&Xe(e.next)&&Xe(e.error)&&Xe(e.complete)}function IM(e){return e&&e instanceof Ga||xM(e)&&Nh(e)}function Qy(e){return Xe(e?.lift)}function Ke(e){return t=>{if(Qy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(e,t,n,r,i){return new Ky(e,t,n,r,i)}var Ky=class extends Ga{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function sc(){return Ke((e,t)=>{let n=null;e._refCount++;let r=nt(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ac=class extends It{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Qy(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new _n;let n=this.getSubject();t.add(this.source.subscribe(nt(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=_n.EMPTY)}return t}refCount(){return sc()(this)}};var nD=nc(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var kt=(()=>{class e extends It{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ph(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new nD}next(n){ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ic(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?zy:(this.currentObservers=null,o.push(n),new _n(()=>{this.currentObservers=null,qa(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new It;return n.source=this,n}}return e.create=(t,n)=>new Ph(t,n),e})(),Ph=class extends kt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:zy}};var Wt=class extends kt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ad={now(){return(ad.delegate||Date).now()},delegate:void 0};var cs=class extends kt{constructor(t=1/0,n=1/0,r=ad){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=n.now(),a=0;for(let u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}}};var Lh=class extends _n{constructor(t,n){super()}schedule(t,n=0){return this}};var ud={setInterval(e,t,...n){let{delegate:r}=ud;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=ud;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Oh=class extends Lh{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return ud.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&ud.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,qa(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var uc=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};uc.now=ad.now;var kh=class extends uc{constructor(t,n=uc.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ya=new kh(Oh),rD=Ya;var ur=new It(e=>e.complete());function Rh(e){return e&&Xe(e.schedule)}function Jy(e){return e[e.length-1]}function Fh(e){return Xe(Jy(e))?e.pop():void 0}function No(e){return Rh(Jy(e))?e.pop():void 0}function iD(e,t){return typeof Jy(e)=="number"?e.pop():t}function jV(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function cd(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Ji(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function sD(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(h){try{d(r.next(h))}catch(g){s(g)}}function u(h){try{d(r.throw(h))}catch(g){s(g)}}function d(h){h.done?o(h.value):i(h.value).then(a,u)}d((r=r.apply(e,t||[])).next())})}function oD(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Za(e){return this instanceof Za?(this.v=e,this):new Za(e)}function aD(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(y){r[y]&&(i[y]=function(m){return new Promise(function(C,D){o.push([y,m,C,D])>1||a(y,m)})})}function a(y,m){try{u(r[y](m))}catch(C){g(o[0][3],C)}}function u(y){y.value instanceof Za?Promise.resolve(y.value.v).then(d,h):g(o[0][2],y)}function d(y){a("next",y)}function h(y){a("throw",y)}function g(y,m){y(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function uD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof oD=="function"?oD(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(d){o({value:d,done:a})},s)}}var cc=e=>e&&typeof e.length=="number"&&typeof e!="function";function jh(e){return Xe(e?.then)}function Bh(e){return Xe(e[oc])}function Vh(e){return Symbol.asyncIterator&&Xe(e?.[Symbol.asyncIterator])}function Uh(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function SM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Hh=SM();function $h(e){return Xe(e?.[Hh])}function zh(e){return aD(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Za(n.read());if(i)return yield Za(void 0);yield yield Za(r)}}finally{n.releaseLock()}})}function qh(e){return Xe(e?.getReader)}function Rt(e){if(e instanceof It)return e;if(e!=null){if(Bh(e))return _M(e);if(cc(e))return EM(e);if(jh(e))return AM(e);if(Vh(e))return cD(e);if($h(e))return NM(e);if(qh(e))return MM(e)}throw Uh(e)}function _M(e){return new It(t=>{let n=e[oc]();if(Xe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function EM(e){return new It(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function AM(e){return new It(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mh)})}function NM(e){return new It(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function cD(e){return new It(t=>{TM(e,t).catch(n=>t.error(n))})}function MM(e){return cD(zh(e))}function TM(e,t){var n,r,i,o;return sD(this,void 0,void 0,function*(){try{for(n=uD(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Ur(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Wh(e,t=0){return Ke((n,r)=>{n.subscribe(nt(r,i=>Ur(r,e,()=>r.next(i),t),()=>Ur(r,e,()=>r.complete(),t),i=>Ur(r,e,()=>r.error(i),t)))})}function Gh(e,t=0){return Ke((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function lD(e,t){return Rt(e).pipe(Gh(t),Wh(t))}function dD(e,t){return Rt(e).pipe(Gh(t),Wh(t))}function fD(e,t){return new It(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function hD(e,t){return new It(n=>{let r;return Ur(n,t,()=>{r=e[Hh](),Ur(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>Xe(r?.return)&&r.return()})}function Yh(e,t){if(!e)throw new Error("Iterable cannot be null");return new It(n=>{Ur(n,t,()=>{let r=e[Symbol.asyncIterator]();Ur(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function pD(e,t){return Yh(zh(e),t)}function mD(e,t){if(e!=null){if(Bh(e))return lD(e,t);if(cc(e))return fD(e,t);if(jh(e))return dD(e,t);if(Vh(e))return Yh(e,t);if($h(e))return hD(e,t);if(qh(e))return pD(e,t)}throw Uh(e)}function Dt(e,t){return t?mD(e,t):Rt(e)}function qe(...e){let t=No(e);return Dt(e,t)}function Ci(e,t){let n=Xe(e)?e:()=>e,r=i=>i.error(n());return new It(t?i=>t.schedule(r,0,i):r)}function lc(e){return!!e&&(e instanceof It||Xe(e.lift)&&Xe(e.subscribe))}var Xi=nc(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function PM(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=new Ki({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Xi)}});e.subscribe(o)})}function gD(e){return e instanceof Date&&!isNaN(e)}function _e(e,t){return Ke((n,r)=>{let i=0;n.subscribe(nt(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:LM}=Array;function OM(e,t){return LM(t)?e(...t):e(t)}function Ks(e){return _e(t=>OM(e,t))}var{isArray:kM}=Array,{getPrototypeOf:RM,prototype:FM,keys:jM}=Object;function Zh(e){if(e.length===1){let t=e[0];if(kM(t))return{args:t,keys:null};if(BM(t)){let n=jM(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function BM(e){return e&&typeof e=="object"&&RM(e)===FM}function Qh(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Qa(...e){let t=No(e),n=Fh(e),{args:r,keys:i}=Zh(e);if(r.length===0)return Dt([],t);let o=new It(VM(r,t,i?s=>Qh(i,s):ar));return n?o.pipe(Ks(n)):o}function VM(e,t,n=ar){return r=>{vD(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u<i;u++)vD(t,()=>{let d=Dt(e[u],t),h=!1;d.subscribe(nt(r,g=>{o[u]=g,h||(h=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function vD(e,t,n){e?Ur(n,e,t):t()}function Kh(e,t,n,r,i,o,s,a){let u=[],d=0,h=0,g=!1,y=()=>{g&&!u.length&&!d&&t.complete()},m=D=>d<r?C(D):u.push(D),C=D=>{o&&t.next(D),d++;let N=!1;Rt(n(D,h++)).subscribe(nt(t,I=>{i?.(I),o?m(I):t.next(I)},()=>{N=!0},void 0,()=>{if(N)try{for(d--;u.length&&d<r;){let I=u.shift();s?Ur(t,s,()=>C(I)):C(I)}y()}catch(I){t.error(I)}}))};return e.subscribe(nt(t,m,()=>{g=!0,y()})),()=>{a?.()}}function rn(e,t,n=1/0){return Xe(t)?rn((r,i)=>_e((o,s)=>t(r,o,i,s))(Rt(e(r,i))),n):(typeof t=="number"&&(n=t),Ke((r,i)=>Kh(r,i,e,n)))}function Js(e=1/0){return rn(ar,e)}function yD(){return Js(1)}function Xs(...e){return yD()(Dt(e,No(e)))}function Jh(e){return new It(t=>{Rt(e()).subscribe(t)})}function Xy(...e){let t=Fh(e),{args:n,keys:r}=Zh(e),i=new It(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,d=s;for(let h=0;h<s;h++){let g=!1;Rt(n[h]).subscribe(nt(o,y=>{g||(g=!0,d--),a[h]=y},()=>u--,void 0,()=>{(!u||!g)&&(d||o.next(r?Qh(r,a):a),o.complete())}))}});return t?i.pipe(Ks(t)):i}var UM=["addListener","removeListener"],HM=["addEventListener","removeEventListener"],$M=["on","off"];function e0(e,t,n,r){if(Xe(n)&&(r=n,n=void 0),r)return e0(e,t,n).pipe(Ks(r));let[i,o]=WM(e)?HM.map(s=>a=>e[s](t,a,n)):zM(e)?UM.map(bD(e,t)):qM(e)?$M.map(bD(e,t)):[];if(!i&&cc(e))return rn(s=>e0(s,t,n))(Rt(e));if(!i)throw new TypeError("Invalid event target");return new It(s=>{let a=(...u)=>s.next(1<u.length?u:u[0]);return i(a),()=>o(a)})}function bD(e,t){return n=>r=>e[n](t,r)}function zM(e){return Xe(e.addListener)&&Xe(e.removeListener)}function qM(e){return Xe(e.on)&&Xe(e.off)}function WM(e){return Xe(e.addEventListener)&&Xe(e.removeEventListener)}function Ka(e=0,t,n=rD){let r=-1;return t!=null&&(Rh(t)?n=t:r=t),new It(i=>{let o=gD(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function GM(...e){let t=No(e),n=iD(e,1/0),r=e;return r.length?r.length===1?Rt(r[0]):Js(n)(Dt(r,t)):ur}function Gt(e,t){return Ke((n,r)=>{let i=0;n.subscribe(nt(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Jn(e){return Ke((t,n)=>{let r=null,i=!1,o;r=t.subscribe(nt(n,void 0,void 0,s=>{o=Rt(e(s,Jn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Xh(e,t,n,r,i){return(o,s)=>{let a=n,u=t,d=0;o.subscribe(nt(s,h=>{let g=d++;u=a?e(u,h,g):(a=!0,h),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function wD(e,t){return Ke(Xh(e,t,arguments.length>=2,!1,!0))}var YM=(e,t)=>(e.push(t),e);function xi(){return Ke((e,t)=>{wD(YM,[])(e).subscribe(t)})}function DD(e,t){return sd(xi(),rn(n=>e(n)),t?Ks(t):ar)}function ZM(e){return DD(Qa,e)}function ls(e,t){return Xe(t)?rn(e,t,1):rn(e,1)}function CD(e,t=Ya){return Ke((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let d=o;o=null,r.next(d)}};function u(){let d=s+e,h=t.now();if(h<d){i=this.schedule(void 0,d-h),r.add(i);return}a()}n.subscribe(nt(r,d=>{o=d,s=t.now(),i||(i=t.schedule(u,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function ea(e){return Ke((t,n)=>{let r=!1;t.subscribe(nt(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function cr(e){return e<=0?()=>ur:Ke((t,n)=>{let r=0;t.subscribe(nt(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function xD(){return Ke((e,t)=>{e.subscribe(nt(t,us))})}function ld(e){return _e(()=>e)}function t0(e,t){return t?n=>Xs(t.pipe(cr(1),xD()),n.pipe(t0(e))):rn((n,r)=>Rt(e(n,r)).pipe(cr(1),ld(n)))}function ep(e,t=Ya){let n=Ka(e,t);return t0(()=>n)}function n0(e,t){return Ke((n,r)=>{let i=new Set;n.subscribe(nt(r,o=>{let s=e?e(o):o;i.has(s)||(i.add(s),r.next(o))})),t&&Rt(t).subscribe(nt(r,()=>i.clear(),us))})}function si(e,t=ar){return e=e??QM,Ke((n,r)=>{let i,o=!0;n.subscribe(nt(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function QM(e,t){return e===t}function tp(e=KM){return Ke((t,n)=>{let r=!1;t.subscribe(nt(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function KM(){return new Xi}function JM(e,t=1/0,n){return t=(t||0)<1?1/0:t,Ke((r,i)=>Kh(r,i,e,t,void 0,!0,n))}function eo(e){return Ke((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function to(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Gt((i,o)=>e(i,o,r)):ar,cr(1),n?ea(t):tp(()=>new Xi))}function dc(e){return e<=0?()=>ur:Ke((t,n)=>{let r=[];t.subscribe(nt(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function r0(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Gt((i,o)=>e(i,o,r)):ar,dc(1),n?ea(t):tp(()=>new Xi))}var XM=rn;function eT(...e){let t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return _e(n=>{let r=n;for(let i=0;i<t;i++){let o=r?.[e[i]];if(typeof o<"u")r=o;else return}return r})}function i0(e,t){return Ke(Xh(e,t,arguments.length>=2,!0))}function ID(e={}){let{connector:t=()=>new kt,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,u,d=0,h=!1,g=!1,y=()=>{a?.unsubscribe(),a=void 0},m=()=>{y(),s=u=void 0,h=g=!1},C=()=>{let D=s;m(),D?.unsubscribe()};return Ke((D,N)=>{d++,!g&&!h&&y();let I=u=u??t();N.add(()=>{d--,d===0&&!g&&!h&&(a=o0(C,i))}),I.subscribe(N),!s&&d>0&&(s=new Ki({next:P=>I.next(P),error:P=>{g=!0,y(),a=o0(m,n,P),I.error(P)},complete:()=>{h=!0,y(),a=o0(m,r),I.complete()}}),Rt(D).subscribe(s))})(o)}}function o0(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ki({next:()=>{r.unsubscribe(),e()}});return Rt(t(...n)).subscribe(r)}function s0(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,ID({connector:()=>new cs(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function SD(e){return Gt((t,n)=>e<=n)}function a0(...e){let t=No(e);return Ke((n,r)=>{(t?Xs(e,n,t):Xs(e,n)).subscribe(r)})}function Mt(e,t){return Ke((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(nt(r,u=>{i?.unsubscribe();let d=0,h=o++;Rt(e(u,h)).subscribe(i=nt(r,g=>r.next(t?t(u,g,h,d++):g),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function np(e){return Ke((t,n)=>{Rt(e).subscribe(nt(n,()=>n.complete(),us)),!n.closed&&t.subscribe(n)})}function u0(e,t=!1){return Ke((n,r)=>{let i=0;n.subscribe(nt(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function Bt(e,t,n){let r=Xe(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ke((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(nt(o,u=>{var d;(d=r.next)===null||d===void 0||d.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var d;a=!1,(d=r.error)===null||d===void 0||d.call(r,u),o.error(u)},()=>{var u,d;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(d=r.finalize)===null||d===void 0||d.call(r)}))}):ar}function _D(e,t){return Ke((n,r)=>{let{leading:i=!0,trailing:o=!1}=t??{},s=!1,a=null,u=null,d=!1,h=()=>{u?.unsubscribe(),u=null,o&&(m(),d&&r.complete())},g=()=>{u=null,d&&r.complete()},y=C=>u=Rt(e(C)).subscribe(nt(r,h,g)),m=()=>{if(s){s=!1;let C=a;a=null,r.next(C),!d&&y(C)}};n.subscribe(nt(r,C=>{s=!0,a=C,!(u&&!u.closed)&&(i?m():y(C))},()=>{d=!0,!(o&&s&&u&&!u.closed)&&r.complete()}))})}function tT(e,t=Ya,n){let r=Ka(e,t);return _D(()=>r,n)}var bC="https://g.co/ng/security#xss",$e=class extends Error{constructor(t,n){super(qp(t,n)),this.code=t}};function qp(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function xd(e){return{toString:e}.toString()}var rp="__parameters__";function nT(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function wC(e,t,n){return xd(()=>{let r=nT(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,d,h){let g=u.hasOwnProperty(rp)?u[rp]:Object.defineProperty(u,rp,{value:[]})[rp];for(;g.length<=h;)g.push(null);return(g[h]=g[h]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var lr=globalThis;function un(e){for(let t in e)if(e[t]===un)return t;throw Error("Could not find renamed property on target object.")}function rT(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Nr(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Nr).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
`);return n===-1?t:t.substring(0,n)}function C0(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var iT=un({__forward_ref__:un});function yr(e){return e.__forward_ref__=yr,e.toString=function(){return Nr(this())},e}function dr(e){return DC(e)?e():e}function DC(e){return typeof e=="function"&&e.hasOwnProperty(iT)&&e.__forward_ref__===yr}function Ae(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Tr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Wp(e){return ED(e,xC)||ED(e,IC)}function CC(e){return Wp(e)!==null}function ED(e,t){return e.hasOwnProperty(t)?e[t]:null}function oT(e){let t=e&&(e[xC]||e[IC]);return t||null}function AD(e){return e&&(e.hasOwnProperty(ND)||e.hasOwnProperty(sT))?e[ND]:null}var xC=un({\u0275prov:un}),ND=un({\u0275inj:un}),IC=un({ngInjectableDef:un}),sT=un({ngInjectorDef:un}),He=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=Ae({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function SC(e){return e&&!!e.\u0275providers}var aT=un({\u0275cmp:un}),uT=un({\u0275dir:un}),cT=un({\u0275pipe:un}),lT=un({\u0275mod:un}),gp=un({\u0275fac:un}),fd=un({__NG_ELEMENT_ID__:un}),MD=un({__NG_ENV_ID__:un});function Po(e){return typeof e=="string"?e:e==null?"":String(e)}function dT(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Po(e)}function fT(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new $e(-200,e)}function S1(e,t){throw new $e(-201,!1)}var Ct=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ct||{}),x0;function _C(){return x0}function Hr(e){let t=x0;return x0=e,t}function EC(e,t,n){let r=Wp(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&Ct.Optional)return null;if(t!==void 0)return t;S1(e,"Injector")}var hT={},md=hT,I0="__NG_DI_FLAG__",vp="ngTempTokenPath",pT="ngTokenPath",mT=/\n/gm,gT="\u0275",TD="__source",gc;function vT(){return gc}function ta(e){let t=gc;return gc=e,t}function yT(e,t=Ct.Default){if(gc===void 0)throw new $e(-203,!1);return gc===null?EC(e,void 0,t):gc.get(e,t&Ct.Optional?null:void 0,t)}function Ne(e,t=Ct.Default){return(_C()||yT)(dr(e),t)}function xe(e,t=Ct.Default){return Ne(e,Gp(t))}function Gp(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function S0(e){let t=[];for(let n=0;n<e.length;n++){let r=dr(e[n]);if(Array.isArray(r)){if(r.length===0)throw new $e(900,!1);let i,o=Ct.Default;for(let s=0;s<r.length;s++){let a=r[s],u=bT(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}t.push(Ne(i,o))}else t.push(Ne(r))}return t}function AC(e,t){return e[I0]=t,e.prototype[I0]=t,e}function bT(e){return e[I0]}function wT(e,t,n,r){let i=e[vp];throw t[TD]&&i.unshift(t[TD]),e.message=DT(`
`+e.message,i,n,r),e[pT]=i,e[vp]=null,e}function DT(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==gT?e.slice(2):e;let i=Nr(t);if(Array.isArray(t))i=t.map(Nr).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Nr(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(mT,`
  `)}`}var Yp=AC(wC("Optional"),8);var _1=AC(wC("SkipSelf"),4);function eu(e,t){let n=e.hasOwnProperty(gp);return n?e[gp]:null}function CT(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function xT(e){return e.flat(Number.POSITIVE_INFINITY)}function E1(e,t){e.forEach(n=>Array.isArray(n)?E1(n,t):t(n))}function NC(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function yp(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function IT(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function ST(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Zp(e,t,n){let r=Id(e,t);return r>=0?e[r|1]=n:(r=~r,ST(e,r,t,n)),r}function c0(e,t){let n=Id(e,t);if(n>=0)return e[n|1]}function Id(e,t){return _T(e,t,1)}function _T(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var ds={},$r=[],yc=new He(""),MC=new He("",-1),TC=new He(""),bp=class{get(t,n=md){if(n===md){let r=new Error(`NullInjectorError: No provider for ${Nr(t)}!`);throw r.name="NullInjectorError",r}return n}},PC=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(PC||{}),Lo=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Lo||{}),ia=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ia||{});function ET(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function _0(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];AT(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function LC(e){return e===3||e===4||e===6}function AT(e){return e.charCodeAt(0)===64}function gd(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?PD(e,n,i,null,t[++r]):PD(e,n,i,null,null))}}return e}function PD(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var OC="ng-template";function NT(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&ET(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(A1(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function A1(e){return e.type===4&&e.value!==OC}function MT(e,t,n){let r=e.type===4&&!n?OC:e.value;return t===r}function TT(e,t,n){let r=4,i=e.attrs,o=i!==null?OT(i):0,s=!1;for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="number"){if(!s&&!no(r)&&!no(u))return!1;if(s&&no(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!MT(e,u,n)||u===""&&t.length===1){if(no(r))return!1;s=!0}}else if(r&8){if(i===null||!NT(e,i,u,n)){if(no(r))return!1;s=!0}}else{let d=t[++a],h=PT(u,i,A1(e),n);if(h===-1){if(no(r))return!1;s=!0;continue}if(d!==""){let g;if(h>o?g="":g=i[h+1].toLowerCase(),r&2&&d!==g){if(no(r))return!1;s=!0}}}}return no(r)||s}function no(e){return(e&1)===0}function PT(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return kT(t,e)}function kC(e,t,n=!1){for(let r=0;r<t.length;r++)if(TT(e,t[r],n))return!0;return!1}function LT(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if(!(n&1))return t[n+1]}return null}function OT(e){for(let t=0;t<e.length;t++){let n=e[t];if(LC(n))return t}return e.length}function kT(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function RT(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function LD(e,t){return e?":not("+t.trim()+")":t}function FT(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!no(s)&&(t+=LD(o,i),i=""),r=s,o=o||!no(r);n++}return i!==""&&(t+=LD(o,i)),t}function jT(e){return e.map(FT).join(",")}function BT(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!no(i))break;i=o}r++}return{attrs:t,classes:n}}function RC(e){return xd(()=>{let t=VC(e),n=Re(K({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===PC.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Lo.Emulated,styles:e.styles||$r,_:null,schemas:e.schemas||null,tView:null,id:""});UC(n);let r=e.dependencies;return n.directiveDefs=kD(r,!1),n.pipeDefs=kD(r,!0),n.id=HT(n),n})}function VT(e){return oa(e)||N1(e)}function UT(e){return e!==null}function Pr(e){return xd(()=>({type:e.type,bootstrap:e.bootstrap||$r,declarations:e.declarations||$r,imports:e.imports||$r,exports:e.exports||$r,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function OD(e,t){if(e==null)return ds;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=ia.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==ia.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Yt(e){return xd(()=>{let t=VC(e);return UC(t),t})}function ca(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function oa(e){return e[aT]||null}function N1(e){return e[uT]||null}function FC(e){return e[cT]||null}function jC(e){let t=oa(e)||N1(e)||FC(e);return t!==null?t.standalone:!1}function BC(e,t){let n=e[lT]||null;if(!n&&t===!0)throw new Error(`Type ${Nr(e)} does not have '\u0275mod' property.`);return n}function VC(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ds,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||$r,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:OD(e.inputs,t),outputs:OD(e.outputs),debugInfo:null}}function UC(e){e.features?.forEach(t=>t(e))}function kD(e,t){if(!e)return null;let n=t?FC:VT;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(UT)}function HT(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Qp(e){return{\u0275providers:e}}function $T(...e){return{\u0275providers:HC(!0,e),\u0275fromNgModule:!0}}function HC(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return E1(t,s=>{let a=s;E0(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&$C(i,o),n}function $C(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];M1(i,o=>{t(o,r)})}}function E0(e,t,n,r){if(e=dr(e),!e)return!1;let i=null,o=AD(e),s=!o&&oa(e);if(!o&&!s){let u=e.ngModule;if(o=AD(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let d of u)E0(d,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let d;try{E1(o.imports,h=>{E0(h,t,n,r)&&(d||=[],d.push(h))})}finally{}d!==void 0&&$C(d,t)}if(!a){let d=eu(i)||(()=>new i);t({provide:i,useFactory:d,deps:$r},i),t({provide:TC,useValue:i,multi:!0},i),t({provide:yc,useValue:()=>Ne(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let d=e;M1(u,h=>{t(h,d)})}}else return!1;return i!==e&&e.providers!==void 0}function M1(e,t){for(let n of e)SC(n)&&(n=n.\u0275providers),Array.isArray(n)?M1(n,t):t(n)}var zT=un({provide:String,useValue:un});function zC(e){return e!==null&&typeof e=="object"&&zT in e}function qT(e){return!!(e&&e.useExisting)}function WT(e){return!!(e&&e.useFactory)}function bc(e){return typeof e=="function"}function GT(e){return!!e.useClass}var Kp=new He(""),dp={},YT={},l0;function T1(){return l0===void 0&&(l0=new bp),l0}var Mr=class{},vd=class extends Mr{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,N0(t,s=>this.processProvider(s)),this.records.set(MC,fc(void 0,this)),i.has("environment")&&this.records.set(Mr,fc(void 0,this));let o=this.records.get(Kp);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(TC,$r,Ct.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=Et(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Et(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=ta(this),r=Hr(void 0),i;try{return t()}finally{ta(n),Hr(r)}}get(t,n=md,r=Ct.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(MD))return t[MD](this);r=Gp(r);let i,o=ta(this),s=Hr(void 0);try{if(!(r&Ct.SkipSelf)){let u=this.records.get(t);if(u===void 0){let d=XT(t)&&Wp(t);d&&this.injectableDefInScope(d)?u=fc(A0(t),dp):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&Ct.Self?T1():this.parent;return n=r&Ct.Optional&&n===md?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[vp]=a[vp]||[]).unshift(Nr(t)),o)throw a;return wT(a,t,"R3InjectorError",this.source)}else throw a}finally{Hr(s),ta(o)}}resolveInjectorInitializers(){let t=Et(null),n=ta(this),r=Hr(void 0),i;try{let o=this.get(yc,$r,Ct.Self);for(let s of o)s()}finally{ta(n),Hr(r),Et(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Nr(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $e(205,!1)}processProvider(t){t=dr(t);let n=bc(t)?t:dr(t&&t.provide),r=QT(t);if(!bc(t)&&t.multi===!0){let i=this.records.get(n);i||(i=fc(void 0,dp,!0),i.factory=()=>S0(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=Et(null);try{return n.value===dp&&(n.value=YT,n.value=n.factory()),typeof n.value=="object"&&n.value&&JT(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{Et(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=dr(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function A0(e){let t=Wp(e),n=t!==null?t.factory:eu(e);if(n!==null)return n;if(e instanceof He)throw new $e(204,!1);if(e instanceof Function)return ZT(e);throw new $e(204,!1)}function ZT(e){if(e.length>0)throw new $e(204,!1);let n=oT(e);return n!==null?()=>n.factory(e):()=>new e}function QT(e){if(zC(e))return fc(void 0,e.useValue);{let t=qC(e);return fc(t,dp)}}function qC(e,t,n){let r;if(bc(e)){let i=dr(e);return eu(i)||A0(i)}else if(zC(e))r=()=>dr(e.useValue);else if(WT(e))r=()=>e.useFactory(...S0(e.deps||[]));else if(qT(e))r=()=>Ne(dr(e.useExisting));else{let i=dr(e&&(e.useClass||e.provide));if(KT(e))r=()=>new i(...S0(e.deps));else return eu(i)||A0(i)}return r}function fc(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function KT(e){return!!e.deps}function JT(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function XT(e){return typeof e=="function"||typeof e=="object"&&e instanceof He}function N0(e,t){for(let n of e)Array.isArray(n)?N0(n,t):n&&SC(n)?N0(n.\u0275providers,t):t(n)}function Ei(e,t){e instanceof vd&&e.assertNotDestroyed();let n,r=ta(e),i=Hr(void 0);try{return t()}finally{ta(r),Hr(i)}}function WC(){return _C()!==void 0||vT()!=null}function eP(e){if(!WC())throw new $e(-203,!1)}function tP(e){let t=lr.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function nP(e){return typeof e=="function"}var gs=0,mt=1,at=2,vr=3,ro=4,Gr=5,yd=6,wp=7,Si=8,wc=9,Oo=10,bn=11,bd=12,RD=13,Nc=14,_i=15,tu=16,hc=17,fs=18,Jp=19,GC=20,na=21,d0=22,Ii=23,Vn=25,YC=1;var nu=7,Dp=8,Dc=9,zr=10,Cp=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Cp||{});function ra(e){return Array.isArray(e)&&typeof e[YC]=="object"}function vs(e){return Array.isArray(e)&&e[YC]===!0}function P1(e){return(e.flags&4)!==0}function Xp(e){return e.componentOffset>-1}function em(e){return(e.flags&1)===1}function sa(e){return!!e.template}function M0(e){return(e[at]&512)!==0}var T0=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ZC(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Ai(){return QC}function QC(e){return e.type.prototype.ngOnChanges&&(e.setInput=iP),rP}Ai.ngInherit=!0;function rP(){let e=JC(this),t=e?.current;if(t){let n=e.previous;if(n===ds)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function iP(e,t,n,r,i){let o=this.declaredInputs[r],s=JC(e)||oP(e,{previous:ds,current:null}),a=s.current||(s.current={}),u=s.previous,d=u[o];a[o]=new T0(d&&d.currentValue,n,u===ds),ZC(e,t,i,n)}var KC="__ngSimpleChanges__";function JC(e){return e[KC]||null}function oP(e,t){return e[KC]=t}var FD=null;var Mo=function(e,t,n){FD?.(e,t,n)},XC="svg",sP="math";function ko(e){for(;Array.isArray(e);)e=e[gs];return e}function ex(e,t){return ko(t[e])}function Ni(e,t){return ko(t[e.index])}function L1(e,t){return e.data[t]}function Mc(e,t){return e[t]}function la(e,t){let n=t[e];return ra(n)?n:n[gs]}function aP(e){return(e[at]&4)===4}function O1(e){return(e[at]&128)===128}function uP(e){return vs(e[vr])}function Cc(e,t){return t==null?null:e[t]}function tx(e){e[hc]=0}function nx(e){e[at]&1024||(e[at]|=1024,O1(e)&&nm(e))}function cP(e,t){for(;e>0;)t=t[Nc],e--;return t}function tm(e){return!!(e[at]&9216||e[Ii]?.dirty)}function P0(e){e[Oo].changeDetectionScheduler?.notify(8),e[at]&64&&(e[at]|=1024),tm(e)&&nm(e)}function nm(e){e[Oo].changeDetectionScheduler?.notify(0);let t=ru(e);for(;t!==null&&!(t[at]&8192||(t[at]|=8192,!O1(t)));)t=ru(t)}function rx(e,t){if((e[at]&256)===256)throw new $e(911,!1);e[na]===null&&(e[na]=[]),e[na].push(t)}function lP(e,t){if(e[na]===null)return;let n=e[na].indexOf(t);n!==-1&&e[na].splice(n,1)}function ru(e){let t=e[vr];return vs(t)?t[vr]:t}var bt={lFrame:hx(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ix=!1;function dP(){return bt.lFrame.elementDepthCount}function fP(){bt.lFrame.elementDepthCount++}function hP(){bt.lFrame.elementDepthCount--}function ox(){return bt.bindingsEnabled}function sx(){return bt.skipHydrationRootTNode!==null}function pP(e){return bt.skipHydrationRootTNode===e}function mP(){bt.skipHydrationRootTNode=null}function et(){return bt.lFrame.lView}function En(){return bt.lFrame.tView}function SW(e){return bt.lFrame.contextLView=e,e[Si]}function _W(e){return bt.lFrame.contextLView=null,e}function br(){let e=ax();for(;e!==null&&e.type===64;)e=e.parent;return e}function ax(){return bt.lFrame.currentTNode}function gP(){let e=bt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function lu(e,t){let n=bt.lFrame;n.currentTNode=e,n.isParent=t}function k1(){return bt.lFrame.isParent}function R1(){bt.lFrame.isParent=!1}function vP(){return bt.lFrame.contextLView}function ux(){return ix}function jD(e){ix=e}function io(){let e=bt.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function cx(){return bt.lFrame.bindingIndex}function yP(e){return bt.lFrame.bindingIndex=e}function Tc(){return bt.lFrame.bindingIndex++}function rm(e){let t=bt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bP(){return bt.lFrame.inI18n}function wP(e,t){let n=bt.lFrame;n.bindingIndex=n.bindingRootIndex=e,L0(t)}function DP(){return bt.lFrame.currentDirectiveIndex}function L0(e){bt.lFrame.currentDirectiveIndex=e}function CP(e){let t=bt.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function lx(){return bt.lFrame.currentQueryIndex}function F1(e){bt.lFrame.currentQueryIndex=e}function xP(e){let t=e[mt];return t.type===2?t.declTNode:t.type===1?e[Gr]:null}function dx(e,t,n){if(n&Ct.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&Ct.Host);)if(i=xP(o),i===null||(o=o[Nc],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=bt.lFrame=fx();return r.currentTNode=t,r.lView=e,!0}function j1(e){let t=fx(),n=e[mt];bt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function fx(){let e=bt.lFrame,t=e===null?null:e.child;return t===null?hx(e):t}function hx(e){let t={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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function px(){let e=bt.lFrame;return bt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var mx=px;function B1(){let e=px();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function IP(e){return(bt.lFrame.contextLView=cP(e,bt.lFrame.contextLView))[Si]}function ys(){return bt.lFrame.selectedIndex}function iu(e){bt.lFrame.selectedIndex=e}function Pc(){let e=bt.lFrame;return L1(e.tView,e.selectedIndex)}function EW(){bt.lFrame.currentNamespace=XC}function SP(){return bt.lFrame.currentNamespace}var gx=!0;function im(){return gx}function om(e){gx=e}function _P(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=QC(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function sm(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:d,ngOnDestroy:h}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),u&&(e.viewHooks??=[]).push(-n,u),d&&((e.viewHooks??=[]).push(n,d),(e.viewCheckHooks??=[]).push(n,d)),h!=null&&(e.destroyHooks??=[]).push(n,h)}}function fp(e,t,n){vx(e,t,3,n)}function hp(e,t,n,r){(e[at]&3)===n&&vx(e,t,n,r)}function f0(e,t){let n=e[at];(n&3)===t&&(n&=16383,n+=1,e[at]=n)}function vx(e,t,n,r){let i=r!==void 0?e[hc]&65535:0,o=r??-1,s=t.length-1,a=0;for(let u=i;u<s;u++)if(typeof t[u+1]=="number"){if(a=t[u],r!=null&&a>=r)break}else t[u]<0&&(e[hc]+=65536),(a<o||o==-1)&&(EP(e,n,t,u),e[hc]=(e[hc]&4294901760)+u+2),u++}function BD(e,t){Mo(4,e,t);let n=Et(null);try{t.call(e)}finally{Et(n),Mo(5,e,t)}}function EP(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[at]>>14<e[hc]>>16&&(e[at]&3)===t&&(e[at]+=16384,BD(a,o)):BD(a,o)}var vc=-1,ou=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function AP(e){return e instanceof ou}function NP(e){return(e.flags&8)!==0}function MP(e){return(e.flags&16)!==0}var h0={},O0=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Gp(r);let i=this.injector.get(t,h0,r);return i!==h0||n===h0?i:this.parentInjector.get(t,n,r)}};function yx(e){return e!==vc}function xp(e){return e&32767}function TP(e){return e>>16}function Ip(e,t){let n=TP(e),r=t;for(;n>0;)r=r[Nc],n--;return r}var k0=!0;function Sp(e){let t=k0;return k0=e,t}var PP=256,bx=PP-1,wx=5,LP=0,To={};function OP(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(fd)&&(r=n[fd]),r==null&&(r=n[fd]=LP++);let i=r&bx,o=1<<i;t.data[e+(i>>wx)]|=o}function _p(e,t){let n=Dx(e,t);if(n!==-1)return n;let r=t[mt];r.firstCreatePass&&(e.injectorIndex=t.length,p0(r.data,e),p0(t,null),p0(r.blueprint,null));let i=V1(e,t),o=e.injectorIndex;if(yx(i)){let s=xp(i),a=Ip(i,t),u=a[mt].data;for(let d=0;d<8;d++)t[o+d]=a[s+d]|u[s+d]}return t[o+8]=i,o}function p0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Dx(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function V1(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=_x(i),r===null)return vc;if(n++,i=i[Nc],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return vc}function R0(e,t,n){OP(e,t,n)}function kP(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,i=0;for(;i<r;){let o=n[i];if(LC(o))break;if(o===0)i=i+2;else if(typeof o=="number")for(i++;i<r&&typeof n[i]=="string";)i++;else{if(o===t)return n[i+1];i=i+2}}}return null}function Cx(e,t,n){if(n&Ct.Optional||e!==void 0)return e;S1(t,"NodeInjector")}function xx(e,t,n,r){if(n&Ct.Optional&&r===void 0&&(r=null),!(n&(Ct.Self|Ct.Host))){let i=e[wc],o=Hr(void 0);try{return i?i.get(t,r,n&Ct.Optional):EC(t,r,n&Ct.Optional)}finally{Hr(o)}}return Cx(r,t,n)}function Ix(e,t,n,r=Ct.Default,i){if(e!==null){if(t[at]&2048&&!(r&Ct.Self)){let s=BP(e,t,n,r,To);if(s!==To)return s}let o=Sx(e,t,n,r,To);if(o!==To)return o}return xx(t,n,r,i)}function Sx(e,t,n,r,i){let o=FP(n);if(typeof o=="function"){if(!dx(t,e,r))return r&Ct.Host?Cx(i,n,r):xx(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&Ct.Optional))S1(n);else return s}finally{mx()}}else if(typeof o=="number"){let s=null,a=Dx(e,t),u=vc,d=r&Ct.Host?t[_i][Gr]:null;for((a===-1||r&Ct.SkipSelf)&&(u=a===-1?V1(e,t):t[a+8],u===vc||!UD(r,!1)?a=-1:(s=t[mt],a=xp(u),t=Ip(u,t)));a!==-1;){let h=t[mt];if(VD(o,a,h.data)){let g=RP(a,t,n,s,r,d);if(g!==To)return g}u=t[a+8],u!==vc&&UD(r,t[mt].data[a+8]===d)&&VD(o,a,t)?(s=h,a=xp(u),t=Ip(u,t)):a=-1}}return i}function RP(e,t,n,r,i,o){let s=t[mt],a=s.data[e+8],u=r==null?Xp(a)&&k0:r!=s&&(a.type&3)!==0,d=i&Ct.Host&&o===a,h=pp(a,s,n,u,d);return h!==null?su(t,s,h,a):To}function pp(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,u=e.directiveStart,d=e.directiveEnd,h=o>>20,g=r?a:a+h,y=i?a+h:d;for(let m=g;m<y;m++){let C=s[m];if(m<u&&n===C||m>=u&&C.type===n)return m}if(i){let m=s[u];if(m&&sa(m)&&m.type===n)return u}return null}function su(e,t,n,r){let i=e[n],o=t.data;if(AP(i)){let s=i;s.resolving&&fT(dT(o[n]));let a=Sp(s.canSeeViewProviders);s.resolving=!0;let u,d=s.injectImpl?Hr(s.injectImpl):null,h=dx(e,r,Ct.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&_P(n,o[n],t)}finally{d!==null&&Hr(d),Sp(a),s.resolving=!1,mx()}}return i}function FP(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(fd)?e[fd]:void 0;return typeof t=="number"?t>=0?t&bx:jP:t}function VD(e,t,n){let r=1<<e;return!!(n[t+(e>>wx)]&r)}function UD(e,t){return!(e&Ct.Self)&&!(e&Ct.Host&&t)}var Xa=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ix(this._tNode,this._lView,t,Gp(r),n)}};function jP(){return new Xa(br(),et())}function Mi(e){return xd(()=>{let t=e.prototype.constructor,n=t[gp]||F0(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[gp]||F0(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function F0(e){return DC(e)?()=>{let t=F0(dr(e));return t&&t()}:eu(e)}function BP(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[at]&2048&&!(s[at]&512);){let a=Sx(o,s,n,r|Ct.Self,To);if(a!==To)return a;let u=o.parent;if(!u){let d=s[GC];if(d){let h=d.get(n,To,r);if(h!==To)return h}u=_x(s),s=s[Nc]}o=u}return i}function _x(e){let t=e[mt],n=t.type;return n===2?t.declTNode:n===1?e[Gr]:null}function U1(e){return kP(br(),e)}function HD(e,t=null,n=null,r){let i=Ex(e,t,n,r);return i.resolveInjectorInitializers(),i}function Ex(e,t=null,n=null,r,i=new Set){let o=[n||$r,$T(e)];return r=r||(typeof e=="object"?void 0:Nr(e)),new vd(o,t||T1(),r||null,i)}var qr=class e{static{this.THROW_IF_NOT_FOUND=md}static{this.NULL=new bp}static create(t,n){if(Array.isArray(t))return HD({name:""},n,t,"");{let r=t.name??"";return HD({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=Ae({token:e,providedIn:"any",factory:()=>Ne(MC)})}static{this.__NG_ELEMENT_ID__=-1}};var VP=new He("");VP.__NG_ELEMENT_ID__=e=>{let t=br();if(t===null)throw new $e(204,!1);if(t.type&2)return t.value;if(e&Ct.Optional)return null;throw new $e(204,!1)};var UP="ngOriginalError";function m0(e){return e[UP]}var Ax=!0,H1=(()=>{class e{static{this.__NG_ELEMENT_ID__=HP}static{this.__NG_ENV_ID__=n=>n}}return e})(),j0=class extends H1{constructor(t){super(),this._lView=t}onDestroy(t){return rx(this._lView,t),()=>lP(this._lView,t)}};function HP(){return new j0(et())}var bs=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Wt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=Ae({token:e,providedIn:"root",factory:()=>new e})}}return e})();var B0=class extends kt{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,WC()&&(this.destroyRef=xe(H1,{optional:!0})??void 0,this.pendingTasks=xe(bs,{optional:!0})??void 0)}emit(t){let n=Et(null);try{super.next(t)}finally{Et(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof _n&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},yn=B0;function Ep(...e){}function Nx(e){let t,n;function r(){e=Ep;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function $D(e){return queueMicrotask(()=>e()),()=>{e=Ep}}var $1="isAngularZone",Ap=$1+"_ID",$P=0,on=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new yn(!1),this.onMicrotaskEmpty=new yn(!1),this.onStable=new yn(!1),this.onError=new yn(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Ax}=t;if(typeof Zone>"u")throw new $e(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,WP(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get($1)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new $e(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new $e(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,zP,Ep,Ep);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},zP={};function z1(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qP(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Nx(()=>{e.callbackScheduled=!1,V0(e),e.isCheckStableRunning=!0,z1(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),V0(e)}function WP(e){let t=()=>{qP(e)},n=$P++;e._inner=e._inner.fork({name:"angular",properties:{[$1]:!0,[Ap]:n,[Ap+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(GP(u))return r.invokeTask(o,s,a,u);try{return zD(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),qD(e)}},onInvoke:(r,i,o,s,a,u,d)=>{try{return zD(e),r.invoke(o,s,a,u,d)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!YP(u)&&t(),qD(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,V0(e),z1(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function V0(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function zD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function qD(e){e._nesting--,z1(e)}var Np=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yn,this.onMicrotaskEmpty=new yn,this.onStable=new yn,this.onError=new yn}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function GP(e){return Mx(e,"__ignore_ng_zone__")}function YP(e){return Mx(e,"__scheduler_tick__")}function Mx(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function ZP(e="zone.js",t){return e==="noop"?new Np:e==="zone.js"?new on(t):e}var hs=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&m0(t);for(;n&&m0(n);)n=m0(n);return n||null}},QP=new He("",{providedIn:"root",factory:()=>{let e=xe(on),t=xe(hs);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function KP(){return Lc(br(),et())}function Lc(e,t){return new Lr(Ni(e,t))}var Lr=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=KP}}return e})();function JP(e){return e instanceof Lr?e.nativeElement:e}function XP(){return this._results[Symbol.iterator]()}var U0=class e{get changes(){return this._changes??=new yn}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=XP)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=xT(t);(this._changesDetected=!CT(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Tx(e){return(e.flags&128)===128}var Px=new Map,e3=0;function t3(){return e3++}function n3(e){Px.set(e[Jp],e)}function H0(e){Px.delete(e[Jp])}var WD="__ngContext__";function aa(e,t){ra(t)?(e[WD]=t[Jp],n3(t)):e[WD]=t}function Lx(e){return kx(e[bd])}function Ox(e){return kx(e[ro])}function kx(e){for(;e!==null&&!vs(e);)e=e[ro];return e}var $0;function Rx(e){$0=e}function Fx(){if($0!==void 0)return $0;if(typeof document<"u")return document;throw new $e(210,!1)}var am=new He("",{providedIn:"root",factory:()=>r3}),r3="ng",q1=new He(""),Ro=new He("",{providedIn:"platform",factory:()=>"unknown"});var AW=new He(""),W1=new He("",{providedIn:"root",factory:()=>Fx().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var i3="h",o3="b";var s3=()=>null;function G1(e,t,n=!1){return s3(e,t,n)}var jx=!1,a3=new He("",{providedIn:"root",factory:()=>jx});var ip;function u3(){if(ip===void 0&&(ip=null,lr.trustedTypes))try{ip=lr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ip}function um(e){return u3()?.createHTML(e)||e}var op;function Bx(){if(op===void 0&&(op=null,lr.trustedTypes))try{op=lr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return op}function GD(e){return Bx()?.createHTML(e)||e}function YD(e){return Bx()?.createScriptURL(e)||e}var ps=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bC})`}},z0=class extends ps{getTypeName(){return"HTML"}},q0=class extends ps{getTypeName(){return"Style"}},W0=class extends ps{getTypeName(){return"Script"}},G0=class extends ps{getTypeName(){return"URL"}},Y0=class extends ps{getTypeName(){return"ResourceURL"}};function ai(e){return e instanceof ps?e.changingThisBreaksApplicationSecurity:e}function ws(e,t){let n=c3(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${bC})`)}return n===t}function c3(e){return e instanceof ps&&e.getTypeName()||null}function Vx(e){return new z0(e)}function Ux(e){return new q0(e)}function Hx(e){return new W0(e)}function $x(e){return new G0(e)}function zx(e){return new Y0(e)}function l3(e){let t=new Q0(e);return d3()?new Z0(t):t}var Z0=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(um(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Q0=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=um(t),n}};function d3(){try{return!!new window.DOMParser().parseFromString(um(""),"text/html")}catch{return!1}}var f3=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cm(e){return e=String(e),e.match(f3)?e:"unsafe:"+e}function Ds(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Sd(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var qx=Ds("area,br,col,hr,img,wbr"),Wx=Ds("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gx=Ds("rp,rt"),h3=Sd(Gx,Wx),p3=Sd(Wx,Ds("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")),m3=Sd(Gx,Ds("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")),ZD=Sd(qx,p3,m3,h3),Yx=Ds("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),g3=Ds("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),v3=Ds("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"),y3=Sd(Yx,g3,v3),b3=Ds("script,style,template"),K0=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=C3(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=D3(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=QD(t).toLowerCase();if(!ZD.hasOwnProperty(n))return this.sanitizedSomething=!0,!b3.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i<r.length;i++){let o=r.item(i),s=o.name,a=s.toLowerCase();if(!y3.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let u=o.value;Yx[a]&&(u=cm(u)),this.buf.push(" ",s,'="',KD(u),'"')}return this.buf.push(">"),!0}endElement(t){let n=QD(t).toLowerCase();ZD.hasOwnProperty(n)&&!qx.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(KD(t))}};function w3(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function D3(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Zx(t);return t}function C3(e){let t=e.firstChild;if(t&&w3(e,t))throw Zx(t);return t}function QD(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Zx(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var x3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,I3=/([^\#-~ |!])/g;function KD(e){return e.replace(/&/g,"&amp;").replace(x3,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(I3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var sp;function Y1(e,t){let n=null;try{sp=sp||l3(e);let r=t?String(t):"";n=sp.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=sp.getInertBodyElement(r)}while(r!==o);let a=new K0().sanitizeChildren(JD(n)||n);return um(a)}finally{if(n){let r=JD(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function JD(e){return"content"in e&&S3(e)?e.content:null}function S3(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var oo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(oo||{});function NW(e){let t=Z1();return t?GD(t.sanitize(oo.HTML,e)||""):ws(e,"HTML")?GD(ai(e)):Y1(Fx(),Po(e))}function _3(e){let t=Z1();return t?t.sanitize(oo.URL,e)||"":ws(e,"URL")?ai(e):cm(Po(e))}function E3(e){let t=Z1();if(t)return YD(t.sanitize(oo.RESOURCE_URL,e)||"");if(ws(e,"ResourceURL"))return YD(ai(e));throw new $e(904,!1)}function A3(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?E3:_3}function Qx(e,t,n){return A3(t,n)(e)}function Z1(){let e=et();return e&&e[Oo].sanitizer}var N3=/^>|^->|<!--|-->|--!>|<!-$/g,M3=/(<|>)/g,T3="\u200B$1\u200B";function P3(e){return e.replace(N3,t=>t.replace(M3,T3))}function MW(e){return e.ownerDocument.defaultView}function Kx(e){return e instanceof Function?e():e}function L3(e){return(e??xe(qr)).get(Ro)==="browser"}var ms=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ms||{}),O3;function Q1(e,t){return O3(e,t)}function pc(e,t,n,r,i){if(r!=null){let o,s=!1;vs(r)?o=r:ra(r)&&(s=!0,r=r[gs]);let a=ko(r);e===0&&n!==null?i==null?nI(t,n,a):Tp(t,n,a,i||null,!0):e===1&&n!==null?Tp(t,n,a,i||null,!0):e===2?Y3(t,a,s):e===3&&t.destroyNode(a),o!=null&&Q3(t,e,o,n,i)}}function k3(e,t){return e.createText(t)}function R3(e,t,n){e.setValue(t,n)}function F3(e,t){return e.createComment(P3(t))}function Jx(e,t,n){return e.createElement(t,n)}function j3(e,t){Xx(e,t),t[gs]=null,t[Gr]=null}function B3(e,t,n,r,i,o){r[gs]=i,r[Gr]=t,dm(e,r,n,1,i,o)}function Xx(e,t){t[Oo].changeDetectionScheduler?.notify(9),dm(e,t,t[bn],2,null,null)}function V3(e){let t=e[bd];if(!t)return g0(e[mt],e);for(;t;){let n=null;if(ra(t))n=t[bd];else{let r=t[zr];r&&(n=r)}if(!n){for(;t&&!t[ro]&&t!==e;)ra(t)&&g0(t[mt],t),t=t[vr];t===null&&(t=e),ra(t)&&g0(t[mt],t),n=t&&t[ro]}t=n}}function U3(e,t,n,r){let i=zr+r,o=n.length;r>0&&(n[i-1][ro]=t),r<o-zr?(t[ro]=n[i],NC(n,zr+r,t)):(n.push(t),t[ro]=null),t[vr]=n;let s=t[tu];s!==null&&n!==s&&eI(s,t);let a=t[fs];a!==null&&a.insertView(e),P0(t),t[at]|=128}function eI(e,t){let n=e[Dc],r=t[vr];if(ra(r))e[at]|=Cp.HasTransplantedViews;else{let i=r[vr][_i];t[_i]!==i&&(e[at]|=Cp.HasTransplantedViews)}n===null?e[Dc]=[t]:n.push(t)}function K1(e,t){let n=e[Dc],r=n.indexOf(t);n.splice(r,1)}function Mp(e,t){if(e.length<=zr)return;let n=zr+t,r=e[n];if(r){let i=r[tu];i!==null&&i!==e&&K1(i,r),t>0&&(e[n-1][ro]=r[ro]);let o=yp(e,zr+t);j3(r[mt],r);let s=o[fs];s!==null&&s.detachView(o[mt]),r[vr]=null,r[ro]=null,r[at]&=-129}return r}function J1(e,t){if(!(t[at]&256)){let n=t[bn];n.destroyNode&&dm(e,t,n,3,null,null),V3(t)}}function g0(e,t){if(t[at]&256)return;let n=Et(null);try{t[at]&=-129,t[at]|=256,t[Ii]&&Hy(t[Ii]),$3(e,t),H3(e,t),t[mt].type===1&&t[bn].destroy();let r=t[tu];if(r!==null&&vs(t[vr])){r!==t[vr]&&K1(r,t);let i=t[fs];i!==null&&i.detachView(e)}H0(t)}finally{Et(n)}}function H3(e,t){let n=e.cleanup,r=t[wp];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[wp]=null);let i=t[na];if(i!==null){t[na]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function $3(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof ou)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];Mo(4,a,u);try{u.call(a)}finally{Mo(5,a,u)}}else{Mo(4,i,o);try{o.call(i)}finally{Mo(5,i,o)}}}}}function tI(e,t,n){return z3(e,t.parent,n)}function z3(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[gs];{let{componentOffset:i}=r;if(i>-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Lo.None||o===Lo.Emulated)return null}return Ni(r,n)}}function Tp(e,t,n,r,i){e.insertBefore(t,n,r,i)}function nI(e,t,n){e.appendChild(t,n)}function XD(e,t,n,r,i){r!==null?Tp(e,t,n,r,i):nI(e,t,n)}function rI(e,t){return e.parentNode(t)}function q3(e,t){return e.nextSibling(t)}function iI(e,t,n){return G3(e,t,n)}function W3(e,t,n){return e.type&40?Ni(e,n):null}var G3=W3,eC;function lm(e,t,n,r){let i=tI(e,r,t),o=t[bn],s=r.parent||t[Gr],a=iI(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)XD(o,i,n[u],a,!1);else XD(o,i,n,a,!1);eC!==void 0&&eC(o,r,t,n,i)}function dd(e,t){if(t!==null){let n=t.type;if(n&3)return Ni(t,e);if(n&4)return J0(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return dd(e,r);{let i=e[t.index];return vs(i)?J0(-1,i):ko(i)}}else{if(n&128)return dd(e,t.next);if(n&32)return Q1(t,e)()||ko(e[t.index]);{let r=oI(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=ru(e[_i]);return dd(i,r)}else return dd(e,t.next)}}}return null}function oI(e,t){if(t!==null){let r=e[_i][Gr],i=t.projection;return r.projection[i]}return null}function J0(e,t){let n=zr+e+1;if(n<t.length){let r=t[n],i=r[mt].firstChild;if(i!==null)return dd(r,i)}return t[nu]}function Y3(e,t,n){e.removeChild(null,t,n)}function X1(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&t===0&&(a&&aa(ko(a),r),n.flags|=2),(n.flags&32)!==32)if(u&8)X1(e,t,n.child,r,i,o,!1),pc(t,e,i,a,o);else if(u&32){let d=Q1(n,r),h;for(;h=d();)pc(t,e,i,h,o);pc(t,e,i,a,o)}else u&16?sI(e,t,r,n,i,o):pc(t,e,i,a,o);n=s?n.projectionNext:n.next}}function dm(e,t,n,r,i,o){X1(n,r,e.firstChild,t,i,o,!1)}function Z3(e,t,n){let r=t[bn],i=tI(e,n,t),o=n.parent||t[Gr],s=iI(o,n,t);sI(r,0,t,n,i,s)}function sI(e,t,n,r,i,o){let s=n[_i],u=s[Gr].projection[r.projection];if(Array.isArray(u))for(let d=0;d<u.length;d++){let h=u[d];pc(t,e,i,h,o)}else{let d=u,h=s[vr];Tx(r)&&(d.flags|=128),X1(e,t,d,h,i,o,!0)}}function Q3(e,t,n,r,i){let o=n[nu],s=ko(n);o!==s&&pc(t,e,r,o,i);for(let a=zr;a<n.length;a++){let u=n[a];dm(u[mt],u,e,t,r,o)}}function K3(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:ms.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=ms.Important),e.setStyle(n,r,i,o))}}function J3(e,t,n){e.setAttribute(t,"style",n)}function aI(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function uI(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&_0(e,t,r),i!==null&&aI(e,t,i),o!==null&&J3(e,t,o)}var fr={};function TW(e=1){cI(En(),et(),ys()+e,!1)}function cI(e,t,n,r){if(!r)if((t[at]&3)===3){let o=e.preOrderCheckHooks;o!==null&&fp(t,o,n)}else{let o=e.preOrderHooks;o!==null&&hp(t,o,0,n)}iu(n)}function ze(e,t=Ct.Default){let n=et();if(n===null)return Ne(e,t);let r=br();return Ix(r,n,dr(e),t)}function lI(){let e="invalid";throw new Error(e)}function dI(e,t,n,r,i,o){let s=Et(null);try{let a=null;i&ia.SignalBased&&(a=t[r][as]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&ia.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),e.setInput!==null?e.setInput(t,a,o,n,r):ZC(t,a,r,o)}finally{Et(s)}}function X3(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)iu(~i);else{let o=i,s=n[++r],a=n[++r];wP(s,o);let u=t[o];a(2,u)}}}finally{iu(-1)}}function fm(e,t,n,r,i,o,s,a,u,d,h){let g=t.blueprint.slice();return g[gs]=i,g[at]=r|4|128|8|64,(d!==null||e&&e[at]&2048)&&(g[at]|=2048),tx(g),g[vr]=g[Nc]=e,g[Si]=n,g[Oo]=s||e&&e[Oo],g[bn]=a||e&&e[bn],g[wc]=u||e&&e[wc]||null,g[Gr]=o,g[Jp]=t3(),g[yd]=h,g[GC]=d,g[_i]=t.type==2?e[_i]:g,g}function Oc(e,t,n,r,i){let o=e.data[t];if(o===null)o=eL(e,t,n,r,i),bP()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=gP();o.injectorIndex=s===null?-1:s.injectorIndex}return lu(o,!0),o}function eL(e,t,n,r,i){let o=ax(),s=k1(),a=s?o:o&&o.parent,u=e.data[t]=sL(e,a,n,t,r,i);return e.firstChild===null&&(e.firstChild=u),o!==null&&(s?o.child==null&&u.parent!==null&&(o.child=u):o.next===null&&(o.next=u,u.prev=o)),u}function fI(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function hI(e,t,n,r,i){let o=ys(),s=r&2;try{iu(-1),s&&t.length>Vn&&cI(e,t,Vn,!1),Mo(s?2:0,i),n(r,i)}finally{iu(o),Mo(s?3:1,i)}}function eb(e,t,n){if(P1(t)){let r=Et(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{Et(r)}}}function tb(e,t,n){ox()&&(fL(e,t,n,Ni(n,t)),(n.flags&64)===64&&gI(e,t,n))}function nb(e,t,n=Ni){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function pI(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=rb(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function rb(e,t,n,r,i,o,s,a,u,d,h){let g=Vn+r,y=g+i,m=tL(g,y),C=typeof d=="function"?d():d;return m[mt]={type:e,blueprint:m,template:n,queries:null,viewQuery:a,declTNode:t,data:m.slice().fill(null,g),bindingStartIndex:g,expandoStartIndex:y,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:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:u,consts:C,incompleteFirstPass:!1,ssrId:h}}function tL(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:fr);return n}function nL(e,t,n,r){let o=r.get(a3,jx)||n===Lo.ShadowDom,s=e.selectRootElement(t,o);return rL(s),s}function rL(e){iL(e)}var iL=()=>null;function oL(e,t,n,r){let i=wI(t);i.push(n),e.firstCreatePass&&DI(e).push(r,i.length-1)}function sL(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return sx()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function tC(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=ia.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let d=o;if(i!==null){if(!i.hasOwnProperty(o))continue;d=i[o]}e===0?nC(r,n,d,a,u):nC(r,n,d,a)}return r}function nC(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function aL(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,d=null;for(let h=r;h<i;h++){let g=o[h],y=n?n.get(g):null,m=y?y.inputs:null,C=y?y.outputs:null;u=tC(0,g.inputs,h,u,m),d=tC(1,g.outputs,h,d,C);let D=u!==null&&s!==null&&!A1(t)?CL(u,h,s):null;a.push(D)}u!==null&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=d}function uL(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function hm(e,t,n,r,i,o,s,a){let u=Ni(t,n),d=t.inputs,h;!a&&d!=null&&(h=d[r])?(ob(e,n,h,r,i),Xp(t)&&cL(n,t.index)):t.type&3?(r=uL(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(u,r,i)):t.type&12}function cL(e,t){let n=la(t,e);n[at]&16||(n[at]|=64)}function ib(e,t,n,r){if(ox()){let i=r===null?null:{"":-1},o=pL(e,n),s,a;o===null?s=a=null:[s,a]=o,s!==null&&mI(e,t,n,s,i,a),i&&mL(n,r,i)}n.mergedAttrs=gd(n.mergedAttrs,n.attrs)}function mI(e,t,n,r,i,o){for(let d=0;d<r.length;d++)R0(_p(n,t),e,r[d].type);vL(n,e.data.length,r.length);for(let d=0;d<r.length;d++){let h=r[d];h.providersResolver&&h.providersResolver(h)}let s=!1,a=!1,u=fI(e,t,r.length,null);for(let d=0;d<r.length;d++){let h=r[d];n.mergedAttrs=gd(n.mergedAttrs,h.hostAttrs),yL(e,n,t,u,h),gL(u,h,i),h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!s&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}aL(e,n,o)}function lL(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;dL(s)!=a&&s.push(a),s.push(n,r,o)}}function dL(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function fL(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Xp(n)&&bL(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||_p(n,t),aa(r,t);let s=n.initialInputs;for(let a=i;a<o;a++){let u=e.data[a],d=su(t,e,a,n);if(aa(d,t),s!==null&&DL(t,a-i,d,u,n,s),sa(u)){let h=la(n.index,t);h[Si]=su(t,e,a,n)}}}function gI(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=DP();try{iu(o);for(let a=r;a<i;a++){let u=e.data[a],d=t[a];L0(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&hL(u,d)}}finally{iu(-1),L0(s)}}function hL(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function pL(e,t){let n=e.directiveRegistry,r=null,i=null;if(n)for(let o=0;o<n.length;o++){let s=n[o];if(kC(t,s.selectors,!1))if(r||(r=[]),sa(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s);let u=a.length;X0(e,t,u)}else r.unshift(s),X0(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return r===null?null:[r,i]}function X0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function mL(e,t,n){if(t){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new $e(-301,!1);r.push(t[i],o)}}}function gL(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;sa(t)&&(n[""]=e)}}function vL(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function yL(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=eu(i.type,!0)),s=new ou(o,sa(i),ze);e.blueprint[r]=s,n[r]=s,lL(e,t,r,fI(e,n,i.hostVars,fr),i)}function bL(e,t,n){let r=Ni(t,e),i=pI(n),o=e[Oo].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=pm(e,fm(e,i,null,s,r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=a}function vI(e,t,n,r,i,o){let s=Ni(e,t);wL(t[bn],s,o,e.value,n,r,i)}function wL(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Po(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function DL(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let u=s[a++],d=s[a++],h=s[a++],g=s[a++];dI(r,n,u,d,h,g)}}function CL(e,t,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){r===null&&(r=[]);let s=e[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(o,s[a+1],s[a+2],n[i+1]);break}}i+=2}return r}function yI(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function bI(e,t){let n=e.contentQueries;if(n!==null){let r=Et(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];F1(o),a.contentQueries(2,t[s],s)}}}finally{Et(r)}}}function pm(e,t){return e[bd]?e[RD][ro]=t:e[bd]=t,e[RD]=t,t}function e1(e,t,n){F1(0);let r=Et(null);try{t(e,n)}finally{Et(r)}}function wI(e){return e[wp]??=[]}function DI(e){return e.cleanup??=[]}function CI(e,t){let n=e[wc],r=n?n.get(hs,null):null;r&&r.handleError(t)}function ob(e,t,n,r,i){for(let o=0;o<n.length;){let s=n[o++],a=n[o++],u=n[o++],d=t[s],h=e.data[s];dI(h,d,r,a,u,i)}}function sb(e,t,n){let r=ex(t,e);R3(e[bn],r,n)}function xL(e,t){let n=la(t,e),r=n[mt];IL(r,n);let i=n[gs];i!==null&&n[yd]===null&&(n[yd]=G1(i,n[wc])),ab(r,n,n[Si])}function IL(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function ab(e,t,n){j1(t);try{let r=e.viewQuery;r!==null&&e1(1,r,n);let i=e.template;i!==null&&hI(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[fs]?.finishViewCreation(e),e.staticContentQueries&&bI(e,t),e.staticViewQueries&&e1(2,e.viewQuery,n);let o=e.components;o!==null&&SL(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[at]&=-5,B1()}}function SL(e,t){for(let n=0;n<t.length;n++)xL(e,t[n])}function ub(e,t,n,r){let i=Et(null);try{let o=t.tView,a=e[at]&4096?4096:16,u=fm(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),d=e[t.index];u[tu]=d;let h=e[fs];return h!==null&&(u[fs]=h.createEmbeddedView(o)),ab(o,u,n),u}finally{Et(i)}}function _L(e,t){let n=zr+t;if(n<e.length)return e[n]}function Pp(e,t){return!t||t.firstChild===null||Tx(e)}function cb(e,t,n,r=!0){let i=t[mt];if(U3(i,t,e,n),r){let s=J0(n,e),a=t[bn],u=rI(a,e[nu]);u!==null&&B3(i,e[Gr],a,t,u,s)}let o=t[yd];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function EL(e,t){let n=Mp(e,t);return n!==void 0&&J1(n[mt],n),n}function Lp(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(ko(o)),vs(o)&&AL(o,r);let s=n.type;if(s&8)Lp(e,t,n.child,r);else if(s&32){let a=Q1(n,t),u;for(;u=a();)r.push(u)}else if(s&16){let a=oI(t,n);if(Array.isArray(a))r.push(...a);else{let u=ru(t[_i]);Lp(u[mt],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function AL(e,t){for(let n=zr;n<e.length;n++){let r=e[n],i=r[mt].firstChild;i!==null&&Lp(r[mt],r,i,t)}e[nu]!==e[gs]&&t.push(e[nu])}var xI=[];function NL(e){return e[Ii]??ML(e)}function ML(e){let t=xI.pop()??Object.create(PL);return t.lView=e,t}function TL(e){e.lView[Ii]!==e&&(e.lView=null,xI.push(e))}var PL=Re(K({},od),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{nm(e.lView)},consumerOnSignalRead(){this.lView[Ii]=this}});function LL(e){let t=e[Ii]??Object.create(OL);return t.lView=e,t}var OL=Re(K({},od),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=ru(e.lView);for(;t&&!II(t[mt]);)t=ru(t);t&&nx(t)},consumerOnSignalRead(){this.lView[Ii]=this}});function II(e){return e.type!==2}var kL=100;function SI(e,t=!0,n=0){let r=e[Oo],i=r.rendererFactory,o=!1;o||i.begin?.();try{RL(e,n)}catch(s){throw t&&CI(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function RL(e,t){let n=ux();try{jD(!0),t1(e,t);let r=0;for(;tm(e);){if(r===kL)throw new $e(103,!1);r++,t1(e,1)}}finally{jD(n)}}function FL(e,t,n,r){let i=t[at];if((i&256)===256)return;let o=!1,s=!1;!o&&t[Oo].inlineEffectRunner?.flush(),j1(t);let a=!0,u=null,d=null;o||(II(e)?(d=NL(t),u=Sh(d)):R5()===null?(a=!1,d=LL(t),u=Sh(d)):t[Ii]&&(Hy(t[Ii]),t[Ii]=null));try{tx(t),yP(e.bindingStartIndex),n!==null&&hI(e,t,n,2,r);let h=(i&3)===3;if(!o)if(h){let m=e.preOrderCheckHooks;m!==null&&fp(t,m,null)}else{let m=e.preOrderHooks;m!==null&&hp(t,m,0,null),f0(t,0)}if(s||jL(t),_I(t,0),e.contentQueries!==null&&bI(e,t),!o)if(h){let m=e.contentCheckHooks;m!==null&&fp(t,m)}else{let m=e.contentHooks;m!==null&&hp(t,m,1),f0(t,1)}X3(e,t);let g=e.components;g!==null&&AI(t,g,0);let y=e.viewQuery;if(y!==null&&e1(2,y,r),!o)if(h){let m=e.viewCheckHooks;m!==null&&fp(t,m)}else{let m=e.viewHooks;m!==null&&hp(t,m,2),f0(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[d0]){for(let m of t[d0])m();t[d0]=null}o||(t[at]&=-73)}catch(h){throw o||nm(t),h}finally{d!==null&&(Vy(d,u),a&&TL(d)),B1()}}function _I(e,t){for(let n=Lx(e);n!==null;n=Ox(n))for(let r=zr;r<n.length;r++){let i=n[r];EI(i,t)}}function jL(e){for(let t=Lx(e);t!==null;t=Ox(t)){if(!(t[at]&Cp.HasTransplantedViews))continue;let n=t[Dc];for(let r=0;r<n.length;r++){let i=n[r];nx(i)}}}function BL(e,t,n){let r=la(t,e);EI(r,n)}function EI(e,t){O1(e)&&t1(e,t)}function t1(e,t){let r=e[mt],i=e[at],o=e[Ii],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&Uy(o)),s||=!1,o&&(o.dirty=!1),e[at]&=-9217,s)FL(r,e,r.template,e[Si]);else if(i&8192){_I(e,1);let a=r.components;a!==null&&AI(e,a,1)}}function AI(e,t,n){for(let r=0;r<t.length;r++)BL(e,t[r],n)}function lb(e,t){let n=ux()?64:1088;for(e[Oo].changeDetectionScheduler?.notify(t);e;){e[at]|=n;let r=ru(e);if(M0(e)&&!r)return e;e=r}return null}var au=class{get rootNodes(){let t=this._lView,n=t[mt];return Lp(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Si]}set context(t){this._lView[Si]=t}get destroyed(){return(this._lView[at]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[vr];if(vs(t)){let n=t[Dp],r=n?n.indexOf(this):-1;r>-1&&(Mp(t,r),yp(n,r))}this._attachedToViewContainer=!1}J1(this._lView[mt],this._lView)}onDestroy(t){rx(this._lView,t)}markForCheck(){lb(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[at]&=-129}reattach(){P0(this._lView),this._lView[at]|=128}detectChanges(){this._lView[at]|=1024,SI(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $e(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=M0(this._lView),n=this._lView[tu];n!==null&&!t&&K1(n,this._lView),Xx(this._lView[mt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new $e(902,!1);this._appRef=t;let n=M0(this._lView),r=this._lView[tu];r!==null&&!n&&eI(r,this._lView),P0(this._lView)}},uu=(()=>{class e{static{this.__NG_ELEMENT_ID__=HL}}return e})(),VL=uu,UL=class extends VL{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=ub(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new au(i)}};function HL(){return mm(br(),et())}function mm(e,t){return e.type&4?new UL(t,e,Lc(e,t)):null}var LW=new RegExp(`^(\\d+)*(${o3}|${i3})*(.*)`);var $L=()=>null;function Op(e,t){return $L(e,t)}var xc=class{},db=new He("",{providedIn:"root",factory:()=>!1});var NI=new He(""),MI=new He(""),n1=class{},kp=class{};function zL(e){let t=Error(`No component factory found for ${Nr(e)}.`);return t[qL]=e,t}var qL="ngComponent";var r1=class{resolveComponentFactory(t){throw zL(t)}},Ic=class{static{this.NULL=new r1}},Sc=class{},so=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>WL()}}return e})();function WL(){let e=et(),t=br(),n=la(t.index,e);return(ra(n)?n:e)[bn]}var GL=(()=>{class e{static{this.\u0275prov=Ae({token:e,providedIn:"root",factory:()=>null})}}return e})();function Rp(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=C0(i,a);else if(o==2){let u=a,d=t[++s];r=C0(r,u+": "+d+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var Fp=class extends Ic{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=oa(t);return new _c(n,this.ngModule)}};function rC(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let i=e[r];if(i===void 0)continue;let o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:ia.None;t?n.push({propName:s,templateName:r,isSignal:(a&ia.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function YL(e){let t=e.toLowerCase();return t==="svg"?XC:t==="math"?sP:null}var _c=class extends kp{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=rC(t.inputs,!0);if(n!==null)for(let i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return rC(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=jT(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=Et(null);try{i=i||this.ngModule;let s=i instanceof Mr?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new O0(t,s):t,u=a.get(Sc,null);if(u===null)throw new $e(407,!1);let d=a.get(GL,null),h=a.get(xc,null),g={rendererFactory:u,sanitizer:d,inlineEffectRunner:null,changeDetectionScheduler:h},y=u.createRenderer(null,this.componentDef),m=this.componentDef.selectors[0][0]||"div",C=r?nL(y,r,this.componentDef.encapsulation,a):Jx(y,m,YL(m)),D=512;this.componentDef.signals?D|=4096:this.componentDef.onPush||(D|=16);let N=null;C!==null&&(N=G1(C,a,!0));let I=rb(0,null,null,1,0,null,null,null,null,null,null),P=fm(null,I,null,D,null,null,g,y,a,null,N);j1(P);let B,J,ie=null;try{let me=this.componentDef,te,H=null;me.findHostDirectiveDefs?(te=[],H=new Map,me.findHostDirectiveDefs(me,te,H),te.push(me)):te=[me];let oe=ZL(P,C);ie=QL(oe,C,me,te,P,g,y),J=L1(I,Vn),C&&XL(y,me,C,r),n!==void 0&&eO(J,this.ngContentSelectors,n),B=JL(ie,me,te,H,P,[tO]),ab(I,P,null)}catch(me){throw ie!==null&&H0(ie),H0(P),me}finally{B1()}return new i1(this.componentType,B,Lc(J,P),P,J)}finally{Et(o)}}},i1=class extends n1{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new au(i,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;ob(o[mt],o,i,t,n),this.previousInputValues.set(t,n);let s=la(this._tNode.index,o);lb(s,1)}}get injector(){return new Xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function ZL(e,t){let n=e[mt],r=Vn;return e[r]=t,Oc(n,r,2,"#host",null)}function QL(e,t,n,r,i,o,s){let a=i[mt];KL(r,e,t,s);let u=null;t!==null&&(u=G1(t,i[wc]));let d=o.rendererFactory.createRenderer(t,n),h=16;n.signals?h=4096:n.onPush&&(h=64);let g=fm(i,pI(n),null,h,i[e.index],e,o,d,null,null,u);return a.firstCreatePass&&X0(a,e,r.length-1),pm(i,g),i[e.index]=g}function KL(e,t,n,r){for(let i of e)t.mergedAttrs=gd(t.mergedAttrs,i.hostAttrs);t.mergedAttrs!==null&&(Rp(t,t.mergedAttrs,!0),n!==null&&uI(r,n,t))}function JL(e,t,n,r,i,o){let s=br(),a=i[mt],u=Ni(s,i);mI(a,i,s,n,null,r);for(let h=0;h<n.length;h++){let g=s.directiveStart+h,y=su(i,a,g,s);aa(y,i)}gI(a,i,s),u&&aa(u,i);let d=su(i,a,s.directiveStart+s.componentOffset,s);if(e[Si]=i[Si]=d,o!==null)for(let h of o)h(d,t);return eb(a,s,i),d}function XL(e,t,n,r){if(r)_0(e,n,["ng-version","18.2.11"]);else{let{attrs:i,classes:o}=BT(t.selectors[0]);i&&_0(e,n,i),o&&o.length>0&&aI(e,n,o.join(" "))}}function eO(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null?Array.from(o):null)}}function tO(){let e=br();sm(et()[mt],e)}var Cs=(()=>{class e{static{this.__NG_ELEMENT_ID__=nO}}return e})();function nO(){let e=br();return PI(e,et())}var rO=Cs,TI=class extends rO{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Lc(this._hostTNode,this._hostLView)}get injector(){return new Xa(this._hostTNode,this._hostLView)}get parentInjector(){let t=V1(this._hostTNode,this._hostLView);if(yx(t)){let n=Ip(t,this._hostLView),r=xp(t),i=n[mt].data[r+8];return new Xa(i,n)}else return new Xa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=iC(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-zr}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Op(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Pp(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!nP(t),a;if(s)a=n;else{let C=n||{};a=C.index,r=C.injector,i=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}let u=s?t:new _c(oa(t)),d=r||this.parentInjector;if(!o&&u.ngModule==null){let D=(s?d:this.parentInjector).get(Mr,null);D&&(o=D)}let h=oa(u.componentType??{}),g=Op(this._lContainer,h?.id??null),y=g?.firstChild??null,m=u.create(d,i,y,o);return this.insertImpl(m.hostView,a,Pp(this._hostTNode,g)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(uP(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[vr],d=new TI(u,u[Gr],u[vr]);d.detach(d.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return cb(s,i,o,r),t.attachToViewContainerRef(),NC(v0(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=iC(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Mp(this._lContainer,n);r&&(yp(v0(this._lContainer),n),J1(r[mt],r))}detach(t){let n=this._adjustIndex(t,-1),r=Mp(this._lContainer,n);return r&&yp(v0(this._lContainer),n)!=null?new au(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function iC(e){return e[Dp]}function v0(e){return e[Dp]||(e[Dp]=[])}function PI(e,t){let n,r=t[e.index];return vs(r)?n=r:(n=yI(r,t,null,e),t[e.index]=n,pm(t,n)),oO(n,t,e,r),new TI(n,e,t)}function iO(e,t){let n=e[bn],r=n.createComment(""),i=Ni(t,e),o=rI(n,i);return Tp(n,o,r,q3(n,i),!1),r}var oO=uO,sO=()=>!1;function aO(e,t,n){return sO(e,t,n)}function uO(e,t,n,r){if(e[nu])return;let i;n.type&8?i=ko(r):i=iO(t,n),e[nu]=i}var o1=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},s1=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)fb(t,n).matches!==null&&this.queries[n].setDirty()}},a1=class{constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=gO(t):this.predicate=t}},u1=class e{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},c1=class e{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,cO(n,o)),this.matchTNodeWithReadOption(t,n,pp(n,t,o,!1,!1))}else r===uu?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,pp(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Lr||i===Cs||i===uu&&n.type&4)this.addMatch(n.index,-2);else{let o=pp(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function cO(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function lO(e,t){return e.type&11?Lc(e,t):e.type&4?mm(e,t):null}function dO(e,t,n,r){return n===-1?lO(t,e):n===-2?fO(e,t,r):su(e,e[mt],n,t)}function fO(e,t,n){if(n===Lr)return Lc(t,e);if(n===uu)return mm(t,e);if(n===Cs)return PI(t,e)}function LI(e,t,n,r){let i=t[fs].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let u=0;s!==null&&u<s.length;u+=2){let d=s[u];if(d<0)a.push(null);else{let h=o[d];a.push(dO(t,h,s[u+1],n.metadata.read))}}i.matches=a}return i.matches}function l1(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=LI(e,t,i,n);for(let a=0;a<o.length;a+=2){let u=o[a];if(u>0)r.push(s[a/2]);else{let d=o[a+1],h=t[-u];for(let g=zr;g<h.length;g++){let y=h[g];y[tu]===y[vr]&&l1(y[mt],y,d,r)}if(h[Dc]!==null){let g=h[Dc];for(let y=0;y<g.length;y++){let m=g[y];l1(m[mt],m,d,r)}}}}}return r}function hO(e,t){return e[fs].queries[t].queryList}function pO(e,t,n){let r=new U0((n&4)===4);return oL(e,t,r,r.destroy),(t[fs]??=new s1).queries.push(new o1(r))-1}function mO(e,t,n){let r=En();return r.firstCreatePass&&(vO(r,new a1(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),pO(r,et(),t)}function gO(e){return e.split(",").map(t=>t.trim())}function vO(e,t,n){e.queries===null&&(e.queries=new u1),e.queries.track(new c1(t,n))}function fb(e,t){return e.queries.getByIndex(t)}function yO(e,t){let n=e[mt],r=fb(n,t);return r.crossesNgTemplate?l1(n,e,t,[]):LI(n,e,r,t)}var oC=new Set;function du(e){oC.has(e)||(oC.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function bO(e){return typeof e=="function"&&e[as]!==void 0}function kc(e,t){du("NgSignals");let n=G5(e),r=n[as];return t?.equal&&(r.equal=t.equal),n.set=i=>$y(r,i),n.update=i=>Y5(r,i),n.asReadonly=wO.bind(n),n}function wO(){let e=this[as];if(e.readonlyFn===void 0){let t=()=>this();t[as]=e,e.readonlyFn=t}return e.readonlyFn}function OI(e){return bO(e)&&typeof e.set=="function"}function DO(e){let t=[],n=new Map;function r(i){let o=n.get(i);if(!o){let s=e(i);n.set(i,o=s.then(SO))}return o}return jp.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(d=>{i.template=d}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let d=i.styles.length,h=i.styleUrls;i.styleUrls.forEach((g,y)=>{a.push(""),s.push(r(g).then(m=>{a[d+y]=m,h.splice(h.indexOf(g),1),h.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(d=>{a.push(d),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>_O(o));t.push(u)}),xO(),Promise.all(t).then(()=>{})}var jp=new Map,CO=new Set;function xO(){let e=jp;return jp=new Map,e}function IO(){return jp.size===0}function SO(e){return typeof e=="string"?e:e.text()}function _O(e){CO.delete(e)}function EO(e){return Object.getPrototypeOf(e.prototype).constructor}function Xn(e){let t=EO(e.type),n=!0,r=[e];for(;t;){let i;if(sa(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new $e(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=ap(e.inputs),s.inputTransforms=ap(e.inputTransforms),s.declaredInputs=ap(e.declaredInputs),s.outputs=ap(e.outputs);let a=i.hostBindings;a&&PO(e,a);let u=i.viewQuery,d=i.contentQueries;if(u&&MO(e,u),d&&TO(e,d),AO(e,i),rT(e.outputs,i.outputs),sa(i)&&i.data.animation){let h=e.data;h.animation=(h.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===Xn&&(n=!1)}}t=Object.getPrototypeOf(t)}NO(r)}function AO(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let i=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=t.inputTransforms[i]}}}function NO(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=gd(i.hostAttrs,n=gd(n,i.hostAttrs))}}function ap(e){return e===ds?{}:e===$r?[]:e}function MO(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function TO(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function PO(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function kW(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.findHostDirectiveDefs=kI,n.hostDirectives=r?e.map(d1):[e]):r?n.hostDirectives.unshift(...e.map(d1)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function kI(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r=="function"){let i=r();for(let o of i)sC(d1(o),t,n)}else sC(r,t,n)}function sC(e,t,n){let r=N1(e.directive);LO(r.declaredInputs,e.inputs),kI(r,t,n),n.set(r,e),t.push(r)}function d1(e){return typeof e=="function"?{directive:dr(e),inputs:ds,outputs:ds}:{directive:dr(e.directive),inputs:aC(e.inputs),outputs:aC(e.outputs)}}function aC(e){if(e===void 0||e.length===0)return ds;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function LO(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],i=e[n];e[r]=i}}function hb(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}var ua=class{},wd=class{};var Bp=class extends ua{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Fp(this);let o=BC(t);this._bootstrapComponents=Kx(o.bootstrap),this._r3Injector=Ex(t,n,[{provide:ua,useValue:this},{provide:Ic,useValue:this.componentFactoryResolver},...r],Nr(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Vp=class extends wd{constructor(t){super(),this.moduleType=t}create(t){return new Bp(this.moduleType,t,[])}};function OO(e,t,n){return new Bp(e,t,n,!1)}var f1=class extends ua{constructor(t){super(),this.componentFactoryResolver=new Fp(this),this.instance=null;let n=new vd([...t.providers,{provide:ua,useValue:this},{provide:Ic,useValue:this.componentFactoryResolver}],t.parent||T1(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function gm(e,t,n=null){return new f1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function RI(e){return RO(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function kO(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function RO(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function fu(e,t,n){return e[t]=n}function FI(e,t){return e[t]}function Wr(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Dd(e,t,n,r){let i=Wr(e,t,n);return Wr(e,t+1,r)||i}function jI(e,t,n,r,i){let o=Dd(e,t,n,r);return Wr(e,t+2,i)||o}function BI(e,t,n,r,i,o){let s=Dd(e,t,n,r);return Dd(e,t+2,i,o)||s}function FO(e){return(e.flags&32)===32}function jO(e,t,n,r,i,o,s,a,u){let d=t.consts,h=Oc(t,e,4,s||null,a||null);ib(t,n,h,Cc(d,u)),sm(t,h);let g=h.tView=rb(2,h,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,d,null);return t.queries!==null&&(t.queries.template(t,h),g.queries=t.queries.embeddedTView(h)),h}function VI(e,t,n,r,i,o,s,a,u,d){let h=n+Vn,g=t.firstCreatePass?jO(h,t,e,r,i,o,s,a,u):t.data[h];lu(g,!1);let y=VO(t,e,g,n);im()&&lm(t,e,y,g),aa(y,e);let m=yI(y,e,y,g);return e[h]=m,pm(e,m),aO(m,g,e),em(g)&&tb(t,e,g),u!=null&&nb(e,g,d),g}function BO(e,t,n,r,i,o,s,a){let u=et(),d=En(),h=Cc(d.consts,o);return VI(u,d,e,t,n,r,i,h,s,a),BO}var VO=UO;function UO(e,t,n,r){return om(!0),t[bn].createComment("")}var mc=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(mc||{}),UI=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=Ae({token:e,providedIn:"root",factory:()=>new e})}}return e})(),h1=class e{constructor(){this.ngZone=xe(on),this.scheduler=xe(xc),this.errorHandler=xe(hs,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[mc.EarlyRead,mc.Write,mc.MixedReadWrite,mc.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=Ae({token:e,providedIn:"root",factory:()=>new e})}},p1=class{constructor(t,n,r,i){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function pb(e,t){!t?.injector&&eP(pb);let n=t?.injector??xe(qr);return L3(n)?(du("NgAfterNextRender"),$O(e,n,t,!0)):zO}function HO(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function $O(e,t,n,r){let i=t.get(UI);i.impl??=t.get(h1);let o=n?.phase??mc.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(H1):null,a=new p1(i.impl,HO(e,o),r,s);return i.impl.register(a),a}var zO={destroy(){}};function hu(e,t,n,r){let i=et(),o=Tc();if(Wr(i,o,t)){let s=En(),a=Pc();vI(a,i,e,t,n,r)}return hu}function mb(e,t,n,r){return Wr(e,Tc(),n)?t+Po(n)+r:fr}function HI(e,t,n,r,i,o){let s=cx(),a=Dd(e,s,n,i);return rm(2),a?t+Po(n)+r+Po(i)+o:fr}function qO(e,t,n,r,i,o,s,a){let u=cx(),d=jI(e,u,n,i,s);return rm(3),d?t+Po(n)+r+Po(i)+o+Po(s)+a:fr}function WO(e,t,n,r,i,o,s,a){let u=et(),d=HI(u,t,n,r,i,o);if(d!==fr){let h=Pc();vI(h,u,e,d,s,a)}return WO}function up(e,t){return e<<17|t<<2}function cu(e){return e>>17&32767}function GO(e){return(e&2)==2}function YO(e,t){return e&131071|t<<17}function m1(e){return e|2}function Ec(e){return(e&131068)>>2}function y0(e,t){return e&-131069|t<<2}function ZO(e){return(e&1)===1}function g1(e){return e|1}function QO(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=cu(s),u=Ec(s);e[r]=n;let d=!1,h;if(Array.isArray(n)){let g=n;h=g[1],(h===null||Id(g,h)>0)&&(d=!0)}else h=n;if(i)if(u!==0){let y=cu(e[a+1]);e[r+1]=up(y,a),y!==0&&(e[y+1]=y0(e[y+1],r)),e[a+1]=YO(e[a+1],r)}else e[r+1]=up(a,0),a!==0&&(e[a+1]=y0(e[a+1],r)),a=r;else e[r+1]=up(u,0),a===0?a=r:e[u+1]=y0(e[u+1],r),u=r;d&&(e[r+1]=m1(e[r+1])),uC(e,h,r,!0),uC(e,h,r,!1),KO(t,h,e,r,o),s=up(a,u),o?t.classBindings=s:t.styleBindings=s}function KO(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Id(o,t)>=0&&(n[r+1]=g1(n[r+1]))}function uC(e,t,n,r){let i=e[n+1],o=t===null,s=r?cu(i):Ec(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],d=e[s+1];JO(u,t)&&(a=!0,e[s+1]=r?g1(d):m1(d)),s=r?cu(d):Ec(d)}a&&(e[n+1]=r?m1(i):g1(i))}function JO(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Id(e,t)>=0:!1}var Gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $I(e){return e.substring(Gn.key,Gn.keyEnd)}function XO(e){return e.substring(Gn.value,Gn.valueEnd)}function e4(e){return WI(e),zI(e,Ac(e,0,Gn.textEnd))}function zI(e,t){let n=Gn.textEnd;return n===t?-1:(t=Gn.keyEnd=n4(e,Gn.key=t,n),Ac(e,t,n))}function t4(e){return WI(e),qI(e,Ac(e,0,Gn.textEnd))}function qI(e,t){let n=Gn.textEnd,r=Gn.key=Ac(e,t,n);return n===r?-1:(r=Gn.keyEnd=r4(e,r,n),r=cC(e,r,n,58),r=Gn.value=Ac(e,r,n),r=Gn.valueEnd=i4(e,r,n),cC(e,r,n,59))}function WI(e){Gn.key=0,Gn.keyEnd=0,Gn.value=0,Gn.valueEnd=0,Gn.textEnd=e.length}function Ac(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function n4(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function r4(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function cC(e,t,n,r){return t=Ac(e,t,n),t<n&&t++,t}function i4(e,t,n){let r=-1,i=-1,o=-1,s=t,a=s;for(;s<n;){let u=e.charCodeAt(s++);if(u===59)return a;u===34||u===39?a=s=lC(e,u,s,n):t===s-4&&o===85&&i===82&&r===76&&u===40?a=s=lC(e,41,s,n):u>32&&(a=s),o=i,i=r,r=u&-33}return a}function lC(e,t,n,r){let i=-1,o=n;for(;o<r;){let s=e.charCodeAt(o++);if(s==t&&i!==92)return o;s==92&&i===92?i=0:i=s}throw new Error}function o4(e,t,n){let r=et(),i=Tc();if(Wr(r,i,t)){let o=En(),s=Pc();hm(o,s,r,e,t,r[bn],n,!1)}return o4}function v1(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";ob(e,n,o[s],s,r)}function GI(e,t,n){return YI(e,t,n,!1),GI}function vm(e,t){return YI(e,t,null,!0),vm}function RW(e){ZI(JI,s4,e,!1)}function s4(e,t){for(let n=t4(t);n>=0;n=qI(t,n))JI(e,$I(t),XO(t))}function a4(e,t){for(let n=e4(t);n>=0;n=zI(t,n))Zp(e,$I(t),!0)}function YI(e,t,n,r){let i=et(),o=En(),s=rm(2);if(o.firstUpdatePass&&KI(o,e,s,r),t!==fr&&Wr(i,s,t)){let a=o.data[ys()];XI(o,a,i,i[bn],e,i[s+1]=p4(t,n),r,s)}}function ZI(e,t,n,r){let i=En(),o=rm(2);i.firstUpdatePass&&KI(i,null,o,r);let s=et();if(n!==fr&&Wr(s,o,n)){let a=i.data[ys()];if(eS(a,r)&&!QI(i,o)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=C0(u,n||"")),v1(i,a,s,n,r)}else h4(i,a,s,s[bn],s[o+1],s[o+1]=f4(e,t,n),r,o)}}function QI(e,t){return t>=e.expandoStartIndex}function KI(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[ys()],s=QI(e,n);eS(o,r)&&t===null&&!s&&(t=!1),t=u4(i,o,t,r),QO(i,o,t,n,s,r)}}function u4(e,t,n,r){let i=CP(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=b0(null,e,t,n,r),n=Cd(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=b0(i,e,t,n,r),o===null){let u=c4(e,t,r);u!==void 0&&Array.isArray(u)&&(u=b0(null,e,t,u[1],r),u=Cd(u,t.attrs,r),l4(e,t,r,u))}else o=d4(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function c4(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Ec(r)!==0)return e[cu(r)]}function l4(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[cu(i)]=r}function d4(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Cd(r,s,n)}return Cd(r,t.attrs,n)}function b0(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=Cd(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Cd(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Zp(e,s,n?!0:t[++o]))}return e===void 0?null:e}function f4(e,t,n){if(n==null||n==="")return $r;let r=[],i=ai(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else typeof i=="string"&&t(r,i);return r}function JI(e,t,n){Zp(e,t,ai(n))}function h4(e,t,n,r,i,o,s,a){i===fr&&(i=$r);let u=0,d=0,h=0<i.length?i[0]:null,g=0<o.length?o[0]:null;for(;h!==null||g!==null;){let y=u<i.length?i[u+1]:void 0,m=d<o.length?o[d+1]:void 0,C=null,D;h===g?(u+=2,d+=2,y!==m&&(C=g,D=m)):g===null||h!==null&&h<g?(u+=2,C=h):(d+=2,C=g,D=m),C!==null&&XI(e,t,n,r,C,D,s,a),h=u<i.length?i[u]:null,g=d<o.length?o[d]:null}}function XI(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let u=e.data,d=u[a+1],h=ZO(d)?dC(u,t,n,i,Ec(d),s):void 0;if(!Up(h)){Up(o)||GO(d)&&(o=dC(u,null,n,i,a,s));let g=ex(ys(),n);K3(r,s,g,i,o)}}function dC(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let u=e[i],d=Array.isArray(u),h=d?u[1]:u,g=h===null,y=n[i+1];y===fr&&(y=g?$r:void 0);let m=g?c0(y,r):h===r?y:void 0;if(d&&!Up(m)&&(m=c0(u,r)),Up(m)&&(a=m,s))return a;let C=e[i+1];i=s?cu(C):Ec(C)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=c0(u,r))}return a}function Up(e){return e!==void 0}function p4(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Nr(ai(e)))),e}function eS(e,t){return(e.flags&(t?8:16))!==0}function FW(e,t,n){let r=et(),i=mb(r,e,t,n);ZI(Zp,a4,i,!0)}function jW(e,t){du("NgControlFlow");let n=et(),r=Tc(),i=n[r]!==fr?n[r]:-1,o=i!==-1?fC(n,Vn+i):void 0,s=0;if(Wr(n,r,e)){let a=Et(null);try{if(o!==void 0&&EL(o,s),e!==-1){let u=Vn+e,d=fC(n,u),h=m4(n[mt],u),g=Op(d,h.tView.ssrId),y=ub(n,h,t,{dehydratedView:g});cb(d,y,s,Pp(h,g))}}finally{Et(a)}}else if(o!==void 0){let a=_L(o,s);a!==void 0&&(a[Si]=t)}}function fC(e,t){return e[t]}function m4(e,t){return L1(e,t)}function g4(e,t,n,r,i,o){let s=t.consts,a=Cc(s,i),u=Oc(t,e,2,r,a);return ib(t,n,u,Cc(s,o)),u.attrs!==null&&Rp(u,u.attrs,!1),u.mergedAttrs!==null&&Rp(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function tS(e,t,n,r){let i=et(),o=En(),s=Vn+e,a=i[bn],u=o.firstCreatePass?g4(s,o,i,t,n,r):o.data[s],d=v4(o,i,u,a,t,e);i[s]=d;let h=em(u);return lu(u,!0),uI(a,d,u),!FO(u)&&im()&&lm(o,i,d,u),dP()===0&&aa(d,i),fP(),h&&(tb(o,i,u),eb(o,u,i)),r!==null&&nb(i,u),tS}function nS(){let e=br();k1()?R1():(e=e.parent,lu(e,!1));let t=e;pP(t)&&mP(),hP();let n=En();return n.firstCreatePass&&(sm(n,e),P1(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&NP(t)&&v1(n,t,et(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&MP(t)&&v1(n,t,et(),t.stylesWithoutHost,!1),nS}function gb(e,t,n,r){return tS(e,t,n,r),nS(),gb}var v4=(e,t,n,r,i,o)=>(om(!0),Jx(r,i,SP()));function y4(e,t,n,r,i){let o=t.consts,s=Cc(o,r),a=Oc(t,e,8,"ng-container",s);s!==null&&Rp(a,s,!0);let u=Cc(o,i);return ib(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function rS(e,t,n){let r=et(),i=En(),o=e+Vn,s=i.firstCreatePass?y4(o,i,r,t,n):i.data[o];lu(s,!0);let a=w4(i,r,s,e);return r[o]=a,im()&&lm(i,r,a,s),aa(a,r),em(s)&&(tb(i,r,s),eb(i,s,r)),n!=null&&nb(r,s),rS}function iS(){let e=br(),t=En();return k1()?R1():(e=e.parent,lu(e,!1)),t.firstCreatePass&&(sm(t,e),P1(e)&&t.queries.elementEnd(e)),iS}function b4(e,t,n){return rS(e,t,n),iS(),b4}var w4=(e,t,n,r)=>(om(!0),F3(t[bn],""));function BW(){return et()}function D4(e,t,n){let r=et(),i=Tc();if(Wr(r,i,t)){let o=En(),s=Pc();hm(o,s,r,e,t,r[bn],n,!0)}return D4}var Ja=void 0;function C4(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var x4=["en",[["a","p"],["AM","PM"],Ja],[["AM","PM"],Ja,Ja],[["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"]],Ja,[["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"]],Ja,[["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}, {0}",Ja,"{1} 'at' {0}",Ja],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",C4],hd={};function oS(e,t,n){typeof t!="string"&&(n=t,t=e[mn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),hd[t]=e,n&&(hd[t][mn.ExtraData]=n)}function Yr(e){let t=I4(e),n=hC(t);if(n)return n;let r=t.split("-")[0];if(n=hC(r),n)return n;if(r==="en")return x4;throw new $e(701,!1)}function hC(e){return e in hd||(hd[e]=lr.ng&&lr.ng.common&&lr.ng.common.locales&&lr.ng.common.locales[e]),hd[e]}var mn=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(mn||{});function I4(e){return e.toLowerCase().replace(/_/g,"-")}var Hp="en-US",S4="USD";var _4=Hp;function E4(e){typeof e=="string"&&(_4=e.toLowerCase().replace(/_/g,"-"))}var A4=(e,t,n)=>{};function ao(e,t,n,r){let i=et(),o=En(),s=br();return sS(o,i,i[bn],s,e,t,r),ao}function N4(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[wp],u=i[o+2];return a.length>u?a[u]:null}typeof s=="string"&&(o+=2)}return null}function sS(e,t,n,r,i,o,s){let a=em(r),d=e.firstCreatePass&&DI(e),h=t[Si],g=wI(t),y=!0;if(r.type&3||s){let D=Ni(r,t),N=s?s(D):D,I=g.length,P=s?J=>s(ko(J[r.index])):r.index,B=null;if(!s&&a&&(B=N4(e,t,i,r.index)),B!==null){let J=B.__ngLastListenerFn__||B;J.__ngNextListenerFn__=o,B.__ngLastListenerFn__=o,y=!1}else{o=mC(r,t,h,o),A4(D,i,o);let J=n.listen(N,i,o);g.push(o,J),d&&d.push(i,P,I,I+1)}}else o=mC(r,t,h,o);let m=r.outputs,C;if(y&&m!==null&&(C=m[i])){let D=C.length;if(D)for(let N=0;N<D;N+=2){let I=C[N],P=C[N+1],ie=t[I][P].subscribe(o),me=g.length;g.push(o,ie),d&&d.push(i,r.index,me,-(me+1))}}}function pC(e,t,n,r){let i=Et(null);try{return Mo(6,t,n),n(r)!==!1}catch(o){return CI(e,o),!1}finally{Mo(7,t,n),Et(i)}}function mC(e,t,n,r){return function i(o){if(o===Function)return r;let s=e.componentOffset>-1?la(e.index,t):t;lb(s,5);let a=pC(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=pC(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function VW(e=1){return IP(e)}function M4(e,t){let n=null,r=LT(e);for(let i=0;i<t.length;i++){let o=t[i];if(o==="*"){n=i;continue}if(r===null?kC(e,o,!0):RT(r,o))return i}return n}function UW(e){let t=et()[_i][Gr];if(!t.projection){let n=e?e.length:1,r=t.projection=IT(n,null),i=r.slice(),o=t.child;for(;o!==null;){if(o.type!==128){let s=e?M4(o,e):0;s!==null&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}}function HW(e,t=0,n,r,i,o){let s=et(),a=En(),u=r?e+1:null;u!==null&&VI(s,a,u,r,i,o,null,n);let d=Oc(a,Vn+e,16,null,n||null);d.projection===null&&(d.projection=t),R1();let g=!s[yd]||sx();s[_i][Gr].projection[d.projection]===null&&u!==null?T4(s,a,u):g&&(d.flags&32)!==32&&Z3(a,s,d)}function T4(e,t,n){let r=Vn+n,i=t.data[r],o=e[r],s=Op(o,i.tView.ssrId),a=ub(e,i,void 0,{dehydratedView:s});cb(o,a,0,Pp(i,s))}function P4(e,t,n){return aS(e,"",t,"",n),P4}function aS(e,t,n,r,i){let o=et(),s=mb(o,t,n,r);if(s!==fr){let a=En(),u=Pc();hm(a,u,o,e,s,o[bn],i,!1)}return aS}function $W(e,t,n){mO(e,t,n)}function L4(e){let t=et(),n=En(),r=lx();F1(r+1);let i=fb(n,r);if(e.dirty&&aP(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=yO(t,r);e.reset(o,JP),e.notifyOnChanges()}return!0}return!1}function O4(){return hO(et(),lx())}function k4(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function zW(e){let t=vP();return Mc(t,Vn+e)}function qW(e,t=""){let n=et(),r=En(),i=e+Vn,o=r.firstCreatePass?Oc(r,i,1,t,null):r.data[i],s=R4(r,n,o,t,e);n[i]=s,im()&&lm(r,n,s,o),lu(o,!1)}var R4=(e,t,n,r,i)=>(om(!0),k3(t[bn],r));function F4(e){return uS("",e,""),F4}function uS(e,t,n){let r=et(),i=mb(r,e,t,n);return i!==fr&&sb(r,ys(),i),uS}function j4(e,t,n,r,i){let o=et(),s=HI(o,e,t,n,r,i);return s!==fr&&sb(o,ys(),s),j4}function B4(e,t,n,r,i,o,s){let a=et(),u=qO(a,e,t,n,r,i,o,s);return u!==fr&&sb(a,ys(),u),B4}function V4(e,t,n){OI(t)&&(t=t());let r=et(),i=Tc();if(Wr(r,i,t)){let o=En(),s=Pc();hm(o,s,r,e,t,r[bn],n,!1)}return V4}function WW(e,t){let n=OI(e);return n&&e.set(t),n}function U4(e,t){let n=et(),r=En(),i=br();return sS(r,n,n[bn],i,e,t),U4}function H4(e,t,n){let r=En();if(r.firstCreatePass){let i=sa(e);y1(n,r.data,r.blueprint,i,!0),y1(t,r.data,r.blueprint,i,!1)}}function y1(e,t,n,r,i){if(e=dr(e),Array.isArray(e))for(let o=0;o<e.length;o++)y1(e[o],t,n,r,i);else{let o=En(),s=et(),a=br(),u=bc(e)?e:dr(e.provide),d=qC(e),h=a.providerIndexes&1048575,g=a.directiveStart,y=a.providerIndexes>>20;if(bc(e)||!e.multi){let m=new ou(d,i,ze),C=D0(u,t,i?h:h+y,g);C===-1?(R0(_p(a,s),o,u),w0(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[C]=m,s[C]=m)}else{let m=D0(u,t,h+y,g),C=D0(u,t,h,h+y),D=m>=0&&n[m],N=C>=0&&n[C];if(i&&!N||!i&&!D){R0(_p(a,s),o,u);let I=q4(i?z4:$4,n.length,i,r,d);!i&&N&&(n[C].providerFactory=I),w0(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=cS(n[i?C:m],d,!i&&r);w0(o,e,m>-1?m:C,I)}!i&&r&&N&&n[C].componentProviders++}}}function w0(e,t,n,r){let i=bc(t),o=GT(t);if(i||o){let u=(o?dr(t.useClass):t).prototype.ngOnDestroy;if(u){let d=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let h=d.indexOf(n);h===-1?d.push(n,[r,u]):d[h+1].push(r,u)}else d.push(n,u)}}}function cS(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function D0(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function $4(e,t,n,r){return b1(this.multi,[])}function z4(e,t,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=su(n,n[mt],this.providerFactory.index,r);o=a.slice(0,s),b1(i,o);for(let u=s;u<a.length;u++)o.push(a[u])}else o=[],b1(i,o);return o}function b1(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function q4(e,t,n,r,i){let o=new ou(e,n,ze);return o.multi=[],o.index=t,o.componentProviders=0,cS(o,i,r&&!n),o}function Zr(e,t=[]){return n=>{n.providersResolver=(r,i)=>H4(r,i?i(e):e,t)}}var W4=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=HC(!1,n.type),i=r.length>0?gm([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=Ae({token:e,providedIn:"environment",factory:()=>new e(Ne(Mr))})}}return e})();function lS(e){du("NgStandalone"),e.getStandaloneInjector=t=>t.get(W4).getOrCreateStandaloneInjector(e)}function GW(e,t,n){let r=io()+e,i=et();return i[r]===fr?fu(i,r,n?t.call(n):t()):FI(i,r)}function YW(e,t,n,r){return dS(et(),io(),e,t,n,r)}function ZW(e,t,n,r,i){return fS(et(),io(),e,t,n,r,i)}function QW(e,t,n,r,i,o){return hS(et(),io(),e,t,n,r,i,o)}function KW(e,t,n,r,i,o,s){return pS(et(),io(),e,t,n,r,i,o,s)}function JW(e,t,n,r,i,o,s,a){let u=io()+e,d=et(),h=BI(d,u,n,r,i,o);return Wr(d,u+4,s)||h?fu(d,u+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):FI(d,u+5)}function _d(e,t){let n=e[t];return n===fr?void 0:n}function dS(e,t,n,r,i,o){let s=t+n;return Wr(e,s,i)?fu(e,s+1,o?r.call(o,i):r(i)):_d(e,s+1)}function fS(e,t,n,r,i,o,s){let a=t+n;return Dd(e,a,i,o)?fu(e,a+2,s?r.call(s,i,o):r(i,o)):_d(e,a+2)}function hS(e,t,n,r,i,o,s,a){let u=t+n;return jI(e,u,i,o,s)?fu(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):_d(e,u+3)}function pS(e,t,n,r,i,o,s,a,u){let d=t+n;return BI(e,d,i,o,s,a)?fu(e,d+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):_d(e,d+4)}function G4(e,t,n,r,i,o){let s=t+n,a=!1;for(let u=0;u<i.length;u++)Wr(e,s++,i[u])&&(a=!0);return a?fu(e,s,r.apply(o,i)):_d(e,s)}function XW(e,t){let n=En(),r,i=e+Vn;n.firstCreatePass?(r=Y4(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=eu(r.type,!0)),s,a=Hr(ze);try{let u=Sp(!1),d=o();return Sp(u),k4(n,et(),i,d),d}finally{Hr(a)}}function Y4(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function eG(e,t,n){let r=e+Vn,i=et(),o=Mc(i,r);return Ed(i,r)?dS(i,io(),t,o.transform,n,o):o.transform(n)}function tG(e,t,n,r){let i=e+Vn,o=et(),s=Mc(o,i);return Ed(o,i)?fS(o,io(),t,s.transform,n,r,s):s.transform(n,r)}function nG(e,t,n,r,i){let o=e+Vn,s=et(),a=Mc(s,o);return Ed(s,o)?hS(s,io(),t,a.transform,n,r,i,a):a.transform(n,r,i)}function rG(e,t,n,r,i,o){let s=e+Vn,a=et(),u=Mc(a,s);return Ed(a,s)?pS(a,io(),t,u.transform,n,r,i,o,u):u.transform(n,r,i,o)}function iG(e,t,n){let r=e+Vn,i=et(),o=Mc(i,r);return Ed(i,r)?G4(i,io(),t,o.transform,n,o):o.transform.apply(o,n)}function Ed(e,t){return e[mt].data[t].pure}function oG(e,t){return mm(e,t)}var cp=null;function Z4(e){cp!==null&&(e.defaultEncapsulation!==cp.defaultEncapsulation||e.preserveWhitespaces!==cp.preserveWhitespaces)||(cp=e)}var ym=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var vb=new He(""),Ad=new He(""),bm=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,yb||(Q4(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{on.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static{this.\u0275fac=function(r){return new(r||e)(Ne(on),Ne(wm),Ne(Ad))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),wm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return yb?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function Q4(e){yb=e}var yb;function da(e){return!!e&&typeof e.then=="function"}function bb(e){return!!e&&typeof e.subscribe=="function"}var Dm=new He(""),mS=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=xe(Dm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(da(o))n.push(o);else if(bb(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Cm=new He("");function K4(){W5(()=>{throw new $e(600,!1)})}function J4(e){return e.isBoundToModule}var X4=10;function ek(e,t,n){try{let r=n();return da(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function gS(e,t){return Array.isArray(t)?t.reduce(gS,e):K(K({},e),t)}var xs=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=xe(QP),this.afterRenderManager=xe(UI),this.zonelessEnabled=xe(db),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new kt,this.afterTick=new kt,this.componentTypes=[],this.components=[],this.isStable=xe(bs).hasPendingTasks.pipe(_e(n=>!n)),this._injector=xe(Mr)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof kp;if(!this._injector.get(mS).done){let y=!i&&jC(n),m=!1;throw new $e(405,m)}let s;i?s=n:s=this._injector.get(Ic).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=J4(s)?void 0:this._injector.get(ua),u=r||s.selector,d=s.create(qr.NULL,[],u,a),h=d.location.nativeElement,g=d.injector.get(vb,null);return g?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),mp(this.components,d),g?.unregisterApplication(h)}),this._loadComponent(d),d}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new $e(101,!1);let n=Et(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,Et(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Sc,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<X4;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)tk(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>tm(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;mp(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Cm,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>mp(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new $e(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function mp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tk(e,t,n,r){if(!n&&!tm(e))return;SI(e,t,n&&!r?0:1)}var w1=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},xm=(()=>{class e{compileModuleSync(n){return new Vp(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=BC(n),o=Kx(i.declarations).reduce((s,a)=>{let u=oa(a);return u&&s.push(new _c(u)),s},[]);return new w1(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),nk=new He("");function rk(e,t,n){let r=new Vp(n);return Promise.resolve(r)}function gC(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var ik=(()=>{class e{constructor(){this.zone=xe(on),this.changeDetectionScheduler=xe(xc),this.applicationRef=xe(xs)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ok({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new on(Re(K({},vS()),{scheduleInRootZone:n})),[{provide:on,useFactory:e},{provide:yc,multi:!0,useFactory:()=>{let r=xe(ik,{optional:!0});return()=>r.initialize()}},{provide:yc,multi:!0,useFactory:()=>{let r=xe(sk);return()=>{r.initialize()}}},t===!0?{provide:NI,useValue:!0}:[],{provide:MI,useValue:n??Ax}]}function vS(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var sk=(()=>{class e{constructor(){this.subscription=new _n,this.initialized=!1,this.zone=xe(on),this.pendingTasks=xe(bs)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{on.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{on.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ak=(()=>{class e{constructor(){this.appRef=xe(xs),this.taskService=xe(bs),this.ngZone=xe(on),this.zonelessEnabled=xe(db),this.disableScheduling=xe(NI,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new _n,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ap):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(xe(MI,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Np||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?$D:Nx;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ap+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,$D(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function uk(){return typeof $localize<"u"&&$localize.locale||Hp}var Rc=new He("",{providedIn:"root",factory:()=>xe(Rc,Ct.Optional|Ct.SkipSelf)||uk()}),yS=new He("",{providedIn:"root",factory:()=>S4});var $p=new He("");function lp(e){return!e.moduleRef}function ck(e){let t=lp(e)?e.r3Injector:e.moduleRef.injector,n=t.get(on);return n.run(()=>{lp(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(hs,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),lp(e)){let o=()=>t.destroy(),s=e.platformInjector.get($p);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get($p);s.add(o),e.moduleRef.onDestroy(()=>{mp(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return ek(r,n,()=>{let o=t.get(mS);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Rc,Hp);if(E4(s||Hp),lp(e)){let a=t.get(xs);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return lk(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function lk(e,t){let n=e.injector.get(xs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new $e(-403,!1);t.push(e)}var bS=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let i=r?.scheduleInRootZone,o=()=>ZP(r?.ngZone,Re(K({},vS({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),s=r?.ignoreChangesOutsideZone,a=[ok({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:xc,useExisting:ak}],u=OO(n.moduleType,this.injector,a);return ck({moduleRef:u,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let i=gS({},r);return rk(this.injector,i,n).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new $e(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get($p,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(Ne(qr))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),pd=null,wS=new He("");function dk(e){if(pd&&!pd.get(wS,!1))throw new $e(400,!1);K4(),pd=e;let t=e.get(bS);return pk(e),t}function wb(e,t,n=[]){let r=`Platform: ${t}`,i=new He(r);return(o=[])=>{let s=DS();if(!s||s.injector.get(wS,!1)){let a=[...n,...o,{provide:i,useValue:!0}];e?e(a):dk(fk(a,r))}return hk(i)}}function fk(e=[],t){return qr.create({name:t,providers:[{provide:Kp,useValue:"platform"},{provide:$p,useValue:new Set([()=>pd=null])},...e]})}function hk(e){let t=DS();if(!t)throw new $e(401,!1);return t}function DS(){return pd?.get(bS)??null}function pk(e){e.get(q1,null)?.forEach(n=>n())}var fa=(()=>{class e{static{this.__NG_ELEMENT_ID__=mk}}return e})();function mk(e){return gk(br(),et(),(e&16)===16)}function gk(e,t,n){if(Xp(e)&&!n){let r=la(e.index,t);return new au(r,r)}else if(e.type&175){let r=t[_i];return new au(r,t)}return null}var D1=class{constructor(){}supports(t){return RI(t)}create(t){return new C1(t)}},vk=(e,t)=>t,C1=class{constructor(t){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=t||vk}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex<vC(r,i,o)?n:r,a=vC(s,i,o),u=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)i++;else{o||(o=[]);let d=a-i,h=u-i;if(d!=h){for(let y=0;y<d;y++){let m=y<o.length?o[y]:o[y]=0,C=m+y;h<=C&&C<d&&(o[y]=m+1)}let g=s.previousIndex;o[g]=h-d}}a!==u&&t(s,a,u)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!RI(t))throw new $e(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,i,o,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,o,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,o,s,a)),Object.is(n.item,o)||this._addIdentityChange(n,o)),n=n._next}else i=0,kO(t,a=>{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new x1(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new zp),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new zp),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},x1=class{constructor(t,n){this.item=t,this.trackById=n,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}},I1=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},zp=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new I1,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vC(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function yC(){return new Db([new D1])}var Db=(()=>{class e{static{this.\u0275prov=Ae({token:e,providedIn:"root",factory:yC})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||yC()),deps:[[e,new _1,new Yp]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new $e(901,!1)}}return e})();var CS=wb(null,"core",[]),xS=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(Ne(xs))}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({})}}return e})();function ha(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Fc(e,t){du("NgSignals");let n=$5(e);return t?.equal&&(n[as].equal=t.equal),n}function Ti(e){let t=Et(null);try{return e()}finally{Et(t)}}function IS(e){let t=oa(e);if(!t)return null;let n=new _c(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var LS=null;function co(){return LS}function OS(e){LS??=e}var Pm=class{};var er=new He(""),kb=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>xe(bk),providedIn:"platform"})}}return e})(),kS=new He(""),bk=(()=>{class e extends kb{constructor(){super(),this._doc=xe(er),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return co().getBaseHref(this._doc)}onPopState(n){let r=co().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=co().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Rb(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function SS(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ss(e){return e&&e[0]!=="?"?"?"+e:e}var Es=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>xe(Fb),providedIn:"root"})}}return e})(),RS=new He(""),Fb=(()=>{class e extends Es{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??xe(er).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Rb(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Ss(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Ss(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Ss(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(Ne(kb),Ne(RS,8))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),FS=(()=>{class e extends Es{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Rb(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Ss(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Ss(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(Ne(kb),Ne(RS,8))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),Bc=(()=>{class e{constructor(n){this._subject=new yn,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Ck(SS(_S(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Ss(r))}normalize(n){return e.stripTrailingSlash(Dk(this._basePath,_S(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ss(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ss(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=Ss}static{this.joinWithSlash=Rb}static{this.stripTrailingSlash=SS}static{this.\u0275fac=function(r){return new(r||e)(Ne(Es))}}static{this.\u0275prov=Ae({token:e,factory:()=>wk(),providedIn:"root"})}}return e})();function wk(){return new Bc(Ne(Es))}function Dk(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function _S(e){return e.replace(/\/index.html$/,"")}function Ck(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var jS={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,void 0,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"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],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]},jb=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(jb||{});var Or=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Or||{}),cn=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(cn||{}),ui=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(ui||{}),wr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function xk(e){return Yr(e)[mn.LocaleId]}function Ik(e,t,n){let r=Yr(e),i=[r[mn.DayPeriodsFormat],r[mn.DayPeriodsStandalone]],o=Pi(i,t);return Pi(o,n)}function Sk(e,t,n){let r=Yr(e),i=[r[mn.DaysFormat],r[mn.DaysStandalone]],o=Pi(i,t);return Pi(o,n)}function _k(e,t,n){let r=Yr(e),i=[r[mn.MonthsFormat],r[mn.MonthsStandalone]],o=Pi(i,t);return Pi(o,n)}function Ek(e,t){let r=Yr(e)[mn.Eras];return Pi(r,t)}function Im(e,t){let n=Yr(e);return Pi(n[mn.DateFormat],t)}function Sm(e,t){let n=Yr(e);return Pi(n[mn.TimeFormat],t)}function _m(e,t){let r=Yr(e)[mn.DateTimeFormat];return Pi(r,t)}function Fo(e,t){let n=Yr(e),r=n[mn.NumberSymbols][t];if(typeof r>"u"){if(t===wr.CurrencyDecimal)return n[mn.NumberSymbols][wr.Decimal];if(t===wr.CurrencyGroup)return n[mn.NumberSymbols][wr.Group]}return r}function BS(e,t){return Yr(e)[mn.NumberFormats][t]}function Ak(e){return Yr(e)[mn.Currencies]}function VS(e){if(!e[mn.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[mn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Nk(e){let t=Yr(e);return VS(t),(t[mn.ExtraData][2]||[]).map(r=>typeof r=="string"?Cb(r):[Cb(r[0]),Cb(r[1])])}function Mk(e,t,n){let r=Yr(e);VS(r);let i=[r[mn.ExtraData][0],r[mn.ExtraData][1]],o=Pi(i,t)||[];return Pi(o,n)||[]}function Pi(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Cb(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}function Tk(e,t,n="en"){let r=Ak(n)[e]||jS[e]||[],i=r[1];return t==="narrow"&&typeof i=="string"?i:r[0]||e}var Pk=2;function Lk(e){let t,n=jS[e];return n&&(t=n[2]),typeof t=="number"?t:Pk}var Ok=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Em={},kk=/((?:[^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]*)/,_s=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(_s||{}),Ht=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(Ht||{}),Ut=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(Ut||{});function Rk(e,t,n,r){let i=qk(e);t=Is(n,t)||t;let s=[],a;for(;t;)if(a=kk.exec(t),a){s=s.concat(a.slice(1));let h=s.pop();if(!h)break;t=h}else{s.push(t);break}let u=i.getTimezoneOffset();r&&(u=HS(r,u),i=zk(i,r,!0));let d="";return s.forEach(h=>{let g=Hk(h);d+=g?g(i,n,u):h==="''"?"'":h.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function Lm(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Is(e,t){let n=xk(e);if(Em[n]??={},Em[n][t])return Em[n][t];let r="";switch(t){case"shortDate":r=Im(e,ui.Short);break;case"mediumDate":r=Im(e,ui.Medium);break;case"longDate":r=Im(e,ui.Long);break;case"fullDate":r=Im(e,ui.Full);break;case"shortTime":r=Sm(e,ui.Short);break;case"mediumTime":r=Sm(e,ui.Medium);break;case"longTime":r=Sm(e,ui.Long);break;case"fullTime":r=Sm(e,ui.Full);break;case"short":let i=Is(e,"shortTime"),o=Is(e,"shortDate");r=Am(_m(e,ui.Short),[i,o]);break;case"medium":let s=Is(e,"mediumTime"),a=Is(e,"mediumDate");r=Am(_m(e,ui.Medium),[s,a]);break;case"long":let u=Is(e,"longTime"),d=Is(e,"longDate");r=Am(_m(e,ui.Long),[u,d]);break;case"full":let h=Is(e,"fullTime"),g=Is(e,"fullDate");r=Am(_m(e,ui.Full),[h,g]);break}return r&&(Em[n][t]=r),r}function Am(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function uo(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function Fk(e,t){return uo(e,3).substring(0,t)}function Un(e,t,n=0,r=!1,i=!1){return function(o,s){let a=jk(e,o);if((n>0||a>-n)&&(a+=n),e===Ht.Hours)a===0&&n===-12&&(a=12);else if(e===Ht.FractionalSeconds)return Fk(a,t);let u=Fo(s,wr.MinusSign);return uo(a,t,u,r,i)}}function jk(e,t){switch(e){case Ht.FullYear:return t.getFullYear();case Ht.Month:return t.getMonth();case Ht.Date:return t.getDate();case Ht.Hours:return t.getHours();case Ht.Minutes:return t.getMinutes();case Ht.Seconds:return t.getSeconds();case Ht.FractionalSeconds:return t.getMilliseconds();case Ht.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function pn(e,t,n=Or.Format,r=!1){return function(i,o){return Bk(i,o,e,t,n,r)}}function Bk(e,t,n,r,i,o){switch(n){case Ut.Months:return _k(t,i,r)[e.getMonth()];case Ut.Days:return Sk(t,i,r)[e.getDay()];case Ut.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(o){let d=Nk(t),h=Mk(t,i,r),g=d.findIndex(y=>{if(Array.isArray(y)){let[m,C]=y,D=s>=m.hours&&a>=m.minutes,N=s<C.hours||s===C.hours&&a<C.minutes;if(m.hours<C.hours){if(D&&N)return!0}else if(D||N)return!0}else if(y.hours===s&&y.minutes===a)return!0;return!1});if(g!==-1)return h[g]}return Ik(t,i,r)[s<12?0:1];case Ut.Eras:return Ek(t,r)[e.getFullYear()<=0?0:1];default:let u=n;throw new Error(`unexpected translation type ${u}`)}}function Nm(e){return function(t,n,r){let i=-1*r,o=Fo(n,wr.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case _s.Short:return(i>=0?"+":"")+uo(s,2,o)+uo(Math.abs(i%60),2,o);case _s.ShortGMT:return"GMT"+(i>=0?"+":"")+uo(s,1,o);case _s.Long:return"GMT"+(i>=0?"+":"")+uo(s,2,o)+":"+uo(Math.abs(i%60),2,o);case _s.Extended:return r===0?"Z":(i>=0?"+":"")+uo(s,2,o)+":"+uo(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var Vk=0,Tm=4;function Uk(e){let t=Lm(e,Vk,1).getDay();return Lm(e,0,1+(t<=Tm?Tm:Tm+7)-t)}function US(e){let t=e.getDay(),n=t===0?-3:Tm-t;return Lm(e.getFullYear(),e.getMonth(),e.getDate()+n)}function xb(e,t=!1){return function(n,r){let i;if(t){let o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{let o=US(n),s=Uk(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return uo(i,e,Fo(r,wr.MinusSign))}}function Mm(e,t=!1){return function(n,r){let o=US(n).getFullYear();return uo(o,e,Fo(r,wr.MinusSign),t)}}var Ib={};function Hk(e){if(Ib[e])return Ib[e];let t;switch(e){case"G":case"GG":case"GGG":t=pn(Ut.Eras,cn.Abbreviated);break;case"GGGG":t=pn(Ut.Eras,cn.Wide);break;case"GGGGG":t=pn(Ut.Eras,cn.Narrow);break;case"y":t=Un(Ht.FullYear,1,0,!1,!0);break;case"yy":t=Un(Ht.FullYear,2,0,!0,!0);break;case"yyy":t=Un(Ht.FullYear,3,0,!1,!0);break;case"yyyy":t=Un(Ht.FullYear,4,0,!1,!0);break;case"Y":t=Mm(1);break;case"YY":t=Mm(2,!0);break;case"YYY":t=Mm(3);break;case"YYYY":t=Mm(4);break;case"M":case"L":t=Un(Ht.Month,1,1);break;case"MM":case"LL":t=Un(Ht.Month,2,1);break;case"MMM":t=pn(Ut.Months,cn.Abbreviated);break;case"MMMM":t=pn(Ut.Months,cn.Wide);break;case"MMMMM":t=pn(Ut.Months,cn.Narrow);break;case"LLL":t=pn(Ut.Months,cn.Abbreviated,Or.Standalone);break;case"LLLL":t=pn(Ut.Months,cn.Wide,Or.Standalone);break;case"LLLLL":t=pn(Ut.Months,cn.Narrow,Or.Standalone);break;case"w":t=xb(1);break;case"ww":t=xb(2);break;case"W":t=xb(1,!0);break;case"d":t=Un(Ht.Date,1);break;case"dd":t=Un(Ht.Date,2);break;case"c":case"cc":t=Un(Ht.Day,1);break;case"ccc":t=pn(Ut.Days,cn.Abbreviated,Or.Standalone);break;case"cccc":t=pn(Ut.Days,cn.Wide,Or.Standalone);break;case"ccccc":t=pn(Ut.Days,cn.Narrow,Or.Standalone);break;case"cccccc":t=pn(Ut.Days,cn.Short,Or.Standalone);break;case"E":case"EE":case"EEE":t=pn(Ut.Days,cn.Abbreviated);break;case"EEEE":t=pn(Ut.Days,cn.Wide);break;case"EEEEE":t=pn(Ut.Days,cn.Narrow);break;case"EEEEEE":t=pn(Ut.Days,cn.Short);break;case"a":case"aa":case"aaa":t=pn(Ut.DayPeriods,cn.Abbreviated);break;case"aaaa":t=pn(Ut.DayPeriods,cn.Wide);break;case"aaaaa":t=pn(Ut.DayPeriods,cn.Narrow);break;case"b":case"bb":case"bbb":t=pn(Ut.DayPeriods,cn.Abbreviated,Or.Standalone,!0);break;case"bbbb":t=pn(Ut.DayPeriods,cn.Wide,Or.Standalone,!0);break;case"bbbbb":t=pn(Ut.DayPeriods,cn.Narrow,Or.Standalone,!0);break;case"B":case"BB":case"BBB":t=pn(Ut.DayPeriods,cn.Abbreviated,Or.Format,!0);break;case"BBBB":t=pn(Ut.DayPeriods,cn.Wide,Or.Format,!0);break;case"BBBBB":t=pn(Ut.DayPeriods,cn.Narrow,Or.Format,!0);break;case"h":t=Un(Ht.Hours,1,-12);break;case"hh":t=Un(Ht.Hours,2,-12);break;case"H":t=Un(Ht.Hours,1);break;case"HH":t=Un(Ht.Hours,2);break;case"m":t=Un(Ht.Minutes,1);break;case"mm":t=Un(Ht.Minutes,2);break;case"s":t=Un(Ht.Seconds,1);break;case"ss":t=Un(Ht.Seconds,2);break;case"S":t=Un(Ht.FractionalSeconds,1);break;case"SS":t=Un(Ht.FractionalSeconds,2);break;case"SSS":t=Un(Ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Nm(_s.Short);break;case"ZZZZZ":t=Nm(_s.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Nm(_s.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Nm(_s.Long);break;default:return null}return Ib[e]=t,t}function HS(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function $k(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function zk(e,t,n){let r=n?-1:1,i=e.getTimezoneOffset(),o=HS(t,i);return $k(e,r*(o-i))}function qk(e){if(ES(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(a=>+a);return Lm(i,o-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Ok))return Wk(r)}let t=new Date(e);if(!ES(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function Wk(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),d=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(t,s,a,u,d),t}function ES(e){return e instanceof Date&&!isNaN(e.valueOf())}var Gk=/^(\d+)?\.((\d+)(-(\d+))?)?$/,AS=22,Om=".",Nd="0",Yk=";",Zk=",",Sb="#",NS="\xA4";function $S(e,t,n,r,i,o,s=!1){let a="",u=!1;if(!isFinite(e))a=Fo(n,wr.Infinity);else{let d=Xk(e);s&&(d=Jk(d));let h=t.minInt,g=t.minFrac,y=t.maxFrac;if(o){let P=o.match(Gk);if(P===null)throw new Error(`${o} is not a valid digit info`);let B=P[1],J=P[3],ie=P[5];B!=null&&(h=_b(B)),J!=null&&(g=_b(J)),ie!=null?y=_b(ie):J!=null&&g>y&&(y=g)}eR(d,g,y);let m=d.digits,C=d.integerLen,D=d.exponent,N=[];for(u=m.every(P=>!P);C<h;C++)m.unshift(0);for(;C<0;C++)m.unshift(0);C>0?N=m.splice(C,m.length):(N=m,m=[0]);let I=[];for(m.length>=t.lgSize&&I.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)I.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&I.unshift(m.join("")),a=I.join(Fo(n,r)),N.length&&(a+=Fo(n,i)+N.join("")),D&&(a+=Fo(n,wr.Exponential)+"+"+D)}return e<0&&!u?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Qk(e,t,n,r,i){let o=BS(t,jb.Currency),s=zS(o,Fo(t,wr.MinusSign));return s.minFrac=Lk(r),s.maxFrac=s.minFrac,$S(e,s,t,wr.CurrencyGroup,wr.CurrencyDecimal,i).replace(NS,n).replace(NS,"").trim()}function Kk(e,t,n){let r=BS(t,jb.Decimal),i=zS(r,Fo(t,wr.MinusSign));return $S(e,i,t,wr.Group,wr.Decimal,n)}function zS(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Yk),i=r[0],o=r[1],s=i.indexOf(Om)!==-1?i.split(Om):[i.substring(0,i.lastIndexOf(Nd)+1),i.substring(i.lastIndexOf(Nd)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(Sb));for(let h=0;h<u.length;h++){let g=u.charAt(h);g===Nd?n.minFrac=n.maxFrac=h+1:g===Sb?n.maxFrac=h+1:n.posSuf+=g}let d=a.split(Zk);if(n.gSize=d[1]?d[1].length:0,n.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,o){let h=i.length-n.posPre.length-n.posSuf.length,g=o.indexOf(Sb);n.negPre=o.substring(0,g).replace(/'/g,""),n.negSuf=o.slice(g+h).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function Jk(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function Xk(e){let t=Math.abs(e)+"",n=0,r,i,o,s,a;for((i=t.indexOf(Om))>-1&&(t=t.replace(Om,"")),(o=t.search(/e/i))>0?(i<0&&(i=o),i+=+t.slice(o+1),t=t.substring(0,o)):i<0&&(i=t.length),o=0;t.charAt(o)===Nd;o++);if(o===(a=t.length))r=[0],i=1;else{for(a--;t.charAt(a)===Nd;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(t.charAt(o))}return i>AS&&(r=r.splice(0,AS-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function eR(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let g=s;g<r.length;g++)r[g]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let g=1;g<s;g++)r[g]=0}if(a>=5)if(s-1<0){for(let g=0;g>s;g--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let u=o!==0,d=t+e.integerLen,h=r.reduceRight(function(g,y,m,C){return y=y+g,C[m]=y<10?y:y-10,u&&(C[m]===0&&m>=d?C.pop():u=!1),y>=10?1:0},0);h&&(r.unshift(h),e.integerLen++)}function _b(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function SG(e,t,n){return oS(e,t,n)}function km(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Eb=/\s+/,MS=[],_G=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=MS,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Eb):MS}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Eb):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Eb).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||e)(ze(Lr),ze(so))}}static{this.\u0275dir=Yt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var Ab=class{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},EG=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Ab(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),TS(a,i)}});for(let i=0,o=r.length;i<o;i++){let a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let o=r.get(i.currentIndex);TS(o,i)})}static ngTemplateContextGuard(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(ze(Cs),ze(uu),ze(Db))}}static{this.\u0275dir=Yt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function TS(e,t){e.context.$implicit=t.item}var AG=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Nb,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){PS("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){PS("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(ze(Cs),ze(uu))}}static{this.\u0275dir=Yt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})(),Nb=class{constructor(){this.$implicit=null,this.ngIf=null}};function PS(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Nr(t)}'.`)}var NG=(()=>{class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(n,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(ze(Cs))}}static{this.\u0275dir=Yt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ai]})}}return e})();function Md(e,t){return new $e(2100,!1)}var Mb=class{createSubscription(t,n){return Ti(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Ti(()=>t.unsubscribe())}},Tb=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},tR=new Tb,nR=new Mb,MG=(()=>{class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(da(n))return tR;if(bb(n))return nR;throw Md(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(ze(fa,16))}}static{this.\u0275pipe=ca({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var rR="mediumDate",iR=new He(""),oR=new He(""),TG=(()=>{class e{constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,o){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??rR,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Rk(n,s,o||this.locale,a)}catch(s){throw Md(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(ze(Rc,16),ze(iR,24),ze(oR,24))}}static{this.\u0275pipe=ca({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var PG=(()=>{class e{constructor(n){this._locale=n}transform(n,r,i){if(!qS(n))return null;i||=this._locale;try{let o=WS(n);return Kk(o,i,r)}catch(o){throw Md(e,o.message)}}static{this.\u0275fac=function(r){return new(r||e)(ze(Rc,16))}}static{this.\u0275pipe=ca({name:"number",type:e,pure:!0,standalone:!0})}}return e})();var LG=(()=>{class e{constructor(n,r="USD"){this._locale=n,this._defaultCurrencyCode=r}transform(n,r=this._defaultCurrencyCode,i="symbol",o,s){if(!qS(n))return null;s||=this._locale,typeof i=="boolean"&&(i=i?"symbol":"code");let a=r||this._defaultCurrencyCode;i!=="code"&&(i==="symbol"||i==="symbol-narrow"?a=Tk(a,i==="symbol"?"wide":"narrow",s):a=i);try{let u=WS(n);return Qk(u,s,a,r,o)}catch(u){throw Md(e,u.message)}}static{this.\u0275fac=function(r){return new(r||e)(ze(Rc,16),ze(yS,16))}}static{this.\u0275pipe=ca({name:"currency",type:e,pure:!0,standalone:!0})}}return e})();function qS(e){return!(e==null||e===""||e!==e)}function WS(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var OG=(()=>{class e{transform(n,r,i){if(n==null)return null;if(!this.supports(n))throw Md(e,n);return n.slice(r,i)}supports(n){return typeof n=="string"||Array.isArray(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=ca({name:"slice",type:e,pure:!1,standalone:!0})}}return e})();var Td=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({})}}return e})(),Bb="browser",sR="server";function aR(e){return e===Bb}function Rm(e){return e===sR}var GS=(()=>{class e{static{this.\u0275prov=Ae({token:e,providedIn:"root",factory:()=>aR(xe(Ro))?new Pb(xe(er),window):new Lb})}}return e})(),Pb=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=uR(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function uR(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}var Lb=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},jc=class{};var Ld=class{},jm=class{},Qr=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Ub=class{encodeKey(t){return ZS(t)}encodeValue(t){return ZS(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function cR(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var lR=/%(\d[a-f0-9])/gi,dR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ZS(e){return encodeURIComponent(e).replace(lR,(t,n)=>dR[n]??t)}function Fm(e){return`${e}`}var Hn=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Ub,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=cR(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(Fm):[Fm(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Fm(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(Fm(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Hb=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function fR(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function QS(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function KS(e){return typeof Blob<"u"&&e instanceof Blob}function JS(e){return typeof FormData<"u"&&e instanceof FormData}function hR(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Pd=class e{constructor(t,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(fR(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Qr,this.context??=new Hb,!this.params)this.params=new Hn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||QS(this.body)||KS(this.body)||JS(this.body)||hR(this.body)?this.body:this.body instanceof Hn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||JS(this.body)?null:KS(this.body)?this.body.type||null:QS(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Hn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,u=t.reportProgress??this.reportProgress,d=t.headers||this.headers,h=t.params||this.params,g=t.context??this.context;return t.setHeaders!==void 0&&(d=Object.keys(t.setHeaders).reduce((y,m)=>y.set(m,t.setHeaders[m]),d)),t.setParams&&(h=Object.keys(t.setParams).reduce((y,m)=>y.set(m,t.setParams[m]),h)),new e(n,r,s,{params:h,headers:d,context:g,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},ma=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(ma||{}),Od=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new Qr,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Bm=class e extends Od{constructor(t={}){super(t),this.type=ma.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},kd=class e extends Od{constructor(t={}){super(t),this.type=ma.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},pa=class extends Od{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},r_=200,pR=204;function Vb(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Rd=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Pd)o=n;else{let u;i.headers instanceof Qr?u=i.headers:u=new Qr(i.headers);let d;i.params&&(i.params instanceof Hn?d=i.params:d=new Hn({fromObject:i.params})),o=new Pd(n,r,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=qe(o).pipe(ls(u=>this.handler.handle(u)));if(n instanceof Pd||i.observe==="events")return s;let a=s.pipe(Gt(u=>u instanceof kd));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(_e(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(_e(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(_e(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return a.pipe(_e(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Hn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Vb(i,r))}post(n,r,i={}){return this.request("POST",n,Vb(i,r))}put(n,r,i={}){return this.request("PUT",n,Vb(i,r))}static{this.\u0275fac=function(r){return new(r||e)(Ne(Ld))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),mR=/^\)\]\}',?\n/,gR="X-Request-URL";function XS(e){if(e.url)return e.url;let t=gR.toLocaleLowerCase();return e.headers.get(t)}var vR=(()=>{class e{constructor(){this.fetchImpl=xe($b,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=xe(on)}handle(n){return new It(r=>{let i=new AbortController;return this.doRequest(n,i.signal,r).then(zb,o=>r.error(new pa({error:o}))),()=>i.abort()})}doRequest(n,r,i){return Dh(this,null,function*(){let o=this.createRequestInit(n),s;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,K({signal:r},o)));yR(m),i.next({type:ma.Sent}),s=yield m}catch(m){i.error(new pa({error:m,status:m.status??0,statusText:m.statusText,url:n.urlWithParams,headers:m.headers}));return}let a=new Qr(s.headers),u=s.statusText,d=XS(s)??n.urlWithParams,h=s.status,g=null;if(n.reportProgress&&i.next(new Bm({headers:a,status:h,statusText:u,url:d})),s.body){let m=s.headers.get("content-length"),C=[],D=s.body.getReader(),N=0,I,P,B=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Dh(this,null,function*(){for(;;){let{done:ie,value:me}=yield D.read();if(ie)break;if(C.push(me),N+=me.length,n.reportProgress){P=n.responseType==="text"?(P??"")+(I??=new TextDecoder).decode(me,{stream:!0}):void 0;let te=()=>i.next({type:ma.DownloadProgress,total:m?+m:void 0,loaded:N,partialText:P});B?B.run(te):te()}}}));let J=this.concatChunks(C,N);try{let ie=s.headers.get("Content-Type")??"";g=this.parseBody(n,J,ie)}catch(ie){i.error(new pa({error:ie,headers:new Qr(s.headers),status:s.status,statusText:s.statusText,url:XS(s)??n.urlWithParams}));return}}h===0&&(h=g?r_:0),h>=200&&h<300?(i.next(new kd({body:g,headers:a,status:h,statusText:u,url:d})),i.complete()):i.error(new pa({error:g,headers:a,status:h,statusText:u,url:d}))})}parseBody(n,r,i){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(mR,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),$b=class{};function zb(){}function yR(e){e.then(zb,zb)}function i_(e,t){return t(e)}function bR(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function wR(e,t,n){return(r,i)=>Ei(n,()=>t(r,o=>e(o,i)))}var DR=new He(""),qb=new He(""),CR=new He(""),o_=new He("",{providedIn:"root",factory:()=>!0});function xR(){let e=null;return(t,n)=>{e===null&&(e=(xe(DR,{optional:!0})??[]).reduceRight(bR,i_));let r=xe(bs);if(xe(o_)){let o=r.add();return e(t,n).pipe(eo(()=>r.remove(o)))}else return e(t,n)}}var e_=(()=>{class e extends Ld{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=xe(bs),this.contributeToStability=xe(o_)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(qb),...this.injector.get(CR,[])]));this.chain=r.reduceRight((i,o)=>wR(i,o,this.injector),i_)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(eo(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(Ne(jm),Ne(Mr))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})();var IR=/^\)\]\}',?\n/;function SR(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var t_=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new $e(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Dt(r.\u0275loadImpl()):qe(null)).pipe(Mt(()=>new It(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((D,N)=>s.setRequestHeader(D,N.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let D=n.detectContentTypeHeader();D!==null&&s.setRequestHeader("Content-Type",D)}if(n.responseType){let D=n.responseType.toLowerCase();s.responseType=D!=="json"?D:"text"}let a=n.serializeBody(),u=null,d=()=>{if(u!==null)return u;let D=s.statusText||"OK",N=new Qr(s.getAllResponseHeaders()),I=SR(s)||n.url;return u=new Bm({headers:N,status:s.status,statusText:D,url:I}),u},h=()=>{let{headers:D,status:N,statusText:I,url:P}=d(),B=null;N!==pR&&(B=typeof s.response>"u"?s.responseText:s.response),N===0&&(N=B?r_:0);let J=N>=200&&N<300;if(n.responseType==="json"&&typeof B=="string"){let ie=B;B=B.replace(IR,"");try{B=B!==""?JSON.parse(B):null}catch(me){B=ie,J&&(J=!1,B={error:me,text:B})}}J?(o.next(new kd({body:B,headers:D,status:N,statusText:I,url:P||void 0})),o.complete()):o.error(new pa({error:B,headers:D,status:N,statusText:I,url:P||void 0}))},g=D=>{let{url:N}=d(),I=new pa({error:D,status:s.status||0,statusText:s.statusText||"Unknown Error",url:N||void 0});o.error(I)},y=!1,m=D=>{y||(o.next(d()),y=!0);let N={type:ma.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(N.total=D.total),n.responseType==="text"&&s.responseText&&(N.partialText=s.responseText),o.next(N)},C=D=>{let N={type:ma.UploadProgress,loaded:D.loaded};D.lengthComputable&&(N.total=D.total),o.next(N)};return s.addEventListener("load",h),s.addEventListener("error",g),s.addEventListener("timeout",g),s.addEventListener("abort",g),n.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),o.next({type:ma.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",h),s.removeEventListener("timeout",g),n.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(Ne(jc))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),s_=new He(""),_R="XSRF-TOKEN",ER=new He("",{providedIn:"root",factory:()=>_R}),AR="X-XSRF-TOKEN",NR=new He("",{providedIn:"root",factory:()=>AR}),Vm=class{},MR=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=km(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(Ne(er),Ne(Ro),Ne(ER))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})();function TR(e,t){let n=e.url.toLowerCase();if(!xe(s_)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=xe(Vm).getToken(),i=xe(NR);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var a_=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(a_||{});function PR(e,t){return{\u0275kind:e,\u0275providers:t}}function Wb(...e){let t=[Rd,t_,e_,{provide:Ld,useExisting:e_},{provide:jm,useFactory:()=>xe(vR,{optional:!0})??xe(t_)},{provide:qb,useValue:TR,multi:!0},{provide:s_,useValue:!0},{provide:Vm,useClass:MR}];for(let n of e)t.push(...n.\u0275providers);return Qp(t)}var n_=new He("");function Gb(){return PR(a_.LegacyInterceptors,[{provide:n_,useFactory:xR},{provide:qb,useExisting:n_,multi:!0}])}var GG=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({providers:[Wb(Gb())]})}}return e})();var Qb=class extends Pm{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kb=class e extends Qb{static makeCurrent(){OS(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=LR();return n==null?null:OR(n)}resetBaseElement(){Fd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return km(document.cookie,t)}},Fd=null;function LR(){return Fd=Fd||document.querySelector("base"),Fd?Fd.getAttribute("href"):null}function OR(e){return new URL(e,document.baseURI).pathname}var Jb=class{addToWindow(t){lr.getAngularTestability=(r,i=!0)=>{let o=t.findTestabilityInTree(r,i);if(o==null)throw new $e(5103,!1);return o},lr.getAllAngularTestabilities=()=>t.getAllTestabilities(),lr.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let i=lr.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};lr.frameworkStabilizers||(lr.frameworkStabilizers=[]),lr.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let i=t.getTestability(n);return i??(r?co().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},kR=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),Xb=new He(""),f_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new $e(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(Ne(Xb),Ne(on))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),Um=class{constructor(t){this._doc=t}},Yb="ng-app-id",h_=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Rm(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Yb}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(Yb),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Yb,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(Ne(er),Ne(am),Ne(W1,8),Ne(Ro))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),Zb={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/Math/MathML"},t2=/%COMP%/g,p_="%COMP%",RR=`_nghost-${p_}`,FR=`_ngcontent-${p_}`,jR=!0,BR=new He("",{providedIn:"root",factory:()=>jR});function VR(e){return FR.replace(t2,e)}function UR(e){return RR.replace(t2,e)}function m_(e,t){return t.map(n=>n.replace(t2,e))}var c_=(()=>{class e{constructor(n,r,i,o,s,a,u,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Rm(a),this.defaultRenderer=new jd(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Lo.ShadowDom&&(r=Re(K({},r),{encapsulation:Lo.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Hm?i.applyToHost(n):i instanceof Bd&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(r.encapsulation){case Lo.Emulated:o=new Hm(u,d,r,this.appId,h,s,a,g);break;case Lo.ShadowDom:return new e2(u,d,n,r,s,a,this.nonce,g);default:o=new Bd(u,d,r,h,s,a,g);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(Ne(f_),Ne(h_),Ne(am),Ne(BR),Ne(er),Ne(Ro),Ne(on),Ne(W1))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),jd=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Zb[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(l_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(l_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new $e(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Zb[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Zb[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(ms.DashCase|ms.Important)?t.style.setProperty(n,r,i&ms.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ms.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=co().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function l_(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var e2=class extends jd{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=m_(i.id,i.styles);for(let h of d){let g=document.createElement("style");a&&g.setAttribute("nonce",a),g.textContent=h,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Bd=class extends jd{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?m_(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Hm=class extends Bd{constructor(t,n,r,i,o,s,a,u){let d=i+"-"+r.id;super(t,n,r,o,s,a,u,d),this.contentAttr=VR(d),this.hostAttr=UR(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},HR=(()=>{class e extends Um{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(Ne(er))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})(),d_=["alt","control","meta","shift"],$R={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},qR=(()=>{class e extends Um{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>co().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),d_.forEach(d=>{let h=r.indexOf(d);h>-1&&(r.splice(h,1),s+=d+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=$R[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),d_.forEach(s=>{if(s!==i){let a=zR[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(Ne(er))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})();function WR(){Kb.makeCurrent()}function GR(){return new hs}function YR(){return Rx(document),document}var ZR=[{provide:Ro,useValue:Bb},{provide:q1,useValue:WR,multi:!0},{provide:er,useFactory:YR,deps:[]}],aY=wb(CS,"browser",ZR),QR=new He(""),KR=[{provide:Ad,useClass:Jb,deps:[]},{provide:vb,useClass:bm,deps:[on,wm,Ad]},{provide:bm,useClass:bm,deps:[on,wm,Ad]}],JR=[{provide:Kp,useValue:"root"},{provide:hs,useFactory:GR,deps:[]},{provide:Xb,useClass:HR,multi:!0,deps:[er,on,Ro]},{provide:Xb,useClass:qR,multi:!0,deps:[er]},c_,h_,f_,{provide:Sc,useExisting:c_},{provide:jc,useClass:kR,deps:[]},[]],uY=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:am,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(Ne(QR,12))}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({providers:[...JR,...KR],imports:[Td,xS]})}}return e})(),cY=(()=>{class e{constructor(n){this._doc=n,this._dom=co()}addTag(n,r=!1){return n?this._getOrCreateElement(n,r):null}addTags(n,r=!1){return n?n.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,r)),i),[]):[]}getTag(n){return n&&this._doc.querySelector(`meta[${n}]`)||null}getTags(n){if(!n)return[];let r=this._doc.querySelectorAll(`meta[${n}]`);return r?[].slice.call(r):[]}updateTag(n,r){if(!n)return null;r=r||this._parseSelector(n);let i=this.getTag(r);return i?this._setMetaElementAttributes(n,i):this._getOrCreateElement(n,!0)}removeTag(n){this.removeTagElement(this.getTag(n))}removeTagElement(n){n&&this._dom.remove(n)}_getOrCreateElement(n,r=!1){if(!r){let s=this._parseSelector(n),a=this.getTags(s).filter(u=>this._containsAttributes(n,u))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(n,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(n,r){return Object.keys(n).forEach(i=>r.setAttribute(this._getMetaKeyMap(i),n[i])),r}_parseSelector(n){let r=n.name?"name":"property";return`${r}="${n[r]}"`}_containsAttributes(n,r){return Object.keys(n).every(i=>r.getAttribute(this._getMetaKeyMap(i))===n[i])}_getMetaKeyMap(n){return XR[n]||n}static{this.\u0275fac=function(r){return new(r||e)(Ne(er))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),XR={httpEquiv:"http-equiv"},g_=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(Ne(er))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eF=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=Ne(tF),i},providedIn:"root"})}}return e})(),tF=(()=>{class e extends eF{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case oo.NONE:return r;case oo.HTML:return ws(r,"HTML")?ai(r):Y1(this._doc,String(r)).toString();case oo.STYLE:return ws(r,"Style")?ai(r):r;case oo.SCRIPT:if(ws(r,"Script"))return ai(r);throw new $e(5200,!1);case oo.URL:return ws(r,"URL")?ai(r):cm(String(r));case oo.RESOURCE_URL:if(ws(r,"ResourceURL"))return ai(r);throw new $e(5201,!1);default:throw new $e(5202,!1)}}bypassSecurityTrustHtml(n){return Vx(n)}bypassSecurityTrustStyle(n){return Ux(n)}bypassSecurityTrustScript(n){return Hx(n)}bypassSecurityTrustUrl(n){return $x(n)}bypassSecurityTrustResourceUrl(n){return zx(n)}static{this.\u0275fac=function(r){return new(r||e)(Ne(er))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Vd={production:!0,dumpLog:!1,release:"astradirect-leasing-3@5.2",apitoken:"0CC0834B-73E5-4662-80A3-4675C802B64F",basePath:"https://lockersnet-gw1.astradirect.de/AstraPortalService/AstraPortalService.svc/json/",mailerPath:"/mailer/",gtagUrl:"https://www.googletagmanager.com/gtag/js",gaId:["UA-25471829-3","G-BLPLQJ07YV"],sendGAEvents:!0,galleryBasePath:"/ref-img/",galleryImagePath:"",freshdeskApiPath:"https://astradirect.freshdesk.com/api/v2/",freshdeskApiKey:"S45z9nUN89lNcx3KaRd",cookieboxPrivacyUrl:"https://privacy.cortina-consult.com/privacy?id=qG3l6rgIyca5fJYEJeMC&lang=de&json=true",lippeSchoolId:8490,socialMediaPrivacyStatementUrls:{facebook:"https://privacy.cookiebox.pro/privacy?id=nq2yZg4UyIGTwlqJnPrK&lang=de&script=false&json=true",twitter:"https://privacy.cookiebox.pro/privacy?id=5lXsPVCW3sJXNCDg63Ym&lang=de&script=false&json=true"},pdfmakeFontPath:"https://www.astradirect.de/assets/fonts/"};var __=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(ze(so),ze(Lr))}}static{this.\u0275dir=Yt({type:e})}}return e})(),Yd=(()=>{class e extends __{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,features:[Xn]})}}return e})(),ya=new He(""),rF={provide:ya,useExisting:yr(()=>iF),multi:!0},iF=(()=>{class e extends Yd{writeValue(n){this.setProperty("checked",n)}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&ao("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[Zr([rF]),Xn]})}}return e})(),oF={provide:ya,useExisting:yr(()=>E_),multi:!0};function sF(){let e=co()?co().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var aF=new He(""),E_=(()=>{class e extends __{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sF())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(ze(so),ze(Lr),ze(aF,8))}}static{this.\u0275dir=Yt({type:e,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(r,i){r&1&&ao("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Zr([oF]),Xn]})}}return e})();function ga(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function A_(e){return e!=null&&typeof e.length=="number"}var ba=new He(""),Zd=new He(""),uF=/^(?=.{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])?)*$/,v_=class{static min(t){return cF(t)}static max(t){return lF(t)}static required(t){return N_(t)}static requiredTrue(t){return dF(t)}static email(t){return fF(t)}static minLength(t){return hF(t)}static maxLength(t){return M_(t)}static pattern(t){return T_(t)}static nullValidator(t){return zm(t)}static compose(t){return F_(t)}static composeAsync(t){return j_(t)}};function cF(e){return t=>{if(ga(t.value)||ga(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function lF(e){return t=>{if(ga(t.value)||ga(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function N_(e){return ga(e.value)?{required:!0}:null}function dF(e){return e.value===!0?null:{required:!0}}function fF(e){return ga(e.value)||uF.test(e.value)?null:{email:!0}}function hF(e){return t=>ga(t.value)||!A_(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function M_(e){return t=>A_(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function T_(e){if(!e)return zm;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(ga(r.value))return null;let i=r.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function zm(e){return null}function P_(e){return e!=null}function L_(e){return da(e)?Dt(e):e}function O_(e){let t={};return e.forEach(n=>{t=n!=null?K(K({},t),n):t}),Object.keys(t).length===0?null:t}function k_(e,t){return t.map(n=>n(e))}function pF(e){return!e.validate}function R_(e){return e.map(t=>pF(t)?t:n=>t.validate(n))}function F_(e){if(!e)return null;let t=e.filter(P_);return t.length==0?null:function(n){return O_(k_(n,t))}}function a2(e){return e!=null?F_(R_(e)):null}function j_(e){if(!e)return null;let t=e.filter(P_);return t.length==0?null:function(n){let r=k_(n,t).map(L_);return Xy(r).pipe(_e(O_))}}function u2(e){return e!=null?j_(R_(e)):null}function y_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function B_(e){return e._rawValidators}function V_(e){return e._rawAsyncValidators}function n2(e){return e?Array.isArray(e)?e:[e]:[]}function qm(e,t){return Array.isArray(e)?e.includes(t):e===t}function b_(e,t){let n=n2(t);return n2(e).forEach(i=>{qm(n,i)||n.push(i)}),n}function w_(e,t){return n2(t).filter(n=>!qm(e,n))}var Wm=class{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(t){this._rawValidators=t||[],this._composedValidatorFn=a2(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=u2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},As=class extends Wm{get formDirective(){return null}get path(){return null}},jo=class extends Wm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Gm=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},mF={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},EY=Re(K({},mF),{"[class.ng-submitted]":"isSubmitted"}),AY=(()=>{class e extends Gm{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(ze(jo,2))}}static{this.\u0275dir=Yt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&vm("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Xn]})}}return e})(),NY=(()=>{class e extends Gm{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(ze(As,10))}}static{this.\u0275dir=Yt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&vm("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Xn]})}}return e})();var Ud="VALID",$m="INVALID",Vc="PENDING",Hd="DISABLED",va=class{},Ym=class extends va{constructor(t,n){super(),this.value=t,this.source=n}},zd=class extends va{constructor(t,n){super(),this.pristine=t,this.source=n}},qd=class extends va{constructor(t,n){super(),this.touched=t,this.source=n}},Uc=class extends va{constructor(t,n){super(),this.status=t,this.source=n}},r2=class extends va{constructor(t){super(),this.source=t}},i2=class extends va{constructor(t){super(),this.source=t}};function c2(e){return(Jm(e)?e.validators:e)||null}function gF(e){return Array.isArray(e)?a2(e):e||null}function l2(e,t){return(Jm(t)?t.asyncValidators:e)||null}function vF(e){return Array.isArray(e)?u2(e):e||null}function Jm(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function U_(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new $e(1e3,"");if(!r[n])throw new $e(1001,"")}function H_(e,t,n){e._forEachChild((r,i)=>{if(n[i]===void 0)throw new $e(1002,"")})}var Hc=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Fc(()=>this.statusReactive()),this.statusReactive=kc(void 0),this._pristine=Fc(()=>this.pristineReactive()),this.pristineReactive=kc(!0),this._touched=Fc(()=>this.touchedReactive()),this.touchedReactive=kc(!1),this._events=new kt,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ti(this.statusReactive)}set status(t){Ti(()=>this.statusReactive.set(t))}get valid(){return this.status===Ud}get invalid(){return this.status===$m}get pending(){return this.status==Vc}get disabled(){return this.status===Hd}get enabled(){return this.status!==Hd}get pristine(){return Ti(this.pristineReactive)}set pristine(t){Ti(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return Ti(this.touchedReactive)}set touched(t){Ti(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(b_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(b_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(w_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(w_(t,this._rawAsyncValidators))}hasValidator(t){return qm(this._rawValidators,t)}hasAsyncValidator(t){return qm(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Re(K({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new qd(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new qd(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Re(K({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new zd(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new zd(!0,r))}markAsPending(t={}){this.status=Vc;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Uc(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Re(K({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Hd,this.errors=null,this._forEachChild(i=>{i.disable(Re(K({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ym(this.value,r)),this._events.next(new Uc(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Re(K({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ud,this._forEachChild(r=>{r.enable(Re(K({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Re(K({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ud||this.status===Vc)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ym(this.value,n)),this._events.next(new Uc(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Re(K({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hd:Ud}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Vc,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=L_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Uc(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new yn,this.statusChanges=new yn}_calculateStatus(){return this._allControlsDisabled()?Hd:this.errors?$m:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vc)?Vc:this._anyControlsHaveStatus($m)?$m:Ud}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new zd(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new qd(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Jm(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=gF(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=vF(this._rawAsyncValidators)}},$c=class extends Hc{constructor(t,n,r){super(c2(n),l2(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){H_(this,!0,t),Object.keys(t).forEach(r=>{U_(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t?t[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var o2=class extends $c{};var pu=new He("CallSetDisabledState",{providedIn:"root",factory:()=>Qd}),Qd="always";function $_(e,t){return[...t.path,e]}function Gd(e,t,n=Qd){d2(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),bF(e,t),DF(e,t),wF(e,t),yF(e,t)}function Zm(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Km(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Qm(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function yF(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function d2(e,t){let n=B_(e);t.validator!==null?e.setValidators(y_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=V_(e);t.asyncValidator!==null?e.setAsyncValidators(y_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Qm(t._rawValidators,i),Qm(t._rawAsyncValidators,i)}function Km(e,t){let n=!1;if(e!==null){if(t.validator!==null){let i=B_(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.validator);o.length!==i.length&&(n=!0,e.setValidators(o))}}if(t.asyncValidator!==null){let i=V_(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(n=!0,e.setAsyncValidators(o))}}}let r=()=>{};return Qm(t._rawValidators,r),Qm(t._rawAsyncValidators,r),n}function bF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&z_(e,t)})}function wF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&z_(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function z_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function DF(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function q_(e,t){e==null,d2(e,t)}function CF(e,t){return Km(e,t)}function f2(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function xF(e){return Object.getPrototypeOf(e.constructor)===Yd}function W_(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function h2(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===E_?n=o:xF(o)?r=o:i=o}),i||r||n||null}function IF(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var SF={provide:As,useExisting:yr(()=>_F)},$d=Promise.resolve(),_F=(()=>{class e extends As{get submitted(){return Ti(this.submittedReactive)}constructor(n,r,i){super(),this.callSetDisabledState=i,this._submitted=Fc(()=>this.submittedReactive()),this.submittedReactive=kc(!1),this._directives=new Set,this.ngSubmit=new yn,this.form=new $c({},a2(n),u2(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){$d.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Gd(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){$d.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){$d.then(()=>{let r=this._findContainer(n.path),i=new $c({});q_(i,n),r.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){$d.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){$d.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),W_(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static{this.\u0275fac=function(r){return new(r||e)(ze(ba,10),ze(Zd,10),ze(pu,8))}}static{this.\u0275dir=Yt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){r&1&&ao("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Zr([SF]),Xn]})}}return e})();function D_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function C_(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Wd=class extends Hc{constructor(t=null,n,r){super(c2(n),l2(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jm(n)&&(n.nonNullable||n.initialValueIsDefault)&&(C_(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){D_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){D_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){C_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var EF=e=>e instanceof Wd;var AF={provide:jo,useExisting:yr(()=>NF)},x_=Promise.resolve(),NF=(()=>{class e extends jo{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Wd,this._registered=!1,this.name="",this.update=new yn,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=h2(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),f2(n,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(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Gd(this.control,this,this.callSetDisabledState),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()&&this.name}_updateValue(n){x_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&ha(r);x_.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?$_(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(ze(As,9),ze(ba,10),ze(Zd,10),ze(ya,10),ze(fa,8),ze(pu,8))}}static{this.\u0275dir=Yt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Zr([AF]),Xn,Ai]})}}return e})(),TY=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Yt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();var MF={provide:ya,useExisting:yr(()=>PF),multi:!0};var TF=(()=>{class e{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n){this._accessors.splice(r,1);return}}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return n[0].control?n[0]._parent===r._control._parent&&n[1].name===r.name:!1}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),PF=(()=>{class e extends Yd{constructor(n,r,i,o){super(n,r),this._registry=i,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=xe(pu,{optional:!0})??Qd}ngOnInit(){this._control=this._injector.get(jo),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(r){return new(r||e)(ze(so),ze(Lr),ze(TF),ze(qr))}}static{this.\u0275dir=Yt({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){r&1&&ao("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Zr([MF]),Xn]})}}return e})();var p2=new He(""),LF={provide:jo,useExisting:yr(()=>OF)},OF=(()=>{class e extends jo{set isDisabled(n){}static{this._ngModelWarningSentOnce=!1}constructor(n,r,i,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new yn,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=h2(this,i)}ngOnChanges(n){if(this._isControlChanged(n)){let r=n.form.previousValue;r&&Zm(r,this,!1),Gd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}f2(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Zm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}static{this.\u0275fac=function(r){return new(r||e)(ze(ba,10),ze(Zd,10),ze(ya,10),ze(p2,8),ze(pu,8))}}static{this.\u0275dir=Yt({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Zr([LF]),Xn,Ai]})}}return e})(),kF={provide:As,useExisting:yr(()=>RF)},RF=(()=>{class e extends As{get submitted(){return Ti(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,i){super(),this.callSetDisabledState=i,this._submitted=Fc(()=>this._submittedReactive()),this._submittedReactive=kc(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new yn,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Km(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Gd(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Zm(n.control||null,n,!1),IF(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),W_(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new r2(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new i2(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,i=this.form.get(n.path);r!==i&&(Zm(r||null,n),EF(i)&&(Gd(i,n,this.callSetDisabledState),n.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);q_(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&CF(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){d2(this.form,this),this._oldForm&&Km(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(r){return new(r||e)(ze(ba,10),ze(Zd,10),ze(pu,8))}}static{this.\u0275dir=Yt({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&ao("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Zr([kF]),Xn,Ai]})}}return e})();var FF={provide:jo,useExisting:yr(()=>jF)},jF=(()=>{class e extends jo{set isDisabled(n){}static{this._ngModelWarningSentOnce=!1}constructor(n,r,i,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new yn,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=h2(this,o)}ngOnChanges(n){this._added||this._setUpControl(),f2(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return $_(this.name==null?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._added=!0}static{this.\u0275fac=function(r){return new(r||e)(ze(As,13),ze(ba,10),ze(Zd,10),ze(ya,10),ze(p2,8))}}static{this.\u0275dir=Yt({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Zr([FF]),Xn,Ai]})}}return e})(),BF={provide:ya,useExisting:yr(()=>Y_),multi:!0};function G_(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function VF(e){return e.split(":")[0]}var Y_=(()=>{class e extends Yd{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),i=G_(r,n);this.setProperty("value",i)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=VF(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){r&1&&ao("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Zr([BF]),Xn]})}}return e})(),PY=(()=>{class e{constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(G_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(ze(Lr),ze(so),ze(Y_,9))}}static{this.\u0275dir=Yt({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})(),UF={provide:ya,useExisting:yr(()=>Z_),multi:!0};function I_(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function HF(e){return e.split(":")[0]}var Z_=(()=>{class e extends Yd{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let i=n.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let i=[],o=r.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a<s.length;a++){let u=s[a],d=this._getOptionValue(u.value);i.push(d)}}else{let s=r.options;for(let a=0;a<s.length;a++){let u=s[a];if(u.selected){let d=this._getOptionValue(u.value);i.push(d)}}}this.value=i,n(i)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=HF(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){r&1&&ao("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[Zr([UF]),Xn]})}}return e})(),LY=(()=>{class e{constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(I_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(I_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(ze(Lr),ze(so),ze(Z_,9))}}static{this.\u0275dir=Yt({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();function $F(e){return typeof e=="number"?e:parseInt(e,10)}var m2=(()=>{class e{constructor(){this._validator=zm}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):zm,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Yt({type:e,features:[Ai]})}}return e})();var zF={provide:ba,useExisting:yr(()=>qF),multi:!0};var qF=(()=>{class e extends m2{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=ha,this.createValidator=n=>N_}enabled(n){return n}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,i){r&2&&hu("required",i._enabled?"":null)},inputs:{required:"required"},features:[Zr([zF]),Xn]})}}return e})();var WF={provide:ba,useExisting:yr(()=>GF),multi:!0},GF=(()=>{class e extends m2{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=n=>$F(n),this.createValidator=n=>M_(n)}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,i){r&2&&hu("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Zr([WF]),Xn]})}}return e})(),YF={provide:ba,useExisting:yr(()=>ZF),multi:!0},ZF=(()=>{class e extends m2{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=n=>n,this.createValidator=n=>T_(n)}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275dir=Yt({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,i){r&2&&hu("pattern",i._enabled?i.pattern:null)},inputs:{pattern:"pattern"},features:[Zr([YF]),Xn]})}}return e})();var Q_=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({})}}return e})(),s2=class extends Hc{constructor(t,n,r){super(c2(n),l2(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),n&&(this.controls.splice(i,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){H_(this,!1,t),t.forEach((r,i)=>{U_(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,i)=>{r.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function S_(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var QF=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let i=this._reduceControls(n),o={};return S_(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new $c(i,o)}record(n,r=null){let i=this._reduceControls(n);return new o2(i,r)}control(n,r,i){let o={};return this.useNonNullable?(S_(r)?o=r:(o.validators=r,o.asyncValidators=i),new Wd(n,Re(K({},o),{nonNullable:!0}))):new Wd(n,r,i)}array(n,r,i){let o=n.map(s=>this._createControl(s));return new s2(o,r,i)}_reduceControls(n){let r={};return Object.keys(n).forEach(i=>{r[i]=this._createControl(n[i])}),r}_createControl(n){if(n instanceof Wd)return n;if(n instanceof Hc)return n;if(Array.isArray(n)){let r=n[0],i=n.length>1?n[1]:null,o=n.length>2?n[2]:null;return this.control(r,i,o)}else return this.control(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var OY=(()=>{class e extends QF{group(n,r=null){return super.group(n,r)}control(n,r,i){return super.control(n,r,i)}array(n,r,i){return super.array(n,r,i)}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var g2=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:pu,useValue:n.callSetDisabledState??Qd}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({imports:[Q_]})}}return e})(),v2=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:p2,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:pu,useValue:n.callSetDisabledState??Qd}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({imports:[Q_]})}}return e})();var wt="primary",df=Symbol("RouteTitle"),C2=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Zc(e){return new C2(e)}function KF(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function JF(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Bo(e[n],t[n]))return!1;return!0}function Bo(e,t){let n=e?x2(e):void 0,r=t?x2(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!aE(e[i],t[i]))return!1;return!0}function x2(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function aE(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}else return e===t}function uE(e){return e.length>0?e[e.length-1]:null}function Ca(e){return lc(e)?e:da(e)?Dt(Promise.resolve(e)):qe(e)}var XF={exact:lE,subset:dE},cE={exact:e6,subset:t6,ignored:()=>!0};function K_(e,t,n){return XF[n.paths](e.root,t.root,n.matrixParams)&&cE[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function e6(e,t){return Bo(e,t)}function lE(e,t,n){if(!gu(e.segments,t.segments)||!tg(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!lE(e.children[r],t.children[r],n))return!1;return!0}function t6(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>aE(e[n],t[n]))}function dE(e,t,n){return fE(e,t,t.segments,n)}function fE(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!gu(i,n)||t.hasChildren()||!tg(i,n,r))}else if(e.segments.length===n.length){if(!gu(e.segments,n)||!tg(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!dE(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!gu(e.segments,i)||!tg(e.segments,i,r)||!e.children[wt]?!1:fE(e.children[wt],t,o,r)}}function tg(e,t,n){return t.every((r,i)=>cE[n](e[i].parameters,r.parameters))}var Ms=class{constructor(t=new Zt([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){return i6.serialize(this)}},Zt=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ng(this)}},mu=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Zc(this.parameters),this._parameterMap}toString(){return pE(this)}};function n6(e,t){return gu(e,t)&&e.every((n,r)=>Bo(n.parameters,t[r].parameters))}function gu(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function r6(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===wt&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==wt&&(n=n.concat(t(i,r)))}),n}var ff=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>new Qc,providedIn:"root"})}}return e})(),Qc=class{parse(t){let n=new S2(t);return new Ms(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Kd(t.root,!0)}`,r=a6(t.queryParams),i=typeof t.fragment=="string"?`#${o6(t.fragment)}`:"";return`${n}${r}${i}`}},i6=new Qc;function ng(e){return e.segments.map(t=>pE(t)).join("/")}function Kd(e,t){if(!e.hasChildren())return ng(e);if(t){let n=e.children[wt]?Kd(e.children[wt],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==wt&&r.push(`${i}:${Kd(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=r6(e,(r,i)=>i===wt?[Kd(e.children[wt],!1)]:[`${i}:${Kd(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[wt]!=null?`${ng(e)}/${n[0]}`:`${ng(e)}/(${n.join("//")})`}}function hE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xm(e){return hE(e).replace(/%3B/gi,";")}function o6(e){return encodeURI(e)}function I2(e){return hE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rg(e){return decodeURIComponent(e)}function J_(e){return rg(e.replace(/\+/g,"%20"))}function pE(e){return`${I2(e.path)}${s6(e.parameters)}`}function s6(e){return Object.entries(e).map(([t,n])=>`;${I2(t)}=${I2(n)}`).join("")}function a6(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Xm(n)}=${Xm(i)}`).join("&"):`${Xm(n)}=${Xm(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var u6=/^[^\/()?;#]+/;function y2(e){let t=e.match(u6);return t?t[0]:""}var c6=/^[^\/()?;=#]+/;function l6(e){let t=e.match(c6);return t?t[0]:""}var d6=/^[^=?&#]+/;function f6(e){let t=e.match(d6);return t?t[0]:""}var h6=/^[^&#]+/;function p6(e){let t=e.match(h6);return t?t[0]:""}var S2=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Zt([],{}):new Zt([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[wt]=new Zt(t,n)),r}parseSegment(){let t=y2(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new $e(4009,!1);return this.capture(t),new mu(rg(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=l6(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=y2(this.remaining);i&&(r=i,this.capture(r))}t[rg(n)]=rg(r)}parseQueryParam(t){let n=f6(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=p6(this.remaining);s&&(r=s,this.capture(r))}let i=J_(n),o=J_(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=y2(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new $e(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=wt);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[wt]:new Zt([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new $e(4011,!1)}};function mE(e){return e.segments.length>0?new Zt([],{[wt]:e}):e}function gE(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=gE(i);if(r===wt&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new Zt(e.segments,t);return m6(n)}function m6(e){if(e.numberOfChildren===1&&e.children[wt]){let t=e.children[wt];return new Zt(e.segments.concat(t.segments),t.children)}return e}function vu(e){return e instanceof Ms}function g6(e,t,n=null,r=null){let i=vE(e);return yE(i,t,n,r)}function vE(e){let t;function n(o){let s={};for(let u of o.children){let d=n(u);s[u.outlet]=d}let a=new Zt(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=mE(r);return t??i}function yE(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return b2(i,i,i,n,r);let o=v6(t);if(o.toRoot())return b2(i,i,new Zt([],{}),n,r);let s=y6(o,i,e),a=s.processChildren?ef(s.segmentGroup,s.index,o.commands):wE(s.segmentGroup,s.index,o.commands);return b2(i,s.segmentGroup,a,n,r)}function ig(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function rf(e){return typeof e=="object"&&e!=null&&e.outlets}function b2(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,d])=>{o[u]=Array.isArray(d)?d.map(h=>`${h}`):`${d}`});let s;e===t?s=n:s=bE(e,t,n);let a=mE(gE(s));return new Ms(a,o,i)}function bE(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=bE(o,t,n)}),new Zt(e.segments,r)}var og=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ig(r[0]))throw new $e(4003,!1);let i=r.find(rf);if(i&&i!==uE(r))throw new $e(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function v6(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new og(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,d])=>{a[u]=typeof d=="string"?d.split("/"):d}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new og(n,t,r)}var Wc=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function y6(e,t,n){if(e.isAbsolute)return new Wc(t,!0,0);if(!n)return new Wc(t,!1,NaN);if(n.parent===null)return new Wc(n,!0,0);let r=ig(e.commands[0])?0:1,i=n.segments.length-1+r;return b6(n,i,e.numberOfDoubleDots)}function b6(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new $e(4005,!1);i=r.segments.length}return new Wc(r,!1,i-o)}function w6(e){return rf(e[0])?e[0].outlets:{[wt]:e}}function wE(e,t,n){if(e??=new Zt([],{}),e.segments.length===0&&e.hasChildren())return ef(e,t,n);let r=D6(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new Zt(e.segments.slice(0,r.pathIndex),{});return o.children[wt]=new Zt(e.segments.slice(r.pathIndex),e.children),ef(o,0,i)}else return r.match&&i.length===0?new Zt(e.segments,{}):r.match&&!e.hasChildren()?_2(e,t,n):r.match?ef(e,0,i):_2(e,t,n)}function ef(e,t,n){if(n.length===0)return new Zt(e.segments,{});{let r=w6(n),i={};if(Object.keys(r).some(o=>o!==wt)&&e.children[wt]&&e.numberOfChildren===1&&e.children[wt].segments.length===0){let o=ef(e.children[wt],t,n);return new Zt(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=wE(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new Zt(e.segments,i)}}function D6(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(rf(a))break;let u=`${a}`,d=r<n.length-1?n[r+1]:null;if(i>0&&u===void 0)break;if(u&&d&&typeof d=="object"&&d.outlets===void 0){if(!eE(u,d,s))return o;r+=2}else{if(!eE(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function _2(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(rf(o)){let u=C6(o.outlets);return new Zt(r,u)}if(i===0&&ig(n[0])){let u=e.segments[t];r.push(new mu(u.path,X_(n[0]))),i++;continue}let s=rf(o)?o.outlets[wt]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ig(a)?(r.push(new mu(s,X_(a))),i+=2):(r.push(new mu(s,{})),i++)}return new Zt(r,{})}function C6(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=_2(new Zt([],{}),0,r))}),t}function X_(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function eE(e,t,n){return e==n.path&&Bo(t,n.parameters)}var tf="imperative",tr=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(tr||{}),Li=class{constructor(t,n){this.id=t,this.url=n}},Kc=class extends Li{constructor(t,n,r="imperative",i=null){super(t,n),this.type=tr.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Vo=class extends Li{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=tr.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},li=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(li||{}),sg=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(sg||{}),Ns=class extends Li{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=tr.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},wa=class extends Li{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=tr.NavigationSkipped}},of=class extends Li{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=tr.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ag=class extends Li{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=tr.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},E2=class extends Li{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=tr.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},A2=class extends Li{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=tr.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},N2=class extends Li{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=tr.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},M2=class extends Li{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=tr.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},T2=class{constructor(t){this.route=t,this.type=tr.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},P2=class{constructor(t){this.route=t,this.type=tr.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},L2=class{constructor(t){this.snapshot=t,this.type=tr.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},O2=class{constructor(t){this.snapshot=t,this.type=tr.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},k2=class{constructor(t){this.snapshot=t,this.type=tr.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},R2=class{constructor(t){this.snapshot=t,this.type=tr.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ug=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=tr.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},sf=class{},Jc=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function x6(e,t){return e.providers&&!e._injector&&(e._injector=gm(e.providers,t,`Route: ${e.path}`)),e._injector??t}function lo(e){return e.outlet||wt}function I6(e,t){let n=e.filter(r=>lo(r)===t);return n.push(...e.filter(r=>lo(r)!==t)),n}function hf(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var F2=class{get injector(){return hf(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new pf(this.rootInjector),this.attachRef=null}},pf=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new F2(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(Ne(Mr))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cg=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=j2(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=j2(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=B2(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return B2(t,this._root).map(n=>n.value)}};function j2(e,t){if(e===t.value)return t;for(let n of t.children){let r=j2(e,n);if(r)return r}return null}function B2(e,t){if(e===t.value)return[t];for(let n of t.children){let r=B2(e,n);if(r.length)return r.unshift(t),r}return[]}var ci=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function qc(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var lg=class extends cg{constructor(t,n){super(t),this.snapshot=n,Y2(this,t)}toString(){return this.snapshot.toString()}};function DE(e){let t=S6(e),n=new Wt([new mu("",{})]),r=new Wt({}),i=new Wt({}),o=new Wt({}),s=new Wt(""),a=new yu(n,r,o,s,i,wt,e,t.root);return a.snapshot=t.root,new lg(new ci(a,[]),t)}function S6(e){let t={},n={},r={},i="",o=new Gc([],t,r,i,n,wt,e,null,{});return new fg("",new ci(o,[]))}var yu=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(_e(d=>d[df]))??qe(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}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.params.pipe(_e(t=>Zc(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_e(t=>Zc(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function dg(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:K(K({},t.params),e.params),data:K(K({},t.data),e.data),resolve:K(K(K(K({},e.data),t.data),i?.data),e._resolvedData)}:r={params:K({},e.params),data:K({},e.data),resolve:K(K({},e.data),e._resolvedData??{})},i&&xE(i)&&(r.resolve[df]=i.title),r}var Gc=class{get title(){return this.data?.[df]}constructor(t,n,r,i,o,s,a,u,d){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=d}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??=Zc(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zc(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},fg=class extends cg{constructor(t,n){super(n),this.url=t,Y2(this,n)}toString(){return CE(this._root)}};function Y2(e,t){t.value._routerState=e,t.children.forEach(n=>Y2(e,n))}function CE(e){let t=e.children.length>0?` { ${e.children.map(CE).join(", ")} } `:"";return`${e.value}${t}`}function w2(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Bo(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Bo(t.params,n.params)||e.paramsSubject.next(n.params),JF(t.url,n.url)||e.urlSubject.next(n.url),Bo(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function V2(e,t){let n=Bo(e.params,t.params)&&n6(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||V2(e.parent,t.parent))}function xE(e){return typeof e.title=="string"||e.title===null}var _6=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=wt,this.activateEvents=new yn,this.deactivateEvents=new yn,this.attachEvents=new yn,this.detachEvents=new yn,this.parentContexts=xe(pf),this.location=xe(Cs),this.changeDetector=xe(fa),this.inputBinder=xe(vg,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new $e(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new $e(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new $e(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new $e(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new U2(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Yt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ai]})}}return e})(),U2=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===yu?this.route:t===pf?this.childContexts:this.parent.get(t,n)}},vg=new He(""),tE=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,i=Qa([r.queryParams,r.params,r.data]).pipe(Mt(([o,s,a],u)=>(a=K(K(K({},o),s),a),u===0?qe(a):Promise.resolve(a)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=IS(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(n,i)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})();function E6(e,t,n){let r=af(e,t._root,n?n._root:void 0);return new lg(r,t)}function af(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=A6(e,t,n);return new ci(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>af(e,a)),s}}let r=N6(t.value),i=t.children.map(o=>af(e,o));return new ci(r,i)}}function A6(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return af(e,r,i);return af(e,r)})}function N6(e){return new yu(new Wt(e.url),new Wt(e.params),new Wt(e.queryParams),new Wt(e.fragment),new Wt(e.data),e.outlet,e.component,e)}var uf=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},IE="ngNavigationCancelingError";function hg(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=vu(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=SE(!1,li.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function SE(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[IE]=!0,n.cancellationCode=t,n}function M6(e){return _E(e)&&vu(e.url)}function _E(e){return!!e&&e[IE]}var T6=(e,t,n,r)=>_e(i=>(new H2(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),H2=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),w2(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=qc(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=qc(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=qc(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=qc(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new R2(o.value.snapshot))}),t.children.length&&this.forwardEvent(new O2(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(w2(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),w2(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},pg=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Yc=class{constructor(t,n){this.component=t,this.route=n}};function P6(e,t,n){let r=e._root,i=t?t._root:null;return Jd(r,i,n,[r.value])}function L6(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function el(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!CC(e)?e:t.get(e):r}function Jd(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=qc(t);return e.children.forEach(s=>{O6(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>nf(a,n.getContext(s),i)),i}function O6(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=k6(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new pg(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Jd(e,t,a?a.children:null,r,i):Jd(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Yc(a.outlet.component,s))}else s&&nf(t,a,i),i.canActivateChecks.push(new pg(r)),o.component?Jd(e,null,a?a.children:null,r,i):Jd(e,null,n,r,i);return i}function k6(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!gu(e.url,t.url);case"pathParamsOrQueryParamsChange":return!gu(e.url,t.url)||!Bo(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!V2(e,t)||!Bo(e.queryParams,t.queryParams);case"paramsChange":default:return!V2(e,t)}}function nf(e,t,n){let r=qc(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?nf(s,t.children.getContext(o),n):nf(s,null,n):nf(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Yc(t.outlet.component,i)):n.canDeactivateChecks.push(new Yc(null,i)):n.canDeactivateChecks.push(new Yc(null,i))}function mf(e){return typeof e=="function"}function R6(e){return typeof e=="boolean"}function F6(e){return e&&mf(e.canLoad)}function j6(e){return e&&mf(e.canActivate)}function B6(e){return e&&mf(e.canActivateChild)}function V6(e){return e&&mf(e.canDeactivate)}function U6(e){return e&&mf(e.canMatch)}function EE(e){return e instanceof Xi||e?.name==="EmptyError"}var eg=Symbol("INITIAL_VALUE");function Xc(){return Mt(e=>Qa(e.map(t=>t.pipe(cr(1),a0(eg)))).pipe(_e(t=>{for(let n of t)if(n!==!0){if(n===eg)return eg;if(n===!1||H6(n))return n}return!0}),Gt(t=>t!==eg),cr(1)))}function H6(e){return vu(e)||e instanceof uf}function $6(e,t){return rn(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?qe(Re(K({},n),{guardsResult:!0})):z6(s,r,i,e).pipe(rn(a=>a&&R6(a)?q6(r,o,e,t):qe(a)),_e(a=>Re(K({},n),{guardsResult:a})))})}function z6(e,t,n,r){return Dt(e).pipe(rn(i=>Q6(i.component,i.route,n,t,r)),to(i=>i!==!0,!0))}function q6(e,t,n,r){return Dt(t).pipe(ls(i=>Xs(G6(i.route.parent,r),W6(i.route,r),Z6(e,i.path,n),Y6(e,i.route,n))),to(i=>i!==!0,!0))}function W6(e,t){return e!==null&&t&&t(new k2(e)),qe(!0)}function G6(e,t){return e!==null&&t&&t(new L2(e)),qe(!0)}function Y6(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return qe(!0);let i=r.map(o=>Jh(()=>{let s=hf(t)??n,a=el(o,s),u=j6(a)?a.canActivate(t,e):Ei(s,()=>a(t,e));return Ca(u).pipe(to())}));return qe(i).pipe(Xc())}function Z6(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>L6(s)).filter(s=>s!==null).map(s=>Jh(()=>{let a=s.guards.map(u=>{let d=hf(s.node)??n,h=el(u,d),g=B6(h)?h.canActivateChild(r,e):Ei(d,()=>h(r,e));return Ca(g).pipe(to())});return qe(a).pipe(Xc())}));return qe(o).pipe(Xc())}function Q6(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return qe(!0);let s=o.map(a=>{let u=hf(t)??i,d=el(a,u),h=V6(d)?d.canDeactivate(e,t,n,r):Ei(u,()=>d(e,t,n,r));return Ca(h).pipe(to())});return qe(s).pipe(Xc())}function K6(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return qe(!0);let o=i.map(s=>{let a=el(s,e),u=F6(a)?a.canLoad(t,n):Ei(e,()=>a(t,n));return Ca(u)});return qe(o).pipe(Xc(),AE(r))}function AE(e){return sd(Bt(t=>{if(typeof t!="boolean")throw hg(e,t)}),_e(t=>t===!0))}function J6(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return qe(!0);let o=i.map(s=>{let a=el(s,e),u=U6(a)?a.canMatch(t,n):Ei(e,()=>a(t,n));return Ca(u)});return qe(o).pipe(Xc(),AE(r))}var cf=class{constructor(t){this.segmentGroup=t||null}},lf=class extends Error{constructor(t){super(),this.urlTree=t}};function zc(e){return Ci(new cf(e))}function X6(e){return Ci(new $e(4e3,!1))}function e8(e){return Ci(SE(!1,li.GuardRejected))}var $2=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return qe(r);if(i.numberOfChildren>1||!i.children[wt])return X6(`${t.redirectTo}`);i=i.children[wt]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:d,routeConfig:h,url:g,outlet:y,params:m,data:C,title:D}=i,N=Ei(o,()=>a({params:m,data:C,queryParams:u,fragment:d,routeConfig:h,url:g,outlet:y,title:D}));if(N instanceof Ms)throw new lf(N);n=N}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new lf(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new Ms(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new Zt(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new $e(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},z2={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function t8(e,t,n,r,i){let o=NE(e,t,n);return o.matched?(r=x6(t,r),J6(r,t,n,i).pipe(_e(s=>s===!0?o:K({},z2)))):qe(o)}function NE(e,t,n){if(t.path==="**")return n8(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?K({},z2):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||KF)(n,e,t);if(!i)return K({},z2);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?K(K({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function n8(e){return{matched:!0,parameters:e.length>0?uE(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function nE(e,t,n,r){return n.length>0&&o8(e,n,r)?{segmentGroup:new Zt(t,i8(r,new Zt(n,e.children))),slicedSegments:[]}:n.length===0&&s8(e,n,r)?{segmentGroup:new Zt(e.segments,r8(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Zt(e.segments,e.children),slicedSegments:n}}function r8(e,t,n,r){let i={};for(let o of n)if(yg(e,t,o)&&!r[lo(o)]){let s=new Zt([],{});i[lo(o)]=s}return K(K({},r),i)}function i8(e,t){let n={};n[wt]=t;for(let r of e)if(r.path===""&&lo(r)!==wt){let i=new Zt([],{});n[lo(r)]=i}return n}function o8(e,t,n){return n.some(r=>yg(e,t,r)&&lo(r)!==wt)}function s8(e,t,n){return n.some(r=>yg(e,t,r))}function yg(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function a8(e,t,n){return t.length===0&&!e.children[n]}var q2=class{};function u8(e,t,n,r,i,o,s="emptyOnly"){return new W2(e,t,n,r,i,s,o).recognize()}var c8=31,W2=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new $2(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new $e(4002,`'${t.segmentGroup}'`)}recognize(){let t=nE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(_e(({children:n,rootSnapshot:r})=>{let i=new ci(r,n),o=new fg("",i),s=g6(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new Gc([],Object.freeze({}),Object.freeze(K({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),wt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,wt,n).pipe(_e(r=>({children:r,rootSnapshot:n})),Jn(r=>{if(r instanceof lf)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof cf?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(_e(s=>s instanceof ci?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return Dt(o).pipe(ls(s=>{let a=r.children[s],u=I6(n,s);return this.processSegmentGroup(t,u,a,s,i)}),i0((s,a)=>(s.push(...a),s)),ea(null),r0(),rn(s=>{if(s===null)return zc(r);let a=ME(s);return l8(a),qe(a)}))}processSegment(t,n,r,i,o,s,a){return Dt(n).pipe(ls(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(Jn(d=>{if(d instanceof cf)return qe(null);throw d}))),to(u=>!!u),Jn(u=>{if(EE(u))return a8(r,i,o)?qe(new q2):zc(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return lo(r)!==s&&(s===wt||!yg(i,o,r))?zc(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):zc(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:d,consumedSegments:h,positionalParamSegments:g,remainingSegments:y}=NE(n,i,o);if(!u)return zc(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>c8&&(this.allowRedirects=!1));let m=new Gc(o,d,Object.freeze(K({},this.urlTree.queryParams)),this.urlTree.fragment,rE(i),lo(i),i.component??i._loadedComponent??null,i,iE(i)),C=dg(m,a,this.paramsInheritanceStrategy);m.params=Object.freeze(C.params),m.data=Object.freeze(C.data);let D=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,g,m,t);return this.applyRedirects.lineralizeSegments(i,D).pipe(rn(N=>this.processSegment(t,r,n,N.concat(y),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=t8(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Mt(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(Mt(({routes:d})=>{let h=r._loadedInjector??t,{parameters:g,consumedSegments:y,remainingSegments:m}=u,C=new Gc(y,g,Object.freeze(K({},this.urlTree.queryParams)),this.urlTree.fragment,rE(r),lo(r),r.component??r._loadedComponent??null,r,iE(r)),D=dg(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(D.params),C.data=Object.freeze(D.data);let{segmentGroup:N,slicedSegments:I}=nE(n,y,m,d);if(I.length===0&&N.hasChildren())return this.processChildren(h,d,N,C).pipe(_e(B=>new ci(C,B)));if(d.length===0&&I.length===0)return qe(new ci(C,[]));let P=lo(r)===o;return this.processSegment(h,d,N,I,P?wt:o,!0,C).pipe(_e(B=>new ci(C,B instanceof ci?[B]:[])))}))):zc(n)))}getChildConfig(t,n,r){return n.children?qe({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?qe({routes:n._loadedRoutes,injector:n._loadedInjector}):K6(t,n,r,this.urlSerializer).pipe(rn(i=>i?this.configLoader.loadChildren(t,n).pipe(Bt(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):e8(n))):qe({routes:[],injector:t})}};function l8(e){e.sort((t,n)=>t.value.outlet===wt?-1:n.value.outlet===wt?1:t.value.outlet.localeCompare(n.value.outlet))}function d8(e){let t=e.value.routeConfig;return t&&t.path===""}function ME(e){let t=[],n=new Set;for(let r of e){if(!d8(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=ME(r.children);t.push(new ci(r.value,i))}return t.filter(r=>!n.has(r))}function rE(e){return e.data||{}}function iE(e){return e.resolve||{}}function f8(e,t,n,r,i,o){return rn(s=>u8(e,t,n,r,s.extractedUrl,i,o).pipe(_e(({state:a,tree:u})=>Re(K({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function h8(e,t){return rn(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return qe(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let d of TE(u))s.add(d);let a=0;return Dt(s).pipe(ls(u=>o.has(u)?p8(u,r,e,t):(u.data=dg(u,u.parent,e).resolve,qe(void 0))),Bt(()=>a++),dc(1),rn(u=>a===s.size?qe(n):ur))})}function TE(e){let t=e.children.map(n=>TE(n)).flat();return[e,...t]}function p8(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!xE(i)&&(o[df]=i.title),m8(o,e,t,r).pipe(_e(s=>(e._resolvedData=s,e.data=dg(e,e.parent,n).resolve,null)))}function m8(e,t,n,r){let i=x2(e);if(i.length===0)return qe({});let o={};return Dt(i).pipe(rn(s=>g8(e[s],t,n,r).pipe(to(),Bt(a=>{if(a instanceof uf)throw hg(new Qc,a);o[s]=a}))),dc(1),ld(o),Jn(s=>EE(s)?ur:Ci(s)))}function g8(e,t,n,r){let i=hf(t)??r,o=el(e,i),s=o.resolve?o.resolve(t,n):Ei(i,()=>o(t,n));return Ca(s)}function D2(e){return Mt(t=>{let n=e(t);return n?Dt(n).pipe(_e(()=>t)):qe(t)})}var PE=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===wt);return r}getResolvedTitleForRoute(n){return n.data[df]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>xe(v8),providedIn:"root"})}}return e})(),v8=(()=>{class e extends PE{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(Ne(g_))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),gf=new He("",{providedIn:"root",factory:()=>({})}),y8=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=RC({type:e,selectors:[["ng-component"]],standalone:!0,features:[lS],decls:1,vars:0,template:function(r,i){r&1&&gb(0,"router-outlet")},dependencies:[_6],encapsulation:2})}}return e})();function Z2(e){let t=e.children&&e.children.map(Z2),n=t?Re(K({},e),{children:t}):K({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==wt&&(n.component=y8),n}var mg=new He(""),Q2=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=xe(xm)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return qe(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Ca(n.loadComponent()).pipe(_e(LE),Bt(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),eo(()=>{this.componentLoaders.delete(n)})),i=new ac(r,()=>new kt).pipe(sc());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return qe({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=b8(r,this.compiler,n,this.onLoadEndListener).pipe(eo(()=>{this.childrenLoaders.delete(r)})),s=new ac(o,()=>new kt).pipe(sc());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function b8(e,t,n,r){return Ca(e.loadChildren()).pipe(_e(LE),rn(i=>i instanceof wd||Array.isArray(i)?qe(i):Dt(t.compileModuleAsync(i))),_e(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(mg,[],{optional:!0,self:!0}).flat()),{routes:s.map(Z2),injector:o}}))}function w8(e){return e&&typeof e=="object"&&"default"in e}function LE(e){return w8(e)?e.default:e}var K2=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>xe(D8),providedIn:"root"})}}return e})(),D8=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),OE=new He(""),kE=new He("");function C8(e,t,n){let r=e.get(kE),i=e.get(er);return e.get(on).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(d=>setTimeout(d));let o,s=new Promise(d=>{o=d}),a=i.startViewTransition(()=>(o(),x8(e))),{onViewTransitionCreated:u}=r;return u&&Ei(e,()=>u({transition:a,from:t,to:n})),s})}function x8(e){return new Promise(t=>{pb({read:()=>setTimeout(t)},{injector:e})})}var I8=new He(""),J2=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new kt,this.transitionAbortSubject=new kt,this.configLoader=xe(Q2),this.environmentInjector=xe(Mr),this.urlSerializer=xe(ff),this.rootContexts=xe(pf),this.location=xe(Bc),this.inputBindingEnabled=xe(vg,{optional:!0})!==null,this.titleStrategy=xe(PE),this.options=xe(gf,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=xe(K2),this.createViewTransition=xe(OE,{optional:!0}),this.navigationErrorHandler=xe(I8,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>qe(void 0),this.rootComponentType=null;let n=i=>this.events.next(new T2(i)),r=i=>this.events.next(new P2(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(Re(K(K({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new Wt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:tf,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Gt(o=>o.id!==0),_e(o=>Re(K({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Mt(o=>{let s=!1,a=!1;return qe(o).pipe(Mt(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",li.SupersededByNewNavigation),ur;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Re(K({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let d=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!d&&h!=="reload"){let g="";return this.events.next(new wa(u.id,this.urlSerializer.serialize(u.rawUrl),g,sg.IgnoredSameUrlNavigation)),u.resolve(!1),ur}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return qe(u).pipe(Mt(g=>{let y=this.transitions?.getValue();return this.events.next(new Kc(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),y!==this.transitions?.getValue()?ur:Promise.resolve(g)}),f8(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Bt(g=>{o.targetSnapshot=g.targetSnapshot,o.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=Re(K({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let y=new ag(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(y)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:g,extractedUrl:y,source:m,restoredState:C,extras:D}=u,N=new Kc(g,this.urlSerializer.serialize(y),m,C);this.events.next(N);let I=DE(this.rootComponentType).snapshot;return this.currentTransition=o=Re(K({},u),{targetSnapshot:I,urlAfterRedirects:y,extras:Re(K({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,qe(o)}else{let g="";return this.events.next(new wa(u.id,this.urlSerializer.serialize(u.extractedUrl),g,sg.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ur}}),Bt(u=>{let d=new E2(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),_e(u=>(this.currentTransition=o=Re(K({},u),{guards:P6(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),$6(this.environmentInjector,u=>this.events.next(u)),Bt(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw hg(this.urlSerializer,u.guardsResult);let d=new A2(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(d)}),Gt(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",li.GuardRejected),!1)),D2(u=>{if(u.guards.canActivateChecks.length)return qe(u).pipe(Bt(d=>{let h=new N2(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}),Mt(d=>{let h=!1;return qe(d).pipe(h8(this.paramsInheritanceStrategy,this.environmentInjector),Bt({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(d,"",li.NoDataFromResolver)}}))}),Bt(d=>{let h=new M2(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}))}),D2(u=>{let d=h=>{let g=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(h.routeConfig).pipe(Bt(y=>{h.component=y}),_e(()=>{})));for(let y of h.children)g.push(...d(y));return g};return Qa(d(u.targetSnapshot.root)).pipe(ea(null),cr(1))}),D2(()=>this.afterPreactivation()),Mt(()=>{let{currentSnapshot:u,targetSnapshot:d}=o,h=this.createViewTransition?.(this.environmentInjector,u.root,d.root);return h?Dt(h).pipe(_e(()=>o)):qe(o)}),_e(u=>{let d=E6(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=Re(K({},u),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,o}),Bt(()=>{this.events.next(new sf)}),T6(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),cr(1),Bt({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vo(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),np(this.transitionAbortSubject.pipe(Bt(u=>{throw u}))),eo(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",li.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Jn(u=>{if(a=!0,_E(u))this.events.next(new Ns(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),M6(u)?this.events.next(new Jc(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let d=new of(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let h=Ei(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(h instanceof uf){let{message:g,cancellationCode:y}=hg(this.urlSerializer,h);this.events.next(new Ns(o.id,this.urlSerializer.serialize(o.extractedUrl),g,y)),this.events.next(new Jc(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(d);let g=n.errorHandler(u);o.resolve(!!g)}}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return ur}))}))}cancelNavigationTransition(n,r,i){let o=new Ns(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function S8(e){return e!==tf}var _8=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>xe(E8),providedIn:"root"})}}return e})(),G2=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},E8=(()=>{class e extends G2{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),RE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:()=>xe(A8),providedIn:"root"})}}return e})(),A8=(()=>{class e extends RE{constructor(){super(...arguments),this.location=xe(Bc),this.urlSerializer=xe(ff),this.options=xe(gf,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=xe(K2),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ms,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=DE(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Kc)this.stateMemento=this.createStateMemento();else if(n instanceof wa)this.rawUrlTree=r.initialUrl;else if(n instanceof ag){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof sf?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof Ns&&(n.code===li.GuardRejected||n.code===li.NoDataFromResolver)?this.restoreHistory(r):n instanceof of?this.restoreHistory(r,!0):n instanceof Vo&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof Ms?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=K(K({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=K(K({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Mi(e)))(i||e)}})()}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Xd=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Xd||{});function FE(e,t){e.events.pipe(Gt(n=>n instanceof Vo||n instanceof Ns||n instanceof of||n instanceof wa),_e(n=>n instanceof Vo||n instanceof wa?Xd.COMPLETE:(n instanceof Ns?n.code===li.Redirect||n.code===li.SupersededByNewNavigation:!1)?Xd.REDIRECTING:Xd.FAILED),Gt(n=>n!==Xd.REDIRECTING),cr(1)).subscribe(()=>{t()})}function N8(e){throw e}var M8={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},T8={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Da=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=xe(ym),this.stateManager=xe(RE),this.options=xe(gf,{optional:!0})||{},this.pendingTasks=xe(bs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=xe(J2),this.urlSerializer=xe(ff),this.location=xe(Bc),this.urlHandlingStrategy=xe(K2),this._events=new kt,this.errorHandler=this.options.errorHandler||N8,this.navigated=!1,this.routeReuseStrategy=xe(_8),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=xe(mg,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!xe(vg,{optional:!0}),this.eventsSubscription=new _n,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Ns&&r.code!==li.Redirect&&r.code!==li.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Vo)this.navigated=!0;else if(r instanceof Jc){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=K({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||S8(i.source)},s);this.scheduleNavigation(a,tf,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}L8(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),tf,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=K({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Z2),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,d=u?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=K(K({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let g;try{let y=i?i.snapshot:this.routerState.snapshot.root;g=vE(y)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),g=this.currentUrlTree.root}return yE(g,n,h,d??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=vu(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,tf,null,r)}navigate(n,r={skipLocationChange:!1}){return P8(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=K({},M8):r===!1?i=K({},T8):i=r,vu(n))return K_(this.currentUrlTree,n,i);let o=this.parseUrl(n);return K_(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,d;s?(a=s.resolve,u=s.reject,d=s.promise):d=new Promise((g,y)=>{a=g,u=y});let h=this.pendingTasks.add();return FE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(g=>Promise.reject(g))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function P8(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new $e(4008,!1)}function L8(e){return!(e instanceof sf)&&!(e instanceof Jc)}var eZ=(()=>{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new kt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(d=>{d instanceof Vo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(vu(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Qx(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,n,r):i.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:vu(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(ze(Da),ze(yu),U1("tabindex"),ze(so),ze(Lr),ze(Es))}}static{this.\u0275dir=Yt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&ao("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&hu("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ha],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ha],replaceUrl:[2,"replaceUrl","replaceUrl",ha],routerLink:"routerLink"},standalone:!0,features:[hb,Ai]})}}return e})();var gg=class{};var O8=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Gt(n=>n instanceof Vo),ls(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=gm(o.providers,n,`Route: ${o.path}`));let s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Dt(i).pipe(Js())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(n,r):i=qe(null);let o=i.pipe(rn(s=>s===null?qe(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return Dt([o,s]).pipe(Js())}else return o})}static{this.\u0275fac=function(r){return new(r||e)(Ne(Da),Ne(xm),Ne(Mr),Ne(gg),Ne(Q2))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jE=new He(""),k8=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Kc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vo?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof wa&&n.code===sg.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ug&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ug(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){lI()}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac})}}return e})();function R8(e){return e.routerState.root}function vf(e,t){return{\u0275kind:e,\u0275providers:t}}function F8(){let e=xe(qr);return t=>{let n=e.get(xs);if(t!==n.components[0])return;let r=e.get(Da),i=e.get(BE);e.get(X2)===1&&r.initialNavigation(),e.get(VE,null,Ct.Optional)?.setUpPreloading(),e.get(jE,null,Ct.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var BE=new He("",{factory:()=>new kt}),X2=new He("",{providedIn:"root",factory:()=>1});function j8(){return vf(2,[{provide:X2,useValue:0},{provide:Dm,multi:!0,deps:[qr],useFactory:t=>{let n=t.get(kS,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let i=t.get(Da),o=t.get(BE);FE(i,()=>{r(!0)}),t.get(J2).afterPreactivation=()=>(r(!0),o.closed?qe(void 0):o),i.initialNavigation()}))}}])}function B8(){return vf(3,[{provide:Dm,multi:!0,useFactory:()=>{let t=xe(Da);return()=>{t.setUpLocationChangeListener()}}},{provide:X2,useValue:2}])}var VE=new He("");function V8(e){return vf(0,[{provide:VE,useExisting:O8},{provide:gg,useExisting:e}])}function U8(){return vf(8,[tE,{provide:vg,useExisting:tE}])}function H8(e){let t=[{provide:OE,useValue:C8},{provide:kE,useValue:K({skipNextTransition:!!e?.skipInitialTransition},e)}];return vf(9,t)}var oE=new He("ROUTER_FORROOT_GUARD"),$8=[Bc,{provide:ff,useClass:Qc},Da,pf,{provide:yu,useFactory:R8,deps:[Da]},Q2,[]],ew=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[$8,[],{provide:mg,multi:!0,useValue:n},{provide:oE,useFactory:G8,deps:[[Da,new Yp,new _1]]},{provide:gf,useValue:r||{}},r?.useHash?q8():W8(),z8(),r?.preloadingStrategy?V8(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Y8(r):[],r?.bindToComponentInputs?U8().\u0275providers:[],r?.enableViewTransitions?H8().\u0275providers:[],Z8()]}}static forChild(n){return{ngModule:e,providers:[{provide:mg,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(Ne(oE,8))}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({})}}return e})();function z8(){return{provide:jE,useFactory:()=>{let e=xe(GS),t=xe(on),n=xe(gf),r=xe(J2),i=xe(ff);return n.scrollOffset&&e.setOffset(n.scrollOffset),new k8(i,r,e,t,n)}}}function q8(){return{provide:Es,useClass:FS}}function W8(){return{provide:Es,useClass:Fb}}function G8(e){return"guarded"}function Y8(e){return[e.initialNavigation==="disabled"?B8().\u0275providers:[],e.initialNavigation==="enabledBlocking"?j8().\u0275providers:[]]}var sE=new He("");function Z8(){return[{provide:sE,useFactory:F8},{provide:Cm,multi:!0,useExisting:sE}]}var di=class{constructor(t,n,r,i,o,s=0){this.id=t;this.description=n;this.imageUrl=r;this.dimensions=i;this.detail=o;this.visDoorHeight=s}};var UE=[new di(1,"Modell L","Modell_L_Tueren_Web.svg","35 x 46 x 50 cm","Standardgr\xF6\xDFe f\xFCr \xFCblichen Platzbedarf",59.5),new di(2,"Modell XL","Modell_XL_Tueren_Web.svg","35 x 92,5 x 50 cm","ideal f\xFCr Sportequipment und Musikinstrumente",123.55),new di(3,"Modell XXL","Modell_XXL_Tueren_Web.svg","35 x 138,5 x 50 cm","ideal f\xFCr Sportequipment und Musikinstrumente"),new di(4,"Modell XXXL","Modell_XXXL_Tueren_Web.svg","35 x 185 x 50 cm","ideal f\xFCr Sportequipment und Musikinstrumente"),new di(5,"Modell S","Modell_S_Tueren_Web.svg","37,5 x 18 x 50 cm","Notebook- und Tablet-Schrank",23),new di(101,"Modell L mit USB-C-Anschluss","Modell_L_Tueren_Web.svg","35 x 46 x 50 cm","Standardgr\xF6\xDFe f\xFCr \xFCblichen Platzbedarf",59.5),new di(102,"Modell XL mit USB-C-Anschluss","Modell_XL_Tueren_Web.svg","35 x 92,5 x 50 cm","ideal f\xFCr Sportequipment und Musikinstrumente",123.55),new di(103,"Modell XXL mit USB-C-Anschluss","Modell_XXL_Tueren_Web.svg","35 x 138,5 x 50 cm","ideal f\xFCr Sportequipment und Musikinstrumente"),new di(104,"Modell XXXL mit USB-C-Anschluss","Modell_XXXL_Tueren_Web.svg","35 x 185 x 50 cm","ideal f\xFCr Sportequipment und Musikinstrumente"),new di(105,"Modell S mit USB-C-Anschluss","Modell_S_Tueren_Web.svg","37,5 x 18 x 50 cm","Notebook- und Tablet-Schrank",23)];var bg=class e{transform(t,n="description"){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&isNaN(Number(t)))return t;let r=UE.find(i=>i.id===t);return r?r[n]:t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275pipe=ca({name:"toLockerType",type:e,pure:!0})}};var Dr=Uint8Array,fi=Uint16Array,uw=Int32Array,wg=new Dr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Dg=new Dr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),iw=new Dr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qE=function(e,t){for(var n=new fi(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new uw(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},WE=qE(wg,2),GE=WE.b,ow=WE.r;GE[28]=258,ow[258]=28;var YE=qE(Dg,0),Q8=YE.b,HE=YE.r,sw=new fi(32768);for($t=0;$t<32768;++$t)Ts=($t&43690)>>1|($t&21845)<<1,Ts=(Ts&52428)>>2|(Ts&13107)<<2,Ts=(Ts&61680)>>4|(Ts&3855)<<4,sw[$t]=((Ts&65280)>>8|(Ts&255)<<8)>>1;var Ts,$t,Uo=function(e,t,n){for(var r=e.length,i=0,o=new fi(t);i<r;++i)e[i]&&++o[e[i]-1];var s=new fi(t);for(i=1;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(n){a=new fi(1<<t);var u=15-t;for(i=0;i<r;++i)if(e[i])for(var d=i<<4|e[i],h=t-e[i],g=s[e[i]-1]++<<h,y=g|(1<<h)-1;g<=y;++g)a[sw[g]>>u]=d}else for(a=new fi(r),i=0;i<r;++i)e[i]&&(a[i]=sw[s[e[i]-1]++]>>15-e[i]);return a},xa=new Dr(288);for($t=0;$t<144;++$t)xa[$t]=8;var $t;for($t=144;$t<256;++$t)xa[$t]=9;var $t;for($t=256;$t<280;++$t)xa[$t]=7;var $t;for($t=280;$t<288;++$t)xa[$t]=8;var $t,wf=new Dr(32);for($t=0;$t<32;++$t)wf[$t]=5;var $t,K8=Uo(xa,9,0),J8=Uo(xa,9,1),X8=Uo(wf,5,0),ej=Uo(wf,5,1),tw=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},fo=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},nw=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},cw=function(e){return(e+7)/8|0},ZE=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Dr(e.subarray(t,n))};var tj=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ho=function(e,t,n){var r=new Error(t||tj[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,ho),!n)throw r;return r},nj=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new Dr(0);var s=!n,a=s||t.i!=2,u=t.i;s&&(n=new Dr(i*3));var d=function(Se){var ke=n.length;if(Se>ke){var Pe=new Dr(Math.max(ke*2,Se));Pe.set(n),n=Pe}},h=t.f||0,g=t.p||0,y=t.b||0,m=t.l,C=t.d,D=t.m,N=t.n,I=i*8;do{if(!m){h=fo(e,g,1);var P=fo(e,g+1,3);if(g+=3,P)if(P==1)m=J8,C=ej,D=9,N=5;else if(P==2){var me=fo(e,g,31)+257,te=fo(e,g+10,15)+4,H=me+fo(e,g+5,31)+1;g+=14;for(var oe=new Dr(H),ge=new Dr(19),M=0;M<te;++M)ge[iw[M]]=fo(e,g+M*3,7);g+=te*3;for(var L=tw(ge),W=(1<<L)-1,V=Uo(ge,L,1),M=0;M<H;){var le=V[fo(e,g,W)];g+=le&15;var B=le>>4;if(B<16)oe[M++]=B;else{var ue=0,fe=0;for(B==16?(fe=3+fo(e,g,3),g+=2,ue=oe[M-1]):B==17?(fe=3+fo(e,g,7),g+=3):B==18&&(fe=11+fo(e,g,127),g+=7);fe--;)oe[M++]=ue}}var ne=oe.subarray(0,me),he=oe.subarray(me);D=tw(ne),N=tw(he),m=Uo(ne,D,1),C=Uo(he,N,1)}else ho(1);else{var B=cw(g)+4,J=e[B-4]|e[B-3]<<8,ie=B+J;if(ie>i){u&&ho(0);break}a&&d(y+J),n.set(e.subarray(B,ie),y),t.b=y+=J,t.p=g=ie*8,t.f=h;continue}if(g>I){u&&ho(0);break}}a&&d(y+131072);for(var ve=(1<<D)-1,Fe=(1<<N)-1,_=g;;_=g){var ue=m[nw(e,g)&ve],k=ue>>4;if(g+=ue&15,g>I){u&&ho(0);break}if(ue||ho(2),k<256)n[y++]=k;else if(k==256){_=g,m=null;break}else{var F=k-254;if(k>264){var M=k-257,$=wg[M];F=fo(e,g,(1<<$)-1)+GE[M],g+=$}var Z=C[nw(e,g)&Fe],re=Z>>4;Z||ho(3),g+=Z&15;var he=Q8[re];if(re>3){var $=Dg[re];he+=nw(e,g)&(1<<$)-1,g+=$}if(g>I){u&&ho(0);break}a&&d(y+131072);var se=y+F;if(y<he){var ae=o-he,Ee=Math.min(he,se);for(ae+y<0&&ho(3);y<Ee;++y)n[y]=r[ae+y]}for(;y<se;++y)n[y]=n[y-he]}}t.l=m,t.p=_,t.b=y,t.f=h,m&&(h=1,t.m=D,t.d=C,t.n=N)}while(!h);return y!=n.length&&s?ZE(n,0,y):n.subarray(0,y)},Ps=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8},yf=function(e,t,n){n<<=t&7;var r=t/8|0;e[r]|=n,e[r+1]|=n>>8,e[r+2]|=n>>16},rw=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return{t:KE,l:0};if(i==1){var s=new Dr(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(ie,me){return ie.f-me.f}),n.push({s:-1,f:25001});var a=n[0],u=n[1],d=0,h=1,g=2;for(n[0]={s:-1,f:a.f+u.f,l:a,r:u};h!=i-1;)a=n[n[d].f<n[g].f?d++:g++],u=n[d!=h&&n[d].f<n[g].f?d++:g++],n[h++]={s:-1,f:a.f+u.f,l:a,r:u};for(var y=o[0].s,r=1;r<i;++r)o[r].s>y&&(y=o[r].s);var m=new fi(y+1),C=aw(n[h-1],m,0);if(C>t){var r=0,D=0,N=C-t,I=1<<N;for(o.sort(function(me,te){return m[te.s]-m[me.s]||me.f-te.f});r<i;++r){var P=o[r].s;if(m[P]>t)D+=I-(1<<C-m[P]),m[P]=t;else break}for(D>>=N;D>0;){var B=o[r].s;m[B]<t?D-=1<<t-m[B]++-1:++r}for(;r>=0&&D;--r){var J=o[r].s;m[J]==t&&(--m[J],++D)}C=t}return{t:new Dr(m),l:C}},aw=function(e,t,n){return e.s==-1?Math.max(aw(e.l,t,n+1),aw(e.r,t,n+1)):t[e.s]=n},$E=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new fi(++t),r=0,i=e[0],o=1,s=function(u){n[r++]=u},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return{c:n.subarray(0,r),n:t}},bf=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},QE=function(e,t,n){var r=n.length,i=cw(t+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},zE=function(e,t,n,r,i,o,s,a,u,d,h){Ps(t,h++,n),++i[256];for(var g=rw(i,15),y=g.t,m=g.l,C=rw(o,15),D=C.t,N=C.l,I=$E(y),P=I.c,B=I.n,J=$E(D),ie=J.c,me=J.n,te=new fi(19),H=0;H<P.length;++H)++te[P[H]&31];for(var H=0;H<ie.length;++H)++te[ie[H]&31];for(var oe=rw(te,7),ge=oe.t,M=oe.l,L=19;L>4&&!ge[iw[L-1]];--L);var W=d+5<<3,V=bf(i,xa)+bf(o,wf)+s,le=bf(i,y)+bf(o,D)+s+14+3*L+bf(te,ge)+2*te[16]+3*te[17]+7*te[18];if(u>=0&&W<=V&&W<=le)return QE(t,h,e.subarray(u,u+d));var ue,fe,ne,he;if(Ps(t,h,1+(le<V)),h+=2,le<V){ue=Uo(y,m,0),fe=y,ne=Uo(D,N,0),he=D;var ve=Uo(ge,M,0);Ps(t,h,B-257),Ps(t,h+5,me-1),Ps(t,h+10,L-4),h+=14;for(var H=0;H<L;++H)Ps(t,h+3*H,ge[iw[H]]);h+=3*L;for(var Fe=[P,ie],_=0;_<2;++_)for(var k=Fe[_],H=0;H<k.length;++H){var F=k[H]&31;Ps(t,h,ve[F]),h+=ge[F],F>15&&(Ps(t,h,k[H]>>5&127),h+=k[H]>>12)}}else ue=K8,fe=xa,ne=X8,he=wf;for(var H=0;H<a;++H){var $=r[H];if($>255){var F=$>>18&31;yf(t,h,ue[F+257]),h+=fe[F+257],F>7&&(Ps(t,h,$>>23&31),h+=wg[F]);var Z=$&31;yf(t,h,ne[Z]),h+=he[Z],Z>3&&(yf(t,h,$>>5&8191),h+=Dg[Z])}else yf(t,h,ue[$]),h+=fe[$]}return yf(t,h,ue[256]),h+fe[256]},rj=new uw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),KE=new Dr(0),ij=function(e,t,n,r,i,o){var s=o.z||e.length,a=new Dr(r+s+5*(1+Math.ceil(s/7e3))+i),u=a.subarray(r,a.length-i),d=o.l,h=(o.r||0)&7;if(t){h&&(u[0]=o.r>>3);for(var g=rj[t-1],y=g>>13,m=g&8191,C=(1<<n)-1,D=o.p||new fi(32768),N=o.h||new fi(C+1),I=Math.ceil(n/3),P=2*I,B=function(it){return(e[it]^e[it+1]<<I^e[it+2]<<P)&C},J=new uw(25e3),ie=new fi(288),me=new fi(32),te=0,H=0,oe=o.i||0,ge=0,M=o.w||0,L=0;oe+2<s;++oe){var W=B(oe),V=oe&32767,le=N[W];if(D[V]=le,N[W]=V,M<=oe){var ue=s-oe;if((te>7e3||ge>24576)&&(ue>423||!d)){h=zE(e,u,0,J,ie,me,H,ge,L,oe-L,h),ge=te=H=0,L=oe;for(var fe=0;fe<286;++fe)ie[fe]=0;for(var fe=0;fe<30;++fe)me[fe]=0}var ne=2,he=0,ve=m,Fe=V-le&32767;if(ue>2&&W==B(oe-Fe))for(var _=Math.min(y,ue)-1,k=Math.min(32767,oe),F=Math.min(258,ue);Fe<=k&&--ve&&V!=le;){if(e[oe+ne]==e[oe+ne-Fe]){for(var $=0;$<F&&e[oe+$]==e[oe+$-Fe];++$);if($>ne){if(ne=$,he=Fe,$>_)break;for(var Z=Math.min(Fe,$-2),re=0,fe=0;fe<Z;++fe){var se=oe-Fe+fe&32767,ae=D[se],Ee=se-ae&32767;Ee>re&&(re=Ee,le=se)}}}V=le,le=D[V],Fe+=V-le&32767}if(he){J[ge++]=268435456|ow[ne]<<18|HE[he];var Se=ow[ne]&31,ke=HE[he]&31;H+=wg[Se]+Dg[ke],++ie[257+Se],++me[ke],M=oe+ne,++te}else J[ge++]=e[oe],++ie[e[oe]]}}for(oe=Math.max(oe,M);oe<s;++oe)J[ge++]=e[oe],++ie[e[oe]];h=zE(e,u,d,J,ie,me,H,ge,L,oe-L,h),d||(o.r=h&7|u[h/8|0]<<3,h-=7,o.h=N,o.p=D,o.i=oe,o.w=M)}else{for(var oe=o.w||0;oe<s+d;oe+=65535){var Pe=oe+65535;Pe>=s&&(u[h/8|0]=d,Pe=s),h=QE(u,h+1,e.subarray(oe,Pe))}o.i=s}return ZE(a,0,r+cw(h)+i)};var JE=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length|0,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)i+=r+=n[s];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},oj=function(e,t,n,r,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new Dr(o.length+e.length);s.set(o),s.set(e,o.length),e=s,i.w=o.length}return ij(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,r,i)};var XE=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};var sj=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=JE();i.p(t.dictionary),XE(e,2,i.d())}},aj=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ho(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&ho(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Cg(e,t){t||(t={});var n=JE();n.p(e);var r=oj(e,t,t.dictionary?6:2,4);return sj(r,t),XE(r,r.length-4,n.d()),r}function eA(e,t){return nj(e.subarray(aj(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var uj=typeof TextDecoder<"u"&&new TextDecoder,cj=0;try{uj.decode(KE,{stream:!0}),cj=1}catch{}var ot=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function lw(){ot.console&&typeof ot.console.log=="function"&&ot.console.log.apply(ot.console,arguments)}var ln={log:lw,warn:function(e){ot.console&&(typeof ot.console.warn=="function"?ot.console.warn.apply(ot.console,arguments):lw.call(null,arguments))},error:function(e){ot.console&&(typeof ot.console.error=="function"?ot.console.error.apply(ot.console,arguments):lw(e))}};function dw(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){bu(r.response,t,n)},r.onerror=function(){ln.error("could not download file")},r.send()}function tA(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function xg(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Df,gw,bu=ot.saveAs||((typeof window>"u"?"undefined":nn(window))!=="object"||window!==ot?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=ot.URL||ot.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?tA(i.href)?dw(e,t,n):xg(i,i.target="_blank"):xg(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){xg(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(tA(e))dw(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){xg(r)})}else navigator.msSaveOrOpenBlob(function(i,o){return o===void 0?o={autoBom:!1}:nn(o)!=="object"&&(ln.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return dw(e,t,n);var i=e.type==="application/octet-stream",o=/constructor/i.test(ot.HTMLElement)||ot.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&(typeof FileReader>"u"?"undefined":nn(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var h=a.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},a.readAsDataURL(e)}else{var u=ot.URL||ot.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){u.revokeObjectURL(d)},4e4)}});function yA(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,s=i.exec(e);s&&(t=o(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),u=this.g.toString(16),d=this.b.toString(16);return a.length==1&&(a="0"+a),u.length==1&&(u="0"+u),d.length==1&&(d="0"+d),"#"+a+u+d}}function fw(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n=Cr(n,r,i,o,t[0],7,-680876936),o=Cr(o,n,r,i,t[1],12,-389564586),i=Cr(i,o,n,r,t[2],17,606105819),r=Cr(r,i,o,n,t[3],22,-1044525330),n=Cr(n,r,i,o,t[4],7,-176418897),o=Cr(o,n,r,i,t[5],12,1200080426),i=Cr(i,o,n,r,t[6],17,-1473231341),r=Cr(r,i,o,n,t[7],22,-45705983),n=Cr(n,r,i,o,t[8],7,1770035416),o=Cr(o,n,r,i,t[9],12,-1958414417),i=Cr(i,o,n,r,t[10],17,-42063),r=Cr(r,i,o,n,t[11],22,-1990404162),n=Cr(n,r,i,o,t[12],7,1804603682),o=Cr(o,n,r,i,t[13],12,-40341101),i=Cr(i,o,n,r,t[14],17,-1502002290),n=xr(n,r=Cr(r,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=xr(o,n,r,i,t[6],9,-1069501632),i=xr(i,o,n,r,t[11],14,643717713),r=xr(r,i,o,n,t[0],20,-373897302),n=xr(n,r,i,o,t[5],5,-701558691),o=xr(o,n,r,i,t[10],9,38016083),i=xr(i,o,n,r,t[15],14,-660478335),r=xr(r,i,o,n,t[4],20,-405537848),n=xr(n,r,i,o,t[9],5,568446438),o=xr(o,n,r,i,t[14],9,-1019803690),i=xr(i,o,n,r,t[3],14,-187363961),r=xr(r,i,o,n,t[8],20,1163531501),n=xr(n,r,i,o,t[13],5,-1444681467),o=xr(o,n,r,i,t[2],9,-51403784),i=xr(i,o,n,r,t[7],14,1735328473),n=Ir(n,r=xr(r,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=Ir(o,n,r,i,t[8],11,-2022574463),i=Ir(i,o,n,r,t[11],16,1839030562),r=Ir(r,i,o,n,t[14],23,-35309556),n=Ir(n,r,i,o,t[1],4,-1530992060),o=Ir(o,n,r,i,t[4],11,1272893353),i=Ir(i,o,n,r,t[7],16,-155497632),r=Ir(r,i,o,n,t[10],23,-1094730640),n=Ir(n,r,i,o,t[13],4,681279174),o=Ir(o,n,r,i,t[0],11,-358537222),i=Ir(i,o,n,r,t[3],16,-722521979),r=Ir(r,i,o,n,t[6],23,76029189),n=Ir(n,r,i,o,t[9],4,-640364487),o=Ir(o,n,r,i,t[12],11,-421815835),i=Ir(i,o,n,r,t[15],16,530742520),n=Sr(n,r=Ir(r,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=Sr(o,n,r,i,t[7],10,1126891415),i=Sr(i,o,n,r,t[14],15,-1416354905),r=Sr(r,i,o,n,t[5],21,-57434055),n=Sr(n,r,i,o,t[12],6,1700485571),o=Sr(o,n,r,i,t[3],10,-1894986606),i=Sr(i,o,n,r,t[10],15,-1051523),r=Sr(r,i,o,n,t[1],21,-2054922799),n=Sr(n,r,i,o,t[8],6,1873313359),o=Sr(o,n,r,i,t[15],10,-30611744),i=Sr(i,o,n,r,t[6],15,-1560198380),r=Sr(r,i,o,n,t[13],21,1309151649),n=Sr(n,r,i,o,t[4],6,-145523070),o=Sr(o,n,r,i,t[11],10,-1120210379),i=Sr(i,o,n,r,t[2],15,718787259),r=Sr(r,i,o,n,t[9],21,-343485551),e[0]=Sa(n,e[0]),e[1]=Sa(r,e[1]),e[2]=Sa(i,e[2]),e[3]=Sa(o,e[3])}function Lg(e,t,n,r,i,o){return t=Sa(Sa(t,e),Sa(r,o)),Sa(t<<i|t>>>32-i,n)}function Cr(e,t,n,r,i,o,s){return Lg(t&n|~t&r,e,t,i,o,s)}function xr(e,t,n,r,i,o,s){return Lg(t&r|n&~r,e,t,i,o,s)}function Ir(e,t,n,r,i,o,s){return Lg(t^n^r,e,t,i,o,s)}function Sr(e,t,n,r,i,o,s){return Lg(n^(t|~r),e,t,i,o,s)}function bA(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)fw(r,lj(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(fw(r,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,fw(r,i),r}function lj(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}Df=ot.atob.bind(ot),gw=ot.btoa.bind(ot);var nA="0123456789abcdef".split("");function dj(e){for(var t="",n=0;n<4;n++)t+=nA[e>>8*n+4&15]+nA[e>>8*n&15];return t}function fj(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function vw(e){return bA(e).map(fj).join("")}var hj=function(e){for(var t=0;t<e.length;t++)e[t]=dj(e[t]);return e.join("")}(bA("hello"))!="5d41402abc4b2a76b9719d911017c592";function Sa(e,t){if(hj){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}function yw(e,t){var n,r,i,o;if(e!==n){for(var s=(i=e,o=1+(256/e.length>>0),new Array(o+1).join(i)),a=[],u=0;u<256;u++)a[u]=u;var d=0;for(u=0;u<256;u++){var h=a[u];d=(d+h+s.charCodeAt(u))%256,a[u]=a[d],a[d]=h}n=e,r=a}else a=r;var g=t.length,y=0,m=0,C="";for(u=0;u<g;u++)m=(m+(h=a[y=(y+1)%256]))%256,a[y]=a[m],a[m]=h,s=a[(a[y]+a[m])%256],C+=String.fromCharCode(t.charCodeAt(u)^s);return C}var rA={print:4,modify:8,copy:16,"annot-forms":32};function rl(e,t,n,r){this.v=1,this.r=2;var i=192;e.forEach(function(a){if(rA.perm!==void 0)throw new Error("Invalid permission: "+a);i+=rA[a]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var o=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,s),this.P=-(1+(255^i)),this.encryptionKey=vw(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=yw(this.encryptionKey,this.padding)}function il(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var i=e.charCodeAt(r);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[r]}return t}function iA(e){if(nn(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,r,i){if(i=i||!1,typeof n!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var o=Math.random().toString(35);return t[n][o]=[r,!!i],o},this.unsubscribe=function(n){for(var r in t)if(t[r][n])return delete t[r][n],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[n]){var s=t[n][o];try{s[0].apply(e,r)}catch(a){ot.console&&ln.error("jsPDF PubSub Error",a.message,a)}s[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Tg(e){if(!(this instanceof Tg))return new Tg(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function wA(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function wu(e,t,n,r,i){if(!(this instanceof wu))return new wu(e,t,n,r,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,wA.call(this,r,i)}function ol(e,t,n,r,i){if(!(this instanceof ol))return new ol(e,t,n,r,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,wA.call(this,r,i)}function rt(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],s=[],a=1,u=16,d="S",h=null;nn(e=e||{})==="object"&&(n=e.orientation,r=e.unit||r,i=e.format||i,o=e.compress||e.compressPdf||o,(h=e.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(u=e.floatPrecision),d=e.defaultPathOperation||"S"),s=e.filters||(o===!0?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var g=e.putOnlyUsedFonts||!1,y={},m={internal:{},__private__:{}};m.__private__.PubSub=iA;var C="1.3",D=m.__private__.getPdfVersion=function(){return C};m.__private__.setPdfVersion=function(f){C=f};var N={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};m.__private__.getPageFormats=function(){return N};var I=m.__private__.getPageFormat=function(f){return N[f]};i=i||"a4";var P={COMPAT:"compat",ADVANCED:"advanced"},B=P.COMPAT;function J(){this.saveGraphicsState(),j(new tt(Be,0,0,-Be,0,Bs()*Be).toString()+" cm"),this.setFontSize(this.getFontSize()/Be),d="n",B=P.ADVANCED}function ie(){this.restoreGraphicsState(),d="S",B=P.COMPAT}var me=m.__private__.combineFontStyleAndFontWeight=function(f,w){if(f=="bold"&&w=="normal"||f=="bold"&&w==400||f=="normal"&&w=="italic"||f=="bold"&&w=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return w&&(f=w==400||w==="normal"?f==="italic"?"italic":"normal":w!=700&&w!=="bold"||f!=="normal"?(w==700?"bold":w)+""+f:"bold"),f};m.advancedAPI=function(f){var w=B===P.COMPAT;return w&&J.call(this),typeof f!="function"||(f(this),w&&ie.call(this)),this},m.compatAPI=function(f){var w=B===P.ADVANCED;return w&&ie.call(this),typeof f!="function"||(f(this),w&&J.call(this)),this},m.isAdvancedAPI=function(){return B===P.ADVANCED};var te,H=function(f){if(B!==P.ADVANCED)throw new Error(f+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},oe=m.roundToPrecision=m.__private__.roundToPrecision=function(f,w){var R=t||w;if(isNaN(f)||isNaN(R))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return f.toFixed(R).replace(/0+$/,"")};te=m.hpf=m.__private__.hpf=typeof u=="number"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return oe(f,u)}:u==="smart"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return oe(f,f>-1&&f<1?16:5)}:function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return oe(f,16)};var ge=m.f2=m.__private__.f2=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f2");return oe(f,2)},M=m.__private__.f3=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f3");return oe(f,3)},L=m.scale=m.__private__.scale=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.scale");return B===P.COMPAT?f*Be:B===P.ADVANCED?f:void 0},W=function(f){return B===P.COMPAT?Bs()-f:B===P.ADVANCED?f:void 0},V=function(f){return L(W(f))};m.__private__.setPrecision=m.setPrecision=function(f){typeof parseInt(f,10)=="number"&&(t=parseInt(f,10))};var le,ue="00000000000000000000000000000000",fe=m.__private__.getFileId=function(){return ue},ne=m.__private__.setFileId=function(f){return ue=f!==void 0&&/^[a-fA-F0-9]{32}$/.test(f)?f.toUpperCase():ue.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(mr=new rl(h.userPermissions,h.userPassword,h.ownerPassword,ue)),ue};m.setFileId=function(f){return ne(f),this},m.getFileId=function(){return fe()};var he=m.__private__.convertDateToPDFDate=function(f){var w=f.getTimezoneOffset(),R=w<0?"+":"-",U=Math.floor(Math.abs(w/60)),Q=Math.abs(w%60),de=[R,F(U),"'",F(Q),"'"].join("");return["D:",f.getFullYear(),F(f.getMonth()+1),F(f.getDate()),F(f.getHours()),F(f.getMinutes()),F(f.getSeconds()),de].join("")},ve=m.__private__.convertPDFDateToDate=function(f){var w=parseInt(f.substr(2,4),10),R=parseInt(f.substr(6,2),10)-1,U=parseInt(f.substr(8,2),10),Q=parseInt(f.substr(10,2),10),de=parseInt(f.substr(12,2),10),Ce=parseInt(f.substr(14,2),10);return new Date(w,R,U,Q,de,Ce,0)},Fe=m.__private__.setCreationDate=function(f){var w;if(f===void 0&&(f=new Date),f instanceof Date)w=he(f);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(f))throw new Error("Invalid argument passed to jsPDF.setCreationDate");w=f}return le=w},_=m.__private__.getCreationDate=function(f){var w=le;return f==="jsDate"&&(w=ve(le)),w};m.setCreationDate=function(f){return Fe(f),this},m.getCreationDate=function(f){return _(f)};var k,F=m.__private__.padd2=function(f){return("0"+parseInt(f)).slice(-2)},$=m.__private__.padd2Hex=function(f){return("00"+(f=f.toString())).substr(f.length)},Z=0,re=[],se=[],ae=0,Ee=[],Se=[],ke=!1,Pe=se,it=function(){Z=0,ae=0,se=[],re=[],Ee=[],Ko=Rn(),Hi=Rn()};m.__private__.setCustomOutputDestination=function(f){ke=!0,Pe=f};var pe=function(f){ke||(Pe=f)};m.__private__.resetCustomOutputDestination=function(){ke=!1,Pe=se};var j=m.__private__.out=function(f){return f=f.toString(),ae+=f.length+1,Pe.push(f),Pe},ht=m.__private__.write=function(f){return j(arguments.length===1?f.toString():Array.prototype.join.call(arguments," "))},Ye=m.__private__.getArrayBuffer=function(f){for(var w=f.length,R=new ArrayBuffer(w),U=new Uint8Array(R);w--;)U[w]=f.charCodeAt(w);return R},Ie=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];m.__private__.getStandardFonts=function(){return Ie};var Me=e.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(f){return Me=B===P.ADVANCED?f/Be:f,this};var je,Oe=m.__private__.getFontSize=m.getFontSize=function(){return B===P.COMPAT?Me:Me*Be},Ze=e.R2L||!1;m.__private__.setR2L=m.setR2L=function(f){return Ze=f,this},m.__private__.getR2L=m.getR2L=function(){return Ze};var ct,yt=m.__private__.setZoomMode=function(f){var w=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(f))je=f;else if(isNaN(f)){if(w.indexOf(f)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+f+'" is not recognized.');je=f}else je=parseInt(f,10)};m.__private__.getZoomMode=function(){return je};var xt,Lt=m.__private__.setPageMode=function(f){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(f)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+f+'" is not recognized.');ct=f};m.__private__.getPageMode=function(){return ct};var en=m.__private__.setLayoutMode=function(f){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(f)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+f+'" is not recognized.');xt=f};m.__private__.getLayoutMode=function(){return xt},m.__private__.setDisplayMode=m.setDisplayMode=function(f,w,R){return yt(f),en(w),Lt(R),this};var st={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(f){if(Object.keys(st).indexOf(f)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return st[f]},m.__private__.getDocumentProperties=function(){return st},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(f){for(var w in st)st.hasOwnProperty(w)&&f[w]&&(st[w]=f[w]);return this},m.__private__.setDocumentProperty=function(f,w){if(Object.keys(st).indexOf(f)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return st[f]=w};var St,Be,pr,jt,Bi,sn={},vn={},bo=[],zt={},Pa={},Cn={},Vi={},Qo=null,xn=0,lt=[],qt=new iA(m),La=e.hotfixes||[],ir={},wo={},Do=[],tt=function f(w,R,U,Q,de,Ce){if(!(this instanceof f))return new f(w,R,U,Q,de,Ce);isNaN(w)&&(w=1),isNaN(R)&&(R=0),isNaN(U)&&(U=0),isNaN(Q)&&(Q=1),isNaN(de)&&(de=0),isNaN(Ce)&&(Ce=0),this._matrix=[w,R,U,Q,de,Ce]};Object.defineProperty(tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),tt.prototype.join=function(f){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(te).join(f)},tt.prototype.multiply=function(f){var w=f.sx*this.sx+f.shy*this.shx,R=f.sx*this.shy+f.shy*this.sy,U=f.shx*this.sx+f.sy*this.shx,Q=f.shx*this.shy+f.sy*this.sy,de=f.tx*this.sx+f.ty*this.shx+this.tx,Ce=f.tx*this.shy+f.ty*this.sy+this.ty;return new tt(w,R,U,Q,de,Ce)},tt.prototype.decompose=function(){var f=this.sx,w=this.shy,R=this.shx,U=this.sy,Q=this.tx,de=this.ty,Ce=Math.sqrt(f*f+w*w),Ve=(f/=Ce)*R+(w/=Ce)*U;R-=f*Ve,U-=w*Ve;var Qe=Math.sqrt(R*R+U*U);return Ve/=Qe,f*(U/=Qe)<w*(R/=Qe)&&(f=-f,w=-w,Ve=-Ve,Ce=-Ce),{scale:new tt(Ce,0,0,Qe,0,0),translate:new tt(1,0,0,1,Q,de),rotate:new tt(f,w,-w,f,0,0),skew:new tt(1,0,Ve,1,0,0)}},tt.prototype.toString=function(f){return this.join(" ")},tt.prototype.inversed=function(){var f=this.sx,w=this.shy,R=this.shx,U=this.sy,Q=this.tx,de=this.ty,Ce=1/(f*U-w*R),Ve=U*Ce,Qe=-w*Ce,pt=-R*Ce,dt=f*Ce;return new tt(Ve,Qe,pt,dt,-Ve*Q-pt*de,-Qe*Q-dt*de)},tt.prototype.applyToPoint=function(f){var w=f.x*this.sx+f.y*this.shx+this.tx,R=f.x*this.shy+f.y*this.sy+this.ty;return new Vu(w,R)},tt.prototype.applyToRectangle=function(f){var w=this.applyToPoint(f),R=this.applyToPoint(new Vu(f.x+f.w,f.y+f.h));return new Fl(w.x,w.y,R.x-w.x,R.y-w.y)},tt.prototype.clone=function(){var f=this.sx,w=this.shy,R=this.shx,U=this.sy,Q=this.tx,de=this.ty;return new tt(f,w,R,U,Q,de)},m.Matrix=tt;var Ui=m.matrixMult=function(f,w){return w.multiply(f)},Co=new tt(1,0,0,1,0,0);m.unitMatrix=m.identityMatrix=Co;var kr=function(f,w){if(!Pa[f]){var R=(w instanceof wu?"Sh":"P")+(Object.keys(zt).length+1).toString(10);w.id=R,Pa[f]=R,zt[R]=w,qt.publish("addPattern",w)}};m.ShadingPattern=wu,m.TilingPattern=ol,m.addShadingPattern=function(f,w){return H("addShadingPattern()"),kr(f,w),this},m.beginTilingPattern=function(f){H("beginTilingPattern()"),Zf(f.boundingBox[0],f.boundingBox[1],f.boundingBox[2]-f.boundingBox[0],f.boundingBox[3]-f.boundingBox[1],f.matrix)},m.endTilingPattern=function(f,w){H("endTilingPattern()"),w.stream=Se[k].join(`
`),kr(f,w),qt.publish("endTilingPattern",w),Do.pop().restore()};var zn=m.__private__.newObject=function(){var f=Rn();return ti(f,!0),f},Rn=m.__private__.newObjectDeferred=function(){return Z++,re[Z]=function(){return ae},Z},ti=function(f,w){return w=typeof w=="boolean"&&w,re[f]=ae,w&&j(f+" 0 obj"),f},Eu=m.__private__.newAdditionalObject=function(){var f={objId:Rn(),content:""};return Ee.push(f),f},Ko=Rn(),Hi=Rn(),$i=m.__private__.decodeColorString=function(f){var w=f.split(" ");if(w.length!==2||w[1]!=="g"&&w[1]!=="G")w.length===5&&(w[4]==="k"||w[4]==="K")&&(w=[(1-w[0])*(1-w[3]),(1-w[1])*(1-w[3]),(1-w[2])*(1-w[3]),"r"]);else{var R=parseFloat(w[0]);w=[R,R,R,"r"]}for(var U="#",Q=0;Q<3;Q++)U+=("0"+Math.floor(255*parseFloat(w[Q])).toString(16)).slice(-2);return U},zi=m.__private__.encodeColorString=function(f){var w;typeof f=="string"&&(f={ch1:f});var R=f.ch1,U=f.ch2,Q=f.ch3,de=f.ch4,Ce=f.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof R=="string"&&R.charAt(0)!=="#"){var Ve=new yA(R);if(Ve.ok)R=Ve.toHex();else if(!/^\d*\.?\d*$/.test(R))throw new Error('Invalid color "'+R+'" passed to jsPDF.encodeColorString.')}if(typeof R=="string"&&/^#[0-9A-Fa-f]{3}$/.test(R)&&(R="#"+R[1]+R[1]+R[2]+R[2]+R[3]+R[3]),typeof R=="string"&&/^#[0-9A-Fa-f]{6}$/.test(R)){var Qe=parseInt(R.substr(1),16);R=Qe>>16&255,U=Qe>>8&255,Q=255&Qe}if(U===void 0||de===void 0&&R===U&&U===Q)if(typeof R=="string")w=R+" "+Ce[0];else switch(f.precision){case 2:w=ge(R/255)+" "+Ce[0];break;case 3:default:w=M(R/255)+" "+Ce[0]}else if(de===void 0||nn(de)==="object"){if(de&&!isNaN(de.a)&&de.a===0)return w=["1.","1.","1.",Ce[1]].join(" ");if(typeof R=="string")w=[R,U,Q,Ce[1]].join(" ");else switch(f.precision){case 2:w=[ge(R/255),ge(U/255),ge(Q/255),Ce[1]].join(" ");break;default:case 3:w=[M(R/255),M(U/255),M(Q/255),Ce[1]].join(" ")}}else if(typeof R=="string")w=[R,U,Q,de,Ce[2]].join(" ");else switch(f.precision){case 2:w=[ge(R),ge(U),ge(Q),ge(de),Ce[2]].join(" ");break;case 3:default:w=[M(R),M(U),M(Q),M(de),Ce[2]].join(" ")}return w},xo=m.__private__.getFilters=function(){return s},pi=m.__private__.putStream=function(f){var w=(f=f||{}).data||"",R=f.filters||xo(),U=f.alreadyAppliedFilters||[],Q=f.addLength1||!1,de=w.length,Ce=f.objectId,Ve=function(gr){return gr};if(h!==null&&Ce===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(Ve=mr.encryptor(Ce,0));var Qe={};R===!0&&(R=["FlateEncode"]);var pt=f.additionalKeyValues||[],dt=(Qe=rt.API.processDataByFilters!==void 0?rt.API.processDataByFilters(w,R):{data:w,reverseChain:[]}).reverseChain+(Array.isArray(U)?U.join(" "):U.toString());if(Qe.data.length!==0&&(pt.push({key:"Length",value:Qe.data.length}),Q===!0&&pt.push({key:"Length1",value:de})),dt.length!=0)if(dt.split("/").length-1==1)pt.push({key:"Filter",value:dt});else{pt.push({key:"Filter",value:"["+dt+"]"});for(var Nt=0;Nt<pt.length;Nt+=1)if(pt[Nt].key==="DecodeParms"){for(var Dn=[],In=0;In<Qe.reverseChain.split("/").length-1;In+=1)Dn.push("null");Dn.push(pt[Nt].value),pt[Nt].value="["+Dn.join(" ")+"]"}}j("<<");for(var Fn=0;Fn<pt.length;Fn++)j("/"+pt[Fn].key+" "+pt[Fn].value);j(">>"),Qe.data.length!==0&&(j("stream"),j(Ve(Qe.data)),j("endstream"))},Io=m.__private__.putPage=function(f){var w=f.number,R=f.data,U=f.objId,Q=f.contentsObjId;ti(U,!0),j("<</Type /Page"),j("/Parent "+f.rootDictionaryObjId+" 0 R"),j("/Resources "+f.resourceDictionaryObjId+" 0 R"),j("/MediaBox ["+parseFloat(te(f.mediaBox.bottomLeftX))+" "+parseFloat(te(f.mediaBox.bottomLeftY))+" "+te(f.mediaBox.topRightX)+" "+te(f.mediaBox.topRightY)+"]"),f.cropBox!==null&&j("/CropBox ["+te(f.cropBox.bottomLeftX)+" "+te(f.cropBox.bottomLeftY)+" "+te(f.cropBox.topRightX)+" "+te(f.cropBox.topRightY)+"]"),f.bleedBox!==null&&j("/BleedBox ["+te(f.bleedBox.bottomLeftX)+" "+te(f.bleedBox.bottomLeftY)+" "+te(f.bleedBox.topRightX)+" "+te(f.bleedBox.topRightY)+"]"),f.trimBox!==null&&j("/TrimBox ["+te(f.trimBox.bottomLeftX)+" "+te(f.trimBox.bottomLeftY)+" "+te(f.trimBox.topRightX)+" "+te(f.trimBox.topRightY)+"]"),f.artBox!==null&&j("/ArtBox ["+te(f.artBox.bottomLeftX)+" "+te(f.artBox.bottomLeftY)+" "+te(f.artBox.topRightX)+" "+te(f.artBox.topRightY)+"]"),typeof f.userUnit=="number"&&f.userUnit!==1&&j("/UserUnit "+f.userUnit),qt.publish("putPage",{objId:U,pageContext:lt[w],pageNumber:w,page:R}),j("/Contents "+Q+" 0 R"),j(">>"),j("endobj");var de=R.join(`
`);return B===P.ADVANCED&&(de+=`
Q`),ti(Q,!0),pi({data:de,filters:xo(),objectId:Q}),j("endobj"),U},Oa=m.__private__.putPages=function(){var f,w,R=[];for(f=1;f<=xn;f++)lt[f].objId=Rn(),lt[f].contentsObjId=Rn();for(f=1;f<=xn;f++)R.push(Io({number:f,data:Se[f],objId:lt[f].objId,contentsObjId:lt[f].contentsObjId,mediaBox:lt[f].mediaBox,cropBox:lt[f].cropBox,bleedBox:lt[f].bleedBox,trimBox:lt[f].trimBox,artBox:lt[f].artBox,userUnit:lt[f].userUnit,rootDictionaryObjId:Ko,resourceDictionaryObjId:Hi}));ti(Ko,!0),j("<</Type /Pages");var U="/Kids [";for(w=0;w<xn;w++)U+=R[w]+" 0 R ";j(U+"]"),j("/Count "+xn),j(">>"),j("endobj"),qt.publish("postPutPages")},Au=function(f){qt.publish("putFont",{font:f,out:j,newObject:zn,putStream:pi}),f.isAlreadyPutted!==!0&&(f.objectNumber=zn(),j("<<"),j("/Type /Font"),j("/BaseFont /"+il(f.postScriptName)),j("/Subtype /Type1"),typeof f.encoding=="string"&&j("/Encoding /"+f.encoding),j("/FirstChar 32"),j("/LastChar 255"),j(">>"),j("endobj"))},Nu=function(){for(var f in sn)sn.hasOwnProperty(f)&&(g===!1||g===!0&&y.hasOwnProperty(f))&&Au(sn[f])},Mu=function(f){f.objectNumber=zn();var w=[];w.push({key:"Type",value:"/XObject"}),w.push({key:"Subtype",value:"/Form"}),w.push({key:"BBox",value:"["+[te(f.x),te(f.y),te(f.x+f.width),te(f.y+f.height)].join(" ")+"]"}),w.push({key:"Matrix",value:"["+f.matrix.toString()+"]"});var R=f.pages[1].join(`
`);pi({data:R,additionalKeyValues:w,objectId:f.objectNumber}),j("endobj")},Tu=function(){for(var f in ir)ir.hasOwnProperty(f)&&Mu(ir[f])},Tf=function(f,w){var R,U=[],Q=1/(w-1);for(R=0;R<1;R+=Q)U.push(R);if(U.push(1),f[0].offset!=0){var de={offset:0,color:f[0].color};f.unshift(de)}if(f[f.length-1].offset!=1){var Ce={offset:1,color:f[f.length-1].color};f.push(Ce)}for(var Ve="",Qe=0,pt=0;pt<U.length;pt++){for(R=U[pt];R>f[Qe+1].offset;)Qe++;var dt=f[Qe].offset,Nt=(R-dt)/(f[Qe+1].offset-dt),Dn=f[Qe].color,In=f[Qe+1].color;Ve+=$(Math.round((1-Nt)*Dn[0]+Nt*In[0]).toString(16))+$(Math.round((1-Nt)*Dn[1]+Nt*In[1]).toString(16))+$(Math.round((1-Nt)*Dn[2]+Nt*In[2]).toString(16))}return Ve.trim()},Zv=function(f,w){w||(w=21);var R=zn(),U=Tf(f.colors,w),Q=[];Q.push({key:"FunctionType",value:"0"}),Q.push({key:"Domain",value:"[0.0 1.0]"}),Q.push({key:"Size",value:"["+w+"]"}),Q.push({key:"BitsPerSample",value:"8"}),Q.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Q.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),pi({data:U,additionalKeyValues:Q,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:R}),j("endobj"),f.objectNumber=zn(),j("<< /ShadingType "+f.type),j("/ColorSpace /DeviceRGB");var de="/Coords ["+te(parseFloat(f.coords[0]))+" "+te(parseFloat(f.coords[1]))+" ";f.type===2?de+=te(parseFloat(f.coords[2]))+" "+te(parseFloat(f.coords[3])):de+=te(parseFloat(f.coords[2]))+" "+te(parseFloat(f.coords[3]))+" "+te(parseFloat(f.coords[4]))+" "+te(parseFloat(f.coords[5])),j(de+="]"),f.matrix&&j("/Matrix ["+f.matrix.toString()+"]"),j("/Function "+R+" 0 R"),j("/Extend [true true]"),j(">>"),j("endobj")},Qv=function(f,w){var R=Rn(),U=zn();w.push({resourcesOid:R,objectOid:U}),f.objectNumber=U;var Q=[];Q.push({key:"Type",value:"/Pattern"}),Q.push({key:"PatternType",value:"1"}),Q.push({key:"PaintType",value:"1"}),Q.push({key:"TilingType",value:"1"}),Q.push({key:"BBox",value:"["+f.boundingBox.map(te).join(" ")+"]"}),Q.push({key:"XStep",value:te(f.xStep)}),Q.push({key:"YStep",value:te(f.yStep)}),Q.push({key:"Resources",value:R+" 0 R"}),f.matrix&&Q.push({key:"Matrix",value:"["+f.matrix.toString()+"]"}),pi({data:f.stream,additionalKeyValues:Q,objectId:f.objectNumber}),j("endobj")},Pu=function(f){var w;for(w in zt)zt.hasOwnProperty(w)&&(zt[w]instanceof wu?Zv(zt[w]):zt[w]instanceof ol&&Qv(zt[w],f))},Pf=function(f){for(var w in f.objectNumber=zn(),j("<<"),f)switch(w){case"opacity":j("/ca "+ge(f[w]));break;case"stroke-opacity":j("/CA "+ge(f[w]))}j(">>"),j("endobj")},Kv=function(){var f;for(f in Cn)Cn.hasOwnProperty(f)&&Pf(Cn[f])},El=function(){for(var f in j("/XObject <<"),ir)ir.hasOwnProperty(f)&&ir[f].objectNumber>=0&&j("/"+f+" "+ir[f].objectNumber+" 0 R");qt.publish("putXobjectDict"),j(">>")},Jv=function(){mr.oid=zn(),j("<<"),j("/Filter /Standard"),j("/V "+mr.v),j("/R "+mr.r),j("/U <"+mr.toHexString(mr.U)+">"),j("/O <"+mr.toHexString(mr.O)+">"),j("/P "+mr.P),j(">>"),j("endobj")},Lf=function(){for(var f in j("/Font <<"),sn)sn.hasOwnProperty(f)&&(g===!1||g===!0&&y.hasOwnProperty(f))&&j("/"+f+" "+sn[f].objectNumber+" 0 R");j(">>")},Xv=function(){if(Object.keys(zt).length>0){for(var f in j("/Shading <<"),zt)zt.hasOwnProperty(f)&&zt[f]instanceof wu&&zt[f].objectNumber>=0&&j("/"+f+" "+zt[f].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),j(">>")}},Lu=function(f){if(Object.keys(zt).length>0){for(var w in j("/Pattern <<"),zt)zt.hasOwnProperty(w)&&zt[w]instanceof m.TilingPattern&&zt[w].objectNumber>=0&&zt[w].objectNumber<f&&j("/"+w+" "+zt[w].objectNumber+" 0 R");qt.publish("putTilingPatternDict"),j(">>")}},ey=function(){if(Object.keys(Cn).length>0){var f;for(f in j("/ExtGState <<"),Cn)Cn.hasOwnProperty(f)&&Cn[f].objectNumber>=0&&j("/"+f+" "+Cn[f].objectNumber+" 0 R");qt.publish("putGStateDict"),j(">>")}},Nn=function(f){ti(f.resourcesOid,!0),j("<<"),j("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Lf(),Xv(),Lu(f.objectOid),ey(),El(),j(">>"),j("endobj")},Of=function(){var f=[];Nu(),Kv(),Tu(),Pu(f),qt.publish("putResources"),f.forEach(Nn),Nn({resourcesOid:Hi,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},kf=function(){qt.publish("putAdditionalObjects");for(var f=0;f<Ee.length;f++){var w=Ee[f];ti(w.objId,!0),j(w.content),j("endobj")}qt.publish("postPutAdditionalObjects")},Rf=function(f){vn[f.fontName]=vn[f.fontName]||{},vn[f.fontName][f.fontStyle]=f.id},Al=function(f,w,R,U,Q){var de={id:"F"+(Object.keys(sn).length+1).toString(10),postScriptName:f,fontName:w,fontStyle:R,encoding:U,isStandardFont:Q||!1,metadata:{}};return qt.publish("addFont",{font:de,instance:this}),sn[de.id]=de,Rf(de),de.id},ty=function(f){for(var w=0,R=Ie.length;w<R;w++){var U=Al.call(this,f[w][0],f[w][1],f[w][2],Ie[w][3],!0);g===!1&&(y[U]=!0);var Q=f[w][0].split("-");Rf({id:U,fontName:Q[0],fontStyle:Q[1]||""})}qt.publish("addFonts",{fonts:sn,dictionary:vn})},qi=function(f){return f.foo=function(){try{return f.apply(this,arguments)}catch(U){var w=U.stack||"";~w.indexOf(" at ")&&(w=w.split(" at ")[1]);var R="Error in function "+w.split(`
`)[0].split("<")[0]+": "+U.message;if(!ot.console)throw new Error(R);ot.console.error(R,U),ot.alert&&alert(R)}},f.foo.bar=f,f.foo},Ou=function(f,w){var R,U,Q,de,Ce,Ve,Qe,pt,dt;if(Q=(w=w||{}).sourceEncoding||"Unicode",Ce=w.outputEncoding,(w.autoencode||Ce)&&sn[St].metadata&&sn[St].metadata[Q]&&sn[St].metadata[Q].encoding&&(de=sn[St].metadata[Q].encoding,!Ce&&sn[St].encoding&&(Ce=sn[St].encoding),!Ce&&de.codePages&&(Ce=de.codePages[0]),typeof Ce=="string"&&(Ce=de[Ce]),Ce)){for(Qe=!1,Ve=[],R=0,U=f.length;R<U;R++)(pt=Ce[f.charCodeAt(R)])?Ve.push(String.fromCharCode(pt)):Ve.push(f[R]),Ve[R].charCodeAt(0)>>8&&(Qe=!0);f=Ve.join("")}for(R=f.length;Qe===void 0&&R!==0;)f.charCodeAt(R-1)>>8&&(Qe=!0),R--;if(!Qe)return f;for(Ve=w.noBOM?[]:[254,255],R=0,U=f.length;R<U;R++){if((dt=(pt=f.charCodeAt(R))>>8)>>8)throw new Error("Character at position "+R+" of string '"+f+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ve.push(dt),Ve.push(pt-(dt<<8))}return String.fromCharCode.apply(void 0,Ve)},Rr=m.__private__.pdfEscape=m.pdfEscape=function(f,w){return Ou(f,w).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Nl=m.__private__.beginPage=function(f){Se[++xn]=[],lt[xn]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(f[0]),topRightY:Number(f[1])}},jf(xn),pe(Se[k])},Ff=function(f,w){var R,U,Q;switch(n=w||n,typeof f=="string"&&(R=I(f.toLowerCase()),Array.isArray(R)&&(U=R[0],Q=R[1])),Array.isArray(f)&&(U=f[0]*Be,Q=f[1]*Be),isNaN(U)&&(U=i[0],Q=i[1]),(U>14400||Q>14400)&&(ln.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),U=Math.min(14400,U),Q=Math.min(14400,Q)),i=[U,Q],n.substr(0,1)){case"l":Q>U&&(i=[Q,U]);break;case"p":U>Q&&(i=[Q,U])}Nl(i),zf(Ll),j(Wi),kl!==0&&j(kl+" J"),Rl!==0&&j(Rl+" j"),qt.publish("addPage",{pageNumber:xn})},ny=function(f){f>0&&f<=xn&&(Se.splice(f,1),lt.splice(f,1),xn--,k>xn&&(k=xn),this.setPage(k))},jf=function(f){f>0&&f<=xn&&(k=f)},ry=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return Se.length-1},Bf=function(f,w,R){var U,Q=void 0;return R=R||{},f=f!==void 0?f:sn[St].fontName,w=w!==void 0?w:sn[St].fontStyle,U=f.toLowerCase(),vn[U]!==void 0&&vn[U][w]!==void 0?Q=vn[U][w]:vn[f]!==void 0&&vn[f][w]!==void 0?Q=vn[f][w]:R.disableWarning===!1&&ln.warn("Unable to look up font label for font '"+f+"', '"+w+"'. Refer to getFontList() for available fonts."),Q||R.noFallback||(Q=vn.times[w])==null&&(Q=vn.times.normal),Q},iy=m.__private__.putInfo=function(){var f=zn(),w=function(U){return U};for(var R in h!==null&&(w=mr.encryptor(f,0)),j("<<"),j("/Producer ("+Rr(w("jsPDF "+rt.version))+")"),st)st.hasOwnProperty(R)&&st[R]&&j("/"+R.substr(0,1).toUpperCase()+R.substr(1)+" ("+Rr(w(st[R]))+")");j("/CreationDate ("+Rr(w(le))+")"),j(">>"),j("endobj")},Ml=m.__private__.putCatalog=function(f){var w=(f=f||{}).rootDictionaryObjId||Ko;switch(zn(),j("<<"),j("/Type /Catalog"),j("/Pages "+w+" 0 R"),je||(je="fullwidth"),je){case"fullwidth":j("/OpenAction [3 0 R /FitH null]");break;case"fullheight":j("/OpenAction [3 0 R /FitV null]");break;case"fullpage":j("/OpenAction [3 0 R /Fit]");break;case"original":j("/OpenAction [3 0 R /XYZ null null 1]");break;default:var R=""+je;R.substr(R.length-1)==="%"&&(je=parseInt(je)/100),typeof je=="number"&&j("/OpenAction [3 0 R /XYZ null null "+ge(je)+"]")}switch(xt||(xt="continuous"),xt){case"continuous":j("/PageLayout /OneColumn");break;case"single":j("/PageLayout /SinglePage");break;case"two":case"twoleft":j("/PageLayout /TwoColumnLeft");break;case"tworight":j("/PageLayout /TwoColumnRight")}ct&&j("/PageMode /"+ct),qt.publish("putCatalog"),j(">>"),j("endobj")},oy=m.__private__.putTrailer=function(){j("trailer"),j("<<"),j("/Size "+(Z+1)),j("/Root "+Z+" 0 R"),j("/Info "+(Z-1)+" 0 R"),h!==null&&j("/Encrypt "+mr.oid+" 0 R"),j("/ID [ <"+ue+"> <"+ue+"> ]"),j(">>")},sy=m.__private__.putHeader=function(){j("%PDF-"+C),j("%\xBA\xDF\xAC\xE0")},ay=m.__private__.putXRef=function(){var f="0000000000";j("xref"),j("0 "+(Z+1)),j("0000000000 65535 f ");for(var w=1;w<=Z;w++)typeof re[w]=="function"?j((f+re[w]()).slice(-10)+" 00000 n "):re[w]!==void 0?j((f+re[w]).slice(-10)+" 00000 n "):j("0000000000 00000 n ")},Jo=m.__private__.buildDocument=function(){it(),pe(se),qt.publish("buildDocument"),sy(),Oa(),kf(),Of(),h!==null&&Jv(),iy(),Ml();var f=ae;return ay(),oy(),j("startxref"),j(""+f),j("%%EOF"),pe(Se[k]),se.join(`
`)},ku=m.__private__.getBlob=function(f){return new Blob([Ye(f)],{type:"application/pdf"})},Ru=m.output=m.__private__.output=qi(function(f,w){switch(typeof(w=w||{})=="string"?w={filename:w}:w.filename=w.filename||"generated.pdf",f){case void 0:return Jo();case"save":m.save(w.filename);break;case"arraybuffer":return Ye(Jo());case"blob":return ku(Jo());case"bloburi":case"bloburl":if(ot.URL!==void 0&&typeof ot.URL.createObjectURL=="function")return ot.URL&&ot.URL.createObjectURL(ku(Jo()))||void 0;ln.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var R="",U=Jo();try{R=gw(U)}catch{R=gw(unescape(encodeURIComponent(U)))}return"data:application/pdf;filename="+w.filename+";base64,"+R;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ot)==="[object Window]"){var Q="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",de=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';w.pdfObjectUrl&&(Q=w.pdfObjectUrl,de="");var Ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Q+'"'+de+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(w)+");<\/script></body></html>",Ve=ot.open();return Ve!==null&&Ve.document.write(Ce),Ve}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ot)==="[object Window]"){var Qe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(w.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+w.filename+'" width="500px" height="400px" /></body></html>',pt=ot.open();if(pt!==null){pt.document.write(Qe);var dt=this;pt.document.documentElement.querySelector("#pdfViewer").onload=function(){pt.document.title=w.filename,pt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(dt.output("bloburl"))}}return pt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ot)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",w)+'"></iframe></body></html>',Dn=ot.open();if(Dn!==null&&(Dn.document.write(Nt),Dn.document.title=w.filename),Dn||typeof safari>"u")return Dn;break;case"datauri":case"dataurl":return ot.document.location.href=this.output("datauristring",w);default:return null}}),Vf=function(f){return Array.isArray(La)===!0&&La.indexOf(f)>-1};switch(r){case"pt":Be=1;break;case"mm":Be=72/25.4;break;case"cm":Be=72/2.54;break;case"in":Be=72;break;case"px":Be=Vf("px_scaling")==1?.75:96/72;break;case"pc":case"em":Be=12;break;case"ex":Be=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Be=r}var mr=null;Fe(),ne();var uy=function(f){return h!==null?mr.encryptor(f,0):function(w){return w}},Uf=m.__private__.getPageInfo=m.getPageInfo=function(f){if(isNaN(f)||f%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:lt[f].objId,pageNumber:f,pageContext:lt[f]}},ut=m.__private__.getPageInfoByObjId=function(f){if(isNaN(f)||f%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var w in lt)if(lt[w].objId===f)break;return Uf(w)},cy=m.__private__.getCurrentPageInfo=m.getCurrentPageInfo=function(){return{objId:lt[k].objId,pageNumber:k,pageContext:lt[k]}};m.addPage=function(){return Ff.apply(this,arguments),this},m.setPage=function(){return jf.apply(this,arguments),pe.call(this,Se[k]),this},m.insertPage=function(f){return this.addPage(),this.movePage(k,f),this},m.movePage=function(f,w){var R,U;if(f>w){R=Se[f],U=lt[f];for(var Q=f;Q>w;Q--)Se[Q]=Se[Q-1],lt[Q]=lt[Q-1];Se[w]=R,lt[w]=U,this.setPage(w)}else if(f<w){R=Se[f],U=lt[f];for(var de=f;de<w;de++)Se[de]=Se[de+1],lt[de]=lt[de+1];Se[w]=R,lt[w]=U,this.setPage(w)}return this},m.deletePage=function(){return ny.apply(this,arguments),this},m.__private__.text=m.text=function(f,w,R,U,Q){var de,Ce,Ve,Qe,pt,dt,Nt,Dn,In,Fn=(U=U||{}).scope||this;if(typeof f=="number"&&typeof w=="number"&&(typeof R=="string"||Array.isArray(R))){var gr=R;R=w,w=f,f=gr}if(arguments[3]instanceof tt?(H("The transform parameter of text() with a Matrix value"),In=Q):(Ve=arguments[4],Qe=arguments[5],nn(Nt=arguments[3])==="object"&&Nt!==null||(typeof Ve=="string"&&(Qe=Ve,Ve=null),typeof Nt=="string"&&(Qe=Nt,Nt=null),typeof Nt=="number"&&(Ve=Nt,Nt=null),U={flags:Nt,angle:Ve,align:Qe})),isNaN(w)||isNaN(R)||f==null)throw new Error("Invalid arguments passed to jsPDF.text");if(f.length===0)return Fn;var Zn="",Gi=!1,ni=typeof U.lineHeightFactor=="number"?U.lineHeightFactor:Ra,Eo=Fn.internal.scaleFactor;function Qf(fn){return fn=fn.split("	").join(Array(U.TabLen||9).join(" ")),Rr(fn,Nt)}function Ul(fn){for(var hn,Tn=fn.concat(),qn=[],rs=Tn.length;rs--;)typeof(hn=Tn.shift())=="string"?qn.push(hn):Array.isArray(fn)&&(hn.length===1||hn[1]===void 0&&hn[2]===void 0)?qn.push(hn[0]):qn.push([hn[0],hn[1],hn[2]]);return qn}function Hl(fn,hn){var Tn;if(typeof fn=="string")Tn=hn(fn)[0];else if(Array.isArray(fn)){for(var qn,rs,Ql=fn.concat(),Ku=[],th=Ql.length;th--;)typeof(qn=Ql.shift())=="string"?Ku.push(hn(qn)[0]):Array.isArray(qn)&&typeof qn[0]=="string"&&(rs=hn(qn[0],qn[1],qn[2]),Ku.push([rs[0],rs[1],rs[2]]));Tn=Ku}return Tn}var Hu=!1,$l=!0;if(typeof f=="string")Hu=!0;else if(Array.isArray(f)){var zl=f.concat();Ce=[];for(var $u,or=zl.length;or--;)(typeof($u=zl.shift())!="string"||Array.isArray($u)&&typeof $u[0]!="string")&&($l=!1);Hu=$l}if(Hu===!1)throw new Error('Type of text must be string or Array. "'+f+'" is not recognized.');typeof f=="string"&&(f=f.match(/[\r?\n]/)?f.split(/\r\n|\r|\n/g):[f]);var zu=Me/Fn.internal.scaleFactor,qu=zu*(ni-1);switch(U.baseline){case"bottom":R-=qu;break;case"top":R+=zu-qu;break;case"hanging":R+=zu-2*qu;break;case"middle":R+=zu/2-qu}if((dt=U.maxWidth||0)>0&&(typeof f=="string"?f=Fn.splitTextToSize(f,dt):Object.prototype.toString.call(f)==="[object Array]"&&(f=f.reduce(function(fn,hn){return fn.concat(Fn.splitTextToSize(hn,dt))},[]))),de={text:f,x:w,y:R,options:U,mutex:{pdfEscape:Rr,activeFontKey:St,fonts:sn,activeFontSize:Me}},qt.publish("preProcessText",de),f=de.text,Ve=(U=de.options).angle,!(In instanceof tt)&&Ve&&typeof Ve=="number"){Ve*=Math.PI/180,U.rotationDirection===0&&(Ve=-Ve),B===P.ADVANCED&&(Ve=-Ve);var Wu=Math.cos(Ve),ql=Math.sin(Ve);In=new tt(Wu,ql,-ql,Wu,0,0)}else Ve&&Ve instanceof tt&&(In=Ve);B!==P.ADVANCED||In||(In=Co),(pt=U.charSpace||Bu)!==void 0&&(Zn+=te(L(pt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Dn=U.horizontalScale)!==void 0&&(Zn+=te(100*Dn)+` Tz
`),U.lang;var Fr=-1,by=U.renderingMode!==void 0?U.renderingMode:U.stroke,Wl=Fn.internal.getCurrentPageInfo().pageContext;switch(by){case 0:case!1:case"fill":Fr=0;break;case 1:case!0:case"stroke":Fr=1;break;case 2:case"fillThenStroke":Fr=2;break;case 3:case"invisible":Fr=3;break;case 4:case"fillAndAddForClipping":Fr=4;break;case 5:case"strokeAndAddPathForClipping":Fr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Fr=6;break;case 7:case"addToPathForClipping":Fr=7}var Kf=Wl.usedRenderingMode!==void 0?Wl.usedRenderingMode:-1;Fr!==-1?Zn+=Fr+` Tr
`:Kf!==-1&&(Zn+=`0 Tr
`),Fr!==-1&&(Wl.usedRenderingMode=Fr),Qe=U.align||"left";var mi,Gu=Me*ni,Jf=Fn.internal.pageSize.getWidth(),Xf=sn[St];pt=U.charSpace||Bu,dt=U.maxWidth||0,Nt=Object.assign({autoencode:!0,noBOM:!0},U.flags);var Vs=[],Ba=function(fn){return Fn.getStringUnitWidth(fn,{font:Xf,charSpace:pt,fontSize:Me,doKerning:!1})*Me/Eo};if(Object.prototype.toString.call(f)==="[object Array]"){var jr;Ce=Ul(f),Qe!=="left"&&(mi=Ce.map(Ba));var _r,Us=0;if(Qe==="right"){w-=mi[0],f=[],or=Ce.length;for(var es=0;es<or;es++)es===0?(_r=_o(w),jr=Xo(R)):(_r=L(Us-mi[es]),jr=-Gu),f.push([Ce[es],_r,jr]),Us=mi[es]}else if(Qe==="center"){w-=mi[0]/2,f=[],or=Ce.length;for(var ts=0;ts<or;ts++)ts===0?(_r=_o(w),jr=Xo(R)):(_r=L((Us-mi[ts])/2),jr=-Gu),f.push([Ce[ts],_r,jr]),Us=mi[ts]}else if(Qe==="left"){f=[],or=Ce.length;for(var Yu=0;Yu<or;Yu++)f.push(Ce[Yu])}else if(Qe==="justify"&&Xf.encoding==="Identity-H"){f=[],or=Ce.length,dt=dt!==0?dt:Jf;for(var ns=0,Mn=0;Mn<or;Mn++)if(jr=Mn===0?Xo(R):-Gu,_r=Mn===0?_o(w):ns,Mn<or-1){var Gl=L((dt-mi[Mn])/(Ce[Mn].split(" ").length-1)),Er=Ce[Mn].split(" ");f.push([Er[0]+" ",_r,jr]),ns=0;for(var gi=1;gi<Er.length;gi++){var Zu=(Ba(Er[gi-1]+" "+Er[gi])-Ba(Er[gi]))*Eo+Gl;gi==Er.length-1?f.push([Er[gi],Zu,0]):f.push([Er[gi]+" ",Zu,0]),ns-=Zu}}else f.push([Ce[Mn],_r,jr]);f.push(["",ns,0])}else{if(Qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(f=[],or=Ce.length,dt=dt!==0?dt:Jf,Mn=0;Mn<or;Mn++)jr=Mn===0?Xo(R):-Gu,_r=Mn===0?_o(w):0,Mn<or-1?Vs.push(te(L((dt-mi[Mn])/(Ce[Mn].split(" ").length-1)))):Vs.push(0),f.push([Ce[Mn],_r,jr])}}var eh=typeof U.R2L=="boolean"?U.R2L:Ze;eh===!0&&(f=Hl(f,function(fn,hn,Tn){return[fn.split("").reverse().join(""),hn,Tn]})),de={text:f,x:w,y:R,options:U,mutex:{pdfEscape:Rr,activeFontKey:St,fonts:sn,activeFontSize:Me}},qt.publish("postProcessText",de),f=de.text,Gi=de.mutex.isHex||!1;var Yl=sn[St].encoding;Yl!=="WinAnsiEncoding"&&Yl!=="StandardEncoding"||(f=Hl(f,function(fn,hn,Tn){return[Qf(fn),hn,Tn]})),Ce=Ul(f),f=[];for(var Va,Ua,Hs,Ha=0,Qu=1,$a=Array.isArray(Ce[0])?Qu:Ha,$s="",Zl=function(fn,hn,Tn){var qn="";return Tn instanceof tt?(Tn=typeof U.angle=="number"?Ui(Tn,new tt(1,0,0,1,fn,hn)):Ui(new tt(1,0,0,1,fn,hn),Tn),B===P.ADVANCED&&(Tn=Ui(new tt(1,0,0,-1,0,0),Tn)),qn=Tn.join(" ")+` Tm
`):qn=te(fn)+" "+te(hn)+` Td
`,qn},vi=0;vi<Ce.length;vi++){switch($s="",$a){case Qu:Hs=(Gi?"<":"(")+Ce[vi][0]+(Gi?">":")"),Va=parseFloat(Ce[vi][1]),Ua=parseFloat(Ce[vi][2]);break;case Ha:Hs=(Gi?"<":"(")+Ce[vi]+(Gi?">":")"),Va=_o(w),Ua=Xo(R)}Vs!==void 0&&Vs[vi]!==void 0&&($s=Vs[vi]+` Tw
`),vi===0?f.push($s+Zl(Va,Ua,In)+Hs):$a===Ha?f.push($s+Hs):$a===Qu&&f.push($s+Zl(Va,Ua,In)+Hs)}f=$a===Ha?f.join(` Tj
T* `):f.join(` Tj
`),f+=` Tj
`;var yi=`BT
/`;return yi+=St+" "+Me+` Tf
`,yi+=te(Me*ni)+` TL
`,yi+=Fa+`
`,yi+=Zn,yi+=f,j(yi+="ET"),y[St]=!0,Fn};var ly=m.__private__.clip=m.clip=function(f){return j(f==="evenodd"?"W*":"W"),this};m.clipEvenOdd=function(){return ly("evenodd")},m.__private__.discardPath=m.discardPath=function(){return j("n"),this};var So=m.__private__.isValidStyle=function(f){var w=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(f)!==-1&&(w=!0),w};m.__private__.setDefaultPathOperation=m.setDefaultPathOperation=function(f){return So(f)&&(d=f),this};var Hf=m.__private__.getStyle=m.getStyle=function(f){var w=d;switch(f){case"D":case"S":w="S";break;case"F":w="f";break;case"FD":case"DF":w="B";break;case"f":case"f*":case"B":case"B*":w=f}return w},$f=m.close=function(){return j("h"),this};m.stroke=function(){return j("S"),this},m.fill=function(f){return Fu("f",f),this},m.fillEvenOdd=function(f){return Fu("f*",f),this},m.fillStroke=function(f){return Fu("B",f),this},m.fillStrokeEvenOdd=function(f){return Fu("B*",f),this};var Fu=function(f,w){nn(w)==="object"?fy(w,f):j(f)},Tl=function(f){f===null||B===P.ADVANCED&&f===void 0||(f=Hf(f),j(f))};function dy(f,w,R,U,Q){var de=new ol(w||this.boundingBox,R||this.xStep,U||this.yStep,this.gState,Q||this.matrix);de.stream=this.stream;var Ce=f+"$$"+this.cloneIndex+++"$$";return kr(Ce,de),de}var fy=function(f,w){var R=Pa[f.key],U=zt[R];if(U instanceof wu)j("q"),j(hy(w)),U.gState&&m.setGState(U.gState),j(f.matrix.toString()+" cm"),j("/"+R+" sh"),j("Q");else if(U instanceof ol){var Q=new tt(1,0,0,-1,0,Bs());f.matrix&&(Q=Q.multiply(f.matrix||Co),R=dy.call(U,f.key,f.boundingBox,f.xStep,f.yStep,Q).id),j("q"),j("/Pattern cs"),j("/"+R+" scn"),U.gState&&m.setGState(U.gState),j(w),j("Q")}},hy=function(f){switch(f){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Pl=m.moveTo=function(f,w){return j(te(L(f))+" "+te(V(w))+" m"),this},ka=m.lineTo=function(f,w){return j(te(L(f))+" "+te(V(w))+" l"),this},Fs=m.curveTo=function(f,w,R,U,Q,de){return j([te(L(f)),te(V(w)),te(L(R)),te(V(U)),te(L(Q)),te(V(de)),"c"].join(" ")),this};m.__private__.line=m.line=function(f,w,R,U,Q){if(isNaN(f)||isNaN(w)||isNaN(R)||isNaN(U)||!So(Q))throw new Error("Invalid arguments passed to jsPDF.line");return B===P.COMPAT?this.lines([[R-f,U-w]],f,w,[1,1],Q||"S"):this.lines([[R-f,U-w]],f,w,[1,1]).stroke()},m.__private__.lines=m.lines=function(f,w,R,U,Q,de){var Ce,Ve,Qe,pt,dt,Nt,Dn,In,Fn,gr,Zn,Gi;if(typeof f=="number"&&(Gi=R,R=w,w=f,f=Gi),U=U||[1,1],de=de||!1,isNaN(w)||isNaN(R)||!Array.isArray(f)||!Array.isArray(U)||!So(Q)||typeof de!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Pl(w,R),Ce=U[0],Ve=U[1],pt=f.length,gr=w,Zn=R,Qe=0;Qe<pt;Qe++)(dt=f[Qe]).length===2?(gr=dt[0]*Ce+gr,Zn=dt[1]*Ve+Zn,ka(gr,Zn)):(Nt=dt[0]*Ce+gr,Dn=dt[1]*Ve+Zn,In=dt[2]*Ce+gr,Fn=dt[3]*Ve+Zn,gr=dt[4]*Ce+gr,Zn=dt[5]*Ve+Zn,Fs(Nt,Dn,In,Fn,gr,Zn));return de&&$f(),Tl(Q),this},m.path=function(f){for(var w=0;w<f.length;w++){var R=f[w],U=R.c;switch(R.op){case"m":Pl(U[0],U[1]);break;case"l":ka(U[0],U[1]);break;case"c":Fs.apply(this,U);break;case"h":$f()}}return this},m.__private__.rect=m.rect=function(f,w,R,U,Q){if(isNaN(f)||isNaN(w)||isNaN(R)||isNaN(U)||!So(Q))throw new Error("Invalid arguments passed to jsPDF.rect");return B===P.COMPAT&&(U=-U),j([te(L(f)),te(V(w)),te(L(R)),te(L(U)),"re"].join(" ")),Tl(Q),this},m.__private__.triangle=m.triangle=function(f,w,R,U,Q,de,Ce){if(isNaN(f)||isNaN(w)||isNaN(R)||isNaN(U)||isNaN(Q)||isNaN(de)||!So(Ce))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[R-f,U-w],[Q-R,de-U],[f-Q,w-de]],f,w,[1,1],Ce,!0),this},m.__private__.roundedRect=m.roundedRect=function(f,w,R,U,Q,de,Ce){if(isNaN(f)||isNaN(w)||isNaN(R)||isNaN(U)||isNaN(Q)||isNaN(de)||!So(Ce))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ve=4/3*(Math.SQRT2-1);return Q=Math.min(Q,.5*R),de=Math.min(de,.5*U),this.lines([[R-2*Q,0],[Q*Ve,0,Q,de-de*Ve,Q,de],[0,U-2*de],[0,de*Ve,-Q*Ve,de,-Q,de],[2*Q-R,0],[-Q*Ve,0,-Q,-de*Ve,-Q,-de],[0,2*de-U],[0,-de*Ve,Q*Ve,-de,Q,-de]],f+Q,w,[1,1],Ce,!0),this},m.__private__.ellipse=m.ellipse=function(f,w,R,U,Q){if(isNaN(f)||isNaN(w)||isNaN(R)||isNaN(U)||!So(Q))throw new Error("Invalid arguments passed to jsPDF.ellipse");var de=4/3*(Math.SQRT2-1)*R,Ce=4/3*(Math.SQRT2-1)*U;return Pl(f+R,w),Fs(f+R,w-Ce,f+de,w-U,f,w-U),Fs(f-de,w-U,f-R,w-Ce,f-R,w),Fs(f-R,w+Ce,f-de,w+U,f,w+U),Fs(f+de,w+U,f+R,w+Ce,f+R,w),Tl(Q),this},m.__private__.circle=m.circle=function(f,w,R,U){if(isNaN(f)||isNaN(w)||isNaN(R)||!So(U))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(f,w,R,R,U)},m.setFont=function(f,w,R){return R&&(w=me(w,R)),St=Bf(f,w,{disableWarning:!1}),this};var py=m.__private__.getFont=m.getFont=function(){return sn[Bf.apply(m,arguments)]};m.__private__.getFontList=m.getFontList=function(){var f,w,R={};for(f in vn)if(vn.hasOwnProperty(f))for(w in R[f]=[],vn[f])vn[f].hasOwnProperty(w)&&R[f].push(w);return R},m.addFont=function(f,w,R,U,Q){var de=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&de.indexOf(arguments[3])!==-1?Q=arguments[3]:arguments[3]&&de.indexOf(arguments[3])==-1&&(R=me(R,U)),Q=Q||"Identity-H",Al.call(this,f,w,R,Q)};var Ra,Ll=e.lineWidth||.200025,ju=m.__private__.getLineWidth=m.getLineWidth=function(){return Ll},zf=m.__private__.setLineWidth=m.setLineWidth=function(f){return Ll=f,j(te(L(f))+" w"),this};m.__private__.setLineDash=rt.API.setLineDash=rt.API.setLineDashPattern=function(f,w){if(f=f||[],w=w||0,isNaN(w)||!Array.isArray(f))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return f=f.map(function(R){return te(L(R))}).join(" "),w=te(L(w)),j("["+f+"] "+w+" d"),this};var qf=m.__private__.getLineHeight=m.getLineHeight=function(){return Me*Ra};m.__private__.getLineHeight=m.getLineHeight=function(){return Me*Ra};var Wf=m.__private__.setLineHeightFactor=m.setLineHeightFactor=function(f){return typeof(f=f||1.15)=="number"&&(Ra=f),this},Gf=m.__private__.getLineHeightFactor=m.getLineHeightFactor=function(){return Ra};Wf(e.lineHeight);var _o=m.__private__.getHorizontalCoordinate=function(f){return L(f)},Xo=m.__private__.getVerticalCoordinate=function(f){return B===P.ADVANCED?f:lt[k].mediaBox.topRightY-lt[k].mediaBox.bottomLeftY-L(f)},my=m.__private__.getHorizontalCoordinateString=m.getHorizontalCoordinateString=function(f){return te(_o(f))},js=m.__private__.getVerticalCoordinateString=m.getVerticalCoordinateString=function(f){return te(Xo(f))},Wi=e.strokeColor||"0 G";m.__private__.getStrokeColor=m.getDrawColor=function(){return $i(Wi)},m.__private__.setStrokeColor=m.setDrawColor=function(f,w,R,U){return Wi=zi({ch1:f,ch2:w,ch3:R,ch4:U,pdfColorType:"draw",precision:2}),j(Wi),this};var Ol=e.fillColor||"0 g";m.__private__.getFillColor=m.getFillColor=function(){return $i(Ol)},m.__private__.setFillColor=m.setFillColor=function(f,w,R,U){return Ol=zi({ch1:f,ch2:w,ch3:R,ch4:U,pdfColorType:"fill",precision:2}),j(Ol),this};var Fa=e.textColor||"0 g",gy=m.__private__.getTextColor=m.getTextColor=function(){return $i(Fa)};m.__private__.setTextColor=m.setTextColor=function(f,w,R,U){return Fa=zi({ch1:f,ch2:w,ch3:R,ch4:U,pdfColorType:"text",precision:3}),this};var Bu=e.charSpace,vy=m.__private__.getCharSpace=m.getCharSpace=function(){return parseFloat(Bu||0)};m.__private__.setCharSpace=m.setCharSpace=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Bu=f,this};var kl=0;m.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},m.__private__.setLineCap=m.setLineCap=function(f){var w=m.CapJoinStyles[f];if(w===void 0)throw new Error("Line cap style of '"+f+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return kl=w,j(w+" J"),this};var Rl=0;m.__private__.setLineJoin=m.setLineJoin=function(f){var w=m.CapJoinStyles[f];if(w===void 0)throw new Error("Line join style of '"+f+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Rl=w,j(w+" j"),this},m.__private__.setLineMiterLimit=m.__private__.setMiterLimit=m.setLineMiterLimit=m.setMiterLimit=function(f){if(f=f||0,isNaN(f))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return j(te(L(f))+" M"),this},m.GState=Tg,m.setGState=function(f){(f=typeof f=="string"?Cn[Vi[f]]:Yf(null,f)).equals(Qo)||(j("/"+f.id+" gs"),Qo=f)};var Yf=function(f,w){if(!f||!Vi[f]){var R=!1;for(var U in Cn)if(Cn.hasOwnProperty(U)&&Cn[U].equals(w)){R=!0;break}if(R)w=Cn[U];else{var Q="GS"+(Object.keys(Cn).length+1).toString(10);Cn[Q]=w,w.id=Q}return f&&(Vi[f]=w.id),qt.publish("addGState",w),w}};m.addGState=function(f,w){return Yf(f,w),this},m.saveGraphicsState=function(){return j("q"),bo.push({key:St,size:Me,color:Fa}),this},m.restoreGraphicsState=function(){j("Q");var f=bo.pop();return St=f.key,Me=f.size,Fa=f.color,Qo=null,this},m.setCurrentTransformationMatrix=function(f){return j(f.toString()+" cm"),this},m.comment=function(f){return j("#"+f),this};var Vu=function(f,w){var R=f||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return R},set:function(de){isNaN(de)||(R=parseFloat(de))}});var U=w||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return U},set:function(de){isNaN(de)||(U=parseFloat(de))}});var Q="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Q},set:function(de){Q=de.toString()}}),this},Fl=function(f,w,R,U){Vu.call(this,f,w),this.type="rect";var Q=R||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Q},set:function(Ce){isNaN(Ce)||(Q=parseFloat(Ce))}});var de=U||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return de},set:function(Ce){isNaN(Ce)||(de=parseFloat(Ce))}}),this},jl=function(){this.page=xn,this.currentPage=k,this.pages=Se.slice(0),this.pagesContext=lt.slice(0),this.x=pr,this.y=jt,this.matrix=Bi,this.width=ja(k),this.height=Bs(k),this.outputDestination=Pe,this.id="",this.objectNumber=-1};jl.prototype.restore=function(){xn=this.page,k=this.currentPage,lt=this.pagesContext,Se=this.pages,pr=this.x,jt=this.y,Bi=this.matrix,Bl(k,this.width),Vl(k,this.height),Pe=this.outputDestination};var Zf=function(f,w,R,U,Q){Do.push(new jl),xn=k=0,Se=[],pr=f,jt=w,Bi=Q,Nl([R,U])},yy=function(f){if(wo[f])Do.pop().restore();else{var w=new jl,R="Xo"+(Object.keys(ir).length+1).toString(10);w.id=R,wo[f]=R,ir[R]=w,qt.publish("addFormObject",w),Do.pop().restore()}};for(var Uu in m.beginFormObject=function(f,w,R,U,Q){return Zf(f,w,R,U,Q),this},m.endFormObject=function(f){return yy(f),this},m.doFormObject=function(f,w){var R=ir[wo[f]];return j("q"),j(w.toString()+" cm"),j("/"+R.id+" Do"),j("Q"),this},m.getFormObject=function(f){var w=ir[wo[f]];return{x:w.x,y:w.y,width:w.width,height:w.height,matrix:w.matrix}},m.save=function(f,w){return f=f||"generated.pdf",(w=w||{}).returnPromise=w.returnPromise||!1,w.returnPromise===!1?(bu(ku(Jo()),f),typeof bu.unload=="function"&&ot.setTimeout&&setTimeout(bu.unload,911),this):new Promise(function(R,U){try{var Q=bu(ku(Jo()),f);typeof bu.unload=="function"&&ot.setTimeout&&setTimeout(bu.unload,911),R(Q)}catch(de){U(de.message)}})},rt.API)rt.API.hasOwnProperty(Uu)&&(Uu==="events"&&rt.API.events.length?function(f,w){var R,U,Q;for(Q=w.length-1;Q!==-1;Q--)R=w[Q][0],U=w[Q][1],f.subscribe.apply(f,[R].concat(typeof U=="function"?[U]:U))}(qt,rt.API.events):m[Uu]=rt.API[Uu]);var ja=m.getPageWidth=function(f){return(lt[f=f||k].mediaBox.topRightX-lt[f].mediaBox.bottomLeftX)/Be},Bl=m.setPageWidth=function(f,w){lt[f].mediaBox.topRightX=w*Be+lt[f].mediaBox.bottomLeftX},Bs=m.getPageHeight=function(f){return(lt[f=f||k].mediaBox.topRightY-lt[f].mediaBox.bottomLeftY)/Be},Vl=m.setPageHeight=function(f,w){lt[f].mediaBox.topRightY=w*Be+lt[f].mediaBox.bottomLeftY};return m.internal={pdfEscape:Rr,getStyle:Hf,getFont:py,getFontSize:Oe,getCharSpace:vy,getTextColor:gy,getLineHeight:qf,getLineHeightFactor:Gf,getLineWidth:ju,write:ht,getHorizontalCoordinate:_o,getVerticalCoordinate:Xo,getCoordinateString:my,getVerticalCoordinateString:js,collections:{},newObject:zn,newAdditionalObject:Eu,newObjectDeferred:Rn,newObjectDeferredBegin:ti,getFilters:xo,putStream:pi,events:qt,scaleFactor:Be,pageSize:{getWidth:function(){return ja(k)},setWidth:function(f){Bl(k,f)},getHeight:function(){return Bs(k)},setHeight:function(f){Vl(k,f)}},encryptionOptions:h,encryption:mr,getEncryptor:uy,output:Ru,getNumberOfPages:ry,pages:Se,out:j,f2:ge,f3:M,getPageInfo:Uf,getPageInfoByObjId:ut,getCurrentPageInfo:cy,getPDFVersion:D,Point:Vu,Rectangle:Fl,Matrix:tt,hasHotfix:Vf},Object.defineProperty(m.internal.pageSize,"width",{get:function(){return ja(k)},set:function(f){Bl(k,f)},enumerable:!0,configurable:!0}),Object.defineProperty(m.internal.pageSize,"height",{get:function(){return Bs(k)},set:function(f){Vl(k,f)},enumerable:!0,configurable:!0}),ty.call(m,Ie),St="F1",Ff(i,n),qt.publish("initialized"),m}rl.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},rl.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},rl.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},rl.prototype.processOwnerPassword=function(e,t){return yw(vw(t).substr(0,5),e)},rl.prototype.encryptor=function(e,t){var n=vw(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return yw(n,r)}},Tg.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||nn(e)!==nn(this))return!1;var r=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&r--;return r===0},rt.API={events:[]},rt.version="2.5.2";var An=rt.API,Cw=1,Cu=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},tl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ft=function(e){return e.toFixed(2)},Ia=function(e){return e.toFixed(5)};An.__acroform__={};var Kr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},oA=function(e){return e*Cw},Ho=function(e){var t=new CA,n=We.internal.getHeight(e)||0,r=We.internal.getWidth(e)||0;return t.BBox=[0,0,Number(ft(r)),Number(ft(n))],t},pj=An.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},mj=An.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},gj=An.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Pn=An.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return gj(e,t-1)},Ln=An.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return pj(e,t-1)},On=An.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return mj(e,t-1)},vj=An.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,i=e[0],o=e[1],s=e[2],a=e[3],u={};return u.lowerLeft_X=n(i)||0,u.lowerLeft_Y=r(o+a)||0,u.upperRight_X=n(i+s)||0,u.upperRight_Y=r(o)||0,[Number(ft(u.lowerLeft_X)),Number(ft(u.lowerLeft_Y)),Number(ft(u.upperRight_X)),Number(ft(u.upperRight_Y))]},yj=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=bw(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+ft(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=Ho(e);return o.scope=e.scope,o.stream=t.join(`
`),o}},bw=function(e,t){var n=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(M){return M.split(`
`)}):i.map(function(M){return[M]});var o=n,s=We.internal.getHeight(e)||0;s=s<0?-s:s;var a=We.internal.getWidth(e)||0;a=a<0?-a:a;var u=function(M,L,W){if(M+1<i.length){var V=L+" "+i[M+1][0];return Ig(V,e,W).width<=a-4}return!1};o++;e:for(;o>0;){t="",o--;var d,h,g=Ig("3",e,o).height,y=e.multiline?s-o:(s-g)/2,m=y+=2,C=0,D=0,N=0;if(o<=0){t=`(...) Tj
`,t+="% Width of Text: "+Ig(t,e,o=12).width+", FieldWidth:"+a+`
`;break}for(var I="",P=0,B=0;B<i.length;B++)if(i.hasOwnProperty(B)){var J=!1;if(i[B].length!==1&&N!==i[B].length-1){if((g+2)*(P+2)+2>s)continue e;I+=i[B][N],J=!0,D=B,B--}else{I=(I+=i[B][N]+" ").substr(I.length-1)==" "?I.substr(0,I.length-1):I;var ie=parseInt(B),me=u(ie,I,o),te=B>=i.length-1;if(me&&!te){I+=" ",N=0;continue}if(me||te){if(te)D=ie;else if(e.multiline&&(g+2)*(P+2)+2>s)continue e}else{if(!e.multiline||(g+2)*(P+2)+2>s)continue e;D=ie}}for(var H="",oe=C;oe<=D;oe++){var ge=i[oe];if(e.multiline){if(oe===D){H+=ge[N]+" ",N=(N+1)%ge.length;continue}if(oe===C){H+=ge[ge.length-1]+" ";continue}}H+=ge[0]+" "}switch(H=H.substr(H.length-1)==" "?H.substr(0,H.length-1):H,h=Ig(H,e,o).width,e.textAlign){case"right":d=a-h-2;break;case"center":d=(a-h)/2;break;case"left":default:d=2}t+=ft(d)+" "+ft(m)+` Td
`,t+="("+Cu(H)+`) Tj
`,t+=-ft(d)+` 0 Td
`,m=-(o+2),h=0,C=J?D:D+1,P++,I=""}break}return r.text=t,r.fontSize=o,r},Ig=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},bj={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},wj=function(e,t){var n={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===n.type&&r.object===n.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Dj=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),nn(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[r]}},Cj=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(mo.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(bj)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Cw=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new xA,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(n){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(n){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o.objId=void 0,o.hasAnnotation&&wj(o,n)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(n){if(n.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(n){(function(r,i){var o=!r;for(var s in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],u=[],d=a.Rect;if(a.Rect&&(a.Rect=vj(a.Rect,i)),i.internal.newObjectDeferredBegin(a.objId,!0),a.DA=We.createDefaultAppearanceStream(a),nn(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(u=a.getKeyValueListForStream()),a.Rect=d,a.hasAppearanceStream&&!a.appearanceStreamContent){var h=yj(a);u.push({key:"AP",value:"<</N "+h+">>"}),i.internal.acroformPlugin.xForms.push(h)}if(a.appearanceStreamContent){var g="";for(var y in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(y)){var m=a.appearanceStreamContent[y];if(g+="/"+y+" ",g+="<<",Object.keys(m).length>=1||Array.isArray(m)){for(var s in m)if(m.hasOwnProperty(s)){var C=m[s];typeof C=="function"&&(C=C.call(i,a)),g+="/"+s+" "+C+" ",i.internal.acroformPlugin.xForms.indexOf(C)>=0||i.internal.acroformPlugin.xForms.push(C)}}else typeof(C=m)=="function"&&(C=C.call(i,a)),g+="/"+s+" "+C,i.internal.acroformPlugin.xForms.indexOf(C)>=0||i.internal.acroformPlugin.xForms.push(C);g+=">>"}u.push({key:"AP",value:`<<
`+g+">>"})}i.internal.putStream({additionalKeyValues:u,objectId:a.objId}),i.internal.out("endobj")}o&&Dj(i.internal.acroformPlugin.xForms,i)})(n,e)}),e.internal.acroformPlugin.isInitialized=!0}},DA=An.__acroform__.arrayToPdfArray=function(e,t,n){var r=function(s){return s};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(o!==0&&(i+=" "),nn(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":e[o].substr(0,1)!=="/"?(t!==void 0&&n&&(r=n.internal.getEncryptor(t)),i+="("+Cu(r(e[o].toString()))+")"):i+=e[o].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},hw=function(e,t,n){var r=function(i){return i};return t!==void 0&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),e="("+Cu(r(e))+")"},$o=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$o.prototype.toString=function(){return this.objId+" 0 R"},$o.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},$o.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var n in t)if(Object.getOwnPropertyDescriptor(this,t[n]).configurable===!1){var r=t[n],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:DA(i,this.objId,this.scope)}):i instanceof $o?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var CA=function(){$o.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(n){e=n.trim()},get:function(){return e||null}})};Kr(CA,$o);var xA=function(){$o.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var n=function(r){return r};return this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),"("+Cu(n(e))+")"}},set:function(n){e=n}})};Kr(xA,$o);var mo=function e(){$o.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(I){if(isNaN(I))throw new Error('Invalid value "'+I+'" for attribute F supplied.');t=I}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Pn(t,3)},set:function(I){I?this.F=Ln(t,3):this.F=On(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(I){if(isNaN(I))throw new Error('Invalid value "'+I+'" for attribute Ff supplied.');n=I}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(I){r=I!==void 0?I:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(I){r[0]=I}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(I){r[1]=I}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(I){r[2]=I}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(I){r[3]=I}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(I){switch(I){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=I;break;default:throw new Error('Invalid value "'+I+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof Pg)return;o="FieldObject"+e.FieldNum++}var I=function(P){return P};return this.scope&&(I=this.scope.internal.getEncryptor(this.objId)),"("+Cu(I(o))+")"},set:function(I){o=I.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(I){o=I}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(I){s=I}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(I){a=I}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(I){u=I}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Cw:d},set:function(I){d=I}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(I){h=I}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof Pg||this instanceof Du))return hw(g,this.objId,this.scope)},set:function(I){I=I.toString(),g=I}});var y=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(y)return this instanceof nr?y:hw(y,this.objId,this.scope)},set:function(I){I=I.toString(),y=this instanceof nr?I:I.substr(0,1)==="("?tl(I.substr(1,I.length-2)):tl(I)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof nr?tl(y.substr(1,y.length-1)):y},set:function(I){I=I.toString(),y=this instanceof nr?"/"+I:I}});var m=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(m)return m},set:function(I){this.V=I}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof nr?m:hw(m,this.objId,this.scope)},set:function(I){I=I.toString(),m=this instanceof nr?I:I.substr(0,1)==="("?tl(I.substr(1,I.length-2)):tl(I)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof nr?tl(m.substr(1,m.length-1)):m},set:function(I){I=I.toString(),m=this instanceof nr?"/"+I:I}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var C,D=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return D},set:function(I){I=!!I,D=I}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(C)return C},set:function(I){C=I}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,1)},set:function(I){I?this.Ff=Ln(this.Ff,1):this.Ff=On(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,2)},set:function(I){I?this.Ff=Ln(this.Ff,2):this.Ff=On(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,3)},set:function(I){I?this.Ff=Ln(this.Ff,3):this.Ff=On(this.Ff,3)}});var N=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(N!==null)return N},set:function(I){if([0,1,2].indexOf(I)===-1)throw new Error('Invalid value "'+I+'" for attribute Q supplied.');N=I}}),Object.defineProperty(this,"textAlign",{get:function(){var I;switch(N){case 0:default:I="left";break;case 1:I="center";break;case 2:I="right"}return I},configurable:!0,enumerable:!0,set:function(I){switch(I){case"right":case 2:N=2;break;case"center":case 1:N=1;break;case"left":case 0:default:N=0}}})};Kr(mo,$o);var sl=function(){mo.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){e=n}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return DA(t,this.objId,this.scope)},set:function(n){var r,i;i=[],typeof(r=n)=="string"&&(i=function(o,s,a){a||(a=1);for(var u,d=[];u=s.exec(o);)d.push(u[a]);return d}(r,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(n){t=n,this.sort&&t.sort()},this.addOption=function(n){n=(n=n||"").toString(),t.push(n),this.sort&&t.sort()},this.removeOption=function(n,r){for(r=r||!1,n=(n=n||"").toString();t.indexOf(n)!==-1&&(t.splice(t.indexOf(n),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,18)},set:function(n){n?this.Ff=Ln(this.Ff,18):this.Ff=On(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,19)},set:function(n){this.combo===!0&&(n?this.Ff=Ln(this.Ff,19):this.Ff=On(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,20)},set:function(n){n?(this.Ff=Ln(this.Ff,20),t.sort()):this.Ff=On(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,22)},set:function(n){n?this.Ff=Ln(this.Ff,22):this.Ff=On(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,23)},set:function(n){n?this.Ff=Ln(this.Ff,23):this.Ff=On(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,27)},set:function(n){n?this.Ff=Ln(this.Ff,27):this.Ff=On(this.Ff,27)}}),this.hasAppearanceStream=!1};Kr(sl,mo);var al=function(){sl.call(this),this.fontName="helvetica",this.combo=!1};Kr(al,sl);var ul=function(){al.call(this),this.combo=!0};Kr(ul,al);var Eg=function(){ul.call(this),this.edit=!0};Kr(Eg,ul);var nr=function(){mo.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,15)},set:function(n){n?this.Ff=Ln(this.Ff,15):this.Ff=On(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,16)},set:function(n){n?this.Ff=Ln(this.Ff,16):this.Ff=On(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,17)},set:function(n){n?this.Ff=Ln(this.Ff,17):this.Ff=On(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,26)},set:function(n){n?this.Ff=Ln(this.Ff,26):this.Ff=On(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};if(this.scope&&(n=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,i=[];for(r in i.push("<<"),t)i.push("/"+r+" ("+Cu(n(t[r]))+")");return i.push(">>"),i.join(`
`)}},set:function(n){nn(n)==="object"&&(t=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(n){typeof n=="string"&&(t.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}})};Kr(nr,mo);var Ag=function(){nr.call(this),this.pushButton=!0};Kr(Ag,nr);var cl=function(){nr.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Kr(cl,nr);var Pg=function(){var e,t;mo.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(a){return a};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var o,s=[];for(o in s.push("<<"),r)s.push("/"+o+" ("+Cu(i(r[o]))+")");return s.push(">>"),s.join(`
`)},set:function(i){nn(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){n="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=We.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Kr(Pg,mo),cl.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},cl.prototype.createOption=function(e){var t=new Pg;return t.Parent=this,t.optionName=e,this.Kids.push(t),xj.call(this.scope,t),t};var Ng=function(){nr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=We.CheckBox.createAppearanceStream()};Kr(Ng,nr);var Du=function(){mo.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,13)},set:function(t){t?this.Ff=Ln(this.Ff,13):this.Ff=On(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,21)},set:function(t){t?this.Ff=Ln(this.Ff,21):this.Ff=On(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,23)},set:function(t){t?this.Ff=Ln(this.Ff,23):this.Ff=On(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,24)},set:function(t){t?this.Ff=Ln(this.Ff,24):this.Ff=On(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,25)},set:function(t){t?this.Ff=Ln(this.Ff,25):this.Ff=On(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,26)},set:function(t){t?this.Ff=Ln(this.Ff,26):this.Ff=On(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Kr(Du,mo);var Mg=function(){Du.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Pn(this.Ff,14)},set:function(e){e?this.Ff=Ln(this.Ff,14):this.Ff=On(this.Ff,14)}}),this.password=!0};Kr(Mg,Du);var We={CheckBox:{createAppearanceStream:function(){return{N:{On:We.CheckBox.YesNormal},D:{On:We.CheckBox.YesPushDown,Off:We.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ho(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=bw(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+ft(We.internal.getWidth(e))+" "+ft(We.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+ft(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join(`
`),t},YesNormal:function(e){var t=Ho(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],o=We.internal.getHeight(e),s=We.internal.getWidth(e),a=bw(e,e.caption);return i.push("1 g"),i.push("0 0 "+ft(s)+" "+ft(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ft(s-1)+" "+ft(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+ft(a.fontSize)+" Tf "+r),i.push(a.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
`),t},OffPushDown:function(e){var t=Ho(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ft(We.internal.getWidth(e))+" "+ft(We.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:We.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=We.RadioButton.Circle.YesNormal,t.D[e]=We.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ho(e);t.scope=e.scope;var n=[],r=We.internal.getWidth(e)<=We.internal.getHeight(e)?We.internal.getWidth(e)/4:We.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=We.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Ia(We.internal.getWidth(e)/2)+" "+Ia(We.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
`),t},YesPushDown:function(e){var t=Ho(e);t.scope=e.scope;var n=[],r=We.internal.getWidth(e)<=We.internal.getHeight(e)?We.internal.getWidth(e)/4:We.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*We.internal.Bezier_C).toFixed(5)),s=Number((r*We.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ia(We.internal.getWidth(e)/2)+" "+Ia(We.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Ia(We.internal.getWidth(e)/2)+" "+Ia(We.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),n.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),n.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),n.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(e){var t=Ho(e);t.scope=e.scope;var n=[],r=We.internal.getWidth(e)<=We.internal.getHeight(e)?We.internal.getWidth(e)/4:We.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*We.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ia(We.internal.getWidth(e)/2)+" "+Ia(We.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join(`
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:We.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=We.RadioButton.Cross.YesNormal,t.D[e]=We.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ho(e);t.scope=e.scope;var n=[],r=We.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+ft(We.internal.getWidth(e)-2)+" "+ft(We.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(ft(r.x1.x)+" "+ft(r.x1.y)+" m"),n.push(ft(r.x2.x)+" "+ft(r.x2.y)+" l"),n.push(ft(r.x4.x)+" "+ft(r.x4.y)+" m"),n.push(ft(r.x3.x)+" "+ft(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
`),t},YesPushDown:function(e){var t=Ho(e);t.scope=e.scope;var n=We.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ft(We.internal.getWidth(e))+" "+ft(We.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ft(We.internal.getWidth(e)-2)+" "+ft(We.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ft(n.x1.x)+" "+ft(n.x1.y)+" m"),r.push(ft(n.x2.x)+" "+ft(n.x2.y)+" l"),r.push(ft(n.x4.x)+" "+ft(n.x4.y)+" m"),r.push(ft(n.x3.x)+" "+ft(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(e){var t=Ho(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ft(We.internal.getWidth(e))+" "+ft(We.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join(`
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};We.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=We.internal.getWidth(e),n=We.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},We.internal.getWidth=function(e){var t=0;return nn(e)==="object"&&(t=oA(e.Rect[2])),t},We.internal.getHeight=function(e){var t=0;return nn(e)==="object"&&(t=oA(e.Rect[3])),t};var xj=An.addField=function(e){if(Cj(this,e),!(e instanceof mo))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};An.AcroFormChoiceField=sl,An.AcroFormListBox=al,An.AcroFormComboBox=ul,An.AcroFormEditBox=Eg,An.AcroFormButton=nr,An.AcroFormPushButton=Ag,An.AcroFormRadioButton=cl,An.AcroFormCheckBox=Ng,An.AcroFormTextField=Du,An.AcroFormPasswordField=Mg,An.AcroFormAppearance=We,An.AcroForm={ChoiceField:sl,ListBox:al,ComboBox:ul,EditBox:Eg,Button:nr,PushButton:Ag,RadioButton:cl,CheckBox:Ng,TextField:Du,PasswordField:Mg,Appearance:We},rt.AcroForm={ChoiceField:sl,ListBox:al,ComboBox:ul,EditBox:Eg,Button:nr,PushButton:Ag,RadioButton:cl,CheckBox:Ng,TextField:Du,PasswordField:Mg,Appearance:We};var dZ=rt.AcroForm;function IA(e){return e.reduce(function(t,n,r){return t[n]=r,t},{})}(function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(M,L){var W,V,le,ue,fe,ne=t;if((L=L||t)==="RGBA"||M.data!==void 0&&M.data instanceof Uint8ClampedArray&&"height"in M&&"width"in M)return"RGBA";if(me(M))for(fe in n)for(le=n[fe],W=0;W<le.length;W+=1){for(ue=!0,V=0;V<le[W].length;V+=1)if(le[W][V]!==void 0&&le[W][V]!==M[V]){ue=!1;break}if(ue===!0){ne=fe;break}}else for(fe in n)for(le=n[fe],W=0;W<le.length;W+=1){for(ue=!0,V=0;V<le[W].length;V+=1)if(le[W][V]!==void 0&&le[W][V]!==M.charCodeAt(V)){ue=!1;break}if(ue===!0){ne=fe;break}}return ne===t&&L!==t&&(ne=L),ne},i=function M(L){for(var W=this.internal.write,V=this.internal.putStream,le=(0,this.internal.getFilters)();le.indexOf("FlateEncode")!==-1;)le.splice(le.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var ue=[];if(ue.push({key:"Type",value:"/XObject"}),ue.push({key:"Subtype",value:"/Image"}),ue.push({key:"Width",value:L.width}),ue.push({key:"Height",value:L.height}),L.colorSpace===N.INDEXED?ue.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(ue.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===N.DEVICE_CMYK&&ue.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ue.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&&ue.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)){for(var fe="",ne=0,he=L.transparency.length;ne<he;ne++)fe+=L.transparency[ne]+" "+L.transparency[ne]+" ";ue.push({key:"Mask",value:"["+fe+"]"})}L.sMask!==void 0&&ue.push({key:"SMask",value:L.objectId+1+" 0 R"});var ve=L.filter!==void 0?["/"+L.filter]:void 0;if(V({data:L.data,additionalKeyValues:ue,alreadyAppliedFilters:ve,objectId:L.objectId}),W("endobj"),"sMask"in L&&L.sMask!==void 0){var Fe="/Predictor "+L.predictor+" /Colors 1 /BitsPerComponent "+L.bitsPerComponent+" /Columns "+L.width,_={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:L.bitsPerComponent,decodeParameters:Fe,data:L.sMask};"filter"in L&&(_.filter=L.filter),M.call(this,_)}if(L.colorSpace===N.INDEXED){var k=this.internal.newObject();V({data:H(new Uint8Array(L.palette)),objectId:k}),W("endobj")}},o=function(){var M=this.internal.collections.addImage_images;for(var L in M)i.call(this,M[L])},s=function(){var M,L=this.internal.collections.addImage_images,W=this.internal.write;for(var V in L)W("/I"+(M=L[V]).index,M.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var M=this.internal.collections.addImage_images;return a.call(this),M},d=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(M){return typeof e["process"+M.toUpperCase()]=="function"},g=function(M){return nn(M)==="object"&&M.nodeType===1},y=function(M,L){if(M.nodeName==="IMG"&&M.hasAttribute("src")){var W=""+M.getAttribute("src");if(W.indexOf("data:image/")===0)return Df(unescape(W).split("base64,").pop());var V=e.loadFile(W,!0);if(V!==void 0)return V}if(M.nodeName==="CANVAS"){if(M.width===0||M.height===0)throw new Error("Given canvas must have data. Canvas width: "+M.width+", height: "+M.height);var le;switch(L){case"PNG":le="image/png";break;case"WEBP":le="image/webp";break;case"JPEG":case"JPG":default:le="image/jpeg"}return Df(M.toDataURL(le,1).split("base64,").pop())}},m=function(M){var L=this.internal.collections.addImage_images;if(L){for(var W in L)if(M===L[W].alias)return L[W]}},C=function(M,L,W){return M||L||(M=-96,L=-96),M<0&&(M=-1*W.width*72/M/this.internal.scaleFactor),L<0&&(L=-1*W.height*72/L/this.internal.scaleFactor),M===0&&(M=L*W.width/W.height),L===0&&(L=M*W.height/W.width),[M,L]},D=function(M,L,W,V,le,ue){var fe=C.call(this,W,V,le),ne=this.internal.getCoordinateString,he=this.internal.getVerticalCoordinateString,ve=u.call(this);if(W=fe[0],V=fe[1],ve[le.index]=le,ue){ue*=Math.PI/180;var Fe=Math.cos(ue),_=Math.sin(ue),k=function($){return $.toFixed(4)},F=[k(Fe),k(_),k(-1*_),k(Fe),0,0,"cm"]}this.internal.write("q"),ue?(this.internal.write([1,"0","0",1,ne(M),he(L+V),"cm"].join(" ")),this.internal.write(F.join(" ")),this.internal.write([ne(W),"0","0",ne(V),"0","0","cm"].join(" "))):this.internal.write([ne(W),"0","0",ne(V),ne(M),he(L+V),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+le.index+" Do"),this.internal.write("Q")},N=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var I=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},P=e.__addimage__.sHashCode=function(M){var L,W,V=0;if(typeof M=="string")for(W=M.length,L=0;L<W;L++)V=(V<<5)-V+M.charCodeAt(L),V|=0;else if(me(M))for(W=M.byteLength/2,L=0;L<W;L++)V=(V<<5)-V+M[L],V|=0;return V},B=e.__addimage__.validateStringAsBase64=function(M){(M=M||"").toString().trim();var L=!0;return M.length===0&&(L=!1),M.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(M.substr(0,M.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(M.substr(-2))===!1&&(L=!1),L},J=e.__addimage__.extractImageFromDataUrl=function(M){var L=(M=M||"").split("base64,"),W=null;if(L.length===2){var V=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(L[0]);Array.isArray(V)&&(W={mimeType:V[1],charset:V[2],data:L[1]})}return W},ie=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(M){return ie()&&M instanceof ArrayBuffer};var me=e.__addimage__.isArrayBufferView=function(M){return ie()&&typeof Uint32Array<"u"&&(M instanceof Int8Array||M instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&M instanceof Uint8ClampedArray||M instanceof Int16Array||M instanceof Uint16Array||M instanceof Int32Array||M instanceof Uint32Array||M instanceof Float32Array||M instanceof Float64Array)},te=e.__addimage__.binaryStringToUint8Array=function(M){for(var L=M.length,W=new Uint8Array(L),V=0;V<L;V++)W[V]=M.charCodeAt(V);return W},H=e.__addimage__.arrayBufferToBinaryString=function(M){for(var L="",W=me(M)?M:new Uint8Array(M),V=0;V<W.length;V+=8192)L+=String.fromCharCode.apply(null,W.subarray(V,V+8192));return L};e.addImage=function(){var M,L,W,V,le,ue,fe,ne,he;if(typeof arguments[1]=="number"?(L=t,W=arguments[1],V=arguments[2],le=arguments[3],ue=arguments[4],fe=arguments[5],ne=arguments[6],he=arguments[7]):(L=arguments[1],W=arguments[2],V=arguments[3],le=arguments[4],ue=arguments[5],fe=arguments[6],ne=arguments[7],he=arguments[8]),nn(M=arguments[0])==="object"&&!g(M)&&"imageData"in M){var ve=M;M=ve.imageData,L=ve.format||L||t,W=ve.x||W||0,V=ve.y||V||0,le=ve.w||ve.width||le,ue=ve.h||ve.height||ue,fe=ve.alias||fe,ne=ve.compression||ne,he=ve.rotation||ve.angle||he}var Fe=this.internal.getFilters();if(ne===void 0&&Fe.indexOf("FlateEncode")!==-1&&(ne="SLOW"),isNaN(W)||isNaN(V))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var _=oe.call(this,M,L,fe,ne);return D.call(this,W,V,le,ue,_,he),this};var oe=function(M,L,W,V){var le,ue,fe;if(typeof M=="string"&&r(M)===t){M=unescape(M);var ne=ge(M,!1);(ne!==""||(ne=e.loadFile(M,!0))!==void 0)&&(M=ne)}if(g(M)&&(M=y(M,L)),L=r(M,L),!h(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((fe=W)==null||fe.length===0)&&(W=function(he){return typeof he=="string"||me(he)?P(he):me(he.data)?P(he.data):null}(M)),(le=m.call(this,W))||(ie()&&(M instanceof Uint8Array||L==="RGBA"||(ue=M,M=te(M))),le=this["process"+L.toUpperCase()](M,d.call(this),W,function(he){return he&&typeof he=="string"&&(he=he.toUpperCase()),he in e.image_compression?he:I.NONE}(V),ue)),!le)throw new Error("An unknown error occurred whilst processing the image.");return le},ge=e.__addimage__.convertBase64ToBinaryString=function(M,L){var W;L=typeof L!="boolean"||L;var V,le="";if(typeof M=="string"){V=(W=J(M))!==null?W.data:M;try{le=Df(V)}catch(ue){if(L)throw B(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ue.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return le};e.getImageProperties=function(M){var L,W,V="";if(g(M)&&(M=y(M)),typeof M=="string"&&r(M)===t&&((V=ge(M,!1))===""&&(V=e.loadFile(M)||""),M=V),W=r(M),!h(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(!ie()||M instanceof Uint8Array||(M=te(M)),!(L=this["process"+W.toUpperCase()](M)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=W,L}})(rt.API),function(e){var t=function(n){if(n!==void 0&&n!="")return!0};rt.API.events.push(["addPage",function(n){this.internal.getPageInfo(n.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(n){for(var r,i,o,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(n.objId),d=n.pageContext.annotations,h=!1,g=0;g<d.length&&!h;g++)switch((r=d[g]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var y=0;y<d.length;y++){r=d[y];var m=this.internal.pdfEscape,C=this.internal.getEncryptor(n.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var D=this.internal.newAdditionalObject(),N=this.internal.newAdditionalObject(),I=this.internal.getEncryptor(D.objId),P=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+m(I(r.contents))+")",o+=" /Popup "+N.objId+" 0 R",o+=" /P "+u.objId+" 0 R",o+=" /T ("+m(I(P))+") >>",D.content=o;var B=D.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+B,r.open&&(o+=" /Open true"),o+=" >>",N.content=o,this.internal.write(D.objId,"0 R",N.objId,"0 R");break;case"freetext":i="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var J=r.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+m(C(r.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+J+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var ie=this.annotations._nameMap[r.options.name];r.options.pageNumber=ie.page,r.options.top=ie.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+m(C(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var me=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+me+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(n){var r=this.internal.getCurrentPageInfo();switch(n.type){case"link":this.link(n.bounds.x,n.bounds.y,n.bounds.w,n.bounds.h,n);break;case"text":case"freetext":r.pageContext.annotations.push(n)}},e.link=function(n,r,i,o,s){var a=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:u(n),y:d(r),w:u(n+i),h:d(r+o)},options:s,type:"link"})},e.textWithLink=function(n,r,i,o){var s,a,u=this.getTextWidth(n),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){a=o.maxWidth;var h=this.splitTextToSize(n,a).length;s=Math.ceil(d*h)}else a=u,s=d;return this.text(n,r,i,o),i+=.2*d,o.align==="center"&&(r-=u/2),o.align==="right"&&(r-=u),this.link(r,i-d,a,s,o),u},e.getTextWidth=function(n){var r=this.internal.getFontSize();return this.getStringUnitWidth(n)*r/this.internal.scaleFactor}}(rt.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(D){return t[D.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(D){return typeof D=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(D)},a=e.__arabicParser__.isArabicEndLetter=function(D){return s(D)&&o(D)&&t[D.charCodeAt(0)].length<=2},u=e.__arabicParser__.isArabicAlfLetter=function(D){return s(D)&&i.indexOf(D.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(D){return s(D)&&o(D)&&t[D.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(D){return s(D)&&o(D)&&t[D.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(D){return s(D)&&o(D)&&t[D.charCodeAt(0)].length>=3};var h=e.__arabicParser__.arabicLetterHasMedialForm=function(D){return s(D)&&o(D)&&t[D.charCodeAt(0)].length==4},g=e.__arabicParser__.resolveLigatures=function(D){var N=0,I=n,P="",B=0;for(N=0;N<D.length;N+=1)I[D.charCodeAt(N)]!==void 0?(B++,typeof(I=I[D.charCodeAt(N)])=="number"&&(P+=String.fromCharCode(I),I=n,B=0),N===D.length-1&&(I=n,P+=D.charAt(N-(B-1)),N-=B-1,B=0)):(I=n,P+=D.charAt(N-B),N-=B,B=0);return P};e.__arabicParser__.isArabicDiacritic=function(D){return D!==void 0&&r[D.charCodeAt(0)]!==void 0};var y=e.__arabicParser__.getCorrectForm=function(D,N,I){return s(D)?o(D)===!1?-1:!d(D)||!s(N)&&!s(I)||!s(I)&&a(N)||a(D)&&!s(N)||a(D)&&u(N)||a(D)&&a(N)?0:h(D)&&s(N)&&!a(N)&&s(I)&&d(I)?3:a(D)||!s(I)?1:2:-1},m=function(D){var N=0,I=0,P=0,B="",J="",ie="",me=(D=D||"").split("\\s+"),te=[];for(N=0;N<me.length;N+=1){for(te.push(""),I=0;I<me[N].length;I+=1)B=me[N][I],J=me[N][I-1],ie=me[N][I+1],s(B)?(P=y(B,J,ie),te[N]+=P!==-1?String.fromCharCode(t[B.charCodeAt(0)][P]):B):te[N]+=B;te[N]=g(te[N])}return te.join(" ")},C=e.__arabicParser__.processArabic=e.processArabic=function(){var D,N=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,I=[];if(Array.isArray(N)){var P=0;for(I=[],P=0;P<N.length;P+=1)Array.isArray(N[P])?I.push([m(N[P][0]),N[P][1],N[P][2]]):I.push([m(N[P])]);D=I}else D=m(N);return typeof arguments[0]=="string"?D:(arguments[0].text=D,arguments[0])};e.events.push(["preProcessText",C])}(rt.API),rt.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})}return this},function(e){var t=function(){var n=void 0;Object.defineProperty(this,"pdf",{get:function(){return n},set:function(a){n=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(a){i=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(a){o=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(n,r){var i;if((n=n||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(rt.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(D){u=D}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(D){d=D}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(D){h=D}});var g=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return g},set:function(D){g=D}});var y=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return y},set:function(D){y=D}});var m=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return m},set:function(D){m=D}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(D){C=D}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(u){return r.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},e.getTextDimensions=function(u,d){r.call(this);var h=(d=d||{}).fontSize||this.getFontSize(),g=d.font||this.getFont(),y=d.scaleFactor||this.internal.scaleFactor,m=0,C=0,D=0,N=this;if(!Array.isArray(u)&&typeof u!="string"){if(typeof u!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var I=d.maxWidth;I>0?typeof u=="string"?u=this.splitTextToSize(u,I):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(B,J){return B.concat(N.splitTextToSize(J,I))},[])):u=Array.isArray(u)?u:[u];for(var P=0;P<u.length;P++)m<(D=this.getStringUnitWidth(u[P],{font:g})*h)&&(m=D);return m!==0&&(C=u.length),{w:m/=y,h:Math.max((C*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/y,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var u=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var u;u=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var d=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,g=this.internal.__cell__.margins||t,y=this.internal.__cell__.tableHeaderRow,m=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===u.lineNumber?(u.x=(d.x||0)+(d.width||0),u.y=d.y||0):d.y+d.height+u.height+g.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=g.top,m&&y&&(this.printHeaderRow(u.lineNumber,!0),u.y+=y[0].height)):u.y=d.y+d.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,n===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-h,u.y+h,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+h,{align:"center",baseline:"top",maxWidth:u.width-h-h}):this.text(u.text,u.x+h,u.y+h,{align:"left",baseline:"top",maxWidth:u.width-h-h})),this.internal.__cell__.lastCell=u,this};e.table=function(u,d,h,g,y){if(r.call(this),!h)throw new Error("No data for PDF table.");var m,C,D,N,I=[],P=[],B=[],J={},ie={},me=[],te=[],H=(y=y||{}).autoSize||!1,oe=y.printHeaders!==!1,ge=y.css&&y.css["font-size"]!==void 0?16*y.css["font-size"]:y.fontSize||12,M=y.margins||Object.assign({width:this.getPageWidth()},t),L=typeof y.padding=="number"?y.padding:3,W=y.headerBackgroundColor||"#c8c8c8",V=y.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=oe,this.internal.__cell__.margins=M,this.internal.__cell__.table_font_size=ge,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=V,this.setFontSize(ge),g==null)P=I=Object.keys(h[0]),B=I.map(function(){return"left"});else if(Array.isArray(g)&&nn(g[0])==="object")for(I=g.map(function(ve){return ve.name}),P=g.map(function(ve){return ve.prompt||ve.name||""}),B=g.map(function(ve){return ve.align||"left"}),m=0;m<g.length;m+=1)ie[g[m].name]=g[m].width*(19.049976/25.4);else Array.isArray(g)&&typeof g[0]=="string"&&(P=I=g,B=I.map(function(){return"left"}));if(H||Array.isArray(g)&&typeof g[0]=="string")for(m=0;m<I.length;m+=1){for(J[N=I[m]]=h.map(function(ve){return ve[N]}),this.setFont(void 0,"bold"),me.push(this.getTextDimensions(P[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=J[N],this.setFont(void 0,"normal"),D=0;D<C.length;D+=1)me.push(this.getTextDimensions(C[D],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ie[N]=Math.max.apply(null,me)+L+L,me=[]}if(oe){var le={};for(m=0;m<I.length;m+=1)le[I[m]]={},le[I[m]].text=P[m],le[I[m]].align=B[m];var ue=a.call(this,le,ie);te=I.map(function(ve){return new o(u,d,ie[ve],ue,le[ve].text,void 0,le[ve].align)}),this.setTableHeaderRow(te),this.printHeaderRow(1,!1)}var fe=g.reduce(function(ve,Fe){return ve[Fe.name]=Fe.align,ve},{});for(m=0;m<h.length;m+=1){"rowStart"in y&&y.rowStart instanceof Function&&y.rowStart({row:m,data:h[m]},this);var ne=a.call(this,h[m],ie);for(D=0;D<I.length;D+=1){var he=h[m][I[D]];"cellStart"in y&&y.cellStart instanceof Function&&y.cellStart({row:m,col:D,data:he},this),s.call(this,new o(u,d,ie[I[D]],ne,he,m+2,fe[I[D]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=d,this};var a=function(u,d){var h=this.internal.__cell__.padding,g=this.internal.__cell__.table_font_size,y=this.internal.scaleFactor;return Object.keys(u).map(function(m){var C=u[m];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,d[m]-h-h)},this).map(function(m){return this.getLineHeightFactor()*m.length*g/y+h+h},this).reduce(function(m,C){return Math.max(m,C)},0)};e.setTableHeaderRow=function(u){r.call(this),this.internal.__cell__.tableHeaderRow=u},e.printHeaderRow=function(u,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(n=!0,typeof this.internal.__cell__.headerFunction=="function"){var g=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(g[0],g[1],g[2],g[3],void 0,-1)}this.setFont(void 0,"bold");for(var y=[],m=0;m<this.internal.__cell__.tableHeaderRow.length;m+=1){h=this.internal.__cell__.tableHeaderRow[m].clone(),d&&(h.y=this.internal.__cell__.margins.top||0,y.push(h)),h.lineNumber=u;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(C)}y.length>0&&this.setTableHeaderRow(y),this.setFont(void 0,"normal"),n=!1}}(rt.API);var SA={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},_A=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ww=IA(_A),EA=[100,200,300,400,500,600,700,800,900],Ij=IA(EA);function Dw(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(o){return SA[o=o||"normal"]?o:"normal"}(e.style),r=function(o){if(!o)return 400;if(typeof o=="number")return o>=100&&o<=900&&o%100==0?o:400;if(/^\d00$/.test(o))return parseInt(o);switch(o){case"bold":return 700;case"normal":default:return 400}}(e.weight),i=function(o){return typeof ww[o=o||"normal"]=="number"?o:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,r].join(" ")}}}function sA(e,t,n,r){var i;for(i=n;i>=0&&i<t.length;i+=r)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=r)if(e[t[i]])return e[t[i]]}var Sj={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},aA={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function uA(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function _j(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Sj,n.genericFontFamilies||{}),o=null,s=null,a=0;a<t.length;++a)if(i[(o=Dw(t[a])).family]&&(o.family=i[o.family]),e.hasOwnProperty(o.family)){s=e[o.family];break}if(!(s=s||e[r]))throw new Error("Could not find a font-family for the rule '"+uA(o)+"' and default family '"+r+"'.");if(s=function(u,d){if(d[u])return d[u];var h=ww[u],g=h<=ww.normal?-1:1,y=sA(d,_A,h,g);if(!y)throw new Error("Could not find a matching font-stretch value for "+u);return y}(o.stretch,s),s=function(u,d){if(d[u])return d[u];for(var h=SA[u],g=0;g<h.length;++g)if(d[h[g]])return d[h[g]];throw new Error("Could not find a matching font-style for "+u)}(o.style,s),!(s=function(u,d){if(d[u])return d[u];if(u===400&&d[500])return d[500];if(u===500&&d[400])return d[400];var h=Ij[u],g=sA(d,EA,h,u<400?-1:1);if(!g)throw new Error("Could not find a matching font-weight for value "+u);return g}(o.weight,s)))throw new Error("Failed to resolve a font for the rule '"+uA(o)+"'.");return s}function cA(e){return e.trimLeft()}function Ej(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Aj(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Sg,lA,dA,pw=["times"];(function(e){var t,n,r,i,o,s,a,u,d,h=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new u,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new s,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new s,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new g(this),t=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,u=this.internal.Matrix,d=new h}]);var g=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var k=_;Object.defineProperty(this,"pdf",{get:function(){return k}});var F=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return F},set:function(pe){F=!!pe}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(pe){$=!!pe}});var Z=0;Object.defineProperty(this,"posX",{get:function(){return Z},set:function(pe){isNaN(pe)||(Z=pe)}});var re=0;Object.defineProperty(this,"posY",{get:function(){return re},set:function(pe){isNaN(pe)||(re=pe)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(pe){var j;typeof pe=="number"?j=[pe,pe,pe,pe]:((j=new Array(4))[0]=pe[0],j[1]=pe.length>=2?pe[1]:j[0],j[2]=pe.length>=3?pe[2]:j[0],j[3]=pe.length>=4?pe[3]:j[1]),d.margin=j}});var se=!1;Object.defineProperty(this,"autoPaging",{get:function(){return se},set:function(pe){se=pe}});var ae=0;Object.defineProperty(this,"lastBreak",{get:function(){return ae},set:function(pe){ae=pe}});var Ee=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ee},set:function(pe){Ee=pe}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(pe){pe instanceof h&&(d=pe)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(pe){d.path=pe}});var Se=[];Object.defineProperty(this,"ctxStack",{get:function(){return Se},set:function(pe){Se=pe}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(pe){var j;j=y(pe),this.ctx.fillStyle=j.style,this.ctx.isFillTransparent=j.a===0,this.ctx.fillOpacity=j.a,this.pdf.setFillColor(j.r,j.g,j.b,{a:j.a}),this.pdf.setTextColor(j.r,j.g,j.b,{a:j.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(pe){var j=y(pe);this.ctx.strokeStyle=j.style,this.ctx.isStrokeTransparent=j.a===0,this.ctx.strokeOpacity=j.a,j.a===0?this.pdf.setDrawColor(255,255,255):(j.a,this.pdf.setDrawColor(j.r,j.g,j.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(pe){["butt","round","square"].indexOf(pe)!==-1&&(this.ctx.lineCap=pe,this.pdf.setLineCap(pe))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(pe){isNaN(pe)||(this.ctx.lineWidth=pe,this.pdf.setLineWidth(pe))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(pe){["bevel","round","miter"].indexOf(pe)!==-1&&(this.ctx.lineJoin=pe,this.pdf.setLineJoin(pe))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(pe){isNaN(pe)||(this.ctx.miterLimit=pe,this.pdf.setMiterLimit(pe))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(pe){this.ctx.textBaseline=pe}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(pe){["right","end","center","left","start"].indexOf(pe)!==-1&&(this.ctx.textAlign=pe)}});var ke=null;function Pe(pe,j){if(ke===null){var ht=function(Ye){var Ie=[];return Object.keys(Ye).forEach(function(Me){Ye[Me].forEach(function(je){var Oe=null;switch(je){case"bold":Oe={family:Me,weight:"bold"};break;case"italic":Oe={family:Me,style:"italic"};break;case"bolditalic":Oe={family:Me,weight:"bold",style:"italic"};break;case"":case"normal":Oe={family:Me}}Oe!==null&&(Oe.ref={name:Me,style:je},Ie.push(Oe))})}),Ie}(pe.getFontList());ke=function(Ye){for(var Ie={},Me=0;Me<Ye.length;++Me){var je=Dw(Ye[Me]),Oe=je.family,Ze=je.stretch,ct=je.style,yt=je.weight;Ie[Oe]=Ie[Oe]||{},Ie[Oe][Ze]=Ie[Oe][Ze]||{},Ie[Oe][Ze][ct]=Ie[Oe][Ze][ct]||{},Ie[Oe][Ze][ct][yt]=je}return Ie}(ht.concat(j))}return ke}var it=null;Object.defineProperty(this,"fontFaces",{get:function(){return it},set:function(pe){ke=null,it=pe}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(pe){var j;if(this.ctx.font=pe,(j=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(pe))!==null){var ht=j[1],Ye=(j[2],j[3]),Ie=j[4],Me=(j[5],j[6]),je=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ie)[2];Ie=Math.floor(je==="px"?parseFloat(Ie)*this.pdf.internal.scaleFactor:je==="em"?parseFloat(Ie)*this.pdf.getFontSize():parseFloat(Ie)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ie);var Oe=function(st){var St,Be,pr=[],jt=st.trim();if(jt==="")return pw;if(jt in aA)return[aA[jt]];for(;jt!=="";){switch(Be=null,St=(jt=cA(jt)).charAt(0)){case'"':case"'":Be=Ej(jt.substring(1),St);break;default:Be=Aj(jt)}if(Be===null||(pr.push(Be[0]),(jt=cA(Be[1]))!==""&&jt.charAt(0)!==","))return pw;jt=jt.replace(/^,/,"")}return pr}(Me);if(this.fontFaces){var Ze=_j(Pe(this.pdf,this.fontFaces),Oe.map(function(st){return{family:st,stretch:"normal",weight:Ye,style:ht}}));this.pdf.setFont(Ze.ref.name,Ze.ref.style)}else{var ct="";(Ye==="bold"||parseInt(Ye,10)>=700||ht==="bold")&&(ct="bold"),ht==="italic"&&(ct+="italic"),ct.length===0&&(ct="normal");for(var yt="",xt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Lt=0;Lt<Oe.length;Lt++){if(this.pdf.internal.getFont(Oe[Lt],ct,{noFallback:!0,disableWarning:!0})!==void 0){yt=Oe[Lt];break}if(ct==="bolditalic"&&this.pdf.internal.getFont(Oe[Lt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)yt=Oe[Lt],ct="bold";else if(this.pdf.internal.getFont(Oe[Lt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){yt=Oe[Lt],ct="normal";break}}if(yt===""){for(var en=0;en<Oe.length;en++)if(xt[Oe[en]]){yt=xt[Oe[en]];break}}yt=yt===""?"Times":yt,this.pdf.setFont(yt,ct)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(pe){this.ctx.globalCompositeOperation=pe}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(pe){this.ctx.globalAlpha=pe}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(pe){this.ctx.lineDashOffset=pe,Fe.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(pe){this.ctx.lineDash=pe,Fe.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(pe){this.ctx.ignoreClearRect=!!pe}})};g.prototype.setLineDash=function(_){this.lineDash=_},g.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},g.prototype.fill=function(){J.call(this,"fill",!1)},g.prototype.stroke=function(){J.call(this,"stroke",!1)},g.prototype.beginPath=function(){this.path=[{type:"begin"}]},g.prototype.moveTo=function(_,k){if(isNaN(_)||isNaN(k))throw ln.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var F=this.ctx.transform.applyToPoint(new s(_,k));this.path.push({type:"mt",x:F.x,y:F.y}),this.ctx.lastPoint=new s(_,k)},g.prototype.closePath=function(){var _=new s(0,0),k=0;for(k=this.path.length-1;k!==-1;k--)if(this.path[k].type==="begin"&&nn(this.path[k+1])==="object"&&typeof this.path[k+1].x=="number"){_=new s(this.path[k+1].x,this.path[k+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(_.x,_.y)},g.prototype.lineTo=function(_,k){if(isNaN(_)||isNaN(k))throw ln.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var F=this.ctx.transform.applyToPoint(new s(_,k));this.path.push({type:"lt",x:F.x,y:F.y}),this.ctx.lastPoint=new s(F.x,F.y)},g.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),J.call(this,null,!0)},g.prototype.quadraticCurveTo=function(_,k,F,$){if(isNaN(F)||isNaN($)||isNaN(_)||isNaN(k))throw ln.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Z=this.ctx.transform.applyToPoint(new s(F,$)),re=this.ctx.transform.applyToPoint(new s(_,k));this.path.push({type:"qct",x1:re.x,y1:re.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new s(Z.x,Z.y)},g.prototype.bezierCurveTo=function(_,k,F,$,Z,re){if(isNaN(Z)||isNaN(re)||isNaN(_)||isNaN(k)||isNaN(F)||isNaN($))throw ln.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var se=this.ctx.transform.applyToPoint(new s(Z,re)),ae=this.ctx.transform.applyToPoint(new s(_,k)),Ee=this.ctx.transform.applyToPoint(new s(F,$));this.path.push({type:"bct",x1:ae.x,y1:ae.y,x2:Ee.x,y2:Ee.y,x:se.x,y:se.y}),this.ctx.lastPoint=new s(se.x,se.y)},g.prototype.arc=function(_,k,F,$,Z,re){if(isNaN(_)||isNaN(k)||isNaN(F)||isNaN($)||isNaN(Z))throw ln.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(re=!!re,!this.ctx.transform.isIdentity){var se=this.ctx.transform.applyToPoint(new s(_,k));_=se.x,k=se.y;var ae=this.ctx.transform.applyToPoint(new s(0,F)),Ee=this.ctx.transform.applyToPoint(new s(0,0));F=Math.sqrt(Math.pow(ae.x-Ee.x,2)+Math.pow(ae.y-Ee.y,2))}Math.abs(Z-$)>=2*Math.PI&&($=0,Z=2*Math.PI),this.path.push({type:"arc",x:_,y:k,radius:F,startAngle:$,endAngle:Z,counterclockwise:re})},g.prototype.arcTo=function(_,k,F,$,Z){throw new Error("arcTo not implemented.")},g.prototype.rect=function(_,k,F,$){if(isNaN(_)||isNaN(k)||isNaN(F)||isNaN($))throw ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,k),this.lineTo(_+F,k),this.lineTo(_+F,k+$),this.lineTo(_,k+$),this.lineTo(_,k),this.lineTo(_+F,k),this.lineTo(_,k)},g.prototype.fillRect=function(_,k,F,$){if(isNaN(_)||isNaN(k)||isNaN(F)||isNaN($))throw ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!m.call(this)){var Z={};this.lineCap!=="butt"&&(Z.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Z.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,k,F,$),this.fill(),Z.hasOwnProperty("lineCap")&&(this.lineCap=Z.lineCap),Z.hasOwnProperty("lineJoin")&&(this.lineJoin=Z.lineJoin)}},g.prototype.strokeRect=function(_,k,F,$){if(isNaN(_)||isNaN(k)||isNaN(F)||isNaN($))throw ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(_,k,F,$),this.stroke())},g.prototype.clearRect=function(_,k,F,$){if(isNaN(_)||isNaN(k)||isNaN(F)||isNaN($))throw ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,k,F,$))},g.prototype.save=function(_){_=typeof _!="boolean"||_;for(var k=this.pdf.internal.getCurrentPageInfo().pageNumber,F=0;F<this.pdf.internal.getNumberOfPages();F++)this.pdf.setPage(F+1),this.pdf.internal.out("q");if(this.pdf.setPage(k),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},g.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var k=this.pdf.internal.getCurrentPageInfo().pageNumber,F=0;F<this.pdf.internal.getNumberOfPages();F++)this.pdf.setPage(F+1),this.pdf.internal.out("Q");this.pdf.setPage(k),_&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},g.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var y=function(_){var k,F,$,Z;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))k=0,F=0,$=0,Z=0;else{var re=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(re!==null)k=parseInt(re[1]),F=parseInt(re[2]),$=parseInt(re[3]),Z=1;else if((re=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)k=parseInt(re[1]),F=parseInt(re[2]),$=parseInt(re[3]),Z=parseFloat(re[4]);else{if(Z=1,typeof _=="string"&&_.charAt(0)!=="#"){var se=new yA(_);_=se.ok?se.toHex():"#000000"}_.length===4?(k=_.substring(1,2),k+=k,F=_.substring(2,3),F+=F,$=_.substring(3,4),$+=$):(k=_.substring(1,3),F=_.substring(3,5),$=_.substring(5,7)),k=parseInt(k,16),F=parseInt(F,16),$=parseInt($,16)}}return{r:k,g:F,b:$,a:Z,style:_}},m=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};g.prototype.fillText=function(_,k,F,$){if(isNaN(k)||isNaN(F)||typeof _!="string")throw ln.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!m.call(this)){var Z=ne(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;L.call(this,{text:_,x:k,y:F,scale:re,angle:Z,align:this.textAlign,maxWidth:$})}},g.prototype.strokeText=function(_,k,F,$){if(isNaN(k)||isNaN(F)||typeof _!="string")throw ln.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){$=isNaN($)?void 0:$;var Z=ne(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;L.call(this,{text:_,x:k,y:F,scale:re,renderingMode:"stroke",angle:Z,align:this.textAlign,maxWidth:$})}},g.prototype.measureText=function(_){if(typeof _!="string")throw ln.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var k=this.pdf,F=this.pdf.internal.scaleFactor,$=k.internal.getFontSize(),Z=k.getStringUnitWidth(_)*$/k.internal.scaleFactor,re=function(se){var ae=(se=se||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ae}}),this};return new re({width:Z*=Math.round(96*F/72*1e4)/1e4})},g.prototype.scale=function(_,k){if(isNaN(_)||isNaN(k))throw ln.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var F=new u(_,0,0,k,0,0);this.ctx.transform=this.ctx.transform.multiply(F)},g.prototype.rotate=function(_){if(isNaN(_))throw ln.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var k=new u(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(k)},g.prototype.translate=function(_,k){if(isNaN(_)||isNaN(k))throw ln.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var F=new u(1,0,0,1,_,k);this.ctx.transform=this.ctx.transform.multiply(F)},g.prototype.transform=function(_,k,F,$,Z,re){if(isNaN(_)||isNaN(k)||isNaN(F)||isNaN($)||isNaN(Z)||isNaN(re))throw ln.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var se=new u(_,k,F,$,Z,re);this.ctx.transform=this.ctx.transform.multiply(se)},g.prototype.setTransform=function(_,k,F,$,Z,re){_=isNaN(_)?1:_,k=isNaN(k)?0:k,F=isNaN(F)?0:F,$=isNaN($)?1:$,Z=isNaN(Z)?0:Z,re=isNaN(re)?0:re,this.ctx.transform=new u(_,k,F,$,Z,re)};var D=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};g.prototype.drawImage=function(_,k,F,$,Z,re,se,ae,Ee){var Se=this.pdf.getImageProperties(_),ke=1,Pe=1,it=1,pe=1;$!==void 0&&ae!==void 0&&(it=ae/$,pe=Ee/Z,ke=Se.width/$*ae/$,Pe=Se.height/Z*Ee/Z),re===void 0&&(re=k,se=F,k=0,F=0),$!==void 0&&ae===void 0&&(ae=$,Ee=Z),$===void 0&&ae===void 0&&(ae=Se.width,Ee=Se.height);for(var j,ht=this.ctx.transform.decompose(),Ye=ne(ht.rotate.shx),Ie=new u,Me=(Ie=(Ie=(Ie=Ie.multiply(ht.translate)).multiply(ht.skew)).multiply(ht.scale)).applyToRectangle(new a(re-k*it,se-F*pe,$*ke,Z*Pe)),je=N.call(this,Me),Oe=[],Ze=0;Ze<je.length;Ze+=1)Oe.indexOf(je[Ze])===-1&&Oe.push(je[Ze]);if(B(Oe),this.autoPaging)for(var ct=Oe[0],yt=Oe[Oe.length-1],xt=ct;xt<yt+1;xt++){this.pdf.setPage(xt);var Lt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],en=xt===1?this.posY+this.margin[0]:this.margin[0],st=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],St=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Be=xt===1?0:st+(xt-2)*St;if(this.ctx.clip_path.length!==0){var pr=this.path;j=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(j,this.posX+this.margin[3],-Be+en+this.ctx.prevPageLastElemOffset),ie.call(this,"fill",!0),this.path=pr}var jt=JSON.parse(JSON.stringify(Me));jt=P([jt],this.posX+this.margin[3],-Be+en+this.ctx.prevPageLastElemOffset)[0];var Bi=(xt>ct||xt<yt)&&D.call(this);Bi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Lt,St,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",jt.x,jt.y,jt.w,jt.h,null,null,Ye),Bi&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(_,"JPEG",Me.x,Me.y,Me.w,Me.h,null,null,Ye)};var N=function(_,k,F){var $=[];k=k||this.pdf.internal.pageSize.width,F=F||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Z=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":$.push(Math.floor((_.y+Z)/F)+1);break;case"arc":$.push(Math.floor((_.y+Z-_.radius)/F)+1),$.push(Math.floor((_.y+Z+_.radius)/F)+1);break;case"qct":var re=he(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);$.push(Math.floor((re.y+Z)/F)+1),$.push(Math.floor((re.y+re.h+Z)/F)+1);break;case"bct":var se=ve(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);$.push(Math.floor((se.y+Z)/F)+1),$.push(Math.floor((se.y+se.h+Z)/F)+1);break;case"rect":$.push(Math.floor((_.y+Z)/F)+1),$.push(Math.floor((_.y+_.h+Z)/F)+1)}for(var ae=0;ae<$.length;ae+=1)for(;this.pdf.internal.getNumberOfPages()<$[ae];)I.call(this);return $},I=function(){var _=this.fillStyle,k=this.strokeStyle,F=this.font,$=this.lineCap,Z=this.lineWidth,re=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=k,this.font=F,this.lineCap=$,this.lineWidth=Z,this.lineJoin=re},P=function(_,k,F){for(var $=0;$<_.length;$++)switch(_[$].type){case"bct":_[$].x2+=k,_[$].y2+=F;case"qct":_[$].x1+=k,_[$].y1+=F;case"mt":case"lt":case"arc":default:_[$].x+=k,_[$].y+=F}return _},B=function(_){return _.sort(function(k,F){return k-F})},J=function(_,k){for(var F,$,Z=this.fillStyle,re=this.strokeStyle,se=this.lineCap,ae=this.lineWidth,Ee=Math.abs(ae*this.ctx.transform.scaleX),Se=this.lineJoin,ke=JSON.parse(JSON.stringify(this.path)),Pe=JSON.parse(JSON.stringify(this.path)),it=[],pe=0;pe<Pe.length;pe++)if(Pe[pe].x!==void 0)for(var j=N.call(this,Pe[pe]),ht=0;ht<j.length;ht+=1)it.indexOf(j[ht])===-1&&it.push(j[ht]);for(var Ye=0;Ye<it.length;Ye++)for(;this.pdf.internal.getNumberOfPages()<it[Ye];)I.call(this);if(B(it),this.autoPaging)for(var Ie=it[0],Me=it[it.length-1],je=Ie;je<Me+1;je++){this.pdf.setPage(je),this.fillStyle=Z,this.strokeStyle=re,this.lineCap=se,this.lineWidth=Ee,this.lineJoin=Se;var Oe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ze=je===1?this.posY+this.margin[0]:this.margin[0],ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],xt=je===1?0:ct+(je-2)*yt;if(this.ctx.clip_path.length!==0){var Lt=this.path;F=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(F,this.posX+this.margin[3],-xt+Ze+this.ctx.prevPageLastElemOffset),ie.call(this,_,!0),this.path=Lt}if($=JSON.parse(JSON.stringify(ke)),this.path=P($,this.posX+this.margin[3],-xt+Ze+this.ctx.prevPageLastElemOffset),k===!1||je===0){var en=(je>Ie||je<Me)&&D.call(this);en&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Oe,yt,null).clip().discardPath()),ie.call(this,_,k),en&&this.pdf.restoreGraphicsState()}this.lineWidth=ae}else this.lineWidth=Ee,ie.call(this,_,k),this.lineWidth=ae;this.path=ke},ie=function(_,k){if((_!=="stroke"||k||!C.call(this))&&(_==="stroke"||k||!m.call(this))){for(var F,$,Z=[],re=this.path,se=0;se<re.length;se++){var ae=re[se];switch(ae.type){case"begin":Z.push({begin:!0});break;case"close":Z.push({close:!0});break;case"mt":Z.push({start:ae,deltas:[],abs:[]});break;case"lt":var Ee=Z.length;if(re[se-1]&&!isNaN(re[se-1].x)&&(F=[ae.x-re[se-1].x,ae.y-re[se-1].y],Ee>0)){for(;Ee>=0;Ee--)if(Z[Ee-1].close!==!0&&Z[Ee-1].begin!==!0){Z[Ee-1].deltas.push(F),Z[Ee-1].abs.push(ae);break}}break;case"bct":F=[ae.x1-re[se-1].x,ae.y1-re[se-1].y,ae.x2-re[se-1].x,ae.y2-re[se-1].y,ae.x-re[se-1].x,ae.y-re[se-1].y],Z[Z.length-1].deltas.push(F);break;case"qct":var Se=re[se-1].x+2/3*(ae.x1-re[se-1].x),ke=re[se-1].y+2/3*(ae.y1-re[se-1].y),Pe=ae.x+2/3*(ae.x1-ae.x),it=ae.y+2/3*(ae.y1-ae.y),pe=ae.x,j=ae.y;F=[Se-re[se-1].x,ke-re[se-1].y,Pe-re[se-1].x,it-re[se-1].y,pe-re[se-1].x,j-re[se-1].y],Z[Z.length-1].deltas.push(F);break;case"arc":Z.push({deltas:[],abs:[],arc:!0}),Array.isArray(Z[Z.length-1].abs)&&Z[Z.length-1].abs.push(ae)}}$=k?null:_==="stroke"?"stroke":"fill";for(var ht=!1,Ye=0;Ye<Z.length;Ye++)if(Z[Ye].arc)for(var Ie=Z[Ye].abs,Me=0;Me<Ie.length;Me++){var je=Ie[Me];je.type==="arc"?H.call(this,je.x,je.y,je.radius,je.startAngle,je.endAngle,je.counterclockwise,void 0,k,!ht):W.call(this,je.x,je.y),ht=!0}else if(Z[Ye].close===!0)this.pdf.internal.out("h"),ht=!1;else if(Z[Ye].begin!==!0){var Oe=Z[Ye].start.x,Ze=Z[Ye].start.y;V.call(this,Z[Ye].deltas,Oe,Ze),ht=!0}$&&oe.call(this,$),k&&ge.call(this)}},me=function(_){var k=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,F=k*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-F;case"top":return _+k-F;case"hanging":return _+k-2*F;case"middle":return _+k/2-F;case"ideographic":return _;case"alphabetic":default:return _}},te=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};g.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(k,F){this.colorStops.push([k,F])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},g.prototype.createPattern=function(){return this.createLinearGradient()},g.prototype.createRadialGradient=function(){return this.createLinearGradient()};var H=function(_,k,F,$,Z,re,se,ae,Ee){for(var Se=ue.call(this,F,$,Z,re),ke=0;ke<Se.length;ke++){var Pe=Se[ke];ke===0&&(Ee?M.call(this,Pe.x1+_,Pe.y1+k):W.call(this,Pe.x1+_,Pe.y1+k)),le.call(this,_,k,Pe.x2,Pe.y2,Pe.x3,Pe.y3,Pe.x4,Pe.y4)}ae?ge.call(this):oe.call(this,se)},oe=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ge=function(){this.pdf.clip(),this.pdf.discardPath()},M=function(_,k){this.pdf.internal.out(n(_)+" "+r(k)+" m")},L=function(_){var k;switch(_.align){case"right":case"end":k="right";break;case"center":k="center";break;case"left":case"start":default:k="left"}var F=this.pdf.getTextDimensions(_.text),$=me.call(this,_.y),Z=te.call(this,$)-F.h,re=this.ctx.transform.applyToPoint(new s(_.x,$)),se=this.ctx.transform.decompose(),ae=new u;ae=(ae=(ae=ae.multiply(se.translate)).multiply(se.skew)).multiply(se.scale);for(var Ee,Se,ke,Pe=this.ctx.transform.applyToRectangle(new a(_.x,$,F.w,F.h)),it=ae.applyToRectangle(new a(_.x,Z,F.w,F.h)),pe=N.call(this,it),j=[],ht=0;ht<pe.length;ht+=1)j.indexOf(pe[ht])===-1&&j.push(pe[ht]);if(B(j),this.autoPaging)for(var Ye=j[0],Ie=j[j.length-1],Me=Ye;Me<Ie+1;Me++){this.pdf.setPage(Me);var je=Me===1?this.posY+this.margin[0]:this.margin[0],Oe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ze=this.pdf.internal.pageSize.height-this.margin[2],ct=Ze-this.margin[0],yt=this.pdf.internal.pageSize.width-this.margin[1],xt=yt-this.margin[3],Lt=Me===1?0:Oe+(Me-2)*ct;if(this.ctx.clip_path.length!==0){var en=this.path;Ee=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(Ee,this.posX+this.margin[3],-1*Lt+je),ie.call(this,"fill",!0),this.path=en}var st=P([JSON.parse(JSON.stringify(it))],this.posX+this.margin[3],-Lt+je+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*_.scale),ke=this.lineWidth,this.lineWidth=ke*_.scale);var St=this.autoPaging!=="text";if(St||st.y+st.h<=Ze){if(St||st.y>=je&&st.x<=yt){var Be=St?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||yt-st.x)[0],pr=P([JSON.parse(JSON.stringify(Pe))],this.posX+this.margin[3],-Lt+je+this.ctx.prevPageLastElemOffset)[0],jt=St&&(Me>Ye||Me<Ie)&&D.call(this);jt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xt,ct,null).clip().discardPath()),this.pdf.text(Be,pr.x,pr.y,{angle:_.angle,align:k,renderingMode:_.renderingMode}),jt&&this.pdf.restoreGraphicsState()}}else st.y<Ze&&(this.ctx.prevPageLastElemOffset+=Ze-st.y);_.scale>=.01&&(this.pdf.setFontSize(Se),this.lineWidth=ke)}else _.scale>=.01&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*_.scale),ke=this.lineWidth,this.lineWidth=ke*_.scale),this.pdf.text(_.text,re.x+this.posX,re.y+this.posY,{angle:_.angle,align:k,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(Se),this.lineWidth=ke)},W=function(_,k,F,$){F=F||0,$=$||0,this.pdf.internal.out(n(_+F)+" "+r(k+$)+" l")},V=function(_,k,F){return this.pdf.lines(_,k,F,null,null)},le=function(_,k,F,$,Z,re,se,ae){this.pdf.internal.out([t(i(F+_)),t(o($+k)),t(i(Z+_)),t(o(re+k)),t(i(se+_)),t(o(ae+k)),"c"].join(" "))},ue=function(_,k,F,$){for(var Z=2*Math.PI,re=Math.PI/2;k>F;)k-=Z;var se=Math.abs(F-k);se<Z&&$&&(se=Z-se);for(var ae=[],Ee=$?-1:1,Se=k;se>1e-5;){var ke=Se+Ee*Math.min(se,re);ae.push(fe.call(this,_,Se,ke)),se-=Math.abs(ke-Se),Se=ke}return ae},fe=function(_,k,F){var $=(F-k)/2,Z=_*Math.cos($),re=_*Math.sin($),se=Z,ae=-re,Ee=se*se+ae*ae,Se=Ee+se*Z+ae*re,ke=4/3*(Math.sqrt(2*Ee*Se)-Se)/(se*re-ae*Z),Pe=se-ke*ae,it=ae+ke*se,pe=Pe,j=-it,ht=$+k,Ye=Math.cos(ht),Ie=Math.sin(ht);return{x1:_*Math.cos(k),y1:_*Math.sin(k),x2:Pe*Ye-it*Ie,y2:Pe*Ie+it*Ye,x3:pe*Ye-j*Ie,y3:pe*Ie+j*Ye,x4:_*Math.cos(F),y4:_*Math.sin(F)}},ne=function(_){return 180*_/Math.PI},he=function(_,k,F,$,Z,re){var se=_+.5*(F-_),ae=k+.5*($-k),Ee=Z+.5*(F-Z),Se=re+.5*($-re),ke=Math.min(_,Z,se,Ee),Pe=Math.max(_,Z,se,Ee),it=Math.min(k,re,ae,Se),pe=Math.max(k,re,ae,Se);return new a(ke,it,Pe-ke,pe-it)},ve=function(_,k,F,$,Z,re,se,ae){var Ee,Se,ke,Pe,it,pe,j,ht,Ye,Ie,Me,je,Oe,Ze,ct=F-_,yt=$-k,xt=Z-F,Lt=re-$,en=se-Z,st=ae-re;for(Se=0;Se<41;Se++)Ye=(j=(ke=_+(Ee=Se/40)*ct)+Ee*((it=F+Ee*xt)-ke))+Ee*(it+Ee*(Z+Ee*en-it)-j),Ie=(ht=(Pe=k+Ee*yt)+Ee*((pe=$+Ee*Lt)-Pe))+Ee*(pe+Ee*(re+Ee*st-pe)-ht),Se==0?(Me=Ye,je=Ie,Oe=Ye,Ze=Ie):(Me=Math.min(Me,Ye),je=Math.min(je,Ie),Oe=Math.max(Oe,Ye),Ze=Math.max(Ze,Ie));return new a(Math.round(Me),Math.round(je),Math.round(Oe-Me),Math.round(Ze-je))},Fe=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,k,F=(_=this.ctx.lineDash,k=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:k}));this.prevLineDash!==F&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=F)}}})(rt.API),function(e){var t=function(o){var s,a,u,d,h,g,y,m,C,D;for(/[^\x00-\xFF]/.test(o),a=[],u=0,d=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;d>u;u+=4)(h=(o.charCodeAt(u)<<24)+(o.charCodeAt(u+1)<<16)+(o.charCodeAt(u+2)<<8)+o.charCodeAt(u+3))!==0?(g=(h=((h=((h=((h=(h-(D=h%85))/85)-(C=h%85))/85)-(m=h%85))/85)-(y=h%85))/85)%85,a.push(g+33,y+33,m+33,C+33,D+33)):a.push(122);return function(N,I){for(var P=I;P>0;P--)N.pop()}(a,s.length),String.fromCharCode.apply(String,a)+"~>"},n=function(o){var s,a,u,d,h,g=String,y="length",m=255,C="charCodeAt",D="slice",N="replace";for(o[D](-2),o=o[D](0,-2)[N](/\s/g,"")[N]("z","!!!!!"),u=[],d=0,h=(o+=s="uuuuu"[D](o[y]%5||5))[y];h>d;d+=5)a=52200625*(o[C](d)-33)+614125*(o[C](d+1)-33)+7225*(o[C](d+2)-33)+85*(o[C](d+3)-33)+(o[C](d+4)-33),u.push(m&a>>24,m&a>>16,m&a>>8,m&a);return function(I,P){for(var B=P;B>0;B--)I.pop()}(u,s[y]),g.fromCharCode.apply(g,u)},r=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var a="",u=0;u<o.length;u+=2)a+=String.fromCharCode("0x"+(o[u]+o[u+1]));return a},i=function(o){for(var s=new Uint8Array(o.length),a=o.length;a--;)s[a]=o.charCodeAt(a);return o=(s=Cg(s)).reduce(function(u,d){return u+String.fromCharCode(d)},"")};e.processDataByFilters=function(o,s){var a=0,u=o||"",d=[];for(typeof(s=s||[])=="string"&&(s=[s]),a=0;a<s.length;a+=1)switch(s[a]){case"ASCII85Decode":case"/ASCII85Decode":u=n(u),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=t(u),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=r(u),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=u.split("").map(function(h){return("0"+h.charCodeAt().toString(16)).slice(-2)}).join("")+">",d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=i(u),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[a]+'" is not implemented')}return{data:u,reverseChain:d.reverse().join(" ")}}}(rt.API),function(e){e.loadFile=function(t,n,r){return function(i,o,s){o=o!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=function(u,d,h){var g=new XMLHttpRequest,y=0,m=function(C){var D=C.length,N=[],I=String.fromCharCode;for(y=0;y<D;y+=1)N.push(I(255&C.charCodeAt(y)));return N.join("")};if(g.open("GET",u,!d),g.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(g.onload=function(){g.status===200?h(m(this.responseText)):h(void 0)}),g.send(null),d&&g.status===200)return m(g.responseText)}(i,o,s)}catch{}return a}(t,n,r)},e.loadImageFile=e.loadFile}(rt.API),function(e){function t(){return(ot.html2canvas?Promise.resolve(ot.html2canvas):import("./chunk-63KBKFFJ.js")).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function n(){return(ot.DOMPurify?Promise.resolve(ot.DOMPurify):import("./chunk-R4CLOQ6U.js")).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var a=nn(s);return a==="undefined"?"undefined":a==="string"||s instanceof String?"string":a==="number"||s instanceof Number?"number":a==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":a==="object"?"object":"unknown"},i=function(s,a){var u=document.createElement(s);for(var d in a.className&&(u.className=a.className),a.innerHTML&&a.dompurify&&(u.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)u.style[d]=a.style[d];return u},o=function s(a){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),d=s.convert(Promise.resolve(),u);return d=(d=d.setProgress(1,s,1,[s])).set(a)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,a){return s.__proto__=a||o.prototype,s},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(s,a){return this.then(function(){switch(a=a||function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s)){case"string":return this.then(n).then(function(u){return this.set({src:i("div",{innerHTML:s,dompurify:u})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=function u(d,h){for(var g=d.nodeType===3?document.createTextNode(d.nodeValue):d.cloneNode(!1),y=d.firstChild;y;y=y.nextSibling)h!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||g.appendChild(u(y,h));return d.nodeType===1&&(d.nodeName==="CANVAS"?(g.width=d.width,g.height=d.height,g.getContext("2d").drawImage(d,0,0)):d.nodeName!=="TEXTAREA"&&d.nodeName!=="SELECT"||(g.value=d.value),g.addEventListener("load",function(){g.scrollTop=d.scrollTop,g.scrollLeft=d.scrollLeft},!0)),g}(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(a){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,a(this.prop.container,u)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(a){var u=this.opt.jsPDF,d=this.opt.fontFaces,h=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,g=Object.assign({async:!0,allowTaint:!0,scale:h,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete g.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=d,d)for(var y=0;y<d.length;++y){var m=d[y],C=m.src.find(function(D){return D.format==="truetype"});C&&u.addFont(C.url,m.ref.name,m.ref.style)}return g.windowHeight=g.windowHeight||0,g.windowHeight=g.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):g.windowHeight,u.context2d.save(!0),a(this.prop.container,g)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,a,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(s,a):this.outputPdf(s,a)},o.prototype.outputPdf=function(s,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,a)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var a=Object.keys(s||{}).map(function(u){if(u in o.template.prop)return function(){this.prop[u]=s[u]};switch(u){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[u]=s[u]}}},this);return this.then(function(){return this.thenList(a)})},o.prototype.get=function(s,a){return this.then(function(){var u=s in o.template.prop?this.prop[s]:this.opt[s];return a?a(u):u})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function a(u,d){return Math.floor(u*d/72*96)}return this.then(function(){(s=s||rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:a(s.inner.width,s.k),height:a(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,a,u,d){return s!=null&&(this.progress.val=s),a!=null&&(this.progress.state=a),u!=null&&(this.progress.n=u),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,a,u,d){return this.setProgress(s?this.progress.val+s:null,a||null,u?this.progress.n+u:null,d?this.progress.stack.concat(d):null)},o.prototype.then=function(s,a){var u=this;return this.thenCore(s,a,function(d,h){return u.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(g){return u.updateProgress(null,d),g}).then(d,h).then(function(g){return u.updateProgress(1),g})})},o.prototype.thenCore=function(s,a,u){u=u||Promise.prototype.then,s&&(s=s.bind(this)),a&&(a=a.bind(this));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:o.convert(Object.assign({},this),Promise.prototype),h=u.call(d,s,a);return o.convert(h,this.__proto__)},o.prototype.thenExternal=function(s,a){return Promise.prototype.then.call(this,s,a)},o.prototype.thenList=function(s){var a=this;return s.forEach(function(u){a=a.thenCore(u)}),a},o.prototype.catch=function(s){s&&(s=s.bind(this));var a=Promise.prototype.catch.call(this,s);return o.convert(a,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,rt.getPageSize=function(s,a,u){if(nn(s)==="object"){var d=s;s=d.orientation,a=d.unit||a,u=d.format||u}a=a||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var h,g=(""+u).toLowerCase(),y={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(a){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+a}var m,C=0,D=0;if(y.hasOwnProperty(g))C=y[g][1]/h,D=y[g][0]/h;else try{C=u[1],D=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",D>C&&(m=D,D=C,C=m);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",C>D&&(m=D,D=C,C=m)}return{width:D,height:C,unit:a,k:h,orientation:s}},e.html=function(s,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(Dw):null;var u=new o(a);return a.worker?u:u.from(s).doCallback()}}(rt.API),rt.API.addJS=function(e){return dA=e,this.internal.events.subscribe("postPutResources",function(){Sg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Sg+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),lA=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+dA+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Sg!==void 0&&lA!==void 0&&this.internal.out("/Names <</JavaScript "+Sg+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var n=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=n.outline.render().split(/\r\n/),o=0;o<i.length;o++){var s=i[o],a=r.exec(s);if(a!=null){var u=a[1];n.internal.newObjectDeferredBegin(u,!1)}n.internal.write(s)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,h=[];for(o=0;o<d;o++){var g=n.internal.newObject();h.push(g);var y=n.internal.getPageInfo(o+1);n.internal.write("<< /D["+y.objId+" 0 R /XYZ null null null]>> endobj")}var m=n.internal.newObject();for(n.internal.write("<< /Names [ "),o=0;o<h.length;o++)n.internal.write("(page_"+(o+1)+")"+h[o]+" 0 R");n.internal.write(" ] >>","endobj"),t=n.internal.newObject(),n.internal.write("<< /Dests "+m+" 0 R"),n.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var n=this;n.outline={createNamedDestinations:!1,root:{children:[]}},n.outline.add=function(r,i,o){var s={title:i,options:o,children:[]};return r==null&&(r=this.root),r.children.push(s),s},n.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=n,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},n.outline.genIds_r=function(r){r.id=n.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},n.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},n.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var s=r.children[o];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var u=n.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},n.outline.line=function(r){this.ctx.val+=r+`\r
`},n.outline.makeRef=function(r){return r.id+" 0 R"},n.outline.makeString=function(r){return"("+n.internal.pdfEscape(r)+")"},n.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},n.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},n.outline.count_r=function(r,i){for(var o=0;o<i.children.length;o++)r.count++,this.count_r(r,i.children[o]);return r.count}}])}(rt.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(n,r,i,o,s,a){var u,d=this.decode.DCT_DECODE,h=null;if(typeof n=="string"||this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n)){switch(n=s||n,n=this.__addimage__.isArrayBuffer(n)?new Uint8Array(n):n,(u=function(g){for(var y,m=256*g.charCodeAt(4)+g.charCodeAt(5),C=g.length,D={width:0,height:0,numcomponents:1},N=4;N<C;N+=2){if(N+=m,t.indexOf(g.charCodeAt(N+1))!==-1){y=256*g.charCodeAt(N+5)+g.charCodeAt(N+6),D={width:256*g.charCodeAt(N+7)+g.charCodeAt(N+8),height:y,numcomponents:g.charCodeAt(N+9)};break}m=256*g.charCodeAt(N+2)+g.charCodeAt(N+3)}return D}(n=this.__addimage__.isArrayBufferView(n)?this.__addimage__.arrayBufferToBinaryString(n):n)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}h={data:n,width:u.width,height:u.height,colorSpace:a,bitsPerComponent:8,filter:d,index:r,alias:i}}return h}}(rt.API);var nl,_g,fA,hA,pA,Nj=function(){var e,t,n;function r(o){var s,a,u,d,h,g,y,m,C,D,N,I,P,B;for(this.data=o,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},g=null;;){switch(s=this.readUInt32(),C=function(){var J,ie;for(ie=[],J=0;J<4;++J)ie.push(String.fromCharCode(this.data[this.pos++]));return ie}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(s);break;case"fcTL":g&&this.animation.frames.push(g),this.pos+=4,g={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},h=this.readUInt16(),d=this.readUInt16()||100,g.delay=1e3*h/d,g.disposeOp=this.data[this.pos++],g.blendOp=this.data[this.pos++],g.data=[];break;case"IDAT":case"fdAT":for(C==="fdAT"&&(this.pos+=4,s-=4),o=g?.data||this.imgData,I=0;0<=s?I<s:I>s;0<=s?++I:--I)o.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(u=this.palette.length/3,this.transparency.indexed=this.read(s),this.transparency.indexed.length>u)throw new Error("More transparent colors than palette size");if((D=u-this.transparency.indexed.length)>0)for(P=0;0<=D?P<D:P>D;0<=D?++P:--P)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":y=(N=this.read(s)).indexOf(0),m=String.fromCharCode.apply(String,N.slice(0,y)),this.text[m]=String.fromCharCode.apply(String,N.slice(y+1));break;case"IEND":return g&&this.animation.frames.push(g),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(B=this.colorType)===4||B===6,a=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*a,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(o){var s,a;for(a=[],s=0;0<=o?s<o:s>o;0<=o?++s:--s)a.push(this.data[this.pos++]);return a},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(o){var s=this.pixelBitlength/8,a=new Uint8Array(this.width*this.height*s),u=0,d=this;if(o==null&&(o=this.imgData),o.length===0)return new Uint8Array(0);function h(g,y,m,C){var D,N,I,P,B,J,ie,me,te,H,oe,ge,M,L,W,V,le,ue,fe,ne,he,ve=Math.ceil((d.width-g)/m),Fe=Math.ceil((d.height-y)/C),_=d.width==ve&&d.height==Fe;for(L=s*ve,ge=_?a:new Uint8Array(L*Fe),J=o.length,M=0,N=0;M<Fe&&u<J;){switch(o[u++]){case 0:for(P=le=0;le<L;P=le+=1)ge[N++]=o[u++];break;case 1:for(P=ue=0;ue<L;P=ue+=1)D=o[u++],B=P<s?0:ge[N-s],ge[N++]=(D+B)%256;break;case 2:for(P=fe=0;fe<L;P=fe+=1)D=o[u++],I=(P-P%s)/s,W=M&&ge[(M-1)*L+I*s+P%s],ge[N++]=(W+D)%256;break;case 3:for(P=ne=0;ne<L;P=ne+=1)D=o[u++],I=(P-P%s)/s,B=P<s?0:ge[N-s],W=M&&ge[(M-1)*L+I*s+P%s],ge[N++]=(D+Math.floor((B+W)/2))%256;break;case 4:for(P=he=0;he<L;P=he+=1)D=o[u++],I=(P-P%s)/s,B=P<s?0:ge[N-s],M===0?W=V=0:(W=ge[(M-1)*L+I*s+P%s],V=I&&ge[(M-1)*L+(I-1)*s+P%s]),ie=B+W-V,me=Math.abs(ie-B),H=Math.abs(ie-W),oe=Math.abs(ie-V),te=me<=H&&me<=oe?B:H<=oe?W:V,ge[N++]=(D+te)%256;break;default:throw new Error("Invalid filter algorithm: "+o[u-1])}if(!_){var k=((y+M*C)*d.width+g)*s,F=M*L;for(P=0;P<ve;P+=1){for(var $=0;$<s;$+=1)a[k++]=ge[F++];k+=(m-1)*s}}M++}}return o=eA(o),d.interlaceMethod==1?(h(0,0,8,8),h(4,0,8,8),h(0,4,4,8),h(2,0,4,4),h(0,2,2,4),h(1,0,2,2),h(0,1,1,2)):h(0,0,1,1),a},r.prototype.decodePalette=function(){var o,s,a,u,d,h,g,y,m;for(a=this.palette,h=this.transparency.indexed||[],d=new Uint8Array((h.length||0)+a.length),u=0,o=0,s=g=0,y=a.length;g<y;s=g+=3)d[u++]=a[s],d[u++]=a[s+1],d[u++]=a[s+2],d[u++]=(m=h[o++])!=null?m:255;return d},r.prototype.copyToImageData=function(o,s){var a,u,d,h,g,y,m,C,D,N,I;if(u=this.colors,D=null,a=this.hasAlphaChannel,this.palette.length&&(D=(I=this._decodedPalette)!=null?I:this._decodedPalette=this.decodePalette(),u=4,a=!0),C=(d=o.data||o).length,g=D||s,h=y=0,u===1)for(;h<C;)m=D?4*s[h/4]:y,N=g[m++],d[h++]=N,d[h++]=N,d[h++]=N,d[h++]=a?g[m++]:255,y=m;else for(;h<C;)m=D?4*s[h/4]:y,d[h++]=g[m++],d[h++]=g[m++],d[h++]=g[m++],d[h++]=a?g[m++]:255,y=m},r.prototype.decode=function(){var o;return o=new Uint8Array(this.width*this.height*4),this.copyToImageData(o,this.decodePixels()),o};var i=function(){if(Object.prototype.toString.call(ot)==="[object Window]"){try{t=ot.document.createElement("canvas"),n=t.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(o){var s;if(i()===!0)return n.width=o.width,n.height=o.height,n.clearRect(0,0,o.width,o.height),n.putImageData(o,0,0),(s=new Image).src=t.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(o){var s,a,u,d,h,g,y,m;if(this.animation){for(m=[],a=h=0,g=(y=this.animation.frames).length;h<g;a=++h)s=y[a],u=o.createImageData(s.width,s.height),d=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(u,d),s.imageData=u,m.push(s.image=e(u));return m}},r.prototype.renderFrame=function(o,s){var a,u,d;return a=(u=this.animation.frames)[s],d=u[s-1],s===0&&o.clearRect(0,0,this.width,this.height),d?.disposeOp===1?o.clearRect(d.xOffset,d.yOffset,d.width,d.height):d?.disposeOp===2&&o.putImageData(d.imageData,d.xOffset,d.yOffset),a.blendOp===0&&o.clearRect(a.xOffset,a.yOffset,a.width,a.height),o.drawImage(a.image,a.xOffset,a.yOffset)},r.prototype.animate=function(o){var s,a,u,d,h,g,y=this;return a=0,g=this.animation,d=g.numFrames,u=g.frames,h=g.numPlays,(s=function(){var m,C;if(m=a++%d,C=u[m],y.renderFrame(o,m),d>1&&a/d<h)return y.animation._timeout=setTimeout(s,C.delay)})()},r.prototype.stopAnimation=function(){var o;return clearTimeout((o=this.animation)!=null?o._timeout:void 0)},r.prototype.render=function(o){var s,a;return o._png&&o._png.stopAnimation(),o._png=this,o.width=this.width,o.height=this.height,s=o.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(a=s.createImageData(this.width,this.height),this.copyToImageData(a,this.decodePixels()),s.putImageData(a,0,0))},r}();function Mj(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,s=1<<(7&i)+1;e[t++],e[t++];var a=null,u=null;o&&(a=t,u=s,t+=3*s);var d=!0,h=[],g=0,y=null,m=0,C=null;for(this.width=n,this.height=r;d&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,C=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((M=e[t++])>=0))throw Error("Invalid block size");if(M===0)break;t+=M}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var D=e[t++];g=e[t++]|e[t++]<<8,y=e[t++],!(1&D)&&(y=null),m=D>>2&7,t++;break;case 254:for(;;){if(!((M=e[t++])>=0))throw Error("Invalid block size");if(M===0)break;t+=M}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var N=e[t++]|e[t++]<<8,I=e[t++]|e[t++]<<8,P=e[t++]|e[t++]<<8,B=e[t++]|e[t++]<<8,J=e[t++],ie=J>>6&1,me=1<<(7&J)+1,te=a,H=u,oe=!1;J>>7&&(oe=!0,te=t,H=me,t+=3*me);var ge=t;for(t++;;){var M;if(!((M=e[t++])>=0))throw Error("Invalid block size");if(M===0)break;t+=M}h.push({x:N,y:I,width:P,height:B,has_local_palette:oe,palette_offset:te,palette_size:H,data_offset:ge,data_length:t-ge,transparent_index:y,interlaced:!!ie,delay:g,disposal:m});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return C},this.frameInfo=function(L){if(L<0||L>=h.length)throw new Error("Frame index out of range.");return h[L]},this.decodeAndBlitFrameBGRA=function(L,W){var V=this.frameInfo(L),le=V.width*V.height,ue=new Uint8Array(le);mA(e,V.data_offset,ue,le);var fe=V.palette_offset,ne=V.transparent_index;ne===null&&(ne=256);var he=V.width,ve=n-he,Fe=he,_=4*(V.y*n+V.x),k=4*((V.y+V.height)*n+V.x),F=_,$=4*ve;V.interlaced===!0&&($+=4*n*7);for(var Z=8,re=0,se=ue.length;re<se;++re){var ae=ue[re];if(Fe===0&&(Fe=he,(F+=$)>=k&&($=4*ve+4*n*(Z-1),F=_+(he+ve)*(Z<<1),Z>>=1)),ae===ne)F+=4;else{var Ee=e[fe+3*ae],Se=e[fe+3*ae+1],ke=e[fe+3*ae+2];W[F++]=ke,W[F++]=Se,W[F++]=Ee,W[F++]=255}--Fe}},this.decodeAndBlitFrameRGBA=function(L,W){var V=this.frameInfo(L),le=V.width*V.height,ue=new Uint8Array(le);mA(e,V.data_offset,ue,le);var fe=V.palette_offset,ne=V.transparent_index;ne===null&&(ne=256);var he=V.width,ve=n-he,Fe=he,_=4*(V.y*n+V.x),k=4*((V.y+V.height)*n+V.x),F=_,$=4*ve;V.interlaced===!0&&($+=4*n*7);for(var Z=8,re=0,se=ue.length;re<se;++re){var ae=ue[re];if(Fe===0&&(Fe=he,(F+=$)>=k&&($=4*ve+4*n*(Z-1),F=_+(he+ve)*(Z<<1),Z>>=1)),ae===ne)F+=4;else{var Ee=e[fe+3*ae],Se=e[fe+3*ae+1],ke=e[fe+3*ae+2];W[F++]=Ee,W[F++]=Se,W[F++]=ke,W[F++]=255}--Fe}}}function mA(e,t,n,r){for(var i=e[t++],o=1<<i,s=o+1,a=s+1,u=i+1,d=(1<<u)-1,h=0,g=0,y=0,m=e[t++],C=new Int32Array(4096),D=null;;){for(;h<16&&m!==0;)g|=e[t++]<<h,h+=8,m===1?m=e[t++]:--m;if(h<u)break;var N=g&d;if(g>>=u,h-=u,N!==o){if(N===s)break;for(var I=N<a?N:D,P=0,B=I;B>o;)B=C[B]>>8,++P;var J=B;if(y+P+(I!==N?1:0)>r)return void ln.log("Warning, gif stream longer than expected.");n[y++]=J;var ie=y+=P;for(I!==N&&(n[y++]=J),B=I;P--;)B=C[B],n[--ie]=255&B,B>>=8;D!==null&&a<4096&&(C[a++]=D<<8|J,a>=d+1&&u<12&&(++u,d=d<<1|1)),D=N}else a=s+1,d=(1<<(u=i+1))-1,D=null}return y!==r&&ln.log("Warning, gif stream shorter than expected."),n}function mw(e){var t,n,r,i,o,s=Math.floor,a=new Array(64),u=new Array(64),d=new Array(64),h=new Array(64),g=new Array(65535),y=new Array(65535),m=new Array(64),C=new Array(64),D=[],N=0,I=7,P=new Array(64),B=new Array(64),J=new Array(64),ie=new Array(256),me=new Array(2048),te=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],H=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],oe=[0,1,2,3,4,5,6,7,8,9,10,11],ge=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],M=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],le=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ue(_,k){for(var F=0,$=0,Z=new Array,re=1;re<=16;re++){for(var se=1;se<=_[re];se++)Z[k[$]]=[],Z[k[$]][0]=F,Z[k[$]][1]=re,$++,F++;F*=2}return Z}function fe(_){for(var k=_[0],F=_[1]-1;F>=0;)k&1<<F&&(N|=1<<I),F--,--I<0&&(N==255?(ne(255),ne(0)):ne(N),I=7,N=0)}function ne(_){D.push(_)}function he(_){ne(_>>8&255),ne(255&_)}function ve(_,k,F,$,Z){for(var re,se=Z[0],ae=Z[240],Ee=function(Ie,Me){var je,Oe,Ze,ct,yt,xt,Lt,en,st,St,Be=0;for(st=0;st<8;++st){je=Ie[Be],Oe=Ie[Be+1],Ze=Ie[Be+2],ct=Ie[Be+3],yt=Ie[Be+4],xt=Ie[Be+5],Lt=Ie[Be+6];var pr=je+(en=Ie[Be+7]),jt=je-en,Bi=Oe+Lt,sn=Oe-Lt,vn=Ze+xt,bo=Ze-xt,zt=ct+yt,Pa=ct-yt,Cn=pr+zt,Vi=pr-zt,Qo=Bi+vn,xn=Bi-vn;Ie[Be]=Cn+Qo,Ie[Be+4]=Cn-Qo;var lt=.707106781*(xn+Vi);Ie[Be+2]=Vi+lt,Ie[Be+6]=Vi-lt;var qt=.382683433*((Cn=Pa+bo)-(xn=sn+jt)),La=.5411961*Cn+qt,ir=1.306562965*xn+qt,wo=.707106781*(Qo=bo+sn),Do=jt+wo,tt=jt-wo;Ie[Be+5]=tt+La,Ie[Be+3]=tt-La,Ie[Be+1]=Do+ir,Ie[Be+7]=Do-ir,Be+=8}for(Be=0,st=0;st<8;++st){je=Ie[Be],Oe=Ie[Be+8],Ze=Ie[Be+16],ct=Ie[Be+24],yt=Ie[Be+32],xt=Ie[Be+40],Lt=Ie[Be+48];var Ui=je+(en=Ie[Be+56]),Co=je-en,kr=Oe+Lt,zn=Oe-Lt,Rn=Ze+xt,ti=Ze-xt,Eu=ct+yt,Ko=ct-yt,Hi=Ui+Eu,$i=Ui-Eu,zi=kr+Rn,xo=kr-Rn;Ie[Be]=Hi+zi,Ie[Be+32]=Hi-zi;var pi=.707106781*(xo+$i);Ie[Be+16]=$i+pi,Ie[Be+48]=$i-pi;var Io=.382683433*((Hi=Ko+ti)-(xo=zn+Co)),Oa=.5411961*Hi+Io,Au=1.306562965*xo+Io,Nu=.707106781*(zi=ti+zn),Mu=Co+Nu,Tu=Co-Nu;Ie[Be+40]=Tu+Oa,Ie[Be+24]=Tu-Oa,Ie[Be+8]=Mu+Au,Ie[Be+56]=Mu-Au,Be++}for(st=0;st<64;++st)St=Ie[st]*Me[st],m[st]=St>0?St+.5|0:St-.5|0;return m}(_,k),Se=0;Se<64;++Se)C[te[Se]]=Ee[Se];var ke=C[0]-F;F=C[0],ke==0?fe($[0]):(fe($[y[re=32767+ke]]),fe(g[re]));for(var Pe=63;Pe>0&&C[Pe]==0;)Pe--;if(Pe==0)return fe(se),F;for(var it,pe=1;pe<=Pe;){for(var j=pe;C[pe]==0&&pe<=Pe;)++pe;var ht=pe-j;if(ht>=16){it=ht>>4;for(var Ye=1;Ye<=it;++Ye)fe(ae);ht&=15}re=32767+C[pe],fe(Z[(ht<<4)+y[re]]),fe(g[re]),pe++}return Pe!=63&&fe(se),F}function Fe(_){_=Math.min(Math.max(_,1),100),o!=_&&(function(k){for(var F=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],$=0;$<64;$++){var Z=s((F[$]*k+50)/100);Z=Math.min(Math.max(Z,1),255),a[te[$]]=Z}for(var re=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],se=0;se<64;se++){var ae=s((re[se]*k+50)/100);ae=Math.min(Math.max(ae,1),255),u[te[se]]=ae}for(var Ee=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Se=0,ke=0;ke<8;ke++)for(var Pe=0;Pe<8;Pe++)d[Se]=1/(a[te[Se]]*Ee[ke]*Ee[Pe]*8),h[Se]=1/(u[te[Se]]*Ee[ke]*Ee[Pe]*8),Se++}(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),o=_)}this.encode=function(_,k){k&&Fe(k),D=new Array,N=0,I=7,he(65496),he(65504),he(16),ne(74),ne(70),ne(73),ne(70),ne(0),ne(1),ne(1),ne(0),he(1),he(1),ne(0),ne(0),function(){he(65499),he(132),ne(0);for(var Oe=0;Oe<64;Oe++)ne(a[Oe]);ne(1);for(var Ze=0;Ze<64;Ze++)ne(u[Ze])}(),function(Oe,Ze){he(65472),he(17),ne(8),he(Ze),he(Oe),ne(3),ne(1),ne(17),ne(0),ne(2),ne(17),ne(1),ne(3),ne(17),ne(1)}(_.width,_.height),function(){he(65476),he(418),ne(0);for(var Oe=0;Oe<16;Oe++)ne(H[Oe+1]);for(var Ze=0;Ze<=11;Ze++)ne(oe[Ze]);ne(16);for(var ct=0;ct<16;ct++)ne(ge[ct+1]);for(var yt=0;yt<=161;yt++)ne(M[yt]);ne(1);for(var xt=0;xt<16;xt++)ne(L[xt+1]);for(var Lt=0;Lt<=11;Lt++)ne(W[Lt]);ne(17);for(var en=0;en<16;en++)ne(V[en+1]);for(var st=0;st<=161;st++)ne(le[st])}(),he(65498),he(12),ne(3),ne(1),ne(0),ne(2),ne(17),ne(3),ne(17),ne(0),ne(63),ne(0);var F=0,$=0,Z=0;N=0,I=7,this.encode.displayName="_encode_";for(var re,se,ae,Ee,Se,ke,Pe,it,pe,j=_.data,ht=_.width,Ye=_.height,Ie=4*ht,Me=0;Me<Ye;){for(re=0;re<Ie;){for(Se=Ie*Me+re,Pe=-1,it=0,pe=0;pe<64;pe++)ke=Se+(it=pe>>3)*Ie+(Pe=4*(7&pe)),Me+it>=Ye&&(ke-=Ie*(Me+1+it-Ye)),re+Pe>=Ie&&(ke-=re+Pe-Ie+4),se=j[ke++],ae=j[ke++],Ee=j[ke++],P[pe]=(me[se]+me[ae+256>>0]+me[Ee+512>>0]>>16)-128,B[pe]=(me[se+768>>0]+me[ae+1024>>0]+me[Ee+1280>>0]>>16)-128,J[pe]=(me[se+1280>>0]+me[ae+1536>>0]+me[Ee+1792>>0]>>16)-128;F=ve(P,d,F,t,r),$=ve(B,h,$,n,i),Z=ve(J,h,Z,n,i),re+=32}Me+=8}if(I>=0){var je=[];je[1]=I+1,je[0]=(1<<I+1)-1,fe(je)}return he(65497),new Uint8Array(D)},e=e||50,function(){for(var _=String.fromCharCode,k=0;k<256;k++)ie[k]=_(k)}(),t=ue(H,oe),n=ue(L,W),r=ue(ge,M),i=ue(V,le),function(){for(var _=1,k=2,F=1;F<=15;F++){for(var $=_;$<k;$++)y[32767+$]=F,g[32767+$]=[],g[32767+$][1]=F,g[32767+$][0]=$;for(var Z=-(k-1);Z<=-_;Z++)y[32767+Z]=F,g[32767+Z]=[],g[32767+Z][1]=F,g[32767+Z][0]=k-1+Z;_<<=1,k<<=1}}(),function(){for(var _=0;_<256;_++)me[_]=19595*_,me[_+256>>0]=38470*_,me[_+512>>0]=7471*_+32768,me[_+768>>0]=-11059*_,me[_+1024>>0]=-21709*_,me[_+1280>>0]=32768*_+8421375,me[_+1536>>0]=-27439*_,me[_+1792>>0]=-5329*_}(),Fe(e)}function po(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function gA(e){function t(H){if(!H)throw Error("assert :P")}function n(H,oe,ge){for(var M=0;4>M;M++)if(H[oe+M]!=ge.charCodeAt(M))return!0;return!1}function r(H,oe,ge,M,L){for(var W=0;W<L;W++)H[oe+W]=ge[M+W]}function i(H,oe,ge,M){for(var L=0;L<M;L++)H[oe+L]=ge}function o(H){return new Int32Array(H)}function s(H,oe){for(var ge=[],M=0;M<H;M++)ge.push(new oe);return ge}function a(H,oe){var ge=[];return function M(L,W,V){for(var le=V[W],ue=0;ue<le&&(L.push(V.length>W+1?[]:new oe),!(V.length<W+1));ue++)M(L[ue],W+1,V)}(ge,0,H),ge}var u=function(){var H=this;function oe(c,l){for(var p=1<<l-1>>>0;c&p;)p>>>=1;return p?(c&p-1)+p:c}function ge(c,l,p,v,b){t(!(v%p));do c[l+(v-=p)]=b;while(0<v)}function M(c,l,p,v,b){if(t(2328>=b),512>=b)var x=o(512);else if((x=o(b))==null)return 0;return function(S,E,A,O,z,X){var ee,Y,we=E,ce=1<<A,q=o(16),G=o(16);for(t(z!=0),t(O!=null),t(S!=null),t(0<A),Y=0;Y<z;++Y){if(15<O[Y])return 0;++q[O[Y]]}if(q[0]==z)return 0;for(G[1]=0,ee=1;15>ee;++ee){if(q[ee]>1<<ee)return 0;G[ee+1]=G[ee]+q[ee]}for(Y=0;Y<z;++Y)ee=O[Y],0<O[Y]&&(X[G[ee]++]=Y);if(G[15]==1)return(O=new L).g=0,O.value=X[0],ge(S,we,1,ce,O),ce;var ye,De=-1,be=ce-1,Ue=0,Te=1,Je=1,Le=1<<A;for(Y=0,ee=1,z=2;ee<=A;++ee,z<<=1){if(Te+=Je<<=1,0>(Je-=q[ee]))return 0;for(;0<q[ee];--q[ee])(O=new L).g=ee,O.value=X[Y++],ge(S,we+Ue,z,Le,O),Ue=oe(Ue,ee)}for(ee=A+1,z=2;15>=ee;++ee,z<<=1){if(Te+=Je<<=1,0>(Je-=q[ee]))return 0;for(;0<q[ee];--q[ee]){if(O=new L,(Ue&be)!=De){for(we+=Le,ye=1<<(De=ee)-A;15>De&&!(0>=(ye-=q[De]));)++De,ye<<=1;ce+=Le=1<<(ye=De-A),S[E+(De=Ue&be)].g=ye+A,S[E+De].value=we-E-De}O.g=ee-A,O.value=X[Y++],ge(S,we+(Ue>>A),z,Le,O),Ue=oe(Ue,ee)}}return Te!=2*G[15]-1?0:ce}(c,l,p,v,b,x)}function L(){this.value=this.g=0}function W(){this.value=this.g=0}function V(){this.G=s(5,L),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(or,W)}function le(c,l,p,v){t(c!=null),t(l!=null),t(2147483648>v),c.Ca=254,c.I=0,c.b=-8,c.Ka=0,c.oa=l,c.pa=p,c.Jd=l,c.Yc=p+v,c.Zc=4<=v?p+v-4+1:p,re(c)}function ue(c,l){for(var p=0;0<l--;)p|=ae(c,128)<<l;return p}function fe(c,l){var p=ue(c,l);return se(c)?-p:p}function ne(c,l,p,v){var b,x=0;for(t(c!=null),t(l!=null),t(4294967288>v),c.Sb=v,c.Ra=0,c.u=0,c.h=0,4<v&&(v=4),b=0;b<v;++b)x+=l[p+b]<<8*b;c.Ra=x,c.bb=v,c.oa=l,c.pa=p}function he(c){for(;8<=c.u&&c.bb<c.Sb;)c.Ra>>>=8,c.Ra+=c.oa[c.pa+c.bb]<<Wu-8>>>0,++c.bb,c.u-=8;F(c)&&(c.h=1,c.u=0)}function ve(c,l){if(t(0<=l),!c.h&&l<=qu){var p=k(c)&zu[l];return c.u+=l,he(c),p}return c.h=1,c.u=0}function Fe(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function k(c){return c.Ra>>>(c.u&Wu-1)>>>0}function F(c){return t(c.bb<=c.Sb),c.h||c.bb==c.Sb&&c.u>Wu}function $(c,l){c.u=l,c.h=F(c)}function Z(c){c.u>=ql&&(t(c.u>=ql),he(c))}function re(c){t(c!=null&&c.oa!=null),c.pa<c.Zc?(c.I=(c.oa[c.pa++]|c.I<<8)>>>0,c.b+=8):(t(c!=null&&c.oa!=null),c.pa<c.Yc?(c.b+=8,c.I=c.oa[c.pa++]|c.I<<8):c.Ka?c.b=0:(c.I<<=8,c.b+=8,c.Ka=1))}function se(c){return ue(c,1)}function ae(c,l){var p=c.Ca;0>c.b&&re(c);var v=c.b,b=p*l>>>8,x=(c.I>>>v>b)+0;for(x?(p-=b,c.I-=b+1<<v>>>0):p=b+1,v=p,b=0;256<=v;)b+=8,v>>=8;return v=7^b+Fr[v],c.b-=v,c.Ca=(p<<v)-1,x}function Ee(c,l,p){c[l+0]=p>>24&255,c[l+1]=p>>16&255,c[l+2]=p>>8&255,c[l+3]=p>>0&255}function Se(c,l){return c[l+0]<<0|c[l+1]<<8}function ke(c,l){return Se(c,l)|c[l+2]<<16}function Pe(c,l){return Se(c,l)|Se(c,l+2)<<16}function it(c,l){var p=1<<l;return t(c!=null),t(0<l),c.X=o(p),c.X==null?0:(c.Mb=32-l,c.Xa=l,1)}function pe(c,l){t(c!=null),t(l!=null),t(c.Xa==l.Xa),r(l.X,0,c.X,0,1<<l.Xa)}function j(){this.X=[],this.Xa=this.Mb=0}function ht(c,l,p,v){t(p!=null),t(v!=null);var b=p[0],x=v[0];return b==0&&(b=(c*x+l/2)/l),x==0&&(x=(l*b+c/2)/c),0>=b||0>=x?0:(p[0]=b,v[0]=x,1)}function Ye(c,l){return c+(1<<l)-1>>>l}function Ie(c,l){return((4278255360&c)+(4278255360&l)>>>0&4278255360)+((16711935&c)+(16711935&l)>>>0&16711935)>>>0}function Me(c,l){H[l]=function(p,v,b,x,S,E,A){var O;for(O=0;O<S;++O){var z=H[c](E[A+O-1],b,x+O);E[A+O]=Ie(p[v+O],z)}}}function je(){this.ud=this.hd=this.jd=0}function Oe(c,l){return((4278124286&(c^l))>>>1)+(c&l)>>>0}function Ze(c){return 0<=c&&256>c?c:0>c?0:255<c?255:void 0}function ct(c,l){return Ze(c+(c-l+.5>>1))}function yt(c,l,p){return Math.abs(l-p)-Math.abs(c-p)}function xt(c,l,p,v,b,x,S){for(v=x[S-1],p=0;p<b;++p)x[S+p]=v=Ie(c[l+p],v)}function Lt(c,l,p,v,b){var x;for(x=0;x<p;++x){var S=c[l+x],E=S>>8&255,A=16711935&(A=(A=16711935&S)+((E<<16)+E));v[b+x]=(4278255360&S)+A>>>0}}function en(c,l){l.jd=c>>0&255,l.hd=c>>8&255,l.ud=c>>16&255}function st(c,l,p,v,b,x){var S;for(S=0;S<v;++S){var E=l[p+S],A=E>>>8,O=E,z=255&(z=(z=E>>>16)+((c.jd<<24>>24)*(A<<24>>24)>>>5));O=255&(O=(O=O+((c.hd<<24>>24)*(A<<24>>24)>>>5))+((c.ud<<24>>24)*(z<<24>>24)>>>5)),b[x+S]=(4278255360&E)+(z<<16)+O}}function St(c,l,p,v,b){H[l]=function(x,S,E,A,O,z,X,ee,Y){for(A=X;A<ee;++A)for(X=0;X<Y;++X)O[z++]=b(E[v(x[S++])])},H[c]=function(x,S,E,A,O,z,X){var ee=8>>x.b,Y=x.Ea,we=x.K[0],ce=x.w;if(8>ee)for(x=(1<<x.b)-1,ce=(1<<ee)-1;S<E;++S){var q,G=0;for(q=0;q<Y;++q)q&x||(G=v(A[O++])),z[X++]=b(we[G&ce]),G>>=ee}else H["VP8LMapColor"+p](A,O,we,ce,z,X,S,E,Y)}}function Be(c,l,p,v,b){for(p=l+p;l<p;){var x=c[l++];v[b++]=x>>16&255,v[b++]=x>>8&255,v[b++]=x>>0&255}}function pr(c,l,p,v,b){for(p=l+p;l<p;){var x=c[l++];v[b++]=x>>16&255,v[b++]=x>>8&255,v[b++]=x>>0&255,v[b++]=x>>24&255}}function jt(c,l,p,v,b){for(p=l+p;l<p;){var x=(S=c[l++])>>16&240|S>>12&15,S=S>>0&240|S>>28&15;v[b++]=x,v[b++]=S}}function Bi(c,l,p,v,b){for(p=l+p;l<p;){var x=(S=c[l++])>>16&248|S>>13&7,S=S>>5&224|S>>3&31;v[b++]=x,v[b++]=S}}function sn(c,l,p,v,b){for(p=l+p;l<p;){var x=c[l++];v[b++]=x>>0&255,v[b++]=x>>8&255,v[b++]=x>>16&255}}function vn(c,l,p,v,b,x){if(x==0)for(p=l+p;l<p;)Ee(v,((x=c[l++])[0]>>24|x[1]>>8&65280|x[2]<<8&16711680|x[3]<<24)>>>0),b+=32;else r(v,b,c,l,p)}function bo(c,l){H[l][0]=H[c+"0"],H[l][1]=H[c+"1"],H[l][2]=H[c+"2"],H[l][3]=H[c+"3"],H[l][4]=H[c+"4"],H[l][5]=H[c+"5"],H[l][6]=H[c+"6"],H[l][7]=H[c+"7"],H[l][8]=H[c+"8"],H[l][9]=H[c+"9"],H[l][10]=H[c+"10"],H[l][11]=H[c+"11"],H[l][12]=H[c+"12"],H[l][13]=H[c+"13"],H[l][14]=H[c+"0"],H[l][15]=H[c+"0"]}function zt(c){return c==Cy||c==xy||c==ah||c==Iy}function Pa(){this.eb=[],this.size=this.A=this.fb=0}function Cn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Vi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Pa,this.f.kb=new Cn,this.sd=null}function Qo(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function lt(c){return alert("todo:WebPSamplerProcessPlane"),c.T}function qt(c,l){var p=c.T,v=l.ba.f.RGBA,b=v.eb,x=v.fb+c.ka*v.A,S=wi[l.ba.S],E=c.y,A=c.O,O=c.f,z=c.N,X=c.ea,ee=c.W,Y=l.cc,we=l.dc,ce=l.Mc,q=l.Nc,G=c.ka,ye=c.ka+c.T,De=c.U,be=De+1>>1;for(G==0?S(E,A,null,null,O,z,X,ee,O,z,X,ee,b,x,null,null,De):(S(l.ec,l.fc,E,A,Y,we,ce,q,O,z,X,ee,b,x-v.A,b,x,De),++p);G+2<ye;G+=2)Y=O,we=z,ce=X,q=ee,z+=c.Rc,ee+=c.Rc,x+=2*v.A,S(E,(A+=2*c.fa)-c.fa,E,A,Y,we,ce,q,O,z,X,ee,b,x-v.A,b,x,De);return A+=c.fa,c.j+ye<c.o?(r(l.ec,l.fc,E,A,De),r(l.cc,l.dc,O,z,be),r(l.Mc,l.Nc,X,ee,be),p--):1&ye||S(E,A,null,null,O,z,X,ee,O,z,X,ee,b,x+v.A,null,null,De),p}function La(c,l,p){var v=c.F,b=[c.J];if(v!=null){var x=c.U,S=l.ba.S,E=S==sh||S==ah;l=l.ba.f.RGBA;var A=[0],O=c.ka;A[0]=c.T,c.Kb&&(O==0?--A[0]:(--O,b[0]-=c.width),c.j+c.ka+c.T==c.o&&(A[0]=c.o-c.j-O));var z=l.eb;O=l.fb+O*l.A,c=hn(v,b[0],c.width,x,A,z,O+(E?0:3),l.A),t(p==A),c&&zt(S)&&yi(z,O,E,x,A,l.A)}return 0}function ir(c){var l=c.ma,p=l.ba.S,v=11>p,b=p==ih||p==oh||p==sh||p==Dy||p==12||zt(p);if(l.memory=null,l.Ib=null,l.Jb=null,l.Nd=null,!$l(l.Oa,c,b?11:12))return 0;if(b&&zt(p)&&Ce(),c.da)alert("todo:use_scaling");else{if(v){if(l.Ib=lt,c.Kb){if(p=c.U+1>>1,l.memory=o(c.U+2*p),l.memory==null)return 0;l.ec=l.memory,l.fc=0,l.cc=l.ec,l.dc=l.fc+c.U,l.Mc=l.cc,l.Nc=l.dc+p,l.Ib=qt,Ce()}}else alert("todo:EmitYUV");b&&(l.Jb=La,v&&Q())}if(v&&!m5){for(c=0;256>c;++c)ZN[c]=89858*(c-128)+ch>>uh,JN[c]=-22014*(c-128)+ch,KN[c]=-45773*(c-128),QN[c]=113618*(c-128)+ch>>uh;for(c=Jl;c<Ey;++c)l=76283*(c-16)+ch>>uh,XN[c-Jl]=ni(l,255),eM[c-Jl]=ni(l+8>>4,15);m5=1}return 1}function wo(c){var l=c.ma,p=c.U,v=c.T;return t(!(1&c.ka)),0>=p||0>=v?0:(p=l.Ib(c,l),l.Jb!=null&&l.Jb(c,l,p),l.Dc+=p,1)}function Do(c){c.ma.memory=null}function tt(c,l,p,v){return ve(c,8)!=47?0:(l[0]=ve(c,14)+1,p[0]=ve(c,14)+1,v[0]=ve(c,1),ve(c,3)!=0?0:!c.h)}function Ui(c,l){if(4>c)return c+1;var p=c-2>>1;return(2+(1&c)<<p)+ve(l,p)+1}function Co(c,l){return 120<l?l-120:1<=(p=((p=kN[l-1])>>4)*c+(8-(15&p)))?p:1;var p}function kr(c,l,p){var v=k(p),b=c[l+=255&v].g-8;return 0<b&&($(p,p.u+8),v=k(p),l+=c[l].value,l+=v&(1<<b)-1),$(p,p.u+c[l].g),c[l].value}function zn(c,l,p){return p.g+=c.g,p.value+=c.value<<l>>>0,t(8>=p.g),c.g}function Rn(c,l,p){var v=c.xc;return t((l=v==0?0:c.vc[c.md*(p>>v)+(l>>v)])<c.Wb),c.Ya[l]}function ti(c,l,p,v){var b=c.ab,x=c.c*l,S=c.C;l=S+l;var E=p,A=v;for(v=c.Ta,p=c.Ua;0<b--;){var O=c.gc[b],z=S,X=l,ee=E,Y=A,we=(A=v,E=p,O.Ea);switch(t(z<X),t(X<=O.nc),O.hc){case 2:Kf(ee,Y,(X-z)*we,A,E);break;case 0:var ce=z,q=X,G=A,ye=E,De=(Le=O).Ea;ce==0&&(by(ee,Y,null,null,1,G,ye),xt(ee,Y+1,0,0,De-1,G,ye+1),Y+=De,ye+=De,++ce);for(var be=1<<Le.b,Ue=be-1,Te=Ye(De,Le.b),Je=Le.K,Le=Le.w+(ce>>Le.b)*Te;ce<q;){var Vt=Je,Qt=Le,Ot=1;for(Wl(ee,Y,G,ye-De,1,G,ye);Ot<De;){var _t=(Ot&~Ue)+be;_t>De&&(_t=De),(0,Vs[Vt[Qt++]>>8&15])(ee,Y+ +Ot,G,ye+Ot-De,_t-Ot,G,ye+Ot),Ot=_t}Y+=De,ye+=De,++ce&Ue||(Le+=Te)}X!=O.nc&&r(A,E-we,A,E+(X-z-1)*we,we);break;case 1:for(we=ee,q=Y,De=(ee=O.Ea)-(ye=ee&~(G=(Y=1<<O.b)-1)),ce=Ye(ee,O.b),be=O.K,O=O.w+(z>>O.b)*ce;z<X;){for(Ue=be,Te=O,Je=new je,Le=q+ye,Vt=q+ee;q<Le;)en(Ue[Te++],Je),Ba(Je,we,q,Y,A,E),q+=Y,E+=Y;q<Vt&&(en(Ue[Te++],Je),Ba(Je,we,q,De,A,E),q+=De,E+=De),++z&G||(O+=ce)}break;case 3:if(ee==A&&Y==E&&0<O.b){for(q=A,ee=we=E+(X-z)*we-(ye=(X-z)*Ye(O.Ea,O.b)),Y=A,G=E,ce=[],ye=(De=ye)-1;0<=ye;--ye)ce[ye]=Y[G+ye];for(ye=De-1;0<=ye;--ye)q[ee+ye]=ce[ye];mi(O,z,X,A,we,A,E)}else mi(O,z,X,ee,Y,A,E)}E=v,A=p}A!=p&&r(v,p,E,A,x)}function Eu(c,l){var p=c.V,v=c.Ba+c.c*c.C,b=l-c.C;if(t(l<=c.l.o),t(16>=b),0<b){var x=c.l,S=c.Ta,E=c.Ua,A=x.width;if(ti(c,b,p,v),b=E=[E],t((p=c.C)<(v=l)),t(x.v<x.va),v>x.o&&(v=x.o),p<x.j){var O=x.j-p;p=x.j,b[0]+=O*A}if(p>=v?p=0:(b[0]+=4*x.v,x.ka=p-x.j,x.U=x.va-x.v,x.T=v-p,p=1),p){if(E=E[0],11>(p=c.ca).S){var z=p.f.RGBA,X=(v=p.S,b=x.U,x=x.T,O=z.eb,z.A),ee=x;for(z=z.fb+c.Ma*z.A;0<ee--;){var Y=S,we=E,ce=b,q=O,G=z;switch(v){case rh:jr(Y,we,ce,q,G);break;case ih:_r(Y,we,ce,q,G);break;case Cy:_r(Y,we,ce,q,G),yi(q,G,0,ce,1,0);break;case o5:ts(Y,we,ce,q,G);break;case oh:vn(Y,we,ce,q,G,1);break;case xy:vn(Y,we,ce,q,G,1),yi(q,G,0,ce,1,0);break;case sh:vn(Y,we,ce,q,G,0);break;case ah:vn(Y,we,ce,q,G,0),yi(q,G,1,ce,1,0);break;case Dy:Us(Y,we,ce,q,G);break;case Iy:Us(Y,we,ce,q,G),fn(q,G,ce,1,0);break;case s5:es(Y,we,ce,q,G);break;default:t(0)}E+=A,z+=X}c.Ma+=x}else alert("todo:EmitRescaledRowsYUVA");t(c.Ma<=p.height)}}c.C=l,t(c.C<=c.i)}function Ko(c){var l;if(0<c.ua)return 0;for(l=0;l<c.Wb;++l){var p=c.Ya[l].G,v=c.Ya[l].H;if(0<p[1][v[1]+0].g||0<p[2][v[2]+0].g||0<p[3][v[3]+0].g)return 0}return 1}function Hi(c,l,p,v,b,x){if(c.Z!=0){var S=c.qd,E=c.rd;for(t(qs[c.Z]!=null);l<p;++l)qs[c.Z](S,E,v,b,v,b,x),S=v,E=b,b+=x;c.qd=S,c.rd=E}}function $i(c,l){var p=c.l.ma,v=p.Z==0||p.Z==1?c.l.j:c.C;if(v=c.C<v?v:c.C,t(l<=c.l.o),l>v){var b=c.l.width,x=p.ca,S=p.tb+b*v,E=c.V,A=c.Ba+c.c*v,O=c.gc;t(c.ab==1),t(O[0].hc==3),Jf(O[0],v,l,E,A,x,S),Hi(p,v,l,x,S,b)}c.C=c.Ma=l}function zi(c,l,p,v,b,x,S){var E=c.$/v,A=c.$%v,O=c.m,z=c.s,X=p+c.$,ee=X;b=p+v*b;var Y=p+v*x,we=280+z.ua,ce=c.Pb?E:16777216,q=0<z.ua?z.Wa:null,G=z.wc,ye=X<Y?Rn(z,A,E):null;t(c.C<x),t(Y<=b);var De=!1;e:for(;;){for(;De||X<Y;){var be=0;if(E>=ce){var Ue=X-p;t((ce=c).Pb),ce.wd=ce.m,ce.xd=Ue,0<ce.s.ua&&pe(ce.s.Wa,ce.s.vb),ce=E+FN}if(A&G||(ye=Rn(z,A,E)),t(ye!=null),ye.Qb&&(l[X]=ye.qb,De=!0),!De)if(Z(O),ye.jc){be=O,Ue=l;var Te=X,Je=ye.pd[k(be)&or-1];t(ye.jc),256>Je.g?($(be,be.u+Je.g),Ue[Te]=Je.value,be=0):($(be,be.u+Je.g-256),t(256<=Je.value),be=Je.value),be==0&&(De=!0)}else be=kr(ye.G[0],ye.H[0],O);if(O.h)break;if(De||256>be){if(!De)if(ye.nd)l[X]=(ye.qb|be<<8)>>>0;else{if(Z(O),De=kr(ye.G[1],ye.H[1],O),Z(O),Ue=kr(ye.G[2],ye.H[2],O),Te=kr(ye.G[3],ye.H[3],O),O.h)break;l[X]=(Te<<24|De<<16|be<<8|Ue)>>>0}if(De=!1,++X,++A>=v&&(A=0,++E,S!=null&&E<=x&&!(E%16)&&S(c,E),q!=null))for(;ee<X;)be=l[ee++],q.X[(506832829*be&4294967295)>>>q.Mb]=be}else if(280>be){if(be=Ui(be-256,O),Ue=kr(ye.G[4],ye.H[4],O),Z(O),Ue=Co(v,Ue=Ui(Ue,O)),O.h)break;if(X-p<Ue||b-X<be)break e;for(Te=0;Te<be;++Te)l[X+Te]=l[X+Te-Ue];for(X+=be,A+=be;A>=v;)A-=v,++E,S!=null&&E<=x&&!(E%16)&&S(c,E);if(t(X<=b),A&G&&(ye=Rn(z,A,E)),q!=null)for(;ee<X;)be=l[ee++],q.X[(506832829*be&4294967295)>>>q.Mb]=be}else{if(!(be<we))break e;for(De=be-280,t(q!=null);ee<X;)be=l[ee++],q.X[(506832829*be&4294967295)>>>q.Mb]=be;be=X,t(!(De>>>(Ue=q).Xa)),l[be]=Ue.X[De],De=!0}De||t(O.h==F(O))}if(c.Pb&&O.h&&X<b)t(c.m.h),c.a=5,c.m=c.wd,c.$=c.xd,0<c.s.ua&&pe(c.s.vb,c.s.Wa);else{if(O.h)break e;S?.(c,E>x?x:E),c.a=0,c.$=X-p}return 1}return c.a=3,0}function xo(c){t(c!=null),c.vc=null,c.yc=null,c.Ya=null;var l=c.Wa;l!=null&&(l.X=null),c.vb=null,t(c!=null)}function pi(){var c=new yy;return c==null?null:(c.a=0,c.xb=c5,bo("Predictor","VP8LPredictors"),bo("Predictor","VP8LPredictors_C"),bo("PredictorAdd","VP8LPredictorsAdd"),bo("PredictorAdd","VP8LPredictorsAdd_C"),Kf=Lt,Ba=st,jr=Be,_r=pr,Us=jt,es=Bi,ts=sn,H.VP8LMapColor32b=Gu,H.VP8LMapColor8b=Xf,c)}function Io(c,l,p,v,b){var x=1,S=[c],E=[l],A=v.m,O=v.s,z=null,X=0;e:for(;;){if(p)for(;x&&ve(A,1);){var ee=S,Y=E,we=v,ce=1,q=we.m,G=we.gc[we.ab],ye=ve(q,2);if(we.Oc&1<<ye)x=0;else{switch(we.Oc|=1<<ye,G.hc=ye,G.Ea=ee[0],G.nc=Y[0],G.K=[null],++we.ab,t(4>=we.ab),ye){case 0:case 1:G.b=ve(q,3)+2,ce=Io(Ye(G.Ea,G.b),Ye(G.nc,G.b),0,we,G.K),G.K=G.K[0];break;case 3:var De,be=ve(q,8)+1,Ue=16<be?0:4<be?1:2<be?2:3;if(ee[0]=Ye(G.Ea,Ue),G.b=Ue,De=ce=Io(be,1,0,we,G.K)){var Te,Je=be,Le=G,Vt=1<<(8>>Le.b),Qt=o(Vt);if(Qt==null)De=0;else{var Ot=Le.K[0],_t=Le.w;for(Qt[0]=Le.K[0][0],Te=1;Te<1*Je;++Te)Qt[Te]=Ie(Ot[_t+Te],Qt[Te-1]);for(;Te<4*Vt;++Te)Qt[Te]=0;Le.K[0]=null,Le.K[0]=Qt,De=1}}ce=De;break;case 2:break;default:t(0)}x=ce}}if(S=S[0],E=E[0],x&&ve(A,1)&&!(x=1<=(X=ve(A,4))&&11>=X)){v.a=3;break e}var an;if(an=x)t:{var tn,gt,jn,Br=v,Bn=S,Vr=E,Kt=X,ii=p,oi=Br.m,Qn=Br.s,sr=[null],Ar=1,Di=0,Ao=RN[Kt];n:for(;;){if(ii&&ve(oi,1)){var Kn=ve(oi,3)+2,os=Ye(Bn,Kn),za=Ye(Vr,Kn),Ju=os*za;if(!Io(os,za,0,Br,sr))break n;for(sr=sr[0],Qn.xc=Kn,tn=0;tn<Ju;++tn){var Ws=sr[tn]>>8&65535;sr[tn]=Ws,Ws>=Ar&&(Ar=Ws+1)}}if(oi.h)break n;for(gt=0;5>gt;++gt){var Sn=a5[gt];!gt&&0<Kt&&(Sn+=1<<Kt),Di<Sn&&(Di=Sn)}var Ay=s(Ar*Ao,L),y5=Ar,b5=s(y5,V);if(b5==null)var dh=null;else t(65536>=y5),dh=b5;var Xl=o(Di);if(dh==null||Xl==null||Ay==null){Br.a=1;break n}var fh=Ay;for(tn=jn=0;tn<Ar;++tn){var Zi=dh[tn],Xu=Zi.G,ec=Zi.H,w5=0,hh=1,D5=0;for(gt=0;5>gt;++gt){Sn=a5[gt],Xu[gt]=fh,ec[gt]=jn,!gt&&0<Kt&&(Sn+=1<<Kt);i:{var ph,Ny=Sn,mh=Br,ed=Xl,rM=fh,iM=jn,My=0,Gs=mh.m,oM=ve(Gs,1);if(i(ed,0,0,Ny),oM){var sM=ve(Gs,1)+1,aM=ve(Gs,1),C5=ve(Gs,aM==0?1:8);ed[C5]=1,sM==2&&(ed[C5=ve(Gs,8)]=1);var gh=1}else{var x5=o(19),I5=ve(Gs,4)+4;if(19<I5){mh.a=3;var vh=0;break i}for(ph=0;ph<I5;++ph)x5[ON[ph]]=ve(Gs,3);var Ty=void 0,td=void 0,S5=mh,uM=x5,yh=Ny,_5=ed,Py=0,Ys=S5.m,E5=8,A5=s(128,L);r:for(;M(A5,0,7,uM,19);){if(ve(Ys,1)){var cM=2+2*ve(Ys,3);if((Ty=2+ve(Ys,cM))>yh)break r}else Ty=yh;for(td=0;td<yh&&Ty--;){Z(Ys);var N5=A5[0+(127&k(Ys))];$(Ys,Ys.u+N5.g);var tc=N5.value;if(16>tc)_5[td++]=tc,tc!=0&&(E5=tc);else{var lM=tc==16,M5=tc-16,dM=PN[M5],T5=ve(Ys,TN[M5])+dM;if(td+T5>yh)break r;for(var fM=lM?E5:0;0<T5--;)_5[td++]=fM}}Py=1;break r}Py||(S5.a=3),gh=Py}(gh=gh&&!Gs.h)&&(My=M(rM,iM,8,ed,Ny)),gh&&My!=0?vh=My:(mh.a=3,vh=0)}if(vh==0)break n;if(hh&&LN[gt]==1&&(hh=fh[jn].g==0),w5+=fh[jn].g,jn+=vh,3>=gt){var nd,Ly=Xl[0];for(nd=1;nd<Sn;++nd)Xl[nd]>Ly&&(Ly=Xl[nd]);D5+=Ly}}if(Zi.nd=hh,Zi.Qb=0,hh&&(Zi.qb=(Xu[3][ec[3]+0].value<<24|Xu[1][ec[1]+0].value<<16|Xu[2][ec[2]+0].value)>>>0,w5==0&&256>Xu[0][ec[0]+0].value&&(Zi.Qb=1,Zi.qb+=Xu[0][ec[0]+0].value<<8)),Zi.jc=!Zi.Qb&&6>D5,Zi.jc){var bh,ss=Zi;for(bh=0;bh<or;++bh){var Zs=bh,Qs=ss.pd[Zs],wh=ss.G[0][ss.H[0]+Zs];256<=wh.value?(Qs.g=wh.g+256,Qs.value=wh.value):(Qs.g=0,Qs.value=0,Zs>>=zn(wh,8,Qs),Zs>>=zn(ss.G[1][ss.H[1]+Zs],16,Qs),Zs>>=zn(ss.G[2][ss.H[2]+Zs],0,Qs),zn(ss.G[3][ss.H[3]+Zs],24,Qs))}}}Qn.vc=sr,Qn.Wb=Ar,Qn.Ya=dh,Qn.yc=Ay,an=1;break t}an=0}if(!(x=an)){v.a=3;break e}if(0<X){if(O.ua=1<<X,!it(O.Wa,X)){v.a=1,x=0;break e}}else O.ua=0;var Oy=v,P5=S,hM=E,ky=Oy.s,Ry=ky.xc;if(Oy.c=P5,Oy.i=hM,ky.md=Ye(P5,Ry),ky.wc=Ry==0?-1:(1<<Ry)-1,p){v.xb=zN;break e}if((z=o(S*E))==null){v.a=1,x=0;break e}x=(x=zi(v,z,0,S,E,E,null))&&!A.h;break e}return x?(b!=null?b[0]=z:(t(z==null),t(p)),v.$=0,p||xo(O)):xo(O),x}function Oa(c,l){var p=c.c*c.i,v=p+l+16*l;return t(c.c<=l),c.V=o(v),c.V==null?(c.Ta=null,c.Ua=0,c.a=1,0):(c.Ta=c.V,c.Ua=c.Ba+p+l,1)}function Au(c,l){var p=c.C,v=l-p,b=c.V,x=c.Ba+c.c*p;for(t(l<=c.l.o);0<v;){var S=16<v?16:v,E=c.l.ma,A=c.l.width,O=A*S,z=E.ca,X=E.tb+A*p,ee=c.Ta,Y=c.Ua;ti(c,S,b,x),Tn(ee,Y,z,X,O),Hi(E,p,p+S,z,X,A),v-=S,b+=S*c.c,p+=S}t(p==l),c.C=c.Ma=l}function Nu(){this.ub=this.yd=this.td=this.Rb=0}function Mu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Tu(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Tf(){this.Yb=function(){var c=[];return function l(p,v,b){for(var x=b[v],S=0;S<x&&(p.push(b.length>v+1?[]:0),!(b.length<v+1));S++)l(p[S],v+1,b)}(c,0,[3,11]),c}()}function Zv(){this.jb=o(3),this.Wc=a([4,8],Tf),this.Xc=a([4,17],Tf)}function Qv(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Pu(){this.ld=this.La=this.dd=this.tc=0}function Pf(){this.Na=this.la=0}function Kv(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function El(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Jv(){this.uc=this.M=this.Nb=0,this.wa=Array(new Pu),this.Y=0,this.ya=Array(new El),this.aa=0,this.l=new Lu}function Lf(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Xv(){this.cb=this.a=0,this.sc="",this.m=new Fe,this.Od=new Nu,this.Kc=new Mu,this.ed=new Qv,this.Qa=new Tu,this.Ic=this.$c=this.Aa=0,this.D=new Jv,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,Fe),this.ia=0,this.pb=s(4,Kv),this.Pa=new Zv,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Lf),this.Hd=0,this.rb=Array(new Pf),this.sb=0,this.wa=Array(new Pu),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new El),this.L=this.aa=0,this.gd=a([4,2],Pu),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Lu(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ey(){var c=new Xv;return c!=null&&(c.a=0,c.sc="OK",c.cb=0,c.Xb=0,Kl||(Kl=Rf)),c}function Nn(c,l,p){return c.a==0&&(c.a=l,c.sc=p,c.cb=0),0}function Of(c,l,p){return 3<=p&&c[l+0]==157&&c[l+1]==1&&c[l+2]==42}function kf(c,l){if(c==null)return 0;if(c.a=0,c.sc="OK",l==null)return Nn(c,2,"null VP8Io passed to VP8GetHeaders()");var p=l.data,v=l.w,b=l.ha;if(4>b)return Nn(c,7,"Truncated header.");var x=p[v+0]|p[v+1]<<8|p[v+2]<<16,S=c.Od;if(S.Rb=!(1&x),S.td=x>>1&7,S.yd=x>>4&1,S.ub=x>>5,3<S.td)return Nn(c,3,"Incorrect keyframe parameters.");if(!S.yd)return Nn(c,4,"Frame not displayable.");v+=3,b-=3;var E=c.Kc;if(S.Rb){if(7>b)return Nn(c,7,"cannot parse picture header");if(!Of(p,v,b))return Nn(c,3,"Bad code word");E.c=16383&(p[v+4]<<8|p[v+3]),E.Td=p[v+4]>>6,E.i=16383&(p[v+6]<<8|p[v+5]),E.Ud=p[v+6]>>6,v+=7,b-=7,c.za=E.c+15>>4,c.Ub=E.i+15>>4,l.width=E.c,l.height=E.i,l.Da=0,l.j=0,l.v=0,l.va=l.width,l.o=l.height,l.da=0,l.ib=l.width,l.hb=l.height,l.U=l.width,l.T=l.height,i((x=c.Pa).jb,0,255,x.jb.length),t((x=c.Qa)!=null),x.Cb=0,x.Bb=0,x.Fb=1,i(x.Zb,0,0,x.Zb.length),i(x.Lb,0,0,x.Lb)}if(S.ub>b)return Nn(c,7,"bad partition length");le(x=c.m,p,v,S.ub),v+=S.ub,b-=S.ub,S.Rb&&(E.Ld=se(x),E.Kd=se(x)),E=c.Qa;var A,O=c.Pa;if(t(x!=null),t(E!=null),E.Cb=se(x),E.Cb){if(E.Bb=se(x),se(x)){for(E.Fb=se(x),A=0;4>A;++A)E.Zb[A]=se(x)?fe(x,7):0;for(A=0;4>A;++A)E.Lb[A]=se(x)?fe(x,6):0}if(E.Bb)for(A=0;3>A;++A)O.jb[A]=se(x)?ue(x,8):255}else E.Bb=0;if(x.Ka)return Nn(c,3,"cannot parse segment header");if((E=c.ed).zd=se(x),E.Tb=ue(x,6),E.wb=ue(x,3),E.Pc=se(x),E.Pc&&se(x)){for(O=0;4>O;++O)se(x)&&(E.vd[O]=fe(x,6));for(O=0;4>O;++O)se(x)&&(E.od[O]=fe(x,6))}if(c.L=E.Tb==0?0:E.zd?1:2,x.Ka)return Nn(c,3,"cannot parse filter header");var z=b;if(b=A=v,v=A+z,E=z,c.Xb=(1<<ue(c.m,2))-1,z<3*(O=c.Xb))p=7;else{for(A+=3*O,E-=3*O,z=0;z<O;++z){var X=p[b+0]|p[b+1]<<8|p[b+2]<<16;X>E&&(X=E),le(c.Jc[+z],p,A,X),A+=X,E-=X,b+=3}le(c.Jc[+O],p,A,E),p=A<v?0:5}if(p!=0)return Nn(c,p,"cannot parse partitions");for(p=ue(A=c.m,7),b=se(A)?fe(A,4):0,v=se(A)?fe(A,4):0,E=se(A)?fe(A,4):0,O=se(A)?fe(A,4):0,A=se(A)?fe(A,4):0,z=c.Qa,X=0;4>X;++X){if(z.Cb){var ee=z.Zb[X];z.Fb||(ee+=p)}else{if(0<X){c.pb[X]=c.pb[0];continue}ee=p}var Y=c.pb[X];Y.Sc[0]=Sy[ni(ee+b,127)],Y.Sc[1]=_y[ni(ee+0,127)],Y.Eb[0]=2*Sy[ni(ee+v,127)],Y.Eb[1]=101581*_y[ni(ee+E,127)]>>16,8>Y.Eb[1]&&(Y.Eb[1]=8),Y.Qc[0]=Sy[ni(ee+O,117)],Y.Qc[1]=_y[ni(ee+A,127)],Y.lc=ee+A}if(!S.Rb)return Nn(c,4,"Not a key frame.");for(se(x),S=c.Pa,p=0;4>p;++p){for(b=0;8>b;++b)for(v=0;3>v;++v)for(E=0;11>E;++E)O=ae(x,HN[p][b][v][E])?ue(x,8):VN[p][b][v][E],S.Wc[p][b].Yb[v][E]=O;for(b=0;17>b;++b)S.Xc[p][b]=S.Wc[p][$N[b]]}return c.kc=se(x),c.kc&&(c.Bd=ue(x,8)),c.cb=1}function Rf(c,l,p,v,b,x,S){var E=l[b].Yb[p];for(p=0;16>b;++b){if(!ae(c,E[p+0]))return b;for(;!ae(c,E[p+1]);)if(E=l[++b].Yb[0],p=0,b==16)return 16;var A=l[b+1].Yb;if(ae(c,E[p+2])){var O=c,z=0;if(ae(O,(ee=E)[(X=p)+3]))if(ae(O,ee[X+6])){for(E=0,X=2*(z=ae(O,ee[X+8]))+(ee=ae(O,ee[X+9+z])),z=0,ee=jN[X];ee[E];++E)z+=z+ae(O,ee[E]);z+=3+(8<<X)}else ae(O,ee[X+7])?(z=7+2*ae(O,165),z+=ae(O,145)):z=5+ae(O,159);else z=ae(O,ee[X+4])?3+ae(O,ee[X+5]):2;E=A[2]}else z=1,E=A[1];A=S+BN[b],0>(O=c).b&&re(O);var X,ee=O.b,Y=(X=O.Ca>>1)-(O.I>>ee)>>31;--O.b,O.Ca+=Y,O.Ca|=1,O.I-=(X+1&Y)<<ee,x[A]=((z^Y)-Y)*v[(0<b)+0]}return 16}function Al(c){var l=c.rb[c.sb-1];l.la=0,l.Na=0,i(c.zc,0,0,c.zc.length),c.ja=0}function ty(c,l){if(c==null)return 0;if(l==null)return Nn(c,2,"NULL VP8Io parameter in VP8Decode().");if(!c.cb&&!kf(c,l))return 0;if(t(c.cb),l.ac==null||l.ac(l)){l.ob&&(c.L=0);var p=lh[c.L];if(c.L==2?(c.yb=0,c.zb=0):(c.yb=l.v-p>>4,c.zb=l.j-p>>4,0>c.yb&&(c.yb=0),0>c.zb&&(c.zb=0)),c.Va=l.o+15+p>>4,c.Hb=l.va+15+p>>4,c.Hb>c.za&&(c.Hb=c.za),c.Va>c.Ub&&(c.Va=c.Ub),0<c.L){var v=c.ed;for(p=0;4>p;++p){var b;if(c.Qa.Cb){var x=c.Qa.Lb[p];c.Qa.Fb||(x+=v.Tb)}else x=v.Tb;for(b=0;1>=b;++b){var S=c.gd[p][b],E=x;if(v.Pc&&(E+=v.vd[0],b&&(E+=v.od[0])),0<(E=0>E?0:63<E?63:E)){var A=E;0<v.wb&&(A=4<v.wb?A>>2:A>>1)>9-v.wb&&(A=9-v.wb),1>A&&(A=1),S.dd=A,S.tc=2*E+A,S.ld=40<=E?2:15<=E?1:0}else S.tc=0;S.La=b}}}p=0}else Nn(c,6,"Frame setup failed"),p=c.a;if(p=p==0){if(p){c.$c=0,0<c.Aa||(c.Ic=nM);e:{p=c.Ic,v=4*(A=c.za);var O=32*A,z=A+1,X=0<c.L?A*(0<c.Aa?2:1):0,ee=(c.Aa==2?2:1)*A;if((S=v+832+(b=3*(16*p+lh[c.L])/2*O)+(x=c.Fa!=null&&0<c.Fa.length?c.Kc.c*c.Kc.i:0))!=S)p=0;else{if(S>c.Vb){if(c.Vb=0,c.Ec=o(S),c.Fc=0,c.Ec==null){p=Nn(c,1,"no memory during frame initialization.");break e}c.Vb=S}S=c.Ec,E=c.Fc,c.Ac=S,c.Bc=E,E+=v,c.Gd=s(O,Lf),c.Hd=0,c.rb=s(z+1,Pf),c.sb=1,c.wa=X?s(X,Pu):null,c.Y=0,c.D.Nb=0,c.D.wa=c.wa,c.D.Y=c.Y,0<c.Aa&&(c.D.Y+=A),t(!0),c.oc=S,c.pc=E,E+=832,c.ya=s(ee,El),c.aa=0,c.D.ya=c.ya,c.D.aa=c.aa,c.Aa==2&&(c.D.aa+=A),c.R=16*A,c.B=8*A,A=(O=lh[c.L])*c.R,O=O/2*c.B,c.sa=S,c.ta=E+A,c.qa=c.sa,c.ra=c.ta+16*p*c.R+O,c.Ha=c.qa,c.Ia=c.ra+8*p*c.B+O,c.$c=0,E+=b,c.mb=x?S:null,c.nb=x?E:null,t(E+x<=c.Fc+c.Vb),Al(c),i(c.Ac,c.Bc,0,v),p=1}}if(p){if(l.ka=0,l.y=c.sa,l.O=c.ta,l.f=c.qa,l.N=c.ra,l.ea=c.Ha,l.Vd=c.Ia,l.fa=c.R,l.Rc=c.B,l.F=null,l.J=0,!th){for(p=-255;255>=p;++p)qn[255+p]=0>p?-p:p;for(p=-1020;1020>=p;++p)rs[1020+p]=-128>p?-128:127<p?127:p;for(p=-112;112>=p;++p)Ql[112+p]=-16>p?-16:15<p?15:p;for(p=-255;510>=p;++p)Ku[255+p]=0>p?0:255<p?255:p;th=1}Yu=iy,ns=ny,Gl=jf,Er=ry,gi=Bf,Mn=Ff,Zu=Ol,eh=Fa,Yl=vy,Va=kl,Ua=gy,Hs=Bu,Ha=Rl,Qu=Yf,$a=Gf,$s=_o,Zl=Xo,vi=my,Yi[0]=So,Yi[1]=oy,Yi[2]=cy,Yi[3]=ly,Yi[4]=Hf,Yi[5]=Fu,Yi[6]=$f,Yi[7]=Tl,Yi[8]=fy,Yi[9]=dy,zs[0]=Vf,zs[1]=ay,zs[2]=Jo,zs[3]=ku,zs[4]=mr,zs[5]=uy,zs[6]=Uf,is[0]=Fs,is[1]=sy,is[2]=hy,is[3]=Pl,is[4]=Ra,is[5]=py,is[6]=Ll,p=1}else p=0}p&&(p=function(Y,we){for(Y.M=0;Y.M<Y.Va;++Y.M){var ce,q=Y.Jc[Y.M&Y.Xb],G=Y.m,ye=Y;for(ce=0;ce<ye.za;++ce){var De=G,be=ye,Ue=be.Ac,Te=be.Bc+4*ce,Je=be.zc,Le=be.ya[be.aa+ce];if(be.Qa.Bb?Le.$b=ae(De,be.Pa.jb[0])?2+ae(De,be.Pa.jb[2]):ae(De,be.Pa.jb[1]):Le.$b=0,be.kc&&(Le.Ad=ae(De,be.Bd)),Le.Za=!ae(De,145)+0,Le.Za){var Vt=Le.Ob,Qt=0;for(be=0;4>be;++be){var Ot,_t=Je[0+be];for(Ot=0;4>Ot;++Ot){_t=UN[Ue[Te+Ot]][_t];for(var an=u5[ae(De,_t[0])];0<an;)an=u5[2*an+ae(De,_t[an])];_t=-an,Ue[Te+Ot]=_t}r(Vt,Qt,Ue,Te,4),Qt+=4,Je[0+be]=_t}}else _t=ae(De,156)?ae(De,128)?1:3:ae(De,163)?2:0,Le.Ob[0]=_t,i(Ue,Te,_t,4),i(Je,0,_t,4);Le.Dd=ae(De,142)?ae(De,114)?ae(De,183)?1:3:2:0}if(ye.m.Ka)return Nn(Y,7,"Premature end-of-partition0 encountered.");for(;Y.ja<Y.za;++Y.ja){if(ye=q,De=(G=Y).rb[G.sb-1],Ue=G.rb[G.sb+G.ja],ce=G.ya[G.aa+G.ja],Te=G.kc?ce.Ad:0)De.la=Ue.la=0,ce.Za||(De.Na=Ue.Na=0),ce.Hc=0,ce.Gc=0,ce.ia=0;else{var tn,gt;if(De=Ue,Ue=ye,Te=G.Pa.Xc,Je=G.ya[G.aa+G.ja],Le=G.pb[Je.$b],be=Je.ad,Vt=0,Qt=G.rb[G.sb-1],_t=Ot=0,i(be,Vt,0,384),Je.Za)var jn=0,Br=Te[3];else{an=o(16);var Bn=De.Na+Qt.Na;if(Bn=Kl(Ue,Te[1],Bn,Le.Eb,0,an,0),De.Na=Qt.Na=(0<Bn)+0,1<Bn)Yu(an,0,be,Vt);else{var Vr=an[0]+3>>3;for(an=0;256>an;an+=16)be[Vt+an]=Vr}jn=1,Br=Te[0]}var Kt=15&De.la,ii=15&Qt.la;for(an=0;4>an;++an){var oi=1&ii;for(Vr=gt=0;4>Vr;++Vr)Kt=Kt>>1|(oi=(Bn=Kl(Ue,Br,Bn=oi+(1&Kt),Le.Sc,jn,be,Vt))>jn)<<7,gt=gt<<2|(3<Bn?3:1<Bn?2:be[Vt+0]!=0),Vt+=16;Kt>>=4,ii=ii>>1|oi<<7,Ot=(Ot<<8|gt)>>>0}for(Br=Kt,jn=ii>>4,tn=0;4>tn;tn+=2){for(gt=0,Kt=De.la>>4+tn,ii=Qt.la>>4+tn,an=0;2>an;++an){for(oi=1&ii,Vr=0;2>Vr;++Vr)Bn=oi+(1&Kt),Kt=Kt>>1|(oi=0<(Bn=Kl(Ue,Te[2],Bn,Le.Qc,0,be,Vt)))<<3,gt=gt<<2|(3<Bn?3:1<Bn?2:be[Vt+0]!=0),Vt+=16;Kt>>=2,ii=ii>>1|oi<<5}_t|=gt<<4*tn,Br|=Kt<<4<<tn,jn|=(240&ii)<<tn}De.la=Br,Qt.la=jn,Je.Hc=Ot,Je.Gc=_t,Je.ia=43690&_t?0:Le.ia,Te=!(Ot|_t)}if(0<G.L&&(G.wa[G.Y+G.ja]=G.gd[ce.$b][ce.Za],G.wa[G.Y+G.ja].La|=!Te),ye.Ka)return Nn(Y,7,"Premature end-of-file encountered.")}if(Al(Y),G=we,ye=1,ce=(q=Y).D,De=0<q.L&&q.M>=q.zb&&q.M<=q.Va,q.Aa==0)e:{if(ce.M=q.M,ce.uc=De,Hl(q,ce),ye=1,ce=(gt=q.D).Nb,De=(_t=lh[q.L])*q.R,Ue=_t/2*q.B,an=16*ce*q.R,Vr=8*ce*q.B,Te=q.sa,Je=q.ta-De+an,Le=q.qa,be=q.ra-Ue+Vr,Vt=q.Ha,Qt=q.Ia-Ue+Vr,ii=(Kt=gt.M)==0,Ot=Kt>=q.Va-1,q.Aa==2&&Hl(q,gt),gt.uc)for(oi=(Bn=q).D.M,t(Bn.D.uc),gt=Bn.yb;gt<Bn.Hb;++gt){jn=gt,Br=oi;var Qn=(sr=(Sn=Bn).D).Nb;tn=Sn.R;var sr=sr.wa[sr.Y+jn],Ar=Sn.sa,Di=Sn.ta+16*Qn*tn+16*jn,Ao=sr.dd,Kn=sr.tc;if(Kn!=0)if(t(3<=Kn),Sn.L==1)0<jn&&$s(Ar,Di,tn,Kn+4),sr.La&&vi(Ar,Di,tn,Kn),0<Br&&$a(Ar,Di,tn,Kn+4),sr.La&&Zl(Ar,Di,tn,Kn);else{var os=Sn.B,za=Sn.qa,Ju=Sn.ra+8*Qn*os+8*jn,Ws=Sn.Ha,Sn=Sn.Ia+8*Qn*os+8*jn;Qn=sr.ld,0<jn&&(eh(Ar,Di,tn,Kn+4,Ao,Qn),Va(za,Ju,Ws,Sn,os,Kn+4,Ao,Qn)),sr.La&&(Hs(Ar,Di,tn,Kn,Ao,Qn),Qu(za,Ju,Ws,Sn,os,Kn,Ao,Qn)),0<Br&&(Zu(Ar,Di,tn,Kn+4,Ao,Qn),Yl(za,Ju,Ws,Sn,os,Kn+4,Ao,Qn)),sr.La&&(Ua(Ar,Di,tn,Kn,Ao,Qn),Ha(za,Ju,Ws,Sn,os,Kn,Ao,Qn))}}if(q.ia&&alert("todo:DitherRow"),G.put!=null){if(gt=16*Kt,Kt=16*(Kt+1),ii?(G.y=q.sa,G.O=q.ta+an,G.f=q.qa,G.N=q.ra+Vr,G.ea=q.Ha,G.W=q.Ia+Vr):(gt-=_t,G.y=Te,G.O=Je,G.f=Le,G.N=be,G.ea=Vt,G.W=Qt),Ot||(Kt-=_t),Kt>G.o&&(Kt=G.o),G.F=null,G.J=null,q.Fa!=null&&0<q.Fa.length&&gt<Kt&&(G.J=Vl(q,G,gt,Kt-gt),G.F=q.mb,G.F==null&&G.F.length==0)){ye=Nn(q,3,"Could not decode alpha data.");break e}gt<G.j&&(_t=G.j-gt,gt=G.j,t(!(1&_t)),G.O+=q.R*_t,G.N+=q.B*(_t>>1),G.W+=q.B*(_t>>1),G.F!=null&&(G.J+=G.width*_t)),gt<Kt&&(G.O+=G.v,G.N+=G.v>>1,G.W+=G.v>>1,G.F!=null&&(G.J+=G.v),G.ka=gt-G.j,G.U=G.va-G.v,G.T=Kt-gt,ye=G.put(G))}ce+1!=q.Ic||Ot||(r(q.sa,q.ta-De,Te,Je+16*q.R,De),r(q.qa,q.ra-Ue,Le,be+8*q.B,Ue),r(q.Ha,q.Ia-Ue,Vt,Qt+8*q.B,Ue))}if(!ye)return Nn(Y,6,"Output aborted.")}return 1}(c,l)),l.bc!=null&&l.bc(l),p&=1}return p?(c.cb=0,p):0}function qi(c,l,p,v,b){b=c[l+p+32*v]+(b>>3),c[l+p+32*v]=-256&b?0>b?0:255:b}function Ou(c,l,p,v,b,x){qi(c,l,0,p,v+b),qi(c,l,1,p,v+x),qi(c,l,2,p,v-x),qi(c,l,3,p,v-b)}function Rr(c){return(20091*c>>16)+c}function Nl(c,l,p,v){var b,x=0,S=o(16);for(b=0;4>b;++b){var E=c[l+0]+c[l+8],A=c[l+0]-c[l+8],O=(35468*c[l+4]>>16)-Rr(c[l+12]),z=Rr(c[l+4])+(35468*c[l+12]>>16);S[x+0]=E+z,S[x+1]=A+O,S[x+2]=A-O,S[x+3]=E-z,x+=4,l++}for(b=x=0;4>b;++b)E=(c=S[x+0]+4)+S[x+8],A=c-S[x+8],O=(35468*S[x+4]>>16)-Rr(S[x+12]),qi(p,v,0,0,E+(z=Rr(S[x+4])+(35468*S[x+12]>>16))),qi(p,v,1,0,A+O),qi(p,v,2,0,A-O),qi(p,v,3,0,E-z),x++,v+=32}function Ff(c,l,p,v){var b=c[l+0]+4,x=35468*c[l+4]>>16,S=Rr(c[l+4]),E=35468*c[l+1]>>16;Ou(p,v,0,b+S,c=Rr(c[l+1]),E),Ou(p,v,1,b+x,c,E),Ou(p,v,2,b-x,c,E),Ou(p,v,3,b-S,c,E)}function ny(c,l,p,v,b){Nl(c,l,p,v),b&&Nl(c,l+16,p,v+4)}function jf(c,l,p,v){ns(c,l+0,p,v,1),ns(c,l+32,p,v+128,1)}function ry(c,l,p,v){var b;for(c=c[l+0]+4,b=0;4>b;++b)for(l=0;4>l;++l)qi(p,v,l,b,c)}function Bf(c,l,p,v){c[l+0]&&Er(c,l+0,p,v),c[l+16]&&Er(c,l+16,p,v+4),c[l+32]&&Er(c,l+32,p,v+128),c[l+48]&&Er(c,l+48,p,v+128+4)}function iy(c,l,p,v){var b,x=o(16);for(b=0;4>b;++b){var S=c[l+0+b]+c[l+12+b],E=c[l+4+b]+c[l+8+b],A=c[l+4+b]-c[l+8+b],O=c[l+0+b]-c[l+12+b];x[0+b]=S+E,x[8+b]=S-E,x[4+b]=O+A,x[12+b]=O-A}for(b=0;4>b;++b)S=(c=x[0+4*b]+3)+x[3+4*b],E=x[1+4*b]+x[2+4*b],A=x[1+4*b]-x[2+4*b],O=c-x[3+4*b],p[v+0]=S+E>>3,p[v+16]=O+A>>3,p[v+32]=S-E>>3,p[v+48]=O-A>>3,v+=64}function Ml(c,l,p){var v,b=l-32,x=ri,S=255-c[b-1];for(v=0;v<p;++v){var E,A=x,O=S+c[l-1];for(E=0;E<p;++E)c[l+E]=A[O+c[b+E]];l+=32}}function oy(c,l){Ml(c,l,4)}function sy(c,l){Ml(c,l,8)}function ay(c,l){Ml(c,l,16)}function Jo(c,l){var p;for(p=0;16>p;++p)r(c,l+32*p,c,l-32,16)}function ku(c,l){var p;for(p=16;0<p;--p)i(c,l,c[l-1],16),l+=32}function Ru(c,l,p){var v;for(v=0;16>v;++v)i(l,p+32*v,c,16)}function Vf(c,l){var p,v=16;for(p=0;16>p;++p)v+=c[l-1+32*p]+c[l+p-32];Ru(v>>5,c,l)}function mr(c,l){var p,v=8;for(p=0;16>p;++p)v+=c[l-1+32*p];Ru(v>>4,c,l)}function uy(c,l){var p,v=8;for(p=0;16>p;++p)v+=c[l+p-32];Ru(v>>4,c,l)}function Uf(c,l){Ru(128,c,l)}function ut(c,l,p){return c+2*l+p+2>>2}function cy(c,l){var p,v=l-32;for(v=new Uint8Array([ut(c[v-1],c[v+0],c[v+1]),ut(c[v+0],c[v+1],c[v+2]),ut(c[v+1],c[v+2],c[v+3]),ut(c[v+2],c[v+3],c[v+4])]),p=0;4>p;++p)r(c,l+32*p,v,0,v.length)}function ly(c,l){var p=c[l-1],v=c[l-1+32],b=c[l-1+64],x=c[l-1+96];Ee(c,l+0,16843009*ut(c[l-1-32],p,v)),Ee(c,l+32,16843009*ut(p,v,b)),Ee(c,l+64,16843009*ut(v,b,x)),Ee(c,l+96,16843009*ut(b,x,x))}function So(c,l){var p,v=4;for(p=0;4>p;++p)v+=c[l+p-32]+c[l-1+32*p];for(v>>=3,p=0;4>p;++p)i(c,l+32*p,v,4)}function Hf(c,l){var p=c[l-1+0],v=c[l-1+32],b=c[l-1+64],x=c[l-1-32],S=c[l+0-32],E=c[l+1-32],A=c[l+2-32],O=c[l+3-32];c[l+0+96]=ut(v,b,c[l-1+96]),c[l+1+96]=c[l+0+64]=ut(p,v,b),c[l+2+96]=c[l+1+64]=c[l+0+32]=ut(x,p,v),c[l+3+96]=c[l+2+64]=c[l+1+32]=c[l+0+0]=ut(S,x,p),c[l+3+64]=c[l+2+32]=c[l+1+0]=ut(E,S,x),c[l+3+32]=c[l+2+0]=ut(A,E,S),c[l+3+0]=ut(O,A,E)}function $f(c,l){var p=c[l+1-32],v=c[l+2-32],b=c[l+3-32],x=c[l+4-32],S=c[l+5-32],E=c[l+6-32],A=c[l+7-32];c[l+0+0]=ut(c[l+0-32],p,v),c[l+1+0]=c[l+0+32]=ut(p,v,b),c[l+2+0]=c[l+1+32]=c[l+0+64]=ut(v,b,x),c[l+3+0]=c[l+2+32]=c[l+1+64]=c[l+0+96]=ut(b,x,S),c[l+3+32]=c[l+2+64]=c[l+1+96]=ut(x,S,E),c[l+3+64]=c[l+2+96]=ut(S,E,A),c[l+3+96]=ut(E,A,A)}function Fu(c,l){var p=c[l-1+0],v=c[l-1+32],b=c[l-1+64],x=c[l-1-32],S=c[l+0-32],E=c[l+1-32],A=c[l+2-32],O=c[l+3-32];c[l+0+0]=c[l+1+64]=x+S+1>>1,c[l+1+0]=c[l+2+64]=S+E+1>>1,c[l+2+0]=c[l+3+64]=E+A+1>>1,c[l+3+0]=A+O+1>>1,c[l+0+96]=ut(b,v,p),c[l+0+64]=ut(v,p,x),c[l+0+32]=c[l+1+96]=ut(p,x,S),c[l+1+32]=c[l+2+96]=ut(x,S,E),c[l+2+32]=c[l+3+96]=ut(S,E,A),c[l+3+32]=ut(E,A,O)}function Tl(c,l){var p=c[l+0-32],v=c[l+1-32],b=c[l+2-32],x=c[l+3-32],S=c[l+4-32],E=c[l+5-32],A=c[l+6-32],O=c[l+7-32];c[l+0+0]=p+v+1>>1,c[l+1+0]=c[l+0+64]=v+b+1>>1,c[l+2+0]=c[l+1+64]=b+x+1>>1,c[l+3+0]=c[l+2+64]=x+S+1>>1,c[l+0+32]=ut(p,v,b),c[l+1+32]=c[l+0+96]=ut(v,b,x),c[l+2+32]=c[l+1+96]=ut(b,x,S),c[l+3+32]=c[l+2+96]=ut(x,S,E),c[l+3+64]=ut(S,E,A),c[l+3+96]=ut(E,A,O)}function dy(c,l){var p=c[l-1+0],v=c[l-1+32],b=c[l-1+64],x=c[l-1+96];c[l+0+0]=p+v+1>>1,c[l+2+0]=c[l+0+32]=v+b+1>>1,c[l+2+32]=c[l+0+64]=b+x+1>>1,c[l+1+0]=ut(p,v,b),c[l+3+0]=c[l+1+32]=ut(v,b,x),c[l+3+32]=c[l+1+64]=ut(b,x,x),c[l+3+64]=c[l+2+64]=c[l+0+96]=c[l+1+96]=c[l+2+96]=c[l+3+96]=x}function fy(c,l){var p=c[l-1+0],v=c[l-1+32],b=c[l-1+64],x=c[l-1+96],S=c[l-1-32],E=c[l+0-32],A=c[l+1-32],O=c[l+2-32];c[l+0+0]=c[l+2+32]=p+S+1>>1,c[l+0+32]=c[l+2+64]=v+p+1>>1,c[l+0+64]=c[l+2+96]=b+v+1>>1,c[l+0+96]=x+b+1>>1,c[l+3+0]=ut(E,A,O),c[l+2+0]=ut(S,E,A),c[l+1+0]=c[l+3+32]=ut(p,S,E),c[l+1+32]=c[l+3+64]=ut(v,p,S),c[l+1+64]=c[l+3+96]=ut(b,v,p),c[l+1+96]=ut(x,b,v)}function hy(c,l){var p;for(p=0;8>p;++p)r(c,l+32*p,c,l-32,8)}function Pl(c,l){var p;for(p=0;8>p;++p)i(c,l,c[l-1],8),l+=32}function ka(c,l,p){var v;for(v=0;8>v;++v)i(l,p+32*v,c,8)}function Fs(c,l){var p,v=8;for(p=0;8>p;++p)v+=c[l+p-32]+c[l-1+32*p];ka(v>>4,c,l)}function py(c,l){var p,v=4;for(p=0;8>p;++p)v+=c[l+p-32];ka(v>>3,c,l)}function Ra(c,l){var p,v=4;for(p=0;8>p;++p)v+=c[l-1+32*p];ka(v>>3,c,l)}function Ll(c,l){ka(128,c,l)}function ju(c,l,p){var v=c[l-p],b=c[l+0],x=3*(b-v)+wy[1020+c[l-2*p]-c[l+p]],S=nh[112+(x+4>>3)];c[l-p]=ri[255+v+nh[112+(x+3>>3)]],c[l+0]=ri[255+b-S]}function zf(c,l,p,v){var b=c[l+0],x=c[l+p];return bi[255+c[l-2*p]-c[l-p]]>v||bi[255+x-b]>v}function qf(c,l,p,v){return 4*bi[255+c[l-p]-c[l+0]]+bi[255+c[l-2*p]-c[l+p]]<=v}function Wf(c,l,p,v,b){var x=c[l-3*p],S=c[l-2*p],E=c[l-p],A=c[l+0],O=c[l+p],z=c[l+2*p],X=c[l+3*p];return 4*bi[255+E-A]+bi[255+S-O]>v?0:bi[255+c[l-4*p]-x]<=b&&bi[255+x-S]<=b&&bi[255+S-E]<=b&&bi[255+X-z]<=b&&bi[255+z-O]<=b&&bi[255+O-A]<=b}function Gf(c,l,p,v){var b=2*v+1;for(v=0;16>v;++v)qf(c,l+v,p,b)&&ju(c,l+v,p)}function _o(c,l,p,v){var b=2*v+1;for(v=0;16>v;++v)qf(c,l+v*p,1,b)&&ju(c,l+v*p,1)}function Xo(c,l,p,v){var b;for(b=3;0<b;--b)Gf(c,l+=4*p,p,v)}function my(c,l,p,v){var b;for(b=3;0<b;--b)_o(c,l+=4,p,v)}function js(c,l,p,v,b,x,S,E){for(x=2*x+1;0<b--;){if(Wf(c,l,p,x,S))if(zf(c,l,p,E))ju(c,l,p);else{var A=c,O=l,z=p,X=A[O-2*z],ee=A[O-z],Y=A[O+0],we=A[O+z],ce=A[O+2*z],q=27*(ye=wy[1020+3*(Y-ee)+wy[1020+X-we]])+63>>7,G=18*ye+63>>7,ye=9*ye+63>>7;A[O-3*z]=ri[255+A[O-3*z]+ye],A[O-2*z]=ri[255+X+G],A[O-z]=ri[255+ee+q],A[O+0]=ri[255+Y-q],A[O+z]=ri[255+we-G],A[O+2*z]=ri[255+ce-ye]}l+=v}}function Wi(c,l,p,v,b,x,S,E){for(x=2*x+1;0<b--;){if(Wf(c,l,p,x,S))if(zf(c,l,p,E))ju(c,l,p);else{var A=c,O=l,z=p,X=A[O-z],ee=A[O+0],Y=A[O+z],we=nh[112+((ce=3*(ee-X))+4>>3)],ce=nh[112+(ce+3>>3)],q=we+1>>1;A[O-2*z]=ri[255+A[O-2*z]+q],A[O-z]=ri[255+X+ce],A[O+0]=ri[255+ee-we],A[O+z]=ri[255+Y-q]}l+=v}}function Ol(c,l,p,v,b,x){js(c,l,p,1,16,v,b,x)}function Fa(c,l,p,v,b,x){js(c,l,1,p,16,v,b,x)}function gy(c,l,p,v,b,x){var S;for(S=3;0<S;--S)Wi(c,l+=4*p,p,1,16,v,b,x)}function Bu(c,l,p,v,b,x){var S;for(S=3;0<S;--S)Wi(c,l+=4,1,p,16,v,b,x)}function vy(c,l,p,v,b,x,S,E){js(c,l,b,1,8,x,S,E),js(p,v,b,1,8,x,S,E)}function kl(c,l,p,v,b,x,S,E){js(c,l,1,b,8,x,S,E),js(p,v,1,b,8,x,S,E)}function Rl(c,l,p,v,b,x,S,E){Wi(c,l+4*b,b,1,8,x,S,E),Wi(p,v+4*b,b,1,8,x,S,E)}function Yf(c,l,p,v,b,x,S,E){Wi(c,l+4,1,b,8,x,S,E),Wi(p,v+4,1,b,8,x,S,E)}function Vu(){this.ba=new Vi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Fl(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function jl(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Zf(){this.ua=0,this.Wa=new j,this.vb=new j,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new V,this.yc=new L}function yy(){this.xb=this.a=0,this.l=new Lu,this.ca=new Vi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _,this.Pb=0,this.wd=new _,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Zf,this.ab=0,this.gc=s(4,jl),this.Oc=0}function Uu(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Lu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ja(c,l,p,v,b,x,S){for(c=c==null?0:c[l+0],l=0;l<S;++l)b[x+l]=c+p[v+l]&255,c=b[x+l]}function Bl(c,l,p,v,b,x,S){var E;if(c==null)ja(null,null,p,v,b,x,S);else for(E=0;E<S;++E)b[x+E]=c[l+E]+p[v+E]&255}function Bs(c,l,p,v,b,x,S){if(c==null)ja(null,null,p,v,b,x,S);else{var E,A=c[l+0],O=A,z=A;for(E=0;E<S;++E)O=z+(A=c[l+E])-O,z=p[v+E]+(-256&O?0>O?0:255:O)&255,O=A,b[x+E]=z}}function Vl(c,l,p,v){var b=l.width,x=l.o;if(t(c!=null&&l!=null),0>p||0>=v||p+v>x)return null;if(!c.Cc){if(c.ga==null){var S;if(c.ga=new Uu,(S=c.ga==null)||(S=l.width*l.o,t(c.Gb.length==0),c.Gb=o(S),c.Uc=0,c.Gb==null?S=0:(c.mb=c.Gb,c.nb=c.Uc,c.rc=null,S=1),S=!S),!S){S=c.ga;var E=c.Fa,A=c.P,O=c.qc,z=c.mb,X=c.nb,ee=A+1,Y=O-1,we=S.l;if(t(E!=null&&z!=null&&l!=null),qs[0]=null,qs[1]=ja,qs[2]=Bl,qs[3]=Bs,S.ca=z,S.tb=X,S.c=l.width,S.i=l.height,t(0<S.c&&0<S.i),1>=O)l=0;else if(S.$a=E[A+0]>>0&3,S.Z=E[A+0]>>2&3,S.Lc=E[A+0]>>4&3,A=E[A+0]>>6&3,0>S.$a||1<S.$a||4<=S.Z||1<S.Lc||A)l=0;else if(we.put=wo,we.ac=ir,we.bc=Do,we.ma=S,we.width=l.width,we.height=l.height,we.Da=l.Da,we.v=l.v,we.va=l.va,we.j=l.j,we.o=l.o,S.$a)e:{t(S.$a==1),l=pi();t:for(;;){if(l==null){l=0;break e}if(t(S!=null),S.mc=l,l.c=S.c,l.i=S.i,l.l=S.l,l.l.ma=S,l.l.width=S.c,l.l.height=S.i,l.a=0,ne(l.m,E,ee,Y),!Io(S.c,S.i,1,l,null)||(l.ab==1&&l.gc[0].hc==3&&Ko(l.s)?(S.ic=1,E=l.c*l.i,l.Ta=null,l.Ua=0,l.V=o(E),l.Ba=0,l.V==null?(l.a=1,l=0):l=1):(S.ic=0,l=Oa(l,S.c)),!l))break t;l=1;break e}S.mc=null,l=0}else l=Y>=S.c*S.i;S=!l}if(S)return null;c.ga.Lc!=1?c.Ga=0:v=x-p}t(c.ga!=null),t(p+v<=x);e:{if(l=(E=c.ga).c,x=E.l.o,E.$a==0){if(ee=c.rc,Y=c.Vc,we=c.Fa,A=c.P+1+p*l,O=c.mb,z=c.nb+p*l,t(A<=c.P+c.qc),E.Z!=0)for(t(qs[E.Z]!=null),S=0;S<v;++S)qs[E.Z](ee,Y,we,A,O,z,l),ee=O,Y=z,z+=l,A+=l;else for(S=0;S<v;++S)r(O,z,we,A,l),ee=O,Y=z,z+=l,A+=l;c.rc=ee,c.Vc=Y}else{if(t(E.mc!=null),l=p+v,t((S=E.mc)!=null),t(l<=S.i),S.C>=l)l=1;else if(E.ic||Q(),E.ic){E=S.V,ee=S.Ba,Y=S.c;var ce=S.i,q=(we=1,A=S.$/Y,O=S.$%Y,z=S.m,X=S.s,S.$),G=Y*ce,ye=Y*l,De=X.wc,be=q<ye?Rn(X,O,A):null;t(q<=G),t(l<=ce),t(Ko(X));t:for(;;){for(;!z.h&&q<ye;){if(O&De||(be=Rn(X,O,A)),t(be!=null),Z(z),256>(ce=kr(be.G[0],be.H[0],z)))E[ee+q]=ce,++q,++O>=Y&&(O=0,++A<=l&&!(A%16)&&$i(S,A));else{if(!(280>ce)){we=0;break t}ce=Ui(ce-256,z);var Ue,Te=kr(be.G[4],be.H[4],z);if(Z(z),!(q>=(Te=Co(Y,Te=Ui(Te,z)))&&G-q>=ce)){we=0;break t}for(Ue=0;Ue<ce;++Ue)E[ee+q+Ue]=E[ee+q+Ue-Te];for(q+=ce,O+=ce;O>=Y;)O-=Y,++A<=l&&!(A%16)&&$i(S,A);q<ye&&O&De&&(be=Rn(X,O,A))}t(z.h==F(z))}$i(S,A>l?l:A);break t}!we||z.h&&q<G?(we=0,S.a=z.h?5:3):S.$=q,l=we}else l=zi(S,S.V,S.Ba,S.c,S.i,l,Au);if(!l){v=0;break e}}p+v>=x&&(c.Cc=1),v=1}if(!v)return null;if(c.Cc&&((v=c.ga)!=null&&(v.mc=null),c.ga=null,0<c.Ga))return alert("todo:WebPDequantizeLevels"),null}return c.nb+p*b}function f(c,l,p,v,b,x){for(;0<b--;){var S,E=c,A=l+(p?1:0),O=c,z=l+(p?0:3);for(S=0;S<v;++S){var X=O[z+4*S];X!=255&&(X*=32897,E[A+4*S+0]=E[A+4*S+0]*X>>23,E[A+4*S+1]=E[A+4*S+1]*X>>23,E[A+4*S+2]=E[A+4*S+2]*X>>23)}l+=x}}function w(c,l,p,v,b){for(;0<v--;){var x;for(x=0;x<p;++x){var S=c[l+2*x+0],E=15&(O=c[l+2*x+1]),A=4369*E,O=(240&O|O>>4)*A>>16;c[l+2*x+0]=(240&S|S>>4)*A>>16&240|(15&S|S<<4)*A>>16>>4&15,c[l+2*x+1]=240&O|E}l+=b}}function R(c,l,p,v,b,x,S,E){var A,O,z=255;for(O=0;O<b;++O){for(A=0;A<v;++A){var X=c[l+A];x[S+4*A]=X,z&=X}l+=p,S+=E}return z!=255}function U(c,l,p,v,b){var x;for(x=0;x<b;++x)p[v+x]=c[l+x]>>8}function Q(){yi=f,fn=w,hn=R,Tn=U}function de(c,l,p){H[c]=function(v,b,x,S,E,A,O,z,X,ee,Y,we,ce,q,G,ye,De){var be,Ue=De-1>>1,Te=E[A+0]|O[z+0]<<16,Je=X[ee+0]|Y[we+0]<<16;t(v!=null);var Le=3*Te+Je+131074>>2;for(l(v[b+0],255&Le,Le>>16,ce,q),x!=null&&(Le=3*Je+Te+131074>>2,l(x[S+0],255&Le,Le>>16,G,ye)),be=1;be<=Ue;++be){var Vt=E[A+be]|O[z+be]<<16,Qt=X[ee+be]|Y[we+be]<<16,Ot=Te+Vt+Je+Qt+524296,_t=Ot+2*(Vt+Je)>>3;Le=_t+Te>>1,Te=(Ot=Ot+2*(Te+Qt)>>3)+Vt>>1,l(v[b+2*be-1],255&Le,Le>>16,ce,q+(2*be-1)*p),l(v[b+2*be-0],255&Te,Te>>16,ce,q+(2*be-0)*p),x!=null&&(Le=Ot+Je>>1,Te=_t+Qt>>1,l(x[S+2*be-1],255&Le,Le>>16,G,ye+(2*be-1)*p),l(x[S+2*be+0],255&Te,Te>>16,G,ye+(2*be+0)*p)),Te=Vt,Je=Qt}1&De||(Le=3*Te+Je+131074>>2,l(v[b+De-1],255&Le,Le>>16,ce,q+(De-1)*p),x!=null&&(Le=3*Je+Te+131074>>2,l(x[S+De-1],255&Le,Le>>16,G,ye+(De-1)*p)))}}function Ce(){wi[rh]=qN,wi[ih]=l5,wi[o5]=WN,wi[oh]=d5,wi[sh]=f5,wi[Dy]=h5,wi[s5]=GN,wi[Cy]=l5,wi[xy]=d5,wi[ah]=f5,wi[Iy]=h5}function Ve(c){return c&~YN?0>c?0:255:c>>p5}function Qe(c,l){return Ve((19077*c>>8)+(26149*l>>8)-14234)}function pt(c,l,p){return Ve((19077*c>>8)-(6419*l>>8)-(13320*p>>8)+8708)}function dt(c,l){return Ve((19077*c>>8)+(33050*l>>8)-17685)}function Nt(c,l,p,v,b){v[b+0]=Qe(c,p),v[b+1]=pt(c,l,p),v[b+2]=dt(c,l)}function Dn(c,l,p,v,b){v[b+0]=dt(c,l),v[b+1]=pt(c,l,p),v[b+2]=Qe(c,p)}function In(c,l,p,v,b){var x=pt(c,l,p);l=x<<3&224|dt(c,l)>>3,v[b+0]=248&Qe(c,p)|x>>5,v[b+1]=l}function Fn(c,l,p,v,b){var x=240&dt(c,l)|15;v[b+0]=240&Qe(c,p)|pt(c,l,p)>>4,v[b+1]=x}function gr(c,l,p,v,b){v[b+0]=255,Nt(c,l,p,v,b+1)}function Zn(c,l,p,v,b){Dn(c,l,p,v,b),v[b+3]=255}function Gi(c,l,p,v,b){Nt(c,l,p,v,b),v[b+3]=255}function ni(c,l){return 0>c?0:c>l?l:c}function Eo(c,l,p){H[c]=function(v,b,x,S,E,A,O,z,X){for(var ee=z+(-2&X)*p;z!=ee;)l(v[b+0],x[S+0],E[A+0],O,z),l(v[b+1],x[S+0],E[A+0],O,z+p),b+=2,++S,++A,z+=2*p;1&X&&l(v[b+0],x[S+0],E[A+0],O,z)}}function Qf(c,l,p){return p==0?c==0?l==0?6:5:l==0?4:0:p}function Ul(c,l,p,v,b){switch(c>>>30){case 3:ns(l,p,v,b,0);break;case 2:Mn(l,p,v,b);break;case 1:Er(l,p,v,b)}}function Hl(c,l){var p,v,b=l.M,x=l.Nb,S=c.oc,E=c.pc+40,A=c.oc,O=c.pc+584,z=c.oc,X=c.pc+600;for(p=0;16>p;++p)S[E+32*p-1]=129;for(p=0;8>p;++p)A[O+32*p-1]=129,z[X+32*p-1]=129;for(0<b?S[E-1-32]=A[O-1-32]=z[X-1-32]=129:(i(S,E-32-1,127,21),i(A,O-32-1,127,9),i(z,X-32-1,127,9)),v=0;v<c.za;++v){var ee=l.ya[l.aa+v];if(0<v){for(p=-1;16>p;++p)r(S,E+32*p-4,S,E+32*p+12,4);for(p=-1;8>p;++p)r(A,O+32*p-4,A,O+32*p+4,4),r(z,X+32*p-4,z,X+32*p+4,4)}var Y=c.Gd,we=c.Hd+v,ce=ee.ad,q=ee.Hc;if(0<b&&(r(S,E-32,Y[we].y,0,16),r(A,O-32,Y[we].f,0,8),r(z,X-32,Y[we].ea,0,8)),ee.Za){var G=S,ye=E-32+16;for(0<b&&(v>=c.za-1?i(G,ye,Y[we].y[15],4):r(G,ye,Y[we+1].y,0,4)),p=0;4>p;p++)G[ye+128+p]=G[ye+256+p]=G[ye+384+p]=G[ye+0+p];for(p=0;16>p;++p,q<<=2)G=S,ye=E+g5[p],Yi[ee.Ob[p]](G,ye),Ul(q,ce,16*+p,G,ye)}else if(G=Qf(v,b,ee.Ob[0]),zs[G](S,E),q!=0)for(p=0;16>p;++p,q<<=2)Ul(q,ce,16*+p,S,E+g5[p]);for(p=ee.Gc,G=Qf(v,b,ee.Dd),is[G](A,O),is[G](z,X),q=ce,G=A,ye=O,255&(ee=p>>0)&&(170&ee?Gl(q,256,G,ye):gi(q,256,G,ye)),ee=z,q=X,255&(p>>=8)&&(170&p?Gl(ce,320,ee,q):gi(ce,320,ee,q)),b<c.Ub-1&&(r(Y[we].y,0,S,E+480,16),r(Y[we].f,0,A,O+224,8),r(Y[we].ea,0,z,X+224,8)),p=8*x*c.B,Y=c.sa,we=c.ta+16*v+16*x*c.R,ce=c.qa,ee=c.ra+8*v+p,q=c.Ha,G=c.Ia+8*v+p,p=0;16>p;++p)r(Y,we+p*c.R,S,E+32*p,16);for(p=0;8>p;++p)r(ce,ee+p*c.B,A,O+32*p,8),r(q,G+p*c.B,z,X+32*p,8)}}function Hu(c,l,p,v,b,x,S,E,A){var O=[0],z=[0],X=0,ee=A!=null?A.kd:0,Y=A??new Fl;if(c==null||12>p)return 7;Y.data=c,Y.w=l,Y.ha=p,l=[l],p=[p],Y.gb=[Y.gb];e:{var we=l,ce=p,q=Y.gb;if(t(c!=null),t(ce!=null),t(q!=null),q[0]=0,12<=ce[0]&&!n(c,we[0],"RIFF")){if(n(c,we[0]+8,"WEBP")){q=3;break e}var G=Pe(c,we[0]+4);if(12>G||4294967286<G){q=3;break e}if(ee&&G>ce[0]-8){q=7;break e}q[0]=G,we[0]+=12,ce[0]-=12}q=0}if(q!=0)return q;for(G=0<Y.gb[0],p=p[0];;){e:{var ye=c;ce=l,q=p;var De=O,be=z,Ue=we=[0];if((Le=X=[X])[0]=0,8>q[0])q=7;else{if(!n(ye,ce[0],"VP8X")){if(Pe(ye,ce[0]+4)!=10){q=3;break e}if(18>q[0]){q=7;break e}var Te=Pe(ye,ce[0]+8),Je=1+ke(ye,ce[0]+12);if(2147483648<=Je*(ye=1+ke(ye,ce[0]+15))){q=3;break e}Ue!=null&&(Ue[0]=Te),De!=null&&(De[0]=Je),be!=null&&(be[0]=ye),ce[0]+=18,q[0]-=18,Le[0]=1}q=0}}if(X=X[0],we=we[0],q!=0)return q;if(ce=!!(2&we),!G&&X)return 3;if(x!=null&&(x[0]=!!(16&we)),S!=null&&(S[0]=ce),E!=null&&(E[0]=0),S=O[0],we=z[0],X&&ce&&A==null){q=0;break}if(4>p){q=7;break}if(G&&X||!G&&!X&&!n(c,l[0],"ALPH")){p=[p],Y.na=[Y.na],Y.P=[Y.P],Y.Sa=[Y.Sa];e:{Te=c,q=l,G=p;var Le=Y.gb;De=Y.na,be=Y.P,Ue=Y.Sa,Je=22,t(Te!=null),t(G!=null),ye=q[0];var Vt=G[0];for(t(De!=null),t(Ue!=null),De[0]=null,be[0]=null,Ue[0]=0;;){if(q[0]=ye,G[0]=Vt,8>Vt){q=7;break e}var Qt=Pe(Te,ye+4);if(4294967286<Qt){q=3;break e}var Ot=8+Qt+1&-2;if(Je+=Ot,0<Le&&Je>Le){q=3;break e}if(!n(Te,ye,"VP8 ")||!n(Te,ye,"VP8L")){q=0;break e}if(Vt[0]<Ot){q=7;break e}n(Te,ye,"ALPH")||(De[0]=Te,be[0]=ye+8,Ue[0]=Qt),ye+=Ot,Vt-=Ot}}if(p=p[0],Y.na=Y.na[0],Y.P=Y.P[0],Y.Sa=Y.Sa[0],q!=0)break}p=[p],Y.Ja=[Y.Ja],Y.xa=[Y.xa];e:if(Le=c,q=l,G=p,De=Y.gb[0],be=Y.Ja,Ue=Y.xa,Te=q[0],ye=!n(Le,Te,"VP8 "),Je=!n(Le,Te,"VP8L"),t(Le!=null),t(G!=null),t(be!=null),t(Ue!=null),8>G[0])q=7;else{if(ye||Je){if(Le=Pe(Le,Te+4),12<=De&&Le>De-12){q=3;break e}if(ee&&Le>G[0]-8){q=7;break e}be[0]=Le,q[0]+=8,G[0]-=8,Ue[0]=Je}else Ue[0]=5<=G[0]&&Le[Te+0]==47&&!(Le[Te+4]>>5),be[0]=G[0];q=0}if(p=p[0],Y.Ja=Y.Ja[0],Y.xa=Y.xa[0],l=l[0],q!=0)break;if(4294967286<Y.Ja)return 3;if(E==null||ce||(E[0]=Y.xa?2:1),S=[S],we=[we],Y.xa){if(5>p){q=7;break}E=S,ee=we,ce=x,c==null||5>p?c=0:5<=p&&c[l+0]==47&&!(c[l+4]>>5)?(G=[0],Le=[0],De=[0],ne(be=new _,c,l,p),tt(be,G,Le,De)?(E!=null&&(E[0]=G[0]),ee!=null&&(ee[0]=Le[0]),ce!=null&&(ce[0]=De[0]),c=1):c=0):c=0}else{if(10>p){q=7;break}E=we,c==null||10>p||!Of(c,l+3,p-3)?c=0:(ee=c[l+0]|c[l+1]<<8|c[l+2]<<16,ce=16383&(c[l+7]<<8|c[l+6]),c=16383&(c[l+9]<<8|c[l+8]),1&ee||3<(ee>>1&7)||!(ee>>4&1)||ee>>5>=Y.Ja||!ce||!c?c=0:(S&&(S[0]=ce),E&&(E[0]=c),c=1))}if(!c||(S=S[0],we=we[0],X&&(O[0]!=S||z[0]!=we)))return 3;A!=null&&(A[0]=Y,A.offset=l-A.w,t(4294967286>l-A.w),t(A.offset==A.ha-p));break}return q==0||q==7&&X&&A==null?(x!=null&&(x[0]|=Y.na!=null&&0<Y.na.length),v!=null&&(v[0]=S),b!=null&&(b[0]=we),0):q}function $l(c,l,p){var v=l.width,b=l.height,x=0,S=0,E=v,A=b;if(l.Da=c!=null&&0<c.Da,l.Da&&(E=c.cd,A=c.bd,x=c.v,S=c.j,11>p||(x&=-2,S&=-2),0>x||0>S||0>=E||0>=A||x+E>v||S+A>b))return 0;if(l.v=x,l.j=S,l.va=x+E,l.o=S+A,l.U=E,l.T=A,l.da=c!=null&&0<c.da,l.da){if(!ht(E,A,p=[c.ib],x=[c.hb]))return 0;l.ib=p[0],l.hb=x[0]}return l.ob=c!=null&&c.ob,l.Kb=c==null||!c.Sd,l.da&&(l.ob=l.ib<3*v/4&&l.hb<3*b/4,l.Kb=0),1}function zl(c){if(c==null)return 2;if(11>c.S){var l=c.f.RGBA;l.fb+=(c.height-1)*l.A,l.A=-l.A}else l=c.f.kb,c=c.height,l.O+=(c-1)*l.fa,l.fa=-l.fa,l.N+=(c-1>>1)*l.Ab,l.Ab=-l.Ab,l.W+=(c-1>>1)*l.Db,l.Db=-l.Db,l.F!=null&&(l.J+=(c-1)*l.lb,l.lb=-l.lb);return 0}function $u(c,l,p,v){if(v==null||0>=c||0>=l)return 2;if(p!=null){if(p.Da){var b=p.cd,x=p.bd,S=-2&p.v,E=-2&p.j;if(0>S||0>E||0>=b||0>=x||S+b>c||E+x>l)return 2;c=b,l=x}if(p.da){if(!ht(c,l,b=[p.ib],x=[p.hb]))return 2;c=b[0],l=x[0]}}v.width=c,v.height=l;e:{var A=v.width,O=v.height;if(c=v.S,0>=A||0>=O||!(c>=rh&&13>c))c=2;else{if(0>=v.Rd&&v.sd==null){S=x=b=l=0;var z=(E=A*v5[c])*O;if(11>c||(x=(O+1)/2*(l=(A+1)/2),c==12&&(S=(b=A)*O)),(O=o(z+2*x+S))==null){c=1;break e}v.sd=O,11>c?((A=v.f.RGBA).eb=O,A.fb=0,A.A=E,A.size=z):((A=v.f.kb).y=O,A.O=0,A.fa=E,A.Fd=z,A.f=O,A.N=0+z,A.Ab=l,A.Cd=x,A.ea=O,A.W=0+z+x,A.Db=l,A.Ed=x,c==12&&(A.F=O,A.J=0+z+2*x),A.Tc=S,A.lb=b)}if(l=1,b=v.S,x=v.width,S=v.height,b>=rh&&13>b)if(11>b)c=v.f.RGBA,l&=(E=Math.abs(c.A))*(S-1)+x<=c.size,l&=E>=x*v5[b],l&=c.eb!=null;else{c=v.f.kb,E=(x+1)/2,z=(S+1)/2,A=Math.abs(c.fa),O=Math.abs(c.Ab);var X=Math.abs(c.Db),ee=Math.abs(c.lb),Y=ee*(S-1)+x;l&=A*(S-1)+x<=c.Fd,l&=O*(z-1)+E<=c.Cd,l=(l&=X*(z-1)+E<=c.Ed)&A>=x&O>=E&X>=E,l&=c.y!=null,l&=c.f!=null,l&=c.ea!=null,b==12&&(l&=ee>=x,l&=Y<=c.Tc,l&=c.F!=null)}else l=0;c=l?0:2}}return c!=0||p!=null&&p.fd&&(c=zl(v)),c}var or=64,zu=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],qu=24,Wu=32,ql=8,Fr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Me("Predictor0","PredictorAdd0"),H.Predictor0=function(){return 4278190080},H.Predictor1=function(c){return c},H.Predictor2=function(c,l,p){return l[p+0]},H.Predictor3=function(c,l,p){return l[p+1]},H.Predictor4=function(c,l,p){return l[p-1]},H.Predictor5=function(c,l,p){return Oe(Oe(c,l[p+1]),l[p+0])},H.Predictor6=function(c,l,p){return Oe(c,l[p-1])},H.Predictor7=function(c,l,p){return Oe(c,l[p+0])},H.Predictor8=function(c,l,p){return Oe(l[p-1],l[p+0])},H.Predictor9=function(c,l,p){return Oe(l[p+0],l[p+1])},H.Predictor10=function(c,l,p){return Oe(Oe(c,l[p-1]),Oe(l[p+0],l[p+1]))},H.Predictor11=function(c,l,p){var v=l[p+0];return 0>=yt(v>>24&255,c>>24&255,(l=l[p-1])>>24&255)+yt(v>>16&255,c>>16&255,l>>16&255)+yt(v>>8&255,c>>8&255,l>>8&255)+yt(255&v,255&c,255&l)?v:c},H.Predictor12=function(c,l,p){var v=l[p+0];return(Ze((c>>24&255)+(v>>24&255)-((l=l[p-1])>>24&255))<<24|Ze((c>>16&255)+(v>>16&255)-(l>>16&255))<<16|Ze((c>>8&255)+(v>>8&255)-(l>>8&255))<<8|Ze((255&c)+(255&v)-(255&l)))>>>0},H.Predictor13=function(c,l,p){var v=l[p-1];return(ct((c=Oe(c,l[p+0]))>>24&255,v>>24&255)<<24|ct(c>>16&255,v>>16&255)<<16|ct(c>>8&255,v>>8&255)<<8|ct(c>>0&255,v>>0&255))>>>0};var by=H.PredictorAdd0;H.PredictorAdd1=xt,Me("Predictor2","PredictorAdd2"),Me("Predictor3","PredictorAdd3"),Me("Predictor4","PredictorAdd4"),Me("Predictor5","PredictorAdd5"),Me("Predictor6","PredictorAdd6"),Me("Predictor7","PredictorAdd7"),Me("Predictor8","PredictorAdd8"),Me("Predictor9","PredictorAdd9"),Me("Predictor10","PredictorAdd10"),Me("Predictor11","PredictorAdd11"),Me("Predictor12","PredictorAdd12"),Me("Predictor13","PredictorAdd13");var Wl=H.PredictorAdd2;St("ColorIndexInverseTransform","MapARGB","32b",function(c){return c>>8&255},function(c){return c}),St("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(c){return c},function(c){return c>>8&255});var Kf,mi=H.ColorIndexInverseTransform,Gu=H.MapARGB,Jf=H.VP8LColorIndexInverseTransformAlpha,Xf=H.MapAlpha,Vs=H.VP8LPredictorsAdd=[];Vs.length=16,(H.VP8LPredictors=[]).length=16,(H.VP8LPredictorsAdd_C=[]).length=16,(H.VP8LPredictors_C=[]).length=16;var Ba,jr,_r,Us,es,ts,Yu,ns,Mn,Gl,Er,gi,Zu,eh,Yl,Va,Ua,Hs,Ha,Qu,$a,$s,Zl,vi,yi,fn,hn,Tn,qn=o(511),rs=o(2041),Ql=o(225),Ku=o(767),th=0,wy=rs,nh=Ql,ri=Ku,bi=qn,rh=0,ih=1,o5=2,oh=3,sh=4,Dy=5,s5=6,Cy=7,xy=8,ah=9,Iy=10,TN=[2,3,7],PN=[3,3,11],a5=[280,256,256,256,40],LN=[0,1,1,1,0],ON=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],kN=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],RN=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],FN=8,Sy=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],_y=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Kl=null,jN=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],BN=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],u5=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],VN=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],UN=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],HN=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],$N=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zs=[],Yi=[],is=[],zN=1,c5=2,qs=[],wi=[];de("UpsampleRgbLinePair",Nt,3),de("UpsampleBgrLinePair",Dn,3),de("UpsampleRgbaLinePair",Gi,4),de("UpsampleBgraLinePair",Zn,4),de("UpsampleArgbLinePair",gr,4),de("UpsampleRgba4444LinePair",Fn,2),de("UpsampleRgb565LinePair",In,2);var qN=H.UpsampleRgbLinePair,WN=H.UpsampleBgrLinePair,l5=H.UpsampleRgbaLinePair,d5=H.UpsampleBgraLinePair,f5=H.UpsampleArgbLinePair,h5=H.UpsampleRgba4444LinePair,GN=H.UpsampleRgb565LinePair,uh=16,ch=1<<uh-1,Jl=-227,Ey=482,p5=6,YN=(256<<p5)-1,m5=0,ZN=o(256),QN=o(256),KN=o(256),JN=o(256),XN=o(Ey-Jl),eM=o(Ey-Jl);Eo("YuvToRgbRow",Nt,3),Eo("YuvToBgrRow",Dn,3),Eo("YuvToRgbaRow",Gi,4),Eo("YuvToBgraRow",Zn,4),Eo("YuvToArgbRow",gr,4),Eo("YuvToRgba4444Row",Fn,2),Eo("YuvToRgb565Row",In,2);var g5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],lh=[0,2,8],tM=[8,7,6,4,4,2,2,2,1,1,1,1],nM=1;this.WebPDecodeRGBA=function(c,l,p,v,b){var x=ih,S=new Vu,E=new Vi;S.ba=E,E.S=x,E.width=[E.width],E.height=[E.height];var A=E.width,O=E.height,z=new Qo;if(z==null||c==null)var X=2;else t(z!=null),X=Hu(c,l,p,z.width,z.height,z.Pd,z.Qd,z.format,null);if(X!=0?A=0:(A!=null&&(A[0]=z.width[0]),O!=null&&(O[0]=z.height[0]),A=1),A){E.width=E.width[0],E.height=E.height[0],v!=null&&(v[0]=E.width),b!=null&&(b[0]=E.height);e:{if(v=new Lu,(b=new Fl).data=c,b.w=l,b.ha=p,b.kd=1,l=[0],t(b!=null),((c=Hu(b.data,b.w,b.ha,null,null,null,l,null,b))==0||c==7)&&l[0]&&(c=4),(l=c)==0){if(t(S!=null),v.data=b.data,v.w=b.w+b.offset,v.ha=b.ha-b.offset,v.put=wo,v.ac=ir,v.bc=Do,v.ma=S,b.xa){if((c=pi())==null){S=1;break e}if(function(ee,Y){var we=[0],ce=[0],q=[0];t:for(;;){if(ee==null)return 0;if(Y==null)return ee.a=2,0;if(ee.l=Y,ee.a=0,ne(ee.m,Y.data,Y.w,Y.ha),!tt(ee.m,we,ce,q)){ee.a=3;break t}if(ee.xb=c5,Y.width=we[0],Y.height=ce[0],!Io(we[0],ce[0],1,ee,null))break t;return 1}return t(ee.a!=0),0}(c,v)){if(v=(l=$u(v.width,v.height,S.Oa,S.ba))==0){t:{v=c;n:for(;;){if(v==null){v=0;break t}if(t(v.s.yc!=null),t(v.s.Ya!=null),t(0<v.s.Wb),t((p=v.l)!=null),t((b=p.ma)!=null),v.xb!=0){if(v.ca=b.ba,v.tb=b.tb,t(v.ca!=null),!$l(b.Oa,p,oh)){v.a=2;break n}if(!Oa(v,p.width)||p.da)break n;if((p.da||zt(v.ca.S))&&Q(),11>v.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),v.ca.f.kb.F!=null&&Q()),v.Pb&&0<v.s.ua&&v.s.vb.X==null&&!it(v.s.vb,v.s.Wa.Xa)){v.a=1;break n}v.xb=0}if(!zi(v,v.V,v.Ba,v.c,v.i,p.o,Eu))break n;b.Dc=v.Ma,v=1;break t}t(v.a!=0),v=0}v=!v}v&&(l=c.a)}else l=c.a}else{if((c=new ey)==null){S=1;break e}if(c.Fa=b.na,c.P=b.P,c.qc=b.Sa,kf(c,v)){if((l=$u(v.width,v.height,S.Oa,S.ba))==0){if(c.Aa=0,p=S.Oa,t((b=c)!=null),p!=null){if(0<(A=0>(A=p.Md)?0:100<A?255:255*A/100)){for(O=z=0;4>O;++O)12>(X=b.pb[O]).lc&&(X.ia=A*tM[0>X.lc?0:X.lc]>>3),z|=X.ia;z&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=p.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}ty(c,v)||(l=c.a)}}else l=c.a}l==0&&S.Oa!=null&&S.Oa.fd&&(l=zl(S.ba))}S=l}x=S!=0?null:11>x?E.f.RGBA.eb:E.f.kb.y}else x=null;return x};var v5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(H,oe){for(var ge="",M=0;M<4;M++)ge+=String.fromCharCode(H[oe++]);return ge}function h(H,oe){return(H[oe+0]<<0|H[oe+1]<<8|H[oe+2]<<16)>>>0}function g(H,oe){return(H[oe+0]<<0|H[oe+1]<<8|H[oe+2]<<16|H[oe+3]<<24)>>>0}new u;var y=[0],m=[0],C=[],D=new u,N=e,I=function(H,oe){var ge={},M=0,L=!1,W=0,V=0;if(ge.frames=[],!function(k,F,$,Z){for(var re=0;re<Z;re++)if(k[F+re]!=$.charCodeAt(re))return!0;return!1}(H,oe,"RIFF",4)){var le,ue;for(g(H,oe+=4),oe+=8;oe<H.length;){var fe=d(H,oe),ne=g(H,oe+=4);oe+=4;var he=ne+(1&ne);switch(fe){case"VP8 ":case"VP8L":ge.frames[M]===void 0&&(ge.frames[M]={}),(_=ge.frames[M]).src_off=L?V:oe-8,_.src_size=W+ne+8,M++,L&&(L=!1,W=0,V=0);break;case"VP8X":(_=ge.header={}).feature_flags=H[oe];var ve=oe+4;_.canvas_width=1+h(H,ve),ve+=3,_.canvas_height=1+h(H,ve),ve+=3;break;case"ALPH":L=!0,W=he+8,V=oe-8;break;case"ANIM":(_=ge.header).bgcolor=g(H,oe),ve=oe+4,_.loop_count=(le=H)[(ue=ve)+0]<<0|le[ue+1]<<8,ve+=2;break;case"ANMF":var Fe,_;(_=ge.frames[M]={}).offset_x=2*h(H,oe),oe+=3,_.offset_y=2*h(H,oe),oe+=3,_.width=1+h(H,oe),oe+=3,_.height=1+h(H,oe),oe+=3,_.duration=h(H,oe),oe+=3,Fe=H[oe++],_.dispose=1&Fe,_.blend=Fe>>1&1}fe!="ANMF"&&(oe+=he)}return ge}}(N,0);I.response=N,I.rgbaoutput=!0,I.dataurl=!1;var P=I.header?I.header:null,B=I.frames?I.frames:null;if(P){P.loop_counter=P.loop_count,y=[P.canvas_height],m=[P.canvas_width];for(var J=0;J<B.length&&B[J].blend!=0;J++);}var ie=B[0],me=D.WebPDecodeRGBA(N,ie.src_off,ie.src_size,m,y);ie.rgba=me,ie.imgwidth=m[0],ie.imgheight=y[0];for(var te=0;te<m[0]*y[0]*4;te++)C[te]=me[te];return this.width=m,this.height=y,this.data=C,this}(function(e){var t=function(){return typeof Cg=="function"},n=function(y,m,C,D){var N=4,I=s;switch(D){case e.image_compression.FAST:N=1,I=o;break;case e.image_compression.MEDIUM:N=6,I=a;break;case e.image_compression.SLOW:N=9,I=u}y=r(y,m,C,I);var P=Cg(y,{level:N});return e.__addimage__.arrayBufferToBinaryString(P)},r=function(y,m,C,D){for(var N,I,P,B=y.length/m,J=new Uint8Array(y.length+B),ie=h(),me=0;me<B;me+=1){if(P=me*m,N=y.subarray(P,P+m),D)J.set(D(N,C,I),P+me);else{for(var te,H=ie.length,oe=[];te<H;te+=1)oe[te]=ie[te](N,C,I);var ge=g(oe.concat());J.set(oe[ge],P+me)}I=N}return J},i=function(y){var m=Array.apply([],y);return m.unshift(0),m},o=function(y,m){var C,D=[],N=y.length;D[0]=1;for(var I=0;I<N;I+=1)C=y[I-m]||0,D[I+1]=y[I]-C+256&255;return D},s=function(y,m,C){var D,N=[],I=y.length;N[0]=2;for(var P=0;P<I;P+=1)D=C&&C[P]||0,N[P+1]=y[P]-D+256&255;return N},a=function(y,m,C){var D,N,I=[],P=y.length;I[0]=3;for(var B=0;B<P;B+=1)D=y[B-m]||0,N=C&&C[B]||0,I[B+1]=y[B]+256-(D+N>>>1)&255;return I},u=function(y,m,C){var D,N,I,P,B=[],J=y.length;B[0]=4;for(var ie=0;ie<J;ie+=1)D=y[ie-m]||0,N=C&&C[ie]||0,I=C&&C[ie-m]||0,P=d(D,N,I),B[ie+1]=y[ie]-P+256&255;return B},d=function(y,m,C){if(y===m&&m===C)return y;var D=Math.abs(m-C),N=Math.abs(y-C),I=Math.abs(y+m-C-C);return D<=N&&D<=I?y:N<=I?m:C},h=function(){return[i,o,s,a,u]},g=function(y){var m=y.map(function(C){return C.reduce(function(D,N){return D+Math.abs(N)},0)});return m.indexOf(Math.min.apply(null,m))};e.processPNG=function(y,m,C,D){var N,I,P,B,J,ie,me,te,H,oe,ge,M,L,W,V,le=this.decode.FLATE_DECODE,ue="";if(this.__addimage__.isArrayBuffer(y)&&(y=new Uint8Array(y)),this.__addimage__.isArrayBufferView(y)){if(y=(P=new Nj(y)).imgData,I=P.bits,N=P.colorSpace,J=P.colors,[4,6].indexOf(P.colorType)!==-1){if(P.bits===8){H=(te=P.pixelBitlength==32?new Uint32Array(P.decodePixels().buffer):P.pixelBitlength==16?new Uint16Array(P.decodePixels().buffer):new Uint8Array(P.decodePixels().buffer)).length,ge=new Uint8Array(H*P.colors),oe=new Uint8Array(H);var fe,ne=P.pixelBitlength-P.bits;for(W=0,V=0;W<H;W++){for(L=te[W],fe=0;fe<ne;)ge[V++]=L>>>fe&255,fe+=P.bits;oe[W]=L>>>fe&255}}if(P.bits===16){H=(te=new Uint32Array(P.decodePixels().buffer)).length,ge=new Uint8Array(H*(32/P.pixelBitlength)*P.colors),oe=new Uint8Array(H*(32/P.pixelBitlength)),M=P.colors>1,W=0,V=0;for(var he=0;W<H;)L=te[W++],ge[V++]=L>>>0&255,M&&(ge[V++]=L>>>16&255,L=te[W++],ge[V++]=L>>>0&255),oe[he++]=L>>>16&255;I=8}D!==e.image_compression.NONE&&t()?(y=n(ge,P.width*P.colors,P.colors,D),me=n(oe,P.width,1,D)):(y=ge,me=oe,le=void 0)}if(P.colorType===3&&(N=this.color_spaces.INDEXED,ie=P.palette,P.transparency.indexed)){var ve=P.transparency.indexed,Fe=0;for(W=0,H=ve.length;W<H;++W)Fe+=ve[W];if((Fe/=255)===H-1&&ve.indexOf(0)!==-1)B=[ve.indexOf(0)];else if(Fe!==H){for(te=P.decodePixels(),oe=new Uint8Array(te.length),W=0,H=te.length;W<H;W++)oe[W]=ve[te[W]];me=n(oe,P.width,1)}}var _=function(k){var F;switch(k){case e.image_compression.FAST:F=11;break;case e.image_compression.MEDIUM:F=13;break;case e.image_compression.SLOW:F=14;break;default:F=12}return F}(D);return le===this.decode.FLATE_DECODE&&(ue="/Predictor "+_+" "),ue+="/Colors "+J+" /BitsPerComponent "+I+" /Columns "+P.width,(this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y))&&(y=this.__addimage__.arrayBufferToBinaryString(y)),(me&&this.__addimage__.isArrayBuffer(me)||this.__addimage__.isArrayBufferView(me))&&(me=this.__addimage__.arrayBufferToBinaryString(me)),{alias:C,data:y,index:m,filter:le,decodeParameters:ue,transparency:B,palette:ie,sMask:me,predictor:_,width:P.width,height:P.height,bitsPerComponent:I,colorSpace:N}}}})(rt.API),function(e){e.processGIF89A=function(t,n,r,i){var o=new Mj(t),s=o.width,a=o.height,u=[];o.decodeAndBlitFrameRGBA(0,u);var d={data:u,width:s,height:a},h=new mw(100).encode(d,100);return e.processJPEG.call(this,h,n,r,i)},e.processGIF87A=e.processGIF89A}(rt.API),po.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},po.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(n){ln.log("bit decode error:"+n)}},po.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,a=0;a<8&&8*i+a<this.width;a++){var u=this.palette[o>>7-a&1];this.data[s+4*a]=u.blue,this.data[s+4*a+1]=u.green,this.data[s+4*a+2]=u.red,this.data[s+4*a+3]=255}n!==0&&(this.pos+=4-n)}},po.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,a=o>>4,u=15&o,d=this.palette[a];if(this.data[s]=d.blue,this.data[s+1]=d.green,this.data[s+2]=d.red,this.data[s+3]=255,2*i+1>=this.width)break;d=this.palette[u],this.data[s+4]=d.blue,this.data[s+4+1]=d.green,this.data[s+4+2]=d.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},po.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}e!==0&&(this.pos+=4-e)}},po.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&t)/t*255|0,u=(o>>10&t)/t*255|0,d=o>>15?255:0,h=r*this.width*4+4*i;this.data[h]=u,this.data[h+1]=a,this.data[h+2]=s,this.data[h+3]=d}this.pos+=e}},po.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,u=(s>>5&n)/n*255|0,d=(s>>11)/t*255|0,h=i*this.width*4+4*o;this.data[h]=d,this.data[h+1]=u,this.data[h+2]=a,this.data[h+3]=255}this.pos+=e}},po.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},po.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=s}},po.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,n,r,i){var o=new po(t,!1),s=o.width,a=o.height,u={data:o.getData(),width:s,height:a},d=new mw(100).encode(u,100);return e.processJPEG.call(this,d,n,r,i)}}(rt.API),gA.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,n,r,i){var o=new gA(t,!1),s=o.width,a=o.height,u={data:o.getData(),width:s,height:a},d=new mw(100).encode(u,100);return e.processJPEG.call(this,d,n,r,i)}}(rt.API),rt.API.processRGBA=function(e,t,n){for(var r=e.data,i=r.length,o=new Uint8Array(i/4*3),s=new Uint8Array(i/4),a=0,u=0,d=0;d<i;d+=4){var h=r[d],g=r[d+1],y=r[d+2],m=r[d+3];o[a++]=h,o[a++]=g,o[a++]=y,s[u++]=m}var C=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:C,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},rt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},nl=rt.API,_g=nl.getCharWidthsArray=function(e,t){var n,r,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:i.metadata.Unicode.widths,u=a.fof?a.fof:1,d=t.kerning?t.kerning:i.metadata.Unicode.kerning,h=d.fof?d.fof:1,g=t.doKerning!==!1,y=0,m=e.length,C=0,D=a[0]||u,N=[];for(n=0;n<m;n++)r=e.charCodeAt(n),typeof i.metadata.widthOfString=="function"?N.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(y=g&&nn(d[r])==="object"&&!isNaN(parseInt(d[r][C],10))?d[r][C]/h:0,N.push((a[r]||D)/u+y)),C=r;return N},fA=nl.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return nl.processArabic&&(e=nl.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,n,i)/n:_g.apply(this,arguments).reduce(function(o,s){return o+s},0)},hA=function(e,t,n,r){for(var i=[],o=0,s=e.length,a=0;o!==s&&a+t[o]<n;)a+=t[o],o++;i.push(e.slice(0,o));var u=o;for(a=0;o!==s;)a+t[o]>r&&(i.push(e.slice(u,o)),a=0,u=o),a+=t[o],o++;return u!==o&&i.push(e.slice(u,o)),i},pA=function(e,t,n){n||(n={});var r,i,o,s,a,u,d,h=[],g=[h],y=n.textIndent||0,m=0,C=0,D=e.split(" "),N=_g.apply(this,[" ",n])[0];if(u=n.lineIndent===-1?D[0].length+2:n.lineIndent||0){var I=Array(u).join(" "),P=[];D.map(function(J){(J=J.split(/\s*\n/)).length>1?P=P.concat(J.map(function(ie,me){return(me&&ie.length?`
`:"")+ie})):P.push(J[0])}),D=P,u=fA.apply(this,[I,n])}for(o=0,s=D.length;o<s;o++){var B=0;if(r=D[o],u&&r[0]==`
`&&(r=r.substr(1),B=1),y+m+(C=(i=_g.apply(this,[r,n])).reduce(function(J,ie){return J+ie},0))>t||B){if(C>t){for(a=hA.apply(this,[r,i,t-(y+m),t]),h.push(a.shift()),h=[a.pop()];a.length;)g.push([a.shift()]);C=i.slice(r.length-(h[0]?h[0].length:0)).reduce(function(J,ie){return J+ie},0)}else h=[r];g.push(h),y=C+u,m=N}else h.push(r),y+=m+C,m=N}return d=u?function(J,ie){return(ie?I:"")+J.join(" ")}:function(J){return J.join(" ")},g.map(d)},nl.splitTextToSize=function(e,t,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var g=this.internal.getFont(h.fontName,h.fontStyle);return g.metadata.Unicode?{widths:g.metadata.Unicode.widths||{0:1},kerning:g.metadata.Unicode.kerning||{}}:{font:g.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var a,u,d=[];for(a=0,u=r.length;a<u;a++)d=d.concat(pA.apply(this,[r[a],s,o]));return d},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},r={},i=0;i<t.length;i++)n[t[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=t[i];var o=function(g){return"0x"+parseInt(g,10).toString(16)},s=e.__fontmetrics__.compress=function(g){var y,m,C,D,N=["{"];for(var I in g){if(y=g[I],isNaN(parseInt(I,10))?m="'"+I+"'":(I=parseInt(I,10),m=(m=o(I).slice(2)).slice(0,-1)+r[m.slice(-1)]),typeof y=="number")y<0?(C=o(y).slice(3),D="-"):(C=o(y).slice(2),D=""),C=D+C.slice(0,-1)+r[C.slice(-1)];else{if(nn(y)!=="object")throw new Error("Don't know what to do with value type "+nn(y)+".");C=s(y)}N.push(m+C)}return N.push("}"),N.join("")},a=e.__fontmetrics__.uncompress=function(g){if(typeof g!="string")throw new Error("Invalid argument passed to uncompress.");for(var y,m,C,D,N={},I=1,P=N,B=[],J="",ie="",me=g.length-1,te=1;te<me;te+=1)(D=g[te])=="'"?y?(C=y.join(""),y=void 0):y=[]:y?y.push(D):D=="{"?(B.push([P,C]),P={},C=void 0):D=="}"?((m=B.pop())[0][m[1]]=P,C=void 0,P=m[0]):D=="-"?I=-1:C===void 0?n.hasOwnProperty(D)?(J+=n[D],C=parseInt(J,16)*I,I=1,J=""):J+=D:n.hasOwnProperty(D)?(ie+=n[D],P[C]=parseInt(ie,16)*I,I=1,C=void 0,ie=""):ie+=D;return N},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(g){var y=g.font,m=h.Unicode[y.postScriptName];m&&(y.metadata.Unicode={},y.metadata.Unicode.widths=m.widths,y.metadata.Unicode.kerning=m.kerning);var C=d.Unicode[y.postScriptName];C&&(y.metadata.Unicode.encoding=C,y.encoding=C.codePages[0])}])}(rt.API),function(e){var t=function(n){for(var r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);return i};e.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=o.existsFileInVFS(i.postScriptName)===!1?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,a){a=/^\x00\x01\x00\x00/.test(a)?t(a):t(Df(a)),s.metadata=e.API.TTFFont.open(a),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,r)}}])}(rt),function(e){function t(){return(ot.canvg?Promise.resolve(ot.canvg):import("./chunk-SUF2KBL6.js")).catch(function(n){return Promise.reject(new Error("Could not load canvg: "+n))}).then(function(n){return n.default?n.default:n})}rt.API.addSvgAsImage=function(n,r,i,o,s,a,u,d){if(isNaN(r)||isNaN(i))throw ln.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(s))throw ln.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=o,h.height=s;var g=h.getContext("2d");g.fillStyle="#fff",g.fillRect(0,0,h.width,h.height);var y={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},m=this;return t().then(function(C){return C.fromString(g,n,y)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(C){return C.render(y)}).then(function(){m.addImage(h.toDataURL("image/jpeg",1),r,i,o,s,u,d)})}}(),rt.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(t,n);return this},rt.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),u=[],d=0,h=0,g=0;function y(C,D){var N,I=!1;for(N=0;N<C.length;N+=1)C[N]===D&&(I=!0);return I}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var m=a.length;for(g=0;g<m;g+=1)n[a[g]].value=n[a[g]].defaultValue,n[a[g]].explicitSet=!1}if(nn(e)==="object"){for(i in e)if(o=e[i],y(a,i)&&o!==void 0){if(n[i].type==="boolean"&&typeof o=="boolean")n[i].value=o;else if(n[i].type==="name"&&y(n[i].valueSet,o))n[i].value=o;else if(n[i].type==="integer"&&Number.isInteger(o))n[i].value=o;else if(n[i].type==="array"){for(d=0;d<o.length;d+=1)if(r=!0,o[d].length===1&&typeof o[d][0]=="number")u.push(String(o[d]-1));else if(o[d].length>1){for(h=0;h<o[d].length;h+=1)typeof o[d][h]!="number"&&(r=!1);r===!0&&u.push([o[d][0]-1,o[d][1]-1].join(" "))}n[i].value="["+u.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var C,D=[];for(C in n)n[C].explicitSet===!0&&(n[C].type==="name"?D.push("/"+C+" /"+n[C].value):D.push("/"+C+" "+n[C].value));D.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+D.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(e){var t=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),o=unescape(encodeURIComponent(r)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),d=o.length+s.length+a.length+i.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(i+o+s+a+u),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(rt.API),function(e){var t=e.API,n=t.pdfEscape16=function(o,s){for(var a,u=s.metadata.Unicode.widths,d=["","0","00","000","0000"],h=[""],g=0,y=o.length;g<y;++g){if(a=s.metadata.characterToGlyph(o.charCodeAt(g)),s.metadata.glyIdsUsed.push(a),s.metadata.toUnicode[a]=o.charCodeAt(g),u.indexOf(a)==-1&&(u.push(a),u.push([parseInt(s.metadata.widthOfGlyph(a),10)])),a=="0")return h.join("");a=a.toString(16),h.push(d[4-a.length],a)}return h.join("")},r=function(o){var s,a,u,d,h,g,y;for(h=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,u=[],g=0,y=(a=Object.keys(o).sort(function(m,C){return m-C})).length;g<y;g++)s=a[g],u.length>=100&&(h+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar`,u=[]),o[s]!==void 0&&o[s]!==null&&typeof o[s].toString=="function"&&(d=("0000"+o[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),u.push("<"+s+"><"+d+">"));return u.length&&(h+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar
`),h+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(o){(function(s){var a=s.font,u=s.out,d=s.newObject,h=s.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="Identity-H"){for(var g=a.metadata.Unicode.widths,y=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),m="",C=0;C<y.length;C++)m+=String.fromCharCode(y[C]);var D=d();h({data:m,addLength1:!0,objectId:D}),u("endobj");var N=d();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:N}),u("endobj");var I=d();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+il(a.fontName)),u("/FontFile2 "+D+" 0 R"),u("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),u("/Flags "+a.metadata.flags),u("/StemV "+a.metadata.stemV),u("/ItalicAngle "+a.metadata.italicAngle),u("/Ascent "+a.metadata.ascender),u("/Descent "+a.metadata.decender),u("/CapHeight "+a.metadata.capHeight),u(">>"),u("endobj");var P=d();u("<<"),u("/Type /Font"),u("/BaseFont /"+il(a.fontName)),u("/FontDescriptor "+I+" 0 R"),u("/W "+e.API.PDFObject.convert(g)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+a.encoding+")"),u(">>"),u(">>"),u("endobj"),a.objectNumber=d(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+N+" 0 R"),u("/BaseFont /"+il(a.fontName)),u("/Encoding /"+a.encoding),u("/DescendantFonts ["+P+" 0 R]"),u(">>"),u("endobj"),a.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(s){var a=s.font,u=s.out,d=s.newObject,h=s.putStream;if(a.metadata instanceof e.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var g=a.metadata.rawData,y="",m=0;m<g.length;m++)y+=String.fromCharCode(g[m]);var C=d();h({data:y,addLength1:!0,objectId:C}),u("endobj");var D=d();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:D}),u("endobj");var N=d();u("<<"),u("/Descent "+a.metadata.decender),u("/CapHeight "+a.metadata.capHeight),u("/StemV "+a.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+C+" 0 R"),u("/Flags 96"),u("/FontBBox "+e.API.PDFObject.convert(a.metadata.bbox)),u("/FontName /"+il(a.fontName)),u("/ItalicAngle "+a.metadata.italicAngle),u("/Ascent "+a.metadata.ascender),u(">>"),u("endobj"),a.objectNumber=d();for(var I=0;I<a.metadata.hmtx.widths.length;I++)a.metadata.hmtx.widths[I]=parseInt(a.metadata.hmtx.widths[I]*(1e3/a.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+D+" 0 R/BaseFont/"+il(a.fontName)+"/FontDescriptor "+N+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),u("endobj"),a.isAlreadyPutted=!0}})(o)}]);var i=function(o){var s,a=o.text||"",u=o.x,d=o.y,h=o.options||{},g=o.mutex||{},y=g.pdfEscape,m=g.activeFontKey,C=g.fonts,D=m,N="",I=0,P="",B=C[D].encoding;if(C[D].encoding!=="Identity-H")return{text:a,x:u,y:d,options:h,mutex:g};for(P=a,D=m,Array.isArray(a)&&(P=a[0]),I=0;I<P.length;I+=1)C[D].metadata.hasOwnProperty("cmap")&&(s=C[D].metadata.cmap.unicode.codeMap[P[I].charCodeAt(0)]),s||P[I].charCodeAt(0)<256&&C[D].metadata.hasOwnProperty("Unicode")?N+=P[I]:N+="";var J="";return parseInt(D.slice(1))<14||B==="WinAnsiEncoding"?J=y(N,D).split("").map(function(ie){return ie.charCodeAt(0).toString(16)}).join(""):B==="Identity-H"&&(J=n(N,C[D])),g.isHex=!0,{text:J,x:u,y:d,options:h,mutex:g}};t.events.push(["postProcessText",function(o){var s=o.text||"",a=[],u={text:s,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(s)){var d=0;for(d=0;d<s.length;d+=1)Array.isArray(s[d])&&s[d].length===3?a.push([i(Object.assign({},u,{text:s[d][0]})).text,s[d][1],s[d][2]]):a.push(i(Object.assign({},u,{text:s[d]})).text);o.text=a}else o.text=i(Object.assign({},u,{text:s})).text}])}(rt),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0},e.addFileToVFS=function(n,r){return t.call(this),this.internal.vFS[n]=r,this},e.getFileFromVFS=function(n){return t.call(this),this.internal.vFS[n]!==void 0?this.internal.vFS[n]:null}}(rt.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,o,s,a,u,d,h,g=t,y=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],m=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],C={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},D={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},N=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],I=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),P=!1,B=0;this.__bidiEngine__={};var J=function(M){var L=M.charCodeAt(),W=L>>8,V=D[W];return V!==void 0?g[256*V+(255&L)]:W===252||W===253?"AL":I.test(W)?"L":W===8?"R":"N"},ie=function(M){for(var L,W=0;W<M.length;W++){if((L=J(M.charAt(W)))==="L")return!1;if(L==="R")return!0}return!1},me=function(M,L,W,V){var le,ue,fe,ne,he=L[V];switch(he){case"L":case"R":P=!1;break;case"N":case"AN":break;case"EN":P&&(he="AN");break;case"AL":P=!0,he="R";break;case"WS":he="N";break;case"CS":V<1||V+1>=L.length||(le=W[V-1])!=="EN"&&le!=="AN"||(ue=L[V+1])!=="EN"&&ue!=="AN"?he="N":P&&(ue="AN"),he=ue===le?ue:"N";break;case"ES":he=(le=V>0?W[V-1]:"B")==="EN"&&V+1<L.length&&L[V+1]==="EN"?"EN":"N";break;case"ET":if(V>0&&W[V-1]==="EN"){he="EN";break}if(P){he="N";break}for(fe=V+1,ne=L.length;fe<ne&&L[fe]==="ET";)fe++;he=fe<ne&&L[fe]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(ne=L.length,fe=V+1;fe<ne&&L[fe]==="NSM";)fe++;if(fe<ne){var ve=M[V],Fe=ve>=1425&&ve<=2303||ve===64286;if(le=L[fe],Fe&&(le==="R"||le==="AL")){he="R";break}}}he=V<1||(le=L[V-1])==="B"?"N":W[V-1];break;case"B":P=!1,i=!0,he=B;break;case"S":o=!0,he="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":P=!1;break;case"BN":he="N"}return he},te=function(M,L,W){var V=M.split("");return W&&H(V,W,{hiLevel:B}),V.reverse(),L&&L.reverse(),V.join("")},H=function(M,L,W){var V,le,ue,fe,ne,he=-1,ve=M.length,Fe=0,_=[],k=B?m:y,F=[];for(P=!1,i=!1,o=!1,le=0;le<ve;le++)F[le]=J(M[le]);for(ue=0;ue<ve;ue++){if(ne=Fe,_[ue]=me(M,F,_,ue),V=240&(Fe=k[ne][C[_[ue]]]),Fe&=15,L[ue]=fe=k[Fe][5],V>0)if(V===16){for(le=he;le<ue;le++)L[le]=1;he=-1}else he=-1;if(k[Fe][6])he===-1&&(he=ue);else if(he>-1){for(le=he;le<ue;le++)L[le]=fe;he=-1}F[ue]==="B"&&(L[ue]=0),W.hiLevel|=fe}o&&function($,Z,re){for(var se=0;se<re;se++)if($[se]==="S"){Z[se]=B;for(var ae=se-1;ae>=0&&$[ae]==="WS";ae--)Z[ae]=B}}(F,L,ve)},oe=function(M,L,W,V,le){if(!(le.hiLevel<M)){if(M===1&&B===1&&!i)return L.reverse(),void(W&&W.reverse());for(var ue,fe,ne,he,ve=L.length,Fe=0;Fe<ve;){if(V[Fe]>=M){for(ne=Fe+1;ne<ve&&V[ne]>=M;)ne++;for(he=Fe,fe=ne-1;he<fe;he++,fe--)ue=L[he],L[he]=L[fe],L[fe]=ue,W&&(ue=W[he],W[he]=W[fe],W[fe]=ue);Fe=ne}Fe++}}},ge=function(M,L,W){var V=M.split(""),le={hiLevel:B};return W||(W=[]),H(V,W,le),function(ue,fe,ne){if(ne.hiLevel!==0&&h)for(var he,ve=0;ve<ue.length;ve++)fe[ve]===1&&(he=N.indexOf(ue[ve]))>=0&&(ue[ve]=N[he+1])}(V,W,le),oe(2,V,L,W,le),oe(1,V,L,W,le),V.join("")};return this.__bidiEngine__.doBidiReorder=function(M,L,W){if(function(le,ue){if(ue)for(var fe=0;fe<le.length;fe++)ue[fe]=fe;a===void 0&&(a=ie(le)),d===void 0&&(d=ie(le))}(M,L),s||!u||d)if(s&&u&&a^d)B=a?1:0,M=te(M,L,W);else if(!s&&u&&d)B=a?1:0,M=ge(M,L,W),M=te(M,L);else if(!s||a||u||d){if(s&&!u&&a^d)M=te(M,L),a?(B=0,M=ge(M,L,W)):(B=1,M=ge(M,L,W),M=te(M,L));else if(s&&a&&!u&&d)B=1,M=ge(M,L,W),M=te(M,L);else if(!s&&!u&&a^d){var V=h;a?(B=1,M=ge(M,L,W),B=0,h=!1,M=ge(M,L,W),h=V):(B=0,M=ge(M,L,W),M=te(M,L),B=1,h=!1,M=ge(M,L,W),h=V,M=te(M,L))}}else B=0,M=ge(M,L,W);else B=a?1:0,M=ge(M,L,W);return M},this.__bidiEngine__.setOptions=function(M){M&&(s=M.isInputVisual,u=M.isOutputVisual,a=M.isInputRtl,d=M.isOutputRtl,h=M.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text,o=(r.x,r.y,r.options||{}),s=(r.mutex,o.lang,[]);if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,n.setOptions(o),Object.prototype.toString.call(i)==="[object Array]"){var a=0;for(s=[],a=0;a<i.length;a+=1)Object.prototype.toString.call(i[a])==="[object Array]"?s.push([n.doBidiReorder(i[a][0]),i[a][1],i[a][2]]):s.push([n.doBidiReorder(i[a])]);r.text=s}else r.text=n.doBidiReorder(i);n.setOptions({isInputVisual:!0})}])}(rt),rt.API.TTFFont=function(){function e(t){var n;if(this.rawData=t,n=this.contents=new _a(t),this.contents.pos=4,n.readString(4)==="ttcf")throw new Error("TTCF not supported.");n.pos=0,this.parse(),this.subset=new qj(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Tj(this.contents),this.head=new Lj(this),this.name=new jj(this),this.cmap=new AA(this),this.toUnicode={},this.hhea=new Oj(this),this.maxp=new Bj(this),this.hmtx=new Vj(this),this.post=new Rj(this),this.os2=new kj(this),this.loca=new zj(this),this.glyf=new Uj(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,n,r,i,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var s,a,u,d;for(d=[],s=0,a=(u=this.bbox).length;s<a;s++)t=u[s],d.push(Math.round(t*this.scaleFactor));return d}.call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(n=i>>16)&&(n=-(1+(65535^n))),this.italicAngle=+(n+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var n;return((n=this.cmap.unicode)!=null?n.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var n;return n=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*n},e.prototype.widthOfString=function(t,n,r){var i,o,s,a;for(s=0,o=0,a=(t=""+t).length;0<=a?o<a:o>a;o=0<=a?++o:--o)i=t.charCodeAt(o),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/n)||0;return s*(n/1e3)},e.prototype.lineHeight=function(t,n){var r;return n==null&&(n=!1),r=n?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e}();var go,_a=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var n,r;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r[n]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var n,r,i;for(i=[],n=0,r=t.length;0<=r?n<r:n>r;n=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(n)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,n,r,i,o,s,a,u;return t=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),u=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^n)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^o)+65536*(255^s)+256*(255^a)+(255^u)+1):72057594037927940*t+281474976710656*n+1099511627776*r+4294967296*i+16777216*o+65536*s+256*a+u},e.prototype.writeLongLong=function(t){var n,r;return n=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var n,r;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n.push(this.readByte());return n},e.prototype.write=function(t){var n,r,i,o;for(o=[],r=0,i=t.length;r<i;r++)n=t[r],o.push(this.writeByte(n));return o},e}(),Tj=function(){var e;function t(n){var r,i,o;for(this.scalarType=n.readInt(),this.tableCount=n.readShort(),this.searchRange=n.readShort(),this.entrySelector=n.readShort(),this.rangeShift=n.readShort(),this.tables={},i=0,o=this.tableCount;0<=o?i<o:i>o;i=0<=o?++i:--i)r={tag:n.readString(4),checksum:n.readInt(),offset:n.readInt(),length:n.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(n){var r,i,o,s,a,u,d,h,g,y,m,C,D;for(D in m=Object.keys(n).length,u=Math.log(2),g=16*Math.floor(Math.log(m)/u),s=Math.floor(g/u),h=16*m-g,(i=new _a).writeInt(this.scalarType),i.writeShort(m),i.writeShort(g),i.writeShort(s),i.writeShort(h),o=16*m,d=i.pos+o,a=null,C=[],n)for(y=n[D],i.writeString(D),i.writeInt(e(y)),i.writeInt(d),i.writeInt(y.length),C=C.concat(y),D==="head"&&(a=d),d+=y.length;d%4;)C.push(0),d++;return i.write(C),r=2981146554-e(i.data),i.pos=a+8,i.writeUInt32(r),i.data},e=function(n){var r,i,o,s;for(n=NA.call(n);n.length%4;)n.push(0);for(o=new _a(n),i=0,r=0,s=n.length;r<s;r=r+=4)i+=o.readUInt32();return 4294967295&i},t}(),Pj={}.hasOwnProperty,zo=function(e,t){for(var n in t)Pj.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};go=function(){function e(t){var n;this.file=t,n=this.file.directory.tables[this.tag],this.exists=!!n,n&&(this.offset=n.offset,this.length=n.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var Lj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var r;return(r=new _a).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(n),r.writeShort(this.glyphDataFormat),r.data},t}(),vA=function(){function e(t,n){var r,i,o,s,a,u,d,h,g,y,m,C,D,N,I,P,B;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=n+t.readInt(),g=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(u=0;u<256;++u)this.codeMap[u]=t.readByte();break;case 4:for(m=t.readUInt16(),y=m/2,t.pos+=6,o=function(){var J,ie;for(ie=[],u=J=0;0<=y?J<y:J>y;u=0<=y?++J:--J)ie.push(t.readUInt16());return ie}(),t.pos+=2,D=function(){var J,ie;for(ie=[],u=J=0;0<=y?J<y:J>y;u=0<=y?++J:--J)ie.push(t.readUInt16());return ie}(),d=function(){var J,ie;for(ie=[],u=J=0;0<=y?J<y:J>y;u=0<=y?++J:--J)ie.push(t.readUInt16());return ie}(),h=function(){var J,ie;for(ie=[],u=J=0;0<=y?J<y:J>y;u=0<=y?++J:--J)ie.push(t.readUInt16());return ie}(),i=(this.length-t.pos+this.offset)/2,a=function(){var J,ie;for(ie=[],u=J=0;0<=i?J<i:J>i;u=0<=i?++J:--J)ie.push(t.readUInt16());return ie}(),u=I=0,B=o.length;I<B;u=++I)for(N=o[u],r=P=C=D[u];C<=N?P<=N:P>=N;r=C<=N?++P:--P)h[u]===0?s=r+d[u]:(s=a[h[u]/2+(r-C)-(y-u)]||0)!==0&&(s+=d[u]),this.codeMap[r]=65535&s}t.pos=g}return e.encode=function(t,n){var r,i,o,s,a,u,d,h,g,y,m,C,D,N,I,P,B,J,ie,me,te,H,oe,ge,M,L,W,V,le,ue,fe,ne,he,ve,Fe,_,k,F,$,Z,re,se,ae,Ee,Se,ke;switch(V=new _a,s=Object.keys(t).sort(function(Pe,it){return Pe-it}),n){case"macroman":for(D=0,N=function(){var Pe=[];for(C=0;C<256;++C)Pe.push(0);return Pe}(),P={0:0},o={},le=0,he=s.length;le<he;le++)P[ae=t[i=s[le]]]==null&&(P[ae]=++D),o[i]={old:t[i],new:P[t[i]]},N[i]=P[t[i]];return V.writeUInt16(1),V.writeUInt16(0),V.writeUInt32(12),V.writeUInt16(0),V.writeUInt16(262),V.writeUInt16(0),V.write(N),{charMap:o,subtable:V.data,maxGlyphID:D+1};case"unicode":for(L=[],g=[],B=0,P={},r={},I=d=null,ue=0,ve=s.length;ue<ve;ue++)P[ie=t[i=s[ue]]]==null&&(P[ie]=++B),r[i]={old:ie,new:P[ie]},a=P[ie]-i,I!=null&&a===d||(I&&g.push(I),L.push(i),d=a),I=i;for(I&&g.push(I),g.push(65535),L.push(65535),ge=2*(oe=L.length),H=2*Math.pow(Math.log(oe)/Math.LN2,2),y=Math.log(H/2)/Math.LN2,te=2*oe-H,u=[],me=[],m=[],C=fe=0,Fe=L.length;fe<Fe;C=++fe){if(M=L[C],h=g[C],M===65535){u.push(0),me.push(0);break}if(M-(W=r[M].new)>=32768)for(u.push(0),me.push(2*(m.length+oe-C)),i=ne=M;M<=h?ne<=h:ne>=h;i=M<=h?++ne:--ne)m.push(r[i].new);else u.push(W-M),me.push(0)}for(V.writeUInt16(3),V.writeUInt16(1),V.writeUInt32(12),V.writeUInt16(4),V.writeUInt16(16+8*oe+2*m.length),V.writeUInt16(0),V.writeUInt16(ge),V.writeUInt16(H),V.writeUInt16(y),V.writeUInt16(te),re=0,_=g.length;re<_;re++)i=g[re],V.writeUInt16(i);for(V.writeUInt16(0),se=0,k=L.length;se<k;se++)i=L[se],V.writeUInt16(i);for(Ee=0,F=u.length;Ee<F;Ee++)a=u[Ee],V.writeUInt16(a);for(Se=0,$=me.length;Se<$;Se++)J=me[Se],V.writeUInt16(J);for(ke=0,Z=m.length;ke<Z;ke++)D=m[ke],V.writeUInt16(D);return{charMap:r,subtable:V.data,maxGlyphID:B+1}}},e}(),AA=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="cmap",t.prototype.parse=function(n){var r,i,o;for(n.pos=this.offset,this.version=n.readUInt16(),o=n.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=o?i<o:i>o;i=0<=o?++i:--i)r=new vA(n,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},t.encode=function(n,r){var i,o;return r==null&&(r="macroman"),i=vA.encode(n,r),(o=new _a).writeUInt16(0),o.writeUInt16(1),i.table=o.data.concat(i.subtable),i},t}(),Oj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t}(),kj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var r,i;for(i=[],r=0;r<10;++r)i.push(n.readByte());return i}(),this.charRange=function(){var r,i;for(i=[],r=0;r<4;++r)i.push(n.readInt());return i}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var r,i;for(i=[],r=0;r<2;r=++r)i.push(n.readInt());return i}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t}(),Rj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="post",t.prototype.parse=function(n){var r,i,o;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:break;case 131072:var s;for(i=n.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],o=[];n.pos<this.offset+this.length;)r=n.readByte(),o.push(this.names.push(n.readString(r)));return o;case 151552:return i=n.readUInt16(),this.offsets=n.read(i);case 196608:break;case 262144:return this.map=function(){var a,u,d;for(d=[],s=a=0,u=this.file.maxp.numGlyphs;0<=u?a<u:a>u;s=0<=u?++a:--a)d.push(n.readUInt32());return d}.call(this)}},t}(),Fj=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},jj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="name",t.prototype.parse=function(n){var r,i,o,s,a,u,d,h,g,y,m;for(n.pos=this.offset,n.readShort(),r=n.readShort(),u=n.readShort(),i=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+u+n.readShort()});for(d={},s=g=0,y=i.length;g<y;s=++g)o=i[s],n.pos=o.offset,h=n.readString(o.length),a=new Fj(h,o),d[m=o.nameID]==null&&(d[m]=[]),d[o.nameID].push(a);this.strings=d,this.copyright=d[0],this.fontFamily=d[1],this.fontSubfamily=d[2],this.uniqueSubfamily=d[3],this.fontName=d[4],this.version=d[5];try{this.postscriptName=d[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=d[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=d[7],this.manufacturer=d[8],this.designer=d[9],this.description=d[10],this.vendorUrl=d[11],this.designerUrl=d[12],this.license=d[13],this.licenseUrl=d[14],this.preferredFamily=d[15],this.preferredSubfamily=d[17],this.compatibleFull=d[18],this.sampleText=d[19]},t}(),Bj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t}(),Vj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="hmtx",t.prototype.parse=function(n){var r,i,o,s,a,u,d;for(n.pos=this.offset,this.metrics=[],r=0,u=this.file.hhea.numberOfMetrics;0<=u?r<u:r>u;r=0<=u?++r:--r)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var h,g;for(g=[],r=h=0;0<=o?h<o:h>o;r=0<=o?++h:--h)g.push(n.readInt16());return g}(),this.widths=function(){var h,g,y,m;for(m=[],h=0,g=(y=this.metrics).length;h<g;h++)s=y[h],m.push(s.advance);return m}.call(this),i=this.widths[this.widths.length-1],d=[],r=a=0;0<=o?a<o:a>o;r=0<=o?++a:--a)d.push(this.widths.push(i));return d},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t}(),NA=[].slice,Uj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var r,i,o,s,a,u,d,h,g,y;return n in this.cache?this.cache[n]:(s=this.file.loca,r=this.file.contents,i=s.indexOf(n),(o=s.lengthOf(n))===0?this.cache[n]=null:(r.pos=this.offset+i,a=(u=new _a(r.read(o))).readShort(),h=u.readShort(),y=u.readShort(),d=u.readShort(),g=u.readShort(),this.cache[n]=a===-1?new $j(u,h,y,d,g):new Hj(u,a,h,y,d,g),this.cache[n]))},t.prototype.encode=function(n,r,i){var o,s,a,u,d;for(a=[],s=[],u=0,d=r.length;u<d;u++)o=n[r[u]],s.push(a.length),o&&(a=a.concat(o.encode(i)));return s.push(a.length),{table:a,offsets:s}},t}(),Hj=function(){function e(t,n,r,i,o,s){this.raw=t,this.numberOfContours=n,this.xMin=r,this.yMin=i,this.xMax=o,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),$j=function(){function e(t,n,r,i,o){var s,a;for(this.raw=t,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return e.prototype.encode=function(){var t,n,r;for(n=new _a(NA.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)n.pos=this.glyphOffsets[t];return n.data},e}(),zj=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zo(t,go),t.prototype.tag="loca",t.prototype.parse=function(n){var r,i;return n.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=2)s.push(2*n.readUInt16());return s}.call(this):function(){var o,s;for(s=[],i=0,o=this.length;i<o;i+=4)s.push(n.readUInt32());return s}.call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]},t.prototype.encode=function(n,r){for(var i=new Uint32Array(this.offsets.length),o=0,s=0,a=0;a<i.length;++a)if(i[a]=o,s<r.length&&r[s]==a){++s,i[a]=o;var u=this.offsets[a],d=this.offsets[a+1]-u;d>0&&(o+=d)}for(var h=new Array(4*i.length),g=0;g<i.length;++g)h[4*g+3]=255&i[g],h[4*g+2]=(65280&i[g])>>8,h[4*g+1]=(16711680&i[g])>>16,h[4*g]=(4278190080&i[g])>>24;return h},t}(),qj=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,n,r,i,o;for(n in i=this.font.cmap.tables[0].codeMap,t={},o=this.subset)r=o[n],t[n]=i[r];return t},e.prototype.glyphsFor=function(t){var n,r,i,o,s,a,u;for(i={},s=0,a=t.length;s<a;s++)i[o=t[s]]=this.font.glyf.glyphFor(o);for(o in n=[],i)(r=i[o])!=null&&r.compound&&n.push.apply(n,r.glyphIDs);if(n.length>0)for(o in u=this.glyphsFor(n))r=u[o],i[o]=r;return i},e.prototype.encode=function(t,n){var r,i,o,s,a,u,d,h,g,y,m,C,D,N,I;for(i in r=AA.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),m={0:0},I=r.charMap)m[(u=I[i]).old]=u.new;for(C in y=r.maxGlyphID,s)C in m||(m[C]=y++);return h=function(P){var B,J;for(B in J={},P)J[P[B]]=B;return J}(m),g=Object.keys(h).sort(function(P,B){return P-B}),D=function(){var P,B,J;for(J=[],P=0,B=g.length;P<B;P++)a=g[P],J.push(h[a]);return J}(),o=this.font.glyf.encode(s,D,m),d=this.font.loca.encode(o.offsets,D),N={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(n)},this.font.os2.exists&&(N["OS/2"]=this.font.os2.raw()),this.font.directory.encode(N)},e}();rt.API.PDFObject=function(){var e;function t(){}return e=function(n,r){return(Array(r+1).join("0")+n).slice(-r)},t.convert=function(n){var r,i,o,s;if(Array.isArray(n))return"["+function(){var a,u,d;for(d=[],a=0,u=n.length;a<u;a++)r=n[a],d.push(t.convert(r));return d}().join(" ")+"]";if(typeof n=="string")return"/"+n;if(n?.isString)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if({}.toString.call(n)==="[object Object]"){for(i in o=["<<"],n)s=n[i],o.push("/"+i+" "+t.convert(s));return o.push(">>"),o.join(`
`)}return""+n},t}();var xw=rt;var Jr=14,Og=class e{constructor(t){this.http=t;this.openSansRegular=null;this.openSansBold=null}generateLockerSwitchPDF(t){this.initFonts(new xw).pipe(_e(n=>this.addFormFields(n,t)),_e(n=>this.addHeadlines(n)),_e(n=>this.addKeySpace(n)),_e(n=>this.addNotes(n)),_e(n=>this.addSignature(n)),Mt(n=>this.addImage(n))).subscribe(n=>n.save(`astradirect_Antrag_Schliessfachtausch_${this.getDateSuffix()}.pdf`))}generateLockerListPDF(t,n){this.initFonts(new xw({orientation:"landscape"})).pipe(_e(r=>this.generateLockerTable(r,t,n))).subscribe(r=>r.save(`astradirect_Fachbelegung_${this.getDateSuffix()}.pdf`))}initFonts(t){let n=qe(t).pipe(Bt(r=>{r.addFileToVFS("opensans-regular-webfont.ttf",this.openSansRegular),r.addFont("opensans-regular-webfont.ttf","openSans","normal"),r.addFileToVFS("opensans-bold-webfont.ttf",this.openSansBold),r.addFont("opensans-bold-webfont.ttf","openSans","bold")}));return this.openSansBold===null||this.openSansRegular===null?this.http.get("/assets/fonts/opensans-regular-webfont.ttf",{responseType:"arraybuffer"}).pipe(Bt(r=>{this.openSansRegular=String.fromCharCode.apply(null,new Uint8Array(r))}),Mt(()=>this.http.get("/assets/fonts/opensans-bold-webfont.ttf",{responseType:"arraybuffer"})),Bt(r=>{this.openSansBold=String.fromCharCode.apply(null,new Uint8Array(r))}),Mt(()=>n)):n}addFormFields(t,n){return[{label:"Name, Vorname",data:n.name},{label:"Stra\xDFe und Hausnummer",data:n.street},{label:"PLZ und Ort",data:n.zipAndCity},{label:"Schlie\xDFfachnummer",data:n.lockerNo},{label:"Schl\xFCsselnummer",data:n.keyNo},{label:"Name der Schule",data:n.oldSchoolName}].forEach((r,i)=>{r.label==="Schlie\xDFfachnummer"?t.setFontSize(10).text(r.label,14,32.5+i*Jr).text("Schulklasse",114,32.5+i*Jr).text("im Schuljahr",146,32.5+i*Jr).setFillColor(240,240,240).rect(14,33.5+i*Jr,90,7,"F").rect(114,33.5+i*Jr,20,7,"F").rect(146,33.5+i*Jr,20,7,"F").rect(174,33.5+i*Jr,20,7,"F").setFontSize(12).text(r.data,16,38.5+i*Jr).text(n.currentClass,116,38.5+i*Jr).text(n.year1,148,38.5+i*Jr).text("/",169.5,38.5+i*Jr).text(n.year2,176,38.5+i*Jr):this.addField(t,r.label,r.data,32.5+i*Jr)}),[{label:"Neue Schule",data:n.newSchoolName},{label:"Standort",data:n.location},{label:"Wunschh\xF6he",data:n.height}].forEach((r,i)=>{this.addField(t,r.label,r.data,132.5+i*Jr)}),t}addField(t,n,r,i){t.setFont("openSans","normal").setFontSize(10).text(n,14,i).setFillColor(240,240,240).rect(14,i+1,180,7,"F").setFontSize(12).text(r,16,i+6)}addHeadlines(t){let n=t.setFont("openSans","bold").setFontSize(16).text("Antrag zur Teilnahme am Schlie\xDFfachtauschverfahren",14,20).setFontSize(14).splitTextToSize("Ich nehme am Tauschverfahren teil und beantrage ein Schlie\xDFfach am nachstehend aufgef\xFChrten Standort:",172);return t.text(n,14,120)}addKeySpace(t){return t.rect(14,172,180,35,"D").setFont("openSans","normal").setFontSize(12).text("Bitte alten Schl\xFCssel in diesem Feld mit Klebeband f\xFCr den Versand fixieren",32,191)}addNotes(t){let n=t.setFont("openSans","normal").setFontSize(9).splitTextToSize("Bei F\xE4chern mit Schl\xFCssel ist eine Bearbeitung des Antrags nur mit Zusendung des alten Schl\xFCssels m\xF6glich. Bitte fixieren Sie den Schl\xFCssel mit Klebeband auf diesem Schreiben, damit sich dieser nicht aus dem Kuvert bohrt. Den neuen Schl\xFCssel und die ge\xE4nderte Vertragsbest\xE4tigung erhalten Sie auf dem Postweg (nicht vergessen: vorher Schlie\xDFfach r\xE4umen und s\xE4ubern). Eine Verg\xFCtung f\xFCr die Zeit der Bearbeitung erfolgt nicht.",172),r=t.splitTextToSize("Wir erheben und nutzen Ihre Daten (Name, Adresse, Schule, Klasse) zur Erf\xFCllung des Vertrags. Wir nutzen Ihre Daten nicht zu Werbezwecken und geben Ihre Daten nicht zu diesen oder anderen Zwecken an Dritte weiter",172);return t.text(n,14,217).text(r,14,243).setFont("openSans","bold").text("Wichtiger Hinweis:",14,213).text("Erkl\xE4rung zum Datenschutz:",14,239)}addSignature(t){return t.line(14,263,79,263).line(14,280,79,280).setFont("openSans","normal").setFontSize(9).text("Ort, Datum",14,267).text("Unterschrift",14,284)}addImage(t){return this.http.get("/assets/img/astra_adresse_bw.png",{responseType:"arraybuffer"}).pipe(_e(n=>t.addImage(new Uint8Array(n),"PNG",140,255,51.3,30)))}generateLockerTable(t,n,r){let i=0,o=1;return n.forEach(s=>{i===0&&(o>1&&t.addPage(),t.setFont("openSans","bold").setFontSize(12).text(`Fachbelegung - Seite ${o} von ${Math.ceil(n.length/26)}`,14,20).setFontSize(10).text("Schule:",14,26).setFont("openSans","normal").text(r,28,26).setFillColor(0,174,239).setTextColor(255,255,2555).rect(14,32,269,6,"F").setFont("openSans","bold").setFontSize(10).text("Standort",16,36.5).text("Fachnummer",56,36.5).text("Schloss",86,36.5).text("Sch\xFCler:in",111,36.5).text("Klasse",176,36.5).text("Belegung bis",215,36.5).text("PIN-Code",248,36.5).text("Reihe",270,36.5).setFont("openSans","normal").setTextColor(0,0,0)),i%2!==0&&t.setFillColor(240,240,240).rect(14,38+i*6,269,6,"F");let a=t.splitTextToSize(s.location,40)[0],u=t.splitTextToSize(s.pupilName||"",65)[0],d=42.5+i*6;t.text(a,16,d).text(s.number||"",56,d).text(s.lockNumber||"",86,d).text(u,111,d).text(s.pupilClass||"",176,d).text(s.occupiedTo||"",215,d).text(s.pin||"",248,d).text(s.height+"",270,d),i++,i===25&&(i=0,o++)}),t}getDateSuffix(){let t=new Date,n=`0${t.getMonth()+1}`.slice(-2),r=`0${t.getDate()}`.slice(-2);return`${t.getFullYear()}${n}${r}`}static{this.\u0275fac=function(n){return new(n||e)(Ne(Rd))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var MA=class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Pr({type:e})}static{this.\u0275inj=Tr({providers:[Og,bg,Wb(Gb())],imports:[Td,g2,v2,ew,Td,g2,v2,ew]})}};var Iw=class{constructor(t,n,r){this.type=t;this.message=n;this.dismissible=r}},ll=class e{constructor(){this.notifications$=new Wt([])}notify(t,n,r=-1,i=!0){let o=new Iw(n,t,i),s=this.notifications$.getValue();s.push(o),this.notifications$.next(s),r>-1&&this.scheduleNotificationClosing(r,o)}scheduleNotificationClosing(t,n){Ka(t).subscribe(()=>this.removeNotification(n))}removeNotification(t){let n=this.notifications$.getValue(),r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.notifications$.next(n))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var Wj=Object.prototype.hasOwnProperty,kg=(e,t)=>e?Wj.call(e,t):!1;var Cf=e=>typeof e=="string"?{grade:null,prefix:e,suffix:""}:{grade:e.Number,prefix:e.Prefix,suffix:e.AddOn,year:e.SchoolYear},dl=e=>({Prefix:e.prefix,Number:e.grade,AddOn:e.suffix,SchoolYear:e.year}),AZ=e=>typeof e!="object"?!1:!!(kg(e,"grade")||kg(e,"prefix")||kg(e,"suffix")),NZ=e=>{let t=[],n=new Map;for(let r of e){let i=JSON.stringify({grade:r.grade,prefix:r.prefix,suffix:r.suffix,year:r.year});n.has(i)||(n.set(i,!0),t.push(r))}return t};function PA(e){return{name:e.City,zips:e.ZIP}}function Sw(e){return{id:e.Id,accessToken:e.AccessToken,email:e.Email,newsletter:e.Newsletter,isSchool:e.IsSchool,password:e.PasswordNew,mustChangePassword:e.MustChangePassword}}function xf(e){return{Id:e.id,AccessToken:e.accessToken,Email:e.email,Newsletter:e.newsletter,IsSchool:e.isSchool,PasswordNew:e.password,MustChangePassword:e.mustChangePassword}}var xu=class{static sanitizeIban(t){return t.trim().toUpperCase().replace(/\s+/gm,"")}static KeyNumberToLockModel(t,n=0){return t===null?"unknown":t===-6?"ispin":t===-5?"masterlock_arrows":t===-4?"ipin_mini":t===-3?n>5e6?"ipin_pro_transponder":"ipin_astra":t===-2?"ipin_mini":t===-1?"ipin_xl":t===0?"none":t>2e3?"masterlock_numbers":"key"}static filterDuplicates(t){return t.pipe(n0(n=>{let r="";for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&(typeof n[i]=="string"||typeof n[i]=="number")&&(r+=n[i]);return r}))}static schoolToString(t){return`${t.name}, ${t.street}, ${t.zip} ${t.city}`}};function LA(e){if((typeof e=="string"||typeof e=="number"||e instanceof Date)&&(e=Fg(e)),e.day&&e.month&&e.year)return`${e.year}-${Rg(e.month)}-${Rg(e.day)}`;throw{name:"DateConversionException",message:"Conversion to ISO8601 string failed - date invalid",toString:function(){return this.name+": "+this.message}}}function vo(e){if((typeof e=="string"||typeof e=="number"||e instanceof Date)&&(e=Fg(e)),e.day&&e.month&&e.year)return`${Rg(e.day)}.${Rg(e.month)}.${e.year}`;throw{name:"DateConversionException",message:"Conversion to LockersNet date string failed - date invalid",toString:function(){return this.name+": "+this.message}}}function Rg(e){return typeof e=="string"&&e.length==1||typeof e=="number"&&e<10?"0"+e:e+""}function Fg(e){if(typeof e=="string"){if(e=e.trim(),/^[0-3]?[0-9].[0-1]?[0-9].[1-2][0-9]{3}$/.test(e))return{day:e.split(".")[0],month:e.split(".")[1],year:e.split(".")[2]};if(/^[1-2][0-9]{3}-[0-1]?[0-9]-[0-3]?[0-9]$/.test(e))return{day:e.split("-")[2],month:e.split("-")[1],year:e.split("-")[0]};if(/^[0-9]+$/.test(e))return Fg(new Date(parseInt(e)));throw{name:"DateComponentException",message:"Conversion to date components failed - date not properly formatted",toString:function(){return this.name+": "+this.message}}}else{if(typeof e=="number")return Fg(new Date(Math.floor(e)));if(e instanceof Date)return{day:e.getDate(),month:e.getMonth()+1,year:e.getFullYear()};if(e.day&&e.month&&e.year)return e}throw{name:"DateComponentException",message:"Conversion to date components failed - input is not a valid format",toString:function(){return this.name+": "+this.message}}}function BZ(e,t){let n=new Date,r=new Date(t),i=e.getFullYear();return r.setDate(t.getDate()+56),n.getTime()<e.getTime()?{asap:`${i-1}/${i}`,next:`${i}/${i+1}`}:n.getTime()<r.getTime()?{asap:`${i}/${i+1}`,next:`${i}/${i+1}`}:{asap:`${i}/${i+1}`,next:`${i+1}/${i+2}`}}function OA(e){return{ContractId:e.id,LockerType:{LocationId:e.location.id,Location:e.location.description,LockerTypeId:e.locker.lockerTypeId,MaxHeight:e.locker.maxHeight,Price1:e.locker.prices[0],Price2:e.locker.prices[1],Price3:e.locker.prices[2],SelectedHeight:e.locker.height},School:{Id:e.school.id,Ident:e.school.ident,Description:e.school.name,Street:e.school.street,ZIP:e.school.zip,City:e.school.city,Country:e.school.country,BeginDateSummerHoliday:vo(e.school.beginSummerHoliday),EndDateSummerHoliday:vo(e.school.endSummerHoliday),PriceModel:e.school.priceModel,IsUniversity:e.school.isUniversity,IsDepositPossible:e.school.isDepositPossible},PaymentData:{AccountHolder:e.paymentData.accountOwner,AccountNo:e.paymentData.accountNo,BankCode:e.paymentData.bankcode,BIC:e.paymentData.bic,IBAN:e.paymentData.iban,NameOfBank:e.paymentData.nameOfBank,Sepa:e.paymentData.sepa},CustomerId:e.customerId,Name:`${e.lockerUser.lastName}, ${e.lockerUser.firstName}`,DateOfBirth:e.lockerUser.dateOfBirth?vo(e.lockerUser.dateOfBirth):"",Class:dl(e.lockerUser.class),Street:e.billingAddress.street,ZIP:e.billingAddress.zip,City:e.billingAddress.city,Country:e.billingAddress.country,Phone:e.billingAddress.phone,ContractStartDate:e.contractStartDate,ContractEndDate:e.contractEndDate,DepositOrInsurance:e.depositOrInsurance,PortalDisabled:e.portalDisabled,Deposit:e.deposit,StateId:e.locker.state,LockerNo:e.locker.lockerNumber+""||null,PinCode:e.locker.pinCode+""||null,KeyNumber:e.locker.keyNumber+""||null,PincodeChangeable:e.pincodeChangeable}}function dn(e){let t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Tt(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function jg(e,t){let n=dn(e);return isNaN(t)?Tt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}var Gj=Math.pow(10,8)*24*60*60*1e3,ZZ=-Gj,Bg=6048e5;var kA=6e4,RA=36e5,FA=1e3;var Yj=3600;var jA=Yj*24,QZ=jA*7,Zj=jA*365.2425,Qj=Zj/12,KZ=Qj*3;var Kj={};function qo(){return Kj}function Xr(e,t){let n=qo(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=dn(e),o=i.getDay(),s=(o<r?7:0)+o-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function yo(e){return Xr(e,{weekStartsOn:1})}function BA(e){let t=dn(e),n=t.getFullYear(),r=Tt(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let i=yo(r),o=Tt(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let s=yo(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Vg(e){let t=dn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function VA(e){let t=BA(e),n=Tt(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),yo(n)}var Jj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UA=(e,t,n)=>{let r,i=Jj[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ug(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Xj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HA={date:Ug({formats:Xj,defaultWidth:"full"}),time:Ug({formats:e7,defaultWidth:"full"}),dateTime:Ug({formats:t7,defaultWidth:"full"})};var n7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$A=(e,t,n,r)=>n7[e];function fl(e){return(t,n)=>{let r=n?.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[s]}let o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}var r7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},a7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c7=(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zA={ordinalNumber:c7,era:fl({values:r7,defaultWidth:"wide"}),quarter:fl({values:i7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:fl({values:o7,defaultWidth:"wide"}),day:fl({values:s7,defaultWidth:"wide"}),dayPeriod:fl({values:a7,defaultWidth:"wide",formattingValues:u7,defaultFormattingWidth:"wide"})};function hl(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(a)?d7(a,g=>g.test(s)):l7(a,g=>g.test(s)),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;let h=t.slice(s.length);return{value:d,rest:h}}}function l7(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function d7(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function qA(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;let a=t.slice(i.length);return{value:s,rest:a}}}var f7=/^(\d+)(th|st|nd|rd)?/i,h7=/\d+/i,p7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},m7={any:[/^b/i,/^(a|c)/i]},g7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},v7={any:[/1/i,/2/i,/3/i,/4/i]},y7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},b7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},w7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},D7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},C7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},WA={ordinalNumber:qA({matchPattern:f7,parsePattern:h7,valueCallback:e=>parseInt(e,10)}),era:hl({matchPatterns:p7,defaultMatchWidth:"wide",parsePatterns:m7,defaultParseWidth:"any"}),quarter:hl({matchPatterns:g7,defaultMatchWidth:"wide",parsePatterns:v7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:hl({matchPatterns:y7,defaultMatchWidth:"wide",parsePatterns:b7,defaultParseWidth:"any"}),day:hl({matchPatterns:w7,defaultMatchWidth:"wide",parsePatterns:D7,defaultParseWidth:"any"}),dayPeriod:hl({matchPatterns:C7,defaultMatchWidth:"any",parsePatterns:x7,defaultParseWidth:"any"})};var _w={code:"en-US",formatDistance:UA,formatLong:HA,formatRelative:$A,localize:zA,match:WA,options:{weekStartsOn:0,firstWeekContainsDate:1}};function GA(e){let t=dn(e),n=+yo(t)-+VA(t);return Math.round(n/Bg)+1}function Hg(e,t){let n=dn(e),r=n.getFullYear(),i=qo(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=Tt(e,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);let a=Xr(s,t),u=Tt(e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);let d=Xr(u,t);return n.getTime()>=a.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function YA(e,t){let n=qo(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Hg(e,t),o=Tt(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Xr(o,t)}function ZA(e,t){let n=dn(e),r=+Xr(n,t)-+YA(n,t);return Math.round(r/Bg)+1}var QA=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},KA=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},I7=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return QA(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",QA(r,t)).replace("{{time}}",KA(i,t))},Ew={p:KA,P:I7};var S7=/^D+$/,_7=/^Y+$/,E7=["D","DD","YY","YYYY"];function JA(e){return S7.test(e)}function XA(e){return _7.test(e)}function Aw(e,t,n){let r=A7(e,t,n);if(console.warn(r),E7.includes(e))throw new RangeError(r)}function A7(e,t,n){let r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function eN(){return Object.assign({},qo())}function tN(e){let n=dn(e).getDay();return n===0&&(n=7),n}function nN(e,t){let n=t instanceof Date?Tt(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}var N7=10,$g=class{subPriority=0;validate(t,n){return!0}},zg=class extends $g{constructor(t,n,r,i,o){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,o&&(this.subPriority=o)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}},qg=class extends $g{priority=N7;subPriority=-1;set(t,n){return n.timestampIsSet?t:Tt(t,nN(t,Date))}};var Ge=class{run(t,n,r,i){let o=this.parse(t,n,r,i);return o?{setter:new zg(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,n,r){return!0}};var Wg=class extends Ge{priority=140;parse(t,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,n,r){return n.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Pt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Oi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Jt(e,t){return e&&{value:t(e.value),rest:e.rest}}function At(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ki(e,t){let n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};let r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*RA+o*kA+s*FA),rest:t.slice(n[0].length)}}function Gg(e){return At(Pt.anyDigitsSigned,e)}function vt(e,t){switch(e){case 1:return At(Pt.singleDigit,t);case 2:return At(Pt.twoDigits,t);case 3:return At(Pt.threeDigits,t);case 4:return At(Pt.fourDigits,t);default:return At(new RegExp("^\\d{1,"+e+"}"),t)}}function pl(e,t){switch(e){case 1:return At(Pt.singleDigitSigned,t);case 2:return At(Pt.twoDigitsSigned,t);case 3:return At(Pt.threeDigitsSigned,t);case 4:return At(Pt.fourDigitsSigned,t);default:return At(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ml(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Yg(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let o=r+50,s=Math.trunc(o/100)*100,a=e>=o%100;i=e+s-(a?100:0)}return n?i:1-i}function Zg(e){return e%400===0||e%4===0&&e%100!==0}var Qg=class extends Ge{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,r){let i=o=>({year:o,isTwoDigitYear:n==="yy"});switch(n){case"y":return Jt(vt(4,t),i);case"yo":return Jt(r.ordinalNumber(t,{unit:"year"}),i);default:return Jt(vt(n.length,t),i)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r){let i=t.getFullYear();if(r.isTwoDigitYear){let s=Yg(r.year,i);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let o=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}};var Kg=class extends Ge{priority=130;parse(t,n,r){let i=o=>({year:o,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Jt(vt(4,t),i);case"Yo":return Jt(r.ordinalNumber(t,{unit:"year"}),i);default:return Jt(vt(n.length,t),i)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r,i){let o=Hg(t,i);if(r.isTwoDigitYear){let a=Yg(r.year,o);return t.setFullYear(a,0,i.firstWeekContainsDate),t.setHours(0,0,0,0),Xr(t,i)}let s=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(s,0,i.firstWeekContainsDate),t.setHours(0,0,0,0),Xr(t,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Jg=class extends Ge{priority=130;parse(t,n){return n==="R"?pl(4,t):pl(n.length,t)}set(t,n,r){let i=Tt(t,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),yo(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Xg=class extends Ge{priority=130;parse(t,n){return n==="u"?pl(4,t):pl(n.length,t)}set(t,n,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var ev=class extends Ge{priority=120;parse(t,n,r){switch(n){case"Q":case"QQ":return vt(n.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var tv=class extends Ge{priority=120;parse(t,n,r){switch(n){case"q":case"qq":return vt(n.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var nv=class extends Ge{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,r){let i=o=>o-1;switch(n){case"M":return Jt(At(Pt.month,t),i);case"MM":return Jt(vt(2,t),i);case"Mo":return Jt(r.ordinalNumber(t,{unit:"month"}),i);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};var rv=class extends Ge{priority=110;parse(t,n,r){let i=o=>o-1;switch(n){case"L":return Jt(At(Pt.month,t),i);case"LL":return Jt(vt(2,t),i);case"Lo":return Jt(r.ordinalNumber(t,{unit:"month"}),i);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function rN(e,t,n){let r=dn(e),i=ZA(r,n)-t;return r.setDate(r.getDate()-i*7),r}var iv=class extends Ge{priority=100;parse(t,n,r){switch(n){case"w":return At(Pt.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return vt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r,i){return Xr(rN(t,r,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function iN(e,t){let n=dn(e),r=GA(n)-t;return n.setDate(n.getDate()-r*7),n}var ov=class extends Ge{priority=100;parse(t,n,r){switch(n){case"I":return At(Pt.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return vt(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r){return yo(iN(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var M7=[31,28,31,30,31,30,31,31,30,31,30,31],T7=[31,29,31,30,31,30,31,31,30,31,30,31],sv=class extends Ge{priority=90;subPriority=1;parse(t,n,r){switch(n){case"d":return At(Pt.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return vt(n.length,t)}}validate(t,n){let r=t.getFullYear(),i=Zg(r),o=t.getMonth();return i?n>=1&&n<=T7[o]:n>=1&&n<=M7[o]}set(t,n,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var av=class extends Ge{priority=90;subpriority=1;parse(t,n,r){switch(n){case"D":case"DD":return At(Pt.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return vt(n.length,t)}}validate(t,n){let r=t.getFullYear();return Zg(r)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function gl(e,t,n){let r=qo(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=dn(e),s=o.getDay(),u=(t%7+7)%7,d=7-i,h=t<0||t>6?t-(s+d)%7:(u+d)%7-(s+d)%7;return jg(o,h)}var uv=class extends Ge{priority=90;parse(t,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,i){return t=gl(t,r,i),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var cv=class extends Ge{priority=90;parse(t,n,r,i){let o=s=>{let a=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return Jt(vt(n.length,t),o);case"eo":return Jt(r.ordinalNumber(t,{unit:"day"}),o);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,i){return t=gl(t,r,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var lv=class extends Ge{priority=90;parse(t,n,r,i){let o=s=>{let a=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return Jt(vt(n.length,t),o);case"co":return Jt(r.ordinalNumber(t,{unit:"day"}),o);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,i){return t=gl(t,r,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function oN(e,t){let n=dn(e),r=tN(n),i=t-r;return jg(n,i)}var dv=class extends Ge{priority=90;parse(t,n,r){let i=o=>o===0?7:o;switch(n){case"i":case"ii":return vt(n.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Jt(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),i);case"iiiii":return Jt(r.day(t,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Jt(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Jt(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),i)}}validate(t,n){return n>=1&&n<=7}set(t,n,r){return t=oN(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var fv=class extends Ge{priority=80;parse(t,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(ml(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var hv=class extends Ge{priority=80;parse(t,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(ml(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var pv=class extends Ge{priority=80;parse(t,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(ml(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var mv=class extends Ge{priority=70;parse(t,n,r){switch(n){case"h":return At(Pt.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return vt(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,r){let i=t.getHours()>=12;return i&&r<12?t.setHours(r+12,0,0,0):!i&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var gv=class extends Ge{priority=70;parse(t,n,r){switch(n){case"H":return At(Pt.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return vt(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var vv=class extends Ge{priority=70;parse(t,n,r){switch(n){case"K":return At(Pt.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return vt(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var yv=class extends Ge{priority=70;parse(t,n,r){switch(n){case"k":return At(Pt.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return vt(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,r){let i=r<=24?r%24:r;return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var bv=class extends Ge{priority=60;parse(t,n,r){switch(n){case"m":return At(Pt.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return vt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]};var wv=class extends Ge{priority=50;parse(t,n,r){switch(n){case"s":return At(Pt.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return vt(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]};var Dv=class extends Ge{priority=30;parse(t,n){let r=i=>Math.trunc(i*Math.pow(10,-n.length+3));return Jt(vt(n.length,t),r)}set(t,n,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]};var Cv=class extends Ge{priority=10;parse(t,n){switch(n){case"X":return ki(Oi.basicOptionalMinutes,t);case"XX":return ki(Oi.basic,t);case"XXXX":return ki(Oi.basicOptionalSeconds,t);case"XXXXX":return ki(Oi.extendedOptionalSeconds,t);case"XXX":default:return ki(Oi.extended,t)}}set(t,n,r){return n.timestampIsSet?t:Tt(t,t.getTime()-Vg(t)-r)}incompatibleTokens=["t","T","x"]};var xv=class extends Ge{priority=10;parse(t,n){switch(n){case"x":return ki(Oi.basicOptionalMinutes,t);case"xx":return ki(Oi.basic,t);case"xxxx":return ki(Oi.basicOptionalSeconds,t);case"xxxxx":return ki(Oi.extendedOptionalSeconds,t);case"xxx":default:return ki(Oi.extended,t)}}set(t,n,r){return n.timestampIsSet?t:Tt(t,t.getTime()-Vg(t)-r)}incompatibleTokens=["t","T","X"]};var Iv=class extends Ge{priority=40;parse(t){return Gg(t)}set(t,n,r){return[Tt(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Sv=class extends Ge{priority=20;parse(t){return Gg(t)}set(t,n,r){return[Tt(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"};var sN={G:new Wg,y:new Qg,Y:new Kg,R:new Jg,u:new Xg,Q:new ev,q:new tv,M:new nv,L:new rv,w:new iv,I:new ov,d:new sv,D:new av,E:new uv,e:new cv,c:new lv,i:new dv,a:new fv,b:new hv,B:new pv,h:new mv,H:new gv,K:new vv,k:new yv,m:new bv,s:new wv,S:new Dv,X:new Cv,x:new xv,t:new Iv,T:new Sv};var P7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,O7=/^'([^]*?)'?$/,k7=/''/g,R7=/\S/,F7=/[a-zA-Z]/;function Nw(e,t,n,r){let i=eN(),o=r?.locale??i.locale??_w,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(t==="")return e===""?dn(n):Tt(n,NaN);let u={firstWeekContainsDate:s,weekStartsOn:a,locale:o},d=[new qg],h=t.match(L7).map(D=>{let N=D[0];if(N in Ew){let I=Ew[N];return I(D,o.formatLong)}return D}).join("").match(P7),g=[];for(let D of h){!r?.useAdditionalWeekYearTokens&&XA(D)&&Aw(D,t,e),!r?.useAdditionalDayOfYearTokens&&JA(D)&&Aw(D,t,e);let N=D[0],I=sN[N];if(I){let{incompatibleTokens:P}=I;if(Array.isArray(P)){let J=g.find(ie=>P.includes(ie.token)||ie.token===N);if(J)throw new RangeError(`The format string mustn't contain \`${J.fullToken}\` and \`${D}\` at the same time`)}else if(I.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);g.push({token:N,fullToken:D});let B=I.run(e,D,o.match,u);if(!B)return Tt(n,NaN);d.push(B.setter),e=B.rest}else{if(N.match(F7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");if(D==="''"?D="'":N==="'"&&(D=j7(D)),e.indexOf(D)===0)e=e.slice(D.length);else return Tt(n,NaN)}}if(e.length>0&&R7.test(e))return Tt(n,NaN);let y=d.map(D=>D.priority).sort((D,N)=>N-D).filter((D,N,I)=>I.indexOf(D)===N).map(D=>d.filter(N=>N.priority===D).sort((N,I)=>I.subPriority-N.subPriority)).map(D=>D[0]),m=dn(n);if(isNaN(m.getTime()))return Tt(n,NaN);let C={};for(let D of y){if(!D.validate(m,u))return Tt(n,NaN);let N=D.set(m,C,u);Array.isArray(N)?(m=N[0],Object.assign(C,N[1])):m=N}return Tt(n,m)}function j7(e){return e.match(O7)[1].replace(k7,"'")}function aN(e){return{TerminationDate:LA(e.terminationDate),TerminationType:e.terminationType,ContractId:e.contractId}}function B7(e){return{terminationDate:Nw(e.TerminationDate,"dd.MM.yyyy",new Date),terminationType:e.TerminationType,contractId:e.ContractId}}function uN(e){return Re(K({},B7(e)),{suggestedTerminationDate:e.SuggestedTerminationDate?Nw(e.SuggestedTerminationDate,"dd.MM.yyyy",new Date):null})}var vl=class{constructor(t,n){this.LockerTypeId=t.lockerTypeId,this.MaxHeight=t.maxHeight,this.SelectedHeight=t.preferredHeight,[this.Price1,this.Price2,this.Price3]=t.prices,this.Location=n?.description??null,this.LocationId=n?.id??null}};var yl=class{constructor(t){this.AccountHolder=t.accountOwner,this.NameOfBank=t.nameOfBank,this.Sepa=t.sepa,this.AccountNo=t.sepa?"":t.accountNo,this.BankCode=t.sepa?"":t.bankcode,this.IBAN=t.sepa?t.iban:"",this.BIC=t.sepa?t.bic??"":""}};var If=class{constructor(t){this.LockerType=new vl(t.locker,t.location),this.PaymentData=new yl(t.paymentData),this.School=t.school.toDto(),this.CustomerId=t.customerId,this.Name=`${t.lockerUser.lastName}, ${t.lockerUser.firstName}`,this.DateOfBirth=t.lockerUser.dateOfBirth?vo(t.lockerUser.dateOfBirth):null,this.Class=dl(t.lockerUser.class),this.Street=t.billingAddress.street,this.ZIP=t.billingAddress.zip,this.City=t.billingAddress.city,this.Country=t.billingAddress.country,this.Phone=t.billingAddress.phone,this.ContractId=t.id,this.ContractStartDate=t.contractStartDate,this.ContractEndDate=t.contractEndDate,this.DepositOrInsurance=t.depositOrInsurance,this.PortalDisabled=t.portalDisabled,this.Deposit=t.deposit,this.StateId=t.locker.state,this.LockerNo=t.locker.lockerNumber!==null?t.locker.lockerNumber+"":null,this.PinCode=t.locker.pinCode!==null?t.locker.pinCode+"":null,this.KeyNumber=t.locker.keyNumber!==null?t.locker.keyNumber+"":null,this.PincodeChangeable=!!t.pincodeChangeable}};var _v=class{constructor(t){this.Id=0,this.User=xf(t.user),this.PreferredLockerType=new vl(t.locker,t.location),this.PaymentData=new yl(t.paymentData),this.Name=`${t.lockerUser.lastName}, ${t.lockerUser.firstName}`,this.DateOfBirth=t.lockerUser.dateOfBirth?vo(t.lockerUser.dateOfBirth):null,this.Street=t.billingAddress.street??"",this.ZIP=t.billingAddress.zip??"",this.City=t.billingAddress.city??"",this.Country=t.billingAddress.country??"",this.Phone=t.billingAddress.phone,this.Class=dl(t.lockerUser.class),this.SiteId=t.school.id,this.PreferredContractPeriod=t.contract.contractPeriod,this.PreferredContractStart=t.contract.preferredContractStart,this.DepositOrInsurance=t.contract.depositOrInsurance,this.Notes=t.contract?.notes??""}};var Ev=class{constructor(t){this.Id=t.id,this.CanRequestNewPincode=t.pincodeUpdateable,this.Class=t.pupilClass,this.ContractTo=t.contractTo,this.Editable=t.editable,this.Height=t.height,this.IsClearing=t.isClearing,this.Location=t.location,this.LockNumber=t.lockNumber,this.Number=t.number,this.OccupiedToStr=t.occupiedTo,this.PinCode=t.pin,this.PupilName=t.pupilName,this.SiteId=t.siteId}};var Ri=class{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};var Iu=class{constructor(t){this.id=t.Id,this.name=t.Description,this.priceModel=t.PriceModel,this.ident=t.Ident,this.isUniversity=t.IsUniversity,this.street=t.Street,this.zip=t.ZIP,this.city=t.City,this.country=t.Country,this.beginSummerHoliday=new Date(t.BeginDateSummerHoliday),this.endSummerHoliday=new Date(t.EndDateSummerHoliday),this.isDepositPossible=t.IsDepositPossible}toDto(){return{Id:this.id,Ident:this.ident,Description:this.name,Street:this.street,ZIP:this.zip,City:this.city,Country:this.country,BeginDateSummerHoliday:vo(this.beginSummerHoliday),EndDateSummerHoliday:vo(this.endSummerHoliday),PriceModel:this.priceModel,IsUniversity:this.isUniversity,IsDepositPossible:this.isDepositPossible}}};var Av=class{constructor(t,n,r,i,o,s,a,u){this.id=t;this.total=n;this.components=r;this.invoiceNumber=i;this.date=o;this.state=s;this.type=a;this.typeId=u}},Nv=class{constructor(t,n,r,i){this.name=t;this.school=n;this.zip=r;this.city=i}},Mv=class{constructor(t,n){this.summary=t;this.invoices=n}};var Tv=class{constructor(t,n,r){this.amount=t;this.type=n;this.typeId=r}};var Pv=class{constructor(t,n,r,i,o){this.lockerTypeId=t;this.prices=n;this.maxHeight=r;this.location=i;this.locationId=o}};function cN(e){return new Pv(e.LockerTypeId,[e.Price1,e.Price2,e.Price3],e.MaxHeight,e.Location,e.LocationId)}function Mw(e){return{id:e.Id,pincodeUpdateable:e.CanRequestNewPincode,pupilClass:e.Class,contractTo:e.ContractTo,editable:e.Editable,height:e.Height,isClearing:e.IsClearing,location:e.Location,lockNumber:e.LockNumber,number:e.Number,occupiedTo:e.OccupiedToStr,pin:e.PinCode,pupilName:e.PupilName,siteId:e.SiteId}}function Sf(e){return{id:e.ContractId,locker:{id:e.LockerType.LocationId,height:e.LockerType.SelectedHeight,maxHeight:e.LockerType.MaxHeight,prices:[e.LockerType.Price1,e.LockerType.Price2,e.LockerType.Price3],state:e.StateId,lockerTypeId:e.LockerType.LockerTypeId,lockerNumber:e.LockerNo,keyNumber:e.KeyNumber===null?null:Number(e.KeyNumber),pinCode:e.PinCode!==null?e.PinCode.replace(/\s/g,"").trim():null,lockModel:xu.KeyNumberToLockModel(e.KeyNumber===null?null:Number(e.KeyNumber),Number(e.LockerNo))},billingAddress:{street:e.Street,zip:e.ZIP,city:e.City,country:e.Country,phone:e.Phone},paymentData:{sepa:e.PaymentData.Sepa,iban:e.PaymentData.IBAN,bic:e.PaymentData.BIC,bankcode:e.PaymentData.BankCode,accountNo:e.PaymentData.AccountNo,accountOwner:e.PaymentData.AccountHolder,nameOfBank:e.PaymentData.NameOfBank},location:{id:e.LockerType.LocationId,description:e.LockerType.Location},school:new Iu(e.School),lockerUser:{firstName:(e.Name.split(",")[1]??"").trim(),lastName:(e.Name.split(",")[0]??"").trim(),class:Cf(e.Class),dateOfBirth:e.DateOfBirth},customerId:e.CustomerId,portalDisabled:e.PortalDisabled,depositOrInsurance:e.DepositOrInsurance,contractEndDate:e.ContractEndDate,contractStartDate:e.ContractStartDate,deposit:e.Deposit,pincodeChangeable:e.PincodeChangeable}}function Tw(e){let t=[];return e.Components.forEach(n=>{t.push(new Tv(n.Amount,n.Type,n.TypeId))}),new Av(e.Id,e.Amount,t,e.InvoiceNumber,new Date(e.InvoiceDate),e.State,e.Type,e.TypeId)}function lN(e){let t=new Mv(new Nv(e.CustomerSummary.Name,e.CustomerSummary.Site,e.CustomerSummary.SiteZip,e.CustomerSummary.SiteCity),[]);return e.Invoices.forEach(n=>{t.invoices.push(Tw(n))}),t}var Lv=class e{constructor(){this.spinning$=new Wt(0)}get spinning(){return this.spinning$.asObservable().pipe(s0(1),_e(t=>t>0),si())}start(){this.spinning$.next(this.spinning$.value+1)}stop(){this.spinning$.next(Math.max(this.spinning$.value-1,0))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var Wo=class e{constructor(){this.log=[];this.dump$=new kt;this.init()}init(){let t="";for(;t.length<10;)t+=Math.floor(Math.random()*9.9999);this.add("log init, id="+t,`navigator.appName: ${navigator.appName}`,`navigator.appVersion: ${navigator.appVersion}`,`navigator.userAgent: ${navigator.userAgent}`,`navigator.platform: ${navigator.platform}`)}add(...t){Vd.dumpLog&&t.forEach(n=>{typeof n=="object"?this.logObject(n):this.logMessage(n+"")})}logMessage(t){this.log.push(this.removeSensitiveData(`${this.getTimestamp()} | ${t}`))}logObject(t){let n=this.sanitizeObject(t);this.log.push(this.removeSensitiveData(`${this.getTimestamp()} | ${JSON.stringify(n)}`))}dump(...t){Vd.dumpLog&&(t.length&&this.add(...t),this.dump$.next(this.log))}getTimestamp(){let t=new Date;return`${("0"+t.getDate()).slice(-2)}.${("0"+(t.getMonth()+1)).slice(-2)}.${t.getFullYear()} - ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`}hasOwnProperty(t,n){return t.hasOwnProperty(n)}sanitizeObject(t){let n={};for(let r in t)this.hasOwnProperty(t,r)&&(t[r]instanceof Object?n[r]=this.sanitizeObject(t[r]):n[r]=t[r]+"");return n}removeSensitiveData(t){return t.replace(/[a-zA-Z]{2}[0-9]{16}/gm,"IBAN_REMOVED").replace(/pw=[\S]{5}/gm,"pw=PW_REMOVED")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var kv=class e{constructor(t,n){this.notificationsService=t;this.logger=n}handleError(t,n){if(this.logger.add("Request Error, Status "+t.status,"is ErrorEvent: "+(t.error instanceof ErrorEvent),t),t.error instanceof ErrorEvent)console.error("ErrorEvent",t.error),(n.notify==="ALL"||n.notify==="ERROR")&&this.notificationsService.notify(n.errorMessage,"ERROR",5e3);else if(console.error("LN Error",t.status,t.error),t.status===0)(n.notify==="ALL"||n.notify==="ERROR")&&this.notificationsService.notify("Anfrage konnte nicht bearbeitet werden. Wenn dieser Fehler wiederholt auftritt kontaktieren Sie bitte den Kundendienst.","ERROR",5e3),this.logger.dump("Error with Status 0 -----");else if(t.error.ErrorCode&&(n.notify==="ALL"||n.notify==="ERROR"))switch(t.error.ErrorCode){case 1:this.notificationsService.notify("Bei einem Konto au\xDFerhalb Deutschlands muss eine BIC angegeben werden.","ERROR",5e3);break;case 3:this.notificationsService.notify("Wenn keine IBAN angegeben wurde muss eine BLZ und Kontonummer angegeben werden. Bitte \xFCberpr\xFCfen Sie Ihre Angaben und versuchen Sie es erneut.","ERROR",5e3);break;case 4:this.notificationsService.notify("Die Konvertierung von BLZ und Kontonummer zu BIC und IBAN ist fehlgeschlagen. Bitte \xFCberpr\xFCfen Sie Ihre Angaben und versuchen Sie es erneut.","ERROR",5e3);break;case 7:t.error.ErrorText==="Failure sending mail."?this.notificationsService.notify("Mail konnte nicht gesendet werden. Bitte versuchen Sie es noch einmal. Wenn dieser Fehler wiederholt auftritt wenden Sie sich bitte an unseren Kundendienst.","ERROR",5e3):(this.logger.dump("Unspecified LockersNet Error -----"),this.notificationsService.notify(n.errorMessage,"ERROR",5e3));break;case 9:this.notificationsService.notify("Ihre Sitzung ist abgelaufen. Sie wurden aus Sicherheitsgr\xFCnden abgemeldet","ERROR",5e3);break;case 10:this.notificationsService.notify("Unbekannte Sitzung. Bitte melden Sie sich erneut an.","ERROR",5e3);break;case 19:this.notificationsService.notify("Es ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.","ERROR",5e3);break;case 20:this.notificationsService.notify("Der PIN wurde heute bereits einmal ge\xE4ndert. Eine \xC4nderung ist nur einmal t\xE4glich m\xF6glich.","ERROR",5e3);break;case 22:this.notificationsService.notify("E-Mail-Adresse bzw. Benutzername nicht bekannt oder Passwort falsch. Bitte pr\xFCfen Sie Ihre Eingabe und versuchen Sie es erneut.","ERROR",5e3);break;case 26:this.notificationsService.notify("Schule nicht gefunden","ERROR",5e3);break;case 39:this.notificationsService.notify("Diese Kombination aus E-Mailadresse und Passwort kann leider nicht verwendet werden. Bitte geben Sie ein andere E-Mailadresse oder ein anderes Passwort an.","ERROR",5e3);break;case 41:this.notificationsService.notify('F\xFCr diesen Vertrag liegen bereits Zugangsdaten vor. Falls Sie Ihr Passwort vergessen haben nutzen Sie bitte die Funktion "Passwort vergessen", um ein neues Passwort zu erhalten.',"ERROR",7e3);break;case 46:this.notificationsService.notify("E-Mail-Adresse bzw. Benutzername nicht bekannt. Bitte pr\xFCfen Sie Ihre Eingabe und versuchen Sie es erneut.","ERROR",5e3);break;case 47:this.notificationsService.notify('Der Link, \xFCber den Sie auf diese Seite gelangt sind, ist nicht mehr g\xFCltig. Sie k\xF6nnen sich einen neuen Link zuschicken lassen, in dem Sie zur Anmeldung zur\xFCckkehren (Button "Serviceportal") und dort auf "Passwort vergessen?" klicken.',"ERROR",7e3);break;case 49:this.notificationsService.notify("Es existiert bereits eine Vertragsanfrage f\xFCr diesen Kunden.","ERROR",5e3);break;case 50:this.notificationsService.notify("F\xFCr die angegebene IBAN und Rechnungsnummer konnten keine passenden Rechnungsdaten gefunden werden. Bitte \xFCberpr\xFCfen Sie Ihre Eingabe und versuchen Sie es erneut.","ERROR",5e3);break;case 64:this.notificationsService.notify("Sie haben nicht die erforderlichen Rechte, um diese Informationen abzurufen.","ERROR",5e3);break;case 66:this.notificationsService.notify("Der Vertrag wurde nicht gefunden","ERROR",5e3);break;default:this.logger.dump("Unspecified LockersNet Error -----"),this.notificationsService.notify(n.errorMessage,"ERROR",5e3)}else(n.notify==="ALL"||n.notify==="ERROR")&&this.notificationsService.notify(n.errorMessage,"ERROR",5e3);return Ci(t.error)}static{this.\u0275fac=function(n){return new(n||e)(Ne(ll),Ne(Wo))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var Rv=class e{constructor(t,n,r,i,o){this.http=t;this.spinner=n;this.notificationsService=r;this.logger=i;this.errorHandler=o;this.httpDefaultOptions={params:new Hn,headers:new Qr,spin:!0,notify:"ALL",successMessage:"Ihre Daten wurden erfolgreich gespeichert",errorMessage:"Es ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.",handleErrors:!0}}get(t,n={}){n=this.assignDefault(n),this.logger.add("GET "+t);let{headers:r,params:i}=n;return this.requestPipe(this.http.get(t,{headers:r,params:i}),n)}download(t,n={}){n=this.assignDefault(n),this.logger.add("DOWNLOAD "+t);let{headers:r,params:i}=n;return this.requestPipe(this.http.get(t,{headers:r,params:i,responseType:"blob"}),n)}post(t,n,r={}){r=this.assignDefault(r),this.logger.add("POST "+t);let{headers:i,params:o}=r;return this.requestPipe(this.http.post(t,n,{headers:i,params:o}),r)}put(t,n,r={}){r=this.assignDefault(r),this.logger.add("PUT "+t);let{headers:i,params:o}=r;return this.requestPipe(this.http.put(t,n,{headers:i,params:o}),r)}assignDefault(t){return K(K({},this.httpDefaultOptions),t)}requestPipe(t,n){return n.spin===!0&&this.spinner.start(),t.pipe(Bt(()=>{(n.notify==="ALL"||n.notify==="SUCCESS")&&this.notificationsService.notify(n.successMessage,"SUCCESS",5e3)}),eo(()=>{n.spin===!0&&this.spinner.stop()}),Jn(r=>n.handleErrors?this.errorHandler.handleError(r,n):Ci(r)))}static{this.\u0275fac=function(n){return new(n||e)(Ne(Rd),Ne(Lv),Ne(ll),Ne(Wo),Ne(kv))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var Su={type:null,entityIds:null,skip:!1,payload:null},Pw=!1;function Lw(){Pw=!1}function hi(e,t,n){Yn(e,t,n),Pw=!0}function Yn(e,t,n){Pw===!1&&(Su.type=e,Su.entityIds=t,Su.payload=n)}function Ow(e=!0){Su.skip=e}function kw(e,t){return function(n,r,i){let o=i.value;return i.value=function(...s){return hi(e,t),o.apply(this,s)},i}}function Go(e,t){return e.hasOwnProperty(t)}function rr(e){return Array.isArray(e)}function _f(e){return e.hasOwnProperty("active")}function Fv(e){return rr(e)}function Ef({active:e,ids:t,entities:n}){return Fv(e)?dN(e,t):Go(n,e)===!1?null:e}function dN(e,t){let n=e.filter(r=>t.indexOf(r)>-1);return n.length===e.length?e:n}function Rw({state:e,entities:t,idKey:n,options:r={},preAddEntity:i}){let o={},s=[],a=!1;for(let u of t)if(Go(e.entities,u[n])===!1){let d=i(u),h=d[n];o[h]=d,r.prepend?s.unshift(h):s.push(h),a=!0}return a?{newState:Re(K({},e),{entities:K(K({},e.entities),o),ids:r.prepend?[...s,...e.ids]:[...e.ids,...s]}),newIds:s}:null}function kn(e){return e==null}function gn(e){return kn(e)?[]:Array.isArray(e)?e:[e]}var Ea="id";function Fi(e){return rr(e)?e.length===0:!1}function Ft(e){return typeof e=="function"}function Fw(){return si((e,t)=>e===t?!0:!rr(e)||!rr(t)?!1:Fi(e)&&Fi(t)?!0:e.length!==t.length?!1:t.some((r,i)=>e[i]!==r)===!1)}function Ls(e){let t=typeof e;return e!=null&&(t=="object"||t=="function")}var fN={resettable:!1,ttl:null,producerFn:void 0};function bl(){return fN}function hN(){return fN.producerFn}function Yo(e){return kn(e)===!1}var jv=new kt,wl=new cs(50,5e3),jw=new kt;function pN(e){jv.next(e)}function mN(e){wl.next(e)}function gN(e,t){jw.next({storeName:e,action:t})}var Dl=typeof window<"u",Bv=!Dl;var $n={},Bw={};Dl&&(window.$$stores=$n,window.$$queries=Bw);function Vw(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}var Cl=[];function q7(e,t={}){if(Bv||!window.__REDUX_DEVTOOLS_EXTENSION__)return;Cl.length&&Cl.forEach(d=>{d.unsubscribe?d.unsubscribe():d&&d()}),e&&e.run||(e=e||{},e.run=d=>d(),t=e);let i=Object.assign({},{name:"Akita",shallow:!0,storesWhitelist:[]},t),o=i.storesWhitelist,s=window.__REDUX_DEVTOOLS_EXTENSION__.connect(i),a={},u=d=>o.length?o.indexOf(d)>-1:!0;Cl.push(wl.subscribe(d=>{u(d)!==!1&&(a=Re(K({},a),{[d]:$n[d]._value()}),s.send({type:`[${Vw(d)}] - @@INIT`},a))})),Cl.push(jv.subscribe(d=>{u(d)!==!1&&(delete a[d],s.send({type:`[${d}] - Delete Store`},a))})),Cl.push(jw.subscribe(({storeName:d,action:h})=>{if(u(d)===!1)return;let B=h,{type:g,entityIds:y,skip:m}=B,D=rd(B,["type","entityIds","skip"]).payload;if(m){Ow(!1);return}let N=$n[d];if(!N||t.shallow===!1&&a[d]&&JSON.stringify(N._value())===JSON.stringify(a[d]))return;a=Re(K({},a),{[d]:N._value()});let I=Vw(d),P=Yo(y)?`[${I}] - ${g} (ids: ${y})`:`[${I}] - ${g}`;if(t.logTrace&&(console.group(P),console.trace(),console.groupEnd()),t.sortAlphabetically){let J=Object.keys(a).sort().reduce((ie,me)=>(ie[me]=a[me],ie),{});s.send(K({type:P},D),J);return}s.send(K({type:P},D),a)})),Cl.push(s.subscribe(d=>{if(d.type==="DISPATCH"){if(d.payload.type==="COMMIT"){s.init(a);return}if(d.state){let g=JSON.parse(d.state);for(let y=0,m=Object.keys(g);y<m.length;y++){let C=m[y];$n[C]&&e.run(()=>{$n[C]._setState(()=>g[C],!1)})}}}}))}var Vv=function(e){return e.ASC="asc",e.DESC="desc",e}(Vv||{});function Uw(e,t=Vv.ASC){return function(n,r){if(!n.hasOwnProperty(e)||!r.hasOwnProperty(e))return 0;let i=typeof n[e]=="string"?n[e].toUpperCase():n[e],o=typeof r[e]=="string"?r[e].toUpperCase():r[e],s=0;return i>o?s=1:i<o&&(s=-1),t==Vv.DESC?s*-1:s}}function Hw(e,t){let n=[],{ids:r,entities:i}=e,{filterBy:o,limitTo:s,sortBy:a,sortByOrder:u}=t;for(let h=0;h<r.length;h++){let g=i[r[h]];if(!o){n.push(g);continue}gn(o).every(C=>C(g,h))&&n.push(g)}if(a){let h=Ft(a)?a:Uw(a,u);n=n.sort((g,y)=>h(g,y,e))}let d=Math.min(s||n.length,n.length);return d===n.length?n:n.slice(0,d)}function $w(e,t){let n={},{filterBy:r,limitTo:i}=t,{ids:o,entities:s}=e;if(!r&&!i)return s;let a=kn(i)===!1;if(r&&a){let u=0;for(let d=0,h=o.length;d<h&&u!==i;d++){let g=o[d],y=s[g];gn(r).every(C=>C(y,d))&&(n[g]=y,u++)}}else{let u=Math.min(i||o.length,o.length);for(let d=0;d<u;d++){let h=o[d],g=s[h];if(!r){n[h]=g;continue}gn(r).every(m=>m(g,d))&&(n[h]=g)}}return n}var Aa=function(e){return e.Set="Set",e.Add="Add",e.Update="Update",e.Remove="Remove",e}(Aa||{});var Uv=!0;function wn(){return Uv}function zw(e,t,n){let r;if(rr(e))r=e;else if(Ls(e)){if(kn(n))return;e=Object.assign({wrap:!0},e);let i=t.indexOf(n);if(e.prev){let o=i===0;if(o&&!e.wrap)return;r=o?t[t.length-1]:t[i-1]}else if(e.next){let o=t.length===i+1;if(o&&!e.wrap)return;r=o?t[0]:t[i+1]}}else{if(e===n)return;r=e}return r}var qw=()=>({entities:{},ids:[],loading:!0,error:null});function ji(e){return e===void 0}function Ww({state:e,ids:t}){if(kn(t))return vN(e);let n=e.entities,r={};for(let o of e.ids)t.includes(o)===!1&&(r[o]=n[o]);let i=Re(K({},e),{entities:r,ids:e.ids.filter(o=>t.includes(o)===!1)});return _f(e)&&(i.active=Ef(i)),i}function vN(e){return Re(K({},e),{entities:{},ids:[],active:Fv(e.active)?[]:null})}function Gw(e,t,n){let r={entities:{},ids:[]};for(let i of e){let o=n(i);r.entities[o[t]]=o,r.ids.push(o[t])}return r}function bN(e){return e.entities&&e.ids}function yN(e,t){let n={};for(let r of Object.keys(e))n[r]=t(e[r]);return n}function Yw({state:e,entities:t,idKey:n,preAddEntity:r,isNativePreAdd:i}){let o,s;if(rr(t)){let u=Gw(t,n,r);o=u.entities,s=u.ids}else bN(t)?(o=i?t.entities:yN(t.entities,r),s=t.ids):(o=i?t:yN(t,r),s=Object.keys(o).map(u=>isNaN(u)?u:Number(u)));let a=Re(K({},e),{entities:o,ids:s,loading:!1});return _f(e)&&(a.active=Ef(a)),a}function Zw(e){Object.freeze(e);let t=typeof e=="function",n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(e).forEach(function(r){n.call(e,r)&&(!t||r!=="caller"&&r!=="callee"&&r!=="arguments")&&e[r]!==null&&(typeof e[r]=="object"||typeof e[r]=="function")&&!Object.isFrozen(e[r])&&Zw(e[r])}),e}function wN(e,t){e||console.error(`@StoreConfig({ name }) is missing in ${t}`)}function Zo(e){return e!=null&&`${e}`!="false"}function xl(e){return Zo(e)&&e.constructor.name==="Object"}var _u="akitaConfig";function Qw(e){return function(t){t[_u]={idKey:"id"};for(let n=0,r=Object.keys(e);n<r.length;n++){let i=r[n];i==="name"?t[_u].storeName=e[i]:t[_u][i]=e[i]}}}var W7=new kt,DN=new Wt(!1),Os={activeTransactions:0,batchTransaction:null};function CN(){Hv()||(Os.batchTransaction=new kt),Os.activeTransactions++,DN.next(!0)}function xN(){--Os.activeTransactions===0&&(Os.batchTransaction.next(!0),Os.batchTransaction.complete(),DN.next(!1),W7.next(!0))}function Hv(){return Os.activeTransactions>0}function Kw(){return Os.batchTransaction?Os.batchTransaction.asObservable():qe(!0)}function Af(e,t=void 0){CN();try{return e.apply(t)}finally{hi("@Transaction"),xN()}}function $v(){return function(e,t,n){let r=n.value;return n.value=function(...i){return Af(()=>r.apply(this,i),this)},n}}var Il=class{constructor(t,n={}){this.options=n,this.inTransaction=!1,this.cache={active:new Wt(!1),ttl:null},this.onInit(t)}setLoading(t=!1){t!==this._value().loading&&(wn()&&Yn("Set Loading"),this._setState(n=>Re(K({},n),{loading:t})))}setHasCache(t,n={restartTTL:!1}){if(t!==this.cache.active.value&&this.cache.active.next(t),n.restartTTL){let r=this.getCacheTTL();r&&(this.cache.ttl!==null&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout(()=>this.setHasCache(!1),r))}}getValue(){return this.storeValue}setError(t){t!==this._value().error&&(wn()&&Yn("Set Error"),this._setState(n=>Re(K({},n),{error:t})))}_select(t){return this.store.asObservable().pipe(_e(n=>t(n.state)),si())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor[_u]||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||Zw}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||hN()}get resettable(){return Yo(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(t,n=!0){if(Ft(t)){let r=t(this._value());this.storeValue=Uv?this.deepFreeze(r):r}else this.storeValue=t;if(!this.store){this.store=new Wt({state:this.storeValue}),wn()&&this.store.subscribe(({action:r})=>{r&&gN(this.storeName,r)});return}if(Hv()){this.handleTransaction();return}this.dispatch(this.storeValue,n)}reset(){this.isResettable()&&(wn()&&Yn("Reset"),this._setState(()=>Object.assign({},this._initialState)),this.setHasCache(!1))}update(t){wn()&&Yn("Update");let n,r=this._value();Ft(t)?n=Ft(this._producerFn)?this._producerFn(r,t):t(r):n=t;let i=this.akitaPreUpdate(r,K(K({},r),n)),o=xl(r)?i:new r.constructor(i);this._setState(o)}updateStoreConfig(t){this.options=K(K({},this.options),t)}akitaPreUpdate(t,n){return n}destroy(){!(Dl?window.hmrEnabled:!1)&&this===$n[this.storeName]&&(delete $n[this.storeName],pN(this.storeName),this.setHasCache(!1),this.cache.active.complete(),this.store.complete())}onInit(t){$n[this.storeName]=this,this._setState(()=>t),mN(this.storeName),this.isResettable()&&(this._initialState=t),wn()&&wN(this.storeName,this.constructor.name)}dispatch(t,n=!0){let r;n&&(r=Su,Lw()),this.store.next({state:t,action:r})}watchTransaction(){Kw().subscribe(()=>{this.inTransaction=!1,this.dispatch(this._value())})}isResettable(){return this.resettable===!1?!1:this.resettable||bl().resettable}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=!0)}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||bl().ttl}};function Jw({state:e,ids:t,idKey:n,newStateOrFn:r,preUpdateEntity:i,producerFn:o,onEntityIdChanges:s}){let a={},u=!1,d;for(let m of t){if(Go(e.entities,m)===!1)continue;let C=e.entities[m],D;Ft(r)?D=Ft(o)?o(C,r):r(C):D=r;let N=D.hasOwnProperty(n)&&D[n]!==C[n],I;d=m,N&&(u=!0,d=D[n]);let P=K(K({},C),D);xl(C)?I=P:xl(D)?I=new C.constructor(P):I=new D.constructor(P),a[d]=i(C,I)}let h=e.ids,g=e.entities;if(u){let[m]=t,y=e.entities,{[m]:C}=y;g=rd(y,[L5(m)]),h=e.ids.map(N=>N===m?d:N),s(m,d)}return Re(K({},e),{entities:K(K({},g),a),ids:h})}var IN,ks=class e extends Il{constructor(t={},n={}){super(K(K({},qw()),t),n),this.options=n,this.entityActions=new kt,this.entityIdChanges=new kt}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||Ea}set(t,n={}){if(kn(t))return;wn()&&Yn("Set Entity");let r=this.akitaPreAddEntity===e.prototype.akitaPreAddEntity;this.setHasCache(!0,{restartTTL:!0}),this._setState(i=>{let o=Yw({state:i,entities:t,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity.bind(this),isNativePreAdd:r});return ji(n.activeId)===!1&&(o.active=n.activeId),o}),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:Aa.Set,ids:this.ids})}add(t,n={loading:!1}){let r=gn(t);if(Fi(r))return;let i=Rw({state:this._value(),preAddEntity:this.akitaPreAddEntity.bind(this),entities:r,idKey:this.idKey,options:n});i&&(wn()&&Yn("Add Entity"),i.newState.loading=n.loading,this._setState(()=>i.newState),this.hasInitialUIState()&&this.handleUICreation(!0),this.entityActions.next({type:Aa.Add,ids:i.newIds}))}update(t,n){if(ji(n)){super.update(t);return}let r=[];if(Ft(t)?r=this.ids.filter(o=>t(this.entities[o])):r=kn(t)?this.ids:gn(t),Fi(r))return;wn()&&Yn("Update Entity",r);let i;this._setState(o=>Jw({idKey:this.idKey,ids:r,preUpdateEntity:this.akitaPreUpdateEntity.bind(this),state:o,newStateOrFn:n,producerFn:this._producerFn,onEntityIdChanges:(s,a)=>{i={oldId:s,newId:a},this.entityIdChanges.next(Re(K({},i),{pending:!0}))}})),i&&this.entityIdChanges.next(Re(K({},i),{pending:!1})),this.entityActions.next({type:Aa.Update,ids:r})}upsert(t,n,r,i={}){let o=gn(t),s=g=>y=>Go(this.entities,y)===g,a=Ft(r)?i.baseClass:r?r.baseClass:void 0,u=Ft(a),d=o.filter(s(!0)),h=o.filter(s(!1)).map(g=>{let y=typeof n=="function"?n({}):n,m=Ft(r)?r(g,y):y,C=Re(K({},m),{[this.idKey]:g});return u?new a(C):C});this.update(d,n),this.add(h),wn()&&hi("Upsert Entity")}upsertMany(t,n={}){let r=[],i=[],o={};for(let s of t){let a=this.akitaPreCheckEntity(s),u=a[this.idKey];if(Go(this.entities,u)){let d=this._value().entities[u],h=K(K({},this._value().entities[u]),a),g=n.baseClass?new n.baseClass(h):h,y=this.akitaPreUpdateEntity(d,g),m=y[this.idKey];o[m]=y,i.push(m)}else{let d=n.baseClass?new n.baseClass(a):a,h=this.akitaPreAddEntity(d),g=h[this.idKey];r.push(g),o[g]=h}}wn()&&hi("Upsert Many"),this._setState(s=>Re(K({},s),{ids:r.length?[...s.ids,...r]:s.ids,entities:K(K({},s.entities),o),loading:!!n.loading})),i.length&&this.entityActions.next({type:Aa.Update,ids:i}),r.length&&this.entityActions.next({type:Aa.Add,ids:r}),r.length&&this.hasUIStore()&&this.handleUICreation(!0)}replace(t,n){let r=gn(t);if(Fi(r))return;let i={};for(let o of r)i[o]=Re(K({},n),{[this.idKey]:o});wn()&&Yn("Replace Entity",t),this._setState(o=>Re(K({},o),{entities:K(K({},o.entities),i)}))}move(t,n){let r=this.ids.slice();r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),wn()&&Yn("Move Entity"),this._setState(i=>Re(K({},i),{entities:K({},i.entities),ids:r}))}remove(t){if(Fi(this.ids))return;let n=Yo(t),r=[];Ft(t)?r=this.ids.filter(i=>t(this.entities[i])):r=n?gn(t):this.ids,!Fi(r)&&(wn()&&Yn("Remove Entity",r),this._setState(i=>Ww({state:i,ids:r})),n||this.setHasCache(!1),this.handleUIRemove(r),this.entityActions.next({type:Aa.Remove,ids:r}))}updateActive(t){let n=gn(this.active);wn()&&Yn("Update Active",n),this.update(n,t)}setActive(t){let n=zw(t,this.ids,this.active);n!==void 0&&(wn()&&Yn("Set Active",n),this._setActive(n))}addActive(t){let n=gn(t);Fi(n)||n.every(i=>this.active.indexOf(i)>-1)||(wn()&&Yn("Add Active",t),this._setState(i=>{let o=Array.from(new Set([...i.active,...n]));return Re(K({},i),{active:o})}))}removeActive(t){let n=gn(t);Fi(n)||!n.some(i=>this.active.indexOf(i)>-1)||(wn()&&Yn("Remove Active",t),this._setState(i=>Re(K({},i),{active:Array.isArray(i.active)?i.active.filter(o=>n.indexOf(o)===-1):null})))}toggleActive(t){let n=gn(t),r=s=>a=>this.active.includes(a)===s,i=n.filter(r(!0)),o=n.filter(r(!1));this.removeActive(i),this.addActive(o),wn()&&hi("Toggle Active")}createUIStore(t={},n={}){let r={name:`UI/${this.storeName}`,idKey:this.idKey};return this.ui=new Nf(t,K(K({},r),n)),this.ui}destroy(){super.destroy(),this.ui instanceof e&&this.ui.destroy(),this.entityActions.complete()}akitaPreUpdateEntity(t,n){return n}akitaPreAddEntity(t){return t}akitaPreCheckEntity(t){return t}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(t){this._setState(n=>Re(K({},n),{active:t}))}handleUICreation(t=!1){let n=this.ids,r=Ft(this.ui._akitaCreateEntityFn),i,o=s=>{let a=this.entities[s],u=r?this.ui._akitaCreateEntityFn(a):this.ui._akitaCreateEntityFn;return K({[this.idKey]:a[this.idKey]},u)};t?i=this.ids.filter(s=>ji(this.ui.entities[s])).map(o):i=n.map(o),t?this.ui.add(i):this.ui.set(i)}hasInitialUIState(){return this.hasUIStore()&&ji(this.ui._akitaCreateEntityFn)===!1}handleUIRemove(t){this.hasUIStore()&&this.ui.remove(t)}hasUIStore(){return this.ui instanceof Nf}};cd([$v(),Ji("design:type",Function),Ji("design:paramtypes",[Object,Object,Object,Object]),Ji("design:returntype",void 0)],ks.prototype,"upsert",null);cd([$v(),Ji("design:type",Function),Ji("design:paramtypes",[typeof(IN=typeof T<"u"&&T)=="function"?IN:Object]),Ji("design:returntype",void 0)],ks.prototype,"toggleActive",null);var Nf=class extends ks{constructor(t={},n={}){super(t,n)}setInitialEntityState(t){this._akitaCreateEntityFn=t}};function Xw(){return Gt(e=>e!=null)}function SN(e){return function(t,n){let r=Ft(e[0]);return e.some(i=>r?i(t)!==i(n):t[i]!==n[i])===!1}}function Na(e){return typeof e=="string"}var e5="akitaQueryConfig";var Sl=class{constructor(t){this.store=t,this.__store__=t,wn()&&(Bw[t.storeName]=this)}select(t){let n;if(Ft(t))n=t;else if(Na(t))n=r=>r[t];else{if(Array.isArray(t))return this.store._select(r=>r).pipe(si(SN(t)),_e(r=>Ft(t[0])?t.map(i=>i(r)):t.reduce((i,o)=>(i[o]=r[o],i),{})));n=r=>r}return this.store._select(n)}selectLoading(){return this.select(t=>t.loading)}selectError(){return this.select(t=>t.error)}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor[e5]}};function _N(e,t){for(let n of Object.keys(t))if(e(t[n])===!0)return n}function t5(e,t){return function(n){let r=n[e];if(!ji(r))return t?Na(t)?r[t]:t(r):r}}function EN(e,t){return e.reduce((n,r,i,o)=>{let s=t(r,i,o);return s!==void 0&&n.push(s),n},[])}function n5(e,t){e.sortBy=e.sortBy||t&&t.sortBy,e.sortByOrder=e.sortByOrder||t&&t.sortByOrder}var Ma=class extends Sl{constructor(t,n={}){super(t),this.options=n,this.__store__=t}selectAll(t={asObject:!1}){return this.select(n=>n.entities).pipe(_e(()=>this.getAll(t)))}getAll(t={asObject:!1,filterBy:void 0,limitTo:void 0}){return t.asObject?$w(this.getValue(),t):(n5(t,this.config||this.options),Hw(this.getValue(),t))}selectMany(t,n){return!t||!t.length?qe([]):this.select(r=>r.entities).pipe(_e(r=>EN(t,i=>t5(i,n)(r))),Fw())}selectEntity(t,n){let r=t;return Ft(t)&&(r=_N(t,this.getValue().entities)),this.select(i=>i.entities).pipe(_e(t5(r,n)),si())}getEntity(t){return this.getValue().entities[t]}selectActiveId(){return this.select(t=>t.active)}getActiveId(){return this.getValue().active}selectActive(t){return rr(this.getActive())?this.selectActiveId().pipe(Mt(n=>this.selectMany(n,t))):this.selectActiveId().pipe(Mt(n=>this.selectEntity(n,t)))}getActive(){let t=this.getActiveId();return rr(t)?t.map(n=>this.getValue().entities[n]):Zo(t)?this.getEntity(t):void 0}selectCount(t){return this.select(n=>n.entities).pipe(_e(()=>this.getCount(t)))}getCount(t){return Ft(t)?this.getAll().filter(t).length:this.getValue().ids.length}selectLast(t){return this.selectAt(n=>n[n.length-1],t)}selectFirst(t){return this.selectAt(n=>n[0],t)}selectEntityAction(t){if(kn(t))return this.store.selectEntityAction$;let n=rr(t)?i=>i:({ids:i})=>i,r=gn(t);return this.store.selectEntityAction$.pipe(Gt(({type:i})=>r.includes(i)),_e(i=>n(i)))}hasEntity(t){return kn(t)?this.getValue().ids.length>0:Ft(t)?this.getAll().some(t):rr(t)?t.every(n=>n in this.getValue().entities):t in this.getValue().entities}hasActive(t){let n=this.getValue().active,r=Yo(t);return Array.isArray(n)?r?n.includes(t):n.length>0:r?n===t:Yo(n)}createUIQuery(){this.ui=new zv(this.__store__.ui)}selectAt(t,n){return this.select(r=>r.ids).pipe(_e(t),si(),Mt(r=>this.selectEntity(r,n)))}},zv=class extends Ma{constructor(t){super(t)}};function _l(e,t){return t.split(".").length===1?e:t.split(".").slice(1).join(".").split(".").reduce((r,i)=>r&&r[i],e)}function Mf(e,t,n,r=!1){let i=t.split(".");if(i.length===1)return K(K({},e),n);e=K({},e);let o=i.length-2;return t.split(".").slice(1).reduce((a,u,d)=>d!==o?(a[u]=K({},a[u]),a&&a[u]):(a[u]=r||Array.isArray(a[u])||!Ls(a[u])?n:K(K({},a[u]),n),a&&a[u]),e),e}var G7=!1,woe=new cs(1);function r5(e){G7=e}var Ta=class{constructor(t,n){this.query=t,n&&n.resetFn&&bl().resettable&&this.onReset(n.resetFn)}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(t){return Zo(t)}selectSource(t,n){return this.isEntityBased(t)?this.getQuery().selectEntity(t).pipe(Xw()):n?this.getQuery().select(r=>_l(r,this.withStoreName(n))):this.getQuery().select()}getSource(t,n){if(this.isEntityBased(t))return this.getQuery().getEntity(t);let r=this.getQuery().getValue();return n?_l(r,this.withStoreName(n)):r}withStoreName(t){return`${this.storeName}.${t}`}get storeName(){return this.getStore().storeName}updateStore(t,n,r,i=!1){if(this.isEntityBased(n)){let o=this.getStore();i?o.replace(n,t):o.update(n,t)}else{if(r){this.getStore()._setState(s=>Mf(s,this.withStoreName(r),t,!0));return}let o=i?t:s=>K(K({},s),t);this.getStore()._setState(o)}}onReset(t){let n=this.getStore().reset;this.getStore().reset=(...r)=>{setTimeout(()=>{n.apply(this.getStore(),r),t()})}}};var K7={pagesControls:!1,range:!1,startWith:1,cacheTimeout:void 0,clearStoreWithCache:!0},qv=class extends Ta{constructor(t,n={}){super(t,{resetFn:()=>{this.initial=!1,this.destroy({clearCache:!0,currentPage:1})}}),this.query=t,this.config=n,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=!0,this.isLoading$=this.query.selectLoading().pipe(ep(0)),this.config=K(K({},K7),n);let{startWith:r,cacheTimeout:i}=this.config;this.page=new Wt(r),lc(i)&&(this.clearCacheSubscription=i.subscribe(()=>this.clearCache()))}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return this.currentPage===1}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=!0,this}withRange(){return this.config.range=!0,this}setLoading(t=!0){this.getStore().setLoading(t)}update(t){this.pagination=t,this.addPage(t.data)}addPage(t){this.pages.set(this.currentPage,{ids:t.map(n=>n[this.getStore().idKey])}),this.getStore().upsertMany(t)}clearCache(t={}){this.initial||(hi("@Pagination - Clear Cache"),t.clearStore!==!1&&(this.config.clearStoreWithCache||t.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=!1}clearPage(t){this.pages.delete(t)}destroy({clearCache:t,currentPage:n}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),t&&this.clearCache(),ji(n)||this.setPage(n),this.initial=!0}isPageActive(t){return this.currentPage===t}setPage(t){(t!==this.currentPage||!this.hasPage(t))&&this.page.next(this.pagination.currentPage=t)}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1)}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1)}setLastPage(){this.setPage(this.pagination.lastPage)}setFirstPage(){this.setPage(1)}hasPage(t){return this.pages.has(t)}getPage(t){let n=this.pagination.currentPage;return this.hasPage(n)?this.selectPage(n):(this.setLoading(!0),Dt(t()).pipe(Mt(r=>(n=r.currentPage,Af(()=>{this.setLoading(!1),this.update(r)}),this.selectPage(n)))))}getQuery(){return this.query}refreshCurrentPage(){kn(this.currentPage)===!1&&(this.clearPage(this.currentPage),this.setPage(this.currentPage))}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(t){return this.query.selectAll({asObject:!0}).pipe(cr(1),_e(n=>{let r=Re(K({},this.pagination),{data:this.pages.get(t).ids.map(s=>n[s])}),{range:i,pagesControls:o}=this.config;return isNaN(this.pagination.total)&&(r.lastPage===1?r.total=r.data?r.data.length:0:r.total=r.perPage*r.lastPage,this.pagination.total=r.total),i&&(r.from=this.getFrom(),r.to=this.getTo()),o&&(r.pageControls=J7(this.pagination.total,this.pagination.perPage)),r}))}};cd([kw("@Pagination - New Page"),Ji("design:type",Function),Ji("design:paramtypes",[Object]),Ji("design:returntype",void 0)],qv.prototype,"update",null);function J7(e,t){let n=Math.ceil(e/t),r=[];for(let i=0;i<n;i++)r.push(i+1);return r}var i5=function(e){return e.Update="UPDATE",e}(i5||{}),Ese={[i5.Update]:"update"},Rs=function(e){return e.Update="UPDATE",e.AddEntities="ADD_ENTITIES",e.SetEntities="SET_ENTITIES",e.UpdateEntities="UPDATE_ENTITIES",e.RemoveEntities="REMOVE_ENTITIES",e.UpsertEntities="UPSERT_ENTITIES",e.UpsertManyEntities="UPSERT_MANY_ENTITIES",e}(Rs||{}),Ase={[Rs.Update]:"update",[Rs.AddEntities]:"add",[Rs.SetEntities]:"set",[Rs.UpdateEntities]:"update",[Rs.RemoveEntities]:"remove",[Rs.UpsertEntities]:"upsert",[Rs.UpsertManyEntities]:"upsertMany"};var Wv=class{getStoresSnapshot(t=[]){let n={},i=t.length>0?t:Object.keys($n);for(let o=0;o<i.length;o++){let s=i[o];s!=="router"&&(n[s]=$n[s]._value())}return n}setStoresSnapshot(t,n){let r=K({skipStorageUpdate:!1,lazy:!1},n);r.skipStorageUpdate&&r5(!0);let i=t;Na(t)&&(i=JSON.parse(i));let o=Object.keys(i).length;if(r.lazy)wl.pipe(Gt(s=>i.hasOwnProperty(s)),cr(o)).subscribe(s=>$n[s]._setState(()=>i[s]));else for(let s=0,a=Object.keys(i);s<a.length;s++){let u=a[s];$n[u]&&$n[u]._setState(()=>i[u])}r.skipStorageUpdate&&r5(!1)}},eB=new Wv;var ei=class extends ks{constructor(){super()}};ei.\u0275fac=function(n){return new(n||ei)},ei.\u0275prov=Ae({token:ei,factory:ei.\u0275fac,providedIn:"root"}),ei=O5([Qw({name:"lockers"})],ei);var Gv=class e extends Ma{constructor(n){super(n);this.store=n}static{this.\u0275fac=function(r){return new(r||e)(Ne(ei))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var Xt=Vd.basePath,Yv=class e{constructor(t,n,r,i){this.http=t;this.lockersStore=n;this.lockersQuery=r;this.logger=i;this.cityCache=null}getCities(){return this.cityCache!==null?qe(this.cityCache):this.http.get(`${Xt}OnlineRequest/cities`,{notify:"ERROR"}).pipe(Mt(t=>Dt(t)),_e(PA),xi(),Bt(t=>this.cityCache=t))}getSchool(t,n="ERROR"){return this.logger.add("Sending Request: OnlineRequest/schools/"+t),this.http.get(`${Xt}OnlineRequest/schools/${t}`,{notify:n}).pipe(Bt(r=>this.logger.add(r)),_e(r=>new Iu(r)))}getSchools(t){let n=new Hn({encoder:new Ri}).set("city",t);return this.http.get(`${Xt}OnlineRequest/schools`,{params:n,notify:"ERROR"}).pipe(_e(r=>r.map(i=>new Iu(i))))}getLockers(t){return this.lockersQuery.hasEntity(t)?qe(this.lockersQuery.getEntity(t)).pipe(_e(n=>n.lockers)):this.http.get(`${Xt}OnlineRequest/schools/${t}/LockerTypes`,{notify:"ERROR"}).pipe(Jn(n=>(this.logger.dump(`Error while fetching locker list for school with id ${t}`,n),ur)),Mt(n=>Dt(n)),_e(n=>cN(n)),xi(),Bt(n=>this.lockersStore.add({id:t,lockers:n})))}getSchoolClasses(t){return this.http.get(`${Xt}OnlineRequest/schools/${t}/Classes`,{notify:"ERROR"}).pipe(_e(n=>n.map(Cf)))}submitOrder(t){let n=new _v(t);return this.http.post(`${Xt}OnlineRequest/schools/${t.school.id}/ContractRequest`,n)}login(t,n){let r=new Hn({encoder:new Ri}).set("Email",t).set("pw",n);return this.http.get(`${Xt}Hub/Login`,{params:r,notify:"ERROR"}).pipe(_e(Sw))}sendPWResetRequest(t,n){let r=new Hn({encoder:new Ri}).set("email",t).set("LockerNo",n);return this.http.put(`${Xt}Hub/ForgetPassword`,{},{params:r})}putNewPassword(t,n){return this.http.put(`${Xt}Hub/NewPassword`,{NewPassword:t,Token:n})}queryCustomer(t){let n=new Hn({encoder:new Ri}).set("step","1");return this.http.put(`${Xt}Hub/CheckCustomer`,{IBAN:t.iban,LockerNo:t.lockerNo},{params:n,notify:"ERROR"}).pipe(_e(r=>r.ContractId===0&&r.CustomerId===0?null:Sf(r)))}registerCustomer(t,n){return this.http.put(`${Xt}Hub/Register`,{User:{Email:n},Contract:new If(t)})}getContracts(){return this.http.get(`${Xt}Hub/Contracts`,{notify:"ERROR"}).pipe(Mt(t=>Dt(t)),_e(t=>Sf(t)),xi())}updateContract(t){let n=new If(t);return this.http.put(`${Xt}Hub/Contract`,n).pipe(_e(r=>Sf(r)))}generatePinCode(t){return this.http.get(`${Xt}Hub/Customers/${t.customerId}/NewPinCode`,{notify:"ERROR"})}getInvoices(t){return this.http.get(`${Xt}Hub/Customers/${t.customerId}/Invoices`,{notify:"ERROR"}).pipe(Mt(n=>Dt(n)),_e(n=>Tw(n)),xi())}createLockerChangeRequest(t,n){let r=OA(Re(K({},n),{school:t.selectedSchool||n.school,lockerUser:Re(K({},n.lockerUser),{class:Cf(t.currentClass)}),location:t.selectedLocker?{id:t.selectedLocker.locationId,description:t.selectedLocker.location}:K({},n.location),locker:t.selectedLocker?Re(K(K({},n.locker),t.selectedLocker),{height:t.selectedHeight}):Re(K({},n.locker),{height:t.selectedHeight})}));return this.http.put(`${Xt}Hub/Customers/${n.customerId}/LockerSwitch`,r)}updateUser(t,n){let r=new Hn({encoder:new Ri}).set("pw",n);return this.http.put(`${Xt}Hub/User`,xf(t),{notify:"ALL",params:r}).pipe(_e(Sw))}getTerminationDates(t,n){return this.http.get(`${Xt}Hub/Customers/${t}/Termination/${n}`,{notify:"ERROR"}).pipe(_e(r=>uN(r)))}terminateContract(t,n){let r=aN(n);return this.http.put(`${Xt}Hub/Customers/${t}/TerminateContract`,r).pipe(_e(i=>Sf(i)))}deactivateCustomer(t,n){let r=new Hn({encoder:new Ri}).set("pw",n);return this.http.put(`${Xt}Hub/DeactivateUser`,xf(t),{params:r})}getLockerList(t){return this.http.get(`${Xt}SitePortal/Sites/${t}/Lockers`,{notify:"ERROR"}).pipe(Mt(n=>Dt(n)),_e(n=>Mw(n)),xi())}updateLocker(t){return this.http.put(`${Xt}SitePortal/Sites/${t.siteId}/Lockers`,new Ev(t)).pipe(_e(n=>Mw(n)))}generateLockerPinCode(t){return this.http.get(`${Xt}SitePortal/Sites/${t.siteId}/Lockers/${t.id}/NewPinCode`).pipe(_e(n=>Re(K({},t),{pincodeUpdateable:!1,pin:n})))}getCityByZipCode(t){let n=new Hn({encoder:new Ri}).set("zip",t+"");return this.http.get(`${Xt}service/city`,{params:n,spin:!1,notify:"NONE"}).pipe(_e(r=>r.City),Jn(()=>qe(null))).pipe(Gt(r=>r!==null))}getBankForIban(t){return this.http.get(`${Xt}service/bankdata/iban=${xu.sanitizeIban(t)}`,{spin:!1,notify:"NONE"}).pipe(Jn(()=>qe(null))).pipe(Gt(n=>n!==null))}getBankForBankcode(t){return this.http.get(`${Xt}service/bankdata/blz=${t}`,{spin:!1,notify:"NONE"}).pipe(Jn(()=>qe(null))).pipe(Gt(n=>n!==null))}getInvoicePDF(t,n){let r=new Hn({encoder:new Ri}).set("InvoiceId",n+""),i=new Qr().set("Accept","application/pdf");return this.http.download(`${Xt}Hub/Customers/${t}/Invoice`,{notify:"ERROR",params:r,headers:i})}getInsuranceDoc(t){let n=new Qr().set("Accept","application/pdf");return this.http.download(`${Xt}Hub/Customers/${t}/InsuranceDoc`,{notify:"ERROR",headers:n})}getPublicInvoices(t,n){let r=new Hn({encoder:new Ri}).set("IBAN",t).set("InvoiceNumber",n);return this.http.get(`${Xt}Hub/Customers/InvoiceHistory`,{notify:"ERROR",params:r}).pipe(Mt(i=>Dt(i)),_e(i=>lN(i)),xi())}static{this.\u0275fac=function(n){return new(n||e)(Ne(Rv),Ne(ei),Ne(Gv),Ne(Wo))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var MN=class e{constructor(t,n){this.lockersnetInterface=t;this.logger=n;this.user$=new Wt(null);this.onBeforeLogoutHooks=[];this.lastHookId=0;let r=JSON.parse(sessionStorage.getItem("user"));r&&this.user$.next(r),this.user$.pipe().subscribe(i=>{i===null?sessionStorage.removeItem("user"):sessionStorage.setItem("user",JSON.stringify(i))}),this.addOnBeforeLogoutHook(qe(!0))}login(t,n){return this.lockersnetInterface.login(t,n).pipe(Bt(r=>{this.user$.next(r)}),Jn(r=>(this.user$.next(null),Ci(r))))}logout(){Dt(this.onBeforeLogoutHooks).pipe(Mt(t=>t.hook),u0(t=>t,!0),xi(),Gt(t=>!t.includes(!1))).subscribe(()=>{this.user$.next(null)})}addOnBeforeLogoutHook(t){return this.onBeforeLogoutHooks.push({id:++this.lastHookId,hook:t}),this.lastHookId}removeOnBeforeLogoutHook(t){let n=this.onBeforeLogoutHooks.findIndex(r=>r.id===t);n!==-1&&this.onBeforeLogoutHooks.splice(n,1)}get user(){return this.user$.getValue()}get token(){return this.user$.getValue()!==null?this.user$.getValue().accessToken:""}get isLoggedIn(){return!!this.user$.getValue()}get isSchool(){return!!(this.user$.getValue()&&this.user$.getValue().isSchool)}get userName(){return this.user$.getValue()!==null?this.user$.getValue().email:""}static{this.\u0275fac=function(n){return new(n||e)(Ne(Yv),Ne(Wo))}}static{this.\u0275prov=Ae({token:e,factory:e.\u0275fac,providedIn:"root"})}};var Sce={insurance:12,deposit:36,serviceCharge:0,replacementKey:14,replacementTransponder:14,keyShipping:1.95,lockerMin:2};export{It as a,nt as b,kt as c,Wt as d,ur as e,jV as f,Rt as g,Dt as h,qe as i,Ci as j,PM as k,_e as l,Qa as m,rn as n,Xy as o,e0 as p,GM as q,Gt as r,Jn as s,xi as t,ZM as u,CD as v,cr as w,ep as x,si as y,JM as z,eo as A,to as B,XM as C,eT as D,SD as E,a0 as F,Mt as G,np as H,Bt as I,tT as J,$e as K,yr as L,Ae as M,Tr as N,He as O,Ne as P,xe as Q,RC as R,Pr as S,Yt as T,ca as U,eP as V,Ai as W,SW as X,_W as Y,EW as Z,Mi as _,H1 as $,yn as aa,on as ba,Lr as ca,AW as da,oo as ea,NW as fa,_3 as ga,E3 as ha,MW as ia,TW as ja,ze as ka,Sc as la,so as ma,kc as na,Xn as oa,kW as pa,BO as qa,hu as ra,WO as sa,o4 as ta,GI as ua,vm as va,RW as wa,FW as xa,jW as ya,tS as za,nS as Aa,gb as Ba,rS as Ca,iS as Da,b4 as Ea,BW as Fa,D4 as Ga,ao as Ha,VW as Ia,UW as Ja,HW as Ka,P4 as La,aS as Ma,$W as Na,L4 as Oa,O4 as Pa,zW as Qa,qW as Ra,F4 as Sa,uS as Ta,j4 as Ua,B4 as Va,V4 as Wa,WW as Xa,U4 as Ya,Zr as Za,lS as _a,GW as $a,YW as ab,ZW as bb,QW as cb,KW as db,JW as eb,XW as fb,eG as gb,tG as hb,nG as ib,rG as jb,iG as kb,oG as lb,Dm as mb,xs as nb,Fc as ob,IS as pb,er as qb,SG as rb,_G as sb,EG as tb,AG as ub,NG as vb,MG as wb,TG as xb,PG as yb,LG as zb,OG as Ab,Td as Bb,Qr as Cb,DR as Db,GG as Eb,c_ as Fb,aY as Gb,uY as Hb,cY as Ib,g_ as Jb,eF as Kb,Vd as Lb,q7 as Mb,Qw as Nb,Il as Ob,ks as Pb,Sl as Qb,Ma as Rb,Vo as Sb,yu as Tb,_6 as Ub,Da as Vb,eZ as Wb,ew as Xb,ll as Yb,xu as Zb,BZ as _b,AZ as $b,NZ as ac,dn as bc,Tt as cc,jg as dc,Nw as ec,Iu as fc,Lv as gc,Wo as hc,Rv as ic,Yv as jc,MN as kc,ya as lc,iF as mc,E_ as nc,v_ as oc,jo as pc,AY as qc,NY as rc,$c as sc,_F as tc,Wd as uc,NF as vc,TY as wc,PF as xc,OF as yc,RF as zc,jF as Ac,Y_ as Bc,PY as Cc,LY as Dc,qF as Ec,GF as Fc,ZF as Gc,OY as Hc,g2 as Ic,v2 as Jc,UE as Kc,Sce as Lc,bg as Mc,Og as Nc,MA as Oc};